@nadicodeai/ui 12.1.96 → 12.1.98
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/AGENTS.md +5 -1
- package/dist/components/accordion.d.ts +13 -0
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/accordion.js +13 -0
- package/dist/components/account-menu.d.ts +62 -18
- package/dist/components/account-menu.d.ts.map +1 -1
- package/dist/components/account-menu.js +32 -8
- package/dist/components/action-menu.d.ts +61 -5
- package/dist/components/action-menu.d.ts.map +1 -1
- package/dist/components/action-menu.js +31 -2
- package/dist/components/action-status.d.ts +13 -3
- package/dist/components/action-status.d.ts.map +1 -1
- package/dist/components/action-status.js +13 -3
- package/dist/components/activity-calendar.d.ts +14 -0
- package/dist/components/activity-calendar.d.ts.map +1 -1
- package/dist/components/activity-calendar.js +14 -0
- package/dist/components/activity-feed.d.ts +62 -0
- package/dist/components/activity-feed.d.ts.map +1 -0
- package/dist/components/activity-feed.js +54 -0
- package/dist/components/agent-card.d.ts +15 -0
- package/dist/components/agent-card.d.ts.map +1 -1
- package/dist/components/agent-card.js +15 -0
- package/dist/components/agent-list-row.d.ts +11 -7
- package/dist/components/agent-list-row.d.ts.map +1 -1
- package/dist/components/agent-list-row.js +10 -8
- package/dist/components/agent-orb.d.ts +16 -0
- package/dist/components/agent-orb.d.ts.map +1 -1
- package/dist/components/agent-orb.js +16 -0
- package/dist/components/agent-profile.d.ts +39 -10
- package/dist/components/agent-profile.d.ts.map +1 -1
- package/dist/components/agent-profile.js +39 -10
- package/dist/components/alert-dialog.d.ts +14 -0
- package/dist/components/alert-dialog.d.ts.map +1 -1
- package/dist/components/alert-dialog.js +16 -2
- package/dist/components/alert.d.ts +14 -0
- package/dist/components/alert.d.ts.map +1 -1
- package/dist/components/alert.js +14 -0
- package/dist/components/app-mark.d.ts +14 -4
- package/dist/components/app-mark.d.ts.map +1 -1
- package/dist/components/app-mark.js +13 -3
- package/dist/components/approval-row.d.ts +15 -2
- package/dist/components/approval-row.d.ts.map +1 -1
- package/dist/components/approval-row.js +15 -2
- package/dist/components/aspect-ratio.d.ts +10 -0
- package/dist/components/aspect-ratio.d.ts.map +1 -1
- package/dist/components/aspect-ratio.js +10 -0
- package/dist/components/avatar.d.ts +15 -0
- package/dist/components/avatar.d.ts.map +1 -1
- package/dist/components/avatar.js +15 -0
- package/dist/components/badge.d.ts +11 -1
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/badge.js +10 -5
- package/dist/components/brand-field.d.ts +10 -0
- package/dist/components/brand-field.d.ts.map +1 -1
- package/dist/components/brand-field.js +10 -0
- package/dist/components/brand.d.ts +14 -0
- package/dist/components/brand.d.ts.map +1 -1
- package/dist/components/brand.js +14 -0
- package/dist/components/breadcrumb.d.ts +20 -2
- package/dist/components/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb.js +13 -3
- package/dist/components/button-group.d.ts +21 -0
- package/dist/components/button-group.d.ts.map +1 -1
- package/dist/components/button-group.js +21 -0
- package/dist/components/button.d.ts +20 -0
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +20 -0
- package/dist/components/calendar.d.ts +15 -0
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +15 -0
- package/dist/components/card-row.d.ts +15 -5
- package/dist/components/card-row.d.ts.map +1 -1
- package/dist/components/card-row.js +15 -5
- package/dist/components/card.d.ts +16 -0
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.js +16 -0
- package/dist/components/carousel.d.ts +12 -0
- package/dist/components/carousel.d.ts.map +1 -1
- package/dist/components/carousel.js +12 -0
- package/dist/components/catalog-drawer.d.ts +29 -0
- package/dist/components/catalog-drawer.d.ts.map +1 -0
- package/dist/components/catalog-drawer.js +31 -0
- package/dist/components/catalog-entry.d.ts +49 -26
- package/dist/components/catalog-entry.d.ts.map +1 -1
- package/dist/components/catalog-entry.js +5 -27
- package/dist/components/channel-view.d.ts +23 -0
- package/dist/components/channel-view.d.ts.map +1 -1
- package/dist/components/channel-view.js +13 -4
- package/dist/components/chart-area-stacked.d.ts +11 -1
- package/dist/components/chart-area-stacked.d.ts.map +1 -1
- package/dist/components/chart-area-stacked.js +12 -2
- package/dist/components/chart-bar-horizontal.d.ts +11 -1
- package/dist/components/chart-bar-horizontal.d.ts.map +1 -1
- package/dist/components/chart-bar-horizontal.js +12 -2
- package/dist/components/chart-bar-multiple.d.ts +9 -4
- package/dist/components/chart-bar-multiple.d.ts.map +1 -1
- package/dist/components/chart-bar-multiple.js +10 -5
- package/dist/components/chart-bar-stacked.d.ts +11 -1
- package/dist/components/chart-bar-stacked.d.ts.map +1 -1
- package/dist/components/chart-bar-stacked.js +12 -2
- package/dist/components/chart-card.d.ts +33 -20
- package/dist/components/chart-card.d.ts.map +1 -1
- package/dist/components/chart-card.js +18 -4
- package/dist/components/chart-date-range-control.d.ts +15 -10
- package/dist/components/chart-date-range-control.d.ts.map +1 -1
- package/dist/components/chart-date-range-control.js +14 -10
- package/dist/components/chart-date-range.d.ts.map +1 -1
- package/dist/components/chart-entity-colors.d.ts +7 -0
- package/dist/components/chart-entity-colors.d.ts.map +1 -1
- package/dist/components/chart-entity-colors.js +7 -0
- package/dist/components/chart-sparkline.d.ts +10 -0
- package/dist/components/chart-sparkline.d.ts.map +1 -1
- package/dist/components/chart-sparkline.js +8 -7
- package/dist/components/chart.d.ts +10 -0
- package/dist/components/chart.d.ts.map +1 -1
- package/dist/components/chart.js +10 -0
- package/dist/components/checkbox.d.ts +15 -0
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +15 -0
- package/dist/components/code-block.d.ts +15 -0
- package/dist/components/code-block.d.ts.map +1 -1
- package/dist/components/code-block.js +15 -0
- package/dist/components/collapsible.d.ts +12 -0
- package/dist/components/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible.js +12 -0
- package/dist/components/collection-filters.d.ts +15 -2
- package/dist/components/collection-filters.d.ts.map +1 -1
- package/dist/components/collection-filters.js +13 -1
- package/dist/components/collection-page.d.ts +29 -115
- package/dist/components/collection-page.d.ts.map +1 -1
- package/dist/components/collection-page.js +24 -140
- package/dist/components/collection-search.d.ts +14 -0
- package/dist/components/collection-search.d.ts.map +1 -1
- package/dist/components/collection-search.js +14 -0
- package/dist/components/collection-sort.d.ts +13 -3
- package/dist/components/collection-sort.d.ts.map +1 -1
- package/dist/components/collection-sort.js +13 -3
- package/dist/components/collection-toolbar.d.ts +13 -0
- package/dist/components/collection-toolbar.d.ts.map +1 -1
- package/dist/components/collection-toolbar.js +13 -0
- package/dist/components/combobox.d.ts +17 -0
- package/dist/components/combobox.d.ts.map +1 -1
- package/dist/components/combobox.js +18 -1
- package/dist/components/command.d.ts +16 -0
- package/dist/components/command.d.ts.map +1 -1
- package/dist/components/command.js +16 -0
- package/dist/components/company-card.d.ts +16 -4
- package/dist/components/company-card.d.ts.map +1 -1
- package/dist/components/company-card.js +16 -4
- package/dist/components/confirm-dialog.d.ts +24 -14
- package/dist/components/confirm-dialog.d.ts.map +1 -1
- package/dist/components/confirm-dialog.js +16 -10
- package/dist/components/context-menu.d.ts +10 -0
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu.js +11 -1
- package/dist/components/copy-button.d.ts +10 -0
- package/dist/components/copy-button.d.ts.map +1 -1
- package/dist/components/copy-button.js +10 -0
- package/dist/components/dashboard-shell.d.ts +14 -0
- package/dist/components/dashboard-shell.d.ts.map +1 -1
- package/dist/components/dashboard-shell.js +14 -0
- package/dist/components/data-table.d.ts +20 -0
- package/dist/components/data-table.d.ts.map +1 -1
- package/dist/components/data-table.js +23 -2
- package/dist/components/desktop-shell.d.ts +15 -0
- package/dist/components/desktop-shell.d.ts.map +1 -1
- package/dist/components/desktop-shell.js +15 -0
- package/dist/components/dialog.d.ts +16 -0
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +18 -2
- package/dist/components/diff-count.d.ts +11 -0
- package/dist/components/diff-count.d.ts.map +1 -1
- package/dist/components/diff-count.js +11 -0
- package/dist/components/disclosure-row.d.ts +12 -0
- package/dist/components/disclosure-row.d.ts.map +1 -1
- package/dist/components/disclosure-row.js +12 -0
- package/dist/components/disclosure.d.ts +15 -5
- package/dist/components/disclosure.d.ts.map +1 -1
- package/dist/components/disclosure.js +15 -5
- package/dist/components/drawer.d.ts +13 -0
- package/dist/components/drawer.d.ts.map +1 -1
- package/dist/components/drawer.js +13 -0
- package/dist/components/dropdown-menu.d.ts +17 -5
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +21 -8
- package/dist/components/empty-art.d.ts +1 -1
- package/dist/components/empty-art.d.ts.map +1 -1
- package/dist/components/empty-art.js +6 -0
- package/dist/components/empty-state.d.ts +24 -10
- package/dist/components/empty-state.d.ts.map +1 -1
- package/dist/components/empty-state.js +23 -1
- package/dist/components/entry-scene.d.ts +33 -20
- package/dist/components/entry-scene.d.ts.map +1 -1
- package/dist/components/entry-scene.js +34 -7
- package/dist/components/expandable-block.d.ts +10 -0
- package/dist/components/expandable-block.d.ts.map +1 -1
- package/dist/components/expandable-block.js +10 -0
- package/dist/components/field.d.ts +17 -0
- package/dist/components/field.d.ts.map +1 -1
- package/dist/components/field.js +17 -0
- package/dist/components/file-diff.d.ts +12 -0
- package/dist/components/file-diff.d.ts.map +1 -1
- package/dist/components/file-diff.js +12 -0
- package/dist/components/file-type-icon.d.ts +12 -0
- package/dist/components/file-type-icon.d.ts.map +1 -1
- package/dist/components/file-type-icon.js +12 -0
- package/dist/components/footer.d.ts +14 -0
- package/dist/components/footer.d.ts.map +1 -1
- package/dist/components/footer.js +14 -0
- package/dist/components/form-dialog.d.ts +10 -0
- package/dist/components/form-dialog.d.ts.map +1 -1
- package/dist/components/form-dialog.js +10 -0
- package/dist/components/form-drawer.d.ts +24 -11
- package/dist/components/form-drawer.d.ts.map +1 -1
- package/dist/components/form-drawer.js +13 -3
- package/dist/components/form.d.ts +17 -0
- package/dist/components/form.d.ts.map +1 -1
- package/dist/components/form.js +17 -0
- package/dist/components/glass-control.d.ts +13 -0
- package/dist/components/glass-control.d.ts.map +1 -1
- package/dist/components/glass-control.js +13 -0
- package/dist/components/hive-scene.d.ts +14 -0
- package/dist/components/hive-scene.d.ts.map +1 -1
- package/dist/components/hive-scene.js +14 -0
- package/dist/components/house-icons.d.ts +15 -0
- package/dist/components/house-icons.d.ts.map +1 -1
- package/dist/components/house-icons.js +15 -0
- package/dist/components/hover-card.d.ts +15 -0
- package/dist/components/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card.js +16 -1
- package/dist/components/identity-mark.d.ts +55 -0
- package/dist/components/identity-mark.d.ts.map +1 -0
- package/dist/components/identity-mark.js +66 -0
- package/dist/components/input-group.d.ts +16 -0
- package/dist/components/input-group.d.ts.map +1 -1
- package/dist/components/input-group.js +16 -0
- package/dist/components/input-otp.d.ts +15 -0
- package/dist/components/input-otp.d.ts.map +1 -1
- package/dist/components/input-otp.js +15 -0
- package/dist/components/input.d.ts +15 -0
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/input.js +15 -0
- package/dist/components/item.d.ts +16 -0
- package/dist/components/item.d.ts.map +1 -1
- package/dist/components/item.js +16 -0
- package/dist/components/kbd.d.ts +14 -0
- package/dist/components/kbd.d.ts.map +1 -1
- package/dist/components/kbd.js +14 -0
- package/dist/components/kpi-card.d.ts +21 -13
- package/dist/components/kpi-card.d.ts.map +1 -1
- package/dist/components/kpi-card.js +14 -3
- package/dist/components/label-system.d.ts +12 -0
- package/dist/components/label-system.d.ts.map +1 -1
- package/dist/components/label-system.js +12 -0
- package/dist/components/label.d.ts +15 -0
- package/dist/components/label.d.ts.map +1 -1
- package/dist/components/label.js +15 -0
- package/dist/components/library-shelf.d.ts +35 -0
- package/dist/components/library-shelf.d.ts.map +1 -0
- package/dist/components/library-shelf.js +40 -0
- package/dist/components/memory-item.d.ts +12 -0
- package/dist/components/memory-item.d.ts.map +1 -1
- package/dist/components/memory-item.js +12 -0
- package/dist/components/menu-choice-row.d.ts +13 -5
- package/dist/components/menu-choice-row.d.ts.map +1 -1
- package/dist/components/menu-choice-row.js +12 -6
- package/dist/components/menubar.d.ts +13 -0
- package/dist/components/menubar.d.ts.map +1 -1
- package/dist/components/menubar.js +13 -0
- package/dist/components/message-notice.d.ts +16 -0
- package/dist/components/message-notice.d.ts.map +1 -1
- package/dist/components/message-notice.js +18 -2
- package/dist/components/model-identity.d.ts +16 -3
- package/dist/components/model-identity.d.ts.map +1 -1
- package/dist/components/model-identity.js +16 -3
- package/dist/components/model-mark.d.ts +15 -2
- package/dist/components/model-mark.d.ts.map +1 -1
- package/dist/components/model-mark.js +15 -2
- package/dist/components/nadia-presence.d.ts +10 -4
- package/dist/components/nadia-presence.d.ts.map +1 -1
- package/dist/components/nadia-presence.js +10 -4
- package/dist/components/native-select.d.ts +16 -0
- package/dist/components/native-select.d.ts.map +1 -1
- package/dist/components/native-select.js +16 -0
- package/dist/components/navigation-menu.d.ts +14 -0
- package/dist/components/navigation-menu.d.ts.map +1 -1
- package/dist/components/navigation-menu.js +14 -0
- package/dist/components/notice-banner.d.ts +10 -3
- package/dist/components/notice-banner.d.ts.map +1 -1
- package/dist/components/notice-banner.js +9 -3
- package/dist/components/numbered-steps.d.ts +33 -0
- package/dist/components/numbered-steps.d.ts.map +1 -0
- package/dist/components/numbered-steps.js +23 -0
- package/dist/components/object-page.d.ts +37 -0
- package/dist/components/object-page.d.ts.map +1 -0
- package/dist/components/object-page.js +19 -0
- package/dist/components/object-workspace.d.ts +26 -36
- package/dist/components/object-workspace.d.ts.map +1 -1
- package/dist/components/object-workspace.js +27 -24
- package/dist/components/overview-page.d.ts +24 -0
- package/dist/components/overview-page.d.ts.map +1 -0
- package/dist/components/overview-page.js +26 -0
- package/dist/components/page-actions.d.ts +28 -23
- package/dist/components/page-actions.d.ts.map +1 -1
- package/dist/components/page-actions.js +20 -14
- package/dist/components/page-header.d.ts +11 -5
- package/dist/components/page-header.d.ts.map +1 -1
- package/dist/components/page-header.js +11 -5
- package/dist/components/pagination.d.ts +15 -0
- package/dist/components/pagination.d.ts.map +1 -1
- package/dist/components/pagination.js +15 -0
- package/dist/components/pairing-code.d.ts +15 -4
- package/dist/components/pairing-code.d.ts.map +1 -1
- package/dist/components/pairing-code.js +15 -4
- package/dist/components/pending-label.d.ts +12 -4
- package/dist/components/pending-label.d.ts.map +1 -1
- package/dist/components/pending-label.js +12 -4
- package/dist/components/picture-label.d.ts +15 -7
- package/dist/components/picture-label.d.ts.map +1 -1
- package/dist/components/picture-label.js +15 -7
- package/dist/components/platform-mark.d.ts +12 -3
- package/dist/components/platform-mark.d.ts.map +1 -1
- package/dist/components/platform-mark.js +12 -3
- package/dist/components/plugin-slot-boundary.d.ts +15 -0
- package/dist/components/plugin-slot-boundary.d.ts.map +1 -1
- package/dist/components/plugin-slot-boundary.js +15 -0
- package/dist/components/popover.d.ts +15 -0
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +16 -1
- package/dist/components/portal-sidebar-frame.d.ts +26 -12
- package/dist/components/portal-sidebar-frame.d.ts.map +1 -1
- package/dist/components/portal-sidebar-frame.js +26 -0
- package/dist/components/progress.d.ts +10 -8
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +11 -9
- package/dist/components/qr-code.d.ts +9 -3
- package/dist/components/qr-code.d.ts.map +1 -1
- package/dist/components/qr-code.js +9 -3
- package/dist/components/radio-group.d.ts +15 -0
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group.js +15 -0
- package/dist/components/reading-column.d.ts +11 -0
- package/dist/components/reading-column.d.ts.map +1 -1
- package/dist/components/reading-column.js +11 -0
- package/dist/components/record-identity.d.ts +12 -7
- package/dist/components/record-identity.d.ts.map +1 -1
- package/dist/components/record-identity.js +11 -7
- package/dist/components/record-list.d.ts +119 -0
- package/dist/components/record-list.d.ts.map +1 -0
- package/dist/components/record-list.js +161 -0
- package/dist/components/record-sheet.d.ts +36 -0
- package/dist/components/record-sheet.d.ts.map +1 -0
- package/dist/components/record-sheet.js +19 -0
- package/dist/components/record-time.d.ts +27 -11
- package/dist/components/record-time.d.ts.map +1 -1
- package/dist/components/record-time.js +34 -12
- package/dist/components/resizable.d.ts +10 -0
- package/dist/components/resizable.d.ts.map +1 -1
- package/dist/components/resizable.js +10 -0
- package/dist/components/row-edit-form.d.ts +8 -5
- package/dist/components/row-edit-form.d.ts.map +1 -1
- package/dist/components/row-edit-form.js +8 -5
- package/dist/components/run-timeline.d.ts +24 -11
- package/dist/components/run-timeline.d.ts.map +1 -1
- package/dist/components/run-timeline.js +13 -6
- package/dist/components/scope-switcher.d.ts +11 -0
- package/dist/components/scope-switcher.d.ts.map +1 -1
- package/dist/components/scope-switcher.js +20 -9
- package/dist/components/scroll-area.d.ts +12 -0
- package/dist/components/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area.js +12 -0
- package/dist/components/select.d.ts +16 -0
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +17 -1
- package/dist/components/separator.d.ts +11 -0
- package/dist/components/separator.d.ts.map +1 -1
- package/dist/components/separator.js +11 -0
- package/dist/components/settings-facts.d.ts +18 -1
- package/dist/components/settings-facts.d.ts.map +1 -1
- package/dist/components/settings-facts.js +20 -1
- package/dist/components/settings-page.d.ts +20 -0
- package/dist/components/settings-page.d.ts.map +1 -0
- package/dist/components/settings-page.js +16 -0
- package/dist/components/settings-section.d.ts +38 -8
- package/dist/components/settings-section.d.ts.map +1 -1
- package/dist/components/settings-section.js +33 -7
- package/dist/components/sheet.d.ts +16 -0
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sheet.js +18 -2
- package/dist/components/sidebar-sections.d.ts +40 -0
- package/dist/components/sidebar-sections.d.ts.map +1 -0
- package/dist/components/sidebar-sections.js +35 -0
- package/dist/components/sidebar.d.ts +14 -1
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +13 -2
- package/dist/components/skeleton.d.ts +10 -0
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.js +11 -1
- package/dist/components/slider.d.ts +14 -0
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +14 -0
- package/dist/components/sonner.d.ts +18 -0
- package/dist/components/sonner.d.ts.map +1 -1
- package/dist/components/sonner.js +18 -0
- package/dist/components/status-badge.d.ts +13 -2
- package/dist/components/status-badge.d.ts.map +1 -1
- package/dist/components/status-badge.js +21 -9
- package/dist/components/status-dot.d.ts +12 -0
- package/dist/components/status-dot.d.ts.map +1 -1
- package/dist/components/status-dot.js +12 -0
- package/dist/components/status-row.d.ts +14 -0
- package/dist/components/status-row.d.ts.map +1 -1
- package/dist/components/status-row.js +14 -0
- package/dist/components/switch.d.ts +15 -0
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +15 -0
- package/dist/components/table-card.d.ts +16 -3
- package/dist/components/table-card.d.ts.map +1 -1
- package/dist/components/table-card.js +16 -3
- package/dist/components/table-value.d.ts +24 -2
- package/dist/components/table-value.d.ts.map +1 -1
- package/dist/components/table-value.js +25 -3
- package/dist/components/table.d.ts +16 -0
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/table.js +17 -1
- package/dist/components/tabs.d.ts +27 -0
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +27 -0
- package/dist/components/tag.d.ts +12 -2
- package/dist/components/tag.d.ts.map +1 -1
- package/dist/components/tag.js +12 -2
- package/dist/components/text-link.d.ts +17 -0
- package/dist/components/text-link.d.ts.map +1 -1
- package/dist/components/text-link.js +17 -0
- package/dist/components/textarea.d.ts +14 -0
- package/dist/components/textarea.d.ts.map +1 -1
- package/dist/components/textarea.js +14 -0
- package/dist/components/theme-mode-switcher.d.ts +21 -0
- package/dist/components/theme-mode-switcher.d.ts.map +1 -1
- package/dist/components/theme-mode-switcher.js +23 -1
- package/dist/components/toggle-group.d.ts +13 -0
- package/dist/components/toggle-group.d.ts.map +1 -1
- package/dist/components/toggle-group.js +13 -0
- package/dist/components/toggle.d.ts +14 -0
- package/dist/components/toggle.d.ts.map +1 -1
- package/dist/components/toggle.js +14 -0
- package/dist/components/tool-icon.d.ts +14 -4
- package/dist/components/tool-icon.d.ts.map +1 -1
- package/dist/components/tool-icon.js +27 -42
- package/dist/components/tooltip.d.ts +15 -0
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip.js +15 -0
- package/dist/components/trend-badge.d.ts +16 -1
- package/dist/components/trend-badge.d.ts.map +1 -1
- package/dist/components/trend-badge.js +16 -7
- package/dist/components/update-card.d.ts +36 -0
- package/dist/components/update-card.d.ts.map +1 -0
- package/dist/components/update-card.js +28 -0
- package/dist/components/usage-meter.d.ts +15 -0
- package/dist/components/usage-meter.d.ts.map +1 -1
- package/dist/components/usage-meter.js +15 -0
- package/dist/components/waiting-line.d.ts +13 -10
- package/dist/components/waiting-line.d.ts.map +1 -1
- package/dist/components/waiting-line.js +13 -10
- package/dist/eslint/index.js +8 -0
- package/dist/eslint/rules/empty-state-owner.js +145 -0
- package/dist/eslint/rules/menu-owner.js +75 -0
- package/dist/eslint/rules/no-decorative-icon.js +164 -0
- package/dist/eslint/rules/page-composition.js +232 -0
- package/dist/eslint/rules/rendered-import.js +121 -0
- package/dist/eslint/strict-design-system.js +1 -1
- package/dist/hooks/use-hydrated.d.ts +2 -0
- package/dist/hooks/use-hydrated.d.ts.map +1 -0
- package/dist/hooks/use-hydrated.js +7 -0
- package/dist/index.d.ts +15 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -10
- package/dist/internal/catalog-list.d.ts +14 -0
- package/dist/internal/catalog-list.d.ts.map +1 -0
- package/dist/internal/catalog-list.js +53 -0
- package/dist/internal/empty.d.ts +6 -9
- package/dist/internal/empty.d.ts.map +1 -1
- package/dist/internal/empty.js +24 -22
- package/dist/internal/footer-strip.d.ts +0 -4
- package/dist/internal/footer-strip.d.ts.map +1 -1
- package/dist/internal/footer-strip.js +0 -4
- package/dist/internal/record-menu-items.d.ts +19 -0
- package/dist/internal/record-menu-items.d.ts.map +1 -0
- package/dist/internal/record-menu-items.js +20 -0
- package/dist/internal/settings-save.d.ts +43 -0
- package/dist/internal/settings-save.d.ts.map +1 -0
- package/dist/internal/settings-save.js +147 -0
- package/dist/lib/theme-mode.d.ts +1 -1
- package/dist/lib/theme-mode.js +1 -1
- package/dist/showcase/assets.d.ts +8 -0
- package/dist/showcase/assets.d.ts.map +1 -0
- package/dist/showcase/assets.js +13 -0
- package/dist/showcase/foundations.d.ts +2 -0
- package/dist/showcase/foundations.d.ts.map +1 -0
- package/dist/showcase/foundations.js +61 -0
- package/dist/showcase/samples.d.ts +21 -0
- package/dist/showcase/samples.d.ts.map +1 -0
- package/dist/showcase/samples.js +48 -0
- package/dist/showcase/showcase.d.ts +10 -0
- package/dist/showcase/showcase.d.ts.map +1 -0
- package/dist/showcase/showcase.js +44 -0
- package/dist/showcase/specimens/actions.d.ts +7 -0
- package/dist/showcase/specimens/actions.d.ts.map +1 -0
- package/dist/showcase/specimens/actions.js +15 -0
- package/dist/showcase/specimens/charts.d.ts +17 -0
- package/dist/showcase/specimens/charts.d.ts.map +1 -0
- package/dist/showcase/specimens/charts.js +104 -0
- package/dist/showcase/specimens/choices.d.ts +21 -0
- package/dist/showcase/specimens/choices.d.ts.map +1 -0
- package/dist/showcase/specimens/choices.js +68 -0
- package/dist/showcase/specimens/compositions.d.ts +39 -0
- package/dist/showcase/specimens/compositions.d.ts.map +1 -0
- package/dist/showcase/specimens/compositions.js +270 -0
- package/dist/showcase/specimens/data.d.ts +31 -0
- package/dist/showcase/specimens/data.d.ts.map +1 -0
- package/dist/showcase/specimens/data.js +111 -0
- package/dist/showcase/specimens/feedback.d.ts +23 -0
- package/dist/showcase/specimens/feedback.d.ts.map +1 -0
- package/dist/showcase/specimens/feedback.js +64 -0
- package/dist/showcase/specimens/index.d.ts +164 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -0
- package/dist/showcase/specimens/index.js +24 -0
- package/dist/showcase/specimens/inputs.d.ts +22 -0
- package/dist/showcase/specimens/inputs.d.ts.map +1 -0
- package/dist/showcase/specimens/inputs.js +60 -0
- package/dist/showcase/specimens/menus.d.ts +20 -0
- package/dist/showcase/specimens/menus.d.ts.map +1 -0
- package/dist/showcase/specimens/menus.js +65 -0
- package/dist/showcase/specimens/navigation.d.ts +22 -0
- package/dist/showcase/specimens/navigation.d.ts.map +1 -0
- package/dist/showcase/specimens/navigation.js +103 -0
- package/dist/showcase/specimens/other.d.ts +26 -0
- package/dist/showcase/specimens/other.d.ts.map +1 -0
- package/dist/showcase/specimens/other.js +73 -0
- package/dist/showcase/specimens/specimen.d.ts +5 -0
- package/dist/showcase/specimens/specimen.d.ts.map +1 -0
- package/dist/showcase/specimens/specimen.js +1 -0
- package/dist/showcase/specimens/status.d.ts +22 -0
- package/dist/showcase/specimens/status.d.ts.map +1 -0
- package/dist/showcase/specimens/status.js +44 -0
- package/dist/showcase/usage.generated.d.ts +16 -0
- package/dist/showcase/usage.generated.d.ts.map +1 -0
- package/dist/showcase/usage.generated.js +1788 -0
- package/dist/standalone/index.js +1 -1
- package/dist/styles/components.css +21 -0
- package/package.json +8 -3
- package/dist/components/automation-section.d.ts +0 -78
- package/dist/components/automation-section.d.ts.map +0 -1
- package/dist/components/automation-section.js +0 -75
- package/dist/components/catalog-tile.d.ts +0 -19
- package/dist/components/catalog-tile.d.ts.map +0 -1
- package/dist/components/catalog-tile.js +0 -13
- package/dist/components/feedback-state.d.ts +0 -14
- package/dist/components/feedback-state.d.ts.map +0 -1
- package/dist/components/feedback-state.js +0 -65
- package/dist/components/installer-shell.d.ts +0 -25
- package/dist/components/installer-shell.d.ts.map +0 -1
- package/dist/components/installer-shell.js +0 -32
- package/dist/components/settings-form.d.ts +0 -9
- package/dist/components/settings-form.d.ts.map +0 -1
- package/dist/components/settings-form.js +0 -83
|
@@ -9,6 +9,21 @@ type AgentCardProps = Omit<React.ComponentProps<typeof Card>, "children"> & {
|
|
|
9
9
|
/** The object's picture: an Agent's orb, an app's mark. A skill, which is text, has none. */
|
|
10
10
|
visual?: ReactNode;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* One Agent, or another pictured object, as a card in a gallery.
|
|
14
|
+
*
|
|
15
|
+
* @family Data
|
|
16
|
+
* @when A gallery of Agents or templates where each one is chosen by its picture and its job: the
|
|
17
|
+
* Agents to create from, the templates of a hub.
|
|
18
|
+
* @instead A list of Agents to open is `AgentListRow`. An Agent's own page opens with
|
|
19
|
+
* `AgentProfileCard`. A Library entry is `CatalogEntry`.
|
|
20
|
+
* @behaviour The picture (her orb at 96) on the leading side, the name and job, an optional status
|
|
21
|
+
* under them, and a footer with the meta and one action. A long name wraps inside the card.
|
|
22
|
+
* @words The name as the Agent calls herself; the job in one line (*Writes quotes from the price
|
|
23
|
+
* list*); the action verb and noun (*Use template*).
|
|
24
|
+
* @access The name is the card's heading text; the orb is decorative beside it; the action is a
|
|
25
|
+
* real button or link.
|
|
26
|
+
*/
|
|
12
27
|
declare function AgentCard({ action, className, job, meta, name, status, visual, ...props }: AgentCardProps): import("react").JSX.Element;
|
|
13
28
|
export { AgentCard, type AgentCardProps };
|
|
14
29
|
//# sourceMappingURL=agent-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../src/components/agent-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,IAAI,EAA0C,MAAM,mBAAmB,CAAC;AAGjF,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAMF,iBAAS,SAAS,CAAC,EACjB,MAAM,EACN,SAAS,EACT,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,cAAc,+BAwDhB;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../src/components/agent-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,IAAI,EAA0C,MAAM,mBAAmB,CAAC;AAGjF,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAMF;;;;;;;;;;;;;;GAcG;AACH,iBAAS,SAAS,CAAC,EACjB,MAAM,EACN,SAAS,EACT,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,cAAc,+BAwDhB;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
|
|
@@ -4,6 +4,21 @@ import { cn } from "../lib/utils.js";
|
|
|
4
4
|
function hasSlotContent(value) {
|
|
5
5
|
return value !== null && value !== undefined && value !== false;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* One Agent, or another pictured object, as a card in a gallery.
|
|
9
|
+
*
|
|
10
|
+
* @family Data
|
|
11
|
+
* @when A gallery of Agents or templates where each one is chosen by its picture and its job: the
|
|
12
|
+
* Agents to create from, the templates of a hub.
|
|
13
|
+
* @instead A list of Agents to open is `AgentListRow`. An Agent's own page opens with
|
|
14
|
+
* `AgentProfileCard`. A Library entry is `CatalogEntry`.
|
|
15
|
+
* @behaviour The picture (her orb at 96) on the leading side, the name and job, an optional status
|
|
16
|
+
* under them, and a footer with the meta and one action. A long name wraps inside the card.
|
|
17
|
+
* @words The name as the Agent calls herself; the job in one line (*Writes quotes from the price
|
|
18
|
+
* list*); the action verb and noun (*Use template*).
|
|
19
|
+
* @access The name is the card's heading text; the orb is decorative beside it; the action is a
|
|
20
|
+
* real button or link.
|
|
21
|
+
*/
|
|
7
22
|
function AgentCard({ action, className, job, meta, name, status, visual, ...props }) {
|
|
8
23
|
const hasStatus = hasSlotContent(status);
|
|
9
24
|
const hasMeta = hasSlotContent(meta);
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import type { CSSProperties } from "react";
|
|
2
2
|
import { type AgentOrbFigure, type AgentOrbState } from "./agent-orb.js";
|
|
3
|
+
import { type StatusTone } from "./status-dot.js";
|
|
3
4
|
/**
|
|
4
5
|
* One Agent in a list of them: the orb, the name, and the line that says what
|
|
5
|
-
* the Agent is doing now
|
|
6
|
-
* for. It is the row's presentation alone, so the consumer owns the control
|
|
7
|
-
* around it: Nadia's Agents list puts it in the button that opens the Agent,
|
|
8
|
-
* and a website scene puts it in a list item that opens nothing.
|
|
6
|
+
* the Agent is doing now or what it is for.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* @family Navigation
|
|
9
|
+
* @when Nadia's Agents in her window's sidebar, and a website scene that shows a list of Agents.
|
|
10
|
+
* @instead An Agent as a record among others in a page's list is a RecordList row with an agent IdentityMark; an Agent's own page heads with ObjectPage.
|
|
11
|
+
* @behaviour It is the row's presentation alone: the consumer owns the control around it (Nadia's button that opens the Agent, a scene's list item that opens nothing). The current row's name is set in 500. A state tone puts a 6 px dot before the state line. Narrow, the orb stands alone and the words stay for a screen reader.
|
|
12
|
+
* @words The name, then one state line: what she is doing now ("Answering on Telegram", "Working") or what she is for ("Sorts requests"). The tone never says more than the line does.
|
|
13
|
+
* @access The orb is decorative; the name and the state line are the row's text, read by its control. The dot is hidden from assistive technology, so the line carries its meaning.
|
|
12
14
|
*/
|
|
13
|
-
export declare function AgentListRow({ className, color, current, form, motionKey, name, narrow, size, state, stateLine, ...props }: Omit<React.ComponentProps<"span">, "color"> & {
|
|
15
|
+
export declare function AgentListRow({ className, color, current, form, motionKey, name, narrow, size, state, stateLine, stateTone, ...props }: Omit<React.ComponentProps<"span">, "color"> & {
|
|
14
16
|
/** The pigment of the Agent's chosen form; Nadia's striped ribbon keeps her own. */
|
|
15
17
|
color?: CSSProperties["color"];
|
|
16
18
|
/** The row the list is on now. */
|
|
@@ -24,5 +26,7 @@ export declare function AgentListRow({ className, color, current, form, motionKe
|
|
|
24
26
|
state?: AgentOrbState;
|
|
25
27
|
/** What the Agent is doing, or what it is for. Absent, the name stands alone. */
|
|
26
28
|
stateLine?: string;
|
|
29
|
+
/** How the state line stands: a failure is `bad`. Absent, the line has no dot. */
|
|
30
|
+
stateTone?: StatusTone;
|
|
27
31
|
}): import("react").JSX.Element;
|
|
28
32
|
//# sourceMappingURL=agent-list-row.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-list-row.d.ts","sourceRoot":"","sources":["../../src/components/agent-list-row.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAY,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-list-row.d.ts","sourceRoot":"","sources":["../../src/components/agent-list-row.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAY,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrE;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,KAAK,EACL,OAAe,EACf,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,MAAc,EACd,IAAS,EACT,KAAc,EACd,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,GAAG;IAC/C,oFAAoF;IACpF,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,SAAS,CAAC,EAAE,UAAU,CAAC;CACxB,+BA+BA"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { AgentOrb } from "./agent-orb.js";
|
|
4
|
+
import { StatusDot } from "./status-dot.js";
|
|
4
5
|
import { cn } from "../lib/utils.js";
|
|
5
6
|
/**
|
|
6
7
|
* One Agent in a list of them: the orb, the name, and the line that says what
|
|
7
|
-
* the Agent is doing now
|
|
8
|
-
* for. It is the row's presentation alone, so the consumer owns the control
|
|
9
|
-
* around it: Nadia's Agents list puts it in the button that opens the Agent,
|
|
10
|
-
* and a website scene puts it in a list item that opens nothing.
|
|
8
|
+
* the Agent is doing now or what it is for.
|
|
11
9
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* @family Navigation
|
|
11
|
+
* @when Nadia's Agents in her window's sidebar, and a website scene that shows a list of Agents.
|
|
12
|
+
* @instead An Agent as a record among others in a page's list is a RecordList row with an agent IdentityMark; an Agent's own page heads with ObjectPage.
|
|
13
|
+
* @behaviour It is the row's presentation alone: the consumer owns the control around it (Nadia's button that opens the Agent, a scene's list item that opens nothing). The current row's name is set in 500. A state tone puts a 6 px dot before the state line. Narrow, the orb stands alone and the words stay for a screen reader.
|
|
14
|
+
* @words The name, then one state line: what she is doing now ("Answering on Telegram", "Working") or what she is for ("Sorts requests"). The tone never says more than the line does.
|
|
15
|
+
* @access The orb is decorative; the name and the state line are the row's text, read by its control. The dot is hidden from assistive technology, so the line carries its meaning.
|
|
14
16
|
*/
|
|
15
|
-
export function AgentListRow({ className, color, current = false, form, motionKey, name, narrow = false, size = 40, state = "idle", stateLine, ...props }) {
|
|
16
|
-
return (_jsxs("span", { className: cn("flex w-full min-w-0 items-center gap-3 text-left text-sm", narrow && "justify-center", className), "data-slot": "agent-list-row", "data-current": current || undefined, ...props, children: [_jsx(AgentOrb, { color: color, decorative: true, form: form, motionKey: motionKey, size: size, state: state }), _jsxs("span", { className: cn("grid min-w-0", narrow && "sr-only"), children: [_jsx("span", { className: cn("truncate text-foreground", current && "font-medium"), children: name }), stateLine ? (
|
|
17
|
+
export function AgentListRow({ className, color, current = false, form, motionKey, name, narrow = false, size = 40, state = "idle", stateLine, stateTone, ...props }) {
|
|
18
|
+
return (_jsxs("span", { className: cn("flex w-full min-w-0 items-center gap-3 text-left text-sm", narrow && "justify-center", className), "data-slot": "agent-list-row", "data-current": current || undefined, ...props, children: [_jsx(AgentOrb, { color: color, decorative: true, form: form, motionKey: motionKey, size: size, state: state }), _jsxs("span", { className: cn("grid min-w-0", narrow && "sr-only"), children: [_jsx("span", { className: cn("truncate text-foreground", current && "font-medium"), children: name }), stateLine ? (_jsxs("span", { className: "flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground", children: [stateTone ? _jsx(StatusDot, { className: "shrink-0", tone: stateTone }) : null, _jsx("span", { className: "truncate", children: stateLine })] })) : null] })] }));
|
|
17
19
|
}
|
|
@@ -29,5 +29,21 @@ export type AgentOrbProps = AgentOrbBaseProps & ({
|
|
|
29
29
|
decorative?: false;
|
|
30
30
|
label: string;
|
|
31
31
|
});
|
|
32
|
+
/**
|
|
33
|
+
* An Agent, anywhere: her orb, the only thing that moves on its own.
|
|
34
|
+
*
|
|
35
|
+
* @family Status
|
|
36
|
+
* @when An Agent, anywhere: 20 in the sidebar, 32 in a row, 64 on her Profile card, 96 in an Agent
|
|
37
|
+
* card, 160 on entry. There is no other Agent picture.
|
|
38
|
+
* @instead A person is an `Avatar`. The system's own wait is the waiting line, never an orb. An orb
|
|
39
|
+
* in artwork takes `motion="ambient"` and claims no activity.
|
|
40
|
+
* @behaviour The only thing that moves on its own. Idle turns and breathes; working and thinking
|
|
41
|
+
* show their cue; waiting holds; blocked makes one effort and stops; done celebrates once. Reduced
|
|
42
|
+
* motion: still, busy breathes in opacity.
|
|
43
|
+
* @words Text sits beside the orb, never on it. Where the exact state matters a word names it:
|
|
44
|
+
* *Working*, *Waiting for you*.
|
|
45
|
+
* @access `role="img"` labelled with the Agent's name, and her state where it matters; `decorative`
|
|
46
|
+
* when her name is already beside it.
|
|
47
|
+
*/
|
|
32
48
|
export declare function AgentOrb({ form, color, size, presence, paused, state, motion, motionKey, decorative, label, className, }: AgentOrbProps): import("react").JSX.Element;
|
|
33
49
|
//# sourceMappingURL=agent-orb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-orb.d.ts","sourceRoot":"","sources":["../../src/components/agent-orb.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK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,CAAC,CAAC;AAEhF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,IAAS,EACT,QAAkB,EAClB,MAAc,EACd,KAAc,EACd,MAAiB,EACjB,SAAa,EACb,UAAkB,EAClB,KAAK,EACL,SAAS,GACV,EAAE,aAAa,+BAyDf"}
|
|
@@ -3,6 +3,22 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
import { mountAgentOrb, } from "../internal/agent-orb.js";
|
|
5
5
|
import { cn } from "../lib/utils.js";
|
|
6
|
+
/**
|
|
7
|
+
* An Agent, anywhere: her orb, the only thing that moves on its own.
|
|
8
|
+
*
|
|
9
|
+
* @family Status
|
|
10
|
+
* @when An Agent, anywhere: 20 in the sidebar, 32 in a row, 64 on her Profile card, 96 in an Agent
|
|
11
|
+
* card, 160 on entry. There is no other Agent picture.
|
|
12
|
+
* @instead A person is an `Avatar`. The system's own wait is the waiting line, never an orb. An orb
|
|
13
|
+
* in artwork takes `motion="ambient"` and claims no activity.
|
|
14
|
+
* @behaviour The only thing that moves on its own. Idle turns and breathes; working and thinking
|
|
15
|
+
* show their cue; waiting holds; blocked makes one effort and stops; done celebrates once. Reduced
|
|
16
|
+
* motion: still, busy breathes in opacity.
|
|
17
|
+
* @words Text sits beside the orb, never on it. Where the exact state matters a word names it:
|
|
18
|
+
* *Working*, *Waiting for you*.
|
|
19
|
+
* @access `role="img"` labelled with the Agent's name, and her state where it matters; `decorative`
|
|
20
|
+
* when her name is already beside it.
|
|
21
|
+
*/
|
|
6
22
|
export function AgentOrb({ form, color, size = 32, presence = "plain", paused = false, state = "idle", motion = "status", motionKey = 0, decorative = false, label, className, }) {
|
|
7
23
|
const canvas = useRef(null);
|
|
8
24
|
const renderer = useRef(null);
|
|
@@ -61,12 +61,21 @@ export type AgentProfileCardProps = {
|
|
|
61
61
|
headingProps?: Omit<ComponentProps<"h1">, "children">;
|
|
62
62
|
};
|
|
63
63
|
/**
|
|
64
|
-
* The card an Agent's Profile opens with in every product
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
64
|
+
* The card an Agent's Profile opens with in every product.
|
|
65
|
+
*
|
|
66
|
+
* @family Compositions
|
|
67
|
+
* @when The head of an Agent's Profile: who she is, what she does, her state, and her model and
|
|
68
|
+
* reasoning beside them.
|
|
69
|
+
* @instead An Agent in a gallery is `AgentCard`; in a list `AgentListRow`. Another object's page is
|
|
70
|
+
* `ObjectPage`.
|
|
71
|
+
* @behaviour Her orb at 64, her name with the pencil, her description and her facts on the left;
|
|
72
|
+
* her model and reasoning on the right; the card's footer saves both sides. The pencil turns her
|
|
73
|
+
* name and description into fields in place. A fact being read draws its place; a missing one keeps
|
|
74
|
+
* its label and a dash.
|
|
75
|
+
* @words Each product brings its own data, fields and words; the shape, sizes and order are this
|
|
76
|
+
* component's. Her state is a word: *Working*, *Waiting for you*.
|
|
77
|
+
* @access Her name is the page's `h1`, kept as the heading while she is edited; the pencil is named
|
|
78
|
+
* (*Edit Nadia*); the orb is decorative beside her name.
|
|
70
79
|
*/
|
|
71
80
|
export declare function AgentProfileCard({ orb, name, description, descriptionMissingLabel, edit, editor, state, activity, origin, settings, footer, footerHint, actions, headingProps, }: AgentProfileCardProps): import("react").JSX.Element;
|
|
72
81
|
export type ModelSelectProps = Omit<ComponentProps<typeof SelectPrimitive.Trigger>, "children" | "value" | "onChange"> & {
|
|
@@ -81,8 +90,18 @@ export type ModelSelectProps = Omit<ComponentProps<typeof SelectPrimitive.Trigge
|
|
|
81
90
|
nameOf?: (model: string) => string;
|
|
82
91
|
};
|
|
83
92
|
/**
|
|
84
|
-
* A model chosen from a list
|
|
85
|
-
*
|
|
93
|
+
* A model chosen from a list, each read with its maker's mark.
|
|
94
|
+
*
|
|
95
|
+
* @family Choices
|
|
96
|
+
* @when Choosing the model an Agent runs on, from the models the product offers.
|
|
97
|
+
* @instead A model shown, not chosen, is `ModelIdentity`. A list people search across many makers
|
|
98
|
+
* is a `Combobox`.
|
|
99
|
+
* @behaviour A `Select` whose trigger and every option read the model as `ModelIdentity` does: the
|
|
100
|
+
* maker's mark, one name, the muted maker. It shows `placeholder` until a model is chosen.
|
|
101
|
+
* @words Model names come from `modelDisplayName`, or the product's own `nameOf` when its runtime
|
|
102
|
+
* names models itself. The placeholder says what to choose: *Choose a model*.
|
|
103
|
+
* @access The trigger takes a visible label; listbox and option roles from Base UI; the marks are
|
|
104
|
+
* decorative beside the names.
|
|
86
105
|
*/
|
|
87
106
|
export declare function ModelSelect({ value, options, onValueChange, placeholder, nameOf, disabled, className, ...props }: ModelSelectProps): import("react").JSX.Element;
|
|
88
107
|
export type SegmentedChoiceProps<Choice extends string> = Omit<ComponentProps<typeof RadioGroup>, "children" | "defaultValue" | "onValueChange" | "value"> & {
|
|
@@ -94,8 +113,18 @@ export type SegmentedChoiceProps<Choice extends string> = Omit<ComponentProps<ty
|
|
|
94
113
|
onValueChange: (value: Choice) => void;
|
|
95
114
|
};
|
|
96
115
|
/**
|
|
97
|
-
* One choice among a few short levels, drawn as segments that share a row
|
|
98
|
-
*
|
|
116
|
+
* One choice among a few short levels, drawn as segments that share a row.
|
|
117
|
+
*
|
|
118
|
+
* @family Choices
|
|
119
|
+
* @when One of two to five short levels a person compares at a glance, such as an Agent's
|
|
120
|
+
* reasoning: Default, Low, Medium, High.
|
|
121
|
+
* @instead Options that each need a sentence are choice tiles. Seven or more is a `Select`. The
|
|
122
|
+
* theme is `ThemeModeSwitcher`.
|
|
123
|
+
* @behaviour A `RadioGroup` drawn with the toggle classes: one outline, one seam between members,
|
|
124
|
+
* the chosen one in the selection fill. Arrows move and choose; it applies through the form it sits
|
|
125
|
+
* in.
|
|
126
|
+
* @words Each segment is one or two words of equal weight, in sentence case.
|
|
127
|
+
* @access A `radiogroup` named by its label; each segment a radio named by its word.
|
|
99
128
|
*/
|
|
100
129
|
export declare function SegmentedChoice<Choice extends string>({ value, options, onValueChange, disabled, className, ...props }: SegmentedChoiceProps<Choice>): import("react").JSX.Element;
|
|
101
130
|
//# sourceMappingURL=agent-profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profile.d.ts","sourceRoot":"","sources":["../../src/components/agent-profile.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAK5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMnE;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,2DAA2D;IAC3D,GAAG,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;KAAE,GAAG,SAAS,CAAC;IACxF;;;;;OAKG;IACH,MAAM,CA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20
|
return fact.pending ? (_jsx(Skeleton, { "aria-busy": "true", className: "h-4 w-24" })) : (_jsx(TableValue, { missingLabel: fact.missingLabel, value: fact.value }));
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* The card an Agent's Profile opens with in every product
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
23
|
+
* The card an Agent's Profile opens with in every product.
|
|
24
|
+
*
|
|
25
|
+
* @family Compositions
|
|
26
|
+
* @when The head of an Agent's Profile: who she is, what she does, her state, and her model and
|
|
27
|
+
* reasoning beside them.
|
|
28
|
+
* @instead An Agent in a gallery is `AgentCard`; in a list `AgentListRow`. Another object's page is
|
|
29
|
+
* `ObjectPage`.
|
|
30
|
+
* @behaviour Her orb at 64, her name with the pencil, her description and her facts on the left;
|
|
31
|
+
* her model and reasoning on the right; the card's footer saves both sides. The pencil turns her
|
|
32
|
+
* name and description into fields in place. A fact being read draws its place; a missing one keeps
|
|
33
|
+
* its label and a dash.
|
|
34
|
+
* @words Each product brings its own data, fields and words; the shape, sizes and order are this
|
|
35
|
+
* component's. Her state is a word: *Working*, *Waiting for you*.
|
|
36
|
+
* @access Her name is the page's `h1`, kept as the heading while she is edited; the pencil is named
|
|
37
|
+
* (*Edit Nadia*); the orb is decorative beside her name.
|
|
29
38
|
*/
|
|
30
39
|
export function AgentProfileCard({ orb, name, description, descriptionMissingLabel, edit, editor, state, activity, origin, settings, footer, footerHint, actions, headingProps, }) {
|
|
31
40
|
const facts = [
|
|
@@ -38,8 +47,18 @@ export function AgentProfileCard({ orb, name, description, descriptionMissingLab
|
|
|
38
47
|
return (_jsxs(Card, { className: "@container/agent-profile min-w-0", render: _jsx("section", { "aria-labelledby": headingProps?.id }), "data-slot": "agent-profile", children: [_jsxs(CardContent, { className: "grid min-w-0 gap-nadicode-lg @3xl/agent-profile:grid-cols-[minmax(0,1fr)_minmax(18rem,22rem)] @3xl/agent-profile:gap-nadicode-xl", children: [_jsxs("div", { className: "grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-start gap-nadicode-md", children: [_jsx("div", { className: "shrink-0", children: orb(AGENT_PROFILE_ORB_SIZE) }), editor ? (_jsxs("div", { className: "grid min-w-0 gap-nadicode-md", "data-slot": "agent-profile-editor", children: [_jsx("h1", { ...headingProps, className: cn("sr-only", headingProps?.className), children: name }), editor, factList] })) : (_jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-x-1 gap-y-nadicode-sm", children: [_jsx("h1", { ...headingProps, className: cn("min-w-0 text-heading-md break-words text-foreground outline-none", headingProps?.className), children: name }), edit ? (_jsx(Button, { "aria-label": edit.label, onClick: edit.onClick, ref: edit.ref, size: "icon", title: edit.label, type: "button", variant: "ghost", children: _jsx(PencilIcon, { "aria-hidden": "true", "data-icon": true }) })) : null, actions ? (_jsx("div", { className: "ml-auto flex shrink-0 items-center gap-2 pl-nadicode-sm", "data-slot": "agent-profile-actions", children: _jsx(PageActionsRow, { ...actions }) })) : null] }), _jsx("p", { className: "line-clamp-2 min-w-0 text-sm text-muted-foreground", title: text, children: _jsx(TableValue, { missingLabel: descriptionMissingLabel, value: text }) }), factList] }))] }), settings ? (_jsx("div", { className: "grid min-w-0 content-start gap-nadicode-md border-t border-border pt-nadicode-md @3xl/agent-profile:border-t-0 @3xl/agent-profile:border-l @3xl/agent-profile:pt-0 @3xl/agent-profile:pl-nadicode-lg", "data-slot": "agent-profile-settings", children: settings })) : null] }), _jsx(FooterStrip, { hint: footerHint, hintSlot: "agent-profile-hint", children: footer })] }));
|
|
39
48
|
}
|
|
40
49
|
/**
|
|
41
|
-
* A model chosen from a list
|
|
42
|
-
*
|
|
50
|
+
* A model chosen from a list, each read with its maker's mark.
|
|
51
|
+
*
|
|
52
|
+
* @family Choices
|
|
53
|
+
* @when Choosing the model an Agent runs on, from the models the product offers.
|
|
54
|
+
* @instead A model shown, not chosen, is `ModelIdentity`. A list people search across many makers
|
|
55
|
+
* is a `Combobox`.
|
|
56
|
+
* @behaviour A `Select` whose trigger and every option read the model as `ModelIdentity` does: the
|
|
57
|
+
* maker's mark, one name, the muted maker. It shows `placeholder` until a model is chosen.
|
|
58
|
+
* @words Model names come from `modelDisplayName`, or the product's own `nameOf` when its runtime
|
|
59
|
+
* names models itself. The placeholder says what to choose: *Choose a model*.
|
|
60
|
+
* @access The trigger takes a visible label; listbox and option roles from Base UI; the marks are
|
|
61
|
+
* decorative beside the names.
|
|
43
62
|
*/
|
|
44
63
|
export function ModelSelect({ value, options, onValueChange, placeholder, nameOf, disabled, className, ...props }) {
|
|
45
64
|
return (_jsxs(Select, { disabled: disabled, onValueChange: (model) => {
|
|
@@ -49,8 +68,18 @@ export function ModelSelect({ value, options, onValueChange, placeholder, nameOf
|
|
|
49
68
|
}, value: value, children: [_jsx(SelectTrigger, { className: cn("w-full min-w-0", className), ...props, children: _jsx(SelectPrimitive.Value, { className: "flex min-w-0 flex-1 items-center gap-1.5 text-left", "data-slot": "select-value", children: (model) => model ? (_jsx(ModelIdentity, { className: "min-w-0", markSize: 20, model: model, name: nameOf?.(model) })) : (_jsx("span", { className: "text-placeholder", children: placeholder })) }) }), _jsx(SelectContent, { align: "start", alignItemWithTrigger: false, children: _jsx(SelectGroup, { children: options.map((model) => (_jsx(SelectItem, { value: model, children: _jsx(ModelIdentity, { markSize: 20, model: model, name: nameOf?.(model) }) }, model))) }) })] }));
|
|
50
69
|
}
|
|
51
70
|
/**
|
|
52
|
-
* One choice among a few short levels, drawn as segments that share a row
|
|
53
|
-
*
|
|
71
|
+
* One choice among a few short levels, drawn as segments that share a row.
|
|
72
|
+
*
|
|
73
|
+
* @family Choices
|
|
74
|
+
* @when One of two to five short levels a person compares at a glance, such as an Agent's
|
|
75
|
+
* reasoning: Default, Low, Medium, High.
|
|
76
|
+
* @instead Options that each need a sentence are choice tiles. Seven or more is a `Select`. The
|
|
77
|
+
* theme is `ThemeModeSwitcher`.
|
|
78
|
+
* @behaviour A `RadioGroup` drawn with the toggle classes: one outline, one seam between members,
|
|
79
|
+
* the chosen one in the selection fill. Arrows move and choose; it applies through the form it sits
|
|
80
|
+
* in.
|
|
81
|
+
* @words Each segment is one or two words of equal weight, in sentence case.
|
|
82
|
+
* @access A `radiogroup` named by its label; each segment a radio named by its word.
|
|
54
83
|
*/
|
|
55
84
|
export function SegmentedChoice({ value, options, onValueChange, disabled, className, ...props }) {
|
|
56
85
|
return (_jsx(RadioGroup, { className: cn("flex h-control-height w-full gap-nadicode-xxs rounded-md bg-muted p-0.5", className), disabled: disabled, onValueChange: (next) => {
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
|
+
/**
|
|
5
|
+
* The blocking dialog primitive under `ConfirmDialog`.
|
|
6
|
+
*
|
|
7
|
+
* @family Menus
|
|
8
|
+
* @when Before an action that stops or loses something, through `ConfirmDialog`, which owns the
|
|
9
|
+
* words and the pending state.
|
|
10
|
+
* @instead A product confirms with `ConfirmDialog`, never a hand-built alert dialog. A reversible
|
|
11
|
+
* local change needs no confirmation; give it Undo in a toast.
|
|
12
|
+
* @behaviour No backdrop dismissal; Escape cancels. `AlertDialogAction` closes on press; a confirm
|
|
13
|
+
* that can fail is a plain button so the dialog stays open with the error.
|
|
14
|
+
* @words Title a statement naming the record, never a question. Body the consequence, once.
|
|
15
|
+
* @access `role="alertdialog"`, named by the title and described by the consequence. Focus starts
|
|
16
|
+
* on Cancel, the safe choice.
|
|
17
|
+
*/
|
|
4
18
|
declare function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props): React.JSX.Element;
|
|
5
19
|
declare function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props): React.JSX.Element;
|
|
6
20
|
declare function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../src/components/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAIlF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,qBAEjE;AAED,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,OAAO,CAAC,KAAK,qBAE3E;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,MAAM,CAAC,KAAK,qBAEzE;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,QAAQ,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../src/components/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAIlF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,qBAEjE;AAED,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,OAAO,CAAC,KAAK,qBAE3E;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,MAAM,CAAC,KAAK,qBAEzE;AAED,iBAA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,GACjC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,qBAS9D;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
|
|
@@ -4,6 +4,20 @@ import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog
|
|
|
4
4
|
import { cn } from "../lib/utils.js";
|
|
5
5
|
import { modalOverlayMotion, overlayBackdropMotion } from "../lib/motion.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
|
+
/**
|
|
8
|
+
* The blocking dialog primitive under `ConfirmDialog`.
|
|
9
|
+
*
|
|
10
|
+
* @family Menus
|
|
11
|
+
* @when Before an action that stops or loses something, through `ConfirmDialog`, which owns the
|
|
12
|
+
* words and the pending state.
|
|
13
|
+
* @instead A product confirms with `ConfirmDialog`, never a hand-built alert dialog. A reversible
|
|
14
|
+
* local change needs no confirmation; give it Undo in a toast.
|
|
15
|
+
* @behaviour No backdrop dismissal; Escape cancels. `AlertDialogAction` closes on press; a confirm
|
|
16
|
+
* that can fail is a plain button so the dialog stays open with the error.
|
|
17
|
+
* @words Title a statement naming the record, never a question. Body the consequence, once.
|
|
18
|
+
* @access `role="alertdialog"`, named by the title and described by the consequence. Focus starts
|
|
19
|
+
* on Cancel, the safe choice.
|
|
20
|
+
*/
|
|
7
21
|
function AlertDialog({ ...props }) {
|
|
8
22
|
return _jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
9
23
|
}
|
|
@@ -14,10 +28,10 @@ function AlertDialogPortal({ ...props }) {
|
|
|
14
28
|
return _jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
15
29
|
}
|
|
16
30
|
function AlertDialogOverlay({ className, ...props }) {
|
|
17
|
-
return (_jsx(AlertDialogPrimitive.Backdrop, { "data-slot": "alert-dialog-overlay", className: cn("fixed inset-0 isolate z-50 bg-scrim/scrim", overlayBackdropMotion, className), ...props }));
|
|
31
|
+
return (_jsx(AlertDialogPrimitive.Backdrop, { "data-slot": "alert-dialog-overlay", className: cn("pointer-events-auto", "fixed inset-0 isolate z-50 bg-scrim/scrim", overlayBackdropMotion, className), ...props }));
|
|
18
32
|
}
|
|
19
33
|
function AlertDialogContent({ className, size = "default", ...props }) {
|
|
20
|
-
return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Popup, { "data-slot": "alert-dialog-content", "data-size": size, className: cn("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-nadicode-md rounded-lg border-0 bg-popover p-nadicode-lg text-popover-foreground nc-elevation-modal outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm", modalOverlayMotion, className), ...props })] }));
|
|
34
|
+
return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Popup, { "data-slot": "alert-dialog-content", "data-size": size, className: cn("pointer-events-auto", "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-nadicode-md rounded-lg border-0 bg-popover p-nadicode-lg text-popover-foreground nc-elevation-modal outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm", modalOverlayMotion, className), ...props })] }));
|
|
21
35
|
}
|
|
22
36
|
function AlertDialogHeader({ className, ...props }) {
|
|
23
37
|
return (_jsx("div", { "data-slot": "alert-dialog-header", className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className), ...props }));
|
|
@@ -3,6 +3,20 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | "info" | "warning" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
/**
|
|
7
|
+
* The note primitive under every banner and notice: an icon, a title, a description and an action.
|
|
8
|
+
*
|
|
9
|
+
* @family Feedback
|
|
10
|
+
* @when Drawing a notice the composition owners do not cover, inside the package. A product's
|
|
11
|
+
* notice is `NoticeBanner` or `MessageNotice`.
|
|
12
|
+
* @instead A condition of a page or the account is `NoticeBanner`; a message about one control or
|
|
13
|
+
* section is `MessageNotice`; a finished action is a toast.
|
|
14
|
+
* @behaviour A soft ground, deep text, the 1 px line edge, 6 px corners; the icon leads, the action
|
|
15
|
+
* trails.
|
|
16
|
+
* @words Title names the condition; the description what it stops; the action the fix as verb and
|
|
17
|
+
* noun.
|
|
18
|
+
* @access `role="alert"` by default; a calmer owner passes `status` or `note`. The icon is hidden.
|
|
19
|
+
*/
|
|
6
20
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
|
|
7
21
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
22
|
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/components/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aA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AC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWxE;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/components/alert.js
CHANGED
|
@@ -14,6 +14,20 @@ const alertVariants = cva("group/alert relative grid w-full gap-0.5 rounded-sm b
|
|
|
14
14
|
variant: "default",
|
|
15
15
|
},
|
|
16
16
|
});
|
|
17
|
+
/**
|
|
18
|
+
* The note primitive under every banner and notice: an icon, a title, a description and an action.
|
|
19
|
+
*
|
|
20
|
+
* @family Feedback
|
|
21
|
+
* @when Drawing a notice the composition owners do not cover, inside the package. A product's
|
|
22
|
+
* notice is `NoticeBanner` or `MessageNotice`.
|
|
23
|
+
* @instead A condition of a page or the account is `NoticeBanner`; a message about one control or
|
|
24
|
+
* section is `MessageNotice`; a finished action is a toast.
|
|
25
|
+
* @behaviour A soft ground, deep text, the 1 px line edge, 6 px corners; the icon leads, the action
|
|
26
|
+
* trails.
|
|
27
|
+
* @words Title names the condition; the description what it stops; the action the fix as verb and
|
|
28
|
+
* noun.
|
|
29
|
+
* @access `role="alert"` by default; a calmer owner passes `status` or `note`. The icon is hidden.
|
|
30
|
+
*/
|
|
17
31
|
function Alert({ className, variant, ...props }) {
|
|
18
32
|
return (_jsx("div", { "data-slot": "alert", "data-variant": variant ?? "default", role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
19
33
|
}
|
|
@@ -8,7 +8,7 @@ type AppLogo = {
|
|
|
8
8
|
/** The logo Composio's catalogue gives a toolkit: its `meta.logo`, and the drawing it serves for a dark theme. */
|
|
9
9
|
declare function composioLogo(toolkit: string): AppLogo;
|
|
10
10
|
/** What the tile draws: the logo its catalogue gives, a platform's mark, or neither and the initial. */
|
|
11
|
-
type AppMarkGlyph = {
|
|
11
|
+
export type AppMarkGlyph = {
|
|
12
12
|
/** The logo the app's catalogue gives, such as `composioLogo(toolkit)`. */
|
|
13
13
|
logo?: AppLogo;
|
|
14
14
|
platform?: never;
|
|
@@ -29,9 +29,19 @@ type AppMarkProps = Omit<React.ComponentProps<"span">, "children"> & AppMarkGlyp
|
|
|
29
29
|
label?: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* An app, a channel or anything else a record connects, in the tile every
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* An app, a channel or anything else a record connects, in the tile every such mark shares.
|
|
33
|
+
*
|
|
34
|
+
* @family Status
|
|
35
|
+
* @when A connected app or channel beside its name: a toolkit in the Library, a messaging channel
|
|
36
|
+
* on an Agent. 28 px in a row.
|
|
37
|
+
* @instead A model's maker is `ModelMark`. A Library skill is its `IdentityMark` tile. An Agent is
|
|
38
|
+
* her orb. A platform alone, with no tile, is `PlatformMark`.
|
|
39
|
+
* @behaviour Draws the catalogue's logo (`composioLogo(toolkit)`), else the platform's mark, else
|
|
40
|
+
* the app's initial; never a guessed logo. The logo takes its dark drawing in a dark theme. The
|
|
41
|
+
* glyph is 62% of the tile.
|
|
42
|
+
* @words None of its own; the app's name stands beside it.
|
|
43
|
+
* @access Decorative beside the name. A bare mark takes `label` and becomes `role="img"` with that
|
|
44
|
+
* name.
|
|
35
45
|
*/
|
|
36
46
|
declare function AppMark({ app, logo, platform, size, label, className, style, ...props }: AppMarkProps): React.JSX.Element;
|
|
37
47
|
export { AppMark, composioLogo };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-mark.d.ts","sourceRoot":"","sources":["../../src/components/app-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOlE,qFAAqF;AACrF,KAAK,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/C,kHAAkH;AAClH,iB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
|
|
@@ -17,9 +17,19 @@ function appInitial(app) {
|
|
|
17
17
|
?.toUpperCase() ?? "?");
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* An app, a channel or anything else a record connects, in the tile every
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* An app, a channel or anything else a record connects, in the tile every such mark shares.
|
|
21
|
+
*
|
|
22
|
+
* @family Status
|
|
23
|
+
* @when A connected app or channel beside its name: a toolkit in the Library, a messaging channel
|
|
24
|
+
* on an Agent. 28 px in a row.
|
|
25
|
+
* @instead A model's maker is `ModelMark`. A Library skill is its `IdentityMark` tile. An Agent is
|
|
26
|
+
* her orb. A platform alone, with no tile, is `PlatformMark`.
|
|
27
|
+
* @behaviour Draws the catalogue's logo (`composioLogo(toolkit)`), else the platform's mark, else
|
|
28
|
+
* the app's initial; never a guessed logo. The logo takes its dark drawing in a dark theme. The
|
|
29
|
+
* glyph is 62% of the tile.
|
|
30
|
+
* @words None of its own; the app's name stands beside it.
|
|
31
|
+
* @access Decorative beside the name. A bare mark takes `label` and becomes `role="img"` with that
|
|
32
|
+
* name.
|
|
23
33
|
*/
|
|
24
34
|
function AppMark({ app, logo, platform, size = APP_MARK_SIZE, label, className, style, ...props }) {
|
|
25
35
|
const named = Boolean(label?.trim() || props["aria-label"]?.trim() || props["aria-labelledby"]?.trim());
|
|
@@ -3,11 +3,24 @@ import { Item } from "./item.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* One thing waiting for a person's yes: a mark for what is asking, the request
|
|
5
5
|
* in one sentence, what happened underneath it, and the single action that
|
|
6
|
-
* clears it.
|
|
7
|
-
*
|
|
6
|
+
* clears it.
|
|
7
|
+
*
|
|
8
|
+
* It is a row and not a card, because an approval is one of a list and the list
|
|
9
|
+
* is read top to bottom; put several in an `ItemGroup`.
|
|
8
10
|
*
|
|
9
11
|
* The row says what waits and offers the yes. Who may say it, what it changes
|
|
10
12
|
* and what happens after belong to the product that mounts it.
|
|
13
|
+
*
|
|
14
|
+
* @family Data
|
|
15
|
+
* @when Each request in a list of approvals: a mark for what is asking, the request in one
|
|
16
|
+
* sentence, what happened, and the one action that clears it.
|
|
17
|
+
* @instead A record's state is a `StatusBadge`. A notice about a condition is `NoticeBanner`. An
|
|
18
|
+
* Agent's question inside a conversation belongs to the conversation.
|
|
19
|
+
* @behaviour An outline `Item` at the small size; several sit in an `ItemGroup`. A `failed`
|
|
20
|
+
* description is announced.
|
|
21
|
+
* @words The title is the request as a sentence; the action is its yes as verb and noun: *Approve
|
|
22
|
+
* payment*.
|
|
23
|
+
* @access A `listitem`; a failed description is `role="alert"`.
|
|
11
24
|
*/
|
|
12
25
|
export declare function ApprovalRow({ action, description, failed, media, title, ...props }: Omit<ComponentProps<typeof Item>, "children" | "variant" | "size" | "title"> & {
|
|
13
26
|
/** The mark of what is asking: a channel's mark, a person's avatar, an Agent's orb. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-row.d.ts","sourceRoot":"","sources":["../../src/components/approval-row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EACL,IAAI,EAML,MAAM,mBAAmB,CAAC;AAE3B
|
|
1
|
+
{"version":3,"file":"approval-row.d.ts","sourceRoot":"","sources":["../../src/components/approval-row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EACL,IAAI,EAML,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,WAAW,EACX,MAAM,EACN,KAAK,EACL,KAAK,EACL,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG;IAChF,uFAAuF;IACvF,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,+BAeA"}
|
|
@@ -3,11 +3,24 @@ import { Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle,
|
|
|
3
3
|
/**
|
|
4
4
|
* One thing waiting for a person's yes: a mark for what is asking, the request
|
|
5
5
|
* in one sentence, what happened underneath it, and the single action that
|
|
6
|
-
* clears it.
|
|
7
|
-
*
|
|
6
|
+
* clears it.
|
|
7
|
+
*
|
|
8
|
+
* It is a row and not a card, because an approval is one of a list and the list
|
|
9
|
+
* is read top to bottom; put several in an `ItemGroup`.
|
|
8
10
|
*
|
|
9
11
|
* The row says what waits and offers the yes. Who may say it, what it changes
|
|
10
12
|
* and what happens after belong to the product that mounts it.
|
|
13
|
+
*
|
|
14
|
+
* @family Data
|
|
15
|
+
* @when Each request in a list of approvals: a mark for what is asking, the request in one
|
|
16
|
+
* sentence, what happened, and the one action that clears it.
|
|
17
|
+
* @instead A record's state is a `StatusBadge`. A notice about a condition is `NoticeBanner`. An
|
|
18
|
+
* Agent's question inside a conversation belongs to the conversation.
|
|
19
|
+
* @behaviour An outline `Item` at the small size; several sit in an `ItemGroup`. A `failed`
|
|
20
|
+
* description is announced.
|
|
21
|
+
* @words The title is the request as a sentence; the action is its yes as verb and noun: *Approve
|
|
22
|
+
* payment*.
|
|
23
|
+
* @access A `listitem`; a failed description is `role="alert"`.
|
|
11
24
|
*/
|
|
12
25
|
export function ApprovalRow({ action, description, failed, media, title, ...props }) {
|
|
13
26
|
return (_jsxs(Item, { role: "listitem", size: "sm", variant: "outline", ...props, children: [media ? _jsx(ItemMedia, { children: media }) : null, _jsxs(ItemContent, { className: "min-w-0", children: [_jsx(ItemTitle, { children: title }), description ? (_jsx(ItemDescription, { ...(failed ? { role: "alert" } : {}), whole: failed, children: description })) : null] }), action ? _jsx(ItemActions, { children: action }) : null] }));
|