Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit f420f5c

Browse files
Merge pull request #251 from chakra-ui/fix/color-mode-utils-semantic-tokens
Feat: Support Semantic tokens, Add Color Mode Storage Manager, Fix Avatar Styles, and Upgrade Cypress"
2 parents adaf41d + 80a446b commit f420f5c

File tree

216 files changed

+19955
-32969
lines changed

Some content is hidden

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

216 files changed

+19955
-32969
lines changed

.changeset/great-brooms-add.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
"@chakra-ui/c-visually-hidden": minor
3+
"@chakra-ui/c-theme-provider": minor
4+
"@chakra-ui/vue-composables": minor
5+
"@chakra-ui/c-close-button": minor
6+
"@chakra-ui/c-form-control": minor
7+
"@chakra-ui/c-media-query": minor
8+
"@chakra-ui/c-scroll-lock": minor
9+
"@chakra-ui/c-breadcrumb": minor
10+
"@chakra-ui/c-color-mode": minor
11+
"@chakra-ui/c-focus-lock": minor
12+
"@chakra-ui/c-accordion": minor
13+
"@chakra-ui/c-pin-input": minor
14+
"@chakra-ui/c-checkbox": minor
15+
"@chakra-ui/c-skip-nav": minor
16+
"@chakra-ui/vue-test-utils": minor
17+
"@chakra-ui/vue-auto-import": minor
18+
"@chakra-ui/c-spinner": minor
19+
"@chakra-ui/c-avatar": minor
20+
"@chakra-ui/c-button": minor
21+
"@chakra-ui/c-motion": minor
22+
"@chakra-ui/c-popper": minor
23+
"@chakra-ui/c-portal": minor
24+
"@chakra-ui/vue-a11y": minor
25+
"@chakra-ui/c-alert": minor
26+
"@chakra-ui/c-image": minor
27+
"@chakra-ui/c-input": minor
28+
"@chakra-ui/c-modal": minor
29+
"@chakra-ui/c-reset": minor
30+
"@chakra-ui/c-code": minor
31+
"@chakra-ui/c-flex": minor
32+
"@chakra-ui/c-icon": minor
33+
"@chakra-ui/vue-layout": minor
34+
"@chakra-ui/vue-styled": minor
35+
"@chakra-ui/vue-system": minor
36+
"@chakra-ui/c-tag": minor
37+
"@chakra-ui/vue-utils": minor
38+
"@chakra-ui/vue-next": minor
39+
"@chakra-ui/nuxt-next": minor
40+
---
41+
42+
- Feat: Adds `colorModeManager` Storage entity to cache color mode from local
43+
env
44+
- Fix: adds semantic tokens support to theme
45+
- Feat: Add `CDarkMode` and `CLightMode` components

.github/workflows/pr.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -17,66 +17,66 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
node-version: [16]
20+
node-version: [18]
2121
steps:
22-
- name: Get Yarn cache path
23-
id: yarn-cache
24-
run: echo "::set-output name=dir::$(yarn cache dir)"
22+
- name: Get Yarn cache path
23+
id: yarn-cache
24+
run: echo "::set-output name=dir::$(yarn cache dir)"
2525

26-
- name: Checkout
27-
uses: actions/checkout@v2
26+
- name: Checkout
27+
uses: actions/checkout@v2
2828

29-
- name: Use Node.js ${{ matrix.node-version }}
30-
uses: actions/setup-node@v1
31-
with:
32-
node-version: ${{ matrix.node-version }}
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node-version }}
3333

34-
- name: Load Yarn cache
35-
uses: actions/cache@v2
36-
with:
37-
path: ${{ steps.yarn-cache.outputs.dir }}
38-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39-
restore-keys: |
40-
${{ runner.os }}-yarn-
34+
- name: Load Yarn cache
35+
uses: actions/cache@v2
36+
with:
37+
path: ${{ steps.yarn-cache.outputs.dir }}
38+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39+
restore-keys: |
40+
${{ runner.os }}-yarn-
4141
42-
- name: Install dependencies
43-
run: yarn install --frozen-lockfile
42+
- name: Install dependencies
43+
run: yarn install --frozen-lockfile
4444

45-
- name: Lint types and code
46-
run: yarn lint
45+
- name: Lint types and code
46+
run: yarn lint
4747

48-
- name: Build packages
49-
run: yarn build
48+
- name: Build packages
49+
run: yarn build
5050

51-
- name: Run tests
52-
run: yarn test:ci
53-
env:
54-
CI: true
51+
- name: Run tests
52+
run: yarn test:ci
53+
env:
54+
CI: true
5555

5656
bundlesize:
5757
runs-on: ubuntu-latest
5858
steps:
59-
- name: Get Yarn cache path
60-
id: yarn-cache
61-
run: echo "::set-output name=dir::$(yarn cache dir)"
59+
- name: Get Yarn cache path
60+
id: yarn-cache
61+
run: echo "::set-output name=dir::$(yarn cache dir)"
6262

63-
- name: Checkout
64-
uses: actions/checkout@master
63+
- name: Checkout
64+
uses: actions/checkout@master
6565

66-
- name: Setup Node.js 16.x
67-
uses: actions/setup-node@master
68-
with:
69-
node-version: 16.x
66+
- name: Setup Node.js 16.x
67+
uses: actions/setup-node@master
68+
with:
69+
node-version: 16.x
7070

71-
- name: Load Yarn cache
72-
uses: actions/cache@v2
73-
with:
74-
path: ${{ steps.yarn-cache.outputs.dir }}
75-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
76-
restore-keys: |
77-
${{ runner.os }}-yarn-
78-
- name: compressed-size-action
79-
uses: preactjs/compressed-size-action@v2
80-
with:
81-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
82-
pattern: "**/dist/**/*.prod.js"
71+
- name: Load Yarn cache
72+
uses: actions/cache@v2
73+
with:
74+
path: ${{ steps.yarn-cache.outputs.dir }}
75+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
76+
restore-keys: |
77+
${{ runner.os }}-yarn-
78+
- name: compressed-size-action
79+
uses: preactjs/compressed-size-action@v2
80+
with:
81+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
82+
pattern: "**/dist/**/*.prod.js"

.github/workflows/release.yml

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -15,58 +15,57 @@ jobs:
1515
name: Release
1616
runs-on: ubuntu-latest
1717
steps:
18-
- name: Get Yarn cache path
19-
id: yarn-cache
20-
run: echo "::set-output name=dir::$(yarn cache dir)"
18+
- name: Get Yarn cache path
19+
id: yarn-cache
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
2121

22-
- name: Checkout Repo
23-
uses: actions/checkout@master
24-
with:
25-
# This makes Actions fetch all Git history
26-
# so that Changesets can generate changelogs with the correct commits
27-
fetch-depth: 0
22+
- name: Checkout Repo
23+
uses: actions/checkout@master
24+
with:
25+
# This makes Actions fetch all Git history
26+
# so that Changesets can generate changelogs with the correct commits
27+
fetch-depth: 0
2828

29-
- name: Use Node.js 16.x
30-
uses: actions/setup-node@master
31-
with:
32-
node-version: 16
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@master
31+
with:
32+
node-version: 18
3333

34-
- name: Load Yarn cache
35-
uses: actions/cache@v2
36-
with:
37-
path: ${{ steps.yarn-cache.outputs.dir }}
38-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39-
restore-keys: |
40-
${{ runner.os }}-yarn-
34+
- name: Load Yarn cache
35+
uses: actions/cache@v2
36+
with:
37+
path: ${{ steps.yarn-cache.outputs.dir }}
38+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39+
restore-keys: |
40+
${{ runner.os }}-yarn-
4141
42-
- name: Install dependencies
43-
run: yarn install --frozen-lockfile && yarn bootstrap
42+
- name: Install dependencies
43+
run: yarn install --frozen-lockfile && yarn bootstrap
4444

45+
- name: Linting
46+
run: yarn lint
4547

46-
- name: Linting
47-
run: yarn lint
48+
- name: Building packages
49+
run: yarn build && yarn bootstrap
4850

49-
- name: Building packages
50-
run: yarn build && yarn bootstrap
51+
- name: Testing components
52+
run: yarn test:ci
53+
env:
54+
CI: true
5155

52-
- name: Testing components
53-
run: yarn test:ci
54-
env:
55-
CI: true
56+
# TODO: Uncomment when ready to start testing RCs
5657

57-
# TODO: Uncomment when ready to start testing RCs
58+
- name: Setup CI Git User
59+
run: |
60+
git config --global user.name "codebender828"
61+
git config --global user.email "[email protected]"
5862
59-
- name: Setup CI Git User
60-
run: |
61-
git config --global user.name "codebender828"
62-
git config --global user.email "[email protected]"
63-
64-
- name: Create Release Pull Request
65-
uses: changesets/action@master
66-
with:
67-
publish: yarn release
68-
title: "chore(release): version packages and publish"
69-
commit: "chore(release): version packages"
70-
env:
71-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
72-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
- name: Create Release Pull Request
64+
uses: changesets/action@master
65+
with:
66+
publish: yarn release
67+
title: "chore(release): version packages and publish"
68+
commit: "chore(release): version packages"
69+
env:
70+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,6 @@ website/.vite-ssg-temp
111111
cypress/screenshots
112112
# playground/build/components.json
113113
.idea/*
114+
.yarn
115+
.yarnrc
116+
.yarnrc.yml

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.x

.yarn/releases/yarn-3.3.1.cjs

Lines changed: 0 additions & 823 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)