themelia-react-ui 1.0.1 → 2.0.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/CHANGELOG.md +417 -0
- package/README.md +67 -16
- package/dist/{accordion-B-5Focs8.js → accordion-CQXVcd7Q.js} +15 -15
- package/dist/accordion-CQXVcd7Q.js.map +1 -0
- package/dist/action-menu-BTpyPWJ2.js +264 -0
- package/dist/action-menu-BTpyPWJ2.js.map +1 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js +68 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
- package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-2PQ2fItc.js} +206 -215
- package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
- package/dist/{app-shell-at8Kt4l_.js → app-shell-BE_j8-AT.js} +11 -10
- package/dist/app-shell-BE_j8-AT.js.map +1 -0
- package/dist/{attachment-BO2R47wn.js → attachment-q69dlt5Y.js} +14 -14
- package/dist/attachment-q69dlt5Y.js.map +1 -0
- package/dist/auth-M3vGMgDR.js +723 -0
- package/dist/auth-M3vGMgDR.js.map +1 -0
- package/dist/{avatar-Bpzty83c.js → avatar-djdaaQ_s.js} +15 -13
- package/dist/avatar-djdaaQ_s.js.map +1 -0
- package/dist/{badge-BZXZT9wd.js → badge-0tATj-tW.js} +9 -9
- package/dist/badge-0tATj-tW.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/buttons.js +3 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +33 -35
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +246 -222
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +3 -3
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +94 -92
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +53 -53
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +84 -82
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +7 -7
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/blocks/admin.js +228 -219
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +182 -212
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +665 -620
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +2 -2
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1439 -1553
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +1 -1
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +88 -97
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BG_FfMK4.js} +10 -9
- package/dist/breadcrumbs-BG_FfMK4.js.map +1 -0
- package/dist/button-BS3KDg00.js +674 -0
- package/dist/button-BS3KDg00.js.map +1 -0
- package/dist/{button-BS6l5JUw.js → button-R9CCoH7A.js} +3 -3
- package/dist/button-R9CCoH7A.js.map +1 -0
- package/dist/buttons-DS0ZIwJ_.js +99 -0
- package/dist/buttons-DS0ZIwJ_.js.map +1 -0
- package/dist/{cards-Cum56XOF.js → cards-QoJ4syG9.js} +12 -12
- package/dist/{cards-Cum56XOF.js.map → cards-QoJ4syG9.js.map} +1 -1
- package/dist/chart-DwYRKKc-.js +152 -0
- package/dist/chart-DwYRKKc-.js.map +1 -0
- package/dist/checkbox-B7ygNTYp.js +35 -0
- package/dist/checkbox-B7ygNTYp.js.map +1 -0
- package/dist/choice-inputs-DrJ17tpL.js +752 -0
- package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
- package/dist/{code-block-xHKbAJDj.js → code-block-CD0B7M93.js} +27 -27
- package/dist/code-block-CD0B7M93.js.map +1 -0
- package/dist/{collapsible-DsnktFNv.js → collapsible-oMUGM4tr.js} +3 -3
- package/dist/{collapsible-DsnktFNv.js.map → collapsible-oMUGM4tr.js.map} +1 -1
- package/dist/{collection-content-C4fthJV_.js → collection-content-Ys-OZOkY.js} +3 -3
- package/dist/{collection-content-C4fthJV_.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
- package/dist/combobox-6dvVny2q.js +272 -0
- package/dist/combobox-6dvVny2q.js.map +1 -0
- package/dist/combobox-CB7039j7.js +865 -0
- package/dist/combobox-CB7039j7.js.map +1 -0
- package/dist/{command-C0xe7u9B.js → command-kPMPjIxJ.js} +35 -31
- package/dist/command-kPMPjIxJ.js.map +1 -0
- package/dist/{comments-DviPLnwy.js → comments-You0Bzbr.js} +434 -409
- package/dist/comments-You0Bzbr.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +7 -2
- package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/buttons/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +10 -19
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
- package/dist/components/base/cards/card.recipes.d.ts +13 -5
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
- package/dist/components/base/cards/smart-card.types.d.ts +1 -1
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
- package/dist/components/base/date-pickers/datepicker.types.d.ts +16 -3
- package/dist/components/base/display/alert-dialog.d.ts +8 -2
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +12 -5
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-field.d.ts +1 -0
- package/dist/components/base/forms/form-sizing.d.ts +35 -3
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
- package/dist/components/base/navigation/tabs.d.ts +3 -5
- package/dist/components/base/popover/popover.recipes.d.ts +3 -3
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +14 -5
- package/dist/components/base/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/table/index.d.ts +1 -1
- package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
- package/dist/components/base/upload/upload.recipes.d.ts +11 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/types.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/features/combobox/components/error-message.d.ts +1 -1
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
- package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.types.d.ts +9 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +46 -22
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +2 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
- package/dist/components/layout/auth/auth.types.d.ts +1 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts +0 -1
- package/dist/components/layout/page/page.types.d.ts +62 -6
- package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
- package/dist/components/primitives/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +13 -2
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/label.d.ts +3 -0
- package/dist/components/typography/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +23 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +37 -5
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/overlay.recipes.d.ts +15 -2
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +2 -1
- package/dist/container.recipes-D9t8MHR3.js +27 -0
- package/dist/container.recipes-D9t8MHR3.js.map +1 -0
- package/dist/{containers-6s-ucRQQ.js → containers-D_L4mTVb.js} +34 -57
- package/dist/containers-D_L4mTVb.js.map +1 -0
- package/dist/control-group-recipes-DBXmfh2E.js +21 -0
- package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
- package/dist/{copyable-B7SBXJMr.js → copyable-DDjTeW_j.js} +6 -6
- package/dist/{copyable-B7SBXJMr.js.map → copyable-DDjTeW_j.js.map} +1 -1
- package/dist/data-display-3xWQUnMA.js +1335 -0
- package/dist/data-display-3xWQUnMA.js.map +1 -0
- package/dist/date-picker-DrDFj8Lo.js +1527 -0
- package/dist/date-picker-DrDFj8Lo.js.map +1 -0
- package/dist/date-pickers-CnFCb0n2.js +174 -0
- package/dist/date-pickers-CnFCb0n2.js.map +1 -0
- package/dist/date-uf3z37Nm.js +144 -0
- package/dist/date-uf3z37Nm.js.map +1 -0
- package/dist/{display-CFM5myut.js → display-DrdvPwF0.js} +25 -25
- package/dist/display-DrdvPwF0.js.map +1 -0
- package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-CURh59jb.js} +22 -15
- package/dist/dropdown-menu-CURh59jb.js.map +1 -0
- package/dist/features/activities.js +177 -163
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +187 -183
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +25 -23
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -355
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +346 -354
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +225 -227
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +29 -29
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +59 -58
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +898 -900
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1412 -1444
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +51 -49
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -97
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +13 -13
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +187 -183
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +508 -503
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DWUkgEjR.js → feedback-C7nR0UtT.js} +30 -31
- package/dist/feedback-C7nR0UtT.js.map +1 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
- package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-C-MFBX_8.js} +5 -5
- package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
- package/dist/{filters-BhsUtsxW.js → filters-Da-gNPsE.js} +760 -765
- package/dist/filters-Da-gNPsE.js.map +1 -0
- package/dist/{form-field-Bn7ZH1rA.js → form-field-VZRULhUK.js} +20 -12
- package/dist/form-field-VZRULhUK.js.map +1 -0
- package/dist/form-sizing-uWP4lzVh.js +126 -0
- package/dist/form-sizing-uWP4lzVh.js.map +1 -0
- package/dist/{forms-B7pzS25o.js → forms-DDeEnXSY.js} +38 -38
- package/dist/forms-DDeEnXSY.js.map +1 -0
- package/dist/forms-numeric-D3CO60IF.js +905 -0
- package/dist/forms-numeric-D3CO60IF.js.map +1 -0
- package/dist/{header-C59QZyxV.js → header-2ycNqGOR.js} +42 -37
- package/dist/header-2ycNqGOR.js.map +1 -0
- package/dist/{hooks-CM1Vp9Pe.js → hooks-DQ5SPwZw.js} +2 -2
- package/dist/{hooks-CM1Vp9Pe.js.map → hooks-DQ5SPwZw.js.map} +1 -1
- package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
- package/dist/http-CdEIHyQf.js.map +1 -0
- package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-DKlaKXoo.js} +4 -4
- package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/input-BoLm9Hks.js +20 -0
- package/dist/input-BoLm9Hks.js.map +1 -0
- package/dist/input-DhQdBnV3.js +255 -0
- package/dist/input-DhQdBnV3.js.map +1 -0
- package/dist/item-xzh8Df65.js +264 -0
- package/dist/item-xzh8Df65.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +46 -10
- package/dist/lib/control-group-recipes.d.ts +22 -0
- package/dist/lib/field-affordance-recipes.d.ts +70 -2
- package/dist/lib/field-state-recipes.d.ts +6 -4
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/navigation-row-recipes.d.ts +3 -2
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -2
- package/dist/lib/surface-recipes.d.ts +13 -8
- package/dist/lib/token-merge.generated.d.ts +144 -2
- package/dist/lib/track-recipes.d.ts +1 -1
- package/dist/lib/ui-provider/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +9 -4
- package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DQUQ0m3O.js +201 -0
- package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
- package/dist/{mentions-B8Ko-fhS.js → mentions-DwnO1hh4.js} +40 -39
- package/dist/{mentions-B8Ko-fhS.js.map → mentions-DwnO1hh4.js.map} +1 -1
- package/dist/message-YfFmbXNP.js +127 -0
- package/dist/message-YfFmbXNP.js.map +1 -0
- package/dist/{navigation-BUIn2Qxx.js → navigation-Cbp5V8gG.js} +27 -28
- package/dist/navigation-Cbp5V8gG.js.map +1 -0
- package/dist/navigation-Cs1npsPm.js +300 -0
- package/dist/navigation-Cs1npsPm.js.map +1 -0
- package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DlU-4QYO.js} +3 -3
- package/dist/navigation-row-recipes-DlU-4QYO.js.map +1 -0
- package/dist/number-CKRBYmZK.js +352 -0
- package/dist/number-CKRBYmZK.js.map +1 -0
- package/dist/overlay.recipes-CNO2S9V6.js +34 -0
- package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
- package/dist/overlays-DhZO7N-I.js +994 -0
- package/dist/overlays-DhZO7N-I.js.map +1 -0
- package/dist/page-C6R_8jFt.js +325 -0
- package/dist/page-C6R_8jFt.js.map +1 -0
- package/dist/{page-header-DQRa0jug.js → page-header-hUTzcRZX.js} +12 -12
- package/dist/page-header-hUTzcRZX.js.map +1 -0
- package/dist/{pagination-C29vvt3I.js → pagination-Cm0jqa3I.js} +21 -21
- package/dist/pagination-Cm0jqa3I.js.map +1 -0
- package/dist/{popover-CoLDEg19.js → popover-Dcv_9jxr.js} +23 -22
- package/dist/popover-Dcv_9jxr.js.map +1 -0
- package/dist/{popover-menu-GLIQTJTx.js → popover-menu-DnRFKnHP.js} +6 -6
- package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
- package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-wmbvL8Ah.js} +5 -5
- package/dist/popover.recipes-wmbvL8Ah.js.map +1 -0
- package/dist/primitives-BHrwQXFC.js +379 -0
- package/dist/primitives-BHrwQXFC.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BOe8l_FZ.js → progress-Br9WTFya.js} +12 -11
- package/dist/progress-Br9WTFya.js.map +1 -0
- package/dist/{receipt-BM8xsGFy.js → receipt-CV89q1fs.js} +8 -8
- package/dist/{receipt-BM8xsGFy.js.map → receipt-CV89q1fs.js.map} +1 -1
- package/dist/rich-text-editor-CF8QYt5p.js +574 -0
- package/dist/rich-text-editor-CF8QYt5p.js.map +1 -0
- package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-CnrbmTS1.js} +35 -26
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +1 -0
- package/dist/{rich-text-B7sBAdDG.js → rich-text-j-FGAeZW.js} +4 -4
- package/dist/{rich-text-B7sBAdDG.js.map → rich-text-j-FGAeZW.js.map} +1 -1
- package/dist/{scroll-area-BheMQ270.js → scroll-area-DRdr16Pt.js} +3 -3
- package/dist/scroll-area-DRdr16Pt.js.map +1 -0
- package/dist/{separator-DO0EbCEm.js → separator-BMEvwnSX.js} +2 -2
- package/dist/{separator-DO0EbCEm.js.map → separator-BMEvwnSX.js.map} +1 -1
- package/dist/{separator-Gk_WXH-l.js → separator-Do5GWDYi.js} +4 -4
- package/dist/separator-Do5GWDYi.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +4 -0
- package/dist/services/actions.js +8 -3
- package/dist/services/actions.js.map +1 -1
- package/dist/{settings-BnCyyPOJ.js → settings-DHk0L2MF.js} +20 -19
- package/dist/settings-DHk0L2MF.js.map +1 -0
- package/dist/sheet-DRFNY1_D.js +207 -0
- package/dist/sheet-DRFNY1_D.js.map +1 -0
- package/dist/sidebar-Cb8WzOvE.js +511 -0
- package/dist/sidebar-Cb8WzOvE.js.map +1 -0
- package/dist/{sidebar-DPR7fmqN.js → sidebar-Crc9M9JV.js} +220 -201
- package/dist/sidebar-Crc9M9JV.js.map +1 -0
- package/dist/{skeleton-CmT1ppqb.js → skeleton-DVMXr15h.js} +5 -5
- package/dist/{skeleton-CmT1ppqb.js.map → skeleton-DVMXr15h.js.map} +1 -1
- package/dist/smart-card-Bek-TwUp.js +599 -0
- package/dist/smart-card-Bek-TwUp.js.map +1 -0
- package/dist/{spinner-BY9HbUEh.js → spinner-CmTAbEp0.js} +8 -6
- package/dist/spinner-CmTAbEp0.js.map +1 -0
- package/dist/{structure-MvKVq-oL.js → structure-hzCW-XsV.js} +3 -3
- package/dist/{structure-MvKVq-oL.js.map → structure-hzCW-XsV.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-recipes-DOdoBXGm.js +28 -0
- package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
- package/dist/table-D6zKeYQX.js +162 -0
- package/dist/table-D6zKeYQX.js.map +1 -0
- package/dist/table-Dn4XSrSB.js +1444 -0
- package/dist/table-Dn4XSrSB.js.map +1 -0
- package/dist/tabs-Dk8E_knt.js +189 -0
- package/dist/tabs-Dk8E_knt.js.map +1 -0
- package/dist/text-inputs-BFpku0Qd.js +331 -0
- package/dist/text-inputs-BFpku0Qd.js.map +1 -0
- package/dist/{text.styles-BwB7vAF2.js → text.styles-g4He6UIW.js} +26 -15
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +90 -124
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-B9ICkQcV.js → timelines-CxuAFIc2.js} +97 -104
- package/dist/timelines-CxuAFIc2.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BdWSaoFT.js → tree-BotPlyiD.js} +13 -13
- package/dist/{tree-BdWSaoFT.js.map → tree-BotPlyiD.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-CAr3dQhX.js +116 -0
- package/dist/typography-CAr3dQhX.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-CftIB6TY.js → ui-provider-D2_TeLqw.js} +22 -22
- package/dist/ui-provider-D2_TeLqw.js.map +1 -0
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-D8Za5x_c.js → upload-B0WHW7ak.js} +278 -274
- package/dist/upload-B0WHW7ak.js.map +1 -0
- package/dist/{upload-queue-hIIYBLS7.js → upload-queue-BHZ_wBfd.js} +72 -75
- package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
- package/dist/{usage-card-DnmnJ58D.js → usage-card-U0YBLTNT.js} +31 -33
- package/dist/usage-card-U0YBLTNT.js.map +1 -0
- package/dist/utils-Cospvlj1.js +4445 -0
- package/dist/utils-Cospvlj1.js.map +1 -0
- package/dist/value-inputs-CjfzGMsN.js +854 -0
- package/dist/value-inputs-CjfzGMsN.js.map +1 -0
- package/dist/value-typography-Deb3yQZg.js +116 -0
- package/dist/value-typography-Deb3yQZg.js.map +1 -0
- package/dist/{workspace-C1PZmk8L.js → workspace-YoFjXi6i.js} +97 -105
- package/dist/workspace-YoFjXi6i.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +123 -119
- package/docs/consumer-skill/examples/analytics.tsx +34 -0
- package/docs/consumer-skill/examples/app-layout.tsx +42 -14
- package/docs/consumer-skill/examples/detail.tsx +20 -5
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +37 -3
- package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
- package/docs/consumer-skill/examples/website.tsx +56 -0
- package/docs/consumer-skill/references/analytics.md +70 -0
- package/docs/consumer-skill/references/composition.md +195 -9
- package/docs/consumer-skill/references/design-contract.md +33 -7
- package/docs/consumer-skill/references/discovery.md +80 -5
- package/docs/consumer-skill/references/installation.md +22 -0
- package/docs/consumer-skill/references/integration.md +46 -1
- package/docs/consumer-skill/references/public-api.json +2083 -237
- package/docs/consumer-skill/references/review.md +74 -6
- package/docs/consumer-skill/references/theming.md +59 -8
- package/docs/consumer-skill/references/tokens.json +180 -9
- package/docs/consumer-skill/references/workflows.md +34 -0
- package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +271 -18
- package/docs/consumer-skill/scripts/discovery.mjs +69 -9
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
- package/package.json +11 -6
- package/dist/accordion-B-5Focs8.js.map +0 -1
- package/dist/action-menu-Cx3SdfbN.js +0 -265
- package/dist/action-menu-Cx3SdfbN.js.map +0 -1
- package/dist/affordance-geometry.generated-D8Jcfb0G.js +0 -32
- package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +0 -1
- package/dist/ai-artifact-B5tPpXnS.js.map +0 -1
- package/dist/app-shell-at8Kt4l_.js.map +0 -1
- package/dist/attachment-BO2R47wn.js.map +0 -1
- package/dist/auth-OFwWSAap.js +0 -704
- package/dist/auth-OFwWSAap.js.map +0 -1
- package/dist/avatar-Bpzty83c.js.map +0 -1
- package/dist/badge-BZXZT9wd.js.map +0 -1
- package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
- package/dist/button-BS6l5JUw.js.map +0 -1
- package/dist/buttons-Co6GavvM.js +0 -674
- package/dist/buttons-Co6GavvM.js.map +0 -1
- package/dist/chart-DVfcwQu6.js +0 -149
- package/dist/chart-DVfcwQu6.js.map +0 -1
- package/dist/checkbox-BavDRjF7.js +0 -34
- package/dist/checkbox-BavDRjF7.js.map +0 -1
- package/dist/choice-inputs-CC7XqPQO.js +0 -619
- package/dist/choice-inputs-CC7XqPQO.js.map +0 -1
- package/dist/code-block-xHKbAJDj.js.map +0 -1
- package/dist/combobox-DEbdr-3u.js +0 -273
- package/dist/combobox-DEbdr-3u.js.map +0 -1
- package/dist/combobox-xv3yJbzl.js +0 -850
- package/dist/combobox-xv3yJbzl.js.map +0 -1
- package/dist/command-C0xe7u9B.js.map +0 -1
- package/dist/comments-DviPLnwy.js.map +0 -1
- package/dist/containers-6s-ucRQQ.js.map +0 -1
- package/dist/data-display-cWIRdeaf.js +0 -1129
- package/dist/data-display-cWIRdeaf.js.map +0 -1
- package/dist/date-BFNMnrS5.js +0 -140
- package/dist/date-BFNMnrS5.js.map +0 -1
- package/dist/date-picker-CA6ogMQB.js +0 -1521
- package/dist/date-picker-CA6ogMQB.js.map +0 -1
- package/dist/date-pickers-BPIKLdsD.js +0 -224
- package/dist/date-pickers-BPIKLdsD.js.map +0 -1
- package/dist/display-CFM5myut.js.map +0 -1
- package/dist/dropdown-menu-BlnyHr-9.js.map +0 -1
- package/dist/feedback-DWUkgEjR.js.map +0 -1
- package/dist/field-affordance-recipes-IjzPrCTw.js +0 -17
- package/dist/field-affordance-recipes-IjzPrCTw.js.map +0 -1
- package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
- package/dist/filters-BhsUtsxW.js.map +0 -1
- package/dist/form-field-Bn7ZH1rA.js.map +0 -1
- package/dist/form-sizing-BWs70_a2.js +0 -100
- package/dist/form-sizing-BWs70_a2.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B7pzS25o.js.map +0 -1
- package/dist/forms-numeric-BUBxELBv.js +0 -867
- package/dist/forms-numeric-BUBxELBv.js.map +0 -1
- package/dist/header-C59QZyxV.js.map +0 -1
- package/dist/http-CLTVJc5I.js.map +0 -1
- package/dist/input-WwYQZJzG.js +0 -202
- package/dist/input-WwYQZJzG.js.map +0 -1
- package/dist/input-ci9fIgFH.js +0 -20
- package/dist/input-ci9fIgFH.js.map +0 -1
- package/dist/item-pJ0GsOiJ.js +0 -257
- package/dist/item-pJ0GsOiJ.js.map +0 -1
- package/dist/media-gallery-DhDRgnVZ.js +0 -200
- package/dist/media-gallery-DhDRgnVZ.js.map +0 -1
- package/dist/message-COsdEvXT.js +0 -108
- package/dist/message-COsdEvXT.js.map +0 -1
- package/dist/navigation-BUIn2Qxx.js.map +0 -1
- package/dist/navigation-DBEu4POU.js +0 -267
- package/dist/navigation-DBEu4POU.js.map +0 -1
- package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
- package/dist/number-BNT_BIzJ.js +0 -269
- package/dist/number-BNT_BIzJ.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-B11wZka6.js +0 -982
- package/dist/overlays-B11wZka6.js.map +0 -1
- package/dist/page-BV6ioQg3.js +0 -202
- package/dist/page-BV6ioQg3.js.map +0 -1
- package/dist/page-header-DQRa0jug.js.map +0 -1
- package/dist/pagination-C29vvt3I.js.map +0 -1
- package/dist/popover-CoLDEg19.js.map +0 -1
- package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
- package/dist/primitives-DKPOGVpj.js +0 -330
- package/dist/primitives-DKPOGVpj.js.map +0 -1
- package/dist/progress-BOe8l_FZ.js.map +0 -1
- package/dist/rich-text-editor-CoVrTiSv.js +0 -575
- package/dist/rich-text-editor-CoVrTiSv.js.map +0 -1
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
- package/dist/scroll-area-BheMQ270.js.map +0 -1
- package/dist/select-B2mb-qN2.js +0 -108
- package/dist/select-B2mb-qN2.js.map +0 -1
- package/dist/separator-Gk_WXH-l.js.map +0 -1
- package/dist/settings-BnCyyPOJ.js.map +0 -1
- package/dist/sheet-B-q914Ad.js +0 -205
- package/dist/sheet-B-q914Ad.js.map +0 -1
- package/dist/sidebar-C_2p3Tfj.js +0 -501
- package/dist/sidebar-C_2p3Tfj.js.map +0 -1
- package/dist/sidebar-DPR7fmqN.js.map +0 -1
- package/dist/smart-card-CYLn46e6.js +0 -578
- package/dist/smart-card-CYLn46e6.js.map +0 -1
- package/dist/spinner-BY9HbUEh.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-CQfRr-VL.js +0 -27
- package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
- package/dist/table-BS39xnlq.js +0 -1424
- package/dist/table-BS39xnlq.js.map +0 -1
- package/dist/table-DnlAJ-xR.js +0 -146
- package/dist/table-DnlAJ-xR.js.map +0 -1
- package/dist/tabs-B5cNMWiP.js +0 -187
- package/dist/tabs-B5cNMWiP.js.map +0 -1
- package/dist/text-inputs-Dh9XGyiS.js +0 -331
- package/dist/text-inputs-Dh9XGyiS.js.map +0 -1
- package/dist/text.styles-BwB7vAF2.js.map +0 -1
- package/dist/timelines-B9ICkQcV.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/typography-Cv8MT-82.js +0 -96
- package/dist/typography-Cv8MT-82.js.map +0 -1
- package/dist/ui-provider-CftIB6TY.js.map +0 -1
- package/dist/upload-D8Za5x_c.js.map +0 -1
- package/dist/upload-queue-hIIYBLS7.js.map +0 -1
- package/dist/usage-card-DnmnJ58D.js.map +0 -1
- package/dist/utils-C2EKeIw3.js +0 -72
- package/dist/utils-C2EKeIw3.js.map +0 -1
- package/dist/value-inputs-DX2dbxjj.js +0 -824
- package/dist/value-inputs-DX2dbxjj.js.map +0 -1
- package/dist/workspace-C1PZmk8L.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ConfirmDialogProps } from './overlays.types';
|
|
2
|
-
declare function ConfirmDialogImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, className, contentClassName, initialFocusRef, closeOnEscape, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, tone, showIcon, alertMessage, trigger, destructive, }: ConfirmDialogProps): import("react").JSX.Element;
|
|
2
|
+
declare function ConfirmDialogImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, className, contentClassName, surfaceStyle, initialFocusRef, closeOnEscape, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, tone, showIcon, alertMessage, trigger, destructive, }: ConfirmDialogProps): import("react").JSX.Element;
|
|
3
3
|
export declare const ConfirmDialog: import("react").MemoExoticComponent<typeof ConfirmDialogImpl>;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ActionDrawerProps } from './overlays.types';
|
|
2
|
-
declare function ActionDrawerImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, showCloseButton, className, contentClassName, initialFocusRef, closeOnEscape, closeOnBackdropClick, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, emphasis, tone, showIcon, alertMessage, direction, width, showFooter, modal, trigger, }: ActionDrawerProps): import("react").JSX.Element;
|
|
2
|
+
declare function ActionDrawerImpl({ open, onOpenChange, onClose, children, title, description, visuallyHideHeader, showCloseButton, className, contentClassName, surfaceStyle, initialFocusRef, closeOnEscape, closeOnBackdropClick, strings: customStrings, showCancel, showConfirm, onCancel, onConfirm, onAsyncConfirm, onError, closeOnAsyncComplete, confirmTone, confirmStyle, loading, formId, footer, emphasis, tone, showIcon, alertMessage, direction, width, showFooter, modal, trigger, }: ActionDrawerProps): import("react").JSX.Element;
|
|
3
3
|
export declare const ActionDrawer: import("react").MemoExoticComponent<typeof ActionDrawerImpl>;
|
|
4
4
|
export {};
|
|
@@ -7,8 +7,8 @@ export interface UseOverlayActionsOptions extends Pick<OverlayActionProps, 'onCo
|
|
|
7
7
|
customStrings?: StringsProp<OverlayStrings>;
|
|
8
8
|
emphasis?: boolean;
|
|
9
9
|
tone?: OverlayTone;
|
|
10
|
-
/** Called when `onAsyncConfirm` throws
|
|
11
|
-
*
|
|
10
|
+
/** Called when `onAsyncConfirm` throws; the consumer reports or retries.
|
|
11
|
+
* Without it the library logs the rejection in development only. */
|
|
12
12
|
onError?: (error: unknown) => void;
|
|
13
13
|
}
|
|
14
14
|
export interface UseOverlayActionsReturn {
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
2
|
export type OverlayOpenSetter = Dispatch<SetStateAction<boolean>>;
|
|
3
3
|
export interface OverlayVisibilityProps {
|
|
4
|
+
/** Current visibility. */
|
|
4
5
|
open: boolean;
|
|
5
|
-
/**
|
|
6
|
+
/** Requests a visibility change; spread both onto an overlay. */
|
|
6
7
|
onOpenChange: (open: boolean) => void;
|
|
7
8
|
}
|
|
8
9
|
export interface UseOverlayVisibilityOptions {
|
|
10
|
+
/** Initial visibility when uncontrolled. Default: `false`. */
|
|
9
11
|
defaultOpen?: boolean;
|
|
12
|
+
/** Controlled visibility. Omit to let the hook own it. */
|
|
10
13
|
open?: boolean;
|
|
11
|
-
/** Fired
|
|
14
|
+
/** Fired once for every actual visibility change. */
|
|
12
15
|
onOpenChange?: (open: boolean) => void;
|
|
13
|
-
/** Fired
|
|
16
|
+
/** Fired after a change to open. */
|
|
14
17
|
onOpen?: () => void;
|
|
18
|
+
/** Fired after a change to closed, whatever dismissed the overlay. */
|
|
15
19
|
onClose?: () => void;
|
|
16
20
|
}
|
|
17
21
|
export interface UseOverlayVisibilityReturn {
|
|
@@ -25,10 +29,13 @@ export interface UseOverlayVisibilityReturn {
|
|
|
25
29
|
}
|
|
26
30
|
export type OverlayVisibilityGroupState<TKey extends string = string> = Record<TKey, boolean>;
|
|
27
31
|
export interface UseOverlayVisibilityGroupOptions<TKey extends string = string> {
|
|
32
|
+
/** Initial visibility per key when uncontrolled. */
|
|
28
33
|
defaultOpen?: Partial<Record<TKey, boolean>>;
|
|
34
|
+
/** Controlled visibility per key. */
|
|
29
35
|
open?: Partial<Record<TKey, boolean>>;
|
|
30
|
-
/** Fired
|
|
36
|
+
/** Fired once for every actual change, with the key, its visibility and the next group state. */
|
|
31
37
|
onOpenChange?: (key: TKey, open: boolean, state: OverlayVisibilityGroupState<TKey>) => void;
|
|
38
|
+
/** Opening one key closes the others, for one-at-a-time overlays. Default: `false`. */
|
|
32
39
|
closeOthersOnOpen?: boolean;
|
|
33
40
|
}
|
|
34
41
|
export type UseOverlayVisibilityGroupReturn<TKey extends string = string> = Record<TKey, UseOverlayVisibilityReturn>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { OverlayTone } from './overlays.types';
|
|
2
|
+
/** One glyph and colour per tone, shared by every overlay's opt-in `showIcon`. */
|
|
3
|
+
export declare const overlayToneGlyphs: {
|
|
4
|
+
readonly neutral: {
|
|
5
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
6
|
+
readonly color: "text-muted-foreground";
|
|
7
|
+
readonly surface: "bg-muted";
|
|
8
|
+
};
|
|
9
|
+
readonly destructive: {
|
|
10
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
11
|
+
readonly color: "text-destructive";
|
|
12
|
+
readonly surface: "bg-destructive/10";
|
|
13
|
+
};
|
|
14
|
+
readonly warning: {
|
|
15
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
16
|
+
readonly color: "text-warning-accent";
|
|
17
|
+
readonly surface: "bg-warning/15";
|
|
18
|
+
};
|
|
19
|
+
readonly info: {
|
|
20
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
21
|
+
readonly color: "text-info";
|
|
22
|
+
readonly surface: "bg-info/15";
|
|
23
|
+
};
|
|
24
|
+
readonly success: {
|
|
25
|
+
readonly Glyph: import("lucide-react").LucideIcon;
|
|
26
|
+
readonly color: "text-success";
|
|
27
|
+
readonly surface: "bg-success/15";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Inline tone glyph for a heading row. The wrapper takes the title's own line
|
|
32
|
+
* box (base size, snug leading, `h-lh`), so the glyph centres on the first title
|
|
33
|
+
* line at any density instead of relying on an optical offset.
|
|
34
|
+
*/
|
|
35
|
+
export declare function OverlayToneIcon({ tone }: {
|
|
36
|
+
tone: OverlayTone;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
@@ -34,7 +34,9 @@ export interface OverlayBaseProps {
|
|
|
34
34
|
/**
|
|
35
35
|
* Renders the corner dismiss control. Default: `true`. Set `false` for
|
|
36
36
|
* overlays whose body is the whole surface — a command palette has nowhere
|
|
37
|
-
* to put a floating X without it landing on the content.
|
|
37
|
+
* to put a floating X without it landing on the content. Keep another
|
|
38
|
+
* visible way to dismiss (a cancel action) so touch screen-reader users can
|
|
39
|
+
* leave the overlay.
|
|
38
40
|
*/
|
|
39
41
|
showCloseButton?: boolean;
|
|
40
42
|
/**
|
|
@@ -43,11 +45,15 @@ export interface OverlayBaseProps {
|
|
|
43
45
|
* on the dialog itself, which no className can express.
|
|
44
46
|
*/
|
|
45
47
|
surfaceStyle?: CSSProperties;
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Element to focus on open, instead of the first tabbable node (the first
|
|
50
|
+
* field or action; the corner dismiss control comes last). Accepts a
|
|
51
|
+
* `useRef<HTMLInputElement>(null)` ref directly.
|
|
52
|
+
*/
|
|
53
|
+
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
54
|
+
/** Allows Escape to dismiss. Default: `true`. Set `false` for destructive or in-progress work. */
|
|
49
55
|
closeOnEscape?: boolean;
|
|
50
|
-
/** Allows a backdrop click to dismiss. */
|
|
56
|
+
/** Allows a backdrop click to dismiss. Default: `true`. */
|
|
51
57
|
closeOnBackdropClick?: boolean;
|
|
52
58
|
/** Overrides the overlay's own copy (confirm/cancel labels). */
|
|
53
59
|
strings?: StringsProp<OverlayStrings>;
|
|
@@ -76,8 +82,9 @@ export interface OverlayActionProps {
|
|
|
76
82
|
onConfirm?: () => void;
|
|
77
83
|
/**
|
|
78
84
|
* Awaited confirm. The confirm button shows a spinner and both buttons
|
|
79
|
-
* disable until it settles.
|
|
80
|
-
*
|
|
85
|
+
* disable until it settles. Close, Escape and backdrop dismissal also wait
|
|
86
|
+
* for completion. A rejection leaves the overlay open, restores the actions
|
|
87
|
+
* and is reported through `onError`. Ignored when `onConfirm` is also set.
|
|
81
88
|
*/
|
|
82
89
|
onAsyncConfirm?: () => Promise<void>;
|
|
83
90
|
/** Receives rejected async confirmations so consumers can report or toast them. */
|
|
@@ -91,7 +98,7 @@ export interface OverlayActionProps {
|
|
|
91
98
|
confirmTone?: OverlayButtonTone;
|
|
92
99
|
/** Confirm button fill treatment. */
|
|
93
100
|
confirmStyle?: OverlayButtonStyle;
|
|
94
|
-
/**
|
|
101
|
+
/** Applies the same pending action/dismissal lock for work owned outside the overlay. */
|
|
95
102
|
loading?: boolean;
|
|
96
103
|
/**
|
|
97
104
|
* `id` of a form elsewhere in the tree. The confirm button calls
|
|
@@ -99,37 +106,46 @@ export interface OverlayActionProps {
|
|
|
99
106
|
* `onSubmit` owns the outcome — `onConfirm` and `onAsyncConfirm` do not fire.
|
|
100
107
|
*/
|
|
101
108
|
formId?: string;
|
|
102
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Replaces the generated footer; the consumer owns its action states.
|
|
111
|
+
* Pending dismissal protection still applies. Custom actions that close the
|
|
112
|
+
* overlay use controlled visibility (`useOverlayVisibility`).
|
|
113
|
+
*/
|
|
103
114
|
footer?: ReactNode;
|
|
104
115
|
}
|
|
105
116
|
/** Semantic weight — the header icon and the confirm button's tone. */
|
|
106
117
|
export interface OverlayEmphasisProps {
|
|
107
118
|
/**
|
|
108
|
-
* Lets `tone`
|
|
109
|
-
*
|
|
119
|
+
* Lets `tone` decide the confirm button colour (destructive, warning or
|
|
120
|
+
* success). Without it `confirmTone` decides the button. Default: `false`.
|
|
110
121
|
*/
|
|
111
122
|
emphasis?: boolean;
|
|
112
|
-
/** Semantic tone of the overlay. Default: `'neutral'`. */
|
|
123
|
+
/** Semantic tone of the overlay: the `showIcon` glyph and the `alertMessage` notice. Default: `'neutral'`. */
|
|
113
124
|
tone?: OverlayTone;
|
|
114
|
-
/** Shows the tone's
|
|
125
|
+
/** Shows the tone's glyph beside the title, centred on its first line. Default: `false`. */
|
|
115
126
|
showIcon?: boolean;
|
|
116
127
|
/** Inline notice between the header and the body — a warning or consequence. */
|
|
117
128
|
alertMessage?: string;
|
|
118
129
|
}
|
|
119
130
|
/** A modal dialog with a title, body, and generated action footer. */
|
|
120
131
|
export interface ActionDialogProps extends OverlayBaseProps, OverlayActionProps, OverlayEmphasisProps {
|
|
121
|
-
/** Maximum dialog width. Default: `
|
|
132
|
+
/** Maximum dialog width from the `sm` breakpoint; below it the dialog keeps a 1rem viewport margin. Default: `lg`. */
|
|
122
133
|
size?: OverlaySize;
|
|
123
|
-
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open
|
|
134
|
+
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open`; a string renders a secondary button. */
|
|
124
135
|
trigger?: ReactNode;
|
|
125
136
|
}
|
|
126
137
|
/** An edge-anchored panel for longer work than a dialog comfortably holds. */
|
|
127
138
|
export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps, OverlayEmphasisProps {
|
|
128
139
|
/** Edge the drawer enters from. Default: `right`. */
|
|
129
140
|
direction?: DrawerDirection;
|
|
130
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* Maximum panel width for left and right drawers from the `sm` breakpoint;
|
|
143
|
+
* below it the panel spans the viewport. Top and bottom drawers span the
|
|
144
|
+
* width and size to their content up to 85% of the viewport height.
|
|
145
|
+
* Default: `lg`.
|
|
146
|
+
*/
|
|
131
147
|
width?: OverlaySize;
|
|
132
|
-
/** Renders the action footer. Set `false` when the body owns its own actions. */
|
|
148
|
+
/** Renders the action footer. Default: `true`. Set `false` when the body owns its own actions. */
|
|
133
149
|
showFooter?: boolean;
|
|
134
150
|
/**
|
|
135
151
|
* Whether the drawer takes the page hostage while it is open. Default: `true`.
|
|
@@ -139,7 +155,8 @@ export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps,
|
|
|
139
155
|
* Some side panels are the opposite: a theme editor, an inspector, a live
|
|
140
156
|
* filter rail, anything whose whole purpose is to sit beside the app while
|
|
141
157
|
* you keep working in it. Those need `false`, which drops the scrim and the
|
|
142
|
-
* inerting and leaves the page interactive
|
|
158
|
+
* inerting and leaves the page interactive; pressing the page no longer
|
|
159
|
+
* dismisses the panel, which closes from its own controls or Escape.
|
|
143
160
|
*
|
|
144
161
|
* `'trap-focus'` is the middle setting — focus stays inside, but the page
|
|
145
162
|
* neither locks its scroll nor stops taking pointer events.
|
|
@@ -148,7 +165,7 @@ export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps,
|
|
|
148
165
|
* confirmation or anything the user must answer before continuing.
|
|
149
166
|
*/
|
|
150
167
|
modal?: boolean | 'trap-focus';
|
|
151
|
-
/** Element that opens the drawer. Supply it for uncontrolled use instead of `open
|
|
168
|
+
/** Element that opens the drawer. Supply it for uncontrolled use instead of `open`; a string renders a secondary button. */
|
|
152
169
|
trigger?: ReactNode;
|
|
153
170
|
}
|
|
154
171
|
/**
|
|
@@ -156,14 +173,21 @@ export interface ActionDrawerProps extends OverlayBaseProps, OverlayActionProps,
|
|
|
156
173
|
* body needs real content — this one is sized for a question and two answers.
|
|
157
174
|
*/
|
|
158
175
|
export interface ConfirmDialogProps extends OverlayBaseProps, OverlayActionProps {
|
|
159
|
-
/** Semantic tone, driving the
|
|
176
|
+
/** Semantic tone, driving the confirm button, the `showIcon` glyph and the notice. Default: `'neutral'`. */
|
|
160
177
|
tone?: OverlayTone;
|
|
161
|
-
/** Shows the tone's
|
|
178
|
+
/** Shows the tone's glyph above the title. Default: `false`; the confirm button and copy carry the tone. */
|
|
162
179
|
showIcon?: boolean;
|
|
163
180
|
/** Inline notice explaining the consequence before the user commits. */
|
|
164
181
|
alertMessage?: string;
|
|
165
|
-
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open
|
|
182
|
+
/** Element that opens the dialog. Supply it for uncontrolled use instead of `open`; a string renders a secondary button. */
|
|
166
183
|
trigger?: ReactNode;
|
|
167
184
|
/** Shorthand for the destructive presentation. */
|
|
168
185
|
destructive?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Not used: a confirmation needs an explicit answer, so an outside press
|
|
188
|
+
* never dismisses it. Escape still cancels unless `closeOnEscape` is `false`.
|
|
189
|
+
*/
|
|
190
|
+
closeOnBackdropClick?: boolean;
|
|
191
|
+
/** Not used: a confirmation has no corner dismiss control; Cancel or Escape declines. */
|
|
192
|
+
showCloseButton?: boolean;
|
|
169
193
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProductVariantsManagerProps } from '../products.types';
|
|
2
|
-
export declare function ProductVariantsManager({ optionGroups, variants, visibleColumns, optionCombinationDisplay, cellDisplay, selectionMode, renderOptionCombination, renderCell, selectedVariantIds, defaultSelectedVariantIds, onSelectedVariantIdsChange, onVariantFieldChange, onVariantFieldBlur, collapsedOptionIds, defaultCollapsedOptionIds, onCollapsedOptionIdsChange, editingOptionId, defaultEditingOptionId, onEditingOptionIdChange, onCreateOption, onEditOption, onDeleteOption, onAddValue, onDeleteValue, onOptionNameChange, onValueLabelChange, onDoneEditingOption, onSaveEditingOption, onCancelEditingOption, onToggleUsedForVariants, renderOptionActions, renderValue, onCreateVariant, onGenerateVariants, onSelectVariant, onEditVariant, onDuplicateVariant, onDeleteVariant, onBulkEdit, onBulkApply, onBulkDelete, renderVariantActions, renderBulkActions, groupByOptionId, defaultGroupByOptionId, onGroupByOptionIdChange, onSearchVariants, onFilterVariants, controlsEnd, actions, headerEnd, footerSlot, className, strings: stringsProp, optionsStrings, variantsStrings, }: ProductVariantsManagerProps): import("react").JSX.Element;
|
|
2
|
+
export declare function ProductVariantsManager({ optionGroups, variants, visibleColumns, optionCombinationDisplay, cellDisplay, selectionMode, renderOptionCombination, renderCell, selectedVariantIds, defaultSelectedVariantIds, onSelectedVariantIdsChange, onVariantFieldChange, onVariantFieldBlur, collapsedOptionIds, defaultCollapsedOptionIds, onCollapsedOptionIdsChange, editingOptionId, defaultEditingOptionId, onEditingOptionIdChange, onCreateOption, onEditOption, onDeleteOption, onAddValue, onDeleteValue, onOptionNameChange, onValueLabelChange, onDoneEditingOption, onSaveEditingOption, onCancelEditingOption, onToggleUsedForVariants, renderOptionActions, renderValue, onCreateVariant, onGenerateVariants, onSelectVariant, onEditVariant, onDuplicateVariant, onDeleteVariant, onBulkEdit, onBulkApply, onBulkDelete, renderVariantActions, renderBulkActions, groupByOptionId, defaultGroupByOptionId, onGroupByOptionIdChange, onSearchVariants, onFilterVariants, controlsEnd, actions, headerEnd, footerSlot, surface, padding, headerDivider, footerDivider, className, strings: stringsProp, optionsStrings, variantsStrings, }: ProductVariantsManagerProps): import("react").JSX.Element;
|
|
3
3
|
export declare namespace ProductVariantsManager {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -2,6 +2,6 @@ export { ProductRowActions } from './product-actions';
|
|
|
2
2
|
export { ProductEmptyState } from './product-empty-state';
|
|
3
3
|
export { ProductMetricTile } from './product-metric-tile';
|
|
4
4
|
export { ProductOperationRow, ProductReadinessRow, ProductStructureMetricRow, ProductSummaryRow, } from './product-rows';
|
|
5
|
-
export { PRODUCT_TONE_BADGE,
|
|
5
|
+
export { PRODUCT_TONE_BADGE, PRODUCT_TONE_TEXT, ProductToneDot, clampProductPercent, isProductStatusTone, } from './product-tone';
|
|
6
6
|
export { ProductVariantActions, ProductVariantCell, } from './product-variant-table-parts';
|
|
7
7
|
export { PRODUCT_EMPTY_VALUE } from './product-values';
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { ProductMetricSummary, ProductStructureMetric } from '../products.types';
|
|
2
|
+
/**
|
|
3
|
+
* A headline fact: label above an emphasised value, in the same label-over-value
|
|
4
|
+
* anatomy as the metadata lists beside it. No tile chrome — the parent grid's
|
|
5
|
+
* gap separates metrics — and colour appears only as a status dot when the
|
|
6
|
+
* metric's tone states a status.
|
|
7
|
+
*/
|
|
2
8
|
export declare function ProductMetricTile({ metric }: {
|
|
3
9
|
metric: ProductStructureMetric | ProductMetricSummary;
|
|
4
10
|
}): import("react").JSX.Element;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import type { BadgeTone } from '../../../base/badge';
|
|
2
2
|
import type { ProductTone } from '../products.types';
|
|
3
|
+
/**
|
|
4
|
+
* Badge tone for a product row value. Only status tones carry colour; neutral
|
|
5
|
+
* and primary (reserved for the main command) render as neutral badges.
|
|
6
|
+
*/
|
|
3
7
|
export declare const PRODUCT_TONE_BADGE: Record<ProductTone, BadgeTone>;
|
|
4
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Text colour for a figure whose tone states a status. Figures keep their width,
|
|
10
|
+
* so a flagged metric lines up with its plain siblings instead of growing a chip.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PRODUCT_TONE_TEXT: Record<ProductTone, string | undefined>;
|
|
13
|
+
/** Whether a tone states a status. Neutral and primary are presentation, not state. */
|
|
14
|
+
export declare function isProductStatusTone(tone: ProductTone | undefined): tone is ProductTone;
|
|
5
15
|
export declare function clampProductPercent(value: number): number;
|
|
6
16
|
export declare function ProductToneDot({ tone }: {
|
|
7
17
|
tone?: ProductTone;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { CardProps } from '../../base/cards';
|
|
2
3
|
import type { BadgeTone } from '../../base/badge';
|
|
3
4
|
import type { ActionMenuAction } from '../../base/action-menu';
|
|
4
5
|
import type { MetadataListItem } from '../../blocks/data-display/metadata';
|
|
@@ -741,7 +742,7 @@ export interface ProductVariantsBulkTableProps {
|
|
|
741
742
|
/** Overrides this surface’s own copy. */
|
|
742
743
|
strings?: StringsProp<ProductVariantBulkTableStrings>;
|
|
743
744
|
}
|
|
744
|
-
export interface ProductVariantsManagerProps extends Pick<ProductOptionsMatrixProps, 'optionGroups' | 'collapsedOptionIds' | 'defaultCollapsedOptionIds' | 'onCollapsedOptionIdsChange' | 'editingOptionId' | 'defaultEditingOptionId' | 'onEditingOptionIdChange' | 'onCreateOption' | 'onEditOption' | 'onDeleteOption' | 'onAddValue' | 'onDeleteValue' | 'onOptionNameChange' | 'onValueLabelChange' | 'onDoneEditingOption' | 'onSaveEditingOption' | 'onCancelEditingOption' | 'onToggleUsedForVariants' | 'renderOptionActions' | 'renderValue'>, Pick<ProductVariantsBulkTableProps, 'variants' | 'groupByOptionId' | 'visibleColumns' | 'optionCombinationDisplay' | 'cellDisplay' | 'selectionMode' | 'renderOptionCombination' | 'renderCell' | 'selectedVariantIds' | 'defaultSelectedVariantIds' | 'onSelectedVariantIdsChange' | 'onVariantFieldChange' | 'onVariantFieldBlur' | 'onCreateVariant' | 'onGenerateVariants' | 'onSelectVariant' | 'onEditVariant' | 'onDuplicateVariant' | 'onDeleteVariant' | 'onBulkEdit' | 'onBulkApply' | 'onBulkDelete' | 'renderVariantActions' | 'renderBulkActions'> {
|
|
745
|
+
export interface ProductVariantsManagerProps extends Pick<CardProps, 'surface' | 'padding' | 'headerDivider' | 'footerDivider'>, Pick<ProductOptionsMatrixProps, 'optionGroups' | 'collapsedOptionIds' | 'defaultCollapsedOptionIds' | 'onCollapsedOptionIdsChange' | 'editingOptionId' | 'defaultEditingOptionId' | 'onEditingOptionIdChange' | 'onCreateOption' | 'onEditOption' | 'onDeleteOption' | 'onAddValue' | 'onDeleteValue' | 'onOptionNameChange' | 'onValueLabelChange' | 'onDoneEditingOption' | 'onSaveEditingOption' | 'onCancelEditingOption' | 'onToggleUsedForVariants' | 'renderOptionActions' | 'renderValue'>, Pick<ProductVariantsBulkTableProps, 'variants' | 'groupByOptionId' | 'visibleColumns' | 'optionCombinationDisplay' | 'cellDisplay' | 'selectionMode' | 'renderOptionCombination' | 'renderCell' | 'selectedVariantIds' | 'defaultSelectedVariantIds' | 'onSelectedVariantIdsChange' | 'onVariantFieldChange' | 'onVariantFieldBlur' | 'onCreateVariant' | 'onGenerateVariants' | 'onSelectVariant' | 'onEditVariant' | 'onDuplicateVariant' | 'onDeleteVariant' | 'onBulkEdit' | 'onBulkApply' | 'onBulkDelete' | 'renderVariantActions' | 'renderBulkActions'> {
|
|
745
746
|
/** Groups rows under the values of this option. `null` leaves the list flat. */
|
|
746
747
|
groupByOptionId?: string | null;
|
|
747
748
|
/** Option group used for grouping on first render. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Shared field anatomy for rich editors, including specialized document schemas. */
|
|
2
2
|
export declare const richTextEditorRecipes: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly source: string;
|
|
4
|
+
readonly frame: "min-w-0 overflow-hidden border-input bg-background rounded-inner border";
|
|
4
5
|
readonly disabled: "opacity-70";
|
|
5
6
|
readonly content: "h-full [&_.ProseMirror]:h-full [&_.ProseMirror]:min-h-full [&_.ProseMirror]:outline-none";
|
|
6
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function useDataTableSize(): 'xs' | 'sm';
|
|
2
2
|
import { type DataTableProps } from './table.types';
|
|
3
|
-
export declare function DataTable<TData extends object, TValue = unknown>({ size, surface, headerTransparent, columns, data, columnGroups, rowActions, rowActionsMenuLabel, rowActionsDisplayMode, rowActionsBreakpoint, enableSorting, enableFiltering, filterColumn, filterPlaceholder, manualSorting, enableColumnVisibility, fullscreen: controlledFullscreen, defaultFullscreen, onFullscreenChange, showFullscreenToggle, enableRowSelection, enableMultiRowSelection, enableSubRowSelection, pagination, pageQueryKey, onPageChange, onSortingChange, onColumnFiltersChange, onRowClick, onRowSelectionChange, stickyHeader, stickyToolbar, stickyFirstColumn, maxBodyHeight, fillAvailableHeight, emptyStateMessage, emptyStateAction, className, rowClassName, cellClassName, headerClassName, wrapperClassName, innerClassName, tableContainerClassName, getRowId, rowSelection: controlledRowSelection, sorting: controlledSorting, defaultSorting, columnVisibility: controlledColumnVisibility, defaultColumnVisibility, initialState, onColumnVisibilityChange, strings: stringsOverride, topbarContent, topbarEnd, topbarClassName, toolbarLabelVisibility, footerContent, selectionToolbar, bulkActions, selectionToolbarClassName, storageKey, }: DataTableProps<TData, TValue>): import("react").JSX.Element;
|
|
3
|
+
export declare function DataTable<TData extends object, TValue = unknown>({ size, surface, headerTransparent, columns, data, columnGroups, rowActions, rowActionsMenuLabel, rowActionsDisplayMode, rowActionsBreakpoint, enableSorting, enableResizing, enableFiltering, filterColumn, filterPlaceholder, manualSorting, enableColumnVisibility, fullscreen: controlledFullscreen, defaultFullscreen, onFullscreenChange, showFullscreenToggle, enableRowSelection, enableMultiRowSelection, enableSubRowSelection, pagination, pageQueryKey, onPageChange, onSortingChange, onColumnFiltersChange, onRowClick, onRowSelectionChange, stickyHeader, stickyToolbar, stickyFirstColumn, maxBodyHeight, fillAvailableHeight, emptyStateMessage, emptyStateAction, className, rowClassName, cellClassName, headerClassName, wrapperClassName, innerClassName, tableContainerClassName, getRowId, rowSelection: controlledRowSelection, sorting: controlledSorting, defaultSorting, columnVisibility: controlledColumnVisibility, defaultColumnVisibility, initialState, onColumnVisibilityChange, strings: stringsOverride, topbarContent, topbarEnd, topbarClassName, toolbarLabelVisibility, footerContent, selectionToolbar, bulkActions, selectionToolbarClassName, storageKey, }: DataTableProps<TData, TValue>): import("react").JSX.Element;
|
|
4
4
|
export declare namespace DataTable {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -72,7 +72,7 @@ export interface DateCellProps {
|
|
|
72
72
|
preset?: DateProps['preset'];
|
|
73
73
|
/** date-fns locale override. Falls back to UIProvider dates. */
|
|
74
74
|
locale?: DateProps['locale'];
|
|
75
|
-
/** Renders the
|
|
75
|
+
/** Renders the leading glyph. Off by default: a repeated calendar glyph on every row adds no information. */
|
|
76
76
|
showIcon?: boolean;
|
|
77
77
|
/** Leading glyph. */
|
|
78
78
|
icon?: ComponentType<{
|
|
@@ -171,7 +171,7 @@ export type DataTableSize = ComponentScale;
|
|
|
171
171
|
*
|
|
172
172
|
* - `card` (default): rounded card with `border-border bg-card` and a
|
|
173
173
|
* soft shadow — the canonical admin treatment.
|
|
174
|
-
* - `glass`: a hairline `border-border/60 rounded-radius
|
|
174
|
+
* - `glass`: a hairline `border-border/60 rounded-radius` outline with no
|
|
175
175
|
* shadow and no card background — pairs with consumer-supplied
|
|
176
176
|
* surrounding chrome (e.g. dropping into an existing SmartCard).
|
|
177
177
|
* Background remains transparent so a glassy parent shows
|
|
@@ -39,7 +39,9 @@ export interface ThemeProviderSettingsStrings {
|
|
|
39
39
|
description: string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
labels: Record<'locale' | 'defaultCurrency' | 'displayCurrency' | 'moneyFormat' | 'firstDay' | 'dateFormat' | 'textSize' | 'commentComposer' | 'dualPricing' | 'dualPricingMode' | 'dualPricingLayout' | 'componentScale' | 'itemVariant' | 'buttonTone' | 'buttonStyle' | 'badgeTone' | 'cardSurface' | 'spinner' | 'cardDivider' | 'toastPosition' | 'toastTheme' | 'toastDuration' | 'visibleToasts' | 'closeButton' | 'richColors', string
|
|
42
|
+
labels: Record<'locale' | 'defaultCurrency' | 'displayCurrency' | 'moneyFormat' | 'firstDay' | 'dateFormat' | 'textSize' | 'commentComposer' | 'dualPricing' | 'dualPricingMode' | 'dualPricingLayout' | 'componentScale' | 'itemVariant' | 'buttonTone' | 'buttonStyle' | 'badgeTone' | 'cardSurface' | 'spinner' | 'cardDivider' | 'toastPosition' | 'toastTheme' | 'toastDuration' | 'visibleToasts' | 'closeButton' | 'richColors', string> & {
|
|
43
|
+
cardFooterDivider?: string;
|
|
44
|
+
};
|
|
43
45
|
dualPricingDescription: string;
|
|
44
46
|
displayCurrencyPlaceholder: string;
|
|
45
47
|
options: Record<string, string>;
|
|
@@ -205,6 +205,7 @@ export interface AuthShellProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ti
|
|
|
205
205
|
/** Content for the panel beside the form in the split layout. */
|
|
206
206
|
splitPanel?: ReactNode | AuthSplitPanelProps;
|
|
207
207
|
splitSide?: AuthSplitSide;
|
|
208
|
+
/** Panel behavior below the shell's own 64rem inline width; independent of viewport width. */
|
|
208
209
|
splitMobile?: AuthSplitMobile;
|
|
209
210
|
/** Merged onto the main region. */
|
|
210
211
|
mainClassName?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Page } from './page';
|
|
2
2
|
export { PageHeader } from './partials/page-header';
|
|
3
3
|
export { PageActions } from './partials/page-actions';
|
|
4
|
-
export { defaultPageActionsStrings, type PageHeaderProps, type PageHeaderSlots, type PageActionsProps, type PageActionsDisplay, type PageAction, type PageActionContext, type PageActionsStrings, type PageProps, type PageSlotProps, } from './page.types';
|
|
4
|
+
export { defaultPageActionsStrings, type PageHeaderAction, type PageHeaderProps, type PageHeaderSlots, type PageActionsProps, type PageActionsDisplay, type PageAction, type PageActionContext, type PageActionsStrings, type PageProps, type PageSlotProps, } from './page.types';
|
|
@@ -7,7 +7,7 @@ import type { LayoutLinkRenderer, LayoutNavigationAdapter, LayoutSlotAttributes
|
|
|
7
7
|
import type { TextGap } from '../../base/structure';
|
|
8
8
|
import type { ButtonSize } from '../../base/buttons';
|
|
9
9
|
import type { HeadingTag } from '../../typography';
|
|
10
|
-
import type { ContainerMaxWidth, ContainerProps } from '../containers/containers.types';
|
|
10
|
+
import type { ContainerGutter, ContainerMaxWidth, ContainerProps } from '../containers/containers.types';
|
|
11
11
|
import type { StringsProp } from '../../../lib/strings';
|
|
12
12
|
import type { BadgeTone } from '../../base/badge';
|
|
13
13
|
import type { ActionPresentation } from '../../../lib/action-presentation';
|
|
@@ -18,6 +18,40 @@ export interface PageTitleBadge {
|
|
|
18
18
|
tone?: BadgeTone;
|
|
19
19
|
key?: Key;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* A page command described by its role. `primaryAction` and `secondaryActions`
|
|
23
|
+
* choose the treatment, so a command carries no tone or button style.
|
|
24
|
+
*/
|
|
25
|
+
export interface PageHeaderAction {
|
|
26
|
+
/** Stable key. Defaults to the command's position. */
|
|
27
|
+
id?: string;
|
|
28
|
+
/** Visible command text. */
|
|
29
|
+
label: ReactNode;
|
|
30
|
+
/** Runs the command. When both are set, `onClick` wins over `href`. */
|
|
31
|
+
onClick?: () => void;
|
|
32
|
+
/** Navigates through the header's `renderLink` instead of running a callback. */
|
|
33
|
+
href?: string;
|
|
34
|
+
target?: string;
|
|
35
|
+
rel?: string;
|
|
36
|
+
/** Marks the destination as leaving the app; forwarded to `renderLink`. */
|
|
37
|
+
external?: boolean;
|
|
38
|
+
/** Leading glyph. Pass a Lucide icon component. */
|
|
39
|
+
icon?: ComponentType<{
|
|
40
|
+
className?: string;
|
|
41
|
+
}>;
|
|
42
|
+
/** Shows the pending indicator and blocks activation. */
|
|
43
|
+
loading?: boolean;
|
|
44
|
+
/** Blocks activation while keeping the command visible. */
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
/** Set false to omit the command, for example without permission. */
|
|
47
|
+
visible?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Irreversible or harmful command. A destructive secondary command moves to
|
|
50
|
+
* the More actions menu; a destructive primary command keeps its place with
|
|
51
|
+
* the destructive treatment. Confirm it from the handler, e.g. ConfirmDialog.
|
|
52
|
+
*/
|
|
53
|
+
destructive?: boolean;
|
|
54
|
+
}
|
|
21
55
|
export interface PageHeaderSlots {
|
|
22
56
|
/** Replaces the leading back control entirely. */
|
|
23
57
|
back?: ReactNode;
|
|
@@ -25,7 +59,7 @@ export interface PageHeaderSlots {
|
|
|
25
59
|
beforeTitle?: ReactNode;
|
|
26
60
|
/** Additional content after the description. */
|
|
27
61
|
afterDescription?: ReactNode;
|
|
28
|
-
/** Replaces the trailing actions region. */
|
|
62
|
+
/** Replaces the trailing actions region, including role-based commands. */
|
|
29
63
|
actions?: ReactNode;
|
|
30
64
|
}
|
|
31
65
|
export interface PageHeaderProps extends LayoutNavigationAdapter {
|
|
@@ -33,9 +67,9 @@ export interface PageHeaderProps extends LayoutNavigationAdapter {
|
|
|
33
67
|
title: ReactNode;
|
|
34
68
|
/** Supporting copy under the title. */
|
|
35
69
|
description?: ReactNode;
|
|
36
|
-
/** Shared title/description rhythm. Defaults to
|
|
70
|
+
/** Shared title/description rhythm. Defaults to dense for page copy. */
|
|
37
71
|
textGap?: TextGap;
|
|
38
|
-
/** Semantic heading level for the title. Defaults to `
|
|
72
|
+
/** Semantic heading level for the title. Defaults to `h1`, the route's main heading; use `h2` when the page sits inside another titled page. */
|
|
39
73
|
headingTag?: HeadingTag;
|
|
40
74
|
/** Optional decorative icon rendered before the title. Pass a Lucide icon component. */
|
|
41
75
|
titleIcon?: ComponentType<{
|
|
@@ -54,7 +88,23 @@ export interface PageHeaderProps extends LayoutNavigationAdapter {
|
|
|
54
88
|
backLabel?: string;
|
|
55
89
|
/** Chips shown beside the page title. */
|
|
56
90
|
titleBadges?: PageTitleBadge[];
|
|
57
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* The page's one main command: a solid primary button at the trailing end,
|
|
93
|
+
* visible at every width.
|
|
94
|
+
*/
|
|
95
|
+
primaryAction?: PageHeaderAction;
|
|
96
|
+
/**
|
|
97
|
+
* Supporting commands in priority order. The first two render as outline
|
|
98
|
+
* buttons; the rest, and every destructive command, move into the More
|
|
99
|
+
* actions menu. Below `sm`, all secondary commands collapse into that menu.
|
|
100
|
+
*/
|
|
101
|
+
secondaryActions?: readonly PageHeaderAction[];
|
|
102
|
+
/** Accessible name of the More actions menu trigger. */
|
|
103
|
+
moreActionsLabel?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Custom controls before the role-based commands, such as a period select.
|
|
106
|
+
* Prefer `primaryAction` and `secondaryActions` for commands.
|
|
107
|
+
*/
|
|
58
108
|
actions?: ReactNode;
|
|
59
109
|
/** Replaces individual regions of the shell. */
|
|
60
110
|
slots?: PageHeaderSlots;
|
|
@@ -130,8 +180,14 @@ export interface PageSlotProps {
|
|
|
130
180
|
export interface PageProps extends LayoutNavigationAdapter, Omit<ContainerProps, 'children'> {
|
|
131
181
|
/** Header region of the shell. */
|
|
132
182
|
header?: PageHeaderProps;
|
|
133
|
-
/** Maximum content width. Defaults to `lg
|
|
183
|
+
/** Maximum content width. Explicit values override narrow. Defaults to `lg`. */
|
|
134
184
|
maxWidth?: ContainerMaxWidth;
|
|
185
|
+
/** Center one resource or form at the existing `md` content measure. */
|
|
186
|
+
narrow?: boolean;
|
|
187
|
+
/** Inline page gutters. Defaults to `lg`; none requires an existing padded parent. */
|
|
188
|
+
gutter?: ContainerGutter;
|
|
189
|
+
/** Block padding around the whole page. Defaults to `lg`, independent of gutter. */
|
|
190
|
+
padding?: ContainerGutter;
|
|
135
191
|
children?: ReactNode;
|
|
136
192
|
/** Native attributes for stable page regions. */
|
|
137
193
|
slotProps?: PageSlotProps;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LayoutLinkRenderer } from '../../layout.types';
|
|
2
|
+
import type { PageHeaderAction } from '../page.types';
|
|
3
|
+
/** Secondary commands rendered as buttons from `sm` up; later ones overflow. */
|
|
4
|
+
export declare const PAGE_HEADER_INLINE_SECONDARY_LIMIT = 2;
|
|
5
|
+
export interface PageHeaderCommandsProps {
|
|
6
|
+
primaryAction?: PageHeaderAction;
|
|
7
|
+
secondaryActions?: readonly PageHeaderAction[];
|
|
8
|
+
moreActionsLabel: string;
|
|
9
|
+
renderLink: LayoutLinkRenderer;
|
|
10
|
+
}
|
|
11
|
+
/** Whether the header has any role-based command to render. */
|
|
12
|
+
export declare function hasPageHeaderCommands(primaryAction: PageHeaderAction | undefined, secondaryActions: readonly PageHeaderAction[] | undefined): boolean;
|
|
13
|
+
export declare function PageHeaderCommands({ primaryAction, secondaryActions, moreActionsLabel, renderLink, }: PageHeaderCommandsProps): import("react").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PageHeaderProps } from '../page.types';
|
|
2
|
-
export declare function PageHeader({ title, description, textGap, headingTag, titleIcon: TitleIcon, titleIconHref, onTitleIconClick, titleIconLabel, backHref, onBack, backLabel, titleBadges, actions, slots, renderLink, className, contentClassName, actionsClassName, titleClassName, titleIconClassName, descriptionClassName, }: PageHeaderProps): import("react").JSX.Element;
|
|
2
|
+
export declare function PageHeader({ title, description, textGap, headingTag, titleIcon: TitleIcon, titleIconHref, onTitleIconClick, titleIconLabel, backHref, onBack, backLabel, titleBadges, primaryAction, secondaryActions, moreActionsLabel, actions, slots, renderLink, className, contentClassName, actionsClassName, titleClassName, titleIconClassName, descriptionClassName, }: PageHeaderProps): import("react").JSX.Element;
|
|
@@ -8,7 +8,7 @@ export type LayoutSidebarProviderProps = React.ComponentProps<'div'> & {
|
|
|
8
8
|
adaptTo?: 'viewport' | 'container';
|
|
9
9
|
/** Whether the surface starts open, for uncontrolled use. */
|
|
10
10
|
defaultOpen?: boolean;
|
|
11
|
-
/** Default row and child-list rhythm. @default '
|
|
11
|
+
/** Default row and child-list rhythm. @default 'compact' */
|
|
12
12
|
menuDensity?: SidebarMenuDensity;
|
|
13
13
|
/** Whether the surface is showing. Controlled. */
|
|
14
14
|
open?: boolean;
|
|
@@ -41,6 +41,10 @@ export interface SidebarRenderItemContext {
|
|
|
41
41
|
export interface SidebarSlots {
|
|
42
42
|
/** Header region of the shell. */
|
|
43
43
|
header?: ReactNode;
|
|
44
|
+
/** Pinned content before the standard logo/workspace region, inside its padded header. */
|
|
45
|
+
headerStart?: ReactNode;
|
|
46
|
+
/** Pinned content after the standard logo/workspace region. Full header replacement wins. */
|
|
47
|
+
headerEnd?: ReactNode;
|
|
44
48
|
beforeNavigation?: ReactNode;
|
|
45
49
|
afterNavigation?: ReactNode;
|
|
46
50
|
/** Content below the body. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, HTMLAttributes, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import type { LayoutIconComponent, LayoutNavigationAdapter } from '../layout.types';
|
|
3
3
|
import type { StringsProp } from '../../../lib/strings';
|
|
4
|
+
import type { TextGap } from '../../base/structure';
|
|
4
5
|
import type { WorkspaceLocaleStripStrings, WorkspaceNavStrings, WorkspaceRecordHeaderStrings } from './workspace.strings';
|
|
5
6
|
export type WorkspaceContentWidth = 'default' | 'wide' | 'full';
|
|
6
7
|
export interface WorkspaceLayoutStyle extends CSSProperties {
|
|
@@ -42,6 +43,8 @@ export interface WorkspaceRecordHeaderMetadataItem {
|
|
|
42
43
|
value: ReactNode;
|
|
43
44
|
}
|
|
44
45
|
export interface WorkspaceRecordHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
46
|
+
/** Title/supporting-copy rhythm. Defaults to dense. */
|
|
47
|
+
textGap?: TextGap;
|
|
45
48
|
/** Surface title. */
|
|
46
49
|
title: ReactNode;
|
|
47
50
|
/** Supporting copy under the title. */
|