@dmsi/wedgekit-react 0.0.415 → 0.0.418

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 (125) hide show
  1. package/dist/chunk-3HBYDOYE.js +114 -0
  2. package/dist/{chunk-JIMJIJOF.js → chunk-5TGP5EFM.js} +2 -2
  3. package/dist/{chunk-2HMCS25C.js → chunk-6LHBY2IH.js} +1 -1
  4. package/dist/{chunk-6I5LZ2ZC.js → chunk-7AXHAWJX.js} +3 -3
  5. package/dist/{chunk-MQX7GFLX.js → chunk-CANJ2YPW.js} +24 -6
  6. package/dist/{chunk-QQ5G773N.js → chunk-DCLNAUC4.js} +1 -1
  7. package/dist/{chunk-GB4ZTUQV.js → chunk-DTW7JCBR.js} +36 -0
  8. package/dist/chunk-ESCNCQGI.js +9 -0
  9. package/dist/chunk-IFHMGICR.js +66 -0
  10. package/dist/{chunk-ZHZIIVJN.js → chunk-IMOIZFJZ.js} +5 -5
  11. package/dist/chunk-KBJZUVLM.js +65 -0
  12. package/dist/{chunk-AA6GE3TH.js → chunk-LUPHOXAQ.js} +1 -1
  13. package/dist/{chunk-44TDIHUP.js → chunk-P3MIP2FD.js} +1 -1
  14. package/dist/{chunk-7ULLUUVJ.js → chunk-PQWWVBSR.js} +1 -1
  15. package/dist/{chunk-ERW5DEIO.js → chunk-RQLWSLVE.js} +1 -1
  16. package/dist/{chunk-BK7SPR6Y.js → chunk-TQIKP534.js} +4 -4
  17. package/dist/chunk-TYAQWVIM.js +159 -0
  18. package/dist/{chunk-KZZKQLKF.js → chunk-W55J2KJZ.js} +1 -1
  19. package/dist/chunk-Y2GK27RX.js +79 -0
  20. package/dist/components/Accordion.cjs +74 -2
  21. package/dist/components/Accordion.js +3 -3
  22. package/dist/components/CalendarRange.cjs +231 -53
  23. package/dist/components/CalendarRange.css +169 -65
  24. package/dist/components/CalendarRange.js +24 -16
  25. package/dist/components/Card.cjs +38 -2
  26. package/dist/components/Card.js +1 -1
  27. package/dist/components/CompactImagesPreview.cjs +59 -5
  28. package/dist/components/CompactImagesPreview.js +2 -2
  29. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +189 -11
  30. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +169 -65
  31. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +24 -16
  32. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +198 -20
  33. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +169 -65
  34. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +24 -16
  35. package/dist/components/DataGrid/PinnedColumns.cjs +214 -36
  36. package/dist/components/DataGrid/PinnedColumns.css +169 -65
  37. package/dist/components/DataGrid/PinnedColumns.js +24 -16
  38. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +190 -12
  39. package/dist/components/DataGrid/TableBody/LoadingCell.css +169 -65
  40. package/dist/components/DataGrid/TableBody/LoadingCell.js +24 -16
  41. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +196 -18
  42. package/dist/components/DataGrid/TableBody/TableBodyRow.css +169 -65
  43. package/dist/components/DataGrid/TableBody/TableBodyRow.js +24 -16
  44. package/dist/components/DataGrid/TableBody/index.cjs +211 -33
  45. package/dist/components/DataGrid/TableBody/index.css +169 -65
  46. package/dist/components/DataGrid/TableBody/index.js +24 -16
  47. package/dist/components/DataGrid/index.cjs +300 -122
  48. package/dist/components/DataGrid/index.css +169 -65
  49. package/dist/components/DataGrid/index.js +24 -16
  50. package/dist/components/DataGrid/utils.cjs +190 -12
  51. package/dist/components/DataGrid/utils.css +169 -65
  52. package/dist/components/DataGrid/utils.js +24 -16
  53. package/dist/components/DateInput.cjs +250 -72
  54. package/dist/components/DateInput.css +169 -65
  55. package/dist/components/DateInput.js +24 -16
  56. package/dist/components/DateRangeInput.cjs +250 -72
  57. package/dist/components/DateRangeInput.css +169 -65
  58. package/dist/components/DateRangeInput.js +24 -16
  59. package/dist/components/Grid.cjs +81 -76
  60. package/dist/components/Grid.js +1 -1
  61. package/dist/components/ListGroup.cjs +553 -0
  62. package/dist/components/ListGroup.js +11 -0
  63. package/dist/components/MobileDataGrid/ColumnList.cjs +36 -0
  64. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  65. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +197 -19
  66. package/dist/components/MobileDataGrid/ColumnSelector/index.css +169 -65
  67. package/dist/components/MobileDataGrid/ColumnSelector/index.js +24 -16
  68. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +36 -0
  69. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  70. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +241 -27
  71. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +169 -65
  72. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +24 -16
  73. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +36 -0
  74. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  75. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +36 -0
  76. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -5
  77. package/dist/components/MobileDataGrid/index.cjs +743 -529
  78. package/dist/components/MobileDataGrid/index.css +169 -65
  79. package/dist/components/MobileDataGrid/index.js +24 -16
  80. package/dist/components/Modal.js +2 -2
  81. package/dist/components/Notification.cjs +36 -0
  82. package/dist/components/Notification.js +1 -1
  83. package/dist/components/PDFViewer/PDFElement.cjs +36 -0
  84. package/dist/components/PDFViewer/PDFElement.js +2 -2
  85. package/dist/components/PDFViewer/PDFNavigation.cjs +36 -0
  86. package/dist/components/PDFViewer/PDFNavigation.js +2 -2
  87. package/dist/components/PDFViewer/index.cjs +36 -0
  88. package/dist/components/PDFViewer/index.js +8 -111
  89. package/dist/components/Pagination.cjs +427 -0
  90. package/dist/components/Pagination.js +10 -0
  91. package/dist/components/ProductImagePreview/index.cjs +139 -127
  92. package/dist/components/ProductImagePreview/index.js +4 -4
  93. package/dist/components/SideMenuGroup.cjs +36 -0
  94. package/dist/components/SideMenuGroup.js +1 -1
  95. package/dist/components/SideMenuItem.cjs +36 -0
  96. package/dist/components/SideMenuItem.js +1 -1
  97. package/dist/components/SimpleTable.cjs +36 -0
  98. package/dist/components/SimpleTable.js +2 -2
  99. package/dist/components/SkeletonParagraph.js +3 -6
  100. package/dist/components/Stack.cjs +36 -0
  101. package/dist/components/Stack.js +1 -1
  102. package/dist/components/Swatch.cjs +36 -0
  103. package/dist/components/Swatch.js +1 -1
  104. package/dist/components/Time.cjs +36 -0
  105. package/dist/components/Time.js +1 -1
  106. package/dist/components/Tooltip.cjs +1 -1
  107. package/dist/components/Tooltip.js +1 -1
  108. package/dist/components/Upload.cjs +36 -0
  109. package/dist/components/Upload.js +1 -1
  110. package/dist/components/index.cjs +694 -131
  111. package/dist/components/index.css +169 -65
  112. package/dist/components/index.js +37 -17
  113. package/dist/index.css +169 -65
  114. package/package.json +1 -1
  115. package/src/components/Card.tsx +60 -2
  116. package/src/components/CompactImagesPreview.tsx +54 -30
  117. package/src/components/Grid.tsx +59 -91
  118. package/src/components/ListGroup.tsx +82 -0
  119. package/src/components/Pagination.tsx +182 -0
  120. package/src/components/Stack.tsx +76 -0
  121. package/src/components/Tooltip.tsx +4 -3
  122. package/src/components/index.ts +4 -0
  123. package/dist/chunk-ER6RCOH3.js +0 -97
  124. package/dist/chunk-EZCH4PQS.js +0 -29
  125. package/dist/{chunk-D6YCMQPO.js → chunk-SBCFBHNG.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_clsx35 = __toESM(require("clsx"), 1);
67
+ var import_clsx38 = __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_react33 = __toESM(require("react"), 1);
236
+ var import_react37 = __toESM(require("react"), 1);
237
237
  var import_polyfill = require("@js-temporal/polyfill");
238
238
 
239
239
  // src/components/DataGridCell.tsx
@@ -3978,7 +3978,7 @@ var Tooltip = ({
3978
3978
  id,
3979
3979
  "data-testid": testid,
3980
3980
  ref,
3981
- className: "relative inline-grid grid-cols-[auto_1fr] items-center",
3981
+ className: "relative inline-grid grid-cols-[auto_1fr] items-center cursor-pointer",
3982
3982
  onMouseEnter: handleMouseEnter,
3983
3983
  onMouseLeave: handleMouseLeave,
3984
3984
  children: [
@@ -4569,12 +4569,11 @@ var import_jsx_runtime41 = require("react/jsx-runtime");
4569
4569
  var import_jsx_runtime42 = require("react/jsx-runtime");
4570
4570
 
4571
4571
  // src/components/Grid.tsx
4572
- var import_react27 = require("react");
4573
4572
  var import_clsx30 = __toESM(require("clsx"), 1);
4574
4573
  var import_jsx_runtime43 = require("react/jsx-runtime");
4575
4574
 
4576
4575
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
4577
- var import_react28 = require("react");
4576
+ var import_react27 = require("react");
4578
4577
 
4579
4578
  // src/components/Spinner.tsx
4580
4579
  var import_jsx_runtime44 = require("react/jsx-runtime");
@@ -4610,7 +4609,7 @@ Spinner.displayName = "Spinner";
4610
4609
  var import_jsx_runtime45 = require("react/jsx-runtime");
4611
4610
 
4612
4611
  // src/components/ProductImagePreview/ZoomWindow.tsx
4613
- var import_react29 = require("react");
4612
+ var import_react28 = require("react");
4614
4613
 
4615
4614
  // src/components/Surface.tsx
4616
4615
  var import_clsx31 = __toESM(require("clsx"), 1);
@@ -4655,17 +4654,17 @@ var import_clsx32 = require("clsx");
4655
4654
  var import_jsx_runtime48 = require("react/jsx-runtime");
4656
4655
 
4657
4656
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
4658
- var import_react30 = require("react");
4657
+ var import_react29 = require("react");
4659
4658
  var import_jsx_runtime49 = require("react/jsx-runtime");
4660
4659
 
4661
4660
  // src/components/ProductImagePreview/useProductImagePreview.ts
4662
- var import_react31 = require("react");
4661
+ var import_react30 = require("react");
4663
4662
 
4664
4663
  // src/components/ProductImagePreview/index.tsx
4665
4664
  var import_jsx_runtime50 = require("react/jsx-runtime");
4666
4665
 
4667
4666
  // src/components/CompactImagesPreview.tsx
4668
- var import_react32 = require("react");
4667
+ var import_react31 = require("react");
4669
4668
  var import_clsx33 = __toESM(require("clsx"), 1);
4670
4669
  var import_jsx_runtime51 = require("react/jsx-runtime");
4671
4670
 
@@ -4673,8 +4672,187 @@ var import_jsx_runtime51 = require("react/jsx-runtime");
4673
4672
  var import_clsx34 = __toESM(require("clsx"), 1);
4674
4673
  var import_jsx_runtime52 = require("react/jsx-runtime");
4675
4674
 
4676
- // src/components/CalendarRange.tsx
4675
+ // src/components/PDFViewer/index.tsx
4676
+ var import_react34 = require("react");
4677
+
4678
+ // src/components/PDFViewer/PDFElement.tsx
4679
+ var import_react_pdf2 = require("@mikecousins/react-pdf");
4680
+ var import_react33 = require("react");
4681
+
4682
+ // src/components/PDFViewer/PDFPage.tsx
4683
+ var import_react_pdf = require("@mikecousins/react-pdf");
4684
+ var import_react32 = require("react");
4677
4685
  var import_jsx_runtime53 = require("react/jsx-runtime");
4686
+
4687
+ // src/components/PDFViewer/PDFElement.tsx
4688
+ var import_clsx35 = __toESM(require("clsx"), 1);
4689
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4690
+
4691
+ // src/components/PDFViewer/DownloadIcon.tsx
4692
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4693
+
4694
+ // src/components/PDFViewer/PDFNavigation.tsx
4695
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4696
+
4697
+ // src/components/PDFViewer/index.tsx
4698
+ var import_jsx_runtime57 = require("react/jsx-runtime");
4699
+
4700
+ // src/components/ListGroup.tsx
4701
+ var import_react35 = require("react");
4702
+ var import_clsx36 = __toESM(require("clsx"), 1);
4703
+ var import_jsx_runtime58 = require("react/jsx-runtime");
4704
+
4705
+ // src/components/Pagination.tsx
4706
+ var import_react36 = require("react");
4707
+ var import_clsx37 = __toESM(require("clsx"), 1);
4708
+ var import_jsx_runtime59 = require("react/jsx-runtime");
4709
+ var Pagination = ({
4710
+ totalPages,
4711
+ currentPage,
4712
+ onPageChange,
4713
+ id,
4714
+ testid,
4715
+ className,
4716
+ disabled
4717
+ }) => {
4718
+ const goTo = (0, import_react36.useCallback)(
4719
+ (page) => {
4720
+ if (disabled) return;
4721
+ onPageChange(page);
4722
+ },
4723
+ [onPageChange, disabled]
4724
+ );
4725
+ const handleKey = (e) => {
4726
+ if (disabled) return;
4727
+ if (e.key === "ArrowLeft") {
4728
+ e.preventDefault();
4729
+ goTo(currentPage - 1);
4730
+ } else if (e.key === "ArrowRight") {
4731
+ e.preventDefault();
4732
+ goTo(currentPage + 1);
4733
+ }
4734
+ };
4735
+ const pageTokens = (0, import_react36.useMemo)(() => {
4736
+ if (totalPages <= 5) {
4737
+ return Array.from({ length: totalPages }, (_, i) => i + 1);
4738
+ }
4739
+ const pages = /* @__PURE__ */ new Set();
4740
+ pages.add(1);
4741
+ pages.add(totalPages);
4742
+ if (currentPage <= 3) {
4743
+ pages.add(2);
4744
+ pages.add(3);
4745
+ pages.add(4);
4746
+ } else if (currentPage >= totalPages - 2) {
4747
+ pages.add(totalPages - 1);
4748
+ pages.add(totalPages - 2);
4749
+ pages.add(totalPages - 3);
4750
+ } else {
4751
+ pages.add(currentPage - 1);
4752
+ pages.add(currentPage);
4753
+ pages.add(currentPage + 1);
4754
+ }
4755
+ const sorted = Array.from(pages).sort((a, b) => a - b);
4756
+ const tokens = [];
4757
+ for (let i = 0; i < sorted.length; i++) {
4758
+ const value = sorted[i];
4759
+ const prev = sorted[i - 1];
4760
+ if (i > 0) {
4761
+ if (value - prev === 2) {
4762
+ tokens.push(prev + 1);
4763
+ } else if (value - prev > 2) {
4764
+ tokens.push("ellipsis");
4765
+ }
4766
+ }
4767
+ tokens.push(value);
4768
+ }
4769
+ return tokens;
4770
+ }, [totalPages, currentPage]);
4771
+ if (totalPages <= 1) return null;
4772
+ const buttonClass = (0, import_clsx37.default)(
4773
+ "cursor-pointer disabled:cursor-default",
4774
+ paddingUsingComponentGap,
4775
+ "w-8 h-8",
4776
+ "flex items-center justify-center",
4777
+ "bg-transparent",
4778
+ "box-content",
4779
+ "hover:bg-background-grouped-secondary-normal",
4780
+ "focus:bg-background-grouped-secondary-normal focus:outline-0",
4781
+ "disabled:bg-transparent disabled:text-text-action-primary-disabled"
4782
+ );
4783
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
4784
+ "nav",
4785
+ {
4786
+ id,
4787
+ "data-testid": testid,
4788
+ "aria-label": "Pagination",
4789
+ onKeyDown: handleKey,
4790
+ className: (0, import_clsx37.default)(
4791
+ "flex items-center",
4792
+ "border border-border-primary-normal",
4793
+ "bg-background-grouped-primary-normal",
4794
+ "rounded-sm",
4795
+ className
4796
+ ),
4797
+ children: [
4798
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4799
+ "button",
4800
+ {
4801
+ disabled: disabled || currentPage <= 1,
4802
+ "aria-label": "Previous page",
4803
+ onClick: () => goTo(currentPage - 1),
4804
+ className: (0, import_clsx37.default)(buttonClass, "border-r-1 border-border-primary-normal"),
4805
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "keyboard_arrow_left" })
4806
+ }
4807
+ ),
4808
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
4809
+ if (token === "ellipsis") {
4810
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4811
+ "li",
4812
+ {
4813
+ className: "w-8 h-8 select-none text-text-action-primary-disabled",
4814
+ children: "\u2026"
4815
+ },
4816
+ `ellipsis-${index}`
4817
+ );
4818
+ }
4819
+ const selected = token === currentPage;
4820
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4821
+ "button",
4822
+ {
4823
+ "aria-label": `Page ${token}`,
4824
+ "aria-current": selected ? "page" : void 0,
4825
+ disabled,
4826
+ onClick: () => goTo(token),
4827
+ className: (0, import_clsx37.default)(
4828
+ buttonClass,
4829
+ selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
4830
+ ),
4831
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Subheader, { align: "center", weight: "bold", children: token })
4832
+ }
4833
+ ) }, token);
4834
+ }) }),
4835
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4836
+ "button",
4837
+ {
4838
+ disabled: disabled || currentPage >= totalPages,
4839
+ "aria-label": "Next page",
4840
+ onClick: () => goTo(currentPage + 1),
4841
+ className: (0, import_clsx37.default)(buttonClass, "border-l-1 border-border-primary-normal"),
4842
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "keyboard_arrow_right" })
4843
+ }
4844
+ )
4845
+ ]
4846
+ }
4847
+ );
4848
+ };
4849
+ Pagination.displayName = "Pagination";
4850
+
4851
+ // src/components/SkeletonParagraph.tsx
4852
+ var import_jsx_runtime60 = require("react/jsx-runtime");
4853
+
4854
+ // src/components/CalendarRange.tsx
4855
+ var import_jsx_runtime61 = require("react/jsx-runtime");
4678
4856
  function isWeekend(date) {
4679
4857
  return date.dayOfWeek === 6 || date.dayOfWeek === 7;
4680
4858
  }
@@ -4712,12 +4890,12 @@ function DateCell(_a) {
4712
4890
  "id",
4713
4891
  "testid"
4714
4892
  ]);
4715
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4893
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4716
4894
  "span",
4717
4895
  __spreadProps(__spreadValues({}, props), {
4718
4896
  id,
4719
4897
  "data-testid": testid,
4720
- className: (0, import_clsx35.default)(
4898
+ className: (0, import_clsx38.default)(
4721
4899
  "flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
4722
4900
  typography.caption,
4723
4901
  cellPadding,
@@ -4787,20 +4965,20 @@ function CalendarRange({
4787
4965
  const fromDate = parseDate(from);
4788
4966
  const toDate = parseDate(to);
4789
4967
  const today = import_polyfill.Temporal.Now.plainDateISO();
4790
- const [baseMonth, setBaseMonth] = (0, import_react33.useState)(
4968
+ const [baseMonth, setBaseMonth] = (0, import_react37.useState)(
4791
4969
  fromDate != null ? fromDate : today.with({ day: 1 })
4792
4970
  );
4793
- const [selecting, setSelecting] = (0, import_react33.useState)("from");
4794
- const [pendingFrom, setPendingFrom] = (0, import_react33.useState)(void 0);
4795
- const [hoveredDate, setHoveredDate] = (0, import_react33.useState)(void 0);
4796
- (0, import_react33.useEffect)(() => {
4971
+ const [selecting, setSelecting] = (0, import_react37.useState)("from");
4972
+ const [pendingFrom, setPendingFrom] = (0, import_react37.useState)(void 0);
4973
+ const [hoveredDate, setHoveredDate] = (0, import_react37.useState)(void 0);
4974
+ (0, import_react37.useEffect)(() => {
4797
4975
  if (fromDate) {
4798
4976
  setBaseMonth(fromDate.with({ day: 1 }));
4799
4977
  } else if (toDate) {
4800
4978
  setBaseMonth(toDate.with({ day: 1 }));
4801
4979
  }
4802
4980
  }, [from, to]);
4803
- (0, import_react33.useEffect)(() => {
4981
+ (0, import_react37.useEffect)(() => {
4804
4982
  if (fromDate && toDate) {
4805
4983
  setSelecting("from");
4806
4984
  setPendingFrom(void 0);
@@ -4866,12 +5044,12 @@ function CalendarRange({
4866
5044
  }
4867
5045
  return false;
4868
5046
  }
4869
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5047
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4870
5048
  "div",
4871
5049
  {
4872
5050
  id,
4873
5051
  "data-testid": testid,
4874
- className: (0, import_clsx35.default)(
5052
+ className: (0, import_clsx38.default)(
4875
5053
  "relative bg-background-grouped-primary-normal rounded-base w-fit",
4876
5054
  layoutPaddding,
4877
5055
  layoutGap,
@@ -4879,15 +5057,15 @@ function CalendarRange({
4879
5057
  // baseTransition,
4880
5058
  "overflow-hidden"
4881
5059
  ),
4882
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5060
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4883
5061
  "div",
4884
5062
  {
4885
- className: (0, import_clsx35.default)(
5063
+ className: (0, import_clsx38.default)(
4886
5064
  "flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
4887
5065
  layoutGap
4888
5066
  ),
4889
5067
  children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
4890
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5068
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4891
5069
  CalendarPane,
4892
5070
  {
4893
5071
  getMonthData,
@@ -4945,45 +5123,45 @@ function CalendarPane({
4945
5123
  const years = Array.from({ length: 100 }).map(
4946
5124
  (_, i) => baseMonth.year - 50 + i
4947
5125
  );
4948
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react33.useState)(false);
4949
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react33.useState)(false);
4950
- const monthMenuRef = (0, import_react33.useRef)(null);
4951
- const yearMenuRef = (0, import_react33.useRef)(null);
5126
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react37.useState)(false);
5127
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react37.useState)(false);
5128
+ const monthMenuRef = (0, import_react37.useRef)(null);
5129
+ const yearMenuRef = (0, import_react37.useRef)(null);
4952
5130
  const month = getMonthData(offset);
4953
5131
  const totalCells = 42;
4954
5132
  const emptyCells = month.firstDayOffset;
4955
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react33.default.Fragment, { children: [
4956
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5133
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react37.default.Fragment, { children: [
5134
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
4957
5135
  "div",
4958
5136
  {
4959
- className: (0, import_clsx35.default)("flex flex-col"),
5137
+ className: (0, import_clsx38.default)("flex flex-col"),
4960
5138
  children: [
4961
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5139
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
4962
5140
  "div",
4963
5141
  {
4964
- className: (0, import_clsx35.default)(
5142
+ className: (0, import_clsx38.default)(
4965
5143
  "flex flex-row items-center justify-between",
4966
5144
  typography.label,
4967
5145
  "text-text-action-primary-normal"
4968
5146
  ),
4969
5147
  children: [
4970
- idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5148
+ idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4971
5149
  "button",
4972
5150
  {
4973
5151
  id: id ? `${id}-prev-month-button` : void 0,
4974
5152
  "data-testid": testid ? `${testid}-prev-month-button` : void 0,
4975
5153
  type: "button",
4976
- className: (0, import_clsx35.default)(
5154
+ className: (0, import_clsx38.default)(
4977
5155
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
4978
5156
  componentPadding
4979
5157
  ),
4980
5158
  "aria-label": "Previous month",
4981
5159
  onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
4982
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron_left", size: 24 })
5160
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "chevron_left", size: 24 })
4983
5161
  }
4984
- ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "mr-1") }),
4985
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
4986
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5162
+ ) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: (0, import_clsx38.default)(componentPadding, "mr-1") }),
5163
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
5164
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4987
5165
  "button",
4988
5166
  {
4989
5167
  ref: (el) => {
@@ -4998,13 +5176,13 @@ function CalendarPane({
4998
5176
  children: month.name
4999
5177
  }
5000
5178
  ),
5001
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5179
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5002
5180
  Menu,
5003
5181
  {
5004
5182
  show: monthMenuOpen,
5005
5183
  positionTo: monthMenuRef,
5006
5184
  setShow: () => setMonthMenuOpen(false),
5007
- children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5185
+ children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5008
5186
  MenuOption,
5009
5187
  {
5010
5188
  selected: baseMonth.month === x + 1,
@@ -5018,7 +5196,7 @@ function CalendarPane({
5018
5196
  ))
5019
5197
  }
5020
5198
  ),
5021
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5199
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5022
5200
  "button",
5023
5201
  {
5024
5202
  ref: (el) => {
@@ -5033,13 +5211,13 @@ function CalendarPane({
5033
5211
  children: month.year
5034
5212
  }
5035
5213
  ),
5036
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5214
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5037
5215
  Menu,
5038
5216
  {
5039
5217
  show: yearMenuOpen,
5040
5218
  positionTo: yearMenuRef,
5041
5219
  setShow: () => setYearMenuOpen(false),
5042
- children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5220
+ children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5043
5221
  MenuOption,
5044
5222
  {
5045
5223
  selected: baseMonth.year === y,
@@ -5054,28 +5232,28 @@ function CalendarPane({
5054
5232
  }
5055
5233
  )
5056
5234
  ] }),
5057
- (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5235
+ (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5058
5236
  "button",
5059
5237
  {
5060
5238
  id: id ? `${id}-next-month-button` : void 0,
5061
5239
  "data-testid": testid ? `${testid}-next-month-button` : void 0,
5062
5240
  type: "button",
5063
- className: (0, import_clsx35.default)(
5241
+ className: (0, import_clsx38.default)(
5064
5242
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
5065
5243
  componentPadding
5066
5244
  ),
5067
5245
  "aria-label": "Next month",
5068
5246
  onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
5069
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron_right", size: 24 })
5247
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "chevron_right", size: 24 })
5070
5248
  }
5071
- ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "ml-1") })
5249
+ ) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: (0, import_clsx38.default)(componentPadding, "ml-1") })
5072
5250
  ]
5073
5251
  }
5074
5252
  ),
5075
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5253
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_clsx38.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5076
5254
  "span",
5077
5255
  {
5078
- className: (0, import_clsx35.default)(
5256
+ className: (0, import_clsx38.default)(
5079
5257
  typography.caption,
5080
5258
  "text-text-secondary-normal text-center",
5081
5259
  "w-10"
@@ -5084,7 +5262,7 @@ function CalendarPane({
5084
5262
  },
5085
5263
  d
5086
5264
  )) }),
5087
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
5265
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_clsx38.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
5088
5266
  const day = i - emptyCells + 1;
5089
5267
  const date = month.date.with({ day: 1 }).add({
5090
5268
  days: i - emptyCells
@@ -5098,7 +5276,7 @@ function CalendarPane({
5098
5276
  const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
5099
5277
  const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
5100
5278
  const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
5101
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5279
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5102
5280
  DateCell,
5103
5281
  {
5104
5282
  id: id ? `${id}-date-${date.toString()}` : void 0,
@@ -5123,10 +5301,10 @@ function CalendarPane({
5123
5301
  ]
5124
5302
  }
5125
5303
  ),
5126
- mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5304
+ mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5127
5305
  "div",
5128
5306
  {
5129
- className: (0, import_clsx35.default)(
5307
+ className: (0, import_clsx38.default)(
5130
5308
  "self-stretch bg-border-primary-normal rounded-base",
5131
5309
  // 1px width, full height, matches Figma divider
5132
5310
  "w-px"