@otfdashkit/ui 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/LICENSE +21 -0
- package/dist/index.js +14886 -0
- package/dist/index.mjs +14389 -0
- package/package.json +124 -0
- package/src/advanced/BulkActions/BulkActions.stories.tsx +14 -0
- package/src/advanced/BulkActions/BulkActions.test.tsx +9 -0
- package/src/advanced/BulkActions/BulkActions.tsx +46 -0
- package/src/advanced/BulkActions/index.ts +2 -0
- package/src/advanced/CommandBar/CommandBar.stories.tsx +14 -0
- package/src/advanced/CommandBar/CommandBar.test.tsx +9 -0
- package/src/advanced/CommandBar/CommandBar.tsx +115 -0
- package/src/advanced/CommandBar/index.ts +2 -0
- package/src/advanced/Filters/Filters.stories.tsx +14 -0
- package/src/advanced/Filters/Filters.test.tsx +9 -0
- package/src/advanced/Filters/Filters.tsx +103 -0
- package/src/advanced/Filters/index.ts +2 -0
- package/src/advanced/Kanban/Kanban.stories.tsx +14 -0
- package/src/advanced/Kanban/Kanban.test.tsx +9 -0
- package/src/advanced/Kanban/Kanban.tsx +95 -0
- package/src/advanced/Kanban/index.ts +2 -0
- package/src/advanced/ToggleButton/ToggleButton.stories.tsx +14 -0
- package/src/advanced/ToggleButton/ToggleButton.test.tsx +9 -0
- package/src/advanced/ToggleButton/ToggleButton.tsx +78 -0
- package/src/advanced/ToggleButton/index.ts +2 -0
- package/src/advanced/bulk-actions.tsx +46 -0
- package/src/advanced/command-bar.tsx +115 -0
- package/src/advanced/filters.tsx +103 -0
- package/src/advanced/gantt.tsx +824 -0
- package/src/advanced/kanban.tsx +95 -0
- package/src/advanced/rich-editor.tsx +700 -0
- package/src/advanced/toggle-button.tsx +78 -0
- package/src/advanced/utils/cn.ts +1 -0
- package/src/app-shell/AppShell.tsx +24 -0
- package/src/app-shell/BillingStatus.tsx +63 -0
- package/src/app-shell/Sidebar.tsx +172 -0
- package/src/app-shell/SidebarResizer.tsx +109 -0
- package/src/app-shell/SortableNav.tsx +122 -0
- package/src/app-shell/UserMenu.tsx +135 -0
- package/src/app-shell/WorkspacesMenu.tsx +114 -0
- package/src/app-shell/index.ts +18 -0
- package/src/backgrounds/AnimatedGradient.tsx +151 -0
- package/src/backgrounds/DottedBackground.tsx +64 -0
- package/src/backgrounds/GradientBackground.tsx +113 -0
- package/src/backgrounds/HeroShaderA.tsx +255 -0
- package/src/backgrounds/NoiseBackground.tsx +51 -0
- package/src/backgrounds/index.ts +5 -0
- package/src/blocks/ChatDetail/ChatDetail.stories.tsx +14 -0
- package/src/blocks/ChatDetail/ChatDetail.test.tsx +9 -0
- package/src/blocks/ChatDetail/ChatDetail.tsx +73 -0
- package/src/blocks/ChatDetail/index.ts +2 -0
- package/src/blocks/FeedbackModal/FeedbackModal.stories.tsx +14 -0
- package/src/blocks/FeedbackModal/FeedbackModal.test.tsx +9 -0
- package/src/blocks/FeedbackModal/FeedbackModal.tsx +68 -0
- package/src/blocks/FeedbackModal/index.ts +2 -0
- package/src/blocks/FileCards/FileCards.stories.tsx +14 -0
- package/src/blocks/FileCards/FileCards.test.tsx +9 -0
- package/src/blocks/FileCards/FileCards.tsx +56 -0
- package/src/blocks/FileCards/index.ts +2 -0
- package/src/blocks/FilesList/FilesList.stories.tsx +14 -0
- package/src/blocks/FilesList/FilesList.test.tsx +9 -0
- package/src/blocks/FilesList/FilesList.tsx +72 -0
- package/src/blocks/FilesList/index.ts +2 -0
- package/src/blocks/FloatingActionButton/FloatingActionButton.stories.tsx +223 -0
- package/src/blocks/FloatingActionButton/FloatingActionButton.test.tsx +47 -0
- package/src/blocks/FloatingActionButton/FloatingActionButton.tsx +253 -0
- package/src/blocks/FloatingActionButton/index.ts +1 -0
- package/src/blocks/IntegrationCard/IntegrationCard.stories.tsx +14 -0
- package/src/blocks/IntegrationCard/IntegrationCard.test.tsx +9 -0
- package/src/blocks/IntegrationCard/IntegrationCard.tsx +50 -0
- package/src/blocks/IntegrationCard/index.ts +2 -0
- package/src/blocks/InviteModal/InviteModal.stories.tsx +14 -0
- package/src/blocks/InviteModal/InviteModal.test.tsx +9 -0
- package/src/blocks/InviteModal/InviteModal.tsx +69 -0
- package/src/blocks/InviteModal/index.ts +2 -0
- package/src/blocks/ManageTagsModal/ManageTagsModal.stories.tsx +14 -0
- package/src/blocks/ManageTagsModal/ManageTagsModal.test.tsx +9 -0
- package/src/blocks/ManageTagsModal/ManageTagsModal.tsx +63 -0
- package/src/blocks/ManageTagsModal/index.ts +2 -0
- package/src/blocks/MessagesCard/MessagesCard.stories.tsx +14 -0
- package/src/blocks/MessagesCard/MessagesCard.test.tsx +9 -0
- package/src/blocks/MessagesCard/MessagesCard.tsx +59 -0
- package/src/blocks/MessagesCard/index.ts +2 -0
- package/src/blocks/MetricCard/MetricCard.stories.tsx +14 -0
- package/src/blocks/MetricCard/MetricCard.test.tsx +9 -0
- package/src/blocks/MetricCard/MetricCard.tsx +79 -0
- package/src/blocks/MetricCard/index.ts +2 -0
- package/src/blocks/NotificationSettings/NotificationSettings.stories.tsx +14 -0
- package/src/blocks/NotificationSettings/NotificationSettings.test.tsx +9 -0
- package/src/blocks/NotificationSettings/NotificationSettings.tsx +61 -0
- package/src/blocks/NotificationSettings/index.ts +2 -0
- package/src/blocks/OrganizationMenu/OrganizationMenu.stories.tsx +14 -0
- package/src/blocks/OrganizationMenu/OrganizationMenu.test.tsx +9 -0
- package/src/blocks/OrganizationMenu/OrganizationMenu.tsx +66 -0
- package/src/blocks/OrganizationMenu/index.ts +2 -0
- package/src/blocks/RolesMenu/RolesMenu.stories.tsx +14 -0
- package/src/blocks/RolesMenu/RolesMenu.test.tsx +9 -0
- package/src/blocks/RolesMenu/RolesMenu.tsx +61 -0
- package/src/blocks/RolesMenu/index.ts +2 -0
- package/src/blocks/SelectUsersModal/SelectUsersModal.stories.tsx +14 -0
- package/src/blocks/SelectUsersModal/SelectUsersModal.test.tsx +9 -0
- package/src/blocks/SelectUsersModal/SelectUsersModal.tsx +64 -0
- package/src/blocks/SelectUsersModal/index.ts +2 -0
- package/src/blocks/SidebarLayoutDashboard/SidebarLayoutDashboard.stories.tsx +14 -0
- package/src/blocks/SidebarLayoutDashboard/SidebarLayoutDashboard.test.tsx +9 -0
- package/src/blocks/SidebarLayoutDashboard/SidebarLayoutDashboard.tsx +97 -0
- package/src/blocks/SidebarLayoutDashboard/index.ts +2 -0
- package/src/blocks/SidebarLayoutGroups/SidebarLayoutGroups.stories.tsx +14 -0
- package/src/blocks/SidebarLayoutGroups/SidebarLayoutGroups.test.tsx +9 -0
- package/src/blocks/SidebarLayoutGroups/SidebarLayoutGroups.tsx +79 -0
- package/src/blocks/SidebarLayoutGroups/index.ts +2 -0
- package/src/blocks/SidebarLayoutMinimal/SidebarLayoutMinimal.stories.tsx +14 -0
- package/src/blocks/SidebarLayoutMinimal/SidebarLayoutMinimal.test.tsx +9 -0
- package/src/blocks/SidebarLayoutMinimal/SidebarLayoutMinimal.tsx +73 -0
- package/src/blocks/SidebarLayoutMinimal/index.ts +2 -0
- package/src/blocks/SidebarLayoutSearch/SidebarLayoutSearch.stories.tsx +14 -0
- package/src/blocks/SidebarLayoutSearch/SidebarLayoutSearch.test.tsx +9 -0
- package/src/blocks/SidebarLayoutSearch/SidebarLayoutSearch.tsx +79 -0
- package/src/blocks/SidebarLayoutSearch/index.ts +2 -0
- package/src/blocks/SidebarLayoutUser/SidebarLayoutUser.stories.tsx +14 -0
- package/src/blocks/SidebarLayoutUser/SidebarLayoutUser.test.tsx +9 -0
- package/src/blocks/SidebarLayoutUser/SidebarLayoutUser.tsx +82 -0
- package/src/blocks/SidebarLayoutUser/index.ts +2 -0
- package/src/blocks/SortableTaskList/SortableTaskList.stories.tsx +14 -0
- package/src/blocks/SortableTaskList/SortableTaskList.test.tsx +9 -0
- package/src/blocks/SortableTaskList/SortableTaskList.tsx +70 -0
- package/src/blocks/SortableTaskList/index.ts +2 -0
- package/src/blocks/StackedLayoutBranded/StackedLayoutBranded.stories.tsx +14 -0
- package/src/blocks/StackedLayoutBranded/StackedLayoutBranded.test.tsx +9 -0
- package/src/blocks/StackedLayoutBranded/StackedLayoutBranded.tsx +64 -0
- package/src/blocks/StackedLayoutBranded/index.ts +2 -0
- package/src/blocks/StackedLayoutTabs/StackedLayoutTabs.stories.tsx +14 -0
- package/src/blocks/StackedLayoutTabs/StackedLayoutTabs.test.tsx +9 -0
- package/src/blocks/StackedLayoutTabs/StackedLayoutTabs.tsx +80 -0
- package/src/blocks/StackedLayoutTabs/index.ts +2 -0
- package/src/blocks/TaskCard/TaskCard.stories.tsx +14 -0
- package/src/blocks/TaskCard/TaskCard.test.tsx +9 -0
- package/src/blocks/TaskCard/TaskCard.tsx +88 -0
- package/src/blocks/TaskCard/index.ts +2 -0
- package/src/blocks/UserMenu/UserMenu.stories.tsx +14 -0
- package/src/blocks/UserMenu/UserMenu.test.tsx +9 -0
- package/src/blocks/UserMenu/UserMenu.tsx +62 -0
- package/src/blocks/UserMenu/index.ts +2 -0
- package/src/blocks/WorkspaceMembers/WorkspaceMembers.stories.tsx +14 -0
- package/src/blocks/WorkspaceMembers/WorkspaceMembers.test.tsx +9 -0
- package/src/blocks/WorkspaceMembers/WorkspaceMembers.tsx +61 -0
- package/src/blocks/WorkspaceMembers/index.ts +2 -0
- package/src/blocks/activity-heatmap.tsx +122 -0
- package/src/blocks/bar-list.tsx +75 -0
- package/src/blocks/chat-detail.tsx +73 -0
- package/src/blocks/feedback-modal.tsx +68 -0
- package/src/blocks/file-cards.tsx +56 -0
- package/src/blocks/files-list.tsx +72 -0
- package/src/blocks/integration-card.tsx +50 -0
- package/src/blocks/invite-modal.tsx +69 -0
- package/src/blocks/manage-tags-modal.tsx +63 -0
- package/src/blocks/messages-card.tsx +59 -0
- package/src/blocks/metric-card.tsx +79 -0
- package/src/blocks/notification-settings.tsx +61 -0
- package/src/blocks/organization-menu.tsx +85 -0
- package/src/blocks/roles-menu.tsx +61 -0
- package/src/blocks/select-users-modal.tsx +64 -0
- package/src/blocks/sidebar-layout-dashboard.tsx +97 -0
- package/src/blocks/sidebar-layout-groups.tsx +79 -0
- package/src/blocks/sidebar-layout-minimal.tsx +73 -0
- package/src/blocks/sidebar-layout-search.tsx +79 -0
- package/src/blocks/sidebar-layout-user.tsx +82 -0
- package/src/blocks/sortable-task-list.tsx +70 -0
- package/src/blocks/stacked-layout-branded.tsx +64 -0
- package/src/blocks/stacked-layout-tabs.tsx +80 -0
- package/src/blocks/task-card.tsx +88 -0
- package/src/blocks/user-menu.tsx +62 -0
- package/src/blocks/utils/cn.ts +1 -0
- package/src/blocks/workspace-members.tsx +61 -0
- package/src/charts/area-chart.tsx +83 -0
- package/src/charts/bar-chart.tsx +146 -0
- package/src/charts/heatmap.tsx +185 -0
- package/src/charts/line-chart.tsx +89 -0
- package/src/charts/sparkline.tsx +62 -0
- package/src/charts/utils/cn.ts +1 -0
- package/src/components/Banner/Banner.stories.tsx +14 -0
- package/src/components/Banner/Banner.test.tsx +9 -0
- package/src/components/Banner/Banner.tsx +203 -0
- package/src/components/Banner/index.ts +2 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +14 -0
- package/src/components/Breadcrumb/Breadcrumb.test.tsx +9 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +58 -0
- package/src/components/Breadcrumb/index.ts +2 -0
- package/src/components/CommandItem/CommandItem.stories.tsx +14 -0
- package/src/components/CommandItem/CommandItem.test.tsx +9 -0
- package/src/components/CommandItem/CommandItem.tsx +36 -0
- package/src/components/CommandItem/index.ts +2 -0
- package/src/components/DataGrid/DataGrid.stories.tsx +14 -0
- package/src/components/DataGrid/DataGrid.test.tsx +9 -0
- package/src/components/DataGrid/DataGrid.tsx +125 -0
- package/src/components/DataGrid/index.ts +2 -0
- package/src/components/DataTable/DataTable.stories.tsx +14 -0
- package/src/components/DataTable/DataTable.test.tsx +9 -0
- package/src/components/DataTable/DataTable.tsx +139 -0
- package/src/components/DataTable/index.ts +2 -0
- package/src/components/EmptyState/EmptyState.stories.tsx +14 -0
- package/src/components/EmptyState/EmptyState.test.tsx +9 -0
- package/src/components/EmptyState/EmptyState.tsx +106 -0
- package/src/components/EmptyState/index.ts +2 -0
- package/src/components/Hotkeys/Hotkeys.stories.tsx +14 -0
- package/src/components/Hotkeys/Hotkeys.test.tsx +9 -0
- package/src/components/Hotkeys/Hotkeys.tsx +31 -0
- package/src/components/Hotkeys/index.ts +2 -0
- package/src/components/IconBadge/IconBadge.stories.tsx +14 -0
- package/src/components/IconBadge/IconBadge.test.tsx +9 -0
- package/src/components/IconBadge/IconBadge.tsx +35 -0
- package/src/components/IconBadge/index.ts +2 -0
- package/src/components/LoadingOverlay/LoadingOverlay.stories.tsx +14 -0
- package/src/components/LoadingOverlay/LoadingOverlay.test.tsx +9 -0
- package/src/components/LoadingOverlay/LoadingOverlay.tsx +38 -0
- package/src/components/LoadingOverlay/index.ts +2 -0
- package/src/components/Persona/Persona.stories.tsx +14 -0
- package/src/components/Persona/Persona.test.tsx +9 -0
- package/src/components/Persona/Persona.tsx +38 -0
- package/src/components/Persona/index.ts +2 -0
- package/src/components/PropertyList/PropertyList.stories.tsx +14 -0
- package/src/components/PropertyList/PropertyList.test.tsx +9 -0
- package/src/components/PropertyList/PropertyList.tsx +29 -0
- package/src/components/PropertyList/index.ts +2 -0
- package/src/components/Stat/Stat.stories.tsx +14 -0
- package/src/components/Stat/Stat.test.tsx +9 -0
- package/src/components/Stat/Stat.tsx +51 -0
- package/src/components/Stat/index.ts +2 -0
- package/src/components/Stepper/Stepper.stories.tsx +14 -0
- package/src/components/Stepper/Stepper.test.tsx +9 -0
- package/src/components/Stepper/Stepper.tsx +58 -0
- package/src/components/Stepper/index.ts +2 -0
- package/src/components/StructuredList/StructuredList.stories.tsx +14 -0
- package/src/components/StructuredList/StructuredList.test.tsx +9 -0
- package/src/components/StructuredList/StructuredList.tsx +51 -0
- package/src/components/StructuredList/index.ts +2 -0
- package/src/components/Timeline/Timeline.stories.tsx +14 -0
- package/src/components/Timeline/Timeline.test.tsx +9 -0
- package/src/components/Timeline/Timeline.tsx +69 -0
- package/src/components/Timeline/index.ts +2 -0
- package/src/components/Toaster/Toaster.stories.tsx +14 -0
- package/src/components/Toaster/Toaster.test.tsx +9 -0
- package/src/components/Toaster/Toaster.tsx +42 -0
- package/src/components/Toaster/index.ts +2 -0
- package/src/components/banner.tsx +203 -0
- package/src/components/breadcrumb.tsx +58 -0
- package/src/components/command-item.tsx +36 -0
- package/src/components/data-grid.tsx +125 -0
- package/src/components/data-table.tsx +139 -0
- package/src/components/empty-state.tsx +31 -0
- package/src/components/hotkeys.tsx +31 -0
- package/src/components/icon-badge.tsx +35 -0
- package/src/components/loading-overlay.tsx +38 -0
- package/src/components/persona.tsx +38 -0
- package/src/components/property-list.tsx +29 -0
- package/src/components/stat.tsx +51 -0
- package/src/components/stepper.tsx +69 -0
- package/src/components/structured-list.tsx +51 -0
- package/src/components/timeline.tsx +69 -0
- package/src/components/toaster.tsx +42 -0
- package/src/components/utils/cn.ts +1 -0
- package/src/data/ActionBar.tsx +115 -0
- package/src/data/DataGrid.tsx +453 -0
- package/src/data/DataList.tsx +79 -0
- package/src/data/EventCalendar.tsx +794 -0
- package/src/data/Filters.tsx +271 -0
- package/src/data/GridList.tsx +67 -0
- package/src/data/ImageCrop.tsx +198 -0
- package/src/data/SortableList.tsx +258 -0
- package/src/data/Tree.tsx +510 -0
- package/src/data/VideoPlayer.tsx +564 -0
- package/src/data/index.ts +6 -0
- package/src/engagement/Beacon/Beacon.stories.tsx +14 -0
- package/src/engagement/Beacon/Beacon.test.tsx +9 -0
- package/src/engagement/Beacon/Beacon.tsx +50 -0
- package/src/engagement/Beacon/index.ts +2 -0
- package/src/engagement/Tour/Tour.stories.tsx +14 -0
- package/src/engagement/Tour/Tour.test.tsx +9 -0
- package/src/engagement/Tour/Tour.tsx +106 -0
- package/src/engagement/Tour/index.ts +2 -0
- package/src/engagement/beacon.tsx +50 -0
- package/src/engagement/checklist.tsx +259 -0
- package/src/engagement/intro-disclosure.tsx +210 -0
- package/src/engagement/tour.tsx +106 -0
- package/src/engagement/utils/cn.ts +1 -0
- package/src/feedback/Toaster.tsx +141 -0
- package/src/feedback/index.ts +2 -0
- package/src/feedback/toast-emitter.ts +74 -0
- package/src/forms/ArrayField/ArrayField.stories.tsx +14 -0
- package/src/forms/ArrayField/ArrayField.test.tsx +9 -0
- package/src/forms/ArrayField/ArrayField.tsx +61 -0
- package/src/forms/ArrayField/index.ts +2 -0
- package/src/forms/AutoForm/AutoForm.stories.tsx +14 -0
- package/src/forms/AutoForm/AutoForm.test.tsx +9 -0
- package/src/forms/AutoForm/AutoForm.tsx +133 -0
- package/src/forms/AutoForm/index.ts +2 -0
- package/src/forms/DatePicker/DatePicker.stories.tsx +14 -0
- package/src/forms/DatePicker/DatePicker.test.tsx +9 -0
- package/src/forms/DatePicker/DatePicker.tsx +109 -0
- package/src/forms/DatePicker/index.ts +2 -0
- package/src/forms/Field/Field.stories.tsx +14 -0
- package/src/forms/Field/Field.test.tsx +9 -0
- package/src/forms/Field/Field.tsx +62 -0
- package/src/forms/Field/index.ts +2 -0
- package/src/forms/FileUpload/FileUpload.stories.tsx +14 -0
- package/src/forms/FileUpload/FileUpload.test.tsx +9 -0
- package/src/forms/FileUpload/FileUpload.tsx +101 -0
- package/src/forms/FileUpload/index.ts +2 -0
- package/src/forms/Form/Form.stories.tsx +14 -0
- package/src/forms/Form/Form.test.tsx +9 -0
- package/src/forms/Form/Form.tsx +57 -0
- package/src/forms/Form/index.ts +2 -0
- package/src/forms/ObjectField/ObjectField.stories.tsx +14 -0
- package/src/forms/ObjectField/ObjectField.test.tsx +9 -0
- package/src/forms/ObjectField/ObjectField.tsx +53 -0
- package/src/forms/ObjectField/index.ts +2 -0
- package/src/forms/PasswordInput/PasswordInput.stories.tsx +14 -0
- package/src/forms/PasswordInput/PasswordInput.test.tsx +9 -0
- package/src/forms/PasswordInput/PasswordInput.tsx +54 -0
- package/src/forms/PasswordInput/index.ts +2 -0
- package/src/forms/SearchInput/SearchInput.stories.tsx +14 -0
- package/src/forms/SearchInput/SearchInput.test.tsx +9 -0
- package/src/forms/SearchInput/SearchInput.tsx +64 -0
- package/src/forms/SearchInput/index.ts +2 -0
- package/src/forms/StepForm/StepForm.stories.tsx +14 -0
- package/src/forms/StepForm/StepForm.test.tsx +9 -0
- package/src/forms/StepForm/StepForm.tsx +113 -0
- package/src/forms/StepForm/index.ts +2 -0
- package/src/forms/array-field.tsx +61 -0
- package/src/forms/auto-form.tsx +133 -0
- package/src/forms/color-picker.tsx +258 -0
- package/src/forms/combobox.tsx +106 -0
- package/src/forms/date-picker.tsx +109 -0
- package/src/forms/field.tsx +62 -0
- package/src/forms/file-upload.tsx +101 -0
- package/src/forms/form.tsx +57 -0
- package/src/forms/object-field.tsx +53 -0
- package/src/forms/password-input.tsx +54 -0
- package/src/forms/search-input.tsx +64 -0
- package/src/forms/step-form.tsx +113 -0
- package/src/forms/tags.tsx +270 -0
- package/src/forms/utils/cn.ts +1 -0
- package/src/headers/ScrollHeader.tsx +110 -0
- package/src/headers/index.ts +1 -0
- package/src/index.ts +171 -0
- package/src/layout/PageContainer.tsx +40 -0
- package/src/layout/PageLayout.tsx +55 -0
- package/src/layout/index.ts +2 -0
- package/src/layouts/AppShell/AppShell.stories.tsx +14 -0
- package/src/layouts/AppShell/AppShell.test.tsx +9 -0
- package/src/layouts/AppShell/AppShell.tsx +129 -0
- package/src/layouts/AppShell/index.ts +2 -0
- package/src/layouts/Container/Container.stories.tsx +14 -0
- package/src/layouts/Container/Container.test.tsx +9 -0
- package/src/layouts/Container/Container.tsx +33 -0
- package/src/layouts/Container/index.ts +2 -0
- package/src/layouts/Navbar/Navbar.stories.tsx +14 -0
- package/src/layouts/Navbar/Navbar.test.tsx +9 -0
- package/src/layouts/Navbar/Navbar.tsx +60 -0
- package/src/layouts/Navbar/index.ts +2 -0
- package/src/layouts/Page/Page.stories.tsx +14 -0
- package/src/layouts/Page/Page.test.tsx +9 -0
- package/src/layouts/Page/Page.tsx +61 -0
- package/src/layouts/Page/index.ts +2 -0
- package/src/layouts/ResizeBox/ResizeBox.stories.tsx +14 -0
- package/src/layouts/ResizeBox/ResizeBox.test.tsx +9 -0
- package/src/layouts/ResizeBox/ResizeBox.tsx +45 -0
- package/src/layouts/ResizeBox/index.ts +2 -0
- package/src/layouts/Sidebar/Sidebar.stories.tsx +14 -0
- package/src/layouts/Sidebar/Sidebar.test.tsx +9 -0
- package/src/layouts/Sidebar/Sidebar.tsx +99 -0
- package/src/layouts/Sidebar/index.ts +2 -0
- package/src/layouts/SplitPage/SplitPage.stories.tsx +14 -0
- package/src/layouts/SplitPage/SplitPage.test.tsx +9 -0
- package/src/layouts/SplitPage/SplitPage.tsx +32 -0
- package/src/layouts/SplitPage/index.ts +2 -0
- package/src/layouts/Stack/Stack.stories.tsx +14 -0
- package/src/layouts/Stack/Stack.test.tsx +9 -0
- package/src/layouts/Stack/Stack.tsx +56 -0
- package/src/layouts/Stack/index.ts +2 -0
- package/src/layouts/app-shell.tsx +129 -0
- package/src/layouts/container.tsx +33 -0
- package/src/layouts/navbar.tsx +60 -0
- package/src/layouts/page.tsx +61 -0
- package/src/layouts/resize-box.tsx +45 -0
- package/src/layouts/sidebar.tsx +99 -0
- package/src/layouts/split-page.tsx +32 -0
- package/src/layouts/stack.tsx +56 -0
- package/src/layouts/utils/cn.ts +1 -0
- package/src/motion/FadeIn.tsx +33 -0
- package/src/motion/Morph.tsx +17 -0
- package/src/motion/Parallax.tsx +37 -0
- package/src/motion/Reveal.tsx +32 -0
- package/src/motion/Ripple.tsx +78 -0
- package/src/motion/ScaleIn.tsx +33 -0
- package/src/motion/SlideIn.tsx +42 -0
- package/src/motion/Stagger.tsx +48 -0
- package/src/motion/Transition.tsx +13 -0
- package/src/motion/index.ts +13 -0
- package/src/motion/presets.ts +33 -0
- package/src/motion/useLayoutId.ts +6 -0
- package/src/nav/CommandPalette.tsx +197 -0
- package/src/nav/HotkeysProvider.tsx +223 -0
- package/src/nav/index.ts +2 -0
- package/src/primitives/Accordion/Accordion.stories.tsx +14 -0
- package/src/primitives/Accordion/Accordion.test.tsx +9 -0
- package/src/primitives/Accordion/Accordion.tsx +56 -0
- package/src/primitives/Accordion/index.ts +2 -0
- package/src/primitives/Alert/Alert.stories.tsx +14 -0
- package/src/primitives/Alert/Alert.test.tsx +9 -0
- package/src/primitives/Alert/Alert.tsx +60 -0
- package/src/primitives/Alert/index.ts +2 -0
- package/src/primitives/AlertDialog/AlertDialog.stories.tsx +14 -0
- package/src/primitives/AlertDialog/AlertDialog.test.tsx +9 -0
- package/src/primitives/AlertDialog/AlertDialog.tsx +140 -0
- package/src/primitives/AlertDialog/index.ts +2 -0
- package/src/primitives/AspectRatio/AspectRatio.stories.tsx +14 -0
- package/src/primitives/AspectRatio/AspectRatio.test.tsx +9 -0
- package/src/primitives/AspectRatio/AspectRatio.tsx +6 -0
- package/src/primitives/AspectRatio/index.ts +2 -0
- package/src/primitives/Avatar/Avatar.stories.tsx +14 -0
- package/src/primitives/Avatar/Avatar.test.tsx +9 -0
- package/src/primitives/Avatar/Avatar.tsx +35 -0
- package/src/primitives/Avatar/index.ts +2 -0
- package/src/primitives/Badge/Badge.stories.tsx +14 -0
- package/src/primitives/Badge/Badge.test.tsx +9 -0
- package/src/primitives/Badge/Badge.tsx +28 -0
- package/src/primitives/Badge/index.ts +2 -0
- package/src/primitives/Button/Button.stories.tsx +14 -0
- package/src/primitives/Button/Button.test.tsx +9 -0
- package/src/primitives/Button/Button.tsx +113 -0
- package/src/primitives/Button/index.ts +2 -0
- package/src/primitives/Calendar/Calendar.stories.tsx +14 -0
- package/src/primitives/Calendar/Calendar.test.tsx +9 -0
- package/src/primitives/Calendar/Calendar.tsx +214 -0
- package/src/primitives/Calendar/index.ts +2 -0
- package/src/primitives/Card/Card.stories.tsx +14 -0
- package/src/primitives/Card/Card.test.tsx +9 -0
- package/src/primitives/Card/Card.tsx +48 -0
- package/src/primitives/Card/TextureCard.tsx +93 -0
- package/src/primitives/Card/index.ts +3 -0
- package/src/primitives/Carousel/Carousel.stories.tsx +14 -0
- package/src/primitives/Carousel/Carousel.test.tsx +9 -0
- package/src/primitives/Carousel/Carousel.tsx +261 -0
- package/src/primitives/Carousel/index.ts +2 -0
- package/src/primitives/Chart/Chart.stories.tsx +14 -0
- package/src/primitives/Chart/Chart.test.tsx +9 -0
- package/src/primitives/Chart/Chart.tsx +368 -0
- package/src/primitives/Chart/index.ts +2 -0
- package/src/primitives/Checkbox/Checkbox.stories.tsx +14 -0
- package/src/primitives/Checkbox/Checkbox.test.tsx +9 -0
- package/src/primitives/Checkbox/Checkbox.tsx +27 -0
- package/src/primitives/Checkbox/index.ts +2 -0
- package/src/primitives/Collapsible/Collapsible.stories.tsx +14 -0
- package/src/primitives/Collapsible/Collapsible.test.tsx +9 -0
- package/src/primitives/Collapsible/Collapsible.tsx +12 -0
- package/src/primitives/Collapsible/index.ts +2 -0
- package/src/primitives/Command/Command.stories.tsx +14 -0
- package/src/primitives/Command/Command.test.tsx +9 -0
- package/src/primitives/Command/Command.tsx +154 -0
- package/src/primitives/Command/index.ts +2 -0
- package/src/primitives/ContextMenu/ContextMenu.stories.tsx +14 -0
- package/src/primitives/ContextMenu/ContextMenu.test.tsx +9 -0
- package/src/primitives/ContextMenu/ContextMenu.tsx +101 -0
- package/src/primitives/ContextMenu/index.ts +2 -0
- package/src/primitives/Dialog/Dialog.stories.tsx +14 -0
- package/src/primitives/Dialog/Dialog.test.tsx +9 -0
- package/src/primitives/Dialog/Dialog.tsx +88 -0
- package/src/primitives/Dialog/DialogProvider.tsx +130 -0
- package/src/primitives/Dialog/index.ts +3 -0
- package/src/primitives/Drawer/Drawer.stories.tsx +14 -0
- package/src/primitives/Drawer/Drawer.test.tsx +9 -0
- package/src/primitives/Drawer/Drawer.tsx +123 -0
- package/src/primitives/Drawer/index.ts +2 -0
- package/src/primitives/DropdownMenu/DropdownMenu.stories.tsx +14 -0
- package/src/primitives/DropdownMenu/DropdownMenu.test.tsx +9 -0
- package/src/primitives/DropdownMenu/DropdownMenu.tsx +111 -0
- package/src/primitives/DropdownMenu/index.ts +2 -0
- package/src/primitives/Form/Form.stories.tsx +14 -0
- package/src/primitives/Form/Form.test.tsx +9 -0
- package/src/primitives/Form/Form.tsx +179 -0
- package/src/primitives/Form/index.ts +2 -0
- package/src/primitives/HoverCard/HoverCard.stories.tsx +14 -0
- package/src/primitives/HoverCard/HoverCard.test.tsx +9 -0
- package/src/primitives/HoverCard/HoverCard.tsx +31 -0
- package/src/primitives/HoverCard/index.ts +2 -0
- package/src/primitives/Input/Input.stories.tsx +14 -0
- package/src/primitives/Input/Input.test.tsx +9 -0
- package/src/primitives/Input/Input.tsx +110 -0
- package/src/primitives/Input/index.ts +2 -0
- package/src/primitives/InputOtp/InputOtp.stories.tsx +14 -0
- package/src/primitives/InputOtp/InputOtp.test.tsx +9 -0
- package/src/primitives/InputOtp/InputOtp.tsx +70 -0
- package/src/primitives/InputOtp/index.ts +2 -0
- package/src/primitives/Label/Label.stories.tsx +14 -0
- package/src/primitives/Label/Label.test.tsx +9 -0
- package/src/primitives/Label/Label.tsx +27 -0
- package/src/primitives/Label/index.ts +2 -0
- package/src/primitives/Menubar/Menubar.stories.tsx +14 -0
- package/src/primitives/Menubar/Menubar.test.tsx +9 -0
- package/src/primitives/Menubar/Menubar.tsx +255 -0
- package/src/primitives/Menubar/index.ts +2 -0
- package/src/primitives/NavigationMenu/NavigationMenu.stories.tsx +14 -0
- package/src/primitives/NavigationMenu/NavigationMenu.test.tsx +9 -0
- package/src/primitives/NavigationMenu/NavigationMenu.tsx +129 -0
- package/src/primitives/NavigationMenu/index.ts +2 -0
- package/src/primitives/Pagination/Pagination.stories.tsx +14 -0
- package/src/primitives/Pagination/Pagination.test.tsx +9 -0
- package/src/primitives/Pagination/Pagination.tsx +118 -0
- package/src/primitives/Pagination/index.ts +2 -0
- package/src/primitives/Popover/Popover.stories.tsx +14 -0
- package/src/primitives/Popover/Popover.test.tsx +9 -0
- package/src/primitives/Popover/Popover.tsx +30 -0
- package/src/primitives/Popover/index.ts +2 -0
- package/src/primitives/Progress/Progress.stories.tsx +14 -0
- package/src/primitives/Progress/Progress.test.tsx +9 -0
- package/src/primitives/Progress/Progress.tsx +20 -0
- package/src/primitives/Progress/index.ts +2 -0
- package/src/primitives/Radio/Radio.stories.tsx +14 -0
- package/src/primitives/Radio/Radio.test.tsx +9 -0
- package/src/primitives/Radio/Radio.tsx +33 -0
- package/src/primitives/Radio/index.ts +2 -0
- package/src/primitives/Resizable/Resizable.stories.tsx +14 -0
- package/src/primitives/Resizable/Resizable.test.tsx +9 -0
- package/src/primitives/Resizable/Resizable.tsx +44 -0
- package/src/primitives/Resizable/index.ts +2 -0
- package/src/primitives/ScrollArea/ScrollArea.stories.tsx +14 -0
- package/src/primitives/ScrollArea/ScrollArea.test.tsx +9 -0
- package/src/primitives/ScrollArea/ScrollArea.tsx +49 -0
- package/src/primitives/ScrollArea/index.ts +2 -0
- package/src/primitives/Select/Select.stories.tsx +14 -0
- package/src/primitives/Select/Select.test.tsx +9 -0
- package/src/primitives/Select/Select.tsx +140 -0
- package/src/primitives/Select/index.ts +2 -0
- package/src/primitives/Separator/Separator.stories.tsx +14 -0
- package/src/primitives/Separator/Separator.test.tsx +9 -0
- package/src/primitives/Separator/Separator.tsx +21 -0
- package/src/primitives/Separator/index.ts +2 -0
- package/src/primitives/Sheet/Sheet.stories.tsx +14 -0
- package/src/primitives/Sheet/Sheet.test.tsx +9 -0
- package/src/primitives/Sheet/Sheet.tsx +88 -0
- package/src/primitives/Sheet/index.ts +2 -0
- package/src/primitives/Skeleton/Skeleton.stories.tsx +14 -0
- package/src/primitives/Skeleton/Skeleton.test.tsx +9 -0
- package/src/primitives/Skeleton/Skeleton.tsx +71 -0
- package/src/primitives/Skeleton/index.ts +2 -0
- package/src/primitives/Slider/Slider.stories.tsx +14 -0
- package/src/primitives/Slider/Slider.test.tsx +9 -0
- package/src/primitives/Slider/Slider.tsx +20 -0
- package/src/primitives/Slider/index.ts +2 -0
- package/src/primitives/Sonner/Sonner.stories.tsx +14 -0
- package/src/primitives/Sonner/Sonner.test.tsx +9 -0
- package/src/primitives/Sonner/Sonner.tsx +30 -0
- package/src/primitives/Sonner/index.ts +2 -0
- package/src/primitives/Spinner/Spinner.stories.tsx +14 -0
- package/src/primitives/Spinner/Spinner.test.tsx +9 -0
- package/src/primitives/Spinner/Spinner.tsx +17 -0
- package/src/primitives/Spinner/index.ts +2 -0
- package/src/primitives/Switch/Switch.stories.tsx +14 -0
- package/src/primitives/Switch/Switch.test.tsx +9 -0
- package/src/primitives/Switch/Switch.tsx +31 -0
- package/src/primitives/Switch/index.ts +2 -0
- package/src/primitives/Table/Table.stories.tsx +14 -0
- package/src/primitives/Table/Table.test.tsx +9 -0
- package/src/primitives/Table/Table.tsx +121 -0
- package/src/primitives/Table/index.ts +2 -0
- package/src/primitives/Tabs/Tabs.stories.tsx +14 -0
- package/src/primitives/Tabs/Tabs.test.tsx +9 -0
- package/src/primitives/Tabs/Tabs.tsx +53 -0
- package/src/primitives/Tabs/index.ts +2 -0
- package/src/primitives/Textarea/Textarea.stories.tsx +14 -0
- package/src/primitives/Textarea/Textarea.test.tsx +9 -0
- package/src/primitives/Textarea/Textarea.tsx +22 -0
- package/src/primitives/Textarea/index.ts +2 -0
- package/src/primitives/Toggle/Toggle.stories.tsx +14 -0
- package/src/primitives/Toggle/Toggle.test.tsx +9 -0
- package/src/primitives/Toggle/Toggle.tsx +44 -0
- package/src/primitives/Toggle/index.ts +2 -0
- package/src/primitives/ToggleGroup/ToggleGroup.stories.tsx +14 -0
- package/src/primitives/ToggleGroup/ToggleGroup.test.tsx +9 -0
- package/src/primitives/ToggleGroup/ToggleGroup.tsx +62 -0
- package/src/primitives/ToggleGroup/index.ts +2 -0
- package/src/primitives/Tooltip/Tooltip.stories.tsx +14 -0
- package/src/primitives/Tooltip/Tooltip.test.tsx +9 -0
- package/src/primitives/Tooltip/Tooltip.tsx +29 -0
- package/src/primitives/Tooltip/index.ts +2 -0
- package/src/primitives/accordion.tsx +56 -0
- package/src/primitives/alert-dialog.tsx +140 -0
- package/src/primitives/alert.tsx +60 -0
- package/src/primitives/aspect-ratio.tsx +6 -0
- package/src/primitives/avatar.tsx +100 -0
- package/src/primitives/badge.tsx +28 -0
- package/src/primitives/button.tsx +43 -0
- package/src/primitives/calendar.tsx +214 -0
- package/src/primitives/card.tsx +48 -0
- package/src/primitives/carousel.tsx +261 -0
- package/src/primitives/chart.tsx +368 -0
- package/src/primitives/checkbox.tsx +26 -0
- package/src/primitives/code-block.tsx +173 -0
- package/src/primitives/collapsible.tsx +12 -0
- package/src/primitives/command.tsx +154 -0
- package/src/primitives/comparison.tsx +184 -0
- package/src/primitives/context-menu.tsx +101 -0
- package/src/primitives/dialog.tsx +88 -0
- package/src/primitives/drawer.tsx +117 -0
- package/src/primitives/dropdown-menu.tsx +111 -0
- package/src/primitives/form.tsx +179 -0
- package/src/primitives/hover-card.tsx +30 -0
- package/src/primitives/input-otp.tsx +70 -0
- package/src/primitives/input.tsx +23 -0
- package/src/primitives/label.tsx +27 -0
- package/src/primitives/logo-carousel.tsx +110 -0
- package/src/primitives/marquee.tsx +84 -0
- package/src/primitives/menubar.tsx +255 -0
- package/src/primitives/navigation-menu.tsx +129 -0
- package/src/primitives/pagination.tsx +118 -0
- package/src/primitives/popover.tsx +29 -0
- package/src/primitives/progress.tsx +20 -0
- package/src/primitives/qr-code.tsx +89 -0
- package/src/primitives/radio.tsx +33 -0
- package/src/primitives/rating.tsx +157 -0
- package/src/primitives/resizable.tsx +43 -0
- package/src/primitives/scroll-area.tsx +49 -0
- package/src/primitives/select.tsx +137 -0
- package/src/primitives/separator.tsx +21 -0
- package/src/primitives/sheet.tsx +87 -0
- package/src/primitives/skeleton.tsx +11 -0
- package/src/primitives/slider.tsx +20 -0
- package/src/primitives/sonner.tsx +27 -0
- package/src/primitives/spinner.tsx +17 -0
- package/src/primitives/switch.tsx +30 -0
- package/src/primitives/table.tsx +121 -0
- package/src/primitives/tabs.tsx +53 -0
- package/src/primitives/textarea.tsx +22 -0
- package/src/primitives/texture-card.tsx +52 -0
- package/src/primitives/toggle-group.tsx +62 -0
- package/src/primitives/toggle.tsx +44 -0
- package/src/primitives/tooltip.tsx +28 -0
- package/src/primitives/utils/cn.ts +1 -0
- package/src/provider/otf-ui-provider.tsx +66 -0
- package/src/styles.css +6 -0
- package/src/text/AnimatedNumber.tsx +157 -0
- package/src/text/Body.tsx +47 -0
- package/src/text/Caption.tsx +32 -0
- package/src/text/Code.tsx +43 -0
- package/src/text/GradientHeading.tsx +90 -0
- package/src/text/Heading.tsx +44 -0
- package/src/text/TextReveal.tsx +96 -0
- package/src/text/Typewriter.tsx +107 -0
- package/src/text/index.ts +8 -0
- package/src/theme/ColorSchemeSelect.tsx +74 -0
- package/src/theme/ThemeSwitch.tsx +116 -0
- package/src/theme/index.ts +2 -0
- package/src/themes/base.css +25 -0
- package/src/themes/glass.css +142 -0
- package/src/themes/linear.css +123 -0
- package/src/themes/midnight.css +131 -0
- package/src/themes/minimal.css +121 -0
- package/src/utils/cn.ts +6 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React, { createContext, useContext, useState } from 'react'
|
|
2
|
+
import { Button } from '../primitives/button'
|
|
3
|
+
import { cn } from '../utils/cn'
|
|
4
|
+
|
|
5
|
+
interface StepFormContextValue {
|
|
6
|
+
currentStep: number
|
|
7
|
+
totalSteps: number
|
|
8
|
+
steps: string[]
|
|
9
|
+
next: () => void
|
|
10
|
+
prev: () => void
|
|
11
|
+
isFirst: boolean
|
|
12
|
+
isLast: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const StepFormContext = createContext<StepFormContextValue | null>(null)
|
|
16
|
+
|
|
17
|
+
function useStepForm() {
|
|
18
|
+
const ctx = useContext(StepFormContext)
|
|
19
|
+
if (!ctx) throw new Error('useStepForm must be used within StepForm')
|
|
20
|
+
return ctx
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface StepFormProps {
|
|
24
|
+
steps: string[]
|
|
25
|
+
onSubmit: () => void
|
|
26
|
+
children: React.ReactNode
|
|
27
|
+
className?: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function StepForm({ steps, onSubmit, children, className }: StepFormProps) {
|
|
31
|
+
const [currentStep, setCurrentStep] = useState(0)
|
|
32
|
+
const totalSteps = steps.length
|
|
33
|
+
|
|
34
|
+
const ctx: StepFormContextValue = {
|
|
35
|
+
currentStep,
|
|
36
|
+
totalSteps,
|
|
37
|
+
steps,
|
|
38
|
+
next: () => setCurrentStep(s => Math.min(s + 1, totalSteps - 1)),
|
|
39
|
+
prev: () => setCurrentStep(s => Math.max(s - 1, 0)),
|
|
40
|
+
isFirst: currentStep === 0,
|
|
41
|
+
isLast: currentStep === totalSteps - 1,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const childArray = React.Children.toArray(children)
|
|
45
|
+
const currentChild = childArray[currentStep]
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<StepFormContext.Provider value={ctx}>
|
|
49
|
+
<div className={cn('flex flex-col gap-6', className)}>
|
|
50
|
+
<StepIndicator steps={steps} currentStep={currentStep} />
|
|
51
|
+
<div>{currentChild}</div>
|
|
52
|
+
<StepFormNavigation onSubmit={onSubmit} />
|
|
53
|
+
</div>
|
|
54
|
+
</StepFormContext.Provider>
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function StepIndicator({ steps, currentStep }: { steps: string[]; currentStep: number }) {
|
|
59
|
+
return (
|
|
60
|
+
<div className="flex items-center gap-2">
|
|
61
|
+
{steps.map((label, i) => (
|
|
62
|
+
<React.Fragment key={i}>
|
|
63
|
+
{i > 0 && <div className={cn('h-px flex-1 bg-[hsl(var(--border))]', i <= currentStep && 'bg-[hsl(var(--primary))]')} />}
|
|
64
|
+
<div className="flex flex-col items-center gap-1">
|
|
65
|
+
<div className={cn(
|
|
66
|
+
'flex h-7 w-7 items-center justify-center rounded-full text-xs font-medium border transition-colors',
|
|
67
|
+
i < currentStep && 'bg-[hsl(var(--primary))] border-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]',
|
|
68
|
+
i === currentStep && 'border-[hsl(var(--primary))] text-[hsl(var(--primary))]',
|
|
69
|
+
i > currentStep && 'border-[hsl(var(--border))] text-[hsl(var(--muted-foreground))]'
|
|
70
|
+
)}>{i + 1}</div>
|
|
71
|
+
<span className="hidden text-[10px] text-[hsl(var(--muted-foreground))] sm:block">{label}</span>
|
|
72
|
+
</div>
|
|
73
|
+
</React.Fragment>
|
|
74
|
+
))}
|
|
75
|
+
</div>
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface StepFormStepProps {
|
|
80
|
+
title: string
|
|
81
|
+
description?: string
|
|
82
|
+
children: React.ReactNode
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function StepFormStep({ title, description, children }: StepFormStepProps) {
|
|
86
|
+
return (
|
|
87
|
+
<div className="flex flex-col gap-4">
|
|
88
|
+
<div>
|
|
89
|
+
<h3 className="text-base font-semibold text-[hsl(var(--foreground))]">{title}</h3>
|
|
90
|
+
{description && <p className="text-sm text-[hsl(var(--muted-foreground))]">{description}</p>}
|
|
91
|
+
</div>
|
|
92
|
+
{children}
|
|
93
|
+
</div>
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface StepFormNavigationProps {
|
|
98
|
+
onSubmit?: () => void
|
|
99
|
+
submitLabel?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function StepFormNavigation({ onSubmit, submitLabel = 'Submit' }: StepFormNavigationProps) {
|
|
103
|
+
const { prev, next, isFirst, isLast } = useStepForm()
|
|
104
|
+
return (
|
|
105
|
+
<div className="flex justify-between">
|
|
106
|
+
<Button type="button" variant="outline" onClick={prev} disabled={isFirst}>Previous</Button>
|
|
107
|
+
{isLast
|
|
108
|
+
? <Button type="button" onClick={onSubmit}>{submitLabel}</Button>
|
|
109
|
+
: <Button type="button" onClick={next}>Next</Button>
|
|
110
|
+
}
|
|
111
|
+
</div>
|
|
112
|
+
)
|
|
113
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import React from 'react'
|
|
4
|
+
import { X } from 'lucide-react'
|
|
5
|
+
import { Command, CommandEmpty, CommandGroup, CommandItem, CommandList } from '../primitives/command'
|
|
6
|
+
import { Badge } from '../primitives/badge'
|
|
7
|
+
import { cn } from '../utils/cn'
|
|
8
|
+
|
|
9
|
+
export type TagsProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
10
|
+
/** Controlled value. */
|
|
11
|
+
value?: string[]
|
|
12
|
+
/** Uncontrolled initial value. */
|
|
13
|
+
defaultValue?: string[]
|
|
14
|
+
/** Fires whenever the tag list changes. */
|
|
15
|
+
onValueChange?: (tags: string[]) => void
|
|
16
|
+
/** Optional autocomplete pool. */
|
|
17
|
+
suggestions?: string[]
|
|
18
|
+
placeholder?: string
|
|
19
|
+
/** Cap the total tags. When reached, the input is disabled. */
|
|
20
|
+
maxTags?: number
|
|
21
|
+
/** Return false or an error string to reject a tag. */
|
|
22
|
+
validate?: (tag: string) => boolean | string
|
|
23
|
+
/** Allow duplicate tags. Default false. */
|
|
24
|
+
allowDuplicates?: boolean
|
|
25
|
+
disabled?: boolean
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Multi-select tag input with optional autocomplete.
|
|
30
|
+
* Enter / Comma / Tab commits the current input, Backspace on empty input removes the last tag.
|
|
31
|
+
*/
|
|
32
|
+
export const Tags = React.forwardRef<HTMLDivElement, TagsProps>(
|
|
33
|
+
(
|
|
34
|
+
{
|
|
35
|
+
value: valueProp,
|
|
36
|
+
defaultValue,
|
|
37
|
+
onValueChange,
|
|
38
|
+
suggestions,
|
|
39
|
+
placeholder = 'Add a tag…',
|
|
40
|
+
maxTags,
|
|
41
|
+
validate,
|
|
42
|
+
allowDuplicates = false,
|
|
43
|
+
disabled = false,
|
|
44
|
+
className,
|
|
45
|
+
onClick,
|
|
46
|
+
...props
|
|
47
|
+
},
|
|
48
|
+
ref,
|
|
49
|
+
) => {
|
|
50
|
+
const isControlled = valueProp !== undefined
|
|
51
|
+
const [internal, setInternal] = React.useState<string[]>(defaultValue ?? [])
|
|
52
|
+
const tags = isControlled ? (valueProp as string[]) : internal
|
|
53
|
+
|
|
54
|
+
const [input, setInput] = React.useState('')
|
|
55
|
+
const [error, setError] = React.useState<string | null>(null)
|
|
56
|
+
const [focused, setFocused] = React.useState(false)
|
|
57
|
+
const [activeIndex, setActiveIndex] = React.useState(0)
|
|
58
|
+
|
|
59
|
+
const inputRef = React.useRef<HTMLInputElement>(null)
|
|
60
|
+
const containerRef = React.useRef<HTMLDivElement>(null)
|
|
61
|
+
|
|
62
|
+
React.useImperativeHandle(ref, () => containerRef.current as HTMLDivElement)
|
|
63
|
+
|
|
64
|
+
const atMax = maxTags !== undefined && tags.length >= maxTags
|
|
65
|
+
const inputDisabled = disabled || atMax
|
|
66
|
+
|
|
67
|
+
const commit = React.useCallback(
|
|
68
|
+
(next: string[]) => {
|
|
69
|
+
if (!isControlled) setInternal(next)
|
|
70
|
+
onValueChange?.(next)
|
|
71
|
+
},
|
|
72
|
+
[isControlled, onValueChange],
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
const addTag = React.useCallback(
|
|
76
|
+
(raw: string) => {
|
|
77
|
+
const tag = raw.trim()
|
|
78
|
+
if (!tag) return false
|
|
79
|
+
if (atMax) return false
|
|
80
|
+
if (!allowDuplicates && tags.includes(tag)) {
|
|
81
|
+
setError('Tag already added')
|
|
82
|
+
return false
|
|
83
|
+
}
|
|
84
|
+
if (validate) {
|
|
85
|
+
const result = validate(tag)
|
|
86
|
+
if (result === false) {
|
|
87
|
+
setError('Invalid tag')
|
|
88
|
+
return false
|
|
89
|
+
}
|
|
90
|
+
if (typeof result === 'string') {
|
|
91
|
+
setError(result)
|
|
92
|
+
return false
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
commit([...tags, tag])
|
|
96
|
+
setError(null)
|
|
97
|
+
return true
|
|
98
|
+
},
|
|
99
|
+
[tags, allowDuplicates, validate, atMax, commit],
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
const removeTag = React.useCallback(
|
|
103
|
+
(index: number) => {
|
|
104
|
+
commit(tags.filter((_, i) => i !== index))
|
|
105
|
+
setError(null)
|
|
106
|
+
},
|
|
107
|
+
[tags, commit],
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
// Suggestion filtering
|
|
111
|
+
const filteredSuggestions = React.useMemo(() => {
|
|
112
|
+
if (!suggestions || !input.trim()) return []
|
|
113
|
+
const q = input.trim().toLowerCase()
|
|
114
|
+
return suggestions
|
|
115
|
+
.filter((s) => s.toLowerCase().includes(q))
|
|
116
|
+
.filter((s) => allowDuplicates || !tags.includes(s))
|
|
117
|
+
.slice(0, 8)
|
|
118
|
+
}, [suggestions, input, tags, allowDuplicates])
|
|
119
|
+
|
|
120
|
+
const showPopover = focused && !inputDisabled && filteredSuggestions.length > 0
|
|
121
|
+
|
|
122
|
+
React.useEffect(() => {
|
|
123
|
+
if (activeIndex >= filteredSuggestions.length) setActiveIndex(0)
|
|
124
|
+
}, [filteredSuggestions.length, activeIndex])
|
|
125
|
+
|
|
126
|
+
const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
|
|
127
|
+
if (e.key === 'Enter' || e.key === ',' || e.key === 'Tab') {
|
|
128
|
+
if (showPopover && e.key !== 'Tab') {
|
|
129
|
+
e.preventDefault()
|
|
130
|
+
const picked = filteredSuggestions[activeIndex]
|
|
131
|
+
if (picked && addTag(picked)) setInput('')
|
|
132
|
+
return
|
|
133
|
+
}
|
|
134
|
+
if (input.trim()) {
|
|
135
|
+
e.preventDefault()
|
|
136
|
+
if (addTag(input)) setInput('')
|
|
137
|
+
}
|
|
138
|
+
} else if (e.key === 'Backspace' && !input && tags.length > 0) {
|
|
139
|
+
e.preventDefault()
|
|
140
|
+
removeTag(tags.length - 1)
|
|
141
|
+
} else if (e.key === 'ArrowDown' && showPopover) {
|
|
142
|
+
e.preventDefault()
|
|
143
|
+
setActiveIndex((i) => (i + 1) % filteredSuggestions.length)
|
|
144
|
+
} else if (e.key === 'ArrowUp' && showPopover) {
|
|
145
|
+
e.preventDefault()
|
|
146
|
+
setActiveIndex(
|
|
147
|
+
(i) => (i - 1 + filteredSuggestions.length) % filteredSuggestions.length,
|
|
148
|
+
)
|
|
149
|
+
} else if (e.key === 'Escape' && showPopover) {
|
|
150
|
+
e.preventDefault()
|
|
151
|
+
setFocused(false)
|
|
152
|
+
inputRef.current?.blur()
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const handleContainerClick: React.MouseEventHandler<HTMLDivElement> = (e) => {
|
|
157
|
+
onClick?.(e)
|
|
158
|
+
if (!disabled) inputRef.current?.focus()
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return (
|
|
162
|
+
<div className={cn('relative w-full', className)}>
|
|
163
|
+
<div
|
|
164
|
+
ref={containerRef}
|
|
165
|
+
onClick={handleContainerClick}
|
|
166
|
+
data-slot="tags"
|
|
167
|
+
data-disabled={disabled || undefined}
|
|
168
|
+
className={cn(
|
|
169
|
+
'flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border border-input bg-transparent px-2 py-1.5 text-sm shadow-sm transition-colors',
|
|
170
|
+
'focus-within:outline-none focus-within:ring-2 focus-within:ring-ring',
|
|
171
|
+
disabled && 'cursor-not-allowed opacity-50',
|
|
172
|
+
error && 'border-destructive focus-within:ring-destructive',
|
|
173
|
+
)}
|
|
174
|
+
{...props}
|
|
175
|
+
>
|
|
176
|
+
{tags.map((tag, i) => (
|
|
177
|
+
<Badge
|
|
178
|
+
key={`${tag}-${i}`}
|
|
179
|
+
variant="secondary"
|
|
180
|
+
className="gap-1 px-2 py-0.5 font-medium"
|
|
181
|
+
>
|
|
182
|
+
<span className="leading-none">{tag}</span>
|
|
183
|
+
{!disabled && (
|
|
184
|
+
<button
|
|
185
|
+
type="button"
|
|
186
|
+
tabIndex={-1}
|
|
187
|
+
onClick={(e) => {
|
|
188
|
+
e.stopPropagation()
|
|
189
|
+
removeTag(i)
|
|
190
|
+
}}
|
|
191
|
+
className={cn(
|
|
192
|
+
'inline-flex h-3.5 w-3.5 items-center justify-center rounded-full text-muted-foreground transition-colors',
|
|
193
|
+
'hover:bg-foreground/10 hover:text-foreground',
|
|
194
|
+
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',
|
|
195
|
+
)}
|
|
196
|
+
aria-label={`Remove ${tag}`}
|
|
197
|
+
>
|
|
198
|
+
<X className="h-3 w-3" />
|
|
199
|
+
</button>
|
|
200
|
+
)}
|
|
201
|
+
</Badge>
|
|
202
|
+
))}
|
|
203
|
+
<input
|
|
204
|
+
ref={inputRef}
|
|
205
|
+
type="text"
|
|
206
|
+
value={input}
|
|
207
|
+
disabled={inputDisabled}
|
|
208
|
+
placeholder={tags.length === 0 ? placeholder : undefined}
|
|
209
|
+
onChange={(e) => {
|
|
210
|
+
setInput(e.target.value)
|
|
211
|
+
if (error) setError(null)
|
|
212
|
+
}}
|
|
213
|
+
onKeyDown={handleKeyDown}
|
|
214
|
+
onFocus={() => setFocused(true)}
|
|
215
|
+
onBlur={() => {
|
|
216
|
+
// Delay to allow click on suggestion
|
|
217
|
+
window.setTimeout(() => setFocused(false), 120)
|
|
218
|
+
}}
|
|
219
|
+
className={cn(
|
|
220
|
+
'flex-1 min-w-[80px] bg-transparent py-0.5 text-sm outline-none',
|
|
221
|
+
'placeholder:text-muted-foreground',
|
|
222
|
+
'disabled:cursor-not-allowed',
|
|
223
|
+
)}
|
|
224
|
+
aria-label="Add tag"
|
|
225
|
+
aria-invalid={error ? true : undefined}
|
|
226
|
+
/>
|
|
227
|
+
</div>
|
|
228
|
+
|
|
229
|
+
{error && (
|
|
230
|
+
<p className="mt-1 text-xs text-destructive" role="alert">
|
|
231
|
+
{error}
|
|
232
|
+
</p>
|
|
233
|
+
)}
|
|
234
|
+
|
|
235
|
+
{showPopover && (
|
|
236
|
+
<div
|
|
237
|
+
className={cn(
|
|
238
|
+
'absolute left-0 right-0 top-full z-50 mt-1 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md',
|
|
239
|
+
)}
|
|
240
|
+
>
|
|
241
|
+
<Command shouldFilter={false}>
|
|
242
|
+
<CommandList className="max-h-56">
|
|
243
|
+
<CommandEmpty>No matches.</CommandEmpty>
|
|
244
|
+
<CommandGroup>
|
|
245
|
+
{filteredSuggestions.map((s, i) => (
|
|
246
|
+
<CommandItem
|
|
247
|
+
key={s}
|
|
248
|
+
value={s}
|
|
249
|
+
data-selected={i === activeIndex || undefined}
|
|
250
|
+
onMouseEnter={() => setActiveIndex(i)}
|
|
251
|
+
onSelect={() => {
|
|
252
|
+
if (addTag(s)) {
|
|
253
|
+
setInput('')
|
|
254
|
+
inputRef.current?.focus()
|
|
255
|
+
}
|
|
256
|
+
}}
|
|
257
|
+
>
|
|
258
|
+
{s}
|
|
259
|
+
</CommandItem>
|
|
260
|
+
))}
|
|
261
|
+
</CommandGroup>
|
|
262
|
+
</CommandList>
|
|
263
|
+
</Command>
|
|
264
|
+
</div>
|
|
265
|
+
)}
|
|
266
|
+
</div>
|
|
267
|
+
)
|
|
268
|
+
},
|
|
269
|
+
)
|
|
270
|
+
Tags.displayName = 'Tags'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn } from '../../utils/cn'
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useRef, useState } from 'react'
|
|
4
|
+
import { cn } from '../utils/cn'
|
|
5
|
+
|
|
6
|
+
export interface ScrollHeaderProps {
|
|
7
|
+
/** Title shown large when at top, shrinks on scroll */
|
|
8
|
+
title: React.ReactNode
|
|
9
|
+
/** Optional subtitle / description */
|
|
10
|
+
subtitle?: React.ReactNode
|
|
11
|
+
/** Actions slot (right side) — always visible */
|
|
12
|
+
actions?: React.ReactNode
|
|
13
|
+
/** Left slot (e.g. back button) */
|
|
14
|
+
left?: React.ReactNode
|
|
15
|
+
/**
|
|
16
|
+
* Scroll container to watch — defaults to window.
|
|
17
|
+
* Pass a ref to an overflow-auto div for in-page scroll.
|
|
18
|
+
*/
|
|
19
|
+
scrollRef?: React.RefObject<HTMLElement>
|
|
20
|
+
/** Scroll offset that triggers the shrink (default 40px) */
|
|
21
|
+
threshold?: number
|
|
22
|
+
/** Whether to show a bottom border when scrolled */
|
|
23
|
+
bordered?: boolean
|
|
24
|
+
/** Sticky positioning (default true) */
|
|
25
|
+
sticky?: boolean
|
|
26
|
+
className?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* ScrollHeader — title shrinks + header gains backdrop on scroll.
|
|
31
|
+
*/
|
|
32
|
+
export const ScrollHeader = React.forwardRef<HTMLDivElement, ScrollHeaderProps>(
|
|
33
|
+
(
|
|
34
|
+
{
|
|
35
|
+
title,
|
|
36
|
+
subtitle,
|
|
37
|
+
actions,
|
|
38
|
+
left,
|
|
39
|
+
scrollRef,
|
|
40
|
+
threshold = 40,
|
|
41
|
+
bordered = true,
|
|
42
|
+
sticky = true,
|
|
43
|
+
className,
|
|
44
|
+
},
|
|
45
|
+
ref
|
|
46
|
+
) => {
|
|
47
|
+
const [scrolled, setScrolled] = useState(false)
|
|
48
|
+
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
const container = scrollRef?.current ?? window
|
|
51
|
+
|
|
52
|
+
const handleScroll = () => {
|
|
53
|
+
const scrollY =
|
|
54
|
+
container === window
|
|
55
|
+
? window.scrollY
|
|
56
|
+
: (container as HTMLElement).scrollTop
|
|
57
|
+
setScrolled(scrollY > threshold)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
container.addEventListener('scroll', handleScroll, { passive: true })
|
|
61
|
+
return () => container.removeEventListener('scroll', handleScroll)
|
|
62
|
+
}, [scrollRef, threshold])
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<div
|
|
66
|
+
ref={ref}
|
|
67
|
+
data-slot="scroll-header"
|
|
68
|
+
data-scrolled={scrolled ? 'true' : 'false'}
|
|
69
|
+
className={cn(
|
|
70
|
+
'z-20 w-full',
|
|
71
|
+
sticky && 'sticky top-0',
|
|
72
|
+
'transition-all duration-200',
|
|
73
|
+
scrolled && 'bg-background/80 backdrop-blur-md',
|
|
74
|
+
bordered && scrolled && 'border-b border-border',
|
|
75
|
+
className
|
|
76
|
+
)}
|
|
77
|
+
>
|
|
78
|
+
<div
|
|
79
|
+
className={cn(
|
|
80
|
+
'flex items-center gap-3 px-4 transition-all duration-200',
|
|
81
|
+
scrolled ? 'h-12' : 'h-16'
|
|
82
|
+
)}
|
|
83
|
+
>
|
|
84
|
+
{left && <div className="shrink-0">{left}</div>}
|
|
85
|
+
|
|
86
|
+
<div className="flex-1 min-w-0">
|
|
87
|
+
<div
|
|
88
|
+
className={cn(
|
|
89
|
+
'font-semibold text-foreground truncate transition-all duration-200 leading-tight',
|
|
90
|
+
scrolled ? 'text-sm' : 'text-lg'
|
|
91
|
+
)}
|
|
92
|
+
>
|
|
93
|
+
{title}
|
|
94
|
+
</div>
|
|
95
|
+
{subtitle && !scrolled && (
|
|
96
|
+
<div className="text-xs text-muted-foreground truncate mt-0.5">
|
|
97
|
+
{subtitle}
|
|
98
|
+
</div>
|
|
99
|
+
)}
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
{actions && (
|
|
103
|
+
<div className="flex items-center gap-2 shrink-0">{actions}</div>
|
|
104
|
+
)}
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
ScrollHeader.displayName = 'ScrollHeader'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ScrollHeader'
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// @otfdashkit/ui — barrel exports
|
|
2
|
+
|
|
3
|
+
export { cn } from './utils/cn'
|
|
4
|
+
|
|
5
|
+
// primitives
|
|
6
|
+
export * from './primitives/accordion'
|
|
7
|
+
export * from './primitives/alert-dialog'
|
|
8
|
+
export * from './primitives/alert'
|
|
9
|
+
export * from './primitives/aspect-ratio'
|
|
10
|
+
export * from './primitives/avatar'
|
|
11
|
+
export * from './primitives/badge'
|
|
12
|
+
export * from './primitives/button'
|
|
13
|
+
export * from './primitives/calendar'
|
|
14
|
+
export * from './primitives/card'
|
|
15
|
+
export * from './primitives/carousel'
|
|
16
|
+
export * from './primitives/chart'
|
|
17
|
+
export * from './primitives/checkbox'
|
|
18
|
+
export * from './primitives/code-block'
|
|
19
|
+
export * from './primitives/collapsible'
|
|
20
|
+
export * from './primitives/command'
|
|
21
|
+
export * from './primitives/comparison'
|
|
22
|
+
export * from './primitives/context-menu'
|
|
23
|
+
export * from './primitives/dialog'
|
|
24
|
+
export * from './primitives/drawer'
|
|
25
|
+
export * from './primitives/dropdown-menu'
|
|
26
|
+
export * from './primitives/form'
|
|
27
|
+
export * from './primitives/hover-card'
|
|
28
|
+
export * from './primitives/input-otp'
|
|
29
|
+
export * from './primitives/input'
|
|
30
|
+
export * from './primitives/label'
|
|
31
|
+
export * from './primitives/logo-carousel'
|
|
32
|
+
export * from './primitives/marquee'
|
|
33
|
+
export * from './primitives/menubar'
|
|
34
|
+
export * from './primitives/navigation-menu'
|
|
35
|
+
export * from './primitives/pagination'
|
|
36
|
+
export * from './primitives/popover'
|
|
37
|
+
export * from './primitives/progress'
|
|
38
|
+
export * from './primitives/qr-code'
|
|
39
|
+
export * from './primitives/radio'
|
|
40
|
+
export * from './primitives/rating'
|
|
41
|
+
export * from './primitives/resizable'
|
|
42
|
+
export * from './primitives/scroll-area'
|
|
43
|
+
export * from './primitives/select'
|
|
44
|
+
export * from './primitives/separator'
|
|
45
|
+
export * from './primitives/sheet'
|
|
46
|
+
export * from './primitives/skeleton'
|
|
47
|
+
export * from './primitives/slider'
|
|
48
|
+
// export * from './primitives/sonner' // conflicts with feedback/Toaster
|
|
49
|
+
export * from './primitives/spinner'
|
|
50
|
+
export * from './primitives/switch'
|
|
51
|
+
export * from './primitives/table'
|
|
52
|
+
export * from './primitives/tabs'
|
|
53
|
+
export * from './primitives/textarea'
|
|
54
|
+
export * from './primitives/texture-card'
|
|
55
|
+
export * from './primitives/toggle-group'
|
|
56
|
+
export * from './primitives/toggle'
|
|
57
|
+
export * from './primitives/tooltip'
|
|
58
|
+
|
|
59
|
+
// components
|
|
60
|
+
export * from './components/banner'
|
|
61
|
+
export * from './components/breadcrumb'
|
|
62
|
+
export * from './components/command-item'
|
|
63
|
+
export * from './components/data-grid'
|
|
64
|
+
export * from './components/data-table'
|
|
65
|
+
export * from './components/empty-state'
|
|
66
|
+
export * from './components/hotkeys'
|
|
67
|
+
export * from './components/icon-badge'
|
|
68
|
+
export * from './components/loading-overlay'
|
|
69
|
+
export * from './components/persona'
|
|
70
|
+
export * from './components/property-list'
|
|
71
|
+
export * from './components/stat'
|
|
72
|
+
export * from './components/stepper'
|
|
73
|
+
export * from './components/structured-list'
|
|
74
|
+
export * from './components/timeline'
|
|
75
|
+
// export * from './components/toaster' // conflicts with feedback/Toaster
|
|
76
|
+
|
|
77
|
+
// blocks
|
|
78
|
+
export * from './blocks/chat-detail'
|
|
79
|
+
export * from './blocks/feedback-modal'
|
|
80
|
+
export * from './blocks/file-cards'
|
|
81
|
+
export * from './blocks/files-list'
|
|
82
|
+
export * from './blocks/integration-card'
|
|
83
|
+
export * from './blocks/invite-modal'
|
|
84
|
+
export * from './blocks/manage-tags-modal'
|
|
85
|
+
export * from './blocks/messages-card'
|
|
86
|
+
export * from './blocks/metric-card'
|
|
87
|
+
export * from './blocks/bar-list'
|
|
88
|
+
export * from './blocks/activity-heatmap'
|
|
89
|
+
export * from './blocks/FloatingActionButton'
|
|
90
|
+
export * from './blocks/notification-settings'
|
|
91
|
+
export * from './blocks/organization-menu'
|
|
92
|
+
export * from './blocks/roles-menu'
|
|
93
|
+
export * from './blocks/select-users-modal'
|
|
94
|
+
export * from './blocks/sidebar-layout-dashboard'
|
|
95
|
+
export * from './blocks/sidebar-layout-groups'
|
|
96
|
+
export * from './blocks/sidebar-layout-minimal'
|
|
97
|
+
export * from './blocks/sidebar-layout-search'
|
|
98
|
+
export * from './blocks/sidebar-layout-user'
|
|
99
|
+
export * from './blocks/sortable-task-list'
|
|
100
|
+
export * from './blocks/stacked-layout-branded'
|
|
101
|
+
export * from './blocks/stacked-layout-tabs'
|
|
102
|
+
export * from './blocks/task-card'
|
|
103
|
+
export * from './blocks/user-menu'
|
|
104
|
+
export * from './blocks/workspace-members'
|
|
105
|
+
|
|
106
|
+
// advanced
|
|
107
|
+
export * from './advanced/bulk-actions'
|
|
108
|
+
export * from './advanced/command-bar'
|
|
109
|
+
export * from './advanced/filters'
|
|
110
|
+
export * from './advanced/gantt'
|
|
111
|
+
export * from './advanced/kanban'
|
|
112
|
+
export * from './advanced/rich-editor'
|
|
113
|
+
export * from './advanced/toggle-button'
|
|
114
|
+
|
|
115
|
+
// charts
|
|
116
|
+
export * from './charts/area-chart'
|
|
117
|
+
export * from './charts/bar-chart'
|
|
118
|
+
export * from './charts/line-chart'
|
|
119
|
+
export * from './charts/sparkline'
|
|
120
|
+
export * from './charts/heatmap'
|
|
121
|
+
|
|
122
|
+
// engagement
|
|
123
|
+
export * from './engagement/beacon'
|
|
124
|
+
export * from './engagement/tour'
|
|
125
|
+
export * from './engagement/checklist'
|
|
126
|
+
export * from './engagement/intro-disclosure'
|
|
127
|
+
|
|
128
|
+
// forms
|
|
129
|
+
export * from './forms/array-field'
|
|
130
|
+
export * from './forms/auto-form'
|
|
131
|
+
export * from './forms/color-picker'
|
|
132
|
+
export * from './forms/date-picker'
|
|
133
|
+
export * from './forms/field'
|
|
134
|
+
export * from './forms/file-upload'
|
|
135
|
+
export * from './forms/form'
|
|
136
|
+
export * from './forms/object-field'
|
|
137
|
+
export * from './forms/password-input'
|
|
138
|
+
export * from './forms/search-input'
|
|
139
|
+
export * from './forms/step-form'
|
|
140
|
+
export * from './forms/tags'
|
|
141
|
+
|
|
142
|
+
// layouts
|
|
143
|
+
export * from './layouts/app-shell'
|
|
144
|
+
export * from './layouts/container'
|
|
145
|
+
export * from './layouts/navbar'
|
|
146
|
+
export * from './layouts/page'
|
|
147
|
+
export * from './layouts/resize-box'
|
|
148
|
+
export * from './layouts/sidebar'
|
|
149
|
+
export * from './layouts/split-page'
|
|
150
|
+
export * from './layouts/stack'
|
|
151
|
+
|
|
152
|
+
// export * from './layout' // COLLISION: PageHeader in layout/PageLayout.tsx shadows layouts/page.tsx
|
|
153
|
+
export { PageLayout } from './layout/PageLayout'
|
|
154
|
+
export type { PageHeaderProps } from './layout/PageLayout'
|
|
155
|
+
export { PageContainer, PageMain } from './layout/PageContainer'
|
|
156
|
+
export * from './nav'
|
|
157
|
+
export * from './feedback'
|
|
158
|
+
export * from './text'
|
|
159
|
+
export * from './backgrounds'
|
|
160
|
+
export * from './headers'
|
|
161
|
+
export * from './motion'
|
|
162
|
+
// export * from './data' // conflicts with components/data-grid (DataGrid)
|
|
163
|
+
export * from './data/DataList'
|
|
164
|
+
export * from './data/EventCalendar'
|
|
165
|
+
export * from './data/GridList'
|
|
166
|
+
export * from './data/ImageCrop'
|
|
167
|
+
export * from './data/Tree'
|
|
168
|
+
export * from './data/VideoPlayer'
|
|
169
|
+
export * from './forms/combobox'
|
|
170
|
+
export * from './theme'
|
|
171
|
+
export * from './app-shell'
|