@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,440 @@
|
|
|
1
|
+
import { cn } from "../support/utils";
|
|
2
|
+
import {
|
|
3
|
+
Activity,
|
|
4
|
+
ChevronDown,
|
|
5
|
+
ChevronRight,
|
|
6
|
+
FileText,
|
|
7
|
+
History,
|
|
8
|
+
MessageSquare,
|
|
9
|
+
Paperclip,
|
|
10
|
+
Zap,
|
|
11
|
+
} from "lucide-react";
|
|
12
|
+
import React, { useState } from "react";
|
|
13
|
+
import { Avatar, AvatarFallback, AvatarImage } from "./avatar";
|
|
14
|
+
import { Button } from "./button";
|
|
15
|
+
import { FileAttachmentChip } from "./FileAttachmentChip";
|
|
16
|
+
import { Textarea } from "./textarea";
|
|
17
|
+
|
|
18
|
+
export interface ActivityAttachment {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
size: string;
|
|
22
|
+
url?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ActivityReaction {
|
|
26
|
+
emoji: string;
|
|
27
|
+
count: number;
|
|
28
|
+
userReacted?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ActivityFeedItem {
|
|
32
|
+
id: string;
|
|
33
|
+
type: "comment" | "audit" | "note";
|
|
34
|
+
author: {
|
|
35
|
+
name: string;
|
|
36
|
+
avatar?: string;
|
|
37
|
+
initials?: string;
|
|
38
|
+
isOnline?: boolean;
|
|
39
|
+
};
|
|
40
|
+
timestamp: string;
|
|
41
|
+
isEdited?: boolean;
|
|
42
|
+
content?: string;
|
|
43
|
+
attachments?: ActivityAttachment[];
|
|
44
|
+
reactions?: ActivityReaction[];
|
|
45
|
+
auditDetails?: {
|
|
46
|
+
action: string;
|
|
47
|
+
target?: string;
|
|
48
|
+
from?: React.ReactNode;
|
|
49
|
+
to?: React.ReactNode;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ActivityFeedProps {
|
|
54
|
+
items: ActivityFeedItem[];
|
|
55
|
+
totalCount?: number;
|
|
56
|
+
newCount?: number;
|
|
57
|
+
onAddComment?: (content: string, isNote: boolean) => void;
|
|
58
|
+
onAddReaction?: (itemId: string, emoji: string) => void;
|
|
59
|
+
currentUser?: {
|
|
60
|
+
name: string;
|
|
61
|
+
avatar?: string;
|
|
62
|
+
initials?: string;
|
|
63
|
+
};
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ActivityFeed({
|
|
68
|
+
items,
|
|
69
|
+
totalCount = 0,
|
|
70
|
+
newCount = 0,
|
|
71
|
+
onAddComment,
|
|
72
|
+
onAddReaction,
|
|
73
|
+
currentUser,
|
|
74
|
+
className,
|
|
75
|
+
}: ActivityFeedProps) {
|
|
76
|
+
const [isCollapsed, setIsCollapsed] = useState(false);
|
|
77
|
+
const [activeFilter, setActiveFilter] = useState<
|
|
78
|
+
"all" | "comments" | "audit" | "notes"
|
|
79
|
+
>("all");
|
|
80
|
+
const [commentText, setCommentText] = useState("");
|
|
81
|
+
const [isNoteMode, setIsNoteMode] = useState(false);
|
|
82
|
+
|
|
83
|
+
const filteredItems = items.filter((item) => {
|
|
84
|
+
if (activeFilter === "comments") return item.type === "comment";
|
|
85
|
+
if (activeFilter === "audit") return item.type === "audit";
|
|
86
|
+
if (activeFilter === "notes") return item.type === "note";
|
|
87
|
+
return true;
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
const handleSendComment = () => {
|
|
91
|
+
if (!commentText.trim()) return;
|
|
92
|
+
onAddComment?.(commentText, isNoteMode);
|
|
93
|
+
setCommentText("");
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<div
|
|
98
|
+
className={cn(
|
|
99
|
+
"rounded-xl bg-dashboard-card border border-dashboard-border overflow-hidden select-none",
|
|
100
|
+
className,
|
|
101
|
+
)}
|
|
102
|
+
>
|
|
103
|
+
{/* Header Toolbar */}
|
|
104
|
+
<div className="flex items-center justify-between px-4 py-2.5 bg-dashboard-secondary/30 border-b border-dashboard-border">
|
|
105
|
+
<button
|
|
106
|
+
type="button"
|
|
107
|
+
onClick={() => setIsCollapsed(!isCollapsed)}
|
|
108
|
+
className="flex items-center gap-2 text-xs font-semibold text-dashboard-foreground hover:text-dashboard-primary transition-colors cursor-pointer"
|
|
109
|
+
>
|
|
110
|
+
{isCollapsed ? (
|
|
111
|
+
<ChevronRight className="w-3.5 h-3.5 text-dashboard-muted-foreground" />
|
|
112
|
+
) : (
|
|
113
|
+
<ChevronDown className="w-3.5 h-3.5 text-dashboard-muted-foreground" />
|
|
114
|
+
)}
|
|
115
|
+
<Activity className="w-3.5 h-3.5 text-dashboard-primary" />
|
|
116
|
+
<span>Activity</span>
|
|
117
|
+
<span className="font-mono text-[11px] text-dashboard-muted-foreground">
|
|
118
|
+
{totalCount || items.length}
|
|
119
|
+
{newCount > 0 && ` + ${newCount}`}
|
|
120
|
+
</span>
|
|
121
|
+
</button>
|
|
122
|
+
|
|
123
|
+
{/* Filter Icon Buttons */}
|
|
124
|
+
<div className="flex items-center gap-1">
|
|
125
|
+
<button
|
|
126
|
+
type="button"
|
|
127
|
+
aria-label="Filter comments"
|
|
128
|
+
onClick={() =>
|
|
129
|
+
setActiveFilter(
|
|
130
|
+
activeFilter === "comments"
|
|
131
|
+
? "all"
|
|
132
|
+
: "comments",
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
className={cn(
|
|
136
|
+
"p-1.5 rounded-md text-xs transition-colors",
|
|
137
|
+
activeFilter === "comments"
|
|
138
|
+
? "bg-dashboard-primary/10 text-dashboard-primary"
|
|
139
|
+
: "text-dashboard-muted-foreground hover:text-dashboard-foreground hover:bg-dashboard-secondary",
|
|
140
|
+
)}
|
|
141
|
+
>
|
|
142
|
+
<MessageSquare className="w-3.5 h-3.5" />
|
|
143
|
+
</button>
|
|
144
|
+
<button
|
|
145
|
+
type="button"
|
|
146
|
+
aria-label="Filter audit history"
|
|
147
|
+
onClick={() =>
|
|
148
|
+
setActiveFilter(
|
|
149
|
+
activeFilter === "audit" ? "all" : "audit",
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
className={cn(
|
|
153
|
+
"p-1.5 rounded-md text-xs transition-colors",
|
|
154
|
+
activeFilter === "audit"
|
|
155
|
+
? "bg-dashboard-primary/10 text-dashboard-primary"
|
|
156
|
+
: "text-dashboard-muted-foreground hover:text-dashboard-foreground hover:bg-dashboard-secondary",
|
|
157
|
+
)}
|
|
158
|
+
>
|
|
159
|
+
<History className="w-3.5 h-3.5" />
|
|
160
|
+
</button>
|
|
161
|
+
<button
|
|
162
|
+
type="button"
|
|
163
|
+
aria-label="Filter notes"
|
|
164
|
+
onClick={() =>
|
|
165
|
+
setActiveFilter(
|
|
166
|
+
activeFilter === "notes" ? "all" : "notes",
|
|
167
|
+
)
|
|
168
|
+
}
|
|
169
|
+
className={cn(
|
|
170
|
+
"p-1.5 rounded-md text-xs transition-colors",
|
|
171
|
+
activeFilter === "notes"
|
|
172
|
+
? "bg-dashboard-primary/10 text-dashboard-primary"
|
|
173
|
+
: "text-dashboard-muted-foreground hover:text-dashboard-foreground hover:bg-dashboard-secondary",
|
|
174
|
+
)}
|
|
175
|
+
>
|
|
176
|
+
<FileText className="w-3.5 h-3.5" />
|
|
177
|
+
</button>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
{/* Collapsible Content */}
|
|
182
|
+
{!isCollapsed && (
|
|
183
|
+
<div className="divide-y divide-dashboard-border/60">
|
|
184
|
+
{/* Items List */}
|
|
185
|
+
<div className="p-4 space-y-4 max-h-[460px] overflow-y-auto">
|
|
186
|
+
{filteredItems.length === 0 ? (
|
|
187
|
+
<div className="text-center py-6 text-xs text-dashboard-muted-foreground">
|
|
188
|
+
No activity recorded yet.
|
|
189
|
+
</div>
|
|
190
|
+
) : (
|
|
191
|
+
filteredItems.map((item) => (
|
|
192
|
+
<div
|
|
193
|
+
key={item.id}
|
|
194
|
+
className={cn(
|
|
195
|
+
"flex gap-3 text-xs",
|
|
196
|
+
item.type === "note" &&
|
|
197
|
+
"p-3 rounded-lg bg-amber-500/5 border border-amber-500/20",
|
|
198
|
+
)}
|
|
199
|
+
>
|
|
200
|
+
{/* Author Avatar with Online Dot */}
|
|
201
|
+
<div className="relative shrink-0">
|
|
202
|
+
<Avatar size="sm" className="size-7">
|
|
203
|
+
{item.author.avatar && (
|
|
204
|
+
<AvatarImage
|
|
205
|
+
src={item.author.avatar}
|
|
206
|
+
alt={item.author.name}
|
|
207
|
+
/>
|
|
208
|
+
)}
|
|
209
|
+
<AvatarFallback className="text-[10px]">
|
|
210
|
+
{item.author.initials ||
|
|
211
|
+
item.author.name.slice(
|
|
212
|
+
0,
|
|
213
|
+
2,
|
|
214
|
+
)}
|
|
215
|
+
</AvatarFallback>
|
|
216
|
+
</Avatar>
|
|
217
|
+
{item.author.isOnline && (
|
|
218
|
+
<span className="absolute bottom-0 right-0 size-2 bg-emerald-500 rounded-full ring-2 ring-dashboard-card" />
|
|
219
|
+
)}
|
|
220
|
+
</div>
|
|
221
|
+
|
|
222
|
+
{/* Item Body */}
|
|
223
|
+
<div className="flex-1 space-y-1.5 min-w-0">
|
|
224
|
+
<div className="flex items-center justify-between gap-2">
|
|
225
|
+
<div className="flex items-center gap-1.5">
|
|
226
|
+
<span className="font-semibold text-dashboard-foreground">
|
|
227
|
+
{item.author.name}
|
|
228
|
+
</span>
|
|
229
|
+
{item.type === "note" && (
|
|
230
|
+
<span className="text-[10px] font-bold px-1.5 py-0.2 rounded bg-amber-500/20 text-amber-400">
|
|
231
|
+
Internal Note
|
|
232
|
+
</span>
|
|
233
|
+
)}
|
|
234
|
+
</div>
|
|
235
|
+
<span className="text-[11px] text-dashboard-muted-foreground">
|
|
236
|
+
{item.timestamp}{" "}
|
|
237
|
+
{item.isEdited && "(edited)"}
|
|
238
|
+
</span>
|
|
239
|
+
</div>
|
|
240
|
+
|
|
241
|
+
{/* Audit Log Content */}
|
|
242
|
+
{item.type === "audit" &&
|
|
243
|
+
item.auditDetails && (
|
|
244
|
+
<div className="text-dashboard-muted-foreground leading-relaxed">
|
|
245
|
+
<span>
|
|
246
|
+
{
|
|
247
|
+
item.auditDetails
|
|
248
|
+
.action
|
|
249
|
+
}{" "}
|
|
250
|
+
</span>
|
|
251
|
+
{item.auditDetails.from && (
|
|
252
|
+
<span>
|
|
253
|
+
from{" "}
|
|
254
|
+
<span className="text-dashboard-foreground">
|
|
255
|
+
{
|
|
256
|
+
item
|
|
257
|
+
.auditDetails
|
|
258
|
+
.from
|
|
259
|
+
}
|
|
260
|
+
</span>{" "}
|
|
261
|
+
</span>
|
|
262
|
+
)}
|
|
263
|
+
{item.auditDetails.to && (
|
|
264
|
+
<span>
|
|
265
|
+
to{" "}
|
|
266
|
+
<span className="text-dashboard-foreground">
|
|
267
|
+
{
|
|
268
|
+
item
|
|
269
|
+
.auditDetails
|
|
270
|
+
.to
|
|
271
|
+
}
|
|
272
|
+
</span>
|
|
273
|
+
</span>
|
|
274
|
+
)}
|
|
275
|
+
</div>
|
|
276
|
+
)}
|
|
277
|
+
|
|
278
|
+
{/* Comment / Note Content */}
|
|
279
|
+
{item.content && (
|
|
280
|
+
<p className="text-dashboard-foreground/90 leading-relaxed break-words whitespace-pre-wrap">
|
|
281
|
+
{item.content}
|
|
282
|
+
</p>
|
|
283
|
+
)}
|
|
284
|
+
|
|
285
|
+
{/* Attachments */}
|
|
286
|
+
{item.attachments &&
|
|
287
|
+
item.attachments.length > 0 && (
|
|
288
|
+
<div className="space-y-1.5 pt-1">
|
|
289
|
+
{item.attachments.map(
|
|
290
|
+
(att) => (
|
|
291
|
+
<FileAttachmentChip
|
|
292
|
+
key={att.id}
|
|
293
|
+
name={att.name}
|
|
294
|
+
size={att.size}
|
|
295
|
+
url={att.url}
|
|
296
|
+
/>
|
|
297
|
+
),
|
|
298
|
+
)}
|
|
299
|
+
</div>
|
|
300
|
+
)}
|
|
301
|
+
|
|
302
|
+
{/* Reactions */}
|
|
303
|
+
{item.reactions &&
|
|
304
|
+
item.reactions.length > 0 && (
|
|
305
|
+
<div className="flex items-center gap-1.5 pt-1">
|
|
306
|
+
{item.reactions.map(
|
|
307
|
+
(reaction, idx) => (
|
|
308
|
+
<button
|
|
309
|
+
key={idx}
|
|
310
|
+
type="button"
|
|
311
|
+
onClick={() =>
|
|
312
|
+
onAddReaction?.(
|
|
313
|
+
item.id,
|
|
314
|
+
reaction.emoji,
|
|
315
|
+
)
|
|
316
|
+
}
|
|
317
|
+
className={cn(
|
|
318
|
+
"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] border transition-colors",
|
|
319
|
+
reaction.userReacted
|
|
320
|
+
? "bg-dashboard-primary/10 border-dashboard-primary/30 text-dashboard-primary"
|
|
321
|
+
: "bg-dashboard-secondary border-dashboard-border text-dashboard-muted-foreground hover:text-dashboard-foreground",
|
|
322
|
+
)}
|
|
323
|
+
>
|
|
324
|
+
<span>
|
|
325
|
+
{
|
|
326
|
+
reaction.emoji
|
|
327
|
+
}
|
|
328
|
+
</span>
|
|
329
|
+
<span>
|
|
330
|
+
{
|
|
331
|
+
reaction.count
|
|
332
|
+
}
|
|
333
|
+
</span>
|
|
334
|
+
</button>
|
|
335
|
+
),
|
|
336
|
+
)}
|
|
337
|
+
</div>
|
|
338
|
+
)}
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
))
|
|
342
|
+
)}
|
|
343
|
+
</div>
|
|
344
|
+
|
|
345
|
+
{/* Comment Input Footer */}
|
|
346
|
+
<div className="p-3 bg-dashboard-secondary/20 space-y-2">
|
|
347
|
+
<div className="flex gap-2.5">
|
|
348
|
+
<Avatar size="sm" className="size-7 shrink-0">
|
|
349
|
+
{currentUser?.avatar && (
|
|
350
|
+
<AvatarImage
|
|
351
|
+
src={currentUser.avatar}
|
|
352
|
+
alt={currentUser.name}
|
|
353
|
+
/>
|
|
354
|
+
)}
|
|
355
|
+
<AvatarFallback className="text-[10px]">
|
|
356
|
+
{currentUser?.initials || "ME"}
|
|
357
|
+
</AvatarFallback>
|
|
358
|
+
</Avatar>
|
|
359
|
+
|
|
360
|
+
<div className="flex-1 space-y-2">
|
|
361
|
+
<Textarea
|
|
362
|
+
value={commentText}
|
|
363
|
+
onChange={(e) =>
|
|
364
|
+
setCommentText(e.target.value)
|
|
365
|
+
}
|
|
366
|
+
placeholder={
|
|
367
|
+
isNoteMode
|
|
368
|
+
? "Leave an internal note (only team visible)..."
|
|
369
|
+
: "Leave a comment or reply..."
|
|
370
|
+
}
|
|
371
|
+
rows={2}
|
|
372
|
+
className="text-xs bg-dashboard-background border-dashboard-border min-h-[56px] resize-none"
|
|
373
|
+
/>
|
|
374
|
+
|
|
375
|
+
<div className="flex items-center justify-between pt-1">
|
|
376
|
+
<div className="flex items-center gap-1.5">
|
|
377
|
+
<Button
|
|
378
|
+
type="button"
|
|
379
|
+
variant={
|
|
380
|
+
isNoteMode
|
|
381
|
+
? "default"
|
|
382
|
+
: "outline"
|
|
383
|
+
}
|
|
384
|
+
size="xs"
|
|
385
|
+
onClick={() =>
|
|
386
|
+
setIsNoteMode(!isNoteMode)
|
|
387
|
+
}
|
|
388
|
+
className={cn(
|
|
389
|
+
"h-7 rounded-full text-[11px]",
|
|
390
|
+
isNoteMode
|
|
391
|
+
? "bg-amber-500 hover:bg-amber-600 text-white"
|
|
392
|
+
: "bg-dashboard-secondary border-dashboard-border text-dashboard-muted-foreground hover:text-dashboard-foreground",
|
|
393
|
+
)}
|
|
394
|
+
>
|
|
395
|
+
{isNoteMode
|
|
396
|
+
? "Note Mode Active"
|
|
397
|
+
: "Make a note"}
|
|
398
|
+
</Button>
|
|
399
|
+
|
|
400
|
+
<Button
|
|
401
|
+
type="button"
|
|
402
|
+
variant="ghost"
|
|
403
|
+
size="icon-xs"
|
|
404
|
+
aria-label="Attach file"
|
|
405
|
+
className="size-7 text-dashboard-muted-foreground hover:text-dashboard-foreground"
|
|
406
|
+
>
|
|
407
|
+
<Paperclip className="w-3.5 h-3.5" />
|
|
408
|
+
</Button>
|
|
409
|
+
<Button
|
|
410
|
+
type="button"
|
|
411
|
+
variant="ghost"
|
|
412
|
+
size="icon-xs"
|
|
413
|
+
aria-label="Insert quick macro"
|
|
414
|
+
className="size-7 text-dashboard-muted-foreground hover:text-dashboard-foreground"
|
|
415
|
+
>
|
|
416
|
+
<Zap className="w-3.5 h-3.5" />
|
|
417
|
+
</Button>
|
|
418
|
+
</div>
|
|
419
|
+
|
|
420
|
+
<Button
|
|
421
|
+
type="button"
|
|
422
|
+
variant="default"
|
|
423
|
+
size="xs"
|
|
424
|
+
disabled={!commentText.trim()}
|
|
425
|
+
onClick={handleSendComment}
|
|
426
|
+
className="h-7 px-3.5 bg-dashboard-primary hover:bg-dashboard-primary/90 text-white rounded-full text-xs font-semibold"
|
|
427
|
+
>
|
|
428
|
+
Comment
|
|
429
|
+
</Button>
|
|
430
|
+
</div>
|
|
431
|
+
</div>
|
|
432
|
+
</div>
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
)}
|
|
436
|
+
</div>
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export default ActivityFeed;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { cn } from "../support/utils";
|
|
2
|
+
import { Pause, Play } from "lucide-react";
|
|
3
|
+
import React, { useEffect, useMemo, useRef, useState } from "react";
|
|
4
|
+
|
|
5
|
+
interface AudioPlayerProps {
|
|
6
|
+
src: string;
|
|
7
|
+
variant?: "message" | "preview";
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const formatTime = (time: number) => {
|
|
12
|
+
if (isNaN(time)) return "0:00";
|
|
13
|
+
const minutes = Math.floor(time / 60);
|
|
14
|
+
const seconds = Math.floor(time % 60);
|
|
15
|
+
return `${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const AudioPlayer: React.FC<AudioPlayerProps> = ({
|
|
19
|
+
src,
|
|
20
|
+
variant = "message",
|
|
21
|
+
className,
|
|
22
|
+
}) => {
|
|
23
|
+
const audioRef = useRef<HTMLAudioElement>(null);
|
|
24
|
+
const [isPlaying, setIsPlaying] = useState(false);
|
|
25
|
+
const [duration, setDuration] = useState(0);
|
|
26
|
+
const [currentTime, setCurrentTime] = useState(0);
|
|
27
|
+
const [playbackSpeed, setPlaybackSpeed] = useState(1);
|
|
28
|
+
|
|
29
|
+
const speeds = [1, 1.5, 2];
|
|
30
|
+
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
const audio = audioRef.current;
|
|
33
|
+
if (!audio) return;
|
|
34
|
+
|
|
35
|
+
const setAudioData = () => {
|
|
36
|
+
setDuration(audio.duration || 0);
|
|
37
|
+
setCurrentTime(audio.currentTime || 0);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const setAudioTime = () => setCurrentTime(audio.currentTime || 0);
|
|
41
|
+
const onEnd = () => setIsPlaying(false);
|
|
42
|
+
|
|
43
|
+
audio.addEventListener("loadeddata", setAudioData);
|
|
44
|
+
audio.addEventListener("timeupdate", setAudioTime);
|
|
45
|
+
audio.addEventListener("ended", onEnd);
|
|
46
|
+
|
|
47
|
+
return () => {
|
|
48
|
+
audio.removeEventListener("loadeddata", setAudioData);
|
|
49
|
+
audio.removeEventListener("timeupdate", setAudioTime);
|
|
50
|
+
audio.removeEventListener("ended", onEnd);
|
|
51
|
+
};
|
|
52
|
+
}, []);
|
|
53
|
+
|
|
54
|
+
const togglePlayPause = () => {
|
|
55
|
+
if (!audioRef.current) return;
|
|
56
|
+
if (isPlaying) {
|
|
57
|
+
audioRef.current.pause();
|
|
58
|
+
} else {
|
|
59
|
+
audioRef.current.play().catch(() => {});
|
|
60
|
+
}
|
|
61
|
+
setIsPlaying(!isPlaying);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const handleSpeedToggle = () => {
|
|
65
|
+
const nextSpeed =
|
|
66
|
+
speeds[(speeds.indexOf(playbackSpeed) + 1) % speeds.length];
|
|
67
|
+
setPlaybackSpeed(nextSpeed);
|
|
68
|
+
if (audioRef.current) {
|
|
69
|
+
audioRef.current.playbackRate = nextSpeed;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// Deterministic waveform data based on audio source string
|
|
74
|
+
const waveData = useMemo(() => {
|
|
75
|
+
let hash = 0;
|
|
76
|
+
for (let i = 0; i < src.length; i++) {
|
|
77
|
+
hash = src.charCodeAt(i) + ((hash << 5) - hash);
|
|
78
|
+
}
|
|
79
|
+
const random = (seed: number) => {
|
|
80
|
+
const x = Math.sin(seed++) * 10000;
|
|
81
|
+
return x - Math.floor(x);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
return Array.from({ length: 36 }, (_, i) => {
|
|
85
|
+
return Math.max(0.2, random(hash + i));
|
|
86
|
+
});
|
|
87
|
+
}, [src]);
|
|
88
|
+
|
|
89
|
+
const handleSeek = (e: React.MouseEvent<HTMLDivElement>) => {
|
|
90
|
+
if (!audioRef.current || !duration) return;
|
|
91
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
92
|
+
const percent = Math.max(
|
|
93
|
+
0,
|
|
94
|
+
Math.min(1, (e.clientX - rect.left) / rect.width),
|
|
95
|
+
);
|
|
96
|
+
audioRef.current.currentTime = percent * duration;
|
|
97
|
+
setCurrentTime(percent * duration);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const isMessage = variant === "message";
|
|
101
|
+
|
|
102
|
+
return (
|
|
103
|
+
<div
|
|
104
|
+
className={cn(
|
|
105
|
+
"flex items-center gap-3 rounded-2xl min-w-56 max-w-sm p-2 transition-all",
|
|
106
|
+
isMessage
|
|
107
|
+
? "bg-dashboard-secondary/60 border border-dashboard-border"
|
|
108
|
+
: "bg-dashboard-primary/10 border border-dashboard-primary/30",
|
|
109
|
+
className,
|
|
110
|
+
)}
|
|
111
|
+
>
|
|
112
|
+
<audio ref={audioRef} src={src} preload="metadata" />
|
|
113
|
+
<button
|
|
114
|
+
onClick={togglePlayPause}
|
|
115
|
+
type="button"
|
|
116
|
+
aria-label={isPlaying ? "Pause audio" : "Play audio"}
|
|
117
|
+
className={cn(
|
|
118
|
+
"w-9 h-9 shrink-0 flex items-center justify-center rounded-full transition-all cursor-pointer",
|
|
119
|
+
isMessage
|
|
120
|
+
? "bg-dashboard-primary text-white shadow-md hover:bg-dashboard-primary/90"
|
|
121
|
+
: "bg-dashboard-primary text-white shadow-sm hover:opacity-90",
|
|
122
|
+
)}
|
|
123
|
+
>
|
|
124
|
+
{isPlaying ? (
|
|
125
|
+
<Pause className="w-4 h-4 fill-current" />
|
|
126
|
+
) : (
|
|
127
|
+
<Play className="w-4 h-4 fill-current ml-0.5" />
|
|
128
|
+
)}
|
|
129
|
+
</button>
|
|
130
|
+
|
|
131
|
+
<div className="flex-1 flex flex-col gap-1 pr-1 min-w-0">
|
|
132
|
+
{/* Waveform Seek Bar */}
|
|
133
|
+
<div
|
|
134
|
+
className="w-full h-5 flex items-center gap-0.5 cursor-pointer group"
|
|
135
|
+
onClick={handleSeek}
|
|
136
|
+
>
|
|
137
|
+
{waveData.map((val, i) => {
|
|
138
|
+
const isFilled =
|
|
139
|
+
duration > 0
|
|
140
|
+
? i / waveData.length <= currentTime / duration
|
|
141
|
+
: false;
|
|
142
|
+
return (
|
|
143
|
+
<div
|
|
144
|
+
key={i}
|
|
145
|
+
className={cn(
|
|
146
|
+
"flex-1 rounded-full transition-colors duration-75",
|
|
147
|
+
isFilled
|
|
148
|
+
? "bg-dashboard-primary"
|
|
149
|
+
: isMessage
|
|
150
|
+
? "bg-dashboard-muted-foreground/30"
|
|
151
|
+
: "bg-dashboard-primary/25",
|
|
152
|
+
)}
|
|
153
|
+
style={{
|
|
154
|
+
height: `${Math.max(20, val * 100)}%`,
|
|
155
|
+
}}
|
|
156
|
+
/>
|
|
157
|
+
);
|
|
158
|
+
})}
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
{/* Duration & Speed Toggle Bar */}
|
|
162
|
+
<div className="flex items-center justify-between text-[10px] font-medium text-dashboard-muted-foreground">
|
|
163
|
+
<span>{formatTime(currentTime)}</span>
|
|
164
|
+
<div className="flex items-center gap-1.5">
|
|
165
|
+
<button
|
|
166
|
+
onClick={handleSpeedToggle}
|
|
167
|
+
type="button"
|
|
168
|
+
aria-label={`Playback speed: ${playbackSpeed}x`}
|
|
169
|
+
className="opacity-80 hover:opacity-100 transition-opacity px-1.5 py-0.5 rounded-md font-bold text-[9px] bg-dashboard-secondary border border-dashboard-border text-dashboard-foreground cursor-pointer"
|
|
170
|
+
>
|
|
171
|
+
{playbackSpeed}x
|
|
172
|
+
</button>
|
|
173
|
+
<span>{formatTime(duration)}</span>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
);
|
|
179
|
+
};
|