@central-ui/react 0.1.1 → 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/README.md +1 -1
- package/dist/components/accordion/index.d.ts +7 -6
- package/dist/components/accordion/index.js +13 -10
- package/dist/components/autocomplete/index.d.ts +22 -33
- package/dist/components/autocomplete/index.js +90 -73
- package/dist/components/avatar/index.d.ts +1 -2
- package/dist/components/avatar/index.js +6 -6
- 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 +24 -26
- 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 +3 -4
- 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 +59 -39
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/chip/index.js +2 -3
- package/dist/components/combobox/index.d.ts +32 -44
- package/dist/components/combobox/index.js +112 -88
- package/dist/components/datepicker/index.d.ts +54 -55
- package/dist/components/datepicker/index.js +105 -100
- package/dist/components/dialog/index.d.ts +17 -30
- package/dist/components/dialog/index.js +25 -26
- 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 +15 -24
- package/dist/components/drawer/index.js +45 -47
- 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 +27 -39
- 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 +23 -23
- package/dist/components/input/index.js +86 -115
- package/dist/components/linechart/index.d.ts +114 -0
- package/dist/components/linechart/index.js +139 -0
- package/dist/components/menu/index.d.ts +14 -16
- package/dist/components/menu/index.js +56 -53
- package/dist/components/metric/index.d.ts +0 -1
- package/dist/components/metric/index.js +0 -1
- package/dist/components/numberinput/index.d.ts +16 -23
- package/dist/components/numberinput/index.js +55 -68
- package/dist/components/otpinput/index.d.ts +14 -9
- package/dist/components/otpinput/index.js +32 -25
- package/dist/components/page/index.d.ts +0 -1
- package/dist/components/page/index.js +2 -4
- package/dist/components/passwordinput/index.d.ts +16 -13
- package/dist/components/passwordinput/index.js +47 -56
- package/dist/components/popover/index.d.ts +21 -19
- package/dist/components/popover/index.js +40 -21
- package/dist/components/radio/index.d.ts +13 -9
- package/dist/components/radio/index.js +80 -71
- package/dist/components/ratinginput/index.d.ts +15 -10
- package/dist/components/ratinginput/index.js +38 -18
- package/dist/components/select/index.d.ts +29 -32
- package/dist/components/select/index.js +79 -50
- 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 +75 -74
- package/dist/components/spinner/index.d.ts +2 -3
- package/dist/components/spinner/index.js +2 -3
- package/dist/components/splitter/index.d.ts +1 -2
- package/dist/components/splitter/index.js +6 -7
- 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 +52 -36
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/table/index.js +17 -16
- package/dist/components/tabs/index.d.ts +3 -4
- package/dist/components/tabs/index.js +6 -7
- package/dist/components/textarea/index.d.ts +16 -13
- package/dist/components/textarea/index.js +46 -55
- 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 +54 -54
- package/dist/components/toggle/index.d.ts +5 -6
- package/dist/components/toggle/index.js +19 -26
- package/dist/components/tooltip/index.d.ts +11 -13
- package/dist/components/tooltip/index.js +14 -11
- 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 +10 -0
- package/dist/types/Icon.js +1 -0
- 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 +3 -2
- package/dist/utils/Tone.d.ts +0 -1
- package/dist/utils/Tone.js +1 -2
- 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 +4 -3
- 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 +15 -6
- package/src/presets/shopify-polaris/shopify-polaris-badge.css +1 -1
- 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-chip.css +3 -3
- package/src/presets/shopify-polaris/shopify-polaris-combobox.css +19 -10
- package/src/presets/shopify-polaris/shopify-polaris-datepicker.css +20 -11
- 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 +14 -5
- package/src/presets/shopify-polaris/shopify-polaris-linechart.css +68 -0
- package/src/presets/shopify-polaris/shopify-polaris-menu.css +47 -6
- package/src/presets/shopify-polaris/shopify-polaris-numberinput.css +16 -7
- package/src/presets/shopify-polaris/shopify-polaris-otpinput.css +3 -3
- package/src/presets/shopify-polaris/shopify-polaris-passwordinput.css +14 -5
- 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 +15 -6
- 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 +13 -4
- package/src/presets/shopify-polaris/shopify-polaris-toast.css +43 -0
- package/src/presets/shopify-polaris/shopify-polaris-tooltip.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris.css +5 -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/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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&:where([data-component='combobox-input']) {
|
|
13
|
-
@apply min-w-12 flex-1 h-
|
|
13
|
+
@apply min-w-12 flex-1 h-8 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-600 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&:where([data-component='combobox-input'])[data-in-chips] {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&:where([data-component='combobox-chipslist']) {
|
|
21
|
-
@apply flex min-w-0 w-full flex-wrap items-center gap-1 px-2.5 py-1 min-h-
|
|
21
|
+
@apply flex min-w-0 w-full flex-wrap items-center gap-1 px-2.5 py-1 min-h-8;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&:where([data-component='combobox-scrollarea']) {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&:where([data-component='combobox-item']) {
|
|
41
|
-
@apply flex h-
|
|
41
|
+
@apply flex h-7 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-xl px-2 text-sm font-normal text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-30 data-highlighted:bg-neutral-100 active:bg-neutral-200;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&:where([data-component='combobox-popup']) {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&:where([data-component='combobox-addon']) {
|
|
68
|
-
@apply inline-flex h-
|
|
68
|
+
@apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
|
|
69
69
|
&[data-variant='emphasized'] {
|
|
70
70
|
@apply bg-neutral-200/60;
|
|
71
71
|
}
|
|
@@ -83,21 +83,30 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
&:where([data-component='combobox-inputgroup']) {
|
|
86
|
-
@apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-
|
|
87
|
-
&[data-
|
|
86
|
+
@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;
|
|
87
|
+
&[data-validation='error'] {
|
|
88
88
|
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
89
89
|
}
|
|
90
|
-
&[data-
|
|
90
|
+
&[data-validation='success'] {
|
|
91
91
|
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
&:where([data-component='combobox-inputgroup'])
|
|
96
|
+
:where(
|
|
97
|
+
svg:not([data-style-disabled]):not(
|
|
98
|
+
[data-component='combobox-chipremovebuttonicon']
|
|
99
|
+
):not([data-component='chip-closebuttonicon'])
|
|
100
|
+
) {
|
|
101
|
+
@apply text-neutral-600;
|
|
102
|
+
}
|
|
103
|
+
|
|
95
104
|
&:where([data-component='combobox-chip']) {
|
|
96
|
-
@apply flex h-5 min-w-6 w-fit shrink-0 items-center justify-between gap-1 rounded-
|
|
105
|
+
@apply flex h-5 min-w-6 w-fit shrink-0 items-center justify-between gap-1 rounded-md bg-neutral-100 px-2 text-[0.8rem] leading-none font-medium text-nowrap text-neutral-700 data-disabled:opacity-50;
|
|
97
106
|
}
|
|
98
107
|
|
|
99
108
|
&:where([data-component='combobox-chipremovebutton']) {
|
|
100
|
-
@apply -mr-1.75 flex h-4.25 aspect-square w-auto shrink-0 cursor-pointer items-center justify-center rounded-
|
|
109
|
+
@apply -mr-1.75 flex h-4.25 aspect-square w-auto shrink-0 cursor-pointer items-center justify-center rounded-md p-0 hover:bg-neutral-200 active:bg-neutral-200 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
|
|
101
110
|
}
|
|
102
111
|
|
|
103
112
|
&:where([data-component='combobox-addonopenbutton']) {
|
|
@@ -153,7 +162,7 @@
|
|
|
153
162
|
}
|
|
154
163
|
|
|
155
164
|
&:where([data-component='combobox-chipremovebuttonicon']) {
|
|
156
|
-
@apply h-3.25 w-fit shrink-0 text-neutral-
|
|
165
|
+
@apply h-3.25 w-fit shrink-0 text-neutral-700;
|
|
157
166
|
}
|
|
158
167
|
|
|
159
168
|
&:where([data-component='combobox-addonloadingicon']) {
|
|
@@ -10,17 +10,26 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&:where([data-component='datepicker-inputgroup']) {
|
|
13
|
-
@apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-
|
|
14
|
-
&[data-
|
|
13
|
+
@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 data-[focus-within]:border-blue-500 data-[focus-within]:ring-2 data-[focus-within]:ring-blue-500/10 data-[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;
|
|
14
|
+
&[data-validation='error'] {
|
|
15
15
|
@apply border-red-500 data-[focus-within]:border-red-500 data-[focus-within]:ring-red-500/10;
|
|
16
16
|
}
|
|
17
|
-
&[data-
|
|
17
|
+
&[data-validation='success'] {
|
|
18
18
|
@apply border-green-600 data-[focus-within]:border-green-600 data-[focus-within]:ring-green-600/10;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
&:where([data-component='datepicker-inputgroup'])
|
|
23
|
+
:where(
|
|
24
|
+
svg:not([data-style-disabled]):not(
|
|
25
|
+
[data-component='combobox-chipremovebuttonicon']
|
|
26
|
+
):not([data-component='chip-closebuttonicon'])
|
|
27
|
+
) {
|
|
28
|
+
@apply text-neutral-600;
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
&:where([data-component='datepicker-addon']) {
|
|
23
|
-
@apply inline-flex h-
|
|
32
|
+
@apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
|
|
24
33
|
&[data-variant='emphasized'] {
|
|
25
34
|
@apply bg-neutral-200/60;
|
|
26
35
|
}
|
|
@@ -54,7 +63,7 @@
|
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
&:where([data-component='datepicker-input']) {
|
|
57
|
-
@apply flex h-
|
|
66
|
+
@apply flex h-8 min-w-0 items-center bg-transparent px-2.5 py-0 text-sm text-neutral-950 data-disabled:text-neutral-400;
|
|
58
67
|
}
|
|
59
68
|
|
|
60
69
|
&:where([data-component='datepicker-input'])[data-range-input] {
|
|
@@ -66,7 +75,7 @@
|
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
&:where([data-component='datepicker-segment']) {
|
|
69
|
-
@apply rounded-sm text-inherit [font:inherit] outline-none data-focused:bg-blue-100 data-placeholder:text-neutral-
|
|
78
|
+
@apply rounded-sm text-inherit [font:inherit] outline-none data-focused:bg-blue-100 data-placeholder:text-neutral-600;
|
|
70
79
|
}
|
|
71
80
|
|
|
72
81
|
&:where([data-component='datepicker-addonopenbutton']) {
|
|
@@ -78,21 +87,21 @@
|
|
|
78
87
|
}
|
|
79
88
|
|
|
80
89
|
&:where([data-component='datepicker-openbutton']) {
|
|
81
|
-
@apply flex h-
|
|
82
|
-
&[data-
|
|
90
|
+
@apply flex h-8.5 w-fit shrink-0 cursor-pointer items-center justify-center gap-1.75 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 aria-expanded:border-blue-500 aria-expanded:ring-2 aria-expanded:ring-blue-500/10 aria-expanded:shadow-sm;
|
|
91
|
+
&[data-validation='error'] {
|
|
83
92
|
@apply border-red-500 focus-visible:border-red-500 focus-visible:ring-red-500/10 aria-expanded:border-red-500 aria-expanded:ring-red-500/10;
|
|
84
93
|
}
|
|
85
|
-
&[data-
|
|
94
|
+
&[data-validation='success'] {
|
|
86
95
|
@apply border-green-600 focus-visible:border-green-600 focus-visible:ring-green-600/10 aria-expanded:border-green-600 aria-expanded:ring-green-600/10;
|
|
87
96
|
}
|
|
88
97
|
}
|
|
89
98
|
|
|
90
99
|
&:where([data-component='datepicker-openbuttonvalue']) {
|
|
91
|
-
@apply min-w-0 truncate text-left text-inherit data-disabled:text-neutral-400;
|
|
100
|
+
@apply min-w-0 truncate text-left text-inherit data-disabled:text-neutral-400 data-placeholder:text-neutral-600;
|
|
92
101
|
}
|
|
93
102
|
|
|
94
103
|
&:where([data-component='datepicker-openbuttonicon']) {
|
|
95
|
-
@apply h-4 w-fit shrink-0 text-
|
|
104
|
+
@apply h-4 w-fit shrink-0 text-neutral-600;
|
|
96
105
|
}
|
|
97
106
|
|
|
98
107
|
&:where([data-component='datepicker-popup']) {
|
|
@@ -38,3 +38,19 @@
|
|
|
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 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;
|
|
47
|
+
|
|
48
|
+
&:not(:disabled) {
|
|
49
|
+
@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;
|
|
50
|
+
}
|
|
51
|
+
&:disabled {
|
|
52
|
+
@apply bg-black/3 text-neutral-400;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* donutchart */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='donutchart-track']) {
|
|
5
|
+
@apply fill-neutral-100;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='donutchart-slice'])[data-index='0'] {
|
|
9
|
+
@apply fill-[#13ACF0];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='donutchart-slice'])[data-index='1'] {
|
|
13
|
+
@apply fill-[#5365F6];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='donutchart-slice'])[data-index='2'] {
|
|
17
|
+
@apply fill-[#8B5CF6];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='donutchart-slice'])[data-index='3'] {
|
|
21
|
+
@apply fill-[#B163E8];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='donutchart-slice'])[data-index='4'] {
|
|
25
|
+
@apply fill-[#00AEFF];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='donutchart-slice'])[data-index='5'] {
|
|
29
|
+
@apply fill-[#FF9500];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='donutchart-slice'])[data-index='6'] {
|
|
33
|
+
@apply fill-[#00FFB7];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='donutchart-slice'])[data-index='7'] {
|
|
37
|
+
@apply fill-[#FFDD46];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='donutchart-slice'])[data-inactive] {
|
|
41
|
+
@apply opacity-40;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='donutchart-body']) {
|
|
45
|
+
@apply flex size-full flex-col items-center justify-center gap-1 text-center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='donutchart-bodytitle']) {
|
|
49
|
+
@apply max-w-full truncate text-sm leading-5 text-neutral-700;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-component='donutchart-bodyvalue']) {
|
|
53
|
+
@apply max-w-full truncate text-2xl leading-8 font-semibold tabular-nums text-neutral-950;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='donutchart-legendlist']) {
|
|
57
|
+
@apply flex min-w-48 flex-col gap-2;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-component='donutchart-legendlist'])[data-position='right'] {
|
|
61
|
+
@apply pl-6;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='donutchart-legendlist'])[data-position='bottom'] {
|
|
65
|
+
@apply pt-4;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:where([data-component='donutchart-legenditem']) {
|
|
69
|
+
@apply grid grid-cols-[auto_1fr_auto] items-center gap-x-2 text-sm leading-5;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:where([data-component='donutchart-legenditem'])[data-inactive] {
|
|
73
|
+
@apply opacity-40;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:where([data-component='donutchart-legendcolorindicator']) {
|
|
77
|
+
@apply size-3 rounded-sm;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:where([data-component='donutchart-legendcolorindicator'])[data-index='0'] {
|
|
81
|
+
@apply bg-[#13ACF0];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:where([data-component='donutchart-legendcolorindicator'])[data-index='1'] {
|
|
85
|
+
@apply bg-[#5365F6];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:where([data-component='donutchart-legendcolorindicator'])[data-index='2'] {
|
|
89
|
+
@apply bg-[#8B5CF6];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:where([data-component='donutchart-legendcolorindicator'])[data-index='3'] {
|
|
93
|
+
@apply bg-[#B163E8];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:where([data-component='donutchart-legendcolorindicator'])[data-index='4'] {
|
|
97
|
+
@apply bg-[#00AEFF];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:where([data-component='donutchart-legendcolorindicator'])[data-index='5'] {
|
|
101
|
+
@apply bg-[#FF9500];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:where([data-component='donutchart-legendcolorindicator'])[data-index='6'] {
|
|
105
|
+
@apply bg-[#00FFB7];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:where([data-component='donutchart-legendcolorindicator'])[data-index='7'] {
|
|
109
|
+
@apply bg-[#FFDD46];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:where([data-component='donutchart-legendlabel']) {
|
|
113
|
+
@apply min-w-0 truncate text-neutral-600;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:where([data-component='donutchart-legendvalue']) {
|
|
117
|
+
@apply pl-6 text-right tabular-nums text-neutral-500;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&:where([data-component='donutchart-tooltip']) {
|
|
121
|
+
@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;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:where([data-component='donutchart-tooltiptitle']) {
|
|
125
|
+
@apply col-span-full row-start-1 text-xs font-semibold leading-4 text-neutral-200;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:where([data-component='donutchart-tooltiplabel']) {
|
|
129
|
+
@apply col-start-2 row-start-2 text-xs font-medium leading-4 text-neutral-400;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&:where([data-component='donutchart-tooltipvalue']) {
|
|
133
|
+
@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;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&:where([data-component='donutchart-tooltipcolorindicator']) {
|
|
137
|
+
@apply col-start-1 row-start-2 h-2.5 w-2.5 rounded-sm;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&:where([data-component='donutchart-tooltipcolorindicator'])[data-index='0'] {
|
|
141
|
+
@apply bg-[#13ACF0];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:where([data-component='donutchart-tooltipcolorindicator'])[data-index='1'] {
|
|
145
|
+
@apply bg-[#5365F6];
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:where([data-component='donutchart-tooltipcolorindicator'])[data-index='2'] {
|
|
149
|
+
@apply bg-[#8B5CF6];
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&:where([data-component='donutchart-tooltipcolorindicator'])[data-index='3'] {
|
|
153
|
+
@apply bg-[#B163E8];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&:where([data-component='donutchart-tooltipcolorindicator'])[data-index='4'] {
|
|
157
|
+
@apply bg-[#00AEFF];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:where([data-component='donutchart-tooltipcolorindicator'])[data-index='5'] {
|
|
161
|
+
@apply bg-[#FF9500];
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&:where([data-component='donutchart-tooltipcolorindicator'])[data-index='6'] {
|
|
165
|
+
@apply bg-[#00FFB7];
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&:where([data-component='donutchart-tooltipcolorindicator'])[data-index='7'] {
|
|
169
|
+
@apply bg-[#FFDD46];
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -38,3 +38,19 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
/* drawer action buttons, styled like a secondary Button */
|
|
43
|
+
@layer components {
|
|
44
|
+
:where(:not([data-style-disabled])) {
|
|
45
|
+
&:where([data-component='drawer-openbutton']) {
|
|
46
|
+
@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;
|
|
47
|
+
|
|
48
|
+
&:not(:disabled) {
|
|
49
|
+
@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;
|
|
50
|
+
}
|
|
51
|
+
&:disabled {
|
|
52
|
+
@apply bg-black/3 text-neutral-400;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@apply bg-white flex w-full cursor-pointer flex-col items-center gap-1 rounded-xl border border-dashed border-neutral-300 p-8 pt-8 shadow-xs hover:bg-neutral-50 data-[dragging]:border-blue-500 data-[dragging]:bg-blue-50;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
&:where([data-component='fileupload-
|
|
16
|
+
&:where([data-component='fileupload-pickerbutton']) {
|
|
17
17
|
@apply mt-2 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;
|
|
18
18
|
&:not(:disabled) {
|
|
19
19
|
@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;
|
|
@@ -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
|
+
}
|
|
@@ -2,19 +2,28 @@
|
|
|
2
2
|
@layer components {
|
|
3
3
|
:where(:not([data-style-disabled])) {
|
|
4
4
|
&:where([data-component='input-input']) {
|
|
5
|
-
@apply min-w-12 flex-1 h-
|
|
5
|
+
@apply min-w-12 flex-1 h-8 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-600 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&:where([data-component='input-inputgroup']) {
|
|
9
|
-
@apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-
|
|
10
|
-
&[data-
|
|
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-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
|
}
|
|
17
17
|
|
|
18
|
+
&:where([data-component='input-inputgroup'])
|
|
19
|
+
:where(
|
|
20
|
+
svg:not([data-style-disabled]):not(
|
|
21
|
+
[data-component='combobox-chipremovebuttonicon']
|
|
22
|
+
):not([data-component='chip-closebuttonicon'])
|
|
23
|
+
) {
|
|
24
|
+
@apply text-neutral-600;
|
|
25
|
+
}
|
|
26
|
+
|
|
18
27
|
&:where([data-component='input-container']) {
|
|
19
28
|
@apply flex flex-col gap-1.5 w-full;
|
|
20
29
|
}
|
|
@@ -36,7 +45,7 @@
|
|
|
36
45
|
}
|
|
37
46
|
|
|
38
47
|
&:where([data-component='input-addon']) {
|
|
39
|
-
@apply inline-flex h-
|
|
48
|
+
@apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
|
|
40
49
|
&[data-variant='emphasized'] {
|
|
41
50
|
@apply bg-neutral-200/60;
|
|
42
51
|
}
|
|
@@ -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
|
+
}
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&:where([data-component='menu-buttonitem']) {
|
|
40
|
-
@apply flex h-
|
|
40
|
+
@apply flex h-7 w-full cursor-pointer items-center gap-2 rounded-2xl px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 font-normal active:bg-neutral-200;
|
|
41
41
|
&[data-tone='danger'] {
|
|
42
42
|
@apply text-red-600 data-highlighted:bg-neutral-100;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&:where([data-component='menu-linkitem']) {
|
|
47
|
-
@apply flex h-
|
|
47
|
+
@apply flex h-7 w-full cursor-pointer items-center gap-2 rounded-2xl px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 font-normal active:bg-neutral-200;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&:where([data-component='menu-radiogroup']) {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&:where([data-component='menu-submenuopenbutton']) {
|
|
55
|
-
@apply flex h-
|
|
55
|
+
@apply flex h-7 w-full cursor-pointer items-center justify-between gap-2 rounded-2xl px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 data-open:bg-neutral-100 font-normal active:bg-neutral-200;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&:where([data-component='menu-separator']) {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&:where([data-component='menu-submenuopenbuttonicon']) {
|
|
67
|
-
@apply h-4 w-fit shrink-0 text-
|
|
67
|
+
@apply h-4 w-fit shrink-0 text-neutral-800;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&:where([data-component='menu-checkboxcontainer']) {
|
|
71
|
-
@apply flex min-h-
|
|
71
|
+
@apply flex min-h-7 w-full items-center gap-2 rounded-2xl px-2 data-highlighted:bg-neutral-100;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&:where([data-component='menu-checkboxbuttonitem']) {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
&:where([data-component='menu-radiocontainer']) {
|
|
92
|
-
@apply flex min-h-
|
|
92
|
+
@apply flex min-h-7 w-full items-center gap-2 rounded-2xl px-2 data-highlighted:bg-neutral-100;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&:where([data-component='menu-radiobuttonitem']) {
|
|
@@ -108,5 +108,46 @@
|
|
|
108
108
|
&:where([data-component='menu-radioitemindicator-1']) {
|
|
109
109
|
@apply size-full rounded-full bg-white;
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
&:where([data-component='menu-buttonitem'])[data-tone='neutral']
|
|
113
|
+
&:where([data-component='menu-icon']) {
|
|
114
|
+
@apply text-neutral-800;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:where([data-component='menu-linkitem'])
|
|
118
|
+
&:where([data-component='menu-icon']) {
|
|
119
|
+
@apply text-neutral-800;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:where([data-component='menu-submenuopenbutton'])
|
|
123
|
+
&:where([data-component='menu-icon']) {
|
|
124
|
+
@apply text-neutral-800;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:where([data-component='menu-checkboxcontainer'])
|
|
128
|
+
&:where([data-component='menu-icon']) {
|
|
129
|
+
@apply text-neutral-800;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&:where([data-component='menu-radiocontainer'])
|
|
133
|
+
&:where([data-component='menu-icon']) {
|
|
134
|
+
@apply text-neutral-800;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
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
|
+
}
|
|
111
152
|
}
|
|
112
153
|
}
|