@cdx-ui/components 0.0.1-beta.99 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +29 -6
- package/coverage.svg +1 -0
- package/lib/commonjs/animation/hooks/index.js +33 -0
- package/lib/commonjs/animation/hooks/index.js.map +1 -1
- 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/components/Accordion/index.js +286 -0
- package/lib/commonjs/components/Accordion/index.js.map +1 -0
- package/lib/commonjs/components/Accordion/styles.js +56 -0
- package/lib/commonjs/components/Accordion/styles.js.map +1 -0
- package/lib/commonjs/components/Alert/styles.js +8 -8
- package/lib/commonjs/components/Alert/styles.js.map +1 -1
- package/lib/commonjs/components/AlertDialog/index.js +16 -3
- package/lib/commonjs/components/AlertDialog/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/styles.js +6 -6
- package/lib/commonjs/components/Avatar/styles.js.map +1 -1
- package/lib/commonjs/components/Badge/styles.js +6 -6
- package/lib/commonjs/components/Badge/styles.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/index.js +34 -2
- package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/styles.js +8 -8
- 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 +1 -12
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Button/styles.js +34 -34
- package/lib/commonjs/components/Button/styles.js.map +1 -1
- package/lib/commonjs/components/CLAUDE.md +3 -3
- package/lib/commonjs/components/Calendar/CalendarMonthHeader.js +96 -0
- package/lib/commonjs/components/Calendar/CalendarMonthHeader.js.map +1 -0
- package/lib/commonjs/components/Calendar/CalendarYearPickerGrid.js +74 -0
- package/lib/commonjs/components/Calendar/CalendarYearPickerGrid.js.map +1 -0
- package/lib/commonjs/components/Calendar/flashCalendarAdapter.js +298 -0
- package/lib/commonjs/components/Calendar/flashCalendarAdapter.js.map +1 -0
- package/lib/commonjs/components/Calendar/index.js +149 -0
- package/lib/commonjs/components/Calendar/index.js.map +1 -0
- package/lib/commonjs/components/Calendar/styles.js +70 -0
- package/lib/commonjs/components/Calendar/styles.js.map +1 -0
- package/lib/commonjs/components/Card/index.js +25 -0
- package/lib/commonjs/components/Card/index.js.map +1 -1
- package/lib/commonjs/components/Card/styles.js +11 -7
- package/lib/commonjs/components/Card/styles.js.map +1 -1
- package/lib/commonjs/components/Carousel/context.js +13 -0
- package/lib/commonjs/components/Carousel/context.js.map +1 -0
- package/lib/commonjs/components/Carousel/index.js +158 -0
- package/lib/commonjs/components/Carousel/index.js.map +1 -0
- package/lib/commonjs/components/Carousel/navButton.js +119 -0
- package/lib/commonjs/components/Carousel/navButton.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 +44 -0
- package/lib/commonjs/components/Carousel/styles.js.map +1 -0
- package/lib/commonjs/components/Carousel/useCarouselActiveIndex.js +52 -0
- package/lib/commonjs/components/Carousel/useCarouselActiveIndex.js.map +1 -0
- package/lib/commonjs/components/Checkbox/index.js +29 -4
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Checkbox/styles.js +26 -20
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
- package/lib/commonjs/components/Chip/index.js +22 -2
- package/lib/commonjs/components/Chip/index.js.map +1 -1
- package/lib/commonjs/components/Chip/styles.js +56 -56
- package/lib/commonjs/components/Chip/styles.js.map +1 -1
- package/lib/commonjs/components/CurrencyInput/index.js +3 -1
- package/lib/commonjs/components/CurrencyInput/index.js.map +1 -1
- package/lib/commonjs/components/CurrencyInput/styles.js +4 -4
- package/lib/commonjs/components/CurrencyInput/styles.js.map +1 -1
- package/lib/commonjs/components/DateField/index.js +147 -0
- package/lib/commonjs/components/DateField/index.js.map +1 -0
- package/lib/commonjs/components/DateField/styles.js +34 -0
- package/lib/commonjs/components/DateField/styles.js.map +1 -0
- package/lib/commonjs/components/DatePicker/index.js +163 -0
- package/lib/commonjs/components/DatePicker/index.js.map +1 -0
- package/lib/commonjs/components/DateRangePicker/index.js +177 -0
- package/lib/commonjs/components/DateRangePicker/index.js.map +1 -0
- package/lib/commonjs/components/DateTimeField/index.js +96 -0
- package/lib/commonjs/components/DateTimeField/index.js.map +1 -0
- package/lib/commonjs/components/DateTimeList/index.js +180 -0
- package/lib/commonjs/components/DateTimeList/index.js.map +1 -0
- package/lib/commonjs/components/DateTimeList/styles.js +55 -0
- package/lib/commonjs/components/DateTimeList/styles.js.map +1 -0
- package/lib/commonjs/components/DateTimePicker/index.js +187 -0
- package/lib/commonjs/components/DateTimePicker/index.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 +301 -30
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Dialog/styles.js +25 -21
- package/lib/commonjs/components/Dialog/styles.js.map +1 -1
- package/lib/commonjs/components/Divider/styles.js +4 -4
- package/lib/commonjs/components/Divider/styles.js.map +1 -1
- package/lib/commonjs/components/Field/styles.js +9 -9
- package/lib/commonjs/components/Field/styles.js.map +1 -1
- package/lib/commonjs/components/Form/styles.js +2 -2
- package/lib/commonjs/components/Form/styles.js.map +1 -1
- package/lib/commonjs/components/Heading/styles.js +2 -2
- package/lib/commonjs/components/Heading/styles.js.map +1 -1
- package/lib/commonjs/components/IconButton/index.js +15 -3
- package/lib/commonjs/components/IconButton/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/styles.js +27 -27
- package/lib/commonjs/components/IconButton/styles.js.map +1 -1
- package/lib/commonjs/components/Input/index.js.map +1 -1
- package/lib/commonjs/components/Input/styles.js +19 -11
- package/lib/commonjs/components/Input/styles.js.map +1 -1
- package/lib/commonjs/components/InsuranceDisclosure/FdicLockup.js +31 -0
- package/lib/commonjs/components/InsuranceDisclosure/FdicLockup.js.map +1 -0
- package/lib/commonjs/components/InsuranceDisclosure/index.js +74 -0
- package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -0
- package/lib/commonjs/components/InsuranceDisclosure/styles.js +21 -0
- package/lib/commonjs/components/InsuranceDisclosure/styles.js.map +1 -0
- package/lib/commonjs/components/Link/index.js.map +1 -1
- package/lib/commonjs/components/Link/styles.js +7 -10
- package/lib/commonjs/components/Link/styles.js.map +1 -1
- package/lib/commonjs/components/ListItem/styles.js +11 -11
- package/lib/commonjs/components/ListItem/styles.js.map +1 -1
- package/lib/commonjs/components/Menu/index.js +509 -0
- package/lib/commonjs/components/Menu/index.js.map +1 -0
- package/lib/commonjs/components/Menu/styles.js +100 -0
- package/lib/commonjs/components/Menu/styles.js.map +1 -0
- package/lib/commonjs/components/MonthCalendar/index.js +229 -0
- package/lib/commonjs/components/MonthCalendar/index.js.map +1 -0
- package/lib/commonjs/components/MonthPicker/index.js +163 -0
- package/lib/commonjs/components/MonthPicker/index.js.map +1 -0
- package/lib/commonjs/components/OtpInput/index.js +21 -9
- package/lib/commonjs/components/OtpInput/index.js.map +1 -1
- package/lib/commonjs/components/OtpInput/styles.js +10 -8
- package/lib/commonjs/components/OtpInput/styles.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/styles.js +3 -3
- package/lib/commonjs/components/ProgressBar/styles.js.map +1 -1
- package/lib/commonjs/components/ProgressCircle/ProgressCircleRing.js +91 -0
- package/lib/commonjs/components/ProgressCircle/ProgressCircleRing.js.map +1 -0
- package/lib/commonjs/components/ProgressCircle/index.js +84 -0
- package/lib/commonjs/components/ProgressCircle/index.js.map +1 -0
- package/lib/commonjs/components/ProgressCircle/styles.js +50 -0
- package/lib/commonjs/components/ProgressCircle/styles.js.map +1 -0
- package/lib/commonjs/components/ProgressCircle/useProgressCircleColors.js +35 -0
- package/lib/commonjs/components/ProgressCircle/useProgressCircleColors.js.map +1 -0
- package/lib/commonjs/components/ProgressSegmented/index.js +1 -14
- package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
- package/lib/commonjs/components/ProgressSegmented/styles.js +5 -5
- package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -1
- package/lib/commonjs/components/QuickActionButton/styles.js +6 -6
- package/lib/commonjs/components/QuickActionButton/styles.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js +17 -2
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/Radio/styles.js +26 -11
- package/lib/commonjs/components/Radio/styles.js.map +1 -1
- package/lib/commonjs/components/RangeCalendar/index.js +165 -0
- package/lib/commonjs/components/RangeCalendar/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 +66 -26
- package/lib/commonjs/components/Select/index.js.map +1 -1
- package/lib/commonjs/components/Select/styles.js +17 -48
- package/lib/commonjs/components/Select/styles.js.map +1 -1
- package/lib/commonjs/components/Skeleton/index.js +3 -1
- package/lib/commonjs/components/Skeleton/index.js.map +1 -1
- package/lib/commonjs/components/Skeleton/styles.js +2 -2
- package/lib/commonjs/components/Skeleton/styles.js.map +1 -1
- package/lib/commonjs/components/Slider/getSliderPopupPosition.js +67 -0
- package/lib/commonjs/components/Slider/getSliderPopupPosition.js.map +1 -0
- package/lib/commonjs/components/Slider/index.js +406 -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/Stack/styles.js +3 -3
- package/lib/commonjs/components/Stack/styles.js.map +1 -1
- package/lib/commonjs/components/Switch/index.js.map +1 -1
- package/lib/commonjs/components/Switch/styles.js +8 -8
- package/lib/commonjs/components/Switch/styles.js.map +1 -1
- package/lib/commonjs/components/Table/index.js +389 -0
- package/lib/commonjs/components/Table/index.js.map +1 -0
- package/lib/commonjs/components/Table/index.web.js +329 -0
- package/lib/commonjs/components/Table/index.web.js.map +1 -0
- package/lib/commonjs/components/Table/styles.js +111 -0
- package/lib/commonjs/components/Table/styles.js.map +1 -0
- package/lib/commonjs/components/Table/types.js +6 -0
- package/lib/commonjs/components/Table/types.js.map +1 -0
- package/lib/commonjs/components/Table/useTableStyleContext.js +28 -0
- package/lib/commonjs/components/Table/useTableStyleContext.js.map +1 -0
- package/lib/commonjs/components/TablePagination/TablePaginationContext.js +31 -0
- package/lib/commonjs/components/TablePagination/TablePaginationContext.js.map +1 -0
- package/lib/commonjs/components/TablePagination/getTablePaginationItems.js +50 -0
- package/lib/commonjs/components/TablePagination/getTablePaginationItems.js.map +1 -0
- package/lib/commonjs/components/TablePagination/index.js +395 -0
- package/lib/commonjs/components/TablePagination/index.js.map +1 -0
- package/lib/commonjs/components/TablePagination/styles.js +13 -0
- package/lib/commonjs/components/TablePagination/styles.js.map +1 -0
- 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/styles.js +10 -8
- package/lib/commonjs/components/Textarea/styles.js.map +1 -1
- package/lib/commonjs/components/Tile/styles.js +10 -10
- package/lib/commonjs/components/Tile/styles.js.map +1 -1
- package/lib/commonjs/components/Toast/animation.js +3 -1
- package/lib/commonjs/components/Toast/animation.js.map +1 -1
- package/lib/commonjs/components/Toast/hooks.js +1 -0
- package/lib/commonjs/components/Toast/hooks.js.map +1 -1
- package/lib/commonjs/components/Toast/index.js +18 -3
- package/lib/commonjs/components/Toast/index.js.map +1 -1
- package/lib/commonjs/components/Toast/styles.js +14 -14
- package/lib/commonjs/components/Toast/styles.js.map +1 -1
- package/lib/commonjs/components/Tooltip/index.js +106 -0
- package/lib/commonjs/components/Tooltip/index.js.map +1 -0
- package/lib/commonjs/components/Tooltip/styles.js +10 -0
- package/lib/commonjs/components/Tooltip/styles.js.map +1 -0
- package/lib/commonjs/components/index.js +264 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/picker/PickerTrigger.js +49 -0
- package/lib/commonjs/components/picker/PickerTrigger.js.map +1 -0
- package/lib/commonjs/components/picker/styles.js +15 -0
- package/lib/commonjs/components/picker/styles.js.map +1 -0
- package/lib/commonjs/components/picker/surfaces.js +148 -0
- package/lib/commonjs/components/picker/surfaces.js.map +1 -0
- package/lib/commonjs/figma/Accordion.figma.js +50 -0
- package/lib/commonjs/figma/Accordion.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Title.figma.js +3 -3
- package/lib/commonjs/figma/AlertDialog.Title.figma.js.map +1 -1
- package/lib/commonjs/figma/Card.Header.figma.js +5 -5
- package/lib/commonjs/figma/Card.Header.figma.js.map +1 -1
- 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 +3 -0
- package/lib/commonjs/figma/Card.figma.js.map +1 -1
- package/lib/commonjs/figma/Chip.figma.js +2 -2
- package/lib/commonjs/figma/Chip.figma.js.map +1 -1
- package/lib/commonjs/figma/Dialog.Header.figma.js +6 -1
- package/lib/commonjs/figma/Dialog.Header.figma.js.map +1 -1
- package/lib/commonjs/figma/Dialog.Title.figma.js +3 -3
- package/lib/commonjs/figma/Dialog.Title.figma.js.map +1 -1
- package/lib/commonjs/figma/Field.Input.figma.js +1 -1
- 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 +1 -1
- package/lib/commonjs/figma/Field.Textarea.figma.js +1 -1
- package/lib/commonjs/figma/IconButton.figma.js +1 -1
- package/lib/commonjs/figma/IconButton.figma.js.map +1 -1
- package/lib/commonjs/figma/InsuranceDisclosure.figma.js +26 -0
- package/lib/commonjs/figma/InsuranceDisclosure.figma.js.map +1 -0
- package/lib/commonjs/figma/Menu.Item.figma.js +52 -0
- package/lib/commonjs/figma/Menu.Item.figma.js.map +1 -0
- package/lib/commonjs/figma/Menu.figma.js +29 -0
- package/lib/commonjs/figma/Menu.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/icons.figma.batch.json +5 -0
- package/lib/commonjs/index.js +8 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/providers/forge-design/provider.js +35 -16
- package/lib/commonjs/providers/forge-design/provider.js.map +1 -1
- package/lib/commonjs/providers/toast/insets-container.js +4 -1
- package/lib/commonjs/providers/toast/insets-container.js.map +1 -1
- package/lib/commonjs/providers/toast/provider.js +127 -46
- package/lib/commonjs/providers/toast/provider.js.map +1 -1
- package/lib/commonjs/providers/toast/toast-item-renderer.js +2 -1
- package/lib/commonjs/providers/toast/toast-item-renderer.js.map +1 -1
- package/lib/commonjs/styles/constants.js +20 -0
- package/lib/commonjs/styles/constants.js.map +1 -0
- package/lib/commonjs/styles.css +1 -0
- package/lib/module/animation/hooks/index.js +3 -0
- package/lib/module/animation/hooks/index.js.map +1 -1
- 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/components/Accordion/index.js +282 -0
- package/lib/module/components/Accordion/index.js.map +1 -0
- package/lib/module/components/Accordion/styles.js +52 -0
- package/lib/module/components/Accordion/styles.js.map +1 -0
- package/lib/module/components/Alert/styles.js +1 -1
- package/lib/module/components/Alert/styles.js.map +1 -1
- package/lib/module/components/AlertDialog/index.js +16 -2
- package/lib/module/components/AlertDialog/index.js.map +1 -1
- package/lib/module/components/Avatar/styles.js +1 -1
- package/lib/module/components/Avatar/styles.js.map +1 -1
- package/lib/module/components/Badge/styles.js +2 -2
- package/lib/module/components/Badge/styles.js.map +1 -1
- package/lib/module/components/BottomSheet/index.js +34 -3
- package/lib/module/components/BottomSheet/index.js.map +1 -1
- package/lib/module/components/BottomSheet/styles.js +5 -5
- 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 +2 -13
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Button/styles.js +28 -28
- package/lib/module/components/Button/styles.js.map +1 -1
- package/lib/module/components/CLAUDE.md +3 -3
- package/lib/module/components/Calendar/CalendarMonthHeader.js +92 -0
- package/lib/module/components/Calendar/CalendarMonthHeader.js.map +1 -0
- package/lib/module/components/Calendar/CalendarYearPickerGrid.js +70 -0
- package/lib/module/components/Calendar/CalendarYearPickerGrid.js.map +1 -0
- package/lib/module/components/Calendar/flashCalendarAdapter.js +290 -0
- package/lib/module/components/Calendar/flashCalendarAdapter.js.map +1 -0
- package/lib/module/components/Calendar/index.js +145 -0
- package/lib/module/components/Calendar/index.js.map +1 -0
- package/lib/module/components/Calendar/styles.js +66 -0
- package/lib/module/components/Calendar/styles.js.map +1 -0
- package/lib/module/components/Card/index.js +26 -1
- package/lib/module/components/Card/index.js.map +1 -1
- package/lib/module/components/Card/styles.js +6 -2
- package/lib/module/components/Card/styles.js.map +1 -1
- package/lib/module/components/Carousel/context.js +7 -0
- package/lib/module/components/Carousel/context.js.map +1 -0
- package/lib/module/components/Carousel/index.js +152 -0
- package/lib/module/components/Carousel/index.js.map +1 -0
- package/lib/module/components/Carousel/navButton.js +114 -0
- package/lib/module/components/Carousel/navButton.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 +41 -0
- package/lib/module/components/Carousel/styles.js.map +1 -0
- package/lib/module/components/Carousel/useCarouselActiveIndex.js +48 -0
- package/lib/module/components/Carousel/useCarouselActiveIndex.js.map +1 -0
- package/lib/module/components/Checkbox/index.js +29 -4
- package/lib/module/components/Checkbox/index.js.map +1 -1
- package/lib/module/components/Checkbox/styles.js +23 -17
- package/lib/module/components/Checkbox/styles.js.map +1 -1
- package/lib/module/components/Chip/index.js +23 -3
- package/lib/module/components/Chip/index.js.map +1 -1
- package/lib/module/components/Chip/styles.js +53 -53
- package/lib/module/components/Chip/styles.js.map +1 -1
- package/lib/module/components/CurrencyInput/index.js +3 -1
- package/lib/module/components/CurrencyInput/index.js.map +1 -1
- package/lib/module/components/CurrencyInput/styles.js +2 -2
- package/lib/module/components/CurrencyInput/styles.js.map +1 -1
- package/lib/module/components/DateField/index.js +143 -0
- package/lib/module/components/DateField/index.js.map +1 -0
- package/lib/module/components/DateField/styles.js +30 -0
- package/lib/module/components/DateField/styles.js.map +1 -0
- package/lib/module/components/DatePicker/index.js +159 -0
- package/lib/module/components/DatePicker/index.js.map +1 -0
- package/lib/module/components/DateRangePicker/index.js +173 -0
- package/lib/module/components/DateRangePicker/index.js.map +1 -0
- package/lib/module/components/DateTimeField/index.js +92 -0
- package/lib/module/components/DateTimeField/index.js.map +1 -0
- package/lib/module/components/DateTimeList/index.js +176 -0
- package/lib/module/components/DateTimeList/index.js.map +1 -0
- package/lib/module/components/DateTimeList/styles.js +52 -0
- package/lib/module/components/DateTimeList/styles.js.map +1 -0
- package/lib/module/components/DateTimePicker/index.js +183 -0
- package/lib/module/components/DateTimePicker/index.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 +301 -36
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Dialog/styles.js +14 -10
- package/lib/module/components/Dialog/styles.js.map +1 -1
- package/lib/module/components/Divider/styles.js +1 -1
- package/lib/module/components/Divider/styles.js.map +1 -1
- package/lib/module/components/Field/styles.js +2 -2
- package/lib/module/components/Field/styles.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/Heading/styles.js +1 -1
- package/lib/module/components/Heading/styles.js.map +1 -1
- package/lib/module/components/IconButton/index.js +16 -4
- package/lib/module/components/IconButton/index.js.map +1 -1
- package/lib/module/components/IconButton/styles.js +24 -24
- package/lib/module/components/IconButton/styles.js.map +1 -1
- package/lib/module/components/Input/index.js.map +1 -1
- package/lib/module/components/Input/styles.js +14 -6
- package/lib/module/components/Input/styles.js.map +1 -1
- package/lib/module/components/InsuranceDisclosure/FdicLockup.js +27 -0
- package/lib/module/components/InsuranceDisclosure/FdicLockup.js.map +1 -0
- package/lib/module/components/InsuranceDisclosure/index.js +70 -0
- package/lib/module/components/InsuranceDisclosure/index.js.map +1 -0
- package/lib/module/components/InsuranceDisclosure/styles.js +17 -0
- package/lib/module/components/InsuranceDisclosure/styles.js.map +1 -0
- package/lib/module/components/Link/index.js.map +1 -1
- package/lib/module/components/Link/styles.js +3 -6
- package/lib/module/components/Link/styles.js.map +1 -1
- package/lib/module/components/ListItem/styles.js +2 -2
- package/lib/module/components/ListItem/styles.js.map +1 -1
- package/lib/module/components/Menu/index.js +505 -0
- package/lib/module/components/Menu/index.js.map +1 -0
- package/lib/module/components/Menu/styles.js +96 -0
- package/lib/module/components/Menu/styles.js.map +1 -0
- package/lib/module/components/MonthCalendar/index.js +225 -0
- package/lib/module/components/MonthCalendar/index.js.map +1 -0
- package/lib/module/components/MonthPicker/index.js +159 -0
- package/lib/module/components/MonthPicker/index.js.map +1 -0
- package/lib/module/components/OtpInput/index.js +21 -9
- package/lib/module/components/OtpInput/index.js.map +1 -1
- package/lib/module/components/OtpInput/styles.js +10 -8
- package/lib/module/components/OtpInput/styles.js.map +1 -1
- package/lib/module/components/ProgressBar/styles.js +2 -2
- package/lib/module/components/ProgressBar/styles.js.map +1 -1
- package/lib/module/components/ProgressCircle/ProgressCircleRing.js +86 -0
- package/lib/module/components/ProgressCircle/ProgressCircleRing.js.map +1 -0
- package/lib/module/components/ProgressCircle/index.js +80 -0
- package/lib/module/components/ProgressCircle/index.js.map +1 -0
- package/lib/module/components/ProgressCircle/styles.js +46 -0
- package/lib/module/components/ProgressCircle/styles.js.map +1 -0
- package/lib/module/components/ProgressCircle/useProgressCircleColors.js +32 -0
- package/lib/module/components/ProgressCircle/useProgressCircleColors.js.map +1 -0
- package/lib/module/components/ProgressSegmented/index.js +2 -15
- package/lib/module/components/ProgressSegmented/index.js.map +1 -1
- package/lib/module/components/ProgressSegmented/styles.js +3 -3
- package/lib/module/components/ProgressSegmented/styles.js.map +1 -1
- package/lib/module/components/QuickActionButton/styles.js +2 -2
- package/lib/module/components/QuickActionButton/styles.js.map +1 -1
- package/lib/module/components/Radio/index.js +17 -2
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/Radio/styles.js +23 -8
- package/lib/module/components/Radio/styles.js.map +1 -1
- package/lib/module/components/RangeCalendar/index.js +161 -0
- package/lib/module/components/RangeCalendar/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 +64 -24
- package/lib/module/components/Select/index.js.map +1 -1
- package/lib/module/components/Select/styles.js +13 -44
- package/lib/module/components/Select/styles.js.map +1 -1
- package/lib/module/components/Skeleton/index.js +3 -1
- package/lib/module/components/Skeleton/index.js.map +1 -1
- package/lib/module/components/Skeleton/styles.js +1 -1
- package/lib/module/components/Skeleton/styles.js.map +1 -1
- package/lib/module/components/Slider/getSliderPopupPosition.js +61 -0
- package/lib/module/components/Slider/getSliderPopupPosition.js.map +1 -0
- package/lib/module/components/Slider/index.js +402 -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/Stack/styles.js +1 -1
- package/lib/module/components/Stack/styles.js.map +1 -1
- package/lib/module/components/Switch/index.js.map +1 -1
- package/lib/module/components/Switch/styles.js +1 -1
- package/lib/module/components/Switch/styles.js.map +1 -1
- package/lib/module/components/Table/index.js +385 -0
- package/lib/module/components/Table/index.js.map +1 -0
- package/lib/module/components/Table/index.web.js +325 -0
- package/lib/module/components/Table/index.web.js.map +1 -0
- package/lib/module/components/Table/styles.js +107 -0
- package/lib/module/components/Table/styles.js.map +1 -0
- package/lib/module/components/Table/types.js +4 -0
- package/lib/module/components/Table/types.js.map +1 -0
- package/lib/module/components/Table/useTableStyleContext.js +17 -0
- package/lib/module/components/Table/useTableStyleContext.js.map +1 -0
- package/lib/module/components/TablePagination/TablePaginationContext.js +25 -0
- package/lib/module/components/TablePagination/TablePaginationContext.js.map +1 -0
- package/lib/module/components/TablePagination/getTablePaginationItems.js +46 -0
- package/lib/module/components/TablePagination/getTablePaginationItems.js.map +1 -0
- package/lib/module/components/TablePagination/index.js +386 -0
- package/lib/module/components/TablePagination/index.js.map +1 -0
- package/lib/module/components/TablePagination/styles.js +9 -0
- package/lib/module/components/TablePagination/styles.js.map +1 -0
- 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 +1 -1
- package/lib/module/components/Text/styles.js.map +1 -1
- package/lib/module/components/Textarea/styles.js +6 -4
- package/lib/module/components/Textarea/styles.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 +3 -1
- package/lib/module/components/Toast/animation.js.map +1 -1
- package/lib/module/components/Toast/hooks.js +1 -0
- package/lib/module/components/Toast/hooks.js.map +1 -1
- package/lib/module/components/Toast/index.js +18 -3
- package/lib/module/components/Toast/index.js.map +1 -1
- package/lib/module/components/Toast/styles.js +9 -9
- package/lib/module/components/Toast/styles.js.map +1 -1
- package/lib/module/components/Tooltip/index.js +102 -0
- package/lib/module/components/Tooltip/index.js.map +1 -0
- package/lib/module/components/Tooltip/styles.js +6 -0
- package/lib/module/components/Tooltip/styles.js.map +1 -0
- package/lib/module/components/index.js +22 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/picker/PickerTrigger.js +45 -0
- package/lib/module/components/picker/PickerTrigger.js.map +1 -0
- package/lib/module/components/picker/styles.js +12 -0
- package/lib/module/components/picker/styles.js.map +1 -0
- package/lib/module/components/picker/surfaces.js +142 -0
- package/lib/module/components/picker/surfaces.js.map +1 -0
- package/lib/module/figma/Accordion.figma.js +44 -0
- package/lib/module/figma/Accordion.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Title.figma.js +3 -3
- package/lib/module/figma/AlertDialog.Title.figma.js.map +1 -1
- package/lib/module/figma/Card.Header.figma.js +5 -5
- package/lib/module/figma/Card.Header.figma.js.map +1 -1
- 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 +3 -0
- package/lib/module/figma/Card.figma.js.map +1 -1
- package/lib/module/figma/Chip.figma.js +2 -2
- package/lib/module/figma/Chip.figma.js.map +1 -1
- package/lib/module/figma/Dialog.Header.figma.js +6 -1
- package/lib/module/figma/Dialog.Header.figma.js.map +1 -1
- package/lib/module/figma/Dialog.Title.figma.js +3 -3
- package/lib/module/figma/Dialog.Title.figma.js.map +1 -1
- package/lib/module/figma/Field.Input.figma.js +1 -1
- 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 +1 -1
- package/lib/module/figma/Field.Textarea.figma.js +1 -1
- package/lib/module/figma/IconButton.figma.js +1 -1
- package/lib/module/figma/IconButton.figma.js.map +1 -1
- package/lib/module/figma/InsuranceDisclosure.figma.js +20 -0
- package/lib/module/figma/InsuranceDisclosure.figma.js.map +1 -0
- package/lib/module/figma/Menu.Item.figma.js +46 -0
- package/lib/module/figma/Menu.Item.figma.js.map +1 -0
- package/lib/module/figma/Menu.figma.js +23 -0
- package/lib/module/figma/Menu.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/icons.figma.batch.json +5 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/forge-design/provider.js +36 -17
- package/lib/module/providers/forge-design/provider.js.map +1 -1
- package/lib/module/providers/toast/insets-container.js +5 -2
- package/lib/module/providers/toast/insets-container.js.map +1 -1
- package/lib/module/providers/toast/provider.js +127 -46
- package/lib/module/providers/toast/provider.js.map +1 -1
- package/lib/module/providers/toast/toast-item-renderer.js +2 -1
- package/lib/module/providers/toast/toast-item-renderer.js.map +1 -1
- package/lib/module/styles/constants.js +16 -0
- package/lib/module/styles/constants.js.map +1 -0
- package/lib/module/styles.css +1 -0
- package/lib/typescript/animation/hooks/index.d.ts +3 -0
- package/lib/typescript/animation/hooks/index.d.ts.map +1 -1
- 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/components/Accordion/index.d.ts +90 -0
- package/lib/typescript/components/Accordion/index.d.ts.map +1 -0
- package/lib/typescript/components/Accordion/styles.d.ts +17 -0
- package/lib/typescript/components/Accordion/styles.d.ts.map +1 -0
- package/lib/typescript/components/Alert/styles.d.ts +1 -1
- package/lib/typescript/components/Alert/styles.d.ts.map +1 -1
- package/lib/typescript/components/AlertDialog/index.d.ts +8 -6
- package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/styles.d.ts +1 -1
- package/lib/typescript/components/Avatar/styles.d.ts.map +1 -1
- package/lib/typescript/components/Badge/styles.d.ts +1 -1
- package/lib/typescript/components/Badge/styles.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/index.d.ts +22 -2
- package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/styles.d.ts +5 -5
- 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 +40 -6
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/styles.d.ts +1 -1
- package/lib/typescript/components/Button/styles.d.ts.map +1 -1
- package/lib/typescript/components/Calendar/CalendarMonthHeader.d.ts +14 -0
- package/lib/typescript/components/Calendar/CalendarMonthHeader.d.ts.map +1 -0
- package/lib/typescript/components/Calendar/CalendarYearPickerGrid.d.ts +12 -0
- package/lib/typescript/components/Calendar/CalendarYearPickerGrid.d.ts.map +1 -0
- package/lib/typescript/components/Calendar/flashCalendarAdapter.d.ts +18 -0
- package/lib/typescript/components/Calendar/flashCalendarAdapter.d.ts.map +1 -0
- package/lib/typescript/components/Calendar/index.d.ts +19 -0
- package/lib/typescript/components/Calendar/index.d.ts.map +1 -0
- package/lib/typescript/components/Calendar/styles.d.ts +23 -0
- package/lib/typescript/components/Calendar/styles.d.ts.map +1 -0
- package/lib/typescript/components/Card/index.d.ts +6 -0
- package/lib/typescript/components/Card/index.d.ts.map +1 -1
- package/lib/typescript/components/Card/styles.d.ts +2 -1
- package/lib/typescript/components/Card/styles.d.ts.map +1 -1
- package/lib/typescript/components/Carousel/context.d.ts +15 -0
- package/lib/typescript/components/Carousel/context.d.ts.map +1 -0
- package/lib/typescript/components/Carousel/index.d.ts +73 -0
- package/lib/typescript/components/Carousel/index.d.ts.map +1 -0
- package/lib/typescript/components/Carousel/navButton.d.ts +40 -0
- package/lib/typescript/components/Carousel/navButton.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 +16 -0
- package/lib/typescript/components/Carousel/styles.d.ts.map +1 -0
- package/lib/typescript/components/Carousel/useCarouselActiveIndex.d.ts +12 -0
- package/lib/typescript/components/Carousel/useCarouselActiveIndex.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox/index.d.ts +2 -0
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +21 -1
- package/lib/typescript/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/styles.d.ts +6 -6
- package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
- package/lib/typescript/components/CurrencyInput/index.d.ts +1 -1
- package/lib/typescript/components/CurrencyInput/index.d.ts.map +1 -1
- package/lib/typescript/components/CurrencyInput/styles.d.ts +1 -1
- package/lib/typescript/components/CurrencyInput/styles.d.ts.map +1 -1
- package/lib/typescript/components/DateField/index.d.ts +43 -0
- package/lib/typescript/components/DateField/index.d.ts.map +1 -0
- package/lib/typescript/components/DateField/styles.d.ts +15 -0
- package/lib/typescript/components/DateField/styles.d.ts.map +1 -0
- package/lib/typescript/components/DatePicker/index.d.ts +40 -0
- package/lib/typescript/components/DatePicker/index.d.ts.map +1 -0
- package/lib/typescript/components/DateRangePicker/index.d.ts +45 -0
- package/lib/typescript/components/DateRangePicker/index.d.ts.map +1 -0
- package/lib/typescript/components/DateTimeField/index.d.ts +29 -0
- package/lib/typescript/components/DateTimeField/index.d.ts.map +1 -0
- package/lib/typescript/components/DateTimeList/index.d.ts +19 -0
- package/lib/typescript/components/DateTimeList/index.d.ts.map +1 -0
- package/lib/typescript/components/DateTimeList/styles.d.ts +17 -0
- package/lib/typescript/components/DateTimeList/styles.d.ts.map +1 -0
- package/lib/typescript/components/DateTimePicker/index.d.ts +40 -0
- package/lib/typescript/components/DateTimePicker/index.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 +27 -3
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/styles.d.ts +4 -3
- package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
- package/lib/typescript/components/Divider/styles.d.ts +1 -1
- package/lib/typescript/components/Divider/styles.d.ts.map +1 -1
- package/lib/typescript/components/Field/styles.d.ts +1 -1
- package/lib/typescript/components/Field/styles.d.ts.map +1 -1
- package/lib/typescript/components/Heading/styles.d.ts +1 -1
- package/lib/typescript/components/Heading/styles.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/index.d.ts +11 -1
- package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/styles.d.ts +3 -3
- package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Input/index.d.ts +20 -2
- package/lib/typescript/components/Input/index.d.ts.map +1 -1
- package/lib/typescript/components/Input/styles.d.ts +1 -1
- package/lib/typescript/components/Input/styles.d.ts.map +1 -1
- package/lib/typescript/components/InsuranceDisclosure/FdicLockup.d.ts +2 -0
- package/lib/typescript/components/InsuranceDisclosure/FdicLockup.d.ts.map +1 -0
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts +31 -0
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -0
- package/lib/typescript/components/InsuranceDisclosure/styles.d.ts +8 -0
- package/lib/typescript/components/InsuranceDisclosure/styles.d.ts.map +1 -0
- package/lib/typescript/components/Link/index.d.ts +1 -0
- package/lib/typescript/components/Link/index.d.ts.map +1 -1
- package/lib/typescript/components/Link/styles.d.ts +1 -1
- package/lib/typescript/components/Link/styles.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/styles.d.ts +1 -1
- package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
- package/lib/typescript/components/Menu/index.d.ts +119 -0
- package/lib/typescript/components/Menu/index.d.ts.map +1 -0
- package/lib/typescript/components/Menu/styles.d.ts +24 -0
- package/lib/typescript/components/Menu/styles.d.ts.map +1 -0
- package/lib/typescript/components/MonthCalendar/index.d.ts +29 -0
- package/lib/typescript/components/MonthCalendar/index.d.ts.map +1 -0
- package/lib/typescript/components/MonthPicker/index.d.ts +40 -0
- package/lib/typescript/components/MonthPicker/index.d.ts.map +1 -0
- 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 +1 -1
- package/lib/typescript/components/OtpInput/styles.d.ts.map +1 -1
- package/lib/typescript/components/ProgressBar/styles.d.ts +1 -1
- package/lib/typescript/components/ProgressBar/styles.d.ts.map +1 -1
- package/lib/typescript/components/ProgressCircle/ProgressCircleRing.d.ts +7 -0
- package/lib/typescript/components/ProgressCircle/ProgressCircleRing.d.ts.map +1 -0
- package/lib/typescript/components/ProgressCircle/index.d.ts +29 -0
- package/lib/typescript/components/ProgressCircle/index.d.ts.map +1 -0
- package/lib/typescript/components/ProgressCircle/styles.d.ts +23 -0
- package/lib/typescript/components/ProgressCircle/styles.d.ts.map +1 -0
- package/lib/typescript/components/ProgressCircle/useProgressCircleColors.d.ts +6 -0
- package/lib/typescript/components/ProgressCircle/useProgressCircleColors.d.ts.map +1 -0
- package/lib/typescript/components/ProgressSegmented/index.d.ts +0 -5
- package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
- package/lib/typescript/components/ProgressSegmented/styles.d.ts +1 -1
- package/lib/typescript/components/ProgressSegmented/styles.d.ts.map +1 -1
- package/lib/typescript/components/QuickActionButton/styles.d.ts +1 -1
- package/lib/typescript/components/QuickActionButton/styles.d.ts.map +1 -1
- 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/RangeCalendar/index.d.ts +19 -0
- package/lib/typescript/components/RangeCalendar/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 +11 -0
- package/lib/typescript/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/styles.d.ts +1 -8
- package/lib/typescript/components/Select/styles.d.ts.map +1 -1
- package/lib/typescript/components/Skeleton/index.d.ts.map +1 -1
- package/lib/typescript/components/Skeleton/styles.d.ts +1 -1
- package/lib/typescript/components/Skeleton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Slider/getSliderPopupPosition.d.ts +15 -0
- package/lib/typescript/components/Slider/getSliderPopupPosition.d.ts.map +1 -0
- package/lib/typescript/components/Slider/index.d.ts +66 -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/Switch/index.d.ts +10 -2
- package/lib/typescript/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/components/Switch/styles.d.ts +1 -1
- package/lib/typescript/components/Switch/styles.d.ts.map +1 -1
- package/lib/typescript/components/Table/index.d.ts +23 -0
- package/lib/typescript/components/Table/index.d.ts.map +1 -0
- package/lib/typescript/components/Table/index.web.d.ts +22 -0
- package/lib/typescript/components/Table/index.web.d.ts.map +1 -0
- package/lib/typescript/components/Table/styles.d.ts +36 -0
- package/lib/typescript/components/Table/styles.d.ts.map +1 -0
- package/lib/typescript/components/Table/types.d.ts +51 -0
- package/lib/typescript/components/Table/types.d.ts.map +1 -0
- package/lib/typescript/components/Table/useTableStyleContext.d.ts +11 -0
- package/lib/typescript/components/Table/useTableStyleContext.d.ts.map +1 -0
- package/lib/typescript/components/TablePagination/TablePaginationContext.d.ts +20 -0
- package/lib/typescript/components/TablePagination/TablePaginationContext.d.ts.map +1 -0
- package/lib/typescript/components/TablePagination/getTablePaginationItems.d.ts +7 -0
- package/lib/typescript/components/TablePagination/getTablePaginationItems.d.ts.map +1 -0
- package/lib/typescript/components/TablePagination/index.d.ts +74 -0
- package/lib/typescript/components/TablePagination/index.d.ts.map +1 -0
- package/lib/typescript/components/TablePagination/styles.d.ts +8 -0
- package/lib/typescript/components/TablePagination/styles.d.ts.map +1 -0
- 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/Text/styles.d.ts.map +1 -1
- package/lib/typescript/components/Textarea/styles.d.ts +1 -1
- package/lib/typescript/components/Textarea/styles.d.ts.map +1 -1
- package/lib/typescript/components/Tile/styles.d.ts +1 -1
- package/lib/typescript/components/Tile/styles.d.ts.map +1 -1
- package/lib/typescript/components/Toast/animation.d.ts.map +1 -1
- package/lib/typescript/components/Toast/hooks.d.ts +2 -2
- package/lib/typescript/components/Toast/hooks.d.ts.map +1 -1
- package/lib/typescript/components/Toast/index.d.ts.map +1 -1
- package/lib/typescript/components/Toast/styles.d.ts +5 -5
- package/lib/typescript/components/Toast/styles.d.ts.map +1 -1
- package/lib/typescript/components/Toast/types.d.ts +13 -8
- package/lib/typescript/components/Toast/types.d.ts.map +1 -1
- package/lib/typescript/components/Tooltip/index.d.ts +32 -0
- package/lib/typescript/components/Tooltip/index.d.ts.map +1 -0
- package/lib/typescript/components/Tooltip/styles.d.ts +5 -0
- package/lib/typescript/components/Tooltip/styles.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +22 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/picker/PickerTrigger.d.ts +25 -0
- package/lib/typescript/components/picker/PickerTrigger.d.ts.map +1 -0
- package/lib/typescript/components/picker/styles.d.ts +4 -0
- package/lib/typescript/components/picker/styles.d.ts.map +1 -0
- package/lib/typescript/components/picker/surfaces.d.ts +28 -0
- package/lib/typescript/components/picker/surfaces.d.ts.map +1 -0
- package/lib/typescript/figma/Accordion.figma.d.ts +8 -0
- package/lib/typescript/figma/Accordion.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Alert.Button.figma.d.ts +1 -1
- package/lib/typescript/figma/Alert.Close.figma.d.ts +1 -1
- package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/figma/Dialog.Header.figma.d.ts.map +1 -1
- 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/InsuranceDisclosure.figma.d.ts +8 -0
- package/lib/typescript/figma/InsuranceDisclosure.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Menu.Item.figma.d.ts +8 -0
- package/lib/typescript/figma/Menu.Item.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Menu.figma.d.ts +8 -0
- package/lib/typescript/figma/Menu.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/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/providers/forge-design/provider.d.ts.map +1 -1
- package/lib/typescript/providers/toast/insets-container.d.ts.map +1 -1
- package/lib/typescript/providers/toast/lifecycle.context.d.ts +2 -2
- package/lib/typescript/providers/toast/lifecycle.context.d.ts.map +1 -1
- package/lib/typescript/providers/toast/provider.d.ts.map +1 -1
- package/lib/typescript/providers/toast/toast-item-renderer.d.ts.map +1 -1
- package/lib/typescript/providers/toast/types.d.ts +22 -8
- package/lib/typescript/providers/toast/types.d.ts.map +1 -1
- package/lib/typescript/styles/constants.d.ts +5 -0
- package/lib/typescript/styles/constants.d.ts.map +1 -0
- package/package.json +35 -19
- package/src/animation/hooks/index.ts +3 -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/components/Accordion/index.tsx +385 -0
- package/src/components/Accordion/styles.ts +82 -0
- package/src/components/Alert/styles.ts +1 -1
- package/src/components/AlertDialog/index.tsx +17 -4
- package/src/components/Avatar/styles.ts +1 -1
- package/src/components/Badge/styles.ts +2 -2
- package/src/components/BottomSheet/index.tsx +31 -1
- package/src/components/BottomSheet/styles.ts +5 -5
- 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 +44 -26
- package/src/components/Button/styles.ts +28 -28
- package/src/components/CLAUDE.md +3 -3
- package/src/components/Calendar/CalendarMonthHeader.tsx +124 -0
- package/src/components/Calendar/CalendarYearPickerGrid.tsx +101 -0
- package/src/components/Calendar/flashCalendarAdapter.ts +362 -0
- package/src/components/Calendar/index.tsx +151 -0
- package/src/components/Calendar/styles.ts +80 -0
- package/src/components/Card/index.tsx +31 -0
- package/src/components/Card/styles.ts +5 -2
- package/src/components/Carousel/context.ts +15 -0
- package/src/components/Carousel/index.tsx +268 -0
- package/src/components/Carousel/navButton.tsx +160 -0
- package/src/components/Carousel/paginationNavigation.ts +32 -0
- package/src/components/Carousel/styles.ts +45 -0
- package/src/components/Carousel/useCarouselActiveIndex.ts +54 -0
- package/src/components/Checkbox/index.tsx +37 -2
- package/src/components/Checkbox/styles.ts +56 -24
- package/src/components/Chip/index.tsx +61 -3
- package/src/components/Chip/styles.ts +53 -53
- package/src/components/CurrencyInput/index.tsx +3 -1
- package/src/components/CurrencyInput/styles.ts +2 -2
- package/src/components/DateField/index.tsx +196 -0
- package/src/components/DateField/styles.ts +51 -0
- package/src/components/DatePicker/index.tsx +187 -0
- package/src/components/DateRangePicker/index.tsx +202 -0
- package/src/components/DateTimeField/index.tsx +128 -0
- package/src/components/DateTimeList/index.tsx +187 -0
- package/src/components/DateTimeList/styles.ts +59 -0
- package/src/components/DateTimePicker/index.tsx +233 -0
- package/src/components/Dialog/animation.ts +13 -0
- package/src/components/Dialog/index.tsx +391 -39
- package/src/components/Dialog/styles.ts +26 -9
- package/src/components/Divider/styles.ts +1 -1
- package/src/components/Field/styles.ts +2 -2
- package/src/components/Form/styles.ts +1 -1
- package/src/components/Heading/styles.ts +1 -1
- package/src/components/IconButton/index.tsx +35 -4
- package/src/components/IconButton/styles.ts +24 -24
- package/src/components/Input/index.tsx +20 -1
- package/src/components/Input/styles.ts +12 -4
- package/src/components/InsuranceDisclosure/FdicLockup.tsx +23 -0
- package/src/components/InsuranceDisclosure/index.tsx +99 -0
- package/src/components/InsuranceDisclosure/styles.ts +31 -0
- package/src/components/Link/index.tsx +1 -0
- package/src/components/Link/styles.ts +9 -12
- package/src/components/ListItem/styles.ts +2 -2
- package/src/components/Menu/index.tsx +667 -0
- package/src/components/Menu/styles.ts +153 -0
- package/src/components/MonthCalendar/index.tsx +252 -0
- package/src/components/MonthPicker/index.tsx +188 -0
- package/src/components/OtpInput/index.tsx +74 -42
- package/src/components/OtpInput/styles.ts +21 -14
- package/src/components/ProgressBar/styles.ts +2 -2
- package/src/components/ProgressCircle/ProgressCircleRing.tsx +105 -0
- package/src/components/ProgressCircle/index.tsx +110 -0
- package/src/components/ProgressCircle/styles.ts +47 -0
- package/src/components/ProgressCircle/useProgressCircleColors.ts +33 -0
- package/src/components/ProgressSegmented/index.tsx +2 -21
- package/src/components/ProgressSegmented/styles.ts +3 -3
- package/src/components/QuickActionButton/styles.ts +2 -2
- package/src/components/Radio/index.tsx +20 -0
- package/src/components/Radio/styles.ts +31 -5
- package/src/components/RangeCalendar/index.tsx +162 -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 +92 -26
- package/src/components/Select/styles.ts +12 -63
- package/src/components/Skeleton/index.tsx +2 -1
- package/src/components/Skeleton/styles.ts +1 -1
- package/src/components/Slider/getSliderPopupPosition.ts +70 -0
- package/src/components/Slider/index.tsx +520 -0
- package/src/components/Slider/styles.ts +147 -0
- package/src/components/Stack/styles.ts +1 -1
- package/src/components/Switch/index.tsx +10 -2
- package/src/components/Switch/styles.ts +1 -1
- package/src/components/Table/index.tsx +459 -0
- package/src/components/Table/index.web.tsx +395 -0
- package/src/components/Table/styles.ts +143 -0
- package/src/components/Table/types.ts +57 -0
- package/src/components/Table/useTableStyleContext.ts +14 -0
- package/src/components/TablePagination/TablePaginationContext.tsx +37 -0
- package/src/components/TablePagination/getTablePaginationItems.ts +62 -0
- package/src/components/TablePagination/index.tsx +498 -0
- package/src/components/TablePagination/styles.ts +15 -0
- package/src/components/Tabs/index.tsx +698 -0
- package/src/components/Tabs/styles.ts +340 -0
- package/src/components/Text/styles.ts +1 -1
- package/src/components/Textarea/styles.ts +6 -4
- package/src/components/Tile/styles.ts +2 -2
- package/src/components/Toast/animation.ts +19 -1
- package/src/components/Toast/hooks.ts +3 -2
- package/src/components/Toast/index.tsx +34 -3
- package/src/components/Toast/styles.ts +9 -9
- package/src/components/Toast/types.ts +14 -8
- package/src/components/Tooltip/index.tsx +149 -0
- package/src/components/Tooltip/styles.ts +16 -0
- package/src/components/index.ts +22 -0
- package/src/components/picker/PickerTrigger.tsx +65 -0
- package/src/components/picker/styles.ts +17 -0
- package/src/components/picker/surfaces.tsx +178 -0
- package/src/index.ts +2 -0
- package/src/providers/forge-design/provider.tsx +49 -21
- package/src/providers/toast/insets-container.tsx +3 -2
- package/src/providers/toast/lifecycle.context.tsx +2 -2
- package/src/providers/toast/provider.tsx +151 -52
- package/src/providers/toast/toast-item-renderer.tsx +5 -1
- package/src/providers/toast/types.ts +22 -8
- package/src/styles/constants.ts +14 -0
- package/src/styles.css +1 -0
- package/lib/commonjs/metro/withCdxMetroConfig.js +0 -13
- package/lib/commonjs/metro/withCdxMetroConfig.js.map +0 -1
- package/lib/commonjs/metro/withForgeMetroConfig.js +0 -24
- package/lib/commonjs/metro/withForgeMetroConfig.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 -159
- 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/metro/withCdxMetroConfig.js +0 -6
- package/lib/module/metro/withCdxMetroConfig.js.map +0 -1
- package/lib/module/metro/withForgeMetroConfig.js +0 -20
- package/lib/module/metro/withForgeMetroConfig.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 -155
- 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/metro/withCdxMetroConfig.d.ts +0 -5
- package/lib/typescript/metro/withCdxMetroConfig.d.ts.map +0 -1
- package/lib/typescript/metro/withForgeMetroConfig.d.ts +0 -19
- package/lib/typescript/metro/withForgeMetroConfig.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 -123
- 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/metro/withCdxMetroConfig.ts +0 -4
- package/src/metro/withForgeMetroConfig.ts +0 -29
- package/src/styles/index.ts +0 -1
- package/src/styles/primitives.ts +0 -143
- package/src/utils/WrapStringChild.tsx +0 -25
|
@@ -1,22 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
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';
|
|
3
21
|
import { CheckCircle, Close as CloseIcon, EmergencyHome, Warning } from '@cdx-ui/icons';
|
|
4
22
|
import {
|
|
5
23
|
DialogClose as DialogClosePrimitive,
|
|
6
|
-
|
|
24
|
+
DialogContent as DialogContentPrimitive,
|
|
25
|
+
DialogOverlay as DialogOverlayPrimitive,
|
|
26
|
+
DialogPortal as DialogPortalPrimitive,
|
|
7
27
|
DialogRoot as DialogRootPrimitive,
|
|
8
28
|
DialogTrigger as DialogTriggerPrimitive,
|
|
29
|
+
FullWindowOverlay,
|
|
30
|
+
MODAL_OVERLAY_Z_INDEX,
|
|
9
31
|
Slot,
|
|
10
32
|
dataAttributes,
|
|
11
33
|
mergeDataAttributes,
|
|
12
34
|
useDialog,
|
|
13
35
|
type IDialogCloseProps,
|
|
14
|
-
type
|
|
36
|
+
type IDialogContentProps,
|
|
15
37
|
type IDialogRootProps,
|
|
16
38
|
type IDialogTriggerProps,
|
|
17
39
|
} from '@cdx-ui/primitives';
|
|
18
|
-
import { cn, ParentContext, useParentContext, useStyleContext } from '@cdx-ui/utils';
|
|
40
|
+
import { cn, mergeRefs, ParentContext, useParentContext, useStyleContext } from '@cdx-ui/utils';
|
|
41
|
+
import {
|
|
42
|
+
usePopupDialogContentAnimation,
|
|
43
|
+
usePopupOverlayAnimation,
|
|
44
|
+
usePopupRootAnimation,
|
|
45
|
+
type AnimationRootDisableAll,
|
|
46
|
+
} from '../../animation';
|
|
47
|
+
import {
|
|
48
|
+
AnimationSettingsProvider,
|
|
49
|
+
useAnimationSettings,
|
|
50
|
+
} from '../../providers/animation-settings';
|
|
19
51
|
import { Icon } from '../Icon';
|
|
52
|
+
import { DialogAnimationProvider, useDialogAnimation } from './animation';
|
|
20
53
|
import {
|
|
21
54
|
type DialogTitleVariantProps,
|
|
22
55
|
type DialogVariantProps,
|
|
@@ -28,6 +61,7 @@ import {
|
|
|
28
61
|
dialogHeaderVariants,
|
|
29
62
|
dialogOverlayVariants,
|
|
30
63
|
dialogPopupVariants,
|
|
64
|
+
dialogPortalVariants,
|
|
31
65
|
dialogTextVariants,
|
|
32
66
|
dialogTitleIconVariants,
|
|
33
67
|
dialogTitleVariants,
|
|
@@ -35,6 +69,11 @@ import {
|
|
|
35
69
|
|
|
36
70
|
export { useDialog } from '@cdx-ui/primitives';
|
|
37
71
|
|
|
72
|
+
const IS_WEB = Platform.OS === 'web';
|
|
73
|
+
const WEB_TRANSITION_SAFETY_MS = 300;
|
|
74
|
+
|
|
75
|
+
type DialogDataState = 'entering' | 'open' | 'closed';
|
|
76
|
+
|
|
38
77
|
// =============================================================================
|
|
39
78
|
// STYLE CONTEXT
|
|
40
79
|
// =============================================================================
|
|
@@ -43,6 +82,12 @@ const SCOPE = 'DIALOG';
|
|
|
43
82
|
|
|
44
83
|
const useDialogStyleContext = () => useStyleContext(SCOPE) as DialogVariantProps;
|
|
45
84
|
|
|
85
|
+
// =============================================================================
|
|
86
|
+
// ANIMATED PRIMITIVES
|
|
87
|
+
// =============================================================================
|
|
88
|
+
|
|
89
|
+
const AnimatedOverlay = Animated.createAnimatedComponent(DialogOverlayPrimitive);
|
|
90
|
+
|
|
46
91
|
// =============================================================================
|
|
47
92
|
// STYLED ROOT
|
|
48
93
|
// =============================================================================
|
|
@@ -50,28 +95,46 @@ const useDialogStyleContext = () => useStyleContext(SCOPE) as DialogVariantProps
|
|
|
50
95
|
export interface DialogRootProps
|
|
51
96
|
extends Omit<ViewProps, 'children' | 'role'>, IDialogRootProps, DialogVariantProps {
|
|
52
97
|
className?: string;
|
|
98
|
+
animation?: AnimationRootDisableAll;
|
|
53
99
|
}
|
|
54
100
|
|
|
55
101
|
const DialogRoot = forwardRef<View, DialogRootProps>(
|
|
56
|
-
({ size = 'md', fullBleed = false, className, children, style, ...props }, ref) => {
|
|
102
|
+
({ size = 'md', fullBleed = false, animation, className, children, style, ...props }, ref) => {
|
|
57
103
|
const parent = useParentContext();
|
|
58
104
|
const ctx = useMemo(
|
|
59
105
|
() => ({ ...parent, [SCOPE]: { size, fullBleed } }),
|
|
60
106
|
[parent, size, fullBleed],
|
|
61
107
|
);
|
|
62
108
|
|
|
109
|
+
const { progress, isDragging, isGestureReleaseAnimationRunning, isAllAnimationsDisabled } =
|
|
110
|
+
usePopupRootAnimation({ animation });
|
|
111
|
+
|
|
112
|
+
const animationContextValue = useMemo(
|
|
113
|
+
() => ({ progress, isDragging, isGestureReleaseAnimationRunning }),
|
|
114
|
+
[progress, isDragging, isGestureReleaseAnimationRunning],
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
const animationSettingsContextValue = useMemo(
|
|
118
|
+
() => ({ isAllAnimationsDisabled }),
|
|
119
|
+
[isAllAnimationsDisabled],
|
|
120
|
+
);
|
|
121
|
+
|
|
63
122
|
return (
|
|
64
|
-
<
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
123
|
+
<AnimationSettingsProvider value={animationSettingsContextValue}>
|
|
124
|
+
<DialogAnimationProvider value={animationContextValue}>
|
|
125
|
+
<ParentContext.Provider value={ctx}>
|
|
126
|
+
<DialogRootPrimitive
|
|
127
|
+
ref={ref}
|
|
128
|
+
className={className}
|
|
129
|
+
style={style}
|
|
130
|
+
{...props}
|
|
131
|
+
{...mergeDataAttributes(props, dataAttributes({ slot: 'dialog' }))}
|
|
132
|
+
>
|
|
133
|
+
{children}
|
|
134
|
+
</DialogRootPrimitive>
|
|
135
|
+
</ParentContext.Provider>
|
|
136
|
+
</DialogAnimationProvider>
|
|
137
|
+
</AnimationSettingsProvider>
|
|
75
138
|
);
|
|
76
139
|
},
|
|
77
140
|
);
|
|
@@ -104,32 +167,262 @@ const DialogTrigger = forwardRef<View, DialogTriggerProps>(
|
|
|
104
167
|
DialogTrigger.displayName = 'Dialog.Trigger';
|
|
105
168
|
|
|
106
169
|
// =============================================================================
|
|
107
|
-
// STYLED POPUP
|
|
170
|
+
// STYLED POPUP (portal + overlay + content composition)
|
|
108
171
|
// =============================================================================
|
|
109
172
|
|
|
110
|
-
export interface DialogPopupProps
|
|
173
|
+
export interface DialogPopupProps
|
|
174
|
+
extends Omit<IDialogContentProps, 'asChild'>, Pick<DialogVariantProps, 'size'> {
|
|
111
175
|
className?: string;
|
|
112
176
|
children?: ReactNode;
|
|
177
|
+
disableFullWindowOverlay?: boolean;
|
|
178
|
+
isSwipeable?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Stacking order for the portal overlay layer (backdrop + popup panel).
|
|
181
|
+
* Defaults to {@link MODAL_OVERLAY_Z_INDEX} (10000).
|
|
182
|
+
*/
|
|
183
|
+
zIndex?: number;
|
|
113
184
|
}
|
|
114
185
|
|
|
115
186
|
const DialogPopup = forwardRef<View, DialogPopupProps>(
|
|
116
|
-
(
|
|
187
|
+
(
|
|
188
|
+
{
|
|
189
|
+
size: sizeProp,
|
|
190
|
+
className,
|
|
191
|
+
children,
|
|
192
|
+
style,
|
|
193
|
+
forceMount = false,
|
|
194
|
+
avoidKeyboard = true,
|
|
195
|
+
keyboardVerticalOffset = 0,
|
|
196
|
+
disableFullWindowOverlay = false,
|
|
197
|
+
isSwipeable = true,
|
|
198
|
+
zIndex = MODAL_OVERLAY_Z_INDEX,
|
|
199
|
+
...props
|
|
200
|
+
},
|
|
201
|
+
ref,
|
|
202
|
+
) => {
|
|
117
203
|
const { size: contextSize } = useDialogStyleContext();
|
|
118
204
|
const size = sizeProp ?? contextSize;
|
|
119
|
-
const
|
|
205
|
+
const { open, onOpenChange } = useDialog();
|
|
206
|
+
const parentContext = useParentContext();
|
|
207
|
+
|
|
208
|
+
const animationContext = useDialogAnimation();
|
|
209
|
+
const parentAnimationSettings = useAnimationSettings();
|
|
210
|
+
|
|
211
|
+
const fallbackProgress = useSharedValue(0);
|
|
212
|
+
const fallbackIsDragging = useSharedValue(false);
|
|
213
|
+
const fallbackIsGestureReleaseAnimationRunning = useSharedValue(false);
|
|
214
|
+
|
|
215
|
+
const progress = animationContext?.progress ?? fallbackProgress;
|
|
216
|
+
const isDragging = animationContext?.isDragging ?? fallbackIsDragging;
|
|
217
|
+
const isGestureReleaseAnimationRunning =
|
|
218
|
+
animationContext?.isGestureReleaseAnimationRunning ??
|
|
219
|
+
fallbackIsGestureReleaseAnimationRunning;
|
|
220
|
+
|
|
221
|
+
const {
|
|
222
|
+
rContainerStyle,
|
|
223
|
+
entering: overlayEntering,
|
|
224
|
+
exiting: overlayExiting,
|
|
225
|
+
} = usePopupOverlayAnimation({
|
|
226
|
+
progress,
|
|
227
|
+
isDragging,
|
|
228
|
+
isGestureReleaseAnimationRunning,
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
const {
|
|
232
|
+
contentY,
|
|
233
|
+
contentHeight,
|
|
234
|
+
panGesture,
|
|
235
|
+
rDragContainerStyle,
|
|
236
|
+
entering: contentEntering,
|
|
237
|
+
exiting: contentExiting,
|
|
238
|
+
} = usePopupDialogContentAnimation({
|
|
239
|
+
isOpen: open,
|
|
240
|
+
progress,
|
|
241
|
+
isDragging,
|
|
242
|
+
isGestureReleaseAnimationRunning,
|
|
243
|
+
onOpenChange,
|
|
244
|
+
isSwipeable,
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
const dragContainerRef = useRef<View>(null);
|
|
248
|
+
|
|
249
|
+
useLayoutEffect(() => {
|
|
250
|
+
if (!open || IS_WEB) return;
|
|
251
|
+
dragContainerRef.current?.measure((_x, _y, _width, height, _pageX, pageY) => {
|
|
252
|
+
contentY.set(pageY);
|
|
253
|
+
contentHeight.set(height);
|
|
254
|
+
});
|
|
255
|
+
}, [open, contentY, contentHeight]);
|
|
256
|
+
|
|
257
|
+
// ---- Web enter/exit lifecycle ----
|
|
258
|
+
// Mirrors the Toast pattern: mount → 'entering' → (rAF) → 'open' → (close)
|
|
259
|
+
// → 'closed' → (transitionend) → unmount.
|
|
260
|
+
//
|
|
261
|
+
// Critical: `isExiting` is derived synchronously (via ref tracking the previous
|
|
262
|
+
// `open` value) so the component stays mounted in the SAME render that sees
|
|
263
|
+
// `open` go false — if we used useEffect the component would return null before
|
|
264
|
+
// the effect fires.
|
|
265
|
+
//
|
|
266
|
+
// The transitionend listener targets the popup element (via popupRef) instead of
|
|
267
|
+
// the portal wrapper. CSS exit transitions live on the overlay and popup children,
|
|
268
|
+
// not the wrapper — listening on the wrapper would unmount on the first bubbled
|
|
269
|
+
// event, potentially cutting the other child's animation short.
|
|
270
|
+
const wrapperRef = useRef<View | null>(null);
|
|
271
|
+
const popupRef = useRef<View | null>(null);
|
|
272
|
+
const prevOpenRef = useRef(open);
|
|
273
|
+
const [isExiting, setIsExiting] = useState(false);
|
|
274
|
+
const [webState, setWebState] = useState<DialogDataState>(open ? 'entering' : 'closed');
|
|
275
|
+
|
|
276
|
+
// Detect open → false transition synchronously during render
|
|
277
|
+
if (IS_WEB && prevOpenRef.current && !open && !isExiting) {
|
|
278
|
+
setIsExiting(true);
|
|
279
|
+
setWebState('closed');
|
|
280
|
+
}
|
|
281
|
+
// Detect closed → open transition synchronously during render
|
|
282
|
+
if (IS_WEB && !prevOpenRef.current && open) {
|
|
283
|
+
setIsExiting(false);
|
|
284
|
+
setWebState('entering');
|
|
285
|
+
}
|
|
286
|
+
prevOpenRef.current = open;
|
|
287
|
+
|
|
288
|
+
// Entrance: commit 'entering' on first paint, then transition to 'open'
|
|
289
|
+
useEffect(() => {
|
|
290
|
+
if (!IS_WEB || !open) return;
|
|
291
|
+
const raf = requestAnimationFrame(() => {
|
|
292
|
+
setWebState('open');
|
|
293
|
+
});
|
|
294
|
+
return () => cancelAnimationFrame(raf);
|
|
295
|
+
}, [open]);
|
|
296
|
+
|
|
297
|
+
// Exit: wait for CSS transition to finish, then unmount.
|
|
298
|
+
// Listens on the popup element directly — its exit transitions (opacity +
|
|
299
|
+
// transform) are at least as long as the overlay's, so when the popup
|
|
300
|
+
// finishes both children are done animating.
|
|
301
|
+
useEffect(() => {
|
|
302
|
+
if (!IS_WEB || !isExiting) return;
|
|
303
|
+
|
|
304
|
+
const node = popupRef.current as unknown as HTMLElement | null;
|
|
305
|
+
let done = false;
|
|
306
|
+
|
|
307
|
+
const finish = () => {
|
|
308
|
+
if (done) return;
|
|
309
|
+
done = true;
|
|
310
|
+
setIsExiting(false);
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
const safetyTimer = setTimeout(finish, WEB_TRANSITION_SAFETY_MS);
|
|
314
|
+
|
|
315
|
+
if (!node || typeof node.addEventListener !== 'function') {
|
|
316
|
+
return () => {
|
|
317
|
+
clearTimeout(safetyTimer);
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const handler = (event: Event) => {
|
|
322
|
+
if (event.target !== node) return;
|
|
323
|
+
const propertyName = (event as unknown as { propertyName?: string }).propertyName ?? '';
|
|
324
|
+
if (propertyName === 'opacity' || propertyName === 'transform') {
|
|
325
|
+
finish();
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
node.addEventListener('transitionend', handler);
|
|
329
|
+
|
|
330
|
+
return () => {
|
|
331
|
+
clearTimeout(safetyTimer);
|
|
332
|
+
node.removeEventListener('transitionend', handler);
|
|
333
|
+
};
|
|
334
|
+
}, [isExiting]);
|
|
335
|
+
|
|
336
|
+
const dataState: DialogDataState = webState;
|
|
337
|
+
const shouldMount = IS_WEB ? open || isExiting : open;
|
|
338
|
+
|
|
339
|
+
if (!forceMount && !shouldMount) {
|
|
340
|
+
return null;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
const portalClassName = cn(dialogPortalVariants());
|
|
120
344
|
const overlayClassName = cn(dialogOverlayVariants());
|
|
345
|
+
const popupClassName = cn(dialogPopupVariants({ size }), className);
|
|
346
|
+
|
|
347
|
+
const keyboardBehavior = avoidKeyboard
|
|
348
|
+
? Platform.select<'padding' | 'height'>({ ios: 'padding', default: 'height' })
|
|
349
|
+
: undefined;
|
|
121
350
|
|
|
122
351
|
return (
|
|
123
|
-
<
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
352
|
+
<DialogPortalPrimitive forceMount>
|
|
353
|
+
<ParentContext.Provider value={parentContext}>
|
|
354
|
+
<AnimationSettingsProvider value={parentAnimationSettings}>
|
|
355
|
+
<DialogAnimationProvider value={animationContext}>
|
|
356
|
+
<FullWindowOverlay
|
|
357
|
+
disableFullWindowOverlay={disableFullWindowOverlay}
|
|
358
|
+
unstable_accessibilityContainerViewIsModal
|
|
359
|
+
>
|
|
360
|
+
<Animated.View
|
|
361
|
+
ref={wrapperRef}
|
|
362
|
+
className={portalClassName}
|
|
363
|
+
style={{ zIndex }}
|
|
364
|
+
pointerEvents="box-none"
|
|
365
|
+
{...(IS_WEB ? dataAttributes({ state: dataState }) : undefined)}
|
|
366
|
+
>
|
|
367
|
+
{/* Overlay */}
|
|
368
|
+
<Animated.View
|
|
369
|
+
entering={overlayEntering}
|
|
370
|
+
exiting={overlayExiting}
|
|
371
|
+
style={StyleSheet.absoluteFill}
|
|
372
|
+
>
|
|
373
|
+
<AnimatedOverlay
|
|
374
|
+
forceMount
|
|
375
|
+
className={overlayClassName}
|
|
376
|
+
style={IS_WEB ? undefined : rContainerStyle}
|
|
377
|
+
{...(IS_WEB ? dataAttributes({ state: dataState }) : undefined)}
|
|
378
|
+
/>
|
|
379
|
+
</Animated.View>
|
|
380
|
+
|
|
381
|
+
{/* Content with gesture + animation */}
|
|
382
|
+
<GestureDetector gesture={panGesture}>
|
|
383
|
+
<Animated.View
|
|
384
|
+
ref={dragContainerRef}
|
|
385
|
+
style={internalStyles.fill}
|
|
386
|
+
pointerEvents="box-none"
|
|
387
|
+
entering={contentEntering}
|
|
388
|
+
exiting={contentExiting}
|
|
389
|
+
>
|
|
390
|
+
<Animated.View
|
|
391
|
+
style={
|
|
392
|
+
IS_WEB ? internalStyles.fill : [internalStyles.fill, rDragContainerStyle]
|
|
393
|
+
}
|
|
394
|
+
pointerEvents="box-none"
|
|
395
|
+
>
|
|
396
|
+
<KeyboardAvoidingView
|
|
397
|
+
style={internalStyles.center}
|
|
398
|
+
pointerEvents="box-none"
|
|
399
|
+
behavior={keyboardBehavior}
|
|
400
|
+
keyboardVerticalOffset={keyboardVerticalOffset}
|
|
401
|
+
>
|
|
402
|
+
<DialogContentPrimitive
|
|
403
|
+
ref={mergeRefs(ref, popupRef)}
|
|
404
|
+
forceMount
|
|
405
|
+
className={popupClassName}
|
|
406
|
+
style={style}
|
|
407
|
+
{...props}
|
|
408
|
+
{...mergeDataAttributes(
|
|
409
|
+
props,
|
|
410
|
+
dataAttributes({ slot: 'dialog-popup' }),
|
|
411
|
+
IS_WEB ? dataAttributes({ state: dataState }) : undefined,
|
|
412
|
+
)}
|
|
413
|
+
>
|
|
414
|
+
{children}
|
|
415
|
+
</DialogContentPrimitive>
|
|
416
|
+
</KeyboardAvoidingView>
|
|
417
|
+
</Animated.View>
|
|
418
|
+
</Animated.View>
|
|
419
|
+
</GestureDetector>
|
|
420
|
+
</Animated.View>
|
|
421
|
+
</FullWindowOverlay>
|
|
422
|
+
</DialogAnimationProvider>
|
|
423
|
+
</AnimationSettingsProvider>
|
|
424
|
+
</ParentContext.Provider>
|
|
425
|
+
</DialogPortalPrimitive>
|
|
133
426
|
);
|
|
134
427
|
},
|
|
135
428
|
);
|
|
@@ -168,27 +461,69 @@ const DialogHeader = forwardRef<View, DialogHeaderProps>(
|
|
|
168
461
|
DialogHeader.displayName = 'Dialog.Header';
|
|
169
462
|
|
|
170
463
|
// =============================================================================
|
|
171
|
-
// STYLED TITLE (styled-only sub-slot with
|
|
464
|
+
// STYLED TITLE (styled-only sub-slot with severity variants)
|
|
172
465
|
// =============================================================================
|
|
173
466
|
|
|
174
|
-
|
|
467
|
+
export type DialogTitleSeverity = 'neutral' | 'danger' | 'warning' | 'success';
|
|
468
|
+
|
|
469
|
+
/** @deprecated Use `severity` prop instead of `appearance`. */
|
|
470
|
+
export type DialogTitleAppearance = 'default' | 'danger' | 'warning' | 'success';
|
|
471
|
+
|
|
472
|
+
let hasWarnedDialogAppearanceProp = false;
|
|
473
|
+
let hasWarnedDialogDefaultSeverity = false;
|
|
474
|
+
|
|
475
|
+
const SEVERITY_ICON_MAP = {
|
|
175
476
|
danger: EmergencyHome,
|
|
176
477
|
warning: Warning,
|
|
177
478
|
success: CheckCircle,
|
|
178
479
|
} as const;
|
|
179
480
|
|
|
180
|
-
export interface DialogTitleProps extends TextProps, DialogTitleVariantProps {
|
|
481
|
+
export interface DialogTitleProps extends TextProps, Omit<DialogTitleVariantProps, 'severity'> {
|
|
181
482
|
asChild?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* Severity level that controls the status icon and color treatment.
|
|
485
|
+
* @default 'neutral'
|
|
486
|
+
*/
|
|
487
|
+
severity?:
|
|
488
|
+
| DialogTitleSeverity
|
|
489
|
+
/** @deprecated Use `'neutral'` instead. */
|
|
490
|
+
| 'default';
|
|
491
|
+
/**
|
|
492
|
+
* @deprecated Use `severity` prop instead.
|
|
493
|
+
*/
|
|
494
|
+
appearance?: DialogTitleAppearance;
|
|
182
495
|
className?: string;
|
|
183
496
|
children?: ReactNode;
|
|
184
497
|
}
|
|
185
498
|
|
|
186
499
|
const DialogTitle = forwardRef<Text, DialogTitleProps>(
|
|
187
|
-
({ asChild,
|
|
188
|
-
|
|
500
|
+
({ asChild, severity: severityProp, appearance, className, children, style, ...props }, ref) => {
|
|
501
|
+
useEffect(() => {
|
|
502
|
+
if (__DEV__ && appearance !== undefined && !hasWarnedDialogAppearanceProp) {
|
|
503
|
+
hasWarnedDialogAppearanceProp = true;
|
|
504
|
+
console.warn(
|
|
505
|
+
'[Dialog.Title] The `appearance` prop is deprecated and will be removed in a future major release. Use `severity` instead.',
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
}, [appearance]);
|
|
509
|
+
|
|
510
|
+
const rawSeverity = severityProp ?? appearance ?? 'neutral';
|
|
511
|
+
|
|
512
|
+
useEffect(() => {
|
|
513
|
+
if (__DEV__ && rawSeverity === 'default' && !hasWarnedDialogDefaultSeverity) {
|
|
514
|
+
hasWarnedDialogDefaultSeverity = true;
|
|
515
|
+
console.warn(
|
|
516
|
+
'[Dialog.Title] The `default` severity value is deprecated and will be removed in a future major release. Use `neutral` instead.',
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
}, [rawSeverity]);
|
|
520
|
+
|
|
521
|
+
const severity: DialogTitleSeverity = rawSeverity === 'default' ? 'neutral' : rawSeverity;
|
|
522
|
+
|
|
523
|
+
const computedClassName = cn(dialogTitleVariants({ severity }), className);
|
|
189
524
|
const IconComponent =
|
|
190
|
-
|
|
191
|
-
?
|
|
525
|
+
severity && severity in SEVERITY_ICON_MAP
|
|
526
|
+
? SEVERITY_ICON_MAP[severity as keyof typeof SEVERITY_ICON_MAP]
|
|
192
527
|
: null;
|
|
193
528
|
const Comp = asChild ? Slot : Text;
|
|
194
529
|
|
|
@@ -207,7 +542,7 @@ const DialogTitle = forwardRef<Text, DialogTitleProps>(
|
|
|
207
542
|
if (IconComponent) {
|
|
208
543
|
return (
|
|
209
544
|
<View className="flex-row items-center gap-1">
|
|
210
|
-
<Icon as={IconComponent} className={dialogTitleIconVariants({
|
|
545
|
+
<Icon as={IconComponent} className={dialogTitleIconVariants({ severity })} />
|
|
211
546
|
{titleElement}
|
|
212
547
|
</View>
|
|
213
548
|
);
|
|
@@ -408,3 +743,20 @@ export const Dialog = Object.assign(DialogRoot, {
|
|
|
408
743
|
Footer: DialogFooter,
|
|
409
744
|
Close: DialogClose,
|
|
410
745
|
}) as DialogCompoundComponent;
|
|
746
|
+
|
|
747
|
+
export { MODAL_OVERLAY_Z_INDEX };
|
|
748
|
+
|
|
749
|
+
// =============================================================================
|
|
750
|
+
// INTERNAL STYLES
|
|
751
|
+
// =============================================================================
|
|
752
|
+
|
|
753
|
+
const internalStyles = StyleSheet.create({
|
|
754
|
+
fill: {
|
|
755
|
+
flex: 1,
|
|
756
|
+
},
|
|
757
|
+
center: {
|
|
758
|
+
flex: 1,
|
|
759
|
+
alignItems: 'center',
|
|
760
|
+
justifyContent: 'center',
|
|
761
|
+
},
|
|
762
|
+
});
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
|
-
import { cva, type VariantProps } from '
|
|
3
|
-
import { TRANSITION_COLORS } from '../../styles/
|
|
2
|
+
import { cva, type VariantProps } from '@cdx-ui/utils';
|
|
3
|
+
import { TRANSITION_COLORS } from '../../styles/constants';
|
|
4
|
+
|
|
5
|
+
// ── Portal container ────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
export const dialogPortalVariants = cva(['flex-1', 'absolute inset-0', 'web:fixed']);
|
|
4
8
|
|
|
5
9
|
// ── Overlay ─────────────────────────────────────────────────
|
|
6
10
|
|
|
7
|
-
export const dialogOverlayVariants = cva([
|
|
11
|
+
export const dialogOverlayVariants = cva([
|
|
12
|
+
'absolute inset-0',
|
|
13
|
+
'bg-surface-backdrop',
|
|
14
|
+
'web:transition-opacity web:duration-200 web:ease-out',
|
|
15
|
+
'web:data-[state=entering]:opacity-0',
|
|
16
|
+
'web:data-[state=open]:opacity-100',
|
|
17
|
+
'web:data-[state=closed]:opacity-0 web:data-[state=closed]:duration-150',
|
|
18
|
+
'web:motion-reduce:transition-none web:motion-reduce:duration-0',
|
|
19
|
+
]);
|
|
8
20
|
|
|
9
21
|
// ── Popup (renamed from dialogContentVariants) ──────────────
|
|
10
22
|
|
|
@@ -14,6 +26,11 @@ export const dialogPopupVariants = cva(
|
|
|
14
26
|
'rounded-lg',
|
|
15
27
|
Platform.select({ web: 'shadow-lg', default: '' }),
|
|
16
28
|
'max-h-[85vh] overflow-hidden',
|
|
29
|
+
'web:transition-[opacity,transform] web:duration-200 web:ease-out',
|
|
30
|
+
'web:data-[state=entering]:opacity-0 web:data-[state=entering]:scale-[0.96]',
|
|
31
|
+
'web:data-[state=open]:opacity-100 web:data-[state=open]:scale-100',
|
|
32
|
+
'web:data-[state=closed]:opacity-0 web:data-[state=closed]:scale-[0.96] web:data-[state=closed]:duration-150',
|
|
33
|
+
'web:motion-reduce:transition-none web:motion-reduce:duration-0',
|
|
17
34
|
],
|
|
18
35
|
{
|
|
19
36
|
variants: {
|
|
@@ -43,15 +60,15 @@ export const dialogHeaderVariants = cva([
|
|
|
43
60
|
|
|
44
61
|
export const dialogTitleVariants = cva(['heading-sm', 'text-content-primary'], {
|
|
45
62
|
variants: {
|
|
46
|
-
|
|
47
|
-
|
|
63
|
+
severity: {
|
|
64
|
+
neutral: '',
|
|
48
65
|
danger: '',
|
|
49
66
|
warning: '',
|
|
50
67
|
success: '',
|
|
51
68
|
},
|
|
52
69
|
},
|
|
53
70
|
defaultVariants: {
|
|
54
|
-
|
|
71
|
+
severity: 'neutral',
|
|
55
72
|
},
|
|
56
73
|
});
|
|
57
74
|
|
|
@@ -59,15 +76,15 @@ export const dialogTitleVariants = cva(['heading-sm', 'text-content-primary'], {
|
|
|
59
76
|
|
|
60
77
|
export const dialogTitleIconVariants = cva(['size-5'], {
|
|
61
78
|
variants: {
|
|
62
|
-
|
|
63
|
-
|
|
79
|
+
severity: {
|
|
80
|
+
neutral: '',
|
|
64
81
|
danger: 'text-content-danger',
|
|
65
82
|
warning: 'text-content-warning',
|
|
66
83
|
success: 'text-content-success',
|
|
67
84
|
},
|
|
68
85
|
},
|
|
69
86
|
defaultVariants: {
|
|
70
|
-
|
|
87
|
+
severity: 'neutral',
|
|
71
88
|
},
|
|
72
89
|
});
|
|
73
90
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cva, type VariantProps } from '
|
|
2
|
-
import { DISABLED_OPACITY } from '../../styles/
|
|
1
|
+
import { cva, type VariantProps } from '@cdx-ui/utils';
|
|
2
|
+
import { DISABLED_OPACITY } from '../../styles/constants';
|
|
3
3
|
|
|
4
4
|
export const fieldRootVariants = cva(['group flex-col gap-2', 'web:last:mb-0', DISABLED_OPACITY]);
|
|
5
5
|
|