@gostack-framework/ui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE.md +5 -0
- package/dist/activity/index.d.ts +2 -0
- package/dist/activity/index.js +3 -0
- package/dist/activity/index.js.map +1 -0
- package/dist/clickup/common/InlineNameTab.d.ts +11 -0
- package/dist/clickup/common/InlineNameTab.js +50 -0
- package/dist/clickup/common/InlineNameTab.js.map +1 -0
- package/dist/clickup/common/TaskAssigneeAvatar.d.ts +14 -0
- package/dist/clickup/common/TaskAssigneeAvatar.js +32 -0
- package/dist/clickup/common/TaskAssigneeAvatar.js.map +1 -0
- package/dist/clickup/common/TaskBreadcrumb.d.ts +11 -0
- package/dist/clickup/common/TaskBreadcrumb.js +11 -0
- package/dist/clickup/common/TaskBreadcrumb.js.map +1 -0
- package/dist/clickup/common/TaskCheck.d.ts +10 -0
- package/dist/clickup/common/TaskCheck.js +17 -0
- package/dist/clickup/common/TaskCheck.js.map +1 -0
- package/dist/clickup/common/TaskContextMenu.d.ts +10 -0
- package/dist/clickup/common/TaskContextMenu.js +22 -0
- package/dist/clickup/common/TaskContextMenu.js.map +1 -0
- package/dist/clickup/common/TaskIcon.d.ts +29 -0
- package/dist/clickup/common/TaskIcon.js +30 -0
- package/dist/clickup/common/TaskIcon.js.map +1 -0
- package/dist/clickup/common/TaskPriorityBadge.d.ts +11 -0
- package/dist/clickup/common/TaskPriorityBadge.js +11 -0
- package/dist/clickup/common/TaskPriorityBadge.js.map +1 -0
- package/dist/clickup/common/TaskRowActionMenu.d.ts +6 -0
- package/dist/clickup/common/TaskRowActionMenu.js +10 -0
- package/dist/clickup/common/TaskRowActionMenu.js.map +1 -0
- package/dist/clickup/common/TaskStatusPill.d.ts +12 -0
- package/dist/clickup/common/TaskStatusPill.js +24 -0
- package/dist/clickup/common/TaskStatusPill.js.map +1 -0
- package/dist/clickup/common/WorkspaceButton.d.ts +3 -0
- package/dist/clickup/common/WorkspaceButton.js +8 -0
- package/dist/clickup/common/WorkspaceButton.js.map +1 -0
- package/dist/clickup/common/WorkspaceHeader.d.ts +9 -0
- package/dist/clickup/common/WorkspaceHeader.js +7 -0
- package/dist/clickup/common/WorkspaceHeader.js.map +1 -0
- package/dist/clickup/common/WorkspaceMenus.d.ts +17 -0
- package/dist/clickup/common/WorkspaceMenus.js +15 -0
- package/dist/clickup/common/WorkspaceMenus.js.map +1 -0
- package/dist/clickup/common/WorkspaceMessage.d.ts +7 -0
- package/dist/clickup/common/WorkspaceMessage.js +6 -0
- package/dist/clickup/common/WorkspaceMessage.js.map +1 -0
- package/dist/clickup/common/WorkspaceMetricStrip.d.ts +10 -0
- package/dist/clickup/common/WorkspaceMetricStrip.js +6 -0
- package/dist/clickup/common/WorkspaceMetricStrip.js.map +1 -0
- package/dist/clickup/common/WorkspacePanel.d.ts +7 -0
- package/dist/clickup/common/WorkspacePanel.js +7 -0
- package/dist/clickup/common/WorkspacePanel.js.map +1 -0
- package/dist/clickup/common/WorkspaceSelect.d.ts +5 -0
- package/dist/clickup/common/WorkspaceSelect.js +64 -0
- package/dist/clickup/common/WorkspaceSelect.js.map +1 -0
- package/dist/clickup/common/WorkspaceTable.d.ts +16 -0
- package/dist/clickup/common/WorkspaceTable.js +7 -0
- package/dist/clickup/common/WorkspaceTable.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpCommentComposer.d.ts +9 -0
- package/dist/clickup/dialogs/ClickUpCommentComposer.js +35 -0
- package/dist/clickup/dialogs/ClickUpCommentComposer.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskActions.d.ts +8 -0
- package/dist/clickup/dialogs/ClickUpTaskActions.js +10 -0
- package/dist/clickup/dialogs/ClickUpTaskActions.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskAssignee.d.ts +7 -0
- package/dist/clickup/dialogs/ClickUpTaskAssignee.js +12 -0
- package/dist/clickup/dialogs/ClickUpTaskAssignee.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskDescription.d.ts +12 -0
- package/dist/clickup/dialogs/ClickUpTaskDescription.js +12 -0
- package/dist/clickup/dialogs/ClickUpTaskDescription.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskDialog.d.ts +27 -0
- package/dist/clickup/dialogs/ClickUpTaskDialog.js +35 -0
- package/dist/clickup/dialogs/ClickUpTaskDialog.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskDiscussion.d.ts +11 -0
- package/dist/clickup/dialogs/ClickUpTaskDiscussion.js +29 -0
- package/dist/clickup/dialogs/ClickUpTaskDiscussion.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskMain.d.ts +24 -0
- package/dist/clickup/dialogs/ClickUpTaskMain.js +26 -0
- package/dist/clickup/dialogs/ClickUpTaskMain.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskProperties.d.ts +17 -0
- package/dist/clickup/dialogs/ClickUpTaskProperties.js +26 -0
- package/dist/clickup/dialogs/ClickUpTaskProperties.js.map +1 -0
- package/dist/clickup/elements/TaskCalendarCell.d.ts +14 -0
- package/dist/clickup/elements/TaskCalendarCell.js +19 -0
- package/dist/clickup/elements/TaskCalendarCell.js.map +1 -0
- package/dist/clickup/elements/TaskCard.d.ts +16 -0
- package/dist/clickup/elements/TaskCard.js +51 -0
- package/dist/clickup/elements/TaskCard.js.map +1 -0
- package/dist/clickup/elements/TaskGroup.d.ts +24 -0
- package/dist/clickup/elements/TaskGroup.js +50 -0
- package/dist/clickup/elements/TaskGroup.js.map +1 -0
- package/dist/clickup/elements/TaskRow.d.ts +19 -0
- package/dist/clickup/elements/TaskRow.js +60 -0
- package/dist/clickup/elements/TaskRow.js.map +1 -0
- package/dist/clickup/elements/TaskTableHead.d.ts +1 -0
- package/dist/clickup/elements/TaskTableHead.js +15 -0
- package/dist/clickup/elements/TaskTableHead.js.map +1 -0
- package/dist/clickup/elements/TaskTimelineRow.d.ts +12 -0
- package/dist/clickup/elements/TaskTimelineRow.js +16 -0
- package/dist/clickup/elements/TaskTimelineRow.js.map +1 -0
- package/dist/clickup/index.d.ts +41 -0
- package/dist/clickup/index.js +48 -0
- package/dist/clickup/index.js.map +1 -0
- package/dist/clickup/task-ui.css +864 -0
- package/dist/clickup/toolbar/TaskToolbar.d.ts +20 -0
- package/dist/clickup/toolbar/TaskToolbar.js +16 -0
- package/dist/clickup/toolbar/TaskToolbar.js.map +1 -0
- package/dist/clickup/toolbar/TaskViewPicker.d.ts +8 -0
- package/dist/clickup/toolbar/TaskViewPicker.js +48 -0
- package/dist/clickup/toolbar/TaskViewPicker.js.map +1 -0
- package/dist/clickup/toolbar/TaskViewSwitcher.d.ts +21 -0
- package/dist/clickup/toolbar/TaskViewSwitcher.js +55 -0
- package/dist/clickup/toolbar/TaskViewSwitcher.js.map +1 -0
- package/dist/clickup/types.d.ts +66 -0
- package/dist/clickup/types.js +2 -0
- package/dist/clickup/types.js.map +1 -0
- package/dist/clickup/views/TaskBoardView.d.ts +21 -0
- package/dist/clickup/views/TaskBoardView.js +75 -0
- package/dist/clickup/views/TaskBoardView.js.map +1 -0
- package/dist/clickup/views/TaskCalendarView.d.ts +12 -0
- package/dist/clickup/views/TaskCalendarView.js +197 -0
- package/dist/clickup/views/TaskCalendarView.js.map +1 -0
- package/dist/clickup/views/TaskGanttView.d.ts +12 -0
- package/dist/clickup/views/TaskGanttView.js +64 -0
- package/dist/clickup/views/TaskGanttView.js.map +1 -0
- package/dist/clickup/views/TaskListView.d.ts +22 -0
- package/dist/clickup/views/TaskListView.js +17 -0
- package/dist/clickup/views/TaskListView.js.map +1 -0
- package/dist/clickup/views/TaskTableView.d.ts +21 -0
- package/dist/clickup/views/TaskTableView.js +50 -0
- package/dist/clickup/views/TaskTableView.js.map +1 -0
- package/dist/components/ActivityFeed.d.ts +48 -0
- package/dist/components/ActivityFeed.js +60 -0
- package/dist/components/ActivityFeed.js.map +1 -0
- package/dist/components/AudioPlayer.d.ts +8 -0
- package/dist/components/AudioPlayer.js +96 -0
- package/dist/components/AudioPlayer.js.map +1 -0
- package/dist/components/BulkActionBar.d.ts +10 -0
- package/dist/components/BulkActionBar.js +10 -0
- package/dist/components/BulkActionBar.js.map +1 -0
- package/dist/components/Carousel.d.ts +8 -0
- package/dist/components/Carousel.js +38 -0
- package/dist/components/Carousel.js.map +1 -0
- package/dist/components/ChatBot.d.ts +6 -0
- package/dist/components/ChatBot.js +52 -0
- package/dist/components/ChatBot.js.map +1 -0
- package/dist/components/CheckboxCustom.d.ts +9 -0
- package/dist/components/CheckboxCustom.js +42 -0
- package/dist/components/CheckboxCustom.js.map +1 -0
- package/dist/components/ClickUpTaskModal.d.ts +36 -0
- package/dist/components/ClickUpTaskModal.js +180 -0
- package/dist/components/ClickUpTaskModal.js.map +1 -0
- package/dist/components/ConditionBuilder.d.ts +28 -0
- package/dist/components/ConditionBuilder.js +63 -0
- package/dist/components/ConditionBuilder.js.map +1 -0
- package/dist/components/ConfirmDialog.d.ts +21 -0
- package/dist/components/ConfirmDialog.js +51 -0
- package/dist/components/ConfirmDialog.js.map +1 -0
- package/dist/components/DataCard.d.ts +43 -0
- package/dist/components/DataCard.js +30 -0
- package/dist/components/DataCard.js.map +1 -0
- package/dist/components/DataTable.d.ts +107 -0
- package/dist/components/DataTable.js +153 -0
- package/dist/components/DataTable.js.map +1 -0
- package/dist/components/DatePicker.d.ts +16 -0
- package/dist/components/DatePicker.js +184 -0
- package/dist/components/DatePicker.js.map +1 -0
- package/dist/components/EmptyState.d.ts +26 -0
- package/dist/components/EmptyState.js +37 -0
- package/dist/components/EmptyState.js.map +1 -0
- package/dist/components/Error.d.ts +12 -0
- package/dist/components/Error.js +41 -0
- package/dist/components/Error.js.map +1 -0
- package/dist/components/ErrorState.d.ts +10 -0
- package/dist/components/ErrorState.js +53 -0
- package/dist/components/ErrorState.js.map +1 -0
- package/dist/components/FileAttachmentChip.d.ts +10 -0
- package/dist/components/FileAttachmentChip.js +21 -0
- package/dist/components/FileAttachmentChip.js.map +1 -0
- package/dist/components/FilterConditionChip.d.ts +10 -0
- package/dist/components/FilterConditionChip.js +11 -0
- package/dist/components/FilterConditionChip.js.map +1 -0
- package/dist/components/GalleryCarouselDialog.d.ts +14 -0
- package/dist/components/GalleryCarouselDialog.js +167 -0
- package/dist/components/GalleryCarouselDialog.js.map +1 -0
- package/dist/components/HierarchicalSelectionMenu.d.ts +21 -0
- package/dist/components/HierarchicalSelectionMenu.js +168 -0
- package/dist/components/HierarchicalSelectionMenu.js.map +1 -0
- package/dist/components/InfiniteSelect.d.ts +44 -0
- package/dist/components/InfiniteSelect.js +121 -0
- package/dist/components/InfiniteSelect.js.map +1 -0
- package/dist/components/LoadingState.d.ts +28 -0
- package/dist/components/LoadingState.js +24 -0
- package/dist/components/LoadingState.js.map +1 -0
- package/dist/components/LucidIconRender.d.ts +9 -0
- package/dist/components/LucidIconRender.js +7 -0
- package/dist/components/LucidIconRender.js.map +1 -0
- package/dist/components/MasterDetailLayout.d.ts +67 -0
- package/dist/components/MasterDetailLayout.js +79 -0
- package/dist/components/MasterDetailLayout.js.map +1 -0
- package/dist/components/PinnedAttributeRow.d.ts +12 -0
- package/dist/components/PinnedAttributeRow.js +11 -0
- package/dist/components/PinnedAttributeRow.js.map +1 -0
- package/dist/components/PopUp.d.ts +11 -0
- package/dist/components/PopUp.js +83 -0
- package/dist/components/PopUp.js.map +1 -0
- package/dist/components/PrioritySignal.d.ts +10 -0
- package/dist/components/PrioritySignal.js +54 -0
- package/dist/components/PrioritySignal.js.map +1 -0
- package/dist/components/RichTextEditor.d.ts +7 -0
- package/dist/components/RichTextEditor.js +252 -0
- package/dist/components/RichTextEditor.js.map +1 -0
- package/dist/components/SLACountdown.d.ts +15 -0
- package/dist/components/SLACountdown.js +26 -0
- package/dist/components/SLACountdown.js.map +1 -0
- package/dist/components/StatusBadge.d.ts +14 -0
- package/dist/components/StatusBadge.js +55 -0
- package/dist/components/StatusBadge.js.map +1 -0
- package/dist/components/StatusCards.d.ts +12 -0
- package/dist/components/StatusCards.js +12 -0
- package/dist/components/StatusCards.js.map +1 -0
- package/dist/components/StatusProgressBar.d.ts +18 -0
- package/dist/components/StatusProgressBar.js +50 -0
- package/dist/components/StatusProgressBar.js.map +1 -0
- package/dist/components/TableActions.d.ts +26 -0
- package/dist/components/TableActions.js +49 -0
- package/dist/components/TableActions.js.map +1 -0
- package/dist/components/TaskDetailsModal.d.ts +3 -0
- package/dist/components/TaskDetailsModal.js +8 -0
- package/dist/components/TaskDetailsModal.js.map +1 -0
- package/dist/components/ThemedText.d.ts +24 -0
- package/dist/components/ThemedText.js +103 -0
- package/dist/components/ThemedText.js.map +1 -0
- package/dist/components/TicketWorkspaceLayout.d.ts +11 -0
- package/dist/components/TicketWorkspaceLayout.js +7 -0
- package/dist/components/TicketWorkspaceLayout.js.map +1 -0
- package/dist/components/TimePicker.d.ts +15 -0
- package/dist/components/TimePicker.js +96 -0
- package/dist/components/TimePicker.js.map +1 -0
- package/dist/components/Tooltip.d.ts +19 -0
- package/dist/components/Tooltip.js +75 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/TreeView.d.ts +33 -0
- package/dist/components/TreeView.js +55 -0
- package/dist/components/TreeView.js.map +1 -0
- package/dist/components/accordion.d.ts +6 -0
- package/dist/components/accordion.js +18 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/avatar.d.ts +11 -0
- package/dist/components/avatar.js +23 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +12 -0
- package/dist/components/badge.js +44 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/button.d.ts +15 -0
- package/dist/components/button.js +47 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/card.d.ts +11 -0
- package/dist/components/card.js +25 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/context menu core/context-menu.d.ts +28 -0
- package/dist/components/context menu core/context-menu.js +91 -0
- package/dist/components/context menu core/context-menu.js.map +1 -0
- package/dist/components/context menu core/contextMenuAdvanced.d.ts +46 -0
- package/dist/components/context menu core/contextMenuAdvanced.js +34 -0
- package/dist/components/context menu core/contextMenuAdvanced.js.map +1 -0
- package/dist/components/dialog.d.ts +18 -0
- package/dist/components/dialog.js +42 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +29 -0
- package/dist/components/dropdown-menu.js +51 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/filter/AdvancedFilters.d.ts +14 -0
- package/dist/components/filter/AdvancedFilters.js +220 -0
- package/dist/components/filter/AdvancedFilters.js.map +1 -0
- package/dist/components/filter/Filter.d.ts +48 -0
- package/dist/components/filter/Filter.js +153 -0
- package/dist/components/filter/Filter.js.map +1 -0
- package/dist/components/filter/FilterButton.d.ts +10 -0
- package/dist/components/filter/FilterButton.js +9 -0
- package/dist/components/filter/FilterButton.js.map +1 -0
- package/dist/components/filter/NormalFilters.d.ts +14 -0
- package/dist/components/filter/NormalFilters.js +40 -0
- package/dist/components/filter/NormalFilters.js.map +1 -0
- package/dist/components/filter/index.d.ts +5 -0
- package/dist/components/filter/index.js +6 -0
- package/dist/components/filter/index.js.map +1 -0
- package/dist/components/filter/types.d.ts +32 -0
- package/dist/components/filter/types.js +2 -0
- package/dist/components/filter/types.js.map +1 -0
- package/dist/components/form-error.d.ts +42 -0
- package/dist/components/form-error.js +103 -0
- package/dist/components/form-error.js.map +1 -0
- package/dist/components/icons.d.ts +19 -0
- package/dist/components/icons.js +21 -0
- package/dist/components/icons.js.map +1 -0
- package/dist/components/image.d.ts +12 -0
- package/dist/components/image.js +18 -0
- package/dist/components/image.js.map +1 -0
- package/dist/components/index.d.ts +59 -0
- package/dist/components/index.js +60 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input.d.ts +22 -0
- package/dist/components/input.js +102 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.d.ts +7 -0
- package/dist/components/label.js +8 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/layout/FeatureLayout.d.ts +131 -0
- package/dist/components/layout/FeatureLayout.js +113 -0
- package/dist/components/layout/FeatureLayout.js.map +1 -0
- package/dist/components/layout/FeatureLayoutExportButton.d.ts +10 -0
- package/dist/components/layout/FeatureLayoutExportButton.js +21 -0
- package/dist/components/layout/FeatureLayoutExportButton.js.map +1 -0
- package/dist/components/layout/FeatureLayoutTabs.d.ts +36 -0
- package/dist/components/layout/FeatureLayoutTabs.js +192 -0
- package/dist/components/layout/FeatureLayoutTabs.js.map +1 -0
- package/dist/components/layout/kanban/FeatureLayoutKanban.d.ts +6 -0
- package/dist/components/layout/kanban/FeatureLayoutKanban.js +195 -0
- package/dist/components/layout/kanban/FeatureLayoutKanban.js.map +1 -0
- package/dist/components/layout/kanban/KanbanCard.d.ts +12 -0
- package/dist/components/layout/kanban/KanbanCard.js +43 -0
- package/dist/components/layout/kanban/KanbanCard.js.map +1 -0
- package/dist/components/layout/kanban/KanbanColumn.d.ts +23 -0
- package/dist/components/layout/kanban/KanbanColumn.js +30 -0
- package/dist/components/layout/kanban/KanbanColumn.js.map +1 -0
- package/dist/components/layout/kanban/KanbanToolbar.d.ts +11 -0
- package/dist/components/layout/kanban/KanbanToolbar.js +10 -0
- package/dist/components/layout/kanban/KanbanToolbar.js.map +1 -0
- package/dist/components/layout/kanban/index.d.ts +6 -0
- package/dist/components/layout/kanban/index.js +7 -0
- package/dist/components/layout/kanban/index.js.map +1 -0
- package/dist/components/layout/kanban/types.d.ts +67 -0
- package/dist/components/layout/kanban/types.js +2 -0
- package/dist/components/layout/kanban/types.js.map +1 -0
- package/dist/components/popover.d.ts +11 -0
- package/dist/components/popover.js +20 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/react-flow/FlowGraphHeader.d.ts +2 -0
- package/dist/components/react-flow/FlowGraphHeader.js +10 -0
- package/dist/components/react-flow/FlowGraphHeader.js.map +1 -0
- package/dist/components/react-flow/GlowEdge.d.ts +3 -0
- package/dist/components/react-flow/GlowEdge.js +100 -0
- package/dist/components/react-flow/GlowEdge.js.map +1 -0
- package/dist/components/react-flow/ReactFlowCanvas.d.ts +7 -0
- package/dist/components/react-flow/ReactFlowCanvas.js +44 -0
- package/dist/components/react-flow/ReactFlowCanvas.js.map +1 -0
- package/dist/components/react-flow/RelationshipFlow.d.ts +2 -0
- package/dist/components/react-flow/RelationshipFlow.js +9 -0
- package/dist/components/react-flow/RelationshipFlow.js.map +1 -0
- package/dist/components/react-flow/TreeFlowLayout.d.ts +29 -0
- package/dist/components/react-flow/TreeFlowLayout.js +14 -0
- package/dist/components/react-flow/TreeFlowLayout.js.map +1 -0
- package/dist/components/react-flow/edges.d.ts +8 -0
- package/dist/components/react-flow/edges.js +21 -0
- package/dist/components/react-flow/edges.js.map +1 -0
- package/dist/components/react-flow/index.d.ts +9 -0
- package/dist/components/react-flow/index.js +10 -0
- package/dist/components/react-flow/index.js.map +1 -0
- package/dist/components/react-flow/layout.d.ts +5 -0
- package/dist/components/react-flow/layout.js +11 -0
- package/dist/components/react-flow/layout.js.map +1 -0
- package/dist/components/react-flow/types.d.ts +82 -0
- package/dist/components/react-flow/types.js +6 -0
- package/dist/components/react-flow/types.js.map +1 -0
- package/dist/components/react-flow/useFlowGraph.d.ts +3 -0
- package/dist/components/react-flow/useFlowGraph.js +22 -0
- package/dist/components/react-flow/useFlowGraph.js.map +1 -0
- package/dist/components/react-flow/useFlowGraphSync.d.ts +4 -0
- package/dist/components/react-flow/useFlowGraphSync.js +43 -0
- package/dist/components/react-flow/useFlowGraphSync.js.map +1 -0
- package/dist/components/select.d.ts +23 -0
- package/dist/components/select.js +109 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/sonner.d.ts +4 -0
- package/dist/components/sonner.js +29 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/stepper.d.ts +12 -0
- package/dist/components/stepper.js +22 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch.d.ts +5 -0
- package/dist/components/switch.js +16 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +52 -0
- package/dist/components/table.js +112 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +10 -0
- package/dist/components/tabs.js +29 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +6 -0
- package/dist/components/textarea.js +17 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/condition-builder/index.d.ts +2 -0
- package/dist/condition-builder/index.js +3 -0
- package/dist/condition-builder/index.js.map +1 -0
- package/dist/context-menu/index.d.ts +2 -0
- package/dist/context-menu/index.js +3 -0
- package/dist/context-menu/index.js.map +1 -0
- package/dist/dropdown/SearchDropdown.d.ts +19 -0
- package/dist/dropdown/SearchDropdown.js +27 -0
- package/dist/dropdown/SearchDropdown.js.map +1 -0
- package/dist/dropdown/index.d.ts +2 -0
- package/dist/dropdown/index.js +3 -0
- package/dist/dropdown/index.js.map +1 -0
- package/dist/editor.d.ts +1 -0
- package/dist/editor.js +2 -0
- package/dist/editor.js.map +1 -0
- package/dist/feedback/index.d.ts +6 -0
- package/dist/feedback/index.js +7 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/flow.d.ts +1 -0
- package/dist/flow.js +2 -0
- package/dist/flow.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useContextMenuActions.d.ts +16 -0
- package/dist/hooks/useContextMenuActions.js +35 -0
- package/dist/hooks/useContextMenuActions.js.map +1 -0
- package/dist/hooks/useFeatureLayout.d.ts +14 -0
- package/dist/hooks/useFeatureLayout.js +21 -0
- package/dist/hooks/useFeatureLayout.js.map +1 -0
- package/dist/hooks/useTableActions.d.ts +46 -0
- package/dist/hooks/useTableActions.js +71 -0
- package/dist/hooks/useTableActions.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations.d.ts +42 -0
- package/dist/integrations.js +9 -0
- package/dist/integrations.js.map +1 -0
- package/dist/itsm/index.d.ts +7 -0
- package/dist/itsm/index.js +8 -0
- package/dist/itsm/index.js.map +1 -0
- package/dist/locales/ar.json +149 -0
- package/dist/locales/en.json +149 -0
- package/dist/primitives/index.d.ts +11 -0
- package/dist/primitives/index.js +12 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/progress.d.ts +7 -0
- package/dist/progress.js +20 -0
- package/dist/progress.js.map +1 -0
- package/dist/select/index.d.ts +3 -0
- package/dist/select/index.js +4 -0
- package/dist/select/index.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/support/api.d.ts +8 -0
- package/dist/support/api.js +2 -0
- package/dist/support/api.js.map +1 -0
- package/dist/support/types/file.types.d.ts +12 -0
- package/dist/support/types/file.types.js +2 -0
- package/dist/support/types/file.types.js.map +1 -0
- package/dist/support/types/gallery.types.d.ts +22 -0
- package/dist/support/types/gallery.types.js +2 -0
- package/dist/support/types/gallery.types.js.map +1 -0
- package/dist/support/types/governorates.types.d.ts +12 -0
- package/dist/support/types/governorates.types.js +2 -0
- package/dist/support/types/governorates.types.js.map +1 -0
- package/dist/support/types/grade.types.d.ts +7 -0
- package/dist/support/types/grade.types.js +2 -0
- package/dist/support/types/grade.types.js.map +1 -0
- package/dist/support/types/index.d.ts +13 -0
- package/dist/support/types/index.js +14 -0
- package/dist/support/types/index.js.map +1 -0
- package/dist/support/types/metadata.types.d.ts +61 -0
- package/dist/support/types/metadata.types.js +3 -0
- package/dist/support/types/metadata.types.js.map +1 -0
- package/dist/support/types/table.types.d.ts +33 -0
- package/dist/support/types/table.types.js +2 -0
- package/dist/support/types/table.types.js.map +1 -0
- package/dist/support/types/viewCard.types.d.ts +78 -0
- package/dist/support/types/viewCard.types.js +3 -0
- package/dist/support/types/viewCard.types.js.map +1 -0
- package/dist/support/utils/fileUtils.d.ts +1 -0
- package/dist/support/utils/fileUtils.js +2 -0
- package/dist/support/utils/fileUtils.js.map +1 -0
- package/dist/support/utils.d.ts +5 -0
- package/dist/support/utils.js +4 -0
- package/dist/support/utils.js.map +1 -0
- package/dist/table/index.d.ts +6 -0
- package/dist/table/index.js +7 -0
- package/dist/table/index.js.map +1 -0
- package/dist/tasks.d.ts +3 -0
- package/dist/tasks.js +4 -0
- package/dist/tasks.js.map +1 -0
- package/dist/tours/TourContext.d.ts +33 -0
- package/dist/tours/TourContext.js +98 -0
- package/dist/tours/TourContext.js.map +1 -0
- package/dist/tours/TourOverlay.d.ts +7 -0
- package/dist/tours/TourOverlay.js +129 -0
- package/dist/tours/TourOverlay.js.map +1 -0
- package/dist/tours.d.ts +2 -0
- package/dist/tours.js +3 -0
- package/dist/tours.js.map +1 -0
- package/dist/types.d.ts +91 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/typography/index.d.ts +4 -0
- package/dist/typography/index.js +5 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/typography/typography.adapter.d.ts +18 -0
- package/dist/typography/typography.adapter.js +113 -0
- package/dist/typography/typography.adapter.js.map +1 -0
- package/dist/typography/typography.constants.d.ts +56 -0
- package/dist/typography/typography.constants.js +649 -0
- package/dist/typography/typography.constants.js.map +1 -0
- package/dist/typography/typography.types.d.ts +62 -0
- package/dist/typography/typography.types.js +6 -0
- package/dist/typography/typography.types.js.map +1 -0
- package/dist/typography/useTypography.d.ts +25 -0
- package/dist/typography/useTypography.js +158 -0
- package/dist/typography/useTypography.js.map +1 -0
- package/dist/ui/accordion.d.ts +7 -0
- package/dist/ui/accordion.js +18 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/avatar.d.ts +11 -0
- package/dist/ui/avatar.js +23 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.js +33 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/button.js +41 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/card.d.ts +9 -0
- package/dist/ui/card.js +25 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/dialog.d.ts +17 -0
- package/dist/ui/dialog.js +37 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +25 -0
- package/dist/ui/dropdown-menu.js +51 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/index.d.ts +15 -0
- package/dist/ui/index.js +16 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +7 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/popover.d.ts +10 -0
- package/dist/ui/popover.js +26 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/select.js +38 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/switch.d.ts +6 -0
- package/dist/ui/switch.js +8 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.d.ts +10 -0
- package/dist/ui/table.js +28 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.d.ts +11 -0
- package/dist/ui/tabs.js +29 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/textarea.js +7 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/tooltip.js +17 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/workspace/index.d.ts +2 -0
- package/dist/workspace/index.js +3 -0
- package/dist/workspace/index.js.map +1 -0
- package/package.json +61 -4
- package/src/activity/index.ts +2 -0
- package/src/clickup/common/InlineNameTab.tsx +122 -0
- package/src/clickup/common/TaskAssigneeAvatar.tsx +127 -0
- package/src/clickup/common/TaskBreadcrumb.tsx +91 -0
- package/src/clickup/common/TaskCheck.tsx +51 -0
- package/src/clickup/common/TaskContextMenu.tsx +42 -0
- package/src/clickup/common/TaskIcon.tsx +145 -0
- package/src/clickup/common/TaskPriorityBadge.tsx +52 -0
- package/src/clickup/common/TaskRowActionMenu.tsx +43 -0
- package/src/clickup/common/TaskStatusPill.tsx +73 -0
- package/src/clickup/common/WorkspaceButton.tsx +22 -0
- package/src/clickup/common/WorkspaceHeader.tsx +41 -0
- package/src/clickup/common/WorkspaceMenus.tsx +92 -0
- package/src/clickup/common/WorkspaceMessage.tsx +39 -0
- package/src/clickup/common/WorkspaceMetricStrip.tsx +49 -0
- package/src/clickup/common/WorkspacePanel.tsx +27 -0
- package/src/clickup/common/WorkspaceSelect.tsx +173 -0
- package/src/clickup/common/WorkspaceTable.tsx +78 -0
- package/src/clickup/dialogs/ClickUpCommentComposer.tsx +93 -0
- package/src/clickup/dialogs/ClickUpTaskActions.tsx +73 -0
- package/src/clickup/dialogs/ClickUpTaskAssignee.tsx +86 -0
- package/src/clickup/dialogs/ClickUpTaskDescription.tsx +67 -0
- package/src/clickup/dialogs/ClickUpTaskDialog.tsx +187 -0
- package/src/clickup/dialogs/ClickUpTaskDiscussion.tsx +136 -0
- package/src/clickup/dialogs/ClickUpTaskMain.tsx +156 -0
- package/src/clickup/dialogs/ClickUpTaskProperties.tsx +214 -0
- package/src/clickup/elements/TaskCalendarCell.tsx +91 -0
- package/src/clickup/elements/TaskCard.tsx +154 -0
- package/src/clickup/elements/TaskGroup.tsx +208 -0
- package/src/clickup/elements/TaskRow.tsx +172 -0
- package/src/clickup/elements/TaskTableHead.tsx +29 -0
- package/src/clickup/elements/TaskTimelineRow.tsx +77 -0
- package/src/clickup/index.ts +63 -0
- package/src/clickup/task-ui.css +864 -0
- package/src/clickup/toolbar/TaskToolbar.tsx +130 -0
- package/src/clickup/toolbar/TaskViewPicker.tsx +148 -0
- package/src/clickup/toolbar/TaskViewSwitcher.tsx +129 -0
- package/src/clickup/types.ts +79 -0
- package/src/clickup/views/TaskBoardView.tsx +259 -0
- package/src/clickup/views/TaskCalendarView.tsx +410 -0
- package/src/clickup/views/TaskGanttView.tsx +178 -0
- package/src/clickup/views/TaskListView.tsx +95 -0
- package/src/clickup/views/TaskTableView.tsx +192 -0
- package/src/components/ActivityFeed.tsx +440 -0
- package/src/components/AudioPlayer.tsx +179 -0
- package/src/components/BulkActionBar.tsx +72 -0
- package/src/components/Carousel.tsx +107 -0
- package/src/components/ChatBot.tsx +205 -0
- package/src/components/CheckboxCustom.tsx +106 -0
- package/src/components/ClickUpTaskModal.tsx +661 -0
- package/src/components/ConditionBuilder.tsx +322 -0
- package/src/components/ConfirmDialog.tsx +157 -0
- package/src/components/DataCard.tsx +203 -0
- package/src/components/DataTable.tsx +609 -0
- package/src/components/DatePicker.tsx +397 -0
- package/src/components/EmptyState.tsx +105 -0
- package/src/components/Error.tsx +248 -0
- package/src/components/ErrorState.tsx +199 -0
- package/src/components/FileAttachmentChip.tsx +84 -0
- package/src/components/FilterConditionChip.tsx +56 -0
- package/src/components/GalleryCarouselDialog.tsx +439 -0
- package/src/components/HierarchicalSelectionMenu.tsx +432 -0
- package/src/components/InfiniteSelect.tsx +397 -0
- package/src/components/LoadingState.tsx +105 -0
- package/src/components/LucidIconRender.tsx +25 -0
- package/src/components/MasterDetailLayout.tsx +442 -0
- package/src/components/PinnedAttributeRow.tsx +70 -0
- package/src/components/PopUp.tsx +309 -0
- package/src/components/PrioritySignal.tsx +131 -0
- package/src/components/RichTextEditor.tsx +433 -0
- package/src/components/SLACountdown.tsx +133 -0
- package/src/components/StatusBadge.tsx +119 -0
- package/src/components/StatusCards.tsx +78 -0
- package/src/components/StatusProgressBar.tsx +158 -0
- package/src/components/TableActions.tsx +182 -0
- package/src/components/TaskDetailsModal.tsx +7 -0
- package/src/components/ThemedText.tsx +181 -0
- package/src/components/TicketWorkspaceLayout.tsx +63 -0
- package/src/components/TimePicker.tsx +283 -0
- package/src/components/Tooltip.tsx +128 -0
- package/src/components/TreeView.tsx +297 -0
- package/src/components/accordion.tsx +78 -0
- package/src/components/avatar.tsx +107 -0
- package/src/components/badge.tsx +72 -0
- package/src/components/button.tsx +93 -0
- package/src/components/card.tsx +103 -0
- package/src/components/context menu core/context-menu.tsx +304 -0
- package/src/components/context menu core/contextMenuAdvanced.tsx +130 -0
- package/src/components/dialog.tsx +186 -0
- package/src/components/dropdown-menu.tsx +274 -0
- package/src/components/filter/AdvancedFilters.tsx +834 -0
- package/src/components/filter/Filter.tsx +233 -0
- package/src/components/filter/FilterButton.tsx +38 -0
- package/src/components/filter/NormalFilters.tsx +109 -0
- package/src/components/filter/index.ts +5 -0
- package/src/components/filter/types.ts +36 -0
- package/src/components/form-error.tsx +172 -0
- package/src/components/icons.tsx +468 -0
- package/src/components/image.tsx +85 -0
- package/src/components/index.ts +59 -0
- package/src/components/input.tsx +260 -0
- package/src/components/label.tsx +27 -0
- package/src/components/layout/FeatureLayout.tsx +739 -0
- package/src/components/layout/FeatureLayoutExportButton.tsx +93 -0
- package/src/components/layout/FeatureLayoutTabs.tsx +413 -0
- package/src/components/layout/kanban/FeatureLayoutKanban.tsx +386 -0
- package/src/components/layout/kanban/KanbanCard.tsx +132 -0
- package/src/components/layout/kanban/KanbanColumn.tsx +241 -0
- package/src/components/layout/kanban/KanbanToolbar.tsx +77 -0
- package/src/components/layout/kanban/index.ts +6 -0
- package/src/components/layout/kanban/types.ts +96 -0
- package/src/components/popover.tsx +66 -0
- package/src/components/react-flow/FlowGraphHeader.tsx +68 -0
- package/src/components/react-flow/GlowEdge.tsx +238 -0
- package/src/components/react-flow/ReactFlowCanvas.tsx +112 -0
- package/src/components/react-flow/RelationshipFlow.tsx +50 -0
- package/src/components/react-flow/TreeFlowLayout.tsx +187 -0
- package/src/components/react-flow/edges.ts +39 -0
- package/src/components/react-flow/index.ts +9 -0
- package/src/components/react-flow/layout.ts +16 -0
- package/src/components/react-flow/types.ts +103 -0
- package/src/components/react-flow/useFlowGraph.ts +36 -0
- package/src/components/react-flow/useFlowGraphSync.ts +67 -0
- package/src/components/select.tsx +386 -0
- package/src/components/sonner.tsx +58 -0
- package/src/components/stepper.tsx +97 -0
- package/src/components/switch.tsx +46 -0
- package/src/components/table.tsx +577 -0
- package/src/components/tabs.tsx +81 -0
- package/src/components/textarea.tsx +67 -0
- package/src/condition-builder/index.ts +2 -0
- package/src/context-menu/index.ts +2 -0
- package/src/dropdown/SearchDropdown.tsx +145 -0
- package/src/dropdown/index.ts +2 -0
- package/src/editor.ts +1 -0
- package/src/feedback/index.ts +6 -0
- package/src/flow.ts +1 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useContextMenuActions.ts +69 -0
- package/src/hooks/useFeatureLayout.ts +44 -0
- package/src/hooks/useTableActions.ts +146 -0
- package/src/index.ts +27 -0
- package/src/integrations.tsx +11 -0
- package/src/itsm/index.ts +7 -0
- package/src/locales/ar.json +149 -0
- package/src/locales/en.json +149 -0
- package/src/primitives/index.ts +11 -0
- package/src/progress.tsx +87 -0
- package/src/select/index.ts +3 -0
- package/src/support/api.ts +1 -0
- package/src/support/types/file.types.ts +13 -0
- package/src/support/types/gallery.types.ts +22 -0
- package/src/support/types/governorates.types.ts +13 -0
- package/src/support/types/grade.types.ts +7 -0
- package/src/support/types/index.ts +14 -0
- package/src/support/types/metadata.types.ts +93 -0
- package/src/support/types/table.types.ts +45 -0
- package/src/support/types/viewCard.types.ts +100 -0
- package/src/support/utils/fileUtils.ts +1 -0
- package/src/support/utils.ts +3 -0
- package/src/table/index.ts +6 -0
- package/src/tasks.ts +3 -0
- package/src/tours/TourContext.tsx +142 -0
- package/src/tours/TourOverlay.tsx +281 -0
- package/src/tours.ts +2 -0
- package/src/types.ts +138 -0
- package/src/typography/index.ts +4 -0
- package/src/typography/typography.adapter.ts +131 -0
- package/src/typography/typography.constants.ts +700 -0
- package/src/typography/typography.types.ts +156 -0
- package/src/typography/useTypography.ts +211 -0
- package/src/ui/accordion.tsx +66 -0
- package/src/ui/avatar.tsx +106 -0
- package/src/ui/badge.tsx +58 -0
- package/src/ui/button.tsx +69 -0
- package/src/ui/card.tsx +97 -0
- package/src/ui/dialog.tsx +165 -0
- package/src/ui/dropdown-menu.tsx +262 -0
- package/src/ui/index.ts +15 -0
- package/src/ui/input.tsx +22 -0
- package/src/ui/popover.tsx +86 -0
- package/src/ui/select.tsx +193 -0
- package/src/ui/switch.tsx +32 -0
- package/src/ui/table.tsx +119 -0
- package/src/ui/tabs.tsx +89 -0
- package/src/ui/textarea.tsx +21 -0
- package/src/ui/tooltip.tsx +54 -0
- package/src/workspace/index.ts +2 -0
- package/styles.css +532 -0
- package/README.md +0 -3
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
import { cn } from "../../support/utils";
|
|
2
|
+
import {
|
|
3
|
+
ChevronDown,
|
|
4
|
+
KanbanSquare,
|
|
5
|
+
LayoutGrid,
|
|
6
|
+
List,
|
|
7
|
+
Network,
|
|
8
|
+
Search,
|
|
9
|
+
X,
|
|
10
|
+
} from "lucide-react";
|
|
11
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import {
|
|
14
|
+
DropdownMenu,
|
|
15
|
+
DropdownMenuContent,
|
|
16
|
+
DropdownMenuItem,
|
|
17
|
+
DropdownMenuTrigger,
|
|
18
|
+
} from "../dropdown-menu";
|
|
19
|
+
import { FeatureLayoutExportButton } from "./FeatureLayoutExportButton";
|
|
20
|
+
import {
|
|
21
|
+
FeatureLayoutTabs,
|
|
22
|
+
type FeatureLayoutTabsProps,
|
|
23
|
+
type TabItem,
|
|
24
|
+
useWarnOnRefresh,
|
|
25
|
+
} from "./FeatureLayoutTabs";
|
|
26
|
+
import { InfiniteSelect } from "../InfiniteSelect";
|
|
27
|
+
import {
|
|
28
|
+
FeatureLayoutKanban,
|
|
29
|
+
type FeatureLayoutKanbanProps,
|
|
30
|
+
type KanbanColumnDef,
|
|
31
|
+
type KanbanItemMoveEvent,
|
|
32
|
+
} from "./kanban";
|
|
33
|
+
|
|
34
|
+
export type {
|
|
35
|
+
FeatureLayoutTabsProps,
|
|
36
|
+
TabItem,
|
|
37
|
+
FeatureLayoutKanbanProps,
|
|
38
|
+
KanbanColumnDef,
|
|
39
|
+
KanbanItemMoveEvent,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export interface FeatureLayoutProps
|
|
43
|
+
extends React.HTMLAttributes<HTMLDivElement> {
|
|
44
|
+
/**
|
|
45
|
+
* When true (or when hasOpenTabs is true), alerts the user when attempting to refresh
|
|
46
|
+
* or leave the page that open tabs and unsaved data will be lost.
|
|
47
|
+
*/
|
|
48
|
+
warnOnRefresh?: boolean;
|
|
49
|
+
hasOpenTabs?: boolean;
|
|
50
|
+
warnOnRefreshMessage?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function FeatureLayout({
|
|
54
|
+
className,
|
|
55
|
+
children,
|
|
56
|
+
warnOnRefresh = false,
|
|
57
|
+
hasOpenTabs = false,
|
|
58
|
+
warnOnRefreshMessage,
|
|
59
|
+
...props
|
|
60
|
+
}: FeatureLayoutProps) {
|
|
61
|
+
useWarnOnRefresh(warnOnRefresh || hasOpenTabs, warnOnRefreshMessage);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div
|
|
65
|
+
className={cn(
|
|
66
|
+
"flex flex-col h-full w-full overflow-hidden bg-dashboard-background animate-in fade-in slide-in-from-bottom-4 duration-700",
|
|
67
|
+
className,
|
|
68
|
+
)}
|
|
69
|
+
{...props}
|
|
70
|
+
>
|
|
71
|
+
{children}
|
|
72
|
+
</div>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// ── Header & Toolbar ─────────────────────────────────────────────────────────
|
|
77
|
+
|
|
78
|
+
export interface FeatureLayoutHeaderProps
|
|
79
|
+
extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
80
|
+
title?: React.ReactNode;
|
|
81
|
+
description?: React.ReactNode;
|
|
82
|
+
subheading?: React.ReactNode;
|
|
83
|
+
icon?: React.ReactNode | React.ComponentType<{ className?: string }>;
|
|
84
|
+
actions?: React.ReactNode;
|
|
85
|
+
badge?: React.ReactNode;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
FeatureLayout.Header = function FeatureLayoutHeader({
|
|
89
|
+
className,
|
|
90
|
+
title,
|
|
91
|
+
description,
|
|
92
|
+
subheading,
|
|
93
|
+
icon: IconComponent,
|
|
94
|
+
actions,
|
|
95
|
+
badge,
|
|
96
|
+
children,
|
|
97
|
+
...props
|
|
98
|
+
}: FeatureLayoutHeaderProps) {
|
|
99
|
+
const desc = description || subheading;
|
|
100
|
+
const hasScopeTitle = Boolean(title || desc);
|
|
101
|
+
|
|
102
|
+
return (
|
|
103
|
+
<div
|
|
104
|
+
className={cn(
|
|
105
|
+
"z-10 flex shrink-0 flex-col border-b border-dashboard-border/100 bg-dashboard-card w-full",
|
|
106
|
+
className,
|
|
107
|
+
)}
|
|
108
|
+
{...props}
|
|
109
|
+
>
|
|
110
|
+
{hasScopeTitle && (
|
|
111
|
+
<div className="px-4 md:px-6 pt-4 pb-3 flex flex-col gap-1.5 border-b border-dashboard-border/60">
|
|
112
|
+
<div className="flex items-center justify-between gap-3 min-w-0">
|
|
113
|
+
<div className="flex items-center gap-2.5 min-w-0">
|
|
114
|
+
{IconComponent && (
|
|
115
|
+
<div className="w-7 h-7 rounded-lg bg-dashboard-primary/15 text-dashboard-primary flex items-center justify-center shrink-0 border border-dashboard-primary/25 shadow-2xs">
|
|
116
|
+
{React.isValidElement(IconComponent) ? (
|
|
117
|
+
IconComponent
|
|
118
|
+
) : (
|
|
119
|
+
React.createElement(IconComponent as any, { className: "w-4 h-4" })
|
|
120
|
+
)}
|
|
121
|
+
</div>
|
|
122
|
+
)}
|
|
123
|
+
{title && (
|
|
124
|
+
<h1 className="text-xl md:text-[23px] font-bold text-dashboard-foreground tracking-[-0.6px] truncate leading-tight">
|
|
125
|
+
{title}
|
|
126
|
+
</h1>
|
|
127
|
+
)}
|
|
128
|
+
{badge}
|
|
129
|
+
</div>
|
|
130
|
+
{actions && (
|
|
131
|
+
<div className="flex items-center gap-2 shrink-0">
|
|
132
|
+
{actions}
|
|
133
|
+
</div>
|
|
134
|
+
)}
|
|
135
|
+
</div>
|
|
136
|
+
{desc && (
|
|
137
|
+
<p className="text-xs text-dashboard-muted-foreground mt-0.5 leading-relaxed max-w-3xl">
|
|
138
|
+
{desc}
|
|
139
|
+
</p>
|
|
140
|
+
)}
|
|
141
|
+
</div>
|
|
142
|
+
)}
|
|
143
|
+
|
|
144
|
+
{children && (
|
|
145
|
+
<div className="flex flex-row items-center justify-between gap-3 px-4 md:px-6 w-full min-h-[44px]">
|
|
146
|
+
{children}
|
|
147
|
+
</div>
|
|
148
|
+
)}
|
|
149
|
+
</div>
|
|
150
|
+
);
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export interface FeatureLayoutScopeHeaderProps
|
|
154
|
+
extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
155
|
+
title: React.ReactNode;
|
|
156
|
+
description?: React.ReactNode;
|
|
157
|
+
subheading?: React.ReactNode;
|
|
158
|
+
icon?: React.ReactNode | React.ComponentType<{ className?: string }>;
|
|
159
|
+
actions?: React.ReactNode;
|
|
160
|
+
badge?: React.ReactNode;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
FeatureLayout.ScopeHeader = function FeatureLayoutScopeHeader({
|
|
164
|
+
title,
|
|
165
|
+
description,
|
|
166
|
+
subheading,
|
|
167
|
+
icon: IconComponent,
|
|
168
|
+
actions,
|
|
169
|
+
badge,
|
|
170
|
+
className,
|
|
171
|
+
...props
|
|
172
|
+
}: FeatureLayoutScopeHeaderProps) {
|
|
173
|
+
const desc = description || subheading;
|
|
174
|
+
return (
|
|
175
|
+
<div
|
|
176
|
+
className={cn(
|
|
177
|
+
"px-4 md:px-6 pt-5 pb-3 flex flex-col gap-1.5 border-b border-dashboard-border/60 bg-dashboard-card shrink-0",
|
|
178
|
+
className,
|
|
179
|
+
)}
|
|
180
|
+
{...props}
|
|
181
|
+
>
|
|
182
|
+
<div className="flex items-center justify-between gap-3 min-w-0">
|
|
183
|
+
<div className="flex items-center gap-2.5 min-w-0">
|
|
184
|
+
{IconComponent && (
|
|
185
|
+
<div className="w-7 h-7 rounded-lg bg-dashboard-primary/15 text-dashboard-primary flex items-center justify-center shrink-0 border border-dashboard-primary/25 shadow-2xs">
|
|
186
|
+
{React.isValidElement(IconComponent) ? (
|
|
187
|
+
IconComponent
|
|
188
|
+
) : (
|
|
189
|
+
React.createElement(IconComponent as any, { className: "w-4 h-4" })
|
|
190
|
+
)}
|
|
191
|
+
</div>
|
|
192
|
+
)}
|
|
193
|
+
{title && (
|
|
194
|
+
<h1 className="text-xl md:text-[23px] font-bold text-dashboard-foreground tracking-[-0.6px] truncate leading-tight">
|
|
195
|
+
{title}
|
|
196
|
+
</h1>
|
|
197
|
+
)}
|
|
198
|
+
{badge}
|
|
199
|
+
</div>
|
|
200
|
+
{actions && (
|
|
201
|
+
<div className="flex items-center gap-2 shrink-0">
|
|
202
|
+
{actions}
|
|
203
|
+
</div>
|
|
204
|
+
)}
|
|
205
|
+
</div>
|
|
206
|
+
{desc && (
|
|
207
|
+
<p className="text-xs text-dashboard-muted-foreground mt-0.5 leading-relaxed max-w-3xl">
|
|
208
|
+
{desc}
|
|
209
|
+
</p>
|
|
210
|
+
)}
|
|
211
|
+
</div>
|
|
212
|
+
);
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
FeatureLayout.Title = FeatureLayout.ScopeHeader;
|
|
216
|
+
|
|
217
|
+
FeatureLayout.Tabs = FeatureLayoutTabs;
|
|
218
|
+
|
|
219
|
+
type FeatureLayoutToolbarProps = React.HTMLAttributes<HTMLDivElement>;
|
|
220
|
+
|
|
221
|
+
FeatureLayout.Toolbar = function FeatureLayoutToolbar({
|
|
222
|
+
className,
|
|
223
|
+
children,
|
|
224
|
+
...props
|
|
225
|
+
}: FeatureLayoutToolbarProps) {
|
|
226
|
+
return (
|
|
227
|
+
<div
|
|
228
|
+
className={cn(
|
|
229
|
+
"flex items-center justify-end gap-2.5 shrink-0",
|
|
230
|
+
className,
|
|
231
|
+
)}
|
|
232
|
+
{...props}
|
|
233
|
+
>
|
|
234
|
+
{children}
|
|
235
|
+
</div>
|
|
236
|
+
);
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
interface ViewToggleProps<T extends string = any> {
|
|
240
|
+
id?: string;
|
|
241
|
+
view: T;
|
|
242
|
+
onChange: (view: T) => void;
|
|
243
|
+
options?: T[];
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
FeatureLayout.ViewToggle = function FeatureLayoutViewToggle<
|
|
247
|
+
T extends string = any,
|
|
248
|
+
>({
|
|
249
|
+
id,
|
|
250
|
+
view,
|
|
251
|
+
onChange,
|
|
252
|
+
options = ["list", "board"] as any,
|
|
253
|
+
}: ViewToggleProps<T>) {
|
|
254
|
+
const getViewLabel = (val: string) => {
|
|
255
|
+
if (val === "tree") return "Tree";
|
|
256
|
+
if (val === "flow") return "Diagram Flow";
|
|
257
|
+
if (val === "kanban" || val === "kanaban" || val === "board") return "Kanban";
|
|
258
|
+
return val;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
return (
|
|
262
|
+
<DropdownMenu>
|
|
263
|
+
<DropdownMenuTrigger
|
|
264
|
+
render={
|
|
265
|
+
<button
|
|
266
|
+
id={id}
|
|
267
|
+
aria-label="Toggle view"
|
|
268
|
+
className="flex items-center gap-1.5 h-8 px-2.5 rounded-md text-dashboard-muted-foreground hover:text-dashboard-foreground hover:bg-dashboard-secondary border border-dashboard-border transition-colors outline-none cursor-pointer text-xs font-medium bg-dashboard-card dark:bg-dashboard-card/40"
|
|
269
|
+
>
|
|
270
|
+
{(view === "list" || view === "tree") && (
|
|
271
|
+
<List className="w-3.5 h-3.5" />
|
|
272
|
+
)}
|
|
273
|
+
{view === "grid" && (
|
|
274
|
+
<LayoutGrid className="w-3.5 h-3.5" />
|
|
275
|
+
)}
|
|
276
|
+
{(view === "board" || view === "kanban" || view === "kanaban") && (
|
|
277
|
+
<KanbanSquare className="w-3.5 h-3.5" />
|
|
278
|
+
)}
|
|
279
|
+
{view === "flow" && <Network className="w-3.5 h-3.5" />}
|
|
280
|
+
<span className="capitalize">{getViewLabel(view)}</span>
|
|
281
|
+
<ChevronDown className="w-3 h-3 opacity-50 ml-0.5" />
|
|
282
|
+
</button>
|
|
283
|
+
}
|
|
284
|
+
/>
|
|
285
|
+
<DropdownMenuContent
|
|
286
|
+
align="end"
|
|
287
|
+
className="w-36 bg-dashboard-card border border-dashboard-border rounded-lg p-1 shadow-lg"
|
|
288
|
+
>
|
|
289
|
+
{options.map((opt) => (
|
|
290
|
+
<DropdownMenuItem
|
|
291
|
+
key={opt}
|
|
292
|
+
onClick={() => onChange(opt)}
|
|
293
|
+
className={cn(
|
|
294
|
+
"flex items-center gap-2 px-2 py-1.5 text-xs rounded-md cursor-pointer outline-none",
|
|
295
|
+
view === opt
|
|
296
|
+
? "bg-dashboard-secondary text-dashboard-foreground font-medium"
|
|
297
|
+
: "text-dashboard-muted-foreground hover:bg-dashboard-secondary hover:text-dashboard-foreground",
|
|
298
|
+
)}
|
|
299
|
+
>
|
|
300
|
+
{(opt === "list" || opt === "tree") && (
|
|
301
|
+
<List className="w-3.5 h-3.5" />
|
|
302
|
+
)}
|
|
303
|
+
{opt === "grid" && (
|
|
304
|
+
<LayoutGrid className="w-3.5 h-3.5" />
|
|
305
|
+
)}
|
|
306
|
+
{(opt === "board" || opt === "kanban" || opt === "kanaban") && (
|
|
307
|
+
<KanbanSquare className="w-3.5 h-3.5" />
|
|
308
|
+
)}
|
|
309
|
+
{opt === "flow" && <Network className="w-3.5 h-3.5" />}
|
|
310
|
+
<span className="capitalize">{getViewLabel(opt)}</span>
|
|
311
|
+
</DropdownMenuItem>
|
|
312
|
+
))}
|
|
313
|
+
</DropdownMenuContent>
|
|
314
|
+
</DropdownMenu>
|
|
315
|
+
);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
export interface FeatureLayoutDropdownOption<T = any> {
|
|
319
|
+
value: string;
|
|
320
|
+
label: string;
|
|
321
|
+
icon?: any;
|
|
322
|
+
data?: T;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export interface FeatureLayoutDropdownProps<T = any> {
|
|
326
|
+
id?: string;
|
|
327
|
+
icon?: any;
|
|
328
|
+
label?: string;
|
|
329
|
+
value?: string;
|
|
330
|
+
onChange?: (value: string, item?: T) => void;
|
|
331
|
+
placeholder?: string;
|
|
332
|
+
searchPlaceholder?: string;
|
|
333
|
+
loadingPlaceholder?: string;
|
|
334
|
+
noItemsPlaceholder?: string;
|
|
335
|
+
disabled?: boolean;
|
|
336
|
+
className?: string;
|
|
337
|
+
contentClassName?: string;
|
|
338
|
+
align?: "start" | "end" | "center";
|
|
339
|
+
|
|
340
|
+
// Static options mode
|
|
341
|
+
options?: Array<FeatureLayoutDropdownOption<T> | string>;
|
|
342
|
+
|
|
343
|
+
// Infinite mode props
|
|
344
|
+
items?: T[];
|
|
345
|
+
isLoading?: boolean;
|
|
346
|
+
isFetchingNextPage?: boolean;
|
|
347
|
+
hasNextPage?: boolean;
|
|
348
|
+
fetchNextPage?: () => void;
|
|
349
|
+
search?: string;
|
|
350
|
+
onSearchChange?: (search: string) => void;
|
|
351
|
+
getItemKey?: (item: T) => string;
|
|
352
|
+
getItemLabel?: (item: T) => string;
|
|
353
|
+
getItemIcon?: (item: T) => React.ReactNode;
|
|
354
|
+
selectedLabel?: string;
|
|
355
|
+
renderCustomItem?: (item: T, closeDropdown: () => void) => React.ReactNode;
|
|
356
|
+
extraAction?: {
|
|
357
|
+
id: string;
|
|
358
|
+
label: string;
|
|
359
|
+
icon?: React.ReactNode;
|
|
360
|
+
onClick?: () => void;
|
|
361
|
+
};
|
|
362
|
+
header?: React.ReactNode;
|
|
363
|
+
footer?: React.ReactNode;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
FeatureLayout.Dropdown = function FeatureLayoutDropdown<T = any>({
|
|
367
|
+
id,
|
|
368
|
+
icon,
|
|
369
|
+
label,
|
|
370
|
+
value,
|
|
371
|
+
onChange,
|
|
372
|
+
placeholder = "Select...",
|
|
373
|
+
searchPlaceholder = "Search...",
|
|
374
|
+
loadingPlaceholder,
|
|
375
|
+
noItemsPlaceholder,
|
|
376
|
+
disabled = false,
|
|
377
|
+
className,
|
|
378
|
+
contentClassName,
|
|
379
|
+
align = "end",
|
|
380
|
+
options,
|
|
381
|
+
items,
|
|
382
|
+
isLoading = false,
|
|
383
|
+
isFetchingNextPage = false,
|
|
384
|
+
hasNextPage = false,
|
|
385
|
+
fetchNextPage,
|
|
386
|
+
search,
|
|
387
|
+
onSearchChange,
|
|
388
|
+
getItemKey,
|
|
389
|
+
getItemLabel,
|
|
390
|
+
getItemIcon,
|
|
391
|
+
selectedLabel,
|
|
392
|
+
renderCustomItem,
|
|
393
|
+
extraAction,
|
|
394
|
+
header,
|
|
395
|
+
footer,
|
|
396
|
+
}: FeatureLayoutDropdownProps<T>) {
|
|
397
|
+
const normalizedItems = React.useMemo(() => {
|
|
398
|
+
if (items) return items;
|
|
399
|
+
if (!options) return [];
|
|
400
|
+
return options.map((opt) =>
|
|
401
|
+
typeof opt === "string" ? { value: opt, label: opt } : opt,
|
|
402
|
+
);
|
|
403
|
+
}, [items, options]);
|
|
404
|
+
|
|
405
|
+
return (
|
|
406
|
+
<InfiniteSelect<any>
|
|
407
|
+
id={id}
|
|
408
|
+
variant="toolbar"
|
|
409
|
+
icon={icon}
|
|
410
|
+
label={label}
|
|
411
|
+
value={value}
|
|
412
|
+
onValueChange={onChange}
|
|
413
|
+
placeholder={placeholder}
|
|
414
|
+
searchPlaceholder={searchPlaceholder}
|
|
415
|
+
loadingPlaceholder={loadingPlaceholder}
|
|
416
|
+
noItemsPlaceholder={noItemsPlaceholder}
|
|
417
|
+
disabled={disabled}
|
|
418
|
+
className={className}
|
|
419
|
+
contentClassName={contentClassName}
|
|
420
|
+
align={align}
|
|
421
|
+
items={normalizedItems}
|
|
422
|
+
isLoading={isLoading}
|
|
423
|
+
isFetchingNextPage={isFetchingNextPage}
|
|
424
|
+
hasNextPage={hasNextPage}
|
|
425
|
+
fetchNextPage={fetchNextPage}
|
|
426
|
+
search={search}
|
|
427
|
+
onSearchChange={onSearchChange}
|
|
428
|
+
getItemKey={getItemKey}
|
|
429
|
+
getItemLabel={getItemLabel}
|
|
430
|
+
getItemIcon={getItemIcon}
|
|
431
|
+
selectedLabel={selectedLabel}
|
|
432
|
+
renderCustomItem={renderCustomItem}
|
|
433
|
+
extraAction={extraAction}
|
|
434
|
+
header={header}
|
|
435
|
+
footer={footer}
|
|
436
|
+
/>
|
|
437
|
+
);
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
FeatureLayout.Select = FeatureLayout.Dropdown;
|
|
441
|
+
FeatureLayout.InfiniteSelect = FeatureLayout.Dropdown;
|
|
442
|
+
|
|
443
|
+
FeatureLayout.Search = function FeatureLayoutSearch({
|
|
444
|
+
id,
|
|
445
|
+
value,
|
|
446
|
+
onChange,
|
|
447
|
+
placeholder = "Search...",
|
|
448
|
+
className,
|
|
449
|
+
}: {
|
|
450
|
+
id?: string;
|
|
451
|
+
value: string;
|
|
452
|
+
onChange: (v: string) => void;
|
|
453
|
+
placeholder?: string;
|
|
454
|
+
className?: string;
|
|
455
|
+
}) {
|
|
456
|
+
const [isHovered, setIsHovered] = React.useState(false);
|
|
457
|
+
const [isFocused, setIsFocused] = React.useState(false);
|
|
458
|
+
const inputRef = React.useRef<HTMLInputElement>(null);
|
|
459
|
+
|
|
460
|
+
const hasValue = Boolean(value && value.trim().length > 0);
|
|
461
|
+
const isExpanded = isHovered || isFocused || hasValue;
|
|
462
|
+
|
|
463
|
+
const handleClear = (e: React.MouseEvent) => {
|
|
464
|
+
e.stopPropagation();
|
|
465
|
+
onChange("");
|
|
466
|
+
inputRef.current?.focus();
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
return (
|
|
470
|
+
<div
|
|
471
|
+
id={id}
|
|
472
|
+
onMouseEnter={() => setIsHovered(true)}
|
|
473
|
+
onMouseLeave={() => setIsHovered(false)}
|
|
474
|
+
onClick={() => inputRef.current?.focus()}
|
|
475
|
+
className={cn(
|
|
476
|
+
"relative flex items-center h-8 transition-all duration-300 ease-in-out rounded-md border",
|
|
477
|
+
isExpanded
|
|
478
|
+
? "w-48 sm:w-56 md:w-64 cursor-text"
|
|
479
|
+
: "w-8 cursor-pointer",
|
|
480
|
+
isFocused
|
|
481
|
+
? "border-dashboard-primary/70 bg-dashboard-secondary ring-1 ring-dashboard-primary/30"
|
|
482
|
+
: isExpanded
|
|
483
|
+
? "border-dashboard-border bg-dashboard-secondary shadow-sm"
|
|
484
|
+
: "border-transparent bg-transparent hover:bg-dashboard-secondary",
|
|
485
|
+
className,
|
|
486
|
+
)}
|
|
487
|
+
>
|
|
488
|
+
<Search
|
|
489
|
+
className={cn(
|
|
490
|
+
"w-3.5 h-3.5 absolute transition-all duration-300 pointer-events-none z-10",
|
|
491
|
+
isExpanded
|
|
492
|
+
? "left-2.5 text-dashboard-primary"
|
|
493
|
+
: "left-1/2 -translate-x-1/2 text-dashboard-muted-foreground",
|
|
494
|
+
)}
|
|
495
|
+
/>
|
|
496
|
+
|
|
497
|
+
<input
|
|
498
|
+
ref={inputRef}
|
|
499
|
+
type="text"
|
|
500
|
+
aria-label={placeholder || "Search"}
|
|
501
|
+
placeholder={isExpanded ? placeholder : ""}
|
|
502
|
+
value={value}
|
|
503
|
+
onFocus={() => setIsFocused(true)}
|
|
504
|
+
onBlur={() => setIsFocused(false)}
|
|
505
|
+
onChange={(e) => onChange(e.target.value)}
|
|
506
|
+
tabIndex={0}
|
|
507
|
+
className={cn(
|
|
508
|
+
"w-full h-full bg-transparent text-xs text-dashboard-foreground placeholder:text-dashboard-muted-foreground outline-none transition-all duration-300 relative z-10",
|
|
509
|
+
isExpanded
|
|
510
|
+
? "pl-8 pr-7 opacity-100"
|
|
511
|
+
: "pl-8 pr-0 opacity-0 pointer-events-none",
|
|
512
|
+
)}
|
|
513
|
+
/>
|
|
514
|
+
|
|
515
|
+
{isExpanded && hasValue && (
|
|
516
|
+
<button
|
|
517
|
+
type="button"
|
|
518
|
+
onClick={handleClear}
|
|
519
|
+
aria-label="Clear search"
|
|
520
|
+
className="absolute right-2 z-20 p-0.5 rounded-full text-dashboard-muted-foreground hover:text-dashboard-foreground hover:bg-dashboard-card transition-colors cursor-pointer"
|
|
521
|
+
>
|
|
522
|
+
<X className="w-3 h-3" />
|
|
523
|
+
</button>
|
|
524
|
+
)}
|
|
525
|
+
</div>
|
|
526
|
+
);
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
FeatureLayout.IconButton = function FeatureLayoutIconButton({
|
|
530
|
+
id,
|
|
531
|
+
icon: Icon,
|
|
532
|
+
onClick,
|
|
533
|
+
active,
|
|
534
|
+
ariaLabel,
|
|
535
|
+
}: {
|
|
536
|
+
id?: string;
|
|
537
|
+
icon: any;
|
|
538
|
+
onClick: () => void;
|
|
539
|
+
active?: boolean;
|
|
540
|
+
ariaLabel?: string;
|
|
541
|
+
}) {
|
|
542
|
+
return (
|
|
543
|
+
<button
|
|
544
|
+
id={id}
|
|
545
|
+
aria-label={ariaLabel || "Action"}
|
|
546
|
+
onClick={onClick}
|
|
547
|
+
className={cn(
|
|
548
|
+
"w-8 h-8 rounded-md flex items-center justify-center transition-colors outline-none cursor-pointer border",
|
|
549
|
+
active
|
|
550
|
+
? "bg-dashboard-secondary text-dashboard-foreground border-dashboard-border"
|
|
551
|
+
: "bg-dashboard-card dark:bg-dashboard-card/40 text-dashboard-muted-foreground hover:bg-dashboard-secondary hover:text-dashboard-foreground border-dashboard-border",
|
|
552
|
+
)}
|
|
553
|
+
>
|
|
554
|
+
<Icon className="w-3.5 h-3.5" />
|
|
555
|
+
</button>
|
|
556
|
+
);
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
FeatureLayout.CreateButton = function FeatureLayoutCreateButton({
|
|
560
|
+
id,
|
|
561
|
+
icon: Icon,
|
|
562
|
+
onClick,
|
|
563
|
+
ariaLabel,
|
|
564
|
+
children,
|
|
565
|
+
className,
|
|
566
|
+
}: {
|
|
567
|
+
id?: string;
|
|
568
|
+
icon: any;
|
|
569
|
+
onClick: () => void;
|
|
570
|
+
ariaLabel?: string;
|
|
571
|
+
children?: React.ReactNode;
|
|
572
|
+
className?: string;
|
|
573
|
+
}) {
|
|
574
|
+
return (
|
|
575
|
+
<button
|
|
576
|
+
id={id}
|
|
577
|
+
aria-label={ariaLabel || "Action"}
|
|
578
|
+
onClick={onClick}
|
|
579
|
+
className={cn(
|
|
580
|
+
"bg-dashboard-primary hover:bg-dashboard-primary/90 text-white px-2.5 py-1 rounded-md flex items-center justify-center gap-1.5 transition-colors outline-none cursor-pointer border border-transparent text-xs font-medium shrink-0",
|
|
581
|
+
className,
|
|
582
|
+
)}
|
|
583
|
+
>
|
|
584
|
+
<Icon className="w-3.5 h-3.5 shrink-0" />
|
|
585
|
+
{children}
|
|
586
|
+
</button>
|
|
587
|
+
);
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
FeatureLayout.ExportButton = FeatureLayoutExportButton;
|
|
591
|
+
|
|
592
|
+
// ── Body & Layout ────────────────────────────────────────────────────────────
|
|
593
|
+
|
|
594
|
+
FeatureLayout.Body = function FeatureLayoutBody({
|
|
595
|
+
className,
|
|
596
|
+
children,
|
|
597
|
+
...props
|
|
598
|
+
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
599
|
+
return (
|
|
600
|
+
<div
|
|
601
|
+
className={cn(
|
|
602
|
+
"flex-1 flex flex-row min-h-0 overflow-hidden relative",
|
|
603
|
+
className,
|
|
604
|
+
)}
|
|
605
|
+
{...props}
|
|
606
|
+
>
|
|
607
|
+
<AnimatePresence>{children}</AnimatePresence>
|
|
608
|
+
</div>
|
|
609
|
+
);
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
613
|
+
position?: "left" | "right";
|
|
614
|
+
width?: number;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
FeatureLayout.Sidebar = function FeatureLayoutSidebar({
|
|
618
|
+
className,
|
|
619
|
+
position = "left",
|
|
620
|
+
width = 320,
|
|
621
|
+
children,
|
|
622
|
+
...props
|
|
623
|
+
}: SidebarProps) {
|
|
624
|
+
return (
|
|
625
|
+
<motion.div
|
|
626
|
+
initial={{ width: 0, opacity: 0 }}
|
|
627
|
+
animate={{ width, opacity: 1 }}
|
|
628
|
+
exit={{ width: 0, opacity: 0 }}
|
|
629
|
+
transition={{ duration: 0.25, ease: "easeInOut" }}
|
|
630
|
+
className={cn(
|
|
631
|
+
"h-full shrink-0 overflow-hidden flex flex-col z-10",
|
|
632
|
+
position === "left"
|
|
633
|
+
? "ltr:border-r rtl:border-l border-dashboard-border bg-dashboard-sidebar"
|
|
634
|
+
: "ltr:border-l rtl:border-r border-dashboard-border bg-dashboard-card",
|
|
635
|
+
className,
|
|
636
|
+
)}
|
|
637
|
+
{...(props as any)}
|
|
638
|
+
>
|
|
639
|
+
<div
|
|
640
|
+
className="h-full flex flex-col overflow-y-auto"
|
|
641
|
+
style={{ width: `${width}px` }}
|
|
642
|
+
>
|
|
643
|
+
{children}
|
|
644
|
+
</div>
|
|
645
|
+
</motion.div>
|
|
646
|
+
);
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
FeatureLayout.Content = function FeatureLayoutContent({
|
|
650
|
+
className,
|
|
651
|
+
children,
|
|
652
|
+
...props
|
|
653
|
+
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
654
|
+
return (
|
|
655
|
+
<div
|
|
656
|
+
className={cn(
|
|
657
|
+
"flex-1 min-w-0 h-full overflow-y-auto bg-dashboard-background px-4",
|
|
658
|
+
className,
|
|
659
|
+
)}
|
|
660
|
+
{...props}
|
|
661
|
+
>
|
|
662
|
+
{children}
|
|
663
|
+
</div>
|
|
664
|
+
);
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
FeatureLayout.DetailContent = function FeatureLayoutDetailContent({
|
|
668
|
+
className,
|
|
669
|
+
children,
|
|
670
|
+
...props
|
|
671
|
+
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
672
|
+
return (
|
|
673
|
+
<div
|
|
674
|
+
className={cn(
|
|
675
|
+
"flex flex-col lg:flex-row gap-6 mx-auto py-6 min-h-full w-full",
|
|
676
|
+
className,
|
|
677
|
+
)}
|
|
678
|
+
{...props}
|
|
679
|
+
>
|
|
680
|
+
{children}
|
|
681
|
+
</div>
|
|
682
|
+
);
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
FeatureLayout.DetailMain = function FeatureLayoutDetailMain({
|
|
686
|
+
className,
|
|
687
|
+
children,
|
|
688
|
+
...props
|
|
689
|
+
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
690
|
+
return (
|
|
691
|
+
<div
|
|
692
|
+
className={cn("flex-1 min-w-0 flex flex-col gap-6", className)}
|
|
693
|
+
{...props}
|
|
694
|
+
>
|
|
695
|
+
{children}
|
|
696
|
+
</div>
|
|
697
|
+
);
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
FeatureLayout.DetailSidebar = function FeatureLayoutDetailSidebar({
|
|
701
|
+
className,
|
|
702
|
+
children,
|
|
703
|
+
...props
|
|
704
|
+
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
705
|
+
return (
|
|
706
|
+
<div
|
|
707
|
+
className={cn(
|
|
708
|
+
"w-full lg:w-[320px] shrink-0 flex flex-col gap-6",
|
|
709
|
+
className,
|
|
710
|
+
)}
|
|
711
|
+
{...props}
|
|
712
|
+
>
|
|
713
|
+
{children}
|
|
714
|
+
</div>
|
|
715
|
+
);
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
FeatureLayout.Footer = function FeatureLayoutFooter({
|
|
719
|
+
className,
|
|
720
|
+
children,
|
|
721
|
+
...props
|
|
722
|
+
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
723
|
+
return (
|
|
724
|
+
<div
|
|
725
|
+
className={cn(
|
|
726
|
+
"sticky bottom-0 w-full mt-auto py-4 px-6 border-t border-dashboard-border bg-dashboard-card flex items-center justify-end gap-3 shrink-0 z-10",
|
|
727
|
+
className,
|
|
728
|
+
)}
|
|
729
|
+
{...props}
|
|
730
|
+
>
|
|
731
|
+
{children}
|
|
732
|
+
</div>
|
|
733
|
+
);
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
FeatureLayout.Kanban = FeatureLayoutKanban;
|
|
737
|
+
|
|
738
|
+
export { FeatureLayoutKanban, useWarnOnRefresh };
|
|
739
|
+
|