@central-ui/react 0.1.2 → 0.2.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/LICENSE +49 -0
- package/dist/components/accordion/index.d.ts +4 -3
- package/dist/components/accordion/index.js +7 -4
- package/dist/components/autocomplete/index.d.ts +14 -25
- package/dist/components/autocomplete/index.js +70 -54
- package/dist/components/avatar/index.d.ts +1 -2
- package/dist/components/avatar/index.js +0 -1
- package/dist/components/badge/index.d.ts +0 -1
- package/dist/components/badge/index.js +2 -2
- package/dist/components/banner/index.d.ts +1 -1
- package/dist/components/banner/index.js +23 -25
- package/dist/components/barchart/index.d.ts +106 -0
- package/dist/components/barchart/index.js +122 -0
- package/dist/components/breadcrumb/index.d.ts +0 -1
- package/dist/components/breadcrumb/index.js +6 -7
- package/dist/components/button/index.d.ts +2 -3
- package/dist/components/button/index.js +11 -12
- package/dist/components/card/index.d.ts +0 -1
- package/dist/components/card/index.js +0 -1
- package/dist/components/checkbox/index.d.ts +13 -11
- package/dist/components/checkbox/index.js +51 -31
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/chip/index.js +2 -3
- package/dist/components/combobox/index.d.ts +18 -30
- package/dist/components/combobox/index.js +90 -67
- package/dist/components/datepicker/index.d.ts +18 -31
- package/dist/components/datepicker/index.js +81 -99
- package/dist/components/dialog/index.d.ts +14 -27
- package/dist/components/dialog/index.js +17 -18
- package/dist/components/divider/index.d.ts +0 -1
- package/dist/components/divider/index.js +0 -1
- package/dist/components/donutchart/index.d.ts +100 -0
- package/dist/components/donutchart/index.js +178 -0
- package/dist/components/drawer/index.d.ts +12 -21
- package/dist/components/drawer/index.js +34 -36
- package/dist/components/empty/index.d.ts +1 -2
- package/dist/components/empty/index.js +2 -4
- package/dist/components/fileupload/index.d.ts +4 -9
- package/dist/components/fileupload/index.js +26 -38
- package/dist/components/form/index.d.ts +0 -1
- package/dist/components/form/index.js +0 -1
- package/dist/components/horizontalbarchart/index.d.ts +120 -0
- package/dist/components/horizontalbarchart/index.js +193 -0
- package/dist/components/input/index.d.ts +22 -22
- package/dist/components/input/index.js +76 -105
- package/dist/components/linechart/index.d.ts +114 -0
- package/dist/components/linechart/index.js +139 -0
- package/dist/components/menu/index.d.ts +9 -11
- package/dist/components/menu/index.js +42 -39
- package/dist/components/metric/index.d.ts +0 -1
- package/dist/components/metric/index.js +0 -1
- package/dist/components/numberinput/index.d.ts +14 -21
- package/dist/components/numberinput/index.js +40 -53
- package/dist/components/otpinput/index.d.ts +14 -9
- package/dist/components/otpinput/index.js +25 -18
- package/dist/components/page/index.d.ts +0 -1
- package/dist/components/page/index.js +1 -3
- package/dist/components/passwordinput/index.d.ts +14 -11
- package/dist/components/passwordinput/index.js +36 -45
- package/dist/components/popover/index.d.ts +21 -19
- package/dist/components/popover/index.js +34 -15
- package/dist/components/radio/index.d.ts +13 -9
- package/dist/components/radio/index.js +69 -60
- package/dist/components/ratinginput/index.d.ts +13 -8
- package/dist/components/ratinginput/index.js +37 -17
- package/dist/components/select/index.d.ts +25 -28
- package/dist/components/select/index.js +67 -38
- package/dist/components/skeleton/index.d.ts +0 -1
- package/dist/components/skeleton/index.js +0 -1
- package/dist/components/slider/index.d.ts +14 -9
- package/dist/components/slider/index.js +64 -63
- package/dist/components/spinner/index.d.ts +1 -2
- package/dist/components/spinner/index.js +2 -3
- package/dist/components/splitter/index.d.ts +1 -2
- package/dist/components/splitter/index.js +5 -6
- package/dist/components/stepper/index.d.ts +8 -20
- package/dist/components/stepper/index.js +15 -16
- package/dist/components/switch/index.d.ts +12 -10
- package/dist/components/switch/index.js +46 -30
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/table/index.js +14 -13
- package/dist/components/tabs/index.d.ts +0 -1
- package/dist/components/tabs/index.js +1 -2
- package/dist/components/textarea/index.d.ts +14 -11
- package/dist/components/textarea/index.js +37 -46
- package/dist/components/textlink/index.d.ts +3 -1
- package/dist/components/textlink/index.js +4 -1
- package/dist/components/toast/index.d.ts +8 -14
- package/dist/components/toast/index.js +48 -48
- package/dist/components/toggle/index.d.ts +0 -1
- package/dist/components/toggle/index.js +17 -24
- package/dist/components/tooltip/index.d.ts +11 -13
- package/dist/components/tooltip/index.js +12 -9
- package/dist/components/tour/index.d.ts +154 -0
- package/dist/components/tour/index.js +280 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5 -1
- package/dist/types/Icon.d.ts +0 -1
- package/dist/types/Icon.js +0 -1
- package/dist/types/Style.d.ts +0 -1
- package/dist/types/Style.js +0 -1
- package/dist/types/Tone.d.ts +0 -1
- package/dist/types/Tone.js +0 -1
- package/dist/types/Validation.d.ts +12 -0
- package/dist/types/Validation.js +1 -0
- package/dist/utils/ArkStateToDataAttributes.d.ts +0 -1
- package/dist/utils/ArkStateToDataAttributes.js +0 -1
- package/dist/utils/Tone.d.ts +0 -1
- package/dist/utils/Tone.js +0 -1
- package/dist/utils/Validation.d.ts +14 -0
- package/dist/utils/Validation.js +23 -0
- package/dist/utils/asChild.d.ts +41 -0
- package/dist/utils/asChild.js +15 -0
- package/dist/utils/icons.d.ts +24 -0
- package/dist/utils/icons.js +160 -0
- package/dist/utils/useForwardClickToInput.d.ts +0 -1
- package/dist/utils/useForwardClickToInput.js +0 -1
- package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts +0 -1
- package/dist/utils/virtualization/useVirtualizedAutocomplete.js +0 -1
- package/dist/utils/virtualization/useVirtualizedCombobox.d.ts +0 -1
- package/dist/utils/virtualization/useVirtualizedCombobox.js +0 -1
- package/dist/utils/virtualization/useVirtualizedTable.d.ts +0 -1
- package/dist/utils/virtualization/useVirtualizedTable.js +0 -1
- package/package.json +12 -11
- package/src/presets/shopify-polaris/shopify-polaris-autocomplete.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-barchart.css +64 -0
- package/src/presets/shopify-polaris/shopify-polaris-checkbox.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-combobox.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-datepicker.css +4 -4
- package/src/presets/shopify-polaris/shopify-polaris-dialog.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-donutchart.css +172 -0
- package/src/presets/shopify-polaris/shopify-polaris-drawer.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-fileupload.css +1 -1
- package/src/presets/shopify-polaris/shopify-polaris-horizontalbarchart.css +60 -0
- package/src/presets/shopify-polaris/shopify-polaris-input.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-linechart.css +68 -0
- package/src/presets/shopify-polaris/shopify-polaris-menu.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-numberinput.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-otpinput.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-passwordinput.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-popover.css +29 -0
- package/src/presets/shopify-polaris/shopify-polaris-radio.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-ratinginput.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-select.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-slider.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-stepper.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-switch.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-textarea.css +2 -2
- package/src/presets/shopify-polaris/shopify-polaris-tooltip.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris.css +4 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-autocomplete.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-barchart.css +64 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-checkbox.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-combobox.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-datepicker.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-dialog.css +9 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-donutchart.css +172 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-drawer.css +9 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-fileupload.css +1 -1
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-horizontalbarchart.css +60 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-input.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-linechart.css +68 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-menu.css +9 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-numberinput.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-otpinput.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-passwordinput.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-popover.css +22 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-radio.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-ratinginput.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-slider.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-stepper.css +9 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-switch.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-textarea.css +2 -2
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-tooltip.css +9 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css +4 -0
- package/dist/components/accordion/index.d.ts.map +0 -1
- package/dist/components/accordion/index.js.map +0 -1
- package/dist/components/autocomplete/index.d.ts.map +0 -1
- package/dist/components/autocomplete/index.js.map +0 -1
- package/dist/components/avatar/index.d.ts.map +0 -1
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/badge/index.d.ts.map +0 -1
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/banner/index.d.ts.map +0 -1
- package/dist/components/banner/index.js.map +0 -1
- package/dist/components/breadcrumb/index.d.ts.map +0 -1
- package/dist/components/breadcrumb/index.js.map +0 -1
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/card/index.d.ts.map +0 -1
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/chip/index.d.ts.map +0 -1
- package/dist/components/chip/index.js.map +0 -1
- package/dist/components/combobox/index.d.ts.map +0 -1
- package/dist/components/combobox/index.js.map +0 -1
- package/dist/components/datepicker/index.d.ts.map +0 -1
- package/dist/components/datepicker/index.js.map +0 -1
- package/dist/components/dialog/index.d.ts.map +0 -1
- package/dist/components/dialog/index.js.map +0 -1
- package/dist/components/divider/index.d.ts.map +0 -1
- package/dist/components/divider/index.js.map +0 -1
- package/dist/components/drawer/index.d.ts.map +0 -1
- package/dist/components/drawer/index.js.map +0 -1
- package/dist/components/empty/index.d.ts.map +0 -1
- package/dist/components/empty/index.js.map +0 -1
- package/dist/components/fileupload/index.d.ts.map +0 -1
- package/dist/components/fileupload/index.js.map +0 -1
- package/dist/components/form/index.d.ts.map +0 -1
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/input/index.d.ts.map +0 -1
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/menu/index.d.ts.map +0 -1
- package/dist/components/menu/index.js.map +0 -1
- package/dist/components/metric/index.d.ts.map +0 -1
- package/dist/components/metric/index.js.map +0 -1
- package/dist/components/numberinput/index.d.ts.map +0 -1
- package/dist/components/numberinput/index.js.map +0 -1
- package/dist/components/otpinput/index.d.ts.map +0 -1
- package/dist/components/otpinput/index.js.map +0 -1
- package/dist/components/page/index.d.ts.map +0 -1
- package/dist/components/page/index.js.map +0 -1
- package/dist/components/passwordinput/index.d.ts.map +0 -1
- package/dist/components/passwordinput/index.js.map +0 -1
- package/dist/components/popover/index.d.ts.map +0 -1
- package/dist/components/popover/index.js.map +0 -1
- package/dist/components/radio/index.d.ts.map +0 -1
- package/dist/components/radio/index.js.map +0 -1
- package/dist/components/ratinginput/index.d.ts.map +0 -1
- package/dist/components/ratinginput/index.js.map +0 -1
- package/dist/components/select/index.d.ts.map +0 -1
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/skeleton/index.d.ts.map +0 -1
- package/dist/components/skeleton/index.js.map +0 -1
- package/dist/components/slider/index.d.ts.map +0 -1
- package/dist/components/slider/index.js.map +0 -1
- package/dist/components/spinner/index.d.ts.map +0 -1
- package/dist/components/spinner/index.js.map +0 -1
- package/dist/components/splitter/index.d.ts.map +0 -1
- package/dist/components/splitter/index.js.map +0 -1
- package/dist/components/stepper/index.d.ts.map +0 -1
- package/dist/components/stepper/index.js.map +0 -1
- package/dist/components/switch/index.d.ts.map +0 -1
- package/dist/components/switch/index.js.map +0 -1
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/tabs/index.d.ts.map +0 -1
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/textarea/index.d.ts.map +0 -1
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textlink/index.d.ts.map +0 -1
- package/dist/components/textlink/index.js.map +0 -1
- package/dist/components/toast/index.d.ts.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toggle/index.d.ts.map +0 -1
- package/dist/components/toggle/index.js.map +0 -1
- package/dist/components/tooltip/index.d.ts.map +0 -1
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/Icon.d.ts.map +0 -1
- package/dist/types/Icon.js.map +0 -1
- package/dist/types/Style.d.ts.map +0 -1
- package/dist/types/Style.js.map +0 -1
- package/dist/types/Tone.d.ts.map +0 -1
- package/dist/types/Tone.js.map +0 -1
- package/dist/utils/ArkStateToDataAttributes.d.ts.map +0 -1
- package/dist/utils/ArkStateToDataAttributes.js.map +0 -1
- package/dist/utils/Tone.d.ts.map +0 -1
- package/dist/utils/Tone.js.map +0 -1
- package/dist/utils/useForwardClickToInput.d.ts.map +0 -1
- package/dist/utils/useForwardClickToInput.js.map +0 -1
- package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts.map +0 -1
- package/dist/utils/virtualization/useVirtualizedAutocomplete.js.map +0 -1
- package/dist/utils/virtualization/useVirtualizedCombobox.d.ts.map +0 -1
- package/dist/utils/virtualization/useVirtualizedCombobox.js.map +0 -1
- package/dist/utils/virtualization/useVirtualizedTable.d.ts.map +0 -1
- package/dist/utils/virtualization/useVirtualizedTable.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* horizontalbarchart */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='horizontalbarchart-gridline']) {
|
|
5
|
+
@apply stroke-neutral-200;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='horizontalbarchart-xaxis-ticklabel']) {
|
|
9
|
+
@apply fill-neutral-500;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='horizontalbarchart-xaxis-line']) {
|
|
13
|
+
@apply stroke-neutral-300;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='horizontalbarchart-xaxis-tickline']) {
|
|
17
|
+
@apply stroke-neutral-300;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='horizontalbarchart-hoverguide']) {
|
|
21
|
+
@apply stroke-neutral-400/50;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='horizontalbarchart-bar']) {
|
|
25
|
+
@apply fill-[#13ACF0];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='horizontalbarchart-bar'])[data-active] {
|
|
29
|
+
@apply opacity-80;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='horizontalbarchart-label']) {
|
|
33
|
+
@apply fill-neutral-500;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='horizontalbarchart-value']) {
|
|
37
|
+
@apply fill-neutral-500;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='horizontalbarchart-tooltip']) {
|
|
41
|
+
@apply grid min-w-56 grid-cols-[auto_1fr] items-center gap-x-1 gap-y-2 rounded-md border border-neutral-700 bg-neutral-900 p-2.5 shadow-md;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='horizontalbarchart-tooltiptitle']) {
|
|
45
|
+
@apply col-span-full row-start-1 text-xs font-semibold leading-4 text-neutral-200;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='horizontalbarchart-tooltiplabel']) {
|
|
49
|
+
@apply col-start-2 row-start-2 text-xs font-medium leading-4 text-neutral-400;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-component='horizontalbarchart-tooltipvalue']) {
|
|
53
|
+
@apply col-span-full row-start-3 justify-self-start rounded-md bg-neutral-600 px-1.25 py-0.5 font-mono text-sm font-medium leading-5 text-neutral-200 tabular-nums;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='horizontalbarchart-tooltipcolorindicator']) {
|
|
57
|
+
@apply col-start-1 row-start-2 h-2.5 w-2.5 rounded-sm bg-[#13ACF0];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
&:where([data-component='input-inputgroup']) {
|
|
9
9
|
@apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
|
|
10
|
-
&[data-
|
|
10
|
+
&[data-validation='error'] {
|
|
11
11
|
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
12
12
|
}
|
|
13
|
-
&[data-
|
|
13
|
+
&[data-validation='success'] {
|
|
14
14
|
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* linechart */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='linechart-gridline']) {
|
|
5
|
+
@apply stroke-neutral-200;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='linechart-xaxis-ticklabel']) {
|
|
9
|
+
@apply fill-neutral-500;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='linechart-yaxis-ticklabel']) {
|
|
13
|
+
@apply fill-neutral-500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='linechart-xaxis-line']) {
|
|
17
|
+
@apply stroke-neutral-300;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='linechart-yaxis-line']) {
|
|
21
|
+
@apply stroke-neutral-300;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='linechart-xaxis-tickline']) {
|
|
25
|
+
@apply stroke-neutral-300;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='linechart-yaxis-tickline']) {
|
|
29
|
+
@apply stroke-neutral-300;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='linechart-hoverguide']) {
|
|
33
|
+
@apply stroke-neutral-400/50;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='linechart-line']) {
|
|
37
|
+
@apply stroke-[#13ACF0];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='linechart-activedot']) {
|
|
41
|
+
@apply fill-[#13ACF0] stroke-white;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='linechart-area']) {
|
|
45
|
+
@apply fill-[#13ACF0]/12;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='linechart-tooltip']) {
|
|
49
|
+
@apply grid min-w-56 grid-cols-[auto_1fr] items-center gap-x-1 gap-y-2 rounded-md border border-neutral-700 bg-neutral-900 p-2.5 shadow-md;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-component='linechart-tooltiptitle']) {
|
|
53
|
+
@apply col-span-full row-start-1 text-xs font-semibold leading-4 text-neutral-200;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='linechart-tooltiplabel']) {
|
|
57
|
+
@apply col-start-2 row-start-2 text-xs font-medium leading-4 text-neutral-400;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-component='linechart-tooltipvalue']) {
|
|
61
|
+
@apply col-span-full row-start-3 justify-self-start rounded-md bg-neutral-600 px-1.25 py-0.5 font-mono text-sm font-medium leading-5 text-neutral-200 tabular-nums;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='linechart-tooltipcolorindicator']) {
|
|
65
|
+
@apply col-start-1 row-start-2 h-2.5 w-2.5 rounded-sm bg-[#13ACF0];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -135,3 +135,19 @@
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
+
|
|
139
|
+
/* menu action buttons, styled like a secondary Button */
|
|
140
|
+
@layer components {
|
|
141
|
+
:where(:not([data-style-disabled])) {
|
|
142
|
+
&:where([data-component='menu-openbutton']) {
|
|
143
|
+
@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] leading-4;
|
|
144
|
+
|
|
145
|
+
&:not(:disabled) {
|
|
146
|
+
@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;
|
|
147
|
+
}
|
|
148
|
+
&:disabled {
|
|
149
|
+
@apply bg-black/3 text-neutral-400;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
|
|
54
54
|
&:where([data-component='numberinput-inputgroup']) {
|
|
55
55
|
@apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
|
|
56
|
-
&[data-
|
|
56
|
+
&[data-validation='error'] {
|
|
57
57
|
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
58
58
|
}
|
|
59
|
-
&[data-
|
|
59
|
+
&[data-validation='success'] {
|
|
60
60
|
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
:where(:not([data-style-disabled])) {
|
|
4
4
|
&:where([data-component='otpinput-input']) {
|
|
5
5
|
@apply m-0 h-9.5 aspect-square w-9.5 rounded-xl border border-neutral-300 bg-white p-0 text-center text-base text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/10 focus:shadow-sm data-disabled:cursor-not-allowed data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:bg-neutral-50 placeholder:text-neutral-600;
|
|
6
|
-
&[data-
|
|
6
|
+
&[data-validation='error'] {
|
|
7
7
|
@apply border-red-500 focus:border-red-500 focus:ring-red-500/10;
|
|
8
8
|
}
|
|
9
|
-
&[data-
|
|
9
|
+
&[data-validation='success'] {
|
|
10
10
|
@apply border-green-600 focus:border-green-600 focus:ring-green-600/10;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
&:where([data-component='passwordinput-inputgroup']) {
|
|
9
9
|
@apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
|
|
10
|
-
&[data-
|
|
10
|
+
&[data-validation='error'] {
|
|
11
11
|
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
12
12
|
}
|
|
13
|
-
&[data-
|
|
13
|
+
&[data-validation='success'] {
|
|
14
14
|
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -45,3 +45,32 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
|
|
49
|
+
/* popover action buttons, styled like a secondary Button */
|
|
50
|
+
@layer components {
|
|
51
|
+
:where(:not([data-style-disabled])) {
|
|
52
|
+
&:where([data-component='popover-openbutton']) {
|
|
53
|
+
@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] leading-4;
|
|
54
|
+
|
|
55
|
+
&:not(:disabled) {
|
|
56
|
+
@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;
|
|
57
|
+
}
|
|
58
|
+
&:disabled {
|
|
59
|
+
@apply bg-black/3 text-neutral-400;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* popover close button, cloned from Dialog's */
|
|
66
|
+
@layer components {
|
|
67
|
+
:where(:not([data-style-disabled])) {
|
|
68
|
+
&:where([data-component='popover-closebutton']) {
|
|
69
|
+
@apply absolute top-4 right-4 flex h-7 aspect-square w-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-neutral-200 bg-white p-0 text-neutral-950 shadow-sm hover:bg-neutral-100 hover:text-neutral-950 active:bg-neutral-200 active:text-neutral-950 focus-visible:outline-2 focus-visible:outline-blue-500;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:where([data-component='popover-closebuttonicon']) {
|
|
73
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
&:where([data-component='radio-itembutton']) {
|
|
21
21
|
@apply mt-0.5 items-center justify-center flex aspect-square size-4 shrink-0 cursor-pointer rounded-full border border-neutral-300 bg-white shadow-xs transition-all data-checked:border-4 data-checked:border-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
22
|
-
&[data-
|
|
22
|
+
&[data-validation='error'] {
|
|
23
23
|
@apply border-red-600 data-checked:border-red-600;
|
|
24
24
|
}
|
|
25
|
-
&[data-
|
|
25
|
+
&[data-validation='success'] {
|
|
26
26
|
@apply border-green-700 data-checked:border-green-700;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
&:where([data-component='ratinginput-staricon']) {
|
|
21
21
|
@apply pointer-events-none h-5 w-fit text-neutral-950 data-highlighted:fill-current data-highlighted:data-half:fill-[var(--star-half-fill)] rtl:data-highlighted:data-half:fill-[var(--star-half-fill-rtl)];
|
|
22
|
-
&[data-
|
|
22
|
+
&[data-validation='success'] {
|
|
23
23
|
@apply text-green-700;
|
|
24
24
|
}
|
|
25
|
-
&[data-
|
|
25
|
+
&[data-validation='error'] {
|
|
26
26
|
@apply text-red-600;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
|
|
59
59
|
&:where([data-component='select-openbutton']) {
|
|
60
60
|
@apply flex h-8.5 w-fit shrink-0 cursor-pointer items-center justify-center gap-0 overflow-hidden rounded-xl border border-neutral-300 bg-white px-2.5 text-sm font-normal text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-500/10 focus-visible:shadow-sm disabled:pointer-events-none disabled:bg-white disabled:text-neutral-400 disabled:shadow-none data-popup-open:border-blue-500 data-popup-open:ring-2 data-popup-open:ring-blue-500/10 data-popup-open:shadow-sm;
|
|
61
|
-
&[data-
|
|
61
|
+
&[data-validation='error'] {
|
|
62
62
|
@apply border-red-500 focus-visible:border-red-500 focus-visible:ring-red-500/10 data-popup-open:border-red-500 data-popup-open:ring-red-500/10;
|
|
63
63
|
}
|
|
64
|
-
&[data-
|
|
64
|
+
&[data-validation='success'] {
|
|
65
65
|
@apply border-green-600 focus-visible:border-green-600 focus-visible:ring-green-600/10 data-popup-open:border-green-600 data-popup-open:ring-green-600/10;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -53,3 +53,19 @@
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
/* stepper action buttons, styled like a secondary Button */
|
|
58
|
+
@layer components {
|
|
59
|
+
:where(:not([data-style-disabled])) {
|
|
60
|
+
&: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] leading-4;
|
|
62
|
+
|
|
63
|
+
&:not(:disabled) {
|
|
64
|
+
@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;
|
|
65
|
+
}
|
|
66
|
+
&:disabled {
|
|
67
|
+
@apply bg-black/3 text-neutral-400;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
&:where([data-component='switch-button']) {
|
|
9
9
|
@apply col-start-1 row-start-1 inline-flex h-4.5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-neutral-300 bg-white transition-all hover:brightness-95 data-checked:border-neutral-950 data-checked:bg-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
10
|
-
&[data-
|
|
10
|
+
&[data-validation='error'] {
|
|
11
11
|
@apply border-red-600 bg-red-50 data-checked:border-red-600 data-checked:bg-red-600;
|
|
12
12
|
}
|
|
13
|
-
&[data-
|
|
13
|
+
&[data-validation='success'] {
|
|
14
14
|
@apply border-green-700 bg-green-50 data-checked:border-green-700 data-checked:bg-green-700;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
&:where([data-component='textarea-textareagroup']) {
|
|
9
9
|
@apply p-0 flex w-full min-w-0 flex-col items-stretch overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
|
|
10
|
-
&[data-
|
|
10
|
+
&[data-validation='error'] {
|
|
11
11
|
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
12
12
|
}
|
|
13
|
-
&[data-
|
|
13
|
+
&[data-validation='success'] {
|
|
14
14
|
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -29,3 +29,19 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
/* tooltip action buttons, styled like a secondary Button */
|
|
34
|
+
@layer components {
|
|
35
|
+
:where(:not([data-style-disabled])) {
|
|
36
|
+
&:where([data-component='tooltip-openbutton']) {
|
|
37
|
+
@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] leading-4;
|
|
38
|
+
|
|
39
|
+
&:not(:disabled) {
|
|
40
|
+
@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;
|
|
41
|
+
}
|
|
42
|
+
&:disabled {
|
|
43
|
+
@apply bg-black/3 text-neutral-400;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
|
|
77
77
|
&:where([data-component='autocomplete-inputgroup']) {
|
|
78
78
|
@apply flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white p-0 text-[0.8rem] text-neutral-900 outline-blue-600 outline-offset-1! hover:bg-neutral-50 focus-within:outline-2 data-disabled:cursor-not-allowed data-disabled:bg-neutral-100 data-disabled:text-neutral-500 data-disabled:hover:bg-neutral-100;
|
|
79
|
-
&[data-
|
|
79
|
+
&[data-validation='error'] {
|
|
80
80
|
@apply border-red-800;
|
|
81
81
|
}
|
|
82
|
-
&[data-
|
|
82
|
+
&[data-validation='success'] {
|
|
83
83
|
@apply border-green-700;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* barchart */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='barchart-gridline']) {
|
|
5
|
+
@apply stroke-neutral-200;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='barchart-xaxis-ticklabel']) {
|
|
9
|
+
@apply fill-neutral-500;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='barchart-yaxis-ticklabel']) {
|
|
13
|
+
@apply fill-neutral-500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='barchart-xaxis-line']) {
|
|
17
|
+
@apply stroke-neutral-300;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='barchart-yaxis-line']) {
|
|
21
|
+
@apply stroke-neutral-300;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='barchart-xaxis-tickline']) {
|
|
25
|
+
@apply stroke-neutral-300;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='barchart-yaxis-tickline']) {
|
|
29
|
+
@apply stroke-neutral-300;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='barchart-hoverguide']) {
|
|
33
|
+
@apply stroke-neutral-400/50;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='barchart-bar']) {
|
|
37
|
+
@apply fill-[#13ACF0];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='barchart-bar'])[data-active] {
|
|
41
|
+
@apply opacity-80;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='barchart-tooltip']) {
|
|
45
|
+
@apply grid min-w-56 grid-cols-[auto_1fr] items-center gap-x-1 gap-y-2 rounded-md border border-neutral-700 bg-neutral-900 p-2.5 shadow-md;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='barchart-tooltiptitle']) {
|
|
49
|
+
@apply col-span-full row-start-1 text-xs font-semibold leading-4 text-neutral-200;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-component='barchart-tooltiplabel']) {
|
|
53
|
+
@apply col-start-2 row-start-2 text-xs font-medium leading-4 text-neutral-400;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='barchart-tooltipvalue']) {
|
|
57
|
+
@apply col-span-full row-start-3 justify-self-start rounded-md bg-neutral-600 px-1.25 py-0.5 font-mono text-sm font-medium leading-5 text-neutral-200 tabular-nums;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-component='barchart-tooltipcolorindicator']) {
|
|
61
|
+
@apply col-start-1 row-start-2 h-2.5 w-2.5 rounded-sm bg-[#13ACF0];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
&:where([data-component='checkbox-button']) {
|
|
13
13
|
@apply mt-0.5 row-start-1 flex size-4.25 shrink-0 cursor-pointer items-center justify-center rounded-[0.3rem] border border-neutral-500 bg-neutral-50 text-white transition-all duration-150 data-checked:border-neutral-800 data-checked:bg-neutral-800 data-indeterminate:border-neutral-800 data-indeterminate:bg-neutral-800 data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
14
|
-
&[data-
|
|
14
|
+
&[data-validation='error'] {
|
|
15
15
|
@apply border-red-800 bg-red-100 data-checked:bg-red-800 data-indeterminate:bg-red-800;
|
|
16
16
|
}
|
|
17
|
-
&[data-
|
|
17
|
+
&[data-validation='success'] {
|
|
18
18
|
@apply border-green-700 bg-green-100 data-checked:bg-green-700 data-indeterminate:bg-green-700;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -84,10 +84,10 @@
|
|
|
84
84
|
|
|
85
85
|
&:where([data-component='combobox-inputgroup']) {
|
|
86
86
|
@apply flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white p-0 text-[0.8rem] text-neutral-900 outline-blue-600 outline-offset-1! hover:bg-neutral-50 focus-within:outline-2 data-disabled:cursor-not-allowed data-disabled:bg-neutral-100 data-disabled:text-neutral-500 data-disabled:hover:bg-neutral-100;
|
|
87
|
-
&[data-
|
|
87
|
+
&[data-validation='error'] {
|
|
88
88
|
@apply border-red-800;
|
|
89
89
|
}
|
|
90
|
-
&[data-
|
|
90
|
+
&[data-validation='success'] {
|
|
91
91
|
@apply border-green-700;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
&:where([data-component='datepicker-inputgroup']) {
|
|
13
13
|
@apply flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white p-0 text-[0.8rem] text-neutral-900 outline-blue-600 outline-offset-1! hover:bg-neutral-50 data-disabled:cursor-not-allowed data-disabled:bg-neutral-100 data-disabled:text-neutral-500 data-disabled:hover:bg-neutral-100 data-[focus-within]:outline-2;
|
|
14
|
-
&[data-
|
|
14
|
+
&[data-validation='error'] {
|
|
15
15
|
@apply border-red-800;
|
|
16
16
|
}
|
|
17
|
-
&[data-
|
|
17
|
+
&[data-validation='success'] {
|
|
18
18
|
@apply border-green-700;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -38,3 +38,12 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
/* dialog action buttons, styled like a secondary Button */
|
|
43
|
+
@layer components {
|
|
44
|
+
:where(:not([data-style-disabled])) {
|
|
45
|
+
&:where([data-component='dialog-openbutton']) {
|
|
46
|
+
@apply flex w-fit cursor-pointer items-center justify-center gap-1 text-nowrap font-semibold disabled:pointer-events-none disabled:opacity-50 h-7.5 px-[0.7rem] text-[0.8rem] rounded-lg bg-white text-neutral-700 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] aria-expanded: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] aria-expanded: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];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|