flikkui 0.1.0-beta.2
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/dist/_virtual/jsx-runtime.js +5 -0
- package/dist/_virtual/jsx-runtime2.js +3 -0
- package/dist/_virtual/react-jsx-runtime.development.js +3 -0
- package/dist/_virtual/react-jsx-runtime.production.js +3 -0
- package/dist/components/charts/AreaChart/AreaChart.d.ts +3 -0
- package/dist/components/charts/AreaChart/AreaChart.types.d.ts +32 -0
- package/dist/components/charts/AreaChart/index.d.ts +2 -0
- package/dist/components/charts/BarChart/BarChart.d.ts +3 -0
- package/dist/components/charts/BarChart/BarChart.types.d.ts +26 -0
- package/dist/components/charts/BarChart/index.d.ts +2 -0
- package/dist/components/charts/ChartContainer.d.ts +9 -0
- package/dist/components/charts/DonutChart/DonutChart.d.ts +7 -0
- package/dist/components/charts/DonutChart/DonutChart.theme.d.ts +164 -0
- package/dist/components/charts/DonutChart/DonutChart.types.d.ts +113 -0
- package/dist/components/charts/Heatmap/Heatmap.d.ts +7 -0
- package/dist/components/charts/Heatmap/Heatmap.types.d.ts +151 -0
- package/dist/components/charts/Heatmap/HeatmapCell.d.ts +6 -0
- package/dist/components/charts/Heatmap/HeatmapLegend.d.ts +20 -0
- package/dist/components/charts/Heatmap/index.d.ts +6 -0
- package/dist/components/charts/Heatmap/utils/heatmapUtils.d.ts +30 -0
- package/dist/components/charts/LineChart/LineChart.d.ts +3 -0
- package/dist/components/charts/LineChart/LineChart.types.d.ts +27 -0
- package/dist/components/charts/LineChart/index.d.ts +2 -0
- package/dist/components/charts/hooks/index.d.ts +4 -0
- package/dist/components/charts/hooks/useChartAccessibility.d.ts +39 -0
- package/dist/components/charts/hooks/useChartTheme.d.ts +16 -0
- package/dist/components/charts/hooks/useChartValidation.d.ts +74 -0
- package/dist/components/charts/hooks/useTooltipPosition.d.ts +98 -0
- package/dist/components/charts/index.d.ts +35 -0
- package/dist/components/charts/shared/ChartAxis/ChartAxis.types.d.ts +90 -0
- package/dist/components/charts/shared/ChartAxis/XAxis.d.ts +7 -0
- package/dist/components/charts/shared/ChartAxis/YAxis.d.ts +7 -0
- package/dist/components/charts/shared/ChartAxis/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.d.ts +7 -0
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.theme.d.ts +6 -0
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.types.d.ts +35 -0
- package/dist/components/charts/shared/ChartCrosshair/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartErrorBoundary/ChartErrorBoundary.d.ts +34 -0
- package/dist/components/charts/shared/ChartErrorBoundary/index.d.ts +1 -0
- package/dist/components/charts/shared/ChartGrid/HorizontalGrid.d.ts +26 -0
- package/dist/components/charts/shared/ChartGrid/index.d.ts +2 -0
- package/dist/components/charts/shared/ChartLegend/ChartLegend.types.d.ts +15 -0
- package/dist/components/charts/shared/ChartLegend/index.d.ts +1 -0
- package/dist/components/charts/shared/ChartMarker/ChartMarker.d.ts +7 -0
- package/dist/components/charts/shared/ChartMarker/ChartMarker.theme.d.ts +6 -0
- package/dist/components/charts/shared/ChartMarker/ChartMarker.types.d.ts +21 -0
- package/dist/components/charts/shared/ChartMarker/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartText/ChartText.d.ts +7 -0
- package/dist/components/charts/shared/ChartText/ChartText.theme.d.ts +6 -0
- package/dist/components/charts/shared/ChartText/ChartText.types.d.ts +21 -0
- package/dist/components/charts/shared/ChartText/index.d.ts +2 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.d.ts +19 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.types.d.ts +48 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltipContent.d.ts +3 -0
- package/dist/components/charts/shared/ChartTooltip/index.d.ts +3 -0
- package/dist/components/charts/shared/index.d.ts +7 -0
- package/dist/components/charts/theme/chart.theme.d.ts +6 -0
- package/dist/components/charts/types/chart.types.d.ts +171 -0
- package/dist/components/charts/utils/chart-validation.d.ts +79 -0
- package/dist/components/charts/utils/color-utils.d.ts +78 -0
- package/dist/components/charts/utils/index.d.ts +2 -0
- package/dist/components/core/Accordion/Accordion.animations.d.ts +9 -0
- package/dist/components/core/Accordion/Accordion.d.ts +12 -0
- package/dist/components/core/Accordion/Accordion.theme.d.ts +7 -0
- package/dist/components/core/Accordion/Accordion.types.d.ts +93 -0
- package/dist/components/core/Accordion/AccordionContent.d.ts +3 -0
- package/dist/components/core/Accordion/AccordionItem.d.ts +4 -0
- package/dist/components/core/Accordion/AccordionTrigger.d.ts +3 -0
- package/dist/components/core/Accordion/index.d.ts +5 -0
- package/dist/components/core/Avatar/Avatar.d.ts +4 -0
- package/dist/components/core/Avatar/Avatar.theme.d.ts +14 -0
- package/dist/components/core/Avatar/Avatar.types.d.ts +64 -0
- package/dist/components/core/Avatar/index.d.ts +2 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.animations.d.ts +12 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.theme.d.ts +14 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.types.d.ts +44 -0
- package/dist/components/core/AvatarGroup/index.d.ts +2 -0
- package/dist/components/core/Badge/Badge.animations.d.ts +8 -0
- package/dist/components/core/Badge/Badge.d.ts +14 -0
- package/dist/components/core/Badge/Badge.theme.d.ts +5 -0
- package/dist/components/core/Badge/Badge.types.d.ts +98 -0
- package/dist/components/core/Badge/index.d.ts +2 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +17 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.js +101 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.d.ts +17 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.js +34 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +69 -0
- package/dist/components/core/Breadcrumbs/index.d.ts +4 -0
- package/dist/components/core/Button/Button.animations.d.ts +17 -0
- package/dist/components/core/Button/Button.animations.js +35 -0
- package/dist/components/core/Button/Button.d.ts +4 -0
- package/dist/components/core/Button/Button.js +72 -0
- package/dist/components/core/Button/Button.theme.d.ts +24 -0
- package/dist/components/core/Button/Button.theme.js +41 -0
- package/dist/components/core/Button/Button.types.d.ts +29 -0
- package/dist/components/core/Button/index.d.ts +2 -0
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.d.ts +4 -0
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.theme.d.ts +12 -0
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.types.d.ts +24 -0
- package/dist/components/core/Calendar/CalendarEvent/index.d.ts +2 -0
- package/dist/components/core/Calendar/DayView/DayViewCell.d.ts +20 -0
- package/dist/components/core/Calendar/MonthView/MonthView.d.ts +2 -0
- package/dist/components/core/Calendar/MonthView/components/CalendarCell/CalendarCell.d.ts +4 -0
- package/dist/components/core/Calendar/MonthView/components/CalendarCell/CalendarCell.theme.d.ts +29 -0
- package/dist/components/core/Calendar/MonthView/components/CalendarCell/CalendarCell.types.d.ts +41 -0
- package/dist/components/core/Calendar/MonthView/components/CalendarCell/index.d.ts +3 -0
- package/dist/components/core/Calendar/MonthView/components/MontViewHeader/MonthViewHeader.d.ts +2 -0
- package/dist/components/core/Card/Card.d.ts +8 -0
- package/dist/components/core/Card/Card.theme.d.ts +2 -0
- package/dist/components/core/Card/Card.types.d.ts +48 -0
- package/dist/components/core/Card/index.d.ts +2 -0
- package/dist/components/core/Carousel/Carousel.animations.d.ts +33 -0
- package/dist/components/core/Carousel/Carousel.animations.js +353 -0
- package/dist/components/core/Carousel/Carousel.d.ts +3 -0
- package/dist/components/core/Carousel/Carousel.js +94 -0
- package/dist/components/core/Carousel/Carousel.theme.d.ts +2 -0
- package/dist/components/core/Carousel/Carousel.theme.js +16 -0
- package/dist/components/core/Carousel/Carousel.types.d.ts +164 -0
- package/dist/components/core/Carousel/CarouselContext.d.ts +3 -0
- package/dist/components/core/Carousel/CarouselContext.js +12 -0
- package/dist/components/core/Carousel/components/CarouselControlButton.d.ts +4 -0
- package/dist/components/core/Carousel/components/CarouselControlButton.js +26 -0
- package/dist/components/core/Carousel/components/CarouselControls.d.ts +4 -0
- package/dist/components/core/Carousel/components/CarouselControls.js +17 -0
- package/dist/components/core/Carousel/components/CarouselSlide.d.ts +4 -0
- package/dist/components/core/Carousel/components/CarouselSlide.js +74 -0
- package/dist/components/core/Carousel/components/index.d.ts +3 -0
- package/dist/components/core/Carousel/index.d.ts +4 -0
- package/dist/components/core/Carousel/index.js +5 -0
- package/dist/components/core/Divider/Divider.d.ts +3 -0
- package/dist/components/core/Divider/Divider.theme.d.ts +2 -0
- package/dist/components/core/Divider/Divider.types.d.ts +34 -0
- package/dist/components/core/Divider/index.d.ts +2 -0
- package/dist/components/core/Drawer/Drawer.animations.d.ts +10 -0
- package/dist/components/core/Drawer/Drawer.animations.js +104 -0
- package/dist/components/core/Drawer/Drawer.d.ts +21 -0
- package/dist/components/core/Drawer/Drawer.js +80 -0
- package/dist/components/core/Drawer/Drawer.theme.d.ts +30 -0
- package/dist/components/core/Drawer/Drawer.theme.js +37 -0
- package/dist/components/core/Drawer/Drawer.types.d.ts +56 -0
- package/dist/components/core/Drawer/DrawerBody.d.ts +6 -0
- package/dist/components/core/Drawer/DrawerBody.js +13 -0
- package/dist/components/core/Drawer/DrawerFooter.d.ts +6 -0
- package/dist/components/core/Drawer/DrawerFooter.js +13 -0
- package/dist/components/core/Drawer/DrawerHeader.d.ts +6 -0
- package/dist/components/core/Drawer/DrawerHeader.js +18 -0
- package/dist/components/core/Drawer/index.d.ts +2 -0
- package/dist/components/core/Modal/Modal.animations.d.ts +9 -0
- package/dist/components/core/Modal/Modal.animations.js +51 -0
- package/dist/components/core/Modal/Modal.d.ts +21 -0
- package/dist/components/core/Modal/Modal.js +74 -0
- package/dist/components/core/Modal/Modal.theme.d.ts +9 -0
- package/dist/components/core/Modal/Modal.theme.js +19 -0
- package/dist/components/core/Modal/Modal.types.d.ts +53 -0
- package/dist/components/core/Modal/ModalBody.d.ts +6 -0
- package/dist/components/core/Modal/ModalBody.js +13 -0
- package/dist/components/core/Modal/ModalFooter.d.ts +6 -0
- package/dist/components/core/Modal/ModalFooter.js +13 -0
- package/dist/components/core/Modal/ModalHeader.d.ts +6 -0
- package/dist/components/core/Modal/ModalHeader.js +18 -0
- package/dist/components/core/Modal/index.d.ts +2 -0
- package/dist/components/core/Pagination/Pagination.d.ts +7 -0
- package/dist/components/core/Pagination/Pagination.theme.d.ts +23 -0
- package/dist/components/core/Pagination/Pagination.types.d.ts +57 -0
- package/dist/components/core/Pagination/index.d.ts +2 -0
- package/dist/components/core/Popover/Popover.animations.d.ts +5 -0
- package/dist/components/core/Popover/Popover.d.ts +25 -0
- package/dist/components/core/Popover/Popover.js +68 -0
- package/dist/components/core/Popover/Popover.theme.d.ts +12 -0
- package/dist/components/core/Popover/Popover.theme.js +13 -0
- package/dist/components/core/Popover/Popover.types.d.ts +53 -0
- package/dist/components/core/Popover/PopoverContent.d.ts +7 -0
- package/dist/components/core/Popover/PopoverContent.js +190 -0
- package/dist/components/core/Popover/PopoverContext.d.ts +4 -0
- package/dist/components/core/Popover/PopoverContext.js +14 -0
- package/dist/components/core/Popover/PopoverTrigger.d.ts +3 -0
- package/dist/components/core/Popover/PopoverTrigger.js +65 -0
- package/dist/components/core/Popover/index.d.ts +6 -0
- package/dist/components/core/Popover/index.js +6 -0
- package/dist/components/core/Popover/test-popover.d.ts +3 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.d.ts +4 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.js +35 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.theme.d.ts +15 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.theme.js +17 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.types.d.ts +42 -0
- package/dist/components/core/ProgressiveBlur/index.d.ts +2 -0
- package/dist/components/core/Segmented/Segmented.d.ts +6 -0
- package/dist/components/core/Segmented/Segmented.theme.d.ts +30 -0
- package/dist/components/core/Segmented/Segmented.types.d.ts +35 -0
- package/dist/components/core/Segmented/SegmentedContext.d.ts +16 -0
- package/dist/components/core/Segmented/SegmentedItem.d.ts +4 -0
- package/dist/components/core/Segmented/index.d.ts +4 -0
- package/dist/components/core/Stepper/Stepper.animations.d.ts +9 -0
- package/dist/components/core/Stepper/Stepper.d.ts +21 -0
- package/dist/components/core/Stepper/Stepper.theme.d.ts +36 -0
- package/dist/components/core/Stepper/Stepper.types.d.ts +29 -0
- package/dist/components/core/Stepper/components/ConnectorLine.d.ts +21 -0
- package/dist/components/core/Stepper/components/IconCircle.d.ts +19 -0
- package/dist/components/core/Stepper/components/ProgressIndicator.d.ts +7 -0
- package/dist/components/core/Stepper/components/StepContent.d.ts +20 -0
- package/dist/components/core/Stepper/components/StepperItem.d.ts +24 -0
- package/dist/components/core/Stepper/index.d.ts +2 -0
- package/dist/components/core/Tabs/Tabs.d.ts +8 -0
- package/dist/components/core/Tabs/Tabs.js +52 -0
- package/dist/components/core/Tabs/Tabs.theme.d.ts +52 -0
- package/dist/components/core/Tabs/Tabs.theme.js +70 -0
- package/dist/components/core/Tabs/Tabs.types.d.ts +100 -0
- package/dist/components/core/Tabs/TabsContent.d.ts +6 -0
- package/dist/components/core/Tabs/TabsContent.js +29 -0
- package/dist/components/core/Tabs/TabsContext.d.ts +10 -0
- package/dist/components/core/Tabs/TabsContext.js +18 -0
- package/dist/components/core/Tabs/TabsList.d.ts +6 -0
- package/dist/components/core/Tabs/TabsList.js +24 -0
- package/dist/components/core/Tabs/TabsTrigger.d.ts +6 -0
- package/dist/components/core/Tabs/TabsTrigger.js +84 -0
- package/dist/components/core/Tabs/index.d.ts +9 -0
- package/dist/components/core/Tabs/index.js +9 -0
- package/dist/components/core/Tabs/test-tabs.d.ts +3 -0
- package/dist/components/core/Tooltip/Tooltip.animations.d.ts +32 -0
- package/dist/components/core/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/core/Tooltip/Tooltip.theme.d.ts +8 -0
- package/dist/components/core/Tooltip/Tooltip.types.d.ts +81 -0
- package/dist/components/core/Tooltip/index.d.ts +3 -0
- package/dist/components/core/Tree/Tree.animations.d.ts +5 -0
- package/dist/components/core/Tree/Tree.d.ts +2 -0
- package/dist/components/core/Tree/Tree.theme.d.ts +2 -0
- package/dist/components/core/Tree/Tree.types.d.ts +101 -0
- package/dist/components/core/Tree/TreeIcon.d.ts +3 -0
- package/dist/components/core/Tree/TreeNode.d.ts +6 -0
- package/dist/components/core/Tree/index.d.ts +5 -0
- package/dist/components/data-display/Masonry/Masonry.d.ts +4 -0
- package/dist/components/data-display/Masonry/Masonry.js +184 -0
- package/dist/components/data-display/Masonry/Masonry.theme.d.ts +9 -0
- package/dist/components/data-display/Masonry/Masonry.theme.js +40 -0
- package/dist/components/data-display/Masonry/Masonry.types.d.ts +53 -0
- package/dist/components/data-display/Masonry/index.d.ts +3 -0
- package/dist/components/data-display/Table/Table.d.ts +54 -0
- package/dist/components/data-display/Table/Table.theme.d.ts +2 -0
- package/dist/components/data-display/Table/Table.types.d.ts +254 -0
- package/dist/components/data-display/Table/Table.utils.d.ts +8 -0
- package/dist/components/data-display/Table/components/DeclarativeComponents.d.ts +7 -0
- package/dist/components/data-display/Table/components/TableActions/TableActions.d.ts +8 -0
- package/dist/components/data-display/Table/components/TableActions/TableActions.types.d.ts +40 -0
- package/dist/components/data-display/Table/components/TableActions/TableActionsMenu.d.ts +6 -0
- package/dist/components/data-display/Table/components/TableActions/index.d.ts +3 -0
- package/dist/components/data-display/Table/components/TableActionsMenu.d.ts +6 -0
- package/dist/components/data-display/Table/components/TableColumnManager/TableColumnManager.d.ts +3 -0
- package/dist/components/data-display/Table/components/TableColumnManager/TableColumnManager.theme.d.ts +4 -0
- package/dist/components/data-display/Table/components/TableColumnManager/index.d.ts +1 -0
- package/dist/components/data-display/Table/components/TableSelectionHeader/TableSelectionHeader.d.ts +16 -0
- package/dist/components/data-display/Table/components/TableSelectionHeader/index.d.ts +3 -0
- package/dist/components/data-display/Table/components/core/TableBody.d.ts +3 -0
- package/dist/components/data-display/Table/components/core/TableCell.d.ts +22 -0
- package/dist/components/data-display/Table/components/core/TableHeader.d.ts +3 -0
- package/dist/components/data-display/Table/components/core/TableRow.d.ts +3 -0
- package/dist/components/data-display/Table/components/core/index.d.ts +4 -0
- package/dist/components/data-display/Table/index.d.ts +18 -0
- package/dist/components/feedback/Alert/Alert.d.ts +3 -0
- package/dist/components/feedback/Alert/Alert.theme.d.ts +2 -0
- package/dist/components/feedback/Alert/Alert.types.d.ts +40 -0
- package/dist/components/feedback/Alert/index.d.ts +3 -0
- package/dist/components/feedback/ChatMessage/ChatMessage.d.ts +3 -0
- package/dist/components/feedback/ChatMessage/ChatMessage.theme.d.ts +2 -0
- package/dist/components/feedback/ChatMessage/ChatMessage.types.d.ts +66 -0
- package/dist/components/feedback/ChatMessage/index.d.ts +2 -0
- package/dist/components/feedback/Empty/Empty.d.ts +4 -0
- package/dist/components/feedback/Empty/Empty.theme.d.ts +22 -0
- package/dist/components/feedback/Empty/Empty.types.d.ts +40 -0
- package/dist/components/feedback/Empty/index.d.ts +3 -0
- package/dist/components/feedback/Notification/Notification.d.ts +3 -0
- package/dist/components/feedback/Notification/Notification.theme.d.ts +2 -0
- package/dist/components/feedback/Notification/Notification.types.d.ts +55 -0
- package/dist/components/feedback/Notification/index.d.ts +3 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts +4 -0
- package/dist/components/feedback/Spinner/Spinner.js +14 -0
- package/dist/components/feedback/Spinner/Spinner.theme.d.ts +15 -0
- package/dist/components/feedback/Spinner/Spinner.theme.js +26 -0
- package/dist/components/feedback/Spinner/Spinner.types.d.ts +31 -0
- package/dist/components/feedback/Spinner/index.d.ts +2 -0
- package/dist/components/feedback/Toast/Toast.d.ts +3 -0
- package/dist/components/feedback/Toast/Toast.theme.d.ts +2 -0
- package/dist/components/feedback/Toast/Toast.types.d.ts +99 -0
- package/dist/components/feedback/Toast/ToastProvider.d.ts +4 -0
- package/dist/components/feedback/Toast/index.d.ts +5 -0
- package/dist/components/feedback/Toast/useToast.d.ts +2 -0
- package/dist/components/feedback/index.d.ts +11 -0
- package/dist/components/forms/Checkbox/Checkbox.d.ts +7 -0
- package/dist/components/forms/Checkbox/Checkbox.js +51 -0
- package/dist/components/forms/Checkbox/Checkbox.theme.d.ts +5 -0
- package/dist/components/forms/Checkbox/Checkbox.theme.js +13 -0
- package/dist/components/forms/Checkbox/Checkbox.types.d.ts +52 -0
- package/dist/components/forms/Checkbox/index.d.ts +3 -0
- package/dist/components/forms/DatePicker/DatePicker.animations.d.ts +34 -0
- package/dist/components/forms/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/forms/DatePicker/DatePicker.theme.d.ts +6 -0
- package/dist/components/forms/DatePicker/DatePicker.types.d.ts +106 -0
- package/dist/components/forms/DatePicker/components/CalendarHeader/CalendarHeader.d.ts +7 -0
- package/dist/components/forms/DatePicker/components/CalendarHeader/CalendarHeader.theme.d.ts +6 -0
- package/dist/components/forms/DatePicker/components/CalendarHeader/CalendarHeader.types.d.ts +42 -0
- package/dist/components/forms/DatePicker/components/CalendarHeader/index.d.ts +3 -0
- package/dist/components/forms/DatePicker/components/DateInput/DateInput.d.ts +7 -0
- package/dist/components/forms/DatePicker/components/DateInput/DateInput.types.d.ts +25 -0
- package/dist/components/forms/DatePicker/components/DateInput/index.d.ts +2 -0
- package/dist/components/forms/DatePicker/components/MonthPicker/MonthPicker.d.ts +7 -0
- package/dist/components/forms/DatePicker/components/MonthPicker/MonthPicker.theme.d.ts +6 -0
- package/dist/components/forms/DatePicker/components/MonthPicker/MonthPicker.types.d.ts +64 -0
- package/dist/components/forms/DatePicker/components/MonthPicker/index.d.ts +3 -0
- package/dist/components/forms/DatePicker/components/YearPicker/YearPicker.d.ts +7 -0
- package/dist/components/forms/DatePicker/components/YearPicker/YearPicker.theme.d.ts +6 -0
- package/dist/components/forms/DatePicker/components/YearPicker/YearPicker.types.d.ts +62 -0
- package/dist/components/forms/DatePicker/components/YearPicker/index.d.ts +3 -0
- package/dist/components/forms/DatePicker/components/index.d.ts +8 -0
- package/dist/components/forms/DatePicker/index.d.ts +5 -0
- package/dist/components/forms/DateRangePicker/DateRangePicker.d.ts +7 -0
- package/dist/components/forms/DateRangePicker/DateRangePicker.theme.d.ts +6 -0
- package/dist/components/forms/DateRangePicker/DateRangePicker.types.d.ts +129 -0
- package/dist/components/forms/DateRangePicker/index.d.ts +3 -0
- package/dist/components/forms/FormLabel/FormLabel.d.ts +7 -0
- package/dist/components/forms/FormLabel/FormLabel.js +23 -0
- package/dist/components/forms/FormLabel/FormLabel.theme.d.ts +6 -0
- package/dist/components/forms/FormLabel/FormLabel.theme.js +17 -0
- package/dist/components/forms/FormLabel/FormLabel.types.d.ts +36 -0
- package/dist/components/forms/FormLabel/index.d.ts +3 -0
- package/dist/components/forms/Input/Input.AdvancedStories.d.ts +13 -0
- package/dist/components/forms/Input/Input.d.ts +4 -0
- package/dist/components/forms/Input/Input.js +346 -0
- package/dist/components/forms/Input/Input.theme.d.ts +7 -0
- package/dist/components/forms/Input/Input.theme.js +82 -0
- package/dist/components/forms/Input/Input.types.d.ts +162 -0
- package/dist/components/forms/Input/index.d.ts +3 -0
- package/dist/components/forms/Input/inputMasks.d.ts +67 -0
- package/dist/components/forms/Input/inputMasks.js +198 -0
- package/dist/components/forms/InputAddress/InputAddress.d.ts +19 -0
- package/dist/components/forms/InputAddress/InputAddress.js +77 -0
- package/dist/components/forms/InputAddress/InputAddress.theme.d.ts +26 -0
- package/dist/components/forms/InputAddress/InputAddress.theme.js +30 -0
- package/dist/components/forms/InputAddress/InputAddress.types.d.ts +93 -0
- package/dist/components/forms/InputAddress/index.d.ts +3 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.animations.d.ts +9 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.d.ts +19 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.theme.d.ts +31 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.types.d.ts +88 -0
- package/dist/components/forms/InputCreditCard/index.d.ts +4 -0
- package/dist/components/forms/InputOTP/InputOTP.d.ts +18 -0
- package/dist/components/forms/InputOTP/InputOTP.js +177 -0
- package/dist/components/forms/InputOTP/InputOTP.theme.d.ts +2 -0
- package/dist/components/forms/InputOTP/InputOTP.theme.js +11 -0
- package/dist/components/forms/InputOTP/InputOTP.types.d.ts +50 -0
- package/dist/components/forms/InputOTP/index.d.ts +3 -0
- package/dist/components/forms/Radio/Radio.d.ts +7 -0
- package/dist/components/forms/Radio/Radio.js +41 -0
- package/dist/components/forms/Radio/Radio.theme.d.ts +21 -0
- package/dist/components/forms/Radio/Radio.theme.js +25 -0
- package/dist/components/forms/Radio/Radio.types.d.ts +51 -0
- package/dist/components/forms/Radio/index.d.ts +3 -0
- package/dist/components/forms/Select/Select.animations.d.ts +5 -0
- package/dist/components/forms/Select/Select.animations.js +30 -0
- package/dist/components/forms/Select/Select.d.ts +22 -0
- package/dist/components/forms/Select/Select.js +277 -0
- package/dist/components/forms/Select/Select.theme.d.ts +6 -0
- package/dist/components/forms/Select/Select.theme.js +55 -0
- package/dist/components/forms/Select/Select.types.d.ts +184 -0
- package/dist/components/forms/Select/index.d.ts +4 -0
- package/dist/components/forms/Signature/Signature.d.ts +3 -0
- package/dist/components/forms/Signature/Signature.js +120 -0
- package/dist/components/forms/Signature/Signature.theme.d.ts +2 -0
- package/dist/components/forms/Signature/Signature.theme.js +8 -0
- package/dist/components/forms/Signature/Signature.types.d.ts +37 -0
- package/dist/components/forms/Signature/index.d.ts +2 -0
- package/dist/components/forms/Slider/Slider.d.ts +4 -0
- package/dist/components/forms/Slider/Slider.theme.d.ts +7 -0
- package/dist/components/forms/Slider/Slider.types.d.ts +131 -0
- package/dist/components/forms/Slider/index.d.ts +3 -0
- package/dist/components/forms/Switch/Switch.d.ts +7 -0
- package/dist/components/forms/Switch/Switch.js +61 -0
- package/dist/components/forms/Switch/Switch.theme.d.ts +34 -0
- package/dist/components/forms/Switch/Switch.theme.js +43 -0
- package/dist/components/forms/Switch/Switch.types.d.ts +66 -0
- package/dist/components/forms/Switch/index.d.ts +3 -0
- package/dist/components/forms/Textarea/Textarea.d.ts +4 -0
- package/dist/components/forms/Textarea/Textarea.js +46 -0
- package/dist/components/forms/Textarea/Textarea.theme.d.ts +7 -0
- package/dist/components/forms/Textarea/Textarea.theme.js +26 -0
- package/dist/components/forms/Textarea/Textarea.types.d.ts +55 -0
- package/dist/components/forms/Textarea/index.d.ts +3 -0
- package/dist/components/forms/TimePicker/TimePicker.animations.d.ts +178 -0
- package/dist/components/forms/TimePicker/TimePicker.animations.js +188 -0
- package/dist/components/forms/TimePicker/TimePicker.d.ts +7 -0
- package/dist/components/forms/TimePicker/TimePicker.js +413 -0
- package/dist/components/forms/TimePicker/TimePicker.theme.d.ts +9 -0
- package/dist/components/forms/TimePicker/TimePicker.theme.js +113 -0
- package/dist/components/forms/TimePicker/TimePicker.types.d.ts +158 -0
- package/dist/components/forms/TimePicker/index.d.ts +4 -0
- package/dist/components/forms/forms.theme.d.ts +49 -0
- package/dist/components/forms/forms.theme.js +61 -0
- package/dist/components/forms/index.d.ts +12 -0
- package/dist/components/layout/DragDrop/DragDrop.d.ts +4 -0
- package/dist/components/layout/DragDrop/DragDrop.theme.d.ts +2 -0
- package/dist/components/layout/DragDrop/DragDrop.types.d.ts +50 -0
- package/dist/components/layout/DragDrop/index.d.ts +2 -0
- package/dist/components/layout/Sortable/Sortable.d.ts +4 -0
- package/dist/components/layout/Sortable/Sortable.theme.d.ts +2 -0
- package/dist/components/layout/Sortable/Sortable.types.d.ts +67 -0
- package/dist/components/layout/Sortable/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/navigation/NavItem/NavItem.d.ts +3 -0
- package/dist/components/navigation/NavItem/NavItem.theme.d.ts +2 -0
- package/dist/components/navigation/NavItem/NavItem.types.d.ts +113 -0
- package/dist/components/navigation/NavItem/index.d.ts +2 -0
- package/dist/components/navigation/Sidebar/Sidebar.d.ts +3 -0
- package/dist/components/navigation/Sidebar/Sidebar.theme.d.ts +2 -0
- package/dist/components/navigation/Sidebar/Sidebar.types.d.ts +129 -0
- package/dist/components/navigation/Sidebar/SidebarContent.d.ts +3 -0
- package/dist/components/navigation/Sidebar/SidebarContext.d.ts +17 -0
- package/dist/components/navigation/Sidebar/SidebarFooter.d.ts +3 -0
- package/dist/components/navigation/Sidebar/SidebarHeader.d.ts +3 -0
- package/dist/components/navigation/Sidebar/SidebarNav.d.ts +3 -0
- package/dist/components/navigation/Sidebar/SidebarNavGroup.d.ts +3 -0
- package/dist/components/navigation/Sidebar/SidebarToggle.d.ts +3 -0
- package/dist/components/navigation/Sidebar/index.d.ts +9 -0
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/icons/Icon.d.ts +17 -0
- package/dist/icons/Icon.js +28 -0
- package/dist/icons/Index.d.ts +16 -0
- package/dist/icons/core/ChevronUpDown.d.ts +1 -0
- package/dist/icons/core/ChevronUpDown.js +10 -0
- package/dist/icons/core/DollarIcon.d.ts +1 -0
- package/dist/icons/core/DollarIcon.js +8 -0
- package/dist/icons/core/LockIcon.d.ts +1 -0
- package/dist/icons/core/LockIcon.js +8 -0
- package/dist/icons/core/MinusIcon.d.ts +1 -0
- package/dist/icons/core/MinusIcon.js +9 -0
- package/dist/icons/core/PlusIcon.d.ts +1 -0
- package/dist/icons/core/PlusIcon.js +10 -0
- package/dist/icons/core/SearchIcon.d.ts +1 -0
- package/dist/icons/core/SearchIcon.js +10 -0
- package/dist/icons/core/TickIcon.d.ts +1 -0
- package/dist/icons/core/TickIcon.js +7 -0
- package/dist/icons/core/User.d.ts +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +40 -0
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronRightIcon.js +26 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/CheckIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronRightIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronUpDownIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/MinusIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/solid/esm/EyeIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/solid/esm/EyeSlashIcon.js +28 -0
- package/dist/node_modules/@heroicons/react/24/solid/esm/LockClosedIcon.js +26 -0
- package/dist/node_modules/clsx/dist/clsx.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js +80 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +103 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +85 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +59 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/calc-child-stagger.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +40 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +87 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +165 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +501 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +129 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +157 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +50 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +36 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +40 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +147 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +72 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +49 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +107 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +38 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +139 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +79 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +57 -0
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +91 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +119 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +54 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +1582 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +112 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +35 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +49 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +489 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +45 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +59 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +57 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +65 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +62 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/store.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +45 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +57 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +357 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +51 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +36 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +47 -0
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +37 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +38 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-spring.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +176 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +341 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +158 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +65 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +87 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +51 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +86 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +176 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +131 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +147 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +36 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +3 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +43 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +71 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +81 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +83 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +3 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +3 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +83 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +79 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +47 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +93 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/utils/transform.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +325 -0
- package/dist/node_modules/motion-dom/dist/es/value/spring-value.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +40 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +91 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +50 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +3 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +3 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +3 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +3 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +51 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +3 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +41 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +18 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +3 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +11 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +11 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +19 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +40 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +11 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +11 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +368 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +44 -0
- package/dist/node_modules/react/jsx-runtime.js +19 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2956 -0
- package/dist/node_modules/tslib/tslib.es6.js +56 -0
- package/dist/styles.css +2 -0
- package/dist/theme/ThemeContext.d.ts +15 -0
- package/dist/types/button.types.d.ts +28 -0
- package/dist/utils/calendarUtils.d.ts +60 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.js +12 -0
- package/dist/utils/dateUtils.d.ts +58 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/useClickOutside.d.ts +7 -0
- package/dist/utils/useClickOutside.js +26 -0
- package/package.json +87 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { __rest, __assign } from '../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import React__default, { useRef, useState, useCallback, useEffect } from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { getMasonryTheme } from './Masonry.theme.js';
|
|
5
|
+
|
|
6
|
+
var Masonry = function (_a) {
|
|
7
|
+
var children = _a.children, _b = _a.columns, columns = _b === void 0 ? 3 : _b, _c = _a.gap, gap = _c === void 0 ? 16 : _c, gapBreakpoints = _a.gapBreakpoints, className = _a.className, style = _a.style, _d = _a.minColumns, minColumns = _d === void 0 ? 1 : _d, _e = _a.maxColumns, maxColumns = _e === void 0 ? 10 : _e, _f = _a.sequential, sequential = _f === void 0 ? false : _f, themeOverrides = _a.themeOverrides, _g = _a.loading, loading = _g === void 0 ? false : _g, props = __rest(_a, ["children", "columns", "gap", "gapBreakpoints", "className", "style", "minColumns", "maxColumns", "sequential", "themeOverrides", "loading"]);
|
|
8
|
+
var containerRef = useRef(null);
|
|
9
|
+
var _h = useState(typeof columns === 'number' ? columns : 3), currentColumns = _h[0], setCurrentColumns = _h[1];
|
|
10
|
+
var _j = useState(gap), currentGap = _j[0], setCurrentGap = _j[1];
|
|
11
|
+
var _k = useState(0), containerWidth = _k[0], setContainerWidth = _k[1];
|
|
12
|
+
// Get the theme with any overrides applied
|
|
13
|
+
var theme = getMasonryTheme(themeOverrides);
|
|
14
|
+
// Calculate responsive columns and gap
|
|
15
|
+
var calculateLayout = useCallback(function () {
|
|
16
|
+
if (!containerRef.current)
|
|
17
|
+
return;
|
|
18
|
+
// Use getBoundingClientRect for more accurate width measurement
|
|
19
|
+
var containerRect = containerRef.current.getBoundingClientRect();
|
|
20
|
+
var width = Math.floor(containerRect.width);
|
|
21
|
+
// Only update if width actually changed to prevent unnecessary re-renders
|
|
22
|
+
if (width !== containerWidth && width > 0) {
|
|
23
|
+
setContainerWidth(width);
|
|
24
|
+
}
|
|
25
|
+
// Handle responsive columns
|
|
26
|
+
if (typeof columns === 'object') {
|
|
27
|
+
var breakpoints = Object.keys(columns)
|
|
28
|
+
.map(Number)
|
|
29
|
+
.sort(function (a, b) { return a - b; });
|
|
30
|
+
var newColumns = 3; // Default fallback
|
|
31
|
+
for (var _i = 0, breakpoints_1 = breakpoints; _i < breakpoints_1.length; _i++) {
|
|
32
|
+
var breakpoint = breakpoints_1[_i];
|
|
33
|
+
if (width >= breakpoint) {
|
|
34
|
+
newColumns = columns[breakpoint];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// Ensure columns are within min/max bounds
|
|
38
|
+
newColumns = Math.min(Math.max(newColumns, minColumns), maxColumns);
|
|
39
|
+
setCurrentColumns(newColumns);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
var clampedColumns = Math.min(Math.max(columns, minColumns), maxColumns);
|
|
43
|
+
setCurrentColumns(clampedColumns);
|
|
44
|
+
}
|
|
45
|
+
// Handle responsive gap
|
|
46
|
+
if (gapBreakpoints) {
|
|
47
|
+
var gapBreakpointKeys = Object.keys(gapBreakpoints)
|
|
48
|
+
.map(Number)
|
|
49
|
+
.sort(function (a, b) { return a - b; });
|
|
50
|
+
var newGap = gap;
|
|
51
|
+
for (var _a = 0, gapBreakpointKeys_1 = gapBreakpointKeys; _a < gapBreakpointKeys_1.length; _a++) {
|
|
52
|
+
var breakpoint = gapBreakpointKeys_1[_a];
|
|
53
|
+
if (width >= breakpoint) {
|
|
54
|
+
newGap = gapBreakpoints[breakpoint];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
setCurrentGap(newGap);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
setCurrentGap(gap);
|
|
61
|
+
}
|
|
62
|
+
}, [columns, gap, gapBreakpoints, minColumns, maxColumns, containerWidth]);
|
|
63
|
+
// Arrange items in masonry layout
|
|
64
|
+
var arrangeItems = useCallback(function () {
|
|
65
|
+
if (!containerRef.current)
|
|
66
|
+
return;
|
|
67
|
+
var container = containerRef.current;
|
|
68
|
+
var items = Array.from(container.children);
|
|
69
|
+
if (items.length === 0)
|
|
70
|
+
return;
|
|
71
|
+
// Get fresh container width to avoid stale closure issues
|
|
72
|
+
var currentContainerWidth = container.offsetWidth;
|
|
73
|
+
// Calculate column width
|
|
74
|
+
var availableWidth = currentContainerWidth - (currentGap * (currentColumns - 1));
|
|
75
|
+
var columnWidth = Math.floor(availableWidth / currentColumns);
|
|
76
|
+
if (columnWidth <= 0)
|
|
77
|
+
return; // Prevent invalid layouts
|
|
78
|
+
// Initialize column heights
|
|
79
|
+
var columnHeights = new Array(currentColumns).fill(0);
|
|
80
|
+
// Process items synchronously first for positioning
|
|
81
|
+
items.forEach(function (item, index) {
|
|
82
|
+
var _a;
|
|
83
|
+
// Reset item positioning
|
|
84
|
+
item.style.position = 'absolute';
|
|
85
|
+
item.style.width = "".concat(columnWidth, "px");
|
|
86
|
+
// Apply transition classes
|
|
87
|
+
if (!item.classList.contains('transition-all')) {
|
|
88
|
+
(_a = item.classList).add.apply(_a, theme.animations.transition.split(' '));
|
|
89
|
+
}
|
|
90
|
+
var targetColumn;
|
|
91
|
+
if (sequential) {
|
|
92
|
+
// Sequential placement: round-robin distribution
|
|
93
|
+
targetColumn = index % currentColumns;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
// Optimal placement: shortest column
|
|
97
|
+
targetColumn = columnHeights.indexOf(Math.min.apply(Math, columnHeights));
|
|
98
|
+
}
|
|
99
|
+
// Calculate position
|
|
100
|
+
var left = targetColumn * (columnWidth + currentGap);
|
|
101
|
+
var top = columnHeights[targetColumn];
|
|
102
|
+
// Position the item
|
|
103
|
+
item.style.left = "".concat(left, "px");
|
|
104
|
+
item.style.top = "".concat(top, "px");
|
|
105
|
+
// Force layout to get accurate height measurement
|
|
106
|
+
var itemHeight = item.offsetHeight;
|
|
107
|
+
if (itemHeight > 0) {
|
|
108
|
+
columnHeights[targetColumn] = top + itemHeight + currentGap;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
// Set final container height after all items are positioned
|
|
112
|
+
requestAnimationFrame(function () {
|
|
113
|
+
var maxHeight = Math.max.apply(Math, columnHeights) - currentGap;
|
|
114
|
+
container.style.height = "".concat(Math.max(0, maxHeight), "px");
|
|
115
|
+
});
|
|
116
|
+
}, [currentColumns, currentGap, sequential, theme.animations.transition]);
|
|
117
|
+
// Handle container resize with ResizeObserver for better performance
|
|
118
|
+
useEffect(function () {
|
|
119
|
+
if (!containerRef.current)
|
|
120
|
+
return;
|
|
121
|
+
var resizeTimeoutId;
|
|
122
|
+
var resizeObserver = new ResizeObserver(function (_entries) {
|
|
123
|
+
// Debounce resize events to prevent excessive recalculations
|
|
124
|
+
clearTimeout(resizeTimeoutId);
|
|
125
|
+
resizeTimeoutId = setTimeout(function () {
|
|
126
|
+
calculateLayout();
|
|
127
|
+
}, 100);
|
|
128
|
+
});
|
|
129
|
+
// Fallback window resize handler for older browsers
|
|
130
|
+
var handleWindowResize = function () {
|
|
131
|
+
clearTimeout(resizeTimeoutId);
|
|
132
|
+
resizeTimeoutId = setTimeout(function () {
|
|
133
|
+
calculateLayout();
|
|
134
|
+
}, 100);
|
|
135
|
+
};
|
|
136
|
+
resizeObserver.observe(containerRef.current);
|
|
137
|
+
window.addEventListener('resize', handleWindowResize);
|
|
138
|
+
return function () {
|
|
139
|
+
resizeObserver.disconnect();
|
|
140
|
+
window.removeEventListener('resize', handleWindowResize);
|
|
141
|
+
clearTimeout(resizeTimeoutId);
|
|
142
|
+
};
|
|
143
|
+
}, [calculateLayout]);
|
|
144
|
+
// Initial layout calculation and arrangement
|
|
145
|
+
useEffect(function () {
|
|
146
|
+
// Wait for next tick to ensure container is mounted and measured
|
|
147
|
+
var timer = setTimeout(function () {
|
|
148
|
+
calculateLayout();
|
|
149
|
+
// Only arrange items if we have a valid container width
|
|
150
|
+
if (containerWidth > 0) {
|
|
151
|
+
arrangeItems();
|
|
152
|
+
}
|
|
153
|
+
}, 0);
|
|
154
|
+
return function () { return clearTimeout(timer); };
|
|
155
|
+
}, [calculateLayout, arrangeItems, children, containerWidth]);
|
|
156
|
+
// Re-arrange when children change (with debouncing)
|
|
157
|
+
useEffect(function () {
|
|
158
|
+
var timeoutId;
|
|
159
|
+
var observer = new MutationObserver(function () {
|
|
160
|
+
// Debounce multiple rapid changes
|
|
161
|
+
clearTimeout(timeoutId);
|
|
162
|
+
timeoutId = setTimeout(function () {
|
|
163
|
+
arrangeItems();
|
|
164
|
+
}, 10);
|
|
165
|
+
});
|
|
166
|
+
if (containerRef.current) {
|
|
167
|
+
observer.observe(containerRef.current, {
|
|
168
|
+
childList: true,
|
|
169
|
+
subtree: false, // Only watch direct children, not nested changes
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
return function () {
|
|
173
|
+
observer.disconnect();
|
|
174
|
+
clearTimeout(timeoutId);
|
|
175
|
+
};
|
|
176
|
+
}, [arrangeItems]);
|
|
177
|
+
// Generate container classes
|
|
178
|
+
var containerClasses = cn(theme.container.base, loading && theme.container.loading, className);
|
|
179
|
+
return (React__default.createElement("div", __assign({ ref: containerRef, className: containerClasses, style: __assign(__assign({}, style), {
|
|
180
|
+
// Ensure container has minimum dimensions for proper layout calculation
|
|
181
|
+
minHeight: loading ? '200px' : undefined }) }, props), children));
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export { Masonry as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MasonryTheme, MasonryThemeOverrides } from './Masonry.types';
|
|
2
|
+
/**
|
|
3
|
+
* Default theme for the Masonry component
|
|
4
|
+
*/
|
|
5
|
+
export declare const masonryTheme: MasonryTheme;
|
|
6
|
+
/**
|
|
7
|
+
* Apply theme overrides to the default theme
|
|
8
|
+
*/
|
|
9
|
+
export declare const getMasonryTheme: (overrides?: MasonryThemeOverrides) => MasonryTheme;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __assign } from '../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Default theme for the Masonry component
|
|
5
|
+
*/
|
|
6
|
+
var masonryTheme = {
|
|
7
|
+
// Container styles
|
|
8
|
+
container: {
|
|
9
|
+
base: "relative w-full overflow-hidden",
|
|
10
|
+
loading: "opacity-70 pointer-events-none",
|
|
11
|
+
},
|
|
12
|
+
// Item styles (utility classes for masonry items)
|
|
13
|
+
item: {
|
|
14
|
+
base: "relative overflow-hidden rounded-[var(--form-rounded)] bg-white border border-border transition-all duration-[var(--default-transition-duration)] ease-[var(--default-transition-timing-function)]",
|
|
15
|
+
hover: "hover:-translate-y-0.5 ",
|
|
16
|
+
content: "p-4",
|
|
17
|
+
title: "text-lg font-semibold mb-2 text-neutral-900",
|
|
18
|
+
description: "text-sm text-neutral-600 leading-relaxed",
|
|
19
|
+
},
|
|
20
|
+
// Animation classes
|
|
21
|
+
animations: {
|
|
22
|
+
transition: "transition-all duration-[var(--default-transition-duration)] ease-[var(--default-transition-timing-function)]",
|
|
23
|
+
enter: "opacity-0 scale-95",
|
|
24
|
+
exit: "opacity-100 scale-100",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Apply theme overrides to the default theme
|
|
29
|
+
*/
|
|
30
|
+
var getMasonryTheme = function (overrides) {
|
|
31
|
+
if (!overrides)
|
|
32
|
+
return masonryTheme;
|
|
33
|
+
return {
|
|
34
|
+
container: __assign(__assign({}, masonryTheme.container), overrides.container),
|
|
35
|
+
item: __assign(__assign({}, masonryTheme.item), overrides.item),
|
|
36
|
+
animations: __assign(__assign({}, masonryTheme.animations), overrides.animations),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { getMasonryTheme, masonryTheme };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Theme configuration for the Masonry component
|
|
4
|
+
*/
|
|
5
|
+
export interface MasonryTheme {
|
|
6
|
+
container: {
|
|
7
|
+
base: string;
|
|
8
|
+
loading: string;
|
|
9
|
+
};
|
|
10
|
+
item: {
|
|
11
|
+
base: string;
|
|
12
|
+
hover: string;
|
|
13
|
+
content: string;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
animations: {
|
|
18
|
+
transition: string;
|
|
19
|
+
enter: string;
|
|
20
|
+
exit: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Masonry theme overrides interface for customization
|
|
25
|
+
*/
|
|
26
|
+
export interface MasonryThemeOverrides {
|
|
27
|
+
container?: Partial<MasonryTheme['container']>;
|
|
28
|
+
item?: Partial<MasonryTheme['item']>;
|
|
29
|
+
animations?: Partial<MasonryTheme['animations']>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Masonry component props
|
|
33
|
+
*/
|
|
34
|
+
export interface MasonryProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
/** Children elements to be arranged in masonry layout */
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
/** Number of columns (static) or breakpoint configuration (responsive) */
|
|
38
|
+
columns?: number | Record<number, number>;
|
|
39
|
+
/** Gap between items in pixels */
|
|
40
|
+
gap?: number;
|
|
41
|
+
/** Gap configuration for different breakpoints */
|
|
42
|
+
gapBreakpoints?: Record<number, number>;
|
|
43
|
+
/** Minimum columns count */
|
|
44
|
+
minColumns?: number;
|
|
45
|
+
/** Maximum columns count */
|
|
46
|
+
maxColumns?: number;
|
|
47
|
+
/** Enable sequential placement (items placed in order vs optimal placement) */
|
|
48
|
+
sequential?: boolean;
|
|
49
|
+
/** Theme overrides for customizing appearance */
|
|
50
|
+
themeOverrides?: MasonryThemeOverrides;
|
|
51
|
+
/** Loading state */
|
|
52
|
+
loading?: boolean;
|
|
53
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableProps, TableContextType } from "./Table.types";
|
|
3
|
+
/**
|
|
4
|
+
* Context for sharing table state across all table components
|
|
5
|
+
* Provides theme, configuration, and callback functions to child components
|
|
6
|
+
*/
|
|
7
|
+
declare const TableContext: React.Context<TableContextType>;
|
|
8
|
+
/**
|
|
9
|
+
* Enhanced Table component with dual API support (declarative and data-driven)
|
|
10
|
+
*
|
|
11
|
+
* Features:
|
|
12
|
+
* - Dual API: Use with data/columns props OR declarative Table.Header/Body/Row/Cell components
|
|
13
|
+
* - Stable row identification using rowKey prop for consistent React reconciliation
|
|
14
|
+
* - Column management with visibility controls
|
|
15
|
+
* - Sorting, filtering, row selection, and expansion
|
|
16
|
+
* - Frozen columns and headers
|
|
17
|
+
* - Pagination support
|
|
18
|
+
* - Full accessibility compliance (WCAG 2.1 AA)
|
|
19
|
+
* - Theme customization with className overrides
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // Data-driven API with stable row keys
|
|
23
|
+
* <Table data={data} columns={columns} rowKey="id" sortable selectable />
|
|
24
|
+
*
|
|
25
|
+
* // Using a function for complex row keys
|
|
26
|
+
* <Table
|
|
27
|
+
* data={data}
|
|
28
|
+
* columns={columns}
|
|
29
|
+
* rowKey={(row, index) => `${row.category}-${row.id}`}
|
|
30
|
+
* sortable
|
|
31
|
+
* selectable
|
|
32
|
+
* />
|
|
33
|
+
*
|
|
34
|
+
* // Declarative API
|
|
35
|
+
* <Table>
|
|
36
|
+
* <Table.Header>
|
|
37
|
+
* <Table.Row>
|
|
38
|
+
* <Table.HeaderCell>Name</Table.HeaderCell>
|
|
39
|
+
* </Table.Row>
|
|
40
|
+
* </Table.Header>
|
|
41
|
+
* <Table.Body>
|
|
42
|
+
* <Table.Row>
|
|
43
|
+
* <Table.Cell>John Doe</Table.Cell>
|
|
44
|
+
* </Table.Row>
|
|
45
|
+
* </Table.Body>
|
|
46
|
+
* </Table>
|
|
47
|
+
*/
|
|
48
|
+
declare function TableComponent<T extends Record<string, any>>(props: TableProps<T>): React.ReactElement;
|
|
49
|
+
declare namespace TableComponent {
|
|
50
|
+
var displayName: string;
|
|
51
|
+
}
|
|
52
|
+
declare const Table: typeof TableComponent;
|
|
53
|
+
export default Table;
|
|
54
|
+
export { TableContext };
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface BulkAction {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: React.ComponentType<{
|
|
6
|
+
className?: string;
|
|
7
|
+
}>;
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'danger';
|
|
9
|
+
onClick: (selectedRows: string[]) => void;
|
|
10
|
+
}
|
|
11
|
+
export type TableSize = 'sm' | 'md' | 'lg';
|
|
12
|
+
export type TableVariant = 'default' | 'striped' | 'bordered' | 'compact';
|
|
13
|
+
export type TableAlignment = 'left' | 'center' | 'right';
|
|
14
|
+
export type SelectionType = 'checkbox' | 'radio';
|
|
15
|
+
export interface Column<T = any> {
|
|
16
|
+
id: string;
|
|
17
|
+
header: string | ReactNode;
|
|
18
|
+
accessor: keyof T | ((row: T) => any);
|
|
19
|
+
cell?: (row: T) => ReactNode;
|
|
20
|
+
sortable?: boolean;
|
|
21
|
+
filterable?: boolean;
|
|
22
|
+
ellipsis?: boolean;
|
|
23
|
+
tooltip?: boolean | ((row: T) => string);
|
|
24
|
+
width?: string | number;
|
|
25
|
+
align?: TableAlignment;
|
|
26
|
+
hidden?: boolean;
|
|
27
|
+
locked?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface SortConfig {
|
|
30
|
+
columnId: string;
|
|
31
|
+
direction: 'asc' | 'desc';
|
|
32
|
+
priority: number;
|
|
33
|
+
}
|
|
34
|
+
export interface FilterConfig {
|
|
35
|
+
columnId: string;
|
|
36
|
+
value: any;
|
|
37
|
+
}
|
|
38
|
+
export interface TableThemeOverrides {
|
|
39
|
+
baseStyle?: string;
|
|
40
|
+
variants?: Partial<Record<TableVariant, string>>;
|
|
41
|
+
sizes?: Partial<Record<TableSize, string>>;
|
|
42
|
+
headerStyle?: string;
|
|
43
|
+
cellStyle?: string;
|
|
44
|
+
rowStyle?: string;
|
|
45
|
+
selectedRowStyle?: string;
|
|
46
|
+
hoverRowStyle?: string;
|
|
47
|
+
frozenColumnStyle?: string;
|
|
48
|
+
lastFrozenColumnStyle?: string;
|
|
49
|
+
frozenHeaderStyle?: string;
|
|
50
|
+
bodyStyle?: string;
|
|
51
|
+
headerContainerStyle?: string;
|
|
52
|
+
paginationContainer?: string;
|
|
53
|
+
paginationLeftSection?: string;
|
|
54
|
+
paginationRightSection?: string;
|
|
55
|
+
paginationLabel?: string;
|
|
56
|
+
paginationSelect?: string;
|
|
57
|
+
paginationButton?: string;
|
|
58
|
+
paginationInfo?: string;
|
|
59
|
+
columnManagerButton?: string;
|
|
60
|
+
columnManagerContainer?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface TableContextType {
|
|
63
|
+
theme: TableThemeOverrides;
|
|
64
|
+
size: TableSize;
|
|
65
|
+
variant: TableVariant;
|
|
66
|
+
freezeHeader?: boolean;
|
|
67
|
+
freezeFirstColumn?: boolean;
|
|
68
|
+
freezeLastColumn?: boolean;
|
|
69
|
+
sortable?: boolean;
|
|
70
|
+
sortConfig?: SortConfig[];
|
|
71
|
+
onSortChange?: (sortConfig: SortConfig[]) => void;
|
|
72
|
+
filterable?: boolean;
|
|
73
|
+
filterConfig?: FilterConfig[];
|
|
74
|
+
onFilterChange?: (filterConfig: FilterConfig[]) => void;
|
|
75
|
+
expandable?: boolean;
|
|
76
|
+
expandedRows?: string[];
|
|
77
|
+
onExpandedRowsChange?: (expandedRows: string[]) => void;
|
|
78
|
+
selectable?: boolean;
|
|
79
|
+
selectionType?: SelectionType;
|
|
80
|
+
selectedRows?: string[];
|
|
81
|
+
onSelectionChange?: (selectedRows: string[]) => void;
|
|
82
|
+
}
|
|
83
|
+
export interface TableProps<T = any> {
|
|
84
|
+
data?: T[];
|
|
85
|
+
columns?: Column<T>[];
|
|
86
|
+
/**
|
|
87
|
+
* Property name or function to extract stable row identifiers for React keys and selection.
|
|
88
|
+
* Provides consistent component identity during row reordering or updates.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* // Using a property name
|
|
92
|
+
* rowKey="id"
|
|
93
|
+
*
|
|
94
|
+
* // Using a function for complex keys
|
|
95
|
+
* rowKey={(row, index) => `${row.category}-${row.id}`}
|
|
96
|
+
*/
|
|
97
|
+
rowKey?: keyof T | ((row: T, index: number) => string | number);
|
|
98
|
+
size?: TableSize;
|
|
99
|
+
variant?: TableVariant;
|
|
100
|
+
theme?: TableThemeOverrides;
|
|
101
|
+
className?: string;
|
|
102
|
+
freezeHeader?: boolean;
|
|
103
|
+
freezeFirstColumn?: boolean;
|
|
104
|
+
freezeLastColumn?: boolean;
|
|
105
|
+
sortable?: boolean;
|
|
106
|
+
sortConfig?: SortConfig[];
|
|
107
|
+
onSortChange?: (sortConfig: SortConfig[]) => void;
|
|
108
|
+
filterable?: boolean;
|
|
109
|
+
filterConfig?: FilterConfig[];
|
|
110
|
+
onFilterChange?: (filterConfig: FilterConfig[]) => void;
|
|
111
|
+
expandable?: boolean;
|
|
112
|
+
expandedRowRender?: (row: T) => ReactNode;
|
|
113
|
+
expandedRows?: string[];
|
|
114
|
+
onExpandedRowsChange?: (expandedRows: string[]) => void;
|
|
115
|
+
selectable?: boolean;
|
|
116
|
+
selectionType?: SelectionType;
|
|
117
|
+
selectedRows?: string[];
|
|
118
|
+
onSelectionChange?: (selectedRows: string[]) => void;
|
|
119
|
+
bulkActions?: BulkAction[];
|
|
120
|
+
showColumnManager?: boolean;
|
|
121
|
+
visibleColumns?: string[];
|
|
122
|
+
onVisibleColumnsChange?: (visibleColumns: string[]) => void;
|
|
123
|
+
onColumnReorder?: (fromIndex: number, toIndex: number) => void;
|
|
124
|
+
pagination?: {
|
|
125
|
+
pageSize: number;
|
|
126
|
+
currentPage: number;
|
|
127
|
+
totalItems: number;
|
|
128
|
+
onPageChange: (page: number) => void;
|
|
129
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
130
|
+
};
|
|
131
|
+
children?: ReactNode;
|
|
132
|
+
}
|
|
133
|
+
export interface TableHeaderProps {
|
|
134
|
+
children?: ReactNode;
|
|
135
|
+
freezeHeader?: boolean;
|
|
136
|
+
className?: string;
|
|
137
|
+
}
|
|
138
|
+
export interface TableBodyProps {
|
|
139
|
+
children?: ReactNode;
|
|
140
|
+
className?: string;
|
|
141
|
+
}
|
|
142
|
+
export interface TableRowProps {
|
|
143
|
+
children?: ReactNode;
|
|
144
|
+
isExpandable?: boolean;
|
|
145
|
+
isExpanded?: boolean;
|
|
146
|
+
onExpandToggle?: () => void;
|
|
147
|
+
isSelected?: boolean;
|
|
148
|
+
onSelectToggle?: () => void;
|
|
149
|
+
className?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface TableCellProps {
|
|
152
|
+
children?: ReactNode;
|
|
153
|
+
isFrozen?: boolean;
|
|
154
|
+
isLastFrozen?: boolean;
|
|
155
|
+
align?: TableAlignment;
|
|
156
|
+
width?: string | number;
|
|
157
|
+
className?: string;
|
|
158
|
+
colSpan?: number;
|
|
159
|
+
}
|
|
160
|
+
export interface TableHeaderCellProps extends Omit<TableCellProps, 'colSpan'> {
|
|
161
|
+
isSortable?: boolean;
|
|
162
|
+
sortDirection?: 'asc' | 'desc' | undefined;
|
|
163
|
+
onSort?: () => void;
|
|
164
|
+
}
|
|
165
|
+
export interface InternalTableHeaderProps<T> {
|
|
166
|
+
columns: Column<T>[];
|
|
167
|
+
sortConfig?: SortConfig[];
|
|
168
|
+
onSortChange?: (sortConfig: SortConfig[]) => void;
|
|
169
|
+
filterConfig?: FilterConfig[];
|
|
170
|
+
onFilterChange?: (filterConfig: FilterConfig[]) => void;
|
|
171
|
+
freezeHeader?: boolean;
|
|
172
|
+
freezeFirstColumn?: boolean;
|
|
173
|
+
freezeLastColumn?: boolean;
|
|
174
|
+
expandable?: boolean;
|
|
175
|
+
expandedRowRender?: (row: T) => ReactNode;
|
|
176
|
+
selectable?: boolean;
|
|
177
|
+
selectionType?: SelectionType;
|
|
178
|
+
selectedRows?: string[];
|
|
179
|
+
onSelectionChange?: (selectedRows: string[]) => void;
|
|
180
|
+
totalRowCount?: number;
|
|
181
|
+
theme?: TableThemeOverrides;
|
|
182
|
+
data?: T[];
|
|
183
|
+
rowKey?: keyof T | ((row: T, index: number) => string | number);
|
|
184
|
+
}
|
|
185
|
+
export interface InternalTableBodyProps<T> {
|
|
186
|
+
data: T[];
|
|
187
|
+
columns: Column<T>[];
|
|
188
|
+
/** Row key extractor for stable row identification */
|
|
189
|
+
rowKey?: keyof T | ((row: T, index: number) => string | number);
|
|
190
|
+
expandedRowRender?: (row: T) => ReactNode;
|
|
191
|
+
expandedRows?: string[];
|
|
192
|
+
onExpandedRowsChange?: (expandedRows: string[]) => void;
|
|
193
|
+
selectable?: boolean;
|
|
194
|
+
selectionType?: SelectionType;
|
|
195
|
+
selectedRows?: string[];
|
|
196
|
+
onSelectionChange?: (selectedRows: string[]) => void;
|
|
197
|
+
freezeFirstColumn?: boolean;
|
|
198
|
+
freezeLastColumn?: boolean;
|
|
199
|
+
theme?: TableThemeOverrides;
|
|
200
|
+
}
|
|
201
|
+
export interface InternalTableRowProps<T> {
|
|
202
|
+
row: T;
|
|
203
|
+
rowId: string;
|
|
204
|
+
columns: Column<T>[];
|
|
205
|
+
expandedRowRender?: (row: T) => ReactNode;
|
|
206
|
+
isExpanded?: boolean;
|
|
207
|
+
onExpandChange?: (expanded: boolean) => void;
|
|
208
|
+
selectable?: boolean;
|
|
209
|
+
selectionType?: SelectionType;
|
|
210
|
+
isSelected?: boolean;
|
|
211
|
+
onSelectionChange?: (selected: boolean) => void;
|
|
212
|
+
freezeFirstColumn?: boolean;
|
|
213
|
+
freezeLastColumn?: boolean;
|
|
214
|
+
theme?: TableThemeOverrides;
|
|
215
|
+
}
|
|
216
|
+
export interface InternalTableCellProps<T> {
|
|
217
|
+
column: Column<T>;
|
|
218
|
+
row: T;
|
|
219
|
+
rowId: string;
|
|
220
|
+
isHeader?: boolean;
|
|
221
|
+
isFrozen?: boolean;
|
|
222
|
+
isLastFrozen?: boolean;
|
|
223
|
+
theme?: TableThemeOverrides;
|
|
224
|
+
children?: ReactNode;
|
|
225
|
+
}
|
|
226
|
+
export interface TableColumnManagerProps {
|
|
227
|
+
columns: Column[];
|
|
228
|
+
visibleColumns: string[];
|
|
229
|
+
initialVisibleColumns: string[];
|
|
230
|
+
onVisibleColumnsChange: (visibleColumns: string[]) => void;
|
|
231
|
+
onColumnReorder?: (fromIndex: number, toIndex: number) => void;
|
|
232
|
+
onColumnOrderReset?: () => void;
|
|
233
|
+
onClose: () => void;
|
|
234
|
+
className?: string;
|
|
235
|
+
theme?: {
|
|
236
|
+
container?: string;
|
|
237
|
+
content?: string;
|
|
238
|
+
header?: string;
|
|
239
|
+
title?: string;
|
|
240
|
+
description?: string;
|
|
241
|
+
actions?: string;
|
|
242
|
+
quickActionButton?: string;
|
|
243
|
+
quickActionButtonDisabled?: string;
|
|
244
|
+
columnList?: string;
|
|
245
|
+
columnItem?: string;
|
|
246
|
+
columnItemVisible?: string;
|
|
247
|
+
checkbox?: string;
|
|
248
|
+
columnLabel?: string;
|
|
249
|
+
columnIcon?: string;
|
|
250
|
+
footer?: string;
|
|
251
|
+
summary?: string;
|
|
252
|
+
closeButton?: string;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate a stable row identifier for React keys and row IDs
|
|
3
|
+
* @param row - The data row object
|
|
4
|
+
* @param index - The row index as fallback
|
|
5
|
+
* @param rowKey - Optional key extractor function or property name
|
|
6
|
+
* @returns A stable string identifier for the row
|
|
7
|
+
*/
|
|
8
|
+
export declare function getRowId<T extends Record<string, any>>(row: T, index: number, rowKey?: keyof T | ((row: T, index: number) => string | number)): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableHeaderProps, TableBodyProps, TableRowProps, TableCellProps, TableHeaderCellProps } from '../Table.types';
|
|
3
|
+
export declare const Header: React.NamedExoticComponent<TableHeaderProps>;
|
|
4
|
+
export declare const Body: React.NamedExoticComponent<TableBodyProps>;
|
|
5
|
+
export declare const Row: React.NamedExoticComponent<TableRowProps>;
|
|
6
|
+
export declare const Cell: React.NamedExoticComponent<TableCellProps>;
|
|
7
|
+
export declare const HeaderCell: React.NamedExoticComponent<TableHeaderCellProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableActionsProps } from './TableActions.types';
|
|
3
|
+
/**
|
|
4
|
+
* TableActions component with smart display logic
|
|
5
|
+
* - ≤2 actions: Show as individual icon buttons
|
|
6
|
+
* - ≥3 actions: Show all actions in overflow menu
|
|
7
|
+
*/
|
|
8
|
+
export declare const TableActions: <T>({ actions, row, maxVisibleActions, className, }: TableActionsProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type ActionVariant = 'default' | 'danger';
|
|
2
|
+
export type ActionPriority = 'high' | 'normal';
|
|
3
|
+
export interface ActionItem<T = any> {
|
|
4
|
+
/** Unique identifier for the action */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Display label for the action */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Icon component to display */
|
|
9
|
+
icon: React.ComponentType<{
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
/** Click handler that receives the row data */
|
|
13
|
+
onClick: (row: T) => void;
|
|
14
|
+
/** Visual variant for styling (default: 'default') */
|
|
15
|
+
variant?: ActionVariant;
|
|
16
|
+
/** Priority level for display ordering (default: 'normal') */
|
|
17
|
+
priority?: ActionPriority;
|
|
18
|
+
/** Function to determine if action should be disabled */
|
|
19
|
+
disabled?: (row: T) => boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface TableActionsProps<T = any> {
|
|
22
|
+
/** Array of action items to display */
|
|
23
|
+
actions: ActionItem<T>[];
|
|
24
|
+
/** Row data to pass to action handlers */
|
|
25
|
+
row: T;
|
|
26
|
+
/** Maximum number of actions to show inline before using menu (default: 2) */
|
|
27
|
+
maxVisibleActions?: number;
|
|
28
|
+
/** Additional CSS class name */
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface TableActionsMenuProps<T = any> {
|
|
32
|
+
/** Array of action items to display in menu */
|
|
33
|
+
actions: ActionItem<T>[];
|
|
34
|
+
/** Row data to pass to action handlers */
|
|
35
|
+
row: T;
|
|
36
|
+
/** Function to close the menu */
|
|
37
|
+
onClose: () => void;
|
|
38
|
+
/** Additional CSS class name */
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableActionsMenuProps } from './TableActions.types';
|
|
3
|
+
/**
|
|
4
|
+
* TableActionsMenu component for displaying actions in an overflow menu
|
|
5
|
+
*/
|
|
6
|
+
export declare const TableActionsMenu: <T>({ actions, row, onClose, className, }: TableActionsMenuProps<T>) => React.JSX.Element;
|