intelicoreact 2.0.4 → 2.0.6
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/Atomic/FormElements/CheckboxInput/CheckboxInput.interface.d.ts +2 -1
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.interface.d.ts +3 -3
- package/dist/Atomic/FormElements/Switcher/Switcher.interface.d.ts +2 -1
- package/dist/Atomic/UI/AccordionText/AccordionText.interface.d.ts +13 -0
- package/dist/Atomic/UI/Alert/Alert.interface.d.ts +1 -1
- package/dist/Atomic/UI/Modal/index.d.ts +3 -0
- package/dist/Functions/sdk/runtime-sdk/client.d.ts +19 -0
- package/dist/Functions/sdk/runtime-sdk/config.d.ts +32 -0
- package/dist/Functions/sdk/runtime-sdk/index.d.ts +3 -0
- package/dist/Functions/sdk/runtime-sdk/queue.d.ts +70 -0
- package/dist/Functions/sdk/runtime-sdk/transport.d.ts +41 -0
- package/dist/Functions/sdk/runtime-sdk/types.d.ts +84 -0
- package/dist/Molecular/FormElement/FormElement.interface.d.ts +1 -1
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.interface.d.ts +99 -0
- package/dist/classes.cjs +10 -8
- package/dist/classes.cjs.map +2 -2
- package/dist/classes.js +10 -8
- package/dist/classes.js.map +2 -2
- package/dist/form.cjs +1853 -1779
- package/dist/form.cjs.map +4 -4
- package/dist/form.d.ts +42 -17
- package/dist/form.js +1848 -1774
- package/dist/form.js.map +4 -4
- package/dist/index.cjs +2229 -2139
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +2041 -1951
- package/dist/index.js.map +4 -4
- package/dist/sdk.cjs +451 -0
- package/dist/sdk.cjs.map +7 -0
- package/dist/sdk.d.ts +5 -0
- package/dist/sdk.js +429 -0
- package/dist/sdk.js.map +7 -0
- package/dist/ui.cjs +398 -366
- package/dist/ui.cjs.map +4 -4
- package/dist/ui.d.ts +11 -7
- package/dist/ui.js +270 -238
- package/dist/ui.js.map +4 -4
- package/package.json +11 -1
- package/sdk/package.json +5 -0
package/dist/ui.js
CHANGED
|
@@ -7033,6 +7033,9 @@ var AdvancedTags = ({
|
|
|
7033
7033
|
};
|
|
7034
7034
|
var AdvancedTags_default = AdvancedTags;
|
|
7035
7035
|
|
|
7036
|
+
// src/Atomic/UI/AdvancedTag/index.ts
|
|
7037
|
+
var AdvancedTag_default = AdvancedTags_default;
|
|
7038
|
+
|
|
7036
7039
|
// src/Atomic/UI/Alert/Alert.tsx
|
|
7037
7040
|
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7038
7041
|
|
|
@@ -7157,6 +7160,9 @@ var Alert = ({
|
|
|
7157
7160
|
};
|
|
7158
7161
|
var Alert_default = Alert;
|
|
7159
7162
|
|
|
7163
|
+
// src/Atomic/UI/Alert/index.ts
|
|
7164
|
+
var Alert_default2 = Alert_default;
|
|
7165
|
+
|
|
7160
7166
|
// src/Atomic/UI/Arrow/Arrow.tsx
|
|
7161
7167
|
import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
7162
7168
|
import cn13 from "classnames";
|
|
@@ -7420,6 +7426,9 @@ var ButtonsBar = ({
|
|
|
7420
7426
|
};
|
|
7421
7427
|
var ButtonsBar_default = ButtonsBar;
|
|
7422
7428
|
|
|
7429
|
+
// src/Atomic/UI/ButtonsBar/index.ts
|
|
7430
|
+
var ButtonsBar_default2 = ButtonsBar_default;
|
|
7431
|
+
|
|
7423
7432
|
// src/Atomic/UI/Chart/Chart.tsx
|
|
7424
7433
|
import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
7425
7434
|
|
|
@@ -8269,6 +8278,9 @@ var Chart = ({
|
|
|
8269
8278
|
};
|
|
8270
8279
|
var Chart_default = Chart;
|
|
8271
8280
|
|
|
8281
|
+
// src/Atomic/UI/Chart/index.ts
|
|
8282
|
+
var Chart_default2 = Chart_default;
|
|
8283
|
+
|
|
8272
8284
|
// src/Atomic/UI/CircleProgressBar/CircleProgressBar.js
|
|
8273
8285
|
import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
8274
8286
|
import React18, { useEffect as useEffect13, useState as useState15 } from "react";
|
|
@@ -8477,11 +8489,24 @@ var DebugContainer = ({ data = defaultData, children, className }) => {
|
|
|
8477
8489
|
};
|
|
8478
8490
|
var DebugContainer_default = DebugContainer;
|
|
8479
8491
|
|
|
8492
|
+
// src/Atomic/UI/DebugContainer/useDebugContainer.tsx
|
|
8493
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
8494
|
+
import { useState as useState17 } from "react";
|
|
8495
|
+
function useDebugContainer() {
|
|
8496
|
+
const [data, setData] = useState17({});
|
|
8497
|
+
return {
|
|
8498
|
+
debugData: data,
|
|
8499
|
+
setDebugData: setData,
|
|
8500
|
+
renderDebugContainer: /* @__PURE__ */ jsx22(DebugContainer_default, { data })
|
|
8501
|
+
};
|
|
8502
|
+
}
|
|
8503
|
+
var useDebugContainer_default = useDebugContainer;
|
|
8504
|
+
|
|
8480
8505
|
// src/Atomic/UI/DoubleString/DoubleString.tsx
|
|
8481
|
-
import { Fragment as Fragment4, jsx as
|
|
8506
|
+
import { Fragment as Fragment4, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
8482
8507
|
import cn21 from "classnames";
|
|
8483
8508
|
import moment3 from "moment";
|
|
8484
|
-
import { useEffect as useEffect14, useRef as useRef10, useState as
|
|
8509
|
+
import { useEffect as useEffect14, useRef as useRef10, useState as useState18 } from "react";
|
|
8485
8510
|
import { Eye, EyeOff } from "react-feather";
|
|
8486
8511
|
var RC6 = "double-string";
|
|
8487
8512
|
var DoubleString = ({
|
|
@@ -8502,16 +8527,16 @@ var DoubleString = ({
|
|
|
8502
8527
|
isUseHideMode = false,
|
|
8503
8528
|
isShowHiddenValueAvailable = false
|
|
8504
8529
|
}) => {
|
|
8505
|
-
const [isValueHidden, setIsValueHidden] =
|
|
8530
|
+
const [isValueHidden, setIsValueHidden] = useState18(isUseHideMode);
|
|
8506
8531
|
const computedValue = isFormatValueToDate ? moment3(value, parseFormat).format(displayFormat) : value;
|
|
8507
8532
|
const valueRef = useRef10(null);
|
|
8508
8533
|
;
|
|
8509
8534
|
const descriptionRef = useRef10(null);
|
|
8510
|
-
const [elemsWidth, setElemsWidth] =
|
|
8535
|
+
const [elemsWidth, setElemsWidth] = useState18({
|
|
8511
8536
|
valueWidth: 0,
|
|
8512
8537
|
descriptionWidth: 0
|
|
8513
8538
|
});
|
|
8514
|
-
const [isOnClickON, setIsOnClickON] =
|
|
8539
|
+
const [isOnClickON, setIsOnClickON] = useState18(false);
|
|
8515
8540
|
const handle = {
|
|
8516
8541
|
click: () => {
|
|
8517
8542
|
setIsOnClickON(!isOnClickON);
|
|
@@ -8523,7 +8548,7 @@ var DoubleString = ({
|
|
|
8523
8548
|
setElemsWidth({ valueWidth, descriptionWidth });
|
|
8524
8549
|
}, [descriptionRef, valueRef]);
|
|
8525
8550
|
return /* @__PURE__ */ jsxs20("div", { "data-testid": testId, className: cn21(RC6, className), children: [
|
|
8526
|
-
/* @__PURE__ */
|
|
8551
|
+
/* @__PURE__ */ jsx23(
|
|
8527
8552
|
"p",
|
|
8528
8553
|
{
|
|
8529
8554
|
onClick: () => handle.click(),
|
|
@@ -8537,14 +8562,14 @@ var DoubleString = ({
|
|
|
8537
8562
|
),
|
|
8538
8563
|
title: !noTitle && elemsWidth.valueWidth > 99 ? computedValue : "",
|
|
8539
8564
|
children: !revert ? /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
8540
|
-
isUseHideMode ? /* @__PURE__ */
|
|
8541
|
-
isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */
|
|
8542
|
-
isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */
|
|
8543
|
-
valuePostfix && /* @__PURE__ */
|
|
8565
|
+
isUseHideMode ? /* @__PURE__ */ jsx23("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
|
|
8566
|
+
isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */ jsx23(Eye, { "data-testid": "double-string-eye", className: `${RC6}__hide-mode-icon`, onClick: () => setIsValueHidden(false) }),
|
|
8567
|
+
isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */ jsx23(EyeOff, { "data-testid": "double-string-eyeoff", className: `${RC6}__hide-mode-icon`, onClick: () => setIsValueHidden(true) }),
|
|
8568
|
+
valuePostfix && /* @__PURE__ */ jsx23("span", { className: cn21(`${RC6}__value-postfix`), children: valuePostfix })
|
|
8544
8569
|
] }) : description
|
|
8545
8570
|
}
|
|
8546
8571
|
),
|
|
8547
|
-
/* @__PURE__ */
|
|
8572
|
+
/* @__PURE__ */ jsx23(
|
|
8548
8573
|
"p",
|
|
8549
8574
|
{
|
|
8550
8575
|
ref: descriptionRef,
|
|
@@ -8552,23 +8577,26 @@ var DoubleString = ({
|
|
|
8552
8577
|
title: !noTitle && elemsWidth.descriptionWidth > 99 ? computedValue : "",
|
|
8553
8578
|
children: !revert ? description : /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
8554
8579
|
computedValue,
|
|
8555
|
-
valuePostfix && /* @__PURE__ */
|
|
8580
|
+
valuePostfix && /* @__PURE__ */ jsx23("span", { className: cn21(`${RC6}__value-postfix`), children: valuePostfix })
|
|
8556
8581
|
] })
|
|
8557
8582
|
}
|
|
8558
8583
|
),
|
|
8559
|
-
subDescription && /* @__PURE__ */
|
|
8584
|
+
subDescription && /* @__PURE__ */ jsx23("p", { className: cn21(`${RC6}__sub-description`), children: subDescription })
|
|
8560
8585
|
] });
|
|
8561
8586
|
};
|
|
8562
8587
|
var DoubleString_default = DoubleString;
|
|
8563
8588
|
|
|
8589
|
+
// src/Atomic/UI/DoubleString/index.ts
|
|
8590
|
+
var DoubleString_default2 = DoubleString_default;
|
|
8591
|
+
|
|
8564
8592
|
// src/Atomic/UI/DynamicIcon/index.ts
|
|
8565
8593
|
var DynamicIcon_default2 = DynamicIcon_default;
|
|
8566
8594
|
|
|
8567
8595
|
// src/Atomic/UI/Hint/Hint.tsx
|
|
8568
|
-
import { Fragment as Fragment5, jsx as
|
|
8596
|
+
import { Fragment as Fragment5, jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
8569
8597
|
|
|
8570
8598
|
// src/Molecular/CustomIcons/components/HelpCircleFilled.tsx
|
|
8571
|
-
import { jsx as
|
|
8599
|
+
import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
8572
8600
|
function HelpCircleFilled(props) {
|
|
8573
8601
|
return /* @__PURE__ */ jsxs21(
|
|
8574
8602
|
"svg",
|
|
@@ -8579,14 +8607,14 @@ function HelpCircleFilled(props) {
|
|
|
8579
8607
|
fill: "none",
|
|
8580
8608
|
...props,
|
|
8581
8609
|
children: [
|
|
8582
|
-
/* @__PURE__ */
|
|
8610
|
+
/* @__PURE__ */ jsx24(
|
|
8583
8611
|
"path",
|
|
8584
8612
|
{
|
|
8585
8613
|
fill: "#9AA0B9",
|
|
8586
8614
|
d: "M8 14.667A6.667 6.667 0 1 0 8 1.333a6.667 6.667 0 0 0 0 13.334Z"
|
|
8587
8615
|
}
|
|
8588
8616
|
),
|
|
8589
|
-
/* @__PURE__ */
|
|
8617
|
+
/* @__PURE__ */ jsx24(
|
|
8590
8618
|
"path",
|
|
8591
8619
|
{
|
|
8592
8620
|
stroke: "#fff",
|
|
@@ -8642,7 +8670,7 @@ function HandleClickOutsideObj(id, setIsOpen) {
|
|
|
8642
8670
|
|
|
8643
8671
|
// src/Atomic/UI/Hint/Hint.tsx
|
|
8644
8672
|
import cn22 from "classnames";
|
|
8645
|
-
import { useEffect as useEffect15, useRef as useRef11, useState as
|
|
8673
|
+
import { useEffect as useEffect15, useRef as useRef11, useState as useState19 } from "react";
|
|
8646
8674
|
import { createPortal as createPortal2 } from "react-dom";
|
|
8647
8675
|
import { AlertTriangle as AlertTriangle3, HelpCircle } from "react-feather";
|
|
8648
8676
|
var hintTimeoutMap = /* @__PURE__ */ new Map();
|
|
@@ -8671,12 +8699,12 @@ var Hint = ({
|
|
|
8671
8699
|
isCloseOnChildrenClick = false
|
|
8672
8700
|
}) => {
|
|
8673
8701
|
const hintRef = useRef11(null);
|
|
8674
|
-
const [hintId] =
|
|
8675
|
-
const [iAmOpenedOptions] =
|
|
8676
|
-
const [isOpen, setIsOpen] =
|
|
8677
|
-
const [isStyleComputed, setIsStyleComputed] =
|
|
8678
|
-
const [handleScroll] =
|
|
8679
|
-
const [handleClickOutside] =
|
|
8702
|
+
const [hintId] = useState19(id ?? key ?? Math.random().toString(16).slice(2));
|
|
8703
|
+
const [iAmOpenedOptions] = useState19({ ...I_AM_OPENED_EVENT_OPTIONS, detail: { hintId } });
|
|
8704
|
+
const [isOpen, setIsOpen] = useState19(false);
|
|
8705
|
+
const [isStyleComputed, setIsStyleComputed] = useState19(false);
|
|
8706
|
+
const [handleScroll] = useState19(new HandleScrollObj(setIsOpen));
|
|
8707
|
+
const [handleClickOutside] = useState19(new HandleClickOutsideObj(hintId, setIsOpen));
|
|
8680
8708
|
const isCallbackExist = typeof onClickCallback === "function";
|
|
8681
8709
|
const handle = {
|
|
8682
8710
|
onMouseEnter: () => {
|
|
@@ -8738,7 +8766,7 @@ var Hint = ({
|
|
|
8738
8766
|
onClick: handle.onClick,
|
|
8739
8767
|
style: { visibility: isStyleComputed ? "visible" : "hidden" },
|
|
8740
8768
|
children: [
|
|
8741
|
-
isLoading && /* @__PURE__ */
|
|
8769
|
+
isLoading && /* @__PURE__ */ jsx25(Spinner_default, { size: "small" }),
|
|
8742
8770
|
hint,
|
|
8743
8771
|
children
|
|
8744
8772
|
]
|
|
@@ -8853,11 +8881,11 @@ var Hint = ({
|
|
|
8853
8881
|
className: cn22("hint__button", { hint__button_active: isOpen }),
|
|
8854
8882
|
children: [
|
|
8855
8883
|
icon || icon === null || /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
8856
|
-
variant === "outlined" && /* @__PURE__ */
|
|
8857
|
-
variant === "filled" && /* @__PURE__ */
|
|
8858
|
-
variant === "warning" && /* @__PURE__ */
|
|
8884
|
+
variant === "outlined" && /* @__PURE__ */ jsx25(HelpCircle, { width: 16, height: 16, className: "hint__icon outlined" }),
|
|
8885
|
+
variant === "filled" && /* @__PURE__ */ jsx25(HelpCircleFilled, { className: "hint__icon filled" }),
|
|
8886
|
+
variant === "warning" && /* @__PURE__ */ jsx25(AlertTriangle3, { className: "hint__icon", color: "#F06D8D", width: 16, height: 16 })
|
|
8859
8887
|
] }),
|
|
8860
|
-
label && /* @__PURE__ */
|
|
8888
|
+
label && /* @__PURE__ */ jsx25("span", { className: cn22("hint__label", { "color--primary": isOpen }), children: typeof label === "string" ? capitalized(label) : label })
|
|
8861
8889
|
]
|
|
8862
8890
|
}
|
|
8863
8891
|
),
|
|
@@ -8870,15 +8898,15 @@ var Hint_default = Hint;
|
|
|
8870
8898
|
var Hint_default2 = Hint_default;
|
|
8871
8899
|
|
|
8872
8900
|
// src/Atomic/UI/Modal/Modal.tsx
|
|
8873
|
-
import { Fragment as Fragment6, jsx as
|
|
8901
|
+
import { Fragment as Fragment6, jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
8874
8902
|
|
|
8875
8903
|
// src/Functions/useKeyPress/useKeyPress.ts
|
|
8876
|
-
import { useCallback as useCallback4, useEffect as useEffect16, useState as
|
|
8904
|
+
import { useCallback as useCallback4, useEffect as useEffect16, useState as useState20 } from "react";
|
|
8877
8905
|
function isISuspendProcessing(x) {
|
|
8878
8906
|
return getIsOnlyAnObject(x) && Object.values(x).every((v) => typeof v === "function");
|
|
8879
8907
|
}
|
|
8880
8908
|
function useKeyPress(targetKey, clamping = true, isForbidden, suspendProcessing) {
|
|
8881
|
-
const [keyPressed, setKeyPressed] =
|
|
8909
|
+
const [keyPressed, setKeyPressed] = useState20(false);
|
|
8882
8910
|
const safelySuspendProcessing = isISuspendProcessing(suspendProcessing) ? suspendProcessing : {};
|
|
8883
8911
|
const downHandler = useCallback4(
|
|
8884
8912
|
(event) => {
|
|
@@ -9036,12 +9064,12 @@ function dispatchEventForModalManagement(realEvent, nameOfCustomEvent, uniqueIdO
|
|
|
9036
9064
|
}
|
|
9037
9065
|
|
|
9038
9066
|
// src/Atomic/UI/Modal/partials/ModalFooter.tsx
|
|
9039
|
-
import { jsx as
|
|
9067
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
9040
9068
|
import cn23 from "classnames";
|
|
9041
9069
|
import { memo } from "react";
|
|
9042
9070
|
var ModalFooter = memo(
|
|
9043
9071
|
({ className = "", children, wrapperRef, testId = "modal-footer" }) => {
|
|
9044
|
-
return /* @__PURE__ */
|
|
9072
|
+
return /* @__PURE__ */ jsx26(
|
|
9045
9073
|
"footer",
|
|
9046
9074
|
{
|
|
9047
9075
|
"data-testid": testId,
|
|
@@ -9058,7 +9086,7 @@ ModalFooter.displayName = "ModalFooter";
|
|
|
9058
9086
|
var ModalFooter_default = ModalFooter;
|
|
9059
9087
|
|
|
9060
9088
|
// src/Atomic/UI/Modal/partials/ModalTitle.tsx
|
|
9061
|
-
import { jsx as
|
|
9089
|
+
import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
9062
9090
|
import cn24 from "classnames";
|
|
9063
9091
|
import { memo as memo2, useLayoutEffect as useLayoutEffect4, useMemo as useMemo6, useRef as useRef12 } from "react";
|
|
9064
9092
|
import { X as X3 } from "react-feather";
|
|
@@ -9090,7 +9118,7 @@ var ModalTitle = memo2(
|
|
|
9090
9118
|
role: "banner",
|
|
9091
9119
|
"aria-label": "Modal header",
|
|
9092
9120
|
children: [
|
|
9093
|
-
/* @__PURE__ */
|
|
9121
|
+
/* @__PURE__ */ jsx27(
|
|
9094
9122
|
"span",
|
|
9095
9123
|
{
|
|
9096
9124
|
className: cn24("modal__header-title", {
|
|
@@ -9100,7 +9128,7 @@ var ModalTitle = memo2(
|
|
|
9100
9128
|
children
|
|
9101
9129
|
}
|
|
9102
9130
|
),
|
|
9103
|
-
!isForced && /* @__PURE__ */
|
|
9131
|
+
!isForced && /* @__PURE__ */ jsx27(
|
|
9104
9132
|
"button",
|
|
9105
9133
|
{
|
|
9106
9134
|
type: "button",
|
|
@@ -9111,7 +9139,7 @@ var ModalTitle = memo2(
|
|
|
9111
9139
|
}),
|
|
9112
9140
|
"aria-label": "Close modal",
|
|
9113
9141
|
title: "Close modal",
|
|
9114
|
-
children: !noHeaderCloseBtn && /* @__PURE__ */
|
|
9142
|
+
children: !noHeaderCloseBtn && /* @__PURE__ */ jsx27(X3, { className: "modal-close-icon", role: "img", "aria-hidden": "true" })
|
|
9115
9143
|
}
|
|
9116
9144
|
)
|
|
9117
9145
|
]
|
|
@@ -9123,10 +9151,10 @@ ModalTitle.displayName = "ModalTitle";
|
|
|
9123
9151
|
var ModalTitle_default = ModalTitle;
|
|
9124
9152
|
|
|
9125
9153
|
// src/Atomic/UI/Modal/partials/useMobileModal.tsx
|
|
9126
|
-
import { jsx as
|
|
9154
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
9127
9155
|
|
|
9128
9156
|
// src/Functions/useIsMobile/useIsMobile.ts
|
|
9129
|
-
import { useEffect as useEffect18, useState as
|
|
9157
|
+
import { useEffect as useEffect18, useState as useState21 } from "react";
|
|
9130
9158
|
function useIsMobile({ isWithoutWidthCheck = false } = {}) {
|
|
9131
9159
|
const isIPad = () => {
|
|
9132
9160
|
const ua = navigator.userAgent || navigator.vendor || window.opera;
|
|
@@ -9137,7 +9165,7 @@ function useIsMobile({ isWithoutWidthCheck = false } = {}) {
|
|
|
9137
9165
|
const getIsMobile = () => {
|
|
9138
9166
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || isIPad();
|
|
9139
9167
|
};
|
|
9140
|
-
const [isMobile, setIsMobile] =
|
|
9168
|
+
const [isMobile, setIsMobile] = useState21(getIsMobile());
|
|
9141
9169
|
useEffect18(() => {
|
|
9142
9170
|
if (getIsMobile()) {
|
|
9143
9171
|
setIsMobile(true);
|
|
@@ -9152,7 +9180,7 @@ function useIsMobile({ isWithoutWidthCheck = false } = {}) {
|
|
|
9152
9180
|
var useIsMobile_default = useIsMobile;
|
|
9153
9181
|
|
|
9154
9182
|
// src/Atomic/UI/Modal/partials/useMobileModal.tsx
|
|
9155
|
-
import { useCallback as useCallback5, useEffect as useEffect19, useLayoutEffect as useLayoutEffect5, useRef as useRef13, useState as
|
|
9183
|
+
import { useCallback as useCallback5, useEffect as useEffect19, useLayoutEffect as useLayoutEffect5, useRef as useRef13, useState as useState22 } from "react";
|
|
9156
9184
|
var SCROLL_DIRECTION = {
|
|
9157
9185
|
UP: "up",
|
|
9158
9186
|
DOWN: "down"
|
|
@@ -9168,22 +9196,22 @@ function useMobileModal({
|
|
|
9168
9196
|
const modalMobileFooterRef = useRef13(null);
|
|
9169
9197
|
const modalMobileBodyRef = useRef13(null);
|
|
9170
9198
|
const { isMobile } = useIsMobile_default();
|
|
9171
|
-
const [modalHeight, setModalHeight] =
|
|
9172
|
-
const [modalsLogic, setModalsLogic] =
|
|
9199
|
+
const [modalHeight, setModalHeight] = useState22(0);
|
|
9200
|
+
const [modalsLogic, setModalsLogic] = useState22({
|
|
9173
9201
|
IS_HEADER_HIDDEN: false,
|
|
9174
9202
|
IS_HEADER_STICKY: false,
|
|
9175
9203
|
IS_FOOTER_HIDDEN: false,
|
|
9176
9204
|
IS_FOOTER_STICKY: withFixedFooter
|
|
9177
9205
|
});
|
|
9178
|
-
const [modalsLogicProps, setModalsLogicProps] =
|
|
9206
|
+
const [modalsLogicProps, setModalsLogicProps] = useState22({
|
|
9179
9207
|
headerHeight: 0,
|
|
9180
9208
|
footerHeight: 0
|
|
9181
9209
|
});
|
|
9182
|
-
const [scrollDirection, setScrollDirection] =
|
|
9183
|
-
const [scrollTopPrev, setScrollTopPrev] =
|
|
9184
|
-
const [scrollTop, setScrollTop] =
|
|
9185
|
-
const [scrollHeight, setScrollHeight] =
|
|
9186
|
-
const [, setContainerScrollHeight] =
|
|
9210
|
+
const [scrollDirection, setScrollDirection] = useState22(SCROLL_DIRECTION.UP);
|
|
9211
|
+
const [scrollTopPrev, setScrollTopPrev] = useState22(0);
|
|
9212
|
+
const [scrollTop, setScrollTop] = useState22(0);
|
|
9213
|
+
const [scrollHeight, setScrollHeight] = useState22(1);
|
|
9214
|
+
const [, setContainerScrollHeight] = useState22(1);
|
|
9187
9215
|
useLayoutEffect5(() => {
|
|
9188
9216
|
const el = modalMobileContainerRef?.current;
|
|
9189
9217
|
if (el) {
|
|
@@ -9279,7 +9307,7 @@ function useMobileModal({
|
|
|
9279
9307
|
const renderModal = useCallback5(
|
|
9280
9308
|
(modal) => {
|
|
9281
9309
|
if (!isMobile || !withMobileLogic) return modal;
|
|
9282
|
-
return /* @__PURE__ */
|
|
9310
|
+
return /* @__PURE__ */ jsx28("div", { className: "modal-mobile-container", ref: modalMobileContainerRef, children: modal });
|
|
9283
9311
|
},
|
|
9284
9312
|
[isMobile, withMobileLogic]
|
|
9285
9313
|
);
|
|
@@ -9442,7 +9470,7 @@ function Modal({
|
|
|
9442
9470
|
};
|
|
9443
9471
|
}, []);
|
|
9444
9472
|
if (!isOpen) return null;
|
|
9445
|
-
return /* @__PURE__ */
|
|
9473
|
+
return /* @__PURE__ */ jsx29(
|
|
9446
9474
|
"div",
|
|
9447
9475
|
{
|
|
9448
9476
|
id: `${id}`,
|
|
@@ -9454,7 +9482,7 @@ function Modal({
|
|
|
9454
9482
|
"aria-labelledby": `${testId}-title`,
|
|
9455
9483
|
children: renderModal(
|
|
9456
9484
|
/* @__PURE__ */ jsxs24(Fragment6, { children: [
|
|
9457
|
-
/* @__PURE__ */
|
|
9485
|
+
/* @__PURE__ */ jsx29(
|
|
9458
9486
|
"div",
|
|
9459
9487
|
{
|
|
9460
9488
|
"data-testid": `${testId}-overlay`,
|
|
@@ -9475,7 +9503,7 @@ function Modal({
|
|
|
9475
9503
|
"hidden": !isOpen
|
|
9476
9504
|
}),
|
|
9477
9505
|
children: [
|
|
9478
|
-
customHeader || !noHeader && /* @__PURE__ */
|
|
9506
|
+
customHeader || !noHeader && /* @__PURE__ */ jsx29(
|
|
9479
9507
|
ModalTitle_default,
|
|
9480
9508
|
{
|
|
9481
9509
|
wrapperRef: modalMobileHeaderRef,
|
|
@@ -9487,10 +9515,10 @@ function Modal({
|
|
|
9487
9515
|
isForced: forced,
|
|
9488
9516
|
onClose: handle.close,
|
|
9489
9517
|
noHeaderCloseBtn,
|
|
9490
|
-
children: /* @__PURE__ */
|
|
9518
|
+
children: /* @__PURE__ */ jsx29("span", { id: `${testId}-title`, children: renderModalTitle({ mode, title, onlyTitle }) })
|
|
9491
9519
|
}
|
|
9492
9520
|
),
|
|
9493
|
-
/* @__PURE__ */
|
|
9521
|
+
/* @__PURE__ */ jsx29(
|
|
9494
9522
|
"div",
|
|
9495
9523
|
{
|
|
9496
9524
|
...atributesForModalBody,
|
|
@@ -9502,7 +9530,7 @@ function Modal({
|
|
|
9502
9530
|
children
|
|
9503
9531
|
}
|
|
9504
9532
|
),
|
|
9505
|
-
(!noFooter || customFooter) && /* @__PURE__ */
|
|
9533
|
+
(!noFooter || customFooter) && /* @__PURE__ */ jsx29(
|
|
9506
9534
|
ModalFooter_default,
|
|
9507
9535
|
{
|
|
9508
9536
|
wrapperRef: modalMobileFooterRef,
|
|
@@ -9514,7 +9542,7 @@ function Modal({
|
|
|
9514
9542
|
children: customFooter || /* @__PURE__ */ jsxs24(Fragment6, { children: [
|
|
9515
9543
|
leftContentOfFooter,
|
|
9516
9544
|
(!noCloseBtn || !noConfirmBtn) && /* @__PURE__ */ jsxs24("div", { className: "modal__buttons-block", children: [
|
|
9517
|
-
!noCloseBtn && /* @__PURE__ */
|
|
9545
|
+
!noCloseBtn && /* @__PURE__ */ jsx29(
|
|
9518
9546
|
Button_default,
|
|
9519
9547
|
{
|
|
9520
9548
|
testId: "modal",
|
|
@@ -9529,7 +9557,7 @@ function Modal({
|
|
|
9529
9557
|
"aria-label": "Close modal"
|
|
9530
9558
|
}
|
|
9531
9559
|
),
|
|
9532
|
-
!noConfirmBtn && /* @__PURE__ */
|
|
9560
|
+
!noConfirmBtn && /* @__PURE__ */ jsx29(
|
|
9533
9561
|
Button_default,
|
|
9534
9562
|
{
|
|
9535
9563
|
testId: "modal",
|
|
@@ -9559,7 +9587,7 @@ Modal.displayName = "Modal";
|
|
|
9559
9587
|
var Modal_default = Modal;
|
|
9560
9588
|
|
|
9561
9589
|
// src/Atomic/UI/Modal/ModalHOC.tsx
|
|
9562
|
-
import { jsx as
|
|
9590
|
+
import { jsx as jsx30, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
9563
9591
|
import cn26 from "classnames";
|
|
9564
9592
|
import { useEffect as useEffect21, useLayoutEffect as useLayoutEffect7, useMemo as useMemo8, useRef as useRef15 } from "react";
|
|
9565
9593
|
var ModalHOC = ({
|
|
@@ -9604,8 +9632,8 @@ var ModalHOC = ({
|
|
|
9604
9632
|
}, []);
|
|
9605
9633
|
if (!isOpen) return null;
|
|
9606
9634
|
return /* @__PURE__ */ jsxs25("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
|
|
9607
|
-
/* @__PURE__ */
|
|
9608
|
-
/* @__PURE__ */
|
|
9635
|
+
/* @__PURE__ */ jsx30("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
|
|
9636
|
+
/* @__PURE__ */ jsx30(
|
|
9609
9637
|
"div",
|
|
9610
9638
|
{
|
|
9611
9639
|
ref: modalRef,
|
|
@@ -9629,9 +9657,9 @@ var Modal_default2 = Modal_default;
|
|
|
9629
9657
|
var MonoAccordion_default2 = MonoAccordion_default;
|
|
9630
9658
|
|
|
9631
9659
|
// src/Atomic/UI/NavLine/NavLine.tsx
|
|
9632
|
-
import { jsx as
|
|
9660
|
+
import { jsx as jsx31, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
9633
9661
|
import cn27 from "classnames";
|
|
9634
|
-
import { createRef, useCallback as useCallback6, useEffect as useEffect22, useRef as useRef16, useState as
|
|
9662
|
+
import { createRef, useCallback as useCallback6, useEffect as useEffect22, useRef as useRef16, useState as useState23 } from "react";
|
|
9635
9663
|
import * as Icons3 from "react-feather";
|
|
9636
9664
|
var CN4 = "nav-line";
|
|
9637
9665
|
function checkedRef2(ref) {
|
|
@@ -9653,13 +9681,13 @@ var NavLine = ({
|
|
|
9653
9681
|
scrollMode = false,
|
|
9654
9682
|
testId = CN4
|
|
9655
9683
|
}) => {
|
|
9656
|
-
const [navLineItems, setNavLineItems] =
|
|
9684
|
+
const [navLineItems, setNavLineItems] = useState23([]);
|
|
9657
9685
|
const wrapperRef = useRef16(null);
|
|
9658
9686
|
const wrapperInnerRef = useRef16(null);
|
|
9659
|
-
const [showScrollButtons, setShowScrollButtons] =
|
|
9660
|
-
const [canScrollLeft, setCanScrollLeft] =
|
|
9661
|
-
const [canScrollRight, setCanScrollRight] =
|
|
9662
|
-
const [isScrollBlocked, setIsScrollBlocked] =
|
|
9687
|
+
const [showScrollButtons, setShowScrollButtons] = useState23(false);
|
|
9688
|
+
const [canScrollLeft, setCanScrollLeft] = useState23(false);
|
|
9689
|
+
const [canScrollRight, setCanScrollRight] = useState23(false);
|
|
9690
|
+
const [isScrollBlocked, setIsScrollBlocked] = useState23(false);
|
|
9663
9691
|
const checkScroll = useCallback6(() => {
|
|
9664
9692
|
const inner = wrapperInnerRef.current;
|
|
9665
9693
|
if (!inner) return;
|
|
@@ -9775,8 +9803,8 @@ var NavLine = ({
|
|
|
9775
9803
|
"tabIndex": isDisabled ? -1 : 0
|
|
9776
9804
|
};
|
|
9777
9805
|
const content = /* @__PURE__ */ jsxs26("div", { className: "nav-line__content", children: [
|
|
9778
|
-
Icon && /* @__PURE__ */
|
|
9779
|
-
/* @__PURE__ */
|
|
9806
|
+
Icon && /* @__PURE__ */ jsx31("div", { className: "nav-line__item--icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx31(Icon, {}) }),
|
|
9807
|
+
/* @__PURE__ */ jsx31("span", { className: cn27({ "nav-line__item--label": variant !== "simple" }), children: item.label }),
|
|
9780
9808
|
item.count !== void 0 && /* @__PURE__ */ jsxs26("span", { className: "nav-line-count", "aria-label": `${item.count} items`, children: [
|
|
9781
9809
|
"(",
|
|
9782
9810
|
item.count,
|
|
@@ -9784,7 +9812,7 @@ var NavLine = ({
|
|
|
9784
9812
|
] })
|
|
9785
9813
|
] });
|
|
9786
9814
|
if (isLocal) {
|
|
9787
|
-
return /* @__PURE__ */
|
|
9815
|
+
return /* @__PURE__ */ jsx31(
|
|
9788
9816
|
"span",
|
|
9789
9817
|
{
|
|
9790
9818
|
...commonProps,
|
|
@@ -9801,7 +9829,7 @@ var NavLine = ({
|
|
|
9801
9829
|
`tab__${item.tabId}`
|
|
9802
9830
|
);
|
|
9803
9831
|
}
|
|
9804
|
-
return /* @__PURE__ */
|
|
9832
|
+
return /* @__PURE__ */ jsx31(
|
|
9805
9833
|
NavLink,
|
|
9806
9834
|
{
|
|
9807
9835
|
...commonProps,
|
|
@@ -9816,7 +9844,7 @@ var NavLine = ({
|
|
|
9816
9844
|
`tab__${item.tabId}`
|
|
9817
9845
|
);
|
|
9818
9846
|
};
|
|
9819
|
-
return /* @__PURE__ */
|
|
9847
|
+
return /* @__PURE__ */ jsx31("div", { className: "nav-line-wrapper", children: /* @__PURE__ */ jsxs26(
|
|
9820
9848
|
"div",
|
|
9821
9849
|
{
|
|
9822
9850
|
"data-testid": testId,
|
|
@@ -9828,7 +9856,7 @@ var NavLine = ({
|
|
|
9828
9856
|
),
|
|
9829
9857
|
ref: wrapperRef,
|
|
9830
9858
|
children: [
|
|
9831
|
-
scrollMode && showScrollButtons && /* @__PURE__ */
|
|
9859
|
+
scrollMode && showScrollButtons && /* @__PURE__ */ jsx31(
|
|
9832
9860
|
"button",
|
|
9833
9861
|
{
|
|
9834
9862
|
type: "button",
|
|
@@ -9837,10 +9865,10 @@ var NavLine = ({
|
|
|
9837
9865
|
onClick: () => scroll("left"),
|
|
9838
9866
|
"aria-label": "Scroll previous",
|
|
9839
9867
|
disabled: !canScrollLeft,
|
|
9840
|
-
children: /* @__PURE__ */
|
|
9868
|
+
children: /* @__PURE__ */ jsx31(Icons3.ChevronLeft, {})
|
|
9841
9869
|
}
|
|
9842
9870
|
),
|
|
9843
|
-
/* @__PURE__ */
|
|
9871
|
+
/* @__PURE__ */ jsx31(
|
|
9844
9872
|
"div",
|
|
9845
9873
|
{
|
|
9846
9874
|
ref: wrapperInnerRef,
|
|
@@ -9850,7 +9878,7 @@ var NavLine = ({
|
|
|
9850
9878
|
children: navLineItems.map(renderNavItem)
|
|
9851
9879
|
}
|
|
9852
9880
|
),
|
|
9853
|
-
scrollMode && showScrollButtons && /* @__PURE__ */
|
|
9881
|
+
scrollMode && showScrollButtons && /* @__PURE__ */ jsx31(
|
|
9854
9882
|
"button",
|
|
9855
9883
|
{
|
|
9856
9884
|
type: "button",
|
|
@@ -9859,10 +9887,10 @@ var NavLine = ({
|
|
|
9859
9887
|
onClick: () => scroll("right"),
|
|
9860
9888
|
"aria-label": "Scroll next",
|
|
9861
9889
|
disabled: !canScrollRight,
|
|
9862
|
-
children: /* @__PURE__ */
|
|
9890
|
+
children: /* @__PURE__ */ jsx31(Icons3.ChevronRight, {})
|
|
9863
9891
|
}
|
|
9864
9892
|
),
|
|
9865
|
-
children && /* @__PURE__ */
|
|
9893
|
+
children && /* @__PURE__ */ jsx31("div", { className: "nav-line__body", role: "tabpanel", children })
|
|
9866
9894
|
]
|
|
9867
9895
|
}
|
|
9868
9896
|
) });
|
|
@@ -9873,18 +9901,18 @@ var NavLine_default = NavLine;
|
|
|
9873
9901
|
var NavLine_default2 = NavLine_default;
|
|
9874
9902
|
|
|
9875
9903
|
// src/Atomic/UI/PageTitle/PageTitle.tsx
|
|
9876
|
-
import { jsx as
|
|
9904
|
+
import { jsx as jsx32, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
9877
9905
|
import cn28 from "classnames";
|
|
9878
9906
|
import { Home } from "react-feather";
|
|
9879
9907
|
var RC7 = "page-title";
|
|
9880
9908
|
var PageTitle = ({ title, pages, children, testId = RC7 }) => /* @__PURE__ */ jsxs27("div", { "data-testid": testId, className: RC7, role: "region", "aria-label": title, children: [
|
|
9881
9909
|
/* @__PURE__ */ jsxs27("div", { className: `${RC7}__wrap`, children: [
|
|
9882
|
-
/* @__PURE__ */
|
|
9883
|
-
pages.length > 0 && /* @__PURE__ */
|
|
9884
|
-
/* @__PURE__ */
|
|
9910
|
+
/* @__PURE__ */ jsx32("h1", { className: `${RC7}__title`, children: title }),
|
|
9911
|
+
pages.length > 0 && /* @__PURE__ */ jsx32("nav", { className: `${RC7}__pages`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxs27("ol", { className: `${RC7}__list`, children: [
|
|
9912
|
+
/* @__PURE__ */ jsx32("li", { children: /* @__PURE__ */ jsx32("a", { className: `${RC7}__link`, href: "/", "aria-label": "Home page", children: /* @__PURE__ */ jsx32(Home, { "aria-hidden": "true" }) }) }),
|
|
9885
9913
|
pages.map(({ name, path }, index) => /* @__PURE__ */ jsxs27("li", { children: [
|
|
9886
|
-
/* @__PURE__ */
|
|
9887
|
-
pages.length - 1 === index ? /* @__PURE__ */
|
|
9914
|
+
/* @__PURE__ */ jsx32("span", { className: `${RC7}__delimiter`, "aria-hidden": "true", children: "/" }),
|
|
9915
|
+
pages.length - 1 === index ? /* @__PURE__ */ jsx32("span", { className: cn28(`${RC7}__link`, `${RC7}__link_last`), "aria-current": "page", children: name }) : /* @__PURE__ */ jsx32("a", { className: `${RC7}__link`, href: path, children: name })
|
|
9888
9916
|
] }, path))
|
|
9889
9917
|
] }) })
|
|
9890
9918
|
] }),
|
|
@@ -9896,7 +9924,7 @@ var PageTitle_default = PageTitle;
|
|
|
9896
9924
|
var PageTitle_default2 = PageTitle_default;
|
|
9897
9925
|
|
|
9898
9926
|
// src/Atomic/UI/PieChart/PieChart.js
|
|
9899
|
-
import { jsx as
|
|
9927
|
+
import { jsx as jsx33, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
9900
9928
|
import React28 from "react";
|
|
9901
9929
|
import { ArcElement, Chart as ChartJS2, Tooltip as Tooltip2 } from "chart.js";
|
|
9902
9930
|
import { Pie } from "react-chartjs-2";
|
|
@@ -9917,21 +9945,21 @@ var PieChart = ({
|
|
|
9917
9945
|
}
|
|
9918
9946
|
};
|
|
9919
9947
|
return /* @__PURE__ */ jsxs28("div", { className: "pie-chart-box", style: { maxWidth: `320px` }, children: [
|
|
9920
|
-
/* @__PURE__ */
|
|
9948
|
+
/* @__PURE__ */ jsx33(Pie, { data, options }),
|
|
9921
9949
|
Boolean(resultLabel) && /* @__PURE__ */ jsxs28("div", { className: "pie-chart__result", children: [
|
|
9922
9950
|
/* @__PURE__ */ jsxs28("div", { className: "pie-chart__result-value", children: [
|
|
9923
9951
|
resultValue,
|
|
9924
|
-
/* @__PURE__ */
|
|
9952
|
+
/* @__PURE__ */ jsx33("span", { className: "pie-chart__result-percent", children: "%" }),
|
|
9925
9953
|
" "
|
|
9926
9954
|
] }),
|
|
9927
|
-
/* @__PURE__ */
|
|
9955
|
+
/* @__PURE__ */ jsx33("div", { className: "pie-chart__result-label", children: resultLabel })
|
|
9928
9956
|
] })
|
|
9929
9957
|
] });
|
|
9930
9958
|
};
|
|
9931
9959
|
var PieChart_default = PieChart;
|
|
9932
9960
|
|
|
9933
9961
|
// src/Atomic/UI/Price/Price.tsx
|
|
9934
|
-
import { jsx as
|
|
9962
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
9935
9963
|
|
|
9936
9964
|
// src/Functions/fieldValueFormatters.js
|
|
9937
9965
|
var getSafelyValue = (value) => value !== void 0 && value !== null ? value?.toString?.() || "" : "";
|
|
@@ -10189,7 +10217,7 @@ import cn29 from "classnames";
|
|
|
10189
10217
|
var CN5 = "price";
|
|
10190
10218
|
var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN5 }) => {
|
|
10191
10219
|
if (value === void 0 || value === null) return null;
|
|
10192
|
-
return /* @__PURE__ */
|
|
10220
|
+
return /* @__PURE__ */ jsx34(
|
|
10193
10221
|
"div",
|
|
10194
10222
|
{
|
|
10195
10223
|
"data-testid": testId,
|
|
@@ -10206,11 +10234,11 @@ var Price_default = Price;
|
|
|
10206
10234
|
var Price_default2 = Price_default;
|
|
10207
10235
|
|
|
10208
10236
|
// src/Atomic/UI/PriceRange/PriceRange.tsx
|
|
10209
|
-
import { jsx as
|
|
10237
|
+
import { jsx as jsx35, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
10210
10238
|
import cn30 from "classnames";
|
|
10211
10239
|
var CN6 = "price-range";
|
|
10212
10240
|
var PriceRange = ({ from, to, mode, testId = CN6 }) => {
|
|
10213
|
-
return /* @__PURE__ */
|
|
10241
|
+
return /* @__PURE__ */ jsx35("div", { "data-testid": testId, className: cn30(CN6, "j4"), role: "region", "aria-label": "Price range", children: mode === "simple" ? /* @__PURE__ */ jsxs29("span", { "aria-live": "polite", children: [
|
|
10214
10242
|
from,
|
|
10215
10243
|
" - ",
|
|
10216
10244
|
to
|
|
@@ -10226,7 +10254,7 @@ var PriceRange_default = PriceRange;
|
|
|
10226
10254
|
var PriceRange_default2 = PriceRange_default;
|
|
10227
10255
|
|
|
10228
10256
|
// src/Atomic/UI/ProgressLine/ProgressLine.tsx
|
|
10229
|
-
import { jsx as
|
|
10257
|
+
import { jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
10230
10258
|
import cn31 from "classnames";
|
|
10231
10259
|
var CN7 = "progress-line";
|
|
10232
10260
|
var ProgressLine = ({
|
|
@@ -10255,21 +10283,21 @@ var ProgressLine = ({
|
|
|
10255
10283
|
};
|
|
10256
10284
|
const renderLabel = () => {
|
|
10257
10285
|
if (!label) return null;
|
|
10258
|
-
return /* @__PURE__ */
|
|
10286
|
+
return /* @__PURE__ */ jsx36("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
|
|
10259
10287
|
};
|
|
10260
10288
|
const renderProgressValue = () => {
|
|
10261
10289
|
if (!renderValue) return null;
|
|
10262
|
-
return /* @__PURE__ */
|
|
10290
|
+
return /* @__PURE__ */ jsx36("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
|
|
10263
10291
|
};
|
|
10264
10292
|
const renderExtremums = () => {
|
|
10265
10293
|
if (!showExtremums) return null;
|
|
10266
10294
|
return /* @__PURE__ */ jsxs30("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
|
|
10267
|
-
/* @__PURE__ */
|
|
10268
|
-
/* @__PURE__ */
|
|
10295
|
+
/* @__PURE__ */ jsx36("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
|
|
10296
|
+
/* @__PURE__ */ jsx36("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
|
|
10269
10297
|
] });
|
|
10270
10298
|
};
|
|
10271
10299
|
const renderFilledLine = () => {
|
|
10272
|
-
return /* @__PURE__ */
|
|
10300
|
+
return /* @__PURE__ */ jsx36(
|
|
10273
10301
|
"div",
|
|
10274
10302
|
{
|
|
10275
10303
|
className: "progress-line__wrapper__line--filled",
|
|
@@ -10308,10 +10336,10 @@ var ProgressLine_default = ProgressLine;
|
|
|
10308
10336
|
var ProgressLine_default2 = ProgressLine_default;
|
|
10309
10337
|
|
|
10310
10338
|
// src/Atomic/UI/Table/Table.js
|
|
10311
|
-
import { jsx as
|
|
10339
|
+
import { jsx as jsx45, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10312
10340
|
|
|
10313
10341
|
// src/Atomic/UI/Table/Partials/TdHeader.js
|
|
10314
|
-
import { jsx as
|
|
10342
|
+
import { jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
10315
10343
|
|
|
10316
10344
|
// src/Langs.js
|
|
10317
10345
|
var Langs = {
|
|
@@ -10488,42 +10516,42 @@ var TdHeader = ({ item, testId = "td-header" }) => {
|
|
|
10488
10516
|
const txt = Langs_default[global.lng];
|
|
10489
10517
|
switch (item.type) {
|
|
10490
10518
|
case "double":
|
|
10491
|
-
return /* @__PURE__ */
|
|
10492
|
-
/* @__PURE__ */
|
|
10493
|
-
/* @__PURE__ */
|
|
10519
|
+
return /* @__PURE__ */ jsx37("th", { "data-testid": testId, children: /* @__PURE__ */ jsxs31("div", { className: "j46", children: [
|
|
10520
|
+
/* @__PURE__ */ jsx37("div", { className: "", children: txt.labels[item.left] || item.left }),
|
|
10521
|
+
/* @__PURE__ */ jsx37("div", { className: "", children: txt.labels[item.right] || item.right })
|
|
10494
10522
|
] }) });
|
|
10495
10523
|
default:
|
|
10496
|
-
return /* @__PURE__ */
|
|
10497
|
-
/* @__PURE__ */
|
|
10498
|
-
item.button && /* @__PURE__ */
|
|
10524
|
+
return /* @__PURE__ */ jsx37("th", { "data-testid": testId, className: cn32(item.className), children: /* @__PURE__ */ jsxs31("div", { className: cn32({ df: item.button }), children: [
|
|
10525
|
+
/* @__PURE__ */ jsx37("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
|
|
10526
|
+
item.button && /* @__PURE__ */ jsx37("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
|
|
10499
10527
|
] }) });
|
|
10500
10528
|
}
|
|
10501
10529
|
};
|
|
10502
10530
|
var TdHeader_default = TdHeader;
|
|
10503
10531
|
|
|
10504
10532
|
// src/Atomic/UI/Table/Partials/TdRow.js
|
|
10505
|
-
import { Fragment as Fragment8, jsx as
|
|
10533
|
+
import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
10506
10534
|
|
|
10507
10535
|
// src/Atomic/UI/Table/TdTypes/TdRange.js
|
|
10508
|
-
import { jsx as
|
|
10536
|
+
import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10509
10537
|
var TdRange = ({ item }) => {
|
|
10510
10538
|
if (!item) return false;
|
|
10511
10539
|
return /* @__PURE__ */ jsxs32("div", { children: [
|
|
10512
|
-
/* @__PURE__ */
|
|
10513
|
-
/* @__PURE__ */
|
|
10514
|
-
/* @__PURE__ */
|
|
10540
|
+
/* @__PURE__ */ jsx38("span", { children: item.from }),
|
|
10541
|
+
/* @__PURE__ */ jsx38("span", { children: " - " }),
|
|
10542
|
+
/* @__PURE__ */ jsx38("span", { children: item.to })
|
|
10515
10543
|
] });
|
|
10516
10544
|
};
|
|
10517
10545
|
var TdRange_default = TdRange;
|
|
10518
10546
|
|
|
10519
10547
|
// src/Atomic/UI/Table/Partials/TdCell.js
|
|
10520
|
-
import { jsx as
|
|
10548
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
10521
10549
|
|
|
10522
10550
|
// src/Atomic/UI/Table/TdTypes/TdActions.js
|
|
10523
|
-
import { jsx as
|
|
10551
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
10524
10552
|
|
|
10525
10553
|
// src/Atomic/FormElements/Switcher/Switcher.tsx
|
|
10526
|
-
import { jsx as
|
|
10554
|
+
import { jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
10527
10555
|
import cn33 from "classnames";
|
|
10528
10556
|
var RC8 = "switcher";
|
|
10529
10557
|
var Switcher = ({
|
|
@@ -10552,16 +10580,16 @@ var Switcher = ({
|
|
|
10552
10580
|
disabled,
|
|
10553
10581
|
onClick: (e) => onChange(!isActive, e),
|
|
10554
10582
|
children: [
|
|
10555
|
-
/* @__PURE__ */
|
|
10583
|
+
/* @__PURE__ */ jsx39(
|
|
10556
10584
|
"div",
|
|
10557
10585
|
{
|
|
10558
10586
|
className: cn33(`${RC8}__button-content`, {
|
|
10559
10587
|
[`${RC8}__button-content_active`]: isActive
|
|
10560
10588
|
}),
|
|
10561
|
-
children: /* @__PURE__ */
|
|
10589
|
+
children: /* @__PURE__ */ jsx39("div", { className: `${RC8}__ball` })
|
|
10562
10590
|
}
|
|
10563
10591
|
),
|
|
10564
|
-
label && /* @__PURE__ */
|
|
10592
|
+
label && /* @__PURE__ */ jsx39(
|
|
10565
10593
|
"span",
|
|
10566
10594
|
{
|
|
10567
10595
|
className: cn33(`${RC8}__label`, {
|
|
@@ -10573,7 +10601,7 @@ var Switcher = ({
|
|
|
10573
10601
|
]
|
|
10574
10602
|
}
|
|
10575
10603
|
),
|
|
10576
|
-
hint && /* @__PURE__ */
|
|
10604
|
+
hint && /* @__PURE__ */ jsx39(Hint_default, { className: `${RC8}__hint`, hint, side: hintSide })
|
|
10577
10605
|
]
|
|
10578
10606
|
}
|
|
10579
10607
|
);
|
|
@@ -10581,62 +10609,62 @@ var Switcher = ({
|
|
|
10581
10609
|
var Switcher_default = Switcher;
|
|
10582
10610
|
|
|
10583
10611
|
// src/Atomic/UI/Table/TdTypes/TdActions.js
|
|
10584
|
-
import React34, { useState as
|
|
10612
|
+
import React34, { useState as useState24 } from "react";
|
|
10585
10613
|
import * as Icons4 from "react-feather";
|
|
10586
10614
|
var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
|
|
10587
10615
|
if (!actions) return false;
|
|
10588
|
-
const [state, setState] =
|
|
10616
|
+
const [state, setState] = useState24(actions);
|
|
10589
10617
|
const handleArrayChange = (value, index, prop) => {
|
|
10590
10618
|
state[index][prop] = value;
|
|
10591
10619
|
setState([...state]);
|
|
10592
10620
|
onChange(state);
|
|
10593
10621
|
};
|
|
10594
|
-
return /* @__PURE__ */
|
|
10622
|
+
return /* @__PURE__ */ jsx40("div", { className: "j6", children: actions?.map((action, index) => {
|
|
10595
10623
|
switch (action.type) {
|
|
10596
10624
|
case "download":
|
|
10597
|
-
return /* @__PURE__ */
|
|
10625
|
+
return /* @__PURE__ */ jsx40(
|
|
10598
10626
|
"div",
|
|
10599
10627
|
{
|
|
10600
10628
|
className: "td-actions--item td-actions--download",
|
|
10601
10629
|
onClick: () => {
|
|
10602
10630
|
},
|
|
10603
|
-
children: /* @__PURE__ */
|
|
10631
|
+
children: /* @__PURE__ */ jsx40(Icons4.Download, {})
|
|
10604
10632
|
},
|
|
10605
10633
|
index
|
|
10606
10634
|
);
|
|
10607
10635
|
case "edit":
|
|
10608
|
-
return /* @__PURE__ */
|
|
10636
|
+
return /* @__PURE__ */ jsx40(
|
|
10609
10637
|
"div",
|
|
10610
10638
|
{
|
|
10611
10639
|
className: "td-actions--item td-actions--edit",
|
|
10612
10640
|
onClick: () => {
|
|
10613
10641
|
},
|
|
10614
|
-
children: /* @__PURE__ */
|
|
10642
|
+
children: /* @__PURE__ */ jsx40(Icons4.Edit3, {})
|
|
10615
10643
|
},
|
|
10616
10644
|
index
|
|
10617
10645
|
);
|
|
10618
10646
|
case "delete":
|
|
10619
|
-
return /* @__PURE__ */
|
|
10647
|
+
return /* @__PURE__ */ jsx40(
|
|
10620
10648
|
"div",
|
|
10621
10649
|
{
|
|
10622
10650
|
className: "td-actions--item td-actions--delete",
|
|
10623
10651
|
onClick: () => onActionClick("delete", rowItem),
|
|
10624
|
-
children: /* @__PURE__ */
|
|
10652
|
+
children: /* @__PURE__ */ jsx40(Icons4.Trash2, {})
|
|
10625
10653
|
},
|
|
10626
10654
|
index
|
|
10627
10655
|
);
|
|
10628
10656
|
case "undo":
|
|
10629
|
-
return /* @__PURE__ */
|
|
10657
|
+
return /* @__PURE__ */ jsx40(
|
|
10630
10658
|
"div",
|
|
10631
10659
|
{
|
|
10632
10660
|
className: "td-actions--item td-actions--undo",
|
|
10633
10661
|
onClick: () => onActionClick("undo", rowItem),
|
|
10634
|
-
children: /* @__PURE__ */
|
|
10662
|
+
children: /* @__PURE__ */ jsx40(Icons4.RotateCcw, {})
|
|
10635
10663
|
},
|
|
10636
10664
|
index
|
|
10637
10665
|
);
|
|
10638
10666
|
case "switcher":
|
|
10639
|
-
return /* @__PURE__ */
|
|
10667
|
+
return /* @__PURE__ */ jsx40("div", { className: "df", children: /* @__PURE__ */ jsx40(
|
|
10640
10668
|
Switcher_default,
|
|
10641
10669
|
{
|
|
10642
10670
|
label: action.label || null,
|
|
@@ -10651,15 +10679,15 @@ var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
|
|
|
10651
10679
|
};
|
|
10652
10680
|
|
|
10653
10681
|
// src/Atomic/UI/Table/TdTypes/TdPriority.js
|
|
10654
|
-
import { jsx as
|
|
10682
|
+
import { jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
10655
10683
|
import React35 from "react";
|
|
10656
10684
|
import cn34 from "classnames";
|
|
10657
10685
|
import { ArrowDown as ArrowDown2, ArrowUp as ArrowUp2 } from "react-feather";
|
|
10658
10686
|
var TdPriority = ({ onClick, rowIndex, cardLength }) => {
|
|
10659
10687
|
return /* @__PURE__ */ jsxs34("div", { className: "cards-table__priority", children: [
|
|
10660
|
-
/* @__PURE__ */
|
|
10688
|
+
/* @__PURE__ */ jsx41("span", { className: "mr5", children: rowIndex + 1 }),
|
|
10661
10689
|
/* @__PURE__ */ jsxs34("div", { className: "df", children: [
|
|
10662
|
-
/* @__PURE__ */
|
|
10690
|
+
/* @__PURE__ */ jsx41(
|
|
10663
10691
|
ArrowDown2,
|
|
10664
10692
|
{
|
|
10665
10693
|
onClick: () => onClick(rowIndex),
|
|
@@ -10668,7 +10696,7 @@ var TdPriority = ({ onClick, rowIndex, cardLength }) => {
|
|
|
10668
10696
|
})
|
|
10669
10697
|
}
|
|
10670
10698
|
),
|
|
10671
|
-
/* @__PURE__ */
|
|
10699
|
+
/* @__PURE__ */ jsx41(
|
|
10672
10700
|
ArrowUp2,
|
|
10673
10701
|
{
|
|
10674
10702
|
onClick: () => onClick(rowIndex, true),
|
|
@@ -10681,11 +10709,11 @@ var TdPriority = ({ onClick, rowIndex, cardLength }) => {
|
|
|
10681
10709
|
var TdPriority_default = TdPriority;
|
|
10682
10710
|
|
|
10683
10711
|
// src/Atomic/UI/Table/TdTypes/TdWeight.js
|
|
10684
|
-
import { Fragment as Fragment7, jsx as
|
|
10685
|
-
import { useEffect as useEffect23, useState as
|
|
10712
|
+
import { Fragment as Fragment7, jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10713
|
+
import { useEffect as useEffect23, useState as useState25 } from "react";
|
|
10686
10714
|
import cn35 from "classnames";
|
|
10687
10715
|
var TdWeight = ({ value, percent, onChange, className }) => {
|
|
10688
|
-
const [state, setState] =
|
|
10716
|
+
const [state, setState] = useState25(value);
|
|
10689
10717
|
const {
|
|
10690
10718
|
isToggled: isEdited,
|
|
10691
10719
|
toggleOff: unsetIsEdited,
|
|
@@ -10701,7 +10729,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
|
|
|
10701
10729
|
unsetIsEdited();
|
|
10702
10730
|
}
|
|
10703
10731
|
};
|
|
10704
|
-
return /* @__PURE__ */
|
|
10732
|
+
return /* @__PURE__ */ jsx42(Fragment7, { children: isEdited ? /* @__PURE__ */ jsx42(
|
|
10705
10733
|
Input,
|
|
10706
10734
|
{
|
|
10707
10735
|
value: state,
|
|
@@ -10711,7 +10739,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
|
|
|
10711
10739
|
autoFocus: true
|
|
10712
10740
|
}
|
|
10713
10741
|
) : /* @__PURE__ */ jsxs35("div", { className: cn35("td-weight", className), onClick: setIsEdited, children: [
|
|
10714
|
-
/* @__PURE__ */
|
|
10742
|
+
/* @__PURE__ */ jsx42("span", { children: value }),
|
|
10715
10743
|
/* @__PURE__ */ jsxs35("span", { className: "ml2 color--grey-gull", children: [
|
|
10716
10744
|
"(",
|
|
10717
10745
|
percent,
|
|
@@ -10722,7 +10750,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
|
|
|
10722
10750
|
var TdWeight_default = TdWeight;
|
|
10723
10751
|
|
|
10724
10752
|
// src/Atomic/UI/Table/Partials/TdCell.js
|
|
10725
|
-
import React36, { useState as
|
|
10753
|
+
import React36, { useState as useState26 } from "react";
|
|
10726
10754
|
var TdCell = ({
|
|
10727
10755
|
type,
|
|
10728
10756
|
item,
|
|
@@ -10735,22 +10763,22 @@ var TdCell = ({
|
|
|
10735
10763
|
rowItem,
|
|
10736
10764
|
isDeleted
|
|
10737
10765
|
}) => {
|
|
10738
|
-
const [isAccordionOpen, setIsAccordionOpen] =
|
|
10766
|
+
const [isAccordionOpen, setIsAccordionOpen] = useState26(item.isOpen);
|
|
10739
10767
|
const percent = item.type === "weight" && getAdviceWeight(isDeleted ? 0 : item.value);
|
|
10740
10768
|
switch (type) {
|
|
10741
10769
|
case "accordion":
|
|
10742
|
-
return /* @__PURE__ */
|
|
10770
|
+
return /* @__PURE__ */ jsx43(
|
|
10743
10771
|
AccordionItem_default,
|
|
10744
10772
|
{
|
|
10745
10773
|
className: item.itemClassName,
|
|
10746
10774
|
item,
|
|
10747
10775
|
isOpen: isAccordionOpen,
|
|
10748
10776
|
onClick: (e) => setIsAccordionOpen(e),
|
|
10749
|
-
children: /* @__PURE__ */
|
|
10777
|
+
children: /* @__PURE__ */ jsx43(Table_default, { rows: item.rows, className: "accordion--table" })
|
|
10750
10778
|
}
|
|
10751
10779
|
);
|
|
10752
10780
|
case "actions":
|
|
10753
|
-
return /* @__PURE__ */
|
|
10781
|
+
return /* @__PURE__ */ jsx43(
|
|
10754
10782
|
TdActions,
|
|
10755
10783
|
{
|
|
10756
10784
|
rowItem,
|
|
@@ -10760,11 +10788,11 @@ var TdCell = ({
|
|
|
10760
10788
|
}
|
|
10761
10789
|
);
|
|
10762
10790
|
case "advancedTags":
|
|
10763
|
-
return /* @__PURE__ */
|
|
10791
|
+
return /* @__PURE__ */ jsx43(AdvancedTags_default, { items: item });
|
|
10764
10792
|
case "link":
|
|
10765
|
-
return /* @__PURE__ */
|
|
10793
|
+
return /* @__PURE__ */ jsx43("a", { href: item.link, children: item.label });
|
|
10766
10794
|
case "priority":
|
|
10767
|
-
return /* @__PURE__ */
|
|
10795
|
+
return /* @__PURE__ */ jsx43(
|
|
10768
10796
|
TdPriority_default,
|
|
10769
10797
|
{
|
|
10770
10798
|
rowIndex,
|
|
@@ -10773,7 +10801,7 @@ var TdCell = ({
|
|
|
10773
10801
|
}
|
|
10774
10802
|
);
|
|
10775
10803
|
case "status":
|
|
10776
|
-
return /* @__PURE__ */
|
|
10804
|
+
return /* @__PURE__ */ jsx43(
|
|
10777
10805
|
Status_default,
|
|
10778
10806
|
{
|
|
10779
10807
|
className: item.className,
|
|
@@ -10782,9 +10810,9 @@ var TdCell = ({
|
|
|
10782
10810
|
}
|
|
10783
10811
|
);
|
|
10784
10812
|
case "tags":
|
|
10785
|
-
return item.map((tag, index) => /* @__PURE__ */
|
|
10813
|
+
return item.map((tag, index) => /* @__PURE__ */ jsx43(Tag_default, { label: tag.label }, index));
|
|
10786
10814
|
case "weight":
|
|
10787
|
-
return /* @__PURE__ */
|
|
10815
|
+
return /* @__PURE__ */ jsx43(
|
|
10788
10816
|
TdWeight_default,
|
|
10789
10817
|
{
|
|
10790
10818
|
value: item.value,
|
|
@@ -10793,13 +10821,13 @@ var TdCell = ({
|
|
|
10793
10821
|
}
|
|
10794
10822
|
);
|
|
10795
10823
|
default:
|
|
10796
|
-
return /* @__PURE__ */
|
|
10824
|
+
return /* @__PURE__ */ jsx43("span", { className: item.className, children: item.value });
|
|
10797
10825
|
}
|
|
10798
10826
|
};
|
|
10799
10827
|
var TdCell_default = TdCell;
|
|
10800
10828
|
|
|
10801
10829
|
// src/Atomic/UI/Table/Partials/TdRow.js
|
|
10802
|
-
import React37, { useState as
|
|
10830
|
+
import React37, { useState as useState27 } from "react";
|
|
10803
10831
|
import cn36 from "classnames";
|
|
10804
10832
|
var TdRow = ({
|
|
10805
10833
|
item,
|
|
@@ -10817,27 +10845,27 @@ var TdRow = ({
|
|
|
10817
10845
|
isDeleted,
|
|
10818
10846
|
testId = "td-row"
|
|
10819
10847
|
}) => {
|
|
10820
|
-
const [isOpen, setIsOpen] =
|
|
10848
|
+
const [isOpen, setIsOpen] = useState27(false);
|
|
10821
10849
|
const handleChange = handleObjectChange(item, () => onChange({ ...item }));
|
|
10822
10850
|
return /* @__PURE__ */ jsxs36(Fragment8, { children: [
|
|
10823
10851
|
/* @__PURE__ */ jsxs36("tr", { "data-testid": testId, children: [
|
|
10824
|
-
type && rowSpan && /* @__PURE__ */
|
|
10852
|
+
type && rowSpan && /* @__PURE__ */ jsx44("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ jsx44(
|
|
10825
10853
|
"span",
|
|
10826
10854
|
{
|
|
10827
10855
|
className: cn36(
|
|
10828
10856
|
type && `cards-table__score cards-table__score-${cardStatus}`
|
|
10829
10857
|
),
|
|
10830
|
-
children: /* @__PURE__ */
|
|
10858
|
+
children: /* @__PURE__ */ jsx44(TdRange_default, { item: range })
|
|
10831
10859
|
}
|
|
10832
10860
|
) }),
|
|
10833
10861
|
Object.entries(item).map(
|
|
10834
|
-
([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */
|
|
10862
|
+
([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ jsx44(
|
|
10835
10863
|
"td",
|
|
10836
10864
|
{
|
|
10837
10865
|
className: cn36("cards-table__body-item", {
|
|
10838
10866
|
"cards-table__accordion": value.type === "accordion"
|
|
10839
10867
|
}),
|
|
10840
|
-
children: /* @__PURE__ */
|
|
10868
|
+
children: /* @__PURE__ */ jsx44(
|
|
10841
10869
|
TdCell_default,
|
|
10842
10870
|
{
|
|
10843
10871
|
onActionClick,
|
|
@@ -10858,9 +10886,9 @@ var TdRow = ({
|
|
|
10858
10886
|
)
|
|
10859
10887
|
] }),
|
|
10860
10888
|
type && colSpan ? /* @__PURE__ */ jsxs36("tr", { children: [
|
|
10861
|
-
/* @__PURE__ */
|
|
10889
|
+
/* @__PURE__ */ jsx44("td", {}),
|
|
10862
10890
|
/* @__PURE__ */ jsxs36("td", { colSpan, children: [
|
|
10863
|
-
/* @__PURE__ */
|
|
10891
|
+
/* @__PURE__ */ jsx44(
|
|
10864
10892
|
"span",
|
|
10865
10893
|
{
|
|
10866
10894
|
className: "cards-table__title-select-lender-btn",
|
|
@@ -10868,7 +10896,7 @@ var TdRow = ({
|
|
|
10868
10896
|
children: "Select Lender"
|
|
10869
10897
|
}
|
|
10870
10898
|
),
|
|
10871
|
-
/* @__PURE__ */
|
|
10899
|
+
/* @__PURE__ */ jsx44(
|
|
10872
10900
|
Modal_default,
|
|
10873
10901
|
{
|
|
10874
10902
|
closeModal: () => setIsOpen(false),
|
|
@@ -10899,7 +10927,7 @@ var Table = ({
|
|
|
10899
10927
|
rows[index] = value;
|
|
10900
10928
|
onChange({ header: [...header], rows: [...rows] });
|
|
10901
10929
|
};
|
|
10902
|
-
return /* @__PURE__ */
|
|
10930
|
+
return /* @__PURE__ */ jsx45(
|
|
10903
10931
|
"div",
|
|
10904
10932
|
{
|
|
10905
10933
|
"data-testid": testId,
|
|
@@ -10907,8 +10935,8 @@ var Table = ({
|
|
|
10907
10935
|
[`simple-table--${className}`]: className
|
|
10908
10936
|
}),
|
|
10909
10937
|
children: /* @__PURE__ */ jsxs37("table", { children: [
|
|
10910
|
-
/* @__PURE__ */
|
|
10911
|
-
/* @__PURE__ */
|
|
10938
|
+
/* @__PURE__ */ jsx45("thead", { children: /* @__PURE__ */ jsx45("tr", { children: header?.map((item) => /* @__PURE__ */ jsx45(TdHeader_default, { item }, item.key)) }) }),
|
|
10939
|
+
/* @__PURE__ */ jsx45("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ jsx45(
|
|
10912
10940
|
TdRow_default,
|
|
10913
10941
|
{
|
|
10914
10942
|
onActionClick,
|
|
@@ -10918,7 +10946,7 @@ var Table = ({
|
|
|
10918
10946
|
onChange: (value) => handleArrayChange(value, index)
|
|
10919
10947
|
},
|
|
10920
10948
|
typeof row.id === "object" ? row.id.value : row.id
|
|
10921
|
-
)) : /* @__PURE__ */
|
|
10949
|
+
)) : /* @__PURE__ */ jsx45("tr", { children: /* @__PURE__ */ jsx45("td", { className: "row--not-found", colSpan: header?.length, children: "Not set" }) }) })
|
|
10922
10950
|
] })
|
|
10923
10951
|
}
|
|
10924
10952
|
);
|
|
@@ -10929,14 +10957,14 @@ var Table_default = Table;
|
|
|
10929
10957
|
var Tag_default2 = Tag_default;
|
|
10930
10958
|
|
|
10931
10959
|
// src/Atomic/UI/TagList/TagList.tsx
|
|
10932
|
-
import { jsx as
|
|
10960
|
+
import { jsx as jsx46, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
10933
10961
|
import cn38 from "classnames";
|
|
10934
10962
|
import {
|
|
10935
10963
|
createRef as createRef2,
|
|
10936
10964
|
useEffect as useEffect24,
|
|
10937
10965
|
useLayoutEffect as useLayoutEffect8,
|
|
10938
10966
|
useRef as useRef17,
|
|
10939
|
-
useState as
|
|
10967
|
+
useState as useState28
|
|
10940
10968
|
} from "react";
|
|
10941
10969
|
import { Edit3 as Edit32 } from "react-feather";
|
|
10942
10970
|
var TagList = ({
|
|
@@ -10956,10 +10984,10 @@ var TagList = ({
|
|
|
10956
10984
|
isUseInTable
|
|
10957
10985
|
}) => {
|
|
10958
10986
|
const wrapperRef = useRef17(null);
|
|
10959
|
-
const [tagList, setTagList] =
|
|
10960
|
-
const [staticTagsCount, setStaticTagsCount] =
|
|
10961
|
-
const [renderItemsCount, setRenderItemsCount] =
|
|
10962
|
-
const [renderAll, setRenderAll] =
|
|
10987
|
+
const [tagList, setTagList] = useState28([]);
|
|
10988
|
+
const [staticTagsCount, setStaticTagsCount] = useState28(-1);
|
|
10989
|
+
const [renderItemsCount, setRenderItemsCount] = useState28(-1);
|
|
10990
|
+
const [renderAll, setRenderAll] = useState28(!withToggle);
|
|
10963
10991
|
const wrapperWidth = wrapperRef?.current?.getBoundingClientRect()?.width ?? -1;
|
|
10964
10992
|
const setRenderAllInterceptor = (v, event) => {
|
|
10965
10993
|
setRenderAll(v);
|
|
@@ -11010,12 +11038,12 @@ var TagList = ({
|
|
|
11010
11038
|
});
|
|
11011
11039
|
if (!item) return null;
|
|
11012
11040
|
const isHidden = renderItemsCount !== -1 && staticTagsCount !== -1 ? i >= renderItemsCount : false;
|
|
11013
|
-
return /* @__PURE__ */
|
|
11041
|
+
return /* @__PURE__ */ jsx46(
|
|
11014
11042
|
"div",
|
|
11015
11043
|
{
|
|
11016
11044
|
className: `tag-list_wrapper_item ${isHidden ? "tag-list_wrapper_item--hidden" : ""}`,
|
|
11017
11045
|
ref: checkedRef(item?.itemRef),
|
|
11018
|
-
children: /* @__PURE__ */
|
|
11046
|
+
children: /* @__PURE__ */ jsx46(
|
|
11019
11047
|
Tag_default,
|
|
11020
11048
|
{
|
|
11021
11049
|
testId: `test-taglist-item-${item?.id ?? item?.value}`,
|
|
@@ -11036,7 +11064,7 @@ var TagList = ({
|
|
|
11036
11064
|
}
|
|
11037
11065
|
const restItems = tagList.length - renderItemsCount;
|
|
11038
11066
|
if (restItems === 0 || !withToggle || staticTagsCount === -1) return null;
|
|
11039
|
-
return /* @__PURE__ */
|
|
11067
|
+
return /* @__PURE__ */ jsx46(
|
|
11040
11068
|
Tag_default,
|
|
11041
11069
|
{
|
|
11042
11070
|
label: `+${restItems}`,
|
|
@@ -11051,7 +11079,7 @@ var TagList = ({
|
|
|
11051
11079
|
if (renderItemsCount !== tagList?.length || !withToggle || staticTagsCount === -1 || staticTagsCount === tagList?.length) {
|
|
11052
11080
|
return null;
|
|
11053
11081
|
}
|
|
11054
|
-
return /* @__PURE__ */
|
|
11082
|
+
return /* @__PURE__ */ jsx46(
|
|
11055
11083
|
Tag_default,
|
|
11056
11084
|
{
|
|
11057
11085
|
label: "...",
|
|
@@ -11109,7 +11137,7 @@ var TagList = ({
|
|
|
11109
11137
|
renderTags(),
|
|
11110
11138
|
renderMoreTags(),
|
|
11111
11139
|
renderHideTags(),
|
|
11112
|
-
typeof onEditClick === "function" && /* @__PURE__ */
|
|
11140
|
+
typeof onEditClick === "function" && /* @__PURE__ */ jsx46("div", { className: "tag-list__edit-trigger", children: /* @__PURE__ */ jsx46(Edit32, { onClick: onEditClick }) })
|
|
11113
11141
|
]
|
|
11114
11142
|
}
|
|
11115
11143
|
);
|
|
@@ -11117,10 +11145,10 @@ var TagList = ({
|
|
|
11117
11145
|
var TagList_default = TagList;
|
|
11118
11146
|
|
|
11119
11147
|
// src/Atomic/UI/UserBox/UserBox.tsx
|
|
11120
|
-
import { Fragment as Fragment10, jsx as
|
|
11148
|
+
import { Fragment as Fragment10, jsx as jsx48, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
11121
11149
|
|
|
11122
11150
|
// src/Atomic/FormElements/Label/Label.tsx
|
|
11123
|
-
import { Fragment as Fragment9, jsx as
|
|
11151
|
+
import { Fragment as Fragment9, jsx as jsx47, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
11124
11152
|
import cn39 from "classnames";
|
|
11125
11153
|
var CN8 = "label";
|
|
11126
11154
|
var Label = ({
|
|
@@ -11139,10 +11167,10 @@ var Label = ({
|
|
|
11139
11167
|
const correctLabel = isRequired ? /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
11140
11168
|
label,
|
|
11141
11169
|
" ",
|
|
11142
|
-
/* @__PURE__ */
|
|
11170
|
+
/* @__PURE__ */ jsx47("span", { className: "label_asterisk", children: "*" }),
|
|
11143
11171
|
" ",
|
|
11144
|
-
note && /* @__PURE__ */
|
|
11145
|
-
hint && /* @__PURE__ */
|
|
11172
|
+
note && /* @__PURE__ */ jsx47("span", { className: "label_note", children: note }),
|
|
11173
|
+
hint && /* @__PURE__ */ jsx47(
|
|
11146
11174
|
Hint_default,
|
|
11147
11175
|
{
|
|
11148
11176
|
id: `hint-${label}`,
|
|
@@ -11161,8 +11189,8 @@ var Label = ({
|
|
|
11161
11189
|
] }) : /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
11162
11190
|
label,
|
|
11163
11191
|
" ",
|
|
11164
|
-
note && /* @__PURE__ */
|
|
11165
|
-
hint && /* @__PURE__ */
|
|
11192
|
+
note && /* @__PURE__ */ jsx47("span", { className: "label_note", children: note }),
|
|
11193
|
+
hint && /* @__PURE__ */ jsx47(
|
|
11166
11194
|
Hint_default,
|
|
11167
11195
|
{
|
|
11168
11196
|
isAccessability: isAccessabilityHint,
|
|
@@ -11179,14 +11207,14 @@ var Label = ({
|
|
|
11179
11207
|
void 0
|
|
11180
11208
|
)
|
|
11181
11209
|
] });
|
|
11182
|
-
return /* @__PURE__ */
|
|
11210
|
+
return /* @__PURE__ */ jsx47(
|
|
11183
11211
|
"span",
|
|
11184
11212
|
{
|
|
11185
11213
|
tabIndex: isAccessability ? 0 : -1,
|
|
11186
11214
|
"aria-label": label,
|
|
11187
11215
|
className: cn39(CN8, { label_bold: isLabelBolt, error, isRequired }, className),
|
|
11188
11216
|
"data-testid": testId,
|
|
11189
|
-
children: /* @__PURE__ */
|
|
11217
|
+
children: /* @__PURE__ */ jsx47("span", { className: "label_text", "data-testid": "label-text", children: correctLabel })
|
|
11190
11218
|
}
|
|
11191
11219
|
);
|
|
11192
11220
|
};
|
|
@@ -11208,23 +11236,23 @@ var UserBox = ({
|
|
|
11208
11236
|
const renderUser = () => {
|
|
11209
11237
|
if (isModal) {
|
|
11210
11238
|
return /* @__PURE__ */ jsxs40(Fragment10, { children: [
|
|
11211
|
-
/* @__PURE__ */
|
|
11239
|
+
/* @__PURE__ */ jsx48("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
|
|
11212
11240
|
/* @__PURE__ */ jsxs40("div", { className: "td-user-box__user-data", children: [
|
|
11213
|
-
/* @__PURE__ */
|
|
11214
|
-
role && /* @__PURE__ */
|
|
11241
|
+
/* @__PURE__ */ jsx48(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
|
|
11242
|
+
role && /* @__PURE__ */ jsx48("span", { children: role })
|
|
11215
11243
|
] })
|
|
11216
11244
|
] });
|
|
11217
11245
|
} else {
|
|
11218
11246
|
return /* @__PURE__ */ jsxs40(Fragment10, { children: [
|
|
11219
|
-
/* @__PURE__ */
|
|
11247
|
+
/* @__PURE__ */ jsx48("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
|
|
11220
11248
|
/* @__PURE__ */ jsxs40("div", { className: "td-user-box__user-data", children: [
|
|
11221
|
-
/* @__PURE__ */
|
|
11222
|
-
role && /* @__PURE__ */
|
|
11249
|
+
/* @__PURE__ */ jsx48(Label_default, { label: name }),
|
|
11250
|
+
role && /* @__PURE__ */ jsx48("span", { "aria-label": `User role: ${role}`, children: role })
|
|
11223
11251
|
] })
|
|
11224
11252
|
] });
|
|
11225
11253
|
}
|
|
11226
11254
|
};
|
|
11227
|
-
return /* @__PURE__ */
|
|
11255
|
+
return /* @__PURE__ */ jsx48(
|
|
11228
11256
|
"div",
|
|
11229
11257
|
{
|
|
11230
11258
|
"data-testid": testId,
|
|
@@ -11241,40 +11269,40 @@ var UserBox_default = UserBox;
|
|
|
11241
11269
|
var UserBox_default2 = UserBox_default;
|
|
11242
11270
|
|
|
11243
11271
|
// src/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.tsx
|
|
11244
|
-
import { jsx as
|
|
11272
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
11245
11273
|
|
|
11246
11274
|
// src/Atomic/UI/WizardStepper/ui/icons.tsx
|
|
11247
|
-
import { jsx as
|
|
11275
|
+
import { jsx as jsx49, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
11248
11276
|
var DoneIcon = () => /* @__PURE__ */ jsxs41("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
11249
|
-
/* @__PURE__ */
|
|
11250
|
-
/* @__PURE__ */
|
|
11251
|
-
/* @__PURE__ */
|
|
11277
|
+
/* @__PURE__ */ jsx49("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
|
|
11278
|
+
/* @__PURE__ */ jsx49("mask", { id: "mask0_54394_4001", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx49("path", { d: "M14.5 7L9 12.5L6 9.5", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }),
|
|
11279
|
+
/* @__PURE__ */ jsx49("g", { mask: "url(#mask0_54394_4001)", children: /* @__PURE__ */ jsx49("rect", { x: "2", y: "2", width: "16", height: "16", fill: "white" }) })
|
|
11252
11280
|
] });
|
|
11253
11281
|
var TodoIcon = () => {
|
|
11254
11282
|
return /* @__PURE__ */ jsxs41("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
11255
|
-
/* @__PURE__ */
|
|
11256
|
-
/* @__PURE__ */
|
|
11283
|
+
/* @__PURE__ */ jsx49("g", { clipPath: "url(#clip0_54394_4448)", children: /* @__PURE__ */ jsx49("circle", { cx: "10", cy: "10", r: "7", fill: "white", stroke: "#B3B8CB", strokeWidth: "2" }) }),
|
|
11284
|
+
/* @__PURE__ */ jsx49("defs", { children: /* @__PURE__ */ jsx49("clipPath", { id: "clip0_54394_4448", children: /* @__PURE__ */ jsx49("rect", { width: "16", height: "16", fill: "white", transform: "translate(2 2)" }) }) })
|
|
11257
11285
|
] });
|
|
11258
11286
|
};
|
|
11259
11287
|
var ActiveIcon = () => {
|
|
11260
11288
|
return /* @__PURE__ */ jsxs41("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
11261
|
-
/* @__PURE__ */
|
|
11289
|
+
/* @__PURE__ */ jsx49("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
|
|
11262
11290
|
"ii",
|
|
11263
|
-
/* @__PURE__ */
|
|
11264
|
-
/* @__PURE__ */
|
|
11291
|
+
/* @__PURE__ */ jsx49("mask", { id: "mask0_54394_1459", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx49("circle", { cx: "10", cy: "10", r: "4", fill: "#171D33" }) }),
|
|
11292
|
+
/* @__PURE__ */ jsx49("g", { mask: "url(#mask0_54394_1459)", children: /* @__PURE__ */ jsx49("rect", { x: "2", y: "2", width: "16", height: "16", fill: "#171D33" }) })
|
|
11265
11293
|
] });
|
|
11266
11294
|
};
|
|
11267
11295
|
var alternativeIconSet = {
|
|
11268
|
-
defaultIcon: /* @__PURE__ */
|
|
11269
|
-
doneIcon: /* @__PURE__ */
|
|
11270
|
-
activeIcon: /* @__PURE__ */
|
|
11296
|
+
defaultIcon: /* @__PURE__ */ jsx49(TodoIcon, {}),
|
|
11297
|
+
doneIcon: /* @__PURE__ */ jsx49(DoneIcon, {}),
|
|
11298
|
+
activeIcon: /* @__PURE__ */ jsx49(ActiveIcon, {})
|
|
11271
11299
|
};
|
|
11272
11300
|
|
|
11273
11301
|
// src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
|
|
11274
|
-
import { jsx as
|
|
11302
|
+
import { jsx as jsx52, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
11275
11303
|
|
|
11276
11304
|
// src/Atomic/UI/WizardStepper/constructor.js
|
|
11277
|
-
import { jsx as
|
|
11305
|
+
import { jsx as jsx50, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
11278
11306
|
import React42 from "react";
|
|
11279
11307
|
var WIZARD_STEP_VARIANTS = Object.freeze({
|
|
11280
11308
|
DEFAULT: "default",
|
|
@@ -11295,8 +11323,8 @@ var JSXMockComponent = () => {
|
|
|
11295
11323
|
};
|
|
11296
11324
|
return arr.map((row) => {
|
|
11297
11325
|
return /* @__PURE__ */ jsxs42("div", { style: { display: "flex", justifyContent: "space-between", maxWidth: "250px" }, children: [
|
|
11298
|
-
/* @__PURE__ */
|
|
11299
|
-
/* @__PURE__ */
|
|
11326
|
+
/* @__PURE__ */ jsx50("span", { style: textStyles, children: row.title }),
|
|
11327
|
+
/* @__PURE__ */ jsx50("span", { style: textStyles, children: row.value })
|
|
11300
11328
|
] });
|
|
11301
11329
|
});
|
|
11302
11330
|
};
|
|
@@ -11319,14 +11347,14 @@ var mockData = [
|
|
|
11319
11347
|
label: "Add Co-Owners",
|
|
11320
11348
|
description: "{merchantName} will receive that amount from {lenderNmae}",
|
|
11321
11349
|
isActive: true,
|
|
11322
|
-
titleSlot: /* @__PURE__ */
|
|
11323
|
-
contentSlot: /* @__PURE__ */
|
|
11350
|
+
titleSlot: /* @__PURE__ */ jsx50("span", { className: "custom-title-slot", children: "$15,001" }),
|
|
11351
|
+
contentSlot: /* @__PURE__ */ jsx50(JSXMockComponent, {})
|
|
11324
11352
|
},
|
|
11325
11353
|
{
|
|
11326
11354
|
key: "bankAccount",
|
|
11327
11355
|
label: "Add a Bank Account",
|
|
11328
11356
|
description: "Your bank account information will be used to securely and automatically transfer the funds",
|
|
11329
|
-
titleSlot: /* @__PURE__ */
|
|
11357
|
+
titleSlot: /* @__PURE__ */ jsx50(Status_default, { label: "Some JSX", status: "draft" })
|
|
11330
11358
|
},
|
|
11331
11359
|
{
|
|
11332
11360
|
key: "documents",
|
|
@@ -11356,24 +11384,24 @@ var mockData = [
|
|
|
11356
11384
|
];
|
|
11357
11385
|
|
|
11358
11386
|
// src/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.tsx
|
|
11359
|
-
import { jsx as
|
|
11387
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
11360
11388
|
import cn41 from "classnames";
|
|
11361
11389
|
var DefaultPoint = () => {
|
|
11362
|
-
return /* @__PURE__ */
|
|
11390
|
+
return /* @__PURE__ */ jsx51("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx51("circle", { cx: "8", cy: "8", r: "4" }) });
|
|
11363
11391
|
};
|
|
11364
11392
|
var DonePoint = () => {
|
|
11365
|
-
return /* @__PURE__ */
|
|
11393
|
+
return /* @__PURE__ */ jsx51("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx51("path", { d: "M12.5 5L7 10.5L4 7.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
11366
11394
|
};
|
|
11367
11395
|
var RC9 = "state-icon";
|
|
11368
11396
|
var { ACTIVE, DEFAULT, DONE } = WIZARD_STEP_VARIANTS;
|
|
11369
11397
|
var StateIcon = ({ variant = DEFAULT, className }) => {
|
|
11370
11398
|
const computedState = variant === ACTIVE || variant === DONE ? variant : DEFAULT;
|
|
11371
11399
|
const Inner = {
|
|
11372
|
-
[DEFAULT]: /* @__PURE__ */
|
|
11373
|
-
[ACTIVE]: /* @__PURE__ */
|
|
11374
|
-
[DONE]: /* @__PURE__ */
|
|
11400
|
+
[DEFAULT]: /* @__PURE__ */ jsx51(DefaultPoint, {}),
|
|
11401
|
+
[ACTIVE]: /* @__PURE__ */ jsx51(DefaultPoint, {}),
|
|
11402
|
+
[DONE]: /* @__PURE__ */ jsx51(DonePoint, {})
|
|
11375
11403
|
};
|
|
11376
|
-
return /* @__PURE__ */
|
|
11404
|
+
return /* @__PURE__ */ jsx51("div", { className: cn41(RC9, `${RC9}--${computedState}`, className), children: Inner[computedState] });
|
|
11377
11405
|
};
|
|
11378
11406
|
|
|
11379
11407
|
// src/Atomic/UI/WizardStepper/ui/StateIcon/index.ts
|
|
@@ -11407,22 +11435,22 @@ var StepRow = ({
|
|
|
11407
11435
|
})();
|
|
11408
11436
|
const CorrectIcon = () => {
|
|
11409
11437
|
if (!customIcons || Object?.values(customIcons)?.every((icon) => !icon)) {
|
|
11410
|
-
return /* @__PURE__ */
|
|
11438
|
+
return /* @__PURE__ */ jsx52(StateIcon_default, { variant: rowVariant });
|
|
11411
11439
|
}
|
|
11412
11440
|
return alternaviteIconFromProps || null;
|
|
11413
11441
|
};
|
|
11414
11442
|
return /* @__PURE__ */ jsxs43("div", { className: cn42(RC10, `${RC10}--${rowVariant}`, className), children: [
|
|
11415
|
-
/* @__PURE__ */
|
|
11443
|
+
/* @__PURE__ */ jsx52("div", { className: cn42(`${RC10}__state-point`, `${RC10}__state-point--${rowVariant}`), children: /* @__PURE__ */ jsx52(CorrectIcon, {}) }),
|
|
11416
11444
|
/* @__PURE__ */ jsxs43("div", { className: `${RC10}__content`, children: [
|
|
11417
11445
|
/* @__PURE__ */ jsxs43("div", { className: `${RC10}__title`, children: [
|
|
11418
11446
|
/* @__PURE__ */ jsxs43("div", { className: `${RC10}__title-left`, children: [
|
|
11419
|
-
/* @__PURE__ */
|
|
11420
|
-
isOptional && /* @__PURE__ */
|
|
11447
|
+
/* @__PURE__ */ jsx52("div", { className: cn42(`${RC10}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
|
|
11448
|
+
isOptional && /* @__PURE__ */ jsx52(Status_default, { label: "Optional", status: "draft" })
|
|
11421
11449
|
] }),
|
|
11422
|
-
titleSlot && /* @__PURE__ */
|
|
11450
|
+
titleSlot && /* @__PURE__ */ jsx52("div", { className: `${RC10}__title-right`, children: titleSlot })
|
|
11423
11451
|
] }),
|
|
11424
|
-
description && /* @__PURE__ */
|
|
11425
|
-
contentSlot && /* @__PURE__ */
|
|
11452
|
+
description && /* @__PURE__ */ jsx52("div", { className: `${RC10}__description`, children: description }),
|
|
11453
|
+
contentSlot && /* @__PURE__ */ jsx52("div", { className: `${RC10}__body`, children: contentSlot })
|
|
11426
11454
|
] })
|
|
11427
11455
|
] }, label);
|
|
11428
11456
|
};
|
|
@@ -11437,10 +11465,10 @@ var StepWrapper = ({
|
|
|
11437
11465
|
className,
|
|
11438
11466
|
testId = "step-wrapper"
|
|
11439
11467
|
}) => {
|
|
11440
|
-
if (!steps?.length) return /* @__PURE__ */
|
|
11468
|
+
if (!steps?.length) return /* @__PURE__ */ jsx53("div", { "data-testid": "empty-state", children: "No steps available" });
|
|
11441
11469
|
const renderStepRow = (step) => {
|
|
11442
11470
|
const { key, ...stepProps } = step;
|
|
11443
|
-
return /* @__PURE__ */
|
|
11471
|
+
return /* @__PURE__ */ jsx53(
|
|
11444
11472
|
StepRow_default,
|
|
11445
11473
|
{
|
|
11446
11474
|
...stepProps,
|
|
@@ -11451,7 +11479,7 @@ var StepWrapper = ({
|
|
|
11451
11479
|
};
|
|
11452
11480
|
switch (variant) {
|
|
11453
11481
|
case "ghost":
|
|
11454
|
-
return /* @__PURE__ */
|
|
11482
|
+
return /* @__PURE__ */ jsx53(
|
|
11455
11483
|
Box_default,
|
|
11456
11484
|
{
|
|
11457
11485
|
className: classNames("step-wrapper", "step-wrapper-ghost", className),
|
|
@@ -11460,7 +11488,7 @@ var StepWrapper = ({
|
|
|
11460
11488
|
}
|
|
11461
11489
|
);
|
|
11462
11490
|
case "cardActive":
|
|
11463
|
-
return /* @__PURE__ */
|
|
11491
|
+
return /* @__PURE__ */ jsx53(
|
|
11464
11492
|
"div",
|
|
11465
11493
|
{
|
|
11466
11494
|
className: classNames("step-wrapper", "step-wrapper-card-active", className),
|
|
@@ -11469,7 +11497,7 @@ var StepWrapper = ({
|
|
|
11469
11497
|
}
|
|
11470
11498
|
);
|
|
11471
11499
|
default:
|
|
11472
|
-
return /* @__PURE__ */
|
|
11500
|
+
return /* @__PURE__ */ jsx53(
|
|
11473
11501
|
"div",
|
|
11474
11502
|
{
|
|
11475
11503
|
className: classNames("step-wrapper", className),
|
|
@@ -11494,22 +11522,24 @@ export {
|
|
|
11494
11522
|
AccordionTable_default as AccordionTable,
|
|
11495
11523
|
AccordionText_default as AccordionText,
|
|
11496
11524
|
AdvTag_default as AdvTag,
|
|
11497
|
-
|
|
11498
|
-
|
|
11525
|
+
AdvancedTag_default as AdvancedTags,
|
|
11526
|
+
Alert_default2 as Alert,
|
|
11499
11527
|
Arrow_default as Arrow,
|
|
11500
11528
|
Box_default as Box,
|
|
11501
11529
|
Button_default as Button,
|
|
11502
|
-
|
|
11503
|
-
|
|
11530
|
+
ButtonsBar_default2 as ButtonsBar,
|
|
11531
|
+
Chart_default2 as Chart,
|
|
11504
11532
|
CircleProgressBar_default as CircleProgressBar,
|
|
11505
11533
|
DateTime_default as DateTime,
|
|
11506
11534
|
DebugContainer_default as DebugContainer,
|
|
11507
|
-
|
|
11535
|
+
DoubleString_default2 as DoubleString,
|
|
11508
11536
|
DynamicIcon_default2 as DynamicIcon,
|
|
11509
11537
|
EVENTS,
|
|
11510
11538
|
Hint_default2 as Hint,
|
|
11511
11539
|
Modal_default2 as Modal,
|
|
11540
|
+
ModalFooter_default as ModalFooter,
|
|
11512
11541
|
ModalHOC_default as ModalHOC,
|
|
11542
|
+
ModalTitle_default as ModalTitle,
|
|
11513
11543
|
MonoAccordion_default2 as MonoAccordion,
|
|
11514
11544
|
NavLine_default2 as NavLine,
|
|
11515
11545
|
PageTitle_default2 as PageTitle,
|
|
@@ -11523,7 +11553,9 @@ export {
|
|
|
11523
11553
|
TagList_default as TagList,
|
|
11524
11554
|
UserBox_default2 as UserBox,
|
|
11525
11555
|
WizardStepper_default as WizardStepper,
|
|
11526
|
-
dispatchEventForModalManagement
|
|
11556
|
+
dispatchEventForModalManagement,
|
|
11557
|
+
useDebugContainer_default as useDebugContainer,
|
|
11558
|
+
useMobileModal
|
|
11527
11559
|
};
|
|
11528
11560
|
//! Важно! Если придет велью с количеством дробных разрядов БОЛЬШИМ
|
|
11529
11561
|
//! чем указано в quantity - округлит по правилам округления
|