@dmsi/wedgekit-react 0.0.864 → 0.0.866

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 (90) hide show
  1. package/dist/chunk-3N34VVYD.js +154 -0
  2. package/dist/{chunk-57HL5K5I.js → chunk-4DPSNQCM.js} +1 -1
  3. package/dist/{chunk-BH4UKMXV.js → chunk-5NRKL5CJ.js} +3 -3
  4. package/dist/{chunk-A57PKP6Z.js → chunk-E7XBOMT4.js} +6 -6
  5. package/dist/{chunk-CJPGHBV5.js → chunk-EGECC3PQ.js} +1 -1
  6. package/dist/{chunk-ZL6NXIGS.js → chunk-HT57FLRW.js} +1 -1
  7. package/dist/{chunk-BXEE6VGQ.js → chunk-KLH67DTH.js} +6 -23
  8. package/dist/{chunk-C5DKGJ4E.js → chunk-KOKA2IJC.js} +4 -4
  9. package/dist/{chunk-IPQIZG7U.js → chunk-N36EJLRW.js} +1 -1
  10. package/dist/{chunk-RFF2EFBX.js → chunk-OM7QLLI2.js} +2 -2
  11. package/dist/{chunk-FXJ7C6RF.js → chunk-PE3EZP56.js} +1 -1
  12. package/dist/chunk-WVGXD7HT.js +19 -0
  13. package/dist/{chunk-7OLDYFKY.js → chunk-X3NDEFVA.js} +1 -1
  14. package/dist/chunk-YV5FS7NV.js +89 -0
  15. package/dist/chunk-Z2HPSFEQ.js +14 -0
  16. package/dist/{chunk-RTZO2OU7.js → chunk-Z7XANQ47.js} +1 -1
  17. package/dist/components/CalendarRange.cjs +65 -46
  18. package/dist/components/CalendarRange.css +13 -0
  19. package/dist/components/CalendarRange.js +17 -14
  20. package/dist/components/CompactImagesPreview.js +3 -2
  21. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +23 -4
  22. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +13 -0
  23. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +17 -14
  24. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +32 -13
  25. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +13 -0
  26. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +17 -14
  27. package/dist/components/DataGrid/PinnedColumns.cjs +48 -29
  28. package/dist/components/DataGrid/PinnedColumns.css +13 -0
  29. package/dist/components/DataGrid/PinnedColumns.js +17 -14
  30. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +24 -5
  31. package/dist/components/DataGrid/TableBody/LoadingCell.css +13 -0
  32. package/dist/components/DataGrid/TableBody/LoadingCell.js +17 -14
  33. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +30 -11
  34. package/dist/components/DataGrid/TableBody/TableBodyRow.css +13 -0
  35. package/dist/components/DataGrid/TableBody/TableBodyRow.js +17 -14
  36. package/dist/components/DataGrid/TableBody/index.cjs +45 -26
  37. package/dist/components/DataGrid/TableBody/index.css +13 -0
  38. package/dist/components/DataGrid/TableBody/index.js +17 -14
  39. package/dist/components/DataGrid/index.cjs +135 -116
  40. package/dist/components/DataGrid/index.css +13 -0
  41. package/dist/components/DataGrid/index.js +17 -14
  42. package/dist/components/DataGrid/utils.cjs +24 -5
  43. package/dist/components/DataGrid/utils.css +13 -0
  44. package/dist/components/DataGrid/utils.js +17 -14
  45. package/dist/components/DataGridCell.js +6 -5
  46. package/dist/components/DateInput.cjs +85 -66
  47. package/dist/components/DateInput.css +13 -0
  48. package/dist/components/DateInput.js +17 -14
  49. package/dist/components/DateRangeInput.cjs +84 -65
  50. package/dist/components/DateRangeInput.css +13 -0
  51. package/dist/components/DateRangeInput.js +17 -14
  52. package/dist/components/EmblaCarousel/ArrowButtons.cjs +147 -0
  53. package/dist/components/EmblaCarousel/ArrowButtons.js +9 -0
  54. package/dist/components/EmblaCarousel/SelectedSnapDisplay.cjs +38 -0
  55. package/dist/components/EmblaCarousel/SelectedSnapDisplay.js +7 -0
  56. package/dist/components/EmblaCarousel/index.cjs +266 -2
  57. package/dist/components/EmblaCarousel/index.js +4 -1
  58. package/dist/components/Menu.js +4 -3
  59. package/dist/components/MenuOption.js +3 -2
  60. package/dist/components/MobileDataGrid/ColumnList.css +13 -0
  61. package/dist/components/MobileDataGrid/ColumnList.js +1 -1
  62. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +31 -12
  63. package/dist/components/MobileDataGrid/ColumnSelector/index.css +13 -0
  64. package/dist/components/MobileDataGrid/ColumnSelector/index.js +17 -14
  65. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
  66. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +39 -20
  67. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +13 -0
  68. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +17 -14
  69. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
  70. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -4
  71. package/dist/components/MobileDataGrid/index.cjs +151 -132
  72. package/dist/components/MobileDataGrid/index.css +13 -0
  73. package/dist/components/MobileDataGrid/index.js +17 -14
  74. package/dist/components/Modal.js +3 -2
  75. package/dist/components/NestedMenu.js +3 -2
  76. package/dist/components/PDFViewer/DownloadIcon.js +4 -3
  77. package/dist/components/PDFViewer/index.js +5 -4
  78. package/dist/components/Password.js +3 -2
  79. package/dist/components/ProductImagePreview/index.js +4 -3
  80. package/dist/components/ProjectBar.js +2 -1
  81. package/dist/components/Stepper.js +3 -2
  82. package/dist/components/Tooltip.js +3 -2
  83. package/dist/components/index.cjs +222 -2
  84. package/dist/components/index.css +13 -0
  85. package/dist/components/index.js +17 -14
  86. package/dist/components/useMenuSystem.js +3 -2
  87. package/dist/hooks/index.js +5 -3
  88. package/dist/index.css +13 -0
  89. package/package.json +3 -3
  90. package/dist/chunk-SZ47M32R.js +0 -13
@@ -62,7 +62,7 @@ __export(DateRangeInput_exports, {
62
62
  DateRangeInput: () => DateRangeInput
63
63
  });
64
64
  module.exports = __toCommonJS(DateRangeInput_exports);
65
- var import_react41 = require("react");
65
+ var import_react44 = require("react");
66
66
  var import_react_dom5 = require("react-dom");
67
67
 
68
68
  // src/components/Input.tsx
@@ -833,8 +833,8 @@ Currency.displayName = "Currency";
833
833
  Percentage.displayName = "Percentage";
834
834
 
835
835
  // src/components/CalendarRange.tsx
836
- var import_clsx42 = __toESM(require("clsx"), 1);
837
- var import_react40 = __toESM(require("react"), 1);
836
+ var import_clsx43 = __toESM(require("clsx"), 1);
837
+ var import_react43 = __toESM(require("react"), 1);
838
838
  var import_polyfill = require("@js-temporal/polyfill");
839
839
 
840
840
  // src/components/DataGridCell.tsx
@@ -5686,11 +5686,30 @@ var import_react39 = require("react");
5686
5686
  var import_jsx_runtime65 = require("react/jsx-runtime");
5687
5687
 
5688
5688
  // src/components/EmblaCarousel/index.tsx
5689
+ var import_react42 = require("react");
5689
5690
  var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
5691
+
5692
+ // src/components/EmblaCarousel/SelectedSnapDisplay.tsx
5690
5693
  var import_jsx_runtime66 = require("react/jsx-runtime");
5691
5694
 
5692
- // src/components/CalendarRange.tsx
5695
+ // src/components/EmblaCarousel/useSelectedSnapDisplay.ts
5696
+ var import_react40 = require("react");
5697
+
5698
+ // src/components/EmblaCarousel/ArrowButtons.tsx
5699
+ var import_clsx42 = __toESM(require("clsx"), 1);
5693
5700
  var import_jsx_runtime67 = require("react/jsx-runtime");
5701
+ var arrowButtonStyles = (0, import_clsx42.default)(
5702
+ "appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
5703
+ );
5704
+
5705
+ // src/components/EmblaCarousel/usePrevNextButtons.ts
5706
+ var import_react41 = require("react");
5707
+
5708
+ // src/components/EmblaCarousel/index.tsx
5709
+ var import_jsx_runtime68 = require("react/jsx-runtime");
5710
+
5711
+ // src/components/CalendarRange.tsx
5712
+ var import_jsx_runtime69 = require("react/jsx-runtime");
5694
5713
  function DateCell(_a) {
5695
5714
  var _b = _a, {
5696
5715
  date,
@@ -5725,12 +5744,12 @@ function DateCell(_a) {
5725
5744
  "id",
5726
5745
  "testid"
5727
5746
  ]);
5728
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5747
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5729
5748
  "span",
5730
5749
  __spreadProps(__spreadValues({}, props), {
5731
5750
  id,
5732
5751
  "data-testid": testid,
5733
- className: (0, import_clsx42.default)(
5752
+ className: (0, import_clsx43.default)(
5734
5753
  "flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
5735
5754
  typography.caption,
5736
5755
  cellPadding,
@@ -5801,20 +5820,20 @@ function CalendarRange({
5801
5820
  const fromDate = parseDate(from);
5802
5821
  const toDate = parseDate(to);
5803
5822
  const today = import_polyfill.Temporal.Now.plainDateISO();
5804
- const [baseMonth, setBaseMonth] = (0, import_react40.useState)(
5823
+ const [baseMonth, setBaseMonth] = (0, import_react43.useState)(
5805
5824
  fromDate != null ? fromDate : today.with({ day: 1 })
5806
5825
  );
5807
- const [selecting, setSelecting] = (0, import_react40.useState)("from");
5808
- const [pendingFrom, setPendingFrom] = (0, import_react40.useState)(void 0);
5809
- const [hoveredDate, setHoveredDate] = (0, import_react40.useState)(void 0);
5810
- (0, import_react40.useEffect)(() => {
5826
+ const [selecting, setSelecting] = (0, import_react43.useState)("from");
5827
+ const [pendingFrom, setPendingFrom] = (0, import_react43.useState)(void 0);
5828
+ const [hoveredDate, setHoveredDate] = (0, import_react43.useState)(void 0);
5829
+ (0, import_react43.useEffect)(() => {
5811
5830
  if (fromDate) {
5812
5831
  setBaseMonth(fromDate.with({ day: 1 }));
5813
5832
  } else if (toDate) {
5814
5833
  setBaseMonth(toDate.with({ day: 1 }));
5815
5834
  }
5816
5835
  }, [from, to]);
5817
- (0, import_react40.useEffect)(() => {
5836
+ (0, import_react43.useEffect)(() => {
5818
5837
  if (fromDate && toDate) {
5819
5838
  setSelecting("from");
5820
5839
  setPendingFrom(void 0);
@@ -5881,12 +5900,12 @@ function CalendarRange({
5881
5900
  }
5882
5901
  return false;
5883
5902
  }
5884
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5903
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5885
5904
  "div",
5886
5905
  {
5887
5906
  id,
5888
5907
  "data-testid": testid,
5889
- className: (0, import_clsx42.default)(
5908
+ className: (0, import_clsx43.default)(
5890
5909
  "relative bg-background-grouped-primary-normal rounded-base w-fit",
5891
5910
  layoutPaddding,
5892
5911
  layoutGap,
@@ -5894,15 +5913,15 @@ function CalendarRange({
5894
5913
  // baseTransition,
5895
5914
  "overflow-hidden"
5896
5915
  ),
5897
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5916
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5898
5917
  "div",
5899
5918
  {
5900
- className: (0, import_clsx42.default)(
5919
+ className: (0, import_clsx43.default)(
5901
5920
  "flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
5902
5921
  layoutGap
5903
5922
  ),
5904
5923
  children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
5905
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5924
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5906
5925
  CalendarPane,
5907
5926
  {
5908
5927
  getMonthData,
@@ -5960,45 +5979,45 @@ function CalendarPane({
5960
5979
  const years = Array.from({ length: 100 }).map(
5961
5980
  (_, i) => baseMonth.year - 50 + i
5962
5981
  );
5963
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react40.useState)(false);
5964
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react40.useState)(false);
5965
- const monthMenuRef = (0, import_react40.useRef)(null);
5966
- const yearMenuRef = (0, import_react40.useRef)(null);
5982
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react43.useState)(false);
5983
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react43.useState)(false);
5984
+ const monthMenuRef = (0, import_react43.useRef)(null);
5985
+ const yearMenuRef = (0, import_react43.useRef)(null);
5967
5986
  const month = getMonthData(offset);
5968
5987
  const totalCells = 42;
5969
5988
  const emptyCells = month.firstDayOffset;
5970
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react40.default.Fragment, { children: [
5971
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5989
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react43.default.Fragment, { children: [
5990
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
5972
5991
  "div",
5973
5992
  {
5974
- className: (0, import_clsx42.default)("flex flex-col"),
5993
+ className: (0, import_clsx43.default)("flex flex-col"),
5975
5994
  children: [
5976
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5995
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
5977
5996
  "div",
5978
5997
  {
5979
- className: (0, import_clsx42.default)(
5998
+ className: (0, import_clsx43.default)(
5980
5999
  "flex flex-row items-center justify-between",
5981
6000
  typography.label,
5982
6001
  "text-text-action-primary-normal"
5983
6002
  ),
5984
6003
  children: [
5985
- idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6004
+ idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5986
6005
  "button",
5987
6006
  {
5988
6007
  id: id ? `${id}-prev-month-button` : void 0,
5989
6008
  "data-testid": testid ? `${testid}-prev-month-button` : void 0,
5990
6009
  type: "button",
5991
- className: (0, import_clsx42.default)(
6010
+ className: (0, import_clsx43.default)(
5992
6011
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
5993
6012
  componentPadding
5994
6013
  ),
5995
6014
  "aria-label": "Previous month",
5996
6015
  onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
5997
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_left", size: 24 })
6016
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { name: "chevron_left", size: 24 })
5998
6017
  }
5999
- ) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx42.default)(componentPadding, "mr-1") }),
6000
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
6001
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6018
+ ) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx43.default)(componentPadding, "mr-1") }),
6019
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
6020
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6002
6021
  "button",
6003
6022
  {
6004
6023
  ref: (el) => {
@@ -6013,13 +6032,13 @@ function CalendarPane({
6013
6032
  children: month.name
6014
6033
  }
6015
6034
  ),
6016
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6035
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6017
6036
  Menu,
6018
6037
  {
6019
6038
  show: monthMenuOpen,
6020
6039
  positionTo: monthMenuRef,
6021
6040
  setShow: () => setMonthMenuOpen(false),
6022
- children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6041
+ children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6023
6042
  MenuOption,
6024
6043
  {
6025
6044
  selected: baseMonth.month === x + 1,
@@ -6033,7 +6052,7 @@ function CalendarPane({
6033
6052
  ))
6034
6053
  }
6035
6054
  ),
6036
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6055
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6037
6056
  "button",
6038
6057
  {
6039
6058
  ref: (el) => {
@@ -6048,13 +6067,13 @@ function CalendarPane({
6048
6067
  children: month.year
6049
6068
  }
6050
6069
  ),
6051
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6070
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6052
6071
  Menu,
6053
6072
  {
6054
6073
  show: yearMenuOpen,
6055
6074
  positionTo: yearMenuRef,
6056
6075
  setShow: () => setYearMenuOpen(false),
6057
- children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6076
+ children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6058
6077
  MenuOption,
6059
6078
  {
6060
6079
  selected: baseMonth.year === y,
@@ -6069,28 +6088,28 @@ function CalendarPane({
6069
6088
  }
6070
6089
  )
6071
6090
  ] }),
6072
- (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6091
+ (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6073
6092
  "button",
6074
6093
  {
6075
6094
  id: id ? `${id}-next-month-button` : void 0,
6076
6095
  "data-testid": testid ? `${testid}-next-month-button` : void 0,
6077
6096
  type: "button",
6078
- className: (0, import_clsx42.default)(
6097
+ className: (0, import_clsx43.default)(
6079
6098
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
6080
6099
  componentPadding
6081
6100
  ),
6082
6101
  "aria-label": "Next month",
6083
6102
  onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
6084
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_right", size: 24 })
6103
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { name: "chevron_right", size: 24 })
6085
6104
  }
6086
- ) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx42.default)(componentPadding, "ml-1") })
6105
+ ) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx43.default)(componentPadding, "ml-1") })
6087
6106
  ]
6088
6107
  }
6089
6108
  ),
6090
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: (0, import_clsx42.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6109
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0, import_clsx43.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6091
6110
  "span",
6092
6111
  {
6093
- className: (0, import_clsx42.default)(
6112
+ className: (0, import_clsx43.default)(
6094
6113
  typography.caption,
6095
6114
  "text-text-secondary-normal text-center",
6096
6115
  "w-10"
@@ -6099,7 +6118,7 @@ function CalendarPane({
6099
6118
  },
6100
6119
  d
6101
6120
  )) }),
6102
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: (0, import_clsx42.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
6121
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0, import_clsx43.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
6103
6122
  const day = i - emptyCells + 1;
6104
6123
  const date = month.date.with({ day: 1 }).add({
6105
6124
  days: i - emptyCells
@@ -6113,7 +6132,7 @@ function CalendarPane({
6113
6132
  const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
6114
6133
  const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
6115
6134
  const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
6116
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6135
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6117
6136
  DateCell,
6118
6137
  {
6119
6138
  id: id ? `${id}-date-${date.toString()}` : void 0,
@@ -6138,10 +6157,10 @@ function CalendarPane({
6138
6157
  ]
6139
6158
  }
6140
6159
  ),
6141
- mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6160
+ mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6142
6161
  "div",
6143
6162
  {
6144
- className: (0, import_clsx42.default)(
6163
+ className: (0, import_clsx43.default)(
6145
6164
  "self-stretch bg-border-primary-normal rounded-base",
6146
6165
  // 1px width, full height, matches Figma divider
6147
6166
  "w-px"
@@ -6152,7 +6171,7 @@ function CalendarPane({
6152
6171
  }
6153
6172
 
6154
6173
  // src/components/DateRangeInput.tsx
6155
- var import_jsx_runtime68 = require("react/jsx-runtime");
6174
+ var import_jsx_runtime70 = require("react/jsx-runtime");
6156
6175
  var DateRangeInput = (_a) => {
6157
6176
  var _b = _a, {
6158
6177
  id,
@@ -6181,19 +6200,19 @@ var DateRangeInput = (_a) => {
6181
6200
  "isDateAvailable",
6182
6201
  "onPendingFromChange"
6183
6202
  ]);
6184
- const [visible, setVisible] = (0, import_react41.useState)(false);
6185
- const [inputValue, setInputValue] = (0, import_react41.useState)("");
6186
- const [isTyping, setIsTyping] = (0, import_react41.useState)(false);
6187
- const popoverRef = (0, import_react41.useRef)(null);
6188
- const rootRef = (0, import_react41.useRef)(null);
6189
- const triggerRef = (0, import_react41.useRef)(null);
6190
- const [calendarPosition, setCalendarPosition] = (0, import_react41.useState)({
6203
+ const [visible, setVisible] = (0, import_react44.useState)(false);
6204
+ const [inputValue, setInputValue] = (0, import_react44.useState)("");
6205
+ const [isTyping, setIsTyping] = (0, import_react44.useState)(false);
6206
+ const popoverRef = (0, import_react44.useRef)(null);
6207
+ const rootRef = (0, import_react44.useRef)(null);
6208
+ const triggerRef = (0, import_react44.useRef)(null);
6209
+ const [calendarPosition, setCalendarPosition] = (0, import_react44.useState)({
6191
6210
  top: 0,
6192
6211
  left: 0,
6193
6212
  width: 0
6194
6213
  });
6195
6214
  const [from, to] = value.split("|");
6196
- (0, import_react41.useEffect)(() => {
6215
+ (0, import_react44.useEffect)(() => {
6197
6216
  if (!isTyping) {
6198
6217
  const displayValue = formatDisplayValue2(from, to);
6199
6218
  if (displayValue) {
@@ -6201,7 +6220,7 @@ var DateRangeInput = (_a) => {
6201
6220
  }
6202
6221
  }
6203
6222
  }, [from, to, isTyping, disableRange]);
6204
- (0, import_react41.useLayoutEffect)(() => {
6223
+ (0, import_react44.useLayoutEffect)(() => {
6205
6224
  if (visible) {
6206
6225
  updatePosition();
6207
6226
  }
@@ -6216,7 +6235,7 @@ var DateRangeInput = (_a) => {
6216
6235
  });
6217
6236
  }
6218
6237
  };
6219
- (0, import_react41.useEffect)(() => {
6238
+ (0, import_react44.useEffect)(() => {
6220
6239
  updatePosition();
6221
6240
  const resizeObserver = new ResizeObserver(updatePosition);
6222
6241
  if (triggerRef.current) {
@@ -6228,7 +6247,7 @@ var DateRangeInput = (_a) => {
6228
6247
  window.removeEventListener("scroll", updatePosition);
6229
6248
  };
6230
6249
  }, []);
6231
- (0, import_react41.useEffect)(() => {
6250
+ (0, import_react44.useEffect)(() => {
6232
6251
  const handleKeyDown2 = (event) => {
6233
6252
  var _a2;
6234
6253
  if (event.key === "Escape" && popoverRef.current) {
@@ -6241,7 +6260,7 @@ var DateRangeInput = (_a) => {
6241
6260
  document.removeEventListener("keydown", handleKeyDown2);
6242
6261
  };
6243
6262
  }, []);
6244
- (0, import_react41.useEffect)(() => {
6263
+ (0, import_react44.useEffect)(() => {
6245
6264
  const handleClickOutside = (event) => {
6246
6265
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
6247
6266
  setVisible(false);
@@ -6576,8 +6595,8 @@ var DateRangeInput = (_a) => {
6576
6595
  }
6577
6596
  }
6578
6597
  };
6579
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
6580
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6598
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
6599
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6581
6600
  InputBase,
6582
6601
  __spreadProps(__spreadValues({
6583
6602
  id,
@@ -6591,7 +6610,7 @@ var DateRangeInput = (_a) => {
6591
6610
  placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
6592
6611
  disabled,
6593
6612
  readOnly,
6594
- after: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, { name: "calendar_month" }),
6613
+ after: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, { name: "calendar_month" }),
6595
6614
  onFocus: handleFocus,
6596
6615
  onClick: handleClick,
6597
6616
  onChange: handleInputChange,
@@ -6602,7 +6621,7 @@ var DateRangeInput = (_a) => {
6602
6621
  })
6603
6622
  ),
6604
6623
  visible && !readOnly && (0, import_react_dom5.createPortal)(
6605
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6624
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6606
6625
  "div",
6607
6626
  {
6608
6627
  ref: (el) => {
@@ -6614,7 +6633,7 @@ var DateRangeInput = (_a) => {
6614
6633
  left: `${calendarPosition.left}px`,
6615
6634
  minWidth: `${calendarPosition.width}px`
6616
6635
  },
6617
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6636
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6618
6637
  CalendarRange,
6619
6638
  {
6620
6639
  id: id ? `${id}-calendar` : void 0,
@@ -759,6 +759,10 @@
759
759
  width: calc(var(--spacing) * 6);
760
760
  height: calc(var(--spacing) * 6);
761
761
  }
762
+ .size-9 {
763
+ width: calc(var(--spacing) * 9);
764
+ height: calc(var(--spacing) * 9);
765
+ }
762
766
  .\!h-4\.5 {
763
767
  height: calc(var(--spacing) * 4.5) !important;
764
768
  }
@@ -1063,6 +1067,9 @@
1063
1067
  .\[appearance\:textfield\] {
1064
1068
  appearance: textfield;
1065
1069
  }
1070
+ .appearance-none {
1071
+ appearance: none;
1072
+ }
1066
1073
  .grid-cols-1 {
1067
1074
  grid-template-columns: repeat(1, minmax(0, 1fr));
1068
1075
  }
@@ -2122,6 +2129,9 @@
2122
2129
  .pb-2 {
2123
2130
  padding-bottom: calc(var(--spacing) * 2);
2124
2131
  }
2132
+ .pb-3 {
2133
+ padding-bottom: calc(var(--spacing) * 3);
2134
+ }
2125
2135
  .pb-mobile-component-padding {
2126
2136
  padding-bottom: var(--spacing-mobile-component-padding);
2127
2137
  }
@@ -2345,6 +2355,9 @@
2345
2355
  .text-icon-on-action-secondary-normal {
2346
2356
  color: var(--color-icon-on-action-secondary-normal);
2347
2357
  }
2358
+ .text-icon-primary-disabled {
2359
+ color: var(--color-icon-primary-disabled);
2360
+ }
2348
2361
  .text-icon-primary-normal {
2349
2362
  color: var(--color-icon-primary-normal);
2350
2363
  }
@@ -1,22 +1,24 @@
1
1
  import {
2
2
  CalendarRange
3
- } from "../chunk-A57PKP6Z.js";
4
- import "../chunk-57HL5K5I.js";
3
+ } from "../chunk-E7XBOMT4.js";
4
+ import "../chunk-4DPSNQCM.js";
5
5
  import "../chunk-Q4YDNW7N.js";
6
6
  import "../chunk-M7INAUAJ.js";
7
- import "../chunk-C5DKGJ4E.js";
7
+ import "../chunk-KOKA2IJC.js";
8
+ import "../chunk-MBZ55T2D.js";
8
9
  import "../chunk-2IKT6IHB.js";
9
10
  import "../chunk-YCDDBSVU.js";
10
11
  import "../chunk-3X3Y4TMS.js";
11
12
  import "../chunk-BQNPOGD5.js";
12
13
  import "../chunk-Y5GD2FJA.js";
13
- import "../chunk-MBZ55T2D.js";
14
- import "../chunk-SZ47M32R.js";
14
+ import "../chunk-3N34VVYD.js";
15
15
  import "../chunk-B4AE3DCA.js";
16
16
  import "../chunk-FP3Y5JJN.js";
17
17
  import "../chunk-5IFPG6TS.js";
18
- import "../chunk-AJ5M6MVX.js";
19
18
  import "../chunk-6EYMKEJ6.js";
19
+ import "../chunk-AJ5M6MVX.js";
20
+ import "../chunk-YV5FS7NV.js";
21
+ import "../chunk-Z2HPSFEQ.js";
20
22
  import "../chunk-AT4AWD6B.js";
21
23
  import "../chunk-EWGHVZL5.js";
22
24
  import "../chunk-FZ2TEKOE.js";
@@ -24,8 +26,8 @@ import "../chunk-FESS4LWU.js";
24
26
  import "../chunk-KBIEWFQS.js";
25
27
  import "../chunk-NSZTJ5R4.js";
26
28
  import "../chunk-LB7UT6F3.js";
27
- import "../chunk-ZL6NXIGS.js";
28
- import "../chunk-IPQIZG7U.js";
29
+ import "../chunk-HT57FLRW.js";
30
+ import "../chunk-N36EJLRW.js";
29
31
  import "../chunk-4RJKB7LC.js";
30
32
  import "../chunk-UUKHQUSF.js";
31
33
  import "../chunk-WVVEOCEH.js";
@@ -36,10 +38,10 @@ import "../chunk-UAMI54FE.js";
36
38
  import "../chunk-SJZNVG4N.js";
37
39
  import "../chunk-75USUR3I.js";
38
40
  import "../chunk-BWPNXY7T.js";
39
- import "../chunk-BH4UKMXV.js";
40
- import "../chunk-RFF2EFBX.js";
41
- import "../chunk-FXJ7C6RF.js";
42
- import "../chunk-7OLDYFKY.js";
41
+ import "../chunk-5NRKL5CJ.js";
42
+ import "../chunk-OM7QLLI2.js";
43
+ import "../chunk-PE3EZP56.js";
44
+ import "../chunk-X3NDEFVA.js";
43
45
  import "../chunk-FHXCCVOG.js";
44
46
  import {
45
47
  InputBase
@@ -47,8 +49,9 @@ import {
47
49
  import "../chunk-HXGJVYGQ.js";
48
50
  import "../chunk-WVUIIBRR.js";
49
51
  import "../chunk-M7WHWZ2J.js";
50
- import "../chunk-CJPGHBV5.js";
51
- import "../chunk-BXEE6VGQ.js";
52
+ import "../chunk-EGECC3PQ.js";
53
+ import "../chunk-KLH67DTH.js";
54
+ import "../chunk-WVGXD7HT.js";
52
55
  import {
53
56
  findDocumentRoot
54
57
  } from "../chunk-VXWSAIB5.js";
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/components/EmblaCarousel/ArrowButtons.tsx
60
+ var ArrowButtons_exports = {};
61
+ __export(ArrowButtons_exports, {
62
+ NextButton: () => NextButton,
63
+ PrevButton: () => PrevButton
64
+ });
65
+ module.exports = __toCommonJS(ArrowButtons_exports);
66
+ var import_clsx = __toESM(require("clsx"), 1);
67
+ var import_jsx_runtime = require("react/jsx-runtime");
68
+ var arrowButtonStyles = (0, import_clsx.default)(
69
+ "appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
70
+ );
71
+ var PrevButton = (props) => {
72
+ const _a = props, { children, disabled } = _a, restProps = __objRest(_a, ["children", "disabled"]);
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
74
+ "button",
75
+ __spreadProps(__spreadValues({
76
+ className: (0, import_clsx.default)(
77
+ arrowButtonStyles,
78
+ !disabled && "border-border-primary-normal hover:border-border-action-hover active:border-border-action-active",
79
+ disabled && "border-border-action-disabled"
80
+ ),
81
+ type: "button"
82
+ }, restProps), {
83
+ children: [
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
+ "svg",
86
+ {
87
+ className: (0, import_clsx.default)(
88
+ "size-3 transition-colors duration-300 ease-in-out",
89
+ !disabled && "text-text-primary-normal",
90
+ disabled && "text-icon-primary-disabled"
91
+ ),
92
+ viewBox: "0 0 532 532",
93
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
94
+ "path",
95
+ {
96
+ fill: "currentColor",
97
+ d: "M355.66 11.354c13.793-13.805 36.208-13.805 50.001 0 13.785 13.804 13.785 36.238 0 50.034L201.22 266l204.442 204.61c13.785 13.805 13.785 36.239 0 50.044-13.793 13.796-36.208 13.796-50.002 0a5994246.277 5994246.277 0 0 0-229.332-229.454 35.065 35.065 0 0 1-10.326-25.126c0-9.2 3.393-18.26 10.326-25.2C172.192 194.973 332.731 34.31 355.66 11.354Z"
98
+ }
99
+ )
100
+ }
101
+ ),
102
+ children
103
+ ]
104
+ })
105
+ );
106
+ };
107
+ var NextButton = (props) => {
108
+ const _a = props, { children, disabled } = _a, restProps = __objRest(_a, ["children", "disabled"]);
109
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
110
+ "button",
111
+ __spreadProps(__spreadValues({
112
+ className: (0, import_clsx.default)(
113
+ arrowButtonStyles,
114
+ !disabled && "border-border-primary-normal hover:border-border-action-hover active:border-border-action-active",
115
+ disabled && "border-border-action-disabled"
116
+ ),
117
+ type: "button"
118
+ }, restProps), {
119
+ children: [
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
121
+ "svg",
122
+ {
123
+ className: (0, import_clsx.default)(
124
+ "size-3 transition-colors duration-300 ease-in-out",
125
+ !disabled && "text-text-primary-normal",
126
+ disabled && "text-icon-primary-disabled"
127
+ ),
128
+ viewBox: "0 0 532 532",
129
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
130
+ "path",
131
+ {
132
+ fill: "currentColor",
133
+ d: "M176.34 520.646c-13.793 13.805-36.208 13.805-50.001 0-13.785-13.804-13.785-36.238 0-50.034L330.78 266 126.34 61.391c-13.785-13.805-13.785-36.239 0-50.044 13.793-13.796 36.208-13.796 50.002 0 22.928 22.947 206.395 206.507 229.332 229.454a35.065 35.065 0 0 1 10.326 25.126c0 9.2-3.393 18.26-10.326 25.2-45.865 45.901-206.404 206.564-229.332 229.52Z"
134
+ }
135
+ )
136
+ }
137
+ ),
138
+ children
139
+ ]
140
+ })
141
+ );
142
+ };
143
+ // Annotate the CommonJS export names for ESM import in node:
144
+ 0 && (module.exports = {
145
+ NextButton,
146
+ PrevButton
147
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ NextButton,
3
+ PrevButton
4
+ } from "../../chunk-YV5FS7NV.js";
5
+ import "../../chunk-ORMEWXMH.js";
6
+ export {
7
+ NextButton,
8
+ PrevButton
9
+ };