Skip to content

Commit e945498

Browse files
committed
Merge branch 'develop' into tailwind-preset-typescript
2 parents c61834e + a3f5844 commit e945498

File tree

371 files changed

+15725
-10817
lines changed

Some content is hidden

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

371 files changed

+15725
-10817
lines changed

.github/CODEOWNERS

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Hi there!
2+
# If you're using one of Theme UI packages a lot, and you would like to help
3+
# maintaining it, let us know on our Discord https://discord.gg/U5sQYcuaj2.
4+
# As you can see below, there are tons of packages here, and they are always
5+
# looking for maintainers. The more the merrier!
6+
7+
**/types.ts @hasparus
8+
**/types.tsx @hasparus
9+
10+
# packages/chrome DEPRECATED
11+
packages/color @hasparus
12+
packages/color-modes @hasparus
13+
packages/components @atanasster
14+
packages/core @hasparus
15+
packages/css @hasparus
16+
packages/custom-properties @hasparus
17+
packages/docs @lachlanjc @hasparus
18+
# packages/editor looking for maintainers!
19+
# packages/gatsby-plugin-theme-ui looking for maintainers!
20+
# packages/gatsby-theme-code-recipes looking for maintainers!
21+
# packages/gatsby-theme-style-guide looking for maintainers!
22+
# packages/gatsby-theme-ui-blog looking for maintainers!
23+
# packages/gatsby-theme-ui-layout looking for maintainers!
24+
packages/match-media @hasparus
25+
packages/mdx @hasparus
26+
packages/parse-props @hasparus
27+
packages/preset-base @hasparus
28+
packages/preset-bootstrap @hasparus
29+
packages/preset-bulma @hasparus
30+
packages/preset-dark @hasparus
31+
packages/preset-deep @hasparus
32+
packages/preset-funk @hasparus
33+
packages/preset-future @hasparus
34+
packages/preset-polaris @hasparus
35+
packages/preset-roboto @hasparus
36+
packages/presets @hasparus
37+
packages/preset-sketchy @hasparus @beerose
38+
packages/preset-swiss @hasparus
39+
packages/preset-system @hasparus
40+
packages/preset-tailwind @hasparus
41+
packages/preset-tosh @hasparus
42+
packages/prism @hasparus
43+
packages/sidenav @hasparus
44+
packages/style-guide @hasparus
45+
packages/tachyons @hasparus
46+
packages/tailwind @hasparus
47+
packages/test-utils @hasparus
48+
packages/theme-provider @hasparus
49+
packages/theme-ui @hasparus
50+
packages/typography @hasparus
51+
52+
# examples/codesandbox-starter
53+
# examples/create-react-app
54+
# examples/custom-pragma
55+
# examples/dark-mode
56+
# examples/gatsby
57+
# examples/gatsby-plugin
58+
59+
examples/next @lachlanjc
60+
61+
# examples/prism
62+
# examples/typography

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/validate-codeowners.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# usage
2+
# bash validate-codeowners.sh <github-token>
3+
4+
if [ "$1" != "" ]; then
5+
export GH_TOKEN=$1
6+
fi
7+
8+
docker run --rm -v $(pwd):/repo -w /repo \
9+
-e REPOSITORY_PATH="." \
10+
-e GITHUB_ACCESS_TOKEN="$GH_TOKEN" \
11+
-e OWNER_CHECKER_REPOSITORY="system-ui/theme-ui" \
12+
mszostok/codeowners-validator:v0.5.1

.github/workflows/ci.yml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
# Branches from forks have the form 'user:branch-name' so we only run
8+
# this job on pull_request events for branches that look like fork
9+
# branches. Without this we would end up running this job twice for non
10+
# forked PRs, once for the push and then once for opening the PR.
11+
- '**:**'
412

513
jobs:
614
build:
7-
815
runs-on: ubuntu-latest
916

1017
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
13-
with:
14-
node-version: 12.x
15-
- name: Get yarn cache directory path
16-
id: yarn-cache-dir
17-
run: echo "::set-output name=dir::$(yarn cache dir)"
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: 12.x
22+
- name: Get yarn cache directory path
23+
id: yarn-cache-dir
24+
run: echo "::set-output name=dir::$(yarn cache dir)"
1825

19-
- uses: actions/cache@v1
20-
with:
21-
path: ${{ steps.yarn-cache-dir.outputs.dir }}
22-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23-
restore-keys: |
24-
${{ runner.os }}-yarn-
25-
- run: yarn
26-
- run: yarn test --coverage
27-
- run: yarn typecheck
26+
- uses: actions/cache@v1
27+
with:
28+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
29+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-yarn-
32+
- run: yarn
33+
- run: yarn test --coverage
34+
- run: yarn typecheck

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ coverage
88
.rts2_cache*
99
.idea
1010
.vscode
11+
.envrc

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ yarn.lock
55
node_modules
66
dist
77
coverage
8+
examples/next/.next
89
docs/src/pages/index.mdx

CHANGELOG.md

Lines changed: 180 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,190 @@
11
# Changelog
22

3-
## Unreleased
3+
## UNRELEASED
4+
45
- Tailwind preset typescript compatibility. Issue #1139
6+
7+
## v0.6.0 UNRELEASED
8+
9+
- Extract objects with nested variant props. Issue #1357
10+
- Add ability for MDX styling, and fix mdx table align styles. Issue #654
11+
- Remove recursive default values from CSS custom properties. PR #1327
12+
- Support a `"default"` key for object in scales. PR #951
13+
- Render extra Embed props onto `iframe` tag instead of wrapping `div`. Issue #966, PR #1122
14+
15+
## v0.6.0-alpha.1
16+
17+
- Switches from lodash.kebabCase to alternative package ([param-case](/blakeembrey/change-case/tree/master/packages/param-case)) per [official Lodash documentation](https://lodash.com/per-method-packages). PR #1304
18+
- Rebuilds Prism preset with latest upstream theme changes. PR #1304
19+
- Fix: Preserve order of variant expansion props. PR #1326
20+
_(bug introduced in 0.5.0-alpha.1)_
21+
22+
## v0.6.0-alpha.0
23+
24+
- **BREAKING**: Rename `Styled` component to `Themed`. PR #1323
25+
- **BREAKING**: Make Text component use `span` instead of `div`
26+
- **breaking TypeScript**: Renamed and removed types. PR #1308
27+
- `SxProps` to `SxProp`.
28+
- `SxStyleProp`, an alias for `ThemeUIStyleObject` removed. Use `ThemeUIStyleObject` instead.
29+
- Fix: Add `sx` props types to all props accepting `className`. PR #1308
30+
- Fix WithPoorAsProp to work with ComponentProps utility type. PR #1308
31+
32+
## v0.5.0-alpha.2 2020-11-30
33+
34+
- Add Paragraph component. PR #1298
35+
36+
## v0.5.0-alpha.1 2020-11-26
37+
38+
- Bump React peerDependency to `"^16.14.0 || ^17.0.0"`.
39+
- Support automatic JSX runtime. Issue #1160, PR #1237
40+
- Bump React peerDependency to `"^16.14.0 || ^17.0.0"`.
41+
- Apply variant styles _before_ responsive styles. Issues #1030, and #720, PR #1273
42+
43+
## v0.5.0-alpha.0 2020-11-20
44+
45+
- **BREAKING**: Upgrade to Emotion 11, and `csstype` 3. PR #1261
46+
- We are now depending on `@emotion/react@11` instead of `@emotion/core@10`
47+
- `sx` prop types are still global, and we opt in for Emotion `css` prop types (This will change in the future.)
48+
- Refer to [Emotion 11 release notes](https://emotion.sh/docs/emotion-11) for more information.
49+
50+
## v0.4.0-rc.14 2020-11-20
51+
52+
### `@theme-ui/color-modes`
53+
54+
- Fix color CSS Custom Properties recursive reference
55+
56+
## v0.4.0-rc.13 2020-11-20
57+
58+
### `@theme-ui/css`
59+
60+
- Add transitions scale. Issue #1079, PR #1272
61+
62+
## v0.4.0-rc.12 2020-11-18
63+
64+
### `theme-ui`
65+
66+
- Use correct version of @theme-ui/components in theme-ui package.
67+
(Locked dependencies on other Theme UI packages)
68+
69+
## v0.4.0-rc.11 2020-11-18
70+
71+
### docs
72+
73+
- Add documentation on CSS keyframes #1269
74+
75+
### `@theme-ui/color-modes`
76+
77+
- Add configuration option for printing color mode. PR #1267, issue #1144.
78+
79+
```
80+
{
81+
initialColorModeName: "dark",
82+
printColorModeName: "light"
83+
}
84+
```
85+
86+
### `@theme-ui/components`
87+
88+
- Add `arrow` prop to Select to allow passing custom arrow icon. Issues #1177 #1151, PR #1232
89+
- Fix: Field component uses `id` if passed. PR #1252
90+
- Fix circular import in Switch.js
91+
92+
## v0.4.0-rc.9 2020-11-17
93+
94+
### `@theme-ui/components`
95+
96+
- Fix Button not respecting hidden prop. Issue #1254
97+
- Add `minWidth: min-content` on Checkbox and Radio. PR #1256
98+
99+
## v0.4.0-rc.8 2020-11-09
100+
101+
### `@theme-ui/color`
102+
103+
- Fix support for rgb/hsl color values
104+
105+
### `@theme-ui/components`
106+
107+
- Add Switch component #1035
108+
109+
```tsx
110+
<Label>
111+
<Switch /> Enable email alerts?
112+
</Label>
113+
```
114+
115+
- Pass `size` prop down to IconButton in Close component. PR #1242
116+
117+
```tsx
118+
<Close size={24} />
119+
```
120+
121+
### examples
122+
123+
- Convert Gatsby example to TypeScript and stop using removed components. Issue #1227, PR #1229
124+
125+
## v0.4.0-rc.7 2020-11-08
126+
127+
### `@theme-ui/core`
128+
5129
- Make ThemeProvider `theme` prop required
6-
- Removes overriding property on editor combobox
7-
- Adjust media query sort logic #600
8-
- Fixed link to Gatsby Plugin page in `getting-started` page. Issue #602
9-
- Fixed peer dependencies to keep yarn berry happy. Issue #725
10-
- Fix broken base-preset link on `theming` page
130+
131+
### `@theme-ui/editor`
132+
133+
- Removes overriding property on editor combobox #687
134+
135+
### `@theme-ui/preset-sketchy`
136+
11137
- Add `@theme-ui/preset-sketchy`
12-
- `@theme-ui/prism`: add support for highlighting lines #895
13-
- `@theme-ui/style-guide`: pass `size` prop to ColorRow component #941
138+
139+
### `@theme-ui/prism`
140+
141+
- Add support for highlighting lines #895
142+
143+
### `@theme-ui/sidenav`
144+
14145
- `@theme-ui/sidenav`: move React to peerDependencies #978
15146

147+
### `@theme-ui/style-guide`
148+
149+
- Pass `size` prop to ColorRow component #941
150+
151+
### `@theme-ui/color-modes`
152+
153+
- Accept SetStateAction and generic parameter #1174
154+
155+
### docs
156+
157+
- Fix broken base-preset link on `theming` page
158+
159+
## v0.3.2 2020-11-08
160+
161+
- Fix peer dependencies. Issue #725, PR #836
162+
163+
### `@theme-ui/css`
164+
165+
- Add theme colors support to columnRuleColor and caretColor #1085
166+
- Support scrollPadding variations in sx props. Issue #1214
167+
168+
### `@theme-ui/core`
169+
170+
- Support Webpack 5. (Uses default export from package.json instead of named export) #1141
171+
172+
### `@theme-ui/components`
173+
174+
- Add `primary` as default variant for `Badge` component #1109
175+
- Add `primary` as default variant for `Alert` component #1102
176+
- Add `theme.text.default` variant for `Text` component #870
177+
178+
### docs
179+
180+
- Fix example logo on Avatar & Image component docs #1233
181+
- Fix theme editor output in docs #1182
182+
183+
## v0.3.1 2020-01-32
184+
185+
- Adjusts media query sort logic #600
186+
- Fixes link to Gatsby Plugin page in `getting-started` page. Issue #602, PR #603
187+
16188
## v0.3.0 2020-01-22
17189

18190
- Split theme-ui package into `@theme-ui/core`, `@theme-ui/mdx`, and `@theme-ui/color-modes`

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Install dependencies and link local packages in the root directory:
2121
yarn
2222
```
2323

24-
After yarn has linked packages and installed dependences in the repo you can run the docs or an
24+
After yarn has linked packages and installed dependencies in the repo you can run the docs or an
2525
example site in the workspace with this command:
2626

2727
```sh

0 commit comments

Comments
 (0)