themelia-react-ui 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +135 -0
- package/README.md +113 -18
- package/dist/{accordion-96o0pN62.js → accordion-B9MHG0cT.js} +11 -11
- package/dist/accordion-B9MHG0cT.js.map +1 -0
- package/dist/{action-menu-CHgs8vmj.js → action-menu-Dr8K-ghE.js} +48 -45
- package/dist/action-menu-Dr8K-ghE.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-C58tQcBy.js} +210 -174
- package/dist/ai-artifact-C58tQcBy.js.map +1 -0
- package/dist/app-shell-B_IuNWOo.js +321 -0
- package/dist/app-shell-B_IuNWOo.js.map +1 -0
- package/dist/{attachment-DkoqHPPl.js → attachment-Dg_69lPS.js} +9 -9
- package/dist/{attachment-DkoqHPPl.js.map → attachment-Dg_69lPS.js.map} +1 -1
- package/dist/{auth-D2FVZ1MH.js → auth-DTkkshS8.js} +43 -46
- package/dist/auth-DTkkshS8.js.map +1 -0
- package/dist/{avatar-DWO_HHhB.js → avatar-CeZaFmNH.js} +8 -8
- package/dist/avatar-CeZaFmNH.js.map +1 -0
- package/dist/{badge-DErMA7ul.js → badge-xIiV_E7f.js} +5 -5
- package/dist/{badge-DErMA7ul.js.map → badge-xIiV_E7f.js.map} +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +2 -372
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +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 +12 -12
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +7 -7
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +4 -4
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +36 -36
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-CdfIkCsV.js → batch-action-bar-Cb8cuvyy.js} +6 -6
- package/dist/batch-action-bar-Cb8cuvyy.js.map +1 -0
- package/dist/blocks/admin.js +21 -21
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +230 -216
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +325 -306
- 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 +1259 -1184
- 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-J-K2kl4c.js} +6 -6
- package/dist/{breadcrumbs-B-WFKecD.js.map → breadcrumbs-J-K2kl4c.js.map} +1 -1
- package/dist/{button-DkmK-z8E.js → button-S2Cubiiz.js} +3 -3
- package/dist/button-S2Cubiiz.js.map +1 -0
- package/dist/{buttons-BbfzgczK.js → buttons-BedGfygC.js} +16 -16
- package/dist/buttons-BedGfygC.js.map +1 -0
- package/dist/cards-rNX1M4Xn.js +69 -0
- package/dist/cards-rNX1M4Xn.js.map +1 -0
- package/dist/cascader-B1MiqkBq.js +439 -0
- package/dist/cascader-B1MiqkBq.js.map +1 -0
- package/dist/chart-Darg_0Kv.js +162 -0
- package/dist/chart-Darg_0Kv.js.map +1 -0
- package/dist/{checkbox-CzYUTPeJ.js → checkbox-fflqmODR.js} +2 -2
- package/dist/{checkbox-CzYUTPeJ.js.map → checkbox-fflqmODR.js.map} +1 -1
- package/dist/{choice-inputs-JLtij2y4.js → choice-inputs-zUgBZfE4.js} +258 -257
- package/dist/choice-inputs-zUgBZfE4.js.map +1 -0
- package/dist/{code-block-CGNaUtAE.js → code-block-BzmM9Eig.js} +8 -8
- package/dist/code-block-BzmM9Eig.js.map +1 -0
- package/dist/{collapsible-Do4G0zcC.js → collapsible-BkAI_XD4.js} +5 -5
- package/dist/{collapsible-Do4G0zcC.js.map → collapsible-BkAI_XD4.js.map} +1 -1
- package/dist/{collection-content-C0e8SsTm.js → collection-content-gDh1v6O4.js} +3 -3
- package/dist/{collection-content-C0e8SsTm.js.map → collection-content-gDh1v6O4.js.map} +1 -1
- package/dist/combobox-BEx0vJgF.js +362 -0
- package/dist/combobox-BEx0vJgF.js.map +1 -0
- package/dist/{combobox-CBJDs6w_.js → combobox-BwzoXFSG.js} +254 -247
- package/dist/combobox-BwzoXFSG.js.map +1 -0
- package/dist/{command-D8NrBj-b.js → command-CrlPIL6m.js} +11 -11
- package/dist/command-CrlPIL6m.js.map +1 -0
- package/dist/{comments-Di4w0H_S.js → comments-Dmpp0YIc.js} +29 -29
- package/dist/{comments-Di4w0H_S.js.map → comments-Dmpp0YIc.js.map} +1 -1
- 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 +1 -1
- package/dist/components/base/combobox/index.d.ts +4 -2
- package/dist/components/base/feedback/alert.d.ts +1 -1
- 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 +4 -0
- 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/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/sheet/sheet.d.ts +2 -0
- package/dist/components/base/sidebar/index.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts +27 -5
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +3 -1
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
- package/dist/components/blocks/commerce/index.d.ts +7 -6
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
- package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
- package/dist/components/features/activities/activities.types.d.ts +8 -2
- package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
- package/dist/components/features/event-calendar/colors.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
- package/dist/components/features/filters/filters.strings.d.ts +4 -0
- package/dist/components/features/filters/filters.types.d.ts +3 -0
- package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
- package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +21 -3
- package/dist/components/features/global-search/global-search.types.d.ts +2 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
- package/dist/components/features/media-library/media-library.types.d.ts +14 -4
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/products.strings.d.ts +9 -1
- package/dist/components/features/products/products.types.d.ts +43 -6
- package/dist/components/features/resource/resource.d.ts +5 -1
- package/dist/components/features/resource/resource.types.d.ts +12 -1
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
- package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
- package/dist/components/layout/app-shell/index.d.ts +1 -1
- package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
- package/dist/components/layout/header/header.recipes.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +6 -6
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +2 -1
- package/dist/components/layout/page/page.d.ts +1 -0
- package/dist/components/layout/page/page.strings.d.ts +11 -0
- package/dist/components/layout/page/page.types.d.ts +69 -17
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +9 -2
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +2 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +36 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +5 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +48 -10
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
- package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
- package/dist/components/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-CIxwbZt5.js} +26 -18
- package/dist/containers-CIxwbZt5.js.map +1 -0
- package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
- package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
- package/dist/{copyable-CnGCZdX4.js → copyable-DIznBqiT.js} +7 -7
- package/dist/{copyable-CnGCZdX4.js.map → copyable-DIznBqiT.js.map} +1 -1
- package/dist/{data-display-D4oujtx0.js → data-display-BdgCAw8T.js} +268 -277
- package/dist/data-display-BdgCAw8T.js.map +1 -0
- package/dist/{date-Q7jnXxpk.js → date-Cq8ioE4o.js} +5 -5
- package/dist/{date-Q7jnXxpk.js.map → date-Cq8ioE4o.js.map} +1 -1
- package/dist/{date-picker-zOt1oNss.js → date-picker-RlIzKom_.js} +446 -437
- package/dist/date-picker-RlIzKom_.js.map +1 -0
- package/dist/{date-pickers-cj8IXbDC.js → date-pickers-DY-CpXS1.js} +12 -12
- package/dist/{date-pickers-cj8IXbDC.js.map → date-pickers-DY-CpXS1.js.map} +1 -1
- package/dist/{display-BB4BL_-K.js → display-KsZLw9Ov.js} +9 -9
- package/dist/{display-BB4BL_-K.js.map → display-KsZLw9Ov.js.map} +1 -1
- package/dist/dropdown-menu-CLs8Lihj.js +194 -0
- package/dist/dropdown-menu-CLs8Lihj.js.map +1 -0
- package/dist/features/activities.js +302 -253
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +15 -14
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +22 -22
- 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 +237 -238
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +140 -146
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +167 -138
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +6 -7
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -260
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +375 -326
- 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 +1266 -1193
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +13 -13
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +69 -66
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +13 -13
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +94 -95
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DZNL5Lg1.js → feedback-Dm4izqFn.js} +80 -79
- package/dist/feedback-Dm4izqFn.js.map +1 -0
- package/dist/{field-affordance-recipes-DjwGx8eM.js → field-affordance-recipes-DWcNcOjh.js} +4 -4
- package/dist/field-affordance-recipes-DWcNcOjh.js.map +1 -0
- package/dist/{filters-BcT-uoFy.js → filters-DzgSJpMK.js} +693 -645
- package/dist/filters-DzgSJpMK.js.map +1 -0
- package/dist/{form-field-CsgRmdit.js → form-field-BriWAXyg.js} +6 -6
- package/dist/{form-field-CsgRmdit.js.map → form-field-BriWAXyg.js.map} +1 -1
- package/dist/{form-sizing-NXgjkmBG.js → form-sizing-Bs2qFUeE.js} +4 -4
- package/dist/form-sizing-Bs2qFUeE.js.map +1 -0
- package/dist/{forms-BV5m5aQF.js → forms-C0RGnJTe.js} +17 -13
- package/dist/forms-C0RGnJTe.js.map +1 -0
- package/dist/{forms-numeric-Cd33AKbD.js → forms-numeric-DIhghX1Q.js} +86 -82
- package/dist/forms-numeric-DIhghX1Q.js.map +1 -0
- package/dist/{header-BA697l4a.js → header-DMMxG__r.js} +67 -63
- package/dist/header-DMMxG__r.js.map +1 -0
- package/dist/header.recipes-BigdJjw1.js +6 -0
- package/dist/header.recipes-BigdJjw1.js.map +1 -0
- package/dist/{hooks-BQ-L7Uu2.js → hooks-DB6CJ4MR.js} +26 -14
- package/dist/hooks-DB6CJ4MR.js.map +1 -0
- package/dist/{icon-badge-COWbCCWu.js → icon-badge-DZF-YjQp.js} +4 -4
- package/dist/{icon-badge-COWbCCWu.js.map → icon-badge-DZF-YjQp.js.map} +1 -1
- package/dist/index.js +4 -5
- package/dist/{input-Cdw4k0fb.js → input-CvyDQlY7.js} +8 -8
- package/dist/{input-Cdw4k0fb.js.map → input-CvyDQlY7.js.map} +1 -1
- package/dist/input-DMBwAZmr.js +21 -0
- package/dist/input-DMBwAZmr.js.map +1 -0
- package/dist/{item-BvZ2DR_x.js → item-DjCcM18E.js} +16 -16
- package/dist/item-DjCcM18E.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +2 -2
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +11 -11
- package/dist/lib/affordance-geometry.generated.d.ts +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/motion-recipes.d.ts +3 -0
- package/dist/lib/navigation-row-recipes.d.ts +7 -7
- package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
- package/dist/lib/portal-recipes.d.ts +3 -0
- package/dist/lib/token-merge.generated.d.ts +13 -10
- package/dist/lib/utils.js +1 -1
- package/dist/map-demo-tile.svg +1 -1
- package/dist/{media-gallery-CSl5W1Fy.js → media-gallery-C-vChPmE.js} +6 -6
- package/dist/{media-gallery-CSl5W1Fy.js.map → media-gallery-C-vChPmE.js.map} +1 -1
- package/dist/{mentions-RKOQaaIB.js → mentions-0_4nWuI-.js} +10 -10
- package/dist/{mentions-RKOQaaIB.js.map → mentions-0_4nWuI-.js.map} +1 -1
- package/dist/{message-INU2xsxu.js → message-g8p7eVtN.js} +7 -7
- package/dist/message-g8p7eVtN.js.map +1 -0
- package/dist/{metadata-list-qVV7AVxa.js → metadata-list-C3MkU-Om.js} +64 -64
- package/dist/metadata-list-C3MkU-Om.js.map +1 -0
- package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
- package/dist/motion-recipes-DitYv6P2.js.map +1 -0
- package/dist/navigation-C90-oQFq.js +255 -0
- package/dist/navigation-C90-oQFq.js.map +1 -0
- package/dist/{navigation-BQNcg1jT.js → navigation-DaRjthVk.js} +101 -82
- package/dist/navigation-DaRjthVk.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/{number-E_OiIfJz.js → number-CRU3kGuk.js} +5 -5
- package/dist/{number-E_OiIfJz.js.map → number-CRU3kGuk.js.map} +1 -1
- package/dist/overflow-tab-bar-IVFVQFV6.js +172 -0
- package/dist/overflow-tab-bar-IVFVQFV6.js.map +1 -0
- package/dist/overlays-BSgCtM2v.js +1013 -0
- package/dist/overlays-BSgCtM2v.js.map +1 -0
- package/dist/page-DUUKDAjo.js +331 -0
- package/dist/page-DUUKDAjo.js.map +1 -0
- package/dist/page-header-commands-7P3sfE9u.js +193 -0
- package/dist/page-header-commands-7P3sfE9u.js.map +1 -0
- package/dist/{pagination-Ch8X_47u.js → pagination-CgCjElfu.js} +7 -7
- package/dist/{pagination-Ch8X_47u.js.map → pagination-CgCjElfu.js.map} +1 -1
- package/dist/popover-B85RenIl.js +201 -0
- package/dist/popover-B85RenIl.js.map +1 -0
- package/dist/{popover-menu-BYaCdFhf.js → popover-menu-DlnQ2zlR.js} +7 -7
- package/dist/{popover-menu-BYaCdFhf.js.map → popover-menu-DlnQ2zlR.js.map} +1 -1
- package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DdiEp0rd.js} +18 -11
- package/dist/popover.recipes-DdiEp0rd.js.map +1 -0
- package/dist/portal-recipes-BpsV_iRw.js +9 -0
- package/dist/portal-recipes-BpsV_iRw.js.map +1 -0
- package/dist/{primitives-Du64iDbb.js → primitives-ByWgGUgt.js} +5 -5
- package/dist/{primitives-Du64iDbb.js.map → primitives-ByWgGUgt.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-BvF2oCdV.js → progress-BJhQP9WX.js} +9 -9
- package/dist/{progress-BvF2oCdV.js.map → progress-BJhQP9WX.js.map} +1 -1
- package/dist/{receipt-D789Jwyy.js → receipt-tOc7B3hw.js} +7 -7
- package/dist/receipt-tOc7B3hw.js.map +1 -0
- package/dist/{rich-text-CLJEf76s.js → rich-text-Dth5E882.js} +3 -3
- package/dist/{rich-text-CLJEf76s.js.map → rich-text-Dth5E882.js.map} +1 -1
- package/dist/{rich-text-editor-Cm1dpUpQ.js → rich-text-editor-C1fOjBTd.js} +429 -430
- package/dist/rich-text-editor-C1fOjBTd.js.map +1 -0
- package/dist/{rich-text-editor-toolbar-L__e4x47.js → rich-text-editor-toolbar-laT3tpBT.js} +32 -28
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +1 -0
- package/dist/{scroll-area-La5RXsEk.js → scroll-area-B0dB2cBi.js} +2 -2
- package/dist/{scroll-area-La5RXsEk.js.map → scroll-area-B0dB2cBi.js.map} +1 -1
- package/dist/{separator-DAEV0w65.js → separator-Bb17I4pu.js} +2 -2
- package/dist/{separator-DAEV0w65.js.map → separator-Bb17I4pu.js.map} +1 -1
- package/dist/{separator-GNfPG-90.js → separator-Ct_WSWTJ.js} +3 -3
- package/dist/{separator-GNfPG-90.js.map → separator-Ct_WSWTJ.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-BA2iboic.js → settings-Bar5wiSo.js} +31 -38
- package/dist/settings-Bar5wiSo.js.map +1 -0
- package/dist/sheet-BGPERY55.js +250 -0
- package/dist/sheet-BGPERY55.js.map +1 -0
- package/dist/sidebar-D-JYMMbY.js +686 -0
- package/dist/sidebar-D-JYMMbY.js.map +1 -0
- package/dist/sidebar-f9gRWXIR.js +1001 -0
- package/dist/sidebar-f9gRWXIR.js.map +1 -0
- package/dist/skeleton-BapcJd9C.js +265 -0
- package/dist/skeleton-BapcJd9C.js.map +1 -0
- package/dist/smart-card-CW0hjetE.js +617 -0
- package/dist/smart-card-CW0hjetE.js.map +1 -0
- package/dist/{structure-C0V0_Fyf.js → structure-DuxKl954.js} +2 -2
- package/dist/{structure-C0V0_Fyf.js.map → structure-DuxKl954.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{table-CpvnzJn9.js → table-B4TE7iOV.js} +3 -3
- package/dist/{table-CpvnzJn9.js.map → table-B4TE7iOV.js.map} +1 -1
- package/dist/{table-DH7rozUv.js → table-CFOWY9pQ.js} +394 -388
- package/dist/table-CFOWY9pQ.js.map +1 -0
- package/dist/{tabs-eqVsJZWO.js → tabs-e7ko9S2o.js} +11 -11
- package/dist/tabs-e7ko9S2o.js.map +1 -0
- package/dist/{text-inputs-DXItiR0O.js → text-inputs-B1culiSK.js} +17 -17
- package/dist/text-inputs-B1culiSK.js.map +1 -0
- package/dist/theme.css +40 -37
- package/dist/{timelines-DmtztAY_.js → timelines-D3Sl9ueq.js} +13 -12
- package/dist/timelines-D3Sl9ueq.js.map +1 -0
- package/dist/tooltip-8wz5S_Zr.js +113 -0
- package/dist/tooltip-8wz5S_Zr.js.map +1 -0
- package/dist/{tree-CV11PURP.js → tree-CzUJHnFs.js} +8 -8
- package/dist/{tree-CV11PURP.js.map → tree-CzUJHnFs.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-CSyJrh28.js → typography-BQnine1k.js} +12 -12
- package/dist/{typography-CSyJrh28.js.map → typography-BQnine1k.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-BOW6U2tI.js} +25 -24
- package/dist/upload-BOW6U2tI.js.map +1 -0
- package/dist/{upload-queue-DhQJiSRc.js → upload-queue-qUXn1ykN.js} +16 -14
- package/dist/upload-queue-qUXn1ykN.js.map +1 -0
- package/dist/{usage-card-DVTRDmGz.js → usage-card-BeSLY0i0.js} +24 -17
- package/dist/usage-card-BeSLY0i0.js.map +1 -0
- package/dist/{utils-CF3c95Io.js → utils-B6kKb8jB.js} +237 -141
- package/dist/utils-B6kKb8jB.js.map +1 -0
- package/dist/value-inputs-skdVB2zh.js +980 -0
- package/dist/value-inputs-skdVB2zh.js.map +1 -0
- package/dist/{value-typography-ClupF0Gz.js → value-typography-uAmWUAL1.js} +2 -2
- package/dist/{value-typography-ClupF0Gz.js.map → value-typography-uAmWUAL1.js.map} +1 -1
- package/dist/{workspace-9EFVXUyk.js → workspace-DHeHv0qw.js} +50 -49
- package/dist/workspace-DHeHv0qw.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/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 +19 -17
- package/docs/consumer-skill/references/analytics.md +18 -1
- package/docs/consumer-skill/references/commerce-composition.md +97 -0
- package/docs/consumer-skill/references/component-contracts.json +7131 -1754
- package/docs/consumer-skill/references/composition-mapping.md +17 -3
- package/docs/consumer-skill/references/composition.md +159 -31
- 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 +11 -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 +15 -4
- package/docs/consumer-skill/references/integration.md +35 -0
- package/docs/consumer-skill/references/product-composition.md +94 -0
- package/docs/consumer-skill/references/public-api.json +2881 -420
- package/docs/consumer-skill/references/review.md +39 -2
- package/docs/consumer-skill/references/rhf-workflows.md +7 -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 +17 -18
- 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 +39 -3
- 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 +41 -6
- 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 +1 -1
- 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/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.map +0 -1
- package/dist/code-block-CGNaUtAE.js.map +0 -1
- 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/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.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.map +0 -1
- package/dist/field-affordance-recipes-DjwGx8eM.js.map +0 -1
- package/dist/filters-BcT-uoFy.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.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.map +0 -1
- 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.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/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/receipt-D789Jwyy.js.map +0 -1
- package/dist/rich-text-editor-Cm1dpUpQ.js.map +0 -1
- package/dist/rich-text-editor-toolbar-L__e4x47.js.map +0 -1
- 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-DH7rozUv.js.map +0 -1
- 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/workspace-9EFVXUyk.js.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
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-B6kKb8jB.js";
|
|
4
|
+
import { n as r } from "./buttons-BedGfygC.js";
|
|
5
|
+
import { c as i, o as a, t as o } from "./typography-BQnine1k.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-DuxKl954.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-CW0hjetE.js";
|
|
10
10
|
import { n as d } from "./composition.recipes-COdiFhxB.js";
|
|
11
11
|
import { t as f } from "./interaction-recipes-XR9ZpVYL.js";
|
|
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 D } from "./message-
|
|
18
|
-
import { t as O } from "./code-block-
|
|
12
|
+
import { g as p, m, r as h } from "./primitives-ByWgGUgt.js";
|
|
13
|
+
import { t as g } from "./number-CRU3kGuk.js";
|
|
14
|
+
import { t as _ } from "./icon-badge-DZF-YjQp.js";
|
|
15
|
+
import { t as v } from "./badge-xIiV_E7f.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-Dg_69lPS.js";
|
|
17
|
+
import { t as D } from "./message-g8p7eVtN.js";
|
|
18
|
+
import { t as O } from "./code-block-BzmM9Eig.js";
|
|
19
19
|
import { useEffect 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 ee, Check as L, ChevronDown as R, ChevronRight as z, Circle as te, Copy as ne, Download as re, ExternalLink as ie, FileText as ae, Globe as oe, Loader2 as B, MinusCircle as se, RotateCcw as ce, User as le, X as V, XCircle as ue } 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);
|
|
@@ -52,7 +52,7 @@ 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" ? le :
|
|
55
|
+
icon: e === "user" ? le : I,
|
|
56
56
|
tone: "neutral",
|
|
57
57
|
size: "sm",
|
|
58
58
|
"aria-label": o
|
|
@@ -78,7 +78,7 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
|
|
|
78
78
|
onClick: async () => {
|
|
79
79
|
y && await S(y) && f?.();
|
|
80
80
|
},
|
|
81
|
-
children: /* @__PURE__ */ N(
|
|
81
|
+
children: /* @__PURE__ */ N(ne, {
|
|
82
82
|
"aria-hidden": "true",
|
|
83
83
|
className: "size-icon-md"
|
|
84
84
|
})
|
|
@@ -123,7 +123,8 @@ var G = {
|
|
|
123
123
|
collapse: "Hide details",
|
|
124
124
|
args: "Arguments",
|
|
125
125
|
result: "Result",
|
|
126
|
-
durationLabel: "Took"
|
|
126
|
+
durationLabel: "Took",
|
|
127
|
+
elapsedLabel: "Elapsed"
|
|
127
128
|
}, de = {
|
|
128
129
|
pending: { tone: "secondary" },
|
|
129
130
|
running: {
|
|
@@ -158,7 +159,7 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
|
|
|
158
159
|
running: S.running,
|
|
159
160
|
success: S.success,
|
|
160
161
|
error: S.error
|
|
161
|
-
}, O = de[i], k = !!(o || s || d);
|
|
162
|
+
}, O = de[i], k = !!(o || s || d), A = i === "success" || i === "error";
|
|
162
163
|
return /* @__PURE__ */ P(u, {
|
|
163
164
|
surface: "card",
|
|
164
165
|
padding: "none",
|
|
@@ -195,11 +196,14 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
|
|
|
195
196
|
pulse: O.live,
|
|
196
197
|
children: D[i]
|
|
197
198
|
}), !!p && /* @__PURE__ */ N(fe, {
|
|
198
|
-
label: S.durationLabel,
|
|
199
|
+
label: A ? S.durationLabel : S.elapsedLabel ?? G.elapsedLabel ?? S.durationLabel,
|
|
199
200
|
ms: p
|
|
200
201
|
})]
|
|
201
202
|
}),
|
|
202
|
-
k
|
|
203
|
+
k ? N(T ? R : z, { className: "size-icon-md shrink-0 text-muted-foreground" }) : /* @__PURE__ */ N("span", {
|
|
204
|
+
"aria-hidden": "true",
|
|
205
|
+
className: "ai-tool-call--affordance hidden size-icon-md shrink-0 @md/card:block"
|
|
206
|
+
})
|
|
203
207
|
]
|
|
204
208
|
}), !!T && k && /* @__PURE__ */ P(c, {
|
|
205
209
|
gap: "md",
|
|
@@ -225,7 +229,7 @@ function q({ label: e, children: t, tone: r = "neutral" }) {
|
|
|
225
229
|
className: "ai-tool-call--detail-block",
|
|
226
230
|
children: [/* @__PURE__ */ N(a, { children: e }), /* @__PURE__ */ N("pre", {
|
|
227
231
|
tabIndex: 0,
|
|
228
|
-
className: n("box-border m-0 max-w-full overflow-x-auto rounded-
|
|
232
|
+
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
233
|
children: t
|
|
230
234
|
})]
|
|
231
235
|
});
|
|
@@ -257,7 +261,7 @@ function J({ children: e = "Thinking…", paused: t = !1, duration: r = 2.4, siz
|
|
|
257
261
|
J.displayName = "AiShimmer";
|
|
258
262
|
//#endregion
|
|
259
263
|
//#region src/components/blocks/ai/ai-code-block/types.ts
|
|
260
|
-
var
|
|
264
|
+
var pe = {
|
|
261
265
|
copy: "Copy",
|
|
262
266
|
copied: "Copied",
|
|
263
267
|
copyError: "Could not copy. Please try again.",
|
|
@@ -266,8 +270,8 @@ var Y = {
|
|
|
266
270
|
};
|
|
267
271
|
//#endregion
|
|
268
272
|
//#region src/components/blocks/ai/ai-code-block/ai-code-block.tsx
|
|
269
|
-
function
|
|
270
|
-
let o = t(
|
|
273
|
+
function me({ strings: e, className: r, onCopy: i, ...a }) {
|
|
274
|
+
let o = t(pe, e);
|
|
271
275
|
return /* @__PURE__ */ N(O, {
|
|
272
276
|
...a,
|
|
273
277
|
className: n("ai-code-block--component", r),
|
|
@@ -280,10 +284,10 @@ function X({ strings: e, className: r, onCopy: i, ...a }) {
|
|
|
280
284
|
}
|
|
281
285
|
});
|
|
282
286
|
}
|
|
283
|
-
|
|
287
|
+
me.displayName = "AiCodeBlock";
|
|
284
288
|
//#endregion
|
|
285
289
|
//#region src/components/blocks/ai/ai-attachment/types.ts
|
|
286
|
-
var
|
|
290
|
+
var Y = {
|
|
287
291
|
removeAria: "Remove attachment",
|
|
288
292
|
openAria: "Open attachment",
|
|
289
293
|
uploadProgressAria: "Upload progress",
|
|
@@ -291,8 +295,8 @@ var Z = {
|
|
|
291
295
|
};
|
|
292
296
|
//#endregion
|
|
293
297
|
//#region src/components/blocks/ai/ai-attachment/ai-attachment.tsx
|
|
294
|
-
function
|
|
295
|
-
let h = t(
|
|
298
|
+
function he({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, progress: l, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: m }) {
|
|
299
|
+
let h = t(Y, m), g = !u && typeof l == "number" && l >= 0 && l < 1;
|
|
296
300
|
return /* @__PURE__ */ P(E, {
|
|
297
301
|
name: e,
|
|
298
302
|
layout: "compact",
|
|
@@ -327,7 +331,7 @@ function pe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
|
|
|
327
331
|
size: "xs",
|
|
328
332
|
type: "error",
|
|
329
333
|
role: "alert",
|
|
330
|
-
children: h.error ??
|
|
334
|
+
children: h.error ?? Y.error
|
|
331
335
|
})
|
|
332
336
|
}),
|
|
333
337
|
g && /* @__PURE__ */ N(T, {
|
|
@@ -352,17 +356,17 @@ function pe({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
|
|
|
352
356
|
]
|
|
353
357
|
});
|
|
354
358
|
}
|
|
355
|
-
|
|
359
|
+
he.displayName = "AiAttachment";
|
|
356
360
|
//#endregion
|
|
357
361
|
//#region src/components/blocks/ai/ai-agent/types.ts
|
|
358
|
-
var
|
|
362
|
+
var ge = { statusLabels: {
|
|
359
363
|
idle: "Idle",
|
|
360
364
|
thinking: "Thinking",
|
|
361
365
|
working: "Working",
|
|
362
366
|
done: "Done",
|
|
363
367
|
error: "Error",
|
|
364
368
|
offline: "Offline"
|
|
365
|
-
} },
|
|
369
|
+
} }, _e = {
|
|
366
370
|
idle: "secondary",
|
|
367
371
|
thinking: "info",
|
|
368
372
|
working: "info",
|
|
@@ -370,13 +374,13 @@ var me = { statusLabels: {
|
|
|
370
374
|
error: "destructive",
|
|
371
375
|
offline: "secondary"
|
|
372
376
|
};
|
|
373
|
-
function
|
|
374
|
-
let h = t(
|
|
375
|
-
icon: r ??
|
|
377
|
+
function ve({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", status: l, variant: d = "inline", trailing: f, className: p, strings: m }) {
|
|
378
|
+
let h = t(ge, m), g = a ?? /* @__PURE__ */ N(_, {
|
|
379
|
+
icon: r ?? I,
|
|
376
380
|
tone: s,
|
|
377
381
|
size: d === "card" ? "md" : "sm"
|
|
378
382
|
}), y = l === "thinking" || l === "working", b = !!l && /* @__PURE__ */ N(v, {
|
|
379
|
-
tone:
|
|
383
|
+
tone: _e[l],
|
|
380
384
|
dot: !0,
|
|
381
385
|
pulse: y,
|
|
382
386
|
children: h.statusLabels[l]
|
|
@@ -447,16 +451,16 @@ function ge({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", sta
|
|
|
447
451
|
]
|
|
448
452
|
});
|
|
449
453
|
}
|
|
450
|
-
|
|
454
|
+
ve.displayName = "AiAgent";
|
|
451
455
|
//#endregion
|
|
452
456
|
//#region src/components/blocks/ai/ai-confirmation/types.ts
|
|
453
|
-
var
|
|
457
|
+
var ye = {
|
|
454
458
|
approve: "Approve",
|
|
455
459
|
reject: "Reject",
|
|
456
460
|
pending: "Awaiting your approval",
|
|
457
461
|
approved: "Approved",
|
|
458
462
|
rejected: "Rejected"
|
|
459
|
-
},
|
|
463
|
+
}, be = {
|
|
460
464
|
neutral: { icon: "neutral" },
|
|
461
465
|
destructive: {
|
|
462
466
|
ring: `${l.destructive.edge} ${l.destructive.wash}`,
|
|
@@ -475,8 +479,8 @@ var _e = {
|
|
|
475
479
|
icon: "primary"
|
|
476
480
|
}
|
|
477
481
|
};
|
|
478
|
-
function
|
|
479
|
-
let b = t(
|
|
482
|
+
function xe({ 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 }) {
|
|
483
|
+
let b = t(ye, y), x = o, S = be[s];
|
|
480
484
|
return /* @__PURE__ */ N(u, {
|
|
481
485
|
role: "region",
|
|
482
486
|
"aria-live": "polite",
|
|
@@ -537,7 +541,7 @@ function ye({ title: e, description: a, icon: o, tone: s = "neutral", status: l
|
|
|
537
541
|
})]
|
|
538
542
|
}) : /* @__PURE__ */ N("div", {
|
|
539
543
|
className: "ai-confirmation--footer flex items-center gap-space-md",
|
|
540
|
-
children: l === "approved" ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(
|
|
544
|
+
children: l === "approved" ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(L, {
|
|
541
545
|
"aria-hidden": "true",
|
|
542
546
|
className: "size-icon-md text-success"
|
|
543
547
|
}), /* @__PURE__ */ N(i, {
|
|
@@ -558,10 +562,10 @@ function ye({ title: e, description: a, icon: o, tone: s = "neutral", status: l
|
|
|
558
562
|
})
|
|
559
563
|
});
|
|
560
564
|
}
|
|
561
|
-
|
|
565
|
+
xe.displayName = "AiConfirmation";
|
|
562
566
|
//#endregion
|
|
563
567
|
//#region src/components/blocks/ai/ai-sources/types.ts
|
|
564
|
-
var
|
|
568
|
+
var Se = {
|
|
565
569
|
title: "{{count}} sources",
|
|
566
570
|
expand: "Show all sources",
|
|
567
571
|
collapse: "Hide sources",
|
|
@@ -569,17 +573,17 @@ var be = {
|
|
|
569
573
|
};
|
|
570
574
|
//#endregion
|
|
571
575
|
//#region src/components/blocks/ai/ai-sources/ai-sources.tsx
|
|
572
|
-
function
|
|
576
|
+
function Ce(e, t) {
|
|
573
577
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
574
578
|
let r = t[n];
|
|
575
579
|
return r === void 0 ? e : String(r);
|
|
576
580
|
});
|
|
577
581
|
}
|
|
578
|
-
function
|
|
579
|
-
let g = e(
|
|
582
|
+
function we({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, defaultExpanded: l = !1, onExpandedChange: d, onSelect: p, className: m, strings: h }) {
|
|
583
|
+
let g = e(Se, h), [_, v] = j(l), y = s ?? _, b = (e) => {
|
|
580
584
|
s === void 0 && v(e), d?.(e);
|
|
581
|
-
}, x =
|
|
582
|
-
if (a === "avatars") return /* @__PURE__ */ N(
|
|
585
|
+
}, x = Ce(g.title, { count: t.length });
|
|
586
|
+
if (a === "avatars") return /* @__PURE__ */ N(Te, {
|
|
583
587
|
sources: t,
|
|
584
588
|
max: o,
|
|
585
589
|
title: x,
|
|
@@ -600,16 +604,16 @@ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
|
|
|
600
604
|
onClick: () => b(!y),
|
|
601
605
|
"aria-expanded": y,
|
|
602
606
|
"aria-label": y ? g.collapse : g.expand,
|
|
603
|
-
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-
|
|
607
|
+
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
608
|
children: [
|
|
605
|
-
/* @__PURE__ */ N(
|
|
609
|
+
/* @__PURE__ */ N(Ee, { sources: t.slice(0, 4) }),
|
|
606
610
|
/* @__PURE__ */ N(i, {
|
|
607
611
|
type: "inherit",
|
|
608
612
|
weight: "medium",
|
|
609
613
|
className: "flex-1",
|
|
610
614
|
children: x
|
|
611
615
|
}),
|
|
612
|
-
N(y ?
|
|
616
|
+
N(y ? R : z, { className: "size-icon-md text-muted-foreground" })
|
|
613
617
|
]
|
|
614
618
|
}), y && /* @__PURE__ */ N("div", {
|
|
615
619
|
className: "ai-sources--list border-t border-border/60 px-surface-xs py-row-y",
|
|
@@ -617,7 +621,7 @@ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
|
|
|
617
621
|
render: /* @__PURE__ */ N("ol", {}),
|
|
618
622
|
gap: "2xs",
|
|
619
623
|
className: "m-0 list-none p-0 font-sans",
|
|
620
|
-
children: S.map((e, t) => /* @__PURE__ */ N(
|
|
624
|
+
children: S.map((e, t) => /* @__PURE__ */ N(Oe, {
|
|
621
625
|
source: e,
|
|
622
626
|
index: t + 1,
|
|
623
627
|
onSelect: p ? () => p(e, t) : void 0,
|
|
@@ -627,56 +631,56 @@ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
|
|
|
627
631
|
})]
|
|
628
632
|
});
|
|
629
633
|
}
|
|
630
|
-
|
|
631
|
-
function
|
|
634
|
+
we.displayName = "AiSources";
|
|
635
|
+
function Te({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, className: s }) {
|
|
632
636
|
let c = e.slice(0, t), l = e.length - c.length;
|
|
633
637
|
return /* @__PURE__ */ P("div", {
|
|
634
638
|
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
|
-
]
|
|
639
|
+
children: [/* @__PURE__ */ N(Ee, {
|
|
640
|
+
sources: c,
|
|
641
|
+
onSelect: o,
|
|
642
|
+
visitLabel: a,
|
|
643
|
+
overflow: l
|
|
644
|
+
}), /* @__PURE__ */ N(i, {
|
|
645
|
+
size: "xs",
|
|
646
|
+
type: "secondary",
|
|
647
|
+
children: r
|
|
648
|
+
})]
|
|
657
649
|
});
|
|
658
650
|
}
|
|
659
|
-
function
|
|
660
|
-
return /* @__PURE__ */
|
|
661
|
-
className: n("flex", t ? "gap-space-2xs" : "-space-x-space-sm"),
|
|
662
|
-
children: e.map((e, n) => {
|
|
651
|
+
function Ee({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
|
|
652
|
+
return /* @__PURE__ */ P("div", {
|
|
653
|
+
className: n("flex items-center", t ? "gap-space-2xs" : "-space-x-space-sm"),
|
|
654
|
+
children: [e.map((e, n) => {
|
|
663
655
|
let i = /* @__PURE__ */ N("span", {
|
|
664
656
|
"aria-hidden": !0,
|
|
665
657
|
title: typeof e.title == "string" ? e.title : void 0,
|
|
666
658
|
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(
|
|
659
|
+
children: /* @__PURE__ */ N(De, { src: e.faviconUrl })
|
|
668
660
|
}, e.id);
|
|
669
661
|
return t ? /* @__PURE__ */ N("button", {
|
|
670
662
|
type: "button",
|
|
671
663
|
onClick: () => t(e, n),
|
|
672
664
|
"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-
|
|
665
|
+
className: `${f.nativeButtonReset} inline-flex size-action-xs shrink-0 items-center justify-center rounded-radius focus-visible:outline-none ${s.edge}`,
|
|
674
666
|
children: i
|
|
675
667
|
}, e.id) : i;
|
|
676
|
-
})
|
|
668
|
+
}), i > 0 && /* @__PURE__ */ N("span", {
|
|
669
|
+
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",
|
|
670
|
+
children: /* @__PURE__ */ P(p, {
|
|
671
|
+
size: "xxs",
|
|
672
|
+
className: "tabular-nums",
|
|
673
|
+
children: ["+", /* @__PURE__ */ N(g, {
|
|
674
|
+
value: i,
|
|
675
|
+
size: "xxs",
|
|
676
|
+
type: "secondary",
|
|
677
|
+
align: "left"
|
|
678
|
+
})]
|
|
679
|
+
})
|
|
680
|
+
})]
|
|
677
681
|
});
|
|
678
682
|
}
|
|
679
|
-
function
|
|
683
|
+
function De({ src: e }) {
|
|
680
684
|
let [t, n] = j(!1);
|
|
681
685
|
return k(() => {
|
|
682
686
|
n(!1);
|
|
@@ -687,8 +691,8 @@ function Te({ src: e }) {
|
|
|
687
691
|
onError: () => n(!0)
|
|
688
692
|
});
|
|
689
693
|
}
|
|
690
|
-
function
|
|
691
|
-
let l = !!(e.url || r), u = n(f.nativeButtonReset, "group flex w-full items-start gap-space-lg rounded-
|
|
694
|
+
function Oe({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
695
|
+
let l = !!(e.url || r), u = 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", l && `${f.rowHover} focus-visible:outline-none ${s.edge}`), d = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(_, {
|
|
692
696
|
tone: "neutral",
|
|
693
697
|
size: "sm",
|
|
694
698
|
"aria-hidden": !1,
|
|
@@ -708,7 +712,7 @@ function Ee({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
|
708
712
|
type: "inherit",
|
|
709
713
|
weight: "medium",
|
|
710
714
|
className: "truncate",
|
|
711
|
-
children: [e.title, !!e.url && /* @__PURE__ */ N(
|
|
715
|
+
children: [e.title, !!e.url && /* @__PURE__ */ N(ie, { className: "ml-1 inline size-icon-sm text-muted-foreground align-baseline" })]
|
|
712
716
|
}),
|
|
713
717
|
!!e.publisher && /* @__PURE__ */ N(i, {
|
|
714
718
|
size: "xs",
|
|
@@ -746,7 +750,7 @@ function Ee({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
|
746
750
|
}
|
|
747
751
|
//#endregion
|
|
748
752
|
//#region src/components/blocks/ai/ai-reasoning/types.ts
|
|
749
|
-
var
|
|
753
|
+
var ke = {
|
|
750
754
|
thinking: "Thinking…",
|
|
751
755
|
thoughtFor: "Thought for {{duration}}",
|
|
752
756
|
thoughtDone: "Reasoning complete",
|
|
@@ -755,7 +759,7 @@ var De = {
|
|
|
755
759
|
};
|
|
756
760
|
//#endregion
|
|
757
761
|
//#region src/components/blocks/ai/ai-reasoning/ai-reasoning.tsx
|
|
758
|
-
function
|
|
762
|
+
function Ae(e, t) {
|
|
759
763
|
let n = e.split(/\{\{\s*duration\s*\}\}/);
|
|
760
764
|
return n.length === 1 ? e : /* @__PURE__ */ P(M, { children: [
|
|
761
765
|
n[0],
|
|
@@ -767,8 +771,8 @@ function Oe(e, t) {
|
|
|
767
771
|
n.slice(1).join("{{duration}}")
|
|
768
772
|
] });
|
|
769
773
|
}
|
|
770
|
-
function
|
|
771
|
-
let m = t(
|
|
774
|
+
function X({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStreaming: s = !0, defaultExpanded: c = !1, expanded: l, onExpandedChange: u, className: d, strings: p }) {
|
|
775
|
+
let m = t(ke, p), [h, g] = j(c), _ = l ?? h, v = (e) => {
|
|
772
776
|
l === void 0 && g(e), u?.(e);
|
|
773
777
|
};
|
|
774
778
|
k(() => {
|
|
@@ -786,7 +790,7 @@ function Q({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
|
|
|
786
790
|
type: "inherit",
|
|
787
791
|
weight: "medium",
|
|
788
792
|
className: "flex-1",
|
|
789
|
-
children:
|
|
793
|
+
children: Ae(m.thoughtFor, o)
|
|
790
794
|
});
|
|
791
795
|
return /* @__PURE__ */ P("div", {
|
|
792
796
|
className: n("ai-reasoning--component", "overflow-hidden rounded-radius border border-border/60 bg-muted/30", d),
|
|
@@ -800,9 +804,9 @@ function Q({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
|
|
|
800
804
|
"aria-label": _ ? m.collapseAria : m.expandAria,
|
|
801
805
|
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
806
|
children: [
|
|
803
|
-
/* @__PURE__ */ N(
|
|
807
|
+
/* @__PURE__ */ N(ee, { className: "size-icon-md text-muted-foreground" }),
|
|
804
808
|
y,
|
|
805
|
-
N(_ ?
|
|
809
|
+
N(_ ? R : z, { className: "size-icon-md text-muted-foreground" })
|
|
806
810
|
]
|
|
807
811
|
}), _ && /* @__PURE__ */ N("div", {
|
|
808
812
|
className: "ai-reasoning--body border-t border-border/60 p-surface-xs",
|
|
@@ -818,15 +822,15 @@ function Q({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
|
|
|
818
822
|
})]
|
|
819
823
|
});
|
|
820
824
|
}
|
|
821
|
-
|
|
825
|
+
X.displayName = "AiReasoning";
|
|
822
826
|
//#endregion
|
|
823
827
|
//#region src/components/blocks/ai/ai-chain-of-thought/types.ts
|
|
824
|
-
var
|
|
828
|
+
var je = {
|
|
825
829
|
title: "Reasoning",
|
|
826
830
|
streamingHint: "Working through the steps…"
|
|
827
|
-
},
|
|
831
|
+
}, Me = {
|
|
828
832
|
pending: {
|
|
829
|
-
icon:
|
|
833
|
+
icon: te,
|
|
830
834
|
tone: "neutral"
|
|
831
835
|
},
|
|
832
836
|
active: {
|
|
@@ -835,7 +839,7 @@ var ke = {
|
|
|
835
839
|
spin: !0
|
|
836
840
|
},
|
|
837
841
|
completed: {
|
|
838
|
-
icon:
|
|
842
|
+
icon: L,
|
|
839
843
|
tone: "success",
|
|
840
844
|
solid: !0
|
|
841
845
|
},
|
|
@@ -845,8 +849,8 @@ var ke = {
|
|
|
845
849
|
solid: !0
|
|
846
850
|
}
|
|
847
851
|
};
|
|
848
|
-
function
|
|
849
|
-
let d = t(
|
|
852
|
+
function Ne({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, strings: l }) {
|
|
853
|
+
let d = t(je, l);
|
|
850
854
|
return /* @__PURE__ */ N(u, {
|
|
851
855
|
surface: "card",
|
|
852
856
|
className: n("ai-chain-of-thought--component", s),
|
|
@@ -867,7 +871,7 @@ function je({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
|
|
|
867
871
|
}), /* @__PURE__ */ N("ol", {
|
|
868
872
|
className: "ai-chain-of-thought--body m-0 list-none p-0 font-sans",
|
|
869
873
|
children: e.map((t, r) => {
|
|
870
|
-
let a = t.status ?? "pending", o =
|
|
874
|
+
let a = t.status ?? "pending", o = Me[a], s = t.icon ?? o.icon, l = r === e.length - 1;
|
|
871
875
|
return /* @__PURE__ */ P("li", {
|
|
872
876
|
className: "ai-chain-of-thought--step flex gap-space-lg",
|
|
873
877
|
children: [/* @__PURE__ */ P("span", {
|
|
@@ -904,10 +908,10 @@ function je({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
|
|
|
904
908
|
})
|
|
905
909
|
});
|
|
906
910
|
}
|
|
907
|
-
|
|
911
|
+
Ne.displayName = "AiChainOfThought";
|
|
908
912
|
//#endregion
|
|
909
913
|
//#region src/components/blocks/ai/ai-task/types.ts
|
|
910
|
-
var
|
|
914
|
+
var Pe = {
|
|
911
915
|
statusLabels: {
|
|
912
916
|
queued: "Queued",
|
|
913
917
|
running: "Running",
|
|
@@ -918,9 +922,9 @@ var Me = {
|
|
|
918
922
|
},
|
|
919
923
|
collapseSubtasks: "Collapse subtasks",
|
|
920
924
|
expandSubtasks: "Expand subtasks"
|
|
921
|
-
},
|
|
925
|
+
}, Fe = {
|
|
922
926
|
queued: {
|
|
923
|
-
icon:
|
|
927
|
+
icon: te,
|
|
924
928
|
cls: "text-muted-foreground"
|
|
925
929
|
},
|
|
926
930
|
running: {
|
|
@@ -929,7 +933,7 @@ var Me = {
|
|
|
929
933
|
spin: !0
|
|
930
934
|
},
|
|
931
935
|
completed: {
|
|
932
|
-
icon:
|
|
936
|
+
icon: L,
|
|
933
937
|
cls: "text-success"
|
|
934
938
|
},
|
|
935
939
|
failed: {
|
|
@@ -944,7 +948,7 @@ var Me = {
|
|
|
944
948
|
icon: se,
|
|
945
949
|
cls: "text-muted-foreground"
|
|
946
950
|
}
|
|
947
|
-
},
|
|
951
|
+
}, Ie = {
|
|
948
952
|
queued: "secondary",
|
|
949
953
|
running: "info",
|
|
950
954
|
completed: "success",
|
|
@@ -952,83 +956,115 @@ var Me = {
|
|
|
952
956
|
cancelled: "secondary",
|
|
953
957
|
skipped: "secondary"
|
|
954
958
|
};
|
|
955
|
-
function
|
|
956
|
-
let s = t(
|
|
959
|
+
function Le({ task: e, density: r = "compact", indent: i = 18, className: a, strings: o }) {
|
|
960
|
+
let s = t(Pe, o), c = {
|
|
961
|
+
status: Q(e, (e) => Z(e.status ?? "queued")),
|
|
962
|
+
slot: Q(e, (e) => e.rightSlot != null && e.rightSlot !== !1)
|
|
963
|
+
};
|
|
957
964
|
return /* @__PURE__ */ N(u, {
|
|
958
965
|
surface: "card",
|
|
959
966
|
padding: "none",
|
|
960
967
|
className: n("ai-task--component", a),
|
|
961
|
-
children: /* @__PURE__ */ N(
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
968
|
+
children: /* @__PURE__ */ N("div", {
|
|
969
|
+
className: n("ai-task--rows grid gap-x-space-md", Re[Number(c.status) + Number(c.slot)]),
|
|
970
|
+
children: /* @__PURE__ */ N(ze, {
|
|
971
|
+
item: e,
|
|
972
|
+
depth: 0,
|
|
973
|
+
density: r,
|
|
974
|
+
indent: i,
|
|
975
|
+
columns: c,
|
|
976
|
+
strings: s
|
|
977
|
+
})
|
|
967
978
|
})
|
|
968
979
|
});
|
|
969
980
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
981
|
+
function Z(e) {
|
|
982
|
+
return e !== "completed";
|
|
983
|
+
}
|
|
984
|
+
function Q(e, t) {
|
|
985
|
+
return t(e) || !!e.children?.some((e) => Q(e, t));
|
|
986
|
+
}
|
|
987
|
+
var Re = [
|
|
988
|
+
"grid-cols-1",
|
|
989
|
+
"grid-cols-[minmax(0,1fr)_auto]",
|
|
990
|
+
"grid-cols-[minmax(0,1fr)_auto_auto]"
|
|
991
|
+
];
|
|
992
|
+
Le.displayName = "AiTask";
|
|
993
|
+
function ze({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }) {
|
|
994
|
+
let l = e.status ?? "queued", u = Fe[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
995
|
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)` },
|
|
996
|
+
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
997
|
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
998
|
/* @__PURE__ */ P("div", {
|
|
1002
|
-
className: "
|
|
999
|
+
className: "ai-task--lead grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-space-md gap-y-space-md",
|
|
1000
|
+
style: t > 0 ? { paddingInlineStart: `${t * o}px` } : void 0,
|
|
1003
1001
|
children: [
|
|
1002
|
+
/* @__PURE__ */ P("span", {
|
|
1003
|
+
className: "ai-task--marker flex min-h-action-sm items-center gap-space-md",
|
|
1004
|
+
children: [f ? /* @__PURE__ */ N(r, {
|
|
1005
|
+
type: "button",
|
|
1006
|
+
tone: "secondary",
|
|
1007
|
+
buttonStyle: "ghost",
|
|
1008
|
+
size: "sm",
|
|
1009
|
+
iconOnly: !0,
|
|
1010
|
+
onClick: () => m((e) => !e),
|
|
1011
|
+
"aria-expanded": p,
|
|
1012
|
+
"aria-label": p ? c.collapseSubtasks : c.expandSubtasks,
|
|
1013
|
+
className: "ai-task--toggle",
|
|
1014
|
+
children: N(p ? R : z, {
|
|
1015
|
+
"aria-hidden": "true",
|
|
1016
|
+
className: "size-icon-md"
|
|
1017
|
+
})
|
|
1018
|
+
}) : t > 0 && /* @__PURE__ */ N("span", {
|
|
1019
|
+
"aria-hidden": !0,
|
|
1020
|
+
className: "w-action-sm shrink-0"
|
|
1021
|
+
}), /* @__PURE__ */ N(d, {
|
|
1022
|
+
"aria-hidden": "true",
|
|
1023
|
+
className: n("size-icon-md shrink-0", u.cls, u.spin && "animate-spin")
|
|
1024
|
+
})]
|
|
1025
|
+
}),
|
|
1004
1026
|
/* @__PURE__ */ N(i, {
|
|
1005
|
-
weight:
|
|
1006
|
-
type:
|
|
1007
|
-
className: n("
|
|
1027
|
+
weight: l === "running" ? "semibold" : "medium",
|
|
1028
|
+
type: h ? "secondary" : "inherit",
|
|
1029
|
+
className: n("ai-task--title min-w-0 truncate", l === "cancelled" && "line-through"),
|
|
1008
1030
|
children: e.title
|
|
1009
1031
|
}),
|
|
1010
|
-
/* @__PURE__ */ N(
|
|
1011
|
-
|
|
1012
|
-
children:
|
|
1013
|
-
}),
|
|
1014
|
-
!!e.rightSlot && /* @__PURE__ */ N("span", {
|
|
1015
|
-
className: "tabular-nums text-muted-foreground",
|
|
1016
|
-
children: e.rightSlot
|
|
1032
|
+
!!e.body && /* @__PURE__ */ N("div", {
|
|
1033
|
+
className: "ai-task--body col-start-2 min-w-0",
|
|
1034
|
+
children: e.body
|
|
1017
1035
|
})
|
|
1018
1036
|
]
|
|
1019
1037
|
}),
|
|
1020
|
-
|
|
1021
|
-
className: "ai-task--
|
|
1022
|
-
children:
|
|
1038
|
+
s.status && /* @__PURE__ */ N("span", {
|
|
1039
|
+
className: "ai-task--status flex min-h-action-sm items-center justify-end",
|
|
1040
|
+
children: Z(l) ? /* @__PURE__ */ N(v, {
|
|
1041
|
+
tone: Ie[l],
|
|
1042
|
+
children: c.statusLabels[l]
|
|
1043
|
+
}) : /* @__PURE__ */ N("span", {
|
|
1044
|
+
className: "sr-only",
|
|
1045
|
+
children: c.statusLabels[l]
|
|
1046
|
+
})
|
|
1047
|
+
}),
|
|
1048
|
+
!s.status && !Z(l) && /* @__PURE__ */ N("span", {
|
|
1049
|
+
className: "sr-only",
|
|
1050
|
+
children: c.statusLabels[l]
|
|
1051
|
+
}),
|
|
1052
|
+
s.slot && /* @__PURE__ */ N("span", {
|
|
1053
|
+
className: "ai-task--slot flex min-h-action-sm items-center justify-end tabular-nums text-muted-foreground",
|
|
1054
|
+
children: e.rightSlot
|
|
1023
1055
|
})
|
|
1024
1056
|
]
|
|
1025
|
-
}),
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1057
|
+
}), f && p && /* @__PURE__ */ N("div", {
|
|
1058
|
+
className: "ai-task--children col-span-full grid grid-cols-subgrid",
|
|
1059
|
+
children: e.children.map((e) => /* @__PURE__ */ N(ze, {
|
|
1060
|
+
item: e,
|
|
1061
|
+
depth: t + 1,
|
|
1062
|
+
density: a,
|
|
1063
|
+
indent: o,
|
|
1064
|
+
columns: s,
|
|
1065
|
+
strings: c
|
|
1066
|
+
}, e.id))
|
|
1067
|
+
})] });
|
|
1032
1068
|
}
|
|
1033
1069
|
//#endregion
|
|
1034
1070
|
//#region src/components/blocks/ai/ai-artifact/types.ts
|
|
@@ -1043,7 +1079,7 @@ var $ = {
|
|
|
1043
1079
|
};
|
|
1044
1080
|
//#endregion
|
|
1045
1081
|
//#region src/components/blocks/ai/ai-artifact/ai-artifact.tsx
|
|
1046
|
-
function
|
|
1082
|
+
function Be({ 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 }) {
|
|
1047
1083
|
let y = t($, v), b = o ?? ae, { copied: x, failed: S, copy: C } = H(h, s);
|
|
1048
1084
|
return /* @__PURE__ */ P(u, {
|
|
1049
1085
|
surface: "card",
|
|
@@ -1100,7 +1136,7 @@ function Le({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1100
1136
|
onClick: async () => {
|
|
1101
1137
|
s && await C(s);
|
|
1102
1138
|
},
|
|
1103
|
-
children: x ? /* @__PURE__ */ N(
|
|
1139
|
+
children: x ? /* @__PURE__ */ N(L, { className: "size-icon-md text-success" }) : /* @__PURE__ */ N(ne, { className: "size-icon-md" })
|
|
1104
1140
|
}),
|
|
1105
1141
|
!!m && /* @__PURE__ */ N(r, {
|
|
1106
1142
|
type: "button",
|
|
@@ -1110,7 +1146,7 @@ function Le({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1110
1146
|
iconOnly: !0,
|
|
1111
1147
|
"aria-label": y.downloadAria,
|
|
1112
1148
|
onClick: m,
|
|
1113
|
-
children: /* @__PURE__ */ N(
|
|
1149
|
+
children: /* @__PURE__ */ N(re, { className: "size-icon-md" })
|
|
1114
1150
|
}),
|
|
1115
1151
|
!!f && /* @__PURE__ */ N(r, {
|
|
1116
1152
|
type: "button",
|
|
@@ -1120,14 +1156,14 @@ function Le({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1120
1156
|
iconOnly: !0,
|
|
1121
1157
|
"aria-label": y.openAria,
|
|
1122
1158
|
onClick: f,
|
|
1123
|
-
children: /* @__PURE__ */ N(
|
|
1159
|
+
children: /* @__PURE__ */ N(ie, { className: "size-icon-md" })
|
|
1124
1160
|
})
|
|
1125
1161
|
]
|
|
1126
1162
|
})]
|
|
1127
1163
|
})
|
|
1128
1164
|
}),
|
|
1129
1165
|
!d && !!l && /* @__PURE__ */ N("div", {
|
|
1130
|
-
className: "ai-artifact--body min-w-0",
|
|
1166
|
+
className: "ai-artifact--body min-w-0 [&>.code-block--component]:rounded-none [&>.code-block--component]:border-0",
|
|
1131
1167
|
children: l
|
|
1132
1168
|
}),
|
|
1133
1169
|
S && /* @__PURE__ */ N("div", {
|
|
@@ -1142,8 +1178,8 @@ function Le({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1142
1178
|
]
|
|
1143
1179
|
});
|
|
1144
1180
|
}
|
|
1145
|
-
|
|
1181
|
+
Be.displayName = "AiArtifact";
|
|
1146
1182
|
//#endregion
|
|
1147
|
-
export { U as C, W as S,
|
|
1183
|
+
export { U as C, W as S, me as _, Ne as a, K as b, ke as c, xe as d, ye as f, Y as g, he as h, Pe as i, we as l, ge as m, $ as n, je as o, ve as p, Le as r, X as s, Be as t, Se as u, pe as v, G as x, J as y };
|
|
1148
1184
|
|
|
1149
|
-
//# sourceMappingURL=ai-artifact-
|
|
1185
|
+
//# sourceMappingURL=ai-artifact-C58tQcBy.js.map
|