themelia-react-ui 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +20 -20
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +216 -220
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
package/dist/blocks/ai.js
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
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 { t as o } from "../
|
|
6
|
-
import {
|
|
7
|
-
import { t as l } from "../
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
3
|
+
import { t as n } from "../utils-BRhFDwuU.js";
|
|
4
|
+
import { n as r } from "../buttons-DPZekJFu.js";
|
|
5
|
+
import { c as i, o as a, t as o } from "../typography-UTnveOEy.js";
|
|
6
|
+
import { t as s } from "../focus-recipes-B653VaLq.js";
|
|
7
|
+
import { r as c, t as l } from "../structure-BmisBK-3.js";
|
|
8
|
+
import { i as u } from "../tone-recipes-BPsRAvhu.js";
|
|
9
|
+
import { t as d } from "../smart-card-DiC5aac3.js";
|
|
10
|
+
import { t as f } from "../progress-B1VnCT0K.js";
|
|
11
|
+
import { t as p } from "../interaction-recipes-XR9ZpVYL.js";
|
|
12
|
+
import { _ as m, g as h, m as g } from "../primitives-BFK08r9M.js";
|
|
13
|
+
import { n as _, t as v } from "../number-DbV1Dija.js";
|
|
14
|
+
import { t as y } from "../icon-badge-DYKIwvOV.js";
|
|
15
|
+
import { t as b } from "../badge-HpFqoqSY.js";
|
|
16
|
+
import { d as x } from "../text-inputs-f9Ia-aCi.js";
|
|
17
|
+
import { a as S, c as C, i as w, n as ee, o as te, r as T, t as E, u as D } from "../item-K5_ghvze.js";
|
|
18
|
+
import { m as O } from "../data-display-DT_khPl_.js";
|
|
19
|
+
import { C as ne, S as re, _ as ie, a as ae, b as oe, c as se, d as ce, f as le, g as ue, h as de, i as fe, l as pe, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe, v as Se, x as Ce, y as we } from "../ai-artifact-DvTwDVyL.js";
|
|
20
|
+
import { t as k } from "../tree-WnKQzwbq.js";
|
|
21
|
+
import { useMemo as Te, useState as A } from "react";
|
|
22
|
+
import { Fragment as Ee, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
23
|
+
import { ChevronDown as De, ChevronRight as Oe, ExternalLink as N, File as ke, FileCode as Ae, FileText as je, Folder as Me, FolderOpen as Ne, ThumbsDown as Pe, ThumbsUp as P } from "lucide-react";
|
|
20
24
|
//#region src/components/blocks/ai/ai.strings.ts
|
|
21
|
-
var
|
|
25
|
+
var Fe = {
|
|
22
26
|
regenerate: "Regenerate",
|
|
23
27
|
confidenceLevels: {
|
|
24
28
|
low: "low",
|
|
25
29
|
medium: "medium",
|
|
26
30
|
high: "high"
|
|
27
31
|
}
|
|
28
|
-
},
|
|
32
|
+
}, Ie = {
|
|
29
33
|
title: "Classification",
|
|
30
34
|
complexityLabel: "Complexity",
|
|
31
35
|
flagsLabel: "Flags",
|
|
@@ -36,19 +40,19 @@ var ke = {
|
|
|
36
40
|
medium: "Medium",
|
|
37
41
|
high: "High"
|
|
38
42
|
}
|
|
39
|
-
},
|
|
43
|
+
}, F = {
|
|
40
44
|
low: 1,
|
|
41
45
|
medium: 2,
|
|
42
46
|
high: 3
|
|
43
47
|
};
|
|
44
|
-
function
|
|
45
|
-
let r =
|
|
48
|
+
function Le({ level: e, label: t }) {
|
|
49
|
+
let r = F[e];
|
|
46
50
|
return /* @__PURE__ */ M("div", {
|
|
47
51
|
className: "ai-summary--confidence flex items-center gap-space-sm",
|
|
48
52
|
children: [/* @__PURE__ */ j("div", {
|
|
49
53
|
className: "flex items-center gap-space-2xs",
|
|
50
54
|
"aria-hidden": "true",
|
|
51
|
-
children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ j("div", { className: n("h-2.5 w-1 rounded-radius-sm", t < r ? "bg-foreground
|
|
55
|
+
children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ j("div", { className: n("h-2.5 w-1 rounded-radius-sm", t < r ? "bg-muted-foreground" : "bg-muted") }, `bar-${String(t)}`))
|
|
52
56
|
}), /* @__PURE__ */ j(i, {
|
|
53
57
|
size: "xs",
|
|
54
58
|
type: "secondary",
|
|
@@ -58,49 +62,50 @@ function Me({ level: e, label: t }) {
|
|
|
58
62
|
})]
|
|
59
63
|
});
|
|
60
64
|
}
|
|
61
|
-
function
|
|
62
|
-
let
|
|
65
|
+
function Re({ data: e, children: a, metadata: o, actions: s, footer: c, className: u, strings: d }) {
|
|
66
|
+
let f = t(Fe, d), p = /* @__PURE__ */ M("div", {
|
|
63
67
|
className: "ai-summary--metadata flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs",
|
|
64
|
-
children: [!!e.generatedAt && /* @__PURE__ */ j(
|
|
68
|
+
children: [!!e.generatedAt && /* @__PURE__ */ j(h, {
|
|
65
69
|
size: "xs",
|
|
66
70
|
className: "min-w-0",
|
|
67
71
|
children: e.generatedAt
|
|
68
|
-
}), !!e.model && /* @__PURE__ */ j(
|
|
72
|
+
}), !!e.model && /* @__PURE__ */ j(h, {
|
|
69
73
|
size: "xs",
|
|
70
74
|
className: "min-w-0 truncate",
|
|
71
75
|
children: e.model
|
|
72
76
|
})]
|
|
73
|
-
}),
|
|
77
|
+
}), m = e.onRegenerate ? /* @__PURE__ */ j(r, {
|
|
74
78
|
tone: "secondary",
|
|
75
79
|
buttonStyle: "ghost",
|
|
76
80
|
onClick: e.onRegenerate,
|
|
77
|
-
children:
|
|
78
|
-
}) : null,
|
|
79
|
-
return /* @__PURE__ */ M(
|
|
81
|
+
children: f.regenerate
|
|
82
|
+
}) : null, g = o === void 0 ? p : o, _ = s === void 0 ? m : s, v = c === void 0 ? (g || _) && /* @__PURE__ */ M(Ee, { children: [g, _] }) : c;
|
|
83
|
+
return /* @__PURE__ */ M(l, {
|
|
80
84
|
"data-component": "ai-summary",
|
|
81
85
|
"data-slot": "ai-summary",
|
|
82
|
-
className: n("ai-summary--component",
|
|
86
|
+
className: n("ai-summary--component", u),
|
|
83
87
|
children: [
|
|
84
88
|
/* @__PURE__ */ j(i, {
|
|
89
|
+
type: "inherit",
|
|
85
90
|
lineHeight: "relaxed",
|
|
86
91
|
children: e.summary
|
|
87
92
|
}),
|
|
88
|
-
e.entities.length > 0 && /* @__PURE__ */ j(
|
|
93
|
+
e.entities.length > 0 && /* @__PURE__ */ j(l, {
|
|
89
94
|
direction: "horizontal",
|
|
90
95
|
wrap: !0,
|
|
91
96
|
gap: "sm",
|
|
92
97
|
className: "ai-summary--entities min-w-0",
|
|
93
|
-
children: e.entities.map((e) => /* @__PURE__ */ j(
|
|
98
|
+
children: e.entities.map((e) => /* @__PURE__ */ j(b, {
|
|
94
99
|
tone: "secondary",
|
|
95
100
|
children: e
|
|
96
101
|
}, e))
|
|
97
102
|
}),
|
|
98
|
-
/* @__PURE__ */ j(
|
|
103
|
+
/* @__PURE__ */ j(Le, {
|
|
99
104
|
level: e.confidence,
|
|
100
|
-
label:
|
|
105
|
+
label: f.confidenceLevels[e.confidence]
|
|
101
106
|
}),
|
|
102
|
-
|
|
103
|
-
!!
|
|
107
|
+
a,
|
|
108
|
+
!!v && /* @__PURE__ */ j(l, {
|
|
104
109
|
direction: {
|
|
105
110
|
base: "vertical",
|
|
106
111
|
sm: "horizontal"
|
|
@@ -108,46 +113,45 @@ function Ne({ data: e, children: r, metadata: a, actions: s, footer: l, classNam
|
|
|
108
113
|
gap: "md",
|
|
109
114
|
justify: { sm: "between" },
|
|
110
115
|
className: "ai-summary--footer pt-space-xs",
|
|
111
|
-
children:
|
|
116
|
+
children: v
|
|
112
117
|
})
|
|
113
118
|
]
|
|
114
119
|
});
|
|
115
120
|
}
|
|
116
121
|
//#endregion
|
|
117
122
|
//#region src/components/blocks/ai/ai-classification/ai-classification.tsx
|
|
118
|
-
function
|
|
119
|
-
let s = t(
|
|
120
|
-
return /* @__PURE__ */ M(
|
|
123
|
+
function ze({ data: e, children: r, className: a, strings: o }) {
|
|
124
|
+
let s = t(Ie, o), c = e.confidence >= .9 ? s.confidenceBands.high : e.confidence >= .7 ? s.confidenceBands.medium : s.confidenceBands.low;
|
|
125
|
+
return /* @__PURE__ */ M(l, {
|
|
121
126
|
"data-component": "ai-classification",
|
|
122
127
|
"data-slot": "ai-classification",
|
|
123
128
|
className: n("ai-classification--component", a),
|
|
124
129
|
children: [
|
|
125
|
-
/* @__PURE__ */ M(
|
|
130
|
+
/* @__PURE__ */ M(l, {
|
|
126
131
|
direction: "horizontal",
|
|
127
132
|
wrap: !0,
|
|
128
133
|
align: "center",
|
|
129
134
|
gap: "sm",
|
|
130
135
|
children: [
|
|
131
|
-
/* @__PURE__ */ j(
|
|
132
|
-
/* @__PURE__ */ j(
|
|
136
|
+
/* @__PURE__ */ j(b, { children: e.requestType }),
|
|
137
|
+
/* @__PURE__ */ j(b, {
|
|
133
138
|
tone: e.urgencyTone,
|
|
134
139
|
children: e.urgency
|
|
135
140
|
}),
|
|
136
|
-
/* @__PURE__ */ j(
|
|
141
|
+
/* @__PURE__ */ j(b, {
|
|
137
142
|
tone: e.sentimentTone,
|
|
138
143
|
dot: !0,
|
|
139
144
|
children: e.tone
|
|
140
145
|
})
|
|
141
146
|
]
|
|
142
147
|
}),
|
|
143
|
-
/* @__PURE__ */ j(
|
|
148
|
+
/* @__PURE__ */ j(O, {
|
|
144
149
|
label: s.complexityLabel,
|
|
145
|
-
labelClassName: "text-sm font-medium text-foreground",
|
|
146
150
|
value: /* @__PURE__ */ M("span", {
|
|
147
151
|
className: "flex items-center gap-space-md",
|
|
148
152
|
children: [/* @__PURE__ */ j("span", {
|
|
149
153
|
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
|
|
154
|
+
children: Array.from({ length: 5 }, (t, r) => /* @__PURE__ */ j("span", { className: n("h-1.5 w-3 rounded-radius-sm", r < e.complexityScore ? "bg-muted-foreground" : "bg-muted") }, `cx-${String(r)}`))
|
|
151
155
|
}), /* @__PURE__ */ M(i, {
|
|
152
156
|
tag: "span",
|
|
153
157
|
size: "xs",
|
|
@@ -156,17 +160,15 @@ function Pe({ data: e, children: r, className: a, strings: o }) {
|
|
|
156
160
|
})]
|
|
157
161
|
})
|
|
158
162
|
}),
|
|
159
|
-
e.flags.length > 0 && /* @__PURE__ */ j(
|
|
163
|
+
e.flags.length > 0 && /* @__PURE__ */ j(O, {
|
|
160
164
|
label: s.flagsLabel,
|
|
161
|
-
labelClassName: "text-sm font-medium text-foreground",
|
|
162
165
|
value: /* @__PURE__ */ j("span", {
|
|
163
166
|
className: "flex gap-space-xs",
|
|
164
|
-
children: e.flags.map((e) => /* @__PURE__ */ j(
|
|
167
|
+
children: e.flags.map((e) => /* @__PURE__ */ j(b, { children: e }, e))
|
|
165
168
|
})
|
|
166
169
|
}),
|
|
167
|
-
/* @__PURE__ */ j(
|
|
170
|
+
/* @__PURE__ */ j(O, {
|
|
168
171
|
label: s.nextStepLabel,
|
|
169
|
-
labelClassName: "text-sm font-medium text-foreground",
|
|
170
172
|
value: e.suggestedAction,
|
|
171
173
|
valueClassName: "text-right"
|
|
172
174
|
}),
|
|
@@ -177,12 +179,12 @@ function Pe({ data: e, children: r, className: a, strings: o }) {
|
|
|
177
179
|
}),
|
|
178
180
|
/* @__PURE__ */ M("div", {
|
|
179
181
|
className: "flex items-center gap-space-md",
|
|
180
|
-
children: [/* @__PURE__ */ M(
|
|
182
|
+
children: [/* @__PURE__ */ M(b, {
|
|
181
183
|
tone: "secondary",
|
|
182
184
|
children: [
|
|
183
185
|
s.confidencePrefix,
|
|
184
186
|
": ",
|
|
185
|
-
|
|
187
|
+
c
|
|
186
188
|
]
|
|
187
189
|
}), /* @__PURE__ */ j(i, {
|
|
188
190
|
size: "xs",
|
|
@@ -207,17 +209,17 @@ var I = {
|
|
|
207
209
|
};
|
|
208
210
|
//#endregion
|
|
209
211
|
//#region src/components/blocks/ai/ai-confidence/ai-confidence.tsx
|
|
210
|
-
function
|
|
212
|
+
function Be(e) {
|
|
211
213
|
return e >= .85 ? "success" : e >= .6 ? "warning" : "destructive";
|
|
212
214
|
}
|
|
213
|
-
function L({ score: e, model:
|
|
214
|
-
let
|
|
215
|
-
return /* @__PURE__ */ M(
|
|
215
|
+
function L({ score: e, model: r, factors: o, className: s, strings: c }) {
|
|
216
|
+
let u = t(I, c), d = Math.round(e * 100), p = Be(e), m = p === "success" ? u.levelHigh : p === "warning" ? u.levelMedium : u.levelLow, h = 2 * Math.PI * 24, g = h - d / 100 * h;
|
|
217
|
+
return /* @__PURE__ */ M(l, {
|
|
216
218
|
"data-component": "ai-confidence",
|
|
217
219
|
"data-slot": "ai-confidence",
|
|
218
220
|
gap: "xl",
|
|
219
221
|
className: n("ai-confidence--component @container/ai-confidence", s),
|
|
220
|
-
"aria-label":
|
|
222
|
+
"aria-label": u.title,
|
|
221
223
|
children: [/* @__PURE__ */ M("div", {
|
|
222
224
|
className: "grid gap-space-xl @md/ai-confidence:grid-cols-[auto_minmax(0,1fr)] @md/ai-confidence:items-center",
|
|
223
225
|
children: [/* @__PURE__ */ M("div", {
|
|
@@ -243,48 +245,50 @@ function L({ score: e, model: a, factors: o, className: s, strings: u }) {
|
|
|
243
245
|
stroke: "currentColor",
|
|
244
246
|
strokeWidth: "5",
|
|
245
247
|
strokeLinecap: "round",
|
|
246
|
-
strokeDasharray:
|
|
247
|
-
strokeDashoffset:
|
|
248
|
+
strokeDasharray: h,
|
|
249
|
+
strokeDashoffset: g,
|
|
248
250
|
transform: "rotate(-90 32 32)",
|
|
249
|
-
className: n(
|
|
251
|
+
className: n(p === "success" && "text-success", p === "warning" && "text-warning-accent", p === "destructive" && "text-destructive")
|
|
250
252
|
})]
|
|
251
253
|
}), /* @__PURE__ */ j("div", {
|
|
252
254
|
className: "absolute inset-0 flex flex-col items-center justify-center",
|
|
253
|
-
children: /* @__PURE__ */ j(
|
|
254
|
-
|
|
255
|
+
children: /* @__PURE__ */ j(_, {
|
|
256
|
+
type: "inherit",
|
|
257
|
+
value: d,
|
|
255
258
|
scaled: !0,
|
|
256
259
|
weight: "semibold",
|
|
257
|
-
|
|
260
|
+
lineHeight: "none"
|
|
258
261
|
})
|
|
259
262
|
})]
|
|
260
|
-
}), /* @__PURE__ */ M(
|
|
263
|
+
}), /* @__PURE__ */ M(l, {
|
|
261
264
|
gap: "sm",
|
|
262
|
-
children: [/* @__PURE__ */ j(
|
|
265
|
+
children: [/* @__PURE__ */ j(a, { children: u.confidenceLabel }), /* @__PURE__ */ M(l, {
|
|
263
266
|
direction: "horizontal",
|
|
264
267
|
gap: "sm",
|
|
265
|
-
children: [/* @__PURE__ */ j(
|
|
266
|
-
tone:
|
|
267
|
-
children:
|
|
268
|
-
}), !!
|
|
268
|
+
children: [/* @__PURE__ */ j(b, {
|
|
269
|
+
tone: p,
|
|
270
|
+
children: m
|
|
271
|
+
}), !!r && /* @__PURE__ */ j(i, {
|
|
269
272
|
size: "xs",
|
|
270
273
|
type: "secondary",
|
|
271
274
|
className: "truncate",
|
|
272
|
-
children:
|
|
275
|
+
children: r
|
|
273
276
|
})]
|
|
274
277
|
})]
|
|
275
278
|
})]
|
|
276
|
-
}), !!o && o.length > 0 && /* @__PURE__ */ M(
|
|
279
|
+
}), !!o && o.length > 0 && /* @__PURE__ */ M(l, {
|
|
277
280
|
gap: "md",
|
|
278
|
-
children: [/* @__PURE__ */ j(
|
|
281
|
+
children: [/* @__PURE__ */ j(a, { children: u.factorsLabel }), o.map((e) => /* @__PURE__ */ M(l, {
|
|
279
282
|
gap: "sm",
|
|
280
|
-
children: [/* @__PURE__ */ j(
|
|
283
|
+
children: [/* @__PURE__ */ j(O, {
|
|
281
284
|
label: e.label,
|
|
282
|
-
value: /* @__PURE__ */ j(
|
|
285
|
+
value: /* @__PURE__ */ j(_, {
|
|
286
|
+
type: "inherit",
|
|
283
287
|
value: e.score,
|
|
284
288
|
size: "xs",
|
|
285
289
|
weight: "semibold"
|
|
286
290
|
})
|
|
287
|
-
}), /* @__PURE__ */ j(
|
|
291
|
+
}), /* @__PURE__ */ j(f, {
|
|
288
292
|
value: Math.round(e.score * 100),
|
|
289
293
|
"aria-label": e.label
|
|
290
294
|
})]
|
|
@@ -303,33 +307,33 @@ var R = {
|
|
|
303
307
|
//#region src/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.tsx
|
|
304
308
|
function z({ suggestions: e, onPick: r, className: i, strings: a }) {
|
|
305
309
|
let o = t(R, a);
|
|
306
|
-
return /* @__PURE__ */ M(
|
|
310
|
+
return /* @__PURE__ */ M(l, {
|
|
307
311
|
"data-component": "ai-prompt-suggestions",
|
|
308
312
|
"data-slot": "ai-prompt-suggestions",
|
|
309
313
|
className: n("ai-prompt-suggestions--component", i),
|
|
310
|
-
children: [/* @__PURE__ */ M(
|
|
314
|
+
children: [/* @__PURE__ */ M(l, {
|
|
311
315
|
gap: "normal",
|
|
312
316
|
className: "ai-prompt-suggestions--intro",
|
|
313
|
-
children: [/* @__PURE__ */ j(
|
|
317
|
+
children: [/* @__PURE__ */ j(D, { children: o.title }), /* @__PURE__ */ j(w, { children: o.hint })]
|
|
314
318
|
}), /* @__PURE__ */ j("div", {
|
|
315
319
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(15rem,100%),1fr))] gap-space-xl",
|
|
316
320
|
children: e.map((e) => {
|
|
317
321
|
let t = e.icon;
|
|
318
|
-
return /* @__PURE__ */ M(
|
|
322
|
+
return /* @__PURE__ */ M(E, {
|
|
319
323
|
variant: "outline",
|
|
320
324
|
render: /* @__PURE__ */ j("button", {
|
|
321
325
|
type: "button",
|
|
322
326
|
onClick: () => r?.(e)
|
|
323
327
|
}),
|
|
324
|
-
className: n("ai-prompt-suggestions--item h-full items-start gap-space-lg p-surface
|
|
325
|
-
children: [!!t && /* @__PURE__ */ j(
|
|
328
|
+
className: n("ai-prompt-suggestions--item h-full items-start gap-space-lg p-surface", p.rowHover),
|
|
329
|
+
children: [!!t && /* @__PURE__ */ j(C, { children: /* @__PURE__ */ j(y, {
|
|
326
330
|
icon: t,
|
|
327
331
|
tone: "neutral",
|
|
328
332
|
size: "md",
|
|
329
333
|
shape: "square"
|
|
330
|
-
}) }), /* @__PURE__ */ M(
|
|
334
|
+
}) }), /* @__PURE__ */ M(T, {
|
|
331
335
|
className: "min-w-0 gap-space-sm",
|
|
332
|
-
children: [/* @__PURE__ */ j(
|
|
336
|
+
children: [/* @__PURE__ */ j(D, { children: e.label }), !!e.description && /* @__PURE__ */ j(w, { children: e.description })]
|
|
333
337
|
})]
|
|
334
338
|
}, e.id);
|
|
335
339
|
})
|
|
@@ -348,95 +352,102 @@ var B = {
|
|
|
348
352
|
};
|
|
349
353
|
//#endregion
|
|
350
354
|
//#region src/components/blocks/ai/ai-token-usage/ai-token-usage.tsx
|
|
351
|
-
function V({ model: e, inputTokens:
|
|
352
|
-
let
|
|
353
|
-
return /* @__PURE__ */ M(
|
|
355
|
+
function V({ model: e, inputTokens: r, outputTokens: o, cost: s, maxTokens: u, className: d, strings: p }) {
|
|
356
|
+
let h = t(B, p), g = r + o, y = u ? Math.min(100, Math.round(g / u * 100)) : 0;
|
|
357
|
+
return /* @__PURE__ */ M(l, {
|
|
354
358
|
"data-component": "ai-token-usage",
|
|
355
359
|
"data-slot": "ai-token-usage",
|
|
356
360
|
className: n("ai-token-usage--component", d),
|
|
357
361
|
children: [
|
|
358
362
|
!!e && /* @__PURE__ */ j("div", {
|
|
359
363
|
className: "ai-token-usage--metadata flex min-w-0 justify-start",
|
|
360
|
-
children: /* @__PURE__ */ j(
|
|
364
|
+
children: /* @__PURE__ */ j(b, {
|
|
361
365
|
tone: "secondary",
|
|
362
366
|
children: e
|
|
363
367
|
})
|
|
364
368
|
}),
|
|
365
|
-
/* @__PURE__ */ j(
|
|
369
|
+
/* @__PURE__ */ j(c, {
|
|
366
370
|
columns: 3,
|
|
367
371
|
gap: "md",
|
|
368
372
|
children: [
|
|
369
373
|
{
|
|
370
|
-
label:
|
|
371
|
-
value:
|
|
374
|
+
label: h.input,
|
|
375
|
+
value: r
|
|
372
376
|
},
|
|
373
377
|
{
|
|
374
|
-
label:
|
|
378
|
+
label: h.output,
|
|
375
379
|
value: o
|
|
376
380
|
},
|
|
377
381
|
{
|
|
378
|
-
label:
|
|
379
|
-
value:
|
|
382
|
+
label: h.total,
|
|
383
|
+
value: g
|
|
380
384
|
}
|
|
381
|
-
].map((e) => /* @__PURE__ */ M(
|
|
385
|
+
].map((e) => /* @__PURE__ */ M(l, {
|
|
382
386
|
gap: "2xs",
|
|
383
|
-
children: [/* @__PURE__ */ j(
|
|
387
|
+
children: [/* @__PURE__ */ j(a, { children: e.label }), /* @__PURE__ */ j(v, {
|
|
388
|
+
type: "inherit",
|
|
384
389
|
value: e.value,
|
|
385
390
|
weight: "semibold",
|
|
386
391
|
align: "left"
|
|
387
392
|
})]
|
|
388
393
|
}, e.label))
|
|
389
394
|
}),
|
|
390
|
-
!!u && /* @__PURE__ */ M(
|
|
395
|
+
!!u && /* @__PURE__ */ M(l, {
|
|
391
396
|
gap: "xs",
|
|
392
|
-
children: [/* @__PURE__ */ j(
|
|
397
|
+
children: [/* @__PURE__ */ j(O, {
|
|
393
398
|
label: /* @__PURE__ */ M("span", {
|
|
394
399
|
className: "inline-flex items-center gap-space-xs",
|
|
395
400
|
children: [
|
|
396
|
-
/* @__PURE__ */ j(
|
|
397
|
-
|
|
401
|
+
/* @__PURE__ */ j(v, {
|
|
402
|
+
type: "inherit",
|
|
403
|
+
value: g,
|
|
398
404
|
size: "xs",
|
|
399
405
|
align: "left"
|
|
400
406
|
}),
|
|
401
407
|
/* @__PURE__ */ j(i, {
|
|
408
|
+
type: "inherit",
|
|
402
409
|
tag: "span",
|
|
403
410
|
size: "xs",
|
|
404
411
|
"aria-hidden": !0,
|
|
405
412
|
children: "/"
|
|
406
413
|
}),
|
|
407
|
-
/* @__PURE__ */ j(
|
|
414
|
+
/* @__PURE__ */ j(v, {
|
|
415
|
+
type: "inherit",
|
|
408
416
|
value: u,
|
|
409
417
|
size: "xs",
|
|
410
418
|
align: "left"
|
|
411
419
|
})
|
|
412
420
|
]
|
|
413
421
|
}),
|
|
414
|
-
value: /* @__PURE__ */ j(
|
|
415
|
-
|
|
422
|
+
value: /* @__PURE__ */ j(_, {
|
|
423
|
+
type: "inherit",
|
|
424
|
+
value: y,
|
|
416
425
|
scaled: !0,
|
|
417
426
|
size: "xs",
|
|
418
427
|
weight: "semibold",
|
|
419
428
|
align: "right"
|
|
420
|
-
}),
|
|
421
|
-
valueClassName: "text-xs font-semibold"
|
|
422
|
-
}), /* @__PURE__ */ j("div", {
|
|
423
|
-
className: "h-1.5 w-full overflow-hidden rounded-full bg-muted",
|
|
424
|
-
children: /* @__PURE__ */ j("div", {
|
|
425
|
-
className: "h-full rounded-full bg-primary",
|
|
426
|
-
style: { width: `${v}%` }
|
|
427
429
|
})
|
|
430
|
+
}), /* @__PURE__ */ j(f, {
|
|
431
|
+
value: y,
|
|
432
|
+
"aria-label": h.title,
|
|
433
|
+
className: "ai-token-usage--bar"
|
|
428
434
|
})]
|
|
429
435
|
}),
|
|
430
|
-
!!
|
|
436
|
+
!!s && /* @__PURE__ */ j(O, {
|
|
431
437
|
label: /* @__PURE__ */ j(i, {
|
|
438
|
+
type: "inherit",
|
|
432
439
|
tag: "span",
|
|
433
440
|
size: "xs",
|
|
434
441
|
weight: "medium",
|
|
435
442
|
lineHeight: "tight",
|
|
436
|
-
children:
|
|
443
|
+
children: h.cost
|
|
437
444
|
}),
|
|
438
|
-
value:
|
|
439
|
-
|
|
445
|
+
value: /* @__PURE__ */ j(m, {
|
|
446
|
+
type: "inherit",
|
|
447
|
+
weight: "semibold",
|
|
448
|
+
children: s
|
|
449
|
+
}),
|
|
450
|
+
valueClassName: "tabular-nums"
|
|
440
451
|
})
|
|
441
452
|
]
|
|
442
453
|
});
|
|
@@ -454,73 +465,73 @@ var H = {
|
|
|
454
465
|
};
|
|
455
466
|
//#endregion
|
|
456
467
|
//#region src/components/blocks/ai/ai-feedback/ai-feedback.tsx
|
|
457
|
-
function U({ value: e, onVote:
|
|
458
|
-
let
|
|
459
|
-
let n =
|
|
460
|
-
e === void 0 &&
|
|
468
|
+
function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, submitted: c = !1, className: d, strings: f }) {
|
|
469
|
+
let m = t(H, f), [h, g] = A(null), [_, v] = A(""), y = e ?? h, b = (t) => {
|
|
470
|
+
let n = y === t ? null : t;
|
|
471
|
+
e === void 0 && g(n), a?.(n);
|
|
461
472
|
};
|
|
462
|
-
return
|
|
463
|
-
className: n("ai-feedback--component", "inline-flex items-center gap-space-md rounded-radius
|
|
464
|
-
children: [/* @__PURE__ */ j(
|
|
473
|
+
return c ? /* @__PURE__ */ M("div", {
|
|
474
|
+
className: n("ai-feedback--component", "inline-flex items-center gap-space-md rounded-radius px-space-lg py-space-sm", u.success.wash, d),
|
|
475
|
+
children: [/* @__PURE__ */ j(P, { className: "size-icon-md text-success" }), /* @__PURE__ */ j(i, {
|
|
465
476
|
size: "xs",
|
|
466
477
|
type: "success",
|
|
467
478
|
weight: "medium",
|
|
468
|
-
children:
|
|
479
|
+
children: m.thanks
|
|
469
480
|
})]
|
|
470
481
|
}) : /* @__PURE__ */ M("div", {
|
|
471
|
-
className: n("ai-feedback--component inline-flex flex-col gap-space-md",
|
|
482
|
+
className: n("ai-feedback--component inline-flex flex-col gap-space-md", d),
|
|
472
483
|
children: [/* @__PURE__ */ M("div", {
|
|
473
484
|
className: "flex items-center gap-space-md",
|
|
474
485
|
children: [
|
|
475
486
|
/* @__PURE__ */ j(i, {
|
|
476
487
|
size: "xs",
|
|
477
488
|
type: "secondary",
|
|
478
|
-
children:
|
|
489
|
+
children: m.prompt
|
|
479
490
|
}),
|
|
480
|
-
/* @__PURE__ */ j(
|
|
491
|
+
/* @__PURE__ */ j(r, {
|
|
481
492
|
type: "button",
|
|
482
493
|
tone: "secondary",
|
|
483
|
-
buttonStyle:
|
|
494
|
+
buttonStyle: "ghost",
|
|
484
495
|
size: "sm",
|
|
485
496
|
iconOnly: !0,
|
|
486
|
-
"aria-label":
|
|
487
|
-
"aria-pressed":
|
|
488
|
-
onClick: () =>
|
|
489
|
-
className:
|
|
490
|
-
children: /* @__PURE__ */ j(
|
|
497
|
+
"aria-label": m.thumbsUpAria,
|
|
498
|
+
"aria-pressed": y === "up",
|
|
499
|
+
onClick: () => b("up"),
|
|
500
|
+
className: y === "up" ? p.togglePressed : p.toggleHoverButton,
|
|
501
|
+
children: /* @__PURE__ */ j(P, { className: "size-icon-md" })
|
|
491
502
|
}),
|
|
492
|
-
/* @__PURE__ */ j(
|
|
503
|
+
/* @__PURE__ */ j(r, {
|
|
493
504
|
type: "button",
|
|
494
505
|
tone: "secondary",
|
|
495
|
-
buttonStyle:
|
|
506
|
+
buttonStyle: "ghost",
|
|
496
507
|
size: "sm",
|
|
497
508
|
iconOnly: !0,
|
|
498
|
-
"aria-label":
|
|
499
|
-
"aria-pressed":
|
|
500
|
-
onClick: () =>
|
|
501
|
-
className:
|
|
502
|
-
children: /* @__PURE__ */ j(
|
|
509
|
+
"aria-label": m.thumbsDownAria,
|
|
510
|
+
"aria-pressed": y === "down",
|
|
511
|
+
onClick: () => b("down"),
|
|
512
|
+
className: y === "down" ? p.togglePressed : p.toggleHoverButton,
|
|
513
|
+
children: /* @__PURE__ */ j(Pe, { className: "size-icon-md" })
|
|
503
514
|
})
|
|
504
515
|
]
|
|
505
|
-
}), !!s && !!
|
|
516
|
+
}), !!s && !!y && /* @__PURE__ */ M(l, {
|
|
506
517
|
gap: "md",
|
|
507
|
-
children: [/* @__PURE__ */ j(
|
|
508
|
-
value:
|
|
509
|
-
onChange: (e) =>
|
|
510
|
-
placeholder:
|
|
518
|
+
children: [/* @__PURE__ */ j(x, {
|
|
519
|
+
value: _,
|
|
520
|
+
onChange: (e) => v(e.target.value),
|
|
521
|
+
placeholder: m.commentPlaceholder,
|
|
511
522
|
minRows: 2
|
|
512
|
-
}), /* @__PURE__ */ j(
|
|
523
|
+
}), /* @__PURE__ */ j(l, {
|
|
513
524
|
direction: "horizontal",
|
|
514
525
|
gap: "none",
|
|
515
526
|
justify: "end",
|
|
516
|
-
children: /* @__PURE__ */ j(
|
|
527
|
+
children: /* @__PURE__ */ j(r, {
|
|
517
528
|
tone: "primary",
|
|
518
529
|
type: "button",
|
|
519
530
|
onClick: () => {
|
|
520
|
-
|
|
531
|
+
o?.(_, y), v("");
|
|
521
532
|
},
|
|
522
|
-
disabled: !
|
|
523
|
-
children:
|
|
533
|
+
disabled: !_.trim(),
|
|
534
|
+
children: m.submit
|
|
524
535
|
})
|
|
525
536
|
})]
|
|
526
537
|
})]
|
|
@@ -540,65 +551,73 @@ var W = {
|
|
|
540
551
|
};
|
|
541
552
|
//#endregion
|
|
542
553
|
//#region src/components/blocks/ai/ai-citation/ai-citation.tsx
|
|
543
|
-
function G({ sources: t, expanded:
|
|
544
|
-
let
|
|
545
|
-
|
|
546
|
-
},
|
|
547
|
-
return /* @__PURE__ */ j(
|
|
548
|
-
|
|
549
|
-
|
|
554
|
+
function G({ sources: t, expanded: a, defaultExpanded: o = !1, onExpandedChange: s, maxCollapsedRows: c = 0, className: u, strings: f }) {
|
|
555
|
+
let m = e(W, f), [h, g] = A(o), _ = a ?? h, v = (e) => {
|
|
556
|
+
a === void 0 && g(e), s?.(e);
|
|
557
|
+
}, y = _ ? t : t.slice(0, Math.max(0, c)), b = t.length - y.length;
|
|
558
|
+
return /* @__PURE__ */ j(d, {
|
|
559
|
+
surface: "card",
|
|
560
|
+
padding: "sm",
|
|
561
|
+
className: n("ai-citation--component", u),
|
|
562
|
+
children: /* @__PURE__ */ M(l, {
|
|
550
563
|
gap: "lg",
|
|
551
|
-
children: [/* @__PURE__ */ M(
|
|
564
|
+
children: [/* @__PURE__ */ M(r, {
|
|
552
565
|
type: "button",
|
|
553
566
|
tone: "secondary",
|
|
554
567
|
buttonStyle: "ghost",
|
|
555
568
|
size: "sm",
|
|
556
|
-
onClick: () =>
|
|
557
|
-
className: n("ai-citation--trigger h-auto min-h-0 justify-start gap-space-sm rounded-inner px-control py-row-y",
|
|
558
|
-
"aria-expanded":
|
|
559
|
-
"aria-label":
|
|
569
|
+
onClick: () => v(!_),
|
|
570
|
+
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 ${p.rowHover}`),
|
|
571
|
+
"aria-expanded": _,
|
|
572
|
+
"aria-label": _ ? m.collapse : m.expand,
|
|
560
573
|
children: [/* @__PURE__ */ M(i, {
|
|
574
|
+
type: "inherit",
|
|
561
575
|
weight: "medium",
|
|
562
576
|
children: [
|
|
563
|
-
|
|
577
|
+
m.title,
|
|
564
578
|
" · ",
|
|
565
|
-
|
|
579
|
+
m.sourceCount(t.length)
|
|
566
580
|
]
|
|
567
|
-
}), j(
|
|
568
|
-
}), (
|
|
581
|
+
}), j(_ ? De : Oe, { className: "size-icon-md" })]
|
|
582
|
+
}), (_ || c > 0) && /* @__PURE__ */ M(te, { children: [y.map((e, t) => /* @__PURE__ */ j(Ve, {
|
|
569
583
|
source: e,
|
|
570
584
|
index: t + 1,
|
|
571
|
-
strings:
|
|
572
|
-
}, e.id)), !
|
|
585
|
+
strings: m
|
|
586
|
+
}, e.id)), !_ && b > 0 && /* @__PURE__ */ j(i, {
|
|
573
587
|
size: "xs",
|
|
574
588
|
type: "secondary",
|
|
575
|
-
children:
|
|
589
|
+
children: m.hiddenCount(b)
|
|
576
590
|
})] })]
|
|
577
591
|
})
|
|
578
592
|
});
|
|
579
593
|
}
|
|
580
594
|
G.displayName = "AiCitation";
|
|
581
|
-
function
|
|
595
|
+
function Ve({ source: e, index: t, strings: r }) {
|
|
582
596
|
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 ? {
|
|
583
597
|
href: e.url,
|
|
584
598
|
target: "_blank",
|
|
585
599
|
rel: "noopener noreferrer"
|
|
586
600
|
} : {};
|
|
587
|
-
return /* @__PURE__ */ M(
|
|
601
|
+
return /* @__PURE__ */ M(E, {
|
|
588
602
|
variant: "outline",
|
|
589
603
|
size: "sm",
|
|
590
604
|
className: "items-start px-surface-xs py-surface-xs",
|
|
591
605
|
children: [
|
|
592
|
-
/* @__PURE__ */ j(
|
|
593
|
-
|
|
594
|
-
size: "
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
606
|
+
/* @__PURE__ */ j(C, { children: /* @__PURE__ */ j(y, {
|
|
607
|
+
tone: "neutral",
|
|
608
|
+
size: "sm",
|
|
609
|
+
"aria-hidden": !1,
|
|
610
|
+
className: "shrink-0",
|
|
611
|
+
children: /* @__PURE__ */ j(v, {
|
|
612
|
+
value: t,
|
|
613
|
+
size: "xs",
|
|
614
|
+
weight: "semibold",
|
|
615
|
+
type: "secondary",
|
|
616
|
+
align: "center"
|
|
617
|
+
})
|
|
599
618
|
}) }),
|
|
600
|
-
/* @__PURE__ */ M(
|
|
601
|
-
/* @__PURE__ */ j(
|
|
619
|
+
/* @__PURE__ */ M(T, { children: [
|
|
620
|
+
/* @__PURE__ */ j(D, {
|
|
602
621
|
className: "truncate",
|
|
603
622
|
children: /* @__PURE__ */ M(o, {
|
|
604
623
|
...s,
|
|
@@ -606,11 +625,11 @@ function Ie({ source: e, index: t, strings: r }) {
|
|
|
606
625
|
children: [e.title, !!e.url && /* @__PURE__ */ j(N, { className: "ml-1 inline size-icon-sm align-baseline" })]
|
|
607
626
|
})
|
|
608
627
|
}),
|
|
609
|
-
!!e.snippet && /* @__PURE__ */ j(
|
|
628
|
+
!!e.snippet && /* @__PURE__ */ j(w, {
|
|
610
629
|
clamp: 2,
|
|
611
630
|
children: e.snippet
|
|
612
631
|
}),
|
|
613
|
-
(e.publisher || e.publishedAt) && /* @__PURE__ */ M(
|
|
632
|
+
(e.publisher || e.publishedAt) && /* @__PURE__ */ M(S, {
|
|
614
633
|
className: "mt-1 justify-start gap-space-sm",
|
|
615
634
|
children: [
|
|
616
635
|
!!e.publisher && /* @__PURE__ */ j(i, {
|
|
@@ -623,33 +642,27 @@ function Ie({ source: e, index: t, strings: r }) {
|
|
|
623
642
|
type: "discrete",
|
|
624
643
|
children: "·"
|
|
625
644
|
}),
|
|
626
|
-
!!e.publishedAt && /* @__PURE__ */ j(
|
|
645
|
+
!!e.publishedAt && /* @__PURE__ */ j(h, {
|
|
627
646
|
size: "xs",
|
|
628
|
-
className: "tabular-nums
|
|
647
|
+
className: "tabular-nums",
|
|
629
648
|
children: e.publishedAt
|
|
630
649
|
})
|
|
631
650
|
]
|
|
632
651
|
})
|
|
633
652
|
] }),
|
|
634
|
-
a !== null && /* @__PURE__ */ M(
|
|
653
|
+
a !== null && /* @__PURE__ */ M(ee, {
|
|
635
654
|
className: "w-16 flex-col items-end gap-space-2xs",
|
|
636
|
-
children: [/* @__PURE__ */ j(
|
|
655
|
+
children: [/* @__PURE__ */ j(_, {
|
|
637
656
|
value: a,
|
|
638
657
|
scaled: !0,
|
|
639
658
|
size: "xs",
|
|
640
659
|
type: "secondary",
|
|
641
660
|
weight: "medium"
|
|
642
|
-
}), /* @__PURE__ */ j(
|
|
643
|
-
|
|
644
|
-
|
|
661
|
+
}), /* @__PURE__ */ j(f, {
|
|
662
|
+
value: a,
|
|
663
|
+
size: "sm",
|
|
645
664
|
"aria-label": r.relevance,
|
|
646
|
-
"
|
|
647
|
-
"aria-valuemax": 100,
|
|
648
|
-
"aria-valuenow": a,
|
|
649
|
-
children: /* @__PURE__ */ j("div", {
|
|
650
|
-
className: "h-full rounded-full bg-primary",
|
|
651
|
-
style: { width: `${a}%` }
|
|
652
|
-
})
|
|
665
|
+
className: "ai-citation--relevance"
|
|
653
666
|
})]
|
|
654
667
|
})
|
|
655
668
|
]
|
|
@@ -663,55 +676,58 @@ var K = {
|
|
|
663
676
|
};
|
|
664
677
|
//#endregion
|
|
665
678
|
//#region src/components/blocks/ai/ai-inline-citation/ai-inline-citation.tsx
|
|
666
|
-
function
|
|
679
|
+
function He(e, t) {
|
|
667
680
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
668
681
|
let r = t[n];
|
|
669
682
|
return r === void 0 ? e : String(r);
|
|
670
683
|
});
|
|
671
684
|
}
|
|
672
|
-
function q({ index: t, title: r, url:
|
|
673
|
-
let
|
|
685
|
+
function q({ index: t, title: r, url: a, onSelect: c, className: l, strings: u }) {
|
|
686
|
+
let d = e(K, u), f = He(d.openAria, {
|
|
674
687
|
n: t,
|
|
675
688
|
title: r ?? ""
|
|
676
|
-
}),
|
|
677
|
-
return
|
|
678
|
-
href:
|
|
689
|
+
}), m = r ? `${d.sourcePrefix} ${t}: ${r}` : `${d.sourcePrefix} ${t}`, h = 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", p.rowHover, "transition-colors duration-150", `focus-visible:outline-none ${s.edge}`, l);
|
|
690
|
+
return a ? /* @__PURE__ */ j(o, {
|
|
691
|
+
href: a,
|
|
679
692
|
size: "inherit",
|
|
680
693
|
underline: !1,
|
|
681
694
|
target: "_blank",
|
|
682
695
|
rel: "noopener noreferrer",
|
|
683
|
-
title:
|
|
684
|
-
"aria-label":
|
|
685
|
-
className: n("ai-inline-citation--component",
|
|
696
|
+
title: m,
|
|
697
|
+
"aria-label": f,
|
|
698
|
+
className: n("ai-inline-citation--component", h),
|
|
686
699
|
children: /* @__PURE__ */ j(i, {
|
|
700
|
+
type: "inherit",
|
|
687
701
|
tag: "span",
|
|
688
702
|
size: "xs",
|
|
689
703
|
weight: "medium",
|
|
690
|
-
|
|
704
|
+
lineHeight: "none",
|
|
691
705
|
children: t
|
|
692
706
|
})
|
|
693
|
-
}) :
|
|
707
|
+
}) : c ? /* @__PURE__ */ j("button", {
|
|
694
708
|
type: "button",
|
|
695
|
-
onClick:
|
|
696
|
-
title:
|
|
697
|
-
"aria-label":
|
|
698
|
-
className: n("ai-inline-citation--component",
|
|
709
|
+
onClick: c,
|
|
710
|
+
title: m,
|
|
711
|
+
"aria-label": f,
|
|
712
|
+
className: n("ai-inline-citation--component", h),
|
|
699
713
|
children: /* @__PURE__ */ j(i, {
|
|
714
|
+
type: "inherit",
|
|
700
715
|
tag: "span",
|
|
701
716
|
size: "xs",
|
|
702
717
|
weight: "medium",
|
|
703
|
-
|
|
718
|
+
lineHeight: "none",
|
|
704
719
|
children: t
|
|
705
720
|
})
|
|
706
721
|
}) : /* @__PURE__ */ j("span", {
|
|
707
|
-
title:
|
|
708
|
-
"aria-label":
|
|
709
|
-
className: n("ai-inline-citation--component",
|
|
722
|
+
title: m,
|
|
723
|
+
"aria-label": f,
|
|
724
|
+
className: n("ai-inline-citation--component", h),
|
|
710
725
|
children: /* @__PURE__ */ j(i, {
|
|
726
|
+
type: "inherit",
|
|
711
727
|
tag: "span",
|
|
712
728
|
size: "xs",
|
|
713
729
|
weight: "medium",
|
|
714
|
-
|
|
730
|
+
lineHeight: "none",
|
|
715
731
|
children: t
|
|
716
732
|
})
|
|
717
733
|
});
|
|
@@ -731,26 +747,28 @@ var J = {
|
|
|
731
747
|
};
|
|
732
748
|
//#endregion
|
|
733
749
|
//#region src/components/blocks/ai/ai-package-info/ai-package-info.tsx
|
|
734
|
-
function Y({ name: e, version:
|
|
735
|
-
let
|
|
750
|
+
function Y({ name: e, version: a, description: s, license: c, publishedAt: u, homepage: f, repository: m, weeklyDownloads: h, keywords: _, onSelect: v, className: y, strings: x }) {
|
|
751
|
+
let S = t(J, x), C = /* @__PURE__ */ M(l, {
|
|
752
|
+
gap: "md",
|
|
736
753
|
className: "min-w-0 flex-1",
|
|
737
754
|
children: [
|
|
738
|
-
/* @__PURE__ */ M(
|
|
755
|
+
/* @__PURE__ */ M(l, {
|
|
739
756
|
gap: "dense",
|
|
740
|
-
children: [/* @__PURE__ */ M(
|
|
757
|
+
children: [/* @__PURE__ */ M(l, {
|
|
741
758
|
direction: "horizontal",
|
|
742
759
|
gap: "md",
|
|
743
760
|
align: "center",
|
|
744
|
-
children: [/* @__PURE__ */ j(
|
|
761
|
+
children: [/* @__PURE__ */ j(g, {
|
|
762
|
+
type: "inherit",
|
|
745
763
|
weight: "semibold",
|
|
746
764
|
className: "truncate",
|
|
747
765
|
children: e
|
|
748
|
-
}), !!
|
|
766
|
+
}), !!a && /* @__PURE__ */ j(b, {
|
|
749
767
|
tone: "secondary",
|
|
750
|
-
children: /* @__PURE__ */ M(
|
|
768
|
+
children: /* @__PURE__ */ M(g, {
|
|
751
769
|
size: "xs",
|
|
752
770
|
className: "text-inherit",
|
|
753
|
-
children: ["v",
|
|
771
|
+
children: ["v", a.replace(/^v/, "")]
|
|
754
772
|
})
|
|
755
773
|
})]
|
|
756
774
|
}), !!s && /* @__PURE__ */ j(i, {
|
|
@@ -760,87 +778,92 @@ function Y({ name: e, version: r, description: s, license: l, publishedAt: u, ho
|
|
|
760
778
|
children: s
|
|
761
779
|
})]
|
|
762
780
|
}),
|
|
763
|
-
(
|
|
764
|
-
className: "
|
|
781
|
+
(c || u || h !== void 0) && /* @__PURE__ */ M("div", {
|
|
782
|
+
className: "ai-package-info--meta flex flex-wrap items-center gap-x-space-lg gap-y-space-xs",
|
|
765
783
|
children: [
|
|
766
|
-
!!
|
|
767
|
-
label:
|
|
768
|
-
value:
|
|
784
|
+
!!c && /* @__PURE__ */ j(X, {
|
|
785
|
+
label: S.licenseLabel,
|
|
786
|
+
value: c
|
|
769
787
|
}),
|
|
770
788
|
!!u && /* @__PURE__ */ j(X, {
|
|
771
|
-
label:
|
|
789
|
+
label: S.publishedLabel,
|
|
772
790
|
value: u
|
|
773
791
|
}),
|
|
774
|
-
|
|
775
|
-
label:
|
|
776
|
-
value: String(
|
|
792
|
+
h !== void 0 && /* @__PURE__ */ j(X, {
|
|
793
|
+
label: S.weeklyDownloadsLabel,
|
|
794
|
+
value: String(h)
|
|
777
795
|
})
|
|
778
796
|
]
|
|
779
797
|
}),
|
|
780
|
-
!!
|
|
781
|
-
|
|
782
|
-
|
|
798
|
+
!!_?.length && /* @__PURE__ */ j(l, {
|
|
799
|
+
direction: "horizontal",
|
|
800
|
+
gap: "xs",
|
|
801
|
+
className: "ai-package-info--keywords",
|
|
802
|
+
children: _.slice(0, 6).map((e) => /* @__PURE__ */ j(b, {
|
|
783
803
|
tone: "secondary",
|
|
784
804
|
children: e
|
|
785
805
|
}, e))
|
|
786
806
|
})
|
|
787
807
|
]
|
|
788
|
-
})
|
|
789
|
-
return /* @__PURE__ */ M(
|
|
790
|
-
|
|
791
|
-
|
|
808
|
+
}), w = "ai-package-info--body flex w-full items-start gap-space-lg p-surface-xs text-left";
|
|
809
|
+
return /* @__PURE__ */ M(d, {
|
|
810
|
+
surface: "card",
|
|
811
|
+
padding: "none",
|
|
812
|
+
className: n("ai-package-info--component", y),
|
|
813
|
+
children: [v ? /* @__PURE__ */ j(r, {
|
|
792
814
|
type: "button",
|
|
793
815
|
tone: "secondary",
|
|
794
816
|
buttonStyle: "ghost",
|
|
795
|
-
onClick:
|
|
796
|
-
className: n(
|
|
797
|
-
children:
|
|
817
|
+
onClick: v,
|
|
818
|
+
className: n(w, `h-auto min-h-0 justify-start rounded-none whitespace-normal transition-colors ${p.rowHover}`),
|
|
819
|
+
children: C
|
|
798
820
|
}) : /* @__PURE__ */ j("div", {
|
|
799
|
-
className:
|
|
800
|
-
children:
|
|
801
|
-
}), (f ||
|
|
821
|
+
className: w,
|
|
822
|
+
children: C
|
|
823
|
+
}), (f || m) && /* @__PURE__ */ j("div", {
|
|
802
824
|
className: "ai-package-info--footer px-surface-xs pb-surface-xs",
|
|
803
|
-
children: /* @__PURE__ */ M(
|
|
825
|
+
children: /* @__PURE__ */ M(l, {
|
|
804
826
|
direction: "horizontal",
|
|
805
827
|
align: "center",
|
|
806
828
|
gap: "md",
|
|
807
829
|
children: [
|
|
808
|
-
!!f && /* @__PURE__ */ M(
|
|
830
|
+
!!f && /* @__PURE__ */ M(o, {
|
|
809
831
|
href: f,
|
|
810
832
|
size: "inherit",
|
|
811
833
|
underline: !1,
|
|
812
834
|
target: "_blank",
|
|
813
835
|
rel: "noopener noreferrer",
|
|
814
836
|
onClick: (e) => e.stopPropagation(),
|
|
815
|
-
"aria-label":
|
|
816
|
-
className: "inline-flex items-center gap-space-xs rounded text-muted-foreground hover:text-foreground",
|
|
837
|
+
"aria-label": S.homepageAria,
|
|
838
|
+
className: "inline-flex items-center gap-space-xs rounded-radius-xs text-muted-foreground hover:text-foreground",
|
|
817
839
|
children: [/* @__PURE__ */ j(i, {
|
|
840
|
+
type: "inherit",
|
|
818
841
|
tag: "span",
|
|
819
842
|
weight: "medium",
|
|
820
|
-
children:
|
|
843
|
+
children: S.homepageLabel
|
|
821
844
|
}), /* @__PURE__ */ j(N, { className: "size-icon-sm" })]
|
|
822
845
|
}),
|
|
823
|
-
!!f && !!
|
|
846
|
+
!!f && !!m && /* @__PURE__ */ j(i, {
|
|
824
847
|
tag: "span",
|
|
825
848
|
size: "xs",
|
|
826
849
|
type: "secondary",
|
|
827
|
-
className: "opacity-40",
|
|
828
850
|
"aria-hidden": !0,
|
|
829
851
|
children: "·"
|
|
830
852
|
}),
|
|
831
|
-
!!
|
|
832
|
-
href:
|
|
853
|
+
!!m && /* @__PURE__ */ M(o, {
|
|
854
|
+
href: m,
|
|
833
855
|
size: "inherit",
|
|
834
856
|
underline: !1,
|
|
835
857
|
target: "_blank",
|
|
836
858
|
rel: "noopener noreferrer",
|
|
837
859
|
onClick: (e) => e.stopPropagation(),
|
|
838
|
-
"aria-label":
|
|
839
|
-
className: "inline-flex items-center gap-space-xs rounded text-muted-foreground hover:text-foreground",
|
|
860
|
+
"aria-label": S.repositoryAria,
|
|
861
|
+
className: "inline-flex items-center gap-space-xs rounded-radius-xs text-muted-foreground hover:text-foreground",
|
|
840
862
|
children: [/* @__PURE__ */ j(i, {
|
|
863
|
+
type: "inherit",
|
|
841
864
|
tag: "span",
|
|
842
865
|
weight: "medium",
|
|
843
|
-
children:
|
|
866
|
+
children: S.repositoryLabel
|
|
844
867
|
}), /* @__PURE__ */ j(N, { className: "size-icon-sm" })]
|
|
845
868
|
})
|
|
846
869
|
]
|
|
@@ -856,7 +879,7 @@ function X({ label: e, value: t }) {
|
|
|
856
879
|
size: "xs",
|
|
857
880
|
type: "discrete",
|
|
858
881
|
children: e
|
|
859
|
-
}), /* @__PURE__ */ j(
|
|
882
|
+
}), /* @__PURE__ */ j(h, {
|
|
860
883
|
size: "xs",
|
|
861
884
|
weight: "medium",
|
|
862
885
|
className: "tabular-nums",
|
|
@@ -876,18 +899,18 @@ var Z = {
|
|
|
876
899
|
removed: "D",
|
|
877
900
|
renamed: "R"
|
|
878
901
|
}
|
|
879
|
-
},
|
|
902
|
+
}, Ue = {
|
|
880
903
|
added: "success",
|
|
881
904
|
modified: "warning",
|
|
882
905
|
removed: "destructive",
|
|
883
906
|
renamed: "info"
|
|
884
|
-
},
|
|
907
|
+
}, We = {
|
|
885
908
|
added: "text-success",
|
|
886
909
|
modified: "text-warning-accent",
|
|
887
910
|
removed: "text-destructive",
|
|
888
911
|
renamed: "text-info"
|
|
889
912
|
};
|
|
890
|
-
function
|
|
913
|
+
function Ge(e) {
|
|
891
914
|
let t = e.split(".").pop()?.toLowerCase() ?? "";
|
|
892
915
|
return [
|
|
893
916
|
"ts",
|
|
@@ -904,20 +927,20 @@ function Be(e) {
|
|
|
904
927
|
"py",
|
|
905
928
|
"rs",
|
|
906
929
|
"go"
|
|
907
|
-
].includes(t) ?
|
|
930
|
+
].includes(t) ? Ae : [
|
|
908
931
|
"md",
|
|
909
932
|
"mdx",
|
|
910
933
|
"txt"
|
|
911
|
-
].includes(t) ?
|
|
934
|
+
].includes(t) ? je : ke;
|
|
912
935
|
}
|
|
913
936
|
function Q(e, t = 0) {
|
|
914
937
|
return e.flatMap((e) => [...e.kind === "directory" && (e.defaultExpanded ?? t < 1) ? [e.id] : [], ...Q(e.children ?? [], t + 1)]);
|
|
915
938
|
}
|
|
916
|
-
function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, indent: o, density: s = "compact", disabled:
|
|
917
|
-
let
|
|
939
|
+
function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, indent: o, density: s = "compact", disabled: c, expandedIds: u, defaultExpandedIds: d, onExpandedIdsChange: f, className: p, strings: m, ..._ }) {
|
|
940
|
+
let v = t(Z, m), [y, x] = A(() => d ?? Q(e)), S = u ?? y, C = Te(() => {
|
|
918
941
|
function t(e) {
|
|
919
942
|
return e.map((e) => {
|
|
920
|
-
let r = e.kind === "directory", i = e.icon ?? (r ? S.includes(e.id) ?
|
|
943
|
+
let r = e.kind === "directory", i = e.icon ?? (r ? S.includes(e.id) ? Ne : Me : Ge(e.name));
|
|
921
944
|
return {
|
|
922
945
|
value: e.id,
|
|
923
946
|
label: e.name,
|
|
@@ -927,19 +950,19 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
|
|
|
927
950
|
children: r ? t(e.children ?? []) : void 0,
|
|
928
951
|
icon: /* @__PURE__ */ j(i, {
|
|
929
952
|
"aria-hidden": "true",
|
|
930
|
-
className: n("size-icon", e.status &&
|
|
953
|
+
className: n("size-icon", e.status && We[e.status])
|
|
931
954
|
}),
|
|
932
|
-
trailing: /* @__PURE__ */ M(
|
|
955
|
+
trailing: /* @__PURE__ */ M(l, {
|
|
933
956
|
direction: "horizontal",
|
|
934
957
|
gap: "xs",
|
|
935
958
|
align: "center",
|
|
936
959
|
className: "shrink-0",
|
|
937
|
-
children: [e.status && !a && /* @__PURE__ */ j(
|
|
938
|
-
tone:
|
|
960
|
+
children: [e.status && !a && /* @__PURE__ */ j(b, {
|
|
961
|
+
tone: Ue[e.status],
|
|
939
962
|
size: "sm",
|
|
940
963
|
title: e.status,
|
|
941
|
-
children:
|
|
942
|
-
}), e.trailing != null && /* @__PURE__ */ j(
|
|
964
|
+
children: v.statusLabels[e.status]
|
|
965
|
+
}), e.trailing != null && /* @__PURE__ */ j(h, {
|
|
943
966
|
size: "xs",
|
|
944
967
|
className: "tabular-nums",
|
|
945
968
|
children: e.trailing
|
|
@@ -953,39 +976,39 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
|
|
|
953
976
|
e,
|
|
954
977
|
S,
|
|
955
978
|
a,
|
|
956
|
-
|
|
979
|
+
v.statusLabels
|
|
957
980
|
]);
|
|
958
|
-
return /* @__PURE__ */ j(
|
|
959
|
-
...
|
|
960
|
-
"aria-label":
|
|
981
|
+
return /* @__PURE__ */ j(k, {
|
|
982
|
+
..._,
|
|
983
|
+
"aria-label": _["aria-label"] ?? v.treeAria,
|
|
961
984
|
items: C,
|
|
962
985
|
selectedValues: r === void 0 ? [] : [r],
|
|
963
986
|
expandedValues: S,
|
|
964
987
|
branchActivation: "toggle",
|
|
965
988
|
density: s,
|
|
966
|
-
disabled:
|
|
989
|
+
disabled: c,
|
|
967
990
|
indent: o,
|
|
968
991
|
strings: {
|
|
969
|
-
expand: (e) => `${
|
|
970
|
-
collapse: (e) => `${
|
|
992
|
+
expand: (e) => `${v.expandAria}: ${e}`,
|
|
993
|
+
collapse: (e) => `${v.collapseAria}: ${e}`
|
|
971
994
|
},
|
|
972
995
|
onExpandedValuesChange: (e, t) => {
|
|
973
|
-
|
|
996
|
+
u === void 0 && x(e), f?.(e, t.data);
|
|
974
997
|
},
|
|
975
998
|
onSelectedValuesChange: (e, t) => {
|
|
976
999
|
t.data?.kind === "file" && i?.(t.data);
|
|
977
1000
|
},
|
|
978
|
-
renderLabel: (e) => /* @__PURE__ */ j(
|
|
1001
|
+
renderLabel: (e) => /* @__PURE__ */ j(g, {
|
|
979
1002
|
size: "inherit",
|
|
980
1003
|
weight: "regular",
|
|
981
1004
|
className: n("ai-file-tree--name text-inherit wrap-anywhere", e.data?.status === "removed" && "line-through"),
|
|
982
1005
|
children: e.label
|
|
983
1006
|
}),
|
|
984
|
-
className: n("ai-file-tree--component",
|
|
1007
|
+
className: n("ai-file-tree--component", p)
|
|
985
1008
|
});
|
|
986
1009
|
}
|
|
987
1010
|
$.displayName = "AiFileTree";
|
|
988
1011
|
//#endregion
|
|
989
|
-
export {
|
|
1012
|
+
export { _e as AiAgent, be as AiArtifact, de as AiAttachment, ae as AiChainOfThought, G as AiCitation, ze as AiClassificationPanel, ie as AiCodeBlock, L as AiConfidence, ce as AiConfirmation, U as AiFeedback, $ as AiFileTree, q as AiInlineCitation, re as AiMessageBubble, Y as AiPackageInfo, z as AiPromptSuggestions, ye as AiReasoning, we as AiShimmer, pe as AiSources, Re as AiSummaryBlock, ve as AiTask, V as AiTokenUsage, oe as AiToolCall, me as defaultAiAgentStrings, he as defaultAiArtifactStrings, ue as defaultAiAttachmentStrings, ge as defaultAiChainOfThoughtStrings, W as defaultAiCitationStrings, Se as defaultAiCodeBlockStrings, I as defaultAiConfidenceStrings, le as defaultAiConfirmationStrings, H as defaultAiFeedbackStrings, Z as defaultAiFileTreeStrings, K as defaultAiInlineCitationStrings, ne as defaultAiMessageBubbleStrings, J as defaultAiPackageInfoStrings, R as defaultAiPromptSuggestionsStrings, se as defaultAiReasoningStrings, xe as defaultAiSourcesStrings, fe as defaultAiTaskStrings, B as defaultAiTokenUsageStrings, Ce as defaultAiToolCallStrings };
|
|
990
1013
|
|
|
991
1014
|
//# sourceMappingURL=ai.js.map
|