@ciridae/ui 0.11.0 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/blocks/admin-users-table.js +7 -7
- package/dist/components/blocks/comment-composer.d.ts +1 -1
- package/dist/components/blocks/comment-composer.js +4 -4
- package/dist/components/blocks/comment-item.d.ts +1 -1
- package/dist/components/blocks/comment-item.js +4 -4
- package/dist/components/blocks/comment-thread.d.ts +1 -1
- package/dist/components/blocks/comment-thread.js +3 -3
- package/dist/components/blocks/copy-field.js +3 -3
- package/dist/components/blocks/feedback-center-comments.d.ts +2 -2
- package/dist/components/blocks/feedback-center-comments.js +3 -3
- package/dist/components/blocks/feedback-center-footer.d.ts +2 -2
- package/dist/components/blocks/feedback-center-footer.js +2 -2
- package/dist/components/blocks/feedback-center-sheet-parts.d.ts +5 -5
- package/dist/components/blocks/feedback-center-sheet-parts.js +7 -7
- package/dist/components/blocks/feedback-center-sheet.d.ts +5 -5
- package/dist/components/blocks/feedback-center-sheet.js +5 -5
- package/dist/components/blocks/feedback-composer-parts.d.ts +1 -1
- package/dist/components/blocks/feedback-composer-parts.js +4 -4
- package/dist/components/blocks/feedback-composer-types.d.ts +1 -1
- package/dist/components/blocks/feedback-composer.d.ts +1 -1
- package/dist/components/blocks/feedback-composer.js +8 -8
- package/dist/components/blocks/feedback-date-format.d.ts +1 -1
- package/dist/components/blocks/feedback-date-format.js +1 -1
- package/dist/components/blocks/feedback-detail-sheet.d.ts +1 -1
- package/dist/components/blocks/feedback-detail-sheet.js +11 -11
- package/dist/components/blocks/feedback-emergency-fields.d.ts +1 -1
- package/dist/components/blocks/feedback-emergency-fields.js +7 -7
- package/dist/components/blocks/feedback-metrics.d.ts +1 -1
- package/dist/components/blocks/feedback-metrics.js +1 -1
- package/dist/components/blocks/feedback-sheet.d.ts +1 -1
- package/dist/components/blocks/feedback-sheet.js +4 -4
- package/dist/components/blocks/feedback-status-badge.d.ts +1 -1
- package/dist/components/blocks/feedback-status-badge.js +2 -2
- package/dist/components/blocks/feedback-table-row.d.ts +1 -1
- package/dist/components/blocks/feedback-table-row.js +8 -8
- package/dist/components/blocks/feedback-table-sort.d.ts +2 -2
- package/dist/components/blocks/feedback-table.d.ts +2 -2
- package/dist/components/blocks/feedback-table.js +5 -5
- package/dist/components/blocks/feedback-triage-timeline.d.ts +1 -1
- package/dist/components/blocks/feedback-triage-timeline.js +2 -2
- package/dist/components/blocks/feedback-type-badge.d.ts +1 -1
- package/dist/components/blocks/feedback-type-badge.js +2 -2
- package/dist/components/blocks/feedback-unread-badge.js +1 -1
- package/dist/components/blocks/feedback-user-detail.d.ts +1 -1
- package/dist/components/blocks/feedback-user-detail.js +9 -9
- package/dist/components/blocks/feedback-user-list.d.ts +1 -1
- package/dist/components/blocks/feedback-user-list.js +10 -10
- package/dist/components/blocks/generated-connect-link.d.ts +1 -1
- package/dist/components/blocks/generated-connect-link.js +3 -3
- package/dist/components/blocks/invite-user-sheet.js +5 -5
- package/dist/components/blocks/kanban-board-parts.d.ts +2 -2
- package/dist/components/blocks/kanban-board-parts.js +3 -3
- package/dist/components/blocks/kanban-board-utils.d.ts +19 -3
- package/dist/components/blocks/kanban-board-utils.js +26 -1
- package/dist/components/blocks/kanban-board.d.ts +1 -1
- package/dist/components/blocks/kanban-board.js +4 -4
- package/dist/components/blocks/kanban-card.d.ts +1 -1
- package/dist/components/blocks/kanban-card.js +1 -1
- package/dist/components/blocks/kanban-column.d.ts +1 -1
- package/dist/components/blocks/kanban-column.js +3 -3
- package/dist/components/blocks/kanban-detail-sheet.d.ts +1 -1
- package/dist/components/blocks/kanban-detail-sheet.js +5 -5
- package/dist/components/blocks/mcp-access-grouped-tool-picker.d.ts +2 -2
- package/dist/components/blocks/mcp-access-grouped-tool-picker.js +4 -4
- package/dist/components/blocks/mcp-access-tool-picker-internals.d.ts +1 -1
- package/dist/components/blocks/mcp-access-tool-picker-internals.js +1 -1
- package/dist/components/blocks/mcp-access-tool-picker.d.ts +4 -4
- package/dist/components/blocks/mcp-access-tool-picker.js +3 -3
- package/dist/components/blocks/mcp-client-setup.d.ts +2 -2
- package/dist/components/blocks/mcp-client-setup.js +4 -4
- package/dist/components/blocks/mcp-connect-clients.d.ts +1 -1
- package/dist/components/blocks/mcp-plan-choice.d.ts +1 -1
- package/dist/components/blocks/mcp-plan-choice.js +1 -1
- package/dist/components/blocks/submit-feedback-composer.d.ts +2 -2
- package/dist/components/blocks/use-feedback-composer-state.d.ts +1 -1
- package/dist/components/pages/admin-users-page.d.ts +2 -2
- package/dist/components/pages/admin-users-page.js +5 -5
- package/dist/components/pages/feedback-stakeholder-page-parts.d.ts +1 -1
- package/dist/components/pages/feedback-stakeholder-page-parts.js +4 -4
- package/dist/components/pages/feedback-stakeholder-page.d.ts +1 -1
- package/dist/components/pages/feedback-stakeholder-page.js +5 -5
- package/dist/components/pages/kanban-page.d.ts +1 -1
- package/dist/components/pages/kanban-page.js +5 -5
- 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.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/avatar.js +1 -1
- package/dist/components/ui/badge-variants.d.ts +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.d.ts +2 -2
- package/dist/components/ui/button-group.js +3 -3
- package/dist/components/ui/button-variants.d.ts +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 +1 -1
- package/dist/components/ui/calendar.js +3 -3
- 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 +1 -1
- package/dist/components/ui/ciridae-ui-provider.js +3 -3
- package/dist/components/ui/color-theme-context.d.ts +1 -1
- package/dist/components/ui/color-theme.d.ts +2 -2
- package/dist/components/ui/color-theme.js +8 -6
- 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-column-settings.js +5 -5
- package/dist/components/ui/data-table-controls.d.ts +1 -1
- package/dist/components/ui/data-table-controls.js +3 -3
- package/dist/components/ui/data-table-facet-filter.js +7 -7
- 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 +3 -3
- package/dist/components/ui/data-table-search-input.js +1 -1
- package/dist/components/ui/data-table-tanstack.js +6 -6
- package/dist/components/ui/data-table.d.ts +4 -4
- package/dist/components/ui/data-table.js +5 -5
- package/dist/components/ui/dialog.js +2 -2
- package/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/components/ui/form-sheet.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/components/ui/item.js +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.js +2 -2
- package/dist/components/ui/page-header.d.ts +1 -1
- package/dist/components/ui/page-header.js +2 -2
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/pagination.js +2 -2
- 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.js +1 -1
- package/dist/components/ui/registry-docs-code.js +2 -2
- package/dist/components/ui/registry-docs-showcase.js +3 -3
- package/dist/components/ui/registry-docs.d.ts +4 -4
- package/dist/components/ui/registry-docs.js +6 -6
- package/dist/components/ui/resizable.js +1 -1
- 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 +1 -1
- 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.js +2 -2
- package/dist/components/ui/sidebar-account-menu.d.ts +1 -1
- 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.js +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/sonner.js +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.js +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.d.ts +1 -1
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/use-color-theme.d.ts +1 -1
- package/dist/components/ui/use-color-theme.js +1 -1
- package/dist/components/ui/workflow-timeline.js +1 -1
- package/dist/entries/accordion.d.ts +1 -1
- package/dist/entries/accordion.js +1 -1
- package/dist/entries/admin-users-page.d.ts +1 -1
- package/dist/entries/admin-users-page.js +1 -1
- package/dist/entries/admin-users-table.d.ts +1 -1
- package/dist/entries/admin-users-table.js +1 -1
- package/dist/entries/alert-dialog.d.ts +1 -1
- package/dist/entries/alert-dialog.js +1 -1
- package/dist/entries/alert.d.ts +1 -1
- package/dist/entries/alert.js +1 -1
- package/dist/entries/app-shell-page.d.ts +1 -1
- package/dist/entries/app-shell-page.js +1 -1
- package/dist/entries/app-shell.d.ts +1 -1
- package/dist/entries/app-shell.js +1 -1
- package/dist/entries/aspect-ratio.d.ts +1 -1
- package/dist/entries/aspect-ratio.js +1 -1
- package/dist/entries/avatar.d.ts +1 -1
- package/dist/entries/avatar.js +1 -1
- package/dist/entries/badge-variants.d.ts +1 -1
- package/dist/entries/badge-variants.js +1 -1
- package/dist/entries/badge.d.ts +1 -1
- package/dist/entries/badge.js +1 -1
- package/dist/entries/breadcrumb.d.ts +1 -1
- package/dist/entries/breadcrumb.js +1 -1
- package/dist/entries/button-group-variants.d.ts +1 -1
- package/dist/entries/button-group-variants.js +1 -1
- package/dist/entries/button-group.d.ts +1 -1
- package/dist/entries/button-group.js +1 -1
- package/dist/entries/button-variants.d.ts +1 -1
- package/dist/entries/button-variants.js +1 -1
- package/dist/entries/button.d.ts +1 -1
- package/dist/entries/button.js +1 -1
- package/dist/entries/calendar.d.ts +1 -1
- package/dist/entries/calendar.js +1 -1
- package/dist/entries/card.d.ts +1 -1
- package/dist/entries/card.js +1 -1
- package/dist/entries/carousel.d.ts +1 -1
- package/dist/entries/carousel.js +1 -1
- package/dist/entries/chart-context.d.ts +1 -1
- package/dist/entries/chart-context.js +1 -1
- package/dist/entries/chart-panel.d.ts +1 -1
- package/dist/entries/chart-panel.js +1 -1
- package/dist/entries/chart-tooltip.d.ts +1 -1
- package/dist/entries/chart-tooltip.js +1 -1
- package/dist/entries/chart.d.ts +1 -1
- package/dist/entries/chart.js +1 -1
- package/dist/entries/checkbox.d.ts +1 -1
- package/dist/entries/checkbox.js +1 -1
- package/dist/entries/ciridae-brand-assets.d.ts +1 -1
- package/dist/entries/ciridae-brand-assets.js +1 -1
- package/dist/entries/ciridae-ui-provider.d.ts +1 -1
- package/dist/entries/ciridae-ui-provider.js +1 -1
- package/dist/entries/collapsible.d.ts +1 -1
- package/dist/entries/collapsible.js +1 -1
- package/dist/entries/color-theme-context.d.ts +1 -1
- package/dist/entries/color-theme-context.js +1 -1
- package/dist/entries/color-theme.d.ts +1 -1
- package/dist/entries/color-theme.js +1 -1
- package/dist/entries/combobox-anchor.d.ts +1 -1
- package/dist/entries/combobox-anchor.js +1 -1
- package/dist/entries/combobox.d.ts +1 -1
- package/dist/entries/combobox.js +1 -1
- package/dist/entries/command.d.ts +1 -1
- package/dist/entries/command.js +1 -1
- package/dist/entries/comment-composer.d.ts +1 -1
- package/dist/entries/comment-composer.js +1 -1
- package/dist/entries/comment-item.d.ts +1 -1
- package/dist/entries/comment-item.js +1 -1
- package/dist/entries/comment-thread.d.ts +1 -1
- package/dist/entries/comment-thread.js +1 -1
- package/dist/entries/comment-types.d.ts +1 -1
- package/dist/entries/comment-types.js +1 -1
- package/dist/entries/context-menu.d.ts +1 -1
- package/dist/entries/context-menu.js +1 -1
- package/dist/entries/copy-field.d.ts +1 -1
- package/dist/entries/copy-field.js +1 -1
- package/dist/entries/data-table-column-settings.d.ts +1 -1
- package/dist/entries/data-table-column-settings.js +1 -1
- package/dist/entries/data-table-context.d.ts +1 -1
- package/dist/entries/data-table-context.js +1 -1
- package/dist/entries/data-table-controls.d.ts +1 -1
- package/dist/entries/data-table-controls.js +1 -1
- package/dist/entries/data-table-facet-filter.d.ts +1 -1
- package/dist/entries/data-table-facet-filter.js +1 -1
- package/dist/entries/data-table-grid.d.ts +1 -1
- package/dist/entries/data-table-grid.js +1 -1
- package/dist/entries/data-table-pagination.d.ts +1 -1
- package/dist/entries/data-table-pagination.js +1 -1
- package/dist/entries/data-table-search-input.d.ts +1 -1
- package/dist/entries/data-table-search-input.js +1 -1
- package/dist/entries/data-table-state.d.ts +1 -1
- package/dist/entries/data-table-state.js +1 -1
- package/dist/entries/data-table-tanstack.d.ts +1 -1
- package/dist/entries/data-table-tanstack.js +1 -1
- package/dist/entries/data-table.d.ts +1 -1
- package/dist/entries/data-table.js +1 -1
- package/dist/entries/dialog.d.ts +1 -1
- package/dist/entries/dialog.js +1 -1
- package/dist/entries/direction-context.d.ts +1 -1
- package/dist/entries/direction-context.js +1 -1
- package/dist/entries/direction.d.ts +1 -1
- package/dist/entries/direction.js +1 -1
- package/dist/entries/drawer.d.ts +1 -1
- package/dist/entries/drawer.js +1 -1
- package/dist/entries/dropdown-menu.d.ts +1 -1
- package/dist/entries/dropdown-menu.js +1 -1
- package/dist/entries/empty.d.ts +1 -1
- package/dist/entries/empty.js +1 -1
- package/dist/entries/expandable-data-table.d.ts +1 -1
- package/dist/entries/expandable-data-table.js +1 -1
- package/dist/entries/feedback-center-comments.d.ts +1 -1
- package/dist/entries/feedback-center-comments.js +1 -1
- package/dist/entries/feedback-center-footer.d.ts +1 -1
- package/dist/entries/feedback-center-footer.js +1 -1
- package/dist/entries/feedback-center-sheet-parts.d.ts +1 -1
- package/dist/entries/feedback-center-sheet-parts.js +1 -1
- package/dist/entries/feedback-center-sheet.d.ts +1 -1
- package/dist/entries/feedback-center-sheet.js +1 -1
- package/dist/entries/feedback-composer-parts.d.ts +1 -1
- package/dist/entries/feedback-composer-parts.js +1 -1
- package/dist/entries/feedback-composer-types.d.ts +1 -1
- package/dist/entries/feedback-composer-types.js +1 -1
- package/dist/entries/feedback-composer.d.ts +1 -1
- package/dist/entries/feedback-composer.js +1 -1
- package/dist/entries/feedback-date-format.d.ts +1 -1
- package/dist/entries/feedback-date-format.js +1 -1
- package/dist/entries/feedback-detail-sheet.d.ts +1 -1
- package/dist/entries/feedback-detail-sheet.js +1 -1
- package/dist/entries/feedback-emergency-fields.d.ts +1 -1
- package/dist/entries/feedback-emergency-fields.js +1 -1
- package/dist/entries/feedback-metrics.d.ts +1 -1
- package/dist/entries/feedback-metrics.js +1 -1
- package/dist/entries/feedback-sheet.d.ts +1 -1
- package/dist/entries/feedback-sheet.js +1 -1
- package/dist/entries/feedback-stakeholder-page-parts.d.ts +1 -1
- package/dist/entries/feedback-stakeholder-page-parts.js +1 -1
- package/dist/entries/feedback-stakeholder-page.d.ts +1 -1
- package/dist/entries/feedback-stakeholder-page.js +1 -1
- package/dist/entries/feedback-status-badge.d.ts +1 -1
- package/dist/entries/feedback-status-badge.js +1 -1
- package/dist/entries/feedback-table-row.d.ts +1 -1
- package/dist/entries/feedback-table-row.js +1 -1
- package/dist/entries/feedback-table-sort.d.ts +1 -1
- package/dist/entries/feedback-table-sort.js +1 -1
- package/dist/entries/feedback-table.d.ts +1 -1
- package/dist/entries/feedback-table.js +1 -1
- package/dist/entries/feedback-tracking-types.d.ts +1 -1
- package/dist/entries/feedback-tracking-types.js +1 -1
- package/dist/entries/feedback-triage-timeline.d.ts +1 -1
- package/dist/entries/feedback-triage-timeline.js +1 -1
- package/dist/entries/feedback-type-badge.d.ts +1 -1
- package/dist/entries/feedback-type-badge.js +1 -1
- package/dist/entries/feedback-unread-badge.d.ts +1 -1
- package/dist/entries/feedback-unread-badge.js +1 -1
- package/dist/entries/feedback-user-detail.d.ts +1 -1
- package/dist/entries/feedback-user-detail.js +1 -1
- package/dist/entries/feedback-user-list.d.ts +1 -1
- package/dist/entries/feedback-user-list.js +1 -1
- package/dist/entries/field.d.ts +1 -1
- package/dist/entries/field.js +1 -1
- package/dist/entries/file-upload-field-parts.d.ts +1 -1
- package/dist/entries/file-upload-field-parts.js +1 -1
- package/dist/entries/file-upload-field.d.ts +1 -1
- package/dist/entries/file-upload-field.js +1 -1
- package/dist/entries/form-context.d.ts +1 -1
- package/dist/entries/form-context.js +1 -1
- package/dist/entries/form-sheet.d.ts +1 -1
- package/dist/entries/form-sheet.js +1 -1
- package/dist/entries/form.d.ts +1 -1
- package/dist/entries/form.js +1 -1
- package/dist/entries/generated-connect-link.d.ts +1 -1
- package/dist/entries/generated-connect-link.js +1 -1
- package/dist/entries/hover-card.d.ts +1 -1
- package/dist/entries/hover-card.js +1 -1
- package/dist/entries/input-group.d.ts +1 -1
- package/dist/entries/input-group.js +1 -1
- package/dist/entries/input-otp.d.ts +1 -1
- package/dist/entries/input-otp.js +1 -1
- package/dist/entries/input.d.ts +1 -1
- package/dist/entries/input.js +1 -1
- package/dist/entries/invite-user-sheet.d.ts +1 -1
- package/dist/entries/invite-user-sheet.js +1 -1
- package/dist/entries/item.d.ts +1 -1
- package/dist/entries/item.js +1 -1
- package/dist/entries/kanban-board-parts.d.ts +1 -1
- package/dist/entries/kanban-board-parts.js +1 -1
- package/dist/entries/kanban-board-utils.d.ts +1 -1
- package/dist/entries/kanban-board-utils.js +1 -1
- package/dist/entries/kanban-board.d.ts +1 -1
- package/dist/entries/kanban-board.js +1 -1
- package/dist/entries/kanban-card.d.ts +1 -1
- package/dist/entries/kanban-card.js +1 -1
- package/dist/entries/kanban-column.d.ts +1 -1
- package/dist/entries/kanban-column.js +1 -1
- package/dist/entries/kanban-detail-sheet.d.ts +1 -1
- package/dist/entries/kanban-detail-sheet.js +1 -1
- package/dist/entries/kanban-page.d.ts +1 -1
- package/dist/entries/kanban-page.js +1 -1
- package/dist/entries/kanban-types.d.ts +1 -1
- package/dist/entries/kanban-types.js +1 -1
- package/dist/entries/kbd.d.ts +1 -1
- package/dist/entries/kbd.js +1 -1
- package/dist/entries/label.d.ts +1 -1
- package/dist/entries/label.js +1 -1
- package/dist/entries/loading-state.d.ts +1 -1
- package/dist/entries/loading-state.js +1 -1
- package/dist/entries/mcp-access-grouped-tool-picker.d.ts +1 -1
- package/dist/entries/mcp-access-grouped-tool-picker.js +1 -1
- package/dist/entries/mcp-access-tool-picker.d.ts +1 -1
- package/dist/entries/mcp-access-tool-picker.js +1 -1
- package/dist/entries/mcp-access-types.d.ts +1 -1
- package/dist/entries/mcp-access-types.js +1 -1
- package/dist/entries/mcp-client-setup.d.ts +1 -1
- package/dist/entries/mcp-client-setup.js +1 -1
- package/dist/entries/mcp-connect-clients.d.ts +1 -1
- package/dist/entries/mcp-connect-clients.js +1 -1
- package/dist/entries/mcp-plan-choice.d.ts +1 -1
- package/dist/entries/mcp-plan-choice.js +1 -1
- package/dist/entries/menubar.d.ts +1 -1
- package/dist/entries/menubar.js +1 -1
- package/dist/entries/metrics-strip.d.ts +1 -1
- package/dist/entries/metrics-strip.js +1 -1
- package/dist/entries/native-select.d.ts +1 -1
- package/dist/entries/native-select.js +1 -1
- package/dist/entries/navigation-menu-variants.d.ts +1 -1
- package/dist/entries/navigation-menu-variants.js +1 -1
- package/dist/entries/navigation-menu.d.ts +1 -1
- package/dist/entries/navigation-menu.js +1 -1
- package/dist/entries/page-header.d.ts +1 -1
- package/dist/entries/page-header.js +1 -1
- package/dist/entries/pagination.d.ts +1 -1
- package/dist/entries/pagination.js +1 -1
- package/dist/entries/palette.d.ts +2 -2
- package/dist/entries/palette.js +2 -2
- package/dist/entries/popover.d.ts +1 -1
- package/dist/entries/popover.js +1 -1
- package/dist/entries/progress.d.ts +1 -1
- package/dist/entries/progress.js +1 -1
- package/dist/entries/property-list.d.ts +1 -1
- package/dist/entries/property-list.js +1 -1
- package/dist/entries/radio-group.d.ts +1 -1
- package/dist/entries/radio-group.js +1 -1
- package/dist/entries/registry-docs-api.d.ts +1 -1
- package/dist/entries/registry-docs-api.js +1 -1
- package/dist/entries/registry-docs-code.d.ts +1 -1
- package/dist/entries/registry-docs-code.js +1 -1
- package/dist/entries/registry-docs-showcase.d.ts +1 -1
- package/dist/entries/registry-docs-showcase.js +1 -1
- package/dist/entries/registry-docs.d.ts +1 -1
- package/dist/entries/registry-docs.js +1 -1
- package/dist/entries/resizable.d.ts +1 -1
- package/dist/entries/resizable.js +1 -1
- package/dist/entries/scroll-area.d.ts +1 -1
- package/dist/entries/scroll-area.js +1 -1
- package/dist/entries/select.d.ts +1 -1
- package/dist/entries/select.js +1 -1
- package/dist/entries/separator.d.ts +1 -1
- package/dist/entries/separator.js +1 -1
- package/dist/entries/sheet.d.ts +1 -1
- package/dist/entries/sheet.js +1 -1
- package/dist/entries/sidebar/context.d.ts +1 -1
- package/dist/entries/sidebar/context.js +1 -1
- package/dist/entries/sidebar/group.d.ts +1 -1
- package/dist/entries/sidebar/group.js +1 -1
- package/dist/entries/sidebar/layout.d.ts +1 -1
- package/dist/entries/sidebar/layout.js +1 -1
- package/dist/entries/sidebar/menu.d.ts +1 -1
- package/dist/entries/sidebar/menu.js +1 -1
- package/dist/entries/sidebar/provider.d.ts +1 -1
- package/dist/entries/sidebar/provider.js +1 -1
- package/dist/entries/sidebar/rail.d.ts +1 -1
- package/dist/entries/sidebar/rail.js +1 -1
- package/dist/entries/sidebar/trigger.d.ts +1 -1
- package/dist/entries/sidebar/trigger.js +1 -1
- package/dist/entries/sidebar-account-menu-theme.d.ts +1 -1
- package/dist/entries/sidebar-account-menu-theme.js +1 -1
- package/dist/entries/sidebar-account-menu.d.ts +1 -1
- package/dist/entries/sidebar-account-menu.js +1 -1
- package/dist/entries/sidebar.d.ts +1 -1
- package/dist/entries/sidebar.js +1 -1
- package/dist/entries/skeleton.d.ts +1 -1
- package/dist/entries/skeleton.js +1 -1
- package/dist/entries/slider.d.ts +1 -1
- package/dist/entries/slider.js +1 -1
- package/dist/entries/sonner.d.ts +1 -1
- package/dist/entries/sonner.js +1 -1
- package/dist/entries/spinner.d.ts +1 -1
- package/dist/entries/spinner.js +1 -1
- package/dist/entries/submit-feedback-composer.d.ts +1 -1
- package/dist/entries/submit-feedback-composer.js +1 -1
- package/dist/entries/switch.d.ts +1 -1
- package/dist/entries/switch.js +1 -1
- package/dist/entries/table.d.ts +1 -1
- package/dist/entries/table.js +1 -1
- package/dist/entries/tabs-variants.d.ts +1 -1
- package/dist/entries/tabs-variants.js +1 -1
- package/dist/entries/tabs.d.ts +1 -1
- package/dist/entries/tabs.js +1 -1
- package/dist/entries/textarea.d.ts +1 -1
- package/dist/entries/textarea.js +1 -1
- package/dist/entries/timestamp-format.d.ts +1 -1
- package/dist/entries/timestamp-format.js +1 -1
- package/dist/entries/toggle-group.d.ts +1 -1
- package/dist/entries/toggle-group.js +1 -1
- package/dist/entries/toggle-variants.d.ts +1 -1
- package/dist/entries/toggle-variants.js +1 -1
- package/dist/entries/toggle.d.ts +1 -1
- package/dist/entries/toggle.js +1 -1
- package/dist/entries/tooltip.d.ts +1 -1
- package/dist/entries/tooltip.js +1 -1
- package/dist/entries/use-color-theme.d.ts +1 -1
- package/dist/entries/use-color-theme.js +1 -1
- package/dist/entries/use-feedback-composer-state.d.ts +1 -1
- package/dist/entries/use-feedback-composer-state.js +1 -1
- package/dist/entries/use-mobile.d.ts +1 -1
- package/dist/entries/use-mobile.js +1 -1
- package/dist/entries/utils.d.ts +1 -1
- package/dist/entries/utils.js +1 -1
- package/dist/entries/workflow-timeline.d.ts +1 -1
- package/dist/entries/workflow-timeline.js +1 -1
- package/dist/hooks/use-mobile.js +4 -2
- package/dist/lib/palette-presets.d.ts +1 -1
- package/dist/lib/palette.d.ts +1 -1
- package/dist/lib/palette.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { type BadgeVariantProps } from "./badge-variants";
|
|
2
|
+
import { type BadgeVariantProps } from "./badge-variants.js";
|
|
3
3
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & BadgeVariantProps & {
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
}): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Slot } from "radix-ui";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
4
|
-
import { badgeVariants } from "./badge-variants";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { badgeVariants } from "./badge-variants.js";
|
|
5
5
|
function Badge({ className, variant = "default", asChild = false, ...props }) {
|
|
6
6
|
const Comp = asChild ? Slot.Root : "span";
|
|
7
7
|
return (_jsx(Comp, { "data-slot": "badge", "data-variant": variant, className: cn(badgeVariants({ variant }), className), ...props }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
3
3
|
import { Slot } from "radix-ui";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
5
|
function Breadcrumb({ ...props }) {
|
|
6
6
|
return _jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Separator } from "./separator";
|
|
2
|
-
import { type ButtonGroupVariantProps } from "./button-group-variants";
|
|
1
|
+
import { Separator } from "./separator.js";
|
|
2
|
+
import { type ButtonGroupVariantProps } from "./button-group-variants.js";
|
|
3
3
|
declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & ButtonGroupVariantProps): import("@types/react").JSX.Element;
|
|
4
4
|
declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
5
5
|
asChild?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Slot } from "radix-ui";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
4
|
-
import { Separator } from "./separator";
|
|
5
|
-
import { buttonGroupVariants } from "./button-group-variants";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { Separator } from "./separator.js";
|
|
5
|
+
import { buttonGroupVariants } from "./button-group-variants.js";
|
|
6
6
|
function ButtonGroup({ className, orientation, ...props }) {
|
|
7
7
|
return (_jsx("div", { role: "group", "data-slot": "button-group", "data-orientation": orientation, className: cn(buttonGroupVariants({ orientation }), className), ...props }));
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RecipeVariantProps } from "#ui/styled-system/css";
|
|
2
|
-
declare const buttonVariants: import("../../styled-system/types").RecipeRuntimeFn<{
|
|
2
|
+
declare const buttonVariants: import("../../styled-system/types/index.js").RecipeRuntimeFn<{
|
|
3
3
|
variant: {
|
|
4
4
|
default: {
|
|
5
5
|
backgroundColor: "primary";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { type ButtonVariantProps } from "./button-variants";
|
|
2
|
+
import { type ButtonVariantProps } from "./button-variants.js";
|
|
3
3
|
declare function Button({ children, className, variant, size, asChild, disabled, loading, loadingLabel, onClick, tabIndex, ...props }: React.ComponentProps<"button"> & ButtonVariantProps & {
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
loading?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Slot } from "radix-ui";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
4
|
-
import { buttonVariants } from "./button-variants";
|
|
5
|
-
import { Spinner } from "./spinner";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { buttonVariants } from "./button-variants.js";
|
|
5
|
+
import { Spinner } from "./spinner.js";
|
|
6
6
|
function Button({ children, className, variant = "default", size = "default", asChild = false, disabled, loading = false, loadingLabel = "Loading", onClick, tabIndex, ...props }) {
|
|
7
7
|
const Comp = asChild ? Slot.Root : "button";
|
|
8
8
|
const isDisabled = disabled || loading;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DayPicker, type DayButton } from "react-day-picker";
|
|
3
|
-
import { Button } from "./button";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
4
|
type CalendarProps = React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
6
6
|
initialFocus?: boolean;
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
4
4
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Button } from "./button";
|
|
7
|
-
import { buttonVariants } from "./button-variants";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
|
+
import { buttonVariants } from "./button-variants.js";
|
|
8
8
|
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, initialFocus: _initialFocus, components, ...props }) {
|
|
9
9
|
const defaultClassNames = getDefaultClassNames();
|
|
10
10
|
const mergedClassNames = getCalendarClassNames({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
3
|
const cardVariants = {
|
|
4
4
|
section: "bg-transparent py-(--panel-padding) text-foreground shadow-none",
|
|
5
5
|
surface: "rounded-lg border bg-card py-(--panel-padding) text-card-foreground shadow-xs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
|
|
3
|
-
import { Button } from "./button";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
4
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
5
5
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
6
6
|
type CarouselOptions = UseCarouselParameters[0];
|
|
@@ -3,8 +3,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import useEmblaCarousel from "embla-carousel-react";
|
|
5
5
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
7
|
-
import { Button } from "./button";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
|
+
import { Button } from "./button.js";
|
|
8
8
|
const CarouselContext = React.createContext(null);
|
|
9
9
|
function useCarousel() {
|
|
10
10
|
const context = React.useContext(CarouselContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
3
|
function ChartPanel({ title, description, meta, actions, children, className, ...props }) {
|
|
4
4
|
return (_jsxs("section", { "data-slot": "chart-panel", className: cn("flex flex-col gap-(--panel-gap) border-t border-border bg-transparent py-(--panel-padding) text-foreground", className), ...props, children: [_jsxs("div", { className: "flex flex-col gap-2 px-(--panel-padding) sm:flex-row sm:items-start sm:justify-between", children: [_jsxs("div", { className: "grid gap-2", children: [_jsxs("div", { className: "flex flex-wrap items-baseline gap-x-3 gap-y-1", children: [_jsx("h2", { className: "leading-none font-medium", children: title }), meta ? (_jsx("div", { className: "font-mono text-sm text-muted-foreground tabular-nums", children: meta })) : null] }), description ? _jsx("p", { className: "text-sm text-muted-foreground", children: description }) : null] }), actions ? _jsx("div", { className: "flex items-center gap-2", children: actions }) : null] }), _jsx("div", { className: "px-(--panel-padding)", children: children })] }));
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
4
|
-
import { getNestedPayloadString, getPayloadConfigFromPayload, useChart, } from "./chart-context";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { getNestedPayloadString, getPayloadConfigFromPayload, useChart, } from "./chart-context.js";
|
|
5
5
|
function ChartTooltipContent({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }) {
|
|
6
6
|
const { config } = useChart();
|
|
7
7
|
const tooltipLabel = useChartTooltipLabel({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as RechartsPrimitive from "recharts";
|
|
3
|
-
import { type ChartConfig } from "./chart-context";
|
|
4
|
-
import { ChartTooltipContent } from "./chart-tooltip";
|
|
3
|
+
import { type ChartConfig } from "./chart-context.js";
|
|
4
|
+
import { ChartTooltipContent } from "./chart-tooltip.js";
|
|
5
5
|
declare function ChartContainer({ id, className, children, config, initialDimension, ...props }: React.ComponentProps<"div"> & {
|
|
6
6
|
config: ChartConfig;
|
|
7
7
|
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
@@ -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 * as RechartsPrimitive from "recharts";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
5
|
-
import { ChartContext, THEMES, THEME_NAMES, getPayloadConfigFromPayload, useChart, } from "./chart-context";
|
|
6
|
-
import { ChartTooltipContent } from "./chart-tooltip";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
import { ChartContext, THEMES, THEME_NAMES, getPayloadConfigFromPayload, useChart, } from "./chart-context.js";
|
|
6
|
+
import { ChartTooltipContent } from "./chart-tooltip.js";
|
|
7
7
|
const INITIAL_DIMENSION = { width: 320, height: 200 };
|
|
8
8
|
function ChartContainer({ id, className, children, config, initialDimension = INITIAL_DIMENSION, ...props }) {
|
|
9
9
|
const uniqueId = React.useId();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { CheckIcon, MinusIcon } from "lucide-react";
|
|
4
4
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Checkbox({ className, ...props }) {
|
|
7
7
|
return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", className: cn("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[var(--focus-ring-width)] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary dark:data-[state=indeterminate]:bg-primary", className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "grid place-content-center text-current transition-none", children: props.checked === "indeterminate" ? (_jsx(MinusIcon, { className: "size-3.5" })) : (_jsx(CheckIcon, { className: "size-3.5" })) }) }));
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { lazy, Suspense } from "react";
|
|
3
|
-
import { ThemeProvider, useTheme } from "./color-theme";
|
|
4
|
-
import { Toaster } from "./sonner";
|
|
5
|
-
import { TooltipProvider } from "./tooltip";
|
|
3
|
+
import { ThemeProvider, useTheme } from "./color-theme.js";
|
|
4
|
+
import { Toaster } from "./sonner.js";
|
|
5
|
+
import { TooltipProvider } from "./tooltip.js";
|
|
6
6
|
const LazyAgentation = lazy(() => import("agentation").then((module) => ({ default: module.Agentation })));
|
|
7
7
|
function CiridaeUiToaster() {
|
|
8
8
|
const { mode } = useTheme();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { PaletteSelection } from "../../lib/palette";
|
|
2
|
+
import type { PaletteSelection } from "../../lib/palette.js";
|
|
3
3
|
type ThemeMode = "light" | "dark" | "system";
|
|
4
4
|
type ResolvedTheme = "light" | "dark";
|
|
5
5
|
type ThemeContextValue = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { type ResolvedTheme, type ThemeMode, type ThemeProviderProps } from "./color-theme-context";
|
|
2
|
+
import { type ResolvedTheme, type ThemeMode, type ThemeProviderProps } from "./color-theme-context.js";
|
|
3
3
|
declare function ThemeProvider({ children, defaultMode, defaultPalette, storageKey, paletteStorageKey, }: ThemeProviderProps): React.JSX.Element;
|
|
4
4
|
export { ThemeProvider, type ResolvedTheme, type ThemeMode, type ThemeProviderProps };
|
|
5
|
-
export { useTheme } from "./use-color-theme";
|
|
5
|
+
export { useTheme } from "./use-color-theme.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { PALETTE_TOKEN_NAMES, canonicalPaletteSelection, derivePaletteTokens, paletteSelectionKey, resolvePaletteSelection, } from "../../lib/palette";
|
|
4
|
-
import { readStoredValue, removeStoredValue, writeStoredValue } from "../../lib/browser-storage";
|
|
5
|
-
import { ThemeContext, } from "./color-theme-context";
|
|
3
|
+
import { PALETTE_TOKEN_NAMES, canonicalPaletteSelection, derivePaletteTokens, paletteSelectionKey, resolvePaletteSelection, } from "../../lib/palette.js";
|
|
4
|
+
import { readStoredValue, removeStoredValue, writeStoredValue } from "../../lib/browser-storage.js";
|
|
5
|
+
import { ThemeContext, } from "./color-theme-context.js";
|
|
6
6
|
const defaultStorageKey = "ciridae-ui-theme";
|
|
7
7
|
const defaultPaletteStorageKey = "ciridae-ui-palette";
|
|
8
8
|
function ThemeProvider({ children, defaultMode = "system", defaultPalette, storageKey = defaultStorageKey, paletteStorageKey = defaultPaletteStorageKey, }) {
|
|
@@ -32,7 +32,9 @@ function ThemeProvider({ children, defaultMode = "system", defaultPalette, stora
|
|
|
32
32
|
}, [resolvedTheme]);
|
|
33
33
|
usePaletteTokens(palette, resolvedTheme);
|
|
34
34
|
React.useEffect(() => {
|
|
35
|
-
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
35
|
+
const mediaQuery = window.matchMedia?.("(prefers-color-scheme: dark)");
|
|
36
|
+
if (!mediaQuery)
|
|
37
|
+
return;
|
|
36
38
|
const updateSystemTheme = () => {
|
|
37
39
|
setSystemTheme(mediaQuery.matches ? "dark" : "light");
|
|
38
40
|
};
|
|
@@ -139,7 +141,7 @@ function parseStoredPalette(value) {
|
|
|
139
141
|
return null;
|
|
140
142
|
}
|
|
141
143
|
function getSystemTheme() {
|
|
142
|
-
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
144
|
+
return window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
143
145
|
}
|
|
144
146
|
export { ThemeProvider };
|
|
145
|
-
export { useTheme } from "./use-color-theme";
|
|
147
|
+
export { useTheme } from "./use-color-theme.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
4
4
|
import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Button } from "./button";
|
|
7
|
-
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "./input-group";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "./input-group.js";
|
|
8
8
|
const Combobox = ComboboxPrimitive.Root;
|
|
9
9
|
function ComboboxValue({ ...props }) {
|
|
10
10
|
return _jsx(ComboboxPrimitive.Value, { "data-slot": "combobox-value", ...props });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Command as CommandPrimitive } from "cmdk";
|
|
3
|
-
import { Dialog } from "./dialog";
|
|
3
|
+
import { Dialog } from "./dialog.js";
|
|
4
4
|
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
|
|
5
5
|
declare function CommandDialog({ title, description, children, className, commandProps, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
6
|
title?: string;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Command as CommandPrimitive } from "cmdk";
|
|
4
4
|
import { SearchIcon, XIcon } from "lucide-react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "./dialog";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "./dialog.js";
|
|
7
7
|
function Command({ className, ...props }) {
|
|
8
8
|
return (_jsx(CommandPrimitive, { "data-slot": "command", className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className), ...props }));
|
|
9
9
|
}
|
|
@@ -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 { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
const ContextMenuPortalContainerContext = React.createContext({
|
|
8
8
|
container: null,
|
|
9
9
|
disableModalBehavior: false,
|
|
@@ -4,11 +4,11 @@ import { closestCenter, DndContext, KeyboardSensor, PointerSensor, useSensor, us
|
|
|
4
4
|
import { arrayMove, SortableContext, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy, } from "@dnd-kit/sortable";
|
|
5
5
|
import { CSS } from "@dnd-kit/utilities";
|
|
6
6
|
import { GripVerticalIcon, SlidersHorizontalIcon } from "lucide-react";
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
8
|
-
import { useDataTable } from "./data-table-context";
|
|
9
|
-
import { Button } from "./button";
|
|
10
|
-
import { Checkbox } from "./checkbox";
|
|
11
|
-
import { Sheet, SheetBody, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "./sheet";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
|
+
import { useDataTable } from "./data-table-context.js";
|
|
9
|
+
import { Button } from "./button.js";
|
|
10
|
+
import { Checkbox } from "./checkbox.js";
|
|
11
|
+
import { Sheet, SheetBody, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "./sheet.js";
|
|
12
12
|
/**
|
|
13
13
|
* Choose which columns appear and in what order.
|
|
14
14
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { Table as TanStackTable } from "@tanstack/react-table";
|
|
3
|
-
import type { ResolvedDataTableLabels, TanStackDataTableProps } from "./data-table-tanstack";
|
|
3
|
+
import type { ResolvedDataTableLabels, TanStackDataTableProps } from "./data-table-tanstack.js";
|
|
4
4
|
declare function DataTableTools<TData, TValue>({ labels, props, table, }: {
|
|
5
5
|
labels: ResolvedDataTableLabels;
|
|
6
6
|
props: TanStackDataTableProps<TData, TValue>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { SearchIcon, SlidersHorizontalIcon } from "lucide-react";
|
|
3
|
-
import { Button } from "./button";
|
|
4
|
-
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "./dropdown-menu";
|
|
5
|
-
import { Input } from "./input";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "./dropdown-menu.js";
|
|
5
|
+
import { Input } from "./input.js";
|
|
6
6
|
function DataTableTools({ labels, props, table, }) {
|
|
7
7
|
return (_jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between", children: [_jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [props.filterMode !== false ? (_jsx(DataTableFilter, { filterMode: props.filterMode ?? "global", placeholder: props.filterPlaceholder ?? labels.filterPlaceholder, table: table })) : null, props.toolbar] }), _jsxs("div", { className: "flex items-center gap-2", children: [props.actions, props.enableColumnVisibility !== false ? (_jsx(DataTableColumnVisibility, { table: table, title: labels.columns })) : null] })] }));
|
|
8
8
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { CheckIcon, PlusCircleIcon } from "lucide-react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
4
|
-
import { useDataTable } from "./data-table-context";
|
|
5
|
-
import { Badge } from "./badge";
|
|
6
|
-
import { Button } from "./button";
|
|
7
|
-
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, } from "./command";
|
|
8
|
-
import { Popover, PopoverContent, PopoverTrigger } from "./popover";
|
|
9
|
-
import { Separator } from "./separator";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { useDataTable } from "./data-table-context.js";
|
|
5
|
+
import { Badge } from "./badge.js";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, } from "./command.js";
|
|
8
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
9
|
+
import { Separator } from "./separator.js";
|
|
10
10
|
/**
|
|
11
11
|
* The facet-filter popover, controlled: one button per facet that wears the
|
|
12
12
|
* current selection, checkable values inside. The caller owns the selection --
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowDownIcon, ArrowUpIcon, ChevronsUpDownIcon } from "lucide-react";
|
|
3
3
|
import { flexRender, } from "@tanstack/react-table";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
5
|
-
import { Button } from "./button";
|
|
6
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
import { Button } from "./button.js";
|
|
6
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table.js";
|
|
7
7
|
/** Font taken from the enclosing `TableHead`; see `DataTableHeaderCell`. */
|
|
8
8
|
const inheritType = { fontSize: "inherit", fontWeight: "inherit", lineHeight: "inherit" };
|
|
9
9
|
function DataTableGrid({ empty, getRowClassName, onRowClick, rows, table, }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Table as TanStackTable } from "@tanstack/react-table";
|
|
2
|
-
import type { DataTablePaginationVariant, ResolvedDataTableLabels } from "./data-table-tanstack";
|
|
2
|
+
import type { DataTablePaginationVariant, ResolvedDataTableLabels } from "./data-table-tanstack.js";
|
|
3
3
|
declare function DataTablePagination<TData>({ footerControls, labels, pageSizeOptions, selectedRows, table, totalRows, variant, }: {
|
|
4
4
|
/**
|
|
5
5
|
* Controls that belong beside the row count rather than above the table --
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronLeftIcon, ChevronRightIcon, ChevronsLeftIcon, ChevronsRightIcon, } from "lucide-react";
|
|
3
|
-
import { Button } from "./button";
|
|
4
|
-
import { NativeSelect, NativeSelectOption } from "./native-select";
|
|
5
|
-
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem } from "./pagination";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
import { NativeSelect, NativeSelectOption } from "./native-select.js";
|
|
5
|
+
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem } from "./pagination.js";
|
|
6
6
|
function DataTablePagination({ footerControls, labels, pageSizeOptions, selectedRows, table, totalRows, variant = "compact", }) {
|
|
7
7
|
const pagination = table.getState().pagination;
|
|
8
8
|
// `-1` is TanStack's "unknown", which a server-driven table reports until it
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { SearchIcon } from "lucide-react";
|
|
3
|
-
import { Input } from "./input";
|
|
3
|
+
import { Input } from "./input.js";
|
|
4
4
|
/**
|
|
5
5
|
* Shows what is being typed. Any debounce that turns the value into an address
|
|
6
6
|
* belongs in the caller's table state, next to everything else that decides
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { getCoreRowModel, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, } from "@tanstack/react-table";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
5
|
-
import { TableSkeleton } from "./loading-state";
|
|
6
|
-
import { DataTableTools } from "./data-table-controls";
|
|
7
|
-
import { DataTableProvider } from "./data-table-context";
|
|
8
|
-
import { DataTableGrid } from "./data-table-grid";
|
|
9
|
-
import { DataTablePagination } from "./data-table-pagination";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
import { TableSkeleton } from "./loading-state.js";
|
|
6
|
+
import { DataTableTools } from "./data-table-controls.js";
|
|
7
|
+
import { DataTableProvider } from "./data-table-context.js";
|
|
8
|
+
import { DataTableGrid } from "./data-table-grid.js";
|
|
9
|
+
import { DataTablePagination } from "./data-table-pagination.js";
|
|
10
10
|
const defaultLabels = {
|
|
11
11
|
columns: "Columns",
|
|
12
12
|
empty: "No results.",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { TableHead } from "./table";
|
|
3
|
-
import { type TableSkeletonProps } from "./loading-state";
|
|
4
|
-
import { TanStackDataTable } from "./data-table-tanstack";
|
|
5
|
-
import type { DataTableLabels, TanStackDataTableProps } from "./data-table-tanstack";
|
|
2
|
+
import { TableHead } from "./table.js";
|
|
3
|
+
import { type TableSkeletonProps } from "./loading-state.js";
|
|
4
|
+
import { TanStackDataTable } from "./data-table-tanstack.js";
|
|
5
|
+
import type { DataTableLabels, TanStackDataTableProps } from "./data-table-tanstack.js";
|
|
6
6
|
type SortDirection = "asc" | "desc";
|
|
7
7
|
declare function DataTable({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
8
|
declare function DataTableToolbar({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowDownIcon, ArrowUpDownIcon, ArrowUpIcon } from "lucide-react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
4
|
-
import { Button } from "./button";
|
|
5
|
-
import { TableHead } from "./table";
|
|
6
|
-
import { TableSkeleton } from "./loading-state";
|
|
7
|
-
import { TanStackDataTable } from "./data-table-tanstack";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { Button } from "./button.js";
|
|
5
|
+
import { TableHead } from "./table.js";
|
|
6
|
+
import { TableSkeleton } from "./loading-state.js";
|
|
7
|
+
import { TanStackDataTable } from "./data-table-tanstack.js";
|
|
8
8
|
function DataTable({ className, ...props }) {
|
|
9
9
|
return (_jsx("div", { "data-slot": "data-table", className: cn("grid gap-(--panel-gap)", className), ...props }));
|
|
10
10
|
}
|
|
@@ -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 { XIcon } from "lucide-react";
|
|
4
4
|
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Button } from "./button";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
7
|
const DialogPortalContainerContext = React.createContext({
|
|
8
8
|
container: null,
|
|
9
9
|
disableModalBehavior: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
5
|
const DrawerPortalContainerContext = React.createContext({
|
|
6
6
|
container: null,
|
|
7
7
|
disableModalBehavior: false,
|
|
@@ -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 { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
const DropdownMenuPortalContainerContext = 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 { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
4
|
function Empty({ className, ...props }) {
|
|
5
5
|
return (_jsx("div", { "data-slot": "empty", className: cn("flex min-w-0 flex-1 flex-col items-center justify-center gap-(--panel-gap) rounded-lg border-dashed p-(--panel-padding) text-center text-balance md:p-8", className), ...props }));
|
|
6
6
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ChevronRightIcon } from "lucide-react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Button } from "./button";
|
|
7
|
-
import { DataTable, DataTableContent, DataTableEmpty } from "./data-table";
|
|
8
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
|
+
import { DataTable, DataTableContent, DataTableEmpty } from "./data-table.js";
|
|
8
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table.js";
|
|
9
9
|
function ExpandableDataTable({ rows, columns, getRowId, getRowLabel, renderExpandedRow, defaultExpandedRowId = null, expandedRowId, onExpandedRowIdChange, empty = "No rows found.", className, ...props }) {
|
|
10
10
|
const tableId = React.useId();
|
|
11
11
|
const [uncontrolledExpandedRowId, setUncontrolledExpandedRowId] = React.useState(defaultExpandedRowId);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import { Label } from "./label";
|
|
2
|
+
import { Label } from "./label.js";
|
|
3
3
|
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import("@types/react").JSX.Element;
|
|
4
4
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
5
5
|
variant?: "legend" | "label";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Label } from "./label";
|
|
7
|
-
import { Separator } from "./separator";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Label } from "./label.js";
|
|
7
|
+
import { Separator } from "./separator.js";
|
|
8
8
|
function FieldSet({ className, ...props }) {
|
|
9
9
|
return (_jsx("fieldset", { "data-slot": "field-set", className: cn("flex flex-col gap-[calc(var(--panel-gap)+0.5rem)]", "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className), ...props }));
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { FileIcon, PaperclipIcon, UploadCloudIcon, XIcon } from "lucide-react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
4
|
-
import { Button } from "./button";
|
|
5
|
-
import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemGroupItem, ItemMedia, ItemTitle, } from "./item";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { Button } from "./button.js";
|
|
5
|
+
import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemGroupItem, ItemMedia, ItemTitle, } from "./item.js";
|
|
6
6
|
function FileUploadCompactControl({ acceptedFileTypes, disabled, dragActive, error, files, inputId, inputRef, maxAttachments, onAddFiles, onDragActiveChange, }) {
|
|
7
7
|
const isAtLimit = files.length >= maxAttachments;
|
|
8
8
|
return (_jsxs("div", { "data-drag-active": dragActive, className: cn("flex items-center gap-3 rounded-md border bg-card px-3 py-2 transition-colors", "data-[drag-active=true]:border-ring data-[drag-active=true]:bg-muted/50", disabled && "cursor-not-allowed opacity-60"), onDragEnter: (event) => handleDragEnter(event, disabled, onDragActiveChange), onDragLeave: (event) => handleDragLeave(event, onDragActiveChange), onDragOver: (event) => event.preventDefault(), onDrop: (event) => handleDrop(event, { disabled, onAddFiles, onDragActiveChange }), children: [_jsx("input", { accept: acceptedFileTypes, "aria-describedby": error ? `${inputId}-error` : undefined, className: "sr-only", disabled: disabled || isAtLimit, id: inputId, multiple: true, onChange: (event) => handleFileInputChange(event, onAddFiles), ref: inputRef, type: "file" }), _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [_jsx(PaperclipIcon, { className: "size-4 shrink-0 text-muted-foreground" }), _jsxs("div", { className: "min-w-0", children: [_jsx("div", { className: "truncate text-sm font-medium", children: files.length > 0 ? `${files.length} attached` : "Attach files" }), _jsx("div", { className: "truncate text-xs text-muted-foreground", children: "Files stay in the browser until submit." })] })] }), _jsx(Button, { disabled: disabled || isAtLimit, onClick: () => inputRef.current?.click(), size: "sm", type: "button", variant: "outline", children: "Attach" })] }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { FileUploadCompactControl, FileUploadDropZone, FileUploadList, } from "./file-upload-field-parts";
|
|
4
|
-
import { Field, FieldContent, FieldDescription, FieldError, FieldLabel } from "./field";
|
|
3
|
+
import { FileUploadCompactControl, FileUploadDropZone, FileUploadList, } from "./file-upload-field-parts.js";
|
|
4
|
+
import { Field, FieldContent, FieldDescription, FieldError, FieldLabel } from "./field.js";
|
|
5
5
|
function FileUploadField({ acceptedFileTypes, className, description, disabled = false, files, label = "Attachments", maxAttachmentSizeMb = 10, maxAttachments = 4, onFilesChange, showConstraints = true, variant = "dropzone", }) {
|
|
6
6
|
const inputId = React.useId();
|
|
7
7
|
const uploadState = useFileUploadFieldState({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "./alert-dialog";
|
|
4
|
-
import { Sheet, SheetTrigger } from "./sheet";
|
|
3
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "./alert-dialog.js";
|
|
4
|
+
import { Sheet, SheetTrigger } from "./sheet.js";
|
|
5
5
|
const FormSheetContext = React.createContext(null);
|
|
6
6
|
function useFormSheetActions() {
|
|
7
7
|
const actions = React.useContext(FormSheetContext);
|