themelia-react-ui 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +20 -20
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +216 -220
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
-
import { t } from "../utils-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as i } from "../structure-
|
|
7
|
-
import { t as a } from "../field-state-recipes-
|
|
8
|
-
import { t as o } from "../input-
|
|
9
|
-
import { t as s } from "../form-field-
|
|
10
|
-
import { forwardRef as c, useEffect as l, useId as
|
|
11
|
-
import { jsx as
|
|
3
|
+
import { t } from "../utils-BRhFDwuU.js";
|
|
4
|
+
import { n } from "../buttons-DPZekJFu.js";
|
|
5
|
+
import { c as r } from "../typography-UTnveOEy.js";
|
|
6
|
+
import { t as i } from "../structure-BmisBK-3.js";
|
|
7
|
+
import { t as a } from "../field-state-recipes-BVA2CWHo.js";
|
|
8
|
+
import { t as o } from "../input-DQdEd0YD.js";
|
|
9
|
+
import { t as s } from "../form-field-CwH9y77i.js";
|
|
10
|
+
import { forwardRef as c, useEffect as l, useId as u, useImperativeHandle as d, useLayoutEffect as ee, useMemo as te, useRef as f, useState as p } from "react";
|
|
11
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/base/signature-pad/signature-pad.types.ts
|
|
13
|
-
var
|
|
13
|
+
var g = {
|
|
14
14
|
label: "Signature",
|
|
15
15
|
instructions: "Draw with a pointer or type your name below. Escape cancels a stroke; Control or Command Z undoes it.",
|
|
16
16
|
drawingInstructions: "Draw with a pointer. Escape cancels a stroke; Control or Command Z undoes it.",
|
|
@@ -21,22 +21,23 @@ var ie = {
|
|
|
21
21
|
clear: "Clear signature",
|
|
22
22
|
empty: "Signature is empty",
|
|
23
23
|
signed: "Signature entered"
|
|
24
|
-
},
|
|
25
|
-
function
|
|
24
|
+
}, _ = { strokes: [] };
|
|
25
|
+
function v(e) {
|
|
26
26
|
return !e.typedName?.trim() && !e.strokes.some((e) => e.points.length > 0);
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
28
|
+
var y = (e) => Number.isFinite(e) ? Math.min(1, Math.max(0, e)) : 0;
|
|
29
|
+
function b(e) {
|
|
30
30
|
return {
|
|
31
31
|
strokes: e.strokes.filter((e) => e.points.length > 0).map((e) => ({ points: e.points.map((e) => ({
|
|
32
|
-
x:
|
|
33
|
-
y:
|
|
34
|
-
pressure:
|
|
32
|
+
x: y(e.x),
|
|
33
|
+
y: y(e.y),
|
|
34
|
+
pressure: y(e.pressure)
|
|
35
35
|
})) })),
|
|
36
36
|
...e.typedName === void 0 ? {} : { typedName: e.typedName }
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
var x = "sans-serif";
|
|
40
|
+
function ne(e, t, n, r, i, a = x) {
|
|
40
41
|
e.clearRect(0, 0, n, r), e.lineCap = "round", e.lineJoin = "round";
|
|
41
42
|
for (let a of t.strokes) {
|
|
42
43
|
let t = a.points[0];
|
|
@@ -48,87 +49,95 @@ function v(e, t, n, r, i) {
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
+
if (t.typedName) {
|
|
53
|
+
let i = n * .92, o = Math.max(12, r / 5);
|
|
54
|
+
e.font = `${o}px ${a}`;
|
|
55
|
+
let s = e.measureText?.(t.typedName).width ?? 0;
|
|
56
|
+
s > i && (o = Math.max(12, o * i / s), e.font = `${o}px ${a}`), e.textBaseline = "bottom", e.fillText(t.typedName, n * .04, r * .9, i);
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
|
-
var
|
|
59
|
+
var S = (e) => e.replace(/[&<>"']/g, (e) => ({
|
|
54
60
|
"&": "&",
|
|
55
61
|
"<": "<",
|
|
56
62
|
">": ">",
|
|
57
63
|
"\"": """,
|
|
58
64
|
"'": "'"
|
|
59
65
|
})[e]);
|
|
60
|
-
function
|
|
61
|
-
let
|
|
62
|
-
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${t} ${n}" width="${t}" height="${n}">${
|
|
66
|
+
function re(e, t = 600, n = 200, r = 2, i = "currentColor", a = x) {
|
|
67
|
+
let o = b(e);
|
|
68
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${t} ${n}" width="${t}" height="${n}">${o.strokes.map((e) => {
|
|
63
69
|
let a = e.points[0];
|
|
64
|
-
return e.points.length === 1 ? `<circle cx="${a.x * t}" cy="${a.y * n}" r="${r * (.5 + a.pressure) / 2}" fill="${
|
|
70
|
+
return e.points.length === 1 ? `<circle cx="${a.x * t}" cy="${a.y * n}" r="${r * (.5 + a.pressure) / 2}" fill="${S(i)}"/>` : e.points.slice(1).map((a, o) => {
|
|
65
71
|
let s = e.points[o];
|
|
66
|
-
return `<path d="M${s.x * t} ${s.y * n}L${a.x * t} ${a.y * n}" fill="none" stroke="${
|
|
72
|
+
return `<path d="M${s.x * t} ${s.y * n}L${a.x * t} ${a.y * n}" fill="none" stroke="${S(i)}" stroke-width="${r * (.5 + (s.pressure + a.pressure) / 2)}" stroke-linecap="round"/>`;
|
|
67
73
|
}).join("");
|
|
68
|
-
}).join("")}${
|
|
74
|
+
}).join("")}${o.typedName ? `<text x="${t * .04}" y="${n * .9}" textLength="${Math.min(t * .92, o.typedName.length * n * .1)}" font-family="${S(a)}" font-size="${Math.max(12, n / 5)}" fill="${S(i)}">${S(o.typedName)}</text>` : ""}</svg>`;
|
|
69
75
|
}
|
|
70
76
|
//#endregion
|
|
71
77
|
//#region src/components/base/signature-pad/signature-pad.tsx
|
|
72
|
-
var
|
|
73
|
-
let { value:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}, [
|
|
77
|
-
let
|
|
78
|
-
let t =
|
|
78
|
+
var C = c(function(c, y) {
|
|
79
|
+
let { value: x, defaultValue: S = _, onValueChange: C, disabled: w = !1, readOnly: T = !1, invalid: E, name: D, form: O, required: k, allowTypedSignature: A = !0, strokeWidth: j = 2, strings: ie, className: ae, id: oe, ...se } = c, M = Object.prototype.hasOwnProperty.call(c, "value"), [ce, le] = p(() => b(S)), ue = te(() => b(x ?? _), [x]), N = M ? ue : ce, P = f(N);
|
|
80
|
+
ee(() => {
|
|
81
|
+
P.current = N;
|
|
82
|
+
}, [N]);
|
|
83
|
+
let F = f([]), I = f([]), [de, fe] = p(0), L = f(null), [pe, R] = p(!1), z = f(null), me = f(null), B = f(null), V = f(null), he = u(), H = oe ?? `signature-${he}`, U = e(g, ie), ge = A ? U.instructions : ie?.instructions ?? U.drawingInstructions, W = w || T, G = Number.isFinite(j) ? Math.max(.25, j) : 2, K = (e) => {
|
|
84
|
+
let t = z.current;
|
|
79
85
|
if (!t) return;
|
|
80
86
|
let n = t.getBoundingClientRect();
|
|
81
87
|
if (!n.width || !n.height) return;
|
|
82
88
|
let r = window.devicePixelRatio || 1;
|
|
83
89
|
t.width !== Math.round(n.width * r) && (t.width = Math.round(n.width * r)), t.height !== Math.round(n.height * r) && (t.height = Math.round(n.height * r));
|
|
84
90
|
let i = t.getContext("2d");
|
|
85
|
-
|
|
91
|
+
if (!i) return;
|
|
92
|
+
i.setTransform(r, 0, 0, r, 0, 0);
|
|
93
|
+
let a = getComputedStyle(t);
|
|
94
|
+
i.strokeStyle = i.fillStyle = a.color, ne(i, b(e), n.width, n.height, G, a.fontFamily || void 0);
|
|
86
95
|
}, q = () => {
|
|
87
|
-
let e =
|
|
88
|
-
|
|
96
|
+
let e = L.current;
|
|
97
|
+
L.current = null, R(!1), e && z.current?.hasPointerCapture?.(e.pointerId) && z.current.releasePointerCapture(e.pointerId), K(P.current);
|
|
89
98
|
}, J = (e, t = !0) => {
|
|
90
99
|
if (W) return;
|
|
91
100
|
q();
|
|
92
|
-
let n =
|
|
93
|
-
t && (
|
|
101
|
+
let n = b(e);
|
|
102
|
+
t && (F.current.push(P.current), I.current = []), V.current = n, M || (P.current = n, le(n)), C?.(n), fe((e) => e + 1);
|
|
94
103
|
}, Y = () => {
|
|
95
|
-
if (W || !
|
|
96
|
-
let e =
|
|
97
|
-
|
|
104
|
+
if (W || !F.current.length) return;
|
|
105
|
+
let e = F.current.pop();
|
|
106
|
+
I.current.push(P.current), J(e, !1);
|
|
98
107
|
}, X = () => {
|
|
99
|
-
if (W || !
|
|
100
|
-
let e =
|
|
101
|
-
|
|
102
|
-
}, Z = () => (
|
|
103
|
-
|
|
108
|
+
if (W || !I.current.length) return;
|
|
109
|
+
let e = I.current.pop();
|
|
110
|
+
F.current.push(P.current), J(e, !1);
|
|
111
|
+
}, Z = () => (A ? B.current : z.current)?.focus();
|
|
112
|
+
d(y, () => ({
|
|
104
113
|
focus: Z,
|
|
105
114
|
undo: Y,
|
|
106
115
|
redo: X,
|
|
107
|
-
clear: () => J(
|
|
116
|
+
clear: () => J(_),
|
|
108
117
|
serialize: (e = "png", t = {}) => {
|
|
109
|
-
let n =
|
|
118
|
+
let n = b(P.current);
|
|
110
119
|
if (e === "json") return JSON.stringify(n);
|
|
111
|
-
let r =
|
|
112
|
-
if (e === "svg") return
|
|
113
|
-
let
|
|
114
|
-
|
|
115
|
-
let
|
|
116
|
-
if (!
|
|
117
|
-
return
|
|
120
|
+
let r = z.current?.getBoundingClientRect(), i = Number.isFinite(t.width) ? Math.max(1, t.width) : r?.width || 600, a = Number.isFinite(t.height) ? Math.max(1, t.height) : r?.height || 200, o = z.current ? getComputedStyle(z.current) : void 0, s = o?.color || "currentColor", c = o?.fontFamily || void 0;
|
|
121
|
+
if (e === "svg") return re(n, i, a, G, s, c);
|
|
122
|
+
let l = Number.isFinite(t.scale) ? Math.max(.1, Math.min(8, t.scale)) : window.devicePixelRatio || 1, u = document.createElement("canvas");
|
|
123
|
+
u.width = Math.round(i * l), u.height = Math.round(a * l);
|
|
124
|
+
let d = u.getContext("2d");
|
|
125
|
+
if (!d) throw Error("Canvas export is unavailable in this environment. Use SVG or JSON.");
|
|
126
|
+
return d.scale(l, l), d.strokeStyle = d.fillStyle = s, ne(d, n, i, a, G, c), u.toDataURL("image/png");
|
|
118
127
|
}
|
|
119
128
|
})), l(() => {
|
|
120
|
-
|
|
129
|
+
M && JSON.stringify(N) !== JSON.stringify(V.current) && (F.current = [], I.current = [], fe((e) => e + 1)), V.current = N, q();
|
|
121
130
|
}, [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
131
|
+
N,
|
|
132
|
+
w,
|
|
133
|
+
T
|
|
125
134
|
]), l(() => {
|
|
126
|
-
let e =
|
|
135
|
+
let e = z.current;
|
|
127
136
|
if (!e) return;
|
|
128
|
-
let t = () => K(
|
|
129
|
-
...
|
|
130
|
-
strokes: [...
|
|
131
|
-
} :
|
|
137
|
+
let t = () => K(L.current ? {
|
|
138
|
+
...L.current.initial,
|
|
139
|
+
strokes: [...L.current.initial.strokes, { points: L.current.points }]
|
|
140
|
+
} : P.current);
|
|
132
141
|
t();
|
|
133
142
|
let n = typeof ResizeObserver < "u" ? new ResizeObserver(t) : void 0;
|
|
134
143
|
n?.observe(e);
|
|
@@ -141,27 +150,29 @@ var b = c(function(c, g) {
|
|
|
141
150
|
"data-theme"
|
|
142
151
|
]
|
|
143
152
|
});
|
|
144
|
-
|
|
145
|
-
|
|
153
|
+
window.addEventListener("resize", t);
|
|
154
|
+
let i = typeof document < "u" ? document.fonts : void 0;
|
|
155
|
+
return i?.addEventListener?.("loadingdone", t), () => {
|
|
156
|
+
n?.disconnect(), r.disconnect(), window.removeEventListener("resize", t), i?.removeEventListener?.("loadingdone", t);
|
|
146
157
|
};
|
|
147
158
|
}, [G]), l(() => {
|
|
148
|
-
let e =
|
|
159
|
+
let e = me.current?.form ?? B.current?.form ?? z.current?.closest("form"), t = !0, n, r = (e) => {
|
|
149
160
|
clearTimeout(n), n = setTimeout(() => {
|
|
150
|
-
n = void 0, t && !e.defaultPrevented && !W && (
|
|
161
|
+
n = void 0, t && !e.defaultPrevented && !W && (F.current = [], I.current = [], J(S, !1));
|
|
151
162
|
}, 0);
|
|
152
163
|
};
|
|
153
164
|
return e?.addEventListener("reset", r), () => {
|
|
154
165
|
t = !1, clearTimeout(n), e?.removeEventListener("reset", r);
|
|
155
166
|
};
|
|
156
167
|
}, [
|
|
157
|
-
|
|
158
|
-
|
|
168
|
+
S,
|
|
169
|
+
M,
|
|
159
170
|
W,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
T,
|
|
171
|
+
C,
|
|
172
|
+
O,
|
|
163
173
|
D,
|
|
164
|
-
|
|
174
|
+
k,
|
|
175
|
+
A
|
|
165
176
|
]);
|
|
166
177
|
let Q = (e, t = e) => {
|
|
167
178
|
let n = e.currentTarget.getBoundingClientRect();
|
|
@@ -171,55 +182,55 @@ var b = c(function(c, g) {
|
|
|
171
182
|
pressure: e.pointerType === "pen" && t.pressure || .5
|
|
172
183
|
};
|
|
173
184
|
}, _e = (e) => {
|
|
174
|
-
let t =
|
|
185
|
+
let t = L.current;
|
|
175
186
|
if (!t || t.pointerId !== e.pointerId) return;
|
|
176
187
|
let n = Q(e), r = t.points[t.points.length - 1];
|
|
177
|
-
(r.x !== n.x || r.y !== n.y) && t.points.push(n),
|
|
188
|
+
(r.x !== n.x || r.y !== n.y) && t.points.push(n), L.current = null, R(!1), P.current === t.initial && J({
|
|
178
189
|
...t.initial,
|
|
179
190
|
strokes: [...t.initial.strokes, { points: t.points }]
|
|
180
191
|
});
|
|
181
|
-
}, $ =
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
...
|
|
192
|
+
}, $ = v(N);
|
|
193
|
+
return /* @__PURE__ */ h(i, {
|
|
194
|
+
...se,
|
|
184
195
|
id: H,
|
|
185
196
|
role: "group",
|
|
186
|
-
"aria-label":
|
|
197
|
+
"aria-label": se["aria-label"] ?? U.label,
|
|
187
198
|
gap: "sm",
|
|
188
|
-
className: t("signature-pad--component min-w-0",
|
|
189
|
-
"data-history-version":
|
|
190
|
-
"data-disabled":
|
|
191
|
-
"data-readonly":
|
|
199
|
+
className: t("signature-pad--component min-w-0 font-sans", ae),
|
|
200
|
+
"data-history-version": de,
|
|
201
|
+
"data-disabled": w || void 0,
|
|
202
|
+
"data-readonly": T || void 0,
|
|
192
203
|
children: [
|
|
193
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ m(r, {
|
|
194
205
|
id: `${H}-instructions`,
|
|
195
206
|
size: "xs",
|
|
196
207
|
type: "secondary",
|
|
197
208
|
children: ge
|
|
198
209
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
className: t("signature-pad--area relative overflow-hidden rounded-inner border border-input bg-background text-foreground transition-[color,box-shadow]", "has-[canvas:focus-visible]:ring-
|
|
201
|
-
"aria-invalid":
|
|
202
|
-
children: [/* @__PURE__ */
|
|
203
|
-
ref:
|
|
210
|
+
/* @__PURE__ */ h("div", {
|
|
211
|
+
className: t("signature-pad--area relative overflow-hidden rounded-inner border border-input bg-background text-foreground transition-[color,box-shadow]", "has-[canvas:focus-visible]:border-ring has-[canvas:focus-visible]:ring-3 has-[canvas:focus-visible]:ring-ring/50", a.invalid, "aria-invalid:has-[canvas:focus-visible]:border-destructive aria-invalid:has-[canvas:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[canvas:focus-visible]:ring-destructive/50", w && "cursor-not-allowed opacity-50"),
|
|
212
|
+
"aria-invalid": E || void 0,
|
|
213
|
+
children: [/* @__PURE__ */ m("canvas", {
|
|
214
|
+
ref: z,
|
|
204
215
|
className: t("signature-pad--canvas block w-full aspect-[3/1] min-h-40 outline-none", !W && "touch-none cursor-crosshair"),
|
|
205
|
-
tabIndex:
|
|
216
|
+
tabIndex: w ? -1 : 0,
|
|
206
217
|
role: "img",
|
|
207
218
|
"aria-label": U.label,
|
|
208
219
|
"aria-describedby": `${H}-instructions ${H}-status`,
|
|
209
|
-
"aria-disabled":
|
|
210
|
-
"aria-invalid":
|
|
220
|
+
"aria-disabled": w || void 0,
|
|
221
|
+
"aria-invalid": E || void 0,
|
|
211
222
|
onPointerDown: (e) => {
|
|
212
|
-
W ||
|
|
223
|
+
W || L.current || e.button !== 0 || (e.preventDefault(), e.currentTarget.focus(), e.currentTarget.setPointerCapture?.(e.pointerId), L.current = {
|
|
213
224
|
pointerId: e.pointerId,
|
|
214
225
|
points: [Q(e)],
|
|
215
|
-
initial:
|
|
216
|
-
},
|
|
217
|
-
...
|
|
218
|
-
strokes: [...
|
|
226
|
+
initial: P.current
|
|
227
|
+
}, R(!0), K({
|
|
228
|
+
...P.current,
|
|
229
|
+
strokes: [...P.current.strokes, { points: L.current.points }]
|
|
219
230
|
}));
|
|
220
231
|
},
|
|
221
232
|
onPointerMove: (e) => {
|
|
222
|
-
let t =
|
|
233
|
+
let t = L.current;
|
|
223
234
|
if (!t || t.pointerId !== e.pointerId) return;
|
|
224
235
|
let n = e.nativeEvent.getCoalescedEvents?.().filter((e) => e.pointerId === t.pointerId) ?? [];
|
|
225
236
|
for (let r of n.length ? n : [e.nativeEvent]) t.points.push(Q(e, r));
|
|
@@ -230,130 +241,129 @@ var b = c(function(c, g) {
|
|
|
230
241
|
},
|
|
231
242
|
onPointerUp: _e,
|
|
232
243
|
onPointerCancel: (e) => {
|
|
233
|
-
|
|
244
|
+
L.current?.pointerId === e.pointerId && q();
|
|
234
245
|
},
|
|
235
246
|
onLostPointerCapture: (e) => {
|
|
236
|
-
|
|
247
|
+
L.current?.pointerId === e.pointerId && q();
|
|
237
248
|
},
|
|
238
249
|
onContextMenu: (e) => {
|
|
239
|
-
|
|
250
|
+
L.current && e.preventDefault();
|
|
240
251
|
},
|
|
241
252
|
onKeyDown: (e) => {
|
|
242
253
|
e.key === "Escape" && q(), !W && ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "z" && (e.preventDefault(), e.shiftKey ? X() : Y()), (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "y" && (e.preventDefault(), X()));
|
|
243
254
|
},
|
|
244
255
|
children: ge
|
|
245
|
-
}), $ && !
|
|
256
|
+
}), $ && !pe && /* @__PURE__ */ m("div", {
|
|
246
257
|
"aria-hidden": "true",
|
|
247
258
|
className: "signature-pad--placeholder pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
248
|
-
children: /* @__PURE__ */
|
|
259
|
+
children: /* @__PURE__ */ m(r, {
|
|
249
260
|
type: "secondary",
|
|
250
261
|
children: U.placeholder
|
|
251
262
|
})
|
|
252
263
|
})]
|
|
253
264
|
}),
|
|
254
|
-
|
|
265
|
+
A && /* @__PURE__ */ m(s, {
|
|
255
266
|
label: U.typedName,
|
|
256
267
|
htmlFor: `${H}-typed`,
|
|
257
|
-
children: /* @__PURE__ */
|
|
268
|
+
children: /* @__PURE__ */ m(o, {
|
|
258
269
|
ref: B,
|
|
259
270
|
id: `${H}-typed`,
|
|
260
|
-
value:
|
|
261
|
-
disabled:
|
|
262
|
-
readOnly:
|
|
263
|
-
invalid:
|
|
271
|
+
value: N.typedName ?? "",
|
|
272
|
+
disabled: w,
|
|
273
|
+
readOnly: T,
|
|
274
|
+
invalid: E,
|
|
264
275
|
onChange: (e) => J({
|
|
265
|
-
...
|
|
276
|
+
...P.current,
|
|
266
277
|
typedName: e.target.value
|
|
267
278
|
})
|
|
268
279
|
})
|
|
269
280
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ h(i, {
|
|
271
282
|
direction: "horizontal",
|
|
272
283
|
gap: "xs",
|
|
273
284
|
wrap: !0,
|
|
274
285
|
children: [
|
|
275
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ m(n, {
|
|
276
287
|
type: "button",
|
|
277
288
|
buttonStyle: "outline",
|
|
278
|
-
disabled: W || !
|
|
289
|
+
disabled: W || !F.current.length,
|
|
279
290
|
onClick: () => {
|
|
280
291
|
Y(), Z();
|
|
281
292
|
},
|
|
282
293
|
children: U.undo
|
|
283
294
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ m(n, {
|
|
285
296
|
type: "button",
|
|
286
297
|
buttonStyle: "outline",
|
|
287
|
-
disabled: W || !
|
|
298
|
+
disabled: W || !I.current.length,
|
|
288
299
|
onClick: () => {
|
|
289
300
|
X(), Z();
|
|
290
301
|
},
|
|
291
302
|
children: U.redo
|
|
292
303
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ m(n, {
|
|
294
305
|
type: "button",
|
|
295
306
|
buttonStyle: "outline",
|
|
296
307
|
disabled: W || $,
|
|
297
308
|
onClick: () => {
|
|
298
|
-
J(
|
|
309
|
+
J(_), Z();
|
|
299
310
|
},
|
|
300
311
|
children: U.clear
|
|
301
312
|
})
|
|
302
313
|
]
|
|
303
314
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ m(r, {
|
|
305
316
|
id: `${H}-status`,
|
|
306
317
|
role: "status",
|
|
307
318
|
size: "xs",
|
|
308
319
|
type: "secondary",
|
|
309
320
|
children: $ ? U.empty : U.signed
|
|
310
321
|
}),
|
|
311
|
-
(
|
|
312
|
-
ref:
|
|
322
|
+
(D || k) && /* @__PURE__ */ m("input", {
|
|
323
|
+
ref: me,
|
|
313
324
|
className: "sr-only",
|
|
314
325
|
type: "text",
|
|
315
326
|
tabIndex: -1,
|
|
316
327
|
"aria-hidden": "true",
|
|
317
|
-
name:
|
|
318
|
-
form:
|
|
319
|
-
disabled:
|
|
320
|
-
readOnly:
|
|
321
|
-
required:
|
|
322
|
-
value: $ ? "" : JSON.stringify(
|
|
328
|
+
name: D,
|
|
329
|
+
form: O,
|
|
330
|
+
disabled: w,
|
|
331
|
+
readOnly: T,
|
|
332
|
+
required: k,
|
|
333
|
+
value: $ ? "" : JSON.stringify(N),
|
|
323
334
|
onChange: () => {},
|
|
324
335
|
onFocus: Z,
|
|
325
336
|
onInvalid: Z
|
|
326
337
|
})
|
|
327
338
|
]
|
|
328
339
|
});
|
|
329
|
-
}),
|
|
330
|
-
let o =
|
|
331
|
-
return /* @__PURE__ */
|
|
340
|
+
}), w = c(function({ value: e, strokeWidth: n = 2, className: r, ...i }, a) {
|
|
341
|
+
let o = b(e);
|
|
342
|
+
return /* @__PURE__ */ h("svg", {
|
|
332
343
|
ref: a,
|
|
333
344
|
role: "img",
|
|
334
345
|
viewBox: "0 0 600 200",
|
|
335
346
|
"aria-label": "Signature",
|
|
336
347
|
...i,
|
|
337
|
-
className: t("signature-pad-preview--component w-full h-auto text-foreground", r),
|
|
338
|
-
children: [o.strokes.map((e, t) => e.points.length === 1 ? /* @__PURE__ */
|
|
348
|
+
className: t("signature-pad-preview--component w-full h-auto font-sans text-foreground", r),
|
|
349
|
+
children: [o.strokes.map((e, t) => e.points.length === 1 ? /* @__PURE__ */ m("circle", {
|
|
339
350
|
cx: e.points[0].x * 600,
|
|
340
351
|
cy: e.points[0].y * 200,
|
|
341
352
|
r: n * (.5 + e.points[0].pressure) / 2,
|
|
342
353
|
fill: "currentColor"
|
|
343
|
-
}, t) : /* @__PURE__ */
|
|
354
|
+
}, t) : /* @__PURE__ */ m("g", { children: e.points.slice(1).map((t, r) => {
|
|
344
355
|
let i = e.points[r];
|
|
345
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ m("path", {
|
|
346
357
|
d: `M${i.x * 600} ${i.y * 200}L${t.x * 600} ${t.y * 200}`,
|
|
347
358
|
fill: "none",
|
|
348
359
|
stroke: "currentColor",
|
|
349
360
|
strokeWidth: n * (.5 + (i.pressure + t.pressure) / 2),
|
|
350
361
|
strokeLinecap: "round"
|
|
351
362
|
}, r);
|
|
352
|
-
}) }, t)), o.typedName && /* @__PURE__ */
|
|
363
|
+
}) }, t)), o.typedName && /* @__PURE__ */ m("text", {
|
|
353
364
|
x: "24",
|
|
354
365
|
y: "180",
|
|
355
366
|
fill: "currentColor",
|
|
356
|
-
fontFamily: "cursive",
|
|
357
367
|
fontSize: "40",
|
|
358
368
|
textLength: Math.min(552, o.typedName.length * 20),
|
|
359
369
|
children: o.typedName
|
|
@@ -361,6 +371,6 @@ var b = c(function(c, g) {
|
|
|
361
371
|
});
|
|
362
372
|
});
|
|
363
373
|
//#endregion
|
|
364
|
-
export {
|
|
374
|
+
export { C as SignaturePad, w as SignaturePadPreview, g as defaultSignaturePadStrings, v as isSignatureEmpty, re as signaturePadToSVG };
|
|
365
375
|
|
|
366
376
|
//# sourceMappingURL=signature-pad.js.map
|