@arobo/react 1.0.1 → 1.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/dist/components/accordion/accordion.d.ts +30 -0
- package/dist/components/accordion/accordion.js +190 -0
- package/dist/components/accordion/index.d.ts +23 -0
- package/dist/components/accordion/index.js +16 -0
- package/dist/components/alert/alert.d.ts +15 -0
- package/dist/components/alert/alert.js +151 -0
- package/dist/components/alert/index.d.ts +19 -0
- package/dist/components/alert/index.js +14 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +65 -0
- package/dist/components/alert-dialog/alert-dialog.js +303 -0
- package/dist/components/alert-dialog/index.d.ts +31 -0
- package/dist/components/alert-dialog/index.js +20 -0
- package/dist/components/avatar/avatar.d.ts +15 -0
- package/dist/components/avatar/avatar.js +92 -0
- package/dist/components/avatar/index.d.ts +15 -0
- package/dist/components/avatar/index.js +12 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +14 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +82 -0
- package/dist/components/breadcrumbs/index.d.ts +13 -0
- package/dist/components/breadcrumbs/index.js +11 -0
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/calendar.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.js +3 -3
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/carousel.d.ts +26 -0
- package/dist/components/carousel/carousel.js +170 -0
- package/dist/components/carousel/index.d.ts +17 -0
- package/dist/components/carousel/index.js +10 -0
- package/dist/components/checkbox/checkbox.d.ts +16 -3
- package/dist/components/checkbox/checkbox.js +149 -35
- package/dist/components/checkbox/index.d.ts +3 -16
- package/dist/components/checkbox/index.js +4 -12
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/chip/chip.d.ts +9 -0
- package/dist/components/chip/chip.js +24 -0
- package/dist/components/chip/index.d.ts +11 -0
- package/dist/components/chip/index.js +10 -0
- package/dist/components/close-button/close-button.d.ts +1 -1
- package/dist/components/close-button/close-button.js +1 -1
- package/dist/components/close-button/index.d.ts +1 -3
- package/dist/components/close-button/index.js +0 -1
- package/dist/components/combobox/combobox.js +3 -3
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/container/container.d.ts +9 -0
- package/dist/components/container/container.js +23 -0
- package/dist/components/container/index.d.ts +13 -0
- package/dist/components/container/index.js +11 -0
- package/dist/components/date-field/date-field.js +3 -3
- package/dist/components/date-field/index.js +1 -1
- package/dist/components/date-input-group/date-input-group.js +3 -3
- package/dist/components/date-input-group/index.js +1 -1
- package/dist/components/date-picker/date-picker.js +4 -4
- package/dist/components/date-picker/index.d.ts +0 -2
- package/dist/components/date-picker/index.js +0 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/components/date-range-picker/date-range-picker.js +4 -4
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/description/description.js +1 -1
- package/dist/components/description/index.d.ts +1 -3
- package/dist/components/description/index.js +0 -1
- package/dist/components/drawer/drawer.d.ts +33 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/dropdown/dropdown.d.ts +38 -0
- package/dist/components/dropdown/dropdown.js +155 -0
- package/dist/components/dropdown/index.d.ts +41 -0
- package/dist/components/dropdown/index.js +18 -0
- package/dist/components/empty/empty.d.ts +34 -0
- package/dist/components/empty/empty.js +151 -0
- package/dist/components/empty/index.d.ts +2 -0
- package/dist/components/empty/index.js +1 -0
- package/dist/components/empty-state/empty-state.d.ts +7 -0
- package/dist/components/empty-state/empty-state.js +19 -0
- package/dist/components/empty-state/index.d.ts +11 -0
- package/dist/components/empty-state/index.js +10 -0
- package/dist/components/error-message/error-message.js +1 -1
- package/dist/components/error-message/index.js +1 -1
- package/dist/components/field-error/field-error.js +1 -1
- package/dist/components/field-error/index.js +1 -1
- package/dist/components/fieldset/fieldset.d.ts +16 -0
- package/dist/components/fieldset/fieldset.js +87 -0
- package/dist/components/fieldset/index.d.ts +19 -0
- package/dist/components/fieldset/index.js +14 -0
- package/dist/components/header/header.d.ts +7 -0
- package/dist/components/header/header.js +20 -0
- package/dist/components/header/index.d.ts +8 -0
- package/dist/components/header/index.js +8 -0
- package/dist/components/heading/heading.d.ts +12 -0
- package/dist/components/heading/heading.js +29 -0
- package/dist/components/heading/index.d.ts +13 -0
- package/dist/components/heading/index.js +11 -0
- package/dist/components/icons.js +169 -1
- package/dist/components/index.d.ts +45 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/input-group/index.d.ts +21 -0
- package/dist/components/input-group/index.js +15 -0
- package/dist/components/input-group/input-group.d.ts +20 -0
- package/dist/components/input-group/input-group.js +128 -0
- package/dist/components/input-otp/index.d.ts +22 -0
- package/dist/components/input-otp/index.js +20 -0
- package/dist/components/input-otp/input-otp.d.ts +26 -0
- package/dist/components/input-otp/input-otp.js +138 -0
- package/dist/components/kbd/index.d.ts +17 -0
- package/dist/components/kbd/index.js +13 -0
- package/dist/components/kbd/kbd.constants.d.ts +3 -0
- package/dist/components/kbd/kbd.constants.js +50 -0
- package/dist/components/kbd/kbd.d.ts +24 -0
- package/dist/components/kbd/kbd.js +75 -0
- package/dist/components/label/index.js +1 -1
- package/dist/components/label/label.js +1 -1
- package/dist/components/link/index.d.ts +13 -0
- package/dist/components/link/index.js +11 -0
- package/dist/components/link/link.d.ts +10 -0
- package/dist/components/link/link.js +58 -0
- package/dist/components/listbox/index.d.ts +21 -0
- package/dist/components/listbox/index.js +16 -0
- package/dist/components/listbox/listbox.d.ts +9 -0
- package/dist/components/listbox/listbox.js +22 -0
- package/dist/components/listbox/listbox.type.d.ts +34 -0
- package/dist/components/listbox-item/index.d.ts +13 -0
- package/dist/components/listbox-item/index.js +11 -0
- package/dist/components/listbox-item/listbox-item.d.ts +15 -0
- package/dist/components/listbox-item/listbox-item.js +76 -0
- package/dist/components/listbox-section/index.d.ts +8 -0
- package/dist/components/listbox-section/index.js +8 -0
- package/dist/components/listbox-section/listbox-section.d.ts +8 -0
- package/dist/components/listbox-section/listbox-section.js +21 -0
- package/dist/components/menu/index.d.ts +22 -0
- package/dist/components/menu/index.js +16 -0
- package/dist/components/menu/menu.d.ts +9 -0
- package/dist/components/menu/menu.js +19 -0
- package/dist/components/menu-item/index.d.ts +15 -0
- package/dist/components/menu-item/index.js +12 -0
- package/dist/components/menu-item/menu-item.d.ts +20 -0
- package/dist/components/menu-item/menu-item.js +122 -0
- package/dist/components/menu-section/index.d.ts +8 -0
- package/dist/components/menu-section/index.js +8 -0
- package/dist/components/menu-section/menu-section.d.ts +8 -0
- package/dist/components/menu-section/menu-section.js +21 -0
- package/dist/components/modal/index.d.ts +31 -0
- package/dist/components/modal/index.js +20 -0
- package/dist/components/modal/modal.d.ts +53 -0
- package/dist/components/modal/modal.js +283 -0
- package/dist/components/number-field/index.d.ts +21 -0
- package/dist/components/number-field/index.js +15 -0
- package/dist/components/number-field/number-field.d.ts +20 -0
- package/dist/components/number-field/number-field.js +126 -0
- package/dist/components/pagination/index.d.ts +19 -0
- package/dist/components/pagination/index.js +11 -0
- package/dist/components/pagination/pagination-ellipsis.d.ts +6 -0
- package/dist/components/pagination/pagination-ellipsis.js +11 -0
- package/dist/components/pagination/pagination-item.d.ts +15 -0
- package/dist/components/pagination/pagination-item.js +34 -0
- package/dist/components/pagination/pagination.d.ts +28 -0
- package/dist/components/pagination/pagination.js +128 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.js +4 -4
- package/dist/components/rac/components.d.ts +1 -0
- package/dist/components/rac/index.d.ts +3 -0
- package/dist/components/rac/index.js +2 -0
- package/dist/components/rac/types.d.ts +2 -0
- package/dist/components/radio/index.d.ts +17 -0
- package/dist/components/radio/index.js +13 -0
- package/dist/components/radio/radio.d.ts +21 -0
- package/dist/components/radio/radio.js +96 -0
- package/dist/components/radio-group/index.d.ts +11 -0
- package/dist/components/radio-group/index.js +10 -0
- package/dist/components/radio-group/radio-group.d.ts +8 -0
- package/dist/components/radio-group/radio-group.js +26 -0
- package/dist/components/range-calendar/index.js +1 -1
- package/dist/components/range-calendar/range-calendar.js +1 -1
- package/dist/components/scroll-shadow/index.d.ts +19 -0
- package/dist/components/scroll-shadow/index.js +11 -0
- package/dist/components/scroll-shadow/scroll-shadow.d.ts +32 -0
- package/dist/components/scroll-shadow/scroll-shadow.js +75 -0
- package/dist/components/scroll-shadow/use-scroll-shadow.d.ts +11 -0
- package/dist/components/scroll-shadow/use-scroll-shadow.js +120 -0
- package/dist/components/select/index.d.ts +19 -0
- package/dist/components/select/index.js +14 -0
- package/dist/components/select/select.d.ts +24 -0
- package/dist/components/select/select.js +139 -0
- package/dist/components/separator/index.d.ts +11 -0
- package/dist/components/separator/index.js +10 -0
- package/dist/components/separator/separator.d.ts +8 -0
- package/dist/components/separator/separator.js +22 -0
- package/dist/components/slider/index.d.ts +21 -0
- package/dist/components/slider/index.js +15 -0
- package/dist/components/slider/slider.d.ts +23 -0
- package/dist/components/slider/slider.js +176 -0
- package/dist/components/spinner/index.d.ts +11 -0
- package/dist/components/spinner/index.js +10 -0
- package/dist/components/spinner/spinner.d.ts +7 -0
- package/dist/components/spinner/spinner.js +87 -0
- package/dist/components/surface/index.js +1 -1
- package/dist/components/surface/surface.js +1 -1
- package/dist/components/switch/index.d.ts +17 -0
- package/dist/components/switch/index.js +13 -0
- package/dist/components/switch/switch.d.ts +17 -0
- package/dist/components/switch/switch.js +97 -0
- package/dist/components/tabs/index.d.ts +21 -0
- package/dist/components/tabs/index.js +15 -0
- package/dist/components/tabs/tabs.d.ts +34 -0
- package/dist/components/tabs/tabs.js +140 -0
- package/dist/components/tag/index.d.ts +13 -0
- package/dist/components/tag/index.js +11 -0
- package/dist/components/tag/tag.d.ts +14 -0
- package/dist/components/tag/tag.js +84 -0
- package/dist/components/tag-group/index.d.ts +13 -0
- package/dist/components/tag-group/index.js +12 -0
- package/dist/components/tag-group/tag-group.d.ts +19 -0
- package/dist/components/tag-group/tag-group.js +58 -0
- package/dist/components/text-field/index.js +1 -1
- package/dist/components/text-field/text-field.js +3 -3
- package/dist/components/textarea/index.d.ts +11 -0
- package/dist/components/textarea/index.js +10 -0
- package/dist/components/textarea/textarea.d.ts +8 -0
- package/dist/components/textarea/textarea.js +26 -0
- package/dist/components/toast/constants.d.ts +3 -0
- package/dist/components/toast/constants.js +8 -0
- package/dist/components/toast/index.d.ts +73 -0
- package/dist/components/toast/index.js +21 -0
- package/dist/components/toast/toast-queue.d.ts +67 -0
- package/dist/components/toast/toast-queue.js +129 -0
- package/dist/components/toast/toast.d.ts +67 -0
- package/dist/components/toast/toast.js +295 -0
- package/dist/components/toggle-button/index.d.ts +2 -0
- package/dist/components/toggle-button/index.js +1 -0
- package/dist/components/toggle-button/toggle-button.d.ts +10 -0
- package/dist/components/toggle-button/toggle-button.js +26 -0
- package/dist/components/toggle-button-group/index.d.ts +2 -0
- package/dist/components/toggle-button-group/index.js +1 -0
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +15 -0
- package/dist/components/toggle-button-group/toggle-button-group.js +61 -0
- package/dist/components/tooltip/index.d.ts +17 -0
- package/dist/components/tooltip/index.js +13 -0
- package/dist/components/tooltip/tooltip.d.ts +20 -0
- package/dist/components/tooltip/tooltip.js +105 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +2 -0
- package/dist/hooks/use-isomorphic-layout-effect.js +5 -0
- package/dist/hooks/use-list-data.d.ts +111 -0
- package/dist/hooks/use-media-query.d.ts +6 -0
- package/dist/hooks/use-media-query.js +49 -0
- package/dist/hooks/use-overlay-state.d.ts +52 -0
- package/dist/hooks/use-pagination.d.ts +48 -0
- package/dist/hooks/use-pagination.js +114 -0
- package/dist/hooks/use-safe-layout-effect.d.ts +2 -0
- package/dist/hooks/use-safe-layout-effect.js +5 -0
- package/dist/index.js +111 -26
- package/dist/node_modules/.pnpm/@internationalized_string@3.2.7/node_modules/@internationalized/string/dist/LocalizedStringDictionary.js +74 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ar-AE.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/bg-BG.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/cs-CZ.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/da-DK.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/de-DE.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/el-GR.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/en-US.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/es-ES.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/et-EE.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/fi-FI.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/fr-FR.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/he-IL.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/hr-HR.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/hu-HU.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/index.js +80 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/it-IT.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ja-JP.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ko-KR.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/lt-LT.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/lv-LV.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/nb-NO.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/nl-NL.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/pl-PL.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/pt-BR.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/pt-PT.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ro-RO.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ru-RU.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/sk-SK.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/sl-SI.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/sr-SP.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/sv-SE.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/tr-TR.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/uk-UA.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/zh-CN.js +3 -0
- package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/zh-TW.js +3 -0
- package/dist/packages/styles/src/components/accordion/accordion.styles.js +26 -0
- package/dist/packages/styles/src/components/alert/alert.styles.js +35 -0
- package/dist/packages/styles/src/components/alert-dialog/alert-dialog.styles.js +70 -0
- package/dist/packages/styles/src/components/avatar/avatar.styles.js +51 -0
- package/dist/packages/styles/src/components/breadcrumbs/breadcrumbs.styles.js +12 -0
- package/dist/packages/styles/src/components/chip/chip.styles.js +31 -0
- package/dist/packages/styles/src/components/container/container.styles.js +18 -0
- package/dist/packages/styles/src/components/dropdown/dropdown.styles.js +12 -0
- package/dist/packages/styles/src/components/empty/empty.styles.js +30 -0
- package/dist/packages/styles/src/components/empty-state/empty-state.styles.js +7 -0
- package/dist/packages/styles/src/components/fieldset/fieldset.styles.js +13 -0
- package/dist/packages/styles/src/components/header/header.styles.js +7 -0
- package/dist/packages/styles/src/components/heading/heading.styles.js +19 -0
- package/dist/packages/styles/src/components/input-group/input-group.styles.js +32 -0
- package/dist/packages/styles/src/components/input-otp/input-otp.styles.js +28 -0
- package/dist/packages/styles/src/components/kbd/kbd.styles.js +18 -0
- package/dist/packages/styles/src/components/link/link.styles.js +12 -0
- package/dist/packages/styles/src/components/listbox/listbox.styles.js +16 -0
- package/dist/packages/styles/src/components/listbox-item/listbox-item.styles.js +23 -0
- package/dist/packages/styles/src/components/listbox-section/listbox-section.styles.js +7 -0
- package/dist/packages/styles/src/components/menu/menu.styles.js +7 -0
- package/dist/packages/styles/src/components/menu-item/menu-item.styles.js +24 -0
- package/dist/packages/styles/src/components/menu-section/menu-section.styles.js +7 -0
- package/dist/packages/styles/src/components/modal/modal.styles.js +68 -0
- package/dist/packages/styles/src/components/number-field/number-field.styles.js +34 -0
- package/dist/packages/styles/src/components/pagination/pagination.styles.js +33 -0
- package/dist/packages/styles/src/components/radio/radio.styles.js +12 -0
- package/dist/packages/styles/src/components/radio-group/radio-group.styles.js +16 -0
- package/dist/packages/styles/src/components/scroll-shadow/scroll-shadow.styles.js +35 -0
- package/dist/packages/styles/src/components/select/select.styles.js +34 -0
- package/dist/packages/styles/src/components/separator/separator.styles.js +16 -0
- package/dist/packages/styles/src/components/slider/slider.styles.js +14 -0
- package/dist/packages/styles/src/components/spinner/spinner.styles.js +26 -0
- package/dist/packages/styles/src/components/switch/switch.styles.js +28 -0
- package/dist/packages/styles/src/components/tabs/tabs.styles.js +27 -0
- package/dist/packages/styles/src/components/tag/tag.styles.js +35 -0
- package/dist/packages/styles/src/components/tag-group/tag-group.styles.js +10 -0
- package/dist/packages/styles/src/components/textarea/textarea.styles.js +21 -0
- package/dist/packages/styles/src/components/toast/toast.styles.js +65 -0
- package/dist/packages/styles/src/components/toggle-button/toggle-button.styles.js +36 -0
- package/dist/packages/styles/src/components/toggle-button-group/toggle-button-group.styles.js +36 -0
- package/dist/packages/styles/src/components/tooltip/tooltip.styles.js +10 -0
- package/dist/utils/children.d.ts +9 -0
- package/dist/utils/children.js +17 -0
- package/dist/utils/compose.js +1 -1
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/merge-props.d.ts +26 -0
- package/dist/utils/merge-props.js +72 -0
- package/dist/utils/merge-refs.d.ts +5 -0
- package/dist/utils/merge-refs.js +48 -0
- package/package.json +13 -7
- package/dist/components/field-group/field-group.d.ts +0 -11
- package/dist/components/field-group/field-group.js +0 -18
- package/dist/components/field-group/index.d.ts +0 -13
- package/dist/components/field-group/index.js +0 -11
- package/dist/styles/src/components/field-group/field-group.styles.js +0 -25
- package/dist/styles/src/utils/state.js +0 -13
- /package/dist/{styles → packages/styles}/src/components/button/button.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/button-group/button-group.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/calendar/calendar.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/card/card.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/checkbox/checkbox.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/checkbox-group/checkbox-group.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/close-button/close-button.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/combobox/combobox.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/date-field/date-field.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/date-input-group/date-input-group.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/date-picker/date-picker.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/date-range-picker/date-range-picker.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/description/description.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/error-message/error-message.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/field-error/field-error.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/input/input.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/label/label.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/popover/popover.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/range-calendar/range-calendar.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/surface/surface.styles.js +0 -0
- /package/dist/{styles → packages/styles}/src/components/text-field/text-field.styles.js +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const emptyVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: "empty",
|
|
6
|
+
header: "empty__header",
|
|
7
|
+
media: "empty__media",
|
|
8
|
+
title: "empty__title",
|
|
9
|
+
description: "empty__description",
|
|
10
|
+
content: "empty__content",
|
|
11
|
+
actions: "empty__actions"
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
size: "md",
|
|
15
|
+
variant: "ghost"
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
size: {
|
|
19
|
+
sm: "empty--sm",
|
|
20
|
+
md: "empty--md",
|
|
21
|
+
lg: "empty--lg"
|
|
22
|
+
},
|
|
23
|
+
variant: {
|
|
24
|
+
ghost: "empty--ghost",
|
|
25
|
+
soft: "empty--soft"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export { emptyVariants };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const fieldsetVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
actions: "fieldset__actions",
|
|
6
|
+
base: "fieldset",
|
|
7
|
+
description: "fieldset__description",
|
|
8
|
+
fieldGroup: "fieldset__field_group",
|
|
9
|
+
legend: "fieldset__legend"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export { fieldsetVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const headingVariants = tv({
|
|
4
|
+
base: "heading",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
size: "title-md"
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
display: "heading--display",
|
|
11
|
+
subtitle: "heading--subtitle",
|
|
12
|
+
"title-lg": "heading--title-lg",
|
|
13
|
+
"title-md": "heading--title-md",
|
|
14
|
+
"title-sm": "heading--title-sm"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export { headingVariants };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const inputGroupVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
fullWidth: false,
|
|
6
|
+
variant: "primary"
|
|
7
|
+
},
|
|
8
|
+
slots: {
|
|
9
|
+
base: "input-group",
|
|
10
|
+
input: "input-group__input",
|
|
11
|
+
prefix: "input-group__prefix",
|
|
12
|
+
suffix: "input-group__suffix"
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
fullWidth: {
|
|
16
|
+
false: {},
|
|
17
|
+
true: {
|
|
18
|
+
base: "input-group--full-width"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
variant: {
|
|
22
|
+
primary: {
|
|
23
|
+
base: "input-group--primary"
|
|
24
|
+
},
|
|
25
|
+
secondary: {
|
|
26
|
+
base: "input-group--secondary"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export { inputGroupVariants };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const inputOTPVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
variant: "primary"
|
|
6
|
+
},
|
|
7
|
+
slots: {
|
|
8
|
+
base: "input-otp",
|
|
9
|
+
caret: "input-otp__caret",
|
|
10
|
+
group: "input-otp__group",
|
|
11
|
+
input: "input-otp__input",
|
|
12
|
+
separator: "input-otp__separator",
|
|
13
|
+
slot: "input-otp__slot",
|
|
14
|
+
slotValue: "input-otp__slot-value"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
primary: {
|
|
19
|
+
base: "input-otp--primary"
|
|
20
|
+
},
|
|
21
|
+
secondary: {
|
|
22
|
+
base: "input-otp--secondary"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export { inputOTPVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const kbdVariants = tv({
|
|
4
|
+
defaultVariants: {},
|
|
5
|
+
slots: {
|
|
6
|
+
abbr: "kbd__abbr",
|
|
7
|
+
base: "kbd",
|
|
8
|
+
content: "kbd__content"
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "kbd--default",
|
|
13
|
+
light: "kbd--light"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export { kbdVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const listboxVariants = tv({
|
|
4
|
+
base: "listbox",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
variant: "default"
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
danger: "listbox--danger",
|
|
11
|
+
default: "listbox--default"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { listboxVariants };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const listboxItemVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
variant: "default"
|
|
6
|
+
},
|
|
7
|
+
slots: {
|
|
8
|
+
indicator: "listbox-item__indicator",
|
|
9
|
+
item: "listbox-item"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
danger: {
|
|
14
|
+
item: "listbox-item--danger"
|
|
15
|
+
},
|
|
16
|
+
default: {
|
|
17
|
+
item: "listbox-item--default"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export { listboxItemVariants };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const menuItemVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
variant: "default"
|
|
6
|
+
},
|
|
7
|
+
slots: {
|
|
8
|
+
indicator: "menu-item__indicator",
|
|
9
|
+
item: "menu-item",
|
|
10
|
+
submenuIndicator: "menu-item__indicator menu-item__indicator--submenu"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
danger: {
|
|
15
|
+
item: "menu-item--danger"
|
|
16
|
+
},
|
|
17
|
+
default: {
|
|
18
|
+
item: "menu-item--default"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export { menuItemVariants };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const modalVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
scroll: "inside",
|
|
6
|
+
size: "md",
|
|
7
|
+
variant: "opaque"
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
backdrop: "modal__backdrop",
|
|
11
|
+
body: "modal__body",
|
|
12
|
+
closeTrigger: "modal__close-trigger",
|
|
13
|
+
container: "modal__container",
|
|
14
|
+
dialog: "modal__dialog",
|
|
15
|
+
footer: "modal__footer",
|
|
16
|
+
header: "modal__header",
|
|
17
|
+
heading: "modal__heading",
|
|
18
|
+
icon: "modal__icon",
|
|
19
|
+
trigger: "modal__trigger"
|
|
20
|
+
},
|
|
21
|
+
variants: {
|
|
22
|
+
scroll: {
|
|
23
|
+
inside: {
|
|
24
|
+
body: "modal__body--scroll-inside",
|
|
25
|
+
dialog: "modal__dialog--scroll-inside"
|
|
26
|
+
},
|
|
27
|
+
outside: {
|
|
28
|
+
body: "modal__body--scroll-outside",
|
|
29
|
+
container: "modal__container--scroll-outside",
|
|
30
|
+
dialog: "modal__dialog--scroll-outside"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
size: {
|
|
34
|
+
cover: {
|
|
35
|
+
dialog: "modal__dialog--cover"
|
|
36
|
+
},
|
|
37
|
+
full: {
|
|
38
|
+
container: "modal__container--full",
|
|
39
|
+
dialog: "modal__dialog--full"
|
|
40
|
+
},
|
|
41
|
+
lg: {
|
|
42
|
+
dialog: "modal__dialog--lg"
|
|
43
|
+
},
|
|
44
|
+
md: {
|
|
45
|
+
dialog: "modal__dialog--md"
|
|
46
|
+
},
|
|
47
|
+
sm: {
|
|
48
|
+
dialog: "modal__dialog--sm"
|
|
49
|
+
},
|
|
50
|
+
xs: {
|
|
51
|
+
dialog: "modal__dialog--xs"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
variant: {
|
|
55
|
+
blur: {
|
|
56
|
+
backdrop: "modal__backdrop--blur"
|
|
57
|
+
},
|
|
58
|
+
opaque: {
|
|
59
|
+
backdrop: "modal__backdrop--opaque"
|
|
60
|
+
},
|
|
61
|
+
transparent: {
|
|
62
|
+
backdrop: "modal__backdrop--transparent"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export { modalVariants };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const numberFieldVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
fullWidth: false,
|
|
6
|
+
variant: "primary"
|
|
7
|
+
},
|
|
8
|
+
slots: {
|
|
9
|
+
base: "number-field",
|
|
10
|
+
decrementButton: "number-field__decrement-button",
|
|
11
|
+
group: "number-field__group",
|
|
12
|
+
incrementButton: "number-field__increment-button",
|
|
13
|
+
input: "number-field__input"
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
fullWidth: {
|
|
17
|
+
false: {},
|
|
18
|
+
true: {
|
|
19
|
+
base: "number-field--full-width",
|
|
20
|
+
group: "number-field__group--full-width"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
variant: {
|
|
24
|
+
primary: {
|
|
25
|
+
base: "number-field--primary"
|
|
26
|
+
},
|
|
27
|
+
secondary: {
|
|
28
|
+
base: "number-field--secondary"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export { numberFieldVariants };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const paginationVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: "pagination",
|
|
6
|
+
list: "pagination__list",
|
|
7
|
+
item: "pagination__item",
|
|
8
|
+
button: "pagination__button",
|
|
9
|
+
ellipsis: "pagination__ellipsis"
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
isCompact: false,
|
|
13
|
+
size: "md",
|
|
14
|
+
variant: "ghost"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
isCompact: {
|
|
18
|
+
true: "pagination--compact"
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
lg: "pagination--lg",
|
|
22
|
+
md: "pagination--md",
|
|
23
|
+
sm: "pagination--sm"
|
|
24
|
+
},
|
|
25
|
+
variant: {
|
|
26
|
+
ghost: "pagination--ghost",
|
|
27
|
+
outline: "pagination--outline",
|
|
28
|
+
soft: "pagination--soft"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export { paginationVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const radioGroupVariants = tv({
|
|
4
|
+
base: "radio-group",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
variant: "primary"
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
primary: "radio-group--primary",
|
|
11
|
+
secondary: "radio-group--secondary"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { radioGroupVariants };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const scrollShadowVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
hideScrollBar: false,
|
|
6
|
+
orientation: "vertical",
|
|
7
|
+
variant: "fade"
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "scroll-shadow"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
hideScrollBar: {
|
|
14
|
+
false: {},
|
|
15
|
+
true: {
|
|
16
|
+
base: "scroll-shadow--hide-scrollbar"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
orientation: {
|
|
20
|
+
horizontal: {
|
|
21
|
+
base: "scroll-shadow--horizontal"
|
|
22
|
+
},
|
|
23
|
+
vertical: {
|
|
24
|
+
base: "scroll-shadow--vertical"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
variant: {
|
|
28
|
+
fade: {
|
|
29
|
+
base: "scroll-shadow--fade"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export { scrollShadowVariants };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const selectVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
fullWidth: false,
|
|
6
|
+
variant: "primary"
|
|
7
|
+
},
|
|
8
|
+
slots: {
|
|
9
|
+
base: "select",
|
|
10
|
+
indicator: "select__indicator",
|
|
11
|
+
popover: "select__popover",
|
|
12
|
+
trigger: "select__trigger",
|
|
13
|
+
value: "select__value"
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
fullWidth: {
|
|
17
|
+
false: {},
|
|
18
|
+
true: {
|
|
19
|
+
base: "select--full-width",
|
|
20
|
+
trigger: "select__trigger--full-width"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
variant: {
|
|
24
|
+
primary: {
|
|
25
|
+
base: "select--primary"
|
|
26
|
+
},
|
|
27
|
+
secondary: {
|
|
28
|
+
base: "select--secondary"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export { selectVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const separatorVariants = tv({
|
|
4
|
+
base: "separator",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
orientation: "horizontal"
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
orientation: {
|
|
10
|
+
horizontal: "separator--horizontal",
|
|
11
|
+
vertical: "separator--vertical"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { separatorVariants };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const sliderVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: "slider",
|
|
6
|
+
fill: "slider__fill",
|
|
7
|
+
marks: "slider__marks",
|
|
8
|
+
output: "slider__output",
|
|
9
|
+
thumb: "slider__thumb",
|
|
10
|
+
track: "slider__track"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export { sliderVariants };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const spinnerVariants = tv({
|
|
4
|
+
base: "spinner",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
color: "accent",
|
|
7
|
+
size: "md"
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
color: {
|
|
11
|
+
accent: "spinner--accent",
|
|
12
|
+
current: "spinner--current",
|
|
13
|
+
danger: "spinner--danger",
|
|
14
|
+
success: "spinner--success",
|
|
15
|
+
warning: "spinner--warning"
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
lg: "spinner--lg",
|
|
19
|
+
md: "spinner--md",
|
|
20
|
+
sm: "spinner--sm",
|
|
21
|
+
xl: "spinner--xl"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export { spinnerVariants };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const switchVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
size: "md"
|
|
6
|
+
},
|
|
7
|
+
slots: {
|
|
8
|
+
base: "switch",
|
|
9
|
+
control: "switch__control",
|
|
10
|
+
icon: "switch__icon",
|
|
11
|
+
thumb: "switch__thumb"
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
lg: {
|
|
16
|
+
base: "switch--lg"
|
|
17
|
+
},
|
|
18
|
+
md: {
|
|
19
|
+
base: "switch--md"
|
|
20
|
+
},
|
|
21
|
+
sm: {
|
|
22
|
+
base: "switch--sm"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export { switchVariants };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const tabsVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
variant: "primary"
|
|
6
|
+
},
|
|
7
|
+
slots: {
|
|
8
|
+
base: "tabs",
|
|
9
|
+
tab: "tabs__tab",
|
|
10
|
+
tabIndicator: "tabs__indicator",
|
|
11
|
+
tabList: "tabs__list",
|
|
12
|
+
tabListContainer: "tabs__list-container",
|
|
13
|
+
tabPanel: "tabs__panel"
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
primary: {},
|
|
18
|
+
secondary: {
|
|
19
|
+
base: "tabs--secondary"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
// Render props that should be excluded from TabsVariants (framework-specific)
|
|
26
|
+
|
|
27
|
+
export { tabsVariants };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const tagVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
size: "md",
|
|
6
|
+
variant: "default"
|
|
7
|
+
},
|
|
8
|
+
slots: {
|
|
9
|
+
base: "tag",
|
|
10
|
+
removeButton: "tag__remove-button"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
lg: {
|
|
15
|
+
base: "tag--lg"
|
|
16
|
+
},
|
|
17
|
+
md: {
|
|
18
|
+
base: "tag--md"
|
|
19
|
+
},
|
|
20
|
+
sm: {
|
|
21
|
+
base: "tag--sm"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
variant: {
|
|
25
|
+
default: {
|
|
26
|
+
base: "tag--default"
|
|
27
|
+
},
|
|
28
|
+
surface: {
|
|
29
|
+
base: "tag--surface"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export { tagVariants };
|