@dmsi/wedgekit-react 0.0.883 → 0.0.885
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-E7XBOMT4.js → chunk-4MF6JSE7.js} +78 -19
- package/dist/components/CalendarRange.cjs +133 -77
- package/dist/components/CalendarRange.css +0 -3
- package/dist/components/CalendarRange.js +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +119 -63
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +0 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +119 -63
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +0 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +1 -1
- package/dist/components/DataGrid/PinnedColumns.cjs +122 -66
- package/dist/components/DataGrid/PinnedColumns.css +0 -3
- package/dist/components/DataGrid/PinnedColumns.js +1 -1
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +119 -63
- package/dist/components/DataGrid/TableBody/LoadingCell.css +0 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.js +1 -1
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +122 -66
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +0 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +1 -1
- package/dist/components/DataGrid/TableBody/index.cjs +124 -68
- package/dist/components/DataGrid/TableBody/index.css +0 -3
- package/dist/components/DataGrid/TableBody/index.js +1 -1
- package/dist/components/DataGrid/index.cjs +133 -77
- package/dist/components/DataGrid/index.css +0 -3
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DataGrid/utils.cjs +121 -65
- package/dist/components/DataGrid/utils.css +0 -3
- package/dist/components/DataGrid/utils.js +1 -1
- package/dist/components/DateInput.cjs +73 -17
- package/dist/components/DateInput.css +0 -3
- package/dist/components/DateInput.js +1 -1
- package/dist/components/DateRangeInput.cjs +133 -77
- package/dist/components/DateRangeInput.css +0 -3
- package/dist/components/DateRangeInput.js +1 -1
- package/dist/components/MobileDataGrid/ColumnList.css +0 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +119 -63
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +0 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +1 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +116 -60
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +0 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +1 -1
- package/dist/components/MobileDataGrid/index.cjs +120 -64
- package/dist/components/MobileDataGrid/index.css +0 -3
- package/dist/components/MobileDataGrid/index.js +1 -1
- package/dist/components/index.cjs +152 -96
- package/dist/components/index.css +0 -3
- package/dist/components/index.js +1 -1
- package/dist/index.css +0 -3
- package/package.json +1 -1
|
@@ -4432,6 +4432,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
4432
4432
|
// src/components/DateInput.tsx
|
|
4433
4433
|
var import_react21 = require("react");
|
|
4434
4434
|
var import_react_dom3 = require("react-dom");
|
|
4435
|
+
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
4435
4436
|
|
|
4436
4437
|
// src/components/CalendarRange.tsx
|
|
4437
4438
|
var import_clsx20 = __toESM(require("clsx"), 1);
|
|
@@ -4986,10 +4987,12 @@ var DateInput = (_a) => {
|
|
|
4986
4987
|
const popoverRef = (0, import_react21.useRef)(null);
|
|
4987
4988
|
const triggerRef = (0, import_react21.useRef)(null);
|
|
4988
4989
|
const rootRef = (0, import_react21.useRef)(null);
|
|
4990
|
+
const isMobile = useMatchesMobile();
|
|
4989
4991
|
const [calendarPosition, setCalendarPosition] = (0, import_react21.useState)({
|
|
4990
4992
|
top: 0,
|
|
4991
4993
|
left: 0,
|
|
4992
|
-
width: 0
|
|
4994
|
+
width: 0,
|
|
4995
|
+
openAbove: false
|
|
4993
4996
|
});
|
|
4994
4997
|
const [from, to] = [value, ""];
|
|
4995
4998
|
(0, import_react21.useEffect)(() => {
|
|
@@ -5005,11 +5008,28 @@ var DateInput = (_a) => {
|
|
|
5005
5008
|
const updatePosition = () => {
|
|
5006
5009
|
if (rootRef.current) {
|
|
5007
5010
|
const rect = rootRef.current.getBoundingClientRect();
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5011
|
+
const viewportWidth = window.innerWidth;
|
|
5012
|
+
const viewportHeight = window.innerHeight;
|
|
5013
|
+
const calendarWidth = 340;
|
|
5014
|
+
const calendarHeight = 400;
|
|
5015
|
+
let viewportLeft = rect.left;
|
|
5016
|
+
if (viewportLeft + calendarWidth > viewportWidth) {
|
|
5017
|
+
viewportLeft = rect.right - calendarWidth;
|
|
5018
|
+
if (viewportLeft < 0) {
|
|
5019
|
+
viewportLeft = Math.max(0, (viewportWidth - calendarWidth) / 2);
|
|
5020
|
+
}
|
|
5021
|
+
}
|
|
5022
|
+
const left = viewportLeft + window.scrollX;
|
|
5023
|
+
const spaceBelow = viewportHeight - rect.bottom;
|
|
5024
|
+
const spaceAbove = rect.top;
|
|
5025
|
+
const openAbove = spaceBelow < calendarHeight && spaceAbove > spaceBelow;
|
|
5026
|
+
let top;
|
|
5027
|
+
if (openAbove) {
|
|
5028
|
+
top = rect.top + window.scrollY - calendarHeight - 4;
|
|
5029
|
+
} else {
|
|
5030
|
+
top = rect.bottom + window.scrollY + 4;
|
|
5031
|
+
}
|
|
5032
|
+
setCalendarPosition({ top, left, width: rect.width, openAbove });
|
|
5013
5033
|
}
|
|
5014
5034
|
};
|
|
5015
5035
|
(0, import_react21.useEffect)(() => {
|
|
@@ -5092,7 +5112,10 @@ var DateInput = (_a) => {
|
|
|
5092
5112
|
if (cursorPosition > 0 && value2[cursorPosition - 1] === sep) {
|
|
5093
5113
|
event.preventDefault();
|
|
5094
5114
|
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
5095
|
-
const formattedValue = formatInputValueWithDashes(
|
|
5115
|
+
const formattedValue = formatInputValueWithDashes(
|
|
5116
|
+
newValue,
|
|
5117
|
+
dateInDashes
|
|
5118
|
+
);
|
|
5096
5119
|
setInputValue(formattedValue);
|
|
5097
5120
|
requestAnimationFrame(() => {
|
|
5098
5121
|
if (triggerRef.current) {
|
|
@@ -5143,25 +5166,58 @@ var DateInput = (_a) => {
|
|
|
5143
5166
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5144
5167
|
"div",
|
|
5145
5168
|
{
|
|
5146
|
-
className:
|
|
5169
|
+
className: (0, import_clsx21.default)(
|
|
5170
|
+
"fixed inset-0 z-50",
|
|
5171
|
+
isMobile && "overflow-y-auto bg-neutral-600/50"
|
|
5172
|
+
),
|
|
5147
5173
|
onClick: () => setVisible(false),
|
|
5148
5174
|
onMouseDown: (e) => {
|
|
5149
|
-
|
|
5175
|
+
if (!isMobile) {
|
|
5176
|
+
e.preventDefault();
|
|
5177
|
+
}
|
|
5150
5178
|
},
|
|
5151
5179
|
onWheel: (e) => {
|
|
5152
5180
|
var _a2;
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5181
|
+
if (!isMobile) {
|
|
5182
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5183
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5184
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5185
|
+
}
|
|
5156
5186
|
},
|
|
5157
5187
|
onTouchMove: (e) => {
|
|
5158
|
-
|
|
5188
|
+
if (!isMobile) {
|
|
5189
|
+
e.stopPropagation();
|
|
5190
|
+
}
|
|
5159
5191
|
},
|
|
5160
|
-
style: { touchAction: "pan-y pan-x" },
|
|
5161
|
-
"aria-hidden": "true"
|
|
5192
|
+
style: { touchAction: isMobile ? "auto" : "pan-y pan-x" },
|
|
5193
|
+
"aria-hidden": "true",
|
|
5194
|
+
children: isMobile && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "min-h-full flex items-start justify-center py-4 px-2", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5195
|
+
"div",
|
|
5196
|
+
{
|
|
5197
|
+
ref: (el) => {
|
|
5198
|
+
popoverRef.current = el;
|
|
5199
|
+
},
|
|
5200
|
+
className: "bg-white rounded-base shadow-4 max-w-full",
|
|
5201
|
+
onClick: (e) => e.stopPropagation(),
|
|
5202
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5203
|
+
CalendarRange,
|
|
5204
|
+
{
|
|
5205
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5206
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5207
|
+
from,
|
|
5208
|
+
to: to || from,
|
|
5209
|
+
onChange: handleDateChange,
|
|
5210
|
+
cardStyle: true,
|
|
5211
|
+
mode: "single",
|
|
5212
|
+
disableRange: true,
|
|
5213
|
+
isDateAvailable
|
|
5214
|
+
}
|
|
5215
|
+
)
|
|
5216
|
+
}
|
|
5217
|
+
) })
|
|
5162
5218
|
}
|
|
5163
5219
|
),
|
|
5164
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5220
|
+
!isMobile && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5165
5221
|
"div",
|
|
5166
5222
|
{
|
|
5167
5223
|
ref: (el) => {
|
|
@@ -5169,7 +5225,7 @@ var DateInput = (_a) => {
|
|
|
5169
5225
|
},
|
|
5170
5226
|
className: "absolute z-50 bg-white",
|
|
5171
5227
|
style: {
|
|
5172
|
-
top: `${calendarPosition.top
|
|
5228
|
+
top: `${calendarPosition.top}px`,
|
|
5173
5229
|
left: `${calendarPosition.left}px`
|
|
5174
5230
|
},
|
|
5175
5231
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
@@ -5205,10 +5261,10 @@ function formatDisplayValue(from, dateInDashes) {
|
|
|
5205
5261
|
}
|
|
5206
5262
|
|
|
5207
5263
|
// src/components/Accordion.tsx
|
|
5208
|
-
var
|
|
5264
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
5209
5265
|
|
|
5210
5266
|
// src/components/Card.tsx
|
|
5211
|
-
var
|
|
5267
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
5212
5268
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
5213
5269
|
function Card(props) {
|
|
5214
5270
|
const _a = props, {
|
|
@@ -5238,7 +5294,7 @@ function Card(props) {
|
|
|
5238
5294
|
]);
|
|
5239
5295
|
const CardComponent = props.as || "div";
|
|
5240
5296
|
const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
|
|
5241
|
-
const paddingClasses = (0,
|
|
5297
|
+
const paddingClasses = (0, import_clsx22.default)(
|
|
5242
5298
|
// Backward compatibility: if no new padding props provided keep existing class.
|
|
5243
5299
|
!anyPaddingPropSpecified && "p-desktop-layout-padding",
|
|
5244
5300
|
// New responsive spacing tokens (mirrors Stack for layout sizing)
|
|
@@ -5254,7 +5310,7 @@ function Card(props) {
|
|
|
5254
5310
|
CardComponent,
|
|
5255
5311
|
__spreadProps(__spreadValues({}, rest), {
|
|
5256
5312
|
"data-testid": testid,
|
|
5257
|
-
className: (0,
|
|
5313
|
+
className: (0, import_clsx22.default)(
|
|
5258
5314
|
"rounded-sm",
|
|
5259
5315
|
paddingClasses,
|
|
5260
5316
|
selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
|
|
@@ -5270,9 +5326,9 @@ function Card(props) {
|
|
|
5270
5326
|
}
|
|
5271
5327
|
|
|
5272
5328
|
// src/components/Stack.tsx
|
|
5273
|
-
var
|
|
5329
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
5274
5330
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
5275
|
-
var getFlexClassNames = ({ items, justify, grow }) => (0,
|
|
5331
|
+
var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx23.default)(
|
|
5276
5332
|
"flex",
|
|
5277
5333
|
items === "start" && "items-start",
|
|
5278
5334
|
grow && "grow",
|
|
@@ -5288,7 +5344,7 @@ var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx22.default)
|
|
|
5288
5344
|
justify === "around" && "justify-around"
|
|
5289
5345
|
);
|
|
5290
5346
|
var useGapClassNames = (sizing) => {
|
|
5291
|
-
return (0,
|
|
5347
|
+
return (0, import_clsx23.default)(
|
|
5292
5348
|
sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
5293
5349
|
sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
5294
5350
|
sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
@@ -5432,7 +5488,7 @@ var Stack = (_a) => {
|
|
|
5432
5488
|
paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
|
|
5433
5489
|
gap: (_g = props.style) == null ? void 0 : _g.gap
|
|
5434
5490
|
}, props.style),
|
|
5435
|
-
className: (0,
|
|
5491
|
+
className: (0, import_clsx23.default)(
|
|
5436
5492
|
"scrollbar-thin",
|
|
5437
5493
|
"max-w-screen",
|
|
5438
5494
|
width !== "fit" && "w-full",
|
|
@@ -5513,7 +5569,7 @@ function Accordion(props) {
|
|
|
5513
5569
|
Icon,
|
|
5514
5570
|
{
|
|
5515
5571
|
name: "expand_more",
|
|
5516
|
-
className: (0,
|
|
5572
|
+
className: (0, import_clsx24.default)(
|
|
5517
5573
|
"text-icon-primary-normal transform transition-all duration-300 ease-in-out",
|
|
5518
5574
|
isOpen ? "rotate-180" : "rotate-0"
|
|
5519
5575
|
)
|
|
@@ -5529,7 +5585,7 @@ function Accordion(props) {
|
|
|
5529
5585
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
5530
5586
|
Card,
|
|
5531
5587
|
{
|
|
5532
|
-
className: (0,
|
|
5588
|
+
className: (0, import_clsx24.default)(
|
|
5533
5589
|
"overflow-hidden select-none",
|
|
5534
5590
|
{ "cursor-pointer": !disabled },
|
|
5535
5591
|
className
|
|
@@ -5565,7 +5621,7 @@ function Accordion(props) {
|
|
|
5565
5621
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5566
5622
|
"div",
|
|
5567
5623
|
{
|
|
5568
|
-
className: (0,
|
|
5624
|
+
className: (0, import_clsx24.default)("grid transition-all duration-300 ease-in-out"),
|
|
5569
5625
|
style: {
|
|
5570
5626
|
gridTemplateRows: isOpen ? "1fr" : "0fr"
|
|
5571
5627
|
},
|
|
@@ -5573,7 +5629,7 @@ function Accordion(props) {
|
|
|
5573
5629
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5574
5630
|
"div",
|
|
5575
5631
|
{
|
|
5576
|
-
className: (0,
|
|
5632
|
+
className: (0, import_clsx24.default)(
|
|
5577
5633
|
typography.paragraph,
|
|
5578
5634
|
"text-text-primary-normal desktop:pt-desktop-layout-gap",
|
|
5579
5635
|
"flex flex-col gap-desktop-layout-gap"
|
|
@@ -5590,7 +5646,7 @@ function Accordion(props) {
|
|
|
5590
5646
|
}
|
|
5591
5647
|
|
|
5592
5648
|
// src/components/Heading.tsx
|
|
5593
|
-
var
|
|
5649
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
5594
5650
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
5595
5651
|
var Heading = (_a) => {
|
|
5596
5652
|
var _b = _a, {
|
|
@@ -5619,7 +5675,7 @@ var Heading = (_a) => {
|
|
|
5619
5675
|
__spreadProps(__spreadValues({
|
|
5620
5676
|
id,
|
|
5621
5677
|
"data-testid": testid,
|
|
5622
|
-
className: (0,
|
|
5678
|
+
className: (0, import_clsx25.default)(
|
|
5623
5679
|
typography[variant],
|
|
5624
5680
|
className,
|
|
5625
5681
|
align === "left" && "text-left",
|
|
@@ -5985,11 +6041,11 @@ function GridContextProvider(props) {
|
|
|
5985
6041
|
}
|
|
5986
6042
|
|
|
5987
6043
|
// src/components/Modal.tsx
|
|
5988
|
-
var
|
|
6044
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
5989
6045
|
var import_react27 = require("react");
|
|
5990
6046
|
|
|
5991
6047
|
// src/components/ModalHeader.tsx
|
|
5992
|
-
var
|
|
6048
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
5993
6049
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5994
6050
|
var ModalHeader = ({
|
|
5995
6051
|
title,
|
|
@@ -6009,7 +6065,7 @@ var ModalHeader = ({
|
|
|
6009
6065
|
{
|
|
6010
6066
|
id,
|
|
6011
6067
|
"data-testid": testid,
|
|
6012
|
-
className: (0,
|
|
6068
|
+
className: (0, import_clsx26.default)(
|
|
6013
6069
|
"flex justify-between items-center",
|
|
6014
6070
|
headerIconAlign === "center" && "justify-center",
|
|
6015
6071
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -6019,7 +6075,7 @@ var ModalHeader = ({
|
|
|
6019
6075
|
headerClassname
|
|
6020
6076
|
),
|
|
6021
6077
|
children: [
|
|
6022
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: (0,
|
|
6078
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: (0, import_clsx26.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
6023
6079
|
headerIcon,
|
|
6024
6080
|
title && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
6025
6081
|
Title,
|
|
@@ -6042,7 +6098,7 @@ var ModalHeader = ({
|
|
|
6042
6098
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
6043
6099
|
"span",
|
|
6044
6100
|
{
|
|
6045
|
-
className: (0,
|
|
6101
|
+
className: (0, import_clsx26.default)(
|
|
6046
6102
|
"contents",
|
|
6047
6103
|
headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
|
|
6048
6104
|
),
|
|
@@ -6058,7 +6114,7 @@ var ModalHeader = ({
|
|
|
6058
6114
|
ModalHeader.displayName = "ModalHeader";
|
|
6059
6115
|
|
|
6060
6116
|
// src/components/ModalContent.tsx
|
|
6061
|
-
var
|
|
6117
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
6062
6118
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
6063
6119
|
function ModalContent({
|
|
6064
6120
|
fixedHeightScrolling,
|
|
@@ -6071,7 +6127,7 @@ function ModalContent({
|
|
|
6071
6127
|
{
|
|
6072
6128
|
id,
|
|
6073
6129
|
"data-testid": testid,
|
|
6074
|
-
className: (0,
|
|
6130
|
+
className: (0, import_clsx27.default)(
|
|
6075
6131
|
"flex-grow desktop:flex-grow-0",
|
|
6076
6132
|
layoutPaddding,
|
|
6077
6133
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -6083,7 +6139,7 @@ function ModalContent({
|
|
|
6083
6139
|
ModalContent.displayName = "ModalContent";
|
|
6084
6140
|
|
|
6085
6141
|
// src/components/ModalButtons.tsx
|
|
6086
|
-
var
|
|
6142
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
6087
6143
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
6088
6144
|
var ModalButtons = ({
|
|
6089
6145
|
onClose,
|
|
@@ -6098,7 +6154,7 @@ var ModalButtons = ({
|
|
|
6098
6154
|
{
|
|
6099
6155
|
id,
|
|
6100
6156
|
"data-testid": testid,
|
|
6101
|
-
className: (0,
|
|
6157
|
+
className: (0, import_clsx28.default)(
|
|
6102
6158
|
"border-t border-neutral-300 flex justify-end",
|
|
6103
6159
|
mobileButtonStack && "flex-col ",
|
|
6104
6160
|
layoutPaddding,
|
|
@@ -6136,7 +6192,7 @@ var ModalButtons = ({
|
|
|
6136
6192
|
ModalButtons.displayName = "ModalButtons";
|
|
6137
6193
|
|
|
6138
6194
|
// src/components/ModalScrim.tsx
|
|
6139
|
-
var
|
|
6195
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
6140
6196
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
6141
6197
|
var ModalScrim = ({
|
|
6142
6198
|
show = false,
|
|
@@ -6152,7 +6208,7 @@ var ModalScrim = ({
|
|
|
6152
6208
|
{
|
|
6153
6209
|
id,
|
|
6154
6210
|
"data-testid": testid,
|
|
6155
|
-
className: (0,
|
|
6211
|
+
className: (0, import_clsx29.default)(
|
|
6156
6212
|
"overflow-y-auto h-dvh transition-[visibility,opacity,background] ease-in-out duration-100 grid place-content-center group bg-neutral-600/50 fixed opacity-0",
|
|
6157
6213
|
!show && " pointer-events-none",
|
|
6158
6214
|
size === "small" && "p-4",
|
|
@@ -6373,7 +6429,7 @@ var Modal = ({
|
|
|
6373
6429
|
id,
|
|
6374
6430
|
"data-testid": testid,
|
|
6375
6431
|
ref: modalRef,
|
|
6376
|
-
className: (0,
|
|
6432
|
+
className: (0, import_clsx30.default)(
|
|
6377
6433
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
|
|
6378
6434
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
6379
6435
|
className,
|
|
@@ -6548,10 +6604,10 @@ function RowDetailModalProvider() {
|
|
|
6548
6604
|
}
|
|
6549
6605
|
|
|
6550
6606
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
6551
|
-
var
|
|
6607
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
6552
6608
|
|
|
6553
6609
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
6554
|
-
var
|
|
6610
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
6555
6611
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
6556
6612
|
function MobileDataGridCard({
|
|
6557
6613
|
renderLink,
|
|
@@ -6569,7 +6625,7 @@ function MobileDataGridCard({
|
|
|
6569
6625
|
{
|
|
6570
6626
|
id: id ? `${id}-card-${getId(data)}` : void 0,
|
|
6571
6627
|
"data-testid": testid ? `${testid}-card-${getId(data)}` : void 0,
|
|
6572
|
-
className: (0,
|
|
6628
|
+
className: (0, import_clsx31.default)(
|
|
6573
6629
|
"flex flex-col",
|
|
6574
6630
|
"hover:bg-action-100 cursor-pointer list-none",
|
|
6575
6631
|
selected ? "bg-action-100" : "bg-background-grouped-primary-normal",
|
|
@@ -6692,7 +6748,7 @@ function ColumnList(props) {
|
|
|
6692
6748
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6693
6749
|
"div",
|
|
6694
6750
|
{
|
|
6695
|
-
className: (0,
|
|
6751
|
+
className: (0, import_clsx32.default)(
|
|
6696
6752
|
"flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
|
|
6697
6753
|
!!Footer && "mb-20"
|
|
6698
6754
|
),
|
|
@@ -6701,7 +6757,7 @@ function ColumnList(props) {
|
|
|
6701
6757
|
{
|
|
6702
6758
|
id,
|
|
6703
6759
|
"data-testid": testid,
|
|
6704
|
-
className: (0,
|
|
6760
|
+
className: (0, import_clsx32.default)(
|
|
6705
6761
|
"rounded absolute top-0 left-0 w-full flex-1",
|
|
6706
6762
|
empty && "!rounded-t-none",
|
|
6707
6763
|
"divide-y divide-border-primary-normal",
|
|
@@ -6711,7 +6767,7 @@ function ColumnList(props) {
|
|
|
6711
6767
|
empty ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
6712
6768
|
"div",
|
|
6713
6769
|
{
|
|
6714
|
-
className: (0,
|
|
6770
|
+
className: (0, import_clsx32.default)(
|
|
6715
6771
|
"flex flex-col items-center justify-center",
|
|
6716
6772
|
componentGap,
|
|
6717
6773
|
componentPadding
|
|
@@ -6893,7 +6949,7 @@ function Thumbnail({
|
|
|
6893
6949
|
}
|
|
6894
6950
|
|
|
6895
6951
|
// src/components/Grid.tsx
|
|
6896
|
-
var
|
|
6952
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
6897
6953
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
6898
6954
|
var GAP_BY_SIZING = {
|
|
6899
6955
|
none: "gap-0",
|
|
@@ -6949,7 +7005,7 @@ var Grid = (_a) => {
|
|
|
6949
7005
|
"data-testid": testid,
|
|
6950
7006
|
style
|
|
6951
7007
|
}, rest), {
|
|
6952
|
-
className: (0,
|
|
7008
|
+
className: (0, import_clsx33.default)(
|
|
6953
7009
|
"w-full grid",
|
|
6954
7010
|
(_a2 = GAP_BY_SIZING[sizing]) != null ? _a2 : GAP_BY_SIZING.container,
|
|
6955
7011
|
padding && ((_b2 = PADDING_BY_SIZING[sizing]) != null ? _b2 : PADDING_BY_SIZING.container),
|
|
@@ -7132,7 +7188,7 @@ function ProductPrimaryImage({
|
|
|
7132
7188
|
var import_react31 = require("react");
|
|
7133
7189
|
|
|
7134
7190
|
// src/components/Surface.tsx
|
|
7135
|
-
var
|
|
7191
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
7136
7192
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
7137
7193
|
var Surface = (_a) => {
|
|
7138
7194
|
var _b = _a, {
|
|
@@ -7150,7 +7206,7 @@ var Surface = (_a) => {
|
|
|
7150
7206
|
"div",
|
|
7151
7207
|
__spreadProps(__spreadValues({
|
|
7152
7208
|
id,
|
|
7153
|
-
className: (0,
|
|
7209
|
+
className: (0, import_clsx34.default)(
|
|
7154
7210
|
"rounded-base",
|
|
7155
7211
|
{
|
|
7156
7212
|
"shadow-2": elevation === 2,
|
|
@@ -7261,7 +7317,7 @@ function ZoomWindow({
|
|
|
7261
7317
|
}
|
|
7262
7318
|
|
|
7263
7319
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
7264
|
-
var
|
|
7320
|
+
var import_clsx35 = require("clsx");
|
|
7265
7321
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
7266
7322
|
function CarouselPagination({
|
|
7267
7323
|
images,
|
|
@@ -7273,7 +7329,7 @@ function CarouselPagination({
|
|
|
7273
7329
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7274
7330
|
"div",
|
|
7275
7331
|
{
|
|
7276
|
-
className: (0,
|
|
7332
|
+
className: (0, import_clsx35.clsx)(
|
|
7277
7333
|
"flex items-center justify-center w-full px-4 md:hidden",
|
|
7278
7334
|
className
|
|
7279
7335
|
),
|
|
@@ -7291,7 +7347,7 @@ function CarouselPagination({
|
|
|
7291
7347
|
{
|
|
7292
7348
|
type: "button",
|
|
7293
7349
|
onClick: () => onSelect(index),
|
|
7294
|
-
className: (0,
|
|
7350
|
+
className: (0, import_clsx35.clsx)(
|
|
7295
7351
|
"w-4 h-4 transition-all duration-200 focus:outline-none",
|
|
7296
7352
|
index === currentIndex ? "ring-2 ring-brand-400" : "ring ring-neutral-300"
|
|
7297
7353
|
),
|
|
@@ -7778,7 +7834,7 @@ function ProductImagePreview(props) {
|
|
|
7778
7834
|
|
|
7779
7835
|
// src/components/CompactImagesPreview.tsx
|
|
7780
7836
|
var import_react34 = require("react");
|
|
7781
|
-
var
|
|
7837
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
7782
7838
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7783
7839
|
function CompactImagesPreview(props) {
|
|
7784
7840
|
const {
|
|
@@ -7839,7 +7895,7 @@ function CompactImagesPreview(props) {
|
|
|
7839
7895
|
"img",
|
|
7840
7896
|
{
|
|
7841
7897
|
"data-testid": testid ? `${testid}-main-image` : void 0,
|
|
7842
|
-
className: (0,
|
|
7898
|
+
className: (0, import_clsx36.default)("object-center", onMainImageClick && "cursor-pointer"),
|
|
7843
7899
|
style: {
|
|
7844
7900
|
width: isMobile ? "100%" : activeImageWidth,
|
|
7845
7901
|
height: activeImageHeight,
|
|
@@ -7860,7 +7916,7 @@ function CompactImagesPreview(props) {
|
|
|
7860
7916
|
e.preventDefault();
|
|
7861
7917
|
handleThumbnailClick(index);
|
|
7862
7918
|
},
|
|
7863
|
-
className: (0,
|
|
7919
|
+
className: (0, import_clsx36.default)(
|
|
7864
7920
|
"cursor-pointer",
|
|
7865
7921
|
currentSourceIndex === index && enableThumbnailBorder ? "ring-2 ring-offset-2 ring-brand-400 transition-discrete duration-300" : "ring-brand-400/0"
|
|
7866
7922
|
),
|
|
@@ -7885,7 +7941,7 @@ function CompactImagesPreview(props) {
|
|
|
7885
7941
|
}
|
|
7886
7942
|
|
|
7887
7943
|
// src/components/SimpleTable.tsx
|
|
7888
|
-
var
|
|
7944
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
7889
7945
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
7890
7946
|
function SimpleTable({
|
|
7891
7947
|
columns,
|
|
@@ -7909,7 +7965,7 @@ function SimpleTable({
|
|
|
7909
7965
|
"th",
|
|
7910
7966
|
{
|
|
7911
7967
|
scope: "col",
|
|
7912
|
-
className: (0,
|
|
7968
|
+
className: (0, import_clsx37.default)(
|
|
7913
7969
|
"p-mobile-layout-padding desktop:p-desktop-layout-padding font-semibold text-text-primary-normal",
|
|
7914
7970
|
((_a = column.meta) == null ? void 0 : _a.headerWidth) ? column.meta.headerWidth : "w-2/3"
|
|
7915
7971
|
),
|
|
@@ -7929,7 +7985,7 @@ function SimpleTable({
|
|
|
7929
7985
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7930
7986
|
"td",
|
|
7931
7987
|
{
|
|
7932
|
-
className: (0,
|
|
7988
|
+
className: (0, import_clsx37.default)(
|
|
7933
7989
|
"p-mobile-layout-padding desktop:p-desktop-layout-padding align-middle text-text-primary-normal",
|
|
7934
7990
|
(_a = column.meta) == null ? void 0 : _a.headerWidth
|
|
7935
7991
|
),
|
|
@@ -7948,7 +8004,7 @@ function SimpleTable({
|
|
|
7948
8004
|
|
|
7949
8005
|
// src/components/ListGroup.tsx
|
|
7950
8006
|
var import_react35 = require("react");
|
|
7951
|
-
var
|
|
8007
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
7952
8008
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
7953
8009
|
function ListGroup({
|
|
7954
8010
|
title,
|
|
@@ -7969,13 +8025,13 @@ function ListGroup({
|
|
|
7969
8025
|
if (!isControlled) setUncontrolledOpen(next);
|
|
7970
8026
|
onToggle == null ? void 0 : onToggle(next);
|
|
7971
8027
|
};
|
|
7972
|
-
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { "data-testid": testid, className: (0,
|
|
8028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { "data-testid": testid, className: (0, import_clsx38.default)("rounded-sm", className), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Stack, { sizing: "layout", noGap: true, children: [
|
|
7973
8029
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
7974
8030
|
"button",
|
|
7975
8031
|
{
|
|
7976
8032
|
type: "button",
|
|
7977
8033
|
onClick: toggle,
|
|
7978
|
-
className: (0,
|
|
8034
|
+
className: (0, import_clsx38.default)(
|
|
7979
8035
|
"w-full flex items-center justify-between text-left",
|
|
7980
8036
|
disabled && "opacity-50 cursor-not-allowed"
|
|
7981
8037
|
),
|
|
@@ -7986,7 +8042,7 @@ function ListGroup({
|
|
|
7986
8042
|
Icon,
|
|
7987
8043
|
{
|
|
7988
8044
|
name: "expand_more",
|
|
7989
|
-
className: (0,
|
|
8045
|
+
className: (0, import_clsx38.default)(
|
|
7990
8046
|
"transition-transform duration-200",
|
|
7991
8047
|
isOpen ? "rotate-180" : "rotate-0"
|
|
7992
8048
|
)
|
|
@@ -8001,7 +8057,7 @@ function ListGroup({
|
|
|
8001
8057
|
|
|
8002
8058
|
// src/components/Pagination.tsx
|
|
8003
8059
|
var import_react36 = require("react");
|
|
8004
|
-
var
|
|
8060
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
8005
8061
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
8006
8062
|
var Pagination = ({
|
|
8007
8063
|
totalPages,
|
|
@@ -8066,7 +8122,7 @@ var Pagination = ({
|
|
|
8066
8122
|
return tokens;
|
|
8067
8123
|
}, [totalPages, currentPage]);
|
|
8068
8124
|
if (totalPages <= 1) return null;
|
|
8069
|
-
const buttonClass = (0,
|
|
8125
|
+
const buttonClass = (0, import_clsx39.default)(
|
|
8070
8126
|
"cursor-pointer disabled:cursor-default",
|
|
8071
8127
|
paddingUsingComponentGap,
|
|
8072
8128
|
"w-8 h-8",
|
|
@@ -8084,7 +8140,7 @@ var Pagination = ({
|
|
|
8084
8140
|
"data-testid": testid,
|
|
8085
8141
|
"aria-label": "Pagination",
|
|
8086
8142
|
onKeyDown: handleKey,
|
|
8087
|
-
className: (0,
|
|
8143
|
+
className: (0, import_clsx39.default)(
|
|
8088
8144
|
"flex items-center",
|
|
8089
8145
|
"border border-border-primary-normal",
|
|
8090
8146
|
"bg-background-grouped-primary-normal",
|
|
@@ -8098,11 +8154,11 @@ var Pagination = ({
|
|
|
8098
8154
|
disabled: disabled || currentPage <= 1,
|
|
8099
8155
|
"aria-label": "Previous page",
|
|
8100
8156
|
onClick: () => goTo(currentPage - 1),
|
|
8101
|
-
className: (0,
|
|
8157
|
+
className: (0, import_clsx39.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
8102
8158
|
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
8103
8159
|
}
|
|
8104
8160
|
),
|
|
8105
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { className: (0,
|
|
8161
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { className: (0, import_clsx39.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
8106
8162
|
if (token === "ellipsis") {
|
|
8107
8163
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8108
8164
|
"li",
|
|
@@ -8121,7 +8177,7 @@ var Pagination = ({
|
|
|
8121
8177
|
"aria-current": selected ? "page" : void 0,
|
|
8122
8178
|
disabled,
|
|
8123
8179
|
onClick: () => goTo(token),
|
|
8124
|
-
className: (0,
|
|
8180
|
+
className: (0, import_clsx39.default)(
|
|
8125
8181
|
buttonClass,
|
|
8126
8182
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
8127
8183
|
),
|
|
@@ -8135,7 +8191,7 @@ var Pagination = ({
|
|
|
8135
8191
|
disabled: disabled || currentPage >= totalPages,
|
|
8136
8192
|
"aria-label": "Next page",
|
|
8137
8193
|
onClick: () => goTo(currentPage + 1),
|
|
8138
|
-
className: (0,
|
|
8194
|
+
className: (0, import_clsx39.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
8139
8195
|
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
8140
8196
|
}
|
|
8141
8197
|
)
|
|
@@ -8219,7 +8275,7 @@ function SearchResultImage({
|
|
|
8219
8275
|
}
|
|
8220
8276
|
|
|
8221
8277
|
// src/components/Alert.tsx
|
|
8222
|
-
var
|
|
8278
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
8223
8279
|
var import_react38 = require("react");
|
|
8224
8280
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
8225
8281
|
function Alert(_a) {
|
|
@@ -8263,7 +8319,7 @@ function Alert(_a) {
|
|
|
8263
8319
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
8264
8320
|
"div",
|
|
8265
8321
|
{
|
|
8266
|
-
className: (0,
|
|
8322
|
+
className: (0, import_clsx40.default)("min-w-[2px] min-h-full flex", {
|
|
8267
8323
|
"bg-background-critical-normal": isError,
|
|
8268
8324
|
"bg-background-warning-normal": !isError
|
|
8269
8325
|
})
|
|
@@ -8272,7 +8328,7 @@ function Alert(_a) {
|
|
|
8272
8328
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
8273
8329
|
"span",
|
|
8274
8330
|
{
|
|
8275
|
-
className: (0,
|
|
8331
|
+
className: (0, import_clsx40.default)({
|
|
8276
8332
|
"text-icon-critical-normal": isError,
|
|
8277
8333
|
"text-icon-warning-normal": !isError
|
|
8278
8334
|
}),
|
|
@@ -8340,10 +8396,10 @@ var useTableEditingContext = () => {
|
|
|
8340
8396
|
};
|
|
8341
8397
|
|
|
8342
8398
|
// src/components/AccessCard.tsx
|
|
8343
|
-
var
|
|
8399
|
+
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
8344
8400
|
|
|
8345
8401
|
// src/components/Radio.tsx
|
|
8346
|
-
var
|
|
8402
|
+
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
8347
8403
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
8348
8404
|
var Radio = (_a) => {
|
|
8349
8405
|
var _b = _a, {
|
|
@@ -8367,16 +8423,16 @@ var Radio = (_a) => {
|
|
|
8367
8423
|
]);
|
|
8368
8424
|
const radioId = id;
|
|
8369
8425
|
const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
|
|
8370
|
-
const defaultClassName = (0,
|
|
8426
|
+
const defaultClassName = (0, import_clsx41.default)(
|
|
8371
8427
|
!error && !disabled && "border-border-primary-normal peer-hover:border-border-action-hover peer-hover:bg-background-action-secondary-hover peer-focus:border-border-action-hover peer-focus:bg-background-action-secondary-hover peer-active:border-border-action-active peer-active:bg-background-action-secondary-active peer-checked:border-0 peer-checked:bg-background-action-secondary-hover"
|
|
8372
8428
|
);
|
|
8373
|
-
const errorClassName = (0,
|
|
8429
|
+
const errorClassName = (0, import_clsx41.default)(
|
|
8374
8430
|
error && !disabled && "border-border-action-critical-normal peer-hover:border-border-action-critical-hover peer-hover:bg-background-action-critical-secondary-hover peer-focus:border-border-action-critical-hover peer-focus:bg-background-action-critical-secondary-hover peer-active:border-border-action-critical-active peer-active:bg-background-action-secondary-active peer-checked:bg-background-action-critical-secondary-hover peer-checked:border-0 "
|
|
8375
8431
|
);
|
|
8376
|
-
const disabledClassName = (0,
|
|
8432
|
+
const disabledClassName = (0, import_clsx41.default)(
|
|
8377
8433
|
disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
|
|
8378
8434
|
);
|
|
8379
|
-
const readonlyClassName = (0,
|
|
8435
|
+
const readonlyClassName = (0, import_clsx41.default)(
|
|
8380
8436
|
readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
|
|
8381
8437
|
);
|
|
8382
8438
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
@@ -8384,7 +8440,7 @@ var Radio = (_a) => {
|
|
|
8384
8440
|
{
|
|
8385
8441
|
htmlFor: radioId,
|
|
8386
8442
|
"data-testid": testid,
|
|
8387
|
-
className: (0,
|
|
8443
|
+
className: (0, import_clsx41.default)(
|
|
8388
8444
|
"flex items-center",
|
|
8389
8445
|
componentGap,
|
|
8390
8446
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
@@ -8407,7 +8463,7 @@ var Radio = (_a) => {
|
|
|
8407
8463
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
8408
8464
|
"div",
|
|
8409
8465
|
{
|
|
8410
|
-
className: (0,
|
|
8466
|
+
className: (0, import_clsx41.default)(
|
|
8411
8467
|
"size-6 rounded-full border flex items-center justify-center",
|
|
8412
8468
|
baseTransition,
|
|
8413
8469
|
defaultClassName,
|
|
@@ -8418,7 +8474,7 @@ var Radio = (_a) => {
|
|
|
8418
8474
|
children: checked && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
8419
8475
|
RadioIcon,
|
|
8420
8476
|
{
|
|
8421
|
-
className: (0,
|
|
8477
|
+
className: (0, import_clsx41.default)(
|
|
8422
8478
|
"transition-colors",
|
|
8423
8479
|
!error && !disabled && "text-icon-on-action-secondary-normal hover:text-icon-on-action-secondary-hover active:text-icon-on-action-secondary-active peer-hover:text-icon-on-action-secondary-hover peer-focus:text-icon-on-action-secondary-hover peer-active:text-icon-on-action-secondary-active",
|
|
8424
8480
|
error && !disabled && "text-icon-action-critical-secondary-normal hover:text-icon-action-critical-secondary-hover active:text-icon-action-critical-secondary-active peer-hover:text-icon-action-critical-secondary-hover peer-focus:text-icon-action-critical-secondary-hover peer-active:text-icon-action-critical-secondary-active",
|
|
@@ -8485,7 +8541,7 @@ function AccessCard(props) {
|
|
|
8485
8541
|
"div",
|
|
8486
8542
|
{
|
|
8487
8543
|
"data-testid": testid,
|
|
8488
|
-
className: (0,
|
|
8544
|
+
className: (0, import_clsx42.default)(
|
|
8489
8545
|
"cursor-pointer bg-background-grouped-secondary-normal",
|
|
8490
8546
|
"px-4 py-2 gap-2",
|
|
8491
8547
|
"shadow-access-card rounded",
|
|
@@ -8532,7 +8588,7 @@ function AccessCard(props) {
|
|
|
8532
8588
|
}
|
|
8533
8589
|
|
|
8534
8590
|
// src/components/AccessCardGroup.tsx
|
|
8535
|
-
var
|
|
8591
|
+
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
8536
8592
|
var import_react40 = require("react");
|
|
8537
8593
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
8538
8594
|
function AccessCardGroup(props) {
|
|
@@ -8552,7 +8608,7 @@ function AccessCardGroup(props) {
|
|
|
8552
8608
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
8553
8609
|
"div",
|
|
8554
8610
|
{
|
|
8555
|
-
className: (0,
|
|
8611
|
+
className: (0, import_clsx43.default)(
|
|
8556
8612
|
"flex items-center",
|
|
8557
8613
|
"p-2 pr-4 gap-2",
|
|
8558
8614
|
"rounded",
|
|
@@ -8570,7 +8626,7 @@ function AccessCardGroup(props) {
|
|
|
8570
8626
|
Icon,
|
|
8571
8627
|
{
|
|
8572
8628
|
name: "keyboard_arrow_down",
|
|
8573
|
-
className: (0,
|
|
8629
|
+
className: (0, import_clsx43.default)(
|
|
8574
8630
|
expand && "rotate-180",
|
|
8575
8631
|
"transform transition-all duration-300 ease-in-out"
|
|
8576
8632
|
)
|
|
@@ -8593,7 +8649,7 @@ function AccessCardGroup(props) {
|
|
|
8593
8649
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
8594
8650
|
"div",
|
|
8595
8651
|
{
|
|
8596
|
-
className: (0,
|
|
8652
|
+
className: (0, import_clsx43.default)(
|
|
8597
8653
|
"grid transition-all duration-300 ease-in-out",
|
|
8598
8654
|
expand ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
8599
8655
|
),
|
|
@@ -8640,9 +8696,9 @@ var useSelectedSnapDisplay = (emblaApi) => {
|
|
|
8640
8696
|
};
|
|
8641
8697
|
|
|
8642
8698
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
8643
|
-
var
|
|
8699
|
+
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
8644
8700
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
8645
|
-
var arrowButtonStyles = (0,
|
|
8701
|
+
var arrowButtonStyles = (0, import_clsx44.default)(
|
|
8646
8702
|
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
|
|
8647
8703
|
);
|
|
8648
8704
|
var PrevButton = (props) => {
|
|
@@ -8650,7 +8706,7 @@ var PrevButton = (props) => {
|
|
|
8650
8706
|
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
8651
8707
|
"button",
|
|
8652
8708
|
__spreadProps(__spreadValues({
|
|
8653
|
-
className: (0,
|
|
8709
|
+
className: (0, import_clsx44.default)(
|
|
8654
8710
|
arrowButtonStyles,
|
|
8655
8711
|
!disabled && "border-border-primary-normal hover:border-border-action-hover active:border-border-action-active",
|
|
8656
8712
|
disabled && "border-border-action-disabled"
|
|
@@ -8661,7 +8717,7 @@ var PrevButton = (props) => {
|
|
|
8661
8717
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
8662
8718
|
"svg",
|
|
8663
8719
|
{
|
|
8664
|
-
className: (0,
|
|
8720
|
+
className: (0, import_clsx44.default)(
|
|
8665
8721
|
"size-3 transition-colors duration-300 ease-in-out",
|
|
8666
8722
|
!disabled && "text-text-primary-normal",
|
|
8667
8723
|
disabled && "text-icon-primary-disabled"
|
|
@@ -8686,7 +8742,7 @@ var NextButton = (props) => {
|
|
|
8686
8742
|
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
8687
8743
|
"button",
|
|
8688
8744
|
__spreadProps(__spreadValues({
|
|
8689
|
-
className: (0,
|
|
8745
|
+
className: (0, import_clsx44.default)(
|
|
8690
8746
|
arrowButtonStyles,
|
|
8691
8747
|
!disabled && "border-border-primary-normal hover:border-border-action-hover active:border-border-action-active",
|
|
8692
8748
|
disabled && "border-border-action-disabled"
|
|
@@ -8697,7 +8753,7 @@ var NextButton = (props) => {
|
|
|
8697
8753
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
8698
8754
|
"svg",
|
|
8699
8755
|
{
|
|
8700
|
-
className: (0,
|
|
8756
|
+
className: (0, import_clsx44.default)(
|
|
8701
8757
|
"size-3 transition-colors duration-300 ease-in-out",
|
|
8702
8758
|
!disabled && "text-text-primary-normal",
|
|
8703
8759
|
disabled && "text-icon-primary-disabled"
|