themelia-react-ui 1.0.1 → 1.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 +137 -0
- package/README.md +59 -13
- package/dist/{accordion-B-5Focs8.js → accordion-BRTcsp8J.js} +8 -8
- package/dist/accordion-BRTcsp8J.js.map +1 -0
- package/dist/{action-menu-Cx3SdfbN.js → action-menu-Drxw_vJk.js} +36 -36
- package/dist/action-menu-Drxw_vJk.js.map +1 -0
- package/dist/affordance-geometry.generated-CL84ZN9A.js +63 -0
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +1 -0
- package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-DLVdK0Py.js} +151 -155
- package/dist/ai-artifact-DLVdK0Py.js.map +1 -0
- package/dist/{app-shell-at8Kt4l_.js → app-shell-C_fKpljx.js} +11 -10
- package/dist/app-shell-C_fKpljx.js.map +1 -0
- package/dist/{attachment-BO2R47wn.js → attachment-DbjUWsP0.js} +12 -12
- package/dist/{attachment-BO2R47wn.js.map → attachment-DbjUWsP0.js.map} +1 -1
- package/dist/auth-CAQcasMV.js +723 -0
- package/dist/auth-CAQcasMV.js.map +1 -0
- package/dist/{avatar-Bpzty83c.js → avatar-Bu2HhitA.js} +6 -6
- package/dist/{avatar-Bpzty83c.js.map → avatar-Bu2HhitA.js.map} +1 -1
- package/dist/{badge-BZXZT9wd.js → badge-CzId1Wlm.js} +4 -4
- package/dist/{badge-BZXZT9wd.js.map → badge-CzId1Wlm.js.map} +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/buttons.js +3 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +25 -27
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +150 -148
- 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 +40 -43
- 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 +1 -1
- package/dist/base/repeaters.js +33 -33
- 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 +83 -81
- 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 +6 -6
- 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 +134 -134
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +120 -117
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +510 -472
- 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 +395 -383
- 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 +36 -36
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BuYz5SDU.js} +9 -8
- package/dist/breadcrumbs-BuYz5SDU.js.map +1 -0
- package/dist/button-BZDasD04.js +651 -0
- package/dist/button-BZDasD04.js.map +1 -0
- package/dist/{button-BS6l5JUw.js → button-BZyfTvwm.js} +3 -3
- package/dist/button-BZyfTvwm.js.map +1 -0
- package/dist/buttons-D_6KJvEE.js +99 -0
- package/dist/buttons-D_6KJvEE.js.map +1 -0
- package/dist/{cards-Cum56XOF.js → cards-qGSErLw_.js} +12 -12
- package/dist/{cards-Cum56XOF.js.map → cards-qGSErLw_.js.map} +1 -1
- package/dist/chart-Bsc5BICK.js +150 -0
- package/dist/chart-Bsc5BICK.js.map +1 -0
- package/dist/{checkbox-BavDRjF7.js → checkbox-BQNDjUCh.js} +3 -3
- package/dist/checkbox-BQNDjUCh.js.map +1 -0
- package/dist/choice-inputs-Mk3iWbhr.js +725 -0
- package/dist/choice-inputs-Mk3iWbhr.js.map +1 -0
- package/dist/{code-block-xHKbAJDj.js → code-block-DzHKRybS.js} +23 -23
- package/dist/code-block-DzHKRybS.js.map +1 -0
- package/dist/{collapsible-DsnktFNv.js → collapsible-ClvC7Bj3.js} +3 -3
- package/dist/{collapsible-DsnktFNv.js.map → collapsible-ClvC7Bj3.js.map} +1 -1
- package/dist/{collection-content-C4fthJV_.js → collection-content-D6S8cv_n.js} +3 -3
- package/dist/{collection-content-C4fthJV_.js.map → collection-content-D6S8cv_n.js.map} +1 -1
- package/dist/{combobox-DEbdr-3u.js → combobox-BFnbJJp3.js} +18 -18
- package/dist/combobox-BFnbJJp3.js.map +1 -0
- package/dist/{combobox-xv3yJbzl.js → combobox-hozNwUcc.js} +313 -316
- package/dist/combobox-hozNwUcc.js.map +1 -0
- package/dist/{command-C0xe7u9B.js → command-BnmSchli.js} +9 -9
- package/dist/command-BnmSchli.js.map +1 -0
- package/dist/comments-u5L0OGip.js +1156 -0
- package/dist/comments-u5L0OGip.js.map +1 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +10 -19
- 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/date-pickers/date-picker.recipes.d.ts +5 -18
- package/dist/components/base/date-pickers/datepicker.types.d.ts +3 -0
- package/dist/components/base/forms/form-field.d.ts +1 -0
- package/dist/components/base/forms/form-sizing.d.ts +3 -3
- 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/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-trailing-action.d.ts +3 -0
- package/dist/components/blocks/analytics/types.d.ts +1 -1
- package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
- 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/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/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/hooks/use-pending-overlay-focus.d.ts +2 -0
- package/dist/components/features/overlays/overlays.types.d.ts +5 -4
- 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/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/page.d.ts +0 -1
- package/dist/components/layout/page/page.types.d.ts +9 -3
- 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/typography/heading.d.ts +5 -2
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/text.styles.d.ts +10 -0
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- 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-DqB-bSYE.js} +33 -56
- package/dist/containers-DqB-bSYE.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-BTSByfmq.js} +6 -6
- package/dist/{copyable-B7SBXJMr.js.map → copyable-BTSByfmq.js.map} +1 -1
- package/dist/{data-display-cWIRdeaf.js → data-display-Bihs9Ven.js} +545 -332
- package/dist/data-display-Bihs9Ven.js.map +1 -0
- package/dist/{date-BFNMnrS5.js → date-DOKhJPu7.js} +4 -4
- package/dist/{date-BFNMnrS5.js.map → date-DOKhJPu7.js.map} +1 -1
- package/dist/{date-picker-CA6ogMQB.js → date-picker-DzP5HQq7.js} +492 -472
- package/dist/date-picker-DzP5HQq7.js.map +1 -0
- package/dist/date-pickers-BpgGz7S-.js +196 -0
- package/dist/date-pickers-BpgGz7S-.js.map +1 -0
- package/dist/{display-CFM5myut.js → display-CS6Hbk18.js} +8 -8
- package/dist/{display-CFM5myut.js.map → display-CS6Hbk18.js.map} +1 -1
- package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-D-boNgGO.js} +7 -7
- package/dist/{dropdown-menu-BlnyHr-9.js.map → dropdown-menu-D-boNgGO.js.map} +1 -1
- package/dist/features/activities.js +152 -141
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +182 -179
- 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 +103 -104
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +375 -373
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +222 -224
- 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 +856 -855
- 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 +1209 -1209
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +52 -52
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +29 -31
- 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 +82 -82
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +4 -4
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +456 -450
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DWUkgEjR.js → feedback-CJkUAapr.js} +29 -29
- package/dist/feedback-CJkUAapr.js.map +1 -0
- package/dist/field-affordance-recipes-uKY4MsZ_.js +25 -0
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +1 -0
- package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-DQQpiLWC.js} +3 -3
- package/dist/field-state-recipes-DQQpiLWC.js.map +1 -0
- package/dist/{filters-BhsUtsxW.js → filters-D6FF8L6s.js} +715 -720
- package/dist/filters-D6FF8L6s.js.map +1 -0
- package/dist/{form-field-Bn7ZH1rA.js → form-field-CZwrkP7m.js} +17 -9
- package/dist/form-field-CZwrkP7m.js.map +1 -0
- package/dist/{form-sizing-BWs70_a2.js → form-sizing-QP8aIRaW.js} +8 -5
- package/dist/form-sizing-QP8aIRaW.js.map +1 -0
- package/dist/{forms-B7pzS25o.js → forms-B5NCbkSC.js} +35 -35
- package/dist/{forms-B7pzS25o.js.map → forms-B5NCbkSC.js.map} +1 -1
- package/dist/forms-numeric-Crrm80Lm.js +867 -0
- package/dist/forms-numeric-Crrm80Lm.js.map +1 -0
- package/dist/{header-C59QZyxV.js → header-kxruN3RM.js} +53 -49
- package/dist/header-kxruN3RM.js.map +1 -0
- package/dist/{hooks-CM1Vp9Pe.js → hooks-BrlnCwQd.js} +2 -2
- package/dist/{hooks-CM1Vp9Pe.js.map → hooks-BrlnCwQd.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-Btc6pQrp.js} +4 -4
- package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-Btc6pQrp.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/input-SX9V0AL3.js +255 -0
- package/dist/input-SX9V0AL3.js.map +1 -0
- package/dist/input-vxcaNCYC.js +20 -0
- package/dist/input-vxcaNCYC.js.map +1 -0
- package/dist/{item-pJ0GsOiJ.js → item-DE4YnuJx.js} +18 -17
- package/dist/item-DE4YnuJx.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 +40 -9
- package/dist/lib/control-group-recipes.d.ts +22 -0
- package/dist/lib/field-affordance-recipes.d.ts +35 -2
- package/dist/lib/field-state-recipes.d.ts +2 -2
- package/dist/lib/navigation-row-recipes.d.ts +3 -2
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -1
- package/dist/lib/surface-recipes.d.ts +5 -2
- package/dist/lib/token-merge.generated.d.ts +144 -2
- package/dist/lib/ui-provider/types.d.ts +4 -2
- package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-DhDRgnVZ.js → media-gallery-DLp3HAz0.js} +75 -74
- package/dist/media-gallery-DLp3HAz0.js.map +1 -0
- package/dist/{mentions-B8Ko-fhS.js → mentions-Cl0Kt_Pd.js} +52 -50
- package/dist/{mentions-B8Ko-fhS.js.map → mentions-Cl0Kt_Pd.js.map} +1 -1
- package/dist/message-SZUNB1eX.js +127 -0
- package/dist/message-SZUNB1eX.js.map +1 -0
- package/dist/{navigation-DBEu4POU.js → navigation-DnQSNMT0.js} +64 -55
- package/dist/navigation-DnQSNMT0.js.map +1 -0
- package/dist/{navigation-BUIn2Qxx.js → navigation-DyytsLRB.js} +37 -37
- package/dist/navigation-DyytsLRB.js.map +1 -0
- package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DQEXQcqY.js} +3 -3
- package/dist/navigation-row-recipes-DQEXQcqY.js.map +1 -0
- package/dist/{number-BNT_BIzJ.js → number-DasMFWEG.js} +4 -4
- package/dist/{number-BNT_BIzJ.js.map → number-DasMFWEG.js.map} +1 -1
- package/dist/overlays-DUbs1KEi.js +1011 -0
- package/dist/overlays-DUbs1KEi.js.map +1 -0
- package/dist/{page-BV6ioQg3.js → page-hGmT4nWK.js} +75 -64
- package/dist/page-hGmT4nWK.js.map +1 -0
- package/dist/{page-header-DQRa0jug.js → page-header-D8nERkn5.js} +9 -9
- package/dist/page-header-D8nERkn5.js.map +1 -0
- package/dist/{pagination-C29vvt3I.js → pagination-NLGqRirf.js} +20 -20
- package/dist/pagination-NLGqRirf.js.map +1 -0
- package/dist/{popover-CoLDEg19.js → popover-CghIYdQf.js} +23 -22
- package/dist/popover-CghIYdQf.js.map +1 -0
- package/dist/{popover-menu-GLIQTJTx.js → popover-menu-B4PoWhRl.js} +6 -6
- package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-B4PoWhRl.js.map} +1 -1
- package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-QlD4JenO.js} +5 -5
- package/dist/popover.recipes-QlD4JenO.js.map +1 -0
- package/dist/{primitives-DKPOGVpj.js → primitives-C7ff0QaI.js} +120 -113
- package/dist/primitives-C7ff0QaI.js.map +1 -0
- package/dist/primitives.js +3 -3
- package/dist/{progress-BOe8l_FZ.js → progress-BroqrAyV.js} +10 -9
- package/dist/progress-BroqrAyV.js.map +1 -0
- package/dist/{receipt-BM8xsGFy.js → receipt-BuJynLgf.js} +8 -8
- package/dist/{receipt-BM8xsGFy.js.map → receipt-BuJynLgf.js.map} +1 -1
- package/dist/{rich-text-B7sBAdDG.js → rich-text-DlxDOtf4.js} +4 -4
- package/dist/{rich-text-B7sBAdDG.js.map → rich-text-DlxDOtf4.js.map} +1 -1
- package/dist/rich-text-editor-BKyG7rWz.js +574 -0
- package/dist/rich-text-editor-BKyG7rWz.js.map +1 -0
- package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-B72Nfuze.js} +35 -26
- package/dist/rich-text-editor.recipes-B72Nfuze.js.map +1 -0
- package/dist/{scroll-area-BheMQ270.js → scroll-area-D-pIhEKl.js} +3 -3
- package/dist/scroll-area-D-pIhEKl.js.map +1 -0
- package/dist/{separator-Gk_WXH-l.js → separator-BNIgG3au.js} +3 -3
- package/dist/{separator-Gk_WXH-l.js.map → separator-BNIgG3au.js.map} +1 -1
- package/dist/{separator-DO0EbCEm.js → separator-BhtFyo4x.js} +2 -2
- package/dist/{separator-DO0EbCEm.js.map → separator-BhtFyo4x.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-BnCyyPOJ.js → settings-DOTOzeZ2.js} +10 -9
- package/dist/{settings-BnCyyPOJ.js.map → settings-DOTOzeZ2.js.map} +1 -1
- package/dist/{sheet-B-q914Ad.js → sheet-BFhrNehm.js} +11 -11
- package/dist/sheet-BFhrNehm.js.map +1 -0
- package/dist/{sidebar-DPR7fmqN.js → sidebar-CyR4XKwR.js} +219 -200
- package/dist/sidebar-CyR4XKwR.js.map +1 -0
- package/dist/{sidebar-C_2p3Tfj.js → sidebar-SvGJ0Zwi.js} +63 -58
- package/dist/sidebar-SvGJ0Zwi.js.map +1 -0
- package/dist/{skeleton-CmT1ppqb.js → skeleton-3F0uhYn3.js} +4 -4
- package/dist/{skeleton-CmT1ppqb.js.map → skeleton-3F0uhYn3.js.map} +1 -1
- package/dist/{smart-card-CYLn46e6.js → smart-card-DjGVV2xr.js} +171 -165
- package/dist/smart-card-DjGVV2xr.js.map +1 -0
- package/dist/{spinner-BY9HbUEh.js → spinner-Cpf7oRkF.js} +5 -5
- package/dist/{spinner-BY9HbUEh.js.map → spinner-Cpf7oRkF.js.map} +1 -1
- package/dist/{structure-MvKVq-oL.js → structure-CRdqVawd.js} +2 -2
- package/dist/{structure-MvKVq-oL.js.map → structure-CRdqVawd.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-CQfRr-VL.js → surface-recipes-Dd__PD-w.js} +4 -3
- package/dist/surface-recipes-Dd__PD-w.js.map +1 -0
- package/dist/{table-DnlAJ-xR.js → table-CLtJTxoR.js} +17 -16
- package/dist/table-CLtJTxoR.js.map +1 -0
- package/dist/table-CcRDZiLP.js +1444 -0
- package/dist/table-CcRDZiLP.js.map +1 -0
- package/dist/tabs-BNgu7g0u.js +188 -0
- package/dist/tabs-BNgu7g0u.js.map +1 -0
- package/dist/text-inputs-DsR56TR-.js +330 -0
- package/dist/text-inputs-DsR56TR-.js.map +1 -0
- package/dist/{text.styles-BwB7vAF2.js → text.styles-Q4sGAIgA.js} +18 -10
- package/dist/text.styles-Q4sGAIgA.js.map +1 -0
- package/dist/theme.css +77 -115
- package/dist/{timelines-B9ICkQcV.js → timelines-D1pkt3se.js} +84 -78
- package/dist/timelines-D1pkt3se.js.map +1 -0
- package/dist/{tree-BdWSaoFT.js → tree-BtmYyMZV.js} +8 -8
- package/dist/{tree-BdWSaoFT.js.map → tree-BtmYyMZV.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-BxQgiZyw.js +96 -0
- package/dist/typography-BxQgiZyw.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-CftIB6TY.js → ui-provider-DRPn3qNl.js} +3 -2
- package/dist/ui-provider-DRPn3qNl.js.map +1 -0
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-D8Za5x_c.js → upload-CDbYw1WN.js} +326 -323
- package/dist/upload-CDbYw1WN.js.map +1 -0
- package/dist/{upload-queue-hIIYBLS7.js → upload-queue-CNd_hH_a.js} +25 -25
- package/dist/upload-queue-CNd_hH_a.js.map +1 -0
- package/dist/{usage-card-DnmnJ58D.js → usage-card-VyJLUwRr.js} +53 -54
- package/dist/usage-card-VyJLUwRr.js.map +1 -0
- package/dist/utils-BvH9PSmq.js +4275 -0
- package/dist/utils-BvH9PSmq.js.map +1 -0
- package/dist/value-inputs-D0KCrfVC.js +840 -0
- package/dist/value-inputs-D0KCrfVC.js.map +1 -0
- package/dist/{workspace-C1PZmk8L.js → workspace-CcR8r-Nt.js} +115 -122
- package/dist/workspace-CcR8r-Nt.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +110 -119
- package/docs/consumer-skill/examples/analytics.tsx +34 -0
- package/docs/consumer-skill/examples/app-layout.tsx +42 -12
- package/docs/consumer-skill/examples/detail.tsx +20 -4
- package/docs/consumer-skill/examples/manifest.json +13 -1
- 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 +116 -2
- package/docs/consumer-skill/references/design-contract.md +33 -7
- package/docs/consumer-skill/references/discovery.md +76 -5
- package/docs/consumer-skill/references/integration.md +14 -0
- package/docs/consumer-skill/references/public-api.json +2023 -218
- package/docs/consumer-skill/references/review.md +55 -3
- package/docs/consumer-skill/references/theming.md +52 -7
- package/docs/consumer-skill/references/tokens.json +177 -9
- package/docs/consumer-skill/references/workflows.md +32 -0
- package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +179 -17
- package/docs/consumer-skill/scripts/discovery.mjs +61 -9
- package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
- package/package.json +7 -4
- package/dist/accordion-B-5Focs8.js.map +0 -1
- 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/auth-OFwWSAap.js +0 -704
- package/dist/auth-OFwWSAap.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.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.map +0 -1
- package/dist/combobox-xv3yJbzl.js.map +0 -1
- package/dist/command-C0xe7u9B.js.map +0 -1
- package/dist/comments-DviPLnwy.js +0 -1132
- package/dist/comments-DviPLnwy.js.map +0 -1
- package/dist/containers-6s-ucRQQ.js.map +0 -1
- package/dist/data-display-cWIRdeaf.js.map +0 -1
- 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/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.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.map +0 -1
- 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.map +0 -1
- package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
- package/dist/overlays-B11wZka6.js +0 -982
- package/dist/overlays-B11wZka6.js.map +0 -1
- 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.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/sheet-B-q914Ad.js.map +0 -1
- package/dist/sidebar-C_2p3Tfj.js.map +0 -1
- package/dist/sidebar-DPR7fmqN.js.map +0 -1
- package/dist/smart-card-CYLn46e6.js.map +0 -1
- 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.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/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,20 +1,20 @@
|
|
|
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 { i as s, t as c } from "../structure-
|
|
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 { t as g } from "../separator-
|
|
13
|
-
import { d as _ } from "../text-inputs-
|
|
14
|
-
import { a as v, c as y, i as b, n as x, o as S, r as C, t as w, u as T } from "../item-
|
|
15
|
-
import { g as E } from "../data-display-
|
|
16
|
-
import { C as ee, S as te, _ as D, a as O, b as ne, c as re, d as ie, f as ae, g as oe, h as se, i as ce, l as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, x as ye, y as be } from "../ai-artifact-
|
|
17
|
-
import { t as xe } from "../tree-
|
|
3
|
+
import { t as n } from "../utils-BvH9PSmq.js";
|
|
4
|
+
import { a as r, r as i, t as a } from "../typography-BxQgiZyw.js";
|
|
5
|
+
import { t as o } from "../button-BZDasD04.js";
|
|
6
|
+
import { i as s, t as c } from "../structure-CRdqVawd.js";
|
|
7
|
+
import { t as l } from "../progress-BroqrAyV.js";
|
|
8
|
+
import { g as u, m as d } from "../primitives-C7ff0QaI.js";
|
|
9
|
+
import { n as f, t as p } from "../number-DasMFWEG.js";
|
|
10
|
+
import { t as m } from "../icon-badge-Btc6pQrp.js";
|
|
11
|
+
import { t as h } from "../badge-CzId1Wlm.js";
|
|
12
|
+
import { t as g } from "../separator-BNIgG3au.js";
|
|
13
|
+
import { d as _ } from "../text-inputs-DsR56TR-.js";
|
|
14
|
+
import { a as v, c as y, i as b, n as x, o as S, r as C, t as w, u as T } from "../item-DE4YnuJx.js";
|
|
15
|
+
import { g as E } from "../data-display-Bihs9Ven.js";
|
|
16
|
+
import { C as ee, S as te, _ as D, a as O, b as ne, c as re, d as ie, f as ae, g as oe, h as se, i as ce, l as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, x as ye, y as be } from "../ai-artifact-DLVdK0Py.js";
|
|
17
|
+
import { t as xe } from "../tree-BtmYyMZV.js";
|
|
18
18
|
import { useMemo as Se, useState as k } from "react";
|
|
19
19
|
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
20
20
|
import { ChevronDown as Ce, ChevronRight as we, Code2 as Te, ExternalLink as N, File as Ee, FileCode as De, FileText as Oe, Folder as ke, FolderOpen as Ae, Globe as je, Package as P, Quote as Me, RefreshCw as Ne, ThumbsDown as Pe, ThumbsUp as F } from "lucide-react";
|
|
@@ -43,14 +43,14 @@ var Fe = {
|
|
|
43
43
|
high: 3
|
|
44
44
|
};
|
|
45
45
|
function Re({ level: e, label: t }) {
|
|
46
|
-
let
|
|
46
|
+
let i = Le[e];
|
|
47
47
|
return /* @__PURE__ */ M("div", {
|
|
48
48
|
className: "ai-summary--confidence flex items-center gap-space-sm",
|
|
49
49
|
children: [/* @__PURE__ */ j("div", {
|
|
50
50
|
className: "flex items-center gap-space-2xs",
|
|
51
51
|
"aria-hidden": "true",
|
|
52
|
-
children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ j("div", { className: n("h-2.5 w-1 rounded-radius-sm", t <
|
|
53
|
-
}), /* @__PURE__ */ j(
|
|
52
|
+
children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ j("div", { className: n("h-2.5 w-1 rounded-radius-sm", t < i ? "bg-foreground/60" : "bg-muted-foreground/20") }, `bar-${String(t)}`))
|
|
53
|
+
}), /* @__PURE__ */ j(r, {
|
|
54
54
|
size: "xs",
|
|
55
55
|
type: "secondary",
|
|
56
56
|
tag: "span",
|
|
@@ -59,7 +59,7 @@ function Re({ level: e, label: t }) {
|
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
function ze({ data: e, children:
|
|
62
|
+
function ze({ data: e, children: i, metadata: a, actions: s, footer: l, className: d, strings: f }) {
|
|
63
63
|
let p = t(Fe, f), m = /* @__PURE__ */ M("div", {
|
|
64
64
|
className: "ai-summary--metadata flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs",
|
|
65
65
|
children: [!!e.generatedAt && /* @__PURE__ */ j(u, {
|
|
@@ -71,18 +71,18 @@ function ze({ data: e, children: a, metadata: o, actions: s, footer: l, classNam
|
|
|
71
71
|
className: "min-w-0 truncate",
|
|
72
72
|
children: e.model
|
|
73
73
|
})]
|
|
74
|
-
}), g = e.onRegenerate ? /* @__PURE__ */ M(
|
|
74
|
+
}), g = e.onRegenerate ? /* @__PURE__ */ M(o, {
|
|
75
75
|
tone: "secondary",
|
|
76
76
|
buttonStyle: "ghost",
|
|
77
77
|
onClick: e.onRegenerate,
|
|
78
78
|
children: [/* @__PURE__ */ j(Ne, { className: "mr-1 h-3 w-3" }), p.regenerate]
|
|
79
|
-
}) : null, _ =
|
|
79
|
+
}) : null, _ = a === void 0 ? m : a, v = s === void 0 ? g : s, y = l === void 0 ? (_ || v) && /* @__PURE__ */ M(A, { children: [_, v] }) : l;
|
|
80
80
|
return /* @__PURE__ */ M(c, {
|
|
81
81
|
"data-component": "ai-summary",
|
|
82
82
|
"data-slot": "ai-summary",
|
|
83
83
|
className: n("ai-summary--component", d),
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */ j(
|
|
85
|
+
/* @__PURE__ */ j(r, {
|
|
86
86
|
lineHeight: "relaxed",
|
|
87
87
|
children: e.summary
|
|
88
88
|
}),
|
|
@@ -100,7 +100,7 @@ function ze({ data: e, children: a, metadata: o, actions: s, footer: l, classNam
|
|
|
100
100
|
level: e.confidence,
|
|
101
101
|
label: p.confidenceLevels[e.confidence]
|
|
102
102
|
}),
|
|
103
|
-
|
|
103
|
+
i,
|
|
104
104
|
!!y && /* @__PURE__ */ j(c, {
|
|
105
105
|
direction: {
|
|
106
106
|
base: "vertical",
|
|
@@ -116,7 +116,7 @@ function ze({ data: e, children: a, metadata: o, actions: s, footer: l, classNam
|
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/components/blocks/ai/ai-classification/ai-classification.tsx
|
|
119
|
-
function Be({ data: e, children:
|
|
119
|
+
function Be({ data: e, children: i, className: a, strings: o }) {
|
|
120
120
|
let s = t(Ie, o), l = e.confidence >= .9 ? s.confidenceBands.high : e.confidence >= .7 ? s.confidenceBands.medium : s.confidenceBands.low;
|
|
121
121
|
return /* @__PURE__ */ M(c, {
|
|
122
122
|
"data-component": "ai-classification",
|
|
@@ -148,12 +148,14 @@ function Be({ data: e, children: r, className: a, strings: o }) {
|
|
|
148
148
|
label: s.complexityLabel,
|
|
149
149
|
labelClassName: "text-sm font-medium text-foreground",
|
|
150
150
|
value: /* @__PURE__ */ M("span", {
|
|
151
|
-
className: "flex items-center gap-space-
|
|
152
|
-
children: [
|
|
151
|
+
className: "flex items-center gap-space-md",
|
|
152
|
+
children: [/* @__PURE__ */ j("span", {
|
|
153
|
+
className: "flex items-center gap-space-xs",
|
|
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-foreground/60" : "bg-muted") }, `cx-${String(r)}`))
|
|
155
|
+
}), /* @__PURE__ */ M(r, {
|
|
153
156
|
tag: "span",
|
|
154
157
|
size: "xs",
|
|
155
158
|
type: "secondary",
|
|
156
|
-
className: "ml-1",
|
|
157
159
|
children: [String(e.complexityScore), "/5"]
|
|
158
160
|
})]
|
|
159
161
|
})
|
|
@@ -177,7 +179,7 @@ function Be({ data: e, children: r, className: a, strings: o }) {
|
|
|
177
179
|
children: e.suggestedAction
|
|
178
180
|
})
|
|
179
181
|
}),
|
|
180
|
-
/* @__PURE__ */ j(
|
|
182
|
+
/* @__PURE__ */ j(r, {
|
|
181
183
|
lineHeight: "relaxed",
|
|
182
184
|
type: "secondary",
|
|
183
185
|
children: e.summary
|
|
@@ -192,14 +194,14 @@ function Be({ data: e, children: r, className: a, strings: o }) {
|
|
|
192
194
|
": ",
|
|
193
195
|
l
|
|
194
196
|
]
|
|
195
|
-
}), /* @__PURE__ */ j(
|
|
197
|
+
}), /* @__PURE__ */ j(r, {
|
|
196
198
|
size: "xs",
|
|
197
199
|
type: "discrete",
|
|
198
200
|
tag: "span",
|
|
199
201
|
children: e.model
|
|
200
202
|
})]
|
|
201
203
|
}),
|
|
202
|
-
|
|
204
|
+
i
|
|
203
205
|
]
|
|
204
206
|
});
|
|
205
207
|
}
|
|
@@ -218,7 +220,7 @@ var I = {
|
|
|
218
220
|
function Ve(e) {
|
|
219
221
|
return e >= .85 ? "success" : e >= .6 ? "warning" : "destructive";
|
|
220
222
|
}
|
|
221
|
-
function L({ score: e, model:
|
|
223
|
+
function L({ score: e, model: a, factors: o, className: s, strings: u }) {
|
|
222
224
|
let d = t(I, u), p = Math.round(e * 100), m = Ve(e), g = m === "success" ? d.levelHigh : m === "warning" ? d.levelMedium : d.levelLow, _ = 2 * Math.PI * 24, v = _ - p / 100 * _;
|
|
223
225
|
return /* @__PURE__ */ M(c, {
|
|
224
226
|
"data-component": "ai-confidence",
|
|
@@ -229,7 +231,7 @@ function L({ score: e, model: r, factors: o, className: s, strings: u }) {
|
|
|
229
231
|
children: [/* @__PURE__ */ M("div", {
|
|
230
232
|
className: "grid gap-space-xl @md/ai-confidence:grid-cols-[auto_minmax(0,1fr)] @md/ai-confidence:items-center",
|
|
231
233
|
children: [/* @__PURE__ */ M("div", {
|
|
232
|
-
className: "relative shrink-0",
|
|
234
|
+
className: "relative w-fit shrink-0",
|
|
233
235
|
children: [/* @__PURE__ */ M("svg", {
|
|
234
236
|
width: "56",
|
|
235
237
|
height: "56",
|
|
@@ -254,7 +256,7 @@ function L({ score: e, model: r, factors: o, className: s, strings: u }) {
|
|
|
254
256
|
strokeDasharray: _,
|
|
255
257
|
strokeDashoffset: v,
|
|
256
258
|
transform: "rotate(-90 32 32)",
|
|
257
|
-
className: n(m === "success" && "text-success", m === "warning" && "text-warning", m === "destructive" && "text-destructive")
|
|
259
|
+
className: n(m === "success" && "text-success", m === "warning" && "text-warning-accent", m === "destructive" && "text-destructive")
|
|
258
260
|
})]
|
|
259
261
|
}), /* @__PURE__ */ j("div", {
|
|
260
262
|
className: "absolute inset-0 flex flex-col items-center justify-center",
|
|
@@ -267,24 +269,24 @@ function L({ score: e, model: r, factors: o, className: s, strings: u }) {
|
|
|
267
269
|
})]
|
|
268
270
|
}), /* @__PURE__ */ M(c, {
|
|
269
271
|
gap: "sm",
|
|
270
|
-
children: [/* @__PURE__ */ j(
|
|
272
|
+
children: [/* @__PURE__ */ j(i, { children: d.confidenceLabel }), /* @__PURE__ */ M(c, {
|
|
271
273
|
direction: "horizontal",
|
|
272
274
|
gap: "sm",
|
|
273
275
|
children: [/* @__PURE__ */ j(h, {
|
|
274
276
|
tone: m,
|
|
275
277
|
children: g
|
|
276
|
-
}), !!
|
|
278
|
+
}), !!a && /* @__PURE__ */ j(r, {
|
|
277
279
|
size: "xs",
|
|
278
280
|
type: "secondary",
|
|
279
281
|
className: "truncate",
|
|
280
|
-
children:
|
|
282
|
+
children: a
|
|
281
283
|
})]
|
|
282
284
|
})]
|
|
283
285
|
})]
|
|
284
286
|
}), !!o && o.length > 0 && /* @__PURE__ */ M(c, {
|
|
285
287
|
gap: "md",
|
|
286
288
|
className: "mt-space-xl",
|
|
287
|
-
children: [/* @__PURE__ */ j(
|
|
289
|
+
children: [/* @__PURE__ */ j(i, { children: d.factorsLabel }), o.map((e) => /* @__PURE__ */ M(c, {
|
|
288
290
|
gap: "sm",
|
|
289
291
|
children: [/* @__PURE__ */ j(E, {
|
|
290
292
|
label: e.label,
|
|
@@ -358,8 +360,8 @@ var B = {
|
|
|
358
360
|
};
|
|
359
361
|
//#endregion
|
|
360
362
|
//#region src/components/blocks/ai/ai-token-usage/ai-token-usage.tsx
|
|
361
|
-
function V({ model: e, inputTokens:
|
|
362
|
-
let g = t(B, m), _ =
|
|
363
|
+
function V({ model: e, inputTokens: a, outputTokens: o, cost: l, maxTokens: u, className: d, strings: m }) {
|
|
364
|
+
let g = t(B, m), _ = a + o, v = u ? Math.min(100, Math.round(_ / u * 100)) : 0;
|
|
363
365
|
return /* @__PURE__ */ M(c, {
|
|
364
366
|
"data-component": "ai-token-usage",
|
|
365
367
|
"data-slot": "ai-token-usage",
|
|
@@ -378,7 +380,7 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: l, maxTokens: u, c
|
|
|
378
380
|
children: [
|
|
379
381
|
{
|
|
380
382
|
label: g.input,
|
|
381
|
-
value:
|
|
383
|
+
value: a
|
|
382
384
|
},
|
|
383
385
|
{
|
|
384
386
|
label: g.output,
|
|
@@ -389,10 +391,10 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: l, maxTokens: u, c
|
|
|
389
391
|
value: _
|
|
390
392
|
}
|
|
391
393
|
].map((e) => /* @__PURE__ */ j("div", {
|
|
392
|
-
className: "rounded-radius
|
|
394
|
+
className: "rounded-radius bg-muted/40 p-surface-xs",
|
|
393
395
|
children: /* @__PURE__ */ M(c, {
|
|
394
396
|
gap: "2xs",
|
|
395
|
-
children: [/* @__PURE__ */ j(
|
|
397
|
+
children: [/* @__PURE__ */ j(i, { children: e.label }), /* @__PURE__ */ j(p, {
|
|
396
398
|
value: e.value,
|
|
397
399
|
weight: "semibold",
|
|
398
400
|
align: "left"
|
|
@@ -411,7 +413,7 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: l, maxTokens: u, c
|
|
|
411
413
|
size: "xs",
|
|
412
414
|
align: "left"
|
|
413
415
|
}),
|
|
414
|
-
/* @__PURE__ */ j(
|
|
416
|
+
/* @__PURE__ */ j(r, {
|
|
415
417
|
tag: "span",
|
|
416
418
|
size: "xs",
|
|
417
419
|
"aria-hidden": !0,
|
|
@@ -442,8 +444,8 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: l, maxTokens: u, c
|
|
|
442
444
|
})]
|
|
443
445
|
}),
|
|
444
446
|
!!l && /* @__PURE__ */ j(E, {
|
|
445
|
-
className: "mt-space-lg rounded-radius
|
|
446
|
-
label: /* @__PURE__ */ j(
|
|
447
|
+
className: "mt-space-lg rounded-radius bg-primary/5 p-surface-xs",
|
|
448
|
+
label: /* @__PURE__ */ j(r, {
|
|
447
449
|
tag: "span",
|
|
448
450
|
size: "xs",
|
|
449
451
|
weight: "medium",
|
|
@@ -470,14 +472,14 @@ var H = {
|
|
|
470
472
|
};
|
|
471
473
|
//#endregion
|
|
472
474
|
//#region src/components/blocks/ai/ai-feedback/ai-feedback.tsx
|
|
473
|
-
function U({ value: e, onVote:
|
|
475
|
+
function U({ value: e, onVote: i, onSubmitComment: a, allowComment: s = !0, submitted: l = !1, className: u, strings: d }) {
|
|
474
476
|
let f = t(H, d), [p, m] = k(null), [h, g] = k(""), v = e ?? p, y = (t) => {
|
|
475
477
|
let n = v === t ? null : t;
|
|
476
|
-
e === void 0 && m(n),
|
|
478
|
+
e === void 0 && m(n), i?.(n);
|
|
477
479
|
};
|
|
478
480
|
return l ? /* @__PURE__ */ M("div", {
|
|
479
|
-
className: n("ai-feedback--component", "inline-flex items-center gap-space-md rounded-
|
|
480
|
-
children: [/* @__PURE__ */ j(F, { className: "size-icon-md text-success" }), /* @__PURE__ */ j(
|
|
481
|
+
className: n("ai-feedback--component", "inline-flex items-center gap-space-md rounded-radius bg-success/10 px-space-lg py-space-sm", u),
|
|
482
|
+
children: [/* @__PURE__ */ j(F, { className: "size-icon-md text-success" }), /* @__PURE__ */ j(r, {
|
|
481
483
|
size: "xs",
|
|
482
484
|
type: "success",
|
|
483
485
|
weight: "medium",
|
|
@@ -488,12 +490,12 @@ function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, subm
|
|
|
488
490
|
children: [/* @__PURE__ */ M("div", {
|
|
489
491
|
className: "flex items-center gap-space-md",
|
|
490
492
|
children: [
|
|
491
|
-
/* @__PURE__ */ j(
|
|
493
|
+
/* @__PURE__ */ j(r, {
|
|
492
494
|
size: "xs",
|
|
493
495
|
type: "secondary",
|
|
494
496
|
children: f.prompt
|
|
495
497
|
}),
|
|
496
|
-
/* @__PURE__ */ j(
|
|
498
|
+
/* @__PURE__ */ j(o, {
|
|
497
499
|
type: "button",
|
|
498
500
|
tone: "secondary",
|
|
499
501
|
buttonStyle: v === "up" ? "solid" : "ghost",
|
|
@@ -505,7 +507,7 @@ function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, subm
|
|
|
505
507
|
className: n(v === "up" && "text-success bg-success/15 hover:bg-success/20"),
|
|
506
508
|
children: /* @__PURE__ */ j(F, { className: "size-icon-md" })
|
|
507
509
|
}),
|
|
508
|
-
/* @__PURE__ */ j(
|
|
510
|
+
/* @__PURE__ */ j(o, {
|
|
509
511
|
type: "button",
|
|
510
512
|
tone: "secondary",
|
|
511
513
|
buttonStyle: v === "down" ? "solid" : "ghost",
|
|
@@ -514,7 +516,7 @@ function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, subm
|
|
|
514
516
|
"aria-label": f.thumbsDownAria,
|
|
515
517
|
"aria-pressed": v === "down",
|
|
516
518
|
onClick: () => y("down"),
|
|
517
|
-
className: n(v === "down" && "text-destructive bg-destructive/
|
|
519
|
+
className: n(v === "down" && "text-destructive bg-destructive/10 hover:bg-destructive/10"),
|
|
518
520
|
children: /* @__PURE__ */ j(Pe, { className: "size-icon-md" })
|
|
519
521
|
})
|
|
520
522
|
]
|
|
@@ -529,10 +531,10 @@ function U({ value: e, onVote: a, onSubmitComment: o, allowComment: s = !0, subm
|
|
|
529
531
|
direction: "horizontal",
|
|
530
532
|
gap: "none",
|
|
531
533
|
justify: "end",
|
|
532
|
-
children: /* @__PURE__ */ j(
|
|
534
|
+
children: /* @__PURE__ */ j(o, {
|
|
533
535
|
type: "button",
|
|
534
536
|
onClick: () => {
|
|
535
|
-
|
|
537
|
+
a?.(h, v), g("");
|
|
536
538
|
},
|
|
537
539
|
disabled: !h.trim(),
|
|
538
540
|
children: f.submit
|
|
@@ -555,26 +557,26 @@ var W = {
|
|
|
555
557
|
};
|
|
556
558
|
//#endregion
|
|
557
559
|
//#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
|
-
|
|
560
|
+
function G({ sources: t, expanded: i, defaultExpanded: a = !1, onExpandedChange: s, maxCollapsedRows: l = 0, className: u, strings: d }) {
|
|
561
|
+
let f = e(W, d), [p, m] = k(a), h = i ?? p, g = (e) => {
|
|
562
|
+
i === void 0 && m(e), s?.(e);
|
|
561
563
|
}, _ = h ? t : t.slice(0, Math.max(0, l)), v = t.length - _.length;
|
|
562
564
|
return /* @__PURE__ */ j("div", {
|
|
563
565
|
className: n("ai-citation--component", "rounded-radius border border-border bg-card px-surface-xs py-surface-xs shadow-xs", u),
|
|
564
566
|
children: /* @__PURE__ */ M(c, {
|
|
565
567
|
gap: "lg",
|
|
566
|
-
children: [/* @__PURE__ */ M(
|
|
568
|
+
children: [/* @__PURE__ */ M(o, {
|
|
567
569
|
type: "button",
|
|
568
570
|
tone: "secondary",
|
|
569
571
|
buttonStyle: "ghost",
|
|
570
572
|
size: "sm",
|
|
571
573
|
onClick: () => g(!h),
|
|
572
|
-
className: n("ai-citation--trigger h-auto justify-start gap-space-sm rounded-
|
|
574
|
+
className: n("ai-citation--trigger h-auto justify-start gap-space-sm rounded-inner px-control py-row-y", "text-muted-foreground hover:text-foreground hover:bg-muted/40"),
|
|
573
575
|
"aria-expanded": h,
|
|
574
576
|
"aria-label": h ? f.collapse : f.expand,
|
|
575
577
|
children: [
|
|
576
578
|
/* @__PURE__ */ j(Me, { className: "size-icon-md" }),
|
|
577
|
-
/* @__PURE__ */ M(
|
|
579
|
+
/* @__PURE__ */ M(r, {
|
|
578
580
|
weight: "medium",
|
|
579
581
|
children: [
|
|
580
582
|
f.title,
|
|
@@ -588,7 +590,7 @@ function G({ sources: t, expanded: a, defaultExpanded: o = !1, onExpandedChange:
|
|
|
588
590
|
source: e,
|
|
589
591
|
index: t + 1,
|
|
590
592
|
strings: f
|
|
591
|
-
}, e.id)), !h && v > 0 && /* @__PURE__ */ j(
|
|
593
|
+
}, e.id)), !h && v > 0 && /* @__PURE__ */ j(r, {
|
|
592
594
|
size: "xs",
|
|
593
595
|
type: "secondary",
|
|
594
596
|
children: f.hiddenCount(v)
|
|
@@ -597,7 +599,7 @@ function G({ sources: t, expanded: a, defaultExpanded: o = !1, onExpandedChange:
|
|
|
597
599
|
});
|
|
598
600
|
}
|
|
599
601
|
G.displayName = "AiCitation";
|
|
600
|
-
function He({ source: e, index: t, strings:
|
|
602
|
+
function He({ source: e, index: t, strings: i }) {
|
|
601
603
|
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
604
|
href: e.url,
|
|
603
605
|
target: "_blank",
|
|
@@ -632,12 +634,12 @@ function He({ source: e, index: t, strings: r }) {
|
|
|
632
634
|
(e.publisher || e.publishedAt) && /* @__PURE__ */ M(v, {
|
|
633
635
|
className: "mt-1 justify-start gap-space-sm",
|
|
634
636
|
children: [
|
|
635
|
-
!!e.publisher && /* @__PURE__ */ j(
|
|
637
|
+
!!e.publisher && /* @__PURE__ */ j(r, {
|
|
636
638
|
size: "xs",
|
|
637
639
|
type: "discrete",
|
|
638
640
|
children: e.publisher
|
|
639
641
|
}),
|
|
640
|
-
!!e.publisher && !!e.publishedAt && /* @__PURE__ */ j(
|
|
642
|
+
!!e.publisher && !!e.publishedAt && /* @__PURE__ */ j(r, {
|
|
641
643
|
size: "xs",
|
|
642
644
|
type: "discrete",
|
|
643
645
|
children: "·"
|
|
@@ -661,7 +663,7 @@ function He({ source: e, index: t, strings: r }) {
|
|
|
661
663
|
}), /* @__PURE__ */ j("div", {
|
|
662
664
|
className: "h-1 w-full overflow-hidden rounded-full bg-muted",
|
|
663
665
|
role: "progressbar",
|
|
664
|
-
"aria-label":
|
|
666
|
+
"aria-label": i.relevance,
|
|
665
667
|
"aria-valuemin": 0,
|
|
666
668
|
"aria-valuemax": 100,
|
|
667
669
|
"aria-valuenow": a,
|
|
@@ -688,37 +690,34 @@ function Ue(e, t) {
|
|
|
688
690
|
return r === void 0 ? e : String(r);
|
|
689
691
|
});
|
|
690
692
|
}
|
|
691
|
-
function q({ index: t, title:
|
|
692
|
-
let
|
|
693
|
+
function q({ index: t, title: i, url: o, onSelect: s, className: c, strings: l }) {
|
|
694
|
+
let u = e(K, l), d = Ue(u.openAria, {
|
|
693
695
|
n: t,
|
|
694
|
-
title:
|
|
695
|
-
}),
|
|
696
|
-
return
|
|
697
|
-
href:
|
|
696
|
+
title: i ?? ""
|
|
697
|
+
}), f = i ? `${u.sourcePrefix} ${t}: ${i}` : `${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);
|
|
698
|
+
return o ? /* @__PURE__ */ j(a, {
|
|
699
|
+
href: o,
|
|
698
700
|
size: "inherit",
|
|
699
701
|
underline: !1,
|
|
700
702
|
target: "_blank",
|
|
701
703
|
rel: "noopener noreferrer",
|
|
702
|
-
title:
|
|
703
|
-
"aria-label":
|
|
704
|
-
className: n("ai-inline-citation--component",
|
|
705
|
-
children: /* @__PURE__ */ j(
|
|
704
|
+
title: f,
|
|
705
|
+
"aria-label": d,
|
|
706
|
+
className: n("ai-inline-citation--component", p),
|
|
707
|
+
children: /* @__PURE__ */ j(r, {
|
|
706
708
|
tag: "span",
|
|
707
709
|
size: "xs",
|
|
708
710
|
weight: "medium",
|
|
709
711
|
className: "leading-none",
|
|
710
712
|
children: t
|
|
711
713
|
})
|
|
712
|
-
}) :
|
|
714
|
+
}) : s ? /* @__PURE__ */ j("button", {
|
|
713
715
|
type: "button",
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
"aria-label": f,
|
|
720
|
-
className: n("ai-inline-citation--component", m),
|
|
721
|
-
children: /* @__PURE__ */ j(i, {
|
|
716
|
+
onClick: s,
|
|
717
|
+
title: f,
|
|
718
|
+
"aria-label": d,
|
|
719
|
+
className: n("ai-inline-citation--component", p),
|
|
720
|
+
children: /* @__PURE__ */ j(r, {
|
|
722
721
|
tag: "span",
|
|
723
722
|
size: "xs",
|
|
724
723
|
weight: "medium",
|
|
@@ -726,10 +725,10 @@ function q({ index: t, title: a, url: s, onSelect: c, className: l, strings: u }
|
|
|
726
725
|
children: t
|
|
727
726
|
})
|
|
728
727
|
}) : /* @__PURE__ */ j("span", {
|
|
729
|
-
title:
|
|
730
|
-
"aria-label":
|
|
731
|
-
className: n("ai-inline-citation--component",
|
|
732
|
-
children: /* @__PURE__ */ j(
|
|
728
|
+
title: f,
|
|
729
|
+
"aria-label": d,
|
|
730
|
+
className: n("ai-inline-citation--component", p),
|
|
731
|
+
children: /* @__PURE__ */ j(r, {
|
|
733
732
|
tag: "span",
|
|
734
733
|
size: "xs",
|
|
735
734
|
weight: "medium",
|
|
@@ -753,35 +752,39 @@ var J = {
|
|
|
753
752
|
};
|
|
754
753
|
//#endregion
|
|
755
754
|
//#region src/components/blocks/ai/ai-package-info/ai-package-info.tsx
|
|
756
|
-
function Y({ name: e, version:
|
|
755
|
+
function Y({ name: e, version: i, description: s, license: l, publishedAt: u, homepage: f, repository: p, weeklyDownloads: m, keywords: g, onSelect: _, className: v, strings: y }) {
|
|
757
756
|
let b = t(J, y), x = /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", {
|
|
758
757
|
"aria-hidden": !0,
|
|
759
|
-
className: "inline-flex size-9 shrink-0 items-center justify-center rounded-
|
|
758
|
+
className: "inline-flex size-9 shrink-0 items-center justify-center rounded-inner bg-muted text-muted-foreground",
|
|
760
759
|
children: /* @__PURE__ */ j(P, { className: "size-icon" })
|
|
761
760
|
}), /* @__PURE__ */ M("div", {
|
|
762
761
|
className: "min-w-0 flex-1",
|
|
763
762
|
children: [
|
|
764
|
-
/* @__PURE__ */ M(
|
|
765
|
-
|
|
766
|
-
children: [/* @__PURE__ */
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
763
|
+
/* @__PURE__ */ M(c, {
|
|
764
|
+
gap: "dense",
|
|
765
|
+
children: [/* @__PURE__ */ M(c, {
|
|
766
|
+
direction: "horizontal",
|
|
767
|
+
gap: "md",
|
|
768
|
+
align: "center",
|
|
769
|
+
children: [/* @__PURE__ */ j(d, {
|
|
770
|
+
weight: "semibold",
|
|
771
|
+
className: "truncate",
|
|
772
|
+
children: e
|
|
773
|
+
}), !!i && /* @__PURE__ */ j(h, {
|
|
774
|
+
tone: "secondary",
|
|
775
|
+
children: /* @__PURE__ */ M(d, {
|
|
776
|
+
size: "xs",
|
|
777
|
+
className: "text-inherit",
|
|
778
|
+
children: ["v", i.replace(/^v/, "")]
|
|
779
|
+
})
|
|
780
|
+
})]
|
|
781
|
+
}), !!s && /* @__PURE__ */ j(r, {
|
|
782
|
+
size: "xs",
|
|
783
|
+
type: "secondary",
|
|
784
|
+
className: "line-clamp-2",
|
|
785
|
+
children: s
|
|
777
786
|
})]
|
|
778
787
|
}),
|
|
779
|
-
!!s && /* @__PURE__ */ j(i, {
|
|
780
|
-
size: "xs",
|
|
781
|
-
type: "secondary",
|
|
782
|
-
className: "mt-1 line-clamp-2",
|
|
783
|
-
children: s
|
|
784
|
-
}),
|
|
785
788
|
(l || u || m !== void 0) && /* @__PURE__ */ M("div", {
|
|
786
789
|
className: "mt-space-md flex flex-wrap items-center gap-x-space-lg gap-y-space-xs",
|
|
787
790
|
children: [
|
|
@@ -810,7 +813,7 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
810
813
|
})] }), S = "ai-package-info--body flex w-full items-start gap-space-lg p-surface-xs text-left";
|
|
811
814
|
return /* @__PURE__ */ M("div", {
|
|
812
815
|
className: n("ai-package-info--component block w-full overflow-hidden rounded-radius border border-border/60 bg-card", v),
|
|
813
|
-
children: [_ ? /* @__PURE__ */ j(
|
|
816
|
+
children: [_ ? /* @__PURE__ */ j(o, {
|
|
814
817
|
type: "button",
|
|
815
818
|
tone: "secondary",
|
|
816
819
|
buttonStyle: "ghost",
|
|
@@ -827,7 +830,7 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
827
830
|
align: "center",
|
|
828
831
|
gap: "md",
|
|
829
832
|
children: [
|
|
830
|
-
!!f && /* @__PURE__ */ M(
|
|
833
|
+
!!f && /* @__PURE__ */ M(a, {
|
|
831
834
|
href: f,
|
|
832
835
|
size: "inherit",
|
|
833
836
|
underline: !1,
|
|
@@ -838,7 +841,7 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
838
841
|
className: "inline-flex items-center gap-space-xs rounded text-muted-foreground hover:text-foreground",
|
|
839
842
|
children: [
|
|
840
843
|
/* @__PURE__ */ j(je, { className: "size-icon-sm" }),
|
|
841
|
-
/* @__PURE__ */ j(
|
|
844
|
+
/* @__PURE__ */ j(r, {
|
|
842
845
|
tag: "span",
|
|
843
846
|
weight: "medium",
|
|
844
847
|
children: b.homepageLabel
|
|
@@ -846,7 +849,7 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
846
849
|
/* @__PURE__ */ j(N, { className: "size-icon-sm" })
|
|
847
850
|
]
|
|
848
851
|
}),
|
|
849
|
-
!!f && !!p && /* @__PURE__ */ j(
|
|
852
|
+
!!f && !!p && /* @__PURE__ */ j(r, {
|
|
850
853
|
tag: "span",
|
|
851
854
|
size: "xs",
|
|
852
855
|
type: "secondary",
|
|
@@ -854,7 +857,7 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
854
857
|
"aria-hidden": !0,
|
|
855
858
|
children: "·"
|
|
856
859
|
}),
|
|
857
|
-
!!p && /* @__PURE__ */ M(
|
|
860
|
+
!!p && /* @__PURE__ */ M(a, {
|
|
858
861
|
href: p,
|
|
859
862
|
size: "inherit",
|
|
860
863
|
underline: !1,
|
|
@@ -865,7 +868,7 @@ function Y({ name: e, version: a, description: s, license: l, publishedAt: u, ho
|
|
|
865
868
|
className: "inline-flex items-center gap-space-xs rounded text-muted-foreground hover:text-foreground",
|
|
866
869
|
children: [
|
|
867
870
|
/* @__PURE__ */ j(Te, { className: "size-icon-sm" }),
|
|
868
|
-
/* @__PURE__ */ j(
|
|
871
|
+
/* @__PURE__ */ j(r, {
|
|
869
872
|
tag: "span",
|
|
870
873
|
weight: "medium",
|
|
871
874
|
children: b.repositoryLabel
|
|
@@ -882,7 +885,7 @@ Y.displayName = "AiPackageInfo";
|
|
|
882
885
|
function X({ label: e, value: t }) {
|
|
883
886
|
return /* @__PURE__ */ M("div", {
|
|
884
887
|
className: "inline-flex items-baseline gap-space-xs",
|
|
885
|
-
children: [/* @__PURE__ */ j(
|
|
888
|
+
children: [/* @__PURE__ */ j(r, {
|
|
886
889
|
size: "xs",
|
|
887
890
|
type: "discrete",
|
|
888
891
|
children: e
|