@dmsi/wedgekit-react 0.0.500 → 0.0.502

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 (221) hide show
  1. package/dist/{chunk-ZQJMNPCF.js → chunk-25RZP3VR.js} +4 -4
  2. package/dist/{chunk-PIBHG6DH.js → chunk-2TNHD4MQ.js} +1 -1
  3. package/dist/{chunk-3DEYCNUE.js → chunk-3UUCDNX3.js} +4 -4
  4. package/dist/{chunk-LPY6PMAY.js → chunk-45AHDOAU.js} +1 -1
  5. package/dist/{chunk-JUFBGNWW.js → chunk-5DQVYX6H.js} +3 -3
  6. package/dist/{chunk-XIXQUEYC.js → chunk-5YNEY3WO.js} +19 -8
  7. package/dist/{chunk-IXR65MOU.js → chunk-7KWFEH56.js} +4 -0
  8. package/dist/{chunk-4LBQSSGH.js → chunk-B2O4TEOI.js} +4 -4
  9. package/dist/{chunk-4UH72JT2.js → chunk-BWBSDSA7.js} +6 -6
  10. package/dist/{chunk-UCJUC5AZ.js → chunk-BYC6QID5.js} +1 -1
  11. package/dist/{chunk-YD3HWIUJ.js → chunk-D4TFZ2WM.js} +7 -7
  12. package/dist/{chunk-HIKWIY5Q.js → chunk-F6RZ7MUE.js} +3 -3
  13. package/dist/{chunk-XHQOTLG6.js → chunk-FJRYHJUV.js} +1 -1
  14. package/dist/{chunk-2F3R3WXW.js → chunk-GYEXSNFP.js} +5 -5
  15. package/dist/{chunk-5MLYAQQO.js → chunk-HK4S6TRH.js} +1 -1
  16. package/dist/{chunk-AL5QIRY3.js → chunk-HXGJVYGQ.js} +1 -1
  17. package/dist/{chunk-KHIJYWZ7.js → chunk-KIAF4N7M.js} +1 -1
  18. package/dist/{chunk-G4AWTFBQ.js → chunk-KPBG7D3V.js} +3 -3
  19. package/dist/{chunk-GRGDX7JC.js → chunk-LB7UT6F3.js} +2 -2
  20. package/dist/{chunk-TOKS63IK.js → chunk-LJLHGLTS.js} +5 -5
  21. package/dist/{chunk-5R4C5F63.js → chunk-LKKFQLWD.js} +20 -10
  22. package/dist/{chunk-WEAVZEE4.js → chunk-M7WHWZ2J.js} +2 -2
  23. package/dist/{chunk-7GHD74J3.js → chunk-MDB26F6T.js} +1 -1
  24. package/dist/{chunk-Z6HIIJK3.js → chunk-MO52RSXV.js} +1 -1
  25. package/dist/{chunk-IY7SXEVY.js → chunk-MUOYLXBF.js} +3 -3
  26. package/dist/{chunk-PCQXSYTH.js → chunk-MV6W7OMC.js} +3 -3
  27. package/dist/{chunk-H2KC5XUY.js → chunk-MXSJF6TW.js} +1 -1
  28. package/dist/{chunk-7BVUTFZ5.js → chunk-OWHPPZZA.js} +2 -2
  29. package/dist/{chunk-G7EOLHST.js → chunk-PJL5XESN.js} +1 -1
  30. package/dist/{chunk-QMSPTD6L.js → chunk-PRN2EQBX.js} +1 -1
  31. package/dist/{chunk-BTKWHCUE.js → chunk-PS6UJZVH.js} +1 -1
  32. package/dist/{chunk-TWDH7ZDS.js → chunk-QV3NANQC.js} +19 -18
  33. package/dist/{chunk-6TYWM26K.js → chunk-SUSUNSVZ.js} +2 -2
  34. package/dist/{chunk-X4UK7HE2.js → chunk-TAPYQBQU.js} +5 -5
  35. package/dist/{chunk-OZBB6RFM.js → chunk-TMHOK37S.js} +1 -1
  36. package/dist/{chunk-DORD2EBO.js → chunk-TPXH53SA.js} +3 -3
  37. package/dist/{chunk-KW6V7O3H.js → chunk-UI7P5J5S.js} +15 -5
  38. package/dist/{chunk-YEZBNQZI.js → chunk-VOSQMHNF.js} +1 -1
  39. package/dist/{chunk-B53XDCLO.js → chunk-VS53C5ZD.js} +6 -6
  40. package/dist/{chunk-ZSETMD4A.js → chunk-WMPWWFUJ.js} +1 -1
  41. package/dist/{chunk-FG7GNGE3.js → chunk-WVVEOCEH.js} +1 -1
  42. package/dist/components/AccessChangerTabItem.cjs +3 -0
  43. package/dist/components/AccessChangerTabItem.js +2 -2
  44. package/dist/components/Accordion.cjs +5 -2
  45. package/dist/components/Accordion.js +4 -4
  46. package/dist/components/Alert.cjs +5 -2
  47. package/dist/components/Alert.js +6 -6
  48. package/dist/components/Breadcrumbs.cjs +4 -1
  49. package/dist/components/Breadcrumbs.js +3 -3
  50. package/dist/components/Button.cjs +3 -0
  51. package/dist/components/Button.js +2 -2
  52. package/dist/components/CalendarRange.cjs +18 -5
  53. package/dist/components/CalendarRange.css +28 -5
  54. package/dist/components/CalendarRange.js +38 -38
  55. package/dist/components/Caption.cjs +3 -0
  56. package/dist/components/Caption.js +2 -2
  57. package/dist/components/Checkbox.cjs +3 -0
  58. package/dist/components/Checkbox.js +3 -3
  59. package/dist/components/CompactImagesPreview.cjs +5 -2
  60. package/dist/components/CompactImagesPreview.js +3 -3
  61. package/dist/components/ContentTab.cjs +3 -0
  62. package/dist/components/ContentTab.js +3 -3
  63. package/dist/components/ContentTabs.cjs +3 -0
  64. package/dist/components/ContentTabs.js +3 -3
  65. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +18 -5
  66. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +28 -5
  67. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +38 -38
  68. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +18 -5
  69. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +28 -5
  70. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +38 -38
  71. package/dist/components/DataGrid/PinnedColumns.cjs +18 -5
  72. package/dist/components/DataGrid/PinnedColumns.css +28 -5
  73. package/dist/components/DataGrid/PinnedColumns.js +38 -38
  74. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +18 -5
  75. package/dist/components/DataGrid/TableBody/LoadingCell.css +28 -5
  76. package/dist/components/DataGrid/TableBody/LoadingCell.js +38 -38
  77. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +18 -5
  78. package/dist/components/DataGrid/TableBody/TableBodyRow.css +28 -5
  79. package/dist/components/DataGrid/TableBody/TableBodyRow.js +38 -38
  80. package/dist/components/DataGrid/TableBody/index.cjs +18 -5
  81. package/dist/components/DataGrid/TableBody/index.css +28 -5
  82. package/dist/components/DataGrid/TableBody/index.js +38 -38
  83. package/dist/components/DataGrid/index.cjs +18 -5
  84. package/dist/components/DataGrid/index.css +28 -5
  85. package/dist/components/DataGrid/index.js +38 -38
  86. package/dist/components/DataGrid/utils.cjs +18 -5
  87. package/dist/components/DataGrid/utils.css +28 -5
  88. package/dist/components/DataGrid/utils.js +38 -38
  89. package/dist/components/DataGridCell.cjs +18 -5
  90. package/dist/components/DataGridCell.js +8 -8
  91. package/dist/components/DateInput.cjs +18 -5
  92. package/dist/components/DateInput.css +28 -5
  93. package/dist/components/DateInput.js +38 -38
  94. package/dist/components/DateRangeInput.cjs +18 -5
  95. package/dist/components/DateRangeInput.css +28 -5
  96. package/dist/components/DateRangeInput.js +38 -38
  97. package/dist/components/Display.cjs +3 -0
  98. package/dist/components/Display.js +2 -2
  99. package/dist/components/FilterGroup.cjs +3 -0
  100. package/dist/components/FilterGroup.js +11 -11
  101. package/dist/components/Heading.cjs +3 -0
  102. package/dist/components/Heading.js +2 -2
  103. package/dist/components/HorizontalDivider.cjs +40 -3
  104. package/dist/components/HorizontalDivider.js +18 -4
  105. package/dist/components/Input.cjs +3 -0
  106. package/dist/components/Input.js +4 -4
  107. package/dist/components/InputGroup.cjs +3 -0
  108. package/dist/components/InputGroup.js +2 -2
  109. package/dist/components/Label.cjs +3 -0
  110. package/dist/components/Label.js +2 -2
  111. package/dist/components/Link.cjs +3 -0
  112. package/dist/components/Link.js +2 -2
  113. package/dist/components/ListGroup.cjs +5 -2
  114. package/dist/components/ListGroup.js +4 -4
  115. package/dist/components/MainBar.cjs +3 -0
  116. package/dist/components/MainBar.js +1 -1
  117. package/dist/components/MenuOption.cjs +18 -5
  118. package/dist/components/MenuOption.js +5 -5
  119. package/dist/components/MobileDataGrid/ColumnList.cjs +73 -9
  120. package/dist/components/MobileDataGrid/ColumnList.js +11 -8
  121. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +18 -5
  122. package/dist/components/MobileDataGrid/ColumnSelector/index.css +28 -5
  123. package/dist/components/MobileDataGrid/ColumnSelector/index.js +38 -38
  124. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +62 -4
  125. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +6 -3
  126. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +73 -9
  127. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +10 -7
  128. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +21 -7
  129. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +28 -5
  130. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +38 -38
  131. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +65 -7
  132. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +8 -5
  133. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +65 -7
  134. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +12 -12
  135. package/dist/components/MobileDataGrid/index.cjs +42 -15
  136. package/dist/components/MobileDataGrid/index.css +28 -5
  137. package/dist/components/MobileDataGrid/index.js +38 -38
  138. package/dist/components/Modal.cjs +3 -0
  139. package/dist/components/Modal.js +7 -7
  140. package/dist/components/ModalButtons.cjs +3 -0
  141. package/dist/components/ModalButtons.js +3 -3
  142. package/dist/components/ModalContent.cjs +3 -0
  143. package/dist/components/ModalContent.js +2 -2
  144. package/dist/components/ModalHeader.cjs +3 -0
  145. package/dist/components/ModalHeader.js +4 -4
  146. package/dist/components/NavigationTab.cjs +3 -0
  147. package/dist/components/NavigationTab.js +3 -3
  148. package/dist/components/NavigationTabs.cjs +3 -0
  149. package/dist/components/NavigationTabs.js +3 -3
  150. package/dist/components/NestedMenu.cjs +18 -5
  151. package/dist/components/NestedMenu.js +8 -8
  152. package/dist/components/Notification.cjs +5 -2
  153. package/dist/components/Notification.js +7 -7
  154. package/dist/components/OptionPill.cjs +3 -0
  155. package/dist/components/OptionPill.js +4 -4
  156. package/dist/components/PDFViewer/DownloadIcon.cjs +3 -0
  157. package/dist/components/PDFViewer/DownloadIcon.js +3 -3
  158. package/dist/components/PDFViewer/PDFElement.cjs +5 -2
  159. package/dist/components/PDFViewer/PDFElement.js +3 -3
  160. package/dist/components/PDFViewer/PDFNavigation.cjs +5 -2
  161. package/dist/components/PDFViewer/PDFNavigation.js +6 -6
  162. package/dist/components/PDFViewer/index.cjs +5 -2
  163. package/dist/components/PDFViewer/index.js +13 -13
  164. package/dist/components/Pagination.cjs +3 -0
  165. package/dist/components/Pagination.js +3 -3
  166. package/dist/components/Paragraph.cjs +3 -0
  167. package/dist/components/Paragraph.js +2 -2
  168. package/dist/components/Password.cjs +3 -0
  169. package/dist/components/Password.js +4 -4
  170. package/dist/components/ProductImagePreview/index.cjs +5 -2
  171. package/dist/components/ProductImagePreview/index.js +4 -4
  172. package/dist/components/ProjectBar.cjs +3 -0
  173. package/dist/components/ProjectBar.js +1 -1
  174. package/dist/components/Radio.cjs +3 -0
  175. package/dist/components/Radio.js +2 -2
  176. package/dist/components/Search.cjs +3 -0
  177. package/dist/components/Search.js +5 -5
  178. package/dist/components/Select.cjs +3 -0
  179. package/dist/components/Select.js +5 -5
  180. package/dist/components/SideMenuGroup.cjs +5 -2
  181. package/dist/components/SideMenuGroup.js +3 -3
  182. package/dist/components/SideMenuItem.cjs +5 -2
  183. package/dist/components/SideMenuItem.js +3 -3
  184. package/dist/components/SimpleTable.cjs +5 -2
  185. package/dist/components/SimpleTable.js +4 -4
  186. package/dist/components/Stack.cjs +5 -2
  187. package/dist/components/Stack.js +2 -2
  188. package/dist/components/StatusPill.cjs +3 -0
  189. package/dist/components/StatusPill.js +2 -2
  190. package/dist/components/Stepper.cjs +3 -0
  191. package/dist/components/Stepper.js +7 -7
  192. package/dist/components/Subheader.cjs +3 -0
  193. package/dist/components/Subheader.js +2 -2
  194. package/dist/components/Swatch.cjs +5 -2
  195. package/dist/components/Swatch.js +5 -5
  196. package/dist/components/Textarea.cjs +3 -0
  197. package/dist/components/Textarea.js +1 -1
  198. package/dist/components/Time.cjs +5 -2
  199. package/dist/components/Time.js +5 -5
  200. package/dist/components/Toast.cjs +3 -0
  201. package/dist/components/Toast.js +6 -6
  202. package/dist/components/Tooltip.cjs +3 -0
  203. package/dist/components/Tooltip.js +2 -2
  204. package/dist/components/TopBar.cjs +3 -0
  205. package/dist/components/TopBar.js +1 -1
  206. package/dist/components/Upload.cjs +5 -2
  207. package/dist/components/Upload.js +6 -6
  208. package/dist/components/index.cjs +42 -15
  209. package/dist/components/index.css +28 -5
  210. package/dist/components/index.js +45 -45
  211. package/dist/index.css +28 -5
  212. package/package.json +1 -1
  213. package/src/classNames.ts +4 -0
  214. package/src/components/Breadcrumbs.tsx +1 -1
  215. package/src/components/HorizontalDivider.tsx +16 -3
  216. package/src/components/MenuOption.tsx +16 -4
  217. package/src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx +12 -5
  218. package/src/components/MobileDataGrid/MobileDataGridCard/index.tsx +11 -2
  219. package/src/components/MobileDataGrid/MobileDataGridHeader.tsx +1 -0
  220. package/src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx +1 -1
  221. package/src/components/Stack.tsx +1 -0
@@ -184,6 +184,9 @@ var layoutPaddingBottom = (0, import_clsx.default)(
184
184
  var layoutPaddingY = (0, import_clsx.default)(
185
185
  "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
186
186
  );
187
+ var layoutPaddingX = (0, import_clsx.default)(
188
+ "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding"
189
+ );
187
190
  var containerPaddingX = (0, import_clsx.default)(
188
191
  "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
189
192
  );
@@ -255,18 +258,73 @@ var Paragraph = (_a) => {
255
258
  };
256
259
  Paragraph.displayName = "Paragraph";
257
260
 
261
+ // src/utils/date.ts
262
+ function parseDateParts(dateString) {
263
+ const [yearStr, monthStr, dayStr] = dateString.split("-");
264
+ if (!yearStr || !monthStr || !dayStr) {
265
+ return null;
266
+ }
267
+ const year = parseInt(yearStr, 10);
268
+ const month = parseInt(monthStr, 10);
269
+ const day = parseInt(dayStr, 10);
270
+ if (isNaN(year) || isNaN(month) || isNaN(day)) {
271
+ return null;
272
+ }
273
+ return { year, month, day };
274
+ }
275
+ function isValidDateRange(month, day) {
276
+ if (month < 1 || month > 12) {
277
+ return false;
278
+ }
279
+ if (day < 1 || day > 31) {
280
+ return false;
281
+ }
282
+ return true;
283
+ }
284
+ function formatDatePartsToDisplay(year, month, day) {
285
+ const paddedMonth = month.toString().padStart(2, "0");
286
+ const paddedDay = day.toString().padStart(2, "0");
287
+ return `${paddedMonth}/${paddedDay}/${year}`;
288
+ }
289
+ function formatDate(date) {
290
+ if (!date) {
291
+ return "";
292
+ }
293
+ try {
294
+ const dateParts = parseDateParts(date);
295
+ if (!dateParts) {
296
+ return "";
297
+ }
298
+ const { year, month, day } = dateParts;
299
+ if (!isValidDateRange(month, day)) {
300
+ return "";
301
+ }
302
+ return formatDatePartsToDisplay(year, month, day);
303
+ } catch (error) {
304
+ console.error("Error formatting date:", error);
305
+ return "";
306
+ }
307
+ }
308
+
258
309
  // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
259
310
  var import_jsx_runtime2 = require("react/jsx-runtime");
260
311
  function MobileDataGridColumn(props) {
261
- var _a;
312
+ var _a, _b;
262
313
  const { column, data } = props;
263
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "grid grid-cols-2 gap-2 px-3 flex-1", children: [
314
+ let value;
315
+ if (column.id) {
316
+ value = data[column.id];
317
+ if (((_a = column.meta) == null ? void 0 : _a.format) === "date" && typeof value === "string") {
318
+ value = formatDate(value);
319
+ }
320
+ }
321
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
264
322
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
265
- (_a = column.header) == null ? void 0 : _a.toString(),
323
+ (_b = column.header) == null ? void 0 : _b.toString(),
266
324
  ":"
267
325
  ] }),
268
326
  " ",
269
- column.id && data[column.id] ? data[column.id] : null
327
+ value ? value : null
270
328
  ] });
271
329
  }
272
330
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,8 +1,11 @@
1
1
  import {
2
2
  MobileDataGridColumn
3
- } from "../../../chunk-KW6V7O3H.js";
4
- import "../../../chunk-ZSETMD4A.js";
5
- import "../../../chunk-IXR65MOU.js";
3
+ } from "../../../chunk-UI7P5J5S.js";
4
+ import "../../../chunk-VXWSAIB5.js";
5
+ import "../../../chunk-R3EQIDBX.js";
6
+ import "../../../chunk-5UH6QUFB.js";
7
+ import "../../../chunk-WMPWWFUJ.js";
8
+ import "../../../chunk-7KWFEH56.js";
6
9
  import "../../../chunk-ORMEWXMH.js";
7
10
  export {
8
11
  MobileDataGridColumn
@@ -219,6 +219,9 @@ var layoutPaddingBottom = (0, import_clsx2.default)(
219
219
  var layoutPaddingY = (0, import_clsx2.default)(
220
220
  "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
221
221
  );
222
+ var layoutPaddingX = (0, import_clsx2.default)(
223
+ "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding"
224
+ );
222
225
  var containerPaddingX = (0, import_clsx2.default)(
223
226
  "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
224
227
  );
@@ -423,7 +426,7 @@ var Stack = (_a) => {
423
426
  id,
424
427
  "data-testid": testid
425
428
  }, props), {
426
- style: {
429
+ style: __spreadValues({
427
430
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
428
431
  maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
429
432
  maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
@@ -448,7 +451,7 @@ var Stack = (_a) => {
448
451
  flexWrap,
449
452
  paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
450
453
  gap: (_g = props.style) == null ? void 0 : _g.gap
451
- },
454
+ }, props.style),
452
455
  className: (0, import_clsx4.default)(
453
456
  "scrollbar-thin",
454
457
  "max-w-screen",
@@ -653,18 +656,73 @@ Checkbox.displayName = "Checkbox";
653
656
  // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
654
657
  var import_clsx7 = __toESM(require("clsx"), 1);
655
658
 
659
+ // src/utils/date.ts
660
+ function parseDateParts(dateString) {
661
+ const [yearStr, monthStr, dayStr] = dateString.split("-");
662
+ if (!yearStr || !monthStr || !dayStr) {
663
+ return null;
664
+ }
665
+ const year = parseInt(yearStr, 10);
666
+ const month = parseInt(monthStr, 10);
667
+ const day = parseInt(dayStr, 10);
668
+ if (isNaN(year) || isNaN(month) || isNaN(day)) {
669
+ return null;
670
+ }
671
+ return { year, month, day };
672
+ }
673
+ function isValidDateRange(month, day) {
674
+ if (month < 1 || month > 12) {
675
+ return false;
676
+ }
677
+ if (day < 1 || day > 31) {
678
+ return false;
679
+ }
680
+ return true;
681
+ }
682
+ function formatDatePartsToDisplay(year, month, day) {
683
+ const paddedMonth = month.toString().padStart(2, "0");
684
+ const paddedDay = day.toString().padStart(2, "0");
685
+ return `${paddedMonth}/${paddedDay}/${year}`;
686
+ }
687
+ function formatDate(date) {
688
+ if (!date) {
689
+ return "";
690
+ }
691
+ try {
692
+ const dateParts = parseDateParts(date);
693
+ if (!dateParts) {
694
+ return "";
695
+ }
696
+ const { year, month, day } = dateParts;
697
+ if (!isValidDateRange(month, day)) {
698
+ return "";
699
+ }
700
+ return formatDatePartsToDisplay(year, month, day);
701
+ } catch (error) {
702
+ console.error("Error formatting date:", error);
703
+ return "";
704
+ }
705
+ }
706
+
656
707
  // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
657
708
  var import_jsx_runtime5 = require("react/jsx-runtime");
658
709
  function MobileDataGridColumn(props) {
659
- var _a;
710
+ var _a, _b;
660
711
  const { column, data } = props;
661
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "grid grid-cols-2 gap-2 px-3 flex-1", children: [
712
+ let value;
713
+ if (column.id) {
714
+ value = data[column.id];
715
+ if (((_a = column.meta) == null ? void 0 : _a.format) === "date" && typeof value === "string") {
716
+ value = formatDate(value);
717
+ }
718
+ }
719
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
662
720
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
663
- (_a = column.header) == null ? void 0 : _a.toString(),
721
+ (_b = column.header) == null ? void 0 : _b.toString(),
664
722
  ":"
665
723
  ] }),
666
724
  " ",
667
- column.id && data[column.id] ? data[column.id] : null
725
+ value ? value : null
668
726
  ] });
669
727
  }
670
728
 
@@ -734,8 +792,12 @@ function MobileDataGridCard({
734
792
  id: id ? `${id}-card-${getId(data)}` : void 0,
735
793
  "data-testid": testid ? `${testid}-card-${getId(data)}` : void 0,
736
794
  className: (0, import_clsx7.default)(
795
+ "flex flex-col",
737
796
  "hover:bg-action-100 cursor-pointer list-none",
738
- selected ? "bg-action-100" : "bg-background-grouped-primary-normal"
797
+ selected ? "bg-action-100" : "bg-background-grouped-primary-normal",
798
+ layoutGroupGap,
799
+ layoutPaddingX,
800
+ paddingYUsingLayoutGroupGap
739
801
  ),
740
802
  onClick: () => openRowDetail(data),
741
803
  children: [
@@ -747,6 +809,7 @@ function MobileDataGridCard({
747
809
  sizing: "component",
748
810
  padding: true,
749
811
  width: "fit",
812
+ style: { paddingLeft: 0, paddingRight: 8 },
750
813
  onClick: (e) => e.stopPropagation(),
751
814
  children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
752
815
  Checkbox,
@@ -765,6 +828,7 @@ function MobileDataGridCard({
765
828
  sizing: "component",
766
829
  padding: true,
767
830
  onClick: (e) => e.stopPropagation(),
831
+ style: { paddingInline: 0 },
768
832
  children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
769
833
  }
770
834
  ),
@@ -790,7 +854,7 @@ function MobileDataGridCard({
790
854
  return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
791
855
  "div",
792
856
  {
793
- className: "grid grid-cols-2 gap-2 px-3 items-center flex-1",
857
+ className: "grid grid-cols-2 gap-2 items-center flex-1",
794
858
  children: [
795
859
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
796
860
  Paragraph,
@@ -826,7 +890,7 @@ function MobileDataGridCard({
826
890
  }
827
891
  ) })
828
892
  ] }),
829
- renderChevron && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "keyboard_arrow_down" }) })
893
+ renderChevron && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "keyboard_arrow_down" }) }) })
830
894
  ]
831
895
  }
832
896
  );
@@ -1,15 +1,18 @@
1
1
  import {
2
2
  MobileDataGridCard
3
- } from "../../../chunk-XIXQUEYC.js";
3
+ } from "../../../chunk-5YNEY3WO.js";
4
4
  import "../../../chunk-5IFPG6TS.js";
5
5
  import "../../../chunk-AJ5M6MVX.js";
6
- import "../../../chunk-KW6V7O3H.js";
7
- import "../../../chunk-WEAVZEE4.js";
8
- import "../../../chunk-UCJUC5AZ.js";
9
- import "../../../chunk-ZSETMD4A.js";
10
- import "../../../chunk-DORD2EBO.js";
6
+ import "../../../chunk-UI7P5J5S.js";
7
+ import "../../../chunk-M7WHWZ2J.js";
8
+ import "../../../chunk-VXWSAIB5.js";
9
+ import "../../../chunk-R3EQIDBX.js";
10
+ import "../../../chunk-5UH6QUFB.js";
11
+ import "../../../chunk-BYC6QID5.js";
12
+ import "../../../chunk-WMPWWFUJ.js";
13
+ import "../../../chunk-TPXH53SA.js";
11
14
  import "../../../chunk-NKUETCDA.js";
12
- import "../../../chunk-IXR65MOU.js";
15
+ import "../../../chunk-7KWFEH56.js";
13
16
  import "../../../chunk-ORMEWXMH.js";
14
17
  export {
15
18
  MobileDataGridCard
@@ -184,6 +184,9 @@ var layoutPaddingBottom = (0, import_clsx.default)(
184
184
  var layoutPaddingY = (0, import_clsx.default)(
185
185
  "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
186
186
  );
187
+ var layoutPaddingX = (0, import_clsx.default)(
188
+ "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding"
189
+ );
187
190
  var containerPaddingX = (0, import_clsx.default)(
188
191
  "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
189
192
  );
@@ -600,7 +603,7 @@ var Stack = (_a) => {
600
603
  id,
601
604
  "data-testid": testid
602
605
  }, props), {
603
- style: {
606
+ style: __spreadValues({
604
607
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
605
608
  maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
606
609
  maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
@@ -625,7 +628,7 @@ var Stack = (_a) => {
625
628
  flexWrap,
626
629
  paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
627
630
  gap: (_g = props.style) == null ? void 0 : _g.gap
628
- },
631
+ }, props.style),
629
632
  className: (0, import_clsx6.default)(
630
633
  "scrollbar-thin",
631
634
  "max-w-screen",
@@ -1269,6 +1272,7 @@ var MenuOption = ({
1269
1272
  const actualRef = ref || internalRef;
1270
1273
  const menuId = (0, import_react6.useRef)(`menu-${uniqueId}`);
1271
1274
  const isMobile = useMatchesMobile();
1275
+ const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react6.useState)(false);
1272
1276
  const handleMouseEnter = () => {
1273
1277
  if (subMenu && onSubMenuHover && !disabled) {
1274
1278
  onSubMenuHover(menuId.current, subMenuLevel);
@@ -1278,6 +1282,7 @@ var MenuOption = ({
1278
1282
  if (subMenu && onSubMenuLeave && !disabled) {
1279
1283
  onSubMenuLeave(subMenuLevel);
1280
1284
  }
1285
+ setIsSubMenuHovered(false);
1281
1286
  };
1282
1287
  const handleMouseMove = () => {
1283
1288
  if (subMenu && onMouseMove && !disabled) {
@@ -1288,9 +1293,11 @@ var MenuOption = ({
1288
1293
  if (onSubMenuEnter) {
1289
1294
  onSubMenuEnter();
1290
1295
  }
1296
+ setIsSubMenuHovered(true);
1291
1297
  };
1292
1298
  const additionalAttributes = {
1293
- "data-selected": selected || null
1299
+ "data-selected": selected || null,
1300
+ "data-submenu-hovered": isSubMenuHovered || null
1294
1301
  };
1295
1302
  const svgStyles = (0, import_clsx9.default)(
1296
1303
  "[&>svg]:shrink-0 [&>svg]:fill-icon-action-primary-normal"
@@ -1299,16 +1306,18 @@ var MenuOption = ({
1299
1306
  const normalStyles = variant === "normal" && !disabled && (0, import_clsx9.default)(
1300
1307
  "bg-transparent text-text-primary-normal",
1301
1308
  "hover:bg-background-action-secondary-hover",
1302
- "focus:bg-background-action-secondary-hover",
1309
+ "focus-visible:bg-background-action-secondary-hover",
1303
1310
  "data-selected:bg-background-action-secondary-hover",
1311
+ "data-submenu-hovered:bg-background-action-secondary-hover",
1304
1312
  "active:bg-background-action-secondary-active"
1305
1313
  );
1306
1314
  const normalDisabledStyles = variant === "normal" && disabled && (0, import_clsx9.default)("text-text-primary-disabled");
1307
1315
  const actionStyles = variant === "action" && !disabled && (0, import_clsx9.default)(
1308
1316
  "text-action-400 bg-transparent",
1309
1317
  "hover:bg-background-action-secondary-hover hover:text-text-action-hover",
1310
- "focus:bg-background-action-secondary-hover focus:text-text-action-hover",
1318
+ "focus-visible:bg-background-action-secondary-hover focus-visible:text-text-action-hover",
1311
1319
  "data-selected:bg-background-action-secondary-active data-selected:text-text-action-active",
1320
+ "data-submenu-hovered:bg-background-action-secondary-active data-submenu-hovered:text-text-action-active",
1312
1321
  "active:bg-background-action-secondary-active active:text-text-action-active"
1313
1322
  );
1314
1323
  const actionDisabledStyles = variant === "action" && disabled && (0, import_clsx9.default)("text-text-action-disabled");
@@ -1360,7 +1369,10 @@ var MenuOption = ({
1360
1369
  "div",
1361
1370
  {
1362
1371
  onMouseEnter: handleSubMenuEnter,
1363
- onMouseLeave: handleMouseLeave,
1372
+ onMouseLeave: () => {
1373
+ handleMouseLeave();
1374
+ setIsSubMenuHovered(false);
1375
+ },
1364
1376
  "data-submenu-parent": menuId.current,
1365
1377
  "data-menu-level": subMenuLevel + 1,
1366
1378
  children: subMenu({
@@ -1370,7 +1382,8 @@ var MenuOption = ({
1370
1382
  position: "right",
1371
1383
  subMenuLevel,
1372
1384
  mobileBackMenuOption,
1373
- mobileHide: isMobile && activeMenu !== menuId.current
1385
+ mobileHide: isMobile && activeMenu !== menuId.current,
1386
+ autoFocusOff: true
1374
1387
  })
1375
1388
  }
1376
1389
  )
@@ -6177,6 +6190,7 @@ function MobileDataGridHeader({
6177
6190
  items: "center",
6178
6191
  justify: "between",
6179
6192
  backgroundColor: "background-primary-normal",
6193
+ style: { borderTopRightRadius: 4, borderTopLeftRadius: 4 },
6180
6194
  children: [
6181
6195
  enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6182
6196
  Checkbox,
@@ -2102,6 +2102,9 @@
2102
2102
  .font-sans {
2103
2103
  font-family: var(--font-sans);
2104
2104
  }
2105
+ .\!text-caption-desktop {
2106
+ font-size: var(--text-caption-desktop) !important;
2107
+ }
2105
2108
  .text-\[0\.6rem\] {
2106
2109
  font-size: 0.6rem;
2107
2110
  }
@@ -3293,11 +3296,6 @@
3293
3296
  color: var(--color-text-action-critical-hover);
3294
3297
  }
3295
3298
  }
3296
- .focus\:text-text-action-hover {
3297
- &:focus {
3298
- color: var(--color-text-action-hover);
3299
- }
3300
- }
3301
3299
  .focus\:text-text-action-primary-hover {
3302
3300
  &:focus {
3303
3301
  color: var(--color-text-action-primary-hover);
@@ -3341,6 +3339,16 @@
3341
3339
  outline-style: none;
3342
3340
  }
3343
3341
  }
3342
+ .focus-visible\:bg-background-action-secondary-hover {
3343
+ &:focus-visible {
3344
+ background-color: var(--color-background-action-secondary-hover);
3345
+ }
3346
+ }
3347
+ .focus-visible\:text-text-action-hover {
3348
+ &:focus-visible {
3349
+ color: var(--color-text-action-hover);
3350
+ }
3351
+ }
3344
3352
  .focus-visible\:ring-2 {
3345
3353
  &:focus-visible {
3346
3354
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
@@ -3793,6 +3801,21 @@
3793
3801
  }
3794
3802
  }
3795
3803
  }
3804
+ .data-submenu-hovered\:bg-background-action-secondary-active {
3805
+ &[data-submenu-hovered] {
3806
+ background-color: var(--color-background-action-secondary-active);
3807
+ }
3808
+ }
3809
+ .data-submenu-hovered\:bg-background-action-secondary-hover {
3810
+ &[data-submenu-hovered] {
3811
+ background-color: var(--color-background-action-secondary-hover);
3812
+ }
3813
+ }
3814
+ .data-submenu-hovered\:text-text-action-active {
3815
+ &[data-submenu-hovered] {
3816
+ color: var(--color-text-action-active);
3817
+ }
3818
+ }
3796
3819
  .data-\[focus\]\:outline-1 {
3797
3820
  &[data-focus] {
3798
3821
  outline-style: var(--tw-outline-style);
@@ -1,70 +1,70 @@
1
1
  import {
2
2
  MobileDataGridHeader
3
- } from "../../chunk-TWDH7ZDS.js";
3
+ } from "../../chunk-QV3NANQC.js";
4
4
  import "../../chunk-M7INAUAJ.js";
5
- import "../../chunk-YD3HWIUJ.js";
6
- import "../../chunk-3DEYCNUE.js";
7
- import "../../chunk-XHQOTLG6.js";
5
+ import "../../chunk-D4TFZ2WM.js";
6
+ import "../../chunk-3UUCDNX3.js";
7
+ import "../../chunk-FJRYHJUV.js";
8
8
  import "../../chunk-BQNPOGD5.js";
9
9
  import "../../chunk-Y5GD2FJA.js";
10
- import "../../chunk-4LBQSSGH.js";
11
- import "../../chunk-YEZBNQZI.js";
12
- import "../../chunk-B53XDCLO.js";
10
+ import "../../chunk-B2O4TEOI.js";
11
+ import "../../chunk-VOSQMHNF.js";
12
+ import "../../chunk-VS53C5ZD.js";
13
13
  import "../../chunk-S5ZJ3Q7P.js";
14
14
  import "../../chunk-MBZ55T2D.js";
15
15
  import "../../chunk-2IKT6IHB.js";
16
16
  import "../../chunk-YCDDBSVU.js";
17
17
  import "../../chunk-3X3Y4TMS.js";
18
- import "../../chunk-QMSPTD6L.js";
19
- import "../../chunk-XIXQUEYC.js";
18
+ import "../../chunk-PRN2EQBX.js";
19
+ import "../../chunk-5YNEY3WO.js";
20
20
  import "../../chunk-5IFPG6TS.js";
21
21
  import "../../chunk-AJ5M6MVX.js";
22
- import "../../chunk-KW6V7O3H.js";
23
- import "../../chunk-JUFBGNWW.js";
24
- import "../../chunk-7GHD74J3.js";
22
+ import "../../chunk-UI7P5J5S.js";
23
+ import "../../chunk-5DQVYX6H.js";
24
+ import "../../chunk-MDB26F6T.js";
25
25
  import "../../chunk-AT4AWD6B.js";
26
26
  import "../../chunk-EWGHVZL5.js";
27
- import "../../chunk-7BVUTFZ5.js";
27
+ import "../../chunk-2TNHD4MQ.js";
28
+ import "../../chunk-OWHPPZZA.js";
28
29
  import "../../chunk-L3BXRDLP.js";
29
30
  import "../../chunk-34VEVX5H.js";
30
- import "../../chunk-GRGDX7JC.js";
31
- import "../../chunk-PIBHG6DH.js";
32
- import "../../chunk-TOKS63IK.js";
31
+ import "../../chunk-LB7UT6F3.js";
32
+ import "../../chunk-LJLHGLTS.js";
33
33
  import "../../chunk-4RJKB7LC.js";
34
- import "../../chunk-FG7GNGE3.js";
35
- import "../../chunk-X4UK7HE2.js";
34
+ import "../../chunk-25RZP3VR.js";
35
+ import "../../chunk-WVVEOCEH.js";
36
+ import "../../chunk-TAPYQBQU.js";
36
37
  import "../../chunk-AG43RS4Q.js";
37
- import "../../chunk-ZQJMNPCF.js";
38
- import "../../chunk-6TYWM26K.js";
39
38
  import "../../chunk-SBRRNFOP.js";
40
- import "../../chunk-Y2GK27RX.js";
41
39
  import "../../chunk-QVWYTQKL.js";
42
- import "../../chunk-HIKWIY5Q.js";
40
+ import "../../chunk-SUSUNSVZ.js";
41
+ import "../../chunk-75USUR3I.js";
42
+ import "../../chunk-Y2GK27RX.js";
43
+ import "../../chunk-F6RZ7MUE.js";
43
44
  import "../../chunk-TCMOGTPB.js";
44
45
  import "../../chunk-DVU5XV7L.js";
45
- import "../../chunk-5R4C5F63.js";
46
- import "../../chunk-5MLYAQQO.js";
47
- import "../../chunk-G4AWTFBQ.js";
48
- import "../../chunk-AL5QIRY3.js";
46
+ import "../../chunk-LKKFQLWD.js";
47
+ import "../../chunk-HK4S6TRH.js";
48
+ import "../../chunk-KPBG7D3V.js";
49
+ import "../../chunk-HXGJVYGQ.js";
49
50
  import "../../chunk-WVUIIBRR.js";
50
- import "../../chunk-75USUR3I.js";
51
- import "../../chunk-BTKWHCUE.js";
52
- import "../../chunk-WEAVZEE4.js";
53
- import "../../chunk-OZBB6RFM.js";
51
+ import "../../chunk-PS6UJZVH.js";
52
+ import "../../chunk-M7WHWZ2J.js";
53
+ import "../../chunk-TMHOK37S.js";
54
54
  import "../../chunk-URYQ24NF.js";
55
55
  import "../../chunk-VXWSAIB5.js";
56
56
  import "../../chunk-R3EQIDBX.js";
57
57
  import "../../chunk-5UH6QUFB.js";
58
- import "../../chunk-UCJUC5AZ.js";
59
- import "../../chunk-IY7SXEVY.js";
58
+ import "../../chunk-BYC6QID5.js";
59
+ import "../../chunk-MUOYLXBF.js";
60
60
  import "../../chunk-KBJZUVLM.js";
61
- import "../../chunk-4UH72JT2.js";
62
- import "../../chunk-H2KC5XUY.js";
63
- import "../../chunk-ZSETMD4A.js";
64
- import "../../chunk-DORD2EBO.js";
61
+ import "../../chunk-BWBSDSA7.js";
62
+ import "../../chunk-MXSJF6TW.js";
63
+ import "../../chunk-45AHDOAU.js";
64
+ import "../../chunk-WMPWWFUJ.js";
65
+ import "../../chunk-TPXH53SA.js";
65
66
  import "../../chunk-NKUETCDA.js";
66
- import "../../chunk-LPY6PMAY.js";
67
- import "../../chunk-IXR65MOU.js";
67
+ import "../../chunk-7KWFEH56.js";
68
68
  import "../../chunk-ORMEWXMH.js";
69
69
  export {
70
70
  MobileDataGridHeader
@@ -184,6 +184,9 @@ var layoutPaddingBottom = (0, import_clsx.default)(
184
184
  var layoutPaddingY = (0, import_clsx.default)(
185
185
  "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
186
186
  );
187
+ var layoutPaddingX = (0, import_clsx.default)(
188
+ "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding"
189
+ );
187
190
  var containerPaddingX = (0, import_clsx.default)(
188
191
  "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
189
192
  );
@@ -388,7 +391,7 @@ var Stack = (_a) => {
388
391
  id,
389
392
  "data-testid": testid
390
393
  }, props), {
391
- style: {
394
+ style: __spreadValues({
392
395
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
393
396
  maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
394
397
  maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
@@ -413,7 +416,7 @@ var Stack = (_a) => {
413
416
  flexWrap,
414
417
  paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
415
418
  gap: (_g = props.style) == null ? void 0 : _g.gap
416
- },
419
+ }, props.style),
417
420
  className: (0, import_clsx3.default)(
418
421
  "scrollbar-thin",
419
422
  "max-w-screen",
@@ -491,18 +494,73 @@ function useGridContext() {
491
494
  return ctx;
492
495
  }
493
496
 
497
+ // src/utils/date.ts
498
+ function parseDateParts(dateString) {
499
+ const [yearStr, monthStr, dayStr] = dateString.split("-");
500
+ if (!yearStr || !monthStr || !dayStr) {
501
+ return null;
502
+ }
503
+ const year = parseInt(yearStr, 10);
504
+ const month = parseInt(monthStr, 10);
505
+ const day = parseInt(dayStr, 10);
506
+ if (isNaN(year) || isNaN(month) || isNaN(day)) {
507
+ return null;
508
+ }
509
+ return { year, month, day };
510
+ }
511
+ function isValidDateRange(month, day) {
512
+ if (month < 1 || month > 12) {
513
+ return false;
514
+ }
515
+ if (day < 1 || day > 31) {
516
+ return false;
517
+ }
518
+ return true;
519
+ }
520
+ function formatDatePartsToDisplay(year, month, day) {
521
+ const paddedMonth = month.toString().padStart(2, "0");
522
+ const paddedDay = day.toString().padStart(2, "0");
523
+ return `${paddedMonth}/${paddedDay}/${year}`;
524
+ }
525
+ function formatDate(date) {
526
+ if (!date) {
527
+ return "";
528
+ }
529
+ try {
530
+ const dateParts = parseDateParts(date);
531
+ if (!dateParts) {
532
+ return "";
533
+ }
534
+ const { year, month, day } = dateParts;
535
+ if (!isValidDateRange(month, day)) {
536
+ return "";
537
+ }
538
+ return formatDatePartsToDisplay(year, month, day);
539
+ } catch (error) {
540
+ console.error("Error formatting date:", error);
541
+ return "";
542
+ }
543
+ }
544
+
494
545
  // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
495
546
  var import_jsx_runtime3 = require("react/jsx-runtime");
496
547
  function MobileDataGridColumn(props) {
497
- var _a;
548
+ var _a, _b;
498
549
  const { column, data } = props;
499
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "grid grid-cols-2 gap-2 px-3 flex-1", children: [
550
+ let value;
551
+ if (column.id) {
552
+ value = data[column.id];
553
+ if (((_a = column.meta) == null ? void 0 : _a.format) === "date" && typeof value === "string") {
554
+ value = formatDate(value);
555
+ }
556
+ }
557
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
500
558
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
501
- (_a = column.header) == null ? void 0 : _a.toString(),
559
+ (_b = column.header) == null ? void 0 : _b.toString(),
502
560
  ":"
503
561
  ] }),
504
562
  " ",
505
- column.id && data[column.id] ? data[column.id] : null
563
+ value ? value : null
506
564
  ] });
507
565
  }
508
566
 
@@ -521,7 +579,7 @@ function ModalContent() {
521
579
  return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
522
580
  "div",
523
581
  {
524
- className: "grid grid-cols-2 gap-2 px-3 items-center flex-1",
582
+ className: "grid grid-cols-2 gap-2 items-center flex-1",
525
583
  children: [
526
584
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
527
585
  (_b = column.header) == null ? void 0 : _b.toString(),