@dmsi/wedgekit-react 0.0.474 → 0.0.476
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-IG2YUDHI.js → chunk-24K4HHV5.js} +4 -4
- package/dist/{chunk-OEMLNGE2.js → chunk-4Q7T4GJ2.js} +2 -2
- package/dist/chunk-4UH72JT2.js +104 -0
- package/dist/{chunk-GTPSPGSJ.js → chunk-HSJ34DOK.js} +13 -13
- package/dist/{chunk-KJNK7KEV.js → chunk-QMSPTD6L.js} +1 -1
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Alert.cjs +787 -0
- package/dist/components/Alert.js +13 -0
- package/dist/components/CalendarRange.cjs +51 -46
- package/dist/components/CalendarRange.css +3 -0
- package/dist/components/CalendarRange.js +19 -18
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +9 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +3 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +19 -18
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +18 -13
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +3 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +19 -18
- package/dist/components/DataGrid/PinnedColumns.cjs +34 -29
- package/dist/components/DataGrid/PinnedColumns.css +3 -0
- package/dist/components/DataGrid/PinnedColumns.js +19 -18
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +10 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.css +3 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +19 -18
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +16 -11
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +3 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +19 -18
- package/dist/components/DataGrid/TableBody/index.cjs +31 -26
- package/dist/components/DataGrid/TableBody/index.css +3 -0
- package/dist/components/DataGrid/TableBody/index.js +19 -18
- package/dist/components/DataGrid/index.cjs +120 -115
- package/dist/components/DataGrid/index.css +3 -0
- package/dist/components/DataGrid/index.js +19 -18
- package/dist/components/DataGrid/utils.cjs +10 -5
- package/dist/components/DataGrid/utils.css +3 -0
- package/dist/components/DataGrid/utils.js +19 -18
- package/dist/components/DataGridCell.js +2 -2
- package/dist/components/DateInput.cjs +70 -65
- package/dist/components/DateInput.css +3 -0
- package/dist/components/DateInput.js +19 -18
- package/dist/components/DateRangeInput.cjs +70 -65
- package/dist/components/DateRangeInput.css +3 -0
- package/dist/components/DateRangeInput.js +19 -18
- package/dist/components/FilterGroup.js +6 -6
- package/dist/components/MobileDataGrid/ColumnList.js +3 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +17 -12
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +3 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +19 -18
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +25 -20
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +3 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +19 -18
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +6 -6
- package/dist/components/MobileDataGrid/index.cjs +89 -84
- package/dist/components/MobileDataGrid/index.css +3 -0
- package/dist/components/MobileDataGrid/index.js +19 -18
- package/dist/components/Modal.js +3 -3
- package/dist/components/Notification.js +3 -3
- package/dist/components/PDFViewer/PDFNavigation.js +2 -2
- package/dist/components/PDFViewer/index.js +6 -6
- package/dist/components/SideMenuItem.js +3 -3
- package/dist/components/Swatch.js +3 -3
- package/dist/components/Upload.js +3 -3
- package/dist/components/index.cjs +82 -0
- package/dist/components/index.css +3 -0
- package/dist/components/index.js +32 -28
- package/dist/index.css +3 -0
- package/package.json +1 -1
- package/src/components/Alert.tsx +81 -0
- package/src/components/index.ts +1 -0
- package/dist/{chunk-IT4VFU6T.js → chunk-3DEYCNUE.js} +3 -3
- package/dist/{chunk-GTBGPBH6.js → chunk-B53XDCLO.js} +3 -3
- package/dist/{chunk-ZQSD74IJ.js → chunk-IY7SXEVY.js} +3 -3
- package/dist/{chunk-BFFNSUNS.js → chunk-QBSEKZWX.js} +3 -3
- package/dist/{chunk-NIWXVOBW.js → chunk-X67L3NZI.js} +3 -3
- package/dist/{chunk-TVXBP5CW.js → chunk-XIXQUEYC.js} +3 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Alert
|
|
3
|
+
} from "../chunk-4UH72JT2.js";
|
|
4
|
+
import "../chunk-H2KC5XUY.js";
|
|
5
|
+
import "../chunk-ZSETMD4A.js";
|
|
6
|
+
import "../chunk-DORD2EBO.js";
|
|
7
|
+
import "../chunk-NKUETCDA.js";
|
|
8
|
+
import "../chunk-LPY6PMAY.js";
|
|
9
|
+
import "../chunk-IXR65MOU.js";
|
|
10
|
+
import "../chunk-ORMEWXMH.js";
|
|
11
|
+
export {
|
|
12
|
+
Alert
|
|
13
|
+
};
|
|
@@ -64,7 +64,7 @@ __export(CalendarRange_exports, {
|
|
|
64
64
|
isWeekend: () => isWeekend
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(CalendarRange_exports);
|
|
67
|
-
var
|
|
67
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
68
68
|
|
|
69
69
|
// src/classNames.ts
|
|
70
70
|
var import_clsx = __toESM(require("clsx"), 1);
|
|
@@ -239,7 +239,7 @@ function Icon(_a) {
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
// src/components/CalendarRange.tsx
|
|
242
|
-
var
|
|
242
|
+
var import_react38 = __toESM(require("react"), 1);
|
|
243
243
|
var import_polyfill = require("@js-temporal/polyfill");
|
|
244
244
|
|
|
245
245
|
// src/components/DataGridCell.tsx
|
|
@@ -4892,8 +4892,13 @@ var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
|
4892
4892
|
// src/components/EmptyCartIcon.tsx
|
|
4893
4893
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4894
4894
|
|
|
4895
|
-
// src/components/
|
|
4895
|
+
// src/components/Alert.tsx
|
|
4896
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
4897
|
+
var import_react37 = require("react");
|
|
4896
4898
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4899
|
+
|
|
4900
|
+
// src/components/CalendarRange.tsx
|
|
4901
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4897
4902
|
function isWeekend(date) {
|
|
4898
4903
|
return date.dayOfWeek === 6 || date.dayOfWeek === 7;
|
|
4899
4904
|
}
|
|
@@ -4931,12 +4936,12 @@ function DateCell(_a) {
|
|
|
4931
4936
|
"id",
|
|
4932
4937
|
"testid"
|
|
4933
4938
|
]);
|
|
4934
|
-
return /* @__PURE__ */ (0,
|
|
4939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4935
4940
|
"span",
|
|
4936
4941
|
__spreadProps(__spreadValues({}, props), {
|
|
4937
4942
|
id,
|
|
4938
4943
|
"data-testid": testid,
|
|
4939
|
-
className: (0,
|
|
4944
|
+
className: (0, import_clsx39.default)(
|
|
4940
4945
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
4941
4946
|
typography.caption,
|
|
4942
4947
|
cellPadding,
|
|
@@ -5006,20 +5011,20 @@ function CalendarRange({
|
|
|
5006
5011
|
const fromDate = parseDate(from);
|
|
5007
5012
|
const toDate = parseDate(to);
|
|
5008
5013
|
const today = import_polyfill.Temporal.Now.plainDateISO();
|
|
5009
|
-
const [baseMonth, setBaseMonth] = (0,
|
|
5014
|
+
const [baseMonth, setBaseMonth] = (0, import_react38.useState)(
|
|
5010
5015
|
fromDate != null ? fromDate : today.with({ day: 1 })
|
|
5011
5016
|
);
|
|
5012
|
-
const [selecting, setSelecting] = (0,
|
|
5013
|
-
const [pendingFrom, setPendingFrom] = (0,
|
|
5014
|
-
const [hoveredDate, setHoveredDate] = (0,
|
|
5015
|
-
(0,
|
|
5017
|
+
const [selecting, setSelecting] = (0, import_react38.useState)("from");
|
|
5018
|
+
const [pendingFrom, setPendingFrom] = (0, import_react38.useState)(void 0);
|
|
5019
|
+
const [hoveredDate, setHoveredDate] = (0, import_react38.useState)(void 0);
|
|
5020
|
+
(0, import_react38.useEffect)(() => {
|
|
5016
5021
|
if (fromDate) {
|
|
5017
5022
|
setBaseMonth(fromDate.with({ day: 1 }));
|
|
5018
5023
|
} else if (toDate) {
|
|
5019
5024
|
setBaseMonth(toDate.with({ day: 1 }));
|
|
5020
5025
|
}
|
|
5021
5026
|
}, [from, to]);
|
|
5022
|
-
(0,
|
|
5027
|
+
(0, import_react38.useEffect)(() => {
|
|
5023
5028
|
if (fromDate && toDate) {
|
|
5024
5029
|
setSelecting("from");
|
|
5025
5030
|
setPendingFrom(void 0);
|
|
@@ -5085,12 +5090,12 @@ function CalendarRange({
|
|
|
5085
5090
|
}
|
|
5086
5091
|
return false;
|
|
5087
5092
|
}
|
|
5088
|
-
return /* @__PURE__ */ (0,
|
|
5093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5089
5094
|
"div",
|
|
5090
5095
|
{
|
|
5091
5096
|
id,
|
|
5092
5097
|
"data-testid": testid,
|
|
5093
|
-
className: (0,
|
|
5098
|
+
className: (0, import_clsx39.default)(
|
|
5094
5099
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
5095
5100
|
layoutPaddding,
|
|
5096
5101
|
layoutGap,
|
|
@@ -5098,15 +5103,15 @@ function CalendarRange({
|
|
|
5098
5103
|
// baseTransition,
|
|
5099
5104
|
"overflow-hidden"
|
|
5100
5105
|
),
|
|
5101
|
-
children: /* @__PURE__ */ (0,
|
|
5106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5102
5107
|
"div",
|
|
5103
5108
|
{
|
|
5104
|
-
className: (0,
|
|
5109
|
+
className: (0, import_clsx39.default)(
|
|
5105
5110
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
5106
5111
|
layoutGap
|
|
5107
5112
|
),
|
|
5108
5113
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
5109
|
-
return /* @__PURE__ */ (0,
|
|
5114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5110
5115
|
CalendarPane,
|
|
5111
5116
|
{
|
|
5112
5117
|
getMonthData,
|
|
@@ -5164,45 +5169,45 @@ function CalendarPane({
|
|
|
5164
5169
|
const years = Array.from({ length: 100 }).map(
|
|
5165
5170
|
(_, i) => baseMonth.year - 50 + i
|
|
5166
5171
|
);
|
|
5167
|
-
const [monthMenuOpen, setMonthMenuOpen] = (0,
|
|
5168
|
-
const [yearMenuOpen, setYearMenuOpen] = (0,
|
|
5169
|
-
const monthMenuRef = (0,
|
|
5170
|
-
const yearMenuRef = (0,
|
|
5172
|
+
const [monthMenuOpen, setMonthMenuOpen] = (0, import_react38.useState)(false);
|
|
5173
|
+
const [yearMenuOpen, setYearMenuOpen] = (0, import_react38.useState)(false);
|
|
5174
|
+
const monthMenuRef = (0, import_react38.useRef)(null);
|
|
5175
|
+
const yearMenuRef = (0, import_react38.useRef)(null);
|
|
5171
5176
|
const month = getMonthData(offset);
|
|
5172
5177
|
const totalCells = 42;
|
|
5173
5178
|
const emptyCells = month.firstDayOffset;
|
|
5174
|
-
return /* @__PURE__ */ (0,
|
|
5175
|
-
/* @__PURE__ */ (0,
|
|
5179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react38.default.Fragment, { children: [
|
|
5180
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
5176
5181
|
"div",
|
|
5177
5182
|
{
|
|
5178
|
-
className: (0,
|
|
5183
|
+
className: (0, import_clsx39.default)("flex flex-col"),
|
|
5179
5184
|
children: [
|
|
5180
|
-
/* @__PURE__ */ (0,
|
|
5185
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
5181
5186
|
"div",
|
|
5182
5187
|
{
|
|
5183
|
-
className: (0,
|
|
5188
|
+
className: (0, import_clsx39.default)(
|
|
5184
5189
|
"flex flex-row items-center justify-between",
|
|
5185
5190
|
typography.label,
|
|
5186
5191
|
"text-text-action-primary-normal"
|
|
5187
5192
|
),
|
|
5188
5193
|
children: [
|
|
5189
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
5194
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5190
5195
|
"button",
|
|
5191
5196
|
{
|
|
5192
5197
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
5193
5198
|
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
5194
5199
|
type: "button",
|
|
5195
|
-
className: (0,
|
|
5200
|
+
className: (0, import_clsx39.default)(
|
|
5196
5201
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5197
5202
|
componentPadding
|
|
5198
5203
|
),
|
|
5199
5204
|
"aria-label": "Previous month",
|
|
5200
5205
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5201
|
-
children: /* @__PURE__ */ (0,
|
|
5206
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5202
5207
|
}
|
|
5203
|
-
) : /* @__PURE__ */ (0,
|
|
5204
|
-
/* @__PURE__ */ (0,
|
|
5205
|
-
/* @__PURE__ */ (0,
|
|
5208
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: (0, import_clsx39.default)(componentPadding, "mr-1") }),
|
|
5209
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5210
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5206
5211
|
"button",
|
|
5207
5212
|
{
|
|
5208
5213
|
ref: (el) => {
|
|
@@ -5217,13 +5222,13 @@ function CalendarPane({
|
|
|
5217
5222
|
children: month.name
|
|
5218
5223
|
}
|
|
5219
5224
|
),
|
|
5220
|
-
/* @__PURE__ */ (0,
|
|
5225
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5221
5226
|
Menu,
|
|
5222
5227
|
{
|
|
5223
5228
|
show: monthMenuOpen,
|
|
5224
5229
|
positionTo: monthMenuRef,
|
|
5225
5230
|
setShow: () => setMonthMenuOpen(false),
|
|
5226
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5231
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5227
5232
|
MenuOption,
|
|
5228
5233
|
{
|
|
5229
5234
|
selected: baseMonth.month === x + 1,
|
|
@@ -5237,7 +5242,7 @@ function CalendarPane({
|
|
|
5237
5242
|
))
|
|
5238
5243
|
}
|
|
5239
5244
|
),
|
|
5240
|
-
/* @__PURE__ */ (0,
|
|
5245
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5241
5246
|
"button",
|
|
5242
5247
|
{
|
|
5243
5248
|
ref: (el) => {
|
|
@@ -5252,13 +5257,13 @@ function CalendarPane({
|
|
|
5252
5257
|
children: month.year
|
|
5253
5258
|
}
|
|
5254
5259
|
),
|
|
5255
|
-
/* @__PURE__ */ (0,
|
|
5260
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5256
5261
|
Menu,
|
|
5257
5262
|
{
|
|
5258
5263
|
show: yearMenuOpen,
|
|
5259
5264
|
positionTo: yearMenuRef,
|
|
5260
5265
|
setShow: () => setYearMenuOpen(false),
|
|
5261
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5266
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5262
5267
|
MenuOption,
|
|
5263
5268
|
{
|
|
5264
5269
|
selected: baseMonth.year === y,
|
|
@@ -5273,28 +5278,28 @@ function CalendarPane({
|
|
|
5273
5278
|
}
|
|
5274
5279
|
)
|
|
5275
5280
|
] }),
|
|
5276
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5281
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5277
5282
|
"button",
|
|
5278
5283
|
{
|
|
5279
5284
|
id: id ? `${id}-next-month-button` : void 0,
|
|
5280
5285
|
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
5281
5286
|
type: "button",
|
|
5282
|
-
className: (0,
|
|
5287
|
+
className: (0, import_clsx39.default)(
|
|
5283
5288
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5284
5289
|
componentPadding
|
|
5285
5290
|
),
|
|
5286
5291
|
"aria-label": "Next month",
|
|
5287
5292
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
5288
|
-
children: /* @__PURE__ */ (0,
|
|
5293
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
5289
5294
|
}
|
|
5290
|
-
) : /* @__PURE__ */ (0,
|
|
5295
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: (0, import_clsx39.default)(componentPadding, "ml-1") })
|
|
5291
5296
|
]
|
|
5292
5297
|
}
|
|
5293
5298
|
),
|
|
5294
|
-
/* @__PURE__ */ (0,
|
|
5299
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: (0, import_clsx39.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5295
5300
|
"span",
|
|
5296
5301
|
{
|
|
5297
|
-
className: (0,
|
|
5302
|
+
className: (0, import_clsx39.default)(
|
|
5298
5303
|
typography.caption,
|
|
5299
5304
|
"text-text-secondary-normal text-center",
|
|
5300
5305
|
"w-10"
|
|
@@ -5303,7 +5308,7 @@ function CalendarPane({
|
|
|
5303
5308
|
},
|
|
5304
5309
|
d
|
|
5305
5310
|
)) }),
|
|
5306
|
-
/* @__PURE__ */ (0,
|
|
5311
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: (0, import_clsx39.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
5307
5312
|
const day = i - emptyCells + 1;
|
|
5308
5313
|
const date = month.date.with({ day: 1 }).add({
|
|
5309
5314
|
days: i - emptyCells
|
|
@@ -5317,7 +5322,7 @@ function CalendarPane({
|
|
|
5317
5322
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
5318
5323
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
5319
5324
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
5320
|
-
return /* @__PURE__ */ (0,
|
|
5325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5321
5326
|
DateCell,
|
|
5322
5327
|
{
|
|
5323
5328
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -5342,10 +5347,10 @@ function CalendarPane({
|
|
|
5342
5347
|
]
|
|
5343
5348
|
}
|
|
5344
5349
|
),
|
|
5345
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
5350
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5346
5351
|
"div",
|
|
5347
5352
|
{
|
|
5348
|
-
className: (0,
|
|
5353
|
+
className: (0, import_clsx39.default)(
|
|
5349
5354
|
"self-stretch bg-border-primary-normal rounded-base",
|
|
5350
5355
|
// 1px width, full height, matches Figma divider
|
|
5351
5356
|
"w-px"
|
|
@@ -3,64 +3,65 @@ import {
|
|
|
3
3
|
CalendarRange_default,
|
|
4
4
|
isWeekend
|
|
5
5
|
} from "../chunk-X35NLL3N.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-OEMLNGE2.js";
|
|
8
|
-
import "../chunk-IT4VFU6T.js";
|
|
6
|
+
import "../chunk-HSJ34DOK.js";
|
|
9
7
|
import "../chunk-M7INAUAJ.js";
|
|
10
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-4Q7T4GJ2.js";
|
|
9
|
+
import "../chunk-3DEYCNUE.js";
|
|
11
10
|
import "../chunk-DYBJUTGK.js";
|
|
11
|
+
import "../chunk-24K4HHV5.js";
|
|
12
|
+
import "../chunk-B53XDCLO.js";
|
|
12
13
|
import "../chunk-MBZ55T2D.js";
|
|
13
14
|
import "../chunk-2IKT6IHB.js";
|
|
14
15
|
import "../chunk-YCDDBSVU.js";
|
|
15
16
|
import "../chunk-3X3Y4TMS.js";
|
|
16
17
|
import "../chunk-BQNPOGD5.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-QMSPTD6L.js";
|
|
19
|
+
import "../chunk-XIXQUEYC.js";
|
|
19
20
|
import "../chunk-5IFPG6TS.js";
|
|
20
21
|
import "../chunk-KW6V7O3H.js";
|
|
21
22
|
import "../chunk-AJ5M6MVX.js";
|
|
22
23
|
import "../chunk-JUFBGNWW.js";
|
|
23
24
|
import "../chunk-YNKN6RKF.js";
|
|
24
25
|
import "../chunk-VJVY6NPF.js";
|
|
25
|
-
import "../chunk-GTBGPBH6.js";
|
|
26
26
|
import "../chunk-AT4AWD6B.js";
|
|
27
27
|
import "../chunk-EWGHVZL5.js";
|
|
28
28
|
import "../chunk-7GHD74J3.js";
|
|
29
29
|
import "../chunk-7BVUTFZ5.js";
|
|
30
30
|
import "../chunk-ETAEB3TA.js";
|
|
31
|
-
import "../chunk-HVNHTM3P.js";
|
|
32
31
|
import "../chunk-GRGDX7JC.js";
|
|
33
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-HVNHTM3P.js";
|
|
33
|
+
import "../chunk-X67L3NZI.js";
|
|
34
34
|
import "../chunk-4RJKB7LC.js";
|
|
35
|
+
import "../chunk-FG7GNGE3.js";
|
|
35
36
|
import "../chunk-G7KIKHER.js";
|
|
36
37
|
import "../chunk-AG43RS4Q.js";
|
|
37
38
|
import "../chunk-ZQJMNPCF.js";
|
|
38
|
-
import "../chunk-FG7GNGE3.js";
|
|
39
39
|
import "../chunk-6TYWM26K.js";
|
|
40
40
|
import "../chunk-SBRRNFOP.js";
|
|
41
41
|
import "../chunk-Y2GK27RX.js";
|
|
42
|
-
import "../chunk-H2KC5XUY.js";
|
|
43
42
|
import "../chunk-QVWYTQKL.js";
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-WEAVZEE4.js";
|
|
46
|
-
import "../chunk-OZBB6RFM.js";
|
|
47
|
-
import "../chunk-BFFNSUNS.js";
|
|
43
|
+
import "../chunk-QBSEKZWX.js";
|
|
48
44
|
import "../chunk-TCMOGTPB.js";
|
|
49
45
|
import "../chunk-DVU5XV7L.js";
|
|
50
46
|
import "../chunk-IPAKWF2V.js";
|
|
51
|
-
import "../chunk-WVUIIBRR.js";
|
|
52
47
|
import "../chunk-RQRR4FEF.js";
|
|
53
48
|
import "../chunk-44TH3VC7.js";
|
|
54
49
|
import "../chunk-AL5QIRY3.js";
|
|
50
|
+
import "../chunk-WVUIIBRR.js";
|
|
51
|
+
import "../chunk-75USUR3I.js";
|
|
52
|
+
import "../chunk-WEAVZEE4.js";
|
|
53
|
+
import "../chunk-OZBB6RFM.js";
|
|
55
54
|
import "../chunk-URYQ24NF.js";
|
|
56
55
|
import "../chunk-VXWSAIB5.js";
|
|
57
56
|
import "../chunk-R3EQIDBX.js";
|
|
58
57
|
import "../chunk-5UH6QUFB.js";
|
|
59
58
|
import "../chunk-UCJUC5AZ.js";
|
|
60
|
-
import "../chunk-
|
|
59
|
+
import "../chunk-IY7SXEVY.js";
|
|
61
60
|
import "../chunk-KBJZUVLM.js";
|
|
62
|
-
import "../chunk-
|
|
61
|
+
import "../chunk-4UH72JT2.js";
|
|
62
|
+
import "../chunk-H2KC5XUY.js";
|
|
63
63
|
import "../chunk-ZSETMD4A.js";
|
|
64
|
+
import "../chunk-DORD2EBO.js";
|
|
64
65
|
import "../chunk-NKUETCDA.js";
|
|
65
66
|
import "../chunk-LPY6PMAY.js";
|
|
66
67
|
import "../chunk-IXR65MOU.js";
|
|
@@ -62,7 +62,7 @@ __export(ColumnSelectorMenuOption_exports, {
|
|
|
62
62
|
ColumnSelectorMenuOption: () => ColumnSelectorMenuOption
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(ColumnSelectorMenuOption_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_react37 = require("react");
|
|
66
66
|
|
|
67
67
|
// src/components/DataGridCell.tsx
|
|
68
68
|
var import_sortable = require("@dnd-kit/sortable");
|
|
@@ -4858,17 +4858,22 @@ var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
|
4858
4858
|
// src/components/EmptyCartIcon.tsx
|
|
4859
4859
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4860
4860
|
|
|
4861
|
-
// src/components/
|
|
4861
|
+
// src/components/Alert.tsx
|
|
4862
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
4863
|
+
var import_react36 = require("react");
|
|
4862
4864
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4865
|
+
|
|
4866
|
+
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
4867
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4863
4868
|
function ColumnSelectorMenuOption({
|
|
4864
4869
|
id,
|
|
4865
4870
|
testid,
|
|
4866
4871
|
column,
|
|
4867
4872
|
toggleColumnVisibility
|
|
4868
4873
|
}) {
|
|
4869
|
-
const [isVisible, setIsVisible] = (0,
|
|
4874
|
+
const [isVisible, setIsVisible] = (0, import_react37.useState)(column.getIsVisible());
|
|
4870
4875
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
4871
|
-
return /* @__PURE__ */ (0,
|
|
4876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4872
4877
|
Checkbox,
|
|
4873
4878
|
{
|
|
4874
4879
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -1,63 +1,64 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelectorMenuOption
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-OEMLNGE2.js";
|
|
5
|
-
import "../../../chunk-IT4VFU6T.js";
|
|
3
|
+
} from "../../../chunk-HSJ34DOK.js";
|
|
6
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
7
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-4Q7T4GJ2.js";
|
|
6
|
+
import "../../../chunk-3DEYCNUE.js";
|
|
8
7
|
import "../../../chunk-DYBJUTGK.js";
|
|
8
|
+
import "../../../chunk-24K4HHV5.js";
|
|
9
|
+
import "../../../chunk-B53XDCLO.js";
|
|
9
10
|
import "../../../chunk-MBZ55T2D.js";
|
|
10
11
|
import "../../../chunk-2IKT6IHB.js";
|
|
11
12
|
import "../../../chunk-YCDDBSVU.js";
|
|
12
13
|
import "../../../chunk-3X3Y4TMS.js";
|
|
13
14
|
import "../../../chunk-BQNPOGD5.js";
|
|
14
|
-
import "../../../chunk-
|
|
15
|
-
import "../../../chunk-
|
|
15
|
+
import "../../../chunk-QMSPTD6L.js";
|
|
16
|
+
import "../../../chunk-XIXQUEYC.js";
|
|
16
17
|
import "../../../chunk-5IFPG6TS.js";
|
|
17
18
|
import "../../../chunk-KW6V7O3H.js";
|
|
18
19
|
import "../../../chunk-AJ5M6MVX.js";
|
|
19
20
|
import "../../../chunk-JUFBGNWW.js";
|
|
20
21
|
import "../../../chunk-YNKN6RKF.js";
|
|
21
22
|
import "../../../chunk-VJVY6NPF.js";
|
|
22
|
-
import "../../../chunk-GTBGPBH6.js";
|
|
23
23
|
import "../../../chunk-AT4AWD6B.js";
|
|
24
24
|
import "../../../chunk-EWGHVZL5.js";
|
|
25
25
|
import "../../../chunk-7GHD74J3.js";
|
|
26
26
|
import "../../../chunk-7BVUTFZ5.js";
|
|
27
27
|
import "../../../chunk-ETAEB3TA.js";
|
|
28
|
-
import "../../../chunk-HVNHTM3P.js";
|
|
29
28
|
import "../../../chunk-GRGDX7JC.js";
|
|
30
|
-
import "../../../chunk-
|
|
29
|
+
import "../../../chunk-HVNHTM3P.js";
|
|
30
|
+
import "../../../chunk-X67L3NZI.js";
|
|
31
31
|
import "../../../chunk-4RJKB7LC.js";
|
|
32
|
+
import "../../../chunk-FG7GNGE3.js";
|
|
32
33
|
import "../../../chunk-G7KIKHER.js";
|
|
33
34
|
import "../../../chunk-AG43RS4Q.js";
|
|
34
35
|
import "../../../chunk-ZQJMNPCF.js";
|
|
35
|
-
import "../../../chunk-FG7GNGE3.js";
|
|
36
36
|
import "../../../chunk-6TYWM26K.js";
|
|
37
37
|
import "../../../chunk-SBRRNFOP.js";
|
|
38
38
|
import "../../../chunk-Y2GK27RX.js";
|
|
39
|
-
import "../../../chunk-H2KC5XUY.js";
|
|
40
39
|
import "../../../chunk-QVWYTQKL.js";
|
|
41
|
-
import "../../../chunk-
|
|
42
|
-
import "../../../chunk-WEAVZEE4.js";
|
|
43
|
-
import "../../../chunk-OZBB6RFM.js";
|
|
44
|
-
import "../../../chunk-BFFNSUNS.js";
|
|
40
|
+
import "../../../chunk-QBSEKZWX.js";
|
|
45
41
|
import "../../../chunk-TCMOGTPB.js";
|
|
46
42
|
import "../../../chunk-DVU5XV7L.js";
|
|
47
43
|
import "../../../chunk-IPAKWF2V.js";
|
|
48
|
-
import "../../../chunk-WVUIIBRR.js";
|
|
49
44
|
import "../../../chunk-RQRR4FEF.js";
|
|
50
45
|
import "../../../chunk-44TH3VC7.js";
|
|
51
46
|
import "../../../chunk-AL5QIRY3.js";
|
|
47
|
+
import "../../../chunk-WVUIIBRR.js";
|
|
48
|
+
import "../../../chunk-75USUR3I.js";
|
|
49
|
+
import "../../../chunk-WEAVZEE4.js";
|
|
50
|
+
import "../../../chunk-OZBB6RFM.js";
|
|
52
51
|
import "../../../chunk-URYQ24NF.js";
|
|
53
52
|
import "../../../chunk-VXWSAIB5.js";
|
|
54
53
|
import "../../../chunk-R3EQIDBX.js";
|
|
55
54
|
import "../../../chunk-5UH6QUFB.js";
|
|
56
55
|
import "../../../chunk-UCJUC5AZ.js";
|
|
57
|
-
import "../../../chunk-
|
|
56
|
+
import "../../../chunk-IY7SXEVY.js";
|
|
58
57
|
import "../../../chunk-KBJZUVLM.js";
|
|
59
|
-
import "../../../chunk-
|
|
58
|
+
import "../../../chunk-4UH72JT2.js";
|
|
59
|
+
import "../../../chunk-H2KC5XUY.js";
|
|
60
60
|
import "../../../chunk-ZSETMD4A.js";
|
|
61
|
+
import "../../../chunk-DORD2EBO.js";
|
|
61
62
|
import "../../../chunk-NKUETCDA.js";
|
|
62
63
|
import "../../../chunk-LPY6PMAY.js";
|
|
63
64
|
import "../../../chunk-IXR65MOU.js";
|
|
@@ -62,7 +62,7 @@ __export(ColumnSelectorHeaderCell_exports, {
|
|
|
62
62
|
ColumnSelectorHeaderCell: () => ColumnSelectorHeaderCell
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(ColumnSelectorHeaderCell_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_react37 = require("react");
|
|
66
66
|
|
|
67
67
|
// src/components/DataGridCell.tsx
|
|
68
68
|
var import_sortable = require("@dnd-kit/sortable");
|
|
@@ -4780,18 +4780,23 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
4780
4780
|
// src/components/EmptyCartIcon.tsx
|
|
4781
4781
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4782
4782
|
|
|
4783
|
-
// src/components/
|
|
4783
|
+
// src/components/Alert.tsx
|
|
4784
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
4784
4785
|
var import_react35 = require("react");
|
|
4785
4786
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4787
|
+
|
|
4788
|
+
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
4789
|
+
var import_react36 = require("react");
|
|
4790
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4786
4791
|
function ColumnSelectorMenuOption({
|
|
4787
4792
|
id,
|
|
4788
4793
|
testid,
|
|
4789
4794
|
column,
|
|
4790
4795
|
toggleColumnVisibility
|
|
4791
4796
|
}) {
|
|
4792
|
-
const [isVisible, setIsVisible] = (0,
|
|
4797
|
+
const [isVisible, setIsVisible] = (0, import_react36.useState)(column.getIsVisible());
|
|
4793
4798
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
4794
|
-
return /* @__PURE__ */ (0,
|
|
4799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4795
4800
|
Checkbox,
|
|
4796
4801
|
{
|
|
4797
4802
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -4807,7 +4812,7 @@ function ColumnSelectorMenuOption({
|
|
|
4807
4812
|
}
|
|
4808
4813
|
|
|
4809
4814
|
// src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
|
|
4810
|
-
var
|
|
4815
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4811
4816
|
function ColumnSelectorHeaderCell({
|
|
4812
4817
|
id,
|
|
4813
4818
|
testid,
|
|
@@ -4815,9 +4820,9 @@ function ColumnSelectorHeaderCell({
|
|
|
4815
4820
|
toggleColumnVisibility,
|
|
4816
4821
|
resetColumnVisibility
|
|
4817
4822
|
}) {
|
|
4818
|
-
const ref = (0,
|
|
4819
|
-
const [show, setShow] = (0,
|
|
4820
|
-
return /* @__PURE__ */ (0,
|
|
4823
|
+
const ref = (0, import_react37.useRef)(null);
|
|
4824
|
+
const [show, setShow] = (0, import_react37.useState)(false);
|
|
4825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
4821
4826
|
DataGridCell,
|
|
4822
4827
|
{
|
|
4823
4828
|
id,
|
|
@@ -4827,7 +4832,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4827
4832
|
color: "text-secondary-normal",
|
|
4828
4833
|
ref,
|
|
4829
4834
|
children: [
|
|
4830
|
-
/* @__PURE__ */ (0,
|
|
4835
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4831
4836
|
Button,
|
|
4832
4837
|
{
|
|
4833
4838
|
id: id ? `${id}-button` : void 0,
|
|
@@ -4835,10 +4840,10 @@ function ColumnSelectorHeaderCell({
|
|
|
4835
4840
|
onClick: () => setShow((prev) => !prev),
|
|
4836
4841
|
variant: "navigation",
|
|
4837
4842
|
iconOnly: true,
|
|
4838
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
4843
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: "tune" })
|
|
4839
4844
|
}
|
|
4840
4845
|
),
|
|
4841
|
-
/* @__PURE__ */ (0,
|
|
4846
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
4842
4847
|
Menu,
|
|
4843
4848
|
{
|
|
4844
4849
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -4849,7 +4854,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4849
4854
|
setShow,
|
|
4850
4855
|
calculateMinMaxHeight: true,
|
|
4851
4856
|
children: [
|
|
4852
|
-
/* @__PURE__ */ (0,
|
|
4857
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4853
4858
|
Button,
|
|
4854
4859
|
{
|
|
4855
4860
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -4865,7 +4870,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4865
4870
|
table.getAllColumns().filter((x) => {
|
|
4866
4871
|
var _a;
|
|
4867
4872
|
return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
4868
|
-
}).map((column) => /* @__PURE__ */ (0,
|
|
4873
|
+
}).map((column) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4869
4874
|
ColumnSelectorMenuOption,
|
|
4870
4875
|
{
|
|
4871
4876
|
id: id ? `${id}-option-${column.id}` : void 0,
|