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.
Files changed (707) hide show
  1. package/CHANGELOG.md +527 -0
  2. package/README.md +47 -14
  3. package/THIRD_PARTY_NOTICES.md +13 -0
  4. package/dist/accordion-Cjb6sx0G.js +208 -0
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
  17. package/dist/auth-ax2BqjrI.js.map +1 -0
  18. package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/badge-HpFqoqSY.js +93 -0
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +3 -0
  28. package/dist/base/buttons.js +2 -3
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +50 -46
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +69 -81
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +3 -3
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +7 -7
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +20 -20
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +3 -0
  50. package/dist/base/navigation.js +7 -7
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +216 -220
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +147 -137
  59. package/dist/base/signature-pad.js.map +1 -1
  60. package/dist/base/skeleton.js +1 -1
  61. package/dist/base/spinner.js +79 -2
  62. package/dist/base/spinner.js.map +1 -0
  63. package/dist/base/structure.js +1 -1
  64. package/dist/base/table.js +1 -1
  65. package/dist/base/text-inputs.js +2 -2
  66. package/dist/base/toaster.js +46 -45
  67. package/dist/base/toaster.js.map +1 -1
  68. package/dist/base/tree.js +1 -1
  69. package/dist/base/upload-queue.js +1 -1
  70. package/dist/base/upload.js +3 -3
  71. package/dist/base/value-inputs.js +2 -2
  72. package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
  73. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  74. package/dist/blocks/admin.js +171 -169
  75. package/dist/blocks/admin.js.map +1 -1
  76. package/dist/blocks/ai.js +308 -285
  77. package/dist/blocks/ai.js.map +1 -1
  78. package/dist/blocks/analytics/usage-card.js +1 -1
  79. package/dist/blocks/analytics.js +626 -589
  80. package/dist/blocks/analytics.js.map +1 -1
  81. package/dist/blocks/collaboration.js +1 -1
  82. package/dist/blocks/commerce/receipt.js +1 -1
  83. package/dist/blocks/commerce.js +2051 -1329
  84. package/dist/blocks/commerce.js.map +1 -1
  85. package/dist/blocks/data-display.js +3 -2
  86. package/dist/blocks/onboarding.js +68 -58
  87. package/dist/blocks/onboarding.js.map +1 -1
  88. package/dist/blocks/planning.js +27 -26
  89. package/dist/blocks/planning.js.map +1 -1
  90. package/dist/blocks/timelines.js +1 -1
  91. package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
  92. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  93. package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
  94. package/dist/button-DVzspB_G.js.map +1 -0
  95. package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
  96. package/dist/buttons-DPZekJFu.js.map +1 -0
  97. package/dist/cards-BaBZR-AU.js +68 -0
  98. package/dist/cards-BaBZR-AU.js.map +1 -0
  99. package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
  100. package/dist/chart-ZOYyK2xG.js.map +1 -0
  101. package/dist/checkbox-AWIhNhmo.js +36 -0
  102. package/dist/checkbox-AWIhNhmo.js.map +1 -0
  103. package/dist/choice-inputs-CNHvARCJ.js +770 -0
  104. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  105. package/dist/code-block-DeneBJR_.js +185 -0
  106. package/dist/code-block-DeneBJR_.js.map +1 -0
  107. package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
  108. package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  109. package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
  110. package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
  111. package/dist/combobox-C0EQW6dr.js +875 -0
  112. package/dist/combobox-C0EQW6dr.js.map +1 -0
  113. package/dist/combobox-xCQ2RMNE.js +309 -0
  114. package/dist/combobox-xCQ2RMNE.js.map +1 -0
  115. package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
  116. package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
  117. package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
  118. package/dist/comments-BYYlTA8E.js.map +1 -0
  119. package/dist/components/base/action-menu/action-menu.d.ts +21 -4
  120. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  121. package/dist/components/base/action-menu/index.d.ts +1 -0
  122. package/dist/components/base/badge/badge.recipes.d.ts +5 -5
  123. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  124. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  125. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  126. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  127. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  128. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  129. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  130. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  131. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  132. package/dist/components/base/chart/chart.d.ts +2 -5
  133. package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
  134. package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
  135. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  136. package/dist/components/base/combobox/index.d.ts +30 -4
  137. package/dist/components/base/display/alert-dialog.d.ts +6 -5
  138. package/dist/components/base/display/dialog.d.ts +4 -8
  139. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  140. package/dist/components/base/forms/form-sizing.d.ts +26 -15
  141. package/dist/components/base/metadata-list/index.d.ts +12 -0
  142. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  143. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  144. package/dist/components/base/navigation/index.d.ts +1 -1
  145. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  146. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  147. package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
  148. package/dist/components/base/navigation/pagination.d.ts +5 -2
  149. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  150. package/dist/components/base/sheet/sheet.d.ts +4 -8
  151. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  152. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  153. package/dist/components/base/table/index.d.ts +9 -2
  154. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  155. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  156. package/dist/components/base/upload/upload.recipes.d.ts +25 -3
  157. package/dist/components/base/value-inputs/index.d.ts +5 -5
  158. package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
  159. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  160. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  161. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  162. package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
  163. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  164. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  165. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  166. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  167. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  168. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  169. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  170. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  171. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
  172. package/dist/components/blocks/commerce/index.d.ts +13 -5
  173. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  174. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  175. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  176. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  177. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  178. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  179. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  180. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  181. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  182. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  183. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  184. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  185. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  186. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  187. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  188. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  189. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  190. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  191. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  192. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  193. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  194. package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
  195. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  196. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  197. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  198. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  199. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  200. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  201. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  202. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  203. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  204. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  205. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  206. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  207. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  208. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  209. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  210. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  211. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  212. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  213. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  214. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  215. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  216. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  217. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  218. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  219. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  220. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  221. package/dist/components/features/combobox/types.d.ts +4 -0
  222. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  223. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  224. package/dist/components/features/kanban/kanban.d.ts +1 -1
  225. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  226. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  227. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  228. package/dist/components/features/media-library/index.d.ts +1 -1
  229. package/dist/components/features/media-library/media-library.d.ts +1 -1
  230. package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
  231. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  232. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  233. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  234. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  235. package/dist/components/features/overlays/dialog.d.ts +1 -1
  236. package/dist/components/features/overlays/index.d.ts +1 -1
  237. package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
  238. package/dist/components/features/overlays/overlays.types.d.ts +20 -0
  239. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  240. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  241. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  242. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  243. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  244. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  245. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  246. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  247. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  248. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  249. package/dist/components/features/products/products.types.d.ts +9 -2
  250. package/dist/components/features/resource/index.d.ts +1 -1
  251. package/dist/components/features/resource/resource.d.ts +1 -1
  252. package/dist/components/features/resource/resource.types.d.ts +34 -6
  253. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  254. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  255. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  256. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  257. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
  258. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  259. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
  260. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  261. package/dist/components/features/sync/index.d.ts +26 -3
  262. package/dist/components/features/table/data-table.d.ts +1 -1
  263. package/dist/components/features/table/table-header.d.ts +1 -1
  264. package/dist/components/features/table/table.strings.d.ts +55 -1
  265. package/dist/components/features/table/table.types.d.ts +49 -11
  266. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  267. package/dist/components/layout/page/index.d.ts +1 -1
  268. package/dist/components/layout/page/page.types.d.ts +33 -36
  269. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  270. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  271. package/dist/components/layout/settings/settings.d.ts +16 -2
  272. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  273. package/dist/components/primitives/number.d.ts +4 -2
  274. package/dist/components/primitives/value.d.ts +3 -1
  275. package/dist/components/typography/rich-text/index.d.ts +1 -1
  276. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  277. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  278. package/dist/components/typography/text-link.d.ts +8 -3
  279. package/dist/components/ui/checkbox.d.ts +4 -3
  280. package/dist/components/ui/combobox.d.ts +6 -2
  281. package/dist/components/ui/item.d.ts +8 -8
  282. package/dist/components/ui/overlay.recipes.d.ts +0 -9
  283. package/dist/components/ui/switch.d.ts +2 -2
  284. package/dist/components/ui/tabs.d.ts +1 -1
  285. package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
  286. package/dist/containers-Mu1LMGV1.js.map +1 -0
  287. package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
  288. package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
  289. package/dist/data-display-DT_khPl_.js +971 -0
  290. package/dist/data-display-DT_khPl_.js.map +1 -0
  291. package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
  292. package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
  293. package/dist/date-picker-ay0Pha_a.js +1530 -0
  294. package/dist/date-picker-ay0Pha_a.js.map +1 -0
  295. package/dist/date-pickers-Ccw8DL2b.js +175 -0
  296. package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
  297. package/dist/display-hAc1HjpI.js +344 -0
  298. package/dist/display-hAc1HjpI.js.map +1 -0
  299. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  300. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  301. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  302. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  303. package/dist/features/activities.js +478 -542
  304. package/dist/features/activities.js.map +1 -1
  305. package/dist/features/ai-chat.js +209 -199
  306. package/dist/features/ai-chat.js.map +1 -1
  307. package/dist/features/appointment-calendar.js +683 -0
  308. package/dist/features/appointment-calendar.js.map +1 -0
  309. package/dist/features/async-preview.js +109 -107
  310. package/dist/features/async-preview.js.map +1 -1
  311. package/dist/features/combobox.js +1 -1
  312. package/dist/features/comments.js +1 -1
  313. package/dist/features/data-view.js +30 -29
  314. package/dist/features/data-view.js.map +1 -1
  315. package/dist/features/email-composer/engine.js +1 -1
  316. package/dist/features/email-composer.js +285 -283
  317. package/dist/features/email-composer.js.map +1 -1
  318. package/dist/features/event-calendar.js +282 -273
  319. package/dist/features/event-calendar.js.map +1 -1
  320. package/dist/features/filters.js +1 -1
  321. package/dist/features/global-search.js +318 -318
  322. package/dist/features/global-search.js.map +1 -1
  323. package/dist/features/kanban.js +146 -147
  324. package/dist/features/kanban.js.map +1 -1
  325. package/dist/features/map.js +269 -268
  326. package/dist/features/map.js.map +1 -1
  327. package/dist/features/media-library.js +970 -863
  328. package/dist/features/media-library.js.map +1 -1
  329. package/dist/features/mentions.js +1 -1
  330. package/dist/features/overlays.js +1 -1
  331. package/dist/features/products.js +1137 -1124
  332. package/dist/features/products.js.map +1 -1
  333. package/dist/features/questionnaire.js +206 -194
  334. package/dist/features/questionnaire.js.map +1 -1
  335. package/dist/features/resource-assignment.js +24 -21
  336. package/dist/features/resource-assignment.js.map +1 -1
  337. package/dist/features/resource.js +77 -69
  338. package/dist/features/resource.js.map +1 -1
  339. package/dist/features/rich-text-editor.js +30 -11
  340. package/dist/features/rich-text-editor.js.map +1 -1
  341. package/dist/features/schema-form.js +35 -33
  342. package/dist/features/schema-form.js.map +1 -1
  343. package/dist/features/suggestions.js +3 -3
  344. package/dist/features/sync.js +11 -5
  345. package/dist/features/sync.js.map +1 -1
  346. package/dist/features/table.js +1 -1
  347. package/dist/features/theme-tweaker.js +501 -496
  348. package/dist/features/theme-tweaker.js.map +1 -1
  349. package/dist/feedback-BYIhtitP.js +239 -0
  350. package/dist/feedback-BYIhtitP.js.map +1 -0
  351. package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
  352. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  353. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  354. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  355. package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
  356. package/dist/filters-BGfvjP4d.js.map +1 -0
  357. package/dist/focus-recipes-B653VaLq.js +12 -0
  358. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  359. package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
  360. package/dist/form-field-CwH9y77i.js.map +1 -0
  361. package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
  362. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  363. package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
  364. package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
  365. package/dist/forms-numeric-B_jraJaQ.js +906 -0
  366. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  367. package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
  368. package/dist/header-CGXuhcRm.js.map +1 -0
  369. package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
  370. package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
  371. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  372. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  373. package/dist/icon-badge-DYKIwvOV.js +55 -0
  374. package/dist/icon-badge-DYKIwvOV.js.map +1 -0
  375. package/dist/index.js +7 -7
  376. package/dist/input-CZw8iU99.js +21 -0
  377. package/dist/input-CZw8iU99.js.map +1 -0
  378. package/dist/input-DQdEd0YD.js +263 -0
  379. package/dist/input-DQdEd0YD.js.map +1 -0
  380. package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
  381. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  382. package/dist/item-K5_ghvze.js +275 -0
  383. package/dist/item-K5_ghvze.js.map +1 -0
  384. package/dist/layer-recipes-CCpklYME.js +13 -0
  385. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  386. package/dist/layout/app-shell.js +1 -1
  387. package/dist/layout/auth.js +1 -1
  388. package/dist/layout/containers.js +1 -1
  389. package/dist/layout/header.js +1 -1
  390. package/dist/layout/hooks.js +1 -1
  391. package/dist/layout/navigation.js +1 -1
  392. package/dist/layout/page.js +1 -1
  393. package/dist/layout/settings.js +1 -1
  394. package/dist/layout/sidebar.js +2 -2
  395. package/dist/layout/workspace.js +1 -1
  396. package/dist/layout.js +10 -10
  397. package/dist/lib/affordance-geometry.generated.d.ts +72 -0
  398. package/dist/lib/editable-text-recipe.d.ts +4 -4
  399. package/dist/lib/field-affordance-recipes.d.ts +8 -3
  400. package/dist/lib/field-state-recipes.d.ts +9 -8
  401. package/dist/lib/focus-recipes.d.ts +24 -0
  402. package/dist/lib/interaction-recipes.d.ts +40 -0
  403. package/dist/lib/layer-recipes.d.ts +19 -0
  404. package/dist/lib/motion-recipes.d.ts +1 -0
  405. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
  406. package/dist/lib/safe-image-src.d.ts +10 -0
  407. package/dist/lib/sanitize-html.d.ts +15 -3
  408. package/dist/lib/surface-recipes.d.ts +47 -7
  409. package/dist/lib/theme-mode-css.d.ts +7 -0
  410. package/dist/lib/token-merge.generated.d.ts +9 -6
  411. package/dist/lib/tone-recipes.d.ts +87 -0
  412. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  413. package/dist/lib/ui-provider/index.d.ts +2 -2
  414. package/dist/lib/ui-provider/types.d.ts +11 -2
  415. package/dist/lib/utils.js +1 -1
  416. package/dist/media-gallery-3zIVLMWH.js +203 -0
  417. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  418. package/dist/mentions-utuUvH1K.js +570 -0
  419. package/dist/mentions-utuUvH1K.js.map +1 -0
  420. package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
  421. package/dist/message-DZ_ruyUV.js.map +1 -0
  422. package/dist/metadata-list-8N16ZMW_.js +405 -0
  423. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  424. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  425. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  426. package/dist/navigation-Bnotn4AQ.js +145 -0
  427. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  428. package/dist/navigation-BzhHI3lo.js +269 -0
  429. package/dist/navigation-BzhHI3lo.js.map +1 -0
  430. package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  431. package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  432. package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
  433. package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
  434. package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
  435. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  436. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  437. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  438. package/dist/overlays-DNWmZrJ4.js +1001 -0
  439. package/dist/overlays-DNWmZrJ4.js.map +1 -0
  440. package/dist/page-Bgl1F560.js +224 -0
  441. package/dist/page-Bgl1F560.js.map +1 -0
  442. package/dist/page-header-commands-DOb6WsfD.js +126 -0
  443. package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
  444. package/dist/pagination-BL25hu2s.js +158 -0
  445. package/dist/pagination-BL25hu2s.js.map +1 -0
  446. package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
  447. package/dist/popover-7_m66eYW.js.map +1 -0
  448. package/dist/popover-menu-B9WWygpa.js +100 -0
  449. package/dist/popover-menu-B9WWygpa.js.map +1 -0
  450. package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
  451. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  452. package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
  453. package/dist/primitives-BFK08r9M.js.map +1 -0
  454. package/dist/primitives.js +4 -4
  455. package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
  456. package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
  457. package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
  458. package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  459. package/dist/rich-text-GOUyKQ-s.js +78 -0
  460. package/dist/rich-text-GOUyKQ-s.js.map +1 -0
  461. package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
  462. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  463. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  464. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  465. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  466. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  467. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  468. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  469. package/dist/sanitize-html-DsQmI48u.js +92 -0
  470. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  471. package/dist/scroll-area-DcI-M1UT.js +48 -0
  472. package/dist/scroll-area-DcI-M1UT.js.map +1 -0
  473. package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
  474. package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
  475. package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
  476. package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
  477. package/dist/services/actions/action-adapters.d.ts +18 -0
  478. package/dist/services/actions/index.d.ts +1 -1
  479. package/dist/services/actions.js +16 -4
  480. package/dist/services/actions.js.map +1 -1
  481. package/dist/settings-ybnjVwbd.js +171 -0
  482. package/dist/settings-ybnjVwbd.js.map +1 -0
  483. package/dist/sheet-CGpB3omz.js +211 -0
  484. package/dist/sheet-CGpB3omz.js.map +1 -0
  485. package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
  486. package/dist/sidebar-A0ElHINE.js.map +1 -0
  487. package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
  488. package/dist/sidebar-CPx_7YBa.js.map +1 -0
  489. package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
  490. package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  491. package/dist/smart-card-DiC5aac3.js +604 -0
  492. package/dist/smart-card-DiC5aac3.js.map +1 -0
  493. package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
  494. package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
  495. package/dist/style.css +1 -1
  496. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  497. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  498. package/dist/table-BweFy_P9.js +1530 -0
  499. package/dist/table-BweFy_P9.js.map +1 -0
  500. package/dist/table-DsfzoUia.js +175 -0
  501. package/dist/table-DsfzoUia.js.map +1 -0
  502. package/dist/tabs-CDocW5D1.js +191 -0
  503. package/dist/tabs-CDocW5D1.js.map +1 -0
  504. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  505. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  506. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  507. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  508. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  509. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  510. package/dist/theme.css +285 -228
  511. package/dist/themes/green.css +16 -12
  512. package/dist/timelines-CwM_9IhD.js +457 -0
  513. package/dist/timelines-CwM_9IhD.js.map +1 -0
  514. package/dist/tone-recipes-BPsRAvhu.js +73 -0
  515. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  516. package/dist/tooltip-yiRJUFjp.js +111 -0
  517. package/dist/tooltip-yiRJUFjp.js.map +1 -0
  518. package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
  519. package/dist/tree-WnKQzwbq.js.map +1 -0
  520. package/dist/typography/rich-text.js +1 -1
  521. package/dist/typography-UTnveOEy.js +117 -0
  522. package/dist/typography-UTnveOEy.js.map +1 -0
  523. package/dist/typography.js +2 -2
  524. package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
  525. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  526. package/dist/ui-provider.js +3 -3
  527. package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
  528. package/dist/upload-CXyxmQBP.js.map +1 -0
  529. package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
  530. package/dist/upload-queue-Boscubn9.js.map +1 -0
  531. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  532. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  533. package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
  534. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  535. package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
  536. package/dist/utils-BRhFDwuU.js.map +1 -0
  537. package/dist/value-inputs-DXPDjvBU.js +963 -0
  538. package/dist/value-inputs-DXPDjvBU.js.map +1 -0
  539. package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
  540. package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  541. package/dist/workspace-Cdrg7k9f.js +408 -0
  542. package/dist/workspace-Cdrg7k9f.js.map +1 -0
  543. package/docs/consumer-skill/SKILL.md +21 -22
  544. package/docs/consumer-skill/examples/app-layout.tsx +1 -1
  545. package/docs/consumer-skill/examples/composition.tsx +3 -3
  546. package/docs/consumer-skill/examples/detail.tsx +59 -12
  547. package/docs/consumer-skill/examples/edit.tsx +1 -1
  548. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  549. package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
  550. package/docs/consumer-skill/examples/website.tsx +1 -1
  551. package/docs/consumer-skill/references/agents-md.md +33 -0
  552. package/docs/consumer-skill/references/analytics.md +1 -1
  553. package/docs/consumer-skill/references/composition.md +58 -13
  554. package/docs/consumer-skill/references/design-contract.md +12 -3
  555. package/docs/consumer-skill/references/installation.md +11 -1
  556. package/docs/consumer-skill/references/integration.md +4 -3
  557. package/docs/consumer-skill/references/public-api.json +956 -453
  558. package/docs/consumer-skill/references/review.md +32 -5
  559. package/docs/consumer-skill/references/theming.md +78 -9
  560. package/docs/consumer-skill/references/tokens.json +1 -1
  561. package/docs/consumer-skill/references/workflows.md +54 -10
  562. package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
  563. package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
  564. package/package.json +17 -5
  565. package/dist/accordion-CQXVcd7Q.js +0 -205
  566. package/dist/accordion-CQXVcd7Q.js.map +0 -1
  567. package/dist/action-menu-BTpyPWJ2.js +0 -264
  568. package/dist/action-menu-BTpyPWJ2.js.map +0 -1
  569. package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
  570. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
  571. package/dist/ai-artifact-2PQ2fItc.js +0 -1112
  572. package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
  573. package/dist/attachment-q69dlt5Y.js +0 -244
  574. package/dist/attachment-q69dlt5Y.js.map +0 -1
  575. package/dist/auth-M3vGMgDR.js.map +0 -1
  576. package/dist/avatar-djdaaQ_s.js.map +0 -1
  577. package/dist/badge-0tATj-tW.js +0 -92
  578. package/dist/badge-0tATj-tW.js.map +0 -1
  579. package/dist/breadcrumbs-BG_FfMK4.js +0 -128
  580. package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
  581. package/dist/button-BS3KDg00.js.map +0 -1
  582. package/dist/button-R9CCoH7A.js.map +0 -1
  583. package/dist/buttons-DS0ZIwJ_.js +0 -99
  584. package/dist/buttons-DS0ZIwJ_.js.map +0 -1
  585. package/dist/cards-QoJ4syG9.js +0 -66
  586. package/dist/cards-QoJ4syG9.js.map +0 -1
  587. package/dist/chart-DwYRKKc-.js.map +0 -1
  588. package/dist/checkbox-B7ygNTYp.js +0 -35
  589. package/dist/checkbox-B7ygNTYp.js.map +0 -1
  590. package/dist/choice-inputs-DrJ17tpL.js +0 -752
  591. package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
  592. package/dist/code-block-CD0B7M93.js +0 -183
  593. package/dist/code-block-CD0B7M93.js.map +0 -1
  594. package/dist/combobox-6dvVny2q.js +0 -272
  595. package/dist/combobox-6dvVny2q.js.map +0 -1
  596. package/dist/combobox-CB7039j7.js +0 -865
  597. package/dist/combobox-CB7039j7.js.map +0 -1
  598. package/dist/comments-You0Bzbr.js.map +0 -1
  599. package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
  600. package/dist/containers-D_L4mTVb.js.map +0 -1
  601. package/dist/data-display-3xWQUnMA.js +0 -1335
  602. package/dist/data-display-3xWQUnMA.js.map +0 -1
  603. package/dist/date-picker-DrDFj8Lo.js +0 -1527
  604. package/dist/date-picker-DrDFj8Lo.js.map +0 -1
  605. package/dist/date-pickers-CnFCb0n2.js +0 -174
  606. package/dist/date-pickers-CnFCb0n2.js.map +0 -1
  607. package/dist/display-DrdvPwF0.js +0 -343
  608. package/dist/display-DrdvPwF0.js.map +0 -1
  609. package/dist/dropdown-menu-CURh59jb.js +0 -193
  610. package/dist/dropdown-menu-CURh59jb.js.map +0 -1
  611. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  612. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  613. package/dist/feedback-C7nR0UtT.js +0 -232
  614. package/dist/feedback-C7nR0UtT.js.map +0 -1
  615. package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
  616. package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
  617. package/dist/field-state-recipes-C-MFBX_8.js +0 -11
  618. package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
  619. package/dist/filters-Da-gNPsE.js.map +0 -1
  620. package/dist/form-field-VZRULhUK.js.map +0 -1
  621. package/dist/form-sizing-uWP4lzVh.js.map +0 -1
  622. package/dist/forms-numeric-D3CO60IF.js +0 -905
  623. package/dist/forms-numeric-D3CO60IF.js.map +0 -1
  624. package/dist/header-2ycNqGOR.js.map +0 -1
  625. package/dist/icon-badge-DKlaKXoo.js +0 -53
  626. package/dist/icon-badge-DKlaKXoo.js.map +0 -1
  627. package/dist/input-BoLm9Hks.js +0 -20
  628. package/dist/input-BoLm9Hks.js.map +0 -1
  629. package/dist/input-DhQdBnV3.js +0 -255
  630. package/dist/input-DhQdBnV3.js.map +0 -1
  631. package/dist/item-xzh8Df65.js +0 -264
  632. package/dist/item-xzh8Df65.js.map +0 -1
  633. package/dist/media-gallery-DQUQ0m3O.js +0 -201
  634. package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
  635. package/dist/mentions-DwnO1hh4.js +0 -564
  636. package/dist/mentions-DwnO1hh4.js.map +0 -1
  637. package/dist/message-YfFmbXNP.js.map +0 -1
  638. package/dist/navigation-Cbp5V8gG.js +0 -264
  639. package/dist/navigation-Cbp5V8gG.js.map +0 -1
  640. package/dist/navigation-Cs1npsPm.js +0 -300
  641. package/dist/navigation-Cs1npsPm.js.map +0 -1
  642. package/dist/overlay.recipes-CNO2S9V6.js +0 -34
  643. package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
  644. package/dist/overlays-DhZO7N-I.js +0 -994
  645. package/dist/overlays-DhZO7N-I.js.map +0 -1
  646. package/dist/page-C6R_8jFt.js +0 -325
  647. package/dist/page-C6R_8jFt.js.map +0 -1
  648. package/dist/page-header-hUTzcRZX.js +0 -112
  649. package/dist/page-header-hUTzcRZX.js.map +0 -1
  650. package/dist/pagination-Cm0jqa3I.js +0 -149
  651. package/dist/pagination-Cm0jqa3I.js.map +0 -1
  652. package/dist/popover-Dcv_9jxr.js.map +0 -1
  653. package/dist/popover-menu-DnRFKnHP.js +0 -99
  654. package/dist/popover-menu-DnRFKnHP.js.map +0 -1
  655. package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
  656. package/dist/primitives-BHrwQXFC.js.map +0 -1
  657. package/dist/rich-text-editor-CF8QYt5p.js +0 -574
  658. package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
  659. package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
  660. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
  661. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  662. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  663. package/dist/rich-text-j-FGAeZW.js +0 -32
  664. package/dist/rich-text-j-FGAeZW.js.map +0 -1
  665. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  666. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  667. package/dist/scroll-area-DRdr16Pt.js +0 -47
  668. package/dist/scroll-area-DRdr16Pt.js.map +0 -1
  669. package/dist/settings-DHk0L2MF.js +0 -161
  670. package/dist/settings-DHk0L2MF.js.map +0 -1
  671. package/dist/sheet-DRFNY1_D.js +0 -207
  672. package/dist/sheet-DRFNY1_D.js.map +0 -1
  673. package/dist/sidebar-Cb8WzOvE.js.map +0 -1
  674. package/dist/sidebar-Crc9M9JV.js.map +0 -1
  675. package/dist/smart-card-Bek-TwUp.js +0 -599
  676. package/dist/smart-card-Bek-TwUp.js.map +0 -1
  677. package/dist/spinner-CmTAbEp0.js +0 -80
  678. package/dist/spinner-CmTAbEp0.js.map +0 -1
  679. package/dist/surface-recipes-DOdoBXGm.js +0 -28
  680. package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
  681. package/dist/table-D6zKeYQX.js +0 -162
  682. package/dist/table-D6zKeYQX.js.map +0 -1
  683. package/dist/table-Dn4XSrSB.js +0 -1444
  684. package/dist/table-Dn4XSrSB.js.map +0 -1
  685. package/dist/tabs-Dk8E_knt.js +0 -189
  686. package/dist/tabs-Dk8E_knt.js.map +0 -1
  687. package/dist/text-inputs-BFpku0Qd.js +0 -331
  688. package/dist/text-inputs-BFpku0Qd.js.map +0 -1
  689. package/dist/theme-scope-kStaAer0.js +0 -39
  690. package/dist/theme-scope-kStaAer0.js.map +0 -1
  691. package/dist/timelines-CxuAFIc2.js +0 -439
  692. package/dist/timelines-CxuAFIc2.js.map +0 -1
  693. package/dist/tree-BotPlyiD.js.map +0 -1
  694. package/dist/typography-CAr3dQhX.js +0 -116
  695. package/dist/typography-CAr3dQhX.js.map +0 -1
  696. package/dist/ui-provider-D2_TeLqw.js.map +0 -1
  697. package/dist/upload-B0WHW7ak.js.map +0 -1
  698. package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
  699. package/dist/usage-card-U0YBLTNT.js.map +0 -1
  700. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  701. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  702. package/dist/utils-Cospvlj1.js.map +0 -1
  703. package/dist/value-inputs-CjfzGMsN.js +0 -854
  704. package/dist/value-inputs-CjfzGMsN.js.map +0 -1
  705. package/dist/workspace-YoFjXi6i.js +0 -394
  706. package/dist/workspace-YoFjXi6i.js.map +0 -1
  707. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -1,22 +1,23 @@
1
1
  "use client";
2
2
  import { useStrings as e } from "../lib/strings.js";
3
- import { t } from "../utils-Cospvlj1.js";
4
- import { n } from "../buttons-DS0ZIwJ_.js";
5
- import { s as r } from "../typography-CAr3dQhX.js";
6
- import { t as i } from "../button-BS3KDg00.js";
7
- import { d as a, g as o, i as s, l as c, n as l, o as u, r as d, t as f, u as p } from "../dropdown-menu-CURh59jb.js";
8
- import { a as m, n as h, o as g, r as _, t as v } from "../command-kPMPjIxJ.js";
9
- import { c as y, o as b, t as x } from "../popover-Dcv_9jxr.js";
10
- import { a as S, c as C, o as ee } from "../text-inputs-BFpku0Qd.js";
11
- import { t as w } from "../use-debounce-DZ_1ZBPa.js";
12
- import * as T from "react";
13
- import { Suspense as te, createContext as E, lazy as D, useCallback as O, useContext as k, useEffect as A, useRef as j, useState as M, useSyncExternalStore as N } from "react";
14
- import { Fragment as ne, jsx as P, jsxs as F } from "react/jsx-runtime";
15
- import { CircleIcon as I, LayersIcon as re, Loader2Icon as ie, LoaderCircleIcon as ae, MapPinIcon as L, MaximizeIcon as oe, MinimizeIcon as R, MinusIcon as z, NavigationIcon as B, PenLineIcon as se, PentagonIcon as ce, PlusIcon as le, SearchIcon as ue, SquareIcon as de, Trash2Icon as fe, Undo2Icon as pe, WaypointsIcon as V } from "lucide-react";
16
- import { flushSync as me } from "react-dom";
17
- import { renderToString as H } from "react-dom/server";
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 he = {
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 ge(e) {
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 U({ query: e, bbox: t, lang: n, lat: r, limit: i, locationBiasScale: a, lon: o, zoom: s }) {
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 _e = async (e, t) => {
36
- let n = await fetch(U(e), { signal: t });
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 ve({ debounceMs: e, query: t, lang: n, limit: r, bbox: i, lat: a, lon: o, zoom: s, locationBiasScale: c, searchPlaces: l = _e, onSearchError: u }) {
41
- let [d, f] = T.useState([]), [p, m] = T.useState(!1), [h, g] = T.useState(null), [_, v] = T.useState(!1), [y, b] = T.useState(0), x = T.useRef(u);
42
- T.useEffect(() => {
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 = w(t, e), C = i?.join(",");
46
- return T.useEffect(() => {
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 ye(e, t) {
101
+ function xe(e, t) {
101
102
  return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => t[n] ?? e);
102
103
  }
103
- function be({ debounceMs: n = 300, lang: a, limit: o = 5, bbox: s, lat: c, lon: l, zoom: u, locationBiasScale: d, className: f, value: p, defaultValue: w = "", onValueChange: te, onPlaceSelect: E, onResultsChange: D, searchPlaces: O, onSearchError: k, strings: A, onFocus: j, ...M }) {
104
- let N = e(he, A), [ne, I] = T.useState(w), [re, ae] = T.useState(""), [oe, R] = T.useState(!1), [z, B] = T.useState(-1), se = T.useId(), ce = T.useRef(null), le = T.useRef(null), de = T.useRef(/* @__PURE__ */ new Map()), fe = p !== void 0, pe = fe ? p : ne, { results: V, isLoading: H, error: U, hasSearched: _e, retry: be } = ve({
105
- query: re,
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: k,
108
- debounceMs: n,
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
- }), xe = T.useRef(D);
117
- T.useEffect(() => {
118
- xe.current = D;
119
- }, [D]), T.useEffect(() => {
120
- xe.current?.(V);
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 = _e && !H && !U && V.length === 0, G = !!(U || W || V.length > 0), K = G && !oe, q = (e) => {
123
- let t = ge(e.properties);
124
- fe || I(t), ae(""), R(!0), B(-1), te?.(t), E?.(e);
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(v, {
127
+ return /* @__PURE__ */ P(b, {
127
128
  inset: "flush",
128
129
  className: t("place-autocomplete--component", "h-fit overflow-visible", f),
129
- value: z >= 0 ? String(V[z]?.properties.osm_id ?? "") : "",
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" && K && (!U || e.shiftKey)) me(() => {
133
- R(!0), B(-1);
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") R(!0), B(-1), e.preventDefault();
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
- R(!1);
143
- let t = e.key === "Home" ? 0 : e.key === "End" ? V.length - 1 : z < 0 ? e.key === "ArrowDown" ? 0 : V.length - 1 : (z + (e.key === "ArrowDown" ? 1 : -1) + V.length) % V.length;
144
- B(t), e.preventDefault();
145
- } else e.key === "Enter" && K && V[z] && (q(V[z]), e.preventDefault());
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(b, {
151
+ children: /* @__PURE__ */ F(S, {
151
152
  actionsRef: le,
152
- open: K,
153
+ open: G,
153
154
  onOpenChange: (e, t) => {
154
- if (!e && t.reason === "focus-out" && document.activeElement === ce.current?.querySelector("input")) {
155
+ if (!e && t.reason === "focus-out" && document.activeElement === B.current?.querySelector("input")) {
155
156
  t.cancel();
156
157
  return;
157
158
  }
158
- e || R(!0);
159
+ e || L(!0);
159
160
  },
160
161
  children: [/* @__PURE__ */ F("div", {
161
- ref: ce,
162
+ ref: B,
162
163
  className: "place-autocomplete--anchor relative",
163
- children: [/* @__PURE__ */ P(y, {
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(S, {
170
+ }), /* @__PURE__ */ F(ee, {
170
171
  className: "border-input! bg-popover! ring-0!",
171
172
  children: [
172
- /* @__PURE__ */ P(ee, { children: /* @__PURE__ */ P(ue, {}) }),
173
- /* @__PURE__ */ P(C, {
173
+ /* @__PURE__ */ P(T, { children: /* @__PURE__ */ P(fe, {}) }),
174
+ /* @__PURE__ */ P(w, {
174
175
  role: "combobox",
175
176
  "aria-autocomplete": "list",
176
- "aria-expanded": K,
177
- "aria-controls": K ? se : void 0,
178
- "aria-activedescendant": K && V[z] ? ((e) => de.current.get(e)?.id)(z) : void 0,
179
- placeholder: N.searchPlaceholder,
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
- fe || I(t), R(!1), ae(t), B(-1), te?.(t);
184
+ de || re(t), L(!1), I(t), z(-1), h?.(t);
184
185
  },
185
186
  onFocus: (e) => {
186
- G && R(!1), j?.(e);
187
+ Se && L(!1), A?.(e);
187
188
  },
188
- ...M
189
+ ...j
189
190
  }),
190
- !!H && /* @__PURE__ */ F(ee, {
191
+ !!me && /* @__PURE__ */ F(T, {
191
192
  align: "inline-end",
192
- children: [/* @__PURE__ */ P(ie, {
193
+ children: [/* @__PURE__ */ P(oe, {
193
194
  className: "animate-spin",
194
195
  "aria-hidden": "true"
195
- }), /* @__PURE__ */ P(r, {
196
+ }), /* @__PURE__ */ P(i, {
196
197
  tag: "span",
197
198
  size: "inherit",
198
199
  className: "sr-only",
199
- children: N.loading
200
+ children: M.loading
200
201
  })]
201
202
  })
202
203
  ]
203
204
  })]
204
- }), /* @__PURE__ */ P(x, {
205
- "aria-label": N.searchPlaceholder,
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(g, {
213
- id: se,
214
- label: N.searchPlaceholder,
213
+ children: /* @__PURE__ */ F(v, {
214
+ id: ce,
215
+ label: M.searchPlaceholder,
215
216
  className: "max-h-72",
216
217
  children: [
217
- !!U && /* @__PURE__ */ F(h, { children: [/* @__PURE__ */ P(r, {
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: ye(N.error, { message: U.message })
224
- }), /* @__PURE__ */ P(i, {
224
+ children: xe(M.error, { message: H.message })
225
+ }), /* @__PURE__ */ P(n, {
225
226
  buttonStyle: "ghost",
226
227
  size: "sm",
227
228
  onClick: () => {
228
- ce.current?.querySelector("input")?.focus(), R(!1), be();
229
+ B.current?.querySelector("input")?.focus(), L(!1), ve();
229
230
  },
230
- children: N.retry ?? he.retry
231
+ children: M.retry ?? ge.retry
231
232
  })] }),
232
- !!W && /* @__PURE__ */ P(h, { children: /* @__PURE__ */ P(r, {
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: ye(N.noResults, { query: pe })
239
+ children: xe(M.noResults, { query: pe })
239
240
  }) }),
240
- V.length > 0 && /* @__PURE__ */ P(_, { children: V.map((e, t) => {
241
- let n = ge(e.properties);
242
- return /* @__PURE__ */ F(m, {
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 ? de.current.set(t, e) : de.current.delete(t);
246
+ e ? ue.current.set(t, e) : ue.current.delete(t);
246
247
  },
247
- onSelect: () => q(e),
248
- children: [/* @__PURE__ */ P(L, {}), /* @__PURE__ */ F("div", {
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(r, {
251
+ children: [/* @__PURE__ */ P(i, {
251
252
  tag: "span",
252
253
  weight: "medium",
253
- children: e.properties.name || e.properties.street || N.unknownPlace
254
- }), /* @__PURE__ */ P(r, {
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 xe(e) {
272
- let t = O(() => {
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 = O((t) => {
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 N(n, t, () => "light");
287
+ return re(n, t, () => "light");
287
288
  }
288
289
  //#endregion
289
290
  //#region src/components/features/map/map.tsx
290
- var W = E(null), G = {
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
- }, K = E(G);
319
+ }, Ce = O(K);
319
320
  function q() {
320
- return k(K);
321
+ return A(Ce);
321
322
  }
322
- var Se = E(null), Ce = D(async () => {
323
+ var we = O(null), Te = ne(async () => {
323
324
  let e = await import("react-leaflet");
324
- return { default: ({ children: t }) => /* @__PURE__ */ P(Se.Provider, {
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 = k(Se);
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 we = J((e) => e.MapContainer), Te = J((e) => e.TileLayer), Ee = J((e) => e.Marker), De = J((e) => e.Popup), Oe = J((e) => e.Tooltip), ke = J((e) => e.Circle), Ae = J((e) => e.CircleMarker), je = J((e) => e.Polyline), Me = J((e) => e.Polygon), Ne = J((e) => e.Rectangle), Pe = J((e) => e.LayerGroup), Fe = J((e) => e.FeatureGroup);
338
- function Ie(e) {
339
- let t = D(e);
340
- return (e) => /* @__PURE__ */ P(te, { children: /* @__PURE__ */ P(t, { ...e }) });
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 Le = Ie(async () => import("react-leaflet-markercluster").then((e) => ({ default: e.default })));
343
- function Re({ children: e }) {
344
- let t = k(Se);
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(W.Provider, {
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 = k(W);
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 ze(e) {
357
- let t = k(W);
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 Be(e, t) {
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 Ve({ zoom: n = 15, maxZoom: r = 18, className: i, children: a, strings: o, ref: s, ...c }) {
371
- let l = e(G, o), u = j(null), d = O((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
- Be(s, e);
379
- }, [s]), [f, p] = M(!1);
380
- return A(() => {
379
+ He(s, e);
380
+ }, [s]), [f, p] = N(!1);
381
+ return j(() => {
381
382
  p(!0);
382
- }, []), f ? /* @__PURE__ */ P(te, { children: /* @__PURE__ */ P(Ce, { children: /* @__PURE__ */ P(we, {
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(K.Provider, {
391
+ children: /* @__PURE__ */ P(Ce.Provider, {
391
392
  value: l,
392
- children: /* @__PURE__ */ P(Re, { children: a })
393
+ children: /* @__PURE__ */ P(Be, { children: a })
393
394
  })
394
395
  }) }) }) : null;
395
396
  }
396
- var He = E(null);
397
- function Ue() {
398
- return k(He);
397
+ var We = O(null);
398
+ function Ge() {
399
+ return A(We);
399
400
  }
400
- function We({ name: e, url: t, attribution: n, darkUrl: r, darkAttribution: i, ...a }) {
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 = k(He), u = xe(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 ?? "&copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>, &copy; <a href=\"https://carto.com/attributions\">CARTO</a>";
404
- return A(() => {
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 ?? "&copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>, &copy; <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(Te, {
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 Ge({ name: e, disabled: t, ...n }) {
422
- let r = Ue();
423
- return A(() => {
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(Pe, { ...n });
433
+ ]), r && !r.activeLayerGroups.includes(e) ? null : /* @__PURE__ */ P(Ie, { ...n });
433
434
  }
434
- function Ke({ name: e, disabled: t, ...n }) {
435
- let r = Ue();
436
- return A(() => {
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(Fe, { ...n });
446
+ ]), r && !r.activeLayerGroups.includes(e) ? null : /* @__PURE__ */ P(Le, { ...n });
446
447
  }
447
- function qe({ defaultTileLayer: e, defaultLayerGroups: t = [], ...n }) {
448
- let [r, i] = M([]), [a, o] = M(e || ""), [s, c] = M([]), [l, u] = M(t);
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 A(() => {
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(He.Provider, {
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 Je({ tileLayersLabel: e, layerGroupsLabel: n, position: r = "top-1 right-1", className: m, ...h }) {
483
- let g = q(), _ = Ue();
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(f, { children: [/* @__PURE__ */ P(o, { render: (e) => /* @__PURE__ */ P(i, {
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", r, m, e.className),
500
+ className: t("border-border absolute z-1000 border", i, a, e.className),
500
501
  ...h,
501
- children: /* @__PURE__ */ P(re, {})
502
- }) }), /* @__PURE__ */ F(d, {
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(ne, { children: /* @__PURE__ */ F(c, {
507
+ !!w && /* @__PURE__ */ P(ie, { children: /* @__PURE__ */ F(l, {
507
508
  value: y,
508
509
  onValueChange: b,
509
- children: [/* @__PURE__ */ P(u, { children: e ?? g.mapType }), v.map((e) => /* @__PURE__ */ P(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(a, {}),
515
- !!T && /* @__PURE__ */ F(s, { children: [/* @__PURE__ */ P(u, { children: n ?? g.layers }), x.map((e) => /* @__PURE__ */ P(l, {
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 Ye({ icon: e = /* @__PURE__ */ P(L, { className: "size-icon-lg fill-background text-foreground" }), iconAnchor: t = [12, 12], bgPos: n, popupAnchor: r, tooltipAnchor: i, ariaLabel: a, ref: o, ...s }) {
525
- let { L: c } = $(), l = q(), u = j(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 = O((e) => {
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 = O((e) => {
529
- u.current = e, Be(o, e), p(e);
529
+ }, [d]), m = k((e) => {
530
+ u.current = e, He(o, e), p(e);
530
531
  }, [o, p]);
531
- return A(() => {
532
+ return j(() => {
532
533
  p(u.current);
533
- }, [p]), c ? /* @__PURE__ */ P(Ee, {
534
+ }, [p]), c ? /* @__PURE__ */ P(Oe, {
534
535
  ref: m,
535
536
  icon: c.divIcon({
536
537
  className: "",
537
- html: H(e),
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 Xe({ polygonOptions: e = { className: "fill-foreground stroke-foreground stroke-2" }, spiderLegPolylineOptions: t = { className: "fill-foreground stroke-foreground stroke-2" }, icon: n, ...r }) {
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(Le, {
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: H(t) });
556
+ return i.divIcon({ html: U(t) });
556
557
  } : void 0,
557
558
  ...r
558
559
  }) : null;
559
560
  }
560
- function Ze({ className: e, ...n }) {
561
- return /* @__PURE__ */ P(ke, {
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 Qe({ className: e, ...n }) {
567
- return /* @__PURE__ */ P(Ae, {
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 $e({ className: e, ...n }) {
573
- return /* @__PURE__ */ P(je, {
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 et({ className: e, ...n }) {
579
- return /* @__PURE__ */ P(Me, {
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 tt({ className: e, ...n }) {
585
- return /* @__PURE__ */ P(Ne, {
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 nt({ className: e, ...n }) {
591
- return /* @__PURE__ */ P(De, {
592
- className: t("map-popup--component border-border bg-popover text-popover-foreground animate-in fade-out-0 fade-in-0 zoom-out-95 zoom-in-95 slide-in-from-bottom-2 z-50 w-72 rounded-radius border p-surface font-sans shadow-md outline-hidden", e),
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 rt({ className: e, children: n, side: r = "top", sideOffset: i = 15, ...a }) {
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(Oe, {
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 it({ position: e = "top-1 left-1", className: r, ...a }) {
619
- let o = Y(), s = q(), [c, l] = M(o.getZoom());
620
- return ze({ zoomend: () => {
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, r),
624
- children: /* @__PURE__ */ F(n, {
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(i, {
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(le, {})
639
- }), /* @__PURE__ */ P(i, {
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(z, {})
650
+ children: /* @__PURE__ */ P(ce, {})
650
651
  })]
651
652
  })
652
653
  });
653
654
  }
654
- function at({ position: e = "top-1 right-1", className: n, ...r }) {
655
- let a = Y(), o = q(), [s, c] = M(!1), { L: l } = $();
656
- return A(() => {
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, n),
668
- children: /* @__PURE__ */ P(i, {
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
- ...r,
678
- children: P(s ? R : oe, {})
678
+ ...i,
679
+ children: P(s ? z : R, {})
679
680
  })
680
681
  });
681
682
  }
682
- function ot() {
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 st({ watch: e = !1, onLocationFound: n, onLocationError: r, position: a = "right-1 bottom-1", className: o, ...s }) {
689
- let c = Y(), l = q(), [u, d] = xt(200), [f, p] = M(null), m = f !== null, h = O(() => {
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), n?.(e);
696
+ p(e.latlng), d(!1), r?.(e);
696
697
  }), c.on("locationerror", (e) => {
697
- p(null), d(!1), r?.(e);
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 = O(() => {
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(Ye, {
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(ot, {}),
710
+ icon: /* @__PURE__ */ P(ct, {}),
710
711
  ariaLabel: l.currentLocation
711
712
  }) : null;
712
- return A(() => () => g(), [g]), /* @__PURE__ */ F(Q, {
713
+ return j(() => () => g(), [g]), /* @__PURE__ */ F(Q, {
713
714
  className: t(a, o),
714
- children: [/* @__PURE__ */ P(i, {
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(ae, { className: "animate-spin" }) : /* @__PURE__ */ P(B, {})
726
+ children: u ? /* @__PURE__ */ P(L, { className: "animate-spin" }) : /* @__PURE__ */ P(B, {})
726
727
  }), b]
727
728
  });
728
729
  }
729
- function ct({ position: e = "top-1 left-1", className: n, ...r }) {
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(be, { ...r })
733
+ children: /* @__PURE__ */ P(W, { ...r })
733
734
  });
734
735
  }
735
- var lt = E(null);
736
+ var dt = O(null);
736
737
  function X() {
737
- return k(lt);
738
+ return A(dt);
738
739
  }
739
- function ut({ onLayersChange: e, position: r = "bottom-1 left-1", className: i, ...a }) {
740
- let { L: o, LeafletDraw: s } = $(), c = Y(), l = j(null), u = j(null), d = j(null), [f, p] = M(null), [m, h] = M(0), g = O(() => {
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
- }, []), _ = O((t) => {
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 = O(() => {
747
+ }, [e, g]), v = k(() => {
747
748
  l.current && (e?.(l.current), g(), p(null));
748
749
  }, [e, g]);
749
- return A(() => {
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(lt.Provider, {
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(Fe, { ref: l }), /* @__PURE__ */ P(Q, {
769
- className: t(r, i),
770
- children: /* @__PURE__ */ P(n, {
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: n, className: r, children: a, ...o }) {
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 = j(null), { activeMode: f, setActiveMode: p } = s, m = f === e, h = {
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
- A(() => {
788
+ j(() => {
788
789
  if (!c || !m) {
789
790
  d.current?.disable(), d.current = null;
790
791
  return;
791
792
  }
792
- let e = n(c, u);
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
- n
801
+ r
801
802
  ]);
802
803
  function g() {
803
804
  p(m ? null : e);
804
805
  }
805
- return /* @__PURE__ */ P(i, {
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", r),
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 dt({ ...e }) {
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: H(/* @__PURE__ */ P(L, { className: "size-icon-lg" }))
827
+ html: U(/* @__PURE__ */ P(se, { className: "size-icon-lg" }))
827
828
  }),
828
829
  ...e
829
830
  }),
830
- children: /* @__PURE__ */ P(L, {})
831
+ children: /* @__PURE__ */ P(se, {})
831
832
  });
832
833
  }
833
- function ft({ showLength: e = !1, drawError: t = { color: "var(--color-destructive)" }, shapeOptions: n = {
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 = bt();
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(V, {})
852
+ children: /* @__PURE__ */ P(H, {})
852
853
  });
853
854
  }
854
- function pt({ showRadius: e = !1, shapeOptions: t = {
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 mt({ showArea: e = !1, shapeOptions: t = {
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(de, {})
882
+ children: /* @__PURE__ */ P(pe, {})
882
883
  });
883
884
  }
884
- function ht({ drawError: e = { color: "var(--color-destructive)" }, shapeOptions: t = {
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 = bt();
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(ce, {})
902
+ children: /* @__PURE__ */ P(ue, {})
902
903
  });
903
904
  }
904
- function gt({ drawAction: e, createDrawTool: n, controlRef: r, className: a, children: o, ...s }) {
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
- A(() => {
909
+ j(() => {
909
910
  if (!l || !f || !g) {
910
- r.current?.disable?.(), r.current = null;
911
+ i.current?.disable?.(), i.current = null;
911
912
  return;
912
913
  }
913
- let e = n(l, d, f);
914
- return e.enable?.(), r.current = e, () => {
915
- e.disable?.(), r.current = null;
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
- n,
923
- r
923
+ r,
924
+ i
924
925
  ]);
925
926
  function y() {
926
- r.current?.save(), m(g ? null : e);
927
+ i.current?.save(), m(g ? null : e);
927
928
  }
928
- return /* @__PURE__ */ P(i, {
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 _t({ selectedPathOptions: e = {
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 = bt(), a = X();
948
+ let { L: n } = $(), r = q(), i = St(), a = X();
948
949
  if (!a) throw Error("MapDrawEdit must be used within MapDrawControl");
949
- return A(() => {
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(gt, {
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(se, {})
977
+ children: /* @__PURE__ */ P(le, {})
977
978
  });
978
979
  }
979
- function vt() {
980
+ function bt() {
980
981
  let e = X();
981
982
  if (!e) throw Error("MapDrawDelete must be used within MapDrawControl");
982
- return /* @__PURE__ */ P(gt, {
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(fe, {})
987
+ children: /* @__PURE__ */ P(V, {})
987
988
  });
988
989
  }
989
- function yt({ className: e, ...n }) {
990
- let r = X();
991
- if (!r) throw Error("MapDrawUndo must be used within MapDrawControl");
992
- let a = q(), { activeMode: o, setActiveMode: s, editControlRef: c, deleteControlRef: l, layersCount: u } = r, d = o === "edit", f = o === "delete", p = (d || f) && u > 0, m = f ? a.undoRemove : a.undoEdit;
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(i, {
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
- ...n,
1007
- children: /* @__PURE__ */ P(pe, {})
1007
+ ...r,
1008
+ children: /* @__PURE__ */ P(me, {})
1008
1009
  });
1009
1010
  }
1010
1011
  function Q({ className: e, ...n }) {
1011
- let { L: r } = $(), i = j(null);
1012
- return A(() => {
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 bt() {
1023
+ function St() {
1023
1024
  let { L: e } = $();
1024
1025
  return e ? e.divIcon({
1025
1026
  iconAnchor: [8, 8],
1026
- html: H(/* @__PURE__ */ P(I, { className: "fill-primary-accent stroke-primary-accent size-icon transition-transform hover:scale-110" }))
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] = M(null), [n, r] = M(null);
1031
- return A(() => {
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 xt(e = 200) {
1043
- let [t, n] = M(!1), [r, i] = M(!1), a = j(null);
1044
- return A(() => (t ? a.current = setTimeout(() => {
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 { Ve as Map, Ze as MapCircle, Qe as MapCircleMarker, Q as MapControlContainer, pt as MapDrawCircle, ut as MapDrawControl, vt as MapDrawDelete, _t as MapDrawEdit, dt as MapDrawMarker, ht as MapDrawPolygon, ft as MapDrawPolyline, mt as MapDrawRectangle, yt as MapDrawUndo, Ke as MapFeatureGroup, at as MapFullscreenControl, Ge as MapLayerGroup, qe as MapLayers, Je as MapLayersControl, st as MapLocateControl, Ye as MapMarker, Xe as MapMarkerClusterGroup, et as MapPolygon, $e as MapPolyline, nt as MapPopup, tt as MapRectangle, ct as MapSearchControl, We as MapTileLayer, rt as MapTooltip, it as MapZoomControl, be as PlaceAutocomplete, G as defaultMapStrings, he as defaultPlaceAutocompleteStrings, $ as useLeaflet };
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