@connectif/ui-components 5.0.1 → 5.1.0
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/CHANGELOG.md +17 -0
- package/dist/components/button/ToggleButton.d.ts +1 -1
- package/dist/components/card/EnhancedCardRow.d.ts +2 -2
- package/dist/components/chip/Chip.d.ts +87 -55
- package/dist/components/drawer/InputDrawer.d.ts +1 -1
- package/dist/components/input/CodeEditor.d.ts +2 -7
- package/dist/components/input/Select.d.ts +2 -7
- package/dist/components/input/TextFieldContainer.d.ts +2 -2
- package/dist/components/input/autocomplete/AutocompleteInput.d.ts +2 -2
- package/dist/components/input/autocomplete/AutocompleteList.d.ts +2 -2
- package/dist/hooks/useResizeObserver.d.ts +1 -1
- package/dist/index.js +146 -73
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +14 -10
package/dist/index.js
CHANGED
|
@@ -841,9 +841,7 @@ var require_react_is_development2 = __commonJS({
|
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
845
|
-
Symbol.for("react.provider");
|
|
846
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
844
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
847
845
|
exports.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
848
846
|
exports.ContextProvider = REACT_CONTEXT_TYPE;
|
|
849
847
|
exports.Element = REACT_ELEMENT_TYPE;
|
|
@@ -8081,7 +8079,9 @@ var ListItemText = ({
|
|
|
8081
8079
|
slotProps,
|
|
8082
8080
|
"data-testid": dataTestId
|
|
8083
8081
|
}) => {
|
|
8084
|
-
const textElementRef = React8.useRef(
|
|
8082
|
+
const textElementRef = React8.useRef(
|
|
8083
|
+
null
|
|
8084
|
+
);
|
|
8085
8085
|
return /* @__PURE__ */ jsx6(
|
|
8086
8086
|
TextEllipsisTooltip_default,
|
|
8087
8087
|
{
|
|
@@ -9595,7 +9595,9 @@ var TextEllipsis = ({
|
|
|
9595
9595
|
sx,
|
|
9596
9596
|
zIndex
|
|
9597
9597
|
}) => {
|
|
9598
|
-
const textElementRef = React17.useRef(
|
|
9598
|
+
const textElementRef = React17.useRef(
|
|
9599
|
+
null
|
|
9600
|
+
);
|
|
9599
9601
|
return /* @__PURE__ */ jsx32(
|
|
9600
9602
|
TextEllipsisTooltip_default,
|
|
9601
9603
|
{
|
|
@@ -9742,7 +9744,7 @@ var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
|
9742
9744
|
const setButtonRef = (element) => {
|
|
9743
9745
|
if (typeof ref === "function") {
|
|
9744
9746
|
ref(element);
|
|
9745
|
-
} else if (ref) {
|
|
9747
|
+
} else if (ref && "current" in ref) {
|
|
9746
9748
|
ref.current = element;
|
|
9747
9749
|
}
|
|
9748
9750
|
setAnchorEl(element);
|
|
@@ -10522,7 +10524,7 @@ var MenuButton = React24.forwardRef(function MenuButton2({
|
|
|
10522
10524
|
const setButtonRef = (element) => {
|
|
10523
10525
|
if (typeof ref === "function") {
|
|
10524
10526
|
ref(element);
|
|
10525
|
-
} else if (ref) {
|
|
10527
|
+
} else if (ref && "current" in ref) {
|
|
10526
10528
|
ref.current = element;
|
|
10527
10529
|
}
|
|
10528
10530
|
setAnchorEl(element);
|
|
@@ -11479,7 +11481,7 @@ var MenuChip = React29.forwardRef(function MenuChip2({
|
|
|
11479
11481
|
const setChipRef = (element) => {
|
|
11480
11482
|
if (typeof ref === "function") {
|
|
11481
11483
|
ref(element);
|
|
11482
|
-
} else if (ref) {
|
|
11484
|
+
} else if (ref && "current" in ref) {
|
|
11483
11485
|
ref.current = element;
|
|
11484
11486
|
}
|
|
11485
11487
|
setAnchorEl(element);
|
|
@@ -12055,11 +12057,19 @@ var EnhancedCard = React31.forwardRef(
|
|
|
12055
12057
|
const getChildProps = () => typeof child.props === "object" ? child.props : {};
|
|
12056
12058
|
switch (child.type) {
|
|
12057
12059
|
case EnhancedCardTitle_default:
|
|
12060
|
+
return React31.cloneElement(
|
|
12061
|
+
child,
|
|
12062
|
+
{
|
|
12063
|
+
size: size === "S" ? "S" : "M",
|
|
12064
|
+
dataTest,
|
|
12065
|
+
cursor: cursor2,
|
|
12066
|
+
...getChildProps()
|
|
12067
|
+
}
|
|
12068
|
+
);
|
|
12058
12069
|
case EnhancedCardSubtitle_default:
|
|
12059
12070
|
return React31.cloneElement(
|
|
12060
12071
|
child,
|
|
12061
12072
|
{
|
|
12062
|
-
size,
|
|
12063
12073
|
dataTest,
|
|
12064
12074
|
cursor: cursor2,
|
|
12065
12075
|
...getChildProps()
|
|
@@ -12080,12 +12090,11 @@ var EnhancedCard = React31.forwardRef(
|
|
|
12080
12090
|
child,
|
|
12081
12091
|
{
|
|
12082
12092
|
titleProps: {
|
|
12083
|
-
size,
|
|
12093
|
+
size: size === "S" ? "S" : "M",
|
|
12084
12094
|
dataTest,
|
|
12085
12095
|
cursor: cursor2
|
|
12086
12096
|
},
|
|
12087
12097
|
subtitleProps: {
|
|
12088
|
-
size,
|
|
12089
12098
|
dataTest,
|
|
12090
12099
|
cursor: cursor2
|
|
12091
12100
|
},
|
|
@@ -18305,7 +18314,9 @@ var PhoneFormatter_default = PhoneFormatter;
|
|
|
18305
18314
|
import * as React44 from "react";
|
|
18306
18315
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
18307
18316
|
var HeaderTitle = ({ text }) => {
|
|
18308
|
-
const textElementRef = React44.useRef(
|
|
18317
|
+
const textElementRef = React44.useRef(
|
|
18318
|
+
null
|
|
18319
|
+
);
|
|
18309
18320
|
return /* @__PURE__ */ jsx92(
|
|
18310
18321
|
TextEllipsisTooltip_default,
|
|
18311
18322
|
{
|
|
@@ -18331,7 +18342,9 @@ var HeaderTitle_default = HeaderTitle;
|
|
|
18331
18342
|
import * as React45 from "react";
|
|
18332
18343
|
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
18333
18344
|
var HeaderSubtitle = ({ text }) => {
|
|
18334
|
-
const textElementRef = React45.useRef(
|
|
18345
|
+
const textElementRef = React45.useRef(
|
|
18346
|
+
null
|
|
18347
|
+
);
|
|
18335
18348
|
return typeof text === "string" ? /* @__PURE__ */ jsx93(
|
|
18336
18349
|
TextEllipsisTooltip_default,
|
|
18337
18350
|
{
|
|
@@ -18585,8 +18598,8 @@ var ImageEditor = ({
|
|
|
18585
18598
|
TABS.FINETUNE,
|
|
18586
18599
|
TABS.ANNOTATE
|
|
18587
18600
|
];
|
|
18588
|
-
const updateStateRef = React46.useRef();
|
|
18589
|
-
const getCurrentImgDataFnRef = React46.useRef();
|
|
18601
|
+
const updateStateRef = React46.useRef(null);
|
|
18602
|
+
const getCurrentImgDataFnRef = React46.useRef(null);
|
|
18590
18603
|
const handleOnSave = React46.useCallback(
|
|
18591
18604
|
(editedImageObject) => {
|
|
18592
18605
|
const imageBase64 = editedImageObject.imageBase64;
|
|
@@ -18967,7 +18980,7 @@ var TextFieldContainer = React48.forwardRef(function TextFieldContainer2({
|
|
|
18967
18980
|
onClick,
|
|
18968
18981
|
className = "",
|
|
18969
18982
|
sx,
|
|
18970
|
-
"data-
|
|
18983
|
+
"data-testid": dataTestId,
|
|
18971
18984
|
onMouseEnter,
|
|
18972
18985
|
onMouseLeave
|
|
18973
18986
|
}, ref) {
|
|
@@ -19017,8 +19030,8 @@ var TextFieldContainer = React48.forwardRef(function TextFieldContainer2({
|
|
|
19017
19030
|
...sx
|
|
19018
19031
|
},
|
|
19019
19032
|
ref,
|
|
19020
|
-
...
|
|
19021
|
-
"data-
|
|
19033
|
+
...dataTestId && {
|
|
19034
|
+
"data-testid": dataTestId
|
|
19022
19035
|
},
|
|
19023
19036
|
onMouseEnter,
|
|
19024
19037
|
onMouseLeave,
|
|
@@ -19034,8 +19047,8 @@ import * as React52 from "react";
|
|
|
19034
19047
|
// src/hooks/useDebouncedCallback.ts
|
|
19035
19048
|
import { useEffect as useEffect10, useRef as useRef14 } from "react";
|
|
19036
19049
|
function useDebouncedCallback(callback, wait) {
|
|
19037
|
-
const argsRef = useRef14();
|
|
19038
|
-
const timeout = useRef14();
|
|
19050
|
+
const argsRef = useRef14(null);
|
|
19051
|
+
const timeout = useRef14(null);
|
|
19039
19052
|
function cleanup() {
|
|
19040
19053
|
if (timeout.current) {
|
|
19041
19054
|
clearTimeout(timeout.current);
|
|
@@ -19261,7 +19274,7 @@ var TextField = React51.forwardRef(function TextField2({
|
|
|
19261
19274
|
ref: containerRef,
|
|
19262
19275
|
className: `Cn-TextField ${className}`,
|
|
19263
19276
|
...dataTestId && {
|
|
19264
|
-
"data-
|
|
19277
|
+
"data-testid": `${dataTestId}-container`
|
|
19265
19278
|
},
|
|
19266
19279
|
onMouseEnter,
|
|
19267
19280
|
onMouseLeave,
|
|
@@ -21648,26 +21661,23 @@ var ColorPicker = React62.forwardRef(function ColorPickerWrapper({
|
|
|
21648
21661
|
const [internalPickerValue, setInternalPickerValue] = React62.useState(
|
|
21649
21662
|
value || white
|
|
21650
21663
|
);
|
|
21651
|
-
const [textFieldValue, setTextFieldValue] = React62.useState(
|
|
21664
|
+
const [textFieldValue, setTextFieldValue] = React62.useState(
|
|
21665
|
+
value ? allowAlpha ? value : rgbToHex(value) : ""
|
|
21666
|
+
);
|
|
21667
|
+
const [isValidPickerChange, setValidPickerChange] = React62.useState(false);
|
|
21668
|
+
const [colorChangeOccurred, setColorChangeOccurred] = React62.useState(false);
|
|
21669
|
+
const [isPopoverInputFocused, setIsPopoverInputFocused] = React62.useState(false);
|
|
21652
21670
|
const [anchorEl, setAnchorEl] = React62.useState();
|
|
21671
|
+
const containerRef = React62.useRef(null);
|
|
21653
21672
|
const handleTextFieldChange = (event) => {
|
|
21654
21673
|
const newValue = event.target.value;
|
|
21674
|
+
setValidPickerChange(false);
|
|
21655
21675
|
setTextFieldValue(newValue);
|
|
21656
21676
|
if (isValidColor(newValue) || allowEmpty && newValue === "") {
|
|
21657
21677
|
setInternalPickerValue(newValue);
|
|
21658
21678
|
onChange(newValue);
|
|
21659
21679
|
}
|
|
21660
21680
|
};
|
|
21661
|
-
const rgbToHex = (rgb) => {
|
|
21662
|
-
const rgbValues = rgb.match(/\d+/g);
|
|
21663
|
-
if (!rgbValues || rgbValues.length !== 3 && rgbValues.length !== 4) {
|
|
21664
|
-
return rgb;
|
|
21665
|
-
}
|
|
21666
|
-
return "#" + rgbValues.slice(0, 3).map((val) => {
|
|
21667
|
-
const hex = parseInt(val, 10).toString(16);
|
|
21668
|
-
return hex.length === 1 ? "0" + hex : hex;
|
|
21669
|
-
}).join("");
|
|
21670
|
-
};
|
|
21671
21681
|
const normalizeBlack = (color2) => {
|
|
21672
21682
|
const rgb = color2.match(/\d+/g);
|
|
21673
21683
|
if (!rgb) {
|
|
@@ -21679,13 +21689,6 @@ var ColorPicker = React62.forwardRef(function ColorPickerWrapper({
|
|
|
21679
21689
|
}
|
|
21680
21690
|
return color2;
|
|
21681
21691
|
};
|
|
21682
|
-
const commitColor = React62.useCallback(() => {
|
|
21683
|
-
const finalValue = allowAlpha ? internalPickerValue : rgbToHex(internalPickerValue);
|
|
21684
|
-
setInternalPickerValue(finalValue);
|
|
21685
|
-
setTextFieldValue(finalValue);
|
|
21686
|
-
setPreviousColors((prev) => [finalValue, ...prev.slice(0, 17)]);
|
|
21687
|
-
onChange(finalValue);
|
|
21688
|
-
}, [internalPickerValue, allowAlpha, onChange]);
|
|
21689
21692
|
const iconColor = /* @__PURE__ */ jsx117(
|
|
21690
21693
|
IconButton_default,
|
|
21691
21694
|
{
|
|
@@ -21697,6 +21700,66 @@ var ColorPicker = React62.forwardRef(function ColorPickerWrapper({
|
|
|
21697
21700
|
sx: { color: value || grey600 }
|
|
21698
21701
|
}
|
|
21699
21702
|
);
|
|
21703
|
+
React62.useEffect(() => {
|
|
21704
|
+
const handleInternalColorChange = (color2) => {
|
|
21705
|
+
setPreviousColors((prev) => [color2, ...prev.slice(0, 17)]);
|
|
21706
|
+
setTextFieldValue(rgbToHex(color2));
|
|
21707
|
+
onChange(color2);
|
|
21708
|
+
setValidPickerChange(false);
|
|
21709
|
+
setColorChangeOccurred(false);
|
|
21710
|
+
};
|
|
21711
|
+
if (colorChangeOccurred && (isValidPickerChange || isPopoverInputFocused) && internalPickerValue && internalPickerValue !== value) {
|
|
21712
|
+
handleInternalColorChange(internalPickerValue);
|
|
21713
|
+
}
|
|
21714
|
+
}, [
|
|
21715
|
+
value,
|
|
21716
|
+
internalPickerValue,
|
|
21717
|
+
onChange,
|
|
21718
|
+
isValidPickerChange,
|
|
21719
|
+
colorChangeOccurred,
|
|
21720
|
+
isPopoverInputFocused
|
|
21721
|
+
]);
|
|
21722
|
+
React62.useEffect(() => {
|
|
21723
|
+
const handleExternalColorChange = (color2) => {
|
|
21724
|
+
setPreviousColors((prev) => [color2, ...prev.slice(0, 17)]);
|
|
21725
|
+
setTextFieldValue(rgbToHex(color2));
|
|
21726
|
+
setInternalPickerValue(color2);
|
|
21727
|
+
};
|
|
21728
|
+
if (!colorChangeOccurred && internalPickerValue && value && internalPickerValue !== value) {
|
|
21729
|
+
handleExternalColorChange(value || (allowEmpty ? "" : white));
|
|
21730
|
+
}
|
|
21731
|
+
}, [value, internalPickerValue, colorChangeOccurred, allowEmpty]);
|
|
21732
|
+
React62.useEffect(() => {
|
|
21733
|
+
if (anchorEl) {
|
|
21734
|
+
const handleFocus = () => {
|
|
21735
|
+
setIsPopoverInputFocused(true);
|
|
21736
|
+
};
|
|
21737
|
+
const handleBlur = () => {
|
|
21738
|
+
setIsPopoverInputFocused(false);
|
|
21739
|
+
};
|
|
21740
|
+
let inputs;
|
|
21741
|
+
const timeoutId = setTimeout(() => {
|
|
21742
|
+
if (containerRef.current) {
|
|
21743
|
+
inputs = containerRef.current.querySelectorAll(
|
|
21744
|
+
"input#rbgcp-R-input, input#rbgcp-G-input, input#rbgcp-B-input, input#rbgcp-hex-input"
|
|
21745
|
+
);
|
|
21746
|
+
inputs.forEach((input) => {
|
|
21747
|
+
input.addEventListener("focus", handleFocus);
|
|
21748
|
+
input.addEventListener("blur", handleBlur);
|
|
21749
|
+
});
|
|
21750
|
+
}
|
|
21751
|
+
}, 0);
|
|
21752
|
+
return () => {
|
|
21753
|
+
clearTimeout(timeoutId);
|
|
21754
|
+
if (inputs) {
|
|
21755
|
+
inputs.forEach((input) => {
|
|
21756
|
+
input.removeEventListener("focus", handleFocus);
|
|
21757
|
+
input.removeEventListener("blur", handleBlur);
|
|
21758
|
+
});
|
|
21759
|
+
}
|
|
21760
|
+
};
|
|
21761
|
+
}
|
|
21762
|
+
}, [anchorEl]);
|
|
21700
21763
|
return /* @__PURE__ */ jsxs53(Fragment23, { children: [
|
|
21701
21764
|
/* @__PURE__ */ jsx117(
|
|
21702
21765
|
TextField_default,
|
|
@@ -21729,11 +21792,13 @@ var ColorPicker = React62.forwardRef(function ColorPickerWrapper({
|
|
|
21729
21792
|
anchorEl,
|
|
21730
21793
|
onClose: () => setAnchorEl(void 0),
|
|
21731
21794
|
sx: { zIndex: popoverZIndex },
|
|
21732
|
-
onMouseUp:
|
|
21795
|
+
onMouseUp: () => setValidPickerChange(true),
|
|
21733
21796
|
children: /* @__PURE__ */ jsx117(
|
|
21734
21797
|
Box_default2,
|
|
21735
21798
|
{
|
|
21799
|
+
ref: containerRef,
|
|
21736
21800
|
className: "Cn-Color-Gradient-Box",
|
|
21801
|
+
onMouseUp: () => setValidPickerChange(true),
|
|
21737
21802
|
sx: {
|
|
21738
21803
|
"&.Cn-Color-Gradient-Box": {
|
|
21739
21804
|
backgroundColor: "white !important",
|
|
@@ -21758,17 +21823,12 @@ var ColorPicker = React62.forwardRef(function ColorPickerWrapper({
|
|
|
21758
21823
|
color: "black !important",
|
|
21759
21824
|
fontFamily: "Source Sans Pro, sans-serif"
|
|
21760
21825
|
},
|
|
21761
|
-
"#rbgcp-input": {
|
|
21826
|
+
"#rbgcp-hex-input, #rbgcp-R-input, #rbgcp-G-input, #rbgcp-B-input": {
|
|
21762
21827
|
color: "black !important",
|
|
21763
21828
|
backgroundColor: "white !important",
|
|
21764
|
-
border: "1px solid #bebebe",
|
|
21765
|
-
fontFamily: "Source Sans Pro, sans-serif"
|
|
21766
|
-
|
|
21767
|
-
"#rbgcp-hex-input": {
|
|
21768
|
-
color: "black !important",
|
|
21769
|
-
backgroundColor: "white !important",
|
|
21770
|
-
border: "1px solid #bebebe",
|
|
21771
|
-
fontFamily: "Source Sans Pro, sans-serif"
|
|
21829
|
+
border: "1px solid #bebebe !important",
|
|
21830
|
+
fontFamily: "Source Sans Pro, sans-serif",
|
|
21831
|
+
boxSizing: "border-box !important"
|
|
21772
21832
|
}
|
|
21773
21833
|
},
|
|
21774
21834
|
children: /* @__PURE__ */ jsx117(
|
|
@@ -21783,14 +21843,15 @@ var ColorPicker = React62.forwardRef(function ColorPickerWrapper({
|
|
|
21783
21843
|
const normalized = normalizeBlack(newColor);
|
|
21784
21844
|
const preview = allowAlpha ? normalized : rgbToHex(normalized);
|
|
21785
21845
|
setInternalPickerValue(preview);
|
|
21786
|
-
|
|
21846
|
+
setColorChangeOccurred(true);
|
|
21787
21847
|
},
|
|
21788
21848
|
hideAdvancedSliders: true,
|
|
21789
21849
|
hideColorGuide: true,
|
|
21790
21850
|
hideOpacity: !allowAlpha,
|
|
21791
21851
|
hideInputType: true,
|
|
21792
21852
|
hideColorTypeBtns: true,
|
|
21793
|
-
hideGradientControls: true
|
|
21853
|
+
hideGradientControls: true,
|
|
21854
|
+
disableDarkMode: true
|
|
21794
21855
|
}
|
|
21795
21856
|
)
|
|
21796
21857
|
}
|
|
@@ -21800,6 +21861,16 @@ var ColorPicker = React62.forwardRef(function ColorPickerWrapper({
|
|
|
21800
21861
|
] });
|
|
21801
21862
|
});
|
|
21802
21863
|
var ColorPicker_default = ColorPicker;
|
|
21864
|
+
var rgbToHex = (rgb) => {
|
|
21865
|
+
const rgbValues = rgb.match(/\d+/g);
|
|
21866
|
+
if (!rgbValues || rgbValues.length !== 3 && rgbValues.length !== 4) {
|
|
21867
|
+
return rgb;
|
|
21868
|
+
}
|
|
21869
|
+
return "#" + rgbValues.slice(0, 3).map((val) => {
|
|
21870
|
+
const hex = parseInt(val, 10).toString(16);
|
|
21871
|
+
return hex.length === 1 ? "0" + hex : hex;
|
|
21872
|
+
}).join("");
|
|
21873
|
+
};
|
|
21803
21874
|
|
|
21804
21875
|
// src/components/input/UploadClickableArea.tsx
|
|
21805
21876
|
import { Box as Box3 } from "@mui/material";
|
|
@@ -23009,8 +23080,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23009
23080
|
),
|
|
23010
23081
|
autoComplete: "off",
|
|
23011
23082
|
onMouseEnter: () => setIsHover(true),
|
|
23012
|
-
onMouseLeave: () => setIsHover(false)
|
|
23013
|
-
"data-testid": "autocomplete-input"
|
|
23083
|
+
onMouseLeave: () => setIsHover(false)
|
|
23014
23084
|
}
|
|
23015
23085
|
) });
|
|
23016
23086
|
};
|
|
@@ -25535,9 +25605,10 @@ var renderChildrenWithMath = (children) => React80.Children.map(children, (child
|
|
|
25535
25605
|
return renderWithMath(child);
|
|
25536
25606
|
}
|
|
25537
25607
|
if (React80.isValidElement(child)) {
|
|
25538
|
-
|
|
25539
|
-
|
|
25540
|
-
|
|
25608
|
+
const element = child;
|
|
25609
|
+
return React80.cloneElement(element, {
|
|
25610
|
+
...element.props,
|
|
25611
|
+
children: renderChildrenWithMath(element.props.children)
|
|
25541
25612
|
});
|
|
25542
25613
|
}
|
|
25543
25614
|
return child;
|
|
@@ -26124,7 +26195,7 @@ function Carousel({
|
|
|
26124
26195
|
const [isRightArrowHidden, setRightArrowHidden] = React85.useState(true);
|
|
26125
26196
|
const [paddingElement, setPaddingElement] = React85.useState();
|
|
26126
26197
|
const [visibleCount, setVisibleCount] = React85.useState();
|
|
26127
|
-
const showedElementsRef = React85.useRef();
|
|
26198
|
+
const showedElementsRef = React85.useRef(void 0);
|
|
26128
26199
|
const [showedElements, setShowedElements] = React85.useState();
|
|
26129
26200
|
const updateArrows = React85.useCallback(() => {
|
|
26130
26201
|
if (!showedElementsRef.current) {
|
|
@@ -26667,7 +26738,7 @@ import MuiTabs from "@mui/material/Tabs";
|
|
|
26667
26738
|
|
|
26668
26739
|
// src/components/layout/SwipeableViews.tsx
|
|
26669
26740
|
import * as React87 from "react";
|
|
26670
|
-
import { useEffect as
|
|
26741
|
+
import { useEffect as useEffect23, useRef as useRef27, useState as useState34 } from "react";
|
|
26671
26742
|
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
26672
26743
|
var styles = {
|
|
26673
26744
|
container: {
|
|
@@ -26701,12 +26772,12 @@ function SwipeableViews({
|
|
|
26701
26772
|
disableScroll = false,
|
|
26702
26773
|
...rootProps
|
|
26703
26774
|
}) {
|
|
26704
|
-
const containerRef =
|
|
26705
|
-
const scrollTimeout =
|
|
26706
|
-
const scrollingMethod =
|
|
26775
|
+
const containerRef = useRef27(null);
|
|
26776
|
+
const scrollTimeout = useRef27(null);
|
|
26777
|
+
const scrollingMethod = useRef27("none");
|
|
26707
26778
|
const [previousIndex, setPreviousIndex] = useState34(index);
|
|
26708
|
-
const hideScrollAnimation =
|
|
26709
|
-
|
|
26779
|
+
const hideScrollAnimation = useRef27(true);
|
|
26780
|
+
useEffect23(() => {
|
|
26710
26781
|
if (containerRef.current) {
|
|
26711
26782
|
if (scrollingMethod.current === "manual") {
|
|
26712
26783
|
scrollingMethod.current = "none";
|
|
@@ -27340,7 +27411,9 @@ var ToolbarTitle = React91.forwardRef(function ToolbarTitle2({
|
|
|
27340
27411
|
hoverActions,
|
|
27341
27412
|
color: color2 = grey900
|
|
27342
27413
|
}, ref) {
|
|
27343
|
-
const textElementRef = React91.useRef(
|
|
27414
|
+
const textElementRef = React91.useRef(
|
|
27415
|
+
null
|
|
27416
|
+
);
|
|
27344
27417
|
const [showHoverActions, setShowHoverActions] = useState37(false);
|
|
27345
27418
|
return /* @__PURE__ */ jsx170(Box_default2, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx170(
|
|
27346
27419
|
TextEllipsisTooltip_default,
|
|
@@ -27866,31 +27939,31 @@ var MinimizableWindow = React92.forwardRef(function MinimizableWindow2({
|
|
|
27866
27939
|
var MinimizableWindow_default = MinimizableWindow;
|
|
27867
27940
|
|
|
27868
27941
|
// src/hooks/useFormatters.ts
|
|
27869
|
-
import { useCallback as
|
|
27942
|
+
import { useCallback as useCallback22, useContext as useContext16 } from "react";
|
|
27870
27943
|
var useFormatters = () => {
|
|
27871
27944
|
const { locale, currency, timezone } = useContext16(IntlContext);
|
|
27872
27945
|
return {
|
|
27873
|
-
formatCompactNumber:
|
|
27946
|
+
formatCompactNumber: useCallback22(
|
|
27874
27947
|
(value) => formatCompactNumber(value, locale),
|
|
27875
27948
|
[locale]
|
|
27876
27949
|
),
|
|
27877
|
-
formatNumber:
|
|
27950
|
+
formatNumber: useCallback22(
|
|
27878
27951
|
(value, fractionSize) => formatNumber(value, locale, fractionSize),
|
|
27879
27952
|
[locale]
|
|
27880
27953
|
),
|
|
27881
|
-
formatPercentage:
|
|
27954
|
+
formatPercentage: useCallback22(
|
|
27882
27955
|
(value, fractionSize) => formatPercentage(value, locale, fractionSize),
|
|
27883
27956
|
[locale]
|
|
27884
27957
|
),
|
|
27885
|
-
formatCurrency:
|
|
27958
|
+
formatCurrency: useCallback22(
|
|
27886
27959
|
(value, notation) => formatCurrency(value, locale, currency, notation),
|
|
27887
27960
|
[currency, locale]
|
|
27888
27961
|
),
|
|
27889
|
-
formatDate:
|
|
27962
|
+
formatDate: useCallback22(
|
|
27890
27963
|
(date, format2) => formatDate(date, locale, timezone, format2),
|
|
27891
27964
|
[locale, timezone]
|
|
27892
27965
|
),
|
|
27893
|
-
formatPhone:
|
|
27966
|
+
formatPhone: useCallback22(
|
|
27894
27967
|
(phone, format2) => formatPhone(phone, format2),
|
|
27895
27968
|
[]
|
|
27896
27969
|
)
|
|
@@ -28128,7 +28201,7 @@ react-is/cjs/react-is.development.js:
|
|
|
28128
28201
|
|
|
28129
28202
|
@mui/styled-engine/esm/index.js:
|
|
28130
28203
|
(**
|
|
28131
|
-
* @mui/styled-engine v7.3.
|
|
28204
|
+
* @mui/styled-engine v7.3.7
|
|
28132
28205
|
*
|
|
28133
28206
|
* @license MIT
|
|
28134
28207
|
* This source code is licensed under the MIT license found in the
|
|
@@ -28137,7 +28210,7 @@ react-is/cjs/react-is.development.js:
|
|
|
28137
28210
|
|
|
28138
28211
|
@mui/system/esm/index.js:
|
|
28139
28212
|
(**
|
|
28140
|
-
* @mui/system v7.3.
|
|
28213
|
+
* @mui/system v7.3.7
|
|
28141
28214
|
*
|
|
28142
28215
|
* @license MIT
|
|
28143
28216
|
* This source code is licensed under the MIT license found in the
|