@dmsi/wedgekit-react 0.0.495 → 0.0.497
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-34VEVX5H.js +31 -0
- package/dist/{chunk-ETAEB3TA.js → chunk-L3BXRDLP.js} +8 -2
- package/dist/components/CalendarRange.cjs +28 -25
- package/dist/components/CalendarRange.css +21 -3
- package/dist/components/CalendarRange.js +9 -8
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +5 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +21 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +9 -8
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +12 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +21 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +9 -8
- package/dist/components/DataGrid/PinnedColumns.cjs +23 -20
- package/dist/components/DataGrid/PinnedColumns.css +21 -3
- package/dist/components/DataGrid/PinnedColumns.js +9 -8
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +8 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.css +21 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.js +9 -8
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +10 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +21 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +9 -8
- package/dist/components/DataGrid/TableBody/index.cjs +23 -20
- package/dist/components/DataGrid/TableBody/index.css +21 -3
- package/dist/components/DataGrid/TableBody/index.js +9 -8
- package/dist/components/DataGrid/index.cjs +83 -80
- package/dist/components/DataGrid/index.css +21 -3
- package/dist/components/DataGrid/index.js +9 -8
- package/dist/components/DataGrid/utils.cjs +6 -3
- package/dist/components/DataGrid/utils.css +21 -3
- package/dist/components/DataGrid/utils.js +9 -8
- package/dist/components/DateInput.cjs +34 -31
- package/dist/components/DateInput.css +21 -3
- package/dist/components/DateInput.js +9 -8
- package/dist/components/DateRangeInput.cjs +34 -31
- package/dist/components/DateRangeInput.css +21 -3
- package/dist/components/DateRangeInput.js +9 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +11 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +21 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +9 -8
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +19 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +21 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +9 -8
- package/dist/components/MobileDataGrid/index.cjs +64 -61
- package/dist/components/MobileDataGrid/index.css +21 -3
- package/dist/components/MobileDataGrid/index.js +9 -8
- package/dist/components/OrderCheckIcon.cjs +67 -0
- package/dist/components/OrderCheckIcon.js +7 -0
- package/dist/components/PDFViewer/index.js +3 -3
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/SkeletonParagraph.cjs +8 -2
- package/dist/components/SkeletonParagraph.js +1 -1
- package/dist/components/index.cjs +33 -2
- package/dist/components/index.css +21 -3
- package/dist/components/index.js +13 -9
- package/dist/index.css +21 -3
- package/package.json +1 -1
- package/src/components/OrderCheckIcon.tsx +19 -0
- package/src/components/SkeletonParagraph.tsx +9 -1
- package/src/components/index.ts +1 -0
- package/src/index.css +4 -3
- package/dist/{chunk-TPBEID5X.js → chunk-3WCLGTYP.js} +3 -3
- package/dist/{chunk-2A7H5GVB.js → chunk-7LKGHCVT.js} +3 -3
- package/dist/{chunk-DYBJUTGK.js → chunk-XHQOTLG6.js} +3 -3
|
@@ -5331,8 +5331,11 @@ var import_clsx39 = __toESM(require("clsx"), 1);
|
|
|
5331
5331
|
var import_react39 = require("react");
|
|
5332
5332
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5333
5333
|
|
|
5334
|
-
// src/components/
|
|
5334
|
+
// src/components/OrderCheckIcon.tsx
|
|
5335
5335
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5336
|
+
|
|
5337
|
+
// src/components/CalendarRange.tsx
|
|
5338
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5336
5339
|
function DateCell(_a) {
|
|
5337
5340
|
var _b = _a, {
|
|
5338
5341
|
date,
|
|
@@ -5367,7 +5370,7 @@ function DateCell(_a) {
|
|
|
5367
5370
|
"id",
|
|
5368
5371
|
"testid"
|
|
5369
5372
|
]);
|
|
5370
|
-
return /* @__PURE__ */ (0,
|
|
5373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5371
5374
|
"span",
|
|
5372
5375
|
__spreadProps(__spreadValues({}, props), {
|
|
5373
5376
|
id,
|
|
@@ -5523,7 +5526,7 @@ function CalendarRange({
|
|
|
5523
5526
|
}
|
|
5524
5527
|
return false;
|
|
5525
5528
|
}
|
|
5526
|
-
return /* @__PURE__ */ (0,
|
|
5529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5527
5530
|
"div",
|
|
5528
5531
|
{
|
|
5529
5532
|
id,
|
|
@@ -5536,7 +5539,7 @@ function CalendarRange({
|
|
|
5536
5539
|
// baseTransition,
|
|
5537
5540
|
"overflow-hidden"
|
|
5538
5541
|
),
|
|
5539
|
-
children: /* @__PURE__ */ (0,
|
|
5542
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5540
5543
|
"div",
|
|
5541
5544
|
{
|
|
5542
5545
|
className: (0, import_clsx40.default)(
|
|
@@ -5544,7 +5547,7 @@ function CalendarRange({
|
|
|
5544
5547
|
layoutGap
|
|
5545
5548
|
),
|
|
5546
5549
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
5547
|
-
return /* @__PURE__ */ (0,
|
|
5550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5548
5551
|
CalendarPane,
|
|
5549
5552
|
{
|
|
5550
5553
|
getMonthData,
|
|
@@ -5609,13 +5612,13 @@ function CalendarPane({
|
|
|
5609
5612
|
const month = getMonthData(offset);
|
|
5610
5613
|
const totalCells = 42;
|
|
5611
5614
|
const emptyCells = month.firstDayOffset;
|
|
5612
|
-
return /* @__PURE__ */ (0,
|
|
5613
|
-
/* @__PURE__ */ (0,
|
|
5615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react40.default.Fragment, { children: [
|
|
5616
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5614
5617
|
"div",
|
|
5615
5618
|
{
|
|
5616
5619
|
className: (0, import_clsx40.default)("flex flex-col"),
|
|
5617
5620
|
children: [
|
|
5618
|
-
/* @__PURE__ */ (0,
|
|
5621
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5619
5622
|
"div",
|
|
5620
5623
|
{
|
|
5621
5624
|
className: (0, import_clsx40.default)(
|
|
@@ -5624,7 +5627,7 @@ function CalendarPane({
|
|
|
5624
5627
|
"text-text-action-primary-normal"
|
|
5625
5628
|
),
|
|
5626
5629
|
children: [
|
|
5627
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
5630
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5628
5631
|
"button",
|
|
5629
5632
|
{
|
|
5630
5633
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
@@ -5636,11 +5639,11 @@ function CalendarPane({
|
|
|
5636
5639
|
),
|
|
5637
5640
|
"aria-label": "Previous month",
|
|
5638
5641
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5639
|
-
children: /* @__PURE__ */ (0,
|
|
5642
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5640
5643
|
}
|
|
5641
|
-
) : /* @__PURE__ */ (0,
|
|
5642
|
-
/* @__PURE__ */ (0,
|
|
5643
|
-
/* @__PURE__ */ (0,
|
|
5644
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx40.default)(componentPadding, "mr-1") }),
|
|
5645
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5646
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5644
5647
|
"button",
|
|
5645
5648
|
{
|
|
5646
5649
|
ref: (el) => {
|
|
@@ -5655,13 +5658,13 @@ function CalendarPane({
|
|
|
5655
5658
|
children: month.name
|
|
5656
5659
|
}
|
|
5657
5660
|
),
|
|
5658
|
-
/* @__PURE__ */ (0,
|
|
5661
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5659
5662
|
Menu,
|
|
5660
5663
|
{
|
|
5661
5664
|
show: monthMenuOpen,
|
|
5662
5665
|
positionTo: monthMenuRef,
|
|
5663
5666
|
setShow: () => setMonthMenuOpen(false),
|
|
5664
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5667
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5665
5668
|
MenuOption,
|
|
5666
5669
|
{
|
|
5667
5670
|
selected: baseMonth.month === x + 1,
|
|
@@ -5675,7 +5678,7 @@ function CalendarPane({
|
|
|
5675
5678
|
))
|
|
5676
5679
|
}
|
|
5677
5680
|
),
|
|
5678
|
-
/* @__PURE__ */ (0,
|
|
5681
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5679
5682
|
"button",
|
|
5680
5683
|
{
|
|
5681
5684
|
ref: (el) => {
|
|
@@ -5690,13 +5693,13 @@ function CalendarPane({
|
|
|
5690
5693
|
children: month.year
|
|
5691
5694
|
}
|
|
5692
5695
|
),
|
|
5693
|
-
/* @__PURE__ */ (0,
|
|
5696
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5694
5697
|
Menu,
|
|
5695
5698
|
{
|
|
5696
5699
|
show: yearMenuOpen,
|
|
5697
5700
|
positionTo: yearMenuRef,
|
|
5698
5701
|
setShow: () => setYearMenuOpen(false),
|
|
5699
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5702
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5700
5703
|
MenuOption,
|
|
5701
5704
|
{
|
|
5702
5705
|
selected: baseMonth.year === y,
|
|
@@ -5711,7 +5714,7 @@ function CalendarPane({
|
|
|
5711
5714
|
}
|
|
5712
5715
|
)
|
|
5713
5716
|
] }),
|
|
5714
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5717
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5715
5718
|
"button",
|
|
5716
5719
|
{
|
|
5717
5720
|
id: id ? `${id}-next-month-button` : void 0,
|
|
@@ -5723,13 +5726,13 @@ function CalendarPane({
|
|
|
5723
5726
|
),
|
|
5724
5727
|
"aria-label": "Next month",
|
|
5725
5728
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
5726
|
-
children: /* @__PURE__ */ (0,
|
|
5729
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
5727
5730
|
}
|
|
5728
|
-
) : /* @__PURE__ */ (0,
|
|
5731
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: (0, import_clsx40.default)(componentPadding, "ml-1") })
|
|
5729
5732
|
]
|
|
5730
5733
|
}
|
|
5731
5734
|
),
|
|
5732
|
-
/* @__PURE__ */ (0,
|
|
5735
|
+
/* @__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)(
|
|
5733
5736
|
"span",
|
|
5734
5737
|
{
|
|
5735
5738
|
className: (0, import_clsx40.default)(
|
|
@@ -5741,7 +5744,7 @@ function CalendarPane({
|
|
|
5741
5744
|
},
|
|
5742
5745
|
d
|
|
5743
5746
|
)) }),
|
|
5744
|
-
/* @__PURE__ */ (0,
|
|
5747
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: (0, import_clsx40.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
5745
5748
|
const day = i - emptyCells + 1;
|
|
5746
5749
|
const date = month.date.with({ day: 1 }).add({
|
|
5747
5750
|
days: i - emptyCells
|
|
@@ -5755,7 +5758,7 @@ function CalendarPane({
|
|
|
5755
5758
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
5756
5759
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
5757
5760
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
5758
|
-
return /* @__PURE__ */ (0,
|
|
5761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5759
5762
|
DateCell,
|
|
5760
5763
|
{
|
|
5761
5764
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -5780,7 +5783,7 @@ function CalendarPane({
|
|
|
5780
5783
|
]
|
|
5781
5784
|
}
|
|
5782
5785
|
),
|
|
5783
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
5786
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5784
5787
|
"div",
|
|
5785
5788
|
{
|
|
5786
5789
|
className: (0, import_clsx40.default)(
|
|
@@ -5794,7 +5797,7 @@ function CalendarPane({
|
|
|
5794
5797
|
}
|
|
5795
5798
|
|
|
5796
5799
|
// src/components/DateRangeInput.tsx
|
|
5797
|
-
var
|
|
5800
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5798
5801
|
var DateRangeInput = (_a) => {
|
|
5799
5802
|
var _b = _a, {
|
|
5800
5803
|
id,
|
|
@@ -6218,8 +6221,8 @@ var DateRangeInput = (_a) => {
|
|
|
6218
6221
|
}
|
|
6219
6222
|
}
|
|
6220
6223
|
};
|
|
6221
|
-
return /* @__PURE__ */ (0,
|
|
6222
|
-
/* @__PURE__ */ (0,
|
|
6224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
|
|
6225
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6223
6226
|
InputBase,
|
|
6224
6227
|
__spreadProps(__spreadValues({
|
|
6225
6228
|
id,
|
|
@@ -6233,7 +6236,7 @@ var DateRangeInput = (_a) => {
|
|
|
6233
6236
|
placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
|
|
6234
6237
|
disabled,
|
|
6235
6238
|
readOnly,
|
|
6236
|
-
after: /* @__PURE__ */ (0,
|
|
6239
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, { name: "calendar_month" }),
|
|
6237
6240
|
onFocus: handleFocus,
|
|
6238
6241
|
onClick: handleClick,
|
|
6239
6242
|
onChange: handleInputChange,
|
|
@@ -6244,7 +6247,7 @@ var DateRangeInput = (_a) => {
|
|
|
6244
6247
|
})
|
|
6245
6248
|
),
|
|
6246
6249
|
visible && !readOnly && (0, import_react_dom5.createPortal)(
|
|
6247
|
-
/* @__PURE__ */ (0,
|
|
6250
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6248
6251
|
"div",
|
|
6249
6252
|
{
|
|
6250
6253
|
ref: (el) => {
|
|
@@ -6256,7 +6259,7 @@ var DateRangeInput = (_a) => {
|
|
|
6256
6259
|
left: `${calendarPosition.left}px`,
|
|
6257
6260
|
minWidth: `${calendarPosition.width}px`
|
|
6258
6261
|
},
|
|
6259
|
-
children: /* @__PURE__ */ (0,
|
|
6262
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6260
6263
|
CalendarRange,
|
|
6261
6264
|
{
|
|
6262
6265
|
id: id ? `${id}-calendar` : void 0,
|
|
@@ -838,6 +838,12 @@
|
|
|
838
838
|
.\!w-20 {
|
|
839
839
|
width: calc(var(--spacing) * 20) !important;
|
|
840
840
|
}
|
|
841
|
+
.w-1\/2 {
|
|
842
|
+
width: calc(1/2 * 100%);
|
|
843
|
+
}
|
|
844
|
+
.w-1\/4 {
|
|
845
|
+
width: calc(1/4 * 100%);
|
|
846
|
+
}
|
|
841
847
|
.w-2\/3 {
|
|
842
848
|
width: calc(2/3 * 100%);
|
|
843
849
|
}
|
|
@@ -922,6 +928,9 @@
|
|
|
922
928
|
.min-w-0 {
|
|
923
929
|
min-width: calc(var(--spacing) * 0);
|
|
924
930
|
}
|
|
931
|
+
.min-w-10 {
|
|
932
|
+
min-width: calc(var(--spacing) * 10);
|
|
933
|
+
}
|
|
925
934
|
.min-w-20 {
|
|
926
935
|
min-width: calc(var(--spacing) * 20);
|
|
927
936
|
}
|
|
@@ -4678,6 +4687,7 @@
|
|
|
4678
4687
|
position: relative;
|
|
4679
4688
|
overflow: hidden;
|
|
4680
4689
|
background-color: #f7f7f7;
|
|
4690
|
+
opacity: 0.85;
|
|
4681
4691
|
}
|
|
4682
4692
|
.skeleton-paragraph::after {
|
|
4683
4693
|
content: "";
|
|
@@ -4687,9 +4697,17 @@
|
|
|
4687
4697
|
background-image:
|
|
4688
4698
|
linear-gradient(
|
|
4689
4699
|
90deg,
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4700
|
+
transparent 0%,
|
|
4701
|
+
color-mix(in srgb, #ffffff 60%, transparent) 50%,
|
|
4702
|
+
transparent 100%);
|
|
4703
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4704
|
+
background-image:
|
|
4705
|
+
linear-gradient(
|
|
4706
|
+
90deg,
|
|
4707
|
+
transparent 0%,
|
|
4708
|
+
color-mix(in srgb, var(--color-neutral-000) 60%, transparent) 50%,
|
|
4709
|
+
transparent 100%);
|
|
4710
|
+
}
|
|
4693
4711
|
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
|
4694
4712
|
}
|
|
4695
4713
|
@keyframes skeleton-shimmer {
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarRange
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7LKGHCVT.js";
|
|
4
4
|
import "../chunk-M7INAUAJ.js";
|
|
5
5
|
import "../chunk-4Q7T4GJ2.js";
|
|
6
6
|
import "../chunk-3DEYCNUE.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-XHQOTLG6.js";
|
|
8
|
+
import "../chunk-BQNPOGD5.js";
|
|
8
9
|
import "../chunk-Y5GD2FJA.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-3WCLGTYP.js";
|
|
11
|
+
import "../chunk-YEZBNQZI.js";
|
|
10
12
|
import "../chunk-B53XDCLO.js";
|
|
13
|
+
import "../chunk-S5ZJ3Q7P.js";
|
|
11
14
|
import "../chunk-MBZ55T2D.js";
|
|
12
15
|
import "../chunk-2IKT6IHB.js";
|
|
13
16
|
import "../chunk-YCDDBSVU.js";
|
|
14
17
|
import "../chunk-3X3Y4TMS.js";
|
|
15
|
-
import "../chunk-BQNPOGD5.js";
|
|
16
18
|
import "../chunk-QMSPTD6L.js";
|
|
17
19
|
import "../chunk-XIXQUEYC.js";
|
|
18
20
|
import "../chunk-5IFPG6TS.js";
|
|
19
21
|
import "../chunk-AJ5M6MVX.js";
|
|
20
22
|
import "../chunk-KW6V7O3H.js";
|
|
21
23
|
import "../chunk-JUFBGNWW.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-S5ZJ3Q7P.js";
|
|
24
|
+
import "../chunk-7GHD74J3.js";
|
|
24
25
|
import "../chunk-AT4AWD6B.js";
|
|
25
26
|
import "../chunk-EWGHVZL5.js";
|
|
26
|
-
import "../chunk-7GHD74J3.js";
|
|
27
27
|
import "../chunk-7BVUTFZ5.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-L3BXRDLP.js";
|
|
29
|
+
import "../chunk-34VEVX5H.js";
|
|
29
30
|
import "../chunk-GRGDX7JC.js";
|
|
30
31
|
import "../chunk-HVNHTM3P.js";
|
|
31
32
|
import "../chunk-X67L3NZI.js";
|
|
@@ -5787,8 +5787,11 @@ var import_clsx40 = __toESM(require("clsx"), 1);
|
|
|
5787
5787
|
var import_react39 = require("react");
|
|
5788
5788
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5789
5789
|
|
|
5790
|
-
// src/components/
|
|
5790
|
+
// src/components/OrderCheckIcon.tsx
|
|
5791
5791
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5792
|
+
|
|
5793
|
+
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
5794
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5792
5795
|
function ColumnSelector() {
|
|
5793
5796
|
const context = useGridContext();
|
|
5794
5797
|
const ref = (0, import_react40.useRef)(null);
|
|
@@ -5809,7 +5812,7 @@ function ColumnSelector() {
|
|
|
5809
5812
|
},
|
|
5810
5813
|
[dispatch]
|
|
5811
5814
|
);
|
|
5812
|
-
return /* @__PURE__ */ (0,
|
|
5815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5813
5816
|
"div",
|
|
5814
5817
|
{
|
|
5815
5818
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -5817,7 +5820,7 @@ function ColumnSelector() {
|
|
|
5817
5820
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
5818
5821
|
ref,
|
|
5819
5822
|
children: [
|
|
5820
|
-
/* @__PURE__ */ (0,
|
|
5823
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5821
5824
|
Button,
|
|
5822
5825
|
{
|
|
5823
5826
|
id: id ? `${id}-button` : void 0,
|
|
@@ -5826,10 +5829,10 @@ function ColumnSelector() {
|
|
|
5826
5829
|
variant: "navigation",
|
|
5827
5830
|
iconOnly: true,
|
|
5828
5831
|
size: 24,
|
|
5829
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5832
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "tune" })
|
|
5830
5833
|
}
|
|
5831
5834
|
),
|
|
5832
|
-
/* @__PURE__ */ (0,
|
|
5835
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5833
5836
|
Menu,
|
|
5834
5837
|
{
|
|
5835
5838
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -5840,7 +5843,7 @@ function ColumnSelector() {
|
|
|
5840
5843
|
setShow,
|
|
5841
5844
|
calculateMinMaxHeight: true,
|
|
5842
5845
|
children: [
|
|
5843
|
-
/* @__PURE__ */ (0,
|
|
5846
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5844
5847
|
Button,
|
|
5845
5848
|
{
|
|
5846
5849
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -5858,11 +5861,11 @@ function ColumnSelector() {
|
|
|
5858
5861
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
5859
5862
|
}).map((column) => {
|
|
5860
5863
|
var _a, _b, _c;
|
|
5861
|
-
return /* @__PURE__ */ (0,
|
|
5864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5862
5865
|
MenuOption,
|
|
5863
5866
|
{
|
|
5864
5867
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
5865
|
-
children: /* @__PURE__ */ (0,
|
|
5868
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5866
5869
|
Checkbox,
|
|
5867
5870
|
{
|
|
5868
5871
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|
|
@@ -838,6 +838,12 @@
|
|
|
838
838
|
.\!w-20 {
|
|
839
839
|
width: calc(var(--spacing) * 20) !important;
|
|
840
840
|
}
|
|
841
|
+
.w-1\/2 {
|
|
842
|
+
width: calc(1/2 * 100%);
|
|
843
|
+
}
|
|
844
|
+
.w-1\/4 {
|
|
845
|
+
width: calc(1/4 * 100%);
|
|
846
|
+
}
|
|
841
847
|
.w-2\/3 {
|
|
842
848
|
width: calc(2/3 * 100%);
|
|
843
849
|
}
|
|
@@ -922,6 +928,9 @@
|
|
|
922
928
|
.min-w-0 {
|
|
923
929
|
min-width: calc(var(--spacing) * 0);
|
|
924
930
|
}
|
|
931
|
+
.min-w-10 {
|
|
932
|
+
min-width: calc(var(--spacing) * 10);
|
|
933
|
+
}
|
|
925
934
|
.min-w-20 {
|
|
926
935
|
min-width: calc(var(--spacing) * 20);
|
|
927
936
|
}
|
|
@@ -4678,6 +4687,7 @@
|
|
|
4678
4687
|
position: relative;
|
|
4679
4688
|
overflow: hidden;
|
|
4680
4689
|
background-color: #f7f7f7;
|
|
4690
|
+
opacity: 0.85;
|
|
4681
4691
|
}
|
|
4682
4692
|
.skeleton-paragraph::after {
|
|
4683
4693
|
content: "";
|
|
@@ -4687,9 +4697,17 @@
|
|
|
4687
4697
|
background-image:
|
|
4688
4698
|
linear-gradient(
|
|
4689
4699
|
90deg,
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4700
|
+
transparent 0%,
|
|
4701
|
+
color-mix(in srgb, #ffffff 60%, transparent) 50%,
|
|
4702
|
+
transparent 100%);
|
|
4703
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4704
|
+
background-image:
|
|
4705
|
+
linear-gradient(
|
|
4706
|
+
90deg,
|
|
4707
|
+
transparent 0%,
|
|
4708
|
+
color-mix(in srgb, var(--color-neutral-000) 60%, transparent) 50%,
|
|
4709
|
+
transparent 100%);
|
|
4710
|
+
}
|
|
4693
4711
|
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
|
4694
4712
|
}
|
|
4695
4713
|
@keyframes skeleton-shimmer {
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelector
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-7LKGHCVT.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
5
|
import "../../../chunk-4Q7T4GJ2.js";
|
|
6
6
|
import "../../../chunk-3DEYCNUE.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-XHQOTLG6.js";
|
|
8
|
+
import "../../../chunk-BQNPOGD5.js";
|
|
8
9
|
import "../../../chunk-Y5GD2FJA.js";
|
|
9
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-3WCLGTYP.js";
|
|
11
|
+
import "../../../chunk-YEZBNQZI.js";
|
|
10
12
|
import "../../../chunk-B53XDCLO.js";
|
|
13
|
+
import "../../../chunk-S5ZJ3Q7P.js";
|
|
11
14
|
import "../../../chunk-MBZ55T2D.js";
|
|
12
15
|
import "../../../chunk-2IKT6IHB.js";
|
|
13
16
|
import "../../../chunk-YCDDBSVU.js";
|
|
14
17
|
import "../../../chunk-3X3Y4TMS.js";
|
|
15
|
-
import "../../../chunk-BQNPOGD5.js";
|
|
16
18
|
import "../../../chunk-QMSPTD6L.js";
|
|
17
19
|
import "../../../chunk-XIXQUEYC.js";
|
|
18
20
|
import "../../../chunk-5IFPG6TS.js";
|
|
19
21
|
import "../../../chunk-AJ5M6MVX.js";
|
|
20
22
|
import "../../../chunk-KW6V7O3H.js";
|
|
21
23
|
import "../../../chunk-JUFBGNWW.js";
|
|
22
|
-
import "../../../chunk-
|
|
23
|
-
import "../../../chunk-S5ZJ3Q7P.js";
|
|
24
|
+
import "../../../chunk-7GHD74J3.js";
|
|
24
25
|
import "../../../chunk-AT4AWD6B.js";
|
|
25
26
|
import "../../../chunk-EWGHVZL5.js";
|
|
26
|
-
import "../../../chunk-7GHD74J3.js";
|
|
27
27
|
import "../../../chunk-7BVUTFZ5.js";
|
|
28
|
-
import "../../../chunk-
|
|
28
|
+
import "../../../chunk-L3BXRDLP.js";
|
|
29
|
+
import "../../../chunk-34VEVX5H.js";
|
|
29
30
|
import "../../../chunk-GRGDX7JC.js";
|
|
30
31
|
import "../../../chunk-HVNHTM3P.js";
|
|
31
32
|
import "../../../chunk-X67L3NZI.js";
|
|
@@ -6025,8 +6025,11 @@ var import_clsx40 = __toESM(require("clsx"), 1);
|
|
|
6025
6025
|
var import_react39 = require("react");
|
|
6026
6026
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
6027
6027
|
|
|
6028
|
-
// src/components/
|
|
6028
|
+
// src/components/OrderCheckIcon.tsx
|
|
6029
6029
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6030
|
+
|
|
6031
|
+
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
6032
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6030
6033
|
function ColumnSelector() {
|
|
6031
6034
|
const context = useGridContext();
|
|
6032
6035
|
const ref = (0, import_react40.useRef)(null);
|
|
@@ -6047,7 +6050,7 @@ function ColumnSelector() {
|
|
|
6047
6050
|
},
|
|
6048
6051
|
[dispatch]
|
|
6049
6052
|
);
|
|
6050
|
-
return /* @__PURE__ */ (0,
|
|
6053
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
6051
6054
|
"div",
|
|
6052
6055
|
{
|
|
6053
6056
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -6055,7 +6058,7 @@ function ColumnSelector() {
|
|
|
6055
6058
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
6056
6059
|
ref,
|
|
6057
6060
|
children: [
|
|
6058
|
-
/* @__PURE__ */ (0,
|
|
6061
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6059
6062
|
Button,
|
|
6060
6063
|
{
|
|
6061
6064
|
id: id ? `${id}-button` : void 0,
|
|
@@ -6064,10 +6067,10 @@ function ColumnSelector() {
|
|
|
6064
6067
|
variant: "navigation",
|
|
6065
6068
|
iconOnly: true,
|
|
6066
6069
|
size: 24,
|
|
6067
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
6070
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { name: "tune" })
|
|
6068
6071
|
}
|
|
6069
6072
|
),
|
|
6070
|
-
/* @__PURE__ */ (0,
|
|
6073
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
6071
6074
|
Menu,
|
|
6072
6075
|
{
|
|
6073
6076
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -6078,7 +6081,7 @@ function ColumnSelector() {
|
|
|
6078
6081
|
setShow,
|
|
6079
6082
|
calculateMinMaxHeight: true,
|
|
6080
6083
|
children: [
|
|
6081
|
-
/* @__PURE__ */ (0,
|
|
6084
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6082
6085
|
Button,
|
|
6083
6086
|
{
|
|
6084
6087
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -6096,11 +6099,11 @@ function ColumnSelector() {
|
|
|
6096
6099
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
6097
6100
|
}).map((column) => {
|
|
6098
6101
|
var _a, _b, _c;
|
|
6099
|
-
return /* @__PURE__ */ (0,
|
|
6102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6100
6103
|
MenuOption,
|
|
6101
6104
|
{
|
|
6102
6105
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
6103
|
-
children: /* @__PURE__ */ (0,
|
|
6106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6104
6107
|
Checkbox,
|
|
6105
6108
|
{
|
|
6106
6109
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|
|
@@ -6130,7 +6133,7 @@ function ColumnSelector() {
|
|
|
6130
6133
|
}
|
|
6131
6134
|
|
|
6132
6135
|
// src/components/MobileDataGrid/MobileDataGridHeader.tsx
|
|
6133
|
-
var
|
|
6136
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6134
6137
|
function MobileDataGridHeader({
|
|
6135
6138
|
header: Header,
|
|
6136
6139
|
enableColumnSelector,
|
|
@@ -6148,15 +6151,15 @@ function MobileDataGridHeader({
|
|
|
6148
6151
|
handleRowSelectAll
|
|
6149
6152
|
} = ctx;
|
|
6150
6153
|
if (typeof Header === "undefined" && !primaryKey) return null;
|
|
6151
|
-
if (typeof Header === "function") return /* @__PURE__ */ (0,
|
|
6154
|
+
if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Header, __spreadValues({}, ctx));
|
|
6152
6155
|
if (typeof Header === "string" || primaryKey)
|
|
6153
|
-
return /* @__PURE__ */ (0,
|
|
6156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6154
6157
|
"div",
|
|
6155
6158
|
{
|
|
6156
6159
|
id: id ? `${id}-header` : void 0,
|
|
6157
6160
|
"data-testid": testid ? `${testid}-header` : void 0,
|
|
6158
6161
|
className: "sticky top-0",
|
|
6159
|
-
children: /* @__PURE__ */ (0,
|
|
6162
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
6160
6163
|
Stack,
|
|
6161
6164
|
{
|
|
6162
6165
|
horizontal: true,
|
|
@@ -6165,7 +6168,7 @@ function MobileDataGridHeader({
|
|
|
6165
6168
|
justify: "between",
|
|
6166
6169
|
backgroundColor: "background-primary-normal",
|
|
6167
6170
|
children: [
|
|
6168
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
6171
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6169
6172
|
Checkbox,
|
|
6170
6173
|
{
|
|
6171
6174
|
id: id ? `${id}-select-all-checkbox` : void 0,
|
|
@@ -6175,7 +6178,7 @@ function MobileDataGridHeader({
|
|
|
6175
6178
|
onChange: handleRowSelectAll
|
|
6176
6179
|
}
|
|
6177
6180
|
) }),
|
|
6178
|
-
/* @__PURE__ */ (0,
|
|
6181
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6179
6182
|
Stack,
|
|
6180
6183
|
{
|
|
6181
6184
|
horizontal: true,
|
|
@@ -6183,10 +6186,10 @@ function MobileDataGridHeader({
|
|
|
6183
6186
|
items: "center",
|
|
6184
6187
|
sizing: "component",
|
|
6185
6188
|
padding: true,
|
|
6186
|
-
children: /* @__PURE__ */ (0,
|
|
6189
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Heading3, { as: "span", color: "text-primary-normal", children: typeof Header === "string" ? Header : (_b = (_a = columns.find((col) => col.id === primaryKey)) == null ? void 0 : _a.header) == null ? void 0 : _b.toString() })
|
|
6187
6190
|
}
|
|
6188
6191
|
),
|
|
6189
|
-
enableColumnSelector && /* @__PURE__ */ (0,
|
|
6192
|
+
enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ColumnSelector, {})
|
|
6190
6193
|
]
|
|
6191
6194
|
}
|
|
6192
6195
|
) })
|
|
@@ -838,6 +838,12 @@
|
|
|
838
838
|
.\!w-20 {
|
|
839
839
|
width: calc(var(--spacing) * 20) !important;
|
|
840
840
|
}
|
|
841
|
+
.w-1\/2 {
|
|
842
|
+
width: calc(1/2 * 100%);
|
|
843
|
+
}
|
|
844
|
+
.w-1\/4 {
|
|
845
|
+
width: calc(1/4 * 100%);
|
|
846
|
+
}
|
|
841
847
|
.w-2\/3 {
|
|
842
848
|
width: calc(2/3 * 100%);
|
|
843
849
|
}
|
|
@@ -922,6 +928,9 @@
|
|
|
922
928
|
.min-w-0 {
|
|
923
929
|
min-width: calc(var(--spacing) * 0);
|
|
924
930
|
}
|
|
931
|
+
.min-w-10 {
|
|
932
|
+
min-width: calc(var(--spacing) * 10);
|
|
933
|
+
}
|
|
925
934
|
.min-w-20 {
|
|
926
935
|
min-width: calc(var(--spacing) * 20);
|
|
927
936
|
}
|
|
@@ -4678,6 +4687,7 @@
|
|
|
4678
4687
|
position: relative;
|
|
4679
4688
|
overflow: hidden;
|
|
4680
4689
|
background-color: #f7f7f7;
|
|
4690
|
+
opacity: 0.85;
|
|
4681
4691
|
}
|
|
4682
4692
|
.skeleton-paragraph::after {
|
|
4683
4693
|
content: "";
|
|
@@ -4687,9 +4697,17 @@
|
|
|
4687
4697
|
background-image:
|
|
4688
4698
|
linear-gradient(
|
|
4689
4699
|
90deg,
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4700
|
+
transparent 0%,
|
|
4701
|
+
color-mix(in srgb, #ffffff 60%, transparent) 50%,
|
|
4702
|
+
transparent 100%);
|
|
4703
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4704
|
+
background-image:
|
|
4705
|
+
linear-gradient(
|
|
4706
|
+
90deg,
|
|
4707
|
+
transparent 0%,
|
|
4708
|
+
color-mix(in srgb, var(--color-neutral-000) 60%, transparent) 50%,
|
|
4709
|
+
transparent 100%);
|
|
4710
|
+
}
|
|
4693
4711
|
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
|
4694
4712
|
}
|
|
4695
4713
|
@keyframes skeleton-shimmer {
|