@nadicodeai/ui 12.1.96 → 12.1.97
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 +14 -0
- 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 +17 -0
- 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 +10 -0
- 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 +16 -0
- 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 +20 -7
- 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 +15 -0
- 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 +15 -0
- 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 +16 -0
- 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 +16 -0
- 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
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { Mail, Plus, Puzzle, Wrench } from "lucide-react";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { ActivityFeed } from "../../components/activity-feed.js";
|
|
6
|
+
import { AgentOrb } from "../../components/agent-orb.js";
|
|
7
|
+
import { AgentProfileCard } from "../../components/agent-profile.js";
|
|
8
|
+
import { BrandWordmark } from "../../components/brand.js";
|
|
9
|
+
import { Button } from "../../components/button.js";
|
|
10
|
+
import { CatalogDrawer } from "../../components/catalog-drawer.js";
|
|
11
|
+
import { CollectionFilters } from "../../components/collection-filters.js";
|
|
12
|
+
import { CollectionPage } from "../../components/collection-page.js";
|
|
13
|
+
import { CollectionSearch } from "../../components/collection-search.js";
|
|
14
|
+
import { CollectionToolbar } from "../../components/collection-toolbar.js";
|
|
15
|
+
import { ConfirmDialog } from "../../components/confirm-dialog.js";
|
|
16
|
+
import { EntryAction, EntryActions, EntryMessage, EntryScene } from "../../components/entry-scene.js";
|
|
17
|
+
import { FormDialog, FormDialogForm } from "../../components/form-dialog.js";
|
|
18
|
+
import { FormDrawer, FormDrawerBody, FormDrawerFooter } from "../../components/form-drawer.js";
|
|
19
|
+
import { Input } from "../../components/input.js";
|
|
20
|
+
import { Label } from "../../components/label.js";
|
|
21
|
+
import { LibraryShelf } from "../../components/library-shelf.js";
|
|
22
|
+
import { NadiaPresence } from "../../components/nadia-presence.js";
|
|
23
|
+
import { ObjectPage } from "../../components/object-page.js";
|
|
24
|
+
import { ObjectFacts, ObjectSection } from "../../components/object-workspace.js";
|
|
25
|
+
import { OverviewPage } from "../../components/overview-page.js";
|
|
26
|
+
import { PageActions, PageActionsHostProvider } from "../../components/page-actions.js";
|
|
27
|
+
import { PageHeader } from "../../components/page-header.js";
|
|
28
|
+
import { RecordList } from "../../components/record-list.js";
|
|
29
|
+
import { RecordSheet } from "../../components/record-sheet.js";
|
|
30
|
+
import { RowEditForm } from "../../components/row-edit-form.js";
|
|
31
|
+
import { SettingsField, SettingsSection } from "../../components/settings-section.js";
|
|
32
|
+
import { SettingsPage } from "../../components/settings-page.js";
|
|
33
|
+
import { useEmptyArt } from "../assets.js";
|
|
34
|
+
import { COBALTO, MAILBOXES, nothing, PAGE_MENU, RECORD_COMMANDS, } from "../samples.js";
|
|
35
|
+
const FILTER_COPY = {
|
|
36
|
+
add: "Filter",
|
|
37
|
+
searchFields: "Find a filter",
|
|
38
|
+
searchValues: "Find a value",
|
|
39
|
+
empty: "Nothing matches",
|
|
40
|
+
back: "Back to filters",
|
|
41
|
+
remove: "Remove filter",
|
|
42
|
+
};
|
|
43
|
+
const MAILBOX_LIST = {
|
|
44
|
+
getId: (mailbox) => mailbox.id,
|
|
45
|
+
name: (mailbox) => ({
|
|
46
|
+
name: mailbox.address,
|
|
47
|
+
detail: `Mailbox · read by ${mailbox.owner}`,
|
|
48
|
+
mark: { kind: "record", icon: Mail },
|
|
49
|
+
}),
|
|
50
|
+
status: {
|
|
51
|
+
label: "Status",
|
|
52
|
+
of: (mailbox) => mailbox.status === "failed" ? { label: "Can't sign in", tone: "danger" } : null,
|
|
53
|
+
},
|
|
54
|
+
menu: (mailbox) => ({ label: `More for ${mailbox.address}`, commands: RECORD_COMMANDS }),
|
|
55
|
+
commandsHeader: "Actions",
|
|
56
|
+
};
|
|
57
|
+
const CATALOG = [
|
|
58
|
+
{
|
|
59
|
+
id: "company",
|
|
60
|
+
title: "From your company",
|
|
61
|
+
entries: [
|
|
62
|
+
{
|
|
63
|
+
id: "quotes",
|
|
64
|
+
mark: { kind: "record", icon: Wrench, tone: "skill" },
|
|
65
|
+
name: "Write quotes from the price list",
|
|
66
|
+
description: "Reads listino-2026.xlsx and drafts a quote in the customer's language.",
|
|
67
|
+
add: { label: "Add skill", onClick: nothing },
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "weather",
|
|
71
|
+
mark: { kind: "record", icon: Puzzle, tone: "plugin" },
|
|
72
|
+
name: "Weather",
|
|
73
|
+
description: "The forecast for each delivery address.",
|
|
74
|
+
add: { label: "Add plugin", onClick: nothing, added: { label: "Added" } },
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
function useMailboxFilter() {
|
|
80
|
+
const [search, setSearch] = useState("");
|
|
81
|
+
const [status, setStatus] = useState("");
|
|
82
|
+
const records = MAILBOXES.filter((mailbox) => mailbox.address.includes(search.trim().toLowerCase()) &&
|
|
83
|
+
(status === "" || mailbox.status === status));
|
|
84
|
+
return {
|
|
85
|
+
records,
|
|
86
|
+
search: { label: "Find a mailbox", value: search, onValueChange: setSearch },
|
|
87
|
+
filters: {
|
|
88
|
+
facets: [
|
|
89
|
+
{
|
|
90
|
+
label: "Status",
|
|
91
|
+
allLabel: "Any status",
|
|
92
|
+
value: status,
|
|
93
|
+
onValueChange: setStatus,
|
|
94
|
+
options: [
|
|
95
|
+
{ value: "connected", label: "Connected" },
|
|
96
|
+
{ value: "failed", label: "Can't sign in" },
|
|
97
|
+
],
|
|
98
|
+
suggested: ["failed"],
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
copy: FILTER_COPY,
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function ActivityFeedSpecimen() {
|
|
106
|
+
return (_jsx(ActivityFeed, { days: [
|
|
107
|
+
{
|
|
108
|
+
id: "today",
|
|
109
|
+
title: "Today",
|
|
110
|
+
date: "2026-10-14",
|
|
111
|
+
events: [
|
|
112
|
+
{
|
|
113
|
+
id: "quote",
|
|
114
|
+
at: "2026-10-14T09:13:00Z",
|
|
115
|
+
actor: { kind: "agent", orb: { form: "orbit", color: COBALTO } },
|
|
116
|
+
summary: "Acme Quotes drafted a quote for Rossi Ottica",
|
|
117
|
+
status: { label: "Waiting for you", tone: "warning" },
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: "invoices",
|
|
121
|
+
at: "2026-10-14T07:30:00Z",
|
|
122
|
+
actor: { kind: "person", name: "Ada Rossi" },
|
|
123
|
+
summary: "Ada Rossi connected pec@acme.it",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
], empty: { kind: "nothingYet", message: "Nothing has happened yet." }, label: "Activity", loadingLabel: "Loading activity", locale: "en" }));
|
|
128
|
+
}
|
|
129
|
+
function AgentProfileCardSpecimen() {
|
|
130
|
+
return (_jsx(AgentProfileCard, { activity: { label: "Last active", value: "Today at 09:13", missingLabel: "Never" }, description: "Writes quotes from the price list", descriptionMissingLabel: "No description yet", edit: { label: "Edit Acme Quotes", onClick: nothing }, name: "Acme Quotes", orb: (size) => _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: size }), origin: { label: "Made from", value: "Sales template", missingLabel: "Made from scratch" }, state: { label: "State", tone: "success", text: "Ready" } }));
|
|
131
|
+
}
|
|
132
|
+
function CatalogDrawerSpecimen() {
|
|
133
|
+
const [open, setOpen] = useState(false);
|
|
134
|
+
const [search, setSearch] = useState("");
|
|
135
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Button, { onClick: () => setOpen(true), variant: "outline", children: [_jsx(Plus, { "aria-hidden": "true", "data-icon": "inline-start" }), "Add skill"] }), _jsx(CatalogDrawer, { closeLabel: "Close", done: "Done", empty: { kind: "nothingYet", message: "No skill to add yet." }, loadingLabel: "Loading skills", onOpenChange: setOpen, open: open, search: { label: "Find a skill", value: search, onValueChange: setSearch }, sections: CATALOG, title: "Add a skill" })] }));
|
|
136
|
+
}
|
|
137
|
+
function CollectionFiltersSpecimen() {
|
|
138
|
+
const { filters } = useMailboxFilter();
|
|
139
|
+
return _jsx(CollectionFilters, { ...filters });
|
|
140
|
+
}
|
|
141
|
+
function CollectionPageSpecimen() {
|
|
142
|
+
const art = useEmptyArt();
|
|
143
|
+
const { records, search, filters } = useMailboxFilter();
|
|
144
|
+
return (_jsx(CollectionPage, { ...MAILBOX_LIST, actions: {
|
|
145
|
+
primary: { label: "Add mailbox", icon: _jsx(Plus, {}), onClick: nothing },
|
|
146
|
+
menu: PAGE_MENU,
|
|
147
|
+
}, empty: {
|
|
148
|
+
kind: "firstUse",
|
|
149
|
+
title: "No mailboxes yet",
|
|
150
|
+
description: "Every address your Agents read and send from lives here.",
|
|
151
|
+
picture: art.mail,
|
|
152
|
+
action: { label: "Add mailbox", icon: _jsx(Plus, {}), onClick: nothing },
|
|
153
|
+
}, filters: filters, footer: { count: `${records.length} mailboxes` }, label: "Mailboxes", noMatch: {
|
|
154
|
+
message: "No mailbox matches.",
|
|
155
|
+
clear: { label: "Clear search", onClick: () => search.onValueChange("") },
|
|
156
|
+
}, records: records, search: search, title: "Mailboxes" }));
|
|
157
|
+
}
|
|
158
|
+
function CollectionToolbarSpecimen() {
|
|
159
|
+
const { search, filters } = useMailboxFilter();
|
|
160
|
+
return (_jsx(CollectionToolbar, { controls: _jsx(CollectionFilters, { ...filters }), label: "Mailbox tools", search: _jsx(CollectionSearch, { ...search }), surface: "plain" }));
|
|
161
|
+
}
|
|
162
|
+
function ConfirmDialogSpecimen() {
|
|
163
|
+
const [open, setOpen] = useState(false);
|
|
164
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setOpen(true), variant: "outline", children: "Remove mailbox" }), _jsx(ConfirmDialog, { cancelLabel: "Cancel", confirmLabel: "Remove mailbox", confirmPendingLabel: "Removing mailbox", description: "Agents stop reading and sending from this address.", destructive: true, onCancel: () => setOpen(false), onConfirm: () => setOpen(false), open: open, title: "Remove pec@acme.it" })] }));
|
|
165
|
+
}
|
|
166
|
+
function EntrySceneSpecimen() {
|
|
167
|
+
const art = useEmptyArt();
|
|
168
|
+
return (_jsx("div", { className: "max-w-3xl overflow-hidden rounded-md", children: _jsxs(EntryScene, { picture: _jsx("img", { alt: "", className: "size-full object-cover", src: art.agents }), presence: _jsx(NadiaPresence, { label: "Nadia is ready", reveal: 1, state: "ready" }), title: "Nadia is ready", wordmark: _jsx(BrandWordmark, {}), children: [_jsx(EntryMessage, { children: "Sign in to bring your Agents to this computer." }), _jsx(EntryActions, { children: _jsx(EntryAction, { children: "Sign in" }) })] }) }));
|
|
169
|
+
}
|
|
170
|
+
function FormDialogSpecimen() {
|
|
171
|
+
const [open, setOpen] = useState(false);
|
|
172
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setOpen(true), variant: "outline", children: "New customer" }), _jsx(FormDialog, { closeLabel: "Close", onOpenChange: setOpen, open: open, title: "Create customer", children: _jsx(FormDialogForm, { cancelLabel: "Cancel", onSubmit: (event) => {
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
setOpen(false);
|
|
175
|
+
}, submit: { label: "Create customer", pendingLabel: "Creating customer" }, children: _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { htmlFor: "showcase-customer", children: "Company name" }), _jsx(Input, { id: "showcase-customer", placeholder: "Bizeta Arredamenti" })] }) }) })] }));
|
|
176
|
+
}
|
|
177
|
+
function FormDrawerSpecimen() {
|
|
178
|
+
const [open, setOpen] = useState(false);
|
|
179
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setOpen(true), variant: "outline", children: "Connect Telegram" }), _jsxs(FormDrawer, { closeLabel: "Close", job: "steps", onOpenChange: setOpen, open: open, progress: "Step 1 of 2", title: "Connect Telegram", children: [_jsx(FormDrawerBody, { children: _jsx("p", { className: "text-sm", children: "Open the bot on your phone and send it the code 4821." }) }), _jsx(FormDrawerFooter, { cancel: { label: "Cancel" }, children: _jsx(Button, { onClick: () => setOpen(false), children: "Continue" }) })] })] }));
|
|
180
|
+
}
|
|
181
|
+
function LibraryShelfSpecimen() {
|
|
182
|
+
const art = useEmptyArt();
|
|
183
|
+
const [search, setSearch] = useState("");
|
|
184
|
+
return (_jsx(LibraryShelf, { definition: "Skills teach an Agent one job. Add one and every Agent you choose can do it.", empty: {
|
|
185
|
+
kind: "firstUse",
|
|
186
|
+
title: "No skills yet",
|
|
187
|
+
description: "The jobs your Agents know live here.",
|
|
188
|
+
picture: art.skills,
|
|
189
|
+
}, loadingLabel: "Loading skills", search: { label: "Find a skill", value: search, onValueChange: setSearch }, sections: CATALOG }));
|
|
190
|
+
}
|
|
191
|
+
function OverviewPageSpecimen() {
|
|
192
|
+
return (_jsx(OverviewPage, { exceptions: _jsx(RecordList, { ...MAILBOX_LIST, heading: { title: "Needs attention", meta: "1 of 3 mailboxes" }, label: "Needs attention", records: MAILBOXES.filter((mailbox) => mailbox.status === "failed") }), figures: [
|
|
193
|
+
{
|
|
194
|
+
label: "Runs this month",
|
|
195
|
+
value: "1,284",
|
|
196
|
+
delta: {
|
|
197
|
+
value: "+18%",
|
|
198
|
+
direction: "up",
|
|
199
|
+
comparison: "vs September",
|
|
200
|
+
directionLabel: "up",
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
{ label: "Waiting for you", value: "2", tone: "warning", note: "Two approvals" },
|
|
204
|
+
{
|
|
205
|
+
label: "Cost this month",
|
|
206
|
+
value: "€ 412",
|
|
207
|
+
delta: {
|
|
208
|
+
value: "−6%",
|
|
209
|
+
direction: "down",
|
|
210
|
+
upIsGood: false,
|
|
211
|
+
comparison: "vs September",
|
|
212
|
+
directionLabel: "down",
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
] }));
|
|
216
|
+
}
|
|
217
|
+
function RecordSheetSpecimen() {
|
|
218
|
+
const [open, setOpen] = useState(false);
|
|
219
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setOpen(true), variant: "outline", children: "Inspect pec@acme.it" }), _jsx(RecordSheet, { closeLabel: "Close", code: {
|
|
220
|
+
label: "Mailbox ID",
|
|
221
|
+
value: "mbx_0042",
|
|
222
|
+
copyLabel: "Copy mailbox ID",
|
|
223
|
+
copiedLabel: "Copied",
|
|
224
|
+
copyFailedLabel: "Couldn't copy",
|
|
225
|
+
}, facts: [
|
|
226
|
+
{ label: "Read by", value: "Invoices" },
|
|
227
|
+
{ label: "Server", value: "imaps.pec.aruba.it" },
|
|
228
|
+
], footer: { label: "Open pec@acme.it", onClick: nothing }, onOpenChange: setOpen, open: open, title: "pec@acme.it" })] }));
|
|
229
|
+
}
|
|
230
|
+
function RowEditFormSpecimen() {
|
|
231
|
+
const [name, setName] = useState("Invoices");
|
|
232
|
+
return (_jsx("div", { className: "max-w-lg rounded-md border border-border", children: _jsx(RowEditForm, { cancelLabel: "Cancel", hint: "Agents see the new name at once.", onCancel: () => setName("Invoices"), onSubmit: (event) => event.preventDefault(), submit: { label: "Save", disabled: name === "Invoices" }, children: _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { htmlFor: "showcase-row-name", children: "Name" }), _jsx(Input, { id: "showcase-row-name", onChange: (event) => setName(event.target.value), value: name })] }) }) }));
|
|
233
|
+
}
|
|
234
|
+
function SettingsSectionSpecimen() {
|
|
235
|
+
return (_jsx(SettingsSection, { description: "The name and address your Customers read on every message.", save: {
|
|
236
|
+
action: async () => null,
|
|
237
|
+
label: "Save",
|
|
238
|
+
pendingLabel: "Saving",
|
|
239
|
+
savedLabel: "Saved",
|
|
240
|
+
hint: "Saved for every device you sign in on.",
|
|
241
|
+
}, title: "Sender", children: _jsx(SettingsField, { id: "showcase-sender-name", label: "Sender name", children: ({ controlProps }) => (_jsx(Input, { ...controlProps, defaultValue: "Acme Quotes", name: "senderName" })) }) }));
|
|
242
|
+
}
|
|
243
|
+
export const COMPOSITIONS = {
|
|
244
|
+
ActivityFeed: ActivityFeedSpecimen,
|
|
245
|
+
AgentProfileCard: AgentProfileCardSpecimen,
|
|
246
|
+
CatalogDrawer: CatalogDrawerSpecimen,
|
|
247
|
+
CollectionFilters: CollectionFiltersSpecimen,
|
|
248
|
+
CollectionPage: CollectionPageSpecimen,
|
|
249
|
+
CollectionToolbar: CollectionToolbarSpecimen,
|
|
250
|
+
ConfirmDialog: ConfirmDialogSpecimen,
|
|
251
|
+
EntryScene: EntrySceneSpecimen,
|
|
252
|
+
FormDialog: FormDialogSpecimen,
|
|
253
|
+
FormDrawer: FormDrawerSpecimen,
|
|
254
|
+
LibraryShelf: LibraryShelfSpecimen,
|
|
255
|
+
ObjectPage: () => (_jsx(ObjectPage, { actions: { secondary: { label: "Edit", onClick: nothing }, menu: PAGE_MENU }, description: "Optician \u00B7 partner since March 2026", facts: [
|
|
256
|
+
{ label: "Customers", value: "4" },
|
|
257
|
+
{ label: "Plan", value: "Business" },
|
|
258
|
+
], mark: { kind: "company", name: "Rossi Ottica" }, name: "Rossi Ottica", children: _jsx(ObjectSection, { title: "Company", children: _jsx(ObjectFacts, { facts: [{ label: "VAT number", value: "IT01234567890" }] }) }) })),
|
|
259
|
+
ObjectSection: () => (_jsx(ObjectSection, { action: { label: "Edit", onClick: nothing }, meta: "Changed on 2 October", title: "Billing", children: _jsx(ObjectFacts, { facts: [
|
|
260
|
+
{ label: "Billing email", value: "amministrazione@acme.it" },
|
|
261
|
+
{ label: "Plan", value: "Business" },
|
|
262
|
+
] }) })),
|
|
263
|
+
OverviewPage: OverviewPageSpecimen,
|
|
264
|
+
PageHeader: () => (_jsxs(PageActionsHostProvider, { children: [_jsx(PageHeader, { title: "Customers" }), _jsx(PageActions, { primary: { label: "Invite customer", icon: _jsx(Plus, {}), onClick: nothing } })] })),
|
|
265
|
+
RecordList: () => (_jsx(RecordList, { ...MAILBOX_LIST, footer: { count: "3 mailboxes" }, label: "Mailboxes", records: MAILBOXES })),
|
|
266
|
+
RecordSheet: RecordSheetSpecimen,
|
|
267
|
+
RowEditForm: RowEditFormSpecimen,
|
|
268
|
+
SettingsPage: () => (_jsx(SettingsPage, { title: "Company settings", children: _jsx(SettingsSectionSpecimen, {}) })),
|
|
269
|
+
SettingsSection: SettingsSectionSpecimen,
|
|
270
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare function DataTableSpecimen(): import("react").JSX.Element;
|
|
2
|
+
declare function DisclosureRowSpecimen(): import("react").JSX.Element;
|
|
3
|
+
declare function UsageTable(): import("react").JSX.Element;
|
|
4
|
+
export declare const DATA: {
|
|
5
|
+
AgentCard: () => import("react").JSX.Element;
|
|
6
|
+
ApprovalRow: () => import("react").JSX.Element;
|
|
7
|
+
Card: () => import("react").JSX.Element;
|
|
8
|
+
CardRow: () => import("react").JSX.Element;
|
|
9
|
+
CodeBlock: () => import("react").JSX.Element;
|
|
10
|
+
DataTable: typeof DataTableSpecimen;
|
|
11
|
+
DiffCount: () => import("react").JSX.Element;
|
|
12
|
+
DisclosureRow: typeof DisclosureRowSpecimen;
|
|
13
|
+
FileDiff: () => import("react").JSX.Element;
|
|
14
|
+
Item: () => import("react").JSX.Element;
|
|
15
|
+
Kbd: () => import("react").JSX.Element;
|
|
16
|
+
MemoryItem: () => import("react").JSX.Element;
|
|
17
|
+
ObjectFacts: () => import("react").JSX.Element;
|
|
18
|
+
PairingCode: () => import("react").JSX.Element;
|
|
19
|
+
Progress: () => import("react").JSX.Element;
|
|
20
|
+
QrCode: () => import("react").JSX.Element;
|
|
21
|
+
RecordTime: () => import("react").JSX.Element;
|
|
22
|
+
RunTimeline: () => import("react").JSX.Element;
|
|
23
|
+
SettingsFactsSection: () => import("react").JSX.Element;
|
|
24
|
+
StatusRow: () => import("react").JSX.Element;
|
|
25
|
+
Table: typeof UsageTable;
|
|
26
|
+
TableCard: () => import("react").JSX.Element;
|
|
27
|
+
TableValue: () => import("react").JSX.Element;
|
|
28
|
+
UsageMeter: () => import("react").JSX.Element;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/data.tsx"],"names":[],"mappings":"AAqFA,iBAAS,iBAAiB,gCAczB;AAED,iBAAS,qBAAqB,gCAc7B;AAED,iBAAS,UAAU,gCAgClB;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;CAiOU,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { MessageCircle, RotateCw } from "lucide-react";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { AgentCard } from "../../components/agent-card.js";
|
|
6
|
+
import { AgentOrb } from "../../components/agent-orb.js";
|
|
7
|
+
import { ApprovalRow } from "../../components/approval-row.js";
|
|
8
|
+
import { Button } from "../../components/button.js";
|
|
9
|
+
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "../../components/card.js";
|
|
10
|
+
import { CardRow } from "../../components/card-row.js";
|
|
11
|
+
import { CodeBlock } from "../../components/code-block.js";
|
|
12
|
+
import { DataTable } from "../../components/data-table.js";
|
|
13
|
+
import { DiffCount } from "../../components/diff-count.js";
|
|
14
|
+
import { DisclosureRow } from "../../components/disclosure-row.js";
|
|
15
|
+
import { FileDiff } from "../../components/file-diff.js";
|
|
16
|
+
import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, } from "../../components/item.js";
|
|
17
|
+
import { Kbd, KbdGroup } from "../../components/kbd.js";
|
|
18
|
+
import { MemoryItem } from "../../components/memory-item.js";
|
|
19
|
+
import { ObjectFacts } from "../../components/object-workspace.js";
|
|
20
|
+
import { PairingCode } from "../../components/pairing-code.js";
|
|
21
|
+
import { Progress, ProgressLabel, ProgressValue } from "../../components/progress.js";
|
|
22
|
+
import { QrCode } from "../../components/qr-code.js";
|
|
23
|
+
import { RecordTime } from "../../components/record-time.js";
|
|
24
|
+
import { RunTimeline } from "../../components/run-timeline.js";
|
|
25
|
+
import { SettingsFactsSection } from "../../components/settings-facts.js";
|
|
26
|
+
import { StatusDot } from "../../components/status-dot.js";
|
|
27
|
+
import { StatusRow, StatusSection } from "../../components/status-row.js";
|
|
28
|
+
import { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "../../components/table.js";
|
|
29
|
+
import { TableCard } from "../../components/table-card.js";
|
|
30
|
+
import { TableValue } from "../../components/table-value.js";
|
|
31
|
+
import { UsageMeter } from "../../components/usage-meter.js";
|
|
32
|
+
import { COBALTO, MAILBOXES, NOW, nothing } from "../samples.js";
|
|
33
|
+
const MCP_JSON = `{
|
|
34
|
+
"mcpServers": {
|
|
35
|
+
"fatture": { "url": "https://mcp.acme.it/fatture" }
|
|
36
|
+
}
|
|
37
|
+
}`;
|
|
38
|
+
const COPY_LABELS = {
|
|
39
|
+
copiedLabel: "Copied",
|
|
40
|
+
copyFailedLabel: "Couldn't copy",
|
|
41
|
+
};
|
|
42
|
+
const USAGE_ROWS = [
|
|
43
|
+
{ agent: "Invoices", tokens: "1,204,330", cost: "€ 18.40" },
|
|
44
|
+
{ agent: "Orders", tokens: "612,904", cost: "€ 9.12" },
|
|
45
|
+
{ agent: "Support", tokens: "2,033,118", cost: "€ 31.75" },
|
|
46
|
+
];
|
|
47
|
+
const USAGE_COLUMNS = [
|
|
48
|
+
{ accessorKey: "agent", header: "Agent" },
|
|
49
|
+
{ accessorKey: "tokens", header: "Tokens", meta: { numeric: true } },
|
|
50
|
+
{ accessorKey: "cost", header: "Cost (€)", meta: { numeric: true } },
|
|
51
|
+
];
|
|
52
|
+
function DataTableSpecimen() {
|
|
53
|
+
return (_jsx(DataTable, { columns: USAGE_COLUMNS, data: [...USAGE_ROWS], empty: { kind: "nothingYet", message: "No Agent has run this month." }, footer: "3 Agents", getRowId: (row) => row.agent, heading: { title: "Usage by Agent" }, primaryColumns: ["agent", "cost"], summary: { label: "Total", value: "€ 59.27" }, tableLabel: "Usage by Agent, this month" }));
|
|
54
|
+
}
|
|
55
|
+
function DisclosureRowSpecimen() {
|
|
56
|
+
const [open, setOpen] = useState(false);
|
|
57
|
+
return (_jsxs("div", { className: "grid max-w-md gap-2", children: [_jsx(DisclosureRow, { onToggle: () => setOpen((value) => !value), open: open, trailing: "3 steps", children: "Read the price list" }), open ? (_jsx("p", { className: "pl-6 text-sm text-muted-foreground", children: "Opened listino-2026.xlsx, read 412 rows, kept 38 for the quote." })) : null] }));
|
|
58
|
+
}
|
|
59
|
+
function UsageTable() {
|
|
60
|
+
return (_jsxs(Table, { "aria-label": "Usage by Agent", children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { scope: "col", children: "Agent" }), _jsx(TableHead, { className: "text-right", scope: "col", children: "Tokens" }), _jsx(TableHead, { className: "text-right", scope: "col", children: "Cost (\u20AC)" })] }) }), _jsx(TableBody, { children: USAGE_ROWS.map((row) => (_jsxs(TableRow, { children: [_jsx(TableCell, { children: row.agent }), _jsx(TableCell, { className: "text-right tabular-nums", children: row.tokens }), _jsx(TableCell, { className: "text-right tabular-nums", children: row.cost })] }, row.agent))) }), _jsx(TableFooter, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: "Total" }), _jsx(TableCell, { className: "text-right tabular-nums", children: "3,850,352" }), _jsx(TableCell, { className: "text-right tabular-nums", children: "\u20AC 59.27" })] }) })] }));
|
|
61
|
+
}
|
|
62
|
+
export const DATA = {
|
|
63
|
+
AgentCard: () => (_jsx("div", { className: "max-w-md", children: _jsx(AgentCard, { action: _jsx(Button, { variant: "outline", children: "Use template" }), job: "Writes quotes from the price list", meta: "Sales \u00B7 3 skills", name: "Acme Quotes", visual: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 96 }) }) })),
|
|
64
|
+
ApprovalRow: () => (_jsx(ItemGroup, { className: "max-w-lg", role: "list", children: _jsx(ApprovalRow, { action: _jsx(Button, { children: "Approve payment" }), description: "Invoices drafted it from the October statement.", media: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 32 }), title: "Pay Bizeta Arredamenti \u20AC 1,240" }) })),
|
|
65
|
+
Card: () => (_jsxs(Card, { className: "max-w-md", children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Billing contact" }), _jsx(CardDescription, { children: "Who receives invoices and payment reminders." }), _jsx(CardAction, { children: _jsx(Button, { variant: "outline", children: "Edit" }) })] }), _jsx(CardContent, { className: "text-sm", children: "amministrazione@acme.it" }), _jsx(CardFooter, { className: "text-sm text-muted-foreground", children: "Changed on 2 October" })] })),
|
|
66
|
+
CardRow: () => (_jsx(CardRow, { columns: 3, children: ["Runs", "Approvals", "Cost"].map((title, index) => (_jsx(Card, { children: _jsxs(CardHeader, { children: [_jsx(CardTitle, { children: title }), _jsx(CardDescription, { children: index === 1 ? "A longer line shows every card keeps the tallest's height." : "—" })] }) }, title))) })),
|
|
67
|
+
CodeBlock: () => (_jsx("div", { className: "max-w-lg", children: _jsx(CodeBlock, { ...COPY_LABELS, code: MCP_JSON, copyLabel: "Copy mcp.json", filename: "mcp.json", label: "MCP configuration", language: "JSON" }) })),
|
|
68
|
+
DataTable: DataTableSpecimen,
|
|
69
|
+
DiffCount: () => (_jsxs("span", { className: "flex items-center gap-2 font-mono text-sm", children: ["quote-template.md", _jsx(DiffCount, { added: 12, removed: 3 })] })),
|
|
70
|
+
DisclosureRow: DisclosureRowSpecimen,
|
|
71
|
+
FileDiff: () => (_jsx(FileDiff, { addedLabel: "Added", after: "Payment within 30 days.\nPrices include VAT.\nValid until 31 December.", before: "Payment within 60 days.\nPrices include VAT.", className: "max-w-lg", removedLabel: "Removed", skippedLabel: (count) => `${count} unchanged lines` })),
|
|
72
|
+
Item: () => (_jsxs(ItemGroup, { className: "max-w-lg", divided: true, children: [_jsxs(Item, { children: [_jsx(ItemMedia, { variant: "icon", children: _jsx(MessageCircle, { "aria-hidden": "true" }) }), _jsxs(ItemContent, { children: [_jsx(ItemTitle, { children: "Telegram" }), _jsx(ItemDescription, { children: "Invoices answers the sales group here." })] }), _jsx(ItemActions, { children: _jsx(Button, { variant: "outline", children: "Disconnect" }) })] }), _jsxs(Item, { children: [_jsx(ItemMedia, { variant: "icon", children: _jsx(RotateCw, { "aria-hidden": "true" }) }), _jsxs(ItemContent, { children: [_jsx(ItemTitle, { children: "Nadia filed 12 invoices" }), _jsx(ItemDescription, { children: "From the October statement, in the archive folder." })] })] })] })),
|
|
73
|
+
Kbd: () => (_jsxs("span", { className: "flex items-center gap-2 text-sm", children: ["Find", _jsxs(KbdGroup, { children: [_jsx(Kbd, { children: "\u2318" }), _jsx(Kbd, { children: "K" })] })] })),
|
|
74
|
+
MemoryItem: () => (_jsx(MemoryItem, { className: "max-w-md", fact: "Acme's quotes always copy the sales team.", label: "Memory" })),
|
|
75
|
+
ObjectFacts: () => (_jsx(ObjectFacts, { facts: [
|
|
76
|
+
{ label: "VAT number", value: _jsx("span", { className: "font-mono", children: "IT01234567890" }) },
|
|
77
|
+
{ label: "Partner", value: "Rossi Ottica" },
|
|
78
|
+
{ label: "Address", value: "Via Roma 12, 20121 Milano", block: true },
|
|
79
|
+
] })),
|
|
80
|
+
PairingCode: () => _jsx(PairingCode, { code: "4821", label: "Pairing code" }),
|
|
81
|
+
Progress: () => (_jsxs(Progress, { className: "max-w-md", max: 40, value: 27, children: [_jsx(ProgressLabel, { children: "Importing contacts" }), _jsx(ProgressValue, { children: () => "27 of 40" })] })),
|
|
82
|
+
QrCode: () => (_jsx(QrCode, { label: "Open Nadia on your phone", size: 128, value: "https://nadicode.com/app" })),
|
|
83
|
+
RecordTime: () => (_jsx("div", { className: "grid gap-1 text-sm", children: MAILBOXES.map((mailbox) => (_jsxs("span", { children: [mailbox.address, " \u00B7", " ", _jsx(RecordTime, { at: mailbox.checked, now: NOW, phrase: (when) => `Checked ${when}` })] }, mailbox.id))) })),
|
|
84
|
+
RunTimeline: () => (_jsx(RunTimeline, { className: "max-w-lg", steps: [
|
|
85
|
+
{
|
|
86
|
+
id: "read",
|
|
87
|
+
label: "Step 01",
|
|
88
|
+
title: "Read the request",
|
|
89
|
+
progress: "done",
|
|
90
|
+
time: "07:30",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "draft",
|
|
94
|
+
label: "Step 02",
|
|
95
|
+
title: "Draft the quote",
|
|
96
|
+
progress: "current",
|
|
97
|
+
status: { label: "Waiting for you", tone: "warning" },
|
|
98
|
+
},
|
|
99
|
+
{ id: "send", label: "Step 03", title: "Send the quote", progress: "upcoming" },
|
|
100
|
+
] })),
|
|
101
|
+
SettingsFactsSection: () => (_jsx("div", { className: "max-w-lg", children: _jsx(SettingsFactsSection, { action: _jsx(Button, { variant: "outline", children: "Edit" }), facts: [
|
|
102
|
+
{ label: "Legal name", value: "Acme S.r.l." },
|
|
103
|
+
{ label: "VAT number", value: _jsx("span", { className: "font-mono", children: "IT01234567890" }) },
|
|
104
|
+
{ label: "PEC", value: null },
|
|
105
|
+
], headingId: "showcase-company-facts", missingValueLabel: "Not set", title: "Company" }) })),
|
|
106
|
+
StatusRow: () => (_jsx("div", { className: "max-w-sm", children: _jsxs(StatusSection, { defaultCollapsed: false, label: "Channels", children: [_jsx(StatusRow, { leading: _jsx(StatusDot, { tone: "good" }), onActivate: nothing, children: "Telegram" }), _jsx(StatusRow, { leading: _jsx(StatusDot, { tone: "warn" }), children: "WhatsApp" })] }) })),
|
|
107
|
+
Table: UsageTable,
|
|
108
|
+
TableCard: () => (_jsx(TableCard, { footer: "3 Agents", summary: { label: "Total", value: "€ 59.27" }, title: "Usage this month", children: _jsx(UsageTable, {}) })),
|
|
109
|
+
TableValue: () => (_jsxs("dl", { className: "grid max-w-xs grid-cols-2 gap-2 text-sm", children: [_jsx("dt", { children: "Tokens" }), _jsx("dd", { children: _jsx(TableValue, { missingLabel: "Not reported", value: "1,204,330" }) }), _jsx("dt", { children: "Cost" }), _jsx("dd", { children: _jsx(TableValue, { missingLabel: "Not reported", value: null }) }), _jsx("dt", { children: "Last run" }), _jsx("dd", { children: _jsx(TableValue, { failedLabel: "Couldn't read", state: "failed" }) })] })),
|
|
110
|
+
UsageMeter: () => (_jsx(UsageMeter, { className: "max-w-sm", fields: ["Tokens", "620 of 1,000"], usage: 62 })),
|
|
111
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare function EmptyStateSpecimen(): import("react").JSX.Element;
|
|
2
|
+
declare function LabelledPictureSpecimen(): import("react").JSX.Element;
|
|
3
|
+
declare function PendingLabelSpecimen(): import("react").JSX.Element;
|
|
4
|
+
declare function ToasterSpecimen(): import("react").JSX.Element;
|
|
5
|
+
declare function UpdateCardSpecimen(): import("react").JSX.Element;
|
|
6
|
+
export declare const FEEDBACK: {
|
|
7
|
+
Alert: () => import("react").JSX.Element;
|
|
8
|
+
EmptyState: typeof EmptyStateSpecimen;
|
|
9
|
+
EntryProgress: () => import("react").JSX.Element;
|
|
10
|
+
EntryStageList: () => import("react").JSX.Element;
|
|
11
|
+
HoverCard: () => import("react").JSX.Element;
|
|
12
|
+
LabelledPicture: typeof LabelledPictureSpecimen;
|
|
13
|
+
MessageNotice: () => import("react").JSX.Element;
|
|
14
|
+
NoticeBanner: () => import("react").JSX.Element;
|
|
15
|
+
PendingLabel: typeof PendingLabelSpecimen;
|
|
16
|
+
Skeleton: () => import("react").JSX.Element;
|
|
17
|
+
Toaster: typeof ToasterSpecimen;
|
|
18
|
+
Tooltip: () => import("react").JSX.Element;
|
|
19
|
+
UpdateCard: typeof UpdateCardSpecimen;
|
|
20
|
+
WaitingLine: () => import("react").JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=feedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/feedback.tsx"],"names":[],"mappings":"AAyBA,iBAAS,kBAAkB,gCAqB1B;AAED,iBAAS,uBAAuB,gCAW/B;AAED,iBAAS,oBAAoB,gCA0B5B;AAED,iBAAS,eAAe,gCAYvB;AAED,iBAAS,kBAAkB,gCAqB1B;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAoGM,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { Info, TriangleAlert, X } from "lucide-react";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { Alert, AlertDescription, AlertTitle } from "../../components/alert.js";
|
|
6
|
+
import { Button } from "../../components/button.js";
|
|
7
|
+
import { EmptyState } from "../../components/empty-state.js";
|
|
8
|
+
import { EntryProgress, EntryStageList } from "../../components/entry-scene.js";
|
|
9
|
+
import { HoverCard, HoverCardContent, HoverCardTrigger } from "../../components/hover-card.js";
|
|
10
|
+
import { MessageNotice } from "../../components/message-notice.js";
|
|
11
|
+
import { NoticeBanner } from "../../components/notice-banner.js";
|
|
12
|
+
import { PendingLabel } from "../../components/pending-label.js";
|
|
13
|
+
import { LabelledPicture, PictureLabel } from "../../components/picture-label.js";
|
|
14
|
+
import { Skeleton } from "../../components/skeleton.js";
|
|
15
|
+
import { Toaster } from "../../components/sonner.js";
|
|
16
|
+
import { showMessageToast } from "../../components/toast.js";
|
|
17
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../../components/tooltip.js";
|
|
18
|
+
import { UpdateCard } from "../../components/update-card.js";
|
|
19
|
+
import { WaitingLine } from "../../components/waiting-line.js";
|
|
20
|
+
import { useEmptyArt } from "../assets.js";
|
|
21
|
+
import { FAILED_READ, nothing, sampleMessage } from "../samples.js";
|
|
22
|
+
function EmptyStateSpecimen() {
|
|
23
|
+
const art = useEmptyArt();
|
|
24
|
+
return (_jsxs("div", { className: "grid gap-4", children: [_jsx(EmptyState, { action: { label: "Add mailbox", onClick: nothing }, description: "Every address your Agents read and send from lives here.", kind: "firstUse", picture: art.mail, scope: "region", title: "No mailboxes yet" }), _jsx(EmptyState, { clear: { label: "Clear search", onClick: nothing }, kind: "noResults", message: "No mailbox matches \u201Cbilling\u201D.", scope: "card" }), _jsx(EmptyState, { kind: "failed", message: FAILED_READ, scope: "card" })] }));
|
|
25
|
+
}
|
|
26
|
+
function LabelledPictureSpecimen() {
|
|
27
|
+
const art = useEmptyArt();
|
|
28
|
+
return (_jsx(LabelledPicture, { label: _jsx(PictureLabel, { details: "Ink and watercolour, 2026", title: "A letter that lost its address" }), children: _jsx("img", { alt: "", className: "size-64 object-contain", src: art.mail }) }));
|
|
29
|
+
}
|
|
30
|
+
function PendingLabelSpecimen() {
|
|
31
|
+
const [pending, setPending] = useState(false);
|
|
32
|
+
return (_jsxs("div", { className: "grid max-w-md gap-2", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { disabled: pending, onClick: () => setPending(false), variant: "outline", children: "Cancel" }), _jsx(Button, { "aria-busy": pending || undefined, disabled: pending, onClick: () => setPending(true), children: _jsx(PendingLabel, { pending: pending, pendingLabel: "Saving", children: "Save changes" }) }), pending ? (_jsx(Button, { onClick: () => setPending(false), variant: "link", children: "Reset" })) : null] }), pending ? _jsx(WaitingLine, { decorative: true }) : null] }));
|
|
33
|
+
}
|
|
34
|
+
function ToasterSpecimen() {
|
|
35
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => showMessageToast(sampleMessage("Mailbox removed"), { tone: "success" }), variant: "outline", children: "Remove mailbox" }), _jsx(Toaster, {})] }));
|
|
36
|
+
}
|
|
37
|
+
function UpdateCardSpecimen() {
|
|
38
|
+
const [updated, setUpdated] = useState(false);
|
|
39
|
+
return (_jsx("div", { className: "max-w-xs", children: updated ? (_jsx(UpdateCard, { dismiss: { label: "Dismiss", onClick: () => setUpdated(false) }, state: "updated", title: "Nadia is up to date", version: "12.2.0" })) : (_jsx(UpdateCard, { action: { label: "Restart to update", onClick: () => setUpdated(true) }, state: "available", title: "A new Nadia is ready", version: "12.2.0" })) }));
|
|
40
|
+
}
|
|
41
|
+
export const FEEDBACK = {
|
|
42
|
+
Alert: () => (_jsxs("div", { className: "grid max-w-lg gap-3", children: [_jsxs(Alert, { variant: "info", children: [_jsx(Info, { "aria-hidden": "true" }), _jsx(AlertTitle, { children: "Approvals are on" }), _jsx(AlertDescription, { children: "Payments over \u20AC 500 wait for you." })] }), _jsxs(Alert, { variant: "warning", children: [_jsx(TriangleAlert, { "aria-hidden": "true" }), _jsx(AlertTitle, { children: "WhatsApp needs a new code" }), _jsx(AlertDescription, { children: "Messages wait until it is paired again." })] })] })),
|
|
43
|
+
EmptyState: EmptyStateSpecimen,
|
|
44
|
+
EntryProgress: () => (_jsx("div", { className: "max-w-sm", children: _jsx(EntryProgress, { count: "27 of 40 files", fraction: 27 / 40 }) })),
|
|
45
|
+
EntryStageList: () => (_jsx(EntryStageList, { stages: [
|
|
46
|
+
{ id: "download", label: "Download Nadia", mark: "done" },
|
|
47
|
+
{ id: "install", label: "Install her tools", mark: "current" },
|
|
48
|
+
{ id: "sign-in", label: "Sign in", mark: "pending" },
|
|
49
|
+
] })),
|
|
50
|
+
HoverCard: () => (_jsxs(HoverCard, { children: [_jsx(HoverCardTrigger, { render: _jsx("time", { className: "text-sm underline decoration-dotted", dateTime: "2026-10-14T07:00:00Z" }), children: "Updated 3 hours ago" }), _jsxs(HoverCardContent, { className: "grid gap-1 text-sm", children: [_jsx("span", { children: "Tuesday 14 October 2026" }), _jsx("span", { children: "09:00 Rome \u00B7 07:00 UTC" }), _jsx("span", { className: "font-mono text-muted-foreground", children: "2026-10-14T07:00:00Z" })] })] })),
|
|
51
|
+
LabelledPicture: LabelledPictureSpecimen,
|
|
52
|
+
MessageNotice: () => (_jsxs("div", { className: "grid max-w-lg gap-4", children: [_jsx(MessageNotice, { message: sampleMessage("Couldn't remove pec@acme.it", "The mailbox is still connected.", [
|
|
53
|
+
{ label: "Try again", onClick: nothing },
|
|
54
|
+
]), placement: "action" }), _jsx(MessageNotice, { message: sampleMessage("Billing is paused", "Agents stop at the end of the cycle.", [
|
|
55
|
+
{ label: "Update payment", onClick: nothing },
|
|
56
|
+
]), placement: "section", tone: "warning" })] })),
|
|
57
|
+
NoticeBanner: () => (_jsx(NoticeBanner, { action: _jsx(Button, { variant: "outline", children: "Open Slack settings" }), className: "max-w-lg", description: "Agents can't post to Slack until it is connected again.", liveRegion: "off", title: "Slack disconnected", tone: "warning" })),
|
|
58
|
+
PendingLabel: PendingLabelSpecimen,
|
|
59
|
+
Skeleton: () => (_jsxs("div", { "aria-busy": "true", className: "grid max-w-sm gap-2", children: [_jsx(Skeleton, { className: "h-4 w-3/4" }), _jsx(Skeleton, { className: "h-4 w-1/2" }), _jsx(Skeleton, { className: "size-8", shape: "circle" })] })),
|
|
60
|
+
Toaster: ToasterSpecimen,
|
|
61
|
+
Tooltip: () => (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { render: _jsx(Button, { "aria-label": "Remove attachment", size: "icon", variant: "ghost" }), children: _jsx(X, { "aria-hidden": "true" }) }), _jsx(TooltipContent, { children: "Remove attachment" })] })),
|
|
62
|
+
UpdateCard: UpdateCardSpecimen,
|
|
63
|
+
WaitingLine: () => (_jsxs("div", { className: "grid max-w-sm gap-2 text-sm", children: ["Connecting Telegram", _jsx(WaitingLine, { label: "Connecting Telegram" })] })),
|
|
64
|
+
};
|