@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
|
@@ -1910,7 +1910,7 @@ function _object_spread$16(target) {
|
|
|
1910
1910
|
}
|
|
1911
1911
|
return target;
|
|
1912
1912
|
}
|
|
1913
|
-
function ownKeys$
|
|
1913
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
1914
1914
|
var keys2 = Object.keys(object);
|
|
1915
1915
|
if (Object.getOwnPropertySymbols) {
|
|
1916
1916
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1923,12 +1923,12 @@ function ownKeys$X(object, enumerableOnly) {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
return keys2;
|
|
1925
1925
|
}
|
|
1926
|
-
function _object_spread_props$
|
|
1926
|
+
function _object_spread_props$W(target, source) {
|
|
1927
1927
|
source = source != null ? source : {};
|
|
1928
1928
|
if (Object.getOwnPropertyDescriptors) {
|
|
1929
1929
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1930
1930
|
} else {
|
|
1931
|
-
ownKeys$
|
|
1931
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
1932
1932
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
@@ -1983,7 +1983,7 @@ function createThemedStyles() {
|
|
|
1983
1983
|
return mergeStyles(styles, isNotEmpty(componentName) ? theme === null || theme === void 0 ? void 0 : (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : _theme_components[componentName] : void 0, tweakStyles);
|
|
1984
1984
|
});
|
|
1985
1985
|
return function(data) {
|
|
1986
|
-
return useStyles2(isNotEmpty(data) ? _object_spread_props$
|
|
1986
|
+
return useStyles2(isNotEmpty(data) ? _object_spread_props$W(_object_spread$16({}, data), {
|
|
1987
1987
|
theme: cleanStyles(data.theme)
|
|
1988
1988
|
}) : data);
|
|
1989
1989
|
};
|
|
@@ -7683,7 +7683,7 @@ function _object_spread$13(target) {
|
|
|
7683
7683
|
}
|
|
7684
7684
|
return target;
|
|
7685
7685
|
}
|
|
7686
|
-
function ownKeys$
|
|
7686
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7687
7687
|
var keys2 = Object.keys(object);
|
|
7688
7688
|
if (Object.getOwnPropertySymbols) {
|
|
7689
7689
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7696,12 +7696,12 @@ function ownKeys$W(object, enumerableOnly) {
|
|
|
7696
7696
|
}
|
|
7697
7697
|
return keys2;
|
|
7698
7698
|
}
|
|
7699
|
-
function _object_spread_props$
|
|
7699
|
+
function _object_spread_props$V(target, source) {
|
|
7700
7700
|
source = source != null ? source : {};
|
|
7701
7701
|
if (Object.getOwnPropertyDescriptors) {
|
|
7702
7702
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7703
7703
|
} else {
|
|
7704
|
-
ownKeys$
|
|
7704
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7705
7705
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7706
7706
|
});
|
|
7707
7707
|
}
|
|
@@ -7733,19 +7733,19 @@ var IconBoilerplate = function(param) {
|
|
|
7733
7733
|
}, path), index);
|
|
7734
7734
|
}),
|
|
7735
7735
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7736
|
-
return /* @__PURE__ */ createElement("rect", _object_spread_props$
|
|
7736
|
+
return /* @__PURE__ */ createElement("rect", _object_spread_props$V(_object_spread$13({}, rect), {
|
|
7737
7737
|
key: index
|
|
7738
7738
|
}));
|
|
7739
7739
|
}),
|
|
7740
7740
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7741
|
-
return /* @__PURE__ */ createElement("circle", _object_spread_props$
|
|
7741
|
+
return /* @__PURE__ */ createElement("circle", _object_spread_props$V(_object_spread$13({}, circle), {
|
|
7742
7742
|
key: index
|
|
7743
7743
|
}));
|
|
7744
7744
|
})
|
|
7745
7745
|
]
|
|
7746
7746
|
});
|
|
7747
7747
|
};
|
|
7748
|
-
var useStyles$
|
|
7748
|
+
var useStyles$W = createThemedStyles("Icon", {
|
|
7749
7749
|
root: {
|
|
7750
7750
|
display: "flex",
|
|
7751
7751
|
alignItems: "center"
|
|
@@ -7779,7 +7779,7 @@ function _object_spread$12(target) {
|
|
|
7779
7779
|
}
|
|
7780
7780
|
return target;
|
|
7781
7781
|
}
|
|
7782
|
-
function ownKeys$
|
|
7782
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7783
7783
|
var keys2 = Object.keys(object);
|
|
7784
7784
|
if (Object.getOwnPropertySymbols) {
|
|
7785
7785
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7792,12 +7792,12 @@ function ownKeys$V(object, enumerableOnly) {
|
|
|
7792
7792
|
}
|
|
7793
7793
|
return keys2;
|
|
7794
7794
|
}
|
|
7795
|
-
function _object_spread_props$
|
|
7795
|
+
function _object_spread_props$U(target, source) {
|
|
7796
7796
|
source = source != null ? source : {};
|
|
7797
7797
|
if (Object.getOwnPropertyDescriptors) {
|
|
7798
7798
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7799
7799
|
} else {
|
|
7800
|
-
ownKeys$
|
|
7800
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7801
7801
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7802
7802
|
});
|
|
7803
7803
|
}
|
|
@@ -7805,10 +7805,10 @@ function _object_spread_props$V(target, source) {
|
|
|
7805
7805
|
}
|
|
7806
7806
|
var Icon = function(param) {
|
|
7807
7807
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7808
|
-
var classes = useStyles$
|
|
7808
|
+
var classes = useStyles$W({
|
|
7809
7809
|
theme: tweakStyles
|
|
7810
7810
|
});
|
|
7811
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7811
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$12({
|
|
7812
7812
|
className: classes.root
|
|
7813
7813
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7814
7814
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7824,7 +7824,7 @@ var renderIcon = function(icon) {
|
|
|
7824
7824
|
}) : icon;
|
|
7825
7825
|
};
|
|
7826
7826
|
var DEFAULT_OFFSET = 6;
|
|
7827
|
-
var useStyles$
|
|
7827
|
+
var useStyles$V = createThemedStyles("WithPopup", {
|
|
7828
7828
|
trigger: {
|
|
7829
7829
|
width: "fit-content"
|
|
7830
7830
|
},
|
|
@@ -7936,7 +7936,7 @@ function _object_spread$11(target) {
|
|
|
7936
7936
|
}
|
|
7937
7937
|
return target;
|
|
7938
7938
|
}
|
|
7939
|
-
function ownKeys$
|
|
7939
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
7940
7940
|
var keys2 = Object.keys(object);
|
|
7941
7941
|
if (Object.getOwnPropertySymbols) {
|
|
7942
7942
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7949,12 +7949,12 @@ function ownKeys$U(object, enumerableOnly) {
|
|
|
7949
7949
|
}
|
|
7950
7950
|
return keys2;
|
|
7951
7951
|
}
|
|
7952
|
-
function _object_spread_props$
|
|
7952
|
+
function _object_spread_props$T(target, source) {
|
|
7953
7953
|
source = source != null ? source : {};
|
|
7954
7954
|
if (Object.getOwnPropertyDescriptors) {
|
|
7955
7955
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7956
7956
|
} else {
|
|
7957
|
-
ownKeys$
|
|
7957
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
7958
7958
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7959
7959
|
});
|
|
7960
7960
|
}
|
|
@@ -7981,7 +7981,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
7981
7981
|
}
|
|
7982
7982
|
var WithPopup = function(param) {
|
|
7983
7983
|
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? 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;
|
|
7984
|
-
var classes = useStyles$
|
|
7984
|
+
var classes = useStyles$V({
|
|
7985
7985
|
theme: tweakStyles
|
|
7986
7986
|
});
|
|
7987
7987
|
var _useState = _sliced_to_array$m(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
@@ -8054,14 +8054,14 @@ var WithPopup = function(param) {
|
|
|
8054
8054
|
var _obj2;
|
|
8055
8055
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8056
8056
|
children: [
|
|
8057
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8057
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$11({
|
|
8058
8058
|
className: clsx(classes.trigger, (_obj2 = {}, _define_property$13(_obj2, classes.clickable, eventType === "click"), _define_property$13(_obj2, classes.disabled, isDisabled), _define_property$13(_obj2, classes.active, isOpen), _obj2))
|
|
8059
8059
|
}, referenceProps, addDataTestId(testId), addDataAttributes$1(data)), {
|
|
8060
8060
|
children: triggerElement
|
|
8061
8061
|
})) : triggerElement,
|
|
8062
8062
|
isMounted && /* @__PURE__ */ jsx(FloatingPortal, {
|
|
8063
8063
|
root: !shouldRenderInBody ? refs.reference.current : void 0,
|
|
8064
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8064
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$11({
|
|
8065
8065
|
style: floatingStyles,
|
|
8066
8066
|
className: classes.popup,
|
|
8067
8067
|
ref: refs.setFloating
|
|
@@ -8080,7 +8080,7 @@ var WithPopup = function(param) {
|
|
|
8080
8080
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8081
8081
|
var ICON_SIZE$1 = 20;
|
|
8082
8082
|
var ICON_GAP = 12;
|
|
8083
|
-
var useStyles$
|
|
8083
|
+
var useStyles$U = createThemedStyles("ListItem", {
|
|
8084
8084
|
root: {
|
|
8085
8085
|
display: "flex",
|
|
8086
8086
|
alignItems: "center",
|
|
@@ -8147,7 +8147,7 @@ function _object_spread$10(target) {
|
|
|
8147
8147
|
}
|
|
8148
8148
|
return target;
|
|
8149
8149
|
}
|
|
8150
|
-
function ownKeys$
|
|
8150
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8151
8151
|
var keys2 = Object.keys(object);
|
|
8152
8152
|
if (Object.getOwnPropertySymbols) {
|
|
8153
8153
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8160,12 +8160,12 @@ function ownKeys$T(object, enumerableOnly) {
|
|
|
8160
8160
|
}
|
|
8161
8161
|
return keys2;
|
|
8162
8162
|
}
|
|
8163
|
-
function _object_spread_props$
|
|
8163
|
+
function _object_spread_props$S(target, source) {
|
|
8164
8164
|
source = source != null ? source : {};
|
|
8165
8165
|
if (Object.getOwnPropertyDescriptors) {
|
|
8166
8166
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8167
8167
|
} else {
|
|
8168
|
-
ownKeys$
|
|
8168
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8169
8169
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8170
8170
|
});
|
|
8171
8171
|
}
|
|
@@ -8173,7 +8173,7 @@ function _object_spread_props$T(target, source) {
|
|
|
8173
8173
|
}
|
|
8174
8174
|
var ListItem = function(param) {
|
|
8175
8175
|
var icon = param.icon, item = param.item, nestedItems = param.nestedItems, isDisabled = param.disabled, isFocused = param.isFocused, shouldDrawSpacerAbove = param.shouldDrawSpacerAbove, shouldDrawSpacerBelow = param.shouldDrawSpacerBelow, testId = param.testId, tweakStyles = param.tweakStyles, _param_view = param.view, view = _param_view === void 0 ? "default" : _param_view, withIconGap = param.withIconGap, data = param.data, onClick = param.onClick;
|
|
8176
|
-
var classes = useStyles$
|
|
8176
|
+
var classes = useStyles$U({
|
|
8177
8177
|
theme: tweakStyles
|
|
8178
8178
|
});
|
|
8179
8179
|
var _obj2;
|
|
@@ -8182,9 +8182,9 @@ var ListItem = function(param) {
|
|
|
8182
8182
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8183
8183
|
className: classes.spacer
|
|
8184
8184
|
}),
|
|
8185
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8185
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$S(_object_spread$10({
|
|
8186
8186
|
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$12(_obj2, classes.disabledItem, isDisabled), _define_property$12(_obj2, classes.withIconGap, withIconGap), _define_property$12(_obj2, classes.focused, isFocused), _obj2))
|
|
8187
|
-
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8187
|
+
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$S(_object_spread$10({}, data), {
|
|
8188
8188
|
disabled: isDisabled ? true : void 0
|
|
8189
8189
|
}))), {
|
|
8190
8190
|
children: [
|
|
@@ -8210,7 +8210,7 @@ var ListItem = function(param) {
|
|
|
8210
8210
|
]
|
|
8211
8211
|
});
|
|
8212
8212
|
};
|
|
8213
|
-
var useStyles$
|
|
8213
|
+
var useStyles$T = createThemedStyles("List", {
|
|
8214
8214
|
root: {
|
|
8215
8215
|
minWidth: 180,
|
|
8216
8216
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8259,7 +8259,7 @@ function _object_spread$$(target) {
|
|
|
8259
8259
|
}
|
|
8260
8260
|
return target;
|
|
8261
8261
|
}
|
|
8262
|
-
function ownKeys$
|
|
8262
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8263
8263
|
var keys2 = Object.keys(object);
|
|
8264
8264
|
if (Object.getOwnPropertySymbols) {
|
|
8265
8265
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8272,12 +8272,12 @@ function ownKeys$S(object, enumerableOnly) {
|
|
|
8272
8272
|
}
|
|
8273
8273
|
return keys2;
|
|
8274
8274
|
}
|
|
8275
|
-
function _object_spread_props$
|
|
8275
|
+
function _object_spread_props$R(target, source) {
|
|
8276
8276
|
source = source != null ? source : {};
|
|
8277
8277
|
if (Object.getOwnPropertyDescriptors) {
|
|
8278
8278
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8279
8279
|
} else {
|
|
8280
|
-
ownKeys$
|
|
8280
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8281
8281
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8282
8282
|
});
|
|
8283
8283
|
}
|
|
@@ -8285,7 +8285,7 @@ function _object_spread_props$S(target, source) {
|
|
|
8285
8285
|
}
|
|
8286
8286
|
var List = function(param) {
|
|
8287
8287
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8288
|
-
var classes = useStyles$
|
|
8288
|
+
var classes = useStyles$T({
|
|
8289
8289
|
theme: tweakStyles
|
|
8290
8290
|
});
|
|
8291
8291
|
var handleItemClick = function(event, param2) {
|
|
@@ -8295,11 +8295,11 @@ var List = function(param) {
|
|
|
8295
8295
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8296
8296
|
}
|
|
8297
8297
|
};
|
|
8298
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8298
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$$({
|
|
8299
8299
|
className: classes.root
|
|
8300
8300
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8301
8301
|
children: items.map(function(item, i) {
|
|
8302
|
-
var itemProps = _object_spread_props$
|
|
8302
|
+
var itemProps = _object_spread_props$R(_object_spread$$({
|
|
8303
8303
|
testId: getTestId(testId, "item-".concat(i))
|
|
8304
8304
|
}, item), {
|
|
8305
8305
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8317,7 +8317,7 @@ var List = function(param) {
|
|
|
8317
8317
|
shouldRenderInBody: false,
|
|
8318
8318
|
trigger: function(param2) {
|
|
8319
8319
|
var triggerProps = param2.triggerProps;
|
|
8320
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8320
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$R(_object_spread$$({}, itemProps), {
|
|
8321
8321
|
isFocused: triggerProps.isActive
|
|
8322
8322
|
}));
|
|
8323
8323
|
},
|
|
@@ -8362,7 +8362,7 @@ function _object_spread$_(target) {
|
|
|
8362
8362
|
}
|
|
8363
8363
|
return target;
|
|
8364
8364
|
}
|
|
8365
|
-
var useStyles$
|
|
8365
|
+
var useStyles$S = createThemedStyles("AccountInfo", _object_spread$_({
|
|
8366
8366
|
root: {
|
|
8367
8367
|
display: "flex"
|
|
8368
8368
|
},
|
|
@@ -8475,7 +8475,7 @@ function _object_spread$Z(target) {
|
|
|
8475
8475
|
}
|
|
8476
8476
|
return target;
|
|
8477
8477
|
}
|
|
8478
|
-
function ownKeys$
|
|
8478
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8479
8479
|
var keys2 = Object.keys(object);
|
|
8480
8480
|
if (Object.getOwnPropertySymbols) {
|
|
8481
8481
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8488,12 +8488,12 @@ function ownKeys$R(object, enumerableOnly) {
|
|
|
8488
8488
|
}
|
|
8489
8489
|
return keys2;
|
|
8490
8490
|
}
|
|
8491
|
-
function _object_spread_props$
|
|
8491
|
+
function _object_spread_props$Q(target, source) {
|
|
8492
8492
|
source = source != null ? source : {};
|
|
8493
8493
|
if (Object.getOwnPropertyDescriptors) {
|
|
8494
8494
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8495
8495
|
} else {
|
|
8496
|
-
ownKeys$
|
|
8496
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8497
8497
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8498
8498
|
});
|
|
8499
8499
|
}
|
|
@@ -8517,7 +8517,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
8517
8517
|
}
|
|
8518
8518
|
var AccountInfo = function(param) {
|
|
8519
8519
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8520
|
-
var classes = useStyles$
|
|
8520
|
+
var classes = useStyles$S({
|
|
8521
8521
|
theme: tweakStyles
|
|
8522
8522
|
});
|
|
8523
8523
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8537,7 +8537,7 @@ var AccountInfo = function(param) {
|
|
|
8537
8537
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8538
8538
|
return setIsMenuOpen(false);
|
|
8539
8539
|
}, nameRef);
|
|
8540
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8540
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$Q(_object_spread$Z({
|
|
8541
8541
|
className: classes.root
|
|
8542
8542
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8543
8543
|
children: [
|
|
@@ -8587,7 +8587,7 @@ var AccountInfo = function(param) {
|
|
|
8587
8587
|
]
|
|
8588
8588
|
}));
|
|
8589
8589
|
};
|
|
8590
|
-
var useStyles$
|
|
8590
|
+
var useStyles$R = createThemedStyles("AddButton", {
|
|
8591
8591
|
root: {
|
|
8592
8592
|
display: "flex",
|
|
8593
8593
|
alignItems: "center",
|
|
@@ -8641,7 +8641,7 @@ function _object_spread$Y(target) {
|
|
|
8641
8641
|
}
|
|
8642
8642
|
return target;
|
|
8643
8643
|
}
|
|
8644
|
-
function ownKeys$
|
|
8644
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8645
8645
|
var keys2 = Object.keys(object);
|
|
8646
8646
|
if (Object.getOwnPropertySymbols) {
|
|
8647
8647
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8654,12 +8654,12 @@ function ownKeys$Q(object, enumerableOnly) {
|
|
|
8654
8654
|
}
|
|
8655
8655
|
return keys2;
|
|
8656
8656
|
}
|
|
8657
|
-
function _object_spread_props$
|
|
8657
|
+
function _object_spread_props$P(target, source) {
|
|
8658
8658
|
source = source != null ? source : {};
|
|
8659
8659
|
if (Object.getOwnPropertyDescriptors) {
|
|
8660
8660
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8661
8661
|
} else {
|
|
8662
|
-
ownKeys$
|
|
8662
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8663
8663
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8664
8664
|
});
|
|
8665
8665
|
}
|
|
@@ -8667,10 +8667,10 @@ function _object_spread_props$Q(target, source) {
|
|
|
8667
8667
|
}
|
|
8668
8668
|
var AddButton = function(param) {
|
|
8669
8669
|
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onClick = param.onClick, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8670
|
-
var classes = useStyles$
|
|
8670
|
+
var classes = useStyles$R({
|
|
8671
8671
|
theme: tweakStyles
|
|
8672
8672
|
});
|
|
8673
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8673
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$P(_object_spread$Y({
|
|
8674
8674
|
type,
|
|
8675
8675
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8676
8676
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8689,7 +8689,7 @@ var AddButton = function(param) {
|
|
|
8689
8689
|
]
|
|
8690
8690
|
}));
|
|
8691
8691
|
};
|
|
8692
|
-
var useStyles$
|
|
8692
|
+
var useStyles$Q = createThemedStyles("DotsPreloader", {
|
|
8693
8693
|
root: {
|
|
8694
8694
|
display: "flex",
|
|
8695
8695
|
gap: 4,
|
|
@@ -8735,7 +8735,7 @@ var useStyles$R = createThemedStyles("DotsPreloader", {
|
|
|
8735
8735
|
});
|
|
8736
8736
|
var DotsPreloader = function(param) {
|
|
8737
8737
|
var tweakStyles = param.tweakStyles;
|
|
8738
|
-
var classes = useStyles$
|
|
8738
|
+
var classes = useStyles$Q({
|
|
8739
8739
|
theme: tweakStyles
|
|
8740
8740
|
});
|
|
8741
8741
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8801,7 +8801,7 @@ var DefaultPreloader = function() {
|
|
|
8801
8801
|
]
|
|
8802
8802
|
});
|
|
8803
8803
|
};
|
|
8804
|
-
var useStyles$
|
|
8804
|
+
var useStyles$P = createThemedStyles("SvgPreloader", {
|
|
8805
8805
|
root: {
|
|
8806
8806
|
display: "flex",
|
|
8807
8807
|
width: "100%",
|
|
@@ -8811,7 +8811,7 @@ var useStyles$Q = createThemedStyles("SvgPreloader", {
|
|
|
8811
8811
|
var SvgPreloader = function(param) {
|
|
8812
8812
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8813
8813
|
var _theme_preloaders;
|
|
8814
|
-
var classes = useStyles$
|
|
8814
|
+
var classes = useStyles$P({
|
|
8815
8815
|
theme: tweakStyles
|
|
8816
8816
|
});
|
|
8817
8817
|
var theme = useContext(ThemeContext).theme;
|
|
@@ -8825,7 +8825,7 @@ var SvgPreloader = function(param) {
|
|
|
8825
8825
|
}
|
|
8826
8826
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8827
8827
|
};
|
|
8828
|
-
var useStyles$
|
|
8828
|
+
var useStyles$O = createThemedStyles("ThemedPreloader", {
|
|
8829
8829
|
root: {
|
|
8830
8830
|
display: "flex"
|
|
8831
8831
|
},
|
|
@@ -8864,7 +8864,7 @@ function _object_spread$X(target) {
|
|
|
8864
8864
|
}
|
|
8865
8865
|
return target;
|
|
8866
8866
|
}
|
|
8867
|
-
function ownKeys$
|
|
8867
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
8868
8868
|
var keys2 = Object.keys(object);
|
|
8869
8869
|
if (Object.getOwnPropertySymbols) {
|
|
8870
8870
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8877,12 +8877,12 @@ function ownKeys$P(object, enumerableOnly) {
|
|
|
8877
8877
|
}
|
|
8878
8878
|
return keys2;
|
|
8879
8879
|
}
|
|
8880
|
-
function _object_spread_props$
|
|
8880
|
+
function _object_spread_props$O(target, source) {
|
|
8881
8881
|
source = source != null ? source : {};
|
|
8882
8882
|
if (Object.getOwnPropertyDescriptors) {
|
|
8883
8883
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8884
8884
|
} else {
|
|
8885
|
-
ownKeys$
|
|
8885
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
8886
8886
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8887
8887
|
});
|
|
8888
8888
|
}
|
|
@@ -8890,7 +8890,7 @@ function _object_spread_props$P(target, source) {
|
|
|
8890
8890
|
}
|
|
8891
8891
|
var ThemedPreloader = function(param) {
|
|
8892
8892
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, _param_useCurrentColor = param.useCurrentColor, useCurrentColor = _param_useCurrentColor === void 0 ? false : _param_useCurrentColor, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8893
|
-
var classes = useStyles$
|
|
8893
|
+
var classes = useStyles$O({
|
|
8894
8894
|
theme: tweakStyles
|
|
8895
8895
|
});
|
|
8896
8896
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8903,7 +8903,7 @@ var ThemedPreloader = function(param) {
|
|
|
8903
8903
|
className: "tweakSvgPreloader",
|
|
8904
8904
|
currentComponentName: "ThemedPreloader"
|
|
8905
8905
|
});
|
|
8906
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8906
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$O(_object_spread$X({
|
|
8907
8907
|
className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
|
|
8908
8908
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8909
8909
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
@@ -8914,7 +8914,7 @@ var ThemedPreloader = function(param) {
|
|
|
8914
8914
|
})
|
|
8915
8915
|
}));
|
|
8916
8916
|
};
|
|
8917
|
-
var useStyles$
|
|
8917
|
+
var useStyles$N = createThemedStyles("Button", {
|
|
8918
8918
|
root: {
|
|
8919
8919
|
display: "flex",
|
|
8920
8920
|
justifyContent: "center",
|
|
@@ -9113,7 +9113,7 @@ function _object_spread$W(target) {
|
|
|
9113
9113
|
}
|
|
9114
9114
|
return target;
|
|
9115
9115
|
}
|
|
9116
|
-
function ownKeys$
|
|
9116
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9117
9117
|
var keys2 = Object.keys(object);
|
|
9118
9118
|
if (Object.getOwnPropertySymbols) {
|
|
9119
9119
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9126,12 +9126,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
9126
9126
|
}
|
|
9127
9127
|
return keys2;
|
|
9128
9128
|
}
|
|
9129
|
-
function _object_spread_props$
|
|
9129
|
+
function _object_spread_props$N(target, source) {
|
|
9130
9130
|
source = source != null ? source : {};
|
|
9131
9131
|
if (Object.getOwnPropertyDescriptors) {
|
|
9132
9132
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9133
9133
|
} else {
|
|
9134
|
-
ownKeys$
|
|
9134
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9135
9135
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9136
9136
|
});
|
|
9137
9137
|
}
|
|
@@ -9188,7 +9188,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9188
9188
|
"iconPosition",
|
|
9189
9189
|
"preloaderType"
|
|
9190
9190
|
]);
|
|
9191
|
-
var classes = useStyles$
|
|
9191
|
+
var classes = useStyles$N({
|
|
9192
9192
|
theme: tweakStyles
|
|
9193
9193
|
});
|
|
9194
9194
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9201,7 +9201,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9201
9201
|
var hasChildren = isReactNodeNotEmpty(children);
|
|
9202
9202
|
var hasNoAction = isDisabled || isLoading;
|
|
9203
9203
|
var _obj2, _obj1;
|
|
9204
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9204
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$N(_object_spread$W({
|
|
9205
9205
|
ref,
|
|
9206
9206
|
type,
|
|
9207
9207
|
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)),
|
|
@@ -9233,7 +9233,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9233
9233
|
]
|
|
9234
9234
|
}));
|
|
9235
9235
|
});
|
|
9236
|
-
var useStyles$
|
|
9236
|
+
var useStyles$M = createThemedStyles("Checkbox", {
|
|
9237
9237
|
root: {
|
|
9238
9238
|
cursor: "pointer",
|
|
9239
9239
|
display: "flex",
|
|
@@ -9299,7 +9299,7 @@ function _object_spread$V(target) {
|
|
|
9299
9299
|
}
|
|
9300
9300
|
return target;
|
|
9301
9301
|
}
|
|
9302
|
-
function ownKeys$
|
|
9302
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9303
9303
|
var keys2 = Object.keys(object);
|
|
9304
9304
|
if (Object.getOwnPropertySymbols) {
|
|
9305
9305
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9312,12 +9312,12 @@ function ownKeys$N(object, enumerableOnly) {
|
|
|
9312
9312
|
}
|
|
9313
9313
|
return keys2;
|
|
9314
9314
|
}
|
|
9315
|
-
function _object_spread_props$
|
|
9315
|
+
function _object_spread_props$M(target, source) {
|
|
9316
9316
|
source = source != null ? source : {};
|
|
9317
9317
|
if (Object.getOwnPropertyDescriptors) {
|
|
9318
9318
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9319
9319
|
} else {
|
|
9320
|
-
ownKeys$
|
|
9320
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9321
9321
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9322
9322
|
});
|
|
9323
9323
|
}
|
|
@@ -9325,7 +9325,7 @@ function _object_spread_props$N(target, source) {
|
|
|
9325
9325
|
}
|
|
9326
9326
|
function Checkbox(param) {
|
|
9327
9327
|
var value = param.value, children = param.children, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
9328
|
-
var classes = useStyles$
|
|
9328
|
+
var classes = useStyles$M({
|
|
9329
9329
|
theme: tweakStyles
|
|
9330
9330
|
});
|
|
9331
9331
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9337,7 +9337,7 @@ function Checkbox(param) {
|
|
|
9337
9337
|
}, event);
|
|
9338
9338
|
};
|
|
9339
9339
|
var _obj2;
|
|
9340
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9340
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$M(_object_spread$V({
|
|
9341
9341
|
className: clsx(classes.root, (_obj2 = {}, _define_property$X(_obj2, classes.checked, isSelected), _define_property$X(_obj2, classes.invalid, isInvalid), _define_property$X(_obj2, classes.disabled, isDisabled), _define_property$X(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
|
|
9342
9342
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
9343
9343
|
children: [
|
|
@@ -9364,7 +9364,7 @@ function Checkbox(param) {
|
|
|
9364
9364
|
]
|
|
9365
9365
|
}));
|
|
9366
9366
|
}
|
|
9367
|
-
var useStyles$
|
|
9367
|
+
var useStyles$L = createThemedStyles("CloseButton", {
|
|
9368
9368
|
root: {
|
|
9369
9369
|
width: 40,
|
|
9370
9370
|
height: 40,
|
|
@@ -9418,7 +9418,7 @@ function _object_spread$U(target) {
|
|
|
9418
9418
|
}
|
|
9419
9419
|
return target;
|
|
9420
9420
|
}
|
|
9421
|
-
function ownKeys$
|
|
9421
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9422
9422
|
var keys2 = Object.keys(object);
|
|
9423
9423
|
if (Object.getOwnPropertySymbols) {
|
|
9424
9424
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9431,12 +9431,12 @@ function ownKeys$M(object, enumerableOnly) {
|
|
|
9431
9431
|
}
|
|
9432
9432
|
return keys2;
|
|
9433
9433
|
}
|
|
9434
|
-
function _object_spread_props$
|
|
9434
|
+
function _object_spread_props$L(target, source) {
|
|
9435
9435
|
source = source != null ? source : {};
|
|
9436
9436
|
if (Object.getOwnPropertyDescriptors) {
|
|
9437
9437
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9438
9438
|
} else {
|
|
9439
|
-
ownKeys$
|
|
9439
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9440
9440
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9441
9441
|
});
|
|
9442
9442
|
}
|
|
@@ -9444,10 +9444,10 @@ function _object_spread_props$M(target, source) {
|
|
|
9444
9444
|
}
|
|
9445
9445
|
var CloseButton = function(param) {
|
|
9446
9446
|
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_icon = param.icon, icon = _param_icon === void 0 ? "close" : _param_icon, onClose = param.onClose;
|
|
9447
|
-
var classes = useStyles$
|
|
9447
|
+
var classes = useStyles$L({
|
|
9448
9448
|
theme: tweakStyles
|
|
9449
9449
|
});
|
|
9450
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9450
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$L(_object_spread$U({
|
|
9451
9451
|
type: "button",
|
|
9452
9452
|
className: classes.root,
|
|
9453
9453
|
onClick: onClose
|
|
@@ -9457,7 +9457,7 @@ var CloseButton = function(param) {
|
|
|
9457
9457
|
})
|
|
9458
9458
|
}));
|
|
9459
9459
|
};
|
|
9460
|
-
var useStyles$
|
|
9460
|
+
var useStyles$K = createThemedStyles({
|
|
9461
9461
|
root: {
|
|
9462
9462
|
display: "flex",
|
|
9463
9463
|
flexWrap: "wrap"
|
|
@@ -9550,7 +9550,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
9550
9550
|
return _array_like_to_array$k(o, minLen);
|
|
9551
9551
|
}
|
|
9552
9552
|
var Colors = function() {
|
|
9553
|
-
var classes = useStyles$
|
|
9553
|
+
var classes = useStyles$K();
|
|
9554
9554
|
var theme = useContext(ThemeContext).theme;
|
|
9555
9555
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9556
9556
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9580,7 +9580,7 @@ var Colors = function() {
|
|
|
9580
9580
|
})
|
|
9581
9581
|
});
|
|
9582
9582
|
};
|
|
9583
|
-
var useStyles$
|
|
9583
|
+
var useStyles$J = createThemedStyles("CssBaseline", {
|
|
9584
9584
|
"@global html, body": {
|
|
9585
9585
|
fontFamily: "Arial, sans-serif",
|
|
9586
9586
|
color: colors.FONT_MAIN,
|
|
@@ -9619,18 +9619,19 @@ function _object_spread$T(target) {
|
|
|
9619
9619
|
}
|
|
9620
9620
|
var CssBaseline = function(param) {
|
|
9621
9621
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9622
|
-
var classes = useStyles$
|
|
9622
|
+
var classes = useStyles$J({
|
|
9623
9623
|
theme: tweakStyles
|
|
9624
9624
|
});
|
|
9625
9625
|
return /* @__PURE__ */ jsx("div", _object_spread$T({
|
|
9626
9626
|
className: classes.root
|
|
9627
9627
|
}, addDataTestId(testId), addDataAttributes(data)));
|
|
9628
9628
|
};
|
|
9629
|
-
var useStyles$
|
|
9630
|
-
|
|
9629
|
+
var useStyles$I = createThemedStyles("WithMessages", {
|
|
9630
|
+
withMessages: {
|
|
9631
9631
|
display: "flex",
|
|
9632
9632
|
flexDirection: "column",
|
|
9633
|
-
width: "100%"
|
|
9633
|
+
width: "100%",
|
|
9634
|
+
position: "relative"
|
|
9634
9635
|
},
|
|
9635
9636
|
error: {
|
|
9636
9637
|
color: "red"
|
|
@@ -9687,7 +9688,7 @@ function _object_spread$S(target) {
|
|
|
9687
9688
|
}
|
|
9688
9689
|
return target;
|
|
9689
9690
|
}
|
|
9690
|
-
function ownKeys$
|
|
9691
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9691
9692
|
var keys2 = Object.keys(object);
|
|
9692
9693
|
if (Object.getOwnPropertySymbols) {
|
|
9693
9694
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9700,44 +9701,44 @@ function ownKeys$L(object, enumerableOnly) {
|
|
|
9700
9701
|
}
|
|
9701
9702
|
return keys2;
|
|
9702
9703
|
}
|
|
9703
|
-
function _object_spread_props$
|
|
9704
|
+
function _object_spread_props$K(target, source) {
|
|
9704
9705
|
source = source != null ? source : {};
|
|
9705
9706
|
if (Object.getOwnPropertyDescriptors) {
|
|
9706
9707
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9707
9708
|
} else {
|
|
9708
|
-
ownKeys$
|
|
9709
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9709
9710
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9710
9711
|
});
|
|
9711
9712
|
}
|
|
9712
9713
|
return target;
|
|
9713
9714
|
}
|
|
9714
|
-
var
|
|
9715
|
-
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage,
|
|
9716
|
-
var classes = useStyles$
|
|
9715
|
+
var WithMessages = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
9716
|
+
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
9717
|
+
var classes = useStyles$I({
|
|
9717
9718
|
theme: tweakStyles
|
|
9718
9719
|
});
|
|
9719
9720
|
var shouldShowError = isReactNodeNotEmpty(errorMessage);
|
|
9720
9721
|
var shouldShowInfo = isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9721
9722
|
var _obj2;
|
|
9722
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9723
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
9723
9724
|
ref,
|
|
9724
|
-
className: classes.
|
|
9725
|
+
className: classes.withMessages,
|
|
9725
9726
|
"data-invalid": shouldShowError ? true : void 0
|
|
9726
9727
|
}, addDataAttributes$1(data, testId)), {
|
|
9727
9728
|
children: [
|
|
9728
9729
|
isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
|
|
9729
|
-
className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal,
|
|
9730
|
+
className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$U(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
|
|
9730
9731
|
children
|
|
9731
9732
|
}),
|
|
9732
9733
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9733
9734
|
className: classes.message,
|
|
9734
9735
|
children: [
|
|
9735
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9736
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9736
9737
|
className: classes.error
|
|
9737
9738
|
}, addDataTestId(testId, "error")), {
|
|
9738
9739
|
children: errorMessage
|
|
9739
9740
|
})),
|
|
9740
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9741
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
9741
9742
|
className: classes.info
|
|
9742
9743
|
}, addDataTestId(testId, "info")), {
|
|
9743
9744
|
children: infoMessage
|
|
@@ -9747,9 +9748,9 @@ var ControlGroup = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
9747
9748
|
]
|
|
9748
9749
|
}));
|
|
9749
9750
|
});
|
|
9750
|
-
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$
|
|
9751
|
-
var useStyles$
|
|
9752
|
-
|
|
9751
|
+
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$1 = dimensions.Z_INDEX;
|
|
9752
|
+
var useStyles$H = createThemedStyles("ControlWrapper", {
|
|
9753
|
+
controlWrapper: {
|
|
9753
9754
|
"--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
|
|
9754
9755
|
// borders
|
|
9755
9756
|
"--control-padding": "".concat(CONTROL$1.PADDING, "px"),
|
|
@@ -9770,12 +9771,12 @@ var useStyles$I = createThemedStyles("ControlWrapper", {
|
|
|
9770
9771
|
zIndex: 0
|
|
9771
9772
|
},
|
|
9772
9773
|
invalid: {
|
|
9773
|
-
zIndex: Z_INDEX$
|
|
9774
|
+
zIndex: Z_INDEX$1.CONTROL_INVALID
|
|
9774
9775
|
},
|
|
9775
9776
|
disabled: {},
|
|
9776
9777
|
focused: {
|
|
9777
9778
|
position: "relative",
|
|
9778
|
-
zIndex: Z_INDEX$
|
|
9779
|
+
zIndex: Z_INDEX$1.CONTROL_FOCUS
|
|
9779
9780
|
},
|
|
9780
9781
|
withValue: {},
|
|
9781
9782
|
loading: {},
|
|
@@ -9927,7 +9928,7 @@ function _object_spread$R(target) {
|
|
|
9927
9928
|
}
|
|
9928
9929
|
return target;
|
|
9929
9930
|
}
|
|
9930
|
-
function ownKeys$
|
|
9931
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
9931
9932
|
var keys2 = Object.keys(object);
|
|
9932
9933
|
if (Object.getOwnPropertySymbols) {
|
|
9933
9934
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9940,12 +9941,12 @@ function ownKeys$K(object, enumerableOnly) {
|
|
|
9940
9941
|
}
|
|
9941
9942
|
return keys2;
|
|
9942
9943
|
}
|
|
9943
|
-
function _object_spread_props$
|
|
9944
|
+
function _object_spread_props$J(target, source) {
|
|
9944
9945
|
source = source != null ? source : {};
|
|
9945
9946
|
if (Object.getOwnPropertyDescriptors) {
|
|
9946
9947
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9947
9948
|
} else {
|
|
9948
|
-
ownKeys$
|
|
9949
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
9949
9950
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9950
9951
|
});
|
|
9951
9952
|
}
|
|
@@ -9953,7 +9954,7 @@ function _object_spread_props$K(target, source) {
|
|
|
9953
9954
|
}
|
|
9954
9955
|
var ControlWrapper = function(param) {
|
|
9955
9956
|
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;
|
|
9956
|
-
var classes = useStyles$
|
|
9957
|
+
var classes = useStyles$H({
|
|
9957
9958
|
theme: tweakStyles
|
|
9958
9959
|
});
|
|
9959
9960
|
var hasEndIcon = !isLoading && isReactNodeNotEmpty(icon);
|
|
@@ -9965,8 +9966,8 @@ var ControlWrapper = function(param) {
|
|
|
9965
9966
|
currentComponentName: "ControlWrapper"
|
|
9966
9967
|
});
|
|
9967
9968
|
var _obj2, _obj1, _obj22;
|
|
9968
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9969
|
-
className: clsx(classes.
|
|
9969
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$R({
|
|
9970
|
+
className: clsx(classes.controlWrapper, isNotEmpty(groupPlacement) && [
|
|
9970
9971
|
classes["placement-".concat(groupPlacement)]
|
|
9971
9972
|
], (_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))
|
|
9972
9973
|
}, addDataAttributes$1(data, testId)), {
|
|
@@ -9982,7 +9983,7 @@ var ControlWrapper = function(param) {
|
|
|
9982
9983
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9983
9984
|
className: classes.controls,
|
|
9984
9985
|
children: [
|
|
9985
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9986
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9986
9987
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9987
9988
|
}, addClickHandler(onClear), addDataTestId(testId, "clear")), {
|
|
9988
9989
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9992,7 +9993,7 @@ var ControlWrapper = function(param) {
|
|
|
9992
9993
|
})
|
|
9993
9994
|
})
|
|
9994
9995
|
})),
|
|
9995
|
-
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9996
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
9996
9997
|
className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$T(_obj22, classes.activeIcon, !isDisabled && isNotEmpty(onIconClick)), _define_property$T(_obj22, classes.customIcon, !isString(icon)), _obj22))
|
|
9997
9998
|
}, addClickHandler(onIconClick, !isDisabled), addDataTestId(testId, "icon")), {
|
|
9998
9999
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10000,7 +10001,7 @@ var ControlWrapper = function(param) {
|
|
|
10000
10001
|
children: renderIcon(icon)
|
|
10001
10002
|
})
|
|
10002
10003
|
})),
|
|
10003
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10004
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
10004
10005
|
className: clsx(classes.icon, classes.loader)
|
|
10005
10006
|
}, addDataTestId(testId, "loading")), {
|
|
10006
10007
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10018,7 +10019,7 @@ var ControlWrapper = function(param) {
|
|
|
10018
10019
|
}));
|
|
10019
10020
|
};
|
|
10020
10021
|
var PADDING_WITH_UNITS = 8;
|
|
10021
|
-
var useStyles$
|
|
10022
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
10022
10023
|
inputContent: {
|
|
10023
10024
|
height: "var(--control-height)",
|
|
10024
10025
|
padding: [
|
|
@@ -10074,12 +10075,14 @@ var useStyles$H = createThemedStyles("Input", {
|
|
|
10074
10075
|
}
|
|
10075
10076
|
},
|
|
10076
10077
|
withLabel: {},
|
|
10078
|
+
withValue: {},
|
|
10077
10079
|
fakeValue: {
|
|
10078
10080
|
extend: "inputContent",
|
|
10079
10081
|
visibility: "hidden",
|
|
10080
10082
|
maxWidth: "100%",
|
|
10081
10083
|
overflow: "hidden",
|
|
10082
|
-
minWidth: 8
|
|
10084
|
+
minWidth: 8,
|
|
10085
|
+
whiteSpace: "nowrap"
|
|
10083
10086
|
},
|
|
10084
10087
|
units: {
|
|
10085
10088
|
alignSelf: "center",
|
|
@@ -10188,7 +10191,7 @@ function _object_spread$Q(target) {
|
|
|
10188
10191
|
}
|
|
10189
10192
|
return target;
|
|
10190
10193
|
}
|
|
10191
|
-
function ownKeys$
|
|
10194
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10192
10195
|
var keys2 = Object.keys(object);
|
|
10193
10196
|
if (Object.getOwnPropertySymbols) {
|
|
10194
10197
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10201,12 +10204,12 @@ function ownKeys$J(object, enumerableOnly) {
|
|
|
10201
10204
|
}
|
|
10202
10205
|
return keys2;
|
|
10203
10206
|
}
|
|
10204
|
-
function _object_spread_props$
|
|
10207
|
+
function _object_spread_props$I(target, source) {
|
|
10205
10208
|
source = source != null ? source : {};
|
|
10206
10209
|
if (Object.getOwnPropertyDescriptors) {
|
|
10207
10210
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10208
10211
|
} else {
|
|
10209
|
-
ownKeys$
|
|
10212
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10210
10213
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10211
10214
|
});
|
|
10212
10215
|
}
|
|
@@ -10394,7 +10397,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10394
10397
|
"shouldAlwaysShowPlaceholder",
|
|
10395
10398
|
"beforeMaskedStateChange"
|
|
10396
10399
|
]);
|
|
10397
|
-
var classes = useStyles$
|
|
10400
|
+
var classes = useStyles$G({
|
|
10398
10401
|
theme: tweakStyles
|
|
10399
10402
|
});
|
|
10400
10403
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -10459,7 +10462,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10459
10462
|
]);
|
|
10460
10463
|
var _obj2;
|
|
10461
10464
|
var props = _object_spread$Q({
|
|
10462
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _define_property$S(_obj2, classes.withLabel, 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)),
|
|
10465
|
+
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, 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)),
|
|
10463
10466
|
style: hasUnits && hasValue ? {
|
|
10464
10467
|
"--units-width": "".concat(unitsWidth, "px")
|
|
10465
10468
|
} : void 0,
|
|
@@ -10507,7 +10510,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10507
10510
|
})
|
|
10508
10511
|
]
|
|
10509
10512
|
});
|
|
10510
|
-
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$
|
|
10513
|
+
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$I(_object_spread$Q({
|
|
10511
10514
|
label,
|
|
10512
10515
|
isDisabled,
|
|
10513
10516
|
isFocused: hasFocus,
|
|
@@ -10551,7 +10554,7 @@ function _object_spread$P(target) {
|
|
|
10551
10554
|
}
|
|
10552
10555
|
return target;
|
|
10553
10556
|
}
|
|
10554
|
-
function ownKeys$
|
|
10557
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
10555
10558
|
var keys2 = Object.keys(object);
|
|
10556
10559
|
if (Object.getOwnPropertySymbols) {
|
|
10557
10560
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10564,12 +10567,12 @@ function ownKeys$I(object, enumerableOnly) {
|
|
|
10564
10567
|
}
|
|
10565
10568
|
return keys2;
|
|
10566
10569
|
}
|
|
10567
|
-
function _object_spread_props$
|
|
10570
|
+
function _object_spread_props$H(target, source) {
|
|
10568
10571
|
source = source != null ? source : {};
|
|
10569
10572
|
if (Object.getOwnPropertyDescriptors) {
|
|
10570
10573
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10571
10574
|
} else {
|
|
10572
|
-
ownKeys$
|
|
10575
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
10573
10576
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10574
10577
|
});
|
|
10575
10578
|
}
|
|
@@ -10615,16 +10618,16 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10615
10618
|
"testId",
|
|
10616
10619
|
"tweakStyles"
|
|
10617
10620
|
]);
|
|
10618
|
-
var
|
|
10621
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
10619
10622
|
tweakStyles,
|
|
10620
|
-
className: "
|
|
10623
|
+
className: "tweakWithMessages"
|
|
10621
10624
|
});
|
|
10622
|
-
return /* @__PURE__ */ jsx(
|
|
10625
|
+
return /* @__PURE__ */ jsx(WithMessages, {
|
|
10623
10626
|
errorMessage,
|
|
10624
10627
|
infoMessage,
|
|
10625
10628
|
testId,
|
|
10626
|
-
tweakStyles:
|
|
10627
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$
|
|
10629
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
10630
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$H(_object_spread$P({}, inputProps), {
|
|
10628
10631
|
ref,
|
|
10629
10632
|
testId,
|
|
10630
10633
|
tweakStyles,
|
|
@@ -10634,7 +10637,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10634
10637
|
});
|
|
10635
10638
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10636
10639
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10637
|
-
var useStyles$
|
|
10640
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10638
10641
|
root: {
|
|
10639
10642
|
width: "100%",
|
|
10640
10643
|
height: "100%",
|
|
@@ -10670,7 +10673,7 @@ function _object_spread$O(target) {
|
|
|
10670
10673
|
}
|
|
10671
10674
|
return target;
|
|
10672
10675
|
}
|
|
10673
|
-
function ownKeys$
|
|
10676
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
10674
10677
|
var keys2 = Object.keys(object);
|
|
10675
10678
|
if (Object.getOwnPropertySymbols) {
|
|
10676
10679
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10683,12 +10686,12 @@ function ownKeys$H(object, enumerableOnly) {
|
|
|
10683
10686
|
}
|
|
10684
10687
|
return keys2;
|
|
10685
10688
|
}
|
|
10686
|
-
function _object_spread_props$
|
|
10689
|
+
function _object_spread_props$G(target, source) {
|
|
10687
10690
|
source = source != null ? source : {};
|
|
10688
10691
|
if (Object.getOwnPropertyDescriptors) {
|
|
10689
10692
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10690
10693
|
} else {
|
|
10691
|
-
ownKeys$
|
|
10694
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10692
10695
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10693
10696
|
});
|
|
10694
10697
|
}
|
|
@@ -10740,7 +10743,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10740
10743
|
"onClick",
|
|
10741
10744
|
"onChange"
|
|
10742
10745
|
]);
|
|
10743
|
-
var classes = useStyles$
|
|
10746
|
+
var classes = useStyles$F({
|
|
10744
10747
|
theme: tweakStyles
|
|
10745
10748
|
});
|
|
10746
10749
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10767,11 +10770,11 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10767
10770
|
}
|
|
10768
10771
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10769
10772
|
};
|
|
10770
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10773
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$O({
|
|
10771
10774
|
className: clsx(classes.root, className),
|
|
10772
10775
|
onClick
|
|
10773
10776
|
}, addDataAttributes(data)), {
|
|
10774
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10777
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$G(_object_spread$O({}, inputProps), {
|
|
10775
10778
|
ref,
|
|
10776
10779
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10777
10780
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10783,33 +10786,21 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10783
10786
|
}));
|
|
10784
10787
|
});
|
|
10785
10788
|
const reactDatepicker = "";
|
|
10786
|
-
var Z_INDEX$1 = dimensions.Z_INDEX;
|
|
10787
|
-
var useStyles$F = createThemedStyles("SearchInput", {
|
|
10788
|
-
root: {
|
|
10789
|
-
position: "relative"
|
|
10790
|
-
},
|
|
10791
|
-
icon: {
|
|
10792
|
-
display: "flex",
|
|
10793
|
-
alignItems: "center",
|
|
10794
|
-
position: "absolute",
|
|
10795
|
-
left: 12,
|
|
10796
|
-
height: "100%",
|
|
10797
|
-
width: 20,
|
|
10798
|
-
color: colors.GREY_ACTIVE,
|
|
10799
|
-
zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
|
|
10800
|
-
}
|
|
10801
|
-
});
|
|
10802
10789
|
var inputStyles$4 = {
|
|
10803
10790
|
tweakControlWrapper: {
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10791
|
+
endIcon: {
|
|
10792
|
+
position: "absolute",
|
|
10793
|
+
width: 40,
|
|
10794
|
+
left: 0,
|
|
10795
|
+
"&:last-child": {
|
|
10796
|
+
paddingRight: 0
|
|
10797
|
+
},
|
|
10798
|
+
"&:not($activeIcon)": {
|
|
10799
|
+
pointerEvents: "none"
|
|
10800
|
+
}
|
|
10809
10801
|
},
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
borderColor: colors.BORDER_MAIN
|
|
10802
|
+
controlWrapper: {
|
|
10803
|
+
borderColor: "transparent"
|
|
10813
10804
|
}
|
|
10814
10805
|
},
|
|
10815
10806
|
inputContent: {
|
|
@@ -10845,30 +10836,6 @@ function _object_spread$N(target) {
|
|
|
10845
10836
|
}
|
|
10846
10837
|
return target;
|
|
10847
10838
|
}
|
|
10848
|
-
function ownKeys$G(object, enumerableOnly) {
|
|
10849
|
-
var keys2 = Object.keys(object);
|
|
10850
|
-
if (Object.getOwnPropertySymbols) {
|
|
10851
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
10852
|
-
if (enumerableOnly) {
|
|
10853
|
-
symbols = symbols.filter(function(sym) {
|
|
10854
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10855
|
-
});
|
|
10856
|
-
}
|
|
10857
|
-
keys2.push.apply(keys2, symbols);
|
|
10858
|
-
}
|
|
10859
|
-
return keys2;
|
|
10860
|
-
}
|
|
10861
|
-
function _object_spread_props$G(target, source) {
|
|
10862
|
-
source = source != null ? source : {};
|
|
10863
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
10864
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10865
|
-
} else {
|
|
10866
|
-
ownKeys$G(Object(source)).forEach(function(key) {
|
|
10867
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10868
|
-
});
|
|
10869
|
-
}
|
|
10870
|
-
return target;
|
|
10871
|
-
}
|
|
10872
10839
|
function _object_without_properties$f(source, excluded) {
|
|
10873
10840
|
if (source == null)
|
|
10874
10841
|
return {};
|
|
@@ -10902,42 +10869,30 @@ function _object_without_properties_loose$f(source, excluded) {
|
|
|
10902
10869
|
return target;
|
|
10903
10870
|
}
|
|
10904
10871
|
var SearchInput = function(_param) {
|
|
10905
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable,
|
|
10872
|
+
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;
|
|
10873
|
+
_param.data;
|
|
10874
|
+
var props = _object_without_properties$f(_param, [
|
|
10906
10875
|
"isClearable",
|
|
10907
|
-
"tweakStyles",
|
|
10908
10876
|
"placeholder",
|
|
10909
10877
|
"value",
|
|
10910
10878
|
"testId",
|
|
10879
|
+
"tweakStyles",
|
|
10911
10880
|
"data"
|
|
10912
10881
|
]);
|
|
10913
|
-
var classes = useStyles$F({
|
|
10914
|
-
theme: tweakStyles
|
|
10915
|
-
});
|
|
10916
10882
|
var tweakInputStyles = useTweakStyles({
|
|
10917
10883
|
innerStyles: inputStyles$4,
|
|
10918
10884
|
tweakStyles,
|
|
10919
10885
|
className: "tweakInput",
|
|
10920
10886
|
currentComponentName: "SearchInput"
|
|
10921
10887
|
});
|
|
10922
|
-
return /* @__PURE__ */
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
})
|
|
10931
|
-
}),
|
|
10932
|
-
/* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10933
|
-
value,
|
|
10934
|
-
placeholder,
|
|
10935
|
-
isClearable,
|
|
10936
|
-
testId: getTestId(testId, "input"),
|
|
10937
|
-
tweakStyles: tweakInputStyles
|
|
10938
|
-
}, props))
|
|
10939
|
-
]
|
|
10940
|
-
}));
|
|
10888
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10889
|
+
value,
|
|
10890
|
+
placeholder,
|
|
10891
|
+
icon: "search",
|
|
10892
|
+
isClearable,
|
|
10893
|
+
testId: getTestId(testId, "input"),
|
|
10894
|
+
tweakStyles: tweakInputStyles
|
|
10895
|
+
}, props));
|
|
10941
10896
|
};
|
|
10942
10897
|
var ScrollIntoViewIfNeededDefaultElementType = "div";
|
|
10943
10898
|
var ScrollIntoViewIfNeededDefaultProps = {
|
|
@@ -11573,6 +11528,11 @@ var baseInputStyles = {
|
|
|
11573
11528
|
inputContent: {
|
|
11574
11529
|
paddingRight: 32
|
|
11575
11530
|
},
|
|
11531
|
+
input: {
|
|
11532
|
+
"&[readonly]": {
|
|
11533
|
+
cursor: "pointer"
|
|
11534
|
+
}
|
|
11535
|
+
},
|
|
11576
11536
|
tweakControlWrapper: {
|
|
11577
11537
|
controls: {
|
|
11578
11538
|
paddingRight: 40
|
|
@@ -11935,9 +11895,9 @@ function Select(props) {
|
|
|
11935
11895
|
]);
|
|
11936
11896
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
11937
11897
|
var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
|
|
11938
|
-
var
|
|
11898
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
11939
11899
|
tweakStyles,
|
|
11940
|
-
className: "
|
|
11900
|
+
className: "tweakWithMessages",
|
|
11941
11901
|
currentComponentName: "Select"
|
|
11942
11902
|
});
|
|
11943
11903
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -12029,22 +11989,10 @@ function Select(props) {
|
|
|
12029
11989
|
convertValueToId,
|
|
12030
11990
|
convertValueToString
|
|
12031
11991
|
]);
|
|
12032
|
-
var getDropdownOffset = function() {
|
|
12033
|
-
var _input_current_parentElement2;
|
|
12034
|
-
if (isEmpty(input.current)) {
|
|
12035
|
-
return 0;
|
|
12036
|
-
}
|
|
12037
|
-
var _input_current_parentElement_offsetHeight;
|
|
12038
|
-
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;
|
|
12039
|
-
};
|
|
12040
11992
|
var closeList = useCallback(function() {
|
|
12041
11993
|
setIsListOpen(false);
|
|
12042
11994
|
setSearchValue("");
|
|
12043
11995
|
setShouldShowDefaultOption(true);
|
|
12044
|
-
if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
|
|
12045
|
-
var _root_current;
|
|
12046
|
-
(_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset");
|
|
12047
|
-
}
|
|
12048
11996
|
}, [
|
|
12049
11997
|
dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
|
|
12050
11998
|
]);
|
|
@@ -12056,15 +12004,8 @@ function Select(props) {
|
|
|
12056
12004
|
onBlur
|
|
12057
12005
|
]);
|
|
12058
12006
|
var handleListOpen = function() {
|
|
12059
|
-
if (isReadonly) {
|
|
12060
|
-
return;
|
|
12061
|
-
}
|
|
12062
|
-
if (!isListOpen) {
|
|
12007
|
+
if (!isReadonly && !isListOpen) {
|
|
12063
12008
|
setIsListOpen(true);
|
|
12064
|
-
if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
|
|
12065
|
-
var _root_current;
|
|
12066
|
-
(_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px"));
|
|
12067
|
-
}
|
|
12068
12009
|
}
|
|
12069
12010
|
};
|
|
12070
12011
|
var handleFocus = function(event) {
|
|
@@ -12360,10 +12301,10 @@ function Select(props) {
|
|
|
12360
12301
|
})
|
|
12361
12302
|
]
|
|
12362
12303
|
}) : void 0;
|
|
12363
|
-
return /* @__PURE__ */ jsx(
|
|
12304
|
+
return /* @__PURE__ */ jsx(WithMessages, {
|
|
12364
12305
|
errorMessage,
|
|
12365
12306
|
infoMessage,
|
|
12366
|
-
tweakStyles:
|
|
12307
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
12367
12308
|
children: /* @__PURE__ */ jsxs("div", {
|
|
12368
12309
|
className: classes.root,
|
|
12369
12310
|
onKeyDown: handleKeyDown,
|
|
@@ -12440,7 +12381,7 @@ var selectStyles$1 = {
|
|
|
12440
12381
|
},
|
|
12441
12382
|
tweakInput: {
|
|
12442
12383
|
tweakControlWrapper: {
|
|
12443
|
-
|
|
12384
|
+
controlWrapper: {
|
|
12444
12385
|
"--control-height": "35px",
|
|
12445
12386
|
border: "none"
|
|
12446
12387
|
}
|
|
@@ -15434,7 +15375,7 @@ var useStyles$s = createThemedStyles("MultiSelectList", {
|
|
|
15434
15375
|
var searchInputStyles$2 = {
|
|
15435
15376
|
tweakInput: {
|
|
15436
15377
|
tweakControlWrapper: {
|
|
15437
|
-
|
|
15378
|
+
controlWrapper: {
|
|
15438
15379
|
"--control-height": "40px",
|
|
15439
15380
|
backgroundColor: "transparent",
|
|
15440
15381
|
border: "none"
|
|
@@ -16394,7 +16335,7 @@ var useStyles$r = createThemedStyles("FilterSelect", {
|
|
|
16394
16335
|
var searchInputStyles$1 = {
|
|
16395
16336
|
tweakInput: {
|
|
16396
16337
|
tweakControlWrapper: {
|
|
16397
|
-
|
|
16338
|
+
controlWrapper: {
|
|
16398
16339
|
"--control-height": "40px",
|
|
16399
16340
|
backgroundColor: "transparent",
|
|
16400
16341
|
border: "none"
|
|
@@ -18981,7 +18922,7 @@ var useStyles$o = createThemedStyles("FiltersPaneSearch", {
|
|
|
18981
18922
|
var searchInputStyles = {
|
|
18982
18923
|
tweakInput: {
|
|
18983
18924
|
tweakControlWrapper: {
|
|
18984
|
-
|
|
18925
|
+
controlWrapper: {
|
|
18985
18926
|
"--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
|
|
18986
18927
|
backgroundColor: "transparent",
|
|
18987
18928
|
border: "none",
|
|
@@ -28463,7 +28404,7 @@ var useStyles$a = createThemedStyles("PhoneInputCountryList", {
|
|
|
28463
28404
|
});
|
|
28464
28405
|
var inputStyles$1 = {
|
|
28465
28406
|
tweakControlWrapper: {
|
|
28466
|
-
|
|
28407
|
+
controlWrapper: {
|
|
28467
28408
|
border: "none",
|
|
28468
28409
|
height: "calc(var(--control-height) - 2px)"
|
|
28469
28410
|
}
|
|
@@ -28738,7 +28679,7 @@ var useStyles$9 = createThemedStyles("PhoneInput", {
|
|
|
28738
28679
|
});
|
|
28739
28680
|
var inputStyles = {
|
|
28740
28681
|
tweakControlWrapper: {
|
|
28741
|
-
|
|
28682
|
+
controlWrapper: {
|
|
28742
28683
|
paddingLeft: COUNTRY_SELECT_WIDTH
|
|
28743
28684
|
},
|
|
28744
28685
|
label: {
|
|
@@ -30389,11 +30330,14 @@ var useStyles$4 = createThemedStyles("TextArea", {
|
|
|
30389
30330
|
margin: 0
|
|
30390
30331
|
}
|
|
30391
30332
|
}),
|
|
30333
|
+
wrapper: {
|
|
30334
|
+
width: "100%"
|
|
30335
|
+
},
|
|
30392
30336
|
autoSized: {
|
|
30393
30337
|
display: "grid",
|
|
30394
30338
|
gridTemplateRows: "minmax(0, 100%)",
|
|
30395
30339
|
"& > $textarea, &::after": {
|
|
30396
|
-
gridArea: "1 /
|
|
30340
|
+
gridArea: "1 / 1"
|
|
30397
30341
|
},
|
|
30398
30342
|
"&::after": {
|
|
30399
30343
|
extend: "textarea",
|
|
@@ -30594,9 +30538,9 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
30594
30538
|
var classes = useStyles$4({
|
|
30595
30539
|
theme: tweakStyles
|
|
30596
30540
|
});
|
|
30597
|
-
var
|
|
30541
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
30598
30542
|
tweakStyles,
|
|
30599
|
-
className: "
|
|
30543
|
+
className: "tweakWithMessages",
|
|
30600
30544
|
currentComponentName: "TextArea"
|
|
30601
30545
|
});
|
|
30602
30546
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -30621,10 +30565,10 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
30621
30565
|
setFocused(false);
|
|
30622
30566
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
30623
30567
|
};
|
|
30624
|
-
return /* @__PURE__ */ jsxs(
|
|
30568
|
+
return /* @__PURE__ */ jsxs(WithMessages, {
|
|
30625
30569
|
errorMessage,
|
|
30626
30570
|
infoMessage,
|
|
30627
|
-
tweakStyles:
|
|
30571
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
30628
30572
|
children: [
|
|
30629
30573
|
/* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
|
|
30630
30574
|
label,
|
|
@@ -30635,8 +30579,9 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
30635
30579
|
isFullWidth: true,
|
|
30636
30580
|
testId
|
|
30637
30581
|
}, controlProps), {
|
|
30638
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
|
|
30639
|
-
className: classes.autoSized,
|
|
30582
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
|
|
30583
|
+
className: clsx(classes.wrapper, _define_property$5({}, classes.autoSized, isAutoSized))
|
|
30584
|
+
}, isAutoSized && {
|
|
30640
30585
|
"data-value": value
|
|
30641
30586
|
}), {
|
|
30642
30587
|
children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
|
|
@@ -31500,7 +31445,6 @@ export {
|
|
|
31500
31445
|
Checkbox,
|
|
31501
31446
|
CloseButton,
|
|
31502
31447
|
Colors,
|
|
31503
|
-
ControlGroup,
|
|
31504
31448
|
ControlWrapper,
|
|
31505
31449
|
CssBaseline,
|
|
31506
31450
|
DEFAULT_PHONE_MASK,
|
|
@@ -31557,6 +31501,7 @@ export {
|
|
|
31557
31501
|
ThemedPreloader,
|
|
31558
31502
|
Toaster,
|
|
31559
31503
|
Tooltip,
|
|
31504
|
+
WithMessages,
|
|
31560
31505
|
WithPopup,
|
|
31561
31506
|
WithTooltip,
|
|
31562
31507
|
addDataAttributes,
|