@true-engineering/true-react-common-ui-kit 4.0.0-alpha10 → 4.0.0-alpha11
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/Button/Button.styles.d.ts +1 -1
- package/dist/components/ControlWrapper/ControlWrapper.d.ts +2 -0
- package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +2 -1
- package/dist/components/ControlWrapper/index.d.ts +1 -0
- package/dist/components/ControlWrapper/types.d.ts +3 -0
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +2 -2
- package/dist/components/Icon/icons-list.d.ts +1 -1
- package/dist/components/IconButton/IconButton.styles.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +3 -2
- package/dist/components/Input/InputBase.d.ts +2 -2
- package/dist/components/Modal/Modal.styles.d.ts +1 -1
- package/dist/components/Notification/Notification.styles.d.ts +1 -1
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +1 -1
- package/dist/components/Select/Select.styles.d.ts +2 -2
- package/dist/components/Status/Status.styles.d.ts +3 -2
- package/dist/components/Status/constants.d.ts +0 -1
- package/dist/components/Status/types.d.ts +5 -2
- package/dist/components/TextArea/TextArea.d.ts +2 -3
- package/dist/components/TextArea/index.d.ts +0 -1
- package/dist/components/TextButton/TextButton.styles.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.styles.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +116 -151
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +115 -150
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +8 -2
- package/package.json +1 -1
- package/src/components/ControlWrapper/ControlWrapper.styles.ts +2 -1
- package/src/components/ControlWrapper/ControlWrapper.tsx +8 -2
- package/src/components/ControlWrapper/index.ts +1 -0
- package/src/components/ControlWrapper/types.ts +3 -0
- package/src/components/Input/Input.tsx +3 -2
- package/src/components/Input/InputBase.tsx +21 -18
- package/src/components/Status/Status.stories.tsx +54 -1
- package/src/components/Status/Status.styles.ts +2 -37
- package/src/components/Status/constants.ts +0 -10
- package/src/components/Status/types.ts +7 -3
- package/src/components/TextArea/TextArea.tsx +26 -12
- package/src/components/TextArea/index.ts +0 -1
- package/src/types.ts +15 -3
- package/dist/components/AccountInfo/AccountInfo.stories.d.ts +0 -6
- package/dist/components/AddButton/AddButton.stories.d.ts +0 -6
- package/dist/components/Button/Button.stories.d.ts +0 -6
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -8
- package/dist/components/CloseButton/CloseButton.stories.d.ts +0 -5
- package/dist/components/Colors/Colors.stories.d.ts +0 -5
- package/dist/components/ControlWrapper/ControlWrapper.stories.d.ts +0 -6
- package/dist/components/DateInput/DateInput.stories.d.ts +0 -7
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -7
- package/dist/components/Description/Description.stories.d.ts +0 -16
- package/dist/components/FileInput/FileInput.stories.d.ts +0 -7
- package/dist/components/FileItem/FileItem.stories.d.ts +0 -8
- package/dist/components/FiltersPane/FiltersPane.stories.d.ts +0 -31
- package/dist/components/Flag/Flag.stories.d.ts +0 -12
- package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +0 -19
- package/dist/components/Icon/Icon.stories.d.ts +0 -6
- package/dist/components/IconButton/IconButton.stories.d.ts +0 -6
- package/dist/components/IncrementInput/IncrementInput.stories.d.ts +0 -6
- package/dist/components/Input/Input.stories.d.ts +0 -25
- package/dist/components/List/List.stories.d.ts +0 -5
- package/dist/components/Modal/Modal.stories.d.ts +0 -29
- package/dist/components/MoreMenu/MoreMenu.stories.d.ts +0 -6
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -13
- package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +0 -12
- package/dist/components/Notification/Notification.stories.d.ts +0 -8
- package/dist/components/NumberInput/NumberInput.stories.d.ts +0 -7
- package/dist/components/PhoneInput/PhoneInput.stories.d.ts +0 -28
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +0 -5
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -7
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -7
- package/dist/components/Select/CustomSelect.stories.d.ts +0 -11
- package/dist/components/Select/MultiSelect.stories.d.ts +0 -15
- package/dist/components/Select/Select.stories.d.ts +0 -15
- package/dist/components/Selector/Selector.stories.d.ts +0 -7
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -6
- package/dist/components/SmartInput/SmartInput.stories.d.ts +0 -18
- package/dist/components/Status/Status.stories.d.ts +0 -6
- package/dist/components/Switch/Switch.stories.d.ts +0 -16
- package/dist/components/TextArea/TextArea.stories.d.ts +0 -17
- package/dist/components/TextArea/types.d.ts +0 -2
- package/dist/components/TextButton/TextButton.stories.d.ts +0 -6
- package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +0 -12
- package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +0 -24
- package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +0 -17
- package/dist/components/Toaster/Toaster.stories.d.ts +0 -5
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -5
- package/dist/components/WithMessages/WithMessages.stories.d.ts +0 -7
- package/dist/components/WithPopup/WithPopup.stories.d.ts +0 -16
- package/dist/components/WithTooltip/WithTooltip.stories.d.ts +0 -6
- package/src/components/TextArea/types.ts +0 -6
|
@@ -1812,7 +1812,7 @@
|
|
|
1812
1812
|
}
|
|
1813
1813
|
return target;
|
|
1814
1814
|
}
|
|
1815
|
-
function ownKeys$
|
|
1815
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
1816
1816
|
var keys2 = Object.keys(object);
|
|
1817
1817
|
if (Object.getOwnPropertySymbols) {
|
|
1818
1818
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1825,12 +1825,12 @@
|
|
|
1825
1825
|
}
|
|
1826
1826
|
return keys2;
|
|
1827
1827
|
}
|
|
1828
|
-
function _object_spread_props$
|
|
1828
|
+
function _object_spread_props$W(target, source) {
|
|
1829
1829
|
source = source != null ? source : {};
|
|
1830
1830
|
if (Object.getOwnPropertyDescriptors) {
|
|
1831
1831
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1832
1832
|
} else {
|
|
1833
|
-
ownKeys$
|
|
1833
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
1834
1834
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1835
1835
|
});
|
|
1836
1836
|
}
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
var children = param.children, tweakStylesArch = param.tweakStylesArch, generateId = param.generateId;
|
|
1842
1842
|
var context = React.useContext(JssContext);
|
|
1843
1843
|
var value = React.useMemo(function() {
|
|
1844
|
-
return _object_spread_props$
|
|
1844
|
+
return _object_spread_props$W(_object_spread$17({}, context), {
|
|
1845
1845
|
tweakStylesArch: tweakStylesArch !== null && tweakStylesArch !== void 0 ? tweakStylesArch : context.tweakStylesArch,
|
|
1846
1846
|
generateId: generateId !== null && generateId !== void 0 ? generateId : context.generateId
|
|
1847
1847
|
});
|
|
@@ -1939,7 +1939,7 @@
|
|
|
1939
1939
|
}
|
|
1940
1940
|
return target;
|
|
1941
1941
|
}
|
|
1942
|
-
function ownKeys$
|
|
1942
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
1943
1943
|
var keys2 = Object.keys(object);
|
|
1944
1944
|
if (Object.getOwnPropertySymbols) {
|
|
1945
1945
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1952,12 +1952,12 @@
|
|
|
1952
1952
|
}
|
|
1953
1953
|
return keys2;
|
|
1954
1954
|
}
|
|
1955
|
-
function _object_spread_props$
|
|
1955
|
+
function _object_spread_props$V(target, source) {
|
|
1956
1956
|
source = source != null ? source : {};
|
|
1957
1957
|
if (Object.getOwnPropertyDescriptors) {
|
|
1958
1958
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1959
1959
|
} else {
|
|
1960
|
-
ownKeys$
|
|
1960
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
1961
1961
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1962
1962
|
});
|
|
1963
1963
|
}
|
|
@@ -2017,7 +2017,7 @@
|
|
|
2017
2017
|
tweakStylesStrategy,
|
|
2018
2018
|
tweakStyles
|
|
2019
2019
|
]);
|
|
2020
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
2020
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$V(_object_spread$16({}, data), {
|
|
2021
2021
|
theme
|
|
2022
2022
|
}) : data);
|
|
2023
2023
|
}
|
|
@@ -7787,7 +7787,7 @@
|
|
|
7787
7787
|
}
|
|
7788
7788
|
return target;
|
|
7789
7789
|
}
|
|
7790
|
-
function ownKeys$
|
|
7790
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7791
7791
|
var keys2 = Object.keys(object);
|
|
7792
7792
|
if (Object.getOwnPropertySymbols) {
|
|
7793
7793
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7800,12 +7800,12 @@
|
|
|
7800
7800
|
}
|
|
7801
7801
|
return keys2;
|
|
7802
7802
|
}
|
|
7803
|
-
function _object_spread_props$
|
|
7803
|
+
function _object_spread_props$U(target, source) {
|
|
7804
7804
|
source = source != null ? source : {};
|
|
7805
7805
|
if (Object.getOwnPropertyDescriptors) {
|
|
7806
7806
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7807
7807
|
} else {
|
|
7808
|
-
ownKeys$
|
|
7808
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7809
7809
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7810
7810
|
});
|
|
7811
7811
|
}
|
|
@@ -7837,12 +7837,12 @@
|
|
|
7837
7837
|
}, path), index);
|
|
7838
7838
|
}),
|
|
7839
7839
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7840
|
-
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$
|
|
7840
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$U(_object_spread$13({}, rect), {
|
|
7841
7841
|
key: index
|
|
7842
7842
|
}));
|
|
7843
7843
|
}),
|
|
7844
7844
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7845
|
-
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$
|
|
7845
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$U(_object_spread$13({}, circle), {
|
|
7846
7846
|
key: index
|
|
7847
7847
|
}));
|
|
7848
7848
|
})
|
|
@@ -7883,7 +7883,7 @@
|
|
|
7883
7883
|
}
|
|
7884
7884
|
return target;
|
|
7885
7885
|
}
|
|
7886
|
-
function ownKeys$
|
|
7886
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
7887
7887
|
var keys2 = Object.keys(object);
|
|
7888
7888
|
if (Object.getOwnPropertySymbols) {
|
|
7889
7889
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7896,12 +7896,12 @@
|
|
|
7896
7896
|
}
|
|
7897
7897
|
return keys2;
|
|
7898
7898
|
}
|
|
7899
|
-
function _object_spread_props$
|
|
7899
|
+
function _object_spread_props$T(target, source) {
|
|
7900
7900
|
source = source != null ? source : {};
|
|
7901
7901
|
if (Object.getOwnPropertyDescriptors) {
|
|
7902
7902
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7903
7903
|
} else {
|
|
7904
|
-
ownKeys$
|
|
7904
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
7905
7905
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7906
7906
|
});
|
|
7907
7907
|
}
|
|
@@ -7912,7 +7912,7 @@
|
|
|
7912
7912
|
var classes = useStyles$W({
|
|
7913
7913
|
theme: tweakStyles
|
|
7914
7914
|
});
|
|
7915
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7915
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$12({
|
|
7916
7916
|
className: classes.root
|
|
7917
7917
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7918
7918
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -8049,7 +8049,7 @@
|
|
|
8049
8049
|
}
|
|
8050
8050
|
return target;
|
|
8051
8051
|
}
|
|
8052
|
-
function ownKeys$
|
|
8052
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8053
8053
|
var keys2 = Object.keys(object);
|
|
8054
8054
|
if (Object.getOwnPropertySymbols) {
|
|
8055
8055
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8062,12 +8062,12 @@
|
|
|
8062
8062
|
}
|
|
8063
8063
|
return keys2;
|
|
8064
8064
|
}
|
|
8065
|
-
function _object_spread_props$
|
|
8065
|
+
function _object_spread_props$S(target, source) {
|
|
8066
8066
|
source = source != null ? source : {};
|
|
8067
8067
|
if (Object.getOwnPropertyDescriptors) {
|
|
8068
8068
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8069
8069
|
} else {
|
|
8070
|
-
ownKeys$
|
|
8070
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8071
8071
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8072
8072
|
});
|
|
8073
8073
|
}
|
|
@@ -8173,14 +8173,14 @@
|
|
|
8173
8173
|
var _obj2;
|
|
8174
8174
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8175
8175
|
children: [
|
|
8176
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8176
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$11({
|
|
8177
8177
|
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))
|
|
8178
8178
|
}, referenceProps, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
8179
8179
|
children: triggerElement
|
|
8180
8180
|
})) : triggerElement,
|
|
8181
8181
|
isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
8182
8182
|
root: shouldRenderInBody ? document.body : refs.reference.current,
|
|
8183
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8183
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$11({
|
|
8184
8184
|
ref: refs.setFloating,
|
|
8185
8185
|
style: floatingStyles,
|
|
8186
8186
|
className: classes.popup
|
|
@@ -8188,7 +8188,7 @@
|
|
|
8188
8188
|
children: /* @__PURE__ */ jsxs("div", {
|
|
8189
8189
|
className: classes["dropdown-".concat(status)],
|
|
8190
8190
|
children: [
|
|
8191
|
-
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$
|
|
8191
|
+
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$S(_object_spread$11({}, arrowProps), {
|
|
8192
8192
|
ref: arrowRef,
|
|
8193
8193
|
context,
|
|
8194
8194
|
className: classes.arrow
|
|
@@ -8274,7 +8274,7 @@
|
|
|
8274
8274
|
}
|
|
8275
8275
|
return target;
|
|
8276
8276
|
}
|
|
8277
|
-
function ownKeys$
|
|
8277
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8278
8278
|
var keys2 = Object.keys(object);
|
|
8279
8279
|
if (Object.getOwnPropertySymbols) {
|
|
8280
8280
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8287,12 +8287,12 @@
|
|
|
8287
8287
|
}
|
|
8288
8288
|
return keys2;
|
|
8289
8289
|
}
|
|
8290
|
-
function _object_spread_props$
|
|
8290
|
+
function _object_spread_props$R(target, source) {
|
|
8291
8291
|
source = source != null ? source : {};
|
|
8292
8292
|
if (Object.getOwnPropertyDescriptors) {
|
|
8293
8293
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8294
8294
|
} else {
|
|
8295
|
-
ownKeys$
|
|
8295
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8296
8296
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8297
8297
|
});
|
|
8298
8298
|
}
|
|
@@ -8309,9 +8309,9 @@
|
|
|
8309
8309
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8310
8310
|
className: classes.spacer
|
|
8311
8311
|
}),
|
|
8312
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8312
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$10({
|
|
8313
8313
|
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))
|
|
8314
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8314
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$R(_object_spread$10({}, data), {
|
|
8315
8315
|
disabled: isDisabled ? true : void 0
|
|
8316
8316
|
}))), {
|
|
8317
8317
|
children: [
|
|
@@ -8386,7 +8386,7 @@
|
|
|
8386
8386
|
}
|
|
8387
8387
|
return target;
|
|
8388
8388
|
}
|
|
8389
|
-
function ownKeys$
|
|
8389
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8390
8390
|
var keys2 = Object.keys(object);
|
|
8391
8391
|
if (Object.getOwnPropertySymbols) {
|
|
8392
8392
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8399,12 +8399,12 @@
|
|
|
8399
8399
|
}
|
|
8400
8400
|
return keys2;
|
|
8401
8401
|
}
|
|
8402
|
-
function _object_spread_props$
|
|
8402
|
+
function _object_spread_props$Q(target, source) {
|
|
8403
8403
|
source = source != null ? source : {};
|
|
8404
8404
|
if (Object.getOwnPropertyDescriptors) {
|
|
8405
8405
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8406
8406
|
} else {
|
|
8407
|
-
ownKeys$
|
|
8407
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8408
8408
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8409
8409
|
});
|
|
8410
8410
|
}
|
|
@@ -8426,11 +8426,11 @@
|
|
|
8426
8426
|
var isHidden = param2.isHidden;
|
|
8427
8427
|
return !isHidden;
|
|
8428
8428
|
});
|
|
8429
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8429
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$Q(_object_spread$$({
|
|
8430
8430
|
className: classes.root
|
|
8431
8431
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8432
8432
|
children: filteredItems.map(function(item, i) {
|
|
8433
|
-
var itemProps = _object_spread_props$
|
|
8433
|
+
var itemProps = _object_spread_props$Q(_object_spread$$({
|
|
8434
8434
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
8435
8435
|
}, item), {
|
|
8436
8436
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8448,7 +8448,7 @@
|
|
|
8448
8448
|
shouldRenderInBody: false,
|
|
8449
8449
|
trigger: function(param2) {
|
|
8450
8450
|
var triggerProps = param2.triggerProps;
|
|
8451
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8451
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$Q(_object_spread$$({}, itemProps), {
|
|
8452
8452
|
isFocused: triggerProps.isActive
|
|
8453
8453
|
}));
|
|
8454
8454
|
},
|
|
@@ -8606,7 +8606,7 @@
|
|
|
8606
8606
|
}
|
|
8607
8607
|
return target;
|
|
8608
8608
|
}
|
|
8609
|
-
function ownKeys$
|
|
8609
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8610
8610
|
var keys2 = Object.keys(object);
|
|
8611
8611
|
if (Object.getOwnPropertySymbols) {
|
|
8612
8612
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8619,12 +8619,12 @@
|
|
|
8619
8619
|
}
|
|
8620
8620
|
return keys2;
|
|
8621
8621
|
}
|
|
8622
|
-
function _object_spread_props$
|
|
8622
|
+
function _object_spread_props$P(target, source) {
|
|
8623
8623
|
source = source != null ? source : {};
|
|
8624
8624
|
if (Object.getOwnPropertyDescriptors) {
|
|
8625
8625
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8626
8626
|
} else {
|
|
8627
|
-
ownKeys$
|
|
8627
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8628
8628
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8629
8629
|
});
|
|
8630
8630
|
}
|
|
@@ -8668,7 +8668,7 @@
|
|
|
8668
8668
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8669
8669
|
return setIsMenuOpen(false);
|
|
8670
8670
|
}, nameRef);
|
|
8671
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8671
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$P(_object_spread$Z({
|
|
8672
8672
|
className: classes.root
|
|
8673
8673
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8674
8674
|
children: [
|
|
@@ -8772,7 +8772,7 @@
|
|
|
8772
8772
|
}
|
|
8773
8773
|
return target;
|
|
8774
8774
|
}
|
|
8775
|
-
function ownKeys$
|
|
8775
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
8776
8776
|
var keys2 = Object.keys(object);
|
|
8777
8777
|
if (Object.getOwnPropertySymbols) {
|
|
8778
8778
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8785,12 +8785,12 @@
|
|
|
8785
8785
|
}
|
|
8786
8786
|
return keys2;
|
|
8787
8787
|
}
|
|
8788
|
-
function _object_spread_props$
|
|
8788
|
+
function _object_spread_props$O(target, source) {
|
|
8789
8789
|
source = source != null ? source : {};
|
|
8790
8790
|
if (Object.getOwnPropertyDescriptors) {
|
|
8791
8791
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8792
8792
|
} else {
|
|
8793
|
-
ownKeys$
|
|
8793
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
8794
8794
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8795
8795
|
});
|
|
8796
8796
|
}
|
|
@@ -8801,7 +8801,7 @@
|
|
|
8801
8801
|
var classes = useStyles$R({
|
|
8802
8802
|
theme: tweakStyles
|
|
8803
8803
|
});
|
|
8804
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8804
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$Y({
|
|
8805
8805
|
type,
|
|
8806
8806
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8807
8807
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8995,7 +8995,7 @@
|
|
|
8995
8995
|
}
|
|
8996
8996
|
return target;
|
|
8997
8997
|
}
|
|
8998
|
-
function ownKeys$
|
|
8998
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
8999
8999
|
var keys2 = Object.keys(object);
|
|
9000
9000
|
if (Object.getOwnPropertySymbols) {
|
|
9001
9001
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9008,12 +9008,12 @@
|
|
|
9008
9008
|
}
|
|
9009
9009
|
return keys2;
|
|
9010
9010
|
}
|
|
9011
|
-
function _object_spread_props$
|
|
9011
|
+
function _object_spread_props$N(target, source) {
|
|
9012
9012
|
source = source != null ? source : {};
|
|
9013
9013
|
if (Object.getOwnPropertyDescriptors) {
|
|
9014
9014
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9015
9015
|
} else {
|
|
9016
|
-
ownKeys$
|
|
9016
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9017
9017
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9018
9018
|
});
|
|
9019
9019
|
}
|
|
@@ -9034,7 +9034,7 @@
|
|
|
9034
9034
|
className: "tweakSvgPreloader",
|
|
9035
9035
|
currentComponentName: "ThemedPreloader"
|
|
9036
9036
|
});
|
|
9037
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9037
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$X({
|
|
9038
9038
|
className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
|
|
9039
9039
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9040
9040
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
@@ -9244,7 +9244,7 @@
|
|
|
9244
9244
|
}
|
|
9245
9245
|
return target;
|
|
9246
9246
|
}
|
|
9247
|
-
function ownKeys$
|
|
9247
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9248
9248
|
var keys2 = Object.keys(object);
|
|
9249
9249
|
if (Object.getOwnPropertySymbols) {
|
|
9250
9250
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9257,12 +9257,12 @@
|
|
|
9257
9257
|
}
|
|
9258
9258
|
return keys2;
|
|
9259
9259
|
}
|
|
9260
|
-
function _object_spread_props$
|
|
9260
|
+
function _object_spread_props$M(target, source) {
|
|
9261
9261
|
source = source != null ? source : {};
|
|
9262
9262
|
if (Object.getOwnPropertyDescriptors) {
|
|
9263
9263
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9264
9264
|
} else {
|
|
9265
|
-
ownKeys$
|
|
9265
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9266
9266
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9267
9267
|
});
|
|
9268
9268
|
}
|
|
@@ -9332,7 +9332,7 @@
|
|
|
9332
9332
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
9333
9333
|
var hasNoAction = isDisabled || isLoading;
|
|
9334
9334
|
var _obj2, _obj1;
|
|
9335
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9335
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$M(_object_spread$W({
|
|
9336
9336
|
ref,
|
|
9337
9337
|
type,
|
|
9338
9338
|
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)),
|
|
@@ -9430,7 +9430,7 @@
|
|
|
9430
9430
|
}
|
|
9431
9431
|
return target;
|
|
9432
9432
|
}
|
|
9433
|
-
function ownKeys$
|
|
9433
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9434
9434
|
var keys2 = Object.keys(object);
|
|
9435
9435
|
if (Object.getOwnPropertySymbols) {
|
|
9436
9436
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9443,12 +9443,12 @@
|
|
|
9443
9443
|
}
|
|
9444
9444
|
return keys2;
|
|
9445
9445
|
}
|
|
9446
|
-
function _object_spread_props$
|
|
9446
|
+
function _object_spread_props$L(target, source) {
|
|
9447
9447
|
source = source != null ? source : {};
|
|
9448
9448
|
if (Object.getOwnPropertyDescriptors) {
|
|
9449
9449
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9450
9450
|
} else {
|
|
9451
|
-
ownKeys$
|
|
9451
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9452
9452
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9453
9453
|
});
|
|
9454
9454
|
}
|
|
@@ -9468,7 +9468,7 @@
|
|
|
9468
9468
|
}, event);
|
|
9469
9469
|
};
|
|
9470
9470
|
var _obj2;
|
|
9471
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9471
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$L(_object_spread$V({
|
|
9472
9472
|
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))
|
|
9473
9473
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9474
9474
|
children: [
|
|
@@ -9549,7 +9549,7 @@
|
|
|
9549
9549
|
}
|
|
9550
9550
|
return target;
|
|
9551
9551
|
}
|
|
9552
|
-
function ownKeys$
|
|
9552
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9553
9553
|
var keys2 = Object.keys(object);
|
|
9554
9554
|
if (Object.getOwnPropertySymbols) {
|
|
9555
9555
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9562,12 +9562,12 @@
|
|
|
9562
9562
|
}
|
|
9563
9563
|
return keys2;
|
|
9564
9564
|
}
|
|
9565
|
-
function _object_spread_props$
|
|
9565
|
+
function _object_spread_props$K(target, source) {
|
|
9566
9566
|
source = source != null ? source : {};
|
|
9567
9567
|
if (Object.getOwnPropertyDescriptors) {
|
|
9568
9568
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9569
9569
|
} else {
|
|
9570
|
-
ownKeys$
|
|
9570
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9571
9571
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9572
9572
|
});
|
|
9573
9573
|
}
|
|
@@ -9578,7 +9578,7 @@
|
|
|
9578
9578
|
var classes = useStyles$L({
|
|
9579
9579
|
theme: tweakStyles
|
|
9580
9580
|
});
|
|
9581
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9581
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$K(_object_spread$U({
|
|
9582
9582
|
type: "button",
|
|
9583
9583
|
className: classes.root,
|
|
9584
9584
|
onClick: onClose
|
|
@@ -9819,7 +9819,7 @@
|
|
|
9819
9819
|
}
|
|
9820
9820
|
return target;
|
|
9821
9821
|
}
|
|
9822
|
-
function ownKeys$
|
|
9822
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
9823
9823
|
var keys2 = Object.keys(object);
|
|
9824
9824
|
if (Object.getOwnPropertySymbols) {
|
|
9825
9825
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9832,12 +9832,12 @@
|
|
|
9832
9832
|
}
|
|
9833
9833
|
return keys2;
|
|
9834
9834
|
}
|
|
9835
|
-
function _object_spread_props$
|
|
9835
|
+
function _object_spread_props$J(target, source) {
|
|
9836
9836
|
source = source != null ? source : {};
|
|
9837
9837
|
if (Object.getOwnPropertyDescriptors) {
|
|
9838
9838
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9839
9839
|
} else {
|
|
9840
|
-
ownKeys$
|
|
9840
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
9841
9841
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9842
9842
|
});
|
|
9843
9843
|
}
|
|
@@ -9851,7 +9851,7 @@
|
|
|
9851
9851
|
var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
|
|
9852
9852
|
var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9853
9853
|
var _obj2;
|
|
9854
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9854
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$S({
|
|
9855
9855
|
ref,
|
|
9856
9856
|
className: classes.withMessages,
|
|
9857
9857
|
"data-invalid": shouldShowError ? true : void 0
|
|
@@ -9864,12 +9864,12 @@
|
|
|
9864
9864
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9865
9865
|
className: classes.message,
|
|
9866
9866
|
children: [
|
|
9867
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9867
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$S({
|
|
9868
9868
|
className: classes.error
|
|
9869
9869
|
}, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
|
|
9870
9870
|
children: errorMessage
|
|
9871
9871
|
})),
|
|
9872
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9872
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$S({
|
|
9873
9873
|
className: classes.info
|
|
9874
9874
|
}, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
|
|
9875
9875
|
children: infoMessage
|
|
@@ -10059,7 +10059,7 @@
|
|
|
10059
10059
|
}
|
|
10060
10060
|
return target;
|
|
10061
10061
|
}
|
|
10062
|
-
function ownKeys$
|
|
10062
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10063
10063
|
var keys2 = Object.keys(object);
|
|
10064
10064
|
if (Object.getOwnPropertySymbols) {
|
|
10065
10065
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10072,39 +10072,38 @@
|
|
|
10072
10072
|
}
|
|
10073
10073
|
return keys2;
|
|
10074
10074
|
}
|
|
10075
|
-
function _object_spread_props$
|
|
10075
|
+
function _object_spread_props$I(target, source) {
|
|
10076
10076
|
source = source != null ? source : {};
|
|
10077
10077
|
if (Object.getOwnPropertyDescriptors) {
|
|
10078
10078
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10079
10079
|
} else {
|
|
10080
|
-
ownKeys$
|
|
10080
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10081
10081
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10082
10082
|
});
|
|
10083
10083
|
}
|
|
10084
10084
|
return target;
|
|
10085
10085
|
}
|
|
10086
10086
|
var ControlWrapper = function(param) {
|
|
10087
|
-
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;
|
|
10087
|
+
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, size = param.size, testId = param.testId, children = param.children, tweakStyles = param.tweakStyles, data = param.data, onIconClick = param.onIconClick, onClear = param.onClear;
|
|
10088
10088
|
var classes = useStyles$H({
|
|
10089
10089
|
theme: tweakStyles
|
|
10090
10090
|
});
|
|
10091
10091
|
var hasEndIcon = !isLoading && trueReactPlatformHelpers.isReactNodeNotEmpty(icon);
|
|
10092
10092
|
var hasClearButton = !isDisabled && !isLoading && hasValue && trueReactPlatformHelpers.isNotEmpty(onClear);
|
|
10093
10093
|
var hasControls = hasEndIcon || hasClearButton || isLoading;
|
|
10094
|
+
var isActive = isFocused || hasValue;
|
|
10094
10095
|
var tweakPreloaderStyles = useTweakStyles({
|
|
10095
10096
|
tweakStyles,
|
|
10096
10097
|
className: "tweakPreloader",
|
|
10097
10098
|
currentComponentName: "ControlWrapper"
|
|
10098
10099
|
});
|
|
10099
10100
|
var _obj2, _obj1, _obj22;
|
|
10100
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10101
|
-
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && [
|
|
10102
|
-
classes["placement-".concat(groupPlacement)]
|
|
10103
|
-
], (_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))
|
|
10101
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$I(_object_spread$R({
|
|
10102
|
+
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && classes["placement-".concat(groupPlacement)], trueReactPlatformHelpers.isNotEmpty(size) && classes[size], (_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))
|
|
10104
10103
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
10105
10104
|
children: [
|
|
10106
10105
|
trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
10107
|
-
className: clsx(classes.label, (_obj1 = {}, _define_property$T(_obj1, classes.requiredLabel, isRequired), _define_property$T(_obj1, classes.disabledLabel, isDisabled), _define_property$T(_obj1, classes.activeLabel,
|
|
10106
|
+
className: clsx(classes.label, (_obj1 = {}, _define_property$T(_obj1, classes.requiredLabel, isRequired), _define_property$T(_obj1, classes.disabledLabel, isDisabled), _define_property$T(_obj1, classes.activeLabel, isActive), _obj1)),
|
|
10108
10107
|
children: label
|
|
10109
10108
|
}),
|
|
10110
10109
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -10114,7 +10113,7 @@
|
|
|
10114
10113
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
10115
10114
|
className: classes.controls,
|
|
10116
10115
|
children: [
|
|
10117
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10116
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$R({
|
|
10118
10117
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
10119
10118
|
}, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
|
|
10120
10119
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10124,7 +10123,7 @@
|
|
|
10124
10123
|
})
|
|
10125
10124
|
})
|
|
10126
10125
|
})),
|
|
10127
|
-
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10126
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$R({
|
|
10128
10127
|
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))
|
|
10129
10128
|
}, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
|
|
10130
10129
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10132,7 +10131,7 @@
|
|
|
10132
10131
|
children: renderIcon(icon)
|
|
10133
10132
|
})
|
|
10134
10133
|
})),
|
|
10135
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10134
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$R({
|
|
10136
10135
|
className: clsx(classes.icon, classes.loader)
|
|
10137
10136
|
}, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
|
|
10138
10137
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10322,30 +10321,6 @@
|
|
|
10322
10321
|
}
|
|
10323
10322
|
return target;
|
|
10324
10323
|
}
|
|
10325
|
-
function ownKeys$I(object, enumerableOnly) {
|
|
10326
|
-
var keys2 = Object.keys(object);
|
|
10327
|
-
if (Object.getOwnPropertySymbols) {
|
|
10328
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
10329
|
-
if (enumerableOnly) {
|
|
10330
|
-
symbols = symbols.filter(function(sym) {
|
|
10331
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10332
|
-
});
|
|
10333
|
-
}
|
|
10334
|
-
keys2.push.apply(keys2, symbols);
|
|
10335
|
-
}
|
|
10336
|
-
return keys2;
|
|
10337
|
-
}
|
|
10338
|
-
function _object_spread_props$I(target, source) {
|
|
10339
|
-
source = source != null ? source : {};
|
|
10340
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
10341
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10342
|
-
} else {
|
|
10343
|
-
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10344
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10345
|
-
});
|
|
10346
|
-
}
|
|
10347
|
-
return target;
|
|
10348
|
-
}
|
|
10349
10324
|
function _object_without_properties$i(source, excluded) {
|
|
10350
10325
|
if (source == null)
|
|
10351
10326
|
return {};
|
|
@@ -10497,7 +10472,7 @@
|
|
|
10497
10472
|
}
|
|
10498
10473
|
}
|
|
10499
10474
|
var InputBase = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10500
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, placeholder = _param.placeholder, label = _param.label, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, autoComplete = _param.autoComplete, initialInputMode = _param.inputMode, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, isActive = _param.isActive, isClearable = _param.isClearable, isAutoSized = _param.isAutoSized, name = _param.name, tweakStyles = _param.tweakStyles, maxLength = _param.maxLength, shouldFocusOnMount = _param.shouldFocusOnMount, units = _param.units, testId = _param.testId, tabIndex = _param.tabIndex, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, onKeyDown = _param.onKeyDown, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask,
|
|
10475
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, placeholder = _param.placeholder, label = _param.label, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, autoComplete = _param.autoComplete, initialInputMode = _param.inputMode, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, isActive = _param.isActive, isClearable = _param.isClearable, isAutoSized = _param.isAutoSized, name = _param.name, tweakStyles = _param.tweakStyles, maxLength = _param.maxLength, shouldFocusOnMount = _param.shouldFocusOnMount, units = _param.units, testId = _param.testId, tabIndex = _param.tabIndex, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, onKeyDown = _param.onKeyDown, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, beforeMaskedStateChange = _param.beforeMaskedStateChange, data = _param.data, groupPlacement = _param.groupPlacement, icon = _param.icon, isLoading = _param.isLoading, isRequired = _param.isRequired, size = _param.size, onIconClick = _param.onIconClick, inputProps = _object_without_properties$i(_param, [
|
|
10501
10476
|
"value",
|
|
10502
10477
|
"placeholder",
|
|
10503
10478
|
"label",
|
|
@@ -10517,6 +10492,7 @@
|
|
|
10517
10492
|
"units",
|
|
10518
10493
|
"testId",
|
|
10519
10494
|
"tabIndex",
|
|
10495
|
+
"shouldAlwaysShowPlaceholder",
|
|
10520
10496
|
"onChange",
|
|
10521
10497
|
"onPaste",
|
|
10522
10498
|
"onFocus",
|
|
@@ -10525,8 +10501,14 @@
|
|
|
10525
10501
|
"mask",
|
|
10526
10502
|
"maskPlaceholder",
|
|
10527
10503
|
"alwaysShowMask",
|
|
10528
|
-
"
|
|
10529
|
-
"
|
|
10504
|
+
"beforeMaskedStateChange",
|
|
10505
|
+
"data",
|
|
10506
|
+
"groupPlacement",
|
|
10507
|
+
"icon",
|
|
10508
|
+
"isLoading",
|
|
10509
|
+
"isRequired",
|
|
10510
|
+
"size",
|
|
10511
|
+
"onIconClick"
|
|
10530
10512
|
]);
|
|
10531
10513
|
var classes = useStyles$G({
|
|
10532
10514
|
theme: tweakStyles
|
|
@@ -10612,7 +10594,7 @@
|
|
|
10612
10594
|
onFocus: handleFocus,
|
|
10613
10595
|
onBlur: handleBlur,
|
|
10614
10596
|
onChange: handleChange
|
|
10615
|
-
}, trueReactPlatformHelpers.addDataTestId(testId));
|
|
10597
|
+
}, trueReactPlatformHelpers.addDataTestId(testId), inputProps);
|
|
10616
10598
|
React.useEffect(function() {
|
|
10617
10599
|
if (shouldFocusOnMount) {
|
|
10618
10600
|
var _inputRef_current;
|
|
@@ -10641,7 +10623,7 @@
|
|
|
10641
10623
|
})
|
|
10642
10624
|
]
|
|
10643
10625
|
});
|
|
10644
|
-
return /* @__PURE__ */ jsx(ControlWrapper,
|
|
10626
|
+
return /* @__PURE__ */ jsx(ControlWrapper, {
|
|
10645
10627
|
label,
|
|
10646
10628
|
isDisabled,
|
|
10647
10629
|
isFocused: hasFocus,
|
|
@@ -10649,13 +10631,19 @@
|
|
|
10649
10631
|
hasValue: hasValue || hasPlaceholder,
|
|
10650
10632
|
isFullWidth: !isAutoSized,
|
|
10651
10633
|
tweakStyles: tweakControlWrapperStyles,
|
|
10652
|
-
onClear: isClearable && hasValue ? handleInputClear : void 0
|
|
10653
|
-
|
|
10634
|
+
onClear: isClearable && hasValue ? handleInputClear : void 0,
|
|
10635
|
+
data,
|
|
10636
|
+
groupPlacement,
|
|
10637
|
+
icon,
|
|
10638
|
+
isLoading,
|
|
10639
|
+
isRequired,
|
|
10640
|
+
onIconClick,
|
|
10641
|
+
size,
|
|
10654
10642
|
children: hasUnits || isAutoSized ? /* @__PURE__ */ jsx("div", {
|
|
10655
10643
|
className: classes.autoSizeWrapper,
|
|
10656
10644
|
children: inputContent
|
|
10657
10645
|
}) : inputContent
|
|
10658
|
-
})
|
|
10646
|
+
});
|
|
10659
10647
|
});
|
|
10660
10648
|
function _define_property$R(obj, key, value) {
|
|
10661
10649
|
if (key in obj) {
|
|
@@ -30936,34 +30924,6 @@
|
|
|
30936
30924
|
borderRadius: 4
|
|
30937
30925
|
}
|
|
30938
30926
|
},
|
|
30939
|
-
green: {
|
|
30940
|
-
"--status-background": rgba("#D4E3AC", 0.5),
|
|
30941
|
-
"--status-color": "#6F990F"
|
|
30942
|
-
},
|
|
30943
|
-
blue: {
|
|
30944
|
-
"--status-background": rgba("#AABFFC", 0.4),
|
|
30945
|
-
"--status-color": "#4C6EBF"
|
|
30946
|
-
},
|
|
30947
|
-
grey: {
|
|
30948
|
-
"--status-background": rgba("#95A0B3", 0.25),
|
|
30949
|
-
"--status-color": "#7A869A"
|
|
30950
|
-
},
|
|
30951
|
-
orange: {
|
|
30952
|
-
"--status-background": rgba("#FCD3A9", 0.5),
|
|
30953
|
-
"--status-color": "#E5741C"
|
|
30954
|
-
},
|
|
30955
|
-
red: {
|
|
30956
|
-
"--status-background": rgba("#F7949A", 0.25),
|
|
30957
|
-
"--status-color": "#F14D56"
|
|
30958
|
-
},
|
|
30959
|
-
teal: {
|
|
30960
|
-
"--status-background": rgba("#8CE3EA", 0.4),
|
|
30961
|
-
"--status-color": "#0092A6"
|
|
30962
|
-
},
|
|
30963
|
-
violet: {
|
|
30964
|
-
"--status-background": rgba("#BEABE0", 0.4),
|
|
30965
|
-
"--status-color": "#7450B2"
|
|
30966
|
-
},
|
|
30967
30927
|
custom: {}
|
|
30968
30928
|
});
|
|
30969
30929
|
function _define_property$8(obj, key, value) {
|
|
@@ -31450,14 +31410,12 @@
|
|
|
31450
31410
|
}
|
|
31451
31411
|
var DEFAULT_VALUE = "";
|
|
31452
31412
|
var TextArea = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
31453
|
-
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = _param.label, placeholder = _param.placeholder,
|
|
31413
|
+
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = _param.label, placeholder = _param.placeholder, name = _param.name;
|
|
31454
31414
|
_param.shouldFocusOnMount;
|
|
31455
|
-
var _param_hasCounter = _param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, shouldTrimAfterMaxLength = _param.shouldTrimAfterMaxLength, _param_isAutoSized = _param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? true : _param_isAutoSized, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, isDisabled = _param.isDisabled, isActive = _param.isActive, maxLength = _param.maxLength, rows = _param.rows, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur,
|
|
31415
|
+
var _param_hasCounter = _param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, shouldTrimAfterMaxLength = _param.shouldTrimAfterMaxLength, _param_isAutoSized = _param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? true : _param_isAutoSized, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, isDisabled = _param.isDisabled, isActive = _param.isActive, maxLength = _param.maxLength, rows = _param.rows, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, isRequired = _param.isRequired, size = _param.size, textAreaProps = _object_without_properties$3(_param, [
|
|
31456
31416
|
"value",
|
|
31457
31417
|
"label",
|
|
31458
31418
|
"placeholder",
|
|
31459
|
-
"infoMessage",
|
|
31460
|
-
"errorMessage",
|
|
31461
31419
|
"name",
|
|
31462
31420
|
"shouldFocusOnMount",
|
|
31463
31421
|
"hasCounter",
|
|
@@ -31474,7 +31432,12 @@
|
|
|
31474
31432
|
"onChange",
|
|
31475
31433
|
"onPaste",
|
|
31476
31434
|
"onFocus",
|
|
31477
|
-
"onBlur"
|
|
31435
|
+
"onBlur",
|
|
31436
|
+
"infoMessage",
|
|
31437
|
+
"errorMessage",
|
|
31438
|
+
"isInvalid",
|
|
31439
|
+
"isRequired",
|
|
31440
|
+
"size"
|
|
31478
31441
|
]);
|
|
31479
31442
|
var classes = useStyles$4({
|
|
31480
31443
|
theme: tweakStyles
|
|
@@ -31492,7 +31455,7 @@
|
|
|
31492
31455
|
});
|
|
31493
31456
|
var _useState = _sliced_to_array(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
31494
31457
|
var hasFocus = isFocused || isActive;
|
|
31495
|
-
var hasValue = value
|
|
31458
|
+
var hasValue = trueReactPlatformHelpers.isArrayLikeNotEmpty(value);
|
|
31496
31459
|
var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
|
|
31497
31460
|
var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
31498
31461
|
var handleChange = function(event) {
|
|
@@ -31512,19 +31475,21 @@
|
|
|
31512
31475
|
tweakStyles: tweakWithMessagesStyles,
|
|
31513
31476
|
testId: trueReactPlatformHelpers.getTestId(testId, "wrapper"),
|
|
31514
31477
|
children: [
|
|
31515
|
-
/* @__PURE__ */ jsx(ControlWrapper,
|
|
31478
|
+
/* @__PURE__ */ jsx(ControlWrapper, {
|
|
31516
31479
|
label,
|
|
31517
31480
|
tweakStyles: tweakControlWrapperStyles,
|
|
31518
31481
|
isFocused: hasFocus,
|
|
31519
31482
|
isDisabled,
|
|
31520
31483
|
hasValue,
|
|
31521
|
-
|
|
31522
|
-
|
|
31484
|
+
isInvalid,
|
|
31485
|
+
isRequired,
|
|
31486
|
+
size,
|
|
31487
|
+
isFullWidth: true,
|
|
31523
31488
|
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
|
|
31524
31489
|
className: clsx(classes.wrapper, _define_property$5({}, classes.autoSized, isAutoSized))
|
|
31525
|
-
}, isAutoSized && {
|
|
31526
|
-
|
|
31527
|
-
}), {
|
|
31490
|
+
}, isAutoSized && trueReactPlatformHelpers.addDataAttributes({
|
|
31491
|
+
value
|
|
31492
|
+
})), {
|
|
31528
31493
|
children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
|
|
31529
31494
|
ref,
|
|
31530
31495
|
className: classes.textarea,
|
|
@@ -31538,9 +31503,9 @@
|
|
|
31538
31503
|
onFocus: handleFocus,
|
|
31539
31504
|
onBlur: handleBlur,
|
|
31540
31505
|
onChange: handleChange
|
|
31541
|
-
}, trueReactPlatformHelpers.addDataAttributes(data, testId)))
|
|
31506
|
+
}, trueReactPlatformHelpers.addDataAttributes(data, testId), textAreaProps))
|
|
31542
31507
|
}))
|
|
31543
|
-
})
|
|
31508
|
+
}),
|
|
31544
31509
|
hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
|
|
31545
31510
|
className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
|
|
31546
31511
|
children: [
|