@true-engineering/true-react-common-ui-kit 4.0.0-alpha1 → 4.0.0-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -11
- package/dist/components/SearchInput/SearchInput.styles.d.ts +3 -5
- package/dist/true-react-common-ui-kit.js +142 -190
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +142 -190
- 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
|
@@ -1898,7 +1898,7 @@
|
|
|
1898
1898
|
}
|
|
1899
1899
|
return target;
|
|
1900
1900
|
}
|
|
1901
|
-
function ownKeys$
|
|
1901
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
1902
1902
|
var keys2 = Object.keys(object);
|
|
1903
1903
|
if (Object.getOwnPropertySymbols) {
|
|
1904
1904
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1911,12 +1911,12 @@
|
|
|
1911
1911
|
}
|
|
1912
1912
|
return keys2;
|
|
1913
1913
|
}
|
|
1914
|
-
function _object_spread_props$
|
|
1914
|
+
function _object_spread_props$W(target, source) {
|
|
1915
1915
|
source = source != null ? source : {};
|
|
1916
1916
|
if (Object.getOwnPropertyDescriptors) {
|
|
1917
1917
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1918
1918
|
} else {
|
|
1919
|
-
ownKeys$
|
|
1919
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
1920
1920
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
@@ -1971,7 +1971,7 @@
|
|
|
1971
1971
|
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
1972
|
});
|
|
1973
1973
|
return function(data) {
|
|
1974
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
1974
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$W(_object_spread$16({}, data), {
|
|
1975
1975
|
theme: cleanStyles(data.theme)
|
|
1976
1976
|
}) : data);
|
|
1977
1977
|
};
|
|
@@ -7671,7 +7671,7 @@
|
|
|
7671
7671
|
}
|
|
7672
7672
|
return target;
|
|
7673
7673
|
}
|
|
7674
|
-
function ownKeys$
|
|
7674
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7675
7675
|
var keys2 = Object.keys(object);
|
|
7676
7676
|
if (Object.getOwnPropertySymbols) {
|
|
7677
7677
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7684,12 +7684,12 @@
|
|
|
7684
7684
|
}
|
|
7685
7685
|
return keys2;
|
|
7686
7686
|
}
|
|
7687
|
-
function _object_spread_props$
|
|
7687
|
+
function _object_spread_props$V(target, source) {
|
|
7688
7688
|
source = source != null ? source : {};
|
|
7689
7689
|
if (Object.getOwnPropertyDescriptors) {
|
|
7690
7690
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7691
7691
|
} else {
|
|
7692
|
-
ownKeys$
|
|
7692
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7693
7693
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7694
7694
|
});
|
|
7695
7695
|
}
|
|
@@ -7721,19 +7721,19 @@
|
|
|
7721
7721
|
}, path), index);
|
|
7722
7722
|
}),
|
|
7723
7723
|
(_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$
|
|
7724
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$V(_object_spread$13({}, rect), {
|
|
7725
7725
|
key: index
|
|
7726
7726
|
}));
|
|
7727
7727
|
}),
|
|
7728
7728
|
(_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$
|
|
7729
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$V(_object_spread$13({}, circle), {
|
|
7730
7730
|
key: index
|
|
7731
7731
|
}));
|
|
7732
7732
|
})
|
|
7733
7733
|
]
|
|
7734
7734
|
});
|
|
7735
7735
|
};
|
|
7736
|
-
var useStyles$
|
|
7736
|
+
var useStyles$W = createThemedStyles("Icon", {
|
|
7737
7737
|
root: {
|
|
7738
7738
|
display: "flex",
|
|
7739
7739
|
alignItems: "center"
|
|
@@ -7767,7 +7767,7 @@
|
|
|
7767
7767
|
}
|
|
7768
7768
|
return target;
|
|
7769
7769
|
}
|
|
7770
|
-
function ownKeys$
|
|
7770
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7771
7771
|
var keys2 = Object.keys(object);
|
|
7772
7772
|
if (Object.getOwnPropertySymbols) {
|
|
7773
7773
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7780,12 +7780,12 @@
|
|
|
7780
7780
|
}
|
|
7781
7781
|
return keys2;
|
|
7782
7782
|
}
|
|
7783
|
-
function _object_spread_props$
|
|
7783
|
+
function _object_spread_props$U(target, source) {
|
|
7784
7784
|
source = source != null ? source : {};
|
|
7785
7785
|
if (Object.getOwnPropertyDescriptors) {
|
|
7786
7786
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7787
7787
|
} else {
|
|
7788
|
-
ownKeys$
|
|
7788
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7789
7789
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7790
7790
|
});
|
|
7791
7791
|
}
|
|
@@ -7793,10 +7793,10 @@
|
|
|
7793
7793
|
}
|
|
7794
7794
|
var Icon = function(param) {
|
|
7795
7795
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7796
|
-
var classes = useStyles$
|
|
7796
|
+
var classes = useStyles$W({
|
|
7797
7797
|
theme: tweakStyles
|
|
7798
7798
|
});
|
|
7799
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7799
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$12({
|
|
7800
7800
|
className: classes.root
|
|
7801
7801
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7802
7802
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7812,7 +7812,7 @@
|
|
|
7812
7812
|
}) : icon;
|
|
7813
7813
|
};
|
|
7814
7814
|
var DEFAULT_OFFSET = 6;
|
|
7815
|
-
var useStyles$
|
|
7815
|
+
var useStyles$V = createThemedStyles("WithPopup", {
|
|
7816
7816
|
trigger: {
|
|
7817
7817
|
width: "fit-content"
|
|
7818
7818
|
},
|
|
@@ -7924,7 +7924,7 @@
|
|
|
7924
7924
|
}
|
|
7925
7925
|
return target;
|
|
7926
7926
|
}
|
|
7927
|
-
function ownKeys$
|
|
7927
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
7928
7928
|
var keys2 = Object.keys(object);
|
|
7929
7929
|
if (Object.getOwnPropertySymbols) {
|
|
7930
7930
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7937,12 +7937,12 @@
|
|
|
7937
7937
|
}
|
|
7938
7938
|
return keys2;
|
|
7939
7939
|
}
|
|
7940
|
-
function _object_spread_props$
|
|
7940
|
+
function _object_spread_props$T(target, source) {
|
|
7941
7941
|
source = source != null ? source : {};
|
|
7942
7942
|
if (Object.getOwnPropertyDescriptors) {
|
|
7943
7943
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7944
7944
|
} else {
|
|
7945
|
-
ownKeys$
|
|
7945
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
7946
7946
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7947
7947
|
});
|
|
7948
7948
|
}
|
|
@@ -7969,7 +7969,7 @@
|
|
|
7969
7969
|
}
|
|
7970
7970
|
var WithPopup = function(param) {
|
|
7971
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 ? true : _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, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle;
|
|
7972
|
-
var classes = useStyles$
|
|
7972
|
+
var classes = useStyles$V({
|
|
7973
7973
|
theme: tweakStyles
|
|
7974
7974
|
});
|
|
7975
7975
|
var _useState = _sliced_to_array$m(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
@@ -8042,14 +8042,14 @@
|
|
|
8042
8042
|
var _obj2;
|
|
8043
8043
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8044
8044
|
children: [
|
|
8045
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8045
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$11({
|
|
8046
8046
|
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
8047
|
}, referenceProps, trueReactPlatformHelpers.addDataTestId(testId), trueReactPlatformHelpers.addDataAttributes(data)), {
|
|
8048
8048
|
children: triggerElement
|
|
8049
8049
|
})) : triggerElement,
|
|
8050
8050
|
isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
8051
8051
|
root: !shouldRenderInBody ? refs.reference.current : void 0,
|
|
8052
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8052
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$11({
|
|
8053
8053
|
style: floatingStyles,
|
|
8054
8054
|
className: classes.popup,
|
|
8055
8055
|
ref: refs.setFloating
|
|
@@ -8068,7 +8068,7 @@
|
|
|
8068
8068
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8069
8069
|
var ICON_SIZE$1 = 20;
|
|
8070
8070
|
var ICON_GAP = 12;
|
|
8071
|
-
var useStyles$
|
|
8071
|
+
var useStyles$U = createThemedStyles("ListItem", {
|
|
8072
8072
|
root: {
|
|
8073
8073
|
display: "flex",
|
|
8074
8074
|
alignItems: "center",
|
|
@@ -8135,7 +8135,7 @@
|
|
|
8135
8135
|
}
|
|
8136
8136
|
return target;
|
|
8137
8137
|
}
|
|
8138
|
-
function ownKeys$
|
|
8138
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8139
8139
|
var keys2 = Object.keys(object);
|
|
8140
8140
|
if (Object.getOwnPropertySymbols) {
|
|
8141
8141
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8148,12 +8148,12 @@
|
|
|
8148
8148
|
}
|
|
8149
8149
|
return keys2;
|
|
8150
8150
|
}
|
|
8151
|
-
function _object_spread_props$
|
|
8151
|
+
function _object_spread_props$S(target, source) {
|
|
8152
8152
|
source = source != null ? source : {};
|
|
8153
8153
|
if (Object.getOwnPropertyDescriptors) {
|
|
8154
8154
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8155
8155
|
} else {
|
|
8156
|
-
ownKeys$
|
|
8156
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8157
8157
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8158
8158
|
});
|
|
8159
8159
|
}
|
|
@@ -8161,7 +8161,7 @@
|
|
|
8161
8161
|
}
|
|
8162
8162
|
var ListItem = function(param) {
|
|
8163
8163
|
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$
|
|
8164
|
+
var classes = useStyles$U({
|
|
8165
8165
|
theme: tweakStyles
|
|
8166
8166
|
});
|
|
8167
8167
|
var _obj2;
|
|
@@ -8170,9 +8170,9 @@
|
|
|
8170
8170
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8171
8171
|
className: classes.spacer
|
|
8172
8172
|
}),
|
|
8173
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8173
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$S(_object_spread$10({
|
|
8174
8174
|
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$
|
|
8175
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$S(_object_spread$10({}, data), {
|
|
8176
8176
|
disabled: isDisabled ? true : void 0
|
|
8177
8177
|
}))), {
|
|
8178
8178
|
children: [
|
|
@@ -8198,7 +8198,7 @@
|
|
|
8198
8198
|
]
|
|
8199
8199
|
});
|
|
8200
8200
|
};
|
|
8201
|
-
var useStyles$
|
|
8201
|
+
var useStyles$T = createThemedStyles("List", {
|
|
8202
8202
|
root: {
|
|
8203
8203
|
minWidth: 180,
|
|
8204
8204
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8247,7 +8247,7 @@
|
|
|
8247
8247
|
}
|
|
8248
8248
|
return target;
|
|
8249
8249
|
}
|
|
8250
|
-
function ownKeys$
|
|
8250
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8251
8251
|
var keys2 = Object.keys(object);
|
|
8252
8252
|
if (Object.getOwnPropertySymbols) {
|
|
8253
8253
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8260,12 +8260,12 @@
|
|
|
8260
8260
|
}
|
|
8261
8261
|
return keys2;
|
|
8262
8262
|
}
|
|
8263
|
-
function _object_spread_props$
|
|
8263
|
+
function _object_spread_props$R(target, source) {
|
|
8264
8264
|
source = source != null ? source : {};
|
|
8265
8265
|
if (Object.getOwnPropertyDescriptors) {
|
|
8266
8266
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8267
8267
|
} else {
|
|
8268
|
-
ownKeys$
|
|
8268
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8269
8269
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8270
8270
|
});
|
|
8271
8271
|
}
|
|
@@ -8273,7 +8273,7 @@
|
|
|
8273
8273
|
}
|
|
8274
8274
|
var List = function(param) {
|
|
8275
8275
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8276
|
-
var classes = useStyles$
|
|
8276
|
+
var classes = useStyles$T({
|
|
8277
8277
|
theme: tweakStyles
|
|
8278
8278
|
});
|
|
8279
8279
|
var handleItemClick = function(event, param2) {
|
|
@@ -8283,11 +8283,11 @@
|
|
|
8283
8283
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8284
8284
|
}
|
|
8285
8285
|
};
|
|
8286
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8286
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$$({
|
|
8287
8287
|
className: classes.root
|
|
8288
8288
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8289
8289
|
children: items.map(function(item, i) {
|
|
8290
|
-
var itemProps = _object_spread_props$
|
|
8290
|
+
var itemProps = _object_spread_props$R(_object_spread$$({
|
|
8291
8291
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
8292
8292
|
}, item), {
|
|
8293
8293
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8305,7 +8305,7 @@
|
|
|
8305
8305
|
shouldRenderInBody: false,
|
|
8306
8306
|
trigger: function(param2) {
|
|
8307
8307
|
var triggerProps = param2.triggerProps;
|
|
8308
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8308
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$R(_object_spread$$({}, itemProps), {
|
|
8309
8309
|
isFocused: triggerProps.isActive
|
|
8310
8310
|
}));
|
|
8311
8311
|
},
|
|
@@ -8350,7 +8350,7 @@
|
|
|
8350
8350
|
}
|
|
8351
8351
|
return target;
|
|
8352
8352
|
}
|
|
8353
|
-
var useStyles$
|
|
8353
|
+
var useStyles$S = createThemedStyles("AccountInfo", _object_spread$_({
|
|
8354
8354
|
root: {
|
|
8355
8355
|
display: "flex"
|
|
8356
8356
|
},
|
|
@@ -8463,7 +8463,7 @@
|
|
|
8463
8463
|
}
|
|
8464
8464
|
return target;
|
|
8465
8465
|
}
|
|
8466
|
-
function ownKeys$
|
|
8466
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8467
8467
|
var keys2 = Object.keys(object);
|
|
8468
8468
|
if (Object.getOwnPropertySymbols) {
|
|
8469
8469
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8476,12 +8476,12 @@
|
|
|
8476
8476
|
}
|
|
8477
8477
|
return keys2;
|
|
8478
8478
|
}
|
|
8479
|
-
function _object_spread_props$
|
|
8479
|
+
function _object_spread_props$Q(target, source) {
|
|
8480
8480
|
source = source != null ? source : {};
|
|
8481
8481
|
if (Object.getOwnPropertyDescriptors) {
|
|
8482
8482
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8483
8483
|
} else {
|
|
8484
|
-
ownKeys$
|
|
8484
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8485
8485
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8486
8486
|
});
|
|
8487
8487
|
}
|
|
@@ -8505,7 +8505,7 @@
|
|
|
8505
8505
|
}
|
|
8506
8506
|
var AccountInfo = function(param) {
|
|
8507
8507
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8508
|
-
var classes = useStyles$
|
|
8508
|
+
var classes = useStyles$S({
|
|
8509
8509
|
theme: tweakStyles
|
|
8510
8510
|
});
|
|
8511
8511
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8525,7 +8525,7 @@
|
|
|
8525
8525
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8526
8526
|
return setIsMenuOpen(false);
|
|
8527
8527
|
}, nameRef);
|
|
8528
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8528
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$Q(_object_spread$Z({
|
|
8529
8529
|
className: classes.root
|
|
8530
8530
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8531
8531
|
children: [
|
|
@@ -8575,7 +8575,7 @@
|
|
|
8575
8575
|
]
|
|
8576
8576
|
}));
|
|
8577
8577
|
};
|
|
8578
|
-
var useStyles$
|
|
8578
|
+
var useStyles$R = createThemedStyles("AddButton", {
|
|
8579
8579
|
root: {
|
|
8580
8580
|
display: "flex",
|
|
8581
8581
|
alignItems: "center",
|
|
@@ -8629,7 +8629,7 @@
|
|
|
8629
8629
|
}
|
|
8630
8630
|
return target;
|
|
8631
8631
|
}
|
|
8632
|
-
function ownKeys$
|
|
8632
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8633
8633
|
var keys2 = Object.keys(object);
|
|
8634
8634
|
if (Object.getOwnPropertySymbols) {
|
|
8635
8635
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8642,12 +8642,12 @@
|
|
|
8642
8642
|
}
|
|
8643
8643
|
return keys2;
|
|
8644
8644
|
}
|
|
8645
|
-
function _object_spread_props$
|
|
8645
|
+
function _object_spread_props$P(target, source) {
|
|
8646
8646
|
source = source != null ? source : {};
|
|
8647
8647
|
if (Object.getOwnPropertyDescriptors) {
|
|
8648
8648
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8649
8649
|
} else {
|
|
8650
|
-
ownKeys$
|
|
8650
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8651
8651
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8652
8652
|
});
|
|
8653
8653
|
}
|
|
@@ -8655,10 +8655,10 @@
|
|
|
8655
8655
|
}
|
|
8656
8656
|
var AddButton = function(param) {
|
|
8657
8657
|
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$
|
|
8658
|
+
var classes = useStyles$R({
|
|
8659
8659
|
theme: tweakStyles
|
|
8660
8660
|
});
|
|
8661
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8661
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$P(_object_spread$Y({
|
|
8662
8662
|
type,
|
|
8663
8663
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8664
8664
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8677,7 +8677,7 @@
|
|
|
8677
8677
|
]
|
|
8678
8678
|
}));
|
|
8679
8679
|
};
|
|
8680
|
-
var useStyles$
|
|
8680
|
+
var useStyles$Q = createThemedStyles("DotsPreloader", {
|
|
8681
8681
|
root: {
|
|
8682
8682
|
display: "flex",
|
|
8683
8683
|
gap: 4,
|
|
@@ -8723,7 +8723,7 @@
|
|
|
8723
8723
|
});
|
|
8724
8724
|
var DotsPreloader = function(param) {
|
|
8725
8725
|
var tweakStyles = param.tweakStyles;
|
|
8726
|
-
var classes = useStyles$
|
|
8726
|
+
var classes = useStyles$Q({
|
|
8727
8727
|
theme: tweakStyles
|
|
8728
8728
|
});
|
|
8729
8729
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8789,7 +8789,7 @@
|
|
|
8789
8789
|
]
|
|
8790
8790
|
});
|
|
8791
8791
|
};
|
|
8792
|
-
var useStyles$
|
|
8792
|
+
var useStyles$P = createThemedStyles("SvgPreloader", {
|
|
8793
8793
|
root: {
|
|
8794
8794
|
display: "flex",
|
|
8795
8795
|
width: "100%",
|
|
@@ -8799,7 +8799,7 @@
|
|
|
8799
8799
|
var SvgPreloader = function(param) {
|
|
8800
8800
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8801
8801
|
var _theme_preloaders;
|
|
8802
|
-
var classes = useStyles$
|
|
8802
|
+
var classes = useStyles$P({
|
|
8803
8803
|
theme: tweakStyles
|
|
8804
8804
|
});
|
|
8805
8805
|
var theme = React.useContext(ThemeContext).theme;
|
|
@@ -8813,7 +8813,7 @@
|
|
|
8813
8813
|
}
|
|
8814
8814
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8815
8815
|
};
|
|
8816
|
-
var useStyles$
|
|
8816
|
+
var useStyles$O = createThemedStyles("ThemedPreloader", {
|
|
8817
8817
|
root: {
|
|
8818
8818
|
display: "flex"
|
|
8819
8819
|
},
|
|
@@ -8852,7 +8852,7 @@
|
|
|
8852
8852
|
}
|
|
8853
8853
|
return target;
|
|
8854
8854
|
}
|
|
8855
|
-
function ownKeys$
|
|
8855
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
8856
8856
|
var keys2 = Object.keys(object);
|
|
8857
8857
|
if (Object.getOwnPropertySymbols) {
|
|
8858
8858
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8865,12 +8865,12 @@
|
|
|
8865
8865
|
}
|
|
8866
8866
|
return keys2;
|
|
8867
8867
|
}
|
|
8868
|
-
function _object_spread_props$
|
|
8868
|
+
function _object_spread_props$O(target, source) {
|
|
8869
8869
|
source = source != null ? source : {};
|
|
8870
8870
|
if (Object.getOwnPropertyDescriptors) {
|
|
8871
8871
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8872
8872
|
} else {
|
|
8873
|
-
ownKeys$
|
|
8873
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
8874
8874
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8875
8875
|
});
|
|
8876
8876
|
}
|
|
@@ -8878,7 +8878,7 @@
|
|
|
8878
8878
|
}
|
|
8879
8879
|
var ThemedPreloader = function(param) {
|
|
8880
8880
|
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$
|
|
8881
|
+
var classes = useStyles$O({
|
|
8882
8882
|
theme: tweakStyles
|
|
8883
8883
|
});
|
|
8884
8884
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8891,7 +8891,7 @@
|
|
|
8891
8891
|
className: "tweakSvgPreloader",
|
|
8892
8892
|
currentComponentName: "ThemedPreloader"
|
|
8893
8893
|
});
|
|
8894
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8894
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$O(_object_spread$X({
|
|
8895
8895
|
className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
|
|
8896
8896
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8897
8897
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
@@ -8902,7 +8902,7 @@
|
|
|
8902
8902
|
})
|
|
8903
8903
|
}));
|
|
8904
8904
|
};
|
|
8905
|
-
var useStyles$
|
|
8905
|
+
var useStyles$N = createThemedStyles("Button", {
|
|
8906
8906
|
root: {
|
|
8907
8907
|
display: "flex",
|
|
8908
8908
|
justifyContent: "center",
|
|
@@ -9101,7 +9101,7 @@
|
|
|
9101
9101
|
}
|
|
9102
9102
|
return target;
|
|
9103
9103
|
}
|
|
9104
|
-
function ownKeys$
|
|
9104
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9105
9105
|
var keys2 = Object.keys(object);
|
|
9106
9106
|
if (Object.getOwnPropertySymbols) {
|
|
9107
9107
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9114,12 +9114,12 @@
|
|
|
9114
9114
|
}
|
|
9115
9115
|
return keys2;
|
|
9116
9116
|
}
|
|
9117
|
-
function _object_spread_props$
|
|
9117
|
+
function _object_spread_props$N(target, source) {
|
|
9118
9118
|
source = source != null ? source : {};
|
|
9119
9119
|
if (Object.getOwnPropertyDescriptors) {
|
|
9120
9120
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9121
9121
|
} else {
|
|
9122
|
-
ownKeys$
|
|
9122
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9123
9123
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9124
9124
|
});
|
|
9125
9125
|
}
|
|
@@ -9176,7 +9176,7 @@
|
|
|
9176
9176
|
"iconPosition",
|
|
9177
9177
|
"preloaderType"
|
|
9178
9178
|
]);
|
|
9179
|
-
var classes = useStyles$
|
|
9179
|
+
var classes = useStyles$N({
|
|
9180
9180
|
theme: tweakStyles
|
|
9181
9181
|
});
|
|
9182
9182
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9189,7 +9189,7 @@
|
|
|
9189
9189
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
9190
9190
|
var hasNoAction = isDisabled || isLoading;
|
|
9191
9191
|
var _obj2, _obj1;
|
|
9192
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9192
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$N(_object_spread$W({
|
|
9193
9193
|
ref,
|
|
9194
9194
|
type,
|
|
9195
9195
|
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 +9221,7 @@
|
|
|
9221
9221
|
]
|
|
9222
9222
|
}));
|
|
9223
9223
|
});
|
|
9224
|
-
var useStyles$
|
|
9224
|
+
var useStyles$M = createThemedStyles("Checkbox", {
|
|
9225
9225
|
root: {
|
|
9226
9226
|
cursor: "pointer",
|
|
9227
9227
|
display: "flex",
|
|
@@ -9287,7 +9287,7 @@
|
|
|
9287
9287
|
}
|
|
9288
9288
|
return target;
|
|
9289
9289
|
}
|
|
9290
|
-
function ownKeys$
|
|
9290
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9291
9291
|
var keys2 = Object.keys(object);
|
|
9292
9292
|
if (Object.getOwnPropertySymbols) {
|
|
9293
9293
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9300,12 +9300,12 @@
|
|
|
9300
9300
|
}
|
|
9301
9301
|
return keys2;
|
|
9302
9302
|
}
|
|
9303
|
-
function _object_spread_props$
|
|
9303
|
+
function _object_spread_props$M(target, source) {
|
|
9304
9304
|
source = source != null ? source : {};
|
|
9305
9305
|
if (Object.getOwnPropertyDescriptors) {
|
|
9306
9306
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9307
9307
|
} else {
|
|
9308
|
-
ownKeys$
|
|
9308
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9309
9309
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9310
9310
|
});
|
|
9311
9311
|
}
|
|
@@ -9313,7 +9313,7 @@
|
|
|
9313
9313
|
}
|
|
9314
9314
|
function Checkbox(param) {
|
|
9315
9315
|
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$
|
|
9316
|
+
var classes = useStyles$M({
|
|
9317
9317
|
theme: tweakStyles
|
|
9318
9318
|
});
|
|
9319
9319
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9325,7 +9325,7 @@
|
|
|
9325
9325
|
}, event);
|
|
9326
9326
|
};
|
|
9327
9327
|
var _obj2;
|
|
9328
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9328
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$M(_object_spread$V({
|
|
9329
9329
|
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
9330
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9331
9331
|
children: [
|
|
@@ -9352,7 +9352,7 @@
|
|
|
9352
9352
|
]
|
|
9353
9353
|
}));
|
|
9354
9354
|
}
|
|
9355
|
-
var useStyles$
|
|
9355
|
+
var useStyles$L = createThemedStyles("CloseButton", {
|
|
9356
9356
|
root: {
|
|
9357
9357
|
width: 40,
|
|
9358
9358
|
height: 40,
|
|
@@ -9406,7 +9406,7 @@
|
|
|
9406
9406
|
}
|
|
9407
9407
|
return target;
|
|
9408
9408
|
}
|
|
9409
|
-
function ownKeys$
|
|
9409
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9410
9410
|
var keys2 = Object.keys(object);
|
|
9411
9411
|
if (Object.getOwnPropertySymbols) {
|
|
9412
9412
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9419,12 +9419,12 @@
|
|
|
9419
9419
|
}
|
|
9420
9420
|
return keys2;
|
|
9421
9421
|
}
|
|
9422
|
-
function _object_spread_props$
|
|
9422
|
+
function _object_spread_props$L(target, source) {
|
|
9423
9423
|
source = source != null ? source : {};
|
|
9424
9424
|
if (Object.getOwnPropertyDescriptors) {
|
|
9425
9425
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9426
9426
|
} else {
|
|
9427
|
-
ownKeys$
|
|
9427
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9428
9428
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9429
9429
|
});
|
|
9430
9430
|
}
|
|
@@ -9432,10 +9432,10 @@
|
|
|
9432
9432
|
}
|
|
9433
9433
|
var CloseButton = function(param) {
|
|
9434
9434
|
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$
|
|
9435
|
+
var classes = useStyles$L({
|
|
9436
9436
|
theme: tweakStyles
|
|
9437
9437
|
});
|
|
9438
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9438
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$L(_object_spread$U({
|
|
9439
9439
|
type: "button",
|
|
9440
9440
|
className: classes.root,
|
|
9441
9441
|
onClick: onClose
|
|
@@ -9445,7 +9445,7 @@
|
|
|
9445
9445
|
})
|
|
9446
9446
|
}));
|
|
9447
9447
|
};
|
|
9448
|
-
var useStyles$
|
|
9448
|
+
var useStyles$K = createThemedStyles({
|
|
9449
9449
|
root: {
|
|
9450
9450
|
display: "flex",
|
|
9451
9451
|
flexWrap: "wrap"
|
|
@@ -9538,7 +9538,7 @@
|
|
|
9538
9538
|
return _array_like_to_array$k(o, minLen);
|
|
9539
9539
|
}
|
|
9540
9540
|
var Colors = function() {
|
|
9541
|
-
var classes = useStyles$
|
|
9541
|
+
var classes = useStyles$K();
|
|
9542
9542
|
var theme = React.useContext(ThemeContext).theme;
|
|
9543
9543
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9544
9544
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9568,7 +9568,7 @@
|
|
|
9568
9568
|
})
|
|
9569
9569
|
});
|
|
9570
9570
|
};
|
|
9571
|
-
var useStyles$
|
|
9571
|
+
var useStyles$J = createThemedStyles("CssBaseline", {
|
|
9572
9572
|
"@global html, body": {
|
|
9573
9573
|
fontFamily: "Arial, sans-serif",
|
|
9574
9574
|
color: colors.FONT_MAIN,
|
|
@@ -9607,14 +9607,14 @@
|
|
|
9607
9607
|
}
|
|
9608
9608
|
var CssBaseline = function(param) {
|
|
9609
9609
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9610
|
-
var classes = useStyles$
|
|
9610
|
+
var classes = useStyles$J({
|
|
9611
9611
|
theme: tweakStyles
|
|
9612
9612
|
});
|
|
9613
9613
|
return /* @__PURE__ */ jsx("div", _object_spread$T({
|
|
9614
9614
|
className: classes.root
|
|
9615
9615
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
9616
9616
|
};
|
|
9617
|
-
var useStyles$
|
|
9617
|
+
var useStyles$I = createThemedStyles("WithMessages", {
|
|
9618
9618
|
withMessages: {
|
|
9619
9619
|
display: "flex",
|
|
9620
9620
|
flexDirection: "column",
|
|
@@ -9676,7 +9676,7 @@
|
|
|
9676
9676
|
}
|
|
9677
9677
|
return target;
|
|
9678
9678
|
}
|
|
9679
|
-
function ownKeys$
|
|
9679
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9680
9680
|
var keys2 = Object.keys(object);
|
|
9681
9681
|
if (Object.getOwnPropertySymbols) {
|
|
9682
9682
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9689,12 +9689,12 @@
|
|
|
9689
9689
|
}
|
|
9690
9690
|
return keys2;
|
|
9691
9691
|
}
|
|
9692
|
-
function _object_spread_props$
|
|
9692
|
+
function _object_spread_props$K(target, source) {
|
|
9693
9693
|
source = source != null ? source : {};
|
|
9694
9694
|
if (Object.getOwnPropertyDescriptors) {
|
|
9695
9695
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9696
9696
|
} else {
|
|
9697
|
-
ownKeys$
|
|
9697
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9698
9698
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9699
9699
|
});
|
|
9700
9700
|
}
|
|
@@ -9702,13 +9702,13 @@
|
|
|
9702
9702
|
}
|
|
9703
9703
|
var WithMessages = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
9704
9704
|
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$
|
|
9705
|
+
var classes = useStyles$I({
|
|
9706
9706
|
theme: tweakStyles
|
|
9707
9707
|
});
|
|
9708
9708
|
var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
|
|
9709
9709
|
var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9710
9710
|
var _obj2;
|
|
9711
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9711
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
9712
9712
|
ref,
|
|
9713
9713
|
className: classes.withMessages,
|
|
9714
9714
|
"data-invalid": shouldShowError ? true : void 0
|
|
@@ -9721,12 +9721,12 @@
|
|
|
9721
9721
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9722
9722
|
className: classes.message,
|
|
9723
9723
|
children: [
|
|
9724
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9724
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9725
9725
|
className: classes.error
|
|
9726
9726
|
}, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
|
|
9727
9727
|
children: errorMessage
|
|
9728
9728
|
})),
|
|
9729
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9729
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9730
9730
|
className: classes.info
|
|
9731
9731
|
}, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
|
|
9732
9732
|
children: infoMessage
|
|
@@ -9736,8 +9736,8 @@
|
|
|
9736
9736
|
]
|
|
9737
9737
|
}));
|
|
9738
9738
|
});
|
|
9739
|
-
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$
|
|
9740
|
-
var useStyles$
|
|
9739
|
+
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$1 = dimensions.Z_INDEX;
|
|
9740
|
+
var useStyles$H = createThemedStyles("ControlWrapper", {
|
|
9741
9741
|
controlWrapper: {
|
|
9742
9742
|
"--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
|
|
9743
9743
|
// borders
|
|
@@ -9759,12 +9759,12 @@
|
|
|
9759
9759
|
zIndex: 0
|
|
9760
9760
|
},
|
|
9761
9761
|
invalid: {
|
|
9762
|
-
zIndex: Z_INDEX$
|
|
9762
|
+
zIndex: Z_INDEX$1.CONTROL_INVALID
|
|
9763
9763
|
},
|
|
9764
9764
|
disabled: {},
|
|
9765
9765
|
focused: {
|
|
9766
9766
|
position: "relative",
|
|
9767
|
-
zIndex: Z_INDEX$
|
|
9767
|
+
zIndex: Z_INDEX$1.CONTROL_FOCUS
|
|
9768
9768
|
},
|
|
9769
9769
|
withValue: {},
|
|
9770
9770
|
loading: {},
|
|
@@ -9916,7 +9916,7 @@
|
|
|
9916
9916
|
}
|
|
9917
9917
|
return target;
|
|
9918
9918
|
}
|
|
9919
|
-
function ownKeys$
|
|
9919
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
9920
9920
|
var keys2 = Object.keys(object);
|
|
9921
9921
|
if (Object.getOwnPropertySymbols) {
|
|
9922
9922
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9929,12 +9929,12 @@
|
|
|
9929
9929
|
}
|
|
9930
9930
|
return keys2;
|
|
9931
9931
|
}
|
|
9932
|
-
function _object_spread_props$
|
|
9932
|
+
function _object_spread_props$J(target, source) {
|
|
9933
9933
|
source = source != null ? source : {};
|
|
9934
9934
|
if (Object.getOwnPropertyDescriptors) {
|
|
9935
9935
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9936
9936
|
} else {
|
|
9937
|
-
ownKeys$
|
|
9937
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
9938
9938
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9939
9939
|
});
|
|
9940
9940
|
}
|
|
@@ -9942,7 +9942,7 @@
|
|
|
9942
9942
|
}
|
|
9943
9943
|
var ControlWrapper = function(param) {
|
|
9944
9944
|
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$
|
|
9945
|
+
var classes = useStyles$H({
|
|
9946
9946
|
theme: tweakStyles
|
|
9947
9947
|
});
|
|
9948
9948
|
var hasEndIcon = !isLoading && trueReactPlatformHelpers.isReactNodeNotEmpty(icon);
|
|
@@ -9954,7 +9954,7 @@
|
|
|
9954
9954
|
currentComponentName: "ControlWrapper"
|
|
9955
9955
|
});
|
|
9956
9956
|
var _obj2, _obj1, _obj22;
|
|
9957
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9957
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$R({
|
|
9958
9958
|
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && [
|
|
9959
9959
|
classes["placement-".concat(groupPlacement)]
|
|
9960
9960
|
], (_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 +9971,7 @@
|
|
|
9971
9971
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9972
9972
|
className: classes.controls,
|
|
9973
9973
|
children: [
|
|
9974
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9974
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9975
9975
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9976
9976
|
}, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
|
|
9977
9977
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9981,7 +9981,7 @@
|
|
|
9981
9981
|
})
|
|
9982
9982
|
})
|
|
9983
9983
|
})),
|
|
9984
|
-
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9984
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9985
9985
|
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
9986
|
}, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
|
|
9987
9987
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9989,7 +9989,7 @@
|
|
|
9989
9989
|
children: renderIcon(icon)
|
|
9990
9990
|
})
|
|
9991
9991
|
})),
|
|
9992
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9992
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9993
9993
|
className: clsx(classes.icon, classes.loader)
|
|
9994
9994
|
}, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
|
|
9995
9995
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10007,7 +10007,7 @@
|
|
|
10007
10007
|
}));
|
|
10008
10008
|
};
|
|
10009
10009
|
var PADDING_WITH_UNITS = 8;
|
|
10010
|
-
var useStyles$
|
|
10010
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
10011
10011
|
inputContent: {
|
|
10012
10012
|
height: "var(--control-height)",
|
|
10013
10013
|
padding: [
|
|
@@ -10179,7 +10179,7 @@
|
|
|
10179
10179
|
}
|
|
10180
10180
|
return target;
|
|
10181
10181
|
}
|
|
10182
|
-
function ownKeys$
|
|
10182
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10183
10183
|
var keys2 = Object.keys(object);
|
|
10184
10184
|
if (Object.getOwnPropertySymbols) {
|
|
10185
10185
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10192,12 +10192,12 @@
|
|
|
10192
10192
|
}
|
|
10193
10193
|
return keys2;
|
|
10194
10194
|
}
|
|
10195
|
-
function _object_spread_props$
|
|
10195
|
+
function _object_spread_props$I(target, source) {
|
|
10196
10196
|
source = source != null ? source : {};
|
|
10197
10197
|
if (Object.getOwnPropertyDescriptors) {
|
|
10198
10198
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10199
10199
|
} else {
|
|
10200
|
-
ownKeys$
|
|
10200
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10201
10201
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10202
10202
|
});
|
|
10203
10203
|
}
|
|
@@ -10385,7 +10385,7 @@
|
|
|
10385
10385
|
"shouldAlwaysShowPlaceholder",
|
|
10386
10386
|
"beforeMaskedStateChange"
|
|
10387
10387
|
]);
|
|
10388
|
-
var classes = useStyles$
|
|
10388
|
+
var classes = useStyles$G({
|
|
10389
10389
|
theme: tweakStyles
|
|
10390
10390
|
});
|
|
10391
10391
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -10498,7 +10498,7 @@
|
|
|
10498
10498
|
})
|
|
10499
10499
|
]
|
|
10500
10500
|
});
|
|
10501
|
-
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$
|
|
10501
|
+
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$I(_object_spread$Q({
|
|
10502
10502
|
label,
|
|
10503
10503
|
isDisabled,
|
|
10504
10504
|
isFocused: hasFocus,
|
|
@@ -10542,7 +10542,7 @@
|
|
|
10542
10542
|
}
|
|
10543
10543
|
return target;
|
|
10544
10544
|
}
|
|
10545
|
-
function ownKeys$
|
|
10545
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
10546
10546
|
var keys2 = Object.keys(object);
|
|
10547
10547
|
if (Object.getOwnPropertySymbols) {
|
|
10548
10548
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10555,12 +10555,12 @@
|
|
|
10555
10555
|
}
|
|
10556
10556
|
return keys2;
|
|
10557
10557
|
}
|
|
10558
|
-
function _object_spread_props$
|
|
10558
|
+
function _object_spread_props$H(target, source) {
|
|
10559
10559
|
source = source != null ? source : {};
|
|
10560
10560
|
if (Object.getOwnPropertyDescriptors) {
|
|
10561
10561
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10562
10562
|
} else {
|
|
10563
|
-
ownKeys$
|
|
10563
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
10564
10564
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10565
10565
|
});
|
|
10566
10566
|
}
|
|
@@ -10615,7 +10615,7 @@
|
|
|
10615
10615
|
infoMessage,
|
|
10616
10616
|
testId,
|
|
10617
10617
|
tweakStyles: tweakWithMessagesStyles,
|
|
10618
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$
|
|
10618
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$H(_object_spread$P({}, inputProps), {
|
|
10619
10619
|
ref,
|
|
10620
10620
|
testId,
|
|
10621
10621
|
tweakStyles,
|
|
@@ -10625,7 +10625,7 @@
|
|
|
10625
10625
|
});
|
|
10626
10626
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10627
10627
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10628
|
-
var useStyles$
|
|
10628
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10629
10629
|
root: {
|
|
10630
10630
|
width: "100%",
|
|
10631
10631
|
height: "100%",
|
|
@@ -10661,7 +10661,7 @@
|
|
|
10661
10661
|
}
|
|
10662
10662
|
return target;
|
|
10663
10663
|
}
|
|
10664
|
-
function ownKeys$
|
|
10664
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
10665
10665
|
var keys2 = Object.keys(object);
|
|
10666
10666
|
if (Object.getOwnPropertySymbols) {
|
|
10667
10667
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10674,12 +10674,12 @@
|
|
|
10674
10674
|
}
|
|
10675
10675
|
return keys2;
|
|
10676
10676
|
}
|
|
10677
|
-
function _object_spread_props$
|
|
10677
|
+
function _object_spread_props$G(target, source) {
|
|
10678
10678
|
source = source != null ? source : {};
|
|
10679
10679
|
if (Object.getOwnPropertyDescriptors) {
|
|
10680
10680
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10681
10681
|
} else {
|
|
10682
|
-
ownKeys$
|
|
10682
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10683
10683
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10684
10684
|
});
|
|
10685
10685
|
}
|
|
@@ -10731,7 +10731,7 @@
|
|
|
10731
10731
|
"onClick",
|
|
10732
10732
|
"onChange"
|
|
10733
10733
|
]);
|
|
10734
|
-
var classes = useStyles$
|
|
10734
|
+
var classes = useStyles$F({
|
|
10735
10735
|
theme: tweakStyles
|
|
10736
10736
|
});
|
|
10737
10737
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10758,11 +10758,11 @@
|
|
|
10758
10758
|
}
|
|
10759
10759
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10760
10760
|
};
|
|
10761
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10761
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$O({
|
|
10762
10762
|
className: clsx(classes.root, className),
|
|
10763
10763
|
onClick
|
|
10764
10764
|
}, addDataAttributes(data)), {
|
|
10765
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10765
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$G(_object_spread$O({}, inputProps), {
|
|
10766
10766
|
ref,
|
|
10767
10767
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10768
10768
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10774,33 +10774,21 @@
|
|
|
10774
10774
|
}));
|
|
10775
10775
|
});
|
|
10776
10776
|
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
10777
|
var inputStyles$4 = {
|
|
10794
10778
|
tweakControlWrapper: {
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10779
|
+
endIcon: {
|
|
10780
|
+
position: "absolute",
|
|
10781
|
+
width: 40,
|
|
10782
|
+
left: 0,
|
|
10783
|
+
"&:last-child": {
|
|
10784
|
+
paddingRight: 0
|
|
10785
|
+
},
|
|
10786
|
+
"&:not($activeIcon)": {
|
|
10787
|
+
pointerEvents: "none"
|
|
10788
|
+
}
|
|
10800
10789
|
},
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
borderColor: colors.BORDER_MAIN
|
|
10790
|
+
controlWrapper: {
|
|
10791
|
+
borderColor: "transparent"
|
|
10804
10792
|
}
|
|
10805
10793
|
},
|
|
10806
10794
|
inputContent: {
|
|
@@ -10836,30 +10824,6 @@
|
|
|
10836
10824
|
}
|
|
10837
10825
|
return target;
|
|
10838
10826
|
}
|
|
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
10827
|
function _object_without_properties$f(source, excluded) {
|
|
10864
10828
|
if (source == null)
|
|
10865
10829
|
return {};
|
|
@@ -10893,42 +10857,30 @@
|
|
|
10893
10857
|
return target;
|
|
10894
10858
|
}
|
|
10895
10859
|
var SearchInput = function(_param) {
|
|
10896
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable,
|
|
10860
|
+
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;
|
|
10861
|
+
_param.data;
|
|
10862
|
+
var props = _object_without_properties$f(_param, [
|
|
10897
10863
|
"isClearable",
|
|
10898
|
-
"tweakStyles",
|
|
10899
10864
|
"placeholder",
|
|
10900
10865
|
"value",
|
|
10901
10866
|
"testId",
|
|
10867
|
+
"tweakStyles",
|
|
10902
10868
|
"data"
|
|
10903
10869
|
]);
|
|
10904
|
-
var classes = useStyles$F({
|
|
10905
|
-
theme: tweakStyles
|
|
10906
|
-
});
|
|
10907
10870
|
var tweakInputStyles = useTweakStyles({
|
|
10908
10871
|
innerStyles: inputStyles$4,
|
|
10909
10872
|
tweakStyles,
|
|
10910
10873
|
className: "tweakInput",
|
|
10911
10874
|
currentComponentName: "SearchInput"
|
|
10912
10875
|
});
|
|
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
|
-
}));
|
|
10876
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10877
|
+
value,
|
|
10878
|
+
placeholder,
|
|
10879
|
+
icon: "search",
|
|
10880
|
+
isClearable,
|
|
10881
|
+
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
10882
|
+
tweakStyles: tweakInputStyles
|
|
10883
|
+
}, props));
|
|
10932
10884
|
};
|
|
10933
10885
|
var ScrollIntoViewIfNeededDefaultElementType = "div";
|
|
10934
10886
|
var ScrollIntoViewIfNeededDefaultProps = {
|