themelia-react-ui 1.0.2 → 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 +632 -1
- package/README.md +31 -13
- package/dist/accordion-B6a3vVgA.js +207 -0
- 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-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-C_fKpljx.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-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
- 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 +19 -19
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +234 -224
- 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 +81 -76
- 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 +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +175 -174
- 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 +148 -138
- 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 +4 -4
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +264 -253
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +293 -323
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +596 -587
- 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 +2246 -1693
- 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 +82 -91
- 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-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/buttons-SbIcm1HJ.js +661 -0
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
- package/dist/chart-QfrARkXl.js.map +1 -0
- 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-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/combobox-DLl0bfiq.js +867 -0
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
- package/dist/command-kNR20o7x.js.map +1 -0
- package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
- package/dist/comments-BpDuCUUu.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 +27 -5
- 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/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 +6 -6
- 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/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 +2 -2
- 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/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 +24 -3
- 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/datepicker.types.d.ts +13 -3
- package/dist/components/base/display/alert-dialog.d.ts +10 -3
- 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 +8 -5
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- 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-sizing.d.ts +43 -8
- 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/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/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- 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/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 +30 -4
- 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 +10 -5
- 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/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +33 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
- 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/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +4 -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/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/inventory-section/types.d.ts +4 -1
- 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/loyalty-points/types.d.ts +1 -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-status/types.d.ts +4 -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 +14 -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/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/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/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/inline-stat/inline-stat.d.ts +4 -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/global-search-idle-state.d.ts +1 -1
- 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/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/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +62 -19
- 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/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 +11 -3
- 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/partials/cell-renderers.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 +51 -4
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/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 +9 -1
- package/dist/components/typography/label.d.ts +3 -0
- 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/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +24 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +35 -13
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/overlay.recipes.d.ts +6 -2
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-BTSByfmq.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-BgK3bTdo.js +144 -0
- package/dist/date-BgK3bTdo.js.map +1 -0
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/date-pickers-BmzxJl5l.js +174 -0
- package/dist/date-pickers-BmzxJl5l.js.map +1 -0
- package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
- package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
- package/dist/features/activities.js +437 -521
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +174 -172
- 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 +353 -352
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +262 -269
- 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 +914 -824
- 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 +1272 -1311
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +204 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -95
- 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 +193 -189
- 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 +455 -455
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-qNuMBtRH.js +233 -0
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
- 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-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
- 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-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
- package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/form-sizing-By94KzXE.js +130 -0
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
- package/dist/forms-Bzha-Y3B.js.map +1 -0
- package/dist/forms-numeric-C0bvjRPZ.js +906 -0
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-BrlnCwQd.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-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-vxcaNCYC.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-DEmDiTlD.js +265 -0
- 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 +7 -1
- package/dist/lib/field-affordance-recipes.d.ts +41 -1
- package/dist/lib/field-state-recipes.d.ts +9 -6
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
- 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 +48 -6
- package/dist/lib/token-merge.generated.d.ts +17 -14
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/track-recipes.d.ts +1 -1
- 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/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +14 -2
- 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-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-SZUNB1eX.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-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/number-DMhe-Vsk.js +352 -0
- package/dist/number-DMhe-Vsk.js.map +1 -0
- 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-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
- 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-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
- package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/primitives-B-CkiEMU.js +379 -0
- package/dist/primitives-B-CkiEMU.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
- package/dist/progress-rnS8-uAW.js.map +1 -0
- package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-BuJynLgf.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-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
- package/dist/separator-C8DlRGwF.js.map +1 -0
- package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +22 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +23 -6
- 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-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/sidebar-d7Dg80ln.js +511 -0
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
- package/dist/skeleton-Cz890JZF.js.map +1 -0
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
- package/dist/spinner-fa3h1Aif.js.map +1 -0
- package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
- package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.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-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-CIKyLUsy.js +163 -0
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/tabs-DwBJfjxX.js +190 -0
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +16 -12
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
- 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/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
- 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 +2 -2
- package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
- 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-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
- package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
- 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-b8wpz1eX.js +116 -0
- package/dist/value-typography-b8wpz1eX.js.map +1 -0
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +62 -50
- package/docs/consumer-skill/examples/app-layout.tsx +3 -5
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -13
- package/docs/consumer-skill/examples/edit.tsx +2 -2
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +28 -6
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
- 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 +139 -24
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/discovery.md +4 -0
- package/docs/consumer-skill/references/installation.md +33 -1
- package/docs/consumer-skill/references/integration.md +32 -1
- package/docs/consumer-skill/references/public-api.json +1051 -610
- package/docs/consumer-skill/references/review.md +44 -8
- package/docs/consumer-skill/references/theming.md +14 -4
- package/docs/consumer-skill/references/tokens.json +5 -2
- package/docs/consumer-skill/references/workflows.md +30 -9
- package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
- package/docs/consumer-skill/scripts/discovery.mjs +11 -3
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +13 -3
- package/dist/accordion-BRTcsp8J.js +0 -205
- package/dist/accordion-BRTcsp8J.js.map +0 -1
- package/dist/action-menu-Drxw_vJk.js +0 -265
- package/dist/action-menu-Drxw_vJk.js.map +0 -1
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
- package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
- package/dist/attachment-DbjUWsP0.js +0 -244
- package/dist/attachment-DbjUWsP0.js.map +0 -1
- package/dist/auth-CAQcasMV.js.map +0 -1
- package/dist/avatar-Bu2HhitA.js.map +0 -1
- package/dist/badge-CzId1Wlm.js +0 -92
- package/dist/badge-CzId1Wlm.js.map +0 -1
- package/dist/breadcrumbs-BuYz5SDU.js +0 -128
- package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
- package/dist/button-BZDasD04.js +0 -651
- package/dist/button-BZDasD04.js.map +0 -1
- package/dist/button-BZyfTvwm.js.map +0 -1
- package/dist/buttons-D_6KJvEE.js +0 -99
- package/dist/buttons-D_6KJvEE.js.map +0 -1
- package/dist/cards-qGSErLw_.js.map +0 -1
- package/dist/chart-Bsc5BICK.js.map +0 -1
- package/dist/checkbox-BQNDjUCh.js +0 -34
- package/dist/checkbox-BQNDjUCh.js.map +0 -1
- package/dist/choice-inputs-Mk3iWbhr.js +0 -725
- package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
- package/dist/code-block-DzHKRybS.js +0 -183
- package/dist/code-block-DzHKRybS.js.map +0 -1
- package/dist/combobox-BFnbJJp3.js.map +0 -1
- package/dist/combobox-hozNwUcc.js +0 -847
- package/dist/combobox-hozNwUcc.js.map +0 -1
- package/dist/command-BnmSchli.js.map +0 -1
- package/dist/comments-u5L0OGip.js.map +0 -1
- package/dist/containers-DqB-bSYE.js.map +0 -1
- package/dist/data-display-Bihs9Ven.js +0 -1342
- package/dist/data-display-Bihs9Ven.js.map +0 -1
- package/dist/date-DOKhJPu7.js +0 -140
- package/dist/date-DOKhJPu7.js.map +0 -1
- package/dist/date-picker-DzP5HQq7.js +0 -1541
- package/dist/date-picker-DzP5HQq7.js.map +0 -1
- package/dist/date-pickers-BpgGz7S-.js +0 -196
- package/dist/date-pickers-BpgGz7S-.js.map +0 -1
- package/dist/display-CS6Hbk18.js.map +0 -1
- package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
- package/dist/feedback-CJkUAapr.js +0 -233
- package/dist/feedback-CJkUAapr.js.map +0 -1
- package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
- package/dist/field-state-recipes-DQQpiLWC.js +0 -11
- package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
- package/dist/filters-D6FF8L6s.js.map +0 -1
- package/dist/form-sizing-QP8aIRaW.js +0 -103
- package/dist/form-sizing-QP8aIRaW.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B5NCbkSC.js.map +0 -1
- package/dist/forms-numeric-Crrm80Lm.js +0 -867
- package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
- package/dist/header-kxruN3RM.js.map +0 -1
- package/dist/icon-badge-Btc6pQrp.js +0 -53
- package/dist/icon-badge-Btc6pQrp.js.map +0 -1
- package/dist/input-SX9V0AL3.js +0 -255
- package/dist/input-SX9V0AL3.js.map +0 -1
- package/dist/item-DE4YnuJx.js +0 -258
- package/dist/item-DE4YnuJx.js.map +0 -1
- package/dist/media-gallery-DLp3HAz0.js +0 -201
- package/dist/media-gallery-DLp3HAz0.js.map +0 -1
- package/dist/mentions-Cl0Kt_Pd.js +0 -565
- package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
- package/dist/navigation-DnQSNMT0.js +0 -276
- package/dist/navigation-DnQSNMT0.js.map +0 -1
- package/dist/navigation-DyytsLRB.js +0 -265
- package/dist/navigation-DyytsLRB.js.map +0 -1
- package/dist/number-DasMFWEG.js +0 -269
- package/dist/number-DasMFWEG.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-DUbs1KEi.js +0 -1011
- package/dist/overlays-DUbs1KEi.js.map +0 -1
- package/dist/page-hGmT4nWK.js.map +0 -1
- package/dist/page-header-D8nERkn5.js +0 -112
- package/dist/page-header-D8nERkn5.js.map +0 -1
- package/dist/popover-CghIYdQf.js.map +0 -1
- package/dist/primitives-C7ff0QaI.js +0 -337
- package/dist/primitives-C7ff0QaI.js.map +0 -1
- package/dist/progress-BroqrAyV.js.map +0 -1
- package/dist/rich-text-DlxDOtf4.js +0 -32
- package/dist/rich-text-DlxDOtf4.js.map +0 -1
- package/dist/rich-text-editor-BKyG7rWz.js +0 -574
- package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
- package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
- package/dist/rich-text-editor.recipes-B72Nfuze.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/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-D-pIhEKl.js +0 -47
- package/dist/scroll-area-D-pIhEKl.js.map +0 -1
- package/dist/separator-BNIgG3au.js.map +0 -1
- package/dist/settings-DOTOzeZ2.js +0 -161
- package/dist/settings-DOTOzeZ2.js.map +0 -1
- package/dist/sheet-BFhrNehm.js +0 -205
- package/dist/sheet-BFhrNehm.js.map +0 -1
- package/dist/sidebar-CyR4XKwR.js.map +0 -1
- package/dist/sidebar-SvGJ0Zwi.js +0 -506
- package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
- package/dist/skeleton-3F0uhYn3.js.map +0 -1
- package/dist/smart-card-DjGVV2xr.js +0 -584
- package/dist/smart-card-DjGVV2xr.js.map +0 -1
- package/dist/spinner-Cpf7oRkF.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-Dd__PD-w.js +0 -28
- package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
- package/dist/table-CLtJTxoR.js +0 -147
- package/dist/table-CLtJTxoR.js.map +0 -1
- package/dist/table-CcRDZiLP.js.map +0 -1
- package/dist/tabs-BNgu7g0u.js +0 -188
- package/dist/tabs-BNgu7g0u.js.map +0 -1
- package/dist/text-inputs-DsR56TR-.js.map +0 -1
- package/dist/text.styles-Q4sGAIgA.js.map +0 -1
- package/dist/timelines-D1pkt3se.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/tree-BtmYyMZV.js.map +0 -1
- package/dist/typography-BxQgiZyw.js +0 -96
- package/dist/typography-BxQgiZyw.js.map +0 -1
- package/dist/ui-provider-DRPn3qNl.js.map +0 -1
- package/dist/upload-CDbYw1WN.js.map +0 -1
- package/dist/upload-queue-CNd_hH_a.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-BvH9PSmq.js.map +0 -1
- package/dist/value-inputs-D0KCrfVC.js +0 -840
- package/dist/value-inputs-D0KCrfVC.js.map +0 -1
- package/dist/workspace-CcR8r-Nt.js +0 -395
- package/dist/workspace-CcR8r-Nt.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,1011 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { r as e } from "./theme-scope-kStaAer0.js";
|
|
3
|
-
import { useStrings as t } from "./lib/strings.js";
|
|
4
|
-
import { t as n } from "./utils-BvH9PSmq.js";
|
|
5
|
-
import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./sheet-BFhrNehm.js";
|
|
6
|
-
import { a as p } from "./typography-BxQgiZyw.js";
|
|
7
|
-
import { t as m } from "./motion-recipes-B6jKXEcN.js";
|
|
8
|
-
import { t as h } from "./slot-CLF9kLrS.js";
|
|
9
|
-
import { t as g } from "./button-BZDasD04.js";
|
|
10
|
-
import { t as _ } from "./button-BZyfTvwm.js";
|
|
11
|
-
import { t as v } from "./structure-CRdqVawd.js";
|
|
12
|
-
import { h as y, p as ee } from "./smart-card-DjGVV2xr.js";
|
|
13
|
-
import { n as b, t as x } from "./surface-recipes-Dd__PD-w.js";
|
|
14
|
-
import { t as S } from "./overlay.recipes-BxW5FIfK.js";
|
|
15
|
-
import * as C from "react";
|
|
16
|
-
import { isValidElement as te, memo as w, useCallback as T, useLayoutEffect as ne, useMemo as E, useRef as D, useState as O } from "react";
|
|
17
|
-
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
18
|
-
import { AlertCircle as j, AlertTriangle as M, CheckCircle as N, HelpCircle as P, Info as F, X as I, XIcon as L } from "lucide-react";
|
|
19
|
-
import { Dialog as R } from "@base-ui/react/dialog";
|
|
20
|
-
import { AlertDialog as z } from "@base-ui/react/alert-dialog";
|
|
21
|
-
//#region src/components/ui/dialog.tsx
|
|
22
|
-
function B({ ...e }) {
|
|
23
|
-
return /* @__PURE__ */ k(R.Root, {
|
|
24
|
-
"data-slot": "dialog",
|
|
25
|
-
modal: "trap-focus",
|
|
26
|
-
...e
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function V({ asChild: e = !1, ...t }) {
|
|
30
|
-
let n = e ? /* @__PURE__ */ k(h, {}) : void 0;
|
|
31
|
-
return /* @__PURE__ */ k(R.Trigger, {
|
|
32
|
-
"data-slot": "dialog-trigger",
|
|
33
|
-
render: n,
|
|
34
|
-
...t
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function H({ container: t, ...n }) {
|
|
38
|
-
let r = e(t);
|
|
39
|
-
return /* @__PURE__ */ k(R.Portal, {
|
|
40
|
-
container: r,
|
|
41
|
-
"data-slot": "dialog-portal",
|
|
42
|
-
...n
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function re({ ...e }) {
|
|
46
|
-
return /* @__PURE__ */ k(R.Close, {
|
|
47
|
-
"data-slot": "dialog-close",
|
|
48
|
-
...e
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function U({ className: e, ...t }) {
|
|
52
|
-
return /* @__PURE__ */ k(R.Backdrop, {
|
|
53
|
-
"data-slot": "dialog-overlay",
|
|
54
|
-
className: n(S, m.backdrop, "isolate", e),
|
|
55
|
-
...t
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function W({ className: t, container: r, children: i, showCloseButton: a = !0, ...o }) {
|
|
59
|
-
let s = e(r);
|
|
60
|
-
return /* @__PURE__ */ A(H, {
|
|
61
|
-
container: s,
|
|
62
|
-
children: [/* @__PURE__ */ k(U, {}), /* @__PURE__ */ A(R.Popup, {
|
|
63
|
-
"data-slot": "dialog-content",
|
|
64
|
-
className: n(m.dialog, "bg-background ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-space-xl rounded-radius p-surface text-sm ring-1 sm:max-w-md fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none", t),
|
|
65
|
-
...o,
|
|
66
|
-
children: [i, !!a && /* @__PURE__ */ A(R.Close, {
|
|
67
|
-
"data-slot": "dialog-close",
|
|
68
|
-
render: /* @__PURE__ */ k(_, {
|
|
69
|
-
variant: "ghost",
|
|
70
|
-
"data-overlay-close": "",
|
|
71
|
-
className: f.close,
|
|
72
|
-
size: "icon-sm"
|
|
73
|
-
}),
|
|
74
|
-
children: [/* @__PURE__ */ k(L, {}), /* @__PURE__ */ k("span", {
|
|
75
|
-
className: "sr-only",
|
|
76
|
-
children: "Close"
|
|
77
|
-
})]
|
|
78
|
-
})]
|
|
79
|
-
})]
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
function G({ className: e, ...t }) {
|
|
83
|
-
return /* @__PURE__ */ k("div", {
|
|
84
|
-
"data-slot": "dialog-header",
|
|
85
|
-
className: n("flex flex-col", e),
|
|
86
|
-
...t
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
function K({ className: e, showCloseButton: t = !1, children: r, ...i }) {
|
|
90
|
-
return /* @__PURE__ */ A("div", {
|
|
91
|
-
"data-slot": "dialog-footer",
|
|
92
|
-
className: n("flex flex-col-reverse sm:flex-row sm:justify-end", e),
|
|
93
|
-
...i,
|
|
94
|
-
children: [r, !!t && /* @__PURE__ */ k(R.Close, {
|
|
95
|
-
render: /* @__PURE__ */ k(_, { variant: "outline" }),
|
|
96
|
-
children: "Close"
|
|
97
|
-
})]
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function ie({ className: e, asChild: t = !1, ...r }) {
|
|
101
|
-
let i = t ? /* @__PURE__ */ k(h, {}) : void 0;
|
|
102
|
-
return /* @__PURE__ */ k(R.Title, {
|
|
103
|
-
"data-slot": "dialog-title",
|
|
104
|
-
render: i,
|
|
105
|
-
className: n("leading-none font-medium", e),
|
|
106
|
-
...r
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function ae({ className: e, asChild: t = !1, ...r }) {
|
|
110
|
-
let i = t ? /* @__PURE__ */ k(h, {}) : void 0;
|
|
111
|
-
return /* @__PURE__ */ k(R.Description, {
|
|
112
|
-
"data-slot": "dialog-description",
|
|
113
|
-
render: i,
|
|
114
|
-
className: n("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", e),
|
|
115
|
-
...r
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region src/components/base/display/dialog.tsx
|
|
120
|
-
function q(e) {
|
|
121
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
122
|
-
}
|
|
123
|
-
var J = B, Y = C.forwardRef(function({ className: e, ...t }, r) {
|
|
124
|
-
return /* @__PURE__ */ k(V, {
|
|
125
|
-
ref: r,
|
|
126
|
-
className: n("dialog-trigger--component", e),
|
|
127
|
-
...t
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
Y.displayName = "DialogTrigger";
|
|
131
|
-
var X = C.forwardRef(function({ className: e, ...t }, r) {
|
|
132
|
-
return /* @__PURE__ */ k(re, {
|
|
133
|
-
ref: r,
|
|
134
|
-
className: n("dialog-close--component active:translate-y-0!", e),
|
|
135
|
-
...t
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
X.displayName = "DialogClose";
|
|
139
|
-
var oe = C.forwardRef(function({ className: e, ...t }, r) {
|
|
140
|
-
return /* @__PURE__ */ k(W, {
|
|
141
|
-
ref: r,
|
|
142
|
-
className: n("dialog-content--component flex max-h-[min(90vh,48rem)] flex-col gap-0 overflow-hidden rounded-radius bg-background p-0 text-foreground shadow-xl sm:max-w-lg [&_[data-slot=dialog-close]]:active:translate-y-0!", b.modal.shell, e),
|
|
143
|
-
...t
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
oe.displayName = "DialogContent";
|
|
147
|
-
var se = C.forwardRef(function({ className: e, textGap: t = "normal", ...r }, i) {
|
|
148
|
-
return /* @__PURE__ */ k(G, {
|
|
149
|
-
ref: i,
|
|
150
|
-
className: n("dialog-header--component", x.header, f.header, t === "dense" ? "gap-dense" : "gap-normal", e),
|
|
151
|
-
...r
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
se.displayName = "DialogHeader";
|
|
155
|
-
var Z = C.forwardRef(function({ className: e, ...t }, r) {
|
|
156
|
-
return /* @__PURE__ */ k("div", {
|
|
157
|
-
ref: r,
|
|
158
|
-
"data-slot": "dialog-body",
|
|
159
|
-
className: n("dialog-body--component", x.body, e),
|
|
160
|
-
...t
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
Z.displayName = "DialogBody";
|
|
164
|
-
var ce = C.forwardRef(function({ className: e, ...t }, r) {
|
|
165
|
-
return /* @__PURE__ */ k(K, {
|
|
166
|
-
ref: r,
|
|
167
|
-
className: n("dialog-footer--component", x.footer, e),
|
|
168
|
-
...t
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
ce.displayName = "DialogFooter";
|
|
172
|
-
var le = C.forwardRef(function({ children: e, className: t, ...r }, i) {
|
|
173
|
-
return /* @__PURE__ */ k(ie, {
|
|
174
|
-
ref: i,
|
|
175
|
-
className: n("dialog-title--component m-0", t),
|
|
176
|
-
...r,
|
|
177
|
-
children: q(e) ? /* @__PURE__ */ k(p, {
|
|
178
|
-
tag: "span",
|
|
179
|
-
size: "base",
|
|
180
|
-
weight: "semibold",
|
|
181
|
-
lineHeight: "snug",
|
|
182
|
-
className: "dialog-title--text",
|
|
183
|
-
children: e
|
|
184
|
-
}) : e
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
le.displayName = "DialogTitle";
|
|
188
|
-
var ue = C.forwardRef(function({ children: e, className: t, ...r }, i) {
|
|
189
|
-
return /* @__PURE__ */ k(ae, {
|
|
190
|
-
ref: i,
|
|
191
|
-
className: n("dialog-description--component m-0", t),
|
|
192
|
-
...r,
|
|
193
|
-
children: q(e) ? /* @__PURE__ */ k(p, {
|
|
194
|
-
tag: "span",
|
|
195
|
-
type: "secondary",
|
|
196
|
-
lineHeight: "relaxed",
|
|
197
|
-
className: "dialog-description--text",
|
|
198
|
-
children: e
|
|
199
|
-
}) : e
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
ue.displayName = "DialogDescription";
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region src/components/features/overlays/overlays.strings.ts
|
|
205
|
-
var de = {
|
|
206
|
-
confirm: "Confirm",
|
|
207
|
-
cancel: "Cancel",
|
|
208
|
-
close: "Close",
|
|
209
|
-
loading: "Loading...",
|
|
210
|
-
dialogLabel: "Dialog",
|
|
211
|
-
drawerLabel: "Drawer",
|
|
212
|
-
alertDialogLabel: "Confirmation"
|
|
213
|
-
}, fe = {
|
|
214
|
-
confirm: "Continue",
|
|
215
|
-
cancel: "Cancel",
|
|
216
|
-
close: "Close",
|
|
217
|
-
loading: "Loading...",
|
|
218
|
-
dialogLabel: "Dialog",
|
|
219
|
-
drawerLabel: "Drawer",
|
|
220
|
-
alertDialogLabel: "Confirmation"
|
|
221
|
-
};
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region src/components/features/overlays/hooks/use-overlay-actions.ts
|
|
224
|
-
function Q({ closeDialog: e, onConfirm: n, onAsyncConfirm: r, closeOnAsyncComplete: i = !0, confirmTone: a = "primary", loading: o = !1, formId: s, onCancel: c, customStrings: l, emphasis: u = !1, tone: d = "neutral", onError: f }) {
|
|
225
|
-
let p = t(de, l), [m, h] = O(!1), g = D(!1), _ = T(async () => {
|
|
226
|
-
if (!(o || g.current)) {
|
|
227
|
-
if (n) {
|
|
228
|
-
n(), e();
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
if (r) {
|
|
232
|
-
g.current = !0, h(!0);
|
|
233
|
-
try {
|
|
234
|
-
await r(), i && e();
|
|
235
|
-
} catch (e) {
|
|
236
|
-
f?.(e);
|
|
237
|
-
} finally {
|
|
238
|
-
g.current = !1, h(!1);
|
|
239
|
-
}
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
e();
|
|
243
|
-
}
|
|
244
|
-
}, [
|
|
245
|
-
o,
|
|
246
|
-
n,
|
|
247
|
-
r,
|
|
248
|
-
i,
|
|
249
|
-
e,
|
|
250
|
-
f
|
|
251
|
-
]), v = T(() => {
|
|
252
|
-
o || g.current || (c?.(), e());
|
|
253
|
-
}, [
|
|
254
|
-
o,
|
|
255
|
-
c,
|
|
256
|
-
e
|
|
257
|
-
]), y = T(async () => {
|
|
258
|
-
if (!s || o || g.current) return;
|
|
259
|
-
let e = document.getElementById(s);
|
|
260
|
-
e instanceof HTMLFormElement && e.requestSubmit();
|
|
261
|
-
}, [s, o]);
|
|
262
|
-
return {
|
|
263
|
-
strings: p,
|
|
264
|
-
isExecuting: m,
|
|
265
|
-
handleConfirm: _,
|
|
266
|
-
handleCancel: v,
|
|
267
|
-
finalConfirmTone: E(() => u ? d === "destructive" ? "destructive" : d === "warning" ? "warning" : d === "success" ? "success" : a ?? "primary" : a ?? "primary", [
|
|
268
|
-
u,
|
|
269
|
-
d,
|
|
270
|
-
a
|
|
271
|
-
]),
|
|
272
|
-
confirmButtonOnClick: s ? y : _,
|
|
273
|
-
effectiveLoading: m || o
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region src/components/features/overlays/hooks/use-overlay-visibility.ts
|
|
278
|
-
function pe(e, t) {
|
|
279
|
-
return typeof e == "function" ? e(t) : e;
|
|
280
|
-
}
|
|
281
|
-
function me(e, t) {
|
|
282
|
-
let n = {};
|
|
283
|
-
for (let r of e) n[r] = !!t?.[r];
|
|
284
|
-
return n;
|
|
285
|
-
}
|
|
286
|
-
function he(e, t, n) {
|
|
287
|
-
return n.some((n) => e[n] !== t[n]);
|
|
288
|
-
}
|
|
289
|
-
function $({ defaultOpen: e = !1, open: t, onOpenChange: n, onOpen: r, onClose: i } = {}) {
|
|
290
|
-
let [a, o] = O(e), s = t !== void 0, c = s ? t : a, l = D(c);
|
|
291
|
-
l.current = c;
|
|
292
|
-
let u = T((e) => {
|
|
293
|
-
let t = pe(e, l.current), a = l.current !== t;
|
|
294
|
-
s || o(t), a && (l.current = t, n?.(t), t ? r?.() : i?.());
|
|
295
|
-
}, [
|
|
296
|
-
s,
|
|
297
|
-
i,
|
|
298
|
-
r,
|
|
299
|
-
n
|
|
300
|
-
]);
|
|
301
|
-
return {
|
|
302
|
-
open: c,
|
|
303
|
-
isOpen: c,
|
|
304
|
-
setOpen: u,
|
|
305
|
-
show: T(() => {
|
|
306
|
-
u(!0);
|
|
307
|
-
}, [u]),
|
|
308
|
-
hide: T(() => {
|
|
309
|
-
u(!1);
|
|
310
|
-
}, [u]),
|
|
311
|
-
toggle: T(() => {
|
|
312
|
-
u((e) => !e);
|
|
313
|
-
}, [u]),
|
|
314
|
-
overlayProps: E(() => ({
|
|
315
|
-
open: c,
|
|
316
|
-
onOpenChange: u
|
|
317
|
-
}), [c, u])
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
function ge(e, { defaultOpen: t, open: n, onOpenChange: r, closeOthersOnOpen: i = !1 } = {}) {
|
|
321
|
-
let a = e, [o, s] = O(() => me(a, t)), c = n !== void 0, l = me(a, c ? n : o), u = D(l);
|
|
322
|
-
u.current = l;
|
|
323
|
-
let d = T((e, t) => {
|
|
324
|
-
let n = u.current, o = pe(t, n[e]), l = {
|
|
325
|
-
...n,
|
|
326
|
-
[e]: o
|
|
327
|
-
};
|
|
328
|
-
if (i && o) for (let t of a) t !== e && (l[t] = !1);
|
|
329
|
-
let d = he(n, l, a);
|
|
330
|
-
c || s(l), d && (u.current = l, r?.(e, o, l));
|
|
331
|
-
}, [
|
|
332
|
-
i,
|
|
333
|
-
c,
|
|
334
|
-
a,
|
|
335
|
-
r
|
|
336
|
-
]);
|
|
337
|
-
return E(() => {
|
|
338
|
-
let e = {};
|
|
339
|
-
for (let t of a) {
|
|
340
|
-
let n = l[t], r = (e) => {
|
|
341
|
-
d(t, e);
|
|
342
|
-
};
|
|
343
|
-
e[t] = {
|
|
344
|
-
open: n,
|
|
345
|
-
isOpen: n,
|
|
346
|
-
setOpen: r,
|
|
347
|
-
show: () => d(t, !0),
|
|
348
|
-
hide: () => d(t, !1),
|
|
349
|
-
toggle: () => d(t, (e) => !e),
|
|
350
|
-
overlayProps: {
|
|
351
|
-
open: n,
|
|
352
|
-
onOpenChange: r
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
return e;
|
|
357
|
-
}, [
|
|
358
|
-
a,
|
|
359
|
-
d,
|
|
360
|
-
l
|
|
361
|
-
]);
|
|
362
|
-
}
|
|
363
|
-
//#endregion
|
|
364
|
-
//#region src/components/features/overlays/hooks/use-pending-overlay-focus.ts
|
|
365
|
-
function _e(e, t = !0) {
|
|
366
|
-
let n = D(null);
|
|
367
|
-
return ne(() => {
|
|
368
|
-
let r = n.current;
|
|
369
|
-
if (!e || !t || !r) return;
|
|
370
|
-
let i = r.ownerDocument.activeElement;
|
|
371
|
-
(i === r.ownerDocument.body || i && r.contains(i) && i.matches(":disabled")) && r.focus({ preventScroll: !0 });
|
|
372
|
-
}, [e, t]), n;
|
|
373
|
-
}
|
|
374
|
-
//#endregion
|
|
375
|
-
//#region src/components/features/overlays/dialog.tsx
|
|
376
|
-
var ve = {
|
|
377
|
-
xs: "sm:max-w-xs",
|
|
378
|
-
sm: "sm:max-w-sm",
|
|
379
|
-
md: "sm:max-w-md",
|
|
380
|
-
lg: "sm:max-w-lg",
|
|
381
|
-
xl: "sm:max-w-xl",
|
|
382
|
-
"2xl": "sm:max-w-2xl",
|
|
383
|
-
"3xl": "sm:max-w-3xl",
|
|
384
|
-
"4xl": "sm:max-w-4xl",
|
|
385
|
-
"5xl": "sm:max-w-5xl",
|
|
386
|
-
full: "sm:max-w-[calc(100vw-2rem)]"
|
|
387
|
-
}, ye = {
|
|
388
|
-
neutral: {
|
|
389
|
-
icon: /* @__PURE__ */ k(P, { className: "size-icon text-muted-foreground" }),
|
|
390
|
-
classes: ""
|
|
391
|
-
},
|
|
392
|
-
destructive: {
|
|
393
|
-
icon: /* @__PURE__ */ k(j, { className: "size-icon text-destructive" }),
|
|
394
|
-
classes: "border-destructive/50"
|
|
395
|
-
},
|
|
396
|
-
warning: {
|
|
397
|
-
icon: /* @__PURE__ */ k(M, { className: "size-icon text-warning-accent" }),
|
|
398
|
-
classes: "border-warning/50"
|
|
399
|
-
},
|
|
400
|
-
info: {
|
|
401
|
-
icon: /* @__PURE__ */ k(F, { className: "size-icon text-info" }),
|
|
402
|
-
classes: "border-info/50"
|
|
403
|
-
},
|
|
404
|
-
success: {
|
|
405
|
-
icon: /* @__PURE__ */ k(N, { className: "size-icon text-success" }),
|
|
406
|
-
classes: "border-success/50"
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
function be({ open: e, onOpenChange: t, onClose: r, children: i, title: a, description: o, visuallyHideHeader: s = !1, className: c, contentClassName: l, showCloseButton: u = !0, surfaceStyle: d, initialFocusRef: m, closeOnEscape: h = !0, closeOnBackdropClick: _ = !0, strings: b, showCancel: x = !0, showConfirm: S = !0, onCancel: C, onConfirm: w, onAsyncConfirm: T, onError: ne, closeOnAsyncComplete: E = !0, confirmTone: D = "primary", confirmStyle: O = "solid", loading: j = !1, formId: M, footer: N, emphasis: P = !1, tone: F = "neutral", showIcon: L = !1, alertMessage: R, size: z = "lg", trigger: B }) {
|
|
410
|
-
let V = $({
|
|
411
|
-
open: e,
|
|
412
|
-
onOpenChange: t,
|
|
413
|
-
onClose: r
|
|
414
|
-
}), { strings: H, finalConfirmTone: re, confirmButtonOnClick: U, effectiveLoading: W, handleCancel: G } = Q({
|
|
415
|
-
closeDialog: V.hide,
|
|
416
|
-
onConfirm: w,
|
|
417
|
-
onAsyncConfirm: T,
|
|
418
|
-
onError: ne,
|
|
419
|
-
closeOnAsyncComplete: E,
|
|
420
|
-
confirmTone: D,
|
|
421
|
-
loading: j,
|
|
422
|
-
formId: M,
|
|
423
|
-
onCancel: C,
|
|
424
|
-
customStrings: b,
|
|
425
|
-
emphasis: P,
|
|
426
|
-
tone: F
|
|
427
|
-
}), K = ye[F], ie = _e(W), ae = !!(i || R), q = x || S || N;
|
|
428
|
-
return /* @__PURE__ */ A(J, {
|
|
429
|
-
open: V.open,
|
|
430
|
-
modal: !0,
|
|
431
|
-
disablePointerDismissal: W || !_,
|
|
432
|
-
onOpenChange: (e, t) => {
|
|
433
|
-
if (!e && (W || t.reason === "escape-key" && !h)) {
|
|
434
|
-
t.cancel();
|
|
435
|
-
return;
|
|
436
|
-
}
|
|
437
|
-
V.setOpen(e);
|
|
438
|
-
},
|
|
439
|
-
children: [!!B && (te(B) ? /* @__PURE__ */ k(Y, { render: B }) : /* @__PURE__ */ k(Y, {
|
|
440
|
-
className: "overlay-trigger--fallback cursor-pointer",
|
|
441
|
-
children: /* @__PURE__ */ k(p, {
|
|
442
|
-
tag: "span",
|
|
443
|
-
size: "inherit",
|
|
444
|
-
className: "text-inherit",
|
|
445
|
-
children: B
|
|
446
|
-
})
|
|
447
|
-
})), /* @__PURE__ */ A(oe, {
|
|
448
|
-
ref: ie,
|
|
449
|
-
showCloseButton: !1,
|
|
450
|
-
style: d,
|
|
451
|
-
initialFocus: m,
|
|
452
|
-
"aria-label": a ? void 0 : H.dialogLabel,
|
|
453
|
-
className: n("action-dialog--component dialog--component", ve[z], P && K.classes, c),
|
|
454
|
-
children: [
|
|
455
|
-
!!u && /* @__PURE__ */ k(X, {
|
|
456
|
-
disabled: W,
|
|
457
|
-
render: /* @__PURE__ */ k(g, {
|
|
458
|
-
type: "button",
|
|
459
|
-
tone: "secondary",
|
|
460
|
-
buttonStyle: "ghost",
|
|
461
|
-
size: "sm",
|
|
462
|
-
iconOnly: !0,
|
|
463
|
-
"data-overlay-close": "",
|
|
464
|
-
className: n(f.close, "z-10 text-muted-foreground hover:bg-muted hover:text-foreground"),
|
|
465
|
-
children: /* @__PURE__ */ k(I, { className: "size-icon" })
|
|
466
|
-
}),
|
|
467
|
-
"aria-label": H.close
|
|
468
|
-
}),
|
|
469
|
-
!!(a || o) && /* @__PURE__ */ k(se, {
|
|
470
|
-
className: n("dialog--header", s && "sr-only"),
|
|
471
|
-
children: /* @__PURE__ */ A(v, {
|
|
472
|
-
direction: "horizontal",
|
|
473
|
-
gap: "sm",
|
|
474
|
-
align: "start",
|
|
475
|
-
wrap: !1,
|
|
476
|
-
children: [!!L && /* @__PURE__ */ k("span", {
|
|
477
|
-
className: "shrink-0 pt-space-2xs",
|
|
478
|
-
children: K.icon
|
|
479
|
-
}), /* @__PURE__ */ A(v, {
|
|
480
|
-
gap: "normal",
|
|
481
|
-
className: "flex-1",
|
|
482
|
-
children: [!!a && /* @__PURE__ */ k(le, { children: a }), !!o && /* @__PURE__ */ k(ue, { children: o })]
|
|
483
|
-
})]
|
|
484
|
-
})
|
|
485
|
-
}),
|
|
486
|
-
!!ae && /* @__PURE__ */ A(Z, {
|
|
487
|
-
className: n("dialog--body", l),
|
|
488
|
-
children: [!!R && /* @__PURE__ */ k(ee, {
|
|
489
|
-
tone: F,
|
|
490
|
-
className: "mb-space-md",
|
|
491
|
-
children: /* @__PURE__ */ k(y, { children: R })
|
|
492
|
-
}), i]
|
|
493
|
-
}),
|
|
494
|
-
!!q && /* @__PURE__ */ k(ce, {
|
|
495
|
-
className: "dialog--footer",
|
|
496
|
-
children: N ?? /* @__PURE__ */ A(v, {
|
|
497
|
-
direction: {
|
|
498
|
-
base: "vertical",
|
|
499
|
-
sm: "horizontal"
|
|
500
|
-
},
|
|
501
|
-
gap: "sm",
|
|
502
|
-
align: {
|
|
503
|
-
base: "stretch",
|
|
504
|
-
sm: "center"
|
|
505
|
-
},
|
|
506
|
-
justify: "end",
|
|
507
|
-
className: "w-full",
|
|
508
|
-
children: [!!x && /* @__PURE__ */ k(g, {
|
|
509
|
-
type: "button",
|
|
510
|
-
tone: "secondary",
|
|
511
|
-
buttonStyle: "outline",
|
|
512
|
-
onClick: G,
|
|
513
|
-
disabled: W,
|
|
514
|
-
children: H.cancel
|
|
515
|
-
}), !!S && /* @__PURE__ */ k(g, {
|
|
516
|
-
type: "button",
|
|
517
|
-
tone: re,
|
|
518
|
-
buttonStyle: O,
|
|
519
|
-
onClick: U,
|
|
520
|
-
disabled: W,
|
|
521
|
-
loading: W,
|
|
522
|
-
strings: { loading: H.loading },
|
|
523
|
-
children: H.confirm
|
|
524
|
-
})]
|
|
525
|
-
})
|
|
526
|
-
})
|
|
527
|
-
]
|
|
528
|
-
})]
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
var xe = w(be);
|
|
532
|
-
xe.displayName = "ActionDialog";
|
|
533
|
-
//#endregion
|
|
534
|
-
//#region src/components/features/overlays/drawer.tsx
|
|
535
|
-
var Se = {
|
|
536
|
-
xs: "data-[side=left]:sm:max-w-xs data-[side=right]:sm:max-w-xs",
|
|
537
|
-
sm: "data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
|
|
538
|
-
md: "data-[side=left]:sm:max-w-md data-[side=right]:sm:max-w-md",
|
|
539
|
-
lg: "data-[side=left]:sm:max-w-lg data-[side=right]:sm:max-w-lg",
|
|
540
|
-
xl: "data-[side=left]:sm:max-w-xl data-[side=right]:sm:max-w-xl",
|
|
541
|
-
"2xl": "data-[side=left]:sm:max-w-2xl data-[side=right]:sm:max-w-2xl",
|
|
542
|
-
"3xl": "data-[side=left]:sm:max-w-3xl data-[side=right]:sm:max-w-3xl",
|
|
543
|
-
"4xl": "data-[side=left]:sm:max-w-4xl data-[side=right]:sm:max-w-4xl",
|
|
544
|
-
"5xl": "data-[side=left]:sm:max-w-5xl data-[side=right]:sm:max-w-5xl",
|
|
545
|
-
full: "data-[side=left]:sm:max-w-[calc(100vw-2rem)] data-[side=right]:sm:max-w-[calc(100vw-2rem)]"
|
|
546
|
-
}, Ce = {
|
|
547
|
-
neutral: /* @__PURE__ */ k(P, { className: "size-icon text-muted-foreground" }),
|
|
548
|
-
destructive: /* @__PURE__ */ k(j, { className: "size-icon text-destructive" }),
|
|
549
|
-
warning: /* @__PURE__ */ k(M, { className: "size-icon text-warning-accent" }),
|
|
550
|
-
info: /* @__PURE__ */ k(F, { className: "size-icon text-info" }),
|
|
551
|
-
success: /* @__PURE__ */ k(N, { className: "size-icon text-success" })
|
|
552
|
-
};
|
|
553
|
-
function we({ open: e, onOpenChange: t, onClose: m, children: h, title: _, description: b, visuallyHideHeader: x = !1, showCloseButton: S = !0, className: C, contentClassName: w, initialFocusRef: T, closeOnEscape: ne = !0, closeOnBackdropClick: E = !0, strings: D, showCancel: O = !0, showConfirm: j = !0, onCancel: M, onConfirm: N, onAsyncConfirm: P, onError: F, closeOnAsyncComplete: L = !0, confirmTone: R = "primary", confirmStyle: z = "solid", loading: B = !1, formId: V, footer: H, emphasis: re = !1, tone: U = "neutral", showIcon: W = !1, alertMessage: G, direction: K = "right", width: ie = "lg", showFooter: ae = !0, modal: q = !0, trigger: J }) {
|
|
554
|
-
let Y = $({
|
|
555
|
-
open: e,
|
|
556
|
-
onOpenChange: t,
|
|
557
|
-
onClose: m
|
|
558
|
-
}), { strings: X, finalConfirmTone: oe, confirmButtonOnClick: se, effectiveLoading: Z, handleCancel: ce } = Q({
|
|
559
|
-
closeDialog: Y.hide,
|
|
560
|
-
onConfirm: N,
|
|
561
|
-
onAsyncConfirm: P,
|
|
562
|
-
onError: F,
|
|
563
|
-
closeOnAsyncComplete: L,
|
|
564
|
-
confirmTone: R,
|
|
565
|
-
loading: B,
|
|
566
|
-
formId: V,
|
|
567
|
-
onCancel: M,
|
|
568
|
-
customStrings: D,
|
|
569
|
-
emphasis: re,
|
|
570
|
-
tone: U
|
|
571
|
-
}), le = K === "left" || K === "right", ue = _e(Z, q), de = !!(h || G), fe = ae && (O || j || H);
|
|
572
|
-
return /* @__PURE__ */ A(d, {
|
|
573
|
-
open: Y.open,
|
|
574
|
-
modal: q,
|
|
575
|
-
disablePointerDismissal: Z || !E,
|
|
576
|
-
onOpenChange: (e, t) => {
|
|
577
|
-
if (!e && (Z || t.reason === "escape-key" && !ne)) {
|
|
578
|
-
t.cancel();
|
|
579
|
-
return;
|
|
580
|
-
}
|
|
581
|
-
Y.setOpen(e);
|
|
582
|
-
},
|
|
583
|
-
children: [!!J && (te(J) ? /* @__PURE__ */ k(o, { render: J }) : /* @__PURE__ */ k(o, {
|
|
584
|
-
className: "overlay-trigger--fallback cursor-pointer",
|
|
585
|
-
children: /* @__PURE__ */ k(p, {
|
|
586
|
-
tag: "span",
|
|
587
|
-
size: "inherit",
|
|
588
|
-
className: "text-inherit",
|
|
589
|
-
children: J
|
|
590
|
-
})
|
|
591
|
-
})), /* @__PURE__ */ A(a, {
|
|
592
|
-
ref: ue,
|
|
593
|
-
side: K,
|
|
594
|
-
showCloseButton: !1,
|
|
595
|
-
initialFocus: T,
|
|
596
|
-
"aria-label": _ ? void 0 : X.drawerLabel,
|
|
597
|
-
"data-modal": q === !1 ? "false" : void 0,
|
|
598
|
-
className: n("action-drawer--component drawer--component", le && "data-[side=left]:w-full data-[side=right]:w-full", le && Se[ie], C),
|
|
599
|
-
children: [
|
|
600
|
-
S && /* @__PURE__ */ k(l, {
|
|
601
|
-
disabled: Z,
|
|
602
|
-
render: /* @__PURE__ */ k(g, {
|
|
603
|
-
type: "button",
|
|
604
|
-
tone: "secondary",
|
|
605
|
-
buttonStyle: "ghost",
|
|
606
|
-
size: "sm",
|
|
607
|
-
iconOnly: !0,
|
|
608
|
-
"data-overlay-close": "",
|
|
609
|
-
className: n(f.close, "z-10 text-muted-foreground hover:bg-muted hover:text-foreground"),
|
|
610
|
-
children: /* @__PURE__ */ k(I, { className: "size-icon" })
|
|
611
|
-
}),
|
|
612
|
-
"aria-label": X.close
|
|
613
|
-
}),
|
|
614
|
-
!!(_ || b) && /* @__PURE__ */ k(u, {
|
|
615
|
-
className: n("drawer--header", x && "sr-only"),
|
|
616
|
-
children: /* @__PURE__ */ A(v, {
|
|
617
|
-
direction: "horizontal",
|
|
618
|
-
gap: "sm",
|
|
619
|
-
align: "start",
|
|
620
|
-
wrap: !1,
|
|
621
|
-
children: [!!W && /* @__PURE__ */ k("span", {
|
|
622
|
-
className: "shrink-0 pt-space-2xs",
|
|
623
|
-
children: Ce[U]
|
|
624
|
-
}), /* @__PURE__ */ A(v, {
|
|
625
|
-
gap: "normal",
|
|
626
|
-
className: "flex-1",
|
|
627
|
-
children: [!!_ && /* @__PURE__ */ k(i, { children: _ }), !!b && /* @__PURE__ */ k(r, { children: b })]
|
|
628
|
-
})]
|
|
629
|
-
})
|
|
630
|
-
}),
|
|
631
|
-
!!de && /* @__PURE__ */ A(s, {
|
|
632
|
-
className: n("drawer--body", w),
|
|
633
|
-
children: [!!G && /* @__PURE__ */ k(ee, {
|
|
634
|
-
tone: U,
|
|
635
|
-
className: "mb-space-md",
|
|
636
|
-
children: /* @__PURE__ */ k(y, { children: G })
|
|
637
|
-
}), h]
|
|
638
|
-
}),
|
|
639
|
-
!!fe && /* @__PURE__ */ k(c, {
|
|
640
|
-
className: "drawer--footer",
|
|
641
|
-
children: H ?? /* @__PURE__ */ A(v, {
|
|
642
|
-
direction: {
|
|
643
|
-
base: "vertical",
|
|
644
|
-
sm: "horizontal"
|
|
645
|
-
},
|
|
646
|
-
gap: "sm",
|
|
647
|
-
align: {
|
|
648
|
-
base: "stretch",
|
|
649
|
-
sm: "center"
|
|
650
|
-
},
|
|
651
|
-
justify: "end",
|
|
652
|
-
className: "w-full",
|
|
653
|
-
children: [!!O && /* @__PURE__ */ k(g, {
|
|
654
|
-
type: "button",
|
|
655
|
-
tone: "secondary",
|
|
656
|
-
buttonStyle: "outline",
|
|
657
|
-
onClick: ce,
|
|
658
|
-
disabled: Z,
|
|
659
|
-
children: X.cancel
|
|
660
|
-
}), !!j && /* @__PURE__ */ k(g, {
|
|
661
|
-
type: "button",
|
|
662
|
-
tone: oe,
|
|
663
|
-
buttonStyle: z,
|
|
664
|
-
onClick: se,
|
|
665
|
-
disabled: Z,
|
|
666
|
-
loading: Z,
|
|
667
|
-
strings: { loading: X.loading },
|
|
668
|
-
children: X.confirm
|
|
669
|
-
})]
|
|
670
|
-
})
|
|
671
|
-
})
|
|
672
|
-
]
|
|
673
|
-
})]
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
var Te = w(we);
|
|
677
|
-
Te.displayName = "ActionDrawer";
|
|
678
|
-
//#endregion
|
|
679
|
-
//#region src/components/ui/alert-dialog.tsx
|
|
680
|
-
function Ee({ ...e }) {
|
|
681
|
-
return /* @__PURE__ */ k(z.Root, {
|
|
682
|
-
"data-slot": "alert-dialog",
|
|
683
|
-
...e
|
|
684
|
-
});
|
|
685
|
-
}
|
|
686
|
-
function De({ ...e }) {
|
|
687
|
-
return /* @__PURE__ */ k(z.Trigger, {
|
|
688
|
-
"data-slot": "alert-dialog-trigger",
|
|
689
|
-
...e
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
function Oe({ container: t, ...n }) {
|
|
693
|
-
let r = e(t);
|
|
694
|
-
return /* @__PURE__ */ k(z.Portal, {
|
|
695
|
-
container: r,
|
|
696
|
-
"data-slot": "alert-dialog-portal",
|
|
697
|
-
...n
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
function ke({ className: e, ...t }) {
|
|
701
|
-
return /* @__PURE__ */ k(z.Backdrop, {
|
|
702
|
-
"data-slot": "alert-dialog-overlay",
|
|
703
|
-
className: n(S, m.backdrop, "isolate", e),
|
|
704
|
-
...t
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
function Ae({ className: t, container: r, size: i = "default", ...a }) {
|
|
708
|
-
let o = e(r);
|
|
709
|
-
return /* @__PURE__ */ A(Oe, {
|
|
710
|
-
container: o,
|
|
711
|
-
children: [/* @__PURE__ */ k(ke, {}), /* @__PURE__ */ k(z.Popup, {
|
|
712
|
-
"data-slot": "alert-dialog-content",
|
|
713
|
-
"data-size": i,
|
|
714
|
-
className: n(m.dialog, "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-space-xl rounded-radius bg-popover p-surface text-popover-foreground shadow-xl ring-1 ring-foreground/5 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md dark:ring-foreground/10", t),
|
|
715
|
-
...a
|
|
716
|
-
})]
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
function je({ className: e, ...t }) {
|
|
720
|
-
return /* @__PURE__ */ k("div", {
|
|
721
|
-
"data-slot": "alert-dialog-header",
|
|
722
|
-
className: n("grid grid-rows-[auto_1fr] place-items-center text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-space-2xl sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
|
|
723
|
-
...t
|
|
724
|
-
});
|
|
725
|
-
}
|
|
726
|
-
function Me({ className: e, ...t }) {
|
|
727
|
-
return /* @__PURE__ */ k("div", {
|
|
728
|
-
"data-slot": "alert-dialog-footer",
|
|
729
|
-
className: n("flex flex-col-reverse group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
|
|
730
|
-
...t
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
function Ne({ className: e, ...t }) {
|
|
734
|
-
return /* @__PURE__ */ k("div", {
|
|
735
|
-
"data-slot": "alert-dialog-media",
|
|
736
|
-
className: n("mb-space-md inline-flex size-16 items-center justify-center rounded-full bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", e),
|
|
737
|
-
...t
|
|
738
|
-
});
|
|
739
|
-
}
|
|
740
|
-
function Pe({ className: e, ...t }) {
|
|
741
|
-
return /* @__PURE__ */ k(z.Title, {
|
|
742
|
-
"data-slot": "alert-dialog-title",
|
|
743
|
-
className: n("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
744
|
-
...t
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
function Fe({ className: e, ...t }) {
|
|
748
|
-
return /* @__PURE__ */ k(z.Description, {
|
|
749
|
-
"data-slot": "alert-dialog-description",
|
|
750
|
-
className: n("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
751
|
-
...t
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
function Ie({ className: e, ...t }) {
|
|
755
|
-
return /* @__PURE__ */ k(_, {
|
|
756
|
-
"data-slot": "alert-dialog-action",
|
|
757
|
-
className: n(e),
|
|
758
|
-
...t
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
function Le({ className: e, variant: t = "outline", size: r = "default", ...i }) {
|
|
762
|
-
return /* @__PURE__ */ k(z.Close, {
|
|
763
|
-
"data-slot": "alert-dialog-cancel",
|
|
764
|
-
className: n(e),
|
|
765
|
-
render: /* @__PURE__ */ k(_, {
|
|
766
|
-
variant: t,
|
|
767
|
-
size: r
|
|
768
|
-
}),
|
|
769
|
-
...i
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
//#endregion
|
|
773
|
-
//#region src/components/base/display/alert-dialog.tsx
|
|
774
|
-
function Re(e) {
|
|
775
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
776
|
-
}
|
|
777
|
-
var ze = Ee, Be = C.forwardRef(function({ className: e, ...t }, r) {
|
|
778
|
-
return /* @__PURE__ */ k(De, {
|
|
779
|
-
ref: r,
|
|
780
|
-
className: n("alert-dialog-trigger--component", e),
|
|
781
|
-
...t
|
|
782
|
-
});
|
|
783
|
-
});
|
|
784
|
-
Be.displayName = "AlertDialogTrigger";
|
|
785
|
-
var Ve = C.forwardRef(function({ className: e, ...t }, r) {
|
|
786
|
-
return /* @__PURE__ */ k(Ae, {
|
|
787
|
-
ref: r,
|
|
788
|
-
className: n("alert-dialog-content--component max-h-[min(90vh,48rem)] gap-0 overflow-hidden rounded-radius bg-background p-0 text-foreground ring-border/70 sm:max-w-md", e),
|
|
789
|
-
...t
|
|
790
|
-
});
|
|
791
|
-
});
|
|
792
|
-
Ve.displayName = "AlertDialogContent";
|
|
793
|
-
var He = C.forwardRef(function({ className: e, textGap: t = "normal", ...r }, i) {
|
|
794
|
-
return /* @__PURE__ */ k(je, {
|
|
795
|
-
ref: i,
|
|
796
|
-
className: n("alert-dialog-header--component p-surface text-center", t === "dense" ? "gap-dense" : "gap-normal", e),
|
|
797
|
-
...r
|
|
798
|
-
});
|
|
799
|
-
});
|
|
800
|
-
He.displayName = "AlertDialogHeader";
|
|
801
|
-
var Ue = C.forwardRef(function({ className: e, ...t }, r) {
|
|
802
|
-
return /* @__PURE__ */ k("div", {
|
|
803
|
-
ref: r,
|
|
804
|
-
"data-slot": "alert-dialog-body",
|
|
805
|
-
className: n("alert-dialog-body--component min-h-0 flex-1 overflow-y-auto p-surface", e),
|
|
806
|
-
...t
|
|
807
|
-
});
|
|
808
|
-
});
|
|
809
|
-
Ue.displayName = "AlertDialogBody";
|
|
810
|
-
var We = C.forwardRef(function({ className: e, ...t }, r) {
|
|
811
|
-
return /* @__PURE__ */ k(Me, {
|
|
812
|
-
ref: r,
|
|
813
|
-
className: n("alert-dialog-footer--component", x.footer, e),
|
|
814
|
-
...t
|
|
815
|
-
});
|
|
816
|
-
});
|
|
817
|
-
We.displayName = "AlertDialogFooter";
|
|
818
|
-
var Ge = C.forwardRef(function({ children: e, className: t, ...r }, i) {
|
|
819
|
-
return /* @__PURE__ */ k(Pe, {
|
|
820
|
-
ref: i,
|
|
821
|
-
className: n("alert-dialog-title--component m-0", t),
|
|
822
|
-
...r,
|
|
823
|
-
children: Re(e) ? /* @__PURE__ */ k(p, {
|
|
824
|
-
tag: "span",
|
|
825
|
-
size: "base",
|
|
826
|
-
weight: "semibold",
|
|
827
|
-
lineHeight: "snug",
|
|
828
|
-
children: e
|
|
829
|
-
}) : e
|
|
830
|
-
});
|
|
831
|
-
});
|
|
832
|
-
Ge.displayName = "AlertDialogTitle";
|
|
833
|
-
var Ke = C.forwardRef(function({ children: e, className: t, ...r }, i) {
|
|
834
|
-
return /* @__PURE__ */ k(Fe, {
|
|
835
|
-
ref: i,
|
|
836
|
-
className: n("alert-dialog-description--component m-0", t),
|
|
837
|
-
...r,
|
|
838
|
-
children: Re(e) ? /* @__PURE__ */ k(p, {
|
|
839
|
-
tag: "span",
|
|
840
|
-
type: "secondary",
|
|
841
|
-
lineHeight: "relaxed",
|
|
842
|
-
children: e
|
|
843
|
-
}) : e
|
|
844
|
-
});
|
|
845
|
-
});
|
|
846
|
-
Ke.displayName = "AlertDialogDescription";
|
|
847
|
-
var qe = C.forwardRef(function({ className: e, ...t }, r) {
|
|
848
|
-
return /* @__PURE__ */ k(Ne, {
|
|
849
|
-
ref: r,
|
|
850
|
-
className: n("alert-dialog-media--component", e),
|
|
851
|
-
...t
|
|
852
|
-
});
|
|
853
|
-
});
|
|
854
|
-
qe.displayName = "AlertDialogMedia";
|
|
855
|
-
var Je = C.forwardRef(function({ className: e, ...t }, r) {
|
|
856
|
-
return /* @__PURE__ */ k(Ie, {
|
|
857
|
-
ref: r,
|
|
858
|
-
className: n("alert-dialog-action--component", e),
|
|
859
|
-
...t
|
|
860
|
-
});
|
|
861
|
-
});
|
|
862
|
-
Je.displayName = "AlertDialogAction";
|
|
863
|
-
var Ye = C.forwardRef(function({ className: e, ...t }, r) {
|
|
864
|
-
return /* @__PURE__ */ k(Le, {
|
|
865
|
-
ref: r,
|
|
866
|
-
className: n("alert-dialog-cancel--component", e),
|
|
867
|
-
...t
|
|
868
|
-
});
|
|
869
|
-
});
|
|
870
|
-
Ye.displayName = "AlertDialogCancel";
|
|
871
|
-
//#endregion
|
|
872
|
-
//#region src/components/features/overlays/alert-dialog.tsx
|
|
873
|
-
var Xe = {
|
|
874
|
-
neutral: {
|
|
875
|
-
icon: /* @__PURE__ */ k(P, { className: "size-icon-lg" }),
|
|
876
|
-
iconColor: "text-muted-foreground",
|
|
877
|
-
background: "bg-muted"
|
|
878
|
-
},
|
|
879
|
-
destructive: {
|
|
880
|
-
icon: /* @__PURE__ */ k(j, { className: "size-icon-lg" }),
|
|
881
|
-
iconColor: "text-destructive",
|
|
882
|
-
background: "bg-destructive/10"
|
|
883
|
-
},
|
|
884
|
-
warning: {
|
|
885
|
-
icon: /* @__PURE__ */ k(M, { className: "size-icon-lg" }),
|
|
886
|
-
iconColor: "text-warning-accent",
|
|
887
|
-
background: "bg-warning/15"
|
|
888
|
-
},
|
|
889
|
-
info: {
|
|
890
|
-
icon: /* @__PURE__ */ k(F, { className: "size-icon-lg" }),
|
|
891
|
-
iconColor: "text-info",
|
|
892
|
-
background: "bg-info/15"
|
|
893
|
-
},
|
|
894
|
-
success: {
|
|
895
|
-
icon: /* @__PURE__ */ k(N, { className: "size-icon-lg" }),
|
|
896
|
-
iconColor: "text-success",
|
|
897
|
-
background: "bg-success/15"
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
function Ze({ open: e, onOpenChange: r, onClose: i, children: a, title: o, description: s, visuallyHideHeader: c = !1, className: l, contentClassName: u, initialFocusRef: d, closeOnEscape: f = !0, strings: m, showCancel: h = !0, showConfirm: _ = !0, onCancel: b, onConfirm: x, onAsyncConfirm: S, onError: C, closeOnAsyncComplete: w = !0, confirmTone: T, confirmStyle: ne = "solid", loading: D = !1, formId: O, footer: j, tone: M = "neutral", showIcon: N = !0, alertMessage: P, trigger: F, destructive: I = !1 }) {
|
|
901
|
-
let L = $({
|
|
902
|
-
open: e,
|
|
903
|
-
onOpenChange: r,
|
|
904
|
-
onClose: i
|
|
905
|
-
}), R = t(fe, m), z = E(() => I ? "destructive" : T || {
|
|
906
|
-
neutral: "primary",
|
|
907
|
-
destructive: "destructive",
|
|
908
|
-
warning: "warning",
|
|
909
|
-
info: "primary",
|
|
910
|
-
success: "success"
|
|
911
|
-
}[M], [
|
|
912
|
-
I,
|
|
913
|
-
T,
|
|
914
|
-
M
|
|
915
|
-
]), { strings: B, confirmButtonOnClick: V, effectiveLoading: H, handleCancel: re } = Q({
|
|
916
|
-
closeDialog: L.hide,
|
|
917
|
-
onConfirm: x,
|
|
918
|
-
onAsyncConfirm: S,
|
|
919
|
-
onError: C,
|
|
920
|
-
closeOnAsyncComplete: w,
|
|
921
|
-
confirmTone: z,
|
|
922
|
-
loading: D,
|
|
923
|
-
formId: O,
|
|
924
|
-
onCancel: b,
|
|
925
|
-
customStrings: R
|
|
926
|
-
}), U = I && M === "neutral" ? "destructive" : M, W = Xe[U], G = _e(H);
|
|
927
|
-
return /* @__PURE__ */ A(ze, {
|
|
928
|
-
open: L.open,
|
|
929
|
-
onOpenChange: (e, t) => {
|
|
930
|
-
if (!e && (H || t.reason === "escape-key" && !f)) {
|
|
931
|
-
t.cancel();
|
|
932
|
-
return;
|
|
933
|
-
}
|
|
934
|
-
L.setOpen(e);
|
|
935
|
-
},
|
|
936
|
-
children: [!!F && (te(F) ? /* @__PURE__ */ k(Be, { render: F }) : /* @__PURE__ */ k(Be, {
|
|
937
|
-
className: "overlay-trigger--fallback cursor-pointer",
|
|
938
|
-
children: /* @__PURE__ */ k(p, {
|
|
939
|
-
tag: "span",
|
|
940
|
-
size: "inherit",
|
|
941
|
-
className: "text-inherit",
|
|
942
|
-
children: F
|
|
943
|
-
})
|
|
944
|
-
})), /* @__PURE__ */ A(Ve, {
|
|
945
|
-
ref: G,
|
|
946
|
-
initialFocus: d,
|
|
947
|
-
"aria-label": o ? void 0 : B.alertDialogLabel,
|
|
948
|
-
className: n("confirm-dialog--component alert-dialog--component", l),
|
|
949
|
-
children: [/* @__PURE__ */ A(Ue, {
|
|
950
|
-
className: "alert-dialog--body",
|
|
951
|
-
children: [
|
|
952
|
-
!!N && !c && /* @__PURE__ */ k("span", {
|
|
953
|
-
className: n("mb-space-md flex size-avatar-lg items-center justify-center rounded-full", W.background, W.iconColor),
|
|
954
|
-
children: W.icon
|
|
955
|
-
}),
|
|
956
|
-
!!(o || s) && /* @__PURE__ */ A(He, {
|
|
957
|
-
className: n("p-0 place-items-start text-start", c && "sr-only"),
|
|
958
|
-
children: [!!o && /* @__PURE__ */ k(Ge, { children: o }), !!s && /* @__PURE__ */ k(Ke, { children: s })]
|
|
959
|
-
}),
|
|
960
|
-
!!P && /* @__PURE__ */ k(ee, {
|
|
961
|
-
tone: U,
|
|
962
|
-
className: "mt-space-md text-left",
|
|
963
|
-
children: /* @__PURE__ */ k(y, { children: P })
|
|
964
|
-
}),
|
|
965
|
-
!!a && /* @__PURE__ */ k("div", {
|
|
966
|
-
className: n("mt-space-md", u),
|
|
967
|
-
children: a
|
|
968
|
-
})
|
|
969
|
-
]
|
|
970
|
-
}), !!(h || _ || j) && /* @__PURE__ */ k(We, {
|
|
971
|
-
className: "alert-dialog--footer",
|
|
972
|
-
children: j ?? /* @__PURE__ */ A(v, {
|
|
973
|
-
direction: {
|
|
974
|
-
base: "vertical",
|
|
975
|
-
sm: "horizontal"
|
|
976
|
-
},
|
|
977
|
-
gap: "sm",
|
|
978
|
-
align: {
|
|
979
|
-
base: "stretch",
|
|
980
|
-
sm: "center"
|
|
981
|
-
},
|
|
982
|
-
justify: "end",
|
|
983
|
-
className: "w-full",
|
|
984
|
-
children: [!!h && /* @__PURE__ */ k(g, {
|
|
985
|
-
type: "button",
|
|
986
|
-
tone: "secondary",
|
|
987
|
-
buttonStyle: "outline",
|
|
988
|
-
onClick: re,
|
|
989
|
-
disabled: H,
|
|
990
|
-
children: B.cancel
|
|
991
|
-
}), !!_ && /* @__PURE__ */ k(g, {
|
|
992
|
-
type: "button",
|
|
993
|
-
tone: z,
|
|
994
|
-
buttonStyle: ne,
|
|
995
|
-
onClick: V,
|
|
996
|
-
disabled: H,
|
|
997
|
-
loading: H,
|
|
998
|
-
strings: { loading: B.loading },
|
|
999
|
-
children: B.confirm
|
|
1000
|
-
})]
|
|
1001
|
-
})
|
|
1002
|
-
})]
|
|
1003
|
-
})]
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
var Qe = w(Ze);
|
|
1007
|
-
Qe.displayName = "ConfirmDialog";
|
|
1008
|
-
//#endregion
|
|
1009
|
-
export { ge as a, de as c, $ as i, X as l, Te as n, Q as o, xe as r, fe as s, Qe as t };
|
|
1010
|
-
|
|
1011
|
-
//# sourceMappingURL=overlays-DUbs1KEi.js.map
|