@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,21 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const textAreaVariants = tv({
|
|
4
|
+
base: "textarea",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
fullWidth: false,
|
|
7
|
+
variant: "primary"
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
fullWidth: {
|
|
11
|
+
false: "",
|
|
12
|
+
true: "textarea--full-width"
|
|
13
|
+
},
|
|
14
|
+
variant: {
|
|
15
|
+
primary: "textarea--primary",
|
|
16
|
+
secondary: "textarea--secondary"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export { textAreaVariants };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const toastVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
placement: "bottom",
|
|
6
|
+
variant: "default"
|
|
7
|
+
},
|
|
8
|
+
slots: {
|
|
9
|
+
action: "toast__action",
|
|
10
|
+
close: "toast__close-button",
|
|
11
|
+
content: "toast__content",
|
|
12
|
+
description: "toast__description",
|
|
13
|
+
indicator: "toast__indicator",
|
|
14
|
+
region: "toast-region",
|
|
15
|
+
title: "toast__title",
|
|
16
|
+
toast: "toast"
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
placement: {
|
|
20
|
+
bottom: {
|
|
21
|
+
region: "toast-region--bottom",
|
|
22
|
+
toast: "toast--bottom"
|
|
23
|
+
},
|
|
24
|
+
"bottom end": {
|
|
25
|
+
region: "toast-region--bottom-end",
|
|
26
|
+
toast: "toast--bottom-end"
|
|
27
|
+
},
|
|
28
|
+
"bottom start": {
|
|
29
|
+
region: "toast-region--bottom-start",
|
|
30
|
+
toast: "toast--bottom-start"
|
|
31
|
+
},
|
|
32
|
+
top: {
|
|
33
|
+
region: "toast-region--top",
|
|
34
|
+
toast: "toast--top"
|
|
35
|
+
},
|
|
36
|
+
"top end": {
|
|
37
|
+
region: "toast-region--top-end",
|
|
38
|
+
toast: "toast--top-end"
|
|
39
|
+
},
|
|
40
|
+
"top start": {
|
|
41
|
+
region: "toast-region--top-start",
|
|
42
|
+
toast: "toast--top-start"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
variant: {
|
|
46
|
+
accent: {
|
|
47
|
+
toast: "toast--accent"
|
|
48
|
+
},
|
|
49
|
+
danger: {
|
|
50
|
+
toast: "toast--danger"
|
|
51
|
+
},
|
|
52
|
+
default: {
|
|
53
|
+
toast: "toast--default"
|
|
54
|
+
},
|
|
55
|
+
success: {
|
|
56
|
+
toast: "toast--success"
|
|
57
|
+
},
|
|
58
|
+
warning: {
|
|
59
|
+
toast: "toast--warning"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export { toastVariants };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const toggleButtonVariants = tv({
|
|
4
|
+
base: "toggle-button",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
fullWidth: false,
|
|
7
|
+
isIconOnly: false,
|
|
8
|
+
size: "md",
|
|
9
|
+
variant: "primary"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
fullWidth: {
|
|
13
|
+
false: "",
|
|
14
|
+
true: "toggle-button--full-width"
|
|
15
|
+
},
|
|
16
|
+
isIconOnly: {
|
|
17
|
+
true: "toggle-button--icon-only"
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
lg: "toggle-button--lg",
|
|
21
|
+
md: "toggle-button--md",
|
|
22
|
+
sm: "toggle-button--sm"
|
|
23
|
+
},
|
|
24
|
+
variant: {
|
|
25
|
+
danger: "toggle-button--danger",
|
|
26
|
+
"danger-soft": "toggle-button--danger-soft",
|
|
27
|
+
ghost: "toggle-button--ghost",
|
|
28
|
+
outline: "toggle-button--outline",
|
|
29
|
+
primary: "toggle-button--primary",
|
|
30
|
+
secondary: "toggle-button--secondary",
|
|
31
|
+
tertiary: "toggle-button--tertiary"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export { toggleButtonVariants };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const toggleButtonGroupVariants = tv({
|
|
4
|
+
base: "toggle-button-group",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
fullWidth: false,
|
|
7
|
+
isIconOnly: false,
|
|
8
|
+
size: "md",
|
|
9
|
+
variant: "primary"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
fullWidth: {
|
|
13
|
+
false: "",
|
|
14
|
+
true: "toggle-button-group--full-width"
|
|
15
|
+
},
|
|
16
|
+
isIconOnly: {
|
|
17
|
+
true: "toggle-button-group--icon-only"
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
lg: "toggle-button-group--lg",
|
|
21
|
+
md: "toggle-button-group--md",
|
|
22
|
+
sm: "toggle-button-group--sm"
|
|
23
|
+
},
|
|
24
|
+
variant: {
|
|
25
|
+
danger: "toggle-button-group--danger",
|
|
26
|
+
"danger-soft": "toggle-button-group--danger-soft",
|
|
27
|
+
ghost: "toggle-button-group--ghost",
|
|
28
|
+
outline: "toggle-button-group--outline",
|
|
29
|
+
primary: "toggle-button-group--primary",
|
|
30
|
+
secondary: "toggle-button-group--secondary",
|
|
31
|
+
tertiary: "toggle-button-group--tertiary"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export { toggleButtonGroupVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Gets only the valid children of a component,
|
|
4
|
+
* and ignores any nullish or falsy child.
|
|
5
|
+
*
|
|
6
|
+
* @param children the children
|
|
7
|
+
*/
|
|
8
|
+
export declare function getValidChildren(children: React.ReactNode): React.ReactElement[];
|
|
9
|
+
export declare const pickChildren: <T = ReactNode>(children: T | undefined, targetChild: React.ElementType) => [T | undefined, T[] | undefined];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Children, isValidElement } from 'react';
|
|
2
|
+
|
|
3
|
+
const pickChildren = (children, targetChild) => {
|
|
4
|
+
const target = [];
|
|
5
|
+
const withoutTargetChildren = Children.map(children, item => {
|
|
6
|
+
if (! /*#__PURE__*/isValidElement(item)) return item;
|
|
7
|
+
if (item.type === targetChild) {
|
|
8
|
+
target.push(item);
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return item;
|
|
12
|
+
})?.filter(Boolean);
|
|
13
|
+
const targetChildren = target.length >= 0 ? target : undefined;
|
|
14
|
+
return [withoutTargetChildren, targetChildren];
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { pickChildren };
|
package/dist/utils/compose.js
CHANGED
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type Props = Record<string, any>;
|
|
2
|
+
/**
|
|
3
|
+
* Merges multiple props objects into a single props object.
|
|
4
|
+
*
|
|
5
|
+
* - Event handlers (e.g., onClick, onChange) are chained so that all handlers are called in order.
|
|
6
|
+
* - The `className` property is merged using `mergeClassNames`.
|
|
7
|
+
* - The `id` property is merged using `mergeIds`.
|
|
8
|
+
* - All other properties are overwritten by the last occurrence.
|
|
9
|
+
*
|
|
10
|
+
* @typeParam T - An array of props objects to be merged.
|
|
11
|
+
* @param {...T} propsList - The list of props objects to merge.
|
|
12
|
+
* @returns {Props} The merged props object.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const merged = mergeProps(
|
|
17
|
+
* { onClick: handleClick1, className: 'foo', id: 'a' },
|
|
18
|
+
* { onClick: handleClick2, className: 'bar', id: 'b' }
|
|
19
|
+
* );
|
|
20
|
+
* // merged.onClick will call both handleClick1 and handleClick2
|
|
21
|
+
* // merged.className will be 'foo bar'
|
|
22
|
+
* // merged.id will be merged by mergeIds
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const mergeProps: <T extends Props[]>(...propsList: T) => Props;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const isEventHandler = key => {
|
|
2
|
+
return /^on[A-Z]/.test(key);
|
|
3
|
+
};
|
|
4
|
+
const chainHandlers = (...handlers) => {
|
|
5
|
+
return function chainedHandler(...args) {
|
|
6
|
+
for (const handler of handlers) {
|
|
7
|
+
if (typeof handler === 'function') {
|
|
8
|
+
handler.apply(this, args);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
const mergeClassNames = (...classNames) => {
|
|
14
|
+
return classNames.filter(Boolean).join(' ');
|
|
15
|
+
};
|
|
16
|
+
const mergeIds = (...ids) => {
|
|
17
|
+
const seen = new Set();
|
|
18
|
+
for (const id of ids) {
|
|
19
|
+
if (id && !seen.has(id)) {
|
|
20
|
+
seen.add(id);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return seen.size > 0 ? Array.from(seen).join(' ') : undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Merges multiple props objects into a single props object.
|
|
28
|
+
*
|
|
29
|
+
* - Event handlers (e.g., onClick, onChange) are chained so that all handlers are called in order.
|
|
30
|
+
* - The `className` property is merged using `mergeClassNames`.
|
|
31
|
+
* - The `id` property is merged using `mergeIds`.
|
|
32
|
+
* - All other properties are overwritten by the last occurrence.
|
|
33
|
+
*
|
|
34
|
+
* @typeParam T - An array of props objects to be merged.
|
|
35
|
+
* @param {...T} propsList - The list of props objects to merge.
|
|
36
|
+
* @returns {Props} The merged props object.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const merged = mergeProps(
|
|
41
|
+
* { onClick: handleClick1, className: 'foo', id: 'a' },
|
|
42
|
+
* { onClick: handleClick2, className: 'bar', id: 'b' }
|
|
43
|
+
* );
|
|
44
|
+
* // merged.onClick will call both handleClick1 and handleClick2
|
|
45
|
+
* // merged.className will be 'foo bar'
|
|
46
|
+
* // merged.id will be merged by mergeIds
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
const mergeProps = (...propsList) => {
|
|
50
|
+
const result = {};
|
|
51
|
+
for (const props of propsList) {
|
|
52
|
+
for (const key in props) {
|
|
53
|
+
const value = props[key];
|
|
54
|
+
if (isEventHandler(key)) {
|
|
55
|
+
if (result[key]) {
|
|
56
|
+
result[key] = chainHandlers(result[key], value);
|
|
57
|
+
} else {
|
|
58
|
+
result[key] = value;
|
|
59
|
+
}
|
|
60
|
+
} else if (key === 'className') {
|
|
61
|
+
result['className'] = mergeClassNames(result['className'], value);
|
|
62
|
+
} else if (key === 'id') {
|
|
63
|
+
result['id'] = mergeIds(result['id'], value);
|
|
64
|
+
} else {
|
|
65
|
+
result[key] = value;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return result;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export { mergeProps };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Merges multiple refs into one. Works with either callback or object refs.
|
|
15
|
+
*/
|
|
16
|
+
function mergeRefs(...refs) {
|
|
17
|
+
if (refs.length === 1 && refs[0]) {
|
|
18
|
+
return refs[0];
|
|
19
|
+
}
|
|
20
|
+
return value => {
|
|
21
|
+
let hasCleanup = false;
|
|
22
|
+
const cleanups = refs.map(ref => {
|
|
23
|
+
const cleanup = setRef(ref, value);
|
|
24
|
+
hasCleanup ||= typeof cleanup == 'function';
|
|
25
|
+
return cleanup;
|
|
26
|
+
});
|
|
27
|
+
if (hasCleanup) {
|
|
28
|
+
return () => {
|
|
29
|
+
cleanups.forEach((cleanup, i) => {
|
|
30
|
+
if (typeof cleanup === 'function') {
|
|
31
|
+
cleanup();
|
|
32
|
+
} else {
|
|
33
|
+
setRef(refs[i], null);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function setRef(ref, value) {
|
|
41
|
+
if (typeof ref === 'function') {
|
|
42
|
+
return ref(value);
|
|
43
|
+
} else if (ref != null) {
|
|
44
|
+
ref.current = value;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { mergeRefs };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arobo/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -21,12 +21,18 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"
|
|
27
|
-
"react-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
24
|
+
"@iconify/react": "6.0.2",
|
|
25
|
+
"@internationalized/date": "3.10.1",
|
|
26
|
+
"@radix-ui/react-avatar": "1.1.11",
|
|
27
|
+
"@radix-ui/react-slot": "1.2.4",
|
|
28
|
+
"@react-types/shared": "3.32.1",
|
|
29
|
+
"embla-carousel-react": "8.6.0",
|
|
30
|
+
"input-otp": "1.4.2",
|
|
31
|
+
"lucide-react": "0.563.0",
|
|
32
|
+
"react-aria-components": "1.14.0",
|
|
33
|
+
"tailwind-merge": "3.4.0",
|
|
34
|
+
"tailwind-variants": "^3.2.2",
|
|
35
|
+
"vaul": "1.1.2"
|
|
30
36
|
},
|
|
31
37
|
"peerDependencies": {
|
|
32
38
|
"react": ">=19.0.0",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { ComponentPropsWithRef } from "react";
|
|
3
|
-
import { type FieldGroupVariants } from "@arobo/styles";
|
|
4
|
-
import { Group } from "react-aria-components";
|
|
5
|
-
interface FieldGroupRootProps extends FieldGroupVariants, ComponentPropsWithRef<typeof Group> {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const FieldGroupRoot: React.ForwardRefExoticComponent<Omit<FieldGroupRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export { FieldGroupRoot };
|
|
11
|
-
export type { FieldGroupRootProps };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { forwardRef } from 'react';
|
|
2
|
-
import { Group, composeRenderProps } from 'react-aria-components';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { fieldGroupVariants } from '../../styles/src/components/field-group/field-group.styles.js';
|
|
5
|
-
|
|
6
|
-
const FieldGroupRoot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7
|
-
return /*#__PURE__*/jsx(Group, {
|
|
8
|
-
...props,
|
|
9
|
-
ref: ref,
|
|
10
|
-
className: composeRenderProps(props.className, (className, renderProps) => fieldGroupVariants({
|
|
11
|
-
...renderProps,
|
|
12
|
-
className
|
|
13
|
-
}))
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
FieldGroupRoot.displayName = "HeroUI.FieldGroup";
|
|
17
|
-
|
|
18
|
-
export { FieldGroupRoot };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from "react";
|
|
2
|
-
import { FieldGroupRoot } from "./field-group";
|
|
3
|
-
export declare const FieldGroup: import("react").ForwardRefExoticComponent<Omit<import("./field-group").FieldGroupRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
4
|
-
Root: import("react").ForwardRefExoticComponent<Omit<import("./field-group").FieldGroupRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
};
|
|
6
|
-
export type FieldGroup = {
|
|
7
|
-
Props: ComponentProps<typeof FieldGroupRoot>;
|
|
8
|
-
RootProps: ComponentProps<typeof FieldGroupRoot>;
|
|
9
|
-
};
|
|
10
|
-
export { FieldGroupRoot } from "./field-group";
|
|
11
|
-
export type { FieldGroupRootProps, FieldGroupRootProps as FieldGroupProps, } from "./field-group";
|
|
12
|
-
export { fieldGroupVariants } from "@arobo/styles";
|
|
13
|
-
export type { FieldGroupVariants } from "@arobo/styles";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FieldGroupRoot } from './field-group.js';
|
|
2
|
-
export { fieldGroupVariants } from '../../styles/src/components/field-group/field-group.styles.js';
|
|
3
|
-
|
|
4
|
-
/* -------------------------------------------------------------------------------------------------
|
|
5
|
-
* Compound Component
|
|
6
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
7
|
-
const FieldGroup = Object.assign(FieldGroupRoot, {
|
|
8
|
-
Root: FieldGroupRoot
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export { FieldGroup, FieldGroupRoot };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants';
|
|
2
|
-
import { focusRing } from '../../utils/state.js';
|
|
3
|
-
|
|
4
|
-
const fieldBorderStyles = tv({
|
|
5
|
-
base: "transition",
|
|
6
|
-
variants: {
|
|
7
|
-
isFocusWithin: {
|
|
8
|
-
false: "border-neutral-300 hover:border-neutral-400 dark:border-neutral-600 dark:hover:border-neutral-500 forced-colors:border-[ButtonBorder]",
|
|
9
|
-
true: "border-neutral-600 dark:border-neutral-300 forced-colors:border-[Highlight]"
|
|
10
|
-
},
|
|
11
|
-
isInvalid: {
|
|
12
|
-
true: "border-red-600 dark:border-red-600 forced-colors:border-[Mark]"
|
|
13
|
-
},
|
|
14
|
-
isDisabled: {
|
|
15
|
-
true: "border-neutral-200 dark:border-neutral-700 forced-colors:border-[GrayText]"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const fieldGroupVariants = tv({
|
|
20
|
-
extend: focusRing,
|
|
21
|
-
base: "field-group",
|
|
22
|
-
variants: fieldBorderStyles.variants
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
export { fieldBorderStyles, fieldGroupVariants };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{styles → packages/styles}/src/components/checkbox-group/checkbox-group.styles.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{styles → packages/styles}/src/components/date-input-group/date-input-group.styles.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{styles → packages/styles}/src/components/error-message/error-message.styles.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{styles → packages/styles}/src/components/range-calendar/range-calendar.styles.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|