@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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Size variants for the TransferList component
|
|
4
|
+
*/
|
|
5
|
+
export type TransferListSize = "sm" | "md" | "lg";
|
|
6
|
+
/**
|
|
7
|
+
* Individual item in the TransferList
|
|
8
|
+
*/
|
|
9
|
+
export interface TransferListItem {
|
|
10
|
+
/** Unique identifier for the item */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Display label for the item */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Whether the item is disabled and cannot be transferred */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Allow custom data to be attached to the item */
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* TransferList component props
|
|
21
|
+
*
|
|
22
|
+
* Supports both controlled (value + onChange) and uncontrolled (defaultValue) patterns.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* // Controlled
|
|
27
|
+
* <TransferList
|
|
28
|
+
* items={items}
|
|
29
|
+
* value={selectedIds}
|
|
30
|
+
* onChange={setSelectedIds}
|
|
31
|
+
* sourceTitle="Available"
|
|
32
|
+
* targetTitle="Selected"
|
|
33
|
+
* />
|
|
34
|
+
*
|
|
35
|
+
* // Uncontrolled
|
|
36
|
+
* <TransferList
|
|
37
|
+
* items={items}
|
|
38
|
+
* defaultValue={['item-1', 'item-2']}
|
|
39
|
+
* sourceTitle="Available"
|
|
40
|
+
* targetTitle="Selected"
|
|
41
|
+
* />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export interface TransferListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
45
|
+
/** All available items for both lists */
|
|
46
|
+
items: TransferListItem[];
|
|
47
|
+
/** IDs of items currently in the target list (controlled mode) */
|
|
48
|
+
value?: string[];
|
|
49
|
+
/** Default IDs of items in the target list (uncontrolled mode) */
|
|
50
|
+
defaultValue?: string[];
|
|
51
|
+
/** Callback when target list changes */
|
|
52
|
+
onChange?: (targetIds: string[]) => void;
|
|
53
|
+
/** Title displayed above the source list */
|
|
54
|
+
sourceTitle?: string;
|
|
55
|
+
/** Title displayed above the target list */
|
|
56
|
+
targetTitle?: string;
|
|
57
|
+
/** Whether to show search/filter inputs for each list */
|
|
58
|
+
searchable?: boolean;
|
|
59
|
+
/** Size variant affecting padding and text size */
|
|
60
|
+
size?: TransferListSize;
|
|
61
|
+
/** Custom renderer for each item in both lists */
|
|
62
|
+
renderItem?: (item: TransferListItem) => React.ReactNode;
|
|
63
|
+
/** Additional className for the root container */
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Theme configuration for the TransferList component
|
|
68
|
+
*/
|
|
69
|
+
export interface TransferListTheme {
|
|
70
|
+
/** Root container style */
|
|
71
|
+
baseStyle: string;
|
|
72
|
+
/** Individual list panel style */
|
|
73
|
+
panelStyle: string;
|
|
74
|
+
/** Panel header (title + count) style */
|
|
75
|
+
headerStyle: string;
|
|
76
|
+
/** Title text style */
|
|
77
|
+
titleStyle: string;
|
|
78
|
+
/** Item count badge style */
|
|
79
|
+
countStyle: string;
|
|
80
|
+
/** Search input wrapper style */
|
|
81
|
+
searchWrapperStyle: string;
|
|
82
|
+
/** Search input style */
|
|
83
|
+
searchInputStyle: string;
|
|
84
|
+
/** Scrollable list container style */
|
|
85
|
+
listStyle: string;
|
|
86
|
+
/** Individual item row style */
|
|
87
|
+
itemStyle: string;
|
|
88
|
+
/** Disabled item style */
|
|
89
|
+
itemDisabledStyle: string;
|
|
90
|
+
/** Actions column (transfer buttons) style */
|
|
91
|
+
actionsStyle: string;
|
|
92
|
+
/** Transfer button style */
|
|
93
|
+
buttonStyle: string;
|
|
94
|
+
/** Size variants */
|
|
95
|
+
sizes: Record<TransferListSize, {
|
|
96
|
+
panel: string;
|
|
97
|
+
item: string;
|
|
98
|
+
button: string;
|
|
99
|
+
searchInput: string;
|
|
100
|
+
}>;
|
|
101
|
+
}
|
|
@@ -60,3 +60,16 @@ export { Combobox } from "./Combobox";
|
|
|
60
60
|
export type { ComboboxProps, ComboboxOption, ComboboxSize, ComboboxState, ComboboxTheme, ComboboxThemeOverrides, } from "./Combobox";
|
|
61
61
|
export { comboboxTheme } from "./Combobox";
|
|
62
62
|
export * from "./ColorPicker";
|
|
63
|
+
export { SelectableCard } from "./SelectableCard";
|
|
64
|
+
export type { SelectableCardProps, SelectableCardGroupProps, SelectableCardType, SelectableCardIndicator, SelectableCardTheme, } from "./SelectableCard";
|
|
65
|
+
export { selectableCardTheme } from "./SelectableCard";
|
|
66
|
+
export { TransferList } from "./TransferList";
|
|
67
|
+
export type { TransferListProps, TransferListItem, TransferListSize, TransferListTheme, } from "./TransferList";
|
|
68
|
+
export { transferListTheme } from "./TransferList";
|
|
69
|
+
export { Mention } from "./Mention";
|
|
70
|
+
export type { MentionProps, MentionSuggestion, MentionTrigger, MentionSize, MentionTheme, MentionThemeOverrides, } from "./Mention";
|
|
71
|
+
export { mentionTheme } from "./Mention";
|
|
72
|
+
export { CronInput } from "./CronInput";
|
|
73
|
+
export type { CronInputProps, CronInputSize, CronInputMode, CronInputTheme, CronInputThemeOverrides, CronFields, CronPreset, } from "./CronInput";
|
|
74
|
+
export { cronInputTheme } from "./CronInput";
|
|
75
|
+
export { parseCron, fieldsToCron, validateCron, cronToDescription, getNextRuns, formatNextRun, CRON_PRESETS, } from "./CronInput";
|
|
@@ -58,6 +58,15 @@ export { ColorPickerFormatSelector } from './ColorPicker/ColorPickerFormatSelect
|
|
|
58
58
|
export { ColorPickerEyeDropper } from './ColorPicker/ColorPickerEyeDropper.js';
|
|
59
59
|
export { ColorPickerPresets } from './ColorPicker/ColorPickerPresets.js';
|
|
60
60
|
export { formatHex, formatHsl, formatRgb, hexToRgb, hslToRgb, hsvToRgb, parseColor, rgbToHex, rgbToHsl, rgbToHsv, validateHex, validateRgb } from './ColorPicker/colorUtils.js';
|
|
61
|
+
export { SelectableCard } from './SelectableCard/SelectableCard.js';
|
|
62
|
+
export { selectableCardTheme } from './SelectableCard/SelectableCard.theme.js';
|
|
63
|
+
export { TransferList } from './TransferList/TransferList.js';
|
|
64
|
+
export { transferListTheme } from './TransferList/TransferList.theme.js';
|
|
65
|
+
export { Mention } from './Mention/Mention.js';
|
|
66
|
+
export { mentionTheme } from './Mention/Mention.theme.js';
|
|
67
|
+
export { CronInput } from './CronInput/CronInput.js';
|
|
68
|
+
export { cronInputTheme } from './CronInput/CronInput.theme.js';
|
|
69
|
+
export { CRON_PRESETS, cronToDescription, fieldsToCron, formatNextRun, getNextRuns, parseCron, validateCron } from './CronInput/CronInput.utils.js';
|
|
61
70
|
export { DatePickerContent } from './DatePicker/DatePickerContent.js';
|
|
62
71
|
export { DatePickerPresets } from './DatePicker/DatePickerPresets.js';
|
|
63
72
|
export { DatePickerTrigger } from './DatePicker/DatePickerTrigger.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FormLayoutProps } from "./FormLayout.types";
|
|
3
|
+
export declare const FormLayout: React.ForwardRefExoticComponent<FormLayoutProps & React.RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
Header: React.ForwardRefExoticComponent<import("./FormLayout.types").FormLayoutHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Body: React.ForwardRefExoticComponent<import("./FormLayout.types").FormLayoutBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Section: React.ForwardRefExoticComponent<import("./FormLayout.types").FormLayoutSectionProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
Footer: React.ForwardRefExoticComponent<import("./FormLayout.types").FormLayoutFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { formLayoutTheme } from './FormLayout.theme.js';
|
|
5
|
+
import { FormLayoutHeader } from './FormLayoutHeader.js';
|
|
6
|
+
import { FormLayoutBody } from './FormLayoutBody.js';
|
|
7
|
+
import { FormLayoutSection } from './FormLayoutSection.js';
|
|
8
|
+
import { FormLayoutFooter } from './FormLayoutFooter.js';
|
|
9
|
+
|
|
10
|
+
const FormLayoutRoot = React__default.forwardRef(({ className, theme: customTheme, children, ...props }, ref) => {
|
|
11
|
+
const theme = { ...formLayoutTheme, ...customTheme };
|
|
12
|
+
return (jsx("div", { ref: ref, className: cn(theme.root, className), ...props, children: children }));
|
|
13
|
+
});
|
|
14
|
+
FormLayoutRoot.displayName = "FormLayout";
|
|
15
|
+
const FormLayout = Object.assign(FormLayoutRoot, {
|
|
16
|
+
Header: FormLayoutHeader,
|
|
17
|
+
Body: FormLayoutBody,
|
|
18
|
+
Section: FormLayoutSection,
|
|
19
|
+
Footer: FormLayoutFooter,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export { FormLayout };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const formLayoutTheme = {
|
|
2
|
+
root: "flex flex-col gap-6",
|
|
3
|
+
header: "border-b border-[var(--color-border)] pb-6",
|
|
4
|
+
headerTitle: "text-base font-semibold text-[var(--color-text-primary)]",
|
|
5
|
+
headerSubtitle: "text-base text-[var(--color-text-muted)]",
|
|
6
|
+
body: "flex flex-col gap-6",
|
|
7
|
+
section: "grid grid-cols-1 md:grid-cols-6 gap-6 md:gap-10",
|
|
8
|
+
sectionSidebar: "col-span-full md:col-span-2",
|
|
9
|
+
sectionTitle: "text-base font-semibold text-[var(--color-text-primary)]",
|
|
10
|
+
sectionDescription: "text-sm text-[var(--color-text-muted)] mt-1",
|
|
11
|
+
sectionAction: "mt-4",
|
|
12
|
+
sectionContent: "col-span-full md:col-span-4 grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
13
|
+
footer: "flex flex-col-reverse sm:flex-row sm:justify-between items-center gap-3 border-t border-[var(--color-border)] pt-3",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { formLayoutTheme };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface FormLayoutTheme {
|
|
3
|
+
root: string;
|
|
4
|
+
header: string;
|
|
5
|
+
headerTitle: string;
|
|
6
|
+
headerSubtitle: string;
|
|
7
|
+
body: string;
|
|
8
|
+
section: string;
|
|
9
|
+
sectionSidebar: string;
|
|
10
|
+
sectionTitle: string;
|
|
11
|
+
sectionDescription: string;
|
|
12
|
+
sectionAction: string;
|
|
13
|
+
sectionContent: string;
|
|
14
|
+
footer: string;
|
|
15
|
+
}
|
|
16
|
+
export interface FormLayoutThemeOverrides {
|
|
17
|
+
root?: string;
|
|
18
|
+
header?: string;
|
|
19
|
+
headerTitle?: string;
|
|
20
|
+
headerSubtitle?: string;
|
|
21
|
+
body?: string;
|
|
22
|
+
section?: string;
|
|
23
|
+
sectionSidebar?: string;
|
|
24
|
+
sectionTitle?: string;
|
|
25
|
+
sectionDescription?: string;
|
|
26
|
+
sectionAction?: string;
|
|
27
|
+
sectionContent?: string;
|
|
28
|
+
footer?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface FormLayoutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
31
|
+
/** Theme overrides for the root container. */
|
|
32
|
+
theme?: FormLayoutThemeOverrides;
|
|
33
|
+
}
|
|
34
|
+
export interface FormLayoutHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
/** Header title text. */
|
|
36
|
+
title: string;
|
|
37
|
+
/** Optional subtitle displayed below the title. */
|
|
38
|
+
subtitle?: string;
|
|
39
|
+
/** Optional action element rendered on the right side of the header. */
|
|
40
|
+
action?: React.ReactNode;
|
|
41
|
+
/** Theme overrides for the header. */
|
|
42
|
+
theme?: FormLayoutThemeOverrides;
|
|
43
|
+
}
|
|
44
|
+
export interface FormLayoutBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
45
|
+
}
|
|
46
|
+
export interface FormLayoutSectionProps extends React.HTMLAttributes<HTMLElement> {
|
|
47
|
+
/** Section title text. */
|
|
48
|
+
title: string;
|
|
49
|
+
/** Optional description displayed below the title. */
|
|
50
|
+
description?: string;
|
|
51
|
+
/** Optional action element rendered below the description. */
|
|
52
|
+
action?: React.ReactNode;
|
|
53
|
+
/** Additional className applied to the content area. */
|
|
54
|
+
contentClassName?: string;
|
|
55
|
+
/** Theme overrides for the section. */
|
|
56
|
+
theme?: FormLayoutThemeOverrides;
|
|
57
|
+
}
|
|
58
|
+
export interface FormLayoutFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
59
|
+
/** Theme overrides for the footer. */
|
|
60
|
+
theme?: FormLayoutThemeOverrides;
|
|
61
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { formLayoutTheme } from './FormLayout.theme.js';
|
|
5
|
+
import { Separator } from '../../core/Separator/Separator.js';
|
|
6
|
+
|
|
7
|
+
const FormLayoutBody = React__default.forwardRef(({ className, children, ...props }, ref) => {
|
|
8
|
+
const childArray = React__default.Children.toArray(children).filter(Boolean);
|
|
9
|
+
return (jsx("div", { ref: ref, className: cn(formLayoutTheme.body, className), ...props, children: childArray.map((child, index) => (jsxs(React__default.Fragment, { children: [child, index < childArray.length - 1 && jsx(Separator, {})] }, index))) }));
|
|
10
|
+
});
|
|
11
|
+
FormLayoutBody.displayName = "FormLayout.Body";
|
|
12
|
+
|
|
13
|
+
export { FormLayoutBody };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { formLayoutTheme } from './FormLayout.theme.js';
|
|
5
|
+
|
|
6
|
+
const FormLayoutFooter = React__default.forwardRef(({ className, theme: customTheme, children, ...props }, ref) => {
|
|
7
|
+
const theme = { ...formLayoutTheme, ...customTheme };
|
|
8
|
+
return (jsx("div", { ref: ref, className: cn(theme.footer, className), ...props, children: children }));
|
|
9
|
+
});
|
|
10
|
+
FormLayoutFooter.displayName = "FormLayout.Footer";
|
|
11
|
+
|
|
12
|
+
export { FormLayoutFooter };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { formLayoutTheme } from './FormLayout.theme.js';
|
|
5
|
+
|
|
6
|
+
const FormLayoutHeader = React__default.forwardRef(({ title, subtitle, action, className, theme: customTheme, ...props }, ref) => {
|
|
7
|
+
const theme = { ...formLayoutTheme, ...customTheme };
|
|
8
|
+
return (jsx("div", { ref: ref, className: cn(theme.header, className), ...props, children: jsxs("div", { className: "flex items-start justify-between", children: [jsxs("div", { children: [jsx("div", { className: theme.headerTitle, children: title }), subtitle && jsx("div", { className: theme.headerSubtitle, children: subtitle })] }), action && jsx("div", { children: action })] }) }));
|
|
9
|
+
});
|
|
10
|
+
FormLayoutHeader.displayName = "FormLayout.Header";
|
|
11
|
+
|
|
12
|
+
export { FormLayoutHeader };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { formLayoutTheme } from './FormLayout.theme.js';
|
|
5
|
+
|
|
6
|
+
const FormLayoutSection = React__default.forwardRef(({ title, description, action, className, contentClassName, theme: customTheme, children, ...props }, ref) => {
|
|
7
|
+
const theme = { ...formLayoutTheme, ...customTheme };
|
|
8
|
+
return (jsxs("section", { ref: ref, className: cn(theme.section, className), ...props, children: [jsxs("div", { className: theme.sectionSidebar, children: [jsx("div", { className: theme.sectionTitle, children: title }), description && (jsx("div", { className: theme.sectionDescription, children: description })), action && jsx("div", { className: theme.sectionAction, children: action })] }), jsx("div", { className: cn(theme.sectionContent, contentClassName), children: children })] }));
|
|
9
|
+
});
|
|
10
|
+
FormLayoutSection.displayName = "FormLayout.Section";
|
|
11
|
+
|
|
12
|
+
export { FormLayoutSection };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { FormLayout } from "./FormLayout";
|
|
2
|
+
export type { FormLayoutProps, FormLayoutHeaderProps, FormLayoutBodyProps, FormLayoutSectionProps, FormLayoutFooterProps, FormLayoutTheme, FormLayoutThemeOverrides, } from "./FormLayout.types";
|
|
3
|
+
export { formLayoutTheme } from "./FormLayout.theme";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { PageLayoutProps } from "./PageLayout.types";
|
|
3
|
+
export declare const PageLayout: React.ForwardRefExoticComponent<PageLayoutProps & React.RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
Sidebar: React.ForwardRefExoticComponent<import("./PageLayout.types").PageLayoutSidebarProps & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
Header: React.ForwardRefExoticComponent<import("./PageLayout.types").PageLayoutHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
Content: React.ForwardRefExoticComponent<import("./PageLayout.types").PageLayoutContentProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { pageLayoutTheme } from './PageLayout.theme.js';
|
|
5
|
+
import { PageLayoutSidebar } from './PageLayoutSidebar.js';
|
|
6
|
+
import { PageLayoutHeader } from './PageLayoutHeader.js';
|
|
7
|
+
import { PageLayoutContent } from './PageLayoutContent.js';
|
|
8
|
+
|
|
9
|
+
const PageLayoutRoot = React__default.forwardRef(({ className, theme: customTheme, children, ...props }, ref) => {
|
|
10
|
+
const theme = { ...pageLayoutTheme, ...customTheme };
|
|
11
|
+
// Separate Sidebar children from the rest (Header, Content)
|
|
12
|
+
// so we can wrap non-sidebar children in a vertical main column.
|
|
13
|
+
const childArray = React__default.Children.toArray(children);
|
|
14
|
+
const sidebar = [];
|
|
15
|
+
const main = [];
|
|
16
|
+
childArray.forEach((child) => {
|
|
17
|
+
if (React__default.isValidElement(child) && child.type === PageLayoutSidebar) {
|
|
18
|
+
sidebar.push(child);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
main.push(child);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return (jsxs("div", { ref: ref, className: cn(theme.root, className), ...props, children: [sidebar, jsx("div", { className: cn(theme.main), children: main })] }));
|
|
25
|
+
});
|
|
26
|
+
PageLayoutRoot.displayName = "PageLayout";
|
|
27
|
+
const PageLayout = Object.assign(PageLayoutRoot, {
|
|
28
|
+
Sidebar: PageLayoutSidebar,
|
|
29
|
+
Header: PageLayoutHeader,
|
|
30
|
+
Content: PageLayoutContent,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export { PageLayout };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const pageLayoutTheme = {
|
|
2
|
+
root: "flex h-screen overflow-hidden bg-[var(--color-background)]",
|
|
3
|
+
sidebar: "flex flex-col shrink-0 border-r border-[var(--color-border)] bg-[var(--color-background-secondary)] overflow-y-auto",
|
|
4
|
+
sidebarCollapsed: "hidden lg:flex",
|
|
5
|
+
main: "flex flex-col flex-1 min-w-0 overflow-hidden",
|
|
6
|
+
header: "shrink-0 border-b border-[var(--color-border)] bg-[var(--color-background)]",
|
|
7
|
+
content: "flex-1 overflow-y-auto",
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { pageLayoutTheme };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PageLayoutTheme {
|
|
3
|
+
root: string;
|
|
4
|
+
sidebar: string;
|
|
5
|
+
sidebarCollapsed: string;
|
|
6
|
+
main: string;
|
|
7
|
+
header: string;
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PageLayoutThemeOverrides {
|
|
11
|
+
root?: string;
|
|
12
|
+
sidebar?: string;
|
|
13
|
+
sidebarCollapsed?: string;
|
|
14
|
+
main?: string;
|
|
15
|
+
header?: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PageLayoutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
/** Theme overrides for the root container. */
|
|
20
|
+
theme?: PageLayoutThemeOverrides;
|
|
21
|
+
}
|
|
22
|
+
export interface PageLayoutSidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
23
|
+
/** Width of the sidebar (CSS value). Defaults to "16rem". */
|
|
24
|
+
width?: string;
|
|
25
|
+
/** Whether the sidebar is collapsed on mobile. Defaults to true. */
|
|
26
|
+
collapsedOnMobile?: boolean;
|
|
27
|
+
/** Theme overrides for the sidebar. */
|
|
28
|
+
theme?: PageLayoutThemeOverrides;
|
|
29
|
+
}
|
|
30
|
+
export interface PageLayoutHeaderProps extends React.HTMLAttributes<HTMLElement> {
|
|
31
|
+
/** Whether the header is sticky. Defaults to true. */
|
|
32
|
+
sticky?: boolean;
|
|
33
|
+
/** Theme overrides for the header. */
|
|
34
|
+
theme?: PageLayoutThemeOverrides;
|
|
35
|
+
}
|
|
36
|
+
export interface PageLayoutContentProps extends React.HTMLAttributes<HTMLElement> {
|
|
37
|
+
/** Theme overrides for the content area. */
|
|
38
|
+
theme?: PageLayoutThemeOverrides;
|
|
39
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { pageLayoutTheme } from './PageLayout.theme.js';
|
|
5
|
+
|
|
6
|
+
const PageLayoutContent = React__default.forwardRef(({ className, theme: customTheme, children, ...props }, ref) => {
|
|
7
|
+
const theme = { ...pageLayoutTheme, ...customTheme };
|
|
8
|
+
return (jsx("main", { ref: ref, className: cn(theme.content, className), ...props, children: children }));
|
|
9
|
+
});
|
|
10
|
+
PageLayoutContent.displayName = "PageLayout.Content";
|
|
11
|
+
|
|
12
|
+
export { PageLayoutContent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { pageLayoutTheme } from './PageLayout.theme.js';
|
|
5
|
+
|
|
6
|
+
const PageLayoutHeader = React__default.forwardRef(({ sticky = true, className, theme: customTheme, children, ...props }, ref) => {
|
|
7
|
+
const theme = { ...pageLayoutTheme, ...customTheme };
|
|
8
|
+
return (jsx("header", { ref: ref, className: cn(theme.header, sticky && "sticky top-0 z-10", className), ...props, children: children }));
|
|
9
|
+
});
|
|
10
|
+
PageLayoutHeader.displayName = "PageLayout.Header";
|
|
11
|
+
|
|
12
|
+
export { PageLayoutHeader };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { cn } from '../../../utils/cn.js';
|
|
4
|
+
import { pageLayoutTheme } from './PageLayout.theme.js';
|
|
5
|
+
|
|
6
|
+
const PageLayoutSidebar = React__default.forwardRef(({ width = "16rem", collapsedOnMobile = true, className, theme: customTheme, style, children, ...props }, ref) => {
|
|
7
|
+
const theme = { ...pageLayoutTheme, ...customTheme };
|
|
8
|
+
return (jsx("aside", { ref: ref, className: cn(theme.sidebar, collapsedOnMobile && theme.sidebarCollapsed, className), style: { width, ...style }, ...props, children: children }));
|
|
9
|
+
});
|
|
10
|
+
PageLayoutSidebar.displayName = "PageLayout.Sidebar";
|
|
11
|
+
|
|
12
|
+
export { PageLayoutSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./components/core";
|
|
2
|
+
export * from "./components/data-display";
|
|
2
3
|
export * from "./components/forms";
|
|
3
4
|
export * from "./components/charts";
|
|
5
|
+
export * from "./components/layout";
|
|
4
6
|
export * from "./components/effects";
|
|
5
7
|
export { cn } from "./utils/cn";
|
|
6
8
|
export { debounce } from "./utils/debounce";
|