themelia-react-ui 1.0.0 → 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 +190 -1
- package/README.md +92 -13
- package/dist/{accordion-BRWh3BM1.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-DkOArd3-.js → ai-artifact-DLVdK0Py.js} +151 -155
- package/dist/ai-artifact-DLVdK0Py.js.map +1 -0
- package/dist/{app-shell-BH_bGcE2.js → app-shell-C_fKpljx.js} +11 -10
- package/dist/app-shell-C_fKpljx.js.map +1 -0
- package/dist/{attachment-DsLgNHXt.js → attachment-DbjUWsP0.js} +12 -12
- package/dist/{attachment-DsLgNHXt.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-CsnWaYmt.js → avatar-Bu2HhitA.js} +76 -71
- package/dist/avatar-Bu2HhitA.js.map +1 -0
- 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 +3 -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 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +233 -0
- package/dist/base/inline-edit.js.map +1 -0
- 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 +3 -0
- package/dist/blocks/analytics.js +530 -491
- 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 +311 -0
- package/dist/blocks/planning.js.map +1 -0
- 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-BMB0laLG.js → cards-qGSErLw_.js} +12 -12
- package/dist/{cards-BMB0laLG.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-BQNDjUCh.js +34 -0
- 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-DIlqzoiD.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-HDftpzxt.js → combobox-BFnbJJp3.js} +18 -18
- package/dist/combobox-BFnbJJp3.js.map +1 -0
- package/dist/{combobox-CHD750do.js → combobox-hozNwUcc.js} +313 -316
- package/dist/combobox-hozNwUcc.js.map +1 -0
- package/dist/{command-D0kWBZfd.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 +3 -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/inline-edit/index.d.ts +2 -0
- package/dist/components/base/inline-edit/inline-edit.d.ts +81 -0
- package/dist/components/base/inline-edit/inline-edit.recipes.d.ts +6 -0
- 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/structure/structure.recipes.d.ts +6 -0
- 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/index.d.ts +1 -0
- package/dist/components/blocks/analytics/types.d.ts +1 -1
- package/dist/components/blocks/analytics/usage-card/index.d.ts +3 -0
- package/dist/components/blocks/analytics/usage-card/types.d.ts +52 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.d.ts +6 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.data.d.ts +19 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +22 -0
- 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/blocks/planning/index.d.ts +3 -0
- package/dist/components/blocks/planning/task-card.d.ts +3 -0
- package/dist/components/blocks/planning/task-card.strings.d.ts +15 -0
- package/dist/components/blocks/planning/task-card.types.d.ts +66 -0
- 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-CPNyNo1_.js → containers-DqB-bSYE.js} +34 -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-b3d1TfL4.js → data-display-Bihs9Ven.js} +542 -329
- 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-DI6kPNof.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-ByI5tkqy.js → display-CS6Hbk18.js} +8 -8
- package/dist/{display-ByI5tkqy.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 +1210 -1209
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +133 -132
- 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-CJkUAapr.js +233 -0
- 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-qtrcv1hf.js → filters-D6FF8L6s.js} +715 -720
- package/dist/filters-D6FF8L6s.js.map +1 -0
- package/dist/{form-field-C6W-y2hR.js → form-field-CZwrkP7m.js} +17 -9
- package/dist/form-field-CZwrkP7m.js.map +1 -0
- package/dist/{form-sizing-39NohSqn.js → form-sizing-QP8aIRaW.js} +10 -6
- package/dist/form-sizing-QP8aIRaW.js.map +1 -0
- package/dist/{forms-BF-HSbff.js → forms-B5NCbkSC.js} +35 -35
- package/dist/{forms-BF-HSbff.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-B8ex54cY.js → header-kxruN3RM.js} +53 -49
- package/dist/header-kxruN3RM.js.map +1 -0
- package/dist/{hooks-D6UBVzf2.js → hooks-BrlnCwQd.js} +2 -2
- package/dist/{hooks-D6UBVzf2.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 +44 -4
- 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-Ca4YmvBi.js → media-gallery-DLp3HAz0.js} +75 -74
- package/dist/media-gallery-DLp3HAz0.js.map +1 -0
- package/dist/{mentions-CRio8mTm.js → mentions-Cl0Kt_Pd.js} +52 -50
- package/dist/{mentions-CRio8mTm.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-BTrEb5u4.js → navigation-DnQSNMT0.js} +64 -55
- package/dist/navigation-DnQSNMT0.js.map +1 -0
- package/dist/{navigation-DqEITuD2.js → navigation-DyytsLRB.js} +37 -37
- package/dist/navigation-DyytsLRB.js.map +1 -0
- package/dist/{navigation-row-recipes-BFpvGPGE.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-BMBGjJY8.js → page-hGmT4nWK.js} +75 -64
- package/dist/page-hGmT4nWK.js.map +1 -0
- package/dist/{page-header-BH41wCyY.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-TInGXsjg.js → popover-CghIYdQf.js} +23 -22
- package/dist/popover-CghIYdQf.js.map +1 -0
- package/dist/{popover-menu-BzqXqE72.js → popover-menu-B4PoWhRl.js} +6 -6
- package/dist/{popover-menu-BzqXqE72.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-BroqrAyV.js +169 -0
- package/dist/progress-BroqrAyV.js.map +1 -0
- package/dist/{receipt-DYWTQGEc.js → receipt-BuJynLgf.js} +8 -8
- package/dist/{receipt-DYWTQGEc.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-D9f_wdIC.js → settings-DOTOzeZ2.js} +10 -9
- package/dist/{settings-D9f_wdIC.js.map → settings-DOTOzeZ2.js.map} +1 -1
- package/dist/{sheet-vOUloJ4O.js → sheet-BFhrNehm.js} +11 -11
- package/dist/sheet-BFhrNehm.js.map +1 -0
- package/dist/{sidebar-CNBKFDRW.js → sidebar-CyR4XKwR.js} +219 -200
- package/dist/sidebar-CyR4XKwR.js.map +1 -0
- package/dist/{sidebar-C3UKkbC5.js → sidebar-SvGJ0Zwi.js} +63 -58
- package/dist/sidebar-SvGJ0Zwi.js.map +1 -0
- package/dist/{skeleton-BvRhK8y-.js → skeleton-3F0uhYn3.js} +4 -4
- package/dist/{skeleton-BvRhK8y-.js.map → skeleton-3F0uhYn3.js.map} +1 -1
- package/dist/{smart-card-B5FcKODh.js → smart-card-DjGVV2xr.js} +206 -199
- package/dist/smart-card-DjGVV2xr.js.map +1 -0
- package/dist/{spinner-JtlFJ7Nc.js → spinner-Cpf7oRkF.js} +5 -5
- package/dist/{spinner-JtlFJ7Nc.js.map → spinner-Cpf7oRkF.js.map} +1 -1
- package/dist/{structure-BvW4vG4H.js → structure-CRdqVawd.js} +14 -14
- package/dist/{structure-BvW4vG4H.js.map → structure-CRdqVawd.js.map} +1 -1
- package/dist/{structure.recipes-DjqnBpwz.js → structure.recipes-Bqhf9oIh.js} +2 -2
- package/dist/structure.recipes-Bqhf9oIh.js.map +1 -0
- 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-CnZ2S_Gr.js → timelines-D1pkt3se.js} +84 -78
- package/dist/timelines-D1pkt3se.js.map +1 -0
- package/dist/{tree-COD9BGdU.js → tree-BtmYyMZV.js} +8 -8
- package/dist/{tree-COD9BGdU.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-DIzw1dx1.js → upload-CDbYw1WN.js} +326 -323
- package/dist/upload-CDbYw1WN.js.map +1 -0
- package/dist/{upload-queue-xRJ3qDmd.js → upload-queue-CNd_hH_a.js} +25 -25
- package/dist/upload-queue-CNd_hH_a.js.map +1 -0
- package/dist/usage-card-VyJLUwRr.js +457 -0
- 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-Cbqz4FzN.js → workspace-CcR8r-Nt.js} +115 -122
- package/dist/workspace-CcR8r-Nt.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +112 -18
- 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 +24 -9
- package/docs/consumer-skill/examples/manifest.json +27 -1
- package/docs/consumer-skill/examples/planning-usage-edit.tsx +29 -0
- package/docs/consumer-skill/examples/scoped-directory.tsx +77 -0
- 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 +219 -2
- package/docs/consumer-skill/references/design-contract.md +37 -10
- package/docs/consumer-skill/references/discovery.md +93 -5
- package/docs/consumer-skill/references/installation.md +20 -3
- package/docs/consumer-skill/references/integration.md +26 -0
- package/docs/consumer-skill/references/public-api.json +2416 -388
- package/docs/consumer-skill/references/review.md +126 -0
- 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 +129 -1
- package/docs/consumer-skill/scripts/check-composition.mjs +31 -0
- package/docs/consumer-skill/scripts/composition-policy.mjs +317 -0
- package/docs/consumer-skill/scripts/discovery.mjs +65 -8
- package/docs/consumer-skill/scripts/surface-policy.mjs +66 -0
- package/package.json +30 -6
- package/dist/accordion-BRWh3BM1.js.map +0 -1
- package/dist/action-menu-Cx3SdfbN.js.map +0 -1
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js +0 -23
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +0 -1
- package/dist/ai-artifact-DkOArd3-.js.map +0 -1
- package/dist/app-shell-BH_bGcE2.js.map +0 -1
- package/dist/auth-BDB1V_2q.js +0 -704
- package/dist/auth-BDB1V_2q.js.map +0 -1
- package/dist/avatar-CsnWaYmt.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/choice-inputs-CavA-SGV.js +0 -644
- package/dist/choice-inputs-CavA-SGV.js.map +0 -1
- package/dist/code-block-DIlqzoiD.js.map +0 -1
- package/dist/combobox-CHD750do.js.map +0 -1
- package/dist/combobox-HDftpzxt.js.map +0 -1
- package/dist/command-D0kWBZfd.js.map +0 -1
- package/dist/comments-CvYeglMS.js +0 -1132
- package/dist/comments-CvYeglMS.js.map +0 -1
- package/dist/containers-CPNyNo1_.js.map +0 -1
- package/dist/data-display-b3d1TfL4.js.map +0 -1
- package/dist/date-picker-DI6kPNof.js.map +0 -1
- package/dist/date-pickers-ByP6Cv2z.js +0 -224
- package/dist/date-pickers-ByP6Cv2z.js.map +0 -1
- package/dist/feedback-a9j9J-9A.js +0 -391
- package/dist/feedback-a9j9J-9A.js.map +0 -1
- package/dist/field-affordance-recipes-CHdUtn2Z.js +0 -17
- package/dist/field-affordance-recipes-CHdUtn2Z.js.map +0 -1
- package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
- package/dist/filters-qtrcv1hf.js.map +0 -1
- package/dist/form-field-C6W-y2hR.js.map +0 -1
- package/dist/form-sizing-39NohSqn.js.map +0 -1
- package/dist/forms-numeric-Y15Bg5Nr.js +0 -867
- package/dist/forms-numeric-Y15Bg5Nr.js.map +0 -1
- package/dist/header-B8ex54cY.js.map +0 -1
- package/dist/http-CLTVJc5I.js.map +0 -1
- package/dist/input-DMorJiTI.js +0 -202
- package/dist/input-DMorJiTI.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-Ca4YmvBi.js.map +0 -1
- package/dist/message-B5-6LeYl.js +0 -108
- package/dist/message-B5-6LeYl.js.map +0 -1
- package/dist/navigation-BTrEb5u4.js.map +0 -1
- package/dist/navigation-DqEITuD2.js.map +0 -1
- package/dist/navigation-row-recipes-BFpvGPGE.js.map +0 -1
- package/dist/overlays-DBqV0J_V.js +0 -982
- package/dist/overlays-DBqV0J_V.js.map +0 -1
- package/dist/page-BMBGjJY8.js.map +0 -1
- package/dist/page-header-BH41wCyY.js.map +0 -1
- package/dist/pagination-C29vvt3I.js.map +0 -1
- package/dist/popover-TInGXsjg.js.map +0 -1
- package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
- package/dist/primitives-DKPOGVpj.js.map +0 -1
- package/dist/rich-text-editor-BZSJchAF.js +0 -575
- package/dist/rich-text-editor-BZSJchAF.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-vOUloJ4O.js.map +0 -1
- package/dist/sidebar-C3UKkbC5.js.map +0 -1
- package/dist/sidebar-CNBKFDRW.js.map +0 -1
- package/dist/smart-card-B5FcKODh.js.map +0 -1
- package/dist/structure.recipes-DjqnBpwz.js.map +0 -1
- package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
- package/dist/table-DnlAJ-xR.js.map +0 -1
- package/dist/table-ghtAQ-JJ.js +0 -1424
- package/dist/table-ghtAQ-JJ.js.map +0 -1
- package/dist/tabs-DY09eoZg.js +0 -187
- package/dist/tabs-DY09eoZg.js.map +0 -1
- package/dist/text-inputs-BhOcedTo.js +0 -331
- package/dist/text-inputs-BhOcedTo.js.map +0 -1
- package/dist/text.styles-BwB7vAF2.js.map +0 -1
- package/dist/timelines-CnZ2S_Gr.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-DIzw1dx1.js.map +0 -1
- package/dist/upload-queue-xRJ3qDmd.js.map +0 -1
- package/dist/utils-C2EKeIw3.js +0 -72
- package/dist/utils-C2EKeIw3.js.map +0 -1
- package/dist/value-inputs-Co1fu-xv.js +0 -824
- package/dist/value-inputs-Co1fu-xv.js.map +0 -1
- package/dist/workspace-Cbqz4FzN.js.map +0 -1
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { _ as e, r as t, s as n } from "./ui-provider-DRPn3qNl.js";
|
|
3
|
+
import { r } from "./theme-scope-kStaAer0.js";
|
|
4
|
+
import { useStrings as i } from "./lib/strings.js";
|
|
5
|
+
import { t as a } from "./utils-BvH9PSmq.js";
|
|
6
|
+
import { a as o } from "./typography-BxQgiZyw.js";
|
|
7
|
+
import { t as s } from "./anchored-positioning-DPnKTvNs.js";
|
|
8
|
+
import { t as c } from "./motion-recipes-B6jKXEcN.js";
|
|
9
|
+
import { t as l } from "./slot-CLF9kLrS.js";
|
|
10
|
+
import { t as u } from "./button-BZyfTvwm.js";
|
|
11
|
+
import * as d from "react";
|
|
12
|
+
import { createContext as f, forwardRef as p, useCallback as m, useContext as h, useEffect as g, useId as _, useLayoutEffect as v, useRef as y, useState as b } from "react";
|
|
13
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
14
|
+
import { Loader2 as w } from "lucide-react";
|
|
15
|
+
import { mergeProps as T } from "@base-ui/react/merge-props";
|
|
16
|
+
import { cva as E } from "class-variance-authority";
|
|
17
|
+
import { Tooltip as D } from "@base-ui/react/tooltip";
|
|
18
|
+
//#region src/components/ui/tooltip.tsx
|
|
19
|
+
function O({ delay: e = 0, delayDuration: t, ...n }) {
|
|
20
|
+
return /* @__PURE__ */ S(D.Provider, {
|
|
21
|
+
"data-slot": "tooltip-provider",
|
|
22
|
+
delay: t ?? e,
|
|
23
|
+
...n
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function k({ ...e }) {
|
|
27
|
+
return /* @__PURE__ */ S(O, { children: /* @__PURE__ */ S(D.Root, {
|
|
28
|
+
"data-slot": "tooltip",
|
|
29
|
+
...e
|
|
30
|
+
}) });
|
|
31
|
+
}
|
|
32
|
+
function A({ asChild: e = !1, render: t, children: n, ...r }) {
|
|
33
|
+
let i = e ? /* @__PURE__ */ S(l, {}) : void 0, a = typeof t == "function" ? ((e, n) => {
|
|
34
|
+
let { nativeButton: r, ...i } = e;
|
|
35
|
+
return t(i, n);
|
|
36
|
+
}) : t;
|
|
37
|
+
return /* @__PURE__ */ S(D.Trigger, {
|
|
38
|
+
"data-slot": "tooltip-trigger",
|
|
39
|
+
render: i ?? a,
|
|
40
|
+
...r,
|
|
41
|
+
children: n
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function j({ className: e, container: t, side: n = "top", sideOffset: i = 4, align: o = "center", alignOffset: l = 0, positionMethod: u = s, children: d, ...f }) {
|
|
45
|
+
let p = r(t);
|
|
46
|
+
return /* @__PURE__ */ S(D.Portal, {
|
|
47
|
+
container: p,
|
|
48
|
+
children: /* @__PURE__ */ S(D.Positioner, {
|
|
49
|
+
positionMethod: u,
|
|
50
|
+
align: o,
|
|
51
|
+
alignOffset: l,
|
|
52
|
+
side: n,
|
|
53
|
+
sideOffset: i,
|
|
54
|
+
className: "isolate z-50",
|
|
55
|
+
children: /* @__PURE__ */ C(D.Popup, {
|
|
56
|
+
"data-slot": "tooltip-content",
|
|
57
|
+
className: a(c.popup, "rounded-radius px-space-sm py-space-xs text-xs bg-inverse-background text-inverse-foreground z-50 w-fit max-w-xs origin-(--transform-origin)", e),
|
|
58
|
+
...f,
|
|
59
|
+
children: [d, /* @__PURE__ */ S(D.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-inverse-background fill-inverse-background z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })]
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/base/display/tooltip.tsx
|
|
66
|
+
var M = f(void 0), N = f(!1);
|
|
67
|
+
function P(e) {
|
|
68
|
+
let t = h(N), n = _(), [r, i] = b(n), a = /* @__PURE__ */ S(M.Provider, {
|
|
69
|
+
value: {
|
|
70
|
+
id: r,
|
|
71
|
+
setId: i
|
|
72
|
+
},
|
|
73
|
+
children: /* @__PURE__ */ S(D.Root, {
|
|
74
|
+
"data-slot": "tooltip",
|
|
75
|
+
...e
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
return t ? a : /* @__PURE__ */ S(O, { children: a });
|
|
79
|
+
}
|
|
80
|
+
function F(e) {
|
|
81
|
+
return /* @__PURE__ */ S(N.Provider, {
|
|
82
|
+
value: !0,
|
|
83
|
+
children: /* @__PURE__ */ S(O, { ...e })
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function I({ className: e, ...t }) {
|
|
87
|
+
let n = h(M)?.id;
|
|
88
|
+
return /* @__PURE__ */ S(A, {
|
|
89
|
+
className: a("tooltip-trigger--component active:translate-y-0!", e),
|
|
90
|
+
...t,
|
|
91
|
+
"aria-describedby": [t["aria-describedby"], n].filter(Boolean).join(" ") || void 0
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function L({ children: e, className: t, ...n }) {
|
|
95
|
+
let r = h(M), i = n.id ?? r?.id;
|
|
96
|
+
v(() => {
|
|
97
|
+
i && r?.setId(i);
|
|
98
|
+
}, [i, r?.setId]);
|
|
99
|
+
let s = typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ S(o, {
|
|
100
|
+
tag: "span",
|
|
101
|
+
size: "inherit",
|
|
102
|
+
lineHeight: "snug",
|
|
103
|
+
className: "tooltip-content--text text-inherit",
|
|
104
|
+
children: e
|
|
105
|
+
}) : e;
|
|
106
|
+
return /* @__PURE__ */ S(j, {
|
|
107
|
+
id: i,
|
|
108
|
+
role: "tooltip",
|
|
109
|
+
className: a("tooltip-content--component max-w-xs rounded-radius px-space-sm py-space-xs text-xs leading-snug", t),
|
|
110
|
+
...n,
|
|
111
|
+
children: s
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
P.displayName = "Tooltip", F.displayName = "TooltipProvider", I.displayName = "TooltipTrigger", L.displayName = "TooltipContent";
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/components/base/buttons/button.recipes.ts
|
|
117
|
+
var R = {
|
|
118
|
+
solidInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:brightness-95 [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:brightness-90",
|
|
119
|
+
neutralInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-accent [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-muted",
|
|
120
|
+
secondaryInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-secondary [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-accent",
|
|
121
|
+
primaryInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-primary/10 [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-primary/20",
|
|
122
|
+
destructiveInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-destructive/10 [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-destructive/20",
|
|
123
|
+
successInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-success/10 [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-success/20",
|
|
124
|
+
warningInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-warning/10 [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-warning/20",
|
|
125
|
+
infoInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-info/10 [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-info/20",
|
|
126
|
+
isLoading: "cursor-wait",
|
|
127
|
+
icon: "base-button-icon pointer-events-none shrink-0",
|
|
128
|
+
spinner: "animate-spin"
|
|
129
|
+
}, z = E("box-border inline-flex shrink-0 items-center justify-center gap-space-sm [&_svg:not([class*=size-])]:size-icon [&_svg]:shrink-0 whitespace-nowrap rounded-inner border font-sans font-medium no-underline outline-none transition-[background-color,border-color,color,filter,box-shadow] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50", {
|
|
130
|
+
variants: {
|
|
131
|
+
tone: {
|
|
132
|
+
primary: "",
|
|
133
|
+
neutral: "",
|
|
134
|
+
secondary: "",
|
|
135
|
+
destructive: "",
|
|
136
|
+
success: "",
|
|
137
|
+
warning: "",
|
|
138
|
+
info: ""
|
|
139
|
+
},
|
|
140
|
+
buttonStyle: {
|
|
141
|
+
solid: `border-transparent ${R.solidInteractive}`,
|
|
142
|
+
outline: "border-input bg-transparent",
|
|
143
|
+
ghost: "border-transparent bg-transparent"
|
|
144
|
+
},
|
|
145
|
+
size: {
|
|
146
|
+
sm: "h-action-sm px-control-sm text-sm leading-none",
|
|
147
|
+
md: "h-action px-control text-sm leading-none",
|
|
148
|
+
lg: "h-action-lg px-control text-sm leading-none"
|
|
149
|
+
},
|
|
150
|
+
iconOnly: {
|
|
151
|
+
true: "px-0",
|
|
152
|
+
false: ""
|
|
153
|
+
},
|
|
154
|
+
fullWidth: {
|
|
155
|
+
true: "w-full",
|
|
156
|
+
false: ""
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
compoundVariants: [
|
|
160
|
+
{
|
|
161
|
+
tone: "info",
|
|
162
|
+
buttonStyle: ["outline", "ghost"],
|
|
163
|
+
class: R.infoInteractive
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
tone: "warning",
|
|
167
|
+
buttonStyle: ["outline", "ghost"],
|
|
168
|
+
class: R.warningInteractive
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
tone: "success",
|
|
172
|
+
buttonStyle: ["outline", "ghost"],
|
|
173
|
+
class: R.successInteractive
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
tone: "destructive",
|
|
177
|
+
buttonStyle: ["outline", "ghost"],
|
|
178
|
+
class: R.destructiveInteractive
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
tone: "secondary",
|
|
182
|
+
buttonStyle: ["outline", "ghost"],
|
|
183
|
+
class: R.secondaryInteractive
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
tone: "neutral",
|
|
187
|
+
buttonStyle: ["outline", "ghost"],
|
|
188
|
+
class: R.neutralInteractive
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
tone: "primary",
|
|
192
|
+
buttonStyle: ["outline", "ghost"],
|
|
193
|
+
class: R.primaryInteractive
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
tone: "primary",
|
|
197
|
+
buttonStyle: "solid",
|
|
198
|
+
class: "bg-primary text-primary-foreground"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
tone: "primary",
|
|
202
|
+
buttonStyle: "outline",
|
|
203
|
+
class: "border-primary/60 text-primary-accent"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
tone: "primary",
|
|
207
|
+
buttonStyle: "ghost",
|
|
208
|
+
class: "text-primary-accent"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
tone: "neutral",
|
|
212
|
+
buttonStyle: "solid",
|
|
213
|
+
class: "bg-foreground text-background"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
tone: "neutral",
|
|
217
|
+
buttonStyle: "outline",
|
|
218
|
+
class: "border-foreground/15 text-foreground"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
tone: "neutral",
|
|
222
|
+
buttonStyle: "ghost",
|
|
223
|
+
class: "text-foreground"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
tone: "secondary",
|
|
227
|
+
buttonStyle: "solid",
|
|
228
|
+
class: "bg-secondary text-secondary-foreground"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
tone: "secondary",
|
|
232
|
+
buttonStyle: "outline",
|
|
233
|
+
class: "border-border/60 text-secondary-foreground"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
tone: "secondary",
|
|
237
|
+
buttonStyle: "ghost",
|
|
238
|
+
class: "text-secondary-foreground"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
tone: "destructive",
|
|
242
|
+
buttonStyle: "solid",
|
|
243
|
+
class: "bg-destructive text-destructive-foreground"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
tone: "destructive",
|
|
247
|
+
buttonStyle: "outline",
|
|
248
|
+
class: "border-destructive/60 text-destructive"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
tone: "destructive",
|
|
252
|
+
buttonStyle: "ghost",
|
|
253
|
+
class: "text-destructive"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
tone: "success",
|
|
257
|
+
buttonStyle: "solid",
|
|
258
|
+
class: "bg-success text-success-foreground"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
tone: "success",
|
|
262
|
+
buttonStyle: "outline",
|
|
263
|
+
class: "border-success/60 text-success"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
tone: "success",
|
|
267
|
+
buttonStyle: "ghost",
|
|
268
|
+
class: "text-success"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
tone: "warning",
|
|
272
|
+
buttonStyle: "solid",
|
|
273
|
+
class: "bg-warning text-warning-foreground"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
tone: "warning",
|
|
277
|
+
buttonStyle: "outline",
|
|
278
|
+
class: "border-warning/60 text-warning-accent"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
tone: "warning",
|
|
282
|
+
buttonStyle: "ghost",
|
|
283
|
+
class: "text-warning-accent"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
tone: "info",
|
|
287
|
+
buttonStyle: "solid",
|
|
288
|
+
class: "bg-info text-info-foreground"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
tone: "info",
|
|
292
|
+
buttonStyle: "outline",
|
|
293
|
+
class: "border-info/60 text-info"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
tone: "info",
|
|
297
|
+
buttonStyle: "ghost",
|
|
298
|
+
class: "text-info"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
size: "sm",
|
|
302
|
+
iconOnly: !0,
|
|
303
|
+
class: "size-action-sm"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
size: "md",
|
|
307
|
+
iconOnly: !0,
|
|
308
|
+
class: "size-action"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
size: "lg",
|
|
312
|
+
iconOnly: !0,
|
|
313
|
+
class: "size-action-lg"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
defaultVariants: {
|
|
317
|
+
tone: "primary",
|
|
318
|
+
buttonStyle: "solid",
|
|
319
|
+
size: "md",
|
|
320
|
+
iconOnly: !1,
|
|
321
|
+
fullWidth: !1
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region src/components/base/buttons/use-pending-button-focus.ts
|
|
326
|
+
function B(e, t) {
|
|
327
|
+
let n = y(null), r = y(!1), i = y(!1), a = y(!1), o = m((e) => {
|
|
328
|
+
n.current = e;
|
|
329
|
+
let a = () => {
|
|
330
|
+
r.current = !0;
|
|
331
|
+
}, o = () => {
|
|
332
|
+
!i.current && !e?.matches(":disabled") && (r.current = !1);
|
|
333
|
+
};
|
|
334
|
+
e?.addEventListener("focus", a), e?.addEventListener("blur", o);
|
|
335
|
+
let s = typeof t == "function" ? t(e) : void 0;
|
|
336
|
+
return t && typeof t != "function" && (t.current = e), () => {
|
|
337
|
+
e?.removeEventListener("focus", a), e?.removeEventListener("blur", o), n.current === e && (n.current = null), typeof s == "function" ? s() : typeof t == "function" ? t(null) : t && (t.current = null);
|
|
338
|
+
};
|
|
339
|
+
}, [t]);
|
|
340
|
+
return v(() => {
|
|
341
|
+
let t = n.current, o = i.current;
|
|
342
|
+
if (i.current = e, !t) return;
|
|
343
|
+
let s = t.ownerDocument;
|
|
344
|
+
if (!e && !o && (r.current = s.activeElement === t), e && !o && (a.current = r.current || s.activeElement === t), !e && o) {
|
|
345
|
+
let e = a.current;
|
|
346
|
+
a.current = !1, e && t.isConnected && !t.matches(":disabled,[aria-disabled=true]") && (s.activeElement === s.body || s.activeElement === s.documentElement) && t.focus({ preventScroll: !0 });
|
|
347
|
+
}
|
|
348
|
+
if (!e || !a.current) return;
|
|
349
|
+
let c = () => {
|
|
350
|
+
s.removeEventListener("focusin", u, !0), s.removeEventListener("pointerdown", d, !0), s.removeEventListener("keydown", f, !0);
|
|
351
|
+
}, l = () => {
|
|
352
|
+
r.current = !1, a.current = !1, c();
|
|
353
|
+
}, u = (e) => {
|
|
354
|
+
e.target !== t && e.target !== s.body && e.target !== s.documentElement && l();
|
|
355
|
+
}, d = (e) => {
|
|
356
|
+
t.contains(e.target) || l();
|
|
357
|
+
}, f = (e) => {
|
|
358
|
+
e.key === "Tab" && l();
|
|
359
|
+
};
|
|
360
|
+
return s.addEventListener("focusin", u, !0), s.addEventListener("pointerdown", d, !0), s.addEventListener("keydown", f, !0), c;
|
|
361
|
+
}), o;
|
|
362
|
+
}
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region src/components/base/buttons/base-button.tsx
|
|
365
|
+
function V({ tone: r, buttonStyle: i, size: a, iconOnly: o = !1, fullWidth: s = !1 }) {
|
|
366
|
+
let c = t(), { defaultScale: l } = n(), u = {
|
|
367
|
+
tone: r ?? c.defaultTone,
|
|
368
|
+
buttonStyle: i ?? c.defaultButtonStyle,
|
|
369
|
+
size: e(a, l),
|
|
370
|
+
iconOnly: o,
|
|
371
|
+
fullWidth: s
|
|
372
|
+
};
|
|
373
|
+
return {
|
|
374
|
+
...u,
|
|
375
|
+
classes: z(u),
|
|
376
|
+
attributes: {
|
|
377
|
+
"data-slot": "button",
|
|
378
|
+
"data-tone": u.tone,
|
|
379
|
+
"data-style": u.buttonStyle,
|
|
380
|
+
"data-size": u.size,
|
|
381
|
+
"data-icon-only": o || void 0,
|
|
382
|
+
"data-full-width": s || void 0
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
function H({ icon: e, iconPosition: t = "left", children: n }) {
|
|
387
|
+
let r = e && /* @__PURE__ */ S(e, {
|
|
388
|
+
className: "size-icon shrink-0",
|
|
389
|
+
"aria-hidden": "true"
|
|
390
|
+
});
|
|
391
|
+
return /* @__PURE__ */ C(x, { children: [
|
|
392
|
+
t === "left" && r,
|
|
393
|
+
n,
|
|
394
|
+
t === "right" && r
|
|
395
|
+
] });
|
|
396
|
+
}
|
|
397
|
+
var U = p(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: i, icon: o, iconPosition: s, className: c, children: l, ...d }, f) {
|
|
398
|
+
let p = V({
|
|
399
|
+
tone: e,
|
|
400
|
+
buttonStyle: t,
|
|
401
|
+
size: n,
|
|
402
|
+
iconOnly: r,
|
|
403
|
+
fullWidth: i,
|
|
404
|
+
children: l
|
|
405
|
+
}), m = B(d["aria-busy"] === !0 || d["aria-busy"] === "true", f);
|
|
406
|
+
return /* @__PURE__ */ S(u, {
|
|
407
|
+
...d,
|
|
408
|
+
...p.attributes,
|
|
409
|
+
ref: m,
|
|
410
|
+
className: (e) => a("base-button--component", p.classes, typeof c == "function" ? c(e) : c),
|
|
411
|
+
children: /* @__PURE__ */ S(H, {
|
|
412
|
+
icon: o,
|
|
413
|
+
iconPosition: s,
|
|
414
|
+
children: l
|
|
415
|
+
})
|
|
416
|
+
});
|
|
417
|
+
}), W = p(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: i, icon: o, iconPosition: s, className: c, children: l, disabled: u = !1, tabIndex: d, onClick: f, rel: p, target: m, ...h }, g) {
|
|
418
|
+
let _ = V({
|
|
419
|
+
tone: e,
|
|
420
|
+
buttonStyle: t,
|
|
421
|
+
size: n,
|
|
422
|
+
iconOnly: r,
|
|
423
|
+
fullWidth: i,
|
|
424
|
+
children: l
|
|
425
|
+
}), v = new Set(p?.split(/\s+/).filter(Boolean));
|
|
426
|
+
return m?.toLowerCase() === "_blank" && (v.size || v.add("noreferrer"), v.add("noopener")), /* @__PURE__ */ S("a", {
|
|
427
|
+
...h,
|
|
428
|
+
..._.attributes,
|
|
429
|
+
ref: g,
|
|
430
|
+
target: m,
|
|
431
|
+
rel: v.size ? [...v].join(" ") : void 0,
|
|
432
|
+
"aria-disabled": u || h["aria-disabled"] || void 0,
|
|
433
|
+
tabIndex: u ? -1 : d,
|
|
434
|
+
className: a("base-button--component", _.classes, c),
|
|
435
|
+
onClick: (e) => {
|
|
436
|
+
if (u) {
|
|
437
|
+
e.preventDefault(), e.stopPropagation();
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
f?.(e);
|
|
441
|
+
},
|
|
442
|
+
children: /* @__PURE__ */ S(H, {
|
|
443
|
+
icon: o,
|
|
444
|
+
iconPosition: s,
|
|
445
|
+
children: l
|
|
446
|
+
})
|
|
447
|
+
});
|
|
448
|
+
}), G = {
|
|
449
|
+
loading: "Loading...",
|
|
450
|
+
completed: "Completed"
|
|
451
|
+
};
|
|
452
|
+
function K({ loading: e = !1, handlesLoading: t, strings: n }) {
|
|
453
|
+
let r = i(G, n), [a, o] = b(e), [, s] = b(!1);
|
|
454
|
+
return g(() => {
|
|
455
|
+
e && o(!0);
|
|
456
|
+
}, [e]), g(() => {
|
|
457
|
+
t && e && o(!0);
|
|
458
|
+
}, [e, t]), g(() => {
|
|
459
|
+
let t;
|
|
460
|
+
return !e && a && (s(!0), t = setTimeout(() => {
|
|
461
|
+
o(!1), s(!1);
|
|
462
|
+
}, 300)), () => {
|
|
463
|
+
t && clearTimeout(t);
|
|
464
|
+
};
|
|
465
|
+
}, [e, a]), {
|
|
466
|
+
isLoading: a,
|
|
467
|
+
strings: r
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function q({ isLoading: e, loadingText: t, icon: n, iconPosition: r = "left", size: i, children: s }) {
|
|
471
|
+
let c = e ? t : s, l = typeof c == "string" || typeof c == "number" || typeof c == "bigint";
|
|
472
|
+
return /* @__PURE__ */ C(x, { children: [
|
|
473
|
+
!!e && /* @__PURE__ */ S(w, {
|
|
474
|
+
className: a(R.icon, R.spinner),
|
|
475
|
+
"aria-hidden": "true"
|
|
476
|
+
}),
|
|
477
|
+
!!n && r === "left" && !e && /* @__PURE__ */ S(n, {
|
|
478
|
+
className: R.icon,
|
|
479
|
+
"aria-hidden": "true"
|
|
480
|
+
}),
|
|
481
|
+
l ? /* @__PURE__ */ S(o, {
|
|
482
|
+
tag: "span",
|
|
483
|
+
size: "inherit",
|
|
484
|
+
weight: "medium",
|
|
485
|
+
lineHeight: "none",
|
|
486
|
+
className: "text-inherit",
|
|
487
|
+
children: c
|
|
488
|
+
}) : c,
|
|
489
|
+
!!n && r === "right" && !e && /* @__PURE__ */ S(n, {
|
|
490
|
+
className: R.icon,
|
|
491
|
+
"aria-hidden": "true"
|
|
492
|
+
})
|
|
493
|
+
] });
|
|
494
|
+
}
|
|
495
|
+
var J = d.forwardRef(({ loading: e = !1, handlesLoading: t, strings: n, icon: r, iconPosition: i = "left", children: o, disabled: s, className: c, ...l }, u) => {
|
|
496
|
+
let { isLoading: d, strings: f } = K({
|
|
497
|
+
loading: e,
|
|
498
|
+
handlesLoading: t,
|
|
499
|
+
strings: n
|
|
500
|
+
});
|
|
501
|
+
return /* @__PURE__ */ S(U, {
|
|
502
|
+
...l,
|
|
503
|
+
ref: u,
|
|
504
|
+
disabled: s || d,
|
|
505
|
+
"aria-busy": d || void 0,
|
|
506
|
+
className: a("loader-button--component", d && R.isLoading, c),
|
|
507
|
+
children: /* @__PURE__ */ S(q, {
|
|
508
|
+
isLoading: d,
|
|
509
|
+
loadingText: f.loading,
|
|
510
|
+
icon: r,
|
|
511
|
+
iconPosition: i,
|
|
512
|
+
size: l.size,
|
|
513
|
+
children: o
|
|
514
|
+
})
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
J.displayName = "LoaderButton";
|
|
518
|
+
//#endregion
|
|
519
|
+
//#region src/components/base/buttons/tooltip-button.tsx
|
|
520
|
+
var Y = d.forwardRef(({ withTooltip: e, children: t, ...n }, r) => /* @__PURE__ */ C(P, { children: [/* @__PURE__ */ S(I, { render: (i) => {
|
|
521
|
+
let o = T(n, i);
|
|
522
|
+
return /* @__PURE__ */ S(U, {
|
|
523
|
+
...o,
|
|
524
|
+
"aria-label": n["aria-label"] ?? e,
|
|
525
|
+
ref: r,
|
|
526
|
+
className: a("tooltip-button--component", o.className),
|
|
527
|
+
children: t
|
|
528
|
+
});
|
|
529
|
+
} }), /* @__PURE__ */ S(L, {
|
|
530
|
+
className: "px-space-md py-space-xs text-pxs",
|
|
531
|
+
children: /* @__PURE__ */ S(o, {
|
|
532
|
+
tag: "span",
|
|
533
|
+
size: "inherit",
|
|
534
|
+
className: "text-inherit",
|
|
535
|
+
children: e
|
|
536
|
+
})
|
|
537
|
+
})] }));
|
|
538
|
+
Y.displayName = "TooltipButton";
|
|
539
|
+
//#endregion
|
|
540
|
+
//#region src/components/base/buttons/button.tsx
|
|
541
|
+
function X({ loading: e, handlesLoading: t, strings: n }) {
|
|
542
|
+
return e === !0 || !!t || n !== void 0;
|
|
543
|
+
}
|
|
544
|
+
var Z = d.forwardRef(({ loading: e, handlesLoading: t, strings: n, icon: r, iconPosition: i = "left", children: o, disabled: s, size: c, className: l, ...u }, d) => {
|
|
545
|
+
let f = K({
|
|
546
|
+
loading: e,
|
|
547
|
+
handlesLoading: t,
|
|
548
|
+
strings: n
|
|
549
|
+
});
|
|
550
|
+
return /* @__PURE__ */ S(W, {
|
|
551
|
+
...u,
|
|
552
|
+
ref: d,
|
|
553
|
+
size: c,
|
|
554
|
+
disabled: s || f.isLoading,
|
|
555
|
+
"aria-busy": f.isLoading || void 0,
|
|
556
|
+
className: a("loader-button--component", l),
|
|
557
|
+
children: /* @__PURE__ */ S(q, {
|
|
558
|
+
isLoading: f.isLoading,
|
|
559
|
+
loadingText: f.strings.loading,
|
|
560
|
+
icon: r,
|
|
561
|
+
iconPosition: i,
|
|
562
|
+
size: c,
|
|
563
|
+
children: o
|
|
564
|
+
})
|
|
565
|
+
});
|
|
566
|
+
});
|
|
567
|
+
Z.displayName = "LoadingButtonLink";
|
|
568
|
+
var Q = d.forwardRef(({ withTooltip: e, ...t }, n) => {
|
|
569
|
+
if (X(t)) return /* @__PURE__ */ S(Z, {
|
|
570
|
+
ref: n,
|
|
571
|
+
...t
|
|
572
|
+
});
|
|
573
|
+
let { loading: r, handlesLoading: i, strings: a, ...o } = t;
|
|
574
|
+
return /* @__PURE__ */ S(W, {
|
|
575
|
+
ref: n,
|
|
576
|
+
...o
|
|
577
|
+
});
|
|
578
|
+
});
|
|
579
|
+
Q.displayName = "ButtonLink";
|
|
580
|
+
function ee(e) {
|
|
581
|
+
let { type: t, form: n, formAction: r, formEncType: i, formMethod: a, formNoValidate: o, formTarget: s, name: c, value: l, nativeButton: u, focusableWhenDisabled: d, render: f, ...p } = e;
|
|
582
|
+
return p;
|
|
583
|
+
}
|
|
584
|
+
var $ = d.forwardRef(({ href: e, withTooltip: t, loading: n, handlesLoading: r, strings: i, ...s }, c) => {
|
|
585
|
+
if (e !== void 0) {
|
|
586
|
+
let l = ee(s), u = /* @__PURE__ */ S(Q, {
|
|
587
|
+
...l,
|
|
588
|
+
ref: c,
|
|
589
|
+
href: e,
|
|
590
|
+
loading: n,
|
|
591
|
+
handlesLoading: r,
|
|
592
|
+
strings: i,
|
|
593
|
+
"aria-label": s["aria-label"] ?? t,
|
|
594
|
+
className: a("button--component", l.className)
|
|
595
|
+
});
|
|
596
|
+
return t ? /* @__PURE__ */ C(P, { children: [/* @__PURE__ */ S(I, { render: u }), /* @__PURE__ */ S(L, {
|
|
597
|
+
className: "px-space-md py-space-xs text-pxs",
|
|
598
|
+
children: /* @__PURE__ */ S(o, {
|
|
599
|
+
tag: "span",
|
|
600
|
+
size: "inherit",
|
|
601
|
+
className: "text-inherit",
|
|
602
|
+
children: t
|
|
603
|
+
})
|
|
604
|
+
})] }) : u;
|
|
605
|
+
}
|
|
606
|
+
let { download: l, hrefLang: u, media: d, ping: f, referrerPolicy: p, rel: m, target: h, ...g } = s, _ = {
|
|
607
|
+
...g,
|
|
608
|
+
className: a("button--component", g.className)
|
|
609
|
+
};
|
|
610
|
+
return X({
|
|
611
|
+
loading: n,
|
|
612
|
+
handlesLoading: r,
|
|
613
|
+
strings: i
|
|
614
|
+
}) ? t ? /* @__PURE__ */ C(P, { children: [/* @__PURE__ */ S(I, { render: (e) => /* @__PURE__ */ S(J, {
|
|
615
|
+
..._,
|
|
616
|
+
...e,
|
|
617
|
+
ref: c,
|
|
618
|
+
loading: n,
|
|
619
|
+
handlesLoading: r,
|
|
620
|
+
strings: i,
|
|
621
|
+
"aria-label": g["aria-label"] ?? t,
|
|
622
|
+
className: a(e.className, _.className),
|
|
623
|
+
children: g.children
|
|
624
|
+
}) }), /* @__PURE__ */ S(L, {
|
|
625
|
+
className: "px-space-md py-space-xs text-pxs",
|
|
626
|
+
children: /* @__PURE__ */ S(o, {
|
|
627
|
+
tag: "span",
|
|
628
|
+
size: "inherit",
|
|
629
|
+
className: "text-inherit",
|
|
630
|
+
children: t
|
|
631
|
+
})
|
|
632
|
+
})] }) : /* @__PURE__ */ S(J, {
|
|
633
|
+
..._,
|
|
634
|
+
ref: c,
|
|
635
|
+
loading: n,
|
|
636
|
+
handlesLoading: r,
|
|
637
|
+
strings: i
|
|
638
|
+
}) : t ? /* @__PURE__ */ S(Y, {
|
|
639
|
+
..._,
|
|
640
|
+
ref: c,
|
|
641
|
+
withTooltip: t
|
|
642
|
+
}) : /* @__PURE__ */ S(U, {
|
|
643
|
+
..._,
|
|
644
|
+
ref: c
|
|
645
|
+
});
|
|
646
|
+
});
|
|
647
|
+
$.displayName = "Button";
|
|
648
|
+
//#endregion
|
|
649
|
+
export { P as a, I as c, A as d, z as i, k as l, U as n, L as o, W as r, F as s, $ as t, j as u };
|
|
650
|
+
|
|
651
|
+
//# sourceMappingURL=button-BZDasD04.js.map
|