@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
|
@@ -4398,6 +4398,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
4398
4398
|
// src/components/DateInput.tsx
|
|
4399
4399
|
var import_react21 = require("react");
|
|
4400
4400
|
var import_react_dom3 = require("react-dom");
|
|
4401
|
+
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
4401
4402
|
|
|
4402
4403
|
// src/components/CalendarRange.tsx
|
|
4403
4404
|
var import_clsx20 = __toESM(require("clsx"), 1);
|
|
@@ -4952,10 +4953,12 @@ var DateInput = (_a) => {
|
|
|
4952
4953
|
const popoverRef = (0, import_react21.useRef)(null);
|
|
4953
4954
|
const triggerRef = (0, import_react21.useRef)(null);
|
|
4954
4955
|
const rootRef = (0, import_react21.useRef)(null);
|
|
4956
|
+
const isMobile = useMatchesMobile();
|
|
4955
4957
|
const [calendarPosition, setCalendarPosition] = (0, import_react21.useState)({
|
|
4956
4958
|
top: 0,
|
|
4957
4959
|
left: 0,
|
|
4958
|
-
width: 0
|
|
4960
|
+
width: 0,
|
|
4961
|
+
openAbove: false
|
|
4959
4962
|
});
|
|
4960
4963
|
const [from, to] = [value, ""];
|
|
4961
4964
|
(0, import_react21.useEffect)(() => {
|
|
@@ -4971,11 +4974,28 @@ var DateInput = (_a) => {
|
|
|
4971
4974
|
const updatePosition = () => {
|
|
4972
4975
|
if (rootRef.current) {
|
|
4973
4976
|
const rect = rootRef.current.getBoundingClientRect();
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4977
|
+
const viewportWidth = window.innerWidth;
|
|
4978
|
+
const viewportHeight = window.innerHeight;
|
|
4979
|
+
const calendarWidth = 340;
|
|
4980
|
+
const calendarHeight = 400;
|
|
4981
|
+
let viewportLeft = rect.left;
|
|
4982
|
+
if (viewportLeft + calendarWidth > viewportWidth) {
|
|
4983
|
+
viewportLeft = rect.right - calendarWidth;
|
|
4984
|
+
if (viewportLeft < 0) {
|
|
4985
|
+
viewportLeft = Math.max(0, (viewportWidth - calendarWidth) / 2);
|
|
4986
|
+
}
|
|
4987
|
+
}
|
|
4988
|
+
const left = viewportLeft + window.scrollX;
|
|
4989
|
+
const spaceBelow = viewportHeight - rect.bottom;
|
|
4990
|
+
const spaceAbove = rect.top;
|
|
4991
|
+
const openAbove = spaceBelow < calendarHeight && spaceAbove > spaceBelow;
|
|
4992
|
+
let top;
|
|
4993
|
+
if (openAbove) {
|
|
4994
|
+
top = rect.top + window.scrollY - calendarHeight - 4;
|
|
4995
|
+
} else {
|
|
4996
|
+
top = rect.bottom + window.scrollY + 4;
|
|
4997
|
+
}
|
|
4998
|
+
setCalendarPosition({ top, left, width: rect.width, openAbove });
|
|
4979
4999
|
}
|
|
4980
5000
|
};
|
|
4981
5001
|
(0, import_react21.useEffect)(() => {
|
|
@@ -5058,7 +5078,10 @@ var DateInput = (_a) => {
|
|
|
5058
5078
|
if (cursorPosition > 0 && value2[cursorPosition - 1] === sep) {
|
|
5059
5079
|
event.preventDefault();
|
|
5060
5080
|
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
5061
|
-
const formattedValue = formatInputValueWithDashes(
|
|
5081
|
+
const formattedValue = formatInputValueWithDashes(
|
|
5082
|
+
newValue,
|
|
5083
|
+
dateInDashes
|
|
5084
|
+
);
|
|
5062
5085
|
setInputValue(formattedValue);
|
|
5063
5086
|
requestAnimationFrame(() => {
|
|
5064
5087
|
if (triggerRef.current) {
|
|
@@ -5109,25 +5132,58 @@ var DateInput = (_a) => {
|
|
|
5109
5132
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5110
5133
|
"div",
|
|
5111
5134
|
{
|
|
5112
|
-
className:
|
|
5135
|
+
className: (0, import_clsx21.default)(
|
|
5136
|
+
"fixed inset-0 z-50",
|
|
5137
|
+
isMobile && "overflow-y-auto bg-neutral-600/50"
|
|
5138
|
+
),
|
|
5113
5139
|
onClick: () => setVisible(false),
|
|
5114
5140
|
onMouseDown: (e) => {
|
|
5115
|
-
|
|
5141
|
+
if (!isMobile) {
|
|
5142
|
+
e.preventDefault();
|
|
5143
|
+
}
|
|
5116
5144
|
},
|
|
5117
5145
|
onWheel: (e) => {
|
|
5118
5146
|
var _a2;
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5147
|
+
if (!isMobile) {
|
|
5148
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5149
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5150
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5151
|
+
}
|
|
5122
5152
|
},
|
|
5123
5153
|
onTouchMove: (e) => {
|
|
5124
|
-
|
|
5154
|
+
if (!isMobile) {
|
|
5155
|
+
e.stopPropagation();
|
|
5156
|
+
}
|
|
5125
5157
|
},
|
|
5126
|
-
style: { touchAction: "pan-y pan-x" },
|
|
5127
|
-
"aria-hidden": "true"
|
|
5158
|
+
style: { touchAction: isMobile ? "auto" : "pan-y pan-x" },
|
|
5159
|
+
"aria-hidden": "true",
|
|
5160
|
+
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)(
|
|
5161
|
+
"div",
|
|
5162
|
+
{
|
|
5163
|
+
ref: (el) => {
|
|
5164
|
+
popoverRef.current = el;
|
|
5165
|
+
},
|
|
5166
|
+
className: "bg-white rounded-base shadow-4 max-w-full",
|
|
5167
|
+
onClick: (e) => e.stopPropagation(),
|
|
5168
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5169
|
+
CalendarRange,
|
|
5170
|
+
{
|
|
5171
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5172
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5173
|
+
from,
|
|
5174
|
+
to: to || from,
|
|
5175
|
+
onChange: handleDateChange,
|
|
5176
|
+
cardStyle: true,
|
|
5177
|
+
mode: "single",
|
|
5178
|
+
disableRange: true,
|
|
5179
|
+
isDateAvailable
|
|
5180
|
+
}
|
|
5181
|
+
)
|
|
5182
|
+
}
|
|
5183
|
+
) })
|
|
5128
5184
|
}
|
|
5129
5185
|
),
|
|
5130
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5186
|
+
!isMobile && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5131
5187
|
"div",
|
|
5132
5188
|
{
|
|
5133
5189
|
ref: (el) => {
|
|
@@ -5135,7 +5191,7 @@ var DateInput = (_a) => {
|
|
|
5135
5191
|
},
|
|
5136
5192
|
className: "absolute z-50 bg-white",
|
|
5137
5193
|
style: {
|
|
5138
|
-
top: `${calendarPosition.top
|
|
5194
|
+
top: `${calendarPosition.top}px`,
|
|
5139
5195
|
left: `${calendarPosition.left}px`
|
|
5140
5196
|
},
|
|
5141
5197
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
@@ -5171,21 +5227,21 @@ function formatDisplayValue(from, dateInDashes) {
|
|
|
5171
5227
|
}
|
|
5172
5228
|
|
|
5173
5229
|
// src/components/Accordion.tsx
|
|
5174
|
-
var
|
|
5230
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
5175
5231
|
|
|
5176
5232
|
// src/components/Card.tsx
|
|
5177
|
-
var
|
|
5233
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
5178
5234
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
5179
5235
|
|
|
5180
5236
|
// src/components/Stack.tsx
|
|
5181
|
-
var
|
|
5237
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
5182
5238
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
5183
5239
|
|
|
5184
5240
|
// src/components/Accordion.tsx
|
|
5185
5241
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
5186
5242
|
|
|
5187
5243
|
// src/components/Heading.tsx
|
|
5188
|
-
var
|
|
5244
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
5189
5245
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
5190
5246
|
var Heading = (_a) => {
|
|
5191
5247
|
var _b = _a, {
|
|
@@ -5214,7 +5270,7 @@ var Heading = (_a) => {
|
|
|
5214
5270
|
__spreadProps(__spreadValues({
|
|
5215
5271
|
id,
|
|
5216
5272
|
"data-testid": testid,
|
|
5217
|
-
className: (0,
|
|
5273
|
+
className: (0, import_clsx25.default)(
|
|
5218
5274
|
typography[variant],
|
|
5219
5275
|
className,
|
|
5220
5276
|
align === "left" && "text-left",
|
|
@@ -5264,11 +5320,11 @@ var import_react24 = require("react");
|
|
|
5264
5320
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
5265
5321
|
|
|
5266
5322
|
// src/components/Modal.tsx
|
|
5267
|
-
var
|
|
5323
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
5268
5324
|
var import_react26 = require("react");
|
|
5269
5325
|
|
|
5270
5326
|
// src/components/ModalHeader.tsx
|
|
5271
|
-
var
|
|
5327
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
5272
5328
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
5273
5329
|
var ModalHeader = ({
|
|
5274
5330
|
title,
|
|
@@ -5288,7 +5344,7 @@ var ModalHeader = ({
|
|
|
5288
5344
|
{
|
|
5289
5345
|
id,
|
|
5290
5346
|
"data-testid": testid,
|
|
5291
|
-
className: (0,
|
|
5347
|
+
className: (0, import_clsx26.default)(
|
|
5292
5348
|
"flex justify-between items-center",
|
|
5293
5349
|
headerIconAlign === "center" && "justify-center",
|
|
5294
5350
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -5298,7 +5354,7 @@ var ModalHeader = ({
|
|
|
5298
5354
|
headerClassname
|
|
5299
5355
|
),
|
|
5300
5356
|
children: [
|
|
5301
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0,
|
|
5357
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0, import_clsx26.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
5302
5358
|
headerIcon,
|
|
5303
5359
|
title && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5304
5360
|
Title,
|
|
@@ -5321,7 +5377,7 @@ var ModalHeader = ({
|
|
|
5321
5377
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5322
5378
|
"span",
|
|
5323
5379
|
{
|
|
5324
|
-
className: (0,
|
|
5380
|
+
className: (0, import_clsx26.default)(
|
|
5325
5381
|
"contents",
|
|
5326
5382
|
headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
|
|
5327
5383
|
),
|
|
@@ -5337,7 +5393,7 @@ var ModalHeader = ({
|
|
|
5337
5393
|
ModalHeader.displayName = "ModalHeader";
|
|
5338
5394
|
|
|
5339
5395
|
// src/components/ModalContent.tsx
|
|
5340
|
-
var
|
|
5396
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
5341
5397
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5342
5398
|
function ModalContent({
|
|
5343
5399
|
fixedHeightScrolling,
|
|
@@ -5350,7 +5406,7 @@ function ModalContent({
|
|
|
5350
5406
|
{
|
|
5351
5407
|
id,
|
|
5352
5408
|
"data-testid": testid,
|
|
5353
|
-
className: (0,
|
|
5409
|
+
className: (0, import_clsx27.default)(
|
|
5354
5410
|
"flex-grow desktop:flex-grow-0",
|
|
5355
5411
|
layoutPaddding,
|
|
5356
5412
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -5362,7 +5418,7 @@ function ModalContent({
|
|
|
5362
5418
|
ModalContent.displayName = "ModalContent";
|
|
5363
5419
|
|
|
5364
5420
|
// src/components/ModalButtons.tsx
|
|
5365
|
-
var
|
|
5421
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
5366
5422
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
5367
5423
|
var ModalButtons = ({
|
|
5368
5424
|
onClose,
|
|
@@ -5377,7 +5433,7 @@ var ModalButtons = ({
|
|
|
5377
5433
|
{
|
|
5378
5434
|
id,
|
|
5379
5435
|
"data-testid": testid,
|
|
5380
|
-
className: (0,
|
|
5436
|
+
className: (0, import_clsx28.default)(
|
|
5381
5437
|
"border-t border-neutral-300 flex justify-end",
|
|
5382
5438
|
mobileButtonStack && "flex-col ",
|
|
5383
5439
|
layoutPaddding,
|
|
@@ -5415,7 +5471,7 @@ var ModalButtons = ({
|
|
|
5415
5471
|
ModalButtons.displayName = "ModalButtons";
|
|
5416
5472
|
|
|
5417
5473
|
// src/components/ModalScrim.tsx
|
|
5418
|
-
var
|
|
5474
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
5419
5475
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
5420
5476
|
var ModalScrim = ({
|
|
5421
5477
|
show = false,
|
|
@@ -5431,7 +5487,7 @@ var ModalScrim = ({
|
|
|
5431
5487
|
{
|
|
5432
5488
|
id,
|
|
5433
5489
|
"data-testid": testid,
|
|
5434
|
-
className: (0,
|
|
5490
|
+
className: (0, import_clsx29.default)(
|
|
5435
5491
|
"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",
|
|
5436
5492
|
!show && " pointer-events-none",
|
|
5437
5493
|
size === "small" && "p-4",
|
|
@@ -5652,7 +5708,7 @@ var Modal = ({
|
|
|
5652
5708
|
id,
|
|
5653
5709
|
"data-testid": testid,
|
|
5654
5710
|
ref: modalRef,
|
|
5655
|
-
className: (0,
|
|
5711
|
+
className: (0, import_clsx30.default)(
|
|
5656
5712
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
|
|
5657
5713
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
5658
5714
|
className,
|
|
@@ -5716,10 +5772,10 @@ var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
|
5716
5772
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
5717
5773
|
|
|
5718
5774
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
5719
|
-
var
|
|
5775
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
5720
5776
|
|
|
5721
5777
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
5722
|
-
var
|
|
5778
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
5723
5779
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
5724
5780
|
|
|
5725
5781
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
@@ -5739,7 +5795,7 @@ var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
|
5739
5795
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5740
5796
|
|
|
5741
5797
|
// src/components/Grid.tsx
|
|
5742
|
-
var
|
|
5798
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
5743
5799
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5744
5800
|
|
|
5745
5801
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
@@ -5750,7 +5806,7 @@ var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
|
5750
5806
|
var import_react30 = require("react");
|
|
5751
5807
|
|
|
5752
5808
|
// src/components/Surface.tsx
|
|
5753
|
-
var
|
|
5809
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
5754
5810
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5755
5811
|
var Surface = (_a) => {
|
|
5756
5812
|
var _b = _a, {
|
|
@@ -5768,7 +5824,7 @@ var Surface = (_a) => {
|
|
|
5768
5824
|
"div",
|
|
5769
5825
|
__spreadProps(__spreadValues({
|
|
5770
5826
|
id,
|
|
5771
|
-
className: (0,
|
|
5827
|
+
className: (0, import_clsx34.default)(
|
|
5772
5828
|
"rounded-base",
|
|
5773
5829
|
{
|
|
5774
5830
|
"shadow-2": elevation === 2,
|
|
@@ -5788,7 +5844,7 @@ Surface.displayName = "Surface";
|
|
|
5788
5844
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5789
5845
|
|
|
5790
5846
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
5791
|
-
var
|
|
5847
|
+
var import_clsx35 = require("clsx");
|
|
5792
5848
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5793
5849
|
|
|
5794
5850
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
@@ -5803,21 +5859,21 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
|
5803
5859
|
|
|
5804
5860
|
// src/components/CompactImagesPreview.tsx
|
|
5805
5861
|
var import_react33 = require("react");
|
|
5806
|
-
var
|
|
5862
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5807
5863
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5808
5864
|
|
|
5809
5865
|
// src/components/SimpleTable.tsx
|
|
5810
|
-
var
|
|
5866
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5811
5867
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5812
5868
|
|
|
5813
5869
|
// src/components/ListGroup.tsx
|
|
5814
5870
|
var import_react34 = require("react");
|
|
5815
|
-
var
|
|
5871
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
5816
5872
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5817
5873
|
|
|
5818
5874
|
// src/components/Pagination.tsx
|
|
5819
5875
|
var import_react35 = require("react");
|
|
5820
|
-
var
|
|
5876
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
5821
5877
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5822
5878
|
var Pagination = ({
|
|
5823
5879
|
totalPages,
|
|
@@ -5882,7 +5938,7 @@ var Pagination = ({
|
|
|
5882
5938
|
return tokens;
|
|
5883
5939
|
}, [totalPages, currentPage]);
|
|
5884
5940
|
if (totalPages <= 1) return null;
|
|
5885
|
-
const buttonClass = (0,
|
|
5941
|
+
const buttonClass = (0, import_clsx39.default)(
|
|
5886
5942
|
"cursor-pointer disabled:cursor-default",
|
|
5887
5943
|
paddingUsingComponentGap,
|
|
5888
5944
|
"w-8 h-8",
|
|
@@ -5900,7 +5956,7 @@ var Pagination = ({
|
|
|
5900
5956
|
"data-testid": testid,
|
|
5901
5957
|
"aria-label": "Pagination",
|
|
5902
5958
|
onKeyDown: handleKey,
|
|
5903
|
-
className: (0,
|
|
5959
|
+
className: (0, import_clsx39.default)(
|
|
5904
5960
|
"flex items-center",
|
|
5905
5961
|
"border border-border-primary-normal",
|
|
5906
5962
|
"bg-background-grouped-primary-normal",
|
|
@@ -5914,11 +5970,11 @@ var Pagination = ({
|
|
|
5914
5970
|
disabled: disabled || currentPage <= 1,
|
|
5915
5971
|
"aria-label": "Previous page",
|
|
5916
5972
|
onClick: () => goTo(currentPage - 1),
|
|
5917
|
-
className: (0,
|
|
5973
|
+
className: (0, import_clsx39.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
5918
5974
|
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
5919
5975
|
}
|
|
5920
5976
|
),
|
|
5921
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: (0,
|
|
5977
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: (0, import_clsx39.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
5922
5978
|
if (token === "ellipsis") {
|
|
5923
5979
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5924
5980
|
"li",
|
|
@@ -5937,7 +5993,7 @@ var Pagination = ({
|
|
|
5937
5993
|
"aria-current": selected ? "page" : void 0,
|
|
5938
5994
|
disabled,
|
|
5939
5995
|
onClick: () => goTo(token),
|
|
5940
|
-
className: (0,
|
|
5996
|
+
className: (0, import_clsx39.default)(
|
|
5941
5997
|
buttonClass,
|
|
5942
5998
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
5943
5999
|
),
|
|
@@ -5951,7 +6007,7 @@ var Pagination = ({
|
|
|
5951
6007
|
disabled: disabled || currentPage >= totalPages,
|
|
5952
6008
|
"aria-label": "Next page",
|
|
5953
6009
|
onClick: () => goTo(currentPage + 1),
|
|
5954
|
-
className: (0,
|
|
6010
|
+
className: (0, import_clsx39.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
5955
6011
|
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
5956
6012
|
}
|
|
5957
6013
|
)
|
|
@@ -5972,7 +6028,7 @@ var import_react36 = require("react");
|
|
|
5972
6028
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5973
6029
|
|
|
5974
6030
|
// src/components/Alert.tsx
|
|
5975
|
-
var
|
|
6031
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
5976
6032
|
var import_react37 = require("react");
|
|
5977
6033
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5978
6034
|
|
|
@@ -5985,10 +6041,10 @@ var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
|
5985
6041
|
var EditingContext = (0, import_react38.createContext)(null);
|
|
5986
6042
|
|
|
5987
6043
|
// src/components/AccessCard.tsx
|
|
5988
|
-
var
|
|
6044
|
+
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
5989
6045
|
|
|
5990
6046
|
// src/components/Radio.tsx
|
|
5991
|
-
var
|
|
6047
|
+
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
5992
6048
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5993
6049
|
var Radio = (_a) => {
|
|
5994
6050
|
var _b = _a, {
|
|
@@ -6012,16 +6068,16 @@ var Radio = (_a) => {
|
|
|
6012
6068
|
]);
|
|
6013
6069
|
const radioId = id;
|
|
6014
6070
|
const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
|
|
6015
|
-
const defaultClassName = (0,
|
|
6071
|
+
const defaultClassName = (0, import_clsx41.default)(
|
|
6016
6072
|
!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"
|
|
6017
6073
|
);
|
|
6018
|
-
const errorClassName = (0,
|
|
6074
|
+
const errorClassName = (0, import_clsx41.default)(
|
|
6019
6075
|
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 "
|
|
6020
6076
|
);
|
|
6021
|
-
const disabledClassName = (0,
|
|
6077
|
+
const disabledClassName = (0, import_clsx41.default)(
|
|
6022
6078
|
disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
|
|
6023
6079
|
);
|
|
6024
|
-
const readonlyClassName = (0,
|
|
6080
|
+
const readonlyClassName = (0, import_clsx41.default)(
|
|
6025
6081
|
readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
|
|
6026
6082
|
);
|
|
6027
6083
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
@@ -6029,7 +6085,7 @@ var Radio = (_a) => {
|
|
|
6029
6085
|
{
|
|
6030
6086
|
htmlFor: radioId,
|
|
6031
6087
|
"data-testid": testid,
|
|
6032
|
-
className: (0,
|
|
6088
|
+
className: (0, import_clsx41.default)(
|
|
6033
6089
|
"flex items-center",
|
|
6034
6090
|
componentGap,
|
|
6035
6091
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
@@ -6052,7 +6108,7 @@ var Radio = (_a) => {
|
|
|
6052
6108
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6053
6109
|
"div",
|
|
6054
6110
|
{
|
|
6055
|
-
className: (0,
|
|
6111
|
+
className: (0, import_clsx41.default)(
|
|
6056
6112
|
"size-6 rounded-full border flex items-center justify-center",
|
|
6057
6113
|
baseTransition,
|
|
6058
6114
|
defaultClassName,
|
|
@@ -6063,7 +6119,7 @@ var Radio = (_a) => {
|
|
|
6063
6119
|
children: checked && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6064
6120
|
RadioIcon,
|
|
6065
6121
|
{
|
|
6066
|
-
className: (0,
|
|
6122
|
+
className: (0, import_clsx41.default)(
|
|
6067
6123
|
"transition-colors",
|
|
6068
6124
|
!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",
|
|
6069
6125
|
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",
|
|
@@ -6115,7 +6171,7 @@ RadioIcon.displayName = "RadioIcon";
|
|
|
6115
6171
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
6116
6172
|
|
|
6117
6173
|
// src/components/AccessCardGroup.tsx
|
|
6118
|
-
var
|
|
6174
|
+
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
6119
6175
|
var import_react39 = require("react");
|
|
6120
6176
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6121
6177
|
|
|
@@ -6130,9 +6186,9 @@ var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
|
6130
6186
|
var import_react40 = require("react");
|
|
6131
6187
|
|
|
6132
6188
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
6133
|
-
var
|
|
6189
|
+
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
6134
6190
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6135
|
-
var arrowButtonStyles = (0,
|
|
6191
|
+
var arrowButtonStyles = (0, import_clsx44.default)(
|
|
6136
6192
|
"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"
|
|
6137
6193
|
);
|
|
6138
6194
|
|