@alepha/ui 0.28.0 → 0.29.0
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 +31 -2
- package/dist/components/account/account-connections.d.ts.map +1 -1
- package/dist/components/account/account-connections.js +4 -1
- 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 -15
- package/dist/components/account/account-delete-dialog.js.map +1 -1
- package/dist/components/account/account-keys.d.ts.map +1 -1
- package/dist/components/account/account-keys.js +22 -28
- package/dist/components/account/account-keys.js.map +1 -1
- package/dist/components/account/account-mfa-dialog.js +1 -4
- package/dist/components/account/account-mfa-dialog.js.map +1 -1
- package/dist/components/account/account-password-dialog.d.ts.map +1 -1
- package/dist/components/account/account-password-dialog.js +11 -14
- package/dist/components/account/account-password-dialog.js.map +1 -1
- package/dist/components/account/account-profile.js +3 -2
- package/dist/components/account/account-profile.js.map +1 -1
- package/dist/components/account/account-router-options.d.ts +38 -0
- package/dist/components/account/account-router-options.d.ts.map +1 -1
- package/dist/components/account/account-router-options.js.map +1 -1
- package/dist/components/account/account-router-page.d.ts +11 -1
- package/dist/components/account/account-router-page.d.ts.map +1 -1
- package/dist/components/account/account-router-page.js +11 -1
- package/dist/components/account/account-router-page.js.map +1 -1
- package/dist/components/account/account-router.d.ts +11 -0
- package/dist/components/account/account-router.d.ts.map +1 -1
- package/dist/components/account/account-router.js +16 -5
- package/dist/components/account/account-router.js.map +1 -1
- package/dist/components/admin/admin-audits.d.ts.map +1 -1
- package/dist/components/admin/admin-audits.js +91 -34
- package/dist/components/admin/admin-audits.js.map +1 -1
- package/dist/components/admin/admin-files.d.ts.map +1 -1
- package/dist/components/admin/admin-files.js +6 -17
- package/dist/components/admin/admin-files.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 +39 -8
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-jobs-payload-dialog.d.ts +19 -0
- package/dist/components/admin/admin-jobs-payload-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-payload-dialog.js +33 -0
- package/dist/components/admin/admin-jobs-payload-dialog.js.map +1 -0
- package/dist/components/admin/admin-keys.d.ts.map +1 -1
- package/dist/components/admin/admin-keys.js +5 -4
- package/dist/components/admin/admin-keys.js.map +1 -1
- package/dist/components/admin/admin-notifications-channel-label.d.ts +14 -0
- package/dist/components/admin/admin-notifications-channel-label.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-channel-label.js +26 -0
- package/dist/components/admin/admin-notifications-channel-label.js.map +1 -0
- package/dist/components/admin/admin-notifications-preview-body.d.ts.map +1 -1
- package/dist/components/admin/admin-notifications-preview-body.js +23 -13
- package/dist/components/admin/admin-notifications-preview-body.js.map +1 -1
- package/dist/components/admin/admin-notifications.d.ts.map +1 -1
- package/dist/components/admin/admin-notifications.js +11 -12
- package/dist/components/admin/admin-notifications.js.map +1 -1
- package/dist/components/admin/admin-payments.d.ts.map +1 -1
- package/dist/components/admin/admin-payments.js +9 -7
- package/dist/components/admin/admin-payments.js.map +1 -1
- package/dist/components/admin/admin-router-options.d.ts +12 -0
- package/dist/components/admin/admin-router-options.d.ts.map +1 -1
- package/dist/components/admin/admin-router-options.js.map +1 -1
- package/dist/components/admin/admin-router.d.ts +5 -8
- package/dist/components/admin/admin-router.d.ts.map +1 -1
- package/dist/components/admin/admin-router.js +6 -29
- 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 +9 -7
- package/dist/components/admin/admin-sessions.js.map +1 -1
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-audits-tab.js +5 -4
- package/dist/components/admin/admin-user-detail-audits-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 +7 -5
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail.js +3 -2
- package/dist/components/admin/admin-user-detail.js.map +1 -1
- package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -1
- package/dist/components/admin/admin-users-roles-picker.js.map +1 -1
- package/dist/components/admin/admin-users.d.ts.map +1 -1
- package/dist/components/admin/admin-users.js +6 -4
- package/dist/components/admin/admin-users.js.map +1 -1
- package/dist/components/admin/analytics/AnalyticsChartBars.js +2 -1
- package/dist/components/admin/analytics/AnalyticsChartBars.js.map +1 -1
- package/dist/components/admin/parameter-history-item.d.ts.map +1 -1
- package/dist/components/admin/parameter-history-item.js +3 -2
- package/dist/components/admin/parameter-history-item.js.map +1 -1
- package/dist/components/alepha-table/alepha-table-bulk-menu.js +2 -1
- package/dist/components/alepha-table/alepha-table-bulk-menu.js.map +1 -1
- package/dist/components/alepha-table/alepha-table-filter-dialog.d.ts +60 -0
- package/dist/components/alepha-table/alepha-table-filter-dialog.d.ts.map +1 -0
- package/dist/components/alepha-table/alepha-table-filter-dialog.js +88 -0
- package/dist/components/alepha-table/alepha-table-filter-dialog.js.map +1 -0
- package/dist/components/alepha-table/alepha-table-filter-menu.d.ts +35 -0
- package/dist/components/alepha-table/alepha-table-filter-menu.d.ts.map +1 -0
- package/dist/components/alepha-table/alepha-table-filter-menu.js +54 -0
- package/dist/components/alepha-table/alepha-table-filter-menu.js.map +1 -0
- package/dist/components/alepha-table/alepha-table.d.ts +188 -3
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -1
- package/dist/components/alepha-table/alepha-table.js +551 -162
- package/dist/components/alepha-table/alepha-table.js.map +1 -1
- package/dist/components/alepha-table/query-filters.d.ts +73 -0
- package/dist/components/alepha-table/query-filters.d.ts.map +1 -0
- package/dist/components/alepha-table/query-filters.js +118 -0
- package/dist/components/alepha-table/query-filters.js.map +1 -0
- package/dist/components/app-actions/app-actions.d.ts +21 -0
- package/dist/components/app-actions/app-actions.d.ts.map +1 -1
- package/dist/components/app-actions/app-actions.js +11 -5
- package/dist/components/app-actions/app-actions.js.map +1 -1
- package/dist/components/app-shell/app-shell.d.ts +45 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/app-shell.js +119 -16
- package/dist/components/app-shell/app-shell.js.map +1 -1
- package/dist/components/auth/auth-register.js +31 -30
- package/dist/components/auth/auth-register.js.map +1 -1
- package/dist/components/auto-form/auto-form.d.ts.map +1 -1
- package/dist/components/auto-form/auto-form.js +68 -30
- package/dist/components/auto-form/auto-form.js.map +1 -1
- package/dist/components/button-dark/button-dark.d.ts.map +1 -1
- package/dist/components/button-dark/button-dark.js +39 -8
- package/dist/components/button-dark/button-dark.js.map +1 -1
- package/dist/components/button-inbox/button-inbox.d.ts +66 -0
- package/dist/components/button-inbox/button-inbox.d.ts.map +1 -0
- package/dist/components/button-inbox/button-inbox.js +167 -0
- package/dist/components/button-inbox/button-inbox.js.map +1 -0
- package/dist/components/button-inbox/inbox-unread-atom.d.ts +22 -0
- package/dist/components/button-inbox/inbox-unread-atom.d.ts.map +1 -0
- package/dist/components/button-inbox/inbox-unread-atom.js +29 -0
- package/dist/components/button-inbox/inbox-unread-atom.js.map +1 -0
- package/dist/components/button-theme/button-theme.d.ts +4 -3
- package/dist/components/button-theme/button-theme.d.ts.map +1 -1
- package/dist/components/button-theme/button-theme.js +8 -25
- package/dist/components/button-theme/button-theme.js.map +1 -1
- package/dist/components/button-user/button-user.d.ts +19 -0
- package/dist/components/button-user/button-user.d.ts.map +1 -1
- package/dist/components/button-user/button-user.js +1 -1
- package/dist/components/button-user/button-user.js.map +1 -1
- package/dist/components/control/control.d.ts +51 -0
- package/dist/components/control/control.d.ts.map +1 -1
- package/dist/components/control/control.js +49 -5
- package/dist/components/control/control.js.map +1 -1
- package/dist/components/control-array/control-array.js +2 -1
- package/dist/components/control-array/control-array.js.map +1 -1
- package/dist/components/control-date/control-date.d.ts +27 -0
- package/dist/components/control-date/control-date.d.ts.map +1 -1
- package/dist/components/control-date/control-date.js +15 -19
- package/dist/components/control-date/control-date.js.map +1 -1
- package/dist/components/control-date/date-only.d.ts +18 -0
- package/dist/components/control-date/date-only.d.ts.map +1 -0
- package/dist/components/control-date/date-only.js +29 -0
- package/dist/components/control-date/date-only.js.map +1 -0
- package/dist/components/control-date-range/control-date-range.d.ts +56 -0
- package/dist/components/control-date-range/control-date-range.d.ts.map +1 -0
- package/dist/components/control-date-range/control-date-range.js +148 -0
- package/dist/components/control-date-range/control-date-range.js.map +1 -0
- 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-select/control-select.d.ts.map +1 -1
- package/dist/components/control-select/control-select.js +177 -37
- package/dist/components/control-select/control-select.js.map +1 -1
- package/dist/components/control-upload/control-upload.d.ts.map +1 -1
- package/dist/components/control-upload/control-upload.js +1 -11
- package/dist/components/control-upload/control-upload.js.map +1 -1
- package/dist/components/detail/detail-aside.d.ts.map +1 -1
- package/dist/components/detail/detail-aside.js +4 -3
- package/dist/components/detail/detail-aside.js.map +1 -1
- package/dist/components/file-image/file-image.js +2 -1
- package/dist/components/file-image/file-image.js.map +1 -1
- package/dist/components/markdown-view/SpoilerSpan.d.ts +28 -0
- package/dist/components/markdown-view/SpoilerSpan.d.ts.map +1 -0
- package/dist/components/markdown-view/SpoilerSpan.js +53 -0
- package/dist/components/markdown-view/SpoilerSpan.js.map +1 -0
- package/dist/components/markdown-view/diagram/layoutSequence.js +13 -23
- package/dist/components/markdown-view/diagram/layoutSequence.js.map +1 -1
- package/dist/components/markdown-view/diagram/textMetrics.js +2 -2
- package/dist/components/markdown-view/diagram/textMetrics.js.map +1 -1
- package/dist/components/markdown-view/markdown-view.css +44 -0
- package/dist/components/markdown-view/markdown-view.d.ts +12 -0
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -1
- package/dist/components/markdown-view/markdown-view.js +22 -1
- package/dist/components/markdown-view/markdown-view.js.map +1 -1
- package/dist/components/markdown-view/remarkSpoiler.d.ts +17 -0
- package/dist/components/markdown-view/remarkSpoiler.d.ts.map +1 -0
- package/dist/components/markdown-view/remarkSpoiler.js +117 -0
- package/dist/components/markdown-view/remarkSpoiler.js.map +1 -0
- package/dist/components/permission-matrix/permission-matrix-group-rows.d.ts +34 -0
- package/dist/components/permission-matrix/permission-matrix-group-rows.d.ts.map +1 -0
- package/dist/components/permission-matrix/permission-matrix-group-rows.js +109 -0
- package/dist/components/permission-matrix/permission-matrix-group-rows.js.map +1 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts +145 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts.map +1 -0
- package/dist/components/permission-matrix/permission-matrix.js +113 -0
- package/dist/components/permission-matrix/permission-matrix.js.map +1 -0
- package/dist/components/plate-layout/plate-layout.d.ts +5 -0
- package/dist/components/plate-layout/plate-layout.d.ts.map +1 -1
- package/dist/components/plate-layout/plate-layout.js +2 -1
- package/dist/components/plate-layout/plate-layout.js.map +1 -1
- package/dist/components/plate-layout/plate-tab-bar.d.ts +10 -0
- package/dist/components/plate-layout/plate-tab-bar.d.ts.map +1 -1
- package/dist/components/plate-layout/plate-tab-bar.js +1 -1
- package/dist/components/plate-layout/plate-tab-bar.js.map +1 -1
- package/dist/components/settings/settings-nav.js +2 -1
- package/dist/components/settings/settings-nav.js.map +1 -1
- package/dist/components/time-ago/time-ago.d.ts +57 -0
- package/dist/components/time-ago/time-ago.d.ts.map +1 -0
- package/dist/components/time-ago/time-ago.js +60 -0
- package/dist/components/time-ago/time-ago.js.map +1 -0
- package/dist/components/tree-view/tree-model.d.ts +128 -0
- package/dist/components/tree-view/tree-model.d.ts.map +1 -0
- package/dist/components/tree-view/tree-model.js +226 -0
- package/dist/components/tree-view/tree-model.js.map +1 -0
- package/dist/components/tree-view/tree-view-rename-input.d.ts +31 -0
- package/dist/components/tree-view/tree-view-rename-input.d.ts.map +1 -0
- package/dist/components/tree-view/tree-view-rename-input.js +68 -0
- package/dist/components/tree-view/tree-view-rename-input.js.map +1 -0
- package/dist/components/tree-view/tree-view-resizer.d.ts +38 -0
- package/dist/components/tree-view/tree-view-resizer.d.ts.map +1 -0
- package/dist/components/tree-view/tree-view-resizer.js +73 -0
- package/dist/components/tree-view/tree-view-resizer.js.map +1 -0
- package/dist/components/tree-view/tree-view-row.d.ts +177 -0
- package/dist/components/tree-view/tree-view-row.d.ts.map +1 -0
- package/dist/components/tree-view/tree-view-row.js +241 -0
- package/dist/components/tree-view/tree-view-row.js.map +1 -0
- package/dist/components/tree-view/tree-view.d.ts +186 -0
- package/dist/components/tree-view/tree-view.d.ts.map +1 -0
- package/dist/components/tree-view/tree-view.js +112 -0
- package/dist/components/tree-view/tree-view.js.map +1 -0
- package/dist/components/tree-view/use-tree-state.d.ts +79 -0
- package/dist/components/tree-view/use-tree-state.d.ts.map +1 -0
- package/dist/components/tree-view/use-tree-state.js +93 -0
- package/dist/components/tree-view/use-tree-state.js.map +1 -0
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/select.d.ts +7 -0
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +7 -0
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/lib/i18n-fr.d.ts.map +1 -1
- package/dist/lib/i18n-fr.js +31 -47
- package/dist/lib/i18n-fr.js.map +1 -1
- package/dist/lib/utils.d.ts +22 -2
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +29 -5
- package/dist/lib/utils.js.map +1 -1
- package/dist/styles.css +255 -0
- package/package.json +13 -14
- package/src/components/account/__tests__/account-router.spec.ts +95 -0
- package/src/components/account/account-connections.tsx +14 -1
- package/src/components/account/account-delete-dialog.tsx +3 -2
- package/src/components/account/account-keys.tsx +11 -4
- package/src/components/account/account-mfa-dialog.tsx +1 -1
- package/src/components/account/account-password-dialog.tsx +3 -2
- package/src/components/account/account-profile.tsx +1 -1
- package/src/components/account/account-router-options.tsx +45 -0
- package/src/components/account/account-router-page.tsx +11 -1
- package/src/components/account/account-router.tsx +23 -6
- package/src/components/admin/__tests__/admin-jobs-payload-dialog.browser.spec.tsx +68 -0
- package/src/components/admin/__tests__/admin-notifications-preview-body.browser.spec.tsx +20 -4
- package/src/components/admin/__tests__/admin-status-labels.browser.spec.tsx +0 -31
- package/src/components/admin/admin-audits.tsx +99 -5
- package/src/components/admin/admin-files.tsx +7 -16
- package/src/components/admin/admin-jobs-executions-panel.tsx +152 -114
- package/src/components/admin/admin-jobs-payload-dialog.tsx +57 -0
- package/src/components/admin/admin-keys.tsx +7 -4
- package/src/components/admin/admin-notifications-channel-label.ts +18 -0
- package/src/components/admin/admin-notifications-preview-body.tsx +7 -2
- package/src/components/admin/admin-notifications.tsx +19 -8
- package/src/components/admin/admin-payments.tsx +7 -4
- package/src/components/admin/admin-router-options.tsx +12 -0
- package/src/components/admin/admin-router.tsx +5 -27
- package/src/components/admin/admin-sessions.tsx +10 -6
- package/src/components/admin/admin-user-detail-audits-tab.tsx +7 -4
- package/src/components/admin/admin-user-detail-sessions-tab.tsx +7 -4
- package/src/components/admin/admin-users-roles-picker.tsx +4 -0
- package/src/components/admin/admin-users.tsx +6 -3
- package/src/components/admin/parameter-history-item.tsx +4 -2
- package/src/components/alepha-table/__tests__/alepha-table-default-hidden.browser.spec.tsx +108 -0
- package/src/components/alepha-table/__tests__/alepha-table-empty-state.browser.spec.tsx +233 -0
- package/src/components/alepha-table/__tests__/alepha-table-persist-facets.browser.spec.tsx +177 -0
- package/src/components/alepha-table/__tests__/alepha-table-persisted-filters.browser.spec.tsx +182 -0
- package/src/components/alepha-table/__tests__/alepha-table-query-seed.browser.spec.tsx +170 -0
- package/src/components/alepha-table/__tests__/alepha-table-row-action-checked.browser.spec.tsx +210 -0
- package/src/components/alepha-table/__tests__/alepha-table-row-action-group.browser.spec.tsx +202 -0
- package/src/components/alepha-table/__tests__/alepha-table-scope.browser.spec.tsx +161 -0
- package/src/components/alepha-table/__tests__/alepha-table-share-filters.browser.spec.tsx +309 -0
- package/src/components/alepha-table/__tests__/query-filters.spec.ts +212 -0
- package/src/components/alepha-table/alepha-table-filter-dialog.tsx +162 -0
- package/src/components/alepha-table/alepha-table-filter-menu.tsx +77 -0
- package/src/components/alepha-table/alepha-table.tsx +1113 -207
- package/src/components/alepha-table/query-filters.ts +159 -0
- package/src/components/app-actions/app-actions.tsx +32 -3
- package/src/components/app-shell/__tests__/sidebar-nav-accordion.browser.spec.tsx +163 -0
- package/src/components/app-shell/app-shell.tsx +255 -12
- package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +1 -1
- package/src/components/auto-form/auto-form.tsx +98 -30
- package/src/components/button-dark/button-dark.tsx +47 -8
- package/src/components/button-inbox/__tests__/button-inbox.browser.spec.tsx +247 -0
- package/src/components/button-inbox/button-inbox.tsx +303 -0
- package/src/components/button-inbox/inbox-unread-atom.ts +27 -0
- package/src/components/button-theme/button-theme.tsx +16 -29
- package/src/components/button-user/__tests__/button-user-avatar.browser.spec.tsx +88 -0
- package/src/components/button-user/button-user.tsx +24 -1
- package/src/components/control/__tests__/control-date-range.browser.spec.tsx +177 -0
- package/src/components/control/control.tsx +119 -12
- package/src/components/control-date/control-date.tsx +117 -22
- package/src/components/control-date/date-only.ts +26 -0
- package/src/components/control-date-range/control-date-range.tsx +250 -0
- package/src/components/control-select/__tests__/control-select-clear-label.browser.spec.tsx +129 -15
- package/src/components/control-select/__tests__/control-select-deselect.browser.spec.tsx +27 -6
- package/src/components/control-select/__tests__/control-select-multi.browser.spec.tsx +204 -1
- package/src/components/control-select/__tests__/control-select-size-minimal.browser.spec.tsx +77 -1
- package/src/components/control-select/control-select.tsx +317 -83
- package/src/components/control-upload/control-upload.tsx +1 -10
- package/src/components/detail/detail-aside.tsx +30 -6
- package/src/components/markdown-view/SpoilerSpan.tsx +66 -0
- package/src/components/markdown-view/__tests__/markdown-view-spoiler.browser.spec.tsx +165 -0
- package/src/components/markdown-view/diagram/textMetrics.spec.ts +1 -1
- package/src/components/markdown-view/diagram/textMetrics.ts +2 -2
- package/src/components/markdown-view/markdown-view.css +44 -0
- package/src/components/markdown-view/markdown-view.tsx +37 -1
- package/src/components/markdown-view/remarkSpoiler.ts +150 -0
- package/src/components/permission-matrix/__tests__/permission-matrix.browser.spec.tsx +237 -0
- package/src/components/permission-matrix/permission-matrix-group-rows.tsx +240 -0
- package/src/components/permission-matrix/permission-matrix.tsx +286 -0
- package/src/components/plate-layout/__tests__/plate-layout.browser.spec.tsx +22 -0
- package/src/components/plate-layout/plate-layout.tsx +6 -0
- package/src/components/plate-layout/plate-tab-bar.tsx +27 -1
- package/src/components/time-ago/time-ago.browser.spec.tsx +110 -0
- package/src/components/time-ago/time-ago.tsx +80 -0
- package/src/components/tree-view/__tests__/tree-model.spec.ts +441 -0
- package/src/components/tree-view/__tests__/tree-view-drag.browser.spec.tsx +295 -0
- package/src/components/tree-view/__tests__/tree-view-rename.browser.spec.tsx +278 -0
- package/src/components/tree-view/__tests__/tree-view-resizer.browser.spec.tsx +112 -0
- package/src/components/tree-view/__tests__/tree-view.browser.spec.tsx +260 -0
- package/src/components/tree-view/__tests__/use-tree-state.browser.spec.tsx +238 -0
- package/src/components/tree-view/tree-model.ts +369 -0
- package/src/components/tree-view/tree-view-rename-input.tsx +95 -0
- package/src/components/tree-view/tree-view-resizer.tsx +83 -0
- package/src/components/tree-view/tree-view-row.tsx +414 -0
- package/src/components/tree-view/tree-view.tsx +300 -0
- package/src/components/tree-view/use-tree-state.ts +184 -0
- package/src/components/ui/button.tsx +79 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/select.tsx +7 -0
- package/src/components/ui/table.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/lib/i18n-fr.ts +34 -51
- package/src/lib/utils.ts +32 -4
- package/src/styles.css +255 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts +0 -11
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows-execution-sheet.js +0 -190
- package/dist/components/admin/admin-workflows-execution-sheet.js.map +0 -1
- package/dist/components/admin/admin-workflows-executions-panel.d.ts +0 -9
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows-executions-panel.js +0 -121
- package/dist/components/admin/admin-workflows-executions-panel.js.map +0 -1
- package/dist/components/admin/admin-workflows-status-badge.d.ts +0 -12
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows-status-badge.js +0 -30
- package/dist/components/admin/admin-workflows-status-badge.js.map +0 -1
- package/dist/components/admin/admin-workflows-status-labels.d.ts +0 -19
- package/dist/components/admin/admin-workflows-status-labels.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows-status-labels.js +0 -48
- package/dist/components/admin/admin-workflows-status-labels.js.map +0 -1
- package/dist/components/admin/admin-workflows.d.ts +0 -4
- package/dist/components/admin/admin-workflows.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows.js +0 -145
- package/dist/components/admin/admin-workflows.js.map +0 -1
- package/src/components/admin/admin-workflows-execution-sheet.tsx +0 -285
- package/src/components/admin/admin-workflows-executions-panel.tsx +0 -169
- package/src/components/admin/admin-workflows-status-badge.tsx +0 -41
- package/src/components/admin/admin-workflows-status-labels.ts +0 -51
- package/src/components/admin/admin-workflows.tsx +0 -209
package/src/lib/i18n-fr.ts
CHANGED
|
@@ -53,11 +53,29 @@ export const uiFr: Record<string, string> = {
|
|
|
53
53
|
"alephaTable.bulkMenu.failed": "Impossible de charger les choix",
|
|
54
54
|
"alephaTable.bulkMenu.loading": "Chargement…",
|
|
55
55
|
"alephaTable.clearSelection": "Annuler la sélection",
|
|
56
|
+
"alephaTable.columnMoved": "$1 déplacée en position $2 sur $3",
|
|
57
|
+
"alephaTable.hideColumn": "Masquer la colonne",
|
|
58
|
+
"alephaTable.moveDown": "Descendre",
|
|
59
|
+
"alephaTable.moveLeft": "Déplacer à gauche",
|
|
60
|
+
"alephaTable.moveRight": "Déplacer à droite",
|
|
61
|
+
"alephaTable.moveUp": "Monter",
|
|
62
|
+
"alephaTable.sortAsc": "Trier par ordre croissant",
|
|
63
|
+
"alephaTable.sortClear": "Annuler le tri",
|
|
64
|
+
"alephaTable.sortDesc": "Trier par ordre décroissant",
|
|
56
65
|
"alephaTable.columns": "Colonnes",
|
|
57
|
-
"alephaTable.
|
|
66
|
+
"alephaTable.emptyTitle": "Aucun élément",
|
|
67
|
+
"alephaTable.emptyDescription": "Il n'y a rien ici pour le moment.",
|
|
68
|
+
"alephaTable.noMatchTitle": "Aucun résultat",
|
|
69
|
+
"alephaTable.noMatchDescription":
|
|
70
|
+
"Essayez d'ajuster ou d'effacer les filtres.",
|
|
71
|
+
"alephaTable.filters": "Filtres",
|
|
72
|
+
"alephaTable.filtersDone": "Terminé",
|
|
73
|
+
"alephaTable.filtersHint": "Les changements s'appliquent au fur et à mesure.",
|
|
58
74
|
"alephaTable.openRowActions": "Ouvrir les actions de la ligne",
|
|
59
75
|
"alephaTable.refresh": "Actualiser",
|
|
60
76
|
"alephaTable.resetFilters": "Réinitialiser les filtres",
|
|
77
|
+
"alephaTable.shareFilters": "Partager les filtres",
|
|
78
|
+
"alephaTable.shareFiltersCopied": "Lien copié",
|
|
61
79
|
"alephaTable.selectAll": "Sélectionner toutes les lignes",
|
|
62
80
|
"alephaTable.selectRow": "Sélectionner la ligne",
|
|
63
81
|
"alephaTable.selected": "$1 sélectionné(s)",
|
|
@@ -67,6 +85,10 @@ export const uiFr: Record<string, string> = {
|
|
|
67
85
|
// to, not under a `t` of its own.
|
|
68
86
|
"table.pageSize": "Lignes par page",
|
|
69
87
|
|
|
88
|
+
// The tree: inline rename, and the pane resizer.
|
|
89
|
+
"treeView.rename": "Nouveau nom",
|
|
90
|
+
"treeView.resize": "Redimensionner l'arborescence",
|
|
91
|
+
|
|
70
92
|
// Schema-generated forms.
|
|
71
93
|
"autoForm.cancel": "Annuler",
|
|
72
94
|
"autoForm.error": "Erreur",
|
|
@@ -94,6 +116,7 @@ export const uiFr: Record<string, string> = {
|
|
|
94
116
|
"controlObject.initialize": "Initialiser",
|
|
95
117
|
|
|
96
118
|
// Select, combobox and boolean controls.
|
|
119
|
+
"controlSelect.clear": "Effacer la sélection",
|
|
97
120
|
"controlSelect.count": "$1 sélectionnés",
|
|
98
121
|
"controlSelect.create": "Créer « $1 »",
|
|
99
122
|
"controlSelect.selectAll": "Sélectionner les $1 résultats de « $2 »",
|
|
@@ -328,11 +351,16 @@ export const uiFr: Record<string, string> = {
|
|
|
328
351
|
"admin.audits.colAction": "Action",
|
|
329
352
|
"admin.audits.colActor": "Auteur",
|
|
330
353
|
"admin.audits.colResource": "Ressource",
|
|
354
|
+
"admin.audits.colScope": "Portée",
|
|
331
355
|
"admin.audits.colStatus": "Statut",
|
|
332
356
|
"admin.audits.colWhen": "Date",
|
|
333
357
|
"admin.audits.failed": "Échec",
|
|
358
|
+
"admin.audits.layerAll": "Toutes les portées",
|
|
359
|
+
"admin.audits.layerApp": "Application",
|
|
360
|
+
"admin.audits.layerScoped": "Par ressource",
|
|
334
361
|
"admin.audits.ok": "OK",
|
|
335
362
|
"admin.audits.statusAll": "Tous les statuts",
|
|
363
|
+
"admin.audits.dateAll": "Toute date",
|
|
336
364
|
"admin.detail.copyValue": "Copier $1",
|
|
337
365
|
"admin.files.allBuckets": "Tous les buckets",
|
|
338
366
|
"admin.files.bucketPlaceholder": "Bucket",
|
|
@@ -366,11 +394,13 @@ export const uiFr: Record<string, string> = {
|
|
|
366
394
|
"admin.jobs.colDuration": "Durée",
|
|
367
395
|
"admin.jobs.colError": "Erreur",
|
|
368
396
|
"admin.jobs.colErrors": "Erreurs",
|
|
397
|
+
"admin.jobs.colKey": "Clé",
|
|
369
398
|
"admin.jobs.colLastRun": "Dernière exécution",
|
|
370
399
|
"admin.jobs.colName": "Nom",
|
|
371
400
|
"admin.jobs.colOk": "OK",
|
|
372
401
|
"admin.jobs.colPriority": "Priorité",
|
|
373
402
|
"admin.jobs.colSchedule": "Planification",
|
|
403
|
+
"admin.jobs.colScheduled": "Planifiée pour",
|
|
374
404
|
"admin.jobs.colStarted": "Démarrée le",
|
|
375
405
|
"admin.jobs.colStatus": "Statut",
|
|
376
406
|
"admin.jobs.colTriggeredBy": "Déclenchée par",
|
|
@@ -379,6 +409,7 @@ export const uiFr: Record<string, string> = {
|
|
|
379
409
|
"admin.jobs.noExecs": "Aucune exécution pour l'instant.",
|
|
380
410
|
"admin.jobs.none": "Aucune tâche enregistrée.",
|
|
381
411
|
"admin.jobs.notStarted": "Non démarré",
|
|
412
|
+
"admin.jobs.payloadTitle": "Charge utile",
|
|
382
413
|
"admin.jobs.priorityAll": "Toutes les priorités",
|
|
383
414
|
"admin.jobs.retried": "Exécution remise en file",
|
|
384
415
|
"admin.jobs.retry": "Relancer",
|
|
@@ -398,6 +429,7 @@ export const uiFr: Record<string, string> = {
|
|
|
398
429
|
"admin.jobs.typeAll": "Tous les types",
|
|
399
430
|
"admin.jobs.unknown": "inconnu",
|
|
400
431
|
"admin.jobs.viewExecutions": "Voir les exécutions",
|
|
432
|
+
"admin.jobs.viewPayload": "Voir la charge utile",
|
|
401
433
|
"admin.keys.bulkRevoke": "Révoquer la sélection",
|
|
402
434
|
"admin.keys.bulkRevokeConfirm":
|
|
403
435
|
"Révoquer $1 clé(s) d'API ? Les applications qui les utilisent perdront l'accès.",
|
|
@@ -447,7 +479,6 @@ export const uiFr: Record<string, string> = {
|
|
|
447
479
|
"admin.nav.sessions": "Sessions",
|
|
448
480
|
"admin.nav.userDetail": "Utilisateur",
|
|
449
481
|
"admin.nav.users": "Utilisateurs",
|
|
450
|
-
"admin.nav.workflows": "Workflows",
|
|
451
482
|
|
|
452
483
|
"admin.notifications.bulkDelete": "Supprimer la sélection",
|
|
453
484
|
"admin.notifications.bulkDeleteConfirm":
|
|
@@ -763,55 +794,6 @@ export const uiFr: Record<string, string> = {
|
|
|
763
794
|
"admin.users.thisUser": "cet utilisateur",
|
|
764
795
|
"admin.users.verified": "Vérifié",
|
|
765
796
|
"admin.users.viewProfile": "Voir le profil",
|
|
766
|
-
"admin.workflows.cancel": "Annuler",
|
|
767
|
-
"admin.workflows.cancelConfirm":
|
|
768
|
-
"Arrêter cette exécution ? Les étapes restantes ne seront pas exécutées.",
|
|
769
|
-
"admin.workflows.cancelTitle": "Annuler le workflow",
|
|
770
|
-
"admin.workflows.cancelled": "Workflow annulé",
|
|
771
|
-
"admin.workflows.colCreated": "Créé le",
|
|
772
|
-
"admin.workflows.colDuration": "Durée",
|
|
773
|
-
"admin.workflows.colError": "Erreur",
|
|
774
|
-
"admin.workflows.colFailed": "Échecs",
|
|
775
|
-
"admin.workflows.colName": "Nom",
|
|
776
|
-
"admin.workflows.colOnError": "En cas d'erreur",
|
|
777
|
-
"admin.workflows.colPending": "En attente",
|
|
778
|
-
"admin.workflows.colPriority": "Priorité",
|
|
779
|
-
"admin.workflows.colRunning": "En cours",
|
|
780
|
-
"admin.workflows.colStatus": "Statut",
|
|
781
|
-
"admin.workflows.colStep": "Étape",
|
|
782
|
-
"admin.workflows.colSteps": "Étapes",
|
|
783
|
-
"admin.workflows.colTriggeredBy": "Déclenché par",
|
|
784
|
-
"admin.workflows.compensate": "Compenser",
|
|
785
|
-
"admin.workflows.compensateConfirm":
|
|
786
|
-
"Exécuter les fonctions de compensation de chaque étape terminée, en ordre inverse ?",
|
|
787
|
-
"admin.workflows.compensateTitle": "Compenser le workflow",
|
|
788
|
-
"admin.workflows.compensated": "Compensation lancée",
|
|
789
|
-
"admin.workflows.execsDescription": "Exécutions de ce workflow.",
|
|
790
|
-
"admin.workflows.noExecs": "Aucune exécution pour l'instant.",
|
|
791
|
-
"admin.workflows.none": "Aucun workflow enregistré.",
|
|
792
|
-
"admin.workflows.restart": "Redémarrer",
|
|
793
|
-
"admin.workflows.restartConfirm":
|
|
794
|
-
"Démarrer une nouvelle exécution avec la même charge utile ?",
|
|
795
|
-
"admin.workflows.restartTitle": "Redémarrer le workflow",
|
|
796
|
-
"admin.workflows.restarted": "Workflow redémarré",
|
|
797
|
-
"admin.workflows.retried": "Workflow relancé",
|
|
798
|
-
"admin.workflows.retry": "Relancer",
|
|
799
|
-
"admin.workflows.retryConfirm":
|
|
800
|
-
"Reprendre cette exécution à partir de l'étape en échec ?",
|
|
801
|
-
"admin.workflows.retryTitle": "Relancer le workflow",
|
|
802
|
-
"admin.workflows.searchPlaceholder": "Rechercher…",
|
|
803
|
-
"admin.workflows.status.cancelled": "Annulé",
|
|
804
|
-
"admin.workflows.status.compensated": "Compensé",
|
|
805
|
-
"admin.workflows.status.compensating": "Compensation en cours",
|
|
806
|
-
"admin.workflows.status.compensationFailed": "Échec de la compensation",
|
|
807
|
-
"admin.workflows.status.completed": "Terminé",
|
|
808
|
-
"admin.workflows.status.failed": "Échec",
|
|
809
|
-
"admin.workflows.status.pending": "En attente",
|
|
810
|
-
"admin.workflows.status.running": "En cours",
|
|
811
|
-
"admin.workflows.status.skipped": "Ignoré",
|
|
812
|
-
"admin.workflows.status.timedOut": "Délai dépassé",
|
|
813
|
-
"admin.workflows.statusAll": "Tous les statuts",
|
|
814
|
-
"admin.workflows.viewExecutions": "Voir les exécutions",
|
|
815
797
|
|
|
816
798
|
// ─── The account kit (components/account/*) ───────────────────────────────
|
|
817
799
|
"account.connections.connectedAt": "Connectée $1",
|
|
@@ -823,6 +805,7 @@ export const uiFr: Record<string, string> = {
|
|
|
823
805
|
"Les applications que vous autorisez apparaîtront ici.",
|
|
824
806
|
"account.connections.lastUsedAt": " · dernière utilisation $1",
|
|
825
807
|
"account.connections.neverUsed": " · jamais utilisée",
|
|
808
|
+
"account.connections.sessionCount": " · $1 sessions",
|
|
826
809
|
"account.connections.revoke": "Déconnecter",
|
|
827
810
|
"account.connections.revokeDescription":
|
|
828
811
|
"Elle perd l'accès immédiatement et devra être autorisée à nouveau pour revenir.",
|
package/src/lib/utils.ts
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `cn` is shadcn's own engine for Tailwind class merging: the same API and
|
|
3
|
+
* output as `clsx` + `tailwind-merge`, with zero dependencies. This module is
|
|
4
|
+
* the one import path for it, hand-maintained blocks and stock primitives
|
|
5
|
+
* alike; `scripts/sync.ts` rewrites the registry's direct `"cn"` import back
|
|
6
|
+
* through here.
|
|
7
|
+
*/
|
|
8
|
+
export { cn } from "cn";
|
|
3
9
|
|
|
4
|
-
|
|
5
|
-
|
|
10
|
+
/**
|
|
11
|
+
* A byte count as a person reads it: `5.2 GB`, `640 KB`, `0 B`.
|
|
12
|
+
*
|
|
13
|
+
* One implementation, because there were four: two private copies in this
|
|
14
|
+
* package (`control-upload`, `admin-files`) that disagreed about whether TB
|
|
15
|
+
* exists, and two in Lore, one of which stopped at MB. A file listing and a
|
|
16
|
+
* host's disk are the same question, and the answer should not depend on
|
|
17
|
+
* which screen asked it.
|
|
18
|
+
*
|
|
19
|
+
* Binary units with decimal names, which is what every operating system shows
|
|
20
|
+
* and therefore what an operator compares against. `undefined` is empty rather
|
|
21
|
+
* than zero: a size nobody measured is not a size of nothing.
|
|
22
|
+
*/
|
|
23
|
+
export function formatBytes(n: number | undefined): string {
|
|
24
|
+
if (n === undefined) return "";
|
|
25
|
+
if (!n) return "0 B";
|
|
26
|
+
const units = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
27
|
+
const i = Math.min(
|
|
28
|
+
units.length - 1,
|
|
29
|
+
Math.floor(Math.log(Math.abs(n)) / Math.log(1024)),
|
|
30
|
+
);
|
|
31
|
+
// Bytes are whole things: "512.0 B" reads as a rounding of something else.
|
|
32
|
+
if (i === 0) return `${Math.round(n)} B`;
|
|
33
|
+
return `${(n / 1024 ** i).toFixed(1)} ${units[i]}`;
|
|
6
34
|
}
|
package/src/styles.css
CHANGED
|
@@ -70,7 +70,44 @@
|
|
|
70
70
|
--destructive-foreground: oklch(0.985 0 0);
|
|
71
71
|
--border: oklch(0.922 0 0);
|
|
72
72
|
--input: oklch(0.922 0 0);
|
|
73
|
+
/*
|
|
74
|
+
* The border a field takes on hover.
|
|
75
|
+
*
|
|
76
|
+
* Defined ONCE, and only here, because it is relative: the field's own
|
|
77
|
+
* border pulled 20% toward the text colour. `--foreground` is near-black in
|
|
78
|
+
* light and near-white in dark, so the same expression darkens the border in
|
|
79
|
+
* one mode and lightens it in the other, with no `.dark` counterpart to keep
|
|
80
|
+
* in step. It also follows every theme in `apps/ui`'s palette switcher for
|
|
81
|
+
* free, keeping each one's hue instead of washing toward neutral grey the
|
|
82
|
+
* way a mix with plain black or white would.
|
|
83
|
+
*
|
|
84
|
+
* `oklab` rather than sRGB so the step is perceptually even across a light
|
|
85
|
+
* grey border and a dark tinted one. Where `--input` is translucent (dark
|
|
86
|
+
* mode ships `oklch(1 0 0 / 15%)`) the mix raises the alpha too, which is
|
|
87
|
+
* the same direction: a hovered field reads as more present, not less.
|
|
88
|
+
*/
|
|
89
|
+
--input-hover: color-mix(in oklab, var(--input), var(--foreground) 20%);
|
|
73
90
|
--ring: oklch(0.708 0 0);
|
|
91
|
+
/*
|
|
92
|
+
* The bevel: a 1px inset line laid along the TOP edge of a chrome surface,
|
|
93
|
+
* immediately under the `--border` that already closes that edge. The pair
|
|
94
|
+
* is the whole illusion: two adjacent lines of OPPOSITE polarity read as a
|
|
95
|
+
* fold, so the surface looks raised out of the page instead of painted onto
|
|
96
|
+
* it. One line alone is just a divider.
|
|
97
|
+
*
|
|
98
|
+
* Which polarity is the bevel's is decided by the border, and the border
|
|
99
|
+
* changes sides between the modes. In light, `--border` is DARKER than the
|
|
100
|
+
* surface it edges, so the bevel is the highlight: pure white, because these
|
|
101
|
+
* surfaces are `bg-muted`, already within a few percent of the page, and
|
|
102
|
+
* nothing short of actual white separates them.
|
|
103
|
+
*
|
|
104
|
+
* In dark the border is LIGHTER than its surface (`oklch(1 0 0 / 10%)` over
|
|
105
|
+
* a near-black card), so it is already the highlight and the bevel has to be
|
|
106
|
+
* the shadow under it. A white line there does not make a fold, it makes the
|
|
107
|
+
* border look 2px thick and desaturated, which is what a neutral white wash
|
|
108
|
+
* does to a tinted theme.
|
|
109
|
+
*/
|
|
110
|
+
--bevel: oklch(1 0 0);
|
|
74
111
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
75
112
|
--chart-2: oklch(0.6 0.118 184.704);
|
|
76
113
|
--chart-3: oklch(0.398 0.07 227.392);
|
|
@@ -106,6 +143,7 @@
|
|
|
106
143
|
--border: oklch(1 0 0 / 10%);
|
|
107
144
|
--input: oklch(1 0 0 / 15%);
|
|
108
145
|
--ring: oklch(0.556 0 0);
|
|
146
|
+
--bevel: oklch(0 0 0 / 30%);
|
|
109
147
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
110
148
|
--chart-2: oklch(0.696 0.17 162.48);
|
|
111
149
|
--chart-3: oklch(0.769 0.188 70.08);
|
|
@@ -129,6 +167,58 @@
|
|
|
129
167
|
body {
|
|
130
168
|
@apply bg-background text-foreground;
|
|
131
169
|
}
|
|
170
|
+
|
|
171
|
+
/*
|
|
172
|
+
* The pointer cursor on anything clickable.
|
|
173
|
+
*
|
|
174
|
+
* Tailwind v3's Preflight carried `button, [role="button"] { cursor: pointer }`
|
|
175
|
+
* and v4 dropped it, deliberately, to match the browser default. The browser
|
|
176
|
+
* default is defensible and the result is not: `<a href>` still gets a
|
|
177
|
+
* pointer from the UA stylesheet, `<button>` gets `default`, and Base UI's
|
|
178
|
+
* span-based switches and checkboxes get `auto`. So a page ends up telling
|
|
179
|
+
* the reader that half its controls are clickable and the other half are
|
|
180
|
+
* text, with the split falling on an implementation detail they cannot see.
|
|
181
|
+
* Measured on the Table showcase before this rule: 37 controls, 8 pointers.
|
|
182
|
+
*
|
|
183
|
+
* Here rather than on the components: `yarn w @alepha/ui sync` overwrites
|
|
184
|
+
* every `src/components/ui/*.tsx` wholesale, so a per-component `cursor-pointer`
|
|
185
|
+
* survives only as a `LOCAL_PATCHES` entry, one per primitive, forever. The
|
|
186
|
+
* fifteen hand-written `cursor-pointer` classes already scattered through the
|
|
187
|
+
* repo are what that approach looks like halfway through.
|
|
188
|
+
*
|
|
189
|
+
* Roles as well as tags, because Base UI renders several controls as a
|
|
190
|
+
* `<span>` carrying the role. Disabled is excluded three ways: `:disabled`
|
|
191
|
+
* for native controls, and the two attributes Base UI sets on the ones that
|
|
192
|
+
* are not - a control that refuses the click should not invite it.
|
|
193
|
+
*/
|
|
194
|
+
:is(
|
|
195
|
+
button,
|
|
196
|
+
summary,
|
|
197
|
+
[role="button"],
|
|
198
|
+
[role="checkbox"],
|
|
199
|
+
[role="radio"],
|
|
200
|
+
[role="switch"],
|
|
201
|
+
[role="tab"],
|
|
202
|
+
[role="option"],
|
|
203
|
+
[role="menuitem"],
|
|
204
|
+
[role="menuitemcheckbox"],
|
|
205
|
+
[role="menuitemradio"],
|
|
206
|
+
[role="combobox"],
|
|
207
|
+
input[type="checkbox"],
|
|
208
|
+
input[type="radio"]
|
|
209
|
+
):not(
|
|
210
|
+
:disabled,
|
|
211
|
+
[aria-disabled="true"],
|
|
212
|
+
[data-disabled],
|
|
213
|
+
/* A Combobox carries `role="combobox"` on TWO elements: the trigger
|
|
214
|
+
button, and the typeahead input inside the popup. The input wants a
|
|
215
|
+
caret, not a hand. Text entry is excluded by shape rather than by
|
|
216
|
+
listing the types, so a future `[role]` on an input cannot reopen it. */
|
|
217
|
+
input:not([type="checkbox"], [type="radio"]),
|
|
218
|
+
textarea
|
|
219
|
+
) {
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
}
|
|
132
222
|
}
|
|
133
223
|
|
|
134
224
|
/* ────────────────────────────────────────────────────────────────────────
|
|
@@ -276,3 +366,168 @@
|
|
|
276
366
|
border-radius: 9999px;
|
|
277
367
|
background-color: var(--sidebar-primary);
|
|
278
368
|
}
|
|
369
|
+
|
|
370
|
+
/* ────────────────────────────────────────────────────────────────────────
|
|
371
|
+
* A sidebar entry sinks on press the way a Button does (feedback #P2181).
|
|
372
|
+
*
|
|
373
|
+
* `Button` nudges down one pixel with
|
|
374
|
+
* `not-disabled:active:not-aria-[haspopup]:translate-y-px` under
|
|
375
|
+
* `transition-all`; this is the same nudge, with the same exclusions, on
|
|
376
|
+
* `SidebarMenuButton`. Here rather than in `sidebar.tsx` for the reason the
|
|
377
|
+
* active bar above is: `yarn w @alepha/ui sync` overwrites that file.
|
|
378
|
+
*
|
|
379
|
+
* - `aria-haspopup` is excluded as Button excludes it: a trigger that sinks
|
|
380
|
+
* reads as a button that did something rather than one that opened. Lore's
|
|
381
|
+
* project switcher renders through `SidebarMenuButton` as a menu trigger,
|
|
382
|
+
* and Base UI gives it the trigger's `data-slot`, so this rule does not
|
|
383
|
+
* match it today; the exclusion keeps it that way if that ever changes.
|
|
384
|
+
* - Disabled and `aria-disabled` entries do not move.
|
|
385
|
+
* - `translate` joins the button's own `width, height, padding` transition
|
|
386
|
+
* rather than replacing it, so the collapse animation is untouched, and it
|
|
387
|
+
* keeps the utility's duration and easing - Tailwind's defaults, the ones
|
|
388
|
+
* Button's `transition-all` runs on. Without it the nudge would snap.
|
|
389
|
+
* - The x half reads `--tw-translate-x`, so a translate utility anybody puts
|
|
390
|
+
* on an entry survives the press.
|
|
391
|
+
*
|
|
392
|
+
* Sub-buttons are left alone: they already carry `-translate-x-px`, and the
|
|
393
|
+
* report was about the entries themselves.
|
|
394
|
+
* ──────────────────────────────────────────────────────────────────────── */
|
|
395
|
+
|
|
396
|
+
[data-slot="sidebar-menu-button"] {
|
|
397
|
+
transition-property: width, height, padding, translate;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
[data-slot="sidebar-menu-button"]:active:not(
|
|
401
|
+
:disabled,
|
|
402
|
+
[aria-disabled="true"],
|
|
403
|
+
[data-disabled],
|
|
404
|
+
[aria-haspopup]
|
|
405
|
+
) {
|
|
406
|
+
translate: var(--tw-translate-x, 0) 1px;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* ────────────────────────────────────────────────────────────────────────
|
|
410
|
+
* Menu and list items, which are the OTHER half of the cursor problem.
|
|
411
|
+
*
|
|
412
|
+
* The rule in `@layer base` above cannot reach these. shadcn ships
|
|
413
|
+
* `cursor-default` as an explicit utility on every menu item, select item,
|
|
414
|
+
* combobox item, command item and context-menu item, and a utility outranks
|
|
415
|
+
* anything in the base layer, so those items stayed on `default` while the
|
|
416
|
+
* buttons beside them turned into pointers. That is the same split the rule
|
|
417
|
+
* was written to close, moved one layer down.
|
|
418
|
+
*
|
|
419
|
+
* Unlayered on purpose: unlayered CSS beats every `@layer`, including
|
|
420
|
+
* Tailwind's `utilities`, which is what the sidebar rules below already rely
|
|
421
|
+
* on. Targeted by ROLE rather than by `data-slot` so it covers the checkbox
|
|
422
|
+
* and radio variants of a menu item without naming five primitives, each of
|
|
423
|
+
* which `yarn w @alepha/ui sync` would happily rename.
|
|
424
|
+
*
|
|
425
|
+
* This is a deliberate departure from shadcn, whose `cursor-default` copies
|
|
426
|
+
* the macOS convention that native menus do not show a hand. The convention
|
|
427
|
+
* is real, and it belongs to the menu bar - not to a popover inside a web
|
|
428
|
+
* page, where a row of text with no pointer reads as inert. Leaving these
|
|
429
|
+
* alone would have fixed half the inconsistency and kept the other half.
|
|
430
|
+
*
|
|
431
|
+
* Disabled items are excluded, and they also carry `pointer-events-none`
|
|
432
|
+
* already, so the guard is belt and braces.
|
|
433
|
+
* ──────────────────────────────────────────────────────────────────────── */
|
|
434
|
+
|
|
435
|
+
:is(
|
|
436
|
+
[role="option"],
|
|
437
|
+
[role="menuitem"],
|
|
438
|
+
[role="menuitemcheckbox"],
|
|
439
|
+
[role="menuitemradio"]
|
|
440
|
+
):not([data-disabled], [aria-disabled="true"], [data-disabled="true"]) {
|
|
441
|
+
cursor: pointer;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* ────────────────────────────────────────────────────────────────────────
|
|
445
|
+
* The hover border on a field.
|
|
446
|
+
*
|
|
447
|
+
* Every bordered surface a `Control` can render, addressed by `data-slot`
|
|
448
|
+
* rather than patched into each primitive: `yarn w @alepha/ui sync` overwrites
|
|
449
|
+
* `src/components/ui/*.tsx` wholesale, so a class added there survives only as
|
|
450
|
+
* a `LOCAL_PATCHES` entry per primitive. Same reasoning as the cursor rules
|
|
451
|
+
* above.
|
|
452
|
+
*
|
|
453
|
+
* Unlayered, because `border-input` is a utility and `@layer base` loses to
|
|
454
|
+
* it. All six slots carry `transition-colors` already, so the change eases in
|
|
455
|
+
* and out on its own; `combobox-trigger` gets both the border and the
|
|
456
|
+
* transition from `control-select`, which is the one that is not obvious.
|
|
457
|
+
*
|
|
458
|
+
* SPLIT IN TWO, because the primitives disagree about which pseudo-class earns
|
|
459
|
+
* the focus border, and this rule outranks all of them. Whatever is excluded
|
|
460
|
+
* here has to match what actually paints `border-ring`, exactly: exclude too
|
|
461
|
+
* little and the hover paints over a focus ring, exclude too much and the
|
|
462
|
+
* field stops responding to the mouse.
|
|
463
|
+
*
|
|
464
|
+
* The second failure is the one that happened. Excluding `:focus-within` as a
|
|
465
|
+
* safe superset looked harmless and was not: Base UI returns focus to the
|
|
466
|
+
* trigger after a selection, so choosing a value left the field `:focus` -
|
|
467
|
+
* measured `:focus` true, `:focus-visible` FALSE, `:active` false - and the
|
|
468
|
+
* hover border silently stopped working for the rest of the visit. Nothing was
|
|
469
|
+
* painting `border-ring` in that state either, since it keys on
|
|
470
|
+
* `:focus-visible`, so the exclusion was protecting nothing at all.
|
|
471
|
+
*
|
|
472
|
+
* Hence: `:focus-visible` for the five slots whose focus border keys on it,
|
|
473
|
+
* and `:focus-within` only for `combobox-chips`, which really does use
|
|
474
|
+
* `focus-within:border-ring`. `input-group` keys on a `:has()` of the first,
|
|
475
|
+
* so it needs the `:has(:focus-visible)` spelling.
|
|
476
|
+
*
|
|
477
|
+
* Invalid and disabled are excluded in both the direct and the `:has()` form,
|
|
478
|
+
* because half these slots are wrappers carrying the state on a descendant.
|
|
479
|
+
* ──────────────────────────────────────────────────────────────────────── */
|
|
480
|
+
|
|
481
|
+
:is(
|
|
482
|
+
[data-slot="input"],
|
|
483
|
+
[data-slot="textarea"],
|
|
484
|
+
[data-slot="select-trigger"],
|
|
485
|
+
[data-slot="input-group"],
|
|
486
|
+
[data-slot="combobox-trigger"],
|
|
487
|
+
[data-slot="date-trigger"]
|
|
488
|
+
):hover:not(
|
|
489
|
+
:disabled,
|
|
490
|
+
:focus-visible,
|
|
491
|
+
:has(:focus-visible),
|
|
492
|
+
[aria-invalid="true"],
|
|
493
|
+
[data-disabled],
|
|
494
|
+
:has(:disabled),
|
|
495
|
+
:has([aria-invalid="true"])
|
|
496
|
+
) {
|
|
497
|
+
border-color: var(--input-hover);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/* The one that genuinely takes `focus-within:border-ring`. */
|
|
501
|
+
[data-slot="combobox-chips"]:hover:not(
|
|
502
|
+
:focus-within,
|
|
503
|
+
[aria-invalid="true"],
|
|
504
|
+
[data-disabled],
|
|
505
|
+
:has(:disabled),
|
|
506
|
+
:has([aria-invalid="true"])
|
|
507
|
+
) {
|
|
508
|
+
border-color: var(--input-hover);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/*
|
|
512
|
+
* The checkbox takes the same hover border, on its UNCHECKED state only.
|
|
513
|
+
*
|
|
514
|
+
* Checked, the box is filled `--primary` and carries a `--primary` border to
|
|
515
|
+
* match, so mixing `--foreground` into that would either vanish - in dark,
|
|
516
|
+
* where `--primary` is already near-white - or lay a dark smudge along the
|
|
517
|
+
* edge of a filled box in light. The border is the affordance only while the
|
|
518
|
+
* box is empty, which is exactly the state the other slots are always in.
|
|
519
|
+
*
|
|
520
|
+
* Base UI renders a native `disabled` here AND mirrors it as `[data-disabled]`,
|
|
521
|
+
* so both spellings are excluded, the way the shared rule above does it. There
|
|
522
|
+
* is no `:has()` form to match: this slot is the control itself rather than a
|
|
523
|
+
* wrapper carrying its state on a descendant.
|
|
524
|
+
*/
|
|
525
|
+
[data-slot="checkbox"]:hover:not(
|
|
526
|
+
:disabled,
|
|
527
|
+
:focus-visible,
|
|
528
|
+
[data-checked],
|
|
529
|
+
[data-disabled],
|
|
530
|
+
[aria-invalid="true"]
|
|
531
|
+
) {
|
|
532
|
+
border-color: var(--input-hover);
|
|
533
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface AdminWorkflowsExecutionSheetProps {
|
|
2
|
-
executionId: string | null;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Detail sheet for one workflow execution: status, admin actions gated by
|
|
7
|
-
* the server-computed `can`, and the step timeline with per-step attempts,
|
|
8
|
-
* durations, errors and results.
|
|
9
|
-
*/
|
|
10
|
-
export declare const AdminWorkflowsExecutionSheet: (props: AdminWorkflowsExecutionSheetProps) => import("react").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=admin-workflows-execution-sheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admin-workflows-execution-sheet.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-workflows-execution-sheet.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,iCAAiC;IAChD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,UAChC,iCAAiC,gCAgMzC,CAAC"}
|