@central-ui/react 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +33 -2
- package/dist/components/accordion/index.d.ts +73 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +92 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/autocomplete/index.d.ts +365 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +369 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/index.d.ts +48 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +60 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/index.d.ts +29 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +36 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/banner/index.d.ts +71 -0
- package/dist/components/banner/index.d.ts.map +1 -0
- package/dist/components/banner/index.js +119 -0
- package/dist/components/banner/index.js.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +31 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +42 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/index.d.ts +48 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +60 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/card/index.d.ts +34 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +45 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +66 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +146 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/chip/index.d.ts +26 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/chip/index.js +40 -0
- package/dist/components/chip/index.js.map +1 -0
- package/dist/components/combobox/index.d.ts +427 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +416 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/datepicker/index.d.ts +297 -0
- package/dist/components/datepicker/index.d.ts.map +1 -0
- package/dist/components/datepicker/index.js +507 -0
- package/dist/components/datepicker/index.js.map +1 -0
- package/dist/components/dialog/index.d.ts +88 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/index.js +102 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/divider/index.d.ts +21 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +24 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/index.d.ts +99 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +137 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/empty/index.d.ts +40 -0
- package/dist/components/empty/index.d.ts.map +1 -0
- package/dist/components/empty/index.js +61 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/fileupload/index.d.ts +107 -0
- package/dist/components/fileupload/index.d.ts.map +1 -0
- package/dist/components/fileupload/index.js +185 -0
- package/dist/components/fileupload/index.js.map +1 -0
- package/dist/components/form/index.d.ts +34 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.js +35 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/input/index.d.ts +85 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +249 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/menu/index.d.ts +115 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +188 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/metric/index.d.ts +24 -0
- package/dist/components/metric/index.d.ts.map +1 -0
- package/dist/components/metric/index.js +26 -0
- package/dist/components/metric/index.js.map +1 -0
- package/dist/components/numberinput/index.d.ts +105 -0
- package/dist/components/numberinput/index.d.ts.map +1 -0
- package/dist/components/numberinput/index.js +240 -0
- package/dist/components/numberinput/index.js.map +1 -0
- package/dist/components/otpinput/index.d.ts +63 -0
- package/dist/components/otpinput/index.d.ts.map +1 -0
- package/dist/components/otpinput/index.js +133 -0
- package/dist/components/otpinput/index.js.map +1 -0
- package/dist/components/page/index.d.ts +54 -0
- package/dist/components/page/index.d.ts.map +1 -0
- package/dist/components/page/index.js +100 -0
- package/dist/components/page/index.js.map +1 -0
- package/dist/components/passwordinput/index.d.ts +88 -0
- package/dist/components/passwordinput/index.d.ts.map +1 -0
- package/dist/components/passwordinput/index.js +251 -0
- package/dist/components/passwordinput/index.js.map +1 -0
- package/dist/components/popover/index.d.ts +67 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +76 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/radio/index.d.ts +90 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +232 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/ratinginput/index.d.ts +59 -0
- package/dist/components/ratinginput/index.d.ts.map +1 -0
- package/dist/components/ratinginput/index.js +88 -0
- package/dist/components/ratinginput/index.js.map +1 -0
- package/dist/components/select/index.d.ts +205 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +234 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/skeleton/index.d.ts +19 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +20 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/slider/index.d.ts +72 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +159 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/spinner/index.d.ts +14 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +15 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/splitter/index.d.ts +49 -0
- package/dist/components/splitter/index.d.ts.map +1 -0
- package/dist/components/splitter/index.js +67 -0
- package/dist/components/splitter/index.js.map +1 -0
- package/dist/components/stepper/index.d.ts +82 -0
- package/dist/components/stepper/index.d.ts.map +1 -0
- package/dist/components/stepper/index.js +100 -0
- package/dist/components/stepper/index.js.map +1 -0
- package/dist/components/switch/index.d.ts +57 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +101 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/table/index.d.ts +110 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +211 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +67 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +78 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/textarea/index.d.ts +72 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +205 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textlink/index.d.ts +39 -0
- package/dist/components/textlink/index.d.ts.map +1 -0
- package/dist/components/textlink/index.js +42 -0
- package/dist/components/textlink/index.js.map +1 -0
- package/dist/components/toast/index.d.ts +111 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +205 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toggle/index.d.ts +41 -0
- package/dist/components/toggle/index.d.ts.map +1 -0
- package/dist/components/toggle/index.js +78 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +44 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +51 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Style.d.ts +14 -0
- package/dist/types/Style.d.ts.map +1 -0
- package/dist/types/Style.js +2 -0
- package/dist/types/Style.js.map +1 -0
- package/dist/types/Tone.d.ts +4 -0
- package/dist/types/Tone.d.ts.map +1 -0
- package/dist/types/Tone.js +2 -0
- package/dist/types/Tone.js.map +1 -0
- package/dist/utils/ArkStateToDataAttributes.d.ts +4 -0
- package/dist/utils/ArkStateToDataAttributes.d.ts.map +1 -0
- package/dist/utils/ArkStateToDataAttributes.js +9 -0
- package/dist/utils/ArkStateToDataAttributes.js.map +1 -0
- package/dist/utils/Tone.d.ts +3 -0
- package/dist/utils/Tone.d.ts.map +1 -0
- package/dist/utils/Tone.js +7 -0
- package/dist/utils/Tone.js.map +1 -0
- package/dist/utils/useForwardClickToInput.d.ts +4 -0
- package/dist/utils/useForwardClickToInput.d.ts.map +1 -0
- package/dist/utils/useForwardClickToInput.js +27 -0
- package/dist/utils/useForwardClickToInput.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts +198 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.js +180 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.d.ts +200 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.js +174 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedTable.d.ts +169 -0
- package/dist/utils/virtualization/useVirtualizedTable.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedTable.js +127 -0
- package/dist/utils/virtualization/useVirtualizedTable.js.map +1 -0
- package/package.json +64 -4
- package/src/presets/shopify-polaris/shopify-polaris-accordion.css +28 -0
- package/src/presets/shopify-polaris/shopify-polaris-autocomplete.css +155 -0
- package/src/presets/shopify-polaris/shopify-polaris-avatar.css +47 -0
- package/src/presets/shopify-polaris/shopify-polaris-badge.css +27 -0
- package/src/presets/shopify-polaris/shopify-polaris-banner.css +111 -0
- package/src/presets/shopify-polaris/shopify-polaris-breadcrumb.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-button.css +79 -0
- package/src/presets/shopify-polaris/shopify-polaris-card.css +28 -0
- package/src/presets/shopify-polaris/shopify-polaris-checkbox.css +52 -0
- package/src/presets/shopify-polaris/shopify-polaris-chip.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-combobox.css +179 -0
- package/src/presets/shopify-polaris/shopify-polaris-datepicker.css +183 -0
- package/src/presets/shopify-polaris/shopify-polaris-dialog.css +40 -0
- package/src/presets/shopify-polaris/shopify-polaris-divider.css +12 -0
- package/src/presets/shopify-polaris/shopify-polaris-drawer.css +40 -0
- package/src/presets/shopify-polaris/shopify-polaris-empty.css +32 -0
- package/src/presets/shopify-polaris/shopify-polaris-fileupload.css +78 -0
- package/src/presets/shopify-polaris/shopify-polaris-form.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-input.css +72 -0
- package/src/presets/shopify-polaris/shopify-polaris-menu.css +112 -0
- package/src/presets/shopify-polaris/shopify-polaris-metric.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-numberinput.css +88 -0
- package/src/presets/shopify-polaris/shopify-polaris-otpinput.css +42 -0
- package/src/presets/shopify-polaris/shopify-polaris-page.css +69 -0
- package/src/presets/shopify-polaris/shopify-polaris-passwordinput.css +76 -0
- package/src/presets/shopify-polaris/shopify-polaris-popover.css +47 -0
- package/src/presets/shopify-polaris/shopify-polaris-radio.css +54 -0
- package/src/presets/shopify-polaris/shopify-polaris-ratinginput.css +42 -0
- package/src/presets/shopify-polaris/shopify-polaris-select.css +119 -0
- package/src/presets/shopify-polaris/shopify-polaris-skeleton.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-slider.css +86 -0
- package/src/presets/shopify-polaris/shopify-polaris-spinner.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-splitter.css +34 -0
- package/src/presets/shopify-polaris/shopify-polaris-stepper.css +55 -0
- package/src/presets/shopify-polaris/shopify-polaris-switch.css +38 -0
- package/src/presets/shopify-polaris/shopify-polaris-table.css +72 -0
- package/src/presets/shopify-polaris/shopify-polaris-tabs.css +33 -0
- package/src/presets/shopify-polaris/shopify-polaris-textarea.css +61 -0
- package/src/presets/shopify-polaris/shopify-polaris-textlink.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-toggle.css +52 -0
- package/src/presets/shopify-polaris/shopify-polaris-tooltip.css +31 -0
- package/src/presets/shopify-polaris/shopify-polaris.css +380 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-accordion.css +28 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-autocomplete.css +155 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-avatar.css +47 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-badge.css +27 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-banner.css +96 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-breadcrumb.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-button.css +68 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-card.css +28 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-checkbox.css +52 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-chip.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-combobox.css +184 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-datepicker.css +187 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-dialog.css +40 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-divider.css +12 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-drawer.css +40 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-empty.css +32 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-fileupload.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-form.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-input.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-menu.css +112 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-metric.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-numberinput.css +88 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-otpinput.css +42 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-page.css +69 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-passwordinput.css +76 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-popover.css +47 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-radio.css +54 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-ratinginput.css +42 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-select.css +118 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-skeleton.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-slider.css +86 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-spinner.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-splitter.css +34 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-stepper.css +55 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-switch.css +38 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-table.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-tabs.css +33 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-textarea.css +61 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-textlink.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-toast.css +43 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-toggle.css +52 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-tooltip.css +31 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css +381 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* Autocomplete */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='autocomplete-container']) {
|
|
5
|
+
@apply flex flex-col gap-1.5 w-full;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='autocomplete-label']) {
|
|
9
|
+
@apply text-sm font-medium text-neutral-950 data-disabled:text-neutral-400;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='autocomplete-input']) {
|
|
13
|
+
@apply min-w-12 flex-1 h-7 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-500 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='autocomplete-scrollarea']) {
|
|
17
|
+
@apply flex min-h-0 w-full flex-col overflow-y-auto overscroll-contain;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='autocomplete-groupslist']) {
|
|
21
|
+
@apply flex w-full shrink-0 flex-col divide-y divide-neutral-200;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='autocomplete-itemslist']) {
|
|
25
|
+
@apply flex w-full flex-col gap-0.5;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='autocomplete-group']) {
|
|
29
|
+
@apply p-1 flex w-full flex-col gap-0.5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='autocomplete-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='autocomplete-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='autocomplete-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='autocomplete-arrow'])
|
|
45
|
+
&:where([data-component='autocomplete-arrow-1']) {
|
|
46
|
+
@apply fill-inherit;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:where([data-component='autocomplete-arrow'])
|
|
50
|
+
&:where([data-component='autocomplete-arrow-2']) {
|
|
51
|
+
@apply fill-neutral-200;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:where([data-component='autocomplete-arrow'])
|
|
55
|
+
&:where([data-component='autocomplete-arrow-3']) {
|
|
56
|
+
@apply fill-inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:where([data-component='autocomplete-addon']) {
|
|
60
|
+
@apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
|
|
61
|
+
&[data-variant='emphasized'] {
|
|
62
|
+
@apply bg-neutral-200/60;
|
|
63
|
+
}
|
|
64
|
+
&[data-variant='normal'] {
|
|
65
|
+
@apply first:pr-0! last:pl-0!;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:where([data-component='autocomplete-addonicon']) {
|
|
70
|
+
@apply h-4 w-fit shrink-0 text-neutral-600 data-disabled:text-neutral-400 pointer-events-none data-readonly:text-neutral-600;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:where([data-component='autocomplete-addonbutton']) {
|
|
74
|
+
@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;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:where([data-component='autocomplete-inputgroup']) {
|
|
78
|
+
@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;
|
|
79
|
+
&[data-tone='invalid'] {
|
|
80
|
+
@apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
|
|
81
|
+
}
|
|
82
|
+
&[data-tone='valid'] {
|
|
83
|
+
@apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:where([data-component='autocomplete-addonopenbutton']) {
|
|
88
|
+
@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;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:where([data-component='autocomplete-addonclearbutton']) {
|
|
92
|
+
@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;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:where([data-component='autocomplete-grouplabel']) {
|
|
96
|
+
@apply shrink-0 px-2 py-1 text-xs leading-4 font-normal text-neutral-600;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:where([data-component='autocomplete-empty']) {
|
|
100
|
+
@apply flex w-full items-center gap-1.5 py-2 px-3.5 empty:p-0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:where([data-component='autocomplete-separator']) {
|
|
104
|
+
@apply w-full border-t border-neutral-200;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:where([data-component='autocomplete-itemtext']) {
|
|
108
|
+
@apply min-w-0 flex-1 truncate;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:where([data-component='autocomplete-addontext']) {
|
|
112
|
+
@apply shrink-0 whitespace-nowrap text-[0.8rem] text-neutral-600 data-disabled:text-neutral-400 data-readonly:text-neutral-600;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&:where([data-component='autocomplete-emptytext']) {
|
|
116
|
+
@apply text-sm text-center font-normal text-neutral-600;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:where([data-component='autocomplete-description']) {
|
|
120
|
+
@apply text-xs text-neutral-600 data-disabled:text-neutral-400;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:where([data-component='autocomplete-error']) {
|
|
124
|
+
@apply text-xs text-red-800 data-disabled:text-red-400;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:where([data-component='autocomplete-success']) {
|
|
128
|
+
@apply text-xs text-green-800 data-disabled:text-emerald-400;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:where([data-component='autocomplete-addonopenbuttonicon']) {
|
|
132
|
+
@apply h-4 w-fit shrink-0 p-0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:where([data-component='autocomplete-addonclearbuttonicon']) {
|
|
136
|
+
@apply h-4 w-fit shrink-0 p-0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:where([data-component='autocomplete-addonloadingicon']) {
|
|
140
|
+
@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;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:where([data-component='autocomplete-loading']) {
|
|
144
|
+
@apply flex w-full items-center gap-1.5 py-2 px-3.5 empty:p-0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:where([data-component='autocomplete-loadingtext']) {
|
|
148
|
+
@apply text-sm text-center font-normal text-neutral-600;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:where([data-component='autocomplete-loadingicon']) {
|
|
152
|
+
@apply h-4 w-fit shrink-0 animate-spin text-neutral-600;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* avatar */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='avatar-list']) {
|
|
5
|
+
@apply flex items-center [&>*+*]:-ml-1 [&>*]:ring-3 [&>*]:ring-white;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='avatar-image']) {
|
|
9
|
+
@apply aspect-square shrink-0 object-cover;
|
|
10
|
+
&[data-size='big'] {
|
|
11
|
+
@apply h-9 w-9 rounded-xl;
|
|
12
|
+
}
|
|
13
|
+
&[data-size='medium'] {
|
|
14
|
+
@apply h-8 w-8 rounded-xl;
|
|
15
|
+
}
|
|
16
|
+
&[data-size='small'] {
|
|
17
|
+
@apply h-5 w-5 rounded-md;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:where([data-component='avatar-fallbacknameinitials']) {
|
|
22
|
+
@apply flex aspect-square shrink-0 items-center justify-center border border-black/3 font-semibold text-black/60;
|
|
23
|
+
&[data-size='big'] {
|
|
24
|
+
@apply h-9 w-9 rounded-xl text-sm;
|
|
25
|
+
}
|
|
26
|
+
&[data-size='medium'] {
|
|
27
|
+
@apply h-8 w-8 rounded-xl text-sm;
|
|
28
|
+
}
|
|
29
|
+
&[data-size='small'] {
|
|
30
|
+
@apply h-5 w-5 rounded-md text-xs;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-component='avatar-fallbackimage']) {
|
|
35
|
+
@apply aspect-square shrink-0 object-cover;
|
|
36
|
+
&[data-size='big'] {
|
|
37
|
+
@apply h-9 w-9 rounded-xl;
|
|
38
|
+
}
|
|
39
|
+
&[data-size='medium'] {
|
|
40
|
+
@apply h-8 w-8 rounded-xl;
|
|
41
|
+
}
|
|
42
|
+
&[data-size='small'] {
|
|
43
|
+
@apply h-5 w-5 rounded-md;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* badge */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='badge-badge']) {
|
|
5
|
+
@apply flex h-[1.28rem] min-w-[1.425rem] w-fit shrink-0 items-center justify-center gap-1 truncate rounded-lg px-2 text-nowrap text-[0.8rem] font-semibold leading-none [&>svg]:h-3.5 [&>svg]:w-fit;
|
|
6
|
+
&[data-tone='neutral'] {
|
|
7
|
+
@apply bg-[#0000000d] text-[#4a4a4a];
|
|
8
|
+
}
|
|
9
|
+
&[data-tone='informative'] {
|
|
10
|
+
@apply bg-[#8ce1f8] text-[#01596f];
|
|
11
|
+
}
|
|
12
|
+
&[data-tone='success'] {
|
|
13
|
+
@apply bg-[#b3f782] text-[#214b03];
|
|
14
|
+
}
|
|
15
|
+
&[data-tone='danger'] {
|
|
16
|
+
@apply bg-[#ffd0cc] text-[#7e100c];
|
|
17
|
+
}
|
|
18
|
+
&[data-tone='caution'] {
|
|
19
|
+
@apply bg-[#ffe45c] text-[#574100];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:where([data-component='badge-icon']) {
|
|
24
|
+
@apply -ml-0.75 h-3 w-fit shrink-0 text-inherit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* banner */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='banner-surface']) {
|
|
5
|
+
@apply flex h-fit w-full flex-col overflow-clip rounded-xl border border-transparent bg-neutral-100 shadow-none;
|
|
6
|
+
&[data-tone='neutral'] {
|
|
7
|
+
@apply bg-neutral-100;
|
|
8
|
+
}
|
|
9
|
+
&[data-tone='success'] {
|
|
10
|
+
@apply bg-lime-100;
|
|
11
|
+
}
|
|
12
|
+
&[data-tone='danger'] {
|
|
13
|
+
@apply bg-red-100;
|
|
14
|
+
}
|
|
15
|
+
&[data-tone='informative'] {
|
|
16
|
+
@apply bg-cyan-100;
|
|
17
|
+
}
|
|
18
|
+
&[data-tone='caution'] {
|
|
19
|
+
@apply bg-yellow-100;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:where([data-component='banner-header']) {
|
|
24
|
+
@apply relative flex h-auto w-full items-center gap-1.75 py-3 pr-10 pl-3 not-last:pb-0 bg-transparent;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:where([data-component='banner-icon']) {
|
|
28
|
+
@apply h-4 w-fit shrink-0;
|
|
29
|
+
&[data-tone='neutral'] {
|
|
30
|
+
@apply text-neutral-600;
|
|
31
|
+
}
|
|
32
|
+
&[data-tone='danger'] {
|
|
33
|
+
@apply text-red-600;
|
|
34
|
+
}
|
|
35
|
+
&[data-tone='success'] {
|
|
36
|
+
@apply text-lime-700;
|
|
37
|
+
}
|
|
38
|
+
&[data-tone='informative'] {
|
|
39
|
+
@apply text-cyan-600;
|
|
40
|
+
}
|
|
41
|
+
&[data-tone='caution'] {
|
|
42
|
+
@apply text-yellow-700;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where([data-component='banner-title']) {
|
|
47
|
+
@apply text-sm font-medium;
|
|
48
|
+
&[data-tone='neutral'] {
|
|
49
|
+
@apply text-neutral-950;
|
|
50
|
+
}
|
|
51
|
+
&[data-tone='danger'] {
|
|
52
|
+
@apply text-red-950;
|
|
53
|
+
}
|
|
54
|
+
&[data-tone='success'] {
|
|
55
|
+
@apply text-lime-950;
|
|
56
|
+
}
|
|
57
|
+
&[data-tone='informative'] {
|
|
58
|
+
@apply text-cyan-950;
|
|
59
|
+
}
|
|
60
|
+
&[data-tone='caution'] {
|
|
61
|
+
@apply text-yellow-950;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:where([data-component='banner-closebutton']) {
|
|
66
|
+
@apply absolute top-1/2 right-2 flex h-6 w-6 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full text-nowrap outline-none hover:bg-black/10 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:opacity-30;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:where([data-component='banner-closebuttonicon']) {
|
|
70
|
+
@apply h-5 w-fit shrink-0;
|
|
71
|
+
&[data-tone='neutral'] {
|
|
72
|
+
@apply text-neutral-950;
|
|
73
|
+
}
|
|
74
|
+
&[data-tone='danger'] {
|
|
75
|
+
@apply text-red-950;
|
|
76
|
+
}
|
|
77
|
+
&[data-tone='success'] {
|
|
78
|
+
@apply text-lime-950;
|
|
79
|
+
}
|
|
80
|
+
&[data-tone='informative'] {
|
|
81
|
+
@apply text-cyan-950;
|
|
82
|
+
}
|
|
83
|
+
&[data-tone='caution'] {
|
|
84
|
+
@apply text-yellow-950;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:where([data-component='banner-body']) {
|
|
89
|
+
@apply flex h-fit w-full flex-col gap-2 p-3 not-first:pt-0.5;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:where([data-component='banner-description']) {
|
|
93
|
+
@apply list-inside list-disc text-sm leading-normal text-neutral-950;
|
|
94
|
+
&[data-tone='neutral'] {
|
|
95
|
+
@apply text-neutral-950;
|
|
96
|
+
}
|
|
97
|
+
&[data-tone='success'] {
|
|
98
|
+
@apply text-lime-950;
|
|
99
|
+
}
|
|
100
|
+
&[data-tone='danger'] {
|
|
101
|
+
@apply text-red-950;
|
|
102
|
+
}
|
|
103
|
+
&[data-tone='informative'] {
|
|
104
|
+
@apply text-cyan-950;
|
|
105
|
+
}
|
|
106
|
+
&[data-tone='caution'] {
|
|
107
|
+
@apply text-yellow-950;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* breadcrumb */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='breadcrumb-breadcrumb']) {
|
|
5
|
+
@apply flex items-center gap-0.25;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='breadcrumb-item']) {
|
|
9
|
+
@apply flex w-fit items-center gap-3 text-[0.95rem] font-normal text-neutral-500 hover:underline data-active:font-medium data-active:text-neutral-800;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='breadcrumb-separator']) {
|
|
13
|
+
@apply h-3.25 w-fit text-neutral-500;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* Button: Polaris 2 appearance, adapted to the library's existing dimensions. */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='button-button']) {
|
|
5
|
+
@apply relative flex w-fit cursor-pointer items-center justify-center gap-1.5 rounded-full font-medium text-nowrap select-none outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,box-shadow,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default;
|
|
6
|
+
|
|
7
|
+
&[data-size='small'] {
|
|
8
|
+
@apply min-h-6 px-2.5 py-1 text-[0.75rem] leading-4;
|
|
9
|
+
}
|
|
10
|
+
&[data-size='medium'] {
|
|
11
|
+
@apply min-h-7 px-4 py-1 text-[0.8rem] leading-4;
|
|
12
|
+
}
|
|
13
|
+
&[data-size='large'] {
|
|
14
|
+
@apply min-h-8.5 px-4 py-0 text-base;
|
|
15
|
+
}
|
|
16
|
+
&[data-size='icon'] {
|
|
17
|
+
@apply size-7 shrink-0 p-1 text-[0.8rem];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[data-variant='primary'] {
|
|
21
|
+
@apply [background-image:radial-gradient(50%_50%_at_50%_0%,_#ffffff33_0%,_#ffffff00_100%),_radial-gradient(49.59%_37.11%_at_50.41%_101.56%,_#ffffff26_0%,_#ffffff00_66.46%)] text-white hover:text-neutral-200 focus-visible:text-neutral-200 active:text-neutral-200 aria-expanded:text-neutral-200;
|
|
22
|
+
|
|
23
|
+
&[data-tone='neutral']:not(:disabled) {
|
|
24
|
+
@apply bg-neutral-950 hover:bg-black focus-visible:bg-black active:bg-black aria-expanded:bg-black shadow-md inset-shadow-[0rem_0rem_.25rem_.0625rem_#101010,0rem_0rem_.25rem_.125rem_#ffffff1a,0rem_0rem_.75rem_-.375rem_#ffffffbf];
|
|
25
|
+
}
|
|
26
|
+
&[data-tone='danger']:not(:disabled) {
|
|
27
|
+
@apply bg-[#d82019] hover:bg-[#ce1f18] focus-visible:bg-[#ce1f18] active:bg-[#b31a14] aria-expanded:bg-[#b31a14] hover:text-red-100 focus-visible:text-red-100 active:text-red-100 aria-expanded:text-red-100 shadow-md inset-shadow-[0rem_0rem_.25rem_.0625rem_#F50000,0rem_0rem_.25rem_.125rem_#ffffff1a,0rem_0rem_.75rem_-.375rem_#ffffffbf];
|
|
28
|
+
}
|
|
29
|
+
&:disabled {
|
|
30
|
+
@apply bg-black/13 text-white shadow-none [background-image:none];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[data-variant='secondary'] {
|
|
35
|
+
&[data-tone='neutral']:not(:disabled) {
|
|
36
|
+
@apply bg-neutral-200 text-neutral-950 hover:bg-neutral-300 focus-visible:bg-neutral-300 active:bg-neutral-300 aria-expanded:bg-neutral-300;
|
|
37
|
+
}
|
|
38
|
+
&[data-tone='danger']:not(:disabled) {
|
|
39
|
+
@apply bg-red-100 text-red-900 hover:bg-red-200 focus-visible:bg-red-200 active:bg-[#fcb5b1] aria-expanded:bg-[#fcb5b1];
|
|
40
|
+
}
|
|
41
|
+
&:disabled {
|
|
42
|
+
@apply bg-black/3 text-neutral-400;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-variant='tertiary'] {
|
|
47
|
+
@apply bg-transparent hover:bg-black/8 focus-visible:bg-black/8 active:bg-black/13 aria-expanded:bg-black/13;
|
|
48
|
+
|
|
49
|
+
&[data-tone='neutral']:not(:disabled) {
|
|
50
|
+
@apply text-neutral-950;
|
|
51
|
+
&[data-size='icon'] {
|
|
52
|
+
@apply text-neutral-600 hover:text-neutral-700 active:text-neutral-800;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
&[data-tone='danger']:not(:disabled) {
|
|
56
|
+
@apply text-red-900;
|
|
57
|
+
}
|
|
58
|
+
&:disabled {
|
|
59
|
+
@apply bg-transparent text-neutral-400;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-component='button-icon']) {
|
|
65
|
+
@apply h-5 w-fit shrink-0 text-inherit;
|
|
66
|
+
&[data-size='small'] {
|
|
67
|
+
@apply h-4;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:where([data-component='button-loadingicon']) {
|
|
72
|
+
@apply h-4 w-fit shrink-0 animate-spin;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:where([data-component='button-list']) {
|
|
76
|
+
@apply flex items-center gap-2;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* card */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='card-card']) {
|
|
5
|
+
@apply flex h-fit flex-col rounded-2xl border border-neutral-200 bg-white shadow-xs;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='card-header']) {
|
|
9
|
+
@apply flex h-fit w-full flex-col gap-0.5 px-4 py-1.75 first:pt-4 last:pb-4;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='card-title']) {
|
|
13
|
+
@apply text-sm font-semibold leading-normal text-neutral-950;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='card-description']) {
|
|
17
|
+
@apply text-sm text-neutral-600;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='card-body']) {
|
|
21
|
+
@apply flex h-fit w-full flex-col gap-5 px-4 py-1.75 first:pt-4 last:pb-4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='card-footer']) {
|
|
25
|
+
@apply h-fit w-full px-4 py-1.75 first:pt-4 last:pb-4;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* checkbox */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='checkbox-checkboxgroup']) {
|
|
5
|
+
@apply flex w-full flex-col gap-3;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='checkbox-container']) {
|
|
9
|
+
@apply grid w-full grid-cols-[auto_1fr] items-start gap-x-2 gap-y-0.5;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='checkbox-button']) {
|
|
13
|
+
@apply mt-0.5 row-start-1 flex size-4.25 shrink-0 cursor-pointer items-center justify-center rounded-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;
|
|
14
|
+
&[data-tone='invalid'] {
|
|
15
|
+
@apply border-red-600 bg-red-50 data-checked:border-red-600 data-checked:bg-red-600 data-indeterminate:border-red-600 data-indeterminate:bg-red-600;
|
|
16
|
+
}
|
|
17
|
+
&[data-tone='valid'] {
|
|
18
|
+
@apply border-green-700 bg-green-50 data-checked:border-green-700 data-checked:bg-green-700 data-indeterminate:border-green-700 data-indeterminate:bg-green-700;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-component='checkbox-indicator']) {
|
|
23
|
+
@apply flex items-center justify-center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where([data-component='checkbox-indicator'])
|
|
27
|
+
&:where([data-component='checkbox-indicator-1']) {
|
|
28
|
+
@apply h-3 w-fit;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:where([data-component='checkbox-indicator'])
|
|
32
|
+
&:where([data-component='checkbox-indicator-2']) {
|
|
33
|
+
@apply h-3 w-fit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:where([data-component='checkbox-label']) {
|
|
37
|
+
@apply col-start-2 row-start-1 cursor-pointer text-sm text-neutral-950 data-disabled:cursor-not-allowed data-disabled:text-neutral-500;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:where([data-component='checkbox-description']) {
|
|
41
|
+
@apply col-start-2 text-[0.8rem] text-neutral-600;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where([data-component='checkbox-error']) {
|
|
45
|
+
@apply col-start-2 text-xs font-medium text-red-600;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-component='checkbox-success']) {
|
|
49
|
+
@apply col-start-2 text-xs font-medium text-emerald-700;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* chip */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='chip-chip']) {
|
|
5
|
+
@apply flex h-6 min-w-6 w-fit shrink-0 cursor-default items-center justify-between gap-1 rounded-full bg-black/5 px-2 text-[0.8rem] leading-none font-medium text-nowrap text-neutral-600;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='chip-closebutton']) {
|
|
9
|
+
@apply -mr-1.75 flex h-4.25 aspect-square w-auto cursor-pointer items-center justify-center rounded-full text-neutral-600 hover:bg-black/10 hover:text-neutral-950 active:bg-black/15 active:text-neutral-950 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='chip-closebuttonicon']) {
|
|
13
|
+
@apply h-3.25 w-fit text-inherit;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|