@flikk/ui 1.0.0-beta.2 → 1.0.0-beta.4
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/components/ai/ApprovalCard/ApprovalCard.js +2 -2
- package/dist/components/ai/ApprovalCard/ApprovalCard.types.d.ts +2 -2
- package/dist/components/ai/PromptInput/PromptInput.js +51 -10
- package/dist/components/ai/PromptInput/PromptInput.theme.js +1 -0
- package/dist/components/ai/PromptInput/PromptInput.types.d.ts +20 -0
- package/dist/components/charts/DonutChart/DonutChart.types.d.ts +1 -2
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.types.d.ts +1 -2
- package/dist/components/core/Accordion/Accordion.theme.js +2 -2
- package/dist/components/core/Alert/Alert.js +2 -2
- package/dist/components/core/Alert/Alert.types.d.ts +2 -2
- package/dist/components/core/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/components/core/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/core/AlertDialog/AlertDialog.types.d.ts +2 -2
- package/dist/components/core/Badge/Badge.d.ts +1 -1
- package/dist/components/core/Badge/Badge.js +11 -9
- package/dist/components/core/Badge/Badge.theme.js +13 -14
- package/dist/components/core/Badge/Badge.types.d.ts +8 -4
- package/dist/components/core/Button/Button.d.ts +1 -1
- package/dist/components/core/Button/Button.theme.js +8 -9
- package/dist/components/core/Button/Button.types.d.ts +1 -2
- package/dist/components/core/Calendar/Calendar.theme.js +1 -1
- package/dist/components/core/Card/Card.d.ts +2 -2
- package/dist/components/core/Card/Card.js +6 -7
- package/dist/components/core/Card/Card.theme.js +4 -4
- package/dist/components/core/Card/Card.types.d.ts +5 -20
- package/dist/components/core/Card/CardSubtitle.d.ts +3 -0
- package/dist/components/core/Card/CardSubtitle.js +11 -0
- package/dist/components/core/Card/index.d.ts +2 -2
- package/dist/components/core/CommandPalette/CommandItem.d.ts +1 -1
- package/dist/components/core/CommandPalette/CommandItem.js +2 -2
- package/dist/components/core/CommandPalette/CommandPalette.js +2 -2
- package/dist/components/core/CommandPalette/CommandPalette.theme.js +2 -2
- package/dist/components/core/CommandPalette/CommandPalette.types.d.ts +2 -2
- package/dist/components/core/ContextMenu/ContextMenu.types.d.ts +1 -1
- package/dist/components/core/ContextMenu/ContextMenuItem.js +2 -2
- package/dist/components/core/Drawer/Drawer.d.ts +13 -1
- package/dist/components/core/Drawer/Drawer.js +23 -10
- package/dist/components/core/Drawer/Drawer.theme.js +1 -1
- package/dist/components/core/Drawer/Drawer.types.d.ts +21 -4
- package/dist/components/core/Drawer/DrawerHeader.d.ts +5 -0
- package/dist/components/core/Drawer/DrawerHeader.js +14 -0
- package/dist/components/core/Drawer/DrawerSubtitle.d.ts +5 -0
- package/dist/components/core/Drawer/DrawerSubtitle.js +11 -0
- package/dist/components/core/Drawer/DrawerTitle.d.ts +5 -0
- package/dist/components/core/Drawer/DrawerTitle.js +11 -0
- package/dist/components/core/Drawer/index.d.ts +1 -1
- package/dist/components/core/Dropdown/Dropdown.types.d.ts +4 -4
- package/dist/components/core/Dropdown/DropdownItem.js +2 -2
- package/dist/components/core/Empty/Empty.js +2 -2
- package/dist/components/core/Empty/Empty.theme.d.ts +1 -1
- package/dist/components/core/Empty/Empty.theme.js +3 -3
- package/dist/components/core/Empty/Empty.types.d.ts +2 -2
- package/dist/components/core/Link/Link.d.ts +1 -1
- package/dist/components/core/Link/Link.types.d.ts +2 -2
- package/dist/components/core/MenuItem/MenuItem.js +2 -2
- package/dist/components/core/MenuItem/MenuItem.theme.d.ts +1 -2
- package/dist/components/core/MenuItem/MenuItem.theme.js +7 -9
- package/dist/components/core/MenuItem/MenuItem.types.d.ts +1 -1
- package/dist/components/core/Message/Message.d.ts +3 -2
- package/dist/components/core/Message/Message.js +30 -24
- package/dist/components/core/Message/Message.theme.d.ts +1 -1
- package/dist/components/core/Message/Message.theme.js +22 -24
- package/dist/components/core/Message/Message.types.d.ts +0 -7
- package/dist/components/core/Message/MessageList.animations.d.ts +6 -0
- package/dist/components/core/Message/MessageList.animations.js +32 -0
- package/dist/components/core/Message/MessageList.d.ts +5 -0
- package/dist/components/core/Message/MessageList.js +78 -0
- package/dist/components/core/Message/MessageList.theme.d.ts +2 -0
- package/dist/components/core/Message/MessageList.theme.js +6 -0
- package/dist/components/core/Message/MessageList.types.d.ts +32 -0
- package/dist/components/core/Message/index.d.ts +2 -0
- package/dist/components/core/Modal/Modal.d.ts +2 -2
- package/dist/components/core/Modal/Modal.js +5 -5
- package/dist/components/core/Modal/Modal.theme.js +5 -5
- package/dist/components/core/Modal/Modal.types.d.ts +4 -4
- package/dist/components/core/Modal/ModalSubtitle.d.ts +5 -0
- package/dist/components/core/Modal/ModalSubtitle.js +11 -0
- package/dist/components/core/ModalStack/ModalStack.animations.js +3 -3
- package/dist/components/core/ModalStack/ModalStackModal.js +3 -3
- package/dist/components/core/PageHeading/PageHeading.d.ts +8 -0
- package/dist/components/core/PageHeading/PageHeading.js +28 -0
- package/dist/components/core/PageHeading/PageHeading.theme.d.ts +2 -0
- package/dist/components/core/PageHeading/PageHeading.theme.js +11 -0
- package/dist/components/core/PageHeading/PageHeading.types.d.ts +55 -0
- package/dist/components/core/PageHeading/PageHeadingActions.d.ts +3 -0
- package/dist/components/core/PageHeading/PageHeadingActions.js +11 -0
- package/dist/components/core/PageHeading/PageHeadingBackButton.d.ts +3 -0
- package/dist/components/core/PageHeading/PageHeadingBackButton.js +12 -0
- package/dist/components/core/PageHeading/PageHeadingIcon.d.ts +3 -0
- package/dist/components/core/PageHeading/PageHeadingIcon.js +11 -0
- package/dist/components/core/PageHeading/PageHeadingSubtitle.d.ts +3 -0
- package/dist/components/core/PageHeading/PageHeadingSubtitle.js +11 -0
- package/dist/components/core/PageHeading/PageHeadingTitle.d.ts +3 -0
- package/dist/components/core/PageHeading/PageHeadingTitle.js +11 -0
- package/dist/components/core/PageHeading/index.d.ts +2 -0
- package/dist/components/core/Popover/Popover.theme.js +1 -1
- package/dist/components/core/Segmented/Segmented.theme.js +3 -3
- package/dist/components/core/Sidebar/Sidebar.js +1 -0
- package/dist/components/core/SocialIcon/SocialIcon.d.ts +3 -0
- package/dist/components/core/SocialIcon/SocialIcon.js +30 -0
- package/dist/components/core/SocialIcon/SocialIcon.theme.d.ts +2 -0
- package/dist/components/core/SocialIcon/SocialIcon.theme.js +12 -0
- package/dist/components/core/SocialIcon/SocialIcon.types.d.ts +18 -0
- package/dist/components/core/SocialIcon/index.d.ts +2 -0
- package/dist/components/core/SocialIcon/platforms.d.ts +17 -0
- package/dist/components/core/SocialIcon/platforms.js +234 -0
- package/dist/components/core/Toast/Toast.js +4 -4
- package/dist/components/core/Toast/Toast.theme.js +1 -1
- package/dist/components/core/Toast/Toast.types.d.ts +9 -9
- package/dist/components/core/Toast/useToast.js +6 -6
- package/dist/components/core/index.d.ts +2 -7
- package/dist/components/core/index.js +9 -19
- package/dist/components/{core → data-display}/DescriptionList/DescriptionList.theme.js +1 -1
- package/dist/components/{core → data-display}/Feed/Feed.js +2 -2
- package/dist/components/data-display/GanttChart/GanttChart.animations.d.ts +4 -0
- package/dist/components/data-display/GanttChart/GanttChart.animations.js +21 -0
- package/dist/components/data-display/GanttChart/GanttChart.d.ts +8 -0
- package/dist/components/data-display/GanttChart/GanttChart.js +170 -0
- package/dist/components/data-display/GanttChart/GanttChart.theme.d.ts +2 -0
- package/dist/components/data-display/GanttChart/GanttChart.theme.js +23 -0
- package/dist/components/data-display/GanttChart/GanttChart.types.d.ts +162 -0
- package/dist/components/data-display/GanttChart/GanttChart.types.js +9 -0
- package/dist/components/data-display/GanttChart/GanttChart.utils.d.ts +80 -0
- package/dist/components/data-display/GanttChart/GanttChart.utils.js +274 -0
- package/dist/components/data-display/GanttChart/GanttChartPanel.d.ts +9 -0
- package/dist/components/data-display/GanttChart/GanttChartPanel.js +82 -0
- package/dist/components/data-display/GanttChart/GanttDependencyArrows.d.ts +2 -0
- package/dist/components/data-display/GanttChart/GanttDependencyArrows.js +35 -0
- package/dist/components/data-display/GanttChart/GanttGroupBar.d.ts +8 -0
- package/dist/components/data-display/GanttChart/GanttGroupBar.js +26 -0
- package/dist/components/data-display/GanttChart/GanttMilestone.d.ts +9 -0
- package/dist/components/data-display/GanttChart/GanttMilestone.js +44 -0
- package/dist/components/data-display/GanttChart/GanttProgressCircle.d.ts +9 -0
- package/dist/components/data-display/GanttChart/GanttProgressCircle.js +11 -0
- package/dist/components/data-display/GanttChart/GanttSplitter.d.ts +2 -0
- package/dist/components/data-display/GanttChart/GanttSplitter.js +39 -0
- package/dist/components/data-display/GanttChart/GanttTableGroupRow.d.ts +7 -0
- package/dist/components/data-display/GanttChart/GanttTableGroupRow.js +23 -0
- package/dist/components/data-display/GanttChart/GanttTableHeader.d.ts +2 -0
- package/dist/components/data-display/GanttChart/GanttTableHeader.js +13 -0
- package/dist/components/data-display/GanttChart/GanttTablePanel.d.ts +6 -0
- package/dist/components/data-display/GanttChart/GanttTablePanel.js +20 -0
- package/dist/components/data-display/GanttChart/GanttTableTaskRow.d.ts +8 -0
- package/dist/components/data-display/GanttChart/GanttTableTaskRow.js +30 -0
- package/dist/components/data-display/GanttChart/GanttTaskBar.d.ts +9 -0
- package/dist/components/data-display/GanttChart/GanttTaskBar.js +206 -0
- package/dist/components/data-display/GanttChart/GanttTaskContextMenu.d.ts +8 -0
- package/dist/components/data-display/GanttChart/GanttTaskContextMenu.js +17 -0
- package/dist/components/data-display/GanttChart/GanttTimelineGrid.d.ts +7 -0
- package/dist/components/data-display/GanttChart/GanttTimelineGrid.js +33 -0
- package/dist/components/data-display/GanttChart/GanttTimelineHeader.d.ts +8 -0
- package/dist/components/data-display/GanttChart/GanttTimelineHeader.js +43 -0
- package/dist/components/data-display/GanttChart/GanttToolbar.d.ts +2 -0
- package/dist/components/data-display/GanttChart/GanttToolbar.js +28 -0
- package/dist/components/data-display/GanttChart/hooks/useGanttDates.d.ts +12 -0
- package/dist/components/data-display/GanttChart/hooks/useGanttDates.js +25 -0
- package/dist/components/data-display/GanttChart/hooks/useGanttDrag.d.ts +25 -0
- package/dist/components/data-display/GanttChart/hooks/useGanttDrag.js +144 -0
- package/dist/components/data-display/GanttChart/hooks/useGanttLayout.d.ts +2 -0
- package/dist/components/data-display/GanttChart/hooks/useGanttLayout.js +33 -0
- package/dist/components/data-display/GanttChart/hooks/useGanttScrollSync.d.ts +6 -0
- package/dist/components/data-display/GanttChart/hooks/useGanttScrollSync.js +32 -0
- package/dist/components/data-display/GanttChart/index.d.ts +3 -0
- package/dist/components/{core → data-display}/KPI/KPI.js +10 -8
- package/dist/components/{core → data-display}/KPI/KPI.theme.js +2 -1
- package/dist/components/{core → data-display}/KPI/KPI.types.d.ts +5 -5
- package/dist/components/{core → data-display}/KPI/index.d.ts +1 -0
- package/dist/components/{core → data-display}/Metric/Metric.js +4 -7
- package/dist/components/{core → data-display}/Metric/Metric.theme.js +9 -9
- package/dist/components/{core → data-display}/Metric/Metric.types.d.ts +6 -6
- package/dist/components/{core → data-display}/Table/Table.theme.js +2 -2
- package/dist/components/{core → data-display}/Table/TableActions.js +8 -8
- package/dist/components/{core → data-display}/Table/TableColumnManager.js +4 -4
- package/dist/components/{core → data-display}/Table/TableFilter.js +3 -3
- package/dist/components/data-display/Table/TablePagination.js +25 -0
- package/dist/components/{core → data-display}/Table/TableRow.js +1 -1
- package/dist/components/{core → data-display}/Table/TableSelectionHeader.js +1 -1
- package/dist/components/data-display/index.d.ts +7 -0
- package/dist/components/data-display/index.js +20 -0
- package/dist/components/effects/3d/index.d.ts +6 -0
- package/dist/components/effects/3d/index.js +3 -0
- package/dist/components/effects/Aurora/Aurora.d.ts +24 -0
- package/dist/components/effects/Aurora/Aurora.js +119 -0
- package/dist/components/effects/Aurora/Aurora.types.d.ts +15 -0
- package/dist/components/effects/Aurora/index.d.ts +2 -0
- package/dist/components/effects/CustomCursor/CustomCursor.d.ts +2 -2
- package/dist/components/effects/CustomCursor/CustomCursor.types.d.ts +3 -3
- package/dist/components/effects/DotPattern/DotPattern.d.ts +18 -0
- package/dist/components/effects/DotPattern/DotPattern.js +65 -0
- package/dist/components/effects/DotPattern/DotPattern.types.d.ts +47 -0
- package/dist/components/effects/DotPattern/index.d.ts +2 -0
- package/dist/components/effects/GridPattern/GridPattern.d.ts +18 -0
- package/dist/components/effects/GridPattern/GridPattern.js +64 -0
- package/dist/components/effects/GridPattern/GridPattern.types.d.ts +47 -0
- package/dist/components/effects/GridPattern/index.d.ts +2 -0
- package/dist/components/effects/MagneticElement/MagneticElement.d.ts +30 -0
- package/dist/components/effects/MagneticElement/MagneticElement.js +110 -0
- package/dist/components/effects/MagneticElement/MagneticElement.types.d.ts +44 -0
- package/dist/components/effects/MagneticElement/index.d.ts +2 -0
- package/dist/components/effects/MorphingText/MorphingText.d.ts +17 -0
- package/dist/components/effects/MorphingText/MorphingText.js +91 -0
- package/dist/components/effects/MorphingText/MorphingText.types.d.ts +18 -0
- package/dist/components/effects/MorphingText/index.d.ts +2 -0
- package/dist/components/effects/NoiseOverlay/NoiseOverlay.d.ts +28 -0
- package/dist/components/effects/NoiseOverlay/NoiseOverlay.js +61 -0
- package/dist/components/effects/NoiseOverlay/NoiseOverlay.types.d.ts +35 -0
- package/dist/components/effects/NoiseOverlay/index.d.ts +2 -0
- package/dist/components/effects/ParallaxSection/ParallaxSection.d.ts +26 -0
- package/dist/components/effects/ParallaxSection/ParallaxSection.js +71 -0
- package/dist/components/effects/ParallaxSection/ParallaxSection.types.d.ts +11 -0
- package/dist/components/effects/ParallaxSection/index.d.ts +2 -0
- package/dist/components/effects/Particles/Particles.d.ts +22 -0
- package/dist/components/effects/Particles/Particles.js +33 -0
- package/dist/components/effects/Particles/Particles.scene.d.ts +3 -0
- package/dist/components/effects/Particles/Particles.scene.js +284 -0
- package/dist/components/effects/Particles/Particles.types.d.ts +65 -0
- package/dist/components/effects/Particles/index.d.ts +2 -0
- package/dist/components/effects/ProgressiveBlur/ProgressiveBlur.d.ts +3 -0
- package/dist/components/effects/ProgressiveBlur/ProgressiveBlur.js +75 -0
- package/dist/components/effects/ProgressiveBlur/ProgressiveBlur.theme.d.ts +7 -0
- package/dist/components/effects/ProgressiveBlur/ProgressiveBlur.theme.js +12 -0
- package/dist/components/effects/ProgressiveBlur/ProgressiveBlur.types.d.ts +47 -0
- package/dist/components/effects/ProgressiveBlur/index.d.ts +2 -0
- package/dist/components/effects/ScrollReveal/ScrollReveal.d.ts +29 -0
- package/dist/components/effects/ScrollReveal/ScrollReveal.js +121 -0
- package/dist/components/effects/ScrollReveal/ScrollReveal.types.d.ts +25 -0
- package/dist/components/effects/ScrollReveal/index.d.ts +2 -0
- package/dist/components/effects/Spotlight/Spotlight.d.ts +36 -0
- package/dist/components/effects/Spotlight/Spotlight.js +112 -0
- package/dist/components/effects/Spotlight/Spotlight.types.d.ts +29 -0
- package/dist/components/effects/Spotlight/index.d.ts +2 -0
- package/dist/components/effects/StickyScroll/StickyScroll.d.ts +30 -0
- package/dist/components/effects/StickyScroll/StickyScroll.js +128 -0
- package/dist/components/effects/StickyScroll/StickyScroll.types.d.ts +19 -0
- package/dist/components/effects/StickyScroll/index.d.ts +2 -0
- package/dist/components/effects/index.d.ts +22 -4
- package/dist/components/effects/index.js +11 -2
- package/dist/components/forms/Checkbox/Checkbox.js +3 -3
- package/dist/components/forms/Checkbox/Checkbox.theme.js +3 -5
- package/dist/components/forms/ColorPicker/ColorPicker.theme.js +2 -2
- package/dist/components/forms/CronInput/CronInput.d.ts +3 -0
- package/dist/components/forms/CronInput/CronInput.js +107 -0
- package/dist/components/forms/CronInput/CronInput.theme.d.ts +6 -0
- package/dist/components/forms/CronInput/CronInput.theme.js +84 -0
- package/dist/components/forms/CronInput/CronInput.types.d.ts +98 -0
- package/dist/components/forms/CronInput/CronInput.utils.d.ts +67 -0
- package/dist/components/forms/CronInput/CronInput.utils.js +505 -0
- package/dist/components/forms/CronInput/index.d.ts +4 -0
- package/dist/components/forms/DatePicker/DatePicker.theme.js +2 -2
- package/dist/components/forms/InputCounter/InputCounter.d.ts +1 -1
- package/dist/components/forms/InputCounter/InputCounter.types.d.ts +3 -2
- package/dist/components/forms/InputOTP/InputOTP.theme.js +1 -1
- package/dist/components/forms/Mention/Mention.d.ts +3 -0
- package/dist/components/forms/Mention/Mention.js +410 -0
- package/dist/components/forms/Mention/Mention.theme.d.ts +6 -0
- package/dist/components/forms/Mention/Mention.theme.js +56 -0
- package/dist/components/forms/Mention/Mention.types.d.ts +111 -0
- package/dist/components/forms/Mention/index.d.ts +3 -0
- package/dist/components/forms/Radio/Radio.js +8 -12
- package/dist/components/forms/Radio/Radio.theme.js +28 -5
- package/dist/components/forms/SelectableCard/SelectableCard.animations.d.ts +2 -0
- package/dist/components/forms/SelectableCard/SelectableCard.animations.js +9 -0
- package/dist/components/forms/SelectableCard/SelectableCard.d.ts +5 -0
- package/dist/components/forms/SelectableCard/SelectableCard.js +58 -0
- package/dist/components/forms/SelectableCard/SelectableCard.theme.d.ts +2 -0
- package/dist/components/forms/SelectableCard/SelectableCard.theme.js +38 -0
- package/dist/components/forms/SelectableCard/SelectableCard.types.d.ts +33 -0
- package/dist/components/forms/SelectableCard/SelectableCardContext.d.ts +3 -0
- package/dist/components/forms/SelectableCard/SelectableCardContext.js +12 -0
- package/dist/components/forms/SelectableCard/SelectableCardGroup.d.ts +3 -0
- package/dist/components/forms/SelectableCard/SelectableCardGroup.js +37 -0
- package/dist/components/forms/SelectableCard/index.d.ts +3 -0
- package/dist/components/forms/TransferList/TransferList.animations.d.ts +10 -0
- package/dist/components/forms/TransferList/TransferList.animations.js +32 -0
- package/dist/components/forms/TransferList/TransferList.d.ts +28 -0
- package/dist/components/forms/TransferList/TransferList.js +199 -0
- package/dist/components/forms/TransferList/TransferList.theme.d.ts +6 -0
- package/dist/components/forms/TransferList/TransferList.theme.js +60 -0
- package/dist/components/forms/TransferList/TransferList.types.d.ts +101 -0
- package/dist/components/forms/TransferList/index.d.ts +3 -0
- package/dist/components/forms/index.d.ts +13 -0
- package/dist/components/forms/index.js +9 -0
- package/dist/components/layout/FormLayout/FormLayout.d.ts +8 -0
- package/dist/components/layout/FormLayout/FormLayout.js +22 -0
- package/dist/components/layout/FormLayout/FormLayout.theme.d.ts +2 -0
- package/dist/components/layout/FormLayout/FormLayout.theme.js +16 -0
- package/dist/components/layout/FormLayout/FormLayout.types.d.ts +61 -0
- package/dist/components/layout/FormLayout/FormLayoutBody.d.ts +3 -0
- package/dist/components/layout/FormLayout/FormLayoutBody.js +13 -0
- package/dist/components/layout/FormLayout/FormLayoutFooter.d.ts +3 -0
- package/dist/components/layout/FormLayout/FormLayoutFooter.js +12 -0
- package/dist/components/layout/FormLayout/FormLayoutHeader.d.ts +3 -0
- package/dist/components/layout/FormLayout/FormLayoutHeader.js +12 -0
- package/dist/components/layout/FormLayout/FormLayoutSection.d.ts +3 -0
- package/dist/components/layout/FormLayout/FormLayoutSection.js +12 -0
- package/dist/components/layout/FormLayout/index.d.ts +3 -0
- package/dist/components/layout/PageLayout/PageLayout.d.ts +7 -0
- package/dist/components/layout/PageLayout/PageLayout.js +33 -0
- package/dist/components/layout/PageLayout/PageLayout.theme.d.ts +2 -0
- package/dist/components/layout/PageLayout/PageLayout.theme.js +10 -0
- package/dist/components/layout/PageLayout/PageLayout.types.d.ts +39 -0
- package/dist/components/layout/PageLayout/PageLayoutContent.d.ts +3 -0
- package/dist/components/layout/PageLayout/PageLayoutContent.js +12 -0
- package/dist/components/layout/PageLayout/PageLayoutHeader.d.ts +3 -0
- package/dist/components/layout/PageLayout/PageLayoutHeader.js +12 -0
- package/dist/components/layout/PageLayout/PageLayoutSidebar.d.ts +3 -0
- package/dist/components/layout/PageLayout/PageLayoutSidebar.js +12 -0
- package/dist/components/layout/PageLayout/index.d.ts +3 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +53 -21
- package/dist/styles.css +1 -1
- package/dist/utils/dateUtils.d.ts +30 -0
- package/dist/utils/dateUtils.js +58 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +26 -22
- package/dist/components/core/Card/CardDescription.d.ts +0 -3
- package/dist/components/core/Card/CardDescription.js +0 -11
- package/dist/components/core/Modal/ModalDescription.d.ts +0 -5
- package/dist/components/core/Modal/ModalDescription.js +0 -11
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.d.ts +0 -34
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.js +0 -218
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.theme.d.ts +0 -9
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.types.d.ts +0 -48
- package/dist/components/core/ProgressiveBlur/index.d.ts +0 -2
- package/dist/components/core/Table/TablePagination.js +0 -25
- /package/dist/components/{core → data-display}/DescriptionList/DescriptionList.d.ts +0 -0
- /package/dist/components/{core → data-display}/DescriptionList/DescriptionList.js +0 -0
- /package/dist/components/{core → data-display}/DescriptionList/DescriptionList.theme.d.ts +0 -0
- /package/dist/components/{core → data-display}/DescriptionList/DescriptionList.types.d.ts +0 -0
- /package/dist/components/{core → data-display}/DescriptionList/index.d.ts +0 -0
- /package/dist/components/{core → data-display}/Feed/Feed.d.ts +0 -0
- /package/dist/components/{core → data-display}/Feed/Feed.theme.d.ts +0 -0
- /package/dist/components/{core → data-display}/Feed/Feed.theme.js +0 -0
- /package/dist/components/{core → data-display}/Feed/Feed.types.d.ts +0 -0
- /package/dist/components/{core → data-display}/Feed/index.d.ts +0 -0
- /package/dist/components/{core → data-display}/KPI/KPI.d.ts +0 -0
- /package/dist/components/{core → data-display}/KPI/KPI.theme.d.ts +0 -0
- /package/dist/components/{core → data-display}/Metric/Metric.d.ts +0 -0
- /package/dist/components/{core → data-display}/Metric/Metric.theme.d.ts +0 -0
- /package/dist/components/{core → data-display}/Metric/index.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/Table.animations.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/Table.animations.js +0 -0
- /package/dist/components/{core → data-display}/Table/Table.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/Table.filterUtils.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/Table.filterUtils.js +0 -0
- /package/dist/components/{core → data-display}/Table/Table.js +0 -0
- /package/dist/components/{core → data-display}/Table/Table.theme.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/Table.types.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/Table.utils.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/Table.utils.js +0 -0
- /package/dist/components/{core → data-display}/Table/TableActions.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableActionsMenu.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableActionsMenu.js +0 -0
- /package/dist/components/{core → data-display}/Table/TableBody.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableBody.js +0 -0
- /package/dist/components/{core → data-display}/Table/TableCell.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableCell.js +0 -0
- /package/dist/components/{core → data-display}/Table/TableColumnManager.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableDeclarative.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableDeclarative.js +0 -0
- /package/dist/components/{core → data-display}/Table/TableFilter.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableHeader.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableHeader.js +0 -0
- /package/dist/components/{core → data-display}/Table/TablePagination.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableRow.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/TableSelectionHeader.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/index.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTableColumns.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTableColumns.js +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTableExpansion.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTableExpansion.js +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTableFilter.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTableFilter.js +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTablePagination.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTablePagination.js +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTableSelection.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/hooks/useTableSelection.js +0 -0
- /package/dist/components/{core → data-display}/Table/index.d.ts +0 -0
- /package/dist/components/{core → data-display}/Table/index.js +0 -0
- /package/dist/components/{core → data-display}/Timeline/Timeline.animations.d.ts +0 -0
- /package/dist/components/{core → data-display}/Timeline/Timeline.animations.js +0 -0
- /package/dist/components/{core → data-display}/Timeline/Timeline.d.ts +0 -0
- /package/dist/components/{core → data-display}/Timeline/Timeline.js +0 -0
- /package/dist/components/{core → data-display}/Timeline/Timeline.theme.d.ts +0 -0
- /package/dist/components/{core → data-display}/Timeline/Timeline.theme.js +0 -0
- /package/dist/components/{core → data-display}/Timeline/Timeline.types.d.ts +0 -0
- /package/dist/components/{core → data-display}/Timeline/TimelineContent.d.ts +0 -0
- /package/dist/components/{core → data-display}/Timeline/TimelineContent.js +0 -0
- /package/dist/components/{core → data-display}/Timeline/TimelineItem.d.ts +0 -0
- /package/dist/components/{core → data-display}/Timeline/TimelineItem.js +0 -0
- /package/dist/components/{core → data-display}/Timeline/TimelineMarker.d.ts +0 -0
- /package/dist/components/{core → data-display}/Timeline/TimelineMarker.js +0 -0
- /package/dist/components/{core → data-display}/Timeline/index.d.ts +0 -0
|
@@ -116,3 +116,33 @@ export declare const getThisYear: () => DateRange;
|
|
|
116
116
|
* Get date range for last year
|
|
117
117
|
*/
|
|
118
118
|
export declare const getLastYear: () => DateRange;
|
|
119
|
+
/**
|
|
120
|
+
* Normalise a Date | string to a Date at local midnight.
|
|
121
|
+
*
|
|
122
|
+
* ISO date-only strings like "2026-01-15" are parsed as UTC by the native
|
|
123
|
+
* Date constructor, which can shift the day backward in negative-UTC
|
|
124
|
+
* timezones. We detect the YYYY-MM-DD pattern and construct the Date with
|
|
125
|
+
* local year/month/day to avoid an off-by-one.
|
|
126
|
+
*/
|
|
127
|
+
export declare function toDate(input: Date | string): Date;
|
|
128
|
+
/**
|
|
129
|
+
* Add (or subtract) a number of calendar days to a date.
|
|
130
|
+
*/
|
|
131
|
+
export declare function addDays(date: Date | string, days: number): Date;
|
|
132
|
+
/**
|
|
133
|
+
* Check if two dates are the same calendar day.
|
|
134
|
+
*/
|
|
135
|
+
export declare function isSameDay(a: Date, b: Date): boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Check if a date falls on a weekend (Saturday=6, Sunday=0).
|
|
138
|
+
*/
|
|
139
|
+
export declare function isWeekend(date: Date): boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Number of calendar days between two dates (inclusive).
|
|
142
|
+
* e.g. Jan 1 → Jan 3 = 3 days.
|
|
143
|
+
*/
|
|
144
|
+
export declare function getDaysBetween(a: Date | string, b: Date | string): number;
|
|
145
|
+
/**
|
|
146
|
+
* Get the ISO week number for a date.
|
|
147
|
+
*/
|
|
148
|
+
export declare function getWeekNumber(date: Date): number;
|
package/dist/utils/dateUtils.js
CHANGED
|
@@ -83,5 +83,62 @@ const formatDateCustom = (date, formatString, locale = 'en-US') => {
|
|
|
83
83
|
result = result.replace(/D/g, day.toString());
|
|
84
84
|
return result;
|
|
85
85
|
};
|
|
86
|
+
// ---------------------------------------------------------------------------
|
|
87
|
+
// Generic date utilities (shared across components)
|
|
88
|
+
// ---------------------------------------------------------------------------
|
|
89
|
+
/**
|
|
90
|
+
* Normalise a Date | string to a Date at local midnight.
|
|
91
|
+
*
|
|
92
|
+
* ISO date-only strings like "2026-01-15" are parsed as UTC by the native
|
|
93
|
+
* Date constructor, which can shift the day backward in negative-UTC
|
|
94
|
+
* timezones. We detect the YYYY-MM-DD pattern and construct the Date with
|
|
95
|
+
* local year/month/day to avoid an off-by-one.
|
|
96
|
+
*/
|
|
97
|
+
function toDate(input) {
|
|
98
|
+
if (typeof input === "string") {
|
|
99
|
+
const match = input.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
100
|
+
if (match) {
|
|
101
|
+
return new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]));
|
|
102
|
+
}
|
|
103
|
+
const d = new Date(input);
|
|
104
|
+
d.setHours(0, 0, 0, 0);
|
|
105
|
+
return d;
|
|
106
|
+
}
|
|
107
|
+
const d = new Date(input);
|
|
108
|
+
d.setHours(0, 0, 0, 0);
|
|
109
|
+
return d;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Add (or subtract) a number of calendar days to a date.
|
|
113
|
+
*/
|
|
114
|
+
function addDays(date, days) {
|
|
115
|
+
const d = toDate(date);
|
|
116
|
+
d.setDate(d.getDate() + days);
|
|
117
|
+
return d;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Check if two dates are the same calendar day.
|
|
121
|
+
*/
|
|
122
|
+
function isSameDay(a, b) {
|
|
123
|
+
return (a.getFullYear() === b.getFullYear() &&
|
|
124
|
+
a.getMonth() === b.getMonth() &&
|
|
125
|
+
a.getDate() === b.getDate());
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Check if a date falls on a weekend (Saturday=6, Sunday=0).
|
|
129
|
+
*/
|
|
130
|
+
function isWeekend(date) {
|
|
131
|
+
const day = date.getDay();
|
|
132
|
+
return day === 0 || day === 6;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Number of calendar days between two dates (inclusive).
|
|
136
|
+
* e.g. Jan 1 → Jan 3 = 3 days.
|
|
137
|
+
*/
|
|
138
|
+
function getDaysBetween(a, b) {
|
|
139
|
+
const start = toDate(a);
|
|
140
|
+
const end = toDate(b);
|
|
141
|
+
return Math.round((end.getTime() - start.getTime()) / 86400000) + 1;
|
|
142
|
+
}
|
|
86
143
|
|
|
87
|
-
export { formatDateCustom, formatTimestamp };
|
|
144
|
+
export { addDays, formatDateCustom, formatTimestamp, getDaysBetween, isSameDay, isWeekend, toDate };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { cn } from "./cn";
|
|
2
2
|
export { debounce } from "./debounce";
|
|
3
|
-
export { formatTimestamp, formatDate, formatTime, formatDateCustom, formatRelativeTime, isToday, isYesterday, isThisWeek, getLastNDays, getThisWeek, getLastWeek, getThisMonth, getLastMonth, getThisYear, getLastYear, type DateInput, type TimestampOptions, type DateRange, } from "./dateUtils";
|
|
3
|
+
export { formatTimestamp, formatDate, formatTime, formatDateCustom, formatRelativeTime, isToday, isYesterday, isThisWeek, getLastNDays, getThisWeek, getLastWeek, getThisMonth, getLastMonth, getThisYear, getLastYear, toDate, addDays, isSameDay, isWeekend, getDaysBetween, getWeekNumber, type DateInput, type TimestampOptions, type DateRange, } from "./dateUtils";
|
|
4
4
|
export { useClickOutside } from "./useClickOutside";
|
|
5
5
|
export { findNextMatchingOption, isValidTypeaheadChar, TYPEAHEAD_TIMEOUT_MS, type TypeaheadOption, type FindNextMatchingOptionParams, } from "./typeaheadUtils";
|
|
6
6
|
export { timeToMinutes, minutesToTime, getEventDuration, getTotalTimeSlots, getTimeSlotIndex, getTimeSlotForIndex, calculateEventPosition, calculateEventHeight, eventsOverlap, findOverlappingEvents, groupOverlappingEvents, resolveOverlappingEvents, generateTimeGrid, filterEventsByDate, sortEventsByStartTime, separateAllDayEvents, isValidTimeFormat, isValidDateFormat, validateEvent, DEFAULT_GRID_CONFIGS, type CalendarEvent, type GridConfig, type EventPosition, type EventLayout, type TimeSlot, } from "./calendarUtils";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flikk/ui",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.4",
|
|
4
4
|
"description": "A modern React component library built with TypeScript, Tailwind CSS v4, and Framer Motion. Follows the shadcn philosophy with complete className override support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,28 +14,36 @@
|
|
|
14
14
|
],
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
19
|
},
|
|
20
20
|
"./core": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"types": "./dist/components/core/index.d.ts",
|
|
22
|
+
"import": "./dist/components/core/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./data-display": {
|
|
25
|
+
"types": "./dist/components/data-display/index.d.ts",
|
|
26
|
+
"import": "./dist/components/data-display/index.js"
|
|
23
27
|
},
|
|
24
28
|
"./forms": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
29
|
+
"types": "./dist/components/forms/index.d.ts",
|
|
30
|
+
"import": "./dist/components/forms/index.js"
|
|
27
31
|
},
|
|
28
32
|
"./charts": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
33
|
+
"types": "./dist/components/charts/index.d.ts",
|
|
34
|
+
"import": "./dist/components/charts/index.js"
|
|
31
35
|
},
|
|
32
36
|
"./effects": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
37
|
+
"types": "./dist/components/effects/index.d.ts",
|
|
38
|
+
"import": "./dist/components/effects/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./effects/3d": {
|
|
41
|
+
"types": "./dist/components/effects/3d/index.d.ts",
|
|
42
|
+
"import": "./dist/components/effects/3d/index.js"
|
|
35
43
|
},
|
|
36
44
|
"./ai": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
45
|
+
"types": "./dist/components/ai/index.d.ts",
|
|
46
|
+
"import": "./dist/components/ai/index.js"
|
|
39
47
|
},
|
|
40
48
|
"./components/*": {
|
|
41
49
|
"import": "./dist/components/*.js",
|
|
@@ -91,17 +99,13 @@
|
|
|
91
99
|
"npm": ">=10.0.0"
|
|
92
100
|
},
|
|
93
101
|
"peerDependencies": {
|
|
94
|
-
"@heroicons/react": "^2.2.0",
|
|
95
102
|
"@react-three/drei": ">=10.0.0",
|
|
96
103
|
"@react-three/fiber": ">=9.0.0",
|
|
97
|
-
"clsx": "^2.1.1",
|
|
98
|
-
"motion": "^12.19.1",
|
|
99
104
|
"react": ">=18.0.0",
|
|
100
105
|
"react-dom": ">=18.0.0",
|
|
101
106
|
"react-markdown": "^9.0.1 || ^10.0.0",
|
|
102
107
|
"react-syntax-highlighter": "^15.5.0 || ^16.0.0",
|
|
103
108
|
"remark-gfm": "^4.0.0",
|
|
104
|
-
"tailwind-merge": "^3.0.2",
|
|
105
109
|
"tailwindcss": "^4.0.9",
|
|
106
110
|
"three": ">=0.170.0"
|
|
107
111
|
},
|
|
@@ -128,7 +132,6 @@
|
|
|
128
132
|
"devDependencies": {
|
|
129
133
|
"@chromatic-com/storybook": "^5.0.0",
|
|
130
134
|
"@emotion/is-prop-valid": "^1.4.0",
|
|
131
|
-
"@heroicons/react": "^2.2.0",
|
|
132
135
|
"@react-three/drei": "^10.7.7",
|
|
133
136
|
"@react-three/fiber": "^9.5.0",
|
|
134
137
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
@@ -148,10 +151,8 @@
|
|
|
148
151
|
"@types/react-syntax-highlighter": "^15.5.11",
|
|
149
152
|
"@types/three": "^0.182.0",
|
|
150
153
|
"autoprefixer": "^10.4.24",
|
|
151
|
-
"clsx": "^2.1.1",
|
|
152
154
|
"concurrently": "^9.2.1",
|
|
153
155
|
"eslint-plugin-storybook": "^10.2.7",
|
|
154
|
-
"motion": "^12.33.0",
|
|
155
156
|
"postcss": "^8.5.3",
|
|
156
157
|
"react": "^19.2.4",
|
|
157
158
|
"react-dom": "^19.2.4",
|
|
@@ -160,12 +161,15 @@
|
|
|
160
161
|
"remark-gfm": "^4.0.1",
|
|
161
162
|
"rollup": "^4.57.1",
|
|
162
163
|
"storybook": "^10.2.3",
|
|
163
|
-
"tailwind-merge": "^3.4.0",
|
|
164
164
|
"three": "^0.182.0",
|
|
165
165
|
"tslib": "^2.8.1",
|
|
166
166
|
"typescript": "^5.9.3"
|
|
167
167
|
},
|
|
168
168
|
"dependencies": {
|
|
169
|
-
"
|
|
169
|
+
"@heroicons/react": "^2.2.0",
|
|
170
|
+
"clsx": "^2.1.1",
|
|
171
|
+
"gsap": "^3.14.2",
|
|
172
|
+
"motion": "^12.19.1",
|
|
173
|
+
"tailwind-merge": "^3.0.2"
|
|
170
174
|
}
|
|
171
175
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { cn } from '../../../utils/cn.js';
|
|
4
|
-
import { cardTheme } from './Card.theme.js';
|
|
5
|
-
|
|
6
|
-
const CardDescription = React__default.forwardRef(({ children, className, ...props }, ref) => {
|
|
7
|
-
return (jsx("div", { ref: ref, className: cn(cardTheme.descriptionStyle, className), ...props, children: children }));
|
|
8
|
-
});
|
|
9
|
-
CardDescription.displayName = 'CardDescription';
|
|
10
|
-
|
|
11
|
-
export { CardDescription };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { cn } from '../../../utils/cn.js';
|
|
3
|
-
import { useModalContext } from './Modal.js';
|
|
4
|
-
|
|
5
|
-
const ModalDescription = ({ children, className, ...props }) => {
|
|
6
|
-
const { theme, descriptionId } = useModalContext();
|
|
7
|
-
return (jsx("p", { id: descriptionId, className: cn(theme.description, className), ...props, children: children }));
|
|
8
|
-
};
|
|
9
|
-
ModalDescription.displayName = "Modal.Description";
|
|
10
|
-
|
|
11
|
-
export { ModalDescription };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, PropsWithChildren } from "react";
|
|
2
|
-
export type ProgressiveBlurProps = PropsWithChildren<{
|
|
3
|
-
position?: "top" | "bottom" | "left" | "right";
|
|
4
|
-
strength?: number;
|
|
5
|
-
height?: string;
|
|
6
|
-
width?: string;
|
|
7
|
-
divCount?: number;
|
|
8
|
-
exponential?: boolean;
|
|
9
|
-
zIndex?: number;
|
|
10
|
-
animated?: boolean | "scroll";
|
|
11
|
-
duration?: string;
|
|
12
|
-
easing?: string;
|
|
13
|
-
opacity?: number;
|
|
14
|
-
curve?: "linear" | "bezier" | "ease-in" | "ease-out" | "ease-in-out";
|
|
15
|
-
responsive?: boolean;
|
|
16
|
-
mobileHeight?: string;
|
|
17
|
-
tabletHeight?: string;
|
|
18
|
-
desktopHeight?: string;
|
|
19
|
-
mobileWidth?: string;
|
|
20
|
-
tabletWidth?: string;
|
|
21
|
-
desktopWidth?: string;
|
|
22
|
-
preset?: "top" | "bottom" | "left" | "right" | "subtle" | "intense" | "smooth" | "sharp" | "header" | "footer" | "sidebar" | "page-header" | "page-footer";
|
|
23
|
-
gpuOptimized?: boolean;
|
|
24
|
-
hoverIntensity?: number;
|
|
25
|
-
target?: "parent" | "page";
|
|
26
|
-
onAnimationComplete?: () => void;
|
|
27
|
-
className?: string;
|
|
28
|
-
style?: CSSProperties;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const ProgressiveBlur: React.NamedExoticComponent<ProgressiveBlurProps> & {
|
|
31
|
-
displayName: string;
|
|
32
|
-
PRESETS: Record<string, Partial<ProgressiveBlurProps>>;
|
|
33
|
-
CURVE_FUNCTIONS: Record<string, (p: number) => number>;
|
|
34
|
-
};
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import React__default, { useRef, useState, useMemo, useEffect } from 'react';
|
|
3
|
-
|
|
4
|
-
const DEFAULT_CONFIG = {
|
|
5
|
-
position: "bottom",
|
|
6
|
-
strength: 2,
|
|
7
|
-
height: "6rem",
|
|
8
|
-
divCount: 5,
|
|
9
|
-
exponential: false,
|
|
10
|
-
zIndex: 1000,
|
|
11
|
-
animated: false,
|
|
12
|
-
duration: "0.3s",
|
|
13
|
-
easing: "ease-out",
|
|
14
|
-
opacity: 1,
|
|
15
|
-
curve: "linear",
|
|
16
|
-
responsive: false,
|
|
17
|
-
target: "parent",
|
|
18
|
-
className: "",
|
|
19
|
-
style: {},
|
|
20
|
-
};
|
|
21
|
-
const PRESETS = {
|
|
22
|
-
top: { position: "top", height: "6rem" },
|
|
23
|
-
bottom: { position: "bottom", height: "6rem" },
|
|
24
|
-
left: { position: "left", height: "6rem" },
|
|
25
|
-
right: { position: "right", height: "6rem" },
|
|
26
|
-
subtle: { height: "4rem", strength: 1, opacity: 0.8, divCount: 3 },
|
|
27
|
-
intense: { height: "10rem", strength: 4, divCount: 8, exponential: true },
|
|
28
|
-
smooth: { height: "8rem", curve: "bezier", divCount: 10 },
|
|
29
|
-
sharp: { height: "5rem", curve: "linear", divCount: 4 },
|
|
30
|
-
header: { position: "top", height: "8rem", curve: "ease-out" },
|
|
31
|
-
footer: { position: "bottom", height: "8rem", curve: "ease-out" },
|
|
32
|
-
sidebar: { position: "left", height: "6rem", strength: 2.5 },
|
|
33
|
-
"page-header": {
|
|
34
|
-
position: "top",
|
|
35
|
-
height: "10rem",
|
|
36
|
-
target: "page",
|
|
37
|
-
strength: 3,
|
|
38
|
-
},
|
|
39
|
-
"page-footer": {
|
|
40
|
-
position: "bottom",
|
|
41
|
-
height: "10rem",
|
|
42
|
-
target: "page",
|
|
43
|
-
strength: 3,
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
const CURVE_FUNCTIONS = {
|
|
47
|
-
linear: (p) => p,
|
|
48
|
-
bezier: (p) => p * p * (3 - 2 * p),
|
|
49
|
-
"ease-in": (p) => p * p,
|
|
50
|
-
"ease-out": (p) => 1 - Math.pow(1 - p, 2),
|
|
51
|
-
"ease-in-out": (p) => (p < 0.5 ? 2 * p * p : 1 - Math.pow(-2 * p + 2, 2) / 2),
|
|
52
|
-
};
|
|
53
|
-
const mergeConfigs = (...configs) => {
|
|
54
|
-
return configs.reduce((acc, config) => ({ ...acc, ...config }), {});
|
|
55
|
-
};
|
|
56
|
-
const getGradientDirection = (position) => {
|
|
57
|
-
const directions = {
|
|
58
|
-
top: "to top",
|
|
59
|
-
bottom: "to bottom",
|
|
60
|
-
left: "to left",
|
|
61
|
-
right: "to right",
|
|
62
|
-
};
|
|
63
|
-
return directions[position] || "to bottom";
|
|
64
|
-
};
|
|
65
|
-
const debounce = (fn, wait) => {
|
|
66
|
-
let t;
|
|
67
|
-
return (...a) => {
|
|
68
|
-
clearTimeout(t);
|
|
69
|
-
t = setTimeout(() => fn(...a), wait);
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
const useResponsiveDimension = (responsive, config, key) => {
|
|
73
|
-
const [val, setVal] = useState(config[key]);
|
|
74
|
-
useEffect(() => {
|
|
75
|
-
if (!responsive)
|
|
76
|
-
return;
|
|
77
|
-
const calc = () => {
|
|
78
|
-
const w = window.innerWidth;
|
|
79
|
-
let v = config[key];
|
|
80
|
-
const cap = (s) => s.charAt(0).toUpperCase() + s.slice(1);
|
|
81
|
-
const k = cap(key);
|
|
82
|
-
if (w <= 480 && config["mobile" + k])
|
|
83
|
-
v = config["mobile" + k];
|
|
84
|
-
else if (w <= 768 && config["tablet" + k])
|
|
85
|
-
v = config["tablet" + k];
|
|
86
|
-
else if (w <= 1024 && config["desktop" + k])
|
|
87
|
-
v = config["desktop" + k];
|
|
88
|
-
setVal(v);
|
|
89
|
-
};
|
|
90
|
-
const deb = debounce(calc, 100);
|
|
91
|
-
calc();
|
|
92
|
-
window.addEventListener("resize", deb);
|
|
93
|
-
return () => window.removeEventListener("resize", deb);
|
|
94
|
-
}, [responsive, config, key]);
|
|
95
|
-
return responsive ? val : config[key];
|
|
96
|
-
};
|
|
97
|
-
const useIntersectionObserver = (ref, shouldObserve = false) => {
|
|
98
|
-
const [isVisible, setIsVisible] = useState(!shouldObserve);
|
|
99
|
-
useEffect(() => {
|
|
100
|
-
if (!shouldObserve || !ref.current)
|
|
101
|
-
return;
|
|
102
|
-
const observer = new IntersectionObserver(([entry]) => setIsVisible(entry.isIntersecting), { threshold: 0.1 });
|
|
103
|
-
observer.observe(ref.current);
|
|
104
|
-
return () => observer.disconnect();
|
|
105
|
-
}, [ref, shouldObserve]);
|
|
106
|
-
return isVisible;
|
|
107
|
-
};
|
|
108
|
-
const ProgressiveBlurBase = (props) => {
|
|
109
|
-
const containerRef = useRef(null);
|
|
110
|
-
const [isHovered, setIsHovered] = useState(false);
|
|
111
|
-
const config = useMemo(() => {
|
|
112
|
-
const presetConfig = props.preset && PRESETS[props.preset] ? PRESETS[props.preset] : {};
|
|
113
|
-
return mergeConfigs(DEFAULT_CONFIG, presetConfig, props);
|
|
114
|
-
}, [props]);
|
|
115
|
-
const responsiveHeight = useResponsiveDimension(config.responsive, config, "height");
|
|
116
|
-
const responsiveWidth = useResponsiveDimension(config.responsive, config, "width");
|
|
117
|
-
const isVisible = useIntersectionObserver(containerRef, config.animated === "scroll");
|
|
118
|
-
const blurDivs = useMemo(() => {
|
|
119
|
-
const divs = [];
|
|
120
|
-
const increment = 100 / config.divCount;
|
|
121
|
-
const currentStrength = isHovered && config.hoverIntensity
|
|
122
|
-
? config.strength * config.hoverIntensity
|
|
123
|
-
: config.strength;
|
|
124
|
-
const curveFunc = CURVE_FUNCTIONS[config.curve] || CURVE_FUNCTIONS.linear;
|
|
125
|
-
for (let i = 1; i <= config.divCount; i++) {
|
|
126
|
-
let progress = i / config.divCount;
|
|
127
|
-
progress = curveFunc(progress);
|
|
128
|
-
let blurValue;
|
|
129
|
-
if (config.exponential) {
|
|
130
|
-
blurValue =
|
|
131
|
-
Math.pow(2, progress * 4) * 0.0625 * currentStrength;
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
blurValue = 0.0625 * (progress * config.divCount + 1) * currentStrength;
|
|
135
|
-
}
|
|
136
|
-
const p1 = Math.round((increment * i - increment) * 10) / 10;
|
|
137
|
-
const p2 = Math.round(increment * i * 10) / 10;
|
|
138
|
-
const p3 = Math.round((increment * i + increment) * 10) / 10;
|
|
139
|
-
const p4 = Math.round((increment * i + increment * 2) * 10) / 10;
|
|
140
|
-
let gradient = `transparent ${p1}%, black ${p2}%`;
|
|
141
|
-
if (p3 <= 100)
|
|
142
|
-
gradient += `, black ${p3}%`;
|
|
143
|
-
if (p4 <= 100)
|
|
144
|
-
gradient += `, transparent ${p4}%`;
|
|
145
|
-
const direction = getGradientDirection(config.position);
|
|
146
|
-
const divStyle = {
|
|
147
|
-
maskImage: `linear-gradient(${direction}, ${gradient})`,
|
|
148
|
-
WebkitMaskImage: `linear-gradient(${direction}, ${gradient})`,
|
|
149
|
-
backdropFilter: `blur(${blurValue.toFixed(3)}rem)`,
|
|
150
|
-
opacity: config.opacity,
|
|
151
|
-
transition: config.animated && config.animated !== "scroll"
|
|
152
|
-
? `backdrop-filter ${config.duration} ${config.easing}`
|
|
153
|
-
: undefined,
|
|
154
|
-
};
|
|
155
|
-
divs.push(jsx("div", { className: "absolute inset-0", style: divStyle }, i));
|
|
156
|
-
}
|
|
157
|
-
return divs;
|
|
158
|
-
}, [config, isHovered]);
|
|
159
|
-
const containerStyle = useMemo(() => {
|
|
160
|
-
const isVertical = ["top", "bottom"].includes(config.position);
|
|
161
|
-
const isHorizontal = ["left", "right"].includes(config.position);
|
|
162
|
-
const isPageTarget = config.target === "page";
|
|
163
|
-
const baseStyle = {
|
|
164
|
-
position: isPageTarget ? "fixed" : "absolute",
|
|
165
|
-
pointerEvents: config.hoverIntensity ? "auto" : "none",
|
|
166
|
-
opacity: isVisible ? 1 : 0,
|
|
167
|
-
transition: config.animated
|
|
168
|
-
? `opacity ${config.duration} ${config.easing}`
|
|
169
|
-
: undefined,
|
|
170
|
-
zIndex: isPageTarget ? config.zIndex + 100 : config.zIndex,
|
|
171
|
-
...config.style,
|
|
172
|
-
};
|
|
173
|
-
if (isVertical) {
|
|
174
|
-
baseStyle.height = responsiveHeight;
|
|
175
|
-
baseStyle.width = responsiveWidth || "100%";
|
|
176
|
-
baseStyle[config.position] = 0;
|
|
177
|
-
baseStyle.left = 0;
|
|
178
|
-
baseStyle.right = 0;
|
|
179
|
-
}
|
|
180
|
-
else if (isHorizontal) {
|
|
181
|
-
baseStyle.width = responsiveWidth || responsiveHeight;
|
|
182
|
-
baseStyle.height = "100%";
|
|
183
|
-
baseStyle[config.position] = 0;
|
|
184
|
-
baseStyle.top = 0;
|
|
185
|
-
baseStyle.bottom = 0;
|
|
186
|
-
}
|
|
187
|
-
return baseStyle;
|
|
188
|
-
}, [config, responsiveHeight, responsiveWidth, isVisible]);
|
|
189
|
-
const { hoverIntensity, animated, onAnimationComplete, duration } = config;
|
|
190
|
-
useEffect(() => {
|
|
191
|
-
if (isVisible && animated === "scroll" && onAnimationComplete) {
|
|
192
|
-
const t = setTimeout(() => onAnimationComplete(), parseFloat(duration) * 1000);
|
|
193
|
-
return () => clearTimeout(t);
|
|
194
|
-
}
|
|
195
|
-
}, [isVisible, animated, onAnimationComplete, duration]);
|
|
196
|
-
return (jsxs("div", { ref: containerRef, className: `gradual-blur relative isolate ${config.target === "page" ? "gradual-blur-page" : "gradual-blur-parent"} ${config.className}`, style: containerStyle, onMouseEnter: hoverIntensity ? () => setIsHovered(true) : undefined, onMouseLeave: hoverIntensity ? () => setIsHovered(false) : undefined, children: [jsx("div", { className: "relative w-full h-full", children: blurDivs }), props.children && jsx("div", { className: "relative", children: props.children })] }));
|
|
197
|
-
};
|
|
198
|
-
const ProgressiveBlur = Object.assign(React__default.memo(ProgressiveBlurBase), {
|
|
199
|
-
displayName: "ProgressiveBlur",
|
|
200
|
-
PRESETS,
|
|
201
|
-
CURVE_FUNCTIONS,
|
|
202
|
-
});
|
|
203
|
-
const injectStyles = () => {
|
|
204
|
-
if (typeof document === "undefined")
|
|
205
|
-
return;
|
|
206
|
-
const id = "gradual-blur-styles";
|
|
207
|
-
if (document.getElementById(id))
|
|
208
|
-
return;
|
|
209
|
-
const el = document.createElement("style");
|
|
210
|
-
el.id = id;
|
|
211
|
-
el.textContent = `.gradual-blur{pointer-events:none;transition:opacity .3s ease-out}.gradual-blur-inner{pointer-events:none}`;
|
|
212
|
-
document.head.appendChild(el);
|
|
213
|
-
};
|
|
214
|
-
if (typeof document !== "undefined") {
|
|
215
|
-
injectStyles();
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export { ProgressiveBlur };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const progressiveBlurTheme: {
|
|
2
|
-
readonly baseStyle: "absolute pointer-events-none z-10";
|
|
3
|
-
readonly positions: {
|
|
4
|
-
readonly top: "top-0 left-0 right-0";
|
|
5
|
-
readonly bottom: "bottom-0 left-0 right-0";
|
|
6
|
-
readonly left: "left-0 top-0 bottom-0";
|
|
7
|
-
readonly right: "right-0 top-0 bottom-0";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type ProgressiveBlurPosition = "top" | "bottom" | "left" | "right";
|
|
3
|
-
export interface ProgressiveBlurProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Position(s) where the blur effect should be applied
|
|
6
|
-
* Can be a single position or array of positions
|
|
7
|
-
*/
|
|
8
|
-
position: ProgressiveBlurPosition | ProgressiveBlurPosition[];
|
|
9
|
-
/**
|
|
10
|
-
* Blur intensity in pixels
|
|
11
|
-
* @default 8
|
|
12
|
-
*/
|
|
13
|
-
blurIntensity?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Custom blur levels array for more control
|
|
16
|
-
* If provided, overrides blurIntensity
|
|
17
|
-
*/
|
|
18
|
-
blurLevels?: number[];
|
|
19
|
-
/**
|
|
20
|
-
* Number of blur layers to generate for the gradient effect
|
|
21
|
-
* Higher numbers result in smoother gradients but may impact performance
|
|
22
|
-
* @default 8
|
|
23
|
-
*/
|
|
24
|
-
layers?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Size of the blur region (height for top/bottom, width for left/right)
|
|
27
|
-
* @default "40px"
|
|
28
|
-
*/
|
|
29
|
-
size?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Custom className for styling overrides
|
|
32
|
-
*/
|
|
33
|
-
className?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Theme overrides
|
|
36
|
-
*/
|
|
37
|
-
theme?: ProgressiveBlurThemeOverrides;
|
|
38
|
-
}
|
|
39
|
-
export interface ProgressiveBlurThemeOverrides {
|
|
40
|
-
/**
|
|
41
|
-
* Base styles for the blur container
|
|
42
|
-
*/
|
|
43
|
-
baseStyle?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Position-specific styles
|
|
46
|
-
*/
|
|
47
|
-
positions?: Partial<Record<ProgressiveBlurPosition, string>>;
|
|
48
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { Pagination } from '../Pagination/Pagination.js';
|
|
4
|
-
import { Select } from '../../forms/Select/Select.js';
|
|
5
|
-
import '../../forms/Select/Select.theme.js';
|
|
6
|
-
import { cn } from '../../../utils/cn.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* TablePagination provides a standardized pagination interface for tables
|
|
10
|
-
* Combines the core Pagination component with page size selection controls
|
|
11
|
-
*/
|
|
12
|
-
const TablePagination = React__default.forwardRef(({ currentPage, totalItems, pageSize, pageSizeOptions = [10, 25, 50, 100], onPageChange, onPageSizeChange, showPageSizeSelector = true, className, }, ref) => {
|
|
13
|
-
const totalPages = Math.ceil(totalItems / pageSize);
|
|
14
|
-
const startItem = (currentPage - 1) * pageSize + 1;
|
|
15
|
-
const endItem = Math.min(currentPage * pageSize, totalItems);
|
|
16
|
-
const pageSizeSelectOptions = pageSizeOptions.map((option) => ({
|
|
17
|
-
id: option,
|
|
18
|
-
label: option.toString(),
|
|
19
|
-
value: option,
|
|
20
|
-
}));
|
|
21
|
-
return (jsxs("div", { ref: ref, className: cn("flex items-center justify-between px-4 py-3 border-t border-[var(--color-border)] bg-[var(--color-background)]", className), children: [jsxs("div", { className: "flex items-center gap-4", children: [showPageSizeSelector && (jsxs("div", { className: "flex items-center gap-2", children: [jsx("span", { className: "text-sm text-[var(--color-text-muted)]", children: "Rows per page:" }), jsx(Select, { value: pageSize, onChange: (value) => onPageSizeChange(value), options: pageSizeSelectOptions, size: "sm", className: "w-20" })] })), jsx("div", { className: "text-sm text-[var(--color-text-muted)]", children: totalItems > 0 ? (jsxs(Fragment, { children: ["Showing ", startItem.toLocaleString(), " to ", endItem.toLocaleString(), " of", " ", totalItems.toLocaleString(), " results"] })) : ("No results") })] }), totalPages > 1 && (jsx(Pagination, { currentPage: currentPage, totalPages: totalPages, onPageChange: onPageChange, showPrevNext: true, showFirstLast: false, siblingCount: 1 }))] }));
|
|
22
|
-
});
|
|
23
|
-
TablePagination.displayName = "Table.Pagination";
|
|
24
|
-
|
|
25
|
-
export { TablePagination };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|