@alepha/ui 0.27.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -15
- package/dist/components/account/account-connections.d.ts.map +1 -1
- package/dist/components/account/account-connections.js +24 -13
- package/dist/components/account/account-connections.js.map +1 -1
- package/dist/components/account/account-delete-dialog.d.ts.map +1 -1
- package/dist/components/account/account-delete-dialog.js +12 -8
- package/dist/components/account/account-delete-dialog.js.map +1 -1
- package/dist/components/account/account-header.d.ts.map +1 -1
- package/dist/components/account/account-header.js +3 -1
- package/dist/components/account/account-header.js.map +1 -1
- package/dist/components/account/account-keys.d.ts.map +1 -1
- package/dist/components/account/account-keys.js +35 -21
- package/dist/components/account/account-keys.js.map +1 -1
- package/dist/components/account/account-mfa-dialog.d.ts +20 -0
- package/dist/components/account/account-mfa-dialog.d.ts.map +1 -0
- package/dist/components/account/account-mfa-dialog.js +149 -0
- package/dist/components/account/account-mfa-dialog.js.map +1 -0
- package/dist/components/account/account-password-dialog.d.ts.map +1 -1
- package/dist/components/account/account-password-dialog.js +15 -10
- package/dist/components/account/account-password-dialog.js.map +1 -1
- package/dist/components/account/account-profile.d.ts.map +1 -1
- package/dist/components/account/account-profile.js +25 -25
- package/dist/components/account/account-profile.js.map +1 -1
- package/dist/components/account/account-router.d.ts +76 -2
- package/dist/components/account/account-router.d.ts.map +1 -1
- package/dist/components/account/account-router.js +44 -4
- package/dist/components/account/account-router.js.map +1 -1
- package/dist/components/account/account-security.d.ts +11 -1
- package/dist/components/account/account-security.d.ts.map +1 -1
- package/dist/components/account/account-security.js +119 -32
- package/dist/components/account/account-security.js.map +1 -1
- package/dist/components/account/account-sessions.d.ts.map +1 -1
- package/dist/components/account/account-sessions.js +46 -24
- package/dist/components/account/account-sessions.js.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.js +4 -9
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-status-badge.js +3 -3
- package/dist/components/admin/admin-jobs-status-badge.js.map +1 -1
- package/dist/components/admin/admin-jobs-status-labels.d.ts +26 -0
- package/dist/components/admin/admin-jobs-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-status-labels.js +46 -0
- package/dist/components/admin/admin-jobs-status-labels.js.map +1 -0
- package/dist/components/admin/admin-layout.d.ts.map +1 -1
- package/dist/components/admin/admin-layout.js +5 -3
- package/dist/components/admin/admin-layout.js.map +1 -1
- package/dist/components/admin/admin-notifications-detail-tabs.d.ts +21 -0
- package/dist/components/admin/admin-notifications-detail-tabs.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-detail-tabs.js +122 -0
- package/dist/components/admin/admin-notifications-detail-tabs.js.map +1 -0
- package/dist/components/admin/admin-notifications-detail.d.ts +23 -0
- package/dist/components/admin/admin-notifications-detail.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-detail.js +48 -0
- package/dist/components/admin/admin-notifications-detail.js.map +1 -0
- package/dist/components/admin/admin-notifications-preview-body.d.ts +13 -0
- package/dist/components/admin/admin-notifications-preview-body.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-preview-body.js +64 -0
- package/dist/components/admin/admin-notifications-preview-body.js.map +1 -0
- package/dist/components/admin/admin-notifications-preview-tab.d.ts +24 -0
- package/dist/components/admin/admin-notifications-preview-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-preview-tab.js +35 -0
- package/dist/components/admin/admin-notifications-preview-tab.js.map +1 -0
- package/dist/components/admin/admin-notifications-raw-tab.d.ts +18 -0
- package/dist/components/admin/admin-notifications-raw-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-raw-tab.js +53 -0
- package/dist/components/admin/admin-notifications-raw-tab.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-badge.d.ts +17 -0
- package/dist/components/admin/admin-notifications-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-badge.js +32 -0
- package/dist/components/admin/admin-notifications-status-badge.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-labels.d.ts +17 -0
- package/dist/components/admin/admin-notifications-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-labels.js +33 -0
- package/dist/components/admin/admin-notifications-status-labels.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-tones.d.ts +44 -0
- package/dist/components/admin/admin-notifications-status-tones.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-tones.js +64 -0
- package/dist/components/admin/admin-notifications-status-tones.js.map +1 -0
- package/dist/components/admin/admin-notifications-template-label.d.ts +16 -0
- package/dist/components/admin/admin-notifications-template-label.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-template-label.js +24 -0
- package/dist/components/admin/admin-notifications-template-label.js.map +1 -0
- package/dist/components/admin/admin-notifications.d.ts +13 -2
- package/dist/components/admin/admin-notifications.d.ts.map +1 -1
- package/dist/components/admin/admin-notifications.js +264 -29
- package/dist/components/admin/admin-notifications.js.map +1 -1
- package/dist/components/admin/admin-router.d.ts +29 -2
- package/dist/components/admin/admin-router.d.ts.map +1 -1
- package/dist/components/admin/admin-router.js +68 -8
- package/dist/components/admin/admin-router.js.map +1 -1
- package/dist/components/admin/admin-sessions.d.ts.map +1 -1
- package/dist/components/admin/admin-sessions.js +1 -1
- package/dist/components/admin/admin-sessions.js.map +1 -1
- package/dist/components/admin/admin-user-detail-security-tab.d.ts +12 -2
- package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-security-tab.js +63 -44
- package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.js +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail.js +20 -15
- package/dist/components/admin/admin-user-detail.js.map +1 -1
- package/dist/components/admin/admin-users.js +1 -1
- package/dist/components/admin/admin-users.js.map +1 -1
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-executions-panel.js +4 -12
- package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-status-badge.js +3 -3
- package/dist/components/admin/admin-workflows-status-badge.js.map +1 -1
- package/dist/components/admin/admin-workflows-status-labels.d.ts +19 -0
- package/dist/components/admin/admin-workflows-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-status-labels.js +48 -0
- package/dist/components/admin/admin-workflows-status-labels.js.map +1 -0
- package/dist/components/alepha-table/alepha-table.d.ts +6 -0
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -1
- package/dist/components/alepha-table/alepha-table.js +33 -5
- package/dist/components/alepha-table/alepha-table.js.map +1 -1
- package/dist/components/auth/auth-login.d.ts.map +1 -1
- package/dist/components/auth/auth-login.js +27 -17
- package/dist/components/auth/auth-login.js.map +1 -1
- package/dist/components/auth/auth-mfa-step.d.ts +25 -0
- package/dist/components/auth/auth-mfa-step.d.ts.map +1 -0
- package/dist/components/auth/auth-mfa-step.js +122 -0
- package/dist/components/auth/auth-mfa-step.js.map +1 -0
- package/dist/components/auth/auth-register.js +2 -2
- package/dist/components/auth/auth-register.js.map +1 -1
- package/dist/components/auth/auth-reset-password.js +2 -2
- package/dist/components/auth/auth-router.d.ts +20 -0
- package/dist/components/auth/auth-router.d.ts.map +1 -1
- package/dist/components/auth/provider-labels.d.ts.map +1 -1
- package/dist/components/auth/provider-labels.js +1 -0
- package/dist/components/auth/provider-labels.js.map +1 -1
- package/dist/components/control/control.d.ts +11 -2
- package/dist/components/control/control.d.ts.map +1 -1
- package/dist/components/control/control.js +7 -2
- package/dist/components/control/control.js.map +1 -1
- package/dist/components/control-array/control-array.d.ts.map +1 -1
- package/dist/components/control-array/control-array.js +55 -10
- package/dist/components/control-array/control-array.js.map +1 -1
- package/dist/components/control-number/control-number.d.ts +5 -0
- package/dist/components/control-number/control-number.d.ts.map +1 -1
- package/dist/components/control-number/control-number.js +1 -0
- package/dist/components/control-number/control-number.js.map +1 -1
- package/dist/components/control-object/control-object.d.ts +12 -1
- package/dist/components/control-object/control-object.d.ts.map +1 -1
- package/dist/components/control-object/control-object.js +2 -1
- package/dist/components/control-object/control-object.js.map +1 -1
- package/dist/components/control-password/control-password.d.ts.map +1 -1
- package/dist/components/control-password/control-password.js +1 -0
- package/dist/components/control-password/control-password.js.map +1 -1
- package/dist/components/detail/detail-layout.d.ts +6 -0
- package/dist/components/detail/detail-layout.d.ts.map +1 -1
- package/dist/components/detail/detail-layout.js +2 -1
- package/dist/components/detail/detail-layout.js.map +1 -1
- package/dist/components/email-body-frame/email-body-frame.d.ts +37 -0
- package/dist/components/email-body-frame/email-body-frame.d.ts.map +1 -0
- package/dist/components/email-body-frame/email-body-frame.js +44 -0
- package/dist/components/email-body-frame/email-body-frame.js.map +1 -0
- package/dist/components/markdown-view/diagram/DiagramLabel.d.ts +33 -0
- package/dist/components/markdown-view/diagram/DiagramLabel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/{FlowchartDiagramLabel.js → DiagramLabel.js} +15 -6
- package/dist/components/markdown-view/diagram/DiagramLabel.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts +0 -5
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js +2 -6
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js +2 -3
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts.map +1 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js +2 -3
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js.map +1 -1
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts +20 -11
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts.map +1 -1
- package/dist/components/markdown-view/diagram/MermaidFence.js +48 -13
- package/dist/components/markdown-view/diagram/MermaidFence.js.map +1 -1
- package/dist/components/markdown-view/diagram/SequenceDiagram.d.ts +50 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.js +141 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.d.ts +23 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.js +101 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.d.ts +23 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.js +77 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.d.ts +16 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.js +39 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.d.ts +20 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.js +61 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.d.ts +27 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.js +65 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.js.map +1 -0
- package/dist/components/markdown-view/diagram/layoutSequence.d.ts +155 -0
- package/dist/components/markdown-view/diagram/layoutSequence.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/layoutSequence.js +478 -0
- package/dist/components/markdown-view/diagram/layoutSequence.js.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceModel.d.ts +132 -0
- package/dist/components/markdown-view/diagram/sequenceModel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceModel.js +0 -0
- package/dist/components/markdown-view/diagram/sequenceParser.d.ts +32 -0
- package/dist/components/markdown-view/diagram/sequenceParser.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceParser.js +312 -0
- package/dist/components/markdown-view/diagram/sequenceParser.js.map +1 -0
- package/dist/components/markdown-view/markdown-view.css +65 -0
- package/dist/components/markdown-view/markdown-view.d.ts +18 -11
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -1
- package/dist/components/markdown-view/markdown-view.js +30 -16
- package/dist/components/markdown-view/markdown-view.js.map +1 -1
- package/dist/components/nav-shell/nav-page.d.ts +7 -0
- package/dist/components/nav-shell/nav-page.d.ts.map +1 -1
- package/dist/components/nav-shell/nav-page.js.map +1 -1
- package/dist/components/nav-shell/nav-tree-util.d.ts +64 -2
- package/dist/components/nav-shell/nav-tree-util.d.ts.map +1 -1
- package/dist/components/nav-shell/nav-tree-util.js +29 -6
- package/dist/components/nav-shell/nav-tree-util.js.map +1 -1
- package/dist/components/nav-shell/spotlight.d.ts +3 -2
- package/dist/components/nav-shell/spotlight.d.ts.map +1 -1
- package/dist/components/nav-shell/spotlight.js +9 -6
- package/dist/components/nav-shell/spotlight.js.map +1 -1
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-breadcrumbs.js +9 -2
- package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -1
- package/dist/components/nav-shell/use-nav-entries.d.ts +6 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-entries.js +8 -3
- package/dist/components/nav-shell/use-nav-entries.js.map +1 -1
- package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-tree.js +1 -1
- package/dist/components/nav-shell/use-nav-tree.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +1 -0
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +2 -2
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -0
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +2 -2
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -0
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +2 -2
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +1 -0
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/card.d.ts +2 -2
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +1 -0
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/combobox.d.ts +1 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +2 -2
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +1 -0
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +2 -2
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +1 -0
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +1 -0
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/empty.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +1 -0
- package/dist/components/ui/input-group.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +1 -1
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +2 -2
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +1 -0
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +1 -0
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -0
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/segmented.d.ts +11 -0
- package/dist/components/ui/segmented.d.ts.map +1 -1
- package/dist/components/ui/segmented.js +6 -2
- package/dist/components/ui/segmented.js.map +1 -1
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +1 -0
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +2 -2
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +1 -0
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +2 -2
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +1 -0
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -11
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +0 -10
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/hooks/use-mobile.d.ts +1 -1
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/lib/i18n-fr.d.ts.map +1 -1
- package/dist/lib/i18n-fr.js +252 -2
- package/dist/lib/i18n-fr.js.map +1 -1
- package/package.json +5 -5
- package/src/components/account/__tests__/account-router.spec.ts +25 -0
- package/src/components/account/__tests__/account-security-mfa-gate.browser.spec.tsx +76 -0
- package/src/components/account/account-connections.tsx +50 -18
- package/src/components/account/account-delete-dialog.tsx +24 -9
- package/src/components/account/account-header.tsx +4 -1
- package/src/components/account/account-keys.tsx +73 -29
- package/src/components/account/account-mfa-dialog.tsx +233 -0
- package/src/components/account/account-password-dialog.tsx +42 -12
- package/src/components/account/account-profile.tsx +66 -25
- package/src/components/account/account-router.tsx +47 -6
- package/src/components/account/account-security.tsx +209 -22
- package/src/components/account/account-sessions.tsx +87 -22
- package/src/components/action-error-toaster/__tests__/action-error-toaster.browser.spec.tsx +114 -0
- package/src/components/admin/__tests__/admin-nav-i18n.browser.spec.tsx +152 -0
- package/src/components/admin/__tests__/admin-notifications-preview-body.browser.spec.tsx +128 -0
- package/src/components/admin/__tests__/admin-notifications-raw-tab.browser.spec.tsx +76 -0
- package/src/components/admin/__tests__/admin-notifications-status-badge.browser.spec.tsx +121 -0
- package/src/components/admin/__tests__/admin-router.spec.ts +27 -0
- package/src/components/admin/__tests__/admin-status-labels.browser.spec.tsx +152 -0
- package/src/components/admin/__tests__/admin-user-detail-security-tab.browser.spec.tsx +92 -0
- package/src/components/admin/admin-jobs-executions-panel.tsx +8 -11
- package/src/components/admin/admin-jobs-status-badge.tsx +4 -5
- package/src/components/admin/admin-jobs-status-labels.ts +46 -0
- package/src/components/admin/admin-layout.tsx +9 -3
- package/src/components/admin/admin-notifications-detail-tabs.tsx +167 -0
- package/src/components/admin/admin-notifications-detail.tsx +100 -0
- package/src/components/admin/admin-notifications-preview-body.tsx +104 -0
- package/src/components/admin/admin-notifications-preview-tab.tsx +55 -0
- package/src/components/admin/admin-notifications-raw-tab.tsx +76 -0
- package/src/components/admin/admin-notifications-status-badge.tsx +44 -0
- package/src/components/admin/admin-notifications-status-labels.ts +42 -0
- package/src/components/admin/admin-notifications-status-tones.ts +85 -0
- package/src/components/admin/admin-notifications-template-label.ts +22 -0
- package/src/components/admin/admin-notifications.tsx +398 -31
- package/src/components/admin/admin-router.tsx +65 -8
- package/src/components/admin/admin-sessions.tsx +10 -3
- package/src/components/admin/admin-user-detail-security-tab.tsx +70 -5
- package/src/components/admin/admin-user-detail-sessions-tab.tsx +10 -3
- package/src/components/admin/admin-user-detail.tsx +92 -23
- package/src/components/admin/admin-users.tsx +1 -1
- package/src/components/admin/admin-workflows-executions-panel.tsx +8 -16
- package/src/components/admin/admin-workflows-status-badge.tsx +4 -5
- package/src/components/admin/admin-workflows-status-labels.ts +51 -0
- package/src/components/alepha-table/__tests__/alepha-table-row-key.browser.spec.tsx +106 -0
- package/src/components/alepha-table/alepha-table.tsx +50 -10
- package/src/components/auth/auth-login.tsx +37 -18
- package/src/components/auth/auth-mfa-step.tsx +177 -0
- package/src/components/auth/auth-register.tsx +1 -1
- package/src/components/auth/provider-labels.ts +4 -0
- package/src/components/control/__tests__/control-autofocus.browser.spec.tsx +107 -0
- package/src/components/control/control.tsx +20 -5
- package/src/components/control-array/__tests__/control-array-child-change.browser.spec.tsx +90 -0
- package/src/components/control-array/control-array.tsx +85 -13
- package/src/components/control-number/control-number.tsx +7 -0
- package/src/components/control-object/__tests__/control-object-clear.browser.spec.tsx +100 -0
- package/src/components/control-object/control-object.tsx +21 -2
- package/src/components/control-password/control-password.tsx +2 -1
- package/src/components/detail/__tests__/detail-layout.browser.spec.tsx +36 -0
- package/src/components/detail/detail-layout.tsx +20 -1
- package/src/components/email-body-frame/__tests__/email-body-frame.browser.spec.tsx +52 -0
- package/src/components/email-body-frame/email-body-frame.tsx +81 -0
- package/src/components/markdown-view/__tests__/markdown-view-mermaid.browser.spec.tsx +65 -2
- package/src/components/markdown-view/diagram/{FlowchartDiagramLabel.tsx → DiagramLabel.tsx} +14 -4
- package/src/components/markdown-view/diagram/FlowchartDiagram.tsx +1 -6
- package/src/components/markdown-view/diagram/FlowchartDiagramCluster.tsx +1 -1
- package/src/components/markdown-view/diagram/FlowchartDiagramEdge.tsx +2 -3
- package/src/components/markdown-view/diagram/FlowchartDiagramNode.tsx +2 -3
- package/src/components/markdown-view/diagram/MermaidFence.tsx +65 -15
- package/src/components/markdown-view/diagram/SequenceDiagram.tsx +203 -0
- package/src/components/markdown-view/diagram/SequenceDiagramFragment.tsx +120 -0
- package/src/components/markdown-view/diagram/SequenceDiagramMessage.tsx +100 -0
- package/src/components/markdown-view/diagram/SequenceDiagramNote.tsx +46 -0
- package/src/components/markdown-view/diagram/SequenceDiagramParticipant.tsx +80 -0
- package/src/components/markdown-view/diagram/SequenceDiagramParticipantActor.tsx +74 -0
- package/src/components/markdown-view/diagram/__tests__/sequence-diagram.browser.spec.tsx +267 -0
- package/src/components/markdown-view/diagram/layoutSequence.spec.ts +535 -0
- package/src/components/markdown-view/diagram/layoutSequence.ts +764 -0
- package/src/components/markdown-view/diagram/sequenceModel.ts +141 -0
- package/src/components/markdown-view/diagram/sequenceParser.spec.ts +495 -0
- package/src/components/markdown-view/diagram/sequenceParser.ts +443 -0
- package/src/components/markdown-view/markdown-view.css +65 -0
- package/src/components/markdown-view/markdown-view.tsx +34 -16
- package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +107 -1
- package/src/components/nav-shell/nav-page.tsx +8 -0
- package/src/components/nav-shell/nav-tree-util.ts +95 -2
- package/src/components/nav-shell/spotlight.tsx +22 -8
- package/src/components/nav-shell/use-nav-breadcrumbs.ts +9 -2
- package/src/components/nav-shell/use-nav-entries.ts +18 -2
- package/src/components/nav-shell/use-nav-tree.ts +4 -1
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/alert.tsx +2 -2
- package/src/components/ui/avatar.tsx +3 -3
- package/src/components/ui/breadcrumb.tsx +3 -3
- package/src/components/ui/card.tsx +5 -5
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +8 -8
- package/src/components/ui/command.tsx +4 -4
- package/src/components/ui/context-menu.tsx +7 -7
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/drawer.tsx +6 -6
- package/src/components/ui/dropdown-menu.tsx +8 -14
- package/src/components/ui/empty.tsx +3 -3
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-group.tsx +2 -2
- package/src/components/ui/input-otp.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/menubar.tsx +9 -9
- package/src/components/ui/pagination.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +1 -1
- package/src/components/ui/segmented.tsx +28 -0
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/sheet.tsx +4 -4
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/table.tsx +6 -9
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/tooltip.tsx +3 -11
- package/src/components/use-dialog/__tests__/use-dialog-providers.browser.spec.tsx +61 -0
- package/src/hooks/use-mobile.ts +1 -1
- package/src/lib/__tests__/i18n-fr.spec.ts +27 -5
- package/src/lib/i18n-fr.ts +308 -1
- package/dist/components/language-toggle/language-toggle.d.ts +0 -8
- package/dist/components/language-toggle/language-toggle.d.ts.map +0 -1
- package/dist/components/language-toggle/language-toggle.js +0 -49
- package/dist/components/language-toggle/language-toggle.js.map +0 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts +0 -23
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts.map +0 -1
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js.map +0 -1
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -55
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/aspect-ratio.d.ts +0 -5
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.js +0 -15
- package/dist/components/ui/aspect-ratio.js.map +0 -1
- package/dist/components/ui/carousel.d.ts +0 -29
- package/dist/components/ui/carousel.d.ts.map +0 -1
- package/dist/components/ui/carousel.js +0 -144
- package/dist/components/ui/carousel.js.map +0 -1
- package/dist/components/ui/collapsible.d.ts +0 -6
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/collapsible.js +0 -26
- package/dist/components/ui/collapsible.js.map +0 -1
- package/dist/components/ui/direction.d.ts +0 -2
- package/dist/components/ui/direction.d.ts.map +0 -1
- package/dist/components/ui/direction.js +0 -3
- package/dist/components/ui/item.d.ts +0 -23
- package/dist/components/ui/item.d.ts.map +0 -1
- package/dist/components/ui/item.js +0 -122
- package/dist/components/ui/item.js.map +0 -1
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/components/ui/navigation-menu.js +0 -84
- package/dist/components/ui/navigation-menu.js.map +0 -1
- package/dist/components/ui/radio-group.d.ts +0 -6
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/radio-group.js +0 -29
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/scroll-area.d.ts +0 -5
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -38
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/toggle-group.d.ts +0 -12
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.js +0 -60
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/toggle.d.ts +0 -9
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/toggle.js +0 -38
- package/dist/components/ui/toggle.js.map +0 -1
- package/src/components/language-toggle/language-toggle.tsx +0 -66
- package/src/components/ui/accordion.tsx +0 -77
- package/src/components/ui/aspect-ratio.tsx +0 -22
- package/src/components/ui/carousel.tsx +0 -258
- package/src/components/ui/collapsible.tsx +0 -21
- package/src/components/ui/direction.tsx +0 -6
- package/src/components/ui/item.tsx +0 -200
- package/src/components/ui/navigation-menu.tsx +0 -170
- package/src/components/ui/radio-group.tsx +0 -37
- package/src/components/ui/scroll-area.tsx +0 -53
- package/src/components/ui/toggle-group.tsx +0 -93
- package/src/components/ui/toggle.tsx +0 -44
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import type { PageRoute } from "alepha/react/router";
|
|
1
2
|
import { describe, expect, it } from "vitest";
|
|
2
3
|
|
|
3
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
isActivePath,
|
|
6
|
+
keepDeepestActive,
|
|
7
|
+
type NavMeta,
|
|
8
|
+
navGroupLabel,
|
|
9
|
+
navLabel,
|
|
10
|
+
} from "../nav-tree-util.ts";
|
|
4
11
|
|
|
5
12
|
/**
|
|
6
13
|
* Entries as `useNavEntries` builds them: `href` is the page's resolved
|
|
@@ -87,3 +94,102 @@ describe("keepDeepestActive", () => {
|
|
|
87
94
|
);
|
|
88
95
|
});
|
|
89
96
|
});
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Only the fields the labelling chain reads. `PageRoute` is far wider, and a
|
|
100
|
+
* literal cast keeps the cases legible. `nav` is the shell's own
|
|
101
|
+
* {@link NavMeta} - the framework types it as the narrower `PageNav`, which is
|
|
102
|
+
* exactly the widening `navMeta` performs at runtime.
|
|
103
|
+
*/
|
|
104
|
+
const route = (
|
|
105
|
+
page: Partial<Omit<PageRoute, "nav">> & { nav?: NavMeta },
|
|
106
|
+
): PageRoute => ({ name: "page", ...page }) as PageRoute;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* A catalogue holding French for two keys and nothing else, behaving like
|
|
110
|
+
* `I18nProvider.tr`: a hit wins, a miss falls back to the caller's default.
|
|
111
|
+
*/
|
|
112
|
+
const tr = (key: string, options?: { default?: string }) => {
|
|
113
|
+
const fr: Record<string, string> = {
|
|
114
|
+
"admin.nav.users": "Utilisateurs",
|
|
115
|
+
"admin.nav.group.identity": "Identité",
|
|
116
|
+
};
|
|
117
|
+
return fr[key] ?? options?.default ?? key;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
describe("navLabel", () => {
|
|
121
|
+
it("falls back through label, page label, head title, then the name", () => {
|
|
122
|
+
expect(navLabel(route({ nav: { label: "Users" } }))).toBe("Users");
|
|
123
|
+
expect(navLabel(route({ label: "Users" }))).toBe("Users");
|
|
124
|
+
expect(navLabel(route({ head: { title: "Users" } }))).toBe("Users");
|
|
125
|
+
expect(navLabel(route({ name: "users" }))).toBe("users");
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
it("resolves the catalogue key when one is declared", () => {
|
|
129
|
+
const page = route({
|
|
130
|
+
nav: { label: "Users", labelKey: "admin.nav.users" },
|
|
131
|
+
});
|
|
132
|
+
expect(navLabel(page, tr)).toBe("Utilisateurs");
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
/*
|
|
136
|
+
The whole point of keeping `label` beside the key: an application that
|
|
137
|
+
spreads no catalogue must keep seeing what it saw before, never a raw key.
|
|
138
|
+
*/
|
|
139
|
+
it("renders the English label when the catalogue has no entry", () => {
|
|
140
|
+
const page = route({ nav: { label: "Jobs", labelKey: "admin.nav.jobs" } });
|
|
141
|
+
expect(navLabel(page, tr)).toBe("Jobs");
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
it("ignores the key when no translator is supplied", () => {
|
|
145
|
+
// Server-side and in the specs, `navLabel` is called without one.
|
|
146
|
+
const page = route({
|
|
147
|
+
nav: { label: "Users", labelKey: "admin.nav.users" },
|
|
148
|
+
});
|
|
149
|
+
expect(navLabel(page)).toBe("Users");
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
it("uses the route name as the default when the label is an element", () => {
|
|
153
|
+
// `tr` needs a string default; a node cannot be one, and the raw key must
|
|
154
|
+
// never reach the sidebar.
|
|
155
|
+
const page = route({
|
|
156
|
+
name: "widgets",
|
|
157
|
+
nav: { label: { type: "span" } as any, labelKey: "unknown.key" },
|
|
158
|
+
});
|
|
159
|
+
expect(navLabel(page, tr)).toBe("widgets");
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
describe("navGroupLabel", () => {
|
|
164
|
+
it("has nothing to say about an ungrouped page", () => {
|
|
165
|
+
expect(navGroupLabel(route({ nav: { label: "Dashboard" } }), tr)).toBe(
|
|
166
|
+
undefined,
|
|
167
|
+
);
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it("translates the heading while `group` stays the grouping key", () => {
|
|
171
|
+
const page = route({
|
|
172
|
+
nav: {
|
|
173
|
+
label: "Users",
|
|
174
|
+
group: "Identity",
|
|
175
|
+
groupKey: "admin.nav.group.identity",
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
expect(navGroupLabel(page, tr)).toBe("Identité");
|
|
179
|
+
// The bucket key itself must not move, or two pages in one section would
|
|
180
|
+
// stop agreeing on it as soon as the language changed.
|
|
181
|
+
expect(page.nav?.group).toBe("Identity");
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
it("falls back to the group name", () => {
|
|
185
|
+
expect(navGroupLabel(route({ nav: { group: "Commerce" } }), tr)).toBe(
|
|
186
|
+
"Commerce",
|
|
187
|
+
);
|
|
188
|
+
expect(
|
|
189
|
+
navGroupLabel(
|
|
190
|
+
route({ nav: { group: "System", groupKey: "unknown.key" } }),
|
|
191
|
+
tr,
|
|
192
|
+
),
|
|
193
|
+
).toBe("System");
|
|
194
|
+
});
|
|
195
|
+
});
|
|
@@ -8,11 +8,19 @@ import {
|
|
|
8
8
|
} from "alepha/react/router";
|
|
9
9
|
import { $secure } from "alepha/security";
|
|
10
10
|
|
|
11
|
+
import type { NavMeta } from "./nav-tree-util.ts";
|
|
12
|
+
|
|
11
13
|
export interface PageNavOptions<
|
|
12
14
|
TConfig extends PageConfigSchema = PageConfigSchema,
|
|
13
15
|
TProps extends object = TPropsDefault,
|
|
14
16
|
TPropsParent extends object = TPropsParentDefault,
|
|
15
17
|
> extends PagePrimitiveOptions<TConfig, TProps, TPropsParent> {
|
|
18
|
+
/**
|
|
19
|
+
* Nav metadata, widened to {@link NavMeta} so an entry can name the
|
|
20
|
+
* catalogue keys the shell resolves for its label and its group heading.
|
|
21
|
+
* Everything else is `$page`'s own `nav`.
|
|
22
|
+
*/
|
|
23
|
+
nav?: NavMeta;
|
|
16
24
|
/**
|
|
17
25
|
* Permission(s) required for this page — wired into BOTH the route gate
|
|
18
26
|
* (`use: [$secure({ permissions })]`) and the nav-entry gate
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PageRoute } from "alepha/react/router";
|
|
1
|
+
import type { PageNav, PageRoute } from "alepha/react/router";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -8,11 +8,88 @@ import type { ReactNode } from "react";
|
|
|
8
8
|
* — see {@link useNavTree} and {@link useNavBreadcrumbs}.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* A page's `nav` metadata plus the catalogue keys the shell resolves for it.
|
|
13
|
+
*
|
|
14
|
+
* The keys live here rather than in the framework's own {@link PageNav}
|
|
15
|
+
* because they mean nothing to the router: `$page` never reads them, and
|
|
16
|
+
* `alepha/react/router` must not learn about i18n to carry a string. Every
|
|
17
|
+
* surface that turns nav metadata into visible text goes through this module,
|
|
18
|
+
* so this is the one place that has to know.
|
|
19
|
+
*
|
|
20
|
+
* A key is optional and additive: `label` stays the English text and is used
|
|
21
|
+
* verbatim when no key is declared, and as the `tr` default when one is - so
|
|
22
|
+
* an application that registers no French catalogue sees exactly what it saw
|
|
23
|
+
* before.
|
|
24
|
+
*/
|
|
25
|
+
export interface NavMeta extends PageNav {
|
|
26
|
+
/**
|
|
27
|
+
* Catalogue key for {@link PageNav.label}, resolved at render time so the
|
|
28
|
+
* entry follows a language switch.
|
|
29
|
+
*
|
|
30
|
+
* A `$page`'s class field is evaluated once, at construction, outside React
|
|
31
|
+
* - which is why the label cannot simply be `tr(...)` there. Declaring the
|
|
32
|
+
* key instead moves the lookup to {@link navLabel}, which the sidebar,
|
|
33
|
+
* breadcrumbs and command palette all call from inside a component.
|
|
34
|
+
*/
|
|
35
|
+
labelKey?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Catalogue key for {@link PageNav.group} - the sidebar section heading.
|
|
39
|
+
*
|
|
40
|
+
* `group` itself stays the untranslated string because it is the grouping
|
|
41
|
+
* KEY: entries are bucketed by it, and two pages in the same section must
|
|
42
|
+
* agree on it in every language. Only the heading is translated.
|
|
43
|
+
*
|
|
44
|
+
* Declared per page, like `group`, rather than once per section: there is no
|
|
45
|
+
* section object to hang it on, and the pair reads as one decision at the
|
|
46
|
+
* call site.
|
|
47
|
+
*/
|
|
48
|
+
groupKey?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Looks up a catalogue key. Structurally `I18nProvider.tr`, redeclared here so
|
|
53
|
+
* this module stays a plain utility - it is called from hooks, which is where
|
|
54
|
+
* the real `tr` comes from.
|
|
55
|
+
*/
|
|
56
|
+
export type NavTranslate = (
|
|
57
|
+
key: string,
|
|
58
|
+
options?: { default?: string },
|
|
59
|
+
) => string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A page's nav metadata, widened to the shell's own {@link NavMeta}.
|
|
63
|
+
*
|
|
64
|
+
* `$page` types `nav` as {@link PageNav} and copies it through untouched, so
|
|
65
|
+
* the extra keys are there at runtime; only the type has to be re-stated.
|
|
66
|
+
*/
|
|
67
|
+
export function navMeta(page: PageRoute): NavMeta | undefined {
|
|
68
|
+
return page.nav as NavMeta | undefined;
|
|
69
|
+
}
|
|
70
|
+
|
|
11
71
|
/**
|
|
12
72
|
* Resolve the display label for a page: `nav.label`, then the page `label`,
|
|
13
73
|
* then a static `head.title`, then the route name as a last resort.
|
|
74
|
+
*
|
|
75
|
+
* With `tr` and a `nav.labelKey`, the catalogue wins and the chain above
|
|
76
|
+
* becomes the default passed to it - so a missing entry still renders the
|
|
77
|
+
* English text the page declared, never a raw key.
|
|
14
78
|
*/
|
|
15
|
-
export function navLabel(page: PageRoute): ReactNode {
|
|
79
|
+
export function navLabel(page: PageRoute, tr?: NavTranslate): ReactNode {
|
|
80
|
+
const fallback = navLabelFallback(page);
|
|
81
|
+
const key = navMeta(page)?.labelKey;
|
|
82
|
+
if (tr && key) {
|
|
83
|
+
return tr(key, {
|
|
84
|
+
// `tr` needs a string; a label declared as an element cannot be one, so
|
|
85
|
+
// the route name stands in - it is what the chain ends on anyway.
|
|
86
|
+
default: typeof fallback === "string" ? fallback : page.name,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return fallback;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function navLabelFallback(page: PageRoute): ReactNode {
|
|
16
93
|
if (page.nav?.label != null) return page.nav.label;
|
|
17
94
|
if (page.label != null) return page.label;
|
|
18
95
|
const head = page.head;
|
|
@@ -24,6 +101,22 @@ export function navLabel(page: PageRoute): ReactNode {
|
|
|
24
101
|
return page.name;
|
|
25
102
|
}
|
|
26
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Resolve the sidebar / palette heading for a page's section: the catalogue
|
|
106
|
+
* entry named by `nav.groupKey`, defaulting to `nav.group` itself.
|
|
107
|
+
*/
|
|
108
|
+
export function navGroupLabel(
|
|
109
|
+
page: PageRoute,
|
|
110
|
+
tr?: NavTranslate,
|
|
111
|
+
): string | undefined {
|
|
112
|
+
const nav = navMeta(page);
|
|
113
|
+
if (!nav?.group) return undefined;
|
|
114
|
+
if (tr && nav.groupKey) {
|
|
115
|
+
return tr(nav.groupKey, { default: nav.group });
|
|
116
|
+
}
|
|
117
|
+
return nav.group;
|
|
118
|
+
}
|
|
119
|
+
|
|
27
120
|
/**
|
|
28
121
|
* Walk the `parent` chain to decide whether `page` is a (strict) descendant of
|
|
29
122
|
* the route named `root`. The root itself is excluded — it anchors the shell
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
CommandItem,
|
|
8
8
|
CommandList,
|
|
9
9
|
} from "@alepha/ui/components/ui/command";
|
|
10
|
+
import { useI18n } from "alepha/react/i18n";
|
|
10
11
|
import { useRouter } from "alepha/react/router";
|
|
11
12
|
import {
|
|
12
13
|
type ReactNode,
|
|
@@ -33,11 +34,12 @@ export interface SpotlightProps {
|
|
|
33
34
|
open?: boolean;
|
|
34
35
|
onOpenChange?: (open: boolean) => void;
|
|
35
36
|
/**
|
|
36
|
-
* Search input placeholder.
|
|
37
|
+
* Search input placeholder. Defaults to the localised `nav.spotlight.search`.
|
|
37
38
|
*/
|
|
38
39
|
placeholder?: string;
|
|
39
40
|
/**
|
|
40
|
-
* Message shown when nothing matches the query.
|
|
41
|
+
* Message shown when nothing matches the query. Defaults to the localised
|
|
42
|
+
* `nav.spotlight.empty`.
|
|
41
43
|
*/
|
|
42
44
|
emptyMessage?: ReactNode;
|
|
43
45
|
/**
|
|
@@ -54,9 +56,12 @@ export interface SpotlightProps {
|
|
|
54
56
|
* sidebar, so it never drifts from the routes.
|
|
55
57
|
*/
|
|
56
58
|
export const Spotlight = (props: SpotlightProps) => {
|
|
57
|
-
const { root,
|
|
59
|
+
const { root, shortcut = true } = props;
|
|
58
60
|
const router = useRouter<any>();
|
|
61
|
+
const { tr } = useI18n();
|
|
59
62
|
const entries = useNavEntries({ root });
|
|
63
|
+
const placeholder =
|
|
64
|
+
props.placeholder ?? tr("nav.spotlight.search", { default: "Search…" });
|
|
60
65
|
|
|
61
66
|
const isControlled = props.open !== undefined;
|
|
62
67
|
const [internalOpen, setInternalOpen] = useState(false);
|
|
@@ -92,7 +97,11 @@ export const Spotlight = (props: SpotlightProps) => {
|
|
|
92
97
|
if (!items) {
|
|
93
98
|
items = [];
|
|
94
99
|
byKey.set(key, items);
|
|
95
|
-
out.push({
|
|
100
|
+
out.push({
|
|
101
|
+
key,
|
|
102
|
+
label: entry.groupLabel || entry.group || undefined,
|
|
103
|
+
items,
|
|
104
|
+
});
|
|
96
105
|
}
|
|
97
106
|
items.push(entry);
|
|
98
107
|
}
|
|
@@ -112,13 +121,18 @@ export const Spotlight = (props: SpotlightProps) => {
|
|
|
112
121
|
<CommandDialog
|
|
113
122
|
open={open}
|
|
114
123
|
onOpenChange={setOpen}
|
|
115
|
-
title="Search"
|
|
116
|
-
description="
|
|
124
|
+
title={tr("nav.spotlight.title", { default: "Search" })}
|
|
125
|
+
description={tr("nav.spotlight.description", {
|
|
126
|
+
default: "Jump to a page",
|
|
127
|
+
})}
|
|
117
128
|
>
|
|
118
129
|
<Command>
|
|
119
130
|
<CommandInput placeholder={placeholder} />
|
|
120
131
|
<CommandList>
|
|
121
|
-
<CommandEmpty>
|
|
132
|
+
<CommandEmpty>
|
|
133
|
+
{props.emptyMessage ??
|
|
134
|
+
tr("nav.spotlight.empty", { default: "No results." })}
|
|
135
|
+
</CommandEmpty>
|
|
122
136
|
{groups.map((group) => (
|
|
123
137
|
<CommandGroup key={group.key || "_ungrouped"} heading={group.label}>
|
|
124
138
|
{group.items.map((entry) => (
|
|
@@ -131,7 +145,7 @@ export const Spotlight = (props: SpotlightProps) => {
|
|
|
131
145
|
toText(entry.label),
|
|
132
146
|
toText(entry.description),
|
|
133
147
|
...(entry.keywords ?? []),
|
|
134
|
-
entry.group ?? "",
|
|
148
|
+
entry.groupLabel ?? entry.group ?? "",
|
|
135
149
|
].filter(Boolean)}
|
|
136
150
|
disabled={entry.disabled}
|
|
137
151
|
onSelect={() => onSelect(entry)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useI18n } from "alepha/react/i18n";
|
|
1
2
|
import { useRouterState } from "alepha/react/router";
|
|
2
3
|
import type { ReactNode } from "react";
|
|
3
4
|
import { useMemo } from "react";
|
|
@@ -31,6 +32,12 @@ export function useNavBreadcrumbs(
|
|
|
31
32
|
options: UseNavBreadcrumbsOptions,
|
|
32
33
|
): NavCrumb[] {
|
|
33
34
|
const state = useRouterState();
|
|
35
|
+
const i18n = useI18n();
|
|
36
|
+
// Load-bearing, and pinned by `admin-nav-i18n.browser.spec.tsx`: `tr` never
|
|
37
|
+
// changes identity and `state.layers` does not move on a language switch, so
|
|
38
|
+
// without `lang` in the list below the trail keeps its first language until
|
|
39
|
+
// the next navigation.
|
|
40
|
+
const lang = i18n.lang;
|
|
34
41
|
|
|
35
42
|
return useMemo(() => {
|
|
36
43
|
const layers = state.layers ?? [];
|
|
@@ -41,7 +48,7 @@ export function useNavBreadcrumbs(
|
|
|
41
48
|
for (const layer of chain) {
|
|
42
49
|
const route = layer.route;
|
|
43
50
|
if (!route) continue;
|
|
44
|
-
crumbs.push({ label: navLabel(route), href: route.match });
|
|
51
|
+
crumbs.push({ label: navLabel(route, i18n.tr), href: route.match });
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
// The current page is a label, not a link.
|
|
@@ -49,5 +56,5 @@ export function useNavBreadcrumbs(
|
|
|
49
56
|
crumbs[crumbs.length - 1] = { label: crumbs[crumbs.length - 1].label };
|
|
50
57
|
}
|
|
51
58
|
return crumbs;
|
|
52
|
-
}, [state.layers, options.root]);
|
|
59
|
+
}, [state.layers, options.root, lang]);
|
|
53
60
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useAuth } from "alepha/react/auth";
|
|
2
|
+
import { useI18n } from "alepha/react/i18n";
|
|
2
3
|
import { useRouter, useRouterState } from "alepha/react/router";
|
|
3
4
|
import type { ReactNode } from "react";
|
|
4
5
|
import { useMemo } from "react";
|
|
@@ -8,6 +9,7 @@ import {
|
|
|
8
9
|
isActivePath,
|
|
9
10
|
isDescendantOf,
|
|
10
11
|
keepDeepestActive,
|
|
12
|
+
navGroupLabel,
|
|
11
13
|
navLabel,
|
|
12
14
|
} from "./nav-tree-util.ts";
|
|
13
15
|
|
|
@@ -36,6 +38,12 @@ export interface NavEntry {
|
|
|
36
38
|
label: ReactNode;
|
|
37
39
|
icon?: ReactNode;
|
|
38
40
|
group?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Section heading, already localised. `nav.group` stays the raw grouping key
|
|
43
|
+
* - two entries are in the same section when they agree on it, in every
|
|
44
|
+
* language - so the text a consumer renders is this, never `group`.
|
|
45
|
+
*/
|
|
46
|
+
groupLabel?: string;
|
|
39
47
|
/**
|
|
40
48
|
* `nav.order` within the group.
|
|
41
49
|
*/
|
|
@@ -69,8 +77,15 @@ export function useNavEntries(options: UseNavEntriesOptions): NavEntry[] {
|
|
|
69
77
|
const router = useRouter<any>();
|
|
70
78
|
const state = useRouterState();
|
|
71
79
|
const { has } = useAuth();
|
|
80
|
+
const i18n = useI18n();
|
|
72
81
|
const pages = router.pages;
|
|
73
82
|
const current = state.url?.pathname ?? "/";
|
|
83
|
+
// `tr` is a stable bound field on the provider, so it can never be what
|
|
84
|
+
// tells the memo below that the labels changed: the active language has to
|
|
85
|
+
// be a dependency in its own right. (`has` happens to be a fresh closure per
|
|
86
|
+
// render today, which recomputes everything anyway - that is an accident of
|
|
87
|
+
// `useAuth`, not something the labels may rely on.)
|
|
88
|
+
const lang = i18n.lang;
|
|
74
89
|
|
|
75
90
|
return useMemo(() => {
|
|
76
91
|
const entries: NavEntry[] = [];
|
|
@@ -95,9 +110,10 @@ export function useNavEntries(options: UseNavEntriesOptions): NavEntry[] {
|
|
|
95
110
|
entries.push({
|
|
96
111
|
name: page.name,
|
|
97
112
|
href: page.match,
|
|
98
|
-
label: navLabel(page),
|
|
113
|
+
label: navLabel(page, i18n.tr),
|
|
99
114
|
icon: nav.icon,
|
|
100
115
|
group: nav.group,
|
|
116
|
+
groupLabel: navGroupLabel(page, i18n.tr),
|
|
101
117
|
order,
|
|
102
118
|
groupOrder: 0,
|
|
103
119
|
keywords: nav.keywords,
|
|
@@ -117,5 +133,5 @@ export function useNavEntries(options: UseNavEntriesOptions): NavEntry[] {
|
|
|
117
133
|
// matched more specifically. Only now, with the whole set in hand, can the
|
|
118
134
|
// shallower matches be dropped.
|
|
119
135
|
return keepDeepestActive(entries);
|
|
120
|
-
}, [pages, current, has, options.root]);
|
|
136
|
+
}, [pages, current, has, options.root, lang]);
|
|
121
137
|
}
|
|
@@ -40,7 +40,10 @@ export function useNavTree(options: UseNavTreeOptions): NavGroup[] {
|
|
|
40
40
|
byKey.set(key, items);
|
|
41
41
|
// Entries are pre-sorted by (groupOrder, order), so the first time we
|
|
42
42
|
// see a group it lands in the right position.
|
|
43
|
-
groups.push({
|
|
43
|
+
groups.push({
|
|
44
|
+
label: entry.groupLabel || entry.group || undefined,
|
|
45
|
+
items,
|
|
46
|
+
});
|
|
44
47
|
}
|
|
45
48
|
items.push(toNavItem(entry));
|
|
46
49
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Button } from "@alepha/ui/components/ui/button";
|
|
4
4
|
import { cn } from "@alepha/ui/lib/utils";
|
|
5
5
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
6
|
-
import
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
|
|
8
8
|
function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) {
|
|
9
9
|
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "@alepha/ui/lib/utils";
|
|
2
2
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
|
-
import
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
const alertVariants = cva(
|
|
6
6
|
"group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",
|
|
@@ -72,4 +72,4 @@ function AlertAction({ className, ...props }: React.ComponentProps<"div">) {
|
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export { Alert,
|
|
75
|
+
export { Alert, AlertTitle, AlertDescription, AlertAction };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { cn } from "@alepha/ui/lib/utils";
|
|
4
4
|
import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
|
|
5
|
-
import
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
|
|
7
7
|
function Avatar({
|
|
8
8
|
className,
|
|
@@ -100,9 +100,9 @@ function AvatarGroupCount({
|
|
|
100
100
|
|
|
101
101
|
export {
|
|
102
102
|
Avatar,
|
|
103
|
-
|
|
103
|
+
AvatarImage,
|
|
104
104
|
AvatarFallback,
|
|
105
105
|
AvatarGroup,
|
|
106
106
|
AvatarGroupCount,
|
|
107
|
-
|
|
107
|
+
AvatarBadge,
|
|
108
108
|
};
|
|
@@ -2,7 +2,7 @@ import { cn } from "@alepha/ui/lib/utils";
|
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
5
|
-
import
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
|
|
7
7
|
function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">) {
|
|
8
8
|
return (
|
|
@@ -112,10 +112,10 @@ function BreadcrumbEllipsis({
|
|
|
112
112
|
|
|
113
113
|
export {
|
|
114
114
|
Breadcrumb,
|
|
115
|
-
|
|
115
|
+
BreadcrumbList,
|
|
116
116
|
BreadcrumbItem,
|
|
117
117
|
BreadcrumbLink,
|
|
118
|
-
BreadcrumbList,
|
|
119
118
|
BreadcrumbPage,
|
|
120
119
|
BreadcrumbSeparator,
|
|
120
|
+
BreadcrumbEllipsis,
|
|
121
121
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from "@alepha/ui/lib/utils";
|
|
2
|
-
import
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
function Card({
|
|
5
5
|
className,
|
|
@@ -93,10 +93,10 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
|
|
|
93
93
|
|
|
94
94
|
export {
|
|
95
95
|
Card,
|
|
96
|
-
CardAction,
|
|
97
|
-
CardContent,
|
|
98
|
-
CardDescription,
|
|
99
|
-
CardFooter,
|
|
100
96
|
CardHeader,
|
|
97
|
+
CardFooter,
|
|
101
98
|
CardTitle,
|
|
99
|
+
CardAction,
|
|
100
|
+
CardDescription,
|
|
101
|
+
CardContent,
|
|
102
102
|
};
|
|
@@ -9,7 +9,7 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
|
|
|
9
9
|
<CheckboxPrimitive.Root
|
|
10
10
|
data-slot="checkbox"
|
|
11
11
|
className={cn(
|
|
12
|
-
"peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",
|
|
12
|
+
"peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",
|
|
13
13
|
className,
|
|
14
14
|
)}
|
|
15
15
|
{...props}
|
|
@@ -281,18 +281,18 @@ function useComboboxAnchor() {
|
|
|
281
281
|
|
|
282
282
|
export {
|
|
283
283
|
Combobox,
|
|
284
|
-
ComboboxChip,
|
|
285
|
-
ComboboxChips,
|
|
286
|
-
ComboboxChipsInput,
|
|
287
|
-
ComboboxCollection,
|
|
288
|
-
ComboboxContent,
|
|
289
|
-
ComboboxEmpty,
|
|
290
|
-
ComboboxGroup,
|
|
291
284
|
ComboboxInput,
|
|
285
|
+
ComboboxContent,
|
|
286
|
+
ComboboxList,
|
|
292
287
|
ComboboxItem,
|
|
288
|
+
ComboboxGroup,
|
|
293
289
|
ComboboxLabel,
|
|
294
|
-
|
|
290
|
+
ComboboxCollection,
|
|
291
|
+
ComboboxEmpty,
|
|
295
292
|
ComboboxSeparator,
|
|
293
|
+
ComboboxChips,
|
|
294
|
+
ComboboxChip,
|
|
295
|
+
ComboboxChipsInput,
|
|
296
296
|
ComboboxTrigger,
|
|
297
297
|
ComboboxValue,
|
|
298
298
|
useComboboxAnchor,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { cn } from "@alepha/ui/lib/utils";
|
|
15
15
|
import { Command as CommandPrimitive } from "cmdk";
|
|
16
16
|
import { CheckIcon, SearchIcon } from "lucide-react";
|
|
17
|
-
import
|
|
17
|
+
import * as React from "react";
|
|
18
18
|
|
|
19
19
|
function Command({
|
|
20
20
|
className,
|
|
@@ -185,11 +185,11 @@ function CommandShortcut({
|
|
|
185
185
|
export {
|
|
186
186
|
Command,
|
|
187
187
|
CommandDialog,
|
|
188
|
+
CommandInput,
|
|
189
|
+
CommandList,
|
|
188
190
|
CommandEmpty,
|
|
189
191
|
CommandGroup,
|
|
190
|
-
CommandInput,
|
|
191
192
|
CommandItem,
|
|
192
|
-
CommandList,
|
|
193
|
-
CommandSeparator,
|
|
194
193
|
CommandShortcut,
|
|
194
|
+
CommandSeparator,
|
|
195
195
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { cn } from "@alepha/ui/lib/utils";
|
|
4
4
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
5
5
|
import { CheckIcon, ChevronRightIcon } from "lucide-react";
|
|
6
|
-
import
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
|
|
8
8
|
function ContextMenu({ ...props }: ContextMenuPrimitive.Root.Props) {
|
|
9
9
|
return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />;
|
|
@@ -254,18 +254,18 @@ function ContextMenuShortcut({
|
|
|
254
254
|
|
|
255
255
|
export {
|
|
256
256
|
ContextMenu,
|
|
257
|
-
|
|
257
|
+
ContextMenuTrigger,
|
|
258
258
|
ContextMenuContent,
|
|
259
|
-
ContextMenuGroup,
|
|
260
259
|
ContextMenuItem,
|
|
261
|
-
|
|
262
|
-
ContextMenuPortal,
|
|
263
|
-
ContextMenuRadioGroup,
|
|
260
|
+
ContextMenuCheckboxItem,
|
|
264
261
|
ContextMenuRadioItem,
|
|
262
|
+
ContextMenuLabel,
|
|
265
263
|
ContextMenuSeparator,
|
|
266
264
|
ContextMenuShortcut,
|
|
265
|
+
ContextMenuGroup,
|
|
266
|
+
ContextMenuPortal,
|
|
267
267
|
ContextMenuSub,
|
|
268
268
|
ContextMenuSubContent,
|
|
269
269
|
ContextMenuSubTrigger,
|
|
270
|
-
|
|
270
|
+
ContextMenuRadioGroup,
|
|
271
271
|
};
|
|
@@ -4,7 +4,7 @@ import { Button } from "@alepha/ui/components/ui/button";
|
|
|
4
4
|
import { cn } from "@alepha/ui/lib/utils";
|
|
5
5
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
6
6
|
import { XIcon } from "lucide-react";
|
|
7
|
-
import
|
|
7
|
+
import * as React from "react";
|
|
8
8
|
|
|
9
9
|
function Dialog({ ...props }: DialogPrimitive.Root.Props) {
|
|
10
10
|
return <DialogPrimitive.Root data-slot="dialog" {...props} />;
|
|
@@ -214,14 +214,14 @@ function DrawerDescription({
|
|
|
214
214
|
|
|
215
215
|
export {
|
|
216
216
|
Drawer,
|
|
217
|
+
DrawerPortal,
|
|
218
|
+
DrawerOverlay,
|
|
219
|
+
DrawerSwipeHandle,
|
|
220
|
+
DrawerTrigger,
|
|
217
221
|
DrawerClose,
|
|
218
222
|
DrawerContent,
|
|
219
|
-
DrawerDescription,
|
|
220
|
-
DrawerFooter,
|
|
221
223
|
DrawerHeader,
|
|
222
|
-
|
|
223
|
-
DrawerPortal,
|
|
224
|
-
DrawerSwipeHandle,
|
|
224
|
+
DrawerFooter,
|
|
225
225
|
DrawerTitle,
|
|
226
|
-
|
|
226
|
+
DrawerDescription,
|
|
227
227
|
};
|