@dmsi/wedgekit-react 0.0.414 → 0.0.417
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-3HBYDOYE.js +114 -0
- package/dist/{chunk-JIMJIJOF.js → chunk-5TGP5EFM.js} +2 -2
- package/dist/{chunk-2HMCS25C.js → chunk-6LHBY2IH.js} +1 -1
- package/dist/{chunk-6I5LZ2ZC.js → chunk-7AXHAWJX.js} +3 -3
- package/dist/{chunk-MQX7GFLX.js → chunk-CAQWLY5V.js} +24 -6
- package/dist/{chunk-QQ5G773N.js → chunk-DCLNAUC4.js} +1 -1
- package/dist/{chunk-GB4ZTUQV.js → chunk-DTW7JCBR.js} +36 -0
- package/dist/{chunk-OBY5EH47.js → chunk-HYJIDHAK.js} +6 -6
- package/dist/{chunk-LZGYABCX.js → chunk-IMOIZFJZ.js} +8 -8
- package/dist/chunk-KBJZUVLM.js +65 -0
- package/dist/{chunk-AA6GE3TH.js → chunk-LUPHOXAQ.js} +1 -1
- package/dist/chunk-NRNWEQD7.js +66 -0
- package/dist/{chunk-44TDIHUP.js → chunk-P3MIP2FD.js} +1 -1
- package/dist/chunk-PQWWVBSR.js +61 -0
- package/dist/{chunk-ERW5DEIO.js → chunk-RQLWSLVE.js} +1 -1
- package/dist/chunk-TYAQWVIM.js +159 -0
- package/dist/{chunk-KZZKQLKF.js → chunk-W55J2KJZ.js} +1 -1
- package/dist/chunk-Y2GK27RX.js +79 -0
- package/dist/components/Accordion.cjs +74 -2
- package/dist/components/Accordion.js +3 -3
- package/dist/components/CalendarRange.cjs +232 -53
- package/dist/components/CalendarRange.css +178 -65
- package/dist/components/CalendarRange.js +25 -17
- package/dist/components/Card.cjs +38 -2
- package/dist/components/Card.js +1 -1
- package/dist/components/CompactImagesPreview.cjs +59 -5
- package/dist/components/CompactImagesPreview.js +2 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +190 -11
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +178 -65
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +25 -17
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +200 -21
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +178 -65
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +25 -17
- package/dist/components/DataGrid/PinnedColumns.cjs +215 -36
- package/dist/components/DataGrid/PinnedColumns.css +178 -65
- package/dist/components/DataGrid/PinnedColumns.js +25 -17
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +191 -12
- package/dist/components/DataGrid/TableBody/LoadingCell.css +178 -65
- package/dist/components/DataGrid/TableBody/LoadingCell.js +25 -17
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +197 -18
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +178 -65
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +25 -17
- package/dist/components/DataGrid/TableBody/index.cjs +212 -33
- package/dist/components/DataGrid/TableBody/index.css +178 -65
- package/dist/components/DataGrid/TableBody/index.js +25 -17
- package/dist/components/DataGrid/index.cjs +301 -122
- package/dist/components/DataGrid/index.css +178 -65
- package/dist/components/DataGrid/index.js +25 -17
- package/dist/components/DataGrid/utils.cjs +191 -12
- package/dist/components/DataGrid/utils.css +178 -65
- package/dist/components/DataGrid/utils.js +25 -17
- package/dist/components/DateInput.cjs +251 -72
- package/dist/components/DateInput.css +178 -65
- package/dist/components/DateInput.js +25 -17
- package/dist/components/DateRangeInput.cjs +251 -72
- package/dist/components/DateRangeInput.css +178 -65
- package/dist/components/DateRangeInput.js +25 -17
- package/dist/components/Grid.cjs +81 -76
- package/dist/components/Grid.js +1 -1
- package/dist/components/ListGroup.cjs +553 -0
- package/dist/components/ListGroup.js +11 -0
- package/dist/components/MobileDataGrid/ColumnList.cjs +36 -0
- package/dist/components/MobileDataGrid/ColumnList.js +3 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +198 -19
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +178 -65
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +25 -17
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +36 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +242 -27
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +178 -65
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +25 -17
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +36 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +36 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -5
- package/dist/components/MobileDataGrid/index.cjs +742 -527
- package/dist/components/MobileDataGrid/index.css +178 -65
- package/dist/components/MobileDataGrid/index.js +25 -17
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.cjs +36 -0
- package/dist/components/Notification.js +1 -1
- package/dist/components/PDFViewer/PDFElement.cjs +36 -0
- package/dist/components/PDFViewer/PDFElement.js +2 -2
- package/dist/components/PDFViewer/PDFNavigation.cjs +36 -0
- package/dist/components/PDFViewer/PDFNavigation.js +2 -2
- package/dist/components/PDFViewer/index.cjs +36 -0
- package/dist/components/PDFViewer/index.js +8 -111
- package/dist/components/Pagination.cjs +427 -0
- package/dist/components/Pagination.js +10 -0
- package/dist/components/ProductImagePreview/index.cjs +139 -127
- package/dist/components/ProductImagePreview/index.js +5 -5
- package/dist/components/SideMenuGroup.cjs +36 -0
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +36 -0
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/SimpleTable.cjs +521 -0
- package/dist/components/SimpleTable.js +10 -0
- package/dist/components/Stack.cjs +36 -0
- package/dist/components/Stack.js +1 -1
- package/dist/components/Swatch.cjs +36 -0
- package/dist/components/Swatch.js +1 -1
- package/dist/components/Time.cjs +36 -0
- package/dist/components/Time.js +1 -1
- package/dist/components/Tooltip.cjs +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Upload.cjs +36 -0
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +739 -131
- package/dist/components/index.css +178 -65
- package/dist/components/index.js +37 -17
- package/dist/index.css +178 -65
- package/package.json +1 -1
- package/src/components/Card.tsx +60 -2
- package/src/components/CompactImagesPreview.tsx +54 -30
- package/src/components/Grid.tsx +59 -91
- package/src/components/ListGroup.tsx +82 -0
- package/src/components/Pagination.tsx +182 -0
- package/src/components/SimpleTable.tsx +77 -0
- package/src/components/Stack.tsx +76 -0
- package/src/components/Tooltip.tsx +4 -3
- package/src/components/index.ts +4 -0
- package/dist/chunk-ER6RCOH3.js +0 -97
- package/dist/chunk-EZCH4PQS.js +0 -29
- package/dist/{chunk-D6YCMQPO.js → chunk-SBCFBHNG.js} +3 -3
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Subheader
|
|
3
|
+
} from "./chunk-FA7IFW66.js";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "./chunk-NKUETCDA.js";
|
|
7
|
+
import {
|
|
8
|
+
paddingUsingComponentGap
|
|
9
|
+
} from "./chunk-6CTCHYIS.js";
|
|
10
|
+
|
|
11
|
+
// src/components/Pagination.tsx
|
|
12
|
+
import { useCallback, useMemo } from "react";
|
|
13
|
+
import clsx from "clsx";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var Pagination = ({
|
|
16
|
+
totalPages,
|
|
17
|
+
currentPage,
|
|
18
|
+
onPageChange,
|
|
19
|
+
id,
|
|
20
|
+
testid,
|
|
21
|
+
className,
|
|
22
|
+
disabled
|
|
23
|
+
}) => {
|
|
24
|
+
const goTo = useCallback(
|
|
25
|
+
(page) => {
|
|
26
|
+
if (disabled) return;
|
|
27
|
+
onPageChange(page);
|
|
28
|
+
},
|
|
29
|
+
[onPageChange, disabled]
|
|
30
|
+
);
|
|
31
|
+
const handleKey = (e) => {
|
|
32
|
+
if (disabled) return;
|
|
33
|
+
if (e.key === "ArrowLeft") {
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
goTo(currentPage - 1);
|
|
36
|
+
} else if (e.key === "ArrowRight") {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
goTo(currentPage + 1);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const pageTokens = useMemo(() => {
|
|
42
|
+
if (totalPages <= 5) {
|
|
43
|
+
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
44
|
+
}
|
|
45
|
+
const pages = /* @__PURE__ */ new Set();
|
|
46
|
+
pages.add(1);
|
|
47
|
+
pages.add(totalPages);
|
|
48
|
+
if (currentPage <= 3) {
|
|
49
|
+
pages.add(2);
|
|
50
|
+
pages.add(3);
|
|
51
|
+
pages.add(4);
|
|
52
|
+
} else if (currentPage >= totalPages - 2) {
|
|
53
|
+
pages.add(totalPages - 1);
|
|
54
|
+
pages.add(totalPages - 2);
|
|
55
|
+
pages.add(totalPages - 3);
|
|
56
|
+
} else {
|
|
57
|
+
pages.add(currentPage - 1);
|
|
58
|
+
pages.add(currentPage);
|
|
59
|
+
pages.add(currentPage + 1);
|
|
60
|
+
}
|
|
61
|
+
const sorted = Array.from(pages).sort((a, b) => a - b);
|
|
62
|
+
const tokens = [];
|
|
63
|
+
for (let i = 0; i < sorted.length; i++) {
|
|
64
|
+
const value = sorted[i];
|
|
65
|
+
const prev = sorted[i - 1];
|
|
66
|
+
if (i > 0) {
|
|
67
|
+
if (value - prev === 2) {
|
|
68
|
+
tokens.push(prev + 1);
|
|
69
|
+
} else if (value - prev > 2) {
|
|
70
|
+
tokens.push("ellipsis");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
tokens.push(value);
|
|
74
|
+
}
|
|
75
|
+
return tokens;
|
|
76
|
+
}, [totalPages, currentPage]);
|
|
77
|
+
if (totalPages <= 1) return null;
|
|
78
|
+
const buttonClass = clsx(
|
|
79
|
+
"cursor-pointer disabled:cursor-default",
|
|
80
|
+
paddingUsingComponentGap,
|
|
81
|
+
"w-8 h-8",
|
|
82
|
+
"flex items-center justify-center",
|
|
83
|
+
"bg-transparent",
|
|
84
|
+
"box-content",
|
|
85
|
+
"hover:bg-background-grouped-secondary-normal",
|
|
86
|
+
"focus:bg-background-grouped-secondary-normal focus:outline-0",
|
|
87
|
+
"disabled:bg-transparent disabled:text-text-action-primary-disabled"
|
|
88
|
+
);
|
|
89
|
+
return /* @__PURE__ */ jsxs(
|
|
90
|
+
"nav",
|
|
91
|
+
{
|
|
92
|
+
id,
|
|
93
|
+
"data-testid": testid,
|
|
94
|
+
"aria-label": "Pagination",
|
|
95
|
+
onKeyDown: handleKey,
|
|
96
|
+
className: clsx(
|
|
97
|
+
"flex items-center",
|
|
98
|
+
"border border-border-primary-normal",
|
|
99
|
+
"bg-background-grouped-primary-normal",
|
|
100
|
+
"rounded-sm",
|
|
101
|
+
className
|
|
102
|
+
),
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ jsx(
|
|
105
|
+
"button",
|
|
106
|
+
{
|
|
107
|
+
disabled: disabled || currentPage <= 1,
|
|
108
|
+
"aria-label": "Previous page",
|
|
109
|
+
onClick: () => goTo(currentPage - 1),
|
|
110
|
+
className: clsx(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
111
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "keyboard_arrow_left" })
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
/* @__PURE__ */ jsx("ul", { className: clsx("flex items-center"), children: pageTokens.map((token, index) => {
|
|
115
|
+
if (token === "ellipsis") {
|
|
116
|
+
return /* @__PURE__ */ jsx(
|
|
117
|
+
"li",
|
|
118
|
+
{
|
|
119
|
+
className: "w-8 h-8 select-none text-text-action-primary-disabled",
|
|
120
|
+
children: "\u2026"
|
|
121
|
+
},
|
|
122
|
+
`ellipsis-${index}`
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
const selected = token === currentPage;
|
|
126
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
127
|
+
"button",
|
|
128
|
+
{
|
|
129
|
+
"aria-label": `Page ${token}`,
|
|
130
|
+
"aria-current": selected ? "page" : void 0,
|
|
131
|
+
disabled,
|
|
132
|
+
onClick: () => goTo(token),
|
|
133
|
+
className: clsx(
|
|
134
|
+
buttonClass,
|
|
135
|
+
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
136
|
+
),
|
|
137
|
+
children: /* @__PURE__ */ jsx(Subheader, { align: "center", weight: "bold", children: token })
|
|
138
|
+
}
|
|
139
|
+
) }, token);
|
|
140
|
+
}) }),
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
"button",
|
|
143
|
+
{
|
|
144
|
+
disabled: disabled || currentPage >= totalPages,
|
|
145
|
+
"aria-label": "Next page",
|
|
146
|
+
onClick: () => goTo(currentPage + 1),
|
|
147
|
+
className: clsx(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
148
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "keyboard_arrow_right" })
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
};
|
|
155
|
+
Pagination.displayName = "Pagination";
|
|
156
|
+
|
|
157
|
+
export {
|
|
158
|
+
Pagination
|
|
159
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-ORMEWXMH.js";
|
|
6
|
+
|
|
7
|
+
// src/components/Grid.tsx
|
|
8
|
+
import clsx from "clsx";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var GAP_BY_SIZING = {
|
|
11
|
+
none: "gap-0",
|
|
12
|
+
"layout-group": "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
13
|
+
layout: "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
14
|
+
container: "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
15
|
+
component: "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
|
|
16
|
+
};
|
|
17
|
+
var PADDING_BY_SIZING = {
|
|
18
|
+
none: "p-0",
|
|
19
|
+
container: "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
|
|
20
|
+
layout: "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
21
|
+
"layout-group": "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
|
|
22
|
+
component: "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
23
|
+
};
|
|
24
|
+
var buildColumnClasses = (base, responsive) => {
|
|
25
|
+
const classes = [`grid-cols-${base}`];
|
|
26
|
+
if (responsive) {
|
|
27
|
+
Object.entries(responsive).forEach(([bp, value]) => {
|
|
28
|
+
if (value && value > 0) classes.push(`${bp}:grid-cols-${value}`);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return classes.join(" ");
|
|
32
|
+
};
|
|
33
|
+
var Grid = (_a) => {
|
|
34
|
+
var _b = _a, {
|
|
35
|
+
children,
|
|
36
|
+
sizing = "container",
|
|
37
|
+
padding,
|
|
38
|
+
columns,
|
|
39
|
+
responsive,
|
|
40
|
+
id,
|
|
41
|
+
testid,
|
|
42
|
+
style,
|
|
43
|
+
className
|
|
44
|
+
} = _b, rest = __objRest(_b, [
|
|
45
|
+
"children",
|
|
46
|
+
"sizing",
|
|
47
|
+
"padding",
|
|
48
|
+
"columns",
|
|
49
|
+
"responsive",
|
|
50
|
+
"id",
|
|
51
|
+
"testid",
|
|
52
|
+
"style",
|
|
53
|
+
"className"
|
|
54
|
+
]);
|
|
55
|
+
var _a2, _b2;
|
|
56
|
+
const columnClasses = buildColumnClasses(columns, responsive);
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
"div",
|
|
59
|
+
__spreadProps(__spreadValues({
|
|
60
|
+
id,
|
|
61
|
+
"data-testid": testid,
|
|
62
|
+
style
|
|
63
|
+
}, rest), {
|
|
64
|
+
className: clsx(
|
|
65
|
+
"w-full grid",
|
|
66
|
+
(_a2 = GAP_BY_SIZING[sizing]) != null ? _a2 : GAP_BY_SIZING.container,
|
|
67
|
+
padding && ((_b2 = PADDING_BY_SIZING[sizing]) != null ? _b2 : PADDING_BY_SIZING.container),
|
|
68
|
+
columnClasses,
|
|
69
|
+
"grid-cols-1 desktop:grid-cols-4",
|
|
70
|
+
className
|
|
71
|
+
),
|
|
72
|
+
children
|
|
73
|
+
})
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
Grid
|
|
79
|
+
};
|
|
@@ -200,14 +200,50 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
|
200
200
|
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
201
201
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
202
202
|
function Card(props) {
|
|
203
|
-
const _a = props, {
|
|
203
|
+
const _a = props, {
|
|
204
|
+
children,
|
|
205
|
+
selected,
|
|
206
|
+
testid,
|
|
207
|
+
padding,
|
|
208
|
+
paddingX,
|
|
209
|
+
paddingY,
|
|
210
|
+
paddingBottom,
|
|
211
|
+
paddingTop,
|
|
212
|
+
paddingLeft,
|
|
213
|
+
paddingRight
|
|
214
|
+
} = _a, rest = __objRest(_a, [
|
|
215
|
+
"children",
|
|
216
|
+
"selected",
|
|
217
|
+
"testid",
|
|
218
|
+
"padding",
|
|
219
|
+
"paddingX",
|
|
220
|
+
"paddingY",
|
|
221
|
+
"paddingBottom",
|
|
222
|
+
"paddingTop",
|
|
223
|
+
"paddingLeft",
|
|
224
|
+
"paddingRight"
|
|
225
|
+
]);
|
|
204
226
|
const CardComponent = props.as || "div";
|
|
227
|
+
const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
|
|
228
|
+
const paddingClasses = (0, import_clsx2.default)(
|
|
229
|
+
// Backward compatibility: if no new padding props provided keep existing class.
|
|
230
|
+
!anyPaddingPropSpecified && "p-desktop-layout-padding",
|
|
231
|
+
// New responsive spacing tokens (mirrors Stack for layout sizing)
|
|
232
|
+
padding && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
233
|
+
paddingX && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
234
|
+
paddingY && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
235
|
+
paddingBottom && "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding",
|
|
236
|
+
paddingTop && "pt-mobile-layout-padding desktop:pt-desktop-layout-padding compact:pt-desktop-compact-layout-padding",
|
|
237
|
+
paddingLeft && "pl-mobile-layout-padding desktop:pl-desktop-layout-padding compact:pl-desktop-compact-layout-padding",
|
|
238
|
+
paddingRight && "pr-mobile-layout-padding desktop:pr-desktop-layout-padding compact:pr-desktop-compact-layout-padding"
|
|
239
|
+
);
|
|
205
240
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
206
241
|
CardComponent,
|
|
207
242
|
__spreadProps(__spreadValues({}, rest), {
|
|
208
243
|
"data-testid": testid,
|
|
209
244
|
className: (0, import_clsx2.default)(
|
|
210
|
-
"rounded-sm
|
|
245
|
+
"rounded-sm",
|
|
246
|
+
paddingClasses,
|
|
211
247
|
selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
|
|
212
248
|
rest.className
|
|
213
249
|
),
|
|
@@ -286,6 +322,10 @@ var Stack = (_a) => {
|
|
|
286
322
|
padding,
|
|
287
323
|
paddingX,
|
|
288
324
|
paddingY,
|
|
325
|
+
paddingBottom,
|
|
326
|
+
paddingTop,
|
|
327
|
+
paddingLeft,
|
|
328
|
+
paddingRight,
|
|
289
329
|
margin,
|
|
290
330
|
marginX,
|
|
291
331
|
marginY,
|
|
@@ -301,6 +341,10 @@ var Stack = (_a) => {
|
|
|
301
341
|
height,
|
|
302
342
|
maxHeight,
|
|
303
343
|
borderColor,
|
|
344
|
+
borderTopColor,
|
|
345
|
+
borderRightColor,
|
|
346
|
+
borderBottomColor,
|
|
347
|
+
borderLeftColor,
|
|
304
348
|
backgroundColor,
|
|
305
349
|
sizing = "none",
|
|
306
350
|
overflowY = "inherit",
|
|
@@ -326,6 +370,10 @@ var Stack = (_a) => {
|
|
|
326
370
|
"padding",
|
|
327
371
|
"paddingX",
|
|
328
372
|
"paddingY",
|
|
373
|
+
"paddingBottom",
|
|
374
|
+
"paddingTop",
|
|
375
|
+
"paddingLeft",
|
|
376
|
+
"paddingRight",
|
|
329
377
|
"margin",
|
|
330
378
|
"marginX",
|
|
331
379
|
"marginY",
|
|
@@ -341,6 +389,10 @@ var Stack = (_a) => {
|
|
|
341
389
|
"height",
|
|
342
390
|
"maxHeight",
|
|
343
391
|
"borderColor",
|
|
392
|
+
"borderTopColor",
|
|
393
|
+
"borderRightColor",
|
|
394
|
+
"borderBottomColor",
|
|
395
|
+
"borderLeftColor",
|
|
344
396
|
"backgroundColor",
|
|
345
397
|
"sizing",
|
|
346
398
|
"overflowY",
|
|
@@ -376,6 +428,10 @@ var Stack = (_a) => {
|
|
|
376
428
|
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
377
429
|
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
378
430
|
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
431
|
+
borderTop: borderTopColor ? `1px solid var(--color-${borderTopColor})` : void 0,
|
|
432
|
+
borderRight: borderRightColor ? `1px solid var(--color-${borderRightColor})` : void 0,
|
|
433
|
+
borderBottom: borderBottomColor ? `1px solid var(--color-${borderBottomColor})` : void 0,
|
|
434
|
+
borderLeft: borderLeftColor ? `1px solid var(--color-${borderLeftColor})` : void 0,
|
|
379
435
|
backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
|
|
380
436
|
flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
|
|
381
437
|
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
@@ -415,6 +471,22 @@ var Stack = (_a) => {
|
|
|
415
471
|
paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
416
472
|
paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
|
|
417
473
|
paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
|
|
474
|
+
paddingBottom && sizing === "container" && "pb-mobile-container-padding desktop:pb-desktop-container-padding compact:pb-desktop-compact-container-padding",
|
|
475
|
+
paddingBottom && sizing === "layout" && "pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding",
|
|
476
|
+
paddingBottom && sizing === "layout-group" && "pb-mobile-layout-group-padding desktop:pb-desktop-layout-group-padding compact:pb-desktop-compact-layout-group-padding",
|
|
477
|
+
paddingBottom && sizing === "component" && "pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding",
|
|
478
|
+
paddingTop && sizing === "container" && "pt-mobile-container-padding desktop:pt-desktop-container-padding compact:pt-desktop-compact-container-padding",
|
|
479
|
+
paddingTop && sizing === "layout" && "pt-mobile-layout-padding desktop:pt-desktop-layout-padding compact:pt-desktop-compact-layout-padding",
|
|
480
|
+
paddingTop && sizing === "layout-group" && "pt-mobile-layout-group-padding desktop:pt-desktop-layout-group-padding compact:pt-desktop-compact-layout-group-padding",
|
|
481
|
+
paddingTop && sizing === "component" && "pt-mobile-component-padding desktop:pt-desktop-component-padding compact:pt-desktop-compact-component-padding",
|
|
482
|
+
paddingLeft && sizing === "container" && "pl-mobile-container-padding desktop:pl-desktop-container-padding compact:pl-desktop-compact-container-padding",
|
|
483
|
+
paddingLeft && sizing === "layout" && "pl-mobile-layout-padding desktop:pl-desktop-layout-padding compact:pl-desktop-compact-layout-padding",
|
|
484
|
+
paddingLeft && sizing === "layout-group" && "pl-mobile-layout-group-padding desktop:pl-desktop-layout-group-padding compact:pl-desktop-compact-layout-group-padding",
|
|
485
|
+
paddingLeft && sizing === "component" && "pl-mobile-component-padding desktop:pl-desktop-component-padding compact:pl-desktop-compact-component-padding",
|
|
486
|
+
paddingRight && sizing === "container" && "pr-mobile-container-padding desktop:pr-desktop-container-padding compact:pr-desktop-compact-container-padding",
|
|
487
|
+
paddingRight && sizing === "layout" && "pr-mobile-layout-padding desktop:pr-desktop-layout-padding compact:pr-desktop-compact-layout-padding",
|
|
488
|
+
paddingRight && sizing === "layout-group" && "pr-mobile-layout-group-padding desktop:pr-desktop-layout-group-padding compact:pr-desktop-compact-layout-group-padding",
|
|
489
|
+
paddingRight && sizing === "component" && "pr-mobile-component-padding desktop:pr-desktop-component-padding compact:pr-desktop-compact-component-padding",
|
|
418
490
|
margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
|
|
419
491
|
marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
|
|
420
492
|
marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Accordion
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5TGP5EFM.js";
|
|
5
|
+
import "../chunk-KBJZUVLM.js";
|
|
6
|
+
import "../chunk-DTW7JCBR.js";
|
|
7
7
|
import "../chunk-OGIFIPKH.js";
|
|
8
8
|
import "../chunk-NKUETCDA.js";
|
|
9
9
|
import "../chunk-6CTCHYIS.js";
|