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
package/dist/features/map.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
-
import { t } from "../utils-
|
|
4
|
-
import { n } from "../buttons-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { d as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
3
|
+
import { t } from "../utils-BRhFDwuU.js";
|
|
4
|
+
import { n, o as r } from "../buttons-DPZekJFu.js";
|
|
5
|
+
import { c as i } from "../typography-UTnveOEy.js";
|
|
6
|
+
import { r as a } from "../popover.recipes-D3j8R8Yp.js";
|
|
7
|
+
import { d as o, g as s, i as c, l, n as u, o as d, r as f, t as p, u as m } from "../dropdown-menu-Cl4X7L5S.js";
|
|
8
|
+
import { t as h } from "../layer-recipes-CCpklYME.js";
|
|
9
|
+
import { a as g, n as _, o as v, r as y, t as b } from "../command-C25VMRII.js";
|
|
10
|
+
import { c as x, o as S, t as C } from "../popover-7_m66eYW.js";
|
|
11
|
+
import { a as ee, c as w, o as T } from "../text-inputs-f9Ia-aCi.js";
|
|
12
|
+
import { t as te } from "../use-debounce-DZ_1ZBPa.js";
|
|
13
|
+
import * as E from "react";
|
|
14
|
+
import { Suspense as D, createContext as O, lazy as ne, useCallback as k, useContext as A, useEffect as j, useRef as M, useState as N, useSyncExternalStore as re } from "react";
|
|
15
|
+
import { Fragment as ie, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
16
|
+
import { CircleIcon as I, LayersIcon as ae, Loader2Icon as oe, LoaderCircleIcon as L, MapPinIcon as se, MaximizeIcon as R, MinimizeIcon as z, MinusIcon as ce, NavigationIcon as B, PenLineIcon as le, PentagonIcon as ue, PlusIcon as de, SearchIcon as fe, SquareIcon as pe, Trash2Icon as V, Undo2Icon as me, WaypointsIcon as H } from "lucide-react";
|
|
17
|
+
import { flushSync as he } from "react-dom";
|
|
18
|
+
import { renderToString as U } from "react-dom/server";
|
|
18
19
|
//#region src/components/features/map/place-autocomplete.tsx
|
|
19
|
-
var
|
|
20
|
+
var ge = {
|
|
20
21
|
searchPlaceholder: "Search",
|
|
21
22
|
loading: "Searching places",
|
|
22
23
|
error: "Error: {{message}}",
|
|
@@ -24,26 +25,26 @@ var he = {
|
|
|
24
25
|
noResults: "Can't find {{query}}.",
|
|
25
26
|
unknownPlace: "Unknown"
|
|
26
27
|
};
|
|
27
|
-
function
|
|
28
|
+
function _e(e) {
|
|
28
29
|
let t = [];
|
|
29
30
|
return e.name && t.push(e.name), e.housenumber && e.street ? t.push(`${e.housenumber} ${e.street}`) : e.street && t.push(e.street), e.city ? t.push(e.city) : e.locality && t.push(e.locality), e.state && e.state !== e.city && t.push(e.state), e.country && t.push(e.country), [...new Set(t)].join(", ");
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
+
function ve({ query: e, bbox: t, lang: n, lat: r, limit: i, locationBiasScale: a, lon: o, zoom: s }) {
|
|
32
33
|
let c = new URL("https://photon.komoot.io/api");
|
|
33
34
|
return c.searchParams.set("q", e), n && c.searchParams.set("lang", n), i && c.searchParams.set("limit", String(i)), t && c.searchParams.set("bbox", t.join(",")), r !== void 0 && o !== void 0 && (c.searchParams.set("lat", String(r)), c.searchParams.set("lon", String(o))), s !== void 0 && c.searchParams.set("zoom", String(s)), a !== void 0 && c.searchParams.set("location_bias_scale", String(a)), String(c);
|
|
34
35
|
}
|
|
35
|
-
var
|
|
36
|
-
let n = await fetch(
|
|
36
|
+
var ye = async (e, t) => {
|
|
37
|
+
let n = await fetch(ve(e), { signal: t });
|
|
37
38
|
if (!n.ok) throw Error(`Photon API error: ${n.status} ${n.statusText}`);
|
|
38
39
|
return (await n.json()).features;
|
|
39
40
|
};
|
|
40
|
-
function
|
|
41
|
-
let [d, f] =
|
|
42
|
-
|
|
41
|
+
function be({ debounceMs: e, query: t, lang: n, limit: r, bbox: i, lat: a, lon: o, zoom: s, locationBiasScale: c, searchPlaces: l = ye, onSearchError: u }) {
|
|
42
|
+
let [d, f] = E.useState([]), [p, m] = E.useState(!1), [h, g] = E.useState(null), [_, v] = E.useState(!1), [y, b] = E.useState(0), x = E.useRef(u);
|
|
43
|
+
E.useEffect(() => {
|
|
43
44
|
x.current = u;
|
|
44
45
|
}, [u]);
|
|
45
|
-
let S =
|
|
46
|
-
return
|
|
46
|
+
let S = te(t, e), C = i?.join(",");
|
|
47
|
+
return E.useEffect(() => {
|
|
47
48
|
if (f((e) => e.length ? [] : e), g(null), !t.trim() || t !== S) {
|
|
48
49
|
m(!1), v(!1);
|
|
49
50
|
return;
|
|
@@ -97,15 +98,15 @@ function ve({ debounceMs: e, query: t, lang: n, limit: r, bbox: i, lat: a, lon:
|
|
|
97
98
|
retry: () => b((e) => e + 1)
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function xe(e, t) {
|
|
101
102
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => t[n] ?? e);
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
let
|
|
105
|
-
query:
|
|
104
|
+
function W({ debounceMs: r = 300, lang: a, limit: o = 5, bbox: s, lat: c, lon: l, zoom: u, locationBiasScale: d, className: f, value: p, defaultValue: m = "", onValueChange: h, onPlaceSelect: te, onResultsChange: D, searchPlaces: O, onSearchError: ne, strings: k, onFocus: A, ...j }) {
|
|
105
|
+
let M = e(ge, k), [N, re] = E.useState(m), [ie, I] = E.useState(""), [ae, L] = E.useState(!1), [R, z] = E.useState(-1), ce = E.useId(), B = E.useRef(null), le = E.useRef(null), ue = E.useRef(/* @__PURE__ */ new Map()), de = p !== void 0, pe = de ? p : N, { results: V, isLoading: me, error: H, hasSearched: U, retry: ve } = be({
|
|
106
|
+
query: ie,
|
|
106
107
|
searchPlaces: O,
|
|
107
|
-
onSearchError:
|
|
108
|
-
debounceMs:
|
|
108
|
+
onSearchError: ne,
|
|
109
|
+
debounceMs: r,
|
|
109
110
|
lang: a,
|
|
110
111
|
limit: o,
|
|
111
112
|
bbox: s,
|
|
@@ -113,145 +114,145 @@ function be({ debounceMs: n = 300, lang: a, limit: o = 5, bbox: s, lat: c, lon:
|
|
|
113
114
|
lon: l,
|
|
114
115
|
zoom: u,
|
|
115
116
|
locationBiasScale: d
|
|
116
|
-
}),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}, [D]),
|
|
120
|
-
|
|
117
|
+
}), ye = E.useRef(D);
|
|
118
|
+
E.useEffect(() => {
|
|
119
|
+
ye.current = D;
|
|
120
|
+
}, [D]), E.useEffect(() => {
|
|
121
|
+
ye.current?.(V);
|
|
121
122
|
}, [V]);
|
|
122
|
-
let W =
|
|
123
|
-
let t =
|
|
124
|
-
|
|
123
|
+
let W = U && !me && !H && V.length === 0, Se = !!(H || W || V.length > 0), G = Se && !ae, K = (e) => {
|
|
124
|
+
let t = _e(e.properties);
|
|
125
|
+
de || re(t), I(""), L(!0), z(-1), h?.(t), te?.(e);
|
|
125
126
|
};
|
|
126
|
-
return /* @__PURE__ */ P(
|
|
127
|
+
return /* @__PURE__ */ P(b, {
|
|
127
128
|
inset: "flush",
|
|
128
129
|
className: t("place-autocomplete--component", "h-fit overflow-visible", f),
|
|
129
|
-
value:
|
|
130
|
+
value: R >= 0 ? String(V[R]?.properties.osm_id ?? "") : "",
|
|
130
131
|
onKeyDownCapture: (e) => {
|
|
131
132
|
if (e.target instanceof HTMLInputElement) {
|
|
132
|
-
if (e.key === "Tab" &&
|
|
133
|
-
|
|
133
|
+
if (e.key === "Tab" && G && (!H || e.shiftKey)) he(() => {
|
|
134
|
+
L(!0), z(-1);
|
|
134
135
|
}), le.current?.unmount();
|
|
135
|
-
else if (e.key === "Escape")
|
|
136
|
+
else if (e.key === "Escape") L(!0), z(-1), e.preventDefault();
|
|
136
137
|
else if (V.length && [
|
|
137
138
|
"ArrowDown",
|
|
138
139
|
"ArrowUp",
|
|
139
140
|
"Home",
|
|
140
141
|
"End"
|
|
141
142
|
].includes(e.key)) {
|
|
142
|
-
|
|
143
|
-
let t = e.key === "Home" ? 0 : e.key === "End" ? V.length - 1 :
|
|
144
|
-
|
|
145
|
-
} else e.key === "Enter" &&
|
|
143
|
+
L(!1);
|
|
144
|
+
let t = e.key === "Home" ? 0 : e.key === "End" ? V.length - 1 : R < 0 ? e.key === "ArrowDown" ? 0 : V.length - 1 : (R + (e.key === "ArrowDown" ? 1 : -1) + V.length) % V.length;
|
|
145
|
+
z(t), e.preventDefault();
|
|
146
|
+
} else e.key === "Enter" && G && V[R] && (K(V[R]), e.preventDefault());
|
|
146
147
|
}
|
|
147
148
|
},
|
|
148
149
|
shouldFilter: !1,
|
|
149
150
|
loop: !0,
|
|
150
|
-
children: /* @__PURE__ */ F(
|
|
151
|
+
children: /* @__PURE__ */ F(S, {
|
|
151
152
|
actionsRef: le,
|
|
152
|
-
open:
|
|
153
|
+
open: G,
|
|
153
154
|
onOpenChange: (e, t) => {
|
|
154
|
-
if (!e && t.reason === "focus-out" && document.activeElement ===
|
|
155
|
+
if (!e && t.reason === "focus-out" && document.activeElement === B.current?.querySelector("input")) {
|
|
155
156
|
t.cancel();
|
|
156
157
|
return;
|
|
157
158
|
}
|
|
158
|
-
e ||
|
|
159
|
+
e || L(!0);
|
|
159
160
|
},
|
|
160
161
|
children: [/* @__PURE__ */ F("div", {
|
|
161
|
-
ref:
|
|
162
|
+
ref: B,
|
|
162
163
|
className: "place-autocomplete--anchor relative",
|
|
163
|
-
children: [/* @__PURE__ */ P(
|
|
164
|
+
children: [/* @__PURE__ */ P(x, {
|
|
164
165
|
render: /* @__PURE__ */ P("span", {}),
|
|
165
166
|
nativeButton: !1,
|
|
166
167
|
tabIndex: -1,
|
|
167
168
|
"aria-hidden": "true",
|
|
168
169
|
className: "pointer-events-none absolute inset-0"
|
|
169
|
-
}), /* @__PURE__ */ F(
|
|
170
|
+
}), /* @__PURE__ */ F(ee, {
|
|
170
171
|
className: "border-input! bg-popover! ring-0!",
|
|
171
172
|
children: [
|
|
172
|
-
/* @__PURE__ */ P(
|
|
173
|
-
/* @__PURE__ */ P(
|
|
173
|
+
/* @__PURE__ */ P(T, { children: /* @__PURE__ */ P(fe, {}) }),
|
|
174
|
+
/* @__PURE__ */ P(w, {
|
|
174
175
|
role: "combobox",
|
|
175
176
|
"aria-autocomplete": "list",
|
|
176
|
-
"aria-expanded":
|
|
177
|
-
"aria-controls":
|
|
178
|
-
"aria-activedescendant":
|
|
179
|
-
placeholder:
|
|
177
|
+
"aria-expanded": G,
|
|
178
|
+
"aria-controls": G ? ce : void 0,
|
|
179
|
+
"aria-activedescendant": G && V[R] ? ((e) => ue.current.get(e)?.id)(R) : void 0,
|
|
180
|
+
placeholder: M.searchPlaceholder,
|
|
180
181
|
value: pe,
|
|
181
182
|
onChange: (e) => {
|
|
182
183
|
let t = e.target.value;
|
|
183
|
-
|
|
184
|
+
de || re(t), L(!1), I(t), z(-1), h?.(t);
|
|
184
185
|
},
|
|
185
186
|
onFocus: (e) => {
|
|
186
|
-
|
|
187
|
+
Se && L(!1), A?.(e);
|
|
187
188
|
},
|
|
188
|
-
...
|
|
189
|
+
...j
|
|
189
190
|
}),
|
|
190
|
-
!!
|
|
191
|
+
!!me && /* @__PURE__ */ F(T, {
|
|
191
192
|
align: "inline-end",
|
|
192
|
-
children: [/* @__PURE__ */ P(
|
|
193
|
+
children: [/* @__PURE__ */ P(oe, {
|
|
193
194
|
className: "animate-spin",
|
|
194
195
|
"aria-hidden": "true"
|
|
195
|
-
}), /* @__PURE__ */ P(
|
|
196
|
+
}), /* @__PURE__ */ P(i, {
|
|
196
197
|
tag: "span",
|
|
197
198
|
size: "inherit",
|
|
198
199
|
className: "sr-only",
|
|
199
|
-
children:
|
|
200
|
+
children: M.loading
|
|
200
201
|
})]
|
|
201
202
|
})
|
|
202
203
|
]
|
|
203
204
|
})]
|
|
204
|
-
}), /* @__PURE__ */ P(
|
|
205
|
-
"aria-label":
|
|
205
|
+
}), /* @__PURE__ */ P(C, {
|
|
206
|
+
"aria-label": M.searchPlaceholder,
|
|
206
207
|
align: "start",
|
|
207
208
|
sideOffset: 4,
|
|
208
209
|
initialFocus: !1,
|
|
209
210
|
finalFocus: !1,
|
|
210
211
|
inset: "flush",
|
|
211
212
|
className: "place-autocomplete--results w-[var(--anchor-width)] max-w-[var(--available-width)] gap-0 overflow-hidden",
|
|
212
|
-
children: /* @__PURE__ */ F(
|
|
213
|
-
id:
|
|
214
|
-
label:
|
|
213
|
+
children: /* @__PURE__ */ F(v, {
|
|
214
|
+
id: ce,
|
|
215
|
+
label: M.searchPlaceholder,
|
|
215
216
|
className: "max-h-72",
|
|
216
217
|
children: [
|
|
217
|
-
!!
|
|
218
|
+
!!H && /* @__PURE__ */ F(_, { children: [/* @__PURE__ */ P(i, {
|
|
218
219
|
tag: "span",
|
|
219
220
|
size: "xs",
|
|
220
221
|
type: "secondary",
|
|
221
222
|
align: "center",
|
|
222
223
|
className: "block",
|
|
223
|
-
children:
|
|
224
|
-
}), /* @__PURE__ */ P(
|
|
224
|
+
children: xe(M.error, { message: H.message })
|
|
225
|
+
}), /* @__PURE__ */ P(n, {
|
|
225
226
|
buttonStyle: "ghost",
|
|
226
227
|
size: "sm",
|
|
227
228
|
onClick: () => {
|
|
228
|
-
|
|
229
|
+
B.current?.querySelector("input")?.focus(), L(!1), ve();
|
|
229
230
|
},
|
|
230
|
-
children:
|
|
231
|
+
children: M.retry ?? ge.retry
|
|
231
232
|
})] }),
|
|
232
|
-
!!W && /* @__PURE__ */ P(
|
|
233
|
+
!!W && /* @__PURE__ */ P(_, { children: /* @__PURE__ */ P(i, {
|
|
233
234
|
tag: "span",
|
|
234
235
|
size: "xs",
|
|
235
236
|
type: "secondary",
|
|
236
237
|
align: "center",
|
|
237
238
|
className: "block",
|
|
238
|
-
children:
|
|
239
|
+
children: xe(M.noResults, { query: pe })
|
|
239
240
|
}) }),
|
|
240
|
-
V.length > 0 && /* @__PURE__ */ P(
|
|
241
|
-
let n =
|
|
242
|
-
return /* @__PURE__ */ F(
|
|
241
|
+
V.length > 0 && /* @__PURE__ */ P(y, { children: V.map((e, t) => {
|
|
242
|
+
let n = _e(e.properties);
|
|
243
|
+
return /* @__PURE__ */ F(g, {
|
|
243
244
|
value: String(e.properties.osm_id),
|
|
244
245
|
ref: (e) => {
|
|
245
|
-
e ?
|
|
246
|
+
e ? ue.current.set(t, e) : ue.current.delete(t);
|
|
246
247
|
},
|
|
247
|
-
onSelect: () =>
|
|
248
|
-
children: [/* @__PURE__ */ P(
|
|
248
|
+
onSelect: () => K(e),
|
|
249
|
+
children: [/* @__PURE__ */ P(se, {}), /* @__PURE__ */ F("div", {
|
|
249
250
|
className: "flex flex-col items-start text-start",
|
|
250
|
-
children: [/* @__PURE__ */ P(
|
|
251
|
+
children: [/* @__PURE__ */ P(i, {
|
|
251
252
|
tag: "span",
|
|
252
253
|
weight: "medium",
|
|
253
|
-
children: e.properties.name || e.properties.street ||
|
|
254
|
-
}), /* @__PURE__ */ P(
|
|
254
|
+
children: e.properties.name || e.properties.street || M.unknownPlace
|
|
255
|
+
}), /* @__PURE__ */ P(i, {
|
|
255
256
|
tag: "span",
|
|
256
257
|
size: "xs",
|
|
257
258
|
type: "secondary",
|
|
@@ -268,14 +269,14 @@ function be({ debounceMs: n = 300, lang: a, limit: o = 5, bbox: s, lat: c, lon:
|
|
|
268
269
|
}
|
|
269
270
|
//#endregion
|
|
270
271
|
//#region src/components/features/map/use-map-color-scheme.ts
|
|
271
|
-
function
|
|
272
|
-
let t =
|
|
272
|
+
function Se(e) {
|
|
273
|
+
let t = k(() => {
|
|
273
274
|
for (let t = e; t; t = t.parentElement) {
|
|
274
275
|
if (t.classList.contains("dark")) return "dark";
|
|
275
276
|
if (t.classList.contains("light")) return "light";
|
|
276
277
|
}
|
|
277
278
|
return "light";
|
|
278
|
-
}, [e]), n =
|
|
279
|
+
}, [e]), n = k((t) => {
|
|
279
280
|
let n = new MutationObserver(t);
|
|
280
281
|
for (let t = e; t; t = t.parentElement) n.observe(t, {
|
|
281
282
|
attributes: !0,
|
|
@@ -283,11 +284,11 @@ function xe(e) {
|
|
|
283
284
|
});
|
|
284
285
|
return () => n.disconnect();
|
|
285
286
|
}, [e]);
|
|
286
|
-
return
|
|
287
|
+
return re(n, t, () => "light");
|
|
287
288
|
}
|
|
288
289
|
//#endregion
|
|
289
290
|
//#region src/components/features/map/map.tsx
|
|
290
|
-
var
|
|
291
|
+
var G = O(null), K = {
|
|
291
292
|
defaultTileLayer: "Default",
|
|
292
293
|
mapType: "Map type",
|
|
293
294
|
layers: "Layers",
|
|
@@ -315,50 +316,50 @@ var W = E(null), G = {
|
|
|
315
316
|
undoRemove: "Undo remove",
|
|
316
317
|
editInstructions: "Drag handles or markers to edit.",
|
|
317
318
|
removeInstructions: "Click on a shape to remove."
|
|
318
|
-
},
|
|
319
|
+
}, Ce = O(K);
|
|
319
320
|
function q() {
|
|
320
|
-
return
|
|
321
|
+
return A(Ce);
|
|
321
322
|
}
|
|
322
|
-
var
|
|
323
|
+
var we = O(null), Te = ne(async () => {
|
|
323
324
|
let e = await import("react-leaflet");
|
|
324
|
-
return { default: ({ children: t }) => /* @__PURE__ */ P(
|
|
325
|
+
return { default: ({ children: t }) => /* @__PURE__ */ P(we.Provider, {
|
|
325
326
|
value: e,
|
|
326
327
|
children: t
|
|
327
328
|
}) };
|
|
328
329
|
});
|
|
329
330
|
function J(e) {
|
|
330
331
|
return (t) => {
|
|
331
|
-
let n =
|
|
332
|
+
let n = A(we);
|
|
332
333
|
if (!n) throw Error("Map primitives must be rendered within Map.");
|
|
333
334
|
let r = e(n);
|
|
334
335
|
return /* @__PURE__ */ P(r, { ...t });
|
|
335
336
|
};
|
|
336
337
|
}
|
|
337
|
-
var
|
|
338
|
-
function
|
|
339
|
-
let t =
|
|
340
|
-
return (e) => /* @__PURE__ */ P(
|
|
338
|
+
var Ee = J((e) => e.MapContainer), De = J((e) => e.TileLayer), Oe = J((e) => e.Marker), ke = J((e) => e.Popup), Ae = J((e) => e.Tooltip), je = J((e) => e.Circle), Me = J((e) => e.CircleMarker), Ne = J((e) => e.Polyline), Pe = J((e) => e.Polygon), Fe = J((e) => e.Rectangle), Ie = J((e) => e.LayerGroup), Le = J((e) => e.FeatureGroup);
|
|
339
|
+
function Re(e) {
|
|
340
|
+
let t = ne(e);
|
|
341
|
+
return (e) => /* @__PURE__ */ P(D, { children: /* @__PURE__ */ P(t, { ...e }) });
|
|
341
342
|
}
|
|
342
|
-
var
|
|
343
|
-
function
|
|
344
|
-
let t =
|
|
343
|
+
var ze = Re(async () => import("react-leaflet-markercluster").then((e) => ({ default: e.default })));
|
|
344
|
+
function Be({ children: e }) {
|
|
345
|
+
let t = A(we);
|
|
345
346
|
if (!t) throw Error("Map controls must be rendered within Map.");
|
|
346
|
-
return /* @__PURE__ */ P(
|
|
347
|
+
return /* @__PURE__ */ P(G.Provider, {
|
|
347
348
|
value: t,
|
|
348
349
|
children: e
|
|
349
350
|
});
|
|
350
351
|
}
|
|
351
352
|
function Y() {
|
|
352
|
-
let e =
|
|
353
|
+
let e = A(G);
|
|
353
354
|
if (!e) throw Error("Map controls must be rendered within Map.");
|
|
354
355
|
return e.useMap();
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
-
let t =
|
|
357
|
+
function Ve(e) {
|
|
358
|
+
let t = A(G);
|
|
358
359
|
if (!t) throw Error("Map controls must be rendered within Map.");
|
|
359
360
|
return t.useMapEvents(e);
|
|
360
361
|
}
|
|
361
|
-
function
|
|
362
|
+
function He(e, t) {
|
|
362
363
|
if (e) {
|
|
363
364
|
if (typeof e == "function") {
|
|
364
365
|
e(t);
|
|
@@ -367,19 +368,19 @@ function Be(e, t) {
|
|
|
367
368
|
e.current = t;
|
|
368
369
|
}
|
|
369
370
|
}
|
|
370
|
-
function
|
|
371
|
-
let l = e(
|
|
371
|
+
function Ue({ zoom: n = 15, maxZoom: r = 18, className: i, children: a, strings: o, ref: s, ...c }) {
|
|
372
|
+
let l = e(K, o), u = M(null), d = k((e) => {
|
|
372
373
|
if (u.current?.(), u.current = null, e?.options.keyboard) {
|
|
373
374
|
let t = e.getContainer(), n = () => {
|
|
374
375
|
document.activeElement !== t && t.focus({ preventScroll: !0 });
|
|
375
376
|
};
|
|
376
377
|
t.addEventListener("mousedown", n, !0), u.current = () => t.removeEventListener("mousedown", n, !0);
|
|
377
378
|
}
|
|
378
|
-
|
|
379
|
-
}, [s]), [f, p] =
|
|
380
|
-
return
|
|
379
|
+
He(s, e);
|
|
380
|
+
}, [s]), [f, p] = N(!1);
|
|
381
|
+
return j(() => {
|
|
381
382
|
p(!0);
|
|
382
|
-
}, []), f ? /* @__PURE__ */ P(
|
|
383
|
+
}, []), f ? /* @__PURE__ */ P(D, { children: /* @__PURE__ */ P(Te, { children: /* @__PURE__ */ P(Ee, {
|
|
383
384
|
ref: d,
|
|
384
385
|
zoom: n,
|
|
385
386
|
maxZoom: r,
|
|
@@ -387,21 +388,21 @@ function Ve({ zoom: n = 15, maxZoom: r = 18, className: i, children: a, strings:
|
|
|
387
388
|
zoomControl: !1,
|
|
388
389
|
className: t("map--component", "z-50 size-full min-h-0 flex-1 rounded-radius", i),
|
|
389
390
|
...c,
|
|
390
|
-
children: /* @__PURE__ */ P(
|
|
391
|
+
children: /* @__PURE__ */ P(Ce.Provider, {
|
|
391
392
|
value: l,
|
|
392
|
-
children: /* @__PURE__ */ P(
|
|
393
|
+
children: /* @__PURE__ */ P(Be, { children: a })
|
|
393
394
|
})
|
|
394
395
|
}) }) }) : null;
|
|
395
396
|
}
|
|
396
|
-
var
|
|
397
|
-
function
|
|
398
|
-
return
|
|
397
|
+
var We = O(null);
|
|
398
|
+
function Ge() {
|
|
399
|
+
return A(We);
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
+
function Ke({ name: e, url: t, attribution: n, darkUrl: r, darkAttribution: i, ...a }) {
|
|
401
402
|
let o = q(), s = e ?? o.defaultTileLayer, c = Y();
|
|
402
403
|
c.attributionControl && c.attributionControl.setPrefix("");
|
|
403
|
-
let l =
|
|
404
|
-
return
|
|
404
|
+
let l = A(We), u = Se(c.getContainer()), d = u === "dark" ? r ?? t ?? "https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png" : t ?? "https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png", f = u === "dark" && i ? i : n ?? "© <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>, © <a href=\"https://carto.com/attributions\">CARTO</a>";
|
|
405
|
+
return j(() => {
|
|
405
406
|
l && l.registerTileLayer({
|
|
406
407
|
name: s,
|
|
407
408
|
url: d,
|
|
@@ -412,15 +413,15 @@ function We({ name: e, url: t, attribution: n, darkUrl: r, darkAttribution: i, .
|
|
|
412
413
|
s,
|
|
413
414
|
f,
|
|
414
415
|
d
|
|
415
|
-
]), l && l.selectedTileLayer !== s ? null : /* @__PURE__ */ P(
|
|
416
|
+
]), l && l.selectedTileLayer !== s ? null : /* @__PURE__ */ P(De, {
|
|
416
417
|
url: d,
|
|
417
418
|
attribution: f,
|
|
418
419
|
...a
|
|
419
420
|
});
|
|
420
421
|
}
|
|
421
|
-
function
|
|
422
|
-
let r =
|
|
423
|
-
return
|
|
422
|
+
function qe({ name: e, disabled: t, ...n }) {
|
|
423
|
+
let r = Ge();
|
|
424
|
+
return j(() => {
|
|
424
425
|
r && r.registerLayerGroup({
|
|
425
426
|
name: e,
|
|
426
427
|
disabled: t
|
|
@@ -429,11 +430,11 @@ function Ge({ name: e, disabled: t, ...n }) {
|
|
|
429
430
|
r,
|
|
430
431
|
e,
|
|
431
432
|
t
|
|
432
|
-
]), r && !r.activeLayerGroups.includes(e) ? null : /* @__PURE__ */ P(
|
|
433
|
+
]), r && !r.activeLayerGroups.includes(e) ? null : /* @__PURE__ */ P(Ie, { ...n });
|
|
433
434
|
}
|
|
434
|
-
function
|
|
435
|
-
let r =
|
|
436
|
-
return
|
|
435
|
+
function Je({ name: e, disabled: t, ...n }) {
|
|
436
|
+
let r = Ge();
|
|
437
|
+
return j(() => {
|
|
437
438
|
r && r.registerLayerGroup({
|
|
438
439
|
name: e,
|
|
439
440
|
disabled: t
|
|
@@ -442,17 +443,17 @@ function Ke({ name: e, disabled: t, ...n }) {
|
|
|
442
443
|
r,
|
|
443
444
|
e,
|
|
444
445
|
t
|
|
445
|
-
]), r && !r.activeLayerGroups.includes(e) ? null : /* @__PURE__ */ P(
|
|
446
|
+
]), r && !r.activeLayerGroups.includes(e) ? null : /* @__PURE__ */ P(Le, { ...n });
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
-
let [r, i] =
|
|
448
|
+
function Ye({ defaultTileLayer: e, defaultLayerGroups: t = [], ...n }) {
|
|
449
|
+
let [r, i] = N([]), [a, o] = N(e || ""), [s, c] = N([]), [l, u] = N(t);
|
|
449
450
|
function d(e) {
|
|
450
451
|
i((t) => t.some((t) => t.name === e.name) ? t : [...t, e]);
|
|
451
452
|
}
|
|
452
453
|
function f(e) {
|
|
453
454
|
c((t) => t.some((t) => t.name === e.name) ? t : [...t, e]);
|
|
454
455
|
}
|
|
455
|
-
return
|
|
456
|
+
return j(() => {
|
|
456
457
|
if (e && r.length > 0 && !r.some((t) => t.name === e)) throw Error(`Invalid defaultTileLayer "${e}" provided to MapLayers. It must match a MapTileLayer's name prop.`);
|
|
457
458
|
if (r.length > 0 && !a) {
|
|
458
459
|
let t = e && r.some((t) => t.name === e) ? e : r[0].name;
|
|
@@ -465,7 +466,7 @@ function qe({ defaultTileLayer: e, defaultLayerGroups: t = [], ...n }) {
|
|
|
465
466
|
a,
|
|
466
467
|
s,
|
|
467
468
|
t
|
|
468
|
-
]), /* @__PURE__ */ P(
|
|
469
|
+
]), /* @__PURE__ */ P(We.Provider, {
|
|
469
470
|
value: {
|
|
470
471
|
registerTileLayer: d,
|
|
471
472
|
tileLayers: r,
|
|
@@ -479,8 +480,8 @@ function qe({ defaultTileLayer: e, defaultLayerGroups: t = [], ...n }) {
|
|
|
479
480
|
...n
|
|
480
481
|
});
|
|
481
482
|
}
|
|
482
|
-
function
|
|
483
|
-
let g = q(), _ =
|
|
483
|
+
function Xe({ tileLayersLabel: e, layerGroupsLabel: r, position: i = "top-1 right-1", className: a, ...h }) {
|
|
484
|
+
let g = q(), _ = Ge();
|
|
484
485
|
if (!_) throw Error("MapLayersControl must be used within MapLayers");
|
|
485
486
|
let { tileLayers: v, selectedTileLayer: y, setSelectedTileLayer: b, layerGroups: x, activeLayerGroups: S, setActiveLayerGroups: C } = _;
|
|
486
487
|
if (v.length === 0 && x.length === 0) return null;
|
|
@@ -488,7 +489,7 @@ function Je({ tileLayersLabel: e, layerGroupsLabel: n, position: r = "top-1 righ
|
|
|
488
489
|
C(t ? [...S, e] : S.filter((t) => t !== e));
|
|
489
490
|
}
|
|
490
491
|
let w = v.length > 1, T = x.length > 0;
|
|
491
|
-
return !w && !T ? null : /* @__PURE__ */ F(
|
|
492
|
+
return !w && !T ? null : /* @__PURE__ */ F(p, { children: [/* @__PURE__ */ P(s, { render: (e) => /* @__PURE__ */ P(n, {
|
|
492
493
|
...e,
|
|
493
494
|
type: "button",
|
|
494
495
|
tone: "secondary",
|
|
@@ -496,23 +497,23 @@ function Je({ tileLayersLabel: e, layerGroupsLabel: n, position: r = "top-1 righ
|
|
|
496
497
|
iconOnly: !0,
|
|
497
498
|
"aria-label": g.selectLayers,
|
|
498
499
|
title: g.selectLayers,
|
|
499
|
-
className: t("border-border absolute z-1000 border",
|
|
500
|
+
className: t("border-border absolute z-1000 border", i, a, e.className),
|
|
500
501
|
...h,
|
|
501
|
-
children: /* @__PURE__ */ P(
|
|
502
|
-
}) }), /* @__PURE__ */ F(
|
|
502
|
+
children: /* @__PURE__ */ P(ae, {})
|
|
503
|
+
}) }), /* @__PURE__ */ F(f, {
|
|
503
504
|
align: "end",
|
|
504
505
|
className: "z-1000",
|
|
505
506
|
children: [
|
|
506
|
-
!!w && /* @__PURE__ */ P(
|
|
507
|
+
!!w && /* @__PURE__ */ P(ie, { children: /* @__PURE__ */ F(l, {
|
|
507
508
|
value: y,
|
|
508
509
|
onValueChange: b,
|
|
509
|
-
children: [/* @__PURE__ */ P(
|
|
510
|
+
children: [/* @__PURE__ */ P(d, { children: e ?? g.mapType }), v.map((e) => /* @__PURE__ */ P(m, {
|
|
510
511
|
value: e.name,
|
|
511
512
|
children: e.name
|
|
512
513
|
}, e.name))]
|
|
513
514
|
}) }),
|
|
514
|
-
!!w && !!T && /* @__PURE__ */ P(
|
|
515
|
-
!!T && /* @__PURE__ */ F(
|
|
515
|
+
!!w && !!T && /* @__PURE__ */ P(o, {}),
|
|
516
|
+
!!T && /* @__PURE__ */ F(c, { children: [/* @__PURE__ */ P(d, { children: r ?? g.layers }), x.map((e) => /* @__PURE__ */ P(u, {
|
|
516
517
|
checked: S.includes(e.name),
|
|
517
518
|
disabled: e.disabled,
|
|
518
519
|
onCheckedChange: (t) => ee(e.name, t),
|
|
@@ -521,20 +522,20 @@ function Je({ tileLayersLabel: e, layerGroupsLabel: n, position: r = "top-1 righ
|
|
|
521
522
|
]
|
|
522
523
|
})] });
|
|
523
524
|
}
|
|
524
|
-
function
|
|
525
|
-
let { L: c } = $(), l = q(), u =
|
|
525
|
+
function Ze({ icon: e = /* @__PURE__ */ P(se, { className: "size-icon-lg fill-background text-foreground" }), iconAnchor: t = [12, 12], bgPos: n, popupAnchor: r, tooltipAnchor: i, ariaLabel: a, ref: o, ...s }) {
|
|
526
|
+
let { L: c } = $(), l = q(), u = M(null), d = a ?? (typeof s.title == "string" && s.title.trim() ? s.title : void 0) ?? l.marker, f = typeof s.title == "string" && s.title.trim() ? s.title : d, p = k((e) => {
|
|
526
527
|
let t = e?.getElement();
|
|
527
528
|
t && (t.setAttribute("aria-label", d), t.getAttribute("title") || t.setAttribute("title", d));
|
|
528
|
-
}, [d]), m =
|
|
529
|
-
u.current = e,
|
|
529
|
+
}, [d]), m = k((e) => {
|
|
530
|
+
u.current = e, He(o, e), p(e);
|
|
530
531
|
}, [o, p]);
|
|
531
|
-
return
|
|
532
|
+
return j(() => {
|
|
532
533
|
p(u.current);
|
|
533
|
-
}, [p]), c ? /* @__PURE__ */ P(
|
|
534
|
+
}, [p]), c ? /* @__PURE__ */ P(Oe, {
|
|
534
535
|
ref: m,
|
|
535
536
|
icon: c.divIcon({
|
|
536
537
|
className: "",
|
|
537
|
-
html:
|
|
538
|
+
html: U(e),
|
|
538
539
|
iconAnchor: t,
|
|
539
540
|
...n ? { bgPos: n } : {},
|
|
540
541
|
...r ? { popupAnchor: r } : {},
|
|
@@ -545,55 +546,55 @@ function Ye({ icon: e = /* @__PURE__ */ P(L, { className: "size-icon-lg fill-bac
|
|
|
545
546
|
title: f
|
|
546
547
|
}) : null;
|
|
547
548
|
}
|
|
548
|
-
function
|
|
549
|
+
function Qe({ polygonOptions: e = { className: "fill-foreground stroke-foreground stroke-2" }, spiderLegPolylineOptions: t = { className: "fill-foreground stroke-foreground stroke-2" }, icon: n, ...r }) {
|
|
549
550
|
let { L: i } = $();
|
|
550
|
-
return i ? /* @__PURE__ */ P(
|
|
551
|
+
return i ? /* @__PURE__ */ P(ze, {
|
|
551
552
|
polygonOptions: e,
|
|
552
553
|
spiderLegPolylineOptions: t,
|
|
553
554
|
iconCreateFunction: n ? (e) => {
|
|
554
555
|
let t = n(e.getChildCount());
|
|
555
|
-
return i.divIcon({ html:
|
|
556
|
+
return i.divIcon({ html: U(t) });
|
|
556
557
|
} : void 0,
|
|
557
558
|
...r
|
|
558
559
|
}) : null;
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
-
return /* @__PURE__ */ P(
|
|
561
|
+
function $e({ className: e, ...n }) {
|
|
562
|
+
return /* @__PURE__ */ P(je, {
|
|
562
563
|
className: t("fill-foreground stroke-foreground stroke-2", e),
|
|
563
564
|
...n
|
|
564
565
|
});
|
|
565
566
|
}
|
|
566
|
-
function
|
|
567
|
-
return /* @__PURE__ */ P(
|
|
567
|
+
function et({ className: e, ...n }) {
|
|
568
|
+
return /* @__PURE__ */ P(Me, {
|
|
568
569
|
className: t("fill-foreground stroke-foreground stroke-2", e),
|
|
569
570
|
...n
|
|
570
571
|
});
|
|
571
572
|
}
|
|
572
|
-
function
|
|
573
|
-
return /* @__PURE__ */ P(
|
|
573
|
+
function tt({ className: e, ...n }) {
|
|
574
|
+
return /* @__PURE__ */ P(Ne, {
|
|
574
575
|
className: t("fill-foreground stroke-foreground stroke-2", e),
|
|
575
576
|
...n
|
|
576
577
|
});
|
|
577
578
|
}
|
|
578
|
-
function
|
|
579
|
-
return /* @__PURE__ */ P(
|
|
579
|
+
function nt({ className: e, ...n }) {
|
|
580
|
+
return /* @__PURE__ */ P(Pe, {
|
|
580
581
|
className: t("fill-foreground stroke-foreground stroke-2", e),
|
|
581
582
|
...n
|
|
582
583
|
});
|
|
583
584
|
}
|
|
584
|
-
function
|
|
585
|
-
return /* @__PURE__ */ P(
|
|
585
|
+
function rt({ className: e, ...n }) {
|
|
586
|
+
return /* @__PURE__ */ P(Fe, {
|
|
586
587
|
className: t("fill-foreground stroke-foreground stroke-2", e),
|
|
587
588
|
...n
|
|
588
589
|
});
|
|
589
590
|
}
|
|
590
|
-
function
|
|
591
|
-
return /* @__PURE__ */ P(
|
|
592
|
-
className: t("map-popup--component
|
|
591
|
+
function it({ className: e, ...n }) {
|
|
592
|
+
return /* @__PURE__ */ P(ke, {
|
|
593
|
+
className: t("map-popup--component", a.surface, a.display, h.overlay, "animate-in fade-out-0 fade-in-0 zoom-out-95 zoom-in-95 slide-in-from-bottom-2 w-72 font-sans outline-hidden", e),
|
|
593
594
|
...n
|
|
594
595
|
});
|
|
595
596
|
}
|
|
596
|
-
function
|
|
597
|
+
function at({ className: e, children: n, side: r = "top", sideOffset: i = 15, ...a }) {
|
|
597
598
|
let o = {
|
|
598
599
|
top: "bottom-0.5 left-1/2 -translate-x-1/2 translate-y-1/2",
|
|
599
600
|
bottom: "top-0.5 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
@@ -605,7 +606,7 @@ function rt({ className: e, children: n, side: r = "top", sideOffset: i = 15, ..
|
|
|
605
606
|
left: [-i, 0],
|
|
606
607
|
right: [i, 0]
|
|
607
608
|
};
|
|
608
|
-
return /* @__PURE__ */ F(
|
|
609
|
+
return /* @__PURE__ */ F(Ae, {
|
|
609
610
|
className: t("animate-in fade-in-0 zoom-in-95 fade-out-0 zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 w-fit text-xs text-balance transition-opacity", e),
|
|
610
611
|
"data-side": r,
|
|
611
612
|
direction: r,
|
|
@@ -615,17 +616,17 @@ function rt({ className: e, children: n, side: r = "top", sideOffset: i = 15, ..
|
|
|
615
616
|
children: [n, /* @__PURE__ */ P("div", { className: t("bg-foreground fill-foreground absolute z-50 size-2.5 rotate-45 rounded-[2px]", o[r]) })]
|
|
616
617
|
});
|
|
617
618
|
}
|
|
618
|
-
function
|
|
619
|
-
let o = Y(), s = q(), [c, l] =
|
|
620
|
-
return
|
|
619
|
+
function ot({ position: e = "top-1 left-1", className: i, ...a }) {
|
|
620
|
+
let o = Y(), s = q(), [c, l] = N(o.getZoom());
|
|
621
|
+
return Ve({ zoomend: () => {
|
|
621
622
|
l(o.getZoom());
|
|
622
623
|
} }), /* @__PURE__ */ P(Q, {
|
|
623
|
-
className: t(e,
|
|
624
|
-
children: /* @__PURE__ */ F(
|
|
624
|
+
className: t(e, i),
|
|
625
|
+
children: /* @__PURE__ */ F(r, {
|
|
625
626
|
orientation: "vertical",
|
|
626
627
|
"aria-label": s.zoomControls,
|
|
627
628
|
...a,
|
|
628
|
-
children: [/* @__PURE__ */ P(
|
|
629
|
+
children: [/* @__PURE__ */ P(n, {
|
|
629
630
|
type: "button",
|
|
630
631
|
size: "sm",
|
|
631
632
|
iconOnly: !0,
|
|
@@ -635,8 +636,8 @@ function it({ position: e = "top-1 left-1", className: r, ...a }) {
|
|
|
635
636
|
className: "border-border border",
|
|
636
637
|
disabled: c >= o.getMaxZoom(),
|
|
637
638
|
onClick: () => o.zoomIn(),
|
|
638
|
-
children: /* @__PURE__ */ P(
|
|
639
|
-
}), /* @__PURE__ */ P(
|
|
639
|
+
children: /* @__PURE__ */ P(de, {})
|
|
640
|
+
}), /* @__PURE__ */ P(n, {
|
|
640
641
|
type: "button",
|
|
641
642
|
size: "sm",
|
|
642
643
|
iconOnly: !0,
|
|
@@ -646,14 +647,14 @@ function it({ position: e = "top-1 left-1", className: r, ...a }) {
|
|
|
646
647
|
className: "border-border border",
|
|
647
648
|
disabled: c <= o.getMinZoom(),
|
|
648
649
|
onClick: () => o.zoomOut(),
|
|
649
|
-
children: /* @__PURE__ */ P(
|
|
650
|
+
children: /* @__PURE__ */ P(ce, {})
|
|
650
651
|
})]
|
|
651
652
|
})
|
|
652
653
|
});
|
|
653
654
|
}
|
|
654
|
-
function
|
|
655
|
-
let a = Y(), o = q(), [s, c] =
|
|
656
|
-
return
|
|
655
|
+
function st({ position: e = "top-1 right-1", className: r, ...i }) {
|
|
656
|
+
let a = Y(), o = q(), [s, c] = N(!1), { L: l } = $();
|
|
657
|
+
return j(() => {
|
|
657
658
|
if (!l) return;
|
|
658
659
|
let e = new l.Control.FullScreen();
|
|
659
660
|
e.addTo(a);
|
|
@@ -664,8 +665,8 @@ function at({ position: e = "top-1 right-1", className: n, ...r }) {
|
|
|
664
665
|
e.remove(), a.off("enterFullscreen", n), a.off("exitFullscreen", r);
|
|
665
666
|
};
|
|
666
667
|
}, [l, a]), /* @__PURE__ */ P(Q, {
|
|
667
|
-
className: t(e,
|
|
668
|
-
children: /* @__PURE__ */ P(
|
|
668
|
+
className: t(e, r),
|
|
669
|
+
children: /* @__PURE__ */ P(n, {
|
|
669
670
|
type: "button",
|
|
670
671
|
size: "sm",
|
|
671
672
|
iconOnly: !0,
|
|
@@ -674,44 +675,44 @@ function at({ position: e = "top-1 right-1", className: n, ...r }) {
|
|
|
674
675
|
"aria-label": s ? o.exitFullscreen : o.enterFullscreen,
|
|
675
676
|
title: s ? o.exitFullscreen : o.enterFullscreen,
|
|
676
677
|
className: "border-border border",
|
|
677
|
-
...
|
|
678
|
-
children: P(s ?
|
|
678
|
+
...i,
|
|
679
|
+
children: P(s ? z : R, {})
|
|
679
680
|
})
|
|
680
681
|
});
|
|
681
682
|
}
|
|
682
|
-
function
|
|
683
|
+
function ct() {
|
|
683
684
|
return /* @__PURE__ */ F("div", {
|
|
684
685
|
className: "absolute -top-1 -right-1 flex size-icon-sm rounded-full",
|
|
685
686
|
children: [/* @__PURE__ */ P("div", { className: "bg-primary absolute inline-flex size-full animate-ping rounded-full opacity-75" }), /* @__PURE__ */ P("div", { className: "bg-primary relative inline-flex size-icon-sm rounded-full" })]
|
|
686
687
|
});
|
|
687
688
|
}
|
|
688
|
-
function
|
|
689
|
-
let c = Y(), l = q(), [u, d] =
|
|
689
|
+
function lt({ watch: e = !1, onLocationFound: r, onLocationError: i, position: a = "right-1 bottom-1", className: o, ...s }) {
|
|
690
|
+
let c = Y(), l = q(), [u, d] = Ct(200), [f, p] = N(null), m = f !== null, h = k(() => {
|
|
690
691
|
d(!0), c.locate({
|
|
691
692
|
setView: !0,
|
|
692
693
|
maxZoom: c.getMaxZoom(),
|
|
693
694
|
watch: e
|
|
694
695
|
}), c.on("locationfound", (e) => {
|
|
695
|
-
p(e.latlng), d(!1),
|
|
696
|
+
p(e.latlng), d(!1), r?.(e);
|
|
696
697
|
}), c.on("locationerror", (e) => {
|
|
697
|
-
p(null), d(!1),
|
|
698
|
+
p(null), d(!1), i?.(e);
|
|
698
699
|
});
|
|
699
700
|
}, [
|
|
700
701
|
c,
|
|
702
|
+
i,
|
|
701
703
|
r,
|
|
702
|
-
n,
|
|
703
704
|
d,
|
|
704
705
|
e
|
|
705
|
-
]), g =
|
|
706
|
+
]), g = k(() => {
|
|
706
707
|
c.stopLocate(), c.off("locationfound"), c.off("locationerror"), p(null), d(!1);
|
|
707
|
-
}, [c, d]), _ = m ? g : h, v = u ? l.locating : m ? l.stopTracking : l.trackLocation, y = u ? l.locating : m ? l.stopLocationTracking : l.startLocationTracking, b = m && f ? /* @__PURE__ */ P(
|
|
708
|
+
}, [c, d]), _ = m ? g : h, v = u ? l.locating : m ? l.stopTracking : l.trackLocation, y = u ? l.locating : m ? l.stopLocationTracking : l.startLocationTracking, b = m && f ? /* @__PURE__ */ P(Ze, {
|
|
708
709
|
position: f,
|
|
709
|
-
icon: /* @__PURE__ */ P(
|
|
710
|
+
icon: /* @__PURE__ */ P(ct, {}),
|
|
710
711
|
ariaLabel: l.currentLocation
|
|
711
712
|
}) : null;
|
|
712
|
-
return
|
|
713
|
+
return j(() => () => g(), [g]), /* @__PURE__ */ F(Q, {
|
|
713
714
|
className: t(a, o),
|
|
714
|
-
children: [/* @__PURE__ */ P(
|
|
715
|
+
children: [/* @__PURE__ */ P(n, {
|
|
715
716
|
type: "button",
|
|
716
717
|
size: "sm",
|
|
717
718
|
iconOnly: !0,
|
|
@@ -722,31 +723,31 @@ function st({ watch: e = !1, onLocationFound: n, onLocationError: r, position: a
|
|
|
722
723
|
"aria-label": y,
|
|
723
724
|
className: "border-border border",
|
|
724
725
|
...s,
|
|
725
|
-
children: u ? /* @__PURE__ */ P(
|
|
726
|
+
children: u ? /* @__PURE__ */ P(L, { className: "animate-spin" }) : /* @__PURE__ */ P(B, {})
|
|
726
727
|
}), b]
|
|
727
728
|
});
|
|
728
729
|
}
|
|
729
|
-
function
|
|
730
|
+
function ut({ position: e = "top-1 left-1", className: n, ...r }) {
|
|
730
731
|
return /* @__PURE__ */ P(Q, {
|
|
731
732
|
className: t("z-1001 w-60", e, n),
|
|
732
|
-
children: /* @__PURE__ */ P(
|
|
733
|
+
children: /* @__PURE__ */ P(W, { ...r })
|
|
733
734
|
});
|
|
734
735
|
}
|
|
735
|
-
var
|
|
736
|
+
var dt = O(null);
|
|
736
737
|
function X() {
|
|
737
|
-
return
|
|
738
|
+
return A(dt);
|
|
738
739
|
}
|
|
739
|
-
function
|
|
740
|
-
let { L: o, LeafletDraw: s } = $(), c = Y(), l =
|
|
740
|
+
function ft({ onLayersChange: e, position: n = "bottom-1 left-1", className: i, ...a }) {
|
|
741
|
+
let { L: o, LeafletDraw: s } = $(), c = Y(), l = M(null), u = M(null), d = M(null), [f, p] = N(null), [m, h] = N(0), g = k(() => {
|
|
741
742
|
l.current && h(l.current.getLayers().length);
|
|
742
|
-
}, []), _ =
|
|
743
|
+
}, []), _ = k((t) => {
|
|
743
744
|
if (!l.current) return;
|
|
744
745
|
let { layer: n } = t;
|
|
745
746
|
l.current.addLayer(n), e?.(l.current), g(), p(null);
|
|
746
|
-
}, [e, g]), v =
|
|
747
|
+
}, [e, g]), v = k(() => {
|
|
747
748
|
l.current && (e?.(l.current), g(), p(null));
|
|
748
749
|
}, [e, g]);
|
|
749
|
-
return
|
|
750
|
+
return j(() => {
|
|
750
751
|
if (o && s && c) return c.on(o.Draw.Event.CREATED, _), c.on(o.Draw.Event.EDITED, v), c.on(o.Draw.Event.DELETED, v), () => {
|
|
751
752
|
c.off(o.Draw.Event.CREATED, _), c.off(o.Draw.Event.EDITED, v), c.off(o.Draw.Event.DELETED, v);
|
|
752
753
|
};
|
|
@@ -756,7 +757,7 @@ function ut({ onLayersChange: e, position: r = "bottom-1 left-1", className: i,
|
|
|
756
757
|
c,
|
|
757
758
|
_,
|
|
758
759
|
v
|
|
759
|
-
]), /* @__PURE__ */ F(
|
|
760
|
+
]), /* @__PURE__ */ F(dt.Provider, {
|
|
760
761
|
value: {
|
|
761
762
|
featureGroup: l.current,
|
|
762
763
|
activeMode: f,
|
|
@@ -765,31 +766,31 @@ function ut({ onLayersChange: e, position: r = "bottom-1 left-1", className: i,
|
|
|
765
766
|
deleteControlRef: d,
|
|
766
767
|
layersCount: m
|
|
767
768
|
},
|
|
768
|
-
children: [/* @__PURE__ */ P(
|
|
769
|
-
className: t(
|
|
770
|
-
children: /* @__PURE__ */ P(
|
|
769
|
+
children: [/* @__PURE__ */ P(Le, { ref: l }), /* @__PURE__ */ P(Q, {
|
|
770
|
+
className: t(n, i),
|
|
771
|
+
children: /* @__PURE__ */ P(r, {
|
|
771
772
|
orientation: "vertical",
|
|
772
773
|
...a
|
|
773
774
|
})
|
|
774
775
|
})]
|
|
775
776
|
});
|
|
776
777
|
}
|
|
777
|
-
function Z({ drawMode: e, createDrawTool:
|
|
778
|
+
function Z({ drawMode: e, createDrawTool: r, className: i, children: a, ...o }) {
|
|
778
779
|
let s = X();
|
|
779
780
|
if (!s) throw Error("MapDrawShapeButton must be used within MapDrawControl");
|
|
780
|
-
let { L: c } = $(), l = q(), u = Y(), d =
|
|
781
|
+
let { L: c } = $(), l = q(), u = Y(), d = M(null), { activeMode: f, setActiveMode: p } = s, m = f === e, h = {
|
|
781
782
|
marker: l.drawMarker,
|
|
782
783
|
polyline: l.drawPolyline,
|
|
783
784
|
circle: l.drawCircle,
|
|
784
785
|
rectangle: l.drawRectangle,
|
|
785
786
|
polygon: l.drawPolygon
|
|
786
787
|
}[e];
|
|
787
|
-
|
|
788
|
+
j(() => {
|
|
788
789
|
if (!c || !m) {
|
|
789
790
|
d.current?.disable(), d.current = null;
|
|
790
791
|
return;
|
|
791
792
|
}
|
|
792
|
-
let e =
|
|
793
|
+
let e = r(c, u);
|
|
793
794
|
return e.enable(), d.current = e, () => {
|
|
794
795
|
e.disable(), d.current = null;
|
|
795
796
|
};
|
|
@@ -797,18 +798,18 @@ function Z({ drawMode: e, createDrawTool: n, className: r, children: a, ...o })
|
|
|
797
798
|
c,
|
|
798
799
|
u,
|
|
799
800
|
m,
|
|
800
|
-
|
|
801
|
+
r
|
|
801
802
|
]);
|
|
802
803
|
function g() {
|
|
803
804
|
p(m ? null : e);
|
|
804
805
|
}
|
|
805
|
-
return /* @__PURE__ */ P(
|
|
806
|
+
return /* @__PURE__ */ P(n, {
|
|
806
807
|
type: "button",
|
|
807
808
|
size: "sm",
|
|
808
809
|
iconOnly: !0,
|
|
809
810
|
"aria-label": h,
|
|
810
811
|
title: h,
|
|
811
|
-
className: t("border-border border",
|
|
812
|
+
className: t("border-border border", i),
|
|
812
813
|
tone: m ? "primary" : "secondary",
|
|
813
814
|
disabled: f === "edit" || f === "delete",
|
|
814
815
|
onClick: g,
|
|
@@ -816,26 +817,26 @@ function Z({ drawMode: e, createDrawTool: n, className: r, children: a, ...o })
|
|
|
816
817
|
children: a
|
|
817
818
|
});
|
|
818
819
|
}
|
|
819
|
-
function
|
|
820
|
+
function pt({ ...e }) {
|
|
820
821
|
return /* @__PURE__ */ P(Z, {
|
|
821
822
|
drawMode: "marker",
|
|
822
823
|
createDrawTool: (t, n) => new t.Draw.Marker(n, {
|
|
823
824
|
icon: t.divIcon({
|
|
824
825
|
className: "",
|
|
825
826
|
iconAnchor: [12, 12],
|
|
826
|
-
html:
|
|
827
|
+
html: U(/* @__PURE__ */ P(se, { className: "size-icon-lg" }))
|
|
827
828
|
}),
|
|
828
829
|
...e
|
|
829
830
|
}),
|
|
830
|
-
children: /* @__PURE__ */ P(
|
|
831
|
+
children: /* @__PURE__ */ P(se, {})
|
|
831
832
|
});
|
|
832
833
|
}
|
|
833
|
-
function
|
|
834
|
+
function mt({ showLength: e = !1, drawError: t = { color: "var(--color-destructive)" }, shapeOptions: n = {
|
|
834
835
|
color: "var(--color-primary)",
|
|
835
836
|
opacity: 1,
|
|
836
837
|
weight: 2
|
|
837
838
|
}, ...r }) {
|
|
838
|
-
let i =
|
|
839
|
+
let i = St();
|
|
839
840
|
return /* @__PURE__ */ P(Z, {
|
|
840
841
|
drawMode: "polyline",
|
|
841
842
|
createDrawTool: (a, o) => new a.Draw.Polyline(o, {
|
|
@@ -848,10 +849,10 @@ function ft({ showLength: e = !1, drawError: t = { color: "var(--color-destructi
|
|
|
848
849
|
shapeOptions: n,
|
|
849
850
|
...r
|
|
850
851
|
}),
|
|
851
|
-
children: /* @__PURE__ */ P(
|
|
852
|
+
children: /* @__PURE__ */ P(H, {})
|
|
852
853
|
});
|
|
853
854
|
}
|
|
854
|
-
function
|
|
855
|
+
function ht({ showRadius: e = !1, shapeOptions: t = {
|
|
855
856
|
color: "var(--color-primary)",
|
|
856
857
|
opacity: 1,
|
|
857
858
|
weight: 2
|
|
@@ -866,7 +867,7 @@ function pt({ showRadius: e = !1, shapeOptions: t = {
|
|
|
866
867
|
children: /* @__PURE__ */ P(I, {})
|
|
867
868
|
});
|
|
868
869
|
}
|
|
869
|
-
function
|
|
870
|
+
function gt({ showArea: e = !1, shapeOptions: t = {
|
|
870
871
|
color: "var(--color-primary)",
|
|
871
872
|
opacity: 1,
|
|
872
873
|
weight: 2
|
|
@@ -878,15 +879,15 @@ function mt({ showArea: e = !1, shapeOptions: t = {
|
|
|
878
879
|
shapeOptions: t,
|
|
879
880
|
...n
|
|
880
881
|
}),
|
|
881
|
-
children: /* @__PURE__ */ P(
|
|
882
|
+
children: /* @__PURE__ */ P(pe, {})
|
|
882
883
|
});
|
|
883
884
|
}
|
|
884
|
-
function
|
|
885
|
+
function _t({ drawError: e = { color: "var(--color-destructive)" }, shapeOptions: t = {
|
|
885
886
|
color: "var(--color-primary)",
|
|
886
887
|
opacity: 1,
|
|
887
888
|
weight: 2
|
|
888
889
|
}, ...n }) {
|
|
889
|
-
let r =
|
|
890
|
+
let r = St();
|
|
890
891
|
return /* @__PURE__ */ P(Z, {
|
|
891
892
|
drawMode: "polygon",
|
|
892
893
|
createDrawTool: (i, a) => new i.Draw.Polygon(a, {
|
|
@@ -898,34 +899,34 @@ function ht({ drawError: e = { color: "var(--color-destructive)" }, shapeOptions
|
|
|
898
899
|
shapeOptions: t,
|
|
899
900
|
...n
|
|
900
901
|
}),
|
|
901
|
-
children: /* @__PURE__ */ P(
|
|
902
|
+
children: /* @__PURE__ */ P(ue, {})
|
|
902
903
|
});
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
+
function vt({ drawAction: e, createDrawTool: r, controlRef: i, className: a, children: o, ...s }) {
|
|
905
906
|
let c = X();
|
|
906
907
|
if (!c) throw Error("MapDrawActionButton must be used within MapDrawControl");
|
|
907
908
|
let { L: l } = $(), u = q(), d = Y(), { featureGroup: f, activeMode: p, setActiveMode: m, layersCount: h } = c, g = p === e, _ = h > 0, v = e === "edit" ? u.editShapes : u.removeShapes;
|
|
908
|
-
|
|
909
|
+
j(() => {
|
|
909
910
|
if (!l || !f || !g) {
|
|
910
|
-
|
|
911
|
+
i.current?.disable?.(), i.current = null;
|
|
911
912
|
return;
|
|
912
913
|
}
|
|
913
|
-
let e =
|
|
914
|
-
return e.enable?.(),
|
|
915
|
-
e.disable?.(),
|
|
914
|
+
let e = r(l, d, f);
|
|
915
|
+
return e.enable?.(), i.current = e, () => {
|
|
916
|
+
e.disable?.(), i.current = null;
|
|
916
917
|
};
|
|
917
918
|
}, [
|
|
918
919
|
l,
|
|
919
920
|
d,
|
|
920
921
|
g,
|
|
921
922
|
f,
|
|
922
|
-
|
|
923
|
-
|
|
923
|
+
r,
|
|
924
|
+
i
|
|
924
925
|
]);
|
|
925
926
|
function y() {
|
|
926
|
-
|
|
927
|
+
i.current?.save(), m(g ? null : e);
|
|
927
928
|
}
|
|
928
|
-
return /* @__PURE__ */ P(
|
|
929
|
+
return /* @__PURE__ */ P(n, {
|
|
929
930
|
type: "button",
|
|
930
931
|
size: "sm",
|
|
931
932
|
iconOnly: !0,
|
|
@@ -939,14 +940,14 @@ function gt({ drawAction: e, createDrawTool: n, controlRef: r, className: a, chi
|
|
|
939
940
|
children: o
|
|
940
941
|
});
|
|
941
942
|
}
|
|
942
|
-
function
|
|
943
|
+
function yt({ selectedPathOptions: e = {
|
|
943
944
|
color: "var(--color-primary)",
|
|
944
945
|
fillColor: "var(--color-primary)",
|
|
945
946
|
weight: 2
|
|
946
947
|
}, ...t }) {
|
|
947
|
-
let { L: n } = $(), r = q(), i =
|
|
948
|
+
let { L: n } = $(), r = q(), i = St(), a = X();
|
|
948
949
|
if (!a) throw Error("MapDrawEdit must be used within MapDrawControl");
|
|
949
|
-
return
|
|
950
|
+
return j(() => {
|
|
950
951
|
n && i && (n.Edit.PolyVerticesEdit.mergeOptions({
|
|
951
952
|
icon: i,
|
|
952
953
|
touchIcon: i,
|
|
@@ -965,7 +966,7 @@ function _t({ selectedPathOptions: e = {
|
|
|
965
966
|
i,
|
|
966
967
|
r.editInstructions,
|
|
967
968
|
r.removeInstructions
|
|
968
|
-
]), /* @__PURE__ */ P(
|
|
969
|
+
]), /* @__PURE__ */ P(vt, {
|
|
969
970
|
drawAction: "edit",
|
|
970
971
|
controlRef: a.editControlRef,
|
|
971
972
|
createDrawTool: (n, r, i) => new n.EditToolbar.Edit(r, {
|
|
@@ -973,27 +974,27 @@ function _t({ selectedPathOptions: e = {
|
|
|
973
974
|
selectedPathOptions: e,
|
|
974
975
|
...t
|
|
975
976
|
}),
|
|
976
|
-
children: /* @__PURE__ */ P(
|
|
977
|
+
children: /* @__PURE__ */ P(le, {})
|
|
977
978
|
});
|
|
978
979
|
}
|
|
979
|
-
function
|
|
980
|
+
function bt() {
|
|
980
981
|
let e = X();
|
|
981
982
|
if (!e) throw Error("MapDrawDelete must be used within MapDrawControl");
|
|
982
|
-
return /* @__PURE__ */ P(
|
|
983
|
+
return /* @__PURE__ */ P(vt, {
|
|
983
984
|
drawAction: "delete",
|
|
984
985
|
controlRef: e.deleteControlRef,
|
|
985
986
|
createDrawTool: (e, t, n) => new e.EditToolbar.Delete(t, { featureGroup: n }),
|
|
986
|
-
children: /* @__PURE__ */ P(
|
|
987
|
+
children: /* @__PURE__ */ P(V, {})
|
|
987
988
|
});
|
|
988
989
|
}
|
|
989
|
-
function
|
|
990
|
-
let
|
|
991
|
-
if (!
|
|
992
|
-
let a = q(), { activeMode: o, setActiveMode: s, editControlRef: c, deleteControlRef: l, layersCount: u } =
|
|
990
|
+
function xt({ className: e, ...r }) {
|
|
991
|
+
let i = X();
|
|
992
|
+
if (!i) throw Error("MapDrawUndo must be used within MapDrawControl");
|
|
993
|
+
let a = q(), { activeMode: o, setActiveMode: s, editControlRef: c, deleteControlRef: l, layersCount: u } = i, d = o === "edit", f = o === "delete", p = (d || f) && u > 0, m = f ? a.undoRemove : a.undoEdit;
|
|
993
994
|
function h() {
|
|
994
995
|
d ? c.current?.revertLayers() : f && l.current?.revertLayers(), s(null);
|
|
995
996
|
}
|
|
996
|
-
return /* @__PURE__ */ P(
|
|
997
|
+
return /* @__PURE__ */ P(n, {
|
|
997
998
|
type: "button",
|
|
998
999
|
size: "sm",
|
|
999
1000
|
iconOnly: !0,
|
|
@@ -1003,13 +1004,13 @@ function yt({ className: e, ...n }) {
|
|
|
1003
1004
|
onClick: h,
|
|
1004
1005
|
disabled: !p,
|
|
1005
1006
|
className: t("border-border border", e),
|
|
1006
|
-
...
|
|
1007
|
-
children: /* @__PURE__ */ P(
|
|
1007
|
+
...r,
|
|
1008
|
+
children: /* @__PURE__ */ P(me, {})
|
|
1008
1009
|
});
|
|
1009
1010
|
}
|
|
1010
1011
|
function Q({ className: e, ...n }) {
|
|
1011
|
-
let { L: r } = $(), i =
|
|
1012
|
-
return
|
|
1012
|
+
let { L: r } = $(), i = M(null);
|
|
1013
|
+
return j(() => {
|
|
1013
1014
|
if (!r) return;
|
|
1014
1015
|
let e = i.current;
|
|
1015
1016
|
e && (r.DomEvent.disableClickPropagation(e), r.DomEvent.disableScrollPropagation(e));
|
|
@@ -1019,16 +1020,16 @@ function Q({ className: e, ...n }) {
|
|
|
1019
1020
|
...n
|
|
1020
1021
|
});
|
|
1021
1022
|
}
|
|
1022
|
-
function
|
|
1023
|
+
function St() {
|
|
1023
1024
|
let { L: e } = $();
|
|
1024
1025
|
return e ? e.divIcon({
|
|
1025
1026
|
iconAnchor: [8, 8],
|
|
1026
|
-
html:
|
|
1027
|
+
html: U(/* @__PURE__ */ P(I, { className: "fill-primary-accent stroke-primary-accent size-icon transition-transform hover:scale-110" }))
|
|
1027
1028
|
}) : null;
|
|
1028
1029
|
}
|
|
1029
1030
|
function $() {
|
|
1030
|
-
let [e, t] =
|
|
1031
|
-
return
|
|
1031
|
+
let [e, t] = N(null), [n, r] = N(null);
|
|
1032
|
+
return j(() => {
|
|
1032
1033
|
async function i() {
|
|
1033
1034
|
let e = await import("leaflet"), n = await import("leaflet.fullscreen"), i = await import("leaflet-draw"), a = e.default;
|
|
1034
1035
|
a.Control && !a.Control.FullScreen && (a.Control.FullScreen = n.default || n), r(i), t(a);
|
|
@@ -1039,15 +1040,15 @@ function $() {
|
|
|
1039
1040
|
LeafletDraw: n
|
|
1040
1041
|
};
|
|
1041
1042
|
}
|
|
1042
|
-
function
|
|
1043
|
-
let [t, n] =
|
|
1044
|
-
return
|
|
1043
|
+
function Ct(e = 200) {
|
|
1044
|
+
let [t, n] = N(!1), [r, i] = N(!1), a = M(null);
|
|
1045
|
+
return j(() => (t ? a.current = setTimeout(() => {
|
|
1045
1046
|
i(!0);
|
|
1046
1047
|
}, e) : (a.current &&= (clearTimeout(a.current), null), i(!1)), () => {
|
|
1047
1048
|
a.current && clearTimeout(a.current);
|
|
1048
1049
|
}), [t, e]), [r, n];
|
|
1049
1050
|
}
|
|
1050
1051
|
//#endregion
|
|
1051
|
-
export {
|
|
1052
|
+
export { Ue as Map, $e as MapCircle, et as MapCircleMarker, Q as MapControlContainer, ht as MapDrawCircle, ft as MapDrawControl, bt as MapDrawDelete, yt as MapDrawEdit, pt as MapDrawMarker, _t as MapDrawPolygon, mt as MapDrawPolyline, gt as MapDrawRectangle, xt as MapDrawUndo, Je as MapFeatureGroup, st as MapFullscreenControl, qe as MapLayerGroup, Ye as MapLayers, Xe as MapLayersControl, lt as MapLocateControl, Ze as MapMarker, Qe as MapMarkerClusterGroup, nt as MapPolygon, tt as MapPolyline, it as MapPopup, rt as MapRectangle, ut as MapSearchControl, Ke as MapTileLayer, at as MapTooltip, ot as MapZoomControl, W as PlaceAutocomplete, K as defaultMapStrings, ge as defaultPlaceAutocompleteStrings, $ as useLeaflet };
|
|
1052
1053
|
|
|
1053
1054
|
//# sourceMappingURL=map.js.map
|