themelia-react-ui 2.0.0 → 2.0.1
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 +351 -0
- package/README.md +26 -13
- package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +13 -13
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +103 -115
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +17 -17
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +171 -170
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +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 +2 -2
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +173 -171
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +266 -263
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +440 -438
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1945 -1266
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
- package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +15 -12
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +4 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
- package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
- package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
- package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
- package/dist/features/activities.js +414 -501
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +170 -169
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- 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 +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +73 -71
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +278 -275
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +918 -825
- 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 +1115 -1122
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +202 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +25 -25
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +33 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +397 -396
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
- package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
- package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +1 -0
- package/dist/lib/field-affordance-recipes.d.ts +6 -1
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +9 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
- package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/page-B5dTH9gE.js +224 -0
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
- package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
- package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
- package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
- package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/table-CrcLN9Io.js +1458 -0
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/theme.css +3 -3
- package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
- package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +19 -20
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +51 -8
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/public-api.json +847 -447
- package/docs/consumer-skill/references/review.md +25 -5
- package/docs/consumer-skill/references/theming.md +8 -4
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +29 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +10 -2
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,124 +1,91 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { r } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { t as a } from "./
|
|
6
|
-
import { t as o } from "./
|
|
7
|
-
import { s } from "./typography-
|
|
8
|
-
import { t as c } from "./
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { cva as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
function O({
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
import { r as e, s as t, v as n } from "./ui-provider-1D_NSYzO.js";
|
|
3
|
+
import { useStrings as r } from "./lib/strings.js";
|
|
4
|
+
import { t as i } from "./utils-l5LpDw2z.js";
|
|
5
|
+
import { t as a } from "./affordance-geometry.generated-B5iu-Mkr.js";
|
|
6
|
+
import { t as o } from "./separator-CYHnjsAb.js";
|
|
7
|
+
import { s } from "./typography-DTRkE9zL.js";
|
|
8
|
+
import { t as c } from "./focus-recipes-B653VaLq.js";
|
|
9
|
+
import { i as l, n as u, t as d } from "./tooltip-CsfgrfS7.js";
|
|
10
|
+
import { t as f } from "./button-QYwiyhD2.js";
|
|
11
|
+
import * as p from "react";
|
|
12
|
+
import { forwardRef as m, useCallback as h, useEffect as g, useLayoutEffect as _, useRef as v, useState as y } from "react";
|
|
13
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
14
|
+
import { Loader2 as C } from "lucide-react";
|
|
15
|
+
import { mergeProps as w } from "@base-ui/react/merge-props";
|
|
16
|
+
import { useRender as T } from "@base-ui/react/use-render";
|
|
17
|
+
import { cva as E } from "class-variance-authority";
|
|
18
|
+
//#region src/components/ui/button-group.tsx
|
|
19
|
+
var D = ({ orientation: e = "horizontal" } = {}) => e === "vertical" ? "button-group-vertical" : "button-group-horizontal";
|
|
20
|
+
function O({ className: e, orientation: t = "horizontal", ...n }) {
|
|
21
|
+
return /* @__PURE__ */ x("div", {
|
|
22
|
+
role: "group",
|
|
23
|
+
"data-slot": "button-group",
|
|
24
|
+
"data-orientation": t,
|
|
25
|
+
className: i("button-group--primitive", e),
|
|
24
26
|
...n
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
|
-
function k({
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
function A({ asChild: e = !1, render: t, children: n, ...r }) {
|
|
34
|
-
let i = e ? /* @__PURE__ */ C(u, {}) : void 0, a = typeof t == "function" ? ((e, n) => {
|
|
35
|
-
let { nativeButton: r, ...i } = e;
|
|
36
|
-
return t(i, n);
|
|
37
|
-
}) : t;
|
|
38
|
-
return /* @__PURE__ */ C(D.Trigger, {
|
|
39
|
-
"data-slot": "tooltip-trigger",
|
|
40
|
-
render: i ?? a,
|
|
41
|
-
...r,
|
|
42
|
-
children: n
|
|
29
|
+
function k({ className: e, render: t, ...n }) {
|
|
30
|
+
return T({
|
|
31
|
+
defaultTagName: "div",
|
|
32
|
+
props: w({ className: i("button-group-text--primitive", e) }, n),
|
|
33
|
+
render: t,
|
|
34
|
+
state: { slot: "button-group-text" }
|
|
43
35
|
});
|
|
44
36
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
align: o,
|
|
52
|
-
alignOffset: s,
|
|
53
|
-
side: n,
|
|
54
|
-
sideOffset: i,
|
|
55
|
-
className: "isolate z-50",
|
|
56
|
-
children: /* @__PURE__ */ w(D.Popup, {
|
|
57
|
-
"data-slot": "tooltip-content",
|
|
58
|
-
className: a(l.popup, "rounded-radius px-space-md py-space-xs text-xs bg-inverse-background text-inverse-foreground z-50 w-fit max-w-xs origin-(--transform-origin)", e),
|
|
59
|
-
...f,
|
|
60
|
-
children: [d, /* @__PURE__ */ C(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" })]
|
|
61
|
-
})
|
|
62
|
-
})
|
|
37
|
+
function A({ className: e, orientation: t = "vertical", ...n }) {
|
|
38
|
+
return /* @__PURE__ */ x(o, {
|
|
39
|
+
"data-slot": "button-group-separator",
|
|
40
|
+
orientation: t,
|
|
41
|
+
className: i("button-group-separator--primitive", e),
|
|
42
|
+
...n
|
|
63
43
|
});
|
|
64
44
|
}
|
|
65
45
|
//#endregion
|
|
66
|
-
//#region src/components/base/
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
46
|
+
//#region src/components/base/buttons/button-group.recipes.ts
|
|
47
|
+
var j = {
|
|
48
|
+
root: "inline-flex items-stretch rounded-inner 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)]:border-s-0 [&[data-orientation=vertical]>:not(:last-child)]:rounded-b-none [&[data-orientation=vertical]>:not(:first-child)]:rounded-t-none [&[data-orientation=vertical]>:not(:first-child)]:border-t-0",
|
|
49
|
+
text: "inline-flex items-center rounded-inner px-control-sm py-0 bg-muted border border-input text-sm text-muted-foreground",
|
|
50
|
+
separator: "bg-border w-px self-stretch"
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/base/buttons/button-group.tsx
|
|
54
|
+
function M({ className: e, ...t }) {
|
|
55
|
+
return /* @__PURE__ */ x(O, {
|
|
56
|
+
className: i("button-group--component", j.root, e),
|
|
57
|
+
...t
|
|
78
58
|
});
|
|
79
|
-
return t ? a : /* @__PURE__ */ C(O, { children: a });
|
|
80
59
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
83
|
-
value: !0,
|
|
84
|
-
children: /* @__PURE__ */ C(O, { ...e })
|
|
85
|
-
});
|
|
60
|
+
function N(e) {
|
|
61
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
86
62
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
63
|
+
function P({ children: e, className: t, ...n }) {
|
|
64
|
+
return /* @__PURE__ */ x(k, {
|
|
65
|
+
className: i("button-group-text--component", j.text, t),
|
|
66
|
+
...n,
|
|
67
|
+
children: N(e) ? /* @__PURE__ */ x(s, {
|
|
68
|
+
tag: "span",
|
|
69
|
+
size: "inherit",
|
|
70
|
+
weight: "medium",
|
|
71
|
+
lineHeight: "tight",
|
|
72
|
+
className: "text-inherit",
|
|
73
|
+
children: e
|
|
74
|
+
}) : e
|
|
93
75
|
});
|
|
94
76
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}, [i, r?.setId]);
|
|
100
|
-
let o = typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ C(s, {
|
|
101
|
-
tag: "span",
|
|
102
|
-
size: "inherit",
|
|
103
|
-
lineHeight: "snug",
|
|
104
|
-
className: "tooltip-content--text text-inherit",
|
|
105
|
-
children: e
|
|
106
|
-
}) : e;
|
|
107
|
-
return /* @__PURE__ */ C(j, {
|
|
108
|
-
id: i,
|
|
109
|
-
role: "tooltip",
|
|
110
|
-
className: a("tooltip-content--component max-w-xs rounded-radius px-space-md py-space-xs text-xs leading-snug", t),
|
|
111
|
-
...n,
|
|
112
|
-
children: o
|
|
77
|
+
function F({ className: e, ...t }) {
|
|
78
|
+
return /* @__PURE__ */ x(A, {
|
|
79
|
+
className: i("button-group-separator--component", j.separator, e),
|
|
80
|
+
...t
|
|
113
81
|
});
|
|
114
82
|
}
|
|
115
|
-
P.displayName = "Tooltip", F.displayName = "TooltipProvider", I.displayName = "TooltipTrigger", L.displayName = "TooltipContent";
|
|
116
83
|
//#endregion
|
|
117
84
|
//#region src/components/base/buttons/button.recipes.ts
|
|
118
|
-
var
|
|
85
|
+
var I = {
|
|
119
86
|
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",
|
|
120
|
-
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",
|
|
121
|
-
secondaryInteractive: "[&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-
|
|
87
|
+
neutralInteractive: "hover:text-accent-foreground [&: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",
|
|
88
|
+
secondaryInteractive: "hover:text-accent-foreground [&: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",
|
|
122
89
|
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",
|
|
123
90
|
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",
|
|
124
91
|
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",
|
|
@@ -127,7 +94,7 @@ var R = {
|
|
|
127
94
|
isLoading: "cursor-wait",
|
|
128
95
|
icon: "base-button-icon pointer-events-none shrink-0",
|
|
129
96
|
spinner: "animate-spin"
|
|
130
|
-
},
|
|
97
|
+
}, L = E(`box-border inline-flex max-w-full shrink-0 items-center justify-center gap-space-sm [&_svg:not([class*=size-])]:size-icon [&_svg]:shrink-0 text-center [overflow-wrap:break-word] rounded-inner border font-sans font-medium no-underline outline-none transition-[background-color,border-color,color,filter,box-shadow] ${c.frame} disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50`, {
|
|
131
98
|
variants: {
|
|
132
99
|
tone: {
|
|
133
100
|
primary: "",
|
|
@@ -139,14 +106,14 @@ var R = {
|
|
|
139
106
|
info: ""
|
|
140
107
|
},
|
|
141
108
|
buttonStyle: {
|
|
142
|
-
solid: `border-transparent ${
|
|
109
|
+
solid: `border-transparent ${I.solidInteractive}`,
|
|
143
110
|
outline: "border-input bg-transparent",
|
|
144
111
|
ghost: "border-transparent bg-transparent"
|
|
145
112
|
},
|
|
146
113
|
size: {
|
|
147
|
-
sm: `px-control-sm ${
|
|
148
|
-
md: `px-control ${
|
|
149
|
-
lg: `px-control ${
|
|
114
|
+
sm: `px-control-sm ${a.buttonBlockPadding.sm} text-sm leading-tight`,
|
|
115
|
+
md: `px-control ${a.buttonBlockPadding.md} text-sm leading-tight`,
|
|
116
|
+
lg: `px-control ${a.buttonBlockPadding.lg} text-sm leading-tight`
|
|
150
117
|
},
|
|
151
118
|
iconOnly: {
|
|
152
119
|
true: "px-0 py-0",
|
|
@@ -165,37 +132,37 @@ var R = {
|
|
|
165
132
|
{
|
|
166
133
|
tone: "info",
|
|
167
134
|
buttonStyle: ["outline", "ghost"],
|
|
168
|
-
class:
|
|
135
|
+
class: I.infoInteractive
|
|
169
136
|
},
|
|
170
137
|
{
|
|
171
138
|
tone: "warning",
|
|
172
139
|
buttonStyle: ["outline", "ghost"],
|
|
173
|
-
class:
|
|
140
|
+
class: I.warningInteractive
|
|
174
141
|
},
|
|
175
142
|
{
|
|
176
143
|
tone: "success",
|
|
177
144
|
buttonStyle: ["outline", "ghost"],
|
|
178
|
-
class:
|
|
145
|
+
class: I.successInteractive
|
|
179
146
|
},
|
|
180
147
|
{
|
|
181
148
|
tone: "destructive",
|
|
182
149
|
buttonStyle: ["outline", "ghost"],
|
|
183
|
-
class:
|
|
150
|
+
class: I.destructiveInteractive
|
|
184
151
|
},
|
|
185
152
|
{
|
|
186
153
|
tone: "secondary",
|
|
187
154
|
buttonStyle: ["outline", "ghost"],
|
|
188
|
-
class:
|
|
155
|
+
class: I.secondaryInteractive
|
|
189
156
|
},
|
|
190
157
|
{
|
|
191
158
|
tone: "neutral",
|
|
192
159
|
buttonStyle: ["outline", "ghost"],
|
|
193
|
-
class:
|
|
160
|
+
class: I.neutralInteractive
|
|
194
161
|
},
|
|
195
162
|
{
|
|
196
163
|
tone: "primary",
|
|
197
164
|
buttonStyle: ["outline", "ghost"],
|
|
198
|
-
class:
|
|
165
|
+
class: I.primaryInteractive
|
|
199
166
|
},
|
|
200
167
|
{
|
|
201
168
|
tone: "primary",
|
|
@@ -220,7 +187,7 @@ var R = {
|
|
|
220
187
|
{
|
|
221
188
|
tone: "neutral",
|
|
222
189
|
buttonStyle: "outline",
|
|
223
|
-
class: "border-
|
|
190
|
+
class: "border-input text-foreground"
|
|
224
191
|
},
|
|
225
192
|
{
|
|
226
193
|
tone: "neutral",
|
|
@@ -235,7 +202,7 @@ var R = {
|
|
|
235
202
|
{
|
|
236
203
|
tone: "secondary",
|
|
237
204
|
buttonStyle: "outline",
|
|
238
|
-
class: "border-
|
|
205
|
+
class: "border-input text-secondary-foreground"
|
|
239
206
|
},
|
|
240
207
|
{
|
|
241
208
|
tone: "secondary",
|
|
@@ -344,8 +311,8 @@ var R = {
|
|
|
344
311
|
});
|
|
345
312
|
//#endregion
|
|
346
313
|
//#region src/components/base/buttons/use-pending-button-focus.ts
|
|
347
|
-
function
|
|
348
|
-
let n =
|
|
314
|
+
function R(e, t) {
|
|
315
|
+
let n = v(null), r = v(!1), i = v(!1), a = v(!1), o = h((e) => {
|
|
349
316
|
n.current = e;
|
|
350
317
|
let a = () => {
|
|
351
318
|
r.current = !0;
|
|
@@ -358,7 +325,7 @@ function B(e, t) {
|
|
|
358
325
|
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);
|
|
359
326
|
};
|
|
360
327
|
}, [t]);
|
|
361
|
-
return
|
|
328
|
+
return _(() => {
|
|
362
329
|
let t = n.current, o = i.current;
|
|
363
330
|
if (i.current = e, !t) return;
|
|
364
331
|
let s = t.ownerDocument;
|
|
@@ -383,18 +350,18 @@ function B(e, t) {
|
|
|
383
350
|
}
|
|
384
351
|
//#endregion
|
|
385
352
|
//#region src/components/base/buttons/base-button.tsx
|
|
386
|
-
function
|
|
387
|
-
let l =
|
|
353
|
+
function z({ tone: r, buttonStyle: i, size: a, iconOnly: o = !1, fullWidth: s = !1, truncate: c = !1 }) {
|
|
354
|
+
let l = e(), { defaultScale: u } = t(), d = {
|
|
388
355
|
tone: r ?? l.defaultTone,
|
|
389
356
|
buttonStyle: i ?? (r === void 0 ? l.defaultButtonStyle : "solid"),
|
|
390
|
-
size:
|
|
357
|
+
size: n(a, u),
|
|
391
358
|
iconOnly: o,
|
|
392
359
|
fullWidth: s,
|
|
393
360
|
truncate: c
|
|
394
361
|
};
|
|
395
362
|
return {
|
|
396
363
|
...d,
|
|
397
|
-
classes:
|
|
364
|
+
classes: L(d),
|
|
398
365
|
attributes: {
|
|
399
366
|
"data-slot": "button",
|
|
400
367
|
"data-tone": d.tone,
|
|
@@ -406,53 +373,53 @@ function V({ tone: r, buttonStyle: i, size: a, iconOnly: o = !1, fullWidth: s =
|
|
|
406
373
|
}
|
|
407
374
|
};
|
|
408
375
|
}
|
|
409
|
-
function
|
|
410
|
-
let i = e && /* @__PURE__ */
|
|
376
|
+
function B({ icon: e, iconPosition: t = "left", truncate: n = !1, children: r }) {
|
|
377
|
+
let i = e && /* @__PURE__ */ x(e, {
|
|
411
378
|
className: "size-icon shrink-0",
|
|
412
379
|
"aria-hidden": "true"
|
|
413
380
|
});
|
|
414
|
-
return /* @__PURE__ */
|
|
381
|
+
return /* @__PURE__ */ S(b, { children: [
|
|
415
382
|
t === "left" && i,
|
|
416
|
-
n && (typeof r == "string" || typeof r == "number") ? /* @__PURE__ */
|
|
383
|
+
n && (typeof r == "string" || typeof r == "number") ? /* @__PURE__ */ x("span", {
|
|
417
384
|
className: "min-w-0 truncate",
|
|
418
385
|
children: r
|
|
419
386
|
}) : r,
|
|
420
387
|
t === "right" && i
|
|
421
388
|
] });
|
|
422
389
|
}
|
|
423
|
-
var
|
|
424
|
-
let m =
|
|
390
|
+
var V = m(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: a, truncate: o, icon: s, iconPosition: c, className: l, children: u, ...d }, p) {
|
|
391
|
+
let m = z({
|
|
425
392
|
tone: e,
|
|
426
393
|
buttonStyle: t,
|
|
427
394
|
size: n,
|
|
428
395
|
iconOnly: r,
|
|
429
|
-
fullWidth:
|
|
396
|
+
fullWidth: a,
|
|
430
397
|
truncate: o,
|
|
431
398
|
children: u
|
|
432
|
-
}), h =
|
|
433
|
-
return /* @__PURE__ */
|
|
434
|
-
...
|
|
399
|
+
}), h = R(d["aria-busy"] === !0 || d["aria-busy"] === "true", p);
|
|
400
|
+
return /* @__PURE__ */ x(f, {
|
|
401
|
+
...d,
|
|
435
402
|
...m.attributes,
|
|
436
403
|
ref: h,
|
|
437
|
-
className: (e) =>
|
|
438
|
-
children: /* @__PURE__ */
|
|
404
|
+
className: (e) => i("base-button--component", m.classes, typeof l == "function" ? l(e) : l),
|
|
405
|
+
children: /* @__PURE__ */ x(B, {
|
|
439
406
|
icon: s,
|
|
440
407
|
iconPosition: c,
|
|
441
408
|
truncate: o,
|
|
442
409
|
children: u
|
|
443
410
|
})
|
|
444
411
|
});
|
|
445
|
-
}),
|
|
446
|
-
let v =
|
|
412
|
+
}), H = m(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: a, truncate: o, icon: s, iconPosition: c, className: l, children: u, disabled: d = !1, tabIndex: f, onClick: p, rel: m, target: h, ...g }, _) {
|
|
413
|
+
let v = z({
|
|
447
414
|
tone: e,
|
|
448
415
|
buttonStyle: t,
|
|
449
416
|
size: n,
|
|
450
417
|
iconOnly: r,
|
|
451
|
-
fullWidth:
|
|
418
|
+
fullWidth: a,
|
|
452
419
|
truncate: o,
|
|
453
420
|
children: u
|
|
454
421
|
}), y = new Set(m?.split(/\s+/).filter(Boolean));
|
|
455
|
-
return h?.toLowerCase() === "_blank" && (y.size || y.add("noreferrer"), y.add("noopener")), /* @__PURE__ */
|
|
422
|
+
return h?.toLowerCase() === "_blank" && (y.size || y.add("noreferrer"), y.add("noopener")), /* @__PURE__ */ x("a", {
|
|
456
423
|
...g,
|
|
457
424
|
...v.attributes,
|
|
458
425
|
ref: _,
|
|
@@ -460,7 +427,7 @@ var U = m(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: i
|
|
|
460
427
|
rel: y.size ? [...y].join(" ") : void 0,
|
|
461
428
|
"aria-disabled": d || g["aria-disabled"] || void 0,
|
|
462
429
|
tabIndex: d ? -1 : f,
|
|
463
|
-
className:
|
|
430
|
+
className: i("base-button--component", v.classes, l),
|
|
464
431
|
onClick: (e) => {
|
|
465
432
|
if (d) {
|
|
466
433
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -468,24 +435,24 @@ var U = m(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: i
|
|
|
468
435
|
}
|
|
469
436
|
p?.(e);
|
|
470
437
|
},
|
|
471
|
-
children: /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ x(B, {
|
|
472
439
|
icon: s,
|
|
473
440
|
iconPosition: c,
|
|
474
441
|
truncate: o,
|
|
475
442
|
children: u
|
|
476
443
|
})
|
|
477
444
|
});
|
|
478
|
-
}),
|
|
445
|
+
}), U = {
|
|
479
446
|
loading: "Loading...",
|
|
480
447
|
completed: "Completed"
|
|
481
448
|
};
|
|
482
|
-
function
|
|
483
|
-
let
|
|
484
|
-
return
|
|
449
|
+
function W({ loading: e = !1, handlesLoading: t, strings: n }) {
|
|
450
|
+
let i = r(U, n), [a, o] = y(e), [, s] = y(!1);
|
|
451
|
+
return g(() => {
|
|
485
452
|
e && o(!0);
|
|
486
|
-
}, [e]),
|
|
453
|
+
}, [e]), g(() => {
|
|
487
454
|
t && e && o(!0);
|
|
488
|
-
}, [e, t]),
|
|
455
|
+
}, [e, t]), g(() => {
|
|
489
456
|
let t;
|
|
490
457
|
return !e && a && (s(!0), t = setTimeout(() => {
|
|
491
458
|
o(!1), s(!1);
|
|
@@ -494,181 +461,201 @@ function K({ loading: e = !1, handlesLoading: t, strings: n }) {
|
|
|
494
461
|
};
|
|
495
462
|
}, [e, a]), {
|
|
496
463
|
isLoading: a,
|
|
497
|
-
strings:
|
|
464
|
+
strings: i
|
|
498
465
|
};
|
|
499
466
|
}
|
|
500
|
-
function
|
|
467
|
+
function G({ isLoading: e, loadingText: t, icon: n, iconPosition: r = "left", size: a, truncate: o = !1, children: c }) {
|
|
501
468
|
let l = e ? t : c, u = typeof l == "string" || typeof l == "number" || typeof l == "bigint";
|
|
502
|
-
return /* @__PURE__ */
|
|
503
|
-
!!e && /* @__PURE__ */ C
|
|
504
|
-
className:
|
|
469
|
+
return /* @__PURE__ */ S(b, { children: [
|
|
470
|
+
!!e && /* @__PURE__ */ x(C, {
|
|
471
|
+
className: i(I.icon, I.spinner),
|
|
505
472
|
"aria-hidden": "true"
|
|
506
473
|
}),
|
|
507
|
-
!!n && r === "left" && !e && /* @__PURE__ */
|
|
508
|
-
className:
|
|
474
|
+
!!n && r === "left" && !e && /* @__PURE__ */ x(n, {
|
|
475
|
+
className: I.icon,
|
|
509
476
|
"aria-hidden": "true"
|
|
510
477
|
}),
|
|
511
|
-
u ? /* @__PURE__ */
|
|
478
|
+
u ? /* @__PURE__ */ x(s, {
|
|
512
479
|
tag: "span",
|
|
513
480
|
size: "inherit",
|
|
514
481
|
weight: "medium",
|
|
515
482
|
lineHeight: "tight",
|
|
516
|
-
className:
|
|
483
|
+
className: i("text-inherit", o && "min-w-0 truncate"),
|
|
517
484
|
children: l
|
|
518
485
|
}) : l,
|
|
519
|
-
!!n && r === "right" && !e && /* @__PURE__ */
|
|
520
|
-
className:
|
|
486
|
+
!!n && r === "right" && !e && /* @__PURE__ */ x(n, {
|
|
487
|
+
className: I.icon,
|
|
521
488
|
"aria-hidden": "true"
|
|
522
489
|
})
|
|
523
490
|
] });
|
|
524
491
|
}
|
|
525
|
-
var
|
|
526
|
-
let { isLoading: d, strings: f } =
|
|
492
|
+
var K = p.forwardRef(({ loading: e = !1, handlesLoading: t, strings: n, icon: r, iconPosition: a = "left", children: o, disabled: s, className: c, ...l }, u) => {
|
|
493
|
+
let { isLoading: d, strings: f } = W({
|
|
527
494
|
loading: e,
|
|
528
495
|
handlesLoading: t,
|
|
529
496
|
strings: n
|
|
530
497
|
});
|
|
531
|
-
return /* @__PURE__ */
|
|
498
|
+
return /* @__PURE__ */ x(V, {
|
|
532
499
|
...l,
|
|
533
500
|
ref: u,
|
|
534
501
|
disabled: s || d,
|
|
535
502
|
"aria-busy": d || void 0,
|
|
536
|
-
className:
|
|
537
|
-
children: /* @__PURE__ */
|
|
503
|
+
className: i("loader-button--component", d && I.isLoading, c),
|
|
504
|
+
children: /* @__PURE__ */ x(G, {
|
|
538
505
|
isLoading: d,
|
|
539
506
|
loadingText: f.loading,
|
|
540
507
|
icon: r,
|
|
541
|
-
iconPosition:
|
|
508
|
+
iconPosition: a,
|
|
542
509
|
size: l.size,
|
|
543
510
|
truncate: l.truncate,
|
|
544
511
|
children: o
|
|
545
512
|
})
|
|
546
513
|
});
|
|
547
514
|
});
|
|
548
|
-
|
|
515
|
+
K.displayName = "LoaderButton";
|
|
549
516
|
//#endregion
|
|
550
517
|
//#region src/components/base/buttons/tooltip-button.tsx
|
|
551
|
-
var
|
|
552
|
-
let o =
|
|
553
|
-
return /* @__PURE__ */
|
|
518
|
+
var q = p.forwardRef(({ withTooltip: e, children: t, ...n }, r) => /* @__PURE__ */ S(d, { children: [/* @__PURE__ */ x(l, { render: (a) => {
|
|
519
|
+
let o = w(n, a);
|
|
520
|
+
return /* @__PURE__ */ x(V, {
|
|
554
521
|
...o,
|
|
555
522
|
"aria-label": n["aria-label"] ?? e,
|
|
556
523
|
ref: r,
|
|
557
|
-
className:
|
|
524
|
+
className: i("tooltip-button--component", o.className),
|
|
558
525
|
children: t
|
|
559
526
|
});
|
|
560
|
-
} }), /* @__PURE__ */
|
|
527
|
+
} }), /* @__PURE__ */ x(u, { children: /* @__PURE__ */ x(s, {
|
|
561
528
|
tag: "span",
|
|
562
529
|
size: "inherit",
|
|
563
530
|
className: "text-inherit",
|
|
564
531
|
children: e
|
|
565
532
|
}) })] }));
|
|
566
|
-
|
|
533
|
+
q.displayName = "TooltipButton";
|
|
567
534
|
//#endregion
|
|
568
535
|
//#region src/components/base/buttons/button.tsx
|
|
569
|
-
function
|
|
536
|
+
function J({ loading: e, handlesLoading: t, strings: n }) {
|
|
570
537
|
return e === !0 || !!t || n !== void 0;
|
|
571
538
|
}
|
|
572
|
-
var
|
|
573
|
-
let f =
|
|
539
|
+
var Y = p.forwardRef(({ loading: e, handlesLoading: t, strings: n, icon: r, iconPosition: a = "left", children: o, disabled: s, size: c, className: l, ...u }, d) => {
|
|
540
|
+
let f = W({
|
|
574
541
|
loading: e,
|
|
575
542
|
handlesLoading: t,
|
|
576
543
|
strings: n
|
|
577
544
|
});
|
|
578
|
-
return /* @__PURE__ */
|
|
545
|
+
return /* @__PURE__ */ x(H, {
|
|
579
546
|
...u,
|
|
580
547
|
ref: d,
|
|
581
548
|
size: c,
|
|
582
549
|
disabled: s || f.isLoading,
|
|
583
550
|
"aria-busy": f.isLoading || void 0,
|
|
584
|
-
className:
|
|
585
|
-
children: /* @__PURE__ */
|
|
551
|
+
className: i("loader-button--component", l),
|
|
552
|
+
children: /* @__PURE__ */ x(G, {
|
|
586
553
|
isLoading: f.isLoading,
|
|
587
554
|
loadingText: f.strings.loading,
|
|
588
555
|
icon: r,
|
|
589
|
-
iconPosition:
|
|
556
|
+
iconPosition: a,
|
|
590
557
|
size: c,
|
|
591
558
|
truncate: u.truncate,
|
|
592
559
|
children: o
|
|
593
560
|
})
|
|
594
561
|
});
|
|
595
562
|
});
|
|
596
|
-
|
|
597
|
-
var
|
|
598
|
-
if (
|
|
563
|
+
Y.displayName = "LoadingButtonLink";
|
|
564
|
+
var X = p.forwardRef(({ withTooltip: e, ...t }, n) => {
|
|
565
|
+
if (J(t)) return /* @__PURE__ */ x(Y, {
|
|
599
566
|
ref: n,
|
|
600
567
|
...t
|
|
601
568
|
});
|
|
602
569
|
let { loading: r, handlesLoading: i, strings: a, ...o } = t;
|
|
603
|
-
return /* @__PURE__ */
|
|
570
|
+
return /* @__PURE__ */ x(H, {
|
|
604
571
|
ref: n,
|
|
605
572
|
...o
|
|
606
573
|
});
|
|
607
574
|
});
|
|
608
|
-
|
|
609
|
-
function
|
|
575
|
+
X.displayName = "ButtonLink";
|
|
576
|
+
function Z(e) {
|
|
610
577
|
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;
|
|
611
578
|
return p;
|
|
612
579
|
}
|
|
613
|
-
var
|
|
580
|
+
var Q = p.forwardRef(({ href: e, withTooltip: t, loading: n, handlesLoading: r, strings: a, ...o }, c) => {
|
|
614
581
|
if (e !== void 0) {
|
|
615
|
-
let
|
|
616
|
-
...
|
|
582
|
+
let f = Z(o), p = /* @__PURE__ */ x(X, {
|
|
583
|
+
...f,
|
|
617
584
|
ref: c,
|
|
618
585
|
href: e,
|
|
619
586
|
loading: n,
|
|
620
587
|
handlesLoading: r,
|
|
621
|
-
strings:
|
|
588
|
+
strings: a,
|
|
622
589
|
"aria-label": o["aria-label"] ?? t,
|
|
623
|
-
className:
|
|
590
|
+
className: i("button--component", f.className)
|
|
624
591
|
});
|
|
625
|
-
return t ? /* @__PURE__ */
|
|
592
|
+
return t ? /* @__PURE__ */ S(d, { children: [/* @__PURE__ */ x(l, { render: p }), /* @__PURE__ */ x(u, { children: /* @__PURE__ */ x(s, {
|
|
626
593
|
tag: "span",
|
|
627
594
|
size: "inherit",
|
|
628
595
|
className: "text-inherit",
|
|
629
596
|
children: t
|
|
630
|
-
}) })] }) :
|
|
597
|
+
}) })] }) : p;
|
|
631
598
|
}
|
|
632
|
-
let { download:
|
|
633
|
-
...
|
|
634
|
-
className:
|
|
599
|
+
let { download: f, hrefLang: p, media: m, ping: h, referrerPolicy: g, rel: _, target: v, ...y } = o, b = {
|
|
600
|
+
...y,
|
|
601
|
+
className: i("button--component", y.className)
|
|
635
602
|
};
|
|
636
|
-
return
|
|
603
|
+
return J({
|
|
637
604
|
loading: n,
|
|
638
605
|
handlesLoading: r,
|
|
639
|
-
strings:
|
|
640
|
-
}) ? t ? /* @__PURE__ */
|
|
641
|
-
...
|
|
606
|
+
strings: a
|
|
607
|
+
}) ? t ? /* @__PURE__ */ S(d, { children: [/* @__PURE__ */ x(l, { render: (e) => /* @__PURE__ */ x(K, {
|
|
608
|
+
...b,
|
|
642
609
|
...e,
|
|
643
610
|
ref: c,
|
|
644
611
|
loading: n,
|
|
645
612
|
handlesLoading: r,
|
|
646
|
-
strings:
|
|
647
|
-
"aria-label":
|
|
648
|
-
className:
|
|
649
|
-
children:
|
|
650
|
-
}) }), /* @__PURE__ */
|
|
613
|
+
strings: a,
|
|
614
|
+
"aria-label": y["aria-label"] ?? t,
|
|
615
|
+
className: i(e.className, b.className),
|
|
616
|
+
children: y.children
|
|
617
|
+
}) }), /* @__PURE__ */ x(u, { children: /* @__PURE__ */ x(s, {
|
|
651
618
|
tag: "span",
|
|
652
619
|
size: "inherit",
|
|
653
620
|
className: "text-inherit",
|
|
654
621
|
children: t
|
|
655
|
-
}) })] }) : /* @__PURE__ */
|
|
656
|
-
...
|
|
622
|
+
}) })] }) : /* @__PURE__ */ x(K, {
|
|
623
|
+
...b,
|
|
657
624
|
ref: c,
|
|
658
625
|
loading: n,
|
|
659
626
|
handlesLoading: r,
|
|
660
|
-
strings:
|
|
661
|
-
}) : t ? /* @__PURE__ */
|
|
662
|
-
...
|
|
627
|
+
strings: a
|
|
628
|
+
}) : t ? /* @__PURE__ */ x(q, {
|
|
629
|
+
...b,
|
|
663
630
|
ref: c,
|
|
664
631
|
withTooltip: t
|
|
665
|
-
}) : /* @__PURE__ */
|
|
666
|
-
...
|
|
632
|
+
}) : /* @__PURE__ */ x(V, {
|
|
633
|
+
...b,
|
|
667
634
|
ref: c
|
|
668
635
|
});
|
|
669
636
|
});
|
|
670
|
-
|
|
637
|
+
Q.displayName = "Button";
|
|
638
|
+
//#endregion
|
|
639
|
+
//#region src/components/base/buttons/text-button.tsx
|
|
640
|
+
var ee = {
|
|
641
|
+
sm: "text-pxs leading-none h-auto min-h-0 px-0 py-0",
|
|
642
|
+
md: "text-sm leading-none h-auto min-h-0 px-0 py-0",
|
|
643
|
+
lg: "text-sm leading-none h-auto min-h-0 px-0 py-0"
|
|
644
|
+
}, $ = p.forwardRef(({ className: e, type: r = "button", size: a, disabled: o, ...s }, l) => {
|
|
645
|
+
let { defaultScale: u } = t(), d = n(a, u);
|
|
646
|
+
return /* @__PURE__ */ x(V, {
|
|
647
|
+
ref: l,
|
|
648
|
+
type: r,
|
|
649
|
+
tone: "primary",
|
|
650
|
+
buttonStyle: "ghost",
|
|
651
|
+
size: d,
|
|
652
|
+
disabled: o,
|
|
653
|
+
className: i("text-button--component", "hover:bg-transparent dark:hover:bg-transparent", "inline-flex items-center justify-center underline decoration-border underline-offset-4 transition-colors hover:decoration-current", `text-primary-accent focus-visible:border-transparent ${c.text}`, "disabled:pointer-events-none disabled:opacity-50", ee[d], e),
|
|
654
|
+
...s
|
|
655
|
+
});
|
|
656
|
+
});
|
|
657
|
+
$.displayName = "TextButton";
|
|
671
658
|
//#endregion
|
|
672
|
-
export {
|
|
659
|
+
export { L as a, P as c, H as i, D as l, Q as n, M as o, V as r, F as s, $ as t };
|
|
673
660
|
|
|
674
|
-
//# sourceMappingURL=
|
|
661
|
+
//# sourceMappingURL=buttons-SbIcm1HJ.js.map
|