@true-engineering/true-react-common-ui-kit 4.0.0-alpha1 → 4.0.0-alpha3
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/README.md +40 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -11
- package/dist/components/SearchInput/SearchInput.styles.d.ts +3 -5
- package/dist/components/WithPopup/WithPopup.d.ts +10 -3
- package/dist/components/WithPopup/WithPopup.styles.d.ts +1 -1
- package/dist/components/WithPopup/helpers.d.ts +2 -0
- package/dist/components/WithPopup/types.d.ts +3 -0
- package/dist/components/WithTooltip/WithTooltip.styles.d.ts +1 -0
- package/dist/theme/common.d.ts +4 -2
- package/dist/true-react-common-ui-kit.js +222 -233
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +198 -209
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +1 -1
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +6 -1
- package/src/components/IncrementInput/IncrementInput.styles.ts +1 -1
- package/src/components/SearchInput/SearchInput.styles.ts +16 -29
- package/src/components/SearchInput/SearchInput.tsx +12 -20
- package/src/components/WithPopup/WithPopup.stories.tsx +1 -0
- package/src/components/WithPopup/WithPopup.styles.ts +2 -0
- package/src/components/WithPopup/WithPopup.tsx +36 -10
- package/src/components/WithPopup/helpers.ts +9 -0
- package/src/components/WithPopup/types.ts +7 -0
- package/src/components/WithTooltip/WithTooltip.styles.ts +6 -0
- package/src/components/WithTooltip/WithTooltip.tsx +7 -2
- package/src/theme/common.ts +5 -2
|
@@ -1045,9 +1045,11 @@
|
|
|
1045
1045
|
overflow: "auto",
|
|
1046
1046
|
// Chromium
|
|
1047
1047
|
"@supports selector(::-webkit-scrollbar)": {
|
|
1048
|
+
"--webkit-scrollbar-width": "10px",
|
|
1049
|
+
"--webkit-scrollbar-height": "10px",
|
|
1048
1050
|
"&::-webkit-scrollbar": {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
+
width: "var(--webkit-scrollbar-width)",
|
|
1052
|
+
height: "var(--webkit-scrollbar-height)",
|
|
1051
1053
|
"&-thumb": {
|
|
1052
1054
|
width: 6,
|
|
1053
1055
|
minHeight: 30,
|
|
@@ -1898,7 +1900,7 @@
|
|
|
1898
1900
|
}
|
|
1899
1901
|
return target;
|
|
1900
1902
|
}
|
|
1901
|
-
function ownKeys$
|
|
1903
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
1902
1904
|
var keys2 = Object.keys(object);
|
|
1903
1905
|
if (Object.getOwnPropertySymbols) {
|
|
1904
1906
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1911,12 +1913,12 @@
|
|
|
1911
1913
|
}
|
|
1912
1914
|
return keys2;
|
|
1913
1915
|
}
|
|
1914
|
-
function _object_spread_props$
|
|
1916
|
+
function _object_spread_props$W(target, source) {
|
|
1915
1917
|
source = source != null ? source : {};
|
|
1916
1918
|
if (Object.getOwnPropertyDescriptors) {
|
|
1917
1919
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1918
1920
|
} else {
|
|
1919
|
-
ownKeys$
|
|
1921
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
1920
1922
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1921
1923
|
});
|
|
1922
1924
|
}
|
|
@@ -1971,7 +1973,7 @@
|
|
|
1971
1973
|
return trueReactPlatformHelpers.mergeStyles(styles, trueReactPlatformHelpers.isNotEmpty(componentName) ? theme === null || theme === void 0 ? void 0 : (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : _theme_components[componentName] : void 0, tweakStyles);
|
|
1972
1974
|
});
|
|
1973
1975
|
return function(data) {
|
|
1974
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
1976
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$W(_object_spread$16({}, data), {
|
|
1975
1977
|
theme: cleanStyles(data.theme)
|
|
1976
1978
|
}) : data);
|
|
1977
1979
|
};
|
|
@@ -7671,7 +7673,7 @@
|
|
|
7671
7673
|
}
|
|
7672
7674
|
return target;
|
|
7673
7675
|
}
|
|
7674
|
-
function ownKeys$
|
|
7676
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7675
7677
|
var keys2 = Object.keys(object);
|
|
7676
7678
|
if (Object.getOwnPropertySymbols) {
|
|
7677
7679
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7684,12 +7686,12 @@
|
|
|
7684
7686
|
}
|
|
7685
7687
|
return keys2;
|
|
7686
7688
|
}
|
|
7687
|
-
function _object_spread_props$
|
|
7689
|
+
function _object_spread_props$V(target, source) {
|
|
7688
7690
|
source = source != null ? source : {};
|
|
7689
7691
|
if (Object.getOwnPropertyDescriptors) {
|
|
7690
7692
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7691
7693
|
} else {
|
|
7692
|
-
ownKeys$
|
|
7694
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7693
7695
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7694
7696
|
});
|
|
7695
7697
|
}
|
|
@@ -7721,19 +7723,19 @@
|
|
|
7721
7723
|
}, path), index);
|
|
7722
7724
|
}),
|
|
7723
7725
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7724
|
-
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$
|
|
7726
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$V(_object_spread$13({}, rect), {
|
|
7725
7727
|
key: index
|
|
7726
7728
|
}));
|
|
7727
7729
|
}),
|
|
7728
7730
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7729
|
-
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$
|
|
7731
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$V(_object_spread$13({}, circle), {
|
|
7730
7732
|
key: index
|
|
7731
7733
|
}));
|
|
7732
7734
|
})
|
|
7733
7735
|
]
|
|
7734
7736
|
});
|
|
7735
7737
|
};
|
|
7736
|
-
var useStyles$
|
|
7738
|
+
var useStyles$W = createThemedStyles("Icon", {
|
|
7737
7739
|
root: {
|
|
7738
7740
|
display: "flex",
|
|
7739
7741
|
alignItems: "center"
|
|
@@ -7767,7 +7769,7 @@
|
|
|
7767
7769
|
}
|
|
7768
7770
|
return target;
|
|
7769
7771
|
}
|
|
7770
|
-
function ownKeys$
|
|
7772
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7771
7773
|
var keys2 = Object.keys(object);
|
|
7772
7774
|
if (Object.getOwnPropertySymbols) {
|
|
7773
7775
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7780,12 +7782,12 @@
|
|
|
7780
7782
|
}
|
|
7781
7783
|
return keys2;
|
|
7782
7784
|
}
|
|
7783
|
-
function _object_spread_props$
|
|
7785
|
+
function _object_spread_props$U(target, source) {
|
|
7784
7786
|
source = source != null ? source : {};
|
|
7785
7787
|
if (Object.getOwnPropertyDescriptors) {
|
|
7786
7788
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7787
7789
|
} else {
|
|
7788
|
-
ownKeys$
|
|
7790
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7789
7791
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7790
7792
|
});
|
|
7791
7793
|
}
|
|
@@ -7793,10 +7795,10 @@
|
|
|
7793
7795
|
}
|
|
7794
7796
|
var Icon = function(param) {
|
|
7795
7797
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7796
|
-
var classes = useStyles$
|
|
7798
|
+
var classes = useStyles$W({
|
|
7797
7799
|
theme: tweakStyles
|
|
7798
7800
|
});
|
|
7799
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7801
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$12({
|
|
7800
7802
|
className: classes.root
|
|
7801
7803
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7802
7804
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7812,7 +7814,15 @@
|
|
|
7812
7814
|
}) : icon;
|
|
7813
7815
|
};
|
|
7814
7816
|
var DEFAULT_OFFSET = 6;
|
|
7815
|
-
var
|
|
7817
|
+
var minWidthRelativeToTrigger = react.size({
|
|
7818
|
+
apply: function apply2(param) {
|
|
7819
|
+
var rects = param.rects, elements = param.elements;
|
|
7820
|
+
Object.assign(elements.floating.style, {
|
|
7821
|
+
minWidth: "".concat(rects.reference.width, "px")
|
|
7822
|
+
});
|
|
7823
|
+
}
|
|
7824
|
+
});
|
|
7825
|
+
var useStyles$V = createThemedStyles("WithPopup", {
|
|
7816
7826
|
trigger: {
|
|
7817
7827
|
width: "fit-content"
|
|
7818
7828
|
},
|
|
@@ -7827,6 +7837,7 @@
|
|
|
7827
7837
|
zIndex: 5,
|
|
7828
7838
|
outline: "none"
|
|
7829
7839
|
},
|
|
7840
|
+
arrow: {},
|
|
7830
7841
|
animationEnd: {},
|
|
7831
7842
|
animationStart: {},
|
|
7832
7843
|
"dropdown-initial": {
|
|
@@ -7924,7 +7935,7 @@
|
|
|
7924
7935
|
}
|
|
7925
7936
|
return target;
|
|
7926
7937
|
}
|
|
7927
|
-
function ownKeys$
|
|
7938
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
7928
7939
|
var keys2 = Object.keys(object);
|
|
7929
7940
|
if (Object.getOwnPropertySymbols) {
|
|
7930
7941
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7937,12 +7948,12 @@
|
|
|
7937
7948
|
}
|
|
7938
7949
|
return keys2;
|
|
7939
7950
|
}
|
|
7940
|
-
function _object_spread_props$
|
|
7951
|
+
function _object_spread_props$T(target, source) {
|
|
7941
7952
|
source = source != null ? source : {};
|
|
7942
7953
|
if (Object.getOwnPropertyDescriptors) {
|
|
7943
7954
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7944
7955
|
} else {
|
|
7945
|
-
ownKeys$
|
|
7956
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
7946
7957
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7947
7958
|
});
|
|
7948
7959
|
}
|
|
@@ -7968,11 +7979,12 @@
|
|
|
7968
7979
|
return _array_like_to_array$m(o, minLen);
|
|
7969
7980
|
}
|
|
7970
7981
|
var WithPopup = function(param) {
|
|
7971
|
-
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ?
|
|
7972
|
-
var classes = useStyles$
|
|
7982
|
+
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, arrowProps = param.arrowProps, popupData = param.popupData, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? eventType === "click" : _param_shouldStopPropagation, _param_shouldHideOnScroll = param.shouldHideOnScroll, shouldHideOnScroll = _param_shouldHideOnScroll === void 0 ? false : _param_shouldHideOnScroll, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_canBeFlipped = param.canBeFlipped, canBeFlipped = _param_canBeFlipped === void 0 ? true : _param_canBeFlipped, _param_isTriggerWrapped = param.isTriggerWrapped, isTriggerWrapped = _param_isTriggerWrapped === void 0 ? eventType === "hover" : _param_isTriggerWrapped, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldShowArrow = param.shouldShowArrow, shouldShowArrow = _param_shouldShowArrow === void 0 ? false : _param_shouldShowArrow, _param_isMinWidthSameAsTrigger = param.isMinWidthSameAsTrigger, isMinWidthSameAsTrigger = _param_isMinWidthSameAsTrigger === void 0 ? false : _param_isMinWidthSameAsTrigger, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle;
|
|
7983
|
+
var classes = useStyles$V({
|
|
7973
7984
|
theme: tweakStyles
|
|
7974
7985
|
});
|
|
7975
7986
|
var _useState = _sliced_to_array$m(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
7987
|
+
var arrowRef = React.useRef(null);
|
|
7976
7988
|
var handleToggle = function(isActive, event) {
|
|
7977
7989
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
7978
7990
|
if (!isDisabled) {
|
|
@@ -7989,8 +8001,13 @@
|
|
|
7989
8001
|
react.offset(popupOffset),
|
|
7990
8002
|
canBeFlipped && react.flip({
|
|
7991
8003
|
fallbackAxisSideDirection: "start"
|
|
8004
|
+
}),
|
|
8005
|
+
isMinWidthSameAsTrigger && minWidthRelativeToTrigger
|
|
8006
|
+
].concat(_to_consumable_array$7(middlewares), [
|
|
8007
|
+
shouldShowArrow && react.arrow({
|
|
8008
|
+
element: arrowRef
|
|
7992
8009
|
})
|
|
7993
|
-
]
|
|
8010
|
+
]),
|
|
7994
8011
|
whileElementsMounted: react.autoUpdate,
|
|
7995
8012
|
placement,
|
|
7996
8013
|
onOpenChange: handleToggle
|
|
@@ -8042,23 +8059,31 @@
|
|
|
8042
8059
|
var _obj2;
|
|
8043
8060
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8044
8061
|
children: [
|
|
8045
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8062
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$11({
|
|
8046
8063
|
className: clsx(classes.trigger, (_obj2 = {}, _define_property$13(_obj2, classes.clickable, eventType === "click"), _define_property$13(_obj2, classes.disabled, isDisabled), _define_property$13(_obj2, classes.active, isOpen), _obj2))
|
|
8047
|
-
}, referenceProps, trueReactPlatformHelpers.
|
|
8064
|
+
}, referenceProps, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
8048
8065
|
children: triggerElement
|
|
8049
8066
|
})) : triggerElement,
|
|
8050
8067
|
isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
8051
|
-
root:
|
|
8052
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8068
|
+
root: shouldRenderInBody ? document.body : refs.reference.current,
|
|
8069
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$11({
|
|
8070
|
+
ref: refs.setFloating,
|
|
8053
8071
|
style: floatingStyles,
|
|
8054
|
-
className: classes.popup
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
8072
|
+
className: classes.popup
|
|
8073
|
+
}, getFloatingProps(), trueReactPlatformHelpers.addDataAttributes(popupData)), {
|
|
8074
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
8058
8075
|
className: classes["dropdown-".concat(status)],
|
|
8059
|
-
children:
|
|
8060
|
-
|
|
8061
|
-
|
|
8076
|
+
children: [
|
|
8077
|
+
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$T(_object_spread$11({}, arrowProps), {
|
|
8078
|
+
ref: arrowRef,
|
|
8079
|
+
context,
|
|
8080
|
+
className: classes.arrow
|
|
8081
|
+
})),
|
|
8082
|
+
trueReactPlatformHelpers.applyAction(children, {
|
|
8083
|
+
floatingContext: context,
|
|
8084
|
+
onClose: handleClose
|
|
8085
|
+
})
|
|
8086
|
+
]
|
|
8062
8087
|
})
|
|
8063
8088
|
}))
|
|
8064
8089
|
})
|
|
@@ -8068,7 +8093,7 @@
|
|
|
8068
8093
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8069
8094
|
var ICON_SIZE$1 = 20;
|
|
8070
8095
|
var ICON_GAP = 12;
|
|
8071
|
-
var useStyles$
|
|
8096
|
+
var useStyles$U = createThemedStyles("ListItem", {
|
|
8072
8097
|
root: {
|
|
8073
8098
|
display: "flex",
|
|
8074
8099
|
alignItems: "center",
|
|
@@ -8135,7 +8160,7 @@
|
|
|
8135
8160
|
}
|
|
8136
8161
|
return target;
|
|
8137
8162
|
}
|
|
8138
|
-
function ownKeys$
|
|
8163
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8139
8164
|
var keys2 = Object.keys(object);
|
|
8140
8165
|
if (Object.getOwnPropertySymbols) {
|
|
8141
8166
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8148,12 +8173,12 @@
|
|
|
8148
8173
|
}
|
|
8149
8174
|
return keys2;
|
|
8150
8175
|
}
|
|
8151
|
-
function _object_spread_props$
|
|
8176
|
+
function _object_spread_props$S(target, source) {
|
|
8152
8177
|
source = source != null ? source : {};
|
|
8153
8178
|
if (Object.getOwnPropertyDescriptors) {
|
|
8154
8179
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8155
8180
|
} else {
|
|
8156
|
-
ownKeys$
|
|
8181
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8157
8182
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8158
8183
|
});
|
|
8159
8184
|
}
|
|
@@ -8161,7 +8186,7 @@
|
|
|
8161
8186
|
}
|
|
8162
8187
|
var ListItem = function(param) {
|
|
8163
8188
|
var icon = param.icon, item = param.item, nestedItems = param.nestedItems, isDisabled = param.disabled, isFocused = param.isFocused, shouldDrawSpacerAbove = param.shouldDrawSpacerAbove, shouldDrawSpacerBelow = param.shouldDrawSpacerBelow, testId = param.testId, tweakStyles = param.tweakStyles, _param_view = param.view, view = _param_view === void 0 ? "default" : _param_view, withIconGap = param.withIconGap, data = param.data, onClick = param.onClick;
|
|
8164
|
-
var classes = useStyles$
|
|
8189
|
+
var classes = useStyles$U({
|
|
8165
8190
|
theme: tweakStyles
|
|
8166
8191
|
});
|
|
8167
8192
|
var _obj2;
|
|
@@ -8170,9 +8195,9 @@
|
|
|
8170
8195
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8171
8196
|
className: classes.spacer
|
|
8172
8197
|
}),
|
|
8173
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8198
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$S(_object_spread$10({
|
|
8174
8199
|
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$12(_obj2, classes.disabledItem, isDisabled), _define_property$12(_obj2, classes.withIconGap, withIconGap), _define_property$12(_obj2, classes.focused, isFocused), _obj2))
|
|
8175
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8200
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$S(_object_spread$10({}, data), {
|
|
8176
8201
|
disabled: isDisabled ? true : void 0
|
|
8177
8202
|
}))), {
|
|
8178
8203
|
children: [
|
|
@@ -8198,7 +8223,7 @@
|
|
|
8198
8223
|
]
|
|
8199
8224
|
});
|
|
8200
8225
|
};
|
|
8201
|
-
var useStyles$
|
|
8226
|
+
var useStyles$T = createThemedStyles("List", {
|
|
8202
8227
|
root: {
|
|
8203
8228
|
minWidth: 180,
|
|
8204
8229
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8214,7 +8239,7 @@
|
|
|
8214
8239
|
paddingLeft: 4
|
|
8215
8240
|
}
|
|
8216
8241
|
});
|
|
8217
|
-
var withPopupStyles = {
|
|
8242
|
+
var withPopupStyles$1 = {
|
|
8218
8243
|
trigger: {
|
|
8219
8244
|
width: "100%"
|
|
8220
8245
|
}
|
|
@@ -8247,7 +8272,7 @@
|
|
|
8247
8272
|
}
|
|
8248
8273
|
return target;
|
|
8249
8274
|
}
|
|
8250
|
-
function ownKeys$
|
|
8275
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8251
8276
|
var keys2 = Object.keys(object);
|
|
8252
8277
|
if (Object.getOwnPropertySymbols) {
|
|
8253
8278
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8260,12 +8285,12 @@
|
|
|
8260
8285
|
}
|
|
8261
8286
|
return keys2;
|
|
8262
8287
|
}
|
|
8263
|
-
function _object_spread_props$
|
|
8288
|
+
function _object_spread_props$R(target, source) {
|
|
8264
8289
|
source = source != null ? source : {};
|
|
8265
8290
|
if (Object.getOwnPropertyDescriptors) {
|
|
8266
8291
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8267
8292
|
} else {
|
|
8268
|
-
ownKeys$
|
|
8293
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8269
8294
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8270
8295
|
});
|
|
8271
8296
|
}
|
|
@@ -8273,7 +8298,7 @@
|
|
|
8273
8298
|
}
|
|
8274
8299
|
var List = function(param) {
|
|
8275
8300
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8276
|
-
var classes = useStyles$
|
|
8301
|
+
var classes = useStyles$T({
|
|
8277
8302
|
theme: tweakStyles
|
|
8278
8303
|
});
|
|
8279
8304
|
var handleItemClick = function(event, param2) {
|
|
@@ -8283,11 +8308,11 @@
|
|
|
8283
8308
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8284
8309
|
}
|
|
8285
8310
|
};
|
|
8286
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8311
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$$({
|
|
8287
8312
|
className: classes.root
|
|
8288
8313
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8289
8314
|
children: items.map(function(item, i) {
|
|
8290
|
-
var itemProps = _object_spread_props$
|
|
8315
|
+
var itemProps = _object_spread_props$R(_object_spread$$({
|
|
8291
8316
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
8292
8317
|
}, item), {
|
|
8293
8318
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8299,13 +8324,13 @@
|
|
|
8299
8324
|
return /* @__PURE__ */ jsx(React.Fragment, {
|
|
8300
8325
|
children: trueReactPlatformHelpers.isArrayNotEmpty(item.nestedItems) ? /* @__PURE__ */ jsx(WithPopup, {
|
|
8301
8326
|
eventType: "hover",
|
|
8302
|
-
tweakStyles: withPopupStyles,
|
|
8327
|
+
tweakStyles: withPopupStyles$1,
|
|
8303
8328
|
placement: "right-start",
|
|
8304
8329
|
popupOffset: 0,
|
|
8305
8330
|
shouldRenderInBody: false,
|
|
8306
8331
|
trigger: function(param2) {
|
|
8307
8332
|
var triggerProps = param2.triggerProps;
|
|
8308
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8333
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$R(_object_spread$$({}, itemProps), {
|
|
8309
8334
|
isFocused: triggerProps.isActive
|
|
8310
8335
|
}));
|
|
8311
8336
|
},
|
|
@@ -8350,7 +8375,7 @@
|
|
|
8350
8375
|
}
|
|
8351
8376
|
return target;
|
|
8352
8377
|
}
|
|
8353
|
-
var useStyles$
|
|
8378
|
+
var useStyles$S = createThemedStyles("AccountInfo", _object_spread$_({
|
|
8354
8379
|
root: {
|
|
8355
8380
|
display: "flex"
|
|
8356
8381
|
},
|
|
@@ -8463,7 +8488,7 @@
|
|
|
8463
8488
|
}
|
|
8464
8489
|
return target;
|
|
8465
8490
|
}
|
|
8466
|
-
function ownKeys$
|
|
8491
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8467
8492
|
var keys2 = Object.keys(object);
|
|
8468
8493
|
if (Object.getOwnPropertySymbols) {
|
|
8469
8494
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8476,12 +8501,12 @@
|
|
|
8476
8501
|
}
|
|
8477
8502
|
return keys2;
|
|
8478
8503
|
}
|
|
8479
|
-
function _object_spread_props$
|
|
8504
|
+
function _object_spread_props$Q(target, source) {
|
|
8480
8505
|
source = source != null ? source : {};
|
|
8481
8506
|
if (Object.getOwnPropertyDescriptors) {
|
|
8482
8507
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8483
8508
|
} else {
|
|
8484
|
-
ownKeys$
|
|
8509
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8485
8510
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8486
8511
|
});
|
|
8487
8512
|
}
|
|
@@ -8505,7 +8530,7 @@
|
|
|
8505
8530
|
}
|
|
8506
8531
|
var AccountInfo = function(param) {
|
|
8507
8532
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8508
|
-
var classes = useStyles$
|
|
8533
|
+
var classes = useStyles$S({
|
|
8509
8534
|
theme: tweakStyles
|
|
8510
8535
|
});
|
|
8511
8536
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8525,7 +8550,7 @@
|
|
|
8525
8550
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8526
8551
|
return setIsMenuOpen(false);
|
|
8527
8552
|
}, nameRef);
|
|
8528
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8553
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$Q(_object_spread$Z({
|
|
8529
8554
|
className: classes.root
|
|
8530
8555
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8531
8556
|
children: [
|
|
@@ -8575,7 +8600,7 @@
|
|
|
8575
8600
|
]
|
|
8576
8601
|
}));
|
|
8577
8602
|
};
|
|
8578
|
-
var useStyles$
|
|
8603
|
+
var useStyles$R = createThemedStyles("AddButton", {
|
|
8579
8604
|
root: {
|
|
8580
8605
|
display: "flex",
|
|
8581
8606
|
alignItems: "center",
|
|
@@ -8629,7 +8654,7 @@
|
|
|
8629
8654
|
}
|
|
8630
8655
|
return target;
|
|
8631
8656
|
}
|
|
8632
|
-
function ownKeys$
|
|
8657
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8633
8658
|
var keys2 = Object.keys(object);
|
|
8634
8659
|
if (Object.getOwnPropertySymbols) {
|
|
8635
8660
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8642,12 +8667,12 @@
|
|
|
8642
8667
|
}
|
|
8643
8668
|
return keys2;
|
|
8644
8669
|
}
|
|
8645
|
-
function _object_spread_props$
|
|
8670
|
+
function _object_spread_props$P(target, source) {
|
|
8646
8671
|
source = source != null ? source : {};
|
|
8647
8672
|
if (Object.getOwnPropertyDescriptors) {
|
|
8648
8673
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8649
8674
|
} else {
|
|
8650
|
-
ownKeys$
|
|
8675
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8651
8676
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8652
8677
|
});
|
|
8653
8678
|
}
|
|
@@ -8655,10 +8680,10 @@
|
|
|
8655
8680
|
}
|
|
8656
8681
|
var AddButton = function(param) {
|
|
8657
8682
|
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onClick = param.onClick, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8658
|
-
var classes = useStyles$
|
|
8683
|
+
var classes = useStyles$R({
|
|
8659
8684
|
theme: tweakStyles
|
|
8660
8685
|
});
|
|
8661
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8686
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$P(_object_spread$Y({
|
|
8662
8687
|
type,
|
|
8663
8688
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8664
8689
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8677,7 +8702,7 @@
|
|
|
8677
8702
|
]
|
|
8678
8703
|
}));
|
|
8679
8704
|
};
|
|
8680
|
-
var useStyles$
|
|
8705
|
+
var useStyles$Q = createThemedStyles("DotsPreloader", {
|
|
8681
8706
|
root: {
|
|
8682
8707
|
display: "flex",
|
|
8683
8708
|
gap: 4,
|
|
@@ -8723,7 +8748,7 @@
|
|
|
8723
8748
|
});
|
|
8724
8749
|
var DotsPreloader = function(param) {
|
|
8725
8750
|
var tweakStyles = param.tweakStyles;
|
|
8726
|
-
var classes = useStyles$
|
|
8751
|
+
var classes = useStyles$Q({
|
|
8727
8752
|
theme: tweakStyles
|
|
8728
8753
|
});
|
|
8729
8754
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8789,7 +8814,7 @@
|
|
|
8789
8814
|
]
|
|
8790
8815
|
});
|
|
8791
8816
|
};
|
|
8792
|
-
var useStyles$
|
|
8817
|
+
var useStyles$P = createThemedStyles("SvgPreloader", {
|
|
8793
8818
|
root: {
|
|
8794
8819
|
display: "flex",
|
|
8795
8820
|
width: "100%",
|
|
@@ -8799,7 +8824,7 @@
|
|
|
8799
8824
|
var SvgPreloader = function(param) {
|
|
8800
8825
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8801
8826
|
var _theme_preloaders;
|
|
8802
|
-
var classes = useStyles$
|
|
8827
|
+
var classes = useStyles$P({
|
|
8803
8828
|
theme: tweakStyles
|
|
8804
8829
|
});
|
|
8805
8830
|
var theme = React.useContext(ThemeContext).theme;
|
|
@@ -8813,7 +8838,7 @@
|
|
|
8813
8838
|
}
|
|
8814
8839
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8815
8840
|
};
|
|
8816
|
-
var useStyles$
|
|
8841
|
+
var useStyles$O = createThemedStyles("ThemedPreloader", {
|
|
8817
8842
|
root: {
|
|
8818
8843
|
display: "flex"
|
|
8819
8844
|
},
|
|
@@ -8852,7 +8877,7 @@
|
|
|
8852
8877
|
}
|
|
8853
8878
|
return target;
|
|
8854
8879
|
}
|
|
8855
|
-
function ownKeys$
|
|
8880
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
8856
8881
|
var keys2 = Object.keys(object);
|
|
8857
8882
|
if (Object.getOwnPropertySymbols) {
|
|
8858
8883
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8865,12 +8890,12 @@
|
|
|
8865
8890
|
}
|
|
8866
8891
|
return keys2;
|
|
8867
8892
|
}
|
|
8868
|
-
function _object_spread_props$
|
|
8893
|
+
function _object_spread_props$O(target, source) {
|
|
8869
8894
|
source = source != null ? source : {};
|
|
8870
8895
|
if (Object.getOwnPropertyDescriptors) {
|
|
8871
8896
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8872
8897
|
} else {
|
|
8873
|
-
ownKeys$
|
|
8898
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
8874
8899
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8875
8900
|
});
|
|
8876
8901
|
}
|
|
@@ -8878,7 +8903,7 @@
|
|
|
8878
8903
|
}
|
|
8879
8904
|
var ThemedPreloader = function(param) {
|
|
8880
8905
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, _param_useCurrentColor = param.useCurrentColor, useCurrentColor = _param_useCurrentColor === void 0 ? false : _param_useCurrentColor, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8881
|
-
var classes = useStyles$
|
|
8906
|
+
var classes = useStyles$O({
|
|
8882
8907
|
theme: tweakStyles
|
|
8883
8908
|
});
|
|
8884
8909
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8891,7 +8916,7 @@
|
|
|
8891
8916
|
className: "tweakSvgPreloader",
|
|
8892
8917
|
currentComponentName: "ThemedPreloader"
|
|
8893
8918
|
});
|
|
8894
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8919
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$O(_object_spread$X({
|
|
8895
8920
|
className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
|
|
8896
8921
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8897
8922
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
@@ -8902,7 +8927,7 @@
|
|
|
8902
8927
|
})
|
|
8903
8928
|
}));
|
|
8904
8929
|
};
|
|
8905
|
-
var useStyles$
|
|
8930
|
+
var useStyles$N = createThemedStyles("Button", {
|
|
8906
8931
|
root: {
|
|
8907
8932
|
display: "flex",
|
|
8908
8933
|
justifyContent: "center",
|
|
@@ -9101,7 +9126,7 @@
|
|
|
9101
9126
|
}
|
|
9102
9127
|
return target;
|
|
9103
9128
|
}
|
|
9104
|
-
function ownKeys$
|
|
9129
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9105
9130
|
var keys2 = Object.keys(object);
|
|
9106
9131
|
if (Object.getOwnPropertySymbols) {
|
|
9107
9132
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9114,12 +9139,12 @@
|
|
|
9114
9139
|
}
|
|
9115
9140
|
return keys2;
|
|
9116
9141
|
}
|
|
9117
|
-
function _object_spread_props$
|
|
9142
|
+
function _object_spread_props$N(target, source) {
|
|
9118
9143
|
source = source != null ? source : {};
|
|
9119
9144
|
if (Object.getOwnPropertyDescriptors) {
|
|
9120
9145
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9121
9146
|
} else {
|
|
9122
|
-
ownKeys$
|
|
9147
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9123
9148
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9124
9149
|
});
|
|
9125
9150
|
}
|
|
@@ -9176,7 +9201,7 @@
|
|
|
9176
9201
|
"iconPosition",
|
|
9177
9202
|
"preloaderType"
|
|
9178
9203
|
]);
|
|
9179
|
-
var classes = useStyles$
|
|
9204
|
+
var classes = useStyles$N({
|
|
9180
9205
|
theme: tweakStyles
|
|
9181
9206
|
});
|
|
9182
9207
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9189,7 +9214,7 @@
|
|
|
9189
9214
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
9190
9215
|
var hasNoAction = isDisabled || isLoading;
|
|
9191
9216
|
var _obj2, _obj1;
|
|
9192
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9217
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$N(_object_spread$W({
|
|
9193
9218
|
ref,
|
|
9194
9219
|
type,
|
|
9195
9220
|
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$Y(_obj2, classes.disabled, isDisabled), _define_property$Y(_obj2, classes.fullWidth, isFullWidth), _define_property$Y(_obj2, classes.inline, isInline), _define_property$Y(_obj2, classes.active, isActive), _define_property$Y(_obj2, classes.loading, isLoading), _define_property$Y(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
|
|
@@ -9221,7 +9246,7 @@
|
|
|
9221
9246
|
]
|
|
9222
9247
|
}));
|
|
9223
9248
|
});
|
|
9224
|
-
var useStyles$
|
|
9249
|
+
var useStyles$M = createThemedStyles("Checkbox", {
|
|
9225
9250
|
root: {
|
|
9226
9251
|
cursor: "pointer",
|
|
9227
9252
|
display: "flex",
|
|
@@ -9287,7 +9312,7 @@
|
|
|
9287
9312
|
}
|
|
9288
9313
|
return target;
|
|
9289
9314
|
}
|
|
9290
|
-
function ownKeys$
|
|
9315
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9291
9316
|
var keys2 = Object.keys(object);
|
|
9292
9317
|
if (Object.getOwnPropertySymbols) {
|
|
9293
9318
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9300,12 +9325,12 @@
|
|
|
9300
9325
|
}
|
|
9301
9326
|
return keys2;
|
|
9302
9327
|
}
|
|
9303
|
-
function _object_spread_props$
|
|
9328
|
+
function _object_spread_props$M(target, source) {
|
|
9304
9329
|
source = source != null ? source : {};
|
|
9305
9330
|
if (Object.getOwnPropertyDescriptors) {
|
|
9306
9331
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9307
9332
|
} else {
|
|
9308
|
-
ownKeys$
|
|
9333
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9309
9334
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9310
9335
|
});
|
|
9311
9336
|
}
|
|
@@ -9313,7 +9338,7 @@
|
|
|
9313
9338
|
}
|
|
9314
9339
|
function Checkbox(param) {
|
|
9315
9340
|
var value = param.value, children = param.children, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
9316
|
-
var classes = useStyles$
|
|
9341
|
+
var classes = useStyles$M({
|
|
9317
9342
|
theme: tweakStyles
|
|
9318
9343
|
});
|
|
9319
9344
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9325,7 +9350,7 @@
|
|
|
9325
9350
|
}, event);
|
|
9326
9351
|
};
|
|
9327
9352
|
var _obj2;
|
|
9328
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9353
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$M(_object_spread$V({
|
|
9329
9354
|
className: clsx(classes.root, (_obj2 = {}, _define_property$X(_obj2, classes.checked, isSelected), _define_property$X(_obj2, classes.invalid, isInvalid), _define_property$X(_obj2, classes.disabled, isDisabled), _define_property$X(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
|
|
9330
9355
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9331
9356
|
children: [
|
|
@@ -9352,7 +9377,7 @@
|
|
|
9352
9377
|
]
|
|
9353
9378
|
}));
|
|
9354
9379
|
}
|
|
9355
|
-
var useStyles$
|
|
9380
|
+
var useStyles$L = createThemedStyles("CloseButton", {
|
|
9356
9381
|
root: {
|
|
9357
9382
|
width: 40,
|
|
9358
9383
|
height: 40,
|
|
@@ -9406,7 +9431,7 @@
|
|
|
9406
9431
|
}
|
|
9407
9432
|
return target;
|
|
9408
9433
|
}
|
|
9409
|
-
function ownKeys$
|
|
9434
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9410
9435
|
var keys2 = Object.keys(object);
|
|
9411
9436
|
if (Object.getOwnPropertySymbols) {
|
|
9412
9437
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9419,12 +9444,12 @@
|
|
|
9419
9444
|
}
|
|
9420
9445
|
return keys2;
|
|
9421
9446
|
}
|
|
9422
|
-
function _object_spread_props$
|
|
9447
|
+
function _object_spread_props$L(target, source) {
|
|
9423
9448
|
source = source != null ? source : {};
|
|
9424
9449
|
if (Object.getOwnPropertyDescriptors) {
|
|
9425
9450
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9426
9451
|
} else {
|
|
9427
|
-
ownKeys$
|
|
9452
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9428
9453
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9429
9454
|
});
|
|
9430
9455
|
}
|
|
@@ -9432,10 +9457,10 @@
|
|
|
9432
9457
|
}
|
|
9433
9458
|
var CloseButton = function(param) {
|
|
9434
9459
|
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_icon = param.icon, icon = _param_icon === void 0 ? "close" : _param_icon, onClose = param.onClose;
|
|
9435
|
-
var classes = useStyles$
|
|
9460
|
+
var classes = useStyles$L({
|
|
9436
9461
|
theme: tweakStyles
|
|
9437
9462
|
});
|
|
9438
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9463
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$L(_object_spread$U({
|
|
9439
9464
|
type: "button",
|
|
9440
9465
|
className: classes.root,
|
|
9441
9466
|
onClick: onClose
|
|
@@ -9445,7 +9470,7 @@
|
|
|
9445
9470
|
})
|
|
9446
9471
|
}));
|
|
9447
9472
|
};
|
|
9448
|
-
var useStyles$
|
|
9473
|
+
var useStyles$K = createThemedStyles({
|
|
9449
9474
|
root: {
|
|
9450
9475
|
display: "flex",
|
|
9451
9476
|
flexWrap: "wrap"
|
|
@@ -9538,7 +9563,7 @@
|
|
|
9538
9563
|
return _array_like_to_array$k(o, minLen);
|
|
9539
9564
|
}
|
|
9540
9565
|
var Colors = function() {
|
|
9541
|
-
var classes = useStyles$
|
|
9566
|
+
var classes = useStyles$K();
|
|
9542
9567
|
var theme = React.useContext(ThemeContext).theme;
|
|
9543
9568
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9544
9569
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9568,7 +9593,7 @@
|
|
|
9568
9593
|
})
|
|
9569
9594
|
});
|
|
9570
9595
|
};
|
|
9571
|
-
var useStyles$
|
|
9596
|
+
var useStyles$J = createThemedStyles("CssBaseline", {
|
|
9572
9597
|
"@global html, body": {
|
|
9573
9598
|
fontFamily: "Arial, sans-serif",
|
|
9574
9599
|
color: colors.FONT_MAIN,
|
|
@@ -9607,14 +9632,14 @@
|
|
|
9607
9632
|
}
|
|
9608
9633
|
var CssBaseline = function(param) {
|
|
9609
9634
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9610
|
-
var classes = useStyles$
|
|
9635
|
+
var classes = useStyles$J({
|
|
9611
9636
|
theme: tweakStyles
|
|
9612
9637
|
});
|
|
9613
9638
|
return /* @__PURE__ */ jsx("div", _object_spread$T({
|
|
9614
9639
|
className: classes.root
|
|
9615
9640
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
9616
9641
|
};
|
|
9617
|
-
var useStyles$
|
|
9642
|
+
var useStyles$I = createThemedStyles("WithMessages", {
|
|
9618
9643
|
withMessages: {
|
|
9619
9644
|
display: "flex",
|
|
9620
9645
|
flexDirection: "column",
|
|
@@ -9676,7 +9701,7 @@
|
|
|
9676
9701
|
}
|
|
9677
9702
|
return target;
|
|
9678
9703
|
}
|
|
9679
|
-
function ownKeys$
|
|
9704
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9680
9705
|
var keys2 = Object.keys(object);
|
|
9681
9706
|
if (Object.getOwnPropertySymbols) {
|
|
9682
9707
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9689,12 +9714,12 @@
|
|
|
9689
9714
|
}
|
|
9690
9715
|
return keys2;
|
|
9691
9716
|
}
|
|
9692
|
-
function _object_spread_props$
|
|
9717
|
+
function _object_spread_props$K(target, source) {
|
|
9693
9718
|
source = source != null ? source : {};
|
|
9694
9719
|
if (Object.getOwnPropertyDescriptors) {
|
|
9695
9720
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9696
9721
|
} else {
|
|
9697
|
-
ownKeys$
|
|
9722
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9698
9723
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9699
9724
|
});
|
|
9700
9725
|
}
|
|
@@ -9702,13 +9727,13 @@
|
|
|
9702
9727
|
}
|
|
9703
9728
|
var WithMessages = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
9704
9729
|
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
9705
|
-
var classes = useStyles$
|
|
9730
|
+
var classes = useStyles$I({
|
|
9706
9731
|
theme: tweakStyles
|
|
9707
9732
|
});
|
|
9708
9733
|
var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
|
|
9709
9734
|
var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9710
9735
|
var _obj2;
|
|
9711
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9736
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
9712
9737
|
ref,
|
|
9713
9738
|
className: classes.withMessages,
|
|
9714
9739
|
"data-invalid": shouldShowError ? true : void 0
|
|
@@ -9721,12 +9746,12 @@
|
|
|
9721
9746
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9722
9747
|
className: classes.message,
|
|
9723
9748
|
children: [
|
|
9724
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9749
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9725
9750
|
className: classes.error
|
|
9726
9751
|
}, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
|
|
9727
9752
|
children: errorMessage
|
|
9728
9753
|
})),
|
|
9729
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9754
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9730
9755
|
className: classes.info
|
|
9731
9756
|
}, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
|
|
9732
9757
|
children: infoMessage
|
|
@@ -9736,8 +9761,8 @@
|
|
|
9736
9761
|
]
|
|
9737
9762
|
}));
|
|
9738
9763
|
});
|
|
9739
|
-
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$
|
|
9740
|
-
var useStyles$
|
|
9764
|
+
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$1 = dimensions.Z_INDEX;
|
|
9765
|
+
var useStyles$H = createThemedStyles("ControlWrapper", {
|
|
9741
9766
|
controlWrapper: {
|
|
9742
9767
|
"--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
|
|
9743
9768
|
// borders
|
|
@@ -9759,12 +9784,12 @@
|
|
|
9759
9784
|
zIndex: 0
|
|
9760
9785
|
},
|
|
9761
9786
|
invalid: {
|
|
9762
|
-
zIndex: Z_INDEX$
|
|
9787
|
+
zIndex: Z_INDEX$1.CONTROL_INVALID
|
|
9763
9788
|
},
|
|
9764
9789
|
disabled: {},
|
|
9765
9790
|
focused: {
|
|
9766
9791
|
position: "relative",
|
|
9767
|
-
zIndex: Z_INDEX$
|
|
9792
|
+
zIndex: Z_INDEX$1.CONTROL_FOCUS
|
|
9768
9793
|
},
|
|
9769
9794
|
withValue: {},
|
|
9770
9795
|
loading: {},
|
|
@@ -9916,7 +9941,7 @@
|
|
|
9916
9941
|
}
|
|
9917
9942
|
return target;
|
|
9918
9943
|
}
|
|
9919
|
-
function ownKeys$
|
|
9944
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
9920
9945
|
var keys2 = Object.keys(object);
|
|
9921
9946
|
if (Object.getOwnPropertySymbols) {
|
|
9922
9947
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9929,12 +9954,12 @@
|
|
|
9929
9954
|
}
|
|
9930
9955
|
return keys2;
|
|
9931
9956
|
}
|
|
9932
|
-
function _object_spread_props$
|
|
9957
|
+
function _object_spread_props$J(target, source) {
|
|
9933
9958
|
source = source != null ? source : {};
|
|
9934
9959
|
if (Object.getOwnPropertyDescriptors) {
|
|
9935
9960
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9936
9961
|
} else {
|
|
9937
|
-
ownKeys$
|
|
9962
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
9938
9963
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9939
9964
|
});
|
|
9940
9965
|
}
|
|
@@ -9942,7 +9967,7 @@
|
|
|
9942
9967
|
}
|
|
9943
9968
|
var ControlWrapper = function(param) {
|
|
9944
9969
|
var label = param.label, icon = param.icon, groupPlacement = param.groupPlacement, isInvalid = param.isInvalid, isFocused = param.isFocused, isRequired = param.isRequired, isLoading = param.isLoading, isFullWidth = param.isFullWidth, isDisabled = param.isDisabled, hasValue = param.hasValue, testId = param.testId, children = param.children, tweakStyles = param.tweakStyles, data = param.data, onIconClick = param.onIconClick, onClear = param.onClear;
|
|
9945
|
-
var classes = useStyles$
|
|
9970
|
+
var classes = useStyles$H({
|
|
9946
9971
|
theme: tweakStyles
|
|
9947
9972
|
});
|
|
9948
9973
|
var hasEndIcon = !isLoading && trueReactPlatformHelpers.isReactNodeNotEmpty(icon);
|
|
@@ -9954,7 +9979,7 @@
|
|
|
9954
9979
|
currentComponentName: "ControlWrapper"
|
|
9955
9980
|
});
|
|
9956
9981
|
var _obj2, _obj1, _obj22;
|
|
9957
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9982
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$R({
|
|
9958
9983
|
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && [
|
|
9959
9984
|
classes["placement-".concat(groupPlacement)]
|
|
9960
9985
|
], (_obj2 = {}, _define_property$T(_obj2, classes.invalid, isInvalid), _define_property$T(_obj2, classes.focused, isFocused), _define_property$T(_obj2, classes.withValue, hasValue), _define_property$T(_obj2, classes.disabled, isDisabled), _define_property$T(_obj2, classes.loading, isLoading), _define_property$T(_obj2, classes.minContent, !isFullWidth), _obj2))
|
|
@@ -9971,7 +9996,7 @@
|
|
|
9971
9996
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9972
9997
|
className: classes.controls,
|
|
9973
9998
|
children: [
|
|
9974
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9999
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9975
10000
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9976
10001
|
}, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
|
|
9977
10002
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9981,7 +10006,7 @@
|
|
|
9981
10006
|
})
|
|
9982
10007
|
})
|
|
9983
10008
|
})),
|
|
9984
|
-
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10009
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9985
10010
|
className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$T(_obj22, classes.activeIcon, !isDisabled && trueReactPlatformHelpers.isNotEmpty(onIconClick)), _define_property$T(_obj22, classes.customIcon, !trueReactPlatformHelpers.isString(icon)), _obj22))
|
|
9986
10011
|
}, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
|
|
9987
10012
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9989,7 +10014,7 @@
|
|
|
9989
10014
|
children: renderIcon(icon)
|
|
9990
10015
|
})
|
|
9991
10016
|
})),
|
|
9992
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10017
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9993
10018
|
className: clsx(classes.icon, classes.loader)
|
|
9994
10019
|
}, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
|
|
9995
10020
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10007,7 +10032,7 @@
|
|
|
10007
10032
|
}));
|
|
10008
10033
|
};
|
|
10009
10034
|
var PADDING_WITH_UNITS = 8;
|
|
10010
|
-
var useStyles$
|
|
10035
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
10011
10036
|
inputContent: {
|
|
10012
10037
|
height: "var(--control-height)",
|
|
10013
10038
|
padding: [
|
|
@@ -10179,7 +10204,7 @@
|
|
|
10179
10204
|
}
|
|
10180
10205
|
return target;
|
|
10181
10206
|
}
|
|
10182
|
-
function ownKeys$
|
|
10207
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10183
10208
|
var keys2 = Object.keys(object);
|
|
10184
10209
|
if (Object.getOwnPropertySymbols) {
|
|
10185
10210
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10192,12 +10217,12 @@
|
|
|
10192
10217
|
}
|
|
10193
10218
|
return keys2;
|
|
10194
10219
|
}
|
|
10195
|
-
function _object_spread_props$
|
|
10220
|
+
function _object_spread_props$I(target, source) {
|
|
10196
10221
|
source = source != null ? source : {};
|
|
10197
10222
|
if (Object.getOwnPropertyDescriptors) {
|
|
10198
10223
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10199
10224
|
} else {
|
|
10200
|
-
ownKeys$
|
|
10225
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10201
10226
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10202
10227
|
});
|
|
10203
10228
|
}
|
|
@@ -10385,7 +10410,7 @@
|
|
|
10385
10410
|
"shouldAlwaysShowPlaceholder",
|
|
10386
10411
|
"beforeMaskedStateChange"
|
|
10387
10412
|
]);
|
|
10388
|
-
var classes = useStyles$
|
|
10413
|
+
var classes = useStyles$G({
|
|
10389
10414
|
theme: tweakStyles
|
|
10390
10415
|
});
|
|
10391
10416
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -10498,7 +10523,7 @@
|
|
|
10498
10523
|
})
|
|
10499
10524
|
]
|
|
10500
10525
|
});
|
|
10501
|
-
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$
|
|
10526
|
+
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$I(_object_spread$Q({
|
|
10502
10527
|
label,
|
|
10503
10528
|
isDisabled,
|
|
10504
10529
|
isFocused: hasFocus,
|
|
@@ -10542,7 +10567,7 @@
|
|
|
10542
10567
|
}
|
|
10543
10568
|
return target;
|
|
10544
10569
|
}
|
|
10545
|
-
function ownKeys$
|
|
10570
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
10546
10571
|
var keys2 = Object.keys(object);
|
|
10547
10572
|
if (Object.getOwnPropertySymbols) {
|
|
10548
10573
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10555,12 +10580,12 @@
|
|
|
10555
10580
|
}
|
|
10556
10581
|
return keys2;
|
|
10557
10582
|
}
|
|
10558
|
-
function _object_spread_props$
|
|
10583
|
+
function _object_spread_props$H(target, source) {
|
|
10559
10584
|
source = source != null ? source : {};
|
|
10560
10585
|
if (Object.getOwnPropertyDescriptors) {
|
|
10561
10586
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10562
10587
|
} else {
|
|
10563
|
-
ownKeys$
|
|
10588
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
10564
10589
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10565
10590
|
});
|
|
10566
10591
|
}
|
|
@@ -10615,7 +10640,7 @@
|
|
|
10615
10640
|
infoMessage,
|
|
10616
10641
|
testId,
|
|
10617
10642
|
tweakStyles: tweakWithMessagesStyles,
|
|
10618
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$
|
|
10643
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$H(_object_spread$P({}, inputProps), {
|
|
10619
10644
|
ref,
|
|
10620
10645
|
testId,
|
|
10621
10646
|
tweakStyles,
|
|
@@ -10625,7 +10650,7 @@
|
|
|
10625
10650
|
});
|
|
10626
10651
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10627
10652
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10628
|
-
var useStyles$
|
|
10653
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10629
10654
|
root: {
|
|
10630
10655
|
width: "100%",
|
|
10631
10656
|
height: "100%",
|
|
@@ -10661,7 +10686,7 @@
|
|
|
10661
10686
|
}
|
|
10662
10687
|
return target;
|
|
10663
10688
|
}
|
|
10664
|
-
function ownKeys$
|
|
10689
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
10665
10690
|
var keys2 = Object.keys(object);
|
|
10666
10691
|
if (Object.getOwnPropertySymbols) {
|
|
10667
10692
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10674,12 +10699,12 @@
|
|
|
10674
10699
|
}
|
|
10675
10700
|
return keys2;
|
|
10676
10701
|
}
|
|
10677
|
-
function _object_spread_props$
|
|
10702
|
+
function _object_spread_props$G(target, source) {
|
|
10678
10703
|
source = source != null ? source : {};
|
|
10679
10704
|
if (Object.getOwnPropertyDescriptors) {
|
|
10680
10705
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10681
10706
|
} else {
|
|
10682
|
-
ownKeys$
|
|
10707
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10683
10708
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10684
10709
|
});
|
|
10685
10710
|
}
|
|
@@ -10731,7 +10756,7 @@
|
|
|
10731
10756
|
"onClick",
|
|
10732
10757
|
"onChange"
|
|
10733
10758
|
]);
|
|
10734
|
-
var classes = useStyles$
|
|
10759
|
+
var classes = useStyles$F({
|
|
10735
10760
|
theme: tweakStyles
|
|
10736
10761
|
});
|
|
10737
10762
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10758,11 +10783,11 @@
|
|
|
10758
10783
|
}
|
|
10759
10784
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10760
10785
|
};
|
|
10761
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10786
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$O({
|
|
10762
10787
|
className: clsx(classes.root, className),
|
|
10763
10788
|
onClick
|
|
10764
10789
|
}, addDataAttributes(data)), {
|
|
10765
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10790
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$G(_object_spread$O({}, inputProps), {
|
|
10766
10791
|
ref,
|
|
10767
10792
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10768
10793
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10774,33 +10799,21 @@
|
|
|
10774
10799
|
}));
|
|
10775
10800
|
});
|
|
10776
10801
|
const reactDatepicker = "";
|
|
10777
|
-
var Z_INDEX$1 = dimensions.Z_INDEX;
|
|
10778
|
-
var useStyles$F = createThemedStyles("SearchInput", {
|
|
10779
|
-
root: {
|
|
10780
|
-
position: "relative"
|
|
10781
|
-
},
|
|
10782
|
-
icon: {
|
|
10783
|
-
display: "flex",
|
|
10784
|
-
alignItems: "center",
|
|
10785
|
-
position: "absolute",
|
|
10786
|
-
left: 12,
|
|
10787
|
-
height: "100%",
|
|
10788
|
-
width: 20,
|
|
10789
|
-
color: colors.GREY_ACTIVE,
|
|
10790
|
-
zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
|
|
10791
|
-
}
|
|
10792
|
-
});
|
|
10793
10802
|
var inputStyles$4 = {
|
|
10794
10803
|
tweakControlWrapper: {
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10804
|
+
endIcon: {
|
|
10805
|
+
position: "absolute",
|
|
10806
|
+
width: 40,
|
|
10807
|
+
left: 0,
|
|
10808
|
+
"&:last-child": {
|
|
10809
|
+
paddingRight: 0
|
|
10810
|
+
},
|
|
10811
|
+
"&:not($activeIcon)": {
|
|
10812
|
+
pointerEvents: "none"
|
|
10813
|
+
}
|
|
10800
10814
|
},
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
borderColor: colors.BORDER_MAIN
|
|
10815
|
+
controlWrapper: {
|
|
10816
|
+
borderColor: "transparent"
|
|
10804
10817
|
}
|
|
10805
10818
|
},
|
|
10806
10819
|
inputContent: {
|
|
@@ -10836,30 +10849,6 @@
|
|
|
10836
10849
|
}
|
|
10837
10850
|
return target;
|
|
10838
10851
|
}
|
|
10839
|
-
function ownKeys$G(object, enumerableOnly) {
|
|
10840
|
-
var keys2 = Object.keys(object);
|
|
10841
|
-
if (Object.getOwnPropertySymbols) {
|
|
10842
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
10843
|
-
if (enumerableOnly) {
|
|
10844
|
-
symbols = symbols.filter(function(sym) {
|
|
10845
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10846
|
-
});
|
|
10847
|
-
}
|
|
10848
|
-
keys2.push.apply(keys2, symbols);
|
|
10849
|
-
}
|
|
10850
|
-
return keys2;
|
|
10851
|
-
}
|
|
10852
|
-
function _object_spread_props$G(target, source) {
|
|
10853
|
-
source = source != null ? source : {};
|
|
10854
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
10855
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10856
|
-
} else {
|
|
10857
|
-
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10858
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10859
|
-
});
|
|
10860
|
-
}
|
|
10861
|
-
return target;
|
|
10862
|
-
}
|
|
10863
10852
|
function _object_without_properties$f(source, excluded) {
|
|
10864
10853
|
if (source == null)
|
|
10865
10854
|
return {};
|
|
@@ -10893,42 +10882,30 @@
|
|
|
10893
10882
|
return target;
|
|
10894
10883
|
}
|
|
10895
10884
|
var SearchInput = function(_param) {
|
|
10896
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable,
|
|
10885
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, placeholder = _param.placeholder, value = _param.value, testId = _param.testId, tweakStyles = _param.tweakStyles;
|
|
10886
|
+
_param.data;
|
|
10887
|
+
var props = _object_without_properties$f(_param, [
|
|
10897
10888
|
"isClearable",
|
|
10898
|
-
"tweakStyles",
|
|
10899
10889
|
"placeholder",
|
|
10900
10890
|
"value",
|
|
10901
10891
|
"testId",
|
|
10892
|
+
"tweakStyles",
|
|
10902
10893
|
"data"
|
|
10903
10894
|
]);
|
|
10904
|
-
var classes = useStyles$F({
|
|
10905
|
-
theme: tweakStyles
|
|
10906
|
-
});
|
|
10907
10895
|
var tweakInputStyles = useTweakStyles({
|
|
10908
10896
|
innerStyles: inputStyles$4,
|
|
10909
10897
|
tweakStyles,
|
|
10910
10898
|
className: "tweakInput",
|
|
10911
10899
|
currentComponentName: "SearchInput"
|
|
10912
10900
|
});
|
|
10913
|
-
return /* @__PURE__ */
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
})
|
|
10922
|
-
}),
|
|
10923
|
-
/* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10924
|
-
value,
|
|
10925
|
-
placeholder,
|
|
10926
|
-
isClearable,
|
|
10927
|
-
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
10928
|
-
tweakStyles: tweakInputStyles
|
|
10929
|
-
}, props))
|
|
10930
|
-
]
|
|
10931
|
-
}));
|
|
10901
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10902
|
+
value,
|
|
10903
|
+
placeholder,
|
|
10904
|
+
icon: "search",
|
|
10905
|
+
isClearable,
|
|
10906
|
+
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
10907
|
+
tweakStyles: tweakInputStyles
|
|
10908
|
+
}, props));
|
|
10932
10909
|
};
|
|
10933
10910
|
var ScrollIntoViewIfNeededDefaultElementType = "div";
|
|
10934
10911
|
var ScrollIntoViewIfNeededDefaultProps = {
|
|
@@ -31354,6 +31331,11 @@
|
|
|
31354
31331
|
}
|
|
31355
31332
|
}));
|
|
31356
31333
|
};
|
|
31334
|
+
var withPopupStyles = {
|
|
31335
|
+
popup: {
|
|
31336
|
+
zIndex: 9999
|
|
31337
|
+
}
|
|
31338
|
+
};
|
|
31357
31339
|
function _define_property(obj, key, value) {
|
|
31358
31340
|
if (key in obj) {
|
|
31359
31341
|
Object.defineProperty(obj, key, {
|
|
@@ -31439,7 +31421,7 @@
|
|
|
31439
31421
|
return target;
|
|
31440
31422
|
}
|
|
31441
31423
|
var WithTooltip = function(_param) {
|
|
31442
|
-
var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = _param.tweakStyles, restProps = _object_without_properties(_param, [
|
|
31424
|
+
var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, popupData = _param.popupData, tweakStyles = _param.tweakStyles, restProps = _object_without_properties(_param, [
|
|
31443
31425
|
"children",
|
|
31444
31426
|
"eventType",
|
|
31445
31427
|
"placement",
|
|
@@ -31447,22 +31429,29 @@
|
|
|
31447
31429
|
"tooltipView",
|
|
31448
31430
|
"tooltipType",
|
|
31449
31431
|
"isDisabled",
|
|
31432
|
+
"popupData",
|
|
31450
31433
|
"tweakStyles"
|
|
31451
31434
|
]);
|
|
31452
31435
|
var tweakWithPopupStyles = useTweakStyles({
|
|
31436
|
+
innerStyles: withPopupStyles,
|
|
31453
31437
|
tweakStyles,
|
|
31454
|
-
className: "tweakWithPopup"
|
|
31438
|
+
className: "tweakWithPopup",
|
|
31439
|
+
currentComponentName: "WithTooltip"
|
|
31455
31440
|
});
|
|
31456
31441
|
var tweakTooltipStyles = useTweakStyles({
|
|
31457
31442
|
tweakStyles,
|
|
31458
|
-
className: "tweakTooltip"
|
|
31443
|
+
className: "tweakTooltip",
|
|
31444
|
+
currentComponentName: "WithTooltip"
|
|
31459
31445
|
});
|
|
31460
31446
|
return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({
|
|
31461
31447
|
trigger: children,
|
|
31462
31448
|
placement,
|
|
31463
31449
|
eventType,
|
|
31464
|
-
|
|
31450
|
+
popupData: _object_spread_props(_object_spread({}, popupData), {
|
|
31451
|
+
tooltipView
|
|
31452
|
+
}),
|
|
31465
31453
|
isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
|
|
31454
|
+
isTriggerWrapped: true,
|
|
31466
31455
|
tweakStyles: tweakWithPopupStyles
|
|
31467
31456
|
}, restProps), {
|
|
31468
31457
|
children: /* @__PURE__ */ jsx(Tooltip, {
|