@dmsi/wedgekit-react 0.0.413 → 0.0.415
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-7ULLUUVJ.js +61 -0
- package/dist/components/CalendarRange.cjs +39 -35
- package/dist/components/CalendarRange.css +9 -0
- package/dist/components/CalendarRange.js +6 -5
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +6 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +9 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +6 -5
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +13 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +9 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +6 -5
- package/dist/components/DataGrid/PinnedColumns.cjs +27 -23
- package/dist/components/DataGrid/PinnedColumns.css +9 -0
- package/dist/components/DataGrid/PinnedColumns.js +6 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +9 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.css +9 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +6 -5
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -10
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +9 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +6 -5
- package/dist/components/DataGrid/TableBody/index.cjs +29 -25
- package/dist/components/DataGrid/TableBody/index.css +9 -0
- package/dist/components/DataGrid/TableBody/index.js +6 -5
- package/dist/components/DataGrid/index.cjs +98 -94
- package/dist/components/DataGrid/index.css +9 -0
- package/dist/components/DataGrid/index.js +6 -5
- package/dist/components/DataGrid/utils.cjs +9 -5
- package/dist/components/DataGrid/utils.css +9 -0
- package/dist/components/DataGrid/utils.js +6 -5
- package/dist/components/DateInput.cjs +45 -41
- package/dist/components/DateInput.css +9 -0
- package/dist/components/DateInput.js +6 -5
- package/dist/components/DateRangeInput.cjs +45 -41
- package/dist/components/DateRangeInput.css +9 -0
- package/dist/components/DateRangeInput.js +6 -5
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +9 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +6 -5
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +9 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +6 -5
- package/dist/components/MobileDataGrid/index.cjs +103 -99
- package/dist/components/MobileDataGrid/index.css +9 -0
- package/dist/components/MobileDataGrid/index.js +6 -5
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/SimpleTable.cjs +485 -0
- package/dist/components/SimpleTable.js +10 -0
- package/dist/components/index.cjs +53 -0
- package/dist/components/index.css +9 -0
- package/dist/components/index.js +9 -5
- package/dist/index.css +9 -0
- package/package.json +1 -1
- package/src/components/SimpleTable.tsx +77 -0
- package/src/components/index.ts +1 -0
- package/dist/{chunk-OBY5EH47.js → chunk-BK7SPR6Y.js} +6 -6
- package/dist/{chunk-LZGYABCX.js → chunk-ZHZIIVJN.js} +3 -3
|
@@ -716,7 +716,7 @@ Currency.displayName = "Currency";
|
|
|
716
716
|
Percentage.displayName = "Percentage";
|
|
717
717
|
|
|
718
718
|
// src/components/CalendarRange.tsx
|
|
719
|
-
var
|
|
719
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
720
720
|
var import_react33 = __toESM(require("react"), 1);
|
|
721
721
|
var import_polyfill = require("@js-temporal/polyfill");
|
|
722
722
|
|
|
@@ -4747,8 +4747,12 @@ var import_react32 = require("react");
|
|
|
4747
4747
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4748
4748
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4749
4749
|
|
|
4750
|
-
// src/components/
|
|
4750
|
+
// src/components/SimpleTable.tsx
|
|
4751
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4751
4752
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4753
|
+
|
|
4754
|
+
// src/components/CalendarRange.tsx
|
|
4755
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4752
4756
|
function DateCell(_a) {
|
|
4753
4757
|
var _b = _a, {
|
|
4754
4758
|
date,
|
|
@@ -4783,12 +4787,12 @@ function DateCell(_a) {
|
|
|
4783
4787
|
"id",
|
|
4784
4788
|
"testid"
|
|
4785
4789
|
]);
|
|
4786
|
-
return /* @__PURE__ */ (0,
|
|
4790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4787
4791
|
"span",
|
|
4788
4792
|
__spreadProps(__spreadValues({}, props), {
|
|
4789
4793
|
id,
|
|
4790
4794
|
"data-testid": testid,
|
|
4791
|
-
className: (0,
|
|
4795
|
+
className: (0, import_clsx35.default)(
|
|
4792
4796
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
4793
4797
|
typography.caption,
|
|
4794
4798
|
cellPadding,
|
|
@@ -4937,12 +4941,12 @@ function CalendarRange({
|
|
|
4937
4941
|
}
|
|
4938
4942
|
return false;
|
|
4939
4943
|
}
|
|
4940
|
-
return /* @__PURE__ */ (0,
|
|
4944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4941
4945
|
"div",
|
|
4942
4946
|
{
|
|
4943
4947
|
id,
|
|
4944
4948
|
"data-testid": testid,
|
|
4945
|
-
className: (0,
|
|
4949
|
+
className: (0, import_clsx35.default)(
|
|
4946
4950
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
4947
4951
|
layoutPaddding,
|
|
4948
4952
|
layoutGap,
|
|
@@ -4950,15 +4954,15 @@ function CalendarRange({
|
|
|
4950
4954
|
// baseTransition,
|
|
4951
4955
|
"overflow-hidden"
|
|
4952
4956
|
),
|
|
4953
|
-
children: /* @__PURE__ */ (0,
|
|
4957
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4954
4958
|
"div",
|
|
4955
4959
|
{
|
|
4956
|
-
className: (0,
|
|
4960
|
+
className: (0, import_clsx35.default)(
|
|
4957
4961
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
4958
4962
|
layoutGap
|
|
4959
4963
|
),
|
|
4960
4964
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
4961
|
-
return /* @__PURE__ */ (0,
|
|
4965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4962
4966
|
CalendarPane,
|
|
4963
4967
|
{
|
|
4964
4968
|
getMonthData,
|
|
@@ -5023,38 +5027,38 @@ function CalendarPane({
|
|
|
5023
5027
|
const month = getMonthData(offset);
|
|
5024
5028
|
const totalCells = 42;
|
|
5025
5029
|
const emptyCells = month.firstDayOffset;
|
|
5026
|
-
return /* @__PURE__ */ (0,
|
|
5027
|
-
/* @__PURE__ */ (0,
|
|
5030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react33.default.Fragment, { children: [
|
|
5031
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
5028
5032
|
"div",
|
|
5029
5033
|
{
|
|
5030
|
-
className: (0,
|
|
5034
|
+
className: (0, import_clsx35.default)("flex flex-col"),
|
|
5031
5035
|
children: [
|
|
5032
|
-
/* @__PURE__ */ (0,
|
|
5036
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
5033
5037
|
"div",
|
|
5034
5038
|
{
|
|
5035
|
-
className: (0,
|
|
5039
|
+
className: (0, import_clsx35.default)(
|
|
5036
5040
|
"flex flex-row items-center justify-between",
|
|
5037
5041
|
typography.label,
|
|
5038
5042
|
"text-text-action-primary-normal"
|
|
5039
5043
|
),
|
|
5040
5044
|
children: [
|
|
5041
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
5045
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5042
5046
|
"button",
|
|
5043
5047
|
{
|
|
5044
5048
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
5045
5049
|
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
5046
5050
|
type: "button",
|
|
5047
|
-
className: (0,
|
|
5051
|
+
className: (0, import_clsx35.default)(
|
|
5048
5052
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5049
5053
|
componentPadding
|
|
5050
5054
|
),
|
|
5051
5055
|
"aria-label": "Previous month",
|
|
5052
5056
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5053
|
-
children: /* @__PURE__ */ (0,
|
|
5057
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5054
5058
|
}
|
|
5055
|
-
) : /* @__PURE__ */ (0,
|
|
5056
|
-
/* @__PURE__ */ (0,
|
|
5057
|
-
/* @__PURE__ */ (0,
|
|
5059
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "mr-1") }),
|
|
5060
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5061
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5058
5062
|
"button",
|
|
5059
5063
|
{
|
|
5060
5064
|
ref: (el) => {
|
|
@@ -5069,13 +5073,13 @@ function CalendarPane({
|
|
|
5069
5073
|
children: month.name
|
|
5070
5074
|
}
|
|
5071
5075
|
),
|
|
5072
|
-
/* @__PURE__ */ (0,
|
|
5076
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5073
5077
|
Menu,
|
|
5074
5078
|
{
|
|
5075
5079
|
show: monthMenuOpen,
|
|
5076
5080
|
positionTo: monthMenuRef,
|
|
5077
5081
|
setShow: () => setMonthMenuOpen(false),
|
|
5078
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5082
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5079
5083
|
MenuOption,
|
|
5080
5084
|
{
|
|
5081
5085
|
selected: baseMonth.month === x + 1,
|
|
@@ -5089,7 +5093,7 @@ function CalendarPane({
|
|
|
5089
5093
|
))
|
|
5090
5094
|
}
|
|
5091
5095
|
),
|
|
5092
|
-
/* @__PURE__ */ (0,
|
|
5096
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5093
5097
|
"button",
|
|
5094
5098
|
{
|
|
5095
5099
|
ref: (el) => {
|
|
@@ -5104,13 +5108,13 @@ function CalendarPane({
|
|
|
5104
5108
|
children: month.year
|
|
5105
5109
|
}
|
|
5106
5110
|
),
|
|
5107
|
-
/* @__PURE__ */ (0,
|
|
5111
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5108
5112
|
Menu,
|
|
5109
5113
|
{
|
|
5110
5114
|
show: yearMenuOpen,
|
|
5111
5115
|
positionTo: yearMenuRef,
|
|
5112
5116
|
setShow: () => setYearMenuOpen(false),
|
|
5113
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5117
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5114
5118
|
MenuOption,
|
|
5115
5119
|
{
|
|
5116
5120
|
selected: baseMonth.year === y,
|
|
@@ -5125,28 +5129,28 @@ function CalendarPane({
|
|
|
5125
5129
|
}
|
|
5126
5130
|
)
|
|
5127
5131
|
] }),
|
|
5128
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5132
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5129
5133
|
"button",
|
|
5130
5134
|
{
|
|
5131
5135
|
id: id ? `${id}-next-month-button` : void 0,
|
|
5132
5136
|
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
5133
5137
|
type: "button",
|
|
5134
|
-
className: (0,
|
|
5138
|
+
className: (0, import_clsx35.default)(
|
|
5135
5139
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5136
5140
|
componentPadding
|
|
5137
5141
|
),
|
|
5138
5142
|
"aria-label": "Next month",
|
|
5139
5143
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
5140
|
-
children: /* @__PURE__ */ (0,
|
|
5144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
5141
5145
|
}
|
|
5142
|
-
) : /* @__PURE__ */ (0,
|
|
5146
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "ml-1") })
|
|
5143
5147
|
]
|
|
5144
5148
|
}
|
|
5145
5149
|
),
|
|
5146
|
-
/* @__PURE__ */ (0,
|
|
5150
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5147
5151
|
"span",
|
|
5148
5152
|
{
|
|
5149
|
-
className: (0,
|
|
5153
|
+
className: (0, import_clsx35.default)(
|
|
5150
5154
|
typography.caption,
|
|
5151
5155
|
"text-text-secondary-normal text-center",
|
|
5152
5156
|
"w-10"
|
|
@@ -5155,7 +5159,7 @@ function CalendarPane({
|
|
|
5155
5159
|
},
|
|
5156
5160
|
d
|
|
5157
5161
|
)) }),
|
|
5158
|
-
/* @__PURE__ */ (0,
|
|
5162
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
5159
5163
|
const day = i - emptyCells + 1;
|
|
5160
5164
|
const date = month.date.with({ day: 1 }).add({
|
|
5161
5165
|
days: i - emptyCells
|
|
@@ -5169,7 +5173,7 @@ function CalendarPane({
|
|
|
5169
5173
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
5170
5174
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
5171
5175
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
5172
|
-
return /* @__PURE__ */ (0,
|
|
5176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5173
5177
|
DateCell,
|
|
5174
5178
|
{
|
|
5175
5179
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -5194,10 +5198,10 @@ function CalendarPane({
|
|
|
5194
5198
|
]
|
|
5195
5199
|
}
|
|
5196
5200
|
),
|
|
5197
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
5201
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5198
5202
|
"div",
|
|
5199
5203
|
{
|
|
5200
|
-
className: (0,
|
|
5204
|
+
className: (0, import_clsx35.default)(
|
|
5201
5205
|
"self-stretch bg-border-primary-normal rounded-base",
|
|
5202
5206
|
// 1px width, full height, matches Figma divider
|
|
5203
5207
|
"w-px"
|
|
@@ -5208,7 +5212,7 @@ function CalendarPane({
|
|
|
5208
5212
|
}
|
|
5209
5213
|
|
|
5210
5214
|
// src/components/DateRangeInput.tsx
|
|
5211
|
-
var
|
|
5215
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5212
5216
|
var DateRangeInput = (_a) => {
|
|
5213
5217
|
var _b = _a, {
|
|
5214
5218
|
id,
|
|
@@ -5625,8 +5629,8 @@ var DateRangeInput = (_a) => {
|
|
|
5625
5629
|
}
|
|
5626
5630
|
}
|
|
5627
5631
|
};
|
|
5628
|
-
return /* @__PURE__ */ (0,
|
|
5629
|
-
/* @__PURE__ */ (0,
|
|
5632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
5633
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5630
5634
|
InputBase,
|
|
5631
5635
|
__spreadProps(__spreadValues({
|
|
5632
5636
|
id,
|
|
@@ -5640,7 +5644,7 @@ var DateRangeInput = (_a) => {
|
|
|
5640
5644
|
placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
|
|
5641
5645
|
disabled,
|
|
5642
5646
|
readOnly,
|
|
5643
|
-
after: /* @__PURE__ */ (0,
|
|
5647
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { name: "calendar_month" }),
|
|
5644
5648
|
onFocus: handleFocus,
|
|
5645
5649
|
onClick: handleClick,
|
|
5646
5650
|
onChange: handleInputChange,
|
|
@@ -5651,7 +5655,7 @@ var DateRangeInput = (_a) => {
|
|
|
5651
5655
|
})
|
|
5652
5656
|
),
|
|
5653
5657
|
visible && !readOnly && (0, import_react_dom4.createPortal)(
|
|
5654
|
-
/* @__PURE__ */ (0,
|
|
5658
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5655
5659
|
"div",
|
|
5656
5660
|
{
|
|
5657
5661
|
ref: (el) => {
|
|
@@ -5663,7 +5667,7 @@ var DateRangeInput = (_a) => {
|
|
|
5663
5667
|
left: `${calendarPosition.left}px`,
|
|
5664
5668
|
minWidth: `${calendarPosition.width}px`
|
|
5665
5669
|
},
|
|
5666
|
-
children: /* @__PURE__ */ (0,
|
|
5670
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5667
5671
|
CalendarRange,
|
|
5668
5672
|
{
|
|
5669
5673
|
id: id ? `${id}-calendar` : void 0,
|
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarRange
|
|
3
3
|
} from "../chunk-UOHCOOC2.js";
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-M7INAUAJ.js";
|
|
4
|
+
import "../chunk-BK7SPR6Y.js";
|
|
6
5
|
import "../chunk-6I5LZ2ZC.js";
|
|
6
|
+
import "../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../chunk-44TDIHUP.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-ZHZIIVJN.js";
|
|
9
|
+
import "../chunk-2IKT6IHB.js";
|
|
9
10
|
import "../chunk-G5DEC7H3.js";
|
|
10
11
|
import "../chunk-3X3Y4TMS.js";
|
|
11
12
|
import "../chunk-BQNPOGD5.js";
|
|
12
13
|
import "../chunk-MBZ55T2D.js";
|
|
13
|
-
import "../chunk-2IKT6IHB.js";
|
|
14
14
|
import "../chunk-AA6GE3TH.js";
|
|
15
15
|
import "../chunk-KZZKQLKF.js";
|
|
16
16
|
import "../chunk-5IFPG6TS.js";
|
|
17
17
|
import "../chunk-AJ5M6MVX.js";
|
|
18
18
|
import "../chunk-M6TSTDNZ.js";
|
|
19
|
+
import "../chunk-EWGHVZL5.js";
|
|
19
20
|
import "../chunk-QQ5G773N.js";
|
|
20
21
|
import "../chunk-AT4AWD6B.js";
|
|
21
|
-
import "../chunk-EWGHVZL5.js";
|
|
22
22
|
import "../chunk-J5V2JRIK.js";
|
|
23
|
+
import "../chunk-7ULLUUVJ.js";
|
|
23
24
|
import "../chunk-D6YCMQPO.js";
|
|
24
25
|
import "../chunk-4RJKB7LC.js";
|
|
25
26
|
import "../chunk-XM7IQHBU.js";
|
|
@@ -4666,8 +4666,12 @@ var import_react31 = require("react");
|
|
|
4666
4666
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4667
4667
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4668
4668
|
|
|
4669
|
-
// src/components/
|
|
4669
|
+
// src/components/SimpleTable.tsx
|
|
4670
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4670
4671
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4672
|
+
|
|
4673
|
+
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
4674
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4671
4675
|
function ColumnSelector() {
|
|
4672
4676
|
const context = useGridContext();
|
|
4673
4677
|
const ref = (0, import_react32.useRef)(null);
|
|
@@ -4688,7 +4692,7 @@ function ColumnSelector() {
|
|
|
4688
4692
|
},
|
|
4689
4693
|
[dispatch]
|
|
4690
4694
|
);
|
|
4691
|
-
return /* @__PURE__ */ (0,
|
|
4695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
4692
4696
|
"div",
|
|
4693
4697
|
{
|
|
4694
4698
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -4696,7 +4700,7 @@ function ColumnSelector() {
|
|
|
4696
4700
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
4697
4701
|
ref,
|
|
4698
4702
|
children: [
|
|
4699
|
-
/* @__PURE__ */ (0,
|
|
4703
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4700
4704
|
Button,
|
|
4701
4705
|
{
|
|
4702
4706
|
id: id ? `${id}-button` : void 0,
|
|
@@ -4705,10 +4709,10 @@ function ColumnSelector() {
|
|
|
4705
4709
|
variant: "navigation",
|
|
4706
4710
|
iconOnly: true,
|
|
4707
4711
|
size: 24,
|
|
4708
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
4712
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "tune" })
|
|
4709
4713
|
}
|
|
4710
4714
|
),
|
|
4711
|
-
/* @__PURE__ */ (0,
|
|
4715
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
4712
4716
|
Menu,
|
|
4713
4717
|
{
|
|
4714
4718
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -4719,7 +4723,7 @@ function ColumnSelector() {
|
|
|
4719
4723
|
setShow,
|
|
4720
4724
|
calculateMinMaxHeight: true,
|
|
4721
4725
|
children: [
|
|
4722
|
-
/* @__PURE__ */ (0,
|
|
4726
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4723
4727
|
Button,
|
|
4724
4728
|
{
|
|
4725
4729
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -4737,11 +4741,11 @@ function ColumnSelector() {
|
|
|
4737
4741
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
4738
4742
|
}).map((column) => {
|
|
4739
4743
|
var _a, _b, _c;
|
|
4740
|
-
return /* @__PURE__ */ (0,
|
|
4744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4741
4745
|
MenuOption,
|
|
4742
4746
|
{
|
|
4743
4747
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
4744
|
-
children: /* @__PURE__ */ (0,
|
|
4748
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4745
4749
|
Checkbox,
|
|
4746
4750
|
{
|
|
4747
4751
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelector
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../../chunk-BK7SPR6Y.js";
|
|
5
4
|
import "../../../chunk-6I5LZ2ZC.js";
|
|
5
|
+
import "../../../chunk-M7INAUAJ.js";
|
|
6
6
|
import "../../../chunk-44TDIHUP.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-ZHZIIVJN.js";
|
|
8
|
+
import "../../../chunk-2IKT6IHB.js";
|
|
8
9
|
import "../../../chunk-G5DEC7H3.js";
|
|
9
10
|
import "../../../chunk-3X3Y4TMS.js";
|
|
10
11
|
import "../../../chunk-BQNPOGD5.js";
|
|
11
12
|
import "../../../chunk-MBZ55T2D.js";
|
|
12
|
-
import "../../../chunk-2IKT6IHB.js";
|
|
13
13
|
import "../../../chunk-AA6GE3TH.js";
|
|
14
14
|
import "../../../chunk-KZZKQLKF.js";
|
|
15
15
|
import "../../../chunk-5IFPG6TS.js";
|
|
16
16
|
import "../../../chunk-AJ5M6MVX.js";
|
|
17
17
|
import "../../../chunk-M6TSTDNZ.js";
|
|
18
|
+
import "../../../chunk-EWGHVZL5.js";
|
|
18
19
|
import "../../../chunk-QQ5G773N.js";
|
|
19
20
|
import "../../../chunk-AT4AWD6B.js";
|
|
20
|
-
import "../../../chunk-EWGHVZL5.js";
|
|
21
21
|
import "../../../chunk-J5V2JRIK.js";
|
|
22
|
+
import "../../../chunk-7ULLUUVJ.js";
|
|
22
23
|
import "../../../chunk-D6YCMQPO.js";
|
|
23
24
|
import "../../../chunk-4RJKB7LC.js";
|
|
24
25
|
import "../../../chunk-XM7IQHBU.js";
|
|
@@ -4868,8 +4868,12 @@ var import_react31 = require("react");
|
|
|
4868
4868
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4869
4869
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4870
4870
|
|
|
4871
|
-
// src/components/
|
|
4871
|
+
// src/components/SimpleTable.tsx
|
|
4872
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4872
4873
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4874
|
+
|
|
4875
|
+
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
4876
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4873
4877
|
function ColumnSelector() {
|
|
4874
4878
|
const context = useGridContext();
|
|
4875
4879
|
const ref = (0, import_react32.useRef)(null);
|
|
@@ -4890,7 +4894,7 @@ function ColumnSelector() {
|
|
|
4890
4894
|
},
|
|
4891
4895
|
[dispatch]
|
|
4892
4896
|
);
|
|
4893
|
-
return /* @__PURE__ */ (0,
|
|
4897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4894
4898
|
"div",
|
|
4895
4899
|
{
|
|
4896
4900
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -4898,7 +4902,7 @@ function ColumnSelector() {
|
|
|
4898
4902
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
4899
4903
|
ref,
|
|
4900
4904
|
children: [
|
|
4901
|
-
/* @__PURE__ */ (0,
|
|
4905
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4902
4906
|
Button,
|
|
4903
4907
|
{
|
|
4904
4908
|
id: id ? `${id}-button` : void 0,
|
|
@@ -4907,10 +4911,10 @@ function ColumnSelector() {
|
|
|
4907
4911
|
variant: "navigation",
|
|
4908
4912
|
iconOnly: true,
|
|
4909
4913
|
size: 24,
|
|
4910
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
4914
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: "tune" })
|
|
4911
4915
|
}
|
|
4912
4916
|
),
|
|
4913
|
-
/* @__PURE__ */ (0,
|
|
4917
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4914
4918
|
Menu,
|
|
4915
4919
|
{
|
|
4916
4920
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -4921,7 +4925,7 @@ function ColumnSelector() {
|
|
|
4921
4925
|
setShow,
|
|
4922
4926
|
calculateMinMaxHeight: true,
|
|
4923
4927
|
children: [
|
|
4924
|
-
/* @__PURE__ */ (0,
|
|
4928
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4925
4929
|
Button,
|
|
4926
4930
|
{
|
|
4927
4931
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -4939,11 +4943,11 @@ function ColumnSelector() {
|
|
|
4939
4943
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
4940
4944
|
}).map((column) => {
|
|
4941
4945
|
var _a, _b, _c;
|
|
4942
|
-
return /* @__PURE__ */ (0,
|
|
4946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4943
4947
|
MenuOption,
|
|
4944
4948
|
{
|
|
4945
4949
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
4946
|
-
children: /* @__PURE__ */ (0,
|
|
4950
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4947
4951
|
Checkbox,
|
|
4948
4952
|
{
|
|
4949
4953
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|
|
@@ -4973,7 +4977,7 @@ function ColumnSelector() {
|
|
|
4973
4977
|
}
|
|
4974
4978
|
|
|
4975
4979
|
// src/components/MobileDataGrid/MobileDataGridHeader.tsx
|
|
4976
|
-
var
|
|
4980
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4977
4981
|
function MobileDataGridHeader({
|
|
4978
4982
|
header: Header,
|
|
4979
4983
|
enableColumnSelector,
|
|
@@ -4991,15 +4995,15 @@ function MobileDataGridHeader({
|
|
|
4991
4995
|
handleRowSelectAll
|
|
4992
4996
|
} = ctx;
|
|
4993
4997
|
if (typeof Header === "undefined" && !primaryKey) return null;
|
|
4994
|
-
if (typeof Header === "function") return /* @__PURE__ */ (0,
|
|
4998
|
+
if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Header, __spreadValues({}, ctx));
|
|
4995
4999
|
if (typeof Header === "string" || primaryKey)
|
|
4996
|
-
return /* @__PURE__ */ (0,
|
|
5000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4997
5001
|
"div",
|
|
4998
5002
|
{
|
|
4999
5003
|
id: id ? `${id}-header` : void 0,
|
|
5000
5004
|
"data-testid": testid ? `${testid}-header` : void 0,
|
|
5001
5005
|
className: "sticky top-0",
|
|
5002
|
-
children: /* @__PURE__ */ (0,
|
|
5006
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5003
5007
|
Stack,
|
|
5004
5008
|
{
|
|
5005
5009
|
horizontal: true,
|
|
@@ -5008,7 +5012,7 @@ function MobileDataGridHeader({
|
|
|
5008
5012
|
justify: "between",
|
|
5009
5013
|
backgroundColor: "background-primary-normal",
|
|
5010
5014
|
children: [
|
|
5011
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
5015
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5012
5016
|
Checkbox,
|
|
5013
5017
|
{
|
|
5014
5018
|
id: id ? `${id}-select-all-checkbox` : void 0,
|
|
@@ -5018,7 +5022,7 @@ function MobileDataGridHeader({
|
|
|
5018
5022
|
onChange: handleRowSelectAll
|
|
5019
5023
|
}
|
|
5020
5024
|
) }),
|
|
5021
|
-
/* @__PURE__ */ (0,
|
|
5025
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5022
5026
|
Stack,
|
|
5023
5027
|
{
|
|
5024
5028
|
horizontal: true,
|
|
@@ -5026,10 +5030,10 @@ function MobileDataGridHeader({
|
|
|
5026
5030
|
items: "center",
|
|
5027
5031
|
sizing: "component",
|
|
5028
5032
|
padding: true,
|
|
5029
|
-
children: /* @__PURE__ */ (0,
|
|
5033
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.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() })
|
|
5030
5034
|
}
|
|
5031
5035
|
),
|
|
5032
|
-
enableColumnSelector && /* @__PURE__ */ (0,
|
|
5036
|
+
enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ColumnSelector, {})
|
|
5033
5037
|
]
|
|
5034
5038
|
}
|
|
5035
5039
|
) })
|
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MobileDataGridHeader
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../chunk-BK7SPR6Y.js";
|
|
5
4
|
import "../../chunk-6I5LZ2ZC.js";
|
|
5
|
+
import "../../chunk-M7INAUAJ.js";
|
|
6
6
|
import "../../chunk-44TDIHUP.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-ZHZIIVJN.js";
|
|
8
|
+
import "../../chunk-2IKT6IHB.js";
|
|
8
9
|
import "../../chunk-G5DEC7H3.js";
|
|
9
10
|
import "../../chunk-3X3Y4TMS.js";
|
|
10
11
|
import "../../chunk-BQNPOGD5.js";
|
|
11
12
|
import "../../chunk-MBZ55T2D.js";
|
|
12
|
-
import "../../chunk-2IKT6IHB.js";
|
|
13
13
|
import "../../chunk-AA6GE3TH.js";
|
|
14
14
|
import "../../chunk-KZZKQLKF.js";
|
|
15
15
|
import "../../chunk-5IFPG6TS.js";
|
|
16
16
|
import "../../chunk-AJ5M6MVX.js";
|
|
17
17
|
import "../../chunk-M6TSTDNZ.js";
|
|
18
|
+
import "../../chunk-EWGHVZL5.js";
|
|
18
19
|
import "../../chunk-QQ5G773N.js";
|
|
19
20
|
import "../../chunk-AT4AWD6B.js";
|
|
20
|
-
import "../../chunk-EWGHVZL5.js";
|
|
21
21
|
import "../../chunk-J5V2JRIK.js";
|
|
22
|
+
import "../../chunk-7ULLUUVJ.js";
|
|
22
23
|
import "../../chunk-D6YCMQPO.js";
|
|
23
24
|
import "../../chunk-4RJKB7LC.js";
|
|
24
25
|
import "../../chunk-XM7IQHBU.js";
|