@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,380 @@
|
|
|
1
|
+
@import './shopify-polaris-button.css';
|
|
2
|
+
@import './shopify-polaris-input.css';
|
|
3
|
+
@import './shopify-polaris-numberinput.css';
|
|
4
|
+
@import './shopify-polaris-textarea.css';
|
|
5
|
+
@import './shopify-polaris-passwordinput.css';
|
|
6
|
+
@import './shopify-polaris-otpinput.css';
|
|
7
|
+
@import './shopify-polaris-autocomplete.css';
|
|
8
|
+
@import './shopify-polaris-combobox.css';
|
|
9
|
+
@import './shopify-polaris-select.css';
|
|
10
|
+
@import './shopify-polaris-menu.css';
|
|
11
|
+
@import './shopify-polaris-datepicker.css';
|
|
12
|
+
@import './shopify-polaris-checkbox.css';
|
|
13
|
+
@import './shopify-polaris-radio.css';
|
|
14
|
+
@import './shopify-polaris-ratinginput.css';
|
|
15
|
+
@import './shopify-polaris-slider.css';
|
|
16
|
+
@import './shopify-polaris-switch.css';
|
|
17
|
+
@import './shopify-polaris-toggle.css';
|
|
18
|
+
@import './shopify-polaris-fileupload.css';
|
|
19
|
+
@import './shopify-polaris-stepper.css';
|
|
20
|
+
@import './shopify-polaris-splitter.css';
|
|
21
|
+
@import './shopify-polaris-tabs.css';
|
|
22
|
+
@import './shopify-polaris-accordion.css';
|
|
23
|
+
@import './shopify-polaris-tooltip.css';
|
|
24
|
+
@import './shopify-polaris-dialog.css';
|
|
25
|
+
@import './shopify-polaris-drawer.css';
|
|
26
|
+
@import './shopify-polaris-banner.css';
|
|
27
|
+
@import './shopify-polaris-page.css';
|
|
28
|
+
@import './shopify-polaris-badge.css';
|
|
29
|
+
@import './shopify-polaris-chip.css';
|
|
30
|
+
@import './shopify-polaris-textlink.css';
|
|
31
|
+
@import './shopify-polaris-empty.css';
|
|
32
|
+
@import './shopify-polaris-spinner.css';
|
|
33
|
+
@import './shopify-polaris-popover.css';
|
|
34
|
+
@import './shopify-polaris-table.css';
|
|
35
|
+
@import './shopify-polaris-card.css';
|
|
36
|
+
@import './shopify-polaris-skeleton.css';
|
|
37
|
+
@import './shopify-polaris-avatar.css';
|
|
38
|
+
@import './shopify-polaris-metric.css';
|
|
39
|
+
@import './shopify-polaris-divider.css';
|
|
40
|
+
@import './shopify-polaris-breadcrumb.css';
|
|
41
|
+
@import './shopify-polaris-form.css';
|
|
42
|
+
|
|
43
|
+
/* Global foundation and animations shared by the Polaris preset. */
|
|
44
|
+
@custom-variant screen-mobile (@media (max-width: 400px));
|
|
45
|
+
@custom-variant screen-tablet (@media (max-width: 768px));
|
|
46
|
+
@custom-variant screen-laptop (@media (max-width: 1024px));
|
|
47
|
+
@custom-variant screen-desktop (@media (max-width: 1280px));
|
|
48
|
+
|
|
49
|
+
* {
|
|
50
|
+
font-family: 'Inter';
|
|
51
|
+
outline-offset: 0px !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Custom scrollbar styles */
|
|
55
|
+
::-webkit-scrollbar {
|
|
56
|
+
height: 5px;
|
|
57
|
+
width: 5px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
::-webkit-scrollbar-track {
|
|
61
|
+
background: white;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
::-webkit-scrollbar-thumb {
|
|
65
|
+
background: #aaaaaa;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
::-webkit-scrollbar-thumb:hover {
|
|
69
|
+
background: #7c8591;
|
|
70
|
+
}
|
|
71
|
+
/* Presence keeps closing elements mounted until their exit animations finish. */
|
|
72
|
+
@keyframes fade-in {
|
|
73
|
+
from {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
to {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@keyframes fade-out {
|
|
82
|
+
from {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
85
|
+
to {
|
|
86
|
+
opacity: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@utility animate-fade-in {
|
|
91
|
+
animation: fade-in 150ms ease-out both;
|
|
92
|
+
@media (prefers-reduced-motion: reduce) {
|
|
93
|
+
animation-duration: 0.01ms;
|
|
94
|
+
transition-duration: 0.01ms;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@utility animate-fade-out {
|
|
99
|
+
animation: fade-out 150ms ease-in both;
|
|
100
|
+
@media (prefers-reduced-motion: reduce) {
|
|
101
|
+
animation-duration: 0.01ms;
|
|
102
|
+
transition-duration: 0.01ms;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@utility animate-fade-in-slow {
|
|
107
|
+
animation: fade-in 200ms ease-out both;
|
|
108
|
+
@media (prefers-reduced-motion: reduce) {
|
|
109
|
+
animation-duration: 0.01ms;
|
|
110
|
+
transition-duration: 0.01ms;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@utility animate-fade-out-slow {
|
|
115
|
+
animation: fade-out 200ms ease-in both;
|
|
116
|
+
@media (prefers-reduced-motion: reduce) {
|
|
117
|
+
animation-duration: 0.01ms;
|
|
118
|
+
transition-duration: 0.01ms;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@keyframes slide-in-from-right {
|
|
123
|
+
from {
|
|
124
|
+
translate: 100% 0;
|
|
125
|
+
}
|
|
126
|
+
to {
|
|
127
|
+
translate: 0 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@keyframes slide-out-to-right {
|
|
132
|
+
from {
|
|
133
|
+
translate: 0 0;
|
|
134
|
+
}
|
|
135
|
+
to {
|
|
136
|
+
translate: 100% 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@utility animate-slide-in-from-right {
|
|
141
|
+
animation: slide-in-from-right 200ms ease-out both;
|
|
142
|
+
transition: transform 200ms ease-out;
|
|
143
|
+
@media (prefers-reduced-motion: reduce) {
|
|
144
|
+
animation-duration: 0.01ms;
|
|
145
|
+
transition-duration: 0.01ms;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@utility animate-slide-out-to-right {
|
|
150
|
+
animation: slide-out-to-right 200ms ease-in both;
|
|
151
|
+
transition: transform 200ms ease-out;
|
|
152
|
+
@media (prefers-reduced-motion: reduce) {
|
|
153
|
+
animation-duration: 0.01ms;
|
|
154
|
+
transition-duration: 0.01ms;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@keyframes slide-in-from-left {
|
|
159
|
+
from {
|
|
160
|
+
translate: -100% 0;
|
|
161
|
+
}
|
|
162
|
+
to {
|
|
163
|
+
translate: 0 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@keyframes slide-out-to-left {
|
|
168
|
+
from {
|
|
169
|
+
translate: 0 0;
|
|
170
|
+
}
|
|
171
|
+
to {
|
|
172
|
+
translate: -100% 0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@utility animate-slide-in-from-left {
|
|
177
|
+
animation: slide-in-from-left 200ms ease-out both;
|
|
178
|
+
transition: transform 200ms ease-out;
|
|
179
|
+
@media (prefers-reduced-motion: reduce) {
|
|
180
|
+
animation-duration: 0.01ms;
|
|
181
|
+
transition-duration: 0.01ms;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@utility animate-slide-out-to-left {
|
|
186
|
+
animation: slide-out-to-left 200ms ease-in both;
|
|
187
|
+
transition: transform 200ms ease-out;
|
|
188
|
+
@media (prefers-reduced-motion: reduce) {
|
|
189
|
+
animation-duration: 0.01ms;
|
|
190
|
+
transition-duration: 0.01ms;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@keyframes slide-in-from-bottom {
|
|
195
|
+
from {
|
|
196
|
+
translate: 0 100%;
|
|
197
|
+
}
|
|
198
|
+
to {
|
|
199
|
+
translate: 0 0;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@keyframes slide-out-to-bottom {
|
|
204
|
+
from {
|
|
205
|
+
translate: 0 0;
|
|
206
|
+
}
|
|
207
|
+
to {
|
|
208
|
+
translate: 0 100%;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@utility animate-slide-in-from-bottom {
|
|
213
|
+
animation: slide-in-from-bottom 200ms ease-out both;
|
|
214
|
+
transition: transform 200ms ease-out;
|
|
215
|
+
@media (prefers-reduced-motion: reduce) {
|
|
216
|
+
animation-duration: 0.01ms;
|
|
217
|
+
transition-duration: 0.01ms;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@utility animate-slide-out-to-bottom {
|
|
222
|
+
animation: slide-out-to-bottom 200ms ease-in both;
|
|
223
|
+
transition: transform 200ms ease-out;
|
|
224
|
+
@media (prefers-reduced-motion: reduce) {
|
|
225
|
+
animation-duration: 0.01ms;
|
|
226
|
+
transition-duration: 0.01ms;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@keyframes slide-in-from-top {
|
|
231
|
+
from {
|
|
232
|
+
translate: 0 -100%;
|
|
233
|
+
}
|
|
234
|
+
to {
|
|
235
|
+
translate: 0 0;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@keyframes slide-out-to-top {
|
|
240
|
+
from {
|
|
241
|
+
translate: 0 0;
|
|
242
|
+
}
|
|
243
|
+
to {
|
|
244
|
+
translate: 0 -100%;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@utility animate-slide-in-from-top {
|
|
249
|
+
animation: slide-in-from-top 200ms ease-out both;
|
|
250
|
+
transition: transform 200ms ease-out;
|
|
251
|
+
@media (prefers-reduced-motion: reduce) {
|
|
252
|
+
animation-duration: 0.01ms;
|
|
253
|
+
transition-duration: 0.01ms;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@utility animate-slide-out-to-top {
|
|
258
|
+
animation: slide-out-to-top 200ms ease-in both;
|
|
259
|
+
transition: transform 200ms ease-out;
|
|
260
|
+
@media (prefers-reduced-motion: reduce) {
|
|
261
|
+
animation-duration: 0.01ms;
|
|
262
|
+
transition-duration: 0.01ms;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@keyframes fade-scale-in {
|
|
267
|
+
from {
|
|
268
|
+
opacity: 0;
|
|
269
|
+
scale: 0.95;
|
|
270
|
+
}
|
|
271
|
+
to {
|
|
272
|
+
opacity: 1;
|
|
273
|
+
scale: 1;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@keyframes fade-scale-out {
|
|
278
|
+
from {
|
|
279
|
+
opacity: 1;
|
|
280
|
+
scale: 1;
|
|
281
|
+
}
|
|
282
|
+
to {
|
|
283
|
+
opacity: 0;
|
|
284
|
+
scale: 0.95;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
@utility animate-fade-scale-in {
|
|
289
|
+
transform-origin: var(--transform-origin, center);
|
|
290
|
+
animation: fade-scale-in 150ms ease-out both;
|
|
291
|
+
@media (prefers-reduced-motion: reduce) {
|
|
292
|
+
animation-duration: 0.01ms;
|
|
293
|
+
transition-duration: 0.01ms;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@utility animate-fade-scale-out {
|
|
298
|
+
transform-origin: var(--transform-origin, center);
|
|
299
|
+
animation: fade-scale-out 150ms ease-in both;
|
|
300
|
+
@media (prefers-reduced-motion: reduce) {
|
|
301
|
+
animation-duration: 0.01ms;
|
|
302
|
+
transition-duration: 0.01ms;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@keyframes expand-height {
|
|
307
|
+
from {
|
|
308
|
+
opacity: 0.01;
|
|
309
|
+
height: 0;
|
|
310
|
+
}
|
|
311
|
+
to {
|
|
312
|
+
opacity: 1;
|
|
313
|
+
height: var(--height);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@keyframes collapse-height {
|
|
318
|
+
from {
|
|
319
|
+
opacity: 1;
|
|
320
|
+
height: var(--height);
|
|
321
|
+
}
|
|
322
|
+
to {
|
|
323
|
+
opacity: 0.01;
|
|
324
|
+
height: 0;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
@keyframes expand-width {
|
|
329
|
+
from {
|
|
330
|
+
opacity: 0.01;
|
|
331
|
+
width: 0;
|
|
332
|
+
}
|
|
333
|
+
to {
|
|
334
|
+
opacity: 1;
|
|
335
|
+
width: var(--width);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
@keyframes collapse-width {
|
|
340
|
+
from {
|
|
341
|
+
opacity: 1;
|
|
342
|
+
width: var(--width);
|
|
343
|
+
}
|
|
344
|
+
to {
|
|
345
|
+
opacity: 0.01;
|
|
346
|
+
width: 0;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@utility animate-expand-height {
|
|
351
|
+
animation: expand-height 250ms ease-in-out both;
|
|
352
|
+
@media (prefers-reduced-motion: reduce) {
|
|
353
|
+
animation-duration: 0.01ms;
|
|
354
|
+
transition-duration: 0.01ms;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@utility animate-collapse-height {
|
|
359
|
+
animation: collapse-height 200ms ease-in-out both;
|
|
360
|
+
@media (prefers-reduced-motion: reduce) {
|
|
361
|
+
animation-duration: 0.01ms;
|
|
362
|
+
transition-duration: 0.01ms;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@utility animate-expand-width {
|
|
367
|
+
animation: expand-width 250ms ease-in-out both;
|
|
368
|
+
@media (prefers-reduced-motion: reduce) {
|
|
369
|
+
animation-duration: 0.01ms;
|
|
370
|
+
transition-duration: 0.01ms;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
@utility animate-collapse-width {
|
|
375
|
+
animation: collapse-width 200ms ease-in-out both;
|
|
376
|
+
@media (prefers-reduced-motion: reduce) {
|
|
377
|
+
animation-duration: 0.01ms;
|
|
378
|
+
transition-duration: 0.01ms;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* accordion */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='accordion-list']) {
|
|
5
|
+
@apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-300 bg-white;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='accordion-item']) {
|
|
9
|
+
@apply w-full border-b border-neutral-300 last:border-b-0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='accordion-openbutton']) {
|
|
13
|
+
@apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-semibold text-neutral-900 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='accordion-openertitle']) {
|
|
17
|
+
@apply min-w-0 flex-1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-component='accordion-openerindicator']) {
|
|
21
|
+
@apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='accordion-content']) {
|
|
25
|
+
@apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* Autocomplete */
|
|
2
|
+
@layer components {
|
|
3
|
+
:where(:not([data-style-disabled])) {
|
|
4
|
+
&:where([data-component='autocomplete-container']) {
|
|
5
|
+
@apply flex w-full flex-col gap-1.25;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:where([data-component='autocomplete-label']) {
|
|
9
|
+
@apply text-sm text-neutral-900 data-disabled:text-neutral-500;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-component='autocomplete-input']) {
|
|
13
|
+
@apply min-w-12 flex-1 h-8 rounded-none border-0 bg-transparent px-2.5 py-1.5 text-sm text-neutral-900 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-600 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-component='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-300;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-component='autocomplete-itemslist']) {
|
|
25
|
+
@apply flex w-full flex-col gap-1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where([data-component='autocomplete-group']) {
|
|
29
|
+
@apply p-1 flex w-full flex-col gap-1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-component='autocomplete-item']) {
|
|
33
|
+
@apply flex h-7.5 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2.5 text-[0.85rem] font-medium text-nowrap text-neutral-700 outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-30 data-highlighted:bg-neutral-100;
|
|
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-300 bg-white shadow-md 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-300;
|
|
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-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1.5;
|
|
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 pointer-events-none text-neutral-600 data-disabled:text-neutral-500 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-lg bg-white px-[0.55rem] text-[0.75rem] font-semibold text-neutral-700 not-active:shadow-[0_-1px_0_0_#b5b5b5_inset,0_0_0_1px_rgba(0,0,0,0.1)_inset,0_0.5px_0_1.5px_#fff_inset] hover:bg-neutral-50 active:pt-[0.1rem] active:shadow-[0px_2px_1px_0px_rgba(0,0,0,0.19)_inset,0px_0px_0px_50px_rgba(0,0,0,0.025)_inset,0px_-1px_1px_0px_rgba(0,0,0,0.1)_inset] disabled:pointer-events-none disabled:opacity-50;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:where([data-component='autocomplete-inputgroup']) {
|
|
78
|
+
@apply flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white p-0 text-[0.8rem] text-neutral-900 outline-blue-600 outline-offset-1! hover:bg-neutral-50 focus-within:outline-2 data-disabled:cursor-not-allowed data-disabled:bg-neutral-100 data-disabled:text-neutral-500 data-disabled:hover:bg-neutral-100;
|
|
79
|
+
&[data-tone='invalid'] {
|
|
80
|
+
@apply border-red-800;
|
|
81
|
+
}
|
|
82
|
+
&[data-tone='valid'] {
|
|
83
|
+
@apply border-green-700;
|
|
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-lg p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:opacity-50;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:where([data-component='autocomplete-addonclearbutton']) {
|
|
92
|
+
@apply flex h-4 w-auto shrink-0 cursor-pointer items-center justify-center rounded-lg p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:opacity-50;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:where([data-component='autocomplete-grouplabel']) {
|
|
96
|
+
@apply shrink-0 px-2.5 py-1.5 text-[0.75rem] leading-none font-medium 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-300;
|
|
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-500 data-readonly:text-neutral-600;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&:where([data-component='autocomplete-emptytext']) {
|
|
116
|
+
@apply text-[0.85rem] text-center font-medium text-neutral-600;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:where([data-component='autocomplete-description']) {
|
|
120
|
+
@apply text-xs font-medium text-neutral-500 data-disabled:text-neutral-400;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:where([data-component='autocomplete-error']) {
|
|
124
|
+
@apply text-xs font-medium text-red-800 data-disabled:text-red-400;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:where([data-component='autocomplete-success']) {
|
|
128
|
+
@apply text-xs font-medium text-emerald-700 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-500 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-[0.85rem] text-center font-medium 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-neutral-200 text-neutral-600;
|
|
8
|
+
}
|
|
9
|
+
&[data-tone='informative'] {
|
|
10
|
+
@apply bg-blue-200/60 text-blue-900;
|
|
11
|
+
}
|
|
12
|
+
&[data-tone='success'] {
|
|
13
|
+
@apply bg-green-300/60 text-green-900;
|
|
14
|
+
}
|
|
15
|
+
&[data-tone='danger'] {
|
|
16
|
+
@apply bg-red-100 text-red-800;
|
|
17
|
+
}
|
|
18
|
+
&[data-tone='caution'] {
|
|
19
|
+
@apply bg-amber-200 text-yellow-800;
|
|
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
|
+
}
|