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

Commit bb7aea6

Browse files
committed
Merge branch 'develop' of github.com:chakra-ui/chakra-ui-vue into develop
2 parents cbc71f2 + 7ddbeb9 commit bb7aea6

File tree

114 files changed

+5997
-2759
lines changed

Some content is hidden

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

114 files changed

+5997
-2759
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ module.exports = {
2020
breadstick: require.resolve('./tests/test-utils/module-mock.js')
2121
},
2222
snapshotSerializers: [
23-
'jest-serializer-vue'
23+
'jest-serializer-vue',
24+
'@emotion/jest/serializer'
2425
],
2526
testMatch: [
2627
'**/**/*.test.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"evalbundle": "bundlesize"
4848
},
4949
"dependencies": {
50+
"@chakra-ui/styled-system": "^1.12.1",
5051
"@emotion/css": "^11.0.0",
5152
"@mdx-js/vue-loader": "^1.6.1",
5253
"@nuxtjs/dotenv": "^1.4.0",
@@ -61,7 +62,6 @@
6162
"@storybook/storybook-deployer": "^2.8.1",
6263
"@storybook/theming": "^5.2.8",
6364
"@storybook/vue": "^5.3.3",
64-
"@styled-system/css": "^5.0.23",
6565
"aria-hidden": "^1.1.1",
6666
"breadstick": "^0.2.14",
6767
"can-use-dom": "^0.1.0",
@@ -91,7 +91,6 @@
9191
"prismjs": "^1.19.0",
9292
"register-service-worker": "^1.6.2",
9393
"sass-loader": "^8.0.2",
94-
"styled-system": "^5.1.2",
9594
"v-scroll-lock": "^1.1.0",
9695
"vue": "^2.6.11",
9796
"vue-error-boundary": "^1.0.3",
@@ -118,6 +117,7 @@
118117
"@commitlint/config-conventional": "^8.2.0",
119118
"@emotion/babel-plugin": "^11.1.2",
120119
"@emotion/eslint-plugin": "^11.0.0",
120+
"@emotion/jest": "^11.3.0",
121121
"@nuxtjs/eslint-config": "^3.0.0",
122122
"@nuxtjs/eslint-module": "^1.0.0",
123123
"@nuxtjs/google-analytics": "^2.4.0",
@@ -169,7 +169,6 @@
169169
"rollup-plugin-scss": "^2.1.0",
170170
"rollup-plugin-terser": "^5.1.2",
171171
"rollup-plugin-vue": "^5.1.4",
172-
"styled-system": "^5.1.2",
173172
"v-scroll-lock": "^1.1.0",
174173
"vue-loader": "^15.7.1",
175174
"vue-lorem-ipsum": "^0.0.1",

packages/chakra-ui-core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"max-overall-size": "85KB"
3737
},
3838
"dependencies": {
39+
"@chakra-ui/styled-system": "^1.12.1",
3940
"@popperjs/core": "^2.4.0",
40-
"@styled-system/css": "^5.0.23",
4141
"animejs": "^3.1.0",
4242
"aria-hidden": "^1.1.1",
4343
"breadstick": "^0.2.14",
@@ -46,7 +46,6 @@
4646
"focus-trap-vue": "^0.0.4",
4747
"lodash-es": "^4.17.15",
4848
"portal-vue": "^2.1.6",
49-
"styled-system": "^5.1.2",
5049
"v-scroll-lock": "^1.1.0"
5150
},
5251
"peerDependencies": {

packages/chakra-ui-core/src/CAccordion/tests/__snapshots__/CAccordion.test.js.snap

Lines changed: 92 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,111 @@
22

33
exports[`should render correctly 1`] = `
44
<DocumentFragment>
5-
<div
6-
class="css-0"
5+
.emotion-2 {
6+
border-top-width: 1px;
7+
}
8+
9+
.emotion-2:last-of-type {
10+
border-bottom-width: 1px;
11+
}
12+
13+
.emotion-3 {
14+
display: -webkit-box;
15+
display: -webkit-flex;
16+
display: -ms-flexbox;
17+
display: flex;
18+
-webkit-align-items: center;
19+
-webkit-box-align: center;
20+
-ms-flex-align: center;
21+
align-items: center;
22+
width: 100%;
23+
outline: 2px solid transparent;
24+
outline-offset: 2px;
25+
-webkit-transition: all 0.2s;
26+
transition: all 0.2s;
27+
-webkit-padding-start: var(--space-4);
28+
padding-inline-start: var(--space-4);
29+
-webkit-padding-end: var(--space-4);
30+
padding-inline-end: var(--space-4);
31+
padding-top: var(--space-2);
32+
padding-bottom: var(--space-2);
33+
}
34+
35+
.emotion-3:focus,
36+
.emotion-3[data-focus] {
37+
box-shadow: var(--shadows-outline);
38+
}
39+
40+
.emotion-3:hover,
41+
.emotion-3[data-hover] {
42+
background: var(--colors-blackAlpha-50);
43+
}
44+
45+
.emotion-3[disabled],
46+
.emotion-3[aria-disabled=true],
47+
.emotion-3[data-disabled] {
48+
opacity: 0.4;
49+
cursor: not-allowed;
50+
}
51+
52+
.emotion-4 {
53+
-webkit-flex-shrink: 0;
54+
-ms-flex-negative: 0;
55+
flex-shrink: 0;
56+
-webkit-backface-visibility: hidden;
57+
backface-visibility: hidden;
58+
}
59+
60+
.emotion-4:not(:root) {
61+
overflow: hidden;
62+
}
63+
64+
.emotion-5 {
65+
width: 1em;
66+
height: 1em;
67+
display: inline-block;
68+
vertical-align: middle;
69+
}
70+
71+
.emotion-7 {
72+
opacity: 1;
73+
-webkit-transform: rotate(-180deg);
74+
-moz-transform: rotate(-180deg);
75+
-ms-transform: rotate(-180deg);
76+
transform: rotate(-180deg);
77+
-webkit-transition: -webkit-transform 0.2s;
78+
transition: transform 0.2s;
79+
transform-origin: center;
80+
}
81+
82+
.emotion-8 {
83+
padding-top: var(--space-2);
84+
-webkit-padding-start: var(--space-4);
85+
padding-inline-start: var(--space-4);
86+
-webkit-padding-end: var(--space-4);
87+
padding-inline-end: var(--space-4);
88+
padding-bottom: var(--space-5);
89+
}
90+
91+
<div
92+
class="emotion-0"
793
data-chakra-component="CAccordion"
894
>
995
<div
10-
class="css-0 css-1b3isn8"
96+
class="emotion-0 emotion-2"
1197
data-chakra-component="CAccordionItem"
1298
>
1399
<button
14100
aria-controls="accordion-panel-ac-1"
15101
aria-expanded="true"
16-
class="css-3q8x3d"
102+
class="emotion-3"
17103
data-chakra-component="CAccordionHeader"
18104
id="accordion-header-ac-1"
19105
type="button"
20106
>
21107
Section 1 title
22108
<svg
23-
class="css-12j51pv css-3vopgu css-0 css-1cdnf31"
109+
class="emotion-4 emotion-5 emotion-0 emotion-7"
24110
data-chakra-component="CAccordionIcon"
25111
role="presentation"
26112
viewBox="0 0 24 24"
@@ -40,7 +126,7 @@ exports[`should render correctly 1`] = `
40126
>
41127
<div
42128
aria-labelledby="accordion-header-ac-1"
43-
class="css-t2ecxu"
129+
class="emotion-8"
44130
data-chakra-component="CAccordionPanel"
45131
id="accordion-panel-ac-1"
46132
role="region"

0 commit comments

Comments
 (0)