@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
@@ -64,7 +64,7 @@ __export(CalendarRange_exports, {
64
64
  isWeekend: () => isWeekend
65
65
  });
66
66
  module.exports = __toCommonJS(CalendarRange_exports);
67
- var import_clsx22 = __toESM(require("clsx"), 1);
67
+ var import_clsx35 = __toESM(require("clsx"), 1);
68
68
 
69
69
  // src/classNames.ts
70
70
  var import_clsx = __toESM(require("clsx"), 1);
@@ -233,7 +233,7 @@ function Icon(_a) {
233
233
  }
234
234
 
235
235
  // src/components/CalendarRange.tsx
236
- var import_react19 = __toESM(require("react"), 1);
236
+ var import_react35 = __toESM(require("react"), 1);
237
237
  var import_polyfill = require("@js-temporal/polyfill");
238
238
 
239
239
  // src/components/DataGridCell.tsx
@@ -4037,8 +4037,662 @@ var import_jsx_runtime23 = require("react/jsx-runtime");
4037
4037
  // src/components/Accordion.tsx
4038
4038
  var import_jsx_runtime24 = require("react/jsx-runtime");
4039
4039
 
4040
- // src/components/CalendarRange.tsx
4040
+ // src/components/Heading.tsx
4041
+ var import_clsx22 = __toESM(require("clsx"), 1);
4041
4042
  var import_jsx_runtime25 = require("react/jsx-runtime");
4043
+ var Heading = (_a) => {
4044
+ var _b = _a, {
4045
+ className,
4046
+ children,
4047
+ as,
4048
+ color,
4049
+ align,
4050
+ variant = "heading1",
4051
+ id,
4052
+ testid
4053
+ } = _b, props = __objRest(_b, [
4054
+ "className",
4055
+ "children",
4056
+ "as",
4057
+ "color",
4058
+ "align",
4059
+ "variant",
4060
+ "id",
4061
+ "testid"
4062
+ ]);
4063
+ const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
4064
+ const Element = as != null ? as : defaultElement;
4065
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4066
+ Element,
4067
+ __spreadProps(__spreadValues({
4068
+ id,
4069
+ "data-testid": testid,
4070
+ className: (0, import_clsx22.default)(
4071
+ typography[variant],
4072
+ className,
4073
+ align === "left" && "text-left",
4074
+ align === "center" && "text-center",
4075
+ align === "right" && "text-right"
4076
+ ),
4077
+ style: __spreadProps(__spreadValues({}, props.style), {
4078
+ color: color ? `var(--color-${color})` : void 0
4079
+ })
4080
+ }, props), {
4081
+ children
4082
+ })
4083
+ );
4084
+ };
4085
+ Heading.displayName = "Heading";
4086
+ var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
4087
+ var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
4088
+ var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
4089
+ Heading1.displayName = "Heading1";
4090
+ Heading2.displayName = "Heading2";
4091
+ Heading3.displayName = "Heading3";
4092
+
4093
+ // src/components/Theme.tsx
4094
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4095
+
4096
+ // src/components/MobileDataGrid/ColumnSelector/index.tsx
4097
+ var import_react21 = require("react");
4098
+
4099
+ // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
4100
+ var import_react20 = require("react");
4101
+
4102
+ // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
4103
+ var import_react19 = require("react");
4104
+ var GridContext = (0, import_react19.createContext)(null);
4105
+
4106
+ // src/components/MobileDataGrid/ColumnSelector/index.tsx
4107
+ var import_jsx_runtime27 = require("react/jsx-runtime");
4108
+
4109
+ // src/components/MobileDataGrid/MobileDataGridHeader.tsx
4110
+ var import_jsx_runtime28 = require("react/jsx-runtime");
4111
+
4112
+ // src/components/MobileDataGrid/GridContextProvider/index.tsx
4113
+ var import_react22 = require("react");
4114
+ var import_jsx_runtime29 = require("react/jsx-runtime");
4115
+
4116
+ // src/components/Modal.tsx
4117
+ var import_clsx27 = __toESM(require("clsx"), 1);
4118
+ var import_react24 = require("react");
4119
+
4120
+ // src/components/ModalHeader.tsx
4121
+ var import_clsx23 = __toESM(require("clsx"), 1);
4122
+ var import_jsx_runtime30 = require("react/jsx-runtime");
4123
+ var ModalHeader = ({
4124
+ title,
4125
+ hideCloseIcon,
4126
+ headerIcon,
4127
+ headerIconAlign,
4128
+ onClose,
4129
+ id,
4130
+ testid,
4131
+ headerClassname
4132
+ }) => {
4133
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
4134
+ "div",
4135
+ {
4136
+ id,
4137
+ "data-testid": testid,
4138
+ className: (0, import_clsx23.default)(
4139
+ "flex justify-between items-center",
4140
+ headerIconAlign === "center" && "justify-center",
4141
+ headerIconAlign === "right" && "justify-end",
4142
+ headerIconAlign === "left" && "justify-start",
4143
+ layoutPaddding,
4144
+ layoutGroupGap,
4145
+ headerClassname
4146
+ ),
4147
+ children: [
4148
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_clsx23.default)("flex items-center flex-1", layoutGroupGap), children: [
4149
+ headerIcon,
4150
+ title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4151
+ Heading2,
4152
+ {
4153
+ id: id ? `${id}-title` : void 0,
4154
+ testid: testid ? `${testid}-title` : void 0,
4155
+ as: "p",
4156
+ children: title
4157
+ }
4158
+ )
4159
+ ] }),
4160
+ !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4161
+ Button,
4162
+ {
4163
+ id: id ? `${id}-close-button` : void 0,
4164
+ testid: testid ? `${testid}-close-button` : void 0,
4165
+ iconOnly: true,
4166
+ variant: "tertiary",
4167
+ onClick: onClose,
4168
+ 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 }) })
4169
+ }
4170
+ )
4171
+ ]
4172
+ }
4173
+ );
4174
+ };
4175
+ ModalHeader.displayName = "ModalHeader";
4176
+
4177
+ // src/components/ModalContent.tsx
4178
+ var import_clsx24 = __toESM(require("clsx"), 1);
4179
+ var import_jsx_runtime31 = require("react/jsx-runtime");
4180
+ function ModalContent({
4181
+ fixedHeightScrolling,
4182
+ children,
4183
+ id,
4184
+ testid
4185
+ }) {
4186
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4187
+ "div",
4188
+ {
4189
+ id,
4190
+ "data-testid": testid,
4191
+ className: (0, import_clsx24.default)(
4192
+ "flex-grow desktop:flex-grow-0",
4193
+ layoutPaddding,
4194
+ fixedHeightScrolling && "overflow-auto"
4195
+ ),
4196
+ children
4197
+ }
4198
+ );
4199
+ }
4200
+ ModalContent.displayName = "ModalContent";
4201
+
4202
+ // src/components/ModalButtons.tsx
4203
+ var import_clsx25 = __toESM(require("clsx"), 1);
4204
+ var import_jsx_runtime32 = require("react/jsx-runtime");
4205
+ var ModalButtons = ({
4206
+ onClose,
4207
+ onContinue,
4208
+ customActions,
4209
+ id,
4210
+ testid
4211
+ }) => {
4212
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4213
+ "div",
4214
+ {
4215
+ id,
4216
+ "data-testid": testid,
4217
+ className: (0, import_clsx25.default)(
4218
+ "border-t border-neutral-300 flex justify-end",
4219
+ layoutPaddding,
4220
+ layoutGroupGap
4221
+ ),
4222
+ children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
4223
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4224
+ Button,
4225
+ {
4226
+ id: id ? `${id}-close-button` : void 0,
4227
+ testid: testid ? `${testid}-close-button` : void 0,
4228
+ variant: "secondary",
4229
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "close", size: 24 }),
4230
+ onClick: onClose,
4231
+ className: "max-sm:w-full",
4232
+ children: "Close"
4233
+ }
4234
+ ),
4235
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4236
+ Button,
4237
+ {
4238
+ id: id ? `${id}-continue-button` : void 0,
4239
+ testid: testid ? `${testid}-continue-button` : void 0,
4240
+ variant: "primary",
4241
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "check", size: 24 }),
4242
+ className: "max-sm:w-full",
4243
+ onClick: onContinue,
4244
+ children: "Continue"
4245
+ }
4246
+ )
4247
+ ] })
4248
+ }
4249
+ );
4250
+ };
4251
+ ModalButtons.displayName = "ModalButtons";
4252
+
4253
+ // src/components/ModalScrim.tsx
4254
+ var import_clsx26 = __toESM(require("clsx"), 1);
4255
+ var import_jsx_runtime33 = require("react/jsx-runtime");
4256
+ var ModalScrim = ({
4257
+ show = false,
4258
+ size = "small",
4259
+ children,
4260
+ onClick,
4261
+ ref,
4262
+ id,
4263
+ testid
4264
+ }) => {
4265
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4266
+ "div",
4267
+ {
4268
+ id,
4269
+ "data-testid": testid,
4270
+ className: (0, import_clsx26.default)(
4271
+ "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",
4272
+ !show && " pointer-events-none",
4273
+ size === "small" && "p-4",
4274
+ size === "screen" ? "desktop:p-0" : "desktop:p-4",
4275
+ "inset-0 z-50"
4276
+ ),
4277
+ onMouseDown: onClick,
4278
+ ref,
4279
+ children
4280
+ }
4281
+ );
4282
+ };
4283
+ ModalScrim.displayName = "ModalScrim";
4284
+
4285
+ // src/components/Modal.tsx
4286
+ var import_react_dom3 = require("react-dom");
4287
+ var import_react_use = require("react-use");
4288
+
4289
+ // src/components/useMounted.tsx
4290
+ var import_react23 = require("react");
4291
+ var useMounted = () => {
4292
+ const [isMounted, setIsMounted] = (0, import_react23.useState)(false);
4293
+ (0, import_react23.useEffect)(() => {
4294
+ setIsMounted(true);
4295
+ return () => setIsMounted(false);
4296
+ }, []);
4297
+ return isMounted;
4298
+ };
4299
+
4300
+ // src/components/Modal.tsx
4301
+ var import_jsx_runtime34 = require("react/jsx-runtime");
4302
+ var fadeInScale = (element, duration = 300) => element.animate(
4303
+ [
4304
+ { opacity: 0, transform: "scale(0.95)" },
4305
+ { opacity: 1, transform: "scale(1)" }
4306
+ ],
4307
+ {
4308
+ duration,
4309
+ easing: "cubic-bezier(0.4, 0, 0.2, 1)",
4310
+ fill: "both"
4311
+ }
4312
+ );
4313
+ var fadeOutScale = (element, duration = 200) => element.animate(
4314
+ [
4315
+ { opacity: 1, transform: "scale(1)" },
4316
+ { opacity: 0, transform: "scale(0.95)" }
4317
+ ],
4318
+ {
4319
+ duration,
4320
+ easing: "ease-in-out",
4321
+ fill: "both"
4322
+ }
4323
+ );
4324
+ var bgFadeIn = (element, duration = 300) => element.animate([{ opacity: 0 }, { opacity: 1 }], {
4325
+ duration,
4326
+ easing: "cubic-bezier(0.4, 0, 0.2, 1)",
4327
+ fill: "both"
4328
+ });
4329
+ var bgFadeOut = (element, duration = 200) => element.animate([{ opacity: 1 }, { opacity: 0 }], {
4330
+ duration,
4331
+ easing: "ease-in-out",
4332
+ fill: "both"
4333
+ });
4334
+ var whenAllAnimationsFinish = (animations, callback) => {
4335
+ let finishedCount = 0;
4336
+ animations.forEach((animation) => {
4337
+ animation.onfinish = () => {
4338
+ finishedCount += 1;
4339
+ if (finishedCount === animations.length) {
4340
+ callback();
4341
+ }
4342
+ };
4343
+ });
4344
+ };
4345
+ var sizes = {
4346
+ small: {
4347
+ sizeClass: "max-h-screen desktop:max-w-120 rounded-sm"
4348
+ },
4349
+ medium: {
4350
+ sizeClass: "desktop:max-w-180 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
4351
+ },
4352
+ large: {
4353
+ sizeClass: "desktop:max-w-240 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
4354
+ },
4355
+ "x-large": {
4356
+ sizeClass: "desktop:max-w-300 w-screen desktop:h-fit h-screen desktop:w-full max-w-240"
4357
+ },
4358
+ screen: {
4359
+ sizeClass: "w-screen h-screen max-w-screen !rounded-none"
4360
+ }
4361
+ };
4362
+ var Modal = ({
4363
+ id,
4364
+ testid,
4365
+ title,
4366
+ open = false,
4367
+ size = "small",
4368
+ className,
4369
+ children,
4370
+ onClose,
4371
+ onContinue,
4372
+ closeOnBackdropClick = true,
4373
+ showButtons = false,
4374
+ hideCloseIcon = false,
4375
+ headerIcon,
4376
+ headerIconAlign,
4377
+ fixedHeightScrolling = false,
4378
+ customActions,
4379
+ headerClassname,
4380
+ customFooter,
4381
+ noWrapper
4382
+ }) => {
4383
+ var _a;
4384
+ const mounted = useMounted();
4385
+ const modalRef = (0, import_react24.useRef)(null);
4386
+ const bgRef = (0, import_react24.useRef)(null);
4387
+ const wasOpen = (0, import_react_use.usePrevious)(open);
4388
+ const isMobile = useMatchesMobile();
4389
+ const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
4390
+ (0, import_react24.useEffect)(() => {
4391
+ if (!mounted) return;
4392
+ if (!modalRef.current || !bgRef.current) {
4393
+ console.error("Modal or background reference is not set.");
4394
+ return;
4395
+ }
4396
+ if (wasOpen === void 0) return;
4397
+ if (wasOpen && !open) {
4398
+ const modalAnimation = fadeOutScale(modalRef.current);
4399
+ const bgAnimation = bgFadeOut(bgRef.current);
4400
+ whenAllAnimationsFinish([modalAnimation, bgAnimation], () => {
4401
+ if (onClose) {
4402
+ onClose();
4403
+ }
4404
+ });
4405
+ } else if (!wasOpen && open) {
4406
+ fadeInScale(modalRef.current);
4407
+ bgFadeIn(bgRef.current);
4408
+ }
4409
+ }, [mounted, onClose, open, wasOpen]);
4410
+ const handleKeyDown = (0, import_react24.useCallback)(
4411
+ (e) => {
4412
+ if (e.key === "Escape") {
4413
+ if (onClose) {
4414
+ e.preventDefault();
4415
+ onClose();
4416
+ }
4417
+ }
4418
+ },
4419
+ [onClose]
4420
+ );
4421
+ const handleClose = (0, import_react24.useCallback)(() => {
4422
+ if (onClose) {
4423
+ onClose();
4424
+ }
4425
+ }, [onClose]);
4426
+ (0, import_react24.useEffect)(() => {
4427
+ if (open) {
4428
+ document.addEventListener("keyup", handleKeyDown);
4429
+ }
4430
+ return () => {
4431
+ document.removeEventListener("keyup", handleKeyDown);
4432
+ };
4433
+ }, [open, handleKeyDown]);
4434
+ (0, import_react24.useEffect)(() => {
4435
+ if (!open) return;
4436
+ const scrollY = window.scrollY;
4437
+ const body = document.body;
4438
+ body.style.position = "fixed";
4439
+ body.style.top = `-${scrollY}px`;
4440
+ body.style.left = "0";
4441
+ body.style.right = "0";
4442
+ body.style.overflow = "hidden";
4443
+ body.style.width = "100%";
4444
+ return () => {
4445
+ body.style.position = "";
4446
+ body.style.top = "";
4447
+ body.style.left = "";
4448
+ body.style.right = "";
4449
+ body.style.overflow = "";
4450
+ body.style.width = "";
4451
+ window.scrollTo(0, scrollY);
4452
+ };
4453
+ }, [open]);
4454
+ const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
4455
+ const backgroundClickHandler = (0, import_react24.useCallback)(
4456
+ (e) => {
4457
+ const target = e.target;
4458
+ const currentTarget = e.currentTarget;
4459
+ if (currentTarget.contains(target) && currentTarget !== target) {
4460
+ e.stopPropagation();
4461
+ return;
4462
+ }
4463
+ if (open && closeOnBackdropClick) {
4464
+ handleClose();
4465
+ }
4466
+ },
4467
+ [open, closeOnBackdropClick, handleClose]
4468
+ );
4469
+ if (!mounted) {
4470
+ return null;
4471
+ }
4472
+ return (0, import_react_dom3.createPortal)(
4473
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4474
+ ModalScrim,
4475
+ {
4476
+ id: id ? `${id}-scrim` : void 0,
4477
+ testid: testid ? `${testid}-scrim` : void 0,
4478
+ size,
4479
+ ref: bgRef,
4480
+ show: open,
4481
+ onClick: backgroundClickHandler,
4482
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
4483
+ "div",
4484
+ {
4485
+ id,
4486
+ "data-testid": testid,
4487
+ ref: modalRef,
4488
+ className: (0, import_clsx27.default)(
4489
+ "shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0 h-fit",
4490
+ computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
4491
+ className,
4492
+ !(className == null ? void 0 : className.includes("bg-")) && "bg-white",
4493
+ sizeClass
4494
+ ),
4495
+ onClick: (e) => e.stopPropagation(),
4496
+ children: [
4497
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4498
+ ModalHeader,
4499
+ {
4500
+ id: id ? `${id}-header` : void 0,
4501
+ testid: testid ? `${testid}-header` : void 0,
4502
+ title,
4503
+ onClose: handleClose,
4504
+ hideCloseIcon,
4505
+ headerIcon,
4506
+ headerIconAlign,
4507
+ headerClassname
4508
+ }
4509
+ ),
4510
+ children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4511
+ ModalContent,
4512
+ {
4513
+ id: id ? `${id}-content` : void 0,
4514
+ testid: testid ? `${testid}-content` : void 0,
4515
+ fixedHeightScrolling: computedFixedHeightScrolling,
4516
+ children
4517
+ }
4518
+ ) : children,
4519
+ showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4520
+ ModalButtons,
4521
+ {
4522
+ id: id ? `${id}-buttons` : void 0,
4523
+ testid: testid ? `${testid}-buttons` : void 0,
4524
+ onClose: handleClose,
4525
+ onContinue,
4526
+ customActions
4527
+ }
4528
+ ) : null
4529
+ ]
4530
+ }
4531
+ )
4532
+ }
4533
+ ),
4534
+ findDocumentRoot(bgRef.current)
4535
+ );
4536
+ };
4537
+ Modal.displayName = "Modal";
4538
+
4539
+ // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
4540
+ var import_jsx_runtime35 = require("react/jsx-runtime");
4541
+
4542
+ // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
4543
+ var import_jsx_runtime36 = require("react/jsx-runtime");
4544
+
4545
+ // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
4546
+ var import_jsx_runtime37 = require("react/jsx-runtime");
4547
+
4548
+ // src/components/MobileDataGrid/ColumnList.tsx
4549
+ var import_clsx29 = __toESM(require("clsx"), 1);
4550
+
4551
+ // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
4552
+ var import_clsx28 = __toESM(require("clsx"), 1);
4553
+ var import_jsx_runtime38 = require("react/jsx-runtime");
4554
+
4555
+ // src/components/MobileDataGrid/ColumnList.tsx
4556
+ var import_jsx_runtime39 = require("react/jsx-runtime");
4557
+
4558
+ // src/components/MobileDataGrid/index.tsx
4559
+ var import_jsx_runtime40 = require("react/jsx-runtime");
4560
+
4561
+ // src/components/ImagePlaceholder.tsx
4562
+ var import_react25 = require("react");
4563
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4564
+
4565
+ // src/components/ProductImagePreview/Thumbnail.tsx
4566
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4567
+
4568
+ // src/components/Grid.tsx
4569
+ var import_react26 = require("react");
4570
+ var import_clsx30 = __toESM(require("clsx"), 1);
4571
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4572
+
4573
+ // src/components/ProductImagePreview/ProductPrimaryImage.tsx
4574
+ var import_react27 = require("react");
4575
+
4576
+ // src/components/Spinner.tsx
4577
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4578
+ var Spinner = ({ size = "small", testid }) => {
4579
+ const dimension = size === "large" ? 48 : 24;
4580
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4581
+ "svg",
4582
+ {
4583
+ "data-testid": testid,
4584
+ width: dimension,
4585
+ height: dimension,
4586
+ viewBox: "0 0 24 24",
4587
+ xmlns: "http://www.w3.org/2000/svg",
4588
+ fill: "#1D1E1E",
4589
+ className: "spinner",
4590
+ "aria-label": "Loading",
4591
+ children: [
4592
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
4593
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
4594
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
4595
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
4596
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
4597
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
4598
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
4599
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
4600
+ ]
4601
+ }
4602
+ );
4603
+ };
4604
+ Spinner.displayName = "Spinner";
4605
+
4606
+ // src/components/ProductImagePreview/ProductPrimaryImage.tsx
4607
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4608
+
4609
+ // src/components/ProductImagePreview/ZoomWindow.tsx
4610
+ var import_react28 = require("react");
4611
+
4612
+ // src/components/Surface.tsx
4613
+ var import_clsx31 = __toESM(require("clsx"), 1);
4614
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4615
+ var Surface = (_a) => {
4616
+ var _b = _a, {
4617
+ children,
4618
+ className,
4619
+ elevation = 0,
4620
+ id
4621
+ } = _b, props = __objRest(_b, [
4622
+ "children",
4623
+ "className",
4624
+ "elevation",
4625
+ "id"
4626
+ ]);
4627
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4628
+ "div",
4629
+ __spreadProps(__spreadValues({
4630
+ id,
4631
+ className: (0, import_clsx31.default)(
4632
+ "rounded-base",
4633
+ {
4634
+ "shadow-2": elevation === 2,
4635
+ "shadow-4": elevation === 4,
4636
+ "shadow-16": elevation === 16
4637
+ },
4638
+ className
4639
+ )
4640
+ }, props), {
4641
+ children
4642
+ })
4643
+ );
4644
+ };
4645
+ Surface.displayName = "Surface";
4646
+
4647
+ // src/components/ProductImagePreview/ZoomWindow.tsx
4648
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4649
+
4650
+ // src/components/ProductImagePreview/CarouselPagination.tsx
4651
+ var import_clsx32 = require("clsx");
4652
+ var import_jsx_runtime48 = require("react/jsx-runtime");
4653
+
4654
+ // src/components/ProductImagePreview/MobileImageCarousel.tsx
4655
+ var import_react29 = require("react");
4656
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4657
+
4658
+ // src/components/ProductImagePreview/useProductImagePreview.ts
4659
+ var import_react30 = require("react");
4660
+
4661
+ // src/components/ProductImagePreview/index.tsx
4662
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4663
+
4664
+ // src/components/CompactImagesPreview.tsx
4665
+ var import_react31 = require("react");
4666
+ var import_clsx33 = __toESM(require("clsx"), 1);
4667
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4668
+
4669
+ // src/components/PDFViewer/index.tsx
4670
+ var import_react34 = require("react");
4671
+
4672
+ // src/components/PDFViewer/PDFElement.tsx
4673
+ var import_react_pdf2 = require("@mikecousins/react-pdf");
4674
+ var import_react33 = require("react");
4675
+
4676
+ // src/components/PDFViewer/PDFPage.tsx
4677
+ var import_react_pdf = require("@mikecousins/react-pdf");
4678
+ var import_react32 = require("react");
4679
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4680
+
4681
+ // src/components/PDFViewer/PDFElement.tsx
4682
+ var import_clsx34 = __toESM(require("clsx"), 1);
4683
+ var import_jsx_runtime53 = require("react/jsx-runtime");
4684
+
4685
+ // src/components/PDFViewer/DownloadIcon.tsx
4686
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4687
+
4688
+ // src/components/PDFViewer/PDFNavigation.tsx
4689
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4690
+
4691
+ // src/components/PDFViewer/index.tsx
4692
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4693
+
4694
+ // src/components/CalendarRange.tsx
4695
+ var import_jsx_runtime57 = require("react/jsx-runtime");
4042
4696
  function isWeekend(date) {
4043
4697
  return date.dayOfWeek === 6 || date.dayOfWeek === 7;
4044
4698
  }
@@ -4076,12 +4730,12 @@ function DateCell(_a) {
4076
4730
  "id",
4077
4731
  "testid"
4078
4732
  ]);
4079
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4733
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4080
4734
  "span",
4081
4735
  __spreadProps(__spreadValues({}, props), {
4082
4736
  id,
4083
4737
  "data-testid": testid,
4084
- className: (0, import_clsx22.default)(
4738
+ className: (0, import_clsx35.default)(
4085
4739
  "flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
4086
4740
  typography.caption,
4087
4741
  cellPadding,
@@ -4151,20 +4805,20 @@ function CalendarRange({
4151
4805
  const fromDate = parseDate(from);
4152
4806
  const toDate = parseDate(to);
4153
4807
  const today = import_polyfill.Temporal.Now.plainDateISO();
4154
- const [baseMonth, setBaseMonth] = (0, import_react19.useState)(
4808
+ const [baseMonth, setBaseMonth] = (0, import_react35.useState)(
4155
4809
  fromDate != null ? fromDate : today.with({ day: 1 })
4156
4810
  );
4157
- const [selecting, setSelecting] = (0, import_react19.useState)("from");
4158
- const [pendingFrom, setPendingFrom] = (0, import_react19.useState)(void 0);
4159
- const [hoveredDate, setHoveredDate] = (0, import_react19.useState)(void 0);
4160
- (0, import_react19.useEffect)(() => {
4811
+ const [selecting, setSelecting] = (0, import_react35.useState)("from");
4812
+ const [pendingFrom, setPendingFrom] = (0, import_react35.useState)(void 0);
4813
+ const [hoveredDate, setHoveredDate] = (0, import_react35.useState)(void 0);
4814
+ (0, import_react35.useEffect)(() => {
4161
4815
  if (fromDate) {
4162
4816
  setBaseMonth(fromDate.with({ day: 1 }));
4163
4817
  } else if (toDate) {
4164
4818
  setBaseMonth(toDate.with({ day: 1 }));
4165
4819
  }
4166
4820
  }, [from, to]);
4167
- (0, import_react19.useEffect)(() => {
4821
+ (0, import_react35.useEffect)(() => {
4168
4822
  if (fromDate && toDate) {
4169
4823
  setSelecting("from");
4170
4824
  setPendingFrom(void 0);
@@ -4230,12 +4884,12 @@ function CalendarRange({
4230
4884
  }
4231
4885
  return false;
4232
4886
  }
4233
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4887
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4234
4888
  "div",
4235
4889
  {
4236
4890
  id,
4237
4891
  "data-testid": testid,
4238
- className: (0, import_clsx22.default)(
4892
+ className: (0, import_clsx35.default)(
4239
4893
  "relative bg-background-grouped-primary-normal rounded-base w-fit",
4240
4894
  layoutPaddding,
4241
4895
  layoutGap,
@@ -4243,15 +4897,15 @@ function CalendarRange({
4243
4897
  // baseTransition,
4244
4898
  "overflow-hidden"
4245
4899
  ),
4246
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4900
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4247
4901
  "div",
4248
4902
  {
4249
- className: (0, import_clsx22.default)(
4903
+ className: (0, import_clsx35.default)(
4250
4904
  "flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
4251
4905
  layoutGap
4252
4906
  ),
4253
4907
  children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
4254
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4908
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4255
4909
  CalendarPane,
4256
4910
  {
4257
4911
  getMonthData,
@@ -4309,45 +4963,45 @@ function CalendarPane({
4309
4963
  const years = Array.from({ length: 100 }).map(
4310
4964
  (_, i) => baseMonth.year - 50 + i
4311
4965
  );
4312
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react19.useState)(false);
4313
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react19.useState)(false);
4314
- const monthMenuRef = (0, import_react19.useRef)(null);
4315
- const yearMenuRef = (0, import_react19.useRef)(null);
4966
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react35.useState)(false);
4967
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react35.useState)(false);
4968
+ const monthMenuRef = (0, import_react35.useRef)(null);
4969
+ const yearMenuRef = (0, import_react35.useRef)(null);
4316
4970
  const month = getMonthData(offset);
4317
4971
  const totalCells = 42;
4318
4972
  const emptyCells = month.firstDayOffset;
4319
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react19.default.Fragment, { children: [
4320
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
4973
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react35.default.Fragment, { children: [
4974
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4321
4975
  "div",
4322
4976
  {
4323
- className: (0, import_clsx22.default)("flex flex-col"),
4977
+ className: (0, import_clsx35.default)("flex flex-col"),
4324
4978
  children: [
4325
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
4979
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4326
4980
  "div",
4327
4981
  {
4328
- className: (0, import_clsx22.default)(
4982
+ className: (0, import_clsx35.default)(
4329
4983
  "flex flex-row items-center justify-between",
4330
4984
  typography.label,
4331
4985
  "text-text-action-primary-normal"
4332
4986
  ),
4333
4987
  children: [
4334
- idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4988
+ idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4335
4989
  "button",
4336
4990
  {
4337
4991
  id: id ? `${id}-prev-month-button` : void 0,
4338
4992
  "data-testid": testid ? `${testid}-prev-month-button` : void 0,
4339
4993
  type: "button",
4340
- className: (0, import_clsx22.default)(
4994
+ className: (0, import_clsx35.default)(
4341
4995
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
4342
4996
  componentPadding
4343
4997
  ),
4344
4998
  "aria-label": "Previous month",
4345
4999
  onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
4346
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { name: "chevron_left", size: 24 })
5000
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "chevron_left", size: 24 })
4347
5001
  }
4348
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: (0, import_clsx22.default)(componentPadding, "mr-1") }),
4349
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
4350
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5002
+ ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "mr-1") }),
5003
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
5004
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4351
5005
  "button",
4352
5006
  {
4353
5007
  ref: (el) => {
@@ -4362,13 +5016,13 @@ function CalendarPane({
4362
5016
  children: month.name
4363
5017
  }
4364
5018
  ),
4365
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5019
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4366
5020
  Menu,
4367
5021
  {
4368
5022
  show: monthMenuOpen,
4369
5023
  positionTo: monthMenuRef,
4370
5024
  setShow: () => setMonthMenuOpen(false),
4371
- children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5025
+ children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4372
5026
  MenuOption,
4373
5027
  {
4374
5028
  selected: baseMonth.month === x + 1,
@@ -4382,7 +5036,7 @@ function CalendarPane({
4382
5036
  ))
4383
5037
  }
4384
5038
  ),
4385
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5039
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4386
5040
  "button",
4387
5041
  {
4388
5042
  ref: (el) => {
@@ -4397,13 +5051,13 @@ function CalendarPane({
4397
5051
  children: month.year
4398
5052
  }
4399
5053
  ),
4400
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5054
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4401
5055
  Menu,
4402
5056
  {
4403
5057
  show: yearMenuOpen,
4404
5058
  positionTo: yearMenuRef,
4405
5059
  setShow: () => setYearMenuOpen(false),
4406
- children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5060
+ children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4407
5061
  MenuOption,
4408
5062
  {
4409
5063
  selected: baseMonth.year === y,
@@ -4418,28 +5072,28 @@ function CalendarPane({
4418
5072
  }
4419
5073
  )
4420
5074
  ] }),
4421
- (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5075
+ (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4422
5076
  "button",
4423
5077
  {
4424
5078
  id: id ? `${id}-next-month-button` : void 0,
4425
5079
  "data-testid": testid ? `${testid}-next-month-button` : void 0,
4426
5080
  type: "button",
4427
- className: (0, import_clsx22.default)(
5081
+ className: (0, import_clsx35.default)(
4428
5082
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
4429
5083
  componentPadding
4430
5084
  ),
4431
5085
  "aria-label": "Next month",
4432
5086
  onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
4433
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { name: "chevron_right", size: 24 })
5087
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "chevron_right", size: 24 })
4434
5088
  }
4435
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: (0, import_clsx22.default)(componentPadding, "ml-1") })
5089
+ ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "ml-1") })
4436
5090
  ]
4437
5091
  }
4438
5092
  ),
4439
- /* @__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)(
5093
+ /* @__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)(
4440
5094
  "span",
4441
5095
  {
4442
- className: (0, import_clsx22.default)(
5096
+ className: (0, import_clsx35.default)(
4443
5097
  typography.caption,
4444
5098
  "text-text-secondary-normal text-center",
4445
5099
  "w-10"
@@ -4448,7 +5102,7 @@ function CalendarPane({
4448
5102
  },
4449
5103
  d
4450
5104
  )) }),
4451
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: (0, import_clsx22.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
5105
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
4452
5106
  const day = i - emptyCells + 1;
4453
5107
  const date = month.date.with({ day: 1 }).add({
4454
5108
  days: i - emptyCells
@@ -4462,7 +5116,7 @@ function CalendarPane({
4462
5116
  const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
4463
5117
  const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
4464
5118
  const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
4465
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5119
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4466
5120
  DateCell,
4467
5121
  {
4468
5122
  id: id ? `${id}-date-${date.toString()}` : void 0,
@@ -4487,10 +5141,10 @@ function CalendarPane({
4487
5141
  ]
4488
5142
  }
4489
5143
  ),
4490
- mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5144
+ mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4491
5145
  "div",
4492
5146
  {
4493
- className: (0, import_clsx22.default)(
5147
+ className: (0, import_clsx35.default)(
4494
5148
  "self-stretch bg-border-primary-normal rounded-base",
4495
5149
  // 1px width, full height, matches Figma divider
4496
5150
  "w-px"