@central-ui/react 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +31 -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,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-2xl border border-neutral-300 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/55 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-neutral-200 bg-neutral-100 p-3;
|
|
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-neutral-200 p-4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='dialog-title']) {
|
|
25
|
+
@apply text-[0.9rem] font-semibold text-neutral-700;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='dialog-description']) {
|
|
29
|
+
@apply text-[0.85rem] text-neutral-600;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='dialog-closebutton']) {
|
|
33
|
+
@apply absolute top-3 right-3 flex h-7.25 aspect-square w-7.25 shrink-0 cursor-pointer items-center justify-center rounded-lg bg-transparent p-0 text-neutral-500/80 hover:bg-neutral-200/80 hover:text-neutral-600/70 active:bg-neutral-200 active:text-neutral-600 focus-visible:outline-2 focus-visible:outline-blue-600;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='dialog-closebuttonicon']) {
|
|
37
|
+
@apply h-4.75 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-300 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/55 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.5 border-b border-neutral-200 bg-white p-3;
|
|
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-neutral-200 p-4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='drawer-title']) {
|
|
25
|
+
@apply text-[0.9rem] font-semibold text-neutral-700;
|
|
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-3 right-3 flex h-7.25 aspect-square w-7.25 shrink-0 cursor-pointer items-center justify-center rounded-lg bg-transparent p-0 text-neutral-500/80 hover:bg-neutral-200/80 hover:text-neutral-600/70 active:bg-neutral-200 active:text-neutral-600 focus-visible:outline-2 focus-visible:outline-blue-600;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='drawer-closebuttonicon']) {
|
|
37
|
+
@apply h-4.75 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-base font-semibold text-neutral-900;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='empty-description']) {
|
|
17
|
+
@apply text-sm font-medium 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-900;
|
|
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,72 @@
|
|
|
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-900;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='fileupload-dropzone']) {
|
|
13
|
+
@apply bg-neutral-50 flex w-full cursor-pointer flex-col items-center gap-1 rounded-lg border border-dashed border-neutral-500 p-3 pt-6 shadow-xs hover:bg-neutral-50 data-[dragging]:border-neutral-400 data-[dragging]:bg-neutral-50;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='fileupload-filepickeropenbutton']) {
|
|
17
|
+
@apply mt-2 flex h-7.5 w-fit cursor-pointer items-center justify-center gap-1 rounded-lg bg-white px-[0.65rem] text-[0.8rem] font-medium text-nowrap 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] data-disabled:pointer-events-none data-disabled:opacity-30;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='fileupload-uploadicon']) {
|
|
21
|
+
@apply h-4.5 w-fit shrink-0 text-neutral-900;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='fileupload-title']) {
|
|
25
|
+
@apply mt-2 text-base leading-snug font-medium text-neutral-900 data-disabled:text-neutral-500;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='fileupload-description']) {
|
|
29
|
+
@apply text-xs leading-snug font-medium text-neutral-600 data-disabled:text-neutral-400;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='fileupload-filelist']) {
|
|
33
|
+
@apply flex w-full flex-col gap-1.5 mt-4;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='fileupload-file']) {
|
|
37
|
+
@apply grid h-14 w-full grid-cols-[auto_1fr_auto] grid-rows-2 items-center gap-x-2 rounded-xl border border-neutral-300 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;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='fileupload-fileerrortext']) {
|
|
41
|
+
@apply col-start-2 row-start-3 text-xs text-red-800 font-medium;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='fileupload-filepreview']) {
|
|
45
|
+
@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-300 bg-neutral-50 object-cover;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='fileupload-filepreviewimage']) {
|
|
49
|
+
@apply h-full w-full object-cover;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-component='fileupload-filethumbnailicon']) {
|
|
53
|
+
@apply h-5 w-fit shrink-0 text-neutral-400;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='fileupload-filename']) {
|
|
57
|
+
@apply col-start-2 row-start-1 truncate text-sm font-medium text-neutral-900;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-component='fileupload-filesize']) {
|
|
61
|
+
@apply col-start-2 row-start-2 text-xs text-neutral-600;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='fileupload-fileremovebutton']) {
|
|
65
|
+
@apply col-start-3 row-span-2 flex h-6 aspect-square w-auto shrink-0 cursor-pointer items-center justify-center rounded-lg text-neutral-600 hover:bg-neutral-100 data-disabled:pointer-events-none data-disabled:opacity-30;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:where([data-component='fileupload-fileremovebuttonicon']) {
|
|
69
|
+
@apply h-4 w-fit;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -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-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;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='input-inputgroup']) {
|
|
9
|
+
@apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white 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 data-readonly:cursor-not-allowed data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50;
|
|
10
|
+
&[data-tone='invalid'] {
|
|
11
|
+
@apply border-red-800;
|
|
12
|
+
}
|
|
13
|
+
&[data-tone='valid'] {
|
|
14
|
+
@apply border-green-700;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:where([data-component='input-container']) {
|
|
19
|
+
@apply flex flex-col gap-1.25 w-full;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='input-label']) {
|
|
23
|
+
@apply text-sm text-neutral-900 data-disabled:text-neutral-500;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where([data-component='input-description']) {
|
|
27
|
+
@apply text-xs text-neutral-500 font-medium;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-component='input-error']) {
|
|
31
|
+
@apply text-xs text-red-800 font-medium;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-component='input-success']) {
|
|
35
|
+
@apply text-xs text-emerald-700 font-medium;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-component='input-addon']) {
|
|
39
|
+
@apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1.5;
|
|
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-500 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-500;
|
|
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-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;
|
|
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-500 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-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;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:where([data-component='input-addonclearbuttonicon']) {
|
|
69
|
+
@apply h-4 w-fit shrink-0 p-0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* menu */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='menu-popup']) {
|
|
5
|
+
@apply data-open:animate-fade-scale-in data-closed:animate-fade-scale-out relative flex h-fit w-max flex-col rounded-xl border border-neutral-300 bg-white shadow-md outline-none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='menu-arrow']) {
|
|
9
|
+
@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;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='menu-arrow'])
|
|
13
|
+
&:where([data-component='menu-arrow-1']) {
|
|
14
|
+
@apply fill-inherit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:where([data-component='menu-arrow'])
|
|
18
|
+
&:where([data-component='menu-arrow-2']) {
|
|
19
|
+
@apply fill-neutral-300;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='menu-arrow'])
|
|
23
|
+
&:where([data-component='menu-arrow-3']) {
|
|
24
|
+
@apply fill-inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:where([data-component='menu-group']) {
|
|
28
|
+
@apply flex w-full flex-col gap-1 p-1 min-h-0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:where([data-component='menu-grouplabel']) {
|
|
32
|
+
@apply shrink-0 px-2.5 py-1.5 text-[0.75rem] leading-none font-medium text-neutral-600;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:where([data-component='menu-itemslist']) {
|
|
36
|
+
@apply flex min-h-0 w-full flex-col gap-1 overflow-y-auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:where([data-component='menu-buttonitem']) {
|
|
40
|
+
@apply flex h-7.5 w-full cursor-pointer items-center gap-2 rounded-md px-2.5 text-[0.85rem] text-nowrap text-neutral-800 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100;
|
|
41
|
+
&[data-tone='danger'] {
|
|
42
|
+
@apply text-red-600 data-highlighted:bg-red-50;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where([data-component='menu-linkitem']) {
|
|
47
|
+
@apply flex h-7.5 w-full cursor-pointer items-center gap-2 rounded-md px-2.5 text-[0.85rem] text-nowrap text-neutral-800 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:where([data-component='menu-radiogroup']) {
|
|
51
|
+
@apply flex w-full flex-col gap-1 p-1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:where([data-component='menu-submenuopenbutton']) {
|
|
55
|
+
@apply flex h-7.5 w-full cursor-pointer items-center justify-between gap-2 rounded-md px-2.5 text-[0.85rem] text-nowrap text-neutral-800 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 data-open:bg-neutral-100;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:where([data-component='menu-separator']) {
|
|
59
|
+
@apply w-full border-t border-neutral-300/70;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:where([data-component='menu-icon']) {
|
|
63
|
+
@apply h-3.75 w-fit shrink-0 text-inherit;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:where([data-component='menu-submenuopenbuttonicon']) {
|
|
67
|
+
@apply h-3.75 w-fit shrink-0 text-inherit;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:where([data-component='menu-checkboxcontainer']) {
|
|
71
|
+
@apply flex min-h-7.5 w-full items-center gap-2 rounded-md px-2.5 data-highlighted:bg-neutral-100;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:where([data-component='menu-checkboxbuttonitem']) {
|
|
75
|
+
@apply flex size-4.25 shrink-0 cursor-pointer items-center justify-center rounded-[0.3rem] border border-neutral-500 bg-neutral-50 text-white outline-blue-600 focus-visible:outline-2 data-checked:border-neutral-800 data-checked:bg-neutral-800 data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:where([data-component='menu-checkboxlabel']) {
|
|
79
|
+
@apply flex-1 cursor-pointer text-[0.85rem] text-neutral-800 data-disabled:cursor-not-allowed data-disabled:opacity-30;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:where([data-component='menu-checkboxitemindicator']) {
|
|
83
|
+
@apply flex items-center justify-center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:where([data-component='menu-checkboxitemindicator'])
|
|
87
|
+
&:where([data-component='menu-checkboxitemindicator-1']) {
|
|
88
|
+
@apply h-3 w-fit;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:where([data-component='menu-radiocontainer']) {
|
|
92
|
+
@apply flex min-h-7.5 w-full items-center gap-2 rounded-md px-2.5 data-highlighted:bg-neutral-100;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:where([data-component='menu-radiobuttonitem']) {
|
|
96
|
+
@apply flex size-4.25 shrink-0 cursor-pointer items-center justify-center rounded-full border border-neutral-500 bg-neutral-50 text-neutral-800 outline-blue-600 focus-visible:outline-2 data-checked:border-neutral-800 data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:where([data-component='menu-radiolabel']) {
|
|
100
|
+
@apply flex-1 cursor-pointer text-[0.85rem] text-neutral-800 data-disabled:cursor-not-allowed data-disabled:opacity-30;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:where([data-component='menu-radioitemindicator']) {
|
|
104
|
+
@apply flex items-center justify-center;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:where([data-component='menu-radioitemindicator'])
|
|
108
|
+
&:where([data-component='menu-radioitemindicator-1']) {
|
|
109
|
+
@apply size-2 rounded-full bg-current;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* metric */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='metric-group']) {
|
|
5
|
+
@apply flex items-start gap-0.5 text-base;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='metric-number']) {
|
|
9
|
+
@apply text-[1em] leading-none font-semibold tracking-tight text-neutral-900;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='metric-unit']) {
|
|
13
|
+
@apply text-[0.65em] leading-none font-semibold tracking-tight text-neutral-900;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* numberinput */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='numberinput-input']) {
|
|
5
|
+
@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;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='numberinput-container']) {
|
|
9
|
+
@apply flex w-full flex-col gap-1.25;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='numberinput-label']) {
|
|
13
|
+
@apply text-sm text-neutral-900 data-disabled:text-neutral-500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='numberinput-description']) {
|
|
17
|
+
@apply text-xs font-medium text-neutral-500;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='numberinput-error']) {
|
|
21
|
+
@apply text-xs font-medium text-red-800;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='numberinput-success']) {
|
|
25
|
+
@apply text-xs font-medium text-emerald-700;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='numberinput-addon']) {
|
|
29
|
+
@apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1.5;
|
|
30
|
+
&[data-variant='emphasized'] {
|
|
31
|
+
@apply bg-neutral-200/60;
|
|
32
|
+
}
|
|
33
|
+
&[data-variant='normal'] {
|
|
34
|
+
@apply first:pr-0! last:pl-0!;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-component='numberinput-addontext']) {
|
|
39
|
+
@apply shrink-0 whitespace-nowrap text-[0.8rem] text-neutral-600 data-disabled:text-neutral-500 data-readonly:text-neutral-600;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:where([data-component='numberinput-addonicon']) {
|
|
43
|
+
@apply h-4 w-fit shrink-0 pointer-events-none text-neutral-600 data-disabled:text-neutral-500 data-readonly:text-neutral-600;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where([data-component='numberinput-addonbutton']) {
|
|
47
|
+
@apply flex h-5.5 w-fit cursor-pointer items-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,0_0px_0_50px_rgba(0,0,0,0.025)_inset,0px_-1px_1px_0_rgba(0,0,0,0.1)_inset] disabled:pointer-events-none disabled:opacity-50;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:where([data-component='numberinput-addonloadingicon']) {
|
|
51
|
+
@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;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:where([data-component='numberinput-inputgroup']) {
|
|
55
|
+
@apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white 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 data-readonly:cursor-not-allowed data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50;
|
|
56
|
+
&[data-tone='invalid'] {
|
|
57
|
+
@apply border-red-800;
|
|
58
|
+
}
|
|
59
|
+
&[data-tone='valid'] {
|
|
60
|
+
@apply border-green-700;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='numberinput-buttonslist']) {
|
|
65
|
+
@apply flex w-fit shrink-0 flex-col justify-center overflow-hidden p-1 h-8;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:where([data-component='numberinput-valuetext']) {
|
|
69
|
+
@apply text-sm text-neutral-700;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:where([data-component='numberinput-incrementbutton']) {
|
|
73
|
+
@apply flex h-3 w-5 shrink-0 cursor-pointer items-center justify-center rounded-t-sm p-0 text-neutral-500 bg-neutral-200/80 active:bg-neutral-300 hover:bg-neutral-300 data-disabled:pointer-events-none data-disabled:opacity-50;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:where([data-component='numberinput-incrementbuttonicon']) {
|
|
77
|
+
@apply h-3.75 w-fit shrink-0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:where([data-component='numberinput-decrementbutton']) {
|
|
81
|
+
@apply flex h-3 w-5 shrink-0 cursor-pointer items-center justify-center rounded-b-sm p-0 text-neutral-500 bg-neutral-200/80 active:bg-neutral-300 hover:bg-neutral-300 data-disabled:pointer-events-none data-disabled:opacity-50;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:where([data-component='numberinput-decrementbuttonicon']) {
|
|
85
|
+
@apply h-3.75 w-fit shrink-0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* otpinput */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='otpinput-input']) {
|
|
5
|
+
@apply m-0 h-8.25 aspect-square w-8.25 rounded-lg border border-neutral-400 bg-white p-0 text-center text-base text-neutral-900 outline-blue-600 outline-offset-1 hover:bg-neutral-50 focus:outline-2 data-disabled:cursor-not-allowed data-disabled:bg-neutral-100 data-disabled:text-neutral-500;
|
|
6
|
+
&[data-tone='invalid'] {
|
|
7
|
+
@apply border-red-800;
|
|
8
|
+
}
|
|
9
|
+
&[data-tone='valid'] {
|
|
10
|
+
@apply border-green-700;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:where([data-component='otpinput-container']) {
|
|
15
|
+
@apply flex w-full flex-col gap-1.25;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:where([data-component='otpinput-label']) {
|
|
19
|
+
@apply text-sm text-neutral-900 data-disabled:text-neutral-500;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='otpinput-description']) {
|
|
23
|
+
@apply text-xs font-medium text-neutral-600;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where([data-component='otpinput-error']) {
|
|
27
|
+
@apply text-xs font-medium text-red-800;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-component='otpinput-success']) {
|
|
31
|
+
@apply text-xs font-medium text-emerald-700;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-component='otpinput-list']) {
|
|
35
|
+
@apply flex w-fit items-center gap-1.5;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-component='otpinput-separator']) {
|
|
39
|
+
@apply h-px w-3 shrink-0 bg-neutral-400;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* page */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='page-surface']) {
|
|
5
|
+
@apply mx-auto flex h-fit w-full flex-col;
|
|
6
|
+
&[data-size='wide'] {
|
|
7
|
+
@apply max-w-[88rem];
|
|
8
|
+
}
|
|
9
|
+
&[data-size='medium'] {
|
|
10
|
+
@apply max-w-[63rem];
|
|
11
|
+
}
|
|
12
|
+
&[data-size='narrow'] {
|
|
13
|
+
@apply max-w-[31rem];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:where([data-component='page-header']) {
|
|
18
|
+
@apply grid h-fit w-full min-w-0 grid-cols-[auto_minmax(0,max-content)_minmax(0,1fr)_auto] items-center px-6 py-3 first:pt-6 last:pb-6;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:where([data-component='page-headermeta']) {
|
|
22
|
+
@apply col-start-3 row-start-2 flex min-w-0 items-center gap-1.5 pl-2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:where([data-component='page-headercontext']) {
|
|
26
|
+
@apply col-start-2 col-end-4 row-start-1 mb-2 min-w-0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:where([data-component='page-headeractions']) {
|
|
30
|
+
@apply col-start-4 row-start-2 row-end-4 flex flex-wrap items-center justify-end gap-2 pl-3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:where([data-component='page-headerbackbutton']) {
|
|
34
|
+
@apply col-start-1 row-start-2 mr-2 flex h-6 w-6 cursor-pointer items-center justify-center rounded-md text-neutral-500 hover:bg-neutral-300/70 hover:text-neutral-700 active:bg-neutral-400/50 active:text-neutral-800;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:where([data-component='page-headerbackbuttonicon']) {
|
|
38
|
+
@apply h-4 w-fit text-inherit;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:where([data-component='page-headertitle']) {
|
|
42
|
+
@apply col-start-2 row-start-2 min-w-0 truncate text-[1.25rem] font-semibold text-neutral-800;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:where([data-component='page-headerdescription']) {
|
|
46
|
+
@apply col-start-2 col-end-4 row-start-3 min-w-0 pt-0.75 text-sm text-neutral-600;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:where([data-component='page-body']) {
|
|
50
|
+
@apply flex h-fit w-full flex-col gap-5 px-6 py-3 first:pt-6 last:pb-6;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:where([data-component='page-bodysection']) {
|
|
54
|
+
@apply flex h-fit w-full flex-col gap-4;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:where([data-component='page-bodysectionheader']) {
|
|
58
|
+
@apply flex h-fit w-full flex-col gap-1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:where([data-component='page-bodysectiontitle']) {
|
|
62
|
+
@apply text-base font-semibold text-neutral-800;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:where([data-component='page-footer']) {
|
|
66
|
+
@apply flex h-fit w-full gap-3 px-6 py-3 first:pt-6 last:pb-6;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|