@dmsi/wedgekit-react 0.0.26 → 0.0.28

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
@@ -293,18 +293,21 @@ var Label = (_a) => {
293
293
  padded,
294
294
  className,
295
295
  color,
296
- align
296
+ align,
297
+ id
297
298
  } = _b, props = __objRest(_b, [
298
299
  "as",
299
300
  "padded",
300
301
  "className",
301
302
  "color",
302
- "align"
303
+ "align",
304
+ "id"
303
305
  ]);
304
306
  const Element = as;
305
307
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
306
308
  Element,
307
309
  __spreadProps(__spreadValues({
310
+ id,
308
311
  className: (0, import_clsx3.default)(
309
312
  typography.label,
310
313
  align === "left" && "text-left",
@@ -359,6 +362,7 @@ function formatCurrencyDisplay(value) {
359
362
  var import_jsx_runtime3 = require("react/jsx-runtime");
360
363
  var InputBase = (_a) => {
361
364
  var _b = _a, {
365
+ id,
362
366
  before,
363
367
  after,
364
368
  type,
@@ -375,6 +379,7 @@ var InputBase = (_a) => {
375
379
  wrapperClassName,
376
380
  focus
377
381
  } = _b, props = __objRest(_b, [
382
+ "id",
378
383
  "before",
379
384
  "after",
380
385
  "type",
@@ -396,6 +401,7 @@ var InputBase = (_a) => {
396
401
  "data-focus": focus || null
397
402
  };
398
403
  const inputRef = (0, import_react2.useRef)(null);
404
+ const inputId = `${id}-input`;
399
405
  (0, import_react2.useEffect)(() => {
400
406
  var _a2;
401
407
  const input = inputRef.current;
@@ -436,6 +442,8 @@ var InputBase = (_a) => {
436
442
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
437
443
  "label",
438
444
  {
445
+ id,
446
+ htmlFor: inputId,
439
447
  ref: inputContainerRef,
440
448
  className: (0, import_clsx4.default)(
441
449
  "w-full flex flex-col",
@@ -449,6 +457,7 @@ var InputBase = (_a) => {
449
457
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
450
458
  Label,
451
459
  {
460
+ id: id ? `${id}-label` : void 0,
452
461
  className: (0, import_clsx4.default)(
453
462
  props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
454
463
  ),
@@ -485,7 +494,7 @@ var InputBase = (_a) => {
485
494
  type,
486
495
  required
487
496
  }, props), attributes), {
488
- id: props.id,
497
+ id: inputId,
489
498
  className: (0, import_clsx4.default)(
490
499
  "flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
491
500
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
@@ -503,7 +512,7 @@ var InputBase = (_a) => {
503
512
  ]
504
513
  }
505
514
  ),
506
- caption
515
+ caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { id: id ? `${id}-caption` : void 0, children: caption })
507
516
  ]
508
517
  }
509
518
  );
@@ -517,7 +526,8 @@ var Input = (_a) => {
517
526
  value: propValue,
518
527
  onChange,
519
528
  onBlur,
520
- onClear
529
+ onClear,
530
+ id
521
531
  } = _b, props = __objRest(_b, [
522
532
  "variant",
523
533
  "decimals",
@@ -526,7 +536,8 @@ var Input = (_a) => {
526
536
  "value",
527
537
  "onChange",
528
538
  "onBlur",
529
- "onClear"
539
+ "onClear",
540
+ "id"
530
541
  ]);
531
542
  const [internalValue, setInternalValue] = (0, import_react2.useState)("");
532
543
  const [displayValue, setDisplayValue] = (0, import_react2.useState)("");
@@ -552,7 +563,9 @@ var Input = (_a) => {
552
563
  }, [propValue, decimals, variant]);
553
564
  const getInputProps = () => {
554
565
  var _a2;
555
- const baseProps = __spreadProps(__spreadValues(__spreadValues({}, props), getDecimalPlaceholder(decimals)), {
566
+ const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
567
+ id
568
+ }), getDecimalPlaceholder(decimals)), {
556
569
  value: propValue
557
570
  });
558
571
  switch (variant) {
@@ -599,6 +612,7 @@ var Input = (_a) => {
599
612
  return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
600
613
  Icon,
601
614
  {
615
+ id: id ? `${id}-clear-button` : void 0,
602
616
  name: "close",
603
617
  onClick: handleSearchReset,
604
618
  className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
@@ -730,23 +744,23 @@ Percentage.displayName = "Percentage";
730
744
  var import_jsx_runtime4 = require("react/jsx-runtime");
731
745
  var Search = (_a) => {
732
746
  var _b = _a, {
747
+ id,
733
748
  label,
734
749
  error,
735
750
  children,
736
751
  readOnly,
737
752
  renderMenu,
738
753
  onClick,
739
- className,
740
754
  wrapperClassName,
741
755
  removeRoundness
742
756
  } = _b, props = __objRest(_b, [
757
+ "id",
743
758
  "label",
744
759
  "error",
745
760
  "children",
746
761
  "readOnly",
747
762
  "renderMenu",
748
763
  "onClick",
749
- "className",
750
764
  "wrapperClassName",
751
765
  "removeRoundness"
752
766
  ]);
@@ -769,6 +783,7 @@ var Search = (_a) => {
769
783
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
770
784
  Input,
771
785
  __spreadValues({
786
+ id,
772
787
  variant: "search",
773
788
  inputContainerRef,
774
789
  ref: inputRef,
@@ -792,10 +807,14 @@ var Search = (_a) => {
792
807
  setShow(true);
793
808
  if (["ArrowUp", "ArrowDown"].includes(e.key)) {
794
809
  e.preventDefault();
795
- const menu = document.querySelector(`[data-menu="${searchMenuName}"]`);
810
+ const menu = document.querySelector(
811
+ `[data-menu="${searchMenuName}"]`
812
+ );
796
813
  const selectedMenuOption = menu == null ? void 0 : menu.querySelector("[data-selected]");
797
814
  if (selectedMenuOption) {
798
- const allMenuOptions = Array.from((menu == null ? void 0 : menu.querySelectorAll('[role="menuitem"]')) || []);
815
+ const allMenuOptions = Array.from(
816
+ (menu == null ? void 0 : menu.querySelectorAll('[role="menuitem"]')) || []
817
+ );
799
818
  const currentIndex = allMenuOptions.indexOf(selectedMenuOption);
800
819
  let targetOption;
801
820
  if (e.key === "ArrowDown") {
@@ -805,7 +824,9 @@ var Search = (_a) => {
805
824
  }
806
825
  targetOption == null ? void 0 : targetOption.focus();
807
826
  } else {
808
- const toFocusMenuOption = e.key === "ArrowDown" ? menu == null ? void 0 : menu.querySelector('[role="menuitem"]') : menu == null ? void 0 : menu.querySelector('[role="menuitem"]:last-child');
827
+ const toFocusMenuOption = e.key === "ArrowDown" ? menu == null ? void 0 : menu.querySelector('[role="menuitem"]') : menu == null ? void 0 : menu.querySelector(
828
+ '[role="menuitem"]:last-child'
829
+ );
809
830
  toFocusMenuOption == null ? void 0 : toFocusMenuOption.focus();
810
831
  }
811
832
  }
@@ -817,6 +838,7 @@ var Search = (_a) => {
817
838
  }, props)
818
839
  ),
819
840
  renderMenu ? renderMenu({
841
+ id: `${id}-menu`,
820
842
  positionTo: inputContainerRef,
821
843
  show,
822
844
  setShow,
@@ -1174,6 +1196,7 @@ function findDocumentRoot(element) {
1174
1196
  var import_jsx_runtime5 = require("react/jsx-runtime");
1175
1197
  var Menu = (_a) => {
1176
1198
  var _b = _a, {
1199
+ id,
1177
1200
  children,
1178
1201
  className,
1179
1202
  ref,
@@ -1190,6 +1213,7 @@ var Menu = (_a) => {
1190
1213
  autoFocusOff,
1191
1214
  menuName
1192
1215
  } = _b, props = __objRest(_b, [
1216
+ "id",
1193
1217
  "children",
1194
1218
  "className",
1195
1219
  "ref",
@@ -1269,6 +1293,7 @@ var Menu = (_a) => {
1269
1293
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1270
1294
  "div",
1271
1295
  __spreadProps(__spreadValues({
1296
+ id,
1272
1297
  ref: setRefs,
1273
1298
  className: (0, import_clsx5.default)(
1274
1299
  "shadow-4 rounded-base bg-background-grouped-primary-normal overflow-x-hidden overflow-y-auto flex flex-col outline-0",
@@ -1414,7 +1439,8 @@ var Paragraph = (_a) => {
1414
1439
  tall,
1415
1440
  addOverflow,
1416
1441
  children,
1417
- as = "p"
1442
+ as = "p",
1443
+ id
1418
1444
  } = _b, props = __objRest(_b, [
1419
1445
  "className",
1420
1446
  "color",
@@ -1423,12 +1449,15 @@ var Paragraph = (_a) => {
1423
1449
  "tall",
1424
1450
  "addOverflow",
1425
1451
  "children",
1426
- "as"
1452
+ "as",
1453
+ "id"
1427
1454
  ]);
1428
1455
  const Element = as;
1429
1456
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1430
1457
  Element,
1431
- __spreadProps(__spreadValues({}, props), {
1458
+ __spreadProps(__spreadValues({
1459
+ id
1460
+ }, props), {
1432
1461
  className: (0, import_clsx6.default)(
1433
1462
  typography.paragraph,
1434
1463
  className,
@@ -1451,6 +1480,7 @@ Paragraph.displayName = "Paragraph";
1451
1480
  // src/components/MenuOption.tsx
1452
1481
  var import_jsx_runtime7 = require("react/jsx-runtime");
1453
1482
  var MenuOption = ({
1483
+ id,
1454
1484
  children,
1455
1485
  disabled = false,
1456
1486
  variant = "normal",
@@ -1522,6 +1552,7 @@ var MenuOption = ({
1522
1552
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1523
1553
  "div",
1524
1554
  __spreadProps(__spreadValues({
1555
+ id,
1525
1556
  ref: actualRef,
1526
1557
  className: (0, import_clsx7.default)(
1527
1558
  "flex items-center cursor-pointer w-full text-left relative outline-none",
@@ -1562,7 +1593,15 @@ var MenuOption = ({
1562
1593
  onMouseLeave: handleMouseLeave,
1563
1594
  "data-submenu-parent": menuId.current,
1564
1595
  "data-menu-level": subMenuLevel + 1,
1565
- children: subMenu({ menuId: menuId.current, positionTo: actualRef, mobilePositionTo, position: "right", subMenuLevel, mobileBackMenuOption, mobileHide: isMobile && activeMenu !== menuId.current })
1596
+ children: subMenu({
1597
+ menuId: menuId.current,
1598
+ positionTo: actualRef,
1599
+ mobilePositionTo,
1600
+ position: "right",
1601
+ subMenuLevel,
1602
+ mobileBackMenuOption,
1603
+ mobileHide: isMobile && activeMenu !== menuId.current
1604
+ })
1566
1605
  }
1567
1606
  )
1568
1607
  ] });
@@ -1581,6 +1620,7 @@ var MenuOption = ({
1581
1620
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1582
1621
  MenuOption,
1583
1622
  {
1623
+ id: id ? `${id}-back` : void 0,
1584
1624
  onClick: () => {
1585
1625
  closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
1586
1626
  },
@@ -1596,7 +1636,10 @@ function highlightMatch(text, searchValue) {
1596
1636
  if (!searchValue || !searchValue.trim()) {
1597
1637
  return text;
1598
1638
  }
1599
- const regex = new RegExp(`(${searchValue.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`, "gi");
1639
+ const regex = new RegExp(
1640
+ `(${searchValue.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`,
1641
+ "gi"
1642
+ );
1600
1643
  const parts = text.split(regex);
1601
1644
  return parts.map(
1602
1645
  (part, index) => regex.test(part) ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "font-bold", children: part }, index) : part
@@ -1608,6 +1651,7 @@ var import_jsx_runtime8 = require("react/jsx-runtime");
1608
1651
  var DataGridCell = (0, import_react8.memo)(
1609
1652
  (_a) => {
1610
1653
  var _b = _a, {
1654
+ id,
1611
1655
  type = "default",
1612
1656
  component = "static",
1613
1657
  children,
@@ -1623,6 +1667,7 @@ var DataGridCell = (0, import_react8.memo)(
1623
1667
  center,
1624
1668
  width
1625
1669
  } = _b, props = __objRest(_b, [
1670
+ "id",
1626
1671
  "type",
1627
1672
  "component",
1628
1673
  "children",
@@ -1704,6 +1749,7 @@ var DataGridCell = (0, import_react8.memo)(
1704
1749
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1705
1750
  Element,
1706
1751
  __spreadProps(__spreadValues({
1752
+ id,
1707
1753
  className: (0, import_clsx8.default)("flex", !width && "flex-1"),
1708
1754
  style: { width }
1709
1755
  }, props), {
@@ -1731,11 +1777,13 @@ function DraggableCellHeader(_a) {
1731
1777
  var _b = _a, {
1732
1778
  header,
1733
1779
  children,
1734
- locked = false
1780
+ locked = false,
1781
+ id
1735
1782
  } = _b, props = __objRest(_b, [
1736
1783
  "header",
1737
1784
  "children",
1738
- "locked"
1785
+ "locked",
1786
+ "id"
1739
1787
  ]);
1740
1788
  var _a2;
1741
1789
  const { attributes, isDragging, listeners, setNodeRef, transform, node } = (0, import_sortable.useSortable)({
@@ -1773,6 +1821,7 @@ function DraggableCellHeader(_a) {
1773
1821
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1774
1822
  DataGridCell,
1775
1823
  __spreadProps(__spreadValues(__spreadValues(__spreadProps(__spreadValues({
1824
+ id,
1776
1825
  locked,
1777
1826
  type: "header",
1778
1827
  component: "header",
@@ -1788,6 +1837,7 @@ function DraggableCellHeader(_a) {
1788
1837
  header.column.getCanFilter() && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1789
1838
  Menu,
1790
1839
  {
1840
+ id: id ? `${id}-menu` : void 0,
1791
1841
  ref: menuRootRef,
1792
1842
  positionTo: node,
1793
1843
  show: showMenu,
@@ -1795,12 +1845,16 @@ function DraggableCellHeader(_a) {
1795
1845
  mobileHide,
1796
1846
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1797
1847
  MenuOption,
1798
- __spreadProps(__spreadValues({}, subMenuListeners), {
1848
+ __spreadProps(__spreadValues({
1849
+ id: id ? `${id}-filter-option` : void 0
1850
+ }, subMenuListeners), {
1799
1851
  subMenu: (_b2) => {
1800
1852
  var _c = _b2, { menuId, subMenuLevel } = _c, props2 = __objRest(_c, ["menuId", "subMenuLevel"]);
1801
1853
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1802
1854
  Menu,
1803
- __spreadProps(__spreadValues({}, props2), {
1855
+ __spreadProps(__spreadValues({
1856
+ id: id ? `${id}-filter-submenu` : void 0
1857
+ }, props2), {
1804
1858
  show: isMenuActive(menuId, subMenuLevel),
1805
1859
  ref: (el) => {
1806
1860
  registerSubMenu(menuId, el);
@@ -1809,6 +1863,7 @@ function DraggableCellHeader(_a) {
1809
1863
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: (0, import_clsx8.default)(paddingUsingComponentGap), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1810
1864
  Search,
1811
1865
  {
1866
+ id: id ? `${id}-filter-search` : void 0,
1812
1867
  onChange: (event) => {
1813
1868
  setFilter(event.target.value);
1814
1869
  },
@@ -1823,6 +1878,7 @@ function DraggableCellHeader(_a) {
1823
1878
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1824
1879
  MenuOption,
1825
1880
  {
1881
+ id: id ? `${id}-filter-contains` : void 0,
1826
1882
  onClick: handleFilterFnChange,
1827
1883
  before: menuOptionIcon("includesString"),
1828
1884
  children: "Contains"
@@ -1831,6 +1887,7 @@ function DraggableCellHeader(_a) {
1831
1887
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1832
1888
  MenuOption,
1833
1889
  {
1890
+ id: id ? `${id}-filter-startswith` : void 0,
1834
1891
  onClick: handleFilterFnChange,
1835
1892
  before: menuOptionIcon("startsWith"),
1836
1893
  children: "Starts with"
@@ -1839,6 +1896,7 @@ function DraggableCellHeader(_a) {
1839
1896
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1840
1897
  MenuOption,
1841
1898
  {
1899
+ id: id ? `${id}-filter-endswith` : void 0,
1842
1900
  onClick: handleFilterFnChange,
1843
1901
  before: menuOptionIcon("endsWith"),
1844
1902
  children: "Ends with"
@@ -3,17 +3,17 @@ import {
3
3
  DataGridCell,
4
4
  DragAlongCell,
5
5
  DraggableCellHeader
6
- } from "../chunk-GCPJH5R6.js";
7
- import "../chunk-L4UM372R.js";
6
+ } from "../chunk-S5KPS4IQ.js";
7
+ import "../chunk-VC3R5EUH.js";
8
8
  import "../chunk-Z4UCFUF7.js";
9
- import "../chunk-YDREJNAS.js";
9
+ import "../chunk-PDDZ5PMY.js";
10
10
  import "../chunk-SEKKGFM6.js";
11
- import "../chunk-TWP6YSFO.js";
11
+ import "../chunk-SKHSGGO3.js";
12
12
  import "../chunk-WVUIIBRR.js";
13
13
  import "../chunk-4T7F5BZZ.js";
14
- import "../chunk-OISE6NMA.js";
15
- import "../chunk-S7R37IUP.js";
16
- import "../chunk-UIQ733QP.js";
14
+ import "../chunk-QV2EFOYF.js";
15
+ import "../chunk-S5K22XTH.js";
16
+ import "../chunk-VG4EPHJA.js";
17
17
  import "../chunk-IGQVA7SC.js";
18
18
  import "../chunk-RDLEIAQU.js";
19
19
  import "../chunk-ORMEWXMH.js";