@dmsi/wedgekit-react 0.0.369 → 0.0.371

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 (205) hide show
  1. package/dist/{chunk-RLLQRVM7.js → chunk-2H35FETR.js} +18 -10
  2. package/dist/chunk-2IKT6IHB.js +190 -0
  3. package/dist/chunk-4UNWXB4A.js +89 -0
  4. package/dist/chunk-5IFPG6TS.js +17 -0
  5. package/dist/{chunk-6GAYJCFE.js → chunk-6DPFKSCT.js} +1 -1
  6. package/dist/{chunk-ZFOANBWG.js → chunk-AG43RS4Q.js} +2 -1
  7. package/dist/chunk-AJ5M6MVX.js +7 -0
  8. package/dist/chunk-AT4AWD6B.js +44 -0
  9. package/dist/chunk-BQNPOGD5.js +105 -0
  10. package/dist/chunk-CQFPNZTN.js +172 -0
  11. package/dist/chunk-EJSPFQCY.js +29 -0
  12. package/dist/chunk-ER6RCOH3.js +97 -0
  13. package/dist/{chunk-4VER5OEU.js → chunk-FBE2HGEF.js} +35 -11
  14. package/dist/chunk-HPQWEZJL.js +45 -0
  15. package/dist/{chunk-URCLLHO5.js → chunk-IBX6DVHU.js} +376 -102
  16. package/dist/{chunk-I3WFZOFY.js → chunk-J5V2JRIK.js} +1 -1
  17. package/dist/chunk-JGJUVJKD.js +283 -0
  18. package/dist/chunk-KEMCFN4U.js +78 -0
  19. package/dist/chunk-M6TSTDNZ.js +22 -0
  20. package/dist/chunk-M7INAUAJ.js +140 -0
  21. package/dist/chunk-MBZ55T2D.js +51 -0
  22. package/dist/chunk-N6PNLLNS.js +77 -0
  23. package/dist/{chunk-ZA5E7ZYM.js → chunk-NXGUDYRR.js} +1 -1
  24. package/dist/chunk-P36QKH26.js +143 -0
  25. package/dist/chunk-PTRZHGHA.js +89 -0
  26. package/dist/chunk-QVWYTQKL.js +29 -0
  27. package/dist/{chunk-6CPGOW6J.js → chunk-T36HX6QY.js} +6 -4
  28. package/dist/chunk-U6PUOGG4.js +114 -0
  29. package/dist/{chunk-NQXZBWDZ.js → chunk-V6U7LU6M.js} +15 -6
  30. package/dist/chunk-VJVY6NPF.js +32 -0
  31. package/dist/chunk-VVXPGI2P.js +61 -0
  32. package/dist/{chunk-ARQBSR3I.js → chunk-YCKRVNJ3.js} +4 -4
  33. package/dist/chunk-YYHQLQDQ.js +68 -0
  34. package/dist/components/Accordion.cjs +47 -14
  35. package/dist/components/Accordion.js +2 -2
  36. package/dist/components/CalendarRange.cjs +700 -46
  37. package/dist/components/CalendarRange.css +186 -3
  38. package/dist/components/CalendarRange.js +43 -11
  39. package/dist/components/CompactImagesPreview.cjs +485 -0
  40. package/dist/components/CompactImagesPreview.js +13 -0
  41. package/dist/components/ContentTabs.cjs +3 -2
  42. package/dist/components/ContentTabs.js +3 -2
  43. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +4687 -0
  44. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +5051 -0
  45. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +62 -0
  46. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +4687 -0
  47. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +5051 -0
  48. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +62 -0
  49. package/dist/components/DataGrid/PinnedColumns.cjs +4687 -0
  50. package/dist/components/DataGrid/PinnedColumns.css +5051 -0
  51. package/dist/components/DataGrid/PinnedColumns.js +62 -0
  52. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +4689 -0
  53. package/dist/components/DataGrid/TableBody/LoadingCell.css +5051 -0
  54. package/dist/components/DataGrid/TableBody/LoadingCell.js +62 -0
  55. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +4689 -0
  56. package/dist/components/DataGrid/TableBody/TableBodyRow.css +5051 -0
  57. package/dist/components/DataGrid/TableBody/TableBodyRow.js +62 -0
  58. package/dist/components/DataGrid/TableBody/index.cjs +4689 -0
  59. package/dist/components/DataGrid/TableBody/index.css +5051 -0
  60. package/dist/components/DataGrid/TableBody/index.js +62 -0
  61. package/dist/components/DataGrid/index.cjs +4692 -0
  62. package/dist/components/DataGrid/index.css +5051 -0
  63. package/dist/components/DataGrid/index.js +65 -0
  64. package/dist/components/DataGrid/utils.cjs +4687 -0
  65. package/dist/components/DataGrid/utils.css +5051 -0
  66. package/dist/components/DataGrid/utils.js +62 -0
  67. package/dist/components/DataGridCell.js +6 -6
  68. package/dist/components/DateInput.cjs +721 -67
  69. package/dist/components/DateInput.css +186 -3
  70. package/dist/components/DateInput.js +45 -13
  71. package/dist/components/DateRangeInput.cjs +721 -67
  72. package/dist/components/DateRangeInput.css +186 -3
  73. package/dist/components/DateRangeInput.js +45 -13
  74. package/dist/components/FilterGroup.js +3 -3
  75. package/dist/components/Grid.cjs +3 -1
  76. package/dist/components/Grid.js +3 -92
  77. package/dist/components/ImagePlaceholder.cjs +65 -0
  78. package/dist/components/ImagePlaceholder.js +7 -0
  79. package/dist/components/Input.js +2 -2
  80. package/dist/components/MenuOption.js +2 -2
  81. package/dist/components/MobileDataGrid/ColumnList.cjs +845 -0
  82. package/dist/components/MobileDataGrid/ColumnList.js +17 -0
  83. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +4797 -0
  84. package/dist/components/MobileDataGrid/ColumnSelector/index.css +5051 -0
  85. package/dist/components/MobileDataGrid/ColumnSelector/index.js +62 -0
  86. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.cjs +31 -0
  87. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +7 -0
  88. package/dist/components/MobileDataGrid/GridContextProvider/index.cjs +177 -0
  89. package/dist/components/MobileDataGrid/GridContextProvider/index.js +8 -0
  90. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +269 -0
  91. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +9 -0
  92. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +790 -0
  93. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +16 -0
  94. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +5059 -0
  95. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +5051 -0
  96. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +62 -0
  97. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +509 -0
  98. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +13 -0
  99. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +1261 -0
  100. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +27 -0
  101. package/dist/components/MobileDataGrid/index.cjs +5521 -0
  102. package/dist/components/MobileDataGrid/index.css +5051 -0
  103. package/dist/components/MobileDataGrid/index.js +62 -0
  104. package/dist/components/Modal.cjs +24 -13
  105. package/dist/components/Modal.js +3 -3
  106. package/dist/components/ModalHeader.cjs +6 -4
  107. package/dist/components/ModalHeader.js +1 -1
  108. package/dist/components/ModalScrim.cjs +2 -1
  109. package/dist/components/ModalScrim.js +1 -1
  110. package/dist/components/NestedMenu.js +4 -4
  111. package/dist/components/Notification.cjs +15 -6
  112. package/dist/components/Notification.js +1 -1
  113. package/dist/components/PDFViewer/DownloadIcon.cjs +394 -0
  114. package/dist/components/PDFViewer/DownloadIcon.js +10 -0
  115. package/dist/components/PDFViewer/PDFElement.cjs +515 -0
  116. package/dist/components/PDFViewer/PDFElement.js +11 -0
  117. package/dist/components/{MobileDataGrid.cjs → PDFViewer/PDFNavigation.cjs} +318 -402
  118. package/dist/components/PDFViewer/PDFNavigation.js +13 -0
  119. package/dist/components/PDFViewer/PDFPage.cjs +56 -0
  120. package/dist/components/PDFViewer/PDFPage.js +7 -0
  121. package/dist/components/{PDFViewer.cjs → PDFViewer/index.cjs} +290 -202
  122. package/dist/components/PDFViewer/index.js +29 -0
  123. package/dist/components/Password.js +2 -2
  124. package/dist/components/ProductImagePreview/CarouselPagination.cjs +75 -0
  125. package/dist/components/ProductImagePreview/CarouselPagination.js +7 -0
  126. package/dist/components/ProductImagePreview/MobileImageCarousel.cjs +214 -0
  127. package/dist/components/ProductImagePreview/MobileImageCarousel.js +7 -0
  128. package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +255 -0
  129. package/dist/components/ProductImagePreview/ProductPrimaryImage.js +9 -0
  130. package/dist/components/ProductImagePreview/Thumbnail.cjs +105 -0
  131. package/dist/components/ProductImagePreview/Thumbnail.js +8 -0
  132. package/dist/components/ProductImagePreview/ZoomWindow.cjs +198 -0
  133. package/dist/components/ProductImagePreview/ZoomWindow.js +8 -0
  134. package/dist/components/ProductImagePreview/index.cjs +1369 -0
  135. package/dist/components/ProductImagePreview/index.js +22 -0
  136. package/dist/components/Search.js +3 -3
  137. package/dist/components/Select.js +3 -3
  138. package/dist/components/SideMenuGroup.cjs +15 -6
  139. package/dist/components/SideMenuGroup.js +1 -1
  140. package/dist/components/SideMenuItem.cjs +15 -6
  141. package/dist/components/SideMenuItem.js +1 -1
  142. package/dist/components/SkeletonParagraph.cjs +33 -0
  143. package/dist/components/SkeletonParagraph.js +10 -0
  144. package/dist/components/Stack.cjs +15 -6
  145. package/dist/components/Stack.js +1 -1
  146. package/dist/components/Stepper.cjs +61 -53
  147. package/dist/components/Stepper.js +63 -55
  148. package/dist/components/Surface.js +3 -39
  149. package/dist/components/Swatch.cjs +15 -6
  150. package/dist/components/Swatch.js +4 -4
  151. package/dist/components/Time.cjs +15 -6
  152. package/dist/components/Time.js +5 -5
  153. package/dist/components/Upload.cjs +15 -6
  154. package/dist/components/Upload.js +1 -1
  155. package/dist/components/index.cjs +2559 -14
  156. package/dist/components/index.css +186 -3
  157. package/dist/components/index.js +57 -14
  158. package/dist/index.css +186 -3
  159. package/package.json +1 -1
  160. package/src/components/Accordion.tsx +23 -4
  161. package/src/components/CompactImagesPreview.tsx +99 -0
  162. package/src/components/ContentTabs.tsx +3 -1
  163. package/src/components/DataGrid/types.ts +5 -0
  164. package/src/components/Grid.tsx +2 -0
  165. package/src/components/ImagePlaceholder.tsx +22 -0
  166. package/src/components/MobileDataGrid/ColumnList.tsx +66 -0
  167. package/src/components/MobileDataGrid/ColumnSelector/index.tsx +97 -0
  168. package/src/components/MobileDataGrid/GridContextProvider/GridContext.tsx +25 -0
  169. package/src/components/MobileDataGrid/GridContextProvider/index.tsx +132 -0
  170. package/src/components/MobileDataGrid/GridContextProvider/useGridContext.ts +10 -0
  171. package/src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx +20 -0
  172. package/src/components/MobileDataGrid/MobileDataGridCard/index.tsx +129 -0
  173. package/src/components/MobileDataGrid/MobileDataGridHeader.tsx +80 -0
  174. package/src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx +42 -0
  175. package/src/components/MobileDataGrid/RowDetailModalProvider/index.tsx +68 -0
  176. package/src/components/MobileDataGrid/dataGridReducer.ts +55 -0
  177. package/src/components/MobileDataGrid/index.tsx +92 -0
  178. package/src/components/MobileDataGrid/types.ts +4 -0
  179. package/src/components/Modal.tsx +31 -12
  180. package/src/components/ModalButtons.tsx +1 -1
  181. package/src/components/ModalHeader.tsx +5 -2
  182. package/src/components/ModalScrim.tsx +3 -2
  183. package/src/components/PDFViewer/DownloadIcon.tsx +22 -0
  184. package/src/components/PDFViewer/PDFElement.tsx +90 -0
  185. package/src/components/PDFViewer/PDFNavigation.tsx +68 -0
  186. package/src/components/PDFViewer/PDFPage.tsx +34 -0
  187. package/src/components/PDFViewer/index.tsx +128 -0
  188. package/src/components/ProductImagePreview/CarouselPagination.tsx +54 -0
  189. package/src/components/ProductImagePreview/MobileImageCarousel.tsx +226 -0
  190. package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +218 -0
  191. package/src/components/ProductImagePreview/Thumbnail.tsx +49 -0
  192. package/src/components/ProductImagePreview/ZoomWindow.tsx +136 -0
  193. package/src/components/ProductImagePreview/index.tsx +182 -0
  194. package/src/components/ProductImagePreview/useProductImagePreview.ts +211 -0
  195. package/src/components/SkeletonParagraph.tsx +5 -0
  196. package/src/components/Stack.tsx +29 -6
  197. package/src/components/Stepper.tsx +5 -1
  198. package/src/components/index.ts +4 -0
  199. package/src/types.ts +2 -1
  200. package/dist/components/MobileDataGrid.js +0 -150
  201. package/dist/components/PDFViewer.js +0 -250
  202. package/src/components/MobileDataGrid.tsx +0 -163
  203. package/src/components/PDFViewer.tsx +0 -264
  204. package/dist/{chunk-OXSBIBGT.js → chunk-CKQNJNU3.js} +3 -3
  205. package/dist/{chunk-RJUN52HJ.js → chunk-ZL5X7KP6.js} +3 -3
@@ -0,0 +1,790 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
60
+ var MobileDataGridCard_exports = {};
61
+ __export(MobileDataGridCard_exports, {
62
+ MobileDataGridCard: () => MobileDataGridCard
63
+ });
64
+ module.exports = __toCommonJS(MobileDataGridCard_exports);
65
+
66
+ // src/components/Icon.tsx
67
+ var import_clsx = __toESM(require("clsx"), 1);
68
+ var import_jsx_runtime = require("react/jsx-runtime");
69
+ function Icon(_a) {
70
+ var _b = _a, {
71
+ name,
72
+ size = 24,
73
+ variant = "outline",
74
+ testid
75
+ } = _b, props = __objRest(_b, [
76
+ "name",
77
+ "size",
78
+ "variant",
79
+ "testid"
80
+ ]);
81
+ const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
82
+ const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
83
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
+ "span",
85
+ __spreadProps(__spreadValues({}, props), {
86
+ "data-testid": testid,
87
+ className: (0, import_clsx.default)(
88
+ "icon",
89
+ `icon-${size}`,
90
+ // size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
91
+ props.className
92
+ ),
93
+ style: __spreadValues({
94
+ fontVariationSettings: variantStyle + `, ${weightStyle}`
95
+ }, props.style),
96
+ children: name
97
+ })
98
+ );
99
+ }
100
+
101
+ // src/components/Paragraph.tsx
102
+ var import_clsx3 = __toESM(require("clsx"), 1);
103
+
104
+ // src/classNames.ts
105
+ var import_clsx2 = __toESM(require("clsx"), 1);
106
+ var typography = {
107
+ display1: (0, import_clsx2.default)(
108
+ "font-sans font-semibold",
109
+ "text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
110
+ "leading-display-1-mobile desktop:leading-display-1-desktop"
111
+ ),
112
+ display2: (0, import_clsx2.default)(
113
+ "font-sans font-bold",
114
+ "text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
115
+ "leading-display-2-mobile desktop:leading-display-2-desktop"
116
+ ),
117
+ heading1: (0, import_clsx2.default)(
118
+ "font-sans font-semibold",
119
+ "text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
120
+ "leading-heading-1-mobile desktop:leading-heading-1-desktop"
121
+ ),
122
+ heading2: (0, import_clsx2.default)(
123
+ "font-sans font-normal",
124
+ "text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
125
+ "leading-heading-2-mobile desktop:leading-heading-2-desktop"
126
+ ),
127
+ heading3: (0, import_clsx2.default)(
128
+ "font-sans font-semibold",
129
+ "text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
130
+ "leading-heading-3-mobile desktop:leading-heading-3-desktop"
131
+ ),
132
+ subheader: (0, import_clsx2.default)(
133
+ "font-sans font-semibold",
134
+ "text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
135
+ "leading-subheader-mobile desktop:leading-subheader-desktop"
136
+ ),
137
+ link: (0, import_clsx2.default)(
138
+ "font-sans font-normal",
139
+ "text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
140
+ "leading-link-mobile desktop:leading-link-desktop"
141
+ ),
142
+ buttonLabel: (0, import_clsx2.default)(
143
+ "font-sans font-semibold",
144
+ "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
145
+ "leading-label-mobile desktop:leading-label-desktop"
146
+ ),
147
+ label: (0, import_clsx2.default)(
148
+ "font-sans font-semibold",
149
+ "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
150
+ "leading-label-mobile desktop:leading-label-desktop"
151
+ ),
152
+ paragraph: (0, import_clsx2.default)(
153
+ "font-sans font-normal",
154
+ "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
155
+ "leading-paragraph-mobile desktop:leading-paragraph-desktop"
156
+ ),
157
+ caption: (0, import_clsx2.default)(
158
+ "font-sans font-normal",
159
+ "text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
160
+ "leading-caption-mobile desktop:leading-caption-desktop"
161
+ ),
162
+ breadcrumb: (0, import_clsx2.default)(
163
+ "font-sans font-normal",
164
+ "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
165
+ "leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
166
+ )
167
+ };
168
+ var baseTransition = (0, import_clsx2.default)(
169
+ "transition-colors duration-100 ease-in-out"
170
+ );
171
+ var componentGap = (0, import_clsx2.default)(
172
+ "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
173
+ );
174
+ var paddingUsingComponentGap = (0, import_clsx2.default)(
175
+ "p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
176
+ );
177
+ var paddingXUsingLayoutGroupGap = (0, import_clsx2.default)(
178
+ "px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
179
+ );
180
+ var paddingYUsingLayoutGroupGap = (0, import_clsx2.default)(
181
+ "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
182
+ );
183
+ var componentPadding = (0, import_clsx2.default)(
184
+ "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
185
+ );
186
+ var componentPaddingBottom = (0, import_clsx2.default)(
187
+ "pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
188
+ );
189
+ var componentPaddingX = (0, import_clsx2.default)(
190
+ "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
191
+ );
192
+ var componentPaddingY = (0, import_clsx2.default)(
193
+ "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
194
+ );
195
+ var componentPaddingXUsingComponentGap = (0, import_clsx2.default)(
196
+ "px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
197
+ );
198
+ var componentPaddingYUsingComponentGap = (0, import_clsx2.default)(
199
+ "py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
200
+ );
201
+ var componentPaddingMinusBorder = (0, import_clsx2.default)(
202
+ "p-[calc(var(--spacing-mobile-component-padding)_-_1px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_1px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_1px)]"
203
+ );
204
+ var componentPaddingMinus2pxBorder = (0, import_clsx2.default)(
205
+ "p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
206
+ );
207
+ var layoutPaddding = (0, import_clsx2.default)(
208
+ "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
209
+ );
210
+ var layoutPaddingBottom = (0, import_clsx2.default)(
211
+ "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
212
+ );
213
+ var layoutPaddingY = (0, import_clsx2.default)(
214
+ "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
215
+ );
216
+ var containerPaddingX = (0, import_clsx2.default)(
217
+ "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
218
+ );
219
+ var containerPaddingY = (0, import_clsx2.default)(
220
+ "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
221
+ );
222
+ var layoutGroupGapPaddingY = (0, import_clsx2.default)(
223
+ "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
224
+ );
225
+ var layoutGroupGap = (0, import_clsx2.default)(
226
+ "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
227
+ );
228
+ var layoutGap = (0, import_clsx2.default)(
229
+ "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
230
+ );
231
+ var gapUsingContainerPadding = (0, import_clsx2.default)(
232
+ "gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
233
+ );
234
+
235
+ // src/components/Paragraph.tsx
236
+ var import_jsx_runtime2 = require("react/jsx-runtime");
237
+ var Paragraph = (_a) => {
238
+ var _b = _a, {
239
+ className,
240
+ color,
241
+ padded,
242
+ align = "left",
243
+ tall,
244
+ addOverflow,
245
+ children,
246
+ as = "p",
247
+ id,
248
+ testid
249
+ } = _b, props = __objRest(_b, [
250
+ "className",
251
+ "color",
252
+ "padded",
253
+ "align",
254
+ "tall",
255
+ "addOverflow",
256
+ "children",
257
+ "as",
258
+ "id",
259
+ "testid"
260
+ ]);
261
+ const Element = as;
262
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
263
+ Element,
264
+ __spreadProps(__spreadValues({
265
+ id,
266
+ "data-testid": testid
267
+ }, props), {
268
+ className: (0, import_clsx3.default)(
269
+ typography.paragraph,
270
+ className,
271
+ padded && componentPaddingXUsingComponentGap,
272
+ align === "left" && "text-left",
273
+ align === "center" && "text-center",
274
+ align === "right" && "text-right",
275
+ tall && "!leading-6",
276
+ addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
277
+ ),
278
+ style: __spreadProps(__spreadValues({}, props.style), {
279
+ color: color ? `var(--color-${color})` : void 0
280
+ }),
281
+ children
282
+ })
283
+ );
284
+ };
285
+ Paragraph.displayName = "Paragraph";
286
+
287
+ // src/components/Stack.tsx
288
+ var import_clsx4 = __toESM(require("clsx"), 1);
289
+ var import_jsx_runtime3 = require("react/jsx-runtime");
290
+ var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx4.default)(
291
+ "flex",
292
+ items === "start" && "items-start",
293
+ grow && "grow",
294
+ items === "start" && "items-start",
295
+ items === "center" && "items-center",
296
+ items === "end" && "items-end",
297
+ items === "start-center" && "items-start desktop:items-center",
298
+ justify === "start" && "justify-start",
299
+ justify === "center" && "justify-center",
300
+ justify === "end" && "justify-end",
301
+ justify === "end" && "justify-end",
302
+ justify === "between" && "justify-between",
303
+ justify === "around" && "justify-around"
304
+ );
305
+ var useGapClassNames = (sizing) => {
306
+ return (0, import_clsx4.default)(
307
+ sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
308
+ sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
309
+ sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
310
+ sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
311
+ );
312
+ };
313
+ var Stack = (_a) => {
314
+ var _b = _a, {
315
+ children,
316
+ items,
317
+ justify,
318
+ grow,
319
+ padding,
320
+ paddingX,
321
+ paddingY,
322
+ margin,
323
+ marginX,
324
+ marginY,
325
+ horizontal,
326
+ horizontalMobile,
327
+ elevation = 0,
328
+ rounded,
329
+ centered,
330
+ width,
331
+ minHeight,
332
+ maxWidth,
333
+ minWidth,
334
+ height,
335
+ maxHeight,
336
+ borderColor,
337
+ backgroundColor,
338
+ sizing = "none",
339
+ overflowY = "inherit",
340
+ overflowX = "inherit",
341
+ flexShrink,
342
+ flexGrow,
343
+ position,
344
+ top,
345
+ left,
346
+ id,
347
+ noGap,
348
+ marginTop,
349
+ marginBottom,
350
+ testid,
351
+ bottom,
352
+ zIndex
353
+ } = _b, props = __objRest(_b, [
354
+ "children",
355
+ "items",
356
+ "justify",
357
+ "grow",
358
+ "padding",
359
+ "paddingX",
360
+ "paddingY",
361
+ "margin",
362
+ "marginX",
363
+ "marginY",
364
+ "horizontal",
365
+ "horizontalMobile",
366
+ "elevation",
367
+ "rounded",
368
+ "centered",
369
+ "width",
370
+ "minHeight",
371
+ "maxWidth",
372
+ "minWidth",
373
+ "height",
374
+ "maxHeight",
375
+ "borderColor",
376
+ "backgroundColor",
377
+ "sizing",
378
+ "overflowY",
379
+ "overflowX",
380
+ "flexShrink",
381
+ "flexGrow",
382
+ "position",
383
+ "top",
384
+ "left",
385
+ "id",
386
+ "noGap",
387
+ "marginTop",
388
+ "marginBottom",
389
+ "testid",
390
+ "bottom",
391
+ "zIndex"
392
+ ]);
393
+ var _a2, _b2, _c, _d, _e;
394
+ const flexClassNames = getFlexClassNames({ items, justify, grow });
395
+ const gapClassNames = useGapClassNames(sizing);
396
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
397
+ "div",
398
+ __spreadProps(__spreadValues({
399
+ id,
400
+ "data-testid": testid
401
+ }, props), {
402
+ style: {
403
+ height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
404
+ maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
405
+ maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
406
+ minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
407
+ width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
408
+ minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
409
+ border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
410
+ backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
411
+ flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
412
+ flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
413
+ position: position !== void 0 ? position : void 0,
414
+ top: top !== void 0 ? `${top}px` : void 0,
415
+ bottom: bottom !== void 0 ? `${bottom}px` : void 0,
416
+ left: left !== void 0 ? `${left}px` : void 0,
417
+ borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
418
+ marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
419
+ zIndex: zIndex !== void 0 ? zIndex : void 0
420
+ },
421
+ className: (0, import_clsx4.default)(
422
+ "scrollbar-thin",
423
+ "max-w-screen",
424
+ width !== "fit" && "w-full",
425
+ width === "full" && "w-full",
426
+ width === "max" && "w-max",
427
+ centered && "mx-auto",
428
+ overflowY == "auto" && "overflow-y-auto",
429
+ overflowY == "hidden" && "overflow-y-hidden",
430
+ overflowY == "scroll" && "overflow-y-scroll",
431
+ overflowX == "auto" && "overflow-x-auto",
432
+ overflowX == "hidden" && "overflow-x-hidden",
433
+ overflowX == "scroll" && "overflow-x-scroll",
434
+ padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
435
+ padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
436
+ padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
437
+ padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
438
+ paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
439
+ paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
440
+ paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
441
+ paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
442
+ paddingY && sizing === "container" && "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding",
443
+ paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
444
+ paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
445
+ paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
446
+ margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
447
+ marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
448
+ marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
449
+ marginBottom && sizing === "container" && "mb-mobile-container-padding desktop:mb-desktop-container-padding compact:mb-compact-container-padding",
450
+ marginY && sizing === "container" && "my-mobile-container-padding desktop:my-desktop-container-padding compact:my-compact-container-padding",
451
+ horizontal ? "desktop:flex-row" : "desktop:flex-col",
452
+ horizontalMobile ? "flex-row" : "flex-col",
453
+ flexClassNames,
454
+ !noGap && gapClassNames,
455
+ elevation === 0 && "shadow-none",
456
+ elevation === 2 && "shadow-2",
457
+ elevation === 4 && "shadow-4",
458
+ elevation === 16 && "shadow-16",
459
+ rounded && "rounded"
460
+ ),
461
+ children
462
+ })
463
+ );
464
+ };
465
+
466
+ // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
467
+ var import_react2 = require("react");
468
+
469
+ // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
470
+ var import_react = require("react");
471
+ var GridContext = (0, import_react.createContext)(null);
472
+
473
+ // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
474
+ function useGridContext() {
475
+ const ctx = (0, import_react2.useContext)(GridContext);
476
+ if (!ctx) {
477
+ throw new Error("useGridContext must be used within GridContextProvider");
478
+ }
479
+ return ctx;
480
+ }
481
+
482
+ // src/components/Checkbox.tsx
483
+ var import_clsx5 = __toESM(require("clsx"), 1);
484
+ var import_jsx_runtime4 = require("react/jsx-runtime");
485
+ var Checkbox = (_a) => {
486
+ var _b = _a, {
487
+ label,
488
+ error,
489
+ disabled,
490
+ readOnly,
491
+ checked,
492
+ onChange,
493
+ indeterminate,
494
+ paragraphClassName,
495
+ id,
496
+ testid
497
+ } = _b, props = __objRest(_b, [
498
+ "label",
499
+ "error",
500
+ "disabled",
501
+ "readOnly",
502
+ "checked",
503
+ "onChange",
504
+ "indeterminate",
505
+ "paragraphClassName",
506
+ "id",
507
+ "testid"
508
+ ]);
509
+ const selected = indeterminate || checked;
510
+ const normalClassName = (0, import_clsx5.default)(
511
+ !selected && !error && !disabled && !readOnly && "border-border-primary-normal bg-background-action-secondary-normal peer-hover:border-border-action-hover peer-hover:bg-background-action-secondary-hover peer-active:border-border-action-active peer-active:bg-background-action-secondary-active"
512
+ );
513
+ const normalSelectedClassName = (0, import_clsx5.default)(
514
+ selected && !error && !disabled && !readOnly && "bg-background-action-primary-normal border-background-action-primary-normal peer-hover:bg-background-action-primary-hover peer-hover:border-background-action-primary-hover peer-active:bg-background-action-primary-active peer-active:border-background-action-primary-active"
515
+ );
516
+ const errorClassName = (0, import_clsx5.default)(
517
+ error && !selected && "bg-background-action-critical-secondary-normal border-border-action-critical-normal peer-hover:border-border-action-critical-hover peer-hover:bg-background-action-critical-secondary-hover peer-active:border-border-action-critical-active peer-active:bg-background-action-secondary-active"
518
+ );
519
+ const errorSelectedClassName = (0, import_clsx5.default)(
520
+ error && selected && "bg-background-action-critical-primary-normal border-background-action-critical-primary-normal peer-hover:bg-background-action-critical-primary-hover peer-hover:border-background-action-critical-primary-hover peer-active:bg-background-action-critical-primary-active peer-active:border-background-action-critical-primary-active"
521
+ );
522
+ const disabledClassName = (0, import_clsx5.default)(
523
+ disabled && !readOnly && "border-border-primary-normal bg-background-action-secondary-disabled peer-checked:bg-icon-on-action-primary-disabled peer-checked:border-icon-on-action-primary-disabled"
524
+ );
525
+ const readOnlyClassName = (0, import_clsx5.default)(
526
+ readOnly && "border-transparent bg-transparent peer-checked:bg-transparent peer-checked:border-transparent"
527
+ );
528
+ const checkColor = (0, import_clsx5.default)(
529
+ selected && !disabled && !readOnly && "color-icon-on-action-primary-normal peer-hover:color-icon-on-action-primary-hover peer-active:color-icon-on-action-primary-active",
530
+ selected && disabled && "color-background-action-primary-disabled"
531
+ );
532
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
533
+ "label",
534
+ {
535
+ id,
536
+ "data-testid": testid,
537
+ htmlFor: id ? `${id}-input` : void 0,
538
+ className: (0, import_clsx5.default)(
539
+ "flex items-center",
540
+ componentGap,
541
+ (disabled || readOnly && error || readOnly) && "cursor-default",
542
+ !(readOnly && error) && !disabled && !readOnly && "cursor-pointer"
543
+ ),
544
+ children: [
545
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "relative", children: [
546
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
547
+ "input",
548
+ __spreadValues({
549
+ id: id ? `${id}-input` : void 0,
550
+ "data-testid": testid ? `${testid}-input` : void 0,
551
+ type: "checkbox",
552
+ className: "sr-only peer",
553
+ disabled,
554
+ checked: selected,
555
+ onChange: handleOnChange,
556
+ "data-indeterminate": indeterminate
557
+ }, props)
558
+ ),
559
+ error && (readOnly || disabled) ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_clsx5.default)("size-6", "flex items-center justify-center"), children: selected ? indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "question_mark" }) }) : readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-success-400 contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check" }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check", className: "pointer-events-none" }) }) : readOnly && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close" }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
560
+ "div",
561
+ {
562
+ className: (0, import_clsx5.default)(
563
+ "size-6 border rounded-base",
564
+ "flex items-center justify-center",
565
+ baseTransition,
566
+ normalClassName,
567
+ normalSelectedClassName,
568
+ errorClassName,
569
+ errorSelectedClassName,
570
+ disabledClassName,
571
+ readOnlyClassName,
572
+ checkColor
573
+ ),
574
+ children: selected ? indeterminate ? readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "question_mark" }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "remove", className: "pointer-events-none" }) }) : readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-success-400 contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check" }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check", className: "pointer-events-none" }) }) : readOnly && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close" }) })
575
+ }
576
+ )
577
+ ] }),
578
+ label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
579
+ Paragraph,
580
+ {
581
+ id: id ? `${id}-label` : void 0,
582
+ testid: testid ? `${testid}-label` : void 0,
583
+ as: "span",
584
+ padded: true,
585
+ className: (0, import_clsx5.default)(
586
+ "text-nowrap",
587
+ disabled && !error && "!text-text-primary-disabled",
588
+ error && !disabled && !readOnly && "!text-text-primary-error",
589
+ paragraphClassName
590
+ ),
591
+ children: label
592
+ }
593
+ )
594
+ ]
595
+ }
596
+ );
597
+ function handleOnChange(e) {
598
+ if (disabled || readOnly || readOnly && error || !onChange) {
599
+ return;
600
+ }
601
+ onChange(e);
602
+ }
603
+ };
604
+ Checkbox.displayName = "Checkbox";
605
+
606
+ // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
607
+ var import_clsx7 = __toESM(require("clsx"), 1);
608
+
609
+ // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
610
+ var import_jsx_runtime5 = require("react/jsx-runtime");
611
+ function MobileDataGridColumn(props) {
612
+ var _a;
613
+ const { column, data } = props;
614
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "mb-2 grid grid-cols-2 gap-2 px-3 flex-1", children: [
615
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
616
+ (_a = column.header) == null ? void 0 : _a.toString(),
617
+ ":"
618
+ ] }),
619
+ " ",
620
+ column.id && data[column.id] ? data[column.id] : null
621
+ ] });
622
+ }
623
+
624
+ // src/components/Subheader.tsx
625
+ var import_clsx6 = __toESM(require("clsx"), 1);
626
+ var import_jsx_runtime6 = require("react/jsx-runtime");
627
+ var Subheader = (_a) => {
628
+ var _b = _a, {
629
+ className,
630
+ children,
631
+ as = "span",
632
+ align,
633
+ color,
634
+ tall,
635
+ id,
636
+ testid
637
+ } = _b, props = __objRest(_b, [
638
+ "className",
639
+ "children",
640
+ "as",
641
+ "align",
642
+ "color",
643
+ "tall",
644
+ "id",
645
+ "testid"
646
+ ]);
647
+ const Element = as;
648
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
649
+ Element,
650
+ __spreadProps(__spreadValues({
651
+ id,
652
+ "data-testid": testid,
653
+ className: (0, import_clsx6.default)(
654
+ typography.subheader,
655
+ className,
656
+ align === "left" && "text-left",
657
+ align === "center" && "text-center",
658
+ align === "right" && "text-right",
659
+ tall && "!leading-6"
660
+ ),
661
+ style: __spreadProps(__spreadValues({}, props.style), {
662
+ color: color ? `var(--color-${color})` : void 0
663
+ })
664
+ }, props), {
665
+ children
666
+ })
667
+ );
668
+ };
669
+ Subheader.displayName = "Subheader";
670
+
671
+ // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
672
+ var import_jsx_runtime7 = require("react/jsx-runtime");
673
+ function MobileDataGridCard({
674
+ renderLink,
675
+ renderChevron = true,
676
+ data,
677
+ enableRowSelection,
678
+ selected,
679
+ rowActions
680
+ }) {
681
+ var _a;
682
+ const context = useGridContext();
683
+ const { id, testid, visibleColumns, getId, handleRowSelect, openRowDetail } = context;
684
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
685
+ "li",
686
+ {
687
+ id: id ? `${id}-card-${getId(data)}` : void 0,
688
+ "data-testid": testid ? `${testid}-card-${getId(data)}` : void 0,
689
+ className: (0, import_clsx7.default)(
690
+ "hover:bg-action-100 cursor-pointer list-none",
691
+ selected ? "bg-action-100" : "bg-background-grouped-primary-normal"
692
+ ),
693
+ onClick: () => openRowDetail(data),
694
+ children: [
695
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { sizing: "component", children: [
696
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
697
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
698
+ Stack,
699
+ {
700
+ sizing: "component",
701
+ padding: true,
702
+ width: "fit",
703
+ onClick: (e) => e.stopPropagation(),
704
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
705
+ Checkbox,
706
+ {
707
+ id: id ? `${id}-${getId(data)}-select-checkbox` : void 0,
708
+ testid: testid ? `${testid}-${getId(data)}-select-checkbox` : void 0,
709
+ checked: selected,
710
+ onChange: () => handleRowSelect(data)
711
+ }
712
+ )
713
+ }
714
+ ),
715
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
716
+ Stack,
717
+ {
718
+ sizing: "component",
719
+ padding: true,
720
+ onClick: (e) => e.stopPropagation(),
721
+ children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
722
+ }
723
+ ),
724
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
725
+ Stack,
726
+ {
727
+ horizontal: true,
728
+ horizontalMobile: true,
729
+ items: "center",
730
+ justify: "end",
731
+ sizing: "component",
732
+ onClick: (e) => e.stopPropagation(),
733
+ children: rowActions && (typeof rowActions === "function" ? rowActions(data) : rowActions)
734
+ }
735
+ )
736
+ ] }),
737
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
738
+ var _a2, _b;
739
+ return ((_a2 = x.meta) == null ? void 0 : _a2.visible) !== false && !((_b = x.id) == null ? void 0 : _b.startsWith("__"));
740
+ }).map(
741
+ (column, index) => {
742
+ var _a2, _b;
743
+ return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
744
+ "div",
745
+ {
746
+ className: "mb-2 grid grid-cols-2 gap-2 px-3 items-center flex-1",
747
+ children: [
748
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
749
+ Paragraph,
750
+ {
751
+ color: "text-secondary-normal",
752
+ className: "text-left",
753
+ children: [
754
+ (_b = column.header) == null ? void 0 : _b.toString(),
755
+ ":"
756
+ ]
757
+ }
758
+ ),
759
+ " ",
760
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
761
+ column.meta.mobileCell,
762
+ {
763
+ column,
764
+ row: data,
765
+ cellValue: data[column.id]
766
+ }
767
+ )
768
+ ]
769
+ },
770
+ `${column.id}-${index}`
771
+ ) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
772
+ MobileDataGridColumn,
773
+ {
774
+ column,
775
+ data
776
+ },
777
+ `${column.id}-${index}`
778
+ );
779
+ }
780
+ ) })
781
+ ] }),
782
+ 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" }) })
783
+ ]
784
+ }
785
+ );
786
+ }
787
+ // Annotate the CommonJS export names for ESM import in node:
788
+ 0 && (module.exports = {
789
+ MobileDataGridCard
790
+ });