@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,1261 @@
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/RowDetailModalProvider/index.tsx
60
+ var RowDetailModalProvider_exports = {};
61
+ __export(RowDetailModalProvider_exports, {
62
+ RowDetailModalProvider: () => RowDetailModalProvider
63
+ });
64
+ module.exports = __toCommonJS(RowDetailModalProvider_exports);
65
+
66
+ // src/components/Button.tsx
67
+ var import_clsx2 = __toESM(require("clsx"), 1);
68
+
69
+ // src/classNames.ts
70
+ var import_clsx = __toESM(require("clsx"), 1);
71
+ var typography = {
72
+ display1: (0, import_clsx.default)(
73
+ "font-sans font-semibold",
74
+ "text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
75
+ "leading-display-1-mobile desktop:leading-display-1-desktop"
76
+ ),
77
+ display2: (0, import_clsx.default)(
78
+ "font-sans font-bold",
79
+ "text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
80
+ "leading-display-2-mobile desktop:leading-display-2-desktop"
81
+ ),
82
+ heading1: (0, import_clsx.default)(
83
+ "font-sans font-semibold",
84
+ "text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
85
+ "leading-heading-1-mobile desktop:leading-heading-1-desktop"
86
+ ),
87
+ heading2: (0, import_clsx.default)(
88
+ "font-sans font-normal",
89
+ "text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
90
+ "leading-heading-2-mobile desktop:leading-heading-2-desktop"
91
+ ),
92
+ heading3: (0, import_clsx.default)(
93
+ "font-sans font-semibold",
94
+ "text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
95
+ "leading-heading-3-mobile desktop:leading-heading-3-desktop"
96
+ ),
97
+ subheader: (0, import_clsx.default)(
98
+ "font-sans font-semibold",
99
+ "text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
100
+ "leading-subheader-mobile desktop:leading-subheader-desktop"
101
+ ),
102
+ link: (0, import_clsx.default)(
103
+ "font-sans font-normal",
104
+ "text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
105
+ "leading-link-mobile desktop:leading-link-desktop"
106
+ ),
107
+ buttonLabel: (0, import_clsx.default)(
108
+ "font-sans font-semibold",
109
+ "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
110
+ "leading-label-mobile desktop:leading-label-desktop"
111
+ ),
112
+ label: (0, import_clsx.default)(
113
+ "font-sans font-semibold",
114
+ "text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
115
+ "leading-label-mobile desktop:leading-label-desktop"
116
+ ),
117
+ paragraph: (0, import_clsx.default)(
118
+ "font-sans font-normal",
119
+ "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
120
+ "leading-paragraph-mobile desktop:leading-paragraph-desktop"
121
+ ),
122
+ caption: (0, import_clsx.default)(
123
+ "font-sans font-normal",
124
+ "text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
125
+ "leading-caption-mobile desktop:leading-caption-desktop"
126
+ ),
127
+ breadcrumb: (0, import_clsx.default)(
128
+ "font-sans font-normal",
129
+ "text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
130
+ "leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
131
+ )
132
+ };
133
+ var baseTransition = (0, import_clsx.default)(
134
+ "transition-colors duration-100 ease-in-out"
135
+ );
136
+ var componentGap = (0, import_clsx.default)(
137
+ "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
138
+ );
139
+ var paddingUsingComponentGap = (0, import_clsx.default)(
140
+ "p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
141
+ );
142
+ var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
143
+ "px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
144
+ );
145
+ var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
146
+ "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
147
+ );
148
+ var componentPadding = (0, import_clsx.default)(
149
+ "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
150
+ );
151
+ var componentPaddingBottom = (0, import_clsx.default)(
152
+ "pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
153
+ );
154
+ var componentPaddingX = (0, import_clsx.default)(
155
+ "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
156
+ );
157
+ var componentPaddingY = (0, import_clsx.default)(
158
+ "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
159
+ );
160
+ var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
161
+ "px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
162
+ );
163
+ var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
164
+ "py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
165
+ );
166
+ var componentPaddingMinusBorder = (0, import_clsx.default)(
167
+ "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)]"
168
+ );
169
+ var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
170
+ "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)]"
171
+ );
172
+ var layoutPaddding = (0, import_clsx.default)(
173
+ "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
174
+ );
175
+ var layoutPaddingBottom = (0, import_clsx.default)(
176
+ "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
177
+ );
178
+ var layoutPaddingY = (0, import_clsx.default)(
179
+ "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
180
+ );
181
+ var containerPaddingX = (0, import_clsx.default)(
182
+ "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
183
+ );
184
+ var containerPaddingY = (0, import_clsx.default)(
185
+ "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
186
+ );
187
+ var layoutGroupGapPaddingY = (0, import_clsx.default)(
188
+ "py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
189
+ );
190
+ var layoutGroupGap = (0, import_clsx.default)(
191
+ "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
192
+ );
193
+ var layoutGap = (0, import_clsx.default)(
194
+ "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
195
+ );
196
+ var gapUsingContainerPadding = (0, import_clsx.default)(
197
+ "gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
198
+ );
199
+
200
+ // src/components/Button.tsx
201
+ var import_jsx_runtime = require("react/jsx-runtime");
202
+ var Button = (_a) => {
203
+ var _b = _a, {
204
+ variant = "primary",
205
+ as = "button",
206
+ block,
207
+ leftIcon,
208
+ rightIcon,
209
+ className,
210
+ classNameLabel,
211
+ disabled = false,
212
+ children,
213
+ iconOnly = false,
214
+ colorClassName,
215
+ href,
216
+ id,
217
+ testid
218
+ } = _b, props = __objRest(_b, [
219
+ "variant",
220
+ "as",
221
+ "block",
222
+ "leftIcon",
223
+ "rightIcon",
224
+ "className",
225
+ "classNameLabel",
226
+ "disabled",
227
+ "children",
228
+ "iconOnly",
229
+ "colorClassName",
230
+ "href",
231
+ "id",
232
+ "testid"
233
+ ]);
234
+ const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
235
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
236
+ "bg-background-action-primary-normal border-background-action-primary-normal",
237
+ "hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
238
+ "focus:bg-background-action-primary-hover focus:border-background-action-primary-hover focus:outline-0",
239
+ "active:bg-background-action-primary-active active:border-background-action-primary-active",
240
+ "disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
241
+ );
242
+ const secondaryVariantStyles = variant === "secondary" && (0, import_clsx2.default)(
243
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
244
+ "bg-background-action-secondary-normal border-border-action-normal",
245
+ "hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
246
+ "focus:bg-background-action-secondary-hover focus:border-border-action-hover focus:text-text-action-primary-hover focus:outline-0",
247
+ "active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
248
+ "disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
249
+ );
250
+ const tertiaryVariantStyles = variant === "tertiary" && (0, import_clsx2.default)(
251
+ "bg-transparent border-transparent",
252
+ iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
253
+ "bg-transparent border-transparent",
254
+ "hover:bg-background-action-secondary-hover hover:border-background-action-secondary-hover hover:text-text-action-primary-hover",
255
+ "focus:bg-background-action-secondary-hover focus:border-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
256
+ "active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
257
+ "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
258
+ );
259
+ const primaryCriticalVariantStyles = variant === "primary-critical" && (0, import_clsx2.default)(
260
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
261
+ "bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
262
+ "hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
263
+ "focus:bg-background-action-critical-primary-hover focus:border-background-action-critical-primary-hover focus:outline-0",
264
+ "active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
265
+ "disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
266
+ );
267
+ const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0, import_clsx2.default)(
268
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
269
+ "bg-background-action-critical-secondary-normal border-border-action-critical-normal",
270
+ "hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
271
+ "focus:bg-background-action-critical-secondary-hover focus:border-border-action-critical-hover focus:text-text-action-critical-hover focus:outline-0",
272
+ "active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
273
+ "disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
274
+ );
275
+ const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0, import_clsx2.default)(
276
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
277
+ "bg-transparent border-transparent text-text-action-critical-normal",
278
+ "hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
279
+ "focus:bg-background-action-critical-secondary-hover focus:border-background-action-critical-secondary-hover focus:text-text-action-critical-hover focus:outline-0",
280
+ "active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
281
+ "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
282
+ );
283
+ const navigationVarianStyles = variant === "navigation" && (0, import_clsx2.default)(
284
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
285
+ "bg-transparent",
286
+ "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
287
+ "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
288
+ "active:bg-background-action-secondary-active active:text-text-action-primary-active",
289
+ "disabled:bg-transparent disabled:text-text-on-action-primary-disabled",
290
+ "flex-col",
291
+ paddingUsingComponentGap
292
+ );
293
+ const notNavigationVariantStyles = variant !== "navigation" && (0, import_clsx2.default)("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
294
+ const buttonClasses = (0, import_clsx2.default)(
295
+ disabled ? "cursor-default" : "cursor-pointer",
296
+ block ? "w-full" : "w-fit",
297
+ baseTransition,
298
+ "rounded-sm whitespace-nowrap inline-flex items-center justify-center group/btn",
299
+ primaryVariantStyles,
300
+ secondaryVariantStyles,
301
+ tertiaryVariantStyles,
302
+ primaryCriticalVariantStyles,
303
+ secondaryCriticalVariantStyles,
304
+ tertiaryCriticalVariantStyles,
305
+ navigationVarianStyles,
306
+ notNavigationVariantStyles,
307
+ className
308
+ );
309
+ const labelClasses = (0, import_clsx2.default)(
310
+ "min-h-6 flex items-center justify-center",
311
+ classNameLabel,
312
+ componentPaddingXUsingComponentGap,
313
+ typography.buttonLabel
314
+ );
315
+ const Element = href && !as ? "a" : as;
316
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
317
+ Element,
318
+ __spreadProps(__spreadValues({
319
+ id,
320
+ "data-testid": testid,
321
+ type: Element === "button" ? "button" : void 0,
322
+ className: buttonClasses
323
+ }, props), {
324
+ onClick: props.onClick,
325
+ disabled,
326
+ href,
327
+ "data-theme": variant === "navigation" ? "brand" : void 0,
328
+ children: [
329
+ leftIcon && leftIcon,
330
+ !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
331
+ rightIcon && rightIcon
332
+ ]
333
+ })
334
+ );
335
+ };
336
+ Button.displayName = "Button";
337
+
338
+ // src/components/Heading.tsx
339
+ var import_clsx3 = __toESM(require("clsx"), 1);
340
+ var import_jsx_runtime2 = require("react/jsx-runtime");
341
+ var Heading = (_a) => {
342
+ var _b = _a, {
343
+ className,
344
+ children,
345
+ as,
346
+ color,
347
+ align,
348
+ variant = "heading1",
349
+ id,
350
+ testid
351
+ } = _b, props = __objRest(_b, [
352
+ "className",
353
+ "children",
354
+ "as",
355
+ "color",
356
+ "align",
357
+ "variant",
358
+ "id",
359
+ "testid"
360
+ ]);
361
+ const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
362
+ const Element = as != null ? as : defaultElement;
363
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
364
+ Element,
365
+ __spreadProps(__spreadValues({
366
+ id,
367
+ "data-testid": testid,
368
+ className: (0, import_clsx3.default)(
369
+ typography[variant],
370
+ className,
371
+ align === "left" && "text-left",
372
+ align === "center" && "text-center",
373
+ align === "right" && "text-right"
374
+ ),
375
+ style: __spreadProps(__spreadValues({}, props.style), {
376
+ color: color ? `var(--color-${color})` : void 0
377
+ })
378
+ }, props), {
379
+ children
380
+ })
381
+ );
382
+ };
383
+ Heading.displayName = "Heading";
384
+ var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
385
+ var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
386
+ var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
387
+ Heading1.displayName = "Heading1";
388
+ Heading2.displayName = "Heading2";
389
+ Heading3.displayName = "Heading3";
390
+
391
+ // src/components/Icon.tsx
392
+ var import_clsx4 = __toESM(require("clsx"), 1);
393
+ var import_jsx_runtime3 = require("react/jsx-runtime");
394
+ function Icon(_a) {
395
+ var _b = _a, {
396
+ name,
397
+ size = 24,
398
+ variant = "outline",
399
+ testid
400
+ } = _b, props = __objRest(_b, [
401
+ "name",
402
+ "size",
403
+ "variant",
404
+ "testid"
405
+ ]);
406
+ const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
407
+ const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
408
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
409
+ "span",
410
+ __spreadProps(__spreadValues({}, props), {
411
+ "data-testid": testid,
412
+ className: (0, import_clsx4.default)(
413
+ "icon",
414
+ `icon-${size}`,
415
+ // size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
416
+ props.className
417
+ ),
418
+ style: __spreadValues({
419
+ fontVariationSettings: variantStyle + `, ${weightStyle}`
420
+ }, props.style),
421
+ children: name
422
+ })
423
+ );
424
+ }
425
+
426
+ // src/components/Modal.tsx
427
+ var import_clsx9 = __toESM(require("clsx"), 1);
428
+ var import_react6 = require("react");
429
+
430
+ // src/components/ModalHeader.tsx
431
+ var import_clsx5 = __toESM(require("clsx"), 1);
432
+ var import_jsx_runtime4 = require("react/jsx-runtime");
433
+ var ModalHeader = ({
434
+ title,
435
+ hideCloseIcon,
436
+ headerIcon,
437
+ headerIconAlign,
438
+ onClose,
439
+ id,
440
+ testid,
441
+ headerClassname
442
+ }) => {
443
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
444
+ "div",
445
+ {
446
+ id,
447
+ "data-testid": testid,
448
+ className: (0, import_clsx5.default)(
449
+ "flex justify-between items-center",
450
+ headerIconAlign === "center" && "justify-center",
451
+ headerIconAlign === "right" && "justify-end",
452
+ headerIconAlign === "left" && "justify-start",
453
+ layoutPaddding,
454
+ layoutGroupGap,
455
+ headerClassname
456
+ ),
457
+ children: [
458
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center flex-1", layoutGroupGap), children: [
459
+ headerIcon,
460
+ title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
461
+ Heading2,
462
+ {
463
+ id: id ? `${id}-title` : void 0,
464
+ testid: testid ? `${testid}-title` : void 0,
465
+ as: "p",
466
+ children: title
467
+ }
468
+ )
469
+ ] }),
470
+ !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
471
+ Button,
472
+ {
473
+ id: id ? `${id}-close-button` : void 0,
474
+ testid: testid ? `${testid}-close-button` : void 0,
475
+ iconOnly: true,
476
+ variant: "tertiary",
477
+ onClick: onClose,
478
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close", size: 24 }) })
479
+ }
480
+ )
481
+ ]
482
+ }
483
+ );
484
+ };
485
+ ModalHeader.displayName = "ModalHeader";
486
+
487
+ // src/components/ModalContent.tsx
488
+ var import_clsx6 = __toESM(require("clsx"), 1);
489
+ var import_jsx_runtime5 = require("react/jsx-runtime");
490
+ function ModalContent({
491
+ fixedHeightScrolling,
492
+ children,
493
+ id,
494
+ testid
495
+ }) {
496
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
497
+ "div",
498
+ {
499
+ id,
500
+ "data-testid": testid,
501
+ className: (0, import_clsx6.default)(
502
+ "flex-grow desktop:flex-grow-0",
503
+ layoutPaddding,
504
+ fixedHeightScrolling && "overflow-auto"
505
+ ),
506
+ children
507
+ }
508
+ );
509
+ }
510
+ ModalContent.displayName = "ModalContent";
511
+
512
+ // src/components/ModalButtons.tsx
513
+ var import_clsx7 = __toESM(require("clsx"), 1);
514
+ var import_jsx_runtime6 = require("react/jsx-runtime");
515
+ var ModalButtons = ({
516
+ onClose,
517
+ onContinue,
518
+ customActions,
519
+ id,
520
+ testid
521
+ }) => {
522
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
523
+ "div",
524
+ {
525
+ id,
526
+ "data-testid": testid,
527
+ className: (0, import_clsx7.default)(
528
+ "border-t border-neutral-300 flex justify-end",
529
+ layoutPaddding,
530
+ layoutGroupGap
531
+ ),
532
+ children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
533
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
534
+ Button,
535
+ {
536
+ id: id ? `${id}-close-button` : void 0,
537
+ testid: testid ? `${testid}-close-button` : void 0,
538
+ variant: "secondary",
539
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "close", size: 24 }),
540
+ onClick: onClose,
541
+ className: "max-sm:w-full",
542
+ children: "Close"
543
+ }
544
+ ),
545
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
546
+ Button,
547
+ {
548
+ id: id ? `${id}-continue-button` : void 0,
549
+ testid: testid ? `${testid}-continue-button` : void 0,
550
+ variant: "primary",
551
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "check", size: 24 }),
552
+ className: "max-sm:w-full",
553
+ onClick: onContinue,
554
+ children: "Continue"
555
+ }
556
+ )
557
+ ] })
558
+ }
559
+ );
560
+ };
561
+ ModalButtons.displayName = "ModalButtons";
562
+
563
+ // src/components/ModalScrim.tsx
564
+ var import_clsx8 = __toESM(require("clsx"), 1);
565
+ var import_jsx_runtime7 = require("react/jsx-runtime");
566
+ var ModalScrim = ({
567
+ show = false,
568
+ size = "small",
569
+ children,
570
+ onClick,
571
+ ref,
572
+ id,
573
+ testid
574
+ }) => {
575
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
576
+ "div",
577
+ {
578
+ id,
579
+ "data-testid": testid,
580
+ className: (0, import_clsx8.default)(
581
+ "overflow-y-auto h-screen transition-[visibility,opacity,background] ease-in-out duration-100 grid place-content-center group bg-neutral-600/50 fixed opacity-0",
582
+ !show && " pointer-events-none",
583
+ size === "small" && "p-4",
584
+ size === "screen" ? "desktop:p-0" : "desktop:p-4",
585
+ "inset-0 z-50"
586
+ ),
587
+ onMouseDown: onClick,
588
+ ref,
589
+ children
590
+ }
591
+ );
592
+ };
593
+ ModalScrim.displayName = "ModalScrim";
594
+
595
+ // src/components/Modal.tsx
596
+ var import_react_dom = require("react-dom");
597
+
598
+ // src/utils.ts
599
+ function findDocumentRoot(element) {
600
+ if (typeof window === "undefined" || typeof document === "undefined") {
601
+ throw new Error(
602
+ "findDocumentRoot can only be used in a browser environment."
603
+ );
604
+ }
605
+ if (!element || !(element instanceof Node)) {
606
+ return window.document.body;
607
+ }
608
+ let currentElement = element;
609
+ while (currentElement && currentElement.parentNode) {
610
+ if (currentElement.parentNode === document) {
611
+ return document.body;
612
+ } else if (currentElement.parentNode instanceof DocumentFragment) {
613
+ return currentElement.parentNode;
614
+ } else {
615
+ currentElement = currentElement.parentNode;
616
+ }
617
+ }
618
+ return window.document.body;
619
+ }
620
+
621
+ // src/components/Modal.tsx
622
+ var import_react_use = require("react-use");
623
+
624
+ // src/hooks/useKeydown.ts
625
+ var import_react = require("react");
626
+
627
+ // src/hooks/useInfiniteScroll.tsx
628
+ var import_react2 = require("react");
629
+
630
+ // src/hooks/useMatchesMedia.ts
631
+ var import_react3 = require("react");
632
+ var useMatchesMedia = (query) => {
633
+ const [matches, setMatches] = (0, import_react3.useState)();
634
+ (0, import_react3.useLayoutEffect)(() => {
635
+ const mediaQueryList = window.matchMedia(query);
636
+ const listener = () => setMatches(mediaQueryList.matches);
637
+ listener();
638
+ mediaQueryList.addEventListener("change", listener);
639
+ return () => mediaQueryList.removeEventListener("change", listener);
640
+ }, [query]);
641
+ return matches;
642
+ };
643
+ var useMatchesMobile = () => useMatchesMedia("(width < 48rem)");
644
+
645
+ // src/hooks/useTableLayout.ts
646
+ var import_react4 = require("react");
647
+
648
+ // src/components/useMounted.tsx
649
+ var import_react5 = require("react");
650
+ var useMounted = () => {
651
+ const [isMounted, setIsMounted] = (0, import_react5.useState)(false);
652
+ (0, import_react5.useEffect)(() => {
653
+ setIsMounted(true);
654
+ return () => setIsMounted(false);
655
+ }, []);
656
+ return isMounted;
657
+ };
658
+
659
+ // src/components/Modal.tsx
660
+ var import_jsx_runtime8 = require("react/jsx-runtime");
661
+ var fadeInScale = (element, duration = 300) => element.animate(
662
+ [
663
+ { opacity: 0, transform: "scale(0.95)" },
664
+ { opacity: 1, transform: "scale(1)" }
665
+ ],
666
+ {
667
+ duration,
668
+ easing: "cubic-bezier(0.4, 0, 0.2, 1)",
669
+ fill: "both"
670
+ }
671
+ );
672
+ var fadeOutScale = (element, duration = 200) => element.animate(
673
+ [
674
+ { opacity: 1, transform: "scale(1)" },
675
+ { opacity: 0, transform: "scale(0.95)" }
676
+ ],
677
+ {
678
+ duration,
679
+ easing: "ease-in-out",
680
+ fill: "both"
681
+ }
682
+ );
683
+ var bgFadeIn = (element, duration = 300) => element.animate([{ opacity: 0 }, { opacity: 1 }], {
684
+ duration,
685
+ easing: "cubic-bezier(0.4, 0, 0.2, 1)",
686
+ fill: "both"
687
+ });
688
+ var bgFadeOut = (element, duration = 200) => element.animate([{ opacity: 1 }, { opacity: 0 }], {
689
+ duration,
690
+ easing: "ease-in-out",
691
+ fill: "both"
692
+ });
693
+ var whenAllAnimationsFinish = (animations, callback) => {
694
+ let finishedCount = 0;
695
+ animations.forEach((animation) => {
696
+ animation.onfinish = () => {
697
+ finishedCount += 1;
698
+ if (finishedCount === animations.length) {
699
+ callback();
700
+ }
701
+ };
702
+ });
703
+ };
704
+ var sizes = {
705
+ small: {
706
+ sizeClass: "max-h-screen desktop:max-w-120 rounded-sm"
707
+ },
708
+ medium: {
709
+ sizeClass: "desktop:max-w-180 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
710
+ },
711
+ large: {
712
+ sizeClass: "desktop:max-w-240 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
713
+ },
714
+ "x-large": {
715
+ sizeClass: "desktop:max-w-300 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
716
+ },
717
+ screen: {
718
+ sizeClass: "w-screen h-screen max-w-screen !rounded-none"
719
+ }
720
+ };
721
+ var Modal = ({
722
+ id,
723
+ testid,
724
+ title,
725
+ open = false,
726
+ size = "small",
727
+ className,
728
+ children,
729
+ onClose,
730
+ onContinue,
731
+ closeOnBackdropClick = true,
732
+ showButtons = false,
733
+ hideCloseIcon = false,
734
+ headerIcon,
735
+ headerIconAlign,
736
+ fixedHeightScrolling = false,
737
+ customActions,
738
+ headerClassname,
739
+ customFooter,
740
+ noWrapper
741
+ }) => {
742
+ var _a;
743
+ const mounted = useMounted();
744
+ const modalRef = (0, import_react6.useRef)(null);
745
+ const bgRef = (0, import_react6.useRef)(null);
746
+ const wasOpen = (0, import_react_use.usePrevious)(open);
747
+ const isMobile = useMatchesMobile();
748
+ const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
749
+ (0, import_react6.useEffect)(() => {
750
+ if (!mounted) return;
751
+ if (!modalRef.current || !bgRef.current) {
752
+ console.error("Modal or background reference is not set.");
753
+ return;
754
+ }
755
+ if (wasOpen === void 0) return;
756
+ if (wasOpen && !open) {
757
+ const modalAnimation = fadeOutScale(modalRef.current);
758
+ const bgAnimation = bgFadeOut(bgRef.current);
759
+ whenAllAnimationsFinish([modalAnimation, bgAnimation], () => {
760
+ if (onClose) {
761
+ onClose();
762
+ }
763
+ });
764
+ } else if (!wasOpen && open) {
765
+ fadeInScale(modalRef.current);
766
+ bgFadeIn(bgRef.current);
767
+ }
768
+ }, [mounted, onClose, open, wasOpen]);
769
+ const handleKeyDown = (0, import_react6.useCallback)(
770
+ (e) => {
771
+ if (e.key === "Escape") {
772
+ if (onClose) {
773
+ e.preventDefault();
774
+ onClose();
775
+ }
776
+ }
777
+ },
778
+ [onClose]
779
+ );
780
+ const handleClose = (0, import_react6.useCallback)(() => {
781
+ if (onClose) {
782
+ onClose();
783
+ }
784
+ }, [onClose]);
785
+ (0, import_react6.useEffect)(() => {
786
+ if (open) {
787
+ document.addEventListener("keyup", handleKeyDown);
788
+ }
789
+ return () => {
790
+ document.removeEventListener("keyup", handleKeyDown);
791
+ };
792
+ }, [open, handleKeyDown]);
793
+ (0, import_react6.useEffect)(() => {
794
+ if (!open) return;
795
+ const scrollY = window.scrollY;
796
+ const body = document.body;
797
+ body.style.position = "fixed";
798
+ body.style.top = `-${scrollY}px`;
799
+ body.style.left = "0";
800
+ body.style.right = "0";
801
+ body.style.overflow = "hidden";
802
+ body.style.width = "100%";
803
+ return () => {
804
+ body.style.position = "";
805
+ body.style.top = "";
806
+ body.style.left = "";
807
+ body.style.right = "";
808
+ body.style.overflow = "";
809
+ body.style.width = "";
810
+ window.scrollTo(0, scrollY);
811
+ };
812
+ }, [open]);
813
+ const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
814
+ const backgroundClickHandler = (0, import_react6.useCallback)(
815
+ (e) => {
816
+ const target = e.target;
817
+ const currentTarget = e.currentTarget;
818
+ if (currentTarget.contains(target) && currentTarget !== target) {
819
+ e.stopPropagation();
820
+ return;
821
+ }
822
+ if (open && closeOnBackdropClick) {
823
+ handleClose();
824
+ }
825
+ },
826
+ [open, closeOnBackdropClick, handleClose]
827
+ );
828
+ if (!mounted) {
829
+ return null;
830
+ }
831
+ return (0, import_react_dom.createPortal)(
832
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
833
+ ModalScrim,
834
+ {
835
+ id: id ? `${id}-scrim` : void 0,
836
+ testid: testid ? `${testid}-scrim` : void 0,
837
+ size,
838
+ ref: bgRef,
839
+ show: open,
840
+ onClick: backgroundClickHandler,
841
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
842
+ "div",
843
+ {
844
+ id,
845
+ "data-testid": testid,
846
+ ref: modalRef,
847
+ className: (0, import_clsx9.default)(
848
+ "shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0 h-fit",
849
+ computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
850
+ className,
851
+ !(className == null ? void 0 : className.includes("bg-")) && "bg-white",
852
+ sizeClass
853
+ ),
854
+ onClick: (e) => e.stopPropagation(),
855
+ children: [
856
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
857
+ ModalHeader,
858
+ {
859
+ id: id ? `${id}-header` : void 0,
860
+ testid: testid ? `${testid}-header` : void 0,
861
+ title,
862
+ onClose: handleClose,
863
+ hideCloseIcon,
864
+ headerIcon,
865
+ headerIconAlign,
866
+ headerClassname
867
+ }
868
+ ),
869
+ children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
870
+ ModalContent,
871
+ {
872
+ id: id ? `${id}-content` : void 0,
873
+ testid: testid ? `${testid}-content` : void 0,
874
+ fixedHeightScrolling: computedFixedHeightScrolling,
875
+ children
876
+ }
877
+ ) : children,
878
+ showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
879
+ ModalButtons,
880
+ {
881
+ id: id ? `${id}-buttons` : void 0,
882
+ testid: testid ? `${testid}-buttons` : void 0,
883
+ onClose: handleClose,
884
+ onContinue,
885
+ customActions
886
+ }
887
+ ) : null
888
+ ]
889
+ }
890
+ )
891
+ }
892
+ ),
893
+ findDocumentRoot(bgRef.current)
894
+ );
895
+ };
896
+ Modal.displayName = "Modal";
897
+
898
+ // src/components/Stack.tsx
899
+ var import_clsx10 = __toESM(require("clsx"), 1);
900
+ var import_jsx_runtime9 = require("react/jsx-runtime");
901
+ var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx10.default)(
902
+ "flex",
903
+ items === "start" && "items-start",
904
+ grow && "grow",
905
+ items === "start" && "items-start",
906
+ items === "center" && "items-center",
907
+ items === "end" && "items-end",
908
+ items === "start-center" && "items-start desktop:items-center",
909
+ justify === "start" && "justify-start",
910
+ justify === "center" && "justify-center",
911
+ justify === "end" && "justify-end",
912
+ justify === "end" && "justify-end",
913
+ justify === "between" && "justify-between",
914
+ justify === "around" && "justify-around"
915
+ );
916
+ var useGapClassNames = (sizing) => {
917
+ return (0, import_clsx10.default)(
918
+ sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
919
+ sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
920
+ sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
921
+ sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
922
+ );
923
+ };
924
+ var Stack = (_a) => {
925
+ var _b = _a, {
926
+ children,
927
+ items,
928
+ justify,
929
+ grow,
930
+ padding,
931
+ paddingX,
932
+ paddingY,
933
+ margin,
934
+ marginX,
935
+ marginY,
936
+ horizontal,
937
+ horizontalMobile,
938
+ elevation = 0,
939
+ rounded,
940
+ centered,
941
+ width,
942
+ minHeight,
943
+ maxWidth,
944
+ minWidth,
945
+ height,
946
+ maxHeight,
947
+ borderColor,
948
+ backgroundColor,
949
+ sizing = "none",
950
+ overflowY = "inherit",
951
+ overflowX = "inherit",
952
+ flexShrink,
953
+ flexGrow,
954
+ position,
955
+ top,
956
+ left,
957
+ id,
958
+ noGap,
959
+ marginTop,
960
+ marginBottom,
961
+ testid,
962
+ bottom,
963
+ zIndex
964
+ } = _b, props = __objRest(_b, [
965
+ "children",
966
+ "items",
967
+ "justify",
968
+ "grow",
969
+ "padding",
970
+ "paddingX",
971
+ "paddingY",
972
+ "margin",
973
+ "marginX",
974
+ "marginY",
975
+ "horizontal",
976
+ "horizontalMobile",
977
+ "elevation",
978
+ "rounded",
979
+ "centered",
980
+ "width",
981
+ "minHeight",
982
+ "maxWidth",
983
+ "minWidth",
984
+ "height",
985
+ "maxHeight",
986
+ "borderColor",
987
+ "backgroundColor",
988
+ "sizing",
989
+ "overflowY",
990
+ "overflowX",
991
+ "flexShrink",
992
+ "flexGrow",
993
+ "position",
994
+ "top",
995
+ "left",
996
+ "id",
997
+ "noGap",
998
+ "marginTop",
999
+ "marginBottom",
1000
+ "testid",
1001
+ "bottom",
1002
+ "zIndex"
1003
+ ]);
1004
+ var _a2, _b2, _c, _d, _e;
1005
+ const flexClassNames = getFlexClassNames({ items, justify, grow });
1006
+ const gapClassNames = useGapClassNames(sizing);
1007
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1008
+ "div",
1009
+ __spreadProps(__spreadValues({
1010
+ id,
1011
+ "data-testid": testid
1012
+ }, props), {
1013
+ style: {
1014
+ height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
1015
+ maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
1016
+ maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
1017
+ minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
1018
+ width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
1019
+ minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
1020
+ border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
1021
+ backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
1022
+ flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
1023
+ flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
1024
+ position: position !== void 0 ? position : void 0,
1025
+ top: top !== void 0 ? `${top}px` : void 0,
1026
+ bottom: bottom !== void 0 ? `${bottom}px` : void 0,
1027
+ left: left !== void 0 ? `${left}px` : void 0,
1028
+ borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
1029
+ marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
1030
+ zIndex: zIndex !== void 0 ? zIndex : void 0
1031
+ },
1032
+ className: (0, import_clsx10.default)(
1033
+ "scrollbar-thin",
1034
+ "max-w-screen",
1035
+ width !== "fit" && "w-full",
1036
+ width === "full" && "w-full",
1037
+ width === "max" && "w-max",
1038
+ centered && "mx-auto",
1039
+ overflowY == "auto" && "overflow-y-auto",
1040
+ overflowY == "hidden" && "overflow-y-hidden",
1041
+ overflowY == "scroll" && "overflow-y-scroll",
1042
+ overflowX == "auto" && "overflow-x-auto",
1043
+ overflowX == "hidden" && "overflow-x-hidden",
1044
+ overflowX == "scroll" && "overflow-x-scroll",
1045
+ padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
1046
+ padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
1047
+ padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
1048
+ padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
1049
+ paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
1050
+ paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
1051
+ paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
1052
+ paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
1053
+ paddingY && sizing === "container" && "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding",
1054
+ paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
1055
+ paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
1056
+ paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
1057
+ margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
1058
+ marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
1059
+ marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
1060
+ marginBottom && sizing === "container" && "mb-mobile-container-padding desktop:mb-desktop-container-padding compact:mb-compact-container-padding",
1061
+ marginY && sizing === "container" && "my-mobile-container-padding desktop:my-desktop-container-padding compact:my-compact-container-padding",
1062
+ horizontal ? "desktop:flex-row" : "desktop:flex-col",
1063
+ horizontalMobile ? "flex-row" : "flex-col",
1064
+ flexClassNames,
1065
+ !noGap && gapClassNames,
1066
+ elevation === 0 && "shadow-none",
1067
+ elevation === 2 && "shadow-2",
1068
+ elevation === 4 && "shadow-4",
1069
+ elevation === 16 && "shadow-16",
1070
+ rounded && "rounded"
1071
+ ),
1072
+ children
1073
+ })
1074
+ );
1075
+ };
1076
+
1077
+ // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
1078
+ var import_react8 = require("react");
1079
+
1080
+ // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
1081
+ var import_react7 = require("react");
1082
+ var GridContext = (0, import_react7.createContext)(null);
1083
+
1084
+ // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
1085
+ function useGridContext() {
1086
+ const ctx = (0, import_react8.useContext)(GridContext);
1087
+ if (!ctx) {
1088
+ throw new Error("useGridContext must be used within GridContextProvider");
1089
+ }
1090
+ return ctx;
1091
+ }
1092
+
1093
+ // src/components/Paragraph.tsx
1094
+ var import_clsx11 = __toESM(require("clsx"), 1);
1095
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1096
+ var Paragraph = (_a) => {
1097
+ var _b = _a, {
1098
+ className,
1099
+ color,
1100
+ padded,
1101
+ align = "left",
1102
+ tall,
1103
+ addOverflow,
1104
+ children,
1105
+ as = "p",
1106
+ id,
1107
+ testid
1108
+ } = _b, props = __objRest(_b, [
1109
+ "className",
1110
+ "color",
1111
+ "padded",
1112
+ "align",
1113
+ "tall",
1114
+ "addOverflow",
1115
+ "children",
1116
+ "as",
1117
+ "id",
1118
+ "testid"
1119
+ ]);
1120
+ const Element = as;
1121
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1122
+ Element,
1123
+ __spreadProps(__spreadValues({
1124
+ id,
1125
+ "data-testid": testid
1126
+ }, props), {
1127
+ className: (0, import_clsx11.default)(
1128
+ typography.paragraph,
1129
+ className,
1130
+ padded && componentPaddingXUsingComponentGap,
1131
+ align === "left" && "text-left",
1132
+ align === "center" && "text-center",
1133
+ align === "right" && "text-right",
1134
+ tall && "!leading-6",
1135
+ addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
1136
+ ),
1137
+ style: __spreadProps(__spreadValues({}, props.style), {
1138
+ color: color ? `var(--color-${color})` : void 0
1139
+ }),
1140
+ children
1141
+ })
1142
+ );
1143
+ };
1144
+ Paragraph.displayName = "Paragraph";
1145
+
1146
+ // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
1147
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1148
+ function MobileDataGridColumn(props) {
1149
+ var _a;
1150
+ const { column, data } = props;
1151
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "mb-2 grid grid-cols-2 gap-2 px-3 flex-1", children: [
1152
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
1153
+ (_a = column.header) == null ? void 0 : _a.toString(),
1154
+ ":"
1155
+ ] }),
1156
+ " ",
1157
+ column.id && data[column.id] ? data[column.id] : null
1158
+ ] });
1159
+ }
1160
+
1161
+ // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
1162
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1163
+ function ModalContent2() {
1164
+ const context = useGridContext();
1165
+ const { columns, currentRow } = context;
1166
+ if (!currentRow) return null;
1167
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
1168
+ var _a;
1169
+ return !((_a = x.id) == null ? void 0 : _a.startsWith("__"));
1170
+ }).map(
1171
+ (column, index) => {
1172
+ var _a, _b;
1173
+ return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1174
+ "div",
1175
+ {
1176
+ className: "mb-2 grid grid-cols-2 gap-2 px-3 items-center flex-1",
1177
+ children: [
1178
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
1179
+ (_b = column.header) == null ? void 0 : _b.toString(),
1180
+ ":"
1181
+ ] }),
1182
+ " ",
1183
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1184
+ column.meta.mobileCell,
1185
+ {
1186
+ column,
1187
+ row: currentRow,
1188
+ cellValue: currentRow == null ? void 0 : currentRow[column.id]
1189
+ }
1190
+ )
1191
+ ]
1192
+ },
1193
+ `${column.id}-${index}`
1194
+ ) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1195
+ MobileDataGridColumn,
1196
+ {
1197
+ column,
1198
+ data: currentRow
1199
+ },
1200
+ `${column.id}-${index}`
1201
+ );
1202
+ }
1203
+ ) });
1204
+ }
1205
+
1206
+ // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
1207
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1208
+ function RowDetailModalProvider() {
1209
+ var _a;
1210
+ const context = useGridContext();
1211
+ const {
1212
+ id,
1213
+ testid,
1214
+ isRowDetailOpen,
1215
+ currentRow,
1216
+ primaryKey,
1217
+ closeRowDetail
1218
+ } = context;
1219
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1220
+ Modal,
1221
+ {
1222
+ fixedHeightScrolling: true,
1223
+ open: isRowDetailOpen,
1224
+ onClose: closeRowDetail,
1225
+ hideCloseIcon: true,
1226
+ size: "medium",
1227
+ className: "!p-0",
1228
+ headerIcon: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1229
+ Stack,
1230
+ {
1231
+ horizontal: true,
1232
+ horizontalMobile: true,
1233
+ items: "center",
1234
+ justify: "between",
1235
+ width: "full",
1236
+ children: [
1237
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
1238
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1239
+ Button,
1240
+ {
1241
+ id: id ? `${id}-open-in-new-button` : void 0,
1242
+ testid: testid ? `${testid}-open-in-new-button` : void 0,
1243
+ iconOnly: true,
1244
+ variant: "tertiary",
1245
+ onClick: closeRowDetail,
1246
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { name: "open_in_new", size: 24 }) })
1247
+ }
1248
+ )
1249
+ ]
1250
+ }
1251
+ ),
1252
+ customActions: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
1253
+ showButtons: true,
1254
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalContent2, {}) })
1255
+ }
1256
+ );
1257
+ }
1258
+ // Annotate the CommonJS export names for ESM import in node:
1259
+ 0 && (module.exports = {
1260
+ RowDetailModalProvider
1261
+ });