@cdx-ui/components 0.0.1-beta.99 → 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,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useCallback, useId, useMemo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { Calendar as FlashCalendar } from '@marceloterreiro/flash-calendar';
|
|
6
|
+
import { dataAttributes, mergeDataAttributes, RangeCalendarRoot as RangeCalendarRootPrimitive, useRangeCalendarContext } from '@cdx-ui/primitives';
|
|
7
|
+
import { cn } from '@cdx-ui/utils';
|
|
8
|
+
import { CalendarMonthHeader } from '../Calendar/CalendarMonthHeader';
|
|
9
|
+
import { CalendarYearPickerGrid } from '../Calendar/CalendarYearPickerGrid';
|
|
10
|
+
import { FLASH_CALENDAR_DAY_HEIGHT, FLASH_CALENDAR_RANGE_DAY_SPACING, formatFlashCalendarWeekdayShort, toCalendarDateId, useFlashCalendarRangeTheme } from '../Calendar/flashCalendarAdapter';
|
|
11
|
+
import { calendarRootVariants } from '../Calendar/styles';
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
function RangeCalendarDefaultBody() {
|
|
14
|
+
const {
|
|
15
|
+
view
|
|
16
|
+
} = useRangeCalendarContext();
|
|
17
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
18
|
+
children: [/*#__PURE__*/_jsx(RangeCalendarHeader, {}), view === 'year' ? /*#__PURE__*/_jsx(RangeCalendarYearPicker, {}) : /*#__PURE__*/_jsx(RangeCalendarGrid, {})]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const RangeCalendarRoot = /*#__PURE__*/forwardRef(({
|
|
22
|
+
className,
|
|
23
|
+
children,
|
|
24
|
+
style,
|
|
25
|
+
...props
|
|
26
|
+
}, ref) => /*#__PURE__*/_jsx(RangeCalendarRootPrimitive, {
|
|
27
|
+
ref: ref,
|
|
28
|
+
className: cn(calendarRootVariants(), className),
|
|
29
|
+
style: style,
|
|
30
|
+
...props,
|
|
31
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
32
|
+
slot: 'range-calendar'
|
|
33
|
+
})),
|
|
34
|
+
children: children ?? /*#__PURE__*/_jsx(RangeCalendarDefaultBody, {})
|
|
35
|
+
}));
|
|
36
|
+
RangeCalendarRoot.displayName = 'RangeCalendar';
|
|
37
|
+
const RangeCalendarHeader = /*#__PURE__*/forwardRef(({
|
|
38
|
+
className,
|
|
39
|
+
style,
|
|
40
|
+
...props
|
|
41
|
+
}, ref) => {
|
|
42
|
+
const {
|
|
43
|
+
monthId,
|
|
44
|
+
onMonthIdChange,
|
|
45
|
+
disabled,
|
|
46
|
+
view,
|
|
47
|
+
setView,
|
|
48
|
+
locale,
|
|
49
|
+
labels
|
|
50
|
+
} = useRangeCalendarContext();
|
|
51
|
+
return /*#__PURE__*/_jsx(CalendarMonthHeader, {
|
|
52
|
+
ref: ref,
|
|
53
|
+
monthId: monthId,
|
|
54
|
+
onMonthIdChange: onMonthIdChange,
|
|
55
|
+
disabled: disabled,
|
|
56
|
+
view: view,
|
|
57
|
+
onViewChange: setView,
|
|
58
|
+
locale: locale,
|
|
59
|
+
labels: labels,
|
|
60
|
+
className: className,
|
|
61
|
+
style: style,
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
RangeCalendarHeader.displayName = 'RangeCalendar.Header';
|
|
66
|
+
const RangeCalendarYearPicker = /*#__PURE__*/forwardRef(({
|
|
67
|
+
className,
|
|
68
|
+
style,
|
|
69
|
+
...props
|
|
70
|
+
}, ref) => {
|
|
71
|
+
const {
|
|
72
|
+
monthId,
|
|
73
|
+
onMonthIdChange,
|
|
74
|
+
disabled,
|
|
75
|
+
setView,
|
|
76
|
+
labels
|
|
77
|
+
} = useRangeCalendarContext();
|
|
78
|
+
return /*#__PURE__*/_jsx(CalendarYearPickerGrid, {
|
|
79
|
+
ref: ref,
|
|
80
|
+
monthId: monthId,
|
|
81
|
+
onMonthIdChange: onMonthIdChange,
|
|
82
|
+
disabled: disabled,
|
|
83
|
+
onViewChange: setView,
|
|
84
|
+
labels: labels,
|
|
85
|
+
className: className,
|
|
86
|
+
style: style,
|
|
87
|
+
...props
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
RangeCalendarYearPicker.displayName = 'RangeCalendar.YearPicker';
|
|
91
|
+
const RangeCalendarGrid = /*#__PURE__*/forwardRef(({
|
|
92
|
+
className,
|
|
93
|
+
style,
|
|
94
|
+
...props
|
|
95
|
+
}, ref) => {
|
|
96
|
+
const {
|
|
97
|
+
startId,
|
|
98
|
+
endId,
|
|
99
|
+
monthId,
|
|
100
|
+
minValue,
|
|
101
|
+
maxValue,
|
|
102
|
+
disabled,
|
|
103
|
+
onDayPress,
|
|
104
|
+
locale
|
|
105
|
+
} = useRangeCalendarContext();
|
|
106
|
+
const instanceId = useId();
|
|
107
|
+
const theme = useFlashCalendarRangeTheme({
|
|
108
|
+
startId,
|
|
109
|
+
endId
|
|
110
|
+
});
|
|
111
|
+
const formatWeekday = useCallback(date => formatFlashCalendarWeekdayShort(date, locale), [locale]);
|
|
112
|
+
const activeRanges = useMemo(() => {
|
|
113
|
+
if (startId && endId) {
|
|
114
|
+
return [{
|
|
115
|
+
startId,
|
|
116
|
+
endId
|
|
117
|
+
}];
|
|
118
|
+
}
|
|
119
|
+
if (startId) {
|
|
120
|
+
return [{
|
|
121
|
+
startId,
|
|
122
|
+
endId: startId
|
|
123
|
+
}];
|
|
124
|
+
}
|
|
125
|
+
return [];
|
|
126
|
+
}, [endId, startId]);
|
|
127
|
+
const handleDayPress = useCallback(dateId => {
|
|
128
|
+
if (!disabled) {
|
|
129
|
+
onDayPress(toCalendarDateId(dateId));
|
|
130
|
+
}
|
|
131
|
+
}, [disabled, onDayPress]);
|
|
132
|
+
return /*#__PURE__*/_jsx(View, {
|
|
133
|
+
ref: ref,
|
|
134
|
+
className: className,
|
|
135
|
+
style: style,
|
|
136
|
+
...props,
|
|
137
|
+
children: /*#__PURE__*/_jsx(FlashCalendar, {
|
|
138
|
+
calendarInstanceId: instanceId,
|
|
139
|
+
calendarMonthId: monthId,
|
|
140
|
+
calendarActiveDateRanges: activeRanges,
|
|
141
|
+
calendarMinDateId: minValue,
|
|
142
|
+
calendarMaxDateId: maxValue,
|
|
143
|
+
calendarMonthHeaderHeight: 0,
|
|
144
|
+
calendarDayHeight: FLASH_CALENDAR_DAY_HEIGHT,
|
|
145
|
+
calendarWeekHeaderHeight: 28,
|
|
146
|
+
calendarRowVerticalSpacing: 4,
|
|
147
|
+
calendarRowHorizontalSpacing: FLASH_CALENDAR_RANGE_DAY_SPACING,
|
|
148
|
+
getCalendarMonthFormat: () => '',
|
|
149
|
+
getCalendarWeekDayFormat: formatWeekday,
|
|
150
|
+
onCalendarDayPress: handleDayPress,
|
|
151
|
+
theme: theme
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
RangeCalendarGrid.displayName = 'RangeCalendar.Grid';
|
|
156
|
+
export const RangeCalendar = Object.assign(RangeCalendarRoot, {
|
|
157
|
+
Header: RangeCalendarHeader,
|
|
158
|
+
Grid: RangeCalendarGrid,
|
|
159
|
+
YearPicker: RangeCalendarYearPicker
|
|
160
|
+
});
|
|
161
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useCallback","useId","useMemo","View","Calendar","FlashCalendar","dataAttributes","mergeDataAttributes","RangeCalendarRoot","RangeCalendarRootPrimitive","useRangeCalendarContext","cn","CalendarMonthHeader","CalendarYearPickerGrid","FLASH_CALENDAR_DAY_HEIGHT","FLASH_CALENDAR_RANGE_DAY_SPACING","formatFlashCalendarWeekdayShort","toCalendarDateId","useFlashCalendarRangeTheme","calendarRootVariants","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","RangeCalendarDefaultBody","view","children","RangeCalendarHeader","RangeCalendarYearPicker","RangeCalendarGrid","className","style","props","ref","slot","displayName","monthId","onMonthIdChange","disabled","setView","locale","labels","onViewChange","startId","endId","minValue","maxValue","onDayPress","instanceId","theme","formatWeekday","date","activeRanges","handleDayPress","dateId","calendarInstanceId","calendarMonthId","calendarActiveDateRanges","calendarMinDateId","calendarMaxDateId","calendarMonthHeaderHeight","calendarDayHeight","calendarWeekHeaderHeight","calendarRowVerticalSpacing","calendarRowHorizontalSpacing","getCalendarMonthFormat","getCalendarWeekDayFormat","onCalendarDayPress","RangeCalendar","Object","assign","Header","Grid","YearPicker"],"sourceRoot":"../../../../src","sources":["components/RangeCalendar/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,WAAW,EAAEC,KAAK,EAAEC,OAAO,QAAwB,OAAO;AAC/E,SAASC,IAAI,QAAwB,cAAc;AACnD,SAASC,QAAQ,IAAIC,aAAa,QAAQ,iCAAiC;AAC3E,SACEC,cAAc,EACdC,mBAAmB,EACnBC,iBAAiB,IAAIC,0BAA0B,EAC/CC,uBAAuB,QAElB,oBAAoB;AAC3B,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,sBAAsB,QAAQ,oCAAoC;AAC3E,SACEC,yBAAyB,EACzBC,gCAAgC,EAChCC,+BAA+B,EAC/BC,gBAAgB,EAChBC,0BAA0B,QACrB,kCAAkC;AACzC,SAASC,oBAAoB,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAQ1D,SAASC,wBAAwBA,CAAA,EAAG;EAClC,MAAM;IAAEC;EAAK,CAAC,GAAGjB,uBAAuB,CAAC,CAAC;EAC1C,oBACEe,KAAA,CAAAF,SAAA;IAAAK,QAAA,gBACEP,IAAA,CAACQ,mBAAmB,IAAE,CAAC,EACtBF,IAAI,KAAK,MAAM,gBAAGN,IAAA,CAACS,uBAAuB,IAAE,CAAC,gBAAGT,IAAA,CAACU,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BAAiB;EACvB4C,UAAU,EAAE7C;AACd,CAAC,CAA0B","ignoreList":[]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Children, cloneElement, isValidElement } from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { cn } from '@cdx-ui/utils';
|
|
6
|
+
import { scrollShadowContainerVariants, scrollShadowOverlayVariants, scrollShadowVariants } from './styles';
|
|
7
|
+
import { useScrollShadow } from './useScrollShadow';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export function ScrollShadow({
|
|
10
|
+
children,
|
|
11
|
+
className,
|
|
12
|
+
fadeFromClassName = 'from-background/35',
|
|
13
|
+
hideScrollBar = false,
|
|
14
|
+
orientation = 'horizontal',
|
|
15
|
+
offset = 0,
|
|
16
|
+
onCapabilityChange,
|
|
17
|
+
size = 64,
|
|
18
|
+
style
|
|
19
|
+
}) {
|
|
20
|
+
const resolvedOrientation = orientation ?? 'horizontal';
|
|
21
|
+
const child = Children.only(children);
|
|
22
|
+
if (! /*#__PURE__*/isValidElement(child)) {
|
|
23
|
+
throw new Error('ScrollShadow expects a single React element child.');
|
|
24
|
+
}
|
|
25
|
+
const {
|
|
26
|
+
capability,
|
|
27
|
+
handleContentSizeChange,
|
|
28
|
+
handleLayout,
|
|
29
|
+
handleScroll
|
|
30
|
+
} = useScrollShadow({
|
|
31
|
+
offset,
|
|
32
|
+
onCapabilityChange,
|
|
33
|
+
orientation: resolvedOrientation
|
|
34
|
+
});
|
|
35
|
+
const overlayFade = cn(fadeFromClassName, 'to-transparent');
|
|
36
|
+
const overlayAxisSize = resolvedOrientation === 'horizontal' ? {
|
|
37
|
+
width: size
|
|
38
|
+
} : {
|
|
39
|
+
height: size
|
|
40
|
+
};
|
|
41
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
42
|
+
className: cn(scrollShadowContainerVariants(), className),
|
|
43
|
+
style: style,
|
|
44
|
+
children: [/*#__PURE__*/cloneElement(child, {
|
|
45
|
+
className: cn(scrollShadowVariants({
|
|
46
|
+
hideScrollBar
|
|
47
|
+
}), child.props.className),
|
|
48
|
+
onContentSizeChange: (width, height) => {
|
|
49
|
+
handleContentSizeChange(width, height);
|
|
50
|
+
child.props.onContentSizeChange?.(width, height);
|
|
51
|
+
},
|
|
52
|
+
onLayout: event => {
|
|
53
|
+
handleLayout(event);
|
|
54
|
+
child.props.onLayout?.(event);
|
|
55
|
+
},
|
|
56
|
+
onScroll: event => {
|
|
57
|
+
handleScroll(event);
|
|
58
|
+
child.props.onScroll?.(event);
|
|
59
|
+
},
|
|
60
|
+
style: StyleSheet.flatten([child.props.style])
|
|
61
|
+
}), capability.canScrollBefore ? /*#__PURE__*/_jsx(View, {
|
|
62
|
+
pointerEvents: "none",
|
|
63
|
+
className: cn(scrollShadowOverlayVariants({
|
|
64
|
+
orientation: resolvedOrientation,
|
|
65
|
+
edge: 'start'
|
|
66
|
+
}), overlayFade),
|
|
67
|
+
style: overlayAxisSize
|
|
68
|
+
}) : null, capability.canScrollAfter ? /*#__PURE__*/_jsx(View, {
|
|
69
|
+
pointerEvents: "none",
|
|
70
|
+
className: cn(scrollShadowOverlayVariants({
|
|
71
|
+
orientation: resolvedOrientation,
|
|
72
|
+
edge: 'end'
|
|
73
|
+
}), overlayFade),
|
|
74
|
+
style: overlayAxisSize
|
|
75
|
+
}) : null]
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Children","cloneElement","isValidElement","StyleSheet","View","cn","scrollShadowContainerVariants","scrollShadowOverlayVariants","scrollShadowVariants","useScrollShadow","jsx","_jsx","jsxs","_jsxs","ScrollShadow","children","className","fadeFromClassName","hideScrollBar","orientation","offset","onCapabilityChange","size","style","resolvedOrientation","child","only","Error","capability","handleContentSizeChange","handleLayout","handleScroll","overlayFade","overlayAxisSize","width","height","props","onContentSizeChange","onLayout","event","onScroll","flatten","canScrollBefore","pointerEvents","edge","canScrollAfter"],"sourceRoot":"../../../../src","sources":["components/ScrollShadow/index.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,YAAY,EAAEC,cAAc,QAAwB,OAAO;AAC9E,SAASC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC/D,SAASC,EAAE,QAAQ,eAAe;AAClC,SACEC,6BAA6B,EAC7BC,2BAA2B,EAC3BC,oBAAoB,QAEf,UAAU;AACjB,SAASC,eAAe,QAAqC,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAoCjF,OAAO,SAASC,YAAYA,CAAC;EAC3BC,QAAQ;EACRC,SAAS;EACTC,iBAAiB,GAAG,oBAAoB;EACxCC,aAAa,GAAG,KAAK;EACrBC,WAAW,GAAG,YAAY;EAC1BC,MAAM,GAAG,CAAC;EACVC,kBAAkB;EAClBC,IAAI,GAAG,EAAE;EACTC;AACiB,CAAC,EAAE;EACpB,MAAMC,mBAAmB,GAAGL,WAAW,IAAI,YAAY;EACvD,MAAMM,KAAK,GAAGzB,QAAQ,CAAC0B,IAAI,CAACX,QAAQ,CAAC;EAErC,IAAI,eAACb,cAAc,CAAyBuB,KAAK,CAAC,EAAE;IAClD,MAAM,IAAIE,KAAK,CAAC,oDAAoD,CAAC;EACvE;EAEA,MAAM;IAAEC,UAAU;IAAEC,uBAAuB;IAAEC,YAAY;IAAEC;EAAa,CAAC,GAAGtB,eAAe,CAAC;IAC1FW,MAAM;IACNC,kBAAkB;IAClBF,WAAW,EAAEK;EACf,CAAC,CAAC;EAEF,MAAMQ,WAAW,GAAG3B,EAAE,CAACY,iBAAiB,EAAE,gBAAgB,CAAC;EAC3D,MAAMgB,eAAe,GAAGT,mBAAmB,KAAK,YAAY,GAAG;IAAEU,KAAK,EAAEZ;EAAK,CAAC,GAAG;IAAEa,MAAM,EAAEb;EAAK,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,CACXE,2BAA2B,CAAC;QAC1BY,WAAW,EAAEK,mBAAmB;QAChCoB,IAAI,EAAE;MACR,CAAC,CAAC,EACFZ,WACF,CAAE;MACFT,KAAK,EAAEU;IAAgB,CACxB,CAAC,GACA,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { cva } from '@cdx-ui/utils';
|
|
4
|
+
export const scrollShadowVariants = cva([], {
|
|
5
|
+
variants: {
|
|
6
|
+
orientation: {
|
|
7
|
+
horizontal: '',
|
|
8
|
+
vertical: ''
|
|
9
|
+
},
|
|
10
|
+
hideScrollBar: {
|
|
11
|
+
true: 'web:[scrollbar-width:none] web:[&::-webkit-scrollbar]:hidden',
|
|
12
|
+
false: ''
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
orientation: 'horizontal',
|
|
17
|
+
hideScrollBar: false
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export const scrollShadowContainerVariants = cva('relative min-w-0 w-full');
|
|
21
|
+
export const scrollShadowOverlayVariants = cva('pointer-events-none absolute z-10', {
|
|
22
|
+
variants: {
|
|
23
|
+
orientation: {
|
|
24
|
+
horizontal: '',
|
|
25
|
+
vertical: ''
|
|
26
|
+
},
|
|
27
|
+
edge: {
|
|
28
|
+
start: '',
|
|
29
|
+
end: ''
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
compoundVariants: [{
|
|
33
|
+
orientation: 'horizontal',
|
|
34
|
+
edge: 'start',
|
|
35
|
+
className: 'left-0 top-0 bottom-0 bg-gradient-to-r'
|
|
36
|
+
}, {
|
|
37
|
+
orientation: 'horizontal',
|
|
38
|
+
edge: 'end',
|
|
39
|
+
className: 'right-0 top-0 bottom-0 bg-gradient-to-l'
|
|
40
|
+
}, {
|
|
41
|
+
orientation: 'vertical',
|
|
42
|
+
edge: 'start',
|
|
43
|
+
className: 'left-0 right-0 top-0 bg-gradient-to-b'
|
|
44
|
+
}, {
|
|
45
|
+
orientation: 'vertical',
|
|
46
|
+
edge: 'end',
|
|
47
|
+
className: 'left-0 right-0 bottom-0 bg-gradient-to-t'
|
|
48
|
+
}]
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["cva","scrollShadowVariants","variants","orientation","horizontal","vertical","hideScrollBar","true","false","defaultVariants","scrollShadowContainerVariants","scrollShadowOverlayVariants","edge","start","end","compoundVariants","className"],"sourceRoot":"../../../../src","sources":["components/ScrollShadow/styles.ts"],"mappings":";;AAAA,SAASA,GAAG,QAA2B,eAAe;AAEtD,OAAO,MAAMC,oBAAoB,GAAGD,GAAG,CAAC,EAAE,EAAE;EAC1CE,QAAQ,EAAE;IACRC,WAAW,EAAE;MACXC,UAAU,EAAE,EAAE;MACdC,QAAQ,EAAE;IACZ,CAAC;IACDC,aAAa,EAAE;MACbC,IAAI,EAAE,8DAA8D;MACpEC,KAAK,EAAE;IACT;EACF,CAAC;EACDC,eAAe,EAAE;IACfN,WAAW,EAAE,YAAY;IACzBG,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,OAAO,MAAMI,6BAA6B,GAAGV,GAAG,CAAC,yBAAyB,CAAC;AAE3E,OAAO,MAAMW,2BAA2B,GAAGX,GAAG,CAAC,mCAAmC,EAAE;EAClFE,QAAQ,EAAE;IACRC,WAAW,EAAE;MACXC,UAAU,EAAE,EAAE;MACdC,QAAQ,EAAE;IACZ,CAAC;IACDO,IAAI,EAAE;MACJC,KAAK,EAAE,EAAE;MACTC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,gBAAgB,EAAE,CAChB;IACEZ,WAAW,EAAE,YAAY;IACzBS,IAAI,EAAE,OAAO;IACbI,SAAS,EAAE;EACb,CAAC,EACD;IACEb,WAAW,EAAE,YAAY;IACzBS,IAAI,EAAE,KAAK;IACXI,SAAS,EAAE;EACb,CAAC,EACD;IACEb,WAAW,EAAE,UAAU;IACvBS,IAAI,EAAE,OAAO;IACbI,SAAS,EAAE;EACb,CAAC,EACD;IACEb,WAAW,EAAE,UAAU;IACvBS,IAAI,EAAE,KAAK;IACXI,SAAS,EAAE;EACb,CAAC;AAEL,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
+
const INITIAL_METRICS = {
|
|
5
|
+
scrollOffset: 0,
|
|
6
|
+
viewportSize: 0,
|
|
7
|
+
contentSize: 0
|
|
8
|
+
};
|
|
9
|
+
function getScrollCapability(metrics, offset) {
|
|
10
|
+
const {
|
|
11
|
+
scrollOffset,
|
|
12
|
+
viewportSize,
|
|
13
|
+
contentSize
|
|
14
|
+
} = metrics;
|
|
15
|
+
if (viewportSize <= 0 || contentSize <= viewportSize) {
|
|
16
|
+
return {
|
|
17
|
+
canScrollBefore: false,
|
|
18
|
+
canScrollAfter: false
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
canScrollBefore: scrollOffset > offset,
|
|
23
|
+
canScrollAfter: scrollOffset + viewportSize + offset < contentSize
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function useScrollShadow({
|
|
27
|
+
orientation = 'horizontal',
|
|
28
|
+
offset = 0,
|
|
29
|
+
onCapabilityChange
|
|
30
|
+
} = {}) {
|
|
31
|
+
const metricsRef = useRef(INITIAL_METRICS);
|
|
32
|
+
const [capability, setCapability] = useState({
|
|
33
|
+
canScrollBefore: false,
|
|
34
|
+
canScrollAfter: false
|
|
35
|
+
});
|
|
36
|
+
const updateCapability = useCallback(() => {
|
|
37
|
+
const nextCapability = getScrollCapability(metricsRef.current, offset);
|
|
38
|
+
setCapability(prev => {
|
|
39
|
+
if (prev.canScrollBefore === nextCapability.canScrollBefore && prev.canScrollAfter === nextCapability.canScrollAfter) {
|
|
40
|
+
return prev;
|
|
41
|
+
}
|
|
42
|
+
onCapabilityChange?.(nextCapability);
|
|
43
|
+
return nextCapability;
|
|
44
|
+
});
|
|
45
|
+
}, [offset, onCapabilityChange]);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
updateCapability();
|
|
48
|
+
}, [updateCapability]);
|
|
49
|
+
const handleLayout = useCallback(event => {
|
|
50
|
+
const {
|
|
51
|
+
width,
|
|
52
|
+
height
|
|
53
|
+
} = event.nativeEvent.layout;
|
|
54
|
+
metricsRef.current.viewportSize = orientation === 'vertical' ? height : width;
|
|
55
|
+
updateCapability();
|
|
56
|
+
}, [orientation, updateCapability]);
|
|
57
|
+
const handleContentSizeChange = useCallback((width, height) => {
|
|
58
|
+
metricsRef.current.contentSize = orientation === 'vertical' ? height : width;
|
|
59
|
+
updateCapability();
|
|
60
|
+
}, [orientation, updateCapability]);
|
|
61
|
+
const handleScroll = useCallback(event => {
|
|
62
|
+
const {
|
|
63
|
+
contentOffset,
|
|
64
|
+
layoutMeasurement,
|
|
65
|
+
contentSize
|
|
66
|
+
} = event.nativeEvent;
|
|
67
|
+
metricsRef.current.scrollOffset = orientation === 'vertical' ? contentOffset.y : contentOffset.x;
|
|
68
|
+
metricsRef.current.viewportSize = orientation === 'vertical' ? layoutMeasurement.height : layoutMeasurement.width;
|
|
69
|
+
metricsRef.current.contentSize = orientation === 'vertical' ? contentSize.height : contentSize.width;
|
|
70
|
+
updateCapability();
|
|
71
|
+
}, [orientation, updateCapability]);
|
|
72
|
+
return {
|
|
73
|
+
capability,
|
|
74
|
+
handleLayout,
|
|
75
|
+
handleContentSizeChange,
|
|
76
|
+
handleScroll
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=useScrollShadow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useRef","useState","INITIAL_METRICS","scrollOffset","viewportSize","contentSize","getScrollCapability","metrics","offset","canScrollBefore","canScrollAfter","useScrollShadow","orientation","onCapabilityChange","metricsRef","capability","setCapability","updateCapability","nextCapability","current","prev","handleLayout","event","width","height","nativeEvent","layout","handleContentSizeChange","handleScroll","contentOffset","layoutMeasurement","y","x"],"sourceRoot":"../../../../src","sources":["components/ScrollShadow/useScrollShadow.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAoBhE,MAAMC,eAA8B,GAAG;EACrCC,YAAY,EAAE,CAAC;EACfC,YAAY,EAAE,CAAC;EACfC,WAAW,EAAE;AACf,CAAC;AAED,SAASC,mBAAmBA,CAACC,OAAsB,EAAEC,MAAc,EAA0B;EAC3F,MAAM;IAAEL,YAAY;IAAEC,YAAY;IAAEC;EAAY,CAAC,GAAGE,OAAO;EAE3D,IAAIH,YAAY,IAAI,CAAC,IAAIC,WAAW,IAAID,YAAY,EAAE;IACpD,OAAO;MAAEK,eAAe,EAAE,KAAK;MAAEC,cAAc,EAAE;IAAM,CAAC;EAC1D;EAEA,OAAO;IACLD,eAAe,EAAEN,YAAY,GAAGK,MAAM;IACtCE,cAAc,EAAEP,YAAY,GAAGC,YAAY,GAAGI,MAAM,GAAGH;EACzD,CAAC;AACH;AAEA,OAAO,SAASM,eAAeA,CAAC;EAC9BC,WAAW,GAAG,YAAY;EAC1BJ,MAAM,GAAG,CAAC;EACVK;AACsB,CAAC,GAAG,CAAC,CAAC,EAAE;EAC9B,MAAMC,UAAU,GAAGd,MAAM,CAAgBE,eAAe,CAAC;EACzD,MAAM,CAACa,UAAU,EAAEC,aAAa,CAAC,GAAGf,QAAQ,CAAyB;IACnEQ,eAAe,EAAE,KAAK;IACtBC,cAAc,EAAE;EAClB,CAAC,CAAC;EAEF,MAAMO,gBAAgB,GAAGnB,WAAW,CAAC,MAAM;IACzC,MAAMoB,cAAc,GAAGZ,mBAAmB,CAACQ,UAAU,CAACK,OAAO,EAAEX,MAAM,CAAC;I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UAAU,CAACK,OAAO,CAACf,YAAY,GAC7BQ,WAAW,KAAK,UAAU,GAAGkB,iBAAiB,CAACN,MAAM,GAAGM,iBAAiB,CAACP,KAAK;IACjFT,UAAU,CAACK,OAAO,CAACd,WAAW,GAC5BO,WAAW,KAAK,UAAU,GAAGP,WAAW,CAACmB,MAAM,GAAGnB,WAAW,CAACkB,KAAK;IAErEN,gBAAgB,CAAC,CAAC;EACpB,CAAC,EACD,CAACL,WAAW,EAAEK,gBAAgB,CAChC,CAAC;EAED,OAAO;IACLF,UAAU;IACVM,YAAY;IACZM,uBAAuB;IACvBC;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef, useMemo } from 'react';
|
|
3
|
+
import { cloneElement, forwardRef, isValidElement, useMemo } from 'react';
|
|
4
4
|
import { Text } from 'react-native';
|
|
5
5
|
import { KeyboardArrowDown, KeyboardArrowUp } from '@cdx-ui/icons';
|
|
6
6
|
import { SelectContent as SelectContentPrimitive, SelectItem as SelectItemPrimitive, SelectRoot as SelectRootPrimitive, SelectTrigger as SelectTriggerPrimitive, Slot, dataAttributes, mergeDataAttributes, useSelectContext, useSelectItemContext } from '@cdx-ui/primitives';
|
|
7
7
|
import { cn, ParentContext, useParentContext, useStyleContext } from '@cdx-ui/utils';
|
|
8
8
|
import { Icon } from '../Icon';
|
|
9
|
+
import { Menu } from '../Menu';
|
|
10
|
+
import { menuItemLabelVariants, menuItemVariants } from '../Menu/styles';
|
|
9
11
|
import { positionToDataIcon } from '../../utils/positionToDataIcon';
|
|
10
|
-
import {
|
|
12
|
+
import { selectIconVariants, selectTriggerVariants, selectValueVariants } from './styles';
|
|
11
13
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
14
|
const SCOPE = 'SELECT';
|
|
13
15
|
const useSelectStyleContext = () => useStyleContext(SCOPE);
|
|
16
|
+
const toMenuItemSize = size => size === 'small' ? 'small' : 'default';
|
|
14
17
|
|
|
15
18
|
// =============================================================================
|
|
16
19
|
// STYLED ROOT
|
|
@@ -54,6 +57,7 @@ SelectRoot.displayName = 'Select';
|
|
|
54
57
|
|
|
55
58
|
const SelectTrigger = /*#__PURE__*/forwardRef(({
|
|
56
59
|
asChild,
|
|
60
|
+
indicator,
|
|
57
61
|
className,
|
|
58
62
|
children,
|
|
59
63
|
style,
|
|
@@ -70,6 +74,10 @@ const SelectTrigger = /*#__PURE__*/forwardRef(({
|
|
|
70
74
|
variant,
|
|
71
75
|
size
|
|
72
76
|
}), className);
|
|
77
|
+
const triggerIndicator = indicator === undefined ? asChild ? undefined : /*#__PURE__*/_jsx(SelectIcon, {
|
|
78
|
+
as: open ? KeyboardArrowUp : KeyboardArrowDown
|
|
79
|
+
}) : indicator;
|
|
80
|
+
const triggerChildren = asChild && triggerIndicator !== undefined && /*#__PURE__*/isValidElement(children) ? /*#__PURE__*/cloneElement(children, undefined, children.props.children, triggerIndicator) : children;
|
|
73
81
|
return /*#__PURE__*/_jsx(SelectTriggerPrimitive, {
|
|
74
82
|
ref: ref,
|
|
75
83
|
asChild: asChild,
|
|
@@ -79,10 +87,8 @@ const SelectTrigger = /*#__PURE__*/forwardRef(({
|
|
|
79
87
|
...mergeDataAttributes(props, dataAttributes({
|
|
80
88
|
slot: 'select-trigger'
|
|
81
89
|
})),
|
|
82
|
-
children: asChild ?
|
|
83
|
-
children: [children,
|
|
84
|
-
as: open ? KeyboardArrowUp : KeyboardArrowDown
|
|
85
|
-
})]
|
|
90
|
+
children: asChild ? triggerChildren : /*#__PURE__*/_jsxs(_Fragment, {
|
|
91
|
+
children: [children, triggerIndicator]
|
|
86
92
|
})
|
|
87
93
|
});
|
|
88
94
|
});
|
|
@@ -177,62 +183,94 @@ const SelectIcon = ({
|
|
|
177
183
|
SelectIcon.displayName = 'Select.Icon';
|
|
178
184
|
|
|
179
185
|
// =============================================================================
|
|
180
|
-
// STYLED CONTENT
|
|
186
|
+
// STYLED CONTENT — composes Menu surface (listbox semantics stay on primitive)
|
|
181
187
|
// =============================================================================
|
|
182
188
|
|
|
183
189
|
const SelectContent = /*#__PURE__*/forwardRef(({
|
|
184
190
|
asChild,
|
|
185
191
|
className,
|
|
186
192
|
style,
|
|
193
|
+
children,
|
|
187
194
|
...props
|
|
188
195
|
}, ref) => {
|
|
189
|
-
|
|
196
|
+
if (asChild) {
|
|
197
|
+
return /*#__PURE__*/_jsx(SelectContentPrimitive, {
|
|
198
|
+
ref: ref,
|
|
199
|
+
asChild: true,
|
|
200
|
+
className: className,
|
|
201
|
+
style: style,
|
|
202
|
+
...props,
|
|
203
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
204
|
+
slot: 'select-content'
|
|
205
|
+
})),
|
|
206
|
+
children: children
|
|
207
|
+
});
|
|
208
|
+
}
|
|
190
209
|
return /*#__PURE__*/_jsx(SelectContentPrimitive, {
|
|
191
210
|
ref: ref,
|
|
192
|
-
asChild:
|
|
193
|
-
className: computedClassName,
|
|
211
|
+
asChild: true,
|
|
194
212
|
style: style,
|
|
195
213
|
...props,
|
|
196
214
|
...mergeDataAttributes(props, dataAttributes({
|
|
197
215
|
slot: 'select-content'
|
|
198
|
-
}))
|
|
216
|
+
})),
|
|
217
|
+
children: /*#__PURE__*/_jsx(Menu.Content, {
|
|
218
|
+
asSurface: true,
|
|
219
|
+
scrollable: true,
|
|
220
|
+
className: className,
|
|
221
|
+
children: children
|
|
222
|
+
})
|
|
199
223
|
});
|
|
200
224
|
});
|
|
201
225
|
SelectContent.displayName = 'Select.Content';
|
|
202
226
|
|
|
203
227
|
// =============================================================================
|
|
204
|
-
// STYLED ITEM
|
|
228
|
+
// STYLED ITEM — composes Menu item visuals (option semantics stay on primitive)
|
|
205
229
|
// =============================================================================
|
|
206
230
|
|
|
207
231
|
const SelectItem = /*#__PURE__*/forwardRef(({
|
|
208
232
|
asChild,
|
|
233
|
+
indicator,
|
|
209
234
|
className,
|
|
210
235
|
children,
|
|
211
236
|
style,
|
|
237
|
+
value: itemValue,
|
|
212
238
|
...props
|
|
213
239
|
}, ref) => {
|
|
214
240
|
const {
|
|
215
241
|
size
|
|
216
242
|
} = useSelectStyleContext();
|
|
217
|
-
const
|
|
218
|
-
|
|
243
|
+
const {
|
|
244
|
+
value: selectedValue
|
|
245
|
+
} = useSelectContext();
|
|
246
|
+
const menuSize = toMenuItemSize(size);
|
|
247
|
+
const checked = selectedValue === itemValue;
|
|
248
|
+
const computedClassName = cn(menuItemVariants({
|
|
249
|
+
size: menuSize
|
|
219
250
|
}), className);
|
|
251
|
+
const selectedIndicator = indicator === undefined ? /*#__PURE__*/_jsx(Menu.ItemIndicator, {
|
|
252
|
+
isChecked: checked
|
|
253
|
+
}) : checked ? indicator : null;
|
|
254
|
+
const itemChildren = asChild ? /*#__PURE__*/isValidElement(children) ? (/*#__PURE__*/cloneElement(children, undefined, children.props.children, selectedIndicator)) : children : /*#__PURE__*/_jsxs(_Fragment, {
|
|
255
|
+
children: [children, selectedIndicator]
|
|
256
|
+
});
|
|
220
257
|
return /*#__PURE__*/_jsx(SelectItemPrimitive, {
|
|
221
258
|
ref: ref,
|
|
222
259
|
asChild: asChild,
|
|
260
|
+
value: itemValue,
|
|
223
261
|
className: computedClassName,
|
|
224
262
|
style: style,
|
|
225
263
|
...props,
|
|
226
264
|
...mergeDataAttributes(props, dataAttributes({
|
|
227
265
|
slot: 'select-item'
|
|
228
266
|
})),
|
|
229
|
-
children:
|
|
267
|
+
children: itemChildren
|
|
230
268
|
});
|
|
231
269
|
});
|
|
232
270
|
SelectItem.displayName = 'Select.Item';
|
|
233
271
|
|
|
234
272
|
// =============================================================================
|
|
235
|
-
// STYLED ITEM LABEL
|
|
273
|
+
// STYLED ITEM LABEL — composes Menu.ItemLabel
|
|
236
274
|
// =============================================================================
|
|
237
275
|
|
|
238
276
|
const SelectItemLabel = /*#__PURE__*/forwardRef(({
|
|
@@ -248,19 +286,21 @@ const SelectItemLabel = /*#__PURE__*/forwardRef(({
|
|
|
248
286
|
const {
|
|
249
287
|
checked
|
|
250
288
|
} = useSelectItemContext();
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
}), className);
|
|
254
|
-
const Comp = asChild ? Slot : Text;
|
|
255
|
-
return /*#__PURE__*/_jsx(Comp, {
|
|
289
|
+
const menuSize = toMenuItemSize(size);
|
|
290
|
+
return /*#__PURE__*/_jsx(Menu.ItemLabel, {
|
|
256
291
|
ref: ref,
|
|
257
|
-
|
|
292
|
+
asChild: asChild,
|
|
293
|
+
isChecked: checked,
|
|
294
|
+
size: menuSize,
|
|
295
|
+
className: cn(menuItemLabelVariants({
|
|
296
|
+
size: menuSize
|
|
297
|
+
}), className),
|
|
258
298
|
style: style,
|
|
259
299
|
...props,
|
|
260
|
-
...mergeDataAttributes(
|
|
300
|
+
...mergeDataAttributes(dataAttributes({
|
|
261
301
|
slot: 'select-item-label',
|
|
262
302
|
state: checked ? 'checked' : 'unchecked'
|
|
263
|
-
})),
|
|
303
|
+
}), props),
|
|
264
304
|
children: children
|
|
265
305
|
});
|
|
266
306
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","useMemo","Text","KeyboardArrowDown","KeyboardArrowUp","SelectContent","SelectContentPrimitive","SelectItem","SelectItemPrimitive","SelectRoot","SelectRootPrimitive","SelectTrigger","SelectTriggerPrimitive","Slot","dataAttributes","mergeDataAttributes","useSelectContext","useSelectItemContext","cn","ParentContext","useParentContext","useStyleContext","Icon","
|
|
1
|
+
{"version":3,"names":["cloneElement","forwardRef","isValidElement","useMemo","Text","KeyboardArrowDown","KeyboardArrowUp","SelectContent","SelectContentPrimitive","SelectItem","SelectItemPrimitive","SelectRoot","SelectRootPrimitive","SelectTrigger","SelectTriggerPrimitive","Slot","dataAttributes","mergeDataAttributes","useSelectContext","useSelectItemContext","cn","ParentContext","useParentContext","useStyleContext","Icon","Menu","menuItemLabelVariants","menuItemVariants","positionToDataIcon","selectIconVariants","selectTriggerVariants","selectValueVariants","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","SCOPE","useSelectStyleContext","toMenuItemSize","size","variant","className","children","style","props","ref","parent","ctx","Provider","value","slot","displayName","asChild","indicator","open","computedClassName","triggerIndicator","undefined","SelectIcon","as","triggerChildren","SelectValue","placeholder","items","invalid","hasValue","showPlaceholder","displayText","find","item","label","Comp","position","slotData","Content","asSurface","scrollable","itemValue","selectedValue","menuSize","checked","selectedIndicator","ItemIndicator","isChecked","itemChildren","SelectItemLabel","ItemLabel","state","Select","Object","assign","Trigger","Value","Item"],"sourceRoot":"../../../../src","sources":["components/Select/index.tsx"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,UAAU,EAAEC,cAAc,EAAEC,OAAO,QAAwB,OAAO;AACzF,SAASC,IAAI,QAA8C,cAAc;AACzE,SAASC,iBAAiB,EAAEC,eAAe,QAAQ,eAAe;AAClE,SACEC,aAAa,IAAIC,sBAAsB,EACvCC,UAAU,IAAIC,mBAAmB,EACjCC,UAAU,IAAIC,mBAAmB,EACjCC,aAAa,IAAIC,sBAAsB,EACvCC,IAAI,EACJC,cAAc,EACdC,mBAAmB,EACnBC,gBAAgB,EAChBC,oBAAoB,QAOf,oBAAoB;AAC3B,SAASC,EAAE,EAAEC,aAAa,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,eAAe;AACpF,SAASC,IAAI,QAAmB,SAAS;AACzC,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,qBAAqB,EAAEC,gBAAgB,QAAQ,gBAAgB;AACxE,SAASC,kBAAkB,QAA+B,gCAAgC;AAC1F,SAEEC,kBAAkB,EAClBC,qBAAqB,EACrBC,mBAAmB,QACd,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAElB,MAAMC,KAAK,GAAG,QAAQ;AAEtB,MAAMC,qBAAqB,GAAGA,CAAA,KAAMhB,eAAe,CAACe,KAAK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