@dmsi/wedgekit-react 0.0.552 → 0.0.554

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 (151) hide show
  1. package/dist/{chunk-7COWXCPA.js → chunk-45SH6WHE.js} +3 -3
  2. package/dist/{chunk-KJ5OQPPV.js → chunk-63WMDTVQ.js} +1 -1
  3. package/dist/{chunk-FJFZBIRG.js → chunk-7ZCXZDJD.js} +3 -3
  4. package/dist/{chunk-FWCVZWE6.js → chunk-7ZL4GBAD.js} +3 -3
  5. package/dist/{chunk-5BRIDIUA.js → chunk-AGHBLWDZ.js} +3 -3
  6. package/dist/{chunk-QYKOR7LE.js → chunk-CQLRGYHM.js} +3 -3
  7. package/dist/{chunk-XRE52QTN.js → chunk-D5V3PUQQ.js} +6 -6
  8. package/dist/{chunk-Y3EFHKAG.js → chunk-DWICBU2V.js} +1 -1
  9. package/dist/{chunk-CMMQTIVM.js → chunk-EJOPJIRO.js} +3 -3
  10. package/dist/{chunk-K4SIZGMK.js → chunk-EQ2RAI53.js} +1 -1
  11. package/dist/{chunk-SBGGDIE3.js → chunk-FIVKYEC3.js} +7 -7
  12. package/dist/{chunk-QMMPHXVE.js → chunk-GVIXW2QS.js} +3 -3
  13. package/dist/{chunk-ZIPJMN2E.js → chunk-GYQA4UIK.js} +6 -6
  14. package/dist/{chunk-45AHDOAU.js → chunk-HVYK7COK.js} +9 -3
  15. package/dist/{chunk-AKJUBFJK.js → chunk-KV7LAH3T.js} +3 -3
  16. package/dist/{chunk-AX4M7X4Z.js → chunk-MTGNBARV.js} +5 -2
  17. package/dist/{chunk-MHXYGKWA.js → chunk-Q3G6Z5DM.js} +1 -1
  18. package/dist/{chunk-4DXOA7NZ.js → chunk-RZ5EIDX4.js} +1 -1
  19. package/dist/{chunk-PJL5XESN.js → chunk-TL4M56HJ.js} +1 -1
  20. package/dist/{chunk-WNGFRQ4Y.js → chunk-TXPN24PW.js} +13 -13
  21. package/dist/{chunk-Z2QAJY5I.js → chunk-UAMI54FE.js} +1 -1
  22. package/dist/chunk-XJF4S3RB.js +82 -0
  23. package/dist/chunk-XR733AKC.js +82 -0
  24. package/dist/{chunk-7SFFUICM.js → chunk-YLC7OHW2.js} +6 -6
  25. package/dist/chunk-ZCJWOHFN.js +139 -0
  26. package/dist/{chunk-JADOJNBI.js → chunk-ZDXJXDZT.js} +4 -4
  27. package/dist/components/AccessCard.cjs +661 -0
  28. package/dist/components/AccessCard.js +13 -0
  29. package/dist/components/AccessCardGroup.cjs +365 -0
  30. package/dist/components/AccessCardGroup.js +11 -0
  31. package/dist/components/Accordion.cjs +5 -2
  32. package/dist/components/Accordion.js +2 -2
  33. package/dist/components/Alert.cjs +64 -28
  34. package/dist/components/Alert.js +4 -3
  35. package/dist/components/Button.cjs +38 -5
  36. package/dist/components/Button.js +2 -1
  37. package/dist/components/CalendarRange.cjs +298 -128
  38. package/dist/components/CalendarRange.css +44 -0
  39. package/dist/components/CalendarRange.js +28 -24
  40. package/dist/components/CompactImagesPreview.cjs +5 -2
  41. package/dist/components/CompactImagesPreview.js +2 -2
  42. package/dist/components/ContentTab.cjs +42 -9
  43. package/dist/components/ContentTab.js +3 -2
  44. package/dist/components/ContentTabs.cjs +47 -14
  45. package/dist/components/ContentTabs.js +3 -2
  46. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +281 -111
  47. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +44 -0
  48. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +28 -24
  49. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +291 -121
  50. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +44 -0
  51. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +28 -24
  52. package/dist/components/DataGrid/PinnedColumns.cjs +306 -136
  53. package/dist/components/DataGrid/PinnedColumns.css +44 -0
  54. package/dist/components/DataGrid/PinnedColumns.js +28 -24
  55. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +282 -112
  56. package/dist/components/DataGrid/TableBody/LoadingCell.css +44 -0
  57. package/dist/components/DataGrid/TableBody/LoadingCell.js +28 -24
  58. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +288 -118
  59. package/dist/components/DataGrid/TableBody/TableBodyRow.css +44 -0
  60. package/dist/components/DataGrid/TableBody/TableBodyRow.js +28 -24
  61. package/dist/components/DataGrid/TableBody/index.cjs +303 -133
  62. package/dist/components/DataGrid/TableBody/index.css +44 -0
  63. package/dist/components/DataGrid/TableBody/index.js +28 -24
  64. package/dist/components/DataGrid/index.cjs +392 -222
  65. package/dist/components/DataGrid/index.css +44 -0
  66. package/dist/components/DataGrid/index.js +28 -24
  67. package/dist/components/DataGrid/utils.cjs +282 -112
  68. package/dist/components/DataGrid/utils.css +44 -0
  69. package/dist/components/DataGrid/utils.js +28 -24
  70. package/dist/components/DataGridCell.js +3 -3
  71. package/dist/components/DateInput.cjs +311 -141
  72. package/dist/components/DateInput.css +44 -0
  73. package/dist/components/DateInput.js +28 -24
  74. package/dist/components/DateRangeInput.cjs +317 -147
  75. package/dist/components/DateRangeInput.css +44 -0
  76. package/dist/components/DateRangeInput.js +28 -24
  77. package/dist/components/FilterGroup.cjs +87 -52
  78. package/dist/components/FilterGroup.js +6 -5
  79. package/dist/components/InputGroup.cjs +1 -1
  80. package/dist/components/InputGroup.js +1 -1
  81. package/dist/components/ListGroup.cjs +5 -2
  82. package/dist/components/ListGroup.js +2 -2
  83. package/dist/components/MenuOption.js +2 -2
  84. package/dist/components/MobileDataGrid/ColumnList.cjs +5 -2
  85. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  86. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +288 -118
  87. package/dist/components/MobileDataGrid/ColumnSelector/index.css +44 -0
  88. package/dist/components/MobileDataGrid/ColumnSelector/index.js +28 -24
  89. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +5 -2
  90. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  91. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +293 -120
  92. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +44 -0
  93. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +28 -24
  94. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +5 -2
  95. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  96. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +94 -58
  97. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +8 -7
  98. package/dist/components/MobileDataGrid/index.cjs +372 -199
  99. package/dist/components/MobileDataGrid/index.css +44 -0
  100. package/dist/components/MobileDataGrid/index.js +28 -24
  101. package/dist/components/Modal.cjs +64 -29
  102. package/dist/components/Modal.js +5 -4
  103. package/dist/components/ModalButtons.cjs +47 -14
  104. package/dist/components/ModalButtons.js +3 -2
  105. package/dist/components/ModalHeader.cjs +47 -12
  106. package/dist/components/ModalHeader.js +3 -2
  107. package/dist/components/NavigationTab.cjs +43 -10
  108. package/dist/components/NavigationTab.js +3 -2
  109. package/dist/components/NavigationTabs.cjs +48 -15
  110. package/dist/components/NavigationTabs.js +3 -2
  111. package/dist/components/NestedMenu.cjs +48 -13
  112. package/dist/components/NestedMenu.js +6 -5
  113. package/dist/components/Notification.cjs +68 -32
  114. package/dist/components/Notification.js +7 -6
  115. package/dist/components/OptionPill.cjs +48 -13
  116. package/dist/components/OptionPill.js +3 -2
  117. package/dist/components/PDFViewer/DownloadIcon.cjs +46 -13
  118. package/dist/components/PDFViewer/DownloadIcon.js +3 -2
  119. package/dist/components/PDFViewer/PDFElement.cjs +5 -2
  120. package/dist/components/PDFViewer/PDFElement.js +2 -2
  121. package/dist/components/PDFViewer/PDFNavigation.cjs +64 -28
  122. package/dist/components/PDFViewer/PDFNavigation.js +4 -3
  123. package/dist/components/PDFViewer/index.cjs +69 -61
  124. package/dist/components/PDFViewer/index.js +11 -11
  125. package/dist/components/ProductImagePreview/index.cjs +5 -2
  126. package/dist/components/ProductImagePreview/index.js +5 -5
  127. package/dist/components/Radio.js +5 -134
  128. package/dist/components/SideMenuGroup.cjs +5 -2
  129. package/dist/components/SideMenuGroup.js +1 -1
  130. package/dist/components/SideMenuItem.cjs +5 -2
  131. package/dist/components/SideMenuItem.js +3 -3
  132. package/dist/components/SimpleTable.cjs +5 -2
  133. package/dist/components/SimpleTable.js +2 -2
  134. package/dist/components/Stack.cjs +5 -2
  135. package/dist/components/Stack.js +1 -1
  136. package/dist/components/Stepper.cjs +73 -40
  137. package/dist/components/Stepper.js +4 -3
  138. package/dist/components/Swatch.cjs +5 -2
  139. package/dist/components/Swatch.js +3 -3
  140. package/dist/components/Time.cjs +5 -2
  141. package/dist/components/Time.js +2 -2
  142. package/dist/components/Toast.cjs +51 -16
  143. package/dist/components/Toast.js +4 -3
  144. package/dist/components/Upload.cjs +46 -38
  145. package/dist/components/Upload.js +6 -6
  146. package/dist/components/index.cjs +537 -231
  147. package/dist/components/index.css +44 -0
  148. package/dist/components/index.js +40 -30
  149. package/dist/index.css +44 -0
  150. package/package.json +1 -1
  151. package/dist/{chunk-EZ4KZYKG.js → chunk-YWQEMS2C.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_clsx39 = __toESM(require("clsx"), 1);
67
+ var import_clsx42 = __toESM(require("clsx"), 1);
68
68
 
69
69
  // src/classNames.ts
70
70
  var import_clsx = __toESM(require("clsx"), 1);
@@ -242,7 +242,7 @@ function Icon(_a) {
242
242
  }
243
243
 
244
244
  // src/components/CalendarRange.tsx
245
- var import_react37 = __toESM(require("react"), 1);
245
+ var import_react38 = __toESM(require("react"), 1);
246
246
  var import_polyfill = require("@js-temporal/polyfill");
247
247
 
248
248
  // src/components/DataGridCell.tsx
@@ -4072,7 +4072,39 @@ Checkbox.displayName = "Checkbox";
4072
4072
 
4073
4073
  // src/components/Button.tsx
4074
4074
  var import_clsx18 = __toESM(require("clsx"), 1);
4075
+
4076
+ // src/components/Spinner.tsx
4075
4077
  var import_jsx_runtime21 = require("react/jsx-runtime");
4078
+ var Spinner = ({ size = "small", testid }) => {
4079
+ const dimension = size === "large" ? 48 : 24;
4080
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4081
+ "svg",
4082
+ {
4083
+ "data-testid": testid,
4084
+ width: dimension,
4085
+ height: dimension,
4086
+ viewBox: "0 0 24 24",
4087
+ xmlns: "http://www.w3.org/2000/svg",
4088
+ fill: "#1D1E1E",
4089
+ className: "spinner",
4090
+ "aria-label": "Loading",
4091
+ children: [
4092
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
4093
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
4094
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
4095
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
4096
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
4097
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
4098
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
4099
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
4100
+ ]
4101
+ }
4102
+ );
4103
+ };
4104
+ Spinner.displayName = "Spinner";
4105
+
4106
+ // src/components/Button.tsx
4107
+ var import_jsx_runtime22 = require("react/jsx-runtime");
4076
4108
  var Button = (_a) => {
4077
4109
  var _b = _a, {
4078
4110
  variant = "primary",
@@ -4088,7 +4120,8 @@ var Button = (_a) => {
4088
4120
  colorClassName,
4089
4121
  href,
4090
4122
  id,
4091
- testid
4123
+ testid,
4124
+ isLoading
4092
4125
  } = _b, props = __objRest(_b, [
4093
4126
  "variant",
4094
4127
  "as",
@@ -4103,7 +4136,8 @@ var Button = (_a) => {
4103
4136
  "colorClassName",
4104
4137
  "href",
4105
4138
  "id",
4106
- "testid"
4139
+ "testid",
4140
+ "isLoading"
4107
4141
  ]);
4108
4142
  const primaryVariantStyles = variant === "primary" && (0, import_clsx18.default)(
4109
4143
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -4187,7 +4221,7 @@ var Button = (_a) => {
4187
4221
  typography.buttonLabel
4188
4222
  );
4189
4223
  const Element = href && !as ? "a" : as;
4190
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4224
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4191
4225
  Element,
4192
4226
  __spreadProps(__spreadValues({
4193
4227
  id,
@@ -4201,7 +4235,8 @@ var Button = (_a) => {
4201
4235
  "data-theme": variant === "navigation" ? "brand" : void 0,
4202
4236
  children: [
4203
4237
  leftIcon && leftIcon,
4204
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
4238
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Spinner, { size: "small" }),
4239
+ !iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
4205
4240
  rightIcon && rightIcon
4206
4241
  ]
4207
4242
  })
@@ -4213,7 +4248,7 @@ Button.displayName = "Button";
4213
4248
  var import_clsx19 = __toESM(require("clsx"), 1);
4214
4249
  var import_react18 = require("react");
4215
4250
  var import_react_dom2 = require("react-dom");
4216
- var import_jsx_runtime22 = require("react/jsx-runtime");
4251
+ var import_jsx_runtime23 = require("react/jsx-runtime");
4217
4252
  var Tooltip = ({
4218
4253
  id,
4219
4254
  testid,
@@ -4280,7 +4315,7 @@ var Tooltip = ({
4280
4315
  return () => window.removeEventListener("resize", updatePosition);
4281
4316
  }
4282
4317
  }, [isVisible]);
4283
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4318
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4284
4319
  "div",
4285
4320
  {
4286
4321
  id,
@@ -4292,7 +4327,7 @@ var Tooltip = ({
4292
4327
  children: [
4293
4328
  children,
4294
4329
  !keepHidden && isVisible && typeof document !== "undefined" && (0, import_react_dom2.createPortal)(
4295
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4330
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4296
4331
  "div",
4297
4332
  {
4298
4333
  id: id ? `${id}-message` : void 0,
@@ -4334,7 +4369,7 @@ Tooltip.displayName = "Tooltip";
4334
4369
  // src/components/DateInput.tsx
4335
4370
  var import_react19 = require("react");
4336
4371
  var import_react_dom3 = require("react-dom");
4337
- var import_jsx_runtime23 = require("react/jsx-runtime");
4372
+ var import_jsx_runtime24 = require("react/jsx-runtime");
4338
4373
  var DateInput = (_a) => {
4339
4374
  var _b = _a, {
4340
4375
  id,
@@ -4495,8 +4530,8 @@ var DateInput = (_a) => {
4495
4530
  }
4496
4531
  }
4497
4532
  };
4498
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "relative", children: [
4499
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4533
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "relative", children: [
4534
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4500
4535
  InputBase,
4501
4536
  __spreadProps(__spreadValues({
4502
4537
  id,
@@ -4510,7 +4545,7 @@ var DateInput = (_a) => {
4510
4545
  placeholder,
4511
4546
  disabled,
4512
4547
  readOnly,
4513
- after: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { name: "calendar_month" }),
4548
+ after: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { name: "calendar_month" }),
4514
4549
  onFocus: handleFocus,
4515
4550
  onClick: handleClick,
4516
4551
  onChange: handleInputChange,
@@ -4521,7 +4556,7 @@ var DateInput = (_a) => {
4521
4556
  })
4522
4557
  ),
4523
4558
  visible && !readOnly && (0, import_react_dom3.createPortal)(
4524
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4559
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4525
4560
  "div",
4526
4561
  {
4527
4562
  ref: (el) => {
@@ -4533,7 +4568,7 @@ var DateInput = (_a) => {
4533
4568
  left: `${calendarPosition.left}px`,
4534
4569
  minWidth: `${calendarPosition.width}px`
4535
4570
  },
4536
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4571
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4537
4572
  CalendarRange,
4538
4573
  {
4539
4574
  id: id ? `${id}-calendar` : void 0,
@@ -4569,18 +4604,18 @@ var import_clsx22 = __toESM(require("clsx"), 1);
4569
4604
 
4570
4605
  // src/components/Card.tsx
4571
4606
  var import_clsx20 = __toESM(require("clsx"), 1);
4572
- var import_jsx_runtime24 = require("react/jsx-runtime");
4607
+ var import_jsx_runtime25 = require("react/jsx-runtime");
4573
4608
 
4574
4609
  // src/components/Stack.tsx
4575
4610
  var import_clsx21 = __toESM(require("clsx"), 1);
4576
- var import_jsx_runtime25 = require("react/jsx-runtime");
4611
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4577
4612
 
4578
4613
  // src/components/Accordion.tsx
4579
- var import_jsx_runtime26 = require("react/jsx-runtime");
4614
+ var import_jsx_runtime27 = require("react/jsx-runtime");
4580
4615
 
4581
4616
  // src/components/Heading.tsx
4582
4617
  var import_clsx23 = __toESM(require("clsx"), 1);
4583
- var import_jsx_runtime27 = require("react/jsx-runtime");
4618
+ var import_jsx_runtime28 = require("react/jsx-runtime");
4584
4619
  var Heading = (_a) => {
4585
4620
  var _b = _a, {
4586
4621
  className,
@@ -4603,7 +4638,7 @@ var Heading = (_a) => {
4603
4638
  ]);
4604
4639
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
4605
4640
  const Element = as != null ? as : defaultElement;
4606
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4641
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4607
4642
  Element,
4608
4643
  __spreadProps(__spreadValues({
4609
4644
  id,
@@ -4624,15 +4659,15 @@ var Heading = (_a) => {
4624
4659
  );
4625
4660
  };
4626
4661
  Heading.displayName = "Heading";
4627
- var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
4628
- var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
4629
- var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
4662
+ var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
4663
+ var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
4664
+ var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
4630
4665
  Heading1.displayName = "Heading1";
4631
4666
  Heading2.displayName = "Heading2";
4632
4667
  Heading3.displayName = "Heading3";
4633
4668
 
4634
4669
  // src/components/Theme.tsx
4635
- var import_jsx_runtime28 = require("react/jsx-runtime");
4670
+ var import_jsx_runtime29 = require("react/jsx-runtime");
4636
4671
 
4637
4672
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
4638
4673
  var import_react22 = require("react");
@@ -4645,14 +4680,14 @@ var import_react20 = require("react");
4645
4680
  var GridContext = (0, import_react20.createContext)(null);
4646
4681
 
4647
4682
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
4648
- var import_jsx_runtime29 = require("react/jsx-runtime");
4683
+ var import_jsx_runtime30 = require("react/jsx-runtime");
4649
4684
 
4650
4685
  // src/components/MobileDataGrid/MobileDataGridHeader.tsx
4651
- var import_jsx_runtime30 = require("react/jsx-runtime");
4686
+ var import_jsx_runtime31 = require("react/jsx-runtime");
4652
4687
 
4653
4688
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
4654
4689
  var import_react23 = require("react");
4655
- var import_jsx_runtime31 = require("react/jsx-runtime");
4690
+ var import_jsx_runtime32 = require("react/jsx-runtime");
4656
4691
 
4657
4692
  // src/components/Modal.tsx
4658
4693
  var import_clsx28 = __toESM(require("clsx"), 1);
@@ -4660,7 +4695,7 @@ var import_react25 = require("react");
4660
4695
 
4661
4696
  // src/components/ModalHeader.tsx
4662
4697
  var import_clsx24 = __toESM(require("clsx"), 1);
4663
- var import_jsx_runtime32 = require("react/jsx-runtime");
4698
+ var import_jsx_runtime33 = require("react/jsx-runtime");
4664
4699
  var ModalHeader = ({
4665
4700
  title,
4666
4701
  hideCloseIcon,
@@ -4673,7 +4708,7 @@ var ModalHeader = ({
4673
4708
  titleAs: TitleComponent
4674
4709
  }) => {
4675
4710
  const Title = TitleComponent || Heading2;
4676
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
4711
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
4677
4712
  "div",
4678
4713
  {
4679
4714
  id,
@@ -4688,9 +4723,9 @@ var ModalHeader = ({
4688
4723
  headerClassname
4689
4724
  ),
4690
4725
  children: [
4691
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: (0, import_clsx24.default)("flex items-center flex-1", layoutGroupGap), children: [
4726
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0, import_clsx24.default)("flex items-center flex-1", layoutGroupGap), children: [
4692
4727
  headerIcon,
4693
- title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4728
+ title && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4694
4729
  Title,
4695
4730
  {
4696
4731
  id: id ? `${id}-title` : void 0,
@@ -4700,7 +4735,7 @@ var ModalHeader = ({
4700
4735
  }
4701
4736
  )
4702
4737
  ] }),
4703
- !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4738
+ !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4704
4739
  Button,
4705
4740
  {
4706
4741
  id: id ? `${id}-close-button` : void 0,
@@ -4708,7 +4743,7 @@ var ModalHeader = ({
4708
4743
  iconOnly: true,
4709
4744
  variant: "tertiary",
4710
4745
  onClick: onClose,
4711
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "close", size: 24 }) })
4746
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "close", size: 24 }) })
4712
4747
  }
4713
4748
  )
4714
4749
  ]
@@ -4719,14 +4754,14 @@ ModalHeader.displayName = "ModalHeader";
4719
4754
 
4720
4755
  // src/components/ModalContent.tsx
4721
4756
  var import_clsx25 = __toESM(require("clsx"), 1);
4722
- var import_jsx_runtime33 = require("react/jsx-runtime");
4757
+ var import_jsx_runtime34 = require("react/jsx-runtime");
4723
4758
  function ModalContent({
4724
4759
  fixedHeightScrolling,
4725
4760
  children,
4726
4761
  id,
4727
4762
  testid
4728
4763
  }) {
4729
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4764
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4730
4765
  "div",
4731
4766
  {
4732
4767
  id,
@@ -4744,7 +4779,7 @@ ModalContent.displayName = "ModalContent";
4744
4779
 
4745
4780
  // src/components/ModalButtons.tsx
4746
4781
  var import_clsx26 = __toESM(require("clsx"), 1);
4747
- var import_jsx_runtime34 = require("react/jsx-runtime");
4782
+ var import_jsx_runtime35 = require("react/jsx-runtime");
4748
4783
  var ModalButtons = ({
4749
4784
  onClose,
4750
4785
  onContinue,
@@ -4752,7 +4787,7 @@ var ModalButtons = ({
4752
4787
  id,
4753
4788
  testid
4754
4789
  }) => {
4755
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4790
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4756
4791
  "div",
4757
4792
  {
4758
4793
  id,
@@ -4762,26 +4797,26 @@ var ModalButtons = ({
4762
4797
  layoutPaddding,
4763
4798
  layoutGroupGap
4764
4799
  ),
4765
- children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
4766
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4800
+ children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
4801
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4767
4802
  Button,
4768
4803
  {
4769
4804
  id: id ? `${id}-close-button` : void 0,
4770
4805
  testid: testid ? `${testid}-close-button` : void 0,
4771
4806
  variant: "secondary",
4772
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { name: "close", size: 24 }),
4807
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: "close", size: 24 }),
4773
4808
  onClick: onClose,
4774
4809
  className: "max-sm:w-full",
4775
4810
  children: "Close"
4776
4811
  }
4777
4812
  ),
4778
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4813
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4779
4814
  Button,
4780
4815
  {
4781
4816
  id: id ? `${id}-continue-button` : void 0,
4782
4817
  testid: testid ? `${testid}-continue-button` : void 0,
4783
4818
  variant: "primary",
4784
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { name: "check", size: 24 }),
4819
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: "check", size: 24 }),
4785
4820
  className: "max-sm:w-full",
4786
4821
  onClick: onContinue,
4787
4822
  children: "Continue"
@@ -4795,7 +4830,7 @@ ModalButtons.displayName = "ModalButtons";
4795
4830
 
4796
4831
  // src/components/ModalScrim.tsx
4797
4832
  var import_clsx27 = __toESM(require("clsx"), 1);
4798
- var import_jsx_runtime35 = require("react/jsx-runtime");
4833
+ var import_jsx_runtime36 = require("react/jsx-runtime");
4799
4834
  var ModalScrim = ({
4800
4835
  show = false,
4801
4836
  size = "small",
@@ -4805,7 +4840,7 @@ var ModalScrim = ({
4805
4840
  id,
4806
4841
  testid
4807
4842
  }) => {
4808
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4843
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4809
4844
  "div",
4810
4845
  {
4811
4846
  id,
@@ -4841,7 +4876,7 @@ var useMounted = () => {
4841
4876
  };
4842
4877
 
4843
4878
  // src/components/Modal.tsx
4844
- var import_jsx_runtime36 = require("react/jsx-runtime");
4879
+ var import_jsx_runtime37 = require("react/jsx-runtime");
4845
4880
  var fadeInScale = (element, duration = 300) => element.animate(
4846
4881
  [
4847
4882
  { opacity: 0, transform: "scale(0.95)" },
@@ -5014,7 +5049,7 @@ var Modal = ({
5014
5049
  return null;
5015
5050
  }
5016
5051
  return (0, import_react_dom4.createPortal)(
5017
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5052
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5018
5053
  ModalScrim,
5019
5054
  {
5020
5055
  id: id ? `${id}-scrim` : void 0,
@@ -5023,7 +5058,7 @@ var Modal = ({
5023
5058
  ref: bgRef,
5024
5059
  show: open,
5025
5060
  onClick: backgroundClickHandler,
5026
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
5061
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
5027
5062
  "div",
5028
5063
  {
5029
5064
  id,
@@ -5038,7 +5073,7 @@ var Modal = ({
5038
5073
  ),
5039
5074
  onClick: (e) => e.stopPropagation(),
5040
5075
  children: [
5041
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5076
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5042
5077
  ModalHeader,
5043
5078
  {
5044
5079
  id: id ? `${id}-header` : void 0,
@@ -5052,7 +5087,7 @@ var Modal = ({
5052
5087
  titleAs: TitleComponent
5053
5088
  }
5054
5089
  ),
5055
- children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5090
+ children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5056
5091
  ModalContent,
5057
5092
  {
5058
5093
  id: id ? `${id}-content` : void 0,
@@ -5061,7 +5096,7 @@ var Modal = ({
5061
5096
  children
5062
5097
  }
5063
5098
  ) : children,
5064
- showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5099
+ showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5065
5100
  ModalButtons,
5066
5101
  {
5067
5102
  id: id ? `${id}-buttons` : void 0,
@@ -5082,51 +5117,51 @@ var Modal = ({
5082
5117
  Modal.displayName = "Modal";
5083
5118
 
5084
5119
  // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
5085
- var import_jsx_runtime37 = require("react/jsx-runtime");
5120
+ var import_jsx_runtime38 = require("react/jsx-runtime");
5086
5121
 
5087
5122
  // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
5088
- var import_jsx_runtime38 = require("react/jsx-runtime");
5123
+ var import_jsx_runtime39 = require("react/jsx-runtime");
5089
5124
 
5090
5125
  // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
5091
- var import_jsx_runtime39 = require("react/jsx-runtime");
5126
+ var import_jsx_runtime40 = require("react/jsx-runtime");
5092
5127
 
5093
5128
  // src/components/MobileDataGrid/ColumnList.tsx
5094
5129
  var import_clsx30 = __toESM(require("clsx"), 1);
5095
5130
 
5096
5131
  // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
5097
5132
  var import_clsx29 = __toESM(require("clsx"), 1);
5098
- var import_jsx_runtime40 = require("react/jsx-runtime");
5133
+ var import_jsx_runtime41 = require("react/jsx-runtime");
5099
5134
 
5100
5135
  // src/components/MobileDataGrid/ColumnList.tsx
5101
- var import_jsx_runtime41 = require("react/jsx-runtime");
5136
+ var import_jsx_runtime42 = require("react/jsx-runtime");
5102
5137
 
5103
5138
  // src/components/MobileDataGrid/index.tsx
5104
- var import_jsx_runtime42 = require("react/jsx-runtime");
5139
+ var import_jsx_runtime43 = require("react/jsx-runtime");
5105
5140
 
5106
5141
  // src/components/ProductImagePreview/Thumbnail.tsx
5107
5142
  var import_react27 = require("react");
5108
5143
 
5109
5144
  // src/components/ImagePlaceholder.tsx
5110
5145
  var import_react26 = require("react");
5111
- var import_jsx_runtime43 = require("react/jsx-runtime");
5146
+ var import_jsx_runtime44 = require("react/jsx-runtime");
5112
5147
 
5113
5148
  // src/components/ProductImagePreview/Thumbnail.tsx
5114
- var import_jsx_runtime44 = require("react/jsx-runtime");
5149
+ var import_jsx_runtime45 = require("react/jsx-runtime");
5115
5150
 
5116
5151
  // src/components/Grid.tsx
5117
5152
  var import_clsx31 = __toESM(require("clsx"), 1);
5118
- var import_jsx_runtime45 = require("react/jsx-runtime");
5153
+ var import_jsx_runtime46 = require("react/jsx-runtime");
5119
5154
 
5120
5155
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
5121
5156
  var import_react28 = require("react");
5122
- var import_jsx_runtime46 = require("react/jsx-runtime");
5157
+ var import_jsx_runtime47 = require("react/jsx-runtime");
5123
5158
 
5124
5159
  // src/components/ProductImagePreview/ZoomWindow.tsx
5125
5160
  var import_react29 = require("react");
5126
5161
 
5127
5162
  // src/components/Surface.tsx
5128
5163
  var import_clsx32 = __toESM(require("clsx"), 1);
5129
- var import_jsx_runtime47 = require("react/jsx-runtime");
5164
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5130
5165
  var Surface = (_a) => {
5131
5166
  var _b = _a, {
5132
5167
  children,
@@ -5139,7 +5174,7 @@ var Surface = (_a) => {
5139
5174
  "elevation",
5140
5175
  "id"
5141
5176
  ]);
5142
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5177
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5143
5178
  "div",
5144
5179
  __spreadProps(__spreadValues({
5145
5180
  id,
@@ -5160,40 +5195,40 @@ var Surface = (_a) => {
5160
5195
  Surface.displayName = "Surface";
5161
5196
 
5162
5197
  // src/components/ProductImagePreview/ZoomWindow.tsx
5163
- var import_jsx_runtime48 = require("react/jsx-runtime");
5198
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5164
5199
 
5165
5200
  // src/components/ProductImagePreview/CarouselPagination.tsx
5166
5201
  var import_clsx33 = require("clsx");
5167
- var import_jsx_runtime49 = require("react/jsx-runtime");
5202
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5168
5203
 
5169
5204
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
5170
5205
  var import_react30 = require("react");
5171
- var import_jsx_runtime50 = require("react/jsx-runtime");
5206
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5172
5207
 
5173
5208
  // src/components/ProductImagePreview/useProductImagePreview.ts
5174
5209
  var import_react31 = require("react");
5175
5210
 
5176
5211
  // src/components/ProductImagePreview/index.tsx
5177
- var import_jsx_runtime51 = require("react/jsx-runtime");
5212
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5178
5213
 
5179
5214
  // src/components/CompactImagesPreview.tsx
5180
5215
  var import_react32 = require("react");
5181
5216
  var import_clsx34 = __toESM(require("clsx"), 1);
5182
- var import_jsx_runtime52 = require("react/jsx-runtime");
5217
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5183
5218
 
5184
5219
  // src/components/SimpleTable.tsx
5185
5220
  var import_clsx35 = __toESM(require("clsx"), 1);
5186
- var import_jsx_runtime53 = require("react/jsx-runtime");
5221
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5187
5222
 
5188
5223
  // src/components/ListGroup.tsx
5189
5224
  var import_react33 = require("react");
5190
5225
  var import_clsx36 = __toESM(require("clsx"), 1);
5191
- var import_jsx_runtime54 = require("react/jsx-runtime");
5226
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5192
5227
 
5193
5228
  // src/components/Pagination.tsx
5194
5229
  var import_react34 = require("react");
5195
5230
  var import_clsx37 = __toESM(require("clsx"), 1);
5196
- var import_jsx_runtime55 = require("react/jsx-runtime");
5231
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5197
5232
  var Pagination = ({
5198
5233
  totalPages,
5199
5234
  currentPage,
@@ -5268,7 +5303,7 @@ var Pagination = ({
5268
5303
  "focus:bg-background-grouped-secondary-normal focus:outline-0",
5269
5304
  "disabled:bg-transparent disabled:text-text-action-primary-disabled"
5270
5305
  );
5271
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5306
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5272
5307
  "nav",
5273
5308
  {
5274
5309
  id,
@@ -5283,19 +5318,19 @@ var Pagination = ({
5283
5318
  className
5284
5319
  ),
5285
5320
  children: [
5286
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5321
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5287
5322
  "button",
5288
5323
  {
5289
5324
  disabled: disabled || currentPage <= 1,
5290
5325
  "aria-label": "Previous page",
5291
5326
  onClick: () => goTo(currentPage - 1),
5292
5327
  className: (0, import_clsx37.default)(buttonClass, "border-r-1 border-border-primary-normal"),
5293
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_left" })
5328
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_left" })
5294
5329
  }
5295
5330
  ),
5296
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
5331
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
5297
5332
  if (token === "ellipsis") {
5298
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5333
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5299
5334
  "li",
5300
5335
  {
5301
5336
  className: "w-8 h-8 select-none text-text-action-primary-disabled",
@@ -5305,7 +5340,7 @@ var Pagination = ({
5305
5340
  );
5306
5341
  }
5307
5342
  const selected = token === currentPage;
5308
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5343
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5309
5344
  "button",
5310
5345
  {
5311
5346
  "aria-label": `Page ${token}`,
@@ -5316,18 +5351,18 @@ var Pagination = ({
5316
5351
  buttonClass,
5317
5352
  selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
5318
5353
  ),
5319
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Subheader, { align: "center", weight: "bold", children: token })
5354
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Subheader, { align: "center", weight: "bold", children: token })
5320
5355
  }
5321
5356
  ) }, token);
5322
5357
  }) }),
5323
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5358
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5324
5359
  "button",
5325
5360
  {
5326
5361
  disabled: disabled || currentPage >= totalPages,
5327
5362
  "aria-label": "Next page",
5328
5363
  onClick: () => goTo(currentPage + 1),
5329
5364
  className: (0, import_clsx37.default)(buttonClass, "border-l-1 border-border-primary-normal"),
5330
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_right" })
5365
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_right" })
5331
5366
  }
5332
5367
  )
5333
5368
  ]
@@ -5337,25 +5372,160 @@ var Pagination = ({
5337
5372
  Pagination.displayName = "Pagination";
5338
5373
 
5339
5374
  // src/components/SkeletonParagraph.tsx
5340
- var import_jsx_runtime56 = require("react/jsx-runtime");
5375
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5341
5376
 
5342
5377
  // src/components/EmptyCartIcon.tsx
5343
- var import_jsx_runtime57 = require("react/jsx-runtime");
5378
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5344
5379
 
5345
5380
  // src/components/SearchResultImage/index.tsx
5346
5381
  var import_react35 = require("react");
5347
- var import_jsx_runtime58 = require("react/jsx-runtime");
5382
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5348
5383
 
5349
5384
  // src/components/Alert.tsx
5350
5385
  var import_clsx38 = __toESM(require("clsx"), 1);
5351
5386
  var import_react36 = require("react");
5352
- var import_jsx_runtime59 = require("react/jsx-runtime");
5387
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5353
5388
 
5354
5389
  // src/components/OrderCheckIcon.tsx
5355
- var import_jsx_runtime60 = require("react/jsx-runtime");
5390
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5391
+
5392
+ // src/components/AccessCard.tsx
5393
+ var import_clsx40 = __toESM(require("clsx"), 1);
5394
+
5395
+ // src/components/Radio.tsx
5396
+ var import_clsx39 = __toESM(require("clsx"), 1);
5397
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5398
+ var Radio = (_a) => {
5399
+ var _b = _a, {
5400
+ className,
5401
+ label,
5402
+ error,
5403
+ disabled,
5404
+ checked,
5405
+ readOnly,
5406
+ id,
5407
+ testid
5408
+ } = _b, props = __objRest(_b, [
5409
+ "className",
5410
+ "label",
5411
+ "error",
5412
+ "disabled",
5413
+ "checked",
5414
+ "readOnly",
5415
+ "id",
5416
+ "testid"
5417
+ ]);
5418
+ const radioId = id;
5419
+ const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
5420
+ const defaultClassName = (0, import_clsx39.default)(
5421
+ !error && !disabled && "border-border-primary-normal peer-hover:border-border-action-hover peer-hover:bg-background-action-secondary-hover peer-focus:border-border-action-hover peer-focus:bg-background-action-secondary-hover peer-active:border-border-action-active peer-active:bg-background-action-secondary-active peer-checked:border-0 peer-checked:bg-background-action-secondary-hover"
5422
+ );
5423
+ const errorClassName = (0, import_clsx39.default)(
5424
+ error && !disabled && "border-border-action-critical-normal peer-hover:border-border-action-critical-hover peer-hover:bg-background-action-critical-secondary-hover peer-focus:border-border-action-critical-hover peer-focus:bg-background-action-critical-secondary-hover peer-active:border-border-action-critical-active peer-active:bg-background-action-secondary-active peer-checked:bg-background-action-critical-secondary-hover peer-checked:border-0 "
5425
+ );
5426
+ const disabledClassName = (0, import_clsx39.default)(
5427
+ disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
5428
+ );
5429
+ const readonlyClassName = (0, import_clsx39.default)(
5430
+ readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
5431
+ );
5432
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5433
+ "label",
5434
+ {
5435
+ htmlFor: radioId,
5436
+ "data-testid": testid,
5437
+ className: (0, import_clsx39.default)(
5438
+ "flex items-center",
5439
+ componentGap,
5440
+ disabled ? "cursor-default" : "cursor-pointer",
5441
+ className
5442
+ ),
5443
+ children: [
5444
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "relative", children: [
5445
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5446
+ "input",
5447
+ __spreadValues({
5448
+ id: radioId,
5449
+ "data-testid": testid ? `${testid}-input` : void 0,
5450
+ type: "radio",
5451
+ className: "sr-only peer",
5452
+ disabled,
5453
+ checked,
5454
+ readOnly
5455
+ }, props)
5456
+ ),
5457
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5458
+ "div",
5459
+ {
5460
+ className: (0, import_clsx39.default)(
5461
+ "size-6 rounded-full border flex items-center justify-center",
5462
+ baseTransition,
5463
+ defaultClassName,
5464
+ errorClassName,
5465
+ disabledClassName,
5466
+ readonlyClassName
5467
+ ),
5468
+ children: checked && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5469
+ RadioIcon,
5470
+ {
5471
+ className: (0, import_clsx39.default)(
5472
+ "transition-colors",
5473
+ !error && !disabled && "text-icon-on-action-secondary-normal hover:text-icon-on-action-secondary-hover active:text-icon-on-action-secondary-active peer-hover:text-icon-on-action-secondary-hover peer-focus:text-icon-on-action-secondary-hover peer-active:text-icon-on-action-secondary-active",
5474
+ error && !disabled && "text-icon-action-critical-secondary-normal hover:text-icon-action-critical-secondary-hover active:text-icon-action-critical-secondary-active peer-hover:text-icon-action-critical-secondary-hover peer-focus:text-icon-action-critical-secondary-hover peer-active:text-icon-action-critical-secondary-active",
5475
+ disabled && "text-icon-on-action-secondary-disabled",
5476
+ readOnly && "text-icon-on-action-secondary-disabled"
5477
+ )
5478
+ }
5479
+ )
5480
+ }
5481
+ )
5482
+ ] }),
5483
+ label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
5484
+ ]
5485
+ }
5486
+ );
5487
+ };
5488
+ Radio.displayName = "Radio";
5489
+ var RadioIcon = ({ className }) => {
5490
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5491
+ "svg",
5492
+ {
5493
+ className,
5494
+ xmlns: "http://www.w3.org/2000/svg",
5495
+ width: "24",
5496
+ height: "24",
5497
+ viewBox: "0 0 24 24",
5498
+ fill: "none",
5499
+ children: [
5500
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5501
+ "rect",
5502
+ {
5503
+ x: "1",
5504
+ y: "1",
5505
+ width: "22",
5506
+ height: "22",
5507
+ rx: "11",
5508
+ stroke: "currentColor",
5509
+ strokeWidth: "2"
5510
+ }
5511
+ ),
5512
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5513
+ ]
5514
+ }
5515
+ );
5516
+ };
5517
+ RadioIcon.displayName = "RadioIcon";
5518
+
5519
+ // src/components/AccessCard.tsx
5520
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5521
+
5522
+ // src/components/AccessCardGroup.tsx
5523
+ var import_clsx41 = __toESM(require("clsx"), 1);
5524
+ var import_react37 = require("react");
5525
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5356
5526
 
5357
5527
  // src/components/CalendarRange.tsx
5358
- var import_jsx_runtime61 = require("react/jsx-runtime");
5528
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5359
5529
  function isWeekend(date) {
5360
5530
  return date.dayOfWeek === 6 || date.dayOfWeek === 7;
5361
5531
  }
@@ -5393,12 +5563,12 @@ function DateCell(_a) {
5393
5563
  "id",
5394
5564
  "testid"
5395
5565
  ]);
5396
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5566
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5397
5567
  "span",
5398
5568
  __spreadProps(__spreadValues({}, props), {
5399
5569
  id,
5400
5570
  "data-testid": testid,
5401
- className: (0, import_clsx39.default)(
5571
+ className: (0, import_clsx42.default)(
5402
5572
  "flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
5403
5573
  typography.caption,
5404
5574
  cellPadding,
@@ -5469,20 +5639,20 @@ function CalendarRange({
5469
5639
  const fromDate = parseDate(from);
5470
5640
  const toDate = parseDate(to);
5471
5641
  const today = import_polyfill.Temporal.Now.plainDateISO();
5472
- const [baseMonth, setBaseMonth] = (0, import_react37.useState)(
5642
+ const [baseMonth, setBaseMonth] = (0, import_react38.useState)(
5473
5643
  fromDate != null ? fromDate : today.with({ day: 1 })
5474
5644
  );
5475
- const [selecting, setSelecting] = (0, import_react37.useState)("from");
5476
- const [pendingFrom, setPendingFrom] = (0, import_react37.useState)(void 0);
5477
- const [hoveredDate, setHoveredDate] = (0, import_react37.useState)(void 0);
5478
- (0, import_react37.useEffect)(() => {
5645
+ const [selecting, setSelecting] = (0, import_react38.useState)("from");
5646
+ const [pendingFrom, setPendingFrom] = (0, import_react38.useState)(void 0);
5647
+ const [hoveredDate, setHoveredDate] = (0, import_react38.useState)(void 0);
5648
+ (0, import_react38.useEffect)(() => {
5479
5649
  if (fromDate) {
5480
5650
  setBaseMonth(fromDate.with({ day: 1 }));
5481
5651
  } else if (toDate) {
5482
5652
  setBaseMonth(toDate.with({ day: 1 }));
5483
5653
  }
5484
5654
  }, [from, to]);
5485
- (0, import_react37.useEffect)(() => {
5655
+ (0, import_react38.useEffect)(() => {
5486
5656
  if (fromDate && toDate) {
5487
5657
  setSelecting("from");
5488
5658
  setPendingFrom(void 0);
@@ -5549,12 +5719,12 @@ function CalendarRange({
5549
5719
  }
5550
5720
  return false;
5551
5721
  }
5552
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5722
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5553
5723
  "div",
5554
5724
  {
5555
5725
  id,
5556
5726
  "data-testid": testid,
5557
- className: (0, import_clsx39.default)(
5727
+ className: (0, import_clsx42.default)(
5558
5728
  "relative bg-background-grouped-primary-normal rounded-base w-fit",
5559
5729
  layoutPaddding,
5560
5730
  layoutGap,
@@ -5562,15 +5732,15 @@ function CalendarRange({
5562
5732
  // baseTransition,
5563
5733
  "overflow-hidden"
5564
5734
  ),
5565
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5735
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5566
5736
  "div",
5567
5737
  {
5568
- className: (0, import_clsx39.default)(
5738
+ className: (0, import_clsx42.default)(
5569
5739
  "flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
5570
5740
  layoutGap
5571
5741
  ),
5572
5742
  children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
5573
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5743
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5574
5744
  CalendarPane,
5575
5745
  {
5576
5746
  getMonthData,
@@ -5628,45 +5798,45 @@ function CalendarPane({
5628
5798
  const years = Array.from({ length: 100 }).map(
5629
5799
  (_, i) => baseMonth.year - 50 + i
5630
5800
  );
5631
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react37.useState)(false);
5632
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react37.useState)(false);
5633
- const monthMenuRef = (0, import_react37.useRef)(null);
5634
- const yearMenuRef = (0, import_react37.useRef)(null);
5801
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react38.useState)(false);
5802
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react38.useState)(false);
5803
+ const monthMenuRef = (0, import_react38.useRef)(null);
5804
+ const yearMenuRef = (0, import_react38.useRef)(null);
5635
5805
  const month = getMonthData(offset);
5636
5806
  const totalCells = 42;
5637
5807
  const emptyCells = month.firstDayOffset;
5638
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react37.default.Fragment, { children: [
5639
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5808
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react38.default.Fragment, { children: [
5809
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5640
5810
  "div",
5641
5811
  {
5642
- className: (0, import_clsx39.default)("flex flex-col"),
5812
+ className: (0, import_clsx42.default)("flex flex-col"),
5643
5813
  children: [
5644
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5814
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5645
5815
  "div",
5646
5816
  {
5647
- className: (0, import_clsx39.default)(
5817
+ className: (0, import_clsx42.default)(
5648
5818
  "flex flex-row items-center justify-between",
5649
5819
  typography.label,
5650
5820
  "text-text-action-primary-normal"
5651
5821
  ),
5652
5822
  children: [
5653
- idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5823
+ idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5654
5824
  "button",
5655
5825
  {
5656
5826
  id: id ? `${id}-prev-month-button` : void 0,
5657
5827
  "data-testid": testid ? `${testid}-prev-month-button` : void 0,
5658
5828
  type: "button",
5659
- className: (0, import_clsx39.default)(
5829
+ className: (0, import_clsx42.default)(
5660
5830
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
5661
5831
  componentPadding
5662
5832
  ),
5663
5833
  "aria-label": "Previous month",
5664
5834
  onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
5665
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "chevron_left", size: 24 })
5835
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { name: "chevron_left", size: 24 })
5666
5836
  }
5667
- ) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: (0, import_clsx39.default)(componentPadding, "mr-1") }),
5668
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
5669
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5837
+ ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: (0, import_clsx42.default)(componentPadding, "mr-1") }),
5838
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
5839
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5670
5840
  "button",
5671
5841
  {
5672
5842
  ref: (el) => {
@@ -5681,13 +5851,13 @@ function CalendarPane({
5681
5851
  children: month.name
5682
5852
  }
5683
5853
  ),
5684
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5854
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5685
5855
  Menu,
5686
5856
  {
5687
5857
  show: monthMenuOpen,
5688
5858
  positionTo: monthMenuRef,
5689
5859
  setShow: () => setMonthMenuOpen(false),
5690
- children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5860
+ children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5691
5861
  MenuOption,
5692
5862
  {
5693
5863
  selected: baseMonth.month === x + 1,
@@ -5701,7 +5871,7 @@ function CalendarPane({
5701
5871
  ))
5702
5872
  }
5703
5873
  ),
5704
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5874
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5705
5875
  "button",
5706
5876
  {
5707
5877
  ref: (el) => {
@@ -5716,13 +5886,13 @@ function CalendarPane({
5716
5886
  children: month.year
5717
5887
  }
5718
5888
  ),
5719
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5889
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5720
5890
  Menu,
5721
5891
  {
5722
5892
  show: yearMenuOpen,
5723
5893
  positionTo: yearMenuRef,
5724
5894
  setShow: () => setYearMenuOpen(false),
5725
- children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5895
+ children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5726
5896
  MenuOption,
5727
5897
  {
5728
5898
  selected: baseMonth.year === y,
@@ -5737,28 +5907,28 @@ function CalendarPane({
5737
5907
  }
5738
5908
  )
5739
5909
  ] }),
5740
- (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5910
+ (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5741
5911
  "button",
5742
5912
  {
5743
5913
  id: id ? `${id}-next-month-button` : void 0,
5744
5914
  "data-testid": testid ? `${testid}-next-month-button` : void 0,
5745
5915
  type: "button",
5746
- className: (0, import_clsx39.default)(
5916
+ className: (0, import_clsx42.default)(
5747
5917
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
5748
5918
  componentPadding
5749
5919
  ),
5750
5920
  "aria-label": "Next month",
5751
5921
  onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
5752
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "chevron_right", size: 24 })
5922
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { name: "chevron_right", size: 24 })
5753
5923
  }
5754
- ) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: (0, import_clsx39.default)(componentPadding, "ml-1") })
5924
+ ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: (0, import_clsx42.default)(componentPadding, "ml-1") })
5755
5925
  ]
5756
5926
  }
5757
5927
  ),
5758
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_clsx39.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5928
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: (0, import_clsx42.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5759
5929
  "span",
5760
5930
  {
5761
- className: (0, import_clsx39.default)(
5931
+ className: (0, import_clsx42.default)(
5762
5932
  typography.caption,
5763
5933
  "text-text-secondary-normal text-center",
5764
5934
  "w-10"
@@ -5767,7 +5937,7 @@ function CalendarPane({
5767
5937
  },
5768
5938
  d
5769
5939
  )) }),
5770
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_clsx39.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
5940
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: (0, import_clsx42.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
5771
5941
  const day = i - emptyCells + 1;
5772
5942
  const date = month.date.with({ day: 1 }).add({
5773
5943
  days: i - emptyCells
@@ -5781,7 +5951,7 @@ function CalendarPane({
5781
5951
  const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
5782
5952
  const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
5783
5953
  const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
5784
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5954
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5785
5955
  DateCell,
5786
5956
  {
5787
5957
  id: id ? `${id}-date-${date.toString()}` : void 0,
@@ -5806,10 +5976,10 @@ function CalendarPane({
5806
5976
  ]
5807
5977
  }
5808
5978
  ),
5809
- mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5979
+ mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5810
5980
  "div",
5811
5981
  {
5812
- className: (0, import_clsx39.default)(
5982
+ className: (0, import_clsx42.default)(
5813
5983
  "self-stretch bg-border-primary-normal rounded-base",
5814
5984
  // 1px width, full height, matches Figma divider
5815
5985
  "w-px"