@accelint/design-toolkit 9.8.0 → 9.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/catalog-info.yaml +7 -4
  2. package/dist/components/accordion/context.d.ts +2 -2
  3. package/dist/components/accordion/group.d.ts +2 -2
  4. package/dist/components/accordion/header.d.ts +2 -2
  5. package/dist/components/accordion/index.d.ts +2 -2
  6. package/dist/components/accordion/panel.d.ts +2 -2
  7. package/dist/components/accordion/trigger.d.ts +2 -2
  8. package/dist/components/action-bar/index.d.ts +2 -2
  9. package/dist/components/audio/index.d.ts +2 -2
  10. package/dist/components/avatar/context.d.ts +4 -4
  11. package/dist/components/avatar/index.d.ts +2 -2
  12. package/dist/components/badge/context.d.ts +4 -4
  13. package/dist/components/badge/index.d.ts +2 -2
  14. package/dist/components/breadcrumbs/index.d.ts +2 -2
  15. package/dist/components/button/__internal__/clear.js +1 -0
  16. package/dist/components/button/__internal__/clear.js.map +1 -1
  17. package/dist/components/button/context.d.ts +8 -8
  18. package/dist/components/button/index.d.ts +2 -2
  19. package/dist/components/button/link.d.ts +2 -2
  20. package/dist/components/button/toggle.d.ts +2 -2
  21. package/dist/components/checkbox/context.d.ts +3 -3
  22. package/dist/components/checkbox/group.d.ts +2 -2
  23. package/dist/components/checkbox/index.d.ts +2 -2
  24. package/dist/components/chip/context.d.ts +4 -4
  25. package/dist/components/chip/deletable.d.ts +2 -2
  26. package/dist/components/chip/index.d.ts +2 -2
  27. package/dist/components/chip/list.d.ts +4 -4
  28. package/dist/components/chip/selectable.d.ts +2 -2
  29. package/dist/components/classification-badge/context.d.ts +4 -4
  30. package/dist/components/classification-badge/index.d.ts +2 -2
  31. package/dist/components/classification-banner/context.d.ts +4 -4
  32. package/dist/components/classification-banner/index.d.ts +2 -2
  33. package/dist/components/clock/index.d.ts +2 -2
  34. package/dist/components/color-picker/index.d.ts +7 -45
  35. package/dist/components/color-picker/index.js +34 -52
  36. package/dist/components/color-picker/index.js.map +1 -1
  37. package/dist/components/color-picker/styles.module.css +5 -1
  38. package/dist/components/color-picker/types.d.ts +17 -4
  39. package/dist/components/combobox-field/context.d.ts +4 -4
  40. package/dist/components/combobox-field/index.d.ts +2 -2
  41. package/dist/components/combobox-field/index.js +19 -1
  42. package/dist/components/combobox-field/index.js.map +1 -1
  43. package/dist/components/coordinate-field/context.d.ts +6 -6
  44. package/dist/components/coordinate-field/index.d.ts +2 -2
  45. package/dist/components/coordinate-field/index.js +49 -42
  46. package/dist/components/coordinate-field/index.js.map +1 -1
  47. package/dist/components/coordinate-field/segment.d.ts +2 -2
  48. package/dist/components/coordinate-field/types.d.ts +5 -0
  49. package/dist/components/coordinate-field/types.js.map +1 -1
  50. package/dist/components/date-field/index.d.ts +2 -2
  51. package/dist/components/deferred-collection/index.d.ts +2 -2
  52. package/dist/components/details-list/context.d.ts +4 -4
  53. package/dist/components/details-list/index.d.ts +2 -2
  54. package/dist/components/details-list/label.d.ts +2 -2
  55. package/dist/components/details-list/value.d.ts +2 -2
  56. package/dist/components/dialog/content.d.ts +2 -2
  57. package/dist/components/dialog/context.d.ts +2 -2
  58. package/dist/components/dialog/footer.d.ts +2 -2
  59. package/dist/components/dialog/index.d.ts +2 -2
  60. package/dist/components/dialog/title.d.ts +2 -2
  61. package/dist/components/divider/context.d.ts +4 -4
  62. package/dist/components/divider/index.d.ts +2 -2
  63. package/dist/components/drawer/back.d.ts +2 -2
  64. package/dist/components/drawer/close.d.ts +2 -2
  65. package/dist/components/drawer/content.d.ts +2 -2
  66. package/dist/components/drawer/context.d.ts +3 -3
  67. package/dist/components/drawer/footer.d.ts +2 -2
  68. package/dist/components/drawer/header-title.d.ts +2 -2
  69. package/dist/components/drawer/header.d.ts +2 -2
  70. package/dist/components/drawer/index.d.ts +2 -2
  71. package/dist/components/drawer/layout-main.d.ts +2 -2
  72. package/dist/components/drawer/layout.d.ts +2 -2
  73. package/dist/components/drawer/menu-item.d.ts +2 -2
  74. package/dist/components/drawer/menu-item.js +2 -2
  75. package/dist/components/drawer/menu.d.ts +2 -2
  76. package/dist/components/drawer/panel.d.ts +2 -2
  77. package/dist/components/drawer/trigger.d.ts +2 -2
  78. package/dist/components/drawer/types.d.ts +1 -1
  79. package/dist/components/drawer/view.d.ts +2 -2
  80. package/dist/components/flashcard/index.d.ts +9 -9
  81. package/dist/components/floating-card/context.d.ts +2 -2
  82. package/dist/components/floating-card/index.d.ts +2 -2
  83. package/dist/components/floating-card/provider.d.ts +2 -2
  84. package/dist/components/floating-card/provider.js +2 -2
  85. package/dist/components/floating-card/provider.js.map +1 -1
  86. package/dist/components/floating-card/styles.module.css +1 -1
  87. package/dist/components/hero/context.d.ts +2 -2
  88. package/dist/components/hero/index.d.ts +2 -2
  89. package/dist/components/hero/subtitle.d.ts +3 -3
  90. package/dist/components/hero/title.d.ts +2 -2
  91. package/dist/components/hotkey/context.d.ts +4 -4
  92. package/dist/components/hotkey/index.d.ts +2 -2
  93. package/dist/components/hotkey/set.d.ts +2 -2
  94. package/dist/components/icon/context.d.ts +4 -4
  95. package/dist/components/icon/index.d.ts +2 -2
  96. package/dist/components/input/context.d.ts +2 -2
  97. package/dist/components/input/index.d.ts +2 -2
  98. package/dist/components/input/styles.module.css +8 -0
  99. package/dist/components/kanban/card-body.d.ts +2 -2
  100. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  101. package/dist/components/kanban/card-header-title.d.ts +2 -2
  102. package/dist/components/kanban/card-header.d.ts +2 -2
  103. package/dist/components/kanban/card.d.ts +2 -2
  104. package/dist/components/kanban/column-actions.d.ts +2 -2
  105. package/dist/components/kanban/column-container.d.ts +2 -2
  106. package/dist/components/kanban/column-content.d.ts +2 -2
  107. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  108. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  109. package/dist/components/kanban/column-header-title.d.ts +2 -2
  110. package/dist/components/kanban/column-header.d.ts +2 -2
  111. package/dist/components/kanban/column.d.ts +2 -2
  112. package/dist/components/kanban/context.d.ts +2 -2
  113. package/dist/components/kanban/header-actions.d.ts +2 -2
  114. package/dist/components/kanban/header-search.d.ts +2 -2
  115. package/dist/components/kanban/header-title.d.ts +2 -2
  116. package/dist/components/kanban/header.d.ts +2 -2
  117. package/dist/components/kanban/kanban.d.ts +4 -4
  118. package/dist/components/label/context.d.ts +4 -4
  119. package/dist/components/label/index.d.ts +2 -2
  120. package/dist/components/lines/index.d.ts +2 -2
  121. package/dist/components/link/context.d.ts +2 -2
  122. package/dist/components/link/index.d.ts +2 -2
  123. package/dist/components/list/context.d.ts +2 -2
  124. package/dist/components/list/index.d.ts +2 -2
  125. package/dist/components/list/item-content.d.ts +2 -2
  126. package/dist/components/list/item-description.d.ts +2 -2
  127. package/dist/components/list/item-title.d.ts +2 -2
  128. package/dist/components/list/item.d.ts +2 -2
  129. package/dist/components/media-controls/context.d.ts +4 -4
  130. package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
  131. package/dist/components/media-controls/index.d.ts +2 -2
  132. package/dist/components/media-controls/mute-button.d.ts +2 -2
  133. package/dist/components/media-controls/play-button.d.ts +2 -2
  134. package/dist/components/media-controls/playback-rate.d.ts +2 -2
  135. package/dist/components/media-controls/seek-button.d.ts +2 -2
  136. package/dist/components/media-controls/time-display.d.ts +2 -2
  137. package/dist/components/media-controls/time-range.d.ts +2 -2
  138. package/dist/components/media-controls/volume-slider.d.ts +2 -2
  139. package/dist/components/menu/context.d.ts +2 -2
  140. package/dist/components/menu/index.d.ts +2 -2
  141. package/dist/components/menu/item-description.d.ts +2 -2
  142. package/dist/components/menu/item-label.d.ts +2 -2
  143. package/dist/components/menu/item.d.ts +2 -2
  144. package/dist/components/menu/section.d.ts +2 -2
  145. package/dist/components/menu/separator.d.ts +2 -2
  146. package/dist/components/menu/submenu.d.ts +3 -3
  147. package/dist/components/notice/index.d.ts +2 -2
  148. package/dist/components/notice/list.d.ts +2 -2
  149. package/dist/components/notice/list.js +1 -1
  150. package/dist/components/notice/notice-icon.d.ts +2 -2
  151. package/dist/components/notice/types.d.ts +1 -1
  152. package/dist/components/options/context.d.ts +2 -2
  153. package/dist/components/options/index.d.ts +2 -2
  154. package/dist/components/options/item-content.d.ts +2 -2
  155. package/dist/components/options/item-description.d.ts +2 -2
  156. package/dist/components/options/item-label.d.ts +3 -2
  157. package/dist/components/options/item-label.js +20 -4
  158. package/dist/components/options/item-label.js.map +1 -1
  159. package/dist/components/options/item.d.ts +2 -2
  160. package/dist/components/options/section.d.ts +2 -2
  161. package/dist/components/options/styles.module.css +20 -0
  162. package/dist/components/pagination/context.d.ts +2 -2
  163. package/dist/components/pagination/pages.d.ts +2 -2
  164. package/dist/components/popover/content.d.ts +2 -2
  165. package/dist/components/popover/footer.d.ts +2 -2
  166. package/dist/components/popover/index.d.ts +2 -2
  167. package/dist/components/popover/title.d.ts +2 -2
  168. package/dist/components/popover/trigger.d.ts +2 -2
  169. package/dist/components/query-builder/action-element.d.ts +2 -2
  170. package/dist/components/query-builder/actions.d.ts +4 -4
  171. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  172. package/dist/components/query-builder/index.d.ts +2 -2
  173. package/dist/components/query-builder/rule-group.d.ts +4 -4
  174. package/dist/components/query-builder/rule.d.ts +2 -2
  175. package/dist/components/query-builder/value-editor.d.ts +2 -2
  176. package/dist/components/query-builder/value-selector.d.ts +2 -2
  177. package/dist/components/radio/context.d.ts +3 -3
  178. package/dist/components/radio/group.d.ts +2 -2
  179. package/dist/components/radio/index.d.ts +2 -2
  180. package/dist/components/search-field/context.d.ts +4 -4
  181. package/dist/components/search-field/index.d.ts +2 -2
  182. package/dist/components/select-field/context.d.ts +4 -4
  183. package/dist/components/select-field/index.d.ts +2 -2
  184. package/dist/components/sidenav/avatar.d.ts +2 -2
  185. package/dist/components/sidenav/content.d.ts +2 -2
  186. package/dist/components/sidenav/context.d.ts +2 -2
  187. package/dist/components/sidenav/footer.d.ts +2 -2
  188. package/dist/components/sidenav/header.d.ts +2 -2
  189. package/dist/components/sidenav/index.d.ts +2 -2
  190. package/dist/components/sidenav/item.d.ts +2 -2
  191. package/dist/components/sidenav/link.d.ts +2 -2
  192. package/dist/components/sidenav/menu-item.d.ts +2 -2
  193. package/dist/components/sidenav/menu.d.ts +2 -2
  194. package/dist/components/sidenav/trigger.d.ts +2 -2
  195. package/dist/components/sidenav/trigger.js +1 -1
  196. package/dist/components/sidenav/types.d.ts +1 -1
  197. package/dist/components/skeleton/index.d.ts +2 -2
  198. package/dist/components/slider/index.d.ts +2 -2
  199. package/dist/components/slider/styles.module.css +3 -2
  200. package/dist/components/status-indicator/index.d.ts +2 -2
  201. package/dist/components/switch/context.d.ts +4 -4
  202. package/dist/components/switch/index.d.ts +2 -2
  203. package/dist/components/table/body.d.ts +2 -2
  204. package/dist/components/table/cell.d.ts +2 -2
  205. package/dist/components/table/context.d.ts +2 -2
  206. package/dist/components/table/header-cell.d.ts +2 -2
  207. package/dist/components/table/header.d.ts +2 -2
  208. package/dist/components/table/index.d.ts +2 -2
  209. package/dist/components/table/row.d.ts +2 -2
  210. package/dist/components/tabs/context.d.ts +6 -6
  211. package/dist/components/tabs/index.d.ts +2 -2
  212. package/dist/components/tabs/list.d.ts +2 -2
  213. package/dist/components/tabs/panel.d.ts +2 -2
  214. package/dist/components/tabs/tab.d.ts +2 -2
  215. package/dist/components/text-area-field/context.d.ts +4 -4
  216. package/dist/components/text-area-field/index.d.ts +2 -2
  217. package/dist/components/text-field/context.d.ts +4 -4
  218. package/dist/components/text-field/index.d.ts +2 -2
  219. package/dist/components/time-field/index.d.ts +2 -2
  220. package/dist/components/tooltip/index.d.ts +2 -2
  221. package/dist/components/tooltip/trigger.d.ts +2 -2
  222. package/dist/components/tooltip/trigger.js +1 -1
  223. package/dist/components/tree/index.d.ts +2 -2
  224. package/dist/components/tree/index.js +6 -4
  225. package/dist/components/tree/index.js.map +1 -1
  226. package/dist/components/tree/item-actions.d.ts +2 -2
  227. package/dist/components/tree/item-content.d.ts +2 -2
  228. package/dist/components/tree/item-content.js +9 -5
  229. package/dist/components/tree/item-content.js.map +1 -1
  230. package/dist/components/tree/item-description.d.ts +2 -2
  231. package/dist/components/tree/item-label.d.ts +2 -2
  232. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  233. package/dist/components/tree/item.d.ts +2 -2
  234. package/dist/components/tree/lines.d.ts +4 -2
  235. package/dist/components/tree/lines.js +8 -4
  236. package/dist/components/tree/lines.js.map +1 -1
  237. package/dist/components/tree/styles.module.css +23 -3
  238. package/dist/components/video/index.d.ts +2 -2
  239. package/dist/components/view-stack/context.d.ts +2 -2
  240. package/dist/components/view-stack/index.d.ts +2 -2
  241. package/dist/components/view-stack/index.js +1 -1
  242. package/dist/components/view-stack/trigger.d.ts +2 -2
  243. package/dist/components/view-stack/types.d.ts +1 -1
  244. package/dist/components/view-stack/view.d.ts +2 -2
  245. package/dist/hooks/use-tree/state/index.js +7 -14
  246. package/dist/hooks/use-tree/state/index.js.map +1 -1
  247. package/dist/index.js +3 -3
  248. package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js +134 -0
  249. package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js.map +1 -0
  250. package/dist/providers/portal.js +1 -1
  251. package/dist/providers/theme-provider.d.ts +2 -2
  252. package/package.json +14 -9
@@ -31,6 +31,8 @@ import { PopoverContent } from "../popover/content.js";
31
31
  import { PopoverTitle } from "../popover/title.js";
32
32
  import { Radio as Radio$1 } from "../radio/index.js";
33
33
  import { RadioGroup as RadioGroup$1 } from "../radio/group.js";
34
+ import { Tooltip as Tooltip$1 } from "../tooltip/index.js";
35
+ import { TooltipTrigger as TooltipTrigger$1 } from "../tooltip/trigger.js";
34
36
  import { CoordinateSegment } from "./segment.js";
35
37
  import { calculateMinControlWidth } from "./width-utils.js";
36
38
  import "client-only";
@@ -39,9 +41,9 @@ import { clsx } from "@accelint/design-foundation/lib/utils";
39
41
  import { FieldError, FieldErrorContext, GroupContext, LabelContext, Provider, Text, TextContext, composeRenderProps, useContextProps } from "react-aria-components";
40
42
  import { jsx, jsxs } from "react/jsx-runtime";
41
43
  import Check from "@accelint/icons/check";
44
+ import { filterDOMProps } from "@react-aria/utils";
42
45
  import CopyToClipboard from "@accelint/icons/copy-to-clipboard";
43
46
  import GlobalShare from "@accelint/icons/global-share";
44
- import { filterDOMProps } from "@react-aria/utils";
45
47
  import styles from "./styles.module.css";
46
48
 
47
49
  //#region src/components/coordinate-field/index.tsx
@@ -132,7 +134,7 @@ import styles from "./styles.module.css";
132
134
  */
133
135
  function CoordinateField({ ref, ...props }) {
134
136
  [props, ref] = useContextProps(props, ref, CoordinateFieldContext);
135
- const { classNames, description: descriptionProp, label: labelProp, format = "dd", size = "medium", variant = "inline", showFormatButton = true, isDisabled = false, isInvalid: isInvalidProp = false, isRequired = false, isReadOnly = false, ...rest } = props;
137
+ const { classNames, description: descriptionProp, label: labelProp, format = "dd", size = "medium", variant = "inline", showFormatButton = true, formatButtonTooltip = "View/copy other formats", isDisabled = false, isInvalid: isInvalidProp = false, isRequired = false, isReadOnly = false, ...rest } = props;
136
138
  const isSmall = size === "small";
137
139
  const DOMProps = filterDOMProps(rest, { global: true });
138
140
  const ariaLabelForSmallSize = isSmall && labelProp ? labelProp : rest["aria-label"];
@@ -150,7 +152,9 @@ function CoordinateField({ ref, ...props }) {
150
152
  registerTimeout
151
153
  };
152
154
  const [allCoordinateFormats, setAllCoordinateFormats] = useState(null);
155
+ const [isPopoverOpen, setIsPopoverOpen] = useState(false);
153
156
  const handlePopoverOpenChange = useCallback((isOpen) => {
157
+ setIsPopoverOpen(isOpen);
154
158
  if (isOpen) setAllCoordinateFormats(getAllCoordinateFormats(state.currentValue));
155
159
  }, [state.currentValue]);
156
160
  const minControlWidth = useMemo(() => calculateMinControlWidth(state.editableSegmentConfigs, state.segmentConfigs, showFormatButton), [
@@ -235,47 +239,50 @@ function CoordinateField({ ref, ...props }) {
235
239
  className: clsx(styles.segmentGroup, styles[variant]),
236
240
  children: group
237
241
  }, `${format}-group-${groupIndex}`))
238
- }), showFormatButton && /* @__PURE__ */ jsxs(DialogTrigger$1, {
239
- onOpenChange: handlePopoverOpenChange,
240
- children: [/* @__PURE__ */ jsx(Button$1, {
241
- variant: "icon",
242
- size: "small",
243
- color: "mono-bold",
244
- className: clsx(styles.formatButton, classNames?.formatButton),
245
- "aria-label": "View coordinate in all formats",
246
- isDisabled: !copy.isFormatButtonEnabled,
247
- children: /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(GlobalShare, {}) })
248
- }), /* @__PURE__ */ jsxs(Popover$1, {
249
- classNames: { popover: styles.popover },
250
- children: [/* @__PURE__ */ jsx(PopoverTitle, {
251
- className: styles.popoverTitle,
252
- children: "Copy Coordinates"
253
- }), /* @__PURE__ */ jsx(PopoverContent, { children: allCoordinateFormats && COORDINATE_SYSTEMS.map((formatKey) => {
254
- const formatResult = allCoordinateFormats[formatKey];
255
- const isCopied = copy.copiedFormat === formatKey;
256
- return /* @__PURE__ */ jsxs("div", {
257
- className: styles.formatRow,
258
- children: [/* @__PURE__ */ jsxs("div", {
259
- className: styles.formatLabels,
260
- children: [/* @__PURE__ */ jsx("span", {
261
- className: styles.formatLabel,
262
- children: COORDINATE_FORMAT_LABELS[formatKey]
263
- }), /* @__PURE__ */ jsx("span", {
264
- className: styles.formatValue,
265
- title: formatResult.value,
266
- children: formatResult.value
242
+ }), showFormatButton && /* @__PURE__ */ jsxs(TooltipTrigger$1, {
243
+ isDisabled: isPopoverOpen,
244
+ children: [/* @__PURE__ */ jsxs(DialogTrigger$1, {
245
+ onOpenChange: handlePopoverOpenChange,
246
+ children: [/* @__PURE__ */ jsx(Button$1, {
247
+ variant: "icon",
248
+ size: "small",
249
+ color: "mono-bold",
250
+ className: clsx(styles.formatButton, classNames?.formatButton),
251
+ "aria-label": "View coordinate in all formats",
252
+ isDisabled: !copy.isFormatButtonEnabled,
253
+ children: /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(GlobalShare, {}) })
254
+ }), /* @__PURE__ */ jsxs(Popover$1, {
255
+ classNames: { popover: styles.popover },
256
+ children: [/* @__PURE__ */ jsx(PopoverTitle, {
257
+ className: styles.popoverTitle,
258
+ children: "Copy Coordinates"
259
+ }), /* @__PURE__ */ jsx(PopoverContent, { children: allCoordinateFormats && COORDINATE_SYSTEMS.map((formatKey) => {
260
+ const formatResult = allCoordinateFormats[formatKey];
261
+ const isCopied = copy.copiedFormat === formatKey;
262
+ return /* @__PURE__ */ jsxs("div", {
263
+ className: styles.formatRow,
264
+ children: [/* @__PURE__ */ jsxs("div", {
265
+ className: styles.formatLabels,
266
+ children: [/* @__PURE__ */ jsx("span", {
267
+ className: styles.formatLabel,
268
+ children: COORDINATE_FORMAT_LABELS[formatKey]
269
+ }), /* @__PURE__ */ jsx("span", {
270
+ className: styles.formatValue,
271
+ title: formatResult.value,
272
+ children: formatResult.value
273
+ })]
274
+ }), /* @__PURE__ */ jsx(Button$1, {
275
+ variant: "icon",
276
+ color: "mono-bold",
277
+ "aria-label": `Copy ${COORDINATE_FORMAT_LABELS[formatKey]} format`,
278
+ onPress: () => copy.handleCopyFormat(formatKey),
279
+ isDisabled: !formatResult.isValid,
280
+ children: /* @__PURE__ */ jsx(Icon, { children: isCopied ? /* @__PURE__ */ jsx(Check, {}) : /* @__PURE__ */ jsx(CopyToClipboard, {}) })
267
281
  })]
268
- }), /* @__PURE__ */ jsx(Button$1, {
269
- variant: "icon",
270
- color: "mono-bold",
271
- "aria-label": `Copy ${COORDINATE_FORMAT_LABELS[formatKey]} format`,
272
- onPress: () => copy.handleCopyFormat(formatKey),
273
- isDisabled: !formatResult.isValid,
274
- children: /* @__PURE__ */ jsx(Icon, { children: isCopied ? /* @__PURE__ */ jsx(Check, {}) : /* @__PURE__ */ jsx(CopyToClipboard, {}) })
275
- })]
276
- }, formatKey);
277
- }) })]
278
- })]
282
+ }, formatKey);
283
+ }) })]
284
+ })]
285
+ }), /* @__PURE__ */ jsx(Tooltip$1, { children: formatButtonTooltip })]
279
286
  })]
280
287
  }),
281
288
  descriptionProp && !isSmall && (!isInvalid || isDisabled) && /* @__PURE__ */ jsx(Text, {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Label","DialogTrigger","Button","Popover","AriaText","Dialog","RadioGroup","Radio"],"sources":["../../../src/components/coordinate-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport Check from '@accelint/icons/check';\nimport CopyToClipboard from '@accelint/icons/copy-to-clipboard';\nimport GlobalShare from '@accelint/icons/global-share';\nimport { filterDOMProps } from '@react-aria/utils';\nimport 'client-only';\nimport {\n type CSSProperties,\n type ReactNode,\n useCallback,\n useMemo,\n useState,\n} from 'react';\nimport {\n Text as AriaText,\n composeRenderProps,\n FieldError,\n FieldErrorContext,\n GroupContext,\n LabelContext,\n Provider,\n TextContext,\n useContextProps,\n} from 'react-aria-components';\nimport { useCoordinateField } from '../../hooks/coordinate-field';\nimport { Button } from '../button';\nimport { Dialog } from '../dialog';\nimport { DialogContent } from '../dialog/content';\nimport { DialogFooter } from '../dialog/footer';\nimport { DialogTitle } from '../dialog/title';\nimport { DialogTrigger } from '../dialog/trigger';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { Popover } from '../popover';\nimport { PopoverContent } from '../popover/content';\nimport { PopoverTitle } from '../popover/title';\nimport { Radio } from '../radio';\nimport { RadioGroup } from '../radio/group';\nimport { CoordinateFieldContext, CoordinateFieldStateContext } from './context';\nimport {\n type CoordinateFormatResult,\n getAllCoordinateFormats,\n} from './coordinate-utils';\nimport { CoordinateSegment } from './segment';\nimport { GROUP_SEPARATOR, getSegmentLabel } from './segment-configs';\nimport styles from './styles.module.css';\nimport {\n COORDINATE_FORMAT_LABELS,\n COORDINATE_FORMAT_NAMES,\n COORDINATE_SYSTEMS,\n type CoordinateSystem,\n} from './types';\nimport { calculateMinControlWidth } from './width-utils';\nimport type { CoordinateFieldProps } from './types';\n\n/**\n * CoordinateField - A comprehensive coordinate input component with multiple format support\n *\n * Provides accessible coordinate input functionality with support for multiple coordinate\n * systems (DD, DDM, DMS, MGRS, UTM). All values are normalized to Decimal Degrees internally\n * for consistency.\n *\n * @param props - The coordinate field props.\n * @param props.ref - Reference to the coordinate field element.\n * @param props.classNames - Custom class names for sub-elements.\n * @param props.description - Description text displayed below the field.\n * @param props.label - Label text for the coordinate field.\n * @param props.format - Coordinate format to use (dd, ddm, dms, mgrs, utm).\n * @param props.size - Size variant of the field.\n * @param props.variant - Layout variant (inline or stacked).\n * @param props.showFormatButton - Whether to show the format conversion button.\n * @param props.isDisabled - Whether the field is disabled.\n * @param props.isInvalid - Whether the field is in an invalid state.\n * @param props.isRequired - Whether the field is required.\n * @param props.isReadOnly - Whether the field is read-only.\n * @returns The coordinate field component.\n *\n * @example\n * ```tsx\n * // Basic coordinate field\n * <CoordinateField label=\"Location\" />\n * ```\n *\n * @example\n * ```tsx\n * // Coordinate field with validation\n * <CoordinateField\n * label=\"Target Coordinates\"\n * isRequired\n * isInvalid={hasError}\n * errorMessage=\"Please enter a valid coordinate\"\n * />\n * ```\n *\n * @example\n * ```tsx\n * // Coordinate field with specific format\n * <CoordinateField\n * label=\"Position\"\n * format=\"dms\"\n * description=\"Enter coordinates in Degrees Minutes Seconds format\"\n * />\n * ```\n *\n * @example\n * ```tsx\n * // Compact coordinate field\n * <CoordinateField\n * label=\"Coordinates\"\n * size=\"small\"\n * format=\"dd\"\n * />\n * ```\n *\n * @example\n * ```tsx\n * // Controlled coordinate field\n * <CoordinateField\n * label=\"Selected Location\"\n * value={coordinates}\n * onChange={setCoordinates}\n * />\n * ```\n *\n * @example\n * ```tsx\n * // Coordinate field with error handling\n * <CoordinateField\n * label=\"Target Coordinates\"\n * onError={(message, context) => {\n * // message will be \"Invalid coordinate value\" for validation errors\n * // or \"Invalid coordinate format\" for paste errors\n * setErrorMessage(message);\n * console.error(message, context);\n * }}\n * isInvalid={!!errorMessage}\n * errorMessage={errorMessage}\n * />\n * ```\n */\nexport function CoordinateField({ ref, ...props }: CoordinateFieldProps) {\n [props, ref] = useContextProps(props, ref, CoordinateFieldContext);\n\n const {\n classNames,\n description: descriptionProp,\n label: labelProp,\n format = 'dd',\n size = 'medium',\n variant = 'inline',\n showFormatButton = true,\n isDisabled = false,\n isInvalid: isInvalidProp = false,\n isRequired = false,\n isReadOnly = false,\n ...rest\n } = props;\n\n const isSmall = size === 'small';\n\n const DOMProps = filterDOMProps(rest, { global: true });\n\n // When size is small and label is hidden, use aria-label instead of aria-labelledby\n // to ensure screen readers have an accessible name\n const ariaLabelForSmallSize =\n isSmall && labelProp ? labelProp : rest['aria-label'];\n\n const {\n state,\n focus,\n paste,\n copy,\n registerTimeout,\n fieldProps,\n labelProps,\n descriptionProps,\n errorProps,\n validation,\n effectiveErrorMessage,\n isInvalid,\n } = useCoordinateField(\n props,\n ariaLabelForSmallSize,\n rest['aria-describedby'],\n rest['aria-details'],\n );\n\n const componentState = {\n segmentValues: state.segmentValues,\n format,\n currentValue: state.currentValue,\n validationErrors: state.validationErrors,\n isDisabled,\n isInvalid,\n isRequired,\n size,\n variant,\n registerTimeout,\n };\n\n // Store all coordinate formats, calculated only when popover opens\n const [allCoordinateFormats, setAllCoordinateFormats] = useState<Record<\n CoordinateSystem,\n CoordinateFormatResult\n > | null>(null);\n\n const handlePopoverOpenChange = useCallback(\n (isOpen: boolean) => {\n if (isOpen) {\n setAllCoordinateFormats(getAllCoordinateFormats(state.currentValue));\n }\n },\n [state.currentValue],\n );\n\n // Calculate the minimum width needed for the control container\n // This keeps the outlined container at a fixed width while segments animate\n const minControlWidth = useMemo(\n () =>\n calculateMinControlWidth(\n state.editableSegmentConfigs,\n state.segmentConfigs,\n showFormatButton,\n ),\n [state.editableSegmentConfigs, state.segmentConfigs, showFormatButton],\n );\n\n return (\n <Provider\n values={[\n [CoordinateFieldContext, props],\n [CoordinateFieldStateContext, componentState],\n [GroupContext, fieldProps],\n [LabelContext, labelProps],\n [\n TextContext,\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorProps,\n },\n },\n ],\n [FieldErrorContext, validation],\n ]}\n >\n <div\n {...DOMProps}\n {...fieldProps}\n ref={ref}\n className={clsx(\n 'group/coordinate-field',\n styles.field,\n classNames?.field,\n )}\n data-size={size}\n data-disabled={isDisabled || null}\n data-invalid={isInvalid || null}\n >\n {!isSmall && labelProp && (\n <Label\n className={classNames?.label}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {labelProp}\n </Label>\n )}\n\n <div\n style={\n {\n '--min-width': variant === 'stacked' ? 'unset' : minControlWidth,\n } as CSSProperties\n }\n className={clsx(styles.control, classNames?.control)}\n data-readonly={isReadOnly || null}\n >\n <div\n className={clsx(styles.input, styles[variant], classNames?.input)}\n onPasteCapture={paste.handleInputPaste}\n data-input-container\n >\n {state.segmentConfigs\n .reduce<ReactNode[][]>(\n (acc, config, configIndex) => {\n const currentGroupIndex = acc.length - 1;\n\n if (\n config.value === GROUP_SEPARATOR &&\n variant === 'stacked'\n ) {\n acc.push([]);\n\n return acc;\n }\n\n if (config.type === 'literal') {\n acc[currentGroupIndex]?.push(\n <span\n key={`${format}-literal-${configIndex}-${config.value}`}\n className={styles.literal}\n >\n {config.value}\n </span>,\n );\n\n return acc;\n }\n\n const editableIndex = state.segmentConfigs\n .slice(0, configIndex)\n .filter((c) => c.type !== 'literal').length;\n\n acc[currentGroupIndex]?.push(\n <CoordinateSegment\n key={`${format}-segment-${editableIndex}`}\n value={state.segmentValues[editableIndex] || ''}\n onChange={(newValue) =>\n state.handleSegmentChange(editableIndex, newValue)\n }\n onFocus={() =>\n focus.setFocusedSegmentIndex(editableIndex)\n }\n onBlur={() => {\n focus.setFocusedSegmentIndex(-1);\n state.flushPendingValidation();\n }}\n onKeyDown={(e) =>\n focus.handleSegmentKeyDown(editableIndex, e)\n }\n onAutoAdvance={() =>\n focus.focusNextSegment(editableIndex)\n }\n onAutoRetreat={() =>\n focus.focusPreviousSegment(editableIndex)\n }\n placeholder={config.placeholder}\n maxLength={config.maxLength}\n pad={config.pad}\n className={clsx(styles.segment, classNames?.segment)}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n allowedChars={config.allowedChars}\n segmentRef={focus.segmentRefs[editableIndex]}\n segmentIndex={editableIndex}\n totalSegments={state.editableSegmentConfigs.length}\n ariaLabel={getSegmentLabel(format, editableIndex)}\n />,\n );\n\n return acc;\n },\n [[]],\n )\n .map((group, groupIndex) => (\n <div\n className={clsx(styles.segmentGroup, styles[variant])}\n key={`${format}-group-${\n // biome-ignore lint/suspicious/noArrayIndexKey: intentional\n groupIndex\n }`}\n >\n {group}\n </div>\n ))}\n </div>\n\n {showFormatButton && (\n <DialogTrigger onOpenChange={handlePopoverOpenChange}>\n <Button\n variant='icon'\n size='small'\n color='mono-bold'\n className={clsx(styles.formatButton, classNames?.formatButton)}\n aria-label='View coordinate in all formats'\n isDisabled={!copy.isFormatButtonEnabled}\n >\n <Icon>\n <GlobalShare />\n </Icon>\n </Button>\n <Popover classNames={{ popover: styles.popover }}>\n <PopoverTitle className={styles.popoverTitle}>\n Copy Coordinates\n </PopoverTitle>\n <PopoverContent>\n {allCoordinateFormats &&\n COORDINATE_SYSTEMS.map((formatKey) => {\n const formatResult = allCoordinateFormats[formatKey];\n const isCopied = copy.copiedFormat === formatKey;\n\n return (\n <div key={formatKey} className={styles.formatRow}>\n <div className={styles.formatLabels}>\n <span className={styles.formatLabel}>\n {COORDINATE_FORMAT_LABELS[formatKey]}\n </span>\n <span\n className={styles.formatValue}\n title={formatResult.value}\n >\n {formatResult.value}\n </span>\n </div>\n <Button\n variant='icon'\n color='mono-bold'\n aria-label={`Copy ${COORDINATE_FORMAT_LABELS[formatKey]} format`}\n onPress={() => copy.handleCopyFormat(formatKey)}\n isDisabled={!formatResult.isValid}\n >\n <Icon>\n {isCopied ? <Check /> : <CopyToClipboard />}\n </Icon>\n </Button>\n </div>\n );\n })}\n </PopoverContent>\n </Popover>\n </DialogTrigger>\n )}\n </div>\n\n {/* Description is hidden when field is invalid (unless disabled) to make room for error message */}\n {descriptionProp && !isSmall && (!isInvalid || isDisabled) && (\n <AriaText\n className={clsx(styles.description, classNames?.description)}\n slot='description'\n >\n {descriptionProp}\n </AriaText>\n )}\n\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {effectiveErrorMessage}\n </FieldError>\n\n <DialogTrigger\n isOpen={paste.showDisambiguationModal}\n onOpenChange={paste.setShowDisambiguationModal}\n >\n <Button className={styles.hiddenTrigger}>Hidden Trigger</Button>\n <Dialog size='small'>\n <DialogTitle className={styles.modalTitle}>\n Select Coordinate Format\n </DialogTitle>\n <DialogContent>\n <p className={styles.modalDescription}>\n The pasted value matches multiple coordinate formats. Please\n select the correct interpretation:\n </p>\n\n <RadioGroup\n classNames={{ group: styles.formatOptions }}\n value={paste.selectedDisambiguationFormat}\n onChange={(value) =>\n paste.setSelectedDisambiguationFormat(\n value as CoordinateSystem,\n )\n }\n >\n {paste.disambiguationMatches.map((match) => (\n <Radio key={match.format} value={match.format}>\n <div className={styles.modalOptionContent}>\n <span className={styles.formatOptionLabel}>\n {COORDINATE_FORMAT_NAMES[match.format]}\n </span>\n <span className={styles.formatOptionValue}>\n {match.displayString}\n </span>\n </div>\n </Radio>\n ))}\n </RadioGroup>\n </DialogContent>\n <DialogFooter className={styles.modalActions}>\n <Button\n variant='flat'\n onPress={() => paste.setShowDisambiguationModal(false)}\n >\n Cancel\n </Button>\n <Button onPress={paste.handleDisambiguationSelect}>\n Apply Selected\n </Button>\n </DialogFooter>\n </Dialog>\n </DialogTrigger>\n </div>\n </Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0JA,SAAgB,gBAAgB,EAAE,KAAK,GAAG,SAA+B;AACvE,EAAC,OAAO,OAAO,gBAAgB,OAAO,KAAK,uBAAuB;CAElE,MAAM,EACJ,YACA,aAAa,iBACb,OAAO,WACP,SAAS,MACT,OAAO,UACP,UAAU,UACV,mBAAmB,MACnB,aAAa,OACb,WAAW,gBAAgB,OAC3B,aAAa,OACb,aAAa,OACb,GAAG,SACD;CAEJ,MAAM,UAAU,SAAS;CAEzB,MAAM,WAAW,eAAe,MAAM,EAAE,QAAQ,MAAM,CAAC;CAIvD,MAAM,wBACJ,WAAW,YAAY,YAAY,KAAK;CAE1C,MAAM,EACJ,OACA,OACA,OACA,MACA,iBACA,YACA,YACA,kBACA,YACA,YACA,uBACA,cACE,mBACF,OACA,uBACA,KAAK,qBACL,KAAK,gBACN;CAED,MAAM,iBAAiB;EACrB,eAAe,MAAM;EACrB;EACA,cAAc,MAAM;EACpB,kBAAkB,MAAM;EACxB;EACA;EACA;EACA;EACA;EACA;EACD;CAGD,MAAM,CAAC,sBAAsB,2BAA2B,SAG9C,KAAK;CAEf,MAAM,0BAA0B,aAC7B,WAAoB;AACnB,MAAI,OACF,yBAAwB,wBAAwB,MAAM,aAAa,CAAC;IAGxE,CAAC,MAAM,aAAa,CACrB;CAID,MAAM,kBAAkB,cAEpB,yBACE,MAAM,wBACN,MAAM,gBACN,iBACD,EAC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","DialogTrigger","Button","Popover","Tooltip","AriaText","Dialog","RadioGroup","Radio"],"sources":["../../../src/components/coordinate-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport Check from '@accelint/icons/check';\nimport CopyToClipboard from '@accelint/icons/copy-to-clipboard';\nimport GlobalShare from '@accelint/icons/global-share';\nimport { filterDOMProps } from '@react-aria/utils';\nimport 'client-only';\nimport {\n type CSSProperties,\n type ReactNode,\n useCallback,\n useMemo,\n useState,\n} from 'react';\nimport {\n Text as AriaText,\n composeRenderProps,\n FieldError,\n FieldErrorContext,\n GroupContext,\n LabelContext,\n Provider,\n TextContext,\n useContextProps,\n} from 'react-aria-components';\nimport { useCoordinateField } from '../../hooks/coordinate-field';\nimport { Button } from '../button';\nimport { Dialog } from '../dialog';\nimport { DialogContent } from '../dialog/content';\nimport { DialogFooter } from '../dialog/footer';\nimport { DialogTitle } from '../dialog/title';\nimport { DialogTrigger } from '../dialog/trigger';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { Popover } from '../popover';\nimport { PopoverContent } from '../popover/content';\nimport { PopoverTitle } from '../popover/title';\nimport { Radio } from '../radio';\nimport { RadioGroup } from '../radio/group';\nimport { Tooltip } from '../tooltip';\nimport { TooltipTrigger } from '../tooltip/trigger';\nimport { CoordinateFieldContext, CoordinateFieldStateContext } from './context';\nimport {\n type CoordinateFormatResult,\n getAllCoordinateFormats,\n} from './coordinate-utils';\nimport { CoordinateSegment } from './segment';\nimport { GROUP_SEPARATOR, getSegmentLabel } from './segment-configs';\nimport styles from './styles.module.css';\nimport {\n COORDINATE_FORMAT_LABELS,\n COORDINATE_FORMAT_NAMES,\n COORDINATE_SYSTEMS,\n type CoordinateSystem,\n} from './types';\nimport { calculateMinControlWidth } from './width-utils';\nimport type { CoordinateFieldProps } from './types';\n\n/**\n * CoordinateField - A comprehensive coordinate input component with multiple format support\n *\n * Provides accessible coordinate input functionality with support for multiple coordinate\n * systems (DD, DDM, DMS, MGRS, UTM). All values are normalized to Decimal Degrees internally\n * for consistency.\n *\n * @param props - The coordinate field props.\n * @param props.ref - Reference to the coordinate field element.\n * @param props.classNames - Custom class names for sub-elements.\n * @param props.description - Description text displayed below the field.\n * @param props.label - Label text for the coordinate field.\n * @param props.format - Coordinate format to use (dd, ddm, dms, mgrs, utm).\n * @param props.size - Size variant of the field.\n * @param props.variant - Layout variant (inline or stacked).\n * @param props.showFormatButton - Whether to show the format conversion button.\n * @param props.isDisabled - Whether the field is disabled.\n * @param props.isInvalid - Whether the field is in an invalid state.\n * @param props.isRequired - Whether the field is required.\n * @param props.isReadOnly - Whether the field is read-only.\n * @returns The coordinate field component.\n *\n * @example\n * ```tsx\n * // Basic coordinate field\n * <CoordinateField label=\"Location\" />\n * ```\n *\n * @example\n * ```tsx\n * // Coordinate field with validation\n * <CoordinateField\n * label=\"Target Coordinates\"\n * isRequired\n * isInvalid={hasError}\n * errorMessage=\"Please enter a valid coordinate\"\n * />\n * ```\n *\n * @example\n * ```tsx\n * // Coordinate field with specific format\n * <CoordinateField\n * label=\"Position\"\n * format=\"dms\"\n * description=\"Enter coordinates in Degrees Minutes Seconds format\"\n * />\n * ```\n *\n * @example\n * ```tsx\n * // Compact coordinate field\n * <CoordinateField\n * label=\"Coordinates\"\n * size=\"small\"\n * format=\"dd\"\n * />\n * ```\n *\n * @example\n * ```tsx\n * // Controlled coordinate field\n * <CoordinateField\n * label=\"Selected Location\"\n * value={coordinates}\n * onChange={setCoordinates}\n * />\n * ```\n *\n * @example\n * ```tsx\n * // Coordinate field with error handling\n * <CoordinateField\n * label=\"Target Coordinates\"\n * onError={(message, context) => {\n * // message will be \"Invalid coordinate value\" for validation errors\n * // or \"Invalid coordinate format\" for paste errors\n * setErrorMessage(message);\n * console.error(message, context);\n * }}\n * isInvalid={!!errorMessage}\n * errorMessage={errorMessage}\n * />\n * ```\n */\nexport function CoordinateField({ ref, ...props }: CoordinateFieldProps) {\n [props, ref] = useContextProps(props, ref, CoordinateFieldContext);\n\n const {\n classNames,\n description: descriptionProp,\n label: labelProp,\n format = 'dd',\n size = 'medium',\n variant = 'inline',\n showFormatButton = true,\n formatButtonTooltip = 'View/copy other formats',\n isDisabled = false,\n isInvalid: isInvalidProp = false,\n isRequired = false,\n isReadOnly = false,\n ...rest\n } = props;\n\n const isSmall = size === 'small';\n\n const DOMProps = filterDOMProps(rest, { global: true });\n\n // When size is small and label is hidden, use aria-label instead of aria-labelledby\n // to ensure screen readers have an accessible name\n const ariaLabelForSmallSize =\n isSmall && labelProp ? labelProp : rest['aria-label'];\n\n const {\n state,\n focus,\n paste,\n copy,\n registerTimeout,\n fieldProps,\n labelProps,\n descriptionProps,\n errorProps,\n validation,\n effectiveErrorMessage,\n isInvalid,\n } = useCoordinateField(\n props,\n ariaLabelForSmallSize,\n rest['aria-describedby'],\n rest['aria-details'],\n );\n\n const componentState = {\n segmentValues: state.segmentValues,\n format,\n currentValue: state.currentValue,\n validationErrors: state.validationErrors,\n isDisabled,\n isInvalid,\n isRequired,\n size,\n variant,\n registerTimeout,\n };\n\n // Store all coordinate formats, calculated only when popover opens\n const [allCoordinateFormats, setAllCoordinateFormats] = useState<Record<\n CoordinateSystem,\n CoordinateFormatResult\n > | null>(null);\n\n // Track popover open state so tooltip hides when popover is open\n const [isPopoverOpen, setIsPopoverOpen] = useState(false);\n\n const handlePopoverOpenChange = useCallback(\n (isOpen: boolean) => {\n setIsPopoverOpen(isOpen);\n if (isOpen) {\n setAllCoordinateFormats(getAllCoordinateFormats(state.currentValue));\n }\n },\n [state.currentValue],\n );\n\n // Calculate the minimum width needed for the control container\n // This keeps the outlined container at a fixed width while segments animate\n const minControlWidth = useMemo(\n () =>\n calculateMinControlWidth(\n state.editableSegmentConfigs,\n state.segmentConfigs,\n showFormatButton,\n ),\n [state.editableSegmentConfigs, state.segmentConfigs, showFormatButton],\n );\n\n return (\n <Provider\n values={[\n [CoordinateFieldContext, props],\n [CoordinateFieldStateContext, componentState],\n [GroupContext, fieldProps],\n [LabelContext, labelProps],\n [\n TextContext,\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorProps,\n },\n },\n ],\n [FieldErrorContext, validation],\n ]}\n >\n <div\n {...DOMProps}\n {...fieldProps}\n ref={ref}\n className={clsx(\n 'group/coordinate-field',\n styles.field,\n classNames?.field,\n )}\n data-size={size}\n data-disabled={isDisabled || null}\n data-invalid={isInvalid || null}\n >\n {!isSmall && labelProp && (\n <Label\n className={classNames?.label}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {labelProp}\n </Label>\n )}\n\n <div\n style={\n {\n '--min-width': variant === 'stacked' ? 'unset' : minControlWidth,\n } as CSSProperties\n }\n className={clsx(styles.control, classNames?.control)}\n data-readonly={isReadOnly || null}\n >\n <div\n className={clsx(styles.input, styles[variant], classNames?.input)}\n onPasteCapture={paste.handleInputPaste}\n data-input-container\n >\n {state.segmentConfigs\n .reduce<ReactNode[][]>(\n (acc, config, configIndex) => {\n const currentGroupIndex = acc.length - 1;\n\n if (\n config.value === GROUP_SEPARATOR &&\n variant === 'stacked'\n ) {\n acc.push([]);\n\n return acc;\n }\n\n if (config.type === 'literal') {\n acc[currentGroupIndex]?.push(\n <span\n key={`${format}-literal-${configIndex}-${config.value}`}\n className={styles.literal}\n >\n {config.value}\n </span>,\n );\n\n return acc;\n }\n\n const editableIndex = state.segmentConfigs\n .slice(0, configIndex)\n .filter((c) => c.type !== 'literal').length;\n\n acc[currentGroupIndex]?.push(\n <CoordinateSegment\n key={`${format}-segment-${editableIndex}`}\n value={state.segmentValues[editableIndex] || ''}\n onChange={(newValue) =>\n state.handleSegmentChange(editableIndex, newValue)\n }\n onFocus={() =>\n focus.setFocusedSegmentIndex(editableIndex)\n }\n onBlur={() => {\n focus.setFocusedSegmentIndex(-1);\n state.flushPendingValidation();\n }}\n onKeyDown={(e) =>\n focus.handleSegmentKeyDown(editableIndex, e)\n }\n onAutoAdvance={() =>\n focus.focusNextSegment(editableIndex)\n }\n onAutoRetreat={() =>\n focus.focusPreviousSegment(editableIndex)\n }\n placeholder={config.placeholder}\n maxLength={config.maxLength}\n pad={config.pad}\n className={clsx(styles.segment, classNames?.segment)}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n allowedChars={config.allowedChars}\n segmentRef={focus.segmentRefs[editableIndex]}\n segmentIndex={editableIndex}\n totalSegments={state.editableSegmentConfigs.length}\n ariaLabel={getSegmentLabel(format, editableIndex)}\n />,\n );\n\n return acc;\n },\n [[]],\n )\n .map((group, groupIndex) => (\n <div\n className={clsx(styles.segmentGroup, styles[variant])}\n key={`${format}-group-${\n // biome-ignore lint/suspicious/noArrayIndexKey: intentional\n groupIndex\n }`}\n >\n {group}\n </div>\n ))}\n </div>\n\n {showFormatButton && (\n <TooltipTrigger isDisabled={isPopoverOpen}>\n <DialogTrigger onOpenChange={handlePopoverOpenChange}>\n <Button\n variant='icon'\n size='small'\n color='mono-bold'\n className={clsx(\n styles.formatButton,\n classNames?.formatButton,\n )}\n aria-label='View coordinate in all formats'\n isDisabled={!copy.isFormatButtonEnabled}\n >\n <Icon>\n <GlobalShare />\n </Icon>\n </Button>\n <Popover classNames={{ popover: styles.popover }}>\n <PopoverTitle className={styles.popoverTitle}>\n Copy Coordinates\n </PopoverTitle>\n <PopoverContent>\n {allCoordinateFormats &&\n COORDINATE_SYSTEMS.map((formatKey) => {\n const formatResult = allCoordinateFormats[formatKey];\n const isCopied = copy.copiedFormat === formatKey;\n\n return (\n <div key={formatKey} className={styles.formatRow}>\n <div className={styles.formatLabels}>\n <span className={styles.formatLabel}>\n {COORDINATE_FORMAT_LABELS[formatKey]}\n </span>\n <span\n className={styles.formatValue}\n title={formatResult.value}\n >\n {formatResult.value}\n </span>\n </div>\n <Button\n variant='icon'\n color='mono-bold'\n aria-label={`Copy ${COORDINATE_FORMAT_LABELS[formatKey]} format`}\n onPress={() => copy.handleCopyFormat(formatKey)}\n isDisabled={!formatResult.isValid}\n >\n <Icon>\n {isCopied ? <Check /> : <CopyToClipboard />}\n </Icon>\n </Button>\n </div>\n );\n })}\n </PopoverContent>\n </Popover>\n </DialogTrigger>\n <Tooltip>{formatButtonTooltip}</Tooltip>\n </TooltipTrigger>\n )}\n </div>\n\n {/* Description is hidden when field is invalid (unless disabled) to make room for error message */}\n {descriptionProp && !isSmall && (!isInvalid || isDisabled) && (\n <AriaText\n className={clsx(styles.description, classNames?.description)}\n slot='description'\n >\n {descriptionProp}\n </AriaText>\n )}\n\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {effectiveErrorMessage}\n </FieldError>\n\n <DialogTrigger\n isOpen={paste.showDisambiguationModal}\n onOpenChange={paste.setShowDisambiguationModal}\n >\n <Button className={styles.hiddenTrigger}>Hidden Trigger</Button>\n <Dialog size='small'>\n <DialogTitle className={styles.modalTitle}>\n Select Coordinate Format\n </DialogTitle>\n <DialogContent>\n <p className={styles.modalDescription}>\n The pasted value matches multiple coordinate formats. Please\n select the correct interpretation:\n </p>\n\n <RadioGroup\n classNames={{ group: styles.formatOptions }}\n value={paste.selectedDisambiguationFormat}\n onChange={(value) =>\n paste.setSelectedDisambiguationFormat(\n value as CoordinateSystem,\n )\n }\n >\n {paste.disambiguationMatches.map((match) => (\n <Radio key={match.format} value={match.format}>\n <div className={styles.modalOptionContent}>\n <span className={styles.formatOptionLabel}>\n {COORDINATE_FORMAT_NAMES[match.format]}\n </span>\n <span className={styles.formatOptionValue}>\n {match.displayString}\n </span>\n </div>\n </Radio>\n ))}\n </RadioGroup>\n </DialogContent>\n <DialogFooter className={styles.modalActions}>\n <Button\n variant='flat'\n onPress={() => paste.setShowDisambiguationModal(false)}\n >\n Cancel\n </Button>\n <Button onPress={paste.handleDisambiguationSelect}>\n Apply Selected\n </Button>\n </DialogFooter>\n </Dialog>\n </DialogTrigger>\n </div>\n </Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4JA,SAAgB,gBAAgB,EAAE,KAAK,GAAG,SAA+B;AACvE,EAAC,OAAO,OAAO,gBAAgB,OAAO,KAAK,uBAAuB;CAElE,MAAM,EACJ,YACA,aAAa,iBACb,OAAO,WACP,SAAS,MACT,OAAO,UACP,UAAU,UACV,mBAAmB,MACnB,sBAAsB,2BACtB,aAAa,OACb,WAAW,gBAAgB,OAC3B,aAAa,OACb,aAAa,OACb,GAAG,SACD;CAEJ,MAAM,UAAU,SAAS;CAEzB,MAAM,WAAW,eAAe,MAAM,EAAE,QAAQ,MAAM,CAAC;CAIvD,MAAM,wBACJ,WAAW,YAAY,YAAY,KAAK;CAE1C,MAAM,EACJ,OACA,OACA,OACA,MACA,iBACA,YACA,YACA,kBACA,YACA,YACA,uBACA,cACE,mBACF,OACA,uBACA,KAAK,qBACL,KAAK,gBACN;CAED,MAAM,iBAAiB;EACrB,eAAe,MAAM;EACrB;EACA,cAAc,MAAM;EACpB,kBAAkB,MAAM;EACxB;EACA;EACA;EACA;EACA;EACA;EACD;CAGD,MAAM,CAAC,sBAAsB,2BAA2B,SAG9C,KAAK;CAGf,MAAM,CAAC,eAAe,oBAAoB,SAAS,MAAM;CAEzD,MAAM,0BAA0B,aAC7B,WAAoB;AACnB,mBAAiB,OAAO;AACxB,MAAI,OACF,yBAAwB,wBAAwB,MAAM,aAAa,CAAC;IAGxE,CAAC,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BAA2B,MAAM;mBACvD;UAEQ,EACT,oBAACA;SAAO,SAAS,MAAM;mBAA4B;UAE1C;SACI;;OACR;MACK;;IACZ;GACG"}
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { CoordinateSegmentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime22 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime90 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/coordinate-field/segment.d.ts
18
18
 
@@ -91,7 +91,7 @@ declare function CoordinateSegment({
91
91
  onAutoRetreat,
92
92
  pad,
93
93
  ariaLabel
94
- }: CoordinateSegmentProps): react_jsx_runtime22.JSX.Element;
94
+ }: CoordinateSegmentProps): react_jsx_runtime90.JSX.Element;
95
95
  //#endregion
96
96
  export { CoordinateSegment };
97
97
  //# sourceMappingURL=segment.d.ts.map
@@ -211,6 +211,11 @@ type CoordinateFieldProps = Omit<TextFieldProps, 'children' | 'className' | 'pla
211
211
  * - Paste errors: `{ pastedText: string }`
212
212
  */
213
213
  onError?: (message: string, context?: Record<string, unknown>) => void;
214
+ /**
215
+ * Tooltip text for the format button
216
+ * @default 'View/copy other formats'
217
+ */
218
+ formatButtonTooltip?: string;
214
219
  };
215
220
  //#endregion
216
221
  export { COORDINATE_FORMAT_LABELS, COORDINATE_FORMAT_NAMES, COORDINATE_SYSTEMS, CoordinateFieldProps, CoordinateFieldState, CoordinateSegmentProps, CoordinateSystem, CoordinateValue, ParsedCoordinateMatch, SegmentConfig, SegmentType };
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["COORDINATE_FORMAT_LABELS: Record<CoordinateSystem, string>","COORDINATE_FORMAT_NAMES: Record<CoordinateSystem, string>","COORDINATE_SYSTEMS: readonly CoordinateSystem[]"],"sources":["../../../src/components/coordinate-field/types.ts"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type {\n Dispatch,\n KeyboardEvent,\n RefAttributes,\n SetStateAction,\n} from 'react';\nimport type {\n TextFieldProps as AriaTextFieldProps,\n FieldErrorProps,\n LabelProps,\n} from 'react-aria-components';\n\n/**\n * Supported coordinate systems for display and input\n */\nexport type CoordinateSystem = 'dd' | 'ddm' | 'dms' | 'mgrs' | 'utm';\n\n/**\n * Short labels for coordinate formats (used in popover)\n */\nexport const COORDINATE_FORMAT_LABELS: Record<CoordinateSystem, string> = {\n dd: 'DD',\n ddm: 'DDM',\n dms: 'DMS',\n mgrs: 'MGRS',\n utm: 'UTM',\n};\n\n/**\n * Full names for coordinate formats (used in popover titles/descriptions)\n */\nexport const COORDINATE_FORMAT_NAMES: Record<CoordinateSystem, string> = {\n dd: 'Decimal Degrees',\n ddm: 'Degrees Decimal Minutes',\n dms: 'Degrees Minutes Seconds',\n mgrs: 'Military Grid Reference System',\n utm: 'Universal Transverse Mercator',\n};\n\n/**\n * All supported coordinate systems\n * Use this constant instead of hardcoding the array in multiple places\n */\nexport const COORDINATE_SYSTEMS: readonly CoordinateSystem[] = [\n 'dd',\n 'dms',\n 'ddm',\n 'mgrs',\n 'utm',\n] as const;\n\n/**\n * Coordinate value in Decimal Degrees format (internal representation)\n * All coordinate values are normalized to this format internally\n */\nexport type CoordinateValue = {\n lat: number; // Latitude in decimal degrees (-90 to 90)\n lon: number; // Longitude in decimal degrees (-180 to 180)\n};\n\n/**\n * Types of segments in a coordinate input\n */\nexport type SegmentType =\n | 'numeric'\n | 'directional'\n | 'literal'\n | 'alphanumeric';\n\n/**\n * Configuration for a single coordinate segment\n */\nexport type SegmentConfig = {\n type: SegmentType;\n /** Placeholder text shown when segment is empty */\n placeholder?: string;\n /** Maximum character length for the segment */\n maxLength?: number;\n /** Regex pattern for allowed characters */\n allowedChars?: string;\n /** Fixed value for literal segments (e.g., \", \" or \"º\") */\n value?: string;\n /** Padding in CSS 'ch' units to add to the segment width (defaults to 0.5 if not specified) */\n pad?: number;\n};\n\n/**\n * Result of parsing a pasted coordinate string\n */\nexport type ParsedCoordinateMatch = {\n /** The coordinate system format that matched */\n format: CoordinateSystem;\n /** The coordinate value in DD format */\n value: CoordinateValue;\n /** Display string in the matched format */\n displayString: string;\n};\n\n/**\n * State shared with child components through context\n */\nexport type CoordinateFieldState = {\n segmentValues: string[];\n format: CoordinateFieldProps['format'];\n /**\n * Current coordinate value in DD format\n * - undefined: uncontrolled mode with no default value\n * - null: controlled mode with empty/invalid value\n * - CoordinateValue: valid coordinate\n */\n currentValue?: CoordinateValue | null;\n /** Validation errors from @accelint/geo */\n validationErrors: string[];\n isDisabled: boolean;\n isInvalid: boolean;\n isRequired: boolean;\n /** Size variant of the field */\n size: CoordinateFieldProps['size'];\n /** Whether or not the logical coordinate fields are inlined or stacked */\n variant: CoordinateFieldProps['variant'];\n /** Function to register timeouts for cleanup on unmount */\n registerTimeout: (timeoutId: NodeJS.Timeout) => void;\n};\n\n/**\n * Props for the CoordinateSegment component\n */\nexport type CoordinateSegmentProps = {\n /** Current value of the segment */\n value: string;\n /** Callback when the segment value changes */\n onChange: (value: string) => void;\n /** Callback when the segment receives focus */\n onFocus?: () => void;\n /** Callback when the segment loses focus */\n onBlur?: () => void;\n /** Callback for keyboard events (used for navigation between segments) */\n onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;\n /** Placeholder text to display when segment is empty */\n placeholder?: string;\n /** Maximum character length for the segment */\n maxLength?: number;\n /** Custom className for styling */\n className?: string;\n /** Whether the segment is disabled */\n isDisabled?: boolean;\n /** Whether the segment is read-only */\n isReadOnly?: boolean;\n /** Regex pattern for allowed characters (e.g., \"[0-9\\\\-\\\\.]\" for numeric, \"[NSEW]\" for directional) */\n allowedChars?: string;\n /** Ref to the input element for programmatic focus management */\n segmentRef?: React.RefObject<HTMLInputElement>;\n /** Index of this segment in the parent field (for accessibility) */\n segmentIndex?: number;\n /** Total number of segments (for accessibility) */\n totalSegments?: number;\n /** Callback to trigger auto-advance to next segment */\n onAutoAdvance?: () => void;\n /** Callback to trigger auto-retreat to previous segment */\n onAutoRetreat?: () => void;\n /** Padding in CSS 'ch' units to add to the segment width (defaults to 0.5 if not specified) */\n pad?: number;\n /** Semantic accessibility label for the segment (e.g., \"Latitude degrees\") */\n ariaLabel?: string;\n};\n\n/**\n * Props for the CoordinateField component\n *\n * Extends AriaTextFieldProps to inherit standard form field props (id, isDisabled, isRequired, etc.)\n */\nexport type CoordinateFieldProps = Omit<\n AriaTextFieldProps,\n | 'children'\n | 'className'\n | 'placeholder'\n | 'type'\n | 'pattern'\n | 'value'\n | 'defaultValue'\n | 'onChange'\n | 'name' // Not applicable to multi-segment fields\n> &\n RefAttributes<HTMLDivElement> & {\n /**\n * Custom class names for component slots\n */\n classNames?: {\n field?: string;\n label?: LabelProps['className'];\n control?: string;\n input?: string;\n segment?: string;\n description?: string;\n error?: FieldErrorProps['className'];\n formatButton?: string;\n };\n\n /**\n * Label text displayed above the input (medium size only)\n */\n label?: string;\n\n /**\n * Helper text displayed below the input\n */\n description?: string;\n\n /**\n * Error message to display when the field is invalid\n */\n errorMessage?: string;\n\n /**\n * Display format for coordinate input\n * @default 'dd' (Decimal Degrees)\n */\n format?: CoordinateSystem;\n\n /**\n * Size variant of the field\n * @default 'medium'\n */\n size?: 'small' | 'medium';\n\n /**\n * Whether to show the format button for copying coordinates in different formats\n * @default true\n */\n showFormatButton?: boolean;\n\n /**\n * Controlled value in Decimal Degrees format\n * - undefined: uncontrolled mode\n * - null: controlled mode with no/invalid value\n * - CoordinateValue: controlled mode with valid value\n */\n value?: CoordinateValue | null;\n\n /**\n * Whether or not the input is stacked or inline\n * @default 'inline'\n */\n variant?: 'inline' | 'stacked';\n\n /**\n * Default uncontrolled value in Decimal Degrees format\n */\n defaultValue?: CoordinateValue;\n\n /**\n * Callback fired when the coordinate value changes\n * @param value - The new coordinate value in DD format, or null if invalid\n */\n onChange?:\n | Dispatch<SetStateAction<CoordinateValue | null>>\n | ((value: CoordinateValue | null) => void);\n\n /**\n * Callback fired when validation or paste errors occur\n * @param message - Error message (\"Invalid coordinate value\" for validation errors, \"Invalid coordinate format\" for paste errors)\n * @param context - Additional context about the error:\n * - Validation errors: `{ errors: string[], format: string, segments: string[] }`\n * - Paste errors: `{ pastedText: string }`\n */\n onError?: (message: string, context?: Record<string, unknown>) => void;\n };\n"],"mappings":";;;;;;;;;;;;;;;;;AAgCA,MAAaA,2BAA6D;CACxE,IAAI;CACJ,KAAK;CACL,KAAK;CACL,MAAM;CACN,KAAK;CACN;;;;AAKD,MAAaC,0BAA4D;CACvE,IAAI;CACJ,KAAK;CACL,KAAK;CACL,MAAM;CACN,KAAK;CACN;;;;;AAMD,MAAaC,qBAAkD;CAC7D;CACA;CACA;CACA;CACA;CACD"}
1
+ {"version":3,"file":"types.js","names":["COORDINATE_FORMAT_LABELS: Record<CoordinateSystem, string>","COORDINATE_FORMAT_NAMES: Record<CoordinateSystem, string>","COORDINATE_SYSTEMS: readonly CoordinateSystem[]"],"sources":["../../../src/components/coordinate-field/types.ts"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type {\n Dispatch,\n KeyboardEvent,\n RefAttributes,\n SetStateAction,\n} from 'react';\nimport type {\n TextFieldProps as AriaTextFieldProps,\n FieldErrorProps,\n LabelProps,\n} from 'react-aria-components';\n\n/**\n * Supported coordinate systems for display and input\n */\nexport type CoordinateSystem = 'dd' | 'ddm' | 'dms' | 'mgrs' | 'utm';\n\n/**\n * Short labels for coordinate formats (used in popover)\n */\nexport const COORDINATE_FORMAT_LABELS: Record<CoordinateSystem, string> = {\n dd: 'DD',\n ddm: 'DDM',\n dms: 'DMS',\n mgrs: 'MGRS',\n utm: 'UTM',\n};\n\n/**\n * Full names for coordinate formats (used in popover titles/descriptions)\n */\nexport const COORDINATE_FORMAT_NAMES: Record<CoordinateSystem, string> = {\n dd: 'Decimal Degrees',\n ddm: 'Degrees Decimal Minutes',\n dms: 'Degrees Minutes Seconds',\n mgrs: 'Military Grid Reference System',\n utm: 'Universal Transverse Mercator',\n};\n\n/**\n * All supported coordinate systems\n * Use this constant instead of hardcoding the array in multiple places\n */\nexport const COORDINATE_SYSTEMS: readonly CoordinateSystem[] = [\n 'dd',\n 'dms',\n 'ddm',\n 'mgrs',\n 'utm',\n] as const;\n\n/**\n * Coordinate value in Decimal Degrees format (internal representation)\n * All coordinate values are normalized to this format internally\n */\nexport type CoordinateValue = {\n lat: number; // Latitude in decimal degrees (-90 to 90)\n lon: number; // Longitude in decimal degrees (-180 to 180)\n};\n\n/**\n * Types of segments in a coordinate input\n */\nexport type SegmentType =\n | 'numeric'\n | 'directional'\n | 'literal'\n | 'alphanumeric';\n\n/**\n * Configuration for a single coordinate segment\n */\nexport type SegmentConfig = {\n type: SegmentType;\n /** Placeholder text shown when segment is empty */\n placeholder?: string;\n /** Maximum character length for the segment */\n maxLength?: number;\n /** Regex pattern for allowed characters */\n allowedChars?: string;\n /** Fixed value for literal segments (e.g., \", \" or \"º\") */\n value?: string;\n /** Padding in CSS 'ch' units to add to the segment width (defaults to 0.5 if not specified) */\n pad?: number;\n};\n\n/**\n * Result of parsing a pasted coordinate string\n */\nexport type ParsedCoordinateMatch = {\n /** The coordinate system format that matched */\n format: CoordinateSystem;\n /** The coordinate value in DD format */\n value: CoordinateValue;\n /** Display string in the matched format */\n displayString: string;\n};\n\n/**\n * State shared with child components through context\n */\nexport type CoordinateFieldState = {\n segmentValues: string[];\n format: CoordinateFieldProps['format'];\n /**\n * Current coordinate value in DD format\n * - undefined: uncontrolled mode with no default value\n * - null: controlled mode with empty/invalid value\n * - CoordinateValue: valid coordinate\n */\n currentValue?: CoordinateValue | null;\n /** Validation errors from @accelint/geo */\n validationErrors: string[];\n isDisabled: boolean;\n isInvalid: boolean;\n isRequired: boolean;\n /** Size variant of the field */\n size: CoordinateFieldProps['size'];\n /** Whether or not the logical coordinate fields are inlined or stacked */\n variant: CoordinateFieldProps['variant'];\n /** Function to register timeouts for cleanup on unmount */\n registerTimeout: (timeoutId: NodeJS.Timeout) => void;\n};\n\n/**\n * Props for the CoordinateSegment component\n */\nexport type CoordinateSegmentProps = {\n /** Current value of the segment */\n value: string;\n /** Callback when the segment value changes */\n onChange: (value: string) => void;\n /** Callback when the segment receives focus */\n onFocus?: () => void;\n /** Callback when the segment loses focus */\n onBlur?: () => void;\n /** Callback for keyboard events (used for navigation between segments) */\n onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;\n /** Placeholder text to display when segment is empty */\n placeholder?: string;\n /** Maximum character length for the segment */\n maxLength?: number;\n /** Custom className for styling */\n className?: string;\n /** Whether the segment is disabled */\n isDisabled?: boolean;\n /** Whether the segment is read-only */\n isReadOnly?: boolean;\n /** Regex pattern for allowed characters (e.g., \"[0-9\\\\-\\\\.]\" for numeric, \"[NSEW]\" for directional) */\n allowedChars?: string;\n /** Ref to the input element for programmatic focus management */\n segmentRef?: React.RefObject<HTMLInputElement>;\n /** Index of this segment in the parent field (for accessibility) */\n segmentIndex?: number;\n /** Total number of segments (for accessibility) */\n totalSegments?: number;\n /** Callback to trigger auto-advance to next segment */\n onAutoAdvance?: () => void;\n /** Callback to trigger auto-retreat to previous segment */\n onAutoRetreat?: () => void;\n /** Padding in CSS 'ch' units to add to the segment width (defaults to 0.5 if not specified) */\n pad?: number;\n /** Semantic accessibility label for the segment (e.g., \"Latitude degrees\") */\n ariaLabel?: string;\n};\n\n/**\n * Props for the CoordinateField component\n *\n * Extends AriaTextFieldProps to inherit standard form field props (id, isDisabled, isRequired, etc.)\n */\nexport type CoordinateFieldProps = Omit<\n AriaTextFieldProps,\n | 'children'\n | 'className'\n | 'placeholder'\n | 'type'\n | 'pattern'\n | 'value'\n | 'defaultValue'\n | 'onChange'\n | 'name' // Not applicable to multi-segment fields\n> &\n RefAttributes<HTMLDivElement> & {\n /**\n * Custom class names for component slots\n */\n classNames?: {\n field?: string;\n label?: LabelProps['className'];\n control?: string;\n input?: string;\n segment?: string;\n description?: string;\n error?: FieldErrorProps['className'];\n formatButton?: string;\n };\n\n /**\n * Label text displayed above the input (medium size only)\n */\n label?: string;\n\n /**\n * Helper text displayed below the input\n */\n description?: string;\n\n /**\n * Error message to display when the field is invalid\n */\n errorMessage?: string;\n\n /**\n * Display format for coordinate input\n * @default 'dd' (Decimal Degrees)\n */\n format?: CoordinateSystem;\n\n /**\n * Size variant of the field\n * @default 'medium'\n */\n size?: 'small' | 'medium';\n\n /**\n * Whether to show the format button for copying coordinates in different formats\n * @default true\n */\n showFormatButton?: boolean;\n\n /**\n * Controlled value in Decimal Degrees format\n * - undefined: uncontrolled mode\n * - null: controlled mode with no/invalid value\n * - CoordinateValue: controlled mode with valid value\n */\n value?: CoordinateValue | null;\n\n /**\n * Whether or not the input is stacked or inline\n * @default 'inline'\n */\n variant?: 'inline' | 'stacked';\n\n /**\n * Default uncontrolled value in Decimal Degrees format\n */\n defaultValue?: CoordinateValue;\n\n /**\n * Callback fired when the coordinate value changes\n * @param value - The new coordinate value in DD format, or null if invalid\n */\n onChange?:\n | Dispatch<SetStateAction<CoordinateValue | null>>\n | ((value: CoordinateValue | null) => void);\n\n /**\n * Callback fired when validation or paste errors occur\n * @param message - Error message (\"Invalid coordinate value\" for validation errors, \"Invalid coordinate format\" for paste errors)\n * @param context - Additional context about the error:\n * - Validation errors: `{ errors: string[], format: string, segments: string[] }`\n * - Paste errors: `{ pastedText: string }`\n */\n onError?: (message: string, context?: Record<string, unknown>) => void;\n\n /**\n * Tooltip text for the format button\n * @default 'View/copy other formats'\n */\n formatButtonTooltip?: string;\n };\n"],"mappings":";;;;;;;;;;;;;;;;;AAgCA,MAAaA,2BAA6D;CACxE,IAAI;CACJ,KAAK;CACL,KAAK;CACL,MAAM;CACN,KAAK;CACN;;;;AAKD,MAAaC,0BAA4D;CACvE,IAAI;CACJ,KAAK;CACL,KAAK;CACL,MAAM;CACN,KAAK;CACN;;;;;AAMD,MAAaC,qBAAkD;CAC7D;CACA;CACA;CACA;CACA;CACD"}
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { DateFieldProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime29 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime157 from "react/jsx-runtime";
16
16
  import { DateValue } from "@internationalized/date";
17
17
 
18
18
  //#region src/components/date-field/index.d.ts
@@ -100,7 +100,7 @@ declare function DateField<T extends DateValue>({
100
100
  isRequired,
101
101
  isReadOnly,
102
102
  ...rest
103
- }: DateFieldProps<T>): react_jsx_runtime29.JSX.Element;
103
+ }: DateFieldProps<T>): react_jsx_runtime157.JSX.Element;
104
104
  //#endregion
105
105
  export { DateField };
106
106
  //# sourceMappingURL=index.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { DeferredCollectionProps } from "./types.js";
14
- import * as react_jsx_runtime47 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime159 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/deferred-collection/index.d.ts
17
17
 
@@ -45,7 +45,7 @@ declare function DeferredCollection({
45
45
  children,
46
46
  fallback,
47
47
  deferFrames
48
- }: DeferredCollectionProps): react_jsx_runtime47.JSX.Element;
48
+ }: DeferredCollectionProps): react_jsx_runtime159.JSX.Element;
49
49
  //#endregion
50
50
  export { DeferredCollection, type DeferredCollectionProps };
51
51
  //# sourceMappingURL=index.d.ts.map
@@ -13,15 +13,15 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { DetailsListProps } from "./types.js";
15
15
  import "client-only";
16
- import * as react23 from "react";
16
+ import * as react1 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime56 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/details-list/context.d.ts
21
21
  /**
22
22
  * Context for sharing DetailsList props across component tree.
23
23
  */
24
- declare const DetailsListContext: react23.Context<ContextValue<DetailsListProps, HTMLDListElement>>;
24
+ declare const DetailsListContext: react1.Context<ContextValue<DetailsListProps, HTMLDListElement>>;
25
25
  /**
26
26
  * DetailsListProvider - Context provider for setting default DetailsList props.
27
27
  *
@@ -43,7 +43,7 @@ declare const DetailsListContext: react23.Context<ContextValue<DetailsListProps,
43
43
  declare function DetailsListProvider({
44
44
  children,
45
45
  ...props
46
- }: ProviderProps<DetailsListProps>): react_jsx_runtime56.JSX.Element;
46
+ }: ProviderProps<DetailsListProps>): react_jsx_runtime5.JSX.Element;
47
47
  //#endregion
48
48
  export { DetailsListContext, DetailsListProvider };
49
49
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { DetailsListProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime60 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/details-list/index.d.ts
18
18
 
@@ -55,7 +55,7 @@ import * as react_jsx_runtime60 from "react/jsx-runtime";
55
55
  declare function DetailsList({
56
56
  ref,
57
57
  ...props
58
- }: DetailsListProps): react_jsx_runtime60.JSX.Element;
58
+ }: DetailsListProps): react_jsx_runtime15.JSX.Element;
59
59
  //#endregion
60
60
  export { DetailsList };
61
61
  //# sourceMappingURL=index.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { DetailsListLabelProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime63 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/details-list/label.d.ts
18
18
  /**
@@ -31,7 +31,7 @@ import * as react_jsx_runtime63 from "react/jsx-runtime";
31
31
  * </DetailsList>
32
32
  * ```
33
33
  */
34
- declare function DetailsListLabel(props: DetailsListLabelProps): react_jsx_runtime63.JSX.Element;
34
+ declare function DetailsListLabel(props: DetailsListLabelProps): react_jsx_runtime6.JSX.Element;
35
35
  //#endregion
36
36
  export { DetailsListLabel };
37
37
  //# sourceMappingURL=label.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { DetailsListValueProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime68 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/details-list/value.d.ts
18
18
 
@@ -33,7 +33,7 @@ import * as react_jsx_runtime68 from "react/jsx-runtime";
33
33
  * </DetailsList>
34
34
  * ```
35
35
  */
36
- declare function DetailsListValue(props: DetailsListValueProps): react_jsx_runtime68.JSX.Element;
36
+ declare function DetailsListValue(props: DetailsListValueProps): react_jsx_runtime9.JSX.Element;
37
37
  //#endregion
38
38
  export { DetailsListValue };
39
39
  //# sourceMappingURL=value.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import "client-only";
14
14
  import { ComponentProps } from "react";
15
- import * as react_jsx_runtime69 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/dialog/content.d.ts
18
18
 
@@ -39,7 +39,7 @@ import * as react_jsx_runtime69 from "react/jsx-runtime";
39
39
  declare function DialogContent({
40
40
  children,
41
41
  className
42
- }: ComponentProps<'div'>): react_jsx_runtime69.JSX.Element;
42
+ }: ComponentProps<'div'>): react_jsx_runtime11.JSX.Element;
43
43
  //#endregion
44
44
  export { DialogContent };
45
45
  //# sourceMappingURL=content.d.ts.map
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { DialogProps as DialogProps$1 } from "./types.js";
14
14
  import "client-only";
15
- import * as react26 from "react";
15
+ import * as react3 from "react";
16
16
  import { ContextValue } from "react-aria-components";
17
17
 
18
18
  //#region src/components/dialog/context.d.ts
19
19
  /**
20
20
  * Context for sharing Dialog props across component tree.
21
21
  */
22
- declare const DialogContext: react26.Context<ContextValue<DialogProps$1, HTMLDivElement>>;
22
+ declare const DialogContext: react3.Context<ContextValue<DialogProps$1, HTMLDivElement>>;
23
23
  //#endregion
24
24
  export { DialogContext };
25
25
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import "client-only";
14
14
  import { ComponentProps } from "react";
15
- import * as react_jsx_runtime76 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/dialog/footer.d.ts
18
18
 
@@ -42,7 +42,7 @@ import * as react_jsx_runtime76 from "react/jsx-runtime";
42
42
  declare function DialogFooter({
43
43
  children,
44
44
  className
45
- }: ComponentProps<'footer'>): react_jsx_runtime76.JSX.Element;
45
+ }: ComponentProps<'footer'>): react_jsx_runtime14.JSX.Element;
46
46
  //#endregion
47
47
  export { DialogFooter };
48
48
  //# sourceMappingURL=footer.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { DialogProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime25 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/dialog/index.d.ts
18
18
 
@@ -53,7 +53,7 @@ import * as react_jsx_runtime25 from "react/jsx-runtime";
53
53
  declare function Dialog({
54
54
  ref,
55
55
  ...props
56
- }: DialogProps): react_jsx_runtime25.JSX.Element;
56
+ }: DialogProps): react_jsx_runtime1.JSX.Element;
57
57
  //#endregion
58
58
  export { Dialog };
59
59
  //# sourceMappingURL=index.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import "client-only";
14
14
  import { HeadingProps } from "react-aria-components";
15
- import * as react_jsx_runtime28 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/dialog/title.d.ts
18
18
 
@@ -37,7 +37,7 @@ import * as react_jsx_runtime28 from "react/jsx-runtime";
37
37
  declare function DialogTitle({
38
38
  children,
39
39
  className
40
- }: HeadingProps): react_jsx_runtime28.JSX.Element;
40
+ }: HeadingProps): react_jsx_runtime16.JSX.Element;
41
41
  //#endregion
42
42
  export { DialogTitle };
43
43
  //# sourceMappingURL=title.d.ts.map
@@ -13,15 +13,15 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { DividerProps } from "./types.js";
15
15
  import "client-only";
16
- import * as react11 from "react";
16
+ import * as react0 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime32 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/divider/context.d.ts
21
21
  /**
22
22
  * Context for sharing Divider props across component tree.
23
23
  */
24
- declare const DividerContext: react11.Context<ContextValue<DividerProps, HTMLHRElement>>;
24
+ declare const DividerContext: react0.Context<ContextValue<DividerProps, HTMLHRElement>>;
25
25
  /**
26
26
  * DividerProvider - Context provider for setting default Divider props.
27
27
  *
@@ -42,7 +42,7 @@ declare const DividerContext: react11.Context<ContextValue<DividerProps, HTMLHRE
42
42
  declare function DividerProvider({
43
43
  children,
44
44
  ...props
45
- }: ProviderProps<DividerProps>): react_jsx_runtime32.JSX.Element;
45
+ }: ProviderProps<DividerProps>): react_jsx_runtime3.JSX.Element;
46
46
  //#endregion
47
47
  export { DividerContext, DividerProvider };
48
48
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { DividerProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime33 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/divider/index.d.ts
18
18
 
@@ -43,7 +43,7 @@ import * as react_jsx_runtime33 from "react/jsx-runtime";
43
43
  declare function Divider({
44
44
  ref,
45
45
  ...props
46
- }: DividerProps): react_jsx_runtime33.JSX.Element;
46
+ }: DividerProps): react_jsx_runtime18.JSX.Element;
47
47
  //#endregion
48
48
  export { Divider };
49
49
  //# sourceMappingURL=index.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime42 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime22 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/drawer/back.d.ts
17
17
 
@@ -33,7 +33,7 @@ import * as react_jsx_runtime42 from "react/jsx-runtime";
33
33
  * </DrawerView>
34
34
  * ```
35
35
  */
36
- declare function DrawerBack(): react_jsx_runtime42.JSX.Element | null;
36
+ declare function DrawerBack(): react_jsx_runtime22.JSX.Element | null;
37
37
  //#endregion
38
38
  export { DrawerBack };
39
39
  //# sourceMappingURL=back.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { DrawerCloseProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime43 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime23 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/drawer/close.d.ts
18
18
 
@@ -34,7 +34,7 @@ import * as react_jsx_runtime43 from "react/jsx-runtime";
34
34
  * </DrawerHeader>
35
35
  * ```
36
36
  */
37
- declare function DrawerClose(props: DrawerCloseProps): react_jsx_runtime43.JSX.Element;
37
+ declare function DrawerClose(props: DrawerCloseProps): react_jsx_runtime23.JSX.Element;
38
38
  declare namespace DrawerClose {
39
39
  var displayName: string;
40
40
  }