@dmsi/wedgekit-react 0.0.850 → 0.0.851
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.
- package/dist/chunk-SZ47M32R.js +13 -0
- package/dist/components/CalendarRange.cjs +29 -25
- package/dist/components/CalendarRange.css +17 -0
- package/dist/components/CalendarRange.js +5 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +6 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +17 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +5 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +13 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +17 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +5 -4
- package/dist/components/DataGrid/PinnedColumns.cjs +24 -20
- package/dist/components/DataGrid/PinnedColumns.css +17 -0
- package/dist/components/DataGrid/PinnedColumns.js +5 -4
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +9 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.css +17 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +5 -4
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +11 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +17 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +5 -4
- package/dist/components/DataGrid/TableBody/index.cjs +24 -20
- package/dist/components/DataGrid/TableBody/index.css +17 -0
- package/dist/components/DataGrid/TableBody/index.js +5 -4
- package/dist/components/DataGrid/index.cjs +84 -80
- package/dist/components/DataGrid/index.css +17 -0
- package/dist/components/DataGrid/index.js +5 -4
- package/dist/components/DataGrid/utils.cjs +7 -3
- package/dist/components/DataGrid/utils.css +17 -0
- package/dist/components/DataGrid/utils.js +5 -4
- package/dist/components/DateInput.cjs +35 -31
- package/dist/components/DateInput.css +17 -0
- package/dist/components/DateInput.js +5 -4
- package/dist/components/DateRangeInput.cjs +35 -31
- package/dist/components/DateRangeInput.css +17 -0
- package/dist/components/DateRangeInput.js +5 -4
- package/dist/components/EmblaCarousel/index.cjs +47 -0
- package/dist/components/EmblaCarousel/index.js +9 -0
- package/dist/components/MobileDataGrid/ColumnList.css +17 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +17 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +5 -4
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +17 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +5 -4
- package/dist/components/MobileDataGrid/index.cjs +93 -89
- package/dist/components/MobileDataGrid/index.css +17 -0
- package/dist/components/MobileDataGrid/index.js +5 -4
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/index.cjs +10 -0
- package/dist/components/index.css +17 -0
- package/dist/components/index.js +8 -4
- package/dist/index.css +17 -0
- package/package.json +3 -1
- package/dist/{chunk-GQDUOL5Y.js → chunk-C5DKGJ4E.js} +3 -3
- /package/dist/{chunk-UIF3AIAT.js → chunk-ILHEM6BK.js} +0 -0
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
DataGrid,
|
|
4
4
|
DataGrid_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-ILHEM6BK.js";
|
|
6
6
|
import "../../chunk-WJJB7IJZ.js";
|
|
7
|
-
import "../../chunk-M7INAUAJ.js";
|
|
8
7
|
import "../../chunk-Q4YDNW7N.js";
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-M7INAUAJ.js";
|
|
9
|
+
import "../../chunk-C5DKGJ4E.js";
|
|
10
|
+
import "../../chunk-2IKT6IHB.js";
|
|
10
11
|
import "../../chunk-YCDDBSVU.js";
|
|
11
12
|
import "../../chunk-3X3Y4TMS.js";
|
|
12
13
|
import "../../chunk-BQNPOGD5.js";
|
|
13
14
|
import "../../chunk-Y5GD2FJA.js";
|
|
14
15
|
import "../../chunk-MBZ55T2D.js";
|
|
15
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-SZ47M32R.js";
|
|
16
17
|
import "../../chunk-B4AE3DCA.js";
|
|
17
18
|
import "../../chunk-FP3Y5JJN.js";
|
|
18
19
|
import "../../chunk-5IFPG6TS.js";
|
|
@@ -6047,17 +6047,21 @@ var import_clsx41 = __toESM(require("clsx"), 1);
|
|
|
6047
6047
|
var import_react40 = require("react");
|
|
6048
6048
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6049
6049
|
|
|
6050
|
-
// src/components/
|
|
6050
|
+
// src/components/EmblaCarousel/index.tsx
|
|
6051
|
+
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
6051
6052
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6053
|
+
|
|
6054
|
+
// src/components/DataGrid/utils.tsx
|
|
6055
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6052
6056
|
function getSortIcon(sort, nextSort = false) {
|
|
6053
6057
|
const iconClassName = (0, import_clsx42.default)(
|
|
6054
6058
|
"text-icon-on-action-primary-normal",
|
|
6055
6059
|
nextSort && "hidden group-hover:block"
|
|
6056
6060
|
);
|
|
6057
6061
|
if (sort === "asc")
|
|
6058
|
-
return /* @__PURE__ */ (0,
|
|
6062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { size: 16, className: iconClassName, name: "arrow_upward" });
|
|
6059
6063
|
if (sort === "desc")
|
|
6060
|
-
return /* @__PURE__ */ (0,
|
|
6064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { size: 16, className: iconClassName, name: "arrow_downward" });
|
|
6061
6065
|
return null;
|
|
6062
6066
|
}
|
|
6063
6067
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -632,6 +632,9 @@
|
|
|
632
632
|
.m-4 {
|
|
633
633
|
margin: calc(var(--spacing) * 4);
|
|
634
634
|
}
|
|
635
|
+
.m-auto {
|
|
636
|
+
margin: auto;
|
|
637
|
+
}
|
|
635
638
|
.m-mobile-container-padding {
|
|
636
639
|
margin: var(--spacing-mobile-container-padding);
|
|
637
640
|
}
|
|
@@ -1031,6 +1034,14 @@
|
|
|
1031
1034
|
.cursor-pointer {
|
|
1032
1035
|
cursor: pointer;
|
|
1033
1036
|
}
|
|
1037
|
+
.touch-pan-y {
|
|
1038
|
+
--tw-pan-y: pan-y;
|
|
1039
|
+
touch-action: var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,);
|
|
1040
|
+
}
|
|
1041
|
+
.touch-pinch-zoom {
|
|
1042
|
+
--tw-pinch-zoom: pinch-zoom;
|
|
1043
|
+
touch-action: var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,);
|
|
1044
|
+
}
|
|
1034
1045
|
.resize {
|
|
1035
1046
|
resize: both;
|
|
1036
1047
|
}
|
|
@@ -5254,6 +5265,9 @@ body {
|
|
|
5254
5265
|
@property --tw-rotate-z { syntax: "*"; inherits: false; }
|
|
5255
5266
|
@property --tw-skew-x { syntax: "*"; inherits: false; }
|
|
5256
5267
|
@property --tw-skew-y { syntax: "*"; inherits: false; }
|
|
5268
|
+
@property --tw-pan-x { syntax: "*"; inherits: false; }
|
|
5269
|
+
@property --tw-pan-y { syntax: "*"; inherits: false; }
|
|
5270
|
+
@property --tw-pinch-zoom { syntax: "*"; inherits: false; }
|
|
5257
5271
|
@property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
5258
5272
|
@property --tw-space-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
5259
5273
|
@property --tw-divide-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
@@ -5328,6 +5342,9 @@ body {
|
|
|
5328
5342
|
--tw-rotate-z: initial;
|
|
5329
5343
|
--tw-skew-x: initial;
|
|
5330
5344
|
--tw-skew-y: initial;
|
|
5345
|
+
--tw-pan-x: initial;
|
|
5346
|
+
--tw-pan-y: initial;
|
|
5347
|
+
--tw-pinch-zoom: initial;
|
|
5331
5348
|
--tw-space-y-reverse: 0;
|
|
5332
5349
|
--tw-space-x-reverse: 0;
|
|
5333
5350
|
--tw-divide-x-reverse: 0;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSortIcon
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-ILHEM6BK.js";
|
|
4
4
|
import "../../chunk-WJJB7IJZ.js";
|
|
5
|
-
import "../../chunk-M7INAUAJ.js";
|
|
6
5
|
import "../../chunk-Q4YDNW7N.js";
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-M7INAUAJ.js";
|
|
7
|
+
import "../../chunk-C5DKGJ4E.js";
|
|
8
|
+
import "../../chunk-2IKT6IHB.js";
|
|
8
9
|
import "../../chunk-YCDDBSVU.js";
|
|
9
10
|
import "../../chunk-3X3Y4TMS.js";
|
|
10
11
|
import "../../chunk-BQNPOGD5.js";
|
|
11
12
|
import "../../chunk-Y5GD2FJA.js";
|
|
12
13
|
import "../../chunk-MBZ55T2D.js";
|
|
13
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-SZ47M32R.js";
|
|
14
15
|
import "../../chunk-B4AE3DCA.js";
|
|
15
16
|
import "../../chunk-FP3Y5JJN.js";
|
|
16
17
|
import "../../chunk-5IFPG6TS.js";
|
|
@@ -5363,8 +5363,12 @@ var import_clsx41 = __toESM(require("clsx"), 1);
|
|
|
5363
5363
|
var import_react38 = require("react");
|
|
5364
5364
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5365
5365
|
|
|
5366
|
-
// src/components/
|
|
5366
|
+
// src/components/EmblaCarousel/index.tsx
|
|
5367
|
+
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
5367
5368
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5369
|
+
|
|
5370
|
+
// src/components/CalendarRange.tsx
|
|
5371
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5368
5372
|
function DateCell(_a) {
|
|
5369
5373
|
var _b = _a, {
|
|
5370
5374
|
date,
|
|
@@ -5399,7 +5403,7 @@ function DateCell(_a) {
|
|
|
5399
5403
|
"id",
|
|
5400
5404
|
"testid"
|
|
5401
5405
|
]);
|
|
5402
|
-
return /* @__PURE__ */ (0,
|
|
5406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5403
5407
|
"span",
|
|
5404
5408
|
__spreadProps(__spreadValues({}, props), {
|
|
5405
5409
|
id,
|
|
@@ -5555,7 +5559,7 @@ function CalendarRange({
|
|
|
5555
5559
|
}
|
|
5556
5560
|
return false;
|
|
5557
5561
|
}
|
|
5558
|
-
return /* @__PURE__ */ (0,
|
|
5562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5559
5563
|
"div",
|
|
5560
5564
|
{
|
|
5561
5565
|
id,
|
|
@@ -5568,7 +5572,7 @@ function CalendarRange({
|
|
|
5568
5572
|
// baseTransition,
|
|
5569
5573
|
"overflow-hidden"
|
|
5570
5574
|
),
|
|
5571
|
-
children: /* @__PURE__ */ (0,
|
|
5575
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5572
5576
|
"div",
|
|
5573
5577
|
{
|
|
5574
5578
|
className: (0, import_clsx42.default)(
|
|
@@ -5576,7 +5580,7 @@ function CalendarRange({
|
|
|
5576
5580
|
layoutGap
|
|
5577
5581
|
),
|
|
5578
5582
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
5579
|
-
return /* @__PURE__ */ (0,
|
|
5583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5580
5584
|
CalendarPane,
|
|
5581
5585
|
{
|
|
5582
5586
|
getMonthData,
|
|
@@ -5641,13 +5645,13 @@ function CalendarPane({
|
|
|
5641
5645
|
const month = getMonthData(offset);
|
|
5642
5646
|
const totalCells = 42;
|
|
5643
5647
|
const emptyCells = month.firstDayOffset;
|
|
5644
|
-
return /* @__PURE__ */ (0,
|
|
5645
|
-
/* @__PURE__ */ (0,
|
|
5648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react39.default.Fragment, { children: [
|
|
5649
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
5646
5650
|
"div",
|
|
5647
5651
|
{
|
|
5648
5652
|
className: (0, import_clsx42.default)("flex flex-col"),
|
|
5649
5653
|
children: [
|
|
5650
|
-
/* @__PURE__ */ (0,
|
|
5654
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
5651
5655
|
"div",
|
|
5652
5656
|
{
|
|
5653
5657
|
className: (0, import_clsx42.default)(
|
|
@@ -5656,7 +5660,7 @@ function CalendarPane({
|
|
|
5656
5660
|
"text-text-action-primary-normal"
|
|
5657
5661
|
),
|
|
5658
5662
|
children: [
|
|
5659
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
5663
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5660
5664
|
"button",
|
|
5661
5665
|
{
|
|
5662
5666
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
@@ -5668,11 +5672,11 @@ function CalendarPane({
|
|
|
5668
5672
|
),
|
|
5669
5673
|
"aria-label": "Previous month",
|
|
5670
5674
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5671
|
-
children: /* @__PURE__ */ (0,
|
|
5675
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5672
5676
|
}
|
|
5673
|
-
) : /* @__PURE__ */ (0,
|
|
5674
|
-
/* @__PURE__ */ (0,
|
|
5675
|
-
/* @__PURE__ */ (0,
|
|
5677
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: (0, import_clsx42.default)(componentPadding, "mr-1") }),
|
|
5678
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5679
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5676
5680
|
"button",
|
|
5677
5681
|
{
|
|
5678
5682
|
ref: (el) => {
|
|
@@ -5687,13 +5691,13 @@ function CalendarPane({
|
|
|
5687
5691
|
children: month.name
|
|
5688
5692
|
}
|
|
5689
5693
|
),
|
|
5690
|
-
/* @__PURE__ */ (0,
|
|
5694
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5691
5695
|
Menu,
|
|
5692
5696
|
{
|
|
5693
5697
|
show: monthMenuOpen,
|
|
5694
5698
|
positionTo: monthMenuRef,
|
|
5695
5699
|
setShow: () => setMonthMenuOpen(false),
|
|
5696
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5700
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5697
5701
|
MenuOption,
|
|
5698
5702
|
{
|
|
5699
5703
|
selected: baseMonth.month === x + 1,
|
|
@@ -5707,7 +5711,7 @@ function CalendarPane({
|
|
|
5707
5711
|
))
|
|
5708
5712
|
}
|
|
5709
5713
|
),
|
|
5710
|
-
/* @__PURE__ */ (0,
|
|
5714
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5711
5715
|
"button",
|
|
5712
5716
|
{
|
|
5713
5717
|
ref: (el) => {
|
|
@@ -5722,13 +5726,13 @@ function CalendarPane({
|
|
|
5722
5726
|
children: month.year
|
|
5723
5727
|
}
|
|
5724
5728
|
),
|
|
5725
|
-
/* @__PURE__ */ (0,
|
|
5729
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5726
5730
|
Menu,
|
|
5727
5731
|
{
|
|
5728
5732
|
show: yearMenuOpen,
|
|
5729
5733
|
positionTo: yearMenuRef,
|
|
5730
5734
|
setShow: () => setYearMenuOpen(false),
|
|
5731
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5735
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5732
5736
|
MenuOption,
|
|
5733
5737
|
{
|
|
5734
5738
|
selected: baseMonth.year === y,
|
|
@@ -5743,7 +5747,7 @@ function CalendarPane({
|
|
|
5743
5747
|
}
|
|
5744
5748
|
)
|
|
5745
5749
|
] }),
|
|
5746
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5750
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5747
5751
|
"button",
|
|
5748
5752
|
{
|
|
5749
5753
|
id: id ? `${id}-next-month-button` : void 0,
|
|
@@ -5755,13 +5759,13 @@ function CalendarPane({
|
|
|
5755
5759
|
),
|
|
5756
5760
|
"aria-label": "Next month",
|
|
5757
5761
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
5758
|
-
children: /* @__PURE__ */ (0,
|
|
5762
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
5759
5763
|
}
|
|
5760
|
-
) : /* @__PURE__ */ (0,
|
|
5764
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: (0, import_clsx42.default)(componentPadding, "ml-1") })
|
|
5761
5765
|
]
|
|
5762
5766
|
}
|
|
5763
5767
|
),
|
|
5764
|
-
/* @__PURE__ */ (0,
|
|
5768
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: (0, import_clsx42.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5765
5769
|
"span",
|
|
5766
5770
|
{
|
|
5767
5771
|
className: (0, import_clsx42.default)(
|
|
@@ -5773,7 +5777,7 @@ function CalendarPane({
|
|
|
5773
5777
|
},
|
|
5774
5778
|
d
|
|
5775
5779
|
)) }),
|
|
5776
|
-
/* @__PURE__ */ (0,
|
|
5780
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: (0, import_clsx42.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
5777
5781
|
const day = i - emptyCells + 1;
|
|
5778
5782
|
const date = month.date.with({ day: 1 }).add({
|
|
5779
5783
|
days: i - emptyCells
|
|
@@ -5787,7 +5791,7 @@ function CalendarPane({
|
|
|
5787
5791
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
5788
5792
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
5789
5793
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
5790
|
-
return /* @__PURE__ */ (0,
|
|
5794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5791
5795
|
DateCell,
|
|
5792
5796
|
{
|
|
5793
5797
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -5812,7 +5816,7 @@ function CalendarPane({
|
|
|
5812
5816
|
]
|
|
5813
5817
|
}
|
|
5814
5818
|
),
|
|
5815
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
5819
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5816
5820
|
"div",
|
|
5817
5821
|
{
|
|
5818
5822
|
className: (0, import_clsx42.default)(
|
|
@@ -5826,7 +5830,7 @@ function CalendarPane({
|
|
|
5826
5830
|
}
|
|
5827
5831
|
|
|
5828
5832
|
// src/components/DateInput.tsx
|
|
5829
|
-
var
|
|
5833
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5830
5834
|
var DateInput = (_a) => {
|
|
5831
5835
|
var _b = _a, {
|
|
5832
5836
|
id,
|
|
@@ -5994,8 +5998,8 @@ var DateInput = (_a) => {
|
|
|
5994
5998
|
}
|
|
5995
5999
|
}
|
|
5996
6000
|
};
|
|
5997
|
-
return /* @__PURE__ */ (0,
|
|
5998
|
-
/* @__PURE__ */ (0,
|
|
6001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative", children: [
|
|
6002
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5999
6003
|
InputBase,
|
|
6000
6004
|
__spreadProps(__spreadValues({
|
|
6001
6005
|
id,
|
|
@@ -6009,7 +6013,7 @@ var DateInput = (_a) => {
|
|
|
6009
6013
|
placeholder,
|
|
6010
6014
|
disabled,
|
|
6011
6015
|
readOnly,
|
|
6012
|
-
after: /* @__PURE__ */ (0,
|
|
6016
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "calendar_month" }),
|
|
6013
6017
|
onFocus: disableManualInput ? handleIgnoreFocus : handleFocus,
|
|
6014
6018
|
onClick: handleClick,
|
|
6015
6019
|
onChange: handleInputChange,
|
|
@@ -6020,7 +6024,7 @@ var DateInput = (_a) => {
|
|
|
6020
6024
|
})
|
|
6021
6025
|
),
|
|
6022
6026
|
visible && !readOnly && (0, import_react_dom4.createPortal)(
|
|
6023
|
-
/* @__PURE__ */ (0,
|
|
6027
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6024
6028
|
"div",
|
|
6025
6029
|
{
|
|
6026
6030
|
ref: (el) => {
|
|
@@ -6032,7 +6036,7 @@ var DateInput = (_a) => {
|
|
|
6032
6036
|
left: `${calendarPosition.left}px`,
|
|
6033
6037
|
minWidth: `${calendarPosition.width}px`
|
|
6034
6038
|
},
|
|
6035
|
-
children: /* @__PURE__ */ (0,
|
|
6039
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6036
6040
|
CalendarRange,
|
|
6037
6041
|
{
|
|
6038
6042
|
id: id ? `${id}-calendar` : void 0,
|
|
@@ -632,6 +632,9 @@
|
|
|
632
632
|
.m-4 {
|
|
633
633
|
margin: calc(var(--spacing) * 4);
|
|
634
634
|
}
|
|
635
|
+
.m-auto {
|
|
636
|
+
margin: auto;
|
|
637
|
+
}
|
|
635
638
|
.m-mobile-container-padding {
|
|
636
639
|
margin: var(--spacing-mobile-container-padding);
|
|
637
640
|
}
|
|
@@ -1031,6 +1034,14 @@
|
|
|
1031
1034
|
.cursor-pointer {
|
|
1032
1035
|
cursor: pointer;
|
|
1033
1036
|
}
|
|
1037
|
+
.touch-pan-y {
|
|
1038
|
+
--tw-pan-y: pan-y;
|
|
1039
|
+
touch-action: var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,);
|
|
1040
|
+
}
|
|
1041
|
+
.touch-pinch-zoom {
|
|
1042
|
+
--tw-pinch-zoom: pinch-zoom;
|
|
1043
|
+
touch-action: var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,);
|
|
1044
|
+
}
|
|
1034
1045
|
.resize {
|
|
1035
1046
|
resize: both;
|
|
1036
1047
|
}
|
|
@@ -5254,6 +5265,9 @@ body {
|
|
|
5254
5265
|
@property --tw-rotate-z { syntax: "*"; inherits: false; }
|
|
5255
5266
|
@property --tw-skew-x { syntax: "*"; inherits: false; }
|
|
5256
5267
|
@property --tw-skew-y { syntax: "*"; inherits: false; }
|
|
5268
|
+
@property --tw-pan-x { syntax: "*"; inherits: false; }
|
|
5269
|
+
@property --tw-pan-y { syntax: "*"; inherits: false; }
|
|
5270
|
+
@property --tw-pinch-zoom { syntax: "*"; inherits: false; }
|
|
5257
5271
|
@property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
5258
5272
|
@property --tw-space-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
5259
5273
|
@property --tw-divide-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
@@ -5328,6 +5342,9 @@ body {
|
|
|
5328
5342
|
--tw-rotate-z: initial;
|
|
5329
5343
|
--tw-skew-x: initial;
|
|
5330
5344
|
--tw-skew-y: initial;
|
|
5345
|
+
--tw-pan-x: initial;
|
|
5346
|
+
--tw-pan-y: initial;
|
|
5347
|
+
--tw-pinch-zoom: initial;
|
|
5331
5348
|
--tw-space-y-reverse: 0;
|
|
5332
5349
|
--tw-space-x-reverse: 0;
|
|
5333
5350
|
--tw-divide-x-reverse: 0;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DateInput
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ILHEM6BK.js";
|
|
4
4
|
import "../chunk-WJJB7IJZ.js";
|
|
5
|
-
import "../chunk-M7INAUAJ.js";
|
|
6
5
|
import "../chunk-Q4YDNW7N.js";
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-M7INAUAJ.js";
|
|
7
|
+
import "../chunk-C5DKGJ4E.js";
|
|
8
|
+
import "../chunk-2IKT6IHB.js";
|
|
8
9
|
import "../chunk-YCDDBSVU.js";
|
|
9
10
|
import "../chunk-3X3Y4TMS.js";
|
|
10
11
|
import "../chunk-BQNPOGD5.js";
|
|
11
12
|
import "../chunk-Y5GD2FJA.js";
|
|
12
13
|
import "../chunk-MBZ55T2D.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-SZ47M32R.js";
|
|
14
15
|
import "../chunk-B4AE3DCA.js";
|
|
15
16
|
import "../chunk-FP3Y5JJN.js";
|
|
16
17
|
import "../chunk-5IFPG6TS.js";
|
|
@@ -5611,8 +5611,12 @@ var import_clsx41 = __toESM(require("clsx"), 1);
|
|
|
5611
5611
|
var import_react39 = require("react");
|
|
5612
5612
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5613
5613
|
|
|
5614
|
-
// src/components/
|
|
5614
|
+
// src/components/EmblaCarousel/index.tsx
|
|
5615
|
+
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
5615
5616
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5617
|
+
|
|
5618
|
+
// src/components/CalendarRange.tsx
|
|
5619
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5616
5620
|
function DateCell(_a) {
|
|
5617
5621
|
var _b = _a, {
|
|
5618
5622
|
date,
|
|
@@ -5647,7 +5651,7 @@ function DateCell(_a) {
|
|
|
5647
5651
|
"id",
|
|
5648
5652
|
"testid"
|
|
5649
5653
|
]);
|
|
5650
|
-
return /* @__PURE__ */ (0,
|
|
5654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5651
5655
|
"span",
|
|
5652
5656
|
__spreadProps(__spreadValues({}, props), {
|
|
5653
5657
|
id,
|
|
@@ -5803,7 +5807,7 @@ function CalendarRange({
|
|
|
5803
5807
|
}
|
|
5804
5808
|
return false;
|
|
5805
5809
|
}
|
|
5806
|
-
return /* @__PURE__ */ (0,
|
|
5810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5807
5811
|
"div",
|
|
5808
5812
|
{
|
|
5809
5813
|
id,
|
|
@@ -5816,7 +5820,7 @@ function CalendarRange({
|
|
|
5816
5820
|
// baseTransition,
|
|
5817
5821
|
"overflow-hidden"
|
|
5818
5822
|
),
|
|
5819
|
-
children: /* @__PURE__ */ (0,
|
|
5823
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5820
5824
|
"div",
|
|
5821
5825
|
{
|
|
5822
5826
|
className: (0, import_clsx42.default)(
|
|
@@ -5824,7 +5828,7 @@ function CalendarRange({
|
|
|
5824
5828
|
layoutGap
|
|
5825
5829
|
),
|
|
5826
5830
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
5827
|
-
return /* @__PURE__ */ (0,
|
|
5831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5828
5832
|
CalendarPane,
|
|
5829
5833
|
{
|
|
5830
5834
|
getMonthData,
|
|
@@ -5889,13 +5893,13 @@ function CalendarPane({
|
|
|
5889
5893
|
const month = getMonthData(offset);
|
|
5890
5894
|
const totalCells = 42;
|
|
5891
5895
|
const emptyCells = month.firstDayOffset;
|
|
5892
|
-
return /* @__PURE__ */ (0,
|
|
5893
|
-
/* @__PURE__ */ (0,
|
|
5896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react40.default.Fragment, { children: [
|
|
5897
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5894
5898
|
"div",
|
|
5895
5899
|
{
|
|
5896
5900
|
className: (0, import_clsx42.default)("flex flex-col"),
|
|
5897
5901
|
children: [
|
|
5898
|
-
/* @__PURE__ */ (0,
|
|
5902
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5899
5903
|
"div",
|
|
5900
5904
|
{
|
|
5901
5905
|
className: (0, import_clsx42.default)(
|
|
@@ -5904,7 +5908,7 @@ function CalendarPane({
|
|
|
5904
5908
|
"text-text-action-primary-normal"
|
|
5905
5909
|
),
|
|
5906
5910
|
children: [
|
|
5907
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
5911
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5908
5912
|
"button",
|
|
5909
5913
|
{
|
|
5910
5914
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
@@ -5916,11 +5920,11 @@ function CalendarPane({
|
|
|
5916
5920
|
),
|
|
5917
5921
|
"aria-label": "Previous month",
|
|
5918
5922
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5919
|
-
children: /* @__PURE__ */ (0,
|
|
5923
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5920
5924
|
}
|
|
5921
|
-
) : /* @__PURE__ */ (0,
|
|
5922
|
-
/* @__PURE__ */ (0,
|
|
5923
|
-
/* @__PURE__ */ (0,
|
|
5925
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx42.default)(componentPadding, "mr-1") }),
|
|
5926
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5927
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5924
5928
|
"button",
|
|
5925
5929
|
{
|
|
5926
5930
|
ref: (el) => {
|
|
@@ -5935,13 +5939,13 @@ function CalendarPane({
|
|
|
5935
5939
|
children: month.name
|
|
5936
5940
|
}
|
|
5937
5941
|
),
|
|
5938
|
-
/* @__PURE__ */ (0,
|
|
5942
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5939
5943
|
Menu,
|
|
5940
5944
|
{
|
|
5941
5945
|
show: monthMenuOpen,
|
|
5942
5946
|
positionTo: monthMenuRef,
|
|
5943
5947
|
setShow: () => setMonthMenuOpen(false),
|
|
5944
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5948
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5945
5949
|
MenuOption,
|
|
5946
5950
|
{
|
|
5947
5951
|
selected: baseMonth.month === x + 1,
|
|
@@ -5955,7 +5959,7 @@ function CalendarPane({
|
|
|
5955
5959
|
))
|
|
5956
5960
|
}
|
|
5957
5961
|
),
|
|
5958
|
-
/* @__PURE__ */ (0,
|
|
5962
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5959
5963
|
"button",
|
|
5960
5964
|
{
|
|
5961
5965
|
ref: (el) => {
|
|
@@ -5970,13 +5974,13 @@ function CalendarPane({
|
|
|
5970
5974
|
children: month.year
|
|
5971
5975
|
}
|
|
5972
5976
|
),
|
|
5973
|
-
/* @__PURE__ */ (0,
|
|
5977
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5974
5978
|
Menu,
|
|
5975
5979
|
{
|
|
5976
5980
|
show: yearMenuOpen,
|
|
5977
5981
|
positionTo: yearMenuRef,
|
|
5978
5982
|
setShow: () => setYearMenuOpen(false),
|
|
5979
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5983
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5980
5984
|
MenuOption,
|
|
5981
5985
|
{
|
|
5982
5986
|
selected: baseMonth.year === y,
|
|
@@ -5991,7 +5995,7 @@ function CalendarPane({
|
|
|
5991
5995
|
}
|
|
5992
5996
|
)
|
|
5993
5997
|
] }),
|
|
5994
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5998
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5995
5999
|
"button",
|
|
5996
6000
|
{
|
|
5997
6001
|
id: id ? `${id}-next-month-button` : void 0,
|
|
@@ -6003,13 +6007,13 @@ function CalendarPane({
|
|
|
6003
6007
|
),
|
|
6004
6008
|
"aria-label": "Next month",
|
|
6005
6009
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
6006
|
-
children: /* @__PURE__ */ (0,
|
|
6010
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
6007
6011
|
}
|
|
6008
|
-
) : /* @__PURE__ */ (0,
|
|
6012
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx42.default)(componentPadding, "ml-1") })
|
|
6009
6013
|
]
|
|
6010
6014
|
}
|
|
6011
6015
|
),
|
|
6012
|
-
/* @__PURE__ */ (0,
|
|
6016
|
+
/* @__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)(
|
|
6013
6017
|
"span",
|
|
6014
6018
|
{
|
|
6015
6019
|
className: (0, import_clsx42.default)(
|
|
@@ -6021,7 +6025,7 @@ function CalendarPane({
|
|
|
6021
6025
|
},
|
|
6022
6026
|
d
|
|
6023
6027
|
)) }),
|
|
6024
|
-
/* @__PURE__ */ (0,
|
|
6028
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: (0, import_clsx42.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
6025
6029
|
const day = i - emptyCells + 1;
|
|
6026
6030
|
const date = month.date.with({ day: 1 }).add({
|
|
6027
6031
|
days: i - emptyCells
|
|
@@ -6035,7 +6039,7 @@ function CalendarPane({
|
|
|
6035
6039
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
6036
6040
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
6037
6041
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
6038
|
-
return /* @__PURE__ */ (0,
|
|
6042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6039
6043
|
DateCell,
|
|
6040
6044
|
{
|
|
6041
6045
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -6060,7 +6064,7 @@ function CalendarPane({
|
|
|
6060
6064
|
]
|
|
6061
6065
|
}
|
|
6062
6066
|
),
|
|
6063
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
6067
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6064
6068
|
"div",
|
|
6065
6069
|
{
|
|
6066
6070
|
className: (0, import_clsx42.default)(
|
|
@@ -6074,7 +6078,7 @@ function CalendarPane({
|
|
|
6074
6078
|
}
|
|
6075
6079
|
|
|
6076
6080
|
// src/components/DateRangeInput.tsx
|
|
6077
|
-
var
|
|
6081
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6078
6082
|
var DateRangeInput = (_a) => {
|
|
6079
6083
|
var _b = _a, {
|
|
6080
6084
|
id,
|
|
@@ -6498,8 +6502,8 @@ var DateRangeInput = (_a) => {
|
|
|
6498
6502
|
}
|
|
6499
6503
|
}
|
|
6500
6504
|
};
|
|
6501
|
-
return /* @__PURE__ */ (0,
|
|
6502
|
-
/* @__PURE__ */ (0,
|
|
6505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
|
|
6506
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6503
6507
|
InputBase,
|
|
6504
6508
|
__spreadProps(__spreadValues({
|
|
6505
6509
|
id,
|
|
@@ -6513,7 +6517,7 @@ var DateRangeInput = (_a) => {
|
|
|
6513
6517
|
placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
|
|
6514
6518
|
disabled,
|
|
6515
6519
|
readOnly,
|
|
6516
|
-
after: /* @__PURE__ */ (0,
|
|
6520
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, { name: "calendar_month" }),
|
|
6517
6521
|
onFocus: handleFocus,
|
|
6518
6522
|
onClick: handleClick,
|
|
6519
6523
|
onChange: handleInputChange,
|
|
@@ -6524,7 +6528,7 @@ var DateRangeInput = (_a) => {
|
|
|
6524
6528
|
})
|
|
6525
6529
|
),
|
|
6526
6530
|
visible && !readOnly && (0, import_react_dom5.createPortal)(
|
|
6527
|
-
/* @__PURE__ */ (0,
|
|
6531
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6528
6532
|
"div",
|
|
6529
6533
|
{
|
|
6530
6534
|
ref: (el) => {
|
|
@@ -6536,7 +6540,7 @@ var DateRangeInput = (_a) => {
|
|
|
6536
6540
|
left: `${calendarPosition.left}px`,
|
|
6537
6541
|
minWidth: `${calendarPosition.width}px`
|
|
6538
6542
|
},
|
|
6539
|
-
children: /* @__PURE__ */ (0,
|
|
6543
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6540
6544
|
CalendarRange,
|
|
6541
6545
|
{
|
|
6542
6546
|
id: id ? `${id}-calendar` : void 0,
|