@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,333 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.tabsTabVariants = exports.tabsTabLabelVariants = exports.tabsStyles = exports.tabsRootVariants = exports.tabsPanelVariants = exports.tabsOutlineTrackVariants = exports.tabsListVariants = exports.tabsListTrackVariants = exports.tabsListSolidShellVariants = exports.tabsListSolidShellBgVariants = exports.tabsListSolidScrollButtonVariants = exports.tabsListSolidScrollButtonSlotVariants = exports.tabsListScrollViewVariants = exports.tabsListScrollContainerVariants = exports.tabsListScrollButtonVariants = exports.tabsIndicatorVariants = exports.TABS_SOLID_SCROLL_FADE_SIZE = exports.TABS_SCROLL_FADE_SIZE = exports.TABS_INDICATOR_TRANSITION_MS = exports.OUTLINE_INDICATOR_THICKNESS = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _utils = require("@cdx-ui/utils");
|
|
9
|
+
var _constants = require("../../styles/constants");
|
|
10
|
+
// Kept local (rather than imported from `./index`) to avoid a circular import — `index.tsx`
|
|
11
|
+
// imports styles from this file.
|
|
12
|
+
|
|
13
|
+
// `rounded-full` is used for the indicator + individual tabs, which are small enough that a
|
|
14
|
+
// full capsule radius looks correct in both orientations.
|
|
15
|
+
const SOLID_RADIUS = 'rounded-full';
|
|
16
|
+
|
|
17
|
+
// `rounded-full` (`border-radius/round`, 9999px) for the indicator, tab capsules, and the
|
|
18
|
+
// horizontal solid track/shell — matches Figma SegmentedControl (always much wider than tall,
|
|
19
|
+
// so full rounding reads as a capsule). Applied via StyleSheet on the track/shell because
|
|
20
|
+
// arbitrary-value radius classes don't reliably resolve through Uniwind's scanner.
|
|
21
|
+
const SOLID_TRACK_RADIUS = 9999;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Vertical solid track radius — deliberately *not* `SOLID_TRACK_RADIUS` (9999px). A vertical
|
|
25
|
+
* track's box can end up nearly square (few short tab labels stacked in a column), and a
|
|
26
|
+
* fully-round radius on a near-square box renders as a circle/blob instead of a rounded rect.
|
|
27
|
+
* A fixed, modest radius avoids that regardless of how many tabs are stacked or how wide their
|
|
28
|
+
* labels are.
|
|
29
|
+
*/
|
|
30
|
+
const SOLID_VERTICAL_TRACK_RADIUS = 20;
|
|
31
|
+
|
|
32
|
+
/** Thickness of the 1px gray rail the outline indicator rides beside. */
|
|
33
|
+
const OUTLINE_TRACK_THICKNESS = 1;
|
|
34
|
+
/** Thickness of the 2px action-colored outline selection segment (animated size, not a class). */
|
|
35
|
+
const OUTLINE_INDICATOR_THICKNESS = exports.OUTLINE_INDICATOR_THICKNESS = 2;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Shared duration (ms) for the indicator's `withTiming` glide (`index.tsx`) and the tab's
|
|
39
|
+
* `duration-150` transition class (below) — kept in sync so the focus ring doesn't snap in
|
|
40
|
+
* ahead of a still-sliding solid/outline indicator. Change both together.
|
|
41
|
+
*/
|
|
42
|
+
const TABS_INDICATOR_TRANSITION_MS = exports.TABS_INDICATOR_TRANSITION_MS = 150;
|
|
43
|
+
|
|
44
|
+
/** Outline horizontal scroll — narrow fade reads cleanly against the page background. */
|
|
45
|
+
const TABS_SCROLL_FADE_SIZE = exports.TABS_SCROLL_FADE_SIZE = 32;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Solid horizontal scroll — wider fade so tabs dissolve smoothly into the track (and under the
|
|
49
|
+
* overlay chevron) instead of ending in a hard clip at the scroll viewport edge.
|
|
50
|
+
*/
|
|
51
|
+
const TABS_SOLID_SCROLL_FADE_SIZE = exports.TABS_SOLID_SCROLL_FADE_SIZE = 40;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Room reserved on the left/right sides inside the horizontal-scroll clip rect for ink that
|
|
55
|
+
* paints past a tab's own box: `shadow-sm` (`0px 1px 3px`, solid only) and the web focus ring
|
|
56
|
+
* (`ring-2` + `ring-offset-2`, ~4px, both variants). `overflow-x: auto` + `overflow-y: visible`
|
|
57
|
+
* does *not* achieve this — per the CSS Overflow spec, a non-`visible` value on one axis forces
|
|
58
|
+
* `visible` on the other axis to compute as `auto`, so it still clips. Applies to both variants —
|
|
59
|
+
* outline's ring bleeds past its box exactly the same way solid's does.
|
|
60
|
+
*/
|
|
61
|
+
/** Reserved ink room (focus ring, shadow) inside the horizontal-scroll clip rect — 4px (`p-1`). */
|
|
62
|
+
const INDICATOR_BLEED = 4;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Same bleed room as `INDICATOR_BLEED` on the top/bottom sides — kept equal to the solid shell's
|
|
66
|
+
* own `py-1` (below) so the shell's `overflow: hidden` clip boundary sits exactly where the
|
|
67
|
+
* reserved ink stops, with no gap and no clipping. Solid indicator = 32px, whole tablist = 40px
|
|
68
|
+
* per Figma SegmentedControl — a wider value here would inflate the shell past 40px.
|
|
69
|
+
*/
|
|
70
|
+
const INDICATOR_BLEED_VERTICAL = INDICATOR_BLEED;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Numeric styles that can't be expressed as static Uniwind utility classes — solid track radius
|
|
74
|
+
* and outline indicator offset (`bottom-px` / `left-px` don't apply on Reanimated host views).
|
|
75
|
+
*/
|
|
76
|
+
const tabsStyles = exports.tabsStyles = _reactNative.StyleSheet.create({
|
|
77
|
+
solidTrack: {
|
|
78
|
+
borderRadius: SOLID_TRACK_RADIUS
|
|
79
|
+
},
|
|
80
|
+
/** See `SOLID_VERTICAL_TRACK_RADIUS` — used instead of `solidTrack` for vertical solid tracks. */
|
|
81
|
+
solidTrackVertical: {
|
|
82
|
+
borderRadius: SOLID_VERTICAL_TRACK_RADIUS
|
|
83
|
+
},
|
|
84
|
+
/** Clips scroll ink + edge fades to the solid shell's rounded rect (className radius alone won't). */
|
|
85
|
+
solidShell: {
|
|
86
|
+
borderRadius: SOLID_TRACK_RADIUS,
|
|
87
|
+
overflow: 'hidden'
|
|
88
|
+
},
|
|
89
|
+
horizontalScrollContent: {
|
|
90
|
+
paddingHorizontal: INDICATOR_BLEED,
|
|
91
|
+
paddingVertical: INDICATOR_BLEED_VERTICAL
|
|
92
|
+
},
|
|
93
|
+
horizontalScrollViewBleed: {
|
|
94
|
+
marginVertical: -INDICATOR_BLEED_VERTICAL
|
|
95
|
+
},
|
|
96
|
+
outlineIndicator: {
|
|
97
|
+
zIndex: 1
|
|
98
|
+
},
|
|
99
|
+
outlineIndicatorHorizontal: {
|
|
100
|
+
bottom: OUTLINE_TRACK_THICKNESS
|
|
101
|
+
},
|
|
102
|
+
outlineIndicatorVertical: {
|
|
103
|
+
left: OUTLINE_TRACK_THICKNESS
|
|
104
|
+
},
|
|
105
|
+
solidIndicator: {
|
|
106
|
+
zIndex: 0
|
|
107
|
+
},
|
|
108
|
+
/** Clips press/hover feedback to the solid tab capsule (`rounded-full` alone is not enough on Pressable). */
|
|
109
|
+
solidTabPressable: {
|
|
110
|
+
borderRadius: 9999,
|
|
111
|
+
overflow: 'hidden'
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
const tabsRootVariants = exports.tabsRootVariants = (0, _utils.cva)([], {
|
|
115
|
+
variants: {
|
|
116
|
+
orientation: {
|
|
117
|
+
horizontal: 'flex-col',
|
|
118
|
+
vertical: 'flex-row items-start gap-4'
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
defaultVariants: {
|
|
122
|
+
orientation: 'horizontal'
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
const tabsListVariants = exports.tabsListVariants = (0, _utils.cva)(['relative min-w-0']);
|
|
126
|
+
|
|
127
|
+
/** Flex track that hosts the rail, indicator, and tab triggers. */
|
|
128
|
+
const tabsListTrackVariants = exports.tabsListTrackVariants = (0, _utils.cva)(['relative items-stretch'], {
|
|
129
|
+
variants: {
|
|
130
|
+
orientation: {
|
|
131
|
+
horizontal: 'flex-row',
|
|
132
|
+
vertical: 'flex-col'
|
|
133
|
+
},
|
|
134
|
+
variant: {
|
|
135
|
+
outline: '',
|
|
136
|
+
solid: 'gap-0.5'
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* When horizontal tabs scroll, the solid track background + radius live on
|
|
140
|
+
* `tabsListSolidShellVariants` (viewport-sized) so rounded corners aren't clipped
|
|
141
|
+
* by the ScrollView.
|
|
142
|
+
*/
|
|
143
|
+
scrollable: {
|
|
144
|
+
true: '',
|
|
145
|
+
false: ''
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
compoundVariants: [{
|
|
149
|
+
orientation: 'vertical',
|
|
150
|
+
variant: 'outline',
|
|
151
|
+
className: 'gap-2 pl-1'
|
|
152
|
+
}, {
|
|
153
|
+
orientation: 'horizontal',
|
|
154
|
+
variant: 'outline',
|
|
155
|
+
className: 'pb-1'
|
|
156
|
+
}, {
|
|
157
|
+
variant: 'solid',
|
|
158
|
+
scrollable: false,
|
|
159
|
+
className: 'bg-surface-secondary p-1'
|
|
160
|
+
},
|
|
161
|
+
// Whole tablist = 40px per Figma SegmentedControl (`p-1` + 32px tab, above). Height-only —
|
|
162
|
+
// vertical solid lists size to their stacked tab content instead.
|
|
163
|
+
{
|
|
164
|
+
orientation: 'horizontal',
|
|
165
|
+
variant: 'solid',
|
|
166
|
+
scrollable: false,
|
|
167
|
+
className: 'h-10 max-h-10 min-h-10'
|
|
168
|
+
}],
|
|
169
|
+
defaultVariants: {
|
|
170
|
+
orientation: 'horizontal',
|
|
171
|
+
variant: 'solid',
|
|
172
|
+
scrollable: false
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Viewport-sized solid shell for horizontal scroll — bg is a separate layer so overflow can stay
|
|
178
|
+
* visible. `py-1` (4px) matches the non-scrolling track's `p-1` exactly, so both the scrollable
|
|
179
|
+
* and non-scrollable solid paths land on the same 40px whole-tablist height (32px tab + 4px top
|
|
180
|
+
* + 4px bottom). `h-10`/`max-h-10`/`min-h-10` pin it explicitly so a taller-than-expected label
|
|
181
|
+
* line-height can't inflate the shell. `INDICATOR_BLEED_VERTICAL` (the ScrollView's own top/bottom
|
|
182
|
+
* reserved ink room, above) is kept equal to this `py-1` so the shell's `overflow: hidden` clip
|
|
183
|
+
* boundary lines up with where that reserved ink stops.
|
|
184
|
+
*/
|
|
185
|
+
const tabsListSolidShellVariants = exports.tabsListSolidShellVariants = (0, _utils.cva)(['relative min-w-0 w-full py-1 h-10 max-h-10 min-h-10']);
|
|
186
|
+
const tabsListSolidShellBgVariants = exports.tabsListSolidShellBgVariants = (0, _utils.cva)(['absolute inset-0 bg-surface-secondary']);
|
|
187
|
+
const tabsListScrollViewVariants = exports.tabsListScrollViewVariants = (0, _utils.cva)(['w-full max-w-full']);
|
|
188
|
+
const tabsListScrollContainerVariants = exports.tabsListScrollContainerVariants = (0, _utils.cva)(['relative min-w-0 w-full']);
|
|
189
|
+
|
|
190
|
+
// Outline: flex sibling beside the scroll viewport (outline scroll looks good this way).
|
|
191
|
+
const tabsListScrollButtonVariants = exports.tabsListScrollButtonVariants = (0, _utils.cva)(['z-10 flex h-6 w-6 shrink-0 items-center justify-center self-center rounded-full', _constants.TRANSITION_COLORS, _reactNative.Platform.select({
|
|
192
|
+
default: 'data-[active=true]:bg-surface-secondary-active',
|
|
193
|
+
web: 'data-[hover=true]:bg-surface-secondary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active'
|
|
194
|
+
})]);
|
|
195
|
+
|
|
196
|
+
// Solid: tiny overlay on the edge fade — the scroll viewport stays full-width inside the shell so
|
|
197
|
+
// the track radius + gradient read as one continuous surface (no hard clip before the chevron).
|
|
198
|
+
const tabsListSolidScrollButtonVariants = exports.tabsListSolidScrollButtonVariants = (0, _utils.cva)(['h-5 w-3 items-center justify-center rounded-full', _constants.TRANSITION_COLORS, _reactNative.Platform.select({
|
|
199
|
+
default: 'data-[active=true]:bg-surface-secondary-active',
|
|
200
|
+
web: 'data-[hover=true]:bg-surface-secondary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active'
|
|
201
|
+
})]);
|
|
202
|
+
const tabsListSolidScrollButtonSlotVariants = exports.tabsListSolidScrollButtonSlotVariants = (0, _utils.cva)(['pointer-events-none absolute inset-y-0 z-20 flex w-3 justify-center'], {
|
|
203
|
+
variants: {
|
|
204
|
+
position: {
|
|
205
|
+
start: 'left-1',
|
|
206
|
+
end: 'right-1'
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
// Horizontal: `h-px border-b` (1px). Vertical: Divider-style `w-px bg-*` (no border — `border`
|
|
212
|
+
// on `w-px` doubles thickness to 2px). Gutter padding on the list keeps tabs off the rail.
|
|
213
|
+
const tabsOutlineTrackVariants = exports.tabsOutlineTrackVariants = (0, _utils.cva)(['absolute z-0'], {
|
|
214
|
+
variants: {
|
|
215
|
+
orientation: {
|
|
216
|
+
horizontal: 'bottom-0 left-0 right-0 h-px border-b border-stroke-secondary',
|
|
217
|
+
vertical: 'top-0 bottom-0 left-0 w-px h-full bg-stroke-secondary'
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
defaultVariants: {
|
|
221
|
+
orientation: 'horizontal'
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
const tabsIndicatorVariants = exports.tabsIndicatorVariants = (0, _utils.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
|
+
orientation: 'vertical',
|
|
243
|
+
variant: 'outline',
|
|
244
|
+
className: 'top-0'
|
|
245
|
+
}, {
|
|
246
|
+
variant: 'solid',
|
|
247
|
+
className: 'top-0 left-0'
|
|
248
|
+
}],
|
|
249
|
+
defaultVariants: {
|
|
250
|
+
orientation: 'horizontal',
|
|
251
|
+
variant: 'solid'
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
const tabsTabVariants = exports.tabsTabVariants = (0, _utils.cva)(['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', 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _constants.DISABLED_CURSOR, _reactNative.Platform.select({
|
|
259
|
+
web: ['outline-none', 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-stroke-focus web:data-[focus-visible=true]:ring-offset-2'].join(' '),
|
|
260
|
+
default: ''
|
|
261
|
+
})], {
|
|
262
|
+
variants: {
|
|
263
|
+
orientation: {
|
|
264
|
+
horizontal: '',
|
|
265
|
+
vertical: ''
|
|
266
|
+
},
|
|
267
|
+
variant: {
|
|
268
|
+
outline: '',
|
|
269
|
+
solid: `${SOLID_RADIUS} overflow-hidden`
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
compoundVariants: [
|
|
273
|
+
// `py-2` keeps horizontal outline tabs closer to the solid variant's compact 32px trigger
|
|
274
|
+
// height. The rail gap comes from the List's own `pb-1` compound variant (in
|
|
275
|
+
// `tabsListVariants`), not from this padding.
|
|
276
|
+
{
|
|
277
|
+
orientation: 'horizontal',
|
|
278
|
+
variant: 'outline',
|
|
279
|
+
className: 'px-4 py-2'
|
|
280
|
+
}, {
|
|
281
|
+
orientation: 'vertical',
|
|
282
|
+
variant: 'outline',
|
|
283
|
+
// Leave room for 1px rail + 2px indicator on the left.
|
|
284
|
+
className: 'px-4 py-1 pl-4'
|
|
285
|
+
},
|
|
286
|
+
// Ring-offset color defaults to the page background, which doesn't match the solid
|
|
287
|
+
// track's `bg-surface-secondary` — override it so the offset gap blends with the track
|
|
288
|
+
// instead of showing as a mismatched patch next to the ring. Explicit `h-8` (32px, per
|
|
289
|
+
// Figma SegmentedControl) instead of vertical padding — a fixed height, combined with the
|
|
290
|
+
// base class's `items-center`, centers the label regardless of its line-height, and can't
|
|
291
|
+
// drift the way padding-derived sizing could.
|
|
292
|
+
{
|
|
293
|
+
variant: 'solid',
|
|
294
|
+
className: ['h-8 max-h-8 min-h-8 px-4', 'web:data-[focus-visible=true]:ring-offset-surface-secondary'].join(' ')
|
|
295
|
+
}],
|
|
296
|
+
defaultVariants: {
|
|
297
|
+
orientation: 'horizontal',
|
|
298
|
+
variant: 'solid'
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
const tabsPanelVariants = exports.tabsPanelVariants = (0, _utils.cva)(['data-[state=inactive]:hidden'], {
|
|
302
|
+
variants: {
|
|
303
|
+
orientation: {
|
|
304
|
+
horizontal: '',
|
|
305
|
+
vertical: 'flex-1'
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
defaultVariants: {
|
|
309
|
+
orientation: 'horizontal'
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
const tabsTabLabelVariants = exports.tabsTabLabelVariants = (0, _utils.cva)('body-md', {
|
|
313
|
+
variants: {
|
|
314
|
+
state: {
|
|
315
|
+
// Selection state is a CVA input (not a `data-[]` selector) so inactive/active
|
|
316
|
+
// typography reconciles on native — `data-[state=active]:` on `Text` is unreliable
|
|
317
|
+
// there, and `font-sans-medium` / `font-sans-semibold` are the same family on iOS/Android
|
|
318
|
+
// so weight must come from `font-medium` / `font-semibold` instead.
|
|
319
|
+
inactive: _reactNative.Platform.select({
|
|
320
|
+
web: 'font-sans-medium text-content-secondary',
|
|
321
|
+
default: 'font-medium text-content-secondary'
|
|
322
|
+
}),
|
|
323
|
+
active: _reactNative.Platform.select({
|
|
324
|
+
web: 'font-sans-semibold text-content-primary',
|
|
325
|
+
default: 'font-semibold text-content-primary'
|
|
326
|
+
})
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
defaultVariants: {
|
|
330
|
+
state: 'inactive'
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_utils","_constants","SOLID_RADIUS","SOLID_TRACK_RADIUS","SOLID_VERTICAL_TRACK_RADIUS","OUTLINE_TRACK_THICKNESS","OUTLINE_INDICATOR_THICKNESS","exports","TABS_INDICATOR_TRANSITION_MS","TABS_SCROLL_FADE_SIZE","TABS_SOLID_SCROLL_FADE_SIZE","INDICATOR_BLEED","INDICATOR_BLEED_VERTICAL","tabsStyles","StyleSheet","create","solidTrack","borderRadius","solidTrackVertical","solidShell","overflow","horizontalScrollContent","paddingHorizontal","paddingVertical","horizontalScrollViewBleed","marginVertical","outlineIndicator","zIndex","outlineIndicatorHorizontal","bottom","outlineIndicatorVertical","left","solidIndicator","solidTabPressable","tabsRootVariants","cva","variants","orientation","horizontal","vertical","defaultVariants","tabsListVariants","tabsListTrackVariants","variant","outline","solid","scrollable","true","false","compoundVariants","className","tabsListSolidShellVariants","tabsListSolidShellBgVariants","tabsListScrollViewVariants","tabsListScrollContainerVariants","tabsListScrollButtonVariants","TRANSITION_COLORS","Platform","select","default","web","tabsListSolidScrollButtonVariants","tabsListSolidScrollButtonSlotVariants","position","start","end","tabsOutlineTrackVariants","tabsIndicatorVariants","tabsTabVariants","DISABLED_CURSOR","join","tabsPanelVariants","tabsTabLabelVariants","state","inactive","active"],"sourceRoot":"../../../../src","sources":["components/Tabs/styles.ts"],"mappings":";;;;;;AAAA,IAA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MACA;MACAC,QAAQ,EAAEjB,qBAAQ,CAACC,MAAM,CAAC;QACxBE,GAAG,EAAE,yCAAyC;QAC9CD,OAAO,EAAE;MACX,CAAC,CAAC;MACFgB,MAAM,EAAElB,qBAAQ,CAACC,MAAM,CAAC;QACtBE,GAAG,EAAE,yCAAyC;QAC9CD,OAAO,EAAE;MACX,CAAC;IACH;EACF,CAAC;EACDnB,eAAe,EAAE;IAAEiC,KAAK,EAAE;EAAW;AACvC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.textStyle = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var
|
|
9
|
-
const textStyle = exports.textStyle = (0,
|
|
8
|
+
var _utils = require("@cdx-ui/utils");
|
|
9
|
+
const textStyle = exports.textStyle = (0, _utils.cva)(['text-content-primary', _reactNative.Platform.select({
|
|
10
10
|
web: 'font-body my-0 bg-transparent no-underline',
|
|
11
11
|
default: ''
|
|
12
12
|
})], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_utils","textStyle","exports","cva","Platform","select","web","default","variants","size","xl","lg","md","sm","xs"],"sourceRoot":"../../../../src","sources":["components/Text/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,IAAAE,UAAG,EAC1B,CACE,sBAAsB,EACtBC,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,4CAA4C;EACjDC,OAAO,EAAE;AACX,CAAC,CAAC,CACH,EACD;EACEC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE;IACN;EACF;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.textareaRootVariants = exports.textareaFieldVariants = exports.textareaFieldPlaceholderVariants = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
const textareaRootVariants = exports.textareaRootVariants = (0,
|
|
7
|
+
var _utils = require("@cdx-ui/utils");
|
|
8
|
+
var _constants = require("../../styles/constants");
|
|
9
|
+
const textareaRootVariants = exports.textareaRootVariants = (0, _utils.cva)([
|
|
10
10
|
// Multiline shell: stretch the field to full width and let the shell grow with it
|
|
11
11
|
// (no fixed height, no overflow-hidden so a web resize handle is never clipped).
|
|
12
|
-
'w-full flex-row items-stretch', 'bg-surface-primary', 'border-solid border-stroke-primary', 'web:border-default native:border-[length:var(--border-width-default)]', 'rounded-[var(--border-radius-default)]',
|
|
12
|
+
'w-full flex-row items-stretch', 'bg-surface-primary', 'border-solid border-stroke-primary', 'web:border-default native:border-[length:var(--border-width-default)]', 'rounded-[var(--border-radius-default)]', _constants.TRANSITION_COLORS, 'data-[disabled=true]:bg-surface-secondary', 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _constants.DISABLED_CURSOR, 'data-[readonly=true]:cursor-default', 'data-[readonly=true]:bg-surface-secondary', 'web:data-[hover=true]:data-[focus=false]:data-[invalid=false]:border-stroke-hover',
|
|
13
13
|
// Web: inset ring avoids a border-width change so the shell never shifts on focus.
|
|
14
14
|
// Recolor the border to match the ring so the two read as a single focus outline
|
|
15
15
|
// instead of a gray border + colored ring.
|
|
@@ -31,7 +31,7 @@ const textareaRootVariants = exports.textareaRootVariants = (0, _classVarianceAu
|
|
|
31
31
|
size: 'default'
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
const textareaFieldVariants = exports.textareaFieldVariants = (0,
|
|
34
|
+
const textareaFieldVariants = exports.textareaFieldVariants = (0, _utils.cva)([
|
|
35
35
|
// `min-w-0` lets the field shrink below its intrinsic content width so the shell
|
|
36
36
|
// never overflows (mirrors the Input field rationale).
|
|
37
37
|
'flex-1 min-w-0 bg-transparent p-0', 'text-content-primary', 'placeholder:text-content-tertiary', 'web:outline-none', 'tracking-normal'], {
|
|
@@ -45,5 +45,5 @@ const textareaFieldVariants = exports.textareaFieldVariants = (0, _classVariance
|
|
|
45
45
|
size: 'default'
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
const textareaFieldPlaceholderVariants = exports.textareaFieldPlaceholderVariants = (0,
|
|
48
|
+
const textareaFieldPlaceholderVariants = exports.textareaFieldPlaceholderVariants = (0, _utils.cva)(['accent-content-tertiary']);
|
|
49
49
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_utils","require","_constants","textareaRootVariants","exports","cva","TRANSITION_COLORS","DISABLED_CURSOR","variants","variant","outline","size","default","small","defaultVariants","textareaFieldVariants","textareaFieldPlaceholderVariants"],"sourceRoot":"../../../../src","sources":["components/Textarea/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEO,MAAME,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG,IAAAE,UAAG,EACrC;AACE;AACA;AACA,+BAA+B,EAC/B,oBAAoB,EACpB,oCAAoC,EACpC,uEAAuE,EACvE,wCAAwC,EACxCC,4BAAiB,EACjB,2CAA2C,EAC3C,wDAAwD,EACxDC,0BAAe,EACf,qCAAqC,EACrC,2CAA2C,EAC3C,mFAAmF;AACnF;AACA;AACA;AACA,kCAAkC,EAClC,iEAAiE,EACjE,+DAA+D,EAC/D,iEAAiE,EACjE,8DAA8D,EAC9D,gEAAgE;AAChE;AACA;AACA,sEAAsE,EACtE,wDAAwD,EACxD,gEAAgE,EAChE,0CAA0C,CAC3C,EACD;EACEC,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,OAAO,EAAE;IACX,CAAC;IACDC,IAAI,EAAE;MACJC,OAAO,EAAE,CACP,iBAAiB,EACjB,wEAAwE,EACxE,wEAAwE,CACzE;MACDC,KAAK,EAAE,CACL,mBAAmB,EACnB,wEAAwE,EACxE,wEAAwE;IAE5E;EACF,CAAC;EACDC,eAAe,EAAE;IACfL,OAAO,EAAE,SAAS;IAClBE,IAAI,EAAE;EACR;AACF,CACF,CAAC;AAEM,MAAMI,qBAAqB,GAAAX,OAAA,CAAAW,qBAAA,GAAG,IAAAV,UAAG,EACtC;AACE;AACA;AACA,mCAAmC,EACnC,sBAAsB,EACtB,mCAAmC,EACnC,kBAAkB,EAClB,iBAAiB,CAClB,EACD;EACEG,QAAQ,EAAE;IACRG,IAAI,EAAE;MACJC,OAAO,EAAE,iBAAiB;MAC1BC,KAAK,EAAE;IACT;EACF,CAAC;EACDC,eAAe,EAAE;IACfH,IAAI,EAAE;EACR;AACF,CACF,CAAC;AAEM,MAAMK,gCAAgC,GAAAZ,OAAA,CAAAY,gCAAA,GAAG,IAAAX,UAAG,EAAC,CAAC,yBAAyB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.tileTrailingSlotVariants = exports.tileTitleVariants = exports.tileRootVariants = exports.tileLeadingSlotVariants = exports.tileIndicatorVariants = exports.tileGroupVariants = exports.tileDescriptionVariants = exports.tileContentVariants = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
const tileGroupVariants = exports.tileGroupVariants = (0,
|
|
8
|
+
var _utils = require("@cdx-ui/utils");
|
|
9
|
+
var _constants = require("../../styles/constants");
|
|
10
|
+
const tileGroupVariants = exports.tileGroupVariants = (0, _utils.cva)(['flex w-full'], {
|
|
11
11
|
variants: {
|
|
12
12
|
direction: {
|
|
13
13
|
column: 'flex-col',
|
|
@@ -23,7 +23,7 @@ const tileGroupVariants = exports.tileGroupVariants = (0, _classVarianceAuthorit
|
|
|
23
23
|
spacing: 'default'
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
const tileRootVariants = exports.tileRootVariants = (0,
|
|
26
|
+
const tileRootVariants = exports.tileRootVariants = (0, _utils.cva)(['flex-row self-stretch gap-3 px-4 py-3', 'data-[disabled=true]:opacity-50', _constants.TRANSITION_COLORS, _reactNative.Platform.select({
|
|
27
27
|
web: ['outline-none', 'data-[hover=true]:data-[disabled=false]:bg-surface-action-tint-hover', 'data-[active=true]:data-[disabled=false]:data-[hover=true]:bg-surface-action-tint-active', 'data-[hover=true]:data-[disabled=false]:data-[state=unselected]:border-stroke-action', 'focus-visible:data-[disabled=false]:ring-2 focus-visible:data-[disabled=false]:ring-stroke-focus focus-visible:data-[disabled=false]:ring-offset-2'].join(' '),
|
|
28
28
|
default: ['data-[active=true]:bg-surface-action-tint-hover', 'data-[active=true]:border-stroke-action'].join(' ')
|
|
29
29
|
})], {
|
|
@@ -43,10 +43,10 @@ const tileRootVariants = exports.tileRootVariants = (0, _classVarianceAuthority.
|
|
|
43
43
|
showSeparator: false
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
const tileLeadingSlotVariants = exports.tileLeadingSlotVariants = (0,
|
|
47
|
-
const tileTrailingSlotVariants = exports.tileTrailingSlotVariants = (0,
|
|
48
|
-
const tileContentVariants = exports.tileContentVariants = (0,
|
|
49
|
-
const tileTitleVariants = exports.tileTitleVariants = (0,
|
|
50
|
-
const tileDescriptionVariants = exports.tileDescriptionVariants = (0,
|
|
51
|
-
const tileIndicatorVariants = exports.tileIndicatorVariants = (0,
|
|
46
|
+
const tileLeadingSlotVariants = exports.tileLeadingSlotVariants = (0, _utils.cva)(['flex shrink-0 items-center justify-center']);
|
|
47
|
+
const tileTrailingSlotVariants = exports.tileTrailingSlotVariants = (0, _utils.cva)(['flex shrink-0 items-center justify-center']);
|
|
48
|
+
const tileContentVariants = exports.tileContentVariants = (0, _utils.cva)(['min-w-0 flex-1 flex-col gap-0.5 no-underline']);
|
|
49
|
+
const tileTitleVariants = exports.tileTitleVariants = (0, _utils.cva)(['text-base font-medium text-content-primary no-underline']);
|
|
50
|
+
const tileDescriptionVariants = exports.tileDescriptionVariants = (0, _utils.cva)(['text-sm text-content-secondary no-underline']);
|
|
51
|
+
const tileIndicatorVariants = exports.tileIndicatorVariants = (0, _utils.cva)(['flex shrink-0 items-center justify-center']);
|
|
52
52
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_utils","_constants","tileGroupVariants","exports","cva","variants","direction","column","row","spacing","default","none","defaultVariants","tileRootVariants","TRANSITION_COLORS","Platform","select","web","join","shape","flat","card","showSeparator","true","false","tileLeadingSlotVariants","tileTrailingSlotVariants","tileContentVariants","tileTitleVariants","tileDescriptionVariants","tileIndicatorVariants"],"sourceRoot":"../../../../src","sources":["components/Tile/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEO,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,UAAG,EAAC,CAAC,aAAa,CAAC,EAAE;EACpDC,QAAQ,EAAE;IACRC,SAAS,EAAE;MACTC,MAAM,EAAE,UAAU;MAClBC,GAAG,EAAE;IACP,CAAC;IACDC,OAAO,EAAE;MACPC,OAAO,EAAE,OAAO;MAChBC,IAAI,EAAE;IACR;EACF,CAAC;EACDC,eAAe,EAAE;IACfN,SAAS,EAAE,QAAQ;IACnBG,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAIK,MAAMI,gBAAgB,GAAAV,OAAA,CAAAU,gBAAA,GAAG,IAAAT,UAAG,EAC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CAAC,CAAC;AAEpF,MAAM0B,qBAAqB,GAAA3B,OAAA,CAAA2B,qBAAA,GAAG,IAAA1B,UAAG,EAAC,CAAC,2CAA2C,CAAC,CAAC","ignoreList":[]}
|
|
@@ -259,6 +259,8 @@ function useToastRootAnimation(options) {
|
|
|
259
259
|
// blink that the review flagged. Native keeps the spring so stack-height changes
|
|
260
260
|
// animate smoothly.
|
|
261
261
|
const isWeb = _reactNative.Platform.OS === 'web';
|
|
262
|
+
|
|
263
|
+
// Explicit deps for Vite/web without the Reanimated Babel plugin.
|
|
262
264
|
const rContainerStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
263
265
|
const lastToastId = Object.keys(heights.get())[Object.keys(heights.get()).length - 1];
|
|
264
266
|
const lastToastHeight = lastToastId ? heights.get()[lastToastId] : undefined;
|
|
@@ -310,7 +312,7 @@ function useToastRootAnimation(options) {
|
|
|
310
312
|
scale: isDragging.get() ? (0, _reactNativeReanimated.withSpring)(scale) : (0, _reactNativeReanimated.withTiming)(scale, scaleTimingConfig)
|
|
311
313
|
}]
|
|
312
314
|
};
|
|
313
|
-
});
|
|
315
|
+
}, [heights, total, index, placement, maxVisibleToasts, opacityValue, translateYValue, scaleValue, isDragging, gestureTranslateY, gestureScale, isAnimationDisabledValue, isWeb, opacityTimingConfig, translateYTimingConfig, scaleTimingConfig]);
|
|
314
316
|
|
|
315
317
|
// Determine entering and exiting animations based on placement
|
|
316
318
|
const enteringAnimation = placement.startsWith('top') ? enteringTopValue : enteringBottomValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_reactNativeGestureHandler","_reactNativeReanimated","_reactNativeWorklets","_animation","enteringTop","exports","FadeInUp","springify","withInitialValues","opacity","transform","translateY","mass","exitingTop","Keyframe","scale","easing","Easing","bezier","duration","enteringBottom","FadeInDown","exitingBottom","useToastRootAnimation","options","animation","index","total","heights","placement","hide","id","isSwipeable","maxVisibleToasts","height","screenHeight","useWindowDimensions","animationConfig","isAnimationDisabled","getRootAnimationState","isAllAnimationsDisabled","useCombinedAnimationDisabledState","isAnimationDisabledValue","getIsAnimationDisabledValue","enteringTopValue","getAnimationValueProperty","animationValue","entering","property","defaultValue","enteringBottomValue","exitingTopValue","exiting","exitingBottomValue","opacityValue","opacityTimingConfig","getAnimationValueMergedConfig","translateYValue","translateYTimingConfig","scaleValue","scaleTimingConfig","isDragging","useSharedValue","gestureTranslateY","gestureScale","delayedHide","toastId","velocity","velocityBasedTimeout","Math","min","abs","setTimeout","panGesture","Gesture","Pan","enabled","onBegin","set","onChange","event","get","translationY","maxDragDistance","rubberEffectDistance","startsWith","rubberTranslateY","interpolate","Extrapolation","CLAMP","onFinalize","velocityY","dismissThreshold","velocityThreshold","shouldDismiss","withDecay","clamp","Number","NEGATIVE_INFINITY","scheduleOnRN","withSpring","POSITIVE_INFINITY","isWeb","Platform","OS","rContainerStyle","useAnimatedStyle","lastToastId","Object","keys","length","lastToastHeight","undefined","sign","totalValue","inputRange","opacityInputRange","extrapolateLeft","pointerEvents","damping","stiffness","withTiming","enteringAnimation","exitingAnimation"],"sourceRoot":"../../../../src","sources":["components/Toast/animation.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAcA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AASA;;AAEO,MAAMK,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,+BAAQ,CAACC,SAAS,CAAC,CAAC,CAC5CC,iBAAiB,CAAC;EACjBC,OAAO,EAAE,CAAC;EACVC,SAAS,EAAE,CAAC;IAAEC,UAAU,EAAE,CAAC;EAAI,CAAC;AAClC,CAAC,CAAC,CACDC,IAAI,CAAC,CAAC,CAAC;AAEH,MAAMC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,IAAIC,+BAAQ,CAAC;EACrC,CAA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;UACEI;QACF,CAAC;MAEL,CAAC;IACH;IAEA,OAAO;MACLmB,MAAM,EAAEoE,KAAK,GACTU,SAAS,GACTD,eAAe,GACb,IAAAX,iCAAU,EAACW,eAAe,EAAE;QAC1BQ,OAAO,EAAE,GAAG;QACZC,SAAS,EAAE,IAAI;QACf5G,IAAI,EAAE;MACR,CAAC,CAAC,GACFoG,SAAS;MACfM,aAAa,EAAE7G,OAAO,KAAK,CAAC,GAAG,MAAM,GAAG,MAAM;MAC9CA,OAAO,EAAE,IAAAgH,iCAAU,EAAChH,OAAO,EAAE8C,mBAAmB,CAAC;MACjD7C,SAAS,EAAE,CACT;QACEC,UAAU,EAAEkD,UAAU,CAACoB,GAAG,CAAC,CAAC,GACxBtE,UAAU,GACV,IAAA8G,iCAAU,EAAC9G,UAAU,EAAE+C,sBAAsB;MACnD,CAAC,EACD;QACE3C,KAAK,EAAE8C,UAAU,CAACoB,GAAG,CAAC,CAAC,GAAG,IAAAmB,iCAAU,EAACrF,KAAK,CAAC,GAAG,IAAA0G,iCAAU,EAAC1G,KAAK,EAAE6C,iBAAiB;MACnF,CAAC;IAEL,CAAC;EACH,CAAC,CAAC;;EAEF;EACA,MAAM8D,iBAAiB,GAAG7F,SAAS,CAACwD,UAAU,CAAC,KAAK,CAAC,GAAGzC,gBAAgB,GAAGM,mBAAmB;EAC9F,MAAMyE,gBAAgB,GAAG9F,SAAS,CAACwD,UAAU,CAAC,KAAK,CAAC,GAAGlC,eAAe,GAAGE,kBAAkB;EAE3F,OAAO;IACLoD,eAAe;IACfjE,uBAAuB;IACvB;IACA;IACA;IACAO,QAAQ,EAAEL,wBAAwB,IAAI4D,KAAK,GAAGU,SAAS,GAAGU,iBAAiB;IAC3EtE,OAAO,EAAEV,wBAAwB,IAAI4D,KAAK,GAAGU,SAAS,GAAGW,gBAAgB;IACzElD;EACF,CAAC;AACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeGestureHandler","_reactNativeReanimated","_reactNativeWorklets","_animation","enteringTop","exports","FadeInUp","springify","withInitialValues","opacity","transform","translateY","mass","exitingTop","Keyframe","scale","easing","Easing","bezier","duration","enteringBottom","FadeInDown","exitingBottom","useToastRootAnimation","options","animation","index","total","heights","placement","hide","id","isSwipeable","maxVisibleToasts","height","screenHeight","useWindowDimensions","animationConfig","isAnimationDisabled","getRootAnimationState","isAllAnimationsDisabled","useCombinedAnimationDisabledState","isAnimationDisabledValue","getIsAnimationDisabledValue","enteringTopValue","getAnimationValueProperty","animationValue","entering","property","defaultValue","enteringBottomValue","exitingTopValue","exiting","exitingBottomValue","opacityValue","opacityTimingConfig","getAnimationValueMergedConfig","translateYValue","translateYTimingConfig","scaleValue","scaleTimingConfig","isDragging","useSharedValue","gestureTranslateY","gestureScale","delayedHide","toastId","velocity","velocityBasedTimeout","Math","min","abs","setTimeout","panGesture","Gesture","Pan","enabled","onBegin","set","onChange","event","get","translationY","maxDragDistance","rubberEffectDistance","startsWith","rubberTranslateY","interpolate","Extrapolation","CLAMP","onFinalize","velocityY","dismissThreshold","velocityThreshold","shouldDismiss","withDecay","clamp","Number","NEGATIVE_INFINITY","scheduleOnRN","withSpring","POSITIVE_INFINITY","isWeb","Platform","OS","rContainerStyle","useAnimatedStyle","lastToastId","Object","keys","length","lastToastHeight","undefined","sign","totalValue","inputRange","opacityInputRange","extrapolateLeft","pointerEvents","damping","stiffness","withTiming","enteringAnimation","exitingAnimation"],"sourceRoot":"../../../../src","sources":["components/Toast/animation.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAcA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AASA;;AAEO,MAAMK,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,+BAAQ,CAACC,SAAS,CAAC,CAAC,CAC5CC,iBAAiB,CAAC;EACjBC,OAAO,EA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C,GAAGzC,gBAAgB,GAAGM,mBAAmB;EAC9F,MAAMyE,gBAAgB,GAAG9F,SAAS,CAACwD,UAAU,CAAC,KAAK,CAAC,GAAGlC,eAAe,GAAGE,kBAAkB;EAE3F,OAAO;IACLoD,eAAe;IACfjE,uBAAuB;IACvB;IACA;IACA;IACAO,QAAQ,EAAEL,wBAAwB,IAAI4D,KAAK,GAAGU,SAAS,GAAGU,iBAAiB;IAC3EtE,OAAO,EAAEV,wBAAwB,IAAI4D,KAAK,GAAGU,SAAS,GAAGW,gBAAgB;IACzElD;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_uniwind","useButtonColor","color","toastColor","useMemo","useVerticalPlaceholderStyles","rootClassName","style","resolvedRootClassName","useResolveClassNames","resolvedStyle","StyleSheet","flatten","undefined","stylePaddingTop","paddingTop","paddingVertical","padding","stylePaddingBottom","paddingBottom","classNamePaddingTop","classNamePaddingBottom","paddingTopValue","paddingBottomValue","topHeight","bottomHeight","styleBackgroundColor","backgroundColor","classNameBackgroundColor","topStyle","height","bottomStyle"],"sourceRoot":"../../../../src","sources":["components/Toast/hooks.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAIO,SAASG,cAAcA,CAAC;EAC7BC,KAAK;EACLC;AAIF,CAAC,EAAE;EACD;EACA,OAAO,IAAAC,cAAO,EAAC,MAAM;IACnB,IAAIF,KAAK,EAAE,OAAOA,KAAK;IAEvB,QAAQC,UAAU;MAChB,KAAK,MAAM;QACT,OAAO,MAAM;MACf,KAAK,SAAS;QACZ,OAAO,SAAS;MAClB,KAAK,SAAS;QACZ,OAAO,SAAS;MAClB,KAAK,QAAQ;QACX,OAAO,QAAQ;MACjB;QACE,OAAO,QAAQ;IACnB;EACF,CAAC,EAAE,CAACA,UAAU,EAAED,KAAK,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AM,EAAEN;IACV,CAAC;IAED,MAAMO,WAAsB,GAAG;MAC7BD,MAAM,EAAEL;IACV,CAAC;IAED,IAAIE,eAAe,KAAKd,SAAS,EAAE;MACjCgB,QAAQ,CAACF,eAAe,GAAGA,eAAe;MAC1CI,WAAW,CAACJ,eAAe,GAAGA,eAAe;IAC/C;IAEA,OAAO;MACLE,QAAQ;MACRE;IACF,CAAC;EACH,CAAC,EAAE,CAACvB,qBAAqB,EAAED,KAAK,CAAC,CAAC;AACpC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_uniwind","useButtonColor","color","toastColor","useMemo","useVerticalPlaceholderStyles","rootClassName","style","resolvedRootClassName","useResolveClassNames","resolvedStyle","StyleSheet","flatten","undefined","stylePaddingTop","paddingTop","paddingVertical","padding","stylePaddingBottom","paddingBottom","classNamePaddingTop","classNamePaddingBottom","paddingTopValue","paddingBottomValue","topHeight","bottomHeight","styleBackgroundColor","backgroundColor","classNameBackgroundColor","topStyle","height","bottomStyle"],"sourceRoot":"../../../../src","sources":["components/Toast/hooks.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAIO,SAASG,cAAcA,CAAC;EAC7BC,KAAK;EACLC;AAIF,CAAC,EAAE;EACD;EACA,OAAO,IAAAC,cAAO,EAAC,MAAM;IACnB,IAAIF,KAAK,EAAE,OAAOA,KAAK;IAEvB,QAAQC,UAAU;MAChB,KAAK,MAAM;QACT,OAAO,MAAM;MACf,KAAK,SAAS;QACZ,OAAO,SAAS;MAClB,KAAK,SAAS;QACZ,OAAO,SAAS;MAClB,KAAK,QAAQ;QACX,OAAO,QAAQ;MACjB,KAAK,SAAS;MACd;QACE,OAAO,QAAQ;IACnB;EACF,CAAC,EAAE,CAACA,UAAU,EAAED,KAAK,CAAC,CAAC;AACzB;AAOO,SAASG,4BAA4BA,CAAC;EAC3CC,aA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AAM,EAAEL;IACV,CAAC;IAED,IAAIE,eAAe,KAAKd,SAAS,EAAE;MACjCgB,QAAQ,CAACF,eAAe,GAAGA,eAAe;MAC1CI,WAAW,CAACJ,eAAe,GAAGA,eAAe;IAC/C;IAEA,OAAO;MACLE,QAAQ;MACRE;IACF,CAAC;EACH,CAAC,EAAE,CAACvB,qBAAqB,EAAED,KAAK,CAAC,CAAC;AACpC","ignoreList":[]}
|
|
@@ -28,6 +28,7 @@ const SCOPE = 'TOAST';
|
|
|
28
28
|
const useToastStyleContext = () => (0, _utils.useStyleContext)(SCOPE);
|
|
29
29
|
const AnimatedToastRoot = _reactNativeReanimated.default.createAnimatedComponent(_primitives.ToastRoot);
|
|
30
30
|
const IS_WEB = _reactNative.Platform.OS === 'web';
|
|
31
|
+
let hasWarnedToastDefaultColor = false;
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* Fallback timeout for web exit transitions. Covers cases where
|
|
@@ -61,10 +62,17 @@ const ToastRoot = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
61
62
|
/**
|
|
62
63
|
* Merge global config with local props, ensuring local props take precedence
|
|
63
64
|
*/
|
|
64
|
-
const
|
|
65
|
+
const resolvedColor = localColor ?? globalConfig?.color ?? 'neutral';
|
|
65
66
|
const placement = localPlacement ?? globalConfig?.placement ?? 'bottom';
|
|
66
67
|
const animation = localAnimation ?? globalConfig?.animation;
|
|
67
68
|
const isSwipeable = localIsSwipeable ?? globalConfig?.isSwipeable;
|
|
69
|
+
(0, _react.useEffect)(() => {
|
|
70
|
+
if (__DEV__ && resolvedColor === 'default' && !hasWarnedToastDefaultColor) {
|
|
71
|
+
hasWarnedToastDefaultColor = true;
|
|
72
|
+
console.warn('[Toast] The `default` color is deprecated and will be removed in a future major release. Use `neutral` instead.');
|
|
73
|
+
}
|
|
74
|
+
}, [resolvedColor]);
|
|
75
|
+
const color = resolvedColor === 'default' ? 'neutral' : resolvedColor;
|
|
68
76
|
|
|
69
77
|
// Access id from props (id is omitted from ToastProps type but available at runtime)
|
|
70
78
|
const toastProps = props;
|
|
@@ -122,7 +130,7 @@ const ToastRoot = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
122
130
|
|
|
123
131
|
const lifecycle = (0, _lifecycle.useToastLifecycle)();
|
|
124
132
|
const isPendingRemoval = lifecycle?.pendingRemovalIds.has(id) ?? false;
|
|
125
|
-
const isFrontmost = lifecycle?.
|
|
133
|
+
const isFrontmost = lifecycle?.frontmostIds.has(id) ?? false;
|
|
126
134
|
const [localState, setLocalState] = (0, _react.useState)('entering');
|
|
127
135
|
(0, _react.useEffect)(() => {
|
|
128
136
|
if (!IS_WEB) return;
|
|
@@ -434,10 +442,17 @@ function DefaultToast(props) {
|
|
|
434
442
|
/**
|
|
435
443
|
* Merge global config with local props, ensuring local props take precedence
|
|
436
444
|
*/
|
|
437
|
-
const
|
|
445
|
+
const rawDefaultColor = localColor ?? globalConfig?.color ?? 'neutral';
|
|
438
446
|
const placement = localPlacement ?? globalConfig?.placement ?? 'bottom';
|
|
439
447
|
const isSwipeable = localIsSwipeable ?? globalConfig?.isSwipeable;
|
|
440
448
|
const animation = localAnimation ?? globalConfig?.animation;
|
|
449
|
+
(0, _react.useEffect)(() => {
|
|
450
|
+
if (__DEV__ && rawDefaultColor === 'default' && !hasWarnedToastDefaultColor) {
|
|
451
|
+
hasWarnedToastDefaultColor = true;
|
|
452
|
+
console.warn('[Toast] The `default` color is deprecated and will be removed in a future major release. Use `neutral` instead.');
|
|
453
|
+
}
|
|
454
|
+
}, [rawDefaultColor]);
|
|
455
|
+
const color = rawDefaultColor === 'default' ? 'neutral' : rawDefaultColor;
|
|
441
456
|
const handleActionPress = () => {
|
|
442
457
|
if (onActionPress) {
|
|
443
458
|
onActionPress({
|