themelia-react-ui 2.0.4 → 2.0.6
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 +211 -0
- package/MIGRATION.md +119 -0
- package/README.md +122 -20
- package/dist/{accordion-96o0pN62.js → accordion-0tQUZ20r.js} +13 -13
- package/dist/accordion-0tQUZ20r.js.map +1 -0
- package/dist/{action-menu-CHgs8vmj.js → action-menu-C0gjzLyE.js} +48 -45
- package/dist/action-menu-C0gjzLyE.js.map +1 -0
- package/dist/{affordance-geometry.generated-B8yGOr8-.js → affordance-geometry.generated-P-aVJisu.js} +36 -36
- package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
- package/dist/{ai-artifact-BZUGwBq6.js → ai-artifact-CGGpQryR.js} +281 -230
- package/dist/ai-artifact-CGGpQryR.js.map +1 -0
- package/dist/app-shell-EHuuRDGy.js +321 -0
- package/dist/app-shell-EHuuRDGy.js.map +1 -0
- package/dist/{attachment-DkoqHPPl.js → attachment-BCpA4e7i.js} +10 -10
- package/dist/{attachment-DkoqHPPl.js.map → attachment-BCpA4e7i.js.map} +1 -1
- package/dist/{auth-D2FVZ1MH.js → auth-B0girIk_.js} +49 -52
- package/dist/auth-B0girIk_.js.map +1 -0
- package/dist/{avatar-DWO_HHhB.js → avatar-B9Jnp-T-.js} +8 -8
- package/dist/avatar-B9Jnp-T-.js.map +1 -0
- package/dist/{badge-DErMA7ul.js → badge-wWauMgAt.js} +5 -5
- package/dist/{badge-DErMA7ul.js.map → badge-wWauMgAt.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 +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- 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 +200 -193
- 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 +8 -8
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +6 -6
- package/dist/base/spinner.js.map +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +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-CdfIkCsV.js → batch-action-bar-BoqWIIpV.js} +7 -7
- package/dist/batch-action-bar-BoqWIIpV.js.map +1 -0
- package/dist/blocks/admin.js +21 -21
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +267 -247
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +537 -543
- 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 +1330 -1250
- 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-B-WFKecD.js → breadcrumbs-Bp9Ke7kd.js} +7 -7
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
- package/dist/{button-DkmK-z8E.js → button-ChBovTx0.js} +3 -3
- package/dist/button-ChBovTx0.js.map +1 -0
- package/dist/{buttons-BbfzgczK.js → buttons-DeW0bQeK.js} +16 -16
- package/dist/buttons-DeW0bQeK.js.map +1 -0
- package/dist/cards-CNXnmvV5.js +69 -0
- package/dist/cards-CNXnmvV5.js.map +1 -0
- package/dist/cascader-CrAl9zD5.js +439 -0
- package/dist/cascader-CrAl9zD5.js.map +1 -0
- package/dist/chart-I7ROnsl8.js +162 -0
- package/dist/chart-I7ROnsl8.js.map +1 -0
- package/dist/{checkbox-CzYUTPeJ.js → checkbox-MoyHIAPs.js} +3 -3
- package/dist/{checkbox-CzYUTPeJ.js.map → checkbox-MoyHIAPs.js.map} +1 -1
- package/dist/choice-inputs-DHGtx0QV.js +789 -0
- package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
- package/dist/{code-block-CGNaUtAE.js → code-block-BSJyq9e-.js} +9 -9
- package/dist/code-block-BSJyq9e-.js.map +1 -0
- package/dist/{collapsible-Do4G0zcC.js → collapsible-BzJ91LUG.js} +5 -5
- package/dist/{collapsible-Do4G0zcC.js.map → collapsible-BzJ91LUG.js.map} +1 -1
- package/dist/{collection-content-C0e8SsTm.js → collection-content-CSnwtOTH.js} +3 -3
- package/dist/{collection-content-C0e8SsTm.js.map → collection-content-CSnwtOTH.js.map} +1 -1
- package/dist/combobox-Bcvu5J8O.js +363 -0
- package/dist/combobox-Bcvu5J8O.js.map +1 -0
- package/dist/combobox-C2JiSQPc.js +915 -0
- package/dist/combobox-C2JiSQPc.js.map +1 -0
- package/dist/{command-D8NrBj-b.js → command-9e52NPgK.js} +11 -11
- package/dist/command-9e52NPgK.js.map +1 -0
- package/dist/{comments-Di4w0H_S.js → comments-BsgErEqd.js} +44 -39
- package/dist/comments-BsgErEqd.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +7 -1
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/cards/card.recipes.d.ts +6 -4
- 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 +3 -4
- 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/choice-types.d.ts +5 -1
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
- package/dist/components/base/combobox/combobox-field.d.ts +2 -2
- package/dist/components/base/combobox/index.d.ts +4 -2
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
- package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -1
- package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
- package/dist/components/base/forms/form-field.d.ts +7 -2
- package/dist/components/base/forms/form-sizing.d.ts +7 -7
- package/dist/components/base/forms/workflow.d.ts +7 -1
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +8 -1
- package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
- package/dist/components/base/metadata-list/metadata-list.d.ts +1 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +12 -4
- 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 +10 -3
- 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/repeaters/key-value-editor.d.ts +2 -1
- 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 +29 -5
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/base/upload/avatar-upload.d.ts +2 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +5 -1
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
- package/dist/components/blocks/analytics/types.d.ts +2 -2
- 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/order-status/types.d.ts +4 -0
- 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/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
- package/dist/components/features/activities/activities.types.d.ts +26 -13
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
- 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/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +2 -2
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
- package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
- package/dist/components/features/combobox/types.d.ts +37 -8
- package/dist/components/features/email-composer/types.d.ts +3 -1
- 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/date-facet.d.ts +4 -2
- package/dist/components/features/filters/facets/range-facet.d.ts +12 -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 +6 -3
- package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
- package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +5 -3
- package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
- package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +25 -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/hooks/use-media-library.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 +8 -0
- package/dist/components/features/media-library/media-library.types.d.ts +50 -12
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +4 -4
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
- 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 +45 -8
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +6 -2
- package/dist/components/features/resource/resource.types.d.ts +14 -1
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
- package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -0
- package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +6 -3
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +18 -2
- 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 +9 -8
- package/dist/components/layout/layout.types.d.ts +5 -3
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
- package/dist/components/layout/navigation/side-nav.d.ts +3 -2
- package/dist/components/layout/normalize-layout-path.d.ts +1 -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 +10 -3
- 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 +38 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +6 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +50 -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/primitives/link.d.ts +3 -2
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
- 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/{containers-CRmHf7GP.js → containers-CSdc32h9.js} +26 -18
- package/dist/containers-CSdc32h9.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-CnGCZdX4.js → copyable-3fdHfMR3.js} +7 -7
- package/dist/{copyable-CnGCZdX4.js.map → copyable-3fdHfMR3.js.map} +1 -1
- package/dist/{data-display-D4oujtx0.js → data-display-Cmj-xZYl.js} +271 -279
- package/dist/data-display-Cmj-xZYl.js.map +1 -0
- package/dist/{date-Q7jnXxpk.js → date-Br0FicVv.js} +5 -5
- package/dist/{date-Q7jnXxpk.js.map → date-Br0FicVv.js.map} +1 -1
- package/dist/date-picker-CyQlFYsP.js +1617 -0
- package/dist/date-picker-CyQlFYsP.js.map +1 -0
- package/dist/date-pickers-tj2MXmXd.js +185 -0
- package/dist/date-pickers-tj2MXmXd.js.map +1 -0
- package/dist/{display-BB4BL_-K.js → display-CT_N2a3w.js} +9 -9
- package/dist/{display-BB4BL_-K.js.map → display-CT_N2a3w.js.map} +1 -1
- package/dist/dropdown-menu-C08iIugv.js +194 -0
- package/dist/dropdown-menu-C08iIugv.js.map +1 -0
- package/dist/features/activities.js +388 -326
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +46 -32
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +130 -130
- 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 +243 -239
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +197 -199
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +168 -143
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +19 -30
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map/style.css +15 -0
- package/dist/features/map.js +369 -343
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1202 -975
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1270 -1183
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +160 -153
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +119 -113
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +28 -19
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +297 -256
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +57 -50
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +470 -470
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-Dzo1xtAU.js +246 -0
- package/dist/feedback-Dzo1xtAU.js.map +1 -0
- package/dist/{field-affordance-recipes-DjwGx8eM.js → field-affordance-recipes-D6H7tVJi.js} +5 -5
- package/dist/field-affordance-recipes-D6H7tVJi.js.map +1 -0
- package/dist/field-control-attributes-B6i335wr.js +18 -0
- package/dist/field-control-attributes-B6i335wr.js.map +1 -0
- package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
- package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
- package/dist/filters-Dl80yYtN.js +2415 -0
- package/dist/filters-Dl80yYtN.js.map +1 -0
- package/dist/form-field-CAPdwdnZ.js +74 -0
- package/dist/form-field-CAPdwdnZ.js.map +1 -0
- package/dist/{form-sizing-NXgjkmBG.js → form-sizing-CgcrUbLU.js} +5 -5
- package/dist/form-sizing-CgcrUbLU.js.map +1 -0
- package/dist/{forms-BV5m5aQF.js → forms-B3W8CH7-.js} +17 -13
- package/dist/forms-B3W8CH7-.js.map +1 -0
- package/dist/forms-numeric-CwjQJe-O.js +991 -0
- package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
- package/dist/{header-BA697l4a.js → header-ZIIsRKxP.js} +145 -141
- package/dist/header-ZIIsRKxP.js.map +1 -0
- package/dist/header.recipes-BigdJjw1.js +6 -0
- package/dist/header.recipes-BigdJjw1.js.map +1 -0
- package/dist/hooks/use-files.d.ts +2 -0
- package/dist/{hooks-BQ-L7Uu2.js → hooks-BitHSh-Y.js} +27 -15
- package/dist/hooks-BitHSh-Y.js.map +1 -0
- package/dist/{icon-badge-COWbCCWu.js → icon-badge-npxF1SLX.js} +4 -4
- package/dist/{icon-badge-COWbCCWu.js.map → icon-badge-npxF1SLX.js.map} +1 -1
- package/dist/index.js +4 -5
- package/dist/{input-Cdw4k0fb.js → input-7KAc7XQL.js} +9 -9
- package/dist/{input-Cdw4k0fb.js.map → input-7KAc7XQL.js.map} +1 -1
- package/dist/input-DIREVYHs.js +21 -0
- package/dist/input-DIREVYHs.js.map +1 -0
- package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
- package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
- package/dist/item-FfWnaYST.js +278 -0
- package/dist/item-FfWnaYST.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 +12 -12
- package/dist/layout.types-E_GAApzO.js +30 -0
- package/dist/layout.types-E_GAApzO.js.map +1 -0
- package/dist/lib/affordance-geometry.generated.d.ts +35 -35
- package/dist/lib/control-group-recipes.d.ts +5 -5
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/field-control-attributes.d.ts +11 -0
- package/dist/lib/field-state-recipes.d.ts +2 -0
- package/dist/lib/format.d.ts +1 -0
- 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/surface-recipes.d.ts +1 -1
- package/dist/lib/token-merge.generated.d.ts +18 -15
- package/dist/lib/utils.js +1 -1
- package/dist/map-demo-tile.svg +1 -1
- package/dist/{media-gallery-CSl5W1Fy.js → media-gallery-C81DAnKI.js} +6 -6
- package/dist/{media-gallery-CSl5W1Fy.js.map → media-gallery-C81DAnKI.js.map} +1 -1
- package/dist/{mentions-RKOQaaIB.js → mentions-qOnedSt4.js} +237 -168
- package/dist/mentions-qOnedSt4.js.map +1 -0
- package/dist/message-BJHnn43M.js +135 -0
- package/dist/message-BJHnn43M.js.map +1 -0
- package/dist/{metadata-list-qVV7AVxa.js → metadata-list-XkqZ_UXH.js} +64 -64
- package/dist/metadata-list-XkqZ_UXH.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-BgtPJAhi.js +288 -0
- package/dist/navigation-BgtPJAhi.js.map +1 -0
- package/dist/navigation-Bt-v7rWP.js +261 -0
- package/dist/navigation-Bt-v7rWP.js.map +1 -0
- package/dist/{navigation-row-recipes-WZEs-hYo.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
- package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
- package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
- package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
- package/dist/{number-E_OiIfJz.js → number-CYqBcrSj.js} +79 -87
- package/dist/number-CYqBcrSj.js.map +1 -0
- package/dist/overflow-tab-bar-BQCA2Zn2.js +172 -0
- package/dist/overflow-tab-bar-BQCA2Zn2.js.map +1 -0
- package/dist/overlays-CC8zI3Du.js +1017 -0
- package/dist/overlays-CC8zI3Du.js.map +1 -0
- package/dist/page-BoQ1VaFJ.js +331 -0
- package/dist/page-BoQ1VaFJ.js.map +1 -0
- package/dist/page-header-commands-DIKspJfx.js +193 -0
- package/dist/page-header-commands-DIKspJfx.js.map +1 -0
- package/dist/{pagination-Ch8X_47u.js → pagination-Br8TdV9A.js} +7 -7
- package/dist/{pagination-Ch8X_47u.js.map → pagination-Br8TdV9A.js.map} +1 -1
- package/dist/popover-k8TdUcAt.js +201 -0
- package/dist/popover-k8TdUcAt.js.map +1 -0
- package/dist/{popover-menu-BYaCdFhf.js → popover-menu-yn-o0kyA.js} +7 -7
- package/dist/{popover-menu-BYaCdFhf.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
- package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DJ0AkUan.js} +19 -12
- package/dist/popover.recipes-DJ0AkUan.js.map +1 -0
- package/dist/portal-recipes-DyUXqUtD.js +9 -0
- package/dist/portal-recipes-DyUXqUtD.js.map +1 -0
- package/dist/{primitives-Du64iDbb.js → primitives-BkkQjYl7.js} +23 -18
- package/dist/primitives-BkkQjYl7.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-BvF2oCdV.js → progress-DZFXXzPs.js} +9 -9
- package/dist/{progress-BvF2oCdV.js.map → progress-DZFXXzPs.js.map} +1 -1
- package/dist/{receipt-D789Jwyy.js → receipt-C7LhOg7Q.js} +7 -7
- package/dist/receipt-C7LhOg7Q.js.map +1 -0
- package/dist/rich-text-BnTzZjIo.js +45 -0
- package/dist/rich-text-BnTzZjIo.js.map +1 -0
- package/dist/{rich-text-editor-Cm1dpUpQ.js → rich-text-editor-CAurDwT5.js} +501 -424
- package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js +99 -0
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
- package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
- package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
- package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
- package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
- package/dist/{scroll-area-La5RXsEk.js → scroll-area-Bj6CRUif.js} +2 -2
- package/dist/{scroll-area-La5RXsEk.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
- package/dist/{separator-DAEV0w65.js → separator-B9ewiCGO.js} +2 -2
- package/dist/{separator-DAEV0w65.js.map → separator-B9ewiCGO.js.map} +1 -1
- package/dist/{separator-GNfPG-90.js → separator-DM6gs2vu.js} +3 -3
- package/dist/{separator-GNfPG-90.js.map → separator-DM6gs2vu.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-DZPHgpx4.js +155 -0
- package/dist/settings-DZPHgpx4.js.map +1 -0
- package/dist/sheet-C4DHsgLk.js +250 -0
- package/dist/sheet-C4DHsgLk.js.map +1 -0
- package/dist/sidebar-C8BnDwTH.js +709 -0
- package/dist/sidebar-C8BnDwTH.js.map +1 -0
- package/dist/sidebar-CmD6a-HK.js +1004 -0
- package/dist/sidebar-CmD6a-HK.js.map +1 -0
- package/dist/skeleton-DDgdhmu9.js +265 -0
- package/dist/skeleton-DDgdhmu9.js.map +1 -0
- package/dist/smart-card-B6vLxqa_.js +617 -0
- package/dist/smart-card-B6vLxqa_.js.map +1 -0
- package/dist/{structure-C0V0_Fyf.js → structure-DZJ2wbAU.js} +2 -2
- package/dist/{structure-C0V0_Fyf.js.map → structure-DZJ2wbAU.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
- package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
- package/dist/{table-DH7rozUv.js → table-CBonSdTp.js} +573 -519
- package/dist/table-CBonSdTp.js.map +1 -0
- package/dist/{table-CpvnzJn9.js → table-CXSPHH25.js} +75 -71
- package/dist/table-CXSPHH25.js.map +1 -0
- package/dist/tabs-C4Kr_hCr.js +192 -0
- package/dist/tabs-C4Kr_hCr.js.map +1 -0
- package/dist/{text-inputs-DXItiR0O.js → text-inputs-jdkS3ReG.js} +18 -18
- package/dist/text-inputs-jdkS3ReG.js.map +1 -0
- package/dist/theme.css +40 -37
- package/dist/{timelines-DmtztAY_.js → timelines-CoPwdJP0.js} +13 -12
- package/dist/timelines-CoPwdJP0.js.map +1 -0
- package/dist/tooltip-31NwIpTo.js +113 -0
- package/dist/tooltip-31NwIpTo.js.map +1 -0
- package/dist/{tree-CV11PURP.js → tree-CeYVzdFE.js} +9 -9
- package/dist/{tree-CV11PURP.js.map → tree-CeYVzdFE.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-CSyJrh28.js → typography-C7-YMW1S.js} +12 -12
- package/dist/{typography-CSyJrh28.js.map → typography-C7-YMW1S.js.map} +1 -1
- 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-C9SA0X-8.js → upload-Hdm5gObf.js} +309 -296
- package/dist/upload-Hdm5gObf.js.map +1 -0
- package/dist/{upload-queue-DhQJiSRc.js → upload-queue-D0sYPuqo.js} +16 -14
- package/dist/upload-queue-D0sYPuqo.js.map +1 -0
- package/dist/{usage-card-DVTRDmGz.js → usage-card-9s8hLDfn.js} +24 -17
- package/dist/usage-card-9s8hLDfn.js.map +1 -0
- package/dist/{utils-CF3c95Io.js → utils-DhuoqFy4.js} +255 -165
- package/dist/utils-DhuoqFy4.js.map +1 -0
- package/dist/value-inputs-D3aPgq9H.js +980 -0
- package/dist/value-inputs-D3aPgq9H.js.map +1 -0
- package/dist/{value-typography-ClupF0Gz.js → value-typography-uSzzG9Gf.js} +32 -26
- package/dist/value-typography-uSzzG9Gf.js.map +1 -0
- package/dist/{workspace-9EFVXUyk.js → workspace-CC8Vchiu.js} +51 -50
- package/dist/workspace-CC8Vchiu.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +4 -3
- package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
- package/docs/consumer-skill/examples/app-layout.tsx +52 -1
- 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 +3 -3
- 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 +38 -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-edit-page.tsx +1 -1
- package/docs/consumer-skill/examples/rhf-overlay-form.tsx +24 -11
- package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
- package/docs/consumer-skill/references/agents-md.md +21 -19
- package/docs/consumer-skill/references/analytics.md +33 -1
- package/docs/consumer-skill/references/commerce-composition.md +97 -0
- package/docs/consumer-skill/references/component-contracts.json +21249 -14205
- package/docs/consumer-skill/references/composition-mapping.md +17 -3
- package/docs/consumer-skill/references/composition.md +177 -32
- 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 +12 -9
- package/docs/consumer-skill/references/discovery.md +27 -3
- package/docs/consumer-skill/references/domain-structures.md +124 -0
- package/docs/consumer-skill/references/installation.md +62 -8
- package/docs/consumer-skill/references/integration.md +59 -1
- package/docs/consumer-skill/references/product-composition.md +94 -0
- package/docs/consumer-skill/references/public-api.json +3044 -445
- package/docs/consumer-skill/references/review.md +87 -10
- package/docs/consumer-skill/references/rhf-workflows.md +79 -0
- package/docs/consumer-skill/references/screen-archetypes.md +19 -7
- package/docs/consumer-skill/references/screen-decisions.md +126 -0
- package/docs/consumer-skill/references/theming.md +24 -20
- package/docs/consumer-skill/references/tokens.json +9 -9
- 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 +7 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +176 -26
- package/docs/consumer-skill/scripts/composition-schema.mjs +1 -1
- package/docs/consumer-skill/scripts/composition.mjs +61 -5
- package/docs/consumer-skill/scripts/discovery.mjs +54 -0
- package/docs/consumer-skill/scripts/inspect-component.mjs +1 -1
- package/docs/consumer-skill/scripts/inspection.mjs +73 -18
- package/docs/consumer-skill/scripts/setup-skills.mjs +79 -7
- package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
- package/docs/consumer-skills/themelia-components/SKILL.md +14 -13
- package/docs/consumer-skills/themelia-composition/SKILL.md +16 -17
- package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
- package/docs/consumer-skills/themelia-foundation/SKILL.md +2 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +24 -17
- package/package.json +4 -2
- package/templates/admin-shell-template.tsx +1 -2
- package/templates/customers-template.tsx +18 -16
- package/dist/accordion-96o0pN62.js.map +0 -1
- package/dist/action-menu-CHgs8vmj.js.map +0 -1
- package/dist/affordance-geometry.generated-B8yGOr8-.js.map +0 -1
- package/dist/ai-artifact-BZUGwBq6.js.map +0 -1
- package/dist/app-shell-D63ATkIK.js +0 -237
- package/dist/app-shell-D63ATkIK.js.map +0 -1
- package/dist/auth-D2FVZ1MH.js.map +0 -1
- package/dist/avatar-DWO_HHhB.js.map +0 -1
- package/dist/base/cascader.js.map +0 -1
- package/dist/batch-action-bar-CdfIkCsV.js.map +0 -1
- package/dist/breadcrumbs-B-WFKecD.js.map +0 -1
- package/dist/button-DkmK-z8E.js.map +0 -1
- package/dist/buttons-BbfzgczK.js.map +0 -1
- package/dist/cards-4JTWqvVe.js +0 -68
- package/dist/cards-4JTWqvVe.js.map +0 -1
- package/dist/chart-C19flDQb.js +0 -155
- package/dist/chart-C19flDQb.js.map +0 -1
- package/dist/choice-inputs-JLtij2y4.js +0 -776
- package/dist/choice-inputs-JLtij2y4.js.map +0 -1
- package/dist/code-block-CGNaUtAE.js.map +0 -1
- package/dist/combobox-CBJDs6w_.js +0 -877
- package/dist/combobox-CBJDs6w_.js.map +0 -1
- package/dist/combobox-hbhSS18O.js +0 -355
- package/dist/combobox-hbhSS18O.js.map +0 -1
- package/dist/command-D8NrBj-b.js.map +0 -1
- package/dist/comments-Di4w0H_S.js.map +0 -1
- package/dist/containers-CRmHf7GP.js.map +0 -1
- package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
- package/dist/data-display-D4oujtx0.js.map +0 -1
- package/dist/date-picker-zOt1oNss.js +0 -1542
- package/dist/date-picker-zOt1oNss.js.map +0 -1
- package/dist/date-pickers-cj8IXbDC.js +0 -179
- package/dist/date-pickers-cj8IXbDC.js.map +0 -1
- package/dist/dropdown-menu-CjY8Vt7W.js +0 -193
- package/dist/dropdown-menu-CjY8Vt7W.js.map +0 -1
- package/dist/feedback-DZNL5Lg1.js +0 -239
- package/dist/feedback-DZNL5Lg1.js.map +0 -1
- package/dist/field-affordance-recipes-DjwGx8eM.js.map +0 -1
- package/dist/filters-BcT-uoFy.js +0 -2209
- package/dist/filters-BcT-uoFy.js.map +0 -1
- package/dist/form-field-CsgRmdit.js +0 -63
- package/dist/form-field-CsgRmdit.js.map +0 -1
- package/dist/form-sizing-NXgjkmBG.js.map +0 -1
- package/dist/forms-BV5m5aQF.js.map +0 -1
- package/dist/forms-numeric-Cd33AKbD.js +0 -906
- package/dist/forms-numeric-Cd33AKbD.js.map +0 -1
- package/dist/header-BA697l4a.js.map +0 -1
- package/dist/hooks-BQ-L7Uu2.js.map +0 -1
- package/dist/input-DOPL5_QE.js +0 -21
- package/dist/input-DOPL5_QE.js.map +0 -1
- package/dist/item-BvZ2DR_x.js +0 -277
- package/dist/item-BvZ2DR_x.js.map +0 -1
- package/dist/layout.types-Cn7aUzJp.js +0 -20
- package/dist/layout.types-Cn7aUzJp.js.map +0 -1
- package/dist/mentions-RKOQaaIB.js.map +0 -1
- package/dist/message-INU2xsxu.js +0 -128
- package/dist/message-INU2xsxu.js.map +0 -1
- package/dist/metadata-list-qVV7AVxa.js.map +0 -1
- package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
- package/dist/navigation-BQNcg1jT.js +0 -269
- package/dist/navigation-BQNcg1jT.js.map +0 -1
- package/dist/navigation-DLF3E1IC.js +0 -145
- package/dist/navigation-DLF3E1IC.js.map +0 -1
- package/dist/navigation-row-recipes-WZEs-hYo.js.map +0 -1
- package/dist/number-E_OiIfJz.js.map +0 -1
- package/dist/overflow-tab-bar-CrbqMteP.js +0 -284
- package/dist/overflow-tab-bar-CrbqMteP.js.map +0 -1
- package/dist/overlays-BlKynmde.js +0 -1004
- package/dist/overlays-BlKynmde.js.map +0 -1
- package/dist/page-CIwNUtGr.js +0 -227
- package/dist/page-CIwNUtGr.js.map +0 -1
- package/dist/page-header-commands-DFMlNYzN.js +0 -128
- package/dist/page-header-commands-DFMlNYzN.js.map +0 -1
- package/dist/popover-uwzX2vo7.js +0 -198
- package/dist/popover-uwzX2vo7.js.map +0 -1
- package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
- package/dist/primitives-Du64iDbb.js.map +0 -1
- package/dist/receipt-D789Jwyy.js.map +0 -1
- package/dist/rich-text-CLJEf76s.js +0 -78
- package/dist/rich-text-CLJEf76s.js.map +0 -1
- package/dist/rich-text-editor-Cm1dpUpQ.js.map +0 -1
- package/dist/rich-text-editor-toolbar-L__e4x47.js +0 -94
- package/dist/rich-text-editor-toolbar-L__e4x47.js.map +0 -1
- package/dist/safe-image-src-C6kQSMBZ.js +0 -17
- package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
- package/dist/sanitize-html-DsQmI48u.js.map +0 -1
- package/dist/settings-BA2iboic.js +0 -174
- package/dist/settings-BA2iboic.js.map +0 -1
- package/dist/sheet-DoAxTb2J.js +0 -213
- package/dist/sheet-DoAxTb2J.js.map +0 -1
- package/dist/sidebar-ByqKR_W5.js +0 -512
- package/dist/sidebar-ByqKR_W5.js.map +0 -1
- package/dist/sidebar-D2iSnGJ7.js +0 -619
- package/dist/sidebar-D2iSnGJ7.js.map +0 -1
- package/dist/skeleton-CUj8O5Bd.js +0 -264
- package/dist/skeleton-CUj8O5Bd.js.map +0 -1
- package/dist/smart-card-CqkzQsK-.js +0 -614
- package/dist/smart-card-CqkzQsK-.js.map +0 -1
- package/dist/table-CpvnzJn9.js.map +0 -1
- package/dist/table-DH7rozUv.js.map +0 -1
- package/dist/tabs-eqVsJZWO.js +0 -191
- package/dist/tabs-eqVsJZWO.js.map +0 -1
- package/dist/text-inputs-DXItiR0O.js.map +0 -1
- package/dist/theme-scope-BJ6eE2xt.js +0 -50
- package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
- package/dist/timelines-DmtztAY_.js.map +0 -1
- package/dist/tooltip-B4hjKtoV.js +0 -111
- package/dist/tooltip-B4hjKtoV.js.map +0 -1
- package/dist/ui-provider-CQCuCBcy.js +0 -136
- package/dist/ui-provider-CQCuCBcy.js.map +0 -1
- package/dist/upload-C9SA0X-8.js.map +0 -1
- package/dist/upload-queue-DhQJiSRc.js.map +0 -1
- package/dist/usage-card-DVTRDmGz.js.map +0 -1
- package/dist/use-mobile-vaLKwgyf.js +0 -15
- package/dist/use-mobile-vaLKwgyf.js.map +0 -1
- package/dist/utils-CF3c95Io.js.map +0 -1
- package/dist/value-inputs-C0o70p-U.js +0 -980
- package/dist/value-inputs-C0o70p-U.js.map +0 -1
- package/dist/value-typography-ClupF0Gz.js.map +0 -1
- package/dist/workspace-9EFVXUyk.js.map +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { mergeStrings as e, useStrings as t } from "./lib/strings.js";
|
|
3
|
-
import { t as n } from "./utils-
|
|
4
|
-
import { n as r } from "./buttons-
|
|
5
|
-
import { c as i, o as a, t as o } from "./typography-
|
|
3
|
+
import { t as n } from "./utils-DhuoqFy4.js";
|
|
4
|
+
import { n as r } from "./buttons-DeW0bQeK.js";
|
|
5
|
+
import { c as i, o as a, t as o } from "./typography-C7-YMW1S.js";
|
|
6
6
|
import { t as s } from "./focus-recipes-B653VaLq.js";
|
|
7
|
-
import { t as c } from "./structure-
|
|
7
|
+
import { t as c } from "./structure-DZJ2wbAU.js";
|
|
8
8
|
import { i as l } from "./tone-recipes-BPsRAvhu.js";
|
|
9
|
-
import { t as u } from "./smart-card-
|
|
9
|
+
import { t as u } from "./smart-card-B6vLxqa_.js";
|
|
10
10
|
import { n as d } from "./composition.recipes-COdiFhxB.js";
|
|
11
|
-
import { t as f } from "./interaction-recipes-
|
|
12
|
-
import { g as p, m, r as h } from "./primitives-
|
|
13
|
-
import { t as g } from "./number-
|
|
14
|
-
import { t as _ } from "./icon-badge-
|
|
15
|
-
import { t as v } from "./badge-
|
|
16
|
-
import { a as y, c as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./attachment-
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { useEffect as k, useRef as A, useState as j } from "react";
|
|
11
|
+
import { t as f } from "./interaction-recipes-4wZ2tvfb.js";
|
|
12
|
+
import { g as p, m, r as h } from "./primitives-BkkQjYl7.js";
|
|
13
|
+
import { t as g } from "./number-CYqBcrSj.js";
|
|
14
|
+
import { t as _ } from "./icon-badge-npxF1SLX.js";
|
|
15
|
+
import { t as v } from "./badge-wWauMgAt.js";
|
|
16
|
+
import { a as y, c as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./attachment-BCpA4e7i.js";
|
|
17
|
+
import { t as ee } from "./message-BJHnn43M.js";
|
|
18
|
+
import { t as D } from "./code-block-BSJyq9e-.js";
|
|
19
|
+
import { useEffect as O, useId as k, useRef as A, useState as j } from "react";
|
|
20
20
|
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
21
|
-
import { AlertCircle as F, Bot as
|
|
21
|
+
import { AlertCircle as F, Bot as I, Brain as te, Check as L, ChevronDown as R, ChevronRight as z, Circle as ne, Copy as re, Download as ie, ExternalLink as ae, FileText as oe, Globe as se, Loader2 as B, MinusCircle as ce, RotateCcw as le, User as ue, X as V, XCircle as de } from "lucide-react";
|
|
22
22
|
//#region src/components/blocks/ai/use-copy-feedback.ts
|
|
23
23
|
function H(e, t) {
|
|
24
24
|
let [n, r] = j(!1), [i, a] = j(!1), o = A(!1), s = A(0), c = A(void 0);
|
|
25
|
-
return
|
|
25
|
+
return O(() => (o.current = !0, r(!1), a(!1), () => {
|
|
26
26
|
o.current = !1, s.current += 1, clearTimeout(c.current);
|
|
27
27
|
}), [t]), {
|
|
28
28
|
copied: n,
|
|
@@ -52,12 +52,12 @@ var U = {
|
|
|
52
52
|
//#region src/components/blocks/ai/ai-message-bubble/ai-message-bubble.tsx
|
|
53
53
|
function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, timestamp: c, children: l, plainText: u, loading: d = !1, onCopy: f, onRegenerate: p, onCopyError: m, className: h, strings: g }) {
|
|
54
54
|
let v = t(U, g), y = u ?? (typeof l == "string" ? l : ""), { copied: b, failed: x, copy: S } = H(m, y), C = a ?? /* @__PURE__ */ N(_, {
|
|
55
|
-
icon: e === "user" ?
|
|
55
|
+
icon: e === "user" ? ue : I,
|
|
56
56
|
tone: "neutral",
|
|
57
57
|
size: "sm",
|
|
58
58
|
"aria-label": o
|
|
59
59
|
}), w = (f !== void 0 || u || p) && e === "assistant";
|
|
60
|
-
return /* @__PURE__ */ N(
|
|
60
|
+
return /* @__PURE__ */ N(ee, {
|
|
61
61
|
align: e === "user" ? "end" : "start",
|
|
62
62
|
tone: e === "user" ? "primary" : e === "system" ? "muted" : "surface",
|
|
63
63
|
avatar: C,
|
|
@@ -96,7 +96,7 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
|
|
|
96
96
|
iconOnly: !0,
|
|
97
97
|
"aria-label": v.regenerateAria,
|
|
98
98
|
onClick: p,
|
|
99
|
-
children: /* @__PURE__ */ N(
|
|
99
|
+
children: /* @__PURE__ */ N(le, {
|
|
100
100
|
"aria-hidden": "true",
|
|
101
101
|
className: "size-icon-md"
|
|
102
102
|
})
|
|
@@ -123,8 +123,9 @@ var G = {
|
|
|
123
123
|
collapse: "Hide details",
|
|
124
124
|
args: "Arguments",
|
|
125
125
|
result: "Result",
|
|
126
|
-
durationLabel: "Took"
|
|
127
|
-
|
|
126
|
+
durationLabel: "Took",
|
|
127
|
+
elapsedLabel: "Elapsed"
|
|
128
|
+
}, fe = {
|
|
128
129
|
pending: { tone: "secondary" },
|
|
129
130
|
running: {
|
|
130
131
|
tone: "info",
|
|
@@ -133,7 +134,7 @@ var G = {
|
|
|
133
134
|
success: { tone: "success" },
|
|
134
135
|
error: { tone: "destructive" }
|
|
135
136
|
};
|
|
136
|
-
function
|
|
137
|
+
function pe({ label: e, ms: t }) {
|
|
137
138
|
return /* @__PURE__ */ P("span", {
|
|
138
139
|
className: "inline-flex shrink-0 items-baseline gap-space-xs",
|
|
139
140
|
children: [/* @__PURE__ */ N(p, {
|
|
@@ -151,14 +152,14 @@ function fe({ label: e, ms: t }) {
|
|
|
151
152
|
});
|
|
152
153
|
}
|
|
153
154
|
function K({ name: e, status: i, icon: a, args: o, result: s, error: d, durationMs: p, expanded: h, defaultExpanded: g = !1, onExpandedChange: y, className: b, strings: x }) {
|
|
154
|
-
let S = t(G, x),
|
|
155
|
-
h === void 0 &&
|
|
155
|
+
let S = t(G, x), C = k(), [w, T] = j(g), E = h ?? w, ee = (e) => {
|
|
156
|
+
h === void 0 && T(e), y?.(e);
|
|
156
157
|
}, D = {
|
|
157
158
|
pending: S.pending,
|
|
158
159
|
running: S.running,
|
|
159
160
|
success: S.success,
|
|
160
161
|
error: S.error
|
|
161
|
-
}, O =
|
|
162
|
+
}, O = fe[i], A = !!(o || s || d), F = i === "success" || i === "error";
|
|
162
163
|
return /* @__PURE__ */ P(u, {
|
|
163
164
|
surface: "card",
|
|
164
165
|
padding: "none",
|
|
@@ -168,10 +169,11 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
|
|
|
168
169
|
tone: "secondary",
|
|
169
170
|
buttonStyle: "ghost",
|
|
170
171
|
size: "md",
|
|
171
|
-
onClick: () =>
|
|
172
|
-
className: n("ai-tool-call--trigger h-auto min-h-0 w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/card:flex-nowrap",
|
|
173
|
-
"aria-expanded":
|
|
174
|
-
"aria-
|
|
172
|
+
onClick: () => A && ee(!E),
|
|
173
|
+
className: n("ai-tool-call--trigger h-auto min-h-0 w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/card:flex-nowrap", A ? `cursor-pointer ${f.rowHover}` : "cursor-default"),
|
|
174
|
+
"aria-expanded": A ? E : void 0,
|
|
175
|
+
"aria-controls": A ? C : void 0,
|
|
176
|
+
"aria-description": A ? E ? x?.collapse : x?.expand : void 0,
|
|
175
177
|
children: [
|
|
176
178
|
!!a && /* @__PURE__ */ N(_, {
|
|
177
179
|
icon: a,
|
|
@@ -194,17 +196,22 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
|
|
|
194
196
|
dot: O.live,
|
|
195
197
|
pulse: O.live,
|
|
196
198
|
children: D[i]
|
|
197
|
-
}), !!p && /* @__PURE__ */ N(
|
|
198
|
-
label: S.durationLabel,
|
|
199
|
+
}), !!p && /* @__PURE__ */ N(pe, {
|
|
200
|
+
label: F ? S.durationLabel : S.elapsedLabel ?? G.elapsedLabel ?? S.durationLabel,
|
|
199
201
|
ms: p
|
|
200
202
|
})]
|
|
201
203
|
}),
|
|
202
|
-
|
|
204
|
+
A ? N(E ? R : z, { className: "size-icon-md shrink-0 text-muted-foreground" }) : /* @__PURE__ */ N("span", {
|
|
205
|
+
"aria-hidden": "true",
|
|
206
|
+
className: "ai-tool-call--affordance hidden size-icon-md shrink-0 @md/card:block"
|
|
207
|
+
})
|
|
203
208
|
]
|
|
204
|
-
}),
|
|
209
|
+
}), A && /* @__PURE__ */ N(c, {
|
|
210
|
+
id: C,
|
|
211
|
+
hidden: !E,
|
|
205
212
|
gap: "md",
|
|
206
|
-
className: "ai-tool-call--details border-t border-border/60 bg-muted/30 px-space-lg py-space-md",
|
|
207
|
-
children: [!!o && /* @__PURE__ */ N(q, {
|
|
213
|
+
className: n("ai-tool-call--details border-t border-border/60 bg-muted/30 px-space-lg py-space-md", !E && "hidden"),
|
|
214
|
+
children: E && /* @__PURE__ */ P(M, { children: [!!o && /* @__PURE__ */ N(q, {
|
|
208
215
|
label: S.args,
|
|
209
216
|
children: o
|
|
210
217
|
}), i === "error" && d ? /* @__PURE__ */ N(q, {
|
|
@@ -214,7 +221,7 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
|
|
|
214
221
|
}) : !!s && /* @__PURE__ */ N(q, {
|
|
215
222
|
label: S.result,
|
|
216
223
|
children: s
|
|
217
|
-
})]
|
|
224
|
+
})] })
|
|
218
225
|
})]
|
|
219
226
|
});
|
|
220
227
|
}
|
|
@@ -225,7 +232,7 @@ function q({ label: e, children: t, tone: r = "neutral" }) {
|
|
|
225
232
|
className: "ai-tool-call--detail-block",
|
|
226
233
|
children: [/* @__PURE__ */ N(a, { children: e }), /* @__PURE__ */ N("pre", {
|
|
227
234
|
tabIndex: 0,
|
|
228
|
-
className: n("box-border m-0 max-w-full overflow-x-auto rounded-
|
|
235
|
+
className: n("box-border m-0 max-w-full overflow-x-auto rounded-radius bg-card text-card-foreground px-space-md py-space-md font-mono text-xs leading-relaxed", r === "destructive" && n(l.destructive.ink, l.destructive.wash)),
|
|
229
236
|
children: t
|
|
230
237
|
})]
|
|
231
238
|
});
|
|
@@ -257,7 +264,7 @@ function J({ children: e = "Thinking…", paused: t = !1, duration: r = 2.4, siz
|
|
|
257
264
|
J.displayName = "AiShimmer";
|
|
258
265
|
//#endregion
|
|
259
266
|
//#region src/components/blocks/ai/ai-code-block/types.ts
|
|
260
|
-
var
|
|
267
|
+
var me = {
|
|
261
268
|
copy: "Copy",
|
|
262
269
|
copied: "Copied",
|
|
263
270
|
copyError: "Could not copy. Please try again.",
|
|
@@ -266,9 +273,9 @@ var Y = {
|
|
|
266
273
|
};
|
|
267
274
|
//#endregion
|
|
268
275
|
//#region src/components/blocks/ai/ai-code-block/ai-code-block.tsx
|
|
269
|
-
function
|
|
270
|
-
let o = t(
|
|
271
|
-
return /* @__PURE__ */ N(
|
|
276
|
+
function he({ strings: e, className: r, onCopy: i, ...a }) {
|
|
277
|
+
let o = t(me, e);
|
|
278
|
+
return /* @__PURE__ */ N(D, {
|
|
272
279
|
...a,
|
|
273
280
|
className: n("ai-code-block--component", r),
|
|
274
281
|
onCopy: i ? () => i() : void 0,
|
|
@@ -280,10 +287,10 @@ function X({ strings: e, className: r, onCopy: i, ...a }) {
|
|
|
280
287
|
}
|
|
281
288
|
});
|
|
282
289
|
}
|
|
283
|
-
|
|
290
|
+
he.displayName = "AiCodeBlock";
|
|
284
291
|
//#endregion
|
|
285
292
|
//#region src/components/blocks/ai/ai-attachment/types.ts
|
|
286
|
-
var
|
|
293
|
+
var Y = {
|
|
287
294
|
removeAria: "Remove attachment",
|
|
288
295
|
openAria: "Open attachment",
|
|
289
296
|
uploadProgressAria: "Upload progress",
|
|
@@ -291,8 +298,8 @@ var Z = {
|
|
|
291
298
|
};
|
|
292
299
|
//#endregion
|
|
293
300
|
//#region src/components/blocks/ai/ai-attachment/ai-attachment.tsx
|
|
294
|
-
function
|
|
295
|
-
let h = t(
|
|
301
|
+
function ge({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, progress: l, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: m }) {
|
|
302
|
+
let h = t(Y, m), g = !u && typeof l == "number" && l >= 0 && l < 1;
|
|
296
303
|
return /* @__PURE__ */ P(E, {
|
|
297
304
|
name: e,
|
|
298
305
|
layout: "compact",
|
|
@@ -327,7 +334,7 @@ function pe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
|
|
|
327
334
|
size: "xs",
|
|
328
335
|
type: "error",
|
|
329
336
|
role: "alert",
|
|
330
|
-
children: h.error ??
|
|
337
|
+
children: h.error ?? Y.error
|
|
331
338
|
})
|
|
332
339
|
}),
|
|
333
340
|
g && /* @__PURE__ */ N(T, {
|
|
@@ -352,17 +359,17 @@ function pe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
|
|
|
352
359
|
]
|
|
353
360
|
});
|
|
354
361
|
}
|
|
355
|
-
|
|
362
|
+
ge.displayName = "AiAttachment";
|
|
356
363
|
//#endregion
|
|
357
364
|
//#region src/components/blocks/ai/ai-agent/types.ts
|
|
358
|
-
var
|
|
365
|
+
var _e = { statusLabels: {
|
|
359
366
|
idle: "Idle",
|
|
360
367
|
thinking: "Thinking",
|
|
361
368
|
working: "Working",
|
|
362
369
|
done: "Done",
|
|
363
370
|
error: "Error",
|
|
364
371
|
offline: "Offline"
|
|
365
|
-
} },
|
|
372
|
+
} }, ve = {
|
|
366
373
|
idle: "secondary",
|
|
367
374
|
thinking: "info",
|
|
368
375
|
working: "info",
|
|
@@ -370,13 +377,13 @@ var me = { statusLabels: {
|
|
|
370
377
|
error: "destructive",
|
|
371
378
|
offline: "secondary"
|
|
372
379
|
};
|
|
373
|
-
function
|
|
374
|
-
let h = t(
|
|
375
|
-
icon: r ??
|
|
380
|
+
function ye({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", status: l, variant: d = "inline", trailing: f, className: p, strings: m }) {
|
|
381
|
+
let h = t(_e, m), g = a ?? /* @__PURE__ */ N(_, {
|
|
382
|
+
icon: r ?? I,
|
|
376
383
|
tone: s,
|
|
377
384
|
size: d === "card" ? "md" : "sm"
|
|
378
385
|
}), y = l === "thinking" || l === "working", b = !!l && /* @__PURE__ */ N(v, {
|
|
379
|
-
tone:
|
|
386
|
+
tone: ve[l],
|
|
380
387
|
dot: !0,
|
|
381
388
|
pulse: y,
|
|
382
389
|
children: h.statusLabels[l]
|
|
@@ -447,16 +454,16 @@ function ge({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", sta
|
|
|
447
454
|
]
|
|
448
455
|
});
|
|
449
456
|
}
|
|
450
|
-
|
|
457
|
+
ye.displayName = "AiAgent";
|
|
451
458
|
//#endregion
|
|
452
459
|
//#region src/components/blocks/ai/ai-confirmation/types.ts
|
|
453
|
-
var
|
|
460
|
+
var be = {
|
|
454
461
|
approve: "Approve",
|
|
455
462
|
reject: "Reject",
|
|
456
463
|
pending: "Awaiting your approval",
|
|
457
464
|
approved: "Approved",
|
|
458
465
|
rejected: "Rejected"
|
|
459
|
-
},
|
|
466
|
+
}, xe = {
|
|
460
467
|
neutral: { icon: "neutral" },
|
|
461
468
|
destructive: {
|
|
462
469
|
ring: `${l.destructive.edge} ${l.destructive.wash}`,
|
|
@@ -475,8 +482,8 @@ var _e = {
|
|
|
475
482
|
icon: "primary"
|
|
476
483
|
}
|
|
477
484
|
};
|
|
478
|
-
function
|
|
479
|
-
let b = t(
|
|
485
|
+
function Se({ title: e, description: a, icon: o, tone: s = "neutral", status: l = "pending", onApprove: f, onReject: p, approveLabel: m, rejectLabel: h, details: g, className: v, strings: y }) {
|
|
486
|
+
let b = t(be, y), x = o, S = xe[s];
|
|
480
487
|
return /* @__PURE__ */ N(u, {
|
|
481
488
|
role: "region",
|
|
482
489
|
"aria-live": "polite",
|
|
@@ -537,7 +544,7 @@ function ye({ title: e, description: a, icon: o, tone: s = "neutral", status: l
|
|
|
537
544
|
})]
|
|
538
545
|
}) : /* @__PURE__ */ N("div", {
|
|
539
546
|
className: "ai-confirmation--footer flex items-center gap-space-md",
|
|
540
|
-
children: l === "approved" ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(
|
|
547
|
+
children: l === "approved" ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(L, {
|
|
541
548
|
"aria-hidden": "true",
|
|
542
549
|
className: "size-icon-md text-success"
|
|
543
550
|
}), /* @__PURE__ */ N(i, {
|
|
@@ -558,10 +565,10 @@ function ye({ title: e, description: a, icon: o, tone: s = "neutral", status: l
|
|
|
558
565
|
})
|
|
559
566
|
});
|
|
560
567
|
}
|
|
561
|
-
|
|
568
|
+
Se.displayName = "AiConfirmation";
|
|
562
569
|
//#endregion
|
|
563
570
|
//#region src/components/blocks/ai/ai-sources/types.ts
|
|
564
|
-
var
|
|
571
|
+
var Ce = {
|
|
565
572
|
title: "{{count}} sources",
|
|
566
573
|
expand: "Show all sources",
|
|
567
574
|
collapse: "Hide sources",
|
|
@@ -569,26 +576,24 @@ var be = {
|
|
|
569
576
|
};
|
|
570
577
|
//#endregion
|
|
571
578
|
//#region src/components/blocks/ai/ai-sources/ai-sources.tsx
|
|
572
|
-
function
|
|
579
|
+
function we(e, t) {
|
|
573
580
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
574
581
|
let r = t[n];
|
|
575
582
|
return r === void 0 ? e : String(r);
|
|
576
583
|
});
|
|
577
584
|
}
|
|
578
|
-
function
|
|
579
|
-
let g = e(
|
|
580
|
-
s === void 0 &&
|
|
581
|
-
},
|
|
582
|
-
|
|
585
|
+
function Te({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, defaultExpanded: l = !1, onExpandedChange: d, onSelect: p, className: m, strings: h }) {
|
|
586
|
+
let g = e(Ce, h), _ = k(), v = k(), [y, b] = j(l), x = s ?? y, S = (e) => {
|
|
587
|
+
s === void 0 && b(e), d?.(e);
|
|
588
|
+
}, C = we(g.title, { count: t.length });
|
|
589
|
+
return a === "avatars" ? /* @__PURE__ */ N(Ee, {
|
|
583
590
|
sources: t,
|
|
584
591
|
max: o,
|
|
585
|
-
title:
|
|
592
|
+
title: C,
|
|
586
593
|
visitLabel: g.visit,
|
|
587
594
|
onSelect: p,
|
|
588
595
|
className: n("ai-sources--component", m)
|
|
589
|
-
})
|
|
590
|
-
let S = y ? t : t.slice(0, 0);
|
|
591
|
-
return /* @__PURE__ */ P(u, {
|
|
596
|
+
}) : /* @__PURE__ */ P(u, {
|
|
592
597
|
surface: "card",
|
|
593
598
|
padding: "none",
|
|
594
599
|
className: n("ai-sources--component", m),
|
|
@@ -597,27 +602,33 @@ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
|
|
|
597
602
|
tone: "secondary",
|
|
598
603
|
buttonStyle: "ghost",
|
|
599
604
|
size: "md",
|
|
600
|
-
onClick: () =>
|
|
601
|
-
"aria-expanded":
|
|
602
|
-
"aria-
|
|
603
|
-
|
|
605
|
+
onClick: () => S(!x),
|
|
606
|
+
"aria-expanded": x,
|
|
607
|
+
"aria-controls": v,
|
|
608
|
+
"aria-labelledby": _,
|
|
609
|
+
"aria-description": x ? h?.collapse : h?.expand,
|
|
610
|
+
className: n("ai-sources--trigger h-auto min-h-0 w-full justify-start gap-space-md px-surface-xs py-row-y text-left", `rounded-radius ${f.rowHover}`),
|
|
604
611
|
children: [
|
|
605
|
-
/* @__PURE__ */ N(
|
|
612
|
+
/* @__PURE__ */ N(De, { sources: t.slice(0, 4) }),
|
|
606
613
|
/* @__PURE__ */ N(i, {
|
|
614
|
+
id: _,
|
|
615
|
+
tag: "span",
|
|
607
616
|
type: "inherit",
|
|
608
617
|
weight: "medium",
|
|
609
618
|
className: "flex-1",
|
|
610
|
-
children:
|
|
619
|
+
children: C
|
|
611
620
|
}),
|
|
612
|
-
N(
|
|
621
|
+
N(x ? R : z, { className: "size-icon-md text-muted-foreground" })
|
|
613
622
|
]
|
|
614
|
-
}),
|
|
623
|
+
}), /* @__PURE__ */ N("div", {
|
|
624
|
+
id: v,
|
|
625
|
+
hidden: !x,
|
|
615
626
|
className: "ai-sources--list border-t border-border/60 px-surface-xs py-row-y",
|
|
616
|
-
children: /* @__PURE__ */ N(c, {
|
|
627
|
+
children: x && /* @__PURE__ */ N(c, {
|
|
617
628
|
render: /* @__PURE__ */ N("ol", {}),
|
|
618
629
|
gap: "2xs",
|
|
619
630
|
className: "m-0 list-none p-0 font-sans",
|
|
620
|
-
children:
|
|
631
|
+
children: t.map((e, t) => /* @__PURE__ */ N(ke, {
|
|
621
632
|
source: e,
|
|
622
633
|
index: t + 1,
|
|
623
634
|
onSelect: p ? () => p(e, t) : void 0,
|
|
@@ -627,68 +638,68 @@ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
|
|
|
627
638
|
})]
|
|
628
639
|
});
|
|
629
640
|
}
|
|
630
|
-
|
|
631
|
-
function
|
|
641
|
+
Te.displayName = "AiSources";
|
|
642
|
+
function Ee({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, className: s }) {
|
|
632
643
|
let c = e.slice(0, t), l = e.length - c.length;
|
|
633
644
|
return /* @__PURE__ */ P("div", {
|
|
634
645
|
className: n("inline-flex items-center gap-space-md", s),
|
|
635
|
-
children: [
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}),
|
|
646
|
-
l > 0 && /* @__PURE__ */ P(p, {
|
|
647
|
-
size: "xs",
|
|
648
|
-
className: "tabular-nums",
|
|
649
|
-
children: ["+", /* @__PURE__ */ N(g, {
|
|
650
|
-
value: l,
|
|
651
|
-
size: "xs",
|
|
652
|
-
type: "secondary",
|
|
653
|
-
align: "left"
|
|
654
|
-
})]
|
|
655
|
-
})
|
|
656
|
-
]
|
|
646
|
+
children: [/* @__PURE__ */ N(De, {
|
|
647
|
+
sources: c,
|
|
648
|
+
onSelect: o,
|
|
649
|
+
visitLabel: a,
|
|
650
|
+
overflow: l
|
|
651
|
+
}), /* @__PURE__ */ N(i, {
|
|
652
|
+
size: "xs",
|
|
653
|
+
type: "secondary",
|
|
654
|
+
children: r
|
|
655
|
+
})]
|
|
657
656
|
});
|
|
658
657
|
}
|
|
659
|
-
function
|
|
660
|
-
return /* @__PURE__ */
|
|
661
|
-
className: n("flex", t ? "gap-space-2xs" : "-space-x-space-sm"),
|
|
662
|
-
children: e.map((e, n) => {
|
|
658
|
+
function De({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
|
|
659
|
+
return /* @__PURE__ */ P("div", {
|
|
660
|
+
className: n("flex items-center", t ? "gap-space-2xs" : "-space-x-space-sm"),
|
|
661
|
+
children: [e.map((e, n) => {
|
|
663
662
|
let i = /* @__PURE__ */ N("span", {
|
|
664
663
|
"aria-hidden": !0,
|
|
665
664
|
title: typeof e.title == "string" ? e.title : void 0,
|
|
666
665
|
className: "inline-flex size-icon-lg items-center justify-center overflow-hidden rounded-full border border-card bg-muted text-muted-foreground ring-1 ring-border/60",
|
|
667
|
-
children: /* @__PURE__ */ N(
|
|
666
|
+
children: /* @__PURE__ */ N(Oe, { src: e.faviconUrl })
|
|
668
667
|
}, e.id);
|
|
669
668
|
return t ? /* @__PURE__ */ N("button", {
|
|
670
669
|
type: "button",
|
|
671
670
|
onClick: () => t(e, n),
|
|
672
671
|
"aria-label": typeof e.title == "string" ? `${r}: ${e.title}` : r,
|
|
673
|
-
className: `${f.nativeButtonReset} inline-flex size-action-xs shrink-0 items-center justify-center rounded-
|
|
672
|
+
className: `${f.nativeButtonReset} inline-flex size-action-xs shrink-0 items-center justify-center rounded-radius focus-visible:outline-none ${s.edge}`,
|
|
674
673
|
children: i
|
|
675
674
|
}, e.id) : i;
|
|
676
|
-
})
|
|
675
|
+
}), i > 0 && /* @__PURE__ */ N("span", {
|
|
676
|
+
className: "ai-sources--overflow inline-flex size-icon-lg items-center justify-center overflow-hidden rounded-full border border-card bg-muted text-muted-foreground ring-1 ring-border/60",
|
|
677
|
+
children: /* @__PURE__ */ P(p, {
|
|
678
|
+
size: "xxs",
|
|
679
|
+
className: "tabular-nums",
|
|
680
|
+
children: ["+", /* @__PURE__ */ N(g, {
|
|
681
|
+
value: i,
|
|
682
|
+
size: "xxs",
|
|
683
|
+
type: "secondary",
|
|
684
|
+
align: "left"
|
|
685
|
+
})]
|
|
686
|
+
})
|
|
687
|
+
})]
|
|
677
688
|
});
|
|
678
689
|
}
|
|
679
|
-
function
|
|
690
|
+
function Oe({ src: e }) {
|
|
680
691
|
let [t, n] = j(!1);
|
|
681
|
-
return
|
|
692
|
+
return O(() => {
|
|
682
693
|
n(!1);
|
|
683
|
-
}, [e]), !e || t ? /* @__PURE__ */ N(
|
|
694
|
+
}, [e]), !e || t ? /* @__PURE__ */ N(se, { className: "size-icon-sm" }) : /* @__PURE__ */ N("img", {
|
|
684
695
|
src: e,
|
|
685
696
|
alt: "",
|
|
686
697
|
className: "size-full object-cover",
|
|
687
698
|
onError: () => n(!0)
|
|
688
699
|
});
|
|
689
700
|
}
|
|
690
|
-
function
|
|
691
|
-
let l = !!(e.url || r),
|
|
701
|
+
function ke({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
702
|
+
let l = k(), u = !!(e.url || r), d = n(f.nativeButtonReset, "group flex w-full items-start gap-space-lg rounded-radius px-row-x py-row-y-sm text-left text-foreground", u && `${f.rowHover} focus-visible:outline-none ${s.edge}`), p = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(_, {
|
|
692
703
|
tone: "neutral",
|
|
693
704
|
size: "sm",
|
|
694
705
|
"aria-hidden": !1,
|
|
@@ -705,10 +716,11 @@ function Ee({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
|
705
716
|
className: "min-w-0 flex-1",
|
|
706
717
|
children: [
|
|
707
718
|
/* @__PURE__ */ P(i, {
|
|
719
|
+
id: l,
|
|
708
720
|
type: "inherit",
|
|
709
721
|
weight: "medium",
|
|
710
722
|
className: "truncate",
|
|
711
|
-
children: [e.title, !!e.url && /* @__PURE__ */ N(
|
|
723
|
+
children: [e.title, !!e.url && /* @__PURE__ */ N(ae, { className: "ml-1 inline size-icon-sm text-muted-foreground align-baseline" })]
|
|
712
724
|
}),
|
|
713
725
|
!!e.publisher && /* @__PURE__ */ N(i, {
|
|
714
726
|
size: "xs",
|
|
@@ -730,23 +742,25 @@ function Ee({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
|
730
742
|
rel: "noopener noreferrer",
|
|
731
743
|
size: "inherit",
|
|
732
744
|
underline: !1,
|
|
733
|
-
className:
|
|
734
|
-
"aria-
|
|
735
|
-
|
|
745
|
+
className: d,
|
|
746
|
+
"aria-labelledby": l,
|
|
747
|
+
"aria-description": a,
|
|
748
|
+
children: p
|
|
736
749
|
}) : r ? /* @__PURE__ */ N("button", {
|
|
737
750
|
type: "button",
|
|
738
751
|
onClick: r,
|
|
739
|
-
className: n(
|
|
740
|
-
"aria-
|
|
741
|
-
|
|
752
|
+
className: n(d, "h-auto justify-start whitespace-normal"),
|
|
753
|
+
"aria-labelledby": l,
|
|
754
|
+
"aria-description": e.url ? a : void 0,
|
|
755
|
+
children: p
|
|
742
756
|
}) : /* @__PURE__ */ N("span", {
|
|
743
|
-
className:
|
|
744
|
-
children:
|
|
757
|
+
className: d,
|
|
758
|
+
children: p
|
|
745
759
|
}) });
|
|
746
760
|
}
|
|
747
761
|
//#endregion
|
|
748
762
|
//#region src/components/blocks/ai/ai-reasoning/types.ts
|
|
749
|
-
var
|
|
763
|
+
var Ae = {
|
|
750
764
|
thinking: "Thinking…",
|
|
751
765
|
thoughtFor: "Thought for {{duration}}",
|
|
752
766
|
thoughtDone: "Reasoning complete",
|
|
@@ -755,7 +769,7 @@ var De = {
|
|
|
755
769
|
};
|
|
756
770
|
//#endregion
|
|
757
771
|
//#region src/components/blocks/ai/ai-reasoning/ai-reasoning.tsx
|
|
758
|
-
function
|
|
772
|
+
function je(e, t) {
|
|
759
773
|
let n = e.split(/\{\{\s*duration\s*\}\}/);
|
|
760
774
|
return n.length === 1 ? e : /* @__PURE__ */ P(M, { children: [
|
|
761
775
|
n[0],
|
|
@@ -767,26 +781,23 @@ function Oe(e, t) {
|
|
|
767
781
|
n.slice(1).join("{{duration}}")
|
|
768
782
|
] });
|
|
769
783
|
}
|
|
770
|
-
function
|
|
771
|
-
let m = t(
|
|
772
|
-
l === void 0 &&
|
|
784
|
+
function Me({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStreaming: s = !0, defaultExpanded: c = !1, expanded: l, onExpandedChange: u, className: d, strings: p }) {
|
|
785
|
+
let m = t(Ae, p), h = k(), g = k(), [_, v] = j(c), y = l ?? _, b = (e) => {
|
|
786
|
+
l === void 0 && v(e), u?.(e);
|
|
773
787
|
};
|
|
774
|
-
|
|
775
|
-
a && s && !
|
|
788
|
+
O(() => {
|
|
789
|
+
a && s && !y && b(!0), !a && s && y && !c && l === void 0 && b(!1);
|
|
776
790
|
}, [a]);
|
|
777
|
-
let
|
|
778
|
-
|
|
779
|
-
children: m.thinking
|
|
780
|
-
}) : o === void 0 ? /* @__PURE__ */ N(i, {
|
|
791
|
+
let x = a ? /* @__PURE__ */ N(J, { children: m.thinking }) : o === void 0 ? /* @__PURE__ */ N(i, {
|
|
792
|
+
tag: "span",
|
|
781
793
|
type: "inherit",
|
|
782
794
|
weight: "medium",
|
|
783
|
-
className: "flex-1",
|
|
784
795
|
children: m.thoughtDone
|
|
785
796
|
}) : /* @__PURE__ */ N(i, {
|
|
797
|
+
tag: "span",
|
|
786
798
|
type: "inherit",
|
|
787
799
|
weight: "medium",
|
|
788
|
-
|
|
789
|
-
children: Oe(m.thoughtFor, o)
|
|
800
|
+
children: je(m.thoughtFor, o)
|
|
790
801
|
});
|
|
791
802
|
return /* @__PURE__ */ P("div", {
|
|
792
803
|
className: n("ai-reasoning--component", "overflow-hidden rounded-radius border border-border/60 bg-muted/30", d),
|
|
@@ -795,18 +806,26 @@ function Q({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
|
|
|
795
806
|
tone: "secondary",
|
|
796
807
|
buttonStyle: "ghost",
|
|
797
808
|
size: "md",
|
|
798
|
-
onClick: () =>
|
|
799
|
-
"aria-expanded":
|
|
800
|
-
"aria-
|
|
809
|
+
onClick: () => b(!y),
|
|
810
|
+
"aria-expanded": y,
|
|
811
|
+
"aria-controls": g,
|
|
812
|
+
"aria-labelledby": h,
|
|
813
|
+
"aria-description": y ? p?.collapseAria : p?.expandAria,
|
|
801
814
|
className: n("ai-reasoning--trigger h-auto min-h-0 w-full justify-start gap-space-md rounded-none px-surface-xs py-row-y text-left", f.rowHover),
|
|
802
815
|
children: [
|
|
803
816
|
/* @__PURE__ */ N(te, { className: "size-icon-md text-muted-foreground" }),
|
|
804
|
-
|
|
805
|
-
|
|
817
|
+
/* @__PURE__ */ N("span", {
|
|
818
|
+
id: h,
|
|
819
|
+
className: "flex-1",
|
|
820
|
+
children: x
|
|
821
|
+
}),
|
|
822
|
+
N(y ? R : z, { className: "size-icon-md text-muted-foreground" })
|
|
806
823
|
]
|
|
807
|
-
}),
|
|
824
|
+
}), /* @__PURE__ */ N("div", {
|
|
825
|
+
id: g,
|
|
826
|
+
hidden: !y,
|
|
808
827
|
className: "ai-reasoning--body border-t border-border/60 p-surface-xs",
|
|
809
|
-
children: typeof e == "string" ? /* @__PURE__ */ N(i, {
|
|
828
|
+
children: y && (typeof e == "string" ? /* @__PURE__ */ N(i, {
|
|
810
829
|
type: "secondary",
|
|
811
830
|
lineHeight: "relaxed",
|
|
812
831
|
className: "whitespace-pre-wrap",
|
|
@@ -814,17 +833,17 @@ function Q({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
|
|
|
814
833
|
}) : /* @__PURE__ */ N("div", {
|
|
815
834
|
className: "whitespace-pre-wrap",
|
|
816
835
|
children: e
|
|
817
|
-
})
|
|
836
|
+
}))
|
|
818
837
|
})]
|
|
819
838
|
});
|
|
820
839
|
}
|
|
821
|
-
|
|
840
|
+
Me.displayName = "AiReasoning";
|
|
822
841
|
//#endregion
|
|
823
842
|
//#region src/components/blocks/ai/ai-chain-of-thought/types.ts
|
|
824
|
-
var
|
|
843
|
+
var Ne = {
|
|
825
844
|
title: "Reasoning",
|
|
826
845
|
streamingHint: "Working through the steps…"
|
|
827
|
-
},
|
|
846
|
+
}, Pe = {
|
|
828
847
|
pending: {
|
|
829
848
|
icon: ne,
|
|
830
849
|
tone: "neutral"
|
|
@@ -835,7 +854,7 @@ var ke = {
|
|
|
835
854
|
spin: !0
|
|
836
855
|
},
|
|
837
856
|
completed: {
|
|
838
|
-
icon:
|
|
857
|
+
icon: L,
|
|
839
858
|
tone: "success",
|
|
840
859
|
solid: !0
|
|
841
860
|
},
|
|
@@ -845,8 +864,8 @@ var ke = {
|
|
|
845
864
|
solid: !0
|
|
846
865
|
}
|
|
847
866
|
};
|
|
848
|
-
function
|
|
849
|
-
let d = t(
|
|
867
|
+
function Fe({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, strings: l }) {
|
|
868
|
+
let d = t(Ne, l);
|
|
850
869
|
return /* @__PURE__ */ N(u, {
|
|
851
870
|
surface: "card",
|
|
852
871
|
className: n("ai-chain-of-thought--component", s),
|
|
@@ -867,7 +886,7 @@ function je({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
|
|
|
867
886
|
}), /* @__PURE__ */ N("ol", {
|
|
868
887
|
className: "ai-chain-of-thought--body m-0 list-none p-0 font-sans",
|
|
869
888
|
children: e.map((t, r) => {
|
|
870
|
-
let a = t.status ?? "pending", o =
|
|
889
|
+
let a = t.status ?? "pending", o = Pe[a], s = t.icon ?? o.icon, l = r === e.length - 1;
|
|
871
890
|
return /* @__PURE__ */ P("li", {
|
|
872
891
|
className: "ai-chain-of-thought--step flex gap-space-lg",
|
|
873
892
|
children: [/* @__PURE__ */ P("span", {
|
|
@@ -904,10 +923,10 @@ function je({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
|
|
|
904
923
|
})
|
|
905
924
|
});
|
|
906
925
|
}
|
|
907
|
-
|
|
926
|
+
Fe.displayName = "AiChainOfThought";
|
|
908
927
|
//#endregion
|
|
909
928
|
//#region src/components/blocks/ai/ai-task/types.ts
|
|
910
|
-
var
|
|
929
|
+
var Ie = {
|
|
911
930
|
statusLabels: {
|
|
912
931
|
queued: "Queued",
|
|
913
932
|
running: "Running",
|
|
@@ -918,7 +937,7 @@ var Me = {
|
|
|
918
937
|
},
|
|
919
938
|
collapseSubtasks: "Collapse subtasks",
|
|
920
939
|
expandSubtasks: "Expand subtasks"
|
|
921
|
-
},
|
|
940
|
+
}, Le = {
|
|
922
941
|
queued: {
|
|
923
942
|
icon: ne,
|
|
924
943
|
cls: "text-muted-foreground"
|
|
@@ -929,7 +948,7 @@ var Me = {
|
|
|
929
948
|
spin: !0
|
|
930
949
|
},
|
|
931
950
|
completed: {
|
|
932
|
-
icon:
|
|
951
|
+
icon: L,
|
|
933
952
|
cls: "text-success"
|
|
934
953
|
},
|
|
935
954
|
failed: {
|
|
@@ -937,14 +956,14 @@ var Me = {
|
|
|
937
956
|
cls: "text-destructive"
|
|
938
957
|
},
|
|
939
958
|
cancelled: {
|
|
940
|
-
icon:
|
|
959
|
+
icon: de,
|
|
941
960
|
cls: "text-muted-foreground"
|
|
942
961
|
},
|
|
943
962
|
skipped: {
|
|
944
|
-
icon:
|
|
963
|
+
icon: ce,
|
|
945
964
|
cls: "text-muted-foreground"
|
|
946
965
|
}
|
|
947
|
-
},
|
|
966
|
+
}, Re = {
|
|
948
967
|
queued: "secondary",
|
|
949
968
|
running: "info",
|
|
950
969
|
completed: "success",
|
|
@@ -952,87 +971,119 @@ var Me = {
|
|
|
952
971
|
cancelled: "secondary",
|
|
953
972
|
skipped: "secondary"
|
|
954
973
|
};
|
|
955
|
-
function
|
|
956
|
-
let s = t(
|
|
974
|
+
function ze({ task: e, density: r = "compact", indent: i = 18, className: a, strings: o }) {
|
|
975
|
+
let s = t(Ie, o), c = {
|
|
976
|
+
status: Z(e, (e) => X(e.status ?? "queued")),
|
|
977
|
+
slot: Z(e, (e) => e.rightSlot != null && e.rightSlot !== !1)
|
|
978
|
+
};
|
|
957
979
|
return /* @__PURE__ */ N(u, {
|
|
958
980
|
surface: "card",
|
|
959
981
|
padding: "none",
|
|
960
982
|
className: n("ai-task--component", a),
|
|
961
|
-
children: /* @__PURE__ */ N(
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
983
|
+
children: /* @__PURE__ */ N("div", {
|
|
984
|
+
className: n("ai-task--rows grid gap-x-space-md", Be[Number(c.status) + Number(c.slot)]),
|
|
985
|
+
children: /* @__PURE__ */ N(Ve, {
|
|
986
|
+
item: e,
|
|
987
|
+
depth: 0,
|
|
988
|
+
density: r,
|
|
989
|
+
indent: i,
|
|
990
|
+
columns: c,
|
|
991
|
+
strings: s
|
|
992
|
+
})
|
|
967
993
|
})
|
|
968
994
|
});
|
|
969
995
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
996
|
+
function X(e) {
|
|
997
|
+
return e !== "completed";
|
|
998
|
+
}
|
|
999
|
+
function Z(e, t) {
|
|
1000
|
+
return t(e) || !!e.children?.some((e) => Z(e, t));
|
|
1001
|
+
}
|
|
1002
|
+
var Be = [
|
|
1003
|
+
"grid-cols-1",
|
|
1004
|
+
"grid-cols-[minmax(0,1fr)_auto]",
|
|
1005
|
+
"grid-cols-[minmax(0,1fr)_auto_auto]"
|
|
1006
|
+
];
|
|
1007
|
+
ze.displayName = "AiTask";
|
|
1008
|
+
function Ve({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }) {
|
|
1009
|
+
let l = e.status ?? "queued", u = Le[l], d = e.icon ?? u.icon, f = !!e.children?.length, [p, m] = j(a === "expanded" || t === 0), h = l === "queued" || l === "cancelled" || l === "skipped";
|
|
973
1010
|
return /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("div", {
|
|
974
|
-
className: n("ai-task--row grid grid-cols-
|
|
975
|
-
style: { paddingInlineStart: `calc(var(--row-x) * var(--space-scale) + ${t * o}px)` },
|
|
1011
|
+
className: n("ai-task--row col-span-full grid grid-cols-subgrid items-start px-row-x py-row-y", t > 0 && "border-t border-border/60"),
|
|
976
1012
|
children: [
|
|
977
|
-
/* @__PURE__ */ P("span", {
|
|
978
|
-
className: "ai-task--marker flex items-center gap-space-md",
|
|
979
|
-
children: [d ? /* @__PURE__ */ N(r, {
|
|
980
|
-
type: "button",
|
|
981
|
-
tone: "secondary",
|
|
982
|
-
buttonStyle: "ghost",
|
|
983
|
-
size: "sm",
|
|
984
|
-
iconOnly: !0,
|
|
985
|
-
onClick: () => p((e) => !e),
|
|
986
|
-
"aria-expanded": f,
|
|
987
|
-
"aria-label": f ? s.collapseSubtasks : s.expandSubtasks,
|
|
988
|
-
className: "ai-task--toggle",
|
|
989
|
-
children: N(f ? L : R, {
|
|
990
|
-
"aria-hidden": "true",
|
|
991
|
-
className: "size-icon-md"
|
|
992
|
-
})
|
|
993
|
-
}) : t > 0 && /* @__PURE__ */ N("span", {
|
|
994
|
-
"aria-hidden": !0,
|
|
995
|
-
className: "w-action-sm shrink-0"
|
|
996
|
-
}), /* @__PURE__ */ N(u, {
|
|
997
|
-
"aria-hidden": "true",
|
|
998
|
-
className: n("size-icon-md shrink-0", l.cls, l.spin && "animate-spin")
|
|
999
|
-
})]
|
|
1000
|
-
}),
|
|
1001
1013
|
/* @__PURE__ */ P("div", {
|
|
1002
|
-
className: "
|
|
1014
|
+
className: "ai-task--lead grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-space-md gap-y-space-md",
|
|
1015
|
+
style: t > 0 ? { paddingInlineStart: `${t * o}px` } : void 0,
|
|
1003
1016
|
children: [
|
|
1017
|
+
/* @__PURE__ */ P("span", {
|
|
1018
|
+
className: "ai-task--marker flex min-h-action-sm items-center gap-space-md",
|
|
1019
|
+
children: [f ? /* @__PURE__ */ N(r, {
|
|
1020
|
+
type: "button",
|
|
1021
|
+
tone: "secondary",
|
|
1022
|
+
buttonStyle: "ghost",
|
|
1023
|
+
size: "sm",
|
|
1024
|
+
iconOnly: !0,
|
|
1025
|
+
onClick: () => m((e) => !e),
|
|
1026
|
+
"aria-expanded": p,
|
|
1027
|
+
"aria-label": p ? c.collapseSubtasks : c.expandSubtasks,
|
|
1028
|
+
className: "ai-task--toggle",
|
|
1029
|
+
children: N(p ? R : z, {
|
|
1030
|
+
"aria-hidden": "true",
|
|
1031
|
+
className: "size-icon-md"
|
|
1032
|
+
})
|
|
1033
|
+
}) : t > 0 && /* @__PURE__ */ N("span", {
|
|
1034
|
+
"aria-hidden": !0,
|
|
1035
|
+
className: "w-action-sm shrink-0"
|
|
1036
|
+
}), /* @__PURE__ */ N(d, {
|
|
1037
|
+
"aria-hidden": "true",
|
|
1038
|
+
className: n("size-icon-md shrink-0", u.cls, u.spin && "animate-spin")
|
|
1039
|
+
})]
|
|
1040
|
+
}),
|
|
1004
1041
|
/* @__PURE__ */ N(i, {
|
|
1005
|
-
weight:
|
|
1006
|
-
type:
|
|
1007
|
-
className: n("
|
|
1042
|
+
weight: l === "running" ? "semibold" : "medium",
|
|
1043
|
+
type: h ? "secondary" : "inherit",
|
|
1044
|
+
className: n("ai-task--title min-w-0 truncate", l === "cancelled" && "line-through"),
|
|
1008
1045
|
children: e.title
|
|
1009
1046
|
}),
|
|
1010
|
-
/* @__PURE__ */ N(
|
|
1011
|
-
|
|
1012
|
-
children:
|
|
1013
|
-
}),
|
|
1014
|
-
!!e.rightSlot && /* @__PURE__ */ N("span", {
|
|
1015
|
-
className: "tabular-nums text-muted-foreground",
|
|
1016
|
-
children: e.rightSlot
|
|
1047
|
+
!!e.body && /* @__PURE__ */ N("div", {
|
|
1048
|
+
className: "ai-task--body col-start-2 min-w-0",
|
|
1049
|
+
children: e.body
|
|
1017
1050
|
})
|
|
1018
1051
|
]
|
|
1019
1052
|
}),
|
|
1020
|
-
|
|
1021
|
-
className: "ai-task--
|
|
1022
|
-
children:
|
|
1053
|
+
s.status && /* @__PURE__ */ N("span", {
|
|
1054
|
+
className: "ai-task--status flex min-h-action-sm items-center justify-end",
|
|
1055
|
+
children: X(l) ? /* @__PURE__ */ N(v, {
|
|
1056
|
+
tone: Re[l],
|
|
1057
|
+
children: c.statusLabels[l]
|
|
1058
|
+
}) : /* @__PURE__ */ N("span", {
|
|
1059
|
+
className: "sr-only",
|
|
1060
|
+
children: c.statusLabels[l]
|
|
1061
|
+
})
|
|
1062
|
+
}),
|
|
1063
|
+
!s.status && !X(l) && /* @__PURE__ */ N("span", {
|
|
1064
|
+
className: "sr-only",
|
|
1065
|
+
children: c.statusLabels[l]
|
|
1066
|
+
}),
|
|
1067
|
+
s.slot && /* @__PURE__ */ N("span", {
|
|
1068
|
+
className: "ai-task--slot flex min-h-action-sm items-center justify-end tabular-nums text-muted-foreground",
|
|
1069
|
+
children: e.rightSlot
|
|
1023
1070
|
})
|
|
1024
1071
|
]
|
|
1025
|
-
}),
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1072
|
+
}), f && p && /* @__PURE__ */ N("div", {
|
|
1073
|
+
className: "ai-task--children col-span-full grid grid-cols-subgrid",
|
|
1074
|
+
children: e.children.map((e) => /* @__PURE__ */ N(Ve, {
|
|
1075
|
+
item: e,
|
|
1076
|
+
depth: t + 1,
|
|
1077
|
+
density: a,
|
|
1078
|
+
indent: o,
|
|
1079
|
+
columns: s,
|
|
1080
|
+
strings: c
|
|
1081
|
+
}, e.id))
|
|
1082
|
+
})] });
|
|
1032
1083
|
}
|
|
1033
1084
|
//#endregion
|
|
1034
1085
|
//#region src/components/blocks/ai/ai-artifact/types.ts
|
|
1035
|
-
var
|
|
1086
|
+
var Q = {
|
|
1036
1087
|
openAria: "Open artifact",
|
|
1037
1088
|
copy: "Copy",
|
|
1038
1089
|
copied: "Copied",
|
|
@@ -1043,8 +1094,8 @@ var $ = {
|
|
|
1043
1094
|
};
|
|
1044
1095
|
//#endregion
|
|
1045
1096
|
//#region src/components/blocks/ai/ai-artifact/ai-artifact.tsx
|
|
1046
|
-
function
|
|
1047
|
-
let y = t(
|
|
1097
|
+
function $({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapsed: d = !1, onOpen: f, actions: p, onDownload: m, onCopyError: h, className: g, strings: v }) {
|
|
1098
|
+
let y = t(Q, v), b = o ?? oe, { copied: x, failed: S, copy: C } = H(h, s);
|
|
1048
1099
|
return /* @__PURE__ */ P(u, {
|
|
1049
1100
|
surface: "card",
|
|
1050
1101
|
padding: "none",
|
|
@@ -1100,7 +1151,7 @@ function Le({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1100
1151
|
onClick: async () => {
|
|
1101
1152
|
s && await C(s);
|
|
1102
1153
|
},
|
|
1103
|
-
children: x ? /* @__PURE__ */ N(
|
|
1154
|
+
children: x ? /* @__PURE__ */ N(L, { className: "size-icon-md text-success" }) : /* @__PURE__ */ N(re, { className: "size-icon-md" })
|
|
1104
1155
|
}),
|
|
1105
1156
|
!!m && /* @__PURE__ */ N(r, {
|
|
1106
1157
|
type: "button",
|
|
@@ -1120,14 +1171,14 @@ function Le({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1120
1171
|
iconOnly: !0,
|
|
1121
1172
|
"aria-label": y.openAria,
|
|
1122
1173
|
onClick: f,
|
|
1123
|
-
children: /* @__PURE__ */ N(
|
|
1174
|
+
children: /* @__PURE__ */ N(ae, { className: "size-icon-md" })
|
|
1124
1175
|
})
|
|
1125
1176
|
]
|
|
1126
1177
|
})]
|
|
1127
1178
|
})
|
|
1128
1179
|
}),
|
|
1129
1180
|
!d && !!l && /* @__PURE__ */ N("div", {
|
|
1130
|
-
className: "ai-artifact--body min-w-0",
|
|
1181
|
+
className: "ai-artifact--body min-w-0 [&>.code-block--component]:rounded-none [&>.code-block--component]:border-0",
|
|
1131
1182
|
children: l
|
|
1132
1183
|
}),
|
|
1133
1184
|
S && /* @__PURE__ */ N("div", {
|
|
@@ -1136,14 +1187,14 @@ function Le({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1136
1187
|
role: "alert",
|
|
1137
1188
|
size: "xs",
|
|
1138
1189
|
type: "error",
|
|
1139
|
-
children: y.copyError ??
|
|
1190
|
+
children: y.copyError ?? Q.copyError
|
|
1140
1191
|
})
|
|
1141
1192
|
})
|
|
1142
1193
|
]
|
|
1143
1194
|
});
|
|
1144
1195
|
}
|
|
1145
|
-
|
|
1196
|
+
$.displayName = "AiArtifact";
|
|
1146
1197
|
//#endregion
|
|
1147
|
-
export { U as C, W as S,
|
|
1198
|
+
export { U as C, W as S, he as _, Fe as a, K as b, Ae as c, Se as d, be as f, Y as g, ge as h, Ie as i, Te as l, _e as m, Q as n, Ne as o, ye as p, ze as r, Me as s, $ as t, Ce as u, me as v, G as x, J as y };
|
|
1148
1199
|
|
|
1149
|
-
//# sourceMappingURL=ai-artifact-
|
|
1200
|
+
//# sourceMappingURL=ai-artifact-CGGpQryR.js.map
|