themelia-react-ui 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +417 -0
- package/README.md +67 -16
- package/dist/{accordion-B-5Focs8.js → accordion-CQXVcd7Q.js} +15 -15
- package/dist/accordion-CQXVcd7Q.js.map +1 -0
- package/dist/action-menu-BTpyPWJ2.js +264 -0
- package/dist/action-menu-BTpyPWJ2.js.map +1 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js +68 -0
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
- package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-2PQ2fItc.js} +206 -215
- package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
- package/dist/{app-shell-at8Kt4l_.js → app-shell-BE_j8-AT.js} +11 -10
- package/dist/app-shell-BE_j8-AT.js.map +1 -0
- package/dist/{attachment-BO2R47wn.js → attachment-q69dlt5Y.js} +14 -14
- package/dist/attachment-q69dlt5Y.js.map +1 -0
- package/dist/auth-M3vGMgDR.js +723 -0
- package/dist/auth-M3vGMgDR.js.map +1 -0
- package/dist/{avatar-Bpzty83c.js → avatar-djdaaQ_s.js} +15 -13
- package/dist/avatar-djdaaQ_s.js.map +1 -0
- package/dist/{badge-BZXZT9wd.js → badge-0tATj-tW.js} +9 -9
- package/dist/badge-0tATj-tW.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/buttons.js +3 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +33 -35
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +246 -222
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +3 -3
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +94 -92
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +53 -53
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +84 -82
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +7 -7
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/blocks/admin.js +228 -219
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +182 -212
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +665 -620
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +2 -2
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1439 -1553
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +1 -1
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +88 -97
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BG_FfMK4.js} +10 -9
- package/dist/breadcrumbs-BG_FfMK4.js.map +1 -0
- package/dist/button-BS3KDg00.js +674 -0
- package/dist/button-BS3KDg00.js.map +1 -0
- package/dist/{button-BS6l5JUw.js → button-R9CCoH7A.js} +3 -3
- package/dist/button-R9CCoH7A.js.map +1 -0
- package/dist/buttons-DS0ZIwJ_.js +99 -0
- package/dist/buttons-DS0ZIwJ_.js.map +1 -0
- package/dist/{cards-Cum56XOF.js → cards-QoJ4syG9.js} +12 -12
- package/dist/{cards-Cum56XOF.js.map → cards-QoJ4syG9.js.map} +1 -1
- package/dist/chart-DwYRKKc-.js +152 -0
- package/dist/chart-DwYRKKc-.js.map +1 -0
- package/dist/checkbox-B7ygNTYp.js +35 -0
- package/dist/checkbox-B7ygNTYp.js.map +1 -0
- package/dist/choice-inputs-DrJ17tpL.js +752 -0
- package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
- package/dist/{code-block-xHKbAJDj.js → code-block-CD0B7M93.js} +27 -27
- package/dist/code-block-CD0B7M93.js.map +1 -0
- package/dist/{collapsible-DsnktFNv.js → collapsible-oMUGM4tr.js} +3 -3
- package/dist/{collapsible-DsnktFNv.js.map → collapsible-oMUGM4tr.js.map} +1 -1
- package/dist/{collection-content-C4fthJV_.js → collection-content-Ys-OZOkY.js} +3 -3
- package/dist/{collection-content-C4fthJV_.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
- package/dist/combobox-6dvVny2q.js +272 -0
- package/dist/combobox-6dvVny2q.js.map +1 -0
- package/dist/combobox-CB7039j7.js +865 -0
- package/dist/combobox-CB7039j7.js.map +1 -0
- package/dist/{command-C0xe7u9B.js → command-kPMPjIxJ.js} +35 -31
- package/dist/command-kPMPjIxJ.js.map +1 -0
- package/dist/{comments-DviPLnwy.js → comments-You0Bzbr.js} +434 -409
- package/dist/comments-You0Bzbr.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +7 -2
- package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/buttons/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +10 -19
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
- package/dist/components/base/cards/card.recipes.d.ts +13 -5
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
- package/dist/components/base/cards/smart-card.types.d.ts +1 -1
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
- package/dist/components/base/date-pickers/datepicker.types.d.ts +16 -3
- package/dist/components/base/display/alert-dialog.d.ts +8 -2
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +12 -5
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-field.d.ts +1 -0
- package/dist/components/base/forms/form-sizing.d.ts +35 -3
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
- package/dist/components/base/navigation/tabs.d.ts +3 -5
- package/dist/components/base/popover/popover.recipes.d.ts +3 -3
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +14 -5
- package/dist/components/base/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/table/index.d.ts +1 -1
- package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
- package/dist/components/base/upload/upload.recipes.d.ts +11 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/types.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/features/combobox/components/error-message.d.ts +1 -1
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
- package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.types.d.ts +9 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +46 -22
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +2 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
- package/dist/components/layout/auth/auth.types.d.ts +1 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts +0 -1
- package/dist/components/layout/page/page.types.d.ts +62 -6
- package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
- package/dist/components/primitives/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +13 -2
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/label.d.ts +3 -0
- package/dist/components/typography/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +23 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +37 -5
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/overlay.recipes.d.ts +15 -2
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +2 -1
- package/dist/container.recipes-D9t8MHR3.js +27 -0
- package/dist/container.recipes-D9t8MHR3.js.map +1 -0
- package/dist/{containers-6s-ucRQQ.js → containers-D_L4mTVb.js} +34 -57
- package/dist/containers-D_L4mTVb.js.map +1 -0
- package/dist/control-group-recipes-DBXmfh2E.js +21 -0
- package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
- package/dist/{copyable-B7SBXJMr.js → copyable-DDjTeW_j.js} +6 -6
- package/dist/{copyable-B7SBXJMr.js.map → copyable-DDjTeW_j.js.map} +1 -1
- package/dist/data-display-3xWQUnMA.js +1335 -0
- package/dist/data-display-3xWQUnMA.js.map +1 -0
- package/dist/date-picker-DrDFj8Lo.js +1527 -0
- package/dist/date-picker-DrDFj8Lo.js.map +1 -0
- package/dist/date-pickers-CnFCb0n2.js +174 -0
- package/dist/date-pickers-CnFCb0n2.js.map +1 -0
- package/dist/date-uf3z37Nm.js +144 -0
- package/dist/date-uf3z37Nm.js.map +1 -0
- package/dist/{display-CFM5myut.js → display-DrdvPwF0.js} +25 -25
- package/dist/display-DrdvPwF0.js.map +1 -0
- package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-CURh59jb.js} +22 -15
- package/dist/dropdown-menu-CURh59jb.js.map +1 -0
- package/dist/features/activities.js +177 -163
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +187 -183
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +25 -23
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -355
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +346 -354
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +225 -227
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +29 -29
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +59 -58
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +898 -900
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1412 -1444
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +51 -49
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -97
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +13 -13
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +187 -183
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +508 -503
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DWUkgEjR.js → feedback-C7nR0UtT.js} +30 -31
- package/dist/feedback-C7nR0UtT.js.map +1 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
- package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-C-MFBX_8.js} +5 -5
- package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
- package/dist/{filters-BhsUtsxW.js → filters-Da-gNPsE.js} +760 -765
- package/dist/filters-Da-gNPsE.js.map +1 -0
- package/dist/{form-field-Bn7ZH1rA.js → form-field-VZRULhUK.js} +20 -12
- package/dist/form-field-VZRULhUK.js.map +1 -0
- package/dist/form-sizing-uWP4lzVh.js +126 -0
- package/dist/form-sizing-uWP4lzVh.js.map +1 -0
- package/dist/{forms-B7pzS25o.js → forms-DDeEnXSY.js} +38 -38
- package/dist/forms-DDeEnXSY.js.map +1 -0
- package/dist/forms-numeric-D3CO60IF.js +905 -0
- package/dist/forms-numeric-D3CO60IF.js.map +1 -0
- package/dist/{header-C59QZyxV.js → header-2ycNqGOR.js} +42 -37
- package/dist/header-2ycNqGOR.js.map +1 -0
- package/dist/{hooks-CM1Vp9Pe.js → hooks-DQ5SPwZw.js} +2 -2
- package/dist/{hooks-CM1Vp9Pe.js.map → hooks-DQ5SPwZw.js.map} +1 -1
- package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
- package/dist/http-CdEIHyQf.js.map +1 -0
- package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-DKlaKXoo.js} +4 -4
- package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/input-BoLm9Hks.js +20 -0
- package/dist/input-BoLm9Hks.js.map +1 -0
- package/dist/input-DhQdBnV3.js +255 -0
- package/dist/input-DhQdBnV3.js.map +1 -0
- package/dist/item-xzh8Df65.js +264 -0
- package/dist/item-xzh8Df65.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +46 -10
- package/dist/lib/control-group-recipes.d.ts +22 -0
- package/dist/lib/field-affordance-recipes.d.ts +70 -2
- package/dist/lib/field-state-recipes.d.ts +6 -4
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/navigation-row-recipes.d.ts +3 -2
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -2
- package/dist/lib/surface-recipes.d.ts +13 -8
- package/dist/lib/token-merge.generated.d.ts +144 -2
- package/dist/lib/track-recipes.d.ts +1 -1
- package/dist/lib/ui-provider/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +9 -4
- package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DQUQ0m3O.js +201 -0
- package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
- package/dist/{mentions-B8Ko-fhS.js → mentions-DwnO1hh4.js} +40 -39
- package/dist/{mentions-B8Ko-fhS.js.map → mentions-DwnO1hh4.js.map} +1 -1
- package/dist/message-YfFmbXNP.js +127 -0
- package/dist/message-YfFmbXNP.js.map +1 -0
- package/dist/{navigation-BUIn2Qxx.js → navigation-Cbp5V8gG.js} +27 -28
- package/dist/navigation-Cbp5V8gG.js.map +1 -0
- package/dist/navigation-Cs1npsPm.js +300 -0
- package/dist/navigation-Cs1npsPm.js.map +1 -0
- package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DlU-4QYO.js} +3 -3
- package/dist/navigation-row-recipes-DlU-4QYO.js.map +1 -0
- package/dist/number-CKRBYmZK.js +352 -0
- package/dist/number-CKRBYmZK.js.map +1 -0
- package/dist/overlay.recipes-CNO2S9V6.js +34 -0
- package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
- package/dist/overlays-DhZO7N-I.js +994 -0
- package/dist/overlays-DhZO7N-I.js.map +1 -0
- package/dist/page-C6R_8jFt.js +325 -0
- package/dist/page-C6R_8jFt.js.map +1 -0
- package/dist/{page-header-DQRa0jug.js → page-header-hUTzcRZX.js} +12 -12
- package/dist/page-header-hUTzcRZX.js.map +1 -0
- package/dist/{pagination-C29vvt3I.js → pagination-Cm0jqa3I.js} +21 -21
- package/dist/pagination-Cm0jqa3I.js.map +1 -0
- package/dist/{popover-CoLDEg19.js → popover-Dcv_9jxr.js} +23 -22
- package/dist/popover-Dcv_9jxr.js.map +1 -0
- package/dist/{popover-menu-GLIQTJTx.js → popover-menu-DnRFKnHP.js} +6 -6
- package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
- package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-wmbvL8Ah.js} +5 -5
- package/dist/popover.recipes-wmbvL8Ah.js.map +1 -0
- package/dist/primitives-BHrwQXFC.js +379 -0
- package/dist/primitives-BHrwQXFC.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BOe8l_FZ.js → progress-Br9WTFya.js} +12 -11
- package/dist/progress-Br9WTFya.js.map +1 -0
- package/dist/{receipt-BM8xsGFy.js → receipt-CV89q1fs.js} +8 -8
- package/dist/{receipt-BM8xsGFy.js.map → receipt-CV89q1fs.js.map} +1 -1
- package/dist/rich-text-editor-CF8QYt5p.js +574 -0
- package/dist/rich-text-editor-CF8QYt5p.js.map +1 -0
- package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-CnrbmTS1.js} +35 -26
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +1 -0
- package/dist/{rich-text-B7sBAdDG.js → rich-text-j-FGAeZW.js} +4 -4
- package/dist/{rich-text-B7sBAdDG.js.map → rich-text-j-FGAeZW.js.map} +1 -1
- package/dist/{scroll-area-BheMQ270.js → scroll-area-DRdr16Pt.js} +3 -3
- package/dist/scroll-area-DRdr16Pt.js.map +1 -0
- package/dist/{separator-DO0EbCEm.js → separator-BMEvwnSX.js} +2 -2
- package/dist/{separator-DO0EbCEm.js.map → separator-BMEvwnSX.js.map} +1 -1
- package/dist/{separator-Gk_WXH-l.js → separator-Do5GWDYi.js} +4 -4
- package/dist/separator-Do5GWDYi.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +4 -0
- package/dist/services/actions.js +8 -3
- package/dist/services/actions.js.map +1 -1
- package/dist/{settings-BnCyyPOJ.js → settings-DHk0L2MF.js} +20 -19
- package/dist/settings-DHk0L2MF.js.map +1 -0
- package/dist/sheet-DRFNY1_D.js +207 -0
- package/dist/sheet-DRFNY1_D.js.map +1 -0
- package/dist/sidebar-Cb8WzOvE.js +511 -0
- package/dist/sidebar-Cb8WzOvE.js.map +1 -0
- package/dist/{sidebar-DPR7fmqN.js → sidebar-Crc9M9JV.js} +220 -201
- package/dist/sidebar-Crc9M9JV.js.map +1 -0
- package/dist/{skeleton-CmT1ppqb.js → skeleton-DVMXr15h.js} +5 -5
- package/dist/{skeleton-CmT1ppqb.js.map → skeleton-DVMXr15h.js.map} +1 -1
- package/dist/smart-card-Bek-TwUp.js +599 -0
- package/dist/smart-card-Bek-TwUp.js.map +1 -0
- package/dist/{spinner-BY9HbUEh.js → spinner-CmTAbEp0.js} +8 -6
- package/dist/spinner-CmTAbEp0.js.map +1 -0
- package/dist/{structure-MvKVq-oL.js → structure-hzCW-XsV.js} +3 -3
- package/dist/{structure-MvKVq-oL.js.map → structure-hzCW-XsV.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-recipes-DOdoBXGm.js +28 -0
- package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
- package/dist/table-D6zKeYQX.js +162 -0
- package/dist/table-D6zKeYQX.js.map +1 -0
- package/dist/table-Dn4XSrSB.js +1444 -0
- package/dist/table-Dn4XSrSB.js.map +1 -0
- package/dist/tabs-Dk8E_knt.js +189 -0
- package/dist/tabs-Dk8E_knt.js.map +1 -0
- package/dist/text-inputs-BFpku0Qd.js +331 -0
- package/dist/text-inputs-BFpku0Qd.js.map +1 -0
- package/dist/{text.styles-BwB7vAF2.js → text.styles-g4He6UIW.js} +26 -15
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +90 -124
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-B9ICkQcV.js → timelines-CxuAFIc2.js} +97 -104
- package/dist/timelines-CxuAFIc2.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BdWSaoFT.js → tree-BotPlyiD.js} +13 -13
- package/dist/{tree-BdWSaoFT.js.map → tree-BotPlyiD.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-CAr3dQhX.js +116 -0
- package/dist/typography-CAr3dQhX.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-CftIB6TY.js → ui-provider-D2_TeLqw.js} +22 -22
- package/dist/ui-provider-D2_TeLqw.js.map +1 -0
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-D8Za5x_c.js → upload-B0WHW7ak.js} +278 -274
- package/dist/upload-B0WHW7ak.js.map +1 -0
- package/dist/{upload-queue-hIIYBLS7.js → upload-queue-BHZ_wBfd.js} +72 -75
- package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
- package/dist/{usage-card-DnmnJ58D.js → usage-card-U0YBLTNT.js} +31 -33
- package/dist/usage-card-U0YBLTNT.js.map +1 -0
- package/dist/utils-Cospvlj1.js +4445 -0
- package/dist/utils-Cospvlj1.js.map +1 -0
- package/dist/value-inputs-CjfzGMsN.js +854 -0
- package/dist/value-inputs-CjfzGMsN.js.map +1 -0
- package/dist/value-typography-Deb3yQZg.js +116 -0
- package/dist/value-typography-Deb3yQZg.js.map +1 -0
- package/dist/{workspace-C1PZmk8L.js → workspace-YoFjXi6i.js} +97 -105
- package/dist/workspace-YoFjXi6i.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +123 -119
- package/docs/consumer-skill/examples/analytics.tsx +34 -0
- package/docs/consumer-skill/examples/app-layout.tsx +42 -14
- package/docs/consumer-skill/examples/detail.tsx +20 -5
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +37 -3
- package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
- package/docs/consumer-skill/examples/website.tsx +56 -0
- package/docs/consumer-skill/references/analytics.md +70 -0
- package/docs/consumer-skill/references/composition.md +195 -9
- package/docs/consumer-skill/references/design-contract.md +33 -7
- package/docs/consumer-skill/references/discovery.md +80 -5
- package/docs/consumer-skill/references/installation.md +22 -0
- package/docs/consumer-skill/references/integration.md +46 -1
- package/docs/consumer-skill/references/public-api.json +2083 -237
- package/docs/consumer-skill/references/review.md +74 -6
- package/docs/consumer-skill/references/theming.md +59 -8
- package/docs/consumer-skill/references/tokens.json +180 -9
- package/docs/consumer-skill/references/workflows.md +34 -0
- package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +271 -18
- package/docs/consumer-skill/scripts/discovery.mjs +69 -9
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
- package/package.json +11 -6
- package/dist/accordion-B-5Focs8.js.map +0 -1
- package/dist/action-menu-Cx3SdfbN.js +0 -265
- package/dist/action-menu-Cx3SdfbN.js.map +0 -1
- package/dist/affordance-geometry.generated-D8Jcfb0G.js +0 -32
- package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +0 -1
- package/dist/ai-artifact-B5tPpXnS.js.map +0 -1
- package/dist/app-shell-at8Kt4l_.js.map +0 -1
- package/dist/attachment-BO2R47wn.js.map +0 -1
- package/dist/auth-OFwWSAap.js +0 -704
- package/dist/auth-OFwWSAap.js.map +0 -1
- package/dist/avatar-Bpzty83c.js.map +0 -1
- package/dist/badge-BZXZT9wd.js.map +0 -1
- package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
- package/dist/button-BS6l5JUw.js.map +0 -1
- package/dist/buttons-Co6GavvM.js +0 -674
- package/dist/buttons-Co6GavvM.js.map +0 -1
- package/dist/chart-DVfcwQu6.js +0 -149
- package/dist/chart-DVfcwQu6.js.map +0 -1
- package/dist/checkbox-BavDRjF7.js +0 -34
- package/dist/checkbox-BavDRjF7.js.map +0 -1
- package/dist/choice-inputs-CC7XqPQO.js +0 -619
- package/dist/choice-inputs-CC7XqPQO.js.map +0 -1
- package/dist/code-block-xHKbAJDj.js.map +0 -1
- package/dist/combobox-DEbdr-3u.js +0 -273
- package/dist/combobox-DEbdr-3u.js.map +0 -1
- package/dist/combobox-xv3yJbzl.js +0 -850
- package/dist/combobox-xv3yJbzl.js.map +0 -1
- package/dist/command-C0xe7u9B.js.map +0 -1
- package/dist/comments-DviPLnwy.js.map +0 -1
- package/dist/containers-6s-ucRQQ.js.map +0 -1
- package/dist/data-display-cWIRdeaf.js +0 -1129
- package/dist/data-display-cWIRdeaf.js.map +0 -1
- package/dist/date-BFNMnrS5.js +0 -140
- package/dist/date-BFNMnrS5.js.map +0 -1
- package/dist/date-picker-CA6ogMQB.js +0 -1521
- package/dist/date-picker-CA6ogMQB.js.map +0 -1
- package/dist/date-pickers-BPIKLdsD.js +0 -224
- package/dist/date-pickers-BPIKLdsD.js.map +0 -1
- package/dist/display-CFM5myut.js.map +0 -1
- package/dist/dropdown-menu-BlnyHr-9.js.map +0 -1
- package/dist/feedback-DWUkgEjR.js.map +0 -1
- package/dist/field-affordance-recipes-IjzPrCTw.js +0 -17
- package/dist/field-affordance-recipes-IjzPrCTw.js.map +0 -1
- package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
- package/dist/filters-BhsUtsxW.js.map +0 -1
- package/dist/form-field-Bn7ZH1rA.js.map +0 -1
- package/dist/form-sizing-BWs70_a2.js +0 -100
- package/dist/form-sizing-BWs70_a2.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B7pzS25o.js.map +0 -1
- package/dist/forms-numeric-BUBxELBv.js +0 -867
- package/dist/forms-numeric-BUBxELBv.js.map +0 -1
- package/dist/header-C59QZyxV.js.map +0 -1
- package/dist/http-CLTVJc5I.js.map +0 -1
- package/dist/input-WwYQZJzG.js +0 -202
- package/dist/input-WwYQZJzG.js.map +0 -1
- package/dist/input-ci9fIgFH.js +0 -20
- package/dist/input-ci9fIgFH.js.map +0 -1
- package/dist/item-pJ0GsOiJ.js +0 -257
- package/dist/item-pJ0GsOiJ.js.map +0 -1
- package/dist/media-gallery-DhDRgnVZ.js +0 -200
- package/dist/media-gallery-DhDRgnVZ.js.map +0 -1
- package/dist/message-COsdEvXT.js +0 -108
- package/dist/message-COsdEvXT.js.map +0 -1
- package/dist/navigation-BUIn2Qxx.js.map +0 -1
- package/dist/navigation-DBEu4POU.js +0 -267
- package/dist/navigation-DBEu4POU.js.map +0 -1
- package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
- package/dist/number-BNT_BIzJ.js +0 -269
- package/dist/number-BNT_BIzJ.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-B11wZka6.js +0 -982
- package/dist/overlays-B11wZka6.js.map +0 -1
- package/dist/page-BV6ioQg3.js +0 -202
- package/dist/page-BV6ioQg3.js.map +0 -1
- package/dist/page-header-DQRa0jug.js.map +0 -1
- package/dist/pagination-C29vvt3I.js.map +0 -1
- package/dist/popover-CoLDEg19.js.map +0 -1
- package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
- package/dist/primitives-DKPOGVpj.js +0 -330
- package/dist/primitives-DKPOGVpj.js.map +0 -1
- package/dist/progress-BOe8l_FZ.js.map +0 -1
- package/dist/rich-text-editor-CoVrTiSv.js +0 -575
- package/dist/rich-text-editor-CoVrTiSv.js.map +0 -1
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
- package/dist/scroll-area-BheMQ270.js.map +0 -1
- package/dist/select-B2mb-qN2.js +0 -108
- package/dist/select-B2mb-qN2.js.map +0 -1
- package/dist/separator-Gk_WXH-l.js.map +0 -1
- package/dist/settings-BnCyyPOJ.js.map +0 -1
- package/dist/sheet-B-q914Ad.js +0 -205
- package/dist/sheet-B-q914Ad.js.map +0 -1
- package/dist/sidebar-C_2p3Tfj.js +0 -501
- package/dist/sidebar-C_2p3Tfj.js.map +0 -1
- package/dist/sidebar-DPR7fmqN.js.map +0 -1
- package/dist/smart-card-CYLn46e6.js +0 -578
- package/dist/smart-card-CYLn46e6.js.map +0 -1
- package/dist/spinner-BY9HbUEh.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-CQfRr-VL.js +0 -27
- package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
- package/dist/table-BS39xnlq.js +0 -1424
- package/dist/table-BS39xnlq.js.map +0 -1
- package/dist/table-DnlAJ-xR.js +0 -146
- package/dist/table-DnlAJ-xR.js.map +0 -1
- package/dist/tabs-B5cNMWiP.js +0 -187
- package/dist/tabs-B5cNMWiP.js.map +0 -1
- package/dist/text-inputs-Dh9XGyiS.js +0 -331
- package/dist/text-inputs-Dh9XGyiS.js.map +0 -1
- package/dist/text.styles-BwB7vAF2.js.map +0 -1
- package/dist/timelines-B9ICkQcV.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/typography-Cv8MT-82.js +0 -96
- package/dist/typography-Cv8MT-82.js.map +0 -1
- package/dist/ui-provider-CftIB6TY.js.map +0 -1
- package/dist/upload-D8Za5x_c.js.map +0 -1
- package/dist/upload-queue-hIIYBLS7.js.map +0 -1
- package/dist/usage-card-DnmnJ58D.js.map +0 -1
- package/dist/utils-C2EKeIw3.js +0 -72
- package/dist/utils-C2EKeIw3.js.map +0 -1
- package/dist/value-inputs-DX2dbxjj.js +0 -824
- package/dist/value-inputs-DX2dbxjj.js.map +0 -1
- package/dist/workspace-C1PZmk8L.js.map +0 -1
package/dist/buttons-Co6GavvM.js
DELETED
|
@@ -1,674 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { _ as e, r as t, s as n } from "./ui-provider-CftIB6TY.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-C2EKeIw3.js";
|
|
6
|
-
import { t as o } from "./separator-DO0EbCEm.js";
|
|
7
|
-
import { a as s } from "./typography-Cv8MT-82.js";
|
|
8
|
-
import { t as c } from "./anchored-positioning-DPnKTvNs.js";
|
|
9
|
-
import { t as l } from "./motion-recipes-B6jKXEcN.js";
|
|
10
|
-
import { t as u } from "./slot-CLF9kLrS.js";
|
|
11
|
-
import { t as d } from "./button-BS6l5JUw.js";
|
|
12
|
-
import * as f from "react";
|
|
13
|
-
import { createContext as p, forwardRef as m, useContext as h, useEffect as g, useId as _, useLayoutEffect as v, useState as y } from "react";
|
|
14
|
-
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
15
|
-
import { Loader2 as ee } from "lucide-react";
|
|
16
|
-
import { mergeProps as C } from "@base-ui/react/merge-props";
|
|
17
|
-
import { useRender as te } from "@base-ui/react/use-render";
|
|
18
|
-
import { cva as ne } from "class-variance-authority";
|
|
19
|
-
import { Tooltip as w } from "@base-ui/react/tooltip";
|
|
20
|
-
//#region src/components/ui/button-group.tsx
|
|
21
|
-
var re = ({ orientation: e = "horizontal" } = {}) => e === "vertical" ? "button-group-vertical" : "button-group-horizontal";
|
|
22
|
-
function ie({ className: e, orientation: t = "horizontal", ...n }) {
|
|
23
|
-
return /* @__PURE__ */ x("div", {
|
|
24
|
-
role: "group",
|
|
25
|
-
"data-slot": "button-group",
|
|
26
|
-
"data-orientation": t,
|
|
27
|
-
className: a("button-group--primitive", e),
|
|
28
|
-
...n
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function ae({ className: e, render: t, ...n }) {
|
|
32
|
-
return te({
|
|
33
|
-
defaultTagName: "div",
|
|
34
|
-
props: C({ className: a("button-group-text--primitive", e) }, n),
|
|
35
|
-
render: t,
|
|
36
|
-
state: { slot: "button-group-text" }
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function oe({ className: e, orientation: t = "vertical", ...n }) {
|
|
40
|
-
return /* @__PURE__ */ x(o, {
|
|
41
|
-
"data-slot": "button-group-separator",
|
|
42
|
-
orientation: t,
|
|
43
|
-
className: a("button-group-separator--primitive", e),
|
|
44
|
-
...n
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/components/base/buttons/button-group.recipes.ts
|
|
49
|
-
var T = {
|
|
50
|
-
root: "inline-flex items-stretch rounded-radius box-border data-[orientation=vertical]:flex-col [&[data-orientation=horizontal]>:not(:last-child)]:rounded-e-none [&[data-orientation=horizontal]>:not(:first-child)]:rounded-s-none [&[data-orientation=horizontal]>:not(:first-child)]:-ms-px [&[data-orientation=vertical]>:not(:last-child)]:rounded-b-none [&[data-orientation=vertical]>:not(:first-child)]:rounded-t-none [&[data-orientation=vertical]>:not(:first-child)]:-mt-px",
|
|
51
|
-
text: "inline-flex items-center px-control-sm py-0 bg-muted border border-border text-sm text-muted-foreground",
|
|
52
|
-
separator: "bg-border w-px self-stretch"
|
|
53
|
-
};
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/components/base/buttons/button-group.tsx
|
|
56
|
-
function se({ className: e, ...t }) {
|
|
57
|
-
return /* @__PURE__ */ x(ie, {
|
|
58
|
-
className: a("button-group--component", T.root, e),
|
|
59
|
-
...t
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function E(e) {
|
|
63
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
64
|
-
}
|
|
65
|
-
function D({ children: e, className: t, ...n }) {
|
|
66
|
-
return /* @__PURE__ */ x(ae, {
|
|
67
|
-
className: a("button-group-text--component", T.text, t),
|
|
68
|
-
...n,
|
|
69
|
-
children: E(e) ? /* @__PURE__ */ x(s, {
|
|
70
|
-
tag: "span",
|
|
71
|
-
size: "inherit",
|
|
72
|
-
weight: "medium",
|
|
73
|
-
lineHeight: "tight",
|
|
74
|
-
className: "text-inherit",
|
|
75
|
-
children: e
|
|
76
|
-
}) : e
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
function O({ className: e, ...t }) {
|
|
80
|
-
return /* @__PURE__ */ x(oe, {
|
|
81
|
-
className: a("button-group-separator--component", T.separator, e),
|
|
82
|
-
...t
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/components/ui/tooltip.tsx
|
|
87
|
-
function k({ delay: e = 0, delayDuration: t, ...n }) {
|
|
88
|
-
return /* @__PURE__ */ x(w.Provider, {
|
|
89
|
-
"data-slot": "tooltip-provider",
|
|
90
|
-
delay: t ?? e,
|
|
91
|
-
...n
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function A({ ...e }) {
|
|
95
|
-
return /* @__PURE__ */ x(k, { children: /* @__PURE__ */ x(w.Root, {
|
|
96
|
-
"data-slot": "tooltip",
|
|
97
|
-
...e
|
|
98
|
-
}) });
|
|
99
|
-
}
|
|
100
|
-
function j({ asChild: e = !1, render: t, children: n, ...r }) {
|
|
101
|
-
let i = e ? /* @__PURE__ */ x(u, {}) : void 0, a = typeof t == "function" ? ((e, n) => {
|
|
102
|
-
let { nativeButton: r, ...i } = e;
|
|
103
|
-
return t(i, n);
|
|
104
|
-
}) : t;
|
|
105
|
-
return /* @__PURE__ */ x(w.Trigger, {
|
|
106
|
-
"data-slot": "tooltip-trigger",
|
|
107
|
-
render: i ?? a,
|
|
108
|
-
...r,
|
|
109
|
-
children: n
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
function M({ className: e, container: t, side: n = "top", sideOffset: i = 4, align: o = "center", alignOffset: s = 0, positionMethod: u = c, children: d, ...f }) {
|
|
113
|
-
let p = r(t);
|
|
114
|
-
return /* @__PURE__ */ x(w.Portal, {
|
|
115
|
-
container: p,
|
|
116
|
-
children: /* @__PURE__ */ x(w.Positioner, {
|
|
117
|
-
positionMethod: u,
|
|
118
|
-
align: o,
|
|
119
|
-
alignOffset: s,
|
|
120
|
-
side: n,
|
|
121
|
-
sideOffset: i,
|
|
122
|
-
className: "isolate z-50",
|
|
123
|
-
children: /* @__PURE__ */ S(w.Popup, {
|
|
124
|
-
"data-slot": "tooltip-content",
|
|
125
|
-
className: a(l.popup, "rounded-md px-3 py-1.5 text-xs bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)", e),
|
|
126
|
-
...f,
|
|
127
|
-
children: [d, /* @__PURE__ */ x(w.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-foreground fill-foreground 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" })]
|
|
128
|
-
})
|
|
129
|
-
})
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region src/components/base/display/tooltip.tsx
|
|
134
|
-
var N = p(void 0), P = p(!1);
|
|
135
|
-
function F(e) {
|
|
136
|
-
let t = h(P), n = _(), [r, i] = y(n), a = /* @__PURE__ */ x(N.Provider, {
|
|
137
|
-
value: {
|
|
138
|
-
id: r,
|
|
139
|
-
setId: i
|
|
140
|
-
},
|
|
141
|
-
children: /* @__PURE__ */ x(w.Root, {
|
|
142
|
-
"data-slot": "tooltip",
|
|
143
|
-
...e
|
|
144
|
-
})
|
|
145
|
-
});
|
|
146
|
-
return t ? a : /* @__PURE__ */ x(k, { children: a });
|
|
147
|
-
}
|
|
148
|
-
function I(e) {
|
|
149
|
-
return /* @__PURE__ */ x(P.Provider, {
|
|
150
|
-
value: !0,
|
|
151
|
-
children: /* @__PURE__ */ x(k, { ...e })
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
function L({ className: e, ...t }) {
|
|
155
|
-
let n = h(N)?.id;
|
|
156
|
-
return /* @__PURE__ */ x(j, {
|
|
157
|
-
className: a("tooltip-trigger--component active:translate-y-0!", e),
|
|
158
|
-
...t,
|
|
159
|
-
"aria-describedby": [t["aria-describedby"], n].filter(Boolean).join(" ") || void 0
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
function R({ children: e, className: t, ...n }) {
|
|
163
|
-
let r = h(N), i = n.id ?? r?.id;
|
|
164
|
-
v(() => {
|
|
165
|
-
i && r?.setId(i);
|
|
166
|
-
}, [i, r?.setId]);
|
|
167
|
-
let o = typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ x(s, {
|
|
168
|
-
tag: "span",
|
|
169
|
-
size: "inherit",
|
|
170
|
-
lineHeight: "snug",
|
|
171
|
-
className: "tooltip-content--text text-inherit",
|
|
172
|
-
children: e
|
|
173
|
-
}) : e;
|
|
174
|
-
return /* @__PURE__ */ x(M, {
|
|
175
|
-
id: i,
|
|
176
|
-
role: "tooltip",
|
|
177
|
-
className: a("tooltip-content--component max-w-xs rounded-radius px-space-sm py-space-xs text-xs leading-snug", t),
|
|
178
|
-
...n,
|
|
179
|
-
children: o
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
F.displayName = "Tooltip", I.displayName = "TooltipProvider", L.displayName = "TooltipTrigger", R.displayName = "TooltipContent";
|
|
183
|
-
//#endregion
|
|
184
|
-
//#region src/components/base/buttons/button.variants.ts
|
|
185
|
-
var z = ne("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-radius border font-sans font-medium no-underline outline-none transition-colors 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", {
|
|
186
|
-
variants: {
|
|
187
|
-
tone: {
|
|
188
|
-
primary: "",
|
|
189
|
-
neutral: "",
|
|
190
|
-
secondary: "",
|
|
191
|
-
destructive: "",
|
|
192
|
-
success: "",
|
|
193
|
-
warning: "",
|
|
194
|
-
info: ""
|
|
195
|
-
},
|
|
196
|
-
buttonStyle: {
|
|
197
|
-
solid: "border-transparent",
|
|
198
|
-
outline: "border-input bg-background [&:not([aria-disabled=true]):not(:disabled)]:hover:bg-accent",
|
|
199
|
-
ghost: "border-transparent bg-transparent [&:not([aria-disabled=true]):not(:disabled)]:hover:bg-accent"
|
|
200
|
-
},
|
|
201
|
-
size: {
|
|
202
|
-
sm: "h-action-sm px-control-sm text-sm leading-none",
|
|
203
|
-
md: "h-action px-control text-sm leading-none",
|
|
204
|
-
lg: "h-action-lg px-control text-sm leading-none"
|
|
205
|
-
},
|
|
206
|
-
iconOnly: {
|
|
207
|
-
true: "px-0",
|
|
208
|
-
false: ""
|
|
209
|
-
},
|
|
210
|
-
fullWidth: {
|
|
211
|
-
true: "w-full",
|
|
212
|
-
false: ""
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
compoundVariants: [
|
|
216
|
-
{
|
|
217
|
-
tone: "primary",
|
|
218
|
-
buttonStyle: "solid",
|
|
219
|
-
class: "bg-primary text-primary-foreground"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
tone: "primary",
|
|
223
|
-
buttonStyle: "outline",
|
|
224
|
-
class: "border-primary/60 text-primary-accent"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
tone: "primary",
|
|
228
|
-
buttonStyle: "ghost",
|
|
229
|
-
class: "text-primary-accent"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
tone: "neutral",
|
|
233
|
-
buttonStyle: "solid",
|
|
234
|
-
class: "bg-foreground text-background"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
tone: "neutral",
|
|
238
|
-
buttonStyle: "outline",
|
|
239
|
-
class: "border-foreground/15 text-foreground"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
tone: "neutral",
|
|
243
|
-
buttonStyle: "ghost",
|
|
244
|
-
class: "text-foreground"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
tone: "secondary",
|
|
248
|
-
buttonStyle: "solid",
|
|
249
|
-
class: "bg-secondary text-secondary-foreground"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
tone: "secondary",
|
|
253
|
-
buttonStyle: "outline",
|
|
254
|
-
class: "border-border/60 text-secondary-foreground"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
tone: "secondary",
|
|
258
|
-
buttonStyle: "ghost",
|
|
259
|
-
class: "text-secondary-foreground [&:not([aria-disabled=true]):not(:disabled)]:hover:text-accent-foreground"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
tone: "destructive",
|
|
263
|
-
buttonStyle: "solid",
|
|
264
|
-
class: "bg-destructive text-destructive-foreground"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
tone: "destructive",
|
|
268
|
-
buttonStyle: "outline",
|
|
269
|
-
class: "border-destructive/60 text-destructive"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
tone: "destructive",
|
|
273
|
-
buttonStyle: "ghost",
|
|
274
|
-
class: "text-destructive"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
tone: "success",
|
|
278
|
-
buttonStyle: "solid",
|
|
279
|
-
class: "bg-success text-success-foreground"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
tone: "success",
|
|
283
|
-
buttonStyle: "outline",
|
|
284
|
-
class: "border-success/60 text-success"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
tone: "success",
|
|
288
|
-
buttonStyle: "ghost",
|
|
289
|
-
class: "text-success"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
tone: "warning",
|
|
293
|
-
buttonStyle: "solid",
|
|
294
|
-
class: "bg-warning text-warning-foreground"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
tone: "warning",
|
|
298
|
-
buttonStyle: "outline",
|
|
299
|
-
class: "border-warning/60 text-warning-accent"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
tone: "warning",
|
|
303
|
-
buttonStyle: "ghost",
|
|
304
|
-
class: "text-warning-accent"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
tone: "info",
|
|
308
|
-
buttonStyle: "solid",
|
|
309
|
-
class: "bg-info text-info-foreground"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
tone: "info",
|
|
313
|
-
buttonStyle: "outline",
|
|
314
|
-
class: "border-info/60 text-info"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
tone: "info",
|
|
318
|
-
buttonStyle: "ghost",
|
|
319
|
-
class: "text-info"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
size: "sm",
|
|
323
|
-
iconOnly: !0,
|
|
324
|
-
class: "size-action-sm"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
size: "md",
|
|
328
|
-
iconOnly: !0,
|
|
329
|
-
class: "size-action"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
size: "lg",
|
|
333
|
-
iconOnly: !0,
|
|
334
|
-
class: "size-action-lg"
|
|
335
|
-
}
|
|
336
|
-
],
|
|
337
|
-
defaultVariants: {
|
|
338
|
-
tone: "primary",
|
|
339
|
-
buttonStyle: "solid",
|
|
340
|
-
size: "md",
|
|
341
|
-
iconOnly: !1,
|
|
342
|
-
fullWidth: !1
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
//#endregion
|
|
346
|
-
//#region src/components/base/buttons/base-button.tsx
|
|
347
|
-
function B({ tone: r, buttonStyle: i, size: a, iconOnly: o = !1, fullWidth: s = !1 }) {
|
|
348
|
-
let c = t(), { defaultScale: l } = n(), u = {
|
|
349
|
-
tone: r ?? c.defaultTone,
|
|
350
|
-
buttonStyle: i ?? c.defaultButtonStyle,
|
|
351
|
-
size: e(a, l),
|
|
352
|
-
iconOnly: o,
|
|
353
|
-
fullWidth: s
|
|
354
|
-
};
|
|
355
|
-
return {
|
|
356
|
-
...u,
|
|
357
|
-
classes: z(u),
|
|
358
|
-
attributes: {
|
|
359
|
-
"data-slot": "button",
|
|
360
|
-
"data-tone": u.tone,
|
|
361
|
-
"data-style": u.buttonStyle,
|
|
362
|
-
"data-size": u.size,
|
|
363
|
-
"data-icon-only": o || void 0,
|
|
364
|
-
"data-full-width": s || void 0
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
function V({ icon: e, iconPosition: t = "left", children: n }) {
|
|
369
|
-
let r = e && /* @__PURE__ */ x(e, {
|
|
370
|
-
className: "size-icon shrink-0",
|
|
371
|
-
"aria-hidden": "true"
|
|
372
|
-
});
|
|
373
|
-
return /* @__PURE__ */ S(b, { children: [
|
|
374
|
-
t === "left" && r,
|
|
375
|
-
n,
|
|
376
|
-
t === "right" && r
|
|
377
|
-
] });
|
|
378
|
-
}
|
|
379
|
-
var H = m(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: i, icon: o, iconPosition: s, className: c, children: l, ...u }, f) {
|
|
380
|
-
let p = B({
|
|
381
|
-
tone: e,
|
|
382
|
-
buttonStyle: t,
|
|
383
|
-
size: n,
|
|
384
|
-
iconOnly: r,
|
|
385
|
-
fullWidth: i,
|
|
386
|
-
children: l
|
|
387
|
-
});
|
|
388
|
-
return /* @__PURE__ */ x(d, {
|
|
389
|
-
...u,
|
|
390
|
-
...p.attributes,
|
|
391
|
-
ref: f,
|
|
392
|
-
className: (e) => a("base-button--component", p.classes, typeof c == "function" ? c(e) : c),
|
|
393
|
-
children: /* @__PURE__ */ x(V, {
|
|
394
|
-
icon: o,
|
|
395
|
-
iconPosition: s,
|
|
396
|
-
children: l
|
|
397
|
-
})
|
|
398
|
-
});
|
|
399
|
-
}), U = m(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) {
|
|
400
|
-
let _ = B({
|
|
401
|
-
tone: e,
|
|
402
|
-
buttonStyle: t,
|
|
403
|
-
size: n,
|
|
404
|
-
iconOnly: r,
|
|
405
|
-
fullWidth: i,
|
|
406
|
-
children: l
|
|
407
|
-
}), v = new Set(p?.split(/\s+/).filter(Boolean));
|
|
408
|
-
return m?.toLowerCase() === "_blank" && (v.size || v.add("noreferrer"), v.add("noopener")), /* @__PURE__ */ x("a", {
|
|
409
|
-
...h,
|
|
410
|
-
..._.attributes,
|
|
411
|
-
ref: g,
|
|
412
|
-
target: m,
|
|
413
|
-
rel: v.size ? [...v].join(" ") : void 0,
|
|
414
|
-
"aria-disabled": u || h["aria-disabled"] || void 0,
|
|
415
|
-
tabIndex: u ? -1 : d,
|
|
416
|
-
className: a("base-button--component", _.classes, c),
|
|
417
|
-
onClick: (e) => {
|
|
418
|
-
if (u) {
|
|
419
|
-
e.preventDefault(), e.stopPropagation();
|
|
420
|
-
return;
|
|
421
|
-
}
|
|
422
|
-
f?.(e);
|
|
423
|
-
},
|
|
424
|
-
children: /* @__PURE__ */ x(V, {
|
|
425
|
-
icon: o,
|
|
426
|
-
iconPosition: s,
|
|
427
|
-
children: l
|
|
428
|
-
})
|
|
429
|
-
});
|
|
430
|
-
}), W = {
|
|
431
|
-
root: "inline-flex items-center justify-center font-[inherit] font-medium leading-tight whitespace-nowrap no-underline select-none border border-transparent rounded-radius box-border align-middle outline-none cursor-pointer transition-[background-color,color,border-color,box-shadow] duration-150 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:pointer-events-none",
|
|
432
|
-
isDisabled: "opacity-50 cursor-not-allowed pointer-events-none",
|
|
433
|
-
sizeSm: "h-action-sm min-h-0 px-control-sm gap-space-sm text-sm [&_.base-button-icon]:size-icon-sm",
|
|
434
|
-
sizeMd: "h-action min-h-0 px-control gap-space-md text-sm [&_.base-button-icon]:size-icon",
|
|
435
|
-
sizeLg: "h-action-lg min-h-0 px-control gap-space-lg text-sm [&_.base-button-icon]:size-icon-lg",
|
|
436
|
-
isIconOnly: "w-auto aspect-square p-0",
|
|
437
|
-
isFullWidth: "w-full",
|
|
438
|
-
isLoading: "cursor-wait",
|
|
439
|
-
styleSolid: "",
|
|
440
|
-
styleOutline: "",
|
|
441
|
-
styleGhost: "",
|
|
442
|
-
icon: "base-button-icon pointer-events-none shrink-0",
|
|
443
|
-
spinner: "animate-spin me-space-md",
|
|
444
|
-
toneNeutral: "data-[style=solid]:bg-foreground data-[style=solid]:text-background data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-border data-[style=outline]:text-foreground data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-muted data-[style=ghost]:bg-transparent data-[style=ghost]:text-foreground data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-muted",
|
|
445
|
-
tonePrimary: "data-[style=solid]:bg-primary data-[style=solid]:text-primary-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-primary data-[style=outline]:text-primary-accent data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-primary/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-primary-accent data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-primary/10",
|
|
446
|
-
toneSecondary: "data-[style=solid]:bg-secondary data-[style=solid]:text-secondary-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-border data-[style=outline]:text-foreground data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-secondary data-[style=ghost]:bg-transparent data-[style=ghost]:text-foreground data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-secondary",
|
|
447
|
-
toneDestructive: "data-[style=solid]:bg-destructive data-[style=solid]:text-destructive-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-destructive data-[style=outline]:text-destructive data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-destructive/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-destructive data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-destructive/10",
|
|
448
|
-
toneSuccess: "data-[style=solid]:bg-success data-[style=solid]:text-success-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-success data-[style=outline]:text-success data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-success/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-success data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-success/10",
|
|
449
|
-
toneWarning: "data-[style=solid]:bg-warning data-[style=solid]:text-warning-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-warning data-[style=outline]:text-warning-accent data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-warning/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-warning-accent data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-warning/10",
|
|
450
|
-
toneInfo: "data-[style=solid]:bg-info data-[style=solid]:text-info-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-info data-[style=outline]:text-info data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-info/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-info data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-info/10"
|
|
451
|
-
}, ce = {
|
|
452
|
-
loading: "Loading...",
|
|
453
|
-
completed: "Completed"
|
|
454
|
-
};
|
|
455
|
-
function G({ loading: e = !1, handlesLoading: t, strings: n }) {
|
|
456
|
-
let r = i(ce, n), [a, o] = y(e), [, s] = y(!1);
|
|
457
|
-
return g(() => {
|
|
458
|
-
e && o(!0);
|
|
459
|
-
}, [e]), g(() => {
|
|
460
|
-
t && e && o(!0);
|
|
461
|
-
}, [e, t]), g(() => {
|
|
462
|
-
let t;
|
|
463
|
-
return !e && a && (s(!0), t = setTimeout(() => {
|
|
464
|
-
o(!1), s(!1);
|
|
465
|
-
}, 300)), () => {
|
|
466
|
-
t && clearTimeout(t);
|
|
467
|
-
};
|
|
468
|
-
}, [e, a]), {
|
|
469
|
-
isLoading: a,
|
|
470
|
-
strings: r
|
|
471
|
-
};
|
|
472
|
-
}
|
|
473
|
-
function K({ isLoading: e, loadingText: t, icon: n, iconPosition: r = "left", size: i, children: o }) {
|
|
474
|
-
let c = e ? t : o, l = typeof c == "string" || typeof c == "number" || typeof c == "bigint";
|
|
475
|
-
return /* @__PURE__ */ S(b, { children: [
|
|
476
|
-
!!e && /* @__PURE__ */ x(ee, {
|
|
477
|
-
className: a(W.icon, W.spinner),
|
|
478
|
-
"aria-hidden": "true"
|
|
479
|
-
}),
|
|
480
|
-
!!n && r === "left" && !e && /* @__PURE__ */ x(n, {
|
|
481
|
-
className: W.icon,
|
|
482
|
-
"aria-hidden": "true"
|
|
483
|
-
}),
|
|
484
|
-
l ? /* @__PURE__ */ x(s, {
|
|
485
|
-
tag: "span",
|
|
486
|
-
size: "inherit",
|
|
487
|
-
weight: "medium",
|
|
488
|
-
lineHeight: "none",
|
|
489
|
-
className: "text-inherit",
|
|
490
|
-
children: c
|
|
491
|
-
}) : c,
|
|
492
|
-
!!n && r === "right" && !e && /* @__PURE__ */ x(n, {
|
|
493
|
-
className: W.icon,
|
|
494
|
-
"aria-hidden": "true"
|
|
495
|
-
})
|
|
496
|
-
] });
|
|
497
|
-
}
|
|
498
|
-
var q = f.forwardRef(({ loading: e = !1, handlesLoading: t, strings: n, icon: r, iconPosition: i = "left", children: o, disabled: s, className: c, ...l }, u) => {
|
|
499
|
-
let { isLoading: d, strings: f } = G({
|
|
500
|
-
loading: e,
|
|
501
|
-
handlesLoading: t,
|
|
502
|
-
strings: n
|
|
503
|
-
});
|
|
504
|
-
return /* @__PURE__ */ x(H, {
|
|
505
|
-
...l,
|
|
506
|
-
ref: u,
|
|
507
|
-
disabled: s || d,
|
|
508
|
-
"aria-busy": d || void 0,
|
|
509
|
-
className: a("loader-button--component", d && W.isLoading, c),
|
|
510
|
-
children: /* @__PURE__ */ x(K, {
|
|
511
|
-
isLoading: d,
|
|
512
|
-
loadingText: f.loading,
|
|
513
|
-
icon: r,
|
|
514
|
-
iconPosition: i,
|
|
515
|
-
size: l.size,
|
|
516
|
-
children: o
|
|
517
|
-
})
|
|
518
|
-
});
|
|
519
|
-
});
|
|
520
|
-
q.displayName = "LoaderButton";
|
|
521
|
-
//#endregion
|
|
522
|
-
//#region src/components/base/buttons/tooltip-button.tsx
|
|
523
|
-
var J = f.forwardRef(({ withTooltip: e, children: t, ...n }, r) => /* @__PURE__ */ S(F, { children: [/* @__PURE__ */ x(L, { render: (i) => {
|
|
524
|
-
let o = C(n, i);
|
|
525
|
-
return /* @__PURE__ */ x(H, {
|
|
526
|
-
...o,
|
|
527
|
-
"aria-label": n["aria-label"] ?? e,
|
|
528
|
-
ref: r,
|
|
529
|
-
className: a("tooltip-button--component", o.className),
|
|
530
|
-
children: t
|
|
531
|
-
});
|
|
532
|
-
} }), /* @__PURE__ */ x(R, {
|
|
533
|
-
className: "px-2 py-1 text-pxs",
|
|
534
|
-
children: /* @__PURE__ */ x(s, {
|
|
535
|
-
tag: "span",
|
|
536
|
-
size: "inherit",
|
|
537
|
-
className: "text-inherit",
|
|
538
|
-
children: e
|
|
539
|
-
})
|
|
540
|
-
})] }));
|
|
541
|
-
J.displayName = "TooltipButton";
|
|
542
|
-
//#endregion
|
|
543
|
-
//#region src/components/base/buttons/button.tsx
|
|
544
|
-
function Y({ loading: e, handlesLoading: t, strings: n }) {
|
|
545
|
-
return e === !0 || !!t || n !== void 0;
|
|
546
|
-
}
|
|
547
|
-
var X = f.forwardRef(({ loading: e, handlesLoading: t, strings: n, icon: r, iconPosition: i = "left", children: o, disabled: s, size: c, className: l, ...u }, d) => {
|
|
548
|
-
let f = G({
|
|
549
|
-
loading: e,
|
|
550
|
-
handlesLoading: t,
|
|
551
|
-
strings: n
|
|
552
|
-
});
|
|
553
|
-
return /* @__PURE__ */ x(U, {
|
|
554
|
-
...u,
|
|
555
|
-
ref: d,
|
|
556
|
-
size: c,
|
|
557
|
-
disabled: s || f.isLoading,
|
|
558
|
-
"aria-busy": f.isLoading || void 0,
|
|
559
|
-
className: a("loader-button--component", l),
|
|
560
|
-
children: /* @__PURE__ */ x(K, {
|
|
561
|
-
isLoading: f.isLoading,
|
|
562
|
-
loadingText: f.strings.loading,
|
|
563
|
-
icon: r,
|
|
564
|
-
iconPosition: i,
|
|
565
|
-
size: c,
|
|
566
|
-
children: o
|
|
567
|
-
})
|
|
568
|
-
});
|
|
569
|
-
});
|
|
570
|
-
X.displayName = "LoadingButtonLink";
|
|
571
|
-
var Z = f.forwardRef(({ withTooltip: e, ...t }, n) => {
|
|
572
|
-
if (Y(t)) return /* @__PURE__ */ x(X, {
|
|
573
|
-
ref: n,
|
|
574
|
-
...t
|
|
575
|
-
});
|
|
576
|
-
let { loading: r, handlesLoading: i, strings: a, ...o } = t;
|
|
577
|
-
return /* @__PURE__ */ x(U, {
|
|
578
|
-
ref: n,
|
|
579
|
-
...o
|
|
580
|
-
});
|
|
581
|
-
});
|
|
582
|
-
Z.displayName = "ButtonLink";
|
|
583
|
-
function le(e) {
|
|
584
|
-
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;
|
|
585
|
-
return p;
|
|
586
|
-
}
|
|
587
|
-
var Q = f.forwardRef(({ href: e, withTooltip: t, loading: n, handlesLoading: r, strings: i, ...o }, c) => {
|
|
588
|
-
if (e !== void 0) {
|
|
589
|
-
let l = le(o), u = /* @__PURE__ */ x(Z, {
|
|
590
|
-
...l,
|
|
591
|
-
ref: c,
|
|
592
|
-
href: e,
|
|
593
|
-
loading: n,
|
|
594
|
-
handlesLoading: r,
|
|
595
|
-
strings: i,
|
|
596
|
-
"aria-label": o["aria-label"] ?? t,
|
|
597
|
-
className: a("button--component", l.className)
|
|
598
|
-
});
|
|
599
|
-
return t ? /* @__PURE__ */ S(F, { children: [/* @__PURE__ */ x(L, { render: u }), /* @__PURE__ */ x(R, {
|
|
600
|
-
className: "px-2 py-1 text-pxs",
|
|
601
|
-
children: /* @__PURE__ */ x(s, {
|
|
602
|
-
tag: "span",
|
|
603
|
-
size: "inherit",
|
|
604
|
-
className: "text-inherit",
|
|
605
|
-
children: t
|
|
606
|
-
})
|
|
607
|
-
})] }) : u;
|
|
608
|
-
}
|
|
609
|
-
let { download: l, hrefLang: u, media: d, ping: f, referrerPolicy: p, rel: m, target: h, ...g } = o, _ = {
|
|
610
|
-
...g,
|
|
611
|
-
className: a("button--component", g.className)
|
|
612
|
-
};
|
|
613
|
-
return Y({
|
|
614
|
-
loading: n,
|
|
615
|
-
handlesLoading: r,
|
|
616
|
-
strings: i
|
|
617
|
-
}) ? t ? /* @__PURE__ */ S(F, { children: [/* @__PURE__ */ x(L, { render: (e) => /* @__PURE__ */ x(q, {
|
|
618
|
-
..._,
|
|
619
|
-
...e,
|
|
620
|
-
ref: c,
|
|
621
|
-
loading: n,
|
|
622
|
-
handlesLoading: r,
|
|
623
|
-
strings: i,
|
|
624
|
-
"aria-label": g["aria-label"] ?? t,
|
|
625
|
-
className: a(e.className, _.className),
|
|
626
|
-
children: g.children
|
|
627
|
-
}) }), /* @__PURE__ */ x(R, {
|
|
628
|
-
className: "px-2 py-1 text-pxs",
|
|
629
|
-
children: /* @__PURE__ */ x(s, {
|
|
630
|
-
tag: "span",
|
|
631
|
-
size: "inherit",
|
|
632
|
-
className: "text-inherit",
|
|
633
|
-
children: t
|
|
634
|
-
})
|
|
635
|
-
})] }) : /* @__PURE__ */ x(q, {
|
|
636
|
-
..._,
|
|
637
|
-
ref: c,
|
|
638
|
-
loading: n,
|
|
639
|
-
handlesLoading: r,
|
|
640
|
-
strings: i
|
|
641
|
-
}) : t ? /* @__PURE__ */ x(J, {
|
|
642
|
-
..._,
|
|
643
|
-
ref: c,
|
|
644
|
-
withTooltip: t
|
|
645
|
-
}) : /* @__PURE__ */ x(H, {
|
|
646
|
-
..._,
|
|
647
|
-
ref: c
|
|
648
|
-
});
|
|
649
|
-
});
|
|
650
|
-
Q.displayName = "Button";
|
|
651
|
-
//#endregion
|
|
652
|
-
//#region src/components/base/buttons/text-button.tsx
|
|
653
|
-
var ue = {
|
|
654
|
-
sm: "text-pxs leading-none h-auto px-0",
|
|
655
|
-
md: "text-pxs leading-none h-auto px-0",
|
|
656
|
-
lg: "text-sm leading-none h-auto px-0"
|
|
657
|
-
}, $ = f.forwardRef(({ className: t, type: r = "button", size: i, disabled: o, ...s }, c) => {
|
|
658
|
-
let { defaultScale: l } = n(), u = e(i, l);
|
|
659
|
-
return /* @__PURE__ */ x(H, {
|
|
660
|
-
ref: c,
|
|
661
|
-
type: r,
|
|
662
|
-
tone: "primary",
|
|
663
|
-
buttonStyle: "ghost",
|
|
664
|
-
size: u,
|
|
665
|
-
disabled: o,
|
|
666
|
-
className: a("text-button--component", "hover:bg-transparent dark:hover:bg-transparent", "inline-flex items-center justify-center underline decoration-border underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current", "text-primary-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", ue[u], t),
|
|
667
|
-
...s
|
|
668
|
-
});
|
|
669
|
-
});
|
|
670
|
-
$.displayName = "TextButton";
|
|
671
|
-
//#endregion
|
|
672
|
-
export { z as a, I as c, M as d, j as f, re as g, D as h, U as i, L as l, O as m, Q as n, F as o, se as p, H as r, R as s, $ as t, A as u };
|
|
673
|
-
|
|
674
|
-
//# sourceMappingURL=buttons-Co6GavvM.js.map
|