@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
@@ -62,8 +62,8 @@ __export(DateRangeInput_exports, {
62
62
  DateRangeInput: () => DateRangeInput
63
63
  });
64
64
  module.exports = __toCommonJS(DateRangeInput_exports);
65
- var import_react20 = require("react");
66
- var import_react_dom3 = require("react-dom");
65
+ var import_react36 = require("react");
66
+ var import_react_dom4 = require("react-dom");
67
67
 
68
68
  // src/components/Input.tsx
69
69
  var import_react = require("react");
@@ -716,8 +716,8 @@ Currency.displayName = "Currency";
716
716
  Percentage.displayName = "Percentage";
717
717
 
718
718
  // src/components/CalendarRange.tsx
719
- var import_clsx22 = __toESM(require("clsx"), 1);
720
- var import_react19 = __toESM(require("react"), 1);
719
+ var import_clsx35 = __toESM(require("clsx"), 1);
720
+ var import_react35 = __toESM(require("react"), 1);
721
721
  var import_polyfill = require("@js-temporal/polyfill");
722
722
 
723
723
  // src/components/DataGridCell.tsx
@@ -4115,8 +4115,662 @@ var import_jsx_runtime23 = require("react/jsx-runtime");
4115
4115
  // src/components/Accordion.tsx
4116
4116
  var import_jsx_runtime24 = require("react/jsx-runtime");
4117
4117
 
4118
- // src/components/CalendarRange.tsx
4118
+ // src/components/Heading.tsx
4119
+ var import_clsx22 = __toESM(require("clsx"), 1);
4119
4120
  var import_jsx_runtime25 = require("react/jsx-runtime");
4121
+ var Heading = (_a) => {
4122
+ var _b = _a, {
4123
+ className,
4124
+ children,
4125
+ as,
4126
+ color,
4127
+ align,
4128
+ variant = "heading1",
4129
+ id,
4130
+ testid
4131
+ } = _b, props = __objRest(_b, [
4132
+ "className",
4133
+ "children",
4134
+ "as",
4135
+ "color",
4136
+ "align",
4137
+ "variant",
4138
+ "id",
4139
+ "testid"
4140
+ ]);
4141
+ const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
4142
+ const Element = as != null ? as : defaultElement;
4143
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4144
+ Element,
4145
+ __spreadProps(__spreadValues({
4146
+ id,
4147
+ "data-testid": testid,
4148
+ className: (0, import_clsx22.default)(
4149
+ typography[variant],
4150
+ className,
4151
+ align === "left" && "text-left",
4152
+ align === "center" && "text-center",
4153
+ align === "right" && "text-right"
4154
+ ),
4155
+ style: __spreadProps(__spreadValues({}, props.style), {
4156
+ color: color ? `var(--color-${color})` : void 0
4157
+ })
4158
+ }, props), {
4159
+ children
4160
+ })
4161
+ );
4162
+ };
4163
+ Heading.displayName = "Heading";
4164
+ var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
4165
+ var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
4166
+ var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
4167
+ Heading1.displayName = "Heading1";
4168
+ Heading2.displayName = "Heading2";
4169
+ Heading3.displayName = "Heading3";
4170
+
4171
+ // src/components/Theme.tsx
4172
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4173
+
4174
+ // src/components/MobileDataGrid/ColumnSelector/index.tsx
4175
+ var import_react21 = require("react");
4176
+
4177
+ // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
4178
+ var import_react20 = require("react");
4179
+
4180
+ // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
4181
+ var import_react19 = require("react");
4182
+ var GridContext = (0, import_react19.createContext)(null);
4183
+
4184
+ // src/components/MobileDataGrid/ColumnSelector/index.tsx
4185
+ var import_jsx_runtime27 = require("react/jsx-runtime");
4186
+
4187
+ // src/components/MobileDataGrid/MobileDataGridHeader.tsx
4188
+ var import_jsx_runtime28 = require("react/jsx-runtime");
4189
+
4190
+ // src/components/MobileDataGrid/GridContextProvider/index.tsx
4191
+ var import_react22 = require("react");
4192
+ var import_jsx_runtime29 = require("react/jsx-runtime");
4193
+
4194
+ // src/components/Modal.tsx
4195
+ var import_clsx27 = __toESM(require("clsx"), 1);
4196
+ var import_react24 = require("react");
4197
+
4198
+ // src/components/ModalHeader.tsx
4199
+ var import_clsx23 = __toESM(require("clsx"), 1);
4200
+ var import_jsx_runtime30 = require("react/jsx-runtime");
4201
+ var ModalHeader = ({
4202
+ title,
4203
+ hideCloseIcon,
4204
+ headerIcon,
4205
+ headerIconAlign,
4206
+ onClose,
4207
+ id,
4208
+ testid,
4209
+ headerClassname
4210
+ }) => {
4211
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
4212
+ "div",
4213
+ {
4214
+ id,
4215
+ "data-testid": testid,
4216
+ className: (0, import_clsx23.default)(
4217
+ "flex justify-between items-center",
4218
+ headerIconAlign === "center" && "justify-center",
4219
+ headerIconAlign === "right" && "justify-end",
4220
+ headerIconAlign === "left" && "justify-start",
4221
+ layoutPaddding,
4222
+ layoutGroupGap,
4223
+ headerClassname
4224
+ ),
4225
+ children: [
4226
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_clsx23.default)("flex items-center flex-1", layoutGroupGap), children: [
4227
+ headerIcon,
4228
+ title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4229
+ Heading2,
4230
+ {
4231
+ id: id ? `${id}-title` : void 0,
4232
+ testid: testid ? `${testid}-title` : void 0,
4233
+ as: "p",
4234
+ children: title
4235
+ }
4236
+ )
4237
+ ] }),
4238
+ !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4239
+ Button,
4240
+ {
4241
+ id: id ? `${id}-close-button` : void 0,
4242
+ testid: testid ? `${testid}-close-button` : void 0,
4243
+ iconOnly: true,
4244
+ variant: "tertiary",
4245
+ onClick: onClose,
4246
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon, { name: "close", size: 24 }) })
4247
+ }
4248
+ )
4249
+ ]
4250
+ }
4251
+ );
4252
+ };
4253
+ ModalHeader.displayName = "ModalHeader";
4254
+
4255
+ // src/components/ModalContent.tsx
4256
+ var import_clsx24 = __toESM(require("clsx"), 1);
4257
+ var import_jsx_runtime31 = require("react/jsx-runtime");
4258
+ function ModalContent({
4259
+ fixedHeightScrolling,
4260
+ children,
4261
+ id,
4262
+ testid
4263
+ }) {
4264
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4265
+ "div",
4266
+ {
4267
+ id,
4268
+ "data-testid": testid,
4269
+ className: (0, import_clsx24.default)(
4270
+ "flex-grow desktop:flex-grow-0",
4271
+ layoutPaddding,
4272
+ fixedHeightScrolling && "overflow-auto"
4273
+ ),
4274
+ children
4275
+ }
4276
+ );
4277
+ }
4278
+ ModalContent.displayName = "ModalContent";
4279
+
4280
+ // src/components/ModalButtons.tsx
4281
+ var import_clsx25 = __toESM(require("clsx"), 1);
4282
+ var import_jsx_runtime32 = require("react/jsx-runtime");
4283
+ var ModalButtons = ({
4284
+ onClose,
4285
+ onContinue,
4286
+ customActions,
4287
+ id,
4288
+ testid
4289
+ }) => {
4290
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4291
+ "div",
4292
+ {
4293
+ id,
4294
+ "data-testid": testid,
4295
+ className: (0, import_clsx25.default)(
4296
+ "border-t border-neutral-300 flex justify-end",
4297
+ layoutPaddding,
4298
+ layoutGroupGap
4299
+ ),
4300
+ children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
4301
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4302
+ Button,
4303
+ {
4304
+ id: id ? `${id}-close-button` : void 0,
4305
+ testid: testid ? `${testid}-close-button` : void 0,
4306
+ variant: "secondary",
4307
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "close", size: 24 }),
4308
+ onClick: onClose,
4309
+ className: "max-sm:w-full",
4310
+ children: "Close"
4311
+ }
4312
+ ),
4313
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4314
+ Button,
4315
+ {
4316
+ id: id ? `${id}-continue-button` : void 0,
4317
+ testid: testid ? `${testid}-continue-button` : void 0,
4318
+ variant: "primary",
4319
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "check", size: 24 }),
4320
+ className: "max-sm:w-full",
4321
+ onClick: onContinue,
4322
+ children: "Continue"
4323
+ }
4324
+ )
4325
+ ] })
4326
+ }
4327
+ );
4328
+ };
4329
+ ModalButtons.displayName = "ModalButtons";
4330
+
4331
+ // src/components/ModalScrim.tsx
4332
+ var import_clsx26 = __toESM(require("clsx"), 1);
4333
+ var import_jsx_runtime33 = require("react/jsx-runtime");
4334
+ var ModalScrim = ({
4335
+ show = false,
4336
+ size = "small",
4337
+ children,
4338
+ onClick,
4339
+ ref,
4340
+ id,
4341
+ testid
4342
+ }) => {
4343
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4344
+ "div",
4345
+ {
4346
+ id,
4347
+ "data-testid": testid,
4348
+ className: (0, import_clsx26.default)(
4349
+ "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",
4350
+ !show && " pointer-events-none",
4351
+ size === "small" && "p-4",
4352
+ size === "screen" ? "desktop:p-0" : "desktop:p-4",
4353
+ "inset-0 z-50"
4354
+ ),
4355
+ onMouseDown: onClick,
4356
+ ref,
4357
+ children
4358
+ }
4359
+ );
4360
+ };
4361
+ ModalScrim.displayName = "ModalScrim";
4362
+
4363
+ // src/components/Modal.tsx
4364
+ var import_react_dom3 = require("react-dom");
4365
+ var import_react_use = require("react-use");
4366
+
4367
+ // src/components/useMounted.tsx
4368
+ var import_react23 = require("react");
4369
+ var useMounted = () => {
4370
+ const [isMounted, setIsMounted] = (0, import_react23.useState)(false);
4371
+ (0, import_react23.useEffect)(() => {
4372
+ setIsMounted(true);
4373
+ return () => setIsMounted(false);
4374
+ }, []);
4375
+ return isMounted;
4376
+ };
4377
+
4378
+ // src/components/Modal.tsx
4379
+ var import_jsx_runtime34 = require("react/jsx-runtime");
4380
+ var fadeInScale = (element, duration = 300) => element.animate(
4381
+ [
4382
+ { opacity: 0, transform: "scale(0.95)" },
4383
+ { opacity: 1, transform: "scale(1)" }
4384
+ ],
4385
+ {
4386
+ duration,
4387
+ easing: "cubic-bezier(0.4, 0, 0.2, 1)",
4388
+ fill: "both"
4389
+ }
4390
+ );
4391
+ var fadeOutScale = (element, duration = 200) => element.animate(
4392
+ [
4393
+ { opacity: 1, transform: "scale(1)" },
4394
+ { opacity: 0, transform: "scale(0.95)" }
4395
+ ],
4396
+ {
4397
+ duration,
4398
+ easing: "ease-in-out",
4399
+ fill: "both"
4400
+ }
4401
+ );
4402
+ var bgFadeIn = (element, duration = 300) => element.animate([{ opacity: 0 }, { opacity: 1 }], {
4403
+ duration,
4404
+ easing: "cubic-bezier(0.4, 0, 0.2, 1)",
4405
+ fill: "both"
4406
+ });
4407
+ var bgFadeOut = (element, duration = 200) => element.animate([{ opacity: 1 }, { opacity: 0 }], {
4408
+ duration,
4409
+ easing: "ease-in-out",
4410
+ fill: "both"
4411
+ });
4412
+ var whenAllAnimationsFinish = (animations, callback) => {
4413
+ let finishedCount = 0;
4414
+ animations.forEach((animation) => {
4415
+ animation.onfinish = () => {
4416
+ finishedCount += 1;
4417
+ if (finishedCount === animations.length) {
4418
+ callback();
4419
+ }
4420
+ };
4421
+ });
4422
+ };
4423
+ var sizes = {
4424
+ small: {
4425
+ sizeClass: "max-h-screen desktop:max-w-120 rounded-sm"
4426
+ },
4427
+ medium: {
4428
+ sizeClass: "desktop:max-w-180 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
4429
+ },
4430
+ large: {
4431
+ sizeClass: "desktop:max-w-240 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
4432
+ },
4433
+ "x-large": {
4434
+ sizeClass: "desktop:max-w-300 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
4435
+ },
4436
+ screen: {
4437
+ sizeClass: "w-screen h-screen max-w-screen !rounded-none"
4438
+ }
4439
+ };
4440
+ var Modal = ({
4441
+ id,
4442
+ testid,
4443
+ title,
4444
+ open = false,
4445
+ size = "small",
4446
+ className,
4447
+ children,
4448
+ onClose,
4449
+ onContinue,
4450
+ closeOnBackdropClick = true,
4451
+ showButtons = false,
4452
+ hideCloseIcon = false,
4453
+ headerIcon,
4454
+ headerIconAlign,
4455
+ fixedHeightScrolling = false,
4456
+ customActions,
4457
+ headerClassname,
4458
+ customFooter,
4459
+ noWrapper
4460
+ }) => {
4461
+ var _a;
4462
+ const mounted = useMounted();
4463
+ const modalRef = (0, import_react24.useRef)(null);
4464
+ const bgRef = (0, import_react24.useRef)(null);
4465
+ const wasOpen = (0, import_react_use.usePrevious)(open);
4466
+ const isMobile = useMatchesMobile();
4467
+ const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
4468
+ (0, import_react24.useEffect)(() => {
4469
+ if (!mounted) return;
4470
+ if (!modalRef.current || !bgRef.current) {
4471
+ console.error("Modal or background reference is not set.");
4472
+ return;
4473
+ }
4474
+ if (wasOpen === void 0) return;
4475
+ if (wasOpen && !open) {
4476
+ const modalAnimation = fadeOutScale(modalRef.current);
4477
+ const bgAnimation = bgFadeOut(bgRef.current);
4478
+ whenAllAnimationsFinish([modalAnimation, bgAnimation], () => {
4479
+ if (onClose) {
4480
+ onClose();
4481
+ }
4482
+ });
4483
+ } else if (!wasOpen && open) {
4484
+ fadeInScale(modalRef.current);
4485
+ bgFadeIn(bgRef.current);
4486
+ }
4487
+ }, [mounted, onClose, open, wasOpen]);
4488
+ const handleKeyDown = (0, import_react24.useCallback)(
4489
+ (e) => {
4490
+ if (e.key === "Escape") {
4491
+ if (onClose) {
4492
+ e.preventDefault();
4493
+ onClose();
4494
+ }
4495
+ }
4496
+ },
4497
+ [onClose]
4498
+ );
4499
+ const handleClose = (0, import_react24.useCallback)(() => {
4500
+ if (onClose) {
4501
+ onClose();
4502
+ }
4503
+ }, [onClose]);
4504
+ (0, import_react24.useEffect)(() => {
4505
+ if (open) {
4506
+ document.addEventListener("keyup", handleKeyDown);
4507
+ }
4508
+ return () => {
4509
+ document.removeEventListener("keyup", handleKeyDown);
4510
+ };
4511
+ }, [open, handleKeyDown]);
4512
+ (0, import_react24.useEffect)(() => {
4513
+ if (!open) return;
4514
+ const scrollY = window.scrollY;
4515
+ const body = document.body;
4516
+ body.style.position = "fixed";
4517
+ body.style.top = `-${scrollY}px`;
4518
+ body.style.left = "0";
4519
+ body.style.right = "0";
4520
+ body.style.overflow = "hidden";
4521
+ body.style.width = "100%";
4522
+ return () => {
4523
+ body.style.position = "";
4524
+ body.style.top = "";
4525
+ body.style.left = "";
4526
+ body.style.right = "";
4527
+ body.style.overflow = "";
4528
+ body.style.width = "";
4529
+ window.scrollTo(0, scrollY);
4530
+ };
4531
+ }, [open]);
4532
+ const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
4533
+ const backgroundClickHandler = (0, import_react24.useCallback)(
4534
+ (e) => {
4535
+ const target = e.target;
4536
+ const currentTarget = e.currentTarget;
4537
+ if (currentTarget.contains(target) && currentTarget !== target) {
4538
+ e.stopPropagation();
4539
+ return;
4540
+ }
4541
+ if (open && closeOnBackdropClick) {
4542
+ handleClose();
4543
+ }
4544
+ },
4545
+ [open, closeOnBackdropClick, handleClose]
4546
+ );
4547
+ if (!mounted) {
4548
+ return null;
4549
+ }
4550
+ return (0, import_react_dom3.createPortal)(
4551
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4552
+ ModalScrim,
4553
+ {
4554
+ id: id ? `${id}-scrim` : void 0,
4555
+ testid: testid ? `${testid}-scrim` : void 0,
4556
+ size,
4557
+ ref: bgRef,
4558
+ show: open,
4559
+ onClick: backgroundClickHandler,
4560
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
4561
+ "div",
4562
+ {
4563
+ id,
4564
+ "data-testid": testid,
4565
+ ref: modalRef,
4566
+ className: (0, import_clsx27.default)(
4567
+ "shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0 h-fit",
4568
+ computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
4569
+ className,
4570
+ !(className == null ? void 0 : className.includes("bg-")) && "bg-white",
4571
+ sizeClass
4572
+ ),
4573
+ onClick: (e) => e.stopPropagation(),
4574
+ children: [
4575
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4576
+ ModalHeader,
4577
+ {
4578
+ id: id ? `${id}-header` : void 0,
4579
+ testid: testid ? `${testid}-header` : void 0,
4580
+ title,
4581
+ onClose: handleClose,
4582
+ hideCloseIcon,
4583
+ headerIcon,
4584
+ headerIconAlign,
4585
+ headerClassname
4586
+ }
4587
+ ),
4588
+ children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4589
+ ModalContent,
4590
+ {
4591
+ id: id ? `${id}-content` : void 0,
4592
+ testid: testid ? `${testid}-content` : void 0,
4593
+ fixedHeightScrolling: computedFixedHeightScrolling,
4594
+ children
4595
+ }
4596
+ ) : children,
4597
+ showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4598
+ ModalButtons,
4599
+ {
4600
+ id: id ? `${id}-buttons` : void 0,
4601
+ testid: testid ? `${testid}-buttons` : void 0,
4602
+ onClose: handleClose,
4603
+ onContinue,
4604
+ customActions
4605
+ }
4606
+ ) : null
4607
+ ]
4608
+ }
4609
+ )
4610
+ }
4611
+ ),
4612
+ findDocumentRoot(bgRef.current)
4613
+ );
4614
+ };
4615
+ Modal.displayName = "Modal";
4616
+
4617
+ // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
4618
+ var import_jsx_runtime35 = require("react/jsx-runtime");
4619
+
4620
+ // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
4621
+ var import_jsx_runtime36 = require("react/jsx-runtime");
4622
+
4623
+ // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
4624
+ var import_jsx_runtime37 = require("react/jsx-runtime");
4625
+
4626
+ // src/components/MobileDataGrid/ColumnList.tsx
4627
+ var import_clsx29 = __toESM(require("clsx"), 1);
4628
+
4629
+ // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
4630
+ var import_clsx28 = __toESM(require("clsx"), 1);
4631
+ var import_jsx_runtime38 = require("react/jsx-runtime");
4632
+
4633
+ // src/components/MobileDataGrid/ColumnList.tsx
4634
+ var import_jsx_runtime39 = require("react/jsx-runtime");
4635
+
4636
+ // src/components/MobileDataGrid/index.tsx
4637
+ var import_jsx_runtime40 = require("react/jsx-runtime");
4638
+
4639
+ // src/components/ImagePlaceholder.tsx
4640
+ var import_react25 = require("react");
4641
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4642
+
4643
+ // src/components/ProductImagePreview/Thumbnail.tsx
4644
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4645
+
4646
+ // src/components/Grid.tsx
4647
+ var import_react26 = require("react");
4648
+ var import_clsx30 = __toESM(require("clsx"), 1);
4649
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4650
+
4651
+ // src/components/ProductImagePreview/ProductPrimaryImage.tsx
4652
+ var import_react27 = require("react");
4653
+
4654
+ // src/components/Spinner.tsx
4655
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4656
+ var Spinner = ({ size = "small", testid }) => {
4657
+ const dimension = size === "large" ? 48 : 24;
4658
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4659
+ "svg",
4660
+ {
4661
+ "data-testid": testid,
4662
+ width: dimension,
4663
+ height: dimension,
4664
+ viewBox: "0 0 24 24",
4665
+ xmlns: "http://www.w3.org/2000/svg",
4666
+ fill: "#1D1E1E",
4667
+ className: "spinner",
4668
+ "aria-label": "Loading",
4669
+ children: [
4670
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
4671
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
4672
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
4673
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
4674
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
4675
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
4676
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
4677
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
4678
+ ]
4679
+ }
4680
+ );
4681
+ };
4682
+ Spinner.displayName = "Spinner";
4683
+
4684
+ // src/components/ProductImagePreview/ProductPrimaryImage.tsx
4685
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4686
+
4687
+ // src/components/ProductImagePreview/ZoomWindow.tsx
4688
+ var import_react28 = require("react");
4689
+
4690
+ // src/components/Surface.tsx
4691
+ var import_clsx31 = __toESM(require("clsx"), 1);
4692
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4693
+ var Surface = (_a) => {
4694
+ var _b = _a, {
4695
+ children,
4696
+ className,
4697
+ elevation = 0,
4698
+ id
4699
+ } = _b, props = __objRest(_b, [
4700
+ "children",
4701
+ "className",
4702
+ "elevation",
4703
+ "id"
4704
+ ]);
4705
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4706
+ "div",
4707
+ __spreadProps(__spreadValues({
4708
+ id,
4709
+ className: (0, import_clsx31.default)(
4710
+ "rounded-base",
4711
+ {
4712
+ "shadow-2": elevation === 2,
4713
+ "shadow-4": elevation === 4,
4714
+ "shadow-16": elevation === 16
4715
+ },
4716
+ className
4717
+ )
4718
+ }, props), {
4719
+ children
4720
+ })
4721
+ );
4722
+ };
4723
+ Surface.displayName = "Surface";
4724
+
4725
+ // src/components/ProductImagePreview/ZoomWindow.tsx
4726
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4727
+
4728
+ // src/components/ProductImagePreview/CarouselPagination.tsx
4729
+ var import_clsx32 = require("clsx");
4730
+ var import_jsx_runtime48 = require("react/jsx-runtime");
4731
+
4732
+ // src/components/ProductImagePreview/MobileImageCarousel.tsx
4733
+ var import_react29 = require("react");
4734
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4735
+
4736
+ // src/components/ProductImagePreview/useProductImagePreview.ts
4737
+ var import_react30 = require("react");
4738
+
4739
+ // src/components/ProductImagePreview/index.tsx
4740
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4741
+
4742
+ // src/components/CompactImagesPreview.tsx
4743
+ var import_react31 = require("react");
4744
+ var import_clsx33 = __toESM(require("clsx"), 1);
4745
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4746
+
4747
+ // src/components/PDFViewer/index.tsx
4748
+ var import_react34 = require("react");
4749
+
4750
+ // src/components/PDFViewer/PDFElement.tsx
4751
+ var import_react_pdf2 = require("@mikecousins/react-pdf");
4752
+ var import_react33 = require("react");
4753
+
4754
+ // src/components/PDFViewer/PDFPage.tsx
4755
+ var import_react_pdf = require("@mikecousins/react-pdf");
4756
+ var import_react32 = require("react");
4757
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4758
+
4759
+ // src/components/PDFViewer/PDFElement.tsx
4760
+ var import_clsx34 = __toESM(require("clsx"), 1);
4761
+ var import_jsx_runtime53 = require("react/jsx-runtime");
4762
+
4763
+ // src/components/PDFViewer/DownloadIcon.tsx
4764
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4765
+
4766
+ // src/components/PDFViewer/PDFNavigation.tsx
4767
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4768
+
4769
+ // src/components/PDFViewer/index.tsx
4770
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4771
+
4772
+ // src/components/CalendarRange.tsx
4773
+ var import_jsx_runtime57 = require("react/jsx-runtime");
4120
4774
  function DateCell(_a) {
4121
4775
  var _b = _a, {
4122
4776
  date,
@@ -4151,12 +4805,12 @@ function DateCell(_a) {
4151
4805
  "id",
4152
4806
  "testid"
4153
4807
  ]);
4154
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4808
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4155
4809
  "span",
4156
4810
  __spreadProps(__spreadValues({}, props), {
4157
4811
  id,
4158
4812
  "data-testid": testid,
4159
- className: (0, import_clsx22.default)(
4813
+ className: (0, import_clsx35.default)(
4160
4814
  "flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
4161
4815
  typography.caption,
4162
4816
  cellPadding,
@@ -4226,20 +4880,20 @@ function CalendarRange({
4226
4880
  const fromDate = parseDate(from);
4227
4881
  const toDate = parseDate(to);
4228
4882
  const today = import_polyfill.Temporal.Now.plainDateISO();
4229
- const [baseMonth, setBaseMonth] = (0, import_react19.useState)(
4883
+ const [baseMonth, setBaseMonth] = (0, import_react35.useState)(
4230
4884
  fromDate != null ? fromDate : today.with({ day: 1 })
4231
4885
  );
4232
- const [selecting, setSelecting] = (0, import_react19.useState)("from");
4233
- const [pendingFrom, setPendingFrom] = (0, import_react19.useState)(void 0);
4234
- const [hoveredDate, setHoveredDate] = (0, import_react19.useState)(void 0);
4235
- (0, import_react19.useEffect)(() => {
4886
+ const [selecting, setSelecting] = (0, import_react35.useState)("from");
4887
+ const [pendingFrom, setPendingFrom] = (0, import_react35.useState)(void 0);
4888
+ const [hoveredDate, setHoveredDate] = (0, import_react35.useState)(void 0);
4889
+ (0, import_react35.useEffect)(() => {
4236
4890
  if (fromDate) {
4237
4891
  setBaseMonth(fromDate.with({ day: 1 }));
4238
4892
  } else if (toDate) {
4239
4893
  setBaseMonth(toDate.with({ day: 1 }));
4240
4894
  }
4241
4895
  }, [from, to]);
4242
- (0, import_react19.useEffect)(() => {
4896
+ (0, import_react35.useEffect)(() => {
4243
4897
  if (fromDate && toDate) {
4244
4898
  setSelecting("from");
4245
4899
  setPendingFrom(void 0);
@@ -4305,12 +4959,12 @@ function CalendarRange({
4305
4959
  }
4306
4960
  return false;
4307
4961
  }
4308
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4962
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4309
4963
  "div",
4310
4964
  {
4311
4965
  id,
4312
4966
  "data-testid": testid,
4313
- className: (0, import_clsx22.default)(
4967
+ className: (0, import_clsx35.default)(
4314
4968
  "relative bg-background-grouped-primary-normal rounded-base w-fit",
4315
4969
  layoutPaddding,
4316
4970
  layoutGap,
@@ -4318,15 +4972,15 @@ function CalendarRange({
4318
4972
  // baseTransition,
4319
4973
  "overflow-hidden"
4320
4974
  ),
4321
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4975
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4322
4976
  "div",
4323
4977
  {
4324
- className: (0, import_clsx22.default)(
4978
+ className: (0, import_clsx35.default)(
4325
4979
  "flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
4326
4980
  layoutGap
4327
4981
  ),
4328
4982
  children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
4329
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4983
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4330
4984
  CalendarPane,
4331
4985
  {
4332
4986
  getMonthData,
@@ -4384,45 +5038,45 @@ function CalendarPane({
4384
5038
  const years = Array.from({ length: 100 }).map(
4385
5039
  (_, i) => baseMonth.year - 50 + i
4386
5040
  );
4387
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react19.useState)(false);
4388
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react19.useState)(false);
4389
- const monthMenuRef = (0, import_react19.useRef)(null);
4390
- const yearMenuRef = (0, import_react19.useRef)(null);
5041
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react35.useState)(false);
5042
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react35.useState)(false);
5043
+ const monthMenuRef = (0, import_react35.useRef)(null);
5044
+ const yearMenuRef = (0, import_react35.useRef)(null);
4391
5045
  const month = getMonthData(offset);
4392
5046
  const totalCells = 42;
4393
5047
  const emptyCells = month.firstDayOffset;
4394
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react19.default.Fragment, { children: [
4395
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
5048
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react35.default.Fragment, { children: [
5049
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4396
5050
  "div",
4397
5051
  {
4398
- className: (0, import_clsx22.default)("flex flex-col"),
5052
+ className: (0, import_clsx35.default)("flex flex-col"),
4399
5053
  children: [
4400
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
5054
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4401
5055
  "div",
4402
5056
  {
4403
- className: (0, import_clsx22.default)(
5057
+ className: (0, import_clsx35.default)(
4404
5058
  "flex flex-row items-center justify-between",
4405
5059
  typography.label,
4406
5060
  "text-text-action-primary-normal"
4407
5061
  ),
4408
5062
  children: [
4409
- idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5063
+ idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4410
5064
  "button",
4411
5065
  {
4412
5066
  id: id ? `${id}-prev-month-button` : void 0,
4413
5067
  "data-testid": testid ? `${testid}-prev-month-button` : void 0,
4414
5068
  type: "button",
4415
- className: (0, import_clsx22.default)(
5069
+ className: (0, import_clsx35.default)(
4416
5070
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
4417
5071
  componentPadding
4418
5072
  ),
4419
5073
  "aria-label": "Previous month",
4420
5074
  onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
4421
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { name: "chevron_left", size: 24 })
5075
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "chevron_left", size: 24 })
4422
5076
  }
4423
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: (0, import_clsx22.default)(componentPadding, "mr-1") }),
4424
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
4425
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5077
+ ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "mr-1") }),
5078
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
5079
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4426
5080
  "button",
4427
5081
  {
4428
5082
  ref: (el) => {
@@ -4437,13 +5091,13 @@ function CalendarPane({
4437
5091
  children: month.name
4438
5092
  }
4439
5093
  ),
4440
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5094
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4441
5095
  Menu,
4442
5096
  {
4443
5097
  show: monthMenuOpen,
4444
5098
  positionTo: monthMenuRef,
4445
5099
  setShow: () => setMonthMenuOpen(false),
4446
- children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5100
+ children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4447
5101
  MenuOption,
4448
5102
  {
4449
5103
  selected: baseMonth.month === x + 1,
@@ -4457,7 +5111,7 @@ function CalendarPane({
4457
5111
  ))
4458
5112
  }
4459
5113
  ),
4460
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5114
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4461
5115
  "button",
4462
5116
  {
4463
5117
  ref: (el) => {
@@ -4472,13 +5126,13 @@ function CalendarPane({
4472
5126
  children: month.year
4473
5127
  }
4474
5128
  ),
4475
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5129
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4476
5130
  Menu,
4477
5131
  {
4478
5132
  show: yearMenuOpen,
4479
5133
  positionTo: yearMenuRef,
4480
5134
  setShow: () => setYearMenuOpen(false),
4481
- children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5135
+ children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4482
5136
  MenuOption,
4483
5137
  {
4484
5138
  selected: baseMonth.year === y,
@@ -4493,28 +5147,28 @@ function CalendarPane({
4493
5147
  }
4494
5148
  )
4495
5149
  ] }),
4496
- (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5150
+ (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4497
5151
  "button",
4498
5152
  {
4499
5153
  id: id ? `${id}-next-month-button` : void 0,
4500
5154
  "data-testid": testid ? `${testid}-next-month-button` : void 0,
4501
5155
  type: "button",
4502
- className: (0, import_clsx22.default)(
5156
+ className: (0, import_clsx35.default)(
4503
5157
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
4504
5158
  componentPadding
4505
5159
  ),
4506
5160
  "aria-label": "Next month",
4507
5161
  onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
4508
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { name: "chevron_right", size: 24 })
5162
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "chevron_right", size: 24 })
4509
5163
  }
4510
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: (0, import_clsx22.default)(componentPadding, "ml-1") })
5164
+ ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "ml-1") })
4511
5165
  ]
4512
5166
  }
4513
5167
  ),
4514
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: (0, import_clsx22.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5168
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4515
5169
  "span",
4516
5170
  {
4517
- className: (0, import_clsx22.default)(
5171
+ className: (0, import_clsx35.default)(
4518
5172
  typography.caption,
4519
5173
  "text-text-secondary-normal text-center",
4520
5174
  "w-10"
@@ -4523,7 +5177,7 @@ function CalendarPane({
4523
5177
  },
4524
5178
  d
4525
5179
  )) }),
4526
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: (0, import_clsx22.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
5180
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
4527
5181
  const day = i - emptyCells + 1;
4528
5182
  const date = month.date.with({ day: 1 }).add({
4529
5183
  days: i - emptyCells
@@ -4537,7 +5191,7 @@ function CalendarPane({
4537
5191
  const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
4538
5192
  const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
4539
5193
  const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
4540
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5194
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4541
5195
  DateCell,
4542
5196
  {
4543
5197
  id: id ? `${id}-date-${date.toString()}` : void 0,
@@ -4562,10 +5216,10 @@ function CalendarPane({
4562
5216
  ]
4563
5217
  }
4564
5218
  ),
4565
- mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5219
+ mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4566
5220
  "div",
4567
5221
  {
4568
- className: (0, import_clsx22.default)(
5222
+ className: (0, import_clsx35.default)(
4569
5223
  "self-stretch bg-border-primary-normal rounded-base",
4570
5224
  // 1px width, full height, matches Figma divider
4571
5225
  "w-px"
@@ -4576,7 +5230,7 @@ function CalendarPane({
4576
5230
  }
4577
5231
 
4578
5232
  // src/components/DateRangeInput.tsx
4579
- var import_jsx_runtime26 = require("react/jsx-runtime");
5233
+ var import_jsx_runtime58 = require("react/jsx-runtime");
4580
5234
  var DateRangeInput = (_a) => {
4581
5235
  var _b = _a, {
4582
5236
  id,
@@ -4601,24 +5255,24 @@ var DateRangeInput = (_a) => {
4601
5255
  "disableRange",
4602
5256
  "label"
4603
5257
  ]);
4604
- const [visible, setVisible] = (0, import_react20.useState)(false);
4605
- const [inputValue, setInputValue] = (0, import_react20.useState)("");
4606
- const [isTyping, setIsTyping] = (0, import_react20.useState)(false);
4607
- const popoverRef = (0, import_react20.useRef)(null);
4608
- const rootRef = (0, import_react20.useRef)(null);
4609
- const triggerRef = (0, import_react20.useRef)(null);
4610
- const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
5258
+ const [visible, setVisible] = (0, import_react36.useState)(false);
5259
+ const [inputValue, setInputValue] = (0, import_react36.useState)("");
5260
+ const [isTyping, setIsTyping] = (0, import_react36.useState)(false);
5261
+ const popoverRef = (0, import_react36.useRef)(null);
5262
+ const rootRef = (0, import_react36.useRef)(null);
5263
+ const triggerRef = (0, import_react36.useRef)(null);
5264
+ const [calendarPosition, setCalendarPosition] = (0, import_react36.useState)({
4611
5265
  top: 0,
4612
5266
  left: 0,
4613
5267
  width: 0
4614
5268
  });
4615
5269
  const [from, to] = value.split("|");
4616
- (0, import_react20.useEffect)(() => {
5270
+ (0, import_react36.useEffect)(() => {
4617
5271
  if (!isTyping) {
4618
5272
  setInputValue(formatDisplayValue(from, to));
4619
5273
  }
4620
5274
  }, [from, to, isTyping, disableRange]);
4621
- (0, import_react20.useLayoutEffect)(() => {
5275
+ (0, import_react36.useLayoutEffect)(() => {
4622
5276
  if (visible) {
4623
5277
  updatePosition();
4624
5278
  }
@@ -4633,7 +5287,7 @@ var DateRangeInput = (_a) => {
4633
5287
  });
4634
5288
  }
4635
5289
  };
4636
- (0, import_react20.useEffect)(() => {
5290
+ (0, import_react36.useEffect)(() => {
4637
5291
  updatePosition();
4638
5292
  const resizeObserver = new ResizeObserver(updatePosition);
4639
5293
  if (triggerRef.current) {
@@ -4645,7 +5299,7 @@ var DateRangeInput = (_a) => {
4645
5299
  window.removeEventListener("scroll", updatePosition);
4646
5300
  };
4647
5301
  }, []);
4648
- (0, import_react20.useEffect)(() => {
5302
+ (0, import_react36.useEffect)(() => {
4649
5303
  const handleKeyDown2 = (event) => {
4650
5304
  var _a2;
4651
5305
  if (event.key === "Escape" && popoverRef.current) {
@@ -4658,7 +5312,7 @@ var DateRangeInput = (_a) => {
4658
5312
  document.removeEventListener("keydown", handleKeyDown2);
4659
5313
  };
4660
5314
  }, []);
4661
- (0, import_react20.useEffect)(() => {
5315
+ (0, import_react36.useEffect)(() => {
4662
5316
  const handleClickOutside = (event) => {
4663
5317
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4664
5318
  setVisible(false);
@@ -4993,8 +5647,8 @@ var DateRangeInput = (_a) => {
4993
5647
  }
4994
5648
  }
4995
5649
  };
4996
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "relative", children: [
4997
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
5650
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative", children: [
5651
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4998
5652
  InputBase,
4999
5653
  __spreadProps(__spreadValues({
5000
5654
  id,
@@ -5008,7 +5662,7 @@ var DateRangeInput = (_a) => {
5008
5662
  placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
5009
5663
  disabled,
5010
5664
  readOnly,
5011
- after: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { name: "calendar_month" }),
5665
+ after: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "calendar_month" }),
5012
5666
  onFocus: handleFocus,
5013
5667
  onClick: handleClick,
5014
5668
  onChange: handleInputChange,
@@ -5018,8 +5672,8 @@ var DateRangeInput = (_a) => {
5018
5672
  secondaryIconColor: true
5019
5673
  })
5020
5674
  ),
5021
- visible && !readOnly && (0, import_react_dom3.createPortal)(
5022
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
5675
+ visible && !readOnly && (0, import_react_dom4.createPortal)(
5676
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5023
5677
  "div",
5024
5678
  {
5025
5679
  ref: (el) => {
@@ -5031,7 +5685,7 @@ var DateRangeInput = (_a) => {
5031
5685
  left: `${calendarPosition.left}px`,
5032
5686
  minWidth: `${calendarPosition.width}px`
5033
5687
  },
5034
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
5688
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5035
5689
  CalendarRange,
5036
5690
  {
5037
5691
  id: id ? `${id}-calendar` : void 0,