@central-ui/react 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/index.d.ts +14 -14
- package/dist/components/accordion/index.js +19 -19
- package/dist/components/autocomplete/index.d.ts +57 -49
- package/dist/components/autocomplete/index.js +69 -60
- package/dist/components/avatar/index.d.ts +7 -6
- package/dist/components/avatar/index.js +9 -9
- package/dist/components/banner/index.js +1 -1
- package/dist/components/carousel/index.d.ts +189 -0
- package/dist/components/carousel/index.js +303 -0
- package/dist/components/checkbox/index.d.ts +12 -11
- package/dist/components/checkbox/index.js +21 -21
- package/dist/components/combobox/index.d.ts +67 -71
- package/dist/components/combobox/index.js +80 -72
- package/dist/components/datepicker/index.d.ts +8 -9
- package/dist/components/datepicker/index.js +13 -13
- package/dist/components/dialog/index.d.ts +18 -18
- package/dist/components/dialog/index.js +22 -21
- package/dist/components/drawer/index.d.ts +24 -24
- package/dist/components/drawer/index.js +28 -27
- package/dist/components/empty/index.d.ts +2 -1
- package/dist/components/empty/index.js +2 -1
- package/dist/components/exception/index.d.ts +98 -0
- package/dist/components/exception/index.js +116 -0
- package/dist/components/fileupload/index.d.ts +8 -8
- package/dist/components/input/index.d.ts +14 -14
- package/dist/components/input/index.js +27 -27
- package/dist/components/menu/index.d.ts +37 -37
- package/dist/components/menu/index.js +47 -47
- package/dist/components/numberinput/index.d.ts +22 -22
- package/dist/components/numberinput/index.js +35 -35
- package/dist/components/otpinput/index.d.ts +12 -12
- package/dist/components/otpinput/index.js +21 -21
- package/dist/components/passwordinput/index.d.ts +15 -15
- package/dist/components/passwordinput/index.js +27 -27
- package/dist/components/popover/index.d.ts +16 -16
- package/dist/components/popover/index.js +20 -19
- package/dist/components/radio/index.d.ts +12 -12
- package/dist/components/radio/index.js +25 -25
- package/dist/components/ratinginput/index.d.ts +1 -1
- package/dist/components/ratinginput/index.js +3 -3
- package/dist/components/select/index.d.ts +32 -29
- package/dist/components/select/index.js +45 -35
- package/dist/components/slider/index.d.ts +20 -20
- package/dist/components/slider/index.js +27 -27
- package/dist/components/stepper/index.d.ts +8 -7
- package/dist/components/stepper/index.js +4 -2
- package/dist/components/switch/index.d.ts +9 -9
- package/dist/components/switch/index.js +17 -17
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/index.js +16 -16
- package/dist/components/tabs/index.d.ts +10 -10
- package/dist/components/tabs/index.js +11 -11
- package/dist/components/textarea/index.d.ts +13 -13
- package/dist/components/textarea/index.js +25 -25
- package/dist/components/toast/index.d.ts +11 -11
- package/dist/components/toast/index.js +11 -11
- package/dist/components/toggle/index.d.ts +7 -7
- package/dist/components/toggle/index.js +9 -9
- package/dist/components/tooltip/index.d.ts +6 -6
- package/dist/components/tooltip/index.js +6 -7
- package/dist/components/tour/index.d.ts +2 -2
- package/dist/components/tour/index.js +5 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/utils/icons.d.ts +92 -23
- package/dist/utils/icons.js +3 -3
- package/package.json +69 -67
- package/src/presets/shopify-polaris/shopify-polaris-accordion.css +28 -28
- package/src/presets/shopify-polaris/shopify-polaris-carousel.css +62 -0
- package/src/presets/shopify-polaris/shopify-polaris-exception.css +40 -0
- package/src/presets/shopify-polaris/shopify-polaris.css +2 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-accordion.css +28 -28
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-carousel.css +55 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-exception.css +40 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css +2 -0
- package/dist/types/Tone.d.ts +0 -3
- package/dist/types/Tone.js +0 -1
- package/dist/utils/Tone.d.ts +0 -2
- package/dist/utils/Tone.js +0 -6
package/package.json
CHANGED
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@central-ui/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Accessible React components with optional Tailwind CSS style presets",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"react",
|
|
8
|
-
"ui",
|
|
9
|
-
"components",
|
|
10
|
-
"ark-ui",
|
|
11
|
-
"unstyled"
|
|
12
|
-
],
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"access": "public"
|
|
15
|
-
},
|
|
16
|
-
"type": "module",
|
|
17
|
-
"sideEffects": [
|
|
18
|
-
"./src/presets/**/*.css"
|
|
19
|
-
],
|
|
20
|
-
"files": [
|
|
21
|
-
"dist",
|
|
22
|
-
"src/presets",
|
|
23
|
-
"README.md",
|
|
24
|
-
"LICENSE"
|
|
25
|
-
],
|
|
26
|
-
"exports": {
|
|
27
|
-
".": {
|
|
28
|
-
"types": "./dist/index.d.ts",
|
|
29
|
-
"import": "./dist/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./presets/shopify-polaris-legacy.css": "./src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css",
|
|
32
|
-
"./presets/shopify-polaris.css": "./src/presets/shopify-polaris/shopify-polaris.css"
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"build": "tsc --project tsconfig.json",
|
|
36
|
-
"prepack": "npm run build",
|
|
37
|
-
"typecheck": "tsc --project tsconfig.json --noEmit"
|
|
38
|
-
},
|
|
39
|
-
"peerDependencies": {
|
|
40
|
-
"react": "^
|
|
41
|
-
"react-dom": "^
|
|
42
|
-
"tailwindcss": "^4.2.1"
|
|
43
|
-
},
|
|
44
|
-
"peerDependenciesMeta": {
|
|
45
|
-
"tailwindcss": {
|
|
46
|
-
"optional": true
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@types/react": "19.3.0",
|
|
51
|
-
"@types/react-dom": "19.3.0",
|
|
52
|
-
"typescript": "6.0.3"
|
|
53
|
-
},
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"@ark-ui/react": "^5.39.3",
|
|
56
|
-
"@base-ui/react": "^1.9.0",
|
|
57
|
-
"@internationalized/date": "^3.12.4",
|
|
58
|
-
"@radix-ui/react-password-toggle-field": "^0.2.1",
|
|
59
|
-
"@tanstack/react-virtual": "^3.14.20",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"react-
|
|
63
|
-
"react-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@central-ui/react",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Accessible React components with optional Tailwind CSS style presets",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"react",
|
|
8
|
+
"ui",
|
|
9
|
+
"components",
|
|
10
|
+
"ark-ui",
|
|
11
|
+
"unstyled"
|
|
12
|
+
],
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"./src/presets/**/*.css"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"src/presets",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./presets/shopify-polaris-legacy.css": "./src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css",
|
|
32
|
+
"./presets/shopify-polaris.css": "./src/presets/shopify-polaris/shopify-polaris.css"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc --project tsconfig.json",
|
|
36
|
+
"prepack": "npm run build",
|
|
37
|
+
"typecheck": "tsc --project tsconfig.json --noEmit"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "^19.0.0",
|
|
41
|
+
"react-dom": "^19.0.0",
|
|
42
|
+
"tailwindcss": "^4.2.1"
|
|
43
|
+
},
|
|
44
|
+
"peerDependenciesMeta": {
|
|
45
|
+
"tailwindcss": {
|
|
46
|
+
"optional": true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/react": "19.3.0",
|
|
51
|
+
"@types/react-dom": "19.3.0",
|
|
52
|
+
"typescript": "6.0.3"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@ark-ui/react": "^5.39.3",
|
|
56
|
+
"@base-ui/react": "^1.9.0",
|
|
57
|
+
"@internationalized/date": "^3.12.4",
|
|
58
|
+
"@radix-ui/react-password-toggle-field": "^0.2.1",
|
|
59
|
+
"@tanstack/react-virtual": "^3.14.20",
|
|
60
|
+
"embla-carousel-autoplay": "8.6.0",
|
|
61
|
+
"embla-carousel-react": "8.6.0",
|
|
62
|
+
"react-aria": "^3.53.1",
|
|
63
|
+
"react-aria-components": "^1.22.1",
|
|
64
|
+
"react-joyride": "^3.2.0",
|
|
65
|
+
"react-resizable-panels": "^4.14.5",
|
|
66
|
+
"recharts": "^3.10.1",
|
|
67
|
+
"tailwind-merge": "^3.7.0"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/* accordion */
|
|
2
|
-
@layer components {
|
|
3
|
-
:where(:not([data-style-disabled])) {
|
|
4
|
-
&:where([data-component='accordion-list']) {
|
|
5
|
-
@apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&:where([data-component='accordion-item']) {
|
|
9
|
-
@apply w-full border-b border-neutral-200 last:border-b-0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&:where([data-component='accordion-openbutton']) {
|
|
13
|
-
@apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-medium text-neutral-950 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&:where([data-component='accordion-
|
|
17
|
-
@apply min-w-0 flex-1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:where([data-component='accordion-
|
|
21
|
-
@apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:where([data-component='accordion-content']) {
|
|
25
|
-
@apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
/* accordion */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='accordion-list']) {
|
|
5
|
+
@apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='accordion-item']) {
|
|
9
|
+
@apply w-full border-b border-neutral-200 last:border-b-0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='accordion-openbutton']) {
|
|
13
|
+
@apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-medium text-neutral-950 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='accordion-openbuttontitle']) {
|
|
17
|
+
@apply min-w-0 flex-1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='accordion-openbuttonicon']) {
|
|
21
|
+
@apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='accordion-content']) {
|
|
25
|
+
@apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* carousel */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='carousel-slideslist']) {
|
|
5
|
+
@apply w-full rounded-xl;
|
|
6
|
+
&[data-orientation='vertical'] {
|
|
7
|
+
@apply h-72;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&:where([data-component='carousel-slide']) {
|
|
12
|
+
@apply basis-full;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:where([data-component='carousel-previousbutton']),
|
|
16
|
+
&:where([data-component='carousel-nextbutton']) {
|
|
17
|
+
@apply flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full p-0 outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default;
|
|
18
|
+
|
|
19
|
+
&:not(:disabled) {
|
|
20
|
+
@apply bg-neutral-200 text-neutral-950 hover:bg-neutral-300 focus-visible:bg-neutral-300 active:bg-neutral-300;
|
|
21
|
+
}
|
|
22
|
+
&:disabled {
|
|
23
|
+
@apply bg-black/3 text-neutral-400;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:where([data-component='carousel-previousbuttonicon']),
|
|
28
|
+
&:where([data-component='carousel-nextbuttonicon']) {
|
|
29
|
+
@apply h-4 w-fit shrink-0;
|
|
30
|
+
&[data-orientation='vertical'] {
|
|
31
|
+
@apply rotate-90;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:where([data-component='carousel-indicatorlist']) {
|
|
36
|
+
@apply flex items-center justify-center gap-1.5;
|
|
37
|
+
&[data-orientation='vertical'] {
|
|
38
|
+
@apply flex-col;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:where([data-component='carousel-indicatorbutton']) {
|
|
43
|
+
@apply flex shrink-0 cursor-pointer items-center justify-center p-0 outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 transition-[width,height,background-color,opacity] duration-300 motion-reduce:transition-none disabled:pointer-events-none disabled:opacity-50;
|
|
44
|
+
|
|
45
|
+
/* A dot when empty, stretching into a pill while selected */
|
|
46
|
+
&:empty {
|
|
47
|
+
@apply size-2 rounded-full bg-neutral-300 hover:bg-neutral-400 data-selected:bg-neutral-950;
|
|
48
|
+
&[data-selected][data-orientation='horizontal'] {
|
|
49
|
+
@apply w-5;
|
|
50
|
+
}
|
|
51
|
+
&[data-selected][data-orientation='vertical'] {
|
|
52
|
+
@apply h-5;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Custom content, like a thumbnail, faded until selected */
|
|
57
|
+
&:not(:empty) {
|
|
58
|
+
@apply overflow-hidden rounded-lg opacity-50 hover:opacity-80 data-selected:opacity-100;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* exception */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='exception-surface']) {
|
|
5
|
+
@apply flex h-full w-full flex-1 flex-col items-center justify-center p-4;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='exception-body']) {
|
|
9
|
+
@apply flex h-fit w-full max-w-150 flex-col items-center justify-center gap-1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='exception-title']) {
|
|
13
|
+
@apply text-sm font-semibold text-center text-neutral-950;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='exception-title'][data-tone='critical']) {
|
|
17
|
+
@apply text-red-700;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='exception-description']) {
|
|
21
|
+
@apply text-sm font-normal text-center text-neutral-600;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='exception-image']) {
|
|
25
|
+
@apply mb-4 h-16 w-fit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='exception-icon']) {
|
|
29
|
+
@apply mb-2 h-8 w-fit text-neutral-950;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='exception-actionslist']) {
|
|
33
|
+
@apply mt-3 flex w-fit items-center gap-4;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='exception-helptext']) {
|
|
37
|
+
@apply mt-3 text-xs text-center text-neutral-500;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -29,10 +29,12 @@
|
|
|
29
29
|
@import './shopify-polaris-chip.css';
|
|
30
30
|
@import './shopify-polaris-textlink.css';
|
|
31
31
|
@import './shopify-polaris-empty.css';
|
|
32
|
+
@import './shopify-polaris-exception.css';
|
|
32
33
|
@import './shopify-polaris-spinner.css';
|
|
33
34
|
@import './shopify-polaris-popover.css';
|
|
34
35
|
@import './shopify-polaris-table.css';
|
|
35
36
|
@import './shopify-polaris-card.css';
|
|
37
|
+
@import './shopify-polaris-carousel.css';
|
|
36
38
|
@import './shopify-polaris-skeleton.css';
|
|
37
39
|
@import './shopify-polaris-avatar.css';
|
|
38
40
|
@import './shopify-polaris-metric.css';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/* accordion */
|
|
2
|
-
@layer components {
|
|
3
|
-
:where(:not([data-style-disabled])) {
|
|
4
|
-
&:where([data-component='accordion-list']) {
|
|
5
|
-
@apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-300 bg-white;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&:where([data-component='accordion-item']) {
|
|
9
|
-
@apply w-full border-b border-neutral-300 last:border-b-0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&:where([data-component='accordion-openbutton']) {
|
|
13
|
-
@apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-semibold text-neutral-900 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&:where([data-component='accordion-
|
|
17
|
-
@apply min-w-0 flex-1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:where([data-component='accordion-
|
|
21
|
-
@apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:where([data-component='accordion-content']) {
|
|
25
|
-
@apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
/* accordion */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='accordion-list']) {
|
|
5
|
+
@apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-300 bg-white;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='accordion-item']) {
|
|
9
|
+
@apply w-full border-b border-neutral-300 last:border-b-0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='accordion-openbutton']) {
|
|
13
|
+
@apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-semibold text-neutral-900 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='accordion-openbuttontitle']) {
|
|
17
|
+
@apply min-w-0 flex-1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='accordion-openbuttonicon']) {
|
|
21
|
+
@apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='accordion-content']) {
|
|
25
|
+
@apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* carousel */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='carousel-slideslist']) {
|
|
5
|
+
@apply w-full rounded-lg;
|
|
6
|
+
&[data-orientation='vertical'] {
|
|
7
|
+
@apply h-72;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&:where([data-component='carousel-slide']) {
|
|
12
|
+
@apply basis-full;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:where([data-component='carousel-previousbutton']),
|
|
16
|
+
&:where([data-component='carousel-nextbutton']) {
|
|
17
|
+
@apply flex size-7.5 shrink-0 cursor-pointer items-center justify-center rounded-lg p-0 bg-white text-neutral-700 outline-none focus-visible:outline-2 focus-visible:outline-blue-500 shadow-[0_-1px_0_0_#b5b5b5_inset,0_0_0_1px_rgba(0,0,0,0.1)_inset,0_0.5px_0_1.5px_#fff_inset] hover:bg-neutral-50 active:pt-[0.1rem] active:shadow-[0px_2px_1px_0px_rgba(0,0,0,0.19)_inset,0px_0px_0px_50px_rgba(0,0,0,0.025)_inset,0px_-1px_1px_0px_rgba(0,0,0,0.1)_inset] disabled:pointer-events-none disabled:opacity-50;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='carousel-previousbuttonicon']),
|
|
21
|
+
&:where([data-component='carousel-nextbuttonicon']) {
|
|
22
|
+
@apply h-4 w-fit shrink-0;
|
|
23
|
+
&[data-orientation='vertical'] {
|
|
24
|
+
@apply rotate-90;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='carousel-indicatorlist']) {
|
|
29
|
+
@apply flex items-center justify-center gap-1.5;
|
|
30
|
+
&[data-orientation='vertical'] {
|
|
31
|
+
@apply flex-col;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:where([data-component='carousel-indicatorbutton']) {
|
|
36
|
+
@apply flex shrink-0 cursor-pointer items-center justify-center p-0 outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 transition-[width,height,background-color,opacity] duration-300 motion-reduce:transition-none disabled:pointer-events-none disabled:opacity-50;
|
|
37
|
+
|
|
38
|
+
/* A dot when empty, stretching into a pill while selected */
|
|
39
|
+
&:empty {
|
|
40
|
+
@apply size-2 rounded-full bg-neutral-300 hover:bg-neutral-400 data-selected:bg-neutral-800;
|
|
41
|
+
&[data-selected][data-orientation='horizontal'] {
|
|
42
|
+
@apply w-5;
|
|
43
|
+
}
|
|
44
|
+
&[data-selected][data-orientation='vertical'] {
|
|
45
|
+
@apply h-5;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Custom content, like a thumbnail, faded until selected */
|
|
50
|
+
&:not(:empty) {
|
|
51
|
+
@apply overflow-hidden rounded-md opacity-50 hover:opacity-80 data-selected:opacity-100;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* exception */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='exception-surface']) {
|
|
5
|
+
@apply flex h-full w-full flex-1 flex-col items-center justify-center p-4;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='exception-body']) {
|
|
9
|
+
@apply flex h-fit w-full max-w-150 flex-col items-center justify-center gap-1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='exception-title']) {
|
|
13
|
+
@apply text-base font-semibold text-neutral-900;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='exception-title'][data-tone='critical']) {
|
|
17
|
+
@apply text-red-700;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='exception-description']) {
|
|
21
|
+
@apply text-sm font-medium text-neutral-600;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='exception-image']) {
|
|
25
|
+
@apply mb-4 h-16 w-fit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='exception-icon']) {
|
|
29
|
+
@apply mb-2 h-8 w-fit text-neutral-900;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='exception-actionslist']) {
|
|
33
|
+
@apply mt-3 flex w-fit items-center gap-4;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='exception-helptext']) {
|
|
37
|
+
@apply mt-3 text-xs text-center text-neutral-500;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@import './shopify-polaris-legacy-breadcrumb.css';
|
|
7
7
|
@import './shopify-polaris-legacy-button.css';
|
|
8
8
|
@import './shopify-polaris-legacy-card.css';
|
|
9
|
+
@import './shopify-polaris-legacy-carousel.css';
|
|
9
10
|
@import './shopify-polaris-legacy-checkbox.css';
|
|
10
11
|
@import './shopify-polaris-legacy-combobox.css';
|
|
11
12
|
@import './shopify-polaris-legacy-datepicker.css';
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
@import './shopify-polaris-legacy-divider.css';
|
|
14
15
|
@import './shopify-polaris-legacy-drawer.css';
|
|
15
16
|
@import './shopify-polaris-legacy-empty.css';
|
|
17
|
+
@import './shopify-polaris-legacy-exception.css';
|
|
16
18
|
@import './shopify-polaris-legacy-fileupload.css';
|
|
17
19
|
@import './shopify-polaris-legacy-form.css';
|
|
18
20
|
@import './shopify-polaris-legacy-input.css';
|
package/dist/types/Tone.d.ts
DELETED
package/dist/types/Tone.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/utils/Tone.d.ts
DELETED
package/dist/utils/Tone.js
DELETED