@true-engineering/true-react-common-ui-kit 4.0.0-alpha0 → 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/ControlWrapper/ControlWrapper.styles.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +3 -3
- package/dist/components/Input/Input.stories.d.ts +2 -2
- package/dist/components/Input/Input.styles.d.ts +3 -3
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -11
- package/dist/components/SearchInput/SearchInput.styles.d.ts +3 -5
- package/dist/components/Select/Select.styles.d.ts +8 -8
- package/dist/components/TextArea/TextArea.d.ts +2 -2
- package/dist/components/TextArea/TextArea.styles.d.ts +3 -3
- package/dist/components/WithMessages/WithMessages.d.ts +10 -0
- package/dist/components/{ControlGroup/ControlGroup.stories.d.ts → WithMessages/WithMessages.stories.d.ts} +2 -2
- package/dist/components/WithMessages/WithMessages.styles.d.ts +3 -0
- package/dist/components/WithMessages/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/theme/types.d.ts +2 -2
- package/dist/true-react-common-ui-kit.js +187 -242
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +187 -242
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ControlWrapper/ControlWrapper.styles.ts +1 -1
- package/src/components/ControlWrapper/ControlWrapper.tsx +1 -1
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +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/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +8 -2
- package/src/components/IncrementInput/IncrementInput.styles.ts +1 -1
- package/src/components/Input/Input.styles.ts +5 -2
- package/src/components/Input/Input.tsx +7 -7
- package/src/components/Input/InputBase.tsx +1 -0
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.styles.ts +2 -2
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +1 -1
- package/src/components/SearchInput/SearchInput.styles.ts +17 -30
- package/src/components/SearchInput/SearchInput.tsx +12 -20
- package/src/components/Select/CustomSelect.stories.tsx +2 -2
- package/src/components/Select/Select.styles.ts +8 -2
- package/src/components/Select/Select.tsx +7 -29
- package/src/components/TextArea/TextArea.styles.ts +7 -3
- package/src/components/TextArea/TextArea.tsx +13 -9
- package/src/components/{ControlGroup/ControlGroup.stories.tsx → WithMessages/WithMessages.stories.tsx} +10 -10
- package/src/components/{ControlGroup/ControlGroup.styles.ts → WithMessages/WithMessages.styles.ts} +4 -3
- package/src/components/{ControlGroup/ControlGroup.tsx → WithMessages/WithMessages.tsx} +13 -9
- package/src/components/WithMessages/index.ts +2 -0
- package/src/components/index.ts +1 -1
- package/src/theme/types.ts +2 -2
- package/dist/components/ControlGroup/ControlGroup.d.ts +0 -10
- package/dist/components/ControlGroup/ControlGroup.styles.d.ts +0 -3
- package/dist/components/ControlGroup/index.d.ts +0 -2
- package/src/components/ControlGroup/index.ts +0 -2
|
@@ -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,18 +9607,19 @@
|
|
|
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$
|
|
9618
|
-
|
|
9617
|
+
var useStyles$I = createThemedStyles("WithMessages", {
|
|
9618
|
+
withMessages: {
|
|
9619
9619
|
display: "flex",
|
|
9620
9620
|
flexDirection: "column",
|
|
9621
|
-
width: "100%"
|
|
9621
|
+
width: "100%",
|
|
9622
|
+
position: "relative"
|
|
9622
9623
|
},
|
|
9623
9624
|
error: {
|
|
9624
9625
|
color: "red"
|
|
@@ -9675,7 +9676,7 @@
|
|
|
9675
9676
|
}
|
|
9676
9677
|
return target;
|
|
9677
9678
|
}
|
|
9678
|
-
function ownKeys$
|
|
9679
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9679
9680
|
var keys2 = Object.keys(object);
|
|
9680
9681
|
if (Object.getOwnPropertySymbols) {
|
|
9681
9682
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9688,44 +9689,44 @@
|
|
|
9688
9689
|
}
|
|
9689
9690
|
return keys2;
|
|
9690
9691
|
}
|
|
9691
|
-
function _object_spread_props$
|
|
9692
|
+
function _object_spread_props$K(target, source) {
|
|
9692
9693
|
source = source != null ? source : {};
|
|
9693
9694
|
if (Object.getOwnPropertyDescriptors) {
|
|
9694
9695
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9695
9696
|
} else {
|
|
9696
|
-
ownKeys$
|
|
9697
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9697
9698
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9698
9699
|
});
|
|
9699
9700
|
}
|
|
9700
9701
|
return target;
|
|
9701
9702
|
}
|
|
9702
|
-
var
|
|
9703
|
-
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage,
|
|
9704
|
-
var classes = useStyles$
|
|
9703
|
+
var WithMessages = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
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$I({
|
|
9705
9706
|
theme: tweakStyles
|
|
9706
9707
|
});
|
|
9707
9708
|
var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
|
|
9708
9709
|
var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9709
9710
|
var _obj2;
|
|
9710
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9711
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
9711
9712
|
ref,
|
|
9712
|
-
className: classes.
|
|
9713
|
+
className: classes.withMessages,
|
|
9713
9714
|
"data-invalid": shouldShowError ? true : void 0
|
|
9714
9715
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
9715
9716
|
children: [
|
|
9716
9717
|
trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
|
|
9717
|
-
className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal,
|
|
9718
|
+
className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$U(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
|
|
9718
9719
|
children
|
|
9719
9720
|
}),
|
|
9720
9721
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9721
9722
|
className: classes.message,
|
|
9722
9723
|
children: [
|
|
9723
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9724
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9724
9725
|
className: classes.error
|
|
9725
9726
|
}, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
|
|
9726
9727
|
children: errorMessage
|
|
9727
9728
|
})),
|
|
9728
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9729
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9729
9730
|
className: classes.info
|
|
9730
9731
|
}, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
|
|
9731
9732
|
children: infoMessage
|
|
@@ -9735,9 +9736,9 @@
|
|
|
9735
9736
|
]
|
|
9736
9737
|
}));
|
|
9737
9738
|
});
|
|
9738
|
-
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$
|
|
9739
|
-
var useStyles$
|
|
9740
|
-
|
|
9739
|
+
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$1 = dimensions.Z_INDEX;
|
|
9740
|
+
var useStyles$H = createThemedStyles("ControlWrapper", {
|
|
9741
|
+
controlWrapper: {
|
|
9741
9742
|
"--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
|
|
9742
9743
|
// borders
|
|
9743
9744
|
"--control-padding": "".concat(CONTROL$1.PADDING, "px"),
|
|
@@ -9758,12 +9759,12 @@
|
|
|
9758
9759
|
zIndex: 0
|
|
9759
9760
|
},
|
|
9760
9761
|
invalid: {
|
|
9761
|
-
zIndex: Z_INDEX$
|
|
9762
|
+
zIndex: Z_INDEX$1.CONTROL_INVALID
|
|
9762
9763
|
},
|
|
9763
9764
|
disabled: {},
|
|
9764
9765
|
focused: {
|
|
9765
9766
|
position: "relative",
|
|
9766
|
-
zIndex: Z_INDEX$
|
|
9767
|
+
zIndex: Z_INDEX$1.CONTROL_FOCUS
|
|
9767
9768
|
},
|
|
9768
9769
|
withValue: {},
|
|
9769
9770
|
loading: {},
|
|
@@ -9915,7 +9916,7 @@
|
|
|
9915
9916
|
}
|
|
9916
9917
|
return target;
|
|
9917
9918
|
}
|
|
9918
|
-
function ownKeys$
|
|
9919
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
9919
9920
|
var keys2 = Object.keys(object);
|
|
9920
9921
|
if (Object.getOwnPropertySymbols) {
|
|
9921
9922
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9928,12 +9929,12 @@
|
|
|
9928
9929
|
}
|
|
9929
9930
|
return keys2;
|
|
9930
9931
|
}
|
|
9931
|
-
function _object_spread_props$
|
|
9932
|
+
function _object_spread_props$J(target, source) {
|
|
9932
9933
|
source = source != null ? source : {};
|
|
9933
9934
|
if (Object.getOwnPropertyDescriptors) {
|
|
9934
9935
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9935
9936
|
} else {
|
|
9936
|
-
ownKeys$
|
|
9937
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
9937
9938
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9938
9939
|
});
|
|
9939
9940
|
}
|
|
@@ -9941,7 +9942,7 @@
|
|
|
9941
9942
|
}
|
|
9942
9943
|
var ControlWrapper = function(param) {
|
|
9943
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;
|
|
9944
|
-
var classes = useStyles$
|
|
9945
|
+
var classes = useStyles$H({
|
|
9945
9946
|
theme: tweakStyles
|
|
9946
9947
|
});
|
|
9947
9948
|
var hasEndIcon = !isLoading && trueReactPlatformHelpers.isReactNodeNotEmpty(icon);
|
|
@@ -9953,8 +9954,8 @@
|
|
|
9953
9954
|
currentComponentName: "ControlWrapper"
|
|
9954
9955
|
});
|
|
9955
9956
|
var _obj2, _obj1, _obj22;
|
|
9956
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9957
|
-
className: clsx(classes.
|
|
9957
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$R({
|
|
9958
|
+
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && [
|
|
9958
9959
|
classes["placement-".concat(groupPlacement)]
|
|
9959
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))
|
|
9960
9961
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
@@ -9970,7 +9971,7 @@
|
|
|
9970
9971
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9971
9972
|
className: classes.controls,
|
|
9972
9973
|
children: [
|
|
9973
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9974
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9974
9975
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9975
9976
|
}, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
|
|
9976
9977
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9980,7 +9981,7 @@
|
|
|
9980
9981
|
})
|
|
9981
9982
|
})
|
|
9982
9983
|
})),
|
|
9983
|
-
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9984
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9984
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))
|
|
9985
9986
|
}, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
|
|
9986
9987
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9988,7 +9989,7 @@
|
|
|
9988
9989
|
children: renderIcon(icon)
|
|
9989
9990
|
})
|
|
9990
9991
|
})),
|
|
9991
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9992
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9992
9993
|
className: clsx(classes.icon, classes.loader)
|
|
9993
9994
|
}, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
|
|
9994
9995
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10006,7 +10007,7 @@
|
|
|
10006
10007
|
}));
|
|
10007
10008
|
};
|
|
10008
10009
|
var PADDING_WITH_UNITS = 8;
|
|
10009
|
-
var useStyles$
|
|
10010
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
10010
10011
|
inputContent: {
|
|
10011
10012
|
height: "var(--control-height)",
|
|
10012
10013
|
padding: [
|
|
@@ -10062,12 +10063,14 @@
|
|
|
10062
10063
|
}
|
|
10063
10064
|
},
|
|
10064
10065
|
withLabel: {},
|
|
10066
|
+
withValue: {},
|
|
10065
10067
|
fakeValue: {
|
|
10066
10068
|
extend: "inputContent",
|
|
10067
10069
|
visibility: "hidden",
|
|
10068
10070
|
maxWidth: "100%",
|
|
10069
10071
|
overflow: "hidden",
|
|
10070
|
-
minWidth: 8
|
|
10072
|
+
minWidth: 8,
|
|
10073
|
+
whiteSpace: "nowrap"
|
|
10071
10074
|
},
|
|
10072
10075
|
units: {
|
|
10073
10076
|
alignSelf: "center",
|
|
@@ -10176,7 +10179,7 @@
|
|
|
10176
10179
|
}
|
|
10177
10180
|
return target;
|
|
10178
10181
|
}
|
|
10179
|
-
function ownKeys$
|
|
10182
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10180
10183
|
var keys2 = Object.keys(object);
|
|
10181
10184
|
if (Object.getOwnPropertySymbols) {
|
|
10182
10185
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10189,12 +10192,12 @@
|
|
|
10189
10192
|
}
|
|
10190
10193
|
return keys2;
|
|
10191
10194
|
}
|
|
10192
|
-
function _object_spread_props$
|
|
10195
|
+
function _object_spread_props$I(target, source) {
|
|
10193
10196
|
source = source != null ? source : {};
|
|
10194
10197
|
if (Object.getOwnPropertyDescriptors) {
|
|
10195
10198
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10196
10199
|
} else {
|
|
10197
|
-
ownKeys$
|
|
10200
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10198
10201
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10199
10202
|
});
|
|
10200
10203
|
}
|
|
@@ -10382,7 +10385,7 @@
|
|
|
10382
10385
|
"shouldAlwaysShowPlaceholder",
|
|
10383
10386
|
"beforeMaskedStateChange"
|
|
10384
10387
|
]);
|
|
10385
|
-
var classes = useStyles$
|
|
10388
|
+
var classes = useStyles$G({
|
|
10386
10389
|
theme: tweakStyles
|
|
10387
10390
|
});
|
|
10388
10391
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -10447,7 +10450,7 @@
|
|
|
10447
10450
|
]);
|
|
10448
10451
|
var _obj2;
|
|
10449
10452
|
var props = _object_spread$Q({
|
|
10450
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _define_property$S(_obj2, classes.withLabel, trueReactPlatformHelpers.isReactNodeNotEmpty(label)), _define_property$S(_obj2, classes.autoSized, isAutoSized), _define_property$S(_obj2, classes.focusedInput, isFocused), _define_property$S(_obj2, classes.disabledInput, isDisabled), _define_property$S(_obj2, classes.invalidInput, isInvalid), _obj2)),
|
|
10453
|
+
className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _define_property$S(_obj2, classes.withValue, hasValue), _define_property$S(_obj2, classes.withLabel, trueReactPlatformHelpers.isReactNodeNotEmpty(label)), _define_property$S(_obj2, classes.autoSized, isAutoSized), _define_property$S(_obj2, classes.focusedInput, isFocused), _define_property$S(_obj2, classes.disabledInput, isDisabled), _define_property$S(_obj2, classes.invalidInput, isInvalid), _obj2)),
|
|
10451
10454
|
style: hasUnits && hasValue ? {
|
|
10452
10455
|
"--units-width": "".concat(unitsWidth, "px")
|
|
10453
10456
|
} : void 0,
|
|
@@ -10495,7 +10498,7 @@
|
|
|
10495
10498
|
})
|
|
10496
10499
|
]
|
|
10497
10500
|
});
|
|
10498
|
-
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$
|
|
10501
|
+
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$I(_object_spread$Q({
|
|
10499
10502
|
label,
|
|
10500
10503
|
isDisabled,
|
|
10501
10504
|
isFocused: hasFocus,
|
|
@@ -10539,7 +10542,7 @@
|
|
|
10539
10542
|
}
|
|
10540
10543
|
return target;
|
|
10541
10544
|
}
|
|
10542
|
-
function ownKeys$
|
|
10545
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
10543
10546
|
var keys2 = Object.keys(object);
|
|
10544
10547
|
if (Object.getOwnPropertySymbols) {
|
|
10545
10548
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10552,12 +10555,12 @@
|
|
|
10552
10555
|
}
|
|
10553
10556
|
return keys2;
|
|
10554
10557
|
}
|
|
10555
|
-
function _object_spread_props$
|
|
10558
|
+
function _object_spread_props$H(target, source) {
|
|
10556
10559
|
source = source != null ? source : {};
|
|
10557
10560
|
if (Object.getOwnPropertyDescriptors) {
|
|
10558
10561
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10559
10562
|
} else {
|
|
10560
|
-
ownKeys$
|
|
10563
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
10561
10564
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10562
10565
|
});
|
|
10563
10566
|
}
|
|
@@ -10603,16 +10606,16 @@
|
|
|
10603
10606
|
"testId",
|
|
10604
10607
|
"tweakStyles"
|
|
10605
10608
|
]);
|
|
10606
|
-
var
|
|
10609
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
10607
10610
|
tweakStyles,
|
|
10608
|
-
className: "
|
|
10611
|
+
className: "tweakWithMessages"
|
|
10609
10612
|
});
|
|
10610
|
-
return /* @__PURE__ */ jsx(
|
|
10613
|
+
return /* @__PURE__ */ jsx(WithMessages, {
|
|
10611
10614
|
errorMessage,
|
|
10612
10615
|
infoMessage,
|
|
10613
10616
|
testId,
|
|
10614
|
-
tweakStyles:
|
|
10615
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$
|
|
10617
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
10618
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$H(_object_spread$P({}, inputProps), {
|
|
10616
10619
|
ref,
|
|
10617
10620
|
testId,
|
|
10618
10621
|
tweakStyles,
|
|
@@ -10622,7 +10625,7 @@
|
|
|
10622
10625
|
});
|
|
10623
10626
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10624
10627
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10625
|
-
var useStyles$
|
|
10628
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10626
10629
|
root: {
|
|
10627
10630
|
width: "100%",
|
|
10628
10631
|
height: "100%",
|
|
@@ -10658,7 +10661,7 @@
|
|
|
10658
10661
|
}
|
|
10659
10662
|
return target;
|
|
10660
10663
|
}
|
|
10661
|
-
function ownKeys$
|
|
10664
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
10662
10665
|
var keys2 = Object.keys(object);
|
|
10663
10666
|
if (Object.getOwnPropertySymbols) {
|
|
10664
10667
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10671,12 +10674,12 @@
|
|
|
10671
10674
|
}
|
|
10672
10675
|
return keys2;
|
|
10673
10676
|
}
|
|
10674
|
-
function _object_spread_props$
|
|
10677
|
+
function _object_spread_props$G(target, source) {
|
|
10675
10678
|
source = source != null ? source : {};
|
|
10676
10679
|
if (Object.getOwnPropertyDescriptors) {
|
|
10677
10680
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10678
10681
|
} else {
|
|
10679
|
-
ownKeys$
|
|
10682
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10680
10683
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10681
10684
|
});
|
|
10682
10685
|
}
|
|
@@ -10728,7 +10731,7 @@
|
|
|
10728
10731
|
"onClick",
|
|
10729
10732
|
"onChange"
|
|
10730
10733
|
]);
|
|
10731
|
-
var classes = useStyles$
|
|
10734
|
+
var classes = useStyles$F({
|
|
10732
10735
|
theme: tweakStyles
|
|
10733
10736
|
});
|
|
10734
10737
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10755,11 +10758,11 @@
|
|
|
10755
10758
|
}
|
|
10756
10759
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10757
10760
|
};
|
|
10758
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10761
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$O({
|
|
10759
10762
|
className: clsx(classes.root, className),
|
|
10760
10763
|
onClick
|
|
10761
10764
|
}, addDataAttributes(data)), {
|
|
10762
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10765
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$G(_object_spread$O({}, inputProps), {
|
|
10763
10766
|
ref,
|
|
10764
10767
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10765
10768
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10771,33 +10774,21 @@
|
|
|
10771
10774
|
}));
|
|
10772
10775
|
});
|
|
10773
10776
|
const reactDatepicker = "";
|
|
10774
|
-
var Z_INDEX$1 = dimensions.Z_INDEX;
|
|
10775
|
-
var useStyles$F = createThemedStyles("SearchInput", {
|
|
10776
|
-
root: {
|
|
10777
|
-
position: "relative"
|
|
10778
|
-
},
|
|
10779
|
-
icon: {
|
|
10780
|
-
display: "flex",
|
|
10781
|
-
alignItems: "center",
|
|
10782
|
-
position: "absolute",
|
|
10783
|
-
left: 12,
|
|
10784
|
-
height: "100%",
|
|
10785
|
-
width: 20,
|
|
10786
|
-
color: colors.GREY_ACTIVE,
|
|
10787
|
-
zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
|
|
10788
|
-
}
|
|
10789
|
-
});
|
|
10790
10777
|
var inputStyles$4 = {
|
|
10791
10778
|
tweakControlWrapper: {
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
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
|
+
}
|
|
10797
10789
|
},
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
borderColor: colors.BORDER_MAIN
|
|
10790
|
+
controlWrapper: {
|
|
10791
|
+
borderColor: "transparent"
|
|
10801
10792
|
}
|
|
10802
10793
|
},
|
|
10803
10794
|
inputContent: {
|
|
@@ -10833,30 +10824,6 @@
|
|
|
10833
10824
|
}
|
|
10834
10825
|
return target;
|
|
10835
10826
|
}
|
|
10836
|
-
function ownKeys$G(object, enumerableOnly) {
|
|
10837
|
-
var keys2 = Object.keys(object);
|
|
10838
|
-
if (Object.getOwnPropertySymbols) {
|
|
10839
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
10840
|
-
if (enumerableOnly) {
|
|
10841
|
-
symbols = symbols.filter(function(sym) {
|
|
10842
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10843
|
-
});
|
|
10844
|
-
}
|
|
10845
|
-
keys2.push.apply(keys2, symbols);
|
|
10846
|
-
}
|
|
10847
|
-
return keys2;
|
|
10848
|
-
}
|
|
10849
|
-
function _object_spread_props$G(target, source) {
|
|
10850
|
-
source = source != null ? source : {};
|
|
10851
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
10852
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10853
|
-
} else {
|
|
10854
|
-
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10855
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10856
|
-
});
|
|
10857
|
-
}
|
|
10858
|
-
return target;
|
|
10859
|
-
}
|
|
10860
10827
|
function _object_without_properties$f(source, excluded) {
|
|
10861
10828
|
if (source == null)
|
|
10862
10829
|
return {};
|
|
@@ -10890,42 +10857,30 @@
|
|
|
10890
10857
|
return target;
|
|
10891
10858
|
}
|
|
10892
10859
|
var SearchInput = function(_param) {
|
|
10893
|
-
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, [
|
|
10894
10863
|
"isClearable",
|
|
10895
|
-
"tweakStyles",
|
|
10896
10864
|
"placeholder",
|
|
10897
10865
|
"value",
|
|
10898
10866
|
"testId",
|
|
10867
|
+
"tweakStyles",
|
|
10899
10868
|
"data"
|
|
10900
10869
|
]);
|
|
10901
|
-
var classes = useStyles$F({
|
|
10902
|
-
theme: tweakStyles
|
|
10903
|
-
});
|
|
10904
10870
|
var tweakInputStyles = useTweakStyles({
|
|
10905
10871
|
innerStyles: inputStyles$4,
|
|
10906
10872
|
tweakStyles,
|
|
10907
10873
|
className: "tweakInput",
|
|
10908
10874
|
currentComponentName: "SearchInput"
|
|
10909
10875
|
});
|
|
10910
|
-
return /* @__PURE__ */
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
})
|
|
10919
|
-
}),
|
|
10920
|
-
/* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10921
|
-
value,
|
|
10922
|
-
placeholder,
|
|
10923
|
-
isClearable,
|
|
10924
|
-
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
10925
|
-
tweakStyles: tweakInputStyles
|
|
10926
|
-
}, props))
|
|
10927
|
-
]
|
|
10928
|
-
}));
|
|
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));
|
|
10929
10884
|
};
|
|
10930
10885
|
var ScrollIntoViewIfNeededDefaultElementType = "div";
|
|
10931
10886
|
var ScrollIntoViewIfNeededDefaultProps = {
|
|
@@ -11561,6 +11516,11 @@
|
|
|
11561
11516
|
inputContent: {
|
|
11562
11517
|
paddingRight: 32
|
|
11563
11518
|
},
|
|
11519
|
+
input: {
|
|
11520
|
+
"&[readonly]": {
|
|
11521
|
+
cursor: "pointer"
|
|
11522
|
+
}
|
|
11523
|
+
},
|
|
11564
11524
|
tweakControlWrapper: {
|
|
11565
11525
|
controls: {
|
|
11566
11526
|
paddingRight: 40
|
|
@@ -11923,9 +11883,9 @@
|
|
|
11923
11883
|
]);
|
|
11924
11884
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
11925
11885
|
var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
|
|
11926
|
-
var
|
|
11886
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
11927
11887
|
tweakStyles,
|
|
11928
|
-
className: "
|
|
11888
|
+
className: "tweakWithMessages",
|
|
11929
11889
|
currentComponentName: "Select"
|
|
11930
11890
|
});
|
|
11931
11891
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -12017,22 +11977,10 @@
|
|
|
12017
11977
|
convertValueToId,
|
|
12018
11978
|
convertValueToString
|
|
12019
11979
|
]);
|
|
12020
|
-
var getDropdownOffset = function() {
|
|
12021
|
-
var _input_current_parentElement2;
|
|
12022
|
-
if (trueReactPlatformHelpers.isEmpty(input.current)) {
|
|
12023
|
-
return 0;
|
|
12024
|
-
}
|
|
12025
|
-
var _input_current_parentElement_offsetHeight;
|
|
12026
|
-
return (_input_current_parentElement_offsetHeight = (_input_current_parentElement2 = input.current.parentElement) === null || _input_current_parentElement2 === void 0 ? void 0 : _input_current_parentElement2.offsetHeight) !== null && _input_current_parentElement_offsetHeight !== void 0 ? _input_current_parentElement_offsetHeight : 0;
|
|
12027
|
-
};
|
|
12028
11980
|
var closeList = React.useCallback(function() {
|
|
12029
11981
|
setIsListOpen(false);
|
|
12030
11982
|
setSearchValue("");
|
|
12031
11983
|
setShouldShowDefaultOption(true);
|
|
12032
|
-
if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
|
|
12033
|
-
var _root_current;
|
|
12034
|
-
(_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset");
|
|
12035
|
-
}
|
|
12036
11984
|
}, [
|
|
12037
11985
|
dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
|
|
12038
11986
|
]);
|
|
@@ -12044,15 +11992,8 @@
|
|
|
12044
11992
|
onBlur
|
|
12045
11993
|
]);
|
|
12046
11994
|
var handleListOpen = function() {
|
|
12047
|
-
if (isReadonly) {
|
|
12048
|
-
return;
|
|
12049
|
-
}
|
|
12050
|
-
if (!isListOpen) {
|
|
11995
|
+
if (!isReadonly && !isListOpen) {
|
|
12051
11996
|
setIsListOpen(true);
|
|
12052
|
-
if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
|
|
12053
|
-
var _root_current;
|
|
12054
|
-
(_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px"));
|
|
12055
|
-
}
|
|
12056
11997
|
}
|
|
12057
11998
|
};
|
|
12058
11999
|
var handleFocus = function(event) {
|
|
@@ -12348,10 +12289,10 @@
|
|
|
12348
12289
|
})
|
|
12349
12290
|
]
|
|
12350
12291
|
}) : void 0;
|
|
12351
|
-
return /* @__PURE__ */ jsx(
|
|
12292
|
+
return /* @__PURE__ */ jsx(WithMessages, {
|
|
12352
12293
|
errorMessage,
|
|
12353
12294
|
infoMessage,
|
|
12354
|
-
tweakStyles:
|
|
12295
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
12355
12296
|
children: /* @__PURE__ */ jsxs("div", {
|
|
12356
12297
|
className: classes.root,
|
|
12357
12298
|
onKeyDown: handleKeyDown,
|
|
@@ -12428,7 +12369,7 @@
|
|
|
12428
12369
|
},
|
|
12429
12370
|
tweakInput: {
|
|
12430
12371
|
tweakControlWrapper: {
|
|
12431
|
-
|
|
12372
|
+
controlWrapper: {
|
|
12432
12373
|
"--control-height": "35px",
|
|
12433
12374
|
border: "none"
|
|
12434
12375
|
}
|
|
@@ -15422,7 +15363,7 @@
|
|
|
15422
15363
|
var searchInputStyles$2 = {
|
|
15423
15364
|
tweakInput: {
|
|
15424
15365
|
tweakControlWrapper: {
|
|
15425
|
-
|
|
15366
|
+
controlWrapper: {
|
|
15426
15367
|
"--control-height": "40px",
|
|
15427
15368
|
backgroundColor: "transparent",
|
|
15428
15369
|
border: "none"
|
|
@@ -16382,7 +16323,7 @@
|
|
|
16382
16323
|
var searchInputStyles$1 = {
|
|
16383
16324
|
tweakInput: {
|
|
16384
16325
|
tweakControlWrapper: {
|
|
16385
|
-
|
|
16326
|
+
controlWrapper: {
|
|
16386
16327
|
"--control-height": "40px",
|
|
16387
16328
|
backgroundColor: "transparent",
|
|
16388
16329
|
border: "none"
|
|
@@ -18969,7 +18910,7 @@
|
|
|
18969
18910
|
var searchInputStyles = {
|
|
18970
18911
|
tweakInput: {
|
|
18971
18912
|
tweakControlWrapper: {
|
|
18972
|
-
|
|
18913
|
+
controlWrapper: {
|
|
18973
18914
|
"--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
|
|
18974
18915
|
backgroundColor: "transparent",
|
|
18975
18916
|
border: "none",
|
|
@@ -28451,7 +28392,7 @@
|
|
|
28451
28392
|
});
|
|
28452
28393
|
var inputStyles$1 = {
|
|
28453
28394
|
tweakControlWrapper: {
|
|
28454
|
-
|
|
28395
|
+
controlWrapper: {
|
|
28455
28396
|
border: "none",
|
|
28456
28397
|
height: "calc(var(--control-height) - 2px)"
|
|
28457
28398
|
}
|
|
@@ -28726,7 +28667,7 @@
|
|
|
28726
28667
|
});
|
|
28727
28668
|
var inputStyles = {
|
|
28728
28669
|
tweakControlWrapper: {
|
|
28729
|
-
|
|
28670
|
+
controlWrapper: {
|
|
28730
28671
|
paddingLeft: COUNTRY_SELECT_WIDTH
|
|
28731
28672
|
},
|
|
28732
28673
|
label: {
|
|
@@ -30377,11 +30318,14 @@
|
|
|
30377
30318
|
margin: 0
|
|
30378
30319
|
}
|
|
30379
30320
|
}),
|
|
30321
|
+
wrapper: {
|
|
30322
|
+
width: "100%"
|
|
30323
|
+
},
|
|
30380
30324
|
autoSized: {
|
|
30381
30325
|
display: "grid",
|
|
30382
30326
|
gridTemplateRows: "minmax(0, 100%)",
|
|
30383
30327
|
"& > $textarea, &::after": {
|
|
30384
|
-
gridArea: "1 /
|
|
30328
|
+
gridArea: "1 / 1"
|
|
30385
30329
|
},
|
|
30386
30330
|
"&::after": {
|
|
30387
30331
|
extend: "textarea",
|
|
@@ -30582,9 +30526,9 @@
|
|
|
30582
30526
|
var classes = useStyles$4({
|
|
30583
30527
|
theme: tweakStyles
|
|
30584
30528
|
});
|
|
30585
|
-
var
|
|
30529
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
30586
30530
|
tweakStyles,
|
|
30587
|
-
className: "
|
|
30531
|
+
className: "tweakWithMessages",
|
|
30588
30532
|
currentComponentName: "TextArea"
|
|
30589
30533
|
});
|
|
30590
30534
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -30609,10 +30553,10 @@
|
|
|
30609
30553
|
setFocused(false);
|
|
30610
30554
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
30611
30555
|
};
|
|
30612
|
-
return /* @__PURE__ */ jsxs(
|
|
30556
|
+
return /* @__PURE__ */ jsxs(WithMessages, {
|
|
30613
30557
|
errorMessage,
|
|
30614
30558
|
infoMessage,
|
|
30615
|
-
tweakStyles:
|
|
30559
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
30616
30560
|
children: [
|
|
30617
30561
|
/* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
|
|
30618
30562
|
label,
|
|
@@ -30623,8 +30567,9 @@
|
|
|
30623
30567
|
isFullWidth: true,
|
|
30624
30568
|
testId
|
|
30625
30569
|
}, controlProps), {
|
|
30626
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
|
|
30627
|
-
className: classes.autoSized,
|
|
30570
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
|
|
30571
|
+
className: clsx(classes.wrapper, _define_property$5({}, classes.autoSized, isAutoSized))
|
|
30572
|
+
}, isAutoSized && {
|
|
30628
30573
|
"data-value": value
|
|
30629
30574
|
}), {
|
|
30630
30575
|
children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
|
|
@@ -31487,7 +31432,6 @@
|
|
|
31487
31432
|
exports2.Checkbox = Checkbox;
|
|
31488
31433
|
exports2.CloseButton = CloseButton;
|
|
31489
31434
|
exports2.Colors = Colors;
|
|
31490
|
-
exports2.ControlGroup = ControlGroup;
|
|
31491
31435
|
exports2.ControlWrapper = ControlWrapper;
|
|
31492
31436
|
exports2.CssBaseline = CssBaseline;
|
|
31493
31437
|
exports2.DEFAULT_PHONE_MASK = DEFAULT_PHONE_MASK;
|
|
@@ -31544,6 +31488,7 @@
|
|
|
31544
31488
|
exports2.ThemedPreloader = ThemedPreloader;
|
|
31545
31489
|
exports2.Toaster = Toaster;
|
|
31546
31490
|
exports2.Tooltip = Tooltip;
|
|
31491
|
+
exports2.WithMessages = WithMessages;
|
|
31547
31492
|
exports2.WithPopup = WithPopup;
|
|
31548
31493
|
exports2.WithTooltip = WithTooltip;
|
|
31549
31494
|
exports2.addDataAttributes = addDataAttributes;
|