@cdx-ui/components 0.1.6 → 0.2.0
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/coverage.svg +1 -1
- package/lib/commonjs/components/Alert/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js +6 -4
- package/lib/commonjs/components/Avatar/index.js.map +1 -1
- package/lib/commonjs/components/Badge/index.js.map +1 -1
- package/lib/commonjs/components/Badge/styles.js +2 -2
- package/lib/commonjs/components/BottomSheet/index.js +106 -91
- package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/styles.js +1 -12
- package/lib/commonjs/components/BottomSheet/styles.js.map +1 -1
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Card/index.js.map +1 -1
- package/lib/commonjs/components/ColorArea/ColorAreaPaint.js +78 -0
- package/lib/commonjs/components/ColorArea/ColorAreaPaint.js.map +1 -0
- package/lib/commonjs/components/ColorArea/ColorAreaPaint.web.js +31 -0
- package/lib/commonjs/components/ColorArea/ColorAreaPaint.web.js.map +1 -0
- package/lib/commonjs/components/ColorArea/index.js +57 -0
- package/lib/commonjs/components/ColorArea/index.js.map +1 -0
- package/lib/commonjs/components/ColorArea/styles.js +12 -0
- package/lib/commonjs/components/ColorArea/styles.js.map +1 -0
- package/lib/commonjs/components/ColorField/index.js +138 -0
- package/lib/commonjs/components/ColorField/index.js.map +1 -0
- package/lib/commonjs/components/ColorField/styles.js +14 -0
- package/lib/commonjs/components/ColorField/styles.js.map +1 -0
- package/lib/commonjs/components/ColorPicker/index.js +88 -0
- package/lib/commonjs/components/ColorPicker/index.js.map +1 -0
- package/lib/commonjs/components/ColorPicker/styles.js +22 -0
- package/lib/commonjs/components/ColorPicker/styles.js.map +1 -0
- package/lib/commonjs/components/ColorSlider/ColorSliderRailPaint.js +68 -0
- package/lib/commonjs/components/ColorSlider/ColorSliderRailPaint.js.map +1 -0
- package/lib/commonjs/components/ColorSlider/ColorSliderRailPaint.web.js +41 -0
- package/lib/commonjs/components/ColorSlider/ColorSliderRailPaint.web.js.map +1 -0
- package/lib/commonjs/components/ColorSlider/index.js +123 -0
- package/lib/commonjs/components/ColorSlider/index.js.map +1 -0
- package/lib/commonjs/components/ColorSlider/styles.js +50 -0
- package/lib/commonjs/components/ColorSlider/styles.js.map +1 -0
- package/lib/commonjs/components/ColorSwatch/index.js +54 -0
- package/lib/commonjs/components/ColorSwatch/index.js.map +1 -0
- package/lib/commonjs/components/ColorSwatch/styles.js +25 -0
- package/lib/commonjs/components/ColorSwatch/styles.js.map +1 -0
- package/lib/commonjs/components/ColorSwatchPicker/index.js +110 -0
- package/lib/commonjs/components/ColorSwatchPicker/index.js.map +1 -0
- package/lib/commonjs/components/ColorSwatchPicker/styles.js +17 -0
- package/lib/commonjs/components/ColorSwatchPicker/styles.js.map +1 -0
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Divider/index.js.map +1 -1
- package/lib/commonjs/components/Form/styles.js +1 -1
- package/lib/commonjs/components/Form/styles.js.map +1 -1
- package/lib/commonjs/components/FullScreenDialog/animation.js +46 -0
- package/lib/commonjs/components/FullScreenDialog/animation.js.map +1 -0
- package/lib/commonjs/components/FullScreenDialog/index.js +343 -0
- package/lib/commonjs/components/FullScreenDialog/index.js.map +1 -0
- package/lib/commonjs/components/FullScreenDialog/styles.js +14 -0
- package/lib/commonjs/components/FullScreenDialog/styles.js.map +1 -0
- package/lib/commonjs/components/Heading/styles.js +3 -0
- package/lib/commonjs/components/Heading/styles.js.map +1 -1
- package/lib/commonjs/components/Icon/index.js +27 -3
- package/lib/commonjs/components/Icon/index.js.map +1 -1
- package/lib/commonjs/components/Icon/styles.js +19 -0
- package/lib/commonjs/components/Icon/styles.js.map +1 -0
- package/lib/commonjs/components/IconButton/styles.js +7 -5
- package/lib/commonjs/components/IconButton/styles.js.map +1 -1
- package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -1
- package/lib/commonjs/components/Link/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/index.js +2 -0
- package/lib/commonjs/components/ListItem/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/styles.js +6 -0
- package/lib/commonjs/components/ListItem/styles.js.map +1 -1
- package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/ScopedTheme/index.js +11 -3
- package/lib/commonjs/components/ScopedTheme/index.js.map +1 -1
- package/lib/commonjs/components/Skeleton/index.js.map +1 -1
- package/lib/commonjs/components/Stack/HStack.js.map +1 -1
- package/lib/commonjs/components/Stack/VStack.js.map +1 -1
- package/lib/commonjs/components/Text/index.js +13 -4
- package/lib/commonjs/components/Text/index.js.map +1 -1
- package/lib/commonjs/components/Text/styles.js +39 -3
- package/lib/commonjs/components/Text/styles.js.map +1 -1
- package/lib/commonjs/components/Textarea/index.js.map +1 -1
- package/lib/commonjs/components/Tile/index.js.map +1 -1
- package/lib/commonjs/components/Toast/hooks.js +0 -1
- package/lib/commonjs/components/Toast/hooks.js.map +1 -1
- package/lib/commonjs/components/Toast/index.js +49 -18
- package/lib/commonjs/components/Toast/index.js.map +1 -1
- package/lib/commonjs/components/Toast/styles.js +49 -21
- package/lib/commonjs/components/Toast/styles.js.map +1 -1
- package/lib/commonjs/components/ToggleButton/index.js +5 -4
- package/lib/commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib/commonjs/components/index.js +80 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/picker/styles.js +6 -2
- package/lib/commonjs/components/picker/styles.js.map +1 -1
- package/lib/commonjs/components/picker/surfaces.js +9 -2
- package/lib/commonjs/components/picker/surfaces.js.map +1 -1
- package/lib/commonjs/components/sheet-header/index.js +97 -0
- package/lib/commonjs/components/sheet-header/index.js.map +1 -0
- package/lib/commonjs/components/sheet-header/styles.js +28 -0
- package/lib/commonjs/components/sheet-header/styles.js.map +1 -0
- package/lib/commonjs/figma/BottomSheet.figma.js +1 -1
- package/lib/commonjs/figma/Icon.figma.js +30 -3
- package/lib/commonjs/figma/Icon.figma.js.map +1 -1
- package/lib/commonjs/figma/Text.figma.js +15 -1
- package/lib/commonjs/figma/Text.figma.js.map +1 -1
- package/lib/commonjs/providers/toast/insets-container.js +15 -3
- package/lib/commonjs/providers/toast/insets-container.js.map +1 -1
- package/lib/commonjs/providers/toast/provider.js +45 -11
- package/lib/commonjs/providers/toast/provider.js.map +1 -1
- package/lib/commonjs/styles/constants.js +14 -1
- package/lib/commonjs/styles/constants.js.map +1 -1
- package/lib/module/components/Alert/index.js.map +1 -1
- package/lib/module/components/Avatar/index.js +6 -4
- package/lib/module/components/Avatar/index.js.map +1 -1
- package/lib/module/components/Badge/index.js.map +1 -1
- package/lib/module/components/Badge/styles.js +2 -2
- package/lib/module/components/BottomSheet/index.js +110 -95
- package/lib/module/components/BottomSheet/index.js.map +1 -1
- package/lib/module/components/BottomSheet/styles.js +0 -11
- package/lib/module/components/BottomSheet/styles.js.map +1 -1
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Card/index.js.map +1 -1
- package/lib/module/components/ColorArea/ColorAreaPaint.js +74 -0
- package/lib/module/components/ColorArea/ColorAreaPaint.js.map +1 -0
- package/lib/module/components/ColorArea/ColorAreaPaint.web.js +27 -0
- package/lib/module/components/ColorArea/ColorAreaPaint.web.js.map +1 -0
- package/lib/module/components/ColorArea/index.js +53 -0
- package/lib/module/components/ColorArea/index.js.map +1 -0
- package/lib/module/components/ColorArea/styles.js +8 -0
- package/lib/module/components/ColorArea/styles.js.map +1 -0
- package/lib/module/components/ColorField/index.js +134 -0
- package/lib/module/components/ColorField/index.js.map +1 -0
- package/lib/module/components/ColorField/styles.js +10 -0
- package/lib/module/components/ColorField/styles.js.map +1 -0
- package/lib/module/components/ColorPicker/index.js +79 -0
- package/lib/module/components/ColorPicker/index.js.map +1 -0
- package/lib/module/components/ColorPicker/styles.js +18 -0
- package/lib/module/components/ColorPicker/styles.js.map +1 -0
- package/lib/module/components/ColorSlider/ColorSliderRailPaint.js +64 -0
- package/lib/module/components/ColorSlider/ColorSliderRailPaint.js.map +1 -0
- package/lib/module/components/ColorSlider/ColorSliderRailPaint.web.js +37 -0
- package/lib/module/components/ColorSlider/ColorSliderRailPaint.web.js.map +1 -0
- package/lib/module/components/ColorSlider/index.js +119 -0
- package/lib/module/components/ColorSlider/index.js.map +1 -0
- package/lib/module/components/ColorSlider/styles.js +46 -0
- package/lib/module/components/ColorSlider/styles.js.map +1 -0
- package/lib/module/components/ColorSwatch/index.js +50 -0
- package/lib/module/components/ColorSwatch/index.js.map +1 -0
- package/lib/module/components/ColorSwatch/styles.js +21 -0
- package/lib/module/components/ColorSwatch/styles.js.map +1 -0
- package/lib/module/components/ColorSwatchPicker/index.js +106 -0
- package/lib/module/components/ColorSwatchPicker/index.js.map +1 -0
- package/lib/module/components/ColorSwatchPicker/styles.js +13 -0
- package/lib/module/components/ColorSwatchPicker/styles.js.map +1 -0
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Divider/index.js.map +1 -1
- package/lib/module/components/Form/styles.js +1 -1
- package/lib/module/components/Form/styles.js.map +1 -1
- package/lib/module/components/FullScreenDialog/animation.js +41 -0
- package/lib/module/components/FullScreenDialog/animation.js.map +1 -0
- package/lib/module/components/FullScreenDialog/index.js +338 -0
- package/lib/module/components/FullScreenDialog/index.js.map +1 -0
- package/lib/module/components/FullScreenDialog/styles.js +10 -0
- package/lib/module/components/FullScreenDialog/styles.js.map +1 -0
- package/lib/module/components/Heading/styles.js +3 -0
- package/lib/module/components/Heading/styles.js.map +1 -1
- package/lib/module/components/Icon/index.js +27 -3
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/Icon/styles.js +16 -0
- package/lib/module/components/Icon/styles.js.map +1 -0
- package/lib/module/components/IconButton/styles.js +7 -4
- package/lib/module/components/IconButton/styles.js.map +1 -1
- package/lib/module/components/InsuranceDisclosure/index.js.map +1 -1
- package/lib/module/components/Link/index.js.map +1 -1
- package/lib/module/components/ListItem/index.js +2 -0
- package/lib/module/components/ListItem/index.js.map +1 -1
- package/lib/module/components/ListItem/styles.js +6 -0
- package/lib/module/components/ListItem/styles.js.map +1 -1
- package/lib/module/components/ProgressSegmented/index.js.map +1 -1
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/ScopedTheme/index.js +11 -3
- package/lib/module/components/ScopedTheme/index.js.map +1 -1
- package/lib/module/components/Skeleton/index.js.map +1 -1
- package/lib/module/components/Stack/HStack.js.map +1 -1
- package/lib/module/components/Stack/VStack.js.map +1 -1
- package/lib/module/components/Text/index.js +14 -5
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/Text/styles.js +38 -2
- package/lib/module/components/Text/styles.js.map +1 -1
- package/lib/module/components/Textarea/index.js.map +1 -1
- package/lib/module/components/Tile/index.js.map +1 -1
- package/lib/module/components/Toast/hooks.js +0 -1
- package/lib/module/components/Toast/hooks.js.map +1 -1
- package/lib/module/components/Toast/index.js +52 -21
- package/lib/module/components/Toast/index.js.map +1 -1
- package/lib/module/components/Toast/styles.js +48 -21
- package/lib/module/components/Toast/styles.js.map +1 -1
- package/lib/module/components/ToggleButton/index.js +3 -3
- package/lib/module/components/ToggleButton/index.js.map +1 -1
- package/lib/module/components/index.js +7 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/picker/styles.js +6 -2
- package/lib/module/components/picker/styles.js.map +1 -1
- package/lib/module/components/picker/surfaces.js +10 -3
- package/lib/module/components/picker/surfaces.js.map +1 -1
- package/lib/module/components/sheet-header/index.js +94 -0
- package/lib/module/components/sheet-header/index.js.map +1 -0
- package/lib/module/components/sheet-header/styles.js +25 -0
- package/lib/module/components/sheet-header/styles.js.map +1 -0
- package/lib/module/figma/BottomSheet.figma.js +1 -1
- package/lib/module/figma/Icon.figma.js +30 -3
- package/lib/module/figma/Icon.figma.js.map +1 -1
- package/lib/module/figma/Text.figma.js +15 -1
- package/lib/module/figma/Text.figma.js.map +1 -1
- package/lib/module/providers/toast/insets-container.js +15 -4
- package/lib/module/providers/toast/insets-container.js.map +1 -1
- package/lib/module/providers/toast/provider.js +46 -12
- package/lib/module/providers/toast/provider.js.map +1 -1
- package/lib/module/styles/constants.js +13 -0
- package/lib/module/styles/constants.js.map +1 -1
- package/lib/typescript/components/Alert/index.d.ts +5 -2
- package/lib/typescript/components/Alert/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/index.d.ts +11 -5
- package/lib/typescript/components/Avatar/index.d.ts.map +1 -1
- package/lib/typescript/components/Badge/index.d.ts +34 -0
- package/lib/typescript/components/Badge/index.d.ts.map +1 -1
- package/lib/typescript/components/Badge/styles.d.ts +3 -3
- package/lib/typescript/components/BottomSheet/index.d.ts +12 -1
- package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/styles.d.ts +0 -5
- package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -1
- package/lib/typescript/components/Breadcrumbs/styles.d.ts +1 -1
- package/lib/typescript/components/Button/index.d.ts +10 -2
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/styles.d.ts +4 -4
- package/lib/typescript/components/Card/index.d.ts +14 -0
- package/lib/typescript/components/Card/index.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/index.d.ts +1 -1
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +2 -2
- package/lib/typescript/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/styles.d.ts +3 -3
- package/lib/typescript/components/ColorArea/ColorAreaPaint.d.ts +5 -0
- package/lib/typescript/components/ColorArea/ColorAreaPaint.d.ts.map +1 -0
- package/lib/typescript/components/ColorArea/ColorAreaPaint.web.d.ts +5 -0
- package/lib/typescript/components/ColorArea/ColorAreaPaint.web.d.ts.map +1 -0
- package/lib/typescript/components/ColorArea/index.d.ts +20 -0
- package/lib/typescript/components/ColorArea/index.d.ts.map +1 -0
- package/lib/typescript/components/ColorArea/styles.d.ts +4 -0
- package/lib/typescript/components/ColorArea/styles.d.ts.map +1 -0
- package/lib/typescript/components/ColorField/index.d.ts +41 -0
- package/lib/typescript/components/ColorField/index.d.ts.map +1 -0
- package/lib/typescript/components/ColorField/styles.d.ts +13 -0
- package/lib/typescript/components/ColorField/styles.d.ts.map +1 -0
- package/lib/typescript/components/ColorPicker/index.d.ts +28 -0
- package/lib/typescript/components/ColorPicker/index.d.ts.map +1 -0
- package/lib/typescript/components/ColorPicker/styles.d.ts +9 -0
- package/lib/typescript/components/ColorPicker/styles.d.ts.map +1 -0
- package/lib/typescript/components/ColorSlider/ColorSliderRailPaint.d.ts +5 -0
- package/lib/typescript/components/ColorSlider/ColorSliderRailPaint.d.ts.map +1 -0
- package/lib/typescript/components/ColorSlider/ColorSliderRailPaint.web.d.ts +5 -0
- package/lib/typescript/components/ColorSlider/ColorSliderRailPaint.web.d.ts.map +1 -0
- package/lib/typescript/components/ColorSlider/index.d.ts +33 -0
- package/lib/typescript/components/ColorSlider/index.d.ts.map +1 -0
- package/lib/typescript/components/ColorSlider/styles.d.ts +14 -0
- package/lib/typescript/components/ColorSlider/styles.d.ts.map +1 -0
- package/lib/typescript/components/ColorSwatch/index.d.ts +19 -0
- package/lib/typescript/components/ColorSwatch/index.d.ts.map +1 -0
- package/lib/typescript/components/ColorSwatch/styles.d.ts +7 -0
- package/lib/typescript/components/ColorSwatch/styles.d.ts.map +1 -0
- package/lib/typescript/components/ColorSwatchPicker/index.d.ts +37 -0
- package/lib/typescript/components/ColorSwatchPicker/index.d.ts.map +1 -0
- package/lib/typescript/components/ColorSwatchPicker/styles.d.ts +5 -0
- package/lib/typescript/components/ColorSwatchPicker/styles.d.ts.map +1 -0
- package/lib/typescript/components/CurrencyInput/index.d.ts +2 -2
- package/lib/typescript/components/CurrencyInput/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/index.d.ts +10 -0
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/styles.d.ts +1 -0
- package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
- package/lib/typescript/components/Divider/index.d.ts +6 -1
- package/lib/typescript/components/Divider/index.d.ts.map +1 -1
- package/lib/typescript/components/Drawer/styles.d.ts +1 -1
- package/lib/typescript/components/Form/styles.d.ts.map +1 -1
- package/lib/typescript/components/FullScreenDialog/animation.d.ts +9 -0
- package/lib/typescript/components/FullScreenDialog/animation.d.ts.map +1 -0
- package/lib/typescript/components/FullScreenDialog/index.d.ts +85 -0
- package/lib/typescript/components/FullScreenDialog/index.d.ts.map +1 -0
- package/lib/typescript/components/FullScreenDialog/styles.d.ts +6 -0
- package/lib/typescript/components/FullScreenDialog/styles.d.ts.map +1 -0
- package/lib/typescript/components/Heading/styles.d.ts.map +1 -1
- package/lib/typescript/components/Icon/index.d.ts +14 -22
- package/lib/typescript/components/Icon/index.d.ts.map +1 -1
- package/lib/typescript/components/Icon/styles.d.ts +6 -0
- package/lib/typescript/components/Icon/styles.d.ts.map +1 -0
- package/lib/typescript/components/IconButton/styles.d.ts +7 -2
- package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Input/index.d.ts +2 -2
- package/lib/typescript/components/Input/index.d.ts.map +1 -1
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts +1 -0
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -1
- package/lib/typescript/components/Link/index.d.ts +3 -1
- package/lib/typescript/components/Link/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/index.d.ts +43 -4
- package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/styles.d.ts +2 -0
- package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
- package/lib/typescript/components/Menu/index.d.ts +2 -2
- package/lib/typescript/components/Menu/index.d.ts.map +1 -1
- package/lib/typescript/components/ProgressSegmented/index.d.ts +10 -3
- package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
- package/lib/typescript/components/Radio/index.d.ts +1 -0
- package/lib/typescript/components/Radio/index.d.ts.map +1 -1
- package/lib/typescript/components/ScopedTheme/index.d.ts +11 -3
- package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/index.d.ts +1 -1
- package/lib/typescript/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/components/Skeleton/index.d.ts +5 -1
- package/lib/typescript/components/Skeleton/index.d.ts.map +1 -1
- package/lib/typescript/components/Slider/styles.d.ts +3 -3
- package/lib/typescript/components/Stack/HStack.d.ts +6 -0
- package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
- package/lib/typescript/components/Stack/VStack.d.ts +6 -0
- package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
- package/lib/typescript/components/Switch/index.d.ts +1 -1
- package/lib/typescript/components/Tabs/index.d.ts +2 -2
- package/lib/typescript/components/Text/index.d.ts +40 -3
- package/lib/typescript/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/components/Text/styles.d.ts +9 -0
- package/lib/typescript/components/Text/styles.d.ts.map +1 -1
- package/lib/typescript/components/Textarea/index.d.ts +1 -0
- package/lib/typescript/components/Textarea/index.d.ts.map +1 -1
- package/lib/typescript/components/Tile/index.d.ts +49 -0
- package/lib/typescript/components/Tile/index.d.ts.map +1 -1
- package/lib/typescript/components/Toast/hooks.d.ts +1 -1
- package/lib/typescript/components/Toast/hooks.d.ts.map +1 -1
- package/lib/typescript/components/Toast/index.d.ts +15 -0
- package/lib/typescript/components/Toast/index.d.ts.map +1 -1
- package/lib/typescript/components/Toast/styles.d.ts +14 -0
- package/lib/typescript/components/Toast/styles.d.ts.map +1 -1
- package/lib/typescript/components/Toast/types.d.ts +10 -1
- package/lib/typescript/components/Toast/types.d.ts.map +1 -1
- package/lib/typescript/components/ToggleButton/index.d.ts +5 -3
- package/lib/typescript/components/ToggleButton/index.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +7 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/picker/styles.d.ts +5 -2
- package/lib/typescript/components/picker/styles.d.ts.map +1 -1
- package/lib/typescript/components/picker/surfaces.d.ts +5 -1
- package/lib/typescript/components/picker/surfaces.d.ts.map +1 -1
- package/lib/typescript/components/sheet-header/index.d.ts +24 -0
- package/lib/typescript/components/sheet-header/index.d.ts.map +1 -0
- package/lib/typescript/components/sheet-header/styles.d.ts +12 -0
- package/lib/typescript/components/sheet-header/styles.d.ts.map +1 -0
- package/lib/typescript/figma/Icon.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Text.figma.d.ts.map +1 -1
- package/lib/typescript/providers/toast/insets-container.d.ts +12 -0
- package/lib/typescript/providers/toast/insets-container.d.ts.map +1 -1
- package/lib/typescript/providers/toast/provider.d.ts +1 -1
- package/lib/typescript/providers/toast/provider.d.ts.map +1 -1
- package/lib/typescript/providers/toast/types.d.ts +21 -4
- package/lib/typescript/providers/toast/types.d.ts.map +1 -1
- package/lib/typescript/styles/constants.d.ts +10 -0
- package/lib/typescript/styles/constants.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/components/Alert/index.tsx +5 -2
- package/src/components/Avatar/index.tsx +11 -5
- package/src/components/Badge/index.tsx +34 -0
- package/src/components/Badge/styles.ts +2 -2
- package/src/components/BottomSheet/index.tsx +156 -125
- package/src/components/BottomSheet/styles.ts +1 -22
- package/src/components/Button/index.tsx +10 -2
- package/src/components/Card/index.tsx +14 -0
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/Chip/index.tsx +2 -2
- package/src/components/ColorArea/ColorAreaPaint.tsx +51 -0
- package/src/components/ColorArea/ColorAreaPaint.web.tsx +31 -0
- package/src/components/ColorArea/index.tsx +71 -0
- package/src/components/ColorArea/styles.ts +18 -0
- package/src/components/ColorField/index.tsx +181 -0
- package/src/components/ColorField/styles.ts +20 -0
- package/src/components/ColorPicker/index.tsx +110 -0
- package/src/components/ColorPicker/styles.ts +33 -0
- package/src/components/ColorSlider/ColorSliderRailPaint.tsx +60 -0
- package/src/components/ColorSlider/ColorSliderRailPaint.web.tsx +33 -0
- package/src/components/ColorSlider/index.tsx +147 -0
- package/src/components/ColorSlider/styles.ts +72 -0
- package/src/components/ColorSwatch/index.tsx +56 -0
- package/src/components/ColorSwatch/styles.ts +24 -0
- package/src/components/ColorSwatchPicker/index.tsx +150 -0
- package/src/components/ColorSwatchPicker/styles.ts +32 -0
- package/src/components/CurrencyInput/index.tsx +2 -2
- package/src/components/Dialog/index.tsx +10 -0
- package/src/components/Dialog/styles.ts +1 -0
- package/src/components/Divider/index.tsx +6 -1
- package/src/components/Form/styles.ts +1 -1
- package/src/components/FullScreenDialog/animation.ts +22 -0
- package/src/components/FullScreenDialog/index.tsx +484 -0
- package/src/components/FullScreenDialog/styles.ts +23 -0
- package/src/components/Heading/styles.ts +3 -0
- package/src/components/Icon/index.tsx +46 -6
- package/src/components/Icon/styles.ts +15 -0
- package/src/components/IconButton/styles.ts +7 -4
- package/src/components/Input/index.tsx +2 -2
- package/src/components/InsuranceDisclosure/index.tsx +1 -0
- package/src/components/Link/index.tsx +3 -1
- package/src/components/ListItem/index.tsx +48 -4
- package/src/components/ListItem/styles.ts +7 -0
- package/src/components/Menu/index.tsx +2 -2
- package/src/components/ProgressSegmented/index.tsx +10 -3
- package/src/components/Radio/index.tsx +1 -0
- package/src/components/ScopedTheme/index.tsx +11 -3
- package/src/components/Select/index.tsx +1 -1
- package/src/components/Skeleton/index.tsx +5 -1
- package/src/components/Stack/HStack.tsx +6 -0
- package/src/components/Stack/VStack.tsx +6 -0
- package/src/components/Switch/index.tsx +1 -1
- package/src/components/Tabs/index.tsx +2 -2
- package/src/components/Text/index.tsx +32 -5
- package/src/components/Text/styles.ts +39 -1
- package/src/components/Textarea/index.tsx +1 -0
- package/src/components/Tile/index.tsx +49 -0
- package/src/components/Toast/hooks.ts +0 -1
- package/src/components/Toast/index.tsx +69 -17
- package/src/components/Toast/styles.ts +60 -21
- package/src/components/Toast/types.ts +10 -1
- package/src/components/ToggleButton/index.tsx +9 -7
- package/src/components/index.ts +7 -0
- package/src/components/picker/styles.ts +6 -2
- package/src/components/picker/surfaces.tsx +15 -2
- package/src/components/sheet-header/index.tsx +148 -0
- package/src/components/sheet-header/styles.ts +28 -0
- package/src/providers/toast/insets-container.tsx +23 -9
- package/src/providers/toast/provider.tsx +49 -15
- package/src/providers/toast/types.ts +21 -4
- package/src/styles/constants.ts +13 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FullScreenDialog = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
|
|
10
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
11
|
+
var _primitives = require("@cdx-ui/primitives");
|
|
12
|
+
var _utils = require("@cdx-ui/utils");
|
|
13
|
+
var _animation = require("../../animation");
|
|
14
|
+
var _animationSettings = require("../../providers/animation-settings");
|
|
15
|
+
var _BottomSheet = require("../BottomSheet");
|
|
16
|
+
var _sheetHeader = require("../sheet-header");
|
|
17
|
+
var _animation2 = require("./animation");
|
|
18
|
+
var _styles = require("./styles");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
|
+
const IS_WEB = _reactNative.Platform.OS === 'web';
|
|
22
|
+
const ZERO_INSETS = {
|
|
23
|
+
top: 0,
|
|
24
|
+
bottom: 0,
|
|
25
|
+
left: 0,
|
|
26
|
+
right: 0
|
|
27
|
+
};
|
|
28
|
+
function useSafeInsets() {
|
|
29
|
+
return (0, _react.useContext)(_reactNativeSafeAreaContext.SafeAreaInsetsContext) ?? ZERO_INSETS;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// The header's last title / back state for the current open session. Lives on the
|
|
33
|
+
// popup so a header that remounts per step still counts as a step change.
|
|
34
|
+
const StepFocusKeyContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
35
|
+
function focusTitle(node) {
|
|
36
|
+
if (!node) return;
|
|
37
|
+
if (IS_WEB) {
|
|
38
|
+
node.focus?.();
|
|
39
|
+
} else {
|
|
40
|
+
_reactNative.AccessibilityInfo.sendAccessibilityEvent(node, 'focus');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Moves focus to the header title when `stepKey` changes during an open session.
|
|
46
|
+
* The first key after open is only recorded, so `FocusScope` auto-focus decides
|
|
47
|
+
* initial focus. An undefined key (custom header content) never moves focus.
|
|
48
|
+
*/
|
|
49
|
+
function useStepChangeFocus(stepKey, titleRef) {
|
|
50
|
+
const lastKeyRef = (0, _react.useContext)(StepFocusKeyContext);
|
|
51
|
+
(0, _react.useEffect)(() => {
|
|
52
|
+
if (!lastKeyRef || stepKey === undefined) return;
|
|
53
|
+
const previousKey = lastKeyRef.current;
|
|
54
|
+
lastKeyRef.current = stepKey;
|
|
55
|
+
if (previousKey === undefined || previousKey === stepKey) return;
|
|
56
|
+
if (IS_WEB) {
|
|
57
|
+
focusTitle(titleRef.current);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
// Native: wait a frame so the new title is in the accessibility tree.
|
|
61
|
+
let fired = false;
|
|
62
|
+
const frame = requestAnimationFrame(() => {
|
|
63
|
+
fired = true;
|
|
64
|
+
focusTitle(titleRef.current);
|
|
65
|
+
});
|
|
66
|
+
return () => {
|
|
67
|
+
if (fired) return;
|
|
68
|
+
cancelAnimationFrame(frame);
|
|
69
|
+
// Re-arm the pending move for the next run (StrictMode remounts, rapid changes).
|
|
70
|
+
lastKeyRef.current = previousKey;
|
|
71
|
+
};
|
|
72
|
+
}, [lastKeyRef, stepKey, titleRef]);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// =============================================================================
|
|
76
|
+
// STYLED ROOT
|
|
77
|
+
// =============================================================================
|
|
78
|
+
|
|
79
|
+
const FullScreenDialogRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
80
|
+
animation,
|
|
81
|
+
className,
|
|
82
|
+
children,
|
|
83
|
+
style,
|
|
84
|
+
...props
|
|
85
|
+
}, ref) => {
|
|
86
|
+
const isAllAnimationsDisabled = (0, _animation.useCombinedAnimationDisabledState)(animation);
|
|
87
|
+
const animationSettingsContextValue = (0, _react.useMemo)(() => ({
|
|
88
|
+
isAllAnimationsDisabled
|
|
89
|
+
}), [isAllAnimationsDisabled]);
|
|
90
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_animationSettings.AnimationSettingsProvider, {
|
|
91
|
+
value: animationSettingsContextValue,
|
|
92
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.DialogRoot, {
|
|
93
|
+
ref: ref,
|
|
94
|
+
className: className,
|
|
95
|
+
style: style,
|
|
96
|
+
...props,
|
|
97
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
98
|
+
slot: 'full-screen-dialog'
|
|
99
|
+
})),
|
|
100
|
+
children: children
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
FullScreenDialogRoot.displayName = 'FullScreenDialog';
|
|
105
|
+
|
|
106
|
+
// =============================================================================
|
|
107
|
+
// STYLED TRIGGER
|
|
108
|
+
// =============================================================================
|
|
109
|
+
|
|
110
|
+
const FullScreenDialogTrigger = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
111
|
+
className,
|
|
112
|
+
children,
|
|
113
|
+
style,
|
|
114
|
+
...props
|
|
115
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.DialogTrigger, {
|
|
116
|
+
ref: ref,
|
|
117
|
+
className: className,
|
|
118
|
+
style: style,
|
|
119
|
+
...props,
|
|
120
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
121
|
+
slot: 'full-screen-dialog-trigger'
|
|
122
|
+
})),
|
|
123
|
+
children: children
|
|
124
|
+
}));
|
|
125
|
+
FullScreenDialogTrigger.displayName = 'FullScreenDialog.Trigger';
|
|
126
|
+
|
|
127
|
+
// =============================================================================
|
|
128
|
+
// STYLED POPUP (portal + full-viewport page in the app window)
|
|
129
|
+
// =============================================================================
|
|
130
|
+
|
|
131
|
+
const FullScreenDialogPopup = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
132
|
+
className,
|
|
133
|
+
children,
|
|
134
|
+
style,
|
|
135
|
+
...props
|
|
136
|
+
}, ref) => {
|
|
137
|
+
const {
|
|
138
|
+
open
|
|
139
|
+
} = (0, _primitives.useDialog)();
|
|
140
|
+
const animationSettings = (0, _animationSettings.useAnimationSettings)();
|
|
141
|
+
const {
|
|
142
|
+
isAllAnimationsDisabled
|
|
143
|
+
} = animationSettings;
|
|
144
|
+
const {
|
|
145
|
+
height: windowHeight
|
|
146
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
147
|
+
const surfaceMotion = (0, _react.useMemo)(() => (0, _animation2.getFullScreenDialogSurfaceMotion)(windowHeight), [windowHeight]);
|
|
148
|
+
|
|
149
|
+
// Web enter/exit lifecycle mirrors `Dialog.Popup`: mount → 'entering' →
|
|
150
|
+
// (rAF) → 'open' → (close) → 'closed' → (transitionend) → unmount. The exit
|
|
151
|
+
// flag is derived during render so the popup stays mounted in the same
|
|
152
|
+
// render that sees `open` go false.
|
|
153
|
+
const popupRef = (0, _react.useRef)(null);
|
|
154
|
+
const prevOpenRef = (0, _react.useRef)(open);
|
|
155
|
+
const [isExiting, setIsExiting] = (0, _react.useState)(false);
|
|
156
|
+
const [webState, setWebState] = (0, _react.useState)(open ? 'entering' : 'closed');
|
|
157
|
+
if (IS_WEB && prevOpenRef.current && !open && !isExiting) {
|
|
158
|
+
setIsExiting(true);
|
|
159
|
+
setWebState('closed');
|
|
160
|
+
}
|
|
161
|
+
if (IS_WEB && !prevOpenRef.current && open) {
|
|
162
|
+
setIsExiting(false);
|
|
163
|
+
setWebState('entering');
|
|
164
|
+
}
|
|
165
|
+
prevOpenRef.current = open;
|
|
166
|
+
const stepFocusKeyRef = (0, _react.useRef)(undefined);
|
|
167
|
+
(0, _react.useEffect)(() => {
|
|
168
|
+
if (!open) stepFocusKeyRef.current = undefined;
|
|
169
|
+
}, [open]);
|
|
170
|
+
(0, _react.useEffect)(() => {
|
|
171
|
+
if (!IS_WEB || !open) return;
|
|
172
|
+
const raf = requestAnimationFrame(() => {
|
|
173
|
+
setWebState('open');
|
|
174
|
+
});
|
|
175
|
+
return () => cancelAnimationFrame(raf);
|
|
176
|
+
}, [open]);
|
|
177
|
+
(0, _react.useEffect)(() => {
|
|
178
|
+
if (!IS_WEB || !isExiting) return;
|
|
179
|
+
const node = popupRef.current;
|
|
180
|
+
let done = false;
|
|
181
|
+
const finish = () => {
|
|
182
|
+
if (done) return;
|
|
183
|
+
done = true;
|
|
184
|
+
setIsExiting(false);
|
|
185
|
+
};
|
|
186
|
+
const safetyTimer = setTimeout(finish, _animation2.WEB_TRANSITION_SAFETY_MS);
|
|
187
|
+
if (!node || typeof node.addEventListener !== 'function') {
|
|
188
|
+
return () => {
|
|
189
|
+
clearTimeout(safetyTimer);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
const handler = event => {
|
|
193
|
+
if (event.target !== node) return;
|
|
194
|
+
const propertyName = event.propertyName ?? '';
|
|
195
|
+
if (propertyName === 'opacity' || propertyName === 'transform') {
|
|
196
|
+
finish();
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
node.addEventListener('transitionend', handler);
|
|
200
|
+
return () => {
|
|
201
|
+
clearTimeout(safetyTimer);
|
|
202
|
+
node.removeEventListener('transitionend', handler);
|
|
203
|
+
};
|
|
204
|
+
}, [isExiting]);
|
|
205
|
+
const shouldMount = IS_WEB ? open || isExiting : open;
|
|
206
|
+
if (!shouldMount) {
|
|
207
|
+
return null;
|
|
208
|
+
}
|
|
209
|
+
const isNativeMotion = !IS_WEB && !isAllAnimationsDisabled;
|
|
210
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.DialogPortal, {
|
|
211
|
+
forceMount: true,
|
|
212
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_animationSettings.AnimationSettingsProvider, {
|
|
213
|
+
value: animationSettings,
|
|
214
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
215
|
+
className: (0, _styles.fullScreenDialogPortalVariants)(),
|
|
216
|
+
style: {
|
|
217
|
+
zIndex: _primitives.MODAL_OVERLAY_Z_INDEX
|
|
218
|
+
},
|
|
219
|
+
entering: isNativeMotion ? surfaceMotion.entering : undefined,
|
|
220
|
+
exiting: isNativeMotion ? surfaceMotion.exiting : undefined,
|
|
221
|
+
...(IS_WEB ? undefined : {
|
|
222
|
+
accessibilityViewIsModal: true
|
|
223
|
+
}),
|
|
224
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.DialogContent, {
|
|
225
|
+
ref: (0, _utils.mergeRefs)(ref, popupRef),
|
|
226
|
+
forceMount: true,
|
|
227
|
+
className: (0, _utils.cn)((0, _styles.fullScreenDialogPopupVariants)(), className),
|
|
228
|
+
style: style,
|
|
229
|
+
...props,
|
|
230
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
231
|
+
slot: 'full-screen-dialog-popup'
|
|
232
|
+
}), IS_WEB ? (0, _primitives.dataAttributes)({
|
|
233
|
+
state: webState
|
|
234
|
+
}) : undefined),
|
|
235
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StepFocusKeyContext.Provider, {
|
|
236
|
+
value: stepFocusKeyRef,
|
|
237
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_BottomSheet.BottomSheet.Provider, {
|
|
238
|
+
children: children
|
|
239
|
+
})
|
|
240
|
+
})
|
|
241
|
+
})
|
|
242
|
+
})
|
|
243
|
+
})
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
FullScreenDialogPopup.displayName = 'FullScreenDialog.Popup';
|
|
247
|
+
|
|
248
|
+
// =============================================================================
|
|
249
|
+
// STYLED HEADER (shared back / title / close row)
|
|
250
|
+
// =============================================================================
|
|
251
|
+
|
|
252
|
+
const FullScreenDialogHeader = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
253
|
+
title,
|
|
254
|
+
subtitle,
|
|
255
|
+
children,
|
|
256
|
+
className,
|
|
257
|
+
onClose,
|
|
258
|
+
closeAccessibilityLabel,
|
|
259
|
+
onBack,
|
|
260
|
+
backAccessibilityLabel
|
|
261
|
+
}, ref) => {
|
|
262
|
+
const {
|
|
263
|
+
nativeID,
|
|
264
|
+
onOpenChange,
|
|
265
|
+
backHandlerRef
|
|
266
|
+
} = (0, _primitives.useDialog)();
|
|
267
|
+
const insets = useSafeInsets();
|
|
268
|
+
const titleRef = (0, _react.useRef)(null);
|
|
269
|
+
const hasTitle = children == null && title !== undefined && title !== '';
|
|
270
|
+
useStepChangeFocus(hasTitle ? `${onBack ? 'back' : 'root'}:${title}` : undefined, titleRef);
|
|
271
|
+
(0, _react.useEffect)(() => {
|
|
272
|
+
backHandlerRef.current = onBack;
|
|
273
|
+
return () => {
|
|
274
|
+
backHandlerRef.current = undefined;
|
|
275
|
+
};
|
|
276
|
+
}, [backHandlerRef, onBack]);
|
|
277
|
+
const handleClose = (0, _react.useCallback)(() => {
|
|
278
|
+
onOpenChange(false);
|
|
279
|
+
}, [onOpenChange]);
|
|
280
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
281
|
+
ref: ref,
|
|
282
|
+
className: (0, _utils.cn)((0, _styles.fullScreenDialogHeaderVariants)(), className),
|
|
283
|
+
style: {
|
|
284
|
+
paddingTop: insets.top
|
|
285
|
+
},
|
|
286
|
+
...(0, _primitives.dataAttributes)({
|
|
287
|
+
slot: 'full-screen-dialog-header'
|
|
288
|
+
}),
|
|
289
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sheetHeader.SheetHeader, {
|
|
290
|
+
title: title,
|
|
291
|
+
subtitle: subtitle,
|
|
292
|
+
titleNativeID: `${nativeID}-title`,
|
|
293
|
+
titleRef: titleRef,
|
|
294
|
+
titleFocusable: true,
|
|
295
|
+
onClose: onClose ?? handleClose,
|
|
296
|
+
closeAccessibilityLabel: closeAccessibilityLabel,
|
|
297
|
+
onBack: onBack,
|
|
298
|
+
backAccessibilityLabel: backAccessibilityLabel,
|
|
299
|
+
children: children
|
|
300
|
+
})
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
FullScreenDialogHeader.displayName = 'FullScreenDialog.Header';
|
|
304
|
+
|
|
305
|
+
// =============================================================================
|
|
306
|
+
// STYLED CONTENT
|
|
307
|
+
// =============================================================================
|
|
308
|
+
|
|
309
|
+
const FullScreenDialogContent = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
310
|
+
asChild,
|
|
311
|
+
className,
|
|
312
|
+
children,
|
|
313
|
+
style,
|
|
314
|
+
...props
|
|
315
|
+
}, ref) => {
|
|
316
|
+
const insets = useSafeInsets();
|
|
317
|
+
const Comp = asChild ? _primitives.Slot : _reactNative.View;
|
|
318
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
|
|
319
|
+
ref: ref,
|
|
320
|
+
className: (0, _utils.cn)((0, _styles.fullScreenDialogContentVariants)(), className),
|
|
321
|
+
style: [{
|
|
322
|
+
paddingBottom: insets.bottom
|
|
323
|
+
}, style],
|
|
324
|
+
...props,
|
|
325
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
326
|
+
slot: 'full-screen-dialog-content'
|
|
327
|
+
})),
|
|
328
|
+
children: children
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
FullScreenDialogContent.displayName = 'FullScreenDialog.Content';
|
|
332
|
+
|
|
333
|
+
// =============================================================================
|
|
334
|
+
// COMPOUND COMPONENT
|
|
335
|
+
// =============================================================================
|
|
336
|
+
|
|
337
|
+
const FullScreenDialog = exports.FullScreenDialog = Object.assign(FullScreenDialogRoot, {
|
|
338
|
+
Trigger: FullScreenDialogTrigger,
|
|
339
|
+
Popup: FullScreenDialogPopup,
|
|
340
|
+
Header: FullScreenDialogHeader,
|
|
341
|
+
Content: FullScreenDialogContent
|
|
342
|
+
});
|
|
343
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_reactNativeSafeAreaContext","_primitives","_utils","_animation","_animationSettings","_BottomSheet","_sheetHeader","_animation2","_styles","_jsxRuntime","e","__esModule","default","IS_WEB","Platform","OS","ZERO_INSETS","top","bottom","left","right","useSafeInsets","useContext","SafeAreaInsetsContext","StepFocusKeyContext","createContext","focusTitle","node","focus","AccessibilityInfo","sendAccessibilityEvent","useStepChangeFocus","stepKey","titleRef","lastKeyRef","useEffect","undefined","previousKey","current","fired","frame","requestAnimationFrame","cancelAnimationFrame","FullScreenDialogRoot","forwardRef","animation","className","children","style","props","ref","isAllAnimationsDisabled","useCombinedAnimationDisabledState","animationSettingsContextValue","useMemo","jsx","AnimationSettingsProvider","value","DialogRoot","mergeDataAttributes","dataAttributes","slot","displayName","FullScreenDialogTrigger","DialogTrigger","FullScreenDialogPopup","open","useDialog","animationSettings","useAnimationSettings","height","windowHeight","useWindowDimensions","surfaceMotion","getFullScreenDialogSurfaceMotion","popupRef","useRef","prevOpenRef","isExiting","setIsExiting","useState","webState","setWebState","stepFocusKeyRef","raf","done","finish","safetyTimer","setTimeout","WEB_TRANSITION_SAFETY_MS","addEventListener","clearTimeout","handler","event","target","propertyName","removeEventListener","shouldMount","isNativeMotion","DialogPortal","forceMount","View","fullScreenDialogPortalVariants","zIndex","MODAL_OVERLAY_Z_INDEX","entering","exiting","accessibilityViewIsModal","DialogContent","mergeRefs","cn","fullScreenDialogPopupVariants","state","Provider","BottomSheet","FullScreenDialogHeader","title","subtitle","onClose","closeAccessibilityLabel","onBack","backAccessibilityLabel","nativeID","onOpenChange","backHandlerRef","insets","hasTitle","handleClose","useCallback","fullScreenDialogHeaderVariants","paddingTop","SheetHeader","titleNativeID","titleFocusable","FullScreenDialogContent","asChild","Comp","Slot","fullScreenDialogContentVariants","paddingBottom","FullScreenDialog","exports","Object","assign","Trigger","Popup","Header","Content"],"sourceRoot":"../../../../src","sources":["components/FullScreenDialog/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAYA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,2BAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAcA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AAIA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AAKkB,IAAAa,WAAA,GAAAb,OAAA;AAAA,SAAAG,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElB,MAAMG,MAAM,GAAGC,qBAAQ,CAACC,EAAE,KAAK,KAAK;AAIpC,MAAMC,WAAuB,GAAG;EAAEC,GAAG,EAAE,CAAC;EAAEC,MAAM,EAAE,CAAC;EAAEC,IAAI,EAAE,CAAC;EAAEC,KAAK,EAAE;AAAE,CAAC;AAExE,SAASC,aAAaA,CAAA,EAAe;EACnC,OAAO,IAAAC,iBAAU,EA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;AAE9D;AACA;AACA;;AAWA,MAAMwE,uBAAuB,gBAAG,IAAA1F,iBAAU,EACxC,CAAC;EAAE2F,OAAO;EAAEzF,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC1D,MAAM2E,MAAM,GAAGxG,aAAa,CAAC,CAAC;EAC9B,MAAMmH,IAAI,GAAGD,OAAO,GAAGE,gBAAI,GAAGpC,iBAAI;EAElC,oBACE,IAAA5F,WAAA,CAAA8C,GAAA,EAACiF,IAAI;IACHtF,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAE,IAAAgE,SAAE,EAAC,IAAA4B,uCAA+B,EAAC,CAAC,EAAE5F,SAAS,CAAE;IAC5DE,KAAK,EAAE,CAAC;MAAE2F,aAAa,EAAEd,MAAM,CAAC3G;IAAO,CAAC,EAAE8B,KAAK,CAAE;IAAA,GAC7CC,KAAK;IAAA,GACL,IAAAU,+BAAmB,EAACV,KAAK,EAAE,IAAAW,0BAAc,EAAC;MAAEC,IAAI,EAAE;IAA6B,CAAC,CAAC,CAAC;IAAAd,QAAA,EAErFA;EAAQ,CACL,CAAC;AAEX,CACF,CAAC;AAEDuF,uBAAuB,CAACxE,WAAW,GAAG,0BAA0B;;AAEhE;AACA;AACA;;AASO,MAAM8E,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAGE,MAAM,CAACC,MAAM,CAACpG,oBAAoB,EAAE;EAClEqG,OAAO,EAAEjF,uBAAuB;EAChCkF,KAAK,EAAEhF,qBAAqB;EAC5BiF,MAAM,EAAE/B,sBAAsB;EAC9BgC,OAAO,EAAEb;AACX,CAAC,CAAsC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.fullScreenDialogPortalVariants = exports.fullScreenDialogPopupVariants = exports.fullScreenDialogHeaderVariants = exports.fullScreenDialogContentVariants = void 0;
|
|
7
|
+
var _utils = require("@cdx-ui/utils");
|
|
8
|
+
const fullScreenDialogPortalVariants = exports.fullScreenDialogPortalVariants = (0, _utils.cva)(['absolute inset-0', 'overflow-hidden', 'web:fixed']);
|
|
9
|
+
const fullScreenDialogPopupVariants = exports.fullScreenDialogPopupVariants = (0, _utils.cva)(['flex-1 flex-col', 'bg-surface-primary', 'overflow-hidden', 'web:transition-transform web:duration-300 web:ease-[cubic-bezier(0.32,0.72,0,1)]', 'web:data-[state=entering]:translate-y-full', 'web:data-[state=open]:translate-y-0', 'web:data-[state=closed]:translate-y-full web:data-[state=closed]:duration-[220ms]', 'web:motion-reduce:transition-none web:motion-reduce:duration-0']);
|
|
10
|
+
|
|
11
|
+
/** Paints the surface behind the status bar inset above the header row. */
|
|
12
|
+
const fullScreenDialogHeaderVariants = exports.fullScreenDialogHeaderVariants = (0, _utils.cva)(['shrink-0', 'bg-surface-primary']);
|
|
13
|
+
const fullScreenDialogContentVariants = exports.fullScreenDialogContentVariants = (0, _utils.cva)(['flex-1 min-h-0']);
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_utils","require","fullScreenDialogPortalVariants","exports","cva","fullScreenDialogPopupVariants","fullScreenDialogHeaderVariants","fullScreenDialogContentVariants"],"sourceRoot":"../../../../src","sources":["components/FullScreenDialog/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,8BAA8B,GAAAC,OAAA,CAAAD,8BAAA,GAAG,IAAAE,UAAG,EAAC,CAChD,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,CACZ,CAAC;AAEK,MAAMC,6BAA6B,GAAAF,OAAA,CAAAE,6BAAA,GAAG,IAAAD,UAAG,EAAC,CAC/C,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,kFAAkF,EAClF,4CAA4C,EAC5C,qCAAqC,EACrC,mFAAmF,EACnF,gEAAgE,CACjE,CAAC;;AAEF;AACO,MAAME,8BAA8B,GAAAH,OAAA,CAAAG,8BAAA,GAAG,IAAAF,UAAG,EAAC,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC;AAE9E,MAAMG,+BAA+B,GAAAJ,OAAA,CAAAI,+BAAA,GAAG,IAAAH,UAAG,EAAC,CAAC,gBAAgB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_utils","headingStyle","exports","cva","Platform","select","web","default","variants","size","xl","lg","md","sm","xs"],"sourceRoot":"../../../../src","sources":["components/Heading/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,UAAG,EAC7B,CACE,2BAA2B,EAC3BC,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,6BAA6B;EAClCC,OAAO,EAAE;AACX,CAAC,CAAC,CACH,EACD;EACEC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE;IACN;EACF;AACF,CACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_utils","headingStyle","exports","cva","Platform","select","web","default","variants","size","xl","lg","md","sm","xs","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Heading/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,UAAG,EAC7B,CACE,2BAA2B,EAC3BC,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,6BAA6B;EAClCC,OAAO,EAAE;AACX,CAAC,CAAC,CACH,EACD;EACEC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE;IACN;EACF,CAAC;EACDC,eAAe,EAAE;IACfN,IAAI,EAAE;EACR;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -4,8 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Icon = Icon;
|
|
7
|
+
var _react = require("react");
|
|
7
8
|
var _uniwind = require("uniwind");
|
|
8
9
|
var _utils = require("@cdx-ui/utils");
|
|
10
|
+
var _constants = require("../../styles/constants");
|
|
11
|
+
var _styles = require("./styles");
|
|
9
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
13
|
function IconImpl({
|
|
11
14
|
as: IconComponent,
|
|
@@ -46,22 +49,43 @@ const StyledIcon = (0, _uniwind.withUniwind)((0, _uniwind.withUniwind)(IconImpl)
|
|
|
46
49
|
* import { Icon } from '@cdx-ui/components';
|
|
47
50
|
* import { ArrowRight } from '@cdx-ui/icons';
|
|
48
51
|
*
|
|
49
|
-
* <Icon as={ArrowRight} className="
|
|
52
|
+
* <Icon as={ArrowRight} color="action" className="size-4" />
|
|
50
53
|
* ```
|
|
51
54
|
*
|
|
52
55
|
* @param {ForgeIcon} as - The Forge icon component to render.
|
|
53
|
-
* @param {
|
|
56
|
+
* @param {IconColor} color - Semantic content color. Defaults to `primary`.
|
|
57
|
+
* @param {string} className - Utility classes for size and placement, merged after the defaults.
|
|
54
58
|
* @param {number} size - Icon size (overrides the size class).
|
|
55
59
|
* @param {...ForgeIconProps} ...props - Additional icon props passed to the "as" icon.
|
|
56
60
|
*/
|
|
61
|
+
let hasWarnedIconRawColor = false;
|
|
62
|
+
function isIconColor(color) {
|
|
63
|
+
return typeof color === 'string' && Object.prototype.hasOwnProperty.call(_constants.CONTENT_COLOR, color);
|
|
64
|
+
}
|
|
57
65
|
function Icon({
|
|
58
66
|
as: IconComponent,
|
|
67
|
+
color = 'primary',
|
|
59
68
|
className,
|
|
60
69
|
...props
|
|
61
70
|
}) {
|
|
71
|
+
const isSemantic = isIconColor(color);
|
|
72
|
+
const semanticColor = isSemantic ? color : null;
|
|
73
|
+
const rawColor = isSemantic ? undefined : color;
|
|
74
|
+
(0, _react.useEffect)(() => {
|
|
75
|
+
if (__DEV__ && rawColor !== undefined && !hasWarnedIconRawColor) {
|
|
76
|
+
hasWarnedIconRawColor = true;
|
|
77
|
+
console.warn(`[Icon] Passing a raw \`color\` value is deprecated and will be removed in a future major release. Use a semantic color (${Object.keys(_constants.CONTENT_COLOR).join(', ')}) instead.`);
|
|
78
|
+
}
|
|
79
|
+
}, [rawColor]);
|
|
80
|
+
|
|
81
|
+
// A raw color skips the color class and reaches the SVG directly; `withUniwind`
|
|
82
|
+
// only maps `color` from `className` when the prop is undefined.
|
|
62
83
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledIcon, {
|
|
63
84
|
as: IconComponent,
|
|
64
|
-
className: (0, _utils.cn)(
|
|
85
|
+
className: (0, _utils.cn)((0, _styles.iconStyle)({
|
|
86
|
+
color: semanticColor
|
|
87
|
+
}), className),
|
|
88
|
+
color: rawColor,
|
|
65
89
|
...props
|
|
66
90
|
});
|
|
67
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_react","require","_uniwind","_utils","_constants","_styles","_jsxRuntime","IconImpl","as","IconComponent","props","jsx","StyledIcon","withUniwind","size","fromClassName","styleProperty","color","hasWarnedIconRawColor","isIconColor","Object","prototype","hasOwnProperty","call","CONTENT_COLOR","Icon","className","isSemantic","semanticColor","rawColor","undefined","useEffect","__DEV__","console","warn","keys","join","cn","iconStyle"],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GAAG,IAAI;EAC/C,MAAMY,QAAQ,GAAGF,UAAU,GAAGG,SAAS,GAAGb,KAAK;EAE/C,IAAAc,gBAAS,EAAC,MAAM;IACd,IAAIC,OAAO,IAAIH,QAAQ,KAAKC,SAAS,IAAI,CAACZ,qBAAqB,EAAE;MAC/DA,qBAAqB,GAAG,IAAI;MAC5Be,OAAO,CAACC,IAAI,CACV,2HAA2Hd,MAAM,CAACe,IAAI,CAACX,wBAAa,CAAC,CAACY,IAAI,CAAC,IAAI,CAAC,YAClK,CAAC;IACH;EACF,CAAC,EAAE,CAACP,QAAQ,CAAC,CAAC;;EAEd;EACA;EACA,oBACE,IAAAvB,WAAA,CAAAK,GAAA,EAACC,UAAU;IACTJ,EAAE,EAAEC,aAAc;IAClBiB,SAAS,EAAE,IAAAW,SAAE,EAAC,IAAAC,iBAAS,EAAC;MAAErB,KAAK,EAAEW;IAAc,CAAC,CAAC,EAAEF,SAAS,CAAE;IAC9DT,KAAK,EAAEY,QAAS;IAAA,GACZnB;EAAK,CACV,CAAC;AAEN","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.iconStyle = void 0;
|
|
7
|
+
var _utils = require("@cdx-ui/utils");
|
|
8
|
+
var _constants = require("../../styles/constants");
|
|
9
|
+
// `shrink-0` matters on web only: react-native-svg renders a bare `<svg>`, which
|
|
10
|
+
// falls back to the browser's `flex-shrink: 1`. Yoga already defaults to 0.
|
|
11
|
+
const iconStyle = exports.iconStyle = (0, _utils.cva)(['size-5 shrink-0'], {
|
|
12
|
+
variants: {
|
|
13
|
+
color: _constants.CONTENT_COLOR
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
color: 'primary'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_utils","require","_constants","iconStyle","exports","cva","variants","color","CONTENT_COLOR","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Icon/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA;AACA;AACO,MAAME,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,IAAAE,UAAG,EAAC,CAAC,iBAAiB,CAAC,EAAE;EAChDC,QAAQ,EAAE;IACRC,KAAK,EAAEC;EACT,CAAC;EACDC,eAAe,EAAE;IACfF,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.iconButtonRootVariants = exports.iconButtonIconColorVariants = exports.iconButtonGlyphVariants = void 0;
|
|
6
|
+
exports.iconButtonSizeClassNames = exports.iconButtonRootVariants = exports.iconButtonIconColorVariants = exports.iconButtonGlyphVariants = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _utils = require("@cdx-ui/utils");
|
|
9
9
|
var _constants = require("../../styles/constants");
|
|
10
|
+
/** Box classes per size. Shared with layout placeholders that must match an `IconButton`'s footprint. */
|
|
11
|
+
const iconButtonSizeClassNames = exports.iconButtonSizeClassNames = {
|
|
12
|
+
default: 'h-11 w-11 min-w-11 shrink-0 p-2.5',
|
|
13
|
+
small: 'h-8 w-8 min-w-8 shrink-0 p-1.5'
|
|
14
|
+
};
|
|
10
15
|
const iconButtonRootVariants = exports.iconButtonRootVariants = (0, _utils.cva)(['flex items-center justify-center', 'rounded-[var(--border-radius-round)]', 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', _constants.TRANSITION_COLORS, 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _constants.DISABLED_CURSOR, 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-[var(--color-stroke-ring)] web:data-[focus-visible=true]:ring-offset-2'], {
|
|
11
16
|
variants: {
|
|
12
17
|
variant: {
|
|
@@ -19,10 +24,7 @@ const iconButtonRootVariants = exports.iconButtonRootVariants = (0, _utils.cva)(
|
|
|
19
24
|
action: [],
|
|
20
25
|
danger: []
|
|
21
26
|
},
|
|
22
|
-
size:
|
|
23
|
-
default: 'h-11 w-11 min-w-11 shrink-0 p-2.5',
|
|
24
|
-
small: 'h-8 w-8 min-w-8 shrink-0 p-1.5'
|
|
25
|
-
}
|
|
27
|
+
size: iconButtonSizeClassNames
|
|
26
28
|
},
|
|
27
29
|
compoundVariants: [
|
|
28
30
|
// ── solid × color ───────────────────────────────────────────────────
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_utils","_constants","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_utils","_constants","iconButtonSizeClassNames","exports","default","small","iconButtonRootVariants","cva","TRANSITION_COLORS","DISABLED_CURSOR","variants","variant","solid","subtle","ghost","color","neutral","action","danger","size","compoundVariants","className","Platform","select","web","defaultVariants","iconButtonGlyphVariants","iconButtonIconColorVariants"],"sourceRoot":"../../../../src","sources":["components/IconButton/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA;AACO,MAAMG,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAG;EACtCE,OAAO,EAAE,mCAAmC;EAC5CC,KAAK,EAAE;AACT,CAAU;AAEH,MAAMC,sBAAsB,GAAAH,OAAA,CAAAG,sBAAA,GAAG,IAAAC,UAAG,EACvC,CACE,kCAAkC,EAClC,sCAAsC,EACtC,wEAAwE,EACxEC,4BAAiB,EACjB,wDAAwD,EACxDC,0BAAe,EACf,gJAAgJ,CACjJ,EACD;EACEC,QAAQ,EAAE;IACRC,OAAO,EAA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FdicLockup","_styles","_jsxRuntime","InsuranceDisclosure","exports","forwardRef","framed","logoSource","logoAccessibilityLabel","label","className","style","props","ref","useCustomLogo","jsxs","HStack","space","cn","insuranceDisclosureRootVariants","mergeDataAttributes","dataAttributes","slot","children","jsx","Image","source","accessibilityLabel","accessible","resizeMode","insuranceDisclosureLogoVariants","View","accessibilityRole","FdicLockup","Text","size","insuranceDisclosureTextVariants","displayName"],"sourceRoot":"../../../../src","sources":["components/InsuranceDisclosure/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AAIkB,IAAAS,WAAA,GAAAT,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Image","_HStack","_Text","_FdicLockup","_styles","_jsxRuntime","InsuranceDisclosure","exports","forwardRef","framed","logoSource","logoAccessibilityLabel","label","className","style","props","ref","useCustomLogo","jsxs","HStack","space","cn","insuranceDisclosureRootVariants","mergeDataAttributes","dataAttributes","slot","children","jsx","Image","source","accessibilityLabel","accessible","resizeMode","insuranceDisclosureLogoVariants","View","accessibilityRole","FdicLockup","Text","size","insuranceDisclosureTextVariants","displayName"],"sourceRoot":"../../../../src","sources":["components/InsuranceDisclosure/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,KAAA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YAAA,CAAAqC,IAAI;MACHH,UAAU;MACVI,iBAAiB,EAAC,OAAO;MACzBL,kBAAkB,EAAC,MAAM;MACzBjB,SAAS,EAAE,IAAAoB,uCAA+B,EAAC,CAAE;MAAA,GACzC,IAAAV,+BAAmB,EAAC,CAAC,CAAC,EAAE,IAAAC,0BAAc,EAAC;QAAEC,IAAI,EAAE;MAA4B,CAAC,CAAC,CAAC;MAAAC,QAAA,eAElF,IAAArB,WAAA,CAAAsB,GAAA,EAACxB,WAAA,CAAAiC,UAAU,IAAE;IAAC,CACV,CACP,EACAxB,KAAK,gBACJ,IAAAP,WAAA,CAAAsB,GAAA,EAAC9B,YAAA,CAAAqC,IAAI;MACHrB,SAAS,EAAC,gBAAgB;MAAA,GACtB,IAAAU,+BAAmB,EAAC,CAAC,CAAC,EAAE,IAAAC,0BAAc,EAAC;QAAEC,IAAI,EAAE;MAA+B,CAAC,CAAC,CAAC;MAAAC,QAAA,eAErF,IAAArB,WAAA,CAAAsB,GAAA,EAACzB,KAAA,CAAAmC,IAAI;QAACC,IAAI,EAAC,IAAI;QAACzB,SAAS,EAAE,IAAA0B,uCAA+B,EAAC,CAAE;QAAAb,QAAA,EAC1Dd;MAAK,CACF;IAAC,CACH,CAAC,GACL,IAAI;EAAA,CACF,CAAC;AAEb,CAAC,CAAC;AAEFN,mBAAmB,CAACkC,WAAW,GAAG,qBAAqB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","_styles","_jsxRuntime","LinkRoot","forwardRef","className","children","style","props","ref","rootClassName","cn","linkRootVariants","jsx","mergeDataAttributes","dataAttributes","slot","displayName","LinkLabel","asChild","visited","useLinkInteractionContext","computedClassName","linkLabelVariants","Comp","Slot","Text","textElement","Platform","OS","View","linkNativeUnderlineVariants","LinkIcon","as","linkIconVariants","Icon","Link","exports","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Link/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAQA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAKkB,IAAAM,WAAA,GAAAN,OAAA;AAIlB;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","_styles","_jsxRuntime","LinkRoot","forwardRef","className","children","style","props","ref","rootClassName","cn","linkRootVariants","jsx","mergeDataAttributes","dataAttributes","slot","displayName","LinkLabel","asChild","visited","useLinkInteractionContext","computedClassName","linkLabelVariants","Comp","Slot","Text","textElement","Platform","OS","View","linkNativeUnderlineVariants","LinkIcon","as","linkIconVariants","Icon","Link","exports","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Link/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAQA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAKkB,IAAAM,WAAA,GAAAN,OAAA;AAIlB;AACA;AACA;;AASA,MAAMO,QAAQ,gBAAG,IAAAC,iBAAU,EAAkB,CAAC;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC9F,MAAMC,aAAa,GAAG,IAAAC,SAAE,EAAC,IAAAC,wBAAgB,EAAC,CAAC,EAAEP,SAAS,CAAC;EAEvD,oBACE,IAAAH,WAAA,CAAAW,GAAA,EAACf,WAAA,CAAAK,QAAiB;IAChBM,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAEK,aAAc;IACzBH,KAAK,EAAEA,KAAM;IAAA,GACTC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,CAAC;AAEDT,SAAS,CAACD,WAAW,GAAG,YAAY;;AAEpC;AACA;AACA;;AAIA,MAAMe,QAAQ,GAAGA,CAAC;EAAE3B,SAAS;EAAEE,KAAK;EAAE0B,EAAE;EAAE,GAAGzB;AAAqB,CAAC,KAAK;EACtE,MAAM;IAAEY;EAAQ,CAAC,GAAG,IAAAC,qCAAyB,EAAC,CAAC;EAC/C,MAAMC,iBAAiB,GAAG,IAAAX,SAAE,EAAC,IAAAuB,wBAAgB,EAAC;IAAEd;EAAQ,CAAC,CAAC,EAAEf,SAAS,CAAC;EAEtE,oBACE,IAAAH,WAAA,CAAAW,GAAA,EAACb,KAAA,CAAAmC,IAAI;IACHF,EAAE,EAAEA,EAAG;IACP5B,SAAS,EAAEiB,iBAAkB;IAC7Bf,KAAK,EAAEA,KAAM;IAAA,GACTC,KAAK;IAAA,GACL,IAAAM,+BAAmB,EAACN,KAAK,EAAE,IAAAO,0BAAc,EAAC;MAAEC,IAAI,EAAE;IAAY,CAAC,CAAC;EAAC,CACtE,CAAC;AAEN,CAAC;AAEDgB,QAAQ,CAACf,WAAW,GAAG,WAAW;;AAElC;AACA;AACA;;AAOO,MAAMmB,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAGE,MAAM,CAACC,MAAM,CAACpC,QAAQ,EAAE;EAC1CqC,KAAK,EAAEtB,SAAS;EAChBiB,IAAI,EAAEH;AACR,CAAC,CAA0B","ignoreList":[]}
|
|
@@ -290,6 +290,7 @@ const ListItemSectionHeader = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
290
290
|
asChild,
|
|
291
291
|
children,
|
|
292
292
|
className,
|
|
293
|
+
variant = 'ghost',
|
|
293
294
|
showDivider = true,
|
|
294
295
|
style,
|
|
295
296
|
trailing,
|
|
@@ -301,6 +302,7 @@ const ListItemSectionHeader = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
301
302
|
ref: ref,
|
|
302
303
|
accessibilityRole: accessibilityRole,
|
|
303
304
|
className: (0, _utils.cn)((0, _styles.listItemSectionHeaderVariants)({
|
|
305
|
+
variant,
|
|
304
306
|
showDivider
|
|
305
307
|
}), className),
|
|
306
308
|
style: [sectionHeaderRow, style],
|