@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,179 @@
|
|
|
1
|
+
/* Combobox */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='combobox-container']) {
|
|
5
|
+
@apply flex flex-col gap-1.5 w-full;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='combobox-label']) {
|
|
9
|
+
@apply text-sm font-medium text-neutral-950 data-disabled:text-neutral-400;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='combobox-input']) {
|
|
13
|
+
@apply min-w-12 flex-1 h-7 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-500 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
|
|
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 min-h-7;
|
|
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-200;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='combobox-itemslist']) {
|
|
33
|
+
@apply flex w-full flex-col gap-0.5;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='combobox-group']) {
|
|
37
|
+
@apply p-1 flex w-full flex-col gap-0.5;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='combobox-item']) {
|
|
41
|
+
@apply flex h-8 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-lg 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
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='combobox-popup']) {
|
|
45
|
+
@apply relative z-20 flex h-fit w-max flex-col rounded-xl border border-neutral-200 bg-white shadow-lg 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-200;
|
|
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-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
|
|
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 text-neutral-600 data-disabled:text-neutral-400 pointer-events-none 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-full bg-neutral-200 px-2 text-[0.75rem] font-medium text-neutral-950 hover:bg-neutral-300 active:bg-neutral-300 active:scale-97 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:bg-black/3 disabled:text-neutral-400;
|
|
83
|
+
}
|
|
84
|
+
|
|
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-200 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-tone='invalid'] {
|
|
88
|
+
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
89
|
+
}
|
|
90
|
+
&[data-tone='valid'] {
|
|
91
|
+
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
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-950 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-500 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-full p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 focus-visible:outline-2 focus-visible:outline-blue-500 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-full p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:where([data-component='combobox-grouplabel']) {
|
|
112
|
+
@apply shrink-0 px-2 py-1 text-xs leading-4 font-normal 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-200;
|
|
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-400 data-readonly:text-neutral-600;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:where([data-component='combobox-emptytext']) {
|
|
132
|
+
@apply text-sm text-center font-normal text-neutral-600;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:where([data-component='combobox-description']) {
|
|
136
|
+
@apply text-xs text-neutral-600 data-disabled:text-neutral-400;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:where([data-component='combobox-error']) {
|
|
140
|
+
@apply text-xs text-red-800 data-disabled:text-red-400;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:where([data-component='combobox-success']) {
|
|
144
|
+
@apply text-xs text-green-800 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-950;
|
|
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-400 data-readonly:text-neutral-600;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&:where([data-component='combobox-itemindicator']) {
|
|
164
|
+
@apply h-3.5 w-3.5 shrink-0 text-neutral-950;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:where([data-component='combobox-loading']) {
|
|
168
|
+
@apply flex w-full items-center gap-1.5 py-2 px-3.5 empty:p-0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:where([data-component='combobox-loadingtext']) {
|
|
172
|
+
@apply text-sm text-center font-normal text-neutral-600;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:where([data-component='combobox-loadingicon']) {
|
|
176
|
+
@apply h-4 w-fit shrink-0 animate-spin text-neutral-600;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* datepicker */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='datepicker-container']) {
|
|
5
|
+
@apply flex flex-col gap-1.5 w-full;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='datepicker-label']) {
|
|
9
|
+
@apply text-sm font-medium text-neutral-950 data-disabled:text-neutral-400;
|
|
10
|
+
}
|
|
11
|
+
|
|
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-200 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-tone='invalid'] {
|
|
15
|
+
@apply border-red-500 data-[focus-within]:border-red-500 data-[focus-within]:ring-red-500/10;
|
|
16
|
+
}
|
|
17
|
+
&[data-tone='valid'] {
|
|
18
|
+
@apply border-green-600 data-[focus-within]:border-green-600 data-[focus-within]:ring-green-600/10;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='datepicker-addon']) {
|
|
23
|
+
@apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
|
|
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 data-disabled:text-neutral-400 data-readonly:text-neutral-600;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='datepicker-addonicon']) {
|
|
37
|
+
@apply h-4 w-fit shrink-0 text-neutral-600 data-disabled:text-neutral-400;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='datepicker-addonloadingicon']) {
|
|
41
|
+
@apply h-4 w-fit shrink-0 pointer-events-none animate-spin text-neutral-600 data-disabled:text-neutral-400 data-readonly: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-full bg-neutral-200 px-2 text-[0.75rem] font-medium text-neutral-950 hover:bg-neutral-300 active:bg-neutral-300 active:scale-97 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:bg-black/3 disabled:text-neutral-400;
|
|
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-950;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='datepicker-input']) {
|
|
57
|
+
@apply flex h-7 min-w-0 items-center bg-transparent px-2.5 py-0 text-sm text-neutral-950 data-disabled:text-neutral-400;
|
|
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-500;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:where([data-component='datepicker-addonopenbutton']) {
|
|
73
|
+
@apply flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-full border-0 p-0 text-neutral-600 hover:text-neutral-950 active:text-neutral-800 data-open:bg-neutral-100 disabled:pointer-events-none disabled:opacity-50 data-readonly:pointer-events-none focus-visible:outline-2 focus-visible:outline-blue-500;
|
|
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-xl border border-neutral-200 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;
|
|
82
|
+
&[data-tone='invalid'] {
|
|
83
|
+
@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
|
+
}
|
|
85
|
+
&[data-tone='valid'] {
|
|
86
|
+
@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
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:where([data-component='datepicker-openbuttonvalue']) {
|
|
91
|
+
@apply min-w-0 truncate text-left text-inherit data-disabled:text-neutral-400;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:where([data-component='datepicker-openbuttonicon']) {
|
|
95
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:where([data-component='datepicker-popup']) {
|
|
99
|
+
@apply relative z-80 flex h-fit w-max flex-col overflow-auto rounded-xl border border-neutral-200 bg-white shadow-lg data-entering:animate-fade-scale-in data-exiting:animate-fade-scale-out;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:where([data-component='datepicker-calendar']) {
|
|
103
|
+
@apply grid grid-cols-[auto_minmax(0,1fr)] grid-rows-[auto_1fr];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:where([data-component='datepicker-calendar']) {
|
|
107
|
+
@apply grid grid-cols-[auto_minmax(0,1fr)] grid-rows-[auto_1fr];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:where([data-component='datepicker-presetslist']) {
|
|
111
|
+
@apply row-span-2 flex flex-col border-r border-neutral-200 p-2 outline-none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:where([data-component='datepicker-item']) {
|
|
115
|
+
@apply flex h-8 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-lg 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-hovered:bg-neutral-100 data-focused:bg-neutral-100 data-selected:bg-neutral-100 data-focus-visible:outline-2 data-focus-visible:outline-blue-500;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:where([data-component='datepicker-itemtext']) {
|
|
119
|
+
@apply min-w-0 flex-1 truncate;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:where([data-component='datepicker-itemindicator']) {
|
|
123
|
+
@apply h-3.5 w-3.5 shrink-0 text-neutral-950;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:where([data-component='datepicker-actions']) {
|
|
127
|
+
@apply col-2 flex items-center justify-between p-2;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&:where([data-component='datepicker-viewdatevalue']) {
|
|
131
|
+
@apply min-w-0 truncate text-[0.8rem] font-medium text-neutral-950;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&:where([data-component='datepicker-previousbutton']) {
|
|
135
|
+
@apply flex h-6 aspect-square shrink-0 cursor-pointer items-center justify-center rounded-full p-0 text-neutral-600 hover:bg-neutral-100 active:bg-neutral-200 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-30;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:where([data-component='datepicker-nextbutton']) {
|
|
139
|
+
@apply flex h-6 aspect-square shrink-0 cursor-pointer items-center justify-center rounded-full p-0 text-neutral-600 hover:bg-neutral-100 active:bg-neutral-200 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-30;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:where([data-component='datepicker-previousbuttonicon']) {
|
|
143
|
+
@apply h-5 w-fit shrink-0 text-inherit;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:where([data-component='datepicker-nextbuttonicon']) {
|
|
147
|
+
@apply h-5 w-fit shrink-0 text-inherit;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:where([data-component='datepicker-tableslist']) {
|
|
151
|
+
@apply col-2 flex items-start gap-2 p-2;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:where([data-component='datepicker-table']) {
|
|
155
|
+
@apply w-fit border-collapse [&_td]:p-0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:where([data-component='datepicker-table'])
|
|
159
|
+
&:where([data-component='datepicker-table-1']) {
|
|
160
|
+
@apply h-8 w-8 p-0 text-center text-xs font-normal text-neutral-600;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&:where([data-component='datepicker-table'])
|
|
164
|
+
&:where([data-component='datepicker-table-2']) {
|
|
165
|
+
@apply flex h-8 w-8 cursor-pointer items-center justify-center rounded-none p-0 text-sm font-normal text-neutral-950 outline-none not-data-outside-month:data-hovered:bg-neutral-100 data-focus-visible:outline-2 data-focus-visible:outline-blue-500 not-data-outside-month:data-selected:rounded-lg not-data-outside-month:data-selected:bg-neutral-950 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! not-data-outside-month:data-hovered:rounded-lg;
|
|
166
|
+
&[data-mode='range'] {
|
|
167
|
+
@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;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:where([data-component='datepicker-description']) {
|
|
172
|
+
@apply text-xs text-neutral-600 data-disabled:text-neutral-400;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:where([data-component='datepicker-error']) {
|
|
176
|
+
@apply text-xs text-red-800 data-disabled:text-red-400;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:where([data-component='datepicker-success']) {
|
|
180
|
+
@apply text-xs text-green-800 data-disabled:text-emerald-400;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* dialog */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='dialog-popup']) {
|
|
5
|
+
@apply flex max-h-[85vh] min-h-0 w-[95vw] max-w-160 flex-col overflow-hidden rounded-3xl border border-neutral-200 bg-white shadow-xl outline-none data-open:animate-fade-scale-in data-closed:animate-fade-scale-out;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='dialog-backdrop']) {
|
|
9
|
+
@apply fixed inset-0 z-30 min-h-dvh bg-black/50 data-open:animate-fade-in data-closed:animate-fade-out;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='dialog-header']) {
|
|
13
|
+
@apply relative flex w-full shrink-0 flex-col gap-1 border-b border-transparent bg-white p-4;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='dialog-body']) {
|
|
17
|
+
@apply min-h-0 w-full flex-1 overflow-y-auto p-4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='dialog-footer']) {
|
|
21
|
+
@apply flex w-full shrink-0 items-center justify-end gap-2 border-t border-transparent p-4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='dialog-title']) {
|
|
25
|
+
@apply text-base font-semibold text-neutral-950;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='dialog-description']) {
|
|
29
|
+
@apply text-sm text-neutral-600;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='dialog-closebutton']) {
|
|
33
|
+
@apply absolute top-4 right-4 flex h-7 aspect-square w-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-neutral-200 bg-white p-0 text-neutral-950 shadow-sm hover:bg-neutral-100 hover:text-neutral-950 active:bg-neutral-200 active:text-neutral-950 focus-visible:outline-2 focus-visible:outline-blue-500;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='dialog-closebuttonicon']) {
|
|
37
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* divider */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='divider-divider']) {
|
|
5
|
+
@apply w-full border-neutral-300;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='divider-text']) {
|
|
9
|
+
@apply shrink-0 text-xs font-medium text-neutral-500;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* drawer */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='drawer-popup']) {
|
|
5
|
+
@apply pointer-events-auto fixed flex max-h-dvh min-h-0 flex-col overflow-visible border-neutral-200 bg-white shadow-xl outline-none data-[swipe-direction=right]:inset-y-0 data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:h-full data-[swipe-direction=right]:w-[95vw] data-[swipe-direction=right]:max-w-md data-[swipe-direction=right]:border-l data-[swipe-direction=left]:inset-y-0 data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:h-full data-[swipe-direction=left]:w-[95vw] data-[swipe-direction=left]:max-w-md data-[swipe-direction=left]:border-r data-[swipe-direction=down]:inset-x-0 data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:h-[95vh] data-[swipe-direction=down]:w-full data-[swipe-direction=down]:border-t data-[swipe-direction=up]:inset-x-0 data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:h-[95vh] data-[swipe-direction=up]:w-full data-[swipe-direction=up]:border-b;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='drawer-backdrop']) {
|
|
9
|
+
@apply fixed inset-0 z-30 min-h-dvh bg-black/50 data-open:animate-fade-in-slow data-closed:animate-fade-out-slow;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='drawer-header']) {
|
|
13
|
+
@apply relative flex w-full shrink-0 flex-col gap-1 border-b border-transparent bg-white p-4;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='drawer-body']) {
|
|
17
|
+
@apply min-h-0 w-full flex-1 overflow-y-auto p-4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='drawer-footer']) {
|
|
21
|
+
@apply flex w-full shrink-0 items-center justify-end gap-2 border-t border-transparent p-4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='drawer-title']) {
|
|
25
|
+
@apply text-base font-semibold text-neutral-950;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='drawer-description']) {
|
|
29
|
+
@apply text-sm text-neutral-600;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='drawer-closebutton']) {
|
|
33
|
+
@apply absolute top-4 right-4 flex h-7 aspect-square w-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-neutral-200 bg-white p-0 text-neutral-950 shadow-sm hover:bg-neutral-100 hover:text-neutral-950 active:bg-neutral-200 active:text-neutral-950 focus-visible:outline-2 focus-visible:outline-blue-500;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='drawer-closebuttonicon']) {
|
|
37
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* empty */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='empty-surface']) {
|
|
5
|
+
@apply flex w-full flex-col items-center justify-center p-4;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='empty-body']) {
|
|
9
|
+
@apply flex h-fit w-full max-w-150 flex-col items-center justify-center gap-1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='empty-title']) {
|
|
13
|
+
@apply text-sm font-semibold text-center text-neutral-950;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='empty-description']) {
|
|
17
|
+
@apply text-sm font-normal text-center text-neutral-600;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='empty-image']) {
|
|
21
|
+
@apply mb-4 h-16 w-fit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='empty-icon']) {
|
|
25
|
+
@apply mb-2 h-8 w-fit text-neutral-950;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='empty-actionslist']) {
|
|
29
|
+
@apply mt-3 flex w-fit items-center gap-4;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* fileupload */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='fileupload-container']) {
|
|
5
|
+
@apply flex w-full flex-col gap-1.25;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='fileupload-label']) {
|
|
9
|
+
@apply text-sm text-neutral-950;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='fileupload-dropzone']) {
|
|
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
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='fileupload-filepickeropenbutton']) {
|
|
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
|
+
&:not(:disabled) {
|
|
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;
|
|
20
|
+
}
|
|
21
|
+
&:disabled {
|
|
22
|
+
@apply bg-black/3 text-neutral-400;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where([data-component='fileupload-uploadicon']) {
|
|
27
|
+
@apply h-4.5 w-fit shrink-0 text-neutral-950;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-component='fileupload-title']) {
|
|
31
|
+
@apply mt-2 text-base leading-snug font-medium text-neutral-950 data-disabled:text-neutral-500 text-center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-component='fileupload-description']) {
|
|
35
|
+
@apply text-xs leading-snug font-medium text-neutral-600 data-disabled:text-neutral-400 text-center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-component='fileupload-filelist']) {
|
|
39
|
+
@apply flex w-full flex-col gap-1.5 mt-4;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:where([data-component='fileupload-file']) {
|
|
43
|
+
@apply grid h-14 w-full grid-cols-[auto_1fr_auto] grid-rows-2 items-center gap-x-2 rounded-xl border border-neutral-200 bg-white p-2 shadow-xs data-[status=rejected]:h-auto data-[status=rejected]:min-h-14 data-[status=rejected]:grid-rows-[auto_auto_auto] data-[status=rejected]:bg-red-50;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where([data-component='fileupload-fileerrortext']) {
|
|
47
|
+
@apply col-start-2 row-start-3 text-xs text-red-600 font-medium;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:where([data-component='fileupload-filepreview']) {
|
|
51
|
+
@apply col-start-1 row-span-2 flex size-9 aspect-square shrink-0 items-center justify-center overflow-hidden rounded-lg border border-neutral-200 bg-neutral-50 object-cover;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:where([data-component='fileupload-filepreviewimage']) {
|
|
55
|
+
@apply h-full w-full object-cover;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:where([data-component='fileupload-filethumbnailicon']) {
|
|
59
|
+
@apply h-5 w-fit shrink-0 text-neutral-400;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:where([data-component='fileupload-filename']) {
|
|
63
|
+
@apply col-start-2 row-start-1 truncate text-sm font-medium text-neutral-950;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:where([data-component='fileupload-filesize']) {
|
|
67
|
+
@apply col-start-2 row-start-2 text-xs text-neutral-600;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:where([data-component='fileupload-fileremovebutton']) {
|
|
71
|
+
@apply col-start-3 row-span-2 flex h-6 aspect-square w-auto shrink-0 cursor-pointer items-center justify-center rounded-full text-neutral-600 hover:bg-neutral-100 active:bg-neutral-200 focus-visible:outline-2 focus-visible:outline-blue-500 data-disabled:pointer-events-none data-disabled:opacity-30;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:where([data-component='fileupload-fileremovebuttonicon']) {
|
|
75
|
+
@apply h-4 w-fit;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* input */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='input-input']) {
|
|
5
|
+
@apply min-w-12 flex-1 h-7 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-500 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
|
|
6
|
+
}
|
|
7
|
+
|
|
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-200 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-tone='invalid'] {
|
|
11
|
+
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
12
|
+
}
|
|
13
|
+
&[data-tone='valid'] {
|
|
14
|
+
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:where([data-component='input-container']) {
|
|
19
|
+
@apply flex flex-col gap-1.5 w-full;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='input-label']) {
|
|
23
|
+
@apply text-sm font-medium text-neutral-950 data-disabled:text-neutral-400;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where([data-component='input-description']) {
|
|
27
|
+
@apply text-xs text-neutral-600;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-component='input-error']) {
|
|
31
|
+
@apply text-xs text-red-800;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-component='input-success']) {
|
|
35
|
+
@apply text-xs text-green-800;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-component='input-addon']) {
|
|
39
|
+
@apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
|
|
40
|
+
&[data-variant='emphasized'] {
|
|
41
|
+
@apply bg-neutral-200/60;
|
|
42
|
+
}
|
|
43
|
+
&[data-variant='normal'] {
|
|
44
|
+
@apply first:pr-0! last:pl-0!;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='input-addontext']) {
|
|
49
|
+
@apply shrink-0 whitespace-nowrap text-[0.8rem] text-neutral-600 data-disabled:text-neutral-400 data-readonly:text-neutral-600;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-component='input-addonicon']) {
|
|
53
|
+
@apply h-4 w-fit shrink-0 text-neutral-600 data-disabled:text-neutral-400;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='input-addonbutton']) {
|
|
57
|
+
@apply flex h-5.5 w-fit cursor-pointer items-center justify-center gap-1 text-nowrap rounded-full bg-neutral-200 px-2 text-[0.75rem] font-medium text-neutral-950 hover:bg-neutral-300 active:bg-neutral-300 active:scale-97 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:bg-black/3 disabled:text-neutral-400;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-component='input-addonloadingicon']) {
|
|
61
|
+
@apply h-4 w-fit shrink-0 pointer-events-none animate-spin text-neutral-600 data-disabled:text-neutral-400 data-readonly:text-neutral-600;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='input-addonclearbutton']) {
|
|
65
|
+
@apply flex h-4 w-auto shrink-0 cursor-pointer items-center justify-center rounded-full p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:where([data-component='input-addonclearbuttonicon']) {
|
|
69
|
+
@apply h-4 w-fit shrink-0 p-0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|