@cdx-ui/components 0.0.1-beta.98 → 0.1.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/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 +7 -7
- package/lib/commonjs/components/Input/styles.js.map +1 -1
- package/lib/commonjs/components/InsuranceDisclosure/index.js +56 -0
- package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -0
- package/lib/commonjs/components/InsuranceDisclosure/styles.js +11 -0
- package/lib/commonjs/components/InsuranceDisclosure/styles.js.map +1 -0
- package/lib/commonjs/components/Link/index.js.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 +6 -45
- 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 +6 -6
- 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/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 +16 -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 +2 -2
- package/lib/module/components/Input/styles.js.map +1 -1
- package/lib/module/components/InsuranceDisclosure/index.js +52 -0
- package/lib/module/components/InsuranceDisclosure/index.js.map +1 -0
- package/lib/module/components/InsuranceDisclosure/styles.js +7 -0
- package/lib/module/components/InsuranceDisclosure/styles.js.map +1 -0
- package/lib/module/components/Link/index.js.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 +2 -41
- 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 +2 -2
- 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/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 +12 -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/index.d.ts +10 -0
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -0
- package/lib/typescript/components/InsuranceDisclosure/styles.d.ts +4 -0
- package/lib/typescript/components/InsuranceDisclosure/styles.d.ts.map +1 -0
- package/lib/typescript/components/Link/index.d.ts +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/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 +4 -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 +2 -2
- package/src/components/InsuranceDisclosure/index.tsx +59 -0
- package/src/components/InsuranceDisclosure/styles.ts +12 -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 +2 -61
- 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 +2 -2
- 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 +10 -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
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
2
|
+
import { cva, type VariantProps } from '@cdx-ui/utils';
|
|
3
|
+
import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/constants';
|
|
4
|
+
|
|
5
|
+
// Kept local (rather than imported from `./index`) to avoid a circular import — `index.tsx`
|
|
6
|
+
// imports styles from this file.
|
|
7
|
+
export type TabsVariant = 'outline' | 'solid';
|
|
8
|
+
|
|
9
|
+
// `rounded-full` is used for the indicator + individual tabs, which are small enough that a
|
|
10
|
+
// full capsule radius looks correct in both orientations.
|
|
11
|
+
const SOLID_RADIUS = 'rounded-full';
|
|
12
|
+
|
|
13
|
+
// `rounded-full` (`border-radius/round`, 9999px) for the indicator, tab capsules, and the
|
|
14
|
+
// horizontal solid track/shell — matches Figma SegmentedControl (always much wider than tall,
|
|
15
|
+
// so full rounding reads as a capsule). Applied via StyleSheet on the track/shell because
|
|
16
|
+
// arbitrary-value radius classes don't reliably resolve through Uniwind's scanner.
|
|
17
|
+
const SOLID_TRACK_RADIUS = 9999;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Vertical solid track radius — deliberately *not* `SOLID_TRACK_RADIUS` (9999px). A vertical
|
|
21
|
+
* track's box can end up nearly square (few short tab labels stacked in a column), and a
|
|
22
|
+
* fully-round radius on a near-square box renders as a circle/blob instead of a rounded rect.
|
|
23
|
+
* A fixed, modest radius avoids that regardless of how many tabs are stacked or how wide their
|
|
24
|
+
* labels are.
|
|
25
|
+
*/
|
|
26
|
+
const SOLID_VERTICAL_TRACK_RADIUS = 20;
|
|
27
|
+
|
|
28
|
+
/** Thickness of the 1px gray rail the outline indicator rides beside. */
|
|
29
|
+
const OUTLINE_TRACK_THICKNESS = 1;
|
|
30
|
+
/** Thickness of the 2px action-colored outline selection segment (animated size, not a class). */
|
|
31
|
+
export const OUTLINE_INDICATOR_THICKNESS = 2;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Shared duration (ms) for the indicator's `withTiming` glide (`index.tsx`) and the tab's
|
|
35
|
+
* `duration-150` transition class (below) — kept in sync so the focus ring doesn't snap in
|
|
36
|
+
* ahead of a still-sliding solid/outline indicator. Change both together.
|
|
37
|
+
*/
|
|
38
|
+
export const TABS_INDICATOR_TRANSITION_MS = 150;
|
|
39
|
+
|
|
40
|
+
/** Outline horizontal scroll — narrow fade reads cleanly against the page background. */
|
|
41
|
+
export const TABS_SCROLL_FADE_SIZE = 32;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Solid horizontal scroll — wider fade so tabs dissolve smoothly into the track (and under the
|
|
45
|
+
* overlay chevron) instead of ending in a hard clip at the scroll viewport edge.
|
|
46
|
+
*/
|
|
47
|
+
export const TABS_SOLID_SCROLL_FADE_SIZE = 40;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Room reserved on the left/right sides inside the horizontal-scroll clip rect for ink that
|
|
51
|
+
* paints past a tab's own box: `shadow-sm` (`0px 1px 3px`, solid only) and the web focus ring
|
|
52
|
+
* (`ring-2` + `ring-offset-2`, ~4px, both variants). `overflow-x: auto` + `overflow-y: visible`
|
|
53
|
+
* does *not* achieve this — per the CSS Overflow spec, a non-`visible` value on one axis forces
|
|
54
|
+
* `visible` on the other axis to compute as `auto`, so it still clips. Applies to both variants —
|
|
55
|
+
* outline's ring bleeds past its box exactly the same way solid's does.
|
|
56
|
+
*/
|
|
57
|
+
/** Reserved ink room (focus ring, shadow) inside the horizontal-scroll clip rect — 4px (`p-1`). */
|
|
58
|
+
const INDICATOR_BLEED = 4;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Same bleed room as `INDICATOR_BLEED` on the top/bottom sides — kept equal to the solid shell's
|
|
62
|
+
* own `py-1` (below) so the shell's `overflow: hidden` clip boundary sits exactly where the
|
|
63
|
+
* reserved ink stops, with no gap and no clipping. Solid indicator = 32px, whole tablist = 40px
|
|
64
|
+
* per Figma SegmentedControl — a wider value here would inflate the shell past 40px.
|
|
65
|
+
*/
|
|
66
|
+
const INDICATOR_BLEED_VERTICAL = INDICATOR_BLEED;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Numeric styles that can't be expressed as static Uniwind utility classes — solid track radius
|
|
70
|
+
* and outline indicator offset (`bottom-px` / `left-px` don't apply on Reanimated host views).
|
|
71
|
+
*/
|
|
72
|
+
export const tabsStyles = StyleSheet.create({
|
|
73
|
+
solidTrack: {
|
|
74
|
+
borderRadius: SOLID_TRACK_RADIUS,
|
|
75
|
+
},
|
|
76
|
+
/** See `SOLID_VERTICAL_TRACK_RADIUS` — used instead of `solidTrack` for vertical solid tracks. */
|
|
77
|
+
solidTrackVertical: {
|
|
78
|
+
borderRadius: SOLID_VERTICAL_TRACK_RADIUS,
|
|
79
|
+
},
|
|
80
|
+
/** Clips scroll ink + edge fades to the solid shell's rounded rect (className radius alone won't). */
|
|
81
|
+
solidShell: {
|
|
82
|
+
borderRadius: SOLID_TRACK_RADIUS,
|
|
83
|
+
overflow: 'hidden',
|
|
84
|
+
},
|
|
85
|
+
horizontalScrollContent: {
|
|
86
|
+
paddingHorizontal: INDICATOR_BLEED,
|
|
87
|
+
paddingVertical: INDICATOR_BLEED_VERTICAL,
|
|
88
|
+
},
|
|
89
|
+
horizontalScrollViewBleed: {
|
|
90
|
+
marginVertical: -INDICATOR_BLEED_VERTICAL,
|
|
91
|
+
},
|
|
92
|
+
outlineIndicator: {
|
|
93
|
+
zIndex: 1,
|
|
94
|
+
},
|
|
95
|
+
outlineIndicatorHorizontal: {
|
|
96
|
+
bottom: OUTLINE_TRACK_THICKNESS,
|
|
97
|
+
},
|
|
98
|
+
outlineIndicatorVertical: {
|
|
99
|
+
left: OUTLINE_TRACK_THICKNESS,
|
|
100
|
+
},
|
|
101
|
+
solidIndicator: {
|
|
102
|
+
zIndex: 0,
|
|
103
|
+
},
|
|
104
|
+
/** Clips press/hover feedback to the solid tab capsule (`rounded-full` alone is not enough on Pressable). */
|
|
105
|
+
solidTabPressable: {
|
|
106
|
+
borderRadius: 9999,
|
|
107
|
+
overflow: 'hidden',
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export const tabsRootVariants = cva([], {
|
|
112
|
+
variants: {
|
|
113
|
+
orientation: {
|
|
114
|
+
horizontal: 'flex-col',
|
|
115
|
+
vertical: 'flex-row items-start gap-4',
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
defaultVariants: { orientation: 'horizontal' },
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export const tabsListVariants = cva(['relative min-w-0']);
|
|
122
|
+
|
|
123
|
+
/** Flex track that hosts the rail, indicator, and tab triggers. */
|
|
124
|
+
export const tabsListTrackVariants = cva(['relative items-stretch'], {
|
|
125
|
+
variants: {
|
|
126
|
+
orientation: {
|
|
127
|
+
horizontal: 'flex-row',
|
|
128
|
+
vertical: 'flex-col',
|
|
129
|
+
},
|
|
130
|
+
variant: {
|
|
131
|
+
outline: '',
|
|
132
|
+
solid: 'gap-0.5',
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* When horizontal tabs scroll, the solid track background + radius live on
|
|
136
|
+
* `tabsListSolidShellVariants` (viewport-sized) so rounded corners aren't clipped
|
|
137
|
+
* by the ScrollView.
|
|
138
|
+
*/
|
|
139
|
+
scrollable: {
|
|
140
|
+
true: '',
|
|
141
|
+
false: '',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
compoundVariants: [
|
|
145
|
+
{ orientation: 'vertical', variant: 'outline', className: 'gap-2 pl-1' },
|
|
146
|
+
{ orientation: 'horizontal', variant: 'outline', className: 'pb-1' },
|
|
147
|
+
{ variant: 'solid', scrollable: false, className: 'bg-surface-secondary p-1' },
|
|
148
|
+
// Whole tablist = 40px per Figma SegmentedControl (`p-1` + 32px tab, above). Height-only —
|
|
149
|
+
// vertical solid lists size to their stacked tab content instead.
|
|
150
|
+
{
|
|
151
|
+
orientation: 'horizontal',
|
|
152
|
+
variant: 'solid',
|
|
153
|
+
scrollable: false,
|
|
154
|
+
className: 'h-10 max-h-10 min-h-10',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
defaultVariants: { orientation: 'horizontal', variant: 'solid', scrollable: false },
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Viewport-sized solid shell for horizontal scroll — bg is a separate layer so overflow can stay
|
|
162
|
+
* visible. `py-1` (4px) matches the non-scrolling track's `p-1` exactly, so both the scrollable
|
|
163
|
+
* and non-scrollable solid paths land on the same 40px whole-tablist height (32px tab + 4px top
|
|
164
|
+
* + 4px bottom). `h-10`/`max-h-10`/`min-h-10` pin it explicitly so a taller-than-expected label
|
|
165
|
+
* line-height can't inflate the shell. `INDICATOR_BLEED_VERTICAL` (the ScrollView's own top/bottom
|
|
166
|
+
* reserved ink room, above) is kept equal to this `py-1` so the shell's `overflow: hidden` clip
|
|
167
|
+
* boundary lines up with where that reserved ink stops.
|
|
168
|
+
*/
|
|
169
|
+
export const tabsListSolidShellVariants = cva([
|
|
170
|
+
'relative min-w-0 w-full py-1 h-10 max-h-10 min-h-10',
|
|
171
|
+
]);
|
|
172
|
+
|
|
173
|
+
export const tabsListSolidShellBgVariants = cva(['absolute inset-0 bg-surface-secondary']);
|
|
174
|
+
|
|
175
|
+
export const tabsListScrollViewVariants = cva(['w-full max-w-full']);
|
|
176
|
+
|
|
177
|
+
export const tabsListScrollContainerVariants = cva(['relative min-w-0 w-full']);
|
|
178
|
+
|
|
179
|
+
// Outline: flex sibling beside the scroll viewport (outline scroll looks good this way).
|
|
180
|
+
export const tabsListScrollButtonVariants = cva([
|
|
181
|
+
'z-10 flex h-6 w-6 shrink-0 items-center justify-center self-center rounded-full',
|
|
182
|
+
TRANSITION_COLORS,
|
|
183
|
+
Platform.select({
|
|
184
|
+
default: 'data-[active=true]:bg-surface-secondary-active',
|
|
185
|
+
web: 'data-[hover=true]:bg-surface-secondary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active',
|
|
186
|
+
}),
|
|
187
|
+
]);
|
|
188
|
+
|
|
189
|
+
// Solid: tiny overlay on the edge fade — the scroll viewport stays full-width inside the shell so
|
|
190
|
+
// the track radius + gradient read as one continuous surface (no hard clip before the chevron).
|
|
191
|
+
export const tabsListSolidScrollButtonVariants = cva([
|
|
192
|
+
'h-5 w-3 items-center justify-center rounded-full',
|
|
193
|
+
TRANSITION_COLORS,
|
|
194
|
+
Platform.select({
|
|
195
|
+
default: 'data-[active=true]:bg-surface-secondary-active',
|
|
196
|
+
web: 'data-[hover=true]:bg-surface-secondary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active',
|
|
197
|
+
}),
|
|
198
|
+
]);
|
|
199
|
+
|
|
200
|
+
export const tabsListSolidScrollButtonSlotVariants = cva(
|
|
201
|
+
['pointer-events-none absolute inset-y-0 z-20 flex w-3 justify-center'],
|
|
202
|
+
{
|
|
203
|
+
variants: {
|
|
204
|
+
position: {
|
|
205
|
+
start: 'left-1',
|
|
206
|
+
end: 'right-1',
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
// Horizontal: `h-px border-b` (1px). Vertical: Divider-style `w-px bg-*` (no border — `border`
|
|
213
|
+
// on `w-px` doubles thickness to 2px). Gutter padding on the list keeps tabs off the rail.
|
|
214
|
+
export const tabsOutlineTrackVariants = cva(['absolute z-0'], {
|
|
215
|
+
variants: {
|
|
216
|
+
orientation: {
|
|
217
|
+
horizontal: 'bottom-0 left-0 right-0 h-px border-b border-stroke-secondary',
|
|
218
|
+
vertical: 'top-0 bottom-0 left-0 w-px h-full bg-stroke-secondary',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
defaultVariants: { orientation: 'horizontal' },
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
export const tabsIndicatorVariants = cva(['absolute'], {
|
|
225
|
+
variants: {
|
|
226
|
+
orientation: {
|
|
227
|
+
horizontal: '',
|
|
228
|
+
vertical: '',
|
|
229
|
+
},
|
|
230
|
+
variant: {
|
|
231
|
+
outline: 'bg-surface-action-strong',
|
|
232
|
+
solid: `${SOLID_RADIUS} bg-surface-primary shadow-sm`,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
compoundVariants: [
|
|
236
|
+
// Rail offset is in `tabsStyles.outlineIndicator*` (Reanimated host).
|
|
237
|
+
{
|
|
238
|
+
orientation: 'horizontal',
|
|
239
|
+
variant: 'outline',
|
|
240
|
+
className: 'left-0',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
orientation: 'vertical',
|
|
244
|
+
variant: 'outline',
|
|
245
|
+
className: 'top-0',
|
|
246
|
+
},
|
|
247
|
+
{ variant: 'solid', className: 'top-0 left-0' },
|
|
248
|
+
],
|
|
249
|
+
defaultVariants: { orientation: 'horizontal', variant: 'solid' },
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
export const tabsTabVariants = cva(
|
|
253
|
+
[
|
|
254
|
+
'relative z-10 items-center justify-center',
|
|
255
|
+
// `transition` (not `transition-colors`) — its default property list includes `box-shadow`,
|
|
256
|
+
// so the focus ring eases in over `TABS_INDICATOR_TRANSITION_MS` instead of snapping in
|
|
257
|
+
// ahead of the indicator, which glides over the same duration (see `index.tsx`).
|
|
258
|
+
'transition duration-150',
|
|
259
|
+
'data-[disabled=true]:opacity-[var(--opacity-disabled)]',
|
|
260
|
+
DISABLED_CURSOR,
|
|
261
|
+
Platform.select({
|
|
262
|
+
web: [
|
|
263
|
+
'outline-none',
|
|
264
|
+
'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-stroke-focus web:data-[focus-visible=true]:ring-offset-2',
|
|
265
|
+
].join(' '),
|
|
266
|
+
default: '',
|
|
267
|
+
}),
|
|
268
|
+
],
|
|
269
|
+
{
|
|
270
|
+
variants: {
|
|
271
|
+
orientation: {
|
|
272
|
+
horizontal: '',
|
|
273
|
+
vertical: '',
|
|
274
|
+
},
|
|
275
|
+
variant: {
|
|
276
|
+
outline: '',
|
|
277
|
+
solid: `${SOLID_RADIUS} overflow-hidden`,
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
compoundVariants: [
|
|
281
|
+
// `py-2` keeps horizontal outline tabs closer to the solid variant's compact 32px trigger
|
|
282
|
+
// height. The rail gap comes from the List's own `pb-1` compound variant (in
|
|
283
|
+
// `tabsListVariants`), not from this padding.
|
|
284
|
+
{ orientation: 'horizontal', variant: 'outline', className: 'px-4 py-2' },
|
|
285
|
+
{
|
|
286
|
+
orientation: 'vertical',
|
|
287
|
+
variant: 'outline',
|
|
288
|
+
// Leave room for 1px rail + 2px indicator on the left.
|
|
289
|
+
className: 'px-4 py-1 pl-4',
|
|
290
|
+
},
|
|
291
|
+
// Ring-offset color defaults to the page background, which doesn't match the solid
|
|
292
|
+
// track's `bg-surface-secondary` — override it so the offset gap blends with the track
|
|
293
|
+
// instead of showing as a mismatched patch next to the ring. Explicit `h-8` (32px, per
|
|
294
|
+
// Figma SegmentedControl) instead of vertical padding — a fixed height, combined with the
|
|
295
|
+
// base class's `items-center`, centers the label regardless of its line-height, and can't
|
|
296
|
+
// drift the way padding-derived sizing could.
|
|
297
|
+
{
|
|
298
|
+
variant: 'solid',
|
|
299
|
+
className: [
|
|
300
|
+
'h-8 max-h-8 min-h-8 px-4',
|
|
301
|
+
'web:data-[focus-visible=true]:ring-offset-surface-secondary',
|
|
302
|
+
].join(' '),
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
defaultVariants: { orientation: 'horizontal', variant: 'solid' },
|
|
306
|
+
},
|
|
307
|
+
);
|
|
308
|
+
|
|
309
|
+
export const tabsPanelVariants = cva(['data-[state=inactive]:hidden'], {
|
|
310
|
+
variants: {
|
|
311
|
+
orientation: {
|
|
312
|
+
horizontal: '',
|
|
313
|
+
vertical: 'flex-1',
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
defaultVariants: { orientation: 'horizontal' },
|
|
317
|
+
});
|
|
318
|
+
|
|
319
|
+
export const tabsTabLabelVariants = cva('body-md', {
|
|
320
|
+
variants: {
|
|
321
|
+
state: {
|
|
322
|
+
// Selection state is a CVA input (not a `data-[]` selector) so inactive/active
|
|
323
|
+
// typography reconciles on native — `data-[state=active]:` on `Text` is unreliable
|
|
324
|
+
// there, and `font-sans-medium` / `font-sans-semibold` are the same family on iOS/Android
|
|
325
|
+
// so weight must come from `font-medium` / `font-semibold` instead.
|
|
326
|
+
inactive: Platform.select({
|
|
327
|
+
web: 'font-sans-medium text-content-secondary',
|
|
328
|
+
default: 'font-medium text-content-secondary',
|
|
329
|
+
}),
|
|
330
|
+
active: Platform.select({
|
|
331
|
+
web: 'font-sans-semibold text-content-primary',
|
|
332
|
+
default: 'font-semibold text-content-primary',
|
|
333
|
+
}),
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
defaultVariants: { state: 'inactive' },
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
export type TabsTabVariantProps = VariantProps<typeof tabsTabVariants>;
|
|
340
|
+
export type TabsListTrackVariantProps = VariantProps<typeof tabsListTrackVariants>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cva, type VariantProps } from '
|
|
2
|
-
import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/
|
|
1
|
+
import { cva, type VariantProps } from '@cdx-ui/utils';
|
|
2
|
+
import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/constants';
|
|
3
3
|
|
|
4
4
|
export const textareaRootVariants = cva(
|
|
5
5
|
[
|
|
@@ -1,6 +1,6 @@
|
|
|
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
4
|
|
|
5
5
|
export const tileGroupVariants = cva(['flex w-full'], {
|
|
6
6
|
variants: {
|
|
@@ -299,6 +299,7 @@ export function useToastRootAnimation(
|
|
|
299
299
|
// animate smoothly.
|
|
300
300
|
const isWeb = Platform.OS === 'web';
|
|
301
301
|
|
|
302
|
+
// Explicit deps for Vite/web without the Reanimated Babel plugin.
|
|
302
303
|
const rContainerStyle = useAnimatedStyle(() => {
|
|
303
304
|
const lastToastId = Object.keys(heights.get())[Object.keys(heights.get()).length - 1];
|
|
304
305
|
const lastToastHeight = lastToastId ? heights.get()[lastToastId] : undefined;
|
|
@@ -368,7 +369,24 @@ export function useToastRootAnimation(
|
|
|
368
369
|
},
|
|
369
370
|
],
|
|
370
371
|
};
|
|
371
|
-
}
|
|
372
|
+
}, [
|
|
373
|
+
heights,
|
|
374
|
+
total,
|
|
375
|
+
index,
|
|
376
|
+
placement,
|
|
377
|
+
maxVisibleToasts,
|
|
378
|
+
opacityValue,
|
|
379
|
+
translateYValue,
|
|
380
|
+
scaleValue,
|
|
381
|
+
isDragging,
|
|
382
|
+
gestureTranslateY,
|
|
383
|
+
gestureScale,
|
|
384
|
+
isAnimationDisabledValue,
|
|
385
|
+
isWeb,
|
|
386
|
+
opacityTimingConfig,
|
|
387
|
+
translateYTimingConfig,
|
|
388
|
+
scaleTimingConfig,
|
|
389
|
+
]);
|
|
372
390
|
|
|
373
391
|
// Determine entering and exiting animations based on placement
|
|
374
392
|
const enteringAnimation = placement.startsWith('top') ? enteringTopValue : enteringBottomValue;
|
|
@@ -3,14 +3,14 @@ import type { StyleProp, ViewStyle } from 'react-native';
|
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
4
|
import { useResolveClassNames } from 'uniwind';
|
|
5
5
|
import type { ButtonProps } from '../Button';
|
|
6
|
-
import {
|
|
6
|
+
import { ToastColorInternal } from './types';
|
|
7
7
|
|
|
8
8
|
export function useButtonColor({
|
|
9
9
|
color,
|
|
10
10
|
toastColor,
|
|
11
11
|
}: {
|
|
12
12
|
color: ButtonProps['color'];
|
|
13
|
-
toastColor:
|
|
13
|
+
toastColor: ToastColorInternal;
|
|
14
14
|
}) {
|
|
15
15
|
// TODO: Add toastActionVariants to styles.ts to restore color-aware action styling
|
|
16
16
|
return useMemo(() => {
|
|
@@ -25,6 +25,7 @@ export function useButtonColor({
|
|
|
25
25
|
return 'warning';
|
|
26
26
|
case 'danger':
|
|
27
27
|
return 'danger';
|
|
28
|
+
case 'neutral':
|
|
28
29
|
default:
|
|
29
30
|
return 'action';
|
|
30
31
|
}
|
|
@@ -33,6 +33,7 @@ import type {
|
|
|
33
33
|
DefaultToastProps,
|
|
34
34
|
ToastActionProps,
|
|
35
35
|
ToastCloseProps,
|
|
36
|
+
ToastColorInternal,
|
|
36
37
|
ToastContextValue,
|
|
37
38
|
ToastDescriptionProps,
|
|
38
39
|
ToastIconProps,
|
|
@@ -48,6 +49,8 @@ const AnimatedToastRoot = Animated.createAnimatedComponent(ToastRootPrimitive);
|
|
|
48
49
|
|
|
49
50
|
const IS_WEB = Platform.OS === 'web';
|
|
50
51
|
|
|
52
|
+
let hasWarnedToastDefaultColor = false;
|
|
53
|
+
|
|
51
54
|
/**
|
|
52
55
|
* Fallback timeout for web exit transitions. Covers cases where
|
|
53
56
|
* `transitionend` never fires — `prefers-reduced-motion: reduce`
|
|
@@ -84,11 +87,25 @@ const ToastRoot = forwardRef<View, ToastProps>((props, ref) => {
|
|
|
84
87
|
/**
|
|
85
88
|
* Merge global config with local props, ensuring local props take precedence
|
|
86
89
|
*/
|
|
87
|
-
const
|
|
90
|
+
const resolvedColor = localColor ?? globalConfig?.color ?? 'neutral';
|
|
88
91
|
const placement = localPlacement ?? globalConfig?.placement ?? 'bottom';
|
|
89
92
|
const animation = localAnimation ?? globalConfig?.animation;
|
|
90
93
|
const isSwipeable = localIsSwipeable ?? globalConfig?.isSwipeable;
|
|
91
94
|
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
if (__DEV__ && resolvedColor === ('default' as string) && !hasWarnedToastDefaultColor) {
|
|
97
|
+
hasWarnedToastDefaultColor = true;
|
|
98
|
+
console.warn(
|
|
99
|
+
'[Toast] The `default` color is deprecated and will be removed in a future major release. Use `neutral` instead.',
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}, [resolvedColor]);
|
|
103
|
+
|
|
104
|
+
const color: NonNullable<ToastColorInternal> =
|
|
105
|
+
(resolvedColor as string) === 'default'
|
|
106
|
+
? 'neutral'
|
|
107
|
+
: (resolvedColor as NonNullable<ToastColorInternal>);
|
|
108
|
+
|
|
92
109
|
// Access id from props (id is omitted from ToastProps type but available at runtime)
|
|
93
110
|
const toastProps = props as ToastProps & Pick<ToastComponentProps, 'id'>;
|
|
94
111
|
const { id } = toastProps;
|
|
@@ -138,7 +155,7 @@ const ToastRoot = forwardRef<View, ToastProps>((props, ref) => {
|
|
|
138
155
|
|
|
139
156
|
const lifecycle = useToastLifecycle();
|
|
140
157
|
const isPendingRemoval = lifecycle?.pendingRemovalIds.has(id) ?? false;
|
|
141
|
-
const isFrontmost = lifecycle?.
|
|
158
|
+
const isFrontmost = lifecycle?.frontmostIds.has(id) ?? false;
|
|
142
159
|
|
|
143
160
|
const [localState, setLocalState] = useState<Exclude<ToastDataState, 'closed'>>('entering');
|
|
144
161
|
|
|
@@ -445,11 +462,25 @@ export function DefaultToast(props: DefaultToastProps) {
|
|
|
445
462
|
/**
|
|
446
463
|
* Merge global config with local props, ensuring local props take precedence
|
|
447
464
|
*/
|
|
448
|
-
const
|
|
465
|
+
const rawDefaultColor = localColor ?? globalConfig?.color ?? 'neutral';
|
|
449
466
|
const placement = localPlacement ?? globalConfig?.placement ?? 'bottom';
|
|
450
467
|
const isSwipeable = localIsSwipeable ?? globalConfig?.isSwipeable;
|
|
451
468
|
const animation = localAnimation ?? globalConfig?.animation;
|
|
452
469
|
|
|
470
|
+
useEffect(() => {
|
|
471
|
+
if (__DEV__ && rawDefaultColor === ('default' as string) && !hasWarnedToastDefaultColor) {
|
|
472
|
+
hasWarnedToastDefaultColor = true;
|
|
473
|
+
console.warn(
|
|
474
|
+
'[Toast] The `default` color is deprecated and will be removed in a future major release. Use `neutral` instead.',
|
|
475
|
+
);
|
|
476
|
+
}
|
|
477
|
+
}, [rawDefaultColor]);
|
|
478
|
+
|
|
479
|
+
const color: NonNullable<ToastColorInternal> =
|
|
480
|
+
(rawDefaultColor as string) === 'default'
|
|
481
|
+
? 'neutral'
|
|
482
|
+
: (rawDefaultColor as NonNullable<ToastColorInternal>);
|
|
483
|
+
|
|
453
484
|
const handleActionPress = () => {
|
|
454
485
|
if (onActionPress) {
|
|
455
486
|
onActionPress({ show, hide });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { cva, type VariantProps } from '
|
|
2
|
+
import { cva, type VariantProps } from '@cdx-ui/utils';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Toast root styles
|
|
@@ -46,7 +46,7 @@ export const toastRootVariants = cva(
|
|
|
46
46
|
{
|
|
47
47
|
variants: {
|
|
48
48
|
color: {
|
|
49
|
-
|
|
49
|
+
neutral: '',
|
|
50
50
|
info: '',
|
|
51
51
|
success: '',
|
|
52
52
|
warning: '',
|
|
@@ -54,7 +54,7 @@ export const toastRootVariants = cva(
|
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
defaultVariants: {
|
|
57
|
-
color: '
|
|
57
|
+
color: 'neutral',
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
);
|
|
@@ -135,7 +135,7 @@ export const toastWrapperVariants = cva(
|
|
|
135
135
|
export const toastLabelVariants = cva(['text-base font-sans-medium'], {
|
|
136
136
|
variants: {
|
|
137
137
|
color: {
|
|
138
|
-
|
|
138
|
+
neutral: 'text-content-primary',
|
|
139
139
|
info: 'text-content-info',
|
|
140
140
|
success: 'text-content-success',
|
|
141
141
|
warning: 'text-content-warning',
|
|
@@ -143,14 +143,14 @@ export const toastLabelVariants = cva(['text-base font-sans-medium'], {
|
|
|
143
143
|
},
|
|
144
144
|
},
|
|
145
145
|
defaultVariants: {
|
|
146
|
-
color: '
|
|
146
|
+
color: 'neutral',
|
|
147
147
|
},
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
export const toastDescriptionVariants = cva(['text-sm text-content-primary'], {
|
|
151
151
|
variants: {
|
|
152
152
|
color: {
|
|
153
|
-
|
|
153
|
+
neutral: 'text-content-primary',
|
|
154
154
|
info: 'text-content-info',
|
|
155
155
|
success: 'text-content-success',
|
|
156
156
|
warning: 'text-content-warning',
|
|
@@ -158,14 +158,14 @@ export const toastDescriptionVariants = cva(['text-sm text-content-primary'], {
|
|
|
158
158
|
},
|
|
159
159
|
},
|
|
160
160
|
defaultVariants: {
|
|
161
|
-
color: '
|
|
161
|
+
color: 'neutral',
|
|
162
162
|
},
|
|
163
163
|
});
|
|
164
164
|
|
|
165
165
|
export const toastIconVariants = cva(['size-5'], {
|
|
166
166
|
variants: {
|
|
167
167
|
color: {
|
|
168
|
-
|
|
168
|
+
neutral: 'text-content-primary',
|
|
169
169
|
info: 'text-content-info',
|
|
170
170
|
success: 'text-content-success',
|
|
171
171
|
warning: 'text-content-warning',
|
|
@@ -173,7 +173,7 @@ export const toastIconVariants = cva(['size-5'], {
|
|
|
173
173
|
},
|
|
174
174
|
},
|
|
175
175
|
defaultVariants: {
|
|
176
|
-
color: '
|
|
176
|
+
color: 'neutral',
|
|
177
177
|
},
|
|
178
178
|
});
|
|
179
179
|
|
|
@@ -10,9 +10,15 @@ import type { IconProps } from '../Icon';
|
|
|
10
10
|
import { ToastColorProps } from './styles';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Internal (normalized) toast color values used by CVA and context.
|
|
14
14
|
*/
|
|
15
|
-
export type
|
|
15
|
+
export type ToastColorInternal = ToastColorProps['color'];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Toast color types accepted by consumers.
|
|
19
|
+
* @remarks `'default'` is deprecated — use `'neutral'` instead.
|
|
20
|
+
*/
|
|
21
|
+
export type ToastColor = ToastColorInternal | 'default';
|
|
16
22
|
|
|
17
23
|
/**
|
|
18
24
|
* Toast placement types.
|
|
@@ -117,10 +123,10 @@ export type ToastRootAnimation = AnimationRoot<{
|
|
|
117
123
|
/**
|
|
118
124
|
* Props for the Toast.Root component
|
|
119
125
|
*/
|
|
120
|
-
export interface ToastProps extends ToastRootProps, Omit<ToastComponentProps, 'id'> {
|
|
126
|
+
export interface ToastProps extends ToastRootProps, Omit<ToastComponentProps, 'id' | 'placement'> {
|
|
121
127
|
/**
|
|
122
128
|
* Color of the toast
|
|
123
|
-
* @default '
|
|
129
|
+
* @default 'neutral'
|
|
124
130
|
*/
|
|
125
131
|
color?: ToastColor;
|
|
126
132
|
/**
|
|
@@ -246,9 +252,9 @@ export type ToastCloseProps = Omit<IconButtonProps, 'as'> & {
|
|
|
246
252
|
*/
|
|
247
253
|
export interface ToastContextValue {
|
|
248
254
|
/**
|
|
249
|
-
* Color of the toast
|
|
255
|
+
* Color of the toast (normalized — always uses the current value names)
|
|
250
256
|
*/
|
|
251
|
-
color?:
|
|
257
|
+
color?: ToastColorInternal;
|
|
252
258
|
/**
|
|
253
259
|
* Function to hide the toast
|
|
254
260
|
*/
|
|
@@ -285,10 +291,10 @@ export type UseToastRootAnimationOptions = Pick<
|
|
|
285
291
|
* Props for the DefaultToast component
|
|
286
292
|
* Used internally when showing toasts with string or config object (without component)
|
|
287
293
|
*/
|
|
288
|
-
export interface DefaultToastProps extends ToastComponentProps {
|
|
294
|
+
export interface DefaultToastProps extends Omit<ToastComponentProps, 'placement'> {
|
|
289
295
|
/**
|
|
290
296
|
* Color of the toast
|
|
291
|
-
* @default '
|
|
297
|
+
* @default 'neutral'
|
|
292
298
|
*/
|
|
293
299
|
color?: ToastProps['color'];
|
|
294
300
|
/**
|