@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
|
@@ -4,7 +4,7 @@ import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNo
|
|
|
4
4
|
import { CSSTransition } from "react-transition-group";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import hexToRgba from "hex-to-rgba";
|
|
7
|
-
import { useFloating, offset as offset$2, flip as flip$2, autoUpdate, useHover, safePolygon, useFocus, useClick, useDismiss, useInteractions, useTransitionStatus, FloatingPortal } from "@floating-ui/react";
|
|
7
|
+
import { size, useFloating, offset as offset$2, flip as flip$2, arrow as arrow$2, autoUpdate, useHover, safePolygon, useFocus, useClick, useDismiss, useInteractions, useTransitionStatus, FloatingPortal, FloatingArrow } from "@floating-ui/react";
|
|
8
8
|
import InputMask from "react-input-mask";
|
|
9
9
|
import { getYear, getMonth, format, parse, isSameDay, isValid, isAfter, isBefore, startOfMonth, endOfMonth, sub, startOfYear, endOfYear } from "date-fns";
|
|
10
10
|
import { Portal } from "react-overlays";
|
|
@@ -1057,9 +1057,11 @@ var helpers = {
|
|
|
1057
1057
|
overflow: "auto",
|
|
1058
1058
|
// Chromium
|
|
1059
1059
|
"@supports selector(::-webkit-scrollbar)": {
|
|
1060
|
+
"--webkit-scrollbar-width": "10px",
|
|
1061
|
+
"--webkit-scrollbar-height": "10px",
|
|
1060
1062
|
"&::-webkit-scrollbar": {
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
+
width: "var(--webkit-scrollbar-width)",
|
|
1064
|
+
height: "var(--webkit-scrollbar-height)",
|
|
1063
1065
|
"&-thumb": {
|
|
1064
1066
|
width: 6,
|
|
1065
1067
|
minHeight: 30,
|
|
@@ -1396,9 +1398,9 @@ function mapCacheHas(key) {
|
|
|
1396
1398
|
return getMapData(this, key).has(key);
|
|
1397
1399
|
}
|
|
1398
1400
|
function mapCacheSet(key, value) {
|
|
1399
|
-
var data = getMapData(this, key),
|
|
1401
|
+
var data = getMapData(this, key), size2 = data.size;
|
|
1400
1402
|
data.set(key, value);
|
|
1401
|
-
this.size += data.size ==
|
|
1403
|
+
this.size += data.size == size2 ? 0 : 1;
|
|
1402
1404
|
return this;
|
|
1403
1405
|
}
|
|
1404
1406
|
function MapCache(entries) {
|
|
@@ -1910,7 +1912,7 @@ function _object_spread$16(target) {
|
|
|
1910
1912
|
}
|
|
1911
1913
|
return target;
|
|
1912
1914
|
}
|
|
1913
|
-
function ownKeys$
|
|
1915
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
1914
1916
|
var keys2 = Object.keys(object);
|
|
1915
1917
|
if (Object.getOwnPropertySymbols) {
|
|
1916
1918
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1923,12 +1925,12 @@ function ownKeys$X(object, enumerableOnly) {
|
|
|
1923
1925
|
}
|
|
1924
1926
|
return keys2;
|
|
1925
1927
|
}
|
|
1926
|
-
function _object_spread_props$
|
|
1928
|
+
function _object_spread_props$W(target, source) {
|
|
1927
1929
|
source = source != null ? source : {};
|
|
1928
1930
|
if (Object.getOwnPropertyDescriptors) {
|
|
1929
1931
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1930
1932
|
} else {
|
|
1931
|
-
ownKeys$
|
|
1933
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
1932
1934
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1933
1935
|
});
|
|
1934
1936
|
}
|
|
@@ -1983,7 +1985,7 @@ function createThemedStyles() {
|
|
|
1983
1985
|
return mergeStyles(styles, 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);
|
|
1984
1986
|
});
|
|
1985
1987
|
return function(data) {
|
|
1986
|
-
return useStyles2(isNotEmpty(data) ? _object_spread_props$
|
|
1988
|
+
return useStyles2(isNotEmpty(data) ? _object_spread_props$W(_object_spread$16({}, data), {
|
|
1987
1989
|
theme: cleanStyles(data.theme)
|
|
1988
1990
|
}) : data);
|
|
1989
1991
|
};
|
|
@@ -7683,7 +7685,7 @@ function _object_spread$13(target) {
|
|
|
7683
7685
|
}
|
|
7684
7686
|
return target;
|
|
7685
7687
|
}
|
|
7686
|
-
function ownKeys$
|
|
7688
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7687
7689
|
var keys2 = Object.keys(object);
|
|
7688
7690
|
if (Object.getOwnPropertySymbols) {
|
|
7689
7691
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7696,12 +7698,12 @@ function ownKeys$W(object, enumerableOnly) {
|
|
|
7696
7698
|
}
|
|
7697
7699
|
return keys2;
|
|
7698
7700
|
}
|
|
7699
|
-
function _object_spread_props$
|
|
7701
|
+
function _object_spread_props$V(target, source) {
|
|
7700
7702
|
source = source != null ? source : {};
|
|
7701
7703
|
if (Object.getOwnPropertyDescriptors) {
|
|
7702
7704
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7703
7705
|
} else {
|
|
7704
|
-
ownKeys$
|
|
7706
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7705
7707
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7706
7708
|
});
|
|
7707
7709
|
}
|
|
@@ -7733,19 +7735,19 @@ var IconBoilerplate = function(param) {
|
|
|
7733
7735
|
}, path), index);
|
|
7734
7736
|
}),
|
|
7735
7737
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7736
|
-
return /* @__PURE__ */ createElement("rect", _object_spread_props$
|
|
7738
|
+
return /* @__PURE__ */ createElement("rect", _object_spread_props$V(_object_spread$13({}, rect), {
|
|
7737
7739
|
key: index
|
|
7738
7740
|
}));
|
|
7739
7741
|
}),
|
|
7740
7742
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7741
|
-
return /* @__PURE__ */ createElement("circle", _object_spread_props$
|
|
7743
|
+
return /* @__PURE__ */ createElement("circle", _object_spread_props$V(_object_spread$13({}, circle), {
|
|
7742
7744
|
key: index
|
|
7743
7745
|
}));
|
|
7744
7746
|
})
|
|
7745
7747
|
]
|
|
7746
7748
|
});
|
|
7747
7749
|
};
|
|
7748
|
-
var useStyles$
|
|
7750
|
+
var useStyles$W = createThemedStyles("Icon", {
|
|
7749
7751
|
root: {
|
|
7750
7752
|
display: "flex",
|
|
7751
7753
|
alignItems: "center"
|
|
@@ -7779,7 +7781,7 @@ function _object_spread$12(target) {
|
|
|
7779
7781
|
}
|
|
7780
7782
|
return target;
|
|
7781
7783
|
}
|
|
7782
|
-
function ownKeys$
|
|
7784
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7783
7785
|
var keys2 = Object.keys(object);
|
|
7784
7786
|
if (Object.getOwnPropertySymbols) {
|
|
7785
7787
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7792,12 +7794,12 @@ function ownKeys$V(object, enumerableOnly) {
|
|
|
7792
7794
|
}
|
|
7793
7795
|
return keys2;
|
|
7794
7796
|
}
|
|
7795
|
-
function _object_spread_props$
|
|
7797
|
+
function _object_spread_props$U(target, source) {
|
|
7796
7798
|
source = source != null ? source : {};
|
|
7797
7799
|
if (Object.getOwnPropertyDescriptors) {
|
|
7798
7800
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7799
7801
|
} else {
|
|
7800
|
-
ownKeys$
|
|
7802
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7801
7803
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7802
7804
|
});
|
|
7803
7805
|
}
|
|
@@ -7805,10 +7807,10 @@ function _object_spread_props$V(target, source) {
|
|
|
7805
7807
|
}
|
|
7806
7808
|
var Icon = function(param) {
|
|
7807
7809
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7808
|
-
var classes = useStyles$
|
|
7810
|
+
var classes = useStyles$W({
|
|
7809
7811
|
theme: tweakStyles
|
|
7810
7812
|
});
|
|
7811
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7813
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$12({
|
|
7812
7814
|
className: classes.root
|
|
7813
7815
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7814
7816
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7824,7 +7826,15 @@ var renderIcon = function(icon) {
|
|
|
7824
7826
|
}) : icon;
|
|
7825
7827
|
};
|
|
7826
7828
|
var DEFAULT_OFFSET = 6;
|
|
7827
|
-
var
|
|
7829
|
+
var minWidthRelativeToTrigger = size({
|
|
7830
|
+
apply: function apply2(param) {
|
|
7831
|
+
var rects = param.rects, elements = param.elements;
|
|
7832
|
+
Object.assign(elements.floating.style, {
|
|
7833
|
+
minWidth: "".concat(rects.reference.width, "px")
|
|
7834
|
+
});
|
|
7835
|
+
}
|
|
7836
|
+
});
|
|
7837
|
+
var useStyles$V = createThemedStyles("WithPopup", {
|
|
7828
7838
|
trigger: {
|
|
7829
7839
|
width: "fit-content"
|
|
7830
7840
|
},
|
|
@@ -7839,6 +7849,7 @@ var useStyles$W = createThemedStyles("WithPopup", {
|
|
|
7839
7849
|
zIndex: 5,
|
|
7840
7850
|
outline: "none"
|
|
7841
7851
|
},
|
|
7852
|
+
arrow: {},
|
|
7842
7853
|
animationEnd: {},
|
|
7843
7854
|
animationStart: {},
|
|
7844
7855
|
"dropdown-initial": {
|
|
@@ -7936,7 +7947,7 @@ function _object_spread$11(target) {
|
|
|
7936
7947
|
}
|
|
7937
7948
|
return target;
|
|
7938
7949
|
}
|
|
7939
|
-
function ownKeys$
|
|
7950
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
7940
7951
|
var keys2 = Object.keys(object);
|
|
7941
7952
|
if (Object.getOwnPropertySymbols) {
|
|
7942
7953
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7949,12 +7960,12 @@ function ownKeys$U(object, enumerableOnly) {
|
|
|
7949
7960
|
}
|
|
7950
7961
|
return keys2;
|
|
7951
7962
|
}
|
|
7952
|
-
function _object_spread_props$
|
|
7963
|
+
function _object_spread_props$T(target, source) {
|
|
7953
7964
|
source = source != null ? source : {};
|
|
7954
7965
|
if (Object.getOwnPropertyDescriptors) {
|
|
7955
7966
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7956
7967
|
} else {
|
|
7957
|
-
ownKeys$
|
|
7968
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
7958
7969
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7959
7970
|
});
|
|
7960
7971
|
}
|
|
@@ -7980,11 +7991,12 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
7980
7991
|
return _array_like_to_array$m(o, minLen);
|
|
7981
7992
|
}
|
|
7982
7993
|
var WithPopup = function(param) {
|
|
7983
|
-
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 ?
|
|
7984
|
-
var classes = useStyles$
|
|
7994
|
+
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;
|
|
7995
|
+
var classes = useStyles$V({
|
|
7985
7996
|
theme: tweakStyles
|
|
7986
7997
|
});
|
|
7987
7998
|
var _useState = _sliced_to_array$m(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
7999
|
+
var arrowRef = useRef(null);
|
|
7988
8000
|
var handleToggle = function(isActive, event) {
|
|
7989
8001
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
7990
8002
|
if (!isDisabled) {
|
|
@@ -8001,8 +8013,13 @@ var WithPopup = function(param) {
|
|
|
8001
8013
|
offset$2(popupOffset),
|
|
8002
8014
|
canBeFlipped && flip$2({
|
|
8003
8015
|
fallbackAxisSideDirection: "start"
|
|
8016
|
+
}),
|
|
8017
|
+
isMinWidthSameAsTrigger && minWidthRelativeToTrigger
|
|
8018
|
+
].concat(_to_consumable_array$7(middlewares), [
|
|
8019
|
+
shouldShowArrow && arrow$2({
|
|
8020
|
+
element: arrowRef
|
|
8004
8021
|
})
|
|
8005
|
-
]
|
|
8022
|
+
]),
|
|
8006
8023
|
whileElementsMounted: autoUpdate,
|
|
8007
8024
|
placement,
|
|
8008
8025
|
onOpenChange: handleToggle
|
|
@@ -8054,23 +8071,31 @@ var WithPopup = function(param) {
|
|
|
8054
8071
|
var _obj2;
|
|
8055
8072
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8056
8073
|
children: [
|
|
8057
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8074
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$11({
|
|
8058
8075
|
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))
|
|
8059
|
-
}, referenceProps,
|
|
8076
|
+
}, referenceProps, addDataAttributes$1(data, testId)), {
|
|
8060
8077
|
children: triggerElement
|
|
8061
8078
|
})) : triggerElement,
|
|
8062
8079
|
isMounted && /* @__PURE__ */ jsx(FloatingPortal, {
|
|
8063
|
-
root:
|
|
8064
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8080
|
+
root: shouldRenderInBody ? document.body : refs.reference.current,
|
|
8081
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$11({
|
|
8082
|
+
ref: refs.setFloating,
|
|
8065
8083
|
style: floatingStyles,
|
|
8066
|
-
className: classes.popup
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
8084
|
+
className: classes.popup
|
|
8085
|
+
}, getFloatingProps(), addDataAttributes$1(popupData)), {
|
|
8086
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
8070
8087
|
className: classes["dropdown-".concat(status)],
|
|
8071
|
-
children:
|
|
8072
|
-
|
|
8073
|
-
|
|
8088
|
+
children: [
|
|
8089
|
+
shouldShowArrow && /* @__PURE__ */ jsx(FloatingArrow, _object_spread_props$T(_object_spread$11({}, arrowProps), {
|
|
8090
|
+
ref: arrowRef,
|
|
8091
|
+
context,
|
|
8092
|
+
className: classes.arrow
|
|
8093
|
+
})),
|
|
8094
|
+
applyAction(children, {
|
|
8095
|
+
floatingContext: context,
|
|
8096
|
+
onClose: handleClose
|
|
8097
|
+
})
|
|
8098
|
+
]
|
|
8074
8099
|
})
|
|
8075
8100
|
}))
|
|
8076
8101
|
})
|
|
@@ -8080,7 +8105,7 @@ var WithPopup = function(param) {
|
|
|
8080
8105
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8081
8106
|
var ICON_SIZE$1 = 20;
|
|
8082
8107
|
var ICON_GAP = 12;
|
|
8083
|
-
var useStyles$
|
|
8108
|
+
var useStyles$U = createThemedStyles("ListItem", {
|
|
8084
8109
|
root: {
|
|
8085
8110
|
display: "flex",
|
|
8086
8111
|
alignItems: "center",
|
|
@@ -8147,7 +8172,7 @@ function _object_spread$10(target) {
|
|
|
8147
8172
|
}
|
|
8148
8173
|
return target;
|
|
8149
8174
|
}
|
|
8150
|
-
function ownKeys$
|
|
8175
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8151
8176
|
var keys2 = Object.keys(object);
|
|
8152
8177
|
if (Object.getOwnPropertySymbols) {
|
|
8153
8178
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8160,12 +8185,12 @@ function ownKeys$T(object, enumerableOnly) {
|
|
|
8160
8185
|
}
|
|
8161
8186
|
return keys2;
|
|
8162
8187
|
}
|
|
8163
|
-
function _object_spread_props$
|
|
8188
|
+
function _object_spread_props$S(target, source) {
|
|
8164
8189
|
source = source != null ? source : {};
|
|
8165
8190
|
if (Object.getOwnPropertyDescriptors) {
|
|
8166
8191
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8167
8192
|
} else {
|
|
8168
|
-
ownKeys$
|
|
8193
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8169
8194
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8170
8195
|
});
|
|
8171
8196
|
}
|
|
@@ -8173,7 +8198,7 @@ function _object_spread_props$T(target, source) {
|
|
|
8173
8198
|
}
|
|
8174
8199
|
var ListItem = function(param) {
|
|
8175
8200
|
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;
|
|
8176
|
-
var classes = useStyles$
|
|
8201
|
+
var classes = useStyles$U({
|
|
8177
8202
|
theme: tweakStyles
|
|
8178
8203
|
});
|
|
8179
8204
|
var _obj2;
|
|
@@ -8182,9 +8207,9 @@ var ListItem = function(param) {
|
|
|
8182
8207
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8183
8208
|
className: classes.spacer
|
|
8184
8209
|
}),
|
|
8185
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8210
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$S(_object_spread$10({
|
|
8186
8211
|
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))
|
|
8187
|
-
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8212
|
+
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$S(_object_spread$10({}, data), {
|
|
8188
8213
|
disabled: isDisabled ? true : void 0
|
|
8189
8214
|
}))), {
|
|
8190
8215
|
children: [
|
|
@@ -8210,7 +8235,7 @@ var ListItem = function(param) {
|
|
|
8210
8235
|
]
|
|
8211
8236
|
});
|
|
8212
8237
|
};
|
|
8213
|
-
var useStyles$
|
|
8238
|
+
var useStyles$T = createThemedStyles("List", {
|
|
8214
8239
|
root: {
|
|
8215
8240
|
minWidth: 180,
|
|
8216
8241
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8226,7 +8251,7 @@ var useStyles$U = createThemedStyles("List", {
|
|
|
8226
8251
|
paddingLeft: 4
|
|
8227
8252
|
}
|
|
8228
8253
|
});
|
|
8229
|
-
var withPopupStyles = {
|
|
8254
|
+
var withPopupStyles$1 = {
|
|
8230
8255
|
trigger: {
|
|
8231
8256
|
width: "100%"
|
|
8232
8257
|
}
|
|
@@ -8259,7 +8284,7 @@ function _object_spread$$(target) {
|
|
|
8259
8284
|
}
|
|
8260
8285
|
return target;
|
|
8261
8286
|
}
|
|
8262
|
-
function ownKeys$
|
|
8287
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8263
8288
|
var keys2 = Object.keys(object);
|
|
8264
8289
|
if (Object.getOwnPropertySymbols) {
|
|
8265
8290
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8272,12 +8297,12 @@ function ownKeys$S(object, enumerableOnly) {
|
|
|
8272
8297
|
}
|
|
8273
8298
|
return keys2;
|
|
8274
8299
|
}
|
|
8275
|
-
function _object_spread_props$
|
|
8300
|
+
function _object_spread_props$R(target, source) {
|
|
8276
8301
|
source = source != null ? source : {};
|
|
8277
8302
|
if (Object.getOwnPropertyDescriptors) {
|
|
8278
8303
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8279
8304
|
} else {
|
|
8280
|
-
ownKeys$
|
|
8305
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8281
8306
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8282
8307
|
});
|
|
8283
8308
|
}
|
|
@@ -8285,7 +8310,7 @@ function _object_spread_props$S(target, source) {
|
|
|
8285
8310
|
}
|
|
8286
8311
|
var List = function(param) {
|
|
8287
8312
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8288
|
-
var classes = useStyles$
|
|
8313
|
+
var classes = useStyles$T({
|
|
8289
8314
|
theme: tweakStyles
|
|
8290
8315
|
});
|
|
8291
8316
|
var handleItemClick = function(event, param2) {
|
|
@@ -8295,11 +8320,11 @@ var List = function(param) {
|
|
|
8295
8320
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8296
8321
|
}
|
|
8297
8322
|
};
|
|
8298
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8323
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$$({
|
|
8299
8324
|
className: classes.root
|
|
8300
8325
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8301
8326
|
children: items.map(function(item, i) {
|
|
8302
|
-
var itemProps = _object_spread_props$
|
|
8327
|
+
var itemProps = _object_spread_props$R(_object_spread$$({
|
|
8303
8328
|
testId: getTestId(testId, "item-".concat(i))
|
|
8304
8329
|
}, item), {
|
|
8305
8330
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8311,13 +8336,13 @@ var List = function(param) {
|
|
|
8311
8336
|
return /* @__PURE__ */ jsx(Fragment$1, {
|
|
8312
8337
|
children: isArrayNotEmpty(item.nestedItems) ? /* @__PURE__ */ jsx(WithPopup, {
|
|
8313
8338
|
eventType: "hover",
|
|
8314
|
-
tweakStyles: withPopupStyles,
|
|
8339
|
+
tweakStyles: withPopupStyles$1,
|
|
8315
8340
|
placement: "right-start",
|
|
8316
8341
|
popupOffset: 0,
|
|
8317
8342
|
shouldRenderInBody: false,
|
|
8318
8343
|
trigger: function(param2) {
|
|
8319
8344
|
var triggerProps = param2.triggerProps;
|
|
8320
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8345
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$R(_object_spread$$({}, itemProps), {
|
|
8321
8346
|
isFocused: triggerProps.isActive
|
|
8322
8347
|
}));
|
|
8323
8348
|
},
|
|
@@ -8362,7 +8387,7 @@ function _object_spread$_(target) {
|
|
|
8362
8387
|
}
|
|
8363
8388
|
return target;
|
|
8364
8389
|
}
|
|
8365
|
-
var useStyles$
|
|
8390
|
+
var useStyles$S = createThemedStyles("AccountInfo", _object_spread$_({
|
|
8366
8391
|
root: {
|
|
8367
8392
|
display: "flex"
|
|
8368
8393
|
},
|
|
@@ -8475,7 +8500,7 @@ function _object_spread$Z(target) {
|
|
|
8475
8500
|
}
|
|
8476
8501
|
return target;
|
|
8477
8502
|
}
|
|
8478
|
-
function ownKeys$
|
|
8503
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8479
8504
|
var keys2 = Object.keys(object);
|
|
8480
8505
|
if (Object.getOwnPropertySymbols) {
|
|
8481
8506
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8488,12 +8513,12 @@ function ownKeys$R(object, enumerableOnly) {
|
|
|
8488
8513
|
}
|
|
8489
8514
|
return keys2;
|
|
8490
8515
|
}
|
|
8491
|
-
function _object_spread_props$
|
|
8516
|
+
function _object_spread_props$Q(target, source) {
|
|
8492
8517
|
source = source != null ? source : {};
|
|
8493
8518
|
if (Object.getOwnPropertyDescriptors) {
|
|
8494
8519
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8495
8520
|
} else {
|
|
8496
|
-
ownKeys$
|
|
8521
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8497
8522
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8498
8523
|
});
|
|
8499
8524
|
}
|
|
@@ -8517,7 +8542,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
8517
8542
|
}
|
|
8518
8543
|
var AccountInfo = function(param) {
|
|
8519
8544
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8520
|
-
var classes = useStyles$
|
|
8545
|
+
var classes = useStyles$S({
|
|
8521
8546
|
theme: tweakStyles
|
|
8522
8547
|
});
|
|
8523
8548
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8537,7 +8562,7 @@ var AccountInfo = function(param) {
|
|
|
8537
8562
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8538
8563
|
return setIsMenuOpen(false);
|
|
8539
8564
|
}, nameRef);
|
|
8540
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8565
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$Q(_object_spread$Z({
|
|
8541
8566
|
className: classes.root
|
|
8542
8567
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8543
8568
|
children: [
|
|
@@ -8587,7 +8612,7 @@ var AccountInfo = function(param) {
|
|
|
8587
8612
|
]
|
|
8588
8613
|
}));
|
|
8589
8614
|
};
|
|
8590
|
-
var useStyles$
|
|
8615
|
+
var useStyles$R = createThemedStyles("AddButton", {
|
|
8591
8616
|
root: {
|
|
8592
8617
|
display: "flex",
|
|
8593
8618
|
alignItems: "center",
|
|
@@ -8641,7 +8666,7 @@ function _object_spread$Y(target) {
|
|
|
8641
8666
|
}
|
|
8642
8667
|
return target;
|
|
8643
8668
|
}
|
|
8644
|
-
function ownKeys$
|
|
8669
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8645
8670
|
var keys2 = Object.keys(object);
|
|
8646
8671
|
if (Object.getOwnPropertySymbols) {
|
|
8647
8672
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8654,12 +8679,12 @@ function ownKeys$Q(object, enumerableOnly) {
|
|
|
8654
8679
|
}
|
|
8655
8680
|
return keys2;
|
|
8656
8681
|
}
|
|
8657
|
-
function _object_spread_props$
|
|
8682
|
+
function _object_spread_props$P(target, source) {
|
|
8658
8683
|
source = source != null ? source : {};
|
|
8659
8684
|
if (Object.getOwnPropertyDescriptors) {
|
|
8660
8685
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8661
8686
|
} else {
|
|
8662
|
-
ownKeys$
|
|
8687
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8663
8688
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8664
8689
|
});
|
|
8665
8690
|
}
|
|
@@ -8667,10 +8692,10 @@ function _object_spread_props$Q(target, source) {
|
|
|
8667
8692
|
}
|
|
8668
8693
|
var AddButton = function(param) {
|
|
8669
8694
|
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;
|
|
8670
|
-
var classes = useStyles$
|
|
8695
|
+
var classes = useStyles$R({
|
|
8671
8696
|
theme: tweakStyles
|
|
8672
8697
|
});
|
|
8673
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8698
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$P(_object_spread$Y({
|
|
8674
8699
|
type,
|
|
8675
8700
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8676
8701
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8689,7 +8714,7 @@ var AddButton = function(param) {
|
|
|
8689
8714
|
]
|
|
8690
8715
|
}));
|
|
8691
8716
|
};
|
|
8692
|
-
var useStyles$
|
|
8717
|
+
var useStyles$Q = createThemedStyles("DotsPreloader", {
|
|
8693
8718
|
root: {
|
|
8694
8719
|
display: "flex",
|
|
8695
8720
|
gap: 4,
|
|
@@ -8735,7 +8760,7 @@ var useStyles$R = createThemedStyles("DotsPreloader", {
|
|
|
8735
8760
|
});
|
|
8736
8761
|
var DotsPreloader = function(param) {
|
|
8737
8762
|
var tweakStyles = param.tweakStyles;
|
|
8738
|
-
var classes = useStyles$
|
|
8763
|
+
var classes = useStyles$Q({
|
|
8739
8764
|
theme: tweakStyles
|
|
8740
8765
|
});
|
|
8741
8766
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8801,7 +8826,7 @@ var DefaultPreloader = function() {
|
|
|
8801
8826
|
]
|
|
8802
8827
|
});
|
|
8803
8828
|
};
|
|
8804
|
-
var useStyles$
|
|
8829
|
+
var useStyles$P = createThemedStyles("SvgPreloader", {
|
|
8805
8830
|
root: {
|
|
8806
8831
|
display: "flex",
|
|
8807
8832
|
width: "100%",
|
|
@@ -8811,7 +8836,7 @@ var useStyles$Q = createThemedStyles("SvgPreloader", {
|
|
|
8811
8836
|
var SvgPreloader = function(param) {
|
|
8812
8837
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8813
8838
|
var _theme_preloaders;
|
|
8814
|
-
var classes = useStyles$
|
|
8839
|
+
var classes = useStyles$P({
|
|
8815
8840
|
theme: tweakStyles
|
|
8816
8841
|
});
|
|
8817
8842
|
var theme = useContext(ThemeContext).theme;
|
|
@@ -8825,7 +8850,7 @@ var SvgPreloader = function(param) {
|
|
|
8825
8850
|
}
|
|
8826
8851
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8827
8852
|
};
|
|
8828
|
-
var useStyles$
|
|
8853
|
+
var useStyles$O = createThemedStyles("ThemedPreloader", {
|
|
8829
8854
|
root: {
|
|
8830
8855
|
display: "flex"
|
|
8831
8856
|
},
|
|
@@ -8864,7 +8889,7 @@ function _object_spread$X(target) {
|
|
|
8864
8889
|
}
|
|
8865
8890
|
return target;
|
|
8866
8891
|
}
|
|
8867
|
-
function ownKeys$
|
|
8892
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
8868
8893
|
var keys2 = Object.keys(object);
|
|
8869
8894
|
if (Object.getOwnPropertySymbols) {
|
|
8870
8895
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8877,12 +8902,12 @@ function ownKeys$P(object, enumerableOnly) {
|
|
|
8877
8902
|
}
|
|
8878
8903
|
return keys2;
|
|
8879
8904
|
}
|
|
8880
|
-
function _object_spread_props$
|
|
8905
|
+
function _object_spread_props$O(target, source) {
|
|
8881
8906
|
source = source != null ? source : {};
|
|
8882
8907
|
if (Object.getOwnPropertyDescriptors) {
|
|
8883
8908
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8884
8909
|
} else {
|
|
8885
|
-
ownKeys$
|
|
8910
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
8886
8911
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8887
8912
|
});
|
|
8888
8913
|
}
|
|
@@ -8890,7 +8915,7 @@ function _object_spread_props$P(target, source) {
|
|
|
8890
8915
|
}
|
|
8891
8916
|
var ThemedPreloader = function(param) {
|
|
8892
8917
|
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;
|
|
8893
|
-
var classes = useStyles$
|
|
8918
|
+
var classes = useStyles$O({
|
|
8894
8919
|
theme: tweakStyles
|
|
8895
8920
|
});
|
|
8896
8921
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8903,7 +8928,7 @@ var ThemedPreloader = function(param) {
|
|
|
8903
8928
|
className: "tweakSvgPreloader",
|
|
8904
8929
|
currentComponentName: "ThemedPreloader"
|
|
8905
8930
|
});
|
|
8906
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8931
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$O(_object_spread$X({
|
|
8907
8932
|
className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
|
|
8908
8933
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8909
8934
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
@@ -8914,7 +8939,7 @@ var ThemedPreloader = function(param) {
|
|
|
8914
8939
|
})
|
|
8915
8940
|
}));
|
|
8916
8941
|
};
|
|
8917
|
-
var useStyles$
|
|
8942
|
+
var useStyles$N = createThemedStyles("Button", {
|
|
8918
8943
|
root: {
|
|
8919
8944
|
display: "flex",
|
|
8920
8945
|
justifyContent: "center",
|
|
@@ -9082,8 +9107,8 @@ var dotsPreloaderStyles = {
|
|
|
9082
9107
|
}
|
|
9083
9108
|
}
|
|
9084
9109
|
};
|
|
9085
|
-
var getPreloaderStyles = function(
|
|
9086
|
-
return
|
|
9110
|
+
var getPreloaderStyles = function(size2) {
|
|
9111
|
+
return size2 === "s" || size2 === "m" ? dotsPreloaderStyles : void 0;
|
|
9087
9112
|
};
|
|
9088
9113
|
function _define_property$Y(obj, key, value) {
|
|
9089
9114
|
if (key in obj) {
|
|
@@ -9113,7 +9138,7 @@ function _object_spread$W(target) {
|
|
|
9113
9138
|
}
|
|
9114
9139
|
return target;
|
|
9115
9140
|
}
|
|
9116
|
-
function ownKeys$
|
|
9141
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9117
9142
|
var keys2 = Object.keys(object);
|
|
9118
9143
|
if (Object.getOwnPropertySymbols) {
|
|
9119
9144
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9126,12 +9151,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
9126
9151
|
}
|
|
9127
9152
|
return keys2;
|
|
9128
9153
|
}
|
|
9129
|
-
function _object_spread_props$
|
|
9154
|
+
function _object_spread_props$N(target, source) {
|
|
9130
9155
|
source = source != null ? source : {};
|
|
9131
9156
|
if (Object.getOwnPropertyDescriptors) {
|
|
9132
9157
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9133
9158
|
} else {
|
|
9134
|
-
ownKeys$
|
|
9159
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9135
9160
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9136
9161
|
});
|
|
9137
9162
|
}
|
|
@@ -9170,7 +9195,7 @@ function _object_without_properties_loose$j(source, excluded) {
|
|
|
9170
9195
|
return target;
|
|
9171
9196
|
}
|
|
9172
9197
|
var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9173
|
-
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size,
|
|
9198
|
+
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$j(_param, [
|
|
9174
9199
|
"type",
|
|
9175
9200
|
"children",
|
|
9176
9201
|
"size",
|
|
@@ -9188,11 +9213,11 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9188
9213
|
"iconPosition",
|
|
9189
9214
|
"preloaderType"
|
|
9190
9215
|
]);
|
|
9191
|
-
var classes = useStyles$
|
|
9216
|
+
var classes = useStyles$N({
|
|
9192
9217
|
theme: tweakStyles
|
|
9193
9218
|
});
|
|
9194
9219
|
var tweakPreloaderStyles = useTweakStyles({
|
|
9195
|
-
innerStyles: getPreloaderStyles(
|
|
9220
|
+
innerStyles: getPreloaderStyles(size2),
|
|
9196
9221
|
tweakStyles,
|
|
9197
9222
|
className: "tweakPreloader",
|
|
9198
9223
|
currentComponentName: "Button"
|
|
@@ -9201,10 +9226,10 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9201
9226
|
var hasChildren = isReactNodeNotEmpty(children);
|
|
9202
9227
|
var hasNoAction = isDisabled || isLoading;
|
|
9203
9228
|
var _obj2, _obj1;
|
|
9204
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9229
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$N(_object_spread$W({
|
|
9205
9230
|
ref,
|
|
9206
9231
|
type,
|
|
9207
|
-
className: clsx(classes.root, classes[
|
|
9232
|
+
className: clsx(classes.root, classes[size2], 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)),
|
|
9208
9233
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
9209
9234
|
disabled: hasNoAction
|
|
9210
9235
|
}, interactions, addDataTestId(testId), addDataAttributes(data)), {
|
|
@@ -9233,7 +9258,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9233
9258
|
]
|
|
9234
9259
|
}));
|
|
9235
9260
|
});
|
|
9236
|
-
var useStyles$
|
|
9261
|
+
var useStyles$M = createThemedStyles("Checkbox", {
|
|
9237
9262
|
root: {
|
|
9238
9263
|
cursor: "pointer",
|
|
9239
9264
|
display: "flex",
|
|
@@ -9299,7 +9324,7 @@ function _object_spread$V(target) {
|
|
|
9299
9324
|
}
|
|
9300
9325
|
return target;
|
|
9301
9326
|
}
|
|
9302
|
-
function ownKeys$
|
|
9327
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9303
9328
|
var keys2 = Object.keys(object);
|
|
9304
9329
|
if (Object.getOwnPropertySymbols) {
|
|
9305
9330
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9312,12 +9337,12 @@ function ownKeys$N(object, enumerableOnly) {
|
|
|
9312
9337
|
}
|
|
9313
9338
|
return keys2;
|
|
9314
9339
|
}
|
|
9315
|
-
function _object_spread_props$
|
|
9340
|
+
function _object_spread_props$M(target, source) {
|
|
9316
9341
|
source = source != null ? source : {};
|
|
9317
9342
|
if (Object.getOwnPropertyDescriptors) {
|
|
9318
9343
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9319
9344
|
} else {
|
|
9320
|
-
ownKeys$
|
|
9345
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9321
9346
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9322
9347
|
});
|
|
9323
9348
|
}
|
|
@@ -9325,7 +9350,7 @@ function _object_spread_props$N(target, source) {
|
|
|
9325
9350
|
}
|
|
9326
9351
|
function Checkbox(param) {
|
|
9327
9352
|
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;
|
|
9328
|
-
var classes = useStyles$
|
|
9353
|
+
var classes = useStyles$M({
|
|
9329
9354
|
theme: tweakStyles
|
|
9330
9355
|
});
|
|
9331
9356
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9337,7 +9362,7 @@ function Checkbox(param) {
|
|
|
9337
9362
|
}, event);
|
|
9338
9363
|
};
|
|
9339
9364
|
var _obj2;
|
|
9340
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9365
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$M(_object_spread$V({
|
|
9341
9366
|
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))
|
|
9342
9367
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
9343
9368
|
children: [
|
|
@@ -9364,7 +9389,7 @@ function Checkbox(param) {
|
|
|
9364
9389
|
]
|
|
9365
9390
|
}));
|
|
9366
9391
|
}
|
|
9367
|
-
var useStyles$
|
|
9392
|
+
var useStyles$L = createThemedStyles("CloseButton", {
|
|
9368
9393
|
root: {
|
|
9369
9394
|
width: 40,
|
|
9370
9395
|
height: 40,
|
|
@@ -9418,7 +9443,7 @@ function _object_spread$U(target) {
|
|
|
9418
9443
|
}
|
|
9419
9444
|
return target;
|
|
9420
9445
|
}
|
|
9421
|
-
function ownKeys$
|
|
9446
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9422
9447
|
var keys2 = Object.keys(object);
|
|
9423
9448
|
if (Object.getOwnPropertySymbols) {
|
|
9424
9449
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9431,12 +9456,12 @@ function ownKeys$M(object, enumerableOnly) {
|
|
|
9431
9456
|
}
|
|
9432
9457
|
return keys2;
|
|
9433
9458
|
}
|
|
9434
|
-
function _object_spread_props$
|
|
9459
|
+
function _object_spread_props$L(target, source) {
|
|
9435
9460
|
source = source != null ? source : {};
|
|
9436
9461
|
if (Object.getOwnPropertyDescriptors) {
|
|
9437
9462
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9438
9463
|
} else {
|
|
9439
|
-
ownKeys$
|
|
9464
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9440
9465
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9441
9466
|
});
|
|
9442
9467
|
}
|
|
@@ -9444,10 +9469,10 @@ function _object_spread_props$M(target, source) {
|
|
|
9444
9469
|
}
|
|
9445
9470
|
var CloseButton = function(param) {
|
|
9446
9471
|
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;
|
|
9447
|
-
var classes = useStyles$
|
|
9472
|
+
var classes = useStyles$L({
|
|
9448
9473
|
theme: tweakStyles
|
|
9449
9474
|
});
|
|
9450
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9475
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$L(_object_spread$U({
|
|
9451
9476
|
type: "button",
|
|
9452
9477
|
className: classes.root,
|
|
9453
9478
|
onClick: onClose
|
|
@@ -9457,7 +9482,7 @@ var CloseButton = function(param) {
|
|
|
9457
9482
|
})
|
|
9458
9483
|
}));
|
|
9459
9484
|
};
|
|
9460
|
-
var useStyles$
|
|
9485
|
+
var useStyles$K = createThemedStyles({
|
|
9461
9486
|
root: {
|
|
9462
9487
|
display: "flex",
|
|
9463
9488
|
flexWrap: "wrap"
|
|
@@ -9550,7 +9575,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
9550
9575
|
return _array_like_to_array$k(o, minLen);
|
|
9551
9576
|
}
|
|
9552
9577
|
var Colors = function() {
|
|
9553
|
-
var classes = useStyles$
|
|
9578
|
+
var classes = useStyles$K();
|
|
9554
9579
|
var theme = useContext(ThemeContext).theme;
|
|
9555
9580
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9556
9581
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9580,7 +9605,7 @@ var Colors = function() {
|
|
|
9580
9605
|
})
|
|
9581
9606
|
});
|
|
9582
9607
|
};
|
|
9583
|
-
var useStyles$
|
|
9608
|
+
var useStyles$J = createThemedStyles("CssBaseline", {
|
|
9584
9609
|
"@global html, body": {
|
|
9585
9610
|
fontFamily: "Arial, sans-serif",
|
|
9586
9611
|
color: colors.FONT_MAIN,
|
|
@@ -9619,14 +9644,14 @@ function _object_spread$T(target) {
|
|
|
9619
9644
|
}
|
|
9620
9645
|
var CssBaseline = function(param) {
|
|
9621
9646
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9622
|
-
var classes = useStyles$
|
|
9647
|
+
var classes = useStyles$J({
|
|
9623
9648
|
theme: tweakStyles
|
|
9624
9649
|
});
|
|
9625
9650
|
return /* @__PURE__ */ jsx("div", _object_spread$T({
|
|
9626
9651
|
className: classes.root
|
|
9627
9652
|
}, addDataTestId(testId), addDataAttributes(data)));
|
|
9628
9653
|
};
|
|
9629
|
-
var useStyles$
|
|
9654
|
+
var useStyles$I = createThemedStyles("WithMessages", {
|
|
9630
9655
|
withMessages: {
|
|
9631
9656
|
display: "flex",
|
|
9632
9657
|
flexDirection: "column",
|
|
@@ -9688,7 +9713,7 @@ function _object_spread$S(target) {
|
|
|
9688
9713
|
}
|
|
9689
9714
|
return target;
|
|
9690
9715
|
}
|
|
9691
|
-
function ownKeys$
|
|
9716
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9692
9717
|
var keys2 = Object.keys(object);
|
|
9693
9718
|
if (Object.getOwnPropertySymbols) {
|
|
9694
9719
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9701,12 +9726,12 @@ function ownKeys$L(object, enumerableOnly) {
|
|
|
9701
9726
|
}
|
|
9702
9727
|
return keys2;
|
|
9703
9728
|
}
|
|
9704
|
-
function _object_spread_props$
|
|
9729
|
+
function _object_spread_props$K(target, source) {
|
|
9705
9730
|
source = source != null ? source : {};
|
|
9706
9731
|
if (Object.getOwnPropertyDescriptors) {
|
|
9707
9732
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9708
9733
|
} else {
|
|
9709
|
-
ownKeys$
|
|
9734
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9710
9735
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9711
9736
|
});
|
|
9712
9737
|
}
|
|
@@ -9714,13 +9739,13 @@ function _object_spread_props$L(target, source) {
|
|
|
9714
9739
|
}
|
|
9715
9740
|
var WithMessages = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
9716
9741
|
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
9717
|
-
var classes = useStyles$
|
|
9742
|
+
var classes = useStyles$I({
|
|
9718
9743
|
theme: tweakStyles
|
|
9719
9744
|
});
|
|
9720
9745
|
var shouldShowError = isReactNodeNotEmpty(errorMessage);
|
|
9721
9746
|
var shouldShowInfo = isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9722
9747
|
var _obj2;
|
|
9723
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9748
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
9724
9749
|
ref,
|
|
9725
9750
|
className: classes.withMessages,
|
|
9726
9751
|
"data-invalid": shouldShowError ? true : void 0
|
|
@@ -9733,12 +9758,12 @@ var WithMessages = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
9733
9758
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9734
9759
|
className: classes.message,
|
|
9735
9760
|
children: [
|
|
9736
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9761
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9737
9762
|
className: classes.error
|
|
9738
9763
|
}, addDataTestId(testId, "error")), {
|
|
9739
9764
|
children: errorMessage
|
|
9740
9765
|
})),
|
|
9741
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9766
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9742
9767
|
className: classes.info
|
|
9743
9768
|
}, addDataTestId(testId, "info")), {
|
|
9744
9769
|
children: infoMessage
|
|
@@ -9748,8 +9773,8 @@ var WithMessages = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
9748
9773
|
]
|
|
9749
9774
|
}));
|
|
9750
9775
|
});
|
|
9751
|
-
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$
|
|
9752
|
-
var useStyles$
|
|
9776
|
+
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$1 = dimensions.Z_INDEX;
|
|
9777
|
+
var useStyles$H = createThemedStyles("ControlWrapper", {
|
|
9753
9778
|
controlWrapper: {
|
|
9754
9779
|
"--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
|
|
9755
9780
|
// borders
|
|
@@ -9771,12 +9796,12 @@ var useStyles$I = createThemedStyles("ControlWrapper", {
|
|
|
9771
9796
|
zIndex: 0
|
|
9772
9797
|
},
|
|
9773
9798
|
invalid: {
|
|
9774
|
-
zIndex: Z_INDEX$
|
|
9799
|
+
zIndex: Z_INDEX$1.CONTROL_INVALID
|
|
9775
9800
|
},
|
|
9776
9801
|
disabled: {},
|
|
9777
9802
|
focused: {
|
|
9778
9803
|
position: "relative",
|
|
9779
|
-
zIndex: Z_INDEX$
|
|
9804
|
+
zIndex: Z_INDEX$1.CONTROL_FOCUS
|
|
9780
9805
|
},
|
|
9781
9806
|
withValue: {},
|
|
9782
9807
|
loading: {},
|
|
@@ -9928,7 +9953,7 @@ function _object_spread$R(target) {
|
|
|
9928
9953
|
}
|
|
9929
9954
|
return target;
|
|
9930
9955
|
}
|
|
9931
|
-
function ownKeys$
|
|
9956
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
9932
9957
|
var keys2 = Object.keys(object);
|
|
9933
9958
|
if (Object.getOwnPropertySymbols) {
|
|
9934
9959
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9941,12 +9966,12 @@ function ownKeys$K(object, enumerableOnly) {
|
|
|
9941
9966
|
}
|
|
9942
9967
|
return keys2;
|
|
9943
9968
|
}
|
|
9944
|
-
function _object_spread_props$
|
|
9969
|
+
function _object_spread_props$J(target, source) {
|
|
9945
9970
|
source = source != null ? source : {};
|
|
9946
9971
|
if (Object.getOwnPropertyDescriptors) {
|
|
9947
9972
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9948
9973
|
} else {
|
|
9949
|
-
ownKeys$
|
|
9974
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
9950
9975
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9951
9976
|
});
|
|
9952
9977
|
}
|
|
@@ -9954,7 +9979,7 @@ function _object_spread_props$K(target, source) {
|
|
|
9954
9979
|
}
|
|
9955
9980
|
var ControlWrapper = function(param) {
|
|
9956
9981
|
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;
|
|
9957
|
-
var classes = useStyles$
|
|
9982
|
+
var classes = useStyles$H({
|
|
9958
9983
|
theme: tweakStyles
|
|
9959
9984
|
});
|
|
9960
9985
|
var hasEndIcon = !isLoading && isReactNodeNotEmpty(icon);
|
|
@@ -9966,7 +9991,7 @@ var ControlWrapper = function(param) {
|
|
|
9966
9991
|
currentComponentName: "ControlWrapper"
|
|
9967
9992
|
});
|
|
9968
9993
|
var _obj2, _obj1, _obj22;
|
|
9969
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9994
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$R({
|
|
9970
9995
|
className: clsx(classes.controlWrapper, isNotEmpty(groupPlacement) && [
|
|
9971
9996
|
classes["placement-".concat(groupPlacement)]
|
|
9972
9997
|
], (_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))
|
|
@@ -9983,7 +10008,7 @@ var ControlWrapper = function(param) {
|
|
|
9983
10008
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9984
10009
|
className: classes.controls,
|
|
9985
10010
|
children: [
|
|
9986
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10011
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9987
10012
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9988
10013
|
}, addClickHandler(onClear), addDataTestId(testId, "clear")), {
|
|
9989
10014
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9993,7 +10018,7 @@ var ControlWrapper = function(param) {
|
|
|
9993
10018
|
})
|
|
9994
10019
|
})
|
|
9995
10020
|
})),
|
|
9996
|
-
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10021
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9997
10022
|
className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$T(_obj22, classes.activeIcon, !isDisabled && isNotEmpty(onIconClick)), _define_property$T(_obj22, classes.customIcon, !isString(icon)), _obj22))
|
|
9998
10023
|
}, addClickHandler(onIconClick, !isDisabled), addDataTestId(testId, "icon")), {
|
|
9999
10024
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10001,7 +10026,7 @@ var ControlWrapper = function(param) {
|
|
|
10001
10026
|
children: renderIcon(icon)
|
|
10002
10027
|
})
|
|
10003
10028
|
})),
|
|
10004
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10029
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
10005
10030
|
className: clsx(classes.icon, classes.loader)
|
|
10006
10031
|
}, addDataTestId(testId, "loading")), {
|
|
10007
10032
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10019,7 +10044,7 @@ var ControlWrapper = function(param) {
|
|
|
10019
10044
|
}));
|
|
10020
10045
|
};
|
|
10021
10046
|
var PADDING_WITH_UNITS = 8;
|
|
10022
|
-
var useStyles$
|
|
10047
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
10023
10048
|
inputContent: {
|
|
10024
10049
|
height: "var(--control-height)",
|
|
10025
10050
|
padding: [
|
|
@@ -10191,7 +10216,7 @@ function _object_spread$Q(target) {
|
|
|
10191
10216
|
}
|
|
10192
10217
|
return target;
|
|
10193
10218
|
}
|
|
10194
|
-
function ownKeys$
|
|
10219
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10195
10220
|
var keys2 = Object.keys(object);
|
|
10196
10221
|
if (Object.getOwnPropertySymbols) {
|
|
10197
10222
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10204,12 +10229,12 @@ function ownKeys$J(object, enumerableOnly) {
|
|
|
10204
10229
|
}
|
|
10205
10230
|
return keys2;
|
|
10206
10231
|
}
|
|
10207
|
-
function _object_spread_props$
|
|
10232
|
+
function _object_spread_props$I(target, source) {
|
|
10208
10233
|
source = source != null ? source : {};
|
|
10209
10234
|
if (Object.getOwnPropertyDescriptors) {
|
|
10210
10235
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10211
10236
|
} else {
|
|
10212
|
-
ownKeys$
|
|
10237
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10213
10238
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10214
10239
|
});
|
|
10215
10240
|
}
|
|
@@ -10397,7 +10422,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10397
10422
|
"shouldAlwaysShowPlaceholder",
|
|
10398
10423
|
"beforeMaskedStateChange"
|
|
10399
10424
|
]);
|
|
10400
|
-
var classes = useStyles$
|
|
10425
|
+
var classes = useStyles$G({
|
|
10401
10426
|
theme: tweakStyles
|
|
10402
10427
|
});
|
|
10403
10428
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -10510,7 +10535,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10510
10535
|
})
|
|
10511
10536
|
]
|
|
10512
10537
|
});
|
|
10513
|
-
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$
|
|
10538
|
+
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$I(_object_spread$Q({
|
|
10514
10539
|
label,
|
|
10515
10540
|
isDisabled,
|
|
10516
10541
|
isFocused: hasFocus,
|
|
@@ -10554,7 +10579,7 @@ function _object_spread$P(target) {
|
|
|
10554
10579
|
}
|
|
10555
10580
|
return target;
|
|
10556
10581
|
}
|
|
10557
|
-
function ownKeys$
|
|
10582
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
10558
10583
|
var keys2 = Object.keys(object);
|
|
10559
10584
|
if (Object.getOwnPropertySymbols) {
|
|
10560
10585
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10567,12 +10592,12 @@ function ownKeys$I(object, enumerableOnly) {
|
|
|
10567
10592
|
}
|
|
10568
10593
|
return keys2;
|
|
10569
10594
|
}
|
|
10570
|
-
function _object_spread_props$
|
|
10595
|
+
function _object_spread_props$H(target, source) {
|
|
10571
10596
|
source = source != null ? source : {};
|
|
10572
10597
|
if (Object.getOwnPropertyDescriptors) {
|
|
10573
10598
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10574
10599
|
} else {
|
|
10575
|
-
ownKeys$
|
|
10600
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
10576
10601
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10577
10602
|
});
|
|
10578
10603
|
}
|
|
@@ -10627,7 +10652,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10627
10652
|
infoMessage,
|
|
10628
10653
|
testId,
|
|
10629
10654
|
tweakStyles: tweakWithMessagesStyles,
|
|
10630
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$
|
|
10655
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$H(_object_spread$P({}, inputProps), {
|
|
10631
10656
|
ref,
|
|
10632
10657
|
testId,
|
|
10633
10658
|
tweakStyles,
|
|
@@ -10637,7 +10662,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10637
10662
|
});
|
|
10638
10663
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10639
10664
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10640
|
-
var useStyles$
|
|
10665
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10641
10666
|
root: {
|
|
10642
10667
|
width: "100%",
|
|
10643
10668
|
height: "100%",
|
|
@@ -10673,7 +10698,7 @@ function _object_spread$O(target) {
|
|
|
10673
10698
|
}
|
|
10674
10699
|
return target;
|
|
10675
10700
|
}
|
|
10676
|
-
function ownKeys$
|
|
10701
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
10677
10702
|
var keys2 = Object.keys(object);
|
|
10678
10703
|
if (Object.getOwnPropertySymbols) {
|
|
10679
10704
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10686,12 +10711,12 @@ function ownKeys$H(object, enumerableOnly) {
|
|
|
10686
10711
|
}
|
|
10687
10712
|
return keys2;
|
|
10688
10713
|
}
|
|
10689
|
-
function _object_spread_props$
|
|
10714
|
+
function _object_spread_props$G(target, source) {
|
|
10690
10715
|
source = source != null ? source : {};
|
|
10691
10716
|
if (Object.getOwnPropertyDescriptors) {
|
|
10692
10717
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10693
10718
|
} else {
|
|
10694
|
-
ownKeys$
|
|
10719
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10695
10720
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10696
10721
|
});
|
|
10697
10722
|
}
|
|
@@ -10743,7 +10768,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10743
10768
|
"onClick",
|
|
10744
10769
|
"onChange"
|
|
10745
10770
|
]);
|
|
10746
|
-
var classes = useStyles$
|
|
10771
|
+
var classes = useStyles$F({
|
|
10747
10772
|
theme: tweakStyles
|
|
10748
10773
|
});
|
|
10749
10774
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10770,11 +10795,11 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10770
10795
|
}
|
|
10771
10796
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10772
10797
|
};
|
|
10773
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10798
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$O({
|
|
10774
10799
|
className: clsx(classes.root, className),
|
|
10775
10800
|
onClick
|
|
10776
10801
|
}, addDataAttributes(data)), {
|
|
10777
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10802
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$G(_object_spread$O({}, inputProps), {
|
|
10778
10803
|
ref,
|
|
10779
10804
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10780
10805
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10786,33 +10811,21 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10786
10811
|
}));
|
|
10787
10812
|
});
|
|
10788
10813
|
const reactDatepicker = "";
|
|
10789
|
-
var Z_INDEX$1 = dimensions.Z_INDEX;
|
|
10790
|
-
var useStyles$F = createThemedStyles("SearchInput", {
|
|
10791
|
-
root: {
|
|
10792
|
-
position: "relative"
|
|
10793
|
-
},
|
|
10794
|
-
icon: {
|
|
10795
|
-
display: "flex",
|
|
10796
|
-
alignItems: "center",
|
|
10797
|
-
position: "absolute",
|
|
10798
|
-
left: 12,
|
|
10799
|
-
height: "100%",
|
|
10800
|
-
width: 20,
|
|
10801
|
-
color: colors.GREY_ACTIVE,
|
|
10802
|
-
zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
|
|
10803
|
-
}
|
|
10804
|
-
});
|
|
10805
10814
|
var inputStyles$4 = {
|
|
10806
10815
|
tweakControlWrapper: {
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10816
|
+
endIcon: {
|
|
10817
|
+
position: "absolute",
|
|
10818
|
+
width: 40,
|
|
10819
|
+
left: 0,
|
|
10820
|
+
"&:last-child": {
|
|
10821
|
+
paddingRight: 0
|
|
10822
|
+
},
|
|
10823
|
+
"&:not($activeIcon)": {
|
|
10824
|
+
pointerEvents: "none"
|
|
10825
|
+
}
|
|
10812
10826
|
},
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
borderColor: colors.BORDER_MAIN
|
|
10827
|
+
controlWrapper: {
|
|
10828
|
+
borderColor: "transparent"
|
|
10816
10829
|
}
|
|
10817
10830
|
},
|
|
10818
10831
|
inputContent: {
|
|
@@ -10848,30 +10861,6 @@ function _object_spread$N(target) {
|
|
|
10848
10861
|
}
|
|
10849
10862
|
return target;
|
|
10850
10863
|
}
|
|
10851
|
-
function ownKeys$G(object, enumerableOnly) {
|
|
10852
|
-
var keys2 = Object.keys(object);
|
|
10853
|
-
if (Object.getOwnPropertySymbols) {
|
|
10854
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
10855
|
-
if (enumerableOnly) {
|
|
10856
|
-
symbols = symbols.filter(function(sym) {
|
|
10857
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10858
|
-
});
|
|
10859
|
-
}
|
|
10860
|
-
keys2.push.apply(keys2, symbols);
|
|
10861
|
-
}
|
|
10862
|
-
return keys2;
|
|
10863
|
-
}
|
|
10864
|
-
function _object_spread_props$G(target, source) {
|
|
10865
|
-
source = source != null ? source : {};
|
|
10866
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
10867
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10868
|
-
} else {
|
|
10869
|
-
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10870
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10871
|
-
});
|
|
10872
|
-
}
|
|
10873
|
-
return target;
|
|
10874
|
-
}
|
|
10875
10864
|
function _object_without_properties$f(source, excluded) {
|
|
10876
10865
|
if (source == null)
|
|
10877
10866
|
return {};
|
|
@@ -10905,42 +10894,30 @@ function _object_without_properties_loose$f(source, excluded) {
|
|
|
10905
10894
|
return target;
|
|
10906
10895
|
}
|
|
10907
10896
|
var SearchInput = function(_param) {
|
|
10908
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable,
|
|
10897
|
+
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;
|
|
10898
|
+
_param.data;
|
|
10899
|
+
var props = _object_without_properties$f(_param, [
|
|
10909
10900
|
"isClearable",
|
|
10910
|
-
"tweakStyles",
|
|
10911
10901
|
"placeholder",
|
|
10912
10902
|
"value",
|
|
10913
10903
|
"testId",
|
|
10904
|
+
"tweakStyles",
|
|
10914
10905
|
"data"
|
|
10915
10906
|
]);
|
|
10916
|
-
var classes = useStyles$F({
|
|
10917
|
-
theme: tweakStyles
|
|
10918
|
-
});
|
|
10919
10907
|
var tweakInputStyles = useTweakStyles({
|
|
10920
10908
|
innerStyles: inputStyles$4,
|
|
10921
10909
|
tweakStyles,
|
|
10922
10910
|
className: "tweakInput",
|
|
10923
10911
|
currentComponentName: "SearchInput"
|
|
10924
10912
|
});
|
|
10925
|
-
return /* @__PURE__ */
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
})
|
|
10934
|
-
}),
|
|
10935
|
-
/* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10936
|
-
value,
|
|
10937
|
-
placeholder,
|
|
10938
|
-
isClearable,
|
|
10939
|
-
testId: getTestId(testId, "input"),
|
|
10940
|
-
tweakStyles: tweakInputStyles
|
|
10941
|
-
}, props))
|
|
10942
|
-
]
|
|
10943
|
-
}));
|
|
10913
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10914
|
+
value,
|
|
10915
|
+
placeholder,
|
|
10916
|
+
icon: "search",
|
|
10917
|
+
isClearable,
|
|
10918
|
+
testId: getTestId(testId, "input"),
|
|
10919
|
+
tweakStyles: tweakInputStyles
|
|
10920
|
+
}, props));
|
|
10944
10921
|
};
|
|
10945
10922
|
var ScrollIntoViewIfNeededDefaultElementType = "div";
|
|
10946
10923
|
var ScrollIntoViewIfNeededDefaultProps = {
|
|
@@ -13546,7 +13523,7 @@ function _object_without_properties_loose$b(source, excluded) {
|
|
|
13546
13523
|
return target;
|
|
13547
13524
|
}
|
|
13548
13525
|
var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
13549
|
-
var icon = _param.icon, _param_size = _param.size,
|
|
13526
|
+
var icon = _param.icon, _param_size = _param.size, size2 = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$b(_param, [
|
|
13550
13527
|
"icon",
|
|
13551
13528
|
"size",
|
|
13552
13529
|
"view",
|
|
@@ -13566,7 +13543,7 @@ var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13566
13543
|
var _obj2;
|
|
13567
13544
|
return /* @__PURE__ */ jsx("button", _object_spread_props$z(_object_spread$E({
|
|
13568
13545
|
ref,
|
|
13569
|
-
className: clsx(classes.root, classes[view], classes[
|
|
13546
|
+
className: clsx(classes.root, classes[view], classes[size2], (_obj2 = {}, _define_property$G(_obj2, classes.disabled, isDisabled), _define_property$G(_obj2, classes.active, isActive), _define_property$G(_obj2, classes.loading, isLoading), _obj2)),
|
|
13570
13547
|
type,
|
|
13571
13548
|
disabled: isDisabled,
|
|
13572
13549
|
onClick: hasNoAction ? void 0 : onClick
|
|
@@ -14124,7 +14101,7 @@ var FileItem = function(param) {
|
|
|
14124
14101
|
event.stopPropagation();
|
|
14125
14102
|
onRemove === null || onRemove === void 0 ? void 0 : onRemove(event);
|
|
14126
14103
|
};
|
|
14127
|
-
var name = fileInfo.name,
|
|
14104
|
+
var name = fileInfo.name, size2 = fileInfo.size;
|
|
14128
14105
|
var hasRemoveButton = isFunction$1(onRemove);
|
|
14129
14106
|
return /* @__PURE__ */ jsxs("div", {
|
|
14130
14107
|
className: classes.root,
|
|
@@ -14153,9 +14130,9 @@ var FileItem = function(param) {
|
|
|
14153
14130
|
className: classes.metadata,
|
|
14154
14131
|
children: [
|
|
14155
14132
|
metadata,
|
|
14156
|
-
shouldShowSize && isNotEmpty(
|
|
14133
|
+
shouldShowSize && isNotEmpty(size2) && /* @__PURE__ */ jsx("div", {
|
|
14157
14134
|
className: classes.fileSize,
|
|
14158
|
-
children: filesize(
|
|
14135
|
+
children: filesize(size2)
|
|
14159
14136
|
})
|
|
14160
14137
|
]
|
|
14161
14138
|
})
|
|
@@ -27525,7 +27502,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
27525
27502
|
return _array_like_to_array$6(o, minLen);
|
|
27526
27503
|
}
|
|
27527
27504
|
var Modal = function(_param) {
|
|
27528
|
-
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size,
|
|
27505
|
+
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$6(_param, [
|
|
27529
27506
|
"data",
|
|
27530
27507
|
"tweakStyles",
|
|
27531
27508
|
"title",
|
|
@@ -27617,7 +27594,7 @@ var Modal = function(_param) {
|
|
|
27617
27594
|
enabled: shouldBlockScroll,
|
|
27618
27595
|
forwardProps: true,
|
|
27619
27596
|
children: /* @__PURE__ */ jsx("div", _object_spread_props$h(_object_spread$i({
|
|
27620
|
-
className: clsx(classes.root, classes[
|
|
27597
|
+
className: clsx(classes.root, classes[size2], (_obj2 = {}, _define_property$j(_obj2, classes.overlay, position !== "static" && hasOverlay), _define_property$j(_obj2, classes.sideBar, position === "left" || position === "right"), _define_property$j(_obj2, classes.fixedPosition, position !== "static"), _obj2)),
|
|
27621
27598
|
style: {
|
|
27622
27599
|
zIndex
|
|
27623
27600
|
}
|
|
@@ -28285,7 +28262,7 @@ function _object_spread_props$e(target, source) {
|
|
|
28285
28262
|
return target;
|
|
28286
28263
|
}
|
|
28287
28264
|
var Notification = function(param) {
|
|
28288
|
-
var children = param.children, type = param.type, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? true : _param_isFullWidth, text = param.text, title = param.title, testId = param.testId, _param_size = param.size,
|
|
28265
|
+
var children = param.children, type = param.type, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? true : _param_isFullWidth, text = param.text, title = param.title, testId = param.testId, _param_size = param.size, size2 = _param_size === void 0 ? "s" : _param_size, data = param.data, icon = param.icon, tweakStyles = param.tweakStyles;
|
|
28289
28266
|
var classes = useStyles$b({
|
|
28290
28267
|
theme: tweakStyles
|
|
28291
28268
|
});
|
|
@@ -28295,7 +28272,7 @@ var Notification = function(param) {
|
|
|
28295
28272
|
var hasIcon = isReactNodeNotEmpty(icon) || isDefaultType;
|
|
28296
28273
|
var _obj2;
|
|
28297
28274
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$e(_object_spread$f({
|
|
28298
|
-
className: clsx(classes.root, classes[
|
|
28275
|
+
className: clsx(classes.root, classes[size2], classes[type], (_obj2 = {}, _define_property$g(_obj2, classes.inline, !isFullWidth), _define_property$g(_obj2, classes.withTitle, hasTitle), _define_property$g(_obj2, classes.withText, hasText), _obj2))
|
|
28299
28276
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
28300
28277
|
children: [
|
|
28301
28278
|
hasIcon && /* @__PURE__ */ jsx("div", {
|
|
@@ -29408,7 +29385,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
29408
29385
|
return _array_like_to_array$1(o, minLen);
|
|
29409
29386
|
}
|
|
29410
29387
|
function Selector(param) {
|
|
29411
|
-
var options = param.options, value = param.value, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_hasSameOptionsWidth = param.hasSameOptionsWidth, hasSameOptionsWidth = _param_hasSameOptionsWidth === void 0 ? true : _param_hasSameOptionsWidth, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_size = param.size,
|
|
29388
|
+
var options = param.options, value = param.value, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_hasSameOptionsWidth = param.hasSameOptionsWidth, hasSameOptionsWidth = _param_hasSameOptionsWidth === void 0 ? true : _param_hasSameOptionsWidth, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_size = param.size, size2 = _param_size === void 0 ? "l" : _param_size, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
29412
29389
|
var classes = useStyles$7({
|
|
29413
29390
|
theme: tweakStyles
|
|
29414
29391
|
});
|
|
@@ -29428,7 +29405,7 @@ function Selector(param) {
|
|
|
29428
29405
|
setElementsData(_to_consumable_array(listEl.querySelectorAll(".".concat(classes.optionWrapper))));
|
|
29429
29406
|
}, [
|
|
29430
29407
|
options,
|
|
29431
|
-
|
|
29408
|
+
size2
|
|
29432
29409
|
]);
|
|
29433
29410
|
var activeElementData = isNotEmpty(value) ? elementsData[optionsValues.indexOf(value)] : void 0;
|
|
29434
29411
|
var _obj2;
|
|
@@ -29452,7 +29429,7 @@ function Selector(param) {
|
|
|
29452
29429
|
}, addDataTestId(testId)), {
|
|
29453
29430
|
children: /* @__PURE__ */ jsxs("button", _object_spread_props$b(_object_spread$b({
|
|
29454
29431
|
type: "button",
|
|
29455
|
-
className: clsx(classes.option, classes[
|
|
29432
|
+
className: clsx(classes.option, classes[size2], (_obj3 = {}, _define_property$b(_obj3, classes.active, isActiveOption), _define_property$b(_obj3, classes.disabled, isDisabledOption), _obj3)),
|
|
29456
29433
|
disabled: isDisabledOption,
|
|
29457
29434
|
onClick: !isDisabledOption ? function() {
|
|
29458
29435
|
return onChange(option.value);
|
|
@@ -30126,12 +30103,12 @@ function _object_spread_props$8(target, source) {
|
|
|
30126
30103
|
return target;
|
|
30127
30104
|
}
|
|
30128
30105
|
var Status = function(param) {
|
|
30129
|
-
var children = param.children, color = param.color, _param_size = param.size,
|
|
30106
|
+
var children = param.children, color = param.color, _param_size = param.size, size2 = _param_size === void 0 ? "s" : _param_size, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "right" : _param_iconPosition, badge = param.badge, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
30130
30107
|
var classes = useStyles$6({
|
|
30131
30108
|
theme: tweakStyles
|
|
30132
30109
|
});
|
|
30133
30110
|
return /* @__PURE__ */ jsxs("span", _object_spread_props$8(_object_spread$8({
|
|
30134
|
-
className: clsx(classes.root, classes[
|
|
30111
|
+
className: clsx(classes.root, classes[size2], classes[color])
|
|
30135
30112
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
30136
30113
|
children: [
|
|
30137
30114
|
isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("span", {
|
|
@@ -30846,7 +30823,7 @@ function _object_without_properties_loose$2(source, excluded) {
|
|
|
30846
30823
|
return target;
|
|
30847
30824
|
}
|
|
30848
30825
|
var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
30849
|
-
var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size,
|
|
30826
|
+
var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$2(_param, [
|
|
30850
30827
|
"children",
|
|
30851
30828
|
"icon",
|
|
30852
30829
|
"view",
|
|
@@ -30878,7 +30855,7 @@ var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
30878
30855
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$4(_object_spread$4({
|
|
30879
30856
|
ref,
|
|
30880
30857
|
type,
|
|
30881
|
-
className: clsx(classes.root, classes[
|
|
30858
|
+
className: clsx(classes.root, classes[size2], classes[view], (_obj2 = {}, _define_property$4(_obj2, classes.bold, isBold), _define_property$4(_obj2, classes.loading, isLoading), _define_property$4(_obj2, classes.active, isActive), _define_property$4(_obj2, classes.disabled, isDisabled), _obj2)),
|
|
30882
30859
|
disabled: hasNoAction,
|
|
30883
30860
|
onClick: !hasNoAction ? onClick : void 0
|
|
30884
30861
|
}, restProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
@@ -31366,6 +31343,11 @@ var NewMoreMenu = function(_param) {
|
|
|
31366
31343
|
}
|
|
31367
31344
|
}));
|
|
31368
31345
|
};
|
|
31346
|
+
var withPopupStyles = {
|
|
31347
|
+
popup: {
|
|
31348
|
+
zIndex: 9999
|
|
31349
|
+
}
|
|
31350
|
+
};
|
|
31369
31351
|
function _define_property(obj, key, value) {
|
|
31370
31352
|
if (key in obj) {
|
|
31371
31353
|
Object.defineProperty(obj, key, {
|
|
@@ -31451,7 +31433,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
31451
31433
|
return target;
|
|
31452
31434
|
}
|
|
31453
31435
|
var WithTooltip = function(_param) {
|
|
31454
|
-
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, [
|
|
31436
|
+
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, [
|
|
31455
31437
|
"children",
|
|
31456
31438
|
"eventType",
|
|
31457
31439
|
"placement",
|
|
@@ -31459,22 +31441,29 @@ var WithTooltip = function(_param) {
|
|
|
31459
31441
|
"tooltipView",
|
|
31460
31442
|
"tooltipType",
|
|
31461
31443
|
"isDisabled",
|
|
31444
|
+
"popupData",
|
|
31462
31445
|
"tweakStyles"
|
|
31463
31446
|
]);
|
|
31464
31447
|
var tweakWithPopupStyles = useTweakStyles({
|
|
31448
|
+
innerStyles: withPopupStyles,
|
|
31465
31449
|
tweakStyles,
|
|
31466
|
-
className: "tweakWithPopup"
|
|
31450
|
+
className: "tweakWithPopup",
|
|
31451
|
+
currentComponentName: "WithTooltip"
|
|
31467
31452
|
});
|
|
31468
31453
|
var tweakTooltipStyles = useTweakStyles({
|
|
31469
31454
|
tweakStyles,
|
|
31470
|
-
className: "tweakTooltip"
|
|
31455
|
+
className: "tweakTooltip",
|
|
31456
|
+
currentComponentName: "WithTooltip"
|
|
31471
31457
|
});
|
|
31472
31458
|
return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({
|
|
31473
31459
|
trigger: children,
|
|
31474
31460
|
placement,
|
|
31475
31461
|
eventType,
|
|
31476
|
-
|
|
31462
|
+
popupData: _object_spread_props(_object_spread({}, popupData), {
|
|
31463
|
+
tooltipView
|
|
31464
|
+
}),
|
|
31477
31465
|
isDisabled: isDisabled || !isReactNodeNotEmpty(tooltipText),
|
|
31466
|
+
isTriggerWrapped: true,
|
|
31478
31467
|
tweakStyles: tweakWithPopupStyles
|
|
31479
31468
|
}, restProps), {
|
|
31480
31469
|
children: /* @__PURE__ */ jsx(Tooltip, {
|