@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,291 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
|
+
import { Easing, interpolate, useAnimatedReaction, useAnimatedStyle, useDerivedValue, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
5
|
+
import { useUniwind } from 'uniwind';
|
|
6
|
+
import { useAnimationSettings } from "../../helpers/contexts/index.js";
|
|
7
|
+
import { useCombinedAnimationDisabledState } from "../../helpers/hooks/index.js";
|
|
8
|
+
import { createContext } from "../../helpers/utils/index.js";
|
|
9
|
+
import { getAnimationState, getAnimationValueMergedConfig, getAnimationValueProperty, getIsAnimationDisabledValue, getRootAnimationState } from "../../helpers/utils/animation.js";
|
|
10
|
+
import { BASE_RIPPLE_PROGRESS_DURATION, BASE_RIPPLE_PROGRESS_DURATION_MIN } from "./pressable-feedback.constants.js";
|
|
11
|
+
const [PressableFeedbackRootAnimationProvider, usePressableFeedbackRootAnimationContext] = createContext({
|
|
12
|
+
name: 'PressableFeedbackRootAnimationContext'
|
|
13
|
+
});
|
|
14
|
+
export { PressableFeedbackRootAnimationProvider, usePressableFeedbackRootAnimationContext };
|
|
15
|
+
|
|
16
|
+
// --------------------------------------------------
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Animation hook for PressableFeedback root component
|
|
20
|
+
* Handles scale animation only
|
|
21
|
+
*/
|
|
22
|
+
export function usePressableFeedbackRootAnimation(options) {
|
|
23
|
+
const {
|
|
24
|
+
animation
|
|
25
|
+
} = options;
|
|
26
|
+
const {
|
|
27
|
+
animationConfig,
|
|
28
|
+
isAnimationDisabled
|
|
29
|
+
} = getRootAnimationState(animation);
|
|
30
|
+
const isAllAnimationsDisabled = useCombinedAnimationDisabledState(animation);
|
|
31
|
+
const isAnimationDisabledValue = getIsAnimationDisabledValue({
|
|
32
|
+
isAnimationDisabled,
|
|
33
|
+
isAllAnimationsDisabled
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// Scale animation values
|
|
37
|
+
const scaleValue = getAnimationValueProperty({
|
|
38
|
+
animationValue: animationConfig?.scale,
|
|
39
|
+
property: 'value',
|
|
40
|
+
defaultValue: 0.985
|
|
41
|
+
});
|
|
42
|
+
const scaleTimingConfig = getAnimationValueMergedConfig({
|
|
43
|
+
animationValue: animationConfig?.scale,
|
|
44
|
+
property: 'timingConfig',
|
|
45
|
+
defaultValue: {
|
|
46
|
+
duration: 300,
|
|
47
|
+
easing: Easing.out(Easing.ease)
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const ignoreScaleCoefficient = getAnimationValueProperty({
|
|
51
|
+
animationValue: animationConfig?.scale,
|
|
52
|
+
property: 'ignoreScaleCoefficient',
|
|
53
|
+
defaultValue: false
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// Shared values
|
|
57
|
+
const isPressed = useSharedValue(false);
|
|
58
|
+
const scale = useSharedValue(0);
|
|
59
|
+
const containerWidth = useSharedValue(0);
|
|
60
|
+
const containerHeight = useSharedValue(0);
|
|
61
|
+
const adjustedScaleValue = useDerivedValue(() => {
|
|
62
|
+
// Calculate scale coefficient to maintain consistent scale effect across different sizes
|
|
63
|
+
// Can be disabled by setting ignoreScaleCoefficient to true
|
|
64
|
+
const coefficient = ignoreScaleCoefficient ? 1 : containerWidth.get() > 0 ? 300 / containerWidth.get() : 1;
|
|
65
|
+
return 1 - (1 - scaleValue) * coefficient;
|
|
66
|
+
});
|
|
67
|
+
const animationOnPressIn = useCallback(() => {
|
|
68
|
+
isPressed.set(true);
|
|
69
|
+
scale.set(withTiming(1, scaleTimingConfig));
|
|
70
|
+
}, [isPressed, scale, scaleTimingConfig]);
|
|
71
|
+
const animationOnPressOut = useCallback(() => {
|
|
72
|
+
isPressed.set(false);
|
|
73
|
+
scale.set(withTiming(0, scaleTimingConfig));
|
|
74
|
+
}, [isPressed, scale, scaleTimingConfig]);
|
|
75
|
+
const rContainerStyle = useAnimatedStyle(() => {
|
|
76
|
+
if (isAnimationDisabledValue) {
|
|
77
|
+
return {
|
|
78
|
+
transform: [{
|
|
79
|
+
scale: 1
|
|
80
|
+
}]
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
transform: [{
|
|
85
|
+
scale: interpolate(scale.get(), [0, 1], [1, adjustedScaleValue.get()])
|
|
86
|
+
}]
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
return {
|
|
90
|
+
rContainerStyle,
|
|
91
|
+
isAllAnimationsDisabled,
|
|
92
|
+
animationOnPressIn,
|
|
93
|
+
animationOnPressOut,
|
|
94
|
+
isPressed,
|
|
95
|
+
containerWidth,
|
|
96
|
+
containerHeight
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// --------------------------------------------------
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Animation hook for PressableFeedback highlight overlay
|
|
104
|
+
* Handles opacity and background color animations for the highlight effect
|
|
105
|
+
*/
|
|
106
|
+
export function usePressableFeedbackHighlightAnimation(options) {
|
|
107
|
+
const {
|
|
108
|
+
animation
|
|
109
|
+
} = options;
|
|
110
|
+
const {
|
|
111
|
+
theme
|
|
112
|
+
} = useUniwind();
|
|
113
|
+
const {
|
|
114
|
+
isAllAnimationsDisabled
|
|
115
|
+
} = useAnimationSettings();
|
|
116
|
+
const {
|
|
117
|
+
isPressed
|
|
118
|
+
} = usePressableFeedbackRootAnimationContext();
|
|
119
|
+
const {
|
|
120
|
+
animationConfig,
|
|
121
|
+
isAnimationDisabled
|
|
122
|
+
} = getAnimationState(animation);
|
|
123
|
+
const isAnimationDisabledValue = getIsAnimationDisabledValue({
|
|
124
|
+
isAnimationDisabled,
|
|
125
|
+
isAllAnimationsDisabled
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
// Background color
|
|
129
|
+
const defaultColor = theme === 'dark' ? '#d4d4d8' : '#3f3f46';
|
|
130
|
+
const backgroundColor = getAnimationValueProperty({
|
|
131
|
+
animationValue: animationConfig?.backgroundColor,
|
|
132
|
+
property: 'value',
|
|
133
|
+
defaultValue: defaultColor
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
// Opacity animation
|
|
137
|
+
const opacityValue = getAnimationValueProperty({
|
|
138
|
+
animationValue: animationConfig?.opacity,
|
|
139
|
+
property: 'value',
|
|
140
|
+
defaultValue: [0, 0.1]
|
|
141
|
+
});
|
|
142
|
+
const opacityTimingConfig = getAnimationValueMergedConfig({
|
|
143
|
+
animationValue: animationConfig?.opacity,
|
|
144
|
+
property: 'timingConfig',
|
|
145
|
+
defaultValue: {
|
|
146
|
+
duration: 200
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
const rContainerStyle = useAnimatedStyle(() => {
|
|
150
|
+
if (isAnimationDisabledValue) {
|
|
151
|
+
return {};
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
backgroundColor,
|
|
155
|
+
opacity: withTiming(isPressed.get() ? opacityValue[1] : opacityValue[0], opacityTimingConfig)
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
return {
|
|
159
|
+
rContainerStyle
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// --------------------------------------------------
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Animation hook for PressableFeedback ripple effect
|
|
167
|
+
* Handles ripple circle animation with radial gradient
|
|
168
|
+
*/
|
|
169
|
+
export function usePressableFeedbackRippleAnimation(options) {
|
|
170
|
+
const {
|
|
171
|
+
animation
|
|
172
|
+
} = options;
|
|
173
|
+
const {
|
|
174
|
+
theme
|
|
175
|
+
} = useUniwind();
|
|
176
|
+
const {
|
|
177
|
+
isAllAnimationsDisabled
|
|
178
|
+
} = useAnimationSettings();
|
|
179
|
+
const {
|
|
180
|
+
containerWidth,
|
|
181
|
+
containerHeight
|
|
182
|
+
} = usePressableFeedbackRootAnimationContext();
|
|
183
|
+
const pressedCenterX = useSharedValue(0);
|
|
184
|
+
const pressedCenterY = useSharedValue(0);
|
|
185
|
+
const rippleProgress = useSharedValue(0);
|
|
186
|
+
const isPressed = useSharedValue(false);
|
|
187
|
+
const {
|
|
188
|
+
animationConfig,
|
|
189
|
+
isAnimationDisabled
|
|
190
|
+
} = getAnimationState(animation);
|
|
191
|
+
const isAnimationDisabledValue = getIsAnimationDisabledValue({
|
|
192
|
+
isAnimationDisabled,
|
|
193
|
+
isAllAnimationsDisabled
|
|
194
|
+
});
|
|
195
|
+
const rippleProgressBaseDuration = getAnimationValueProperty({
|
|
196
|
+
animationValue: animationConfig?.progress,
|
|
197
|
+
property: 'baseDuration',
|
|
198
|
+
defaultValue: BASE_RIPPLE_PROGRESS_DURATION
|
|
199
|
+
});
|
|
200
|
+
const ignoreDurationCoefficient = getAnimationValueProperty({
|
|
201
|
+
animationValue: animationConfig?.progress,
|
|
202
|
+
property: 'ignoreDurationCoefficient',
|
|
203
|
+
defaultValue: false
|
|
204
|
+
});
|
|
205
|
+
const rippleProgressMinBaseDuration = getAnimationValueProperty({
|
|
206
|
+
animationValue: animationConfig?.progress,
|
|
207
|
+
property: 'minBaseDuration',
|
|
208
|
+
defaultValue: BASE_RIPPLE_PROGRESS_DURATION_MIN
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
// Calculate duration coefficient based on diagonal to maintain consistent ripple speed
|
|
212
|
+
const durationCoefficient = useDerivedValue(() => {
|
|
213
|
+
if (ignoreDurationCoefficient) return 1;
|
|
214
|
+
const baseDiagonal = 450;
|
|
215
|
+
const currentDiagonal = Math.sqrt(containerWidth.get() ** 2 + containerHeight.get() ** 2);
|
|
216
|
+
return currentDiagonal > 0 ? currentDiagonal / baseDiagonal : 1;
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
// Touch handlers for ripple
|
|
220
|
+
const animationOnTouchStart = useCallback(event => {
|
|
221
|
+
isPressed.set(true);
|
|
222
|
+
pressedCenterX.set(event.nativeEvent.locationX);
|
|
223
|
+
pressedCenterY.set(event.nativeEvent.locationY);
|
|
224
|
+
rippleProgress.set(0);
|
|
225
|
+
}, [isPressed, pressedCenterX, pressedCenterY, rippleProgress]);
|
|
226
|
+
useAnimatedReaction(() => isPressed.get(), isPressedValue => {
|
|
227
|
+
if (isPressedValue && rippleProgress.get() === 0) {
|
|
228
|
+
const adjustedDuration = Math.min(Math.max(rippleProgressBaseDuration * durationCoefficient.get(), rippleProgressMinBaseDuration), rippleProgressBaseDuration * 2);
|
|
229
|
+
rippleProgress.set(withTiming(1, {
|
|
230
|
+
duration: adjustedDuration
|
|
231
|
+
}));
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
const animationOnTouchEnd = useCallback(() => {
|
|
235
|
+
isPressed.set(false);
|
|
236
|
+
const adjustedDuration = Math.min(Math.max(rippleProgressBaseDuration * durationCoefficient.get(), rippleProgressMinBaseDuration), rippleProgressBaseDuration * 2);
|
|
237
|
+
rippleProgress.set(withTiming(2, {
|
|
238
|
+
duration: adjustedDuration
|
|
239
|
+
}));
|
|
240
|
+
}, [isPressed, rippleProgress, durationCoefficient, rippleProgressBaseDuration, rippleProgressMinBaseDuration]);
|
|
241
|
+
|
|
242
|
+
// Background color
|
|
243
|
+
const defaultColor = theme === 'dark' ? '#d4d4d8' : '#3f3f46';
|
|
244
|
+
const backgroundColor = getAnimationValueProperty({
|
|
245
|
+
animationValue: animationConfig?.backgroundColor,
|
|
246
|
+
property: 'value',
|
|
247
|
+
defaultValue: defaultColor
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
// Opacity animation
|
|
251
|
+
const opacityValue = getAnimationValueProperty({
|
|
252
|
+
animationValue: animationConfig?.opacity,
|
|
253
|
+
property: 'value',
|
|
254
|
+
defaultValue: [0, 0.1, 0]
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
// Scale animation
|
|
258
|
+
const scaleValue = getAnimationValueProperty({
|
|
259
|
+
animationValue: animationConfig?.scale,
|
|
260
|
+
property: 'value',
|
|
261
|
+
defaultValue: [0, 1, 1]
|
|
262
|
+
});
|
|
263
|
+
const rContainerStyle = useAnimatedStyle(() => {
|
|
264
|
+
if (isAnimationDisabledValue) {
|
|
265
|
+
return {};
|
|
266
|
+
}
|
|
267
|
+
const circleRadius = Math.sqrt(containerWidth.get() ** 2 + containerHeight.get() ** 2) * 1.25;
|
|
268
|
+
const translateX = pressedCenterX.get() - circleRadius;
|
|
269
|
+
const translateY = pressedCenterY.get() - circleRadius;
|
|
270
|
+
return {
|
|
271
|
+
width: circleRadius * 2,
|
|
272
|
+
height: circleRadius * 2,
|
|
273
|
+
borderRadius: circleRadius,
|
|
274
|
+
opacity: interpolate(rippleProgress.get(), [0, 1, 2], [opacityValue[0], opacityValue[1], opacityValue[2]]),
|
|
275
|
+
transform: [{
|
|
276
|
+
translateX
|
|
277
|
+
}, {
|
|
278
|
+
translateY
|
|
279
|
+
}, {
|
|
280
|
+
scale: interpolate(rippleProgress.get(), [0, 1, 2], [scaleValue[0], scaleValue[1], scaleValue[2]])
|
|
281
|
+
}]
|
|
282
|
+
};
|
|
283
|
+
});
|
|
284
|
+
return {
|
|
285
|
+
rContainerStyle,
|
|
286
|
+
backgroundColor,
|
|
287
|
+
animationOnTouchStart,
|
|
288
|
+
animationOnTouchEnd
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
//# sourceMappingURL=pressable-feedback.animation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","Easing","interpolate","useAnimatedReaction","useAnimatedStyle","useDerivedValue","useSharedValue","withTiming","useUniwind","useAnimationSettings","useCombinedAnimationDisabledState","createContext","getAnimationState","getAnimationValueMergedConfig","getAnimationValueProperty","getIsAnimationDisabledValue","getRootAnimationState","BASE_RIPPLE_PROGRESS_DURATION","BASE_RIPPLE_PROGRESS_DURATION_MIN","PressableFeedbackRootAnimationProvider","usePressableFeedbackRootAnimationContext","name","usePressableFeedbackRootAnimation","options","animation","animationConfig","isAnimationDisabled","isAllAnimationsDisabled","isAnimationDisabledValue","scaleValue","animationValue","scale","property","defaultValue","scaleTimingConfig","duration","easing","out","ease","ignoreScaleCoefficient","isPressed","containerWidth","containerHeight","adjustedScaleValue","coefficient","get","animationOnPressIn","set","animationOnPressOut","rContainerStyle","transform","usePressableFeedbackHighlightAnimation","theme","defaultColor","backgroundColor","opacityValue","opacity","opacityTimingConfig","usePressableFeedbackRippleAnimation","pressedCenterX","pressedCenterY","rippleProgress","rippleProgressBaseDuration","progress","ignoreDurationCoefficient","rippleProgressMinBaseDuration","durationCoefficient","baseDiagonal","currentDiagonal","Math","sqrt","animationOnTouchStart","event","nativeEvent","locationX","locationY","isPressedValue","adjustedDuration","min","max","animationOnTouchEnd","circleRadius","translateX","translateY","width","height","borderRadius"],"sourceRoot":"../../../../src","sources":["components/pressable-feedback/p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,CAAC,CAAC,EAAEA,YAAY,CAAC,CAAC,CAAC,CACpD,CAAC;MACDL,SAAS,EAAE,CACT;QAAEgC;MAAW,CAAC,EACd;QAAEC;MAAW,CAAC,EACd;QACEpD,KAAK,EAAE7B,WAAW,CAChB2D,cAAc,CAAChB,GAAG,CAAC,CAAC,EACpB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACT,CAAChB,UAAU,CAAC,CAAC,CAAC,EAAEA,UAAU,CAAC,CAAC,CAAC,EAAEA,UAAU,CAAC,CAAC,CAAC,CAC9C;MACF,CAAC;IAEL,CAAC;EACH,CAAC,CAAC;EAEF,OAAO;IACLoB,eAAe;IACfK,eAAe;IACfiB,qBAAqB;IACrBS;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Display names for PressableFeedback components
|
|
5
|
+
*/
|
|
6
|
+
export const DISPLAY_NAME = {
|
|
7
|
+
ROOT: 'HeroUINative.PressableFeedback.Root',
|
|
8
|
+
HIGHLIGHT: 'HeroUINative.PressableFeedback.Highlight',
|
|
9
|
+
RIPPLE: 'HeroUINative.PressableFeedback.Ripple'
|
|
10
|
+
};
|
|
11
|
+
export const BASE_RIPPLE_PROGRESS_DURATION = 1000;
|
|
12
|
+
export const BASE_RIPPLE_PROGRESS_DURATION_MIN = 750;
|
|
13
|
+
//# sourceMappingURL=pressable-feedback.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DISPLAY_NAME","ROOT","HIGHLIGHT","RIPPLE","BASE_RIPPLE_PROGRESS_DURATION","BASE_RIPPLE_PROGRESS_DURATION_MIN"],"sourceRoot":"../../../../src","sources":["components/pressable-feedback/pressable-feedback.constants.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAO,MAAMA,YAAY,GAAG;EAC1BC,IAAI,EAAE,qCAAqC;EAC3CC,SAAS,EAAE,0CAA0C;EACrDC,MAAM,EAAE;AACV,CAAU;AAEV,OAAO,MAAMC,6BAA6B,GAAG,IAAI;AACjD,OAAO,MAAMC,iCAAiC,GAAG,GAAG","ignoreList":[]}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useCallback, useMemo } from 'react';
|
|
4
|
+
import { Pressable, View } from 'react-native';
|
|
5
|
+
import Animated from 'react-native-reanimated';
|
|
6
|
+
import { AnimationSettingsProvider } from "../../helpers/contexts/animation-settings-context.js";
|
|
7
|
+
import { PressableFeedbackRootAnimationProvider, usePressableFeedbackHighlightAnimation, usePressableFeedbackRippleAnimation, usePressableFeedbackRootAnimation } from "./pressable-feedback.animation.js";
|
|
8
|
+
import { DISPLAY_NAME } from "./pressable-feedback.constants.js";
|
|
9
|
+
import pressableFeedbackStyles, { styleSheet } from "./pressable-feedback.styles.js";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
12
|
+
|
|
13
|
+
// --------------------------------------------------
|
|
14
|
+
|
|
15
|
+
const PressableFeedback = /*#__PURE__*/forwardRef((props, ref) => {
|
|
16
|
+
const {
|
|
17
|
+
isDisabled = false,
|
|
18
|
+
className,
|
|
19
|
+
style,
|
|
20
|
+
animation,
|
|
21
|
+
isAnimatedStyleActive = true,
|
|
22
|
+
children,
|
|
23
|
+
onLayout,
|
|
24
|
+
onPressIn,
|
|
25
|
+
onPressOut,
|
|
26
|
+
...restProps
|
|
27
|
+
} = props;
|
|
28
|
+
const rootClassName = pressableFeedbackStyles.root({
|
|
29
|
+
className
|
|
30
|
+
});
|
|
31
|
+
const {
|
|
32
|
+
isPressed,
|
|
33
|
+
containerWidth,
|
|
34
|
+
containerHeight,
|
|
35
|
+
rContainerStyle,
|
|
36
|
+
isAllAnimationsDisabled,
|
|
37
|
+
animationOnPressIn,
|
|
38
|
+
animationOnPressOut
|
|
39
|
+
} = usePressableFeedbackRootAnimation({
|
|
40
|
+
animation
|
|
41
|
+
});
|
|
42
|
+
const rootStyle = isAnimatedStyleActive ? [rContainerStyle, styleSheet.root, style] : [styleSheet.root, style];
|
|
43
|
+
const handleLayout = useCallback(event => {
|
|
44
|
+
containerWidth.set(event.nativeEvent.layout.width);
|
|
45
|
+
containerHeight.set(event.nativeEvent.layout.height);
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
onLayout?.(event);
|
|
48
|
+
}, [containerWidth, containerHeight, onLayout]);
|
|
49
|
+
const handlePressIn = useCallback(event => {
|
|
50
|
+
animationOnPressIn();
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
onPressIn?.(event);
|
|
53
|
+
}, [animationOnPressIn, onPressIn]);
|
|
54
|
+
const handlePressOut = useCallback(event => {
|
|
55
|
+
animationOnPressOut();
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
onPressOut?.(event);
|
|
58
|
+
}, [animationOnPressOut, onPressOut]);
|
|
59
|
+
const animationContextValue = useMemo(() => ({
|
|
60
|
+
isPressed,
|
|
61
|
+
containerWidth,
|
|
62
|
+
containerHeight
|
|
63
|
+
}), [isPressed, containerWidth, containerHeight]);
|
|
64
|
+
const animationSettingsContextValue = useMemo(() => ({
|
|
65
|
+
isAllAnimationsDisabled
|
|
66
|
+
}), [isAllAnimationsDisabled]);
|
|
67
|
+
return /*#__PURE__*/_jsx(AnimationSettingsProvider, {
|
|
68
|
+
value: animationSettingsContextValue,
|
|
69
|
+
children: /*#__PURE__*/_jsx(PressableFeedbackRootAnimationProvider, {
|
|
70
|
+
value: animationContextValue,
|
|
71
|
+
children: /*#__PURE__*/_jsx(AnimatedPressable, {
|
|
72
|
+
ref: ref,
|
|
73
|
+
disabled: isDisabled,
|
|
74
|
+
className: rootClassName,
|
|
75
|
+
style: rootStyle,
|
|
76
|
+
onLayout: handleLayout,
|
|
77
|
+
onPressIn: handlePressIn,
|
|
78
|
+
onPressOut: handlePressOut,
|
|
79
|
+
...restProps,
|
|
80
|
+
children: children
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// --------------------------------------------------
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Highlight component for PressableFeedback that renders highlight feedback effect
|
|
90
|
+
* Must be used within PressableFeedback component
|
|
91
|
+
*/
|
|
92
|
+
const PressableFeedbackHighlight = /*#__PURE__*/forwardRef((props, ref) => {
|
|
93
|
+
const {
|
|
94
|
+
animation,
|
|
95
|
+
className,
|
|
96
|
+
isAnimatedStyleActive = true,
|
|
97
|
+
style,
|
|
98
|
+
...restProps
|
|
99
|
+
} = props;
|
|
100
|
+
const {
|
|
101
|
+
rContainerStyle
|
|
102
|
+
} = usePressableFeedbackHighlightAnimation({
|
|
103
|
+
animation
|
|
104
|
+
});
|
|
105
|
+
const highlightClassName = pressableFeedbackStyles.highlight({
|
|
106
|
+
className
|
|
107
|
+
});
|
|
108
|
+
const highlightStyle = isAnimatedStyleActive ? [rContainerStyle, style] : style;
|
|
109
|
+
return /*#__PURE__*/_jsx(Animated.View, {
|
|
110
|
+
ref: ref,
|
|
111
|
+
pointerEvents: "none",
|
|
112
|
+
className: highlightClassName,
|
|
113
|
+
style: highlightStyle,
|
|
114
|
+
...restProps
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// --------------------------------------------------
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Ripple component for PressableFeedback that renders ripple feedback effect
|
|
122
|
+
* Must be used within PressableFeedback component
|
|
123
|
+
*/
|
|
124
|
+
const PressableFeedbackRipple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
125
|
+
const {
|
|
126
|
+
animation,
|
|
127
|
+
className,
|
|
128
|
+
classNames,
|
|
129
|
+
containerStyle,
|
|
130
|
+
rippleStyle: rippleStyleProp,
|
|
131
|
+
isAnimatedStyleActive = true,
|
|
132
|
+
onTouchStart,
|
|
133
|
+
onTouchEnd,
|
|
134
|
+
onTouchCancel,
|
|
135
|
+
...restProps
|
|
136
|
+
} = props;
|
|
137
|
+
const {
|
|
138
|
+
rContainerStyle,
|
|
139
|
+
backgroundColor,
|
|
140
|
+
animationOnTouchEnd,
|
|
141
|
+
animationOnTouchStart
|
|
142
|
+
} = usePressableFeedbackRippleAnimation({
|
|
143
|
+
animation
|
|
144
|
+
});
|
|
145
|
+
const {
|
|
146
|
+
container,
|
|
147
|
+
ripple: rippleSlot
|
|
148
|
+
} = pressableFeedbackStyles.ripple();
|
|
149
|
+
const containerClassName = container({
|
|
150
|
+
className: [className, classNames?.container]
|
|
151
|
+
});
|
|
152
|
+
const rippleClassName = rippleSlot({
|
|
153
|
+
className: classNames?.ripple
|
|
154
|
+
});
|
|
155
|
+
const rippleStyle = isAnimatedStyleActive ? [rContainerStyle, rippleStyleProp] : rippleStyleProp;
|
|
156
|
+
const handleTouchStart = useCallback(event => {
|
|
157
|
+
animationOnTouchStart(event);
|
|
158
|
+
onTouchStart?.(event);
|
|
159
|
+
}, [animationOnTouchStart, onTouchStart]);
|
|
160
|
+
const handleTouchEnd = useCallback(event => {
|
|
161
|
+
animationOnTouchEnd();
|
|
162
|
+
onTouchEnd?.(event);
|
|
163
|
+
}, [animationOnTouchEnd, onTouchEnd]);
|
|
164
|
+
const handleTouchCancel = useCallback(event => {
|
|
165
|
+
animationOnTouchEnd();
|
|
166
|
+
onTouchCancel?.(event);
|
|
167
|
+
}, [animationOnTouchEnd, onTouchCancel]);
|
|
168
|
+
return /*#__PURE__*/_jsx(View, {
|
|
169
|
+
ref: ref,
|
|
170
|
+
className: containerClassName,
|
|
171
|
+
style: containerStyle,
|
|
172
|
+
onTouchStart: handleTouchStart,
|
|
173
|
+
onTouchEnd: handleTouchEnd,
|
|
174
|
+
onTouchCancel: handleTouchCancel,
|
|
175
|
+
...restProps,
|
|
176
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
177
|
+
pointerEvents: "none",
|
|
178
|
+
className: rippleClassName,
|
|
179
|
+
style: [rippleStyle, {
|
|
180
|
+
experimental_backgroundImage: `radial-gradient(circle at center, ${backgroundColor} 30%, transparent 70%)`
|
|
181
|
+
}]
|
|
182
|
+
})
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
// --------------------------------------------------
|
|
187
|
+
|
|
188
|
+
PressableFeedback.displayName = DISPLAY_NAME.ROOT;
|
|
189
|
+
PressableFeedbackHighlight.displayName = DISPLAY_NAME.HIGHLIGHT;
|
|
190
|
+
PressableFeedbackRipple.displayName = DISPLAY_NAME.RIPPLE;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Container component that provides visual feedback for press interactions with automatic scale animation.
|
|
194
|
+
*
|
|
195
|
+
* @component PressableFeedback
|
|
196
|
+
* @description Wraps content to provide consistent press feedback across the app. Features platform-aware
|
|
197
|
+
* feedback with highlight effect (iOS-style) or ripple effect (Android-style) that emanates from press point.
|
|
198
|
+
* Includes intelligent scale animation that automatically adjusts based on container size for consistent feel.
|
|
199
|
+
* @features
|
|
200
|
+
* - Automatic scale animation with smart size adjustment
|
|
201
|
+
* - Customizable animations for opacity, color, duration, and scale
|
|
202
|
+
* - Full gesture handling with press, long press, and disabled states
|
|
203
|
+
* - Used as foundation for interactive components like Button, Card, and Accordion
|
|
204
|
+
*
|
|
205
|
+
* @component PressableFeedback.Highlight
|
|
206
|
+
* @description Highlight component that renders highlight feedback effect (iOS-style).
|
|
207
|
+
* Must be used within PressableFeedback component. Uses root's isPressed state from context.
|
|
208
|
+
*
|
|
209
|
+
* @component PressableFeedback.Ripple
|
|
210
|
+
* @description Ripple component that renders ripple feedback effect (Android-style).
|
|
211
|
+
* Must be used within PressableFeedback component. Handles touch events to track position.
|
|
212
|
+
*/
|
|
213
|
+
const PressableFeedbackCompound = Object.assign(PressableFeedback, {
|
|
214
|
+
/** Highlight component that renders highlight feedback effect */
|
|
215
|
+
Highlight: PressableFeedbackHighlight,
|
|
216
|
+
/** Ripple component that renders ripple feedback effect */
|
|
217
|
+
Ripple: PressableFeedbackRipple
|
|
218
|
+
});
|
|
219
|
+
export default PressableFeedbackCompound;
|
|
220
|
+
//# sourceMappingURL=pressable-feedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useCallback","useMemo","Pressable","View","Animated","AnimationSettingsProvider","PressableFeedbackRootAnimationProvider","usePressableFeedbackHighlightAnimation","usePressableFeedbackRippleAnimation","usePressableFeedbackRootAnimation","DISPLAY_NAME","pressableFeedbackStyles","styleSheet","jsx","_jsx","AnimatedPressable","createAnimatedComponent","PressableFeedback","props","ref","isDisabled","className","style","animation","isAnimatedStyleActive","children","onLayout","onPressIn","onPressOut","restProps","rootClassName","root","isPressed","containerWidth","containerHeight","rContainerStyle","isAllAnimationsDisabled","animationOnPressIn","animationOnPressOut","rootStyle","handleLayout","event","set","nativeEvent","layout","width","height","handlePressIn","handlePressOut","animationContextValue","animationSettingsContextValue","value","disabled","PressableFeedbackHighlight","highlightClassName","highlight","highlightStyle","pointerEvents","PressableFeedbackRipple","classNames","containerStyle","rippleStyle","rippleStyleProp","onTouchStart","onTouchEnd","onTouchCancel","backgroundColor","animationOnTouchEnd","animationOnTouchStart","container","ripple","rippleSlot","containerClassName","rippleClassName","handleTouchStart","handleTouchEnd","handleTouchCancel","experimental_backgroundImage","displayName","ROOT","HIGHLIGHT","RIPPLE","PressableFeedbackCompound","Object","assign","Highlight","Ripple"],"sourceRoot":"../../../../src","sources":["components/pressable-feedback/pressable-feedback.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACxD,SACEC,SAAS,EACTC,IAAI,QAGC,cAAc;AAErB,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,yBAAyB,QAAQ,sDAAmD;AAE7F,SACEC,sCAAsC,EACtCC,sCAAsC,EACtCC,mCAAmC,EACnCC,iCAAiC,QAC5B,mCAAgC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