@central-ui/react 0.3.0 → 0.5.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 +51 -47
- package/dist/components/autocomplete/index.js +57 -57
- 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 +31 -11
- package/dist/components/carousel/index.js +25 -21
- package/dist/components/checkbox/index.d.ts +12 -11
- package/dist/components/checkbox/index.js +21 -21
- package/dist/components/combobox/index.d.ts +56 -56
- package/dist/components/combobox/index.js +67 -68
- 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/exception/index.d.ts +23 -11
- package/dist/components/exception/index.js +17 -17
- 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/pagination/index.d.ts +158 -0
- package/dist/components/pagination/index.js +157 -0
- 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 +29 -29
- package/dist/components/select/index.js +33 -33
- package/dist/components/slider/index.d.ts +20 -20
- package/dist/components/slider/index.js +27 -27
- package/dist/components/stepper/index.d.ts +135 -44
- package/dist/components/stepper/index.js +185 -62
- 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 +1 -0
- package/dist/index.js +1 -0
- package/dist/utils/icons.d.ts +104 -23
- package/dist/utils/icons.js +16 -3
- package/package.json +69 -69
- package/src/presets/shopify-polaris/shopify-polaris-accordion.css +28 -28
- package/src/presets/shopify-polaris/shopify-polaris-pagination.css +55 -0
- package/src/presets/shopify-polaris/shopify-polaris-stepper.css +63 -27
- package/src/presets/shopify-polaris/shopify-polaris.css +1 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-accordion.css +28 -28
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-pagination.css +49 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-stepper.css +64 -26
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css +1 -0
|
@@ -1,55 +1,91 @@
|
|
|
1
1
|
/* stepper */
|
|
2
2
|
@layer components {
|
|
3
3
|
:where(:not([data-style-disabled])) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
/* Steps on the left of the current Content */
|
|
5
|
+
&:where([data-component='stepper-container']) {
|
|
6
|
+
@apply flex w-full items-start gap-8;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&:where([data-component='stepper-itemslist']) {
|
|
10
|
+
@apply flex w-56 shrink-0 flex-col;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&:where([data-component='stepper-body']) {
|
|
14
|
+
@apply flex min-w-0 flex-col gap-3;
|
|
9
15
|
}
|
|
10
16
|
|
|
17
|
+
&:where([data-component='stepper-footer']) {
|
|
18
|
+
@apply flex items-center gap-2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Indicator on the left, spanning the meta, title and description stacked beside it */
|
|
11
22
|
&:where([data-component='stepper-item']) {
|
|
12
|
-
@apply
|
|
13
|
-
|
|
14
|
-
|
|
23
|
+
@apply grid w-full cursor-pointer grid-cols-[auto_1fr] content-start gap-x-3 pb-7 text-left outline-none last:pb-0 focus-visible:rounded-lg focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500;
|
|
24
|
+
/* Steps move only with Previous and Next */
|
|
25
|
+
&[data-prevent-clicks] {
|
|
26
|
+
@apply cursor-default;
|
|
15
27
|
}
|
|
16
28
|
}
|
|
17
29
|
|
|
18
30
|
&:where([data-component='stepper-indicator']) {
|
|
19
|
-
@apply flex
|
|
31
|
+
@apply row-span-3 flex aspect-square size-6.5 shrink-0 items-center justify-center rounded-full text-xs font-medium tabular-nums transition-colors duration-200;
|
|
32
|
+
&[data-incomplete] {
|
|
33
|
+
@apply bg-neutral-200 text-neutral-500;
|
|
34
|
+
}
|
|
35
|
+
&[data-current] {
|
|
36
|
+
@apply bg-blue-600 text-white ring-4 ring-blue-200;
|
|
37
|
+
}
|
|
38
|
+
&[data-complete] {
|
|
39
|
+
@apply bg-neutral-950 text-white;
|
|
40
|
+
}
|
|
20
41
|
}
|
|
21
42
|
|
|
22
|
-
&:where([data-component='stepper-
|
|
23
|
-
@apply
|
|
43
|
+
&:where([data-component='stepper-indicatoricon']) {
|
|
44
|
+
@apply size-3.5 shrink-0;
|
|
24
45
|
}
|
|
25
46
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@apply
|
|
47
|
+
/* Optional small text above the title, centered on the Indicator */
|
|
48
|
+
&:where([data-component='stepper-itemmeta']) {
|
|
49
|
+
@apply col-start-2 text-xs text-neutral-600 ;
|
|
50
|
+
&[data-incomplete] {
|
|
51
|
+
@apply text-neutral-400;
|
|
52
|
+
}
|
|
29
53
|
}
|
|
30
54
|
|
|
31
|
-
&:where([data-component='stepper-
|
|
32
|
-
|
|
33
|
-
|
|
55
|
+
&:where([data-component='stepper-itemtitle']) {
|
|
56
|
+
@apply col-start-2 text-[0.9rem] -mt-0.5 font-medium text-neutral-950 truncate;
|
|
57
|
+
/* Centered on the Indicator when no ItemMeta comes first */
|
|
58
|
+
|
|
59
|
+
&[data-incomplete] {
|
|
60
|
+
@apply text-neutral-400;
|
|
61
|
+
}
|
|
34
62
|
}
|
|
35
63
|
|
|
64
|
+
&:where([data-component='stepper-itemdescription']) {
|
|
65
|
+
@apply col-start-2 text-sm text-neutral-600;
|
|
66
|
+
&[data-incomplete] {
|
|
67
|
+
@apply text-neutral-400;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* The line from this step's Indicator down to the next one; top and bottom set its gaps from both Indicators */
|
|
36
72
|
&:where([data-component='stepper-separator']) {
|
|
37
|
-
@apply
|
|
38
|
-
&[data-
|
|
39
|
-
@apply
|
|
73
|
+
@apply top-8.5 bottom-1 left-3.25 w-px -translate-x-1/2 bg-neutral-300;
|
|
74
|
+
&[data-complete] {
|
|
75
|
+
@apply bg-neutral-950;
|
|
40
76
|
}
|
|
41
77
|
}
|
|
42
78
|
|
|
79
|
+
/* Body above Footer; only while shown, since its hidden attribute must keep hiding it */
|
|
43
80
|
&:where([data-component='stepper-content']) {
|
|
44
|
-
@apply w-
|
|
81
|
+
@apply min-w-0 flex-1;
|
|
82
|
+
&:not([hidden]) {
|
|
83
|
+
@apply flex flex-col gap-4;
|
|
84
|
+
}
|
|
45
85
|
}
|
|
46
86
|
|
|
47
87
|
&:where([data-component='stepper-completedcontent']) {
|
|
48
|
-
@apply w-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&:where([data-component='stepper-openbutton']) {
|
|
52
|
-
@apply flex w-full cursor-pointer items-start gap-3 pb-5 text-left text-[0.95rem] font-medium text-neutral-950 outline-none focus-visible:rounded-lg focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-30;
|
|
88
|
+
@apply min-w-0 flex-1 rounded-xl bg-green-50 p-3 text-sm text-green-800;
|
|
53
89
|
}
|
|
54
90
|
}
|
|
55
91
|
}
|
|
@@ -58,7 +94,7 @@
|
|
|
58
94
|
@layer components {
|
|
59
95
|
:where(:not([data-style-disabled])) {
|
|
60
96
|
&:where([data-component='stepper-nextbutton'], [data-component='stepper-previousbutton']) {
|
|
61
|
-
@apply relative flex w-fit cursor-pointer items-center justify-center gap-1.5 rounded-full font-medium text-nowrap select-none outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,box-shadow,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default min-h-7 px-4 py-1 text-[0.8rem]
|
|
97
|
+
@apply relative flex w-fit cursor-pointer items-center justify-center gap-1.5 rounded-full font-medium text-nowrap select-none outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,box-shadow,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default min-h-7 px-4 py-1 text-[0.8rem];
|
|
62
98
|
|
|
63
99
|
&:not(:disabled) {
|
|
64
100
|
@apply bg-neutral-200 text-neutral-950 hover:bg-neutral-300 focus-visible:bg-neutral-300 active:bg-neutral-300 aria-expanded:bg-neutral-300;
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
@import './shopify-polaris-table.css';
|
|
36
36
|
@import './shopify-polaris-card.css';
|
|
37
37
|
@import './shopify-polaris-carousel.css';
|
|
38
|
+
@import './shopify-polaris-pagination.css';
|
|
38
39
|
@import './shopify-polaris-skeleton.css';
|
|
39
40
|
@import './shopify-polaris-avatar.css';
|
|
40
41
|
@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,49 @@
|
|
|
1
|
+
/* pagination */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='pagination-container']),
|
|
5
|
+
&:where([data-component='pagination-pagelist']) {
|
|
6
|
+
@apply flex w-fit items-center gap-1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&:where([data-component='pagination-firstbutton']),
|
|
10
|
+
&:where([data-component='pagination-previousbutton']),
|
|
11
|
+
&:where([data-component='pagination-nextbutton']),
|
|
12
|
+
&:where([data-component='pagination-lastbutton']),
|
|
13
|
+
&:where([data-component='pagination-page'])[data-type='page'] {
|
|
14
|
+
@apply flex h-7.5 min-w-7.5 shrink-0 cursor-pointer items-center justify-center rounded-full px-2.5 bg-white text-[0.8rem] font-semibold tabular-nums text-neutral-700 outline-none select-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;
|
|
15
|
+
|
|
16
|
+
&[data-selected] {
|
|
17
|
+
@apply [background:linear-gradient(180deg,rgba(48,48,48,0)_63.53%,rgba(255,255,255,0.15)_100%),rgba(48,48,48,1)] text-white shadow-[0_-1px_0_1px_rgba(0,0,0,0.8)_inset,0_0_0_1px_rgba(48,48,48,1)_inset,0_0.5px_0_1.5px_rgba(255,255,255,0.25)_inset] hover:brightness-85 active:shadow-[0_0_0_1px_#000000_inset,0px_0px_0px_50px_rgba(0,0,0,0.5)_inset];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:where([data-component='pagination-firstbutton']),
|
|
22
|
+
&:where([data-component='pagination-previousbutton']),
|
|
23
|
+
&:where([data-component='pagination-nextbutton']),
|
|
24
|
+
&:where([data-component='pagination-lastbutton']) {
|
|
25
|
+
/* Roomy padding for text; the icon's negative margins below pull an icon-only button back to an exact square */
|
|
26
|
+
@apply gap-2.25 px-3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:where([data-component='pagination-page'])[data-type='ellipsis'] {
|
|
30
|
+
@apply flex h-7.5 min-w-7.5 shrink-0 items-center justify-center text-neutral-500;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:where([data-component='pagination-firstbuttonicon']),
|
|
34
|
+
&:where([data-component='pagination-previousbuttonicon']),
|
|
35
|
+
&:where([data-component='pagination-nextbuttonicon']),
|
|
36
|
+
&:where([data-component='pagination-lastbuttonicon']),
|
|
37
|
+
&:where([data-component='pagination-pageicon']) {
|
|
38
|
+
@apply h-4 w-fit shrink-0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Arrows point the reading direction, and their negative margins keep icon-only buttons square */
|
|
42
|
+
&:where([data-component='pagination-firstbuttonicon']),
|
|
43
|
+
&:where([data-component='pagination-previousbuttonicon']),
|
|
44
|
+
&:where([data-component='pagination-nextbuttonicon']),
|
|
45
|
+
&:where([data-component='pagination-lastbuttonicon']) {
|
|
46
|
+
@apply -mx-1.25 rtl:-scale-x-100;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,55 +1,93 @@
|
|
|
1
1
|
/* stepper */
|
|
2
2
|
@layer components {
|
|
3
3
|
:where(:not([data-style-disabled])) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
/* Steps on the left of the current Content */
|
|
5
|
+
&:where([data-component='stepper-container']) {
|
|
6
|
+
@apply flex w-full items-start gap-8;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&:where([data-component='stepper-itemslist']) {
|
|
10
|
+
@apply flex w-56 shrink-0 flex-col;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&:where([data-component='stepper-body']) {
|
|
14
|
+
@apply flex min-w-0 flex-col gap-3;
|
|
9
15
|
}
|
|
10
16
|
|
|
17
|
+
&:where([data-component='stepper-footer']) {
|
|
18
|
+
@apply flex items-center gap-2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Indicator on the left, spanning the meta, title and description stacked beside it */
|
|
11
22
|
&:where([data-component='stepper-item']) {
|
|
12
|
-
@apply
|
|
13
|
-
|
|
14
|
-
|
|
23
|
+
@apply grid w-full cursor-pointer grid-cols-[auto_1fr] content-start gap-x-3 pb-7 text-left outline-none last:pb-0 focus-visible:rounded-lg focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500;
|
|
24
|
+
/* Steps move only with Previous and Next */
|
|
25
|
+
&[data-prevent-clicks] {
|
|
26
|
+
@apply cursor-default;
|
|
15
27
|
}
|
|
16
28
|
}
|
|
17
29
|
|
|
18
30
|
&:where([data-component='stepper-indicator']) {
|
|
19
|
-
@apply flex
|
|
31
|
+
@apply row-span-3 flex aspect-square size-6.5 shrink-0 items-center justify-center rounded-full text-xs font-semibold tabular-nums transition-colors duration-200;
|
|
32
|
+
&[data-incomplete] {
|
|
33
|
+
@apply bg-neutral-200 text-neutral-500;
|
|
34
|
+
}
|
|
35
|
+
&[data-current] {
|
|
36
|
+
@apply bg-blue-600 text-white ring-4 ring-blue-200;
|
|
37
|
+
}
|
|
38
|
+
&[data-complete] {
|
|
39
|
+
@apply bg-neutral-800 text-white;
|
|
40
|
+
}
|
|
20
41
|
}
|
|
21
42
|
|
|
22
|
-
&:where([data-component='stepper-
|
|
23
|
-
@apply
|
|
43
|
+
&:where([data-component='stepper-indicatoricon']) {
|
|
44
|
+
@apply size-3.5 shrink-0;
|
|
24
45
|
}
|
|
25
46
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@apply
|
|
47
|
+
/* Optional small text above the title, centered on the Indicator */
|
|
48
|
+
&:where([data-component='stepper-itemmeta']) {
|
|
49
|
+
@apply col-start-2 text-xs leading-6.5 text-neutral-500;
|
|
50
|
+
&[data-incomplete] {
|
|
51
|
+
@apply text-neutral-400;
|
|
52
|
+
}
|
|
29
53
|
}
|
|
30
54
|
|
|
31
|
-
&:where([data-component='stepper-
|
|
32
|
-
|
|
33
|
-
|
|
55
|
+
&:where([data-component='stepper-itemtitle']) {
|
|
56
|
+
@apply col-start-2 text-[0.95rem] font-semibold leading-5 text-neutral-950;
|
|
57
|
+
/* Centered on the Indicator when no ItemMeta comes first */
|
|
58
|
+
:where([data-component='stepper-indicator']) + & {
|
|
59
|
+
@apply leading-6.5;
|
|
60
|
+
}
|
|
61
|
+
&[data-incomplete] {
|
|
62
|
+
@apply text-neutral-400;
|
|
63
|
+
}
|
|
34
64
|
}
|
|
35
65
|
|
|
66
|
+
&:where([data-component='stepper-itemdescription']) {
|
|
67
|
+
@apply col-start-2 truncate text-sm text-neutral-600;
|
|
68
|
+
&[data-incomplete] {
|
|
69
|
+
@apply text-neutral-400;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* The line from this step's Indicator down to the next one; top and bottom set its gaps from both Indicators */
|
|
36
74
|
&:where([data-component='stepper-separator']) {
|
|
37
|
-
@apply
|
|
38
|
-
&[data-
|
|
39
|
-
@apply
|
|
75
|
+
@apply top-8.5 bottom-1 left-3.25 w-px -translate-x-1/2 bg-neutral-300;
|
|
76
|
+
&[data-complete] {
|
|
77
|
+
@apply bg-neutral-800;
|
|
40
78
|
}
|
|
41
79
|
}
|
|
42
80
|
|
|
81
|
+
/* Body above Footer; only while shown, since its hidden attribute must keep hiding it */
|
|
43
82
|
&:where([data-component='stepper-content']) {
|
|
44
|
-
@apply w-
|
|
83
|
+
@apply min-w-0 flex-1;
|
|
84
|
+
&:not([hidden]) {
|
|
85
|
+
@apply flex flex-col gap-4;
|
|
86
|
+
}
|
|
45
87
|
}
|
|
46
88
|
|
|
47
89
|
&:where([data-component='stepper-completedcontent']) {
|
|
48
|
-
@apply w-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&:where([data-component='stepper-openbutton']) {
|
|
52
|
-
@apply flex w-full cursor-pointer items-start gap-3 pb-5 text-left text-[0.95rem] font-semibold text-neutral-900 outline-none disabled:pointer-events-none disabled:opacity-30;
|
|
90
|
+
@apply min-w-0 flex-1 rounded-xl bg-green-50 p-3 text-sm leading-relaxed text-green-800;
|
|
53
91
|
}
|
|
54
92
|
}
|
|
55
93
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@import './shopify-polaris-legacy-button.css';
|
|
8
8
|
@import './shopify-polaris-legacy-card.css';
|
|
9
9
|
@import './shopify-polaris-legacy-carousel.css';
|
|
10
|
+
@import './shopify-polaris-legacy-pagination.css';
|
|
10
11
|
@import './shopify-polaris-legacy-checkbox.css';
|
|
11
12
|
@import './shopify-polaris-legacy-combobox.css';
|
|
12
13
|
@import './shopify-polaris-legacy-datepicker.css';
|