@alepha/ui 0.25.2 → 0.27.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/LICENSE +21 -0
- package/README.md +210 -2
- package/dist/components/account/account-connections.d.ts +16 -0
- package/dist/components/account/account-connections.d.ts.map +1 -0
- package/dist/components/account/account-connections.js +76 -0
- package/dist/components/account/account-connections.js.map +1 -0
- package/dist/components/account/account-delete-dialog.d.ts +44 -0
- package/dist/components/account/account-delete-dialog.d.ts.map +1 -0
- package/dist/components/account/account-delete-dialog.js +126 -0
- package/dist/components/account/account-delete-dialog.js.map +1 -0
- package/dist/components/account/account-header.d.ts +33 -0
- package/dist/components/account/account-header.d.ts.map +1 -0
- package/dist/components/account/account-header.js +43 -0
- package/dist/components/account/account-header.js.map +1 -0
- package/dist/components/account/account-keys.d.ts +23 -0
- package/dist/components/account/account-keys.d.ts.map +1 -0
- package/dist/components/account/account-keys.js +168 -0
- package/dist/components/account/account-keys.js.map +1 -0
- package/dist/components/account/account-layout.d.ts +32 -0
- package/dist/components/account/account-layout.d.ts.map +1 -0
- package/dist/components/account/account-layout.js +56 -0
- package/dist/components/account/account-layout.js.map +1 -0
- package/dist/components/account/account-password-dialog.d.ts +31 -0
- package/dist/components/account/account-password-dialog.d.ts.map +1 -0
- package/dist/components/account/account-password-dialog.js +120 -0
- package/dist/components/account/account-password-dialog.js.map +1 -0
- package/dist/components/account/account-profile.d.ts +27 -0
- package/dist/components/account/account-profile.d.ts.map +1 -0
- package/dist/components/account/account-profile.js +217 -0
- package/dist/components/account/account-profile.js.map +1 -0
- package/dist/components/account/account-router-options.d.ts +77 -0
- package/dist/components/account/account-router-options.d.ts.map +1 -0
- package/dist/components/account/account-router-options.js +22 -0
- package/dist/components/account/account-router-options.js.map +1 -0
- package/dist/components/account/account-router-page.d.ts +49 -0
- package/dist/components/account/account-router-page.d.ts.map +1 -0
- package/dist/components/account/account-router-page.js +61 -0
- package/dist/components/account/account-router-page.js.map +1 -0
- package/dist/components/account/account-router.d.ts +215 -0
- package/dist/components/account/account-router.d.ts.map +1 -0
- package/dist/components/account/account-router.js +217 -0
- package/dist/components/account/account-router.js.map +1 -0
- package/dist/components/account/account-security.d.ts +22 -0
- package/dist/components/account/account-security.d.ts.map +1 -0
- package/dist/components/account/account-security.js +107 -0
- package/dist/components/account/account-security.js.map +1 -0
- package/dist/components/account/account-sessions.d.ts +17 -0
- package/dist/components/account/account-sessions.d.ts.map +1 -0
- package/dist/components/account/account-sessions.js +121 -0
- package/dist/components/account/account-sessions.js.map +1 -0
- package/dist/components/action-error-toaster/action-error-toaster.d.ts +39 -0
- package/dist/components/action-error-toaster/action-error-toaster.d.ts.map +1 -0
- package/dist/components/action-error-toaster/action-error-toaster.js +40 -0
- package/dist/components/action-error-toaster/action-error-toaster.js.map +1 -0
- package/dist/components/admin/admin-analytics-query-panel.d.ts +16 -0
- package/dist/components/admin/admin-analytics-query-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics-query-panel.js +117 -0
- package/dist/components/admin/admin-analytics-query-panel.js.map +1 -0
- package/dist/components/admin/admin-analytics-results.d.ts +15 -0
- package/dist/components/admin/admin-analytics-results.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics-results.js +56 -0
- package/dist/components/admin/admin-analytics-results.js.map +1 -0
- package/dist/components/admin/admin-analytics.d.ts +9 -0
- package/dist/components/admin/admin-analytics.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics.js +66 -0
- package/dist/components/admin/admin-analytics.js.map +1 -0
- package/dist/components/admin/admin-audits.d.ts +4 -0
- package/dist/components/admin/admin-audits.d.ts.map +1 -0
- package/dist/components/admin/admin-audits.js +173 -0
- package/dist/components/admin/admin-audits.js.map +1 -0
- package/dist/components/admin/admin-dashboard-card.d.ts +42 -0
- package/dist/components/admin/admin-dashboard-card.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard-card.js +0 -0
- package/dist/components/admin/admin-dashboard-count-card.d.ts +34 -0
- package/dist/components/admin/admin-dashboard-count-card.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard-count-card.js +42 -0
- package/dist/components/admin/admin-dashboard-count-card.js.map +1 -0
- package/dist/components/admin/admin-dashboard.d.ts +20 -0
- package/dist/components/admin/admin-dashboard.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard.js +32 -0
- package/dist/components/admin/admin-dashboard.js.map +1 -0
- package/dist/components/admin/admin-files.d.ts +4 -0
- package/dist/components/admin/admin-files.d.ts.map +1 -0
- package/dist/components/admin/admin-files.js +237 -0
- package/dist/components/admin/admin-files.js.map +1 -0
- package/dist/components/admin/admin-jobs-executions-panel.d.ts +11 -0
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-executions-panel.js +185 -0
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -0
- package/dist/components/admin/admin-jobs-status-badge.d.ts +9 -0
- package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-status-badge.js +26 -0
- package/dist/components/admin/admin-jobs-status-badge.js.map +1 -0
- package/dist/components/admin/admin-jobs.d.ts +4 -0
- package/dist/components/admin/admin-jobs.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs.js +248 -0
- package/dist/components/admin/admin-jobs.js.map +1 -0
- package/dist/components/admin/admin-keys-token-dialog.d.ts +15 -0
- package/dist/components/admin/admin-keys-token-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-keys-token-dialog.js +66 -0
- package/dist/components/admin/admin-keys-token-dialog.js.map +1 -0
- package/dist/components/admin/admin-keys.d.ts +4 -0
- package/dist/components/admin/admin-keys.d.ts.map +1 -0
- package/dist/components/admin/admin-keys.js +161 -0
- package/dist/components/admin/admin-keys.js.map +1 -0
- package/dist/components/admin/admin-layout.d.ts +33 -0
- package/dist/components/admin/admin-layout.d.ts.map +1 -0
- package/dist/components/admin/admin-layout.js +99 -0
- package/dist/components/admin/admin-layout.js.map +1 -0
- package/dist/components/admin/admin-notifications.d.ts +4 -0
- package/dist/components/admin/admin-notifications.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications.js +99 -0
- package/dist/components/admin/admin-notifications.js.map +1 -0
- package/dist/components/admin/admin-page.d.ts +16 -0
- package/dist/components/admin/admin-page.d.ts.map +1 -0
- package/dist/components/admin/admin-page.js +15 -0
- package/dist/components/admin/admin-page.js.map +1 -0
- package/dist/components/admin/admin-parameters.d.ts +26 -0
- package/dist/components/admin/admin-parameters.d.ts.map +1 -0
- package/dist/components/admin/admin-parameters.js +560 -0
- package/dist/components/admin/admin-parameters.js.map +1 -0
- package/dist/components/admin/admin-payments.d.ts +4 -0
- package/dist/components/admin/admin-payments.d.ts.map +1 -0
- package/dist/components/admin/admin-payments.js +72 -0
- package/dist/components/admin/admin-payments.js.map +1 -0
- package/dist/components/admin/admin-router-options.d.ts +138 -0
- package/dist/components/admin/admin-router-options.d.ts.map +1 -0
- package/dist/components/admin/admin-router-options.js +29 -0
- package/dist/components/admin/admin-router-options.js.map +1 -0
- package/dist/components/admin/admin-router-page.d.ts +56 -0
- package/dist/components/admin/admin-router-page.d.ts.map +1 -0
- package/dist/components/admin/admin-router-page.js +68 -0
- package/dist/components/admin/admin-router-page.js.map +1 -0
- package/dist/components/admin/admin-router.d.ts +214 -0
- package/dist/components/admin/admin-router.d.ts.map +1 -0
- package/dist/components/admin/admin-router.js +409 -0
- package/dist/components/admin/admin-router.js.map +1 -0
- package/dist/components/admin/admin-sessions.d.ts +4 -0
- package/dist/components/admin/admin-sessions.d.ts.map +1 -0
- package/dist/components/admin/admin-sessions.js +132 -0
- package/dist/components/admin/admin-sessions.js.map +1 -0
- package/dist/components/admin/admin-user-cell.d.ts +37 -0
- package/dist/components/admin/admin-user-cell.d.ts.map +1 -0
- package/dist/components/admin/admin-user-cell.js +35 -0
- package/dist/components/admin/admin-user-cell.js.map +1 -0
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-audits-tab.js +55 -0
- package/dist/components/admin/admin-user-detail-audits-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-identity-aside.js +106 -0
- package/dist/components/admin/admin-user-detail-identity-aside.js.map +1 -0
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts +26 -0
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-overview-tab.js +60 -0
- package/dist/components/admin/admin-user-detail-overview-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-password-dialog.js +47 -0
- package/dist/components/admin/admin-user-detail-password-dialog.js.map +1 -0
- package/dist/components/admin/admin-user-detail-password-schema.d.ts +10 -0
- package/dist/components/admin/admin-user-detail-password-schema.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-password-schema.js +13 -0
- package/dist/components/admin/admin-user-detail-password-schema.js.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts +56 -0
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-policy.js +73 -0
- package/dist/components/admin/admin-user-detail-profile-policy.js.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-schema.d.ts +18 -0
- package/dist/components/admin/admin-user-detail-profile-schema.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-schema.js +21 -0
- package/dist/components/admin/admin-user-detail-profile-schema.js.map +1 -0
- package/dist/components/admin/admin-user-detail-security-tab.d.ts +20 -0
- package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-security-tab.js +70 -0
- package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts +25 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.js +64 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail.d.ts +39 -0
- package/dist/components/admin/admin-user-detail.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail.js +343 -0
- package/dist/components/admin/admin-user-detail.js.map +1 -0
- package/dist/components/admin/admin-users-roles-picker.d.ts +28 -0
- package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -0
- package/dist/components/admin/admin-users-roles-picker.js +80 -0
- package/dist/components/admin/admin-users-roles-picker.js.map +1 -0
- package/dist/components/admin/admin-users-status-filter.d.ts +13 -0
- package/dist/components/admin/admin-users-status-filter.d.ts.map +1 -0
- package/dist/components/admin/admin-users-status-filter.js +41 -0
- package/dist/components/admin/admin-users-status-filter.js.map +1 -0
- package/dist/components/admin/admin-users.d.ts +16 -0
- package/dist/components/admin/admin-users.d.ts.map +1 -0
- package/dist/components/admin/admin-users.js +322 -0
- package/dist/components/admin/admin-users.js.map +1 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts +11 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-execution-sheet.js +190 -0
- package/dist/components/admin/admin-workflows-execution-sheet.js.map +1 -0
- package/dist/components/admin/admin-workflows-executions-panel.d.ts +9 -0
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-executions-panel.js +129 -0
- package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -0
- package/dist/components/admin/admin-workflows-status-badge.d.ts +12 -0
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-status-badge.js +30 -0
- package/dist/components/admin/admin-workflows-status-badge.js.map +1 -0
- package/dist/components/admin/admin-workflows.d.ts +4 -0
- package/dist/components/admin/admin-workflows.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows.js +145 -0
- package/dist/components/admin/admin-workflows.js.map +1 -0
- package/dist/components/admin/diff-lines.d.ts +13 -0
- package/dist/components/admin/diff-lines.d.ts.map +1 -0
- package/dist/components/admin/diff-lines.js +57 -0
- package/dist/components/admin/diff-lines.js.map +1 -0
- package/dist/components/admin/parameter-diff-dialog.d.ts +36 -0
- package/dist/components/admin/parameter-diff-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-diff-dialog.js +58 -0
- package/dist/components/admin/parameter-diff-dialog.js.map +1 -0
- package/dist/components/admin/parameter-history-item.d.ts +17 -0
- package/dist/components/admin/parameter-history-item.d.ts.map +1 -0
- package/dist/components/admin/parameter-history-item.js +177 -0
- package/dist/components/admin/parameter-history-item.js.map +1 -0
- package/dist/components/admin/parameter-json-dialog.d.ts +13 -0
- package/dist/components/admin/parameter-json-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-json-dialog.js +63 -0
- package/dist/components/admin/parameter-json-dialog.js.map +1 -0
- package/dist/components/admin/parameter-save-dialog.d.ts +26 -0
- package/dist/components/admin/parameter-save-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-save-dialog.js +74 -0
- package/dist/components/admin/parameter-save-dialog.js.map +1 -0
- package/dist/components/admin/use-confirmed-action.d.ts +53 -0
- package/dist/components/admin/use-confirmed-action.d.ts.map +1 -0
- package/dist/components/admin/use-confirmed-action.js +50 -0
- package/dist/components/admin/use-confirmed-action.js.map +1 -0
- package/dist/components/alepha-table/alepha-table.d.ts +313 -0
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -0
- package/dist/components/alepha-table/alepha-table.js +667 -0
- package/dist/components/alepha-table/alepha-table.js.map +1 -0
- package/dist/components/alepha-table/paginate-local.d.ts +43 -0
- package/dist/components/alepha-table/paginate-local.d.ts.map +1 -0
- package/dist/components/alepha-table/paginate-local.js +84 -0
- package/dist/components/alepha-table/paginate-local.js.map +1 -0
- package/dist/components/alepha-table/use-table-selection.d.ts +34 -0
- package/dist/components/alepha-table/use-table-selection.d.ts.map +1 -0
- package/dist/components/alepha-table/use-table-selection.js +45 -0
- package/dist/components/alepha-table/use-table-selection.js.map +1 -0
- package/dist/components/app-actions/app-actions.d.ts +74 -0
- package/dist/components/app-actions/app-actions.d.ts.map +1 -0
- package/dist/components/app-actions/app-actions.js +77 -0
- package/dist/components/app-actions/app-actions.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +144 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/app-shell.js +283 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/auth/auth-login.d.ts +40 -0
- package/dist/components/auth/auth-login.d.ts.map +1 -0
- package/dist/components/auth/auth-login.js +226 -0
- package/dist/components/auth/auth-login.js.map +1 -0
- package/dist/components/auth/auth-register.d.ts +35 -0
- package/dist/components/auth/auth-register.d.ts.map +1 -0
- package/dist/components/auth/auth-register.js +477 -0
- package/dist/components/auth/auth-register.js.map +1 -0
- package/dist/components/auth/auth-reset-password.d.ts +21 -0
- package/dist/components/auth/auth-reset-password.d.ts.map +1 -0
- package/dist/components/auth/auth-reset-password.js +286 -0
- package/dist/components/auth/auth-reset-password.js.map +1 -0
- package/dist/components/auth/auth-router.d.ts +245 -0
- package/dist/components/auth/auth-router.d.ts.map +1 -0
- package/dist/components/auth/auth-router.js +117 -0
- package/dist/components/auth/auth-router.js.map +1 -0
- package/dist/components/auth/auth-verify-email.d.ts +19 -0
- package/dist/components/auth/auth-verify-email.d.ts.map +1 -0
- package/dist/components/auth/auth-verify-email.js +124 -0
- package/dist/components/auth/auth-verify-email.js.map +1 -0
- package/dist/components/auth/provider-labels.d.ts +9 -0
- package/dist/components/auth/provider-labels.d.ts.map +1 -0
- package/dist/components/auth/provider-labels.js +20 -0
- package/dist/components/auth/provider-labels.js.map +1 -0
- package/dist/components/auth/safe-redirect.d.ts +9 -0
- package/dist/components/auth/safe-redirect.d.ts.map +1 -0
- package/dist/components/auth/safe-redirect.js +19 -0
- package/dist/components/auth/safe-redirect.js.map +1 -0
- package/dist/components/auto-form/auto-form.d.ts +219 -0
- package/dist/components/auto-form/auto-form.d.ts.map +1 -0
- package/dist/components/auto-form/auto-form.js +412 -0
- package/dist/components/auto-form/auto-form.js.map +1 -0
- package/dist/components/brand-icon/brand-icon.d.ts +18 -0
- package/dist/components/brand-icon/brand-icon.d.ts.map +1 -0
- package/dist/components/brand-icon/brand-icon.js +84 -0
- package/dist/components/brand-icon/brand-icon.js.map +1 -0
- package/dist/components/button-dark/button-dark.d.ts +25 -0
- package/dist/components/button-dark/button-dark.d.ts.map +1 -0
- package/dist/components/button-dark/button-dark.js +44 -0
- package/dist/components/button-dark/button-dark.js.map +1 -0
- package/dist/components/button-language/button-language.d.ts +24 -0
- package/dist/components/button-language/button-language.d.ts.map +1 -0
- package/dist/components/button-language/button-language.js +50 -0
- package/dist/components/button-language/button-language.js.map +1 -0
- package/dist/components/button-theme/button-theme.d.ts +33 -0
- package/dist/components/button-theme/button-theme.d.ts.map +1 -0
- package/dist/components/button-theme/button-theme.js +90 -0
- package/dist/components/button-theme/button-theme.js.map +1 -0
- package/dist/components/button-user/button-user.d.ts +129 -0
- package/dist/components/button-user/button-user.d.ts.map +1 -0
- package/dist/components/button-user/button-user.js +147 -0
- package/dist/components/button-user/button-user.js.map +1 -0
- package/dist/components/captcha/turnstile-widget.d.ts +59 -0
- package/dist/components/captcha/turnstile-widget.d.ts.map +1 -0
- package/dist/components/captcha/turnstile-widget.js +98 -0
- package/dist/components/captcha/turnstile-widget.js.map +1 -0
- package/dist/components/control/control.d.ts +200 -0
- package/dist/components/control/control.d.ts.map +1 -0
- package/dist/components/control/control.js +297 -0
- package/dist/components/control/control.js.map +1 -0
- package/dist/components/control-array/control-array.d.ts +77 -0
- package/dist/components/control-array/control-array.d.ts.map +1 -0
- package/dist/components/control-array/control-array.js +451 -0
- package/dist/components/control-array/control-array.js.map +1 -0
- package/dist/components/control-base/field-i18n.d.ts +32 -0
- package/dist/components/control-base/field-i18n.d.ts.map +1 -0
- package/dist/components/control-base/field-i18n.js +29 -0
- package/dist/components/control-base/field-i18n.js.map +1 -0
- package/dist/components/control-base/form-field.d.ts +128 -0
- package/dist/components/control-base/form-field.d.ts.map +1 -0
- package/dist/components/control-base/form-field.js +208 -0
- package/dist/components/control-base/form-field.js.map +1 -0
- package/dist/components/control-base/grid.d.ts +18 -0
- package/dist/components/control-base/grid.d.ts.map +1 -0
- package/dist/components/control-base/grid.js +46 -0
- package/dist/components/control-base/grid.js.map +1 -0
- package/dist/components/control-base/icon-hint.d.ts +9 -0
- package/dist/components/control-base/icon-hint.d.ts.map +1 -0
- package/dist/components/control-base/icon-hint.js +35 -0
- package/dist/components/control-base/icon-hint.js.map +1 -0
- package/dist/components/control-date/control-date.d.ts +34 -0
- package/dist/components/control-date/control-date.d.ts.map +1 -0
- package/dist/components/control-date/control-date.js +127 -0
- package/dist/components/control-date/control-date.js.map +1 -0
- package/dist/components/control-number/control-number.d.ts +38 -0
- package/dist/components/control-number/control-number.d.ts.map +1 -0
- package/dist/components/control-number/control-number.js +77 -0
- package/dist/components/control-number/control-number.js.map +1 -0
- package/dist/components/control-object/control-object.d.ts +47 -0
- package/dist/components/control-object/control-object.d.ts.map +1 -0
- package/dist/components/control-object/control-object.js +110 -0
- package/dist/components/control-object/control-object.js.map +1 -0
- package/dist/components/control-password/control-password.d.ts +28 -0
- package/dist/components/control-password/control-password.d.ts.map +1 -0
- package/dist/components/control-password/control-password.js +64 -0
- package/dist/components/control-password/control-password.js.map +1 -0
- package/dist/components/control-select/control-select.d.ts +128 -0
- package/dist/components/control-select/control-select.d.ts.map +1 -0
- package/dist/components/control-select/control-select.js +363 -0
- package/dist/components/control-select/control-select.js.map +1 -0
- package/dist/components/control-upload/control-upload.d.ts +67 -0
- package/dist/components/control-upload/control-upload.d.ts.map +1 -0
- package/dist/components/control-upload/control-upload.js +294 -0
- package/dist/components/control-upload/control-upload.js.map +1 -0
- package/dist/components/detail/detail-aside.d.ts +58 -0
- package/dist/components/detail/detail-aside.d.ts.map +1 -0
- package/dist/components/detail/detail-aside.js +95 -0
- package/dist/components/detail/detail-aside.js.map +1 -0
- package/dist/components/detail/detail-layout.d.ts +90 -0
- package/dist/components/detail/detail-layout.d.ts.map +1 -0
- package/dist/components/detail/detail-layout.js +102 -0
- package/dist/components/detail/detail-layout.js.map +1 -0
- package/dist/components/detail/use-detail-tab.d.ts +15 -0
- package/dist/components/detail/use-detail-tab.d.ts.map +1 -0
- package/dist/components/detail/use-detail-tab.js +37 -0
- package/dist/components/detail/use-detail-tab.js.map +1 -0
- package/dist/components/file-image/file-image.d.ts +31 -0
- package/dist/components/file-image/file-image.d.ts.map +1 -0
- package/dist/components/file-image/file-image.js +27 -0
- package/dist/components/file-image/file-image.js.map +1 -0
- package/dist/components/language-toggle/language-toggle.d.ts +8 -0
- package/dist/components/language-toggle/language-toggle.d.ts.map +1 -0
- package/dist/components/language-toggle/language-toggle.js +49 -0
- package/dist/components/language-toggle/language-toggle.js.map +1 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.d.ts +28 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.js +25 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts +44 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js +98 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.d.ts +14 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js +45 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts +19 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js +69 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts +23 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js +34 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts +17 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js +63 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js.map +1 -0
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts +30 -0
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/MermaidFence.js +30 -0
- package/dist/components/markdown-view/diagram/MermaidFence.js.map +1 -0
- package/dist/components/markdown-view/diagram/flowchartParser.d.ts +18 -0
- package/dist/components/markdown-view/diagram/flowchartParser.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/flowchartParser.js +370 -0
- package/dist/components/markdown-view/diagram/flowchartParser.js.map +1 -0
- package/dist/components/markdown-view/diagram/graphModel.d.ts +67 -0
- package/dist/components/markdown-view/diagram/graphModel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/graphModel.js +0 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.d.ts +109 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.js +185 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.js.map +1 -0
- package/dist/components/markdown-view/diagram/textMetrics.d.ts +63 -0
- package/dist/components/markdown-view/diagram/textMetrics.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/textMetrics.js +228 -0
- package/dist/components/markdown-view/diagram/textMetrics.js.map +1 -0
- package/dist/components/markdown-view/markdown-view.css +114 -0
- package/dist/components/markdown-view/markdown-view.d.ts +53 -0
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -0
- package/dist/components/markdown-view/markdown-view.js +180 -0
- package/dist/components/markdown-view/markdown-view.js.map +1 -0
- package/dist/components/nav-shell/nav-page.d.ts +24 -0
- package/dist/components/nav-shell/nav-page.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-page.js +28 -0
- package/dist/components/nav-shell/nav-page.js.map +1 -0
- package/dist/components/nav-shell/nav-shell.d.ts +26 -0
- package/dist/components/nav-shell/nav-shell.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-shell.js +53 -0
- package/dist/components/nav-shell/nav-shell.js.map +1 -0
- package/dist/components/nav-shell/nav-tree-util.d.ts +65 -0
- package/dist/components/nav-shell/nav-tree-util.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-tree-util.js +87 -0
- package/dist/components/nav-shell/nav-tree-util.js.map +1 -0
- package/dist/components/nav-shell/spotlight.d.ts +37 -0
- package/dist/components/nav-shell/spotlight.d.ts.map +1 -0
- package/dist/components/nav-shell/spotlight.js +102 -0
- package/dist/components/nav-shell/spotlight.js.map +1 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts +24 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.js +36 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts +55 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-entries.js +60 -0
- package/dist/components/nav-shell/use-nav-entries.js.map +1 -0
- package/dist/components/nav-shell/use-nav-tree.d.ts +21 -0
- package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-tree.js +48 -0
- package/dist/components/nav-shell/use-nav-tree.js.map +1 -0
- package/dist/components/settings/settings-card-edge.d.ts +25 -0
- package/dist/components/settings/settings-card-edge.d.ts.map +1 -0
- package/dist/components/settings/settings-card-edge.js +29 -0
- package/dist/components/settings/settings-card-edge.js.map +1 -0
- package/dist/components/settings/settings-danger-section.d.ts +35 -0
- package/dist/components/settings/settings-danger-section.d.ts.map +1 -0
- package/dist/components/settings/settings-danger-section.js +43 -0
- package/dist/components/settings/settings-danger-section.js.map +1 -0
- package/dist/components/settings/settings-heading.d.ts +36 -0
- package/dist/components/settings/settings-heading.d.ts.map +1 -0
- package/dist/components/settings/settings-heading.js +39 -0
- package/dist/components/settings/settings-heading.js.map +1 -0
- package/dist/components/settings/settings-layout.d.ts +81 -0
- package/dist/components/settings/settings-layout.d.ts.map +1 -0
- package/dist/components/settings/settings-layout.js +56 -0
- package/dist/components/settings/settings-layout.js.map +1 -0
- package/dist/components/settings/settings-nav.d.ts +85 -0
- package/dist/components/settings/settings-nav.d.ts.map +1 -0
- package/dist/components/settings/settings-nav.js +91 -0
- package/dist/components/settings/settings-nav.js.map +1 -0
- package/dist/components/settings/settings-row.d.ts +45 -0
- package/dist/components/settings/settings-row.d.ts.map +1 -0
- package/dist/components/settings/settings-row.js +44 -0
- package/dist/components/settings/settings-row.js.map +1 -0
- package/dist/components/settings/settings-section.d.ts +36 -0
- package/dist/components/settings/settings-section.d.ts.map +1 -0
- package/dist/components/settings/settings-section.js +37 -0
- package/dist/components/settings/settings-section.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +55 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +19 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +96 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +44 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +5 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +15 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +52 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +19 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +70 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +73 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +43 -0
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/button.d.ts +18 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +60 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +11 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +119 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +12 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +57 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +29 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +144 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +45 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +152 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +22 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +26 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +25 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +164 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.d.ts +20 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +89 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +30 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +134 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +93 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.d.ts.map +1 -0
- package/dist/components/ui/direction.js +3 -0
- package/dist/components/ui/drawer.d.ts +17 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +125 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +138 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty.d.ts +12 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/empty.js +61 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +38 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +80 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +49 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +16 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +122 -0
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +4 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +21 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +15 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +137 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +84 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +18 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +87 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +56 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +8 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +46 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +29 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +30 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +38 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +46 -0
- package/dist/components/ui/segmented.d.ts.map +1 -0
- package/dist/components/ui/segmented.js +119 -0
- package/dist/components/ui/segmented.js.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +99 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +17 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +15 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +90 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +388 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +33 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +17 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +68 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +47 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +14 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +60 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +38 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +17 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +53 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/use-dialog/use-dialog.d.ts +61 -0
- package/dist/components/use-dialog/use-dialog.d.ts.map +1 -0
- package/dist/components/use-dialog/use-dialog.js +143 -0
- package/dist/components/use-dialog/use-dialog.js.map +1 -0
- package/dist/components/use-toast/use-toast.d.ts +43 -0
- package/dist/components/use-toast/use-toast.d.ts.map +1 -0
- package/dist/components/use-toast/use-toast.js +33 -0
- package/dist/components/use-toast/use-toast.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +12 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +27 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/lib/i18n-fr.d.ts +46 -0
- package/dist/lib/i18n-fr.d.ts.map +1 -0
- package/dist/lib/i18n-fr.js +510 -0
- package/dist/lib/i18n-fr.js.map +1 -0
- package/dist/lib/resize-image.d.ts +50 -0
- package/dist/lib/resize-image.d.ts.map +1 -0
- package/dist/lib/resize-image.js +68 -0
- package/dist/lib/resize-image.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles.css +254 -0
- package/package.json +65 -33
- package/src/components/account/__tests__/account-router.spec.ts +4 -2
- package/src/components/account/account-connections.tsx +10 -2
- package/src/components/account/account-header.tsx +6 -1
- package/src/components/account/account-keys.tsx +2 -2
- package/src/components/account/account-layout.tsx +14 -4
- package/src/components/account/account-profile.tsx +238 -125
- package/src/components/account/account-router-options.tsx +15 -0
- package/src/components/account/account-router-page.tsx +1 -0
- package/src/components/account/account-router.tsx +24 -3
- package/src/components/account/account-security.tsx +2 -1
- package/src/components/account/account-sessions.tsx +21 -4
- package/src/components/admin/__tests__/admin-keys-token-dialog.browser.spec.tsx +1 -0
- package/src/components/admin/__tests__/admin-layout.browser.spec.tsx +2 -1
- package/src/components/admin/__tests__/admin-router-page.spec.ts +2 -1
- package/src/components/admin/__tests__/admin-router.spec.ts +57 -1
- package/src/components/admin/__tests__/admin-user-cell.browser.spec.tsx +1 -0
- package/src/components/admin/__tests__/admin-user-detail.spec.ts +1 -0
- package/src/components/admin/admin-analytics-query-panel.tsx +4 -3
- package/src/components/admin/admin-analytics-results.tsx +2 -2
- package/src/components/admin/admin-analytics.tsx +3 -3
- package/src/components/admin/admin-audits.tsx +3 -3
- package/src/components/admin/admin-dashboard-card.tsx +45 -0
- package/src/components/admin/admin-dashboard-count-card.tsx +89 -0
- package/src/components/admin/admin-dashboard.tsx +60 -0
- package/src/components/admin/admin-files.tsx +2 -2
- package/src/components/admin/admin-jobs-executions-panel.tsx +19 -12
- package/src/components/admin/admin-jobs-status-badge.tsx +2 -2
- package/src/components/admin/admin-jobs.tsx +4 -4
- package/src/components/admin/admin-keys-token-dialog.tsx +2 -2
- package/src/components/admin/admin-keys.tsx +2 -2
- package/src/components/admin/admin-layout.tsx +1 -2
- package/src/components/admin/admin-notifications.tsx +2 -2
- package/src/components/admin/admin-parameters.tsx +16 -9
- package/src/components/admin/admin-payments.tsx +2 -2
- package/src/components/admin/admin-router-options.tsx +34 -10
- package/src/components/admin/admin-router-page.tsx +8 -5
- package/src/components/admin/admin-router.tsx +112 -40
- package/src/components/admin/admin-sessions.tsx +13 -2
- package/src/components/admin/admin-user-detail-audits-tab.tsx +5 -2
- package/src/components/admin/admin-user-detail-identity-aside.tsx +16 -93
- package/src/components/admin/admin-user-detail-overview-tab.tsx +1 -0
- package/src/components/admin/admin-user-detail-password-dialog.tsx +1 -0
- package/src/components/admin/admin-user-detail-profile-policy.spec.ts +1 -0
- package/src/components/admin/admin-user-detail-profile-policy.ts +1 -0
- package/src/components/admin/admin-user-detail-security-tab.tsx +1 -0
- package/src/components/admin/admin-user-detail-sessions-tab.tsx +5 -2
- package/src/components/admin/admin-user-detail.tsx +49 -87
- package/src/components/admin/admin-users-roles-picker.tsx +22 -15
- package/src/components/admin/admin-users.tsx +8 -14
- package/src/components/admin/admin-workflows-execution-sheet.tsx +18 -10
- package/src/components/admin/admin-workflows-executions-panel.tsx +24 -17
- package/src/components/admin/admin-workflows-status-badge.tsx +4 -2
- package/src/components/admin/admin-workflows.tsx +6 -4
- package/src/components/admin/diff-lines.spec.ts +1 -0
- package/src/components/admin/diff-lines.ts +1 -1
- package/src/components/admin/parameter-diff-dialog.tsx +3 -2
- package/src/components/admin/parameter-history-item.tsx +6 -5
- package/src/components/alepha-table/__tests__/alepha-table-static.browser.spec.tsx +190 -0
- package/src/components/alepha-table/__tests__/paginate-local.spec.ts +286 -0
- package/src/components/alepha-table/__tests__/use-table-selection.browser.spec.tsx +1 -0
- package/src/components/alepha-table/alepha-table.tsx +385 -86
- package/src/components/alepha-table/paginate-local.ts +174 -0
- package/src/components/app-actions/__tests__/app-actions.browser.spec.tsx +1 -0
- package/src/components/app-actions/app-actions.tsx +7 -2
- package/src/components/app-shell/app-shell.tsx +42 -19
- package/src/components/auth/__tests__/auth-router.spec.ts +2 -1
- package/src/components/auth/auth-login.tsx +5 -16
- package/src/components/auth/auth-register.tsx +81 -42
- package/src/components/auth/auth-reset-password.tsx +24 -17
- package/src/components/auth/auth-router.tsx +4 -3
- package/src/components/auth/auth-verify-email.tsx +7 -7
- package/src/components/auth/safe-redirect.ts +14 -0
- package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +238 -0
- package/src/components/auto-form/auto-form.tsx +173 -66
- package/src/components/brand-icon/brand-icon.tsx +2 -2
- package/src/components/button-dark/button-dark.tsx +2 -2
- package/src/components/button-language/button-language.tsx +2 -2
- package/src/components/button-theme/button-theme.tsx +2 -2
- package/src/components/button-user/button-user.tsx +80 -21
- package/src/components/captcha/turnstile-widget.tsx +6 -5
- package/src/components/control/control.tsx +39 -14
- package/src/components/control-array/control-array.tsx +28 -15
- package/src/components/control-base/__tests__/form-field-a11y.browser.spec.tsx +1 -0
- package/src/components/control-base/field-i18n.ts +5 -3
- package/src/components/control-base/form-field.tsx +69 -12
- package/src/components/control-base/icon-hint.tsx +1 -1
- package/src/components/control-date/control-date.tsx +29 -6
- package/src/components/control-number/control-number.tsx +3 -3
- package/src/components/control-object/control-object.tsx +11 -8
- package/src/components/control-password/control-password.tsx +2 -2
- package/src/components/control-select/__tests__/control-select-clear-label.browser.spec.tsx +1 -0
- package/src/components/control-select/__tests__/control-select-deselect.browser.spec.tsx +1 -0
- package/src/components/control-select/__tests__/control-select-searchable.browser.spec.tsx +1 -0
- package/src/components/control-select/control-select.tsx +32 -18
- package/src/components/control-upload/control-upload.tsx +16 -10
- package/src/components/detail/__tests__/detail-aside.browser.spec.tsx +135 -0
- package/src/components/detail/__tests__/detail-layout.browser.spec.tsx +151 -0
- package/src/components/detail/detail-aside.tsx +198 -0
- package/src/components/detail/detail-layout.tsx +181 -0
- package/src/components/detail/use-detail-tab.tsx +41 -0
- package/src/components/file-image/file-image.tsx +4 -2
- package/src/components/language-toggle/language-toggle.tsx +2 -2
- package/src/components/markdown-view/__tests__/markdown-view-mermaid.browser.spec.tsx +148 -0
- package/src/components/markdown-view/__tests__/markdown-view-raw-html.browser.spec.tsx +49 -0
- package/src/components/markdown-view/diagram/DiagramErrorBoundary.tsx +42 -0
- package/src/components/markdown-view/diagram/FlowchartDiagram.tsx +136 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramCluster.tsx +59 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramEdge.tsx +95 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramLabel.tsx +58 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramNode.tsx +78 -0
- package/src/components/markdown-view/diagram/MermaidFence.tsx +46 -0
- package/src/components/markdown-view/diagram/__tests__/flowchart-diagram.browser.spec.tsx +210 -0
- package/src/components/markdown-view/diagram/flowchartParser.spec.ts +379 -0
- package/src/components/markdown-view/diagram/flowchartParser.ts +475 -0
- package/src/components/markdown-view/diagram/graphModel.ts +72 -0
- package/src/components/markdown-view/diagram/layoutFlowchart.spec.ts +235 -0
- package/src/components/markdown-view/diagram/layoutFlowchart.ts +324 -0
- package/src/components/markdown-view/diagram/textMetrics.spec.ts +128 -0
- package/src/components/markdown-view/diagram/textMetrics.ts +296 -0
- package/src/components/markdown-view/markdown-view.tsx +142 -15
- package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +89 -0
- package/src/components/nav-shell/nav-shell.tsx +6 -3
- package/src/components/nav-shell/nav-tree-util.ts +48 -0
- package/src/components/nav-shell/spotlight.tsx +2 -1
- package/src/components/nav-shell/use-nav-breadcrumbs.ts +1 -0
- package/src/components/nav-shell/use-nav-entries.ts +27 -7
- package/src/components/nav-shell/use-nav-tree.ts +1 -0
- package/src/components/settings/__tests__/settings-nav.browser.spec.tsx +1 -0
- package/src/components/settings/__tests__/settings-section.browser.spec.tsx +1 -0
- package/src/components/settings/settings-card-edge.ts +24 -0
- package/src/components/settings/settings-danger-section.tsx +7 -1
- package/src/components/settings/settings-heading.tsx +55 -0
- package/src/components/settings/settings-layout.tsx +81 -7
- package/src/components/settings/settings-nav.tsx +58 -5
- package/src/components/settings/settings-row.tsx +2 -2
- package/src/components/settings/settings-section.tsx +4 -15
- package/src/components/ui/accordion.tsx +3 -3
- package/src/components/ui/alert-dialog.tsx +5 -5
- package/src/components/ui/alert.tsx +2 -2
- package/src/components/ui/avatar.tsx +5 -5
- package/src/components/ui/badge.tsx +48 -2
- package/src/components/ui/breadcrumb.tsx +3 -3
- package/src/components/ui/button-group.tsx +2 -2
- package/src/components/ui/button.tsx +2 -2
- package/src/components/ui/calendar.tsx +8 -8
- package/src/components/ui/card.tsx +3 -3
- package/src/components/ui/carousel.tsx +30 -13
- package/src/components/ui/chart.tsx +18 -6
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +8 -9
- package/src/components/ui/command.tsx +6 -7
- package/src/components/ui/context-menu.tsx +8 -8
- package/src/components/ui/dialog.tsx +4 -4
- package/src/components/ui/drawer.tsx +4 -4
- package/src/components/ui/dropdown-menu.tsx +9 -9
- package/src/components/ui/empty.tsx +2 -2
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-group.tsx +6 -3
- package/src/components/ui/input-otp.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/item.tsx +3 -3
- package/src/components/ui/kbd.tsx +1 -1
- package/src/components/ui/label.tsx +3 -0
- package/src/components/ui/menubar.tsx +9 -9
- package/src/components/ui/navigation-menu.tsx +7 -7
- package/src/components/ui/pagination.tsx +0 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +3 -3
- package/src/components/ui/radio-group.tsx +2 -2
- package/src/components/ui/resizable.tsx +2 -2
- package/src/components/ui/scroll-area.tsx +2 -2
- package/src/components/ui/segmented.tsx +27 -5
- package/src/components/ui/select.tsx +8 -8
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +3 -3
- package/src/components/ui/sidebar.tsx +20 -20
- package/src/components/ui/skeleton.tsx +1 -1
- package/src/components/ui/slider.tsx +2 -2
- package/src/components/ui/switch.tsx +2 -2
- package/src/components/ui/table.tsx +10 -5
- package/src/components/ui/tabs.tsx +3 -3
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle-group.tsx +9 -4
- package/src/components/ui/toggle.tsx +2 -2
- package/src/components/ui/tooltip.tsx +13 -3
- package/src/components/use-dialog/use-dialog.tsx +19 -6
- package/src/components/use-toast/__tests__/use-toast.browser.spec.tsx +19 -0
- package/src/components/use-toast/use-toast.tsx +38 -26
- package/src/hooks/use-mobile.ts +27 -14
- package/src/lib/__tests__/i18n-fr.spec.ts +5 -1
- package/src/lib/i18n-fr.ts +18 -10
- package/src/styles.css +5 -5
- package/src/lib/__tests__/rehype-safe-img.spec.ts +0 -121
- package/src/lib/rehype-safe-img.ts +0 -150
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/settings/settings-heading.tsx
|
|
4
|
+
/**
|
|
5
|
+
* The title + description pair that sits above a settings block.
|
|
6
|
+
*
|
|
7
|
+
* It exists so there is exactly one of it. {@link SettingsSection} renders this
|
|
8
|
+
* for the common case (a heading over a card of {@link SettingsRow}s), and a
|
|
9
|
+
* page whose content is not a card of rows — a table, a list of invitations —
|
|
10
|
+
* uses it directly instead of hand-rolling the markup.
|
|
11
|
+
*
|
|
12
|
+
* That hand-rolling is the failure this prevents, and it had already happened:
|
|
13
|
+
* `apps/lore`'s account pages grew an `<h2 className="text-base font-semibold">`
|
|
14
|
+
* on one page and a bare `<span className="text-xs">` with no title at all on
|
|
15
|
+
* another, so the `/account` rail led to three different type scales depending
|
|
16
|
+
* on which entry you clicked. Nothing was broken and nothing could have failed
|
|
17
|
+
* — it just read as three pages from three different applications.
|
|
18
|
+
*
|
|
19
|
+
* ⚠️ **No em dash in these strings.** House rule across every user-facing
|
|
20
|
+
* string, in this component and everywhere else: use a comma, a semicolon, a
|
|
21
|
+
* full stop, or split the sentence in two.
|
|
22
|
+
*/
|
|
23
|
+
const SettingsHeading = (props) => {
|
|
24
|
+
if (props.title == null && props.description == null) return null;
|
|
25
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
26
|
+
className: cn("flex flex-col gap-0.5", props.className),
|
|
27
|
+
children: [props.title != null ? /* @__PURE__ */ jsx("span", {
|
|
28
|
+
className: "text-sm",
|
|
29
|
+
children: props.title
|
|
30
|
+
}) : null, props.description != null ? /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: "text-muted-foreground text-xs",
|
|
32
|
+
children: props.description
|
|
33
|
+
}) : null]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { SettingsHeading };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=settings-heading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-heading.js","names":[],"sources":["../../../src/components/settings/settings-heading.tsx"],"sourcesContent":["import { cn } from \"@alepha/ui/lib/utils\";\nimport type { ReactNode } from \"react\";\n\nexport interface SettingsHeadingProps {\n /**\n * What this block of the page is. A noun phrase naming the thing, not a verb\n * phrase describing the action: \"Active sessions\", not \"Manage sessions\".\n */\n title?: ReactNode;\n\n /**\n * One line under the title. The place to put what the reader needs to know\n * before touching anything below it — a consequence, a constraint, a limit.\n * Skip it rather than restate the title in more words.\n */\n description?: ReactNode;\n\n className?: string;\n}\n\n/**\n * The title + description pair that sits above a settings block.\n *\n * It exists so there is exactly one of it. {@link SettingsSection} renders this\n * for the common case (a heading over a card of {@link SettingsRow}s), and a\n * page whose content is not a card of rows — a table, a list of invitations —\n * uses it directly instead of hand-rolling the markup.\n *\n * That hand-rolling is the failure this prevents, and it had already happened:\n * `apps/lore`'s account pages grew an `<h2 className=\"text-base font-semibold\">`\n * on one page and a bare `<span className=\"text-xs\">` with no title at all on\n * another, so the `/account` rail led to three different type scales depending\n * on which entry you clicked. Nothing was broken and nothing could have failed\n * — it just read as three pages from three different applications.\n *\n * ⚠️ **No em dash in these strings.** House rule across every user-facing\n * string, in this component and everywhere else: use a comma, a semicolon, a\n * full stop, or split the sentence in two.\n */\nexport const SettingsHeading = (props: SettingsHeadingProps) => {\n if (props.title == null && props.description == null) return null;\n\n return (\n <div className={cn(\"flex flex-col gap-0.5\", props.className)}>\n {props.title != null ? (\n <span className=\"text-sm\">{props.title}</span>\n ) : null}\n {props.description != null ? (\n <span className=\"text-muted-foreground text-xs\">\n {props.description}\n </span>\n ) : null}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,mBAAmB,UAAgC;CAC9D,IAAI,MAAM,SAAS,QAAQ,MAAM,eAAe,MAAM,OAAO;CAE7D,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,yBAAyB,MAAM,SAAS;EAA3D,UAAA,CACG,MAAM,SAAS,OACd,oBAAC,QAAD;GAAM,WAAU;GAAW,UAAA,MAAM;EAAY,CAAA,IAC3C,MACH,MAAM,eAAe,OACpB,oBAAC,QAAD;GAAM,WAAU;GACb,UAAA,MAAM;EACH,CAAA,IACJ,IACD;;AAET"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface SettingsLayoutProps {
|
|
3
|
+
/**
|
|
4
|
+
* The left rail — normally a {@link SettingsNav}. Omit for a settings page
|
|
5
|
+
* with a single screen and nothing to navigate between.
|
|
6
|
+
*/
|
|
7
|
+
nav?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Full-width block above both columns: an identity card, a page title, a
|
|
10
|
+
* back link. Rendered inside the centred container, so it lines up with the
|
|
11
|
+
* content rather than the viewport.
|
|
12
|
+
*/
|
|
13
|
+
header?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* The routed content — normally a `NestedView`.
|
|
16
|
+
*/
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Bound the shell to its parent's height and give the content column its
|
|
20
|
+
* own scrollbar, instead of letting the document scroll.
|
|
21
|
+
*
|
|
22
|
+
* Turn it on when this layout is mounted inside a host that has already
|
|
23
|
+
* taken the viewport height and hidden its own overflow — an application
|
|
24
|
+
* shell built as `h-svh … overflow-hidden`, which is the usual shape for an
|
|
25
|
+
* app with a fixed header. In that host the default (below) has no scrollbar
|
|
26
|
+
* to give: the document cannot scroll, so anything past the fold is simply
|
|
27
|
+
* unreachable.
|
|
28
|
+
*
|
|
29
|
+
* The mode is deliberately not auto-detected. Reading the ancestor chain for
|
|
30
|
+
* a clipping parent is a layout-effect away from a flash of the wrong shape
|
|
31
|
+
* on every mount, and the host already knows the answer at boot.
|
|
32
|
+
*
|
|
33
|
+
* It serves both kinds of page at once, which is why there is one flag
|
|
34
|
+
* rather than two:
|
|
35
|
+
*
|
|
36
|
+
* - A natural-height page (a stack of {@link SettingsSection} cards) exceeds
|
|
37
|
+
* the column and scrolls it — the same reading experience as the default,
|
|
38
|
+
* just against a nearer scroll root.
|
|
39
|
+
* - A page that opts into `flex-1 min-h-0` is bounded by the column instead,
|
|
40
|
+
* so it can hand the scroll to a child. That is what lets a table keep its
|
|
41
|
+
* filters and pagination bar pinned while only its rows move.
|
|
42
|
+
*/
|
|
43
|
+
fill?: boolean;
|
|
44
|
+
className?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Centred two-column shell for a settings area: sticky rail on the left,
|
|
48
|
+
* content on the right, stacked on small screens.
|
|
49
|
+
*
|
|
50
|
+
* `min-w-0` on the content column is load-bearing. A grid/flex child defaults
|
|
51
|
+
* to `min-width: auto`, which is the *content's* intrinsic width — so one
|
|
52
|
+
* unbreakable string (an API key, a long email, a `<pre>` block) makes the
|
|
53
|
+
* column refuse to shrink and pushes the whole page into horizontal scroll,
|
|
54
|
+
* rail included. `min-w-0` lets it shrink and lets the child's own
|
|
55
|
+
* `overflow` handle it.
|
|
56
|
+
*
|
|
57
|
+
* By default there is no scroll container here and the page scrolls, because
|
|
58
|
+
* a nested `overflow-auto` would strand the sticky rail against the wrong
|
|
59
|
+
* scroll root. Pass {@link SettingsLayoutProps.fill} when the host has already
|
|
60
|
+
* claimed the viewport height and clipped its own overflow, so there is no
|
|
61
|
+
* page scroll left to inherit.
|
|
62
|
+
*
|
|
63
|
+
* `md:items-start` becomes `md:items-stretch` under `fill` so the content
|
|
64
|
+
* column is as tall as the row rather than as tall as its content — a column
|
|
65
|
+
* sized by its content can never be the thing that scrolls. The rail is
|
|
66
|
+
* unaffected either way: it carries its own `md:self-start`, which outranks
|
|
67
|
+
* whatever the row aligns to.
|
|
68
|
+
*
|
|
69
|
+
* ⚠️ **`fill` engages at `md` and up only, and the root keeps a scrollbar at
|
|
70
|
+
* every width.** Below `md` the rail is not a rail: it stacks above the
|
|
71
|
+
* content as a full list of links, which on a phone is most of the viewport.
|
|
72
|
+
* Splitting what little is left into a second bounded pane gives a page a few
|
|
73
|
+
* hundred pixels it cannot grow out of — a table lands in a box too short to
|
|
74
|
+
* show a row, and because that table owns its own scroll, nothing above it can
|
|
75
|
+
* scroll to make room. So the mobile shape stays the default one: the root
|
|
76
|
+
* scrolls, rail and content together. At `md` and up the row is bounded, so
|
|
77
|
+
* the root's scrollbar never has anything to show and the content column is
|
|
78
|
+
* the scroll root instead.
|
|
79
|
+
*/
|
|
80
|
+
export declare const SettingsLayout: (props: SettingsLayoutProps) => import("react").JSX.Element;
|
|
81
|
+
//# sourceMappingURL=settings-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-layout.d.ts","sourceRoot":"","sources":["../../../src/components/settings/settings-layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,GAAG,CAAC,EAAE,SAAS,CAAC;IAEhB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,cAAc,UAAW,mBAAmB,gCA2CxD,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/settings/settings-layout.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Centred two-column shell for a settings area: sticky rail on the left,
|
|
6
|
+
* content on the right, stacked on small screens.
|
|
7
|
+
*
|
|
8
|
+
* `min-w-0` on the content column is load-bearing. A grid/flex child defaults
|
|
9
|
+
* to `min-width: auto`, which is the *content's* intrinsic width — so one
|
|
10
|
+
* unbreakable string (an API key, a long email, a `<pre>` block) makes the
|
|
11
|
+
* column refuse to shrink and pushes the whole page into horizontal scroll,
|
|
12
|
+
* rail included. `min-w-0` lets it shrink and lets the child's own
|
|
13
|
+
* `overflow` handle it.
|
|
14
|
+
*
|
|
15
|
+
* By default there is no scroll container here and the page scrolls, because
|
|
16
|
+
* a nested `overflow-auto` would strand the sticky rail against the wrong
|
|
17
|
+
* scroll root. Pass {@link SettingsLayoutProps.fill} when the host has already
|
|
18
|
+
* claimed the viewport height and clipped its own overflow, so there is no
|
|
19
|
+
* page scroll left to inherit.
|
|
20
|
+
*
|
|
21
|
+
* `md:items-start` becomes `md:items-stretch` under `fill` so the content
|
|
22
|
+
* column is as tall as the row rather than as tall as its content — a column
|
|
23
|
+
* sized by its content can never be the thing that scrolls. The rail is
|
|
24
|
+
* unaffected either way: it carries its own `md:self-start`, which outranks
|
|
25
|
+
* whatever the row aligns to.
|
|
26
|
+
*
|
|
27
|
+
* ⚠️ **`fill` engages at `md` and up only, and the root keeps a scrollbar at
|
|
28
|
+
* every width.** Below `md` the rail is not a rail: it stacks above the
|
|
29
|
+
* content as a full list of links, which on a phone is most of the viewport.
|
|
30
|
+
* Splitting what little is left into a second bounded pane gives a page a few
|
|
31
|
+
* hundred pixels it cannot grow out of — a table lands in a box too short to
|
|
32
|
+
* show a row, and because that table owns its own scroll, nothing above it can
|
|
33
|
+
* scroll to make room. So the mobile shape stays the default one: the root
|
|
34
|
+
* scrolls, rail and content together. At `md` and up the row is bounded, so
|
|
35
|
+
* the root's scrollbar never has anything to show and the content column is
|
|
36
|
+
* the scroll root instead.
|
|
37
|
+
*/
|
|
38
|
+
const SettingsLayout = (props) => {
|
|
39
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
40
|
+
className: cn("mx-auto w-full max-w-5xl p-4 md:pt-10", props.fill && "flex h-full min-h-0 flex-col overflow-y-auto", props.className),
|
|
41
|
+
children: [props.header ? /* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: "mb-6",
|
|
43
|
+
children: props.header
|
|
44
|
+
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
45
|
+
className: cn("flex flex-col gap-6 md:flex-row md:items-start", props.fill && "md:min-h-0 md:flex-1 md:items-stretch"),
|
|
46
|
+
children: [props.nav, /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className: cn("flex min-w-0 flex-1 flex-col gap-8", props.fill && "md:-mx-2 md:min-h-0 md:overflow-y-auto md:px-2"),
|
|
48
|
+
children: props.children
|
|
49
|
+
})]
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { SettingsLayout };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=settings-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-layout.js","names":[],"sources":["../../../src/components/settings/settings-layout.tsx"],"sourcesContent":["import { cn } from \"@alepha/ui/lib/utils\";\nimport type { ReactNode } from \"react\";\n\nexport interface SettingsLayoutProps {\n /**\n * The left rail — normally a {@link SettingsNav}. Omit for a settings page\n * with a single screen and nothing to navigate between.\n */\n nav?: ReactNode;\n\n /**\n * Full-width block above both columns: an identity card, a page title, a\n * back link. Rendered inside the centred container, so it lines up with the\n * content rather than the viewport.\n */\n header?: ReactNode;\n\n /**\n * The routed content — normally a `NestedView`.\n */\n children: ReactNode;\n\n /**\n * Bound the shell to its parent's height and give the content column its\n * own scrollbar, instead of letting the document scroll.\n *\n * Turn it on when this layout is mounted inside a host that has already\n * taken the viewport height and hidden its own overflow — an application\n * shell built as `h-svh … overflow-hidden`, which is the usual shape for an\n * app with a fixed header. In that host the default (below) has no scrollbar\n * to give: the document cannot scroll, so anything past the fold is simply\n * unreachable.\n *\n * The mode is deliberately not auto-detected. Reading the ancestor chain for\n * a clipping parent is a layout-effect away from a flash of the wrong shape\n * on every mount, and the host already knows the answer at boot.\n *\n * It serves both kinds of page at once, which is why there is one flag\n * rather than two:\n *\n * - A natural-height page (a stack of {@link SettingsSection} cards) exceeds\n * the column and scrolls it — the same reading experience as the default,\n * just against a nearer scroll root.\n * - A page that opts into `flex-1 min-h-0` is bounded by the column instead,\n * so it can hand the scroll to a child. That is what lets a table keep its\n * filters and pagination bar pinned while only its rows move.\n */\n fill?: boolean;\n\n className?: string;\n}\n\n/**\n * Centred two-column shell for a settings area: sticky rail on the left,\n * content on the right, stacked on small screens.\n *\n * `min-w-0` on the content column is load-bearing. A grid/flex child defaults\n * to `min-width: auto`, which is the *content's* intrinsic width — so one\n * unbreakable string (an API key, a long email, a `<pre>` block) makes the\n * column refuse to shrink and pushes the whole page into horizontal scroll,\n * rail included. `min-w-0` lets it shrink and lets the child's own\n * `overflow` handle it.\n *\n * By default there is no scroll container here and the page scrolls, because\n * a nested `overflow-auto` would strand the sticky rail against the wrong\n * scroll root. Pass {@link SettingsLayoutProps.fill} when the host has already\n * claimed the viewport height and clipped its own overflow, so there is no\n * page scroll left to inherit.\n *\n * `md:items-start` becomes `md:items-stretch` under `fill` so the content\n * column is as tall as the row rather than as tall as its content — a column\n * sized by its content can never be the thing that scrolls. The rail is\n * unaffected either way: it carries its own `md:self-start`, which outranks\n * whatever the row aligns to.\n *\n * ⚠️ **`fill` engages at `md` and up only, and the root keeps a scrollbar at\n * every width.** Below `md` the rail is not a rail: it stacks above the\n * content as a full list of links, which on a phone is most of the viewport.\n * Splitting what little is left into a second bounded pane gives a page a few\n * hundred pixels it cannot grow out of — a table lands in a box too short to\n * show a row, and because that table owns its own scroll, nothing above it can\n * scroll to make room. So the mobile shape stays the default one: the root\n * scrolls, rail and content together. At `md` and up the row is bounded, so\n * the root's scrollbar never has anything to show and the content column is\n * the scroll root instead.\n */\nexport const SettingsLayout = (props: SettingsLayoutProps) => {\n return (\n <div\n className={cn(\n \"mx-auto w-full max-w-5xl p-4 md:pt-10\",\n props.fill && \"flex h-full min-h-0 flex-col overflow-y-auto\",\n props.className,\n )}\n >\n {props.header ? <div className=\"mb-6\">{props.header}</div> : null}\n <div\n className={cn(\n \"flex flex-col gap-6 md:flex-row md:items-start\",\n props.fill && \"md:min-h-0 md:flex-1 md:items-stretch\",\n )}\n >\n {props.nav}\n <div\n className={cn(\n \"flex min-w-0 flex-1 flex-col gap-8\",\n // `md:px-2 md:-mx-2` is not spacing, it is clip headroom, and it\n // only exists because of the `overflow-y-auto` on the same line.\n //\n // An element with `overflow-y: auto` cannot keep `overflow-x:\n // visible`, CSS computes the visible axis to `auto`, so this\n // column becomes a horizontal clipping box too. The cards inside\n // are exactly as wide as it is, which puts their edges on the clip\n // boundary; a border survives that (it is inside the border box)\n // but a ring or a `shadow-sm` does not, and the cards came out\n // looking shaved down both sides.\n //\n // The padding moves the boundary out from under the cards and the\n // equal negative margin takes the width straight back, so nothing\n // moves and nothing narrows. Plain padding would have fixed the\n // clipping by making every card 16px narrower instead.\n props.fill && \"md:-mx-2 md:min-h-0 md:overflow-y-auto md:px-2\",\n )}\n >\n {props.children}\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAa,kBAAkB,UAA+B;CAC5D,OACE,qBAAC,OAAD;EACE,WAAW,GACT,yCACA,MAAM,QAAQ,gDACd,MAAM,SACR;EALF,UAAA,CAOG,MAAM,SAAS,oBAAC,OAAD;GAAK,WAAU;GAAQ,UAAA,MAAM;EAAY,CAAA,IAAI,MAC7D,qBAAC,OAAD;GACE,WAAW,GACT,kDACA,MAAM,QAAQ,uCAChB;GAJF,UAAA,CAMG,MAAM,KACP,oBAAC,OAAD;IACE,WAAW,GACT,sCAgBA,MAAM,QAAQ,gDAChB;IAEC,UAAA,MAAM;GACJ,CAAA,CACF;EACF,CAAA,CAAA;;AAET"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface SettingsNavItem {
|
|
3
|
+
/**
|
|
4
|
+
* Stable key. The route name when these come from `useNavEntries`.
|
|
5
|
+
*/
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* Fully resolved href — every `:param` already substituted. See
|
|
9
|
+
* {@link SettingsNav} for why this component refuses to resolve them itself.
|
|
10
|
+
*/
|
|
11
|
+
href: string;
|
|
12
|
+
label: ReactNode;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Heading this entry sits under. Entries with no group render first, in a
|
|
16
|
+
* block of their own, without a heading.
|
|
17
|
+
*/
|
|
18
|
+
group?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The current route is on or under this entry.
|
|
21
|
+
*/
|
|
22
|
+
active: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Visible but not reachable — rendered muted and inert rather than hidden,
|
|
25
|
+
* so the entry can explain a capability the viewer does not currently have.
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface SettingsNavProps {
|
|
30
|
+
/**
|
|
31
|
+
* Entries in final display order. Grouping preserves first appearance, so
|
|
32
|
+
* sort before passing — `useNavEntries` already returns them sorted by
|
|
33
|
+
* group order then item order.
|
|
34
|
+
*/
|
|
35
|
+
items: SettingsNavItem[];
|
|
36
|
+
/**
|
|
37
|
+
* Entry height, matching `SidebarMenuButton`'s own sizes: `sm` is `h-7` with
|
|
38
|
+
* `text-xs`, `default` is `h-8` with `text-sm`.
|
|
39
|
+
*
|
|
40
|
+
* @default "sm"
|
|
41
|
+
*/
|
|
42
|
+
size?: "sm" | "default";
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The left-hand rail of a settings page: a sticky, grouped list of links.
|
|
47
|
+
*
|
|
48
|
+
* ⚠️ **It takes resolved `items`, not a `root` route name, and that is the
|
|
49
|
+
* whole design.** Deriving entries internally from `useNavEntries({ root })`
|
|
50
|
+
* would be a smaller API and works fine for a static subtree such as
|
|
51
|
+
* `/account/*` — but `NavEntry.href` is `page.match`, the raw route
|
|
52
|
+
* *pattern*. Point it at a parameterised subtree like
|
|
53
|
+
* `/:projectSlug/settings/...` and every href in the rail comes out
|
|
54
|
+
* containing a literal `:projectSlug`, which is a dead link that renders
|
|
55
|
+
* perfectly.
|
|
56
|
+
*
|
|
57
|
+
* So resolution is the caller's job and presentation is this component's. A
|
|
58
|
+
* static subtree passes `useNavEntries({ root: "account" })` straight through
|
|
59
|
+
* ({@link SettingsNavItem} is structurally a subset of `NavEntry`, so no
|
|
60
|
+
* mapping is needed); a parameterised one passes its own
|
|
61
|
+
* `router.path(name, { params })` list.
|
|
62
|
+
*
|
|
63
|
+
* ### Why this is not built out of `SidebarMenuButton`
|
|
64
|
+
*
|
|
65
|
+
* It reads like the obvious reuse — this rail is a small sidebar, and the
|
|
66
|
+
* sizes and metrics below are deliberately `SidebarMenuButton`'s, so the two
|
|
67
|
+
* look like one family. But the component itself cannot be mounted here:
|
|
68
|
+
*
|
|
69
|
+
* - `SidebarMenuButton` calls `useSidebar()`, which **throws** outside a
|
|
70
|
+
* `SidebarProvider`. Nothing about a static rail needs that provider — it
|
|
71
|
+
* exists to hold collapse state — and mounting one to get a button also
|
|
72
|
+
* registers a global ⌘B handler and starts writing the sidebar cookie. On a
|
|
73
|
+
* page that already sits inside `AppShell` that is a *second* provider, so
|
|
74
|
+
* ⌘B would toggle the wrong sidebar.
|
|
75
|
+
* - Making `useSidebar` tolerate a missing provider, or exporting the button's
|
|
76
|
+
* `cva` to share it, both mean editing `components/ui/sidebar.tsx` — which
|
|
77
|
+
* `yarn w @alepha/ui sync` overwrites wholesale from the upstream registry.
|
|
78
|
+
* The patch would vanish on the next refresh, silently.
|
|
79
|
+
*
|
|
80
|
+
* So the metrics are shared by being written the same, and the coupling is
|
|
81
|
+
* not. If the sizes below ever drift from `sidebarMenuButtonVariants`, that is
|
|
82
|
+
* the thing to re-align.
|
|
83
|
+
*/
|
|
84
|
+
export declare const SettingsNav: (props: SettingsNavProps) => import("react").JSX.Element;
|
|
85
|
+
//# sourceMappingURL=settings-nav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-nav.d.ts","sourceRoot":"","sources":["../../../src/components/settings/settings-nav.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,KAAK,EAAE,eAAe,EAAE,CAAC;IAEzB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAExB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,gCAwFlD,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Link } from "alepha/react/router";
|
|
5
|
+
//#region src/components/settings/settings-nav.tsx
|
|
6
|
+
/**
|
|
7
|
+
* The left-hand rail of a settings page: a sticky, grouped list of links.
|
|
8
|
+
*
|
|
9
|
+
* ⚠️ **It takes resolved `items`, not a `root` route name, and that is the
|
|
10
|
+
* whole design.** Deriving entries internally from `useNavEntries({ root })`
|
|
11
|
+
* would be a smaller API and works fine for a static subtree such as
|
|
12
|
+
* `/account/*` — but `NavEntry.href` is `page.match`, the raw route
|
|
13
|
+
* *pattern*. Point it at a parameterised subtree like
|
|
14
|
+
* `/:projectSlug/settings/...` and every href in the rail comes out
|
|
15
|
+
* containing a literal `:projectSlug`, which is a dead link that renders
|
|
16
|
+
* perfectly.
|
|
17
|
+
*
|
|
18
|
+
* So resolution is the caller's job and presentation is this component's. A
|
|
19
|
+
* static subtree passes `useNavEntries({ root: "account" })` straight through
|
|
20
|
+
* ({@link SettingsNavItem} is structurally a subset of `NavEntry`, so no
|
|
21
|
+
* mapping is needed); a parameterised one passes its own
|
|
22
|
+
* `router.path(name, { params })` list.
|
|
23
|
+
*
|
|
24
|
+
* ### Why this is not built out of `SidebarMenuButton`
|
|
25
|
+
*
|
|
26
|
+
* It reads like the obvious reuse — this rail is a small sidebar, and the
|
|
27
|
+
* sizes and metrics below are deliberately `SidebarMenuButton`'s, so the two
|
|
28
|
+
* look like one family. But the component itself cannot be mounted here:
|
|
29
|
+
*
|
|
30
|
+
* - `SidebarMenuButton` calls `useSidebar()`, which **throws** outside a
|
|
31
|
+
* `SidebarProvider`. Nothing about a static rail needs that provider — it
|
|
32
|
+
* exists to hold collapse state — and mounting one to get a button also
|
|
33
|
+
* registers a global ⌘B handler and starts writing the sidebar cookie. On a
|
|
34
|
+
* page that already sits inside `AppShell` that is a *second* provider, so
|
|
35
|
+
* ⌘B would toggle the wrong sidebar.
|
|
36
|
+
* - Making `useSidebar` tolerate a missing provider, or exporting the button's
|
|
37
|
+
* `cva` to share it, both mean editing `components/ui/sidebar.tsx` — which
|
|
38
|
+
* `yarn w @alepha/ui sync` overwrites wholesale from the upstream registry.
|
|
39
|
+
* The patch would vanish on the next refresh, silently.
|
|
40
|
+
*
|
|
41
|
+
* So the metrics are shared by being written the same, and the coupling is
|
|
42
|
+
* not. If the sizes below ever drift from `sidebarMenuButtonVariants`, that is
|
|
43
|
+
* the thing to re-align.
|
|
44
|
+
*/
|
|
45
|
+
const SettingsNav = (props) => {
|
|
46
|
+
const entry = cn("flex items-center gap-2 rounded-md px-2 text-left whitespace-nowrap [&_svg]:size-4 [&_svg]:shrink-0", (props.size ?? "sm") === "sm" ? "h-7 text-xs" : "h-8 text-sm");
|
|
47
|
+
const groups = useMemo(() => {
|
|
48
|
+
const ordered = [];
|
|
49
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
50
|
+
for (const item of props.items) {
|
|
51
|
+
const key = item.group ?? "";
|
|
52
|
+
let bucket = byKey.get(key);
|
|
53
|
+
if (!bucket) {
|
|
54
|
+
bucket = [];
|
|
55
|
+
byKey.set(key, bucket);
|
|
56
|
+
ordered.push({
|
|
57
|
+
key,
|
|
58
|
+
label: item.group
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
bucket.push(item);
|
|
62
|
+
}
|
|
63
|
+
return ordered.map((g) => ({
|
|
64
|
+
...g,
|
|
65
|
+
items: byKey.get(g.key) ?? []
|
|
66
|
+
}));
|
|
67
|
+
}, [props.items]);
|
|
68
|
+
return /* @__PURE__ */ jsx("nav", {
|
|
69
|
+
className: cn("flex shrink-0 flex-col gap-4 md:sticky md:top-0 md:w-48 md:self-start", props.className),
|
|
70
|
+
children: groups.map((group) => /* @__PURE__ */ jsxs("div", {
|
|
71
|
+
className: "flex flex-col gap-0.5",
|
|
72
|
+
children: [group.label ? /* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: "text-muted-foreground px-2 text-[11px] font-semibold tracking-wider uppercase",
|
|
74
|
+
children: group.label
|
|
75
|
+
}) : null, group.items.map((item) => item.disabled ? /* @__PURE__ */ jsxs("span", {
|
|
76
|
+
"aria-disabled": "true",
|
|
77
|
+
className: cn(entry, "text-muted-foreground/50"),
|
|
78
|
+
children: [item.icon, item.label]
|
|
79
|
+
}, item.name) : /* @__PURE__ */ jsxs(Link, {
|
|
80
|
+
href: item.href,
|
|
81
|
+
"aria-current": item.active ? "page" : void 0,
|
|
82
|
+
className: cn(entry, "transition-colors", item.active ? "bg-sidebar-accent text-sidebar-accent-foreground after:bg-sidebar-primary relative font-medium after:absolute after:top-1 after:bottom-1 after:left-0 after:w-[3px] after:rounded-full" : "text-muted-foreground hover:bg-muted/60"),
|
|
83
|
+
children: [item.icon, item.label]
|
|
84
|
+
}, item.name))]
|
|
85
|
+
}, group.key))
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
export { SettingsNav };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=settings-nav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-nav.js","names":[],"sources":["../../../src/components/settings/settings-nav.tsx"],"sourcesContent":["import { cn } from \"@alepha/ui/lib/utils\";\nimport { Link } from \"alepha/react/router\";\nimport { type ReactNode, useMemo } from \"react\";\n\nexport interface SettingsNavItem {\n /**\n * Stable key. The route name when these come from `useNavEntries`.\n */\n name: string;\n\n /**\n * Fully resolved href — every `:param` already substituted. See\n * {@link SettingsNav} for why this component refuses to resolve them itself.\n */\n href: string;\n\n label: ReactNode;\n icon?: ReactNode;\n\n /**\n * Heading this entry sits under. Entries with no group render first, in a\n * block of their own, without a heading.\n */\n group?: string;\n\n /**\n * The current route is on or under this entry.\n */\n active: boolean;\n\n /**\n * Visible but not reachable — rendered muted and inert rather than hidden,\n * so the entry can explain a capability the viewer does not currently have.\n */\n disabled?: boolean;\n}\n\nexport interface SettingsNavProps {\n /**\n * Entries in final display order. Grouping preserves first appearance, so\n * sort before passing — `useNavEntries` already returns them sorted by\n * group order then item order.\n */\n items: SettingsNavItem[];\n\n /**\n * Entry height, matching `SidebarMenuButton`'s own sizes: `sm` is `h-7` with\n * `text-xs`, `default` is `h-8` with `text-sm`.\n *\n * @default \"sm\"\n */\n size?: \"sm\" | \"default\";\n\n className?: string;\n}\n\n/**\n * The left-hand rail of a settings page: a sticky, grouped list of links.\n *\n * ⚠️ **It takes resolved `items`, not a `root` route name, and that is the\n * whole design.** Deriving entries internally from `useNavEntries({ root })`\n * would be a smaller API and works fine for a static subtree such as\n * `/account/*` — but `NavEntry.href` is `page.match`, the raw route\n * *pattern*. Point it at a parameterised subtree like\n * `/:projectSlug/settings/...` and every href in the rail comes out\n * containing a literal `:projectSlug`, which is a dead link that renders\n * perfectly.\n *\n * So resolution is the caller's job and presentation is this component's. A\n * static subtree passes `useNavEntries({ root: \"account\" })` straight through\n * ({@link SettingsNavItem} is structurally a subset of `NavEntry`, so no\n * mapping is needed); a parameterised one passes its own\n * `router.path(name, { params })` list.\n *\n * ### Why this is not built out of `SidebarMenuButton`\n *\n * It reads like the obvious reuse — this rail is a small sidebar, and the\n * sizes and metrics below are deliberately `SidebarMenuButton`'s, so the two\n * look like one family. But the component itself cannot be mounted here:\n *\n * - `SidebarMenuButton` calls `useSidebar()`, which **throws** outside a\n * `SidebarProvider`. Nothing about a static rail needs that provider — it\n * exists to hold collapse state — and mounting one to get a button also\n * registers a global ⌘B handler and starts writing the sidebar cookie. On a\n * page that already sits inside `AppShell` that is a *second* provider, so\n * ⌘B would toggle the wrong sidebar.\n * - Making `useSidebar` tolerate a missing provider, or exporting the button's\n * `cva` to share it, both mean editing `components/ui/sidebar.tsx` — which\n * `yarn w @alepha/ui sync` overwrites wholesale from the upstream registry.\n * The patch would vanish on the next refresh, silently.\n *\n * So the metrics are shared by being written the same, and the coupling is\n * not. If the sizes below ever drift from `sidebarMenuButtonVariants`, that is\n * the thing to re-align.\n */\nexport const SettingsNav = (props: SettingsNavProps) => {\n const size = props.size ?? \"sm\";\n\n /*\n `[&_svg]:size-4` is load-bearing, not cosmetic: `useNavEntries` hands over\n `createElement(Icon)` with no className, and a bare lucide icon defaults to\n 24px — half again the height of the text it sits next to.\n */\n const entry = cn(\n \"flex items-center gap-2 rounded-md px-2 text-left whitespace-nowrap [&_svg]:size-4 [&_svg]:shrink-0\",\n size === \"sm\" ? \"h-7 text-xs\" : \"h-8 text-sm\",\n );\n\n const groups = useMemo(() => {\n const ordered: Array<{ key: string; label?: string }> = [];\n const byKey = new Map<string, SettingsNavItem[]>();\n\n for (const item of props.items) {\n const key = item.group ?? \"\";\n let bucket = byKey.get(key);\n if (!bucket) {\n bucket = [];\n byKey.set(key, bucket);\n ordered.push({ key, label: item.group });\n }\n bucket.push(item);\n }\n\n return ordered.map((g) => ({ ...g, items: byKey.get(g.key) ?? [] }));\n }, [props.items]);\n\n return (\n <nav\n className={cn(\n \"flex shrink-0 flex-col gap-4 md:sticky md:top-0 md:w-48 md:self-start\",\n props.className,\n )}\n >\n {groups.map((group) => (\n <div key={group.key} className=\"flex flex-col gap-0.5\">\n {group.label ? (\n // `px-2` matches the entries below, so the heading and the labels\n // it heads share a left edge.\n <span className=\"text-muted-foreground px-2 text-[11px] font-semibold tracking-wider uppercase\">\n {group.label}\n </span>\n ) : null}\n {group.items.map((item) =>\n item.disabled ? (\n <span\n key={item.name}\n aria-disabled=\"true\"\n className={cn(entry, \"text-muted-foreground/50\")}\n >\n {item.icon}\n {item.label}\n </span>\n ) : (\n <Link\n key={item.name}\n href={item.href}\n aria-current={item.active ? \"page\" : undefined}\n className={cn(\n entry,\n \"transition-colors\",\n item.active\n ? // Same active treatment as `SidebarMenuButton`: the\n // interaction-token fill plus a left bar, not a heavier\n // fill on its own. See the \"Sidebar active item\" block in\n // `styles.css` for why the bar is the part that carries\n // the state: `--sidebar-accent` is spent on hover too, so\n // fill alone renders the current page and the hovered row\n // as one merged shape. Written as utilities here because\n // that CSS keys off `[data-slot=\"sidebar-menu-button\"]`,\n // which this rail deliberately is not (see above).\n \"bg-sidebar-accent text-sidebar-accent-foreground after:bg-sidebar-primary relative font-medium after:absolute after:top-1 after:bottom-1 after:left-0 after:w-[3px] after:rounded-full\"\n : \"text-muted-foreground hover:bg-muted/60\",\n )}\n >\n {item.icon}\n {item.label}\n </Link>\n ),\n )}\n </div>\n ))}\n </nav>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FA,MAAa,eAAe,UAA4B;CAQtD,MAAM,QAAQ,GACZ,wGARW,MAAM,QAAQ,UAShB,OAAO,gBAAgB,aAClC;CAEA,MAAM,SAAS,cAAc;EAC3B,MAAM,UAAkD,CAAC;EACzD,MAAM,wBAAQ,IAAI,IAA+B;EAEjD,KAAK,MAAM,QAAQ,MAAM,OAAO;GAC9B,MAAM,MAAM,KAAK,SAAS;GAC1B,IAAI,SAAS,MAAM,IAAI,GAAG;GAC1B,IAAI,CAAC,QAAQ;IACX,SAAS,CAAC;IACV,MAAM,IAAI,KAAK,MAAM;IACrB,QAAQ,KAAK;KAAE;KAAK,OAAO,KAAK;IAAM,CAAC;GACzC;GACA,OAAO,KAAK,IAAI;EAClB;EAEA,OAAO,QAAQ,KAAK,OAAO;GAAE,GAAG;GAAG,OAAO,MAAM,IAAI,EAAE,GAAG,KAAK,CAAC;EAAE,EAAE;CACrE,GAAG,CAAC,MAAM,KAAK,CAAC;CAEhB,OACE,oBAAC,OAAD;EACE,WAAW,GACT,yEACA,MAAM,SACR;EAEC,UAAA,OAAO,KAAK,UACX,qBAAC,OAAD;GAAqB,WAAU;GAA/B,UAAA,CACG,MAAM,QAGL,oBAAC,QAAD;IAAM,WAAU;IACb,UAAA,MAAM;GACH,CAAA,IACJ,MACH,MAAM,MAAM,KAAK,SAChB,KAAK,WACH,qBAAC,QAAD;IAEE,iBAAc;IACd,WAAW,GAAG,OAAO,0BAA0B;IAHjD,UAAA,CAKG,KAAK,MACL,KAAK,KACF;GANC,GAAA,KAAK,IAMN,IAEN,qBAAC,MAAD;IAEE,MAAM,KAAK;IACX,gBAAc,KAAK,SAAS,SAAS,KAAA;IACrC,WAAW,GACT,OACA,qBACA,KAAK,SAUD,2LACA,yCACN;IAnBF,UAAA,CAqBG,KAAK,MACL,KAAK,KACF;GAtBC,GAAA,KAAK,IAsBN,CAEV,CACG;EA7CK,GAAA,MAAM,GA6CX,CACN;CACE,CAAA;AAET"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface SettingsRowProps {
|
|
3
|
+
/**
|
|
4
|
+
* What the row is about. Rendered as the emphasised left-hand text.
|
|
5
|
+
*/
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* One line of explanation under the label. Omit when the label says it all
|
|
9
|
+
* — an empty helper line is worse than none.
|
|
10
|
+
*/
|
|
11
|
+
description?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* `id` of the form control this row labels. Set it whenever `children` is an
|
|
14
|
+
* input: the label then renders as a real `<label htmlFor>` rather than a
|
|
15
|
+
* `<span>`, which is what gives the control an accessible name and makes
|
|
16
|
+
* clicking the label focus it.
|
|
17
|
+
*
|
|
18
|
+
* Without it the row is a `<span>` — correct for a row whose control is a
|
|
19
|
+
* button or a read-only value, where the button carries its own name and a
|
|
20
|
+
* `<label>` pointing at nothing would be worse than none.
|
|
21
|
+
*/
|
|
22
|
+
htmlFor?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The control this row exists for: a button, a switch, a badge, a value.
|
|
25
|
+
* Sits right of the label on `sm` and up, and underneath it below that.
|
|
26
|
+
*/
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* One line of a settings card: label and optional help on the left, a single
|
|
32
|
+
* control on the right.
|
|
33
|
+
*
|
|
34
|
+
* The grid is `minmax(0,1fr) auto`, not `justify-between`. The difference
|
|
35
|
+
* matters when the label is long: `minmax(0,…)` lets the text column shrink
|
|
36
|
+
* and wrap, where a flex row would let it push the control off the card. It
|
|
37
|
+
* collapses to a stacked `flex-col` below `sm`, because a button crushed into
|
|
38
|
+
* a 90px column is worse than a button on its own line.
|
|
39
|
+
*
|
|
40
|
+
* Rows carry all the vertical padding (`py-3`) and {@link SettingsSection}'s
|
|
41
|
+
* card carries none (`py-0`) — see that component for why the two must not
|
|
42
|
+
* both have it.
|
|
43
|
+
*/
|
|
44
|
+
export declare const SettingsRow: (props: SettingsRowProps) => import("react").JSX.Element;
|
|
45
|
+
//# sourceMappingURL=settings-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-row.d.ts","sourceRoot":"","sources":["../../../src/components/settings/settings-row.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,gCA6BlD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { CardContent } from "../ui/card.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/settings/settings-row.tsx
|
|
5
|
+
/**
|
|
6
|
+
* One line of a settings card: label and optional help on the left, a single
|
|
7
|
+
* control on the right.
|
|
8
|
+
*
|
|
9
|
+
* The grid is `minmax(0,1fr) auto`, not `justify-between`. The difference
|
|
10
|
+
* matters when the label is long: `minmax(0,…)` lets the text column shrink
|
|
11
|
+
* and wrap, where a flex row would let it push the control off the card. It
|
|
12
|
+
* collapses to a stacked `flex-col` below `sm`, because a button crushed into
|
|
13
|
+
* a 90px column is worse than a button on its own line.
|
|
14
|
+
*
|
|
15
|
+
* Rows carry all the vertical padding (`py-3`) and {@link SettingsSection}'s
|
|
16
|
+
* card carries none (`py-0`) — see that component for why the two must not
|
|
17
|
+
* both have it.
|
|
18
|
+
*/
|
|
19
|
+
const SettingsRow = (props) => {
|
|
20
|
+
return /* @__PURE__ */ jsxs(CardContent, {
|
|
21
|
+
className: cn("flex flex-col gap-3 px-4 py-3 sm:grid sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:gap-6", props.className),
|
|
22
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
23
|
+
className: "flex flex-col gap-0.5",
|
|
24
|
+
children: [props.htmlFor ? /* @__PURE__ */ jsx("label", {
|
|
25
|
+
htmlFor: props.htmlFor,
|
|
26
|
+
className: "text-sm font-medium",
|
|
27
|
+
children: props.label
|
|
28
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
29
|
+
className: "text-sm font-medium",
|
|
30
|
+
children: props.label
|
|
31
|
+
}), props.description ? /* @__PURE__ */ jsx("span", {
|
|
32
|
+
className: "text-muted-foreground text-xs",
|
|
33
|
+
children: props.description
|
|
34
|
+
}) : null]
|
|
35
|
+
}), props.children ? /* @__PURE__ */ jsx("div", {
|
|
36
|
+
className: "flex justify-start sm:justify-end",
|
|
37
|
+
children: props.children
|
|
38
|
+
}) : null]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { SettingsRow };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=settings-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-row.js","names":[],"sources":["../../../src/components/settings/settings-row.tsx"],"sourcesContent":["import { CardContent } from \"@alepha/ui/components/ui/card\";\nimport { cn } from \"@alepha/ui/lib/utils\";\nimport type { ReactNode } from \"react\";\n\nexport interface SettingsRowProps {\n /**\n * What the row is about. Rendered as the emphasised left-hand text.\n */\n label: ReactNode;\n\n /**\n * One line of explanation under the label. Omit when the label says it all\n * — an empty helper line is worse than none.\n */\n description?: ReactNode;\n\n /**\n * `id` of the form control this row labels. Set it whenever `children` is an\n * input: the label then renders as a real `<label htmlFor>` rather than a\n * `<span>`, which is what gives the control an accessible name and makes\n * clicking the label focus it.\n *\n * Without it the row is a `<span>` — correct for a row whose control is a\n * button or a read-only value, where the button carries its own name and a\n * `<label>` pointing at nothing would be worse than none.\n */\n htmlFor?: string;\n\n /**\n * The control this row exists for: a button, a switch, a badge, a value.\n * Sits right of the label on `sm` and up, and underneath it below that.\n */\n children?: ReactNode;\n\n className?: string;\n}\n\n/**\n * One line of a settings card: label and optional help on the left, a single\n * control on the right.\n *\n * The grid is `minmax(0,1fr) auto`, not `justify-between`. The difference\n * matters when the label is long: `minmax(0,…)` lets the text column shrink\n * and wrap, where a flex row would let it push the control off the card. It\n * collapses to a stacked `flex-col` below `sm`, because a button crushed into\n * a 90px column is worse than a button on its own line.\n *\n * Rows carry all the vertical padding (`py-3`) and {@link SettingsSection}'s\n * card carries none (`py-0`) — see that component for why the two must not\n * both have it.\n */\nexport const SettingsRow = (props: SettingsRowProps) => {\n return (\n <CardContent\n className={cn(\n \"flex flex-col gap-3 px-4 py-3 sm:grid sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:gap-6\",\n props.className,\n )}\n >\n <div className=\"flex flex-col gap-0.5\">\n {props.htmlFor ? (\n <label htmlFor={props.htmlFor} className=\"text-sm font-medium\">\n {props.label}\n </label>\n ) : (\n <span className=\"text-sm font-medium\">{props.label}</span>\n )}\n {props.description ? (\n <span className=\"text-muted-foreground text-xs\">\n {props.description}\n </span>\n ) : null}\n </div>\n {props.children ? (\n <div className=\"flex justify-start sm:justify-end\">\n {props.children}\n </div>\n ) : null}\n </CardContent>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmDA,MAAa,eAAe,UAA4B;CACtD,OACE,qBAAC,aAAD;EACE,WAAW,GACT,oGACA,MAAM,SACR;EAJF,UAAA,CAME,qBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACG,MAAM,UACL,oBAAC,SAAD;IAAO,SAAS,MAAM;IAAS,WAAU;IACtC,UAAA,MAAM;GACF,CAAA,IAEP,oBAAC,QAAD;IAAM,WAAU;IAAuB,UAAA,MAAM;GAAY,CAAA,GAE1D,MAAM,cACL,oBAAC,QAAD;IAAM,WAAU;IACb,UAAA,MAAM;GACH,CAAA,IACJ,IACD;EACJ,CAAA,GAAA,MAAM,WACL,oBAAC,OAAD;GAAK,WAAU;GACZ,UAAA,MAAM;EACJ,CAAA,IACH,IACO;;AAEjB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface SettingsSectionProps {
|
|
3
|
+
/**
|
|
4
|
+
* Heading above the card. Optional — a page whose first section needs no
|
|
5
|
+
* heading (because the page title already says it) omits it.
|
|
6
|
+
*/
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* One line under the title, for context the rows themselves should not
|
|
10
|
+
* each repeat.
|
|
11
|
+
*/
|
|
12
|
+
description?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* {@link SettingsRow}s. Anything else works too, but the divider and the
|
|
15
|
+
* padding contract below assume rows.
|
|
16
|
+
*/
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A titled group of settings rows in one bordered card — the GitHub-settings
|
|
22
|
+
* shape.
|
|
23
|
+
*
|
|
24
|
+
* ⚠️ **The card is `py-0` and that is deliberate.** `Card` ships its own
|
|
25
|
+
* vertical padding (`py-(--card-spacing)`), and every {@link SettingsRow}
|
|
26
|
+
* brings `py-3`. Leave both on and the two stack into a visibly thick blank
|
|
27
|
+
* band at the top and bottom of the card. `py-0` opts the card out so each
|
|
28
|
+
* row's own padding is the only vertical space, which is also what makes
|
|
29
|
+
* `divide-y` land flush between rows.
|
|
30
|
+
*
|
|
31
|
+
* The rule is one or the other, never both — so do **not** "fix" this to a
|
|
32
|
+
* numeric `py-4` / `py-3`. Several pages in `apps/lore`'s project settings did
|
|
33
|
+
* exactly that and they are the ones that look wrong next to these.
|
|
34
|
+
*/
|
|
35
|
+
export declare const SettingsSection: (props: SettingsSectionProps) => import("react").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=settings-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-section.d.ts","sourceRoot":"","sources":["../../../src/components/settings/settings-section.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,UAAW,oBAAoB,gCAS1D,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { Card } from "../ui/card.js";
|
|
3
|
+
import { settingsCardEdge } from "./settings-card-edge.js";
|
|
4
|
+
import { SettingsHeading } from "./settings-heading.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/settings/settings-section.tsx
|
|
7
|
+
/**
|
|
8
|
+
* A titled group of settings rows in one bordered card — the GitHub-settings
|
|
9
|
+
* shape.
|
|
10
|
+
*
|
|
11
|
+
* ⚠️ **The card is `py-0` and that is deliberate.** `Card` ships its own
|
|
12
|
+
* vertical padding (`py-(--card-spacing)`), and every {@link SettingsRow}
|
|
13
|
+
* brings `py-3`. Leave both on and the two stack into a visibly thick blank
|
|
14
|
+
* band at the top and bottom of the card. `py-0` opts the card out so each
|
|
15
|
+
* row's own padding is the only vertical space, which is also what makes
|
|
16
|
+
* `divide-y` land flush between rows.
|
|
17
|
+
*
|
|
18
|
+
* The rule is one or the other, never both — so do **not** "fix" this to a
|
|
19
|
+
* numeric `py-4` / `py-3`. Several pages in `apps/lore`'s project settings did
|
|
20
|
+
* exactly that and they are the ones that look wrong next to these.
|
|
21
|
+
*/
|
|
22
|
+
const SettingsSection = (props) => {
|
|
23
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: cn("flex flex-col gap-2", props.className),
|
|
25
|
+
children: [/* @__PURE__ */ jsx(SettingsHeading, {
|
|
26
|
+
title: props.title,
|
|
27
|
+
description: props.description
|
|
28
|
+
}), /* @__PURE__ */ jsx(Card, {
|
|
29
|
+
className: cn(settingsCardEdge, "gap-0 divide-y py-0"),
|
|
30
|
+
children: props.children
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { SettingsSection };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=settings-section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-section.js","names":[],"sources":["../../../src/components/settings/settings-section.tsx"],"sourcesContent":["import { settingsCardEdge } from \"@alepha/ui/components/settings/settings-card-edge.ts\";\nimport { SettingsHeading } from \"@alepha/ui/components/settings/settings-heading\";\nimport { Card } from \"@alepha/ui/components/ui/card\";\nimport { cn } from \"@alepha/ui/lib/utils\";\nimport type { ReactNode } from \"react\";\n\nexport interface SettingsSectionProps {\n /**\n * Heading above the card. Optional — a page whose first section needs no\n * heading (because the page title already says it) omits it.\n */\n title?: ReactNode;\n\n /**\n * One line under the title, for context the rows themselves should not\n * each repeat.\n */\n description?: ReactNode;\n\n /**\n * {@link SettingsRow}s. Anything else works too, but the divider and the\n * padding contract below assume rows.\n */\n children: ReactNode;\n\n className?: string;\n}\n\n/**\n * A titled group of settings rows in one bordered card — the GitHub-settings\n * shape.\n *\n * ⚠️ **The card is `py-0` and that is deliberate.** `Card` ships its own\n * vertical padding (`py-(--card-spacing)`), and every {@link SettingsRow}\n * brings `py-3`. Leave both on and the two stack into a visibly thick blank\n * band at the top and bottom of the card. `py-0` opts the card out so each\n * row's own padding is the only vertical space, which is also what makes\n * `divide-y` land flush between rows.\n *\n * The rule is one or the other, never both — so do **not** \"fix\" this to a\n * numeric `py-4` / `py-3`. Several pages in `apps/lore`'s project settings did\n * exactly that and they are the ones that look wrong next to these.\n */\nexport const SettingsSection = (props: SettingsSectionProps) => {\n return (\n <div className={cn(\"flex flex-col gap-2\", props.className)}>\n <SettingsHeading title={props.title} description={props.description} />\n <Card className={cn(settingsCardEdge, \"gap-0 divide-y py-0\")}>\n {props.children}\n </Card>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,mBAAmB,UAAgC;CAC9D,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,uBAAuB,MAAM,SAAS;EAAzD,UAAA,CACE,oBAAC,iBAAD;GAAiB,OAAO,MAAM;GAAO,aAAa,MAAM;EAAc,CAAA,GACtE,oBAAC,MAAD;GAAM,WAAW,GAAG,kBAAkB,qBAAqB;GACxD,UAAA,MAAM;EACH,CAAA,CACH;;AAET"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
2
|
+
declare function Accordion({ className, ...props }: AccordionPrimitive.Root.Props): import("react").JSX.Element;
|
|
3
|
+
declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): import("react").JSX.Element;
|
|
4
|
+
declare function AccordionTrigger({ className, children, ...props }: AccordionPrimitive.Trigger.Props): import("react").JSX.Element;
|
|
5
|
+
declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.Panel.Props): import("react").JSX.Element;
|
|
6
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
7
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG3E,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,IAAI,CAAC,KAAK,+BAQxE;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,IAAI,CAAC,KAAK,+BAQ5E;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,OAAO,CAAC,KAAK,+BAuBlC;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,KAAK,CAAC,KAAK,+BAiBhC;AAED,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}
|