themelia-react-ui 0.0.0-stage → 1.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 +116 -0
- package/LICENSE +21 -0
- package/README.md +282 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/accordion-B-5Focs8.js +205 -0
- package/dist/accordion-B-5Focs8.js.map +1 -0
- package/dist/action-menu-Cx3SdfbN.js +265 -0
- package/dist/action-menu-Cx3SdfbN.js.map +1 -0
- package/dist/action-presentation.js +11 -0
- package/dist/action-presentation.js.map +1 -0
- package/dist/affordance-geometry.generated-D8Jcfb0G.js +32 -0
- package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +1 -0
- package/dist/ai-artifact-B5tPpXnS.js +1121 -0
- package/dist/ai-artifact-B5tPpXnS.js.map +1 -0
- package/dist/anchored-positioning-DPnKTvNs.js +6 -0
- package/dist/anchored-positioning-DPnKTvNs.js.map +1 -0
- package/dist/app-shell-at8Kt4l_.js +235 -0
- package/dist/app-shell-at8Kt4l_.js.map +1 -0
- package/dist/attachment-BO2R47wn.js +244 -0
- package/dist/attachment-BO2R47wn.js.map +1 -0
- package/dist/auth-OFwWSAap.js +704 -0
- package/dist/auth-OFwWSAap.js.map +1 -0
- package/dist/avatar-Bpzty83c.js +178 -0
- package/dist/avatar-Bpzty83c.js.map +1 -0
- package/dist/badge-BZXZT9wd.js +92 -0
- package/dist/badge-BZXZT9wd.js.map +1 -0
- package/dist/base/accordion.js +3 -0
- package/dist/base/action-menu.js +3 -0
- package/dist/base/attachment.js +3 -0
- package/dist/base/avatar.js +3 -0
- package/dist/base/badge.js +3 -0
- package/dist/base/buttons.js +3 -0
- package/dist/base/cards.js +4 -0
- package/dist/base/carousel.js +251 -0
- package/dist/base/carousel.js.map +1 -0
- package/dist/base/cascader.js +361 -0
- package/dist/base/cascader.js.map +1 -0
- package/dist/base/chart.js +3 -0
- package/dist/base/choice-inputs.js +4 -0
- package/dist/base/code-block.js +3 -0
- package/dist/base/combobox.js +3 -0
- package/dist/base/command.js +3 -0
- package/dist/base/copyable.js +3 -0
- package/dist/base/date-pickers.js +4 -0
- package/dist/base/display.js +8 -0
- package/dist/base/feedback.js +5 -0
- package/dist/base/forms-numeric.js +3 -0
- package/dist/base/forms.js +4 -0
- package/dist/base/inline-edit.js +236 -0
- package/dist/base/inline-edit.js.map +1 -0
- package/dist/base/item.js +3 -0
- package/dist/base/media-gallery.js +3 -0
- package/dist/base/navigation.js +8 -0
- package/dist/base/popover-menu.js +3 -0
- package/dist/base/popover.js +3 -0
- package/dist/base/qr-code.js +63 -0
- package/dist/base/qr-code.js.map +1 -0
- package/dist/base/repeaters.js +620 -0
- package/dist/base/repeaters.js.map +1 -0
- package/dist/base/sheet.js +3 -0
- package/dist/base/sidebar.js +3 -0
- package/dist/base/signature-pad.js +364 -0
- package/dist/base/signature-pad.js.map +1 -0
- package/dist/base/skeleton.js +3 -0
- package/dist/base/spinner.js +3 -0
- package/dist/base/structure.js +3 -0
- package/dist/base/table.js +3 -0
- package/dist/base/text-inputs.js +4 -0
- package/dist/base/toaster.js +102 -0
- package/dist/base/toaster.js.map +1 -0
- package/dist/base/tree.js +3 -0
- package/dist/base/upload-queue.js +3 -0
- package/dist/base/upload.js +5 -0
- package/dist/base/value-inputs.js +3 -0
- package/dist/blocks/admin.js +478 -0
- package/dist/blocks/admin.js.map +1 -0
- package/dist/blocks/ai.js +1021 -0
- package/dist/blocks/ai.js.map +1 -0
- package/dist/blocks/analytics/usage-card.js +3 -0
- package/dist/blocks/analytics.js +1500 -0
- package/dist/blocks/analytics.js.map +1 -0
- package/dist/blocks/collaboration.js +3 -0
- package/dist/blocks/commerce/receipt.js +3 -0
- package/dist/blocks/commerce.js +3393 -0
- package/dist/blocks/commerce.js.map +1 -0
- package/dist/blocks/data-display.js +3 -0
- package/dist/blocks/onboarding.js +128 -0
- package/dist/blocks/onboarding.js.map +1 -0
- package/dist/blocks/planning.js +311 -0
- package/dist/blocks/planning.js.map +1 -0
- package/dist/blocks/timelines.js +3 -0
- package/dist/breadcrumbs-DdQ_I5ra.js +127 -0
- package/dist/breadcrumbs-DdQ_I5ra.js.map +1 -0
- package/dist/button-BS6l5JUw.js +47 -0
- package/dist/button-BS6l5JUw.js.map +1 -0
- package/dist/buttons-Co6GavvM.js +674 -0
- package/dist/buttons-Co6GavvM.js.map +1 -0
- package/dist/cards-Cum56XOF.js +66 -0
- package/dist/cards-Cum56XOF.js.map +1 -0
- package/dist/chart-DVfcwQu6.js +149 -0
- package/dist/chart-DVfcwQu6.js.map +1 -0
- package/dist/checkbox-BavDRjF7.js +34 -0
- package/dist/checkbox-BavDRjF7.js.map +1 -0
- package/dist/choice-inputs-CC7XqPQO.js +619 -0
- package/dist/choice-inputs-CC7XqPQO.js.map +1 -0
- package/dist/code-block-xHKbAJDj.js +183 -0
- package/dist/code-block-xHKbAJDj.js.map +1 -0
- package/dist/collapsible-DsnktFNv.js +81 -0
- package/dist/collapsible-DsnktFNv.js.map +1 -0
- package/dist/collection-content-C4fthJV_.js +53 -0
- package/dist/collection-content-C4fthJV_.js.map +1 -0
- package/dist/combobox-DEbdr-3u.js +273 -0
- package/dist/combobox-DEbdr-3u.js.map +1 -0
- package/dist/combobox-xv3yJbzl.js +850 -0
- package/dist/combobox-xv3yJbzl.js.map +1 -0
- package/dist/command-C0xe7u9B.js +421 -0
- package/dist/command-C0xe7u9B.js.map +1 -0
- package/dist/comments-DviPLnwy.js +1132 -0
- package/dist/comments-DviPLnwy.js.map +1 -0
- package/dist/component-vocabulary.js +26 -0
- package/dist/component-vocabulary.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +36 -0
- package/dist/components/base/accordion/accordion.d.ts +20 -0
- package/dist/components/base/accordion/accordion.strings.d.ts +15 -0
- package/dist/components/base/accordion/accordion.types.d.ts +74 -0
- package/dist/components/base/accordion/index.d.ts +4 -0
- package/dist/components/base/accordion/smart-accordion.d.ts +7 -0
- package/dist/components/base/action-menu/action-menu.d.ts +147 -0
- package/dist/components/base/action-menu/action-menu.strings.d.ts +4 -0
- package/dist/components/base/action-menu/index.d.ts +11 -0
- package/dist/components/base/attachment/attachment.d.ts +17 -0
- package/dist/components/base/attachment/attachment.types.d.ts +49 -0
- package/dist/components/base/attachment/index.d.ts +2 -0
- package/dist/components/base/avatar/avatar.d.ts +24 -0
- package/dist/components/base/avatar/index.d.ts +14 -0
- package/dist/components/base/avatar/stacked-avatars.d.ts +39 -0
- package/dist/components/base/badge/badge.d.ts +22 -0
- package/dist/components/base/badge/badge.recipes.d.ts +20 -0
- package/dist/components/base/badge/index.d.ts +2 -0
- package/dist/components/base/buttons/base-button.d.ts +24 -0
- package/dist/components/base/buttons/button-group.d.ts +28 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +6 -0
- package/dist/components/base/buttons/button.d.ts +47 -0
- package/dist/components/base/buttons/button.recipes.d.ts +23 -0
- package/dist/components/base/buttons/button.variants.d.ts +8 -0
- package/dist/components/base/buttons/index.d.ts +7 -0
- package/dist/components/base/buttons/loader-button.d.ts +40 -0
- package/dist/components/base/buttons/text-button.d.ts +19 -0
- package/dist/components/base/buttons/tooltip-button.d.ts +7 -0
- package/dist/components/base/cards/card-actions.d.ts +41 -0
- package/dist/components/base/cards/card.recipes.d.ts +28 -0
- package/dist/components/base/cards/index.d.ts +5 -0
- package/dist/components/base/cards/partials/card-primitives.d.ts +21 -0
- package/dist/components/base/cards/partials/has-renderable-content.d.ts +8 -0
- package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts +8 -0
- package/dist/components/base/cards/partials/smart-card-alert.d.ts +20 -0
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +33 -0
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +16 -0
- package/dist/components/base/cards/smart-card.d.ts +9 -0
- package/dist/components/base/cards/smart-card.strings.d.ts +18 -0
- package/dist/components/base/cards/smart-card.tokens.d.ts +44 -0
- package/dist/components/base/cards/smart-card.types.d.ts +146 -0
- package/dist/components/base/carousel/carousel.d.ts +105 -0
- package/dist/components/base/carousel/carousel.strings.d.ts +6 -0
- package/dist/components/base/carousel/index.d.ts +2 -0
- package/dist/components/base/cascader/cascader.d.ts +2 -0
- package/dist/components/base/cascader/cascader.types.d.ts +57 -0
- package/dist/components/base/cascader/index.d.ts +2 -0
- package/dist/components/base/chart/chart.d.ts +99 -0
- package/dist/components/base/chart/index.d.ts +9 -0
- package/dist/components/base/choice-inputs/card-checkbox-group.d.ts +27 -0
- package/dist/components/base/choice-inputs/card-radio-group.d.ts +19 -0
- package/dist/components/base/choice-inputs/checkbox.d.ts +17 -0
- package/dist/components/base/choice-inputs/choice-types.d.ts +57 -0
- package/dist/components/base/choice-inputs/index.d.ts +28 -0
- package/dist/components/base/choice-inputs/list-radio-group.d.ts +13 -0
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +27 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +26 -0
- package/dist/components/base/choice-inputs/select.d.ts +94 -0
- package/dist/components/base/choice-inputs/switch-card.d.ts +36 -0
- package/dist/components/base/choice-inputs/switch.d.ts +38 -0
- package/dist/components/base/choice-inputs/toggle-field.d.ts +41 -0
- package/dist/components/base/code-block/code-block.d.ts +3 -0
- package/dist/components/base/code-block/code-block.types.d.ts +46 -0
- package/dist/components/base/code-block/index.d.ts +2 -0
- package/dist/components/base/code-block/use-code-copy.d.ts +6 -0
- package/dist/components/base/combobox/index.d.ts +27 -0
- package/dist/components/base/command/command.d.ts +73 -0
- package/dist/components/base/command/index.d.ts +1 -0
- package/dist/components/base/copyable/copyable.d.ts +36 -0
- package/dist/components/base/copyable/index.d.ts +1 -0
- package/dist/components/base/date-pickers/date-picker-footer.d.ts +14 -0
- package/dist/components/base/date-pickers/date-picker-header.d.ts +10 -0
- package/dist/components/base/date-pickers/date-picker-helpers.d.ts +87 -0
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +10 -0
- package/dist/components/base/date-pickers/date-picker-multiple.d.ts +20 -0
- package/dist/components/base/date-pickers/date-picker-range.d.ts +15 -0
- package/dist/components/base/date-pickers/date-picker-single.d.ts +15 -0
- package/dist/components/base/date-pickers/date-picker.d.ts +3 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +18 -0
- package/dist/components/base/date-pickers/date-pickers.strings.d.ts +14 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +285 -0
- package/dist/components/base/date-pickers/index.d.ts +7 -0
- package/dist/components/base/date-pickers/month-year-picker.d.ts +4 -0
- package/dist/components/base/date-pickers/time-picker.d.ts +70 -0
- package/dist/components/base/display/alert-dialog.d.ts +25 -0
- package/dist/components/base/display/boolean-indicator.d.ts +25 -0
- package/dist/components/base/display/collapsible.d.ts +21 -0
- package/dist/components/base/display/content-block.d.ts +73 -0
- package/dist/components/base/display/content-block.strings.d.ts +5 -0
- package/dist/components/base/display/date-block.d.ts +70 -0
- package/dist/components/base/display/dialog.d.ts +35 -0
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +45 -0
- package/dist/components/base/display/icon-badge/index.d.ts +1 -0
- package/dist/components/base/display/icon-size.d.ts +5 -0
- package/dist/components/base/display/index.d.ts +31 -0
- package/dist/components/base/display/placeholder-pattern.d.ts +7 -0
- package/dist/components/base/display/scroll-area.d.ts +12 -0
- package/dist/components/base/display/separator.d.ts +10 -0
- package/dist/components/base/display/surface-title.d.ts +10 -0
- package/dist/components/base/display/tooltip.d.ts +28 -0
- package/dist/components/base/display/visually-hidden.d.ts +14 -0
- package/dist/components/base/feedback/alert.d.ts +49 -0
- package/dist/components/base/feedback/empty.d.ts +48 -0
- package/dist/components/base/feedback/index.d.ts +27 -0
- package/dist/components/base/feedback/progress.d.ts +81 -0
- package/dist/components/base/feedback/progress.strings.d.ts +5 -0
- package/dist/components/base/feedback/state-display.d.ts +39 -0
- package/dist/components/base/forms/controlled-form-field.d.ts +32 -0
- package/dist/components/base/forms/controlled-form-field.strings.d.ts +7 -0
- package/dist/components/base/forms/form-field.d.ts +38 -0
- package/dist/components/base/forms/form-sizing.d.ts +86 -0
- package/dist/components/base/forms/index.d.ts +4 -0
- package/dist/components/base/forms/operation-password-form.d.ts +16 -0
- package/dist/components/base/forms/workflow.d.ts +68 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +47 -0
- package/dist/components/base/forms-numeric/currency-input.d.ts +44 -0
- package/dist/components/base/forms-numeric/decimal-input.d.ts +53 -0
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +79 -0
- package/dist/components/base/forms-numeric/index.d.ts +21 -0
- package/dist/components/base/forms-numeric/money-input.d.ts +67 -0
- package/dist/components/base/forms-numeric/money-input.strings.d.ts +6 -0
- package/dist/components/base/forms-numeric/percentage-input.d.ts +8 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +54 -0
- package/dist/components/base/inline-edit/index.d.ts +2 -0
- package/dist/components/base/inline-edit/inline-edit.d.ts +81 -0
- package/dist/components/base/inline-edit/inline-edit.recipes.d.ts +6 -0
- package/dist/components/base/item/index.d.ts +2 -0
- package/dist/components/base/item/item.d.ts +12 -0
- package/dist/components/base/item/item.types.d.ts +100 -0
- package/dist/components/base/media-gallery/index.d.ts +2 -0
- package/dist/components/base/media-gallery/media-gallery.d.ts +45 -0
- package/dist/components/base/navigation/breadcrumbs.d.ts +37 -0
- package/dist/components/base/navigation/dropdown-menu.d.ts +45 -0
- package/dist/components/base/navigation/index.d.ts +21 -0
- package/dist/components/base/navigation/language-switcher.d.ts +12 -0
- package/dist/components/base/navigation/navigation-tabs.d.ts +40 -0
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +43 -0
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +88 -0
- package/dist/components/base/navigation/pagination.d.ts +61 -0
- package/dist/components/base/navigation/tab-scroll-viewport.d.ts +12 -0
- package/dist/components/base/navigation/tabs.d.ts +23 -0
- package/dist/components/base/popover/collection-content.d.ts +22 -0
- package/dist/components/base/popover/index.d.ts +1 -0
- package/dist/components/base/popover/popover.d.ts +54 -0
- package/dist/components/base/popover/popover.recipes.d.ts +29 -0
- package/dist/components/base/popover-menu/index.d.ts +3 -0
- package/dist/components/base/popover-menu/popover-menu.d.ts +82 -0
- package/dist/components/base/popover-menu/popover-menu.types.d.ts +30 -0
- package/dist/components/base/qr-code/index.d.ts +8 -0
- package/dist/components/base/qr-code/qr-code.d.ts +13 -0
- package/dist/components/base/repeaters/index.d.ts +21 -0
- package/dist/components/base/repeaters/key-value-editor.d.ts +27 -0
- package/dist/components/base/repeaters/localized-object-field.d.ts +35 -0
- package/dist/components/base/repeaters/localized-string-field.d.ts +25 -0
- package/dist/components/base/repeaters/localized-string-repeater.d.ts +44 -0
- package/dist/components/base/repeaters/object-repeater.d.ts +66 -0
- package/dist/components/base/repeaters/repeater.d.ts +87 -0
- package/dist/components/base/repeaters/repeaters.strings.d.ts +16 -0
- package/dist/components/base/repeaters/string-repeater.d.ts +65 -0
- package/dist/components/base/repeaters/string-repeater.utils.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +1 -0
- package/dist/components/base/sheet/sheet.d.ts +35 -0
- package/dist/components/base/sidebar/index.d.ts +6 -0
- package/dist/components/base/sidebar/sidebar.d.ts +135 -0
- package/dist/components/base/signature-pad/index.d.ts +4 -0
- package/dist/components/base/signature-pad/signature-pad.d.ts +4 -0
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +66 -0
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +8 -0
- package/dist/components/base/skeleton/index.d.ts +14 -0
- package/dist/components/base/skeleton/skeleton.d.ts +54 -0
- package/dist/components/base/spinner/index.d.ts +1 -0
- package/dist/components/base/spinner/spinner.d.ts +32 -0
- package/dist/components/base/structure/adaptive-grid.d.ts +3 -0
- package/dist/components/base/structure/grid-cell.d.ts +3 -0
- package/dist/components/base/structure/grid.d.ts +3 -0
- package/dist/components/base/structure/index.d.ts +5 -0
- package/dist/components/base/structure/stack.d.ts +3 -0
- package/dist/components/base/structure/structure.context.d.ts +6 -0
- package/dist/components/base/structure/structure.recipes.d.ts +33 -0
- package/dist/components/base/structure/structure.responsive.d.ts +5 -0
- package/dist/components/base/structure/structure.types.d.ts +51 -0
- package/dist/components/base/table/index.d.ts +18 -0
- package/dist/components/base/text-inputs/hooks/index.d.ts +1 -0
- package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +48 -0
- package/dist/components/base/text-inputs/index.d.ts +21 -0
- package/dist/components/base/text-inputs/input-group.d.ts +46 -0
- package/dist/components/base/text-inputs/input.d.ts +45 -0
- package/dist/components/base/text-inputs/password-input.d.ts +28 -0
- package/dist/components/base/text-inputs/slug-field.d.ts +21 -0
- package/dist/components/base/text-inputs/textarea.d.ts +37 -0
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/base/toaster/toaster.d.ts +6 -0
- package/dist/components/base/tree/hierarchy.d.ts +11 -0
- package/dist/components/base/tree/index.d.ts +2 -0
- package/dist/components/base/tree/tree.d.ts +3 -0
- package/dist/components/base/tree/tree.types.d.ts +47 -0
- package/dist/components/base/upload/avatar-upload.d.ts +39 -0
- package/dist/components/base/upload/dropzone.d.ts +40 -0
- package/dist/components/base/upload/file-picker-input.d.ts +15 -0
- package/dist/components/base/upload/file-upload.d.ts +9 -0
- package/dist/components/base/upload/file-upload.strings.d.ts +18 -0
- package/dist/components/base/upload/file-upload.types.d.ts +68 -0
- package/dist/components/base/upload/file-upload.validation.d.ts +21 -0
- package/dist/components/base/upload/image-upload.d.ts +57 -0
- package/dist/components/base/upload/index.d.ts +26 -0
- package/dist/components/base/upload/use-file-drop-target.d.ts +22 -0
- package/dist/components/base/upload-queue/index.d.ts +3 -0
- package/dist/components/base/upload-queue/upload-progress-list.d.ts +55 -0
- package/dist/components/base/upload-queue/upload-tray.d.ts +46 -0
- package/dist/components/base/value-inputs/color-input.d.ts +26 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +19 -0
- package/dist/components/base/value-inputs/index.d.ts +25 -0
- package/dist/components/base/value-inputs/phone-input.d.ts +48 -0
- package/dist/components/base/value-inputs/slider.d.ts +59 -0
- package/dist/components/base/value-inputs/tags-input.d.ts +67 -0
- package/dist/components/blocks/admin/action-surfaces/index.d.ts +127 -0
- package/dist/components/blocks/admin/admin.strings.d.ts +11 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.strings.d.ts +16 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +58 -0
- package/dist/components/blocks/admin/api-key-list/index.d.ts +3 -0
- package/dist/components/blocks/admin/index.d.ts +4 -0
- package/dist/components/blocks/admin/role-permission/index.d.ts +2 -0
- package/dist/components/blocks/admin/role-permission/role-permission.d.ts +5 -0
- package/dist/components/blocks/admin/role-permission/types.d.ts +26 -0
- package/dist/components/blocks/ai/ai-agent/ai-agent.d.ts +5 -0
- package/dist/components/blocks/ai/ai-agent/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-agent/types.d.ts +30 -0
- package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +5 -0
- package/dist/components/blocks/ai/ai-artifact/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-artifact/types.d.ts +50 -0
- package/dist/components/blocks/ai/ai-attachment/ai-attachment.d.ts +5 -0
- package/dist/components/blocks/ai/ai-attachment/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-attachment/types.d.ts +35 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +5 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +36 -0
- package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-citation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-citation/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-classification/ai-classification.d.ts +2 -0
- package/dist/components/blocks/ai/ai-classification/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-classification/types.d.ts +27 -0
- package/dist/components/blocks/ai/ai-code-block/ai-code-block.d.ts +6 -0
- package/dist/components/blocks/ai/ai-code-block/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-code-block/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-confidence/ai-confidence.d.ts +5 -0
- package/dist/components/blocks/ai/ai-confidence/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-confidence/types.d.ts +25 -0
- package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-confirmation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-confirmation/types.d.ts +40 -0
- package/dist/components/blocks/ai/ai-feedback/ai-feedback.d.ts +5 -0
- package/dist/components/blocks/ai/ai-feedback/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-feedback/types.d.ts +24 -0
- package/dist/components/blocks/ai/ai-file-tree/ai-file-tree.d.ts +5 -0
- package/dist/components/blocks/ai/ai-file-tree/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +59 -0
- package/dist/components/blocks/ai/ai-inline-citation/ai-inline-citation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-inline-citation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +22 -0
- package/dist/components/blocks/ai/ai-message-bubble/ai-message-bubble.d.ts +6 -0
- package/dist/components/blocks/ai/ai-message-bubble/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-message-bubble/types.d.ts +35 -0
- package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +5 -0
- package/dist/components/blocks/ai/ai-package-info/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-package-info/types.d.ts +39 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts +5 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/types.d.ts +26 -0
- package/dist/components/blocks/ai/ai-reasoning/ai-reasoning.d.ts +5 -0
- package/dist/components/blocks/ai/ai-reasoning/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +32 -0
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +5 -0
- package/dist/components/blocks/ai/ai-shimmer/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +11 -0
- package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +5 -0
- package/dist/components/blocks/ai/ai-sources/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +44 -0
- package/dist/components/blocks/ai/ai-summary/ai-summary.d.ts +2 -0
- package/dist/components/blocks/ai/ai-summary/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-summary/types.d.ts +32 -0
- package/dist/components/blocks/ai/ai-task/ai-task.d.ts +5 -0
- package/dist/components/blocks/ai/ai-task/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-task/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-token-usage/ai-token-usage.d.ts +5 -0
- package/dist/components/blocks/ai/ai-token-usage/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-token-usage/types.d.ts +22 -0
- package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +5 -0
- package/dist/components/blocks/ai/ai-tool-call/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai.strings.d.ts +36 -0
- package/dist/components/blocks/ai/index.d.ts +24 -0
- package/dist/components/blocks/ai/use-copy-feedback.d.ts +6 -0
- package/dist/components/blocks/analytics/activity-heatmap/activity-heatmap.d.ts +5 -0
- package/dist/components/blocks/analytics/activity-heatmap/index.d.ts +2 -0
- package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +20 -0
- package/dist/components/blocks/analytics/analytics.strings.d.ts +35 -0
- package/dist/components/blocks/analytics/atoms/metric-skeleton.d.ts +13 -0
- package/dist/components/blocks/analytics/atoms/metric-sparkline.d.ts +15 -0
- package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +15 -0
- package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +42 -0
- package/dist/components/blocks/analytics/chart-card/index.d.ts +1 -0
- package/dist/components/blocks/analytics/format-metric-value.d.ts +8 -0
- package/dist/components/blocks/analytics/index.d.ts +35 -0
- package/dist/components/blocks/analytics/metric/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +28 -0
- package/dist/components/blocks/analytics/metric-bar/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-bar/metric-bar.d.ts +22 -0
- package/dist/components/blocks/analytics/metric-comparison/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +26 -0
- package/dist/components/blocks/analytics/metric-gradient/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-gradient/metric-gradient.d.ts +19 -0
- package/dist/components/blocks/analytics/metric-grid/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +33 -0
- package/dist/components/blocks/analytics/metric-micro-grid/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-micro-grid/metric-micro-grid.d.ts +23 -0
- package/dist/components/blocks/analytics/time-ruler/index.d.ts +2 -0
- package/dist/components/blocks/analytics/time-ruler/time-ruler.d.ts +5 -0
- package/dist/components/blocks/analytics/time-ruler/types.d.ts +32 -0
- package/dist/components/blocks/analytics/types.d.ts +83 -0
- package/dist/components/blocks/analytics/usage-card/index.d.ts +3 -0
- package/dist/components/blocks/analytics/usage-card/types.d.ts +52 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.d.ts +6 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.data.d.ts +19 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +22 -0
- package/dist/components/blocks/collaboration/index.d.ts +1 -0
- package/dist/components/blocks/collaboration/message/index.d.ts +2 -0
- package/dist/components/blocks/collaboration/message/message.d.ts +8 -0
- package/dist/components/blocks/collaboration/message/message.types.d.ts +30 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +5 -0
- package/dist/components/blocks/commerce/address-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/address-card/types.d.ts +43 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +12 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +36 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +53 -0
- package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +5 -0
- package/dist/components/blocks/commerce/coupon-input/index.d.ts +2 -0
- package/dist/components/blocks/commerce/coupon-input/types.d.ts +35 -0
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +5 -0
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -0
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +27 -0
- package/dist/components/blocks/commerce/format-signed-amount.d.ts +22 -0
- package/dist/components/blocks/commerce/giftcard-card/giftcard-card.d.ts +62 -0
- package/dist/components/blocks/commerce/giftcard-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +9 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +7 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +11 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/types.d.ts +83 -0
- package/dist/components/blocks/commerce/index.d.ts +34 -0
- package/dist/components/blocks/commerce/inventory-level/index.d.ts +3 -0
- package/dist/components/blocks/commerce/inventory-level/inventory-level.d.ts +5 -0
- package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +10 -0
- package/dist/components/blocks/commerce/inventory-level/types.d.ts +20 -0
- package/dist/components/blocks/commerce/inventory-section/index.d.ts +2 -0
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +5 -0
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +105 -0
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +51 -0
- package/dist/components/blocks/commerce/invoice-line-items/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +64 -0
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +28 -0
- package/dist/components/blocks/commerce/loyalty-points/index.d.ts +2 -0
- package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +5 -0
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +32 -0
- package/dist/components/blocks/commerce/order-status/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-status/order-status.d.ts +5 -0
- package/dist/components/blocks/commerce/order-status/types.d.ts +35 -0
- package/dist/components/blocks/commerce/order-timeline/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +5 -0
- package/dist/components/blocks/commerce/order-timeline/types.d.ts +22 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +5 -0
- package/dist/components/blocks/commerce/payment-method/types.d.ts +33 -0
- package/dist/components/blocks/commerce/payment-timeline/index.d.ts +2 -0
- package/dist/components/blocks/commerce/payment-timeline/payment-timeline.d.ts +5 -0
- package/dist/components/blocks/commerce/payment-timeline/types.d.ts +15 -0
- package/dist/components/blocks/commerce/receipt/index.d.ts +3 -0
- package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +2 -0
- package/dist/components/blocks/commerce/receipt/receipt.d.ts +3 -0
- package/dist/components/blocks/commerce/receipt/types.d.ts +42 -0
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -0
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +5 -0
- package/dist/components/blocks/commerce/refund-status/types.d.ts +37 -0
- package/dist/components/blocks/commerce/seo-listing/index.d.ts +3 -0
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +5 -0
- package/dist/components/blocks/commerce/seo-listing/seo-listing-score.d.ts +5 -0
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +92 -0
- package/dist/components/blocks/commerce/shipment-tracking/index.d.ts +2 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +5 -0
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +44 -0
- package/dist/components/blocks/commerce/subscription-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/subscription-summary/types.d.ts +39 -0
- package/dist/components/blocks/commerce/tax-breakdown/index.d.ts +2 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +5 -0
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +34 -0
- package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -0
- package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +29 -0
- package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +5 -0
- package/dist/components/blocks/commerce/vendor-profile/index.d.ts +3 -0
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +86 -0
- package/dist/components/blocks/commerce/vendor-profile/vendor-profile.d.ts +2 -0
- package/dist/components/blocks/commerce/voucher-entry/index.d.ts +2 -0
- package/dist/components/blocks/commerce/voucher-entry/types.d.ts +33 -0
- package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +6 -0
- package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +19 -0
- package/dist/components/blocks/data-display/dense-info-card/index.d.ts +7 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/types.d.ts +183 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.d.ts +2 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.strings.d.ts +19 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +86 -0
- package/dist/components/blocks/data-display/empty-state/index.d.ts +5 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +25 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/search-glass.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +11 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/types.d.ts +4 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/users-circle.d.ts +9 -0
- package/dist/components/blocks/data-display/index.d.ts +6 -0
- package/dist/components/blocks/data-display/inline-stat/index.d.ts +1 -0
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +35 -0
- package/dist/components/blocks/data-display/metadata/index.d.ts +4 -0
- package/dist/components/blocks/data-display/metadata/metadata-list.d.ts +78 -0
- package/dist/components/blocks/data-display/metadata/metadata-list.strings.d.ts +18 -0
- package/dist/components/blocks/data-display/metadata/metadata-value.d.ts +142 -0
- package/dist/components/blocks/data-display/relationship-card-frame.d.ts +40 -0
- package/dist/components/blocks/onboarding/checklist/checklist.d.ts +2 -0
- package/dist/components/blocks/onboarding/checklist/checklist.strings.d.ts +15 -0
- package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +64 -0
- package/dist/components/blocks/onboarding/checklist/index.d.ts +4 -0
- package/dist/components/blocks/onboarding/checklist/partials/step-status-indicator.d.ts +12 -0
- package/dist/components/blocks/onboarding/index.d.ts +7 -0
- package/dist/components/blocks/planning/index.d.ts +3 -0
- package/dist/components/blocks/planning/task-card.d.ts +3 -0
- package/dist/components/blocks/planning/task-card.strings.d.ts +15 -0
- package/dist/components/blocks/planning/task-card.types.d.ts +66 -0
- package/dist/components/blocks/timelines/changelog/changelog-timeline.d.ts +5 -0
- package/dist/components/blocks/timelines/changelog/index.d.ts +2 -0
- package/dist/components/blocks/timelines/changelog/types.d.ts +33 -0
- package/dist/components/blocks/timelines/index.d.ts +5 -0
- package/dist/components/blocks/timelines/milestones/index.d.ts +2 -0
- package/dist/components/blocks/timelines/milestones/milestones-timeline.d.ts +5 -0
- package/dist/components/blocks/timelines/milestones/types.d.ts +32 -0
- package/dist/components/blocks/timelines/shared/index.d.ts +1 -0
- package/dist/components/blocks/timelines/shared/timeline.d.ts +40 -0
- package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -0
- package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +9 -0
- package/dist/components/blocks/timelines/steps-card/types.d.ts +38 -0
- package/dist/components/features/activities/activities-feed.d.ts +5 -0
- package/dist/components/features/activities/activities.config.d.ts +6 -0
- package/dist/components/features/activities/activities.strings.d.ts +38 -0
- package/dist/components/features/activities/activities.types.d.ts +431 -0
- package/dist/components/features/activities/activity-event-adapter.d.ts +38 -0
- package/dist/components/features/activities/activity-log.d.ts +6 -0
- package/dist/components/features/activities/hooks/index.d.ts +2 -0
- package/dist/components/features/activities/hooks/use-activity-feed.d.ts +44 -0
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +22 -0
- package/dist/components/features/activities/index.d.ts +8 -0
- package/dist/components/features/activities/partials/activity-actions-menu.d.ts +11 -0
- package/dist/components/features/activities/partials/activity-changes.d.ts +8 -0
- package/dist/components/features/activities/partials/activity-date-label.d.ts +9 -0
- package/dist/components/features/activities/partials/activity-empty-state.d.ts +9 -0
- package/dist/components/features/activities/partials/activity-headline.d.ts +20 -0
- package/dist/components/features/activities/partials/activity-marker.d.ts +25 -0
- package/dist/components/features/activities/partials/activity-resource-tag.d.ts +11 -0
- package/dist/components/features/activities/partials/activity-row.d.ts +68 -0
- package/dist/components/features/activities/partials/index.d.ts +8 -0
- package/dist/components/features/activities/partials/tone-tokens.d.ts +25 -0
- package/dist/components/features/ai-chat/ai-chat.d.ts +81 -0
- package/dist/components/features/ai-chat/ai-chat.strings.d.ts +56 -0
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +170 -0
- package/dist/components/features/ai-chat/hooks/index.d.ts +1 -0
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +15 -0
- package/dist/components/features/ai-chat/index.d.ts +5 -0
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +15 -0
- package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +28 -0
- package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts +22 -0
- package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +21 -0
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +59 -0
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +19 -0
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +18 -0
- package/dist/components/features/ai-chat/partials/index.d.ts +7 -0
- package/dist/components/features/async-preview/async-preview.d.ts +84 -0
- package/dist/components/features/async-preview/async-preview.strings.d.ts +14 -0
- package/dist/components/features/async-preview/async-preview.types.d.ts +133 -0
- package/dist/components/features/async-preview/hooks/index.d.ts +1 -0
- package/dist/components/features/async-preview/hooks/use-async-preview.d.ts +8 -0
- package/dist/components/features/async-preview/index.d.ts +6 -0
- package/dist/components/features/async-preview/partials/index.d.ts +1 -0
- package/dist/components/features/async-preview/preview-trigger-cell.d.ts +45 -0
- package/dist/components/features/combobox/async-resource-combobox.d.ts +94 -0
- package/dist/components/features/combobox/combobox.d.ts +20 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +14 -0
- package/dist/components/features/combobox/components/combobox-dropdown.d.ts +57 -0
- package/dist/components/features/combobox/components/error-message.d.ts +15 -0
- package/dist/components/features/combobox/components/highlighted-text.d.ts +14 -0
- package/dist/components/features/combobox/components/index.d.ts +13 -0
- package/dist/components/features/combobox/components/loading-more.d.ts +15 -0
- package/dist/components/features/combobox/components/status-content.d.ts +21 -0
- package/dist/components/features/combobox/constants.d.ts +19 -0
- package/dist/components/features/combobox/hooks/index.d.ts +2 -0
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +30 -0
- package/dist/components/features/combobox/hooks/use-debounced-search.d.ts +10 -0
- package/dist/components/features/combobox/hooks/use-grouped-items.d.ts +9 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +12 -0
- package/dist/components/features/combobox/index.d.ts +13 -0
- package/dist/components/features/combobox/types.d.ts +184 -0
- package/dist/components/features/comments/comments-provider.d.ts +15 -0
- package/dist/components/features/comments/comments.d.ts +2 -0
- package/dist/components/features/comments/comments.strings.d.ts +91 -0
- package/dist/components/features/comments/comments.types.d.ts +369 -0
- package/dist/components/features/comments/hooks/index.d.ts +4 -0
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +28 -0
- package/dist/components/features/comments/hooks/use-comments.d.ts +34 -0
- package/dist/components/features/comments/index.d.ts +8 -0
- package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +23 -0
- package/dist/components/features/comments/partials/comment-composer.d.ts +12 -0
- package/dist/components/features/comments/partials/comment-content.d.ts +13 -0
- package/dist/components/features/comments/partials/comment-empty.d.ts +12 -0
- package/dist/components/features/comments/partials/comment-item.d.ts +3 -0
- package/dist/components/features/comments/partials/comment-timeline.d.ts +3 -0
- package/dist/components/features/comments/partials/index.d.ts +9 -0
- package/dist/components/features/data-view/data-view-filtering.d.ts +3 -0
- package/dist/components/features/data-view/data-view.d.ts +7 -0
- package/dist/components/features/data-view/data-view.strings.d.ts +9 -0
- package/dist/components/features/data-view/data-view.types.d.ts +191 -0
- package/dist/components/features/data-view/hooks/index.d.ts +1 -0
- package/dist/components/features/data-view/hooks/use-data-view.d.ts +2 -0
- package/dist/components/features/data-view/index.d.ts +4 -0
- package/dist/components/features/email-composer/document.d.ts +8 -0
- package/dist/components/features/email-composer/email-composer.d.ts +2 -0
- package/dist/components/features/email-composer/email-html.d.ts +5 -0
- package/dist/components/features/email-composer/engine.d.ts +18 -0
- package/dist/components/features/email-composer/http.d.ts +6 -0
- package/dist/components/features/email-composer/index.d.ts +6 -0
- package/dist/components/features/email-composer/partials/body-editor.d.ts +11 -0
- package/dist/components/features/email-composer/partials/data-status.d.ts +8 -0
- package/dist/components/features/email-composer/partials/html-preview.d.ts +6 -0
- package/dist/components/features/email-composer/partials/recipients.d.ts +14 -0
- package/dist/components/features/email-composer/partials/variables.d.ts +11 -0
- package/dist/components/features/email-composer/strings.d.ts +79 -0
- package/dist/components/features/email-composer/types.d.ts +195 -0
- package/dist/components/features/email-composer/use-composer.d.ts +119 -0
- package/dist/components/features/event-calendar/colors.d.ts +29 -0
- package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar-event-card.d.ts +16 -0
- package/dist/components/features/event-calendar/event-calendar-header.d.ts +8 -0
- package/dist/components/features/event-calendar/event-calendar-legend.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +350 -0
- package/dist/components/features/event-calendar/index.d.ts +11 -0
- package/dist/components/features/event-calendar/use-event-calendar-data.d.ts +15 -0
- package/dist/components/features/event-calendar/use-event-calendar.d.ts +24 -0
- package/dist/components/features/filters/facets/async-select-facet.d.ts +28 -0
- package/dist/components/features/filters/facets/date-facet.d.ts +18 -0
- package/dist/components/features/filters/facets/range-facet.d.ts +30 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +27 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +19 -0
- package/dist/components/features/filters/facets/tags-facet.d.ts +27 -0
- package/dist/components/features/filters/filter-context.d.ts +61 -0
- package/dist/components/features/filters/filter-layout.d.ts +16 -0
- package/dist/components/features/filters/filter-query.d.ts +21 -0
- package/dist/components/features/filters/filters.strings.d.ts +103 -0
- package/dist/components/features/filters/filters.types.d.ts +222 -0
- package/dist/components/features/filters/hooks/index.d.ts +3 -0
- package/dist/components/features/filters/hooks/use-async-options.d.ts +16 -0
- package/dist/components/features/filters/hooks/use-filter-groups.d.ts +16 -0
- package/dist/components/features/filters/index.d.ts +42 -0
- package/dist/components/features/filters/operator-options.d.ts +9 -0
- package/dist/components/features/filters/partials/active-filter-item.d.ts +37 -0
- package/dist/components/features/filters/partials/async-filter-content.d.ts +21 -0
- package/dist/components/features/filters/partials/date-filter-content.d.ts +14 -0
- package/dist/components/features/filters/partials/filter-error-boundary.d.ts +9 -0
- package/dist/components/features/filters/partials/filter-list-content.d.ts +24 -0
- package/dist/components/features/filters/partials/filter-list-item.d.ts +19 -0
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +22 -0
- package/dist/components/features/filters/partials/filter-pill.d.ts +26 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +36 -0
- package/dist/components/features/filters/partials/filter-tabs.d.ts +14 -0
- package/dist/components/features/filters/partials/filter-value-display.d.ts +21 -0
- package/dist/components/features/filters/partials/filters-button.d.ts +32 -0
- package/dist/components/features/filters/partials/index.d.ts +14 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +28 -0
- package/dist/components/features/filters/partials/search-filters-list.d.ts +25 -0
- package/dist/components/features/filters/partials/tags-filter-content.d.ts +28 -0
- package/dist/components/features/filters/utils/filter-utils.d.ts +37 -0
- package/dist/components/features/filters/validators.d.ts +63 -0
- package/dist/components/features/global-search/global-search-dialog.d.ts +13 -0
- package/dist/components/features/global-search/global-search.d.ts +52 -0
- package/dist/components/features/global-search/global-search.strings.d.ts +36 -0
- package/dist/components/features/global-search/global-search.types.d.ts +105 -0
- package/dist/components/features/global-search/hooks/index.d.ts +2 -0
- package/dist/components/features/global-search/hooks/use-global-search.d.ts +33 -0
- package/dist/components/features/global-search/index.d.ts +9 -0
- package/dist/components/features/global-search/partials/global-search-empty-state.d.ts +7 -0
- package/dist/components/features/global-search/partials/global-search-footer.d.ts +13 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +12 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +17 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +16 -0
- package/dist/components/features/global-search/partials/global-search-tabs.d.ts +13 -0
- package/dist/components/features/global-search/partials/index.d.ts +12 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +8 -0
- package/dist/components/features/kanban/hooks/index.d.ts +1 -0
- package/dist/components/features/kanban/hooks/use-kanban.d.ts +32 -0
- package/dist/components/features/kanban/index.d.ts +5 -0
- package/dist/components/features/kanban/kanban-context.d.ts +25 -0
- package/dist/components/features/kanban/kanban-keyboard.d.ts +10 -0
- package/dist/components/features/kanban/kanban.d.ts +38 -0
- package/dist/components/features/kanban/kanban.strings.d.ts +24 -0
- package/dist/components/features/kanban/kanban.types.d.ts +168 -0
- package/dist/components/features/map/index.d.ts +13 -0
- package/dist/components/features/map/map.d.ts +166 -0
- package/dist/components/features/map/place-autocomplete.d.ts +97 -0
- package/dist/components/features/map/public-leaflet.types.d.ts +71 -0
- package/dist/components/features/map/use-map-color-scheme.d.ts +2 -0
- package/dist/components/features/media-library/hooks/index.d.ts +1 -0
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +5 -0
- package/dist/components/features/media-library/index.d.ts +6 -0
- package/dist/components/features/media-library/media-library.d.ts +3 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +124 -0
- package/dist/components/features/media-library/media-library.types.d.ts +568 -0
- package/dist/components/features/media-library/media-resource-gallery.d.ts +2 -0
- package/dist/components/features/media-library/partials/index.d.ts +1 -0
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +10 -0
- package/dist/components/features/mentions/hooks/index.d.ts +2 -0
- package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +41 -0
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +35 -0
- package/dist/components/features/mentions/index.d.ts +5 -0
- package/dist/components/features/mentions/mentions.strings.d.ts +26 -0
- package/dist/components/features/mentions/mentions.types.d.ts +100 -0
- package/dist/components/features/mentions/partials/index.d.ts +4 -0
- package/dist/components/features/mentions/partials/mention-chip.d.ts +29 -0
- package/dist/components/features/mentions/partials/mention-content.d.ts +22 -0
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +36 -0
- package/dist/components/features/mentions/partials/mention-picker.d.ts +31 -0
- package/dist/components/features/mentions/utils/build-mention-html.d.ts +24 -0
- package/dist/components/features/mentions/utils/index.d.ts +3 -0
- package/dist/components/features/mentions/utils/parse-mentions-from-html.d.ts +13 -0
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +4 -0
- package/dist/components/features/overlays/dialog.d.ts +4 -0
- package/dist/components/features/overlays/drawer.d.ts +4 -0
- package/dist/components/features/overlays/hooks/index.d.ts +2 -0
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +24 -0
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +36 -0
- package/dist/components/features/overlays/index.d.ts +6 -0
- package/dist/components/features/overlays/overlays.strings.d.ts +19 -0
- package/dist/components/features/overlays/overlays.types.d.ts +169 -0
- package/dist/components/features/products/components/index.d.ts +17 -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-matrix.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-overview.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 +5 -0
- package/dist/components/features/products/components/product-variant-details.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-editor.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-bulk-table.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-manager.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-table.d.ts +5 -0
- package/dist/components/features/products/index.d.ts +3 -0
- package/dist/components/features/products/partials/index.d.ts +7 -0
- package/dist/components/features/products/partials/product-actions.d.ts +10 -0
- package/dist/components/features/products/partials/product-empty-state.d.ts +10 -0
- package/dist/components/features/products/partials/product-metric-tile.d.ts +4 -0
- package/dist/components/features/products/partials/product-rows.d.ts +35 -0
- package/dist/components/features/products/partials/product-tone.d.ts +8 -0
- package/dist/components/features/products/partials/product-values.d.ts +1 -0
- package/dist/components/features/products/partials/product-variant-table-parts.d.ts +28 -0
- package/dist/components/features/products/products.strings.d.ts +308 -0
- package/dist/components/features/products/products.types.d.ts +906 -0
- package/dist/components/features/questionnaire/index.d.ts +3 -0
- package/dist/components/features/questionnaire/questionnaire-control.d.ts +3 -0
- package/dist/components/features/questionnaire/questionnaire.d.ts +2 -0
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +98 -0
- package/dist/components/features/questionnaire/questionnaire.utils.d.ts +5 -0
- package/dist/components/features/resource/index.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +8 -0
- package/dist/components/features/resource/resource.strings.d.ts +12 -0
- package/dist/components/features/resource/resource.types.d.ts +161 -0
- package/dist/components/features/resource-assignment/hooks/index.d.ts +2 -0
- package/dist/components/features/resource-assignment/hooks/use-shared-resource-card.d.ts +32 -0
- package/dist/components/features/resource-assignment/index.d.ts +6 -0
- package/dist/components/features/resource-assignment/partials/default-shared-resource-partials.d.ts +31 -0
- package/dist/components/features/resource-assignment/partials/index.d.ts +1 -0
- package/dist/components/features/resource-assignment/resource-assignment.d.ts +12 -0
- package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +17 -0
- package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +193 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +6 -0
- package/dist/components/features/rich-text-editor/index.d.ts +5 -0
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +28 -0
- package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts +32 -0
- package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +7 -0
- package/dist/components/features/rich-text-editor/partials/index.d.ts +7 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +8 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +3 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +33 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.d.ts +3 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +32 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +111 -0
- package/dist/components/features/schema-form/hooks/index.d.ts +1 -0
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +23 -0
- package/dist/components/features/schema-form/index.d.ts +5 -0
- package/dist/components/features/schema-form/partials/index.d.ts +3 -0
- package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +23 -0
- package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +12 -0
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +12 -0
- package/dist/components/features/schema-form/schema-form.d.ts +5 -0
- package/dist/components/features/schema-form/schema-form.strings.d.ts +11 -0
- package/dist/components/features/schema-form/schema-form.types.d.ts +271 -0
- package/dist/components/features/schema-form/schema-form.utils.d.ts +18 -0
- package/dist/components/features/suggestions/hooks/index.d.ts +1 -0
- package/dist/components/features/suggestions/hooks/use-suggestions.d.ts +9 -0
- package/dist/components/features/suggestions/index.d.ts +4 -0
- package/dist/components/features/suggestions/suggestions.d.ts +5 -0
- package/dist/components/features/suggestions/suggestions.strings.d.ts +16 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts +79 -0
- package/dist/components/features/sync/index.d.ts +3 -0
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +5 -0
- package/dist/components/features/sync/sync.strings.d.ts +18 -0
- package/dist/components/features/sync/sync.types.d.ts +44 -0
- package/dist/components/features/table/column-visibility-toggle.d.ts +5 -0
- package/dist/components/features/table/data-table.d.ts +6 -0
- package/dist/components/features/table/filter-bar.d.ts +5 -0
- package/dist/components/features/table/hooks.d.ts +47 -0
- package/dist/components/features/table/index.d.ts +16 -0
- package/dist/components/features/table/pagination.d.ts +5 -0
- package/dist/components/features/table/partials/cell-renderers.d.ts +141 -0
- package/dist/components/features/table/partials/cell-value.d.ts +121 -0
- package/dist/components/features/table/partials/fullscreen-toggle.d.ts +16 -0
- package/dist/components/features/table/partials/resource-cell.d.ts +63 -0
- package/dist/components/features/table/partials/table-link.d.ts +3 -0
- package/dist/components/features/table/table-actions.d.ts +5 -0
- package/dist/components/features/table/table-body.d.ts +5 -0
- package/dist/components/features/table/table-header.d.ts +6 -0
- package/dist/components/features/table/table-helpers.d.ts +39 -0
- package/dist/components/features/table/table-toolbar.d.ts +5 -0
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +489 -0
- package/dist/components/features/theme-tweaker/admin-ui-theme-provider.d.ts +6 -0
- package/dist/components/features/theme-tweaker/index.d.ts +10 -0
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +49 -0
- package/dist/components/features/theme-tweaker/theme-scope.d.ts +7 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.d.ts +2 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.fields.d.ts +7 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.recipes.d.ts +25 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +75 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +161 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +23 -0
- package/dist/components/features/theme-tweaker/use-applied-theme.d.ts +11 -0
- package/dist/components/layout/app-shell/app-layout.d.ts +12 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts +151 -0
- package/dist/components/layout/app-shell/index.d.ts +6 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +2 -0
- package/dist/components/layout/app-shell/stacked-layout.d.ts +2 -0
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +2 -0
- package/dist/components/layout/auth/auth-card.d.ts +2 -0
- package/dist/components/layout/auth/auth-footer-links.d.ts +2 -0
- package/dist/components/layout/auth/auth-form.d.ts +11 -0
- package/dist/components/layout/auth/auth-hooks.d.ts +4 -0
- package/dist/components/layout/auth/auth-method-switch.d.ts +4 -0
- package/dist/components/layout/auth/auth-shell.d.ts +2 -0
- package/dist/components/layout/auth/auth-social-providers.d.ts +3 -0
- package/dist/components/layout/auth/auth-split-panel.d.ts +2 -0
- package/dist/components/layout/auth/auth.strings.d.ts +21 -0
- package/dist/components/layout/auth/auth.types.d.ts +282 -0
- package/dist/components/layout/auth/index.d.ts +10 -0
- package/dist/components/layout/containers/container.recipes.d.ts +5 -0
- package/dist/components/layout/containers/containers.types.d.ts +17 -0
- package/dist/components/layout/containers/content-container.d.ts +3 -0
- package/dist/components/layout/containers/index.d.ts +5 -0
- package/dist/components/layout/containers/page-viewport.d.ts +3 -0
- package/dist/components/layout/containers/section.d.ts +3 -0
- package/dist/components/layout/containers/two-column-layout.d.ts +27 -0
- package/dist/components/layout/header/header.d.ts +2 -0
- package/dist/components/layout/header/header.types.d.ts +198 -0
- package/dist/components/layout/header/index.d.ts +9 -0
- package/dist/components/layout/header/partials/header-breadcrumbs.d.ts +4 -0
- package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +2 -0
- package/dist/components/layout/header/partials/header-notifications.d.ts +2 -0
- package/dist/components/layout/header/partials/header-search.d.ts +2 -0
- package/dist/components/layout/header/partials/header-tool-button.d.ts +4 -0
- package/dist/components/layout/header/partials/header-tool-popover.d.ts +2 -0
- package/dist/components/layout/header/partials/header-user-menu.d.ts +2 -0
- package/dist/components/layout/hooks/index.d.ts +3 -0
- package/dist/components/layout/hooks/use-active-path.d.ts +1 -0
- package/dist/components/layout/hooks/use-command-shortcut.d.ts +7 -0
- package/dist/components/layout/hooks/use-layout-link.d.ts +2 -0
- package/dist/components/layout/index.d.ts +24 -0
- package/dist/components/layout/layout.types.d.ts +91 -0
- package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +5 -0
- package/dist/components/layout/navigation/breadcrumb-progress/index.d.ts +2 -0
- package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +24 -0
- package/dist/components/layout/navigation/category-nav/category-nav.d.ts +5 -0
- package/dist/components/layout/navigation/category-nav/index.d.ts +2 -0
- package/dist/components/layout/navigation/category-nav/types.d.ts +22 -0
- package/dist/components/layout/navigation/index.d.ts +17 -0
- package/dist/components/layout/navigation/section-nav/index.d.ts +1 -0
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +29 -0
- package/dist/components/layout/navigation/side-nav.d.ts +58 -0
- package/dist/components/layout/page/index.d.ts +4 -0
- package/dist/components/layout/page/page.d.ts +3 -0
- package/dist/components/layout/page/page.types.d.ts +138 -0
- package/dist/components/layout/page/partials/page-actions.d.ts +2 -0
- package/dist/components/layout/page/partials/page-header.d.ts +2 -0
- package/dist/components/layout/settings/index.d.ts +1 -0
- package/dist/components/layout/settings/settings.d.ts +65 -0
- package/dist/components/layout/sidebar/app-sidebar.d.ts +7 -0
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +4 -0
- package/dist/components/layout/sidebar/components/sidebar-logo.d.ts +10 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +2 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts +23 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +4 -0
- package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts +2 -0
- package/dist/components/layout/sidebar/index.d.ts +11 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +17 -0
- package/dist/components/layout/sidebar/sidebar.d.ts +9 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +218 -0
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +29 -0
- package/dist/components/layout/workspace/index.d.ts +3 -0
- package/dist/components/layout/workspace/workspace.d.ts +6 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +18 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +141 -0
- package/dist/components/primitives/date.d.ts +63 -0
- package/dist/components/primitives/dimensions.d.ts +30 -0
- package/dist/components/primitives/duration.d.ts +23 -0
- package/dist/components/primitives/file-size.d.ts +23 -0
- package/dist/components/primitives/index.d.ts +11 -0
- package/dist/components/primitives/initials-format.d.ts +21 -0
- package/dist/components/primitives/initials.d.ts +16 -0
- package/dist/components/primitives/link.d.ts +28 -0
- package/dist/components/primitives/money.d.ts +79 -0
- package/dist/components/primitives/name.d.ts +16 -0
- package/dist/components/primitives/number.d.ts +23 -0
- package/dist/components/primitives/value.d.ts +23 -0
- package/dist/components/typography/content-typography.d.ts +4 -0
- package/dist/components/typography/display-label.d.ts +5 -0
- package/dist/components/typography/heading.d.ts +16 -0
- package/dist/components/typography/index.d.ts +10 -0
- package/dist/components/typography/label.d.ts +8 -0
- package/dist/components/typography/rich-text/index.d.ts +2 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +6 -0
- package/dist/components/typography/text-link.d.ts +7 -0
- package/dist/components/typography/text.d.ts +17 -0
- package/dist/components/typography/text.styles.d.ts +50 -0
- package/dist/components/ui/accordion.d.ts +6 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +5 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts +9 -0
- package/dist/components/ui/combobox.d.ts +40 -0
- package/dist/components/ui/command.d.ts +50 -0
- package/dist/components/ui/dialog.d.ts +26 -0
- package/dist/components/ui/disclosure-panel.d.ts +14 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/input-group.d.ts +18 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/item.d.ts +22 -0
- package/dist/components/ui/overlay.recipes.d.ts +2 -0
- package/dist/components/ui/pagination.d.ts +17 -0
- package/dist/components/ui/popover.d.ts +22 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/separator.d.ts +3 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slot.d.ts +6 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/tabs.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts +13 -0
- package/dist/containers-6s-ucRQQ.js +125 -0
- package/dist/containers-6s-ucRQQ.js.map +1 -0
- package/dist/content-typography-CnwgMJ37.js +6 -0
- package/dist/content-typography-CnwgMJ37.js.map +1 -0
- package/dist/copyable-B7SBXJMr.js +65 -0
- package/dist/copyable-B7SBXJMr.js.map +1 -0
- package/dist/data-display-cWIRdeaf.js +1129 -0
- package/dist/data-display-cWIRdeaf.js.map +1 -0
- package/dist/date-BFNMnrS5.js +140 -0
- package/dist/date-BFNMnrS5.js.map +1 -0
- package/dist/date-picker-CA6ogMQB.js +1521 -0
- package/dist/date-picker-CA6ogMQB.js.map +1 -0
- package/dist/date-pickers-BPIKLdsD.js +224 -0
- package/dist/date-pickers-BPIKLdsD.js.map +1 -0
- package/dist/disclosure-panel-B0HFNZ9x.js +35 -0
- package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -0
- package/dist/display-CFM5myut.js +343 -0
- package/dist/display-CFM5myut.js.map +1 -0
- package/dist/dropdown-menu-BlnyHr-9.js +186 -0
- package/dist/dropdown-menu-BlnyHr-9.js.map +1 -0
- package/dist/editable-text-recipe-Bkm6wKHp.js +10 -0
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/features/activities.js +1360 -0
- package/dist/features/activities.js.map +1 -0
- package/dist/features/ai-chat.js +567 -0
- package/dist/features/ai-chat.js.map +1 -0
- package/dist/features/async-preview.js +478 -0
- package/dist/features/async-preview.js.map +1 -0
- package/dist/features/combobox.js +3 -0
- package/dist/features/comments.js +3 -0
- package/dist/features/data-view.js +519 -0
- package/dist/features/data-view.js.map +1 -0
- package/dist/features/email-composer/engine.js +2 -0
- package/dist/features/email-composer.js +1099 -0
- package/dist/features/email-composer.js.map +1 -0
- package/dist/features/event-calendar.js +711 -0
- package/dist/features/event-calendar.js.map +1 -0
- package/dist/features/filters.js +3 -0
- package/dist/features/global-search.js +593 -0
- package/dist/features/global-search.js.map +1 -0
- package/dist/features/kanban.js +425 -0
- package/dist/features/kanban.js.map +1 -0
- package/dist/features/map/images/layers-2x.png +0 -0
- package/dist/features/map/images/layers.png +0 -0
- package/dist/features/map/images/marker-icon-2x.png +0 -0
- package/dist/features/map/images/marker-icon.png +0 -0
- package/dist/features/map/images/marker-shadow.png +0 -0
- package/dist/features/map/images/spritesheet-2x.png +0 -0
- package/dist/features/map/images/spritesheet.png +0 -0
- package/dist/features/map/images/spritesheet.svg +156 -0
- package/dist/features/map/style.css +809 -0
- package/dist/features/map.js +1052 -0
- package/dist/features/map.js.map +1 -0
- package/dist/features/media-library.js +2007 -0
- package/dist/features/media-library.js.map +1 -0
- package/dist/features/mentions.js +3 -0
- package/dist/features/overlays.js +3 -0
- package/dist/features/products.js +3077 -0
- package/dist/features/products.js.map +1 -0
- package/dist/features/questionnaire.js +366 -0
- package/dist/features/questionnaire.js.map +1 -0
- package/dist/features/resource-assignment.js +317 -0
- package/dist/features/resource-assignment.js.map +1 -0
- package/dist/features/resource.js +254 -0
- package/dist/features/resource.js.map +1 -0
- package/dist/features/rich-text-editor.js +23 -0
- package/dist/features/rich-text-editor.js.map +1 -0
- package/dist/features/schema-form.js +744 -0
- package/dist/features/schema-form.js.map +1 -0
- package/dist/features/suggestions.js +149 -0
- package/dist/features/suggestions.js.map +1 -0
- package/dist/features/sync.js +136 -0
- package/dist/features/sync.js.map +1 -0
- package/dist/features/table.js +3 -0
- package/dist/features/theme-tweaker.js +2083 -0
- package/dist/features/theme-tweaker.js.map +1 -0
- package/dist/feedback-DWUkgEjR.js +233 -0
- package/dist/feedback-DWUkgEjR.js.map +1 -0
- package/dist/field-affordance-recipes-IjzPrCTw.js +17 -0
- package/dist/field-affordance-recipes-IjzPrCTw.js.map +1 -0
- package/dist/field-state-recipes-CBTRt9Bt.js +11 -0
- package/dist/field-state-recipes-CBTRt9Bt.js.map +1 -0
- package/dist/filters-BhsUtsxW.js +2203 -0
- package/dist/filters-BhsUtsxW.js.map +1 -0
- package/dist/form-field-Bn7ZH1rA.js +48 -0
- package/dist/form-field-Bn7ZH1rA.js.map +1 -0
- package/dist/form-sizing-BWs70_a2.js +100 -0
- package/dist/form-sizing-BWs70_a2.js.map +1 -0
- package/dist/format-iamDSqs2.js +110 -0
- package/dist/format-iamDSqs2.js.map +1 -0
- package/dist/forms-B7pzS25o.js +194 -0
- package/dist/forms-B7pzS25o.js.map +1 -0
- package/dist/forms-numeric-BUBxELBv.js +867 -0
- package/dist/forms-numeric-BUBxELBv.js.map +1 -0
- package/dist/header-C59QZyxV.js +452 -0
- package/dist/header-C59QZyxV.js.map +1 -0
- package/dist/hooks/use-debounce.d.ts +1 -0
- package/dist/hooks/use-debounced-callback.d.ts +40 -0
- package/dist/hooks/use-files.d.ts +48 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/useFormErrors.d.ts +7 -0
- package/dist/hooks-CM1Vp9Pe.js +88 -0
- package/dist/hooks-CM1Vp9Pe.js.map +1 -0
- package/dist/http-CLTVJc5I.js +331 -0
- package/dist/http-CLTVJc5I.js.map +1 -0
- package/dist/icon-badge-Dv0RYQwj.js +53 -0
- package/dist/icon-badge-Dv0RYQwj.js.map +1 -0
- package/dist/icon-size-B6PVwjbC.js +18 -0
- package/dist/icon-size-B6PVwjbC.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +7 -0
- package/dist/initials-format-CDoQEOd_.js +35 -0
- package/dist/initials-format-CDoQEOd_.js.map +1 -0
- package/dist/input-WwYQZJzG.js +202 -0
- package/dist/input-WwYQZJzG.js.map +1 -0
- package/dist/input-ci9fIgFH.js +20 -0
- package/dist/input-ci9fIgFH.js.map +1 -0
- package/dist/item-pJ0GsOiJ.js +257 -0
- package/dist/item-pJ0GsOiJ.js.map +1 -0
- package/dist/layout/app-shell.js +3 -0
- package/dist/layout/auth.js +3 -0
- package/dist/layout/containers.js +3 -0
- package/dist/layout/header.js +3 -0
- package/dist/layout/hooks.js +3 -0
- package/dist/layout/navigation.js +3 -0
- package/dist/layout/page.js +3 -0
- package/dist/layout/settings.js +3 -0
- package/dist/layout/sidebar.js +4 -0
- package/dist/layout/workspace.js +3 -0
- package/dist/layout.js +13 -0
- package/dist/layout.types-Cn7aUzJp.js +20 -0
- package/dist/layout.types-Cn7aUzJp.js.map +1 -0
- package/dist/lib/action-presentation.d.ts +15 -0
- package/dist/lib/affordance-geometry.generated.d.ts +27 -0
- package/dist/lib/anchored-positioning.d.ts +5 -0
- package/dist/lib/command-filter.d.ts +1 -0
- package/dist/lib/component-vocabulary.d.ts +12 -0
- package/dist/lib/editable-text-recipe.d.ts +6 -0
- package/dist/lib/email-composer.d.ts +6 -0
- package/dist/lib/field-affordance-recipes.d.ts +20 -0
- package/dist/lib/field-state-recipes.d.ts +10 -0
- package/dist/lib/format.d.ts +53 -0
- package/dist/lib/motion-recipes.d.ts +8 -0
- package/dist/lib/navigation-row-recipes.d.ts +26 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +8 -0
- package/dist/lib/row-recipes.d.ts +3 -0
- package/dist/lib/sanitize-html.d.ts +8 -0
- package/dist/lib/strings.d.ts +16 -0
- package/dist/lib/strings.js +32 -0
- package/dist/lib/strings.js.map +1 -0
- package/dist/lib/surface-recipes.d.ts +27 -0
- package/dist/lib/theme-scope.d.ts +31 -0
- package/dist/lib/token-merge.generated.d.ts +2 -0
- package/dist/lib/track-recipes.d.ts +4 -0
- package/dist/lib/ui-provider/defaults.d.ts +12 -0
- package/dist/lib/ui-provider/hooks.d.ts +13 -0
- package/dist/lib/ui-provider/index.d.ts +28 -0
- package/dist/lib/ui-provider/provider.d.ts +15 -0
- package/dist/lib/ui-provider/scale.d.ts +5 -0
- package/dist/lib/ui-provider/store.d.ts +11 -0
- package/dist/lib/ui-provider/types.d.ts +157 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +2 -0
- package/dist/map-demo-tile.svg +1 -0
- package/dist/media-gallery-DhDRgnVZ.js +200 -0
- package/dist/media-gallery-DhDRgnVZ.js.map +1 -0
- package/dist/mentions-B8Ko-fhS.js +563 -0
- package/dist/mentions-B8Ko-fhS.js.map +1 -0
- package/dist/message-COsdEvXT.js +108 -0
- package/dist/message-COsdEvXT.js.map +1 -0
- package/dist/motion-recipes-B6jKXEcN.js +27 -0
- package/dist/motion-recipes-B6jKXEcN.js.map +1 -0
- package/dist/navigation-BUIn2Qxx.js +265 -0
- package/dist/navigation-BUIn2Qxx.js.map +1 -0
- package/dist/navigation-DBEu4POU.js +267 -0
- package/dist/navigation-DBEu4POU.js.map +1 -0
- package/dist/navigation-row-recipes-GVh11KiT.js +29 -0
- package/dist/navigation-row-recipes-GVh11KiT.js.map +1 -0
- package/dist/number-BNT_BIzJ.js +269 -0
- package/dist/number-BNT_BIzJ.js.map +1 -0
- package/dist/overlay.recipes-BxW5FIfK.js +6 -0
- package/dist/overlay.recipes-BxW5FIfK.js.map +1 -0
- package/dist/overlays-B11wZka6.js +982 -0
- package/dist/overlays-B11wZka6.js.map +1 -0
- package/dist/page-BV6ioQg3.js +202 -0
- package/dist/page-BV6ioQg3.js.map +1 -0
- package/dist/page-header-DQRa0jug.js +112 -0
- package/dist/page-header-DQRa0jug.js.map +1 -0
- package/dist/pagination-C29vvt3I.js +149 -0
- package/dist/pagination-C29vvt3I.js.map +1 -0
- package/dist/popover-CoLDEg19.js +194 -0
- package/dist/popover-CoLDEg19.js.map +1 -0
- package/dist/popover-menu-GLIQTJTx.js +99 -0
- package/dist/popover-menu-GLIQTJTx.js.map +1 -0
- package/dist/popover.recipes-zgBhMlUu.js +34 -0
- package/dist/popover.recipes-zgBhMlUu.js.map +1 -0
- package/dist/primitives-DKPOGVpj.js +330 -0
- package/dist/primitives-DKPOGVpj.js.map +1 -0
- package/dist/primitives.js +7 -0
- package/dist/progress-BOe8l_FZ.js +168 -0
- package/dist/progress-BOe8l_FZ.js.map +1 -0
- package/dist/receipt-BM8xsGFy.js +113 -0
- package/dist/receipt-BM8xsGFy.js.map +1 -0
- package/dist/rich-text-B7sBAdDG.js +32 -0
- package/dist/rich-text-B7sBAdDG.js.map +1 -0
- package/dist/rich-text-editor-CoVrTiSv.js +575 -0
- package/dist/rich-text-editor-CoVrTiSv.js.map +1 -0
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js +72 -0
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +1 -0
- package/dist/rich-text-editor.strings-BpnIQgMl.js +25 -0
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +1 -0
- package/dist/row-recipes-DL8n7t_b.js +10 -0
- package/dist/row-recipes-DL8n7t_b.js.map +1 -0
- package/dist/sanitize-html-BG9FGe-j.js +64 -0
- package/dist/sanitize-html-BG9FGe-j.js.map +1 -0
- package/dist/scroll-area-BheMQ270.js +47 -0
- package/dist/scroll-area-BheMQ270.js.map +1 -0
- package/dist/select-B2mb-qN2.js +108 -0
- package/dist/select-B2mb-qN2.js.map +1 -0
- package/dist/separator-DO0EbCEm.js +17 -0
- package/dist/separator-DO0EbCEm.js.map +1 -0
- package/dist/separator-Gk_WXH-l.js +21 -0
- package/dist/separator-Gk_WXH-l.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +77 -0
- package/dist/services/actions/action-overlay-outlet.d.ts +3 -0
- package/dist/services/actions/action-provider.d.ts +7 -0
- package/dist/services/actions/action-scope.d.ts +3 -0
- package/dist/services/actions/action-store.d.ts +55 -0
- package/dist/services/actions/actions.strings.d.ts +2 -0
- package/dist/services/actions/actions.types.d.ts +322 -0
- package/dist/services/actions/hooks.d.ts +8 -0
- package/dist/services/actions/index.d.ts +8 -0
- package/dist/services/actions.js +811 -0
- package/dist/services/actions.js.map +1 -0
- package/dist/settings-BnCyyPOJ.js +160 -0
- package/dist/settings-BnCyyPOJ.js.map +1 -0
- package/dist/sheet-B-q914Ad.js +205 -0
- package/dist/sheet-B-q914Ad.js.map +1 -0
- package/dist/sidebar-C_2p3Tfj.js +501 -0
- package/dist/sidebar-C_2p3Tfj.js.map +1 -0
- package/dist/sidebar-DPR7fmqN.js +598 -0
- package/dist/sidebar-DPR7fmqN.js.map +1 -0
- package/dist/skeleton-CmT1ppqb.js +264 -0
- package/dist/skeleton-CmT1ppqb.js.map +1 -0
- package/dist/slot-CLF9kLrS.js +16 -0
- package/dist/slot-CLF9kLrS.js.map +1 -0
- package/dist/smart-card-CYLn46e6.js +578 -0
- package/dist/smart-card-CYLn46e6.js.map +1 -0
- package/dist/spinner-BY9HbUEh.js +78 -0
- package/dist/spinner-BY9HbUEh.js.map +1 -0
- package/dist/structure-MvKVq-oL.js +95 -0
- package/dist/structure-MvKVq-oL.js.map +1 -0
- package/dist/structure.recipes-Bqhf9oIh.js +548 -0
- package/dist/structure.recipes-Bqhf9oIh.js.map +1 -0
- package/dist/style.css +3 -0
- package/dist/surface-recipes-CQfRr-VL.js +27 -0
- package/dist/surface-recipes-CQfRr-VL.js.map +1 -0
- package/dist/table-BS39xnlq.js +1424 -0
- package/dist/table-BS39xnlq.js.map +1 -0
- package/dist/table-DnlAJ-xR.js +146 -0
- package/dist/table-DnlAJ-xR.js.map +1 -0
- package/dist/tabs-B5cNMWiP.js +187 -0
- package/dist/tabs-B5cNMWiP.js.map +1 -0
- package/dist/text-inputs-Dh9XGyiS.js +331 -0
- package/dist/text-inputs-Dh9XGyiS.js.map +1 -0
- package/dist/text.styles-BwB7vAF2.js +64 -0
- package/dist/text.styles-BwB7vAF2.js.map +1 -0
- package/dist/theme-scope-kStaAer0.js +39 -0
- package/dist/theme-scope-kStaAer0.js.map +1 -0
- package/dist/theme.css +872 -0
- package/dist/timelines-B9ICkQcV.js +446 -0
- package/dist/timelines-B9ICkQcV.js.map +1 -0
- package/dist/track-recipes-LLPNVwFg.js +10 -0
- package/dist/track-recipes-LLPNVwFg.js.map +1 -0
- package/dist/tree-BdWSaoFT.js +185 -0
- package/dist/tree-BdWSaoFT.js.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/locale.types.d.ts +7 -0
- package/dist/types/pagination.types.d.ts +24 -0
- package/dist/typography/rich-text.js +3 -0
- package/dist/typography-Cv8MT-82.js +96 -0
- package/dist/typography-Cv8MT-82.js.map +1 -0
- package/dist/typography.js +3 -0
- package/dist/ui-provider-CftIB6TY.js +128 -0
- package/dist/ui-provider-CftIB6TY.js.map +1 -0
- package/dist/ui-provider.js +4 -0
- package/dist/upload-D8Za5x_c.js +849 -0
- package/dist/upload-D8Za5x_c.js.map +1 -0
- package/dist/upload-queue-hIIYBLS7.js +410 -0
- package/dist/upload-queue-hIIYBLS7.js.map +1 -0
- package/dist/usage-card-DnmnJ58D.js +458 -0
- package/dist/usage-card-DnmnJ58D.js.map +1 -0
- package/dist/use-debounce-DZ_1ZBPa.js +18 -0
- package/dist/use-debounce-DZ_1ZBPa.js.map +1 -0
- package/dist/use-debounced-callback-Cx1h-hdv.js +30 -0
- package/dist/use-debounced-callback-Cx1h-hdv.js.map +1 -0
- package/dist/use-file-drop-target-BX7GnhoQ.js +39 -0
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +1 -0
- package/dist/use-mobile-vaLKwgyf.js +15 -0
- package/dist/use-mobile-vaLKwgyf.js.map +1 -0
- package/dist/utils-C2EKeIw3.js +72 -0
- package/dist/utils-C2EKeIw3.js.map +1 -0
- package/dist/value-inputs-DX2dbxjj.js +824 -0
- package/dist/value-inputs-DX2dbxjj.js.map +1 -0
- package/dist/workspace-C1PZmk8L.js +402 -0
- package/dist/workspace-C1PZmk8L.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +135 -0
- package/docs/consumer-skill/examples/app-layout.tsx +31 -0
- package/docs/consumer-skill/examples/composition.tsx +37 -0
- package/docs/consumer-skill/examples/content-workflow.tsx +13 -0
- package/docs/consumer-skill/examples/destructive-confirm.tsx +42 -0
- package/docs/consumer-skill/examples/detail.tsx +27 -0
- package/docs/consumer-skill/examples/edit.tsx +61 -0
- package/docs/consumer-skill/examples/email-composer.tsx +25 -0
- package/docs/consumer-skill/examples/hierarchy-capture.tsx +25 -0
- package/docs/consumer-skill/examples/index-table.tsx +36 -0
- package/docs/consumer-skill/examples/manifest.json +108 -0
- package/docs/consumer-skill/examples/planning-usage-edit.tsx +29 -0
- package/docs/consumer-skill/examples/receipt.tsx +19 -0
- package/docs/consumer-skill/examples/scoped-directory.tsx +77 -0
- package/docs/consumer-skill/references/composition.md +273 -0
- package/docs/consumer-skill/references/design-contract.md +146 -0
- package/docs/consumer-skill/references/discovery.md +50 -0
- package/docs/consumer-skill/references/installation.md +83 -0
- package/docs/consumer-skill/references/integration.md +69 -0
- package/docs/consumer-skill/references/public-api.json +17750 -0
- package/docs/consumer-skill/references/review.md +74 -0
- package/docs/consumer-skill/references/theming.md +56 -0
- package/docs/consumer-skill/references/tokens.json +422 -0
- package/docs/consumer-skill/references/workflows.md +135 -0
- package/docs/consumer-skill/scripts/check-composition.mjs +31 -0
- package/docs/consumer-skill/scripts/composition-policy.mjs +155 -0
- package/docs/consumer-skill/scripts/discovery.mjs +84 -0
- package/docs/consumer-skill/scripts/find-components.mjs +11 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +22 -0
- package/package.json +642 -4
|
@@ -0,0 +1,1099 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
+
import { t } from "../utils-C2EKeIw3.js";
|
|
4
|
+
import { n } from "../buttons-Co6GavvM.js";
|
|
5
|
+
import { a as r } from "../typography-Cv8MT-82.js";
|
|
6
|
+
import { i, t as a } from "../structure-MvKVq-oL.js";
|
|
7
|
+
import { _ as o, f as s, m as c, t as l } from "../smart-card-CYLn46e6.js";
|
|
8
|
+
import { n as u, t as d } from "../feedback-DWUkgEjR.js";
|
|
9
|
+
import { n as f, t as p } from "../action-menu-Cx3SdfbN.js";
|
|
10
|
+
import { n as m, r as h, t as g } from "../overlays-B11wZka6.js";
|
|
11
|
+
import { n as _ } from "../content-typography-CnwgMJ37.js";
|
|
12
|
+
import { t as v } from "../accordion-B-5Focs8.js";
|
|
13
|
+
import { t as y } from "../input-WwYQZJzG.js";
|
|
14
|
+
import { a as b, c as x, d as S, o as C, s as w } from "../text-inputs-Dh9XGyiS.js";
|
|
15
|
+
import { t as T } from "../scroll-area-BheMQ270.js";
|
|
16
|
+
import { t as E } from "../form-field-Bn7ZH1rA.js";
|
|
17
|
+
import { c as D } from "../choice-inputs-CC7XqPQO.js";
|
|
18
|
+
import { i as O, n as k, r as ee, t as te } from "../tabs-B5cNMWiP.js";
|
|
19
|
+
import { t as ne } from "../popover-menu-GLIQTJTx.js";
|
|
20
|
+
import { n as A, t as j } from "../rich-text-editor.recipes-DxvOE0Lp.js";
|
|
21
|
+
import { t as M } from "../rich-text-editor.strings-BpnIQgMl.js";
|
|
22
|
+
import { a as N, c as P, i as F, l as I, n as L, o as R, r as z, s as B, t as V, u as H } from "../http-CLTVJc5I.js";
|
|
23
|
+
import { useEffect as U, useId as W, useImperativeHandle as G, useMemo as re, useRef as K, useState as q } from "react";
|
|
24
|
+
import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
25
|
+
import { Bold as ie, Italic as ae, Link as oe, List as se, ListOrdered as ce, Plus as Z, Redo2 as le, Send as ue, Undo2 as de, X as fe } from "lucide-react";
|
|
26
|
+
import { EditorContent as pe, Node as me, generateJSON as he, mergeAttributes as ge, useEditor as _e } from "@tiptap/react";
|
|
27
|
+
import ve from "@tiptap/starter-kit";
|
|
28
|
+
//#region src/components/features/email-composer/partials/data-status.tsx
|
|
29
|
+
function Q(e) {
|
|
30
|
+
return !!(e?.loading || e?.error);
|
|
31
|
+
}
|
|
32
|
+
function ye({ state: e, label: t, retryLabel: n, report: r }) {
|
|
33
|
+
return e?.loading ? /* @__PURE__ */ Y(u, { label: t }) : e?.error ? /* @__PURE__ */ Y(d, {
|
|
34
|
+
variant: "inline",
|
|
35
|
+
description: e.error,
|
|
36
|
+
retryLabel: n,
|
|
37
|
+
onRetry: e.onRetry ? () => {
|
|
38
|
+
Promise.resolve().then(e.onRetry).catch(r);
|
|
39
|
+
} : void 0
|
|
40
|
+
}) : null;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/features/email-composer/use-composer.ts
|
|
44
|
+
function be(t) {
|
|
45
|
+
let n = e(H, t.strings), r = K(null);
|
|
46
|
+
r.current ||= structuredClone({
|
|
47
|
+
to: [],
|
|
48
|
+
cc: [],
|
|
49
|
+
bcc: [],
|
|
50
|
+
subject: "",
|
|
51
|
+
body: {
|
|
52
|
+
kind: "rich",
|
|
53
|
+
document: I
|
|
54
|
+
},
|
|
55
|
+
placeholderOverrides: {},
|
|
56
|
+
...t.value ?? t.defaultValue
|
|
57
|
+
});
|
|
58
|
+
let [i, a] = q(r.current), o = t.value ?? i, s = K({
|
|
59
|
+
props: t,
|
|
60
|
+
draft: o,
|
|
61
|
+
strings: n
|
|
62
|
+
});
|
|
63
|
+
s.current = {
|
|
64
|
+
props: t,
|
|
65
|
+
draft: o,
|
|
66
|
+
strings: n
|
|
67
|
+
};
|
|
68
|
+
let c = K(o);
|
|
69
|
+
t.value !== void 0 && (c.current = t.value);
|
|
70
|
+
let l = K(null), u = K(null), [d, f] = q(!1), [p, m] = q(""), [h, g] = q(""), [_, v] = q(!1), [y, b] = q([]), x = K(!0);
|
|
71
|
+
U(() => (x.current = !0, () => {
|
|
72
|
+
x.current = !1;
|
|
73
|
+
}), []);
|
|
74
|
+
let S = re(() => {
|
|
75
|
+
let e = Object.create(null);
|
|
76
|
+
for (let r of t.placeholders?.sets ?? []) for (let t of Object.keys(r.definitions)) {
|
|
77
|
+
if (Object.hasOwn(e, t)) throw Error(n.duplicateVariable(t));
|
|
78
|
+
r.definitions[t] && (e[t] = r.definitions[t]);
|
|
79
|
+
}
|
|
80
|
+
return e;
|
|
81
|
+
}, [t.placeholders?.sets, n]), C = re(() => [...t.templates?.items ?? [], ...y], [t.templates?.items, y]), w = K(C);
|
|
82
|
+
if (w.current = C, new Set(C.map((e) => e.id)).size !== C.length) throw Error(n.duplicateTemplate);
|
|
83
|
+
let T = () => s.current.props.value ?? c.current, E = (e) => C.find((t) => t.id === e.templateId), D = K(null), O = (e = T()) => {
|
|
84
|
+
let t = s.current.props.context, n = E(e), r = s.current.strings, i = D.current;
|
|
85
|
+
if (i && i.draft === e && i.context === t && i.definitions === S && i.template === n && i.strings === r) return i.result;
|
|
86
|
+
let a = L(e, t, S, n, r);
|
|
87
|
+
return D.current = {
|
|
88
|
+
draft: e,
|
|
89
|
+
context: t,
|
|
90
|
+
definitions: S,
|
|
91
|
+
template: n,
|
|
92
|
+
strings: r,
|
|
93
|
+
result: a
|
|
94
|
+
}, a;
|
|
95
|
+
}, k = () => {
|
|
96
|
+
let { props: e, strings: t } = s.current, n = [];
|
|
97
|
+
for (let r of [
|
|
98
|
+
"to",
|
|
99
|
+
"cc",
|
|
100
|
+
"bcc"
|
|
101
|
+
]) Q(e.recipients?.[r]) && n.push({
|
|
102
|
+
field: r,
|
|
103
|
+
message: t.dataUnavailable
|
|
104
|
+
});
|
|
105
|
+
return Q(e.placeholders) && n.push({
|
|
106
|
+
field: "placeholders",
|
|
107
|
+
message: t.dataUnavailable
|
|
108
|
+
}), n;
|
|
109
|
+
}, ee = k().length > 0, te = (e = T()) => structuredClone([...k(), ...O(e).issues]), ne = () => {
|
|
110
|
+
let e = T(), t = [...O(e).rendered?.unresolved ?? []];
|
|
111
|
+
return {
|
|
112
|
+
draft: structuredClone(e),
|
|
113
|
+
dirty: JSON.stringify(e) !== JSON.stringify(r.current),
|
|
114
|
+
busy: u.current !== null,
|
|
115
|
+
issues: te(e),
|
|
116
|
+
unresolvedPlaceholders: t
|
|
117
|
+
};
|
|
118
|
+
}, A = (e) => {
|
|
119
|
+
let t = e instanceof Error ? e : Error(String(e));
|
|
120
|
+
x.current && m(t.message), s.current.props.onError?.(t);
|
|
121
|
+
}, j = (e, t = "api", n = !1) => {
|
|
122
|
+
if (!x.current || !n && u.current && u.current !== "action") return;
|
|
123
|
+
let r = structuredClone(e(structuredClone(T())));
|
|
124
|
+
s.current.props.value === void 0 && (c.current = r, a(r)), s.current.props.onChange?.(structuredClone(r)), s.current.props.onEdit?.(structuredClone(r), { source: t }), m(""), g("");
|
|
125
|
+
}, M = K(null);
|
|
126
|
+
async function N(e, t, n = !1) {
|
|
127
|
+
if (u.current && !(n && u.current === "action") || !x.current) return;
|
|
128
|
+
let r = {
|
|
129
|
+
kind: e,
|
|
130
|
+
settled: !1,
|
|
131
|
+
parent: n ? M.current : null
|
|
132
|
+
};
|
|
133
|
+
M.current = r, u.current = e, f(!0), m(""), g("");
|
|
134
|
+
try {
|
|
135
|
+
await t();
|
|
136
|
+
} catch (e) {
|
|
137
|
+
A(e);
|
|
138
|
+
} finally {
|
|
139
|
+
if (r.settled = !0, M.current === r) {
|
|
140
|
+
let e = r.parent;
|
|
141
|
+
for (; e?.settled;) e = e.parent;
|
|
142
|
+
M.current = e, u.current = e?.kind ?? null, x.current && f(e !== null);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
let P = () => {
|
|
147
|
+
if (!l.current) throw Error(n.editorNotReady);
|
|
148
|
+
if (T().body.kind === "html") throw Error(n.editableRequired);
|
|
149
|
+
return l.current.synchronize(T().body), l.current;
|
|
150
|
+
};
|
|
151
|
+
function F(e, t = {}, r = !1) {
|
|
152
|
+
if (!r && u.current && u.current !== "action") return;
|
|
153
|
+
let i = t.body ?? "replace";
|
|
154
|
+
if (i !== "replace" && (e.body.kind === "html" || T().body.kind === "html")) throw Error(n.editableRequired);
|
|
155
|
+
let a = i === "replace" ? e.body : P().insert(e.body, i);
|
|
156
|
+
j((n) => ({
|
|
157
|
+
...n,
|
|
158
|
+
body: a,
|
|
159
|
+
subject: t.subject === "preserve" ? n.subject : e.subject ?? n.subject,
|
|
160
|
+
templateId: e.id,
|
|
161
|
+
placeholderOverrides: t.overrides === "reset" ? {} : n.placeholderOverrides
|
|
162
|
+
}), "template", r);
|
|
163
|
+
}
|
|
164
|
+
let R = K(null), z = K(null);
|
|
165
|
+
z.current ||= {
|
|
166
|
+
getState: () => R.current.getState(),
|
|
167
|
+
update: (e) => R.current.update(e),
|
|
168
|
+
setSubject: (e) => R.current.setSubject(e),
|
|
169
|
+
setRecipients: (e, t) => R.current.setRecipients(e, t),
|
|
170
|
+
setBody: (e) => R.current.setBody(e),
|
|
171
|
+
importBody: (e) => R.current.importBody(e),
|
|
172
|
+
setPlaceholder: (e, t) => R.current.setPlaceholder(e, t),
|
|
173
|
+
clearPlaceholderOverride: (e) => R.current.clearPlaceholderOverride(e),
|
|
174
|
+
insertPlaceholder: (e) => R.current.insertPlaceholder(e),
|
|
175
|
+
applyTemplate: (e, t) => R.current.applyTemplate(e, t),
|
|
176
|
+
insertText: (e) => R.current.insertText(e),
|
|
177
|
+
focusBody: () => R.current.focusBody(),
|
|
178
|
+
validate: () => R.current.validate(),
|
|
179
|
+
prepare: () => R.current.prepare(),
|
|
180
|
+
send: () => R.current.send(),
|
|
181
|
+
discard: () => R.current.discard()
|
|
182
|
+
};
|
|
183
|
+
let B = z.current, V = async () => {
|
|
184
|
+
if (k().length) throw Error(s.current.strings.dataUnavailable);
|
|
185
|
+
let e = O();
|
|
186
|
+
if (e.issues.length || !e.rendered) throw Error(e.issues.map((e) => e.message).join(" "));
|
|
187
|
+
return structuredClone(e.rendered.email);
|
|
188
|
+
}, W = (e = !1) => N("send", async () => {
|
|
189
|
+
let e = s.current.props;
|
|
190
|
+
v(!0);
|
|
191
|
+
let t = await V();
|
|
192
|
+
if (e.onBeforeSend) {
|
|
193
|
+
let n = await e.onBeforeSend(t, B);
|
|
194
|
+
if (n === !1 || !x.current) return;
|
|
195
|
+
t = n;
|
|
196
|
+
}
|
|
197
|
+
x.current && (t = structuredClone(t), await e.onSend(structuredClone(t)), x.current && (g(n.sent), e.onSent?.(t)));
|
|
198
|
+
}, e), J = (e = !1) => N("discard", async () => {
|
|
199
|
+
let e = s.current.props, t = T();
|
|
200
|
+
await e.onDiscard?.(B), x.current && T() === t && (j(() => r.current, "api", !0), v(!1), g(n.discarded), e.onClose?.());
|
|
201
|
+
}, e);
|
|
202
|
+
R.current = {
|
|
203
|
+
getState: ne,
|
|
204
|
+
update: (e) => j(e),
|
|
205
|
+
setSubject: (e) => j((t) => ({
|
|
206
|
+
...t,
|
|
207
|
+
subject: e
|
|
208
|
+
})),
|
|
209
|
+
setRecipients: (e, t) => j((n) => ({
|
|
210
|
+
...n,
|
|
211
|
+
[e]: t
|
|
212
|
+
})),
|
|
213
|
+
setBody: (e) => j((t) => ({
|
|
214
|
+
...t,
|
|
215
|
+
body: e
|
|
216
|
+
})),
|
|
217
|
+
importBody: (e) => j((t) => ({
|
|
218
|
+
...t,
|
|
219
|
+
body: e
|
|
220
|
+
})),
|
|
221
|
+
setPlaceholder: (e, t) => {
|
|
222
|
+
if (!Object.hasOwn(S, e)) throw Error(n.unknownVariable(e));
|
|
223
|
+
j((n) => ({
|
|
224
|
+
...n,
|
|
225
|
+
placeholderOverrides: {
|
|
226
|
+
...n.placeholderOverrides,
|
|
227
|
+
[e]: t
|
|
228
|
+
}
|
|
229
|
+
}), "placeholder");
|
|
230
|
+
},
|
|
231
|
+
clearPlaceholderOverride: (e) => j((t) => (delete t.placeholderOverrides[e], t), "placeholder"),
|
|
232
|
+
insertPlaceholder: (e) => {
|
|
233
|
+
if (u.current && u.current !== "action") return;
|
|
234
|
+
if (!Object.hasOwn(S, e)) throw Error(n.unknownVariable(e));
|
|
235
|
+
let t = P().insertPlaceholder(e);
|
|
236
|
+
j((e) => ({
|
|
237
|
+
...e,
|
|
238
|
+
body: t
|
|
239
|
+
}));
|
|
240
|
+
},
|
|
241
|
+
insertText: (e) => {
|
|
242
|
+
if (u.current && u.current !== "action") return;
|
|
243
|
+
let t = P().insertText(e);
|
|
244
|
+
j((e) => ({
|
|
245
|
+
...e,
|
|
246
|
+
body: t
|
|
247
|
+
}));
|
|
248
|
+
},
|
|
249
|
+
focusBody: () => l.current?.focus(),
|
|
250
|
+
applyTemplate: (e, t) => {
|
|
251
|
+
if (Q(s.current.props.templates)) throw Error(s.current.strings.templatesUnavailable);
|
|
252
|
+
let r = C.find((t) => t.id === e);
|
|
253
|
+
if (!r) throw Error(n.unknownTemplate(e));
|
|
254
|
+
F(r, t);
|
|
255
|
+
},
|
|
256
|
+
validate: () => te(),
|
|
257
|
+
prepare: V,
|
|
258
|
+
send: () => W(),
|
|
259
|
+
discard: () => J()
|
|
260
|
+
}, G(t.apiRef, () => B, [B]);
|
|
261
|
+
let Y = (e) => N("action", async () => {
|
|
262
|
+
await e.onSelect(Object.assign(Object.create(B), {
|
|
263
|
+
send: () => W(!0),
|
|
264
|
+
discard: () => J(!0)
|
|
265
|
+
}));
|
|
266
|
+
}), X = () => N("import", async () => {
|
|
267
|
+
let e = T(), t = await s.current.props.templates?.onImport?.();
|
|
268
|
+
if (t && x.current) {
|
|
269
|
+
if (w.current.some((e) => e.id === t.id)) throw Error(n.duplicateTemplate);
|
|
270
|
+
b((e) => [...e, structuredClone(t)]), T() === e && F(t, {}, !0);
|
|
271
|
+
}
|
|
272
|
+
}), { rendered: ie, renderError: ae } = O(o);
|
|
273
|
+
return {
|
|
274
|
+
api: B,
|
|
275
|
+
draft: o,
|
|
276
|
+
strings: n,
|
|
277
|
+
busy: d,
|
|
278
|
+
dataPending: ee,
|
|
279
|
+
error: p,
|
|
280
|
+
notice: h,
|
|
281
|
+
attempted: _,
|
|
282
|
+
rendered: ie,
|
|
283
|
+
renderError: ae,
|
|
284
|
+
definitions: S,
|
|
285
|
+
templates: C,
|
|
286
|
+
values: ie?.email.resolvedPlaceholders ?? {},
|
|
287
|
+
editorRef: l,
|
|
288
|
+
state: ne(),
|
|
289
|
+
report: A,
|
|
290
|
+
runAction: Y,
|
|
291
|
+
importTemplate: X,
|
|
292
|
+
changeBody: (e) => j((t) => ({
|
|
293
|
+
...t,
|
|
294
|
+
body: e
|
|
295
|
+
}), "body"),
|
|
296
|
+
changeSubject: (e) => j((t) => ({
|
|
297
|
+
...t,
|
|
298
|
+
subject: e
|
|
299
|
+
}), "subject"),
|
|
300
|
+
changeRecipients: (e, t) => j((n) => ({
|
|
301
|
+
...n,
|
|
302
|
+
[e]: t
|
|
303
|
+
}), "recipient")
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/components/features/email-composer/partials/recipients.tsx
|
|
308
|
+
function xe({ recipient: e, field: t, index: n, options: r, busy: i, strings: a, change: o, remove: s, add: c, id: l, errorId: u }) {
|
|
309
|
+
let [d, f] = q(F(e));
|
|
310
|
+
U(() => {
|
|
311
|
+
f(F(e));
|
|
312
|
+
}, [e.name, e.email]);
|
|
313
|
+
let p = r.mode === "readonly", m = r.mode === "disabled" || i, h = r.mode !== "disabled" && r.allowRemove !== !1 && (!p || r.allowRemove === !0), g = () => {
|
|
314
|
+
!p && !m && d !== F(e) && o({
|
|
315
|
+
id: e.id,
|
|
316
|
+
...z(d)
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
return /* @__PURE__ */ X(b, {
|
|
320
|
+
className: "min-w-0 w-full",
|
|
321
|
+
children: [/* @__PURE__ */ Y(x, {
|
|
322
|
+
id: l,
|
|
323
|
+
"aria-invalid": !!u,
|
|
324
|
+
"aria-describedby": u,
|
|
325
|
+
"aria-label": a.recipientLabel(t, n),
|
|
326
|
+
value: d,
|
|
327
|
+
readOnly: p,
|
|
328
|
+
disabled: m,
|
|
329
|
+
title: F(e),
|
|
330
|
+
onChange: (e) => f(e.target.value),
|
|
331
|
+
onBlur: g,
|
|
332
|
+
onKeyDown: (t) => {
|
|
333
|
+
t.key === "Enter" && (t.preventDefault(), g()), t.key === "Escape" && (t.preventDefault(), f(F(e)));
|
|
334
|
+
}
|
|
335
|
+
}), (h || c) && /* @__PURE__ */ X(C, {
|
|
336
|
+
align: "inline-end",
|
|
337
|
+
children: [h && /* @__PURE__ */ Y(w, {
|
|
338
|
+
type: "button",
|
|
339
|
+
iconOnly: !0,
|
|
340
|
+
size: "sm",
|
|
341
|
+
disabled: i,
|
|
342
|
+
"aria-label": a.removeRecipient(e.email),
|
|
343
|
+
onClick: s,
|
|
344
|
+
children: /* @__PURE__ */ Y(fe, { className: "size-icon" })
|
|
345
|
+
}), c && /* @__PURE__ */ Y(w, {
|
|
346
|
+
type: "button",
|
|
347
|
+
iconOnly: !0,
|
|
348
|
+
size: "sm",
|
|
349
|
+
disabled: i,
|
|
350
|
+
"aria-label": a.addRecipient(t),
|
|
351
|
+
title: a.addRecipient(t),
|
|
352
|
+
onClick: c,
|
|
353
|
+
children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
|
|
354
|
+
})]
|
|
355
|
+
})]
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange: o, error: s, actions: c, report: l }) {
|
|
359
|
+
let [u, d] = q(!1), [f, p] = q(""), m = W(), h = s ? `${m}-error` : void 0, g = K(null), _ = K(t);
|
|
360
|
+
_.current = t;
|
|
361
|
+
let v = n.mode !== "disabled" && n.allowAdd !== !1 && (n.mode !== "readonly" || n.allowAdd === !0), y = u || t.length === 0, S = Q(n), T = () => {
|
|
362
|
+
if (r || !v || !y || S) return;
|
|
363
|
+
let e = z(f);
|
|
364
|
+
f.trim() && !_.current.some((t) => t.email.toLowerCase() === e.email.toLowerCase()) && o([..._.current, e]), p(""), d(!1);
|
|
365
|
+
};
|
|
366
|
+
U(() => {
|
|
367
|
+
u && g.current?.focus();
|
|
368
|
+
}, [u]);
|
|
369
|
+
let D = () => {
|
|
370
|
+
y && T(), d(!0), g.current?.focus();
|
|
371
|
+
};
|
|
372
|
+
return /* @__PURE__ */ Y(E, {
|
|
373
|
+
label: i[e],
|
|
374
|
+
required: e === "to",
|
|
375
|
+
error: s,
|
|
376
|
+
supportingTextId: h,
|
|
377
|
+
htmlFor: t.length ? `${m}-0` : `${m}-new`,
|
|
378
|
+
children: /* @__PURE__ */ X(a, {
|
|
379
|
+
id: `${m}-group`,
|
|
380
|
+
gap: "sm",
|
|
381
|
+
children: [S ? /* @__PURE__ */ Y(ye, {
|
|
382
|
+
state: n,
|
|
383
|
+
label: i.loadingRecipients(i[e]),
|
|
384
|
+
retryLabel: i.retry,
|
|
385
|
+
report: l
|
|
386
|
+
}) : /* @__PURE__ */ X(J, { children: [t.map((a, s) => /* @__PURE__ */ Y(xe, {
|
|
387
|
+
id: `${m}-${s}`,
|
|
388
|
+
errorId: h,
|
|
389
|
+
recipient: a,
|
|
390
|
+
field: i[e],
|
|
391
|
+
index: s,
|
|
392
|
+
options: n,
|
|
393
|
+
busy: r,
|
|
394
|
+
strings: i,
|
|
395
|
+
change: (e) => o(t.map((t, n) => n === s ? e : t)),
|
|
396
|
+
remove: () => o(t.filter((e, t) => t !== s)),
|
|
397
|
+
add: v && !y && s === t.length - 1 ? D : void 0
|
|
398
|
+
}, a.id ?? s)), y && /* @__PURE__ */ X(b, {
|
|
399
|
+
className: "min-w-0 w-full",
|
|
400
|
+
children: [/* @__PURE__ */ Y(x, {
|
|
401
|
+
id: `${m}-new`,
|
|
402
|
+
ref: g,
|
|
403
|
+
autoFocus: e !== "to",
|
|
404
|
+
"aria-invalid": !!s,
|
|
405
|
+
"aria-describedby": h,
|
|
406
|
+
"aria-label": i.newRecipient(i[e]),
|
|
407
|
+
placeholder: i.recipientPlaceholder,
|
|
408
|
+
value: f,
|
|
409
|
+
disabled: r || n.mode === "disabled",
|
|
410
|
+
readOnly: !v,
|
|
411
|
+
onChange: (e) => p(e.target.value),
|
|
412
|
+
onBlur: T,
|
|
413
|
+
onKeyDown: (e) => {
|
|
414
|
+
e.key === "Enter" && (e.preventDefault(), T()), e.key === "Escape" && (e.preventDefault(), p(""), d(!1));
|
|
415
|
+
}
|
|
416
|
+
}), v && /* @__PURE__ */ Y(C, {
|
|
417
|
+
align: "inline-end",
|
|
418
|
+
children: /* @__PURE__ */ Y(w, {
|
|
419
|
+
type: "button",
|
|
420
|
+
iconOnly: !0,
|
|
421
|
+
size: "sm",
|
|
422
|
+
disabled: r,
|
|
423
|
+
"aria-label": i.addRecipient(i[e]),
|
|
424
|
+
title: i.addRecipient(i[e]),
|
|
425
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
426
|
+
onClick: D,
|
|
427
|
+
children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
|
|
428
|
+
})
|
|
429
|
+
})]
|
|
430
|
+
})] }), c && /* @__PURE__ */ Y(a, {
|
|
431
|
+
direction: "horizontal",
|
|
432
|
+
gap: "xs",
|
|
433
|
+
justify: "end",
|
|
434
|
+
children: c
|
|
435
|
+
})]
|
|
436
|
+
})
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
//#endregion
|
|
440
|
+
//#region src/components/features/email-composer/partials/variables.tsx
|
|
441
|
+
function Ce({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c, editable: l }) {
|
|
442
|
+
let u = W();
|
|
443
|
+
return /* @__PURE__ */ Y(i, {
|
|
444
|
+
minColumnWidth: "sm",
|
|
445
|
+
gap: "md",
|
|
446
|
+
children: Object.keys(e).map((i) => {
|
|
447
|
+
let d = e[i], f = Object.hasOwn(r.placeholderOverrides, i), p = `${u}-email-variable-${i}`, m = {
|
|
448
|
+
id: p,
|
|
449
|
+
value: String(t[i] ?? ""),
|
|
450
|
+
disabled: c,
|
|
451
|
+
readOnly: !d.editable
|
|
452
|
+
}, h = d.input === "textarea" ? /* @__PURE__ */ Y(S, {
|
|
453
|
+
...m,
|
|
454
|
+
onChange: (e) => o.setPlaceholder(i, e.target.value)
|
|
455
|
+
}) : d.input === "select" ? /* @__PURE__ */ Y(D, {
|
|
456
|
+
...m,
|
|
457
|
+
placeholder: s.choose,
|
|
458
|
+
options: [...d.options ?? []],
|
|
459
|
+
onValueChange: (e) => o.setPlaceholder(i, e ?? "")
|
|
460
|
+
}) : /* @__PURE__ */ Y(y, {
|
|
461
|
+
...m,
|
|
462
|
+
type: d.input === "number" ? "number" : d.input === "date" ? "date" : "text",
|
|
463
|
+
onChange: (e) => o.setPlaceholder(i, d.input === "number" && e.target.value !== "" ? Number(e.target.value) : e.target.value)
|
|
464
|
+
});
|
|
465
|
+
return /* @__PURE__ */ Y(E, {
|
|
466
|
+
label: d.group ? `${d.group} · ${d.label}` : d.label,
|
|
467
|
+
htmlFor: p,
|
|
468
|
+
required: d.required,
|
|
469
|
+
helperText: `${f ? s.overridden : s.dynamic}${d.description ? ` · ${d.description}` : ""}`,
|
|
470
|
+
children: /* @__PURE__ */ X(a, {
|
|
471
|
+
id: `${p}-group`,
|
|
472
|
+
direction: "horizontal",
|
|
473
|
+
gap: "sm",
|
|
474
|
+
align: "start",
|
|
475
|
+
wrap: !1,
|
|
476
|
+
children: [
|
|
477
|
+
/* @__PURE__ */ Y("div", {
|
|
478
|
+
className: "min-w-0 flex-1",
|
|
479
|
+
children: h
|
|
480
|
+
}),
|
|
481
|
+
/* @__PURE__ */ Y(n, {
|
|
482
|
+
type: "button",
|
|
483
|
+
iconOnly: !0,
|
|
484
|
+
size: "sm",
|
|
485
|
+
buttonStyle: "ghost",
|
|
486
|
+
tone: "secondary",
|
|
487
|
+
disabled: c || !l,
|
|
488
|
+
"aria-label": s.insertVariable(d.label),
|
|
489
|
+
onClick: () => o.insertPlaceholder(i),
|
|
490
|
+
children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
|
|
491
|
+
}),
|
|
492
|
+
f && /* @__PURE__ */ Y(n, {
|
|
493
|
+
type: "button",
|
|
494
|
+
size: "sm",
|
|
495
|
+
buttonStyle: "ghost",
|
|
496
|
+
tone: "secondary",
|
|
497
|
+
disabled: c,
|
|
498
|
+
onClick: () => o.clearPlaceholderOverride(i),
|
|
499
|
+
children: s.reset
|
|
500
|
+
})
|
|
501
|
+
]
|
|
502
|
+
})
|
|
503
|
+
}, i);
|
|
504
|
+
})
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
//#endregion
|
|
508
|
+
//#region src/components/features/email-composer/partials/body-editor.tsx
|
|
509
|
+
var we = me.create({
|
|
510
|
+
name: "placeholderToken",
|
|
511
|
+
group: "inline",
|
|
512
|
+
inline: !0,
|
|
513
|
+
atom: !0,
|
|
514
|
+
addAttributes: () => ({ key: {
|
|
515
|
+
default: "",
|
|
516
|
+
parseHTML: (e) => e.getAttribute("data-placeholder")
|
|
517
|
+
} }),
|
|
518
|
+
parseHTML: () => [{ tag: "span[data-placeholder]" }],
|
|
519
|
+
renderHTML: ({ node: e, HTMLAttributes: t }) => [
|
|
520
|
+
"span",
|
|
521
|
+
ge(t, {
|
|
522
|
+
"data-placeholder": e.attrs.key,
|
|
523
|
+
class: "rounded-inner bg-accent text-accent-foreground",
|
|
524
|
+
contenteditable: "false"
|
|
525
|
+
}),
|
|
526
|
+
`{{${e.attrs.key}}}`
|
|
527
|
+
],
|
|
528
|
+
renderText: ({ node: e }) => `{{${e.attrs.key}}}`
|
|
529
|
+
}), $ = [ve.configure({ link: { openOnClick: !1 } }), we];
|
|
530
|
+
function Te({ body: n, disabled: r, onChange: i, adapterRef: o, strings: l }) {
|
|
531
|
+
let u = K(i);
|
|
532
|
+
u.current = i;
|
|
533
|
+
let d = K(!1), [f, p] = q(!1), [m, g] = q(""), [v, b] = q(""), x = K({
|
|
534
|
+
from: 1,
|
|
535
|
+
to: 1
|
|
536
|
+
}), S = e(M, {
|
|
537
|
+
editorLabel: l.body,
|
|
538
|
+
toolbar: l.toolbar
|
|
539
|
+
}), C = _e({
|
|
540
|
+
extensions: $,
|
|
541
|
+
immediatelyRender: !1,
|
|
542
|
+
shouldRerenderOnTransaction: !0,
|
|
543
|
+
content: n.kind === "rich" ? n.document : P(n),
|
|
544
|
+
editable: !r,
|
|
545
|
+
editorProps: { attributes: {
|
|
546
|
+
role: "textbox",
|
|
547
|
+
"aria-label": l.body,
|
|
548
|
+
"aria-multiline": "true",
|
|
549
|
+
class: _
|
|
550
|
+
} },
|
|
551
|
+
onUpdate: ({ editor: e }) => {
|
|
552
|
+
d.current || u.current({
|
|
553
|
+
kind: "rich",
|
|
554
|
+
document: e.getJSON()
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
U(() => {
|
|
559
|
+
if (C) try {
|
|
560
|
+
let e = n.kind === "rich" ? C.schema.nodeFromJSON(n.document).toJSON() : he(P(n), $);
|
|
561
|
+
JSON.stringify(C.getJSON()) !== JSON.stringify(e) && C.commands.setContent(e, { emitUpdate: !1 });
|
|
562
|
+
} catch {}
|
|
563
|
+
}), U(() => {
|
|
564
|
+
C?.setEditable(!r && n.kind !== "html", !1);
|
|
565
|
+
}, [
|
|
566
|
+
C,
|
|
567
|
+
r,
|
|
568
|
+
n.kind
|
|
569
|
+
]), U(() => {
|
|
570
|
+
(r || n.kind === "html") && p(!1);
|
|
571
|
+
}, [r, n.kind]), G(o, () => {
|
|
572
|
+
let e = (e) => {
|
|
573
|
+
if (!C) throw Error(l.editorNotReady);
|
|
574
|
+
d.current = !0;
|
|
575
|
+
try {
|
|
576
|
+
return e(), {
|
|
577
|
+
kind: "rich",
|
|
578
|
+
document: C.getJSON()
|
|
579
|
+
};
|
|
580
|
+
} finally {
|
|
581
|
+
d.current = !1;
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
return {
|
|
585
|
+
synchronize: (e) => {
|
|
586
|
+
if (!C) return;
|
|
587
|
+
let t = e.kind === "rich" ? C.schema.nodeFromJSON(e.document).toJSON() : he(P(e), $);
|
|
588
|
+
JSON.stringify(C.getJSON()) !== JSON.stringify(t) && C.commands.setContent(t, { emitUpdate: !1 });
|
|
589
|
+
},
|
|
590
|
+
focus: () => {
|
|
591
|
+
C?.commands.focus();
|
|
592
|
+
},
|
|
593
|
+
convert: (e) => ({
|
|
594
|
+
kind: "rich",
|
|
595
|
+
document: e.kind === "rich" ? e.document : he(P(e), $)
|
|
596
|
+
}),
|
|
597
|
+
insert: (t, n) => e(() => {
|
|
598
|
+
n === "append" && C.commands.focus("end"), C.chain().focus().insertContent(t.kind === "rich" ? t.document.content ?? [] : P(t)).run();
|
|
599
|
+
}),
|
|
600
|
+
insertText: (t) => e(() => {
|
|
601
|
+
t && C.chain().focus().insertContent({
|
|
602
|
+
type: "text",
|
|
603
|
+
text: t
|
|
604
|
+
}).run();
|
|
605
|
+
}),
|
|
606
|
+
insertPlaceholder: (t) => e(() => {
|
|
607
|
+
C.chain().focus().insertContent({
|
|
608
|
+
type: "placeholderToken",
|
|
609
|
+
attrs: { key: t }
|
|
610
|
+
}).run();
|
|
611
|
+
})
|
|
612
|
+
};
|
|
613
|
+
}, [C, l]);
|
|
614
|
+
let w = [
|
|
615
|
+
{
|
|
616
|
+
id: "bold",
|
|
617
|
+
icon: ie,
|
|
618
|
+
label: S.toolbar.bold,
|
|
619
|
+
isActive: () => !!C?.isActive("bold"),
|
|
620
|
+
run: () => {
|
|
621
|
+
C?.chain().focus().toggleBold().run();
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
id: "italic",
|
|
626
|
+
icon: ae,
|
|
627
|
+
label: S.toolbar.italic,
|
|
628
|
+
isActive: () => !!C?.isActive("italic"),
|
|
629
|
+
run: () => {
|
|
630
|
+
C?.chain().focus().toggleItalic().run();
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
id: "bullet",
|
|
635
|
+
icon: se,
|
|
636
|
+
label: S.toolbar.bulletList,
|
|
637
|
+
isActive: () => !!C?.isActive("bulletList"),
|
|
638
|
+
run: () => {
|
|
639
|
+
C?.chain().focus().toggleBulletList().run();
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
id: "ordered",
|
|
644
|
+
icon: ce,
|
|
645
|
+
label: S.toolbar.orderedList,
|
|
646
|
+
isActive: () => !!C?.isActive("orderedList"),
|
|
647
|
+
run: () => {
|
|
648
|
+
C?.chain().focus().toggleOrderedList().run();
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
id: "undo",
|
|
653
|
+
icon: de,
|
|
654
|
+
label: S.toolbar.undo,
|
|
655
|
+
isActive: () => !1,
|
|
656
|
+
run: () => {
|
|
657
|
+
C?.chain().focus().undo().run();
|
|
658
|
+
},
|
|
659
|
+
disabled: !C?.can().undo()
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
id: "redo",
|
|
663
|
+
icon: le,
|
|
664
|
+
label: S.toolbar.redo,
|
|
665
|
+
isActive: () => !1,
|
|
666
|
+
run: () => {
|
|
667
|
+
C?.chain().focus().redo().run();
|
|
668
|
+
},
|
|
669
|
+
disabled: !C?.can().redo()
|
|
670
|
+
}
|
|
671
|
+
];
|
|
672
|
+
return /* @__PURE__ */ X(a, {
|
|
673
|
+
gap: "none",
|
|
674
|
+
className: t("email-composer--editor", j.frame, r && j.disabled),
|
|
675
|
+
children: [
|
|
676
|
+
/* @__PURE__ */ Y(A, {
|
|
677
|
+
buttons: w,
|
|
678
|
+
disabled: r,
|
|
679
|
+
hasEditor: !!C,
|
|
680
|
+
sourceMode: !1,
|
|
681
|
+
hideSourceToggle: !0,
|
|
682
|
+
toggleSourceMode: () => {},
|
|
683
|
+
strings: S,
|
|
684
|
+
extraToolbarItems: [{
|
|
685
|
+
id: "link",
|
|
686
|
+
icon: oe,
|
|
687
|
+
label: l.link,
|
|
688
|
+
onClick: () => {
|
|
689
|
+
C && (x.current = {
|
|
690
|
+
from: C.state.selection.from,
|
|
691
|
+
to: C.state.selection.to
|
|
692
|
+
}, g(String(C.getAttributes("link").href ?? "")), b(""), p(!0));
|
|
693
|
+
}
|
|
694
|
+
}]
|
|
695
|
+
}),
|
|
696
|
+
/* @__PURE__ */ Y(pe, {
|
|
697
|
+
editor: C,
|
|
698
|
+
className: t(j.content, "min-h-64 w-full min-w-0 [&_.ProseMirror]:min-h-64")
|
|
699
|
+
}),
|
|
700
|
+
/* @__PURE__ */ Y(h, {
|
|
701
|
+
open: f,
|
|
702
|
+
onOpenChange: p,
|
|
703
|
+
title: l.linkTitle,
|
|
704
|
+
strings: {
|
|
705
|
+
confirm: l.apply,
|
|
706
|
+
cancel: l.cancel,
|
|
707
|
+
close: l.closeLink
|
|
708
|
+
},
|
|
709
|
+
closeOnAsyncComplete: !1,
|
|
710
|
+
onAsyncConfirm: async () => {
|
|
711
|
+
let e = m.trim();
|
|
712
|
+
if (e && !/^(https?:\/\/|mailto:)/i.test(e)) {
|
|
713
|
+
b(l.invalidLink);
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
C?.commands.setTextSelection(x.current), e ? C?.chain().focus().extendMarkRange("link").setLink({ href: e }).run() : C?.chain().focus().extendMarkRange("link").unsetLink().run(), p(!1);
|
|
717
|
+
},
|
|
718
|
+
children: /* @__PURE__ */ X(a, {
|
|
719
|
+
gap: "md",
|
|
720
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
721
|
+
label: l.linkUrl,
|
|
722
|
+
children: /* @__PURE__ */ Y(y, {
|
|
723
|
+
value: m,
|
|
724
|
+
onChange: (e) => g(e.target.value)
|
|
725
|
+
})
|
|
726
|
+
}), v && /* @__PURE__ */ Y(s, {
|
|
727
|
+
tone: "destructive",
|
|
728
|
+
children: /* @__PURE__ */ Y(c, { children: v })
|
|
729
|
+
})]
|
|
730
|
+
})
|
|
731
|
+
})
|
|
732
|
+
]
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
//#endregion
|
|
736
|
+
//#region src/components/features/email-composer/partials/html-preview.tsx
|
|
737
|
+
function Ee({ html: e, subject: t, strings: n }) {
|
|
738
|
+
return /* @__PURE__ */ X(a, {
|
|
739
|
+
gap: "normal",
|
|
740
|
+
className: "min-w-0",
|
|
741
|
+
children: [/* @__PURE__ */ X(r, {
|
|
742
|
+
type: "secondary",
|
|
743
|
+
children: [
|
|
744
|
+
n.subject,
|
|
745
|
+
": ",
|
|
746
|
+
t
|
|
747
|
+
]
|
|
748
|
+
}), /* @__PURE__ */ Y(l, {
|
|
749
|
+
surface: "card",
|
|
750
|
+
padding: "none",
|
|
751
|
+
children: /* @__PURE__ */ Y("iframe", {
|
|
752
|
+
title: n.previewLabel,
|
|
753
|
+
sandbox: "",
|
|
754
|
+
referrerPolicy: "no-referrer",
|
|
755
|
+
className: "h-80 w-full border-0",
|
|
756
|
+
srcDoc: `<!doctype html><html><head><meta charset="utf-8"><meta name="color-scheme" content="only light"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src https:; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none';"></head><body>${e}</body></html>`
|
|
757
|
+
})
|
|
758
|
+
})]
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region src/components/features/email-composer/email-composer.tsx
|
|
763
|
+
function De(e) {
|
|
764
|
+
let r = be(e), { api: i, draft: u, strings: d, busy: _, state: b } = r, [x, S] = q("editor"), [C, w] = q(e.placeholders?.showEditor ?? !1), [D, A] = q(!1), [j, M] = q(!1), [N, P] = q(!1), F = W(), I = x === "preview" || u.body.kind === "html", L = (t) => (e.actions ?? []).filter((e) => (e.position ?? "toolbar") === t && (e.visible?.(b) ?? !0)).map((e) => ({
|
|
765
|
+
id: e.id,
|
|
766
|
+
label: e.label,
|
|
767
|
+
icon: e.icon,
|
|
768
|
+
disabled: _ || e.disabled?.(b),
|
|
769
|
+
onClick: () => {
|
|
770
|
+
r.runAction(e);
|
|
771
|
+
},
|
|
772
|
+
buttonStyle: "ghost",
|
|
773
|
+
tone: "secondary"
|
|
774
|
+
})), R = /* @__PURE__ */ X(a, {
|
|
775
|
+
direction: {
|
|
776
|
+
base: "vertical",
|
|
777
|
+
sm: "horizontal"
|
|
778
|
+
},
|
|
779
|
+
gap: "sm",
|
|
780
|
+
align: {
|
|
781
|
+
base: "stretch",
|
|
782
|
+
sm: "center"
|
|
783
|
+
},
|
|
784
|
+
justify: "between",
|
|
785
|
+
className: "w-full",
|
|
786
|
+
children: [/* @__PURE__ */ X(a, {
|
|
787
|
+
direction: "horizontal",
|
|
788
|
+
gap: "sm",
|
|
789
|
+
children: [e.buttons?.discard !== !1 && /* @__PURE__ */ Y(n, {
|
|
790
|
+
type: "button",
|
|
791
|
+
tone: "secondary",
|
|
792
|
+
buttonStyle: "ghost",
|
|
793
|
+
disabled: _,
|
|
794
|
+
onClick: () => {
|
|
795
|
+
i.discard();
|
|
796
|
+
},
|
|
797
|
+
children: e.buttons?.discard?.label ?? d.discard
|
|
798
|
+
}), /* @__PURE__ */ Y(p, { actions: L("footer-start") })]
|
|
799
|
+
}), /* @__PURE__ */ X(a, {
|
|
800
|
+
direction: "horizontal",
|
|
801
|
+
gap: "sm",
|
|
802
|
+
justify: "end",
|
|
803
|
+
children: [
|
|
804
|
+
/* @__PURE__ */ Y(p, { actions: L("footer-end") }),
|
|
805
|
+
!!L("overflow").length && /* @__PURE__ */ Y(f, {
|
|
806
|
+
actions: L("overflow"),
|
|
807
|
+
srText: d.more,
|
|
808
|
+
buttonProps: { disabled: _ }
|
|
809
|
+
}),
|
|
810
|
+
e.buttons?.send !== !1 && /* @__PURE__ */ X(n, {
|
|
811
|
+
type: "button",
|
|
812
|
+
tone: "primary",
|
|
813
|
+
disabled: _ || r.dataPending,
|
|
814
|
+
loading: _,
|
|
815
|
+
strings: { loading: d.working },
|
|
816
|
+
onClick: () => {
|
|
817
|
+
i.send();
|
|
818
|
+
},
|
|
819
|
+
children: [/* @__PURE__ */ Y(ue, { className: "size-icon" }), _ ? d.working : e.buttons?.send?.label ?? d.send]
|
|
820
|
+
})
|
|
821
|
+
]
|
|
822
|
+
})]
|
|
823
|
+
}), z = (e) => r.attempted ? b.issues.find((t) => t.field === e)?.message : void 0, B = /* @__PURE__ */ X(a, {
|
|
824
|
+
gap: "lg",
|
|
825
|
+
className: "email-composer--body min-w-0",
|
|
826
|
+
children: [
|
|
827
|
+
/* @__PURE__ */ X(a, {
|
|
828
|
+
gap: "md",
|
|
829
|
+
className: "email-composer--details",
|
|
830
|
+
children: [/* @__PURE__ */ Y(a, {
|
|
831
|
+
gap: "md",
|
|
832
|
+
children: [
|
|
833
|
+
"to",
|
|
834
|
+
"cc",
|
|
835
|
+
"bcc"
|
|
836
|
+
].filter((t) => t === "to" || t === "cc" && (D || u.cc.length || Q(e.recipients?.cc)) || t === "bcc" && (j || u.bcc.length || Q(e.recipients?.bcc))).map((t) => /* @__PURE__ */ Y(Se, {
|
|
837
|
+
field: t,
|
|
838
|
+
value: u[t],
|
|
839
|
+
options: e.recipients?.[t],
|
|
840
|
+
strings: d,
|
|
841
|
+
busy: _,
|
|
842
|
+
report: r.report,
|
|
843
|
+
error: z(t),
|
|
844
|
+
onChange: (e) => r.changeRecipients(t, e),
|
|
845
|
+
actions: t === "to" ? /* @__PURE__ */ X(J, { children: [!D && !u.cc.length && /* @__PURE__ */ Y(n, {
|
|
846
|
+
type: "button",
|
|
847
|
+
size: "sm",
|
|
848
|
+
buttonStyle: "ghost",
|
|
849
|
+
tone: "secondary",
|
|
850
|
+
disabled: _,
|
|
851
|
+
onClick: () => A(!0),
|
|
852
|
+
children: d.cc
|
|
853
|
+
}), !j && !u.bcc.length && /* @__PURE__ */ Y(n, {
|
|
854
|
+
type: "button",
|
|
855
|
+
size: "sm",
|
|
856
|
+
buttonStyle: "ghost",
|
|
857
|
+
tone: "secondary",
|
|
858
|
+
disabled: _,
|
|
859
|
+
onClick: () => M(!0),
|
|
860
|
+
children: d.bcc
|
|
861
|
+
})] }) : void 0
|
|
862
|
+
}, t))
|
|
863
|
+
}), /* @__PURE__ */ Y(E, {
|
|
864
|
+
label: d.subject,
|
|
865
|
+
required: !0,
|
|
866
|
+
htmlFor: `${F}-subject`,
|
|
867
|
+
error: z("subject"),
|
|
868
|
+
supportingTextId: `${F}-subject-error`,
|
|
869
|
+
children: /* @__PURE__ */ Y(y, {
|
|
870
|
+
id: `${F}-subject`,
|
|
871
|
+
value: u.subject,
|
|
872
|
+
readOnly: e.subject?.readOnly,
|
|
873
|
+
disabled: _,
|
|
874
|
+
invalid: !!z("subject"),
|
|
875
|
+
"aria-describedby": z("subject") ? `${F}-subject-error` : void 0,
|
|
876
|
+
onChange: (e) => r.changeSubject(e.target.value)
|
|
877
|
+
})
|
|
878
|
+
})]
|
|
879
|
+
}),
|
|
880
|
+
/* @__PURE__ */ Y(te, {
|
|
881
|
+
value: I ? "preview" : "editor",
|
|
882
|
+
onValueChange: (e) => {
|
|
883
|
+
e && S(e);
|
|
884
|
+
},
|
|
885
|
+
children: /* @__PURE__ */ X(l, {
|
|
886
|
+
surface: "flat",
|
|
887
|
+
padding: "none",
|
|
888
|
+
contentGap: "md",
|
|
889
|
+
title: d.body,
|
|
890
|
+
headerAction: /* @__PURE__ */ X(ee, { children: [/* @__PURE__ */ Y(O, {
|
|
891
|
+
value: "editor",
|
|
892
|
+
disabled: u.body.kind === "html",
|
|
893
|
+
children: d.editor
|
|
894
|
+
}), /* @__PURE__ */ Y(O, {
|
|
895
|
+
value: "preview",
|
|
896
|
+
children: d.preview
|
|
897
|
+
})] }),
|
|
898
|
+
children: [
|
|
899
|
+
(!!e.templates || !!r.templates.length || L("toolbar").length > 0) && /* @__PURE__ */ X(a, {
|
|
900
|
+
direction: "horizontal",
|
|
901
|
+
gap: "sm",
|
|
902
|
+
align: "center",
|
|
903
|
+
className: "email-composer--message-actions",
|
|
904
|
+
children: [
|
|
905
|
+
(e.templates || !!r.templates.length) && /* @__PURE__ */ Y(ne, {
|
|
906
|
+
trigger: /* @__PURE__ */ Y(n, {
|
|
907
|
+
type: "button",
|
|
908
|
+
tone: "secondary",
|
|
909
|
+
buttonStyle: "outline",
|
|
910
|
+
size: "sm",
|
|
911
|
+
disabled: _,
|
|
912
|
+
children: d.templates
|
|
913
|
+
}),
|
|
914
|
+
items: r.templates.map((e) => ({
|
|
915
|
+
value: e.id,
|
|
916
|
+
label: e.name,
|
|
917
|
+
description: e.description ?? e.category,
|
|
918
|
+
data: e
|
|
919
|
+
})),
|
|
920
|
+
onSelect: (e) => {
|
|
921
|
+
try {
|
|
922
|
+
i.applyTemplate(e.value);
|
|
923
|
+
} catch (e) {
|
|
924
|
+
r.report(e);
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
loading: e.templates?.loading,
|
|
928
|
+
error: e.templates?.error,
|
|
929
|
+
onRetry: e.templates?.onRetry ? () => {
|
|
930
|
+
Promise.resolve().then(e.templates.onRetry).catch(r.report);
|
|
931
|
+
} : void 0,
|
|
932
|
+
onOpenChange: e.templates?.onOpenChange,
|
|
933
|
+
strings: {
|
|
934
|
+
searchPlaceholder: d.searchTemplates,
|
|
935
|
+
empty: d.noTemplates,
|
|
936
|
+
loading: d.loadingTemplates,
|
|
937
|
+
retry: d.retry
|
|
938
|
+
}
|
|
939
|
+
}),
|
|
940
|
+
e.templates?.allowImport && e.templates.onImport && /* @__PURE__ */ Y(n, {
|
|
941
|
+
type: "button",
|
|
942
|
+
tone: "secondary",
|
|
943
|
+
buttonStyle: "ghost",
|
|
944
|
+
size: "sm",
|
|
945
|
+
disabled: _,
|
|
946
|
+
onClick: () => {
|
|
947
|
+
r.importTemplate();
|
|
948
|
+
},
|
|
949
|
+
children: d.importTemplate
|
|
950
|
+
}),
|
|
951
|
+
/* @__PURE__ */ Y(p, {
|
|
952
|
+
size: "sm",
|
|
953
|
+
actions: L("toolbar")
|
|
954
|
+
})
|
|
955
|
+
]
|
|
956
|
+
}),
|
|
957
|
+
/* @__PURE__ */ Y(k, {
|
|
958
|
+
value: "editor",
|
|
959
|
+
keepMounted: !0,
|
|
960
|
+
children: /* @__PURE__ */ Y(Te, {
|
|
961
|
+
body: u.body,
|
|
962
|
+
disabled: _ || I,
|
|
963
|
+
onChange: r.changeBody,
|
|
964
|
+
adapterRef: r.editorRef,
|
|
965
|
+
strings: d
|
|
966
|
+
})
|
|
967
|
+
}),
|
|
968
|
+
/* @__PURE__ */ Y(k, {
|
|
969
|
+
value: "preview",
|
|
970
|
+
children: r.rendered && /* @__PURE__ */ Y(Ee, {
|
|
971
|
+
html: r.rendered.email.html,
|
|
972
|
+
subject: r.rendered.email.subject,
|
|
973
|
+
strings: d
|
|
974
|
+
})
|
|
975
|
+
})
|
|
976
|
+
]
|
|
977
|
+
})
|
|
978
|
+
}),
|
|
979
|
+
(!!Object.keys(r.definitions).length || Q(e.placeholders)) && /* @__PURE__ */ Y(v, {
|
|
980
|
+
value: C ? ["variables"] : [],
|
|
981
|
+
onValueChange: (e) => w(e.includes("variables")),
|
|
982
|
+
items: [{
|
|
983
|
+
value: "variables",
|
|
984
|
+
title: d.variables,
|
|
985
|
+
description: d.variablesDescription,
|
|
986
|
+
content: Q(e.placeholders) ? /* @__PURE__ */ Y(ye, {
|
|
987
|
+
state: e.placeholders,
|
|
988
|
+
label: d.loadingVariables,
|
|
989
|
+
retryLabel: d.retry,
|
|
990
|
+
report: r.report
|
|
991
|
+
}) : /* @__PURE__ */ Y(Ce, {
|
|
992
|
+
definitions: r.definitions,
|
|
993
|
+
values: r.values,
|
|
994
|
+
draft: u,
|
|
995
|
+
api: i,
|
|
996
|
+
strings: d,
|
|
997
|
+
busy: _,
|
|
998
|
+
editable: !I
|
|
999
|
+
})
|
|
1000
|
+
}]
|
|
1001
|
+
}),
|
|
1002
|
+
u.body.kind === "html" && /* @__PURE__ */ Y(n, {
|
|
1003
|
+
type: "button",
|
|
1004
|
+
tone: "secondary",
|
|
1005
|
+
buttonStyle: "outline",
|
|
1006
|
+
disabled: _,
|
|
1007
|
+
onClick: () => P(!0),
|
|
1008
|
+
children: d.convert
|
|
1009
|
+
}),
|
|
1010
|
+
(r.error || !r.dataPending && r.renderError) && /* @__PURE__ */ X(s, {
|
|
1011
|
+
tone: "destructive",
|
|
1012
|
+
children: [/* @__PURE__ */ Y(o, { children: d.errorTitle }), /* @__PURE__ */ Y(c, { children: r.error || r.renderError })]
|
|
1013
|
+
}),
|
|
1014
|
+
r.notice && /* @__PURE__ */ Y(s, {
|
|
1015
|
+
tone: "success",
|
|
1016
|
+
role: "status",
|
|
1017
|
+
children: /* @__PURE__ */ Y(c, { children: r.notice })
|
|
1018
|
+
}),
|
|
1019
|
+
e.children?.(i)
|
|
1020
|
+
]
|
|
1021
|
+
}), V = e.title ?? d.title, H = e.onClose ? /* @__PURE__ */ Y(n, {
|
|
1022
|
+
type: "button",
|
|
1023
|
+
iconOnly: !0,
|
|
1024
|
+
tone: "secondary",
|
|
1025
|
+
buttonStyle: "ghost",
|
|
1026
|
+
size: "sm",
|
|
1027
|
+
disabled: _,
|
|
1028
|
+
"aria-label": d.close,
|
|
1029
|
+
onClick: e.onClose,
|
|
1030
|
+
children: /* @__PURE__ */ Y(fe, { className: "size-icon" })
|
|
1031
|
+
}) : void 0, U, G = t("email-composer--component min-w-0", e.className);
|
|
1032
|
+
if (e.position === "dialog" || e.position === "sheet") {
|
|
1033
|
+
let t = {
|
|
1034
|
+
open: !0,
|
|
1035
|
+
title: V,
|
|
1036
|
+
description: e.description,
|
|
1037
|
+
onOpenChange: (t) => {
|
|
1038
|
+
!t && !_ && e.onClose?.();
|
|
1039
|
+
},
|
|
1040
|
+
closeOnEscape: !_ && !!e.onClose,
|
|
1041
|
+
closeOnBackdropClick: !1,
|
|
1042
|
+
loading: _,
|
|
1043
|
+
strings: { close: d.close },
|
|
1044
|
+
showCancel: !1,
|
|
1045
|
+
showConfirm: !1,
|
|
1046
|
+
showCloseButton: !!e.onClose && !_,
|
|
1047
|
+
footer: R,
|
|
1048
|
+
className: G
|
|
1049
|
+
};
|
|
1050
|
+
U = e.position === "dialog" ? /* @__PURE__ */ Y(h, {
|
|
1051
|
+
...t,
|
|
1052
|
+
size: "3xl",
|
|
1053
|
+
showCloseButton: !!e.onClose && !_,
|
|
1054
|
+
children: B
|
|
1055
|
+
}) : /* @__PURE__ */ Y(m, {
|
|
1056
|
+
...t,
|
|
1057
|
+
width: "3xl",
|
|
1058
|
+
children: B
|
|
1059
|
+
});
|
|
1060
|
+
} else {
|
|
1061
|
+
let t = /* @__PURE__ */ Y(l, {
|
|
1062
|
+
className: G,
|
|
1063
|
+
surface: "card",
|
|
1064
|
+
title: V,
|
|
1065
|
+
description: e.description,
|
|
1066
|
+
headerAction: H,
|
|
1067
|
+
headerDivider: !0,
|
|
1068
|
+
footerDivider: !0,
|
|
1069
|
+
footerSlot: R,
|
|
1070
|
+
children: B
|
|
1071
|
+
});
|
|
1072
|
+
U = e.position === "floating" ? /* @__PURE__ */ Y("div", {
|
|
1073
|
+
className: "fixed bottom-space-md end-space-md z-40 w-[min(42rem,calc(100vw-2rem))]",
|
|
1074
|
+
children: /* @__PURE__ */ Y(T, {
|
|
1075
|
+
className: "max-h-[calc(100dvh-2rem)]",
|
|
1076
|
+
viewportClassName: "max-h-[calc(100dvh-2rem)]",
|
|
1077
|
+
children: t
|
|
1078
|
+
})
|
|
1079
|
+
}) : t;
|
|
1080
|
+
}
|
|
1081
|
+
return /* @__PURE__ */ X(J, { children: [U, /* @__PURE__ */ Y(g, {
|
|
1082
|
+
open: N,
|
|
1083
|
+
onOpenChange: P,
|
|
1084
|
+
title: d.convertTitle,
|
|
1085
|
+
description: d.convertDescription,
|
|
1086
|
+
strings: {
|
|
1087
|
+
confirm: d.convert,
|
|
1088
|
+
cancel: d.cancel,
|
|
1089
|
+
close: d.closeConversion
|
|
1090
|
+
},
|
|
1091
|
+
onConfirm: () => {
|
|
1092
|
+
!_ && r.editorRef.current && (i.setBody(r.editorRef.current.convert(u.body)), S("editor"));
|
|
1093
|
+
}
|
|
1094
|
+
})] });
|
|
1095
|
+
}
|
|
1096
|
+
//#endregion
|
|
1097
|
+
export { De as EmailComposer, P as bodyHtml, V as createHttpSender, H as defaultEmailComposerStrings, z as parseRecipient, F as recipientLabel, N as renderEmail, R as resolveValues, B as validate };
|
|
1098
|
+
|
|
1099
|
+
//# sourceMappingURL=email-composer.js.map
|