@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
|
@@ -10,11 +10,15 @@ import { describe, expect, it } from "vitest";
|
|
|
10
10
|
import { ControlSelect } from "../control-select.tsx";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Base UI's single-select `Combobox` re-selects on every item press
|
|
14
|
-
* emits `null`
|
|
15
|
-
* a value was picked. The native-`Select` render path
|
|
16
|
-
*
|
|
13
|
+
* Base UI's single-select `Combobox` re-selects on every item press - it never
|
|
14
|
+
* emits `null` - so a searchable select had no way back to the empty state once
|
|
15
|
+
* a value was picked. The native-`Select` render path could, through the clear
|
|
16
|
+
* ROW it injected, which made the gap invisible until a field crossed the
|
|
17
17
|
* option count that switches it to the combobox.
|
|
18
|
+
*
|
|
19
|
+
* ⚠️ That row is gone (feedback #2098), so pressing the selected item again
|
|
20
|
+
* is no longer one of two ways back to empty - it is the only one, on both
|
|
21
|
+
* paths. These cases are what that now rests on.
|
|
18
22
|
*/
|
|
19
23
|
describe("ControlSelect combobox deselection", () => {
|
|
20
24
|
const mount = (alepha: Alepha, ui: ReactNode) =>
|
|
@@ -74,21 +78,38 @@ describe("ControlSelect combobox deselection", () => {
|
|
|
74
78
|
fireEvent.keyDown(ui.getByRole("combobox"), { key: "ArrowDown" });
|
|
75
79
|
};
|
|
76
80
|
|
|
77
|
-
|
|
81
|
+
/**
|
|
82
|
+
* ⚠️ This case used to click an "All zones" ROW to get back to empty, and
|
|
83
|
+
* the reversal is deliberate rather than drift.
|
|
84
|
+
*
|
|
85
|
+
* `clearLabel` names the empty state, and the empty state is what the
|
|
86
|
+
* trigger already shows when nothing is picked. Repeating it as a pickable
|
|
87
|
+
* option with a check mark made "All zones" read as a third zone rather
|
|
88
|
+
* than as the absence of a filter, so the list is now the options and
|
|
89
|
+
* nothing else. The way back is the same gesture on both render paths:
|
|
90
|
+
* press the chosen row again.
|
|
91
|
+
*/
|
|
92
|
+
it("goes back to 'All …' by re-pressing, with no clear row to press", async () => {
|
|
78
93
|
const alepha = await start();
|
|
79
94
|
const ui = mount(alepha, <Probe clearable clearLabel="All zones" />);
|
|
80
95
|
|
|
81
96
|
openPopup(ui);
|
|
97
|
+
const rows = await ui.findAllByRole("option");
|
|
98
|
+
expect(rows.map((r) => r.textContent)).toEqual(["docs", "react"]);
|
|
99
|
+
|
|
82
100
|
fireEvent.click(await ui.findByRole("option", { name: "docs" }));
|
|
83
101
|
await waitFor(() => {
|
|
84
102
|
expect(ui.getByTestId("value").textContent).toBe("docs");
|
|
85
103
|
});
|
|
86
104
|
|
|
87
105
|
openPopup(ui);
|
|
88
|
-
fireEvent.click(await ui.findByRole("option", { name: "
|
|
106
|
+
fireEvent.click(await ui.findByRole("option", { name: "docs" }));
|
|
89
107
|
await waitFor(() => {
|
|
90
108
|
expect(ui.getByTestId("value").textContent).toBe("∅");
|
|
91
109
|
});
|
|
110
|
+
// And the label it goes back to is on the trigger, which is the one
|
|
111
|
+
// place it appears now.
|
|
112
|
+
expect(ui.getByRole("combobox").textContent).toContain("All zones");
|
|
92
113
|
});
|
|
93
114
|
|
|
94
115
|
it("clears an optional field when the selected row is pressed again", async () => {
|
|
@@ -66,6 +66,41 @@ describe("ControlSelect multi", () => {
|
|
|
66
66
|
);
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* The server-mode half: a real async loader, above the threshold, so the
|
|
71
|
+
* component is in long mode and its list is whatever the last query
|
|
72
|
+
* returned.
|
|
73
|
+
*
|
|
74
|
+
* The loader answers a query with its matches and an EMPTY query with a
|
|
75
|
+
* first page - which is what an autocomplete does, and what makes a value
|
|
76
|
+
* found by searching disappear from the list the moment the query is
|
|
77
|
+
* cleared.
|
|
78
|
+
*/
|
|
79
|
+
const ServerProbe = () => {
|
|
80
|
+
const form = useForm({
|
|
81
|
+
schema: z.object({ status: z.array(z.text()).optional() as never }),
|
|
82
|
+
handler: () => {},
|
|
83
|
+
});
|
|
84
|
+
return (
|
|
85
|
+
<>
|
|
86
|
+
<ControlSelect
|
|
87
|
+
input={form.input.status}
|
|
88
|
+
label="Status"
|
|
89
|
+
clearable
|
|
90
|
+
clearLabel="All status"
|
|
91
|
+
loaderThreshold={0}
|
|
92
|
+
loaderDebounce={0}
|
|
93
|
+
loader={async (q: string) =>
|
|
94
|
+
q
|
|
95
|
+
? ["alpha", "beta", "gamma", "delta"].filter((i) => i.includes(q))
|
|
96
|
+
: ["alpha", "beta"]
|
|
97
|
+
}
|
|
98
|
+
/>
|
|
99
|
+
<Reporter input={form.input.status} />
|
|
100
|
+
</>
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
|
|
69
104
|
const Reporter = (props: { input: BaseInputField }) => {
|
|
70
105
|
const [value] = useFieldValue(props.input);
|
|
71
106
|
return (
|
|
@@ -75,7 +110,16 @@ describe("ControlSelect multi", () => {
|
|
|
75
110
|
);
|
|
76
111
|
};
|
|
77
112
|
|
|
78
|
-
|
|
113
|
+
/**
|
|
114
|
+
* ⚠️ The BUTTON, picked out of the two elements carrying `role="combobox"`.
|
|
115
|
+
*
|
|
116
|
+
* The popup's search field is the other one, so a bare `getByRole` throws
|
|
117
|
+
* "found multiple elements" for any case that reads the trigger while an
|
|
118
|
+
* open popup has a search field - which is every list with
|
|
119
|
+
* `createNewEntry`, a server loader, or more rows than the threshold.
|
|
120
|
+
*/
|
|
121
|
+
const trigger = (ui: ReturnType<typeof render>) =>
|
|
122
|
+
ui.getAllByRole("combobox").find((el) => el.tagName === "BUTTON")!;
|
|
79
123
|
const openPopup = (ui: ReturnType<typeof render>) =>
|
|
80
124
|
fireEvent.keyDown(trigger(ui), { key: "ArrowDown" });
|
|
81
125
|
|
|
@@ -193,4 +237,163 @@ describe("ControlSelect multi", () => {
|
|
|
193
237
|
});
|
|
194
238
|
expect(trigger(ui).textContent).toContain("All status");
|
|
195
239
|
});
|
|
240
|
+
/*
|
|
241
|
+
Feedback #2115: on the showcase's `Tags (multi + create)` field, selecting
|
|
242
|
+
A and B then creating C left the trigger reading "3 selected" while the
|
|
243
|
+
popup listed four options with two check marks. C was selected, counted,
|
|
244
|
+
and invisible - so it could not be deselected from the list it was
|
|
245
|
+
missing from.
|
|
246
|
+
|
|
247
|
+
The component built its list strictly from `props.data`, so a selected
|
|
248
|
+
value that is not in `data` had no row. It was already half-aware of
|
|
249
|
+
this: `labelCache` exists for exactly these values and its own comment
|
|
250
|
+
names both ways in - a freshly created entry, and one a server-filtered
|
|
251
|
+
`data` set has dropped. The LABEL problem was solved and the LIST problem
|
|
252
|
+
was not.
|
|
253
|
+
|
|
254
|
+
⚠️ The caller cannot fix this one. The showcase declares its items as a
|
|
255
|
+
static literal inside a zod `.meta({ $control })`, with no caller state to
|
|
256
|
+
append to, and `useForm` anchors its schema at mount anyway - which is the
|
|
257
|
+
normal declarative way controls are written here. `createNewEntry` was
|
|
258
|
+
broken by construction for every such caller.
|
|
259
|
+
*/
|
|
260
|
+
describe("a selected value with no option to be selected from", () => {
|
|
261
|
+
const selectedRows = (ui: ReturnType<typeof render>) =>
|
|
262
|
+
ui.getAllByRole("option").filter((o) => o.ariaSelected === "true");
|
|
263
|
+
|
|
264
|
+
const type = (ui: ReturnType<typeof render>, text: string) =>
|
|
265
|
+
fireEvent.change(ui.getByPlaceholderText("Search…"), {
|
|
266
|
+
target: { value: text },
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
it("gives a created value a row, and the check marks match the count", async () => {
|
|
270
|
+
const alepha = await start();
|
|
271
|
+
const ui = mount(alepha, <Probe createNewEntry />);
|
|
272
|
+
|
|
273
|
+
openPopup(ui);
|
|
274
|
+
fireEvent.click(await ui.findByRole("option", { name: /In progress/ }));
|
|
275
|
+
openPopup(ui);
|
|
276
|
+
fireEvent.click(await ui.findByRole("option", { name: /Completed/ }));
|
|
277
|
+
|
|
278
|
+
openPopup(ui);
|
|
279
|
+
type(ui, "urgent");
|
|
280
|
+
fireEvent.click(await ui.findByRole("option", { name: /urgent/ }));
|
|
281
|
+
await waitFor(() => {
|
|
282
|
+
expect(ui.getByTestId("value").textContent).toBe(
|
|
283
|
+
"accepted,completed,urgent",
|
|
284
|
+
);
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
// The report, exactly: the trigger says three and the list has to agree.
|
|
288
|
+
expect(trigger(ui).textContent).toContain("3 selected");
|
|
289
|
+
openPopup(ui);
|
|
290
|
+
await waitFor(() => {
|
|
291
|
+
expect(selectedRows(ui)).toHaveLength(3);
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
it("lets a created value be deselected from the list it now appears in", async () => {
|
|
296
|
+
const alepha = await start();
|
|
297
|
+
const ui = mount(alepha, <Probe createNewEntry />);
|
|
298
|
+
|
|
299
|
+
openPopup(ui);
|
|
300
|
+
type(ui, "urgent");
|
|
301
|
+
fireEvent.click(await ui.findByRole("option", { name: /urgent/ }));
|
|
302
|
+
await waitFor(() => {
|
|
303
|
+
expect(ui.getByTestId("value").textContent).toBe("urgent");
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
openPopup(ui);
|
|
307
|
+
// With the query cleared, the created value is a row like any other.
|
|
308
|
+
fireEvent.click(await ui.findByRole("option", { name: "urgent" }));
|
|
309
|
+
await waitFor(() => {
|
|
310
|
+
expect(ui.getByTestId("value").textContent).toBe("∅");
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* The bonus the injection point buys: `showCreate`'s guard reads
|
|
316
|
+
* `options`, so putting the orphans there rather than in `filtered` stops
|
|
317
|
+
* a second Create row being offered for a value that already exists.
|
|
318
|
+
*/
|
|
319
|
+
it("stops offering Create for a value it has already created", async () => {
|
|
320
|
+
const alepha = await start();
|
|
321
|
+
const ui = mount(alepha, <Probe createNewEntry />);
|
|
322
|
+
|
|
323
|
+
openPopup(ui);
|
|
324
|
+
type(ui, "urgent");
|
|
325
|
+
fireEvent.click(await ui.findByRole("option", { name: /urgent/ }));
|
|
326
|
+
await waitFor(() => {
|
|
327
|
+
expect(ui.getByTestId("value").textContent).toBe("urgent");
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
openPopup(ui);
|
|
331
|
+
type(ui, "urgent");
|
|
332
|
+
await waitFor(() => {
|
|
333
|
+
expect(ui.getAllByRole("option", { name: /urgent/ })).toHaveLength(1);
|
|
334
|
+
});
|
|
335
|
+
// One row, and it is the real value rather than an offer to make it
|
|
336
|
+
// again.
|
|
337
|
+
expect(selectedRows(ui)).toHaveLength(1);
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* ⚠️ The DECISION, pinned so it stays one: an orphan is filtered by the
|
|
342
|
+
* typed query like every other row. A search that kept showing rows it
|
|
343
|
+
* did not match would stop being a search.
|
|
344
|
+
*/
|
|
345
|
+
it("hides a created value under a query that does not match it", async () => {
|
|
346
|
+
const alepha = await start();
|
|
347
|
+
const ui = mount(alepha, <Probe createNewEntry />);
|
|
348
|
+
|
|
349
|
+
openPopup(ui);
|
|
350
|
+
type(ui, "urgent");
|
|
351
|
+
fireEvent.click(await ui.findByRole("option", { name: /urgent/ }));
|
|
352
|
+
await waitFor(() => {
|
|
353
|
+
expect(ui.getByTestId("value").textContent).toBe("urgent");
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
openPopup(ui);
|
|
357
|
+
type(ui, "prog");
|
|
358
|
+
await waitFor(() => {
|
|
359
|
+
expect(ui.queryByRole("option", { name: "urgent" })).toBeNull();
|
|
360
|
+
});
|
|
361
|
+
expect(ui.getByRole("option", { name: /In progress/ })).not.toBeNull();
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* The second door, and the one `labelCache`'s comment already named: a
|
|
366
|
+
* server-filtered list drops the picked value, so its row goes while the
|
|
367
|
+
* trigger keeps counting it. Driven through a real async loader in long
|
|
368
|
+
* mode rather than by shrinking a static array, because the disappearance
|
|
369
|
+
* has to come from the same place it does in production.
|
|
370
|
+
*/
|
|
371
|
+
it("gives a server-dropped value a row once the query is cleared", async () => {
|
|
372
|
+
const alepha = await start();
|
|
373
|
+
const ui = mount(alepha, <ServerProbe />);
|
|
374
|
+
|
|
375
|
+
openPopup(ui);
|
|
376
|
+
await ui.findByRole("option", { name: "alpha" });
|
|
377
|
+
type(ui, "gamma");
|
|
378
|
+
fireEvent.click(await ui.findByRole("option", { name: "gamma" }));
|
|
379
|
+
await waitFor(() => {
|
|
380
|
+
expect(ui.getByTestId("value").textContent).toBe("gamma");
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
// Back to the first page, which does not contain gamma. Before the fix
|
|
384
|
+
// the trigger said "gamma" and the list showed alpha and beta only.
|
|
385
|
+
openPopup(ui);
|
|
386
|
+
type(ui, "");
|
|
387
|
+
await waitFor(() => {
|
|
388
|
+
expect(ui.getByRole("option", { name: "alpha" })).not.toBeNull();
|
|
389
|
+
});
|
|
390
|
+
expect(ui.getByRole("option", { name: "gamma" })).not.toBeNull();
|
|
391
|
+
expect(selectedRows(ui)).toHaveLength(1);
|
|
392
|
+
|
|
393
|
+
fireEvent.click(ui.getByRole("option", { name: "gamma" }));
|
|
394
|
+
await waitFor(() => {
|
|
395
|
+
expect(ui.getByTestId("value").textContent).toBe("∅");
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
});
|
|
196
399
|
});
|
package/src/components/control-select/__tests__/control-select-size-minimal.browser.spec.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { render } from "@testing-library/react";
|
|
1
|
+
import { cleanup, render } from "@testing-library/react";
|
|
2
2
|
import { Alepha, z } from "alepha";
|
|
3
3
|
import { AlephaLogger } from "alepha/logger";
|
|
4
4
|
import { AlephaContext } from "alepha/react";
|
|
@@ -37,9 +37,15 @@ describe("Control size and minimal on a select", () => {
|
|
|
37
37
|
const Probe = (props: {
|
|
38
38
|
size?: "xs" | "sm" | "default";
|
|
39
39
|
minimal?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* `clearable` plus a chosen value, which is what `showClear` needs: the
|
|
42
|
+
* button does not exist on an empty control.
|
|
43
|
+
*/
|
|
44
|
+
clearable?: boolean;
|
|
40
45
|
}) => {
|
|
41
46
|
const form = useForm({
|
|
42
47
|
schema: z.object({ tag: z.text().optional() as never }),
|
|
48
|
+
initialValues: props.clearable ? ({ tag: "one" } as never) : undefined,
|
|
43
49
|
handler: () => {},
|
|
44
50
|
});
|
|
45
51
|
return (
|
|
@@ -50,6 +56,7 @@ describe("Control size and minimal on a select", () => {
|
|
|
50
56
|
items={["one", "two", "three"]}
|
|
51
57
|
size={props.size}
|
|
52
58
|
minimal={props.minimal}
|
|
59
|
+
clearable={props.clearable}
|
|
53
60
|
/>
|
|
54
61
|
);
|
|
55
62
|
};
|
|
@@ -57,6 +64,9 @@ describe("Control size and minimal on a select", () => {
|
|
|
57
64
|
const triggerOf = (ui: ReturnType<typeof render>) =>
|
|
58
65
|
ui.getByRole("combobox", { name: "Pick a tag" });
|
|
59
66
|
|
|
67
|
+
const clearOf = (ui: ReturnType<typeof render>) =>
|
|
68
|
+
ui.getByRole("button", { name: "Clear selection" });
|
|
69
|
+
|
|
60
70
|
it("is default height with neither prop", async () => {
|
|
61
71
|
const alepha = await start();
|
|
62
72
|
const trigger = triggerOf(mount(alepha, <Probe />));
|
|
@@ -116,4 +126,70 @@ describe("Control size and minimal on a select", () => {
|
|
|
116
126
|
|
|
117
127
|
expect(trigger.className).toContain("[&>svg]:size-3");
|
|
118
128
|
});
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Feedback #2113: the clear `x` was positioned with `right-8`, which is the
|
|
132
|
+
* DEFAULT size's right padding plus its chevron. At `sm` and `xs` both
|
|
133
|
+
* shrink, so the chevron moved left while the `x` stayed 32px from the edge
|
|
134
|
+
* and landed on the value.
|
|
135
|
+
*
|
|
136
|
+
* These are class assertions rather than measurements on purpose: jsdom
|
|
137
|
+
* computes no geometry, so what can be pinned here is that the offset comes
|
|
138
|
+
* from the size TABLE and not from a constant. Whether 20px is the right
|
|
139
|
+
* number at `xs` is a question for a browser, and the quest answered it
|
|
140
|
+
* there.
|
|
141
|
+
*/
|
|
142
|
+
describe("the clear button's placement", () => {
|
|
143
|
+
it("takes its offset from the size, not from a constant", async () => {
|
|
144
|
+
const alepha = await start();
|
|
145
|
+
// One mount at a time: `mount` renders into the shared container, so
|
|
146
|
+
// two live probes put two "Clear selection" buttons in the document
|
|
147
|
+
// and the query matches both.
|
|
148
|
+
const offsetAt = (ui: ReturnType<typeof render>) => {
|
|
149
|
+
const found = clearOf(ui).className;
|
|
150
|
+
cleanup();
|
|
151
|
+
return found;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
expect(offsetAt(mount(alepha, <Probe clearable />))).toContain("right-8");
|
|
155
|
+
expect(offsetAt(mount(alepha, <Probe size="sm" clearable />))).toContain(
|
|
156
|
+
"right-7",
|
|
157
|
+
);
|
|
158
|
+
expect(offsetAt(mount(alepha, <Probe size="xs" clearable />))).toContain(
|
|
159
|
+
"right-5",
|
|
160
|
+
);
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
it("follows the trigger's negative margin under minimal", async () => {
|
|
164
|
+
const alepha = await start();
|
|
165
|
+
// `MINIMAL_CLASSES` carries `-mx-1`, so the trigger's right edge - and
|
|
166
|
+
// its chevron - sit 4px past the wrapper this button is positioned
|
|
167
|
+
// against. Without the shift the button drifts left of where it
|
|
168
|
+
// belongs, which is the same bug one variant down.
|
|
169
|
+
const shifted = clearOf(
|
|
170
|
+
mount(alepha, <Probe size="xs" minimal clearable />),
|
|
171
|
+
).className;
|
|
172
|
+
cleanup();
|
|
173
|
+
|
|
174
|
+
expect(shifted).toContain("translate-x-1");
|
|
175
|
+
expect(
|
|
176
|
+
clearOf(mount(alepha, <Probe size="xs" clearable />)).className,
|
|
177
|
+
).not.toContain("translate-x-1");
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
it("reads lighter than the chevron at rest, and sharpens when reached for", async () => {
|
|
181
|
+
const alepha = await start();
|
|
182
|
+
const clear = clearOf(mount(alepha, <Probe clearable />));
|
|
183
|
+
|
|
184
|
+
// Not peers: the chevron is decoration, this is the only element with
|
|
185
|
+
// its own action. Alpha on the TEXT colour rather than `opacity`, which
|
|
186
|
+
// would fade the focus ring with it.
|
|
187
|
+
expect(clear.className).toContain("text-muted-foreground/60");
|
|
188
|
+
expect(clear.className).toContain("hover:text-foreground");
|
|
189
|
+
expect(clear.className).toContain("focus-visible:text-foreground");
|
|
190
|
+
// Visible at rest: no hover reveal. There is no hover on touch, and it
|
|
191
|
+
// is the only discoverable way to clear.
|
|
192
|
+
expect(clear.className).not.toContain("opacity-0");
|
|
193
|
+
});
|
|
194
|
+
});
|
|
119
195
|
});
|