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
package/dist/blocks/ai.js
CHANGED
|
@@ -1,49 +1,48 @@
|
|
|
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 {
|
|
7
|
-
import { t as l } from "../progress-
|
|
8
|
-
import { g as u, m as d } from "../primitives-
|
|
9
|
-
import { n as f, t as p } from "../number-
|
|
10
|
-
import { t as m } from "../icon-badge-
|
|
11
|
-
import { t as h } from "../badge-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { useMemo as Se, useState as k } from "react";
|
|
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 { r as s, t as c } from "../structure-hzCW-XsV.js";
|
|
7
|
+
import { t as l } from "../progress-Br9WTFya.js";
|
|
8
|
+
import { g as u, m as d } from "../primitives-BHrwQXFC.js";
|
|
9
|
+
import { n as f, t as p } from "../number-CKRBYmZK.js";
|
|
10
|
+
import { t as m } from "../icon-badge-DKlaKXoo.js";
|
|
11
|
+
import { t as h } from "../badge-0tATj-tW.js";
|
|
12
|
+
import { d as g } from "../text-inputs-BFpku0Qd.js";
|
|
13
|
+
import { a as _, c as v, i as y, n as b, o as x, r as S, t as C, u as w } from "../item-xzh8Df65.js";
|
|
14
|
+
import { g as T } from "../data-display-3xWQUnMA.js";
|
|
15
|
+
import { C as ee, S as E, _ as D, a as te, b as ne, c as re, d as ie, f as ae, g as O, h as oe, i as se, l as ce, m as le, n as ue, o as de, p as fe, r as pe, s as me, t as he, u as ge, v as _e, x as ve, y as ye } from "../ai-artifact-2PQ2fItc.js";
|
|
16
|
+
import { t as be } from "../tree-BotPlyiD.js";
|
|
17
|
+
import { useMemo as xe, useState as k } from "react";
|
|
19
18
|
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
20
|
-
import { ChevronDown as
|
|
19
|
+
import { ChevronDown as Se, ChevronRight as Ce, ExternalLink as N, File as we, FileCode as Te, FileText as P, Folder as Ee, FolderOpen as De, ThumbsDown as Oe, ThumbsUp as F } from "lucide-react";
|
|
21
20
|
//#region src/components/blocks/ai/ai.strings.ts
|
|
22
|
-
var
|
|
21
|
+
var ke = {
|
|
23
22
|
regenerate: "Regenerate",
|
|
24
23
|
confidenceLevels: {
|
|
25
24
|
low: "low",
|
|
26
25
|
medium: "medium",
|
|
27
26
|
high: "high"
|
|
28
27
|
}
|
|
29
|
-
},
|
|
28
|
+
}, Ae = {
|
|
30
29
|
title: "Classification",
|
|
31
30
|
complexityLabel: "Complexity",
|
|
32
31
|
flagsLabel: "Flags",
|
|
33
|
-
nextStepLabel: "Next
|
|
32
|
+
nextStepLabel: "Next step",
|
|
34
33
|
confidencePrefix: "Confidence",
|
|
35
34
|
confidenceBands: {
|
|
36
35
|
low: "Low",
|
|
37
36
|
medium: "Medium",
|
|
38
37
|
high: "High"
|
|
39
38
|
}
|
|
40
|
-
},
|
|
39
|
+
}, je = {
|
|
41
40
|
low: 1,
|
|
42
41
|
medium: 2,
|
|
43
42
|
high: 3
|
|
44
43
|
};
|
|
45
|
-
function
|
|
46
|
-
let r =
|
|
44
|
+
function Me({ level: e, label: t }) {
|
|
45
|
+
let r = je[e];
|
|
47
46
|
return /* @__PURE__ */ M("div", {
|
|
48
47
|
className: "ai-summary--confidence flex items-center gap-space-sm",
|
|
49
48
|
children: [/* @__PURE__ */ j("div", {
|
|
@@ -59,8 +58,8 @@ function Re({ level: e, label: t }) {
|
|
|
59
58
|
})]
|
|
60
59
|
});
|
|
61
60
|
}
|
|
62
|
-
function
|
|
63
|
-
let p = t(
|
|
61
|
+
function Ne({ data: e, children: r, metadata: a, actions: s, footer: l, className: d, strings: f }) {
|
|
62
|
+
let p = t(ke, f), m = /* @__PURE__ */ M("div", {
|
|
64
63
|
className: "ai-summary--metadata flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs",
|
|
65
64
|
children: [!!e.generatedAt && /* @__PURE__ */ j(u, {
|
|
66
65
|
size: "xs",
|
|
@@ -71,12 +70,12 @@ function ze({ data: e, children: a, metadata: o, actions: s, footer: l, classNam
|
|
|
71
70
|
className: "min-w-0 truncate",
|
|
72
71
|
children: e.model
|
|
73
72
|
})]
|
|
74
|
-
}), g = e.onRegenerate ? /* @__PURE__ */
|
|
73
|
+
}), g = e.onRegenerate ? /* @__PURE__ */ j(o, {
|
|
75
74
|
tone: "secondary",
|
|
76
75
|
buttonStyle: "ghost",
|
|
77
76
|
onClick: e.onRegenerate,
|
|
78
|
-
children:
|
|
79
|
-
}) : null, _ =
|
|
77
|
+
children: p.regenerate
|
|
78
|
+
}) : null, _ = a === void 0 ? m : a, v = s === void 0 ? g : s, y = l === void 0 ? (_ || v) && /* @__PURE__ */ M(A, { children: [_, v] }) : l;
|
|
80
79
|
return /* @__PURE__ */ M(c, {
|
|
81
80
|
"data-component": "ai-summary",
|
|
82
81
|
"data-slot": "ai-summary",
|
|
@@ -96,11 +95,11 @@ function ze({ data: e, children: a, metadata: o, actions: s, footer: l, classNam
|
|
|
96
95
|
children: e
|
|
97
96
|
}, e))
|
|
98
97
|
}),
|
|
99
|
-
/* @__PURE__ */ j(
|
|
98
|
+
/* @__PURE__ */ j(Me, {
|
|
100
99
|
level: e.confidence,
|
|
101
100
|
label: p.confidenceLevels[e.confidence]
|
|
102
101
|
}),
|
|
103
|
-
|
|
102
|
+
r,
|
|
104
103
|
!!y && /* @__PURE__ */ j(c, {
|
|
105
104
|
direction: {
|
|
106
105
|
base: "vertical",
|
|
@@ -116,8 +115,8 @@ function ze({ data: e, children: a, metadata: o, actions: s, footer: l, classNam
|
|
|
116
115
|
}
|
|
117
116
|
//#endregion
|
|
118
117
|
//#region src/components/blocks/ai/ai-classification/ai-classification.tsx
|
|
119
|
-
function
|
|
120
|
-
let s = t(
|
|
118
|
+
function Pe({ data: e, children: r, className: a, strings: o }) {
|
|
119
|
+
let s = t(Ae, o), l = e.confidence >= .9 ? s.confidenceBands.high : e.confidence >= .7 ? s.confidenceBands.medium : s.confidenceBands.low;
|
|
121
120
|
return /* @__PURE__ */ M(c, {
|
|
122
121
|
"data-component": "ai-classification",
|
|
123
122
|
"data-slot": "ai-classification",
|
|
@@ -129,10 +128,7 @@ function Be({ data: e, children: r, className: a, strings: o }) {
|
|
|
129
128
|
align: "center",
|
|
130
129
|
gap: "sm",
|
|
131
130
|
children: [
|
|
132
|
-
/* @__PURE__ */ j(h, {
|
|
133
|
-
tone: "primary",
|
|
134
|
-
children: e.requestType
|
|
135
|
-
}),
|
|
131
|
+
/* @__PURE__ */ j(h, { children: e.requestType }),
|
|
136
132
|
/* @__PURE__ */ j(h, {
|
|
137
133
|
tone: e.urgencyTone,
|
|
138
134
|
children: e.urgency
|
|
@@ -144,45 +140,41 @@ function Be({ data: e, children: r, className: a, strings: o }) {
|
|
|
144
140
|
})
|
|
145
141
|
]
|
|
146
142
|
}),
|
|
147
|
-
/* @__PURE__ */ j(
|
|
143
|
+
/* @__PURE__ */ j(T, {
|
|
148
144
|
label: s.complexityLabel,
|
|
149
145
|
labelClassName: "text-sm font-medium text-foreground",
|
|
150
146
|
value: /* @__PURE__ */ M("span", {
|
|
151
|
-
className: "flex items-center gap-space-
|
|
152
|
-
children: [
|
|
147
|
+
className: "flex items-center gap-space-md",
|
|
148
|
+
children: [/* @__PURE__ */ j("span", {
|
|
149
|
+
className: "flex items-center gap-space-xs",
|
|
150
|
+
children: Array.from({ length: 5 }, (t, r) => /* @__PURE__ */ j("span", { className: n("h-1.5 w-3 rounded-radius-sm", r < e.complexityScore ? "bg-foreground/60" : "bg-muted") }, `cx-${String(r)}`))
|
|
151
|
+
}), /* @__PURE__ */ M(i, {
|
|
153
152
|
tag: "span",
|
|
154
153
|
size: "xs",
|
|
155
154
|
type: "secondary",
|
|
156
|
-
className: "ml-1",
|
|
157
155
|
children: [String(e.complexityScore), "/5"]
|
|
158
156
|
})]
|
|
159
157
|
})
|
|
160
158
|
}),
|
|
161
|
-
e.flags.length > 0 && /* @__PURE__ */ j(
|
|
159
|
+
e.flags.length > 0 && /* @__PURE__ */ j(T, {
|
|
162
160
|
label: s.flagsLabel,
|
|
163
161
|
labelClassName: "text-sm font-medium text-foreground",
|
|
164
162
|
value: /* @__PURE__ */ j("span", {
|
|
165
163
|
className: "flex gap-space-xs",
|
|
166
|
-
children: e.flags.map((e) => /* @__PURE__ */ j(h, {
|
|
167
|
-
tone: "warning",
|
|
168
|
-
children: e
|
|
169
|
-
}, e))
|
|
164
|
+
children: e.flags.map((e) => /* @__PURE__ */ j(h, { children: e }, e))
|
|
170
165
|
})
|
|
171
166
|
}),
|
|
172
|
-
/* @__PURE__ */ j(
|
|
167
|
+
/* @__PURE__ */ j(T, {
|
|
173
168
|
label: s.nextStepLabel,
|
|
174
169
|
labelClassName: "text-sm font-medium text-foreground",
|
|
175
|
-
value:
|
|
176
|
-
|
|
177
|
-
children: e.suggestedAction
|
|
178
|
-
})
|
|
170
|
+
value: e.suggestedAction,
|
|
171
|
+
valueClassName: "text-right"
|
|
179
172
|
}),
|
|
180
173
|
/* @__PURE__ */ j(i, {
|
|
181
174
|
lineHeight: "relaxed",
|
|
182
175
|
type: "secondary",
|
|
183
176
|
children: e.summary
|
|
184
177
|
}),
|
|
185
|
-
/* @__PURE__ */ j(g, {}),
|
|
186
178
|
/* @__PURE__ */ M("div", {
|
|
187
179
|
className: "flex items-center gap-space-md",
|
|
188
180
|
children: [/* @__PURE__ */ M(h, {
|
|
@@ -215,11 +207,11 @@ var I = {
|
|
|
215
207
|
};
|
|
216
208
|
//#endregion
|
|
217
209
|
//#region src/components/blocks/ai/ai-confidence/ai-confidence.tsx
|
|
218
|
-
function
|
|
210
|
+
function Fe(e) {
|
|
219
211
|
return e >= .85 ? "success" : e >= .6 ? "warning" : "destructive";
|
|
220
212
|
}
|
|
221
|
-
function L({ score: e, model:
|
|
222
|
-
let d = t(I, u), p = Math.round(e * 100), m =
|
|
213
|
+
function L({ score: e, model: a, factors: o, className: s, strings: u }) {
|
|
214
|
+
let d = t(I, u), p = Math.round(e * 100), m = Fe(e), g = m === "success" ? d.levelHigh : m === "warning" ? d.levelMedium : d.levelLow, _ = 2 * Math.PI * 24, v = _ - p / 100 * _;
|
|
223
215
|
return /* @__PURE__ */ M(c, {
|
|
224
216
|
"data-component": "ai-confidence",
|
|
225
217
|
"data-slot": "ai-confidence",
|
|
@@ -229,7 +221,7 @@ function L({ score: e, model: r, factors: o, className: s, strings: u }) {
|
|
|
229
221
|
children: [/* @__PURE__ */ M("div", {
|
|
230
222
|
className: "grid gap-space-xl @md/ai-confidence:grid-cols-[auto_minmax(0,1fr)] @md/ai-confidence:items-center",
|
|
231
223
|
children: [/* @__PURE__ */ M("div", {
|
|
232
|
-
className: "relative shrink-0",
|
|
224
|
+
className: "relative w-fit shrink-0",
|
|
233
225
|
children: [/* @__PURE__ */ M("svg", {
|
|
234
226
|
width: "56",
|
|
235
227
|
height: "56",
|
|
@@ -254,7 +246,7 @@ function L({ score: e, model: r, factors: o, className: s, strings: u }) {
|
|
|
254
246
|
strokeDasharray: _,
|
|
255
247
|
strokeDashoffset: v,
|
|
256
248
|
transform: "rotate(-90 32 32)",
|
|
257
|
-
className: n(m === "success" && "text-success", m === "warning" && "text-warning", m === "destructive" && "text-destructive")
|
|
249
|
+
className: n(m === "success" && "text-success", m === "warning" && "text-warning-accent", m === "destructive" && "text-destructive")
|
|
258
250
|
})]
|
|
259
251
|
}), /* @__PURE__ */ j("div", {
|
|
260
252
|
className: "absolute inset-0 flex flex-col items-center justify-center",
|
|
@@ -267,33 +259,31 @@ function L({ score: e, model: r, factors: o, className: s, strings: u }) {
|
|
|
267
259
|
})]
|
|
268
260
|
}), /* @__PURE__ */ M(c, {
|
|
269
261
|
gap: "sm",
|
|
270
|
-
children: [/* @__PURE__ */ j(
|
|
262
|
+
children: [/* @__PURE__ */ j(r, { children: d.confidenceLabel }), /* @__PURE__ */ M(c, {
|
|
271
263
|
direction: "horizontal",
|
|
272
264
|
gap: "sm",
|
|
273
265
|
children: [/* @__PURE__ */ j(h, {
|
|
274
266
|
tone: m,
|
|
275
267
|
children: g
|
|
276
|
-
}), !!
|
|
268
|
+
}), !!a && /* @__PURE__ */ j(i, {
|
|
277
269
|
size: "xs",
|
|
278
270
|
type: "secondary",
|
|
279
271
|
className: "truncate",
|
|
280
|
-
children:
|
|
272
|
+
children: a
|
|
281
273
|
})]
|
|
282
274
|
})]
|
|
283
275
|
})]
|
|
284
276
|
}), !!o && o.length > 0 && /* @__PURE__ */ M(c, {
|
|
285
277
|
gap: "md",
|
|
286
|
-
|
|
287
|
-
children: [/* @__PURE__ */ j(a, { children: d.factorsLabel }), o.map((e) => /* @__PURE__ */ M(c, {
|
|
278
|
+
children: [/* @__PURE__ */ j(r, { children: d.factorsLabel }), o.map((e) => /* @__PURE__ */ M(c, {
|
|
288
279
|
gap: "sm",
|
|
289
|
-
children: [/* @__PURE__ */ j(
|
|
280
|
+
children: [/* @__PURE__ */ j(T, {
|
|
290
281
|
label: e.label,
|
|
291
282
|
value: /* @__PURE__ */ j(f, {
|
|
292
283
|
value: e.score,
|
|
293
284
|
size: "xs",
|
|
294
285
|
weight: "semibold"
|
|
295
|
-
})
|
|
296
|
-
mono: !0
|
|
286
|
+
})
|
|
297
287
|
}), /* @__PURE__ */ j(l, {
|
|
298
288
|
value: Math.round(e.score * 100),
|
|
299
289
|
"aria-label": e.label
|
|
@@ -320,26 +310,26 @@ function z({ suggestions: e, onPick: r, className: i, strings: a }) {
|
|
|
320
310
|
children: [/* @__PURE__ */ M(c, {
|
|
321
311
|
gap: "normal",
|
|
322
312
|
className: "ai-prompt-suggestions--intro",
|
|
323
|
-
children: [/* @__PURE__ */ j(
|
|
313
|
+
children: [/* @__PURE__ */ j(w, { children: o.title }), /* @__PURE__ */ j(y, { children: o.hint })]
|
|
324
314
|
}), /* @__PURE__ */ j("div", {
|
|
325
315
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(15rem,100%),1fr))] gap-space-xl",
|
|
326
316
|
children: e.map((e) => {
|
|
327
317
|
let t = e.icon;
|
|
328
|
-
return /* @__PURE__ */ M(
|
|
318
|
+
return /* @__PURE__ */ M(C, {
|
|
329
319
|
variant: "outline",
|
|
330
320
|
render: /* @__PURE__ */ j("button", {
|
|
331
321
|
type: "button",
|
|
332
322
|
onClick: () => r?.(e)
|
|
333
323
|
}),
|
|
334
324
|
className: n("ai-prompt-suggestions--item h-full items-start gap-space-lg p-surface transition-[border-color,background] duration-150", "hover:border-foreground/20 hover:bg-muted/40"),
|
|
335
|
-
children: [!!t && /* @__PURE__ */ j(
|
|
325
|
+
children: [!!t && /* @__PURE__ */ j(v, { children: /* @__PURE__ */ j(m, {
|
|
336
326
|
icon: t,
|
|
337
|
-
tone: "
|
|
327
|
+
tone: "neutral",
|
|
338
328
|
size: "md",
|
|
339
329
|
shape: "square"
|
|
340
|
-
}) }), /* @__PURE__ */ M(
|
|
330
|
+
}) }), /* @__PURE__ */ M(S, {
|
|
341
331
|
className: "min-w-0 gap-space-sm",
|
|
342
|
-
children: [/* @__PURE__ */ j(
|
|
332
|
+
children: [/* @__PURE__ */ j(w, { children: e.label }), !!e.description && /* @__PURE__ */ j(y, { children: e.description })]
|
|
343
333
|
})]
|
|
344
334
|
}, e.id);
|
|
345
335
|
})
|
|
@@ -358,8 +348,8 @@ var B = {
|
|
|
358
348
|
};
|
|
359
349
|
//#endregion
|
|
360
350
|
//#region src/components/blocks/ai/ai-token-usage/ai-token-usage.tsx
|
|
361
|
-
function V({ model: e, inputTokens:
|
|
362
|
-
let g = t(B, m), _ =
|
|
351
|
+
function V({ model: e, inputTokens: a, outputTokens: o, cost: l, maxTokens: u, className: d, strings: m }) {
|
|
352
|
+
let g = t(B, m), _ = a + o, v = u ? Math.min(100, Math.round(_ / u * 100)) : 0;
|
|
363
353
|
return /* @__PURE__ */ M(c, {
|
|
364
354
|
"data-component": "ai-token-usage",
|
|
365
355
|
"data-slot": "ai-token-usage",
|
|
@@ -373,12 +363,12 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: l, maxTokens: u, c
|
|
|
373
363
|
})
|
|
374
364
|
}),
|
|
375
365
|
/* @__PURE__ */ j(s, {
|
|
376
|
-
|
|
366
|
+
columns: 3,
|
|
377
367
|
gap: "md",
|
|
378
368
|
children: [
|
|
379
369
|
{
|
|
380
370
|
label: g.input,
|
|
381
|
-
value:
|
|
371
|
+
value: a
|
|
382
372
|
},
|
|
383
373
|
{
|
|
384
374
|
label: g.output,
|
|
@@ -388,21 +378,18 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: l, maxTokens: u, c
|
|
|
388
378
|
label: g.total,
|
|
389
379
|
value: _
|
|
390
380
|
}
|
|
391
|
-
].map((e) => /* @__PURE__ */
|
|
392
|
-
|
|
393
|
-
children: /* @__PURE__ */
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
align: "left"
|
|
399
|
-
})]
|
|
400
|
-
})
|
|
381
|
+
].map((e) => /* @__PURE__ */ M(c, {
|
|
382
|
+
gap: "2xs",
|
|
383
|
+
children: [/* @__PURE__ */ j(r, { children: e.label }), /* @__PURE__ */ j(p, {
|
|
384
|
+
value: e.value,
|
|
385
|
+
weight: "semibold",
|
|
386
|
+
align: "left"
|
|
387
|
+
})]
|
|
401
388
|
}, e.label))
|
|
402
389
|
}),
|
|
403
|
-
!!u && /* @__PURE__ */ M(
|
|
404
|
-
|
|
405
|
-
children: [/* @__PURE__ */ j(
|
|
390
|
+
!!u && /* @__PURE__ */ M(c, {
|
|
391
|
+
gap: "xs",
|
|
392
|
+
children: [/* @__PURE__ */ j(T, {
|
|
406
393
|
label: /* @__PURE__ */ M("span", {
|
|
407
394
|
className: "inline-flex items-center gap-space-xs",
|
|
408
395
|
children: [
|
|
@@ -431,18 +418,16 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: l, maxTokens: u, c
|
|
|
431
418
|
weight: "semibold",
|
|
432
419
|
align: "right"
|
|
433
420
|
}),
|
|
434
|
-
mono: !0,
|
|
435
421
|
valueClassName: "text-xs font-semibold"
|
|
436
422
|
}), /* @__PURE__ */ j("div", {
|
|
437
|
-
className: "
|
|
423
|
+
className: "h-1.5 w-full overflow-hidden rounded-full bg-muted",
|
|
438
424
|
children: /* @__PURE__ */ j("div", {
|
|
439
425
|
className: "h-full rounded-full bg-primary",
|
|
440
426
|
style: { width: `${v}%` }
|
|
441
427
|
})
|
|
442
428
|
})]
|
|
443
429
|
}),
|
|
444
|
-
!!l && /* @__PURE__ */ j(
|
|
445
|
-
className: "mt-space-lg rounded-radius-md bg-primary/5 p-surface-xs",
|
|
430
|
+
!!l && /* @__PURE__ */ j(T, {
|
|
446
431
|
label: /* @__PURE__ */ j(i, {
|
|
447
432
|
tag: "span",
|
|
448
433
|
size: "xs",
|
|
@@ -451,8 +436,7 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: l, maxTokens: u, c
|
|
|
451
436
|
children: g.cost
|
|
452
437
|
}),
|
|
453
438
|
value: l,
|
|
454
|
-
|
|
455
|
-
valueClassName: "text-sm font-bold"
|
|
439
|
+
valueClassName: "text-sm font-bold tabular-nums"
|
|
456
440
|
})
|
|
457
441
|
]
|
|
458
442
|
});
|
|
@@ -470,13 +454,13 @@ var H = {
|
|
|
470
454
|
};
|
|
471
455
|
//#endregion
|
|
472
456
|
//#region src/components/blocks/ai/ai-feedback/ai-feedback.tsx
|
|
473
|
-
function U({ value: e, onVote:
|
|
474
|
-
let f = t(H, d), [p, m] = k(null), [h,
|
|
457
|
+
function U({ value: e, onVote: r, onSubmitComment: a, allowComment: s = !0, submitted: l = !1, className: u, strings: d }) {
|
|
458
|
+
let f = t(H, d), [p, m] = k(null), [h, _] = k(""), v = e ?? p, y = (t) => {
|
|
475
459
|
let n = v === t ? null : t;
|
|
476
|
-
e === void 0 && m(n),
|
|
460
|
+
e === void 0 && m(n), r?.(n);
|
|
477
461
|
};
|
|
478
462
|
return l ? /* @__PURE__ */ M("div", {
|
|
479
|
-
className: n("ai-feedback--component", "inline-flex items-center gap-space-md rounded-
|
|
463
|
+
className: n("ai-feedback--component", "inline-flex items-center gap-space-md rounded-radius bg-success/10 px-space-lg py-space-sm", u),
|
|
480
464
|
children: [/* @__PURE__ */ j(F, { className: "size-icon-md text-success" }), /* @__PURE__ */ j(i, {
|
|
481
465
|
size: "xs",
|
|
482
466
|
type: "success",
|
|
@@ -493,7 +477,7 @@ function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, subm
|
|
|
493
477
|
type: "secondary",
|
|
494
478
|
children: f.prompt
|
|
495
479
|
}),
|
|
496
|
-
/* @__PURE__ */ j(
|
|
480
|
+
/* @__PURE__ */ j(o, {
|
|
497
481
|
type: "button",
|
|
498
482
|
tone: "secondary",
|
|
499
483
|
buttonStyle: v === "up" ? "solid" : "ghost",
|
|
@@ -505,7 +489,7 @@ function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, subm
|
|
|
505
489
|
className: n(v === "up" && "text-success bg-success/15 hover:bg-success/20"),
|
|
506
490
|
children: /* @__PURE__ */ j(F, { className: "size-icon-md" })
|
|
507
491
|
}),
|
|
508
|
-
/* @__PURE__ */ j(
|
|
492
|
+
/* @__PURE__ */ j(o, {
|
|
509
493
|
type: "button",
|
|
510
494
|
tone: "secondary",
|
|
511
495
|
buttonStyle: v === "down" ? "solid" : "ghost",
|
|
@@ -514,25 +498,26 @@ function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, subm
|
|
|
514
498
|
"aria-label": f.thumbsDownAria,
|
|
515
499
|
"aria-pressed": v === "down",
|
|
516
500
|
onClick: () => y("down"),
|
|
517
|
-
className: n(v === "down" && "text-destructive bg-destructive/
|
|
518
|
-
children: /* @__PURE__ */ j(
|
|
501
|
+
className: n(v === "down" && "text-destructive bg-destructive/10 hover:bg-destructive/10"),
|
|
502
|
+
children: /* @__PURE__ */ j(Oe, { className: "size-icon-md" })
|
|
519
503
|
})
|
|
520
504
|
]
|
|
521
505
|
}), !!s && !!v && /* @__PURE__ */ M(c, {
|
|
522
506
|
gap: "md",
|
|
523
|
-
children: [/* @__PURE__ */ j(
|
|
507
|
+
children: [/* @__PURE__ */ j(g, {
|
|
524
508
|
value: h,
|
|
525
|
-
onChange: (e) =>
|
|
509
|
+
onChange: (e) => _(e.target.value),
|
|
526
510
|
placeholder: f.commentPlaceholder,
|
|
527
511
|
minRows: 2
|
|
528
512
|
}), /* @__PURE__ */ j(c, {
|
|
529
513
|
direction: "horizontal",
|
|
530
514
|
gap: "none",
|
|
531
515
|
justify: "end",
|
|
532
|
-
children: /* @__PURE__ */ j(
|
|
516
|
+
children: /* @__PURE__ */ j(o, {
|
|
517
|
+
tone: "primary",
|
|
533
518
|
type: "button",
|
|
534
519
|
onClick: () => {
|
|
535
|
-
|
|
520
|
+
a?.(h, v), _("");
|
|
536
521
|
},
|
|
537
522
|
disabled: !h.trim(),
|
|
538
523
|
children: f.submit
|
|
@@ -555,36 +540,32 @@ var W = {
|
|
|
555
540
|
};
|
|
556
541
|
//#endregion
|
|
557
542
|
//#region src/components/blocks/ai/ai-citation/ai-citation.tsx
|
|
558
|
-
function G({ sources: t, expanded:
|
|
559
|
-
let f = e(W, d), [p, m] = k(
|
|
560
|
-
|
|
543
|
+
function G({ sources: t, expanded: r, defaultExpanded: a = !1, onExpandedChange: s, maxCollapsedRows: l = 0, className: u, strings: d }) {
|
|
544
|
+
let f = e(W, d), [p, m] = k(a), h = r ?? p, g = (e) => {
|
|
545
|
+
r === void 0 && m(e), s?.(e);
|
|
561
546
|
}, _ = h ? t : t.slice(0, Math.max(0, l)), v = t.length - _.length;
|
|
562
547
|
return /* @__PURE__ */ j("div", {
|
|
563
548
|
className: n("ai-citation--component", "rounded-radius border border-border bg-card px-surface-xs py-surface-xs shadow-xs", u),
|
|
564
549
|
children: /* @__PURE__ */ M(c, {
|
|
565
550
|
gap: "lg",
|
|
566
|
-
children: [/* @__PURE__ */ M(
|
|
551
|
+
children: [/* @__PURE__ */ M(o, {
|
|
567
552
|
type: "button",
|
|
568
553
|
tone: "secondary",
|
|
569
554
|
buttonStyle: "ghost",
|
|
570
555
|
size: "sm",
|
|
571
556
|
onClick: () => g(!h),
|
|
572
|
-
className: n("ai-citation--trigger h-auto justify-start gap-space-sm rounded-
|
|
557
|
+
className: n("ai-citation--trigger h-auto min-h-0 justify-start gap-space-sm rounded-inner px-control py-row-y", "text-muted-foreground hover:text-foreground hover:bg-muted/40"),
|
|
573
558
|
"aria-expanded": h,
|
|
574
559
|
"aria-label": h ? f.collapse : f.expand,
|
|
575
|
-
children: [
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}),
|
|
585
|
-
j(h ? Ce : we, { className: "size-icon-md" })
|
|
586
|
-
]
|
|
587
|
-
}), (h || l > 0) && /* @__PURE__ */ M(S, { children: [_.map((e, t) => /* @__PURE__ */ j(He, {
|
|
560
|
+
children: [/* @__PURE__ */ M(i, {
|
|
561
|
+
weight: "medium",
|
|
562
|
+
children: [
|
|
563
|
+
f.title,
|
|
564
|
+
" · ",
|
|
565
|
+
f.sourceCount(t.length)
|
|
566
|
+
]
|
|
567
|
+
}), j(h ? Se : Ce, { className: "size-icon-md" })]
|
|
568
|
+
}), (h || l > 0) && /* @__PURE__ */ M(x, { children: [_.map((e, t) => /* @__PURE__ */ j(Ie, {
|
|
588
569
|
source: e,
|
|
589
570
|
index: t + 1,
|
|
590
571
|
strings: f
|
|
@@ -597,18 +578,18 @@ function G({ sources: t, expanded: a, defaultExpanded: o = !1, onExpandedChange:
|
|
|
597
578
|
});
|
|
598
579
|
}
|
|
599
580
|
G.displayName = "AiCitation";
|
|
600
|
-
function
|
|
581
|
+
function Ie({ source: e, index: t, strings: r }) {
|
|
601
582
|
let a = typeof e.relevance == "number" ? Math.round(Math.max(0, Math.min(1, e.relevance)) * 100) : null, o = e.url ? "a" : "span", s = e.url ? {
|
|
602
583
|
href: e.url,
|
|
603
584
|
target: "_blank",
|
|
604
585
|
rel: "noopener noreferrer"
|
|
605
586
|
} : {};
|
|
606
|
-
return /* @__PURE__ */ M(
|
|
587
|
+
return /* @__PURE__ */ M(C, {
|
|
607
588
|
variant: "outline",
|
|
608
589
|
size: "sm",
|
|
609
590
|
className: "items-start px-surface-xs py-surface-xs",
|
|
610
591
|
children: [
|
|
611
|
-
/* @__PURE__ */ j(
|
|
592
|
+
/* @__PURE__ */ j(v, { children: /* @__PURE__ */ j(p, {
|
|
612
593
|
value: t,
|
|
613
594
|
size: "xs",
|
|
614
595
|
weight: "semibold",
|
|
@@ -616,8 +597,8 @@ function He({ source: e, index: t, strings: r }) {
|
|
|
616
597
|
align: "center",
|
|
617
598
|
className: "inline-flex size-icon-lg shrink-0 items-center justify-center rounded-full bg-muted"
|
|
618
599
|
}) }),
|
|
619
|
-
/* @__PURE__ */ M(
|
|
620
|
-
/* @__PURE__ */ j(
|
|
600
|
+
/* @__PURE__ */ M(S, { children: [
|
|
601
|
+
/* @__PURE__ */ j(w, {
|
|
621
602
|
className: "truncate",
|
|
622
603
|
children: /* @__PURE__ */ M(o, {
|
|
623
604
|
...s,
|
|
@@ -625,11 +606,11 @@ function He({ source: e, index: t, strings: r }) {
|
|
|
625
606
|
children: [e.title, !!e.url && /* @__PURE__ */ j(N, { className: "ml-1 inline size-icon-sm align-baseline" })]
|
|
626
607
|
})
|
|
627
608
|
}),
|
|
628
|
-
!!e.snippet && /* @__PURE__ */ j(
|
|
609
|
+
!!e.snippet && /* @__PURE__ */ j(y, {
|
|
629
610
|
clamp: 2,
|
|
630
611
|
children: e.snippet
|
|
631
612
|
}),
|
|
632
|
-
(e.publisher || e.publishedAt) && /* @__PURE__ */ M(
|
|
613
|
+
(e.publisher || e.publishedAt) && /* @__PURE__ */ M(_, {
|
|
633
614
|
className: "mt-1 justify-start gap-space-sm",
|
|
634
615
|
children: [
|
|
635
616
|
!!e.publisher && /* @__PURE__ */ j(i, {
|
|
@@ -650,7 +631,7 @@ function He({ source: e, index: t, strings: r }) {
|
|
|
650
631
|
]
|
|
651
632
|
})
|
|
652
633
|
] }),
|
|
653
|
-
a !== null && /* @__PURE__ */ M(
|
|
634
|
+
a !== null && /* @__PURE__ */ M(b, {
|
|
654
635
|
className: "w-16 flex-col items-end gap-space-2xs",
|
|
655
636
|
children: [/* @__PURE__ */ j(f, {
|
|
656
637
|
value: a,
|
|
@@ -682,26 +663,26 @@ var K = {
|
|
|
682
663
|
};
|
|
683
664
|
//#endregion
|
|
684
665
|
//#region src/components/blocks/ai/ai-inline-citation/ai-inline-citation.tsx
|
|
685
|
-
function
|
|
666
|
+
function Le(e, t) {
|
|
686
667
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
687
668
|
let r = t[n];
|
|
688
669
|
return r === void 0 ? e : String(r);
|
|
689
670
|
});
|
|
690
671
|
}
|
|
691
|
-
function q({ index: t, title:
|
|
692
|
-
let
|
|
672
|
+
function q({ index: t, title: r, url: o, onSelect: s, className: c, strings: l }) {
|
|
673
|
+
let u = e(K, l), d = Le(u.openAria, {
|
|
693
674
|
n: t,
|
|
694
|
-
title:
|
|
695
|
-
}),
|
|
696
|
-
return
|
|
697
|
-
href:
|
|
675
|
+
title: r ?? ""
|
|
676
|
+
}), f = r ? `${u.sourcePrefix} ${t}: ${r}` : `${u.sourcePrefix} ${t}`, p = n("box-border inline-flex h-action-xs min-w-action-xs -translate-y-px items-center justify-center rounded-inner border-0 px-control-xs font-sans", "align-middle tabular-nums", "bg-muted text-muted-foreground", "hover:bg-primary/10 hover:text-primary-accent", "transition-colors duration-150", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", c);
|
|
677
|
+
return o ? /* @__PURE__ */ j(a, {
|
|
678
|
+
href: o,
|
|
698
679
|
size: "inherit",
|
|
699
680
|
underline: !1,
|
|
700
681
|
target: "_blank",
|
|
701
682
|
rel: "noopener noreferrer",
|
|
702
|
-
title:
|
|
703
|
-
"aria-label":
|
|
704
|
-
className: n("ai-inline-citation--component",
|
|
683
|
+
title: f,
|
|
684
|
+
"aria-label": d,
|
|
685
|
+
className: n("ai-inline-citation--component", p),
|
|
705
686
|
children: /* @__PURE__ */ j(i, {
|
|
706
687
|
tag: "span",
|
|
707
688
|
size: "xs",
|
|
@@ -709,15 +690,12 @@ function q({ index: t, title: a, url: s, onSelect: c, className: l, strings: u }
|
|
|
709
690
|
className: "leading-none",
|
|
710
691
|
children: t
|
|
711
692
|
})
|
|
712
|
-
}) :
|
|
693
|
+
}) : s ? /* @__PURE__ */ j("button", {
|
|
713
694
|
type: "button",
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
title: p,
|
|
719
|
-
"aria-label": f,
|
|
720
|
-
className: n("ai-inline-citation--component", m),
|
|
695
|
+
onClick: s,
|
|
696
|
+
title: f,
|
|
697
|
+
"aria-label": d,
|
|
698
|
+
className: n("ai-inline-citation--component", p),
|
|
721
699
|
children: /* @__PURE__ */ j(i, {
|
|
722
700
|
tag: "span",
|
|
723
701
|
size: "xs",
|
|
@@ -726,9 +704,9 @@ function q({ index: t, title: a, url: s, onSelect: c, className: l, strings: u }
|
|
|
726
704
|
children: t
|
|
727
705
|
})
|
|
728
706
|
}) : /* @__PURE__ */ j("span", {
|
|
729
|
-
title:
|
|
730
|
-
"aria-label":
|
|
731
|
-
className: n("ai-inline-citation--component",
|
|
707
|
+
title: f,
|
|
708
|
+
"aria-label": d,
|
|
709
|
+
className: n("ai-inline-citation--component", p),
|
|
732
710
|
children: /* @__PURE__ */ j(i, {
|
|
733
711
|
tag: "span",
|
|
734
712
|
size: "xs",
|
|
@@ -753,35 +731,35 @@ var J = {
|
|
|
753
731
|
};
|
|
754
732
|
//#endregion
|
|
755
733
|
//#region src/components/blocks/ai/ai-package-info/ai-package-info.tsx
|
|
756
|
-
function Y({ name: e, version:
|
|
757
|
-
let b = t(J, y), x = /* @__PURE__ */
|
|
758
|
-
"aria-hidden": !0,
|
|
759
|
-
className: "inline-flex size-9 shrink-0 items-center justify-center rounded-radius-md bg-muted text-muted-foreground",
|
|
760
|
-
children: /* @__PURE__ */ j(P, { className: "size-icon" })
|
|
761
|
-
}), /* @__PURE__ */ M("div", {
|
|
734
|
+
function Y({ name: e, version: r, description: s, license: l, publishedAt: u, homepage: f, repository: p, weeklyDownloads: m, keywords: g, onSelect: _, className: v, strings: y }) {
|
|
735
|
+
let b = t(J, y), x = /* @__PURE__ */ j(A, { children: /* @__PURE__ */ M("div", {
|
|
762
736
|
className: "min-w-0 flex-1",
|
|
763
737
|
children: [
|
|
764
|
-
/* @__PURE__ */ M(
|
|
765
|
-
|
|
766
|
-
children: [/* @__PURE__ */
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
738
|
+
/* @__PURE__ */ M(c, {
|
|
739
|
+
gap: "dense",
|
|
740
|
+
children: [/* @__PURE__ */ M(c, {
|
|
741
|
+
direction: "horizontal",
|
|
742
|
+
gap: "md",
|
|
743
|
+
align: "center",
|
|
744
|
+
children: [/* @__PURE__ */ j(d, {
|
|
745
|
+
weight: "semibold",
|
|
746
|
+
className: "truncate",
|
|
747
|
+
children: e
|
|
748
|
+
}), !!r && /* @__PURE__ */ j(h, {
|
|
749
|
+
tone: "secondary",
|
|
750
|
+
children: /* @__PURE__ */ M(d, {
|
|
751
|
+
size: "xs",
|
|
752
|
+
className: "text-inherit",
|
|
753
|
+
children: ["v", r.replace(/^v/, "")]
|
|
754
|
+
})
|
|
755
|
+
})]
|
|
756
|
+
}), !!s && /* @__PURE__ */ j(i, {
|
|
757
|
+
size: "xs",
|
|
758
|
+
type: "secondary",
|
|
759
|
+
className: "line-clamp-2",
|
|
760
|
+
children: s
|
|
777
761
|
})]
|
|
778
762
|
}),
|
|
779
|
-
!!s && /* @__PURE__ */ j(i, {
|
|
780
|
-
size: "xs",
|
|
781
|
-
type: "secondary",
|
|
782
|
-
className: "mt-1 line-clamp-2",
|
|
783
|
-
children: s
|
|
784
|
-
}),
|
|
785
763
|
(l || u || m !== void 0) && /* @__PURE__ */ M("div", {
|
|
786
764
|
className: "mt-space-md flex flex-wrap items-center gap-x-space-lg gap-y-space-xs",
|
|
787
765
|
children: [
|
|
@@ -807,27 +785,27 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
807
785
|
}, e))
|
|
808
786
|
})
|
|
809
787
|
]
|
|
810
|
-
})
|
|
788
|
+
}) }), S = "ai-package-info--body flex w-full items-start gap-space-lg p-surface-xs text-left";
|
|
811
789
|
return /* @__PURE__ */ M("div", {
|
|
812
790
|
className: n("ai-package-info--component block w-full overflow-hidden rounded-radius border border-border/60 bg-card", v),
|
|
813
|
-
children: [_ ? /* @__PURE__ */ j(
|
|
791
|
+
children: [_ ? /* @__PURE__ */ j(o, {
|
|
814
792
|
type: "button",
|
|
815
793
|
tone: "secondary",
|
|
816
794
|
buttonStyle: "ghost",
|
|
817
795
|
onClick: _,
|
|
818
|
-
className: n(S, "h-auto justify-start rounded-none whitespace-normal transition-colors hover:bg-muted/40"),
|
|
796
|
+
className: n(S, "h-auto min-h-0 justify-start rounded-none whitespace-normal transition-colors hover:bg-muted/40"),
|
|
819
797
|
children: x
|
|
820
798
|
}) : /* @__PURE__ */ j("div", {
|
|
821
799
|
className: S,
|
|
822
800
|
children: x
|
|
823
801
|
}), (f || p) && /* @__PURE__ */ j("div", {
|
|
824
|
-
className: "ai-package-info--footer
|
|
802
|
+
className: "ai-package-info--footer px-surface-xs pb-surface-xs",
|
|
825
803
|
children: /* @__PURE__ */ M(c, {
|
|
826
804
|
direction: "horizontal",
|
|
827
805
|
align: "center",
|
|
828
806
|
gap: "md",
|
|
829
807
|
children: [
|
|
830
|
-
!!f && /* @__PURE__ */ M(
|
|
808
|
+
!!f && /* @__PURE__ */ M(a, {
|
|
831
809
|
href: f,
|
|
832
810
|
size: "inherit",
|
|
833
811
|
underline: !1,
|
|
@@ -836,15 +814,11 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
836
814
|
onClick: (e) => e.stopPropagation(),
|
|
837
815
|
"aria-label": b.homepageAria,
|
|
838
816
|
className: "inline-flex items-center gap-space-xs rounded text-muted-foreground hover:text-foreground",
|
|
839
|
-
children: [
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
children: b.homepageLabel
|
|
845
|
-
}),
|
|
846
|
-
/* @__PURE__ */ j(N, { className: "size-icon-sm" })
|
|
847
|
-
]
|
|
817
|
+
children: [/* @__PURE__ */ j(i, {
|
|
818
|
+
tag: "span",
|
|
819
|
+
weight: "medium",
|
|
820
|
+
children: b.homepageLabel
|
|
821
|
+
}), /* @__PURE__ */ j(N, { className: "size-icon-sm" })]
|
|
848
822
|
}),
|
|
849
823
|
!!f && !!p && /* @__PURE__ */ j(i, {
|
|
850
824
|
tag: "span",
|
|
@@ -854,7 +828,7 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
854
828
|
"aria-hidden": !0,
|
|
855
829
|
children: "·"
|
|
856
830
|
}),
|
|
857
|
-
!!p && /* @__PURE__ */ M(
|
|
831
|
+
!!p && /* @__PURE__ */ M(a, {
|
|
858
832
|
href: p,
|
|
859
833
|
size: "inherit",
|
|
860
834
|
underline: !1,
|
|
@@ -863,15 +837,11 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
863
837
|
onClick: (e) => e.stopPropagation(),
|
|
864
838
|
"aria-label": b.repositoryAria,
|
|
865
839
|
className: "inline-flex items-center gap-space-xs rounded text-muted-foreground hover:text-foreground",
|
|
866
|
-
children: [
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
children: b.repositoryLabel
|
|
872
|
-
}),
|
|
873
|
-
/* @__PURE__ */ j(N, { className: "size-icon-sm" })
|
|
874
|
-
]
|
|
840
|
+
children: [/* @__PURE__ */ j(i, {
|
|
841
|
+
tag: "span",
|
|
842
|
+
weight: "medium",
|
|
843
|
+
children: b.repositoryLabel
|
|
844
|
+
}), /* @__PURE__ */ j(N, { className: "size-icon-sm" })]
|
|
875
845
|
})
|
|
876
846
|
]
|
|
877
847
|
})
|
|
@@ -906,18 +876,18 @@ var Z = {
|
|
|
906
876
|
removed: "D",
|
|
907
877
|
renamed: "R"
|
|
908
878
|
}
|
|
909
|
-
},
|
|
879
|
+
}, Re = {
|
|
910
880
|
added: "success",
|
|
911
881
|
modified: "warning",
|
|
912
882
|
removed: "destructive",
|
|
913
883
|
renamed: "info"
|
|
914
|
-
},
|
|
884
|
+
}, ze = {
|
|
915
885
|
added: "text-success",
|
|
916
886
|
modified: "text-warning-accent",
|
|
917
887
|
removed: "text-destructive",
|
|
918
888
|
renamed: "text-info"
|
|
919
889
|
};
|
|
920
|
-
function
|
|
890
|
+
function Be(e) {
|
|
921
891
|
let t = e.split(".").pop()?.toLowerCase() ?? "";
|
|
922
892
|
return [
|
|
923
893
|
"ts",
|
|
@@ -934,20 +904,20 @@ function Ke(e) {
|
|
|
934
904
|
"py",
|
|
935
905
|
"rs",
|
|
936
906
|
"go"
|
|
937
|
-
].includes(t) ?
|
|
907
|
+
].includes(t) ? Te : [
|
|
938
908
|
"md",
|
|
939
909
|
"mdx",
|
|
940
910
|
"txt"
|
|
941
|
-
].includes(t) ?
|
|
911
|
+
].includes(t) ? P : we;
|
|
942
912
|
}
|
|
943
913
|
function Q(e, t = 0) {
|
|
944
914
|
return e.flatMap((e) => [...e.kind === "directory" && (e.defaultExpanded ?? t < 1) ? [e.id] : [], ...Q(e.children ?? [], t + 1)]);
|
|
945
915
|
}
|
|
946
916
|
function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, indent: o, density: s = "compact", disabled: l, expandedIds: f, defaultExpandedIds: p, onExpandedIdsChange: m, className: g, strings: _, ...v }) {
|
|
947
|
-
let y = t(Z, _), [b, x] = k(() => p ?? Q(e)), S = f ?? b, C =
|
|
917
|
+
let y = t(Z, _), [b, x] = k(() => p ?? Q(e)), S = f ?? b, C = xe(() => {
|
|
948
918
|
function t(e) {
|
|
949
919
|
return e.map((e) => {
|
|
950
|
-
let r = e.kind === "directory", i = e.icon ?? (r ? S.includes(e.id) ?
|
|
920
|
+
let r = e.kind === "directory", i = e.icon ?? (r ? S.includes(e.id) ? De : Ee : Be(e.name));
|
|
951
921
|
return {
|
|
952
922
|
value: e.id,
|
|
953
923
|
label: e.name,
|
|
@@ -957,7 +927,7 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
|
|
|
957
927
|
children: r ? t(e.children ?? []) : void 0,
|
|
958
928
|
icon: /* @__PURE__ */ j(i, {
|
|
959
929
|
"aria-hidden": "true",
|
|
960
|
-
className: n("size-icon", e.status &&
|
|
930
|
+
className: n("size-icon", e.status && ze[e.status])
|
|
961
931
|
}),
|
|
962
932
|
trailing: /* @__PURE__ */ M(c, {
|
|
963
933
|
direction: "horizontal",
|
|
@@ -965,7 +935,7 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
|
|
|
965
935
|
align: "center",
|
|
966
936
|
className: "shrink-0",
|
|
967
937
|
children: [e.status && !a && /* @__PURE__ */ j(h, {
|
|
968
|
-
tone:
|
|
938
|
+
tone: Re[e.status],
|
|
969
939
|
size: "sm",
|
|
970
940
|
title: e.status,
|
|
971
941
|
children: y.statusLabels[e.status]
|
|
@@ -985,7 +955,7 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
|
|
|
985
955
|
a,
|
|
986
956
|
y.statusLabels
|
|
987
957
|
]);
|
|
988
|
-
return /* @__PURE__ */ j(
|
|
958
|
+
return /* @__PURE__ */ j(be, {
|
|
989
959
|
...v,
|
|
990
960
|
"aria-label": v["aria-label"] ?? y.treeAria,
|
|
991
961
|
items: C,
|
|
@@ -1016,6 +986,6 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
|
|
|
1016
986
|
}
|
|
1017
987
|
$.displayName = "AiFileTree";
|
|
1018
988
|
//#endregion
|
|
1019
|
-
export {
|
|
989
|
+
export { fe as AiAgent, he as AiArtifact, oe as AiAttachment, te as AiChainOfThought, G as AiCitation, Pe as AiClassificationPanel, D as AiCodeBlock, L as AiConfidence, ie as AiConfirmation, U as AiFeedback, $ as AiFileTree, q as AiInlineCitation, E as AiMessageBubble, Y as AiPackageInfo, z as AiPromptSuggestions, me as AiReasoning, ye as AiShimmer, ce as AiSources, Ne as AiSummaryBlock, pe as AiTask, V as AiTokenUsage, ne as AiToolCall, le as defaultAiAgentStrings, ue as defaultAiArtifactStrings, O as defaultAiAttachmentStrings, de as defaultAiChainOfThoughtStrings, W as defaultAiCitationStrings, _e as defaultAiCodeBlockStrings, I as defaultAiConfidenceStrings, ae as defaultAiConfirmationStrings, H as defaultAiFeedbackStrings, Z as defaultAiFileTreeStrings, K as defaultAiInlineCitationStrings, ee as defaultAiMessageBubbleStrings, J as defaultAiPackageInfoStrings, R as defaultAiPromptSuggestionsStrings, re as defaultAiReasoningStrings, ge as defaultAiSourcesStrings, se as defaultAiTaskStrings, B as defaultAiTokenUsageStrings, ve as defaultAiToolCallStrings };
|
|
1020
990
|
|
|
1021
991
|
//# sourceMappingURL=ai.js.map
|