themelia-react-ui 2.0.0 → 2.0.2
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 +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.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 +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- 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 +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 +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 +20 -20
- 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 +216 -220
- 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 +79 -2
- package/dist/base/spinner.js.map +1 -0
- 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 +46 -45
- 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 +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- 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 +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.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 +5 -5
- 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/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- 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/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- 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 +26 -15
- 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/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- 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/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- 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/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- 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 +45 -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/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- 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/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- 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 +6 -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 +7 -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 +54 -1
- 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-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- 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/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- 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 +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- 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 +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- 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 +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- 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 +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.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-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.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-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.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-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.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 +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- 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 +40 -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/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -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 +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.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-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.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-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.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-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.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-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.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-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- 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 +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- 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 +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- 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 +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.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 +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- 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/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- 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-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- 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-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- 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/message-YfFmbXNP.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/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.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/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.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 +0 -162
- 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 +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- 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/usage-card-U0YBLTNT.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
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "../
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as h } from "../
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
2
|
+
import { interpolateString as e, useStrings as t } from "../lib/strings.js";
|
|
3
|
+
import { t as n } from "../utils-BRhFDwuU.js";
|
|
4
|
+
import { t as r } from "../buttons-DPZekJFu.js";
|
|
5
|
+
import { c as i } from "../typography-UTnveOEy.js";
|
|
6
|
+
import { t as a } from "../focus-recipes-B653VaLq.js";
|
|
7
|
+
import { t as o } from "../structure-BmisBK-3.js";
|
|
8
|
+
import { i as s, n as c } from "../tone-recipes-BPsRAvhu.js";
|
|
9
|
+
import { a as l, n as u } from "../surface-recipes-BKRVW8Os.js";
|
|
10
|
+
import { a as d, n as f, r as p } from "../popover.recipes-D3j8R8Yp.js";
|
|
11
|
+
import { r as m } from "../overlays-DNWmZrJ4.js";
|
|
12
|
+
import { t as h } from "../interaction-recipes-XR9ZpVYL.js";
|
|
13
|
+
import { _ as g, g as _ } from "../primitives-BFK08r9M.js";
|
|
14
|
+
import { i as v, n as y, s as b } from "../avatar-DAPlDvhJ.js";
|
|
15
|
+
import { t as x } from "../badge-HpFqoqSY.js";
|
|
16
|
+
import { n as S, t as C } from "../field-affordance-recipes-DZhnIL_Y.js";
|
|
17
|
+
import { a as w, c as T, o as E } from "../text-inputs-f9Ia-aCi.js";
|
|
18
|
+
import { i as ee, r as te, t as ne } from "../tabs-CDocW5D1.js";
|
|
19
|
+
import { s as D } from "../data-display-DT_khPl_.js";
|
|
20
|
+
import * as O from "react";
|
|
21
|
+
import { useEffect as k, useMemo as A, useRef as j, useState as M } from "react";
|
|
22
|
+
import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
23
|
+
import { ArrowRight as I, Loader2 as L, Search as R } from "lucide-react";
|
|
21
24
|
//#region src/components/features/global-search/global-search.strings.ts
|
|
22
|
-
var
|
|
25
|
+
var z = {
|
|
23
26
|
dialogTitle: "Search",
|
|
24
27
|
placeholder: "Search…",
|
|
25
28
|
clear: "Clear search",
|
|
@@ -37,30 +40,30 @@ var F = {
|
|
|
37
40
|
};
|
|
38
41
|
//#endregion
|
|
39
42
|
//#region src/components/features/global-search/hooks/use-global-search.ts
|
|
40
|
-
function
|
|
41
|
-
let [i, a] =
|
|
42
|
-
|
|
43
|
+
function B({ results: e, query: t, onResultSelect: n, onClose: r }) {
|
|
44
|
+
let [i, a] = M("all"), [o, s] = M(0);
|
|
45
|
+
k(() => {
|
|
43
46
|
a("all"), s(0);
|
|
44
47
|
}, [t]);
|
|
45
|
-
let c =
|
|
48
|
+
let c = A(() => {
|
|
46
49
|
let t = {};
|
|
47
50
|
for (let n of e) (t[n.group] ??= []).push(n);
|
|
48
51
|
return t;
|
|
49
|
-
}, [e]), l =
|
|
52
|
+
}, [e]), l = A(() => {
|
|
50
53
|
let t = { all: e.length };
|
|
51
54
|
for (let [e, n] of Object.entries(c)) t[e] = n.length;
|
|
52
55
|
return t;
|
|
53
|
-
}, [e.length, c]), u =
|
|
56
|
+
}, [e.length, c]), u = A(() => {
|
|
54
57
|
if (i === "all") return c;
|
|
55
58
|
let e = c[i];
|
|
56
59
|
return e ? { [i]: e } : {};
|
|
57
|
-
}, [c, i]), d =
|
|
60
|
+
}, [c, i]), d = A(() => i === "all" ? e.slice() : c[i] ?? [], [
|
|
58
61
|
i,
|
|
59
62
|
c,
|
|
60
63
|
e
|
|
61
|
-
]), f =
|
|
64
|
+
]), f = j(o);
|
|
62
65
|
f.current = o;
|
|
63
|
-
let p =
|
|
66
|
+
let p = j(d);
|
|
64
67
|
return p.current = d, {
|
|
65
68
|
grouped: c,
|
|
66
69
|
tabCounts: l,
|
|
@@ -92,11 +95,11 @@ function I({ results: e, query: t, onResultSelect: n, onClose: r }) {
|
|
|
92
95
|
}
|
|
93
96
|
//#endregion
|
|
94
97
|
//#region src/components/features/global-search/partials/global-search-empty-state.tsx
|
|
95
|
-
function
|
|
96
|
-
return /* @__PURE__ */
|
|
98
|
+
function V({ title: e, hint: t }) {
|
|
99
|
+
return /* @__PURE__ */ P(D, {
|
|
97
100
|
title: e,
|
|
98
101
|
description: t,
|
|
99
|
-
media: /* @__PURE__ */
|
|
102
|
+
media: /* @__PURE__ */ P(R, {
|
|
100
103
|
className: "size-icon",
|
|
101
104
|
"aria-hidden": "true"
|
|
102
105
|
}),
|
|
@@ -107,209 +110,213 @@ function L({ title: e, hint: t }) {
|
|
|
107
110
|
}
|
|
108
111
|
//#endregion
|
|
109
112
|
//#region src/components/features/global-search/partials/global-search-footer.tsx
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
tag: "span",
|
|
123
|
-
size: "xs",
|
|
124
|
-
type: "secondary",
|
|
125
|
-
children: e
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ k("kbd", {
|
|
128
|
-
className: R,
|
|
129
|
-
children: "↵"
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ k(o, {
|
|
132
|
-
tag: "span",
|
|
133
|
-
size: "xs",
|
|
134
|
-
type: "secondary",
|
|
135
|
-
children: t
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ k("kbd", {
|
|
138
|
-
className: R,
|
|
139
|
-
children: "esc"
|
|
140
|
-
}),
|
|
141
|
-
/* @__PURE__ */ k(o, {
|
|
142
|
-
tag: "span",
|
|
143
|
-
size: "xs",
|
|
144
|
-
type: "secondary",
|
|
145
|
-
children: n
|
|
146
|
-
})
|
|
147
|
-
]
|
|
148
|
-
}), i ? /* @__PURE__ */ k("span", {
|
|
149
|
-
className: "global-search-footer--trailing shrink-0 self-end whitespace-nowrap @sm/global-search:self-auto",
|
|
150
|
-
children: i
|
|
151
|
-
}) : null]
|
|
113
|
+
function H({ keys: e, label: t }) {
|
|
114
|
+
return /* @__PURE__ */ F("span", {
|
|
115
|
+
className: "global-search-footer--shortcut inline-flex items-center gap-space-xs",
|
|
116
|
+
children: [/* @__PURE__ */ P("kbd", {
|
|
117
|
+
className: u,
|
|
118
|
+
children: e
|
|
119
|
+
}), /* @__PURE__ */ P(i, {
|
|
120
|
+
tag: "span",
|
|
121
|
+
size: "xs",
|
|
122
|
+
type: "secondary",
|
|
123
|
+
children: t
|
|
124
|
+
})]
|
|
152
125
|
});
|
|
153
126
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
children: e.items.map((e) => {
|
|
174
|
-
let t = e.icon ?? N;
|
|
175
|
-
return /* @__PURE__ */ k("li", { children: /* @__PURE__ */ A("button", {
|
|
176
|
-
type: "button",
|
|
177
|
-
onClick: e.onSelect,
|
|
178
|
-
className: r("box-border m-0 flex w-full cursor-pointer items-center justify-start border-0 bg-transparent font-sans text-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset gap-space-lg rounded-inner px-row-x py-row-y-sm text-left transition-colors", "hover:bg-muted/50 focus-visible:bg-muted/50"),
|
|
179
|
-
children: [/* @__PURE__ */ k(t, {
|
|
180
|
-
className: "size-icon-md text-muted-foreground",
|
|
181
|
-
"aria-hidden": "true"
|
|
182
|
-
}), /* @__PURE__ */ k(o, {
|
|
183
|
-
className: "flex-1 truncate",
|
|
184
|
-
children: e.label
|
|
185
|
-
})]
|
|
186
|
-
}) }, e.id);
|
|
127
|
+
function U({ navigateLabel: e, openLabel: t, closeLabel: r, trailing: i, className: a }) {
|
|
128
|
+
return /* @__PURE__ */ P("div", {
|
|
129
|
+
className: n("global-search-footer--component", p.menuRegion, l.anchored.footer, a),
|
|
130
|
+
children: /* @__PURE__ */ F("div", {
|
|
131
|
+
className: "global-search-footer--body flex flex-col items-stretch gap-space-xs px-row-x @sm/global-search:flex-row @sm/global-search:items-center @sm/global-search:justify-between",
|
|
132
|
+
children: [/* @__PURE__ */ F("span", {
|
|
133
|
+
className: "global-search-footer--shortcuts flex flex-wrap items-center gap-x-space-lg gap-y-space-xs",
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ P(H, {
|
|
136
|
+
keys: "↑↓",
|
|
137
|
+
label: e
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ P(H, {
|
|
140
|
+
keys: "↵",
|
|
141
|
+
label: t
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ P(H, {
|
|
144
|
+
keys: "esc",
|
|
145
|
+
label: r
|
|
187
146
|
})
|
|
188
|
-
|
|
189
|
-
})
|
|
147
|
+
]
|
|
148
|
+
}), i ? /* @__PURE__ */ P("span", {
|
|
149
|
+
className: "global-search-footer--trailing shrink-0 self-end whitespace-nowrap @sm/global-search:self-auto",
|
|
150
|
+
children: i
|
|
151
|
+
}) : null]
|
|
190
152
|
})
|
|
191
153
|
});
|
|
192
154
|
}
|
|
193
155
|
//#endregion
|
|
156
|
+
//#region src/components/features/global-search/partials/global-search-group-heading.tsx
|
|
157
|
+
function W({ label: e, icon: t, action: n }) {
|
|
158
|
+
return /* @__PURE__ */ F("div", {
|
|
159
|
+
className: "global-search-group--heading flex items-center justify-between gap-space-sm px-row-x pt-space-md pb-space-xs",
|
|
160
|
+
children: [/* @__PURE__ */ F("span", {
|
|
161
|
+
className: "inline-flex min-w-0 items-center gap-space-sm",
|
|
162
|
+
children: [!!t && /* @__PURE__ */ P(t, {
|
|
163
|
+
className: "size-icon-sm shrink-0 text-muted-foreground",
|
|
164
|
+
"aria-hidden": "true"
|
|
165
|
+
}), /* @__PURE__ */ P(i, {
|
|
166
|
+
tag: "span",
|
|
167
|
+
size: "xs",
|
|
168
|
+
type: "secondary",
|
|
169
|
+
weight: "medium",
|
|
170
|
+
lineHeight: "tight",
|
|
171
|
+
className: "truncate",
|
|
172
|
+
children: e
|
|
173
|
+
})]
|
|
174
|
+
}), n]
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/components/features/global-search/partials/global-search-idle-state.tsx
|
|
179
|
+
function G({ sections: e, fallbackIcons: t }) {
|
|
180
|
+
return /* @__PURE__ */ P("div", {
|
|
181
|
+
className: n("global-search-idle-state--component", d.compact),
|
|
182
|
+
children: e.map((e, r) => /* @__PURE__ */ F("div", {
|
|
183
|
+
className: "global-search-idle-state--section",
|
|
184
|
+
children: [/* @__PURE__ */ P(W, {
|
|
185
|
+
label: e.label,
|
|
186
|
+
icon: e.icon ?? (r === 0 ? t?.recent : t?.suggestions)
|
|
187
|
+
}), /* @__PURE__ */ P("ul", {
|
|
188
|
+
className: "m-0 flex list-none flex-col p-0",
|
|
189
|
+
children: e.items.map((e) => {
|
|
190
|
+
let t = e.icon ?? R;
|
|
191
|
+
return /* @__PURE__ */ P("li", { children: /* @__PURE__ */ F("button", {
|
|
192
|
+
type: "button",
|
|
193
|
+
onClick: e.onSelect,
|
|
194
|
+
className: n(`${h.nativeButtonReset} flex w-full cursor-pointer items-center justify-start text-inherit outline-none ${a.inset} text-left transition-colors`, f(), h.rowHover),
|
|
195
|
+
children: [/* @__PURE__ */ P(t, {
|
|
196
|
+
className: "size-icon shrink-0 text-muted-foreground",
|
|
197
|
+
"aria-hidden": "true"
|
|
198
|
+
}), /* @__PURE__ */ P(i, {
|
|
199
|
+
tag: "span",
|
|
200
|
+
type: "inherit",
|
|
201
|
+
weight: "medium",
|
|
202
|
+
lineHeight: "tight",
|
|
203
|
+
className: "flex-1 truncate",
|
|
204
|
+
children: e.label
|
|
205
|
+
})]
|
|
206
|
+
}) }, e.id);
|
|
207
|
+
})
|
|
208
|
+
})]
|
|
209
|
+
}, e.id))
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
//#endregion
|
|
194
213
|
//#region src/components/features/global-search/partials/global-search-input.tsx
|
|
195
|
-
var
|
|
196
|
-
let
|
|
197
|
-
return
|
|
198
|
-
|
|
199
|
-
}, [
|
|
214
|
+
var K = O.forwardRef(function({ value: e, onValueChange: t, onKeyDown: r, placeholder: i, clearLabel: a = "Clear search", loading: o = !1, autoFocus: s = !1 }, c) {
|
|
215
|
+
let l = O.useRef(null);
|
|
216
|
+
return O.useImperativeHandle(c, () => l.current), O.useEffect(() => {
|
|
217
|
+
s && l.current?.focus();
|
|
218
|
+
}, [s]), /* @__PURE__ */ P("div", {
|
|
200
219
|
"data-component": "global-search-input",
|
|
201
220
|
"data-slot": "global-search-input",
|
|
202
|
-
className: "global-search-input--component
|
|
203
|
-
children: /* @__PURE__ */
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
placeholder: a,
|
|
221
|
-
"aria-label": a,
|
|
222
|
-
autoComplete: "off",
|
|
223
|
-
spellCheck: !1,
|
|
224
|
-
className: r(v[p], g[p], "box-border m-0 block w-full min-w-0 border-0 bg-transparent p-0 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset rounded-inner")
|
|
225
|
-
})
|
|
226
|
-
}),
|
|
227
|
-
c && /* @__PURE__ */ k(M, {
|
|
228
|
-
className: "size-icon shrink-0 animate-spin text-muted-foreground",
|
|
221
|
+
className: "global-search-input--component px-surface-xs pt-surface-xs pb-space-xs",
|
|
222
|
+
children: /* @__PURE__ */ F(w, { children: [
|
|
223
|
+
/* @__PURE__ */ P(E, { children: /* @__PURE__ */ P(R, { "aria-hidden": "true" }) }),
|
|
224
|
+
/* @__PURE__ */ P(T, {
|
|
225
|
+
ref: l,
|
|
226
|
+
type: "text",
|
|
227
|
+
value: e,
|
|
228
|
+
onChange: (e) => t(e.target.value),
|
|
229
|
+
onKeyDown: r,
|
|
230
|
+
placeholder: i,
|
|
231
|
+
"aria-label": i,
|
|
232
|
+
autoComplete: "off",
|
|
233
|
+
spellCheck: !1
|
|
234
|
+
}),
|
|
235
|
+
(o || !!e) && /* @__PURE__ */ P(E, {
|
|
236
|
+
align: "inline-end",
|
|
237
|
+
children: o ? /* @__PURE__ */ P(L, {
|
|
238
|
+
className: "animate-spin",
|
|
229
239
|
"aria-hidden": "true"
|
|
230
|
-
}),
|
|
231
|
-
!c && !!t && /* @__PURE__ */ k("button", {
|
|
240
|
+
}) : /* @__PURE__ */ P("button", {
|
|
232
241
|
type: "button",
|
|
233
242
|
onClick: () => {
|
|
234
|
-
|
|
243
|
+
t(""), l.current?.focus();
|
|
235
244
|
},
|
|
236
|
-
"aria-label":
|
|
237
|
-
className:
|
|
238
|
-
children: /* @__PURE__ */
|
|
245
|
+
"aria-label": a,
|
|
246
|
+
className: n(S.target, S.focus, S.clear),
|
|
247
|
+
children: /* @__PURE__ */ P(C, {
|
|
248
|
+
className: S.icon,
|
|
249
|
+
"aria-hidden": "true"
|
|
250
|
+
})
|
|
239
251
|
})
|
|
240
|
-
|
|
241
|
-
})
|
|
252
|
+
})
|
|
253
|
+
] })
|
|
242
254
|
});
|
|
243
|
-
}),
|
|
244
|
-
neutral: "bg-muted text-muted-foreground",
|
|
245
|
-
primary: "bg-primary/5 text-primary-accent",
|
|
246
|
-
success: "bg-success/10 text-success",
|
|
247
|
-
warning: "bg-warning/10 text-warning-accent",
|
|
248
|
-
info: "bg-info/10 text-info",
|
|
249
|
-
destructive: "bg-destructive/10 text-destructive"
|
|
250
|
-
}, U = {
|
|
255
|
+
}), q = (e) => `${s[e].tint} ${s[e].ink}`, J = {
|
|
251
256
|
neutral: "bg-muted text-muted-foreground",
|
|
252
|
-
primary: "
|
|
253
|
-
success: "
|
|
254
|
-
warning: "
|
|
255
|
-
info: "
|
|
256
|
-
destructive: "
|
|
257
|
-
};
|
|
257
|
+
primary: q("primary"),
|
|
258
|
+
success: q("success"),
|
|
259
|
+
warning: q("warning"),
|
|
260
|
+
info: q("info"),
|
|
261
|
+
destructive: q("destructive")
|
|
262
|
+
}, re = { ...J };
|
|
258
263
|
//#endregion
|
|
259
264
|
//#region src/components/features/global-search/partials/global-search-result-row.tsx
|
|
260
|
-
function
|
|
265
|
+
function Y(e, t) {
|
|
261
266
|
let n = (t ?? "").trim();
|
|
262
267
|
if (!n) return e;
|
|
263
268
|
let r = e.toLowerCase(), i = n.toLowerCase(), a = r.indexOf(i);
|
|
264
|
-
return a < 0 ? e : /* @__PURE__ */
|
|
269
|
+
return a < 0 ? e : /* @__PURE__ */ F(N, { children: [
|
|
265
270
|
e.slice(0, a),
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
className:
|
|
271
|
+
/* @__PURE__ */ P("mark", {
|
|
272
|
+
className: c.match,
|
|
268
273
|
children: e.slice(a, a + n.length)
|
|
269
274
|
}),
|
|
270
275
|
e.slice(a + n.length)
|
|
271
276
|
] });
|
|
272
277
|
}
|
|
273
|
-
function
|
|
274
|
-
let
|
|
275
|
-
return /* @__PURE__ */
|
|
278
|
+
function X({ result: e, active: t = !1, query: r = "", onSelect: s, onMouseEnter: c, className: l }) {
|
|
279
|
+
let u = e.thumbnail?.icon, d = J, p = re;
|
|
280
|
+
return /* @__PURE__ */ F("button", {
|
|
276
281
|
type: "button",
|
|
277
282
|
"data-component": "global-search-result-row",
|
|
278
283
|
"data-slot": "global-search-result-row",
|
|
279
|
-
onMouseEnter:
|
|
280
|
-
onClick:
|
|
281
|
-
className:
|
|
284
|
+
onMouseEnter: c,
|
|
285
|
+
onClick: s,
|
|
286
|
+
className: n(`${h.nativeButtonReset} group/row relative flex w-full cursor-pointer items-center justify-start text-inherit outline-none ${a.inset} text-left transition-colors`, f(), "global-search-result-row--component", t ? h.rowSelected : h.rowHover, l),
|
|
282
287
|
children: [
|
|
283
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ P("div", {
|
|
284
289
|
className: "flex shrink-0 items-center",
|
|
285
|
-
children: e.avatar ? /* @__PURE__ */
|
|
286
|
-
className:
|
|
287
|
-
children: [e.avatar.src && /* @__PURE__ */
|
|
290
|
+
children: e.avatar ? /* @__PURE__ */ F(y, {
|
|
291
|
+
className: n("size-avatar-sm", p[e.avatar.tone ?? "neutral"]),
|
|
292
|
+
children: [e.avatar.src && /* @__PURE__ */ P(b, {
|
|
288
293
|
src: e.avatar.src,
|
|
289
294
|
alt: e.title
|
|
290
|
-
}), /* @__PURE__ */
|
|
291
|
-
className:
|
|
295
|
+
}), /* @__PURE__ */ P(v, {
|
|
296
|
+
className: n("text-xs font-semibold", p[e.avatar.tone ?? "neutral"]),
|
|
292
297
|
children: e.avatar.initials
|
|
293
298
|
})]
|
|
294
|
-
}) :
|
|
295
|
-
className:
|
|
296
|
-
children: /* @__PURE__ */
|
|
297
|
-
className: "size-icon",
|
|
299
|
+
}) : u ? /* @__PURE__ */ P("span", {
|
|
300
|
+
className: n("inline-flex size-avatar-sm items-center justify-center rounded-inner", d[e.thumbnail?.tone ?? "neutral"]),
|
|
301
|
+
children: /* @__PURE__ */ P(u, {
|
|
302
|
+
className: "size-icon-sm",
|
|
298
303
|
"aria-hidden": "true"
|
|
299
304
|
})
|
|
300
305
|
}) : null
|
|
301
306
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ F(o, {
|
|
303
308
|
gap: "dense",
|
|
304
309
|
className: "min-w-0 flex-1",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
306
|
-
className: "flex items-center gap-space-sm
|
|
307
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ F("div", {
|
|
311
|
+
className: "flex min-w-0 items-center gap-space-sm",
|
|
312
|
+
children: [/* @__PURE__ */ P(i, {
|
|
308
313
|
tag: "span",
|
|
309
|
-
|
|
314
|
+
type: "inherit",
|
|
315
|
+
weight: "medium",
|
|
316
|
+
lineHeight: "tight",
|
|
310
317
|
className: "truncate",
|
|
311
|
-
children:
|
|
312
|
-
}), !!e.badge && /* @__PURE__ */
|
|
318
|
+
children: Y(e.title, r)
|
|
319
|
+
}), !!e.badge && /* @__PURE__ */ P(x, {
|
|
313
320
|
tone: e.badge.tone === "destructive" ? "destructive" : e.badge.tone,
|
|
314
321
|
children: e.badge.label
|
|
315
322
|
})]
|
|
@@ -317,23 +324,23 @@ function G({ result: e, active: t = !1, query: n = "", onSelect: i, onMouseEnter
|
|
|
317
324
|
let t = [];
|
|
318
325
|
return e.subtitle && t.push({
|
|
319
326
|
key: "subtitle",
|
|
320
|
-
node: /* @__PURE__ */
|
|
327
|
+
node: /* @__PURE__ */ P(i, {
|
|
321
328
|
tag: "span",
|
|
322
329
|
size: "xs",
|
|
323
330
|
type: "secondary",
|
|
324
331
|
className: "min-w-0 break-words",
|
|
325
|
-
children:
|
|
332
|
+
children: Y(e.subtitle, r)
|
|
326
333
|
})
|
|
327
|
-
}), e.meta?.forEach((e,
|
|
328
|
-
let
|
|
334
|
+
}), e.meta?.forEach((e, r) => {
|
|
335
|
+
let a = e.icon;
|
|
329
336
|
t.push({
|
|
330
|
-
key: `m-${
|
|
331
|
-
node: /* @__PURE__ */
|
|
337
|
+
key: `m-${r}`,
|
|
338
|
+
node: /* @__PURE__ */ F(i, {
|
|
332
339
|
tag: "span",
|
|
333
340
|
size: "xs",
|
|
334
341
|
type: "secondary",
|
|
335
|
-
className:
|
|
336
|
-
children: [!!
|
|
342
|
+
className: n("inline-flex min-w-0 items-center gap-space-xs break-words", e.mono && "font-mono tabular-nums"),
|
|
343
|
+
children: [!!a && /* @__PURE__ */ P(a, {
|
|
337
344
|
className: "size-icon-sm shrink-0",
|
|
338
345
|
"aria-hidden": "true"
|
|
339
346
|
}), e.label]
|
|
@@ -341,14 +348,14 @@ function G({ result: e, active: t = !1, query: n = "", onSelect: i, onMouseEnter
|
|
|
341
348
|
});
|
|
342
349
|
}), e.timestamp && t.push({
|
|
343
350
|
key: "ts",
|
|
344
|
-
node: /* @__PURE__ */
|
|
351
|
+
node: /* @__PURE__ */ P(_, {
|
|
345
352
|
size: "xs",
|
|
346
353
|
className: "tabular-nums",
|
|
347
354
|
children: e.timestamp
|
|
348
355
|
})
|
|
349
356
|
}), e.tags?.forEach((e) => t.push({
|
|
350
357
|
key: `t-${e}`,
|
|
351
|
-
node: /* @__PURE__ */
|
|
358
|
+
node: /* @__PURE__ */ P(i, {
|
|
352
359
|
tag: "span",
|
|
353
360
|
size: "xs",
|
|
354
361
|
type: "secondary",
|
|
@@ -357,43 +364,45 @@ function G({ result: e, active: t = !1, query: n = "", onSelect: i, onMouseEnter
|
|
|
357
364
|
})
|
|
358
365
|
})), e.rightValue && t.push({
|
|
359
366
|
key: "rv",
|
|
360
|
-
node: /* @__PURE__ */
|
|
367
|
+
node: /* @__PURE__ */ F(g, {
|
|
368
|
+
type: "inherit",
|
|
361
369
|
weight: "medium",
|
|
362
370
|
className: "inline-flex flex-wrap items-baseline gap-space-xs tabular-nums",
|
|
363
|
-
children: [e.rightValue, !!e.rightLabel && /* @__PURE__ */
|
|
371
|
+
children: [e.rightValue, !!e.rightLabel && /* @__PURE__ */ P(i, {
|
|
364
372
|
tag: "span",
|
|
365
373
|
size: "inherit",
|
|
366
374
|
type: "secondary",
|
|
367
375
|
children: e.rightLabel.toLowerCase()
|
|
368
376
|
})]
|
|
369
377
|
})
|
|
370
|
-
}), t.length === 0 ? null : /* @__PURE__ */
|
|
378
|
+
}), t.length === 0 ? null : /* @__PURE__ */ P("div", {
|
|
371
379
|
className: "flex min-w-0 flex-wrap items-baseline gap-x-space-sm gap-y-dense break-words",
|
|
372
|
-
children: t.map((e, t) => /* @__PURE__ */
|
|
373
|
-
className:
|
|
374
|
-
children: [t > 0 && /* @__PURE__ */
|
|
380
|
+
children: t.map((e, t) => /* @__PURE__ */ F("span", {
|
|
381
|
+
className: n("inline-flex min-w-0 max-w-full items-baseline gap-space-sm", e.key === "rv" && "@xl/global-search:hidden"),
|
|
382
|
+
children: [t > 0 && /* @__PURE__ */ P(i, {
|
|
375
383
|
tag: "span",
|
|
376
384
|
size: "xs",
|
|
377
385
|
type: "secondary",
|
|
378
386
|
"aria-hidden": "true",
|
|
379
|
-
className: "shrink-0
|
|
387
|
+
className: "shrink-0",
|
|
380
388
|
children: "·"
|
|
381
389
|
}), e.node]
|
|
382
390
|
}, e.key))
|
|
383
391
|
});
|
|
384
392
|
})()]
|
|
385
393
|
}),
|
|
386
|
-
!!(e.rightValue || e.rightLabel) && /* @__PURE__ */
|
|
394
|
+
!!(e.rightValue || e.rightLabel) && /* @__PURE__ */ P("div", {
|
|
387
395
|
className: "hidden shrink-0 items-center self-stretch @xl/global-search:flex",
|
|
388
|
-
children: /* @__PURE__ */
|
|
396
|
+
children: /* @__PURE__ */ F(o, {
|
|
389
397
|
gap: "dense",
|
|
390
398
|
align: "end",
|
|
391
399
|
className: "text-right leading-tight",
|
|
392
|
-
children: [!!e.rightValue && /* @__PURE__ */
|
|
400
|
+
children: [!!e.rightValue && /* @__PURE__ */ P(g, {
|
|
401
|
+
type: "inherit",
|
|
393
402
|
weight: "semibold",
|
|
394
403
|
className: "whitespace-nowrap tabular-nums",
|
|
395
404
|
children: e.rightValue
|
|
396
|
-
}), !!e.rightLabel && /* @__PURE__ */
|
|
405
|
+
}), !!e.rightLabel && /* @__PURE__ */ P(i, {
|
|
397
406
|
tag: "span",
|
|
398
407
|
size: "xs",
|
|
399
408
|
type: "secondary",
|
|
@@ -402,43 +411,41 @@ function G({ result: e, active: t = !1, query: n = "", onSelect: i, onMouseEnter
|
|
|
402
411
|
})]
|
|
403
412
|
})
|
|
404
413
|
}),
|
|
405
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ P(I, {
|
|
406
415
|
"aria-hidden": "true",
|
|
407
|
-
className:
|
|
408
|
-
children: /* @__PURE__ */ k(j, { className: "size-icon-md" })
|
|
416
|
+
className: n("size-icon shrink-0 transition-opacity", t ? "text-inherit opacity-100" : "text-muted-foreground opacity-0 group-hover/row:opacity-100")
|
|
409
417
|
})
|
|
410
418
|
]
|
|
411
419
|
});
|
|
412
420
|
}
|
|
413
421
|
//#endregion
|
|
414
422
|
//#region src/components/features/global-search/partials/global-search-tabs.tsx
|
|
415
|
-
function
|
|
416
|
-
return /* @__PURE__ */
|
|
417
|
-
className: "global-search-tabs--component
|
|
418
|
-
children: /* @__PURE__ */
|
|
419
|
-
className: "global-search-tabs--scroller overflow-x-auto
|
|
420
|
-
children: /* @__PURE__ */
|
|
423
|
+
function Z({ value: e, onValueChange: t, tabs: r, counts: a }) {
|
|
424
|
+
return /* @__PURE__ */ P("div", {
|
|
425
|
+
className: n("global-search-tabs--component", l.anchored.header),
|
|
426
|
+
children: /* @__PURE__ */ P("div", {
|
|
427
|
+
className: "global-search-tabs--scroller overflow-x-auto px-surface-xs pt-space-xs pb-space-md [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
428
|
+
children: /* @__PURE__ */ P(ne, {
|
|
421
429
|
value: e,
|
|
422
430
|
onValueChange: (e) => t(e),
|
|
423
431
|
className: "min-w-max",
|
|
424
|
-
children: /* @__PURE__ */
|
|
432
|
+
children: /* @__PURE__ */ P(te, {
|
|
425
433
|
className: "global-search-tabs--list h-action-sm w-max min-w-max",
|
|
426
|
-
children:
|
|
427
|
-
let
|
|
428
|
-
return /* @__PURE__ */
|
|
429
|
-
value:
|
|
434
|
+
children: r.map((e) => {
|
|
435
|
+
let t = a[e.value] ?? 0;
|
|
436
|
+
return /* @__PURE__ */ F(ee, {
|
|
437
|
+
value: e.value,
|
|
430
438
|
className: "global-search-tabs--trigger shrink-0 gap-space-sm px-control-sm text-foreground",
|
|
431
|
-
children: [/* @__PURE__ */
|
|
432
|
-
tag: "span",
|
|
433
|
-
children: t.label
|
|
434
|
-
}), /* @__PURE__ */ k(o, {
|
|
439
|
+
children: [/* @__PURE__ */ P(i, {
|
|
435
440
|
tag: "span",
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
441
|
+
children: e.label
|
|
442
|
+
}), /* @__PURE__ */ P(x, {
|
|
443
|
+
size: "sm",
|
|
444
|
+
tone: "secondary",
|
|
445
|
+
className: "global-search-tabs--count tabular-nums",
|
|
446
|
+
children: t
|
|
440
447
|
})]
|
|
441
|
-
},
|
|
448
|
+
}, e.value);
|
|
442
449
|
})
|
|
443
450
|
})
|
|
444
451
|
})
|
|
@@ -447,115 +454,108 @@ function K({ value: e, onValueChange: t, tabs: n, counts: i }) {
|
|
|
447
454
|
}
|
|
448
455
|
//#endregion
|
|
449
456
|
//#region src/components/features/global-search/global-search.tsx
|
|
450
|
-
function
|
|
451
|
-
let
|
|
452
|
-
results:
|
|
453
|
-
query:
|
|
454
|
-
onResultSelect:
|
|
455
|
-
onClose:
|
|
456
|
-
}),
|
|
457
|
-
if (
|
|
458
|
-
let e = Object.keys(
|
|
457
|
+
function Q({ results: a = [], query: o, onQueryChange: s, onResultSelect: c, onClose: l, loading: u = !1, idleSections: f, groupLabels: p, autoFocus: m = !1, strings: h, slots: g, tabs: _, className: v }) {
|
|
458
|
+
let y = t(z, h), b = B({
|
|
459
|
+
results: a,
|
|
460
|
+
query: o,
|
|
461
|
+
onResultSelect: c,
|
|
462
|
+
onClose: l
|
|
463
|
+
}), x = !u && o.trim().length > 1 && a.length === 0, S = !u && o.trim().length <= 1, C = O.useMemo(() => {
|
|
464
|
+
if (_) return _;
|
|
465
|
+
let e = Object.keys(b.grouped);
|
|
459
466
|
return [{
|
|
460
467
|
value: "all",
|
|
461
|
-
label:
|
|
468
|
+
label: y.tabAll
|
|
462
469
|
}, ...e.map((e) => ({
|
|
463
470
|
value: e,
|
|
464
|
-
label:
|
|
471
|
+
label: p?.[e] ?? e
|
|
465
472
|
}))];
|
|
466
473
|
}, [
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
474
|
+
_,
|
|
475
|
+
b.grouped,
|
|
476
|
+
y.tabAll,
|
|
477
|
+
p
|
|
471
478
|
]);
|
|
472
|
-
return /* @__PURE__ */
|
|
479
|
+
return /* @__PURE__ */ F("div", {
|
|
473
480
|
"data-component": "global-search",
|
|
474
481
|
"data-slot": "global-search",
|
|
475
|
-
className:
|
|
482
|
+
className: n("global-search--component", "@container/global-search overflow-hidden rounded-radius border border-border bg-card text-card-foreground shadow-xl", v),
|
|
476
483
|
children: [
|
|
477
|
-
|
|
478
|
-
value:
|
|
479
|
-
onValueChange:
|
|
480
|
-
onKeyDown:
|
|
481
|
-
placeholder:
|
|
482
|
-
clearLabel:
|
|
483
|
-
loading:
|
|
484
|
-
autoFocus:
|
|
484
|
+
g?.input ?? /* @__PURE__ */ P(K, {
|
|
485
|
+
value: o,
|
|
486
|
+
onValueChange: s,
|
|
487
|
+
onKeyDown: b.onKeyDown,
|
|
488
|
+
placeholder: y.placeholder,
|
|
489
|
+
clearLabel: y.clear,
|
|
490
|
+
loading: u,
|
|
491
|
+
autoFocus: m
|
|
485
492
|
}),
|
|
486
|
-
!
|
|
487
|
-
value:
|
|
488
|
-
onValueChange:
|
|
489
|
-
tabs:
|
|
490
|
-
counts:
|
|
493
|
+
!u && a.length > 0 && (g?.tabs ?? /* @__PURE__ */ P(Z, {
|
|
494
|
+
value: b.activeTab,
|
|
495
|
+
onValueChange: b.setActiveTab,
|
|
496
|
+
tabs: C,
|
|
497
|
+
counts: b.tabCounts
|
|
491
498
|
})),
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
-
className: "max-h-
|
|
499
|
+
/* @__PURE__ */ F("div", {
|
|
500
|
+
className: "global-search--viewport max-h-130 overflow-y-auto",
|
|
494
501
|
children: [
|
|
495
|
-
!!
|
|
496
|
-
!!
|
|
497
|
-
className: "global-search--loading flex items-center justify-center
|
|
502
|
+
!!S && (g?.idle ?? (f && f.length > 0 ? /* @__PURE__ */ P(G, { sections: f }) : null)),
|
|
503
|
+
!!u && (g?.loading ?? /* @__PURE__ */ P("div", {
|
|
504
|
+
className: "global-search--loading flex items-center justify-center px-row-x py-space-xl",
|
|
498
505
|
role: "status",
|
|
499
|
-
children: /* @__PURE__ */
|
|
506
|
+
children: /* @__PURE__ */ P(i, {
|
|
500
507
|
type: "secondary",
|
|
501
|
-
children:
|
|
508
|
+
children: y.loading
|
|
502
509
|
})
|
|
503
510
|
})),
|
|
504
|
-
!!
|
|
505
|
-
title:
|
|
506
|
-
hint:
|
|
511
|
+
!!x && (g?.empty ?? /* @__PURE__ */ P(V, {
|
|
512
|
+
title: e(y.emptyTitle, { query: o }),
|
|
513
|
+
hint: y.emptyHint
|
|
507
514
|
})),
|
|
508
|
-
!
|
|
509
|
-
className: "global-search--results
|
|
510
|
-
children: Object.entries(
|
|
511
|
-
className:
|
|
512
|
-
children: [/* @__PURE__ */
|
|
513
|
-
|
|
514
|
-
|
|
515
|
+
!u && a.length > 0 && /* @__PURE__ */ P("div", {
|
|
516
|
+
className: n("global-search--results", d.compact),
|
|
517
|
+
children: Object.entries(b.visibleGrouped).map(([e, t]) => /* @__PURE__ */ F("div", {
|
|
518
|
+
className: "global-search--group",
|
|
519
|
+
children: [/* @__PURE__ */ P(W, {
|
|
520
|
+
label: p?.[e] ?? e,
|
|
521
|
+
action: b.activeTab === "all" && t.length > 0 ? /* @__PURE__ */ P(r, {
|
|
515
522
|
type: "button",
|
|
516
523
|
size: "sm",
|
|
517
|
-
onClick: () =>
|
|
518
|
-
className: "
|
|
519
|
-
children:
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
children: b.seeAll
|
|
524
|
-
})
|
|
525
|
-
})]
|
|
526
|
-
}), /* @__PURE__ */ k(s, {
|
|
527
|
-
render: /* @__PURE__ */ k("ul", {}),
|
|
528
|
-
gap: "2xs",
|
|
529
|
-
className: "m-0 list-none p-0",
|
|
524
|
+
onClick: () => b.setActiveTab(e),
|
|
525
|
+
className: "shrink-0",
|
|
526
|
+
children: y.seeAll
|
|
527
|
+
}) : null
|
|
528
|
+
}), /* @__PURE__ */ P("ul", {
|
|
529
|
+
className: "m-0 flex list-none flex-col p-0",
|
|
530
530
|
children: t.map((e) => {
|
|
531
|
-
let t =
|
|
531
|
+
let t = b.flat[b.activeIdx]?.id === e.id, n = {
|
|
532
532
|
isActive: t,
|
|
533
|
-
query:
|
|
534
|
-
onSelect: () =>
|
|
535
|
-
}, r =
|
|
533
|
+
query: o,
|
|
534
|
+
onSelect: () => c?.(e)
|
|
535
|
+
}, r = g?.renderResult ? g.renderResult(e, n) : /* @__PURE__ */ P(X, {
|
|
536
536
|
result: e,
|
|
537
537
|
active: t,
|
|
538
|
-
query:
|
|
538
|
+
query: o,
|
|
539
539
|
onSelect: n.onSelect,
|
|
540
|
-
onMouseEnter: () =>
|
|
540
|
+
onMouseEnter: () => b.setActiveById(e.id)
|
|
541
541
|
});
|
|
542
|
-
return /* @__PURE__ */
|
|
542
|
+
return /* @__PURE__ */ P("li", { children: r }, e.id);
|
|
543
543
|
})
|
|
544
544
|
})]
|
|
545
545
|
}, e))
|
|
546
546
|
})
|
|
547
547
|
]
|
|
548
548
|
}),
|
|
549
|
-
|
|
550
|
-
navigateLabel:
|
|
551
|
-
openLabel:
|
|
552
|
-
closeLabel:
|
|
553
|
-
trailing: !
|
|
549
|
+
g?.footer ?? /* @__PURE__ */ P(U, {
|
|
550
|
+
navigateLabel: y.footerNavigate,
|
|
551
|
+
openLabel: y.footerOpen,
|
|
552
|
+
closeLabel: y.footerClose,
|
|
553
|
+
trailing: !S && !x && a.length > 0 ? /* @__PURE__ */ P(i, {
|
|
554
554
|
tag: "span",
|
|
555
555
|
size: "xs",
|
|
556
556
|
type: "secondary",
|
|
557
557
|
className: "tabular-nums",
|
|
558
|
-
children:
|
|
558
|
+
children: e(y.resultsCount, { count: a.length })
|
|
559
559
|
}) : void 0
|
|
560
560
|
})
|
|
561
561
|
]
|
|
@@ -563,29 +563,29 @@ function q({ results: e = [], query: c, onQueryChange: l, onResultSelect: u, onC
|
|
|
563
563
|
}
|
|
564
564
|
//#endregion
|
|
565
565
|
//#region src/components/features/global-search/global-search-dialog.tsx
|
|
566
|
-
function
|
|
567
|
-
let
|
|
568
|
-
return /* @__PURE__ */
|
|
566
|
+
function $({ open: e, onOpenChange: r, contentClassName: i, className: a, strings: o, autoFocus: s = !0, ...c }) {
|
|
567
|
+
let l = t(z, o), u = A(() => () => r(!1), [r]);
|
|
568
|
+
return /* @__PURE__ */ P(m, {
|
|
569
569
|
open: e,
|
|
570
|
-
onOpenChange:
|
|
571
|
-
title:
|
|
570
|
+
onOpenChange: r,
|
|
571
|
+
title: l.dialogTitle,
|
|
572
572
|
visuallyHideHeader: !0,
|
|
573
573
|
showCloseButton: !1,
|
|
574
574
|
showCancel: !1,
|
|
575
575
|
showConfirm: !1,
|
|
576
|
-
className:
|
|
576
|
+
className: n("global-search-dialog--component", "w-full max-w-2xl overflow-visible border-0 bg-transparent p-0 shadow-none sm:max-w-2xl", "top-24 translate-y-0", i),
|
|
577
577
|
contentClassName: "p-0",
|
|
578
|
-
children: /* @__PURE__ */
|
|
579
|
-
...
|
|
578
|
+
children: /* @__PURE__ */ P(Q, {
|
|
579
|
+
...c,
|
|
580
580
|
strings: o,
|
|
581
581
|
autoFocus: s,
|
|
582
|
-
onClose:
|
|
582
|
+
onClose: u,
|
|
583
583
|
className: a
|
|
584
584
|
})
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
$.displayName = "GlobalSearchDialog";
|
|
588
588
|
//#endregion
|
|
589
|
-
export {
|
|
589
|
+
export { Q as GlobalSearch, $ as GlobalSearchDialog, V as GlobalSearchEmptyState, U as GlobalSearchFooter, G as GlobalSearchIdleState, K as GlobalSearchInput, X as GlobalSearchResultRow, Z as GlobalSearchTabs, z as defaultGlobalSearchStrings, B as useGlobalSearch };
|
|
590
590
|
|
|
591
591
|
//# sourceMappingURL=global-search.js.map
|