tamagui 1.0.0-alpha.2 → 1.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{packages/tamagui/src → cjs}/helpers/normalizeColor.d.ts +0 -0
- package/dist/cjs/helpers/normalizeColor.d.ts.map +1 -0
- package/dist/cjs/helpers/normalizeColor.js +57 -0
- package/dist/cjs/helpers/normalizeColor.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/helpers/prevent.d.ts +0 -0
- package/dist/cjs/helpers/prevent.d.ts.map +1 -0
- package/dist/cjs/helpers/prevent.js +13 -0
- package/dist/cjs/helpers/prevent.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/hooks/useControllableState.d.ts +0 -0
- package/dist/cjs/hooks/useControllableState.d.ts.map +1 -0
- package/dist/cjs/hooks/useControllableState.js +51 -0
- package/dist/cjs/hooks/useControllableState.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/hooks/useDebounce.d.ts +0 -0
- package/dist/cjs/hooks/useDebounce.d.ts.map +1 -0
- package/dist/cjs/hooks/useDebounce.js +89 -0
- package/dist/cjs/hooks/useDebounce.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/hooks/useKeyboardDismissable.d.ts +0 -0
- package/dist/cjs/hooks/useKeyboardDismissable.d.ts.map +1 -0
- package/dist/cjs/hooks/useKeyboardDismissable.js +94 -0
- package/dist/cjs/hooks/useKeyboardDismissable.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/hooks/useLayout.d.ts +0 -0
- package/dist/cjs/hooks/useLayout.d.ts.map +1 -0
- package/dist/cjs/hooks/useLayout.js +79 -0
- package/dist/cjs/hooks/useLayout.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/index.d.ts +11 -7
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +64 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/viewTypes.d.ts +0 -0
- package/dist/cjs/viewTypes.d.ts.map +1 -0
- package/dist/cjs/viewTypes.js +4 -0
- package/dist/cjs/viewTypes.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/BlurView.d.ts +0 -0
- package/dist/cjs/views/BlurView.d.ts.map +1 -0
- package/dist/cjs/views/BlurView.js +89 -0
- package/dist/cjs/views/BlurView.js.map +7 -0
- package/dist/cjs/views/BlurView.native.d.ts +6 -0
- package/dist/cjs/views/BlurView.native.d.ts.map +1 -0
- package/dist/cjs/views/BlurView.native.js +38 -0
- package/dist/cjs/views/BlurView.native.js.map +7 -0
- package/dist/cjs/views/Box.d.ts +14 -0
- package/dist/cjs/views/Box.d.ts.map +1 -0
- package/dist/cjs/views/Box.js +33 -0
- package/dist/cjs/views/Box.js.map +7 -0
- package/dist/cjs/views/Button.d.ts +40 -0
- package/dist/cjs/views/Button.d.ts.map +1 -0
- package/dist/cjs/views/Button.js +119 -0
- package/dist/cjs/views/Button.js.map +7 -0
- package/dist/cjs/views/Circle.d.ts +8 -0
- package/dist/cjs/views/Circle.d.ts.map +1 -0
- package/dist/cjs/views/Circle.js +44 -0
- package/dist/cjs/views/Circle.js.map +7 -0
- package/dist/cjs/views/EnsureFlexed.d.ts +6 -0
- package/dist/cjs/views/EnsureFlexed.d.ts.map +1 -0
- package/dist/cjs/views/EnsureFlexed.js +37 -0
- package/dist/cjs/views/EnsureFlexed.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/ExitAnimationContext.d.ts +0 -0
- package/dist/cjs/views/ExitAnimationContext.d.ts.map +1 -0
- package/dist/cjs/views/ExitAnimationContext.js +33 -0
- package/dist/cjs/views/ExitAnimationContext.js.map +7 -0
- package/dist/cjs/views/Form.d.ts +16 -0
- package/dist/cjs/views/Form.d.ts.map +1 -0
- package/dist/cjs/views/Form.js +46 -0
- package/dist/cjs/views/Form.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Grid.d.ts +0 -0
- package/dist/cjs/views/Grid.d.ts.map +1 -0
- package/dist/cjs/views/Grid.js +61 -0
- package/dist/cjs/views/Grid.js.map +7 -0
- package/dist/cjs/views/Headings.d.ts +116 -0
- package/dist/cjs/views/Headings.d.ts.map +1 -0
- package/dist/cjs/views/Headings.js +75 -0
- package/dist/cjs/views/Headings.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Hoverable.d.ts +8 -4
- package/dist/cjs/views/Hoverable.d.ts.map +1 -0
- package/dist/cjs/views/Hoverable.js +90 -0
- package/dist/cjs/views/Hoverable.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/HoverablePopover.d.ts +4 -4
- package/dist/cjs/views/HoverablePopover.d.ts.map +1 -0
- package/dist/cjs/views/HoverablePopover.js +108 -0
- package/dist/cjs/views/HoverablePopover.js.map +7 -0
- package/dist/cjs/views/InteractiveContainer.d.ts +6 -0
- package/dist/cjs/views/InteractiveContainer.d.ts.map +1 -0
- package/dist/cjs/views/InteractiveContainer.js +38 -0
- package/dist/cjs/views/InteractiveContainer.js.map +7 -0
- package/dist/cjs/views/InteractiveFrame.d.ts +26 -0
- package/dist/cjs/views/InteractiveFrame.d.ts.map +1 -0
- package/dist/cjs/views/InteractiveFrame.js +89 -0
- package/dist/cjs/views/InteractiveFrame.js.map +7 -0
- package/dist/cjs/views/Layouts.d.ts +36 -0
- package/dist/cjs/views/Layouts.d.ts.map +1 -0
- package/dist/cjs/views/Layouts.js +64 -0
- package/dist/cjs/views/Layouts.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/LinearGradient.d.ts +0 -0
- package/dist/cjs/views/LinearGradient.d.ts.map +1 -0
- package/dist/cjs/views/LinearGradient.js +111 -0
- package/dist/cjs/views/LinearGradient.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/LinearGradient.native.d.ts +0 -0
- package/dist/cjs/views/LinearGradient.native.d.ts.map +1 -0
- package/dist/cjs/views/LinearGradient.native.js +65 -0
- package/dist/cjs/views/LinearGradient.native.js.map +7 -0
- package/dist/cjs/views/Modal.d.ts +22 -0
- package/dist/cjs/views/Modal.d.ts.map +1 -0
- package/dist/cjs/views/Modal.js +212 -0
- package/dist/cjs/views/Modal.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/NativeLinearGradientProps.d.ts +0 -0
- package/dist/cjs/views/NativeLinearGradientProps.d.ts.map +1 -0
- package/dist/cjs/views/NativeLinearGradientProps.js +4 -0
- package/dist/cjs/views/NativeLinearGradientProps.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Overlay.d.ts +0 -0
- package/dist/cjs/views/Overlay.d.ts.map +1 -0
- package/dist/cjs/views/Overlay.js +63 -0
- package/dist/cjs/views/Overlay.js.map +7 -0
- package/dist/cjs/views/Paragraph.d.ts +12 -0
- package/dist/cjs/views/Paragraph.d.ts.map +1 -0
- package/dist/cjs/views/Paragraph.js +34 -0
- package/dist/cjs/views/Paragraph.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Popover/Popover.d.ts +0 -0
- package/dist/cjs/views/Popover/Popover.d.ts.map +1 -0
- package/dist/cjs/views/Popover/Popover.js +157 -0
- package/dist/cjs/views/Popover/Popover.js.map +7 -0
- package/dist/cjs/views/Popover/PopoverArrow.d.ts +25 -0
- package/dist/cjs/views/Popover/PopoverArrow.d.ts.map +1 -0
- package/dist/cjs/views/Popover/PopoverArrow.js +52 -0
- package/dist/cjs/views/Popover/PopoverArrow.js.map +7 -0
- package/dist/cjs/views/Popover/PopoverContent.d.ts +25 -0
- package/dist/cjs/views/Popover/PopoverContent.d.ts.map +1 -0
- package/dist/cjs/views/Popover/PopoverContent.js +88 -0
- package/dist/cjs/views/Popover/PopoverContent.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Popover/PopoverContext.d.ts +0 -0
- package/dist/cjs/views/Popover/PopoverContext.d.ts.map +1 -0
- package/dist/cjs/views/Popover/PopoverContext.js +43 -0
- package/dist/cjs/views/Popover/PopoverContext.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Popover/PopoverProvider.d.ts +0 -0
- package/dist/cjs/views/Popover/PopoverProvider.d.ts.map +1 -0
- package/dist/cjs/views/Popover/PopoverProvider.js +35 -0
- package/dist/cjs/views/Popover/PopoverProvider.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Popover/types.d.ts +0 -0
- package/dist/cjs/views/Popover/types.d.ts.map +1 -0
- package/dist/cjs/views/Popover/types.js +4 -0
- package/dist/cjs/views/Popover/types.js.map +7 -0
- package/dist/cjs/views/Popper.d.ts +64 -0
- package/dist/cjs/views/Popper.d.ts.map +1 -0
- package/dist/cjs/views/Popper.js +235 -0
- package/dist/cjs/views/Popper.js.map +7 -0
- package/dist/cjs/views/SafeAreaProvider.d.ts +6 -0
- package/dist/cjs/views/SafeAreaProvider.d.ts.map +1 -0
- package/dist/cjs/views/SafeAreaProvider.js +49 -0
- package/dist/cjs/views/SafeAreaProvider.js.map +7 -0
- package/dist/cjs/views/Separator.d.ts +6 -0
- package/dist/cjs/views/Separator.d.ts.map +1 -0
- package/dist/cjs/views/Separator.js +43 -0
- package/dist/cjs/views/Separator.js.map +7 -0
- package/dist/cjs/views/SizableText.d.ts +8 -0
- package/dist/cjs/views/SizableText.d.ts.map +1 -0
- package/dist/cjs/views/SizableText.js +71 -0
- package/dist/cjs/views/SizableText.js.map +7 -0
- package/dist/cjs/views/Stacks.d.ts +30 -0
- package/dist/cjs/views/Stacks.d.ts.map +1 -0
- package/dist/cjs/views/Stacks.js +70 -0
- package/dist/cjs/views/Stacks.js.map +7 -0
- package/dist/cjs/views/Table.d.ts +33 -0
- package/dist/cjs/views/Table.d.ts.map +1 -0
- package/dist/cjs/views/Table.js +73 -0
- package/dist/cjs/views/Table.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Toast.d.ts +0 -0
- package/dist/cjs/views/Toast.d.ts.map +1 -0
- package/dist/cjs/views/Toast.js +130 -0
- package/dist/cjs/views/Toast.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Tooltip.d.ts +0 -0
- package/dist/cjs/views/Tooltip.d.ts.map +1 -0
- package/dist/cjs/views/Tooltip.js +93 -0
- package/dist/cjs/views/Tooltip.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/TouchableOpacity.d.ts +0 -0
- package/dist/cjs/views/TouchableOpacity.d.ts.map +1 -0
- package/dist/cjs/views/TouchableOpacity.js +68 -0
- package/dist/cjs/views/TouchableOpacity.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Transitions/PresenceTransition.d.ts +0 -0
- package/dist/cjs/views/Transitions/PresenceTransition.d.ts.map +1 -0
- package/dist/cjs/views/Transitions/PresenceTransition.js +82 -0
- package/dist/cjs/views/Transitions/PresenceTransition.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Transitions/Transition.d.ts +0 -0
- package/dist/cjs/views/Transitions/Transition.d.ts.map +1 -0
- package/dist/cjs/views/Transitions/Transition.js +189 -0
- package/dist/cjs/views/Transitions/Transition.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Transitions/index.d.ts +0 -0
- package/dist/cjs/views/Transitions/index.d.ts.map +1 -0
- package/dist/cjs/views/Transitions/index.js +28 -0
- package/dist/cjs/views/Transitions/index.js.map +7 -0
- package/dist/{packages/tamagui/src → cjs}/views/Transitions/types.d.ts +0 -0
- package/dist/cjs/views/Transitions/types.d.ts.map +1 -0
- package/dist/cjs/views/Transitions/types.js +4 -0
- package/dist/cjs/views/Transitions/types.js.map +7 -0
- package/dist/cjs/views/VisuallyHidden.d.ts +6 -0
- package/dist/cjs/views/VisuallyHidden.d.ts.map +1 -0
- package/dist/cjs/views/VisuallyHidden.js +39 -0
- package/dist/cjs/views/VisuallyHidden.js.map +7 -0
- package/dist/{helpers → esm/helpers}/normalizeColor.js +0 -0
- package/dist/{helpers → esm/helpers}/normalizeColor.js.map +1 -1
- package/dist/{helpers → esm/helpers}/prevent.js +0 -0
- package/dist/{helpers → esm/helpers}/prevent.js.map +1 -1
- package/dist/{hooks → esm/hooks}/useControllableState.js +0 -0
- package/dist/{hooks → esm/hooks}/useControllableState.js.map +1 -1
- package/dist/{hooks → esm/hooks}/useDebounce.js +0 -0
- package/dist/{hooks → esm/hooks}/useDebounce.js.map +1 -1
- package/dist/{hooks → esm/hooks}/useKeyboardDismissable.js +0 -0
- package/dist/{hooks → esm/hooks}/useKeyboardDismissable.js.map +1 -1
- package/dist/{hooks → esm/hooks}/useLayout.js +0 -0
- package/dist/{hooks → esm/hooks}/useLayout.js.map +1 -1
- package/dist/{index.js → esm/index.js} +14 -8
- package/dist/esm/index.js.map +7 -0
- package/dist/{viewTypes.js → esm/viewTypes.js} +0 -0
- package/dist/{viewTypes.js.map → esm/viewTypes.js.map} +0 -0
- package/dist/{views → esm/views}/BlurView.js +0 -0
- package/dist/{views → esm/views}/BlurView.js.map +1 -1
- package/dist/{views → esm/views}/BlurView.native.js +0 -0
- package/dist/{views → esm/views}/BlurView.native.js.map +1 -1
- package/dist/{views → esm/views}/Box.js +0 -0
- package/dist/esm/views/Box.js.map +7 -0
- package/dist/esm/views/Button.js +62 -0
- package/dist/esm/views/Button.js.map +7 -0
- package/dist/{views → esm/views}/Circle.js +0 -0
- package/dist/esm/views/Circle.js.map +7 -0
- package/dist/{views → esm/views}/EnsureFlexed.js +0 -0
- package/dist/{views → esm/views}/EnsureFlexed.js.map +1 -1
- package/dist/{views → esm/views}/ExitAnimationContext.js +0 -0
- package/dist/{views → esm/views}/ExitAnimationContext.js.map +1 -1
- package/dist/{views → esm/views}/Form.js +0 -0
- package/dist/{views → esm/views}/Form.js.map +1 -1
- package/dist/{views → esm/views}/Grid.js +0 -0
- package/dist/{views → esm/views}/Grid.js.map +1 -1
- package/dist/{views → esm/views}/Headings.js +3 -3
- package/dist/{views → esm/views}/Headings.js.map +2 -2
- package/dist/{views → esm/views}/Hoverable.js +10 -3
- package/dist/esm/views/Hoverable.js.map +7 -0
- package/dist/{views → esm/views}/HoverablePopover.js +2 -2
- package/dist/esm/views/HoverablePopover.js.map +7 -0
- package/dist/{views → esm/views}/InteractiveContainer.js +0 -0
- package/dist/esm/views/InteractiveContainer.js.map +7 -0
- package/dist/{views → esm/views}/InteractiveFrame.js +3 -8
- package/dist/esm/views/InteractiveFrame.js.map +7 -0
- package/dist/{views → esm/views}/Layouts.js +0 -0
- package/dist/{views → esm/views}/Layouts.js.map +1 -1
- package/dist/{views → esm/views}/LinearGradient.js +1 -1
- package/dist/esm/views/LinearGradient.js.map +7 -0
- package/dist/{views → esm/views}/LinearGradient.native.js +0 -0
- package/dist/esm/views/LinearGradient.native.js.map +7 -0
- package/dist/{views → esm/views}/Modal.js +5 -4
- package/dist/esm/views/Modal.js.map +7 -0
- package/dist/{views → esm/views}/NativeLinearGradientProps.js +0 -0
- package/dist/{views → esm/views}/NativeLinearGradientProps.js.map +0 -0
- package/dist/{views → esm/views}/Overlay.js +1 -2
- package/dist/esm/views/Overlay.js.map +7 -0
- package/dist/{views → esm/views}/Paragraph.js +0 -0
- package/dist/{views → esm/views}/Paragraph.js.map +1 -1
- package/dist/{views → esm/views}/Popover/Popover.js +0 -0
- package/dist/{views → esm/views}/Popover/Popover.js.map +3 -3
- package/dist/{views → esm/views}/Popover/PopoverArrow.js +0 -0
- package/dist/{views → esm/views}/Popover/PopoverArrow.js.map +1 -1
- package/dist/{views → esm/views}/Popover/PopoverContent.js +0 -0
- package/dist/{views → esm/views}/Popover/PopoverContent.js.map +1 -1
- package/dist/{views → esm/views}/Popover/PopoverContext.js +0 -0
- package/dist/{views → esm/views}/Popover/PopoverContext.js.map +1 -1
- package/dist/{views → esm/views}/Popover/PopoverProvider.js +1 -1
- package/dist/{views → esm/views}/Popover/PopoverProvider.js.map +2 -2
- package/dist/{views → esm/views}/Popover/types.js +0 -0
- package/dist/{views → esm/views}/Popover/types.js.map +0 -0
- package/dist/{views → esm/views}/Popper.js +2 -0
- package/dist/{views → esm/views}/Popper.js.map +3 -3
- package/dist/esm/views/SafeAreaProvider.js +30 -0
- package/dist/esm/views/SafeAreaProvider.js.map +7 -0
- package/dist/{views → esm/views}/Separator.js +0 -0
- package/dist/{views → esm/views}/Separator.js.map +1 -1
- package/dist/{views → esm/views}/SizableText.js +13 -6
- package/dist/esm/views/SizableText.js.map +7 -0
- package/dist/{views → esm/views}/Stacks.js +1 -2
- package/dist/esm/views/Stacks.js.map +7 -0
- package/dist/{views → esm/views}/Table.js +0 -0
- package/dist/{views → esm/views}/Table.js.map +1 -1
- package/dist/{views → esm/views}/Toast.js +1 -1
- package/dist/esm/views/Toast.js.map +7 -0
- package/dist/{views → esm/views}/Tooltip.js +6 -4
- package/dist/esm/views/Tooltip.js.map +7 -0
- package/dist/{views → esm/views}/TouchableOpacity.js +0 -0
- package/dist/{views → esm/views}/TouchableOpacity.js.map +1 -1
- package/dist/{views → esm/views}/Transitions/PresenceTransition.js +0 -0
- package/dist/{views → esm/views}/Transitions/PresenceTransition.js.map +3 -3
- package/dist/{views → esm/views}/Transitions/Transition.js +0 -0
- package/dist/{views → esm/views}/Transitions/Transition.js.map +1 -1
- package/dist/{views → esm/views}/Transitions/index.js +0 -0
- package/dist/{views → esm/views}/Transitions/index.js.map +1 -1
- package/dist/{views → esm/views}/Transitions/types.js +0 -0
- package/dist/{views → esm/views}/Transitions/types.js.map +0 -0
- package/dist/{views → esm/views}/VisuallyHidden.js +0 -0
- package/dist/{views → esm/views}/VisuallyHidden.js.map +1 -1
- package/{_jsx → dist/jsx}/helpers/normalizeColor.js +0 -0
- package/{_jsx → dist/jsx}/helpers/prevent.js +0 -0
- package/{_jsx → dist/jsx}/hooks/useControllableState.js +0 -0
- package/{_jsx → dist/jsx}/hooks/useDebounce.js +0 -0
- package/{_jsx → dist/jsx}/hooks/useKeyboardDismissable.js +0 -0
- package/{_jsx → dist/jsx}/hooks/useLayout.js +0 -0
- package/{_jsx → dist/jsx}/index.js +14 -8
- package/{_jsx → dist/jsx}/viewTypes.js +0 -0
- package/{_jsx → dist/jsx}/views/BlurView.js +0 -0
- package/{_jsx → dist/jsx}/views/BlurView.native.js +0 -0
- package/{_jsx → dist/jsx}/views/Box.js +0 -0
- package/dist/jsx/views/Button.js +47 -0
- package/{_jsx → dist/jsx}/views/Circle.js +0 -0
- package/{_jsx → dist/jsx}/views/EnsureFlexed.js +0 -0
- package/{_jsx → dist/jsx}/views/ExitAnimationContext.js +0 -0
- package/{_jsx → dist/jsx}/views/Form.js +0 -0
- package/{_jsx → dist/jsx}/views/Grid.js +0 -0
- package/{_jsx → dist/jsx}/views/Headings.js +3 -3
- package/{_jsx → dist/jsx}/views/Hoverable.js +10 -3
- package/{_jsx → dist/jsx}/views/HoverablePopover.js +2 -2
- package/{_jsx → dist/jsx}/views/InteractiveContainer.js +0 -0
- package/{_jsx → dist/jsx}/views/InteractiveFrame.js +3 -8
- package/{_jsx → dist/jsx}/views/Layouts.js +0 -0
- package/{_jsx → dist/jsx}/views/LinearGradient.js +1 -1
- package/{_jsx → dist/jsx}/views/LinearGradient.native.js +0 -0
- package/{_jsx → dist/jsx}/views/Modal.js +4 -4
- package/{_jsx → dist/jsx}/views/NativeLinearGradientProps.js +0 -0
- package/{_jsx → dist/jsx}/views/Overlay.js +1 -2
- package/{_jsx → dist/jsx}/views/Paragraph.js +0 -0
- package/{_jsx → dist/jsx}/views/Popover/Popover.js +0 -0
- package/{_jsx → dist/jsx}/views/Popover/PopoverArrow.js +0 -0
- package/{_jsx → dist/jsx}/views/Popover/PopoverContent.js +0 -0
- package/{_jsx → dist/jsx}/views/Popover/PopoverContext.js +0 -0
- package/{_jsx → dist/jsx}/views/Popover/PopoverProvider.js +1 -1
- package/{_jsx → dist/jsx}/views/Popover/types.js +0 -0
- package/{_jsx → dist/jsx}/views/Popper.js +2 -0
- package/dist/jsx/views/SafeAreaProvider.js +26 -0
- package/{_jsx → dist/jsx}/views/Separator.js +0 -0
- package/{_jsx → dist/jsx}/views/SizableText.js +13 -6
- package/{_jsx → dist/jsx}/views/Stacks.js +1 -2
- package/{_jsx → dist/jsx}/views/Table.js +0 -0
- package/{_jsx → dist/jsx}/views/Toast.js +1 -1
- package/{_jsx → dist/jsx}/views/Tooltip.js +5 -2
- package/{_jsx → dist/jsx}/views/TouchableOpacity.js +0 -0
- package/{_jsx → dist/jsx}/views/Transitions/PresenceTransition.js +0 -0
- package/{_jsx → dist/jsx}/views/Transitions/Transition.js +0 -0
- package/{_jsx → dist/jsx}/views/Transitions/index.js +0 -0
- package/{_jsx → dist/jsx}/views/Transitions/types.js +0 -0
- package/{_jsx → dist/jsx}/views/VisuallyHidden.js +0 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +19 -15
- package/src/helpers/normalizeColor.tsx +38 -0
- package/src/helpers/prevent.tsx +1 -0
- package/src/hooks/useControllableState.ts +74 -0
- package/src/hooks/useDebounce.ts +82 -0
- package/src/hooks/useKeyboardDismissable.tsx +97 -0
- package/src/hooks/useLayout.tsx +62 -0
- package/src/index.ts +43 -0
- package/src/viewTypes.tsx +50 -0
- package/src/views/BlurView.native.tsx +37 -0
- package/src/views/BlurView.tsx +67 -0
- package/src/views/Box.tsx +10 -0
- package/src/views/Button.tsx +107 -0
- package/src/views/Circle.tsx +26 -0
- package/src/views/EnsureFlexed.tsx +13 -0
- package/src/views/ExitAnimationContext.ts +28 -0
- package/src/views/Form.tsx +41 -0
- package/src/views/Grid.tsx +49 -0
- package/src/views/Headings.tsx +50 -0
- package/src/views/Hoverable.tsx +95 -0
- package/src/views/HoverablePopover.tsx +146 -0
- package/src/views/InteractiveContainer.tsx +12 -0
- package/src/views/InteractiveFrame.tsx +81 -0
- package/src/views/Layouts.tsx +41 -0
- package/src/views/LinearGradient.native.tsx +18 -0
- package/src/views/LinearGradient.tsx +74 -0
- package/src/views/Modal.tsx +173 -0
- package/src/views/NativeLinearGradientProps.tsx +12 -0
- package/src/views/Overlay.tsx +77 -0
- package/src/views/Paragraph.tsx +11 -0
- package/src/views/Popover/Popover.tsx +150 -0
- package/src/views/Popover/PopoverArrow.tsx +31 -0
- package/src/views/Popover/PopoverContent.tsx +79 -0
- package/src/views/Popover/PopoverContext.tsx +36 -0
- package/src/views/Popover/PopoverProvider.tsx +14 -0
- package/src/views/Popover/types.ts +174 -0
- package/src/views/Popper.tsx +325 -0
- package/src/views/SafeAreaProvider.tsx +33 -0
- package/src/views/Separator.tsx +18 -0
- package/src/views/SizableText.tsx +55 -0
- package/src/views/Stacks.tsx +50 -0
- package/src/views/Table.tsx +51 -0
- package/src/views/Toast.tsx +122 -0
- package/src/views/Tooltip.tsx +66 -0
- package/src/views/TouchableOpacity.tsx +30 -0
- package/src/views/Transitions/PresenceTransition.tsx +59 -0
- package/src/views/Transitions/Transition.tsx +199 -0
- package/src/views/Transitions/index.ts +24 -0
- package/src/views/Transitions/types.ts +139 -0
- package/src/views/VisuallyHidden.tsx +15 -0
- package/types/helpers/normalizeColor.d.ts +2 -0
- package/types/helpers/normalizeColor.d.ts.map +1 -0
- package/types/helpers/prevent.d.ts +2 -0
- package/types/helpers/prevent.d.ts.map +1 -0
- package/types/hooks/useControllableState.d.ts +10 -0
- package/types/hooks/useControllableState.d.ts.map +1 -0
- package/types/hooks/useDebounce.d.ts +12 -0
- package/types/hooks/useDebounce.d.ts.map +1 -0
- package/types/hooks/useKeyboardDismissable.d.ts +13 -0
- package/types/hooks/useKeyboardDismissable.d.ts.map +1 -0
- package/types/hooks/useLayout.d.ts +15 -0
- package/types/hooks/useLayout.d.ts.map +1 -0
- package/types/index.d.ts +38 -0
- package/types/index.d.ts.map +1 -0
- package/types/viewTypes.d.ts +43 -0
- package/types/viewTypes.d.ts.map +1 -0
- package/types/views/BlurView.d.ts +11 -0
- package/types/views/BlurView.d.ts.map +1 -0
- package/types/views/BlurView.native.d.ts +2 -0
- package/types/views/BlurView.native.d.ts.map +1 -0
- package/types/views/Box.d.ts +4 -0
- package/types/views/Box.d.ts.map +1 -0
- package/{dist/packages/tamagui/src → types}/views/Button.d.ts +3 -2
- package/types/views/Button.d.ts.map +1 -0
- package/types/views/Circle.d.ts +4 -0
- package/types/views/Circle.d.ts.map +1 -0
- package/types/views/EnsureFlexed.d.ts +2 -0
- package/types/views/EnsureFlexed.d.ts.map +1 -0
- package/types/views/ExitAnimationContext.d.ts +6 -0
- package/types/views/ExitAnimationContext.d.ts.map +1 -0
- package/types/views/Form.d.ts +4 -0
- package/types/views/Form.d.ts.map +1 -0
- package/types/views/Grid.d.ts +9 -0
- package/types/views/Grid.d.ts.map +1 -0
- package/types/views/Headings.d.ts +8 -0
- package/types/views/Headings.d.ts.map +1 -0
- package/types/views/Hoverable.d.ts +18 -0
- package/types/views/Hoverable.d.ts.map +1 -0
- package/types/views/HoverablePopover.d.ts +16 -0
- package/types/views/HoverablePopover.d.ts.map +1 -0
- package/types/views/InteractiveContainer.d.ts +2 -0
- package/types/views/InteractiveContainer.d.ts.map +1 -0
- package/types/views/InteractiveFrame.d.ts +4 -0
- package/types/views/InteractiveFrame.d.ts.map +1 -0
- package/types/views/Layouts.d.ts +8 -0
- package/types/views/Layouts.d.ts.map +1 -0
- package/types/views/LinearGradient.d.ts +2 -0
- package/types/views/LinearGradient.d.ts.map +1 -0
- package/types/views/LinearGradient.native.d.ts +2 -0
- package/types/views/LinearGradient.native.d.ts.map +1 -0
- package/types/views/Modal.d.ts +12 -0
- package/types/views/Modal.d.ts.map +1 -0
- package/types/views/NativeLinearGradientProps.d.ts +10 -0
- package/types/views/NativeLinearGradientProps.d.ts.map +1 -0
- package/types/views/Overlay.d.ts +11 -0
- package/types/views/Overlay.d.ts.map +1 -0
- package/types/views/Paragraph.d.ts +4 -0
- package/types/views/Paragraph.d.ts.map +1 -0
- package/types/views/Popover/Popover.d.ts +11 -0
- package/types/views/Popover/Popover.d.ts.map +1 -0
- package/types/views/Popover/PopoverArrow.d.ts +3 -0
- package/types/views/Popover/PopoverArrow.d.ts.map +1 -0
- package/types/views/Popover/PopoverContent.d.ts +3 -0
- package/types/views/Popover/PopoverContent.d.ts.map +1 -0
- package/types/views/Popover/PopoverContext.d.ts +14 -0
- package/types/views/Popover/PopoverContext.d.ts.map +1 -0
- package/types/views/Popover/PopoverProvider.d.ts +5 -0
- package/types/views/Popover/PopoverProvider.d.ts.map +1 -0
- package/types/views/Popover/types.d.ts +81 -0
- package/types/views/Popover/types.d.ts.map +1 -0
- package/types/views/Popper.d.ts +41 -0
- package/types/views/Popper.d.ts.map +1 -0
- package/types/views/SafeAreaProvider.d.ts +6 -0
- package/types/views/SafeAreaProvider.d.ts.map +1 -0
- package/types/views/Separator.d.ts +2 -0
- package/types/views/Separator.d.ts.map +1 -0
- package/types/views/SizableText.d.ts +4 -0
- package/types/views/SizableText.d.ts.map +1 -0
- package/types/views/Stacks.d.ts +4 -0
- package/types/views/Stacks.d.ts.map +1 -0
- package/types/views/Table.d.ts +9 -0
- package/types/views/Table.d.ts.map +1 -0
- package/types/views/Toast.d.ts +13 -0
- package/types/views/Toast.d.ts.map +1 -0
- package/types/views/Tooltip.d.ts +9 -0
- package/types/views/Tooltip.d.ts.map +1 -0
- package/types/views/TouchableOpacity.d.ts +4 -0
- package/types/views/TouchableOpacity.d.ts.map +1 -0
- package/types/views/Transitions/PresenceTransition.d.ts +4 -0
- package/types/views/Transitions/PresenceTransition.d.ts.map +1 -0
- package/types/views/Transitions/Transition.d.ts +4 -0
- package/types/views/Transitions/Transition.d.ts.map +1 -0
- package/types/views/Transitions/index.d.ts +3 -0
- package/types/views/Transitions/index.d.ts.map +1 -0
- package/types/views/Transitions/types.d.ts +80 -0
- package/types/views/Transitions/types.d.ts.map +1 -0
- package/types/views/VisuallyHidden.d.ts +2 -0
- package/types/views/VisuallyHidden.d.ts.map +1 -0
- package/_jsx/hooks/useSafeAreaInsets.js +0 -4
- package/_jsx/views/Button.js +0 -26
- package/dist/hooks/useSafeAreaInsets.js +0 -5
- package/dist/hooks/useSafeAreaInsets.js.map +0 -7
- package/dist/index.cjs +0 -1882
- package/dist/index.cjs.map +0 -7
- package/dist/index.js.map +0 -7
- package/dist/packages/core/src/constants/constants.d.ts +0 -8
- package/dist/packages/core/src/constants/constants.d.ts.map +0 -1
- package/dist/packages/core/src/constants/platform.d.ts +0 -9
- package/dist/packages/core/src/constants/platform.d.ts.map +0 -1
- package/dist/packages/core/src/constants/pseudos.d.ts +0 -15
- package/dist/packages/core/src/constants/pseudos.d.ts.map +0 -1
- package/dist/packages/core/src/constants/rnw.d.ts +0 -2
- package/dist/packages/core/src/constants/rnw.d.ts.map +0 -1
- package/dist/packages/core/src/createComponent.d.ts +0 -16
- package/dist/packages/core/src/createComponent.d.ts.map +0 -1
- package/dist/packages/core/src/createShorthands.d.ts +0 -2
- package/dist/packages/core/src/createShorthands.d.ts.map +0 -1
- package/dist/packages/core/src/createTamagui.d.ts +0 -37
- package/dist/packages/core/src/createTamagui.d.ts.map +0 -1
- package/dist/packages/core/src/createTheme.d.ts +0 -5
- package/dist/packages/core/src/createTheme.d.ts.map +0 -1
- package/dist/packages/core/src/createTokens.d.ts +0 -45
- package/dist/packages/core/src/createTokens.d.ts.map +0 -1
- package/dist/packages/core/src/createVariable.d.ts +0 -14
- package/dist/packages/core/src/createVariable.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/addStylesUsingClassname.d.ts +0 -2
- package/dist/packages/core/src/helpers/addStylesUsingClassname.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/createMediaStyle.d.ts +0 -8
- package/dist/packages/core/src/helpers/createMediaStyle.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/createTamaguiProvider.d.ts +0 -5
- package/dist/packages/core/src/helpers/createTamaguiProvider.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/extendStaticConfig.d.ts +0 -5
- package/dist/packages/core/src/helpers/extendStaticConfig.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/fixNativeShadow.d.ts +0 -2
- package/dist/packages/core/src/helpers/fixNativeShadow.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/getSplitStyles.d.ts +0 -15
- package/dist/packages/core/src/helpers/getSplitStyles.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/getStylesAtomic.d.ts +0 -3
- package/dist/packages/core/src/helpers/getStylesAtomic.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/insertStyleRule.d.ts +0 -2
- package/dist/packages/core/src/helpers/insertStyleRule.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/matchMedia.d.ts +0 -2
- package/dist/packages/core/src/helpers/matchMedia.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/themeable.d.ts +0 -10
- package/dist/packages/core/src/helpers/themeable.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useConstant.d.ts +0 -2
- package/dist/packages/core/src/hooks/useConstant.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useFeatures.d.ts +0 -5
- package/dist/packages/core/src/hooks/useFeatures.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useForceUpdate.d.ts +0 -2
- package/dist/packages/core/src/hooks/useForceUpdate.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useMedia.d.ts +0 -16
- package/dist/packages/core/src/hooks/useMedia.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/usePressable.d.ts +0 -3
- package/dist/packages/core/src/hooks/usePressable.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useTheme.d.ts +0 -18
- package/dist/packages/core/src/hooks/useTheme.d.ts.map +0 -1
- package/dist/packages/core/src/index.d.ts +0 -27
- package/dist/packages/core/src/index.d.ts.map +0 -1
- package/dist/packages/core/src/static/postProcessStyles.d.ts +0 -7
- package/dist/packages/core/src/static/postProcessStyles.d.ts.map +0 -1
- package/dist/packages/core/src/static.d.ts +0 -12
- package/dist/packages/core/src/static.d.ts.map +0 -1
- package/dist/packages/core/src/styled.d.ts +0 -16
- package/dist/packages/core/src/styled.d.ts.map +0 -1
- package/dist/packages/core/src/types.d.ts +0 -305
- package/dist/packages/core/src/types.d.ts.map +0 -1
- package/dist/packages/core/src/views/Animated.d.ts +0 -15
- package/dist/packages/core/src/views/Animated.d.ts.map +0 -1
- package/dist/packages/core/src/views/Stack.d.ts +0 -3
- package/dist/packages/core/src/views/Stack.d.ts.map +0 -1
- package/dist/packages/core/src/views/Text.d.ts +0 -3
- package/dist/packages/core/src/views/Text.d.ts.map +0 -1
- package/dist/packages/core/src/views/TextAncestorContext.d.ts +0 -3
- package/dist/packages/core/src/views/TextAncestorContext.d.ts.map +0 -1
- package/dist/packages/core/src/views/Theme.d.ts +0 -8
- package/dist/packages/core/src/views/Theme.d.ts.map +0 -1
- package/dist/packages/core/src/views/ThemeContext.d.ts +0 -18
- package/dist/packages/core/src/views/ThemeContext.d.ts.map +0 -1
- package/dist/packages/core/src/views/ThemeInverse.d.ts +0 -10
- package/dist/packages/core/src/views/ThemeInverse.d.ts.map +0 -1
- package/dist/packages/core/src/views/ThemeManagerContext.d.ts +0 -15
- package/dist/packages/core/src/views/ThemeManagerContext.d.ts.map +0 -1
- package/dist/packages/core/src/views/ThemeProvider.d.ts +0 -10
- package/dist/packages/core/src/views/ThemeProvider.d.ts.map +0 -1
- package/dist/packages/helpers/src/AllRules.d.ts +0 -3
- package/dist/packages/helpers/src/AllRules.d.ts.map +0 -1
- package/dist/packages/helpers/src/concatClassName.d.ts +0 -2
- package/dist/packages/helpers/src/concatClassName.d.ts.map +0 -1
- package/dist/packages/helpers/src/index.d.ts +0 -5
- package/dist/packages/helpers/src/index.d.ts.map +0 -1
- package/dist/packages/helpers/src/types.d.ts +0 -8
- package/dist/packages/helpers/src/types.d.ts.map +0 -1
- package/dist/packages/helpers/src/validStyleProps.d.ts +0 -475
- package/dist/packages/helpers/src/validStyleProps.d.ts.map +0 -1
- package/dist/packages/tamagui/src/helpers/normalizeColor.d.ts.map +0 -1
- package/dist/packages/tamagui/src/helpers/prevent.d.ts.map +0 -1
- package/dist/packages/tamagui/src/hooks/useControllableState.d.ts.map +0 -1
- package/dist/packages/tamagui/src/hooks/useDebounce.d.ts.map +0 -1
- package/dist/packages/tamagui/src/hooks/useKeyboardDismissable.d.ts.map +0 -1
- package/dist/packages/tamagui/src/hooks/useLayout.d.ts.map +0 -1
- package/dist/packages/tamagui/src/hooks/useSafeAreaInsets.d.ts +0 -2
- package/dist/packages/tamagui/src/hooks/useSafeAreaInsets.d.ts.map +0 -1
- package/dist/packages/tamagui/src/index.d.ts.map +0 -1
- package/dist/packages/tamagui/src/viewTypes.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/BlurView.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/BlurView.native.d.ts +0 -2
- package/dist/packages/tamagui/src/views/BlurView.native.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Box.d.ts +0 -29
- package/dist/packages/tamagui/src/views/Box.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Button.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Circle.d.ts +0 -26
- package/dist/packages/tamagui/src/views/Circle.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/EnsureFlexed.d.ts +0 -18
- package/dist/packages/tamagui/src/views/EnsureFlexed.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/ExitAnimationContext.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Form.d.ts +0 -28
- package/dist/packages/tamagui/src/views/Form.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Grid.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Headings.d.ts +0 -160
- package/dist/packages/tamagui/src/views/Headings.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Hoverable.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/HoverablePopover.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/InteractiveContainer.d.ts +0 -26
- package/dist/packages/tamagui/src/views/InteractiveContainer.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/InteractiveFrame.d.ts +0 -33
- package/dist/packages/tamagui/src/views/InteractiveFrame.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Layouts.d.ts +0 -170
- package/dist/packages/tamagui/src/views/Layouts.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/LinearGradient.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/LinearGradient.native.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Modal.d.ts +0 -38
- package/dist/packages/tamagui/src/views/Modal.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/NativeLinearGradientProps.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Overlay.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Paragraph.d.ts +0 -39
- package/dist/packages/tamagui/src/views/Paragraph.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Popover/Popover.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Popover/PopoverArrow.d.ts +0 -24
- package/dist/packages/tamagui/src/views/Popover/PopoverArrow.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Popover/PopoverContent.d.ts +0 -24
- package/dist/packages/tamagui/src/views/Popover/PopoverContent.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Popover/PopoverContext.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Popover/PopoverProvider.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Popover/types.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Popper.d.ts +0 -63
- package/dist/packages/tamagui/src/views/Popper.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Separator.d.ts +0 -26
- package/dist/packages/tamagui/src/views/Separator.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Stacks.d.ts +0 -54
- package/dist/packages/tamagui/src/views/Stacks.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Table.d.ts +0 -141
- package/dist/packages/tamagui/src/views/Table.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Toast.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Tooltip.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/TouchableOpacity.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Transitions/PresenceTransition.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Transitions/Transition.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Transitions/index.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/Transitions/types.d.ts.map +0 -1
- package/dist/packages/tamagui/src/views/VisuallyHidden.d.ts +0 -26
- package/dist/packages/tamagui/src/views/VisuallyHidden.d.ts.map +0 -1
- package/dist/views/Box.js.map +0 -7
- package/dist/views/Button.js +0 -41
- package/dist/views/Button.js.map +0 -7
- package/dist/views/Circle.js.map +0 -7
- package/dist/views/Hoverable.js.map +0 -7
- package/dist/views/HoverablePopover.js.map +0 -7
- package/dist/views/InteractiveContainer.js.map +0 -7
- package/dist/views/InteractiveFrame.js.map +0 -7
- package/dist/views/LinearGradient.js.map +0 -7
- package/dist/views/LinearGradient.native.js.map +0 -7
- package/dist/views/Modal.js.map +0 -7
- package/dist/views/Overlay.js.map +0 -7
- package/dist/views/SizableText.js.map +0 -7
- package/dist/views/Stacks.js.map +0 -7
- package/dist/views/Toast.js.map +0 -7
- package/dist/views/Tooltip.js.map +0 -7
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeColor.d.ts","sourceRoot":"","sources":["../../../src/helpers/normalizeColor.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,6DAA2C,IAAI,GAAG,MAc5E,CAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
__markAsModule(target);
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, module2, desc) => {
|
|
15
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(module2))
|
|
17
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
18
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
};
|
|
22
|
+
var __toModule = (module2) => {
|
|
23
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
24
|
+
};
|
|
25
|
+
__export(exports, {
|
|
26
|
+
normalizeColor: () => normalizeColor
|
|
27
|
+
});
|
|
28
|
+
var import_normalize_css_color = __toModule(require("normalize-css-color"));
|
|
29
|
+
const normalizeColor = /* @__PURE__ */ __name((color, opacity = 1) => {
|
|
30
|
+
if (color == null)
|
|
31
|
+
return;
|
|
32
|
+
if (typeof color === "string" && isWebColor(color)) {
|
|
33
|
+
return color;
|
|
34
|
+
}
|
|
35
|
+
const colorInt = processColor(color);
|
|
36
|
+
if (colorInt != null) {
|
|
37
|
+
const r = colorInt >> 16 & 255;
|
|
38
|
+
const g = colorInt >> 8 & 255;
|
|
39
|
+
const b = colorInt & 255;
|
|
40
|
+
const a = (colorInt >> 24 & 255) / 255;
|
|
41
|
+
const alpha = (a * opacity).toFixed(2);
|
|
42
|
+
return `rgba(${r},${g},${b},${alpha})`;
|
|
43
|
+
}
|
|
44
|
+
}, "normalizeColor");
|
|
45
|
+
const isWebColor = /* @__PURE__ */ __name((color) => color === "currentcolor" || color === "currentColor" || color === "inherit" || color.indexOf("var(") === 0, "isWebColor");
|
|
46
|
+
const processColor = /* @__PURE__ */ __name((color) => {
|
|
47
|
+
if (color === void 0 || color === null) {
|
|
48
|
+
return color;
|
|
49
|
+
}
|
|
50
|
+
let int32Color = (0, import_normalize_css_color.default)(color);
|
|
51
|
+
if (int32Color === void 0 || int32Color === null) {
|
|
52
|
+
return void 0;
|
|
53
|
+
}
|
|
54
|
+
int32Color = (int32Color << 24 | int32Color >>> 8) >>> 0;
|
|
55
|
+
return int32Color;
|
|
56
|
+
}, "processColor");
|
|
57
|
+
//# sourceMappingURL=normalizeColor.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/normalizeColor.tsx"],
|
|
4
|
+
"sourcesContent": ["import normalizeCSSColor from 'normalize-css-color'\n\nexport const normalizeColor = (color?: number | string, opacity = 1): void | string => {\n if (color == null) return\n if (typeof color === 'string' && isWebColor(color)) {\n return color\n }\n const colorInt = processColor(color)\n if (colorInt != null) {\n const r = (colorInt >> 16) & 255\n const g = (colorInt >> 8) & 255\n const b = colorInt & 255\n const a = ((colorInt >> 24) & 255) / 255\n const alpha = (a * opacity).toFixed(2)\n return `rgba(${r},${g},${b},${alpha})`\n }\n}\n\nconst isWebColor = (color: string): boolean =>\n color === 'currentcolor' ||\n color === 'currentColor' ||\n color === 'inherit' ||\n color.indexOf('var(') === 0\n\nconst processColor = (color?: string | number): number | undefined => {\n if (color === undefined || color === null) {\n return color\n }\n // convert number and hex\n let int32Color = normalizeCSSColor(color)\n if (int32Color === undefined || int32Color === null) {\n return undefined\n }\n // @ts-ignore\n int32Color = ((int32Color << 24) | (int32Color >>> 8)) >>> 0\n // @ts-ignore\n return int32Color\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,iCAA8B;AAEvB,MAAM,iBAAiB,wBAAC,OAAyB,UAAU,MAAqB;AACrF,MAAI,SAAS;AAAM;AACnB,MAAI,OAAO,UAAU,YAAY,WAAW,QAAQ;AAClD,WAAO;AAAA;AAET,QAAM,WAAW,aAAa;AAC9B,MAAI,YAAY,MAAM;AACpB,UAAM,IAAK,YAAY,KAAM;AAC7B,UAAM,IAAK,YAAY,IAAK;AAC5B,UAAM,IAAI,WAAW;AACrB,UAAM,IAAM,aAAY,KAAM,OAAO;AACrC,UAAM,QAAS,KAAI,SAAS,QAAQ;AACpC,WAAO,QAAQ,KAAK,KAAK,KAAK;AAAA;AAAA,GAZJ;AAgB9B,MAAM,aAAa,wBAAC,UAClB,UAAU,kBACV,UAAU,kBACV,UAAU,aACV,MAAM,QAAQ,YAAY,GAJT;AAMnB,MAAM,eAAe,wBAAC,UAAgD;AACpE,MAAI,UAAU,UAAa,UAAU,MAAM;AACzC,WAAO;AAAA;AAGT,MAAI,aAAa,wCAAkB;AACnC,MAAI,eAAe,UAAa,eAAe,MAAM;AACnD,WAAO;AAAA;AAGT,eAAe,eAAc,KAAO,eAAe,OAAQ;AAE3D,SAAO;AAAA,GAZY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prevent.d.ts","sourceRoot":"","sources":["../../../src/helpers/prevent.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,mBAAmD,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
var __export = (target, all) => {
|
|
5
|
+
__markAsModule(target);
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
__export(exports, {
|
|
10
|
+
prevent: () => prevent
|
|
11
|
+
});
|
|
12
|
+
const prevent = /* @__PURE__ */ __name((e) => [e.preventDefault(), e.stopPropagation()], "prevent");
|
|
13
|
+
//# sourceMappingURL=prevent.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/prevent.tsx"],
|
|
4
|
+
"sourcesContent": ["export const prevent = (e) => [e.preventDefault(), e.stopPropagation()]\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAAA;AAAA;AAAA;AAAO,MAAM,UAAU,wBAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,oBAA9B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useControllableState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useControllableState.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,KAAK,EAAE,CAAC,yBAInE;AAED,MAAM,WAAW,yBAAyB,CAAC,CAAC;IAI1C,KAAK,CAAC,EAAE,CAAC,CAAA;IAIT,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;IAI5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAI7B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAMD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,KAAK,EAAE,yBAAyB,CAAC,CAAC,CAAC,gDAoB1E"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
__markAsModule(target);
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, module2, desc) => {
|
|
15
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(module2))
|
|
17
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
18
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
};
|
|
22
|
+
var __toModule = (module2) => {
|
|
23
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
24
|
+
};
|
|
25
|
+
__export(exports, {
|
|
26
|
+
useControllableProp: () => useControllableProp,
|
|
27
|
+
useControllableState: () => useControllableState
|
|
28
|
+
});
|
|
29
|
+
var import_react = __toModule(require("react"));
|
|
30
|
+
function useControllableProp(prop, state) {
|
|
31
|
+
const { current: isControlled } = import_react.default.useRef(prop !== void 0);
|
|
32
|
+
const value = isControlled && typeof prop !== "undefined" ? prop : state;
|
|
33
|
+
return [isControlled, value];
|
|
34
|
+
}
|
|
35
|
+
__name(useControllableProp, "useControllableProp");
|
|
36
|
+
function useControllableState(props) {
|
|
37
|
+
const { value: valueProp, defaultValue, onChange } = props;
|
|
38
|
+
const [valueState, setValue] = import_react.default.useState(defaultValue);
|
|
39
|
+
const isControlled = valueProp !== void 0;
|
|
40
|
+
const value = isControlled ? valueProp : valueState;
|
|
41
|
+
const updateValue = import_react.default.useCallback((next) => {
|
|
42
|
+
const nextValue = typeof next === "function" ? next(value) : next;
|
|
43
|
+
if (!isControlled) {
|
|
44
|
+
setValue(nextValue);
|
|
45
|
+
}
|
|
46
|
+
onChange && onChange(nextValue);
|
|
47
|
+
}, [isControlled, onChange, value]);
|
|
48
|
+
return [value, updateValue];
|
|
49
|
+
}
|
|
50
|
+
__name(useControllableState, "useControllableState");
|
|
51
|
+
//# sourceMappingURL=useControllableState.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/hooks/useControllableState.ts"],
|
|
4
|
+
"sourcesContent": ["// forked from NativeBase\n// The MIT License (MIT)\n\n// Copyright (c) 2021 GeekyAnts India Pvt Ltd\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the \"Software\"), to deal in\n// the Software without restriction, including without limitation the rights to\n// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n// the Software, and to permit persons to whom the Software is furnished to do so,\n// subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport React from 'react'\n\nexport function useControllableProp<T>(prop: T | undefined, state: T) {\n const { current: isControlled } = React.useRef(prop !== undefined)\n const value = isControlled && typeof prop !== 'undefined' ? prop : state\n return [isControlled, value] as const\n}\n\nexport interface UseControllableStateProps<T> {\n /**\n * The value to used in controlled mode\n */\n value?: T\n /**\n * The initial value to be used, in uncontrolled mode\n */\n defaultValue?: T | (() => T)\n /**\n * The callback fired when the value changes\n */\n onChange?: (value: T) => void\n /**\n * The component name (for warnings)\n */\n name?: string\n}\n\n/**\n * React hook for using controlling component state.\n * @param props\n */\nexport function useControllableState<T>(props: UseControllableStateProps<T>) {\n const { value: valueProp, defaultValue, onChange } = props\n\n const [valueState, setValue] = React.useState(defaultValue as T)\n const isControlled = valueProp !== undefined\n\n const value = isControlled ? (valueProp as T) : valueState\n\n const updateValue = React.useCallback(\n (next: any) => {\n const nextValue = typeof next === 'function' ? next(value) : next\n if (!isControlled) {\n setValue(nextValue)\n }\n onChange && onChange(nextValue)\n },\n [isControlled, onChange, value]\n )\n\n return [value, updateValue] as [T, React.Dispatch<React.SetStateAction<T>>]\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAsBA,mBAAkB;AAEX,6BAAgC,MAAqB,OAAU;AACpE,QAAM,EAAE,SAAS,iBAAiB,qBAAM,OAAO,SAAS;AACxD,QAAM,QAAQ,gBAAgB,OAAO,SAAS,cAAc,OAAO;AACnE,SAAO,CAAC,cAAc;AAAA;AAHR;AA6BT,8BAAiC,OAAqC;AAC3E,QAAM,EAAE,OAAO,WAAW,cAAc,aAAa;AAErD,QAAM,CAAC,YAAY,YAAY,qBAAM,SAAS;AAC9C,QAAM,eAAe,cAAc;AAEnC,QAAM,QAAQ,eAAgB,YAAkB;AAEhD,QAAM,cAAc,qBAAM,YACxB,CAAC,SAAc;AACb,UAAM,YAAY,OAAO,SAAS,aAAa,KAAK,SAAS;AAC7D,QAAI,CAAC,cAAc;AACjB,eAAS;AAAA;AAEX,gBAAY,SAAS;AAAA,KAEvB,CAAC,cAAc,UAAU;AAG3B,SAAO,CAAC,OAAO;AAAA;AAnBD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDebounce.ts"],"names":[],"mappings":"AAEA,aAAK,gBAAgB,GAAG;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,QAAQ,EACzC,IAAI,EAAE,CAAC,EACP,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,OAAO,GAChB,CAAC,GAAG;IACL,MAAM,EAAE,QAAQ,CAAA;CACjB,CAwBA;AAID,wBAAgB,WAAW,CACzB,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,GAAG,SAAS,GAAG,IAAI,EAClD,WAAW,SAAS,CAAC,GAAG;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,EACD,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,gBAA8B,EAAE,SAAS,GAAE,GAAG,EAAO,GAAG,WAAW,CAalG;AAMD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,SAAI,GAAG,CAAC,CAiBtD"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
__markAsModule(target);
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, module2, desc) => {
|
|
15
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(module2))
|
|
17
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
18
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
};
|
|
22
|
+
var __toModule = (module2) => {
|
|
23
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
24
|
+
};
|
|
25
|
+
__export(exports, {
|
|
26
|
+
debounce: () => debounce,
|
|
27
|
+
useDebounce: () => useDebounce,
|
|
28
|
+
useDebounceValue: () => useDebounceValue
|
|
29
|
+
});
|
|
30
|
+
var import_react = __toModule(require("react"));
|
|
31
|
+
function debounce(func, wait, leading) {
|
|
32
|
+
let timeout;
|
|
33
|
+
let isCancelled;
|
|
34
|
+
function debounced() {
|
|
35
|
+
isCancelled = false;
|
|
36
|
+
let context = this;
|
|
37
|
+
let args = arguments;
|
|
38
|
+
if (leading && !timeout) {
|
|
39
|
+
func.apply(context, args);
|
|
40
|
+
}
|
|
41
|
+
clearTimeout(timeout);
|
|
42
|
+
timeout = setTimeout(function() {
|
|
43
|
+
timeout = null;
|
|
44
|
+
if (!leading && !isCancelled) {
|
|
45
|
+
func.apply(context, args);
|
|
46
|
+
}
|
|
47
|
+
isCancelled = false;
|
|
48
|
+
}, wait);
|
|
49
|
+
}
|
|
50
|
+
__name(debounced, "debounced");
|
|
51
|
+
debounced.cancel = () => {
|
|
52
|
+
isCancelled = true;
|
|
53
|
+
};
|
|
54
|
+
return debounced;
|
|
55
|
+
}
|
|
56
|
+
__name(debounce, "debounce");
|
|
57
|
+
const defaultOpts = { leading: false };
|
|
58
|
+
function useDebounce(fn, wait, options = defaultOpts, mountArgs = []) {
|
|
59
|
+
const dbEffect = (0, import_react.useRef)(null);
|
|
60
|
+
(0, import_react.useEffect)(() => {
|
|
61
|
+
return () => {
|
|
62
|
+
var _a;
|
|
63
|
+
(_a = dbEffect.current) == null ? void 0 : _a.cancel();
|
|
64
|
+
};
|
|
65
|
+
}, []);
|
|
66
|
+
return (0, import_react.useMemo)(() => {
|
|
67
|
+
dbEffect.current = debounce(fn, wait, options.leading);
|
|
68
|
+
return dbEffect.current;
|
|
69
|
+
}, [options.leading, ...mountArgs]);
|
|
70
|
+
}
|
|
71
|
+
__name(useDebounce, "useDebounce");
|
|
72
|
+
function useDebounceValue(val, amt = 0) {
|
|
73
|
+
const [state, setState] = (0, import_react.useState)(val);
|
|
74
|
+
(0, import_react.useEffect)(() => {
|
|
75
|
+
let tm = setTimeout(() => {
|
|
76
|
+
setState((prev) => {
|
|
77
|
+
if (prev === val)
|
|
78
|
+
return prev;
|
|
79
|
+
return val;
|
|
80
|
+
});
|
|
81
|
+
}, amt);
|
|
82
|
+
return () => {
|
|
83
|
+
clearTimeout(tm);
|
|
84
|
+
};
|
|
85
|
+
}, [val]);
|
|
86
|
+
return state;
|
|
87
|
+
}
|
|
88
|
+
__name(useDebounceValue, "useDebounceValue");
|
|
89
|
+
//# sourceMappingURL=useDebounce.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/hooks/useDebounce.ts"],
|
|
4
|
+
"sourcesContent": ["import { useEffect, useMemo, useRef, useState } from 'react'\n\ntype DebounceSettings = {\n leading?: boolean\n}\n\nexport function debounce<A extends Function>(\n func: A,\n wait?: number,\n leading?: boolean\n): A & {\n cancel: Function\n} {\n let timeout: any\n let isCancelled\n function debounced() {\n isCancelled = false\n // @ts-ignore\n let context = this\n let args = arguments\n if (leading && !timeout) {\n func.apply(context, args)\n }\n clearTimeout(timeout)\n timeout = setTimeout(function () {\n timeout = null\n if (!leading && !isCancelled) {\n func.apply(context, args)\n }\n isCancelled = false\n }, wait)\n }\n debounced.cancel = () => {\n isCancelled = true\n }\n return debounced as any\n}\n\nconst defaultOpts = { leading: false }\n\nexport function useDebounce<\n A extends (...args: any) => any | undefined | null,\n DebouncedFn extends A & {\n cancel: () => void\n }\n>(fn: A, wait: number, options: DebounceSettings = defaultOpts, mountArgs: any[] = []): DebouncedFn {\n const dbEffect = useRef<DebouncedFn | null>(null)\n\n useEffect(() => {\n return () => {\n dbEffect.current?.cancel()\n }\n }, [])\n\n return useMemo(() => {\n dbEffect.current = debounce(fn, wait, options.leading) as unknown as DebouncedFn\n return dbEffect.current\n }, [options.leading, ...mountArgs])\n}\n\n/**\n * Returns a value once it stops changing after \"amt\" time.\n * Note: you may need to memo or this will keep re-rendering\n */\nexport function useDebounceValue<A>(val: A, amt = 0): A {\n const [state, setState] = useState(val)\n\n useEffect(() => {\n let tm = setTimeout(() => {\n setState((prev) => {\n if (prev === val) return prev\n return val\n })\n }, amt)\n\n return () => {\n clearTimeout(tm)\n }\n }, [val])\n\n return state\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAqD;AAM9C,kBACL,MACA,MACA,SAGA;AACA,MAAI;AACJ,MAAI;AACJ,uBAAqB;AACnB,kBAAc;AAEd,QAAI,UAAU;AACd,QAAI,OAAO;AACX,QAAI,WAAW,CAAC,SAAS;AACvB,WAAK,MAAM,SAAS;AAAA;AAEtB,iBAAa;AACb,cAAU,WAAW,WAAY;AAC/B,gBAAU;AACV,UAAI,CAAC,WAAW,CAAC,aAAa;AAC5B,aAAK,MAAM,SAAS;AAAA;AAEtB,oBAAc;AAAA,OACb;AAAA;AAfI;AAiBT,YAAU,SAAS,MAAM;AACvB,kBAAc;AAAA;AAEhB,SAAO;AAAA;AA7BO;AAgChB,MAAM,cAAc,EAAE,SAAS;AAExB,qBAKL,IAAO,MAAc,UAA4B,aAAa,YAAmB,IAAiB;AAClG,QAAM,WAAW,yBAA2B;AAE5C,8BAAU,MAAM;AACd,WAAO,MAAM;AAjDjB;AAkDM,qBAAS,YAAT,mBAAkB;AAAA;AAAA,KAEnB;AAEH,SAAO,0BAAQ,MAAM;AACnB,aAAS,UAAU,SAAS,IAAI,MAAM,QAAQ;AAC9C,WAAO,SAAS;AAAA,KACf,CAAC,QAAQ,SAAS,GAAG;AAAA;AAjBV;AAwBT,0BAA6B,KAAQ,MAAM,GAAM;AACtD,QAAM,CAAC,OAAO,YAAY,2BAAS;AAEnC,8BAAU,MAAM;AACd,QAAI,KAAK,WAAW,MAAM;AACxB,eAAS,CAAC,SAAS;AACjB,YAAI,SAAS;AAAK,iBAAO;AACzB,eAAO;AAAA;AAAA,OAER;AAEH,WAAO,MAAM;AACX,mBAAa;AAAA;AAAA,KAEd,CAAC;AAEJ,SAAO;AAAA;AAhBO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardDismissable.d.ts","sourceRoot":"","sources":["../../../src/hooks/useKeyboardDismissable.tsx"],"names":[],"mappings":"AA0BA,aAAK,OAAO,GAAG;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,GAAG,CAAA;CACpB,CAAA;AAGD,eAAO,MAAM,6BAA6B;oBACxB,MAAM,GAAG;;sBAFc,GAAG;CAY3C,CAAA;AAED,eAAO,MAAM,sBAAsB,0BAA2B,OAAO,SAcpE,CAAA;AAeD,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,OAAO,QAsB5D"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
__markAsModule(target);
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, module2, desc) => {
|
|
15
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(module2))
|
|
17
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
18
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
};
|
|
22
|
+
var __toModule = (module2) => {
|
|
23
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
24
|
+
};
|
|
25
|
+
__export(exports, {
|
|
26
|
+
keyboardDismissHandlerManager: () => keyboardDismissHandlerManager,
|
|
27
|
+
useBackHandler: () => useBackHandler,
|
|
28
|
+
useKeyboardDismissable: () => useKeyboardDismissable
|
|
29
|
+
});
|
|
30
|
+
var import_core = __toModule(require("@tamagui/core"));
|
|
31
|
+
var import_react = __toModule(require("react"));
|
|
32
|
+
var import_react_native = __toModule(require("react-native"));
|
|
33
|
+
let keyboardDismissHandlers = [];
|
|
34
|
+
const keyboardDismissHandlerManager = {
|
|
35
|
+
push: (handler) => {
|
|
36
|
+
keyboardDismissHandlers.push(handler);
|
|
37
|
+
return () => {
|
|
38
|
+
keyboardDismissHandlers = keyboardDismissHandlers.filter((h) => h !== handler);
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
length: () => keyboardDismissHandlers.length,
|
|
42
|
+
pop: () => {
|
|
43
|
+
return keyboardDismissHandlers.pop();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const useKeyboardDismissable = /* @__PURE__ */ __name(({ enabled, callback }) => {
|
|
47
|
+
(0, import_react.useEffect)(() => {
|
|
48
|
+
let cleanupFn = /* @__PURE__ */ __name(() => {
|
|
49
|
+
}, "cleanupFn");
|
|
50
|
+
if (enabled) {
|
|
51
|
+
cleanupFn = keyboardDismissHandlerManager.push(callback);
|
|
52
|
+
} else {
|
|
53
|
+
cleanupFn();
|
|
54
|
+
}
|
|
55
|
+
return () => {
|
|
56
|
+
cleanupFn();
|
|
57
|
+
};
|
|
58
|
+
}, [enabled, callback]);
|
|
59
|
+
useBackHandler({ enabled, callback });
|
|
60
|
+
}, "useKeyboardDismissable");
|
|
61
|
+
const callbackOnEscape = /* @__PURE__ */ __name((callback) => (e) => {
|
|
62
|
+
if (e.key === "Escape") {
|
|
63
|
+
if (!(document.activeElement instanceof HTMLInputElement) && !(document.activeElement instanceof HTMLTextAreaElement)) {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
e.stopPropagation();
|
|
66
|
+
callback();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, "callbackOnEscape");
|
|
70
|
+
function useBackHandler({ enabled, callback }) {
|
|
71
|
+
(0, import_react.useEffect)(() => {
|
|
72
|
+
let backHandler = /* @__PURE__ */ __name(() => {
|
|
73
|
+
callback();
|
|
74
|
+
return true;
|
|
75
|
+
}, "backHandler");
|
|
76
|
+
const keyHandler = callbackOnEscape(callback);
|
|
77
|
+
if (enabled) {
|
|
78
|
+
import_react_native.BackHandler.addEventListener("hardwareBackPress", backHandler);
|
|
79
|
+
if (import_core.isWeb) {
|
|
80
|
+
window.addEventListener("keydown", keyHandler);
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
import_react_native.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
84
|
+
}
|
|
85
|
+
return () => {
|
|
86
|
+
import_react_native.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
87
|
+
if (import_core.isWeb) {
|
|
88
|
+
window.removeEventListener("keydown", keyHandler);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}, [enabled, callback]);
|
|
92
|
+
}
|
|
93
|
+
__name(useBackHandler, "useBackHandler");
|
|
94
|
+
//# sourceMappingURL=useKeyboardDismissable.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/hooks/useKeyboardDismissable.tsx"],
|
|
4
|
+
"sourcesContent": ["// forked from NativeBase\n// The MIT License (MIT)\n\n// Copyright (c) 2021 GeekyAnts India Pvt Ltd\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the \"Software\"), to deal in\n// the Software without restriction, including without limitation the rights to\n// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n// the Software, and to permit persons to whom the Software is furnished to do so,\n// subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport { isWeb } from '@tamagui/core'\nimport { useEffect } from 'react'\nimport { BackHandler } from 'react-native'\n\ntype IParams = {\n enabled?: boolean\n callback: () => any\n}\n\nlet keyboardDismissHandlers: Array<() => any> = []\nexport const keyboardDismissHandlerManager = {\n push: (handler: () => any) => {\n keyboardDismissHandlers.push(handler)\n return () => {\n keyboardDismissHandlers = keyboardDismissHandlers.filter((h) => h !== handler)\n }\n },\n length: () => keyboardDismissHandlers.length,\n pop: () => {\n return keyboardDismissHandlers.pop()\n },\n}\n\nexport const useKeyboardDismissable = ({ enabled, callback }: IParams) => {\n useEffect(() => {\n let cleanupFn = () => {}\n if (enabled) {\n cleanupFn = keyboardDismissHandlerManager.push(callback)\n } else {\n cleanupFn()\n }\n return () => {\n cleanupFn()\n }\n }, [enabled, callback])\n\n useBackHandler({ enabled, callback })\n}\n\nconst callbackOnEscape = (callback) => (e) => {\n if (e.key === 'Escape') {\n if (\n !(document.activeElement instanceof HTMLInputElement) &&\n !(document.activeElement instanceof HTMLTextAreaElement)\n ) {\n e.preventDefault()\n e.stopPropagation()\n callback()\n }\n }\n}\n\nexport function useBackHandler({ enabled, callback }: IParams) {\n useEffect(() => {\n let backHandler = () => {\n callback()\n return true\n }\n const keyHandler = callbackOnEscape(callback)\n if (enabled) {\n BackHandler.addEventListener('hardwareBackPress', backHandler)\n if (isWeb) {\n window.addEventListener('keydown', keyHandler)\n }\n } else {\n BackHandler.removeEventListener('hardwareBackPress', backHandler)\n }\n return () => {\n BackHandler.removeEventListener('hardwareBackPress', backHandler)\n if (isWeb) {\n window.removeEventListener('keydown', keyHandler)\n }\n }\n }, [enabled, callback])\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBA,kBAAsB;AACtB,mBAA0B;AAC1B,0BAA4B;AAO5B,IAAI,0BAA4C;AACzC,MAAM,gCAAgC;AAAA,EAC3C,MAAM,CAAC,YAAuB;AAC5B,4BAAwB,KAAK;AAC7B,WAAO,MAAM;AACX,gCAA0B,wBAAwB,OAAO,CAAC,MAAM,MAAM;AAAA;AAAA;AAAA,EAG1E,QAAQ,MAAM,wBAAwB;AAAA,EACtC,KAAK,MAAM;AACT,WAAO,wBAAwB;AAAA;AAAA;AAI5B,MAAM,yBAAyB,wBAAC,EAAE,SAAS,eAAwB;AACxE,8BAAU,MAAM;AACd,QAAI,YAAY,6BAAM;AAAA,OAAN;AAChB,QAAI,SAAS;AACX,kBAAY,8BAA8B,KAAK;AAAA,WAC1C;AACL;AAAA;AAEF,WAAO,MAAM;AACX;AAAA;AAAA,KAED,CAAC,SAAS;AAEb,iBAAe,EAAE,SAAS;AAAA,GAbU;AAgBtC,MAAM,mBAAmB,wBAAC,aAAa,CAAC,MAAM;AAC5C,MAAI,EAAE,QAAQ,UAAU;AACtB,QACE,CAAE,UAAS,yBAAyB,qBACpC,CAAE,UAAS,yBAAyB,sBACpC;AACA,QAAE;AACF,QAAE;AACF;AAAA;AAAA;AAAA,GARmB;AAalB,wBAAwB,EAAE,SAAS,YAAqB;AAC7D,8BAAU,MAAM;AACd,QAAI,cAAc,6BAAM;AACtB;AACA,aAAO;AAAA,OAFS;AAIlB,UAAM,aAAa,iBAAiB;AACpC,QAAI,SAAS;AACX,sCAAY,iBAAiB,qBAAqB;AAClD,UAAI,mBAAO;AACT,eAAO,iBAAiB,WAAW;AAAA;AAAA,WAEhC;AACL,sCAAY,oBAAoB,qBAAqB;AAAA;AAEvD,WAAO,MAAM;AACX,sCAAY,oBAAoB,qBAAqB;AACrD,UAAI,mBAAO;AACT,eAAO,oBAAoB,WAAW;AAAA;AAAA;AAAA,KAGzC,CAAC,SAAS;AAAA;AArBC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayout.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLayout.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEjE,eAAO,MAAM,SAAS;;6CAA0E,IAAI;;;4CAAJ,IAAI;;;;;;CAyDnG,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
__markAsModule(target);
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, module2, desc) => {
|
|
15
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(module2))
|
|
17
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
18
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
};
|
|
22
|
+
var __toModule = (module2) => {
|
|
23
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
24
|
+
};
|
|
25
|
+
__export(exports, {
|
|
26
|
+
useLayout: () => useLayout
|
|
27
|
+
});
|
|
28
|
+
var import_core = __toModule(require("@tamagui/core"));
|
|
29
|
+
var import_react = __toModule(require("react"));
|
|
30
|
+
const useLayout = /* @__PURE__ */ __name((props = {}) => {
|
|
31
|
+
const [layout, setLayout] = (0, import_react.useState)(null);
|
|
32
|
+
if (!import_core.isWeb) {
|
|
33
|
+
return {
|
|
34
|
+
layout,
|
|
35
|
+
onLayout: props.onLayout
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
const ref = (0, import_react.useRef)(null);
|
|
39
|
+
(0, import_core.useIsomorphicLayoutEffect)(() => {
|
|
40
|
+
const node = ref.current;
|
|
41
|
+
if (!node)
|
|
42
|
+
return;
|
|
43
|
+
let last = null;
|
|
44
|
+
const getNextAndCallback = /* @__PURE__ */ __name((rect) => {
|
|
45
|
+
var _a;
|
|
46
|
+
let next;
|
|
47
|
+
const width = Math.max(1, Math.round(rect.width));
|
|
48
|
+
const height = Math.max(1, Math.round(rect.height));
|
|
49
|
+
if (!last || width !== last.width || height !== last.height) {
|
|
50
|
+
next = { width, height };
|
|
51
|
+
}
|
|
52
|
+
if (next) {
|
|
53
|
+
(_a = props.onLayout) == null ? void 0 : _a.call(props, { nativeEvent: { layout: next } });
|
|
54
|
+
last = next;
|
|
55
|
+
return next;
|
|
56
|
+
}
|
|
57
|
+
return last;
|
|
58
|
+
}, "getNextAndCallback");
|
|
59
|
+
const update = /* @__PURE__ */ __name((rect) => {
|
|
60
|
+
if (props.stateless) {
|
|
61
|
+
getNextAndCallback(rect);
|
|
62
|
+
} else {
|
|
63
|
+
setLayout((p) => getNextAndCallback(rect));
|
|
64
|
+
}
|
|
65
|
+
}, "update");
|
|
66
|
+
const ro = new ResizeObserver(([{ contentRect }] = []) => {
|
|
67
|
+
update(contentRect);
|
|
68
|
+
});
|
|
69
|
+
ro.observe(node);
|
|
70
|
+
return () => {
|
|
71
|
+
ro.disconnect();
|
|
72
|
+
};
|
|
73
|
+
}, [ref]);
|
|
74
|
+
return {
|
|
75
|
+
layout,
|
|
76
|
+
ref
|
|
77
|
+
};
|
|
78
|
+
}, "useLayout");
|
|
79
|
+
//# sourceMappingURL=useLayout.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/hooks/useLayout.tsx"],
|
|
4
|
+
"sourcesContent": ["import { isWeb, useIsomorphicLayoutEffect } from '@tamagui/core'\nimport { useRef, useState } from 'react'\nimport { LayoutChangeEvent, LayoutRectangle } from 'react-native'\n\nexport const useLayout = (props: { stateless?: boolean; onLayout?: (rect: LayoutChangeEvent) => void } = {}) => {\n const [layout, setLayout] = useState<LayoutRectangle | null>(null)\n\n if (!isWeb) {\n return {\n layout,\n onLayout: props.onLayout,\n }\n }\n\n const ref = useRef<any>(null)\n\n useIsomorphicLayoutEffect(() => {\n const node = ref.current\n if (!node) return\n // let hasUpdatedOnce = false\n let last: LayoutRectangle | null = null\n\n const getNextAndCallback = (rect: LayoutRectangle) => {\n let next\n const width = Math.max(1, Math.round(rect.width))\n const height = Math.max(1, Math.round(rect.height))\n // don't set new layout state unless the layout has actually changed\n if (!last || width !== last.width || height !== last.height) {\n next = { width, height }\n }\n if (next) {\n // @ts-expect-error\n props.onLayout?.({ nativeEvent: { layout: next } })\n last = next\n return next\n }\n return last\n }\n\n const update = (rect: LayoutRectangle) => {\n if (props.stateless) {\n getNextAndCallback(rect)\n } else {\n setLayout((p) => getNextAndCallback(rect))\n }\n }\n\n const ro = new ResizeObserver(([{ contentRect }] = []) => {\n update(contentRect)\n })\n ro.observe(node)\n\n return () => {\n ro.disconnect()\n }\n }, [ref])\n\n return {\n layout,\n ref,\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,kBAAiD;AACjD,mBAAiC;AAG1B,MAAM,YAAY,wBAAC,QAA+E,OAAO;AAC9G,QAAM,CAAC,QAAQ,aAAa,2BAAiC;AAE7D,MAAI,CAAC,mBAAO;AACV,WAAO;AAAA,MACL;AAAA,MACA,UAAU,MAAM;AAAA;AAAA;AAIpB,QAAM,MAAM,yBAAY;AAExB,6CAA0B,MAAM;AAC9B,UAAM,OAAO,IAAI;AACjB,QAAI,CAAC;AAAM;AAEX,QAAI,OAA+B;AAEnC,UAAM,qBAAqB,wBAAC,SAA0B;AAtB1D;AAuBM,UAAI;AACJ,YAAM,QAAQ,KAAK,IAAI,GAAG,KAAK,MAAM,KAAK;AAC1C,YAAM,SAAS,KAAK,IAAI,GAAG,KAAK,MAAM,KAAK;AAE3C,UAAI,CAAC,QAAQ,UAAU,KAAK,SAAS,WAAW,KAAK,QAAQ;AAC3D,eAAO,EAAE,OAAO;AAAA;AAElB,UAAI,MAAM;AAER,oBAAM,aAAN,+BAAiB,EAAE,aAAa,EAAE,QAAQ;AAC1C,eAAO;AACP,eAAO;AAAA;AAET,aAAO;AAAA,OAdkB;AAiB3B,UAAM,SAAS,wBAAC,SAA0B;AACxC,UAAI,MAAM,WAAW;AACnB,2BAAmB;AAAA,aACd;AACL,kBAAU,CAAC,MAAM,mBAAmB;AAAA;AAAA,OAJzB;AAQf,UAAM,KAAK,IAAI,eAAe,CAAC,CAAC,EAAE,iBAAiB,OAAO;AACxD,aAAO;AAAA;AAET,OAAG,QAAQ;AAEX,WAAO,MAAM;AACX,SAAG;AAAA;AAAA,KAEJ,CAAC;AAEJ,SAAO;AAAA,IACL;AAAA,IACA;AAAA;AAAA,GAvDqB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from '@tamagui/core';
|
|
1
|
+
export { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
3
2
|
export * from './viewTypes';
|
|
4
|
-
export * from '
|
|
3
|
+
export * from '@tamagui/use-debounce';
|
|
4
|
+
export * from '@tamagui/use-force-update';
|
|
5
5
|
export * from './hooks/useLayout';
|
|
6
|
-
export * from './hooks/useSafeAreaInsets';
|
|
7
6
|
export * from './hooks/useKeyboardDismissable';
|
|
8
7
|
export * from './views/BlurView';
|
|
9
8
|
export * from './views/Box';
|
|
10
9
|
export * from './views/Button';
|
|
11
10
|
export * from './views/Circle';
|
|
12
|
-
export * from './views/
|
|
11
|
+
export * from './views/EnsureFlexed';
|
|
13
12
|
export * from './views/Form';
|
|
14
13
|
export * from './views/Grid';
|
|
14
|
+
export * from './views/Headings';
|
|
15
15
|
export * from './views/Hoverable';
|
|
16
16
|
export * from './views/HoverablePopover';
|
|
17
17
|
export * from './views/InteractiveContainer';
|
|
18
18
|
export * from './views/Layouts';
|
|
19
19
|
export * from './views/LinearGradient';
|
|
20
20
|
export * from './views/Modal';
|
|
21
|
+
export * from './views/Overlay';
|
|
21
22
|
export * from './views/Paragraph';
|
|
22
23
|
export * from './views/Popover/Popover';
|
|
23
24
|
export * from './views/Popover/PopoverProvider';
|
|
25
|
+
export * from './views/SafeAreaProvider';
|
|
26
|
+
export * from './views/Separator';
|
|
27
|
+
export * from './views/SizableText';
|
|
24
28
|
export * from './views/Stacks';
|
|
25
29
|
export * from './views/Table';
|
|
26
|
-
export * from './views/Headings';
|
|
27
30
|
export * from './views/Toast';
|
|
28
|
-
export * from './views/EnsureFlexed';
|
|
29
31
|
export * from './views/Tooltip';
|
|
30
32
|
export * from './views/TouchableOpacity';
|
|
31
33
|
export * from './views/Transitions';
|
|
32
34
|
export * from './views/VisuallyHidden';
|
|
33
35
|
export * from './helpers/prevent';
|
|
36
|
+
export * from '@tamagui/helpers';
|
|
37
|
+
export * from '@tamagui/core';
|
|
34
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,cAAc,aAAa,CAAA;AAE3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AAEzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gCAAgC,CAAA;AAE9C,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AAEtC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
__markAsModule(target);
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, module2, desc) => {
|
|
14
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(module2))
|
|
16
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __toModule = (module2) => {
|
|
22
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
+
};
|
|
24
|
+
__export(exports, {
|
|
25
|
+
useSafeAreaInsets: () => import_react_native_safe_area_context.useSafeAreaInsets
|
|
26
|
+
});
|
|
27
|
+
var import_react_native_safe_area_context = __toModule(require("react-native-safe-area-context"));
|
|
28
|
+
__reExport(exports, __toModule(require("./viewTypes")));
|
|
29
|
+
__reExport(exports, __toModule(require("@tamagui/use-debounce")));
|
|
30
|
+
__reExport(exports, __toModule(require("@tamagui/use-force-update")));
|
|
31
|
+
__reExport(exports, __toModule(require("./hooks/useLayout")));
|
|
32
|
+
__reExport(exports, __toModule(require("./hooks/useKeyboardDismissable")));
|
|
33
|
+
__reExport(exports, __toModule(require("./views/BlurView")));
|
|
34
|
+
__reExport(exports, __toModule(require("./views/Box")));
|
|
35
|
+
__reExport(exports, __toModule(require("./views/Button")));
|
|
36
|
+
__reExport(exports, __toModule(require("./views/Circle")));
|
|
37
|
+
__reExport(exports, __toModule(require("./views/EnsureFlexed")));
|
|
38
|
+
__reExport(exports, __toModule(require("./views/Form")));
|
|
39
|
+
__reExport(exports, __toModule(require("./views/Grid")));
|
|
40
|
+
__reExport(exports, __toModule(require("./views/Headings")));
|
|
41
|
+
__reExport(exports, __toModule(require("./views/Hoverable")));
|
|
42
|
+
__reExport(exports, __toModule(require("./views/HoverablePopover")));
|
|
43
|
+
__reExport(exports, __toModule(require("./views/InteractiveContainer")));
|
|
44
|
+
__reExport(exports, __toModule(require("./views/Layouts")));
|
|
45
|
+
__reExport(exports, __toModule(require("./views/LinearGradient")));
|
|
46
|
+
__reExport(exports, __toModule(require("./views/Modal")));
|
|
47
|
+
__reExport(exports, __toModule(require("./views/Overlay")));
|
|
48
|
+
__reExport(exports, __toModule(require("./views/Paragraph")));
|
|
49
|
+
__reExport(exports, __toModule(require("./views/Popover/Popover")));
|
|
50
|
+
__reExport(exports, __toModule(require("./views/Popover/PopoverProvider")));
|
|
51
|
+
__reExport(exports, __toModule(require("./views/SafeAreaProvider")));
|
|
52
|
+
__reExport(exports, __toModule(require("./views/Separator")));
|
|
53
|
+
__reExport(exports, __toModule(require("./views/SizableText")));
|
|
54
|
+
__reExport(exports, __toModule(require("./views/Stacks")));
|
|
55
|
+
__reExport(exports, __toModule(require("./views/Table")));
|
|
56
|
+
__reExport(exports, __toModule(require("./views/Toast")));
|
|
57
|
+
__reExport(exports, __toModule(require("./views/Tooltip")));
|
|
58
|
+
__reExport(exports, __toModule(require("./views/TouchableOpacity")));
|
|
59
|
+
__reExport(exports, __toModule(require("./views/Transitions")));
|
|
60
|
+
__reExport(exports, __toModule(require("./views/VisuallyHidden")));
|
|
61
|
+
__reExport(exports, __toModule(require("./helpers/prevent")));
|
|
62
|
+
__reExport(exports, __toModule(require("@tamagui/helpers")));
|
|
63
|
+
__reExport(exports, __toModule(require("@tamagui/core")));
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["export { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from './viewTypes'\n\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\nexport * from './hooks/useLayout'\nexport * from './hooks/useKeyboardDismissable'\n\nexport * from './views/BlurView'\nexport * from './views/Box'\nexport * from './views/Button'\nexport * from './views/Circle'\nexport * from './views/EnsureFlexed'\nexport * from './views/Form'\nexport * from './views/Grid'\nexport * from './views/Headings'\nexport * from './views/Hoverable'\nexport * from './views/HoverablePopover'\nexport * from './views/InteractiveContainer'\nexport * from './views/Layouts'\nexport * from './views/LinearGradient'\nexport * from './views/Modal'\nexport * from './views/Overlay'\nexport * from './views/Paragraph'\nexport * from './views/Popover/Popover'\nexport * from './views/Popover/PopoverProvider'\nexport * from './views/SafeAreaProvider'\nexport * from './views/Separator'\nexport * from './views/SizableText'\nexport * from './views/Stacks'\nexport * from './views/Table'\nexport * from './views/Toast'\nexport * from './views/Tooltip'\nexport * from './views/TouchableOpacity'\nexport * from './views/Transitions'\nexport * from './views/VisuallyHidden'\n\nexport * from './helpers/prevent'\n\nexport * from '@tamagui/helpers'\nexport * from '@tamagui/core'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,4CAAkC;AAElC,oBAAc;AAEd,oBAAc;AACd,oBAAc;AAEd,oBAAc;AACd,oBAAc;AAEd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AACd,oBAAc;AAEd,oBAAc;AAEd,oBAAc;AACd,oBAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
File without changes
|