themelia-react-ui 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +351 -0
- package/README.md +26 -13
- package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.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/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +13 -13
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +103 -115
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- 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 +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +17 -17
- 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/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +171 -170
- 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 +147 -137
- 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 +2 -2
- 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 +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +173 -171
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +266 -263
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +440 -438
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1945 -1266
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
- package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +15 -12
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +4 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
- package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
- package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
- package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
- package/dist/features/activities.js +414 -501
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +170 -169
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- 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 +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +73 -71
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +278 -275
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +918 -825
- 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 +1115 -1122
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +202 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +25 -25
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +33 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +397 -396
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
- package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
- package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.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 +1 -0
- package/dist/lib/field-affordance-recipes.d.ts +6 -1
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +9 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
- package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/page-B5dTH9gE.js +224 -0
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
- package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
- package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
- package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
- package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/table-CrcLN9Io.js +1458 -0
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/theme.css +3 -3
- package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
- package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +19 -20
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +51 -8
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/public-api.json +847 -447
- package/docs/consumer-skill/references/review.md +25 -5
- package/docs/consumer-skill/references/theming.md +8 -4
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +29 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +10 -2
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -76,10 +76,17 @@ export interface DataTableStrings {
|
|
|
76
76
|
emptyState: {
|
|
77
77
|
message: string;
|
|
78
78
|
};
|
|
79
|
-
/**
|
|
79
|
+
/** Row actions column and its overflow menu. */
|
|
80
80
|
actions: {
|
|
81
|
+
/** Header of the row actions column. */
|
|
81
82
|
triggerLabel: string;
|
|
82
83
|
srLabel: string;
|
|
84
|
+
/**
|
|
85
|
+
* Accessible name of each row's More actions trigger. Defaults to "More
|
|
86
|
+
* actions"; an override that sets only `triggerLabel` keeps naming the
|
|
87
|
+
* trigger with it, as before 2.0.1.
|
|
88
|
+
*/
|
|
89
|
+
menuLabel?: string;
|
|
83
90
|
};
|
|
84
91
|
filter: {
|
|
85
92
|
searchPlaceholder: string;
|
|
@@ -156,6 +163,7 @@ export interface DataTableSelectionToolbarContext<TData extends object> {
|
|
|
156
163
|
table: Table<TData>;
|
|
157
164
|
selectedRows: TData[];
|
|
158
165
|
selectedRowCount: number;
|
|
166
|
+
/** `totalRowCount` when supplied, else `pagination.total`, else the rows in `data`. */
|
|
159
167
|
totalRowCount: number;
|
|
160
168
|
rowSelection: RowSelectionState;
|
|
161
169
|
clearSelection: () => void;
|
|
@@ -302,15 +310,32 @@ export interface DataTableProps<TData extends object, TValue> {
|
|
|
302
310
|
/** Content below the table body, above the pagination footer. */
|
|
303
311
|
footerContent?: React.ReactNode;
|
|
304
312
|
/**
|
|
305
|
-
* Custom selected-row toolbar. `undefined` renders the package default,
|
|
306
|
-
* `
|
|
307
|
-
*
|
|
313
|
+
* Custom selected-row toolbar. `undefined` renders the package default, a
|
|
314
|
+
* `BatchActionBar` from `themelia-react-ui/base/batch-action-bar`; `null` /
|
|
315
|
+
* `false` suppresses it, and a node or a function receiving the selected row
|
|
316
|
+
* context replaces it while rows are selected.
|
|
308
317
|
*/
|
|
309
318
|
selectionToolbar?: React.ReactNode | ((context: DataTableSelectionToolbarContext<TData>) => React.ReactNode);
|
|
310
|
-
/**
|
|
319
|
+
/**
|
|
320
|
+
* Bulk actions rendered in the default selection toolbar, before its Clear
|
|
321
|
+
* button. The toolbar only shows while rows are selected, so these actions
|
|
322
|
+
* need no disabled state for an empty selection.
|
|
323
|
+
*/
|
|
311
324
|
bulkActions?: React.ReactNode | ((context: DataTableSelectionToolbarContext<TData>) => React.ReactNode);
|
|
312
|
-
/** Merged onto the selection toolbar. */
|
|
325
|
+
/** Merged onto the default selection toolbar. */
|
|
313
326
|
selectionToolbarClassName?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Where the default selection toolbar sits. `floating` (default) docks it to
|
|
329
|
+
* the bottom centre of the viewport, so it stays reachable while a long table
|
|
330
|
+
* scrolls; `inline` keeps it in flow between the topbar and the table.
|
|
331
|
+
*/
|
|
332
|
+
selectionToolbarPlacement?: 'floating' | 'inline';
|
|
333
|
+
/**
|
|
334
|
+
* Total rows in the whole result, for the selection summary ("3 of 1,250
|
|
335
|
+
* rows selected") and `DataTableSelectionToolbarContext.totalRowCount`.
|
|
336
|
+
* Defaults to `pagination.total`, else the rows in `data`.
|
|
337
|
+
*/
|
|
338
|
+
totalRowCount?: number;
|
|
314
339
|
/**
|
|
315
340
|
* Row actions, as a static array or a factory receiving the row.
|
|
316
341
|
*
|
|
@@ -439,7 +464,7 @@ export interface DataTableActionsProps<TData> {
|
|
|
439
464
|
row: TData;
|
|
440
465
|
/** static actions or a factory for per-row actions */
|
|
441
466
|
actions: TableAction<TData>[] | ((row: TData) => TableAction<TData>[]);
|
|
442
|
-
/**
|
|
467
|
+
/** Accessible name of the More actions trigger. Defaults to `strings.actions.menuLabel`. */
|
|
443
468
|
menuLabel?: string;
|
|
444
469
|
/** Display mode: always menu, always inline, or auto by breakpoint (default: 'menu' to preserve behavior) */
|
|
445
470
|
displayMode?: 'menu' | 'inline' | 'auto';
|
|
@@ -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 PageHeaderAction, 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 PageHeaderTabs, type PageActionsProps, type PageActionsDisplay, type PageAction, type PageActionContext, type PageActionsStrings, type PageProps, type PageSlotProps, } from './page.types';
|
|
@@ -11,6 +11,8 @@ import type { ContainerGutter, ContainerMaxWidth, ContainerProps } from '../cont
|
|
|
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';
|
|
14
|
+
import type { PageHeaderAction } from '../../base/navigation/page-header';
|
|
15
|
+
import type { OverflowTabItem } from '../../base/navigation';
|
|
14
16
|
export interface PageTitleBadge {
|
|
15
17
|
/** Display label. */
|
|
16
18
|
label: ReactNode;
|
|
@@ -18,39 +20,22 @@ export interface PageTitleBadge {
|
|
|
18
20
|
tone?: BadgeTone;
|
|
19
21
|
key?: Key;
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
|
|
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;
|
|
23
|
+
export type { PageHeaderAction } from '../../base/navigation/page-header';
|
|
24
|
+
/** Section tabs under a record's header. */
|
|
25
|
+
export interface PageHeaderTabs {
|
|
26
|
+
/** Sections in order. `badge` shows a count chip beside the label. */
|
|
27
|
+
items: OverflowTabItem[];
|
|
28
|
+
/** Id of the active section. */
|
|
29
|
+
value?: string;
|
|
48
30
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* the destructive treatment. Confirm it from the handler, e.g. ConfirmDialog.
|
|
31
|
+
* Fired with the id of the chosen section. Switch the content or route here;
|
|
32
|
+
* an item `href` renders a native link.
|
|
52
33
|
*/
|
|
53
|
-
|
|
34
|
+
onValueChange?: (id: string) => void;
|
|
35
|
+
/** Accessible name of the tab list. Default: `'Sections'`. */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** Label of the trigger that holds tabs which do not fit. Default: `'More'`. */
|
|
38
|
+
moreLabel?: string;
|
|
54
39
|
}
|
|
55
40
|
export interface PageHeaderSlots {
|
|
56
41
|
/** Replaces the leading back control entirely. */
|
|
@@ -89,18 +74,25 @@ export interface PageHeaderProps extends LayoutNavigationAdapter {
|
|
|
89
74
|
/** Chips shown beside the page title. */
|
|
90
75
|
titleBadges?: PageTitleBadge[];
|
|
91
76
|
/**
|
|
92
|
-
* The page's one main command: a solid primary button
|
|
93
|
-
* visible at every width.
|
|
77
|
+
* The page's one main command: a solid primary button after the secondary
|
|
78
|
+
* commands, visible at every width.
|
|
94
79
|
*/
|
|
95
80
|
primaryAction?: PageHeaderAction;
|
|
96
81
|
/**
|
|
97
82
|
* Supporting commands in priority order. The first two render as outline
|
|
98
|
-
* buttons; the rest, and every destructive
|
|
99
|
-
*
|
|
83
|
+
* buttons before the primary command; the rest, and every destructive
|
|
84
|
+
* command, move into the More actions menu, which always closes the row.
|
|
85
|
+
* Below `sm`, all secondary commands collapse into that menu.
|
|
100
86
|
*/
|
|
101
87
|
secondaryActions?: readonly PageHeaderAction[];
|
|
102
88
|
/** Accessible name of the More actions menu trigger. */
|
|
103
89
|
moreActionsLabel?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Section tabs under the header, for a record split into sections such as
|
|
92
|
+
* documents and history. Tabs that do not fit move into a More menu, and
|
|
93
|
+
* the active tab stays visible.
|
|
94
|
+
*/
|
|
95
|
+
tabs?: PageHeaderTabs;
|
|
104
96
|
/**
|
|
105
97
|
* Custom controls before the role-based commands, such as a period select.
|
|
106
98
|
* Prefer `primaryAction` and `secondaryActions` for commands.
|
|
@@ -121,6 +113,7 @@ export interface PageActionContext {
|
|
|
121
113
|
isInline: boolean;
|
|
122
114
|
renderLink: LayoutLinkRenderer;
|
|
123
115
|
}
|
|
116
|
+
/** @deprecated Use PageHeaderAction with `primaryAction` and `secondaryActions`. */
|
|
124
117
|
export interface PageAction extends ActionPresentation {
|
|
125
118
|
id?: string;
|
|
126
119
|
/** Display label. */
|
|
@@ -154,7 +147,11 @@ export interface PageActionsProps extends LayoutNavigationAdapter {
|
|
|
154
147
|
actions?: PageAction[];
|
|
155
148
|
/** How actions are presented — inline, menu, or responsive. */
|
|
156
149
|
display?: PageActionsDisplay;
|
|
157
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* Inline action button scale, which the More actions square beside them
|
|
152
|
+
* matches. Defaults to `sm`; set `md` for normal page-header buttons. A
|
|
153
|
+
* menu-only ribbon follows the provider scale.
|
|
154
|
+
*/
|
|
158
155
|
size?: ButtonSize;
|
|
159
156
|
/** Width at which responsive actions collapse into a menu. */
|
|
160
157
|
breakpoint?: number;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { type PageActionsProps } from '../page.types';
|
|
2
|
+
/** @deprecated Pass page commands as `primaryAction` and `secondaryActions`; use ActionButtons for a toolbar row. */
|
|
2
3
|
export declare function PageActions({ actions, display, size, breakpoint, maxInlineActions, renderLink, strings: stringsProp, className, inlineClassName, menuClassName, renderAction, }: PageActionsProps): 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, primaryAction, secondaryActions, moreActionsLabel, 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, tabs, actions, slots, renderLink, className, contentClassName, actionsClassName, titleClassName, titleIconClassName, descriptionClassName, }: PageHeaderProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { type PageHeaderAction } from '../../base/navigation/page-header/page-header-commands';
|
|
2
3
|
import { type StringsProp } from '../../../lib/strings';
|
|
3
4
|
import { type LayoutNavigationAdapter } from '../layout.types';
|
|
4
5
|
export interface AsideNavShellStrings {
|
|
@@ -45,8 +46,21 @@ export interface AsideNavShellProps extends LayoutNavigationAdapter {
|
|
|
45
46
|
children?: ReactNode;
|
|
46
47
|
/** Content beside the main settings panel. */
|
|
47
48
|
aside?: ReactNode;
|
|
48
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Non-command controls beside the title, such as a scope select. They
|
|
51
|
+
* render before the role-based commands.
|
|
52
|
+
*/
|
|
49
53
|
actions?: ReactNode;
|
|
54
|
+
/** The page's one main command: a solid primary button, visible at every width. */
|
|
55
|
+
primaryAction?: PageHeaderAction;
|
|
56
|
+
/**
|
|
57
|
+
* Supporting commands in priority order, as in Page headers: the first two
|
|
58
|
+
* render as outline buttons before the primary command; the rest, and every
|
|
59
|
+
* destructive command, move into the More actions menu, which closes the row.
|
|
60
|
+
*/
|
|
61
|
+
secondaryActions?: readonly PageHeaderAction[];
|
|
62
|
+
/** Accessible name of the More actions menu trigger. Default: `'More actions'`. */
|
|
63
|
+
moreActionsLabel?: string;
|
|
50
64
|
/** Content below the body. */
|
|
51
65
|
footer?: ReactNode;
|
|
52
66
|
className?: string;
|
|
@@ -58,7 +72,7 @@ export interface AsideNavShellProps extends LayoutNavigationAdapter {
|
|
|
58
72
|
strings?: StringsProp<AsideNavShellStrings>;
|
|
59
73
|
}
|
|
60
74
|
export type SettingsShellProps = AsideNavShellProps;
|
|
61
|
-
export declare function AsideNavShell({ title, description, groups, currentId, currentPath, children, aside, actions, footer, className, navClassName, contentClassName, renderLink, strings: stringsProp, }: AsideNavShellProps): import("react").JSX.Element;
|
|
75
|
+
export declare function AsideNavShell({ title, description, groups, currentId, currentPath, children, aside, actions, primaryAction, secondaryActions, moreActionsLabel, footer, className, navClassName, contentClassName, renderLink, strings: stringsProp, }: AsideNavShellProps): import("react").JSX.Element;
|
|
62
76
|
export declare namespace AsideNavShell {
|
|
63
77
|
var displayName: string;
|
|
64
78
|
}
|
|
@@ -2,6 +2,7 @@ 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
4
|
import type { TextGap } from '../../base/structure';
|
|
5
|
+
import type { PageHeaderAction } from '../../base/navigation/page-header';
|
|
5
6
|
import type { WorkspaceLocaleStripStrings, WorkspaceNavStrings, WorkspaceRecordHeaderStrings } from './workspace.strings';
|
|
6
7
|
export type WorkspaceContentWidth = 'default' | 'wide' | 'full';
|
|
7
8
|
export interface WorkspaceLayoutStyle extends CSSProperties {
|
|
@@ -42,7 +43,7 @@ export interface WorkspaceRecordHeaderMetadataItem {
|
|
|
42
43
|
/** Current value. Controlled. */
|
|
43
44
|
value: ReactNode;
|
|
44
45
|
}
|
|
45
|
-
export interface WorkspaceRecordHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'
|
|
46
|
+
export interface WorkspaceRecordHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, LayoutNavigationAdapter {
|
|
46
47
|
/** Title/supporting-copy rhythm. Defaults to dense. */
|
|
47
48
|
textGap?: TextGap;
|
|
48
49
|
/** Surface title. */
|
|
@@ -53,10 +54,26 @@ export interface WorkspaceRecordHeaderProps extends Omit<HTMLAttributes<HTMLDivE
|
|
|
53
54
|
badges?: ReactNode;
|
|
54
55
|
/** Label/value facts under the record title. */
|
|
55
56
|
metadata?: WorkspaceRecordHeaderMetadataItem[];
|
|
56
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* Non-command controls, such as a locale or period select. They render
|
|
59
|
+
* before the role-based commands.
|
|
60
|
+
*/
|
|
57
61
|
actions?: ReactNode;
|
|
58
|
-
/**
|
|
59
|
-
|
|
62
|
+
/**
|
|
63
|
+
* The record's one main command: a solid primary button after the secondary
|
|
64
|
+
* commands, visible at every width.
|
|
65
|
+
*/
|
|
66
|
+
primaryAction?: PageHeaderAction;
|
|
67
|
+
/**
|
|
68
|
+
* Supporting commands in priority order, as in Page headers: the first two
|
|
69
|
+
* render as outline buttons before the primary command; the rest, and every
|
|
70
|
+
* destructive command, move into the More actions menu, which closes the
|
|
71
|
+
* row. Rendered elements are still accepted for existing headers; pass
|
|
72
|
+
* command objects instead.
|
|
73
|
+
*/
|
|
74
|
+
secondaryActions?: ReactNode | readonly PageHeaderAction[];
|
|
75
|
+
/** Accessible name of the More actions menu trigger. Default: `'More actions'`. */
|
|
76
|
+
moreActionsLabel?: string;
|
|
60
77
|
/** Current state, shown as a chip. */
|
|
61
78
|
status?: ReactNode;
|
|
62
79
|
/** Illustration or imagery beside the form. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { RichText } from './rich-text';
|
|
2
|
-
export type { RichTextProps } from './rich-text';
|
|
2
|
+
export type { RichTextProps, RichTextImageRendering, RichTextImageAttributes, RenderRichTextImage } from './rich-text';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { Root } from 'hast';
|
|
3
|
+
/** An image in sanitized rich text, as handed to `renderImage`. */
|
|
4
|
+
export interface RichTextImageAttributes {
|
|
5
|
+
/** Source that passed the package image policy (http, https, blob or relative). */
|
|
6
|
+
src: string;
|
|
7
|
+
/** Text alternative; empty for a decorative image. */
|
|
8
|
+
alt: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
}
|
|
13
|
+
export type RenderRichTextImage = (image: RichTextImageAttributes) => ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Renders an already sanitized tree as React elements, so each image can be
|
|
16
|
+
* the consumer's own component (a framework image, a lightbox trigger) while
|
|
17
|
+
* the surrounding markup keeps its structure. Server and client output match.
|
|
18
|
+
*/
|
|
19
|
+
export declare function renderRichTextTree(tree: Root, renderImage: RenderRichTextImage): ReactNode;
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import type { TextProps } from '../text';
|
|
2
|
+
import { type RenderRichTextImage } from './rich-text-tree';
|
|
3
|
+
export type { RenderRichTextImage, RichTextImageAttributes } from './rich-text-tree';
|
|
4
|
+
/** Image rendering for read-only rich text. */
|
|
5
|
+
export interface RichTextImageRendering {
|
|
6
|
+
/**
|
|
7
|
+
* Renders each image, for example with a framework image component. It
|
|
8
|
+
* receives only sources that passed the package image policy.
|
|
9
|
+
*/
|
|
10
|
+
renderImage?: RenderRichTextImage;
|
|
11
|
+
}
|
|
2
12
|
export interface RichTextProps extends Omit<TextProps, 'children' | 'content' | 'dangerouslySetInnerHTML'> {
|
|
3
13
|
/** HTML sanitized through the package allowlist before rendering. */
|
|
4
14
|
html?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Keeps images whose source is a web URL, a `blob:` preview or a relative
|
|
17
|
+
* path (script and `data:` sources are removed). Pass `renderImage` to draw
|
|
18
|
+
* each image with your own component. Default: images are removed.
|
|
19
|
+
*/
|
|
20
|
+
images?: boolean | RichTextImageRendering;
|
|
5
21
|
}
|
|
6
22
|
export declare const RichText: import("react").ForwardRefExoticComponent<RichTextProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -3,11 +3,12 @@ import type { TextProps } from './text';
|
|
|
3
3
|
/**
|
|
4
4
|
* Inline-link mechanics shared by `TextLink` and the link primitives. As a flex
|
|
5
5
|
* or grid item the link hugs its text, so neither the hit area nor the focus
|
|
6
|
-
* ring stretches across the row. The
|
|
7
|
-
*
|
|
6
|
+
* ring stretches across the row. The shared focus edge sits just outside the
|
|
7
|
+
* glyphs inside the soft halo, uses the small radius role and follows every line
|
|
8
|
+
* of a wrapped link. Links keep one colour whether
|
|
8
9
|
* or not they were visited: the role colour is explicit.
|
|
9
10
|
*/
|
|
10
|
-
export declare const inlineLinkClassName
|
|
11
|
+
export declare const inlineLinkClassName: string;
|
|
11
12
|
/** Underline geometry shared with content links: proportional to the text size. */
|
|
12
13
|
export declare const linkUnderlineClassName = "underline decoration-current underline-offset-[0.2em]";
|
|
13
14
|
export interface TextLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'type'>, Pick<TextProps, 'type' | 'size' | 'weight' | 'align' | 'lineHeight'> {
|
|
@@ -3,9 +3,10 @@ export interface CheckboxProps extends Omit<CheckboxPrimitive.Root.Props, 'onCha
|
|
|
3
3
|
onCheckedChange?: (checked: boolean | 'indeterminate') => void;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
* Raw checkbox recipe. The boundary is the shared `--input` control border
|
|
7
|
-
*
|
|
8
|
-
* follows the field-state contract (
|
|
6
|
+
* Raw checkbox recipe. The boundary is the shared `--input` control border, the
|
|
7
|
+
* same one every field and outline button draws; focus is the shared focus frame,
|
|
8
|
+
* and invalid follows the field-state contract (destructive border, destructive
|
|
9
|
+
* halo on focus). Checked and invalid borders win over the focus border.
|
|
9
10
|
*/
|
|
10
11
|
declare function Checkbox({ className, onCheckedChange, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
11
12
|
export { Checkbox };
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
/**
|
|
3
2
|
* One modal scrim recipe: a plain tint from the shared semantic token. No
|
|
4
3
|
* backdrop blur — the page behind a modal stays recognisable and the tint alone
|
|
5
4
|
* separates the surface.
|
|
6
5
|
*/
|
|
7
6
|
export declare const modalBackdropRecipe = "fixed inset-0 z-50 bg-(--overlay-backdrop)";
|
|
8
|
-
/**
|
|
9
|
-
* Marks which edges of a scrolling modal region are hiding content:
|
|
10
|
-
* `data-scroll-start` while content is scrolled out above, `data-scroll-end`
|
|
11
|
-
* while more content remains below. The modal region recipe draws a rule only
|
|
12
|
-
* on those edges, so a body that fits draws none. Attributes are written to the
|
|
13
|
-
* node directly, so scrolling never re-renders the region.
|
|
14
|
-
*/
|
|
15
|
-
export declare function useScrollEdges<T extends HTMLElement>(forwardedRef?: React.Ref<T>): React.RefCallback<T>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
2
2
|
/**
|
|
3
3
|
* Raw switch recipe. The unchecked track is the shared `--input` control
|
|
4
|
-
* boundary; focus is the shared
|
|
5
|
-
* destructive
|
|
4
|
+
* boundary; focus is the shared focus frame, and invalid follows the field-state
|
|
5
|
+
* contract (destructive border, destructive halo on focus) like every field.
|
|
6
6
|
*/
|
|
7
7
|
declare function Switch({ className, size, ...props }: SwitchPrimitive.Root.Props & {
|
|
8
8
|
size?: "sm" | "default";
|
|
@@ -1,63 +1,64 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./utils-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { t as e } from "./utils-l5LpDw2z.js";
|
|
3
|
+
import { t } from "./focus-recipes-B653VaLq.js";
|
|
4
|
+
import { o as n } from "./structure.recipes-EPz60cU8.js";
|
|
5
|
+
import { t as r } from "./container.recipes-D9t8MHR3.js";
|
|
6
|
+
import { forwardRef as i } from "react";
|
|
7
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import { useRender as c } from "@base-ui/react/use-render";
|
|
8
9
|
//#region src/components/layout/containers/content-container.tsx
|
|
9
|
-
var
|
|
10
|
-
return
|
|
10
|
+
var l = i(function({ className: t, maxWidth: n, gutter: i, render: a, ...o }, s) {
|
|
11
|
+
return c({
|
|
11
12
|
defaultTagName: "div",
|
|
12
|
-
ref:
|
|
13
|
+
ref: s,
|
|
13
14
|
render: a,
|
|
14
15
|
props: {
|
|
15
16
|
...o,
|
|
16
|
-
className: e("container--component @container/content",
|
|
17
|
-
maxWidth:
|
|
17
|
+
className: e("container--component @container/content", r({
|
|
18
|
+
maxWidth: n,
|
|
18
19
|
gutter: i
|
|
19
20
|
}), t)
|
|
20
21
|
},
|
|
21
22
|
state: {}
|
|
22
23
|
});
|
|
23
24
|
});
|
|
24
|
-
|
|
25
|
+
l.displayName = "Container";
|
|
25
26
|
//#endregion
|
|
26
27
|
//#region src/components/layout/containers/page-viewport.tsx
|
|
27
|
-
var
|
|
28
|
-
return
|
|
28
|
+
var u = i(function({ className: n, render: r, tabIndex: i = 0, ...a }, o) {
|
|
29
|
+
return c({
|
|
29
30
|
defaultTagName: "div",
|
|
30
|
-
ref:
|
|
31
|
-
render:
|
|
31
|
+
ref: o,
|
|
32
|
+
render: r,
|
|
32
33
|
props: {
|
|
33
|
-
...
|
|
34
|
-
tabIndex:
|
|
35
|
-
className: e(
|
|
34
|
+
...a,
|
|
35
|
+
tabIndex: i,
|
|
36
|
+
className: e(`page-viewport--component min-h-0 min-w-0 flex-1 overflow-auto overscroll-contain [scrollbar-gutter:stable] @container/page focus-visible:outline-none ${t.inset}`, n)
|
|
36
37
|
},
|
|
37
38
|
state: {}
|
|
38
39
|
});
|
|
39
40
|
});
|
|
40
|
-
|
|
41
|
+
u.displayName = "PageViewport";
|
|
41
42
|
//#endregion
|
|
42
43
|
//#region src/components/layout/containers/section.tsx
|
|
43
|
-
var
|
|
44
|
-
return
|
|
44
|
+
var d = i(function({ className: t, gap: r, render: i, ...a }, o) {
|
|
45
|
+
return c({
|
|
45
46
|
defaultTagName: "section",
|
|
46
47
|
ref: o,
|
|
47
48
|
render: i,
|
|
48
49
|
props: {
|
|
49
50
|
...a,
|
|
50
|
-
className: e("section--component",
|
|
51
|
+
className: e("section--component", n({ gap: r ?? "xl" }), t)
|
|
51
52
|
},
|
|
52
53
|
state: {}
|
|
53
54
|
});
|
|
54
55
|
});
|
|
55
|
-
|
|
56
|
+
d.displayName = "Section";
|
|
56
57
|
//#endregion
|
|
57
58
|
//#region src/components/layout/containers/two-column-layout.tsx
|
|
58
|
-
var
|
|
59
|
+
var f = i(function({ header: t, main: n, aside: r, footer: i, stickyAside: l = !1, adaptTo: u = "viewport", slotProps: d, className: f, render: p, ...m }, h) {
|
|
59
60
|
let { className: g, ..._ } = d?.header ?? {}, { className: v, ...y } = d?.main ?? {}, { className: b, ...x } = d?.aside ?? {}, { className: S, ...C } = d?.footer ?? {};
|
|
60
|
-
return
|
|
61
|
+
return c({
|
|
61
62
|
defaultTagName: "div",
|
|
62
63
|
ref: h,
|
|
63
64
|
render: p,
|
|
@@ -65,38 +66,38 @@ var d = r(function({ header: t, main: n, aside: r, footer: c, stickyAside: l = !
|
|
|
65
66
|
...m,
|
|
66
67
|
"data-slot": "two-column-layout",
|
|
67
68
|
className: e("two-column-layout--component grid min-w-0 grid-cols-1 gap-space-2xl", u === "container" ? "@3xl:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]" : "lg:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]", f),
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
t == null ? null : /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ s(a, { children: [
|
|
70
|
+
t == null ? null : /* @__PURE__ */ o("div", {
|
|
70
71
|
..._,
|
|
71
72
|
"data-slot": "two-column-layout-header",
|
|
72
73
|
className: e("two-column-layout--header col-span-full min-w-0", g),
|
|
73
74
|
children: t
|
|
74
75
|
}),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ o("div", {
|
|
76
77
|
...y,
|
|
77
78
|
"data-slot": "two-column-layout-main",
|
|
78
79
|
className: e("two-column-layout--main min-h-0 min-w-0", v),
|
|
79
80
|
children: n
|
|
80
81
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ o("aside", {
|
|
82
83
|
...x,
|
|
83
84
|
"data-slot": "two-column-layout-aside",
|
|
84
85
|
className: e("two-column-layout--aside min-h-0 min-w-0", l && (u === "container" ? "@3xl:sticky @3xl:top-space-2xl @3xl:self-start" : "lg:sticky lg:top-space-2xl lg:self-start"), b),
|
|
85
86
|
children: r
|
|
86
87
|
}),
|
|
87
|
-
|
|
88
|
+
i == null ? null : /* @__PURE__ */ o("div", {
|
|
88
89
|
...C,
|
|
89
90
|
"data-slot": "two-column-layout-footer",
|
|
90
91
|
className: e("two-column-layout--footer col-span-full min-w-0", S),
|
|
91
|
-
children:
|
|
92
|
+
children: i
|
|
92
93
|
})
|
|
93
94
|
] })
|
|
94
95
|
},
|
|
95
96
|
state: {}
|
|
96
97
|
});
|
|
97
98
|
});
|
|
98
|
-
|
|
99
|
+
f.displayName = "TwoColumnLayout";
|
|
99
100
|
//#endregion
|
|
100
|
-
export {
|
|
101
|
+
export { l as i, d as n, u as r, f as t };
|
|
101
102
|
|
|
102
|
-
//# sourceMappingURL=containers-
|
|
103
|
+
//# sourceMappingURL=containers-DmWiJa2I.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containers-DmWiJa2I.js","names":["_Fragment","cn","stackRecipe","containerRecipe","Fragment$1","Container","forwardRef","props","useRender","className","PageViewport","focusRecipes","Section","gap","TwoColumnLayout","headerClassName","headerProps","slotProps","mainClassName","mainProps","asideClassName","asideProps","footerClassName","footerProps","adaptTo","header","main","stickyAside","aside","footer"],"sources":["../src/components/layout/containers/content-container.tsx","../src/components/layout/containers/page-viewport.tsx","../src/components/layout/containers/section.tsx","../src/components/layout/containers/two-column-layout.tsx"],"sourcesContent":["import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { containerRecipe } from './container.recipes';\nimport type { ContainerProps } from './containers.types';\n\n/** Container — one centered content-width and inline-gutter owner. */\nexport const Container = forwardRef<HTMLDivElement, ContainerProps>(function Container(\n\t{ className, maxWidth, gutter, render, ...props },\n\tref,\n) {\n\treturn useRender({\n\t\tdefaultTagName: 'div',\n\t\tref,\n\t\trender,\n\t\tprops: {\n\t\t\t...props,\n\t\t\tclassName: cn('container--component @container/content', containerRecipe({ maxWidth, gutter }), className),\n\t\t},\n\t\tstate: {},\n\t});\n});\n\nContainer.displayName = 'Container';\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport type { PageViewportProps } from './containers.types';\nimport { focusRecipes } from '../../../lib/focus-recipes';\n\n/** PageViewport — the single page-scroll and page-container-query owner. */\nexport const PageViewport = forwardRef<HTMLDivElement, PageViewportProps>(function PageViewport(\n\t{ className, render, tabIndex = 0, ...props },\n\tref,\n) {\n\treturn useRender({\n\t\tdefaultTagName: 'div',\n\t\tref,\n\t\trender,\n\t\tprops: {\n\t\t\t...props,\n\t\t\ttabIndex,\n\t\t\tclassName: cn(\n\t\t\t\t`page-viewport--component min-h-0 min-w-0 flex-1 overflow-auto overscroll-contain [scrollbar-gutter:stable] @container/page focus-visible:outline-none ${focusRecipes.inset}`,\n\t\t\t\tclassName,\n\t\t\t),\n\t\t},\n\t\tstate: {},\n\t});\n});\n\nPageViewport.displayName = 'PageViewport';\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { stackRecipe } from '../../base/structure/structure.recipes';\nimport { cn } from '../../../lib/utils';\n\nimport type { SectionProps } from './containers.types';\n\n/** Section — a semantic vertical-rhythm owner for page content groups. */\nexport const Section = forwardRef<HTMLElement, SectionProps>(function Section(\n\t{ className, gap, render, ...props },\n\tref,\n) {\n\treturn useRender({\n\t\tdefaultTagName: 'section',\n\t\tref,\n\t\trender,\n\t\tprops: {\n\t\t\t...props,\n\t\t\tclassName: cn('section--component', stackRecipe({ gap: gap ?? 'xl' }), className),\n\t\t},\n\t\tstate: {},\n\t});\n});\n\nSection.displayName = 'Section';\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\nimport type { ReactNode } from 'react';\n\nimport { cn } from '../../../lib/utils';\nimport type { LayoutSlotAttributes } from '../layout.types';\n\nexport interface TwoColumnLayoutSlotProps {\n\theader?: LayoutSlotAttributes<HTMLDivElement>;\n\tmain?: LayoutSlotAttributes<HTMLDivElement>;\n\taside?: LayoutSlotAttributes<HTMLElement>;\n\tfooter?: LayoutSlotAttributes<HTMLDivElement>;\n}\n\nexport interface TwoColumnLayoutProps extends useRender.ComponentProps<'div'> {\n\t/** Optional content spanning both columns before the work regions. */\n\theader?: ReactNode;\n\t/** Primary detail, form, or index content. */\n\tmain: ReactNode;\n\t/** Secondary summary, support, or action rail. */\n\taside: ReactNode;\n\t/** Optional content spanning both columns after the work regions. */\n\tfooter?: ReactNode;\n\t/** Keep the aside visible while the nearest page viewport scrolls. */\n\tstickyAside?: boolean;\n\t/** Preserve viewport breakpoints by default, or adapt inside Container/PageViewport. */\n\tadaptTo?: 'viewport' | 'container';\n\t/** Native attributes for each stable region. */\n\tslotProps?: TwoColumnLayoutSlotProps;\n}\n\n/** TwoColumnLayout — one truthful, stable-order main/aside grid. */\nexport const TwoColumnLayout = forwardRef<HTMLDivElement, TwoColumnLayoutProps>(\n\tfunction TwoColumnLayout(\n\t\t{\n\t\t\theader,\n\t\t\tmain,\n\t\t\taside,\n\t\t\tfooter,\n\t\t\tstickyAside = false,\n\t\t\tadaptTo = 'viewport',\n\t\t\tslotProps,\n\t\t\tclassName,\n\t\t\trender,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) {\n\t\tconst { className: headerClassName, ...headerProps } = slotProps?.header ?? {};\n\t\tconst { className: mainClassName, ...mainProps } = slotProps?.main ?? {};\n\t\tconst { className: asideClassName, ...asideProps } = slotProps?.aside ?? {};\n\t\tconst { className: footerClassName, ...footerProps } = slotProps?.footer ?? {};\n\n\t\treturn useRender({\n\t\t\tdefaultTagName: 'div',\n\t\t\tref,\n\t\t\trender,\n\t\t\tprops: {\n\t\t\t\t...props,\n\t\t\t\t'data-slot': 'two-column-layout',\n\t\t\t\tclassName: cn(\n\t\t\t\t\t'two-column-layout--component grid min-w-0 grid-cols-1 gap-space-2xl',\n\t\t\t\t\tadaptTo === 'container' ? '@3xl:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]' : 'lg:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]',\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t\tchildren: (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{header !== undefined && header !== null ? (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t{...headerProps}\n\t\t\t\t\t\t\t\tdata-slot=\"two-column-layout-header\"\n\t\t\t\t\t\t\t\tclassName={cn('two-column-layout--header col-span-full min-w-0', headerClassName)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{header}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t{...mainProps}\n\t\t\t\t\t\t\tdata-slot=\"two-column-layout-main\"\n\t\t\t\t\t\t\tclassName={cn('two-column-layout--main min-h-0 min-w-0', mainClassName)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{main}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<aside\n\t\t\t\t\t\t\t{...asideProps}\n\t\t\t\t\t\t\tdata-slot=\"two-column-layout-aside\"\n\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t'two-column-layout--aside min-h-0 min-w-0',\n\t\t\t\t\t\t\t\tstickyAside && (adaptTo === 'container' ? '@3xl:sticky @3xl:top-space-2xl @3xl:self-start' : 'lg:sticky lg:top-space-2xl lg:self-start'),\n\t\t\t\t\t\t\t\tasideClassName,\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{aside}\n\t\t\t\t\t\t</aside>\n\t\t\t\t\t\t{footer !== undefined && footer !== null ? (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t{...footerProps}\n\t\t\t\t\t\t\t\tdata-slot=\"two-column-layout-footer\"\n\t\t\t\t\t\t\t\tclassName={cn('two-column-layout--footer col-span-full min-w-0', footerClassName)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{footer}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t</>\n\t\t\t\t),\n\t\t\t},\n\t\t\tstate: {},\n\t\t});\n\t},\n);\n\nTwoColumnLayout.displayName = 'TwoColumnLayout';\n"],"mappings":";;;;;;;;;AASA,IAAaK,IAAYC,EAA2C,SACnE,EAAE,cAAW,aAAU,WAAQ,WAAQ,GAAGC,KAC1C,GACC;CACD,OAAOC,EAAU;EAChB,gBAAgB;EAChB;EACA;EACA,OAAO;GACN,GAAGD;GACH,WAAWN,EAAG,2CAA2CE,EAAgB;IAAE;IAAU;GAAO,CAAC,GAAGM,CAAS;EAC1G;EACA,OAAO,CAAC;CACT,CAAC;AACF,CAAC;AAED,EAAU,cAAc;;;AChBxB,IAAaC,IAAeJ,EAA8C,SACzE,EAAE,cAAW,WAAQ,cAAW,GAAG,GAAGC,KACtC,GACC;CACD,OAAOC,EAAU;EAChB,gBAAgB;EAChB;EACA;EACA,OAAO;GACN,GAAGD;GACH;GACA,WAAWN,EACV,yJAAyJU,EAAa,SACtKF,CACD;EACD;EACA,OAAO,CAAC;CACT,CAAC;AACF,CAAC;AAED,EAAa,cAAc;;;ACpB3B,IAAaG,IAAUN,EAAsC,SAC5D,EAAE,cAAW,QAAK,WAAQ,GAAGC,KAC7B,GACC;CACD,OAAOC,EAAU;EAChB,gBAAgB;EAChB;EACA;EACA,OAAO;GACN,GAAGD;GACH,WAAWN,EAAG,sBAAsBC,EAAY,EAAE,KAAKW,KAAO,KAAK,CAAC,GAAGJ,CAAS;EACjF;EACA,OAAO,CAAC;CACT,CAAC;AACF,CAAC;AAED,EAAQ,cAAc;;;ACOtB,IAAaK,IAAkBR,EAC9B,SACC,EACC,WACA,SACA,UACA,WACA,iBAAc,IACd,aAAU,YACV,cACA,cACA,WACA,GAAGC,KAEJ,GACC;CACD,IAAM,EAAE,WAAWQ,GAAiB,GAAGC,MAAgBC,GAAW,UAAU,CAAC,GACvE,EAAE,WAAWC,GAAe,GAAGC,MAAcF,GAAW,QAAQ,CAAC,GACjE,EAAE,WAAWG,GAAgB,GAAGC,MAAeJ,GAAW,SAAS,CAAC,GACpE,EAAE,WAAWK,GAAiB,GAAGC,MAAgBN,GAAW,UAAU,CAAC;CAE7E,OAAOT,EAAU;EAChB,gBAAgB;EAChB;EACA;EACA,OAAO;GACN,GAAGD;GACH,aAAa;GACb,WAAWN,EACV,uEACAuB,MAAY,cAAc,qDAAqD,kDAC/Ef,CACD;GACA,UACC,kBAAAT,GAAA,EAAA,UAAA;IACEyB,KAAmC,OAQhC,OAPH,kBAAC,OAAD;KACC,GAAIT;KACJ,aAAU;KACV,WAAWf,EAAG,mDAAmDc,CAAe;KAE/E,UAAAU;IACG,CAAA;IAEN,kBAAC,OAAD;KACC,GAAIN;KACJ,aAAU;KACV,WAAWlB,EAAG,2CAA2CiB,CAAa;KAErE,UAAAQ;IACG,CAAA;IACL,kBAAC,SAAD;KACC,GAAIL;KACJ,aAAU;KACV,WAAWpB,EACV,4CACA0B,MAAgBH,MAAY,cAAc,mDAAmD,6CAC7FJ,CACD;KAEC,UAAAQ;IACK,CAAA;IACNC,KAAmC,OAQhC,OAPH,kBAAC,OAAD;KACC,GAAIN;KACJ,aAAU;KACV,WAAWtB,EAAG,mDAAmDqB,CAAe;KAE/E,UAAAO;IACG,CAAA;GAEL,EAAA,CAAA;EAEJ;EACA,OAAO,CAAC;CACT,CAAC;AACF,CACD;AAEA,EAAgB,cAAc"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "./lib/strings.js";
|
|
3
|
-
import { t } from "./utils-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { t } from "./utils-l5LpDw2z.js";
|
|
4
|
+
import { n } from "./buttons-SbIcm1HJ.js";
|
|
5
|
+
import { s as r } from "./typography-DTRkE9zL.js";
|
|
6
6
|
import { forwardRef as i, useEffect as a, useState as o } from "react";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { Check as l, Copy as u } from "lucide-react";
|
|
@@ -33,12 +33,12 @@ var f = {
|
|
|
33
33
|
...S,
|
|
34
34
|
children: [/* @__PURE__ */ s("span", {
|
|
35
35
|
className: "copyable--content min-w-0 text-link-color",
|
|
36
|
-
children: O ? p : /* @__PURE__ */ s(
|
|
36
|
+
children: O ? p : /* @__PURE__ */ s(r, {
|
|
37
37
|
tag: "span",
|
|
38
38
|
className: t(m && "font-mono", h && "block truncate", "text-link-color", _),
|
|
39
39
|
children: p ?? i
|
|
40
40
|
})
|
|
41
|
-
}), /* @__PURE__ */ s(
|
|
41
|
+
}), /* @__PURE__ */ s(n, {
|
|
42
42
|
...j,
|
|
43
43
|
type: "button",
|
|
44
44
|
size: "sm",
|
|
@@ -62,4 +62,4 @@ p.displayName = "Copyable";
|
|
|
62
62
|
//#endregion
|
|
63
63
|
export { f as n, p as t };
|
|
64
64
|
|
|
65
|
-
//# sourceMappingURL=copyable-
|
|
65
|
+
//# sourceMappingURL=copyable-B3Gwgdqc.js.map
|