@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,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-2xl border border-neutral-200 bg-white shadow-lg 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-200;
|
|
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-0.5 p-1 min-h-0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:where([data-component='menu-grouplabel']) {
|
|
32
|
+
@apply shrink-0 px-2 py-1 text-xs leading-4 font-normal text-neutral-600;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:where([data-component='menu-itemslist']) {
|
|
36
|
+
@apply flex min-h-0 w-full flex-col gap-0.5 overflow-y-auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:where([data-component='menu-buttonitem']) {
|
|
40
|
+
@apply flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 font-normal active:bg-neutral-200;
|
|
41
|
+
&[data-tone='danger'] {
|
|
42
|
+
@apply text-red-600 data-highlighted:bg-neutral-100;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where([data-component='menu-linkitem']) {
|
|
47
|
+
@apply flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 font-normal active:bg-neutral-200;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:where([data-component='menu-radiogroup']) {
|
|
51
|
+
@apply flex w-full flex-col gap-0.5 p-1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:where([data-component='menu-submenuopenbutton']) {
|
|
55
|
+
@apply flex h-8 w-full cursor-pointer items-center justify-between gap-2 rounded-lg px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 data-open:bg-neutral-100 font-normal active:bg-neutral-200;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:where([data-component='menu-separator']) {
|
|
59
|
+
@apply w-full border-t border-neutral-200;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:where([data-component='menu-icon']) {
|
|
63
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:where([data-component='menu-submenuopenbuttonicon']) {
|
|
67
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:where([data-component='menu-checkboxcontainer']) {
|
|
71
|
+
@apply flex min-h-8 w-full items-center gap-2 rounded-lg px-2 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-sm border border-neutral-300 bg-white text-white shadow-xs transition-all duration-150 data-checked:border-neutral-950 data-checked:bg-neutral-950 data-indeterminate:border-neutral-950 data-indeterminate:bg-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:where([data-component='menu-checkboxlabel']) {
|
|
79
|
+
@apply flex-1 cursor-pointer text-sm text-neutral-950 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-8 w-full items-center gap-2 rounded-lg px-2 data-highlighted:bg-neutral-100;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:where([data-component='menu-radiobuttonitem']) {
|
|
96
|
+
@apply items-center justify-center flex aspect-square size-4 shrink-0 cursor-pointer rounded-full border border-neutral-300 bg-white shadow-xs transition-all data-checked:border-4 data-checked:border-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:where([data-component='menu-radiolabel']) {
|
|
100
|
+
@apply flex-1 cursor-pointer text-sm text-neutral-950 data-disabled:cursor-not-allowed data-disabled:opacity-30;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:where([data-component='menu-radioitemindicator']) {
|
|
104
|
+
@apply flex size-full aspect-square items-center justify-center rounded-full bg-white;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:where([data-component='menu-radioitemindicator'])
|
|
108
|
+
&:where([data-component='menu-radioitemindicator-1']) {
|
|
109
|
+
@apply size-full rounded-full bg-white;
|
|
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-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='numberinput-container']) {
|
|
9
|
+
@apply flex flex-col gap-1.5 w-full;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='numberinput-label']) {
|
|
13
|
+
@apply text-sm font-medium text-neutral-950 data-disabled:text-neutral-400;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='numberinput-description']) {
|
|
17
|
+
@apply text-xs text-neutral-600;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='numberinput-error']) {
|
|
21
|
+
@apply text-xs text-red-800;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='numberinput-success']) {
|
|
25
|
+
@apply text-xs text-green-800;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='numberinput-addon']) {
|
|
29
|
+
@apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
|
|
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-400 data-readonly:text-neutral-600;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:where([data-component='numberinput-addonicon']) {
|
|
43
|
+
@apply h-4 w-fit shrink-0 text-neutral-600 data-disabled:text-neutral-400 pointer-events-none 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 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;
|
|
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-400 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-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;
|
|
56
|
+
&[data-tone='invalid'] {
|
|
57
|
+
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
58
|
+
}
|
|
59
|
+
&[data-tone='valid'] {
|
|
60
|
+
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='numberinput-buttonslist']) {
|
|
65
|
+
@apply flex w-fit shrink-0 flex-col justify-center overflow-hidden p-0.5 h-7;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:where([data-component='numberinput-valuetext']) {
|
|
69
|
+
@apply text-sm text-neutral-950;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:where([data-component='numberinput-incrementbutton']) {
|
|
73
|
+
@apply flex h-2.5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-t-xl p-0 text-neutral-600 bg-neutral-200 active:bg-neutral-300 hover:bg-neutral-300 data-disabled:pointer-events-none data-disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-blue-500;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:where([data-component='numberinput-incrementbuttonicon']) {
|
|
77
|
+
@apply h-2.5 w-fit shrink-0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:where([data-component='numberinput-decrementbutton']) {
|
|
81
|
+
@apply flex h-2.5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-b-xl p-0 text-neutral-600 bg-neutral-200 active:bg-neutral-300 hover:bg-neutral-300 data-disabled:pointer-events-none data-disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-blue-500;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:where([data-component='numberinput-decrementbuttonicon']) {
|
|
85
|
+
@apply h-2.5 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-xl border border-neutral-200 bg-white p-0 text-center text-base text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/10 focus:shadow-sm data-disabled:cursor-not-allowed data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:bg-neutral-50;
|
|
6
|
+
&[data-tone='invalid'] {
|
|
7
|
+
@apply border-red-500 focus:border-red-500 focus:ring-red-500/10;
|
|
8
|
+
}
|
|
9
|
+
&[data-tone='valid'] {
|
|
10
|
+
@apply border-green-600 focus:border-green-600 focus:ring-green-600/10;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:where([data-component='otpinput-container']) {
|
|
15
|
+
@apply flex flex-col gap-1.5 w-full;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:where([data-component='otpinput-label']) {
|
|
19
|
+
@apply text-sm font-medium text-neutral-950 data-disabled:text-neutral-400;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='otpinput-description']) {
|
|
23
|
+
@apply text-xs text-neutral-600;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where([data-component='otpinput-error']) {
|
|
27
|
+
@apply text-xs text-red-800;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-component='otpinput-success']) {
|
|
31
|
+
@apply text-xs text-green-800;
|
|
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-base font-medium text-neutral-950;
|
|
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-sm font-semibold text-neutral-950;
|
|
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
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* passwordinput */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='passwordinput-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='passwordinput-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='passwordinput-container']) {
|
|
19
|
+
@apply flex flex-col gap-1.5 w-full;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='passwordinput-label']) {
|
|
23
|
+
@apply text-sm font-medium text-neutral-950 data-disabled:text-neutral-400;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where([data-component='passwordinput-description']) {
|
|
27
|
+
@apply text-xs text-neutral-600 data-disabled:text-neutral-400;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-component='passwordinput-error']) {
|
|
31
|
+
@apply text-xs text-red-800 data-disabled:text-red-400;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-component='passwordinput-success']) {
|
|
35
|
+
@apply text-xs text-green-800 data-disabled:text-emerald-400;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-component='passwordinput-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='passwordinput-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='passwordinput-addonicon']) {
|
|
53
|
+
@apply h-4 w-fit shrink-0 text-neutral-600 data-disabled:text-neutral-400 pointer-events-none data-readonly:text-neutral-600;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-component='passwordinput-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='passwordinput-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='passwordinput-addonvisibilitybutton']) {
|
|
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 data-readonly:pointer-events-none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:where([data-component='passwordinput-addonvisibleicon']) {
|
|
69
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:where([data-component='passwordinput-addonhiddenicon']) {
|
|
73
|
+
@apply h-4 w-fit shrink-0 text-inherit;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* popover */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='popover-popup']) {
|
|
5
|
+
@apply data-open:animate-fade-scale-in data-closed:animate-fade-scale-out relative z-20 flex h-fit w-max max-w-80 flex-col overflow-visible rounded-2xl border border-neutral-200 bg-white shadow-lg outline-none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='popover-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='popover-arrow'])
|
|
13
|
+
&:where([data-component='popover-arrow-1']) {
|
|
14
|
+
@apply fill-inherit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:where([data-component='popover-arrow'])
|
|
18
|
+
&:where([data-component='popover-arrow-2']) {
|
|
19
|
+
@apply fill-neutral-200;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='popover-arrow'])
|
|
23
|
+
&:where([data-component='popover-arrow-3']) {
|
|
24
|
+
@apply fill-inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:where([data-component='popover-header']) {
|
|
28
|
+
@apply flex h-fit w-full shrink-0 flex-col gap-1.5 p-3;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:where([data-component='popover-body']) {
|
|
32
|
+
@apply flex min-h-0 w-full flex-col gap-5 overflow-y-auto p-3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:where([data-component='popover-footer']) {
|
|
36
|
+
@apply h-fit w-full shrink-0 p-3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:where([data-component='popover-title']) {
|
|
40
|
+
@apply text-sm font-medium leading-none text-neutral-950;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:where([data-component='popover-description']) {
|
|
44
|
+
@apply text-sm text-neutral-600;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* radio */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='radio-container']) {
|
|
5
|
+
@apply flex w-full flex-col gap-3;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='radio-list']) {
|
|
9
|
+
@apply flex w-full flex-col gap-2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='radio-label']) {
|
|
13
|
+
@apply text-sm text-neutral-950 data-disabled:text-neutral-500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='radio-item']) {
|
|
17
|
+
@apply flex min-w-0 flex-wrap items-start gap-x-2 gap-y-0.5;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='radio-itembutton']) {
|
|
21
|
+
@apply mt-0.5 items-center justify-center flex aspect-square size-4 shrink-0 cursor-pointer rounded-full border border-neutral-300 bg-white shadow-xs transition-all data-checked:border-4 data-checked:border-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
22
|
+
&[data-tone='invalid'] {
|
|
23
|
+
@apply border-red-600 data-checked:border-red-600;
|
|
24
|
+
}
|
|
25
|
+
&[data-tone='valid'] {
|
|
26
|
+
@apply border-green-700 data-checked:border-green-700;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-component='radio-itemindicator']) {
|
|
31
|
+
@apply flex size-full aspect-square items-center justify-center rounded-full bg-white;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-component='radio-itemlabel']) {
|
|
35
|
+
@apply cursor-pointer text-sm text-neutral-950 data-disabled:text-neutral-500;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-component='radio-itemdescription']) {
|
|
39
|
+
@apply basis-full pl-6 text-[0.8rem] text-neutral-600;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:where([data-component='radio-description']) {
|
|
43
|
+
@apply text-xs font-medium text-neutral-600;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where([data-component='radio-error']) {
|
|
47
|
+
@apply text-xs font-medium text-red-600;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:where([data-component='radio-success']) {
|
|
51
|
+
@apply text-xs font-medium text-emerald-700;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* ratinginput */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='ratinginput-container']) {
|
|
5
|
+
@apply flex w-full flex-col gap-1.25;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='ratinginput-label']) {
|
|
9
|
+
@apply text-sm text-neutral-950 data-disabled:text-neutral-500;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='ratinginput-starslist']) {
|
|
13
|
+
@apply flex w-fit items-center gap-0.5;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='ratinginput-starbutton']) {
|
|
17
|
+
@apply inline-flex h-fit w-fit shrink-0 cursor-pointer items-center justify-center rounded-sm border-0 bg-transparent p-0 shadow-none outline-none focus-visible:ring-2 focus-visible:ring-blue-500 data-disabled:cursor-not-allowed data-disabled:opacity-50 data-readonly:cursor-default;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='ratinginput-staricon']) {
|
|
21
|
+
@apply pointer-events-none h-5 w-fit text-neutral-950 data-highlighted:fill-current data-highlighted:data-half:fill-[var(--star-half-fill)] rtl:data-highlighted:data-half:fill-[var(--star-half-fill-rtl)];
|
|
22
|
+
&[data-tone='valid'] {
|
|
23
|
+
@apply text-green-700;
|
|
24
|
+
}
|
|
25
|
+
&[data-tone='invalid'] {
|
|
26
|
+
@apply text-red-600;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-component='ratinginput-description']) {
|
|
31
|
+
@apply text-xs font-medium text-neutral-600;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-component='ratinginput-error']) {
|
|
35
|
+
@apply text-xs font-medium text-red-600;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-component='ratinginput-success']) {
|
|
39
|
+
@apply text-xs font-medium text-emerald-700;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* select */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='select-container']) {
|
|
5
|
+
@apply flex flex-col gap-1.5 w-full;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='select-label']) {
|
|
9
|
+
@apply text-sm font-medium text-neutral-950 data-disabled:text-neutral-400;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='select-openbuttonvalue']) {
|
|
13
|
+
@apply min-w-0 shrink-0 truncate text-left text-inherit data-placeholder:text-neutral-500 data-disabled:text-neutral-400;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='select-scrollarea']) {
|
|
17
|
+
@apply flex min-h-0 w-full flex-col overflow-y-auto overscroll-contain;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='select-groupslist']) {
|
|
21
|
+
@apply flex w-full shrink-0 flex-col divide-y divide-neutral-200;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='select-itemslist']) {
|
|
25
|
+
@apply flex w-full flex-col gap-0.5;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='select-group']) {
|
|
29
|
+
@apply p-1 flex w-full flex-col gap-0.5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='select-item']) {
|
|
33
|
+
@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;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='select-popup']) {
|
|
37
|
+
@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;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='select-arrow']) {
|
|
41
|
+
@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;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='select-arrow'])
|
|
45
|
+
&:where([data-component='select-arrow-1']) {
|
|
46
|
+
@apply fill-inherit;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:where([data-component='select-arrow'])
|
|
50
|
+
&:where([data-component='select-arrow-2']) {
|
|
51
|
+
@apply fill-neutral-200;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:where([data-component='select-arrow'])
|
|
55
|
+
&:where([data-component='select-arrow-3']) {
|
|
56
|
+
@apply fill-inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:where([data-component='select-openbutton']) {
|
|
60
|
+
@apply flex h-7.5 w-fit shrink-0 cursor-pointer items-center justify-center gap-0 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 data-popup-open:border-blue-500 data-popup-open:ring-2 data-popup-open:ring-blue-500/10 data-popup-open:shadow-sm;
|
|
61
|
+
&[data-tone='invalid'] {
|
|
62
|
+
@apply border-red-500 focus-visible:border-red-500 focus-visible:ring-red-500/10 data-popup-open:border-red-500 data-popup-open:ring-red-500/10;
|
|
63
|
+
}
|
|
64
|
+
&[data-tone='valid'] {
|
|
65
|
+
@apply border-green-600 focus-visible:border-green-600 focus-visible:ring-green-600/10 data-popup-open:border-green-600 data-popup-open:ring-green-600/10;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:where([data-component='select-grouplabel']) {
|
|
70
|
+
@apply shrink-0 px-2 py-1 text-xs leading-4 font-normal text-neutral-600;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:where([data-component='select-separator']) {
|
|
74
|
+
@apply w-full border-t border-neutral-200;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:where([data-component='select-itemtext']) {
|
|
78
|
+
@apply min-w-0 flex-1 truncate;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:where([data-component='select-description']) {
|
|
82
|
+
@apply text-xs text-neutral-600 data-disabled:text-neutral-400;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:where([data-component='select-error']) {
|
|
86
|
+
@apply text-xs text-red-800 data-disabled:text-red-400;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:where([data-component='select-success']) {
|
|
90
|
+
@apply text-xs text-green-800 data-disabled:text-emerald-400;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:where([data-component='select-openbuttonicon']) {
|
|
94
|
+
@apply ml-1.75 h-4 w-fit shrink-0 text-inherit;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:where([data-component='select-itemindicator']) {
|
|
98
|
+
@apply h-3.5 w-3.5 shrink-0 text-neutral-950;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:where([data-component='select-scrolluparrow']) {
|
|
102
|
+
@apply flex h-5 w-full shrink-0 items-center justify-center bg-white text-neutral-700;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:where([data-component='select-scrolluparrow'])
|
|
106
|
+
&:where([data-component='select-scrolluparrow-1']) {
|
|
107
|
+
@apply h-4 w-fit;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:where([data-component='select-scrolldownarrow']) {
|
|
111
|
+
@apply flex h-5 w-full shrink-0 items-center justify-center bg-white text-neutral-700;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:where([data-component='select-scrolldownarrow'])
|
|
115
|
+
&:where([data-component='select-scrolldownarrow-1']) {
|
|
116
|
+
@apply h-4 w-fit;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|