@dmsi/wedgekit-react 0.0.884 → 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
|
@@ -62,7 +62,7 @@ __export(TableBodyRow_exports, {
|
|
|
62
62
|
TableBodyRow: () => TableBodyRow
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(TableBodyRow_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
66
66
|
var import_react_table3 = require("@tanstack/react-table");
|
|
67
67
|
var import_react43 = __toESM(require("react"), 1);
|
|
68
68
|
|
|
@@ -4289,6 +4289,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
4289
4289
|
// src/components/DateInput.tsx
|
|
4290
4290
|
var import_react20 = require("react");
|
|
4291
4291
|
var import_react_dom3 = require("react-dom");
|
|
4292
|
+
var import_clsx20 = __toESM(require("clsx"), 1);
|
|
4292
4293
|
|
|
4293
4294
|
// src/components/CalendarRange.tsx
|
|
4294
4295
|
var import_clsx19 = __toESM(require("clsx"), 1);
|
|
@@ -4843,10 +4844,12 @@ var DateInput = (_a) => {
|
|
|
4843
4844
|
const popoverRef = (0, import_react20.useRef)(null);
|
|
4844
4845
|
const triggerRef = (0, import_react20.useRef)(null);
|
|
4845
4846
|
const rootRef = (0, import_react20.useRef)(null);
|
|
4847
|
+
const isMobile = useMatchesMobile();
|
|
4846
4848
|
const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
|
|
4847
4849
|
top: 0,
|
|
4848
4850
|
left: 0,
|
|
4849
|
-
width: 0
|
|
4851
|
+
width: 0,
|
|
4852
|
+
openAbove: false
|
|
4850
4853
|
});
|
|
4851
4854
|
const [from, to] = [value, ""];
|
|
4852
4855
|
(0, import_react20.useEffect)(() => {
|
|
@@ -4862,11 +4865,28 @@ var DateInput = (_a) => {
|
|
|
4862
4865
|
const updatePosition = () => {
|
|
4863
4866
|
if (rootRef.current) {
|
|
4864
4867
|
const rect = rootRef.current.getBoundingClientRect();
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4868
|
+
const viewportWidth = window.innerWidth;
|
|
4869
|
+
const viewportHeight = window.innerHeight;
|
|
4870
|
+
const calendarWidth = 340;
|
|
4871
|
+
const calendarHeight = 400;
|
|
4872
|
+
let viewportLeft = rect.left;
|
|
4873
|
+
if (viewportLeft + calendarWidth > viewportWidth) {
|
|
4874
|
+
viewportLeft = rect.right - calendarWidth;
|
|
4875
|
+
if (viewportLeft < 0) {
|
|
4876
|
+
viewportLeft = Math.max(0, (viewportWidth - calendarWidth) / 2);
|
|
4877
|
+
}
|
|
4878
|
+
}
|
|
4879
|
+
const left = viewportLeft + window.scrollX;
|
|
4880
|
+
const spaceBelow = viewportHeight - rect.bottom;
|
|
4881
|
+
const spaceAbove = rect.top;
|
|
4882
|
+
const openAbove = spaceBelow < calendarHeight && spaceAbove > spaceBelow;
|
|
4883
|
+
let top;
|
|
4884
|
+
if (openAbove) {
|
|
4885
|
+
top = rect.top + window.scrollY - calendarHeight - 4;
|
|
4886
|
+
} else {
|
|
4887
|
+
top = rect.bottom + window.scrollY + 4;
|
|
4888
|
+
}
|
|
4889
|
+
setCalendarPosition({ top, left, width: rect.width, openAbove });
|
|
4870
4890
|
}
|
|
4871
4891
|
};
|
|
4872
4892
|
(0, import_react20.useEffect)(() => {
|
|
@@ -4949,7 +4969,10 @@ var DateInput = (_a) => {
|
|
|
4949
4969
|
if (cursorPosition > 0 && value2[cursorPosition - 1] === sep) {
|
|
4950
4970
|
event.preventDefault();
|
|
4951
4971
|
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
4952
|
-
const formattedValue = formatInputValueWithDashes(
|
|
4972
|
+
const formattedValue = formatInputValueWithDashes(
|
|
4973
|
+
newValue,
|
|
4974
|
+
dateInDashes
|
|
4975
|
+
);
|
|
4953
4976
|
setInputValue(formattedValue);
|
|
4954
4977
|
requestAnimationFrame(() => {
|
|
4955
4978
|
if (triggerRef.current) {
|
|
@@ -5000,25 +5023,58 @@ var DateInput = (_a) => {
|
|
|
5000
5023
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5001
5024
|
"div",
|
|
5002
5025
|
{
|
|
5003
|
-
className:
|
|
5026
|
+
className: (0, import_clsx20.default)(
|
|
5027
|
+
"fixed inset-0 z-50",
|
|
5028
|
+
isMobile && "overflow-y-auto bg-neutral-600/50"
|
|
5029
|
+
),
|
|
5004
5030
|
onClick: () => setVisible(false),
|
|
5005
5031
|
onMouseDown: (e) => {
|
|
5006
|
-
|
|
5032
|
+
if (!isMobile) {
|
|
5033
|
+
e.preventDefault();
|
|
5034
|
+
}
|
|
5007
5035
|
},
|
|
5008
5036
|
onWheel: (e) => {
|
|
5009
5037
|
var _a2;
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5038
|
+
if (!isMobile) {
|
|
5039
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5040
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5041
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5042
|
+
}
|
|
5013
5043
|
},
|
|
5014
5044
|
onTouchMove: (e) => {
|
|
5015
|
-
|
|
5045
|
+
if (!isMobile) {
|
|
5046
|
+
e.stopPropagation();
|
|
5047
|
+
}
|
|
5016
5048
|
},
|
|
5017
|
-
style: { touchAction: "pan-y pan-x" },
|
|
5018
|
-
"aria-hidden": "true"
|
|
5049
|
+
style: { touchAction: isMobile ? "auto" : "pan-y pan-x" },
|
|
5050
|
+
"aria-hidden": "true",
|
|
5051
|
+
children: isMobile && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "min-h-full flex items-start justify-center py-4 px-2", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5052
|
+
"div",
|
|
5053
|
+
{
|
|
5054
|
+
ref: (el) => {
|
|
5055
|
+
popoverRef.current = el;
|
|
5056
|
+
},
|
|
5057
|
+
className: "bg-white rounded-base shadow-4 max-w-full",
|
|
5058
|
+
onClick: (e) => e.stopPropagation(),
|
|
5059
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5060
|
+
CalendarRange,
|
|
5061
|
+
{
|
|
5062
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5063
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5064
|
+
from,
|
|
5065
|
+
to: to || from,
|
|
5066
|
+
onChange: handleDateChange,
|
|
5067
|
+
cardStyle: true,
|
|
5068
|
+
mode: "single",
|
|
5069
|
+
disableRange: true,
|
|
5070
|
+
isDateAvailable
|
|
5071
|
+
}
|
|
5072
|
+
)
|
|
5073
|
+
}
|
|
5074
|
+
) })
|
|
5019
5075
|
}
|
|
5020
5076
|
),
|
|
5021
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5077
|
+
!isMobile && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5022
5078
|
"div",
|
|
5023
5079
|
{
|
|
5024
5080
|
ref: (el) => {
|
|
@@ -5026,7 +5082,7 @@ var DateInput = (_a) => {
|
|
|
5026
5082
|
},
|
|
5027
5083
|
className: "absolute z-50 bg-white",
|
|
5028
5084
|
style: {
|
|
5029
|
-
top: `${calendarPosition.top
|
|
5085
|
+
top: `${calendarPosition.top}px`,
|
|
5030
5086
|
left: `${calendarPosition.left}px`
|
|
5031
5087
|
},
|
|
5032
5088
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
@@ -5062,21 +5118,21 @@ function formatDisplayValue(from, dateInDashes) {
|
|
|
5062
5118
|
}
|
|
5063
5119
|
|
|
5064
5120
|
// src/components/Accordion.tsx
|
|
5065
|
-
var
|
|
5121
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
5066
5122
|
|
|
5067
5123
|
// src/components/Card.tsx
|
|
5068
|
-
var
|
|
5124
|
+
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
5069
5125
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
5070
5126
|
|
|
5071
5127
|
// src/components/Stack.tsx
|
|
5072
|
-
var
|
|
5128
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
5073
5129
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
5074
5130
|
|
|
5075
5131
|
// src/components/Accordion.tsx
|
|
5076
5132
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
5077
5133
|
|
|
5078
5134
|
// src/components/Heading.tsx
|
|
5079
|
-
var
|
|
5135
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
5080
5136
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
5081
5137
|
var Heading = (_a) => {
|
|
5082
5138
|
var _b = _a, {
|
|
@@ -5105,7 +5161,7 @@ var Heading = (_a) => {
|
|
|
5105
5161
|
__spreadProps(__spreadValues({
|
|
5106
5162
|
id,
|
|
5107
5163
|
"data-testid": testid,
|
|
5108
|
-
className: (0,
|
|
5164
|
+
className: (0, import_clsx24.default)(
|
|
5109
5165
|
typography[variant],
|
|
5110
5166
|
className,
|
|
5111
5167
|
align === "left" && "text-left",
|
|
@@ -5152,11 +5208,11 @@ var import_react24 = require("react");
|
|
|
5152
5208
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
5153
5209
|
|
|
5154
5210
|
// src/components/Modal.tsx
|
|
5155
|
-
var
|
|
5211
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
5156
5212
|
var import_react26 = require("react");
|
|
5157
5213
|
|
|
5158
5214
|
// src/components/ModalHeader.tsx
|
|
5159
|
-
var
|
|
5215
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
5160
5216
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
5161
5217
|
var ModalHeader = ({
|
|
5162
5218
|
title,
|
|
@@ -5176,7 +5232,7 @@ var ModalHeader = ({
|
|
|
5176
5232
|
{
|
|
5177
5233
|
id,
|
|
5178
5234
|
"data-testid": testid,
|
|
5179
|
-
className: (0,
|
|
5235
|
+
className: (0, import_clsx25.default)(
|
|
5180
5236
|
"flex justify-between items-center",
|
|
5181
5237
|
headerIconAlign === "center" && "justify-center",
|
|
5182
5238
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -5186,7 +5242,7 @@ var ModalHeader = ({
|
|
|
5186
5242
|
headerClassname
|
|
5187
5243
|
),
|
|
5188
5244
|
children: [
|
|
5189
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0,
|
|
5245
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0, import_clsx25.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
5190
5246
|
headerIcon,
|
|
5191
5247
|
title && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5192
5248
|
Title,
|
|
@@ -5209,7 +5265,7 @@ var ModalHeader = ({
|
|
|
5209
5265
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5210
5266
|
"span",
|
|
5211
5267
|
{
|
|
5212
|
-
className: (0,
|
|
5268
|
+
className: (0, import_clsx25.default)(
|
|
5213
5269
|
"contents",
|
|
5214
5270
|
headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
|
|
5215
5271
|
),
|
|
@@ -5225,7 +5281,7 @@ var ModalHeader = ({
|
|
|
5225
5281
|
ModalHeader.displayName = "ModalHeader";
|
|
5226
5282
|
|
|
5227
5283
|
// src/components/ModalContent.tsx
|
|
5228
|
-
var
|
|
5284
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
5229
5285
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5230
5286
|
function ModalContent({
|
|
5231
5287
|
fixedHeightScrolling,
|
|
@@ -5238,7 +5294,7 @@ function ModalContent({
|
|
|
5238
5294
|
{
|
|
5239
5295
|
id,
|
|
5240
5296
|
"data-testid": testid,
|
|
5241
|
-
className: (0,
|
|
5297
|
+
className: (0, import_clsx26.default)(
|
|
5242
5298
|
"flex-grow desktop:flex-grow-0",
|
|
5243
5299
|
layoutPaddding,
|
|
5244
5300
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -5250,7 +5306,7 @@ function ModalContent({
|
|
|
5250
5306
|
ModalContent.displayName = "ModalContent";
|
|
5251
5307
|
|
|
5252
5308
|
// src/components/ModalButtons.tsx
|
|
5253
|
-
var
|
|
5309
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
5254
5310
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
5255
5311
|
var ModalButtons = ({
|
|
5256
5312
|
onClose,
|
|
@@ -5265,7 +5321,7 @@ var ModalButtons = ({
|
|
|
5265
5321
|
{
|
|
5266
5322
|
id,
|
|
5267
5323
|
"data-testid": testid,
|
|
5268
|
-
className: (0,
|
|
5324
|
+
className: (0, import_clsx27.default)(
|
|
5269
5325
|
"border-t border-neutral-300 flex justify-end",
|
|
5270
5326
|
mobileButtonStack && "flex-col ",
|
|
5271
5327
|
layoutPaddding,
|
|
@@ -5303,7 +5359,7 @@ var ModalButtons = ({
|
|
|
5303
5359
|
ModalButtons.displayName = "ModalButtons";
|
|
5304
5360
|
|
|
5305
5361
|
// src/components/ModalScrim.tsx
|
|
5306
|
-
var
|
|
5362
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
5307
5363
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
5308
5364
|
var ModalScrim = ({
|
|
5309
5365
|
show = false,
|
|
@@ -5319,7 +5375,7 @@ var ModalScrim = ({
|
|
|
5319
5375
|
{
|
|
5320
5376
|
id,
|
|
5321
5377
|
"data-testid": testid,
|
|
5322
|
-
className: (0,
|
|
5378
|
+
className: (0, import_clsx28.default)(
|
|
5323
5379
|
"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",
|
|
5324
5380
|
!show && " pointer-events-none",
|
|
5325
5381
|
size === "small" && "p-4",
|
|
@@ -5540,7 +5596,7 @@ var Modal = ({
|
|
|
5540
5596
|
id,
|
|
5541
5597
|
"data-testid": testid,
|
|
5542
5598
|
ref: modalRef,
|
|
5543
|
-
className: (0,
|
|
5599
|
+
className: (0, import_clsx29.default)(
|
|
5544
5600
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
|
|
5545
5601
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
5546
5602
|
className,
|
|
@@ -5604,10 +5660,10 @@ var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
|
5604
5660
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
5605
5661
|
|
|
5606
5662
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
5607
|
-
var
|
|
5663
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
5608
5664
|
|
|
5609
5665
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
5610
|
-
var
|
|
5666
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
5611
5667
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
5612
5668
|
|
|
5613
5669
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
@@ -5627,7 +5683,7 @@ var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
|
5627
5683
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5628
5684
|
|
|
5629
5685
|
// src/components/Grid.tsx
|
|
5630
|
-
var
|
|
5686
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
5631
5687
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5632
5688
|
|
|
5633
5689
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
@@ -5638,7 +5694,7 @@ var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
|
5638
5694
|
var import_react30 = require("react");
|
|
5639
5695
|
|
|
5640
5696
|
// src/components/Surface.tsx
|
|
5641
|
-
var
|
|
5697
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
5642
5698
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5643
5699
|
var Surface = (_a) => {
|
|
5644
5700
|
var _b = _a, {
|
|
@@ -5656,7 +5712,7 @@ var Surface = (_a) => {
|
|
|
5656
5712
|
"div",
|
|
5657
5713
|
__spreadProps(__spreadValues({
|
|
5658
5714
|
id,
|
|
5659
|
-
className: (0,
|
|
5715
|
+
className: (0, import_clsx33.default)(
|
|
5660
5716
|
"rounded-base",
|
|
5661
5717
|
{
|
|
5662
5718
|
"shadow-2": elevation === 2,
|
|
@@ -5676,7 +5732,7 @@ Surface.displayName = "Surface";
|
|
|
5676
5732
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5677
5733
|
|
|
5678
5734
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
5679
|
-
var
|
|
5735
|
+
var import_clsx34 = require("clsx");
|
|
5680
5736
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5681
5737
|
|
|
5682
5738
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
@@ -5691,21 +5747,21 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
|
5691
5747
|
|
|
5692
5748
|
// src/components/CompactImagesPreview.tsx
|
|
5693
5749
|
var import_react33 = require("react");
|
|
5694
|
-
var
|
|
5750
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
5695
5751
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5696
5752
|
|
|
5697
5753
|
// src/components/SimpleTable.tsx
|
|
5698
|
-
var
|
|
5754
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5699
5755
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5700
5756
|
|
|
5701
5757
|
// src/components/ListGroup.tsx
|
|
5702
5758
|
var import_react34 = require("react");
|
|
5703
|
-
var
|
|
5759
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5704
5760
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5705
5761
|
|
|
5706
5762
|
// src/components/Pagination.tsx
|
|
5707
5763
|
var import_react35 = require("react");
|
|
5708
|
-
var
|
|
5764
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
5709
5765
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5710
5766
|
var Pagination = ({
|
|
5711
5767
|
totalPages,
|
|
@@ -5770,7 +5826,7 @@ var Pagination = ({
|
|
|
5770
5826
|
return tokens;
|
|
5771
5827
|
}, [totalPages, currentPage]);
|
|
5772
5828
|
if (totalPages <= 1) return null;
|
|
5773
|
-
const buttonClass = (0,
|
|
5829
|
+
const buttonClass = (0, import_clsx38.default)(
|
|
5774
5830
|
"cursor-pointer disabled:cursor-default",
|
|
5775
5831
|
paddingUsingComponentGap,
|
|
5776
5832
|
"w-8 h-8",
|
|
@@ -5788,7 +5844,7 @@ var Pagination = ({
|
|
|
5788
5844
|
"data-testid": testid,
|
|
5789
5845
|
"aria-label": "Pagination",
|
|
5790
5846
|
onKeyDown: handleKey,
|
|
5791
|
-
className: (0,
|
|
5847
|
+
className: (0, import_clsx38.default)(
|
|
5792
5848
|
"flex items-center",
|
|
5793
5849
|
"border border-border-primary-normal",
|
|
5794
5850
|
"bg-background-grouped-primary-normal",
|
|
@@ -5802,11 +5858,11 @@ var Pagination = ({
|
|
|
5802
5858
|
disabled: disabled || currentPage <= 1,
|
|
5803
5859
|
"aria-label": "Previous page",
|
|
5804
5860
|
onClick: () => goTo(currentPage - 1),
|
|
5805
|
-
className: (0,
|
|
5861
|
+
className: (0, import_clsx38.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
5806
5862
|
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
5807
5863
|
}
|
|
5808
5864
|
),
|
|
5809
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: (0,
|
|
5865
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: (0, import_clsx38.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
5810
5866
|
if (token === "ellipsis") {
|
|
5811
5867
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5812
5868
|
"li",
|
|
@@ -5825,7 +5881,7 @@ var Pagination = ({
|
|
|
5825
5881
|
"aria-current": selected ? "page" : void 0,
|
|
5826
5882
|
disabled,
|
|
5827
5883
|
onClick: () => goTo(token),
|
|
5828
|
-
className: (0,
|
|
5884
|
+
className: (0, import_clsx38.default)(
|
|
5829
5885
|
buttonClass,
|
|
5830
5886
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
5831
5887
|
),
|
|
@@ -5839,7 +5895,7 @@ var Pagination = ({
|
|
|
5839
5895
|
disabled: disabled || currentPage >= totalPages,
|
|
5840
5896
|
"aria-label": "Next page",
|
|
5841
5897
|
onClick: () => goTo(currentPage + 1),
|
|
5842
|
-
className: (0,
|
|
5898
|
+
className: (0, import_clsx38.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
5843
5899
|
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
5844
5900
|
}
|
|
5845
5901
|
)
|
|
@@ -5860,7 +5916,7 @@ var import_react36 = require("react");
|
|
|
5860
5916
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5861
5917
|
|
|
5862
5918
|
// src/components/Alert.tsx
|
|
5863
|
-
var
|
|
5919
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
5864
5920
|
var import_react37 = require("react");
|
|
5865
5921
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5866
5922
|
|
|
@@ -5873,10 +5929,10 @@ var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
|
5873
5929
|
var EditingContext = (0, import_react38.createContext)(null);
|
|
5874
5930
|
|
|
5875
5931
|
// src/components/AccessCard.tsx
|
|
5876
|
-
var
|
|
5932
|
+
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
5877
5933
|
|
|
5878
5934
|
// src/components/Radio.tsx
|
|
5879
|
-
var
|
|
5935
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
5880
5936
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5881
5937
|
var Radio = (_a) => {
|
|
5882
5938
|
var _b = _a, {
|
|
@@ -5900,16 +5956,16 @@ var Radio = (_a) => {
|
|
|
5900
5956
|
]);
|
|
5901
5957
|
const radioId = id;
|
|
5902
5958
|
const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
|
|
5903
|
-
const defaultClassName = (0,
|
|
5959
|
+
const defaultClassName = (0, import_clsx40.default)(
|
|
5904
5960
|
!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"
|
|
5905
5961
|
);
|
|
5906
|
-
const errorClassName = (0,
|
|
5962
|
+
const errorClassName = (0, import_clsx40.default)(
|
|
5907
5963
|
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 "
|
|
5908
5964
|
);
|
|
5909
|
-
const disabledClassName = (0,
|
|
5965
|
+
const disabledClassName = (0, import_clsx40.default)(
|
|
5910
5966
|
disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
|
|
5911
5967
|
);
|
|
5912
|
-
const readonlyClassName = (0,
|
|
5968
|
+
const readonlyClassName = (0, import_clsx40.default)(
|
|
5913
5969
|
readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
|
|
5914
5970
|
);
|
|
5915
5971
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
@@ -5917,7 +5973,7 @@ var Radio = (_a) => {
|
|
|
5917
5973
|
{
|
|
5918
5974
|
htmlFor: radioId,
|
|
5919
5975
|
"data-testid": testid,
|
|
5920
|
-
className: (0,
|
|
5976
|
+
className: (0, import_clsx40.default)(
|
|
5921
5977
|
"flex items-center",
|
|
5922
5978
|
componentGap,
|
|
5923
5979
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
@@ -5940,7 +5996,7 @@ var Radio = (_a) => {
|
|
|
5940
5996
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5941
5997
|
"div",
|
|
5942
5998
|
{
|
|
5943
|
-
className: (0,
|
|
5999
|
+
className: (0, import_clsx40.default)(
|
|
5944
6000
|
"size-6 rounded-full border flex items-center justify-center",
|
|
5945
6001
|
baseTransition,
|
|
5946
6002
|
defaultClassName,
|
|
@@ -5951,7 +6007,7 @@ var Radio = (_a) => {
|
|
|
5951
6007
|
children: checked && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5952
6008
|
RadioIcon,
|
|
5953
6009
|
{
|
|
5954
|
-
className: (0,
|
|
6010
|
+
className: (0, import_clsx40.default)(
|
|
5955
6011
|
"transition-colors",
|
|
5956
6012
|
!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",
|
|
5957
6013
|
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",
|
|
@@ -6003,7 +6059,7 @@ RadioIcon.displayName = "RadioIcon";
|
|
|
6003
6059
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
6004
6060
|
|
|
6005
6061
|
// src/components/AccessCardGroup.tsx
|
|
6006
|
-
var
|
|
6062
|
+
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
6007
6063
|
var import_react39 = require("react");
|
|
6008
6064
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6009
6065
|
|
|
@@ -6018,9 +6074,9 @@ var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
|
6018
6074
|
var import_react40 = require("react");
|
|
6019
6075
|
|
|
6020
6076
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
6021
|
-
var
|
|
6077
|
+
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
6022
6078
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6023
|
-
var arrowButtonStyles = (0,
|
|
6079
|
+
var arrowButtonStyles = (0, import_clsx43.default)(
|
|
6024
6080
|
"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"
|
|
6025
6081
|
);
|
|
6026
6082
|
|
|
@@ -6071,7 +6127,7 @@ function TableBodyRow({
|
|
|
6071
6127
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
6072
6128
|
"tr",
|
|
6073
6129
|
{
|
|
6074
|
-
className: (0,
|
|
6130
|
+
className: (0, import_clsx44.default)(
|
|
6075
6131
|
"min-h-10",
|
|
6076
6132
|
"transition-colors",
|
|
6077
6133
|
showFilterRow && !disabled ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
|
|
@@ -6109,7 +6165,7 @@ function TableBodyRow({
|
|
|
6109
6165
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
6110
6166
|
testid: testid ? `${testid}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
6111
6167
|
cell,
|
|
6112
|
-
className: (0,
|
|
6168
|
+
className: (0, import_clsx44.default)({
|
|
6113
6169
|
"justify-start": cellAlignment === "left",
|
|
6114
6170
|
"justify-end": cellAlignment === "right"
|
|
6115
6171
|
}),
|