Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major release 11.0.0 #498

Merged
merged 105 commits into from
Jan 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
818e224
Replace Roboto with Inter and include new sizing
Oct 17, 2018
c74df8e
Delete alt-text-small
Oct 17, 2018
d00f39a
Update docs
Oct 17, 2018
41091ce
ci fix
Oct 25, 2018
7131b7f
remove mono from docs
Oct 25, 2018
7db3811
remove IE9 hacks in form-select
jdanyow Nov 24, 2018
4586559
add !important to text-mono class
gladwearefriends Nov 26, 2018
56bb493
add $allSpacers to primer-marketing-support
gladwearefriends Nov 30, 2018
9640168
add absolute position utils
gladwearefriends Nov 30, 2018
fa208ca
add new buttons, update docs and stories test
gladwearefriends Nov 27, 2018
2598e4c
adds color vars to primer-marketing-support
gladwearefriends Nov 27, 2018
180e7d0
add test to stories
gladwearefriends Nov 30, 2018
5dee9c8
add docs
gladwearefriends Dec 1, 2018
31112d0
update comment and doc
gladwearefriends Dec 1, 2018
43a6b2f
add missing things
gladwearefriends Dec 1, 2018
3409b0b
update how responsive utils are created
gladwearefriends Dec 11, 2018
03fa9d5
update stories.js
gladwearefriends Jan 3, 2019
55e7fce
expanded support for marketing padding along both axises and right an…
trosage Jan 8, 2019
076ed27
Merge branch 'master' of https://github.com/primer/primer into trosag…
trosage Jan 8, 2019
38ed069
updated buttons css to include disabled states
trosage Jan 8, 2019
adac115
remove all utils with n0 value, and utils at sm and xl breakpoints
gladwearefriends Jan 10, 2019
4598ad2
edit example so its more obvious visually
gladwearefriends Jan 10, 2019
79aab1d
Merge branch 'master' into marketing-position-utils-2018
gladwearefriends Jan 14, 2019
288fddd
fix: fix typo
Jiang-Xuan Jan 21, 2019
13adddf
fixed SideNav.js
0xflotus Jan 22, 2019
7417eff
add fonts
gladwearefriends Jan 22, 2019
b11ac89
update font file url
gladwearefriends Jan 22, 2019
ee6f771
Merge branch 'master' into marketing-type-2018
gladwearefriends Jan 22, 2019
20da46e
Merge branch 'master' into marketing-position-utils-2018
gladwearefriends Jan 22, 2019
01a44bf
delete primer tables
Jan 18, 2018
3e86f3d
rm all primer-page-headers code
Jan 18, 2018
68874d0
rebase release-11.0.0
shawnbot Oct 17, 2018
62d36a1
rm sections directory
Jan 18, 2018
c5854b4
rm space
Jan 18, 2018
d5cb341
update package-lock
shawnbot Jan 8, 2019
a158835
print the working dir in script/notify
shawnbot Jan 8, 2019
2507e03
remove primer-page-sections and primer-support (again)
shawnbot Jan 22, 2019
333ee70
BREAKING CHANGE: remove colorizeTooltip mixin
shawnbot Jan 22, 2019
5b896e0
BREAKING CHANGE: remove BtnGroup-form references
shawnbot Jan 22, 2019
ef82282
Merge pull request #656 from primer/remove-colorize-tooltip
shawnbot Jan 22, 2019
fbc5fb3
Merge pull request #657 from primer/remove-btngroup-form
shawnbot Jan 22, 2019
9019f5b
Merge pull request #656 from primer/remove-colorize-tooltip
shawnbot Jan 22, 2019
12b798b
chore: Merge pull request #657 from primer/remove-btngroup-form
shawnbot Jan 22, 2019
9d3eb82
move responsive utils to core
Mar 14, 2018
7921992
feat(primer-support): add $responsive-positions variable
shawnbot Jan 22, 2019
37d55a5
refactor(primer-utilities): use responsive variables
shawnbot Jan 22, 2019
3b5a9fc
feat(selector-no-utility): add responsive position classes
shawnbot Jan 22, 2019
9d5ddba
fix: fix typo in docs/src/SideNav.js
shawnbot Jan 23, 2019
d8e3629
fix(primer-buttons): fix "Chrome" typo in SCSS comment
shawnbot Jan 23, 2019
a55cc00
nix /utilities/marketing-layout
shawnbot Jan 23, 2019
8d39528
bump package-lock
shawnbot Jan 23, 2019
7e8b2da
Merge pull request #459 from primer/responsive-layout-in-core
shawnbot Jan 23, 2019
a8fec99
get avatar stories from markdown
shawnbot Jan 23, 2019
113894c
remove .avatar-stack styles
shawnbot Jan 23, 2019
12076a0
Merge pull request #658 from primer/remove-avatar-stack
shawnbot Jan 23, 2019
33d1cca
Merge branch 'release-11.0.0' into trosage/padding-updates
shawnbot Jan 23, 2019
1a7850c
fix: add fonts dir to npm files list
shawnbot Jan 23, 2019
2682bd3
feat(marketing-utilities): add more padding utility classes
shawnbot Jan 23, 2019
96f9fe0
chore: remove IE9 hacks from form-select
shawnbot Jan 23, 2019
1793d68
Merge remote-tracking branch 'origin/release-11.0.0' into marketing-p…
shawnbot Jan 23, 2019
252df31
feat(marketing-utilities): new variables
shawnbot Jan 23, 2019
a9051ef
refactor(marketing-utilities): rework responsive classes
shawnbot Jan 23, 2019
f674b58
fix(marketing-utilities): import lib/layout.scss again
shawnbot Jan 23, 2019
e9e331a
chore: bump package-lock.json
shawnbot Jan 23, 2019
ae21c24
fix: bring back /utilties/marketing-layout page
shawnbot Jan 23, 2019
7f53e5f
chore(marketing-utilities): lint quotes
shawnbot Jan 23, 2019
78cb7ba
fix(marketing-utilities): add back negative positions
shawnbot Jan 23, 2019
6f2e028
Merge branch 'master' into marketing-buttons-2018
shawnbot Jan 23, 2019
1c57a0a
Merge pull request #583 from primer/marketing-type-2018
shawnbot Jan 23, 2019
c9e70d2
feat(marketing-utilities): add responsive edge position utilities
shawnbot Jan 23, 2019
642d7fa
test: add script/selector-diff-report
shawnbot Jan 23, 2019
8d7000c
build: run selector diff report on Travis
shawnbot Jan 23, 2019
ed40a56
chore: bump primer-marketing-support in primer-marketing-buttons/pack…
shawnbot Jan 23, 2019
3ce1b94
fix(marketing-buttons): explicitly import primer-marketing-support
shawnbot Jan 23, 2019
127dd98
chore(marketing-support): update primer-support version
shawnbot Jan 23, 2019
61aab4b
test: add selector diff report script, run on Travis
shawnbot Jan 24, 2019
bd3488b
chore: bump docs/package-lock.json
shawnbot Jan 24, 2019
68c3e18
docs(marketing-utilities): tidy up layout docs
shawnbot Jan 24, 2019
5a78e62
ci: add branch + version metadata to docs deployments
shawnbot Jan 24, 2019
80c32bd
ci: abbreviate commit status per #518
shawnbot Jan 24, 2019
cb69779
chore: upgrade to now@^13.1.2
shawnbot Jan 24, 2019
64dfbd8
Revert "chore: upgrade to now@^13.1.2"
shawnbot Jan 24, 2019
2be44f2
Revert "ci: add branch + version metadata to docs deployments"
shawnbot Jan 24, 2019
eaeb6a7
feat(primer-support): refactor spacer variables
shawnbot Jan 24, 2019
f51fa88
refactor(primer-utilities): use new $spacer-map var for loops
shawnbot Jan 24, 2019
9fe577c
refactor(primer-support): make $width-?? vars the source of truth
shawnbot Jan 24, 2019
2896046
refactor(primer-support): make $responsive-variants easier to grok
shawnbot Jan 24, 2019
e6d3dac
feat(marketing-support): add !default to $spacer-{7..12}
shawnbot Jan 24, 2019
7742370
feat(marketing-support): add $marketing-font-path variable
shawnbot Jan 24, 2019
618b7b7
Merge pull request #660 from primer/marketing-font-path
shawnbot Jan 25, 2019
24b4159
refactor(marketing-buttons): Merge pull request #613 from primer/mark…
shawnbot Jan 25, 2019
645f5f8
Merge pull request #661 from primer/spacer-var-refactor
shawnbot Jan 25, 2019
10e3b36
Adding container-sm to utilities
jonrohan Jan 25, 2019
0439cc6
Adding deprecation warning
jonrohan Jan 25, 2019
eba8f30
chore: bump package-lock.json
shawnbot Jan 25, 2019
5fe4836
docs: fix version text color w/is= (not as=)
shawnbot Jan 25, 2019
035dc05
ci: nix echo call before selector-diff-report
shawnbot Jan 25, 2019
3dab006
ci: move selector-diff-report into script list
shawnbot Jan 25, 2019
7860079
docs: use is=, not as=, _except_ in Frame :upside_down_face:
shawnbot Jan 25, 2019
a75d1fb
Update modules/primer-layout/lib/columns.scss
shawnbot Jan 25, 2019
55f783a
feat(layout): Merge pull request #663 from primer/deprecate_column_grid
shawnbot Jan 25, 2019
3ecdc6e
ci: tweak docs pending commit status
shawnbot Jan 25, 2019
d2d7425
Publish
shawnbot Jan 25, 2019
dee1eb4
chore: manually bump some dependency versions
shawnbot Jan 25, 2019
82c06bb
chore: update CHANGELOG.md for 11.0.0
shawnbot Jan 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
script:
- npm test
- script/check-versions
- script/selector-diff-report

before_deploy:
# this will short-circuit the publish step if it fails to interpolate $NPM_API_KEY
Expand Down
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# 11.0.0

#### :boom: Breaking Change
* [#438](https://github.com/primer/primer/pull/438) Remove `primer-page-sections` package. ([@sophshep](https://github.com/sophshep))
* [#439](https://github.com/primer/primer/pull/439) Remove `primer-page-headers` package. ([@sophshep](https://github.com/sophshep))
* [#440](https://github.com/primer/primer/pull/440) Remove `primer-tables` package. ([@sophshep](https://github.com/sophshep))
* [#459](https://github.com/primer/primer/pull/459) Move responsive position utilities from marketing to core. ([@sophshep](https://github.com/sophshep))
* [#656](https://github.com/primer/primer/pull/656) Remove colorizeTooltip mixin. ([@shawnbot](https://github.com/shawnbot))
* [#657](https://github.com/primer/primer/pull/657) Remove `BtnGroup-form` class. ([@shawnbot](https://github.com/shawnbot))
* [#658](https://github.com/primer/primer/pull/658) Remove `.avatar-stack` in favor of `.AvatarStack`. ([@shawnbot](https://github.com/shawnbot))

#### :rocket: Enhancement
* [#583](https://github.com/primer/primer/pull/583) Updates to Marketing Typography. ([@sophshep](https://github.com/sophshep))
* [#660](https://github.com/primer/primer/pull/660) Add `$marketing-font-path`. ([@shawnbot](https://github.com/shawnbot))
* [#661](https://github.com/primer/primer/pull/661) Spacer variable refactor. ([@shawnbot](https://github.com/shawnbot))
* [#663](https://github.com/primer/primer/pull/663) Add deprecation warning for column grid classes and add `container-sm` utility class. ([@jonrohan](https://github.com/jonrohan))

#### :bug: Bug Fix
* [#654](https://github.com/primer/primer/pull/654) Fix typo ("Chroma") in `primer-base` comment. ([@Jiang-Xuan](https://github.com/Jiang-Xuan))
* [#655](https://github.com/primer/primer/pull/655) Fix typo ("conditonally") in `docs/src/SideNav.js` comment. ([@0xflotus](https://github.com/0xflotus))

### :house: Internal
* [#659](https://github.com/primer/primer/pull/659) Generate CSS selector diff report on Travis. ([@shawnbot](https://github.com/shawnbot))

#### Committers: 4
- 0xflotus ([0xflotus](https://github.com/0xflotus))
- Jiang-Xuan ([Jiang-Xuan](https://github.com/Jiang-Xuan))
- Jon Rohan ([jonrohan](https://github.com/jonrohan))
- Shawn Allen ([shawnbot](https://github.com/shawnbot))
- Sophie Shepherd ([sophshep](https://github.com/sophshep))

# 10.10.5

#### :bug: Bug Fix
Expand Down
80 changes: 33 additions & 47 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"next-compose-plugins": "2.1.1",
"node-sass": "^4.10.0",
"now": "^12.1.8",
"primer": "10.10.5",
"primer": "11.0.0",
"primer-colors": "^1.0.1",
"prism-github": "^1.1.0",
"prop-types": "^15.6.2",
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/css/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export const Hero = () => (
<Heading color="blue.4" fontSize={7} pb={3} m={0}>
Primer CSS
</Heading>
<Text as="div" color="blue.2" fontSize={2} mb={4}>
<Text is="div" color="blue.2" fontSize={2} mb={4}>
v{version}
</Text>
<Box as={HeaderImage} mb={6} />
<Box is={HeaderImage} mb={6} />
</Box>
</Box>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/CodeExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function CodeExample(props) {
<ClipboardCopy value={source} />
</Absolute>
<Text
as={LiveError}
is={LiveError}
fontFamily="mono"
style={{
overflow: 'auto',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Header = props => (
<NavLink href="/css/getting-started" />
<NavLink href="/css/principles" />
<NavLink href="/css/tools" />
<NavLink as={Link} href="https://github.com/primer/primer/releases">
<NavLink is={Link} href="https://github.com/primer/primer/releases">
Releases
</NavLink>
</HeaderText>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/Outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Box} from '@primer/components'
export default function Outline({outline, ...rest}) {
if (outline && outline.length) {
return (
<Box as="details" mb={4}>
<Box is="details" mb={4}>
<summary>Table of contents</summary>
<OutlineList items={outline} {...rest} />
</Box>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/PackageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default function PackageHeader(props) {

return (
<Flex justifyContent="space-between" mb={4} {...rest}>
<Text as="div" fontSize={1}>
{status ? <StatusLabel status={status} as="a" href="/css/status-key" mr={2} /> : null}
<Text is="div" fontSize={1}>
{status ? <StatusLabel status={status} is="a" href="/css/status-key" mr={2} /> : null}
{info}
</Text>
<Box>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {rootPage} from './utils'

export default function SideNav(props) {
return (
<Relative as="nav">
<Relative is="nav">
<Box id="sidenav" {...props}>
<Flex flexDirection="column" alignItems="start">
<Router>
Expand Down Expand Up @@ -111,7 +111,7 @@ const Router = withRouter(({router, children}) => {
})

/**
* <RouteMatch> is just a way to conditonally render content without a wrapper
* <RouteMatch> is just a way to conditionally render content without a wrapper
* element when contained directly in a <Router>:
*
* ```jsx
Expand Down
24 changes: 12 additions & 12 deletions docs/src/color-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ export function ColorVariables(props) {
<Flex flexWrap="wrap" {...props}>
<FadeVariables id="black" hue="black" bg="black" color="white">
<BorderBox border={0} borderRadius={0} borderTop={1} borderColor="gray.5" mt={1}>
<Text as="div" fontSize={2} pt={3} mb={0}>
<Text is="div" fontSize={2} pt={3} mb={0}>
Black fades apply alpha transparency to the <Var>$black</Var> variable. The black color value has a slight
blue hue to match our grays.
</Text>
</BorderBox>
</FadeVariables>
<FadeVariables id="white" hue="white" over={BLACK}>
<BorderBox border={0} borderRadius={0} borderTop={1} mt={1}>
<Text as="div" fontSize={2} pt={3} mb={0}>
<Text is="div" fontSize={2} pt={3} mb={0}>
White fades apply alpha transparency to the <Var>$white</Var> variable, below these are shown overlaid on
a dark gray background.
</Text>
Expand All @@ -64,14 +64,14 @@ export function ColorVariables(props) {
export function ColorVariable({hue, ...rest}) {
const values = colors[hue]
return (
<Flex.Item as={Box} pr={4} mb={6} className="col-6 markdown-no-margin" {...rest}>
{/* <Heading as="div">{titleCase(hue)}</Heading> */}
<Flex.Item is={Box} pr={4} mb={6} className="col-6 markdown-no-margin" {...rest}>
{/* <Heading is="div">{titleCase(hue)}</Heading> */}
<Box bg={`${hue}.5`} my={2} p={3} color="white">
<Heading as="div" pb={3} fontSize={56} fontWeight="light">
<Heading is="div" pb={3} fontSize={56} fontWeight="light">
{titleCase(hue)}
</Heading>
<Flex justifyContent="space-between">
<Flex.Item flex="1 1 auto" as={Var}>
<Flex.Item flex="1 1 auto" is={Var}>
${hue}-500
</Flex.Item>
<Text fontFamily="mono">{values[5]}</Text>
Expand Down Expand Up @@ -103,14 +103,14 @@ export function FadeVariables({hue, color, bg, over, children, ...rest}) {
})
const boxProps = {color, bg}
return (
<Flex.Item as={Box} pr={4} mb={6} width={1 / 2} className="markdown-no-margin" {...rest}>
{/* <Heading as="div">{titleCase(hue)}</Heading> */}
<Flex.Item is={Box} pr={4} mb={6} width={1 / 2} className="markdown-no-margin" {...rest}>
{/* <Heading is="div">{titleCase(hue)}</Heading> */}
<Box my={2} p={3} {...boxProps}>
<Heading as="div" pb={3} fontSize={56} fontWeight="light">
<Heading is="div" pb={3} fontSize={56} fontWeight="light">
{titleCase(hue)}
</Heading>
<Flex justifyContent="space-between">
<Flex.Item flex="1 1 auto" as={Var}>
<Flex.Item flex="1 1 auto" is={Var}>
${hue}
</Flex.Item>
<Text fontFamily="mono">
Expand Down Expand Up @@ -141,7 +141,7 @@ function Swatch(props) {
const {name, value, textColor = overlayColor(value), ...rest} = props
return (
<Box bg={value} color={textColor} {...rest}>
<Text as={Flex} fontSize={1} justifyContent="space-between">
<Text is={Flex} fontSize={1} justifyContent="space-between">
<Box p={3}>
<Var>${name}</Var>
</Box>
Expand All @@ -161,7 +161,7 @@ Swatch.propTypes = {

function Var(props) {
// FIXME: fontStyle should be a prop, right?
return <Text as="var" fontWeight="bold" fontFamily="mono" style={{fontStyle: 'normal'}} {...props} />
return <Text is="var" fontWeight="bold" fontFamily="mono" style={{fontStyle: 'normal'}} {...props} />
}

function overlayColor(bg) {
Expand Down
14 changes: 7 additions & 7 deletions docs/src/landing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ColorImage from './ColorImage.svg'

export {default as HeaderImage} from './HeaderImage.svg'

const OverviewTitle = props => <Heading fontSize={3} fontWeight="normal" as="div" {...props} />
const OverviewTitle = props => <Heading fontSize={3} fontWeight="normal" is="div" {...props} />
const OverviewText = props => <Text fontSize={1} {...props} />

export function StylesOverview(props) {
Expand All @@ -34,7 +34,7 @@ export function StylesOverview(props) {
return (
<Flex {...props}>
{styleTypes.map(({name, desc, image}) => (
<Flex.Item as={Text} textAlign="center" mx={4} key={name}>
<Flex.Item is={Text} textAlign="center" mx={4} key={name}>
<Image src={image} height={90} mb={2} />
<OverviewTitle>{name}</OverviewTitle>
<OverviewText>{desc}</OverviewText>
Expand Down Expand Up @@ -103,9 +103,9 @@ function Image(props) {
const {src, ...rest} = props
switch (typeof src) {
case 'string':
return <Box as="img" width="100%" alt="" {...props} />
return <Box is="img" width="100%" alt="" {...props} />
case 'function':
return <Box as={src} {...rest} />
return <Box is={src} {...rest} />
default:
throw new Error(`Unrecognized Image.src type: "${typeof src}"`)
}
Expand All @@ -127,7 +127,7 @@ export function PrimerPackageBox({data = {}, count, ...rest}) {
</Link>
</Flex>
{count ? (
<Text as="div" textAlign="center">
<Text is="div" textAlign="center">
This package includes all {count} Primer modules.
</Text>
) : null}
Expand All @@ -139,9 +139,9 @@ export function PrimerPackageBox({data = {}, count, ...rest}) {
export function MetaPackageBox({children, data = {}, title, ...rest}) {
const deps = data.dependencies || []
return (
<Flex.Item as={BorderBox} bg="white" maxWidth={220} {...rest}>
<Flex.Item is={BorderBox} bg="white" maxWidth={220} {...rest}>
<BorderBox bg="gray.1" border={0} borderBottom={1} borderRadius={0} px={3} py={2}>
<Heading as="div" fontSize={2}>
<Heading is="div" fontSize={2}>
<Link href={packageSourceURL(data.name)} color="inherit">
{title}
</Link>{' '}
Expand Down
4 changes: 2 additions & 2 deletions modules/primer-alerts/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.13",
"version": "2.0.0",
"name": "primer-alerts",
"description": "Flash messages, or alerts, inform users of successful or pending actions.",
"homepage": "http://primer.github.io/",
Expand Down Expand Up @@ -33,7 +33,7 @@
"postpublish": "../../script/notify success"
},
"dependencies": {
"primer-support": "4.7.2"
"primer-support": "5.0.0"
},
"keywords": [
"alerts",
Expand Down
Loading