@ciridae/ui 0.3.3 → 0.3.6
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/README.md +1 -1
- package/dist/assets/ciridae/brand-background-dark.webp +0 -0
- package/dist/assets/ciridae/brand-background-light.webp +0 -0
- package/dist/assets/ciridae/ciridae-black.svg +17 -0
- package/dist/assets/ciridae/ciridae-brand-assets.d.ts +25 -0
- package/dist/assets/ciridae/ciridae-brand-assets.js +25 -0
- package/dist/assets/ciridae/ciridae-icon-black.png +0 -0
- package/dist/assets/ciridae/ciridae-icon-white.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-white.png +0 -0
- package/dist/assets/ciridae/ciridae-white.svg +17 -0
- package/dist/assets/ciridae/ciridae-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-wordmark-white.png +0 -0
- package/dist/assets/ciridae/favicon.ico +0 -0
- package/dist/assets/ciridae/logo-white.png +0 -0
- package/dist/assets/ciridae/sign-in-screenshot.png +0 -0
- package/dist/ciridae.css +491 -0
- package/dist/ciridae.css.d.ts +2 -0
- package/dist/components/blocks/admin-users-table.d.ts +22 -0
- package/dist/components/blocks/admin-users-table.js +115 -0
- package/dist/components/blocks/comment-composer.d.ts +16 -0
- package/dist/components/blocks/comment-composer.js +113 -0
- package/dist/components/blocks/comment-item.d.ts +8 -0
- package/dist/components/blocks/comment-item.js +45 -0
- package/dist/components/blocks/comment-thread.d.ts +18 -0
- package/dist/components/blocks/comment-thread.js +30 -0
- package/dist/components/blocks/comment-types.d.ts +18 -0
- package/dist/components/blocks/comment-types.js +11 -0
- package/dist/components/blocks/feedback-center-comments.d.ts +12 -0
- package/dist/components/blocks/feedback-center-comments.js +11 -0
- package/dist/components/blocks/feedback-center-sheet-parts.d.ts +34 -0
- package/dist/components/blocks/feedback-center-sheet-parts.js +44 -0
- package/dist/components/blocks/feedback-center-sheet.d.ts +19 -0
- package/dist/components/blocks/feedback-center-sheet.js +46 -0
- package/dist/components/blocks/feedback-composer-parts.d.ts +16 -0
- package/dist/components/blocks/feedback-composer-parts.js +43 -0
- package/dist/components/blocks/feedback-composer-types.d.ts +11 -0
- package/dist/components/blocks/feedback-composer-types.js +1 -0
- package/dist/components/blocks/feedback-composer.d.ts +17 -0
- package/dist/components/blocks/feedback-composer.js +112 -0
- package/dist/components/blocks/feedback-date-format.d.ts +5 -0
- package/dist/components/blocks/feedback-date-format.js +11 -0
- package/dist/components/blocks/feedback-detail-sheet.d.ts +9 -0
- package/dist/components/blocks/feedback-detail-sheet.js +41 -0
- package/dist/components/blocks/feedback-metrics.d.ts +6 -0
- package/dist/components/blocks/feedback-metrics.js +15 -0
- package/dist/components/blocks/feedback-sheet.d.ts +8 -0
- package/dist/components/blocks/feedback-sheet.js +16 -0
- package/dist/components/blocks/feedback-status-badge.d.ts +6 -0
- package/dist/components/blocks/feedback-status-badge.js +14 -0
- package/dist/components/blocks/feedback-table-row.d.ts +6 -0
- package/dist/components/blocks/feedback-table-row.js +37 -0
- package/dist/components/blocks/feedback-table-sort.d.ts +11 -0
- package/dist/components/blocks/feedback-table-sort.js +81 -0
- package/dist/components/blocks/feedback-table.d.ts +16 -0
- package/dist/components/blocks/feedback-table.js +45 -0
- package/dist/components/blocks/feedback-tracking-types.d.ts +78 -0
- package/dist/components/blocks/feedback-tracking-types.js +36 -0
- package/dist/components/blocks/feedback-type-badge.d.ts +6 -0
- package/dist/components/blocks/feedback-type-badge.js +12 -0
- package/dist/components/blocks/feedback-user-detail.d.ts +10 -0
- package/dist/components/blocks/feedback-user-detail.js +57 -0
- package/dist/components/blocks/feedback-user-list.d.ts +9 -0
- package/dist/components/blocks/feedback-user-list.js +33 -0
- package/dist/components/blocks/invite-user-sheet.d.ts +20 -0
- package/dist/components/blocks/invite-user-sheet.js +72 -0
- package/dist/components/blocks/kanban-board-parts.d.ts +26 -0
- package/dist/components/blocks/kanban-board-parts.js +85 -0
- package/dist/components/blocks/kanban-board-utils.d.ts +42 -0
- package/dist/components/blocks/kanban-board-utils.js +115 -0
- package/dist/components/blocks/kanban-board.d.ts +16 -0
- package/dist/components/blocks/kanban-board.js +36 -0
- package/dist/components/blocks/kanban-card.d.ts +10 -0
- package/dist/components/blocks/kanban-card.js +34 -0
- package/dist/components/blocks/kanban-column.d.ts +17 -0
- package/dist/components/blocks/kanban-column.js +34 -0
- package/dist/components/blocks/kanban-detail-sheet.d.ts +17 -0
- package/dist/components/blocks/kanban-detail-sheet.js +34 -0
- package/dist/components/blocks/kanban-types.d.ts +24 -0
- package/dist/components/blocks/kanban-types.js +1 -0
- package/dist/components/blocks/timestamp-format.d.ts +8 -0
- package/dist/components/blocks/timestamp-format.js +66 -0
- package/dist/components/pages/admin-users-page.d.ts +11 -0
- package/dist/components/pages/admin-users-page.js +30 -0
- package/dist/components/pages/feedback-stakeholder-page-parts.d.ts +18 -0
- package/dist/components/pages/feedback-stakeholder-page-parts.js +36 -0
- package/dist/components/pages/feedback-stakeholder-page.d.ts +9 -0
- package/dist/components/pages/feedback-stakeholder-page.js +66 -0
- package/dist/components/pages/kanban-page.d.ts +13 -0
- package/dist/components/pages/kanban-page.js +68 -0
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/app-shell-page.d.ts +1 -1
- package/dist/components/ui/app-shell-page.js +3 -3
- package/dist/components/ui/app-shell.d.ts +2 -2
- package/dist/components/ui/app-shell.js +3 -3
- package/dist/components/ui/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge-variants.d.ts +1 -1
- package/dist/components/ui/badge-variants.js +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button-group-variants.d.ts +1 -1
- package/dist/components/ui/button-group.d.ts +5 -5
- package/dist/components/ui/button-group.js +3 -3
- package/dist/components/ui/button-variants.d.ts +1 -1
- package/dist/components/ui/button-variants.js +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.js +3 -3
- package/dist/components/ui/calendar.d.ts +3 -2
- package/dist/components/ui/calendar.js +4 -4
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/carousel.d.ts +1 -1
- package/dist/components/ui/carousel.js +2 -2
- package/dist/components/ui/chart-panel.js +1 -1
- package/dist/components/ui/chart-tooltip.js +2 -2
- package/dist/components/ui/chart.d.ts +2 -2
- package/dist/components/ui/chart.js +3 -3
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/ciridae-ui-provider.d.ts +2 -2
- package/dist/components/ui/ciridae-ui-provider.js +3 -3
- package/dist/components/ui/collapsible.d.ts +3 -3
- package/dist/components/ui/combobox.js +3 -3
- package/dist/components/ui/command.d.ts +1 -1
- package/dist/components/ui/command.js +2 -2
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/data-table-controls.js +3 -3
- package/dist/components/ui/data-table-grid.js +3 -3
- package/dist/components/ui/data-table-pagination.d.ts +1 -1
- package/dist/components/ui/data-table-pagination.js +2 -2
- package/dist/components/ui/data-table-tanstack.js +2 -2
- package/dist/components/ui/data-table.d.ts +2 -2
- package/dist/components/ui/data-table.js +4 -4
- package/dist/components/ui/dialog.d.ts +2 -1
- package/dist/components/ui/dialog.js +4 -4
- package/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/empty.d.ts +7 -7
- package/dist/components/ui/empty.js +1 -1
- package/dist/components/ui/expandable-data-table.d.ts +1 -1
- package/dist/components/ui/expandable-data-table.js +4 -4
- package/dist/components/ui/field.d.ts +12 -12
- package/dist/components/ui/field.js +3 -3
- package/dist/components/ui/file-upload-field-parts.js +3 -3
- package/dist/components/ui/file-upload-field.js +1 -1
- package/dist/components/ui/form-context.d.ts +1 -1
- package/dist/components/ui/form.d.ts +1 -1
- package/dist/components/ui/form.js +3 -3
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/input-group.d.ts +3 -3
- package/dist/components/ui/input-group.js +4 -4
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.d.ts +3 -3
- package/dist/components/ui/item.js +2 -2
- package/dist/components/ui/kbd.d.ts +2 -2
- package/dist/components/ui/kbd.js +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/loading-state.d.ts +1 -1
- package/dist/components/ui/loading-state.js +4 -4
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/metrics-strip.js +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu-variants.d.ts +1 -1
- package/dist/components/ui/navigation-menu.js +2 -2
- package/dist/components/ui/page-header.d.ts +16 -2
- package/dist/components/ui/page-header.js +22 -4
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/pagination.js +4 -4
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/property-list.js +1 -1
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/registry-docs-api.d.ts +1 -1
- package/dist/components/ui/registry-docs-api.js +1 -1
- package/dist/components/ui/registry-docs-code.js +2 -2
- package/dist/components/ui/registry-docs-showcase.js +2 -2
- package/dist/components/ui/registry-docs.d.ts +1 -1
- package/dist/components/ui/registry-docs.js +3 -3
- package/dist/components/ui/resizable.d.ts +10 -3
- package/dist/components/ui/resizable.js +4 -4
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sidebar/group.js +1 -1
- package/dist/components/ui/sidebar/layout.d.ts +2 -2
- package/dist/components/ui/sidebar/layout.js +5 -5
- package/dist/components/ui/sidebar/menu.d.ts +2 -2
- package/dist/components/ui/sidebar/menu.js +4 -4
- package/dist/components/ui/sidebar/provider.js +4 -4
- package/dist/components/ui/sidebar/rail.js +2 -2
- package/dist/components/ui/sidebar/trigger.d.ts +1 -1
- package/dist/components/ui/sidebar/trigger.js +3 -3
- package/dist/components/ui/sidebar-account-menu-theme.d.ts +1 -1
- package/dist/components/ui/sidebar-account-menu-theme.js +2 -2
- package/dist/components/ui/sidebar-account-menu.d.ts +2 -2
- package/dist/components/ui/sidebar-account-menu.js +7 -7
- package/dist/components/ui/sidebar.d.ts +7 -7
- package/dist/components/ui/sidebar.js +7 -7
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.js +2 -2
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/sonner.d.ts +3 -3
- package/dist/components/ui/sonner.js +3 -3
- package/dist/components/ui/spinner.d.ts +1 -1
- package/dist/components/ui/spinner.js +2 -2
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs-variants.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/toggle-group.d.ts +1 -1
- package/dist/components/ui/toggle-group.js +2 -2
- package/dist/components/ui/toggle-variants.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/workflow-timeline.js +1 -1
- package/dist/entries/accordion.d.ts +1 -0
- package/dist/entries/accordion.js +1 -0
- package/dist/entries/admin-users-page.d.ts +1 -0
- package/dist/entries/admin-users-page.js +1 -0
- package/dist/entries/admin-users-table.d.ts +1 -0
- package/dist/entries/admin-users-table.js +1 -0
- package/dist/entries/alert-dialog.d.ts +1 -0
- package/dist/entries/alert-dialog.js +1 -0
- package/dist/entries/alert.d.ts +1 -0
- package/dist/entries/alert.js +1 -0
- package/dist/entries/app-shell-page.d.ts +1 -0
- package/dist/entries/app-shell-page.js +1 -0
- package/dist/entries/app-shell.d.ts +1 -0
- package/dist/entries/app-shell.js +1 -0
- package/dist/entries/aspect-ratio.d.ts +1 -0
- package/dist/entries/aspect-ratio.js +1 -0
- package/dist/entries/avatar.d.ts +1 -0
- package/dist/entries/avatar.js +1 -0
- package/dist/entries/badge-variants.d.ts +1 -0
- package/dist/entries/badge-variants.js +1 -0
- package/dist/entries/badge.d.ts +1 -0
- package/dist/entries/badge.js +1 -0
- package/dist/entries/breadcrumb.d.ts +1 -0
- package/dist/entries/breadcrumb.js +1 -0
- package/dist/entries/button-group-variants.d.ts +1 -0
- package/dist/entries/button-group-variants.js +1 -0
- package/dist/entries/button-group.d.ts +1 -0
- package/dist/entries/button-group.js +1 -0
- package/dist/entries/button-variants.d.ts +1 -0
- package/dist/entries/button-variants.js +1 -0
- package/dist/entries/button.d.ts +1 -0
- package/dist/entries/button.js +1 -0
- package/dist/entries/calendar.d.ts +1 -0
- package/dist/entries/calendar.js +1 -0
- package/dist/entries/card.d.ts +1 -0
- package/dist/entries/card.js +1 -0
- package/dist/entries/carousel.d.ts +1 -0
- package/dist/entries/carousel.js +1 -0
- package/dist/entries/chart-context.d.ts +1 -0
- package/dist/entries/chart-context.js +1 -0
- package/dist/entries/chart-panel.d.ts +1 -0
- package/dist/entries/chart-panel.js +1 -0
- package/dist/entries/chart-tooltip.d.ts +1 -0
- package/dist/entries/chart-tooltip.js +1 -0
- package/dist/entries/chart.d.ts +1 -0
- package/dist/entries/chart.js +1 -0
- package/dist/entries/checkbox.d.ts +1 -0
- package/dist/entries/checkbox.js +1 -0
- package/dist/entries/ciridae-brand-assets.d.ts +1 -0
- package/dist/entries/ciridae-brand-assets.js +1 -0
- package/dist/entries/ciridae-ui-provider.d.ts +1 -0
- package/dist/entries/ciridae-ui-provider.js +1 -0
- package/dist/entries/collapsible.d.ts +1 -0
- package/dist/entries/collapsible.js +1 -0
- package/dist/entries/color-theme-context.d.ts +1 -0
- package/dist/entries/color-theme-context.js +1 -0
- package/dist/entries/color-theme.d.ts +1 -0
- package/dist/entries/color-theme.js +1 -0
- package/dist/entries/combobox-anchor.d.ts +1 -0
- package/dist/entries/combobox-anchor.js +1 -0
- package/dist/entries/combobox.d.ts +1 -0
- package/dist/entries/combobox.js +1 -0
- package/dist/entries/command.d.ts +1 -0
- package/dist/entries/command.js +1 -0
- package/dist/entries/comment-composer.d.ts +1 -0
- package/dist/entries/comment-composer.js +1 -0
- package/dist/entries/comment-item.d.ts +1 -0
- package/dist/entries/comment-item.js +1 -0
- package/dist/entries/comment-thread.d.ts +1 -0
- package/dist/entries/comment-thread.js +1 -0
- package/dist/entries/comment-types.d.ts +1 -0
- package/dist/entries/comment-types.js +1 -0
- package/dist/entries/context-menu.d.ts +1 -0
- package/dist/entries/context-menu.js +1 -0
- package/dist/entries/data-table-controls.d.ts +1 -0
- package/dist/entries/data-table-controls.js +1 -0
- package/dist/entries/data-table-grid.d.ts +1 -0
- package/dist/entries/data-table-grid.js +1 -0
- package/dist/entries/data-table-pagination.d.ts +1 -0
- package/dist/entries/data-table-pagination.js +1 -0
- package/dist/entries/data-table-tanstack.d.ts +1 -0
- package/dist/entries/data-table-tanstack.js +1 -0
- package/dist/entries/data-table.d.ts +1 -0
- package/dist/entries/data-table.js +1 -0
- package/dist/entries/dialog.d.ts +1 -0
- package/dist/entries/dialog.js +1 -0
- package/dist/entries/direction-context.d.ts +1 -0
- package/dist/entries/direction-context.js +1 -0
- package/dist/entries/direction.d.ts +1 -0
- package/dist/entries/direction.js +1 -0
- package/dist/entries/drawer.d.ts +1 -0
- package/dist/entries/drawer.js +1 -0
- package/dist/entries/dropdown-menu.d.ts +1 -0
- package/dist/entries/dropdown-menu.js +1 -0
- package/dist/entries/empty.d.ts +1 -0
- package/dist/entries/empty.js +1 -0
- package/dist/entries/expandable-data-table.d.ts +1 -0
- package/dist/entries/expandable-data-table.js +1 -0
- package/dist/entries/feedback-center-comments.d.ts +1 -0
- package/dist/entries/feedback-center-comments.js +1 -0
- package/dist/entries/feedback-center-sheet-parts.d.ts +1 -0
- package/dist/entries/feedback-center-sheet-parts.js +1 -0
- package/dist/entries/feedback-center-sheet.d.ts +1 -0
- package/dist/entries/feedback-center-sheet.js +1 -0
- package/dist/entries/feedback-composer-parts.d.ts +1 -0
- package/dist/entries/feedback-composer-parts.js +1 -0
- package/dist/entries/feedback-composer-types.d.ts +1 -0
- package/dist/entries/feedback-composer-types.js +1 -0
- package/dist/entries/feedback-composer.d.ts +1 -0
- package/dist/entries/feedback-composer.js +1 -0
- package/dist/entries/feedback-date-format.d.ts +1 -0
- package/dist/entries/feedback-date-format.js +1 -0
- package/dist/entries/feedback-detail-sheet.d.ts +1 -0
- package/dist/entries/feedback-detail-sheet.js +1 -0
- package/dist/entries/feedback-metrics.d.ts +1 -0
- package/dist/entries/feedback-metrics.js +1 -0
- package/dist/entries/feedback-sheet.d.ts +1 -0
- package/dist/entries/feedback-sheet.js +1 -0
- package/dist/entries/feedback-stakeholder-page-parts.d.ts +1 -0
- package/dist/entries/feedback-stakeholder-page-parts.js +1 -0
- package/dist/entries/feedback-stakeholder-page.d.ts +1 -0
- package/dist/entries/feedback-stakeholder-page.js +1 -0
- package/dist/entries/feedback-status-badge.d.ts +1 -0
- package/dist/entries/feedback-status-badge.js +1 -0
- package/dist/entries/feedback-table-row.d.ts +1 -0
- package/dist/entries/feedback-table-row.js +1 -0
- package/dist/entries/feedback-table-sort.d.ts +1 -0
- package/dist/entries/feedback-table-sort.js +1 -0
- package/dist/entries/feedback-table.d.ts +1 -0
- package/dist/entries/feedback-table.js +1 -0
- package/dist/entries/feedback-tracking-types.d.ts +1 -0
- package/dist/entries/feedback-tracking-types.js +1 -0
- package/dist/entries/feedback-type-badge.d.ts +1 -0
- package/dist/entries/feedback-type-badge.js +1 -0
- package/dist/entries/feedback-user-detail.d.ts +1 -0
- package/dist/entries/feedback-user-detail.js +1 -0
- package/dist/entries/feedback-user-list.d.ts +1 -0
- package/dist/entries/feedback-user-list.js +1 -0
- package/dist/entries/field.d.ts +1 -0
- package/dist/entries/field.js +1 -0
- package/dist/entries/file-upload-field-parts.d.ts +1 -0
- package/dist/entries/file-upload-field-parts.js +1 -0
- package/dist/entries/file-upload-field.d.ts +1 -0
- package/dist/entries/file-upload-field.js +1 -0
- package/dist/entries/form-context.d.ts +1 -0
- package/dist/entries/form-context.js +1 -0
- package/dist/entries/form.d.ts +1 -0
- package/dist/entries/form.js +1 -0
- package/dist/entries/hover-card.d.ts +1 -0
- package/dist/entries/hover-card.js +1 -0
- package/dist/entries/input-group.d.ts +1 -0
- package/dist/entries/input-group.js +1 -0
- package/dist/entries/input-otp.d.ts +1 -0
- package/dist/entries/input-otp.js +1 -0
- package/dist/entries/input.d.ts +1 -0
- package/dist/entries/input.js +1 -0
- package/dist/entries/invite-user-sheet.d.ts +1 -0
- package/dist/entries/invite-user-sheet.js +1 -0
- package/dist/entries/item.d.ts +1 -0
- package/dist/entries/item.js +1 -0
- package/dist/entries/kanban-board-parts.d.ts +1 -0
- package/dist/entries/kanban-board-parts.js +1 -0
- package/dist/entries/kanban-board-utils.d.ts +1 -0
- package/dist/entries/kanban-board-utils.js +1 -0
- package/dist/entries/kanban-board.d.ts +1 -0
- package/dist/entries/kanban-board.js +1 -0
- package/dist/entries/kanban-card.d.ts +1 -0
- package/dist/entries/kanban-card.js +1 -0
- package/dist/entries/kanban-column.d.ts +1 -0
- package/dist/entries/kanban-column.js +1 -0
- package/dist/entries/kanban-detail-sheet.d.ts +1 -0
- package/dist/entries/kanban-detail-sheet.js +1 -0
- package/dist/entries/kanban-page.d.ts +1 -0
- package/dist/entries/kanban-page.js +1 -0
- package/dist/entries/kanban-types.d.ts +1 -0
- package/dist/entries/kanban-types.js +1 -0
- package/dist/entries/kbd.d.ts +1 -0
- package/dist/entries/kbd.js +1 -0
- package/dist/entries/label.d.ts +1 -0
- package/dist/entries/label.js +1 -0
- package/dist/entries/loading-state.d.ts +1 -0
- package/dist/entries/loading-state.js +1 -0
- package/dist/entries/menubar.d.ts +1 -0
- package/dist/entries/menubar.js +1 -0
- package/dist/entries/metrics-strip.d.ts +1 -0
- package/dist/entries/metrics-strip.js +1 -0
- package/dist/entries/native-select.d.ts +1 -0
- package/dist/entries/native-select.js +1 -0
- package/dist/entries/navigation-menu-variants.d.ts +1 -0
- package/dist/entries/navigation-menu-variants.js +1 -0
- package/dist/entries/navigation-menu.d.ts +1 -0
- package/dist/entries/navigation-menu.js +1 -0
- package/dist/entries/page-header.d.ts +1 -0
- package/dist/entries/page-header.js +1 -0
- package/dist/entries/pagination.d.ts +1 -0
- package/dist/entries/pagination.js +1 -0
- package/dist/entries/popover.d.ts +1 -0
- package/dist/entries/popover.js +1 -0
- package/dist/entries/progress.d.ts +1 -0
- package/dist/entries/progress.js +1 -0
- package/dist/entries/property-list.d.ts +1 -0
- package/dist/entries/property-list.js +1 -0
- package/dist/entries/radio-group.d.ts +1 -0
- package/dist/entries/radio-group.js +1 -0
- package/dist/entries/registry-docs-api.d.ts +1 -0
- package/dist/entries/registry-docs-api.js +1 -0
- package/dist/entries/registry-docs-code.d.ts +1 -0
- package/dist/entries/registry-docs-code.js +1 -0
- package/dist/entries/registry-docs-showcase.d.ts +1 -0
- package/dist/entries/registry-docs-showcase.js +1 -0
- package/dist/entries/registry-docs.d.ts +1 -0
- package/dist/entries/registry-docs.js +1 -0
- package/dist/entries/resizable.d.ts +1 -0
- package/dist/entries/resizable.js +1 -0
- package/dist/entries/scroll-area.d.ts +1 -0
- package/dist/entries/scroll-area.js +1 -0
- package/dist/entries/select.d.ts +1 -0
- package/dist/entries/select.js +1 -0
- package/dist/entries/separator.d.ts +1 -0
- package/dist/entries/separator.js +1 -0
- package/dist/entries/sheet.d.ts +1 -0
- package/dist/entries/sheet.js +1 -0
- package/dist/entries/sidebar/context.d.ts +1 -0
- package/dist/entries/sidebar/context.js +1 -0
- package/dist/entries/sidebar/group.d.ts +1 -0
- package/dist/entries/sidebar/group.js +1 -0
- package/dist/entries/sidebar/layout.d.ts +1 -0
- package/dist/entries/sidebar/layout.js +1 -0
- package/dist/entries/sidebar/menu.d.ts +1 -0
- package/dist/entries/sidebar/menu.js +1 -0
- package/dist/entries/sidebar/provider.d.ts +1 -0
- package/dist/entries/sidebar/provider.js +1 -0
- package/dist/entries/sidebar/rail.d.ts +1 -0
- package/dist/entries/sidebar/rail.js +1 -0
- package/dist/entries/sidebar/trigger.d.ts +1 -0
- package/dist/entries/sidebar/trigger.js +1 -0
- package/dist/entries/sidebar-account-menu-theme.d.ts +1 -0
- package/dist/entries/sidebar-account-menu-theme.js +1 -0
- package/dist/entries/sidebar-account-menu.d.ts +1 -0
- package/dist/entries/sidebar-account-menu.js +1 -0
- package/dist/entries/sidebar.d.ts +1 -0
- package/dist/entries/sidebar.js +1 -0
- package/dist/entries/skeleton.d.ts +1 -0
- package/dist/entries/skeleton.js +1 -0
- package/dist/entries/slider.d.ts +1 -0
- package/dist/entries/slider.js +1 -0
- package/dist/entries/sonner.d.ts +1 -0
- package/dist/entries/sonner.js +1 -0
- package/dist/entries/spinner.d.ts +1 -0
- package/dist/entries/spinner.js +1 -0
- package/dist/entries/switch.d.ts +1 -0
- package/dist/entries/switch.js +1 -0
- package/dist/entries/table.d.ts +1 -0
- package/dist/entries/table.js +1 -0
- package/dist/entries/tabs-variants.d.ts +1 -0
- package/dist/entries/tabs-variants.js +1 -0
- package/dist/entries/tabs.d.ts +1 -0
- package/dist/entries/tabs.js +1 -0
- package/dist/entries/textarea.d.ts +1 -0
- package/dist/entries/textarea.js +1 -0
- package/dist/entries/timestamp-format.d.ts +1 -0
- package/dist/entries/timestamp-format.js +1 -0
- package/dist/entries/toggle-group.d.ts +1 -0
- package/dist/entries/toggle-group.js +1 -0
- package/dist/entries/toggle-variants.d.ts +1 -0
- package/dist/entries/toggle-variants.js +1 -0
- package/dist/entries/toggle.d.ts +1 -0
- package/dist/entries/toggle.js +1 -0
- package/dist/entries/tooltip.d.ts +1 -0
- package/dist/entries/tooltip.js +1 -0
- package/dist/entries/use-color-theme.d.ts +1 -0
- package/dist/entries/use-color-theme.js +1 -0
- package/dist/entries/use-mobile.d.ts +1 -0
- package/dist/entries/use-mobile.js +1 -0
- package/dist/entries/utils.d.ts +1 -0
- package/dist/entries/utils.js +1 -0
- package/dist/entries/workflow-timeline.d.ts +1 -0
- package/dist/entries/workflow-timeline.js +1 -0
- package/dist/lib/utils.js +1 -1
- package/dist/style-imports.d.ts +3 -0
- package/dist/styled-system/styles.css +61 -393
- package/dist/styles.css +490 -1
- package/package.json +33 -415
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "
|
|
4
|
-
import { Button } from "
|
|
5
|
-
import { Input } from "
|
|
6
|
-
import { Textarea } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
import { Button } from "./button";
|
|
5
|
+
import { Input } from "./input";
|
|
6
|
+
import { Textarea } from "./textarea";
|
|
7
7
|
function InputGroup({ className, ...props }) {
|
|
8
8
|
return (_jsx("div", { "data-slot": "input-group", role: "group", className: cn("group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30", "h-(--control-height) min-w-0 has-[>textarea]:h-auto",
|
|
9
9
|
// Variants based on alignment.
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
5
5
|
import { MinusIcon } from "lucide-react";
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
7
|
function InputOTP({ className, containerClassName, ...props }) {
|
|
8
8
|
return (_jsx(OTPInput, { "data-slot": "input-otp", containerClassName: cn("flex items-center gap-2 has-disabled:opacity-50", containerClassName), className: cn("disabled:cursor-not-allowed", className), ...props }));
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
3
|
function Input({ className, type, ...props }) {
|
|
4
4
|
return (_jsx("input", { type: type, "data-slot": "input", className: cn("h-(--control-height) w-full min-w-0 rounded-md border border-input bg-transparent px-(--control-padding-x) py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-[calc(var(--control-height)-0.375rem)] file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30", "focus-visible:border-ring focus-visible:ring-[var(--focus-ring-width)] focus-visible:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", className), ...props }));
|
|
5
5
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import { Separator } from "
|
|
3
|
+
import { Separator } from "./separator";
|
|
4
4
|
declare function ItemGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
5
5
|
declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
|
|
6
6
|
declare const itemVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
8
8
|
size?: "sm" | "default" | null | undefined;
|
|
9
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
10
|
declare function Item({ className, variant, size, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
|
|
11
11
|
asChild?: boolean;
|
|
12
12
|
}): React.JSX.Element;
|
|
13
13
|
declare const itemMediaVariants: (props?: ({
|
|
14
14
|
variant?: "default" | "icon" | "image" | null | undefined;
|
|
15
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
16
|
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
|
|
17
17
|
declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
18
18
|
declare function ItemTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { Slot } from "radix-ui";
|
|
4
|
-
import { cn } from "
|
|
5
|
-
import { Separator } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import { Separator } from "./separator";
|
|
6
6
|
function ItemGroup({ className, ...props }) {
|
|
7
7
|
return (_jsx("div", { role: "list", "data-slot": "item-group", className: cn("group/item-group flex flex-col", className), ...props }));
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import("react").JSX.Element;
|
|
2
|
-
declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
1
|
+
declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import("@types/react").JSX.Element;
|
|
2
|
+
declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
3
3
|
export { Kbd, KbdGroup };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
3
|
function Kbd({ className, ...props }) {
|
|
4
4
|
return (_jsx("kbd", { "data-slot": "kbd", className: cn("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none", "[&_svg:not([class*='size-'])]:size-3", "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10", className), ...props }));
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
4
|
function Label({ className, ...props }) {
|
|
5
5
|
return (_jsx(LabelPrimitive.Root, { "data-slot": "label", className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className), ...props }));
|
|
6
6
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "
|
|
4
|
-
import { Card, CardContent, CardHeader } from "
|
|
5
|
-
import { Skeleton } from "
|
|
6
|
-
import { Spinner } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
import { Card, CardContent, CardHeader } from "./card";
|
|
5
|
+
import { Skeleton } from "./skeleton";
|
|
6
|
+
import { Spinner } from "./spinner";
|
|
7
7
|
const loadingStateSizes = {
|
|
8
8
|
sm: "min-h-14 gap-2 p-3",
|
|
9
9
|
default: "min-h-24 gap-3 p-(--panel-padding)",
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
5
5
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
7
|
const MenubarPortalContainerContext = React.createContext({
|
|
8
8
|
container: null,
|
|
9
9
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
3
|
function MetricsStrip({ className, ...props }) {
|
|
4
4
|
return (_jsx("section", { "data-slot": "metrics-strip", className: cn("grid grid-cols-1 divide-y divide-border rounded-lg border bg-card text-card-foreground shadow-xs md:grid-cols-5 md:divide-x md:divide-y-0", className), ...props }));
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDownIcon } from "lucide-react";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
4
|
function NativeSelect({ className, size = "default", ...props }) {
|
|
5
5
|
return (_jsxs("div", { className: "group/native-select relative w-fit has-[select:disabled]:opacity-50", "data-slot": "native-select-wrapper", children: [_jsx("select", { "data-slot": "native-select", "data-size": size, className: cn("h-(--control-height) w-full min-w-0 appearance-none rounded-md border border-input bg-transparent px-(--control-padding-x) py-1 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-(--control-height-sm) dark:bg-input/30 dark:hover:bg-input/50", "focus-visible:border-ring focus-visible:ring-[var(--focus-ring-width)] focus-visible:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", className), ...props }), _jsx(ChevronDownIcon, { className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-muted-foreground opacity-50 select-none", "aria-hidden": "true", "data-slot": "native-select-icon" })] }));
|
|
6
6
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
1
|
+
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
2
|
export { navigationMenuTriggerStyle };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDownIcon } from "lucide-react";
|
|
3
3
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
4
|
-
import { cn } from "
|
|
5
|
-
import { navigationMenuTriggerStyle } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import { navigationMenuTriggerStyle } from "./navigation-menu-variants";
|
|
6
6
|
function NavigationMenu({ className, children, viewport = true, ...props }) {
|
|
7
7
|
return (_jsxs(NavigationMenuPrimitive.Root, { "data-slot": "navigation-menu", "data-viewport": viewport, className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className), ...props, children: [children, viewport && _jsx(NavigationMenuViewport, {})] }));
|
|
8
8
|
}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Button } from "
|
|
3
|
-
|
|
2
|
+
import { Button } from "./button";
|
|
3
|
+
type PageHeaderBreadcrumbItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
};
|
|
7
|
+
type PageHeaderProps = React.ComponentProps<"header"> & {
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
|
+
backLink?: {
|
|
10
|
+
label: string;
|
|
11
|
+
to?: string;
|
|
12
|
+
};
|
|
13
|
+
breadcrumbItems?: PageHeaderBreadcrumbItem[];
|
|
14
|
+
subtitle?: React.ReactNode;
|
|
15
|
+
title?: React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
declare function PageHeader({ actions, backLink, breadcrumbItems, children, className, subtitle, title, ...props }: PageHeaderProps): React.JSX.Element;
|
|
4
18
|
declare function PageHeaderMain({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
5
19
|
declare function PageHeaderContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
6
20
|
type PageHeaderBackButtonProps = (Omit<React.ComponentProps<typeof Button>, "asChild" | "children"> & {
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowLeftIcon } from "lucide-react";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { cn } from "
|
|
5
|
-
function PageHeader({ className, ...props }) {
|
|
6
|
-
|
|
3
|
+
import { Button } from "./button";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
function PageHeader({ actions, backLink, breadcrumbItems, children, className, subtitle, title, ...props }) {
|
|
6
|
+
if (hasPageHeaderConvenienceContent({ actions, backLink, breadcrumbItems, subtitle, title })) {
|
|
7
|
+
return (_jsx("header", { "data-slot": "page-header", className: cn("border-b bg-background text-foreground", className), ...props, children: _jsx(PageHeaderConvenienceLayout, { actions: actions, backLink: backLink, breadcrumbItems: breadcrumbItems, subtitle: subtitle, title: title, children: children }) }));
|
|
8
|
+
}
|
|
9
|
+
return (_jsx("header", { "data-slot": "page-header", className: cn("border-b bg-background text-foreground", className), ...props, children: children }));
|
|
10
|
+
}
|
|
11
|
+
function hasPageHeaderConvenienceContent({ actions, backLink, breadcrumbItems, subtitle, title, }) {
|
|
12
|
+
return Boolean(title || subtitle || actions || backLink || breadcrumbItems);
|
|
13
|
+
}
|
|
14
|
+
function PageHeaderConvenienceLayout({ actions, backLink, breadcrumbItems, children, subtitle, title, }) {
|
|
15
|
+
return (_jsxs(PageHeaderMain, { children: [_jsxs(PageHeaderContent, { children: [backLink ? _jsx(PageHeaderBackLink, { backLink: backLink }) : null, breadcrumbItems?.length ? _jsx(PageHeaderBreadcrumbs, { items: breadcrumbItems }) : null, title ? _jsx(PageHeaderTitle, { children: title }) : null, subtitle ? _jsx(PageHeaderDescription, { children: subtitle }) : null, children] }), actions ? _jsx(PageHeaderActions, { children: actions }) : null] }));
|
|
16
|
+
}
|
|
17
|
+
function PageHeaderBackLink({ backLink }) {
|
|
18
|
+
if (backLink.to) {
|
|
19
|
+
return (_jsx(PageHeaderBackButton, { asChild: true, children: _jsx("a", { href: backLink.to, children: backLink.label }) }));
|
|
20
|
+
}
|
|
21
|
+
return _jsx(PageHeaderBackButton, { children: backLink.label });
|
|
22
|
+
}
|
|
23
|
+
function PageHeaderBreadcrumbs({ items }) {
|
|
24
|
+
return (_jsx(PageHeaderMeta, { children: items.map((item) => (_jsx("span", { children: item.label }, `${item.label}:${item.to ?? ""}`))) }));
|
|
7
25
|
}
|
|
8
26
|
function PageHeaderMain({ className, ...props }) {
|
|
9
27
|
return (_jsx("div", { "data-slot": "page-header-main", className: cn("flex flex-col gap-3 px-4 py-3 md:flex-row md:items-center md:justify-between md:px-6 lg:px-8", className), ...props }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { Button } from "
|
|
2
|
+
import type { Button } from "./button";
|
|
3
3
|
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
4
4
|
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
|
|
5
5
|
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
3
|
-
import { cn } from "
|
|
4
|
-
import { buttonVariants } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
import { buttonVariants } from "./button-variants";
|
|
5
5
|
function Pagination({ className, ...props }) {
|
|
6
6
|
return (_jsx("nav", { role: "navigation", "aria-label": "pagination", "data-slot": "pagination", className: cn("mx-auto flex w-full justify-center", className), ...props }));
|
|
7
7
|
}
|
|
@@ -18,10 +18,10 @@ function PaginationLink({ className, isActive, size = "icon", ...props }) {
|
|
|
18
18
|
}), className), ...props }));
|
|
19
19
|
}
|
|
20
20
|
function PaginationPrevious({ className, ...props }) {
|
|
21
|
-
return (_jsxs(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
21
|
+
return (_jsxs(PaginationLink, { ...props, "aria-label": "Go to previous page", size: "default", className: cn("gap-1 px-2.5 sm:pl-2.5", className), children: [_jsx(ChevronLeftIcon, {}), _jsx("span", { className: "hidden sm:block", children: "Previous" })] }));
|
|
22
22
|
}
|
|
23
23
|
function PaginationNext({ className, ...props }) {
|
|
24
|
-
return (_jsxs(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
24
|
+
return (_jsxs(PaginationLink, { ...props, "aria-label": "Go to next page", size: "default", className: cn("gap-1 px-2.5 sm:pr-2.5", className), children: [_jsx("span", { className: "hidden sm:block", children: "Next" }), _jsx(ChevronRightIcon, {})] }));
|
|
25
25
|
}
|
|
26
26
|
function PaginationEllipsis({ className, ...props }) {
|
|
27
27
|
return (_jsxs("span", { "aria-hidden": true, "data-slot": "pagination-ellipsis", className: cn("flex size-9 items-center justify-center", className), ...props, children: [_jsx(MoreHorizontalIcon, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "More pages" })] }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
5
|
const PopoverPortalContainerContext = React.createContext({
|
|
6
6
|
container: null,
|
|
7
7
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
5
|
function Progress({ className, value, ...props }) {
|
|
6
6
|
return (_jsx(ProgressPrimitive.Root, { "data-slot": "progress", className: cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className), ...props, children: _jsx(ProgressPrimitive.Indicator, { "data-slot": "progress-indicator", className: "h-full w-full flex-1 bg-primary transition-all", style: { transform: `translateX(-${100 - (value || 0)}%)` } }) }));
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
3
|
function PropertyList({ className, ...props }) {
|
|
4
4
|
return (_jsx("dl", { "data-slot": "property-list", className: cn("grid border-t border-border text-sm", className), ...props }));
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CircleIcon } from "lucide-react";
|
|
3
3
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
5
|
function RadioGroup({ className, ...props }) {
|
|
6
6
|
return (_jsx(RadioGroupPrimitive.Root, { "data-slot": "radio-group", className: cn("grid gap-3", className), ...props }));
|
|
7
7
|
}
|
|
@@ -6,6 +6,6 @@ type RegistryDocsApiProp = {
|
|
|
6
6
|
};
|
|
7
7
|
declare function RegistryDocsApiTable({ props }: {
|
|
8
8
|
props: RegistryDocsApiProp[];
|
|
9
|
-
}): import("react").JSX.Element;
|
|
9
|
+
}): import("@types/react").JSX.Element;
|
|
10
10
|
export { RegistryDocsApiTable };
|
|
11
11
|
export type { RegistryDocsApiProp };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow
|
|
2
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table";
|
|
3
3
|
function RegistryDocsApiTable({ props }) {
|
|
4
4
|
return (_jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: "Prop" }), _jsx(TableHead, { children: "Type" }), _jsx(TableHead, { children: "Default" }), _jsx(TableHead, { children: "Description" })] }) }), _jsx(TableBody, { children: props.map((prop) => (_jsx(RegistryDocsApiTableRow, { prop: prop }, prop.name))) })] }));
|
|
5
5
|
}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { CheckIcon, CopyIcon } from "lucide-react";
|
|
4
4
|
import { codeToHtml } from "shiki/bundle/web";
|
|
5
|
-
import { Button } from "
|
|
6
|
-
import { cn } from "
|
|
5
|
+
import { Button } from "./button";
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
7
|
function RegistryDocsCodeBlock({ children, className, code, label, language = "tsx", ...props }) {
|
|
8
8
|
return (_jsx(RegistryDocsCodeFrame, { code: code, label: label, children: _jsx(RegistryDocsCodeSnippet, { className: className, code: code, language: language, ...props, children: children }) }));
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { CodeXmlIcon } from "lucide-react";
|
|
4
|
-
import { Button } from "
|
|
4
|
+
import { Button } from "./button";
|
|
5
5
|
import { RegistryDocsCodeSnippet, RegistryDocsCopyButton } from "./registry-docs-code";
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
7
|
function RegistryDocsShowcase({ className, code, codeLabel = "preview.tsx", defaultExpanded = false, preview, previewMode = "default", ...props }) {
|
|
8
8
|
const [expanded, setExpanded] = React.useState(defaultExpanded);
|
|
9
9
|
const codeId = React.useId();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Card, type CardVariant } from "
|
|
2
|
+
import { Card, type CardVariant } from "./card";
|
|
3
3
|
import { RegistryDocsApiTable, type RegistryDocsApiProp } from "./registry-docs-api";
|
|
4
4
|
import { RegistryDocsCodeBlock, RegistryDocsCommand } from "./registry-docs-code";
|
|
5
5
|
import { RegistryDocsShowcase } from "./registry-docs-showcase";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Card, CardContent, CardHeader } from "
|
|
3
|
-
import { PropertyList, PropertyListItem, PropertyListLabel, PropertyListValue, } from "
|
|
2
|
+
import { Card, CardContent, CardHeader } from "./card";
|
|
3
|
+
import { PropertyList, PropertyListItem, PropertyListLabel, PropertyListValue, } from "./property-list";
|
|
4
4
|
import { RegistryDocsApiTable } from "./registry-docs-api";
|
|
5
5
|
import { RegistryDocsCodeBlock, RegistryDocsCommand } from "./registry-docs-code";
|
|
6
6
|
import { RegistryDocsShowcase } from "./registry-docs-showcase";
|
|
7
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "../../lib/utils";
|
|
8
8
|
function RegistryDocsPage({ className, ...props }) {
|
|
9
9
|
return (_jsx("main", { "data-slot": "registry-docs-page", className: cn("min-h-svh bg-background text-foreground", className), ...props }));
|
|
10
10
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ResizablePanelGroupProps = ResizablePrimitive.GroupProps & {
|
|
3
|
+
autoSaveId?: string;
|
|
4
|
+
direction?: "horizontal" | "vertical";
|
|
5
|
+
};
|
|
6
|
+
type ResizablePanelProps = ResizablePrimitive.PanelProps & {
|
|
7
|
+
order?: number;
|
|
8
|
+
};
|
|
9
|
+
declare function ResizablePanelGroup({ autoSaveId: _autoSaveId, className, direction, ...props }: ResizablePanelGroupProps): import("@types/react").JSX.Element;
|
|
10
|
+
declare function ResizablePanel({ order: _order, ...props }: ResizablePanelProps): import("@types/react").JSX.Element;
|
|
4
11
|
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
5
12
|
withHandle?: boolean;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
13
|
+
}): import("@types/react").JSX.Element;
|
|
7
14
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { GripVerticalIcon } from "lucide-react";
|
|
4
4
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
5
|
-
import { cn } from "
|
|
6
|
-
function ResizablePanelGroup({ className, ...props }) {
|
|
7
|
-
return (_jsx(ResizablePrimitive.Group, { "data-slot": "resizable-panel-group", className: cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className), ...props }));
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
function ResizablePanelGroup({ autoSaveId: _autoSaveId, className, direction, ...props }) {
|
|
7
|
+
return (_jsx(ResizablePrimitive.Group, { "data-slot": "resizable-panel-group", className: cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className), ...props, orientation: props.orientation ?? direction }));
|
|
8
8
|
}
|
|
9
|
-
function ResizablePanel({ ...props }) {
|
|
9
|
+
function ResizablePanel({ order: _order, ...props }) {
|
|
10
10
|
return _jsx(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
|
|
11
11
|
}
|
|
12
12
|
function ResizableHandle({ withHandle, className, ...props }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
4
|
function ScrollArea({ className, children, scrollbars = "vertical", ...props }) {
|
|
5
5
|
return (_jsxs(ScrollAreaPrimitive.Root, { "data-slot": "scroll-area", className: cn("relative", className), ...props, children: [_jsx(ScrollAreaPrimitive.Viewport, { "data-slot": "scroll-area-viewport", className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[var(--focus-ring-width)] focus-visible:ring-ring/50 focus-visible:outline-1", children: children }), scrollbars === "vertical" || scrollbars === "both" ? _jsx(ScrollBar, {}) : null, scrollbars === "horizontal" || scrollbars === "both" ? (_jsx(ScrollBar, { orientation: "horizontal" })) : null, scrollbars === "both" ? _jsx(ScrollAreaPrimitive.Corner, {}) : null] }));
|
|
6
6
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
4
4
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
6
|
function Select({ ...props }) {
|
|
7
7
|
return _jsx(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
4
|
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
5
5
|
return (_jsx(SeparatorPrimitive.Root, { "data-slot": "separator", decorative: decorative, orientation: orientation, className: cn("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className), ...props }));
|
|
6
6
|
}
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { XIcon } from "lucide-react";
|
|
5
5
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
7
|
const SheetPortalContainerContext = React.createContext({
|
|
8
8
|
container: null,
|
|
9
9
|
disableModalBehavior: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Slot } from "radix-ui";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils";
|
|
4
4
|
function SidebarGroup({ className, ...props }) {
|
|
5
5
|
return (_jsx("div", { "data-slot": "sidebar-group", "data-sidebar": "group", className: cn("relative flex w-full min-w-0 flex-col gap-(--sidebar-group-gap) p-(--sidebar-group-padding)", className), ...props }));
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Input } from "
|
|
3
|
-
import { Separator } from "
|
|
2
|
+
import { Input } from "../input";
|
|
3
|
+
import { Separator } from "../separator";
|
|
4
4
|
type SidebarProps = React.ComponentProps<"div"> & {
|
|
5
5
|
side?: "left" | "right";
|
|
6
6
|
variant?: "sidebar" | "floating" | "inset";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "
|
|
4
|
-
import { Input } from "
|
|
5
|
-
import { Separator } from "
|
|
6
|
-
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle
|
|
7
|
-
import { SIDEBAR_WIDTH_MOBILE, useSidebar
|
|
3
|
+
import { cn } from "../../../lib/utils";
|
|
4
|
+
import { Input } from "../input";
|
|
5
|
+
import { Separator } from "../separator";
|
|
6
|
+
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "../sheet";
|
|
7
|
+
import { SIDEBAR_WIDTH_MOBILE, useSidebar } from "./context";
|
|
8
8
|
function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas", expandOnCollapsedBlankClick = false, className, children, onClick, ...props }) {
|
|
9
9
|
const { isMobile, state, openMobile, setOpen, setOpenMobile } = useSidebar();
|
|
10
10
|
if (collapsible === "none") {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import { TooltipContent } from "
|
|
3
|
+
import { TooltipContent } from "../tooltip";
|
|
4
4
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
5
5
|
variant?: "default" | "outline" | null | undefined;
|
|
6
6
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
|
|
9
9
|
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
10
10
|
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
|
|
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { Slot } from "radix-ui";
|
|
5
|
-
import { cn } from "
|
|
6
|
-
import { Skeleton } from "
|
|
7
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
8
|
-
import { useSidebar } from "
|
|
5
|
+
import { cn } from "../../../lib/utils";
|
|
6
|
+
import { Skeleton } from "../skeleton";
|
|
7
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip";
|
|
8
|
+
import { useSidebar } from "./context";
|
|
9
9
|
const sidebarMenuButtonVariants = cva("peer/menu-button relative flex w-full items-center gap-(--control-gap) overflow-hidden rounded-[var(--sidebar-item-radius)] px-(--sidebar-item-padding-x) py-1 text-left text-sm text-sidebar-foreground/72 ring-sidebar-ring outline-hidden transition-[color,background-color,box-shadow,width,height,padding] before:absolute before:inset-y-1 before:left-0 before:w-(--sidebar-active-indicator-width) before:rounded-r-sm before:bg-transparent before:content-[''] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:mx-auto group-data-[collapsible=icon]:size-(--control-height)! group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-0! group-data-[collapsible=icon]:before:hidden group-data-[collapsible=icon]:[&>span:not([data-slot=avatar])]:hidden hover:bg-sidebar-accent/65 hover:text-sidebar-accent-foreground hover:[&>svg]:text-sidebar-accent-foreground focus-visible:ring-[var(--focus-ring-width)] active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent/75 data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-none data-[active=true]:before:bg-sidebar-primary data-[active=true]:[&>svg]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-(--sidebar-icon-size) [&>svg]:shrink-0 [&>svg]:text-sidebar-foreground/52", {
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { useIsMobile } from "
|
|
4
|
-
import { cn } from "
|
|
5
|
-
import { TooltipProvider } from "
|
|
6
|
-
import { SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SidebarContext, } from "
|
|
3
|
+
import { useIsMobile } from "../../../hooks/use-mobile";
|
|
4
|
+
import { cn } from "../../../lib/utils";
|
|
5
|
+
import { TooltipProvider } from "../tooltip";
|
|
6
|
+
import { SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SidebarContext, } from "./context";
|
|
7
7
|
function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }) {
|
|
8
8
|
const isMobile = useIsMobile();
|
|
9
9
|
const [openMobile, setOpenMobile] = React.useState(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSidebar } from "
|
|
3
|
-
import { cn } from "
|
|
2
|
+
import { useSidebar } from "./context";
|
|
3
|
+
import { cn } from "../../../lib/utils";
|
|
4
4
|
function SidebarRail({ className, onClick, ...props }) {
|
|
5
5
|
const { toggleSidebar } = useSidebar();
|
|
6
6
|
return (_jsx("button", { "data-sidebar": "rail", "data-slot": "sidebar-rail", "aria-label": "Toggle Sidebar", tabIndex: -1, onClick: (event) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { MenuIcon, PanelLeftCloseIcon, PanelLeftOpenIcon } from "lucide-react";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { useSidebar } from "
|
|
5
|
-
import { cn } from "
|
|
3
|
+
import { Button } from "../button";
|
|
4
|
+
import { useSidebar } from "./context";
|
|
5
|
+
import { cn } from "../../../lib/utils";
|
|
6
6
|
function SidebarTrigger({ className, onClick, ...props }) {
|
|
7
7
|
const { isMobile, openMobile, state, toggleSidebar } = useSidebar();
|
|
8
8
|
const isExpanded = isMobile ? openMobile : state === "expanded";
|
|
@@ -2,6 +2,6 @@ type SidebarAccountThemeMode = "light" | "dark" | "system";
|
|
|
2
2
|
declare function AccountThemeSection({ mode, onModeChange, }: {
|
|
3
3
|
mode?: SidebarAccountThemeMode;
|
|
4
4
|
onModeChange?: (mode: SidebarAccountThemeMode) => void;
|
|
5
|
-
}): import("react").JSX.Element | null;
|
|
5
|
+
}): import("@types/react").JSX.Element | null;
|
|
6
6
|
export { AccountThemeSection };
|
|
7
7
|
export type { SidebarAccountThemeMode };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { MonitorIcon, MoonIcon, SunIcon } from "lucide-react";
|
|
3
|
-
import { DropdownMenuSeparator } from "
|
|
4
|
-
import { cn } from "
|
|
3
|
+
import { DropdownMenuSeparator } from "./dropdown-menu";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
5
|
const sidebarAccountThemeModes = ["light", "dark", "system"];
|
|
6
6
|
function AccountThemeSection({ mode, onModeChange, }) {
|
|
7
7
|
if (!mode || !onModeChange)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import { type SidebarAccountThemeMode } from "
|
|
2
|
+
import { type SidebarAccountThemeMode } from "./sidebar-account-menu-theme";
|
|
3
3
|
type SidebarAccountMenuProps = {
|
|
4
4
|
username?: string | null;
|
|
5
5
|
email?: string | null;
|
|
@@ -11,6 +11,6 @@ type SidebarAccountMenuProps = {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
};
|
|
14
|
-
declare function SidebarAccountMenu({ username, email, imageUrl, onSignOut, isSigningOut, themeMode, onThemeModeChange, className, children, }: SidebarAccountMenuProps): import("react").JSX.Element;
|
|
14
|
+
declare function SidebarAccountMenu({ username, email, imageUrl, onSignOut, isSigningOut, themeMode, onThemeModeChange, className, children, }: SidebarAccountMenuProps): import("@types/react").JSX.Element;
|
|
15
15
|
export { SidebarAccountMenu };
|
|
16
16
|
export type { SidebarAccountMenuProps, SidebarAccountThemeMode };
|