@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
|
@@ -4292,6 +4292,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
4292
4292
|
// src/components/DateInput.tsx
|
|
4293
4293
|
var import_react19 = require("react");
|
|
4294
4294
|
var import_react_dom3 = require("react-dom");
|
|
4295
|
+
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
4295
4296
|
|
|
4296
4297
|
// src/components/CalendarRange.tsx
|
|
4297
4298
|
var import_clsx20 = __toESM(require("clsx"), 1);
|
|
@@ -4846,10 +4847,12 @@ var DateInput = (_a) => {
|
|
|
4846
4847
|
const popoverRef = (0, import_react19.useRef)(null);
|
|
4847
4848
|
const triggerRef = (0, import_react19.useRef)(null);
|
|
4848
4849
|
const rootRef = (0, import_react19.useRef)(null);
|
|
4850
|
+
const isMobile = useMatchesMobile();
|
|
4849
4851
|
const [calendarPosition, setCalendarPosition] = (0, import_react19.useState)({
|
|
4850
4852
|
top: 0,
|
|
4851
4853
|
left: 0,
|
|
4852
|
-
width: 0
|
|
4854
|
+
width: 0,
|
|
4855
|
+
openAbove: false
|
|
4853
4856
|
});
|
|
4854
4857
|
const [from, to] = [value, ""];
|
|
4855
4858
|
(0, import_react19.useEffect)(() => {
|
|
@@ -4865,11 +4868,28 @@ var DateInput = (_a) => {
|
|
|
4865
4868
|
const updatePosition = () => {
|
|
4866
4869
|
if (rootRef.current) {
|
|
4867
4870
|
const rect = rootRef.current.getBoundingClientRect();
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4871
|
+
const viewportWidth = window.innerWidth;
|
|
4872
|
+
const viewportHeight = window.innerHeight;
|
|
4873
|
+
const calendarWidth = 340;
|
|
4874
|
+
const calendarHeight = 400;
|
|
4875
|
+
let viewportLeft = rect.left;
|
|
4876
|
+
if (viewportLeft + calendarWidth > viewportWidth) {
|
|
4877
|
+
viewportLeft = rect.right - calendarWidth;
|
|
4878
|
+
if (viewportLeft < 0) {
|
|
4879
|
+
viewportLeft = Math.max(0, (viewportWidth - calendarWidth) / 2);
|
|
4880
|
+
}
|
|
4881
|
+
}
|
|
4882
|
+
const left = viewportLeft + window.scrollX;
|
|
4883
|
+
const spaceBelow = viewportHeight - rect.bottom;
|
|
4884
|
+
const spaceAbove = rect.top;
|
|
4885
|
+
const openAbove = spaceBelow < calendarHeight && spaceAbove > spaceBelow;
|
|
4886
|
+
let top;
|
|
4887
|
+
if (openAbove) {
|
|
4888
|
+
top = rect.top + window.scrollY - calendarHeight - 4;
|
|
4889
|
+
} else {
|
|
4890
|
+
top = rect.bottom + window.scrollY + 4;
|
|
4891
|
+
}
|
|
4892
|
+
setCalendarPosition({ top, left, width: rect.width, openAbove });
|
|
4873
4893
|
}
|
|
4874
4894
|
};
|
|
4875
4895
|
(0, import_react19.useEffect)(() => {
|
|
@@ -4952,7 +4972,10 @@ var DateInput = (_a) => {
|
|
|
4952
4972
|
if (cursorPosition > 0 && value2[cursorPosition - 1] === sep) {
|
|
4953
4973
|
event.preventDefault();
|
|
4954
4974
|
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
4955
|
-
const formattedValue = formatInputValueWithDashes(
|
|
4975
|
+
const formattedValue = formatInputValueWithDashes(
|
|
4976
|
+
newValue,
|
|
4977
|
+
dateInDashes
|
|
4978
|
+
);
|
|
4956
4979
|
setInputValue(formattedValue);
|
|
4957
4980
|
requestAnimationFrame(() => {
|
|
4958
4981
|
if (triggerRef.current) {
|
|
@@ -5003,25 +5026,58 @@ var DateInput = (_a) => {
|
|
|
5003
5026
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
5004
5027
|
"div",
|
|
5005
5028
|
{
|
|
5006
|
-
className:
|
|
5029
|
+
className: (0, import_clsx21.default)(
|
|
5030
|
+
"fixed inset-0 z-50",
|
|
5031
|
+
isMobile && "overflow-y-auto bg-neutral-600/50"
|
|
5032
|
+
),
|
|
5007
5033
|
onClick: () => setVisible(false),
|
|
5008
5034
|
onMouseDown: (e) => {
|
|
5009
|
-
|
|
5035
|
+
if (!isMobile) {
|
|
5036
|
+
e.preventDefault();
|
|
5037
|
+
}
|
|
5010
5038
|
},
|
|
5011
5039
|
onWheel: (e) => {
|
|
5012
5040
|
var _a2;
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5041
|
+
if (!isMobile) {
|
|
5042
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5043
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5044
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5045
|
+
}
|
|
5016
5046
|
},
|
|
5017
5047
|
onTouchMove: (e) => {
|
|
5018
|
-
|
|
5048
|
+
if (!isMobile) {
|
|
5049
|
+
e.stopPropagation();
|
|
5050
|
+
}
|
|
5019
5051
|
},
|
|
5020
|
-
style: { touchAction: "pan-y pan-x" },
|
|
5021
|
-
"aria-hidden": "true"
|
|
5052
|
+
style: { touchAction: isMobile ? "auto" : "pan-y pan-x" },
|
|
5053
|
+
"aria-hidden": "true",
|
|
5054
|
+
children: isMobile && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "min-h-full flex items-start justify-center py-4 px-2", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
5055
|
+
"div",
|
|
5056
|
+
{
|
|
5057
|
+
ref: (el) => {
|
|
5058
|
+
popoverRef.current = el;
|
|
5059
|
+
},
|
|
5060
|
+
className: "bg-white rounded-base shadow-4 max-w-full",
|
|
5061
|
+
onClick: (e) => e.stopPropagation(),
|
|
5062
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
5063
|
+
CalendarRange,
|
|
5064
|
+
{
|
|
5065
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5066
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5067
|
+
from,
|
|
5068
|
+
to: to || from,
|
|
5069
|
+
onChange: handleDateChange,
|
|
5070
|
+
cardStyle: true,
|
|
5071
|
+
mode: "single",
|
|
5072
|
+
disableRange: true,
|
|
5073
|
+
isDateAvailable
|
|
5074
|
+
}
|
|
5075
|
+
)
|
|
5076
|
+
}
|
|
5077
|
+
) })
|
|
5022
5078
|
}
|
|
5023
5079
|
),
|
|
5024
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
5080
|
+
!isMobile && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
5025
5081
|
"div",
|
|
5026
5082
|
{
|
|
5027
5083
|
ref: (el) => {
|
|
@@ -5029,7 +5085,7 @@ var DateInput = (_a) => {
|
|
|
5029
5085
|
},
|
|
5030
5086
|
className: "absolute z-50 bg-white",
|
|
5031
5087
|
style: {
|
|
5032
|
-
top: `${calendarPosition.top
|
|
5088
|
+
top: `${calendarPosition.top}px`,
|
|
5033
5089
|
left: `${calendarPosition.left}px`
|
|
5034
5090
|
},
|
|
5035
5091
|
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
@@ -5065,21 +5121,21 @@ function formatDisplayValue(from, dateInDashes) {
|
|
|
5065
5121
|
}
|
|
5066
5122
|
|
|
5067
5123
|
// src/components/Accordion.tsx
|
|
5068
|
-
var
|
|
5124
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
5069
5125
|
|
|
5070
5126
|
// src/components/Card.tsx
|
|
5071
|
-
var
|
|
5127
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
5072
5128
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
5073
5129
|
|
|
5074
5130
|
// src/components/Stack.tsx
|
|
5075
|
-
var
|
|
5131
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
5076
5132
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
5077
5133
|
|
|
5078
5134
|
// src/components/Accordion.tsx
|
|
5079
5135
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
5080
5136
|
|
|
5081
5137
|
// src/components/Heading.tsx
|
|
5082
|
-
var
|
|
5138
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
5083
5139
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
5084
5140
|
var Heading = (_a) => {
|
|
5085
5141
|
var _b = _a, {
|
|
@@ -5108,7 +5164,7 @@ var Heading = (_a) => {
|
|
|
5108
5164
|
__spreadProps(__spreadValues({
|
|
5109
5165
|
id,
|
|
5110
5166
|
"data-testid": testid,
|
|
5111
|
-
className: (0,
|
|
5167
|
+
className: (0, import_clsx25.default)(
|
|
5112
5168
|
typography[variant],
|
|
5113
5169
|
className,
|
|
5114
5170
|
align === "left" && "text-left",
|
|
@@ -5155,11 +5211,11 @@ var import_react23 = require("react");
|
|
|
5155
5211
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
5156
5212
|
|
|
5157
5213
|
// src/components/Modal.tsx
|
|
5158
|
-
var
|
|
5214
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
5159
5215
|
var import_react25 = require("react");
|
|
5160
5216
|
|
|
5161
5217
|
// src/components/ModalHeader.tsx
|
|
5162
|
-
var
|
|
5218
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
5163
5219
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
5164
5220
|
var ModalHeader = ({
|
|
5165
5221
|
title,
|
|
@@ -5179,7 +5235,7 @@ var ModalHeader = ({
|
|
|
5179
5235
|
{
|
|
5180
5236
|
id,
|
|
5181
5237
|
"data-testid": testid,
|
|
5182
|
-
className: (0,
|
|
5238
|
+
className: (0, import_clsx26.default)(
|
|
5183
5239
|
"flex justify-between items-center",
|
|
5184
5240
|
headerIconAlign === "center" && "justify-center",
|
|
5185
5241
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -5189,7 +5245,7 @@ var ModalHeader = ({
|
|
|
5189
5245
|
headerClassname
|
|
5190
5246
|
),
|
|
5191
5247
|
children: [
|
|
5192
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: (0,
|
|
5248
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: (0, import_clsx26.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
5193
5249
|
headerIcon,
|
|
5194
5250
|
title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5195
5251
|
Title,
|
|
@@ -5212,7 +5268,7 @@ var ModalHeader = ({
|
|
|
5212
5268
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5213
5269
|
"span",
|
|
5214
5270
|
{
|
|
5215
|
-
className: (0,
|
|
5271
|
+
className: (0, import_clsx26.default)(
|
|
5216
5272
|
"contents",
|
|
5217
5273
|
headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
|
|
5218
5274
|
),
|
|
@@ -5228,7 +5284,7 @@ var ModalHeader = ({
|
|
|
5228
5284
|
ModalHeader.displayName = "ModalHeader";
|
|
5229
5285
|
|
|
5230
5286
|
// src/components/ModalContent.tsx
|
|
5231
|
-
var
|
|
5287
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
5232
5288
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
5233
5289
|
function ModalContent({
|
|
5234
5290
|
fixedHeightScrolling,
|
|
@@ -5241,7 +5297,7 @@ function ModalContent({
|
|
|
5241
5297
|
{
|
|
5242
5298
|
id,
|
|
5243
5299
|
"data-testid": testid,
|
|
5244
|
-
className: (0,
|
|
5300
|
+
className: (0, import_clsx27.default)(
|
|
5245
5301
|
"flex-grow desktop:flex-grow-0",
|
|
5246
5302
|
layoutPaddding,
|
|
5247
5303
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -5253,7 +5309,7 @@ function ModalContent({
|
|
|
5253
5309
|
ModalContent.displayName = "ModalContent";
|
|
5254
5310
|
|
|
5255
5311
|
// src/components/ModalButtons.tsx
|
|
5256
|
-
var
|
|
5312
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
5257
5313
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5258
5314
|
var ModalButtons = ({
|
|
5259
5315
|
onClose,
|
|
@@ -5268,7 +5324,7 @@ var ModalButtons = ({
|
|
|
5268
5324
|
{
|
|
5269
5325
|
id,
|
|
5270
5326
|
"data-testid": testid,
|
|
5271
|
-
className: (0,
|
|
5327
|
+
className: (0, import_clsx28.default)(
|
|
5272
5328
|
"border-t border-neutral-300 flex justify-end",
|
|
5273
5329
|
mobileButtonStack && "flex-col ",
|
|
5274
5330
|
layoutPaddding,
|
|
@@ -5306,7 +5362,7 @@ var ModalButtons = ({
|
|
|
5306
5362
|
ModalButtons.displayName = "ModalButtons";
|
|
5307
5363
|
|
|
5308
5364
|
// src/components/ModalScrim.tsx
|
|
5309
|
-
var
|
|
5365
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
5310
5366
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
5311
5367
|
var ModalScrim = ({
|
|
5312
5368
|
show = false,
|
|
@@ -5322,7 +5378,7 @@ var ModalScrim = ({
|
|
|
5322
5378
|
{
|
|
5323
5379
|
id,
|
|
5324
5380
|
"data-testid": testid,
|
|
5325
|
-
className: (0,
|
|
5381
|
+
className: (0, import_clsx29.default)(
|
|
5326
5382
|
"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",
|
|
5327
5383
|
!show && " pointer-events-none",
|
|
5328
5384
|
size === "small" && "p-4",
|
|
@@ -5543,7 +5599,7 @@ var Modal = ({
|
|
|
5543
5599
|
id,
|
|
5544
5600
|
"data-testid": testid,
|
|
5545
5601
|
ref: modalRef,
|
|
5546
|
-
className: (0,
|
|
5602
|
+
className: (0, import_clsx30.default)(
|
|
5547
5603
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
|
|
5548
5604
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
5549
5605
|
className,
|
|
@@ -5607,10 +5663,10 @@ var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
|
5607
5663
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
5608
5664
|
|
|
5609
5665
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
5610
|
-
var
|
|
5666
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
5611
5667
|
|
|
5612
5668
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
5613
|
-
var
|
|
5669
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
5614
5670
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
5615
5671
|
|
|
5616
5672
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
@@ -5630,7 +5686,7 @@ var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
|
5630
5686
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5631
5687
|
|
|
5632
5688
|
// src/components/Grid.tsx
|
|
5633
|
-
var
|
|
5689
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
5634
5690
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5635
5691
|
|
|
5636
5692
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
@@ -5641,7 +5697,7 @@ var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
|
5641
5697
|
var import_react29 = require("react");
|
|
5642
5698
|
|
|
5643
5699
|
// src/components/Surface.tsx
|
|
5644
|
-
var
|
|
5700
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
5645
5701
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5646
5702
|
var Surface = (_a) => {
|
|
5647
5703
|
var _b = _a, {
|
|
@@ -5659,7 +5715,7 @@ var Surface = (_a) => {
|
|
|
5659
5715
|
"div",
|
|
5660
5716
|
__spreadProps(__spreadValues({
|
|
5661
5717
|
id,
|
|
5662
|
-
className: (0,
|
|
5718
|
+
className: (0, import_clsx34.default)(
|
|
5663
5719
|
"rounded-base",
|
|
5664
5720
|
{
|
|
5665
5721
|
"shadow-2": elevation === 2,
|
|
@@ -5679,7 +5735,7 @@ Surface.displayName = "Surface";
|
|
|
5679
5735
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5680
5736
|
|
|
5681
5737
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
5682
|
-
var
|
|
5738
|
+
var import_clsx35 = require("clsx");
|
|
5683
5739
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5684
5740
|
|
|
5685
5741
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
@@ -5694,21 +5750,21 @@ var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
|
5694
5750
|
|
|
5695
5751
|
// src/components/CompactImagesPreview.tsx
|
|
5696
5752
|
var import_react32 = require("react");
|
|
5697
|
-
var
|
|
5753
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5698
5754
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5699
5755
|
|
|
5700
5756
|
// src/components/SimpleTable.tsx
|
|
5701
|
-
var
|
|
5757
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5702
5758
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5703
5759
|
|
|
5704
5760
|
// src/components/ListGroup.tsx
|
|
5705
5761
|
var import_react33 = require("react");
|
|
5706
|
-
var
|
|
5762
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
5707
5763
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5708
5764
|
|
|
5709
5765
|
// src/components/Pagination.tsx
|
|
5710
5766
|
var import_react34 = require("react");
|
|
5711
|
-
var
|
|
5767
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
5712
5768
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5713
5769
|
var Pagination = ({
|
|
5714
5770
|
totalPages,
|
|
@@ -5773,7 +5829,7 @@ var Pagination = ({
|
|
|
5773
5829
|
return tokens;
|
|
5774
5830
|
}, [totalPages, currentPage]);
|
|
5775
5831
|
if (totalPages <= 1) return null;
|
|
5776
|
-
const buttonClass = (0,
|
|
5832
|
+
const buttonClass = (0, import_clsx39.default)(
|
|
5777
5833
|
"cursor-pointer disabled:cursor-default",
|
|
5778
5834
|
paddingUsingComponentGap,
|
|
5779
5835
|
"w-8 h-8",
|
|
@@ -5791,7 +5847,7 @@ var Pagination = ({
|
|
|
5791
5847
|
"data-testid": testid,
|
|
5792
5848
|
"aria-label": "Pagination",
|
|
5793
5849
|
onKeyDown: handleKey,
|
|
5794
|
-
className: (0,
|
|
5850
|
+
className: (0, import_clsx39.default)(
|
|
5795
5851
|
"flex items-center",
|
|
5796
5852
|
"border border-border-primary-normal",
|
|
5797
5853
|
"bg-background-grouped-primary-normal",
|
|
@@ -5805,11 +5861,11 @@ var Pagination = ({
|
|
|
5805
5861
|
disabled: disabled || currentPage <= 1,
|
|
5806
5862
|
"aria-label": "Previous page",
|
|
5807
5863
|
onClick: () => goTo(currentPage - 1),
|
|
5808
|
-
className: (0,
|
|
5864
|
+
className: (0, import_clsx39.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
5809
5865
|
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
5810
5866
|
}
|
|
5811
5867
|
),
|
|
5812
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { className: (0,
|
|
5868
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { className: (0, import_clsx39.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
5813
5869
|
if (token === "ellipsis") {
|
|
5814
5870
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5815
5871
|
"li",
|
|
@@ -5828,7 +5884,7 @@ var Pagination = ({
|
|
|
5828
5884
|
"aria-current": selected ? "page" : void 0,
|
|
5829
5885
|
disabled,
|
|
5830
5886
|
onClick: () => goTo(token),
|
|
5831
|
-
className: (0,
|
|
5887
|
+
className: (0, import_clsx39.default)(
|
|
5832
5888
|
buttonClass,
|
|
5833
5889
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
5834
5890
|
),
|
|
@@ -5842,7 +5898,7 @@ var Pagination = ({
|
|
|
5842
5898
|
disabled: disabled || currentPage >= totalPages,
|
|
5843
5899
|
"aria-label": "Next page",
|
|
5844
5900
|
onClick: () => goTo(currentPage + 1),
|
|
5845
|
-
className: (0,
|
|
5901
|
+
className: (0, import_clsx39.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
5846
5902
|
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
5847
5903
|
}
|
|
5848
5904
|
)
|
|
@@ -5863,7 +5919,7 @@ var import_react35 = require("react");
|
|
|
5863
5919
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5864
5920
|
|
|
5865
5921
|
// src/components/Alert.tsx
|
|
5866
|
-
var
|
|
5922
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
5867
5923
|
var import_react36 = require("react");
|
|
5868
5924
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5869
5925
|
|
|
@@ -5876,10 +5932,10 @@ var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
|
5876
5932
|
var EditingContext = (0, import_react37.createContext)(null);
|
|
5877
5933
|
|
|
5878
5934
|
// src/components/AccessCard.tsx
|
|
5879
|
-
var
|
|
5935
|
+
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
5880
5936
|
|
|
5881
5937
|
// src/components/Radio.tsx
|
|
5882
|
-
var
|
|
5938
|
+
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
5883
5939
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5884
5940
|
var Radio = (_a) => {
|
|
5885
5941
|
var _b = _a, {
|
|
@@ -5903,16 +5959,16 @@ var Radio = (_a) => {
|
|
|
5903
5959
|
]);
|
|
5904
5960
|
const radioId = id;
|
|
5905
5961
|
const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
|
|
5906
|
-
const defaultClassName = (0,
|
|
5962
|
+
const defaultClassName = (0, import_clsx41.default)(
|
|
5907
5963
|
!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"
|
|
5908
5964
|
);
|
|
5909
|
-
const errorClassName = (0,
|
|
5965
|
+
const errorClassName = (0, import_clsx41.default)(
|
|
5910
5966
|
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 "
|
|
5911
5967
|
);
|
|
5912
|
-
const disabledClassName = (0,
|
|
5968
|
+
const disabledClassName = (0, import_clsx41.default)(
|
|
5913
5969
|
disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
|
|
5914
5970
|
);
|
|
5915
|
-
const readonlyClassName = (0,
|
|
5971
|
+
const readonlyClassName = (0, import_clsx41.default)(
|
|
5916
5972
|
readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
|
|
5917
5973
|
);
|
|
5918
5974
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
@@ -5920,7 +5976,7 @@ var Radio = (_a) => {
|
|
|
5920
5976
|
{
|
|
5921
5977
|
htmlFor: radioId,
|
|
5922
5978
|
"data-testid": testid,
|
|
5923
|
-
className: (0,
|
|
5979
|
+
className: (0, import_clsx41.default)(
|
|
5924
5980
|
"flex items-center",
|
|
5925
5981
|
componentGap,
|
|
5926
5982
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
@@ -5943,7 +5999,7 @@ var Radio = (_a) => {
|
|
|
5943
5999
|
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5944
6000
|
"div",
|
|
5945
6001
|
{
|
|
5946
|
-
className: (0,
|
|
6002
|
+
className: (0, import_clsx41.default)(
|
|
5947
6003
|
"size-6 rounded-full border flex items-center justify-center",
|
|
5948
6004
|
baseTransition,
|
|
5949
6005
|
defaultClassName,
|
|
@@ -5954,7 +6010,7 @@ var Radio = (_a) => {
|
|
|
5954
6010
|
children: checked && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5955
6011
|
RadioIcon,
|
|
5956
6012
|
{
|
|
5957
|
-
className: (0,
|
|
6013
|
+
className: (0, import_clsx41.default)(
|
|
5958
6014
|
"transition-colors",
|
|
5959
6015
|
!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",
|
|
5960
6016
|
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",
|
|
@@ -6006,7 +6062,7 @@ RadioIcon.displayName = "RadioIcon";
|
|
|
6006
6062
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
6007
6063
|
|
|
6008
6064
|
// src/components/AccessCardGroup.tsx
|
|
6009
|
-
var
|
|
6065
|
+
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
6010
6066
|
var import_react38 = require("react");
|
|
6011
6067
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
6012
6068
|
|
|
@@ -6021,9 +6077,9 @@ var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
|
6021
6077
|
var import_react39 = require("react");
|
|
6022
6078
|
|
|
6023
6079
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
6024
|
-
var
|
|
6080
|
+
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
6025
6081
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6026
|
-
var arrowButtonStyles = (0,
|
|
6082
|
+
var arrowButtonStyles = (0, import_clsx44.default)(
|
|
6027
6083
|
"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"
|
|
6028
6084
|
);
|
|
6029
6085
|
|