@dmsi/wedgekit-react 0.0.414 → 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
|
@@ -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
|
MobileDataGrid
|
|
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";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductImagePreview
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-ZHZIIVJN.js";
|
|
4
|
+
import "../../chunk-2IKT6IHB.js";
|
|
4
5
|
import "../../chunk-G5DEC7H3.js";
|
|
5
6
|
import "../../chunk-3X3Y4TMS.js";
|
|
6
7
|
import "../../chunk-BQNPOGD5.js";
|
|
7
8
|
import "../../chunk-MBZ55T2D.js";
|
|
8
|
-
import "../../chunk-2IKT6IHB.js";
|
|
9
9
|
import "../../chunk-AT4AWD6B.js";
|
|
10
10
|
import "../../chunk-SBRRNFOP.js";
|
|
11
11
|
import "../../chunk-ER6RCOH3.js";
|
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/components/SimpleTable.tsx
|
|
60
|
+
var SimpleTable_exports = {};
|
|
61
|
+
__export(SimpleTable_exports, {
|
|
62
|
+
SimpleTable: () => SimpleTable
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(SimpleTable_exports);
|
|
65
|
+
|
|
66
|
+
// src/components/Subheader.tsx
|
|
67
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
68
|
+
|
|
69
|
+
// src/classNames.ts
|
|
70
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
71
|
+
var typography = {
|
|
72
|
+
display1: (0, import_clsx.default)(
|
|
73
|
+
"font-sans font-semibold",
|
|
74
|
+
"text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
|
|
75
|
+
"leading-display-1-mobile desktop:leading-display-1-desktop"
|
|
76
|
+
),
|
|
77
|
+
display2: (0, import_clsx.default)(
|
|
78
|
+
"font-sans font-bold",
|
|
79
|
+
"text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
|
|
80
|
+
"leading-display-2-mobile desktop:leading-display-2-desktop"
|
|
81
|
+
),
|
|
82
|
+
heading1: (0, import_clsx.default)(
|
|
83
|
+
"font-sans font-semibold",
|
|
84
|
+
"text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
|
|
85
|
+
"leading-heading-1-mobile desktop:leading-heading-1-desktop"
|
|
86
|
+
),
|
|
87
|
+
heading2: (0, import_clsx.default)(
|
|
88
|
+
"font-sans font-normal",
|
|
89
|
+
"text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
|
|
90
|
+
"leading-heading-2-mobile desktop:leading-heading-2-desktop"
|
|
91
|
+
),
|
|
92
|
+
heading3: (0, import_clsx.default)(
|
|
93
|
+
"font-sans font-semibold",
|
|
94
|
+
"text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
|
|
95
|
+
"leading-heading-3-mobile desktop:leading-heading-3-desktop"
|
|
96
|
+
),
|
|
97
|
+
subheader: (0, import_clsx.default)(
|
|
98
|
+
"font-sans font-semibold",
|
|
99
|
+
"text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
|
|
100
|
+
"leading-subheader-mobile desktop:leading-subheader-desktop"
|
|
101
|
+
),
|
|
102
|
+
link: (0, import_clsx.default)(
|
|
103
|
+
"font-sans font-normal",
|
|
104
|
+
"text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
|
|
105
|
+
"leading-link-mobile desktop:leading-link-desktop"
|
|
106
|
+
),
|
|
107
|
+
buttonLabel: (0, import_clsx.default)(
|
|
108
|
+
"font-sans font-semibold",
|
|
109
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
110
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
111
|
+
),
|
|
112
|
+
label: (0, import_clsx.default)(
|
|
113
|
+
"font-sans font-semibold",
|
|
114
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
115
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
116
|
+
),
|
|
117
|
+
paragraph: (0, import_clsx.default)(
|
|
118
|
+
"font-sans font-normal",
|
|
119
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
120
|
+
"leading-paragraph-mobile desktop:leading-paragraph-desktop"
|
|
121
|
+
),
|
|
122
|
+
caption: (0, import_clsx.default)(
|
|
123
|
+
"font-sans font-normal",
|
|
124
|
+
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
125
|
+
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
126
|
+
),
|
|
127
|
+
breadcrumb: (0, import_clsx.default)(
|
|
128
|
+
"font-sans font-normal",
|
|
129
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
130
|
+
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
|
|
131
|
+
)
|
|
132
|
+
};
|
|
133
|
+
var baseTransition = (0, import_clsx.default)(
|
|
134
|
+
"transition-colors duration-100 ease-in-out"
|
|
135
|
+
);
|
|
136
|
+
var componentGap = (0, import_clsx.default)(
|
|
137
|
+
"gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
|
|
138
|
+
);
|
|
139
|
+
var paddingUsingComponentGap = (0, import_clsx.default)(
|
|
140
|
+
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
141
|
+
);
|
|
142
|
+
var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
143
|
+
"px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
|
|
144
|
+
);
|
|
145
|
+
var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
146
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
147
|
+
);
|
|
148
|
+
var componentPadding = (0, import_clsx.default)(
|
|
149
|
+
"p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
150
|
+
);
|
|
151
|
+
var componentPaddingBottom = (0, import_clsx.default)(
|
|
152
|
+
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
153
|
+
);
|
|
154
|
+
var componentPaddingX = (0, import_clsx.default)(
|
|
155
|
+
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
|
|
156
|
+
);
|
|
157
|
+
var componentPaddingY = (0, import_clsx.default)(
|
|
158
|
+
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
159
|
+
);
|
|
160
|
+
var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
|
|
161
|
+
"px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
|
|
162
|
+
);
|
|
163
|
+
var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
|
|
164
|
+
"py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
165
|
+
);
|
|
166
|
+
var componentPaddingMinusBorder = (0, import_clsx.default)(
|
|
167
|
+
"p-[calc(var(--spacing-mobile-component-padding)_-_1px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_1px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_1px)]"
|
|
168
|
+
);
|
|
169
|
+
var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
|
|
170
|
+
"p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
|
|
171
|
+
);
|
|
172
|
+
var layoutPaddding = (0, import_clsx.default)(
|
|
173
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
174
|
+
);
|
|
175
|
+
var layoutPaddingBottom = (0, import_clsx.default)(
|
|
176
|
+
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
177
|
+
);
|
|
178
|
+
var layoutPaddingY = (0, import_clsx.default)(
|
|
179
|
+
"py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
|
|
180
|
+
);
|
|
181
|
+
var containerPaddingX = (0, import_clsx.default)(
|
|
182
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
|
|
183
|
+
);
|
|
184
|
+
var containerPaddingY = (0, import_clsx.default)(
|
|
185
|
+
"py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
|
|
186
|
+
);
|
|
187
|
+
var layoutGroupGapPaddingY = (0, import_clsx.default)(
|
|
188
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
189
|
+
);
|
|
190
|
+
var layoutGroupGap = (0, import_clsx.default)(
|
|
191
|
+
"gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
|
|
192
|
+
);
|
|
193
|
+
var layoutGap = (0, import_clsx.default)(
|
|
194
|
+
"gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
|
|
195
|
+
);
|
|
196
|
+
var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
197
|
+
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
// src/components/Subheader.tsx
|
|
201
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
202
|
+
var Subheader = (_a) => {
|
|
203
|
+
var _b = _a, {
|
|
204
|
+
className,
|
|
205
|
+
children,
|
|
206
|
+
as = "span",
|
|
207
|
+
align,
|
|
208
|
+
color,
|
|
209
|
+
tall,
|
|
210
|
+
id,
|
|
211
|
+
testid
|
|
212
|
+
} = _b, props = __objRest(_b, [
|
|
213
|
+
"className",
|
|
214
|
+
"children",
|
|
215
|
+
"as",
|
|
216
|
+
"align",
|
|
217
|
+
"color",
|
|
218
|
+
"tall",
|
|
219
|
+
"id",
|
|
220
|
+
"testid"
|
|
221
|
+
]);
|
|
222
|
+
const Element = as;
|
|
223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
224
|
+
Element,
|
|
225
|
+
__spreadProps(__spreadValues({
|
|
226
|
+
id,
|
|
227
|
+
"data-testid": testid,
|
|
228
|
+
className: (0, import_clsx2.default)(
|
|
229
|
+
typography.subheader,
|
|
230
|
+
className,
|
|
231
|
+
align === "left" && "text-left",
|
|
232
|
+
align === "center" && "text-center",
|
|
233
|
+
align === "right" && "text-right",
|
|
234
|
+
tall && "!leading-6"
|
|
235
|
+
),
|
|
236
|
+
style: __spreadProps(__spreadValues({}, props.style), {
|
|
237
|
+
color: color ? `var(--color-${color})` : void 0
|
|
238
|
+
})
|
|
239
|
+
}, props), {
|
|
240
|
+
children
|
|
241
|
+
})
|
|
242
|
+
);
|
|
243
|
+
};
|
|
244
|
+
Subheader.displayName = "Subheader";
|
|
245
|
+
|
|
246
|
+
// src/components/SimpleTable.tsx
|
|
247
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
248
|
+
|
|
249
|
+
// src/components/Stack.tsx
|
|
250
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
251
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
252
|
+
var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx3.default)(
|
|
253
|
+
"flex",
|
|
254
|
+
items === "start" && "items-start",
|
|
255
|
+
grow && "grow",
|
|
256
|
+
items === "start" && "items-start",
|
|
257
|
+
items === "center" && "items-center",
|
|
258
|
+
items === "end" && "items-end",
|
|
259
|
+
items === "start-center" && "items-start desktop:items-center",
|
|
260
|
+
justify === "start" && "justify-start",
|
|
261
|
+
justify === "center" && "justify-center",
|
|
262
|
+
justify === "end" && "justify-end",
|
|
263
|
+
justify === "end" && "justify-end",
|
|
264
|
+
justify === "between" && "justify-between",
|
|
265
|
+
justify === "around" && "justify-around"
|
|
266
|
+
);
|
|
267
|
+
var useGapClassNames = (sizing) => {
|
|
268
|
+
return (0, import_clsx3.default)(
|
|
269
|
+
sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
270
|
+
sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
271
|
+
sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
272
|
+
sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
|
|
273
|
+
);
|
|
274
|
+
};
|
|
275
|
+
var Stack = (_a) => {
|
|
276
|
+
var _b = _a, {
|
|
277
|
+
children,
|
|
278
|
+
items,
|
|
279
|
+
justify,
|
|
280
|
+
grow,
|
|
281
|
+
padding,
|
|
282
|
+
paddingX,
|
|
283
|
+
paddingY,
|
|
284
|
+
margin,
|
|
285
|
+
marginX,
|
|
286
|
+
marginY,
|
|
287
|
+
horizontal,
|
|
288
|
+
horizontalMobile,
|
|
289
|
+
elevation = 0,
|
|
290
|
+
rounded,
|
|
291
|
+
centered,
|
|
292
|
+
width,
|
|
293
|
+
minHeight,
|
|
294
|
+
maxWidth,
|
|
295
|
+
minWidth,
|
|
296
|
+
height,
|
|
297
|
+
maxHeight,
|
|
298
|
+
borderColor,
|
|
299
|
+
backgroundColor,
|
|
300
|
+
sizing = "none",
|
|
301
|
+
overflowY = "inherit",
|
|
302
|
+
overflowX = "inherit",
|
|
303
|
+
flexShrink,
|
|
304
|
+
flexGrow,
|
|
305
|
+
position,
|
|
306
|
+
top,
|
|
307
|
+
left,
|
|
308
|
+
id,
|
|
309
|
+
noGap,
|
|
310
|
+
marginTop,
|
|
311
|
+
marginBottom,
|
|
312
|
+
testid,
|
|
313
|
+
bottom,
|
|
314
|
+
zIndex,
|
|
315
|
+
flexWrap
|
|
316
|
+
} = _b, props = __objRest(_b, [
|
|
317
|
+
"children",
|
|
318
|
+
"items",
|
|
319
|
+
"justify",
|
|
320
|
+
"grow",
|
|
321
|
+
"padding",
|
|
322
|
+
"paddingX",
|
|
323
|
+
"paddingY",
|
|
324
|
+
"margin",
|
|
325
|
+
"marginX",
|
|
326
|
+
"marginY",
|
|
327
|
+
"horizontal",
|
|
328
|
+
"horizontalMobile",
|
|
329
|
+
"elevation",
|
|
330
|
+
"rounded",
|
|
331
|
+
"centered",
|
|
332
|
+
"width",
|
|
333
|
+
"minHeight",
|
|
334
|
+
"maxWidth",
|
|
335
|
+
"minWidth",
|
|
336
|
+
"height",
|
|
337
|
+
"maxHeight",
|
|
338
|
+
"borderColor",
|
|
339
|
+
"backgroundColor",
|
|
340
|
+
"sizing",
|
|
341
|
+
"overflowY",
|
|
342
|
+
"overflowX",
|
|
343
|
+
"flexShrink",
|
|
344
|
+
"flexGrow",
|
|
345
|
+
"position",
|
|
346
|
+
"top",
|
|
347
|
+
"left",
|
|
348
|
+
"id",
|
|
349
|
+
"noGap",
|
|
350
|
+
"marginTop",
|
|
351
|
+
"marginBottom",
|
|
352
|
+
"testid",
|
|
353
|
+
"bottom",
|
|
354
|
+
"zIndex",
|
|
355
|
+
"flexWrap"
|
|
356
|
+
]);
|
|
357
|
+
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
358
|
+
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
359
|
+
const gapClassNames = useGapClassNames(sizing);
|
|
360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
361
|
+
"div",
|
|
362
|
+
__spreadProps(__spreadValues({
|
|
363
|
+
id,
|
|
364
|
+
"data-testid": testid
|
|
365
|
+
}, props), {
|
|
366
|
+
style: {
|
|
367
|
+
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
368
|
+
maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
|
|
369
|
+
maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
|
|
370
|
+
minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
|
|
371
|
+
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
372
|
+
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
373
|
+
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
374
|
+
backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
|
|
375
|
+
flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
|
|
376
|
+
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
377
|
+
position: position !== void 0 ? position : void 0,
|
|
378
|
+
top: top !== void 0 ? `${top}px` : void 0,
|
|
379
|
+
bottom: bottom !== void 0 ? `${bottom}px` : void 0,
|
|
380
|
+
left: left !== void 0 ? `${left}px` : void 0,
|
|
381
|
+
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
382
|
+
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
383
|
+
zIndex: zIndex !== void 0 ? zIndex : void 0,
|
|
384
|
+
flexWrap,
|
|
385
|
+
paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
|
|
386
|
+
gap: (_g = props.style) == null ? void 0 : _g.gap
|
|
387
|
+
},
|
|
388
|
+
className: (0, import_clsx3.default)(
|
|
389
|
+
"scrollbar-thin",
|
|
390
|
+
"max-w-screen",
|
|
391
|
+
width !== "fit" && "w-full",
|
|
392
|
+
width === "full" && "w-full",
|
|
393
|
+
width === "max" && "w-max",
|
|
394
|
+
centered && "mx-auto",
|
|
395
|
+
overflowY == "auto" && "overflow-y-auto",
|
|
396
|
+
overflowY == "hidden" && "overflow-y-hidden",
|
|
397
|
+
overflowY == "scroll" && "overflow-y-scroll",
|
|
398
|
+
overflowX == "auto" && "overflow-x-auto",
|
|
399
|
+
overflowX == "hidden" && "overflow-x-hidden",
|
|
400
|
+
overflowX == "scroll" && "overflow-x-scroll",
|
|
401
|
+
padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
|
|
402
|
+
padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
403
|
+
padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
|
|
404
|
+
padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
|
|
405
|
+
paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
|
|
406
|
+
paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
407
|
+
paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
|
|
408
|
+
paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
|
|
409
|
+
paddingY && sizing === "container" && "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding",
|
|
410
|
+
paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
411
|
+
paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
|
|
412
|
+
paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
|
|
413
|
+
margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
|
|
414
|
+
marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
|
|
415
|
+
marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
|
|
416
|
+
marginBottom && sizing === "container" && "mb-mobile-container-padding desktop:mb-desktop-container-padding compact:mb-compact-container-padding",
|
|
417
|
+
marginY && sizing === "container" && "my-mobile-container-padding desktop:my-desktop-container-padding compact:my-compact-container-padding",
|
|
418
|
+
horizontal ? "desktop:flex-row" : "desktop:flex-col",
|
|
419
|
+
horizontalMobile ? "flex-row" : "flex-col",
|
|
420
|
+
flexClassNames,
|
|
421
|
+
!noGap && gapClassNames,
|
|
422
|
+
elevation === 0 && "shadow-none",
|
|
423
|
+
elevation === 2 && "shadow-2",
|
|
424
|
+
elevation === 4 && "shadow-4",
|
|
425
|
+
elevation === 16 && "shadow-16",
|
|
426
|
+
rounded && "rounded"
|
|
427
|
+
),
|
|
428
|
+
children
|
|
429
|
+
})
|
|
430
|
+
);
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
// src/components/SimpleTable.tsx
|
|
434
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
435
|
+
function SimpleTable({
|
|
436
|
+
columns,
|
|
437
|
+
data,
|
|
438
|
+
additionalRows
|
|
439
|
+
}) {
|
|
440
|
+
const allRows = additionalRows && additionalRows.length > 0 ? [...data, ...additionalRows] : data;
|
|
441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Stack, { elevation: 4, rounded: true, overflowX: "hidden", overflowY: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("table", { className: "w-full border-collapse text-left text-sm border overflow-hidden rounded border-border-primary-normal", children: [
|
|
442
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: "bg-background-primary-normal divide-x divide-border-primary-normal", children: columns.map((column, index) => {
|
|
443
|
+
var _a, _b;
|
|
444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
445
|
+
"th",
|
|
446
|
+
{
|
|
447
|
+
scope: "col",
|
|
448
|
+
className: (0, import_clsx4.default)(
|
|
449
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding font-semibold text-text-primary-normal",
|
|
450
|
+
((_a = column.meta) == null ? void 0 : _a.headerWidth) ? column.meta.headerWidth : "w-2/3"
|
|
451
|
+
),
|
|
452
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Subheader, { children: (_b = column.header) == null ? void 0 : _b.toString() })
|
|
453
|
+
},
|
|
454
|
+
index
|
|
455
|
+
);
|
|
456
|
+
}) }) }),
|
|
457
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: allRows.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
458
|
+
"tr",
|
|
459
|
+
{
|
|
460
|
+
className: "border-t border-border-primary-normal divide-x divide-border-primary-normal",
|
|
461
|
+
children: columns.map((column, colIndex) => {
|
|
462
|
+
var _a;
|
|
463
|
+
const rawValue = column.id ? row[column.id] : null;
|
|
464
|
+
const cellValue = rawValue != null ? rawValue : null;
|
|
465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
466
|
+
"td",
|
|
467
|
+
{
|
|
468
|
+
className: (0, import_clsx4.default)(
|
|
469
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding align-middle text-text-primary-normal",
|
|
470
|
+
(_a = column.meta) == null ? void 0 : _a.headerWidth
|
|
471
|
+
),
|
|
472
|
+
children: cellValue !== null && cellValue !== void 0 ? typeof cellValue === "string" || typeof cellValue === "number" ? cellValue.toString() : cellValue : ""
|
|
473
|
+
},
|
|
474
|
+
colIndex
|
|
475
|
+
);
|
|
476
|
+
})
|
|
477
|
+
},
|
|
478
|
+
rowIndex
|
|
479
|
+
)) })
|
|
480
|
+
] }) });
|
|
481
|
+
}
|
|
482
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
483
|
+
0 && (module.exports = {
|
|
484
|
+
SimpleTable
|
|
485
|
+
});
|
|
@@ -79,6 +79,7 @@ __export(components_exports, {
|
|
|
79
79
|
ProductImagePreview: () => ProductImagePreview,
|
|
80
80
|
Search: () => Search,
|
|
81
81
|
Select: () => Select,
|
|
82
|
+
SimpleTable: () => SimpleTable,
|
|
82
83
|
Subheader: () => Subheader,
|
|
83
84
|
Tooltip: () => Tooltip
|
|
84
85
|
});
|
|
@@ -6581,6 +6582,57 @@ function CompactImagesPreview(props) {
|
|
|
6581
6582
|
)) })
|
|
6582
6583
|
] });
|
|
6583
6584
|
}
|
|
6585
|
+
|
|
6586
|
+
// src/components/SimpleTable.tsx
|
|
6587
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
6588
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6589
|
+
function SimpleTable({
|
|
6590
|
+
columns,
|
|
6591
|
+
data,
|
|
6592
|
+
additionalRows
|
|
6593
|
+
}) {
|
|
6594
|
+
const allRows = additionalRows && additionalRows.length > 0 ? [...data, ...additionalRows] : data;
|
|
6595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Stack, { elevation: 4, rounded: true, overflowX: "hidden", overflowY: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("table", { className: "w-full border-collapse text-left text-sm border overflow-hidden rounded border-border-primary-normal", children: [
|
|
6596
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("tr", { className: "bg-background-primary-normal divide-x divide-border-primary-normal", children: columns.map((column, index) => {
|
|
6597
|
+
var _a, _b;
|
|
6598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6599
|
+
"th",
|
|
6600
|
+
{
|
|
6601
|
+
scope: "col",
|
|
6602
|
+
className: (0, import_clsx34.default)(
|
|
6603
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding font-semibold text-text-primary-normal",
|
|
6604
|
+
((_a = column.meta) == null ? void 0 : _a.headerWidth) ? column.meta.headerWidth : "w-2/3"
|
|
6605
|
+
),
|
|
6606
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Subheader, { children: (_b = column.header) == null ? void 0 : _b.toString() })
|
|
6607
|
+
},
|
|
6608
|
+
index
|
|
6609
|
+
);
|
|
6610
|
+
}) }) }),
|
|
6611
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("tbody", { children: allRows.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6612
|
+
"tr",
|
|
6613
|
+
{
|
|
6614
|
+
className: "border-t border-border-primary-normal divide-x divide-border-primary-normal",
|
|
6615
|
+
children: columns.map((column, colIndex) => {
|
|
6616
|
+
var _a;
|
|
6617
|
+
const rawValue = column.id ? row[column.id] : null;
|
|
6618
|
+
const cellValue = rawValue != null ? rawValue : null;
|
|
6619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6620
|
+
"td",
|
|
6621
|
+
{
|
|
6622
|
+
className: (0, import_clsx34.default)(
|
|
6623
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding align-middle text-text-primary-normal",
|
|
6624
|
+
(_a = column.meta) == null ? void 0 : _a.headerWidth
|
|
6625
|
+
),
|
|
6626
|
+
children: cellValue !== null && cellValue !== void 0 ? typeof cellValue === "string" || typeof cellValue === "number" ? cellValue.toString() : cellValue : ""
|
|
6627
|
+
},
|
|
6628
|
+
colIndex
|
|
6629
|
+
);
|
|
6630
|
+
})
|
|
6631
|
+
},
|
|
6632
|
+
rowIndex
|
|
6633
|
+
)) })
|
|
6634
|
+
] }) });
|
|
6635
|
+
}
|
|
6584
6636
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6585
6637
|
0 && (module.exports = {
|
|
6586
6638
|
Accordion,
|
|
@@ -6603,6 +6655,7 @@ function CompactImagesPreview(props) {
|
|
|
6603
6655
|
ProductImagePreview,
|
|
6604
6656
|
Search,
|
|
6605
6657
|
Select,
|
|
6658
|
+
SimpleTable,
|
|
6606
6659
|
Subheader,
|
|
6607
6660
|
Tooltip
|
|
6608
6661
|
});
|
|
@@ -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
|
}
|