@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
|
@@ -4101,6 +4101,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
4101
4101
|
// src/components/DateInput.tsx
|
|
4102
4102
|
var import_react20 = require("react");
|
|
4103
4103
|
var import_react_dom3 = require("react-dom");
|
|
4104
|
+
var import_clsx19 = __toESM(require("clsx"), 1);
|
|
4104
4105
|
|
|
4105
4106
|
// src/components/CalendarRange.tsx
|
|
4106
4107
|
var import_clsx18 = __toESM(require("clsx"), 1);
|
|
@@ -4655,10 +4656,12 @@ var DateInput = (_a) => {
|
|
|
4655
4656
|
const popoverRef = (0, import_react20.useRef)(null);
|
|
4656
4657
|
const triggerRef = (0, import_react20.useRef)(null);
|
|
4657
4658
|
const rootRef = (0, import_react20.useRef)(null);
|
|
4659
|
+
const isMobile = useMatchesMobile();
|
|
4658
4660
|
const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
|
|
4659
4661
|
top: 0,
|
|
4660
4662
|
left: 0,
|
|
4661
|
-
width: 0
|
|
4663
|
+
width: 0,
|
|
4664
|
+
openAbove: false
|
|
4662
4665
|
});
|
|
4663
4666
|
const [from, to] = [value, ""];
|
|
4664
4667
|
(0, import_react20.useEffect)(() => {
|
|
@@ -4674,11 +4677,28 @@ var DateInput = (_a) => {
|
|
|
4674
4677
|
const updatePosition = () => {
|
|
4675
4678
|
if (rootRef.current) {
|
|
4676
4679
|
const rect = rootRef.current.getBoundingClientRect();
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4680
|
+
const viewportWidth = window.innerWidth;
|
|
4681
|
+
const viewportHeight = window.innerHeight;
|
|
4682
|
+
const calendarWidth = 340;
|
|
4683
|
+
const calendarHeight = 400;
|
|
4684
|
+
let viewportLeft = rect.left;
|
|
4685
|
+
if (viewportLeft + calendarWidth > viewportWidth) {
|
|
4686
|
+
viewportLeft = rect.right - calendarWidth;
|
|
4687
|
+
if (viewportLeft < 0) {
|
|
4688
|
+
viewportLeft = Math.max(0, (viewportWidth - calendarWidth) / 2);
|
|
4689
|
+
}
|
|
4690
|
+
}
|
|
4691
|
+
const left = viewportLeft + window.scrollX;
|
|
4692
|
+
const spaceBelow = viewportHeight - rect.bottom;
|
|
4693
|
+
const spaceAbove = rect.top;
|
|
4694
|
+
const openAbove = spaceBelow < calendarHeight && spaceAbove > spaceBelow;
|
|
4695
|
+
let top;
|
|
4696
|
+
if (openAbove) {
|
|
4697
|
+
top = rect.top + window.scrollY - calendarHeight - 4;
|
|
4698
|
+
} else {
|
|
4699
|
+
top = rect.bottom + window.scrollY + 4;
|
|
4700
|
+
}
|
|
4701
|
+
setCalendarPosition({ top, left, width: rect.width, openAbove });
|
|
4682
4702
|
}
|
|
4683
4703
|
};
|
|
4684
4704
|
(0, import_react20.useEffect)(() => {
|
|
@@ -4761,7 +4781,10 @@ var DateInput = (_a) => {
|
|
|
4761
4781
|
if (cursorPosition > 0 && value2[cursorPosition - 1] === sep) {
|
|
4762
4782
|
event.preventDefault();
|
|
4763
4783
|
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
4764
|
-
const formattedValue = formatInputValueWithDashes(
|
|
4784
|
+
const formattedValue = formatInputValueWithDashes(
|
|
4785
|
+
newValue,
|
|
4786
|
+
dateInDashes
|
|
4787
|
+
);
|
|
4765
4788
|
setInputValue(formattedValue);
|
|
4766
4789
|
requestAnimationFrame(() => {
|
|
4767
4790
|
if (triggerRef.current) {
|
|
@@ -4812,25 +4835,58 @@ var DateInput = (_a) => {
|
|
|
4812
4835
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4813
4836
|
"div",
|
|
4814
4837
|
{
|
|
4815
|
-
className:
|
|
4838
|
+
className: (0, import_clsx19.default)(
|
|
4839
|
+
"fixed inset-0 z-50",
|
|
4840
|
+
isMobile && "overflow-y-auto bg-neutral-600/50"
|
|
4841
|
+
),
|
|
4816
4842
|
onClick: () => setVisible(false),
|
|
4817
4843
|
onMouseDown: (e) => {
|
|
4818
|
-
|
|
4844
|
+
if (!isMobile) {
|
|
4845
|
+
e.preventDefault();
|
|
4846
|
+
}
|
|
4819
4847
|
},
|
|
4820
4848
|
onWheel: (e) => {
|
|
4821
4849
|
var _a2;
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4850
|
+
if (!isMobile) {
|
|
4851
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
4852
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
4853
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
4854
|
+
}
|
|
4825
4855
|
},
|
|
4826
4856
|
onTouchMove: (e) => {
|
|
4827
|
-
|
|
4857
|
+
if (!isMobile) {
|
|
4858
|
+
e.stopPropagation();
|
|
4859
|
+
}
|
|
4828
4860
|
},
|
|
4829
|
-
style: { touchAction: "pan-y pan-x" },
|
|
4830
|
-
"aria-hidden": "true"
|
|
4861
|
+
style: { touchAction: isMobile ? "auto" : "pan-y pan-x" },
|
|
4862
|
+
"aria-hidden": "true",
|
|
4863
|
+
children: isMobile && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "min-h-full flex items-start justify-center py-4 px-2", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4864
|
+
"div",
|
|
4865
|
+
{
|
|
4866
|
+
ref: (el) => {
|
|
4867
|
+
popoverRef.current = el;
|
|
4868
|
+
},
|
|
4869
|
+
className: "bg-white rounded-base shadow-4 max-w-full",
|
|
4870
|
+
onClick: (e) => e.stopPropagation(),
|
|
4871
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4872
|
+
CalendarRange,
|
|
4873
|
+
{
|
|
4874
|
+
id: id ? `${id}-calendar` : void 0,
|
|
4875
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
4876
|
+
from,
|
|
4877
|
+
to: to || from,
|
|
4878
|
+
onChange: handleDateChange,
|
|
4879
|
+
cardStyle: true,
|
|
4880
|
+
mode: "single",
|
|
4881
|
+
disableRange: true,
|
|
4882
|
+
isDateAvailable
|
|
4883
|
+
}
|
|
4884
|
+
)
|
|
4885
|
+
}
|
|
4886
|
+
) })
|
|
4831
4887
|
}
|
|
4832
4888
|
),
|
|
4833
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4889
|
+
!isMobile && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4834
4890
|
"div",
|
|
4835
4891
|
{
|
|
4836
4892
|
ref: (el) => {
|
|
@@ -4838,7 +4894,7 @@ var DateInput = (_a) => {
|
|
|
4838
4894
|
},
|
|
4839
4895
|
className: "absolute z-50 bg-white",
|
|
4840
4896
|
style: {
|
|
4841
|
-
top: `${calendarPosition.top
|
|
4897
|
+
top: `${calendarPosition.top}px`,
|
|
4842
4898
|
left: `${calendarPosition.left}px`
|
|
4843
4899
|
},
|
|
4844
4900
|
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
@@ -4874,21 +4930,21 @@ function formatDisplayValue(from, dateInDashes) {
|
|
|
4874
4930
|
}
|
|
4875
4931
|
|
|
4876
4932
|
// src/components/Accordion.tsx
|
|
4877
|
-
var
|
|
4933
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
4878
4934
|
|
|
4879
4935
|
// src/components/Card.tsx
|
|
4880
|
-
var
|
|
4936
|
+
var import_clsx20 = __toESM(require("clsx"), 1);
|
|
4881
4937
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
4882
4938
|
|
|
4883
4939
|
// src/components/Stack.tsx
|
|
4884
|
-
var
|
|
4940
|
+
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
4885
4941
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
4886
4942
|
|
|
4887
4943
|
// src/components/Accordion.tsx
|
|
4888
4944
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
4889
4945
|
|
|
4890
4946
|
// src/components/Heading.tsx
|
|
4891
|
-
var
|
|
4947
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
4892
4948
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
4893
4949
|
var Heading = (_a) => {
|
|
4894
4950
|
var _b = _a, {
|
|
@@ -4917,7 +4973,7 @@ var Heading = (_a) => {
|
|
|
4917
4973
|
__spreadProps(__spreadValues({
|
|
4918
4974
|
id,
|
|
4919
4975
|
"data-testid": testid,
|
|
4920
|
-
className: (0,
|
|
4976
|
+
className: (0, import_clsx23.default)(
|
|
4921
4977
|
typography[variant],
|
|
4922
4978
|
className,
|
|
4923
4979
|
align === "left" && "text-left",
|
|
@@ -4964,11 +5020,11 @@ var import_react24 = require("react");
|
|
|
4964
5020
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
4965
5021
|
|
|
4966
5022
|
// src/components/Modal.tsx
|
|
4967
|
-
var
|
|
5023
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
4968
5024
|
var import_react26 = require("react");
|
|
4969
5025
|
|
|
4970
5026
|
// src/components/ModalHeader.tsx
|
|
4971
|
-
var
|
|
5027
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
4972
5028
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
4973
5029
|
var ModalHeader = ({
|
|
4974
5030
|
title,
|
|
@@ -4988,7 +5044,7 @@ var ModalHeader = ({
|
|
|
4988
5044
|
{
|
|
4989
5045
|
id,
|
|
4990
5046
|
"data-testid": testid,
|
|
4991
|
-
className: (0,
|
|
5047
|
+
className: (0, import_clsx24.default)(
|
|
4992
5048
|
"flex justify-between items-center",
|
|
4993
5049
|
headerIconAlign === "center" && "justify-center",
|
|
4994
5050
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -4998,7 +5054,7 @@ var ModalHeader = ({
|
|
|
4998
5054
|
headerClassname
|
|
4999
5055
|
),
|
|
5000
5056
|
children: [
|
|
5001
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0,
|
|
5057
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_clsx24.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
5002
5058
|
headerIcon,
|
|
5003
5059
|
title && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5004
5060
|
Title,
|
|
@@ -5021,7 +5077,7 @@ var ModalHeader = ({
|
|
|
5021
5077
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5022
5078
|
"span",
|
|
5023
5079
|
{
|
|
5024
|
-
className: (0,
|
|
5080
|
+
className: (0, import_clsx24.default)(
|
|
5025
5081
|
"contents",
|
|
5026
5082
|
headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
|
|
5027
5083
|
),
|
|
@@ -5037,7 +5093,7 @@ var ModalHeader = ({
|
|
|
5037
5093
|
ModalHeader.displayName = "ModalHeader";
|
|
5038
5094
|
|
|
5039
5095
|
// src/components/ModalContent.tsx
|
|
5040
|
-
var
|
|
5096
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
5041
5097
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
5042
5098
|
function ModalContent({
|
|
5043
5099
|
fixedHeightScrolling,
|
|
@@ -5050,7 +5106,7 @@ function ModalContent({
|
|
|
5050
5106
|
{
|
|
5051
5107
|
id,
|
|
5052
5108
|
"data-testid": testid,
|
|
5053
|
-
className: (0,
|
|
5109
|
+
className: (0, import_clsx25.default)(
|
|
5054
5110
|
"flex-grow desktop:flex-grow-0",
|
|
5055
5111
|
layoutPaddding,
|
|
5056
5112
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -5062,7 +5118,7 @@ function ModalContent({
|
|
|
5062
5118
|
ModalContent.displayName = "ModalContent";
|
|
5063
5119
|
|
|
5064
5120
|
// src/components/ModalButtons.tsx
|
|
5065
|
-
var
|
|
5121
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
5066
5122
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
5067
5123
|
var ModalButtons = ({
|
|
5068
5124
|
onClose,
|
|
@@ -5077,7 +5133,7 @@ var ModalButtons = ({
|
|
|
5077
5133
|
{
|
|
5078
5134
|
id,
|
|
5079
5135
|
"data-testid": testid,
|
|
5080
|
-
className: (0,
|
|
5136
|
+
className: (0, import_clsx26.default)(
|
|
5081
5137
|
"border-t border-neutral-300 flex justify-end",
|
|
5082
5138
|
mobileButtonStack && "flex-col ",
|
|
5083
5139
|
layoutPaddding,
|
|
@@ -5115,7 +5171,7 @@ var ModalButtons = ({
|
|
|
5115
5171
|
ModalButtons.displayName = "ModalButtons";
|
|
5116
5172
|
|
|
5117
5173
|
// src/components/ModalScrim.tsx
|
|
5118
|
-
var
|
|
5174
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
5119
5175
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5120
5176
|
var ModalScrim = ({
|
|
5121
5177
|
show = false,
|
|
@@ -5131,7 +5187,7 @@ var ModalScrim = ({
|
|
|
5131
5187
|
{
|
|
5132
5188
|
id,
|
|
5133
5189
|
"data-testid": testid,
|
|
5134
|
-
className: (0,
|
|
5190
|
+
className: (0, import_clsx27.default)(
|
|
5135
5191
|
"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",
|
|
5136
5192
|
!show && " pointer-events-none",
|
|
5137
5193
|
size === "small" && "p-4",
|
|
@@ -5352,7 +5408,7 @@ var Modal = ({
|
|
|
5352
5408
|
id,
|
|
5353
5409
|
"data-testid": testid,
|
|
5354
5410
|
ref: modalRef,
|
|
5355
|
-
className: (0,
|
|
5411
|
+
className: (0, import_clsx28.default)(
|
|
5356
5412
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
|
|
5357
5413
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
5358
5414
|
className,
|
|
@@ -5416,10 +5472,10 @@ var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
|
5416
5472
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
5417
5473
|
|
|
5418
5474
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
5419
|
-
var
|
|
5475
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
5420
5476
|
|
|
5421
5477
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
5422
|
-
var
|
|
5478
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
5423
5479
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
5424
5480
|
|
|
5425
5481
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
@@ -5439,7 +5495,7 @@ var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
|
5439
5495
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5440
5496
|
|
|
5441
5497
|
// src/components/Grid.tsx
|
|
5442
|
-
var
|
|
5498
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
5443
5499
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5444
5500
|
|
|
5445
5501
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
@@ -5450,7 +5506,7 @@ var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
|
5450
5506
|
var import_react30 = require("react");
|
|
5451
5507
|
|
|
5452
5508
|
// src/components/Surface.tsx
|
|
5453
|
-
var
|
|
5509
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
5454
5510
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5455
5511
|
var Surface = (_a) => {
|
|
5456
5512
|
var _b = _a, {
|
|
@@ -5468,7 +5524,7 @@ var Surface = (_a) => {
|
|
|
5468
5524
|
"div",
|
|
5469
5525
|
__spreadProps(__spreadValues({
|
|
5470
5526
|
id,
|
|
5471
|
-
className: (0,
|
|
5527
|
+
className: (0, import_clsx32.default)(
|
|
5472
5528
|
"rounded-base",
|
|
5473
5529
|
{
|
|
5474
5530
|
"shadow-2": elevation === 2,
|
|
@@ -5488,7 +5544,7 @@ Surface.displayName = "Surface";
|
|
|
5488
5544
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5489
5545
|
|
|
5490
5546
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
5491
|
-
var
|
|
5547
|
+
var import_clsx33 = require("clsx");
|
|
5492
5548
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5493
5549
|
|
|
5494
5550
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
@@ -5503,21 +5559,21 @@ var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
|
5503
5559
|
|
|
5504
5560
|
// src/components/CompactImagesPreview.tsx
|
|
5505
5561
|
var import_react33 = require("react");
|
|
5506
|
-
var
|
|
5562
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
5507
5563
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5508
5564
|
|
|
5509
5565
|
// src/components/SimpleTable.tsx
|
|
5510
|
-
var
|
|
5566
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
5511
5567
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5512
5568
|
|
|
5513
5569
|
// src/components/ListGroup.tsx
|
|
5514
5570
|
var import_react34 = require("react");
|
|
5515
|
-
var
|
|
5571
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5516
5572
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5517
5573
|
|
|
5518
5574
|
// src/components/Pagination.tsx
|
|
5519
5575
|
var import_react35 = require("react");
|
|
5520
|
-
var
|
|
5576
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5521
5577
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5522
5578
|
var Pagination = ({
|
|
5523
5579
|
totalPages,
|
|
@@ -5582,7 +5638,7 @@ var Pagination = ({
|
|
|
5582
5638
|
return tokens;
|
|
5583
5639
|
}, [totalPages, currentPage]);
|
|
5584
5640
|
if (totalPages <= 1) return null;
|
|
5585
|
-
const buttonClass = (0,
|
|
5641
|
+
const buttonClass = (0, import_clsx37.default)(
|
|
5586
5642
|
"cursor-pointer disabled:cursor-default",
|
|
5587
5643
|
paddingUsingComponentGap,
|
|
5588
5644
|
"w-8 h-8",
|
|
@@ -5600,7 +5656,7 @@ var Pagination = ({
|
|
|
5600
5656
|
"data-testid": testid,
|
|
5601
5657
|
"aria-label": "Pagination",
|
|
5602
5658
|
onKeyDown: handleKey,
|
|
5603
|
-
className: (0,
|
|
5659
|
+
className: (0, import_clsx37.default)(
|
|
5604
5660
|
"flex items-center",
|
|
5605
5661
|
"border border-border-primary-normal",
|
|
5606
5662
|
"bg-background-grouped-primary-normal",
|
|
@@ -5614,11 +5670,11 @@ var Pagination = ({
|
|
|
5614
5670
|
disabled: disabled || currentPage <= 1,
|
|
5615
5671
|
"aria-label": "Previous page",
|
|
5616
5672
|
onClick: () => goTo(currentPage - 1),
|
|
5617
|
-
className: (0,
|
|
5673
|
+
className: (0, import_clsx37.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
5618
5674
|
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
5619
5675
|
}
|
|
5620
5676
|
),
|
|
5621
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("ul", { className: (0,
|
|
5677
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
5622
5678
|
if (token === "ellipsis") {
|
|
5623
5679
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5624
5680
|
"li",
|
|
@@ -5637,7 +5693,7 @@ var Pagination = ({
|
|
|
5637
5693
|
"aria-current": selected ? "page" : void 0,
|
|
5638
5694
|
disabled,
|
|
5639
5695
|
onClick: () => goTo(token),
|
|
5640
|
-
className: (0,
|
|
5696
|
+
className: (0, import_clsx37.default)(
|
|
5641
5697
|
buttonClass,
|
|
5642
5698
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
5643
5699
|
),
|
|
@@ -5651,7 +5707,7 @@ var Pagination = ({
|
|
|
5651
5707
|
disabled: disabled || currentPage >= totalPages,
|
|
5652
5708
|
"aria-label": "Next page",
|
|
5653
5709
|
onClick: () => goTo(currentPage + 1),
|
|
5654
|
-
className: (0,
|
|
5710
|
+
className: (0, import_clsx37.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
5655
5711
|
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
5656
5712
|
}
|
|
5657
5713
|
)
|
|
@@ -5672,7 +5728,7 @@ var import_react36 = require("react");
|
|
|
5672
5728
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5673
5729
|
|
|
5674
5730
|
// src/components/Alert.tsx
|
|
5675
|
-
var
|
|
5731
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
5676
5732
|
var import_react37 = require("react");
|
|
5677
5733
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5678
5734
|
|
|
@@ -5685,10 +5741,10 @@ var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
|
5685
5741
|
var EditingContext = (0, import_react38.createContext)(null);
|
|
5686
5742
|
|
|
5687
5743
|
// src/components/AccessCard.tsx
|
|
5688
|
-
var
|
|
5744
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
5689
5745
|
|
|
5690
5746
|
// src/components/Radio.tsx
|
|
5691
|
-
var
|
|
5747
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
5692
5748
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5693
5749
|
var Radio = (_a) => {
|
|
5694
5750
|
var _b = _a, {
|
|
@@ -5712,16 +5768,16 @@ var Radio = (_a) => {
|
|
|
5712
5768
|
]);
|
|
5713
5769
|
const radioId = id;
|
|
5714
5770
|
const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
|
|
5715
|
-
const defaultClassName = (0,
|
|
5771
|
+
const defaultClassName = (0, import_clsx39.default)(
|
|
5716
5772
|
!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"
|
|
5717
5773
|
);
|
|
5718
|
-
const errorClassName = (0,
|
|
5774
|
+
const errorClassName = (0, import_clsx39.default)(
|
|
5719
5775
|
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 "
|
|
5720
5776
|
);
|
|
5721
|
-
const disabledClassName = (0,
|
|
5777
|
+
const disabledClassName = (0, import_clsx39.default)(
|
|
5722
5778
|
disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
|
|
5723
5779
|
);
|
|
5724
|
-
const readonlyClassName = (0,
|
|
5780
|
+
const readonlyClassName = (0, import_clsx39.default)(
|
|
5725
5781
|
readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
|
|
5726
5782
|
);
|
|
5727
5783
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
@@ -5729,7 +5785,7 @@ var Radio = (_a) => {
|
|
|
5729
5785
|
{
|
|
5730
5786
|
htmlFor: radioId,
|
|
5731
5787
|
"data-testid": testid,
|
|
5732
|
-
className: (0,
|
|
5788
|
+
className: (0, import_clsx39.default)(
|
|
5733
5789
|
"flex items-center",
|
|
5734
5790
|
componentGap,
|
|
5735
5791
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
@@ -5752,7 +5808,7 @@ var Radio = (_a) => {
|
|
|
5752
5808
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5753
5809
|
"div",
|
|
5754
5810
|
{
|
|
5755
|
-
className: (0,
|
|
5811
|
+
className: (0, import_clsx39.default)(
|
|
5756
5812
|
"size-6 rounded-full border flex items-center justify-center",
|
|
5757
5813
|
baseTransition,
|
|
5758
5814
|
defaultClassName,
|
|
@@ -5763,7 +5819,7 @@ var Radio = (_a) => {
|
|
|
5763
5819
|
children: checked && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5764
5820
|
RadioIcon,
|
|
5765
5821
|
{
|
|
5766
|
-
className: (0,
|
|
5822
|
+
className: (0, import_clsx39.default)(
|
|
5767
5823
|
"transition-colors",
|
|
5768
5824
|
!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",
|
|
5769
5825
|
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",
|
|
@@ -5815,7 +5871,7 @@ RadioIcon.displayName = "RadioIcon";
|
|
|
5815
5871
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5816
5872
|
|
|
5817
5873
|
// src/components/AccessCardGroup.tsx
|
|
5818
|
-
var
|
|
5874
|
+
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
5819
5875
|
var import_react39 = require("react");
|
|
5820
5876
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5821
5877
|
|
|
@@ -5830,9 +5886,9 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
|
5830
5886
|
var import_react40 = require("react");
|
|
5831
5887
|
|
|
5832
5888
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
5833
|
-
var
|
|
5889
|
+
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
5834
5890
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5835
|
-
var arrowButtonStyles = (0,
|
|
5891
|
+
var arrowButtonStyles = (0, import_clsx42.default)(
|
|
5836
5892
|
"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"
|
|
5837
5893
|
);
|
|
5838
5894
|
|
|
@@ -5843,10 +5899,10 @@ var import_react41 = require("react");
|
|
|
5843
5899
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5844
5900
|
|
|
5845
5901
|
// src/components/DataGrid/TableBody/index.tsx
|
|
5846
|
-
var
|
|
5902
|
+
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
5847
5903
|
|
|
5848
5904
|
// src/components/DataGrid/TableBody/TableBodyRow.tsx
|
|
5849
|
-
var
|
|
5905
|
+
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
5850
5906
|
var import_react_table3 = require("@tanstack/react-table");
|
|
5851
5907
|
var import_react43 = __toESM(require("react"), 1);
|
|
5852
5908
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
@@ -5889,7 +5945,7 @@ function TableBodyRow({
|
|
|
5889
5945
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5890
5946
|
"tr",
|
|
5891
5947
|
{
|
|
5892
|
-
className: (0,
|
|
5948
|
+
className: (0, import_clsx43.default)(
|
|
5893
5949
|
"min-h-10",
|
|
5894
5950
|
"transition-colors",
|
|
5895
5951
|
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",
|
|
@@ -5927,7 +5983,7 @@ function TableBodyRow({
|
|
|
5927
5983
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
5928
5984
|
testid: testid ? `${testid}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
5929
5985
|
cell,
|
|
5930
|
-
className: (0,
|
|
5986
|
+
className: (0, import_clsx43.default)({
|
|
5931
5987
|
"justify-start": cellAlignment === "left",
|
|
5932
5988
|
"justify-end": cellAlignment === "right"
|
|
5933
5989
|
}),
|
|
@@ -6033,7 +6089,7 @@ function TableBody({
|
|
|
6033
6089
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
6034
6090
|
"tbody",
|
|
6035
6091
|
{
|
|
6036
|
-
className: (0,
|
|
6092
|
+
className: (0, import_clsx44.default)(locked ? "shadow-16" : ""),
|
|
6037
6093
|
style: {
|
|
6038
6094
|
display: "grid",
|
|
6039
6095
|
height: `${showFilterRow ? rowVirtualizer.getTotalSize() + 40 : rowVirtualizer.getTotalSize()}px`,
|