@dmsi/wedgekit-react 0.0.503 → 0.0.504

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 (45) hide show
  1. package/dist/{chunk-VOSQMHNF.js → chunk-U5V2IRZX.js} +4 -29
  2. package/dist/{chunk-S5ZJ3Q7P.js → chunk-VJVY6NPF.js} +3 -3
  3. package/dist/components/CalendarRange.cjs +75 -128
  4. package/dist/components/CalendarRange.js +1 -7
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +33 -86
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +1 -7
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +43 -96
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +1 -7
  9. package/dist/components/DataGrid/PinnedColumns.cjs +58 -111
  10. package/dist/components/DataGrid/PinnedColumns.js +1 -7
  11. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +34 -87
  12. package/dist/components/DataGrid/TableBody/LoadingCell.js +1 -7
  13. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +40 -93
  14. package/dist/components/DataGrid/TableBody/TableBodyRow.js +1 -7
  15. package/dist/components/DataGrid/TableBody/index.cjs +55 -108
  16. package/dist/components/DataGrid/TableBody/index.js +1 -7
  17. package/dist/components/DataGrid/index.cjs +144 -197
  18. package/dist/components/DataGrid/index.js +1 -7
  19. package/dist/components/DataGrid/utils.cjs +34 -87
  20. package/dist/components/DataGrid/utils.js +1 -7
  21. package/dist/components/DateInput.cjs +94 -147
  22. package/dist/components/DateInput.js +1 -7
  23. package/dist/components/DateRangeInput.cjs +94 -147
  24. package/dist/components/DateRangeInput.js +1 -7
  25. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +41 -94
  26. package/dist/components/MobileDataGrid/ColumnSelector/index.js +1 -7
  27. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +49 -102
  28. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +1 -7
  29. package/dist/components/MobileDataGrid/index.cjs +868 -921
  30. package/dist/components/MobileDataGrid/index.js +1 -7
  31. package/dist/components/PDFViewer/PDFElement.cjs +5 -31
  32. package/dist/components/PDFViewer/PDFElement.js +2 -3
  33. package/dist/components/PDFViewer/PDFPage.cjs +3 -3
  34. package/dist/components/PDFViewer/PDFPage.js +1 -1
  35. package/dist/components/PDFViewer/index.cjs +5 -35
  36. package/dist/components/PDFViewer/index.js +111 -8
  37. package/dist/components/index.cjs +56 -402
  38. package/dist/components/index.js +1 -10
  39. package/package.json +1 -1
  40. package/src/components/PDFViewer/PDFElement.tsx +3 -38
  41. package/src/components/PDFViewer/PDFPage.tsx +2 -4
  42. package/src/components/PDFViewer/index.tsx +1 -9
  43. package/src/components/index.ts +0 -1
  44. package/dist/chunk-6XLESQ2U.js +0 -119
  45. /package/dist/{chunk-C2YTC2CN.js → chunk-JWVZOEF5.js} +0 -0
@@ -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_react38 = require("react");
66
66
  var import_react_dom5 = require("react-dom");
67
67
 
68
68
  // src/components/Input.tsx
@@ -790,8 +790,8 @@ Currency.displayName = "Currency";
790
790
  Percentage.displayName = "Percentage";
791
791
 
792
792
  // src/components/CalendarRange.tsx
793
- var import_clsx40 = __toESM(require("clsx"), 1);
794
- var import_react40 = __toESM(require("react"), 1);
793
+ var import_clsx39 = __toESM(require("clsx"), 1);
794
+ var import_react37 = __toESM(require("react"), 1);
795
795
  var import_polyfill = require("@js-temporal/polyfill");
796
796
 
797
797
  // src/components/DataGridCell.tsx
@@ -5135,68 +5135,15 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
5135
5135
  var import_clsx35 = __toESM(require("clsx"), 1);
5136
5136
  var import_jsx_runtime53 = require("react/jsx-runtime");
5137
5137
 
5138
- // src/components/PDFViewer/index.tsx
5139
- var import_react35 = require("react");
5140
-
5141
- // src/components/PDFViewer/PDFElement.tsx
5142
- var import_react34 = require("react");
5143
-
5144
- // src/components/Spinner.tsx
5145
- var import_jsx_runtime54 = require("react/jsx-runtime");
5146
- var Spinner = ({ size = "small", testid }) => {
5147
- const dimension = size === "large" ? 48 : 24;
5148
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5149
- "svg",
5150
- {
5151
- "data-testid": testid,
5152
- width: dimension,
5153
- height: dimension,
5154
- viewBox: "0 0 24 24",
5155
- xmlns: "http://www.w3.org/2000/svg",
5156
- fill: "#1D1E1E",
5157
- className: "spinner",
5158
- "aria-label": "Loading",
5159
- children: [
5160
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
5161
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
5162
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
5163
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
5164
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
5165
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
5166
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
5167
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
5168
- ]
5169
- }
5170
- );
5171
- };
5172
- Spinner.displayName = "Spinner";
5173
-
5174
- // src/components/PDFViewer/PDFPage.tsx
5138
+ // src/components/ListGroup.tsx
5175
5139
  var import_react33 = require("react");
5176
- var import_jsx_runtime55 = require("react/jsx-runtime");
5177
-
5178
- // src/components/PDFViewer/PDFElement.tsx
5179
5140
  var import_clsx36 = __toESM(require("clsx"), 1);
5180
- var import_jsx_runtime56 = require("react/jsx-runtime");
5181
-
5182
- // src/components/PDFViewer/DownloadIcon.tsx
5183
- var import_jsx_runtime57 = require("react/jsx-runtime");
5184
-
5185
- // src/components/PDFViewer/PDFNavigation.tsx
5186
- var import_jsx_runtime58 = require("react/jsx-runtime");
5187
-
5188
- // src/components/PDFViewer/index.tsx
5189
- var import_jsx_runtime59 = require("react/jsx-runtime");
5190
-
5191
- // src/components/ListGroup.tsx
5192
- var import_react36 = require("react");
5193
- var import_clsx37 = __toESM(require("clsx"), 1);
5194
- var import_jsx_runtime60 = require("react/jsx-runtime");
5141
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5195
5142
 
5196
5143
  // src/components/Pagination.tsx
5197
- var import_react37 = require("react");
5198
- var import_clsx38 = __toESM(require("clsx"), 1);
5199
- var import_jsx_runtime61 = require("react/jsx-runtime");
5144
+ var import_react34 = require("react");
5145
+ var import_clsx37 = __toESM(require("clsx"), 1);
5146
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5200
5147
  var Pagination = ({
5201
5148
  totalPages,
5202
5149
  currentPage,
@@ -5206,7 +5153,7 @@ var Pagination = ({
5206
5153
  className,
5207
5154
  disabled
5208
5155
  }) => {
5209
- const goTo = (0, import_react37.useCallback)(
5156
+ const goTo = (0, import_react34.useCallback)(
5210
5157
  (page) => {
5211
5158
  if (disabled) return;
5212
5159
  onPageChange(page);
@@ -5223,7 +5170,7 @@ var Pagination = ({
5223
5170
  goTo(currentPage + 1);
5224
5171
  }
5225
5172
  };
5226
- const pageTokens = (0, import_react37.useMemo)(() => {
5173
+ const pageTokens = (0, import_react34.useMemo)(() => {
5227
5174
  if (totalPages <= 5) {
5228
5175
  return Array.from({ length: totalPages }, (_, i) => i + 1);
5229
5176
  }
@@ -5260,7 +5207,7 @@ var Pagination = ({
5260
5207
  return tokens;
5261
5208
  }, [totalPages, currentPage]);
5262
5209
  if (totalPages <= 1) return null;
5263
- const buttonClass = (0, import_clsx38.default)(
5210
+ const buttonClass = (0, import_clsx37.default)(
5264
5211
  "cursor-pointer disabled:cursor-default",
5265
5212
  paddingUsingComponentGap,
5266
5213
  "w-8 h-8",
@@ -5271,14 +5218,14 @@ var Pagination = ({
5271
5218
  "focus:bg-background-grouped-secondary-normal focus:outline-0",
5272
5219
  "disabled:bg-transparent disabled:text-text-action-primary-disabled"
5273
5220
  );
5274
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5221
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5275
5222
  "nav",
5276
5223
  {
5277
5224
  id,
5278
5225
  "data-testid": testid,
5279
5226
  "aria-label": "Pagination",
5280
5227
  onKeyDown: handleKey,
5281
- className: (0, import_clsx38.default)(
5228
+ className: (0, import_clsx37.default)(
5282
5229
  "flex items-center",
5283
5230
  "border border-border-primary-normal",
5284
5231
  "bg-background-grouped-primary-normal",
@@ -5286,19 +5233,19 @@ var Pagination = ({
5286
5233
  className
5287
5234
  ),
5288
5235
  children: [
5289
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5236
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5290
5237
  "button",
5291
5238
  {
5292
5239
  disabled: disabled || currentPage <= 1,
5293
5240
  "aria-label": "Previous page",
5294
5241
  onClick: () => goTo(currentPage - 1),
5295
- className: (0, import_clsx38.default)(buttonClass, "border-r-1 border-border-primary-normal"),
5296
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "keyboard_arrow_left" })
5242
+ className: (0, import_clsx37.default)(buttonClass, "border-r-1 border-border-primary-normal"),
5243
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_left" })
5297
5244
  }
5298
5245
  ),
5299
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { className: (0, import_clsx38.default)("flex items-center"), children: pageTokens.map((token, index) => {
5246
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
5300
5247
  if (token === "ellipsis") {
5301
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5248
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5302
5249
  "li",
5303
5250
  {
5304
5251
  className: "w-8 h-8 select-none text-text-action-primary-disabled",
@@ -5308,29 +5255,29 @@ var Pagination = ({
5308
5255
  );
5309
5256
  }
5310
5257
  const selected = token === currentPage;
5311
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5258
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5312
5259
  "button",
5313
5260
  {
5314
5261
  "aria-label": `Page ${token}`,
5315
5262
  "aria-current": selected ? "page" : void 0,
5316
5263
  disabled,
5317
5264
  onClick: () => goTo(token),
5318
- className: (0, import_clsx38.default)(
5265
+ className: (0, import_clsx37.default)(
5319
5266
  buttonClass,
5320
5267
  selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
5321
5268
  ),
5322
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Subheader, { align: "center", weight: "bold", children: token })
5269
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Subheader, { align: "center", weight: "bold", children: token })
5323
5270
  }
5324
5271
  ) }, token);
5325
5272
  }) }),
5326
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5273
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5327
5274
  "button",
5328
5275
  {
5329
5276
  disabled: disabled || currentPage >= totalPages,
5330
5277
  "aria-label": "Next page",
5331
5278
  onClick: () => goTo(currentPage + 1),
5332
- className: (0, import_clsx38.default)(buttonClass, "border-l-1 border-border-primary-normal"),
5333
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "keyboard_arrow_right" })
5279
+ className: (0, import_clsx37.default)(buttonClass, "border-l-1 border-border-primary-normal"),
5280
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_right" })
5334
5281
  }
5335
5282
  )
5336
5283
  ]
@@ -5340,25 +5287,25 @@ var Pagination = ({
5340
5287
  Pagination.displayName = "Pagination";
5341
5288
 
5342
5289
  // src/components/SkeletonParagraph.tsx
5343
- var import_jsx_runtime62 = require("react/jsx-runtime");
5290
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5344
5291
 
5345
5292
  // src/components/EmptyCartIcon.tsx
5346
- var import_jsx_runtime63 = require("react/jsx-runtime");
5293
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5347
5294
 
5348
5295
  // src/components/SearchResultImage/index.tsx
5349
- var import_react38 = require("react");
5350
- var import_jsx_runtime64 = require("react/jsx-runtime");
5296
+ var import_react35 = require("react");
5297
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5351
5298
 
5352
5299
  // src/components/Alert.tsx
5353
- var import_clsx39 = __toESM(require("clsx"), 1);
5354
- var import_react39 = require("react");
5355
- var import_jsx_runtime65 = require("react/jsx-runtime");
5300
+ var import_clsx38 = __toESM(require("clsx"), 1);
5301
+ var import_react36 = require("react");
5302
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5356
5303
 
5357
5304
  // src/components/OrderCheckIcon.tsx
5358
- var import_jsx_runtime66 = require("react/jsx-runtime");
5305
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5359
5306
 
5360
5307
  // src/components/CalendarRange.tsx
5361
- var import_jsx_runtime67 = require("react/jsx-runtime");
5308
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5362
5309
  function DateCell(_a) {
5363
5310
  var _b = _a, {
5364
5311
  date,
@@ -5393,12 +5340,12 @@ function DateCell(_a) {
5393
5340
  "id",
5394
5341
  "testid"
5395
5342
  ]);
5396
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5343
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5397
5344
  "span",
5398
5345
  __spreadProps(__spreadValues({}, props), {
5399
5346
  id,
5400
5347
  "data-testid": testid,
5401
- className: (0, import_clsx40.default)(
5348
+ className: (0, import_clsx39.default)(
5402
5349
  "flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
5403
5350
  typography.caption,
5404
5351
  cellPadding,
@@ -5469,20 +5416,20 @@ function CalendarRange({
5469
5416
  const fromDate = parseDate(from);
5470
5417
  const toDate = parseDate(to);
5471
5418
  const today = import_polyfill.Temporal.Now.plainDateISO();
5472
- const [baseMonth, setBaseMonth] = (0, import_react40.useState)(
5419
+ const [baseMonth, setBaseMonth] = (0, import_react37.useState)(
5473
5420
  fromDate != null ? fromDate : today.with({ day: 1 })
5474
5421
  );
5475
- const [selecting, setSelecting] = (0, import_react40.useState)("from");
5476
- const [pendingFrom, setPendingFrom] = (0, import_react40.useState)(void 0);
5477
- const [hoveredDate, setHoveredDate] = (0, import_react40.useState)(void 0);
5478
- (0, import_react40.useEffect)(() => {
5422
+ const [selecting, setSelecting] = (0, import_react37.useState)("from");
5423
+ const [pendingFrom, setPendingFrom] = (0, import_react37.useState)(void 0);
5424
+ const [hoveredDate, setHoveredDate] = (0, import_react37.useState)(void 0);
5425
+ (0, import_react37.useEffect)(() => {
5479
5426
  if (fromDate) {
5480
5427
  setBaseMonth(fromDate.with({ day: 1 }));
5481
5428
  } else if (toDate) {
5482
5429
  setBaseMonth(toDate.with({ day: 1 }));
5483
5430
  }
5484
5431
  }, [from, to]);
5485
- (0, import_react40.useEffect)(() => {
5432
+ (0, import_react37.useEffect)(() => {
5486
5433
  if (fromDate && toDate) {
5487
5434
  setSelecting("from");
5488
5435
  setPendingFrom(void 0);
@@ -5549,12 +5496,12 @@ function CalendarRange({
5549
5496
  }
5550
5497
  return false;
5551
5498
  }
5552
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5499
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5553
5500
  "div",
5554
5501
  {
5555
5502
  id,
5556
5503
  "data-testid": testid,
5557
- className: (0, import_clsx40.default)(
5504
+ className: (0, import_clsx39.default)(
5558
5505
  "relative bg-background-grouped-primary-normal rounded-base w-fit",
5559
5506
  layoutPaddding,
5560
5507
  layoutGap,
@@ -5562,15 +5509,15 @@ function CalendarRange({
5562
5509
  // baseTransition,
5563
5510
  "overflow-hidden"
5564
5511
  ),
5565
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5512
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5566
5513
  "div",
5567
5514
  {
5568
- className: (0, import_clsx40.default)(
5515
+ className: (0, import_clsx39.default)(
5569
5516
  "flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
5570
5517
  layoutGap
5571
5518
  ),
5572
5519
  children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
5573
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5520
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5574
5521
  CalendarPane,
5575
5522
  {
5576
5523
  getMonthData,
@@ -5628,45 +5575,45 @@ function CalendarPane({
5628
5575
  const years = Array.from({ length: 100 }).map(
5629
5576
  (_, i) => baseMonth.year - 50 + i
5630
5577
  );
5631
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react40.useState)(false);
5632
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react40.useState)(false);
5633
- const monthMenuRef = (0, import_react40.useRef)(null);
5634
- const yearMenuRef = (0, import_react40.useRef)(null);
5578
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react37.useState)(false);
5579
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react37.useState)(false);
5580
+ const monthMenuRef = (0, import_react37.useRef)(null);
5581
+ const yearMenuRef = (0, import_react37.useRef)(null);
5635
5582
  const month = getMonthData(offset);
5636
5583
  const totalCells = 42;
5637
5584
  const emptyCells = month.firstDayOffset;
5638
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react40.default.Fragment, { children: [
5639
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5585
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react37.default.Fragment, { children: [
5586
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5640
5587
  "div",
5641
5588
  {
5642
- className: (0, import_clsx40.default)("flex flex-col"),
5589
+ className: (0, import_clsx39.default)("flex flex-col"),
5643
5590
  children: [
5644
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5591
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5645
5592
  "div",
5646
5593
  {
5647
- className: (0, import_clsx40.default)(
5594
+ className: (0, import_clsx39.default)(
5648
5595
  "flex flex-row items-center justify-between",
5649
5596
  typography.label,
5650
5597
  "text-text-action-primary-normal"
5651
5598
  ),
5652
5599
  children: [
5653
- idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5600
+ idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5654
5601
  "button",
5655
5602
  {
5656
5603
  id: id ? `${id}-prev-month-button` : void 0,
5657
5604
  "data-testid": testid ? `${testid}-prev-month-button` : void 0,
5658
5605
  type: "button",
5659
- className: (0, import_clsx40.default)(
5606
+ className: (0, import_clsx39.default)(
5660
5607
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
5661
5608
  componentPadding
5662
5609
  ),
5663
5610
  "aria-label": "Previous month",
5664
5611
  onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
5665
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_left", size: 24 })
5612
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "chevron_left", size: 24 })
5666
5613
  }
5667
- ) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx40.default)(componentPadding, "mr-1") }),
5668
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
5669
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5614
+ ) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: (0, import_clsx39.default)(componentPadding, "mr-1") }),
5615
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
5616
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5670
5617
  "button",
5671
5618
  {
5672
5619
  ref: (el) => {
@@ -5681,13 +5628,13 @@ function CalendarPane({
5681
5628
  children: month.name
5682
5629
  }
5683
5630
  ),
5684
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5631
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5685
5632
  Menu,
5686
5633
  {
5687
5634
  show: monthMenuOpen,
5688
5635
  positionTo: monthMenuRef,
5689
5636
  setShow: () => setMonthMenuOpen(false),
5690
- children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5637
+ children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5691
5638
  MenuOption,
5692
5639
  {
5693
5640
  selected: baseMonth.month === x + 1,
@@ -5701,7 +5648,7 @@ function CalendarPane({
5701
5648
  ))
5702
5649
  }
5703
5650
  ),
5704
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5651
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5705
5652
  "button",
5706
5653
  {
5707
5654
  ref: (el) => {
@@ -5716,13 +5663,13 @@ function CalendarPane({
5716
5663
  children: month.year
5717
5664
  }
5718
5665
  ),
5719
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5666
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5720
5667
  Menu,
5721
5668
  {
5722
5669
  show: yearMenuOpen,
5723
5670
  positionTo: yearMenuRef,
5724
5671
  setShow: () => setYearMenuOpen(false),
5725
- children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5672
+ children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5726
5673
  MenuOption,
5727
5674
  {
5728
5675
  selected: baseMonth.year === y,
@@ -5737,28 +5684,28 @@ function CalendarPane({
5737
5684
  }
5738
5685
  )
5739
5686
  ] }),
5740
- (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5687
+ (mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5741
5688
  "button",
5742
5689
  {
5743
5690
  id: id ? `${id}-next-month-button` : void 0,
5744
5691
  "data-testid": testid ? `${testid}-next-month-button` : void 0,
5745
5692
  type: "button",
5746
- className: (0, import_clsx40.default)(
5693
+ className: (0, import_clsx39.default)(
5747
5694
  "flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
5748
5695
  componentPadding
5749
5696
  ),
5750
5697
  "aria-label": "Next month",
5751
5698
  onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
5752
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_right", size: 24 })
5699
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "chevron_right", size: 24 })
5753
5700
  }
5754
- ) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx40.default)(componentPadding, "ml-1") })
5701
+ ) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: (0, import_clsx39.default)(componentPadding, "ml-1") })
5755
5702
  ]
5756
5703
  }
5757
5704
  ),
5758
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: (0, import_clsx40.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5705
+ /* @__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)(
5759
5706
  "span",
5760
5707
  {
5761
- className: (0, import_clsx40.default)(
5708
+ className: (0, import_clsx39.default)(
5762
5709
  typography.caption,
5763
5710
  "text-text-secondary-normal text-center",
5764
5711
  "w-10"
@@ -5767,7 +5714,7 @@ function CalendarPane({
5767
5714
  },
5768
5715
  d
5769
5716
  )) }),
5770
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: (0, import_clsx40.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
5717
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_clsx39.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
5771
5718
  const day = i - emptyCells + 1;
5772
5719
  const date = month.date.with({ day: 1 }).add({
5773
5720
  days: i - emptyCells
@@ -5781,7 +5728,7 @@ function CalendarPane({
5781
5728
  const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
5782
5729
  const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
5783
5730
  const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
5784
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5731
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5785
5732
  DateCell,
5786
5733
  {
5787
5734
  id: id ? `${id}-date-${date.toString()}` : void 0,
@@ -5806,10 +5753,10 @@ function CalendarPane({
5806
5753
  ]
5807
5754
  }
5808
5755
  ),
5809
- mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5756
+ mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5810
5757
  "div",
5811
5758
  {
5812
- className: (0, import_clsx40.default)(
5759
+ className: (0, import_clsx39.default)(
5813
5760
  "self-stretch bg-border-primary-normal rounded-base",
5814
5761
  // 1px width, full height, matches Figma divider
5815
5762
  "w-px"
@@ -5820,7 +5767,7 @@ function CalendarPane({
5820
5767
  }
5821
5768
 
5822
5769
  // src/components/DateRangeInput.tsx
5823
- var import_jsx_runtime68 = require("react/jsx-runtime");
5770
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5824
5771
  var DateRangeInput = (_a) => {
5825
5772
  var _b = _a, {
5826
5773
  id,
@@ -5849,19 +5796,19 @@ var DateRangeInput = (_a) => {
5849
5796
  "isDateAvailable",
5850
5797
  "onPendingFromChange"
5851
5798
  ]);
5852
- const [visible, setVisible] = (0, import_react41.useState)(false);
5853
- const [inputValue, setInputValue] = (0, import_react41.useState)("");
5854
- const [isTyping, setIsTyping] = (0, import_react41.useState)(false);
5855
- const popoverRef = (0, import_react41.useRef)(null);
5856
- const rootRef = (0, import_react41.useRef)(null);
5857
- const triggerRef = (0, import_react41.useRef)(null);
5858
- const [calendarPosition, setCalendarPosition] = (0, import_react41.useState)({
5799
+ const [visible, setVisible] = (0, import_react38.useState)(false);
5800
+ const [inputValue, setInputValue] = (0, import_react38.useState)("");
5801
+ const [isTyping, setIsTyping] = (0, import_react38.useState)(false);
5802
+ const popoverRef = (0, import_react38.useRef)(null);
5803
+ const rootRef = (0, import_react38.useRef)(null);
5804
+ const triggerRef = (0, import_react38.useRef)(null);
5805
+ const [calendarPosition, setCalendarPosition] = (0, import_react38.useState)({
5859
5806
  top: 0,
5860
5807
  left: 0,
5861
5808
  width: 0
5862
5809
  });
5863
5810
  const [from, to] = value.split("|");
5864
- (0, import_react41.useEffect)(() => {
5811
+ (0, import_react38.useEffect)(() => {
5865
5812
  if (!isTyping) {
5866
5813
  const displayValue = formatDisplayValue2(from, to);
5867
5814
  if (displayValue) {
@@ -5869,7 +5816,7 @@ var DateRangeInput = (_a) => {
5869
5816
  }
5870
5817
  }
5871
5818
  }, [from, to, isTyping, disableRange]);
5872
- (0, import_react41.useLayoutEffect)(() => {
5819
+ (0, import_react38.useLayoutEffect)(() => {
5873
5820
  if (visible) {
5874
5821
  updatePosition();
5875
5822
  }
@@ -5884,7 +5831,7 @@ var DateRangeInput = (_a) => {
5884
5831
  });
5885
5832
  }
5886
5833
  };
5887
- (0, import_react41.useEffect)(() => {
5834
+ (0, import_react38.useEffect)(() => {
5888
5835
  updatePosition();
5889
5836
  const resizeObserver = new ResizeObserver(updatePosition);
5890
5837
  if (triggerRef.current) {
@@ -5896,7 +5843,7 @@ var DateRangeInput = (_a) => {
5896
5843
  window.removeEventListener("scroll", updatePosition);
5897
5844
  };
5898
5845
  }, []);
5899
- (0, import_react41.useEffect)(() => {
5846
+ (0, import_react38.useEffect)(() => {
5900
5847
  const handleKeyDown2 = (event) => {
5901
5848
  var _a2;
5902
5849
  if (event.key === "Escape" && popoverRef.current) {
@@ -5909,7 +5856,7 @@ var DateRangeInput = (_a) => {
5909
5856
  document.removeEventListener("keydown", handleKeyDown2);
5910
5857
  };
5911
5858
  }, []);
5912
- (0, import_react41.useEffect)(() => {
5859
+ (0, import_react38.useEffect)(() => {
5913
5860
  const handleClickOutside = (event) => {
5914
5861
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
5915
5862
  setVisible(false);
@@ -6244,8 +6191,8 @@ var DateRangeInput = (_a) => {
6244
6191
  }
6245
6192
  }
6246
6193
  };
6247
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
6248
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6194
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
6195
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6249
6196
  InputBase,
6250
6197
  __spreadProps(__spreadValues({
6251
6198
  id,
@@ -6259,7 +6206,7 @@ var DateRangeInput = (_a) => {
6259
6206
  placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
6260
6207
  disabled,
6261
6208
  readOnly,
6262
- after: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, { name: "calendar_month" }),
6209
+ after: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: "calendar_month" }),
6263
6210
  onFocus: handleFocus,
6264
6211
  onClick: handleClick,
6265
6212
  onChange: handleInputChange,
@@ -6270,7 +6217,7 @@ var DateRangeInput = (_a) => {
6270
6217
  })
6271
6218
  ),
6272
6219
  visible && !readOnly && (0, import_react_dom5.createPortal)(
6273
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6220
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6274
6221
  "div",
6275
6222
  {
6276
6223
  ref: (el) => {
@@ -6282,7 +6229,7 @@ var DateRangeInput = (_a) => {
6282
6229
  left: `${calendarPosition.left}px`,
6283
6230
  minWidth: `${calendarPosition.width}px`
6284
6231
  },
6285
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6232
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6286
6233
  CalendarRange,
6287
6234
  {
6288
6235
  id: id ? `${id}-calendar` : void 0,
@@ -1,16 +1,12 @@
1
1
  import {
2
2
  CalendarRange
3
- } from "../chunk-C2YTC2CN.js";
3
+ } from "../chunk-JWVZOEF5.js";
4
4
  import "../chunk-M7INAUAJ.js";
5
5
  import "../chunk-ELXVDRWS.js";
6
6
  import "../chunk-3UUCDNX3.js";
7
7
  import "../chunk-FJRYHJUV.js";
8
8
  import "../chunk-BQNPOGD5.js";
9
9
  import "../chunk-Y5GD2FJA.js";
10
- import "../chunk-6XLESQ2U.js";
11
- import "../chunk-VOSQMHNF.js";
12
- import "../chunk-YJGDVWTH.js";
13
- import "../chunk-S5ZJ3Q7P.js";
14
10
  import "../chunk-MBZ55T2D.js";
15
11
  import "../chunk-2IKT6IHB.js";
16
12
  import "../chunk-YCDDBSVU.js";
@@ -20,7 +16,6 @@ import "../chunk-5YNEY3WO.js";
20
16
  import "../chunk-5IFPG6TS.js";
21
17
  import "../chunk-AJ5M6MVX.js";
22
18
  import "../chunk-UI7P5J5S.js";
23
- import "../chunk-56RPZLV7.js";
24
19
  import "../chunk-MDB26F6T.js";
25
20
  import "../chunk-AT4AWD6B.js";
26
21
  import "../chunk-EWGHVZL5.js";
@@ -36,7 +31,6 @@ import "../chunk-CMMQTIVM.js";
36
31
  import "../chunk-AG43RS4Q.js";
37
32
  import "../chunk-AKJUBFJK.js";
38
33
  import "../chunk-SUSUNSVZ.js";
39
- import "../chunk-SBRRNFOP.js";
40
34
  import "../chunk-Y2GK27RX.js";
41
35
  import "../chunk-QVWYTQKL.js";
42
36
  import "../chunk-F6RZ7MUE.js";