@cdx-ui/components 0.0.1-beta.13 → 0.0.1-beta.130
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/README.md +34 -20
- package/lib/commonjs/animation/hooks/index.js +50 -0
- package/lib/commonjs/animation/hooks/index.js.map +1 -0
- package/lib/commonjs/animation/hooks/useCombinedAnimationDisabledState.js +50 -0
- package/lib/commonjs/animation/hooks/useCombinedAnimationDisabledState.js.map +1 -0
- package/lib/commonjs/animation/hooks/usePopupDialogContentAnimation.js +175 -0
- package/lib/commonjs/animation/hooks/usePopupDialogContentAnimation.js.map +1 -0
- package/lib/commonjs/animation/hooks/usePopupOverlayAnimation.js +69 -0
- package/lib/commonjs/animation/hooks/usePopupOverlayAnimation.js.map +1 -0
- package/lib/commonjs/animation/hooks/usePopupRootAnimation.js +26 -0
- package/lib/commonjs/animation/hooks/usePopupRootAnimation.js.map +1 -0
- package/lib/commonjs/animation/index.js +39 -0
- package/lib/commonjs/animation/index.js.map +1 -0
- package/lib/commonjs/animation/types.js +6 -0
- package/lib/commonjs/animation/types.js.map +1 -0
- package/lib/commonjs/animation/utils.js +223 -0
- package/lib/commonjs/animation/utils.js.map +1 -0
- package/lib/commonjs/components/Alert/index.js +263 -0
- package/lib/commonjs/components/Alert/index.js.map +1 -0
- package/lib/commonjs/components/Alert/styles.js +87 -0
- package/lib/commonjs/components/Alert/styles.js.map +1 -0
- package/lib/commonjs/components/AlertDialog/index.js +32 -16
- package/lib/commonjs/components/AlertDialog/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js +135 -26
- package/lib/commonjs/components/Avatar/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/styles.js +36 -29
- package/lib/commonjs/components/Avatar/styles.js.map +1 -1
- package/lib/commonjs/components/Badge/index.js +86 -0
- package/lib/commonjs/components/Badge/index.js.map +1 -0
- package/lib/commonjs/components/Badge/styles.js +127 -0
- package/lib/commonjs/components/Badge/styles.js.map +1 -0
- package/lib/commonjs/components/BottomSheet/index.js +75 -27
- package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/styles.js +8 -43
- package/lib/commonjs/components/BottomSheet/styles.js.map +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -11
- package/lib/commonjs/components/Box/Box.js.map +1 -1
- package/lib/commonjs/components/Breadcrumbs/index.js +219 -0
- package/lib/commonjs/components/Breadcrumbs/index.js.map +1 -0
- package/lib/commonjs/components/Breadcrumbs/styles.js +38 -0
- package/lib/commonjs/components/Breadcrumbs/styles.js.map +1 -0
- package/lib/commonjs/components/Button/index.js +143 -29
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Button/styles.js +95 -30
- package/lib/commonjs/components/Button/styles.js.map +1 -1
- package/lib/commonjs/components/CLAUDE.md +195 -0
- package/lib/commonjs/components/Card/index.js +74 -15
- package/lib/commonjs/components/Card/index.js.map +1 -1
- package/lib/commonjs/components/Card/styles.js +17 -3
- package/lib/commonjs/components/Card/styles.js.map +1 -1
- package/lib/commonjs/components/Carousel/index.js +153 -0
- package/lib/commonjs/components/Carousel/index.js.map +1 -0
- package/lib/commonjs/components/Carousel/paginationNavigation.js +35 -0
- package/lib/commonjs/components/Carousel/paginationNavigation.js.map +1 -0
- package/lib/commonjs/components/Carousel/styles.js +21 -0
- package/lib/commonjs/components/Carousel/styles.js.map +1 -0
- package/lib/commonjs/components/Checkbox/index.js +89 -48
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Checkbox/styles.js +44 -48
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
- package/lib/commonjs/components/Chip/index.js +115 -18
- package/lib/commonjs/components/Chip/index.js.map +1 -1
- package/lib/commonjs/components/Chip/styles.js +180 -23
- package/lib/commonjs/components/Chip/styles.js.map +1 -1
- package/lib/commonjs/components/CurrencyInput/index.js +157 -0
- package/lib/commonjs/components/CurrencyInput/index.js.map +1 -0
- package/lib/commonjs/components/CurrencyInput/styles.js +31 -0
- package/lib/commonjs/components/CurrencyInput/styles.js.map +1 -0
- package/lib/commonjs/components/Dialog/animation.js +13 -0
- package/lib/commonjs/components/Dialog/animation.js.map +1 -0
- package/lib/commonjs/components/Dialog/index.js +403 -66
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Dialog/styles.js +66 -16
- package/lib/commonjs/components/Dialog/styles.js.map +1 -1
- package/lib/commonjs/components/Divider/index.js +98 -0
- package/lib/commonjs/components/Divider/index.js.map +1 -0
- package/lib/commonjs/components/Divider/styles.js +75 -0
- package/lib/commonjs/components/Divider/styles.js.map +1 -0
- package/lib/commonjs/components/Field/index.js +77 -27
- package/lib/commonjs/components/Field/index.js.map +1 -1
- package/lib/commonjs/components/Field/styles.js +5 -5
- package/lib/commonjs/components/Field/styles.js.map +1 -1
- package/lib/commonjs/components/Form/index.js +5 -12
- package/lib/commonjs/components/Form/index.js.map +1 -1
- package/lib/commonjs/components/Heading/styles.js +1 -1
- package/lib/commonjs/components/Heading/styles.js.map +1 -1
- package/lib/commonjs/components/Icon/index.js +12 -5
- package/lib/commonjs/components/Icon/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/index.js +22 -35
- package/lib/commonjs/components/IconButton/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/styles.js +136 -11
- package/lib/commonjs/components/IconButton/styles.js.map +1 -1
- package/lib/commonjs/components/Input/index.js +50 -20
- package/lib/commonjs/components/Input/index.js.map +1 -1
- package/lib/commonjs/components/Input/styles.js +20 -7
- package/lib/commonjs/components/Input/styles.js.map +1 -1
- package/lib/commonjs/components/InsuranceDisclosure/index.js +56 -0
- package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -0
- package/lib/commonjs/components/InsuranceDisclosure/styles.js +11 -0
- package/lib/commonjs/components/InsuranceDisclosure/styles.js.map +1 -0
- package/lib/commonjs/components/Link/index.js +35 -9
- package/lib/commonjs/components/Link/index.js.map +1 -1
- package/lib/commonjs/components/Link/styles.js +54 -7
- package/lib/commonjs/components/Link/styles.js.map +1 -1
- package/lib/commonjs/components/ListItem/index.js +132 -79
- package/lib/commonjs/components/ListItem/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/styles.js +28 -56
- package/lib/commonjs/components/ListItem/styles.js.map +1 -1
- package/lib/commonjs/components/OtpInput/index.js +114 -36
- package/lib/commonjs/components/OtpInput/index.js.map +1 -1
- package/lib/commonjs/components/OtpInput/styles.js +9 -7
- package/lib/commonjs/components/OtpInput/styles.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/index.js +8 -13
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/styles.js +1 -1
- package/lib/commonjs/components/ProgressBar/styles.js.map +1 -1
- package/lib/commonjs/components/ProgressSegmented/index.js +24 -10
- package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
- package/lib/commonjs/components/ProgressSegmented/styles.js +2 -2
- package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -1
- package/lib/commonjs/components/QuickActionButton/index.js +133 -0
- package/lib/commonjs/components/QuickActionButton/index.js.map +1 -0
- package/lib/commonjs/components/QuickActionButton/styles.js +17 -0
- package/lib/commonjs/components/QuickActionButton/styles.js.map +1 -0
- package/lib/commonjs/components/Radio/index.js +66 -51
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/Radio/styles.js +21 -8
- package/lib/commonjs/components/Radio/styles.js.map +1 -1
- package/lib/commonjs/components/ScopedTheme/index.js +24 -0
- package/lib/commonjs/components/ScopedTheme/index.js.map +1 -0
- package/lib/commonjs/components/ScrollShadow/index.js +82 -0
- package/lib/commonjs/components/ScrollShadow/index.js.map +1 -0
- package/lib/commonjs/components/ScrollShadow/styles.js +54 -0
- package/lib/commonjs/components/ScrollShadow/styles.js.map +1 -0
- package/lib/commonjs/components/ScrollShadow/useScrollShadow.js +83 -0
- package/lib/commonjs/components/ScrollShadow/useScrollShadow.js.map +1 -0
- package/lib/commonjs/components/Select/index.js +111 -39
- package/lib/commonjs/components/Select/index.js.map +1 -1
- package/lib/commonjs/components/Select/styles.js +26 -21
- package/lib/commonjs/components/Select/styles.js.map +1 -1
- package/lib/commonjs/components/Skeleton/index.js +39 -0
- package/lib/commonjs/components/Skeleton/index.js.map +1 -0
- package/lib/commonjs/components/Skeleton/styles.js +9 -0
- package/lib/commonjs/components/Skeleton/styles.js.map +1 -0
- package/lib/commonjs/components/Slider/getSliderPopupPosition.js +43 -0
- package/lib/commonjs/components/Slider/getSliderPopupPosition.js.map +1 -0
- package/lib/commonjs/components/Slider/index.js +363 -0
- package/lib/commonjs/components/Slider/index.js.map +1 -0
- package/lib/commonjs/components/Slider/styles.js +112 -0
- package/lib/commonjs/components/Slider/styles.js.map +1 -0
- package/lib/commonjs/components/Switch/BaseSwitch.js +23 -13
- package/lib/commonjs/components/Switch/BaseSwitch.js.map +1 -1
- package/lib/commonjs/components/Switch/BaseSwitch.web.js +25 -21
- package/lib/commonjs/components/Switch/BaseSwitch.web.js.map +1 -1
- package/lib/commonjs/components/Switch/index.js +34 -3
- package/lib/commonjs/components/Switch/index.js.map +1 -1
- package/lib/commonjs/components/Tabs/index.js +527 -0
- package/lib/commonjs/components/Tabs/index.js.map +1 -0
- package/lib/commonjs/components/Tabs/styles.js +333 -0
- package/lib/commonjs/components/Tabs/styles.js.map +1 -0
- package/lib/commonjs/components/Text/styles.js +2 -2
- package/lib/commonjs/components/Text/styles.js.map +1 -1
- package/lib/commonjs/components/Textarea/index.js +135 -0
- package/lib/commonjs/components/Textarea/index.js.map +1 -0
- package/lib/commonjs/components/Textarea/styles.js +49 -0
- package/lib/commonjs/components/Textarea/styles.js.map +1 -0
- package/lib/commonjs/components/Tile/index.js +150 -77
- package/lib/commonjs/components/Tile/index.js.map +1 -1
- package/lib/commonjs/components/Tile/styles.js +3 -3
- package/lib/commonjs/components/Tile/styles.js.map +1 -1
- package/lib/commonjs/components/Toast/animation.js +331 -0
- package/lib/commonjs/components/Toast/animation.js.map +1 -0
- package/lib/commonjs/components/Toast/hooks.js +67 -0
- package/lib/commonjs/components/Toast/hooks.js.map +1 -0
- package/lib/commonjs/components/Toast/index.js +508 -0
- package/lib/commonjs/components/Toast/index.js.map +1 -0
- package/lib/commonjs/components/Toast/styles.js +141 -0
- package/lib/commonjs/components/Toast/styles.js.map +1 -0
- package/lib/commonjs/components/Toast/types.js +6 -0
- package/lib/commonjs/components/Toast/types.js.map +1 -0
- package/lib/commonjs/components/VirtualizedList/index.js.map +1 -1
- package/lib/commonjs/components/index.js +180 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/figma/Alert.Button.figma.js +31 -0
- package/lib/commonjs/figma/Alert.Button.figma.js.map +1 -0
- package/lib/commonjs/figma/Alert.Close.figma.js +24 -0
- package/lib/commonjs/figma/Alert.Close.figma.js.map +1 -0
- package/lib/commonjs/figma/Alert.Description.figma.js +20 -0
- package/lib/commonjs/figma/Alert.Description.figma.js.map +1 -0
- package/lib/commonjs/figma/Alert.Title.figma.js +20 -0
- package/lib/commonjs/figma/Alert.Title.figma.js.map +1 -0
- package/lib/commonjs/figma/Alert.figma.js +42 -0
- package/lib/commonjs/figma/Alert.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Description.figma.js +20 -0
- package/lib/commonjs/figma/AlertDialog.Description.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Footer.figma.js +41 -0
- package/lib/commonjs/figma/AlertDialog.Footer.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Header.figma.js +28 -0
- package/lib/commonjs/figma/AlertDialog.Header.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Text.figma.js +20 -0
- package/lib/commonjs/figma/AlertDialog.Text.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Title.figma.js +27 -0
- package/lib/commonjs/figma/AlertDialog.Title.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.figma.js +43 -0
- package/lib/commonjs/figma/AlertDialog.figma.js.map +1 -0
- package/lib/commonjs/figma/Avatar.figma.js +57 -0
- package/lib/commonjs/figma/Avatar.figma.js.map +1 -0
- package/lib/commonjs/figma/Badge.Indicator.figma.js +47 -0
- package/lib/commonjs/figma/Badge.Indicator.figma.js.map +1 -0
- package/lib/commonjs/figma/Badge.figma.js +65 -0
- package/lib/commonjs/figma/Badge.figma.js.map +1 -0
- package/lib/commonjs/figma/BottomSheet.Footer.figma.js +31 -0
- package/lib/commonjs/figma/BottomSheet.Footer.figma.js.map +1 -0
- package/lib/commonjs/figma/BottomSheet.Header.figma.js +30 -0
- package/lib/commonjs/figma/BottomSheet.Header.figma.js.map +1 -0
- package/lib/commonjs/figma/BottomSheet.figma.js +54 -0
- package/lib/commonjs/figma/BottomSheet.figma.js.map +1 -0
- package/lib/commonjs/figma/Button.figma.js +4 -7
- package/lib/commonjs/figma/Button.figma.js.map +1 -1
- package/lib/commonjs/figma/CLAUDE.md +30 -0
- package/lib/commonjs/figma/Card.Header.figma.js +28 -0
- package/lib/commonjs/figma/Card.Header.figma.js.map +1 -0
- package/lib/commonjs/figma/Card.Stripe.figma.js +20 -0
- package/lib/commonjs/figma/Card.Stripe.figma.js.map +1 -0
- package/lib/commonjs/figma/Card.figma.js +45 -0
- package/lib/commonjs/figma/Card.figma.js.map +1 -0
- package/lib/commonjs/figma/Checkbox.figma.js +55 -0
- package/lib/commonjs/figma/Checkbox.figma.js.map +1 -0
- package/lib/commonjs/figma/Chip.figma.js +68 -0
- package/lib/commonjs/figma/Chip.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Description.figma.js +20 -0
- package/lib/commonjs/figma/Dialog.Description.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Footer.figma.js +30 -0
- package/lib/commonjs/figma/Dialog.Footer.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Header.figma.js +34 -0
- package/lib/commonjs/figma/Dialog.Header.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Text.figma.js +20 -0
- package/lib/commonjs/figma/Dialog.Text.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Title.figma.js +27 -0
- package/lib/commonjs/figma/Dialog.Title.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.figma.js +51 -0
- package/lib/commonjs/figma/Dialog.figma.js.map +1 -0
- package/lib/commonjs/figma/Divider.figma.js +32 -0
- package/lib/commonjs/figma/Divider.figma.js.map +1 -0
- package/lib/commonjs/figma/Field.Input.figma.js +57 -0
- package/lib/commonjs/figma/Field.Input.figma.js.map +1 -0
- package/lib/commonjs/figma/Field.OtpInput.figma.js +52 -0
- package/lib/commonjs/figma/Field.OtpInput.figma.js.map +1 -0
- package/lib/commonjs/figma/Field.Select.figma.js +57 -0
- package/lib/commonjs/figma/Field.Select.figma.js.map +1 -0
- package/lib/commonjs/figma/Field.Textarea.figma.js +57 -0
- package/lib/commonjs/figma/Field.Textarea.figma.js.map +1 -0
- package/lib/commonjs/figma/Heading.figma.js +30 -0
- package/lib/commonjs/figma/Heading.figma.js.map +1 -0
- package/lib/commonjs/figma/Icon.figma.js +20 -0
- package/lib/commonjs/figma/Icon.figma.js.map +1 -0
- package/lib/commonjs/figma/IconButton.figma.js +47 -0
- package/lib/commonjs/figma/IconButton.figma.js.map +1 -0
- package/lib/commonjs/figma/Input.figma.js +52 -0
- package/lib/commonjs/figma/Input.figma.js.map +1 -0
- package/lib/commonjs/figma/Link.figma.js +30 -0
- package/lib/commonjs/figma/Link.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.Description.figma.js +23 -0
- package/lib/commonjs/figma/ListItem.Description.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.LeadingSlot.figma.js +24 -0
- package/lib/commonjs/figma/ListItem.LeadingSlot.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.Meta.figma.js +23 -0
- package/lib/commonjs/figma/ListItem.Meta.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.SectionHeader.figma.js +24 -0
- package/lib/commonjs/figma/ListItem.SectionHeader.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.Title.figma.js +23 -0
- package/lib/commonjs/figma/ListItem.Title.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.TrailingSlot.figma.js +24 -0
- package/lib/commonjs/figma/ListItem.TrailingSlot.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.figma.js +50 -0
- package/lib/commonjs/figma/ListItem.figma.js.map +1 -0
- package/lib/commonjs/figma/OtpInput.Cell.figma.js +55 -0
- package/lib/commonjs/figma/OtpInput.Cell.figma.js.map +1 -0
- package/lib/commonjs/figma/OtpInput.figma.js +42 -0
- package/lib/commonjs/figma/OtpInput.figma.js.map +1 -0
- package/lib/commonjs/figma/ProgressSegmented.figma.js +39 -0
- package/lib/commonjs/figma/ProgressSegmented.figma.js.map +1 -0
- package/lib/commonjs/figma/QuickActionButton.figma.js +38 -0
- package/lib/commonjs/figma/QuickActionButton.figma.js.map +1 -0
- package/lib/commonjs/figma/Radio.figma.js +8 -6
- package/lib/commonjs/figma/Radio.figma.js.map +1 -1
- package/lib/commonjs/figma/Select.figma.js +53 -0
- package/lib/commonjs/figma/Select.figma.js.map +1 -0
- package/lib/commonjs/figma/Text.figma.js +32 -0
- package/lib/commonjs/figma/Text.figma.js.map +1 -0
- package/lib/commonjs/figma/Textarea.figma.js +47 -0
- package/lib/commonjs/figma/Textarea.figma.js.map +1 -0
- package/lib/commonjs/figma/icons.figma.batch.js +27 -0
- package/lib/commonjs/figma/icons.figma.batch.js.map +1 -0
- package/lib/commonjs/figma/icons.figma.batch.json +17705 -0
- package/lib/commonjs/globals.d.js +2 -0
- package/lib/commonjs/globals.d.js.map +1 -0
- package/lib/commonjs/hooks/index.js +19 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/useForgeBottomTabScreenOptions.js +246 -0
- package/lib/commonjs/hooks/useForgeBottomTabScreenOptions.js.map +1 -0
- package/lib/commonjs/index.js +47 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/metro/withCdxMetroConfig.js +7 -18
- package/lib/commonjs/metro/withCdxMetroConfig.js.map +1 -1
- package/lib/commonjs/metro/withForgeMetroConfig.js +24 -0
- package/lib/commonjs/metro/withForgeMetroConfig.js.map +1 -0
- package/lib/commonjs/navigation/forgeTabIcon.js +43 -0
- package/lib/commonjs/navigation/forgeTabIcon.js.map +1 -0
- package/lib/commonjs/navigation/forgeTabIcon.native.js +35 -0
- package/lib/commonjs/navigation/forgeTabIcon.native.js.map +1 -0
- package/lib/commonjs/navigation/index.js +13 -0
- package/lib/commonjs/navigation/index.js.map +1 -0
- package/lib/commonjs/navigation/types.js +38 -0
- package/lib/commonjs/navigation/types.js.map +1 -0
- package/lib/commonjs/providers/animation-settings/index.js +31 -0
- package/lib/commonjs/providers/animation-settings/index.js.map +1 -0
- package/lib/commonjs/providers/animation-settings/provider.js +59 -0
- package/lib/commonjs/providers/animation-settings/provider.js.map +1 -0
- package/lib/commonjs/providers/animation-settings/types.js +6 -0
- package/lib/commonjs/providers/animation-settings/types.js.map +1 -0
- package/lib/commonjs/providers/forge-design/index.js +29 -0
- package/lib/commonjs/providers/forge-design/index.js.map +1 -0
- package/lib/commonjs/providers/forge-design/provider.js +71 -0
- package/lib/commonjs/providers/forge-design/provider.js.map +1 -0
- package/lib/commonjs/providers/forge-design/types.js +6 -0
- package/lib/commonjs/providers/forge-design/types.js.map +1 -0
- package/lib/commonjs/providers/text-component/index.js +28 -0
- package/lib/commonjs/providers/text-component/index.js.map +1 -0
- package/lib/commonjs/providers/text-component/provider.js +11 -0
- package/lib/commonjs/providers/text-component/provider.js.map +1 -0
- package/lib/commonjs/providers/text-component/types.js +6 -0
- package/lib/commonjs/providers/text-component/types.js.map +1 -0
- package/lib/commonjs/providers/toast/index.js +33 -0
- package/lib/commonjs/providers/toast/index.js.map +1 -0
- package/lib/commonjs/providers/toast/insets-container.js +166 -0
- package/lib/commonjs/providers/toast/insets-container.js.map +1 -0
- package/lib/commonjs/providers/toast/lifecycle.context.js +36 -0
- package/lib/commonjs/providers/toast/lifecycle.context.js.map +1 -0
- package/lib/commonjs/providers/toast/provider.js +508 -0
- package/lib/commonjs/providers/toast/provider.js.map +1 -0
- package/lib/commonjs/providers/toast/reducer.js +46 -0
- package/lib/commonjs/providers/toast/reducer.js.map +1 -0
- package/lib/commonjs/providers/toast/toast-config.context.js +29 -0
- package/lib/commonjs/providers/toast/toast-config.context.js.map +1 -0
- package/lib/commonjs/providers/toast/toast-item-renderer.js +43 -0
- package/lib/commonjs/providers/toast/toast-item-renderer.js.map +1 -0
- package/lib/commonjs/providers/toast/types.js +6 -0
- package/lib/commonjs/providers/toast/types.js.map +1 -0
- package/lib/commonjs/styles/constants.js +16 -0
- package/lib/commonjs/styles/constants.js.map +1 -0
- package/lib/commonjs/styles.css +0 -5
- package/lib/commonjs/utils/positionToDataIcon.js +41 -0
- package/lib/commonjs/utils/positionToDataIcon.js.map +1 -0
- package/lib/module/animation/hooks/index.js +7 -0
- package/lib/module/animation/hooks/index.js.map +1 -0
- package/lib/module/animation/hooks/useCombinedAnimationDisabledState.js +47 -0
- package/lib/module/animation/hooks/useCombinedAnimationDisabledState.js.map +1 -0
- package/lib/module/animation/hooks/usePopupDialogContentAnimation.js +171 -0
- package/lib/module/animation/hooks/usePopupDialogContentAnimation.js.map +1 -0
- package/lib/module/animation/hooks/usePopupOverlayAnimation.js +65 -0
- package/lib/module/animation/hooks/usePopupOverlayAnimation.js.map +1 -0
- package/lib/module/animation/hooks/usePopupRootAnimation.js +22 -0
- package/lib/module/animation/hooks/usePopupRootAnimation.js.map +1 -0
- package/lib/module/animation/index.js +6 -0
- package/lib/module/animation/index.js.map +1 -0
- package/lib/module/animation/types.js +4 -0
- package/lib/module/animation/types.js.map +1 -0
- package/lib/module/animation/utils.js +212 -0
- package/lib/module/animation/utils.js.map +1 -0
- package/lib/module/components/Alert/index.js +259 -0
- package/lib/module/components/Alert/index.js.map +1 -0
- package/lib/module/components/Alert/styles.js +84 -0
- package/lib/module/components/Alert/styles.js.map +1 -0
- package/lib/module/components/AlertDialog/index.js +33 -16
- package/lib/module/components/AlertDialog/index.js.map +1 -1
- package/lib/module/components/Avatar/index.js +138 -29
- package/lib/module/components/Avatar/index.js.map +1 -1
- package/lib/module/components/Avatar/styles.js +36 -29
- package/lib/module/components/Avatar/styles.js.map +1 -1
- package/lib/module/components/Badge/index.js +83 -0
- package/lib/module/components/Badge/index.js.map +1 -0
- package/lib/module/components/Badge/styles.js +123 -0
- package/lib/module/components/Badge/styles.js.map +1 -0
- package/lib/module/components/BottomSheet/index.js +80 -32
- package/lib/module/components/BottomSheet/index.js.map +1 -1
- package/lib/module/components/BottomSheet/styles.js +7 -42
- package/lib/module/components/BottomSheet/styles.js.map +1 -1
- package/lib/module/components/Box/Box.js +1 -11
- package/lib/module/components/Box/Box.js.map +1 -1
- package/lib/module/components/Breadcrumbs/index.js +215 -0
- package/lib/module/components/Breadcrumbs/index.js.map +1 -0
- package/lib/module/components/Breadcrumbs/styles.js +34 -0
- package/lib/module/components/Breadcrumbs/styles.js.map +1 -0
- package/lib/module/components/Button/index.js +146 -33
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Button/styles.js +94 -29
- package/lib/module/components/Button/styles.js.map +1 -1
- package/lib/module/components/CLAUDE.md +195 -0
- package/lib/module/components/Card/index.js +77 -18
- package/lib/module/components/Card/index.js.map +1 -1
- package/lib/module/components/Card/styles.js +16 -2
- package/lib/module/components/Card/styles.js.map +1 -1
- package/lib/module/components/Carousel/index.js +147 -0
- package/lib/module/components/Carousel/index.js.map +1 -0
- package/lib/module/components/Carousel/paginationNavigation.js +31 -0
- package/lib/module/components/Carousel/paginationNavigation.js.map +1 -0
- package/lib/module/components/Carousel/styles.js +18 -0
- package/lib/module/components/Carousel/styles.js.map +1 -0
- package/lib/module/components/Checkbox/index.js +93 -52
- package/lib/module/components/Checkbox/index.js.map +1 -1
- package/lib/module/components/Checkbox/styles.js +45 -48
- package/lib/module/components/Checkbox/styles.js.map +1 -1
- package/lib/module/components/Chip/index.js +119 -22
- package/lib/module/components/Chip/index.js.map +1 -1
- package/lib/module/components/Chip/styles.js +179 -22
- package/lib/module/components/Chip/styles.js.map +1 -1
- package/lib/module/components/CurrencyInput/index.js +154 -0
- package/lib/module/components/CurrencyInput/index.js.map +1 -0
- package/lib/module/components/CurrencyInput/styles.js +27 -0
- package/lib/module/components/CurrencyInput/styles.js.map +1 -0
- package/lib/module/components/Dialog/animation.js +7 -0
- package/lib/module/components/Dialog/animation.js.map +1 -0
- package/lib/module/components/Dialog/index.js +409 -74
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Dialog/styles.js +65 -15
- package/lib/module/components/Dialog/styles.js.map +1 -1
- package/lib/module/components/Divider/index.js +94 -0
- package/lib/module/components/Divider/index.js.map +1 -0
- package/lib/module/components/Divider/styles.js +71 -0
- package/lib/module/components/Divider/styles.js.map +1 -0
- package/lib/module/components/Field/index.js +81 -32
- package/lib/module/components/Field/index.js.map +1 -1
- package/lib/module/components/Field/styles.js +5 -5
- package/lib/module/components/Field/styles.js.map +1 -1
- package/lib/module/components/Form/index.js +7 -14
- package/lib/module/components/Form/index.js.map +1 -1
- package/lib/module/components/Heading/styles.js +1 -1
- package/lib/module/components/Heading/styles.js.map +1 -1
- package/lib/module/components/Icon/index.js +12 -5
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/IconButton/index.js +24 -37
- package/lib/module/components/IconButton/index.js.map +1 -1
- package/lib/module/components/IconButton/styles.js +136 -11
- package/lib/module/components/IconButton/styles.js.map +1 -1
- package/lib/module/components/Input/index.js +53 -23
- package/lib/module/components/Input/index.js.map +1 -1
- package/lib/module/components/Input/styles.js +20 -7
- package/lib/module/components/Input/styles.js.map +1 -1
- package/lib/module/components/InsuranceDisclosure/index.js +52 -0
- package/lib/module/components/InsuranceDisclosure/index.js.map +1 -0
- package/lib/module/components/InsuranceDisclosure/styles.js +7 -0
- package/lib/module/components/InsuranceDisclosure/styles.js.map +1 -0
- package/lib/module/components/Link/index.js +38 -11
- package/lib/module/components/Link/index.js.map +1 -1
- package/lib/module/components/Link/styles.js +53 -7
- package/lib/module/components/Link/styles.js.map +1 -1
- package/lib/module/components/ListItem/index.js +137 -84
- package/lib/module/components/ListItem/index.js.map +1 -1
- package/lib/module/components/ListItem/styles.js +28 -56
- package/lib/module/components/ListItem/styles.js.map +1 -1
- package/lib/module/components/OtpInput/index.js +114 -36
- package/lib/module/components/OtpInput/index.js.map +1 -1
- package/lib/module/components/OtpInput/styles.js +9 -7
- package/lib/module/components/OtpInput/styles.js.map +1 -1
- package/lib/module/components/ProgressBar/index.js +9 -14
- package/lib/module/components/ProgressBar/index.js.map +1 -1
- package/lib/module/components/ProgressBar/styles.js +1 -1
- package/lib/module/components/ProgressBar/styles.js.map +1 -1
- package/lib/module/components/ProgressSegmented/index.js +25 -11
- package/lib/module/components/ProgressSegmented/index.js.map +1 -1
- package/lib/module/components/ProgressSegmented/styles.js +2 -2
- package/lib/module/components/ProgressSegmented/styles.js.map +1 -1
- package/lib/module/components/QuickActionButton/index.js +129 -0
- package/lib/module/components/QuickActionButton/index.js.map +1 -0
- package/lib/module/components/QuickActionButton/styles.js +13 -0
- package/lib/module/components/QuickActionButton/styles.js.map +1 -0
- package/lib/module/components/Radio/index.js +69 -55
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/Radio/styles.js +20 -8
- package/lib/module/components/Radio/styles.js.map +1 -1
- package/lib/module/components/ScopedTheme/index.js +19 -0
- package/lib/module/components/ScopedTheme/index.js.map +1 -0
- package/lib/module/components/ScrollShadow/index.js +78 -0
- package/lib/module/components/ScrollShadow/index.js.map +1 -0
- package/lib/module/components/ScrollShadow/styles.js +50 -0
- package/lib/module/components/ScrollShadow/styles.js.map +1 -0
- package/lib/module/components/ScrollShadow/useScrollShadow.js +79 -0
- package/lib/module/components/ScrollShadow/useScrollShadow.js.map +1 -0
- package/lib/module/components/Select/index.js +117 -45
- package/lib/module/components/Select/index.js.map +1 -1
- package/lib/module/components/Select/styles.js +26 -21
- package/lib/module/components/Select/styles.js.map +1 -1
- package/lib/module/components/Skeleton/index.js +34 -0
- package/lib/module/components/Skeleton/index.js.map +1 -0
- package/lib/module/components/Skeleton/styles.js +5 -0
- package/lib/module/components/Skeleton/styles.js.map +1 -0
- package/lib/module/components/Slider/getSliderPopupPosition.js +38 -0
- package/lib/module/components/Slider/getSliderPopupPosition.js.map +1 -0
- package/lib/module/components/Slider/index.js +359 -0
- package/lib/module/components/Slider/index.js.map +1 -0
- package/lib/module/components/Slider/styles.js +108 -0
- package/lib/module/components/Slider/styles.js.map +1 -0
- package/lib/module/components/Switch/BaseSwitch.js +24 -14
- package/lib/module/components/Switch/BaseSwitch.js.map +1 -1
- package/lib/module/components/Switch/BaseSwitch.web.js +26 -22
- package/lib/module/components/Switch/BaseSwitch.web.js.map +1 -1
- package/lib/module/components/Switch/index.js +35 -4
- package/lib/module/components/Switch/index.js.map +1 -1
- package/lib/module/components/Tabs/index.js +522 -0
- package/lib/module/components/Tabs/index.js.map +1 -0
- package/lib/module/components/Tabs/styles.js +330 -0
- package/lib/module/components/Tabs/styles.js.map +1 -0
- package/lib/module/components/Text/styles.js +2 -2
- package/lib/module/components/Text/styles.js.map +1 -1
- package/lib/module/components/Textarea/index.js +132 -0
- package/lib/module/components/Textarea/index.js.map +1 -0
- package/lib/module/components/Textarea/styles.js +45 -0
- package/lib/module/components/Textarea/styles.js.map +1 -0
- package/lib/module/components/Tile/index.js +155 -83
- package/lib/module/components/Tile/index.js.map +1 -1
- package/lib/module/components/Tile/styles.js +2 -2
- package/lib/module/components/Tile/styles.js.map +1 -1
- package/lib/module/components/Toast/animation.js +326 -0
- package/lib/module/components/Toast/animation.js.map +1 -0
- package/lib/module/components/Toast/hooks.js +62 -0
- package/lib/module/components/Toast/hooks.js.map +1 -0
- package/lib/module/components/Toast/index.js +502 -0
- package/lib/module/components/Toast/index.js.map +1 -0
- package/lib/module/components/Toast/styles.js +138 -0
- package/lib/module/components/Toast/styles.js.map +1 -0
- package/lib/module/components/Toast/types.js +4 -0
- package/lib/module/components/Toast/types.js.map +1 -0
- package/lib/module/components/VirtualizedList/index.js.map +1 -1
- package/lib/module/components/index.js +15 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/figma/Alert.Button.figma.js +25 -0
- package/lib/module/figma/Alert.Button.figma.js.map +1 -0
- package/lib/module/figma/Alert.Close.figma.js +18 -0
- package/lib/module/figma/Alert.Close.figma.js.map +1 -0
- package/lib/module/figma/Alert.Description.figma.js +14 -0
- package/lib/module/figma/Alert.Description.figma.js.map +1 -0
- package/lib/module/figma/Alert.Title.figma.js +14 -0
- package/lib/module/figma/Alert.Title.figma.js.map +1 -0
- package/lib/module/figma/Alert.figma.js +36 -0
- package/lib/module/figma/Alert.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Description.figma.js +14 -0
- package/lib/module/figma/AlertDialog.Description.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Footer.figma.js +35 -0
- package/lib/module/figma/AlertDialog.Footer.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Header.figma.js +22 -0
- package/lib/module/figma/AlertDialog.Header.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Text.figma.js +14 -0
- package/lib/module/figma/AlertDialog.Text.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Title.figma.js +21 -0
- package/lib/module/figma/AlertDialog.Title.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.figma.js +37 -0
- package/lib/module/figma/AlertDialog.figma.js.map +1 -0
- package/lib/module/figma/Avatar.figma.js +51 -0
- package/lib/module/figma/Avatar.figma.js.map +1 -0
- package/lib/module/figma/Badge.Indicator.figma.js +41 -0
- package/lib/module/figma/Badge.Indicator.figma.js.map +1 -0
- package/lib/module/figma/Badge.figma.js +59 -0
- package/lib/module/figma/Badge.figma.js.map +1 -0
- package/lib/module/figma/BottomSheet.Footer.figma.js +25 -0
- package/lib/module/figma/BottomSheet.Footer.figma.js.map +1 -0
- package/lib/module/figma/BottomSheet.Header.figma.js +24 -0
- package/lib/module/figma/BottomSheet.Header.figma.js.map +1 -0
- package/lib/module/figma/BottomSheet.figma.js +48 -0
- package/lib/module/figma/BottomSheet.figma.js.map +1 -0
- package/lib/module/figma/Button.figma.js +4 -7
- package/lib/module/figma/Button.figma.js.map +1 -1
- package/lib/module/figma/CLAUDE.md +30 -0
- package/lib/module/figma/Card.Header.figma.js +22 -0
- package/lib/module/figma/Card.Header.figma.js.map +1 -0
- package/lib/module/figma/Card.Stripe.figma.js +15 -0
- package/lib/module/figma/Card.Stripe.figma.js.map +1 -0
- package/lib/module/figma/Card.figma.js +39 -0
- package/lib/module/figma/Card.figma.js.map +1 -0
- package/lib/module/figma/Checkbox.figma.js +49 -0
- package/lib/module/figma/Checkbox.figma.js.map +1 -0
- package/lib/module/figma/Chip.figma.js +62 -0
- package/lib/module/figma/Chip.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Description.figma.js +14 -0
- package/lib/module/figma/Dialog.Description.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Footer.figma.js +24 -0
- package/lib/module/figma/Dialog.Footer.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Header.figma.js +28 -0
- package/lib/module/figma/Dialog.Header.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Text.figma.js +14 -0
- package/lib/module/figma/Dialog.Text.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Title.figma.js +21 -0
- package/lib/module/figma/Dialog.Title.figma.js.map +1 -0
- package/lib/module/figma/Dialog.figma.js +45 -0
- package/lib/module/figma/Dialog.figma.js.map +1 -0
- package/lib/module/figma/Divider.figma.js +26 -0
- package/lib/module/figma/Divider.figma.js.map +1 -0
- package/lib/module/figma/Field.Input.figma.js +51 -0
- package/lib/module/figma/Field.Input.figma.js.map +1 -0
- package/lib/module/figma/Field.OtpInput.figma.js +46 -0
- package/lib/module/figma/Field.OtpInput.figma.js.map +1 -0
- package/lib/module/figma/Field.Select.figma.js +51 -0
- package/lib/module/figma/Field.Select.figma.js.map +1 -0
- package/lib/module/figma/Field.Textarea.figma.js +51 -0
- package/lib/module/figma/Field.Textarea.figma.js.map +1 -0
- package/lib/module/figma/Heading.figma.js +24 -0
- package/lib/module/figma/Heading.figma.js.map +1 -0
- package/lib/module/figma/Icon.figma.js +14 -0
- package/lib/module/figma/Icon.figma.js.map +1 -0
- package/lib/module/figma/IconButton.figma.js +41 -0
- package/lib/module/figma/IconButton.figma.js.map +1 -0
- package/lib/module/figma/Input.figma.js +46 -0
- package/lib/module/figma/Input.figma.js.map +1 -0
- package/lib/module/figma/Link.figma.js +24 -0
- package/lib/module/figma/Link.figma.js.map +1 -0
- package/lib/module/figma/ListItem.Description.figma.js +17 -0
- package/lib/module/figma/ListItem.Description.figma.js.map +1 -0
- package/lib/module/figma/ListItem.LeadingSlot.figma.js +18 -0
- package/lib/module/figma/ListItem.LeadingSlot.figma.js.map +1 -0
- package/lib/module/figma/ListItem.Meta.figma.js +17 -0
- package/lib/module/figma/ListItem.Meta.figma.js.map +1 -0
- package/lib/module/figma/ListItem.SectionHeader.figma.js +18 -0
- package/lib/module/figma/ListItem.SectionHeader.figma.js.map +1 -0
- package/lib/module/figma/ListItem.Title.figma.js +17 -0
- package/lib/module/figma/ListItem.Title.figma.js.map +1 -0
- package/lib/module/figma/ListItem.TrailingSlot.figma.js +18 -0
- package/lib/module/figma/ListItem.TrailingSlot.figma.js.map +1 -0
- package/lib/module/figma/ListItem.figma.js +44 -0
- package/lib/module/figma/ListItem.figma.js.map +1 -0
- package/lib/module/figma/OtpInput.Cell.figma.js +49 -0
- package/lib/module/figma/OtpInput.Cell.figma.js.map +1 -0
- package/lib/module/figma/OtpInput.figma.js +36 -0
- package/lib/module/figma/OtpInput.figma.js.map +1 -0
- package/lib/module/figma/ProgressSegmented.figma.js +33 -0
- package/lib/module/figma/ProgressSegmented.figma.js.map +1 -0
- package/lib/module/figma/QuickActionButton.figma.js +32 -0
- package/lib/module/figma/QuickActionButton.figma.js.map +1 -0
- package/lib/module/figma/Radio.figma.js +8 -6
- package/lib/module/figma/Radio.figma.js.map +1 -1
- package/lib/module/figma/Select.figma.js +47 -0
- package/lib/module/figma/Select.figma.js.map +1 -0
- package/lib/module/figma/Text.figma.js +26 -0
- package/lib/module/figma/Text.figma.js.map +1 -0
- package/lib/module/figma/Textarea.figma.js +41 -0
- package/lib/module/figma/Textarea.figma.js.map +1 -0
- package/lib/module/figma/icons.figma.batch.js +22 -0
- package/lib/module/figma/icons.figma.batch.js.map +1 -0
- package/lib/module/figma/icons.figma.batch.json +17705 -0
- package/lib/module/globals.d.js +2 -0
- package/lib/module/globals.d.js.map +1 -0
- package/lib/module/hooks/index.js +4 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useForgeBottomTabScreenOptions.js +242 -0
- package/lib/module/hooks/useForgeBottomTabScreenOptions.js.map +1 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/metro/withCdxMetroConfig.js +3 -17
- package/lib/module/metro/withCdxMetroConfig.js.map +1 -1
- package/lib/module/metro/withForgeMetroConfig.js +20 -0
- package/lib/module/metro/withForgeMetroConfig.js.map +1 -0
- package/lib/module/navigation/forgeTabIcon.js +39 -0
- package/lib/module/navigation/forgeTabIcon.js.map +1 -0
- package/lib/module/navigation/forgeTabIcon.native.js +31 -0
- package/lib/module/navigation/forgeTabIcon.native.js.map +1 -0
- package/lib/module/navigation/index.js +4 -0
- package/lib/module/navigation/index.js.map +1 -0
- package/lib/module/navigation/types.js +36 -0
- package/lib/module/navigation/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 +52 -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/forge-design/index.js +5 -0
- package/lib/module/providers/forge-design/index.js.map +1 -0
- package/lib/module/providers/forge-design/provider.js +66 -0
- package/lib/module/providers/forge-design/provider.js.map +1 -0
- package/lib/module/providers/forge-design/types.js +4 -0
- package/lib/module/providers/forge-design/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 +6 -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 +6 -0
- package/lib/module/providers/toast/index.js.map +1 -0
- package/lib/module/providers/toast/insets-container.js +162 -0
- package/lib/module/providers/toast/insets-container.js.map +1 -0
- package/lib/module/providers/toast/lifecycle.context.js +32 -0
- package/lib/module/providers/toast/lifecycle.context.js.map +1 -0
- package/lib/module/providers/toast/provider.js +503 -0
- package/lib/module/providers/toast/provider.js.map +1 -0
- package/lib/module/providers/toast/reducer.js +42 -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 +39 -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/constants.js +12 -0
- package/lib/module/styles/constants.js.map +1 -0
- package/lib/module/styles.css +0 -5
- package/lib/module/utils/positionToDataIcon.js +38 -0
- package/lib/module/utils/positionToDataIcon.js.map +1 -0
- package/lib/typescript/animation/hooks/index.d.ts +5 -0
- package/lib/typescript/animation/hooks/index.d.ts.map +1 -0
- package/lib/typescript/animation/hooks/useCombinedAnimationDisabledState.d.ts +22 -0
- package/lib/typescript/animation/hooks/useCombinedAnimationDisabledState.d.ts.map +1 -0
- package/lib/typescript/animation/hooks/usePopupDialogContentAnimation.d.ts +47 -0
- package/lib/typescript/animation/hooks/usePopupDialogContentAnimation.d.ts.map +1 -0
- package/lib/typescript/animation/hooks/usePopupOverlayAnimation.d.ts +29 -0
- package/lib/typescript/animation/hooks/usePopupOverlayAnimation.d.ts.map +1 -0
- package/lib/typescript/animation/hooks/usePopupRootAnimation.d.ts +16 -0
- package/lib/typescript/animation/hooks/usePopupRootAnimation.d.ts.map +1 -0
- package/lib/typescript/animation/index.d.ts +4 -0
- package/lib/typescript/animation/index.d.ts.map +1 -0
- package/lib/typescript/animation/types.d.ts +105 -0
- package/lib/typescript/animation/types.d.ts.map +1 -0
- package/lib/typescript/animation/utils.d.ts +120 -0
- package/lib/typescript/animation/utils.d.ts.map +1 -0
- package/lib/typescript/components/Alert/index.d.ts +67 -0
- package/lib/typescript/components/Alert/index.d.ts.map +1 -0
- package/lib/typescript/components/Alert/styles.d.ts +19 -0
- package/lib/typescript/components/Alert/styles.d.ts.map +1 -0
- package/lib/typescript/components/AlertDialog/index.d.ts +10 -7
- package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/index.d.ts +14 -2
- package/lib/typescript/components/Avatar/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/styles.d.ts +4 -4
- package/lib/typescript/components/Avatar/styles.d.ts.map +1 -1
- package/lib/typescript/components/Badge/index.d.ts +14 -0
- package/lib/typescript/components/Badge/index.d.ts.map +1 -0
- package/lib/typescript/components/Badge/styles.d.ts +18 -0
- package/lib/typescript/components/Badge/styles.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheet/index.d.ts +2 -2
- package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/styles.d.ts +4 -8
- package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -1
- package/lib/typescript/components/Box/Box.d.ts +0 -3
- package/lib/typescript/components/Box/Box.d.ts.map +1 -1
- package/lib/typescript/components/Breadcrumbs/index.d.ts +28 -0
- package/lib/typescript/components/Breadcrumbs/index.d.ts.map +1 -0
- package/lib/typescript/components/Breadcrumbs/styles.d.ts +11 -0
- package/lib/typescript/components/Breadcrumbs/styles.d.ts.map +1 -0
- package/lib/typescript/components/Button/index.d.ts +81 -9
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/styles.d.ts +10 -7
- package/lib/typescript/components/Button/styles.d.ts.map +1 -1
- package/lib/typescript/components/Card/index.d.ts +12 -2
- package/lib/typescript/components/Card/index.d.ts.map +1 -1
- package/lib/typescript/components/Card/styles.d.ts +5 -1
- package/lib/typescript/components/Card/styles.d.ts.map +1 -1
- package/lib/typescript/components/Carousel/index.d.ts +70 -0
- package/lib/typescript/components/Carousel/index.d.ts.map +1 -0
- package/lib/typescript/components/Carousel/paginationNavigation.d.ts +12 -0
- package/lib/typescript/components/Carousel/paginationNavigation.d.ts.map +1 -0
- package/lib/typescript/components/Carousel/styles.d.ts +8 -0
- package/lib/typescript/components/Carousel/styles.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox/index.d.ts +4 -3
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/styles.d.ts +4 -14
- package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +51 -8
- package/lib/typescript/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/styles.d.ts +12 -4
- package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
- package/lib/typescript/components/CurrencyInput/index.d.ts +15 -0
- package/lib/typescript/components/CurrencyInput/index.d.ts.map +1 -0
- package/lib/typescript/components/CurrencyInput/styles.d.ts +9 -0
- package/lib/typescript/components/CurrencyInput/styles.d.ts.map +1 -0
- package/lib/typescript/components/Dialog/animation.d.ts +11 -0
- package/lib/typescript/components/Dialog/animation.d.ts.map +1 -0
- package/lib/typescript/components/Dialog/index.d.ts +43 -13
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/styles.d.ts +17 -5
- package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
- package/lib/typescript/components/Divider/index.d.ts +21 -0
- package/lib/typescript/components/Divider/index.d.ts.map +1 -0
- package/lib/typescript/components/Divider/styles.d.ts +12 -0
- package/lib/typescript/components/Divider/styles.d.ts.map +1 -0
- package/lib/typescript/components/Field/index.d.ts +14 -7
- package/lib/typescript/components/Field/index.d.ts.map +1 -1
- package/lib/typescript/components/Field/styles.d.ts.map +1 -1
- package/lib/typescript/components/Form/index.d.ts +4 -4
- package/lib/typescript/components/Form/index.d.ts.map +1 -1
- package/lib/typescript/components/Heading/styles.d.ts +1 -1
- package/lib/typescript/components/Icon/index.d.ts +5 -5
- package/lib/typescript/components/Icon/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/index.d.ts +14 -4
- package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/styles.d.ts +6 -2
- package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Input/index.d.ts +31 -5
- package/lib/typescript/components/Input/index.d.ts.map +1 -1
- package/lib/typescript/components/Input/styles.d.ts.map +1 -1
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts +10 -0
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -0
- package/lib/typescript/components/InsuranceDisclosure/styles.d.ts +4 -0
- package/lib/typescript/components/InsuranceDisclosure/styles.d.ts.map +1 -0
- package/lib/typescript/components/Link/index.d.ts +5 -2
- package/lib/typescript/components/Link/index.d.ts.map +1 -1
- package/lib/typescript/components/Link/styles.d.ts +9 -2
- package/lib/typescript/components/Link/styles.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/index.d.ts +28 -6
- package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/styles.d.ts +3 -10
- package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
- package/lib/typescript/components/OtpInput/index.d.ts +30 -3
- package/lib/typescript/components/OtpInput/index.d.ts.map +1 -1
- package/lib/typescript/components/OtpInput/styles.d.ts.map +1 -1
- package/lib/typescript/components/ProgressBar/index.d.ts +4 -4
- package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -1
- package/lib/typescript/components/ProgressSegmented/index.d.ts +14 -3
- package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
- package/lib/typescript/components/QuickActionButton/index.d.ts +41 -0
- package/lib/typescript/components/QuickActionButton/index.d.ts.map +1 -0
- package/lib/typescript/components/QuickActionButton/styles.d.ts +7 -0
- package/lib/typescript/components/QuickActionButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/Radio/index.d.ts +4 -0
- package/lib/typescript/components/Radio/index.d.ts.map +1 -1
- package/lib/typescript/components/Radio/styles.d.ts.map +1 -1
- package/lib/typescript/components/ScopedTheme/index.d.ts +16 -0
- package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -0
- package/lib/typescript/components/ScrollShadow/index.d.ts +29 -0
- package/lib/typescript/components/ScrollShadow/index.d.ts.map +1 -0
- package/lib/typescript/components/ScrollShadow/styles.d.ts +12 -0
- package/lib/typescript/components/ScrollShadow/styles.d.ts.map +1 -0
- package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts +17 -0
- package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts.map +1 -0
- package/lib/typescript/components/Select/index.d.ts +35 -2
- package/lib/typescript/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/styles.d.ts.map +1 -1
- package/lib/typescript/components/Skeleton/index.d.ts +9 -0
- package/lib/typescript/components/Skeleton/index.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton/styles.d.ts +4 -0
- package/lib/typescript/components/Skeleton/styles.d.ts.map +1 -0
- package/lib/typescript/components/Slider/getSliderPopupPosition.d.ts +10 -0
- package/lib/typescript/components/Slider/getSliderPopupPosition.d.ts.map +1 -0
- package/lib/typescript/components/Slider/index.d.ts +61 -0
- package/lib/typescript/components/Slider/index.d.ts.map +1 -0
- package/lib/typescript/components/Slider/styles.d.ts +30 -0
- package/lib/typescript/components/Slider/styles.d.ts.map +1 -0
- package/lib/typescript/components/Stack/styles.d.ts +2 -2
- package/lib/typescript/components/Switch/BaseSwitch.d.ts +12 -5
- package/lib/typescript/components/Switch/BaseSwitch.d.ts.map +1 -1
- package/lib/typescript/components/Switch/BaseSwitch.web.d.ts +11 -5
- package/lib/typescript/components/Switch/BaseSwitch.web.d.ts.map +1 -1
- package/lib/typescript/components/Switch/index.d.ts +15 -3
- package/lib/typescript/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/components/Tabs/index.d.ts +48 -0
- package/lib/typescript/components/Tabs/index.d.ts.map +1 -0
- package/lib/typescript/components/Tabs/styles.d.ts +107 -0
- package/lib/typescript/components/Tabs/styles.d.ts.map +1 -0
- package/lib/typescript/components/Text/styles.d.ts +1 -1
- package/lib/typescript/components/Textarea/index.d.ts +27 -0
- package/lib/typescript/components/Textarea/index.d.ts.map +1 -0
- package/lib/typescript/components/Textarea/styles.d.ts +11 -0
- package/lib/typescript/components/Textarea/styles.d.ts.map +1 -0
- package/lib/typescript/components/Tile/index.d.ts +8 -2
- package/lib/typescript/components/Tile/index.d.ts.map +1 -1
- package/lib/typescript/components/Tile/styles.d.ts +1 -1
- package/lib/typescript/components/Toast/animation.d.ts +21 -0
- package/lib/typescript/components/Toast/animation.d.ts.map +1 -0
- package/lib/typescript/components/Toast/hooks.d.ts +17 -0
- package/lib/typescript/components/Toast/hooks.d.ts.map +1 -0
- package/lib/typescript/components/Toast/index.d.ts +28 -0
- package/lib/typescript/components/Toast/index.d.ts.map +1 -0
- package/lib/typescript/components/Toast/styles.d.ts +73 -0
- package/lib/typescript/components/Toast/styles.d.ts.map +1 -0
- package/lib/typescript/components/Toast/types.d.ts +308 -0
- package/lib/typescript/components/Toast/types.d.ts.map +1 -0
- package/lib/typescript/components/VirtualizedList/index.d.ts +2 -1
- package/lib/typescript/components/VirtualizedList/index.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +15 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/figma/Alert.Button.figma.d.ts +11 -0
- package/lib/typescript/figma/Alert.Button.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Alert.Close.figma.d.ts +11 -0
- package/lib/typescript/figma/Alert.Close.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Alert.Description.figma.d.ts +8 -0
- package/lib/typescript/figma/Alert.Description.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Alert.Title.figma.d.ts +8 -0
- package/lib/typescript/figma/Alert.Title.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Alert.figma.d.ts +8 -0
- package/lib/typescript/figma/Alert.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Description.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Description.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Footer.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Footer.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Header.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Header.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Text.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Text.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Title.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Title.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Avatar.figma.d.ts +11 -0
- package/lib/typescript/figma/Avatar.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Badge.Indicator.figma.d.ts +11 -0
- package/lib/typescript/figma/Badge.Indicator.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Badge.figma.d.ts +8 -0
- package/lib/typescript/figma/Badge.figma.d.ts.map +1 -0
- package/lib/typescript/figma/BottomSheet.Footer.figma.d.ts +8 -0
- package/lib/typescript/figma/BottomSheet.Footer.figma.d.ts.map +1 -0
- package/lib/typescript/figma/BottomSheet.Header.figma.d.ts +8 -0
- package/lib/typescript/figma/BottomSheet.Header.figma.d.ts.map +1 -0
- package/lib/typescript/figma/BottomSheet.figma.d.ts +8 -0
- package/lib/typescript/figma/BottomSheet.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Button.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Card.Header.figma.d.ts +8 -0
- package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Card.Stripe.figma.d.ts +11 -0
- package/lib/typescript/figma/Card.Stripe.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Card.figma.d.ts +8 -0
- package/lib/typescript/figma/Card.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Checkbox.figma.d.ts +8 -0
- package/lib/typescript/figma/Checkbox.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Chip.figma.d.ts +8 -0
- package/lib/typescript/figma/Chip.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Description.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Description.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Footer.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Footer.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Header.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Header.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Text.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Text.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Title.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Title.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Divider.figma.d.ts +8 -0
- package/lib/typescript/figma/Divider.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Field.Input.figma.d.ts +8 -0
- package/lib/typescript/figma/Field.Input.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Field.OtpInput.figma.d.ts +8 -0
- package/lib/typescript/figma/Field.OtpInput.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Field.Select.figma.d.ts +8 -0
- package/lib/typescript/figma/Field.Select.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Field.Textarea.figma.d.ts +8 -0
- package/lib/typescript/figma/Field.Textarea.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Heading.figma.d.ts +8 -0
- package/lib/typescript/figma/Heading.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Icon.figma.d.ts +8 -0
- package/lib/typescript/figma/Icon.figma.d.ts.map +1 -0
- package/lib/typescript/figma/IconButton.figma.d.ts +8 -0
- package/lib/typescript/figma/IconButton.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Input.figma.d.ts +8 -0
- package/lib/typescript/figma/Input.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Link.figma.d.ts +8 -0
- package/lib/typescript/figma/Link.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.Description.figma.d.ts +11 -0
- package/lib/typescript/figma/ListItem.Description.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.LeadingSlot.figma.d.ts +8 -0
- package/lib/typescript/figma/ListItem.LeadingSlot.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.Meta.figma.d.ts +11 -0
- package/lib/typescript/figma/ListItem.Meta.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts +8 -0
- package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.Title.figma.d.ts +11 -0
- package/lib/typescript/figma/ListItem.Title.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.TrailingSlot.figma.d.ts +8 -0
- package/lib/typescript/figma/ListItem.TrailingSlot.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.figma.d.ts +8 -0
- package/lib/typescript/figma/ListItem.figma.d.ts.map +1 -0
- package/lib/typescript/figma/OtpInput.Cell.figma.d.ts +8 -0
- package/lib/typescript/figma/OtpInput.Cell.figma.d.ts.map +1 -0
- package/lib/typescript/figma/OtpInput.figma.d.ts +8 -0
- package/lib/typescript/figma/OtpInput.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ProgressSegmented.figma.d.ts +8 -0
- package/lib/typescript/figma/ProgressSegmented.figma.d.ts.map +1 -0
- package/lib/typescript/figma/QuickActionButton.figma.d.ts +8 -0
- package/lib/typescript/figma/QuickActionButton.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Radio.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Select.figma.d.ts +8 -0
- package/lib/typescript/figma/Select.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Text.figma.d.ts +11 -0
- package/lib/typescript/figma/Text.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Textarea.figma.d.ts +8 -0
- package/lib/typescript/figma/Textarea.figma.d.ts.map +1 -0
- package/lib/typescript/figma/icons.figma.batch.d.ts +14 -0
- package/lib/typescript/figma/icons.figma.batch.d.ts.map +1 -0
- package/lib/typescript/hooks/index.d.ts +2 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useForgeBottomTabScreenOptions.d.ts +137 -0
- package/lib/typescript/hooks/useForgeBottomTabScreenOptions.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +6 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/metro/withCdxMetroConfig.d.ts +4 -18
- package/lib/typescript/metro/withCdxMetroConfig.d.ts.map +1 -1
- package/lib/typescript/metro/withForgeMetroConfig.d.ts +19 -0
- package/lib/typescript/metro/withForgeMetroConfig.d.ts.map +1 -0
- package/lib/typescript/navigation/forgeTabIcon.d.ts +27 -0
- package/lib/typescript/navigation/forgeTabIcon.d.ts.map +1 -0
- package/lib/typescript/navigation/forgeTabIcon.native.d.ts +15 -0
- package/lib/typescript/navigation/forgeTabIcon.native.d.ts.map +1 -0
- package/lib/typescript/navigation/index.d.ts +4 -0
- package/lib/typescript/navigation/index.d.ts.map +1 -0
- package/lib/typescript/navigation/types.d.ts +37 -0
- package/lib/typescript/navigation/types.d.ts.map +1 -0
- package/lib/typescript/providers/animation-settings/index.d.ts +3 -0
- package/lib/typescript/providers/animation-settings/index.d.ts.map +1 -0
- package/lib/typescript/providers/animation-settings/provider.d.ts +28 -0
- package/lib/typescript/providers/animation-settings/provider.d.ts.map +1 -0
- package/lib/typescript/providers/animation-settings/types.d.ts +35 -0
- package/lib/typescript/providers/animation-settings/types.d.ts.map +1 -0
- package/lib/typescript/providers/forge-design/index.d.ts +3 -0
- package/lib/typescript/providers/forge-design/index.d.ts.map +1 -0
- package/lib/typescript/providers/forge-design/provider.d.ts +24 -0
- package/lib/typescript/providers/forge-design/provider.d.ts.map +1 -0
- package/lib/typescript/providers/forge-design/types.d.ts +82 -0
- package/lib/typescript/providers/forge-design/types.d.ts.map +1 -0
- package/lib/typescript/providers/text-component/index.d.ts +3 -0
- package/lib/typescript/providers/text-component/index.d.ts.map +1 -0
- package/lib/typescript/providers/text-component/provider.d.ts +7 -0
- package/lib/typescript/providers/text-component/provider.d.ts.map +1 -0
- package/lib/typescript/providers/text-component/types.d.ts +51 -0
- package/lib/typescript/providers/text-component/types.d.ts.map +1 -0
- package/lib/typescript/providers/toast/index.d.ts +5 -0
- package/lib/typescript/providers/toast/index.d.ts.map +1 -0
- package/lib/typescript/providers/toast/insets-container.d.ts +72 -0
- package/lib/typescript/providers/toast/insets-container.d.ts.map +1 -0
- package/lib/typescript/providers/toast/lifecycle.context.d.ts +32 -0
- package/lib/typescript/providers/toast/lifecycle.context.d.ts.map +1 -0
- package/lib/typescript/providers/toast/provider.d.ts +32 -0
- package/lib/typescript/providers/toast/provider.d.ts.map +1 -0
- package/lib/typescript/providers/toast/reducer.d.ts +14 -0
- package/lib/typescript/providers/toast/reducer.d.ts.map +1 -0
- package/lib/typescript/providers/toast/toast-config.context.d.ts +20 -0
- package/lib/typescript/providers/toast/toast-config.context.d.ts.map +1 -0
- package/lib/typescript/providers/toast/toast-item-renderer.d.ts +7 -0
- package/lib/typescript/providers/toast/toast-item-renderer.d.ts.map +1 -0
- package/lib/typescript/providers/toast/types.d.ts +422 -0
- package/lib/typescript/providers/toast/types.d.ts.map +1 -0
- package/lib/typescript/styles/constants.d.ts +4 -0
- package/lib/typescript/styles/constants.d.ts.map +1 -0
- package/lib/typescript/utils/positionToDataIcon.d.ts +29 -0
- package/lib/typescript/utils/positionToDataIcon.d.ts.map +1 -0
- package/package.json +27 -16
- package/src/animation/hooks/index.ts +4 -0
- package/src/animation/hooks/useCombinedAnimationDisabledState.ts +46 -0
- package/src/animation/hooks/usePopupDialogContentAnimation.ts +265 -0
- package/src/animation/hooks/usePopupOverlayAnimation.ts +91 -0
- package/src/animation/hooks/usePopupRootAnimation.ts +27 -0
- package/src/animation/index.ts +3 -0
- package/src/animation/types.ts +128 -0
- package/src/animation/utils.ts +249 -0
- package/src/components/Alert/index.tsx +318 -0
- package/src/components/Alert/styles.ts +88 -0
- package/src/components/AlertDialog/index.tsx +36 -22
- package/src/components/Avatar/index.tsx +143 -45
- package/src/components/Avatar/styles.ts +49 -34
- package/src/components/Badge/index.tsx +91 -0
- package/src/components/Badge/styles.ts +136 -0
- package/src/components/BottomSheet/index.tsx +107 -50
- package/src/components/BottomSheet/styles.ts +9 -56
- package/src/components/Box/Box.tsx +3 -7
- package/src/components/Breadcrumbs/index.tsx +311 -0
- package/src/components/Breadcrumbs/styles.ts +63 -0
- package/src/components/Button/index.tsx +284 -47
- package/src/components/Button/styles.ts +78 -37
- package/src/components/CLAUDE.md +195 -0
- package/src/components/Card/index.tsx +94 -28
- package/src/components/Card/styles.ts +19 -4
- package/src/components/Carousel/index.tsx +263 -0
- package/src/components/Carousel/paginationNavigation.ts +32 -0
- package/src/components/Carousel/styles.ts +18 -0
- package/src/components/Checkbox/index.tsx +124 -51
- package/src/components/Checkbox/styles.ts +93 -84
- package/src/components/Chip/index.tsx +194 -32
- package/src/components/Chip/styles.ts +224 -22
- package/src/components/CurrencyInput/index.tsx +192 -0
- package/src/components/CurrencyInput/styles.ts +44 -0
- package/src/components/Dialog/animation.ts +13 -0
- package/src/components/Dialog/index.tsx +538 -90
- package/src/components/Dialog/styles.ts +93 -30
- package/src/components/Divider/index.tsx +94 -0
- package/src/components/Divider/styles.ts +86 -0
- package/src/components/Field/index.tsx +121 -50
- package/src/components/Field/styles.ts +6 -5
- package/src/components/Form/index.tsx +18 -14
- package/src/components/Heading/styles.ts +1 -1
- package/src/components/Icon/index.tsx +14 -8
- package/src/components/IconButton/index.tsx +41 -37
- package/src/components/IconButton/styles.ts +136 -10
- package/src/components/Input/index.tsx +95 -33
- package/src/components/Input/styles.ts +35 -12
- package/src/components/InsuranceDisclosure/index.tsx +59 -0
- package/src/components/InsuranceDisclosure/styles.ts +12 -0
- package/src/components/Link/index.tsx +58 -18
- package/src/components/Link/styles.ts +47 -10
- package/src/components/ListItem/index.tsx +157 -87
- package/src/components/ListItem/styles.ts +46 -70
- package/src/components/OtpInput/index.tsx +149 -34
- package/src/components/OtpInput/styles.ts +20 -13
- package/src/components/ProgressBar/index.tsx +11 -16
- package/src/components/ProgressBar/styles.ts +1 -1
- package/src/components/ProgressSegmented/index.tsx +45 -14
- package/src/components/ProgressSegmented/styles.ts +2 -2
- package/src/components/QuickActionButton/index.tsx +161 -0
- package/src/components/QuickActionButton/styles.ts +42 -0
- package/src/components/Radio/index.tsx +96 -53
- package/src/components/Radio/styles.ts +37 -14
- package/src/components/ScopedTheme/index.tsx +17 -0
- package/src/components/ScrollShadow/index.tsx +119 -0
- package/src/components/ScrollShadow/styles.ts +57 -0
- package/src/components/ScrollShadow/useScrollShadow.ts +110 -0
- package/src/components/Select/index.tsx +175 -55
- package/src/components/Select/styles.ts +63 -51
- package/src/components/Skeleton/index.tsx +43 -0
- package/src/components/Skeleton/styles.ts +5 -0
- package/src/components/Slider/getSliderPopupPosition.ts +37 -0
- package/src/components/Slider/index.tsx +456 -0
- package/src/components/Slider/styles.ts +147 -0
- package/src/components/Switch/BaseSwitch.tsx +38 -16
- package/src/components/Switch/BaseSwitch.web.tsx +28 -35
- package/src/components/Switch/index.tsx +61 -6
- package/src/components/Tabs/index.tsx +698 -0
- package/src/components/Tabs/styles.ts +340 -0
- package/src/components/Text/styles.ts +2 -2
- package/src/components/Textarea/index.tsx +180 -0
- package/src/components/Textarea/styles.ts +86 -0
- package/src/components/Tile/index.tsx +145 -94
- package/src/components/Tile/styles.ts +2 -2
- package/src/components/Toast/animation.ts +405 -0
- package/src/components/Toast/hooks.ts +93 -0
- package/src/components/Toast/index.tsx +551 -0
- package/src/components/Toast/styles.ts +186 -0
- package/src/components/Toast/types.ts +338 -0
- package/src/components/VirtualizedList/index.tsx +11 -1
- package/src/components/index.ts +15 -0
- package/src/globals.d.ts +1 -0
- package/src/hooks/index.ts +5 -0
- package/src/hooks/useForgeBottomTabScreenOptions.ts +245 -0
- package/src/index.ts +6 -0
- package/src/metro/withCdxMetroConfig.ts +4 -29
- package/src/metro/withForgeMetroConfig.ts +29 -0
- package/src/navigation/forgeTabIcon.native.ts +36 -0
- package/src/navigation/forgeTabIcon.ts +33 -0
- package/src/navigation/index.ts +3 -0
- package/src/navigation/types.ts +54 -0
- package/src/providers/animation-settings/index.ts +11 -0
- package/src/providers/animation-settings/provider.tsx +54 -0
- package/src/providers/animation-settings/types.ts +37 -0
- package/src/providers/forge-design/index.ts +2 -0
- package/src/providers/forge-design/provider.tsx +61 -0
- package/src/providers/forge-design/types.ts +84 -0
- package/src/providers/text-component/index.ts +2 -0
- package/src/providers/text-component/provider.tsx +7 -0
- package/src/providers/text-component/types.ts +52 -0
- package/src/providers/toast/index.ts +4 -0
- package/src/providers/toast/insets-container.tsx +232 -0
- package/src/providers/toast/lifecycle.context.tsx +37 -0
- package/src/providers/toast/provider.tsx +572 -0
- package/src/providers/toast/reducer.ts +40 -0
- package/src/providers/toast/toast-config.context.ts +25 -0
- package/src/providers/toast/toast-item-renderer.tsx +40 -0
- package/src/providers/toast/types.ts +431 -0
- package/src/styles/constants.ts +10 -0
- package/src/styles.css +0 -5
- package/src/utils/positionToDataIcon.ts +34 -0
- package/lib/commonjs/components/Field/FieldLabel.js +0 -33
- package/lib/commonjs/components/Field/FieldLabel.js.map +0 -1
- package/lib/commonjs/components/Field/FieldLabel.web.js +0 -22
- package/lib/commonjs/components/Field/FieldLabel.web.js.map +0 -1
- package/lib/commonjs/components/Form/FormRoot.js +0 -25
- package/lib/commonjs/components/Form/FormRoot.js.map +0 -1
- package/lib/commonjs/components/Form/FormRoot.web.js +0 -17
- package/lib/commonjs/components/Form/FormRoot.web.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.android.js +0 -20
- package/lib/commonjs/components/Input/BaseInput.android.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.js +0 -13
- package/lib/commonjs/components/Input/BaseInput.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.web.js +0 -50
- package/lib/commonjs/components/Input/BaseInput.web.js.map +0 -1
- package/lib/commonjs/components/Select/SelectTriggerHost.js +0 -10
- package/lib/commonjs/components/Select/SelectTriggerHost.js.map +0 -1
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js +0 -98
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +0 -1
- package/lib/commonjs/styles/index.js +0 -17
- package/lib/commonjs/styles/index.js.map +0 -1
- package/lib/commonjs/styles/primitives.js +0 -156
- package/lib/commonjs/styles/primitives.js.map +0 -1
- package/lib/commonjs/utils/WrapStringChild.js +0 -22
- package/lib/commonjs/utils/WrapStringChild.js.map +0 -1
- package/lib/module/components/Field/FieldLabel.js +0 -29
- package/lib/module/components/Field/FieldLabel.js.map +0 -1
- package/lib/module/components/Field/FieldLabel.web.js +0 -17
- package/lib/module/components/Field/FieldLabel.web.js.map +0 -1
- package/lib/module/components/Form/FormRoot.js +0 -21
- package/lib/module/components/Form/FormRoot.js.map +0 -1
- package/lib/module/components/Form/FormRoot.web.js +0 -12
- package/lib/module/components/Form/FormRoot.web.js.map +0 -1
- package/lib/module/components/Input/BaseInput.android.js +0 -16
- package/lib/module/components/Input/BaseInput.android.js.map +0 -1
- package/lib/module/components/Input/BaseInput.js +0 -4
- package/lib/module/components/Input/BaseInput.js.map +0 -1
- package/lib/module/components/Input/BaseInput.web.js +0 -45
- package/lib/module/components/Input/BaseInput.web.js.map +0 -1
- package/lib/module/components/Select/SelectTriggerHost.js +0 -7
- package/lib/module/components/Select/SelectTriggerHost.js.map +0 -1
- package/lib/module/components/Select/SelectTriggerHost.web.js +0 -93
- package/lib/module/components/Select/SelectTriggerHost.web.js.map +0 -1
- package/lib/module/styles/index.js +0 -4
- package/lib/module/styles/index.js.map +0 -1
- package/lib/module/styles/primitives.js +0 -152
- package/lib/module/styles/primitives.js.map +0 -1
- package/lib/module/utils/WrapStringChild.js +0 -18
- package/lib/module/utils/WrapStringChild.js.map +0 -1
- package/lib/typescript/components/Field/FieldLabel.d.ts +0 -18
- package/lib/typescript/components/Field/FieldLabel.d.ts.map +0 -1
- package/lib/typescript/components/Field/FieldLabel.web.d.ts +0 -16
- package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +0 -1
- package/lib/typescript/components/Form/FormRoot.d.ts +0 -14
- package/lib/typescript/components/Form/FormRoot.d.ts.map +0 -1
- package/lib/typescript/components/Form/FormRoot.web.d.ts +0 -10
- package/lib/typescript/components/Form/FormRoot.web.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.android.d.ts +0 -3
- package/lib/typescript/components/Input/BaseInput.android.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.d.ts +0 -2
- package/lib/typescript/components/Input/BaseInput.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.web.d.ts +0 -3
- package/lib/typescript/components/Input/BaseInput.web.d.ts.map +0 -1
- package/lib/typescript/components/Select/SelectTriggerHost.d.ts +0 -3
- package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +0 -1
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +0 -13
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +0 -1
- package/lib/typescript/styles/index.d.ts +0 -2
- package/lib/typescript/styles/index.d.ts.map +0 -1
- package/lib/typescript/styles/primitives.d.ts +0 -120
- package/lib/typescript/styles/primitives.d.ts.map +0 -1
- package/lib/typescript/utils/WrapStringChild.d.ts +0 -10
- package/lib/typescript/utils/WrapStringChild.d.ts.map +0 -1
- package/src/components/Field/FieldLabel.tsx +0 -33
- package/src/components/Field/FieldLabel.web.tsx +0 -25
- package/src/components/Form/FormRoot.tsx +0 -20
- package/src/components/Form/FormRoot.web.tsx +0 -12
- package/src/components/Input/BaseInput.android.tsx +0 -13
- package/src/components/Input/BaseInput.tsx +0 -1
- package/src/components/Input/BaseInput.web.tsx +0 -41
- package/src/components/Select/SelectTriggerHost.tsx +0 -4
- package/src/components/Select/SelectTriggerHost.web.tsx +0 -136
- package/src/styles/index.ts +0 -1
- package/src/styles/primitives.ts +0 -140
- package/src/utils/WrapStringChild.tsx +0 -25
|
@@ -1,23 +1,57 @@
|
|
|
1
|
-
import { forwardRef, type ReactNode } from 'react';
|
|
2
|
-
import { Pressable, Text, View, type PressableProps, type ViewProps } from 'react-native';
|
|
3
|
-
import { Close as CloseIcon } from '@cdx-ui/icons';
|
|
4
1
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
forwardRef,
|
|
3
|
+
useEffect,
|
|
4
|
+
useLayoutEffect,
|
|
5
|
+
useMemo,
|
|
6
|
+
useRef,
|
|
7
|
+
useState,
|
|
8
|
+
type ReactNode,
|
|
9
|
+
} from 'react';
|
|
10
|
+
import {
|
|
11
|
+
KeyboardAvoidingView,
|
|
12
|
+
Platform,
|
|
13
|
+
StyleSheet,
|
|
14
|
+
Text,
|
|
15
|
+
View,
|
|
16
|
+
type TextProps,
|
|
17
|
+
type ViewProps,
|
|
18
|
+
} from 'react-native';
|
|
19
|
+
import { GestureDetector } from 'react-native-gesture-handler';
|
|
20
|
+
import Animated, { useSharedValue } from 'react-native-reanimated';
|
|
21
|
+
import { CheckCircle, Close as CloseIcon, EmergencyHome, Warning } from '@cdx-ui/icons';
|
|
22
|
+
import {
|
|
23
|
+
DialogClose as DialogClosePrimitive,
|
|
24
|
+
DialogContent as DialogContentPrimitive,
|
|
25
|
+
DialogOverlay as DialogOverlayPrimitive,
|
|
26
|
+
DialogPortal as DialogPortalPrimitive,
|
|
27
|
+
DialogRoot as DialogRootPrimitive,
|
|
28
|
+
DialogTrigger as DialogTriggerPrimitive,
|
|
29
|
+
FullWindowOverlay,
|
|
30
|
+
Slot,
|
|
31
|
+
dataAttributes,
|
|
32
|
+
mergeDataAttributes,
|
|
33
|
+
useDialog,
|
|
7
34
|
type IDialogCloseProps,
|
|
8
35
|
type IDialogContentProps,
|
|
9
|
-
type IDialogDescriptionProps,
|
|
10
|
-
type IDialogFooterProps,
|
|
11
|
-
type IDialogHeaderProps,
|
|
12
36
|
type IDialogRootProps,
|
|
13
|
-
type IDialogTitleProps,
|
|
14
37
|
type IDialogTriggerProps,
|
|
15
38
|
} from '@cdx-ui/primitives';
|
|
16
|
-
import { cn,
|
|
39
|
+
import { cn, mergeRefs, ParentContext, useParentContext, useStyleContext } from '@cdx-ui/utils';
|
|
40
|
+
import {
|
|
41
|
+
usePopupDialogContentAnimation,
|
|
42
|
+
usePopupOverlayAnimation,
|
|
43
|
+
usePopupRootAnimation,
|
|
44
|
+
type AnimationRootDisableAll,
|
|
45
|
+
} from '../../animation';
|
|
46
|
+
import {
|
|
47
|
+
AnimationSettingsProvider,
|
|
48
|
+
useAnimationSettings,
|
|
49
|
+
} from '../../providers/animation-settings';
|
|
17
50
|
import { Icon } from '../Icon';
|
|
51
|
+
import { DialogAnimationProvider, useDialogAnimation } from './animation';
|
|
18
52
|
import {
|
|
53
|
+
type DialogTitleVariantProps,
|
|
19
54
|
type DialogVariantProps,
|
|
20
|
-
dialogBodyVariants,
|
|
21
55
|
dialogCloseIconVariants,
|
|
22
56
|
dialogCloseVariants,
|
|
23
57
|
dialogContentVariants,
|
|
@@ -25,48 +59,33 @@ import {
|
|
|
25
59
|
dialogFooterVariants,
|
|
26
60
|
dialogHeaderVariants,
|
|
27
61
|
dialogOverlayVariants,
|
|
62
|
+
dialogPopupVariants,
|
|
63
|
+
dialogPortalVariants,
|
|
64
|
+
dialogTextVariants,
|
|
65
|
+
dialogTitleIconVariants,
|
|
28
66
|
dialogTitleVariants,
|
|
29
67
|
} from './styles';
|
|
30
68
|
|
|
31
69
|
export { useDialog } from '@cdx-ui/primitives';
|
|
32
70
|
|
|
71
|
+
const IS_WEB = Platform.OS === 'web';
|
|
72
|
+
const WEB_TRANSITION_SAFETY_MS = 300;
|
|
73
|
+
|
|
74
|
+
type DialogDataState = 'entering' | 'open' | 'closed';
|
|
75
|
+
|
|
33
76
|
// =============================================================================
|
|
34
77
|
// STYLE CONTEXT
|
|
35
78
|
// =============================================================================
|
|
36
79
|
|
|
37
80
|
const SCOPE = 'DIALOG';
|
|
38
81
|
|
|
39
|
-
const Root = withStyleContext(View, SCOPE);
|
|
40
|
-
|
|
41
82
|
const useDialogStyleContext = () => useStyleContext(SCOPE) as DialogVariantProps;
|
|
42
83
|
|
|
43
84
|
// =============================================================================
|
|
44
|
-
//
|
|
85
|
+
// ANIMATED PRIMITIVES
|
|
45
86
|
// =============================================================================
|
|
46
87
|
|
|
47
|
-
const
|
|
48
|
-
({ className, ...props }, ref) => (
|
|
49
|
-
<Pressable ref={ref} className={cn(dialogOverlayVariants(), className)} {...props} />
|
|
50
|
-
),
|
|
51
|
-
);
|
|
52
|
-
StyledOverlay.displayName = 'Dialog.Overlay';
|
|
53
|
-
|
|
54
|
-
// =============================================================================
|
|
55
|
-
// CREATE DIALOG PRIMITIVE
|
|
56
|
-
// =============================================================================
|
|
57
|
-
|
|
58
|
-
const DialogPrimitive = createDialog({
|
|
59
|
-
Root,
|
|
60
|
-
Trigger: Pressable,
|
|
61
|
-
Overlay: StyledOverlay,
|
|
62
|
-
Content: View,
|
|
63
|
-
Header: View,
|
|
64
|
-
Title: Text,
|
|
65
|
-
Description: Text,
|
|
66
|
-
Body: View,
|
|
67
|
-
Footer: View,
|
|
68
|
-
Close: Pressable,
|
|
69
|
-
});
|
|
88
|
+
const AnimatedOverlay = Animated.createAnimatedComponent(DialogOverlayPrimitive);
|
|
70
89
|
|
|
71
90
|
// =============================================================================
|
|
72
91
|
// STYLED ROOT
|
|
@@ -75,14 +94,48 @@ const DialogPrimitive = createDialog({
|
|
|
75
94
|
export interface DialogRootProps
|
|
76
95
|
extends Omit<ViewProps, 'children' | 'role'>, IDialogRootProps, DialogVariantProps {
|
|
77
96
|
className?: string;
|
|
97
|
+
animation?: AnimationRootDisableAll;
|
|
78
98
|
}
|
|
79
99
|
|
|
80
100
|
const DialogRoot = forwardRef<View, DialogRootProps>(
|
|
81
|
-
({ size = 'md', className, children, style, ...props }, ref) =>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
101
|
+
({ size = 'md', fullBleed = false, animation, className, children, style, ...props }, ref) => {
|
|
102
|
+
const parent = useParentContext();
|
|
103
|
+
const ctx = useMemo(
|
|
104
|
+
() => ({ ...parent, [SCOPE]: { size, fullBleed } }),
|
|
105
|
+
[parent, size, fullBleed],
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
const { progress, isDragging, isGestureReleaseAnimationRunning, isAllAnimationsDisabled } =
|
|
109
|
+
usePopupRootAnimation({ animation });
|
|
110
|
+
|
|
111
|
+
const animationContextValue = useMemo(
|
|
112
|
+
() => ({ progress, isDragging, isGestureReleaseAnimationRunning }),
|
|
113
|
+
[progress, isDragging, isGestureReleaseAnimationRunning],
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
const animationSettingsContextValue = useMemo(
|
|
117
|
+
() => ({ isAllAnimationsDisabled }),
|
|
118
|
+
[isAllAnimationsDisabled],
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
return (
|
|
122
|
+
<AnimationSettingsProvider value={animationSettingsContextValue}>
|
|
123
|
+
<DialogAnimationProvider value={animationContextValue}>
|
|
124
|
+
<ParentContext.Provider value={ctx}>
|
|
125
|
+
<DialogRootPrimitive
|
|
126
|
+
ref={ref}
|
|
127
|
+
className={className}
|
|
128
|
+
style={style}
|
|
129
|
+
{...props}
|
|
130
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog' }))}
|
|
131
|
+
>
|
|
132
|
+
{children}
|
|
133
|
+
</DialogRootPrimitive>
|
|
134
|
+
</ParentContext.Provider>
|
|
135
|
+
</DialogAnimationProvider>
|
|
136
|
+
</AnimationSettingsProvider>
|
|
137
|
+
);
|
|
138
|
+
},
|
|
86
139
|
);
|
|
87
140
|
|
|
88
141
|
DialogRoot.displayName = 'Dialog';
|
|
@@ -98,56 +151,301 @@ export interface DialogTriggerProps extends IDialogTriggerProps {
|
|
|
98
151
|
|
|
99
152
|
const DialogTrigger = forwardRef<View, DialogTriggerProps>(
|
|
100
153
|
({ className, children, style, ...props }, ref) => (
|
|
101
|
-
<
|
|
154
|
+
<DialogTriggerPrimitive
|
|
155
|
+
ref={ref}
|
|
156
|
+
className={className}
|
|
157
|
+
style={style}
|
|
158
|
+
{...props}
|
|
159
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog-trigger' }))}
|
|
160
|
+
>
|
|
102
161
|
{children}
|
|
103
|
-
</
|
|
162
|
+
</DialogTriggerPrimitive>
|
|
104
163
|
),
|
|
105
164
|
);
|
|
106
165
|
|
|
107
166
|
DialogTrigger.displayName = 'Dialog.Trigger';
|
|
108
167
|
|
|
109
168
|
// =============================================================================
|
|
110
|
-
// STYLED
|
|
169
|
+
// STYLED POPUP (portal + overlay + content composition)
|
|
111
170
|
// =============================================================================
|
|
112
171
|
|
|
113
|
-
export interface
|
|
172
|
+
export interface DialogPopupProps
|
|
173
|
+
extends Omit<IDialogContentProps, 'asChild'>, Pick<DialogVariantProps, 'size'> {
|
|
114
174
|
className?: string;
|
|
115
175
|
children?: ReactNode;
|
|
176
|
+
disableFullWindowOverlay?: boolean;
|
|
177
|
+
isSwipeable?: boolean;
|
|
116
178
|
}
|
|
117
179
|
|
|
118
|
-
const
|
|
119
|
-
(
|
|
180
|
+
const DialogPopup = forwardRef<View, DialogPopupProps>(
|
|
181
|
+
(
|
|
182
|
+
{
|
|
183
|
+
size: sizeProp,
|
|
184
|
+
className,
|
|
185
|
+
children,
|
|
186
|
+
style,
|
|
187
|
+
forceMount = false,
|
|
188
|
+
avoidKeyboard = true,
|
|
189
|
+
keyboardVerticalOffset = 0,
|
|
190
|
+
disableFullWindowOverlay = false,
|
|
191
|
+
isSwipeable = true,
|
|
192
|
+
...props
|
|
193
|
+
},
|
|
194
|
+
ref,
|
|
195
|
+
) => {
|
|
120
196
|
const { size: contextSize } = useDialogStyleContext();
|
|
121
197
|
const size = sizeProp ?? contextSize;
|
|
122
|
-
const
|
|
198
|
+
const { open, onOpenChange } = useDialog();
|
|
199
|
+
const parentContext = useParentContext();
|
|
200
|
+
|
|
201
|
+
const animationContext = useDialogAnimation();
|
|
202
|
+
const parentAnimationSettings = useAnimationSettings();
|
|
203
|
+
|
|
204
|
+
const fallbackProgress = useSharedValue(0);
|
|
205
|
+
const fallbackIsDragging = useSharedValue(false);
|
|
206
|
+
const fallbackIsGestureReleaseAnimationRunning = useSharedValue(false);
|
|
207
|
+
|
|
208
|
+
const progress = animationContext?.progress ?? fallbackProgress;
|
|
209
|
+
const isDragging = animationContext?.isDragging ?? fallbackIsDragging;
|
|
210
|
+
const isGestureReleaseAnimationRunning =
|
|
211
|
+
animationContext?.isGestureReleaseAnimationRunning ??
|
|
212
|
+
fallbackIsGestureReleaseAnimationRunning;
|
|
213
|
+
|
|
214
|
+
const {
|
|
215
|
+
rContainerStyle,
|
|
216
|
+
entering: overlayEntering,
|
|
217
|
+
exiting: overlayExiting,
|
|
218
|
+
} = usePopupOverlayAnimation({
|
|
219
|
+
progress,
|
|
220
|
+
isDragging,
|
|
221
|
+
isGestureReleaseAnimationRunning,
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
const {
|
|
225
|
+
contentY,
|
|
226
|
+
contentHeight,
|
|
227
|
+
panGesture,
|
|
228
|
+
rDragContainerStyle,
|
|
229
|
+
entering: contentEntering,
|
|
230
|
+
exiting: contentExiting,
|
|
231
|
+
} = usePopupDialogContentAnimation({
|
|
232
|
+
isOpen: open,
|
|
233
|
+
progress,
|
|
234
|
+
isDragging,
|
|
235
|
+
isGestureReleaseAnimationRunning,
|
|
236
|
+
onOpenChange,
|
|
237
|
+
isSwipeable,
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
const dragContainerRef = useRef<View>(null);
|
|
241
|
+
|
|
242
|
+
useLayoutEffect(() => {
|
|
243
|
+
if (!open || IS_WEB) return;
|
|
244
|
+
dragContainerRef.current?.measure((_x, _y, _width, height, _pageX, pageY) => {
|
|
245
|
+
contentY.set(pageY);
|
|
246
|
+
contentHeight.set(height);
|
|
247
|
+
});
|
|
248
|
+
}, [open, contentY, contentHeight]);
|
|
249
|
+
|
|
250
|
+
// ---- Web enter/exit lifecycle ----
|
|
251
|
+
// Mirrors the Toast pattern: mount → 'entering' → (rAF) → 'open' → (close)
|
|
252
|
+
// → 'closed' → (transitionend) → unmount.
|
|
253
|
+
//
|
|
254
|
+
// Critical: `isExiting` is derived synchronously (via ref tracking the previous
|
|
255
|
+
// `open` value) so the component stays mounted in the SAME render that sees
|
|
256
|
+
// `open` go false — if we used useEffect the component would return null before
|
|
257
|
+
// the effect fires.
|
|
258
|
+
//
|
|
259
|
+
// The transitionend listener targets the popup element (via popupRef) instead of
|
|
260
|
+
// the portal wrapper. CSS exit transitions live on the overlay and popup children,
|
|
261
|
+
// not the wrapper — listening on the wrapper would unmount on the first bubbled
|
|
262
|
+
// event, potentially cutting the other child's animation short.
|
|
263
|
+
const wrapperRef = useRef<View | null>(null);
|
|
264
|
+
const popupRef = useRef<View | null>(null);
|
|
265
|
+
const prevOpenRef = useRef(open);
|
|
266
|
+
const [isExiting, setIsExiting] = useState(false);
|
|
267
|
+
const [webState, setWebState] = useState<DialogDataState>(open ? 'entering' : 'closed');
|
|
268
|
+
|
|
269
|
+
// Detect open → false transition synchronously during render
|
|
270
|
+
if (IS_WEB && prevOpenRef.current && !open && !isExiting) {
|
|
271
|
+
setIsExiting(true);
|
|
272
|
+
setWebState('closed');
|
|
273
|
+
}
|
|
274
|
+
// Detect closed → open transition synchronously during render
|
|
275
|
+
if (IS_WEB && !prevOpenRef.current && open) {
|
|
276
|
+
setIsExiting(false);
|
|
277
|
+
setWebState('entering');
|
|
278
|
+
}
|
|
279
|
+
prevOpenRef.current = open;
|
|
280
|
+
|
|
281
|
+
// Entrance: commit 'entering' on first paint, then transition to 'open'
|
|
282
|
+
useEffect(() => {
|
|
283
|
+
if (!IS_WEB || !open) return;
|
|
284
|
+
const raf = requestAnimationFrame(() => {
|
|
285
|
+
setWebState('open');
|
|
286
|
+
});
|
|
287
|
+
return () => cancelAnimationFrame(raf);
|
|
288
|
+
}, [open]);
|
|
289
|
+
|
|
290
|
+
// Exit: wait for CSS transition to finish, then unmount.
|
|
291
|
+
// Listens on the popup element directly — its exit transitions (opacity +
|
|
292
|
+
// transform) are at least as long as the overlay's, so when the popup
|
|
293
|
+
// finishes both children are done animating.
|
|
294
|
+
useEffect(() => {
|
|
295
|
+
if (!IS_WEB || !isExiting) return;
|
|
296
|
+
|
|
297
|
+
const node = popupRef.current as unknown as HTMLElement | null;
|
|
298
|
+
let done = false;
|
|
299
|
+
|
|
300
|
+
const finish = () => {
|
|
301
|
+
if (done) return;
|
|
302
|
+
done = true;
|
|
303
|
+
setIsExiting(false);
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
const safetyTimer = setTimeout(finish, WEB_TRANSITION_SAFETY_MS);
|
|
307
|
+
|
|
308
|
+
if (!node || typeof node.addEventListener !== 'function') {
|
|
309
|
+
return () => {
|
|
310
|
+
clearTimeout(safetyTimer);
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
const handler = (event: Event) => {
|
|
315
|
+
if (event.target !== node) return;
|
|
316
|
+
const propertyName = (event as unknown as { propertyName?: string }).propertyName ?? '';
|
|
317
|
+
if (propertyName === 'opacity' || propertyName === 'transform') {
|
|
318
|
+
finish();
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
node.addEventListener('transitionend', handler);
|
|
322
|
+
|
|
323
|
+
return () => {
|
|
324
|
+
clearTimeout(safetyTimer);
|
|
325
|
+
node.removeEventListener('transitionend', handler);
|
|
326
|
+
};
|
|
327
|
+
}, [isExiting]);
|
|
328
|
+
|
|
329
|
+
const dataState: DialogDataState = webState;
|
|
330
|
+
const shouldMount = IS_WEB ? open || isExiting : open;
|
|
331
|
+
|
|
332
|
+
if (!forceMount && !shouldMount) {
|
|
333
|
+
return null;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
const portalClassName = cn(dialogPortalVariants());
|
|
337
|
+
const overlayClassName = cn(dialogOverlayVariants());
|
|
338
|
+
const popupClassName = cn(dialogPopupVariants({ size }), className);
|
|
339
|
+
|
|
340
|
+
const keyboardBehavior = avoidKeyboard
|
|
341
|
+
? Platform.select<'padding' | 'height'>({ ios: 'padding', default: 'height' })
|
|
342
|
+
: undefined;
|
|
123
343
|
|
|
124
344
|
return (
|
|
125
|
-
<
|
|
126
|
-
{
|
|
127
|
-
|
|
345
|
+
<DialogPortalPrimitive forceMount>
|
|
346
|
+
<ParentContext.Provider value={parentContext}>
|
|
347
|
+
<AnimationSettingsProvider value={parentAnimationSettings}>
|
|
348
|
+
<DialogAnimationProvider value={animationContext}>
|
|
349
|
+
<FullWindowOverlay
|
|
350
|
+
disableFullWindowOverlay={disableFullWindowOverlay}
|
|
351
|
+
unstable_accessibilityContainerViewIsModal
|
|
352
|
+
>
|
|
353
|
+
<Animated.View
|
|
354
|
+
ref={wrapperRef}
|
|
355
|
+
className={portalClassName}
|
|
356
|
+
pointerEvents="box-none"
|
|
357
|
+
{...(IS_WEB ? dataAttributes({ state: dataState }) : undefined)}
|
|
358
|
+
>
|
|
359
|
+
{/* Overlay */}
|
|
360
|
+
<Animated.View
|
|
361
|
+
entering={overlayEntering}
|
|
362
|
+
exiting={overlayExiting}
|
|
363
|
+
style={StyleSheet.absoluteFill}
|
|
364
|
+
>
|
|
365
|
+
<AnimatedOverlay
|
|
366
|
+
forceMount
|
|
367
|
+
className={overlayClassName}
|
|
368
|
+
style={IS_WEB ? undefined : rContainerStyle}
|
|
369
|
+
{...(IS_WEB ? dataAttributes({ state: dataState }) : undefined)}
|
|
370
|
+
/>
|
|
371
|
+
</Animated.View>
|
|
372
|
+
|
|
373
|
+
{/* Content with gesture + animation */}
|
|
374
|
+
<GestureDetector gesture={panGesture}>
|
|
375
|
+
<Animated.View
|
|
376
|
+
ref={dragContainerRef}
|
|
377
|
+
style={internalStyles.fill}
|
|
378
|
+
pointerEvents="box-none"
|
|
379
|
+
entering={contentEntering}
|
|
380
|
+
exiting={contentExiting}
|
|
381
|
+
>
|
|
382
|
+
<Animated.View
|
|
383
|
+
style={
|
|
384
|
+
IS_WEB ? internalStyles.fill : [internalStyles.fill, rDragContainerStyle]
|
|
385
|
+
}
|
|
386
|
+
pointerEvents="box-none"
|
|
387
|
+
>
|
|
388
|
+
<KeyboardAvoidingView
|
|
389
|
+
style={internalStyles.center}
|
|
390
|
+
pointerEvents="box-none"
|
|
391
|
+
behavior={keyboardBehavior}
|
|
392
|
+
keyboardVerticalOffset={keyboardVerticalOffset}
|
|
393
|
+
>
|
|
394
|
+
<DialogContentPrimitive
|
|
395
|
+
ref={mergeRefs(ref, popupRef)}
|
|
396
|
+
forceMount
|
|
397
|
+
className={popupClassName}
|
|
398
|
+
style={style}
|
|
399
|
+
{...props}
|
|
400
|
+
{...mergeDataAttributes(
|
|
401
|
+
props,
|
|
402
|
+
dataAttributes({ slot: 'dialog-popup' }),
|
|
403
|
+
IS_WEB ? dataAttributes({ state: dataState }) : undefined,
|
|
404
|
+
)}
|
|
405
|
+
>
|
|
406
|
+
{children}
|
|
407
|
+
</DialogContentPrimitive>
|
|
408
|
+
</KeyboardAvoidingView>
|
|
409
|
+
</Animated.View>
|
|
410
|
+
</Animated.View>
|
|
411
|
+
</GestureDetector>
|
|
412
|
+
</Animated.View>
|
|
413
|
+
</FullWindowOverlay>
|
|
414
|
+
</DialogAnimationProvider>
|
|
415
|
+
</AnimationSettingsProvider>
|
|
416
|
+
</ParentContext.Provider>
|
|
417
|
+
</DialogPortalPrimitive>
|
|
128
418
|
);
|
|
129
419
|
},
|
|
130
420
|
);
|
|
131
421
|
|
|
132
|
-
|
|
422
|
+
DialogPopup.displayName = 'Dialog.Popup';
|
|
133
423
|
|
|
134
424
|
// =============================================================================
|
|
135
|
-
// STYLED HEADER
|
|
425
|
+
// STYLED HEADER (styled-only sub-slot)
|
|
136
426
|
// =============================================================================
|
|
137
427
|
|
|
138
|
-
export interface DialogHeaderProps extends
|
|
428
|
+
export interface DialogHeaderProps extends ViewProps {
|
|
429
|
+
asChild?: boolean;
|
|
139
430
|
className?: string;
|
|
140
431
|
children?: ReactNode;
|
|
141
432
|
}
|
|
142
433
|
|
|
143
434
|
const DialogHeader = forwardRef<View, DialogHeaderProps>(
|
|
144
|
-
({ className, children, style, ...props }, ref) => {
|
|
435
|
+
({ asChild, className, children, style, ...props }, ref) => {
|
|
145
436
|
const computedClassName = cn(dialogHeaderVariants(), className);
|
|
437
|
+
const Comp = asChild ? Slot : View;
|
|
146
438
|
|
|
147
439
|
return (
|
|
148
|
-
<
|
|
440
|
+
<Comp
|
|
441
|
+
ref={ref}
|
|
442
|
+
className={computedClassName}
|
|
443
|
+
style={style}
|
|
444
|
+
{...props}
|
|
445
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog-header' }))}
|
|
446
|
+
>
|
|
149
447
|
{children}
|
|
150
|
-
</
|
|
448
|
+
</Comp>
|
|
151
449
|
);
|
|
152
450
|
},
|
|
153
451
|
);
|
|
@@ -155,45 +453,126 @@ const DialogHeader = forwardRef<View, DialogHeaderProps>(
|
|
|
155
453
|
DialogHeader.displayName = 'Dialog.Header';
|
|
156
454
|
|
|
157
455
|
// =============================================================================
|
|
158
|
-
// STYLED TITLE
|
|
456
|
+
// STYLED TITLE (styled-only sub-slot with severity variants)
|
|
159
457
|
// =============================================================================
|
|
160
458
|
|
|
161
|
-
export
|
|
459
|
+
export type DialogTitleSeverity = 'neutral' | 'danger' | 'warning' | 'success';
|
|
460
|
+
|
|
461
|
+
/** @deprecated Use `severity` prop instead of `appearance`. */
|
|
462
|
+
export type DialogTitleAppearance = 'default' | 'danger' | 'warning' | 'success';
|
|
463
|
+
|
|
464
|
+
let hasWarnedDialogAppearanceProp = false;
|
|
465
|
+
let hasWarnedDialogDefaultSeverity = false;
|
|
466
|
+
|
|
467
|
+
const SEVERITY_ICON_MAP = {
|
|
468
|
+
danger: EmergencyHome,
|
|
469
|
+
warning: Warning,
|
|
470
|
+
success: CheckCircle,
|
|
471
|
+
} as const;
|
|
472
|
+
|
|
473
|
+
export interface DialogTitleProps extends TextProps, Omit<DialogTitleVariantProps, 'severity'> {
|
|
474
|
+
asChild?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* Severity level that controls the status icon and color treatment.
|
|
477
|
+
* @default 'neutral'
|
|
478
|
+
*/
|
|
479
|
+
severity?:
|
|
480
|
+
| DialogTitleSeverity
|
|
481
|
+
/** @deprecated Use `'neutral'` instead. */
|
|
482
|
+
| 'default';
|
|
483
|
+
/**
|
|
484
|
+
* @deprecated Use `severity` prop instead.
|
|
485
|
+
*/
|
|
486
|
+
appearance?: DialogTitleAppearance;
|
|
162
487
|
className?: string;
|
|
163
488
|
children?: ReactNode;
|
|
164
489
|
}
|
|
165
490
|
|
|
166
491
|
const DialogTitle = forwardRef<Text, DialogTitleProps>(
|
|
167
|
-
({ className, children, style, ...props }, ref) => {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
492
|
+
({ asChild, severity: severityProp, appearance, className, children, style, ...props }, ref) => {
|
|
493
|
+
useEffect(() => {
|
|
494
|
+
if (__DEV__ && appearance !== undefined && !hasWarnedDialogAppearanceProp) {
|
|
495
|
+
hasWarnedDialogAppearanceProp = true;
|
|
496
|
+
console.warn(
|
|
497
|
+
'[Dialog.Title] The `appearance` prop is deprecated and will be removed in a future major release. Use `severity` instead.',
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
}, [appearance]);
|
|
501
|
+
|
|
502
|
+
const rawSeverity = severityProp ?? appearance ?? 'neutral';
|
|
503
|
+
|
|
504
|
+
useEffect(() => {
|
|
505
|
+
if (__DEV__ && rawSeverity === 'default' && !hasWarnedDialogDefaultSeverity) {
|
|
506
|
+
hasWarnedDialogDefaultSeverity = true;
|
|
507
|
+
console.warn(
|
|
508
|
+
'[Dialog.Title] The `default` severity value is deprecated and will be removed in a future major release. Use `neutral` instead.',
|
|
509
|
+
);
|
|
510
|
+
}
|
|
511
|
+
}, [rawSeverity]);
|
|
512
|
+
|
|
513
|
+
const severity: DialogTitleSeverity = rawSeverity === 'default' ? 'neutral' : rawSeverity;
|
|
514
|
+
|
|
515
|
+
const computedClassName = cn(dialogTitleVariants({ severity }), className);
|
|
516
|
+
const IconComponent =
|
|
517
|
+
severity && severity in SEVERITY_ICON_MAP
|
|
518
|
+
? SEVERITY_ICON_MAP[severity as keyof typeof SEVERITY_ICON_MAP]
|
|
519
|
+
: null;
|
|
520
|
+
const Comp = asChild ? Slot : Text;
|
|
521
|
+
|
|
522
|
+
const titleElement = (
|
|
523
|
+
<Comp
|
|
524
|
+
ref={ref}
|
|
525
|
+
className={computedClassName}
|
|
526
|
+
style={style}
|
|
527
|
+
{...props}
|
|
528
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog-title' }))}
|
|
529
|
+
>
|
|
172
530
|
{children}
|
|
173
|
-
</
|
|
531
|
+
</Comp>
|
|
174
532
|
);
|
|
533
|
+
|
|
534
|
+
if (IconComponent) {
|
|
535
|
+
return (
|
|
536
|
+
<View className="flex-row items-center gap-1">
|
|
537
|
+
<Icon as={IconComponent} className={dialogTitleIconVariants({ severity })} />
|
|
538
|
+
{titleElement}
|
|
539
|
+
</View>
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
return titleElement;
|
|
175
544
|
},
|
|
176
545
|
);
|
|
177
546
|
|
|
178
547
|
DialogTitle.displayName = 'Dialog.Title';
|
|
179
548
|
|
|
180
549
|
// =============================================================================
|
|
181
|
-
// STYLED DESCRIPTION
|
|
550
|
+
// STYLED DESCRIPTION (styled-only sub-slot — reads dialog context for nativeID)
|
|
182
551
|
// =============================================================================
|
|
183
552
|
|
|
184
|
-
export interface DialogDescriptionProps extends
|
|
553
|
+
export interface DialogDescriptionProps extends TextProps {
|
|
554
|
+
asChild?: boolean;
|
|
185
555
|
className?: string;
|
|
186
556
|
children?: ReactNode;
|
|
187
557
|
}
|
|
188
558
|
|
|
189
559
|
const DialogDescription = forwardRef<Text, DialogDescriptionProps>(
|
|
190
|
-
({ className, children, style, ...props }, ref) => {
|
|
560
|
+
({ asChild, className, children, style, ...props }, ref) => {
|
|
561
|
+
const { nativeID } = useDialog();
|
|
191
562
|
const computedClassName = cn(dialogDescriptionVariants(), className);
|
|
563
|
+
const Comp = asChild ? Slot : Text;
|
|
192
564
|
|
|
193
565
|
return (
|
|
194
|
-
<
|
|
566
|
+
<Comp
|
|
567
|
+
ref={ref}
|
|
568
|
+
nativeID={`${nativeID}-description`}
|
|
569
|
+
className={computedClassName}
|
|
570
|
+
style={style}
|
|
571
|
+
{...props}
|
|
572
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog-description' }))}
|
|
573
|
+
>
|
|
195
574
|
{children}
|
|
196
|
-
</
|
|
575
|
+
</Comp>
|
|
197
576
|
);
|
|
198
577
|
},
|
|
199
578
|
);
|
|
@@ -201,45 +580,96 @@ const DialogDescription = forwardRef<Text, DialogDescriptionProps>(
|
|
|
201
580
|
DialogDescription.displayName = 'Dialog.Description';
|
|
202
581
|
|
|
203
582
|
// =============================================================================
|
|
204
|
-
// STYLED
|
|
583
|
+
// STYLED CONTENT (styled-only sub-slot — reads variant context for fullBleed)
|
|
584
|
+
// =============================================================================
|
|
585
|
+
|
|
586
|
+
export interface DialogContentProps extends ViewProps {
|
|
587
|
+
asChild?: boolean;
|
|
588
|
+
className?: string;
|
|
589
|
+
children?: ReactNode;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
const DialogContent = forwardRef<View, DialogContentProps>(
|
|
593
|
+
({ asChild, className, children, style, ...props }, ref) => {
|
|
594
|
+
const { fullBleed } = useDialogStyleContext();
|
|
595
|
+
const computedClassName = cn(
|
|
596
|
+
dialogContentVariants({ fullBleed: fullBleed ?? false }),
|
|
597
|
+
className,
|
|
598
|
+
);
|
|
599
|
+
const Comp = asChild ? Slot : View;
|
|
600
|
+
|
|
601
|
+
return (
|
|
602
|
+
<Comp
|
|
603
|
+
ref={ref}
|
|
604
|
+
className={computedClassName}
|
|
605
|
+
style={style}
|
|
606
|
+
{...props}
|
|
607
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog-content' }))}
|
|
608
|
+
>
|
|
609
|
+
{children}
|
|
610
|
+
</Comp>
|
|
611
|
+
);
|
|
612
|
+
},
|
|
613
|
+
);
|
|
614
|
+
|
|
615
|
+
DialogContent.displayName = 'Dialog.Content';
|
|
616
|
+
|
|
617
|
+
// =============================================================================
|
|
618
|
+
// STYLED TEXT (convenience text styling, styled-only)
|
|
205
619
|
// =============================================================================
|
|
206
620
|
|
|
207
|
-
export interface
|
|
621
|
+
export interface DialogTextProps extends TextProps {
|
|
622
|
+
asChild?: boolean;
|
|
208
623
|
className?: string;
|
|
209
624
|
children?: ReactNode;
|
|
210
625
|
}
|
|
211
626
|
|
|
212
|
-
const
|
|
213
|
-
({ className, children, style, ...props }, ref) => {
|
|
214
|
-
const computedClassName = cn(
|
|
627
|
+
const DialogText = forwardRef<Text, DialogTextProps>(
|
|
628
|
+
({ asChild, className, children, style, ...props }, ref) => {
|
|
629
|
+
const computedClassName = cn(dialogTextVariants(), className);
|
|
630
|
+
const Comp = asChild ? Slot : Text;
|
|
215
631
|
|
|
216
632
|
return (
|
|
217
|
-
<
|
|
633
|
+
<Comp
|
|
634
|
+
ref={ref}
|
|
635
|
+
className={computedClassName}
|
|
636
|
+
style={style}
|
|
637
|
+
{...props}
|
|
638
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog-text' }))}
|
|
639
|
+
>
|
|
218
640
|
{children}
|
|
219
|
-
</
|
|
641
|
+
</Comp>
|
|
220
642
|
);
|
|
221
643
|
},
|
|
222
644
|
);
|
|
223
645
|
|
|
224
|
-
|
|
646
|
+
DialogText.displayName = 'Dialog.Text';
|
|
225
647
|
|
|
226
648
|
// =============================================================================
|
|
227
|
-
// STYLED FOOTER
|
|
649
|
+
// STYLED FOOTER (styled-only sub-slot)
|
|
228
650
|
// =============================================================================
|
|
229
651
|
|
|
230
|
-
export interface DialogFooterProps extends
|
|
652
|
+
export interface DialogFooterProps extends ViewProps {
|
|
653
|
+
asChild?: boolean;
|
|
231
654
|
className?: string;
|
|
232
655
|
children?: ReactNode;
|
|
233
656
|
}
|
|
234
657
|
|
|
235
658
|
const DialogFooter = forwardRef<View, DialogFooterProps>(
|
|
236
|
-
({ className, children, style, ...props }, ref) => {
|
|
659
|
+
({ asChild, className, children, style, ...props }, ref) => {
|
|
237
660
|
const computedClassName = cn(dialogFooterVariants(), className);
|
|
661
|
+
const Comp = asChild ? Slot : View;
|
|
238
662
|
|
|
239
663
|
return (
|
|
240
|
-
<
|
|
664
|
+
<Comp
|
|
665
|
+
ref={ref}
|
|
666
|
+
className={computedClassName}
|
|
667
|
+
style={style}
|
|
668
|
+
{...props}
|
|
669
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog-footer' }))}
|
|
670
|
+
>
|
|
241
671
|
{children}
|
|
242
|
-
</
|
|
672
|
+
</Comp>
|
|
243
673
|
);
|
|
244
674
|
},
|
|
245
675
|
);
|
|
@@ -260,7 +690,7 @@ const DialogClose = forwardRef<View, DialogCloseProps>(
|
|
|
260
690
|
const computedClassName = cn(dialogCloseVariants(), className);
|
|
261
691
|
|
|
262
692
|
return (
|
|
263
|
-
<
|
|
693
|
+
<DialogClosePrimitive
|
|
264
694
|
ref={ref}
|
|
265
695
|
className={computedClassName}
|
|
266
696
|
style={style}
|
|
@@ -268,9 +698,10 @@ const DialogClose = forwardRef<View, DialogCloseProps>(
|
|
|
268
698
|
accessibilityRole="button"
|
|
269
699
|
accessibilityLabel={accessibilityLabel}
|
|
270
700
|
{...props}
|
|
701
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog-close' }))}
|
|
271
702
|
>
|
|
272
703
|
{children ?? <Icon as={CloseIcon} className={dialogCloseIconVariants()} />}
|
|
273
|
-
</
|
|
704
|
+
</DialogClosePrimitive>
|
|
274
705
|
);
|
|
275
706
|
},
|
|
276
707
|
);
|
|
@@ -283,22 +714,39 @@ DialogClose.displayName = 'Dialog.Close';
|
|
|
283
714
|
|
|
284
715
|
type DialogCompoundComponent = typeof DialogRoot & {
|
|
285
716
|
Trigger: typeof DialogTrigger;
|
|
286
|
-
|
|
717
|
+
Popup: typeof DialogPopup;
|
|
287
718
|
Header: typeof DialogHeader;
|
|
288
719
|
Title: typeof DialogTitle;
|
|
289
720
|
Description: typeof DialogDescription;
|
|
290
|
-
|
|
721
|
+
Content: typeof DialogContent;
|
|
722
|
+
Text: typeof DialogText;
|
|
291
723
|
Footer: typeof DialogFooter;
|
|
292
724
|
Close: typeof DialogClose;
|
|
293
725
|
};
|
|
294
726
|
|
|
295
727
|
export const Dialog = Object.assign(DialogRoot, {
|
|
296
728
|
Trigger: DialogTrigger,
|
|
297
|
-
|
|
729
|
+
Popup: DialogPopup,
|
|
298
730
|
Header: DialogHeader,
|
|
299
731
|
Title: DialogTitle,
|
|
300
732
|
Description: DialogDescription,
|
|
301
|
-
|
|
733
|
+
Content: DialogContent,
|
|
734
|
+
Text: DialogText,
|
|
302
735
|
Footer: DialogFooter,
|
|
303
736
|
Close: DialogClose,
|
|
304
737
|
}) as DialogCompoundComponent;
|
|
738
|
+
|
|
739
|
+
// =============================================================================
|
|
740
|
+
// INTERNAL STYLES
|
|
741
|
+
// =============================================================================
|
|
742
|
+
|
|
743
|
+
const internalStyles = StyleSheet.create({
|
|
744
|
+
fill: {
|
|
745
|
+
flex: 1,
|
|
746
|
+
},
|
|
747
|
+
center: {
|
|
748
|
+
flex: 1,
|
|
749
|
+
alignItems: 'center',
|
|
750
|
+
justifyContent: 'center',
|
|
751
|
+
},
|
|
752
|
+
});
|