@erquhart/heroui-native 1.0.0-beta.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/lib/module/components/accordion/accordion.animation.js +145 -0
- package/lib/module/components/accordion/accordion.animation.js.map +1 -0
- package/lib/module/components/accordion/accordion.constants.js +53 -0
- package/lib/module/components/accordion/accordion.constants.js.map +1 -0
- package/lib/module/components/accordion/accordion.js +288 -0
- package/lib/module/components/accordion/accordion.js.map +1 -0
- package/lib/module/components/accordion/accordion.md +406 -0
- package/lib/module/components/accordion/accordion.styles.js +90 -0
- package/lib/module/components/accordion/accordion.styles.js.map +1 -0
- package/lib/module/components/accordion/accordion.types.js +4 -0
- package/lib/module/components/accordion/accordion.types.js.map +1 -0
- package/lib/module/components/accordion/chevron-down-icon.js +24 -0
- package/lib/module/components/accordion/chevron-down-icon.js.map +1 -0
- package/lib/module/components/accordion/index.js +5 -0
- package/lib/module/components/accordion/index.js.map +1 -0
- package/lib/module/components/avatar/avatar.animation.js +111 -0
- package/lib/module/components/avatar/avatar.animation.js.map +1 -0
- package/lib/module/components/avatar/avatar.constants.js +20 -0
- package/lib/module/components/avatar/avatar.constants.js.map +1 -0
- package/lib/module/components/avatar/avatar.context.js +11 -0
- package/lib/module/components/avatar/avatar.context.js.map +1 -0
- package/lib/module/components/avatar/avatar.js +222 -0
- package/lib/module/components/avatar/avatar.js.map +1 -0
- package/lib/module/components/avatar/avatar.md +376 -0
- package/lib/module/components/avatar/avatar.styles.js +150 -0
- package/lib/module/components/avatar/avatar.styles.js.map +1 -0
- package/lib/module/components/avatar/avatar.types.js +4 -0
- package/lib/module/components/avatar/avatar.types.js.map +1 -0
- package/lib/module/components/avatar/index.js +4 -0
- package/lib/module/components/avatar/index.js.map +1 -0
- package/lib/module/components/avatar/person-icon.js +23 -0
- package/lib/module/components/avatar/person-icon.js.map +1 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.animation.js +37 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.animation.js.map +1 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.constants.js +16 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.constants.js.map +1 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.js +329 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.js.map +1 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.md +341 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.styles.js +61 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.styles.js.map +1 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.types.js +4 -0
- package/lib/module/components/bottom-sheet/bottom-sheet.types.js.map +1 -0
- package/lib/module/components/bottom-sheet/index.js +4 -0
- package/lib/module/components/bottom-sheet/index.js.map +1 -0
- package/lib/module/components/button/button.constants.js +10 -0
- package/lib/module/components/button/button.constants.js.map +1 -0
- package/lib/module/components/button/button.js +201 -0
- package/lib/module/components/button/button.js.map +1 -0
- package/lib/module/components/button/button.md +316 -0
- package/lib/module/components/button/button.styles.js +88 -0
- package/lib/module/components/button/button.styles.js.map +1 -0
- package/lib/module/components/button/button.types.js +4 -0
- package/lib/module/components/button/button.types.js.map +1 -0
- package/lib/module/components/button/index.js +4 -0
- package/lib/module/components/button/index.js.map +1 -0
- package/lib/module/components/card/card.constants.js +14 -0
- package/lib/module/components/card/card.constants.js.map +1 -0
- package/lib/module/components/card/card.js +169 -0
- package/lib/module/components/card/card.js.map +1 -0
- package/lib/module/components/card/card.md +187 -0
- package/lib/module/components/card/card.styles.js +32 -0
- package/lib/module/components/card/card.styles.js.map +1 -0
- package/lib/module/components/card/card.types.js +4 -0
- package/lib/module/components/card/card.types.js.map +1 -0
- package/lib/module/components/card/index.js +4 -0
- package/lib/module/components/card/index.js.map +1 -0
- package/lib/module/components/checkbox/checkbox.animation.js +164 -0
- package/lib/module/components/checkbox/checkbox.animation.js.map +1 -0
- package/lib/module/components/checkbox/checkbox.constants.js +8 -0
- package/lib/module/components/checkbox/checkbox.constants.js.map +1 -0
- package/lib/module/components/checkbox/checkbox.js +188 -0
- package/lib/module/components/checkbox/checkbox.js.map +1 -0
- package/lib/module/components/checkbox/checkbox.md +305 -0
- package/lib/module/components/checkbox/checkbox.styles.js +104 -0
- package/lib/module/components/checkbox/checkbox.styles.js.map +1 -0
- package/lib/module/components/checkbox/checkbox.types.js +4 -0
- package/lib/module/components/checkbox/checkbox.types.js.map +1 -0
- package/lib/module/components/checkbox/index.js +4 -0
- package/lib/module/components/checkbox/index.js.map +1 -0
- package/lib/module/components/chip/chip.animation.js +17 -0
- package/lib/module/components/chip/chip.animation.js.map +1 -0
- package/lib/module/components/chip/chip.constants.js +10 -0
- package/lib/module/components/chip/chip.constants.js.map +1 -0
- package/lib/module/components/chip/chip.js +118 -0
- package/lib/module/components/chip/chip.js.map +1 -0
- package/lib/module/components/chip/chip.md +190 -0
- package/lib/module/components/chip/chip.styles.js +206 -0
- package/lib/module/components/chip/chip.styles.js.map +1 -0
- package/lib/module/components/chip/chip.types.js +4 -0
- package/lib/module/components/chip/chip.types.js.map +1 -0
- package/lib/module/components/chip/index.js +4 -0
- package/lib/module/components/chip/index.js.map +1 -0
- package/lib/module/components/dialog/dialog.animation.js +8 -0
- package/lib/module/components/dialog/dialog.animation.js.map +1 -0
- package/lib/module/components/dialog/dialog.constants.js +16 -0
- package/lib/module/components/dialog/dialog.constants.js.map +1 -0
- package/lib/module/components/dialog/dialog.js +340 -0
- package/lib/module/components/dialog/dialog.js.map +1 -0
- package/lib/module/components/dialog/dialog.md +363 -0
- package/lib/module/components/dialog/dialog.styles.js +80 -0
- package/lib/module/components/dialog/dialog.styles.js.map +1 -0
- package/lib/module/components/dialog/dialog.types.js +4 -0
- package/lib/module/components/dialog/dialog.types.js.map +1 -0
- package/lib/module/components/dialog/index.js +4 -0
- package/lib/module/components/dialog/index.js.map +1 -0
- package/lib/module/components/divider/divider.constants.js +9 -0
- package/lib/module/components/divider/divider.constants.js.map +1 -0
- package/lib/module/components/divider/divider.js +58 -0
- package/lib/module/components/divider/divider.js.map +1 -0
- package/lib/module/components/divider/divider.md +98 -0
- package/lib/module/components/divider/divider.styles.js +47 -0
- package/lib/module/components/divider/divider.styles.js.map +1 -0
- package/lib/module/components/divider/divider.types.js +4 -0
- package/lib/module/components/divider/divider.types.js.map +1 -0
- package/lib/module/components/divider/index.js +4 -0
- package/lib/module/components/divider/index.js.map +1 -0
- package/lib/module/components/error-view/error-view.animation.js +44 -0
- package/lib/module/components/error-view/error-view.animation.js.map +1 -0
- package/lib/module/components/error-view/error-view.constants.js +31 -0
- package/lib/module/components/error-view/error-view.constants.js.map +1 -0
- package/lib/module/components/error-view/error-view.js +66 -0
- package/lib/module/components/error-view/error-view.js.map +1 -0
- package/lib/module/components/error-view/error-view.md +177 -0
- package/lib/module/components/error-view/error-view.styles.js +15 -0
- package/lib/module/components/error-view/error-view.styles.js.map +1 -0
- package/lib/module/components/error-view/error-view.types.js +4 -0
- package/lib/module/components/error-view/error-view.types.js.map +1 -0
- package/lib/module/components/error-view/index.js +4 -0
- package/lib/module/components/error-view/index.js.map +1 -0
- package/lib/module/components/form-field/form-field.animation.js +17 -0
- package/lib/module/components/form-field/form-field.animation.js.map +1 -0
- package/lib/module/components/form-field/form-field.constants.js +13 -0
- package/lib/module/components/form-field/form-field.constants.js.map +1 -0
- package/lib/module/components/form-field/form-field.context.js +13 -0
- package/lib/module/components/form-field/form-field.context.js.map +1 -0
- package/lib/module/components/form-field/form-field.js +257 -0
- package/lib/module/components/form-field/form-field.js.map +1 -0
- package/lib/module/components/form-field/form-field.md +243 -0
- package/lib/module/components/form-field/form-field.styles.js +36 -0
- package/lib/module/components/form-field/form-field.styles.js.map +1 -0
- package/lib/module/components/form-field/form-field.types.js +4 -0
- package/lib/module/components/form-field/form-field.types.js.map +1 -0
- package/lib/module/components/form-field/index.js +4 -0
- package/lib/module/components/form-field/index.js.map +1 -0
- package/lib/module/components/popover/arrow-svg.js +161 -0
- package/lib/module/components/popover/arrow-svg.js.map +1 -0
- package/lib/module/components/popover/index.js +4 -0
- package/lib/module/components/popover/index.js.map +1 -0
- package/lib/module/components/popover/popover.animation.js +8 -0
- package/lib/module/components/popover/popover.animation.js.map +1 -0
- package/lib/module/components/popover/popover.constants.js +37 -0
- package/lib/module/components/popover/popover.constants.js.map +1 -0
- package/lib/module/components/popover/popover.js +502 -0
- package/lib/module/components/popover/popover.js.map +1 -0
- package/lib/module/components/popover/popover.md +521 -0
- package/lib/module/components/popover/popover.styles.js +87 -0
- package/lib/module/components/popover/popover.styles.js.map +1 -0
- package/lib/module/components/popover/popover.types.js +4 -0
- package/lib/module/components/popover/popover.types.js.map +1 -0
- package/lib/module/components/pressable-feedback/index.js +5 -0
- package/lib/module/components/pressable-feedback/index.js.map +1 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.animation.js +291 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.animation.js.map +1 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.constants.js +13 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.constants.js.map +1 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.js +220 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.js.map +1 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.md +246 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.styles.js +104 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.styles.js.map +1 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.types.js +4 -0
- package/lib/module/components/pressable-feedback/pressable-feedback.types.js.map +1 -0
- package/lib/module/components/radio-group/index.js +4 -0
- package/lib/module/components/radio-group/index.js.map +1 -0
- package/lib/module/components/radio-group/radio-group.animation.js +80 -0
- package/lib/module/components/radio-group/radio-group.animation.js.map +1 -0
- package/lib/module/components/radio-group/radio-group.constants.js +16 -0
- package/lib/module/components/radio-group/radio-group.constants.js.map +1 -0
- package/lib/module/components/radio-group/radio-group.js +266 -0
- package/lib/module/components/radio-group/radio-group.js.map +1 -0
- package/lib/module/components/radio-group/radio-group.md +303 -0
- package/lib/module/components/radio-group/radio-group.styles.js +95 -0
- package/lib/module/components/radio-group/radio-group.styles.js.map +1 -0
- package/lib/module/components/radio-group/radio-group.types.js +4 -0
- package/lib/module/components/radio-group/radio-group.types.js.map +1 -0
- package/lib/module/components/scroll-shadow/index.js +4 -0
- package/lib/module/components/scroll-shadow/index.js.map +1 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.animation.js +95 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.animation.js.map +1 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.constants.js +24 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.constants.js.map +1 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.js +211 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.js.map +1 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.md +191 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.styles.js +50 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.styles.js.map +1 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.types.js +4 -0
- package/lib/module/components/scroll-shadow/scroll-shadow.types.js.map +1 -0
- package/lib/module/components/select/index.js +4 -0
- package/lib/module/components/select/index.js.map +1 -0
- package/lib/module/components/select/select.animation.js +8 -0
- package/lib/module/components/select/select.animation.js.map +1 -0
- package/lib/module/components/select/select.constants.js +40 -0
- package/lib/module/components/select/select.constants.js.map +1 -0
- package/lib/module/components/select/select.js +608 -0
- package/lib/module/components/select/select.js.map +1 -0
- package/lib/module/components/select/select.md +735 -0
- package/lib/module/components/select/select.styles.js +143 -0
- package/lib/module/components/select/select.styles.js.map +1 -0
- package/lib/module/components/select/select.types.js +4 -0
- package/lib/module/components/select/select.types.js.map +1 -0
- package/lib/module/components/skeleton/index.js +4 -0
- package/lib/module/components/skeleton/index.js.map +1 -0
- package/lib/module/components/skeleton/linear-gradient.js +44 -0
- package/lib/module/components/skeleton/linear-gradient.js.map +1 -0
- package/lib/module/components/skeleton/skeleton.animation.js +256 -0
- package/lib/module/components/skeleton/skeleton.animation.js.map +1 -0
- package/lib/module/components/skeleton/skeleton.constants.js +42 -0
- package/lib/module/components/skeleton/skeleton.constants.js.map +1 -0
- package/lib/module/components/skeleton/skeleton.js +157 -0
- package/lib/module/components/skeleton/skeleton.js.map +1 -0
- package/lib/module/components/skeleton/skeleton.md +200 -0
- package/lib/module/components/skeleton/skeleton.styles.js +59 -0
- package/lib/module/components/skeleton/skeleton.styles.js.map +1 -0
- package/lib/module/components/skeleton/skeleton.types.js +4 -0
- package/lib/module/components/skeleton/skeleton.types.js.map +1 -0
- package/lib/module/components/skeleton-group/index.js +4 -0
- package/lib/module/components/skeleton-group/index.js.map +1 -0
- package/lib/module/components/skeleton-group/skeleton-group.constants.js +10 -0
- package/lib/module/components/skeleton-group/skeleton-group.constants.js.map +1 -0
- package/lib/module/components/skeleton-group/skeleton-group.js +82 -0
- package/lib/module/components/skeleton-group/skeleton-group.js.map +1 -0
- package/lib/module/components/skeleton-group/skeleton-group.md +247 -0
- package/lib/module/components/skeleton-group/skeleton-group.styles.js +11 -0
- package/lib/module/components/skeleton-group/skeleton-group.styles.js.map +1 -0
- package/lib/module/components/skeleton-group/skeleton-group.types.js +4 -0
- package/lib/module/components/skeleton-group/skeleton-group.types.js.map +1 -0
- package/lib/module/components/spinner/index.js +4 -0
- package/lib/module/components/spinner/index.js.map +1 -0
- package/lib/module/components/spinner/spinner-icon.js +64 -0
- package/lib/module/components/spinner/spinner-icon.js.map +1 -0
- package/lib/module/components/spinner/spinner.animation.js +119 -0
- package/lib/module/components/spinner/spinner.animation.js.map +1 -0
- package/lib/module/components/spinner/spinner.constants.js +37 -0
- package/lib/module/components/spinner/spinner.constants.js.map +1 -0
- package/lib/module/components/spinner/spinner.js +143 -0
- package/lib/module/components/spinner/spinner.js.map +1 -0
- package/lib/module/components/spinner/spinner.md +199 -0
- package/lib/module/components/spinner/spinner.styles.js +46 -0
- package/lib/module/components/spinner/spinner.styles.js.map +1 -0
- package/lib/module/components/spinner/spinner.types.js +4 -0
- package/lib/module/components/spinner/spinner.types.js.map +1 -0
- package/lib/module/components/surface/index.js +4 -0
- package/lib/module/components/surface/index.js.map +1 -0
- package/lib/module/components/surface/surface.animation.js +17 -0
- package/lib/module/components/surface/surface.animation.js.map +1 -0
- package/lib/module/components/surface/surface.constants.js +9 -0
- package/lib/module/components/surface/surface.constants.js.map +1 -0
- package/lib/module/components/surface/surface.js +65 -0
- package/lib/module/components/surface/surface.js.map +1 -0
- package/lib/module/components/surface/surface.md +141 -0
- package/lib/module/components/surface/surface.styles.js +26 -0
- package/lib/module/components/surface/surface.styles.js.map +1 -0
- package/lib/module/components/surface/surface.types.js +4 -0
- package/lib/module/components/surface/surface.types.js.map +1 -0
- package/lib/module/components/switch/index.js +5 -0
- package/lib/module/components/switch/index.js.map +1 -0
- package/lib/module/components/switch/switch.animation.js +183 -0
- package/lib/module/components/switch/switch.animation.js.map +1 -0
- package/lib/module/components/switch/switch.constants.js +23 -0
- package/lib/module/components/switch/switch.constants.js.map +1 -0
- package/lib/module/components/switch/switch.js +223 -0
- package/lib/module/components/switch/switch.js.map +1 -0
- package/lib/module/components/switch/switch.md +332 -0
- package/lib/module/components/switch/switch.styles.js +83 -0
- package/lib/module/components/switch/switch.styles.js.map +1 -0
- package/lib/module/components/switch/switch.types.js +4 -0
- package/lib/module/components/switch/switch.types.js.map +1 -0
- package/lib/module/components/tabs/index.js +4 -0
- package/lib/module/components/tabs/index.js.map +1 -0
- package/lib/module/components/tabs/tabs.animation.js +139 -0
- package/lib/module/components/tabs/tabs.animation.js.map +1 -0
- package/lib/module/components/tabs/tabs.constants.js +16 -0
- package/lib/module/components/tabs/tabs.constants.js.map +1 -0
- package/lib/module/components/tabs/tabs.context.js +24 -0
- package/lib/module/components/tabs/tabs.context.js.map +1 -0
- package/lib/module/components/tabs/tabs.js +329 -0
- package/lib/module/components/tabs/tabs.js.map +1 -0
- package/lib/module/components/tabs/tabs.md +492 -0
- package/lib/module/components/tabs/tabs.styles.js +120 -0
- package/lib/module/components/tabs/tabs.styles.js.map +1 -0
- package/lib/module/components/tabs/tabs.types.js +4 -0
- package/lib/module/components/tabs/tabs.types.js.map +1 -0
- package/lib/module/components/text-field/index.js +4 -0
- package/lib/module/components/text-field/index.js.map +1 -0
- package/lib/module/components/text-field/text-field.animation.js +228 -0
- package/lib/module/components/text-field/text-field.animation.js.map +1 -0
- package/lib/module/components/text-field/text-field.constants.js +37 -0
- package/lib/module/components/text-field/text-field.constants.js.map +1 -0
- package/lib/module/components/text-field/text-field.js +324 -0
- package/lib/module/components/text-field/text-field.js.map +1 -0
- package/lib/module/components/text-field/text-field.md +377 -0
- package/lib/module/components/text-field/text-field.styles.js +96 -0
- package/lib/module/components/text-field/text-field.styles.js.map +1 -0
- package/lib/module/components/text-field/text-field.types.js +4 -0
- package/lib/module/components/text-field/text-field.types.js.map +1 -0
- package/lib/module/components/toast/index.js +4 -0
- package/lib/module/components/toast/index.js.map +1 -0
- package/lib/module/components/toast/toast.animation.js +315 -0
- package/lib/module/components/toast/toast.animation.js.map +1 -0
- package/lib/module/components/toast/toast.constants.js +13 -0
- package/lib/module/components/toast/toast.constants.js.map +1 -0
- package/lib/module/components/toast/toast.js +382 -0
- package/lib/module/components/toast/toast.js.map +1 -0
- package/lib/module/components/toast/toast.md +417 -0
- package/lib/module/components/toast/toast.styles.js +88 -0
- package/lib/module/components/toast/toast.styles.js.map +1 -0
- package/lib/module/components/toast/toast.types.js +4 -0
- package/lib/module/components/toast/toast.types.js.map +1 -0
- package/lib/module/helpers/components/animated-check-icon.js +53 -0
- package/lib/module/helpers/components/animated-check-icon.js.map +1 -0
- package/lib/module/helpers/components/bottom-sheet-content-container.js +49 -0
- package/lib/module/helpers/components/bottom-sheet-content-container.js.map +1 -0
- package/lib/module/helpers/components/check-icon.js +25 -0
- package/lib/module/helpers/components/check-icon.js.map +1 -0
- package/lib/module/helpers/components/close-icon.js +25 -0
- package/lib/module/helpers/components/close-icon.js.map +1 -0
- package/lib/module/helpers/components/full-window-overlay.js +7 -0
- package/lib/module/helpers/components/full-window-overlay.js.map +1 -0
- package/lib/module/helpers/components/hero-text.js +66 -0
- package/lib/module/helpers/components/hero-text.js.map +1 -0
- package/lib/module/helpers/components/index.js +8 -0
- package/lib/module/helpers/components/index.js.map +1 -0
- package/lib/module/helpers/contexts/animation-settings-context.js +14 -0
- package/lib/module/helpers/contexts/animation-settings-context.js.map +1 -0
- package/lib/module/helpers/contexts/index.js +4 -0
- package/lib/module/helpers/contexts/index.js.map +1 -0
- package/lib/module/helpers/hooks/index.js +14 -0
- package/lib/module/helpers/hooks/index.js.map +1 -0
- package/lib/module/helpers/hooks/use-augmented-ref.js +23 -0
- package/lib/module/helpers/hooks/use-augmented-ref.js.map +1 -0
- package/lib/module/helpers/hooks/use-combined-animation-disabled-state.js +48 -0
- package/lib/module/helpers/hooks/use-combined-animation-disabled-state.js.map +1 -0
- package/lib/module/helpers/hooks/use-controllable-state.js +83 -0
- package/lib/module/helpers/hooks/use-controllable-state.js.map +1 -0
- package/lib/module/helpers/hooks/use-keyboard-status.js +21 -0
- package/lib/module/helpers/hooks/use-keyboard-status.js.map +1 -0
- package/lib/module/helpers/hooks/use-popup-bottom-sheet-content-animation.js +56 -0
- package/lib/module/helpers/hooks/use-popup-bottom-sheet-content-animation.js.map +1 -0
- package/lib/module/helpers/hooks/use-popup-dialog-content-animation.js +157 -0
- package/lib/module/helpers/hooks/use-popup-dialog-content-animation.js.map +1 -0
- package/lib/module/helpers/hooks/use-popup-overlay-animation.js +58 -0
- package/lib/module/helpers/hooks/use-popup-overlay-animation.js.map +1 -0
- package/lib/module/helpers/hooks/use-popup-popover-content-animation.js +103 -0
- package/lib/module/helpers/hooks/use-popup-popover-content-animation.js.map +1 -0
- package/lib/module/helpers/hooks/use-popup-root-animation.js +200 -0
- package/lib/module/helpers/hooks/use-popup-root-animation.js.map +1 -0
- package/lib/module/helpers/hooks/use-relative-position.js +220 -0
- package/lib/module/helpers/hooks/use-relative-position.js.map +1 -0
- package/lib/module/helpers/hooks/use-resolved-style-property.js +89 -0
- package/lib/module/helpers/hooks/use-resolved-style-property.js.map +1 -0
- package/lib/module/helpers/theme/color-kit/index.js +2338 -0
- package/lib/module/helpers/theme/color-kit/index.js.map +1 -0
- package/lib/module/helpers/theme/color-kit/types.js +2 -0
- package/lib/module/helpers/theme/color-kit/types.js.map +1 -0
- package/lib/module/helpers/theme/hooks/use-is-on-surface.js +8 -0
- package/lib/module/helpers/theme/hooks/use-is-on-surface.js.map +1 -0
- package/lib/module/helpers/theme/hooks/use-theme-color.js +43 -0
- package/lib/module/helpers/theme/hooks/use-theme-color.js.map +1 -0
- package/lib/module/helpers/theme/index.js +7 -0
- package/lib/module/helpers/theme/index.js.map +1 -0
- package/lib/module/helpers/theme/types.js +22 -0
- package/lib/module/helpers/theme/types.js.map +1 -0
- package/lib/module/helpers/theme/utils/cn.js +16 -0
- package/lib/module/helpers/theme/utils/cn.js.map +1 -0
- package/lib/module/helpers/theme/utils/combine-styles.js +16 -0
- package/lib/module/helpers/theme/utils/combine-styles.js.map +1 -0
- package/lib/module/helpers/types/animation.js +4 -0
- package/lib/module/helpers/types/animation.js.map +1 -0
- package/lib/module/helpers/types/bottom-sheet.js +4 -0
- package/lib/module/helpers/types/bottom-sheet.js.map +1 -0
- package/lib/module/helpers/types/index.js +7 -0
- package/lib/module/helpers/types/index.js.map +1 -0
- package/lib/module/helpers/types/misc.js +2 -0
- package/lib/module/helpers/types/misc.js.map +1 -0
- package/lib/module/helpers/types/primitives.js +4 -0
- package/lib/module/helpers/types/primitives.js.map +1 -0
- package/lib/module/helpers/utils/animation.js +212 -0
- package/lib/module/helpers/utils/animation.js.map +1 -0
- package/lib/module/helpers/utils/children-to-string.js +69 -0
- package/lib/module/helpers/utils/children-to-string.js.map +1 -0
- package/lib/module/helpers/utils/create-context.js +29 -0
- package/lib/module/helpers/utils/create-context.js.map +1 -0
- package/lib/module/helpers/utils/ease-gradient/create-interpolation.js +29 -0
- package/lib/module/helpers/utils/ease-gradient/create-interpolation.js.map +1 -0
- package/lib/module/helpers/utils/ease-gradient/index.js +60 -0
- package/lib/module/helpers/utils/ease-gradient/index.js.map +1 -0
- package/lib/module/helpers/utils/get-element-by-display-name.js +8 -0
- package/lib/module/helpers/utils/get-element-by-display-name.js.map +1 -0
- package/lib/module/helpers/utils/get-element-with-default.js +11 -0
- package/lib/module/helpers/utils/get-element-with-default.js.map +1 -0
- package/lib/module/helpers/utils/has-prop.js +15 -0
- package/lib/module/helpers/utils/has-prop.js.map +1 -0
- package/lib/module/helpers/utils/index.js +10 -0
- package/lib/module/helpers/utils/index.js.map +1 -0
- package/lib/module/index.js +36 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/primitives/README.md +27 -0
- package/lib/module/primitives/accordion/accordion.js +208 -0
- package/lib/module/primitives/accordion/accordion.js.map +1 -0
- package/lib/module/primitives/accordion/accordion.types.js +4 -0
- package/lib/module/primitives/accordion/accordion.types.js.map +1 -0
- package/lib/module/primitives/accordion/accordion.utils.js +9 -0
- package/lib/module/primitives/accordion/accordion.utils.js.map +1 -0
- package/lib/module/primitives/accordion/index.js +5 -0
- package/lib/module/primitives/accordion/index.js.map +1 -0
- package/lib/module/primitives/activity-indicator/activity-indicator.js +43 -0
- package/lib/module/primitives/activity-indicator/activity-indicator.js.map +1 -0
- package/lib/module/primitives/activity-indicator/activity-indicator.types.js +4 -0
- package/lib/module/primitives/activity-indicator/activity-indicator.types.js.map +1 -0
- package/lib/module/primitives/activity-indicator/index.js +5 -0
- package/lib/module/primitives/activity-indicator/index.js.map +1 -0
- package/lib/module/primitives/avatar/avatar.js +133 -0
- package/lib/module/primitives/avatar/avatar.js.map +1 -0
- package/lib/module/primitives/avatar/avatar.types.js +4 -0
- package/lib/module/primitives/avatar/avatar.types.js.map +1 -0
- package/lib/module/primitives/avatar/avatar.utils.js +98 -0
- package/lib/module/primitives/avatar/avatar.utils.js.map +1 -0
- package/lib/module/primitives/avatar/index.js +5 -0
- package/lib/module/primitives/avatar/index.js.map +1 -0
- package/lib/module/primitives/bottom-sheet/bottom-sheet.js +214 -0
- package/lib/module/primitives/bottom-sheet/bottom-sheet.js.map +1 -0
- package/lib/module/primitives/bottom-sheet/bottom-sheet.types.js +4 -0
- package/lib/module/primitives/bottom-sheet/bottom-sheet.types.js.map +1 -0
- package/lib/module/primitives/bottom-sheet/index.js +5 -0
- package/lib/module/primitives/bottom-sheet/index.js.map +1 -0
- package/lib/module/primitives/checkbox/checkbox.js +99 -0
- package/lib/module/primitives/checkbox/checkbox.js.map +1 -0
- package/lib/module/primitives/checkbox/checkbox.types.js +4 -0
- package/lib/module/primitives/checkbox/checkbox.types.js.map +1 -0
- package/lib/module/primitives/checkbox/index.js +5 -0
- package/lib/module/primitives/checkbox/index.js.map +1 -0
- package/lib/module/primitives/dialog/dialog.js +234 -0
- package/lib/module/primitives/dialog/dialog.js.map +1 -0
- package/lib/module/primitives/dialog/dialog.types.js +4 -0
- package/lib/module/primitives/dialog/dialog.types.js.map +1 -0
- package/lib/module/primitives/dialog/index.js +5 -0
- package/lib/module/primitives/dialog/index.js.map +1 -0
- package/lib/module/primitives/label/index.js +5 -0
- package/lib/module/primitives/label/index.js.map +1 -0
- package/lib/module/primitives/label/label.js +33 -0
- package/lib/module/primitives/label/label.js.map +1 -0
- package/lib/module/primitives/label/label.types.js +4 -0
- package/lib/module/primitives/label/label.types.js.map +1 -0
- package/lib/module/primitives/popover/index.js +5 -0
- package/lib/module/primitives/popover/index.js.map +1 -0
- package/lib/module/primitives/popover/popover.js +340 -0
- package/lib/module/primitives/popover/popover.js.map +1 -0
- package/lib/module/primitives/popover/popover.types.js +4 -0
- package/lib/module/primitives/popover/popover.types.js.map +1 -0
- package/lib/module/primitives/portal/index.js +4 -0
- package/lib/module/primitives/portal/index.js.map +1 -0
- package/lib/module/primitives/portal/portal.js +105 -0
- package/lib/module/primitives/portal/portal.js.map +1 -0
- package/lib/module/primitives/radio-group/index.js +5 -0
- package/lib/module/primitives/radio-group/index.js.map +1 -0
- package/lib/module/primitives/radio-group/radio-group.js +92 -0
- package/lib/module/primitives/radio-group/radio-group.js.map +1 -0
- package/lib/module/primitives/radio-group/radio-group.types.js +4 -0
- package/lib/module/primitives/radio-group/radio-group.types.js.map +1 -0
- package/lib/module/primitives/select/index.js +5 -0
- package/lib/module/primitives/select/index.js.map +1 -0
- package/lib/module/primitives/select/select.js +555 -0
- package/lib/module/primitives/select/select.js.map +1 -0
- package/lib/module/primitives/select/select.types.js +4 -0
- package/lib/module/primitives/select/select.types.js.map +1 -0
- package/lib/module/primitives/slot/index.js +4 -0
- package/lib/module/primitives/slot/index.js.map +1 -0
- package/lib/module/primitives/slot/slot.js +78 -0
- package/lib/module/primitives/slot/slot.js.map +1 -0
- package/lib/module/primitives/slot/types.js +4 -0
- package/lib/module/primitives/slot/types.js.map +1 -0
- package/lib/module/primitives/slot/utils.js +79 -0
- package/lib/module/primitives/slot/utils.js.map +1 -0
- package/lib/module/primitives/switch/index.js +5 -0
- package/lib/module/primitives/switch/index.js.map +1 -0
- package/lib/module/primitives/switch/switch.js +57 -0
- package/lib/module/primitives/switch/switch.js.map +1 -0
- package/lib/module/primitives/switch/switch.types.js +4 -0
- package/lib/module/primitives/switch/switch.types.js.map +1 -0
- package/lib/module/primitives/tabs/index.js +5 -0
- package/lib/module/primitives/tabs/index.js.map +1 -0
- package/lib/module/primitives/tabs/tabs.js +169 -0
- package/lib/module/primitives/tabs/tabs.js.map +1 -0
- package/lib/module/primitives/tabs/tabs.types.js +4 -0
- package/lib/module/primitives/tabs/tabs.types.js.map +1 -0
- package/lib/module/primitives/toast/index.js +5 -0
- package/lib/module/primitives/toast/index.js.map +1 -0
- package/lib/module/primitives/toast/toast.js +117 -0
- package/lib/module/primitives/toast/toast.js.map +1 -0
- package/lib/module/primitives/toast/toast.types.js +4 -0
- package/lib/module/primitives/toast/toast.types.js.map +1 -0
- package/lib/module/providers/animation-settings/index.js +4 -0
- package/lib/module/providers/animation-settings/index.js.map +1 -0
- package/lib/module/providers/animation-settings/provider.js +43 -0
- package/lib/module/providers/animation-settings/provider.js.map +1 -0
- package/lib/module/providers/animation-settings/types.js +4 -0
- package/lib/module/providers/animation-settings/types.js.map +1 -0
- package/lib/module/providers/hero-ui-native/index.js +5 -0
- package/lib/module/providers/hero-ui-native/index.js.map +1 -0
- package/lib/module/providers/hero-ui-native/provider.js +92 -0
- package/lib/module/providers/hero-ui-native/provider.js.map +1 -0
- package/lib/module/providers/hero-ui-native/provider.md +332 -0
- package/lib/module/providers/hero-ui-native/types.js +4 -0
- package/lib/module/providers/hero-ui-native/types.js.map +1 -0
- package/lib/module/providers/text-component/index.js +5 -0
- package/lib/module/providers/text-component/index.js.map +1 -0
- package/lib/module/providers/text-component/provider.js +8 -0
- package/lib/module/providers/text-component/provider.js.map +1 -0
- package/lib/module/providers/text-component/types.js +4 -0
- package/lib/module/providers/text-component/types.js.map +1 -0
- package/lib/module/providers/toast/index.js +5 -0
- package/lib/module/providers/toast/index.js.map +1 -0
- package/lib/module/providers/toast/insets-container.js +46 -0
- package/lib/module/providers/toast/insets-container.js.map +1 -0
- package/lib/module/providers/toast/provider.js +366 -0
- package/lib/module/providers/toast/provider.js.map +1 -0
- package/lib/module/providers/toast/reducer.js +28 -0
- package/lib/module/providers/toast/reducer.js.map +1 -0
- package/lib/module/providers/toast/toast-config.context.js +25 -0
- package/lib/module/providers/toast/toast-config.context.js.map +1 -0
- package/lib/module/providers/toast/toast-item-renderer.js +35 -0
- package/lib/module/providers/toast/toast-item-renderer.js.map +1 -0
- package/lib/module/providers/toast/types.js +4 -0
- package/lib/module/providers/toast/types.js.map +1 -0
- package/lib/module/styles/index.css +3 -0
- package/lib/module/styles/theme.css +205 -0
- package/lib/module/styles/theme.md +423 -0
- package/lib/module/styles/utilities.css +8 -0
- package/lib/module/styles/variables.css +113 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/accordion/accordion.animation.d.ts +38 -0
- package/lib/typescript/src/components/accordion/accordion.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/accordion/accordion.constants.d.ts +44 -0
- package/lib/typescript/src/components/accordion/accordion.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/accordion/accordion.d.ts +53 -0
- package/lib/typescript/src/components/accordion/accordion.d.ts.map +1 -0
- package/lib/typescript/src/components/accordion/accordion.styles.d.ts +130 -0
- package/lib/typescript/src/components/accordion/accordion.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/accordion/accordion.types.d.ts +228 -0
- package/lib/typescript/src/components/accordion/accordion.types.d.ts.map +1 -0
- package/lib/typescript/src/components/accordion/chevron-down-icon.d.ts +8 -0
- package/lib/typescript/src/components/accordion/chevron-down-icon.d.ts.map +1 -0
- package/lib/typescript/src/components/accordion/index.d.ts +4 -0
- package/lib/typescript/src/components/accordion/index.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/avatar.animation.d.ts +33 -0
- package/lib/typescript/src/components/avatar/avatar.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/avatar.constants.d.ts +14 -0
- package/lib/typescript/src/components/avatar/avatar.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/avatar.context.d.ts +7 -0
- package/lib/typescript/src/components/avatar/avatar.context.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/avatar.d.ts +33 -0
- package/lib/typescript/src/components/avatar/avatar.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/avatar.styles.d.ts +269 -0
- package/lib/typescript/src/components/avatar/avatar.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/avatar.types.d.ts +188 -0
- package/lib/typescript/src/components/avatar/avatar.types.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/index.d.ts +3 -0
- package/lib/typescript/src/components/avatar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/person-icon.d.ts +7 -0
- package/lib/typescript/src/components/avatar/person-icon.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.animation.d.ts +15 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.constants.d.ts +14 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.d.ts +54 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.styles.d.ts +16 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.types.d.ts +177 -0
- package/lib/typescript/src/components/bottom-sheet/bottom-sheet.types.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/index.d.ts +3 -0
- package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/button/button.constants.d.ts +8 -0
- package/lib/typescript/src/components/button/button.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/button/button.d.ts +31 -0
- package/lib/typescript/src/components/button/button.d.ts.map +1 -0
- package/lib/typescript/src/components/button/button.styles.d.ts +113 -0
- package/lib/typescript/src/components/button/button.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/button/button.types.d.ts +74 -0
- package/lib/typescript/src/components/button/button.types.d.ts.map +1 -0
- package/lib/typescript/src/components/button/index.d.ts +3 -0
- package/lib/typescript/src/components/button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/card/card.constants.d.ts +12 -0
- package/lib/typescript/src/components/card/card.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/card/card.d.ts +37 -0
- package/lib/typescript/src/components/card/card.d.ts.map +1 -0
- package/lib/typescript/src/components/card/card.styles.d.ts +10 -0
- package/lib/typescript/src/components/card/card.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/card/card.types.d.ts +73 -0
- package/lib/typescript/src/components/card/card.types.d.ts.map +1 -0
- package/lib/typescript/src/components/card/index.d.ts +3 -0
- package/lib/typescript/src/components/card/index.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox/checkbox.animation.d.ts +34 -0
- package/lib/typescript/src/components/checkbox/checkbox.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox/checkbox.constants.d.ts +6 -0
- package/lib/typescript/src/components/checkbox/checkbox.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox/checkbox.d.ts +27 -0
- package/lib/typescript/src/components/checkbox/checkbox.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox/checkbox.styles.d.ts +77 -0
- package/lib/typescript/src/components/checkbox/checkbox.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox/checkbox.types.d.ts +184 -0
- package/lib/typescript/src/components/checkbox/checkbox.types.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox/index.d.ts +3 -0
- package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/chip.animation.d.ts +11 -0
- package/lib/typescript/src/components/chip/chip.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/chip.constants.d.ts +8 -0
- package/lib/typescript/src/components/chip/chip.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/chip.d.ts +24 -0
- package/lib/typescript/src/components/chip/chip.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/chip.styles.d.ts +184 -0
- package/lib/typescript/src/components/chip/chip.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/chip.types.d.ts +56 -0
- package/lib/typescript/src/components/chip/chip.types.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/index.d.ts +3 -0
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/dialog.animation.d.ts +4 -0
- package/lib/typescript/src/components/dialog/dialog.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/dialog.constants.d.ts +14 -0
- package/lib/typescript/src/components/dialog/dialog.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/dialog.d.ts +56 -0
- package/lib/typescript/src/components/dialog/dialog.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/dialog.styles.d.ts +15 -0
- package/lib/typescript/src/components/dialog/dialog.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/dialog.types.d.ts +224 -0
- package/lib/typescript/src/components/dialog/dialog.types.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/index.d.ts +3 -0
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -0
- package/lib/typescript/src/components/divider/divider.constants.d.ts +7 -0
- package/lib/typescript/src/components/divider/divider.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/divider/divider.d.ts +15 -0
- package/lib/typescript/src/components/divider/divider.d.ts.map +1 -0
- package/lib/typescript/src/components/divider/divider.styles.d.ts +30 -0
- package/lib/typescript/src/components/divider/divider.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/divider/divider.types.d.ts +35 -0
- package/lib/typescript/src/components/divider/divider.types.d.ts.map +1 -0
- package/lib/typescript/src/components/divider/index.d.ts +3 -0
- package/lib/typescript/src/components/divider/index.d.ts.map +1 -0
- package/lib/typescript/src/components/error-view/error-view.animation.d.ts +12 -0
- package/lib/typescript/src/components/error-view/error-view.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/error-view/error-view.constants.d.ts +24 -0
- package/lib/typescript/src/components/error-view/error-view.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/error-view/error-view.d.ts +11 -0
- package/lib/typescript/src/components/error-view/error-view.d.ts.map +1 -0
- package/lib/typescript/src/components/error-view/error-view.styles.d.ts +67 -0
- package/lib/typescript/src/components/error-view/error-view.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/error-view/error-view.types.d.ts +57 -0
- package/lib/typescript/src/components/error-view/error-view.types.d.ts.map +1 -0
- package/lib/typescript/src/components/error-view/index.d.ts +3 -0
- package/lib/typescript/src/components/error-view/index.d.ts.map +1 -0
- package/lib/typescript/src/components/form-field/form-field.animation.d.ts +11 -0
- package/lib/typescript/src/components/form-field/form-field.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/form-field/form-field.constants.d.ts +11 -0
- package/lib/typescript/src/components/form-field/form-field.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/form-field/form-field.context.d.ts +8 -0
- package/lib/typescript/src/components/form-field/form-field.context.d.ts.map +1 -0
- package/lib/typescript/src/components/form-field/form-field.d.ts +37 -0
- package/lib/typescript/src/components/form-field/form-field.d.ts.map +1 -0
- package/lib/typescript/src/components/form-field/form-field.styles.d.ts +21 -0
- package/lib/typescript/src/components/form-field/form-field.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/form-field/form-field.types.d.ts +62 -0
- package/lib/typescript/src/components/form-field/form-field.types.d.ts.map +1 -0
- package/lib/typescript/src/components/form-field/index.d.ts +3 -0
- package/lib/typescript/src/components/form-field/index.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/arrow-svg.d.ts +15 -0
- package/lib/typescript/src/components/popover/arrow-svg.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/index.d.ts +3 -0
- package/lib/typescript/src/components/popover/index.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/popover.animation.d.ts +4 -0
- package/lib/typescript/src/components/popover/popover.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/popover.constants.d.ts +32 -0
- package/lib/typescript/src/components/popover/popover.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/popover.d.ts +56 -0
- package/lib/typescript/src/components/popover/popover.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/popover.styles.d.ts +16 -0
- package/lib/typescript/src/components/popover/popover.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/popover.types.d.ts +336 -0
- package/lib/typescript/src/components/popover/popover.types.d.ts.map +1 -0
- package/lib/typescript/src/components/pressable-feedback/index.d.ts +3 -0
- package/lib/typescript/src/components/pressable-feedback/index.d.ts.map +1 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.animation.d.ts +75 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.constants.d.ts +11 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.d.ts +31 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.d.ts.map +1 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.styles.d.ts +105 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.types.d.ts +332 -0
- package/lib/typescript/src/components/pressable-feedback/pressable-feedback.types.d.ts.map +1 -0
- package/lib/typescript/src/components/radio-group/index.d.ts +3 -0
- package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -0
- package/lib/typescript/src/components/radio-group/radio-group.animation.d.ts +26 -0
- package/lib/typescript/src/components/radio-group/radio-group.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/radio-group/radio-group.constants.d.ts +14 -0
- package/lib/typescript/src/components/radio-group/radio-group.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/radio-group/radio-group.d.ts +53 -0
- package/lib/typescript/src/components/radio-group/radio-group.d.ts.map +1 -0
- package/lib/typescript/src/components/radio-group/radio-group.styles.d.ts +92 -0
- package/lib/typescript/src/components/radio-group/radio-group.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/radio-group/radio-group.types.d.ts +136 -0
- package/lib/typescript/src/components/radio-group/radio-group.types.d.ts.map +1 -0
- package/lib/typescript/src/components/scroll-shadow/index.d.ts +3 -0
- package/lib/typescript/src/components/scroll-shadow/index.d.ts.map +1 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.animation.d.ts +25 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.constants.d.ts +19 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.d.ts +18 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.d.ts.map +1 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.styles.d.ts +42 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.types.d.ts +98 -0
- package/lib/typescript/src/components/scroll-shadow/scroll-shadow.types.d.ts.map +1 -0
- package/lib/typescript/src/components/select/index.d.ts +3 -0
- package/lib/typescript/src/components/select/index.d.ts.map +1 -0
- package/lib/typescript/src/components/select/select.animation.d.ts +4 -0
- package/lib/typescript/src/components/select/select.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/select/select.constants.d.ts +35 -0
- package/lib/typescript/src/components/select/select.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/select/select.d.ts +66 -0
- package/lib/typescript/src/components/select/select.d.ts.map +1 -0
- package/lib/typescript/src/components/select/select.styles.d.ts +121 -0
- package/lib/typescript/src/components/select/select.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/select/select.types.d.ts +391 -0
- package/lib/typescript/src/components/select/select.types.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/index.d.ts +3 -0
- package/lib/typescript/src/components/skeleton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/linear-gradient.d.ts +6 -0
- package/lib/typescript/src/components/skeleton/linear-gradient.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/skeleton.animation.d.ts +44 -0
- package/lib/typescript/src/components/skeleton/skeleton.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/skeleton.constants.d.ts +32 -0
- package/lib/typescript/src/components/skeleton/skeleton.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/skeleton.d.ts +15 -0
- package/lib/typescript/src/components/skeleton/skeleton.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/skeleton.styles.d.ts +16 -0
- package/lib/typescript/src/components/skeleton/skeleton.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/skeleton.types.d.ts +173 -0
- package/lib/typescript/src/components/skeleton/skeleton.types.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton-group/index.d.ts +3 -0
- package/lib/typescript/src/components/skeleton-group/index.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton-group/skeleton-group.constants.d.ts +8 -0
- package/lib/typescript/src/components/skeleton-group/skeleton-group.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton-group/skeleton-group.d.ts +24 -0
- package/lib/typescript/src/components/skeleton-group/skeleton-group.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton-group/skeleton-group.styles.d.ts +5 -0
- package/lib/typescript/src/components/skeleton-group/skeleton-group.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton-group/skeleton-group.types.d.ts +28 -0
- package/lib/typescript/src/components/skeleton-group/skeleton-group.types.d.ts.map +1 -0
- package/lib/typescript/src/components/spinner/index.d.ts +3 -0
- package/lib/typescript/src/components/spinner/index.d.ts.map +1 -0
- package/lib/typescript/src/components/spinner/spinner-icon.d.ts +6 -0
- package/lib/typescript/src/components/spinner/spinner-icon.d.ts.map +1 -0
- package/lib/typescript/src/components/spinner/spinner.animation.d.ts +27 -0
- package/lib/typescript/src/components/spinner/spinner.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/spinner/spinner.constants.d.ts +30 -0
- package/lib/typescript/src/components/spinner/spinner.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/spinner/spinner.d.ts +23 -0
- package/lib/typescript/src/components/spinner/spinner.d.ts.map +1 -0
- package/lib/typescript/src/components/spinner/spinner.styles.d.ts +24 -0
- package/lib/typescript/src/components/spinner/spinner.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/spinner/spinner.types.d.ts +131 -0
- package/lib/typescript/src/components/spinner/spinner.types.d.ts.map +1 -0
- package/lib/typescript/src/components/surface/index.d.ts +3 -0
- package/lib/typescript/src/components/surface/index.d.ts.map +1 -0
- package/lib/typescript/src/components/surface/surface.animation.d.ts +11 -0
- package/lib/typescript/src/components/surface/surface.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/surface/surface.constants.d.ts +7 -0
- package/lib/typescript/src/components/surface/surface.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/surface/surface.d.ts +16 -0
- package/lib/typescript/src/components/surface/surface.d.ts.map +1 -0
- package/lib/typescript/src/components/surface/surface.styles.d.ts +32 -0
- package/lib/typescript/src/components/surface/surface.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/surface/surface.types.d.ts +40 -0
- package/lib/typescript/src/components/surface/surface.types.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/index.d.ts +3 -0
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/switch.animation.d.ts +46 -0
- package/lib/typescript/src/components/switch/switch.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/switch.constants.d.ts +20 -0
- package/lib/typescript/src/components/switch/switch.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/switch.d.ts +42 -0
- package/lib/typescript/src/components/switch/switch.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/switch.styles.d.ts +28 -0
- package/lib/typescript/src/components/switch/switch.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/switch.types.d.ts +184 -0
- package/lib/typescript/src/components/switch/switch.types.d.ts.map +1 -0
- package/lib/typescript/src/components/tabs/index.d.ts +3 -0
- package/lib/typescript/src/components/tabs/index.d.ts.map +1 -0
- package/lib/typescript/src/components/tabs/tabs.animation.d.ts +26 -0
- package/lib/typescript/src/components/tabs/tabs.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/tabs/tabs.constants.d.ts +12 -0
- package/lib/typescript/src/components/tabs/tabs.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/tabs/tabs.context.d.ts +13 -0
- package/lib/typescript/src/components/tabs/tabs.context.d.ts.map +1 -0
- package/lib/typescript/src/components/tabs/tabs.d.ts +44 -0
- package/lib/typescript/src/components/tabs/tabs.d.ts.map +1 -0
- package/lib/typescript/src/components/tabs/tabs.styles.d.ts +103 -0
- package/lib/typescript/src/components/tabs/tabs.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/tabs/tabs.types.d.ts +239 -0
- package/lib/typescript/src/components/tabs/tabs.types.d.ts.map +1 -0
- package/lib/typescript/src/components/text-field/index.d.ts +3 -0
- package/lib/typescript/src/components/text-field/index.d.ts.map +1 -0
- package/lib/typescript/src/components/text-field/text-field.animation.d.ts +47 -0
- package/lib/typescript/src/components/text-field/text-field.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/text-field/text-field.constants.d.ts +30 -0
- package/lib/typescript/src/components/text-field/text-field.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/text-field/text-field.d.ts +47 -0
- package/lib/typescript/src/components/text-field/text-field.d.ts.map +1 -0
- package/lib/typescript/src/components/text-field/text-field.styles.d.ts +203 -0
- package/lib/typescript/src/components/text-field/text-field.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/text-field/text-field.types.d.ts +324 -0
- package/lib/typescript/src/components/text-field/text-field.types.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/index.d.ts +3 -0
- package/lib/typescript/src/components/toast/index.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/toast.animation.d.ts +29 -0
- package/lib/typescript/src/components/toast/toast.animation.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/toast.constants.d.ts +11 -0
- package/lib/typescript/src/components/toast/toast.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/toast.d.ts +56 -0
- package/lib/typescript/src/components/toast/toast.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/toast.styles.d.ts +61 -0
- package/lib/typescript/src/components/toast/toast.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/toast.types.d.ts +278 -0
- package/lib/typescript/src/components/toast/toast.types.d.ts.map +1 -0
- package/lib/typescript/src/helpers/components/animated-check-icon.d.ts +12 -0
- package/lib/typescript/src/helpers/components/animated-check-icon.d.ts.map +1 -0
- package/lib/typescript/src/helpers/components/bottom-sheet-content-container.d.ts +20 -0
- package/lib/typescript/src/helpers/components/bottom-sheet-content-container.d.ts.map +1 -0
- package/lib/typescript/src/helpers/components/check-icon.d.ts +8 -0
- package/lib/typescript/src/helpers/components/check-icon.d.ts.map +1 -0
- package/lib/typescript/src/helpers/components/close-icon.d.ts +8 -0
- package/lib/typescript/src/helpers/components/close-icon.d.ts.map +1 -0
- package/lib/typescript/src/helpers/components/full-window-overlay.d.ts +4 -0
- package/lib/typescript/src/helpers/components/full-window-overlay.d.ts.map +1 -0
- package/lib/typescript/src/helpers/components/hero-text.d.ts +51 -0
- package/lib/typescript/src/helpers/components/hero-text.d.ts.map +1 -0
- package/lib/typescript/src/helpers/components/index.d.ts +6 -0
- package/lib/typescript/src/helpers/components/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/contexts/animation-settings-context.d.ts +12 -0
- package/lib/typescript/src/helpers/contexts/animation-settings-context.d.ts.map +1 -0
- package/lib/typescript/src/helpers/contexts/index.d.ts +3 -0
- package/lib/typescript/src/helpers/contexts/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/index.d.ts +12 -0
- package/lib/typescript/src/helpers/hooks/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-augmented-ref.d.ts +9 -0
- package/lib/typescript/src/helpers/hooks/use-augmented-ref.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-combined-animation-disabled-state.d.ts +22 -0
- package/lib/typescript/src/helpers/hooks/use-combined-animation-disabled-state.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-controllable-state.d.ts +22 -0
- package/lib/typescript/src/helpers/hooks/use-controllable-state.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-keyboard-status.d.ts +2 -0
- package/lib/typescript/src/helpers/hooks/use-keyboard-status.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-popup-bottom-sheet-content-animation.d.ts +27 -0
- package/lib/typescript/src/helpers/hooks/use-popup-bottom-sheet-content-animation.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-popup-dialog-content-animation.d.ts +70 -0
- package/lib/typescript/src/helpers/hooks/use-popup-dialog-content-animation.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-popup-overlay-animation.d.ts +21 -0
- package/lib/typescript/src/helpers/hooks/use-popup-overlay-animation.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-popup-popover-content-animation.d.ts +51 -0
- package/lib/typescript/src/helpers/hooks/use-popup-popover-content-animation.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-popup-root-animation.d.ts +33 -0
- package/lib/typescript/src/helpers/hooks/use-popup-root-animation.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-relative-position.d.ts +61 -0
- package/lib/typescript/src/helpers/hooks/use-relative-position.d.ts.map +1 -0
- package/lib/typescript/src/helpers/hooks/use-resolved-style-property.d.ts +60 -0
- package/lib/typescript/src/helpers/hooks/use-resolved-style-property.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/color-kit/index.d.ts +92 -0
- package/lib/typescript/src/helpers/theme/color-kit/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/color-kit/types.d.ts +202 -0
- package/lib/typescript/src/helpers/theme/color-kit/types.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/hooks/use-is-on-surface.d.ts +2 -0
- package/lib/typescript/src/helpers/theme/hooks/use-is-on-surface.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/hooks/use-theme-color.d.ts +25 -0
- package/lib/typescript/src/helpers/theme/hooks/use-theme-color.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/index.d.ts +5 -0
- package/lib/typescript/src/helpers/theme/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/types.d.ts +25 -0
- package/lib/typescript/src/helpers/theme/types.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/utils/cn.d.ts +3 -0
- package/lib/typescript/src/helpers/theme/utils/cn.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/utils/combine-styles.d.ts +13 -0
- package/lib/typescript/src/helpers/theme/utils/combine-styles.d.ts.map +1 -0
- package/lib/typescript/src/helpers/types/animation.d.ts +157 -0
- package/lib/typescript/src/helpers/types/animation.d.ts.map +1 -0
- package/lib/typescript/src/helpers/types/bottom-sheet.d.ts +72 -0
- package/lib/typescript/src/helpers/types/bottom-sheet.d.ts.map +1 -0
- package/lib/typescript/src/helpers/types/index.d.ts +5 -0
- package/lib/typescript/src/helpers/types/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/types/misc.d.ts +3 -0
- package/lib/typescript/src/helpers/types/misc.d.ts.map +1 -0
- package/lib/typescript/src/helpers/types/primitives.d.ts +120 -0
- package/lib/typescript/src/helpers/types/primitives.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/animation.d.ts +120 -0
- package/lib/typescript/src/helpers/utils/animation.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/children-to-string.d.ts +18 -0
- package/lib/typescript/src/helpers/utils/children-to-string.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/create-context.d.ts +28 -0
- package/lib/typescript/src/helpers/utils/create-context.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/ease-gradient/create-interpolation.d.ts +15 -0
- package/lib/typescript/src/helpers/utils/ease-gradient/create-interpolation.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/ease-gradient/index.d.ts +28 -0
- package/lib/typescript/src/helpers/utils/ease-gradient/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/get-element-by-display-name.d.ts +4 -0
- package/lib/typescript/src/helpers/utils/get-element-by-display-name.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/get-element-with-default.d.ts +4 -0
- package/lib/typescript/src/helpers/utils/get-element-with-default.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/has-prop.d.ts +9 -0
- package/lib/typescript/src/helpers/utils/has-prop.d.ts.map +1 -0
- package/lib/typescript/src/helpers/utils/index.d.ts +8 -0
- package/lib/typescript/src/helpers/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +29 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/accordion/accordion.d.ts +30 -0
- package/lib/typescript/src/primitives/accordion/accordion.d.ts.map +1 -0
- package/lib/typescript/src/primitives/accordion/accordion.types.d.ts +84 -0
- package/lib/typescript/src/primitives/accordion/accordion.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/accordion/accordion.utils.d.ts +3 -0
- package/lib/typescript/src/primitives/accordion/accordion.utils.d.ts.map +1 -0
- package/lib/typescript/src/primitives/accordion/index.d.ts +3 -0
- package/lib/typescript/src/primitives/accordion/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/activity-indicator/activity-indicator.d.ts +6 -0
- package/lib/typescript/src/primitives/activity-indicator/activity-indicator.d.ts.map +1 -0
- package/lib/typescript/src/primitives/activity-indicator/activity-indicator.types.d.ts +22 -0
- package/lib/typescript/src/primitives/activity-indicator/activity-indicator.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/activity-indicator/index.d.ts +3 -0
- package/lib/typescript/src/primitives/activity-indicator/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/avatar/avatar.d.ts +23 -0
- package/lib/typescript/src/primitives/avatar/avatar.d.ts.map +1 -0
- package/lib/typescript/src/primitives/avatar/avatar.types.d.ts +42 -0
- package/lib/typescript/src/primitives/avatar/avatar.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/avatar/avatar.utils.d.ts +44 -0
- package/lib/typescript/src/primitives/avatar/avatar.utils.d.ts.map +1 -0
- package/lib/typescript/src/primitives/avatar/index.d.ts +3 -0
- package/lib/typescript/src/primitives/avatar/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/bottom-sheet/bottom-sheet.d.ts +38 -0
- package/lib/typescript/src/primitives/bottom-sheet/bottom-sheet.d.ts.map +1 -0
- package/lib/typescript/src/primitives/bottom-sheet/bottom-sheet.types.d.ts +87 -0
- package/lib/typescript/src/primitives/bottom-sheet/bottom-sheet.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/bottom-sheet/index.d.ts +3 -0
- package/lib/typescript/src/primitives/bottom-sheet/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/checkbox/checkbox.d.ts +17 -0
- package/lib/typescript/src/primitives/checkbox/checkbox.d.ts.map +1 -0
- package/lib/typescript/src/primitives/checkbox/checkbox.types.d.ts +30 -0
- package/lib/typescript/src/primitives/checkbox/checkbox.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/checkbox/index.d.ts +3 -0
- package/lib/typescript/src/primitives/checkbox/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/dialog/dialog.d.ts +38 -0
- package/lib/typescript/src/primitives/dialog/dialog.d.ts.map +1 -0
- package/lib/typescript/src/primitives/dialog/dialog.types.d.ts +87 -0
- package/lib/typescript/src/primitives/dialog/dialog.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/dialog/index.d.ts +3 -0
- package/lib/typescript/src/primitives/dialog/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/label/index.d.ts +3 -0
- package/lib/typescript/src/primitives/label/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/label/label.d.ts +12 -0
- package/lib/typescript/src/primitives/label/label.d.ts.map +1 -0
- package/lib/typescript/src/primitives/label/label.types.d.ts +26 -0
- package/lib/typescript/src/primitives/label/label.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/popover/index.d.ts +3 -0
- package/lib/typescript/src/primitives/popover/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/popover/popover.d.ts +38 -0
- package/lib/typescript/src/primitives/popover/popover.d.ts.map +1 -0
- package/lib/typescript/src/primitives/popover/popover.types.d.ts +165 -0
- package/lib/typescript/src/primitives/popover/popover.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/portal/index.d.ts +2 -0
- package/lib/typescript/src/primitives/portal/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/portal/portal.d.ts +25 -0
- package/lib/typescript/src/primitives/portal/portal.d.ts.map +1 -0
- package/lib/typescript/src/primitives/radio-group/index.d.ts +3 -0
- package/lib/typescript/src/primitives/radio-group/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/radio-group/radio-group.d.ts +20 -0
- package/lib/typescript/src/primitives/radio-group/radio-group.d.ts.map +1 -0
- package/lib/typescript/src/primitives/radio-group/radio-group.types.d.ts +46 -0
- package/lib/typescript/src/primitives/radio-group/radio-group.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/select/index.d.ts +3 -0
- package/lib/typescript/src/primitives/select/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/select/select.d.ts +70 -0
- package/lib/typescript/src/primitives/select/select.d.ts.map +1 -0
- package/lib/typescript/src/primitives/select/select.types.d.ts +264 -0
- package/lib/typescript/src/primitives/select/select.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/slot/index.d.ts +2 -0
- package/lib/typescript/src/primitives/slot/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/slot/slot.d.ts +9 -0
- package/lib/typescript/src/primitives/slot/slot.d.ts.map +1 -0
- package/lib/typescript/src/primitives/slot/types.d.ts +11 -0
- package/lib/typescript/src/primitives/slot/types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/slot/utils.d.ts +8 -0
- package/lib/typescript/src/primitives/slot/utils.d.ts.map +1 -0
- package/lib/typescript/src/primitives/switch/index.d.ts +3 -0
- package/lib/typescript/src/primitives/switch/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/switch/switch.d.ts +8 -0
- package/lib/typescript/src/primitives/switch/switch.d.ts.map +1 -0
- package/lib/typescript/src/primitives/switch/switch.types.d.ts +44 -0
- package/lib/typescript/src/primitives/switch/switch.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/tabs/index.d.ts +3 -0
- package/lib/typescript/src/primitives/tabs/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/tabs/tabs.d.ts +40 -0
- package/lib/typescript/src/primitives/tabs/tabs.d.ts.map +1 -0
- package/lib/typescript/src/primitives/tabs/tabs.types.d.ts +48 -0
- package/lib/typescript/src/primitives/tabs/tabs.types.d.ts.map +1 -0
- package/lib/typescript/src/primitives/toast/index.d.ts +3 -0
- package/lib/typescript/src/primitives/toast/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/toast/toast.d.ts +24 -0
- package/lib/typescript/src/primitives/toast/toast.d.ts.map +1 -0
- package/lib/typescript/src/primitives/toast/toast.types.d.ts +56 -0
- package/lib/typescript/src/primitives/toast/toast.types.d.ts.map +1 -0
- package/lib/typescript/src/providers/animation-settings/index.d.ts +3 -0
- package/lib/typescript/src/providers/animation-settings/index.d.ts.map +1 -0
- package/lib/typescript/src/providers/animation-settings/provider.d.ts +23 -0
- package/lib/typescript/src/providers/animation-settings/provider.d.ts.map +1 -0
- package/lib/typescript/src/providers/animation-settings/types.d.ts +26 -0
- package/lib/typescript/src/providers/animation-settings/types.d.ts.map +1 -0
- package/lib/typescript/src/providers/hero-ui-native/index.d.ts +3 -0
- package/lib/typescript/src/providers/hero-ui-native/index.d.ts.map +1 -0
- package/lib/typescript/src/providers/hero-ui-native/provider.d.ts +42 -0
- package/lib/typescript/src/providers/hero-ui-native/provider.d.ts.map +1 -0
- package/lib/typescript/src/providers/hero-ui-native/types.d.ts +80 -0
- package/lib/typescript/src/providers/hero-ui-native/types.d.ts.map +1 -0
- package/lib/typescript/src/providers/text-component/index.d.ts +3 -0
- package/lib/typescript/src/providers/text-component/index.d.ts.map +1 -0
- package/lib/typescript/src/providers/text-component/provider.d.ts +4 -0
- package/lib/typescript/src/providers/text-component/provider.d.ts.map +1 -0
- package/lib/typescript/src/providers/text-component/types.d.ts +51 -0
- package/lib/typescript/src/providers/text-component/types.d.ts.map +1 -0
- package/lib/typescript/src/providers/toast/index.d.ts +4 -0
- package/lib/typescript/src/providers/toast/index.d.ts.map +1 -0
- package/lib/typescript/src/providers/toast/insets-container.d.ts +35 -0
- package/lib/typescript/src/providers/toast/insets-container.d.ts.map +1 -0
- package/lib/typescript/src/providers/toast/provider.d.ts +32 -0
- package/lib/typescript/src/providers/toast/provider.d.ts.map +1 -0
- package/lib/typescript/src/providers/toast/reducer.d.ts +6 -0
- package/lib/typescript/src/providers/toast/reducer.d.ts.map +1 -0
- package/lib/typescript/src/providers/toast/toast-config.context.d.ts +20 -0
- package/lib/typescript/src/providers/toast/toast-config.context.d.ts.map +1 -0
- package/lib/typescript/src/providers/toast/toast-item-renderer.d.ts +7 -0
- package/lib/typescript/src/providers/toast/toast-item-renderer.d.ts.map +1 -0
- package/lib/typescript/src/providers/toast/types.d.ts +355 -0
- package/lib/typescript/src/providers/toast/types.d.ts.map +1 -0
- package/package.json +177 -0
- package/src/components/accordion/accordion.animation.ts +178 -0
- package/src/components/accordion/accordion.constants.ts +62 -0
- package/src/components/accordion/accordion.md +406 -0
- package/src/components/accordion/accordion.styles.ts +95 -0
- package/src/components/accordion/accordion.tsx +330 -0
- package/src/components/accordion/accordion.types.ts +262 -0
- package/src/components/accordion/chevron-down-icon.tsx +25 -0
- package/src/components/accordion/index.ts +16 -0
- package/src/components/avatar/avatar.animation.ts +123 -0
- package/src/components/avatar/avatar.constants.ts +19 -0
- package/src/components/avatar/avatar.context.ts +11 -0
- package/src/components/avatar/avatar.md +376 -0
- package/src/components/avatar/avatar.styles.ts +153 -0
- package/src/components/avatar/avatar.tsx +298 -0
- package/src/components/avatar/avatar.types.ts +231 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/avatar/person-icon.tsx +23 -0
- package/src/components/bottom-sheet/bottom-sheet.animation.ts +42 -0
- package/src/components/bottom-sheet/bottom-sheet.constants.ts +13 -0
- package/src/components/bottom-sheet/bottom-sheet.md +341 -0
- package/src/components/bottom-sheet/bottom-sheet.styles.ts +67 -0
- package/src/components/bottom-sheet/bottom-sheet.tsx +395 -0
- package/src/components/bottom-sheet/bottom-sheet.types.ts +199 -0
- package/src/components/bottom-sheet/index.ts +16 -0
- package/src/components/button/button.constants.ts +7 -0
- package/src/components/button/button.md +316 -0
- package/src/components/button/button.styles.ts +89 -0
- package/src/components/button/button.tsx +248 -0
- package/src/components/button/button.types.ts +88 -0
- package/src/components/button/index.ts +8 -0
- package/src/components/card/card.constants.ts +11 -0
- package/src/components/card/card.md +187 -0
- package/src/components/card/card.styles.ts +37 -0
- package/src/components/card/card.tsx +148 -0
- package/src/components/card/card.types.ts +77 -0
- package/src/components/card/index.ts +9 -0
- package/src/components/checkbox/checkbox.animation.ts +201 -0
- package/src/components/checkbox/checkbox.constants.ts +6 -0
- package/src/components/checkbox/checkbox.md +305 -0
- package/src/components/checkbox/checkbox.styles.ts +106 -0
- package/src/components/checkbox/checkbox.tsx +245 -0
- package/src/components/checkbox/checkbox.types.ts +211 -0
- package/src/components/checkbox/index.ts +2 -0
- package/src/components/chip/chip.animation.ts +18 -0
- package/src/components/chip/chip.constants.ts +7 -0
- package/src/components/chip/chip.md +190 -0
- package/src/components/chip/chip.styles.ts +235 -0
- package/src/components/chip/chip.tsx +125 -0
- package/src/components/chip/chip.types.ts +69 -0
- package/src/components/chip/index.ts +2 -0
- package/src/components/dialog/dialog.animation.ts +9 -0
- package/src/components/dialog/dialog.constants.ts +13 -0
- package/src/components/dialog/dialog.md +363 -0
- package/src/components/dialog/dialog.styles.ts +84 -0
- package/src/components/dialog/dialog.tsx +392 -0
- package/src/components/dialog/dialog.types.ts +244 -0
- package/src/components/dialog/index.ts +12 -0
- package/src/components/divider/divider.constants.ts +6 -0
- package/src/components/divider/divider.md +98 -0
- package/src/components/divider/divider.styles.ts +47 -0
- package/src/components/divider/divider.tsx +62 -0
- package/src/components/divider/divider.types.ts +40 -0
- package/src/components/divider/index.ts +6 -0
- package/src/components/error-view/error-view.animation.ts +52 -0
- package/src/components/error-view/error-view.constants.ts +31 -0
- package/src/components/error-view/error-view.md +177 -0
- package/src/components/error-view/error-view.styles.ts +17 -0
- package/src/components/error-view/error-view.tsx +73 -0
- package/src/components/error-view/error-view.types.ts +70 -0
- package/src/components/error-view/index.ts +2 -0
- package/src/components/form-field/form-field.animation.ts +18 -0
- package/src/components/form-field/form-field.constants.ts +10 -0
- package/src/components/form-field/form-field.context.ts +13 -0
- package/src/components/form-field/form-field.md +243 -0
- package/src/components/form-field/form-field.styles.ts +40 -0
- package/src/components/form-field/form-field.tsx +301 -0
- package/src/components/form-field/form-field.types.ts +86 -0
- package/src/components/form-field/index.ts +7 -0
- package/src/components/popover/arrow-svg.tsx +180 -0
- package/src/components/popover/index.ts +19 -0
- package/src/components/popover/popover.animation.ts +9 -0
- package/src/components/popover/popover.constants.ts +34 -0
- package/src/components/popover/popover.md +521 -0
- package/src/components/popover/popover.styles.ts +92 -0
- package/src/components/popover/popover.tsx +637 -0
- package/src/components/popover/popover.types.ts +370 -0
- package/src/components/pressable-feedback/index.ts +3 -0
- package/src/components/pressable-feedback/pressable-feedback.animation.ts +380 -0
- package/src/components/pressable-feedback/pressable-feedback.constants.ts +11 -0
- package/src/components/pressable-feedback/pressable-feedback.md +246 -0
- package/src/components/pressable-feedback/pressable-feedback.styles.ts +106 -0
- package/src/components/pressable-feedback/pressable-feedback.tsx +291 -0
- package/src/components/pressable-feedback/pressable-feedback.types.ts +350 -0
- package/src/components/radio-group/index.ts +17 -0
- package/src/components/radio-group/radio-group.animation.ts +92 -0
- package/src/components/radio-group/radio-group.constants.ts +14 -0
- package/src/components/radio-group/radio-group.md +303 -0
- package/src/components/radio-group/radio-group.styles.ts +101 -0
- package/src/components/radio-group/radio-group.tsx +327 -0
- package/src/components/radio-group/radio-group.types.ts +152 -0
- package/src/components/scroll-shadow/index.ts +6 -0
- package/src/components/scroll-shadow/scroll-shadow.animation.ts +132 -0
- package/src/components/scroll-shadow/scroll-shadow.constants.ts +21 -0
- package/src/components/scroll-shadow/scroll-shadow.md +191 -0
- package/src/components/scroll-shadow/scroll-shadow.styles.ts +47 -0
- package/src/components/scroll-shadow/scroll-shadow.tsx +246 -0
- package/src/components/scroll-shadow/scroll-shadow.types.ts +121 -0
- package/src/components/select/index.ts +25 -0
- package/src/components/select/select.animation.ts +9 -0
- package/src/components/select/select.constants.ts +37 -0
- package/src/components/select/select.md +735 -0
- package/src/components/select/select.styles.ts +154 -0
- package/src/components/select/select.tsx +736 -0
- package/src/components/select/select.types.ts +432 -0
- package/src/components/skeleton/index.ts +6 -0
- package/src/components/skeleton/linear-gradient.tsx +45 -0
- package/src/components/skeleton/skeleton.animation.ts +349 -0
- package/src/components/skeleton/skeleton.constants.ts +39 -0
- package/src/components/skeleton/skeleton.md +200 -0
- package/src/components/skeleton/skeleton.styles.ts +57 -0
- package/src/components/skeleton/skeleton.tsx +183 -0
- package/src/components/skeleton/skeleton.types.ts +191 -0
- package/src/components/skeleton-group/index.ts +6 -0
- package/src/components/skeleton-group/skeleton-group.constants.ts +7 -0
- package/src/components/skeleton-group/skeleton-group.md +247 -0
- package/src/components/skeleton-group/skeleton-group.styles.ts +8 -0
- package/src/components/skeleton-group/skeleton-group.tsx +94 -0
- package/src/components/skeleton-group/skeleton-group.types.ts +28 -0
- package/src/components/spinner/index.ts +9 -0
- package/src/components/spinner/spinner-icon.tsx +49 -0
- package/src/components/spinner/spinner.animation.ts +150 -0
- package/src/components/spinner/spinner.constants.ts +36 -0
- package/src/components/spinner/spinner.md +199 -0
- package/src/components/spinner/spinner.styles.ts +46 -0
- package/src/components/spinner/spinner.tsx +195 -0
- package/src/components/spinner/spinner.types.ts +158 -0
- package/src/components/surface/index.ts +2 -0
- package/src/components/surface/surface.animation.ts +18 -0
- package/src/components/surface/surface.constants.ts +6 -0
- package/src/components/surface/surface.md +141 -0
- package/src/components/surface/surface.styles.ts +26 -0
- package/src/components/surface/surface.tsx +66 -0
- package/src/components/surface/surface.types.ts +47 -0
- package/src/components/switch/index.ts +2 -0
- package/src/components/switch/switch.animation.ts +246 -0
- package/src/components/switch/switch.constants.ts +26 -0
- package/src/components/switch/switch.md +332 -0
- package/src/components/switch/switch.styles.ts +85 -0
- package/src/components/switch/switch.tsx +280 -0
- package/src/components/switch/switch.types.ts +208 -0
- package/src/components/tabs/index.ts +7 -0
- package/src/components/tabs/tabs.animation.ts +167 -0
- package/src/components/tabs/tabs.constants.ts +16 -0
- package/src/components/tabs/tabs.context.ts +28 -0
- package/src/components/tabs/tabs.md +492 -0
- package/src/components/tabs/tabs.styles.ts +127 -0
- package/src/components/tabs/tabs.tsx +372 -0
- package/src/components/tabs/tabs.types.ts +263 -0
- package/src/components/text-field/index.ts +10 -0
- package/src/components/text-field/text-field.animation.ts +299 -0
- package/src/components/text-field/text-field.constants.ts +36 -0
- package/src/components/text-field/text-field.md +377 -0
- package/src/components/text-field/text-field.styles.ts +106 -0
- package/src/components/text-field/text-field.tsx +375 -0
- package/src/components/text-field/text-field.types.ts +349 -0
- package/src/components/toast/index.ts +2 -0
- package/src/components/toast/toast.animation.ts +381 -0
- package/src/components/toast/toast.constants.ts +10 -0
- package/src/components/toast/toast.md +417 -0
- package/src/components/toast/toast.styles.ts +91 -0
- package/src/components/toast/toast.tsx +428 -0
- package/src/components/toast/toast.types.ts +316 -0
- package/src/helpers/components/animated-check-icon.tsx +78 -0
- package/src/helpers/components/bottom-sheet-content-container.tsx +49 -0
- package/src/helpers/components/check-icon.tsx +28 -0
- package/src/helpers/components/close-icon.tsx +29 -0
- package/src/helpers/components/full-window-overlay.tsx +6 -0
- package/src/helpers/components/hero-text.tsx +71 -0
- package/src/helpers/components/index.ts +5 -0
- package/src/helpers/contexts/animation-settings-context.tsx +19 -0
- package/src/helpers/contexts/index.ts +5 -0
- package/src/helpers/hooks/index.ts +11 -0
- package/src/helpers/hooks/use-augmented-ref.ts +32 -0
- package/src/helpers/hooks/use-combined-animation-disabled-state.ts +49 -0
- package/src/helpers/hooks/use-controllable-state.ts +102 -0
- package/src/helpers/hooks/use-keyboard-status.ts +22 -0
- package/src/helpers/hooks/use-popup-bottom-sheet-content-animation.ts +77 -0
- package/src/helpers/hooks/use-popup-dialog-content-animation.ts +279 -0
- package/src/helpers/hooks/use-popup-overlay-animation.ts +70 -0
- package/src/helpers/hooks/use-popup-popover-content-animation.ts +154 -0
- package/src/helpers/hooks/use-popup-root-animation.ts +248 -0
- package/src/helpers/hooks/use-relative-position.ts +353 -0
- package/src/helpers/hooks/use-resolved-style-property.ts +118 -0
- package/src/helpers/theme/color-kit/index.ts +2392 -0
- package/src/helpers/theme/color-kit/types.ts +212 -0
- package/src/helpers/theme/hooks/use-is-on-surface.ts +8 -0
- package/src/helpers/theme/hooks/use-theme-color.ts +56 -0
- package/src/helpers/theme/index.ts +4 -0
- package/src/helpers/theme/types.ts +89 -0
- package/src/helpers/theme/utils/cn.ts +12 -0
- package/src/helpers/theme/utils/combine-styles.ts +17 -0
- package/src/helpers/types/animation.ts +183 -0
- package/src/helpers/types/bottom-sheet.ts +74 -0
- package/src/helpers/types/index.ts +4 -0
- package/src/helpers/types/misc.ts +10 -0
- package/src/helpers/types/primitives.ts +146 -0
- package/src/helpers/utils/animation.ts +266 -0
- package/src/helpers/utils/children-to-string.ts +78 -0
- package/src/helpers/utils/create-context.ts +60 -0
- package/src/helpers/utils/ease-gradient/create-interpolation.ts +35 -0
- package/src/helpers/utils/ease-gradient/index.ts +97 -0
- package/src/helpers/utils/get-element-by-display-name.ts +15 -0
- package/src/helpers/utils/get-element-with-default.ts +17 -0
- package/src/helpers/utils/has-prop.ts +18 -0
- package/src/helpers/utils/index.ts +7 -0
- package/src/index.tsx +33 -0
- package/src/primitives/README.md +27 -0
- package/src/primitives/accordion/accordion.tsx +270 -0
- package/src/primitives/accordion/accordion.types.ts +117 -0
- package/src/primitives/accordion/accordion.utils.ts +12 -0
- package/src/primitives/accordion/index.ts +2 -0
- package/src/primitives/activity-indicator/activity-indicator.tsx +50 -0
- package/src/primitives/activity-indicator/activity-indicator.types.ts +24 -0
- package/src/primitives/activity-indicator/index.ts +2 -0
- package/src/primitives/avatar/avatar.tsx +171 -0
- package/src/primitives/avatar/avatar.types.ts +62 -0
- package/src/primitives/avatar/avatar.utils.ts +102 -0
- package/src/primitives/avatar/index.ts +2 -0
- package/src/primitives/bottom-sheet/bottom-sheet.tsx +246 -0
- package/src/primitives/bottom-sheet/bottom-sheet.types.ts +127 -0
- package/src/primitives/bottom-sheet/index.ts +2 -0
- package/src/primitives/checkbox/checkbox.tsx +121 -0
- package/src/primitives/checkbox/checkbox.types.ts +39 -0
- package/src/primitives/checkbox/index.ts +2 -0
- package/src/primitives/dialog/dialog.tsx +274 -0
- package/src/primitives/dialog/dialog.types.ts +129 -0
- package/src/primitives/dialog/index.ts +2 -0
- package/src/primitives/label/index.ts +2 -0
- package/src/primitives/label/label.tsx +24 -0
- package/src/primitives/label/label.types.ts +37 -0
- package/src/primitives/popover/index.ts +2 -0
- package/src/primitives/popover/popover.tsx +394 -0
- package/src/primitives/popover/popover.types.ts +202 -0
- package/src/primitives/portal/index.ts +1 -0
- package/src/primitives/portal/portal.tsx +126 -0
- package/src/primitives/radio-group/index.ts +2 -0
- package/src/primitives/radio-group/radio-group.tsx +114 -0
- package/src/primitives/radio-group/radio-group.types.ts +65 -0
- package/src/primitives/select/index.ts +2 -0
- package/src/primitives/select/select.tsx +641 -0
- package/src/primitives/select/select.types.ts +333 -0
- package/src/primitives/slot/index.ts +1 -0
- package/src/primitives/slot/slot.tsx +121 -0
- package/src/primitives/slot/types.ts +19 -0
- package/src/primitives/slot/utils.ts +90 -0
- package/src/primitives/switch/index.ts +2 -0
- package/src/primitives/switch/switch.tsx +61 -0
- package/src/primitives/switch/switch.types.ts +55 -0
- package/src/primitives/tabs/index.ts +2 -0
- package/src/primitives/tabs/tabs.tsx +202 -0
- package/src/primitives/tabs/tabs.types.ts +77 -0
- package/src/primitives/toast/index.ts +2 -0
- package/src/primitives/toast/toast.tsx +138 -0
- package/src/primitives/toast/toast.types.ts +86 -0
- package/src/providers/animation-settings/index.ts +8 -0
- package/src/providers/animation-settings/provider.tsx +47 -0
- package/src/providers/animation-settings/types.ts +27 -0
- package/src/providers/hero-ui-native/index.ts +2 -0
- package/src/providers/hero-ui-native/provider.md +332 -0
- package/src/providers/hero-ui-native/provider.tsx +92 -0
- package/src/providers/hero-ui-native/types.ts +82 -0
- package/src/providers/text-component/index.ts +2 -0
- package/src/providers/text-component/provider.tsx +9 -0
- package/src/providers/text-component/types.ts +52 -0
- package/src/providers/toast/index.ts +3 -0
- package/src/providers/toast/insets-container.tsx +74 -0
- package/src/providers/toast/provider.tsx +426 -0
- package/src/providers/toast/reducer.ts +34 -0
- package/src/providers/toast/toast-config.context.ts +27 -0
- package/src/providers/toast/toast-item-renderer.tsx +45 -0
- package/src/providers/toast/types.ts +367 -0
- package/src/styles/index.css +3 -0
- package/src/styles/theme.css +205 -0
- package/src/styles/theme.md +423 -0
- package/src/styles/utilities.css +8 -0
- package/src/styles/variables.css +113 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Children, isValidElement } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Converts React children to a string representation.
|
|
6
|
+
* Handles cases where children might be an array of mixed types (strings, numbers, variables).
|
|
7
|
+
*
|
|
8
|
+
* @param children - React children that might be string, number, array, or React elements
|
|
9
|
+
* @returns A string representation of the children or null if not convertible
|
|
10
|
+
*/
|
|
11
|
+
export function childrenToString(children) {
|
|
12
|
+
// Handle null/undefined
|
|
13
|
+
if (children == null) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Handle string directly
|
|
18
|
+
if (typeof children === 'string') {
|
|
19
|
+
return children;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Handle number
|
|
23
|
+
if (typeof children === 'number') {
|
|
24
|
+
return String(children);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Handle boolean (usually we don't want to render true/false as text)
|
|
28
|
+
if (typeof children === 'boolean') {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Handle array of children (e.g., {someVar} text)
|
|
33
|
+
if (Array.isArray(children)) {
|
|
34
|
+
const stringified = children.map(child => {
|
|
35
|
+
// Recursively handle each child
|
|
36
|
+
if (typeof child === 'string' || typeof child === 'number') {
|
|
37
|
+
return String(child);
|
|
38
|
+
}
|
|
39
|
+
// Skip React elements, booleans, null, undefined
|
|
40
|
+
if (/*#__PURE__*/isValidElement(child) || child == null || typeof child === 'boolean') {
|
|
41
|
+
return '';
|
|
42
|
+
}
|
|
43
|
+
return String(child);
|
|
44
|
+
}).join('');
|
|
45
|
+
return stringified || null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Handle React fragments and other iterable children
|
|
49
|
+
try {
|
|
50
|
+
const childArray = Children.toArray(children);
|
|
51
|
+
if (childArray.length > 0) {
|
|
52
|
+
return childrenToString(childArray);
|
|
53
|
+
}
|
|
54
|
+
} catch {
|
|
55
|
+
// Not iterable or other error, return null
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Checks if React children can be converted to a string.
|
|
62
|
+
*
|
|
63
|
+
* @param children - React children to check
|
|
64
|
+
* @returns True if children can be converted to string, false otherwise
|
|
65
|
+
*/
|
|
66
|
+
export function isStringifiableChildren(children) {
|
|
67
|
+
return childrenToString(children) !== null;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=children-to-string.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Children","isValidElement","childrenToString","children","String","Array","isArray","stringified","map","child","join","childArray","toArray","length","isStringifiableChildren"],"sourceRoot":"../../../../src","sources":["helpers/utils/children-to-string.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,cAAc,QAAwB,OAAO;AAGhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAC9BC,QAA4C,EAC7B;EACf;EACA,IAAIA,QAAQ,IAAI,IAAI,EAAE;IACpB,OAAO,IAAI;EACb;;EAEA;EACA,IAAI,OAAOA,QAAQ,KAAK,QAAQ,EAAE;IAChC,OAAOA,QAAQ;EACjB;;EAEA;EACA,IAAI,OAAOA,QAAQ,KAAK,QAAQ,EAAE;IAChC,OAAOC,MAAM,CAACD,QAAQ,CAAC;EACzB;;EAEA;EACA,IAAI,OAAOA,QAAQ,KAAK,SAAS,EAAE;IACjC,OAAO,IAAI;EACb;;EAEA;EACA,IAAIE,KAAK,CAACC,OAAO,CAACH,QAAQ,CAAC,EAAE;IAC3B,MAAMI,WAAW,GAAGJ,QAAQ,CACzBK,GAAG,CAAEC,KAAK,IAAK;MACd;MACA,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;QAC1D,OAAOL,MAAM,CAACK,KAAK,CAAC;MACtB;MACA;MACA,IACE,aAAAR,cAAc,CAACQ,KAAK,CAAC,IACrBA,KAAK,IAAI,IAAI,IACb,OAAOA,KAAK,KAAK,SAAS,EAC1B;QACA,OAAO,EAAE;MACX;MACA,OAAOL,MAAM,CAACK,KAAK,CAAC;IACtB,CAAC,CAAC,CACDC,IAAI,CAAC,EAAE,CAAC;IAEX,OAAOH,WAAW,IAAI,IAAI;EAC5B;;EAEA;EACA,IAAI;IACF,MAAMI,UAAU,GAAGX,QAAQ,CAACY,OAAO,CAACT,QAAqB,CAAC;IAC1D,IAAIQ,UAAU,CAACE,MAAM,GAAG,CAAC,EAAE;MACzB,OAAOX,gBAAgB,CAACS,UAAU,CAAC;IACrC;EACF,CAAC,CAAC,MAAM;IACN;EAAA;EAGF,OAAO,IAAI;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASG,uBAAuBA,CAACX,QAAmB,EAAW;EACpE,OAAOD,gBAAgB,CAACC,QAAQ,CAAC,KAAK,IAAI;AAC5C","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a named context, provider, and hook.
|
|
6
|
+
*
|
|
7
|
+
* @param options create context options
|
|
8
|
+
*/
|
|
9
|
+
export function createContext(options = {}) {
|
|
10
|
+
const {
|
|
11
|
+
strict = true,
|
|
12
|
+
errorMessage = 'useContext: `context` is undefined. Seems you forgot to wrap component within the Provider',
|
|
13
|
+
name
|
|
14
|
+
} = options;
|
|
15
|
+
const Context = /*#__PURE__*/React.createContext(undefined);
|
|
16
|
+
Context.displayName = name;
|
|
17
|
+
function useContext() {
|
|
18
|
+
const context = React.useContext(Context);
|
|
19
|
+
if (!context && strict) {
|
|
20
|
+
const error = new Error(errorMessage);
|
|
21
|
+
error.name = 'ContextError';
|
|
22
|
+
Error.captureStackTrace?.(error, useContext);
|
|
23
|
+
throw error;
|
|
24
|
+
}
|
|
25
|
+
return context;
|
|
26
|
+
}
|
|
27
|
+
return [Context.Provider, useContext, Context];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=create-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createContext","options","strict","errorMessage","name","Context","undefined","displayName","useContext","context","error","Error","captureStackTrace","Provider"],"sourceRoot":"../../../../src","sources":["helpers/utils/create-context.ts"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAwB9B;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAcC,OAA6B,GAAG,CAAC,CAAC,EAAE;EAC7E,MAAM;IACJC,MAAM,GAAG,IAAI;IACbC,YAAY,GAAG,4FAA4F;IAC3GC;EACF,CAAC,GAAGH,OAAO;EAEX,MAAMI,OAAO,gBAAGN,KAAK,CAACC,aAAa,CAA0BM,SAAS,CAAC;EAEvED,OAAO,CAACE,WAAW,GAAGH,IAAI;EAE1B,SAASI,UAAUA,CAAA,EAAG;IACpB,MAAMC,OAAO,GAAGV,KAAK,CAACS,UAAU,CAACH,OAAO,CAAC;IAEzC,IAAI,CAACI,OAAO,IAAIP,MAAM,EAAE;MACtB,MAAMQ,KAAK,GAAG,IAAIC,KAAK,CAACR,YAAY,CAAC;MAErCO,KAAK,CAACN,IAAI,GAAG,cAAc;MAC3BO,KAAK,CAACC,iBAAiB,GAAGF,KAAK,EAAEF,UAAU,CAAC;MAC5C,MAAME,KAAK;IACb;IAEA,OAAOD,OAAO;EAChB;EAEA,OAAO,CACLJ,OAAO,CAACQ,QAAQ,EAChBL,UAAU,EACVH,OAAO,CACR;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Easing gradient utilities for React Native
|
|
5
|
+
*
|
|
6
|
+
* Original source: https://github.com/phamfoo/react-native-easing-gradient
|
|
7
|
+
* Author: @phamfoo
|
|
8
|
+
* License: MIT
|
|
9
|
+
*
|
|
10
|
+
* This code has been adapted for use in HeroUI Native with modifications
|
|
11
|
+
* for TypeScript compatibility and integration with the animation system.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { Animated } from 'react-native';
|
|
15
|
+
// @ts-expect-error
|
|
16
|
+
const AnimatedInterpolation = Animated.Interpolation;
|
|
17
|
+
function createInterpolation(config) {
|
|
18
|
+
if (AnimatedInterpolation.__createInterpolation) {
|
|
19
|
+
return AnimatedInterpolation.__createInterpolation(config);
|
|
20
|
+
}
|
|
21
|
+
return input => {
|
|
22
|
+
const interpolation = new AnimatedInterpolation({
|
|
23
|
+
__getValue: () => input
|
|
24
|
+
}, config);
|
|
25
|
+
return interpolation.__getValue();
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export { createInterpolation };
|
|
29
|
+
//# sourceMappingURL=create-interpolation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Animated","AnimatedInterpolation","Interpolation","createInterpolation","config","__createInterpolation","input","interpolation","__getValue"],"sourceRoot":"../../../../../src","sources":["helpers/utils/ease-gradient/create-interpolation.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AACvC;AACA,MAAMC,qBAAqB,GAAGD,QAAQ,CAACE,aAAa;AAIpD,SAASC,mBAAmBA,CAC1BC,MAAwC,EACd;EAC1B,IAAIH,qBAAqB,CAACI,qBAAqB,EAAE;IAC/C,OAAOJ,qBAAqB,CAACI,qBAAqB,CAACD,MAAM,CAAC;EAC5D;EAEA,OAAQE,KAAK,IAAK;IAChB,MAAMC,aAAa,GAAG,IAAIN,qBAAqB,CAC7C;MAAEO,UAAU,EAAEA,CAAA,KAAMF;IAAM,CAAC,EAC3BF,MACF,CAAC;IAED,OAAOG,aAAa,CAACC,UAAU,CAAC,CAAC;EACnC,CAAC;AACH;AAEA,SAASL,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Easing gradient utilities for React Native
|
|
5
|
+
*
|
|
6
|
+
* Original source: https://github.com/phamfoo/react-native-easing-gradient
|
|
7
|
+
* Author: @phamfoo
|
|
8
|
+
* License: MIT
|
|
9
|
+
*
|
|
10
|
+
* This code has been adapted for use in HeroUI Native with modifications
|
|
11
|
+
* for TypeScript compatibility and integration with the animation system.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { Easing } from 'react-native';
|
|
15
|
+
import { createInterpolation } from "./create-interpolation.js";
|
|
16
|
+
const easeInOut = Easing.bezier(0.42, 0, 0.58, 1);
|
|
17
|
+
function easeGradient({
|
|
18
|
+
colorStops,
|
|
19
|
+
easing = easeInOut,
|
|
20
|
+
extraColorStopsPerTransition = 12
|
|
21
|
+
}) {
|
|
22
|
+
const colors = [];
|
|
23
|
+
const locations = [];
|
|
24
|
+
const initialLocations = Object.keys(colorStops).map(key => Number(key)).sort();
|
|
25
|
+
const totalColorStops = initialLocations.length;
|
|
26
|
+
for (let currentStopIndex = 0; currentStopIndex < totalColorStops - 1; currentStopIndex++) {
|
|
27
|
+
const startLocation = initialLocations[currentStopIndex];
|
|
28
|
+
const endLocation = initialLocations[currentStopIndex + 1];
|
|
29
|
+
if (startLocation === undefined || endLocation === undefined) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const startStop = colorStops[startLocation];
|
|
33
|
+
const endStop = colorStops[endLocation];
|
|
34
|
+
if (!startStop || !endStop) {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
const startColor = startStop.color;
|
|
38
|
+
const endColor = endStop.color;
|
|
39
|
+
const currentEasing = startStop.easing ?? easing;
|
|
40
|
+
const colorScale = createInterpolation({
|
|
41
|
+
inputRange: [0, 1],
|
|
42
|
+
outputRange: [startColor, endColor],
|
|
43
|
+
easing: currentEasing
|
|
44
|
+
});
|
|
45
|
+
const currentTransitionLength = endLocation - startLocation;
|
|
46
|
+
const stepSize = 1 / (extraColorStopsPerTransition + 1);
|
|
47
|
+
for (let stepIndex = 0; stepIndex <= extraColorStopsPerTransition + 1; stepIndex++) {
|
|
48
|
+
const progress = stepIndex * stepSize;
|
|
49
|
+
const color = colorScale(progress);
|
|
50
|
+
colors.push(color);
|
|
51
|
+
locations.push(startLocation + currentTransitionLength * progress);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
colors: colors,
|
|
56
|
+
locations: locations
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export { easeGradient };
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Easing","createInterpolation","easeInOut","bezier","easeGradient","colorStops","easing","extraColorStopsPerTransition","colors","locations","initialLocations","Object","keys","map","key","Number","sort","totalColorStops","length","currentStopIndex","startLocation","endLocation","undefined","startStop","endStop","startColor","color","endColor","currentEasing","colorScale","inputRange","outputRange","currentTransitionLength","stepSize","stepIndex","progress","push"],"sourceRoot":"../../../../../src","sources":["helpers/utils/ease-gradient/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAA6B,cAAc;AAC1D,SAASC,mBAAmB,QAAQ,2BAAwB;AAe5D,MAAMC,SAAS,GAAGF,MAAM,CAACG,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAEjD,SAASC,YAAYA,CAAC;EACpBC,UAAU;EACVC,MAAM,GAAGJ,SAAS;EAClBK,4BAA4B,GAAG;AACjB,CAAC,EAGf;EACA,MAAMC,MAAgB,GAAG,EAAE;EAC3B,MAAMC,SAAmB,GAAG,EAAE;EAE9B,MAAMC,gBAAgB,GAAGC,MAAM,CAACC,IAAI,CAACP,UAAU,CAAC,CAC7CQ,GAAG,CAAEC,GAAG,IAAKC,MAAM,CAACD,GAAG,CAAC,CAAC,CACzBE,IAAI,CAAC,CAAC;EAET,MAAMC,eAAe,GAAGP,gBAAgB,CAACQ,MAAM;EAE/C,KACE,IAAIC,gBAAgB,GAAG,CAAC,EACxBA,gBAAgB,GAAGF,eAAe,GAAG,CAAC,EACtCE,gBAAgB,EAAE,EAClB;IACA,MAAMC,aAAa,GAAGV,gBAAgB,CAACS,gBAAgB,CAAC;IACxD,MAAME,WAAW,GAAGX,gBAAgB,CAACS,gBAAgB,GAAG,CAAC,CAAC;IAE1D,IAAIC,aAAa,KAAKE,SAAS,IAAID,WAAW,KAAKC,SAAS,EAAE;MAC5D;IACF;IAEA,MAAMC,SAAS,GAAGlB,UAAU,CAACe,aAAa,CAAC;IAC3C,MAAMI,OAAO,GAAGnB,UAAU,CAACgB,WAAW,CAAC;IAEvC,IAAI,CAACE,SAAS,IAAI,CAACC,OAAO,EAAE;MAC1B;IACF;IAEA,MAAMC,UAAU,GAAGF,SAAS,CAACG,KAAK;IAClC,MAAMC,QAAQ,GAAGH,OAAO,CAACE,KAAK;IAC9B,MAAME,aAAa,GAAGL,SAAS,CAACjB,MAAM,IAAIA,MAAM;IAEhD,MAAMuB,UAAU,GAAG5B,mBAAmB,CAAC;MACrC6B,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;MAClBC,WAAW,EAAE,CAACN,UAAU,EAAEE,QAAQ,CAAC;MACnCrB,MAAM,EAAEsB;IACV,CAAC,CAAC;IAEF,MAAMI,uBAAuB,GAAGX,WAAW,GAAGD,aAAa;IAC3D,MAAMa,QAAQ,GAAG,CAAC,IAAI1B,4BAA4B,GAAG,CAAC,CAAC;IAEvD,KACE,IAAI2B,SAAS,GAAG,CAAC,EACjBA,SAAS,IAAI3B,4BAA4B,GAAG,CAAC,EAC7C2B,SAAS,EAAE,EACX;MACA,MAAMC,QAAQ,GAAGD,SAAS,GAAGD,QAAQ;MACrC,MAAMP,KAAK,GAAGG,UAAU,CAACM,QAAQ,CAAC;MAClC3B,MAAM,CAAC4B,IAAI,CAACV,KAAK,CAAC;MAClBjB,SAAS,CAAC2B,IAAI,CAAChB,aAAa,GAAGY,uBAAuB,GAAGG,QAAQ,CAAC;IACpE;EACF;EAEA,OAAO;IACL3B,MAAM,EAAEA,MAAuC;IAC/CC,SAAS,EAAEA;EACb,CAAC;AACH;AAEA,SAASL,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export const getElementByDisplayName = (children, displayName) => {
|
|
5
|
+
const element = React.Children.toArray(children).find(child => /*#__PURE__*/React.isValidElement(child) && child.type?.displayName === displayName);
|
|
6
|
+
return element;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=get-element-by-display-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","getElementByDisplayName","children","displayName","element","Children","toArray","find","child","isValidElement","type"],"sourceRoot":"../../../../src","sources":["helpers/utils/get-element-by-display-name.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,OAAO,MAAMC,uBAAuB,GAAGA,CACrCC,QAAyB,EACzBC,WAAmB,KACQ;EAC3B,MAAMC,OAAO,GAAGJ,KAAK,CAACK,QAAQ,CAACC,OAAO,CAACJ,QAAQ,CAAC,CAACK,IAAI,CAClDC,KAAK,IACJ,aAAAR,KAAK,CAACS,cAAc,CAACD,KAAK,CAAC,IAC1BA,KAAK,CAACE,IAAI,EAAUP,WAAW,KAAKA,WACzC,CAAC;EAED,OAAOC,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getElementByDisplayName } from "./get-element-by-display-name.js";
|
|
4
|
+
export const getElementWithDefault = (children, displayName, defaultElement) => {
|
|
5
|
+
const element = getElementByDisplayName(children, displayName);
|
|
6
|
+
if (!element) {
|
|
7
|
+
return defaultElement;
|
|
8
|
+
}
|
|
9
|
+
return element;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=get-element-with-default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getElementByDisplayName","getElementWithDefault","children","displayName","defaultElement","element"],"sourceRoot":"../../../../src","sources":["helpers/utils/get-element-with-default.ts"],"mappings":";;AAEA,SAASA,uBAAuB,QAAQ,kCAA+B;AAEvE,OAAO,MAAMC,qBAAqB,GAAGA,CACnCC,QAAyB,EACzBC,WAAmB,EACnBC,cAAkC,KACnB;EACf,MAAMC,OAAO,GAAGL,uBAAuB,CAACE,QAAQ,EAAEC,WAAW,CAAC;EAE9D,IAAI,CAACE,OAAO,EAAE;IACZ,OAAOD,cAAc;EACvB;EAEA,OAAOC,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if a React element has a specific prop defined
|
|
5
|
+
* @param element - The React element to check
|
|
6
|
+
* @param propName - The name of the prop to check for
|
|
7
|
+
* @returns true if the element has the prop, false otherwise
|
|
8
|
+
*/
|
|
9
|
+
export function hasProp(element, propName) {
|
|
10
|
+
if (!element || !element.props || typeof element.props !== 'object') {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
return propName in element.props;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=has-prop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["hasProp","element","propName","props"],"sourceRoot":"../../../../src","sources":["helpers/utils/has-prop.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,OAAOA,CACrBC,OAAwC,EACxCC,QAAgB,EACP;EACT,IAAI,CAACD,OAAO,IAAI,CAACA,OAAO,CAACE,KAAK,IAAI,OAAOF,OAAO,CAACE,KAAK,KAAK,QAAQ,EAAE;IACnE,OAAO,KAAK;EACd;EAEA,OAAOD,QAAQ,IAAID,OAAO,CAACE,KAAK;AAClC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export * from ".//animation.js";
|
|
4
|
+
export * from "./children-to-string.js";
|
|
5
|
+
export * from "./create-context.js";
|
|
6
|
+
export * from "./ease-gradient/index.js";
|
|
7
|
+
export * from "./get-element-by-display-name.js";
|
|
8
|
+
export * from "./get-element-with-default.js";
|
|
9
|
+
export * from "./has-prop.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["helpers/utils/index.ts"],"mappings":";;AAAA,cAAc,iBAAc;AAC5B,cAAc,yBAAsB;AACpC,cAAc,qBAAkB;AAChC,cAAc,0BAAiB;AAC/B,cAAc,kCAA+B;AAC7C,cAAc,+BAA4B;AAC1C,cAAc,eAAY","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// Components
|
|
4
|
+
export * from "./components/accordion/index.js";
|
|
5
|
+
export * from "./components/avatar/index.js";
|
|
6
|
+
export * from "./components/bottom-sheet/index.js";
|
|
7
|
+
export * from "./components/button/index.js";
|
|
8
|
+
export * from "./components/card/index.js";
|
|
9
|
+
export * from "./components/checkbox/index.js";
|
|
10
|
+
export * from "./components/chip/index.js";
|
|
11
|
+
export * from "./components/dialog/index.js";
|
|
12
|
+
export * from "./components/divider/index.js";
|
|
13
|
+
export * from "./components/error-view/index.js";
|
|
14
|
+
export * from "./components/form-field/index.js";
|
|
15
|
+
export * from "./components/popover/index.js";
|
|
16
|
+
export * from "./components/pressable-feedback/index.js";
|
|
17
|
+
export * from "./components/radio-group/index.js";
|
|
18
|
+
export * from "./components/scroll-shadow/index.js";
|
|
19
|
+
export * from "./components/select/index.js";
|
|
20
|
+
export * from "./components/skeleton/index.js";
|
|
21
|
+
export * from "./components/skeleton-group/index.js";
|
|
22
|
+
export * from "./components/spinner/index.js";
|
|
23
|
+
export * from "./components/surface/index.js";
|
|
24
|
+
export * from "./components/switch/index.js";
|
|
25
|
+
export * from "./components/tabs/index.js";
|
|
26
|
+
export * from "./components/text-field/index.js";
|
|
27
|
+
export * from "./components/toast/index.js";
|
|
28
|
+
|
|
29
|
+
// Theme helpers
|
|
30
|
+
export * from "./helpers/theme/index.js";
|
|
31
|
+
|
|
32
|
+
// Provider
|
|
33
|
+
export * from "./providers/hero-ui-native/index.js";
|
|
34
|
+
export { useTextComponent } from "./providers/text-component/index.js";
|
|
35
|
+
export * from "./providers/toast/index.js";
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useTextComponent"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA,cAAc,iCAAwB;AACtC,cAAc,8BAAqB;AACnC,cAAc,oCAA2B;AACzC,cAAc,8BAAqB;AACnC,cAAc,4BAAmB;AACjC,cAAc,gCAAuB;AACrC,cAAc,4BAAmB;AACjC,cAAc,8BAAqB;AACnC,cAAc,+BAAsB;AACpC,cAAc,kCAAyB;AACvC,cAAc,kCAAyB;AACvC,cAAc,+BAAsB;AACpC,cAAc,0CAAiC;AAC/C,cAAc,mCAA0B;AACxC,cAAc,qCAA4B;AAC1C,cAAc,8BAAqB;AACnC,cAAc,gCAAuB;AACrC,cAAc,sCAA6B;AAC3C,cAAc,+BAAsB;AACpC,cAAc,+BAAsB;AACpC,cAAc,8BAAqB;AACnC,cAAc,4BAAmB;AACjC,cAAc,kCAAyB;AACvC,cAAc,6BAAoB;;AAElC;AACA,cAAc,0BAAiB;;AAE/B;AACA,cAAc,qCAA4B;AAC1C,SAASA,gBAAgB,QAAQ,qCAA4B;AAC7D,cAAc,4BAAmB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Primitives
|
|
2
|
+
|
|
3
|
+
## Attribution
|
|
4
|
+
|
|
5
|
+
The primitive components in this directory are adapted from **rn-primitives** library.
|
|
6
|
+
|
|
7
|
+
**Original source:** https://github.com/roninoss/rn-primitives
|
|
8
|
+
**Author:** @roninoss
|
|
9
|
+
**License:** MIT
|
|
10
|
+
|
|
11
|
+
These primitives have been adapted for use in HeroUI Native with modifications for:
|
|
12
|
+
|
|
13
|
+
- TypeScript compatibility and stricter typing
|
|
14
|
+
- Integration with HeroUI Native's theme system
|
|
15
|
+
- Enhanced accessibility features
|
|
16
|
+
- Custom styling patterns aligned with HeroUI design principles
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
These primitives serve as the foundation for HeroUI Native's component library. They provide:
|
|
21
|
+
|
|
22
|
+
- Unstyled, accessible base components
|
|
23
|
+
- Flexible composition patterns
|
|
24
|
+
- Controlled and uncontrolled component behavior
|
|
25
|
+
- React Native compatibility
|
|
26
|
+
|
|
27
|
+
For detailed usage of each primitive, refer to the individual component documentation.
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createContext, forwardRef, useContext, useId } from 'react';
|
|
4
|
+
import { Pressable, View } from 'react-native';
|
|
5
|
+
import { useControllableState } from "../../helpers/hooks/index.js";
|
|
6
|
+
import * as Slot from "../slot/index.js";
|
|
7
|
+
import { isItemSelected, toStringArray } from "./accordion.utils.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const AccordionContext = /*#__PURE__*/createContext(null);
|
|
10
|
+
const Root = /*#__PURE__*/forwardRef(({
|
|
11
|
+
asChild,
|
|
12
|
+
selectionMode = 'single',
|
|
13
|
+
isDisabled,
|
|
14
|
+
isCollapsible = true,
|
|
15
|
+
value: valueProp,
|
|
16
|
+
onValueChange: onValueChangeProps,
|
|
17
|
+
defaultValue,
|
|
18
|
+
...viewProps
|
|
19
|
+
}, ref) => {
|
|
20
|
+
const [value = selectionMode === 'multiple' ? [] : undefined, onValueChange] = useControllableState({
|
|
21
|
+
prop: valueProp,
|
|
22
|
+
defaultProp: defaultValue,
|
|
23
|
+
onChange: onValueChangeProps
|
|
24
|
+
});
|
|
25
|
+
const Component = asChild ? Slot.View : View;
|
|
26
|
+
return /*#__PURE__*/_jsx(AccordionContext.Provider, {
|
|
27
|
+
value: {
|
|
28
|
+
selectionMode,
|
|
29
|
+
isDisabled,
|
|
30
|
+
isCollapsible,
|
|
31
|
+
value,
|
|
32
|
+
onValueChange
|
|
33
|
+
},
|
|
34
|
+
children: /*#__PURE__*/_jsx(Component, {
|
|
35
|
+
ref: ref,
|
|
36
|
+
...viewProps
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
Root.displayName = 'HeroUINative.Primitive.Accordion.Root';
|
|
41
|
+
function useRootContext() {
|
|
42
|
+
const context = useContext(AccordionContext);
|
|
43
|
+
if (!context) {
|
|
44
|
+
throw new Error('Accordion compound components cannot be rendered outside the Accordion component');
|
|
45
|
+
}
|
|
46
|
+
return context;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// --------------------------------------------------
|
|
50
|
+
|
|
51
|
+
const AccordionItemContext = /*#__PURE__*/createContext(null);
|
|
52
|
+
const Item = /*#__PURE__*/forwardRef(({
|
|
53
|
+
asChild,
|
|
54
|
+
value,
|
|
55
|
+
isDisabled,
|
|
56
|
+
...viewProps
|
|
57
|
+
}, ref) => {
|
|
58
|
+
const {
|
|
59
|
+
value: rootValue
|
|
60
|
+
} = useRootContext();
|
|
61
|
+
const nativeID = useId();
|
|
62
|
+
const Component = asChild ? Slot.View : View;
|
|
63
|
+
return /*#__PURE__*/_jsx(AccordionItemContext.Provider, {
|
|
64
|
+
value: {
|
|
65
|
+
value,
|
|
66
|
+
isDisabled,
|
|
67
|
+
nativeID,
|
|
68
|
+
isExpanded: isItemSelected(rootValue, value)
|
|
69
|
+
},
|
|
70
|
+
children: /*#__PURE__*/_jsx(Component, {
|
|
71
|
+
ref: ref,
|
|
72
|
+
...viewProps
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
Item.displayName = 'HeroUINative.Primitive.Accordion.Item';
|
|
77
|
+
function useItemContext() {
|
|
78
|
+
const context = useContext(AccordionItemContext);
|
|
79
|
+
if (!context) {
|
|
80
|
+
throw new Error('AccordionItem compound components cannot be rendered outside the AccordionItem component');
|
|
81
|
+
}
|
|
82
|
+
return context;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// --------------------------------------------------
|
|
86
|
+
|
|
87
|
+
const Header = /*#__PURE__*/forwardRef(({
|
|
88
|
+
asChild,
|
|
89
|
+
...props
|
|
90
|
+
}, ref) => {
|
|
91
|
+
const {
|
|
92
|
+
isDisabled: rootDisabled
|
|
93
|
+
} = useRootContext();
|
|
94
|
+
const {
|
|
95
|
+
isDisabled: itemDisabled,
|
|
96
|
+
isExpanded
|
|
97
|
+
} = useItemContext();
|
|
98
|
+
const Component = asChild ? Slot.View : View;
|
|
99
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
100
|
+
ref: ref,
|
|
101
|
+
role: "heading",
|
|
102
|
+
"aria-expanded": isExpanded,
|
|
103
|
+
"aria-disabled": rootDisabled ?? itemDisabled,
|
|
104
|
+
...props
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
Header.displayName = 'HeroUINative.Primitive.Accordion.Header';
|
|
108
|
+
|
|
109
|
+
// --------------------------------------------------
|
|
110
|
+
|
|
111
|
+
const Trigger = /*#__PURE__*/forwardRef(({
|
|
112
|
+
asChild,
|
|
113
|
+
onPress: onPressProp,
|
|
114
|
+
isDisabled: disabledProp,
|
|
115
|
+
...props
|
|
116
|
+
}, ref) => {
|
|
117
|
+
const {
|
|
118
|
+
isDisabled: rootDisabled,
|
|
119
|
+
selectionMode,
|
|
120
|
+
onValueChange,
|
|
121
|
+
value: rootValue,
|
|
122
|
+
isCollapsible
|
|
123
|
+
} = useRootContext();
|
|
124
|
+
const {
|
|
125
|
+
nativeID,
|
|
126
|
+
isDisabled: itemDisabled,
|
|
127
|
+
value,
|
|
128
|
+
isExpanded
|
|
129
|
+
} = useItemContext();
|
|
130
|
+
function onPress(ev) {
|
|
131
|
+
if (rootDisabled || itemDisabled) return;
|
|
132
|
+
if (selectionMode === 'single') {
|
|
133
|
+
const newValue = isCollapsible ? value === rootValue ? undefined : value : value;
|
|
134
|
+
onValueChange(newValue);
|
|
135
|
+
}
|
|
136
|
+
if (selectionMode === 'multiple') {
|
|
137
|
+
const rootToArray = toStringArray(rootValue);
|
|
138
|
+
const newValue = isCollapsible ? rootToArray.includes(value) ? rootToArray.filter(val => val !== value) : rootToArray.concat(value) : [...new Set(rootToArray.concat(value))];
|
|
139
|
+
// @ts-ignore - `newValue` is of type `string[]` which is OK
|
|
140
|
+
onValueChange(newValue);
|
|
141
|
+
}
|
|
142
|
+
onPressProp?.(ev);
|
|
143
|
+
}
|
|
144
|
+
const isTriggerDisabled = disabledProp || rootDisabled || itemDisabled;
|
|
145
|
+
const Component = asChild ? Slot.Pressable : Pressable;
|
|
146
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
147
|
+
ref: ref,
|
|
148
|
+
nativeID: nativeID,
|
|
149
|
+
"aria-disabled": isTriggerDisabled,
|
|
150
|
+
role: "button",
|
|
151
|
+
onPress: onPress,
|
|
152
|
+
accessibilityState: {
|
|
153
|
+
expanded: isExpanded,
|
|
154
|
+
disabled: isTriggerDisabled
|
|
155
|
+
},
|
|
156
|
+
disabled: isTriggerDisabled,
|
|
157
|
+
...props
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
Trigger.displayName = 'HeroUINative.Primitive.Accordion.Trigger';
|
|
161
|
+
|
|
162
|
+
// --------------------------------------------------
|
|
163
|
+
|
|
164
|
+
const Indicator = /*#__PURE__*/forwardRef(({
|
|
165
|
+
asChild,
|
|
166
|
+
...props
|
|
167
|
+
}, ref) => {
|
|
168
|
+
const Component = asChild ? Slot.View : View;
|
|
169
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
170
|
+
ref: ref,
|
|
171
|
+
role: "presentation",
|
|
172
|
+
"aria-hidden": true,
|
|
173
|
+
...props
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
Indicator.displayName = 'HeroUINative.Primitive.Accordion.Indicator';
|
|
177
|
+
|
|
178
|
+
// --------------------------------------------------
|
|
179
|
+
|
|
180
|
+
const Content = /*#__PURE__*/forwardRef(({
|
|
181
|
+
asChild,
|
|
182
|
+
forceMount,
|
|
183
|
+
...props
|
|
184
|
+
}, ref) => {
|
|
185
|
+
const {
|
|
186
|
+
selectionMode
|
|
187
|
+
} = useRootContext();
|
|
188
|
+
const {
|
|
189
|
+
nativeID,
|
|
190
|
+
isExpanded
|
|
191
|
+
} = useItemContext();
|
|
192
|
+
if (!forceMount) {
|
|
193
|
+
if (!isExpanded) {
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
const Component = asChild ? Slot.View : View;
|
|
198
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
199
|
+
ref: ref,
|
|
200
|
+
"aria-hidden": !(forceMount || isExpanded),
|
|
201
|
+
"aria-labelledby": nativeID,
|
|
202
|
+
role: selectionMode === 'single' ? 'region' : 'summary',
|
|
203
|
+
...props
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
Content.displayName = 'HeroUINative.Primitive.Accordion.Content';
|
|
207
|
+
export { Content, Header, Indicator, Item, Root, Trigger, useItemContext, useRootContext };
|
|
208
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","forwardRef","useContext","useId","Pressable","View","useControllableState","Slot","isItemSelected","toStringArray","jsx","_jsx","AccordionContext","Root","asChild","selectionMode","isDisabled","isCollapsible","value","valueProp","onValueChange","onValueChangeProps","defaultValue","viewProps","ref","undefined","prop","defaultProp","onChange","Component","Provider","children","displayName","useRootContext","context","Error","AccordionItemContext","Item","rootValue","nativeID","isExpanded","useItemContext","Header","props","rootDisabled","itemDisabled","role","Trigger","onPress","onPressProp","disabledProp","ev","newValue","rootToArray","includes","filter","val","concat","Set","isTriggerDisabled","accessibilityState","expanded","disabled","Indicator","Content","forceMount"],"sourceRoot":"../../../../src","sources":["primitives/accordion/accordion.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,UAAU,EAAEC,UAAU,EAAEC,KAAK,QAAQ,OAAO;AACpE,SAASC,SAAS,EAAEC,IAAI,QAAoC,cAAc;AAC1E,SAASC,oBAAoB,QAAQ,8BAAqB;AAC1D,OAAO,KAAKC,IAAI,MAAM,kBAAS;AAgB/B,SAASC,cAAc,EAAEC,aAAa,QAAQ,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElE,MAAMC,gBAAgB,gBAAGZ,aAAa,CAAqB,IAAI,CAAC;AAEhE,MAAMa,IAAI,gBAAGZ,UAAU,CACrB,CACE;EACEa,OAAO;EACPC,aAAa,GAAG,QAAQ;EACxBC,UAAU;EACVC,aAAa,GAAG,IAAI;EACpBC,KAAK,EAAEC,SAAS;EAChBC,aAAa,EAAEC,kBAAkB;EACjCC,YAAY;EACZ,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAM,CACJN,KAAK,GAAGH,aAAa,KAAK,UAAU,GAAG,EAAE,GAAGU,SAAS,EACrDL,aAAa,CACd,GAAGd,oBAAoB,CAAkC;IACxDoB,IAAI,EAAEP,SAAS;IACfQ,WAAW,EAAEL,YAAY;IACzBM,QAAQ,EAAEP;EAGZ,CAAC,CAAC;EAEF,MAAMQ,SAAS,GAAGf,OAAO,GAAGP,IAAI,CAACF,IAAI,GAAGA,IAAI;EAE5C,oBACEM,IAAA,CAACC,gBAAgB,CAACkB,QAAQ;IACxBZ,KAAK,EAAE;MACLH,aAAa;MACbC,UAAU;MACVC,aAAa;MACbC,KAAK;MACLE;IACF,CAAE;IAAAW,QAAA,eAEFpB,IAAA,CAACkB,SAAS;MAACL,GAAG,EAAEA,GAAI;MAAA,GAAKD;IAAS,CAAG;EAAC,CACb,CAAC;AAEhC,CACF,CAAC;AAEDV,IAAI,CAACmB,WAAW,GAAG,uCAAuC;AAE1D,SAASC,cAAcA,CAAA,EAAG;EACxB,MAAMC,OAAO,GAAGhC,UAAU,CAACU,gBAAgB,CAAC;EAE5C,IAAI,CAACsB,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CACb,kFACF,CAAC;EACH;EAEA,OAAOD,OAAO;AAChB;;AAEA;;AAOA,MAAME,oBAAoB,gBAAGpC,aAAa,CAA8B,IAAI,CAAC;AAE7E,MAAMqC,IAAI,gBAAGpC,UAAU,CACrB,CAAC;EAAEa,OAAO;EAAEI,KAAK;EAAEF,UAAU;EAAE,GAAGO;AAAU,CAAC,EAAEC,GAAG,KAAK;EACrD,MAAM;IAAEN,KAAK,EAAEoB;EAAU,CAAC,GAAGL,cAAc,CAAC,CAAC;EAC7C,MAAMM,QAAQ,GAAGpC,KAAK,CAAC,CAAC;EAExB,MAAM0B,SAAS,GAAGf,OAAO,GAAGP,IAAI,CAACF,IAAI,GAAGA,IAAI;EAE5C,oBACEM,IAAA,CAACyB,oBAAoB,CAACN,QAAQ;IAC5BZ,KAAK,EAAE;MACLA,KAAK;MACLF,UAAU;MACVuB,QAAQ;MACRC,UAAU,EAAEhC,cAAc,CAAC8B,SAAS,EAAEpB,KAAK;IAC7C,CAAE;IAAAa,QAAA,eAEFpB,IAAA,CAACkB,SAAS;MAACL,GAAG,EAAEA,GAAI;MAAA,GAAKD;IAAS,CAAG;EAAC,CACT,CAAC;AAEpC,CACF,CAAC;AAEDc,IAAI,CAACL,WAAW,GAAG,uCAAuC;AAE1D,SAASS,cAAcA,CAAA,EAAG;EACxB,MAAMP,OAAO,GAAGhC,UAAU,CAACkC,oBAAoB,CAAC;EAEhD,IAAI,CAACF,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CACb,0FACF,CAAC;EACH;EAEA,OAAOD,OAAO;AAChB;;AAEA;;AAEA,MAAMQ,MAAM,gBAAGzC,UAAU,CACvB,CAAC;EAAEa,OAAO;EAAE,GAAG6B;AAAM,CAAC,EAAEnB,GAAG,KAAK;EAC9B,MAAM;IAAER,UAAU,EAAE4B;EAAa,CAAC,GAAGX,cAAc,CAAC,CAAC;EACrD,MAAM;IAAEjB,UAAU,EAAE6B,YAAY;IAAEL;EAAW,CAAC,GAAGC,cAAc,CAAC,CAAC;EAEjE,MAAMZ,SAAS,GAAGf,OAAO,GAAGP,IAAI,CAACF,IAAI,GAAGA,IAAI;EAC5C,oBACEM,IAAA,CAACkB,SAAS;IACRL,GAAG,EAAEA,GAAI;IACTsB,IAAI,EAAC,SAAS;IACd,iBAAeN,UAAW;IAC1B,iBAAeI,YAAY,IAAIC,YAAa;IAAA,GACxCF;EAAK,CACV,CAAC;AAEN,CACF,CAAC;AAEDD,MAAM,CAACV,WAAW,GAAG,yCAAyC;;AAE9D;;AAEA,MAAMe,OAAO,gBAAG9C,UAAU,CACxB,CACE;EAAEa,OAAO;EAAEkC,OAAO,EAAEC,WAAW;EAAEjC,UAAU,EAAEkC,YAAY;EAAE,GAAGP;AAAM,CAAC,EACrEnB,GAAG,KACA;EACH,MAAM;IACJR,UAAU,EAAE4B,YAAY;IACxB7B,aAAa;IACbK,aAAa;IACbF,KAAK,EAAEoB,SAAS;IAChBrB;EACF,CAAC,GAAGgB,cAAc,CAAC,CAAC;EAEpB,MAAM;IACJM,QAAQ;IACRvB,UAAU,EAAE6B,YAAY;IACxB3B,KAAK;IACLsB;EACF,CAAC,GAAGC,cAAc,CAAC,CAAC;EAEpB,SAASO,OAAOA,CAACG,EAAyB,EAAE;IAC1C,IAAIP,YAAY,IAAIC,YAAY,EAAE;IAElC,IAAI9B,aAAa,KAAK,QAAQ,EAAE;MAC9B,MAAMqC,QAAQ,GAAGnC,aAAa,GAC1BC,KAAK,KAAKoB,SAAS,GACjBb,SAAS,GACTP,KAAK,GACPA,KAAK;MACTE,aAAa,CAACgC,QAAQ,CAAC;IACzB;IAEA,IAAIrC,aAAa,KAAK,UAAU,EAAE;MAChC,MAAMsC,WAAW,GAAG5C,aAAa,CAAC6B,SAAS,CAAC;MAC5C,MAAMc,QAAQ,GAAGnC,aAAa,GAC1BoC,WAAW,CAACC,QAAQ,CAACpC,KAAK,CAAC,GACzBmC,WAAW,CAACE,MAAM,CAAEC,GAAG,IAAKA,GAAG,KAAKtC,KAAK,CAAC,GAC1CmC,WAAW,CAACI,MAAM,CAACvC,KAAK,CAAC,GAC3B,CAAC,GAAG,IAAIwC,GAAG,CAACL,WAAW,CAACI,MAAM,CAACvC,KAAK,CAAC,CAAC,CAAC;MAC3C;MACAE,aAAa,CAACgC,QAAQ,CAAC;IACzB;IAEAH,WAAW,GAAGE,EAAE,CAAC;EACnB;EAEA,MAAMQ,iBAAiB,GAAGT,YAAY,IAAIN,YAAY,IAAIC,YAAY;EACtE,MAAMhB,SAAS,GAAGf,OAAO,GAAGP,IAAI,CAACH,SAAS,GAAGA,SAAS;EAEtD,oBACEO,IAAA,CAACkB,SAAS;IACRL,GAAG,EAAEA,GAAI;IACTe,QAAQ,EAAEA,QAAS;IACnB,iBAAeoB,iBAAkB;IACjCb,IAAI,EAAC,QAAQ;IACbE,OAAO,EAAEA,OAAQ;IACjBY,kBAAkB,EAAE;MAClBC,QAAQ,EAAErB,UAAU;MACpBsB,QAAQ,EAAEH;IACZ,CAAE;IACFG,QAAQ,EAAEH,iBAAkB;IAAA,GACxBhB;EAAK,CACV,CAAC;AAEN,CACF,CAAC;AAEDI,OAAO,CAACf,WAAW,GAAG,0CAA0C;;AAEhE;;AAEA,MAAM+B,SAAS,gBAAG9D,UAAU,CAC1B,CAAC;EAAEa,OAAO;EAAE,GAAG6B;AAAM,CAAC,EAAEnB,GAAG,KAAK;EAC9B,MAAMK,SAAS,GAAGf,OAAO,GAAGP,IAAI,CAACF,IAAI,GAAGA,IAAI;EAE5C,oBACEM,IAAA,CAACkB,SAAS;IAACL,GAAG,EAAEA,GAAI;IAACsB,IAAI,EAAC,cAAc;IAAC,eAAa,IAAK;IAAA,GAAKH;EAAK,CAAG,CAAC;AAE7E,CACF,CAAC;AAEDoB,SAAS,CAAC/B,WAAW,GAAG,4CAA4C;;AAEpE;;AAEA,MAAMgC,OAAO,gBAAG/D,UAAU,CACxB,CAAC;EAAEa,OAAO;EAAEmD,UAAU;EAAE,GAAGtB;AAAM,CAAC,EAAEnB,GAAG,KAAK;EAC1C,MAAM;IAAET;EAAc,CAAC,GAAGkB,cAAc,CAAC,CAAC;EAC1C,MAAM;IAAEM,QAAQ;IAAEC;EAAW,CAAC,GAAGC,cAAc,CAAC,CAAC;EAEjD,IAAI,CAACwB,UAAU,EAAE;IACf,IAAI,CAACzB,UAAU,EAAE;MACf,OAAO,IAAI;IACb;EACF;EAEA,MAAMX,SAAS,GAAGf,OAAO,GAAGP,IAAI,CAACF,IAAI,GAAGA,IAAI;EAC5C,oBACEM,IAAA,CAACkB,SAAS;IACRL,GAAG,EAAEA,GAAI;IACT,eAAa,EAAEyC,UAAU,IAAIzB,UAAU,CAAE;IACzC,mBAAiBD,QAAS;IAC1BO,IAAI,EAAE/B,aAAa,KAAK,QAAQ,GAAG,QAAQ,GAAG,SAAU;IAAA,GACpD4B;EAAK,CACV,CAAC;AAEN,CACF,CAAC;AAEDqB,OAAO,CAAChC,WAAW,GAAG,0CAA0C;AAEhE,SACEgC,OAAO,EACPtB,MAAM,EACNqB,SAAS,EACT1B,IAAI,EACJxB,IAAI,EACJkC,OAAO,EACPN,cAAc,EACdR,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["primitives/accordion/accordion.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function toStringArray(value) {
|
|
4
|
+
return Array.isArray(value) ? value : value ? [value] : [];
|
|
5
|
+
}
|
|
6
|
+
export function isItemSelected(rootValue, value) {
|
|
7
|
+
return Array.isArray(rootValue) ? rootValue.includes(value) : rootValue === value;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=accordion.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["toStringArray","value","Array","isArray","isItemSelected","rootValue","includes"],"sourceRoot":"../../../../src","sources":["primitives/accordion/accordion.utils.ts"],"mappings":";;AAAA,OAAO,SAASA,aAAaA,CAACC,KAAyB,EAAE;EACvD,OAAOC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,GAAGA,KAAK,GAAGA,KAAK,GAAG,CAACA,KAAK,CAAC,GAAG,EAAE;AAC5D;AAEA,OAAO,SAASG,cAAcA,CAC5BC,SAAwC,EACxCJ,KAAa,EACb;EACA,OAAOC,KAAK,CAACC,OAAO,CAACE,SAAS,CAAC,GAC3BA,SAAS,CAACC,QAAQ,CAACL,KAAK,CAAC,GACzBI,SAAS,KAAKJ,KAAK;AACzB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["primitives/accordion/index.ts"],"mappings":";;AAAA,cAAc,gBAAa;AAC3B,cAAc,sBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import * as Slot from "../slot/index.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
// --------------------------------------------------
|
|
8
|
+
|
|
9
|
+
const Root = /*#__PURE__*/forwardRef(({
|
|
10
|
+
asChild,
|
|
11
|
+
isLoading = true,
|
|
12
|
+
...props
|
|
13
|
+
}, ref) => {
|
|
14
|
+
const Component = asChild ? Slot.View : View;
|
|
15
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
16
|
+
ref: ref,
|
|
17
|
+
accessible: true,
|
|
18
|
+
accessibilityRole: "progressbar",
|
|
19
|
+
accessibilityState: {
|
|
20
|
+
busy: isLoading
|
|
21
|
+
},
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
Root.displayName = 'HeroUINative.Primitive.ActivityIndicator.Root';
|
|
26
|
+
|
|
27
|
+
// --------------------------------------------------
|
|
28
|
+
|
|
29
|
+
const Indicator = /*#__PURE__*/forwardRef(({
|
|
30
|
+
asChild,
|
|
31
|
+
...props
|
|
32
|
+
}, ref) => {
|
|
33
|
+
const Component = asChild ? Slot.View : View;
|
|
34
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
35
|
+
ref: ref,
|
|
36
|
+
accessibilityElementsHidden: true,
|
|
37
|
+
importantForAccessibility: "no-hide-descendants",
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
Indicator.displayName = 'HeroUINative.Primitive.ActivityIndicator.Indicator';
|
|
42
|
+
export { Indicator, Root };
|
|
43
|
+
//# sourceMappingURL=activity-indicator.js.map
|