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