@dmsi/wedgekit-react 0.0.25 → 0.0.27

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 (217) hide show
  1. package/dist/{chunk-KDEPZ6I7.js → chunk-2S2Z3L56.js} +5 -1
  2. package/dist/{chunk-TU55CHXU.js → chunk-4JLU7TAC.js} +3 -1
  3. package/dist/{chunk-Z2LOGSGE.js → chunk-4N2PED4P.js} +15 -3
  4. package/dist/{chunk-U42SKNR6.js → chunk-57WRM337.js} +68 -30
  5. package/dist/{chunk-ZFGGZXB6.js → chunk-AY7ELVQY.js} +5 -2
  6. package/dist/{chunk-I2UVVKQI.js → chunk-CHTO7PW4.js} +3 -2
  7. package/dist/{chunk-WIDBAFBU.js → chunk-FWPJ73IK.js} +3 -1
  8. package/dist/{chunk-5TLFMKSR.js → chunk-INYI65WW.js} +15 -5
  9. package/dist/{chunk-TJ44JJCB.js → chunk-J6LETUNM.js} +5 -2
  10. package/dist/{chunk-T6HZARR7.js → chunk-MZJS2ZAU.js} +6 -3
  11. package/dist/{chunk-ZCBSLV7U.js → chunk-O4M2GISS.js} +5 -2
  12. package/dist/{chunk-OUTEIXV4.js → chunk-OUSNH76S.js} +11 -3
  13. package/dist/{chunk-YDREJNAS.js → chunk-PDDZ5PMY.js} +18 -4
  14. package/dist/{chunk-4RD5ZF2V.js → chunk-QBIEU25R.js} +10 -4
  15. package/dist/chunk-QUPHLL7D.js +61 -0
  16. package/dist/{chunk-OISE6NMA.js → chunk-QV2EFOYF.js} +17 -6
  17. package/dist/{chunk-YZQNTOIF.js → chunk-QZGUMB7T.js} +10 -5
  18. package/dist/{chunk-S7R37IUP.js → chunk-S5K22XTH.js} +5 -2
  19. package/dist/{chunk-GCPJH5R6.js → chunk-S5KPS4IQ.js} +22 -7
  20. package/dist/{chunk-VELXLFMJ.js → chunk-SAMX4YGM.js} +4 -1
  21. package/dist/{chunk-TWP6YSFO.js → chunk-SKHSGGO3.js} +14 -6
  22. package/dist/chunk-TVDFTRGL.js +57 -0
  23. package/dist/{chunk-N32PXOA5.js → chunk-UT7XCBZF.js} +9 -4
  24. package/dist/{chunk-L4UM372R.js → chunk-VC3R5EUH.js} +3 -0
  25. package/dist/{chunk-UIQ733QP.js → chunk-VG4EPHJA.js} +7 -3
  26. package/dist/components/Breadcrumbs.cjs +29 -9
  27. package/dist/components/Breadcrumbs.js +29 -9
  28. package/dist/components/Button.cjs +6 -3
  29. package/dist/components/Button.js +1 -1
  30. package/dist/components/CalendarRange.cjs +11 -3
  31. package/dist/components/CalendarRange.js +1 -1
  32. package/dist/components/Caption.cjs +53 -9
  33. package/dist/components/Caption.js +53 -9
  34. package/dist/components/Checkbox.cjs +15 -6
  35. package/dist/components/Checkbox.js +2 -2
  36. package/dist/components/ContentTab.cjs +20 -7
  37. package/dist/components/ContentTab.js +2 -2
  38. package/dist/components/ContentTabs.cjs +32 -18
  39. package/dist/components/ContentTabs.js +14 -13
  40. package/dist/components/DMSiLogo.cjs +22 -4
  41. package/dist/components/DMSiLogo.js +9 -5
  42. package/dist/components/DataGrid.cjs +374 -243
  43. package/dist/components/DataGrid.js +283 -226
  44. package/dist/components/DataGridCell.cjs +79 -21
  45. package/dist/components/DataGridCell.js +7 -7
  46. package/dist/components/DataTable.cjs +197 -139
  47. package/dist/components/DataTable.js +197 -139
  48. package/dist/components/DateInput.cjs +36 -10
  49. package/dist/components/DateInput.js +7 -3
  50. package/dist/components/DateRangeInput.cjs +36 -10
  51. package/dist/components/DateRangeInput.js +7 -3
  52. package/dist/components/DebugJson.cjs +21 -13
  53. package/dist/components/DebugJson.js +21 -13
  54. package/dist/components/Display.cjs +5 -2
  55. package/dist/components/Display.js +1 -1
  56. package/dist/components/EditingContext.cjs +4 -1
  57. package/dist/components/EditingContext.js +4 -1
  58. package/dist/components/FilterGroup.cjs +102 -32
  59. package/dist/components/FilterGroup.js +41 -17
  60. package/dist/components/FullViewportBox.cjs +10 -2
  61. package/dist/components/FullViewportBox.js +10 -2
  62. package/dist/components/Grid.cjs +3 -1
  63. package/dist/components/Grid.js +3 -1
  64. package/dist/components/Heading.cjs +5 -2
  65. package/dist/components/Heading.js +1 -1
  66. package/dist/components/HorizontalDivider.cjs +2 -2
  67. package/dist/components/HorizontalDivider.js +2 -2
  68. package/dist/components/Input.cjs +21 -7
  69. package/dist/components/Input.js +2 -2
  70. package/dist/components/InputGroup.cjs +13 -6
  71. package/dist/components/InputGroup.js +9 -5
  72. package/dist/components/Label.cjs +5 -2
  73. package/dist/components/Label.js +1 -1
  74. package/dist/components/List.cjs +3 -2
  75. package/dist/components/List.js +3 -2
  76. package/dist/components/LogoAgilityTopBar.cjs +22 -4
  77. package/dist/components/LogoAgilityTopBar.js +9 -5
  78. package/dist/components/LogoDMSiTopBar.cjs +22 -4
  79. package/dist/components/LogoDMSiTopBar.js +1 -1
  80. package/dist/components/LogoMillworkTopBar.cjs +22 -4
  81. package/dist/components/LogoMillworkTopBar.js +9 -5
  82. package/dist/components/MainBar.cjs +2 -0
  83. package/dist/components/MainBar.js +2 -0
  84. package/dist/components/Menu.cjs +3 -0
  85. package/dist/components/Menu.js +1 -1
  86. package/dist/components/MenuOption.cjs +28 -7
  87. package/dist/components/MenuOption.js +3 -3
  88. package/dist/components/MobileDataGrid.cjs +101 -46
  89. package/dist/components/MobileDataGrid.js +23 -11
  90. package/dist/components/Modal.cjs +96 -51
  91. package/dist/components/Modal.js +19 -7
  92. package/dist/components/ModalButtons.cjs +43 -26
  93. package/dist/components/ModalButtons.js +2 -2
  94. package/dist/components/ModalContent.cjs +3 -1
  95. package/dist/components/ModalContent.js +1 -1
  96. package/dist/components/ModalHeader.cjs +40 -25
  97. package/dist/components/ModalHeader.js +3 -3
  98. package/dist/components/ModalScrim.cjs +3 -1
  99. package/dist/components/ModalScrim.js +1 -1
  100. package/dist/components/NavigationTab.cjs +9 -3
  101. package/dist/components/NavigationTab.js +2 -2
  102. package/dist/components/NavigationTabs.cjs +15 -7
  103. package/dist/components/NavigationTabs.js +8 -6
  104. package/dist/components/NestedMenu.cjs +28 -7
  105. package/dist/components/NestedMenu.js +3 -3
  106. package/dist/components/Notification.cjs +84 -38
  107. package/dist/components/Notification.js +8 -4
  108. package/dist/components/OptionPill.cjs +24 -6
  109. package/dist/components/OptionPill.js +3 -3
  110. package/dist/components/Paragraph.cjs +7 -3
  111. package/dist/components/Paragraph.js +1 -1
  112. package/dist/components/Password.cjs +33 -11
  113. package/dist/components/Password.js +14 -6
  114. package/dist/components/ProjectBar.cjs +3 -1
  115. package/dist/components/ProjectBar.js +3 -1
  116. package/dist/components/Radio.cjs +13 -7
  117. package/dist/components/Radio.js +7 -5
  118. package/dist/components/Search.cjs +34 -12
  119. package/dist/components/Search.js +3 -3
  120. package/dist/components/Select.cjs +25 -7
  121. package/dist/components/Select.js +3 -3
  122. package/dist/components/SideMenu.cjs +6 -1
  123. package/dist/components/SideMenu.js +6 -1
  124. package/dist/components/SideMenuGroup.cjs +96 -49
  125. package/dist/components/SideMenuGroup.js +31 -19
  126. package/dist/components/SideMenuItem.cjs +99 -43
  127. package/dist/components/SideMenuItem.js +32 -12
  128. package/dist/components/Stack.cjs +91 -30
  129. package/dist/components/Stack.js +1 -1
  130. package/dist/components/StatusPill.cjs +13 -6
  131. package/dist/components/StatusPill.js +9 -5
  132. package/dist/components/Stepper.cjs +35 -17
  133. package/dist/components/Stepper.js +11 -10
  134. package/dist/components/Subheader.cjs +5 -2
  135. package/dist/components/Subheader.js +1 -1
  136. package/dist/components/Surface.cjs +5 -2
  137. package/dist/components/Surface.js +5 -2
  138. package/dist/components/Swatch.cjs +1544 -1308
  139. package/dist/components/Swatch.js +1469 -1275
  140. package/dist/components/Textarea.cjs +5 -2
  141. package/dist/components/Textarea.js +5 -2
  142. package/dist/components/Theme.cjs +3 -2
  143. package/dist/components/Theme.js +1 -1
  144. package/dist/components/Time.cjs +98 -40
  145. package/dist/components/Time.js +18 -6
  146. package/dist/components/Toast.cjs +38 -15
  147. package/dist/components/Toast.js +23 -10
  148. package/dist/components/Tooltip.cjs +5 -4
  149. package/dist/components/Tooltip.js +1 -1
  150. package/dist/components/TopBar.cjs +16 -8
  151. package/dist/components/TopBar.js +12 -5
  152. package/package.json +1 -1
  153. package/src/components/Breadcrumbs.tsx +24 -15
  154. package/src/components/Button.tsx +7 -3
  155. package/src/components/CalendarRange.tsx +9 -0
  156. package/src/components/Caption.tsx +36 -6
  157. package/src/components/Checkbox.tsx +7 -2
  158. package/src/components/ContentTab.tsx +13 -3
  159. package/src/components/ContentTabs.tsx +11 -8
  160. package/src/components/DMSiLogo.tsx +2 -1
  161. package/src/components/DataGrid.tsx +85 -23
  162. package/src/components/DataGridCell.tsx +15 -2
  163. package/src/components/DataTable.tsx +64 -14
  164. package/src/components/DateInput.tsx +5 -1
  165. package/src/components/DateRangeInput.tsx +5 -1
  166. package/src/components/DebugJson.tsx +7 -3
  167. package/src/components/Display.tsx +3 -0
  168. package/src/components/EditingContext.tsx +8 -6
  169. package/src/components/FilterGroup.tsx +23 -3
  170. package/src/components/FullViewportBox.tsx +6 -1
  171. package/src/components/Grid.tsx +3 -0
  172. package/src/components/Heading.tsx +3 -0
  173. package/src/components/HorizontalDivider.tsx +4 -2
  174. package/src/components/Input.tsx +19 -10
  175. package/src/components/InputGroup.tsx +8 -4
  176. package/src/components/Label.tsx +3 -0
  177. package/src/components/Link.tsx +1 -0
  178. package/src/components/List.tsx +7 -1
  179. package/src/components/LogoAgilityTopBar.tsx +2 -1
  180. package/src/components/LogoDMSiTopBar.tsx +2 -1
  181. package/src/components/LogoMillworkTopBar.tsx +2 -1
  182. package/src/components/MainBar.tsx +3 -0
  183. package/src/components/Menu.tsx +3 -0
  184. package/src/components/MenuOption.tsx +72 -58
  185. package/src/components/MobileDataGrid.tsx +15 -4
  186. package/src/components/Modal.tsx +10 -1
  187. package/src/components/ModalButtons.tsx +12 -1
  188. package/src/components/ModalContent.tsx +3 -0
  189. package/src/components/ModalHeader.tsx +16 -6
  190. package/src/components/ModalScrim.tsx +3 -0
  191. package/src/components/NavigationTab.tsx +6 -3
  192. package/src/components/NavigationTabs.tsx +5 -2
  193. package/src/components/Notification.tsx +4 -0
  194. package/src/components/OptionPill.tsx +9 -1
  195. package/src/components/Paragraph.tsx +3 -0
  196. package/src/components/Password.tsx +9 -3
  197. package/src/components/ProjectBar.tsx +3 -0
  198. package/src/components/Radio.tsx +3 -2
  199. package/src/components/Search.tsx +56 -41
  200. package/src/components/Select.tsx +6 -1
  201. package/src/components/SideMenu.tsx +7 -1
  202. package/src/components/SideMenuGroup.tsx +13 -2
  203. package/src/components/SideMenuItem.tsx +15 -2
  204. package/src/components/Stack.tsx +8 -3
  205. package/src/components/StatusPill.tsx +4 -2
  206. package/src/components/Stepper.tsx +5 -5
  207. package/src/components/Subheader.tsx +3 -0
  208. package/src/components/Surface.tsx +3 -0
  209. package/src/components/Swatch.tsx +415 -140
  210. package/src/components/Textarea.tsx +6 -3
  211. package/src/components/Theme.tsx +3 -1
  212. package/src/components/Time.tsx +21 -5
  213. package/src/components/Toast.tsx +29 -14
  214. package/src/components/Tooltip.tsx +46 -32
  215. package/src/components/TopBar.tsx +7 -3
  216. package/dist/chunk-DBYSGYST.js +0 -47
  217. package/dist/chunk-UK3WG7HQ.js +0 -48
@@ -203,18 +203,21 @@ var Label = (_a) => {
203
203
  padded,
204
204
  className,
205
205
  color,
206
- align
206
+ align,
207
+ id
207
208
  } = _b, props = __objRest(_b, [
208
209
  "as",
209
210
  "padded",
210
211
  "className",
211
212
  "color",
212
- "align"
213
+ "align",
214
+ "id"
213
215
  ]);
214
216
  const Element = as;
215
217
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
216
218
  Element,
217
219
  __spreadProps(__spreadValues({
220
+ id,
218
221
  className: (0, import_clsx2.default)(
219
222
  typography.label,
220
223
  align === "left" && "text-left",
@@ -279,7 +282,8 @@ var Paragraph = (_a) => {
279
282
  tall,
280
283
  addOverflow,
281
284
  children,
282
- as = "p"
285
+ as = "p",
286
+ id
283
287
  } = _b, props = __objRest(_b, [
284
288
  "className",
285
289
  "color",
@@ -288,12 +292,15 @@ var Paragraph = (_a) => {
288
292
  "tall",
289
293
  "addOverflow",
290
294
  "children",
291
- "as"
295
+ "as",
296
+ "id"
292
297
  ]);
293
298
  const Element = as;
294
299
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
295
300
  Element,
296
- __spreadProps(__spreadValues({}, props), {
301
+ __spreadProps(__spreadValues({
302
+ id
303
+ }, props), {
297
304
  className: (0, import_clsx4.default)(
298
305
  typography.paragraph,
299
306
  className,
@@ -324,7 +331,8 @@ var Checkbox = (_a) => {
324
331
  checked,
325
332
  onChange,
326
333
  indeterminate,
327
- paragraphClassName
334
+ paragraphClassName,
335
+ id
328
336
  } = _b, props = __objRest(_b, [
329
337
  "label",
330
338
  "error",
@@ -333,7 +341,8 @@ var Checkbox = (_a) => {
333
341
  "checked",
334
342
  "onChange",
335
343
  "indeterminate",
336
- "paragraphClassName"
344
+ "paragraphClassName",
345
+ "id"
337
346
  ]);
338
347
  const selected = indeterminate || checked;
339
348
  const normalClassName = (0, import_clsx5.default)(
@@ -361,6 +370,8 @@ var Checkbox = (_a) => {
361
370
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
362
371
  "label",
363
372
  {
373
+ id,
374
+ htmlFor: `${id}-input`,
364
375
  className: (0, import_clsx5.default)(
365
376
  "flex items-center",
366
377
  componentGap,
@@ -372,12 +383,12 @@ var Checkbox = (_a) => {
372
383
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
373
384
  "input",
374
385
  __spreadValues({
386
+ id: id ? `${id}-input` : void 0,
375
387
  type: "checkbox",
376
388
  className: "sr-only peer",
377
389
  disabled,
378
390
  checked: selected,
379
391
  onChange: handleOnChange,
380
- id: props.id,
381
392
  "data-indeterminate": indeterminate
382
393
  }, props)
383
394
  ),
@@ -403,6 +414,7 @@ var Checkbox = (_a) => {
403
414
  label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
404
415
  Paragraph,
405
416
  {
417
+ id: id ? `${id}-label` : void 0,
406
418
  as: "span",
407
419
  padded: true,
408
420
  className: (0, import_clsx5.default)(
@@ -445,7 +457,8 @@ var Button = (_a) => {
445
457
  children,
446
458
  iconOnly = false,
447
459
  colorClassName,
448
- href
460
+ href,
461
+ id
449
462
  } = _b, props = __objRest(_b, [
450
463
  "variant",
451
464
  "as",
@@ -458,7 +471,8 @@ var Button = (_a) => {
458
471
  "children",
459
472
  "iconOnly",
460
473
  "colorClassName",
461
- "href"
474
+ "href",
475
+ "id"
462
476
  ]);
463
477
  const primaryVariantStyles = variant === "primary" && (0, import_clsx6.default)(
464
478
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -548,6 +562,7 @@ var Button = (_a) => {
548
562
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
549
563
  Element,
550
564
  __spreadProps(__spreadValues({
565
+ id,
551
566
  type: Element === "button" ? "button" : void 0,
552
567
  className: buttonClasses
553
568
  }, props), {
@@ -555,7 +570,7 @@ var Button = (_a) => {
555
570
  href,
556
571
  children: [
557
572
  leftIcon && leftIcon,
558
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: labelClasses, children }),
573
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
559
574
  rightIcon && rightIcon
560
575
  ]
561
576
  })
@@ -567,6 +582,7 @@ Button.displayName = "Button";
567
582
  var import_jsx_runtime6 = require("react/jsx-runtime");
568
583
  var OptionPill = (_a) => {
569
584
  var _b = _a, {
585
+ id,
570
586
  selected = false,
571
587
  onClick,
572
588
  onRemove,
@@ -575,6 +591,7 @@ var OptionPill = (_a) => {
575
591
  children,
576
592
  className
577
593
  } = _b, props = __objRest(_b, [
594
+ "id",
578
595
  "selected",
579
596
  "onClick",
580
597
  "onRemove",
@@ -605,6 +622,7 @@ var OptionPill = (_a) => {
605
622
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
606
623
  "div",
607
624
  __spreadProps(__spreadValues(__spreadValues({
625
+ id,
608
626
  onClick: handleOnClick
609
627
  }, props), additionalAttributes), {
610
628
  className: (0, import_clsx7.default)(
@@ -618,10 +636,19 @@ var OptionPill = (_a) => {
618
636
  textColor
619
637
  ),
620
638
  children: [
621
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Label, { padded: true, className: componentPaddingYUsingComponentGap, children }),
639
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
640
+ Label,
641
+ {
642
+ id: id ? `${id}-label` : void 0,
643
+ padded: true,
644
+ className: componentPaddingYUsingComponentGap,
645
+ children
646
+ }
647
+ ),
622
648
  removable && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
623
649
  Button,
624
650
  {
651
+ id: id ? `${id}-remove-button` : void 0,
625
652
  onClick: handleOnRemove,
626
653
  disabled,
627
654
  className: (0, import_clsx7.default)(
@@ -775,6 +802,7 @@ function formatCurrencyDisplay(value) {
775
802
  var import_jsx_runtime8 = require("react/jsx-runtime");
776
803
  var InputBase = (_a) => {
777
804
  var _b = _a, {
805
+ id,
778
806
  before,
779
807
  after,
780
808
  type,
@@ -791,6 +819,7 @@ var InputBase = (_a) => {
791
819
  wrapperClassName,
792
820
  focus
793
821
  } = _b, props = __objRest(_b, [
822
+ "id",
794
823
  "before",
795
824
  "after",
796
825
  "type",
@@ -812,6 +841,7 @@ var InputBase = (_a) => {
812
841
  "data-focus": focus || null
813
842
  };
814
843
  const inputRef = (0, import_react.useRef)(null);
844
+ const inputId = `${id}-input`;
815
845
  (0, import_react.useEffect)(() => {
816
846
  var _a2;
817
847
  const input = inputRef.current;
@@ -852,6 +882,8 @@ var InputBase = (_a) => {
852
882
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
853
883
  "label",
854
884
  {
885
+ id,
886
+ htmlFor: inputId,
855
887
  ref: inputContainerRef,
856
888
  className: (0, import_clsx9.default)(
857
889
  "w-full flex flex-col",
@@ -865,6 +897,7 @@ var InputBase = (_a) => {
865
897
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
866
898
  Label,
867
899
  {
900
+ id: id ? `${id}-label` : void 0,
868
901
  className: (0, import_clsx9.default)(
869
902
  props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
870
903
  ),
@@ -901,7 +934,7 @@ var InputBase = (_a) => {
901
934
  type,
902
935
  required
903
936
  }, props), attributes), {
904
- id: props.id,
937
+ id: inputId,
905
938
  className: (0, import_clsx9.default)(
906
939
  "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
907
940
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
@@ -919,7 +952,7 @@ var InputBase = (_a) => {
919
952
  ]
920
953
  }
921
954
  ),
922
- caption
955
+ caption && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
923
956
  ]
924
957
  }
925
958
  );
@@ -933,7 +966,8 @@ var Input = (_a) => {
933
966
  value: propValue,
934
967
  onChange,
935
968
  onBlur,
936
- onClear
969
+ onClear,
970
+ id
937
971
  } = _b, props = __objRest(_b, [
938
972
  "variant",
939
973
  "decimals",
@@ -942,7 +976,8 @@ var Input = (_a) => {
942
976
  "value",
943
977
  "onChange",
944
978
  "onBlur",
945
- "onClear"
979
+ "onClear",
980
+ "id"
946
981
  ]);
947
982
  const [internalValue, setInternalValue] = (0, import_react.useState)("");
948
983
  const [displayValue, setDisplayValue] = (0, import_react.useState)("");
@@ -968,7 +1003,9 @@ var Input = (_a) => {
968
1003
  }, [propValue, decimals, variant]);
969
1004
  const getInputProps = () => {
970
1005
  var _a2;
971
- const baseProps = __spreadProps(__spreadValues(__spreadValues({}, props), getDecimalPlaceholder(decimals)), {
1006
+ const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
1007
+ id
1008
+ }), getDecimalPlaceholder(decimals)), {
972
1009
  value: propValue
973
1010
  });
974
1011
  switch (variant) {
@@ -1015,6 +1052,7 @@ var Input = (_a) => {
1015
1052
  return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1016
1053
  Icon,
1017
1054
  {
1055
+ id: id ? `${id}-clear-button` : void 0,
1018
1056
  name: "close",
1019
1057
  onClick: handleSearchReset,
1020
1058
  className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
@@ -1146,23 +1184,23 @@ Percentage.displayName = "Percentage";
1146
1184
  var import_jsx_runtime9 = require("react/jsx-runtime");
1147
1185
  var Search = (_a) => {
1148
1186
  var _b = _a, {
1187
+ id,
1149
1188
  label,
1150
1189
  error,
1151
1190
  children,
1152
1191
  readOnly,
1153
1192
  renderMenu,
1154
1193
  onClick,
1155
- className,
1156
1194
  wrapperClassName,
1157
1195
  removeRoundness
1158
1196
  } = _b, props = __objRest(_b, [
1197
+ "id",
1159
1198
  "label",
1160
1199
  "error",
1161
1200
  "children",
1162
1201
  "readOnly",
1163
1202
  "renderMenu",
1164
1203
  "onClick",
1165
- "className",
1166
1204
  "wrapperClassName",
1167
1205
  "removeRoundness"
1168
1206
  ]);
@@ -1185,6 +1223,7 @@ var Search = (_a) => {
1185
1223
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1186
1224
  Input,
1187
1225
  __spreadValues({
1226
+ id,
1188
1227
  variant: "search",
1189
1228
  inputContainerRef,
1190
1229
  ref: inputRef,
@@ -1208,10 +1247,14 @@ var Search = (_a) => {
1208
1247
  setShow(true);
1209
1248
  if (["ArrowUp", "ArrowDown"].includes(e.key)) {
1210
1249
  e.preventDefault();
1211
- const menu = document.querySelector(`[data-menu="${searchMenuName}"]`);
1250
+ const menu = document.querySelector(
1251
+ `[data-menu="${searchMenuName}"]`
1252
+ );
1212
1253
  const selectedMenuOption = menu == null ? void 0 : menu.querySelector("[data-selected]");
1213
1254
  if (selectedMenuOption) {
1214
- const allMenuOptions = Array.from((menu == null ? void 0 : menu.querySelectorAll('[role="menuitem"]')) || []);
1255
+ const allMenuOptions = Array.from(
1256
+ (menu == null ? void 0 : menu.querySelectorAll('[role="menuitem"]')) || []
1257
+ );
1215
1258
  const currentIndex = allMenuOptions.indexOf(selectedMenuOption);
1216
1259
  let targetOption;
1217
1260
  if (e.key === "ArrowDown") {
@@ -1221,7 +1264,9 @@ var Search = (_a) => {
1221
1264
  }
1222
1265
  targetOption == null ? void 0 : targetOption.focus();
1223
1266
  } else {
1224
- const toFocusMenuOption = e.key === "ArrowDown" ? menu == null ? void 0 : menu.querySelector('[role="menuitem"]') : menu == null ? void 0 : menu.querySelector('[role="menuitem"]:last-child');
1267
+ const toFocusMenuOption = e.key === "ArrowDown" ? menu == null ? void 0 : menu.querySelector('[role="menuitem"]') : menu == null ? void 0 : menu.querySelector(
1268
+ '[role="menuitem"]:last-child'
1269
+ );
1225
1270
  toFocusMenuOption == null ? void 0 : toFocusMenuOption.focus();
1226
1271
  }
1227
1272
  }
@@ -1233,6 +1278,7 @@ var Search = (_a) => {
1233
1278
  }, props)
1234
1279
  ),
1235
1280
  renderMenu ? renderMenu({
1281
+ id: `${id}-menu`,
1236
1282
  positionTo: inputContainerRef,
1237
1283
  show,
1238
1284
  setShow,
@@ -1248,6 +1294,7 @@ Search.displayName = "Search";
1248
1294
  var import_jsx_runtime10 = require("react/jsx-runtime");
1249
1295
  var FilterGroup = (_a) => {
1250
1296
  var _b = _a, {
1297
+ id,
1251
1298
  label,
1252
1299
  type = "link",
1253
1300
  open = false,
@@ -1259,6 +1306,7 @@ var FilterGroup = (_a) => {
1259
1306
  searchValue,
1260
1307
  onSearchChange
1261
1308
  } = _b, props = __objRest(_b, [
1309
+ "id",
1262
1310
  "label",
1263
1311
  "type",
1264
1312
  "open",
@@ -1283,7 +1331,9 @@ var FilterGroup = (_a) => {
1283
1331
  const showShowMoreLink = showMore && !isSummary && childArray.length > 5 && !showAllItems && isExpanded;
1284
1332
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1285
1333
  "div",
1286
- __spreadProps(__spreadValues({}, props), {
1334
+ __spreadProps(__spreadValues({
1335
+ id
1336
+ }, props), {
1287
1337
  className: (0, import_clsx10.default)(
1288
1338
  "border-b border-border-primary-normal",
1289
1339
  isSummary ? layoutPaddingBottom : componentPaddingBottom
@@ -1315,6 +1365,7 @@ var FilterGroup = (_a) => {
1315
1365
  ) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1316
1366
  Link,
1317
1367
  {
1368
+ id: id ? `${id}-clear-all` : void 0,
1318
1369
  className: (0, import_clsx10.default)("block", componentPaddingY),
1319
1370
  onClick: handleClearAll,
1320
1371
  children: "Clear All"
@@ -1346,6 +1397,7 @@ var FilterGroup = (_a) => {
1346
1397
  !isSummary && showSearchField && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1347
1398
  Search,
1348
1399
  {
1400
+ id: id ? `${id}-search` : void 0,
1349
1401
  style: { marginBottom: "2px" },
1350
1402
  onChange: onSearchChange,
1351
1403
  value: searchValue
@@ -1355,6 +1407,7 @@ var FilterGroup = (_a) => {
1355
1407
  showShowMoreLink && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1356
1408
  Link,
1357
1409
  {
1410
+ id: id ? `${id}-show-more` : void 0,
1358
1411
  className: (0, import_clsx10.default)("block", "!items-start", componentPaddingY),
1359
1412
  onClick: handleOnShowMore,
1360
1413
  children: "Show More"
@@ -1385,10 +1438,12 @@ var FilterGroup = (_a) => {
1385
1438
  };
1386
1439
  var FilterGroupItem = (_a) => {
1387
1440
  var _b = _a, {
1441
+ id,
1388
1442
  type = "link",
1389
1443
  children,
1390
1444
  onClick
1391
1445
  } = _b, props = __objRest(_b, [
1446
+ "id",
1392
1447
  "type",
1393
1448
  "children",
1394
1449
  "onClick"
@@ -1396,20 +1451,29 @@ var FilterGroupItem = (_a) => {
1396
1451
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1397
1452
  "div",
1398
1453
  __spreadProps(__spreadValues({
1454
+ id,
1399
1455
  onClick: handleClick
1400
1456
  }, props), {
1401
1457
  className: (0, import_clsx10.default)(
1402
1458
  "flex items-center justify-between *:first:flex-1 cursor-pointer",
1403
1459
  type !== "summary" ? "*:first:py-mobile-component-padding *:first:desktop:py-desktop-component-padding *:first:compact:py-desktop-compact-component-padding" : ""
1404
1460
  ),
1405
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FilterGroupItemChildComponent, __spreadProps(__spreadValues({}, props), { type, count: props.count, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "flex items-center justify-between w-full", children: [
1406
- children,
1407
- type !== "summary" && props.count && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { children: [
1408
- "(",
1409
- props.count,
1410
- ")"
1411
- ] })
1412
- ] }) }))
1461
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1462
+ FilterGroupItemChildComponent,
1463
+ __spreadProps(__spreadValues({}, props), {
1464
+ id: id ? `${id}-child` : void 0,
1465
+ type,
1466
+ count: props.count,
1467
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "flex items-center justify-between w-full", children: [
1468
+ children,
1469
+ type !== "summary" && props.count && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { children: [
1470
+ "(",
1471
+ props.count,
1472
+ ")"
1473
+ ] })
1474
+ ] })
1475
+ })
1476
+ )
1413
1477
  })
1414
1478
  );
1415
1479
  function handleClick(e) {
@@ -1426,7 +1490,13 @@ var FilterGroupItemChildComponent = (_a) => {
1426
1490
  "children"
1427
1491
  ]);
1428
1492
  if (type === "checkbox") {
1429
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Checkbox, __spreadValues({ paragraphClassName: "w-full", label: children }, props));
1493
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1494
+ Checkbox,
1495
+ __spreadValues({
1496
+ paragraphClassName: "w-full",
1497
+ label: children
1498
+ }, props)
1499
+ );
1430
1500
  }
1431
1501
  if (type === "summary") {
1432
1502
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(OptionPill, __spreadProps(__spreadValues({ removable: true }, props), { children })) });
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import {
3
3
  OptionPill
4
- } from "../chunk-Z2LOGSGE.js";
4
+ } from "../chunk-4N2PED4P.js";
5
5
  import {
6
6
  Search
7
- } from "../chunk-TWP6YSFO.js";
8
- import "../chunk-OISE6NMA.js";
7
+ } from "../chunk-SKHSGGO3.js";
8
+ import "../chunk-QV2EFOYF.js";
9
9
  import {
10
10
  Label
11
- } from "../chunk-S7R37IUP.js";
11
+ } from "../chunk-S5K22XTH.js";
12
12
  import {
13
13
  Link
14
14
  } from "../chunk-3WTXVSHO.js";
15
- import "../chunk-T6HZARR7.js";
15
+ import "../chunk-MZJS2ZAU.js";
16
16
  import {
17
17
  Checkbox
18
- } from "../chunk-N32PXOA5.js";
19
- import "../chunk-UIQ733QP.js";
18
+ } from "../chunk-UT7XCBZF.js";
19
+ import "../chunk-VG4EPHJA.js";
20
20
  import {
21
21
  Icon
22
22
  } from "../chunk-IGQVA7SC.js";
@@ -40,6 +40,7 @@ import clsx from "clsx";
40
40
  import { jsx, jsxs } from "react/jsx-runtime";
41
41
  var FilterGroup = (_a) => {
42
42
  var _b = _a, {
43
+ id,
43
44
  label,
44
45
  type = "link",
45
46
  open = false,
@@ -51,6 +52,7 @@ var FilterGroup = (_a) => {
51
52
  searchValue,
52
53
  onSearchChange
53
54
  } = _b, props = __objRest(_b, [
55
+ "id",
54
56
  "label",
55
57
  "type",
56
58
  "open",
@@ -75,7 +77,9 @@ var FilterGroup = (_a) => {
75
77
  const showShowMoreLink = showMore && !isSummary && childArray.length > 5 && !showAllItems && isExpanded;
76
78
  return /* @__PURE__ */ jsxs(
77
79
  "div",
78
- __spreadProps(__spreadValues({}, props), {
80
+ __spreadProps(__spreadValues({
81
+ id
82
+ }, props), {
79
83
  className: clsx(
80
84
  "border-b border-border-primary-normal",
81
85
  isSummary ? layoutPaddingBottom : componentPaddingBottom
@@ -107,6 +111,7 @@ var FilterGroup = (_a) => {
107
111
  ) : /* @__PURE__ */ jsx(
108
112
  Link,
109
113
  {
114
+ id: id ? `${id}-clear-all` : void 0,
110
115
  className: clsx("block", componentPaddingY),
111
116
  onClick: handleClearAll,
112
117
  children: "Clear All"
@@ -138,6 +143,7 @@ var FilterGroup = (_a) => {
138
143
  !isSummary && showSearchField && /* @__PURE__ */ jsx(
139
144
  Search,
140
145
  {
146
+ id: id ? `${id}-search` : void 0,
141
147
  style: { marginBottom: "2px" },
142
148
  onChange: onSearchChange,
143
149
  value: searchValue
@@ -147,6 +153,7 @@ var FilterGroup = (_a) => {
147
153
  showShowMoreLink && /* @__PURE__ */ jsx(
148
154
  Link,
149
155
  {
156
+ id: id ? `${id}-show-more` : void 0,
150
157
  className: clsx("block", "!items-start", componentPaddingY),
151
158
  onClick: handleOnShowMore,
152
159
  children: "Show More"
@@ -177,10 +184,12 @@ var FilterGroup = (_a) => {
177
184
  };
178
185
  var FilterGroupItem = (_a) => {
179
186
  var _b = _a, {
187
+ id,
180
188
  type = "link",
181
189
  children,
182
190
  onClick
183
191
  } = _b, props = __objRest(_b, [
192
+ "id",
184
193
  "type",
185
194
  "children",
186
195
  "onClick"
@@ -188,20 +197,29 @@ var FilterGroupItem = (_a) => {
188
197
  return /* @__PURE__ */ jsx(
189
198
  "div",
190
199
  __spreadProps(__spreadValues({
200
+ id,
191
201
  onClick: handleClick
192
202
  }, props), {
193
203
  className: clsx(
194
204
  "flex items-center justify-between *:first:flex-1 cursor-pointer",
195
205
  type !== "summary" ? "*:first:py-mobile-component-padding *:first:desktop:py-desktop-component-padding *:first:compact:py-desktop-compact-component-padding" : ""
196
206
  ),
197
- children: /* @__PURE__ */ jsx(FilterGroupItemChildComponent, __spreadProps(__spreadValues({}, props), { type, count: props.count, children: /* @__PURE__ */ jsxs("span", { className: "flex items-center justify-between w-full", children: [
198
- children,
199
- type !== "summary" && props.count && /* @__PURE__ */ jsxs("span", { children: [
200
- "(",
201
- props.count,
202
- ")"
203
- ] })
204
- ] }) }))
207
+ children: /* @__PURE__ */ jsx(
208
+ FilterGroupItemChildComponent,
209
+ __spreadProps(__spreadValues({}, props), {
210
+ id: id ? `${id}-child` : void 0,
211
+ type,
212
+ count: props.count,
213
+ children: /* @__PURE__ */ jsxs("span", { className: "flex items-center justify-between w-full", children: [
214
+ children,
215
+ type !== "summary" && props.count && /* @__PURE__ */ jsxs("span", { children: [
216
+ "(",
217
+ props.count,
218
+ ")"
219
+ ] })
220
+ ] })
221
+ })
222
+ )
205
223
  })
206
224
  );
207
225
  function handleClick(e) {
@@ -218,7 +236,13 @@ var FilterGroupItemChildComponent = (_a) => {
218
236
  "children"
219
237
  ]);
220
238
  if (type === "checkbox") {
221
- return /* @__PURE__ */ jsx(Checkbox, __spreadValues({ paragraphClassName: "w-full", label: children }, props));
239
+ return /* @__PURE__ */ jsx(
240
+ Checkbox,
241
+ __spreadValues({
242
+ paragraphClassName: "w-full",
243
+ label: children
244
+ }, props)
245
+ );
222
246
  }
223
247
  if (type === "summary") {
224
248
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(OptionPill, __spreadProps(__spreadValues({ removable: true }, props), { children })) });
@@ -25,9 +25,17 @@ __export(FullViewportBox_exports, {
25
25
  module.exports = __toCommonJS(FullViewportBox_exports);
26
26
  var import_jsx_runtime = require("react/jsx-runtime");
27
27
  function FullViewportLayout({
28
- children
28
+ children,
29
+ id
29
30
  }) {
30
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-col min-h-screen min-w-screen p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding items-center justify-center bg-background-grouped-secondary-normal", children });
31
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
32
+ "div",
33
+ {
34
+ id,
35
+ className: "flex flex-col min-h-screen min-w-screen p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding items-center justify-center bg-background-grouped-secondary-normal",
36
+ children
37
+ }
38
+ );
31
39
  }
32
40
  // Annotate the CommonJS export names for ESM import in node:
33
41
  0 && (module.exports = {
@@ -3,9 +3,17 @@ import "../chunk-ORMEWXMH.js";
3
3
  // src/components/FullViewportBox.tsx
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  function FullViewportLayout({
6
- children
6
+ children,
7
+ id
7
8
  }) {
8
- return /* @__PURE__ */ jsx("div", { className: "flex flex-col min-h-screen min-w-screen p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding items-center justify-center bg-background-grouped-secondary-normal", children });
9
+ return /* @__PURE__ */ jsx(
10
+ "div",
11
+ {
12
+ id,
13
+ className: "flex flex-col min-h-screen min-w-screen p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding items-center justify-center bg-background-grouped-secondary-normal",
14
+ children
15
+ }
16
+ );
9
17
  }
10
18
  export {
11
19
  FullViewportLayout
@@ -97,12 +97,14 @@ var Grid = ({
97
97
  sizing = "container",
98
98
  padding,
99
99
  hasSideMenu = false,
100
- columns
100
+ columns,
101
+ id
101
102
  }) => {
102
103
  const childCount = import_react.Children.count(children);
103
104
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
104
105
  "div",
105
106
  {
107
+ id,
106
108
  className: (0, import_clsx.default)(
107
109
  padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
108
110
  padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
@@ -65,12 +65,14 @@ var Grid = ({
65
65
  sizing = "container",
66
66
  padding,
67
67
  hasSideMenu = false,
68
- columns
68
+ columns,
69
+ id
69
70
  }) => {
70
71
  const childCount = Children.count(children);
71
72
  return /* @__PURE__ */ jsx(
72
73
  "div",
73
74
  {
75
+ id,
74
76
  className: clsx(
75
77
  padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
76
78
  padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",