themelia-react-ui 2.0.3 → 2.0.5
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 +185 -0
- package/README.md +168 -36
- package/dist/{accordion-Cjb6sx0G.js → accordion-B9MHG0cT.js} +11 -11
- package/dist/accordion-B9MHG0cT.js.map +1 -0
- package/dist/action-menu-Dr8K-ghE.js +284 -0
- package/dist/action-menu-Dr8K-ghE.js.map +1 -0
- package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-P-aVJisu.js} +42 -36
- package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
- package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-C58tQcBy.js} +387 -350
- package/dist/ai-artifact-C58tQcBy.js.map +1 -0
- package/dist/app-shell-B_IuNWOo.js +321 -0
- package/dist/app-shell-B_IuNWOo.js.map +1 -0
- package/dist/{attachment-BxDfL2mw.js → attachment-Dg_69lPS.js} +9 -9
- package/dist/{attachment-BxDfL2mw.js.map → attachment-Dg_69lPS.js.map} +1 -1
- package/dist/{auth-BGua8ouh.js → auth-DTkkshS8.js} +44 -47
- package/dist/auth-DTkkshS8.js.map +1 -0
- package/dist/{avatar-DAPlDvhJ.js → avatar-CeZaFmNH.js} +8 -8
- package/dist/avatar-CeZaFmNH.js.map +1 -0
- package/dist/{badge-HpFqoqSY.js → badge-xIiV_E7f.js} +5 -5
- package/dist/{badge-HpFqoqSY.js.map → badge-xIiV_E7f.js.map} +1 -1
- 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 +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +2 -372
- 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 +2 -2
- 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 +6 -6
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +3 -3
- package/dist/base/inline-edit.js +10 -10
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- 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 +12 -12
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +7 -7
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +4 -4
- 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 +36 -36
- 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/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-Cb8cuvyy.js} +6 -6
- package/dist/batch-action-bar-Cb8cuvyy.js.map +1 -0
- package/dist/blocks/admin.js +23 -23
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +230 -216
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +326 -307
- 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 +1247 -1169
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-J-K2kl4c.js} +6 -6
- package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-J-K2kl4c.js.map} +1 -1
- package/dist/{button-DVzspB_G.js → button-S2Cubiiz.js} +3 -3
- package/dist/button-S2Cubiiz.js.map +1 -0
- package/dist/{buttons-DPZekJFu.js → buttons-BedGfygC.js} +16 -16
- package/dist/buttons-BedGfygC.js.map +1 -0
- package/dist/cards-rNX1M4Xn.js +69 -0
- package/dist/cards-rNX1M4Xn.js.map +1 -0
- package/dist/cascader-B1MiqkBq.js +439 -0
- package/dist/cascader-B1MiqkBq.js.map +1 -0
- package/dist/chart-Darg_0Kv.js +162 -0
- package/dist/chart-Darg_0Kv.js.map +1 -0
- package/dist/{checkbox-AWIhNhmo.js → checkbox-fflqmODR.js} +9 -5
- package/dist/checkbox-fflqmODR.js.map +1 -0
- package/dist/choice-inputs-zUgBZfE4.js +777 -0
- package/dist/choice-inputs-zUgBZfE4.js.map +1 -0
- package/dist/{code-block-DeneBJR_.js → code-block-BzmM9Eig.js} +9 -9
- package/dist/code-block-BzmM9Eig.js.map +1 -0
- package/dist/{collapsible-C-_l4hpy.js → collapsible-BkAI_XD4.js} +5 -5
- package/dist/{collapsible-C-_l4hpy.js.map → collapsible-BkAI_XD4.js.map} +1 -1
- package/dist/{collection-content-By56pLog.js → collection-content-gDh1v6O4.js} +3 -3
- package/dist/{collection-content-By56pLog.js.map → collection-content-gDh1v6O4.js.map} +1 -1
- package/dist/combobox-BEx0vJgF.js +362 -0
- package/dist/combobox-BEx0vJgF.js.map +1 -0
- package/dist/{combobox-Dxo2fAYQ.js → combobox-BwzoXFSG.js} +254 -247
- package/dist/combobox-BwzoXFSG.js.map +1 -0
- package/dist/{command-C25VMRII.js → command-CrlPIL6m.js} +12 -12
- package/dist/command-CrlPIL6m.js.map +1 -0
- package/dist/{comments-DD0DUPwJ.js → comments-Dmpp0YIc.js} +380 -379
- package/dist/comments-Dmpp0YIc.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +9 -1
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/cards/card.recipes.d.ts +16 -7
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
- package/dist/components/base/cards/smart-card.types.d.ts +11 -7
- package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
- package/dist/components/base/chart/chart.d.ts +6 -1
- package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +1 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
- package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +4 -2
- package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
- package/dist/components/base/forms/form-field.d.ts +5 -3
- package/dist/components/base/forms/form-sizing.d.ts +7 -7
- package/dist/components/base/forms/index.d.ts +1 -0
- package/dist/components/base/forms/server-errors.d.ts +16 -0
- package/dist/components/base/forms/workflow.d.ts +11 -2
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -0
- package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
- package/dist/components/base/navigation/page-header/page-header.d.ts +13 -4
- package/dist/components/base/popover/popover.d.ts +3 -3
- package/dist/components/base/popover/popover.recipes.d.ts +10 -6
- package/dist/components/base/sheet/sheet.d.ts +2 -0
- package/dist/components/base/sidebar/index.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts +27 -5
- package/dist/components/base/structure/composition.recipes.d.ts +17 -0
- package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
- package/dist/components/base/text-inputs/input.d.ts +4 -2
- package/dist/components/base/text-inputs/textarea.d.ts +4 -2
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
- package/dist/components/base/value-inputs/slider.d.ts +5 -1
- package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +3 -1
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
- package/dist/components/blocks/commerce/index.d.ts +7 -6
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
- package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
- package/dist/components/features/activities/activities.types.d.ts +8 -2
- package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
- package/dist/components/features/event-calendar/colors.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
- package/dist/components/features/filters/filters.strings.d.ts +4 -0
- package/dist/components/features/filters/filters.types.d.ts +3 -0
- package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
- package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +21 -3
- package/dist/components/features/global-search/global-search.types.d.ts +2 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
- package/dist/components/features/media-library/media-library.types.d.ts +14 -4
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/products.strings.d.ts +9 -1
- package/dist/components/features/products/products.types.d.ts +43 -6
- package/dist/components/features/resource/resource.d.ts +5 -1
- package/dist/components/features/resource/resource.types.d.ts +12 -1
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
- package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
- package/dist/components/layout/app-shell/index.d.ts +1 -1
- package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
- package/dist/components/layout/header/header.recipes.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +6 -6
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +2 -1
- package/dist/components/layout/page/page.d.ts +1 -0
- package/dist/components/layout/page/page.strings.d.ts +11 -0
- package/dist/components/layout/page/page.types.d.ts +69 -17
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +9 -2
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +2 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +36 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +5 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +48 -10
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
- package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
- package/dist/components/typography/text.styles.d.ts +26 -1
- package/dist/components/ui/alert-dialog.d.ts +2 -2
- package/dist/components/ui/combobox.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts +2 -2
- package/dist/components/ui/overlay-layer.d.ts +18 -0
- package/dist/components/ui/sheet.d.ts +5 -1
- package/dist/components/ui/sidebar-state.d.ts +82 -0
- package/dist/components/ui/sidebar.d.ts +5 -17
- package/dist/composition.recipes-COdiFhxB.js +19 -0
- package/dist/composition.recipes-COdiFhxB.js.map +1 -0
- package/dist/containers-CIxwbZt5.js +112 -0
- package/dist/containers-CIxwbZt5.js.map +1 -0
- package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
- package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
- package/dist/{copyable-ClBuk_UK.js → copyable-DIznBqiT.js} +7 -7
- package/dist/{copyable-ClBuk_UK.js.map → copyable-DIznBqiT.js.map} +1 -1
- package/dist/{data-display-DT_khPl_.js → data-display-BdgCAw8T.js} +277 -285
- package/dist/data-display-BdgCAw8T.js.map +1 -0
- package/dist/{date-DCrsDTZc.js → date-Cq8ioE4o.js} +5 -5
- package/dist/{date-DCrsDTZc.js.map → date-Cq8ioE4o.js.map} +1 -1
- package/dist/{date-picker-B2K3ucWn.js → date-picker-RlIzKom_.js} +501 -480
- package/dist/date-picker-RlIzKom_.js.map +1 -0
- package/dist/date-pickers-DY-CpXS1.js +179 -0
- package/dist/date-pickers-DY-CpXS1.js.map +1 -0
- package/dist/{display-hAc1HjpI.js → display-KsZLw9Ov.js} +9 -9
- package/dist/{display-hAc1HjpI.js.map → display-KsZLw9Ov.js.map} +1 -1
- package/dist/dropdown-menu-CLs8Lihj.js +194 -0
- package/dist/dropdown-menu-CLs8Lihj.js.map +1 -0
- package/dist/features/activities.js +302 -253
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +15 -14
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +222 -220
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +11 -10
- 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 +13 -13
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +249 -249
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +264 -269
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +167 -138
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +6 -7
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -260
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +827 -777
- 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 +1246 -1169
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +13 -13
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +127 -123
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +254 -253
- 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 +95 -96
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-BYIhtitP.js → feedback-Dm4izqFn.js} +81 -80
- package/dist/feedback-Dm4izqFn.js.map +1 -0
- package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DWcNcOjh.js} +4 -4
- package/dist/field-affordance-recipes-DWcNcOjh.js.map +1 -0
- package/dist/{filters-DJVAveHA.js → filters-DzgSJpMK.js} +693 -645
- package/dist/filters-DzgSJpMK.js.map +1 -0
- package/dist/{form-field-CwH9y77i.js → form-field-BriWAXyg.js} +14 -8
- package/dist/form-field-BriWAXyg.js.map +1 -0
- package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-Bs2qFUeE.js} +4 -4
- package/dist/form-sizing-Bs2qFUeE.js.map +1 -0
- package/dist/forms-C0RGnJTe.js +216 -0
- package/dist/forms-C0RGnJTe.js.map +1 -0
- package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-DIhghX1Q.js} +295 -291
- package/dist/forms-numeric-DIhghX1Q.js.map +1 -0
- package/dist/{header-BSfIEWbI.js → header-DMMxG__r.js} +67 -63
- package/dist/header-DMMxG__r.js.map +1 -0
- package/dist/header.recipes-BigdJjw1.js +6 -0
- package/dist/header.recipes-BigdJjw1.js.map +1 -0
- package/dist/hooks/useFormErrors.d.ts +1 -1
- package/dist/{hooks-ClH9thn4.js → hooks-DB6CJ4MR.js} +26 -14
- package/dist/hooks-DB6CJ4MR.js.map +1 -0
- package/dist/{icon-badge-DYKIwvOV.js → icon-badge-DZF-YjQp.js} +4 -4
- package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-DZF-YjQp.js.map} +1 -1
- package/dist/index.js +4 -5
- package/dist/input-CvyDQlY7.js +289 -0
- package/dist/input-CvyDQlY7.js.map +1 -0
- package/dist/input-DMBwAZmr.js +21 -0
- package/dist/input-DMBwAZmr.js.map +1 -0
- package/dist/item-DjCcM18E.js +277 -0
- package/dist/item-DjCcM18E.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 +2 -2
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +11 -11
- package/dist/lib/affordance-geometry.generated.d.ts +41 -35
- package/dist/lib/control-group-recipes.d.ts +5 -5
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/motion-recipes.d.ts +3 -0
- package/dist/lib/navigation-row-recipes.d.ts +7 -7
- package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
- package/dist/lib/portal-recipes.d.ts +3 -0
- package/dist/lib/token-merge.generated.d.ts +13 -10
- package/dist/lib/ui-provider/types.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/map-demo-tile.svg +1 -1
- package/dist/{media-gallery-3zIVLMWH.js → media-gallery-C-vChPmE.js} +6 -6
- package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-C-vChPmE.js.map} +1 -1
- package/dist/{mentions-CGlEJ15c.js → mentions-0_4nWuI-.js} +10 -10
- package/dist/{mentions-CGlEJ15c.js.map → mentions-0_4nWuI-.js.map} +1 -1
- package/dist/{message-DZ_ruyUV.js → message-g8p7eVtN.js} +7 -7
- package/dist/message-g8p7eVtN.js.map +1 -0
- package/dist/metadata-list-C3MkU-Om.js +443 -0
- package/dist/metadata-list-C3MkU-Om.js.map +1 -0
- package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
- package/dist/motion-recipes-DitYv6P2.js.map +1 -0
- package/dist/navigation-C90-oQFq.js +255 -0
- package/dist/navigation-C90-oQFq.js.map +1 -0
- package/dist/{navigation-BzhHI3lo.js → navigation-DaRjthVk.js} +101 -82
- package/dist/navigation-DaRjthVk.js.map +1 -0
- package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
- package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
- package/dist/{number-DbV1Dija.js → number-CRU3kGuk.js} +5 -5
- package/dist/{number-DbV1Dija.js.map → number-CRU3kGuk.js.map} +1 -1
- package/dist/overflow-tab-bar-IVFVQFV6.js +172 -0
- package/dist/overflow-tab-bar-IVFVQFV6.js.map +1 -0
- package/dist/overlays-BSgCtM2v.js +1013 -0
- package/dist/overlays-BSgCtM2v.js.map +1 -0
- package/dist/page-DUUKDAjo.js +331 -0
- package/dist/page-DUUKDAjo.js.map +1 -0
- package/dist/page-header-commands-7P3sfE9u.js +193 -0
- package/dist/page-header-commands-7P3sfE9u.js.map +1 -0
- package/dist/{pagination-BL25hu2s.js → pagination-CgCjElfu.js} +7 -7
- package/dist/{pagination-BL25hu2s.js.map → pagination-CgCjElfu.js.map} +1 -1
- package/dist/popover-B85RenIl.js +201 -0
- package/dist/popover-B85RenIl.js.map +1 -0
- package/dist/{popover-menu-Cn9rUkdc.js → popover-menu-DlnQ2zlR.js} +7 -7
- package/dist/{popover-menu-Cn9rUkdc.js.map → popover-menu-DlnQ2zlR.js.map} +1 -1
- package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DdiEp0rd.js} +18 -11
- package/dist/popover.recipes-DdiEp0rd.js.map +1 -0
- package/dist/portal-recipes-BpsV_iRw.js +9 -0
- package/dist/portal-recipes-BpsV_iRw.js.map +1 -0
- package/dist/{primitives-BFK08r9M.js → primitives-ByWgGUgt.js} +6 -6
- package/dist/{primitives-BFK08r9M.js.map → primitives-ByWgGUgt.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-B1VnCT0K.js → progress-BJhQP9WX.js} +9 -9
- package/dist/{progress-B1VnCT0K.js.map → progress-BJhQP9WX.js.map} +1 -1
- package/dist/{receipt-BVSOH3Xo.js → receipt-tOc7B3hw.js} +7 -7
- package/dist/receipt-tOc7B3hw.js.map +1 -0
- package/dist/{rich-text-GOUyKQ-s.js → rich-text-Dth5E882.js} +4 -4
- package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-Dth5E882.js.map} +1 -1
- package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-C1fOjBTd.js} +429 -430
- package/dist/rich-text-editor-C1fOjBTd.js.map +1 -0
- package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-laT3tpBT.js} +33 -29
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +1 -0
- package/dist/{scroll-area-DcI-M1UT.js → scroll-area-B0dB2cBi.js} +2 -2
- package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-B0dB2cBi.js.map} +1 -1
- package/dist/{separator-Bom7NsGO.js → separator-Bb17I4pu.js} +2 -2
- package/dist/{separator-Bom7NsGO.js.map → separator-Bb17I4pu.js.map} +1 -1
- package/dist/{separator-BDV-Y648.js → separator-Ct_WSWTJ.js} +3 -3
- package/dist/{separator-BDV-Y648.js.map → separator-Ct_WSWTJ.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-Bar5wiSo.js +167 -0
- package/dist/settings-Bar5wiSo.js.map +1 -0
- package/dist/sheet-BGPERY55.js +250 -0
- package/dist/sheet-BGPERY55.js.map +1 -0
- package/dist/sidebar-D-JYMMbY.js +686 -0
- package/dist/sidebar-D-JYMMbY.js.map +1 -0
- package/dist/sidebar-f9gRWXIR.js +1001 -0
- package/dist/sidebar-f9gRWXIR.js.map +1 -0
- package/dist/skeleton-BapcJd9C.js +265 -0
- package/dist/skeleton-BapcJd9C.js.map +1 -0
- package/dist/smart-card-CW0hjetE.js +617 -0
- package/dist/smart-card-CW0hjetE.js.map +1 -0
- package/dist/{structure-BmisBK-3.js → structure-DuxKl954.js} +3 -3
- package/dist/{structure-BmisBK-3.js.map → structure-DuxKl954.js.map} +1 -1
- package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
- package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{table-DsfzoUia.js → table-B4TE7iOV.js} +3 -3
- package/dist/{table-DsfzoUia.js.map → table-B4TE7iOV.js.map} +1 -1
- package/dist/{table-BweFy_P9.js → table-CFOWY9pQ.js} +394 -388
- package/dist/table-CFOWY9pQ.js.map +1 -0
- package/dist/{tabs-CDocW5D1.js → tabs-e7ko9S2o.js} +11 -11
- package/dist/tabs-e7ko9S2o.js.map +1 -0
- package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-B1culiSK.js} +107 -104
- package/dist/text-inputs-B1culiSK.js.map +1 -0
- package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
- package/dist/text.styles-B64My8RZ.js.map +1 -0
- package/dist/theme.css +192 -149
- package/dist/{timelines-CwM_9IhD.js → timelines-D3Sl9ueq.js} +13 -12
- package/dist/timelines-D3Sl9ueq.js.map +1 -0
- package/dist/tooltip-8wz5S_Zr.js +113 -0
- package/dist/tooltip-8wz5S_Zr.js.map +1 -0
- package/dist/{tree-WnKQzwbq.js → tree-CzUJHnFs.js} +9 -9
- package/dist/{tree-WnKQzwbq.js.map → tree-CzUJHnFs.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-BQnine1k.js +117 -0
- package/dist/typography-BQnine1k.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/ui-provider-C-74NVLc.js +178 -0
- package/dist/ui-provider-C-74NVLc.js.map +1 -0
- package/dist/ui-provider.js +2 -3
- package/dist/{upload-CXyxmQBP.js → upload-BOW6U2tI.js} +25 -24
- package/dist/upload-BOW6U2tI.js.map +1 -0
- package/dist/{upload-queue-Boscubn9.js → upload-queue-qUXn1ykN.js} +16 -14
- package/dist/upload-queue-qUXn1ykN.js.map +1 -0
- package/dist/{usage-card-BhO5eqkX.js → usage-card-BeSLY0i0.js} +145 -137
- package/dist/usage-card-BeSLY0i0.js.map +1 -0
- package/dist/{utils-BRhFDwuU.js → utils-B6kKb8jB.js} +303 -144
- package/dist/utils-B6kKb8jB.js.map +1 -0
- package/dist/value-inputs-skdVB2zh.js +980 -0
- package/dist/value-inputs-skdVB2zh.js.map +1 -0
- package/dist/{value-typography-BP8OG6h5.js → value-typography-uAmWUAL1.js} +2 -2
- package/dist/{value-typography-BP8OG6h5.js.map → value-typography-uAmWUAL1.js.map} +1 -1
- package/dist/workspace-DHeHv0qw.js +411 -0
- package/dist/workspace-DHeHv0qw.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +15 -129
- package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
- package/docs/consumer-skill/examples/app-layout.tsx +74 -13
- package/docs/consumer-skill/examples/authentication.tsx +77 -0
- package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
- package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
- package/docs/consumer-skill/examples/detail.tsx +5 -4
- package/docs/consumer-skill/examples/edit.tsx +30 -38
- package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
- package/docs/consumer-skill/examples/index-table.tsx +4 -4
- package/docs/consumer-skill/examples/manifest.json +88 -1
- package/docs/consumer-skill/examples/product-media.tsx +41 -0
- package/docs/consumer-skill/examples/product-parts.tsx +81 -0
- package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
- package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
- package/docs/consumer-skill/examples/rhf-overlay-form.tsx +105 -0
- package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
- package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
- package/docs/consumer-skill/references/agents-md.md +23 -11
- package/docs/consumer-skill/references/analytics.md +18 -1
- package/docs/consumer-skill/references/authentication.md +42 -0
- package/docs/consumer-skill/references/commerce-composition.md +97 -0
- package/docs/consumer-skill/references/component-contracts.json +325201 -0
- package/docs/consumer-skill/references/composition-mapping.md +106 -0
- package/docs/consumer-skill/references/composition.md +198 -46
- package/docs/consumer-skill/references/critique-rubric.md +98 -0
- package/docs/consumer-skill/references/custom-composition.md +261 -0
- package/docs/consumer-skill/references/data-reading.md +79 -0
- package/docs/consumer-skill/references/design-contract.md +43 -9
- package/docs/consumer-skill/references/discovery.md +109 -8
- package/docs/consumer-skill/references/domain-structures.md +124 -0
- package/docs/consumer-skill/references/installation.md +51 -36
- package/docs/consumer-skill/references/integration.md +41 -2
- package/docs/consumer-skill/references/product-composition.md +94 -0
- package/docs/consumer-skill/references/public-api.json +4390 -475
- package/docs/consumer-skill/references/review.md +47 -5
- package/docs/consumer-skill/references/rhf-workflows.md +93 -0
- package/docs/consumer-skill/references/screen-archetypes.md +34 -0
- package/docs/consumer-skill/references/screen-decisions.md +126 -0
- package/docs/consumer-skill/references/theming.md +25 -27
- package/docs/consumer-skill/references/tokens.json +20 -11
- package/docs/consumer-skill/references/view-craft.md +153 -0
- package/docs/consumer-skill/references/view-spec.md +73 -0
- package/docs/consumer-skill/references/workflows.md +9 -2
- package/docs/consumer-skill/scripts/composition-policy.mjs +39 -3
- package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
- package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
- package/docs/consumer-skill/scripts/composition.mjs +254 -0
- package/docs/consumer-skill/scripts/discovery.mjs +96 -10
- package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
- package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
- package/docs/consumer-skill/scripts/inspection.mjs +193 -0
- package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
- package/docs/consumer-skill/scripts/setup-skills.mjs +111 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
- package/docs/consumer-skills/themelia-components/SKILL.md +31 -0
- package/docs/consumer-skills/themelia-composition/SKILL.md +34 -0
- package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
- package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
- package/docs/consumer-skills/themelia-foundation/SKILL.md +15 -0
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +42 -0
- package/package.json +4 -2
- package/templates/README.md +39 -0
- package/templates/admin-shell-template.tsx +382 -0
- package/templates/analytics-operations-template.tsx +376 -0
- package/templates/customers-template.tsx +509 -0
- package/templates/index.ts +29 -0
- package/templates/orders-template.tsx +1102 -0
- package/templates/products-template.tsx +834 -0
- package/templates/user-permissions-template.tsx +450 -0
- package/dist/accordion-Cjb6sx0G.js.map +0 -1
- package/dist/action-menu-CllU52Mm.js +0 -280
- package/dist/action-menu-CllU52Mm.js.map +0 -1
- package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
- package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
- package/dist/app-shell-C4FhvCqF.js +0 -236
- package/dist/app-shell-C4FhvCqF.js.map +0 -1
- package/dist/auth-BGua8ouh.js.map +0 -1
- package/dist/avatar-DAPlDvhJ.js.map +0 -1
- package/dist/base/cascader.js.map +0 -1
- package/dist/batch-action-bar-DnUJ21NQ.js.map +0 -1
- package/dist/button-DVzspB_G.js.map +0 -1
- package/dist/buttons-DPZekJFu.js.map +0 -1
- package/dist/cards-BaBZR-AU.js +0 -68
- package/dist/cards-BaBZR-AU.js.map +0 -1
- package/dist/chart-ZOYyK2xG.js +0 -155
- package/dist/chart-ZOYyK2xG.js.map +0 -1
- package/dist/checkbox-AWIhNhmo.js.map +0 -1
- package/dist/choice-inputs-CNHvARCJ.js +0 -770
- package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
- package/dist/code-block-DeneBJR_.js.map +0 -1
- package/dist/combobox-DaHESuiL.js +0 -355
- package/dist/combobox-DaHESuiL.js.map +0 -1
- package/dist/combobox-Dxo2fAYQ.js.map +0 -1
- package/dist/command-C25VMRII.js.map +0 -1
- package/dist/comments-DD0DUPwJ.js.map +0 -1
- package/dist/containers-Mu1LMGV1.js +0 -103
- package/dist/containers-Mu1LMGV1.js.map +0 -1
- package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
- package/dist/data-display-DT_khPl_.js.map +0 -1
- package/dist/date-picker-B2K3ucWn.js.map +0 -1
- package/dist/date-pickers-Ds8gLaoP.js +0 -175
- package/dist/date-pickers-Ds8gLaoP.js.map +0 -1
- package/dist/dropdown-menu-Cl4X7L5S.js +0 -193
- package/dist/dropdown-menu-Cl4X7L5S.js.map +0 -1
- package/dist/feedback-BYIhtitP.js.map +0 -1
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +0 -1
- package/dist/filters-DJVAveHA.js.map +0 -1
- package/dist/form-field-CwH9y77i.js.map +0 -1
- package/dist/form-sizing-BdP_Mf5p.js.map +0 -1
- package/dist/forms-B9G_xwzi.js +0 -194
- package/dist/forms-B9G_xwzi.js.map +0 -1
- package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
- package/dist/header-BSfIEWbI.js.map +0 -1
- package/dist/hooks-ClH9thn4.js.map +0 -1
- package/dist/input-CZw8iU99.js +0 -21
- package/dist/input-CZw8iU99.js.map +0 -1
- package/dist/input-DQdEd0YD.js +0 -263
- package/dist/input-DQdEd0YD.js.map +0 -1
- package/dist/item-K5_ghvze.js +0 -275
- package/dist/item-K5_ghvze.js.map +0 -1
- package/dist/message-DZ_ruyUV.js.map +0 -1
- package/dist/metadata-list-8N16ZMW_.js +0 -405
- package/dist/metadata-list-8N16ZMW_.js.map +0 -1
- package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
- package/dist/navigation-Bnotn4AQ.js +0 -145
- package/dist/navigation-Bnotn4AQ.js.map +0 -1
- package/dist/navigation-BzhHI3lo.js.map +0 -1
- package/dist/navigation-row-recipes-BFLCk_Aq.js.map +0 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +0 -282
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
- package/dist/overlays-tMkF-VAN.js +0 -1003
- package/dist/overlays-tMkF-VAN.js.map +0 -1
- package/dist/page-CL9YeH_V.js +0 -224
- package/dist/page-CL9YeH_V.js.map +0 -1
- package/dist/page-header-commands-DOb6WsfD.js +0 -126
- package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
- package/dist/popover-gnTOhbFM.js +0 -198
- package/dist/popover-gnTOhbFM.js.map +0 -1
- package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
- package/dist/receipt-BVSOH3Xo.js.map +0 -1
- package/dist/rich-text-editor-cRLC-eBK.js.map +0 -1
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +0 -1
- package/dist/settings-ybnjVwbd.js +0 -171
- package/dist/settings-ybnjVwbd.js.map +0 -1
- package/dist/sheet-ijlsjq-n.js +0 -213
- package/dist/sheet-ijlsjq-n.js.map +0 -1
- package/dist/sidebar-Db6gkh3U.js +0 -619
- package/dist/sidebar-Db6gkh3U.js.map +0 -1
- package/dist/sidebar-DkTO4VTO.js +0 -512
- package/dist/sidebar-DkTO4VTO.js.map +0 -1
- package/dist/skeleton-Byjnt7qr.js +0 -264
- package/dist/skeleton-Byjnt7qr.js.map +0 -1
- package/dist/smart-card-DiC5aac3.js +0 -604
- package/dist/smart-card-DiC5aac3.js.map +0 -1
- package/dist/table-BweFy_P9.js.map +0 -1
- package/dist/tabs-CDocW5D1.js.map +0 -1
- package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
- package/dist/text.styles-g4He6UIW.js.map +0 -1
- package/dist/theme-scope-BJ6eE2xt.js +0 -50
- package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
- package/dist/timelines-CwM_9IhD.js.map +0 -1
- package/dist/tooltip-yiRJUFjp.js +0 -111
- package/dist/tooltip-yiRJUFjp.js.map +0 -1
- package/dist/typography-UTnveOEy.js +0 -117
- package/dist/typography-UTnveOEy.js.map +0 -1
- package/dist/ui-provider-C_U0Xma4.js +0 -136
- package/dist/ui-provider-C_U0Xma4.js.map +0 -1
- package/dist/upload-CXyxmQBP.js.map +0 -1
- package/dist/upload-queue-Boscubn9.js.map +0 -1
- package/dist/usage-card-BhO5eqkX.js.map +0 -1
- package/dist/use-mobile-vaLKwgyf.js +0 -15
- package/dist/use-mobile-vaLKwgyf.js.map +0 -1
- package/dist/utils-BRhFDwuU.js.map +0 -1
- package/dist/value-inputs-TaX4OjNk.js +0 -963
- package/dist/value-inputs-TaX4OjNk.js.map +0 -1
- package/dist/workspace-B-OEm3Kf.js +0 -408
- package/dist/workspace-B-OEm3Kf.js.map +0 -1
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
import { type LucideIcon } from 'lucide-react';
|
|
11
11
|
import * as React from 'react';
|
|
12
12
|
export interface SwitchCardProps {
|
|
13
|
+
/** Editable control ref; the forwarded ref continues to name the outer row/card. */
|
|
14
|
+
controlRef?: React.Ref<HTMLElement>;
|
|
15
|
+
/** Blur callback from the editable control. */
|
|
16
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
17
|
+
/** Id of the editable control, including external FormField associations. */
|
|
18
|
+
id?: string;
|
|
19
|
+
'aria-invalid'?: React.AriaAttributes['aria-invalid'];
|
|
13
20
|
/** Additional supporting/error descriptions associated with the editable control. */
|
|
14
21
|
'aria-describedby'?: string;
|
|
15
22
|
/** Card title, also the switch's accessible name. */
|
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
import type { ReactNode } from 'react';
|
|
16
16
|
export type ToggleFieldKind = 'switch' | 'checkbox';
|
|
17
17
|
export interface ToggleFieldProps {
|
|
18
|
+
/** Editable control ref; the forwarded ref continues to name the outer row/card. */
|
|
19
|
+
controlRef?: React.Ref<HTMLElement>;
|
|
20
|
+
/** Blur callback from the editable control. */
|
|
21
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
22
|
+
/** Id of the editable control, including external FormField associations. */
|
|
23
|
+
id?: string;
|
|
24
|
+
'aria-invalid'?: React.AriaAttributes['aria-invalid'];
|
|
18
25
|
/** Additional supporting/error descriptions associated with the editable control. */
|
|
19
26
|
'aria-describedby'?: string;
|
|
20
27
|
/** Control label. */
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* The compound root is exported as `ComboboxRoot` so the canonical `Combobox`
|
|
11
11
|
* name stays with the opinionated feature component.
|
|
12
12
|
*/
|
|
13
|
-
export { Combobox as ComboboxRoot, ComboboxValue, ComboboxPortal, ComboboxPositioner,
|
|
13
|
+
export { Combobox as ComboboxRoot, ComboboxValue, ComboboxPortal, ComboboxPositioner, ComboboxItemIndicator, ComboboxEmpty, ComboboxStatus, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxChips, ComboboxChipsInput, ComboboxBackdrop, ComboboxArrow, useComboboxFilter, } from '../../ui/combobox';
|
|
14
14
|
import { type ComponentProps } from 'react';
|
|
15
|
-
import { ComboboxItem as Item, ComboboxPopup as Popup, ComboboxInput as Input, ComboboxInputTrigger as InputTrigger, ComboboxClear as Clear, ComboboxChip as Chip, ComboboxTrigger as Trigger, ComboboxSeparator as Separator } from '../../ui/combobox';
|
|
15
|
+
import { ComboboxList as List, ComboboxItem as Item, ComboboxPopup as Popup, ComboboxInput as Input, ComboboxInputTrigger as InputTrigger, ComboboxClear as Clear, ComboboxChip as Chip, ComboboxTrigger as Trigger, ComboboxSeparator as Separator } from '../../ui/combobox';
|
|
16
16
|
import { type CollectionDensity } from '../popover/popover.recipes';
|
|
17
17
|
import { type StringsProp } from '../../../lib/strings';
|
|
18
18
|
import { type ComboboxControlStrings } from './combobox.strings';
|
|
@@ -41,6 +41,8 @@ export declare function ComboboxChip({ strings: stringsProp, ...props }: Combobo
|
|
|
41
41
|
removeLabel?: string;
|
|
42
42
|
}>;
|
|
43
43
|
export declare function ComboboxPopup({ className, ...props }: ComponentProps<typeof Popup>): import("react").FunctionComponentElement<import("@base-ui/react").AutocompletePopupProps>;
|
|
44
|
+
/** The list owns one compact collection inset inside the flush popup. */
|
|
45
|
+
export declare function ComboboxList({ className, ...props }: ComponentProps<typeof List>): import("react").FunctionComponentElement<import("@base-ui/react").AutocompleteListProps>;
|
|
44
46
|
export declare function ComboboxInput({ className, ...props }: ComponentProps<typeof Input>): import("react").FunctionComponentElement<import("@base-ui/react").AutocompleteInputProps>;
|
|
45
47
|
export declare function ComboboxTrigger({ className, ...props }: ComponentProps<typeof Trigger>): import("react").FunctionComponentElement<import("@base-ui/react").ComboboxTriggerProps>;
|
|
46
48
|
export declare function ComboboxItem({ className, size, density, children, ...props }: ComponentProps<typeof Item> & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AriaAttributes, FocusEventHandler, Ref } from 'react';
|
|
1
2
|
import type { LucideIcon } from 'lucide-react';
|
|
2
3
|
import type { DateRange, PropsSingle, PropsRange, PropsMulti, Locale } from 'react-day-picker';
|
|
3
4
|
import type { FormControlSize } from '../../../lib/ui-provider';
|
|
@@ -65,6 +66,12 @@ export interface DatePickerStrings {
|
|
|
65
66
|
year: string;
|
|
66
67
|
}
|
|
67
68
|
export interface DatePickerBaseProps {
|
|
69
|
+
/** Trigger ref for focus and form adapters; the forwarded ref remains the field root. */
|
|
70
|
+
triggerRef?: Ref<HTMLButtonElement>;
|
|
71
|
+
/** Native trigger blur callback. */
|
|
72
|
+
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
73
|
+
'aria-describedby'?: string;
|
|
74
|
+
'aria-invalid'?: AriaAttributes['aria-invalid'];
|
|
68
75
|
/** Trigger field size. Explicit values override the provider density scale; fallback is md. */
|
|
69
76
|
size?: FormControlSize;
|
|
70
77
|
/** Caption above the trigger, associated through `htmlFor`. Omit when an external FormField owns the chrome. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Alert — base notice primitive with semantic variants and
|
|
2
|
+
* Alert — base notice primitive with semantic variants and container-driven actions.
|
|
3
3
|
*
|
|
4
4
|
* Package-owned notice inspired by ReUI's alert layout. Consumers import this
|
|
5
5
|
* base alert for the library's typography, token, and DOM-hook contract.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ControlledFormField — react-hook-form integration for the
|
|
3
|
-
* `FormField`
|
|
4
|
-
*
|
|
2
|
+
* ControlledFormField — react-hook-form integration for the presentational
|
|
3
|
+
* `FormField` component. Runtime state bindings stay in this module; the
|
|
4
|
+
* published family still reports RHF for its exported bindings and types.
|
|
5
5
|
*/
|
|
6
6
|
import type { ComponentProps, ReactNode } from 'react';
|
|
7
7
|
import { type Control, type ControllerFieldState, type ControllerRenderProps, type FieldPath, type FieldValues, type RegisterOptions } from 'react-hook-form';
|
|
8
8
|
import { FormField } from './form-field';
|
|
9
9
|
import { type ControlledFormFieldStrings } from './controlled-form-field.strings';
|
|
10
10
|
import { type StringsProp } from '../../../lib/strings';
|
|
11
|
-
type FieldChromeProps = Omit<ComponentProps<typeof FormField>, 'children' | 'error'
|
|
11
|
+
type FieldChromeProps = Omit<ComponentProps<typeof FormField>, 'children' | 'error'>;
|
|
12
12
|
export type FormFieldErrorGetter<TName extends string> = (field: TName) => string | undefined;
|
|
13
13
|
export interface ControlledFormFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> extends FieldChromeProps {
|
|
14
14
|
/** Field name in the react-hook-form schema. */
|
|
@@ -18,14 +18,14 @@ export interface ControlledFormFieldProps<TFieldValues extends FieldValues, TNam
|
|
|
18
18
|
/** Validation rules passed to react-hook-form. */
|
|
19
19
|
rules?: RegisterOptions<TFieldValues, TName>;
|
|
20
20
|
/** Validation message, overriding the one derived from form state. */
|
|
21
|
-
error?: FormFieldErrorGetter<TName>;
|
|
21
|
+
error?: ReactNode | FormFieldErrorGetter<TName>;
|
|
22
22
|
/** Overrides the field's own copy. */
|
|
23
23
|
strings?: StringsProp<ControlledFormFieldStrings>;
|
|
24
24
|
children: (field: ControllerRenderProps<TFieldValues, TName>,
|
|
25
25
|
/** Validation message, overriding the one derived from form state. */
|
|
26
26
|
error: string | undefined, invalid: boolean, fieldState: ControllerFieldState) => ReactNode;
|
|
27
27
|
}
|
|
28
|
-
export declare function ControlledFormField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, rules, error:
|
|
28
|
+
export declare function ControlledFormField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, rules, error: errorProp, strings: stringsProp, children, ...chromeProps }: ControlledFormFieldProps<TFieldValues, TName>): import("react").JSX.Element;
|
|
29
29
|
export declare namespace ControlledFormField {
|
|
30
30
|
var displayName: string;
|
|
31
31
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* FormField —
|
|
3
|
-
*
|
|
4
|
-
* `
|
|
2
|
+
* FormField — presentation chrome for a label, control, hint/helper and error.
|
|
3
|
+
* This implementation keeps presentation separate from RHF state bindings.
|
|
4
|
+
* The published `base/forms` family exports those bindings and types, so use
|
|
5
|
+
* its listed react-hook-form peer even when selecting only FormField. Installing
|
|
6
|
+
* that peer does not require adopting RHF for the app's own form state.
|
|
5
7
|
*/
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
@@ -68,7 +68,7 @@ export declare const formControlMinHeightClasses: {
|
|
|
68
68
|
/**
|
|
69
69
|
* The one field frame, drawn by `Input` on its native field and by
|
|
70
70
|
* `formFieldTriggerClasses` on button-shaped triggers: the `--input` boundary,
|
|
71
|
-
*
|
|
71
|
+
* default radius, transparent fill (the library is intentionally flat), control
|
|
72
72
|
* height, editable text size, control padding and the shared focus, invalid and
|
|
73
73
|
* disabled states. Layout (`flex`, width) stays with each owner.
|
|
74
74
|
*
|
|
@@ -97,9 +97,9 @@ export declare const formTextareaSizeClasses: {
|
|
|
97
97
|
* line height, so the inset follows the editable text size on every pointer.
|
|
98
98
|
*/
|
|
99
99
|
export declare const formTextareaInsetClasses: {
|
|
100
|
-
readonly sm: "py-[calc((var(--height-control)*8
|
|
100
|
+
readonly sm: "py-[calc((var(--height-control)*7/8*var(--density-scale)-1lh)/2-1px)]";
|
|
101
101
|
readonly md: "py-[calc((var(--height-control)*var(--density-scale)-1lh)/2-1px)]";
|
|
102
|
-
readonly lg: "py-[calc((var(--height-control)*
|
|
102
|
+
readonly lg: "py-[calc((var(--height-control)*9/8*var(--density-scale)-1lh)/2-1px)]";
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
105
105
|
* Top offsets that centre multi-line field affordances on the first line, where a
|
|
@@ -108,14 +108,14 @@ export declare const formTextareaInsetClasses: {
|
|
|
108
108
|
*/
|
|
109
109
|
export declare const formTextareaAffordanceTopClasses: {
|
|
110
110
|
readonly target: {
|
|
111
|
-
readonly sm: "top-[calc((var(--height-control)*8
|
|
111
|
+
readonly sm: "top-[calc((var(--height-control)*7/8-1.375rem)*var(--density-scale)/2)]";
|
|
112
112
|
readonly md: "top-[calc((var(--height-control)-1.375rem)*var(--density-scale)/2)]";
|
|
113
|
-
readonly lg: "top-[calc((var(--height-control)*
|
|
113
|
+
readonly lg: "top-[calc((var(--height-control)*9/8-1.375rem)*var(--density-scale)/2)]";
|
|
114
114
|
};
|
|
115
115
|
readonly icon: {
|
|
116
|
-
readonly sm: "top-[calc((var(--height-control)*8
|
|
116
|
+
readonly sm: "top-[calc((var(--height-control)*7/8*var(--density-scale)-var(--icon))/2)]";
|
|
117
117
|
readonly md: "top-[calc((var(--height-control)*var(--density-scale)-var(--icon))/2)]";
|
|
118
|
-
readonly lg: "top-[calc((var(--height-control)*
|
|
118
|
+
readonly lg: "top-[calc((var(--height-control)*9/8*var(--density-scale)-var(--icon))/2)]";
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
121
|
export declare const formLabelSizeClasses: {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FieldPath, FieldValues, UseFormSetError } from 'react-hook-form';
|
|
2
|
+
/** Flat server validation messages; transport libraries keep ownership of requests. */
|
|
3
|
+
export type ServerErrors<TName extends string = string> = Partial<Record<TName, string | readonly string[]>>;
|
|
4
|
+
export interface ApplyServerErrorsOptions<TFieldValues extends FieldValues> {
|
|
5
|
+
/** Allowed schema paths. Unknown server keys are reported at the root. */
|
|
6
|
+
fields: readonly FieldPath<TFieldValues>[];
|
|
7
|
+
/** Root error path for unknown fields and general errors. Defaults to root.server. */
|
|
8
|
+
root?: `root.${string}`;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Apply an untrusted transport error bag without importing a transport or RHF at
|
|
12
|
+
* runtime. The allowlist prevents unknown server keys from becoming form fields.
|
|
13
|
+
* Invalid/empty messages are ignored; arrays retain every string message.
|
|
14
|
+
* Returns the number of field/root errors applied.
|
|
15
|
+
*/
|
|
16
|
+
export declare function applyServerErrors<TFieldValues extends FieldValues>(setError: UseFormSetError<TFieldValues>, errors: unknown, { fields, root }: ApplyServerErrorsOptions<TFieldValues>): number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Form workflow primitives — section chrome, errors, dirty state, and submit state. */
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { ButtonProps } from '../buttons';
|
|
4
|
+
import { type CardProps } from '../cards';
|
|
4
5
|
import type { SmartCardSurface } from '../cards';
|
|
5
6
|
import type { AlertTone } from '../feedback';
|
|
6
7
|
export interface FormSectionProps {
|
|
@@ -13,13 +14,21 @@ export interface FormSectionProps {
|
|
|
13
14
|
children?: ReactNode;
|
|
14
15
|
/** Content below the section body. */
|
|
15
16
|
footer?: ReactNode;
|
|
16
|
-
/** Outer chrome. Use `flat`
|
|
17
|
+
/** Outer chrome. Use `flat` with `padding="none"` inside a padded Card. */
|
|
17
18
|
surface?: SmartCardSurface;
|
|
19
|
+
/** Card region insets. Defaults to Card's ordinary inset; use `none` when the parent already owns padding. */
|
|
20
|
+
padding?: CardProps['padding'];
|
|
21
|
+
/**
|
|
22
|
+
* Section title size. Embedded `surface="flat" padding="none"` inside a padded
|
|
23
|
+
* Card defaults to the subordinate `sm` title, below the card's own title;
|
|
24
|
+
* otherwise Card's default applies.
|
|
25
|
+
*/
|
|
26
|
+
titleSize?: CardProps['titleSize'];
|
|
18
27
|
className?: string;
|
|
19
28
|
/** Merged onto the section body. */
|
|
20
29
|
contentClassName?: string;
|
|
21
30
|
}
|
|
22
|
-
export declare function FormSection({ title, description, actions, children, footer, surface, className, contentClassName, }: FormSectionProps): import("react").JSX.Element;
|
|
31
|
+
export declare function FormSection({ title, description, actions, children, footer, surface, padding, titleSize, className, contentClassName, }: FormSectionProps): import("react").JSX.Element;
|
|
23
32
|
export interface FormActionsBarProps {
|
|
24
33
|
/** Action content used when `trailing` is not provided. */
|
|
25
34
|
children?: ReactNode;
|
|
@@ -17,6 +17,10 @@ export interface CoordinatesInputStrings {
|
|
|
17
17
|
lngPlaceholder: string;
|
|
18
18
|
/** Anchor text for the Google Maps preview link. Empty string hides it. */
|
|
19
19
|
previewLinkLabel: string;
|
|
20
|
+
/** Accessible name for the latitude input while `latLabel` is empty. */
|
|
21
|
+
latAccessibleLabel: string;
|
|
22
|
+
/** Accessible name for the longitude input while `lngLabel` is empty. */
|
|
23
|
+
lngAccessibleLabel: string;
|
|
20
24
|
}
|
|
21
25
|
export declare const defaultCoordinatesInputStrings: CoordinatesInputStrings;
|
|
22
26
|
export interface CoordinatesInputProps {
|
|
@@ -33,6 +33,8 @@ export type MetadataDensity = 'default' | 'compact';
|
|
|
33
33
|
type MetadataListSharedProps = {
|
|
34
34
|
/** How many columns the grid layout uses. Accepts a per-breakpoint value. */
|
|
35
35
|
columns?: ResponsiveValue<1 | 2 | 3 | 4>;
|
|
36
|
+
/** Measure responsive grid columns against this list's own width (default) or the viewport. */
|
|
37
|
+
adaptTo?: 'viewport' | 'container';
|
|
36
38
|
/** Row spacing. `compact` tightens the list for dense panels. */
|
|
37
39
|
density?: MetadataDensity;
|
|
38
40
|
/** Copy shown for an item whose value is empty. Defaults to an em dash. */
|
|
@@ -75,7 +77,7 @@ type MetadataInlineProps = MetadataListSharedProps & {
|
|
|
75
77
|
valueAlign?: never;
|
|
76
78
|
};
|
|
77
79
|
export type MetadataListProps = MetadataGridRowsProps | MetadataInlineProps;
|
|
78
|
-
export declare function MetadataList({ items, columns, density, emptyLabel, title, titleSeparator, className, layout, separator, itemSeparator, valueAlign, strings: stringsProp, }: MetadataListProps): React.JSX.Element | null;
|
|
80
|
+
export declare function MetadataList({ items, columns, adaptTo, density, emptyLabel, title, titleSeparator, className, layout, separator, itemSeparator, valueAlign, strings: stringsProp, }: MetadataListProps): React.JSX.Element | null;
|
|
79
81
|
export declare namespace MetadataList {
|
|
80
82
|
var displayName: string;
|
|
81
83
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Menu as MenuPrimitive } from '@base-ui/react/menu';
|
|
3
3
|
import { type CollectionDensity } from '../popover/popover.recipes';
|
|
4
4
|
declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): React.JSX.Element;
|
|
5
|
-
declare function DropdownMenuPortal({ container, ...props }: MenuPrimitive.Portal.Props): React.JSX.Element;
|
|
5
|
+
declare function DropdownMenuPortal({ container, className, ...props }: MenuPrimitive.Portal.Props): React.JSX.Element;
|
|
6
6
|
declare function DropdownMenuTrigger({ children, ...props }: MenuPrimitive.Trigger.Props): React.JSX.Element;
|
|
7
7
|
declare function DropdownMenuContent({ positionMethod, align, alignOffset, side, sideOffset, className, density: densityProp, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'positionMethod'> & {
|
|
8
8
|
/** Vertical row rhythm. Inherits in submenus; defaults to default. */
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The role chooses each command's treatment and place: outline secondary
|
|
5
5
|
* commands, then one solid primary command, then the More actions menu for
|
|
6
|
-
* overflow and destructive commands, which always closes the row. Below
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* overflow and destructive commands, which always closes the row. Below the
|
|
7
|
+
* named header container breakpoint, every command collapses into that menu
|
|
8
|
+
* through CSS alone, so server and client markup agree. Both page and section
|
|
9
|
+
* headers use this owner for the same command behavior.
|
|
10
10
|
*/
|
|
11
|
-
import type
|
|
11
|
+
import { type ComponentType, type MouseEvent, type ReactNode } from 'react';
|
|
12
12
|
/**
|
|
13
13
|
* A page command described by its role. `primaryAction` and `secondaryActions`
|
|
14
14
|
* choose the treatment, so a command carries no tone or button style.
|
|
@@ -59,15 +59,22 @@ export interface PageHeaderLinkRenderProps {
|
|
|
59
59
|
export type PageHeaderLinkRenderer = (props: PageHeaderLinkRenderProps) => ReactNode;
|
|
60
60
|
/** Native anchor fallback, matching the layout default: external links open a new tab. */
|
|
61
61
|
export declare const defaultPageHeaderLinkRenderer: PageHeaderLinkRenderer;
|
|
62
|
-
/** Secondary commands rendered as buttons
|
|
62
|
+
/** Secondary commands rendered as buttons on wide headers; later ones overflow. */
|
|
63
63
|
export declare const PAGE_HEADER_INLINE_SECONDARY_LIMIT = 2;
|
|
64
64
|
export interface PageHeaderCommandsProps {
|
|
65
65
|
primaryAction?: PageHeaderAction;
|
|
66
66
|
secondaryActions?: readonly PageHeaderAction[];
|
|
67
|
+
/**
|
|
68
|
+
* How many routine secondary commands render as outline buttons on wide
|
|
69
|
+
* headers; later ones join the More actions menu. Use `1` or `0` when long
|
|
70
|
+
* labels beside the primary command would crowd the header; `Infinity`
|
|
71
|
+
* keeps every routine command inline. @default 2
|
|
72
|
+
*/
|
|
73
|
+
maxVisibleSecondaryActions?: number;
|
|
67
74
|
/** Accessible name of the More actions menu trigger. */
|
|
68
75
|
moreActionsLabel: string;
|
|
69
76
|
renderLink?: PageHeaderLinkRenderer;
|
|
70
77
|
}
|
|
71
78
|
/** Whether the header has any role-based command to render. */
|
|
72
79
|
export declare function hasPageHeaderCommands(primaryAction: PageHeaderAction | undefined, secondaryActions: readonly PageHeaderAction[] | undefined): boolean;
|
|
73
|
-
export declare function PageHeaderCommands({ primaryAction, secondaryActions, moreActionsLabel, renderLink, }: PageHeaderCommandsProps): import("react").JSX.Element | null;
|
|
80
|
+
export declare function PageHeaderCommands({ primaryAction, secondaryActions, maxVisibleSecondaryActions, moreActionsLabel, renderLink, }: PageHeaderCommandsProps): import("react").JSX.Element | null;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* on it.
|
|
8
8
|
*/
|
|
9
9
|
import type { Key, ReactNode } from 'react';
|
|
10
|
-
import { type HeadingTag } from '../../../typography';
|
|
10
|
+
import { type HeadingSize, type HeadingTag } from '../../../typography';
|
|
11
11
|
import { type BadgeTone } from '../../badge';
|
|
12
12
|
import { type TextGap } from '../../structure';
|
|
13
13
|
import { type PageHeaderAction, type PageHeaderLinkRenderer } from './page-header-commands';
|
|
@@ -41,6 +41,8 @@ export interface PageHeadingProps {
|
|
|
41
41
|
textGap?: TextGap;
|
|
42
42
|
/** Heading level for a plain-text `title`. Default: `'h2'`. Set for correct document outline. */
|
|
43
43
|
headingTag?: HeadingTag;
|
|
44
|
+
/** Visual title scale, independent of heading level. Defaults to the subject role (`base`). */
|
|
45
|
+
titleSize?: HeadingSize;
|
|
44
46
|
/** Convenience for a single badge beside the title. Ignored when `badges` is set. */
|
|
45
47
|
badge?: PageHeadingBadge;
|
|
46
48
|
/** Badges beside the title, in order. Takes precedence over `badge`. */
|
|
@@ -69,16 +71,23 @@ export interface PageHeadingProps {
|
|
|
69
71
|
actions?: ReactNode;
|
|
70
72
|
/**
|
|
71
73
|
* The header's one main command: a solid primary button after the secondary
|
|
72
|
-
* commands,
|
|
74
|
+
* commands, placed in the command menu below 40rem of header width.
|
|
73
75
|
*/
|
|
74
76
|
primaryAction?: PageHeaderAction;
|
|
75
77
|
/**
|
|
76
78
|
* Supporting commands in priority order. The first two render as outline
|
|
77
79
|
* buttons before the primary command; the rest, and every destructive
|
|
78
80
|
* command, move into the More actions menu, which always closes the row.
|
|
79
|
-
* Below
|
|
81
|
+
* Below 40rem of header width, every command collapses into that menu.
|
|
80
82
|
*/
|
|
81
83
|
secondaryActions?: readonly PageHeaderAction[];
|
|
84
|
+
/**
|
|
85
|
+
* How many routine secondary commands render as outline buttons on wide
|
|
86
|
+
* headers; later ones join the More actions menu. Use `1` or `0` when long
|
|
87
|
+
* labels beside the primary command would crowd the header; `Infinity`
|
|
88
|
+
* keeps every routine command inline. @default 2
|
|
89
|
+
*/
|
|
90
|
+
maxVisibleSecondaryActions?: number;
|
|
82
91
|
/** Accessible name of the More actions menu trigger. Default: `'More actions'`. */
|
|
83
92
|
moreActionsLabel?: string;
|
|
84
93
|
/** Renders `href` commands as framework links. Defaults to a native anchor. */
|
|
@@ -108,7 +117,7 @@ export interface PageHeadingProps {
|
|
|
108
117
|
*/
|
|
109
118
|
withSeparator?: boolean;
|
|
110
119
|
}
|
|
111
|
-
export declare function PageHeading({ eyebrow, title, description, textGap, headingTag, badge, badges, breadcrumbs, leading, beforeTitle, titlePrefix, titleSuffix, afterDescription, actions, primaryAction, secondaryActions, moreActionsLabel, renderLink, children, className, contentClassName, eyebrowClassName, titleClassName, titleRowClassName, descriptionClassName, actionsClassName, withSeparator, }: PageHeadingProps): import("react").JSX.Element;
|
|
120
|
+
export declare function PageHeading({ eyebrow, title, description, textGap, headingTag, titleSize, badge, badges, breadcrumbs, leading, beforeTitle, titlePrefix, titleSuffix, afterDescription, actions, primaryAction, secondaryActions, maxVisibleSecondaryActions, moreActionsLabel, renderLink, children, className, contentClassName, eyebrowClassName, titleClassName, titleRowClassName, descriptionClassName, actionsClassName, withSeparator, }: PageHeadingProps): import("react").JSX.Element;
|
|
112
121
|
export declare namespace PageHeading {
|
|
113
122
|
var displayName: string;
|
|
114
123
|
}
|
|
@@ -26,8 +26,8 @@ export type PopoverContentInset = 'default' | 'compact' | 'flush';
|
|
|
26
26
|
export type PopoverContentProps = PopoverContentBaseProps & {
|
|
27
27
|
/**
|
|
28
28
|
* Surface inset role. `default` is for card-like or multi-content popovers,
|
|
29
|
-
* `compact` for
|
|
30
|
-
* own their padding.
|
|
29
|
+
* `compact` for item collections (or the small surface tier with explicit
|
|
30
|
+
* type="display"), and `flush` when child regions own their padding.
|
|
31
31
|
*/
|
|
32
32
|
inset?: PopoverContentInset;
|
|
33
33
|
/** Anatomy role; supplies the inferred inset only when inset is omitted. */
|
|
@@ -47,7 +47,7 @@ declare function PopoverTitle({ children, className, ...props }: PopoverTitleBas
|
|
|
47
47
|
type PopoverDescriptionBaseProps = React.ComponentProps<typeof PopoverDescriptionPrimitive>;
|
|
48
48
|
declare function PopoverDescription({ children, className, ...props }: PopoverDescriptionBaseProps): React.JSX.Element;
|
|
49
49
|
type PopoverFooterProps = React.ComponentProps<'div'> & {
|
|
50
|
-
/** Leading supporting content,
|
|
50
|
+
/** Leading supporting content, one small step inside the region edge like the header; children are trailing actions. */
|
|
51
51
|
caption?: React.ReactNode;
|
|
52
52
|
};
|
|
53
53
|
declare function PopoverFooter({ className, children, caption, ...props }: PopoverFooterProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RowDensity } from '../../../lib/row-recipes';
|
|
2
2
|
/** Shared anchored-surface chrome; Menu and Popover retain their own accessible behavior. */
|
|
3
3
|
/**
|
|
4
4
|
* One width scale for anchored surfaces. Menus, pickers and popovers choose a
|
|
@@ -15,18 +15,22 @@ export declare const popoverWidthRecipes: {
|
|
|
15
15
|
readonly menuMin: "min-w-40";
|
|
16
16
|
};
|
|
17
17
|
export declare const popoverRecipes: {
|
|
18
|
-
readonly surface: "box-border max-w-[calc(100vw-2rem)] rounded-
|
|
18
|
+
readonly surface: "box-border max-w-[calc(100vw-2rem)] rounded-surface border border-border bg-popover text-popover-foreground shadow-md ring-0";
|
|
19
19
|
readonly display: "p-surface";
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
20
|
+
readonly displayCompact: "p-surface-xs";
|
|
21
|
+
readonly menu: "p-space-md";
|
|
22
|
+
readonly menuInline: "px-space-md";
|
|
23
|
+
readonly menuRegion: "px-space-md py-space-md";
|
|
24
|
+
readonly menuCopyInset: "px-space-xs";
|
|
25
|
+
readonly menuSearch: "[&_[data-slot=command-input-wrapper]]:p-space-md";
|
|
22
26
|
readonly separator: "mx-0 my-space-xs h-px w-full shrink-0 bg-border/60";
|
|
23
|
-
readonly row: "box-border min-h-control rounded-
|
|
27
|
+
readonly row: "box-border min-h-control rounded-radius px-row-x gap-space-sm font-medium leading-tight";
|
|
24
28
|
};
|
|
25
29
|
export type PopoverContentType = 'display' | 'menu';
|
|
26
30
|
/** One surface inset vocabulary for Popover, Command and their collections. */
|
|
27
31
|
export declare const surfaceInsetClasses: {
|
|
28
32
|
readonly default: "p-surface";
|
|
29
|
-
readonly compact: "p-
|
|
33
|
+
readonly compact: "p-space-md";
|
|
30
34
|
readonly flush: "p-0";
|
|
31
35
|
};
|
|
32
36
|
/** Collection density changes vertical rhythm; inline room and primary text stay stable. */
|
|
@@ -23,6 +23,8 @@ export declare const SheetClose: React.ForwardRefExoticComponent<Omit<import("@b
|
|
|
23
23
|
export declare const SheetContent: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPopupProps & {
|
|
24
24
|
side?: "top" | "right" | "bottom" | "left";
|
|
25
25
|
showCloseButton?: boolean;
|
|
26
|
+
forceRenderBackdrop?: boolean;
|
|
27
|
+
backdropClassName?: string;
|
|
26
28
|
} & {
|
|
27
29
|
container?: import("../../../lib/theme-scope").ThemePortalContainer;
|
|
28
30
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, defaultSidebarStrings, type SidebarProps, type SidebarInputProps, type SidebarMenuBadgeProps, type SidebarMenuButtonProps, type SidebarMenuDensity, type SidebarMenuProps, type SidebarMenuSkeletonProps, type SidebarMenuSubButtonProps, type SidebarProviderProps, type SidebarStrings, } from './sidebar';
|
|
1
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRegion, SidebarRail, SidebarSeparator, SidebarTrigger, defaultSidebarStrings, type SidebarProps, type SidebarInputProps, type SidebarMenuBadgeProps, type SidebarMenuButtonProps, type SidebarMenuDensity, type SidebarMenuProps, type SidebarMenuSkeletonProps, type SidebarMenuSubButtonProps, type SidebarProviderProps, type SidebarRegionProps, type SidebarPanelId, type SidebarPresentation, type SidebarStrings, } from './sidebar';
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated Use `useLayoutSidebar` from `themelia-react-ui/layout/sidebar`.
|
|
4
4
|
* This vendored compatibility re-export remains available through 1.x.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* base/sidebar — tokenized wrapper around the shadcn `Sidebar` compound component.
|
|
3
3
|
*
|
|
4
|
-
* The
|
|
4
|
+
* The internal Base UI owner supplies shared state. This layer applies the package shell,
|
|
5
5
|
* density, spacing, typography, focus, and stable DOM-hook contracts while
|
|
6
6
|
* preserving every compound part and polymorphic `render` seam.
|
|
7
7
|
*/
|
|
8
8
|
import * as React from 'react';
|
|
9
|
+
import { type SidebarPanelId, type SidebarPresentation, type SidebarStateProps } from '../../ui/sidebar-state';
|
|
9
10
|
import { SidebarContent as SidebarContentPrimitive, SidebarFooter as SidebarFooterPrimitive, SidebarGroup as SidebarGroupPrimitive, SidebarGroupAction as SidebarGroupActionPrimitive, SidebarGroupContent as SidebarGroupContentPrimitive, SidebarGroupLabel as SidebarGroupLabelPrimitive, SidebarHeader as SidebarHeaderPrimitive, SidebarInput as SidebarInputPrimitive, SidebarInset as SidebarInsetPrimitive, SidebarMenu as SidebarMenuPrimitive, SidebarMenuAction as SidebarMenuActionPrimitive, SidebarMenuBadge as SidebarMenuBadgePrimitive, SidebarMenuButton as SidebarMenuButtonPrimitive, SidebarMenuItem as SidebarMenuItemPrimitive, SidebarMenuSub as SidebarMenuSubPrimitive, SidebarMenuSubButton as SidebarMenuSubButtonPrimitive, SidebarMenuSubItem as SidebarMenuSubItemPrimitive, SidebarRail as SidebarRailPrimitive, SidebarSeparator as SidebarSeparatorPrimitive, SidebarTrigger as SidebarTriggerPrimitive, useSidebar as useSidebarPrimitive } from '../../ui/sidebar';
|
|
10
11
|
import type { ComponentScale } from '../../../lib/component-vocabulary';
|
|
11
12
|
import { type StringsProp } from '../../../lib/strings';
|
|
@@ -15,6 +16,10 @@ export interface SidebarStrings {
|
|
|
15
16
|
}
|
|
16
17
|
export declare const defaultSidebarStrings: SidebarStrings;
|
|
17
18
|
export interface SidebarProps extends React.ComponentProps<'div'> {
|
|
19
|
+
/** Explicit state identity; otherwise inherits the nearest shell region. */
|
|
20
|
+
panelId?: SidebarPanelId;
|
|
21
|
+
/** Desktop canvas treatment. Drawers always retain their opaque sidebar surface. */
|
|
22
|
+
surface?: 'default' | 'transparent';
|
|
18
23
|
/** Edge where the desktop rail and mobile sheet are anchored. */
|
|
19
24
|
side?: 'left' | 'right';
|
|
20
25
|
/** Surface treatment and inset behavior for the desktop shell. */
|
|
@@ -27,7 +32,7 @@ export interface SidebarProps extends React.ComponentProps<'div'> {
|
|
|
27
32
|
surfaceClassName?: string;
|
|
28
33
|
/** Classes for the responsive positioning root. */
|
|
29
34
|
rootClassName?: string;
|
|
30
|
-
/** Copy for the
|
|
35
|
+
/** Copy for the mobile drawer heading and accessible description. */
|
|
31
36
|
strings?: StringsProp<SidebarStrings>;
|
|
32
37
|
}
|
|
33
38
|
type SidebarContentProps = React.ComponentProps<typeof SidebarContentPrimitive>;
|
|
@@ -83,7 +88,7 @@ export interface SidebarMenuSubButtonProps extends Omit<React.ComponentProps<typ
|
|
|
83
88
|
active?: boolean;
|
|
84
89
|
}
|
|
85
90
|
type SidebarMenuSubItemProps = React.ComponentProps<typeof SidebarMenuSubItemPrimitive>;
|
|
86
|
-
export interface SidebarProviderProps extends React.ComponentProps<'div'
|
|
91
|
+
export interface SidebarProviderProps extends React.ComponentProps<'div'>, SidebarStateProps {
|
|
87
92
|
/** Use the provider width for drawers in embedded workspaces; viewport remains the default. */
|
|
88
93
|
adaptTo?: 'viewport' | 'container';
|
|
89
94
|
/** Initial expanded state for uncontrolled sidebars. @default true */
|
|
@@ -105,8 +110,24 @@ type SidebarRailProps = React.ComponentProps<typeof SidebarRailPrimitive>;
|
|
|
105
110
|
type SidebarSeparatorProps = React.ComponentProps<typeof SidebarSeparatorPrimitive>;
|
|
106
111
|
type SidebarTriggerProps = React.ComponentProps<typeof SidebarTriggerPrimitive>;
|
|
107
112
|
declare function SidebarProvider({ className, style, menuDensity, ...props }: SidebarProviderProps): React.JSX.Element;
|
|
113
|
+
export interface SidebarRegionProps extends Omit<React.ComponentProps<'div'>, 'ref'> {
|
|
114
|
+
/** Ref to the semantic aside boundary. */
|
|
115
|
+
ref?: React.Ref<HTMLElement>;
|
|
116
|
+
/** Named desktop/drawer state and descendant scope owned by this region. */
|
|
117
|
+
panelId: SidebarPanelId;
|
|
118
|
+
/** Minimum available width for docking; primary/secondary/aside default to 768/1024/1440. Zero stays docked. */
|
|
119
|
+
dockAt?: number;
|
|
120
|
+
/** Persistent region geometry, separate from docked/drawer presentation. */
|
|
121
|
+
presentation?: 'panel' | 'rail';
|
|
122
|
+
/** Physical edge inherited by the scoped Sidebar and its drawer. @default 'left' */
|
|
123
|
+
side?: 'left' | 'right';
|
|
124
|
+
/** Expanded CSS length; defaults to --shell-sidebar-width. Rail widths derive from existing density roots. */
|
|
125
|
+
width?: string;
|
|
126
|
+
}
|
|
127
|
+
/** A named state and width boundary. Shells can also use static content without a provider. */
|
|
128
|
+
declare function SidebarRegion({ panelId, dockAt, presentation, side, width, className, style, ref: forwardedRef, children, ...props }: SidebarRegionProps): React.JSX.Element;
|
|
108
129
|
/** Tokenized responsive sidebar shell with contained and viewport-fixed modes. */
|
|
109
|
-
declare function Sidebar(
|
|
130
|
+
declare function Sidebar(props: SidebarProps): React.JSX.Element;
|
|
110
131
|
declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): React.JSX.Element;
|
|
111
132
|
declare function SidebarFooter({ className, ...props }: SidebarFooterProps): React.JSX.Element;
|
|
112
133
|
declare function SidebarContent({ className, ...props }: SidebarContentProps): React.JSX.Element;
|
|
@@ -128,8 +149,9 @@ declare function SidebarTrigger({ className, ...props }: SidebarTriggerProps): R
|
|
|
128
149
|
declare function SidebarMenuButton({ className, render, size, tooltip, children, active, ...props }: SidebarMenuButtonProps): React.JSX.Element;
|
|
129
150
|
declare function SidebarMenuSubButton({ className, children, active, ...props }: SidebarMenuSubButtonProps): React.JSX.Element;
|
|
130
151
|
declare function SidebarGroupLabel({ className, children, ...props }: SidebarGroupLabelProps): React.JSX.Element;
|
|
131
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, };
|
|
152
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRegion, SidebarRail, SidebarSeparator, SidebarTrigger, };
|
|
132
153
|
/** Internal bridge for the layout layer; not part of the base package entrypoint. */
|
|
133
154
|
export declare const useBaseSidebarContext: typeof useSidebarPrimitive;
|
|
134
155
|
/** Internal density bridge for composed navigation; not a base entrypoint export. */
|
|
135
156
|
export declare function useBaseSidebarMenuDensity(): SidebarMenuDensity | undefined;
|
|
157
|
+
export type { SidebarPanelId, SidebarPresentation };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Private relationship defaults. Generic Stack/Grid retain their own defaults;
|
|
2
|
+
* surface regions and collection rows keep their independent recipe owners. */
|
|
3
|
+
export declare const compositionRhythm: {
|
|
4
|
+
readonly commands: "md";
|
|
5
|
+
readonly compactActions: "xs";
|
|
6
|
+
readonly related: "xl";
|
|
7
|
+
readonly subjects: "2xl";
|
|
8
|
+
readonly page: "3xl";
|
|
9
|
+
};
|
|
10
|
+
/** Native layout owners use the same vocabulary as Stack/Grid. */
|
|
11
|
+
export declare const compositionClasses: {
|
|
12
|
+
readonly commands: string;
|
|
13
|
+
readonly compactActions: string;
|
|
14
|
+
readonly related: string;
|
|
15
|
+
readonly subjects: string;
|
|
16
|
+
readonly page: string;
|
|
17
|
+
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
1
2
|
export interface UseFormFieldStateOptions {
|
|
2
3
|
/** Controlled value from parent */
|
|
3
|
-
controlledValue?: string;
|
|
4
|
+
controlledValue?: string | null;
|
|
5
|
+
/** Presence of the value prop, including an explicitly empty value. */
|
|
6
|
+
hasControlledValue?: boolean;
|
|
7
|
+
/** Native field whose value may be assigned by registration or reset. */
|
|
8
|
+
nativeRef?: RefObject<HTMLInputElement | HTMLTextAreaElement | null>;
|
|
4
9
|
/** Default value for uncontrolled mode */
|
|
5
10
|
defaultValue?: string;
|
|
6
11
|
/** Maximum character length */
|
|
@@ -45,4 +50,4 @@ export interface UseFormFieldStateReturn {
|
|
|
45
50
|
* - React Hook Form compatibility detection
|
|
46
51
|
* - ID generation
|
|
47
52
|
*/
|
|
48
|
-
export declare function useFormFieldState({ controlledValue, defaultValue, maxLength, showCharacterCount, providedId, idPrefix, hasOnChange, }: UseFormFieldStateOptions): UseFormFieldStateReturn;
|
|
53
|
+
export declare function useFormFieldState({ controlledValue, hasControlledValue, nativeRef, defaultValue, maxLength, showCharacterCount, providedId, idPrefix, hasOnChange, }: UseFormFieldStateOptions): UseFormFieldStateReturn;
|
|
@@ -7,7 +7,7 @@ export interface InputStrings {
|
|
|
7
7
|
clear: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const defaultInputStrings: InputStrings;
|
|
10
|
-
export interface InputProps extends Omit<React.ComponentProps<'input'>, 'onChange' | 'size'> {
|
|
10
|
+
export interface InputProps extends Omit<React.ComponentProps<'input'>, 'onChange' | 'size' | 'value'> {
|
|
11
11
|
/** Decorative or semantic icon rendered before the value. */
|
|
12
12
|
startIcon?: LucideIcon;
|
|
13
13
|
/** Decorative or semantic icon rendered after the value. */
|
|
@@ -34,8 +34,10 @@ export interface InputProps extends Omit<React.ComponentProps<'input'>, 'onChang
|
|
|
34
34
|
size?: FormControlSize;
|
|
35
35
|
/** Native-style value callback for the controlled raw string. */
|
|
36
36
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
37
|
+
/** Raw string callback, emitted alongside the native change event. */
|
|
38
|
+
onValueChange?: (value: string) => void;
|
|
37
39
|
/** Controlled raw string value. */
|
|
38
|
-
value?: string;
|
|
40
|
+
value?: string | null;
|
|
39
41
|
/** Initial raw string value for uncontrolled usage. */
|
|
40
42
|
defaultValue?: string;
|
|
41
43
|
/** Accessible copy overrides for input-owned actions. */
|
|
@@ -5,7 +5,7 @@ export interface TextareaStrings {
|
|
|
5
5
|
clear: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const defaultTextareaStrings: TextareaStrings;
|
|
8
|
-
export interface TextareaProps extends Omit<React.ComponentProps<'textarea'>, 'onChange'> {
|
|
8
|
+
export interface TextareaProps extends Omit<React.ComponentProps<'textarea'>, 'onChange' | 'value'> {
|
|
9
9
|
/** Overrides the character-count and clear copy. */
|
|
10
10
|
strings?: StringsProp<TextareaStrings>;
|
|
11
11
|
/** Character cap, also used as the denominator of the count. */
|
|
@@ -28,8 +28,10 @@ export interface TextareaProps extends Omit<React.ComponentProps<'textarea'>, 'o
|
|
|
28
28
|
/** Height at which the field stops growing and starts scrolling. */
|
|
29
29
|
maxRows?: number;
|
|
30
30
|
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
31
|
+
/** Raw string callback, emitted alongside the native change event. */
|
|
32
|
+
onValueChange?: (value: string) => void;
|
|
31
33
|
/** Current text. Controlled. */
|
|
32
|
-
value?: string;
|
|
34
|
+
value?: string | null;
|
|
33
35
|
/** Initial text for uncontrolled use. */
|
|
34
36
|
defaultValue?: string;
|
|
35
37
|
}
|