themelia-react-ui 1.0.1 → 2.0.0
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 +417 -0
- package/README.md +67 -16
- package/dist/{accordion-B-5Focs8.js → accordion-CQXVcd7Q.js} +15 -15
- package/dist/accordion-CQXVcd7Q.js.map +1 -0
- package/dist/action-menu-BTpyPWJ2.js +264 -0
- package/dist/action-menu-BTpyPWJ2.js.map +1 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js +68 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
- package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-2PQ2fItc.js} +206 -215
- package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
- package/dist/{app-shell-at8Kt4l_.js → app-shell-BE_j8-AT.js} +11 -10
- package/dist/app-shell-BE_j8-AT.js.map +1 -0
- package/dist/{attachment-BO2R47wn.js → attachment-q69dlt5Y.js} +14 -14
- package/dist/attachment-q69dlt5Y.js.map +1 -0
- package/dist/auth-M3vGMgDR.js +723 -0
- package/dist/auth-M3vGMgDR.js.map +1 -0
- package/dist/{avatar-Bpzty83c.js → avatar-djdaaQ_s.js} +15 -13
- package/dist/avatar-djdaaQ_s.js.map +1 -0
- package/dist/{badge-BZXZT9wd.js → badge-0tATj-tW.js} +9 -9
- package/dist/badge-0tATj-tW.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/buttons.js +3 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +33 -35
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +246 -222
- package/dist/base/cascader.js.map +1 -1
- 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 +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +3 -3
- package/dist/base/display.js +7 -7
- 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 +94 -92
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +53 -53
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +84 -82
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +7 -7
- 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/blocks/admin.js +228 -219
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +182 -212
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +665 -620
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +2 -2
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1439 -1553
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +1 -1
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +88 -97
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BG_FfMK4.js} +10 -9
- package/dist/breadcrumbs-BG_FfMK4.js.map +1 -0
- package/dist/button-BS3KDg00.js +674 -0
- package/dist/button-BS3KDg00.js.map +1 -0
- package/dist/{button-BS6l5JUw.js → button-R9CCoH7A.js} +3 -3
- package/dist/button-R9CCoH7A.js.map +1 -0
- package/dist/buttons-DS0ZIwJ_.js +99 -0
- package/dist/buttons-DS0ZIwJ_.js.map +1 -0
- package/dist/{cards-Cum56XOF.js → cards-QoJ4syG9.js} +12 -12
- package/dist/{cards-Cum56XOF.js.map → cards-QoJ4syG9.js.map} +1 -1
- package/dist/chart-DwYRKKc-.js +152 -0
- package/dist/chart-DwYRKKc-.js.map +1 -0
- package/dist/checkbox-B7ygNTYp.js +35 -0
- package/dist/checkbox-B7ygNTYp.js.map +1 -0
- package/dist/choice-inputs-DrJ17tpL.js +752 -0
- package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
- package/dist/{code-block-xHKbAJDj.js → code-block-CD0B7M93.js} +27 -27
- package/dist/code-block-CD0B7M93.js.map +1 -0
- package/dist/{collapsible-DsnktFNv.js → collapsible-oMUGM4tr.js} +3 -3
- package/dist/{collapsible-DsnktFNv.js.map → collapsible-oMUGM4tr.js.map} +1 -1
- package/dist/{collection-content-C4fthJV_.js → collection-content-Ys-OZOkY.js} +3 -3
- package/dist/{collection-content-C4fthJV_.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
- package/dist/combobox-6dvVny2q.js +272 -0
- package/dist/combobox-6dvVny2q.js.map +1 -0
- package/dist/combobox-CB7039j7.js +865 -0
- package/dist/combobox-CB7039j7.js.map +1 -0
- package/dist/{command-C0xe7u9B.js → command-kPMPjIxJ.js} +35 -31
- package/dist/command-kPMPjIxJ.js.map +1 -0
- package/dist/{comments-DviPLnwy.js → comments-You0Bzbr.js} +434 -409
- package/dist/comments-You0Bzbr.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +7 -2
- package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/buttons/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +10 -19
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
- package/dist/components/base/cards/card.recipes.d.ts +13 -5
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
- package/dist/components/base/cards/smart-card.types.d.ts +1 -1
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
- package/dist/components/base/date-pickers/datepicker.types.d.ts +16 -3
- package/dist/components/base/display/alert-dialog.d.ts +8 -2
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +12 -5
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-field.d.ts +1 -0
- package/dist/components/base/forms/form-sizing.d.ts +35 -3
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
- package/dist/components/base/navigation/tabs.d.ts +3 -5
- package/dist/components/base/popover/popover.recipes.d.ts +3 -3
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +14 -5
- package/dist/components/base/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/table/index.d.ts +1 -1
- package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
- package/dist/components/base/upload/upload.recipes.d.ts +11 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/types.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/features/combobox/components/error-message.d.ts +1 -1
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
- package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.types.d.ts +9 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +46 -22
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +2 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
- package/dist/components/layout/auth/auth.types.d.ts +1 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts +0 -1
- package/dist/components/layout/page/page.types.d.ts +62 -6
- package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
- package/dist/components/primitives/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +13 -2
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/label.d.ts +3 -0
- package/dist/components/typography/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +23 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +37 -5
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/overlay.recipes.d.ts +15 -2
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +2 -1
- package/dist/container.recipes-D9t8MHR3.js +27 -0
- package/dist/container.recipes-D9t8MHR3.js.map +1 -0
- package/dist/{containers-6s-ucRQQ.js → containers-D_L4mTVb.js} +34 -57
- package/dist/containers-D_L4mTVb.js.map +1 -0
- package/dist/control-group-recipes-DBXmfh2E.js +21 -0
- package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
- package/dist/{copyable-B7SBXJMr.js → copyable-DDjTeW_j.js} +6 -6
- package/dist/{copyable-B7SBXJMr.js.map → copyable-DDjTeW_j.js.map} +1 -1
- package/dist/data-display-3xWQUnMA.js +1335 -0
- package/dist/data-display-3xWQUnMA.js.map +1 -0
- package/dist/date-picker-DrDFj8Lo.js +1527 -0
- package/dist/date-picker-DrDFj8Lo.js.map +1 -0
- package/dist/date-pickers-CnFCb0n2.js +174 -0
- package/dist/date-pickers-CnFCb0n2.js.map +1 -0
- package/dist/date-uf3z37Nm.js +144 -0
- package/dist/date-uf3z37Nm.js.map +1 -0
- package/dist/{display-CFM5myut.js → display-DrdvPwF0.js} +25 -25
- package/dist/display-DrdvPwF0.js.map +1 -0
- package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-CURh59jb.js} +22 -15
- package/dist/dropdown-menu-CURh59jb.js.map +1 -0
- package/dist/features/activities.js +177 -163
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +187 -183
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- 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 +25 -23
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -355
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +346 -354
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +225 -227
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +29 -29
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +59 -58
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +898 -900
- 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 +1412 -1444
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +51 -49
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -97
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +13 -13
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +187 -183
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +508 -503
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DWUkgEjR.js → feedback-C7nR0UtT.js} +30 -31
- package/dist/feedback-C7nR0UtT.js.map +1 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
- package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-C-MFBX_8.js} +5 -5
- package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
- package/dist/{filters-BhsUtsxW.js → filters-Da-gNPsE.js} +760 -765
- package/dist/filters-Da-gNPsE.js.map +1 -0
- package/dist/{form-field-Bn7ZH1rA.js → form-field-VZRULhUK.js} +20 -12
- package/dist/form-field-VZRULhUK.js.map +1 -0
- package/dist/form-sizing-uWP4lzVh.js +126 -0
- package/dist/form-sizing-uWP4lzVh.js.map +1 -0
- package/dist/{forms-B7pzS25o.js → forms-DDeEnXSY.js} +38 -38
- package/dist/forms-DDeEnXSY.js.map +1 -0
- package/dist/forms-numeric-D3CO60IF.js +905 -0
- package/dist/forms-numeric-D3CO60IF.js.map +1 -0
- package/dist/{header-C59QZyxV.js → header-2ycNqGOR.js} +42 -37
- package/dist/header-2ycNqGOR.js.map +1 -0
- package/dist/{hooks-CM1Vp9Pe.js → hooks-DQ5SPwZw.js} +2 -2
- package/dist/{hooks-CM1Vp9Pe.js.map → hooks-DQ5SPwZw.js.map} +1 -1
- package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
- package/dist/http-CdEIHyQf.js.map +1 -0
- package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-DKlaKXoo.js} +4 -4
- package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/input-BoLm9Hks.js +20 -0
- package/dist/input-BoLm9Hks.js.map +1 -0
- package/dist/input-DhQdBnV3.js +255 -0
- package/dist/input-DhQdBnV3.js.map +1 -0
- package/dist/item-xzh8Df65.js +264 -0
- package/dist/item-xzh8Df65.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +46 -10
- package/dist/lib/control-group-recipes.d.ts +22 -0
- package/dist/lib/field-affordance-recipes.d.ts +70 -2
- package/dist/lib/field-state-recipes.d.ts +6 -4
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/navigation-row-recipes.d.ts +3 -2
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -2
- package/dist/lib/surface-recipes.d.ts +13 -8
- package/dist/lib/token-merge.generated.d.ts +144 -2
- package/dist/lib/track-recipes.d.ts +1 -1
- package/dist/lib/ui-provider/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +9 -4
- package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DQUQ0m3O.js +201 -0
- package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
- package/dist/{mentions-B8Ko-fhS.js → mentions-DwnO1hh4.js} +40 -39
- package/dist/{mentions-B8Ko-fhS.js.map → mentions-DwnO1hh4.js.map} +1 -1
- package/dist/message-YfFmbXNP.js +127 -0
- package/dist/message-YfFmbXNP.js.map +1 -0
- package/dist/{navigation-BUIn2Qxx.js → navigation-Cbp5V8gG.js} +27 -28
- package/dist/navigation-Cbp5V8gG.js.map +1 -0
- package/dist/navigation-Cs1npsPm.js +300 -0
- package/dist/navigation-Cs1npsPm.js.map +1 -0
- package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DlU-4QYO.js} +3 -3
- package/dist/navigation-row-recipes-DlU-4QYO.js.map +1 -0
- package/dist/number-CKRBYmZK.js +352 -0
- package/dist/number-CKRBYmZK.js.map +1 -0
- package/dist/overlay.recipes-CNO2S9V6.js +34 -0
- package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
- package/dist/overlays-DhZO7N-I.js +994 -0
- package/dist/overlays-DhZO7N-I.js.map +1 -0
- package/dist/page-C6R_8jFt.js +325 -0
- package/dist/page-C6R_8jFt.js.map +1 -0
- package/dist/{page-header-DQRa0jug.js → page-header-hUTzcRZX.js} +12 -12
- package/dist/page-header-hUTzcRZX.js.map +1 -0
- package/dist/{pagination-C29vvt3I.js → pagination-Cm0jqa3I.js} +21 -21
- package/dist/pagination-Cm0jqa3I.js.map +1 -0
- package/dist/{popover-CoLDEg19.js → popover-Dcv_9jxr.js} +23 -22
- package/dist/popover-Dcv_9jxr.js.map +1 -0
- package/dist/{popover-menu-GLIQTJTx.js → popover-menu-DnRFKnHP.js} +6 -6
- package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
- package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-wmbvL8Ah.js} +5 -5
- package/dist/popover.recipes-wmbvL8Ah.js.map +1 -0
- package/dist/primitives-BHrwQXFC.js +379 -0
- package/dist/primitives-BHrwQXFC.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BOe8l_FZ.js → progress-Br9WTFya.js} +12 -11
- package/dist/progress-Br9WTFya.js.map +1 -0
- package/dist/{receipt-BM8xsGFy.js → receipt-CV89q1fs.js} +8 -8
- package/dist/{receipt-BM8xsGFy.js.map → receipt-CV89q1fs.js.map} +1 -1
- package/dist/rich-text-editor-CF8QYt5p.js +574 -0
- package/dist/rich-text-editor-CF8QYt5p.js.map +1 -0
- package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-CnrbmTS1.js} +35 -26
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +1 -0
- package/dist/{rich-text-B7sBAdDG.js → rich-text-j-FGAeZW.js} +4 -4
- package/dist/{rich-text-B7sBAdDG.js.map → rich-text-j-FGAeZW.js.map} +1 -1
- package/dist/{scroll-area-BheMQ270.js → scroll-area-DRdr16Pt.js} +3 -3
- package/dist/scroll-area-DRdr16Pt.js.map +1 -0
- package/dist/{separator-DO0EbCEm.js → separator-BMEvwnSX.js} +2 -2
- package/dist/{separator-DO0EbCEm.js.map → separator-BMEvwnSX.js.map} +1 -1
- package/dist/{separator-Gk_WXH-l.js → separator-Do5GWDYi.js} +4 -4
- package/dist/separator-Do5GWDYi.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +4 -0
- package/dist/services/actions.js +8 -3
- package/dist/services/actions.js.map +1 -1
- package/dist/{settings-BnCyyPOJ.js → settings-DHk0L2MF.js} +20 -19
- package/dist/settings-DHk0L2MF.js.map +1 -0
- package/dist/sheet-DRFNY1_D.js +207 -0
- package/dist/sheet-DRFNY1_D.js.map +1 -0
- package/dist/sidebar-Cb8WzOvE.js +511 -0
- package/dist/sidebar-Cb8WzOvE.js.map +1 -0
- package/dist/{sidebar-DPR7fmqN.js → sidebar-Crc9M9JV.js} +220 -201
- package/dist/sidebar-Crc9M9JV.js.map +1 -0
- package/dist/{skeleton-CmT1ppqb.js → skeleton-DVMXr15h.js} +5 -5
- package/dist/{skeleton-CmT1ppqb.js.map → skeleton-DVMXr15h.js.map} +1 -1
- package/dist/smart-card-Bek-TwUp.js +599 -0
- package/dist/smart-card-Bek-TwUp.js.map +1 -0
- package/dist/{spinner-BY9HbUEh.js → spinner-CmTAbEp0.js} +8 -6
- package/dist/spinner-CmTAbEp0.js.map +1 -0
- package/dist/{structure-MvKVq-oL.js → structure-hzCW-XsV.js} +3 -3
- package/dist/{structure-MvKVq-oL.js.map → structure-hzCW-XsV.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-recipes-DOdoBXGm.js +28 -0
- package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
- package/dist/table-D6zKeYQX.js +162 -0
- package/dist/table-D6zKeYQX.js.map +1 -0
- package/dist/table-Dn4XSrSB.js +1444 -0
- package/dist/table-Dn4XSrSB.js.map +1 -0
- package/dist/tabs-Dk8E_knt.js +189 -0
- package/dist/tabs-Dk8E_knt.js.map +1 -0
- package/dist/text-inputs-BFpku0Qd.js +331 -0
- package/dist/text-inputs-BFpku0Qd.js.map +1 -0
- package/dist/{text.styles-BwB7vAF2.js → text.styles-g4He6UIW.js} +26 -15
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +90 -124
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-B9ICkQcV.js → timelines-CxuAFIc2.js} +97 -104
- package/dist/timelines-CxuAFIc2.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BdWSaoFT.js → tree-BotPlyiD.js} +13 -13
- package/dist/{tree-BdWSaoFT.js.map → tree-BotPlyiD.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-CAr3dQhX.js +116 -0
- package/dist/typography-CAr3dQhX.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-CftIB6TY.js → ui-provider-D2_TeLqw.js} +22 -22
- package/dist/ui-provider-D2_TeLqw.js.map +1 -0
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-D8Za5x_c.js → upload-B0WHW7ak.js} +278 -274
- package/dist/upload-B0WHW7ak.js.map +1 -0
- package/dist/{upload-queue-hIIYBLS7.js → upload-queue-BHZ_wBfd.js} +72 -75
- package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
- package/dist/{usage-card-DnmnJ58D.js → usage-card-U0YBLTNT.js} +31 -33
- package/dist/usage-card-U0YBLTNT.js.map +1 -0
- package/dist/utils-Cospvlj1.js +4445 -0
- package/dist/utils-Cospvlj1.js.map +1 -0
- package/dist/value-inputs-CjfzGMsN.js +854 -0
- package/dist/value-inputs-CjfzGMsN.js.map +1 -0
- package/dist/value-typography-Deb3yQZg.js +116 -0
- package/dist/value-typography-Deb3yQZg.js.map +1 -0
- package/dist/{workspace-C1PZmk8L.js → workspace-YoFjXi6i.js} +97 -105
- package/dist/workspace-YoFjXi6i.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +123 -119
- package/docs/consumer-skill/examples/analytics.tsx +34 -0
- package/docs/consumer-skill/examples/app-layout.tsx +42 -14
- package/docs/consumer-skill/examples/detail.tsx +20 -5
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +37 -3
- package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
- package/docs/consumer-skill/examples/website.tsx +56 -0
- package/docs/consumer-skill/references/analytics.md +70 -0
- package/docs/consumer-skill/references/composition.md +195 -9
- package/docs/consumer-skill/references/design-contract.md +33 -7
- package/docs/consumer-skill/references/discovery.md +80 -5
- package/docs/consumer-skill/references/installation.md +22 -0
- package/docs/consumer-skill/references/integration.md +46 -1
- package/docs/consumer-skill/references/public-api.json +2083 -237
- package/docs/consumer-skill/references/review.md +74 -6
- package/docs/consumer-skill/references/theming.md +59 -8
- package/docs/consumer-skill/references/tokens.json +180 -9
- package/docs/consumer-skill/references/workflows.md +34 -0
- package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +271 -18
- package/docs/consumer-skill/scripts/discovery.mjs +69 -9
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
- package/package.json +11 -6
- package/dist/accordion-B-5Focs8.js.map +0 -1
- package/dist/action-menu-Cx3SdfbN.js +0 -265
- package/dist/action-menu-Cx3SdfbN.js.map +0 -1
- package/dist/affordance-geometry.generated-D8Jcfb0G.js +0 -32
- package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +0 -1
- package/dist/ai-artifact-B5tPpXnS.js.map +0 -1
- package/dist/app-shell-at8Kt4l_.js.map +0 -1
- package/dist/attachment-BO2R47wn.js.map +0 -1
- package/dist/auth-OFwWSAap.js +0 -704
- package/dist/auth-OFwWSAap.js.map +0 -1
- package/dist/avatar-Bpzty83c.js.map +0 -1
- package/dist/badge-BZXZT9wd.js.map +0 -1
- package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
- package/dist/button-BS6l5JUw.js.map +0 -1
- package/dist/buttons-Co6GavvM.js +0 -674
- package/dist/buttons-Co6GavvM.js.map +0 -1
- package/dist/chart-DVfcwQu6.js +0 -149
- package/dist/chart-DVfcwQu6.js.map +0 -1
- package/dist/checkbox-BavDRjF7.js +0 -34
- package/dist/checkbox-BavDRjF7.js.map +0 -1
- package/dist/choice-inputs-CC7XqPQO.js +0 -619
- package/dist/choice-inputs-CC7XqPQO.js.map +0 -1
- package/dist/code-block-xHKbAJDj.js.map +0 -1
- package/dist/combobox-DEbdr-3u.js +0 -273
- package/dist/combobox-DEbdr-3u.js.map +0 -1
- package/dist/combobox-xv3yJbzl.js +0 -850
- package/dist/combobox-xv3yJbzl.js.map +0 -1
- package/dist/command-C0xe7u9B.js.map +0 -1
- package/dist/comments-DviPLnwy.js.map +0 -1
- package/dist/containers-6s-ucRQQ.js.map +0 -1
- package/dist/data-display-cWIRdeaf.js +0 -1129
- package/dist/data-display-cWIRdeaf.js.map +0 -1
- package/dist/date-BFNMnrS5.js +0 -140
- package/dist/date-BFNMnrS5.js.map +0 -1
- package/dist/date-picker-CA6ogMQB.js +0 -1521
- package/dist/date-picker-CA6ogMQB.js.map +0 -1
- package/dist/date-pickers-BPIKLdsD.js +0 -224
- package/dist/date-pickers-BPIKLdsD.js.map +0 -1
- package/dist/display-CFM5myut.js.map +0 -1
- package/dist/dropdown-menu-BlnyHr-9.js.map +0 -1
- package/dist/feedback-DWUkgEjR.js.map +0 -1
- package/dist/field-affordance-recipes-IjzPrCTw.js +0 -17
- package/dist/field-affordance-recipes-IjzPrCTw.js.map +0 -1
- package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
- package/dist/filters-BhsUtsxW.js.map +0 -1
- package/dist/form-field-Bn7ZH1rA.js.map +0 -1
- package/dist/form-sizing-BWs70_a2.js +0 -100
- package/dist/form-sizing-BWs70_a2.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B7pzS25o.js.map +0 -1
- package/dist/forms-numeric-BUBxELBv.js +0 -867
- package/dist/forms-numeric-BUBxELBv.js.map +0 -1
- package/dist/header-C59QZyxV.js.map +0 -1
- package/dist/http-CLTVJc5I.js.map +0 -1
- package/dist/input-WwYQZJzG.js +0 -202
- package/dist/input-WwYQZJzG.js.map +0 -1
- package/dist/input-ci9fIgFH.js +0 -20
- package/dist/input-ci9fIgFH.js.map +0 -1
- package/dist/item-pJ0GsOiJ.js +0 -257
- package/dist/item-pJ0GsOiJ.js.map +0 -1
- package/dist/media-gallery-DhDRgnVZ.js +0 -200
- package/dist/media-gallery-DhDRgnVZ.js.map +0 -1
- package/dist/message-COsdEvXT.js +0 -108
- package/dist/message-COsdEvXT.js.map +0 -1
- package/dist/navigation-BUIn2Qxx.js.map +0 -1
- package/dist/navigation-DBEu4POU.js +0 -267
- package/dist/navigation-DBEu4POU.js.map +0 -1
- package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
- package/dist/number-BNT_BIzJ.js +0 -269
- package/dist/number-BNT_BIzJ.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-B11wZka6.js +0 -982
- package/dist/overlays-B11wZka6.js.map +0 -1
- package/dist/page-BV6ioQg3.js +0 -202
- package/dist/page-BV6ioQg3.js.map +0 -1
- package/dist/page-header-DQRa0jug.js.map +0 -1
- package/dist/pagination-C29vvt3I.js.map +0 -1
- package/dist/popover-CoLDEg19.js.map +0 -1
- package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
- package/dist/primitives-DKPOGVpj.js +0 -330
- package/dist/primitives-DKPOGVpj.js.map +0 -1
- package/dist/progress-BOe8l_FZ.js.map +0 -1
- package/dist/rich-text-editor-CoVrTiSv.js +0 -575
- package/dist/rich-text-editor-CoVrTiSv.js.map +0 -1
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
- package/dist/scroll-area-BheMQ270.js.map +0 -1
- package/dist/select-B2mb-qN2.js +0 -108
- package/dist/select-B2mb-qN2.js.map +0 -1
- package/dist/separator-Gk_WXH-l.js.map +0 -1
- package/dist/settings-BnCyyPOJ.js.map +0 -1
- package/dist/sheet-B-q914Ad.js +0 -205
- package/dist/sheet-B-q914Ad.js.map +0 -1
- package/dist/sidebar-C_2p3Tfj.js +0 -501
- package/dist/sidebar-C_2p3Tfj.js.map +0 -1
- package/dist/sidebar-DPR7fmqN.js.map +0 -1
- package/dist/smart-card-CYLn46e6.js +0 -578
- package/dist/smart-card-CYLn46e6.js.map +0 -1
- package/dist/spinner-BY9HbUEh.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-CQfRr-VL.js +0 -27
- package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
- package/dist/table-BS39xnlq.js +0 -1424
- package/dist/table-BS39xnlq.js.map +0 -1
- package/dist/table-DnlAJ-xR.js +0 -146
- package/dist/table-DnlAJ-xR.js.map +0 -1
- package/dist/tabs-B5cNMWiP.js +0 -187
- package/dist/tabs-B5cNMWiP.js.map +0 -1
- package/dist/text-inputs-Dh9XGyiS.js +0 -331
- package/dist/text-inputs-Dh9XGyiS.js.map +0 -1
- package/dist/text.styles-BwB7vAF2.js.map +0 -1
- package/dist/timelines-B9ICkQcV.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/typography-Cv8MT-82.js +0 -96
- package/dist/typography-Cv8MT-82.js.map +0 -1
- package/dist/ui-provider-CftIB6TY.js.map +0 -1
- package/dist/upload-D8Za5x_c.js.map +0 -1
- package/dist/upload-queue-hIIYBLS7.js.map +0 -1
- package/dist/usage-card-DnmnJ58D.js.map +0 -1
- package/dist/utils-C2EKeIw3.js +0 -72
- package/dist/utils-C2EKeIw3.js.map +0 -1
- package/dist/value-inputs-DX2dbxjj.js +0 -824
- package/dist/value-inputs-DX2dbxjj.js.map +0 -1
- package/dist/workspace-C1PZmk8L.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import { t as s } from "./structure-
|
|
7
|
-
import { g as c, m as l, r as u } from "./primitives-
|
|
8
|
-
import { t as d } from "./number-
|
|
9
|
-
import { t as f } from "./icon-badge-
|
|
10
|
-
import { t as p } from "./badge-
|
|
11
|
-
import { a as m, c as h, i as g, n as _, o as v, r as y, s as b, t as x } from "./attachment-
|
|
12
|
-
import { t as S } from "./message-
|
|
13
|
-
import { t as C } from "./code-block-
|
|
3
|
+
import { t as n } from "./utils-Cospvlj1.js";
|
|
4
|
+
import { a as r, s as i, t as a } from "./typography-CAr3dQhX.js";
|
|
5
|
+
import { t as o } from "./button-BS3KDg00.js";
|
|
6
|
+
import { t as s } from "./structure-hzCW-XsV.js";
|
|
7
|
+
import { g as c, m as l, r as u } from "./primitives-BHrwQXFC.js";
|
|
8
|
+
import { t as d } from "./number-CKRBYmZK.js";
|
|
9
|
+
import { t as f } from "./icon-badge-DKlaKXoo.js";
|
|
10
|
+
import { t as p } from "./badge-0tATj-tW.js";
|
|
11
|
+
import { a as m, c as h, i as g, n as _, o as v, r as y, s as b, t as x } from "./attachment-q69dlt5Y.js";
|
|
12
|
+
import { t as S } from "./message-YfFmbXNP.js";
|
|
13
|
+
import { t as C } from "./code-block-CD0B7M93.js";
|
|
14
14
|
import { useEffect as w, useRef as T, useState as E } from "react";
|
|
15
15
|
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
16
|
-
import { AlertCircle as A, Bot as j, Brain as ee, Check as M, ChevronDown as N, ChevronRight as P, Circle as F,
|
|
16
|
+
import { AlertCircle as A, Bot as j, Brain as ee, Check as M, ChevronDown as N, ChevronRight as P, Circle as F, Copy as I, Download as te, ExternalLink as ne, FileText as re, Globe as ie, Loader2 as L, MinusCircle as ae, RotateCcw as oe, User as se, X as R, XCircle as ce } from "lucide-react";
|
|
17
17
|
//#region src/components/blocks/ai/use-copy-feedback.ts
|
|
18
18
|
function z(e, t) {
|
|
19
19
|
let [n, r] = E(!1), [i, a] = E(!1), o = T(!1), s = T(0), c = T(void 0);
|
|
@@ -45,11 +45,11 @@ var B = {
|
|
|
45
45
|
};
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/components/blocks/ai/ai-message-bubble/ai-message-bubble.tsx
|
|
48
|
-
function V({ role: e = "assistant", avatar:
|
|
49
|
-
let _ = t(B, g), v = u ?? (typeof l == "string" ? l : ""), { copied: y, failed: b, copy: x } = z(m, v), C =
|
|
50
|
-
"aria-label":
|
|
48
|
+
function V({ role: e = "assistant", avatar: r, avatarLabel: a, authorName: s, timestamp: c, children: l, plainText: u, loading: d = !1, onCopy: f, onRegenerate: p, onCopyError: m, className: h, strings: g }) {
|
|
49
|
+
let _ = t(B, g), v = u ?? (typeof l == "string" ? l : ""), { copied: y, failed: b, copy: x } = z(m, v), C = r ?? /* @__PURE__ */ O("span", {
|
|
50
|
+
"aria-label": a,
|
|
51
51
|
className: "inline-flex size-avatar-sm shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",
|
|
52
|
-
children: /* @__PURE__ */ O(e === "user" ?
|
|
52
|
+
children: /* @__PURE__ */ O(e === "user" ? se : j, {
|
|
53
53
|
"aria-hidden": "true",
|
|
54
54
|
className: "size-icon-md"
|
|
55
55
|
})
|
|
@@ -64,7 +64,7 @@ function V({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
|
|
|
64
64
|
strings: { loading: _.loading },
|
|
65
65
|
className: n("ai-message-bubble--component", h),
|
|
66
66
|
actions: w ? /* @__PURE__ */ k(D, { children: [
|
|
67
|
-
/* @__PURE__ */ O(
|
|
67
|
+
/* @__PURE__ */ O(o, {
|
|
68
68
|
type: "button",
|
|
69
69
|
tone: "secondary",
|
|
70
70
|
buttonStyle: "ghost",
|
|
@@ -85,7 +85,7 @@ function V({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
|
|
|
85
85
|
type: "success",
|
|
86
86
|
children: _.copied
|
|
87
87
|
}),
|
|
88
|
-
p && /* @__PURE__ */ O(
|
|
88
|
+
p && /* @__PURE__ */ O(o, {
|
|
89
89
|
type: "button",
|
|
90
90
|
tone: "secondary",
|
|
91
91
|
buttonStyle: "ghost",
|
|
@@ -93,7 +93,7 @@ function V({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
|
|
|
93
93
|
iconOnly: !0,
|
|
94
94
|
"aria-label": _.regenerateAria,
|
|
95
95
|
onClick: p,
|
|
96
|
-
children: /* @__PURE__ */ O(
|
|
96
|
+
children: /* @__PURE__ */ O(oe, {
|
|
97
97
|
"aria-hidden": "true",
|
|
98
98
|
className: "size-icon-md"
|
|
99
99
|
})
|
|
@@ -121,22 +121,16 @@ var H = {
|
|
|
121
121
|
args: "Arguments",
|
|
122
122
|
result: "Result",
|
|
123
123
|
durationLabel: "Took"
|
|
124
|
-
},
|
|
125
|
-
pending: {
|
|
126
|
-
tone: "secondary",
|
|
127
|
-
icon: te
|
|
128
|
-
},
|
|
124
|
+
}, le = {
|
|
125
|
+
pending: { tone: "secondary" },
|
|
129
126
|
running: {
|
|
130
|
-
tone: "
|
|
131
|
-
|
|
127
|
+
tone: "info",
|
|
128
|
+
live: !0
|
|
132
129
|
},
|
|
133
130
|
success: { tone: "success" },
|
|
134
|
-
error: {
|
|
135
|
-
tone: "destructive",
|
|
136
|
-
icon: A
|
|
137
|
-
}
|
|
131
|
+
error: { tone: "destructive" }
|
|
138
132
|
};
|
|
139
|
-
function
|
|
133
|
+
function ue({ label: e, ms: t }) {
|
|
140
134
|
return /* @__PURE__ */ k("span", {
|
|
141
135
|
className: "inline-flex shrink-0 items-baseline gap-space-xs",
|
|
142
136
|
children: [/* @__PURE__ */ O(c, {
|
|
@@ -153,7 +147,7 @@ function fe({ label: e, ms: t }) {
|
|
|
153
147
|
})]
|
|
154
148
|
});
|
|
155
149
|
}
|
|
156
|
-
function
|
|
150
|
+
function U({ name: e, status: r, icon: i, args: a, result: c, error: u, durationMs: d, expanded: m, defaultExpanded: h = !1, onExpandedChange: g, className: _, strings: v }) {
|
|
157
151
|
let y = t(H, v), [b, x] = E(h), S = m ?? b, C = (e) => {
|
|
158
152
|
m === void 0 && x(e), g?.(e);
|
|
159
153
|
}, w = {
|
|
@@ -161,21 +155,21 @@ function W({ name: e, status: i, icon: a = ue, args: o, result: c, error: u, dur
|
|
|
161
155
|
running: y.running,
|
|
162
156
|
success: y.success,
|
|
163
157
|
error: y.error
|
|
164
|
-
}, T =
|
|
158
|
+
}, T = le[r], D = !!(a || c || u);
|
|
165
159
|
return /* @__PURE__ */ k("div", {
|
|
166
|
-
className: n("ai-tool-call--component @container/ai-tool-call", "overflow-hidden rounded-radius border border-border/60 bg-card",
|
|
167
|
-
children: [/* @__PURE__ */ k(
|
|
160
|
+
className: n("ai-tool-call--component @container/ai-tool-call", "overflow-hidden rounded-radius border border-border/60 bg-card", r === "error" && "border-destructive/40 bg-destructive/5", _),
|
|
161
|
+
children: [/* @__PURE__ */ k(o, {
|
|
168
162
|
type: "button",
|
|
169
163
|
tone: "secondary",
|
|
170
164
|
buttonStyle: "ghost",
|
|
171
165
|
size: "md",
|
|
172
166
|
onClick: () => D && C(!S),
|
|
173
|
-
className: n("ai-tool-call--trigger h-auto w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/ai-tool-call:flex-nowrap", D ? "cursor-pointer hover:bg-muted/40" : "cursor-default"),
|
|
167
|
+
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/ai-tool-call:flex-nowrap", D ? "cursor-pointer hover:bg-muted/40" : "cursor-default"),
|
|
174
168
|
"aria-expanded": D ? S : void 0,
|
|
175
169
|
"aria-label": D ? S ? y.collapse : y.expand : void 0,
|
|
176
170
|
children: [
|
|
177
|
-
/* @__PURE__ */ O(f, {
|
|
178
|
-
icon:
|
|
171
|
+
!!i && /* @__PURE__ */ O(f, {
|
|
172
|
+
icon: i,
|
|
179
173
|
tone: "neutral",
|
|
180
174
|
size: "md",
|
|
181
175
|
shape: "square"
|
|
@@ -189,11 +183,12 @@ function W({ name: e, status: i, icon: a = ue, args: o, result: c, error: u, dur
|
|
|
189
183
|
}),
|
|
190
184
|
/* @__PURE__ */ k("span", {
|
|
191
185
|
className: "ai-tool-call--meta order-last flex w-full flex-wrap items-center gap-space-sm @md/ai-tool-call:order-none @md/ai-tool-call:w-auto @md/ai-tool-call:flex-nowrap",
|
|
192
|
-
children: [/* @__PURE__ */
|
|
193
|
-
tone:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
186
|
+
children: [/* @__PURE__ */ O(p, {
|
|
187
|
+
tone: T.tone,
|
|
188
|
+
dot: T.live,
|
|
189
|
+
pulse: T.live,
|
|
190
|
+
children: w[r]
|
|
191
|
+
}), !!d && /* @__PURE__ */ O(ue, {
|
|
197
192
|
label: y.durationLabel,
|
|
198
193
|
ms: d
|
|
199
194
|
})]
|
|
@@ -203,35 +198,35 @@ function W({ name: e, status: i, icon: a = ue, args: o, result: c, error: u, dur
|
|
|
203
198
|
}), !!S && D && /* @__PURE__ */ k(s, {
|
|
204
199
|
gap: "md",
|
|
205
200
|
className: "ai-tool-call--details border-t border-border/60 bg-muted/20 px-space-lg py-space-md",
|
|
206
|
-
children: [!!
|
|
201
|
+
children: [!!a && /* @__PURE__ */ O(W, {
|
|
207
202
|
label: y.args,
|
|
208
|
-
children:
|
|
209
|
-
}),
|
|
203
|
+
children: a
|
|
204
|
+
}), r === "error" && u ? /* @__PURE__ */ O(W, {
|
|
210
205
|
label: y.error,
|
|
211
206
|
tone: "destructive",
|
|
212
207
|
children: u
|
|
213
|
-
}) : !!c && /* @__PURE__ */ O(
|
|
208
|
+
}) : !!c && /* @__PURE__ */ O(W, {
|
|
214
209
|
label: y.result,
|
|
215
210
|
children: c
|
|
216
211
|
})]
|
|
217
212
|
})]
|
|
218
213
|
});
|
|
219
214
|
}
|
|
220
|
-
|
|
221
|
-
function
|
|
215
|
+
U.displayName = "AiToolCall";
|
|
216
|
+
function W({ label: e, children: t, tone: i = "neutral" }) {
|
|
222
217
|
return /* @__PURE__ */ k(s, {
|
|
223
218
|
gap: "sm",
|
|
224
219
|
className: "ai-tool-call--detail-block",
|
|
225
|
-
children: [/* @__PURE__ */ O(
|
|
220
|
+
children: [/* @__PURE__ */ O(r, { children: e }), /* @__PURE__ */ O("pre", {
|
|
226
221
|
tabIndex: 0,
|
|
227
|
-
className: n("max-w-full overflow-x-auto rounded-
|
|
222
|
+
className: n("max-w-full overflow-x-auto rounded-inner bg-card px-space-md py-space-md font-mono text-xs leading-relaxed", i === "destructive" && "text-destructive bg-destructive/5"),
|
|
228
223
|
children: t
|
|
229
224
|
})]
|
|
230
225
|
});
|
|
231
226
|
}
|
|
232
227
|
//#endregion
|
|
233
228
|
//#region src/components/blocks/ai/ai-shimmer/ai-shimmer.tsx
|
|
234
|
-
function
|
|
229
|
+
function G({ children: e = "Thinking…", paused: t = !1, duration: r = 2.4, className: a }) {
|
|
235
230
|
if (t) return /* @__PURE__ */ O(i, {
|
|
236
231
|
tag: "span",
|
|
237
232
|
type: "secondary",
|
|
@@ -251,10 +246,10 @@ function K({ children: e = "Thinking…", paused: t = !1, duration: r = 2.4, cla
|
|
|
251
246
|
children: e
|
|
252
247
|
});
|
|
253
248
|
}
|
|
254
|
-
|
|
249
|
+
G.displayName = "AiShimmer";
|
|
255
250
|
//#endregion
|
|
256
251
|
//#region src/components/blocks/ai/ai-code-block/types.ts
|
|
257
|
-
var
|
|
252
|
+
var K = {
|
|
258
253
|
copy: "Copy",
|
|
259
254
|
copied: "Copied",
|
|
260
255
|
copyError: "Could not copy. Please try again.",
|
|
@@ -263,8 +258,8 @@ var q = {
|
|
|
263
258
|
};
|
|
264
259
|
//#endregion
|
|
265
260
|
//#region src/components/blocks/ai/ai-code-block/ai-code-block.tsx
|
|
266
|
-
function
|
|
267
|
-
let o = t(
|
|
261
|
+
function q({ strings: e, className: r, onCopy: i, ...a }) {
|
|
262
|
+
let o = t(K, e);
|
|
268
263
|
return /* @__PURE__ */ O(C, {
|
|
269
264
|
...a,
|
|
270
265
|
className: n("ai-code-block--component", r),
|
|
@@ -277,10 +272,10 @@ function J({ strings: e, className: r, onCopy: i, ...a }) {
|
|
|
277
272
|
}
|
|
278
273
|
});
|
|
279
274
|
}
|
|
280
|
-
|
|
275
|
+
q.displayName = "AiCodeBlock";
|
|
281
276
|
//#endregion
|
|
282
277
|
//#region src/components/blocks/ai/ai-attachment/types.ts
|
|
283
|
-
var
|
|
278
|
+
var J = {
|
|
284
279
|
removeAria: "Remove attachment",
|
|
285
280
|
openAria: "Open attachment",
|
|
286
281
|
uploadProgressAria: "Upload progress",
|
|
@@ -288,8 +283,8 @@ var Y = {
|
|
|
288
283
|
};
|
|
289
284
|
//#endregion
|
|
290
285
|
//#region src/components/blocks/ai/ai-attachment/ai-attachment.tsx
|
|
291
|
-
function
|
|
292
|
-
let C = t(
|
|
286
|
+
function Y({ name: e, meta: r, kind: a = "generic", icon: s, thumbnailUrl: c, progress: l, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: S }) {
|
|
287
|
+
let C = t(J, S), w = !u && typeof l == "number" && l >= 0 && l < 1;
|
|
293
288
|
return /* @__PURE__ */ k(x, {
|
|
294
289
|
name: e,
|
|
295
290
|
layout: "compact",
|
|
@@ -305,7 +300,7 @@ function X({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, pr
|
|
|
305
300
|
alt: ""
|
|
306
301
|
}) : u ? /* @__PURE__ */ O(A, { "aria-hidden": "true" }) : s ? /* @__PURE__ */ O(s, { "aria-hidden": "true" }) : /* @__PURE__ */ O(m, {
|
|
307
302
|
name: e,
|
|
308
|
-
kind:
|
|
303
|
+
kind: a
|
|
309
304
|
})
|
|
310
305
|
}),
|
|
311
306
|
/* @__PURE__ */ k(y, { children: [
|
|
@@ -313,9 +308,9 @@ function X({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, pr
|
|
|
313
308
|
title: e,
|
|
314
309
|
children: e
|
|
315
310
|
}),
|
|
316
|
-
|
|
311
|
+
r && /* @__PURE__ */ O(g, {
|
|
317
312
|
clamp: 1,
|
|
318
|
-
children:
|
|
313
|
+
children: r
|
|
319
314
|
}),
|
|
320
315
|
u && /* @__PURE__ */ O(g, {
|
|
321
316
|
clamp: "none",
|
|
@@ -324,7 +319,7 @@ function X({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, pr
|
|
|
324
319
|
size: "xs",
|
|
325
320
|
type: "error",
|
|
326
321
|
role: "alert",
|
|
327
|
-
children: C.error ??
|
|
322
|
+
children: C.error ?? J.error
|
|
328
323
|
})
|
|
329
324
|
}),
|
|
330
325
|
w && /* @__PURE__ */ O(b, {
|
|
@@ -333,7 +328,7 @@ function X({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, pr
|
|
|
333
328
|
"aria-label": C.uploadProgressAria
|
|
334
329
|
})
|
|
335
330
|
] }),
|
|
336
|
-
f && /* @__PURE__ */ O(_, { children: /* @__PURE__ */ O(
|
|
331
|
+
f && /* @__PURE__ */ O(_, { children: /* @__PURE__ */ O(o, {
|
|
337
332
|
type: "button",
|
|
338
333
|
tone: "secondary",
|
|
339
334
|
buttonStyle: "ghost",
|
|
@@ -349,38 +344,38 @@ function X({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, pr
|
|
|
349
344
|
]
|
|
350
345
|
});
|
|
351
346
|
}
|
|
352
|
-
|
|
347
|
+
Y.displayName = "AiAttachment";
|
|
353
348
|
//#endregion
|
|
354
349
|
//#region src/components/blocks/ai/ai-agent/types.ts
|
|
355
|
-
var
|
|
350
|
+
var X = { statusLabels: {
|
|
356
351
|
idle: "Idle",
|
|
357
352
|
thinking: "Thinking",
|
|
358
353
|
working: "Working",
|
|
359
354
|
done: "Done",
|
|
360
355
|
error: "Error",
|
|
361
356
|
offline: "Offline"
|
|
362
|
-
} },
|
|
357
|
+
} }, de = {
|
|
363
358
|
primary: "bg-primary/15 text-primary-accent",
|
|
364
359
|
success: "bg-success/15 text-success",
|
|
365
|
-
warning: "bg-warning/20 text-warning",
|
|
360
|
+
warning: "bg-warning/20 text-warning-accent",
|
|
366
361
|
destructive: "bg-destructive/15 text-destructive",
|
|
367
362
|
info: "bg-info/15 text-info",
|
|
368
363
|
neutral: "bg-muted text-muted-foreground"
|
|
369
|
-
},
|
|
364
|
+
}, fe = {
|
|
370
365
|
idle: "secondary",
|
|
371
|
-
thinking: "
|
|
372
|
-
working: "
|
|
366
|
+
thinking: "info",
|
|
367
|
+
working: "info",
|
|
373
368
|
done: "success",
|
|
374
369
|
error: "destructive",
|
|
375
370
|
offline: "secondary"
|
|
376
371
|
};
|
|
377
|
-
function
|
|
378
|
-
let h = t(
|
|
372
|
+
function pe({ name: e, icon: r, avatar: a, subtitle: o, tone: c = "primary", status: l, variant: u = "inline", trailing: d, className: f, strings: m }) {
|
|
373
|
+
let h = t(X, m), g = r ?? j, _ = u === "card" ? "size-9" : "size-7", v = u === "card" ? "size-icon" : "size-icon-md", y = a ?? /* @__PURE__ */ O("span", {
|
|
379
374
|
"aria-hidden": !0,
|
|
380
|
-
className: n("inline-flex shrink-0 items-center justify-center rounded-full", _,
|
|
375
|
+
className: n("inline-flex shrink-0 items-center justify-center rounded-full", _, de[c]),
|
|
381
376
|
children: /* @__PURE__ */ O(g, { className: v })
|
|
382
377
|
}), b = !!l && /* @__PURE__ */ k(p, {
|
|
383
|
-
tone:
|
|
378
|
+
tone: fe[l],
|
|
384
379
|
className: "gap-space-xs",
|
|
385
380
|
children: [/* @__PURE__ */ O("span", {
|
|
386
381
|
"aria-hidden": !0,
|
|
@@ -395,7 +390,8 @@ function ge({ name: e, icon: r, avatar: a, subtitle: o, tone: c = "primary", sta
|
|
|
395
390
|
gap: "lg",
|
|
396
391
|
children: [
|
|
397
392
|
y,
|
|
398
|
-
/* @__PURE__ */ k(
|
|
393
|
+
/* @__PURE__ */ k(s, {
|
|
394
|
+
gap: "dense",
|
|
399
395
|
className: "min-w-0 flex-1",
|
|
400
396
|
children: [/* @__PURE__ */ k("div", {
|
|
401
397
|
className: "flex items-center gap-space-md",
|
|
@@ -407,7 +403,7 @@ function ge({ name: e, icon: r, avatar: a, subtitle: o, tone: c = "primary", sta
|
|
|
407
403
|
}), !!o && /* @__PURE__ */ O(i, {
|
|
408
404
|
size: "xs",
|
|
409
405
|
type: "secondary",
|
|
410
|
-
className: "
|
|
406
|
+
className: "line-clamp-1",
|
|
411
407
|
children: o
|
|
412
408
|
})]
|
|
413
409
|
}),
|
|
@@ -448,16 +444,16 @@ function ge({ name: e, icon: r, avatar: a, subtitle: o, tone: c = "primary", sta
|
|
|
448
444
|
]
|
|
449
445
|
});
|
|
450
446
|
}
|
|
451
|
-
|
|
447
|
+
pe.displayName = "AiAgent";
|
|
452
448
|
//#endregion
|
|
453
449
|
//#region src/components/blocks/ai/ai-confirmation/types.ts
|
|
454
|
-
var
|
|
450
|
+
var me = {
|
|
455
451
|
approve: "Approve",
|
|
456
452
|
reject: "Reject",
|
|
457
453
|
pending: "Awaiting your approval",
|
|
458
454
|
approved: "Approved",
|
|
459
455
|
rejected: "Rejected"
|
|
460
|
-
},
|
|
456
|
+
}, he = {
|
|
461
457
|
neutral: {
|
|
462
458
|
ring: "border-border/60 bg-card",
|
|
463
459
|
icon: "neutral"
|
|
@@ -479,39 +475,37 @@ var _e = {
|
|
|
479
475
|
icon: "primary"
|
|
480
476
|
}
|
|
481
477
|
};
|
|
482
|
-
function
|
|
483
|
-
let v = t(
|
|
478
|
+
function ge({ title: e, description: r, icon: a, tone: c = "neutral", status: l = "pending", onApprove: u, onReject: d, approveLabel: p, rejectLabel: m, details: h, className: g, strings: _ }) {
|
|
479
|
+
let v = t(me, _), y = a, b = he[c];
|
|
484
480
|
return /* @__PURE__ */ k("div", {
|
|
485
481
|
role: "region",
|
|
486
482
|
"aria-live": "polite",
|
|
487
483
|
className: n("ai-confirmation--component", "@container/ai-confirmation rounded-radius border p-surface-xs", b.ring, g),
|
|
488
484
|
children: [/* @__PURE__ */ k("div", {
|
|
489
485
|
className: "ai-confirmation--header flex items-start gap-space-lg",
|
|
490
|
-
children: [/* @__PURE__ */ O(f, {
|
|
486
|
+
children: [!!y && /* @__PURE__ */ O(f, {
|
|
491
487
|
icon: y,
|
|
492
488
|
tone: b.icon,
|
|
493
489
|
size: "md",
|
|
494
490
|
shape: "square"
|
|
495
491
|
}), /* @__PURE__ */ k("div", {
|
|
496
492
|
className: "min-w-0 flex-1",
|
|
497
|
-
children: [
|
|
498
|
-
|
|
493
|
+
children: [/* @__PURE__ */ k(s, {
|
|
494
|
+
gap: "normal",
|
|
495
|
+
children: [/* @__PURE__ */ O(i, {
|
|
499
496
|
weight: "semibold",
|
|
500
497
|
children: e
|
|
501
|
-
}),
|
|
502
|
-
!!a && /* @__PURE__ */ O(i, {
|
|
498
|
+
}), !!r && /* @__PURE__ */ O(i, {
|
|
503
499
|
type: "secondary",
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
})
|
|
511
|
-
]
|
|
500
|
+
children: r
|
|
501
|
+
})]
|
|
502
|
+
}), !!h && /* @__PURE__ */ O("div", {
|
|
503
|
+
className: "mt-space-md",
|
|
504
|
+
children: h
|
|
505
|
+
})]
|
|
512
506
|
})]
|
|
513
507
|
}), l === "pending" ? /* @__PURE__ */ k("div", {
|
|
514
|
-
className: "ai-confirmation--footer mt-space-lg flex flex-col items-stretch gap-space-md
|
|
508
|
+
className: "ai-confirmation--footer mt-space-lg flex flex-col items-stretch gap-space-md @sm/ai-confirmation:flex-row @sm/ai-confirmation:items-center @sm/ai-confirmation:justify-between",
|
|
515
509
|
children: [/* @__PURE__ */ O(i, {
|
|
516
510
|
size: "xs",
|
|
517
511
|
type: "secondary",
|
|
@@ -522,21 +516,21 @@ function ye({ title: e, description: a, icon: o, tone: c = "neutral", status: l
|
|
|
522
516
|
justify: "end",
|
|
523
517
|
gap: "md",
|
|
524
518
|
className: "ai-confirmation--actions",
|
|
525
|
-
children: [/* @__PURE__ */
|
|
519
|
+
children: [/* @__PURE__ */ O(o, {
|
|
526
520
|
type: "button",
|
|
527
521
|
tone: "secondary",
|
|
528
522
|
buttonStyle: "ghost",
|
|
529
523
|
onClick: d,
|
|
530
|
-
children:
|
|
531
|
-
}), /* @__PURE__ */
|
|
524
|
+
children: m ?? v.reject
|
|
525
|
+
}), /* @__PURE__ */ O(o, {
|
|
532
526
|
type: "button",
|
|
533
527
|
tone: c === "destructive" ? "destructive" : "primary",
|
|
534
528
|
onClick: u,
|
|
535
|
-
children:
|
|
529
|
+
children: p ?? v.approve
|
|
536
530
|
})]
|
|
537
531
|
})]
|
|
538
532
|
}) : /* @__PURE__ */ O("div", {
|
|
539
|
-
className: "ai-confirmation--footer mt-space-lg flex items-center gap-space-md
|
|
533
|
+
className: "ai-confirmation--footer mt-space-lg flex items-center gap-space-md",
|
|
540
534
|
children: l === "approved" ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { className: "size-icon-md text-success" }), /* @__PURE__ */ O(i, {
|
|
541
535
|
size: "xs",
|
|
542
536
|
type: "success",
|
|
@@ -551,10 +545,10 @@ function ye({ title: e, description: a, icon: o, tone: c = "neutral", status: l
|
|
|
551
545
|
})]
|
|
552
546
|
});
|
|
553
547
|
}
|
|
554
|
-
|
|
548
|
+
ge.displayName = "AiConfirmation";
|
|
555
549
|
//#endregion
|
|
556
550
|
//#region src/components/blocks/ai/ai-sources/types.ts
|
|
557
|
-
var
|
|
551
|
+
var _e = {
|
|
558
552
|
title: "{{count}} sources",
|
|
559
553
|
expand: "Show all sources",
|
|
560
554
|
collapse: "Hide sources",
|
|
@@ -562,27 +556,28 @@ var be = {
|
|
|
562
556
|
};
|
|
563
557
|
//#endregion
|
|
564
558
|
//#region src/components/blocks/ai/ai-sources/ai-sources.tsx
|
|
565
|
-
function
|
|
559
|
+
function ve(e, t) {
|
|
566
560
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
567
561
|
let r = t[n];
|
|
568
562
|
return r === void 0 ? e : String(r);
|
|
569
563
|
});
|
|
570
564
|
}
|
|
571
|
-
function
|
|
572
|
-
let m = e(
|
|
565
|
+
function ye({ sources: t, variant: r = "list", maxAvatars: a = 5, expanded: c, defaultExpanded: l = !1, onExpandedChange: u, onSelect: d, className: f, strings: p }) {
|
|
566
|
+
let m = e(_e, p), [h, g] = E(l), _ = c ?? h, v = (e) => {
|
|
573
567
|
c === void 0 && g(e), u?.(e);
|
|
574
|
-
}, y =
|
|
575
|
-
if (
|
|
568
|
+
}, y = ve(m.title, { count: t.length });
|
|
569
|
+
if (r === "avatars") return /* @__PURE__ */ O(be, {
|
|
576
570
|
sources: t,
|
|
577
|
-
max:
|
|
571
|
+
max: a,
|
|
578
572
|
title: y,
|
|
573
|
+
visitLabel: m.visit,
|
|
579
574
|
onSelect: d,
|
|
580
575
|
className: n("ai-sources--component", f)
|
|
581
576
|
});
|
|
582
577
|
let b = _ ? t : t.slice(0, 0);
|
|
583
578
|
return /* @__PURE__ */ k("div", {
|
|
584
579
|
className: n("ai-sources--component rounded-radius border border-border/60 bg-card", f),
|
|
585
|
-
children: [/* @__PURE__ */ k(
|
|
580
|
+
children: [/* @__PURE__ */ k(o, {
|
|
586
581
|
type: "button",
|
|
587
582
|
tone: "secondary",
|
|
588
583
|
buttonStyle: "ghost",
|
|
@@ -590,9 +585,9 @@ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: c, d
|
|
|
590
585
|
onClick: () => v(!_),
|
|
591
586
|
"aria-expanded": _,
|
|
592
587
|
"aria-label": _ ? m.collapse : m.expand,
|
|
593
|
-
className: n("ai-sources--trigger h-auto w-full justify-start gap-space-md px-surface-xs py-row-y text-left", "rounded-
|
|
588
|
+
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-inner hover:bg-muted/40"),
|
|
594
589
|
children: [
|
|
595
|
-
/* @__PURE__ */ O(
|
|
590
|
+
/* @__PURE__ */ O(xe, { sources: t.slice(0, 4) }),
|
|
596
591
|
/* @__PURE__ */ O(i, {
|
|
597
592
|
weight: "medium",
|
|
598
593
|
className: "flex-1",
|
|
@@ -605,7 +600,8 @@ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: c, d
|
|
|
605
600
|
children: /* @__PURE__ */ O(s, {
|
|
606
601
|
render: /* @__PURE__ */ O("ol", {}),
|
|
607
602
|
gap: "2xs",
|
|
608
|
-
|
|
603
|
+
className: "m-0 list-none p-0 font-sans",
|
|
604
|
+
children: b.map((e, t) => /* @__PURE__ */ O(Ce, {
|
|
609
605
|
source: e,
|
|
610
606
|
index: t + 1,
|
|
611
607
|
onSelect: d ? () => d(e, t) : void 0,
|
|
@@ -615,26 +611,27 @@ function Se({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: c, d
|
|
|
615
611
|
})]
|
|
616
612
|
});
|
|
617
613
|
}
|
|
618
|
-
|
|
619
|
-
function
|
|
620
|
-
let
|
|
614
|
+
ye.displayName = "AiSources";
|
|
615
|
+
function be({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, className: s }) {
|
|
616
|
+
let l = e.slice(0, t), u = e.length - l.length;
|
|
621
617
|
return /* @__PURE__ */ k("div", {
|
|
622
|
-
className: n("inline-flex items-center gap-space-md",
|
|
618
|
+
className: n("inline-flex items-center gap-space-md", s),
|
|
623
619
|
children: [
|
|
624
|
-
/* @__PURE__ */ O(
|
|
625
|
-
sources:
|
|
626
|
-
onSelect:
|
|
620
|
+
/* @__PURE__ */ O(xe, {
|
|
621
|
+
sources: l,
|
|
622
|
+
onSelect: o,
|
|
623
|
+
visitLabel: a
|
|
627
624
|
}),
|
|
628
625
|
/* @__PURE__ */ O(i, {
|
|
629
626
|
size: "xs",
|
|
630
627
|
type: "secondary",
|
|
631
628
|
children: r
|
|
632
629
|
}),
|
|
633
|
-
|
|
630
|
+
u > 0 && /* @__PURE__ */ k(c, {
|
|
634
631
|
size: "xs",
|
|
635
632
|
className: "tabular-nums",
|
|
636
633
|
children: ["+", /* @__PURE__ */ O(d, {
|
|
637
|
-
value:
|
|
634
|
+
value: u,
|
|
638
635
|
size: "xs",
|
|
639
636
|
type: "secondary",
|
|
640
637
|
align: "left"
|
|
@@ -643,55 +640,53 @@ function Ce({ sources: e, max: t, title: r, onSelect: a, className: o }) {
|
|
|
643
640
|
]
|
|
644
641
|
});
|
|
645
642
|
}
|
|
646
|
-
function
|
|
643
|
+
function xe({ sources: e, onSelect: t, visitLabel: r }) {
|
|
647
644
|
return /* @__PURE__ */ O("div", {
|
|
648
|
-
className: "flex -space-x-
|
|
645
|
+
className: n("flex", t ? "gap-space-2xs" : "-space-x-space-sm"),
|
|
649
646
|
children: e.map((e, n) => {
|
|
650
647
|
let i = /* @__PURE__ */ O("span", {
|
|
651
648
|
"aria-hidden": !0,
|
|
652
649
|
title: typeof e.title == "string" ? e.title : void 0,
|
|
653
650
|
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",
|
|
654
|
-
children: /* @__PURE__ */ O(
|
|
651
|
+
children: /* @__PURE__ */ O(Se, { src: e.faviconUrl })
|
|
655
652
|
}, e.id);
|
|
656
|
-
return t ? /* @__PURE__ */ O(
|
|
653
|
+
return t ? /* @__PURE__ */ O("button", {
|
|
657
654
|
type: "button",
|
|
658
|
-
tone: "secondary",
|
|
659
|
-
buttonStyle: "ghost",
|
|
660
|
-
size: "sm",
|
|
661
|
-
iconOnly: !0,
|
|
662
655
|
onClick: () => t(e, n),
|
|
663
|
-
|
|
656
|
+
"aria-label": typeof e.title == "string" ? `${r}: ${e.title}` : r,
|
|
657
|
+
className: "box-border inline-flex size-action-xs shrink-0 items-center justify-center rounded-inner border-0 bg-transparent p-0 font-sans focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
664
658
|
children: i
|
|
665
659
|
}, e.id) : i;
|
|
666
660
|
})
|
|
667
661
|
});
|
|
668
662
|
}
|
|
669
|
-
function
|
|
663
|
+
function Se({ src: e }) {
|
|
670
664
|
let [t, n] = E(!1);
|
|
671
665
|
return w(() => {
|
|
672
666
|
n(!1);
|
|
673
|
-
}, [e]), !e || t ? /* @__PURE__ */ O(
|
|
667
|
+
}, [e]), !e || t ? /* @__PURE__ */ O(ie, { className: "size-icon-sm" }) : /* @__PURE__ */ O("img", {
|
|
674
668
|
src: e,
|
|
675
669
|
alt: "",
|
|
676
670
|
className: "size-full object-cover",
|
|
677
671
|
onError: () => n(!0)
|
|
678
672
|
});
|
|
679
673
|
}
|
|
680
|
-
function
|
|
681
|
-
let c = !!(e.url ||
|
|
674
|
+
function Ce({ source: e, index: t, onSelect: r, visitLabel: o }) {
|
|
675
|
+
let c = !!(e.url || r), l = n("group box-border flex w-full items-start gap-space-lg rounded-inner border-0 bg-transparent px-row-x py-row-y-sm text-left font-sans text-foreground", c && "hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"), u = /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(d, {
|
|
682
676
|
value: t,
|
|
683
677
|
size: "xs",
|
|
684
678
|
weight: "semibold",
|
|
685
679
|
type: "secondary",
|
|
686
680
|
align: "center",
|
|
687
681
|
className: "inline-flex size-icon-lg shrink-0 items-center justify-center rounded-full bg-muted"
|
|
688
|
-
}), /* @__PURE__ */ k(
|
|
682
|
+
}), /* @__PURE__ */ k(s, {
|
|
683
|
+
gap: "dense",
|
|
689
684
|
className: "min-w-0 flex-1",
|
|
690
685
|
children: [
|
|
691
686
|
/* @__PURE__ */ k(i, {
|
|
692
687
|
weight: "medium",
|
|
693
688
|
className: "truncate",
|
|
694
|
-
children: [e.title, !!e.url && /* @__PURE__ */ O(
|
|
689
|
+
children: [e.title, !!e.url && /* @__PURE__ */ O(ne, { className: "ml-1 inline size-icon-sm text-muted-foreground/70 align-baseline" })]
|
|
695
690
|
}),
|
|
696
691
|
!!e.publisher && /* @__PURE__ */ O(i, {
|
|
697
692
|
size: "xs",
|
|
@@ -702,27 +697,25 @@ function Ee({ source: e, index: t, onSelect: a, visitLabel: s }) {
|
|
|
702
697
|
!!e.snippet && /* @__PURE__ */ O(i, {
|
|
703
698
|
size: "xs",
|
|
704
699
|
type: "secondary",
|
|
705
|
-
className: "
|
|
700
|
+
className: "line-clamp-2",
|
|
706
701
|
children: e.snippet
|
|
707
702
|
})
|
|
708
703
|
]
|
|
709
704
|
})] });
|
|
710
|
-
return /* @__PURE__ */ O("li", { children: e.url && !
|
|
705
|
+
return /* @__PURE__ */ O("li", { children: e.url && !r ? /* @__PURE__ */ O(a, {
|
|
711
706
|
href: e.url,
|
|
712
707
|
target: "_blank",
|
|
713
708
|
rel: "noopener noreferrer",
|
|
714
709
|
size: "inherit",
|
|
715
710
|
underline: !1,
|
|
716
711
|
className: l,
|
|
717
|
-
"aria-label":
|
|
712
|
+
"aria-label": o,
|
|
718
713
|
children: u
|
|
719
|
-
}) :
|
|
714
|
+
}) : r ? /* @__PURE__ */ O("button", {
|
|
720
715
|
type: "button",
|
|
721
|
-
|
|
722
|
-
buttonStyle: "ghost",
|
|
723
|
-
onClick: a,
|
|
716
|
+
onClick: r,
|
|
724
717
|
className: n(l, "h-auto justify-start whitespace-normal"),
|
|
725
|
-
"aria-label": e.url ?
|
|
718
|
+
"aria-label": e.url ? o : void 0,
|
|
726
719
|
children: u
|
|
727
720
|
}) : /* @__PURE__ */ O("span", {
|
|
728
721
|
className: l,
|
|
@@ -731,7 +724,7 @@ function Ee({ source: e, index: t, onSelect: a, visitLabel: s }) {
|
|
|
731
724
|
}
|
|
732
725
|
//#endregion
|
|
733
726
|
//#region src/components/blocks/ai/ai-reasoning/types.ts
|
|
734
|
-
var
|
|
727
|
+
var we = {
|
|
735
728
|
thinking: "Thinking…",
|
|
736
729
|
thoughtFor: "Thought for {{duration}}",
|
|
737
730
|
thoughtDone: "Reasoning complete",
|
|
@@ -740,7 +733,7 @@ var De = {
|
|
|
740
733
|
};
|
|
741
734
|
//#endregion
|
|
742
735
|
//#region src/components/blocks/ai/ai-reasoning/ai-reasoning.tsx
|
|
743
|
-
function
|
|
736
|
+
function Te(e, t) {
|
|
744
737
|
let n = e.split(/\{\{\s*duration\s*\}\}/);
|
|
745
738
|
return n.length === 1 ? e : /* @__PURE__ */ k(D, { children: [
|
|
746
739
|
n[0],
|
|
@@ -752,28 +745,28 @@ function Oe(e, t) {
|
|
|
752
745
|
n.slice(1).join("{{duration}}")
|
|
753
746
|
] });
|
|
754
747
|
}
|
|
755
|
-
function
|
|
756
|
-
let p = t(
|
|
748
|
+
function Ee({ children: e, streaming: r = !1, durationSeconds: a, expandWhileStreaming: s = !0, defaultExpanded: c = !1, expanded: l, onExpandedChange: u, className: d, strings: f }) {
|
|
749
|
+
let p = t(we, f), [m, h] = E(c), g = l ?? m, _ = (e) => {
|
|
757
750
|
l === void 0 && h(e), u?.(e);
|
|
758
751
|
};
|
|
759
752
|
w(() => {
|
|
760
|
-
|
|
761
|
-
}, [
|
|
762
|
-
let v =
|
|
753
|
+
r && s && !g && _(!0), !r && s && g && !c && l === void 0 && _(!1);
|
|
754
|
+
}, [r]);
|
|
755
|
+
let v = r ? /* @__PURE__ */ O(G, {
|
|
763
756
|
className: "flex-1",
|
|
764
757
|
children: p.thinking
|
|
765
|
-
}) :
|
|
758
|
+
}) : a === void 0 ? /* @__PURE__ */ O(i, {
|
|
766
759
|
weight: "medium",
|
|
767
760
|
className: "flex-1",
|
|
768
761
|
children: p.thoughtDone
|
|
769
762
|
}) : /* @__PURE__ */ O(i, {
|
|
770
763
|
weight: "medium",
|
|
771
764
|
className: "flex-1",
|
|
772
|
-
children:
|
|
765
|
+
children: Te(p.thoughtFor, a)
|
|
773
766
|
});
|
|
774
767
|
return /* @__PURE__ */ k("div", {
|
|
775
768
|
className: n("ai-reasoning--component", "overflow-hidden rounded-radius border border-border/60 bg-muted/20", d),
|
|
776
|
-
children: [/* @__PURE__ */ k(
|
|
769
|
+
children: [/* @__PURE__ */ k(o, {
|
|
777
770
|
type: "button",
|
|
778
771
|
tone: "secondary",
|
|
779
772
|
buttonStyle: "ghost",
|
|
@@ -781,7 +774,7 @@ function ke({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStr
|
|
|
781
774
|
onClick: () => _(!g),
|
|
782
775
|
"aria-expanded": g,
|
|
783
776
|
"aria-label": g ? p.collapseAria : p.expandAria,
|
|
784
|
-
className: n("ai-reasoning--trigger h-auto w-full justify-start gap-space-md rounded-none px-surface-xs py-row-y text-left", "hover:bg-muted/30"),
|
|
777
|
+
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", "hover:bg-muted/30"),
|
|
785
778
|
children: [
|
|
786
779
|
/* @__PURE__ */ O(ee, { className: "size-icon-md text-muted-foreground" }),
|
|
787
780
|
v,
|
|
@@ -801,13 +794,13 @@ function ke({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStr
|
|
|
801
794
|
})]
|
|
802
795
|
});
|
|
803
796
|
}
|
|
804
|
-
|
|
797
|
+
Ee.displayName = "AiReasoning";
|
|
805
798
|
//#endregion
|
|
806
799
|
//#region src/components/blocks/ai/ai-chain-of-thought/types.ts
|
|
807
|
-
var
|
|
800
|
+
var De = {
|
|
808
801
|
title: "Reasoning",
|
|
809
802
|
streamingHint: "Working through the steps…"
|
|
810
|
-
},
|
|
803
|
+
}, Oe = {
|
|
811
804
|
pending: {
|
|
812
805
|
icon: F,
|
|
813
806
|
iconCls: "text-muted-foreground/60",
|
|
@@ -830,57 +823,55 @@ var Z = {
|
|
|
830
823
|
ring: "border-destructive/40 bg-destructive"
|
|
831
824
|
}
|
|
832
825
|
};
|
|
833
|
-
function
|
|
834
|
-
let u = t(
|
|
826
|
+
function ke({ steps: e, hideHeader: a = !1, streaming: o = !1, className: c, strings: l }) {
|
|
827
|
+
let u = t(De, l);
|
|
835
828
|
return /* @__PURE__ */ k(s, {
|
|
836
|
-
gap: "
|
|
837
|
-
className: n("ai-chain-of-thought--component", "rounded-radius border border-border/60 bg-card", c),
|
|
838
|
-
children: [!
|
|
839
|
-
className: "ai-chain-of-thought--header
|
|
829
|
+
gap: "lg",
|
|
830
|
+
className: n("ai-chain-of-thought--component", "rounded-radius border border-border/60 bg-card p-surface", c),
|
|
831
|
+
children: [!a && /* @__PURE__ */ O("div", {
|
|
832
|
+
className: "ai-chain-of-thought--header",
|
|
840
833
|
children: /* @__PURE__ */ k(s, {
|
|
841
834
|
direction: "horizontal",
|
|
842
835
|
gap: "sm",
|
|
843
836
|
wrap: !1,
|
|
844
|
-
children: [/* @__PURE__ */ O(
|
|
837
|
+
children: [/* @__PURE__ */ O(r, { children: u.title }), o && /* @__PURE__ */ O(G, {
|
|
845
838
|
className: "ml-auto !text-xs",
|
|
846
839
|
children: u.streamingHint
|
|
847
840
|
})]
|
|
848
841
|
})
|
|
849
842
|
}), /* @__PURE__ */ O("ol", {
|
|
850
|
-
className: "ai-chain-of-thought--body relative p-
|
|
843
|
+
className: "ai-chain-of-thought--body relative m-0 list-none p-0 font-sans",
|
|
851
844
|
children: e.map((t, r) => {
|
|
852
|
-
let a = t.status ?? "pending", o =
|
|
845
|
+
let a = t.status ?? "pending", o = Oe[a], c = t.icon ?? o.icon, l = r === e.length - 1;
|
|
853
846
|
return /* @__PURE__ */ k("li", {
|
|
854
847
|
className: "relative flex gap-space-lg pb-space-lg last:pb-0",
|
|
855
848
|
children: [
|
|
856
|
-
!
|
|
849
|
+
!l && /* @__PURE__ */ O("span", {
|
|
857
850
|
"aria-hidden": !0,
|
|
858
851
|
className: "absolute bottom-0 left-[11px] top-[26px] w-px bg-border/60"
|
|
859
852
|
}),
|
|
860
853
|
/* @__PURE__ */ O("span", {
|
|
861
854
|
"aria-hidden": !0,
|
|
862
855
|
className: n("relative z-[1] mt-0.5 inline-flex size-6 shrink-0 items-center justify-center rounded-full border", o.ring),
|
|
863
|
-
children: /* @__PURE__ */ O(
|
|
856
|
+
children: /* @__PURE__ */ O(c, { className: n("size-icon-sm", o.iconCls, o.spin && "animate-spin") })
|
|
864
857
|
}),
|
|
865
858
|
/* @__PURE__ */ k("div", {
|
|
866
859
|
className: "min-w-0 flex-1",
|
|
867
|
-
children: [
|
|
868
|
-
|
|
860
|
+
children: [/* @__PURE__ */ k(s, {
|
|
861
|
+
gap: "dense",
|
|
862
|
+
children: [/* @__PURE__ */ O(i, {
|
|
869
863
|
weight: a === "active" ? "semibold" : "medium",
|
|
870
864
|
className: n(a === "pending" && "text-muted-foreground"),
|
|
871
865
|
children: t.title
|
|
872
|
-
}),
|
|
873
|
-
!!t.description && /* @__PURE__ */ O(i, {
|
|
866
|
+
}), !!t.description && /* @__PURE__ */ O(i, {
|
|
874
867
|
size: "xs",
|
|
875
868
|
type: "secondary",
|
|
876
|
-
className: "mt-0.5",
|
|
877
869
|
children: t.description
|
|
878
|
-
})
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
]
|
|
870
|
+
})]
|
|
871
|
+
}), !!t.body && /* @__PURE__ */ O("div", {
|
|
872
|
+
className: "mt-space-md",
|
|
873
|
+
children: t.body
|
|
874
|
+
})]
|
|
884
875
|
})
|
|
885
876
|
]
|
|
886
877
|
}, t.id);
|
|
@@ -888,10 +879,10 @@ function je({ steps: e, hideHeader: r = !1, streaming: o = !1, className: c, str
|
|
|
888
879
|
})]
|
|
889
880
|
});
|
|
890
881
|
}
|
|
891
|
-
|
|
882
|
+
ke.displayName = "AiChainOfThought";
|
|
892
883
|
//#endregion
|
|
893
884
|
//#region src/components/blocks/ai/ai-task/types.ts
|
|
894
|
-
var
|
|
885
|
+
var Z = {
|
|
895
886
|
statusLabels: {
|
|
896
887
|
queued: "Queued",
|
|
897
888
|
running: "Running",
|
|
@@ -902,7 +893,7 @@ var Me = {
|
|
|
902
893
|
},
|
|
903
894
|
collapseSubtasks: "Collapse subtasks",
|
|
904
895
|
expandSubtasks: "Expand subtasks"
|
|
905
|
-
},
|
|
896
|
+
}, Ae = {
|
|
906
897
|
queued: {
|
|
907
898
|
icon: F,
|
|
908
899
|
cls: "text-muted-foreground/60"
|
|
@@ -921,26 +912,26 @@ var Me = {
|
|
|
921
912
|
cls: "text-destructive"
|
|
922
913
|
},
|
|
923
914
|
cancelled: {
|
|
924
|
-
icon:
|
|
915
|
+
icon: ce,
|
|
925
916
|
cls: "text-muted-foreground"
|
|
926
917
|
},
|
|
927
918
|
skipped: {
|
|
928
|
-
icon:
|
|
919
|
+
icon: ae,
|
|
929
920
|
cls: "text-muted-foreground"
|
|
930
921
|
}
|
|
931
|
-
},
|
|
922
|
+
}, je = {
|
|
932
923
|
queued: "secondary",
|
|
933
|
-
running: "
|
|
924
|
+
running: "info",
|
|
934
925
|
completed: "success",
|
|
935
926
|
failed: "destructive",
|
|
936
927
|
cancelled: "secondary",
|
|
937
928
|
skipped: "secondary"
|
|
938
929
|
};
|
|
939
|
-
function
|
|
940
|
-
let s = t(
|
|
930
|
+
function Me({ task: e, density: r = "compact", indent: i = 18, className: a, strings: o }) {
|
|
931
|
+
let s = t(Z, o);
|
|
941
932
|
return /* @__PURE__ */ O("div", {
|
|
942
933
|
className: n("ai-task--component", "rounded-radius border border-border/60 bg-card", a),
|
|
943
|
-
children: /* @__PURE__ */ O(
|
|
934
|
+
children: /* @__PURE__ */ O(Ne, {
|
|
944
935
|
item: e,
|
|
945
936
|
depth: 0,
|
|
946
937
|
density: r,
|
|
@@ -949,14 +940,14 @@ function Fe({ task: e, density: r = "compact", indent: i = 18, className: a, str
|
|
|
949
940
|
})
|
|
950
941
|
});
|
|
951
942
|
}
|
|
952
|
-
|
|
953
|
-
function
|
|
954
|
-
let c = e.status ?? "queued", l =
|
|
943
|
+
Me.displayName = "AiTask";
|
|
944
|
+
function Ne({ item: e, depth: t, density: r, indent: a, strings: s }) {
|
|
945
|
+
let c = e.status ?? "queued", l = Ae[c], u = e.icon ?? l.icon, d = !!e.children?.length, [f, m] = E(r === "expanded" || t === 0);
|
|
955
946
|
return /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ k("div", {
|
|
956
|
-
className: n("flex items-start gap-space-md px-
|
|
957
|
-
style: {
|
|
947
|
+
className: n("flex items-start gap-space-md px-row-x py-row-y", t > 0 && "border-t border-border/60"),
|
|
948
|
+
style: { paddingInlineStart: `calc(var(--row-x) * var(--space-scale) + ${t * a}px)` },
|
|
958
949
|
children: [
|
|
959
|
-
d ? /* @__PURE__ */ O(
|
|
950
|
+
d ? /* @__PURE__ */ O(o, {
|
|
960
951
|
type: "button",
|
|
961
952
|
tone: "secondary",
|
|
962
953
|
buttonStyle: "ghost",
|
|
@@ -965,7 +956,7 @@ function Ie({ item: e, depth: t, density: a, indent: o, strings: s }) {
|
|
|
965
956
|
onClick: () => m((e) => !e),
|
|
966
957
|
"aria-expanded": f,
|
|
967
958
|
"aria-label": f ? s.collapseSubtasks : s.expandSubtasks,
|
|
968
|
-
className: "-ml-1 mt-0.5 size-icon rounded p-0 text-muted-foreground hover:text-foreground",
|
|
959
|
+
className: "-ml-1 mt-0.5 size-icon rounded-inner p-0 text-muted-foreground hover:text-foreground",
|
|
969
960
|
children: O(f ? N : P, { className: "size-icon-md" })
|
|
970
961
|
}) : /* @__PURE__ */ O("span", {
|
|
971
962
|
"aria-hidden": !0,
|
|
@@ -983,7 +974,7 @@ function Ie({ item: e, depth: t, density: a, indent: o, strings: s }) {
|
|
|
983
974
|
children: e.title
|
|
984
975
|
}),
|
|
985
976
|
/* @__PURE__ */ O(p, {
|
|
986
|
-
tone:
|
|
977
|
+
tone: je[c],
|
|
987
978
|
children: s.statusLabels[c]
|
|
988
979
|
}),
|
|
989
980
|
!!e.rightSlot && /* @__PURE__ */ O("span", {
|
|
@@ -997,11 +988,11 @@ function Ie({ item: e, depth: t, density: a, indent: o, strings: s }) {
|
|
|
997
988
|
})]
|
|
998
989
|
})
|
|
999
990
|
]
|
|
1000
|
-
}), d && f && /* @__PURE__ */ O("div", { children: e.children.map((e) => /* @__PURE__ */ O(
|
|
991
|
+
}), d && f && /* @__PURE__ */ O("div", { children: e.children.map((e) => /* @__PURE__ */ O(Ne, {
|
|
1001
992
|
item: e,
|
|
1002
993
|
depth: t + 1,
|
|
1003
|
-
density:
|
|
1004
|
-
indent:
|
|
994
|
+
density: r,
|
|
995
|
+
indent: a,
|
|
1005
996
|
strings: s
|
|
1006
997
|
}, e.id)) })] });
|
|
1007
998
|
}
|
|
@@ -1018,8 +1009,8 @@ var Q = {
|
|
|
1018
1009
|
};
|
|
1019
1010
|
//#endregion
|
|
1020
1011
|
//#region src/components/blocks/ai/ai-artifact/ai-artifact.tsx
|
|
1021
|
-
function $({ title: e, subtitle:
|
|
1022
|
-
let v = t(Q, _), y =
|
|
1012
|
+
function $({ title: e, subtitle: r, icon: a, copyText: c, children: l, collapsed: u = !1, onOpen: d, actions: p, onDownload: m, onCopyError: h, className: g, strings: _ }) {
|
|
1013
|
+
let v = t(Q, _), y = a ?? re, { copied: b, failed: x, copy: S } = z(h, c);
|
|
1023
1014
|
return /* @__PURE__ */ k("div", {
|
|
1024
1015
|
className: n("ai-artifact--component", "overflow-hidden rounded-radius border border-border/60 bg-card", g),
|
|
1025
1016
|
children: [
|
|
@@ -1042,11 +1033,11 @@ function $({ title: e, subtitle: a, icon: o, copyText: c, children: l, collapsed
|
|
|
1042
1033
|
weight: "semibold",
|
|
1043
1034
|
className: "break-words",
|
|
1044
1035
|
children: e
|
|
1045
|
-
}), !!
|
|
1036
|
+
}), !!r && /* @__PURE__ */ O(i, {
|
|
1046
1037
|
size: "xs",
|
|
1047
1038
|
type: "secondary",
|
|
1048
1039
|
className: "break-words",
|
|
1049
|
-
children:
|
|
1040
|
+
children: r
|
|
1050
1041
|
})]
|
|
1051
1042
|
})]
|
|
1052
1043
|
}), /* @__PURE__ */ k("div", {
|
|
@@ -1054,7 +1045,7 @@ function $({ title: e, subtitle: a, icon: o, copyText: c, children: l, collapsed
|
|
|
1054
1045
|
children: [
|
|
1055
1046
|
p?.map((e) => {
|
|
1056
1047
|
let t = e.icon;
|
|
1057
|
-
return /* @__PURE__ */ k(
|
|
1048
|
+
return /* @__PURE__ */ k(o, {
|
|
1058
1049
|
type: "button",
|
|
1059
1050
|
tone: "secondary",
|
|
1060
1051
|
buttonStyle: "ghost",
|
|
@@ -1062,7 +1053,7 @@ function $({ title: e, subtitle: a, icon: o, copyText: c, children: l, collapsed
|
|
|
1062
1053
|
children: [!!t && /* @__PURE__ */ O(t, { className: "size-icon-md" }), e.label]
|
|
1063
1054
|
}, e.id);
|
|
1064
1055
|
}),
|
|
1065
|
-
!!c && /* @__PURE__ */ O(
|
|
1056
|
+
!!c && /* @__PURE__ */ O(o, {
|
|
1066
1057
|
type: "button",
|
|
1067
1058
|
tone: "secondary",
|
|
1068
1059
|
buttonStyle: "ghost",
|
|
@@ -1074,7 +1065,7 @@ function $({ title: e, subtitle: a, icon: o, copyText: c, children: l, collapsed
|
|
|
1074
1065
|
},
|
|
1075
1066
|
children: b ? /* @__PURE__ */ O(M, { className: "size-icon-md text-success" }) : /* @__PURE__ */ O(I, { className: "size-icon-md" })
|
|
1076
1067
|
}),
|
|
1077
|
-
!!m && /* @__PURE__ */ O(
|
|
1068
|
+
!!m && /* @__PURE__ */ O(o, {
|
|
1078
1069
|
type: "button",
|
|
1079
1070
|
tone: "secondary",
|
|
1080
1071
|
buttonStyle: "ghost",
|
|
@@ -1082,9 +1073,9 @@ function $({ title: e, subtitle: a, icon: o, copyText: c, children: l, collapsed
|
|
|
1082
1073
|
iconOnly: !0,
|
|
1083
1074
|
"aria-label": v.downloadAria,
|
|
1084
1075
|
onClick: m,
|
|
1085
|
-
children: /* @__PURE__ */ O(
|
|
1076
|
+
children: /* @__PURE__ */ O(te, { className: "size-icon-md" })
|
|
1086
1077
|
}),
|
|
1087
|
-
!!d && /* @__PURE__ */ O(
|
|
1078
|
+
!!d && /* @__PURE__ */ O(o, {
|
|
1088
1079
|
type: "button",
|
|
1089
1080
|
tone: "secondary",
|
|
1090
1081
|
buttonStyle: "ghost",
|
|
@@ -1092,7 +1083,7 @@ function $({ title: e, subtitle: a, icon: o, copyText: c, children: l, collapsed
|
|
|
1092
1083
|
iconOnly: !0,
|
|
1093
1084
|
"aria-label": v.openAria,
|
|
1094
1085
|
onClick: d,
|
|
1095
|
-
children: /* @__PURE__ */ O(
|
|
1086
|
+
children: /* @__PURE__ */ O(ne, { className: "size-icon-md" })
|
|
1096
1087
|
})
|
|
1097
1088
|
]
|
|
1098
1089
|
})]
|
|
@@ -1116,6 +1107,6 @@ function $({ title: e, subtitle: a, icon: o, copyText: c, children: l, collapsed
|
|
|
1116
1107
|
}
|
|
1117
1108
|
$.displayName = "AiArtifact";
|
|
1118
1109
|
//#endregion
|
|
1119
|
-
export { B as C, V as S,
|
|
1110
|
+
export { B as C, V as S, q as _, ke as a, U as b, we as c, ge as d, me as f, J as g, Y as h, Z as i, ye as l, X as m, Q as n, De as o, pe as p, Me as r, Ee as s, $ as t, _e as u, K as v, H as x, G as y };
|
|
1120
1111
|
|
|
1121
|
-
//# sourceMappingURL=ai-artifact-
|
|
1112
|
+
//# sourceMappingURL=ai-artifact-2PQ2fItc.js.map
|