@central-ui/react 0.0.0-stage → 0.1.1
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 +21 -0
- package/README.md +33 -2
- package/dist/components/accordion/index.d.ts +73 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +92 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/autocomplete/index.d.ts +365 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +369 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/index.d.ts +48 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +60 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/index.d.ts +29 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +36 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/banner/index.d.ts +71 -0
- package/dist/components/banner/index.d.ts.map +1 -0
- package/dist/components/banner/index.js +119 -0
- package/dist/components/banner/index.js.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +31 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +42 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/index.d.ts +48 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +60 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/card/index.d.ts +34 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +45 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +66 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +146 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/chip/index.d.ts +26 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/chip/index.js +40 -0
- package/dist/components/chip/index.js.map +1 -0
- package/dist/components/combobox/index.d.ts +427 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +416 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/datepicker/index.d.ts +297 -0
- package/dist/components/datepicker/index.d.ts.map +1 -0
- package/dist/components/datepicker/index.js +507 -0
- package/dist/components/datepicker/index.js.map +1 -0
- package/dist/components/dialog/index.d.ts +88 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/index.js +102 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/divider/index.d.ts +21 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +24 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/index.d.ts +99 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +137 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/empty/index.d.ts +40 -0
- package/dist/components/empty/index.d.ts.map +1 -0
- package/dist/components/empty/index.js +61 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/fileupload/index.d.ts +107 -0
- package/dist/components/fileupload/index.d.ts.map +1 -0
- package/dist/components/fileupload/index.js +185 -0
- package/dist/components/fileupload/index.js.map +1 -0
- package/dist/components/form/index.d.ts +34 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.js +35 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/input/index.d.ts +85 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +249 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/menu/index.d.ts +115 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +188 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/metric/index.d.ts +24 -0
- package/dist/components/metric/index.d.ts.map +1 -0
- package/dist/components/metric/index.js +26 -0
- package/dist/components/metric/index.js.map +1 -0
- package/dist/components/numberinput/index.d.ts +105 -0
- package/dist/components/numberinput/index.d.ts.map +1 -0
- package/dist/components/numberinput/index.js +240 -0
- package/dist/components/numberinput/index.js.map +1 -0
- package/dist/components/otpinput/index.d.ts +63 -0
- package/dist/components/otpinput/index.d.ts.map +1 -0
- package/dist/components/otpinput/index.js +133 -0
- package/dist/components/otpinput/index.js.map +1 -0
- package/dist/components/page/index.d.ts +54 -0
- package/dist/components/page/index.d.ts.map +1 -0
- package/dist/components/page/index.js +100 -0
- package/dist/components/page/index.js.map +1 -0
- package/dist/components/passwordinput/index.d.ts +88 -0
- package/dist/components/passwordinput/index.d.ts.map +1 -0
- package/dist/components/passwordinput/index.js +251 -0
- package/dist/components/passwordinput/index.js.map +1 -0
- package/dist/components/popover/index.d.ts +67 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +76 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/radio/index.d.ts +90 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +232 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/ratinginput/index.d.ts +59 -0
- package/dist/components/ratinginput/index.d.ts.map +1 -0
- package/dist/components/ratinginput/index.js +88 -0
- package/dist/components/ratinginput/index.js.map +1 -0
- package/dist/components/select/index.d.ts +205 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +234 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/skeleton/index.d.ts +19 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +20 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/slider/index.d.ts +72 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +159 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/spinner/index.d.ts +14 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +15 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/splitter/index.d.ts +49 -0
- package/dist/components/splitter/index.d.ts.map +1 -0
- package/dist/components/splitter/index.js +67 -0
- package/dist/components/splitter/index.js.map +1 -0
- package/dist/components/stepper/index.d.ts +82 -0
- package/dist/components/stepper/index.d.ts.map +1 -0
- package/dist/components/stepper/index.js +100 -0
- package/dist/components/stepper/index.js.map +1 -0
- package/dist/components/switch/index.d.ts +57 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +101 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/table/index.d.ts +110 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +211 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +67 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +78 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/textarea/index.d.ts +72 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +205 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textlink/index.d.ts +39 -0
- package/dist/components/textlink/index.d.ts.map +1 -0
- package/dist/components/textlink/index.js +42 -0
- package/dist/components/textlink/index.js.map +1 -0
- package/dist/components/toast/index.d.ts +111 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +205 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toggle/index.d.ts +41 -0
- package/dist/components/toggle/index.d.ts.map +1 -0
- package/dist/components/toggle/index.js +78 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +44 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +51 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Style.d.ts +14 -0
- package/dist/types/Style.d.ts.map +1 -0
- package/dist/types/Style.js +2 -0
- package/dist/types/Style.js.map +1 -0
- package/dist/types/Tone.d.ts +4 -0
- package/dist/types/Tone.d.ts.map +1 -0
- package/dist/types/Tone.js +2 -0
- package/dist/types/Tone.js.map +1 -0
- package/dist/utils/ArkStateToDataAttributes.d.ts +4 -0
- package/dist/utils/ArkStateToDataAttributes.d.ts.map +1 -0
- package/dist/utils/ArkStateToDataAttributes.js +9 -0
- package/dist/utils/ArkStateToDataAttributes.js.map +1 -0
- package/dist/utils/Tone.d.ts +3 -0
- package/dist/utils/Tone.d.ts.map +1 -0
- package/dist/utils/Tone.js +7 -0
- package/dist/utils/Tone.js.map +1 -0
- package/dist/utils/useForwardClickToInput.d.ts +4 -0
- package/dist/utils/useForwardClickToInput.d.ts.map +1 -0
- package/dist/utils/useForwardClickToInput.js +27 -0
- package/dist/utils/useForwardClickToInput.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts +198 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.js +180 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.d.ts +200 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.js +174 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedTable.d.ts +169 -0
- package/dist/utils/virtualization/useVirtualizedTable.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedTable.js +127 -0
- package/dist/utils/virtualization/useVirtualizedTable.js.map +1 -0
- package/package.json +64 -4
- package/src/presets/shopify-polaris/shopify-polaris-accordion.css +28 -0
- package/src/presets/shopify-polaris/shopify-polaris-autocomplete.css +155 -0
- package/src/presets/shopify-polaris/shopify-polaris-avatar.css +47 -0
- package/src/presets/shopify-polaris/shopify-polaris-badge.css +27 -0
- package/src/presets/shopify-polaris/shopify-polaris-banner.css +111 -0
- package/src/presets/shopify-polaris/shopify-polaris-breadcrumb.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-button.css +79 -0
- package/src/presets/shopify-polaris/shopify-polaris-card.css +28 -0
- package/src/presets/shopify-polaris/shopify-polaris-checkbox.css +52 -0
- package/src/presets/shopify-polaris/shopify-polaris-chip.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-combobox.css +179 -0
- package/src/presets/shopify-polaris/shopify-polaris-datepicker.css +183 -0
- package/src/presets/shopify-polaris/shopify-polaris-dialog.css +40 -0
- package/src/presets/shopify-polaris/shopify-polaris-divider.css +12 -0
- package/src/presets/shopify-polaris/shopify-polaris-drawer.css +40 -0
- package/src/presets/shopify-polaris/shopify-polaris-empty.css +32 -0
- package/src/presets/shopify-polaris/shopify-polaris-fileupload.css +78 -0
- package/src/presets/shopify-polaris/shopify-polaris-form.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-input.css +72 -0
- package/src/presets/shopify-polaris/shopify-polaris-menu.css +112 -0
- package/src/presets/shopify-polaris/shopify-polaris-metric.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-numberinput.css +88 -0
- package/src/presets/shopify-polaris/shopify-polaris-otpinput.css +42 -0
- package/src/presets/shopify-polaris/shopify-polaris-page.css +69 -0
- package/src/presets/shopify-polaris/shopify-polaris-passwordinput.css +76 -0
- package/src/presets/shopify-polaris/shopify-polaris-popover.css +47 -0
- package/src/presets/shopify-polaris/shopify-polaris-radio.css +54 -0
- package/src/presets/shopify-polaris/shopify-polaris-ratinginput.css +42 -0
- package/src/presets/shopify-polaris/shopify-polaris-select.css +119 -0
- package/src/presets/shopify-polaris/shopify-polaris-skeleton.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-slider.css +86 -0
- package/src/presets/shopify-polaris/shopify-polaris-spinner.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-splitter.css +34 -0
- package/src/presets/shopify-polaris/shopify-polaris-stepper.css +55 -0
- package/src/presets/shopify-polaris/shopify-polaris-switch.css +38 -0
- package/src/presets/shopify-polaris/shopify-polaris-table.css +72 -0
- package/src/presets/shopify-polaris/shopify-polaris-tabs.css +33 -0
- package/src/presets/shopify-polaris/shopify-polaris-textarea.css +61 -0
- package/src/presets/shopify-polaris/shopify-polaris-textlink.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-toggle.css +52 -0
- package/src/presets/shopify-polaris/shopify-polaris-tooltip.css +31 -0
- package/src/presets/shopify-polaris/shopify-polaris.css +380 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-accordion.css +28 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-autocomplete.css +155 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-avatar.css +47 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-badge.css +27 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-banner.css +96 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-breadcrumb.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-button.css +68 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-card.css +28 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-checkbox.css +52 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-chip.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-combobox.css +184 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-datepicker.css +187 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-dialog.css +40 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-divider.css +12 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-drawer.css +40 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-empty.css +32 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-fileupload.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-form.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-input.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-menu.css +112 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-metric.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-numberinput.css +88 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-otpinput.css +42 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-page.css +69 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-passwordinput.css +76 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-popover.css +47 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-radio.css +54 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-ratinginput.css +42 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-select.css +118 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-skeleton.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-slider.css +86 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-spinner.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-splitter.css +34 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-stepper.css +55 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-switch.css +38 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-table.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-tabs.css +33 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-textarea.css +61 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-textlink.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-toast.css +43 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-toggle.css +52 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-tooltip.css +31 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css +381 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* banner */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='banner-surface']) {
|
|
5
|
+
@apply flex h-fit w-full flex-col overflow-clip rounded-xl border border-neutral-200 bg-white shadow-[0px_2px_1px_-1px_#0000002e];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='banner-header']) {
|
|
9
|
+
@apply relative flex h-10 w-full items-center gap-1.75 pr-10 pl-3;
|
|
10
|
+
&[data-tone='success'] {
|
|
11
|
+
@apply bg-green-700;
|
|
12
|
+
}
|
|
13
|
+
&[data-tone='danger'] {
|
|
14
|
+
@apply bg-red-700;
|
|
15
|
+
}
|
|
16
|
+
&[data-tone='caution'] {
|
|
17
|
+
@apply bg-amber-400;
|
|
18
|
+
}
|
|
19
|
+
&[data-tone='neutral'] {
|
|
20
|
+
@apply bg-neutral-900;
|
|
21
|
+
}
|
|
22
|
+
&[data-tone='informative'] {
|
|
23
|
+
@apply bg-blue-300/90;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:where([data-component='banner-icon']) {
|
|
28
|
+
@apply h-4 w-fit shrink-0;
|
|
29
|
+
&[data-tone='neutral'] {
|
|
30
|
+
@apply text-white;
|
|
31
|
+
}
|
|
32
|
+
&[data-tone='danger'] {
|
|
33
|
+
@apply text-white;
|
|
34
|
+
}
|
|
35
|
+
&[data-tone='success'] {
|
|
36
|
+
@apply text-white;
|
|
37
|
+
}
|
|
38
|
+
&[data-tone='informative'] {
|
|
39
|
+
@apply text-blue-950;
|
|
40
|
+
}
|
|
41
|
+
&[data-tone='caution'] {
|
|
42
|
+
@apply text-amber-950;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where([data-component='banner-title']) {
|
|
47
|
+
@apply text-sm font-semibold;
|
|
48
|
+
&[data-tone='neutral'] {
|
|
49
|
+
@apply text-white;
|
|
50
|
+
}
|
|
51
|
+
&[data-tone='danger'] {
|
|
52
|
+
@apply text-white;
|
|
53
|
+
}
|
|
54
|
+
&[data-tone='success'] {
|
|
55
|
+
@apply text-white;
|
|
56
|
+
}
|
|
57
|
+
&[data-tone='informative'] {
|
|
58
|
+
@apply text-blue-950;
|
|
59
|
+
}
|
|
60
|
+
&[data-tone='caution'] {
|
|
61
|
+
@apply text-amber-950;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:where([data-component='banner-closebutton']) {
|
|
66
|
+
@apply absolute top-1/2 right-2 flex h-6 w-6 -translate-y-1/2 cursor-pointer items-center justify-center rounded-md text-nowrap outline-none hover:bg-black/10 disabled:opacity-30;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:where([data-component='banner-closebuttonicon']) {
|
|
70
|
+
@apply h-5 w-fit shrink-0;
|
|
71
|
+
&[data-tone='neutral'] {
|
|
72
|
+
@apply text-white;
|
|
73
|
+
}
|
|
74
|
+
&[data-tone='danger'] {
|
|
75
|
+
@apply text-white;
|
|
76
|
+
}
|
|
77
|
+
&[data-tone='success'] {
|
|
78
|
+
@apply text-white;
|
|
79
|
+
}
|
|
80
|
+
&[data-tone='informative'] {
|
|
81
|
+
@apply text-blue-950;
|
|
82
|
+
}
|
|
83
|
+
&[data-tone='caution'] {
|
|
84
|
+
@apply text-amber-950;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:where([data-component='banner-body']) {
|
|
89
|
+
@apply flex h-fit w-full flex-col gap-2 p-3;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:where([data-component='banner-description']) {
|
|
93
|
+
@apply list-inside list-disc text-sm leading-normal text-neutral-900;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* breadcrumb */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='breadcrumb-breadcrumb']) {
|
|
5
|
+
@apply flex items-center gap-0.25;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='breadcrumb-item']) {
|
|
9
|
+
@apply flex w-fit items-center gap-3 text-[0.95rem] font-medium text-neutral-500 hover:underline data-active:font-semibold data-active:text-neutral-800;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='breadcrumb-separator']) {
|
|
13
|
+
@apply h-3.25 w-fit text-neutral-500;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* button */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='button-button']) {
|
|
5
|
+
@apply flex w-fit cursor-pointer items-center justify-center gap-1 text-nowrap font-semibold disabled:pointer-events-none disabled:opacity-50;
|
|
6
|
+
&[data-size='small'] {
|
|
7
|
+
@apply h-6.25 px-[0.55rem] text-[0.75rem] rounded-lg;
|
|
8
|
+
}
|
|
9
|
+
&[data-size='medium'] {
|
|
10
|
+
@apply h-7.5 px-[0.7rem] text-[0.8rem] rounded-lg;
|
|
11
|
+
}
|
|
12
|
+
&[data-size='large'] {
|
|
13
|
+
@apply h-8.5 px-[1rem] text-base rounded-lg;
|
|
14
|
+
}
|
|
15
|
+
&[data-size='icon'] {
|
|
16
|
+
@apply h-7 w-7 p-0 text-[0.8rem] rounded-lg shrink-0;
|
|
17
|
+
}
|
|
18
|
+
&[data-variant='primary'] {
|
|
19
|
+
&[data-tone='neutral'] {
|
|
20
|
+
@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:pt-[0.1rem] aria-expanded:pt-[0.1rem] active:shadow-[0_0_0_1px_#000000_inset,0px_0px_0px_50px_rgba(0,0,0,0.5)_inset] aria-expanded:shadow-[0_0_0_1px_#000000_inset,0px_0px_0px_50px_rgba(0,0,0,0.5)_inset];
|
|
21
|
+
}
|
|
22
|
+
&[data-tone='danger'] {
|
|
23
|
+
@apply bg-[#C70A24] text-white shadow-[0_-1px_0_1px_rgba(0,0,0,0.3)_inset,0_0_0_1px_#C70A24_inset,0_0.5px_0_1.5px_rgba(255,255,255,0.4)_inset] hover:brightness-85 active:pt-[0.1rem] aria-expanded:pt-[0.1rem] active:shadow-[0_2px_0_0px_#000000_inset,0px_0px_0px_50px_rgba(0,0,0,0.1)_inset] aria-expanded:shadow-[0_2px_0_0px_#000000_inset,0px_0px_0px_50px_rgba(0,0,0,0.1)_inset];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&[data-variant='secondary'] {
|
|
27
|
+
&[data-tone='neutral'] {
|
|
28
|
+
@apply 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];
|
|
29
|
+
}
|
|
30
|
+
&[data-tone='danger'] {
|
|
31
|
+
@apply bg-white text-red-800 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];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
&[data-variant='tertiary'] {
|
|
35
|
+
&[data-tone='neutral'] {
|
|
36
|
+
@apply bg-neutral-200/80 text-neutral-700 hover:bg-neutral-300/70 active:bg-neutral-300 aria-expanded:bg-neutral-300;
|
|
37
|
+
}
|
|
38
|
+
&[data-tone='danger'] {
|
|
39
|
+
@apply bg-red-100 text-red-700 hover:bg-red-200/70 active:bg-red-200 aria-expanded:bg-red-200;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='button-icon']) {
|
|
45
|
+
@apply w-fit shrink-0 text-inherit;
|
|
46
|
+
&[data-size='small'] {
|
|
47
|
+
@apply h-3;
|
|
48
|
+
}
|
|
49
|
+
&[data-size='medium'] {
|
|
50
|
+
@apply h-4;
|
|
51
|
+
}
|
|
52
|
+
&[data-size='large'] {
|
|
53
|
+
@apply h-4.5;
|
|
54
|
+
}
|
|
55
|
+
&[data-size='icon'] {
|
|
56
|
+
@apply h-4;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-component='button-loadingicon']) {
|
|
61
|
+
@apply h-4 w-fit shrink-0 animate-spin;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='button-list']) {
|
|
65
|
+
@apply flex items-center gap-2;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* card */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='card-card']) {
|
|
5
|
+
@apply flex h-fit flex-col rounded-xl border border-neutral-300/80 bg-white shadow-[0px_2px_1px_-1px_#0000002e];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='card-header']) {
|
|
9
|
+
@apply flex h-fit w-full flex-col gap-0.5 px-4 py-1.75 first:pt-4 last:pb-4;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='card-title']) {
|
|
13
|
+
@apply text-[0.9rem] font-semibold leading-normal text-neutral-900;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='card-description']) {
|
|
17
|
+
@apply text-[0.85rem] text-neutral-600;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='card-body']) {
|
|
21
|
+
@apply flex h-fit w-full flex-col gap-5 px-4 py-1.75 first:pt-4 last:pb-4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='card-footer']) {
|
|
25
|
+
@apply h-fit w-full px-4 py-1.75 first:pt-4 last:pb-4;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* checkbox */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='checkbox-checkboxgroup']) {
|
|
5
|
+
@apply flex w-full flex-col gap-3;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='checkbox-container']) {
|
|
9
|
+
@apply grid w-full grid-cols-[auto_1fr] items-start gap-x-2 gap-y-0.5;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='checkbox-button']) {
|
|
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-tone='invalid'] {
|
|
15
|
+
@apply border-red-800 bg-red-100 data-checked:bg-red-800 data-indeterminate:bg-red-800;
|
|
16
|
+
}
|
|
17
|
+
&[data-tone='valid'] {
|
|
18
|
+
@apply border-green-700 bg-green-100 data-checked:bg-green-700 data-indeterminate:bg-green-700;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='checkbox-indicator']) {
|
|
23
|
+
@apply flex items-center justify-center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where([data-component='checkbox-indicator'])
|
|
27
|
+
&:where([data-component='checkbox-indicator-1']) {
|
|
28
|
+
@apply h-3 w-fit;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:where([data-component='checkbox-indicator'])
|
|
32
|
+
&:where([data-component='checkbox-indicator-2']) {
|
|
33
|
+
@apply h-3 w-fit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='checkbox-label']) {
|
|
37
|
+
@apply col-start-2 row-start-1 cursor-pointer text-sm text-neutral-900 data-disabled:cursor-not-allowed data-disabled:text-neutral-500;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='checkbox-description']) {
|
|
41
|
+
@apply col-start-2 text-[0.8rem] font-medium text-neutral-500;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='checkbox-error']) {
|
|
45
|
+
@apply col-start-2 text-xs font-medium text-red-800;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='checkbox-success']) {
|
|
49
|
+
@apply col-start-2 text-xs font-medium text-emerald-700;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* chip */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='chip-chip']) {
|
|
5
|
+
@apply flex h-5.25 min-w-6 w-fit shrink-0 items-center justify-between gap-1 rounded-full bg-neutral-200 px-2 text-[0.8rem] leading-none font-medium text-nowrap text-neutral-700;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='chip-closebutton']) {
|
|
9
|
+
@apply -mr-1.75 flex h-4.25 aspect-square w-auto cursor-pointer items-center justify-center rounded-xl hover:bg-neutral-300 active:bg-neutral-300;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='chip-closebuttonicon']) {
|
|
13
|
+
@apply h-3.25 w-fit text-neutral-700;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/* Combobox */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='combobox-container']) {
|
|
5
|
+
@apply flex w-full flex-col gap-1.25;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='combobox-label']) {
|
|
9
|
+
@apply text-sm text-neutral-900 data-disabled:text-neutral-500;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='combobox-input']) {
|
|
13
|
+
@apply min-w-12 flex-1 h-8 rounded-none border-0 bg-transparent px-2.5 py-1.5 text-sm text-neutral-900 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-600 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='combobox-input'])[data-in-chips] {
|
|
17
|
+
@apply h-4 px-0 py-0;
|
|
18
|
+
}
|
|
19
|
+
|
|
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.5 min-h-8;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='combobox-scrollarea']) {
|
|
25
|
+
@apply flex min-h-0 w-full flex-col overflow-y-auto overscroll-contain;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='combobox-groupslist']) {
|
|
29
|
+
@apply flex w-full shrink-0 flex-col divide-y divide-neutral-300;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='combobox-itemslist']) {
|
|
33
|
+
@apply flex w-full flex-col gap-1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='combobox-group']) {
|
|
37
|
+
@apply p-1 flex w-full flex-col gap-1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='combobox-item']) {
|
|
41
|
+
@apply flex h-7.5 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2.5 text-[0.85rem] font-medium text-nowrap text-neutral-700 outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-30 data-highlighted:bg-neutral-100;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='combobox-popup']) {
|
|
45
|
+
@apply relative z-20 flex h-fit w-max flex-col rounded-xl border border-neutral-300 bg-white shadow-md data-open:animate-fade-scale-in data-closed:animate-fade-scale-out;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='combobox-arrow']) {
|
|
49
|
+
@apply pointer-events-none flex fill-white data-uncentered:hidden data-[side=bottom]:-top-2 data-[side=top]:-bottom-2 data-[side=top]:rotate-180 data-[side=left]:-right-[13px] data-[side=left]:rotate-90 data-[side=right]:-left-[13px] data-[side=right]:-rotate-90 ltr:data-[side=inline-start]:-right-[13px] ltr:data-[side=inline-start]:rotate-90 rtl:data-[side=inline-start]:-left-[13px] rtl:data-[side=inline-start]:-rotate-90 ltr:data-[side=inline-end]:-left-[13px] ltr:data-[side=inline-end]:-rotate-90 rtl:data-[side=inline-end]:-right-[13px] rtl:data-[side=inline-end]:rotate-90;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-component='combobox-arrow'])
|
|
53
|
+
&:where([data-component='combobox-arrow-1']) {
|
|
54
|
+
@apply fill-inherit;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:where([data-component='combobox-arrow'])
|
|
58
|
+
&:where([data-component='combobox-arrow-2']) {
|
|
59
|
+
@apply fill-neutral-300;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:where([data-component='combobox-arrow'])
|
|
63
|
+
&:where([data-component='combobox-arrow-3']) {
|
|
64
|
+
@apply fill-inherit;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:where([data-component='combobox-addon']) {
|
|
68
|
+
@apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1.5;
|
|
69
|
+
&[data-variant='emphasized'] {
|
|
70
|
+
@apply bg-neutral-200/60;
|
|
71
|
+
}
|
|
72
|
+
&[data-variant='normal'] {
|
|
73
|
+
@apply first:pr-0! last:pl-0!;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:where([data-component='combobox-addonicon']) {
|
|
78
|
+
@apply h-4 w-fit shrink-0 pointer-events-none text-neutral-600 data-disabled:text-neutral-500 data-readonly:text-neutral-600;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:where([data-component='combobox-addonbutton']) {
|
|
82
|
+
@apply flex h-5.5 w-fit cursor-pointer items-center justify-center gap-1 text-nowrap rounded-lg bg-white px-[0.55rem] text-[0.75rem] font-semibold text-neutral-700 not-active: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;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:where([data-component='combobox-inputgroup']) {
|
|
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-tone='invalid'] {
|
|
88
|
+
@apply border-red-800;
|
|
89
|
+
}
|
|
90
|
+
&[data-tone='valid'] {
|
|
91
|
+
@apply border-green-700;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:where([data-component='combobox-chip']) {
|
|
96
|
+
@apply flex h-5 min-w-6 w-fit shrink-0 items-center justify-between gap-1 rounded-full bg-neutral-200 px-2 text-[0.8rem] leading-none font-medium text-nowrap text-neutral-700 data-disabled:opacity-50;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&: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-xl p-0 hover:bg-neutral-300 active:bg-neutral-300 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:opacity-50;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:where([data-component='combobox-addonopenbutton']) {
|
|
104
|
+
@apply flex h-4 w-auto shrink-0 cursor-pointer items-center justify-center rounded-lg p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:opacity-50;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:where([data-component='combobox-addonclearbutton']) {
|
|
108
|
+
@apply flex h-4 w-auto shrink-0 cursor-pointer items-center justify-center rounded-lg p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:opacity-50;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:where([data-component='combobox-grouplabel']) {
|
|
112
|
+
@apply shrink-0 px-2.5 py-1.5 text-[0.75rem] leading-none font-medium text-neutral-600;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&:where([data-component='combobox-empty']) {
|
|
116
|
+
@apply flex w-full items-center gap-1.5 py-2 px-3.5 empty:p-0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:where([data-component='combobox-separator']) {
|
|
120
|
+
@apply w-full border-t border-neutral-300;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:where([data-component='combobox-itemtext']) {
|
|
124
|
+
@apply min-w-0 flex-1 truncate;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:where([data-component='combobox-addontext']) {
|
|
128
|
+
@apply shrink-0 whitespace-nowrap text-[0.8rem] text-neutral-600 data-disabled:text-neutral-500 data-readonly:text-neutral-600;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:where([data-component='combobox-emptytext']) {
|
|
132
|
+
@apply text-[0.85rem] text-center font-medium text-neutral-600;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:where([data-component='combobox-description']) {
|
|
136
|
+
@apply text-xs font-medium text-neutral-500 data-disabled:text-neutral-400;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:where([data-component='combobox-error']) {
|
|
140
|
+
@apply text-xs font-medium text-red-800 data-disabled:text-red-400;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:where([data-component='combobox-success']) {
|
|
144
|
+
@apply text-xs font-medium text-emerald-700 data-disabled:text-emerald-400;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:where([data-component='combobox-addonopenbuttonicon']) {
|
|
148
|
+
@apply h-4 w-fit shrink-0 p-0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:where([data-component='combobox-addonclearbuttonicon']) {
|
|
152
|
+
@apply h-4 w-fit shrink-0 p-0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:where([data-component='combobox-chipremovebuttonicon']) {
|
|
156
|
+
@apply h-3.25 w-fit shrink-0 text-neutral-700;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&:where([data-component='combobox-addonloadingicon']) {
|
|
160
|
+
@apply h-4 w-fit shrink-0 pointer-events-none animate-spin text-neutral-600 data-disabled:text-neutral-500 data-readonly:text-neutral-600;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&:where([data-component='combobox-itemindicator']) {
|
|
164
|
+
@apply flex h-4 w-4 shrink-0 items-center justify-center text-neutral-700;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:where([data-component='combobox-itemindicator'])
|
|
168
|
+
&:where([data-component='combobox-itemindicator-icon']) {
|
|
169
|
+
@apply h-3.5 w-fit shrink-0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:where([data-component='combobox-loading']) {
|
|
173
|
+
@apply flex w-full items-center gap-1.5 py-2 px-3.5 empty:p-0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&:where([data-component='combobox-loadingtext']) {
|
|
177
|
+
@apply text-[0.85rem] text-center font-medium text-neutral-600;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:where([data-component='combobox-loadingicon']) {
|
|
181
|
+
@apply h-4 w-fit shrink-0 animate-spin text-neutral-600;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/* datepicker */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='datepicker-container']) {
|
|
5
|
+
@apply flex w-full flex-col gap-1.25;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='datepicker-label']) {
|
|
9
|
+
@apply text-sm text-neutral-900 data-disabled:text-neutral-500;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='datepicker-inputgroup']) {
|
|
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-tone='invalid'] {
|
|
15
|
+
@apply border-red-800;
|
|
16
|
+
}
|
|
17
|
+
&[data-tone='valid'] {
|
|
18
|
+
@apply border-green-700;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='datepicker-addon']) {
|
|
23
|
+
@apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1.5;
|
|
24
|
+
&[data-variant='emphasized'] {
|
|
25
|
+
@apply bg-neutral-200/60;
|
|
26
|
+
}
|
|
27
|
+
&[data-variant='normal'] {
|
|
28
|
+
@apply first:pr-0! last:pl-0!;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='datepicker-addontext']) {
|
|
33
|
+
@apply shrink-0 whitespace-nowrap text-[0.8rem] text-neutral-600;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='datepicker-addonicon']) {
|
|
37
|
+
@apply h-4 w-fit shrink-0 pointer-events-none text-neutral-600 data-disabled:text-neutral-500;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='datepicker-addonloadingicon']) {
|
|
41
|
+
@apply h-4 w-fit shrink-0 animate-spin text-neutral-600;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='datepicker-addonbutton']) {
|
|
45
|
+
@apply flex h-5.5 w-fit cursor-pointer items-center justify-center gap-1 text-nowrap rounded-lg bg-white px-[0.55rem] text-[0.75rem] font-semibold text-neutral-700 not-active: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_0_rgba(0,0,0,0.19)_inset,0px_0px_0px_50px_rgba(0,0,0,0.1)_inset,0px_-1px_1px_0_rgba(0,0,0,0.1)_inset] disabled:pointer-events-none disabled:opacity-50;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='datepicker-inputslist']) {
|
|
49
|
+
@apply flex w-full min-w-0 items-center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-component='datepicker-inputslistseparator']) {
|
|
53
|
+
@apply shrink-0 text-sm text-neutral-900;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='datepicker-input']) {
|
|
57
|
+
@apply flex h-8 min-w-0 items-center bg-transparent px-2.5 py-1.5 text-sm text-neutral-900;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-component='datepicker-input'])[data-range-input] {
|
|
61
|
+
@apply w-fit shrink-0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='datepicker-input']):not([data-range-input]) {
|
|
65
|
+
@apply w-full;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:where([data-component='datepicker-segment']) {
|
|
69
|
+
@apply rounded-sm text-inherit [font:inherit] outline-none data-focused:bg-blue-100 data-placeholder:text-neutral-600;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:where([data-component='datepicker-addonopenbutton']) {
|
|
73
|
+
@apply flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-lg border-0 p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 data-open:bg-neutral-100 disabled:pointer-events-none disabled:opacity-50 data-readonly:pointer-events-none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:where([data-component='datepicker-addonopenbuttonicon']) {
|
|
77
|
+
@apply h-4 w-fit shrink-0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:where([data-component='datepicker-openbutton']) {
|
|
81
|
+
@apply flex h-7.5 w-fit shrink-0 cursor-pointer items-center justify-center gap-1.75 overflow-hidden rounded-lg bg-white px-[0.7rem] text-[0.8rem] font-semibold text-neutral-700 outline-blue-600 outline-offset-1! not-active: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] focus-visible:outline-2 disabled:pointer-events-none disabled:opacity-50 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];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:where([data-component='datepicker-openbuttonvalue']) {
|
|
85
|
+
@apply min-w-0 truncate text-left text-inherit data-disabled:text-neutral-500;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:where([data-component='datepicker-openbuttonicon']) {
|
|
89
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:where([data-component='datepicker-popup']) {
|
|
93
|
+
@apply relative z-80 flex h-fit w-max flex-col overflow-auto rounded-xl border border-neutral-300 bg-white shadow-md data-entering:animate-fade-scale-in data-exiting:animate-fade-scale-out;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:where([data-component='datepicker-calendar']) {
|
|
97
|
+
@apply grid grid-cols-[auto_minmax(0,1fr)] grid-rows-[auto_1fr];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:where([data-component='datepicker-calendar']) {
|
|
101
|
+
@apply grid grid-cols-[auto_minmax(0,1fr)] grid-rows-[auto_1fr];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:where([data-component='datepicker-presetslist']) {
|
|
105
|
+
@apply row-span-2 flex flex-col border-r border-neutral-200 p-2 outline-none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:where([data-component='datepicker-item']) {
|
|
109
|
+
@apply flex h-7.5 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2.5 text-[0.85rem] font-medium text-nowrap text-neutral-700 outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-30 data-hovered:bg-neutral-100 data-focused:bg-neutral-100 data-selected:bg-neutral-100 data-focus-visible:outline-2 data-focus-visible:outline-blue-600;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:where([data-component='datepicker-itemtext']) {
|
|
113
|
+
@apply min-w-0 flex-1 truncate;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:where([data-component='datepicker-itemindicator']) {
|
|
117
|
+
@apply flex h-4 w-4 shrink-0 items-center justify-center text-neutral-700;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&:where([data-component='datepicker-itemindicator'])
|
|
121
|
+
&:where([data-component='datepicker-itemindicator-1']) {
|
|
122
|
+
@apply h-3.5 w-fit shrink-0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:where([data-component='datepicker-actions']) {
|
|
126
|
+
@apply col-2 flex items-center justify-between p-2;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:where([data-component='datepicker-viewdatevalue']) {
|
|
130
|
+
@apply flex min-w-0 items-center gap-1 truncate text-[0.8rem] font-medium text-neutral-900;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:where([data-component='datepicker-viewdatevalue'])
|
|
134
|
+
&:where([data-component='datepicker-viewdatevalue-1']) {
|
|
135
|
+
@apply whitespace-nowrap text-inherit [font:inherit];
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:where([data-component='datepicker-previousbutton']) {
|
|
139
|
+
@apply flex h-6 aspect-square shrink-0 cursor-pointer items-center justify-center rounded-lg p-0 text-neutral-600 hover:bg-neutral-100 active:bg-neutral-200 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:opacity-30;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:where([data-component='datepicker-nextbutton']) {
|
|
143
|
+
@apply flex h-6 aspect-square shrink-0 cursor-pointer items-center justify-center rounded-lg p-0 text-neutral-600 hover:bg-neutral-100 active:bg-neutral-200 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:opacity-30;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:where([data-component='datepicker-previousbuttonicon']) {
|
|
147
|
+
@apply h-5 w-fit shrink-0 text-inherit;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:where([data-component='datepicker-nextbuttonicon']) {
|
|
151
|
+
@apply h-5 w-fit shrink-0 text-inherit;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:where([data-component='datepicker-tableslist']) {
|
|
155
|
+
@apply col-2 flex items-start gap-2 p-2;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:where([data-component='datepicker-table']) {
|
|
159
|
+
@apply w-fit border-collapse [&_td]:p-0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&:where([data-component='datepicker-table'])
|
|
163
|
+
&:where([data-component='datepicker-table-1']) {
|
|
164
|
+
@apply h-8 w-8 p-0 text-center text-xs font-medium text-neutral-500;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:where([data-component='datepicker-table'])
|
|
168
|
+
&:where([data-component='datepicker-table-2']) {
|
|
169
|
+
@apply flex h-8 w-8 cursor-pointer items-center justify-center rounded-none p-0 text-sm font-normal text-neutral-900 outline-none not-data-outside-month:data-hovered:bg-neutral-100 data-focus-visible:outline-2 data-focus-visible:outline-blue-600 not-data-outside-month:data-selected:rounded-lg not-data-outside-month:data-selected:bg-neutral-900 not-data-outside-month:data-selected:text-white data-disabled:pointer-events-none data-disabled:opacity-30 data-unavailable:pointer-events-none data-unavailable:opacity-30 data-outside-month:text-neutral-400 data-outside-month:opacity-100!;
|
|
170
|
+
&[data-mode='range'] {
|
|
171
|
+
@apply not-data-outside-month:data-selected:bg-neutral-100 not-data-outside-month:data-selected:text-neutral-900 not-data-outside-month:data-selected:rounded-none not-data-outside-month:data-selection-start:rounded-l-lg not-data-outside-month:data-selection-start:bg-neutral-900 not-data-outside-month:data-selection-start:text-white not-data-outside-month:data-selection-end:rounded-r-lg not-data-outside-month:data-selection-end:bg-neutral-900 not-data-outside-month:data-selection-end:text-white;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:where([data-component='datepicker-description']) {
|
|
176
|
+
@apply text-xs font-medium text-neutral-500 data-disabled:text-neutral-400;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:where([data-component='datepicker-error']) {
|
|
180
|
+
@apply text-xs font-medium text-red-800 data-disabled:text-red-400;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&:where([data-component='datepicker-success']) {
|
|
184
|
+
@apply text-xs font-medium text-emerald-700 data-disabled:text-emerald-400;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|