@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,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { type ButtonVariantProps } from "
|
|
2
|
+
import { type ButtonVariantProps } from "./button-variants";
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Slot } from "radix-ui";
|
|
3
|
-
import { cn } from "
|
|
4
|
-
import { buttonVariants } from "
|
|
5
|
-
import { Spinner } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
import { buttonVariants } from "./button-variants";
|
|
5
|
+
import { Spinner } from "./spinner";
|
|
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,9 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DayPicker, type DayButton } from "react-day-picker";
|
|
3
|
-
import { Button } from "
|
|
3
|
+
import { Button } from "./button";
|
|
4
4
|
type CalendarProps = React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
6
|
+
initialFocus?: boolean;
|
|
6
7
|
};
|
|
7
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: CalendarProps): React.JSX.Element;
|
|
8
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, initialFocus: _initialFocus, components, ...props }: CalendarProps): React.JSX.Element;
|
|
8
9
|
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): React.JSX.Element;
|
|
9
10
|
export { Calendar, CalendarDayButton };
|
|
@@ -2,10 +2,10 @@ 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 "
|
|
6
|
-
import { Button } from "
|
|
7
|
-
import { buttonVariants } from "
|
|
8
|
-
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
import { Button } from "./button";
|
|
7
|
+
import { buttonVariants } from "./button-variants";
|
|
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({
|
|
11
11
|
buttonVariant,
|
|
@@ -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
|
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 "
|
|
3
|
+
import { Button } from "./button";
|
|
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 "
|
|
7
|
-
import { Button } from "
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
|
+
import { Button } from "./button";
|
|
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 "
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
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 "
|
|
4
|
-
import { getNestedPayloadString, getPayloadConfigFromPayload, useChart, } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
import { getNestedPayloadString, getPayloadConfigFromPayload, useChart, } from "./chart-context";
|
|
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 "
|
|
4
|
-
import { ChartTooltipContent } from "
|
|
3
|
+
import { type ChartConfig } from "./chart-context";
|
|
4
|
+
import { ChartTooltipContent } from "./chart-tooltip";
|
|
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 "
|
|
5
|
-
import { ChartContext, THEMES, THEME_NAMES, getPayloadConfigFromPayload, useChart, } from "
|
|
6
|
-
import { ChartTooltipContent } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import { ChartContext, THEMES, THEME_NAMES, getPayloadConfigFromPayload, useChart, } from "./chart-context";
|
|
6
|
+
import { ChartTooltipContent } from "./chart-tooltip";
|
|
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 } from "lucide-react";
|
|
4
4
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
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 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary", className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "grid place-content-center text-current transition-none", children: _jsx(CheckIcon, { className: "size-3.5" }) }) }));
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type ThemeProviderProps } from "
|
|
2
|
+
import { type ThemeProviderProps } from "./color-theme";
|
|
3
3
|
export type CiridaeUiProviderProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
agentation?: boolean;
|
|
6
6
|
} & Pick<ThemeProviderProps, "defaultMode">;
|
|
7
|
-
declare function CiridaeUiProvider({ agentation, children, defaultMode }: CiridaeUiProviderProps): import("react").JSX.Element;
|
|
7
|
+
declare function CiridaeUiProvider({ agentation, children, defaultMode }: CiridaeUiProviderProps): import("@types/react").JSX.Element;
|
|
8
8
|
export { CiridaeUiProvider };
|
|
@@ -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 "
|
|
4
|
-
import { Toaster } from "
|
|
5
|
-
import { TooltipProvider } from "
|
|
3
|
+
import { ThemeProvider, useTheme } from "./color-theme";
|
|
4
|
+
import { Toaster } from "./sonner";
|
|
5
|
+
import { TooltipProvider } from "./tooltip";
|
|
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 { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
2
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react").JSX.Element;
|
|
3
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react").JSX.Element;
|
|
4
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react").JSX.Element;
|
|
2
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("@types/react").JSX.Element;
|
|
3
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("@types/react").JSX.Element;
|
|
4
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("@types/react").JSX.Element;
|
|
5
5
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -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 "
|
|
6
|
-
import { Button } from "
|
|
7
|
-
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
import { Button } from "./button";
|
|
7
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "./input-group";
|
|
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 "
|
|
3
|
+
import { Dialog } from "./dialog";
|
|
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 "
|
|
6
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "./dialog";
|
|
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 "
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
7
|
const ContextMenuPortalContainerContext = React.createContext({
|
|
8
8
|
container: null,
|
|
9
9
|
disableModalBehavior: false,
|
|
@@ -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 "
|
|
4
|
-
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "
|
|
5
|
-
import { Input } from "
|
|
3
|
+
import { Button } from "./button";
|
|
4
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "./dropdown-menu";
|
|
5
|
+
import { Input } from "./input";
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowDownIcon, ArrowUpDownIcon, ArrowUpIcon } from "lucide-react";
|
|
3
3
|
import { flexRender, } from "@tanstack/react-table";
|
|
4
|
-
import { cn } from "
|
|
5
|
-
import { Button } from "
|
|
6
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import { Button } from "./button";
|
|
6
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table";
|
|
7
7
|
function DataTableGrid({ empty, getRowClassName, onRowClick, rows, table, }) {
|
|
8
8
|
return (_jsxs(Table, { children: [_jsx(TableHeader, { children: table.getHeaderGroups().map((group) => (_jsx(TableRow, { children: group.headers.map((header) => (_jsx(TableHead, { style: { width: header.getSize() }, children: header.isPlaceholder ? null : _jsx(DataTableHeaderCell, { header: header }) }, header.id))) }, group.id))) }), _jsx(TableBody, { children: rows.length ? (rows.map((row) => (_jsx(DataTableDataRow, { getRowClassName: getRowClassName, onRowClick: onRowClick, row: row }, row.id)))) : (_jsx(TableRow, { children: _jsx(TableCell, { className: "h-32 text-center text-sm text-muted-foreground", colSpan: table.getVisibleLeafColumns().length, children: empty }) })) })] }));
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronLeftIcon, ChevronRightIcon, ChevronsLeftIcon, ChevronsRightIcon, } from "lucide-react";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { NativeSelect, NativeSelectOption } from "
|
|
3
|
+
import { Button } from "./button";
|
|
4
|
+
import { NativeSelect, NativeSelectOption } from "./native-select";
|
|
5
5
|
function DataTablePagination({ labels, pageSizeOptions, selectedRows, table, totalRows, }) {
|
|
6
6
|
const pagination = table.getState().pagination;
|
|
7
7
|
const pageCount = Math.max(table.getPageCount(), 1);
|
|
@@ -1,8 +1,8 @@
|
|
|
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 "
|
|
5
|
-
import { TableSkeleton } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import { TableSkeleton } from "./loading-state";
|
|
6
6
|
import { DataTableTools } from "./data-table-controls";
|
|
7
7
|
import { DataTableGrid } from "./data-table-grid";
|
|
8
8
|
import { DataTablePagination } from "./data-table-pagination";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { TableHead } from "
|
|
3
|
-
import { type TableSkeletonProps } from "
|
|
2
|
+
import { TableHead } from "./table";
|
|
3
|
+
import { type TableSkeletonProps } from "./loading-state";
|
|
4
4
|
import { TanStackDataTable } from "./data-table-tanstack";
|
|
5
5
|
import type { DataTableLabels, TanStackDataTableProps } from "./data-table-tanstack";
|
|
6
6
|
type SortDirection = "asc" | "desc";
|
|
@@ -1,9 +1,9 @@
|
|
|
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 "
|
|
4
|
-
import { Button } from "
|
|
5
|
-
import { TableHead } from "
|
|
6
|
-
import { TableSkeleton } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
import { Button } from "./button";
|
|
5
|
+
import { TableHead } from "./table";
|
|
6
|
+
import { TableSkeleton } from "./loading-state";
|
|
7
7
|
import { TanStackDataTable } from "./data-table-tanstack";
|
|
8
8
|
function DataTable({ className, ...props }) {
|
|
9
9
|
return (_jsx("div", { "data-slot": "data-table", className: cn("grid gap-(--panel-gap)", className), ...props }));
|
|
@@ -10,7 +10,8 @@ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogP
|
|
|
10
10
|
declare function DialogPortal({ container, ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
|
|
11
11
|
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
|
|
12
12
|
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
|
|
13
|
-
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
13
|
+
declare function DialogContent({ className, children, overlayClassName, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
14
|
+
overlayClassName?: string;
|
|
14
15
|
showCloseButton?: boolean;
|
|
15
16
|
}): React.JSX.Element;
|
|
16
17
|
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -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 "
|
|
6
|
-
import { Button } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
import { Button } from "./button";
|
|
7
7
|
const DialogPortalContainerContext = React.createContext({
|
|
8
8
|
container: null,
|
|
9
9
|
disableModalBehavior: false,
|
|
@@ -30,8 +30,8 @@ function DialogClose({ ...props }) {
|
|
|
30
30
|
function DialogOverlay({ className, ...props }) {
|
|
31
31
|
return (_jsx(DialogPrimitive.Overlay, { "data-slot": "dialog-overlay", className: cn("fixed inset-0 z-50 bg-overlay data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", className), ...props }));
|
|
32
32
|
}
|
|
33
|
-
function DialogContent({ className, children, showCloseButton = true, ...props }) {
|
|
34
|
-
return (_jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { "data-slot": "dialog-content", className: cn("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-(--panel-gap) rounded-lg border bg-background p-(--panel-padding) shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 sm:max-w-lg", className), ...props, children: [children, showCloseButton && (_jsxs(DialogPrimitive.Close, { "data-slot": "dialog-close", className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-[var(--focus-ring-width)] focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: "Close" })] }))] })] }));
|
|
33
|
+
function DialogContent({ className, children, overlayClassName, showCloseButton = true, ...props }) {
|
|
34
|
+
return (_jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [_jsx(DialogOverlay, { className: overlayClassName }), _jsxs(DialogPrimitive.Content, { "data-slot": "dialog-content", className: cn("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-(--panel-gap) rounded-lg border bg-background p-(--panel-padding) shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 sm:max-w-lg", className), ...props, children: [children, showCloseButton && (_jsxs(DialogPrimitive.Close, { "data-slot": "dialog-close", className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-[var(--focus-ring-width)] focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: "Close" })] }))] })] }));
|
|
35
35
|
}
|
|
36
36
|
function DialogHeader({ className, ...props }) {
|
|
37
37
|
return (_jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-2 text-center sm:text-left", className), ...props }));
|
|
@@ -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 "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
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 "
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
7
|
const DropdownMenuPortalContainerContext = React.createContext({
|
|
8
8
|
container: null,
|
|
9
9
|
disableModalBehavior: false,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
declare function Empty({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
3
|
-
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
2
|
+
declare function Empty({ className, ...props }: React.ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
3
|
+
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
4
4
|
declare const emptyMediaVariants: (props?: ({
|
|
5
5
|
variant?: "default" | "icon" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): import("react").JSX.Element;
|
|
8
|
-
declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
9
|
-
declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): import("react").JSX.Element;
|
|
10
|
-
declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): import("@types/react").JSX.Element;
|
|
8
|
+
declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
9
|
+
declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): import("@types/react").JSX.Element;
|
|
10
|
+
declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
11
11
|
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia };
|
|
@@ -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 "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
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 "
|
|
6
|
-
import { Button } from "
|
|
7
|
-
import { DataTable, DataTableContent, DataTableEmpty } from "
|
|
8
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow
|
|
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";
|
|
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,26 +1,26 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import { Label } from "
|
|
3
|
-
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import("react").JSX.Element;
|
|
2
|
+
import { Label } from "./label";
|
|
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";
|
|
6
|
-
}): import("react").JSX.Element;
|
|
7
|
-
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
6
|
+
}): import("@types/react").JSX.Element;
|
|
7
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
8
8
|
declare const fieldVariants: (props?: ({
|
|
9
9
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
10
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
-
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react").JSX.Element;
|
|
12
|
-
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
10
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
11
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("@types/react").JSX.Element;
|
|
12
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
13
13
|
declare function FieldLabel({ children, className, required, ...props }: React.ComponentProps<typeof Label> & {
|
|
14
14
|
required?: boolean;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
16
|
-
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
17
|
-
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import("react").JSX.Element;
|
|
15
|
+
}): import("@types/react").JSX.Element;
|
|
16
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
17
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import("@types/react").JSX.Element;
|
|
18
18
|
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
19
19
|
children?: React.ReactNode;
|
|
20
|
-
}): import("react").JSX.Element;
|
|
20
|
+
}): import("@types/react").JSX.Element;
|
|
21
21
|
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
22
22
|
errors?: Array<{
|
|
23
23
|
message?: string;
|
|
24
24
|
} | undefined>;
|
|
25
|
-
}): import("react").JSX.Element | null;
|
|
25
|
+
}): import("@types/react").JSX.Element | null;
|
|
26
26
|
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
|
|
@@ -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 "
|
|
6
|
-
import { Label } from "
|
|
7
|
-
import { Separator } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
import { Label } from "./label";
|
|
7
|
+
import { Separator } from "./separator";
|
|
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 "
|
|
4
|
-
import { Button } from "
|
|
5
|
-
import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
import { Button } from "./button";
|
|
5
|
+
import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, } from "./item";
|
|
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
3
|
import { FileUploadCompactControl, FileUploadDropZone, FileUploadList, } from "./file-upload-field-parts";
|
|
4
|
-
import { Field, FieldContent, FieldDescription, FieldError, FieldLabel
|
|
4
|
+
import { Field, FieldContent, FieldDescription, FieldError, FieldLabel } from "./field";
|
|
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({
|
|
@@ -13,7 +13,7 @@ declare const useFormField: () => {
|
|
|
13
13
|
isDirty: boolean;
|
|
14
14
|
isTouched: boolean;
|
|
15
15
|
isValidating: boolean;
|
|
16
|
-
error?: import("react-hook-form").FieldError;
|
|
16
|
+
error?: import("react-hook-form/dist").FieldError;
|
|
17
17
|
id: string;
|
|
18
18
|
name: string;
|
|
19
19
|
formItemId: string;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import type { Label as LabelPrimitive } from "radix-ui";
|
|
3
3
|
import { Slot } from "radix-ui";
|
|
4
4
|
import { type ControllerProps, type FieldPath, type FieldValues } from "react-hook-form";
|
|
5
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: import("react-hook-form/dist").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
6
6
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
7
7
|
declare function FormItem({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
8
|
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): React.JSX.Element;
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Slot } from "radix-ui";
|
|
4
4
|
import { Controller, FormProvider, } from "react-hook-form";
|
|
5
|
-
import { cn } from "
|
|
6
|
-
import { FormFieldContext, FormItemContext, useFormField } from "
|
|
7
|
-
import { Label } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
import { FormFieldContext, FormItemContext, useFormField } from "./form-context";
|
|
7
|
+
import { Label } from "./label";
|
|
8
8
|
const Form = FormProvider;
|
|
9
9
|
const FormField = ({ ...props }) => {
|
|
10
10
|
const contextValue = React.useMemo(() => ({ name: props.name }), [props.name]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
5
|
const HoverCardPortalContainerContext = React.createContext({
|
|
6
6
|
container: null,
|
|
7
7
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import { Button } from "
|
|
3
|
+
import { Button } from "./button";
|
|
4
4
|
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
5
5
|
declare const inputGroupAddonVariants: (props?: ({
|
|
6
6
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | 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 InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
|
|
9
9
|
declare const inputGroupButtonVariants: (props?: ({
|
|
10
10
|
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
11
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
12
12
|
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): React.JSX.Element;
|
|
13
13
|
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
14
14
|
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): React.JSX.Element;
|