Skip to content

Commit 652ec02

Browse files
committed
Merge remote-tracking branch 'origin/stable' into develop
2 parents 5854896 + 6c2ba37 commit 652ec02

File tree

60 files changed

+607
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+607
-129
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,15 @@
10801080
"contributions": [
10811081
"code"
10821082
]
1083+
},
1084+
{
1085+
"login": "jordie23",
1086+
"name": "Jordie Bodlay",
1087+
"avatar_url": "https://avatars.githubusercontent.com/u/712360?v=4",
1088+
"profile": "https://www.jordie.net/",
1089+
"contributions": [
1090+
"doc"
1091+
]
10831092
}
10841093
]
10851094
}

CHANGELOG.md

Lines changed: 170 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,181 @@
1+
# v0.11.1 (Wed Aug 25 2021)
2+
3+
4+
5+
---
6+
7+
# v0.11.0 (Wed Aug 25 2021)
8+
9+
:tada: This release contains work from new contributors! :tada:
10+
11+
Thanks for all your work!
12+
13+
:heart: Torne Wuff ([@tornewuff](https://github.com/tornewuff))
14+
15+
:heart: Jordie Bodlay ([@jordie23](https://github.com/jordie23))
16+
17+
### Release Notes
18+
19+
#### Fixed a long-standing bug with color modes in nested providers ([#1456](https://github.com/system-ui/theme-ui/issues/1456))
20+
21+
#### Added @theme-ui/css/utils with TypeScript CIF functions and fix preset types ([#1862](https://github.com/system-ui/theme-ui/pull/1862))
22+
23+
- Added TypeScript
24+
[Constrained identity functions](https://kentcdodds.com/blog/how-to-write-a-constrained-identity-function-in-typescript)
25+
`makeTheme`, `makeStyles` and `makeColorsScale` which can be imported from
26+
_@theme-ui/css/utils_.
27+
- Used aformentioned functions to properly define types of presets. Exported
28+
themes are now assignable to _Theme_ but their types narrowly describe their
29+
exact values.
30+
31+
---
32+
33+
---
34+
35+
#### 🚀 Enhancement
36+
37+
- `@theme-ui/color`, `@theme-ui/css`, `@theme-ui/preset-base`,
38+
`@theme-ui/preset-bootstrap`, `@theme-ui/preset-bulma`,
39+
`@theme-ui/preset-dark`, `@theme-ui/preset-deep`, `@theme-ui/preset-funk`,
40+
`@theme-ui/preset-future`, `@theme-ui/preset-polaris`,
41+
`@theme-ui/preset-roboto`, `@theme-ui/preset-sketchy`,
42+
`@theme-ui/preset-swiss`, `@theme-ui/preset-system`,
43+
`@theme-ui/preset-tailwind`, `@theme-ui/preset-tosh`, `@theme-ui/presets`
44+
- Add @theme-ui/css/utils with TypeScript CIF functions and fix preset types
45+
[#1862](https://github.com/system-ui/theme-ui/pull/1862)
46+
([@tornewuff](https://github.com/tornewuff)
47+
[@hasparus](https://github.com/hasparus))
48+
- `@theme-ui/color-modes`, `@theme-ui/core`, `@theme-ui/editor`,
49+
`@theme-ui/theme-provider`, `theme-ui`
50+
- fix(color-modes): combine colors in nested providers
51+
[#1838](https://github.com/system-ui/theme-ui/pull/1838)
52+
([@hasparus](https://github.com/hasparus))
53+
54+
#### 🐛 Bug Fix
55+
56+
- Update global-styles.mdx
57+
[#1858](https://github.com/system-ui/theme-ui/pull/1858)
58+
([@jordie23](https://github.com/jordie23))
59+
- `@theme-ui/core`, `@theme-ui/css`
60+
- add types for css prop back
61+
[#1866](https://github.com/system-ui/theme-ui/pull/1866)
62+
([@hasparus](https://github.com/hasparus))
63+
- `@theme-ui/color-modes`, `@theme-ui/components`, `@theme-ui/core`,
64+
`@theme-ui/editor`, `gatsby-theme-style-guide`, `gatsby-theme-ui-layout`,
65+
`@theme-ui/match-media`, `@theme-ui/mdx`, `@theme-ui/parse-props`,
66+
`@theme-ui/sidenav`, `@theme-ui/style-guide`, `@theme-ui/theme-provider`,
67+
`theme-ui`
68+
- 0.10 chores [#1842](https://github.com/system-ui/theme-ui/pull/1842)
69+
([@hasparus](https://github.com/hasparus))
70+
71+
#### 👨‍💻 Minor changes
72+
73+
- Remove dependabot from the changelog
74+
([@hasparus](https://github.com/hasparus))
75+
76+
#### 🏠 Internal
77+
78+
- docs: add `@theme-ui/css` to sidebar and packages page
79+
[#1877](https://github.com/system-ui/theme-ui/pull/1877)
80+
([@hasparus](https://github.com/hasparus))
81+
- docs: change intro code snippets to TypeScript
82+
[#1877](https://github.com/system-ui/theme-ui/pull/1877)
83+
([@hasparus](https://github.com/hasparus))
84+
- `@theme-ui/css`
85+
- refactor(css): remove unused imports
86+
[#1877](https://github.com/system-ui/theme-ui/pull/1877)
87+
([@hasparus](https://github.com/hasparus))
88+
- `@theme-ui/core`, `@theme-ui/css`
89+
- docs(css): add usage examples for core packages
90+
[#1877](https://github.com/system-ui/theme-ui/pull/1877)
91+
([@hasparus](https://github.com/hasparus))
92+
- `theme-ui`
93+
- Setup Cypress [#1845](https://github.com/system-ui/theme-ui/pull/1845)
94+
([@hasparus](https://github.com/hasparus))
95+
96+
#### 📝 Documentation
97+
98+
- Add redirects back to docs.
99+
[#1841](https://github.com/system-ui/theme-ui/pull/1841)
100+
([@hasparus](https://github.com/hasparus))
101+
102+
#### 🔩 Dependency Updates
103+
104+
- `@theme-ui/prism`
105+
- Update snapshots [#1768](https://github.com/system-ui/theme-ui/pull/1768)
106+
([@lachlanjc](https://github.com/lachlanjc))
107+
108+
#### Authors: 4
109+
110+
- Jordie Bodlay ([@jordie23](https://github.com/jordie23))
111+
- Lachlan Campbell ([@lachlanjc](https://github.com/lachlanjc))
112+
- Piotr Monwid-Olechnowicz ([@hasparus](https://github.com/hasparus))
113+
- Torne Wuff ([@tornewuff](https://github.com/tornewuff))
114+
115+
---
116+
1117
# v0.10.0 (Sat Jun 19 2021)
2118

3119
:tada: This release contains work from a new contributor! :tada:
4120

5-
Thank you, Vlad Shcherbin ([@vladshcherbin](https://github.com/vladshcherbin)), for all your work!
121+
Thank you, Vlad Shcherbin ([@vladshcherbin](https://github.com/vladshcherbin)),
122+
for all your work!
6123

7124
### Release Notes
8125

9126
#### Allow easy styling autofilled of Inputs ([#1811](https://github.com/system-ui/theme-ui/pull/1811))
10127

11-
Background color of autofilled inputs will now default to `theme.colors.background`. It can be changed by setting `autofillBackgroundColor` prop.
128+
Background color of autofilled inputs will now default to
129+
`theme.colors.background`. It can be changed by setting
130+
`autofillBackgroundColor` prop.
12131

13132
---
14133

15134
#### 🚀 Enhancement
16135

17-
18136
#### 🐛 Bug Fix
19137

20-
- Fix typo [#1835](https://github.com/system-ui/theme-ui/pull/1835) ([@vladshcherbin](https://github.com/vladshcherbin))
21-
- `@theme-ui/color-modes`, `@theme-ui/components`, `@theme-ui/editor`, `theme-ui`
22-
- Allow easy styling autofilled of Inputs [#1811](https://github.com/system-ui/theme-ui/pull/1811) ([@hasparus](https://github.com/hasparus))
138+
- Fix typo [#1835](https://github.com/system-ui/theme-ui/pull/1835)
139+
([@vladshcherbin](https://github.com/vladshcherbin))
140+
- `@theme-ui/color-modes`, `@theme-ui/components`, `@theme-ui/editor`,
141+
`theme-ui`
142+
- Allow easy styling autofilled of Inputs
143+
[#1811](https://github.com/system-ui/theme-ui/pull/1811)
144+
([@hasparus](https://github.com/hasparus))
23145
- `@theme-ui/color`, `@theme-ui/css`
24-
- fix(css): add JSDoc comment to sx.label [#1813](https://github.com/system-ui/theme-ui/pull/1813) ([@hasparus](https://github.com/hasparus))
25-
- `@theme-ui/color`, `@theme-ui/components`, `@theme-ui/css`, `@theme-ui/custom-properties`, `@theme-ui/editor`, `gatsby-theme-style-guide`, `@theme-ui/preset-bootstrap`, `@theme-ui/preset-bulma`, `@theme-ui/preset-dark`, `@theme-ui/preset-deep`, `@theme-ui/preset-funk`, `@theme-ui/preset-future`, `@theme-ui/preset-polaris`, `@theme-ui/preset-roboto`, `@theme-ui/preset-sketchy`, `@theme-ui/preset-swiss`, `@theme-ui/preset-system`, `@theme-ui/preset-tailwind`, `@theme-ui/style-guide`
26-
- Add missing meta repository to published packages [#1807](https://github.com/system-ui/theme-ui/pull/1807) ([@aaronadamsCA](https://github.com/aaronadamsCA))
27-
- Add missing repository metadata to published packages [#1779](https://github.com/system-ui/theme-ui/pull/1779) ([@aaronadamsCA](https://github.com/aaronadamsCA))
146+
- fix(css): add JSDoc comment to sx.label
147+
[#1813](https://github.com/system-ui/theme-ui/pull/1813)
148+
([@hasparus](https://github.com/hasparus))
149+
- `@theme-ui/color`, `@theme-ui/components`, `@theme-ui/css`,
150+
`@theme-ui/custom-properties`, `@theme-ui/editor`, `gatsby-theme-style-guide`,
151+
`@theme-ui/preset-bootstrap`, `@theme-ui/preset-bulma`,
152+
`@theme-ui/preset-dark`, `@theme-ui/preset-deep`, `@theme-ui/preset-funk`,
153+
`@theme-ui/preset-future`, `@theme-ui/preset-polaris`,
154+
`@theme-ui/preset-roboto`, `@theme-ui/preset-sketchy`,
155+
`@theme-ui/preset-swiss`, `@theme-ui/preset-system`,
156+
`@theme-ui/preset-tailwind`, `@theme-ui/style-guide`
157+
- Add missing meta repository to published packages
158+
[#1807](https://github.com/system-ui/theme-ui/pull/1807)
159+
([@aaronadamsCA](https://github.com/aaronadamsCA))
160+
- Add missing repository metadata to published packages
161+
[#1779](https://github.com/system-ui/theme-ui/pull/1779)
162+
([@aaronadamsCA](https://github.com/aaronadamsCA))
28163

29164
#### 🏠 Internal
30165

31-
- Docs: update JSX pragma guide with automatic runtime section [#1718](https://github.com/system-ui/theme-ui/pull/1718) ([@flo-sch](https://github.com/flo-sch) [@hasparus](https://github.com/hasparus))
32-
- docs: fix DocSearch not loading in SSR ([@hasparus](https://github.com/hasparus))
33-
- Docs: Move homepage to root path [#1783](https://github.com/system-ui/theme-ui/pull/1783) ([@lachlanjc](https://github.com/lachlanjc))
166+
- Docs: update JSX pragma guide with automatic runtime section
167+
[#1718](https://github.com/system-ui/theme-ui/pull/1718)
168+
([@flo-sch](https://github.com/flo-sch)
169+
[@hasparus](https://github.com/hasparus))
170+
- docs: fix DocSearch not loading in SSR
171+
([@hasparus](https://github.com/hasparus))
172+
- Docs: Move homepage to root path
173+
[#1783](https://github.com/system-ui/theme-ui/pull/1783)
174+
([@lachlanjc](https://github.com/lachlanjc))
34175
- `@theme-ui/components`
35-
- docs(components): fix Paragraph default variant [#1795](https://github.com/system-ui/theme-ui/pull/1795) ([@bernharduw](https://github.com/bernharduw))
176+
- docs(components): fix Paragraph default variant
177+
[#1795](https://github.com/system-ui/theme-ui/pull/1795)
178+
([@bernharduw](https://github.com/bernharduw))
36179

37180
#### Authors: 6
38181

@@ -50,7 +193,9 @@ Background color of autofilled inputs will now default to `theme.colors.backgrou
50193
#### 🐛 Bug Fix
51194

52195
- `@theme-ui/components`
53-
- fix: Allow overriding Paragraph margins via theme [#1775](https://github.com/system-ui/theme-ui/pull/1775) ([@bernharduw](https://github.com/bernharduw))
196+
- fix: Allow overriding Paragraph margins via theme
197+
[#1775](https://github.com/system-ui/theme-ui/pull/1775)
198+
([@bernharduw](https://github.com/bernharduw))
54199

55200
#### Authors: 1
56201

@@ -79,17 +224,23 @@ node_modules (e.g. with
79224

80225
#### 🚀 Enhancement
81226

82-
- `@theme-ui/preset-base`, `@theme-ui/preset-bootstrap`, `@theme-ui/sidenav`, `@theme-ui/typography`
83-
- modernize Babel config [#1721](https://github.com/system-ui/theme-ui/pull/1721) ([@hasparus](https://github.com/hasparus))
227+
- `@theme-ui/preset-base`, `@theme-ui/preset-bootstrap`, `@theme-ui/sidenav`,
228+
`@theme-ui/typography`
229+
- modernize Babel config
230+
[#1721](https://github.com/system-ui/theme-ui/pull/1721)
231+
([@hasparus](https://github.com/hasparus))
84232

85233
#### 🐛 Bug Fix
86234

87235
- `@theme-ui/components`
88-
- fix(components): set Select's bgColor to "background" - fixes dark mode ([@hasparus](https://github.com/hasparus))
236+
- fix(components): set Select's bgColor to "background" - fixes dark mode
237+
([@hasparus](https://github.com/hasparus))
89238

90239
#### 📝 Documentation
91240

92-
- style DocSearch [#1714](https://github.com/system-ui/theme-ui/pull/1714) ([@atanasster](https://github.com/atanasster) [@hasparus](https://github.com/hasparus))
241+
- style DocSearch [#1714](https://github.com/system-ui/theme-ui/pull/1714)
242+
([@atanasster](https://github.com/atanasster)
243+
[@hasparus](https://github.com/hasparus))
93244

94245
#### Authors: 2
95246

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.10.0",
2+
"version": "0.11.1",
33
"npmClient": "yarn",
44
"useWorkspaces": true,
55
"packages": [

packages/color-modes/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# v0.11.0 (Wed Aug 25 2021)
2+
3+
#### 🚀 Enhancement
4+
5+
- fix(color-modes): combine colors in nested providers [#1838](https://github.com/system-ui/theme-ui/pull/1838) ([@hasparus](https://github.com/hasparus))
6+
7+
#### 🐛 Bug Fix
8+
9+
- fix(color-modes): respect html.theme-ui-{mode} class in nested providers to reduce FOUC ([@hasparus](https://github.com/hasparus))
10+
- 0.10 chores [#1842](https://github.com/system-ui/theme-ui/pull/1842) ([@hasparus](https://github.com/hasparus))
11+
- fix(color-modes): properly combine colors from nested providers ([@hasparus](https://github.com/hasparus))
12+
- fix(color-modes): nest styles using css not style ([@hasparus](https://github.com/hasparus))
13+
14+
#### Authors: 1
15+
16+
- Piotr Monwid-Olechnowicz ([@hasparus](https://github.com/hasparus))
17+
18+
---
19+
120
# v0.10.0 (Sat Jun 19 2021)
221

322
:tada: This release contains work from a new contributor! :tada:

packages/color-modes/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@theme-ui/color-modes",
3-
"version": "0.10.0",
3+
"version": "0.11.1",
44
"main": "dist/theme-ui-color-modes.cjs.js",
55
"module": "dist/theme-ui-color-modes.esm.js",
66
"types": "dist/theme-ui-color-modes.cjs.d.ts",
@@ -15,8 +15,8 @@
1515
},
1616
"dependencies": {
1717
"@emotion/react": "^11.1.1",
18-
"@theme-ui/core": "0.10.0",
19-
"@theme-ui/css": "0.10.0",
18+
"@theme-ui/core": "0.11.1",
19+
"@theme-ui/css": "0.11.1",
2020
"deepmerge": "^4.2.2"
2121
},
2222
"peerDependencies": {

packages/color/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# v0.11.0 (Wed Aug 25 2021)
2+
3+
### Release Notes
4+
5+
#### Add @theme-ui/css/utils with TypeScript CIF functions and fix preset types ([#1862](https://github.com/system-ui/theme-ui/pull/1862))
6+
7+
- Added TypeScript [Constrained identity functions](https://kentcdodds.com/blog/how-to-write-a-constrained-identity-function-in-typescript) `makeTheme`, `makeStyles` and `makeColorsScale` which can be imported from _@theme-ui/css/utils_.
8+
- Used aformentioned functions to properly define types of presets. Exported themes are now assignable to _Theme_ but their types narrowly describe their exact values.
9+
10+
---
11+
12+
---
13+
14+
#### 🚀 Enhancement
15+
16+
- Add @theme-ui/css/utils with TypeScript CIF functions and fix preset types [#1862](https://github.com/system-ui/theme-ui/pull/1862) ([@tornewuff](https://github.com/tornewuff) [@hasparus](https://github.com/hasparus))
17+
- feat(css): add makeTheme constrained identity function ([@hasparus](https://github.com/hasparus))
18+
19+
#### Authors: 2
20+
21+
- Piotr Monwid-Olechnowicz ([@hasparus](https://github.com/hasparus))
22+
- Torne Wuff ([@tornewuff](https://github.com/tornewuff))
23+
24+
---
25+
126
# v0.10.0 (Sat Jun 19 2021)
227

328
:tada: This release contains work from a new contributor! :tada:

packages/color/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@theme-ui/color",
3-
"version": "0.10.0",
3+
"version": "0.11.1",
44
"source": "src/index.ts",
55
"main": "dist/theme-ui-color.cjs.js",
66
"module": "dist/theme-ui-color.esm.js",
77
"types": "dist/theme-ui-color.cjs.d.ts",
88
"scripts": {},
99
"dependencies": {
10-
"@theme-ui/css": "0.10.0",
10+
"@theme-ui/css": "0.11.1",
1111
"polished": "^4.0.5"
1212
},
1313
"publishConfig": {

packages/components/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# v0.11.0 (Wed Aug 25 2021)
2+
3+
#### 🐛 Bug Fix
4+
5+
- 0.10 chores [#1842](https://github.com/system-ui/theme-ui/pull/1842) ([@hasparus](https://github.com/hasparus))
6+
7+
#### Authors: 1
8+
9+
- Piotr Monwid-Olechnowicz ([@hasparus](https://github.com/hasparus))
10+
11+
---
12+
113
# v0.10.0 (Sat Jun 19 2021)
214

315
:tada: This release contains work from a new contributor! :tada:

packages/components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@theme-ui/components",
3-
"version": "0.10.0",
3+
"version": "0.11.1",
44
"main": "dist/theme-ui-components.cjs.js",
55
"module": "dist/theme-ui-components.esm.js",
66
"types": "index.d.ts",
@@ -12,7 +12,7 @@
1212
"@styled-system/color": "^5.1.2",
1313
"@styled-system/should-forward-prop": "^5.1.2",
1414
"@styled-system/space": "^5.1.2",
15-
"@theme-ui/css": "0.10.0",
15+
"@theme-ui/css": "0.11.1",
1616
"@types/styled-system": "^5.1.10"
1717
},
1818
"peerDependencies": {

0 commit comments

Comments
 (0)