@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
|
@@ -64,7 +64,7 @@ __export(CalendarRange_exports, {
|
|
|
64
64
|
isWeekend: () => isWeekend
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(CalendarRange_exports);
|
|
67
|
-
var
|
|
67
|
+
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
68
68
|
|
|
69
69
|
// src/classNames.ts
|
|
70
70
|
var import_clsx = __toESM(require("clsx"), 1);
|
|
@@ -4404,6 +4404,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
4404
4404
|
// src/components/DateInput.tsx
|
|
4405
4405
|
var import_react20 = require("react");
|
|
4406
4406
|
var import_react_dom3 = require("react-dom");
|
|
4407
|
+
var import_clsx20 = __toESM(require("clsx"), 1);
|
|
4407
4408
|
|
|
4408
4409
|
// src/utils/date-patch-dashes.ts
|
|
4409
4410
|
function formatInputValueWithDashes(value, dateInDashes) {
|
|
@@ -4493,10 +4494,12 @@ var DateInput = (_a) => {
|
|
|
4493
4494
|
const popoverRef = (0, import_react20.useRef)(null);
|
|
4494
4495
|
const triggerRef = (0, import_react20.useRef)(null);
|
|
4495
4496
|
const rootRef = (0, import_react20.useRef)(null);
|
|
4497
|
+
const isMobile = useMatchesMobile();
|
|
4496
4498
|
const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
|
|
4497
4499
|
top: 0,
|
|
4498
4500
|
left: 0,
|
|
4499
|
-
width: 0
|
|
4501
|
+
width: 0,
|
|
4502
|
+
openAbove: false
|
|
4500
4503
|
});
|
|
4501
4504
|
const [from, to] = [value, ""];
|
|
4502
4505
|
(0, import_react20.useEffect)(() => {
|
|
@@ -4512,11 +4515,28 @@ var DateInput = (_a) => {
|
|
|
4512
4515
|
const updatePosition = () => {
|
|
4513
4516
|
if (rootRef.current) {
|
|
4514
4517
|
const rect = rootRef.current.getBoundingClientRect();
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4518
|
+
const viewportWidth = window.innerWidth;
|
|
4519
|
+
const viewportHeight = window.innerHeight;
|
|
4520
|
+
const calendarWidth = 340;
|
|
4521
|
+
const calendarHeight = 400;
|
|
4522
|
+
let viewportLeft = rect.left;
|
|
4523
|
+
if (viewportLeft + calendarWidth > viewportWidth) {
|
|
4524
|
+
viewportLeft = rect.right - calendarWidth;
|
|
4525
|
+
if (viewportLeft < 0) {
|
|
4526
|
+
viewportLeft = Math.max(0, (viewportWidth - calendarWidth) / 2);
|
|
4527
|
+
}
|
|
4528
|
+
}
|
|
4529
|
+
const left = viewportLeft + window.scrollX;
|
|
4530
|
+
const spaceBelow = viewportHeight - rect.bottom;
|
|
4531
|
+
const spaceAbove = rect.top;
|
|
4532
|
+
const openAbove = spaceBelow < calendarHeight && spaceAbove > spaceBelow;
|
|
4533
|
+
let top;
|
|
4534
|
+
if (openAbove) {
|
|
4535
|
+
top = rect.top + window.scrollY - calendarHeight - 4;
|
|
4536
|
+
} else {
|
|
4537
|
+
top = rect.bottom + window.scrollY + 4;
|
|
4538
|
+
}
|
|
4539
|
+
setCalendarPosition({ top, left, width: rect.width, openAbove });
|
|
4520
4540
|
}
|
|
4521
4541
|
};
|
|
4522
4542
|
(0, import_react20.useEffect)(() => {
|
|
@@ -4599,7 +4619,10 @@ var DateInput = (_a) => {
|
|
|
4599
4619
|
if (cursorPosition > 0 && value2[cursorPosition - 1] === sep) {
|
|
4600
4620
|
event.preventDefault();
|
|
4601
4621
|
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
4602
|
-
const formattedValue = formatInputValueWithDashes(
|
|
4622
|
+
const formattedValue = formatInputValueWithDashes(
|
|
4623
|
+
newValue,
|
|
4624
|
+
dateInDashes
|
|
4625
|
+
);
|
|
4603
4626
|
setInputValue(formattedValue);
|
|
4604
4627
|
requestAnimationFrame(() => {
|
|
4605
4628
|
if (triggerRef.current) {
|
|
@@ -4650,25 +4673,58 @@ var DateInput = (_a) => {
|
|
|
4650
4673
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4651
4674
|
"div",
|
|
4652
4675
|
{
|
|
4653
|
-
className:
|
|
4676
|
+
className: (0, import_clsx20.default)(
|
|
4677
|
+
"fixed inset-0 z-50",
|
|
4678
|
+
isMobile && "overflow-y-auto bg-neutral-600/50"
|
|
4679
|
+
),
|
|
4654
4680
|
onClick: () => setVisible(false),
|
|
4655
4681
|
onMouseDown: (e) => {
|
|
4656
|
-
|
|
4682
|
+
if (!isMobile) {
|
|
4683
|
+
e.preventDefault();
|
|
4684
|
+
}
|
|
4657
4685
|
},
|
|
4658
4686
|
onWheel: (e) => {
|
|
4659
4687
|
var _a2;
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4688
|
+
if (!isMobile) {
|
|
4689
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
4690
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
4691
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
4692
|
+
}
|
|
4663
4693
|
},
|
|
4664
4694
|
onTouchMove: (e) => {
|
|
4665
|
-
|
|
4695
|
+
if (!isMobile) {
|
|
4696
|
+
e.stopPropagation();
|
|
4697
|
+
}
|
|
4666
4698
|
},
|
|
4667
|
-
style: { touchAction: "pan-y pan-x" },
|
|
4668
|
-
"aria-hidden": "true"
|
|
4699
|
+
style: { touchAction: isMobile ? "auto" : "pan-y pan-x" },
|
|
4700
|
+
"aria-hidden": "true",
|
|
4701
|
+
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)(
|
|
4702
|
+
"div",
|
|
4703
|
+
{
|
|
4704
|
+
ref: (el) => {
|
|
4705
|
+
popoverRef.current = el;
|
|
4706
|
+
},
|
|
4707
|
+
className: "bg-white rounded-base shadow-4 max-w-full",
|
|
4708
|
+
onClick: (e) => e.stopPropagation(),
|
|
4709
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4710
|
+
CalendarRange,
|
|
4711
|
+
{
|
|
4712
|
+
id: id ? `${id}-calendar` : void 0,
|
|
4713
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
4714
|
+
from,
|
|
4715
|
+
to: to || from,
|
|
4716
|
+
onChange: handleDateChange,
|
|
4717
|
+
cardStyle: true,
|
|
4718
|
+
mode: "single",
|
|
4719
|
+
disableRange: true,
|
|
4720
|
+
isDateAvailable
|
|
4721
|
+
}
|
|
4722
|
+
)
|
|
4723
|
+
}
|
|
4724
|
+
) })
|
|
4669
4725
|
}
|
|
4670
4726
|
),
|
|
4671
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4727
|
+
!isMobile && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4672
4728
|
"div",
|
|
4673
4729
|
{
|
|
4674
4730
|
ref: (el) => {
|
|
@@ -4676,7 +4732,7 @@ var DateInput = (_a) => {
|
|
|
4676
4732
|
},
|
|
4677
4733
|
className: "absolute z-50 bg-white",
|
|
4678
4734
|
style: {
|
|
4679
|
-
top: `${calendarPosition.top
|
|
4735
|
+
top: `${calendarPosition.top}px`,
|
|
4680
4736
|
left: `${calendarPosition.left}px`
|
|
4681
4737
|
},
|
|
4682
4738
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
@@ -4712,21 +4768,21 @@ function formatDisplayValue(from, dateInDashes) {
|
|
|
4712
4768
|
}
|
|
4713
4769
|
|
|
4714
4770
|
// src/components/Accordion.tsx
|
|
4715
|
-
var
|
|
4771
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
4716
4772
|
|
|
4717
4773
|
// src/components/Card.tsx
|
|
4718
|
-
var
|
|
4774
|
+
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
4719
4775
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
4720
4776
|
|
|
4721
4777
|
// src/components/Stack.tsx
|
|
4722
|
-
var
|
|
4778
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
4723
4779
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
4724
4780
|
|
|
4725
4781
|
// src/components/Accordion.tsx
|
|
4726
4782
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
4727
4783
|
|
|
4728
4784
|
// src/components/Heading.tsx
|
|
4729
|
-
var
|
|
4785
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
4730
4786
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
4731
4787
|
var Heading = (_a) => {
|
|
4732
4788
|
var _b = _a, {
|
|
@@ -4755,7 +4811,7 @@ var Heading = (_a) => {
|
|
|
4755
4811
|
__spreadProps(__spreadValues({
|
|
4756
4812
|
id,
|
|
4757
4813
|
"data-testid": testid,
|
|
4758
|
-
className: (0,
|
|
4814
|
+
className: (0, import_clsx24.default)(
|
|
4759
4815
|
typography[variant],
|
|
4760
4816
|
className,
|
|
4761
4817
|
align === "left" && "text-left",
|
|
@@ -4802,11 +4858,11 @@ var import_react24 = require("react");
|
|
|
4802
4858
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4803
4859
|
|
|
4804
4860
|
// src/components/Modal.tsx
|
|
4805
|
-
var
|
|
4861
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
4806
4862
|
var import_react26 = require("react");
|
|
4807
4863
|
|
|
4808
4864
|
// src/components/ModalHeader.tsx
|
|
4809
|
-
var
|
|
4865
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
4810
4866
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4811
4867
|
var ModalHeader = ({
|
|
4812
4868
|
title,
|
|
@@ -4826,7 +4882,7 @@ var ModalHeader = ({
|
|
|
4826
4882
|
{
|
|
4827
4883
|
id,
|
|
4828
4884
|
"data-testid": testid,
|
|
4829
|
-
className: (0,
|
|
4885
|
+
className: (0, import_clsx25.default)(
|
|
4830
4886
|
"flex justify-between items-center",
|
|
4831
4887
|
headerIconAlign === "center" && "justify-center",
|
|
4832
4888
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -4836,7 +4892,7 @@ var ModalHeader = ({
|
|
|
4836
4892
|
headerClassname
|
|
4837
4893
|
),
|
|
4838
4894
|
children: [
|
|
4839
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0,
|
|
4895
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0, import_clsx25.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
4840
4896
|
headerIcon,
|
|
4841
4897
|
title && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4842
4898
|
Title,
|
|
@@ -4859,7 +4915,7 @@ var ModalHeader = ({
|
|
|
4859
4915
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4860
4916
|
"span",
|
|
4861
4917
|
{
|
|
4862
|
-
className: (0,
|
|
4918
|
+
className: (0, import_clsx25.default)(
|
|
4863
4919
|
"contents",
|
|
4864
4920
|
headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
|
|
4865
4921
|
),
|
|
@@ -4875,7 +4931,7 @@ var ModalHeader = ({
|
|
|
4875
4931
|
ModalHeader.displayName = "ModalHeader";
|
|
4876
4932
|
|
|
4877
4933
|
// src/components/ModalContent.tsx
|
|
4878
|
-
var
|
|
4934
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
4879
4935
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4880
4936
|
function ModalContent({
|
|
4881
4937
|
fixedHeightScrolling,
|
|
@@ -4888,7 +4944,7 @@ function ModalContent({
|
|
|
4888
4944
|
{
|
|
4889
4945
|
id,
|
|
4890
4946
|
"data-testid": testid,
|
|
4891
|
-
className: (0,
|
|
4947
|
+
className: (0, import_clsx26.default)(
|
|
4892
4948
|
"flex-grow desktop:flex-grow-0",
|
|
4893
4949
|
layoutPaddding,
|
|
4894
4950
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -4900,7 +4956,7 @@ function ModalContent({
|
|
|
4900
4956
|
ModalContent.displayName = "ModalContent";
|
|
4901
4957
|
|
|
4902
4958
|
// src/components/ModalButtons.tsx
|
|
4903
|
-
var
|
|
4959
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
4904
4960
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4905
4961
|
var ModalButtons = ({
|
|
4906
4962
|
onClose,
|
|
@@ -4915,7 +4971,7 @@ var ModalButtons = ({
|
|
|
4915
4971
|
{
|
|
4916
4972
|
id,
|
|
4917
4973
|
"data-testid": testid,
|
|
4918
|
-
className: (0,
|
|
4974
|
+
className: (0, import_clsx27.default)(
|
|
4919
4975
|
"border-t border-neutral-300 flex justify-end",
|
|
4920
4976
|
mobileButtonStack && "flex-col ",
|
|
4921
4977
|
layoutPaddding,
|
|
@@ -4953,7 +5009,7 @@ var ModalButtons = ({
|
|
|
4953
5009
|
ModalButtons.displayName = "ModalButtons";
|
|
4954
5010
|
|
|
4955
5011
|
// src/components/ModalScrim.tsx
|
|
4956
|
-
var
|
|
5012
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
4957
5013
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4958
5014
|
var ModalScrim = ({
|
|
4959
5015
|
show = false,
|
|
@@ -4969,7 +5025,7 @@ var ModalScrim = ({
|
|
|
4969
5025
|
{
|
|
4970
5026
|
id,
|
|
4971
5027
|
"data-testid": testid,
|
|
4972
|
-
className: (0,
|
|
5028
|
+
className: (0, import_clsx28.default)(
|
|
4973
5029
|
"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",
|
|
4974
5030
|
!show && " pointer-events-none",
|
|
4975
5031
|
size === "small" && "p-4",
|
|
@@ -5190,7 +5246,7 @@ var Modal = ({
|
|
|
5190
5246
|
id,
|
|
5191
5247
|
"data-testid": testid,
|
|
5192
5248
|
ref: modalRef,
|
|
5193
|
-
className: (0,
|
|
5249
|
+
className: (0, import_clsx29.default)(
|
|
5194
5250
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
|
|
5195
5251
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
5196
5252
|
className,
|
|
@@ -5254,10 +5310,10 @@ var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
|
5254
5310
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
5255
5311
|
|
|
5256
5312
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
5257
|
-
var
|
|
5313
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
5258
5314
|
|
|
5259
5315
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
5260
|
-
var
|
|
5316
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
5261
5317
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
5262
5318
|
|
|
5263
5319
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
@@ -5277,7 +5333,7 @@ var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
|
5277
5333
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5278
5334
|
|
|
5279
5335
|
// src/components/Grid.tsx
|
|
5280
|
-
var
|
|
5336
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
5281
5337
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5282
5338
|
|
|
5283
5339
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
@@ -5288,7 +5344,7 @@ var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
|
5288
5344
|
var import_react30 = require("react");
|
|
5289
5345
|
|
|
5290
5346
|
// src/components/Surface.tsx
|
|
5291
|
-
var
|
|
5347
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
5292
5348
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5293
5349
|
var Surface = (_a) => {
|
|
5294
5350
|
var _b = _a, {
|
|
@@ -5306,7 +5362,7 @@ var Surface = (_a) => {
|
|
|
5306
5362
|
"div",
|
|
5307
5363
|
__spreadProps(__spreadValues({
|
|
5308
5364
|
id,
|
|
5309
|
-
className: (0,
|
|
5365
|
+
className: (0, import_clsx33.default)(
|
|
5310
5366
|
"rounded-base",
|
|
5311
5367
|
{
|
|
5312
5368
|
"shadow-2": elevation === 2,
|
|
@@ -5326,7 +5382,7 @@ Surface.displayName = "Surface";
|
|
|
5326
5382
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5327
5383
|
|
|
5328
5384
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
5329
|
-
var
|
|
5385
|
+
var import_clsx34 = require("clsx");
|
|
5330
5386
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5331
5387
|
|
|
5332
5388
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
@@ -5341,21 +5397,21 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
|
5341
5397
|
|
|
5342
5398
|
// src/components/CompactImagesPreview.tsx
|
|
5343
5399
|
var import_react33 = require("react");
|
|
5344
|
-
var
|
|
5400
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
5345
5401
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5346
5402
|
|
|
5347
5403
|
// src/components/SimpleTable.tsx
|
|
5348
|
-
var
|
|
5404
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5349
5405
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5350
5406
|
|
|
5351
5407
|
// src/components/ListGroup.tsx
|
|
5352
5408
|
var import_react34 = require("react");
|
|
5353
|
-
var
|
|
5409
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5354
5410
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5355
5411
|
|
|
5356
5412
|
// src/components/Pagination.tsx
|
|
5357
5413
|
var import_react35 = require("react");
|
|
5358
|
-
var
|
|
5414
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
5359
5415
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5360
5416
|
var Pagination = ({
|
|
5361
5417
|
totalPages,
|
|
@@ -5420,7 +5476,7 @@ var Pagination = ({
|
|
|
5420
5476
|
return tokens;
|
|
5421
5477
|
}, [totalPages, currentPage]);
|
|
5422
5478
|
if (totalPages <= 1) return null;
|
|
5423
|
-
const buttonClass = (0,
|
|
5479
|
+
const buttonClass = (0, import_clsx38.default)(
|
|
5424
5480
|
"cursor-pointer disabled:cursor-default",
|
|
5425
5481
|
paddingUsingComponentGap,
|
|
5426
5482
|
"w-8 h-8",
|
|
@@ -5438,7 +5494,7 @@ var Pagination = ({
|
|
|
5438
5494
|
"data-testid": testid,
|
|
5439
5495
|
"aria-label": "Pagination",
|
|
5440
5496
|
onKeyDown: handleKey,
|
|
5441
|
-
className: (0,
|
|
5497
|
+
className: (0, import_clsx38.default)(
|
|
5442
5498
|
"flex items-center",
|
|
5443
5499
|
"border border-border-primary-normal",
|
|
5444
5500
|
"bg-background-grouped-primary-normal",
|
|
@@ -5452,11 +5508,11 @@ var Pagination = ({
|
|
|
5452
5508
|
disabled: disabled || currentPage <= 1,
|
|
5453
5509
|
"aria-label": "Previous page",
|
|
5454
5510
|
onClick: () => goTo(currentPage - 1),
|
|
5455
|
-
className: (0,
|
|
5511
|
+
className: (0, import_clsx38.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
5456
5512
|
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
5457
5513
|
}
|
|
5458
5514
|
),
|
|
5459
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: (0,
|
|
5515
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: (0, import_clsx38.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
5460
5516
|
if (token === "ellipsis") {
|
|
5461
5517
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5462
5518
|
"li",
|
|
@@ -5475,7 +5531,7 @@ var Pagination = ({
|
|
|
5475
5531
|
"aria-current": selected ? "page" : void 0,
|
|
5476
5532
|
disabled,
|
|
5477
5533
|
onClick: () => goTo(token),
|
|
5478
|
-
className: (0,
|
|
5534
|
+
className: (0, import_clsx38.default)(
|
|
5479
5535
|
buttonClass,
|
|
5480
5536
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
5481
5537
|
),
|
|
@@ -5489,7 +5545,7 @@ var Pagination = ({
|
|
|
5489
5545
|
disabled: disabled || currentPage >= totalPages,
|
|
5490
5546
|
"aria-label": "Next page",
|
|
5491
5547
|
onClick: () => goTo(currentPage + 1),
|
|
5492
|
-
className: (0,
|
|
5548
|
+
className: (0, import_clsx38.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
5493
5549
|
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
5494
5550
|
}
|
|
5495
5551
|
)
|
|
@@ -5510,7 +5566,7 @@ var import_react36 = require("react");
|
|
|
5510
5566
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5511
5567
|
|
|
5512
5568
|
// src/components/Alert.tsx
|
|
5513
|
-
var
|
|
5569
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
5514
5570
|
var import_react37 = require("react");
|
|
5515
5571
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5516
5572
|
|
|
@@ -5523,10 +5579,10 @@ var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
|
5523
5579
|
var EditingContext = (0, import_react38.createContext)(null);
|
|
5524
5580
|
|
|
5525
5581
|
// src/components/AccessCard.tsx
|
|
5526
|
-
var
|
|
5582
|
+
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
5527
5583
|
|
|
5528
5584
|
// src/components/Radio.tsx
|
|
5529
|
-
var
|
|
5585
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
5530
5586
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5531
5587
|
var Radio = (_a) => {
|
|
5532
5588
|
var _b = _a, {
|
|
@@ -5550,16 +5606,16 @@ var Radio = (_a) => {
|
|
|
5550
5606
|
]);
|
|
5551
5607
|
const radioId = id;
|
|
5552
5608
|
const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
|
|
5553
|
-
const defaultClassName = (0,
|
|
5609
|
+
const defaultClassName = (0, import_clsx40.default)(
|
|
5554
5610
|
!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"
|
|
5555
5611
|
);
|
|
5556
|
-
const errorClassName = (0,
|
|
5612
|
+
const errorClassName = (0, import_clsx40.default)(
|
|
5557
5613
|
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 "
|
|
5558
5614
|
);
|
|
5559
|
-
const disabledClassName = (0,
|
|
5615
|
+
const disabledClassName = (0, import_clsx40.default)(
|
|
5560
5616
|
disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
|
|
5561
5617
|
);
|
|
5562
|
-
const readonlyClassName = (0,
|
|
5618
|
+
const readonlyClassName = (0, import_clsx40.default)(
|
|
5563
5619
|
readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
|
|
5564
5620
|
);
|
|
5565
5621
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
@@ -5567,7 +5623,7 @@ var Radio = (_a) => {
|
|
|
5567
5623
|
{
|
|
5568
5624
|
htmlFor: radioId,
|
|
5569
5625
|
"data-testid": testid,
|
|
5570
|
-
className: (0,
|
|
5626
|
+
className: (0, import_clsx40.default)(
|
|
5571
5627
|
"flex items-center",
|
|
5572
5628
|
componentGap,
|
|
5573
5629
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
@@ -5590,7 +5646,7 @@ var Radio = (_a) => {
|
|
|
5590
5646
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5591
5647
|
"div",
|
|
5592
5648
|
{
|
|
5593
|
-
className: (0,
|
|
5649
|
+
className: (0, import_clsx40.default)(
|
|
5594
5650
|
"size-6 rounded-full border flex items-center justify-center",
|
|
5595
5651
|
baseTransition,
|
|
5596
5652
|
defaultClassName,
|
|
@@ -5601,7 +5657,7 @@ var Radio = (_a) => {
|
|
|
5601
5657
|
children: checked && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5602
5658
|
RadioIcon,
|
|
5603
5659
|
{
|
|
5604
|
-
className: (0,
|
|
5660
|
+
className: (0, import_clsx40.default)(
|
|
5605
5661
|
"transition-colors",
|
|
5606
5662
|
!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",
|
|
5607
5663
|
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",
|
|
@@ -5653,7 +5709,7 @@ RadioIcon.displayName = "RadioIcon";
|
|
|
5653
5709
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5654
5710
|
|
|
5655
5711
|
// src/components/AccessCardGroup.tsx
|
|
5656
|
-
var
|
|
5712
|
+
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
5657
5713
|
var import_react39 = require("react");
|
|
5658
5714
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5659
5715
|
|
|
@@ -5668,9 +5724,9 @@ var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
|
5668
5724
|
var import_react40 = require("react");
|
|
5669
5725
|
|
|
5670
5726
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
5671
|
-
var
|
|
5727
|
+
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
5672
5728
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5673
|
-
var arrowButtonStyles = (0,
|
|
5729
|
+
var arrowButtonStyles = (0, import_clsx43.default)(
|
|
5674
5730
|
"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"
|
|
5675
5731
|
);
|
|
5676
5732
|
|
|
@@ -5724,7 +5780,7 @@ function DateCell(_a) {
|
|
|
5724
5780
|
__spreadProps(__spreadValues({}, props), {
|
|
5725
5781
|
id,
|
|
5726
5782
|
"data-testid": testid,
|
|
5727
|
-
className: (0,
|
|
5783
|
+
className: (0, import_clsx44.default)(
|
|
5728
5784
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
5729
5785
|
typography.caption,
|
|
5730
5786
|
cellPadding,
|
|
@@ -5880,7 +5936,7 @@ function CalendarRange({
|
|
|
5880
5936
|
{
|
|
5881
5937
|
id,
|
|
5882
5938
|
"data-testid": testid,
|
|
5883
|
-
className: (0,
|
|
5939
|
+
className: (0, import_clsx44.default)(
|
|
5884
5940
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
5885
5941
|
layoutPaddding,
|
|
5886
5942
|
layoutGap,
|
|
@@ -5891,7 +5947,7 @@ function CalendarRange({
|
|
|
5891
5947
|
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5892
5948
|
"div",
|
|
5893
5949
|
{
|
|
5894
|
-
className: (0,
|
|
5950
|
+
className: (0, import_clsx44.default)(
|
|
5895
5951
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
5896
5952
|
layoutGap
|
|
5897
5953
|
),
|
|
@@ -5965,12 +6021,12 @@ function CalendarPane({
|
|
|
5965
6021
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
5966
6022
|
"div",
|
|
5967
6023
|
{
|
|
5968
|
-
className: (0,
|
|
6024
|
+
className: (0, import_clsx44.default)("flex flex-col"),
|
|
5969
6025
|
children: [
|
|
5970
6026
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
5971
6027
|
"div",
|
|
5972
6028
|
{
|
|
5973
|
-
className: (0,
|
|
6029
|
+
className: (0, import_clsx44.default)(
|
|
5974
6030
|
"flex flex-row items-center justify-between",
|
|
5975
6031
|
typography.label,
|
|
5976
6032
|
"text-text-action-primary-normal"
|
|
@@ -5982,7 +6038,7 @@ function CalendarPane({
|
|
|
5982
6038
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
5983
6039
|
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
5984
6040
|
type: "button",
|
|
5985
|
-
className: (0,
|
|
6041
|
+
className: (0, import_clsx44.default)(
|
|
5986
6042
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5987
6043
|
componentPadding
|
|
5988
6044
|
),
|
|
@@ -5990,7 +6046,7 @@ function CalendarPane({
|
|
|
5990
6046
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5991
6047
|
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5992
6048
|
}
|
|
5993
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0,
|
|
6049
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx44.default)(componentPadding, "mr-1") }),
|
|
5994
6050
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5995
6051
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5996
6052
|
"button",
|
|
@@ -6069,7 +6125,7 @@ function CalendarPane({
|
|
|
6069
6125
|
id: id ? `${id}-next-month-button` : void 0,
|
|
6070
6126
|
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
6071
6127
|
type: "button",
|
|
6072
|
-
className: (0,
|
|
6128
|
+
className: (0, import_clsx44.default)(
|
|
6073
6129
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
6074
6130
|
componentPadding
|
|
6075
6131
|
),
|
|
@@ -6077,14 +6133,14 @@ function CalendarPane({
|
|
|
6077
6133
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
6078
6134
|
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
6079
6135
|
}
|
|
6080
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0,
|
|
6136
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx44.default)(componentPadding, "ml-1") })
|
|
6081
6137
|
]
|
|
6082
6138
|
}
|
|
6083
6139
|
),
|
|
6084
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0,
|
|
6140
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0, import_clsx44.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6085
6141
|
"span",
|
|
6086
6142
|
{
|
|
6087
|
-
className: (0,
|
|
6143
|
+
className: (0, import_clsx44.default)(
|
|
6088
6144
|
typography.caption,
|
|
6089
6145
|
"text-text-secondary-normal text-center",
|
|
6090
6146
|
"w-10"
|
|
@@ -6093,7 +6149,7 @@ function CalendarPane({
|
|
|
6093
6149
|
},
|
|
6094
6150
|
d
|
|
6095
6151
|
)) }),
|
|
6096
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0,
|
|
6152
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0, import_clsx44.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
6097
6153
|
const day = i - emptyCells + 1;
|
|
6098
6154
|
const date = month.date.with({ day: 1 }).add({
|
|
6099
6155
|
days: i - emptyCells
|
|
@@ -6135,7 +6191,7 @@ function CalendarPane({
|
|
|
6135
6191
|
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6136
6192
|
"div",
|
|
6137
6193
|
{
|
|
6138
|
-
className: (0,
|
|
6194
|
+
className: (0, import_clsx44.default)(
|
|
6139
6195
|
"self-stretch bg-border-primary-normal rounded-base",
|
|
6140
6196
|
// 1px width, full height, matches Figma divider
|
|
6141
6197
|
"w-px"
|