@true-engineering/true-react-common-ui-kit 3.45.1 → 4.0.0-alpha0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -40
- package/dist/components/CloseButton/CloseButton.d.ts +1 -1
- package/dist/components/ControlGroup/ControlGroup.d.ts +10 -0
- package/dist/components/ControlGroup/ControlGroup.stories.d.ts +7 -0
- package/dist/components/ControlGroup/ControlGroup.styles.d.ts +3 -0
- package/dist/components/ControlGroup/index.d.ts +2 -0
- package/dist/components/ControlWrapper/ControlWrapper.d.ts +27 -0
- package/dist/components/ControlWrapper/ControlWrapper.stories.d.ts +6 -0
- package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +6 -0
- package/dist/components/ControlWrapper/index.d.ts +2 -0
- package/dist/components/DateInput/DateInput.d.ts +3 -3
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +1 -1
- package/dist/components/DatePicker/types.d.ts +1 -1
- package/dist/components/FiltersPane/FiltersPane.stories.d.ts +1 -2
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +1 -1
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +1 -2
- package/dist/components/Input/Input.d.ts +5 -52
- package/dist/components/Input/Input.stories.d.ts +4 -13
- package/dist/components/Input/Input.styles.d.ts +5 -4
- package/dist/components/Input/InputBase.d.ts +24 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/types.d.ts +3 -4
- package/dist/components/NumberInput/NumberInput.d.ts +3 -3
- package/dist/components/PhoneInput/PhoneInput.d.ts +3 -3
- package/dist/components/PhoneInput/PhoneInput.stories.d.ts +2 -2
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +3 -2
- package/dist/components/PhoneInput/types.d.ts +2 -0
- package/dist/components/SearchInput/SearchInput.d.ts +1 -3
- package/dist/components/SearchInput/SearchInput.stories.d.ts +11 -1
- package/dist/components/SearchInput/SearchInput.styles.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +5 -5
- package/dist/components/Select/Select.styles.d.ts +17 -16
- package/dist/components/Select/types.d.ts +3 -0
- package/dist/components/SmartInput/SmartInput.d.ts +3 -3
- package/dist/components/TextArea/TextArea.d.ts +5 -14
- package/dist/components/TextArea/TextArea.styles.d.ts +8 -2
- package/dist/components/WithPopup/WithPopup.d.ts +3 -10
- package/dist/components/WithPopup/WithPopup.styles.d.ts +1 -1
- package/dist/components/WithPopup/types.d.ts +0 -3
- package/dist/components/WithTooltip/WithTooltip.styles.d.ts +0 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/theme/common.d.ts +13 -5
- package/dist/theme/types.d.ts +4 -2
- package/dist/true-react-common-ui-kit.js +1184 -1029
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +1164 -1009
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/Button/Button.stories.tsx +4 -8
- package/src/components/CloseButton/CloseButton.tsx +4 -4
- package/src/components/ControlGroup/ControlGroup.stories.tsx +40 -0
- package/src/components/ControlGroup/ControlGroup.styles.ts +46 -0
- package/src/components/ControlGroup/ControlGroup.tsx +55 -0
- package/src/components/ControlGroup/index.ts +2 -0
- package/src/components/ControlWrapper/ControlWrapper.stories.tsx +45 -0
- package/src/components/ControlWrapper/ControlWrapper.styles.ts +185 -0
- package/src/components/ControlWrapper/ControlWrapper.tsx +151 -0
- package/src/components/ControlWrapper/index.ts +2 -0
- package/src/components/DateInput/DateInput.styles.ts +2 -7
- package/src/components/DateInput/DateInput.tsx +4 -4
- package/src/components/DatePicker/DatePicker.tsx +3 -3
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +7 -41
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +18 -26
- package/src/components/DatePicker/types.ts +1 -1
- package/src/components/FileItem/FileItem.stories.tsx +4 -8
- package/src/components/FiltersPane/FiltersPane.stories.tsx +0 -4
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +9 -7
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +1 -8
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +7 -5
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +7 -9
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +12 -17
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +2 -5
- package/src/components/IconButton/IconButton.stories.tsx +5 -5
- package/src/components/IncrementInput/IncrementInput.stories.tsx +0 -2
- package/src/components/IncrementInput/IncrementInput.styles.ts +9 -9
- package/src/components/Input/Input.stories.tsx +17 -25
- package/src/components/Input/Input.styles.ts +50 -260
- package/src/components/Input/Input.tsx +22 -285
- package/src/components/Input/InputBase.tsx +250 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/Input/types.ts +3 -32
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +7 -5
- package/src/components/Notification/Notification.stories.tsx +2 -6
- package/src/components/NumberInput/NumberInput.stories.tsx +0 -2
- package/src/components/NumberInput/NumberInput.tsx +4 -7
- package/src/components/PhoneInput/PhoneInput.stories.tsx +6 -10
- package/src/components/PhoneInput/PhoneInput.styles.ts +13 -10
- package/src/components/PhoneInput/PhoneInput.tsx +9 -12
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +6 -4
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +6 -6
- package/src/components/PhoneInput/types.ts +4 -0
- package/src/components/SearchInput/SearchInput.stories.tsx +1 -0
- package/src/components/SearchInput/SearchInput.styles.ts +17 -27
- package/src/components/SearchInput/SearchInput.tsx +13 -34
- package/src/components/Select/CustomSelect.stories.tsx +6 -9
- package/src/components/Select/MultiSelect.stories.tsx +4 -12
- package/src/components/Select/Select.stories.tsx +3 -11
- package/src/components/Select/Select.styles.ts +28 -42
- package/src/components/Select/Select.tsx +73 -81
- package/src/components/Select/types.ts +5 -0
- package/src/components/SmartInput/SmartInput.stories.tsx +0 -1
- package/src/components/SmartInput/SmartInput.tsx +4 -4
- package/src/components/Status/Status.stories.tsx +3 -7
- package/src/components/TextArea/TextArea.stories.tsx +1 -3
- package/src/components/TextArea/TextArea.styles.ts +27 -126
- package/src/components/TextArea/TextArea.tsx +86 -112
- package/src/components/TextButton/TextButton.stories.tsx +4 -8
- package/src/components/WithPopup/WithPopup.stories.tsx +0 -1
- package/src/components/WithPopup/WithPopup.styles.ts +0 -2
- package/src/components/WithPopup/WithPopup.tsx +10 -36
- package/src/components/WithPopup/types.ts +0 -7
- package/src/components/WithTooltip/WithTooltip.styles.ts +0 -6
- package/src/components/WithTooltip/WithTooltip.tsx +2 -7
- package/src/components/index.ts +2 -0
- package/src/theme/common.ts +15 -6
- package/src/theme/types.ts +8 -4
- package/src/types.ts +3 -0
- package/dist/components/Input/constants.d.ts +0 -1
- package/dist/components/WithPopup/helpers.d.ts +0 -2
- package/src/components/Input/constants.ts +0 -1
- package/src/components/WithPopup/helpers.ts +0 -9
|
@@ -4,7 +4,7 @@ import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNo
|
|
|
4
4
|
import { CSSTransition } from "react-transition-group";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import hexToRgba from "hex-to-rgba";
|
|
7
|
-
import {
|
|
7
|
+
import { useFloating, offset as offset$2, flip as flip$2, autoUpdate, useHover, safePolygon, useFocus, useClick, useDismiss, useInteractions, useTransitionStatus, FloatingPortal } from "@floating-ui/react";
|
|
8
8
|
import InputMask from "react-input-mask";
|
|
9
9
|
import { getYear, getMonth, format, parse, isSameDay, isValid, isAfter, isBefore, startOfMonth, endOfMonth, sub, startOfYear, endOfYear } from "date-fns";
|
|
10
10
|
import { Portal } from "react-overlays";
|
|
@@ -976,7 +976,17 @@ var dimensions = {
|
|
|
976
976
|
BORDER_RADIUS_STD: 8,
|
|
977
977
|
BORDER_RADIUS_SMALL: 6,
|
|
978
978
|
BORDER_RADIUS_EXTRA_SMALL: 4,
|
|
979
|
-
|
|
979
|
+
CONTROL: {
|
|
980
|
+
HEIGHT: 48,
|
|
981
|
+
PADDING: 16,
|
|
982
|
+
ICON_SIZE: 24,
|
|
983
|
+
ICON_INNER_SIZE: 24,
|
|
984
|
+
ICON_GAP: 8
|
|
985
|
+
},
|
|
986
|
+
Z_INDEX: {
|
|
987
|
+
CONTROL_INVALID: 1,
|
|
988
|
+
CONTROL_FOCUS: 2
|
|
989
|
+
}
|
|
980
990
|
};
|
|
981
991
|
var helpers = {
|
|
982
992
|
withAngle: function() {
|
|
@@ -1047,11 +1057,9 @@ var helpers = {
|
|
|
1047
1057
|
overflow: "auto",
|
|
1048
1058
|
// Chromium
|
|
1049
1059
|
"@supports selector(::-webkit-scrollbar)": {
|
|
1050
|
-
"--webkit-scrollbar-width": "10px",
|
|
1051
|
-
"--webkit-scrollbar-height": "10px",
|
|
1052
1060
|
"&::-webkit-scrollbar": {
|
|
1053
|
-
|
|
1054
|
-
|
|
1061
|
+
height: 10,
|
|
1062
|
+
width: 10,
|
|
1055
1063
|
"&-thumb": {
|
|
1056
1064
|
width: 6,
|
|
1057
1065
|
minHeight: 30,
|
|
@@ -1388,9 +1396,9 @@ function mapCacheHas(key) {
|
|
|
1388
1396
|
return getMapData(this, key).has(key);
|
|
1389
1397
|
}
|
|
1390
1398
|
function mapCacheSet(key, value) {
|
|
1391
|
-
var data = getMapData(this, key),
|
|
1399
|
+
var data = getMapData(this, key), size = data.size;
|
|
1392
1400
|
data.set(key, value);
|
|
1393
|
-
this.size += data.size ==
|
|
1401
|
+
this.size += data.size == size ? 0 : 1;
|
|
1394
1402
|
return this;
|
|
1395
1403
|
}
|
|
1396
1404
|
function MapCache(entries) {
|
|
@@ -1874,7 +1882,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
1874
1882
|
baseMerge(object, source, srcIndex);
|
|
1875
1883
|
});
|
|
1876
1884
|
const merge$1 = merge;
|
|
1877
|
-
function _define_property$
|
|
1885
|
+
function _define_property$18(obj, key, value) {
|
|
1878
1886
|
if (key in obj) {
|
|
1879
1887
|
Object.defineProperty(obj, key, {
|
|
1880
1888
|
value,
|
|
@@ -1887,7 +1895,7 @@ function _define_property$15(obj, key, value) {
|
|
|
1887
1895
|
}
|
|
1888
1896
|
return obj;
|
|
1889
1897
|
}
|
|
1890
|
-
function _object_spread$
|
|
1898
|
+
function _object_spread$16(target) {
|
|
1891
1899
|
for (var i = 1; i < arguments.length; i++) {
|
|
1892
1900
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1893
1901
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1897,12 +1905,12 @@ function _object_spread$13(target) {
|
|
|
1897
1905
|
}));
|
|
1898
1906
|
}
|
|
1899
1907
|
ownKeys2.forEach(function(key) {
|
|
1900
|
-
_define_property$
|
|
1908
|
+
_define_property$18(target, key, source[key]);
|
|
1901
1909
|
});
|
|
1902
1910
|
}
|
|
1903
1911
|
return target;
|
|
1904
1912
|
}
|
|
1905
|
-
function ownKeys$
|
|
1913
|
+
function ownKeys$X(object, enumerableOnly) {
|
|
1906
1914
|
var keys2 = Object.keys(object);
|
|
1907
1915
|
if (Object.getOwnPropertySymbols) {
|
|
1908
1916
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1915,12 +1923,12 @@ function ownKeys$U(object, enumerableOnly) {
|
|
|
1915
1923
|
}
|
|
1916
1924
|
return keys2;
|
|
1917
1925
|
}
|
|
1918
|
-
function _object_spread_props$
|
|
1926
|
+
function _object_spread_props$X(target, source) {
|
|
1919
1927
|
source = source != null ? source : {};
|
|
1920
1928
|
if (Object.getOwnPropertyDescriptors) {
|
|
1921
1929
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1922
1930
|
} else {
|
|
1923
|
-
ownKeys$
|
|
1931
|
+
ownKeys$X(Object(source)).forEach(function(key) {
|
|
1924
1932
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1925
1933
|
});
|
|
1926
1934
|
}
|
|
@@ -1975,7 +1983,7 @@ function createThemedStyles() {
|
|
|
1975
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);
|
|
1976
1984
|
});
|
|
1977
1985
|
return function(data) {
|
|
1978
|
-
return useStyles2(isNotEmpty(data) ? _object_spread_props$
|
|
1986
|
+
return useStyles2(isNotEmpty(data) ? _object_spread_props$X(_object_spread$16({}, data), {
|
|
1979
1987
|
theme: cleanStyles(data.theme)
|
|
1980
1988
|
}) : data);
|
|
1981
1989
|
};
|
|
@@ -6509,7 +6517,7 @@ function _array_without_holes$8(arr) {
|
|
|
6509
6517
|
if (Array.isArray(arr))
|
|
6510
6518
|
return _array_like_to_array$n(arr);
|
|
6511
6519
|
}
|
|
6512
|
-
function _define_property$
|
|
6520
|
+
function _define_property$17(obj, key, value) {
|
|
6513
6521
|
if (key in obj) {
|
|
6514
6522
|
Object.defineProperty(obj, key, {
|
|
6515
6523
|
value,
|
|
@@ -6529,7 +6537,7 @@ function _iterable_to_array$8(iter) {
|
|
|
6529
6537
|
function _non_iterable_spread$8() {
|
|
6530
6538
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6531
6539
|
}
|
|
6532
|
-
function _object_spread$
|
|
6540
|
+
function _object_spread$15(target) {
|
|
6533
6541
|
for (var i = 1; i < arguments.length; i++) {
|
|
6534
6542
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6535
6543
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6539,7 +6547,7 @@ function _object_spread$12(target) {
|
|
|
6539
6547
|
}));
|
|
6540
6548
|
}
|
|
6541
6549
|
ownKeys2.forEach(function(key) {
|
|
6542
|
-
_define_property$
|
|
6550
|
+
_define_property$17(target, key, source[key]);
|
|
6543
6551
|
});
|
|
6544
6552
|
}
|
|
6545
6553
|
return target;
|
|
@@ -6595,7 +6603,7 @@ var useDropdown = function(param) {
|
|
|
6595
6603
|
},
|
|
6596
6604
|
{
|
|
6597
6605
|
name: "flip",
|
|
6598
|
-
options: _object_spread$
|
|
6606
|
+
options: _object_spread$15({
|
|
6599
6607
|
fallbackPlacements: canBeFlipped ? [
|
|
6600
6608
|
"bottom-start",
|
|
6601
6609
|
"top-start"
|
|
@@ -6744,7 +6752,7 @@ var complexIcons = {
|
|
|
6744
6752
|
"file-xml": fileXml,
|
|
6745
6753
|
"file-zip": fileZip
|
|
6746
6754
|
};
|
|
6747
|
-
function _define_property$
|
|
6755
|
+
function _define_property$16(obj, key, value) {
|
|
6748
6756
|
if (key in obj) {
|
|
6749
6757
|
Object.defineProperty(obj, key, {
|
|
6750
6758
|
value,
|
|
@@ -6757,7 +6765,7 @@ function _define_property$13(obj, key, value) {
|
|
|
6757
6765
|
}
|
|
6758
6766
|
return obj;
|
|
6759
6767
|
}
|
|
6760
|
-
function _object_spread$
|
|
6768
|
+
function _object_spread$14(target) {
|
|
6761
6769
|
for (var i = 1; i < arguments.length; i++) {
|
|
6762
6770
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6763
6771
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6767,7 +6775,7 @@ function _object_spread$11(target) {
|
|
|
6767
6775
|
}));
|
|
6768
6776
|
}
|
|
6769
6777
|
ownKeys2.forEach(function(key) {
|
|
6770
|
-
_define_property$
|
|
6778
|
+
_define_property$16(target, key, source[key]);
|
|
6771
6779
|
});
|
|
6772
6780
|
}
|
|
6773
6781
|
return target;
|
|
@@ -6776,7 +6784,7 @@ var ComplexIconBoilerplate = function(param) {
|
|
|
6776
6784
|
var type = param.type;
|
|
6777
6785
|
var theme = useContext(ThemeContext).theme;
|
|
6778
6786
|
var icons = useMemo(function() {
|
|
6779
|
-
return _object_spread$
|
|
6787
|
+
return _object_spread$14({}, complexIcons, theme.complexIcons);
|
|
6780
6788
|
}, []);
|
|
6781
6789
|
var ComplexIcon = icons[type];
|
|
6782
6790
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7647,7 +7655,7 @@ var iconsList = checkIcons({
|
|
|
7647
7655
|
]
|
|
7648
7656
|
}
|
|
7649
7657
|
});
|
|
7650
|
-
function _define_property$
|
|
7658
|
+
function _define_property$15(obj, key, value) {
|
|
7651
7659
|
if (key in obj) {
|
|
7652
7660
|
Object.defineProperty(obj, key, {
|
|
7653
7661
|
value,
|
|
@@ -7660,7 +7668,7 @@ function _define_property$12(obj, key, value) {
|
|
|
7660
7668
|
}
|
|
7661
7669
|
return obj;
|
|
7662
7670
|
}
|
|
7663
|
-
function _object_spread$
|
|
7671
|
+
function _object_spread$13(target) {
|
|
7664
7672
|
for (var i = 1; i < arguments.length; i++) {
|
|
7665
7673
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7666
7674
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7670,12 +7678,12 @@ function _object_spread$10(target) {
|
|
|
7670
7678
|
}));
|
|
7671
7679
|
}
|
|
7672
7680
|
ownKeys2.forEach(function(key) {
|
|
7673
|
-
_define_property$
|
|
7681
|
+
_define_property$15(target, key, source[key]);
|
|
7674
7682
|
});
|
|
7675
7683
|
}
|
|
7676
7684
|
return target;
|
|
7677
7685
|
}
|
|
7678
|
-
function ownKeys$
|
|
7686
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
7679
7687
|
var keys2 = Object.keys(object);
|
|
7680
7688
|
if (Object.getOwnPropertySymbols) {
|
|
7681
7689
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7688,12 +7696,12 @@ function ownKeys$T(object, enumerableOnly) {
|
|
|
7688
7696
|
}
|
|
7689
7697
|
return keys2;
|
|
7690
7698
|
}
|
|
7691
|
-
function _object_spread_props$
|
|
7699
|
+
function _object_spread_props$W(target, source) {
|
|
7692
7700
|
source = source != null ? source : {};
|
|
7693
7701
|
if (Object.getOwnPropertyDescriptors) {
|
|
7694
7702
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7695
7703
|
} else {
|
|
7696
|
-
ownKeys$
|
|
7704
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
7697
7705
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7698
7706
|
});
|
|
7699
7707
|
}
|
|
@@ -7704,7 +7712,7 @@ var IconBoilerplate = function(param) {
|
|
|
7704
7712
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7705
7713
|
var theme = useContext(ThemeContext).theme;
|
|
7706
7714
|
var icons = useMemo(function() {
|
|
7707
|
-
return _object_spread$
|
|
7715
|
+
return _object_spread$13({}, iconsList, theme.icons);
|
|
7708
7716
|
}, []);
|
|
7709
7717
|
var icon = icons[type];
|
|
7710
7718
|
var _icon_viewBox;
|
|
@@ -7717,7 +7725,7 @@ var IconBoilerplate = function(param) {
|
|
|
7717
7725
|
children: [
|
|
7718
7726
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7719
7727
|
var _path_fill, _path_stroke;
|
|
7720
|
-
return jsx("path", _object_spread$
|
|
7728
|
+
return jsx("path", _object_spread$13({
|
|
7721
7729
|
fillRule: "evenodd",
|
|
7722
7730
|
clipRule: "evenodd",
|
|
7723
7731
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7725,25 +7733,25 @@ var IconBoilerplate = function(param) {
|
|
|
7725
7733
|
}, path), index);
|
|
7726
7734
|
}),
|
|
7727
7735
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7728
|
-
return /* @__PURE__ */ createElement("rect", _object_spread_props$
|
|
7736
|
+
return /* @__PURE__ */ createElement("rect", _object_spread_props$W(_object_spread$13({}, rect), {
|
|
7729
7737
|
key: index
|
|
7730
7738
|
}));
|
|
7731
7739
|
}),
|
|
7732
7740
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7733
|
-
return /* @__PURE__ */ createElement("circle", _object_spread_props$
|
|
7741
|
+
return /* @__PURE__ */ createElement("circle", _object_spread_props$W(_object_spread$13({}, circle), {
|
|
7734
7742
|
key: index
|
|
7735
7743
|
}));
|
|
7736
7744
|
})
|
|
7737
7745
|
]
|
|
7738
7746
|
});
|
|
7739
7747
|
};
|
|
7740
|
-
var useStyles$
|
|
7748
|
+
var useStyles$X = createThemedStyles("Icon", {
|
|
7741
7749
|
root: {
|
|
7742
7750
|
display: "flex",
|
|
7743
7751
|
alignItems: "center"
|
|
7744
7752
|
}
|
|
7745
7753
|
});
|
|
7746
|
-
function _define_property$
|
|
7754
|
+
function _define_property$14(obj, key, value) {
|
|
7747
7755
|
if (key in obj) {
|
|
7748
7756
|
Object.defineProperty(obj, key, {
|
|
7749
7757
|
value,
|
|
@@ -7756,7 +7764,7 @@ function _define_property$11(obj, key, value) {
|
|
|
7756
7764
|
}
|
|
7757
7765
|
return obj;
|
|
7758
7766
|
}
|
|
7759
|
-
function _object_spread
|
|
7767
|
+
function _object_spread$12(target) {
|
|
7760
7768
|
for (var i = 1; i < arguments.length; i++) {
|
|
7761
7769
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7762
7770
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7766,12 +7774,12 @@ function _object_spread$$(target) {
|
|
|
7766
7774
|
}));
|
|
7767
7775
|
}
|
|
7768
7776
|
ownKeys2.forEach(function(key) {
|
|
7769
|
-
_define_property$
|
|
7777
|
+
_define_property$14(target, key, source[key]);
|
|
7770
7778
|
});
|
|
7771
7779
|
}
|
|
7772
7780
|
return target;
|
|
7773
7781
|
}
|
|
7774
|
-
function ownKeys$
|
|
7782
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7775
7783
|
var keys2 = Object.keys(object);
|
|
7776
7784
|
if (Object.getOwnPropertySymbols) {
|
|
7777
7785
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7784,12 +7792,12 @@ function ownKeys$S(object, enumerableOnly) {
|
|
|
7784
7792
|
}
|
|
7785
7793
|
return keys2;
|
|
7786
7794
|
}
|
|
7787
|
-
function _object_spread_props$
|
|
7795
|
+
function _object_spread_props$V(target, source) {
|
|
7788
7796
|
source = source != null ? source : {};
|
|
7789
7797
|
if (Object.getOwnPropertyDescriptors) {
|
|
7790
7798
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7791
7799
|
} else {
|
|
7792
|
-
ownKeys$
|
|
7800
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7793
7801
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7794
7802
|
});
|
|
7795
7803
|
}
|
|
@@ -7797,10 +7805,10 @@ function _object_spread_props$S(target, source) {
|
|
|
7797
7805
|
}
|
|
7798
7806
|
var Icon = function(param) {
|
|
7799
7807
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7800
|
-
var classes = useStyles$
|
|
7808
|
+
var classes = useStyles$X({
|
|
7801
7809
|
theme: tweakStyles
|
|
7802
7810
|
});
|
|
7803
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7811
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$12({
|
|
7804
7812
|
className: classes.root
|
|
7805
7813
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7806
7814
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7816,15 +7824,7 @@ var renderIcon = function(icon) {
|
|
|
7816
7824
|
}) : icon;
|
|
7817
7825
|
};
|
|
7818
7826
|
var DEFAULT_OFFSET = 6;
|
|
7819
|
-
var
|
|
7820
|
-
apply: function apply2(param) {
|
|
7821
|
-
var rects = param.rects, elements = param.elements;
|
|
7822
|
-
Object.assign(elements.floating.style, {
|
|
7823
|
-
minWidth: "".concat(rects.reference.width, "px")
|
|
7824
|
-
});
|
|
7825
|
-
}
|
|
7826
|
-
});
|
|
7827
|
-
var useStyles$U = createThemedStyles("WithPopup", {
|
|
7827
|
+
var useStyles$W = createThemedStyles("WithPopup", {
|
|
7828
7828
|
trigger: {
|
|
7829
7829
|
width: "fit-content"
|
|
7830
7830
|
},
|
|
@@ -7839,7 +7839,6 @@ var useStyles$U = createThemedStyles("WithPopup", {
|
|
|
7839
7839
|
zIndex: 5,
|
|
7840
7840
|
outline: "none"
|
|
7841
7841
|
},
|
|
7842
|
-
arrow: {},
|
|
7843
7842
|
animationEnd: {},
|
|
7844
7843
|
animationStart: {},
|
|
7845
7844
|
"dropdown-initial": {
|
|
@@ -7871,7 +7870,7 @@ function _array_without_holes$7(arr) {
|
|
|
7871
7870
|
if (Array.isArray(arr))
|
|
7872
7871
|
return _array_like_to_array$m(arr);
|
|
7873
7872
|
}
|
|
7874
|
-
function _define_property$
|
|
7873
|
+
function _define_property$13(obj, key, value) {
|
|
7875
7874
|
if (key in obj) {
|
|
7876
7875
|
Object.defineProperty(obj, key, {
|
|
7877
7876
|
value,
|
|
@@ -7922,7 +7921,7 @@ function _non_iterable_rest$m() {
|
|
|
7922
7921
|
function _non_iterable_spread$7() {
|
|
7923
7922
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7924
7923
|
}
|
|
7925
|
-
function _object_spread$
|
|
7924
|
+
function _object_spread$11(target) {
|
|
7926
7925
|
for (var i = 1; i < arguments.length; i++) {
|
|
7927
7926
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7928
7927
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7932,12 +7931,12 @@ function _object_spread$_(target) {
|
|
|
7932
7931
|
}));
|
|
7933
7932
|
}
|
|
7934
7933
|
ownKeys2.forEach(function(key) {
|
|
7935
|
-
_define_property$
|
|
7934
|
+
_define_property$13(target, key, source[key]);
|
|
7936
7935
|
});
|
|
7937
7936
|
}
|
|
7938
7937
|
return target;
|
|
7939
7938
|
}
|
|
7940
|
-
function ownKeys$
|
|
7939
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7941
7940
|
var keys2 = Object.keys(object);
|
|
7942
7941
|
if (Object.getOwnPropertySymbols) {
|
|
7943
7942
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7950,12 +7949,12 @@ function ownKeys$R(object, enumerableOnly) {
|
|
|
7950
7949
|
}
|
|
7951
7950
|
return keys2;
|
|
7952
7951
|
}
|
|
7953
|
-
function _object_spread_props$
|
|
7952
|
+
function _object_spread_props$U(target, source) {
|
|
7954
7953
|
source = source != null ? source : {};
|
|
7955
7954
|
if (Object.getOwnPropertyDescriptors) {
|
|
7956
7955
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7957
7956
|
} else {
|
|
7958
|
-
ownKeys$
|
|
7957
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7959
7958
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7960
7959
|
});
|
|
7961
7960
|
}
|
|
@@ -7981,12 +7980,11 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
7981
7980
|
return _array_like_to_array$m(o, minLen);
|
|
7982
7981
|
}
|
|
7983
7982
|
var WithPopup = function(param) {
|
|
7984
|
-
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,
|
|
7985
|
-
var classes = useStyles$
|
|
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$W({
|
|
7986
7985
|
theme: tweakStyles
|
|
7987
7986
|
});
|
|
7988
7987
|
var _useState = _sliced_to_array$m(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
7989
|
-
var arrowRef = useRef(null);
|
|
7990
7988
|
var handleToggle = function(isActive, event) {
|
|
7991
7989
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
7992
7990
|
if (!isDisabled) {
|
|
@@ -8003,13 +8001,8 @@ var WithPopup = function(param) {
|
|
|
8003
8001
|
offset$2(popupOffset),
|
|
8004
8002
|
canBeFlipped && flip$2({
|
|
8005
8003
|
fallbackAxisSideDirection: "start"
|
|
8006
|
-
}),
|
|
8007
|
-
isMinWidthSameAsTrigger && minWidthRelativeToTrigger
|
|
8008
|
-
].concat(_to_consumable_array$7(middlewares), [
|
|
8009
|
-
shouldShowArrow && arrow$2({
|
|
8010
|
-
element: arrowRef
|
|
8011
8004
|
})
|
|
8012
|
-
]),
|
|
8005
|
+
].concat(_to_consumable_array$7(middlewares)),
|
|
8013
8006
|
whileElementsMounted: autoUpdate,
|
|
8014
8007
|
placement,
|
|
8015
8008
|
onOpenChange: handleToggle
|
|
@@ -8043,17 +8036,17 @@ var WithPopup = function(param) {
|
|
|
8043
8036
|
close: 500
|
|
8044
8037
|
}
|
|
8045
8038
|
}), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
|
|
8046
|
-
var referenceProps = getReferenceProps(_object_spread$
|
|
8039
|
+
var referenceProps = getReferenceProps(_object_spread$11({
|
|
8047
8040
|
ref: refs.setReference
|
|
8048
8041
|
}, shouldStopPropagation && {
|
|
8049
8042
|
onClick: stopPropagation
|
|
8050
8043
|
}));
|
|
8051
8044
|
var triggerElement = applyAction(trigger, {
|
|
8052
8045
|
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
8053
|
-
triggerProps: _object_spread$
|
|
8046
|
+
triggerProps: _object_spread$11({
|
|
8054
8047
|
isActive: isOpen,
|
|
8055
8048
|
isDisabled
|
|
8056
|
-
}, !isTriggerWrapped && _object_spread$
|
|
8049
|
+
}, !isTriggerWrapped && _object_spread$11({
|
|
8057
8050
|
data,
|
|
8058
8051
|
testId
|
|
8059
8052
|
}, referenceProps))
|
|
@@ -8061,31 +8054,23 @@ var WithPopup = function(param) {
|
|
|
8061
8054
|
var _obj2;
|
|
8062
8055
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8063
8056
|
children: [
|
|
8064
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8065
|
-
className: clsx(classes.trigger, (_obj2 = {}, _define_property$
|
|
8066
|
-
}, referenceProps, addDataAttributes$1(data
|
|
8057
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
|
|
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
|
+
}, referenceProps, addDataTestId(testId), addDataAttributes$1(data)), {
|
|
8067
8060
|
children: triggerElement
|
|
8068
8061
|
})) : triggerElement,
|
|
8069
8062
|
isMounted && /* @__PURE__ */ jsx(FloatingPortal, {
|
|
8070
|
-
root: shouldRenderInBody ?
|
|
8071
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8072
|
-
ref: refs.setFloating,
|
|
8063
|
+
root: !shouldRenderInBody ? refs.reference.current : void 0,
|
|
8064
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
|
|
8073
8065
|
style: floatingStyles,
|
|
8074
|
-
className: classes.popup
|
|
8075
|
-
|
|
8076
|
-
|
|
8066
|
+
className: classes.popup,
|
|
8067
|
+
ref: refs.setFloating
|
|
8068
|
+
}, getFloatingProps()), {
|
|
8069
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
8077
8070
|
className: classes["dropdown-".concat(status)],
|
|
8078
|
-
children:
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
context,
|
|
8082
|
-
className: classes.arrow
|
|
8083
|
-
})),
|
|
8084
|
-
applyAction(children, {
|
|
8085
|
-
floatingContext: context,
|
|
8086
|
-
onClose: handleClose
|
|
8087
|
-
})
|
|
8088
|
-
]
|
|
8071
|
+
children: applyAction(children, {
|
|
8072
|
+
onClose: handleClose
|
|
8073
|
+
})
|
|
8089
8074
|
})
|
|
8090
8075
|
}))
|
|
8091
8076
|
})
|
|
@@ -8095,7 +8080,7 @@ var WithPopup = function(param) {
|
|
|
8095
8080
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8096
8081
|
var ICON_SIZE$1 = 20;
|
|
8097
8082
|
var ICON_GAP = 12;
|
|
8098
|
-
var useStyles$
|
|
8083
|
+
var useStyles$V = createThemedStyles("ListItem", {
|
|
8099
8084
|
root: {
|
|
8100
8085
|
display: "flex",
|
|
8101
8086
|
alignItems: "center",
|
|
@@ -8134,7 +8119,7 @@ var useStyles$T = createThemedStyles("ListItem", {
|
|
|
8134
8119
|
flexGrow: 1
|
|
8135
8120
|
}
|
|
8136
8121
|
});
|
|
8137
|
-
function _define_property
|
|
8122
|
+
function _define_property$12(obj, key, value) {
|
|
8138
8123
|
if (key in obj) {
|
|
8139
8124
|
Object.defineProperty(obj, key, {
|
|
8140
8125
|
value,
|
|
@@ -8147,7 +8132,7 @@ function _define_property$$(obj, key, value) {
|
|
|
8147
8132
|
}
|
|
8148
8133
|
return obj;
|
|
8149
8134
|
}
|
|
8150
|
-
function _object_spread$
|
|
8135
|
+
function _object_spread$10(target) {
|
|
8151
8136
|
for (var i = 1; i < arguments.length; i++) {
|
|
8152
8137
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8153
8138
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8157,12 +8142,12 @@ function _object_spread$Z(target) {
|
|
|
8157
8142
|
}));
|
|
8158
8143
|
}
|
|
8159
8144
|
ownKeys2.forEach(function(key) {
|
|
8160
|
-
_define_property
|
|
8145
|
+
_define_property$12(target, key, source[key]);
|
|
8161
8146
|
});
|
|
8162
8147
|
}
|
|
8163
8148
|
return target;
|
|
8164
8149
|
}
|
|
8165
|
-
function ownKeys$
|
|
8150
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
8166
8151
|
var keys2 = Object.keys(object);
|
|
8167
8152
|
if (Object.getOwnPropertySymbols) {
|
|
8168
8153
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8175,12 +8160,12 @@ function ownKeys$Q(object, enumerableOnly) {
|
|
|
8175
8160
|
}
|
|
8176
8161
|
return keys2;
|
|
8177
8162
|
}
|
|
8178
|
-
function _object_spread_props$
|
|
8163
|
+
function _object_spread_props$T(target, source) {
|
|
8179
8164
|
source = source != null ? source : {};
|
|
8180
8165
|
if (Object.getOwnPropertyDescriptors) {
|
|
8181
8166
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8182
8167
|
} else {
|
|
8183
|
-
ownKeys$
|
|
8168
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
8184
8169
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8185
8170
|
});
|
|
8186
8171
|
}
|
|
@@ -8188,7 +8173,7 @@ function _object_spread_props$Q(target, source) {
|
|
|
8188
8173
|
}
|
|
8189
8174
|
var ListItem = function(param) {
|
|
8190
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;
|
|
8191
|
-
var classes = useStyles$
|
|
8176
|
+
var classes = useStyles$V({
|
|
8192
8177
|
theme: tweakStyles
|
|
8193
8178
|
});
|
|
8194
8179
|
var _obj2;
|
|
@@ -8197,9 +8182,9 @@ var ListItem = function(param) {
|
|
|
8197
8182
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8198
8183
|
className: classes.spacer
|
|
8199
8184
|
}),
|
|
8200
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8201
|
-
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property
|
|
8202
|
-
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8185
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$T(_object_spread$10({
|
|
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$T(_object_spread$10({}, data), {
|
|
8203
8188
|
disabled: isDisabled ? true : void 0
|
|
8204
8189
|
}))), {
|
|
8205
8190
|
children: [
|
|
@@ -8225,7 +8210,7 @@ var ListItem = function(param) {
|
|
|
8225
8210
|
]
|
|
8226
8211
|
});
|
|
8227
8212
|
};
|
|
8228
|
-
var useStyles$
|
|
8213
|
+
var useStyles$U = createThemedStyles("List", {
|
|
8229
8214
|
root: {
|
|
8230
8215
|
minWidth: 180,
|
|
8231
8216
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8241,12 +8226,12 @@ var useStyles$S = createThemedStyles("List", {
|
|
|
8241
8226
|
paddingLeft: 4
|
|
8242
8227
|
}
|
|
8243
8228
|
});
|
|
8244
|
-
var withPopupStyles
|
|
8229
|
+
var withPopupStyles = {
|
|
8245
8230
|
trigger: {
|
|
8246
8231
|
width: "100%"
|
|
8247
8232
|
}
|
|
8248
8233
|
};
|
|
8249
|
-
function _define_property$
|
|
8234
|
+
function _define_property$11(obj, key, value) {
|
|
8250
8235
|
if (key in obj) {
|
|
8251
8236
|
Object.defineProperty(obj, key, {
|
|
8252
8237
|
value,
|
|
@@ -8259,7 +8244,7 @@ function _define_property$_(obj, key, value) {
|
|
|
8259
8244
|
}
|
|
8260
8245
|
return obj;
|
|
8261
8246
|
}
|
|
8262
|
-
function _object_spread
|
|
8247
|
+
function _object_spread$$(target) {
|
|
8263
8248
|
for (var i = 1; i < arguments.length; i++) {
|
|
8264
8249
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8265
8250
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8269,12 +8254,12 @@ function _object_spread$Y(target) {
|
|
|
8269
8254
|
}));
|
|
8270
8255
|
}
|
|
8271
8256
|
ownKeys2.forEach(function(key) {
|
|
8272
|
-
_define_property$
|
|
8257
|
+
_define_property$11(target, key, source[key]);
|
|
8273
8258
|
});
|
|
8274
8259
|
}
|
|
8275
8260
|
return target;
|
|
8276
8261
|
}
|
|
8277
|
-
function ownKeys$
|
|
8262
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8278
8263
|
var keys2 = Object.keys(object);
|
|
8279
8264
|
if (Object.getOwnPropertySymbols) {
|
|
8280
8265
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8287,12 +8272,12 @@ function ownKeys$P(object, enumerableOnly) {
|
|
|
8287
8272
|
}
|
|
8288
8273
|
return keys2;
|
|
8289
8274
|
}
|
|
8290
|
-
function _object_spread_props$
|
|
8275
|
+
function _object_spread_props$S(target, source) {
|
|
8291
8276
|
source = source != null ? source : {};
|
|
8292
8277
|
if (Object.getOwnPropertyDescriptors) {
|
|
8293
8278
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8294
8279
|
} else {
|
|
8295
|
-
ownKeys$
|
|
8280
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8296
8281
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8297
8282
|
});
|
|
8298
8283
|
}
|
|
@@ -8300,7 +8285,7 @@ function _object_spread_props$P(target, source) {
|
|
|
8300
8285
|
}
|
|
8301
8286
|
var List = function(param) {
|
|
8302
8287
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8303
|
-
var classes = useStyles$
|
|
8288
|
+
var classes = useStyles$U({
|
|
8304
8289
|
theme: tweakStyles
|
|
8305
8290
|
});
|
|
8306
8291
|
var handleItemClick = function(event, param2) {
|
|
@@ -8310,11 +8295,11 @@ var List = function(param) {
|
|
|
8310
8295
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8311
8296
|
}
|
|
8312
8297
|
};
|
|
8313
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8298
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$$({
|
|
8314
8299
|
className: classes.root
|
|
8315
8300
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8316
8301
|
children: items.map(function(item, i) {
|
|
8317
|
-
var itemProps = _object_spread_props$
|
|
8302
|
+
var itemProps = _object_spread_props$S(_object_spread$$({
|
|
8318
8303
|
testId: getTestId(testId, "item-".concat(i))
|
|
8319
8304
|
}, item), {
|
|
8320
8305
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8326,13 +8311,13 @@ var List = function(param) {
|
|
|
8326
8311
|
return /* @__PURE__ */ jsx(Fragment$1, {
|
|
8327
8312
|
children: isArrayNotEmpty(item.nestedItems) ? /* @__PURE__ */ jsx(WithPopup, {
|
|
8328
8313
|
eventType: "hover",
|
|
8329
|
-
tweakStyles: withPopupStyles
|
|
8314
|
+
tweakStyles: withPopupStyles,
|
|
8330
8315
|
placement: "right-start",
|
|
8331
8316
|
popupOffset: 0,
|
|
8332
8317
|
shouldRenderInBody: false,
|
|
8333
8318
|
trigger: function(param2) {
|
|
8334
8319
|
var triggerProps = param2.triggerProps;
|
|
8335
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8320
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$S(_object_spread$$({}, itemProps), {
|
|
8336
8321
|
isFocused: triggerProps.isActive
|
|
8337
8322
|
}));
|
|
8338
8323
|
},
|
|
@@ -8343,13 +8328,13 @@ var List = function(param) {
|
|
|
8343
8328
|
onClick
|
|
8344
8329
|
})
|
|
8345
8330
|
})
|
|
8346
|
-
}) : /* @__PURE__ */ jsx(ListItem, _object_spread
|
|
8331
|
+
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$$({}, itemProps))
|
|
8347
8332
|
}, i);
|
|
8348
8333
|
})
|
|
8349
8334
|
}));
|
|
8350
8335
|
};
|
|
8351
8336
|
var ANIMATION_TIMEOUT = 150;
|
|
8352
|
-
function _define_property$
|
|
8337
|
+
function _define_property$10(obj, key, value) {
|
|
8353
8338
|
if (key in obj) {
|
|
8354
8339
|
Object.defineProperty(obj, key, {
|
|
8355
8340
|
value,
|
|
@@ -8362,7 +8347,7 @@ function _define_property$Z(obj, key, value) {
|
|
|
8362
8347
|
}
|
|
8363
8348
|
return obj;
|
|
8364
8349
|
}
|
|
8365
|
-
function _object_spread$
|
|
8350
|
+
function _object_spread$_(target) {
|
|
8366
8351
|
for (var i = 1; i < arguments.length; i++) {
|
|
8367
8352
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8368
8353
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8372,12 +8357,12 @@ function _object_spread$X(target) {
|
|
|
8372
8357
|
}));
|
|
8373
8358
|
}
|
|
8374
8359
|
ownKeys2.forEach(function(key) {
|
|
8375
|
-
_define_property$
|
|
8360
|
+
_define_property$10(target, key, source[key]);
|
|
8376
8361
|
});
|
|
8377
8362
|
}
|
|
8378
8363
|
return target;
|
|
8379
8364
|
}
|
|
8380
|
-
var useStyles$
|
|
8365
|
+
var useStyles$T = createThemedStyles("AccountInfo", _object_spread$_({
|
|
8381
8366
|
root: {
|
|
8382
8367
|
display: "flex"
|
|
8383
8368
|
},
|
|
@@ -8431,7 +8416,7 @@ function _array_with_holes$l(arr) {
|
|
|
8431
8416
|
if (Array.isArray(arr))
|
|
8432
8417
|
return arr;
|
|
8433
8418
|
}
|
|
8434
|
-
function _define_property
|
|
8419
|
+
function _define_property$$(obj, key, value) {
|
|
8435
8420
|
if (key in obj) {
|
|
8436
8421
|
Object.defineProperty(obj, key, {
|
|
8437
8422
|
value,
|
|
@@ -8475,7 +8460,7 @@ function _iterable_to_array_limit$l(arr, i) {
|
|
|
8475
8460
|
function _non_iterable_rest$l() {
|
|
8476
8461
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8477
8462
|
}
|
|
8478
|
-
function _object_spread$
|
|
8463
|
+
function _object_spread$Z(target) {
|
|
8479
8464
|
for (var i = 1; i < arguments.length; i++) {
|
|
8480
8465
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8481
8466
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8485,12 +8470,12 @@ function _object_spread$W(target) {
|
|
|
8485
8470
|
}));
|
|
8486
8471
|
}
|
|
8487
8472
|
ownKeys2.forEach(function(key) {
|
|
8488
|
-
_define_property
|
|
8473
|
+
_define_property$$(target, key, source[key]);
|
|
8489
8474
|
});
|
|
8490
8475
|
}
|
|
8491
8476
|
return target;
|
|
8492
8477
|
}
|
|
8493
|
-
function ownKeys$
|
|
8478
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8494
8479
|
var keys2 = Object.keys(object);
|
|
8495
8480
|
if (Object.getOwnPropertySymbols) {
|
|
8496
8481
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8503,12 +8488,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
8503
8488
|
}
|
|
8504
8489
|
return keys2;
|
|
8505
8490
|
}
|
|
8506
|
-
function _object_spread_props$
|
|
8491
|
+
function _object_spread_props$R(target, source) {
|
|
8507
8492
|
source = source != null ? source : {};
|
|
8508
8493
|
if (Object.getOwnPropertyDescriptors) {
|
|
8509
8494
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8510
8495
|
} else {
|
|
8511
|
-
ownKeys$
|
|
8496
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8512
8497
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8513
8498
|
});
|
|
8514
8499
|
}
|
|
@@ -8532,7 +8517,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
8532
8517
|
}
|
|
8533
8518
|
var AccountInfo = function(param) {
|
|
8534
8519
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8535
|
-
var classes = useStyles$
|
|
8520
|
+
var classes = useStyles$T({
|
|
8536
8521
|
theme: tweakStyles
|
|
8537
8522
|
});
|
|
8538
8523
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8552,7 +8537,7 @@ var AccountInfo = function(param) {
|
|
|
8552
8537
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8553
8538
|
return setIsMenuOpen(false);
|
|
8554
8539
|
}, nameRef);
|
|
8555
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8540
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$Z({
|
|
8556
8541
|
className: classes.root
|
|
8557
8542
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8558
8543
|
children: [
|
|
@@ -8602,7 +8587,7 @@ var AccountInfo = function(param) {
|
|
|
8602
8587
|
]
|
|
8603
8588
|
}));
|
|
8604
8589
|
};
|
|
8605
|
-
var useStyles$
|
|
8590
|
+
var useStyles$S = createThemedStyles("AddButton", {
|
|
8606
8591
|
root: {
|
|
8607
8592
|
display: "flex",
|
|
8608
8593
|
alignItems: "center",
|
|
@@ -8628,7 +8613,7 @@ var useStyles$Q = createThemedStyles("AddButton", {
|
|
|
8628
8613
|
width: "100%"
|
|
8629
8614
|
}
|
|
8630
8615
|
});
|
|
8631
|
-
function _define_property$
|
|
8616
|
+
function _define_property$_(obj, key, value) {
|
|
8632
8617
|
if (key in obj) {
|
|
8633
8618
|
Object.defineProperty(obj, key, {
|
|
8634
8619
|
value,
|
|
@@ -8641,7 +8626,7 @@ function _define_property$X(obj, key, value) {
|
|
|
8641
8626
|
}
|
|
8642
8627
|
return obj;
|
|
8643
8628
|
}
|
|
8644
|
-
function _object_spread$
|
|
8629
|
+
function _object_spread$Y(target) {
|
|
8645
8630
|
for (var i = 1; i < arguments.length; i++) {
|
|
8646
8631
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8647
8632
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8651,12 +8636,12 @@ function _object_spread$V(target) {
|
|
|
8651
8636
|
}));
|
|
8652
8637
|
}
|
|
8653
8638
|
ownKeys2.forEach(function(key) {
|
|
8654
|
-
_define_property$
|
|
8639
|
+
_define_property$_(target, key, source[key]);
|
|
8655
8640
|
});
|
|
8656
8641
|
}
|
|
8657
8642
|
return target;
|
|
8658
8643
|
}
|
|
8659
|
-
function ownKeys$
|
|
8644
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8660
8645
|
var keys2 = Object.keys(object);
|
|
8661
8646
|
if (Object.getOwnPropertySymbols) {
|
|
8662
8647
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8669,12 +8654,12 @@ function ownKeys$N(object, enumerableOnly) {
|
|
|
8669
8654
|
}
|
|
8670
8655
|
return keys2;
|
|
8671
8656
|
}
|
|
8672
|
-
function _object_spread_props$
|
|
8657
|
+
function _object_spread_props$Q(target, source) {
|
|
8673
8658
|
source = source != null ? source : {};
|
|
8674
8659
|
if (Object.getOwnPropertyDescriptors) {
|
|
8675
8660
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8676
8661
|
} else {
|
|
8677
|
-
ownKeys$
|
|
8662
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8678
8663
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8679
8664
|
});
|
|
8680
8665
|
}
|
|
@@ -8682,10 +8667,10 @@ function _object_spread_props$N(target, source) {
|
|
|
8682
8667
|
}
|
|
8683
8668
|
var AddButton = function(param) {
|
|
8684
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;
|
|
8685
|
-
var classes = useStyles$
|
|
8670
|
+
var classes = useStyles$S({
|
|
8686
8671
|
theme: tweakStyles
|
|
8687
8672
|
});
|
|
8688
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8673
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$Q(_object_spread$Y({
|
|
8689
8674
|
type,
|
|
8690
8675
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8691
8676
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8704,7 +8689,7 @@ var AddButton = function(param) {
|
|
|
8704
8689
|
]
|
|
8705
8690
|
}));
|
|
8706
8691
|
};
|
|
8707
|
-
var useStyles$
|
|
8692
|
+
var useStyles$R = createThemedStyles("DotsPreloader", {
|
|
8708
8693
|
root: {
|
|
8709
8694
|
display: "flex",
|
|
8710
8695
|
gap: 4,
|
|
@@ -8750,7 +8735,7 @@ var useStyles$P = createThemedStyles("DotsPreloader", {
|
|
|
8750
8735
|
});
|
|
8751
8736
|
var DotsPreloader = function(param) {
|
|
8752
8737
|
var tweakStyles = param.tweakStyles;
|
|
8753
|
-
var classes = useStyles$
|
|
8738
|
+
var classes = useStyles$R({
|
|
8754
8739
|
theme: tweakStyles
|
|
8755
8740
|
});
|
|
8756
8741
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8816,7 +8801,7 @@ var DefaultPreloader = function() {
|
|
|
8816
8801
|
]
|
|
8817
8802
|
});
|
|
8818
8803
|
};
|
|
8819
|
-
var useStyles$
|
|
8804
|
+
var useStyles$Q = createThemedStyles("SvgPreloader", {
|
|
8820
8805
|
root: {
|
|
8821
8806
|
display: "flex",
|
|
8822
8807
|
width: "100%",
|
|
@@ -8826,7 +8811,7 @@ var useStyles$O = createThemedStyles("SvgPreloader", {
|
|
|
8826
8811
|
var SvgPreloader = function(param) {
|
|
8827
8812
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8828
8813
|
var _theme_preloaders;
|
|
8829
|
-
var classes = useStyles$
|
|
8814
|
+
var classes = useStyles$Q({
|
|
8830
8815
|
theme: tweakStyles
|
|
8831
8816
|
});
|
|
8832
8817
|
var theme = useContext(ThemeContext).theme;
|
|
@@ -8840,7 +8825,7 @@ var SvgPreloader = function(param) {
|
|
|
8840
8825
|
}
|
|
8841
8826
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8842
8827
|
};
|
|
8843
|
-
var useStyles$
|
|
8828
|
+
var useStyles$P = createThemedStyles("ThemedPreloader", {
|
|
8844
8829
|
root: {
|
|
8845
8830
|
display: "flex"
|
|
8846
8831
|
},
|
|
@@ -8851,7 +8836,7 @@ var useStyles$N = createThemedStyles("ThemedPreloader", {
|
|
|
8851
8836
|
color: "currentColor"
|
|
8852
8837
|
}
|
|
8853
8838
|
});
|
|
8854
|
-
function _define_property$
|
|
8839
|
+
function _define_property$Z(obj, key, value) {
|
|
8855
8840
|
if (key in obj) {
|
|
8856
8841
|
Object.defineProperty(obj, key, {
|
|
8857
8842
|
value,
|
|
@@ -8864,7 +8849,7 @@ function _define_property$W(obj, key, value) {
|
|
|
8864
8849
|
}
|
|
8865
8850
|
return obj;
|
|
8866
8851
|
}
|
|
8867
|
-
function _object_spread$
|
|
8852
|
+
function _object_spread$X(target) {
|
|
8868
8853
|
for (var i = 1; i < arguments.length; i++) {
|
|
8869
8854
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8870
8855
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8874,12 +8859,12 @@ function _object_spread$U(target) {
|
|
|
8874
8859
|
}));
|
|
8875
8860
|
}
|
|
8876
8861
|
ownKeys2.forEach(function(key) {
|
|
8877
|
-
_define_property$
|
|
8862
|
+
_define_property$Z(target, key, source[key]);
|
|
8878
8863
|
});
|
|
8879
8864
|
}
|
|
8880
8865
|
return target;
|
|
8881
8866
|
}
|
|
8882
|
-
function ownKeys$
|
|
8867
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8883
8868
|
var keys2 = Object.keys(object);
|
|
8884
8869
|
if (Object.getOwnPropertySymbols) {
|
|
8885
8870
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8892,12 +8877,12 @@ function ownKeys$M(object, enumerableOnly) {
|
|
|
8892
8877
|
}
|
|
8893
8878
|
return keys2;
|
|
8894
8879
|
}
|
|
8895
|
-
function _object_spread_props$
|
|
8880
|
+
function _object_spread_props$P(target, source) {
|
|
8896
8881
|
source = source != null ? source : {};
|
|
8897
8882
|
if (Object.getOwnPropertyDescriptors) {
|
|
8898
8883
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8899
8884
|
} else {
|
|
8900
|
-
ownKeys$
|
|
8885
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8901
8886
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8902
8887
|
});
|
|
8903
8888
|
}
|
|
@@ -8905,7 +8890,7 @@ function _object_spread_props$M(target, source) {
|
|
|
8905
8890
|
}
|
|
8906
8891
|
var ThemedPreloader = function(param) {
|
|
8907
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;
|
|
8908
|
-
var classes = useStyles$
|
|
8893
|
+
var classes = useStyles$P({
|
|
8909
8894
|
theme: tweakStyles
|
|
8910
8895
|
});
|
|
8911
8896
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8918,8 +8903,8 @@ var ThemedPreloader = function(param) {
|
|
|
8918
8903
|
className: "tweakSvgPreloader",
|
|
8919
8904
|
currentComponentName: "ThemedPreloader"
|
|
8920
8905
|
});
|
|
8921
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8922
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
8906
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$X({
|
|
8907
|
+
className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
|
|
8923
8908
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8924
8909
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8925
8910
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8929,7 +8914,7 @@ var ThemedPreloader = function(param) {
|
|
|
8929
8914
|
})
|
|
8930
8915
|
}));
|
|
8931
8916
|
};
|
|
8932
|
-
var useStyles$
|
|
8917
|
+
var useStyles$O = createThemedStyles("Button", {
|
|
8933
8918
|
root: {
|
|
8934
8919
|
display: "flex",
|
|
8935
8920
|
justifyContent: "center",
|
|
@@ -9097,10 +9082,10 @@ var dotsPreloaderStyles = {
|
|
|
9097
9082
|
}
|
|
9098
9083
|
}
|
|
9099
9084
|
};
|
|
9100
|
-
var getPreloaderStyles = function(
|
|
9101
|
-
return
|
|
9085
|
+
var getPreloaderStyles = function(size) {
|
|
9086
|
+
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
9102
9087
|
};
|
|
9103
|
-
function _define_property$
|
|
9088
|
+
function _define_property$Y(obj, key, value) {
|
|
9104
9089
|
if (key in obj) {
|
|
9105
9090
|
Object.defineProperty(obj, key, {
|
|
9106
9091
|
value,
|
|
@@ -9113,7 +9098,7 @@ function _define_property$V(obj, key, value) {
|
|
|
9113
9098
|
}
|
|
9114
9099
|
return obj;
|
|
9115
9100
|
}
|
|
9116
|
-
function _object_spread$
|
|
9101
|
+
function _object_spread$W(target) {
|
|
9117
9102
|
for (var i = 1; i < arguments.length; i++) {
|
|
9118
9103
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9119
9104
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9123,12 +9108,12 @@ function _object_spread$T(target) {
|
|
|
9123
9108
|
}));
|
|
9124
9109
|
}
|
|
9125
9110
|
ownKeys2.forEach(function(key) {
|
|
9126
|
-
_define_property$
|
|
9111
|
+
_define_property$Y(target, key, source[key]);
|
|
9127
9112
|
});
|
|
9128
9113
|
}
|
|
9129
9114
|
return target;
|
|
9130
9115
|
}
|
|
9131
|
-
function ownKeys$
|
|
9116
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
9132
9117
|
var keys2 = Object.keys(object);
|
|
9133
9118
|
if (Object.getOwnPropertySymbols) {
|
|
9134
9119
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9141,21 +9126,21 @@ function ownKeys$L(object, enumerableOnly) {
|
|
|
9141
9126
|
}
|
|
9142
9127
|
return keys2;
|
|
9143
9128
|
}
|
|
9144
|
-
function _object_spread_props$
|
|
9129
|
+
function _object_spread_props$O(target, source) {
|
|
9145
9130
|
source = source != null ? source : {};
|
|
9146
9131
|
if (Object.getOwnPropertyDescriptors) {
|
|
9147
9132
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9148
9133
|
} else {
|
|
9149
|
-
ownKeys$
|
|
9134
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
9150
9135
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9151
9136
|
});
|
|
9152
9137
|
}
|
|
9153
9138
|
return target;
|
|
9154
9139
|
}
|
|
9155
|
-
function _object_without_properties$
|
|
9140
|
+
function _object_without_properties$j(source, excluded) {
|
|
9156
9141
|
if (source == null)
|
|
9157
9142
|
return {};
|
|
9158
|
-
var target = _object_without_properties_loose$
|
|
9143
|
+
var target = _object_without_properties_loose$j(source, excluded);
|
|
9159
9144
|
var key, i;
|
|
9160
9145
|
if (Object.getOwnPropertySymbols) {
|
|
9161
9146
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9170,7 +9155,7 @@ function _object_without_properties$h(source, excluded) {
|
|
|
9170
9155
|
}
|
|
9171
9156
|
return target;
|
|
9172
9157
|
}
|
|
9173
|
-
function _object_without_properties_loose$
|
|
9158
|
+
function _object_without_properties_loose$j(source, excluded) {
|
|
9174
9159
|
if (source == null)
|
|
9175
9160
|
return {};
|
|
9176
9161
|
var target = {};
|
|
@@ -9185,7 +9170,7 @@ function _object_without_properties_loose$h(source, excluded) {
|
|
|
9185
9170
|
return target;
|
|
9186
9171
|
}
|
|
9187
9172
|
var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9188
|
-
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size,
|
|
9173
|
+
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$j(_param, [
|
|
9189
9174
|
"type",
|
|
9190
9175
|
"children",
|
|
9191
9176
|
"size",
|
|
@@ -9203,11 +9188,11 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9203
9188
|
"iconPosition",
|
|
9204
9189
|
"preloaderType"
|
|
9205
9190
|
]);
|
|
9206
|
-
var classes = useStyles$
|
|
9191
|
+
var classes = useStyles$O({
|
|
9207
9192
|
theme: tweakStyles
|
|
9208
9193
|
});
|
|
9209
9194
|
var tweakPreloaderStyles = useTweakStyles({
|
|
9210
|
-
innerStyles: getPreloaderStyles(
|
|
9195
|
+
innerStyles: getPreloaderStyles(size),
|
|
9211
9196
|
tweakStyles,
|
|
9212
9197
|
className: "tweakPreloader",
|
|
9213
9198
|
currentComponentName: "Button"
|
|
@@ -9216,16 +9201,16 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9216
9201
|
var hasChildren = isReactNodeNotEmpty(children);
|
|
9217
9202
|
var hasNoAction = isDisabled || isLoading;
|
|
9218
9203
|
var _obj2, _obj1;
|
|
9219
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9204
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$W({
|
|
9220
9205
|
ref,
|
|
9221
9206
|
type,
|
|
9222
|
-
className: clsx(classes.root, classes[
|
|
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)),
|
|
9223
9208
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
9224
9209
|
disabled: hasNoAction
|
|
9225
9210
|
}, interactions, addDataTestId(testId), addDataAttributes(data)), {
|
|
9226
9211
|
children: [
|
|
9227
9212
|
/* @__PURE__ */ jsxs("span", {
|
|
9228
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
9213
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$Y(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Y(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
9229
9214
|
children: [
|
|
9230
9215
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
9231
9216
|
className: classes.icon,
|
|
@@ -9248,7 +9233,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9248
9233
|
]
|
|
9249
9234
|
}));
|
|
9250
9235
|
});
|
|
9251
|
-
var useStyles$
|
|
9236
|
+
var useStyles$N = createThemedStyles("Checkbox", {
|
|
9252
9237
|
root: {
|
|
9253
9238
|
cursor: "pointer",
|
|
9254
9239
|
display: "flex",
|
|
@@ -9286,7 +9271,7 @@ var useStyles$L = createThemedStyles("Checkbox", {
|
|
|
9286
9271
|
flexDirection: "row-reverse"
|
|
9287
9272
|
}
|
|
9288
9273
|
});
|
|
9289
|
-
function _define_property$
|
|
9274
|
+
function _define_property$X(obj, key, value) {
|
|
9290
9275
|
if (key in obj) {
|
|
9291
9276
|
Object.defineProperty(obj, key, {
|
|
9292
9277
|
value,
|
|
@@ -9299,7 +9284,7 @@ function _define_property$U(obj, key, value) {
|
|
|
9299
9284
|
}
|
|
9300
9285
|
return obj;
|
|
9301
9286
|
}
|
|
9302
|
-
function _object_spread$
|
|
9287
|
+
function _object_spread$V(target) {
|
|
9303
9288
|
for (var i = 1; i < arguments.length; i++) {
|
|
9304
9289
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9305
9290
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9309,12 +9294,12 @@ function _object_spread$S(target) {
|
|
|
9309
9294
|
}));
|
|
9310
9295
|
}
|
|
9311
9296
|
ownKeys2.forEach(function(key) {
|
|
9312
|
-
_define_property$
|
|
9297
|
+
_define_property$X(target, key, source[key]);
|
|
9313
9298
|
});
|
|
9314
9299
|
}
|
|
9315
9300
|
return target;
|
|
9316
9301
|
}
|
|
9317
|
-
function ownKeys$
|
|
9302
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9318
9303
|
var keys2 = Object.keys(object);
|
|
9319
9304
|
if (Object.getOwnPropertySymbols) {
|
|
9320
9305
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9327,12 +9312,12 @@ function ownKeys$K(object, enumerableOnly) {
|
|
|
9327
9312
|
}
|
|
9328
9313
|
return keys2;
|
|
9329
9314
|
}
|
|
9330
|
-
function _object_spread_props$
|
|
9315
|
+
function _object_spread_props$N(target, source) {
|
|
9331
9316
|
source = source != null ? source : {};
|
|
9332
9317
|
if (Object.getOwnPropertyDescriptors) {
|
|
9333
9318
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9334
9319
|
} else {
|
|
9335
|
-
ownKeys$
|
|
9320
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9336
9321
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9337
9322
|
});
|
|
9338
9323
|
}
|
|
@@ -9340,7 +9325,7 @@ function _object_spread_props$K(target, source) {
|
|
|
9340
9325
|
}
|
|
9341
9326
|
function Checkbox(param) {
|
|
9342
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;
|
|
9343
|
-
var classes = useStyles$
|
|
9328
|
+
var classes = useStyles$N({
|
|
9344
9329
|
theme: tweakStyles
|
|
9345
9330
|
});
|
|
9346
9331
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9352,11 +9337,11 @@ function Checkbox(param) {
|
|
|
9352
9337
|
}, event);
|
|
9353
9338
|
};
|
|
9354
9339
|
var _obj2;
|
|
9355
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9356
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
9340
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$N(_object_spread$V({
|
|
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))
|
|
9357
9342
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
9358
9343
|
children: [
|
|
9359
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
9344
|
+
/* @__PURE__ */ jsx("input", _object_spread$V({
|
|
9360
9345
|
className: classes.input,
|
|
9361
9346
|
type: "checkbox",
|
|
9362
9347
|
checked: isSelected,
|
|
@@ -9379,7 +9364,7 @@ function Checkbox(param) {
|
|
|
9379
9364
|
]
|
|
9380
9365
|
}));
|
|
9381
9366
|
}
|
|
9382
|
-
var useStyles$
|
|
9367
|
+
var useStyles$M = createThemedStyles("CloseButton", {
|
|
9383
9368
|
root: {
|
|
9384
9369
|
width: 40,
|
|
9385
9370
|
height: 40,
|
|
@@ -9405,7 +9390,7 @@ var useStyles$K = createThemedStyles("CloseButton", {
|
|
|
9405
9390
|
}
|
|
9406
9391
|
}
|
|
9407
9392
|
});
|
|
9408
|
-
function _define_property$
|
|
9393
|
+
function _define_property$W(obj, key, value) {
|
|
9409
9394
|
if (key in obj) {
|
|
9410
9395
|
Object.defineProperty(obj, key, {
|
|
9411
9396
|
value,
|
|
@@ -9418,7 +9403,7 @@ function _define_property$T(obj, key, value) {
|
|
|
9418
9403
|
}
|
|
9419
9404
|
return obj;
|
|
9420
9405
|
}
|
|
9421
|
-
function _object_spread$
|
|
9406
|
+
function _object_spread$U(target) {
|
|
9422
9407
|
for (var i = 1; i < arguments.length; i++) {
|
|
9423
9408
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9424
9409
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9428,12 +9413,12 @@ function _object_spread$R(target) {
|
|
|
9428
9413
|
}));
|
|
9429
9414
|
}
|
|
9430
9415
|
ownKeys2.forEach(function(key) {
|
|
9431
|
-
_define_property$
|
|
9416
|
+
_define_property$W(target, key, source[key]);
|
|
9432
9417
|
});
|
|
9433
9418
|
}
|
|
9434
9419
|
return target;
|
|
9435
9420
|
}
|
|
9436
|
-
function ownKeys$
|
|
9421
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9437
9422
|
var keys2 = Object.keys(object);
|
|
9438
9423
|
if (Object.getOwnPropertySymbols) {
|
|
9439
9424
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9446,33 +9431,33 @@ function ownKeys$J(object, enumerableOnly) {
|
|
|
9446
9431
|
}
|
|
9447
9432
|
return keys2;
|
|
9448
9433
|
}
|
|
9449
|
-
function _object_spread_props$
|
|
9434
|
+
function _object_spread_props$M(target, source) {
|
|
9450
9435
|
source = source != null ? source : {};
|
|
9451
9436
|
if (Object.getOwnPropertyDescriptors) {
|
|
9452
9437
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9453
9438
|
} else {
|
|
9454
|
-
ownKeys$
|
|
9439
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9455
9440
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9456
9441
|
});
|
|
9457
9442
|
}
|
|
9458
9443
|
return target;
|
|
9459
9444
|
}
|
|
9460
9445
|
var CloseButton = function(param) {
|
|
9461
|
-
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data,
|
|
9462
|
-
var classes = useStyles$
|
|
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$M({
|
|
9463
9448
|
theme: tweakStyles
|
|
9464
9449
|
});
|
|
9465
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9450
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$M(_object_spread$U({
|
|
9466
9451
|
type: "button",
|
|
9467
9452
|
className: classes.root,
|
|
9468
9453
|
onClick: onClose
|
|
9469
9454
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
9470
9455
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
9471
|
-
type:
|
|
9456
|
+
type: icon
|
|
9472
9457
|
})
|
|
9473
9458
|
}));
|
|
9474
9459
|
};
|
|
9475
|
-
var useStyles$
|
|
9460
|
+
var useStyles$L = createThemedStyles({
|
|
9476
9461
|
root: {
|
|
9477
9462
|
display: "flex",
|
|
9478
9463
|
flexWrap: "wrap"
|
|
@@ -9565,7 +9550,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
9565
9550
|
return _array_like_to_array$k(o, minLen);
|
|
9566
9551
|
}
|
|
9567
9552
|
var Colors = function() {
|
|
9568
|
-
var classes = useStyles$
|
|
9553
|
+
var classes = useStyles$L();
|
|
9569
9554
|
var theme = useContext(ThemeContext).theme;
|
|
9570
9555
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9571
9556
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9595,7 +9580,7 @@ var Colors = function() {
|
|
|
9595
9580
|
})
|
|
9596
9581
|
});
|
|
9597
9582
|
};
|
|
9598
|
-
var useStyles$
|
|
9583
|
+
var useStyles$K = createThemedStyles("CssBaseline", {
|
|
9599
9584
|
"@global html, body": {
|
|
9600
9585
|
fontFamily: "Arial, sans-serif",
|
|
9601
9586
|
color: colors.FONT_MAIN,
|
|
@@ -9604,7 +9589,7 @@ var useStyles$I = createThemedStyles("CssBaseline", {
|
|
|
9604
9589
|
},
|
|
9605
9590
|
root: {}
|
|
9606
9591
|
});
|
|
9607
|
-
function _define_property$
|
|
9592
|
+
function _define_property$V(obj, key, value) {
|
|
9608
9593
|
if (key in obj) {
|
|
9609
9594
|
Object.defineProperty(obj, key, {
|
|
9610
9595
|
value,
|
|
@@ -9617,7 +9602,7 @@ function _define_property$S(obj, key, value) {
|
|
|
9617
9602
|
}
|
|
9618
9603
|
return obj;
|
|
9619
9604
|
}
|
|
9620
|
-
function _object_spread$
|
|
9605
|
+
function _object_spread$T(target) {
|
|
9621
9606
|
for (var i = 1; i < arguments.length; i++) {
|
|
9622
9607
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9623
9608
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9627,296 +9612,482 @@ function _object_spread$Q(target) {
|
|
|
9627
9612
|
}));
|
|
9628
9613
|
}
|
|
9629
9614
|
ownKeys2.forEach(function(key) {
|
|
9630
|
-
_define_property$
|
|
9615
|
+
_define_property$V(target, key, source[key]);
|
|
9631
9616
|
});
|
|
9632
9617
|
}
|
|
9633
9618
|
return target;
|
|
9634
9619
|
}
|
|
9635
9620
|
var CssBaseline = function(param) {
|
|
9636
9621
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9637
|
-
var classes = useStyles$
|
|
9622
|
+
var classes = useStyles$K({
|
|
9638
9623
|
theme: tweakStyles
|
|
9639
9624
|
});
|
|
9640
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9625
|
+
return /* @__PURE__ */ jsx("div", _object_spread$T({
|
|
9641
9626
|
className: classes.root
|
|
9642
9627
|
}, addDataTestId(testId), addDataAttributes(data)));
|
|
9643
9628
|
};
|
|
9644
|
-
var
|
|
9645
|
-
var PADDING_X$1 = 12;
|
|
9646
|
-
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9647
|
-
var useStyles$H = createThemedStyles("Input", {
|
|
9629
|
+
var useStyles$J = createThemedStyles("ControlGroup", {
|
|
9648
9630
|
root: {
|
|
9649
|
-
width: "100%",
|
|
9650
|
-
boxSizing: "border-box",
|
|
9651
|
-
position: "relative"
|
|
9652
|
-
},
|
|
9653
|
-
inputWrapper: {
|
|
9654
9631
|
display: "flex",
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
boxSizing: "border-box",
|
|
9658
|
-
transition: animations.defaultTransition,
|
|
9659
|
-
transitionProperty: "border-color",
|
|
9660
|
-
backgroundColor: "white",
|
|
9661
|
-
position: "relative"
|
|
9632
|
+
flexDirection: "column",
|
|
9633
|
+
width: "100%"
|
|
9662
9634
|
},
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
fontFamily: "inherit",
|
|
9666
|
-
padding: [
|
|
9667
|
-
0,
|
|
9668
|
-
PADDING_X$1
|
|
9669
|
-
]
|
|
9635
|
+
error: {
|
|
9636
|
+
color: "red"
|
|
9670
9637
|
},
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
width: "100%",
|
|
9674
|
-
height: "100%",
|
|
9675
|
-
outline: "none",
|
|
9676
|
-
boxSizing: "border-box",
|
|
9677
|
-
outlineStyle: "none",
|
|
9678
|
-
transition: animations.defaultTransition,
|
|
9679
|
-
transitionProperty: "background-color",
|
|
9680
|
-
border: "none",
|
|
9681
|
-
background: "none",
|
|
9682
|
-
"&::placeholder": {
|
|
9683
|
-
opacity: 1
|
|
9684
|
-
},
|
|
9685
|
-
MozAppearance: "textfield",
|
|
9686
|
-
"&::-webkit-inner-spin-button,&::-webkit-outer-spin-button": {
|
|
9687
|
-
WebkitAppearance: "none",
|
|
9688
|
-
margin: 0
|
|
9689
|
-
}
|
|
9638
|
+
info: {
|
|
9639
|
+
color: "gray"
|
|
9690
9640
|
},
|
|
9691
|
-
|
|
9692
|
-
display: "
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
minWidth: "1em",
|
|
9699
|
-
gridArea: "1 / 2",
|
|
9700
|
-
font: "inherit",
|
|
9701
|
-
justifySelf: "stretch"
|
|
9702
|
-
},
|
|
9703
|
-
"&::after": {
|
|
9704
|
-
maxWidth: AUTOSIZE_MAX_WIDTH,
|
|
9705
|
-
content: 'attr(data-value) " "',
|
|
9706
|
-
visibility: "hidden",
|
|
9707
|
-
whiteSpace: "pre-wrap"
|
|
9641
|
+
horizontal: {
|
|
9642
|
+
display: "flex",
|
|
9643
|
+
"& > *": {
|
|
9644
|
+
flexGrow: 1,
|
|
9645
|
+
"&:not(:first-child)": {
|
|
9646
|
+
marginLeft: -1
|
|
9647
|
+
}
|
|
9708
9648
|
}
|
|
9709
9649
|
},
|
|
9710
|
-
|
|
9711
|
-
position: "relative",
|
|
9712
|
-
zIndex: 1
|
|
9713
|
-
},
|
|
9714
|
-
unitsWrapper: {
|
|
9715
|
-
extend: "inputContent",
|
|
9716
|
-
position: "absolute",
|
|
9717
|
-
left: 0,
|
|
9718
|
-
height: "100%",
|
|
9719
|
-
boxSizing: "border-box",
|
|
9650
|
+
vertical: {
|
|
9720
9651
|
display: "flex",
|
|
9721
|
-
|
|
9722
|
-
|
|
9652
|
+
flexDirection: "column",
|
|
9653
|
+
"& > *:not(:first-child)": {
|
|
9654
|
+
marginTop: -1
|
|
9655
|
+
}
|
|
9723
9656
|
},
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
},
|
|
9727
|
-
units: {
|
|
9728
|
-
paddingLeft: 4
|
|
9657
|
+
message: {
|
|
9658
|
+
fontSize: 12
|
|
9729
9659
|
},
|
|
9730
|
-
|
|
9731
|
-
|
|
9660
|
+
children: {}
|
|
9661
|
+
});
|
|
9662
|
+
function _define_property$U(obj, key, value) {
|
|
9663
|
+
if (key in obj) {
|
|
9664
|
+
Object.defineProperty(obj, key, {
|
|
9665
|
+
value,
|
|
9666
|
+
enumerable: true,
|
|
9667
|
+
configurable: true,
|
|
9668
|
+
writable: true
|
|
9669
|
+
});
|
|
9670
|
+
} else {
|
|
9671
|
+
obj[key] = value;
|
|
9672
|
+
}
|
|
9673
|
+
return obj;
|
|
9674
|
+
}
|
|
9675
|
+
function _object_spread$S(target) {
|
|
9676
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9677
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
9678
|
+
var ownKeys2 = Object.keys(source);
|
|
9679
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9680
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
9681
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
9682
|
+
}));
|
|
9683
|
+
}
|
|
9684
|
+
ownKeys2.forEach(function(key) {
|
|
9685
|
+
_define_property$U(target, key, source[key]);
|
|
9686
|
+
});
|
|
9687
|
+
}
|
|
9688
|
+
return target;
|
|
9689
|
+
}
|
|
9690
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9691
|
+
var keys2 = Object.keys(object);
|
|
9692
|
+
if (Object.getOwnPropertySymbols) {
|
|
9693
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
9694
|
+
if (enumerableOnly) {
|
|
9695
|
+
symbols = symbols.filter(function(sym) {
|
|
9696
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9697
|
+
});
|
|
9698
|
+
}
|
|
9699
|
+
keys2.push.apply(keys2, symbols);
|
|
9700
|
+
}
|
|
9701
|
+
return keys2;
|
|
9702
|
+
}
|
|
9703
|
+
function _object_spread_props$L(target, source) {
|
|
9704
|
+
source = source != null ? source : {};
|
|
9705
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
9706
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9707
|
+
} else {
|
|
9708
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9709
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9710
|
+
});
|
|
9711
|
+
}
|
|
9712
|
+
return target;
|
|
9713
|
+
}
|
|
9714
|
+
var ControlGroup = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
9715
|
+
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, direction = param.direction, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
9716
|
+
var classes = useStyles$J({
|
|
9717
|
+
theme: tweakStyles
|
|
9718
|
+
});
|
|
9719
|
+
var shouldShowError = isReactNodeNotEmpty(errorMessage);
|
|
9720
|
+
var shouldShowInfo = isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9721
|
+
var _obj2;
|
|
9722
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$S({
|
|
9723
|
+
ref,
|
|
9724
|
+
className: classes.root,
|
|
9725
|
+
"data-invalid": shouldShowError ? true : void 0
|
|
9726
|
+
}, addDataAttributes$1(data, testId)), {
|
|
9727
|
+
children: [
|
|
9728
|
+
isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
|
|
9729
|
+
className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, direction === "horizontal"), _define_property$U(_obj2, classes.vertical, direction === "vertical"), _obj2)),
|
|
9730
|
+
children
|
|
9731
|
+
}),
|
|
9732
|
+
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9733
|
+
className: classes.message,
|
|
9734
|
+
children: [
|
|
9735
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
|
|
9736
|
+
className: classes.error
|
|
9737
|
+
}, addDataTestId(testId, "error")), {
|
|
9738
|
+
children: errorMessage
|
|
9739
|
+
})),
|
|
9740
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
|
|
9741
|
+
className: classes.info
|
|
9742
|
+
}, addDataTestId(testId, "info")), {
|
|
9743
|
+
children: infoMessage
|
|
9744
|
+
}))
|
|
9745
|
+
]
|
|
9746
|
+
})
|
|
9747
|
+
]
|
|
9748
|
+
}));
|
|
9749
|
+
});
|
|
9750
|
+
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$2 = dimensions.Z_INDEX;
|
|
9751
|
+
var useStyles$I = createThemedStyles("ControlWrapper", {
|
|
9752
|
+
root: {
|
|
9753
|
+
"--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
|
|
9754
|
+
// borders
|
|
9755
|
+
"--control-padding": "".concat(CONTROL$1.PADDING, "px"),
|
|
9756
|
+
"--icon-size": "".concat(CONTROL$1.ICON_SIZE, "px"),
|
|
9757
|
+
"--icon-inner-size": "".concat(CONTROL$1.ICON_INNER_SIZE, "px"),
|
|
9758
|
+
"--icon-gap": "".concat(CONTROL$1.ICON_GAP, "px"),
|
|
9759
|
+
display: "flex",
|
|
9760
|
+
width: "100%",
|
|
9761
|
+
backgroundColor: "white",
|
|
9762
|
+
position: "relative",
|
|
9763
|
+
border: [
|
|
9764
|
+
"solid",
|
|
9765
|
+
1,
|
|
9766
|
+
"gray"
|
|
9767
|
+
],
|
|
9768
|
+
borderRadius: 8,
|
|
9769
|
+
boxSizing: "border-box",
|
|
9770
|
+
zIndex: 0
|
|
9732
9771
|
},
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
paddingLeft: 0
|
|
9772
|
+
invalid: {
|
|
9773
|
+
zIndex: Z_INDEX$2.CONTROL_INVALID
|
|
9736
9774
|
},
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
display: "block",
|
|
9742
|
-
transform: "scale(0.75) translateY(-120%)"
|
|
9743
|
-
}
|
|
9775
|
+
disabled: {},
|
|
9776
|
+
focused: {
|
|
9777
|
+
position: "relative",
|
|
9778
|
+
zIndex: Z_INDEX$2.CONTROL_FOCUS
|
|
9744
9779
|
},
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
left: -12,
|
|
9750
|
-
top: "50%",
|
|
9751
|
-
transform: "translate(0, -50%)",
|
|
9752
|
-
width: 6,
|
|
9753
|
-
height: 6,
|
|
9754
|
-
borderRadius: "50%"
|
|
9755
|
-
}
|
|
9780
|
+
withValue: {},
|
|
9781
|
+
loading: {},
|
|
9782
|
+
minContent: {
|
|
9783
|
+
width: "min-content"
|
|
9756
9784
|
},
|
|
9757
9785
|
label: {
|
|
9758
9786
|
position: "absolute",
|
|
9759
9787
|
pointerEvents: "none",
|
|
9760
|
-
left:
|
|
9788
|
+
left: "var(--control-padding)",
|
|
9761
9789
|
top: "50%",
|
|
9762
9790
|
transformOrigin: "top left",
|
|
9763
9791
|
transform: "translateY(-50%)",
|
|
9764
9792
|
transition: animations.defaultTransition,
|
|
9765
9793
|
transitionProperty: "transform, color",
|
|
9766
|
-
fontSize: 16
|
|
9767
|
-
|
|
9768
|
-
floatingWithoutPadding: {
|
|
9769
|
-
left: 0
|
|
9794
|
+
fontSize: 16,
|
|
9795
|
+
zIndex: 1
|
|
9770
9796
|
},
|
|
9797
|
+
activeLabel: {},
|
|
9771
9798
|
requiredLabel: {
|
|
9772
9799
|
"&:after": {
|
|
9773
9800
|
content: '""',
|
|
9801
|
+
display: "block",
|
|
9774
9802
|
position: "absolute",
|
|
9803
|
+
top: 0,
|
|
9775
9804
|
right: -8,
|
|
9776
|
-
top: 4,
|
|
9777
|
-
transform: "translate(0, -50%)",
|
|
9778
9805
|
width: 6,
|
|
9779
9806
|
height: 6,
|
|
9780
|
-
borderRadius: "50%"
|
|
9807
|
+
borderRadius: "50%",
|
|
9808
|
+
backgroundColor: "orange"
|
|
9781
9809
|
}
|
|
9782
9810
|
},
|
|
9783
|
-
|
|
9784
|
-
|
|
9811
|
+
disabledLabel: {},
|
|
9812
|
+
wrapper: {
|
|
9813
|
+
display: "flex",
|
|
9814
|
+
flexGrow: 1,
|
|
9815
|
+
minWidth: 0,
|
|
9816
|
+
// Нужно для селекта
|
|
9817
|
+
textAlign: "left"
|
|
9785
9818
|
},
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
0,
|
|
9791
|
-
0,
|
|
9792
|
-
0
|
|
9793
|
-
]
|
|
9819
|
+
controls: {
|
|
9820
|
+
display: "flex",
|
|
9821
|
+
marginLeft: "auto",
|
|
9822
|
+
flexShrink: 0
|
|
9794
9823
|
},
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9824
|
+
icon: {
|
|
9825
|
+
display: "flex",
|
|
9826
|
+
alignItems: "center",
|
|
9827
|
+
justifyContent: "center",
|
|
9828
|
+
minWidth: "var(--icon-size)",
|
|
9829
|
+
width: "var(--icon-size)",
|
|
9830
|
+
height: "100%",
|
|
9831
|
+
flexShrink: 0,
|
|
9832
|
+
cursor: "default",
|
|
9833
|
+
"&:last-child": {
|
|
9834
|
+
paddingRight: 6
|
|
9835
|
+
}
|
|
9803
9836
|
},
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
borderWidth: [
|
|
9807
|
-
0,
|
|
9808
|
-
0,
|
|
9809
|
-
0,
|
|
9810
|
-
1
|
|
9811
|
-
]
|
|
9837
|
+
iconInner: {
|
|
9838
|
+
width: "var(--icon-inner-size)"
|
|
9812
9839
|
},
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9840
|
+
customIcon: {
|
|
9841
|
+
width: "unset",
|
|
9842
|
+
"& $iconInner": {
|
|
9843
|
+
width: "unset"
|
|
9844
|
+
}
|
|
9845
|
+
},
|
|
9846
|
+
endIcon: {},
|
|
9847
|
+
activeIcon: {
|
|
9848
|
+
cursor: "pointer",
|
|
9849
|
+
outline: "none"
|
|
9821
9850
|
},
|
|
9822
|
-
|
|
9851
|
+
clearIcon: {
|
|
9852
|
+
"& $iconInner": {
|
|
9853
|
+
width: "var(--icon-inner-size)"
|
|
9854
|
+
}
|
|
9855
|
+
},
|
|
9856
|
+
loader: {
|
|
9857
|
+
"& $iconInner": {
|
|
9858
|
+
width: "var(--icon-inner-size)"
|
|
9859
|
+
}
|
|
9860
|
+
},
|
|
9861
|
+
/* groupPositions */
|
|
9862
|
+
"placement-top": {
|
|
9823
9863
|
borderBottomLeftRadius: 0,
|
|
9824
9864
|
borderBottomRightRadius: 0
|
|
9825
9865
|
},
|
|
9826
|
-
bottom: {
|
|
9866
|
+
"placement-bottom": {
|
|
9827
9867
|
borderTopLeftRadius: 0,
|
|
9828
9868
|
borderTopRightRadius: 0
|
|
9829
9869
|
},
|
|
9830
|
-
"top-left": {
|
|
9870
|
+
"placement-top-left": {
|
|
9831
9871
|
borderTopRightRadius: 0,
|
|
9832
9872
|
borderBottomLeftRadius: 0,
|
|
9833
9873
|
borderBottomRightRadius: 0
|
|
9834
9874
|
},
|
|
9835
|
-
"top-right": {
|
|
9875
|
+
"placement-top-right": {
|
|
9836
9876
|
borderTopLeftRadius: 0,
|
|
9837
9877
|
borderBottomLeftRadius: 0,
|
|
9838
9878
|
borderBottomRightRadius: 0
|
|
9839
9879
|
},
|
|
9840
|
-
"bottom-left": {
|
|
9880
|
+
"placement-bottom-left": {
|
|
9841
9881
|
borderTopLeftRadius: 0,
|
|
9842
9882
|
borderTopRightRadius: 0,
|
|
9843
9883
|
borderBottomRightRadius: 0
|
|
9844
9884
|
},
|
|
9845
|
-
"bottom-right": {
|
|
9885
|
+
"placement-bottom-right": {
|
|
9846
9886
|
borderTopLeftRadius: 0,
|
|
9847
9887
|
borderTopRightRadius: 0,
|
|
9848
9888
|
borderBottomLeftRadius: 0
|
|
9849
9889
|
},
|
|
9850
|
-
left: {
|
|
9890
|
+
"placement-left": {
|
|
9851
9891
|
borderTopRightRadius: 0,
|
|
9852
9892
|
borderBottomRightRadius: 0
|
|
9853
9893
|
},
|
|
9854
|
-
right: {
|
|
9894
|
+
"placement-right": {
|
|
9855
9895
|
borderTopLeftRadius: 0,
|
|
9856
9896
|
borderBottomLeftRadius: 0
|
|
9857
9897
|
},
|
|
9858
|
-
middle: {
|
|
9898
|
+
"placement-middle": {
|
|
9859
9899
|
borderRadius: 0
|
|
9860
|
-
}
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9900
|
+
}
|
|
9901
|
+
});
|
|
9902
|
+
function _define_property$T(obj, key, value) {
|
|
9903
|
+
if (key in obj) {
|
|
9904
|
+
Object.defineProperty(obj, key, {
|
|
9905
|
+
value,
|
|
9906
|
+
enumerable: true,
|
|
9907
|
+
configurable: true,
|
|
9908
|
+
writable: true
|
|
9909
|
+
});
|
|
9910
|
+
} else {
|
|
9911
|
+
obj[key] = value;
|
|
9912
|
+
}
|
|
9913
|
+
return obj;
|
|
9914
|
+
}
|
|
9915
|
+
function _object_spread$R(target) {
|
|
9916
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9917
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
9918
|
+
var ownKeys2 = Object.keys(source);
|
|
9919
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9920
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
9921
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
9922
|
+
}));
|
|
9923
|
+
}
|
|
9924
|
+
ownKeys2.forEach(function(key) {
|
|
9925
|
+
_define_property$T(target, key, source[key]);
|
|
9926
|
+
});
|
|
9927
|
+
}
|
|
9928
|
+
return target;
|
|
9929
|
+
}
|
|
9930
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9931
|
+
var keys2 = Object.keys(object);
|
|
9932
|
+
if (Object.getOwnPropertySymbols) {
|
|
9933
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
9934
|
+
if (enumerableOnly) {
|
|
9935
|
+
symbols = symbols.filter(function(sym) {
|
|
9936
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9937
|
+
});
|
|
9938
|
+
}
|
|
9939
|
+
keys2.push.apply(keys2, symbols);
|
|
9940
|
+
}
|
|
9941
|
+
return keys2;
|
|
9942
|
+
}
|
|
9943
|
+
function _object_spread_props$K(target, source) {
|
|
9944
|
+
source = source != null ? source : {};
|
|
9945
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
9946
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9947
|
+
} else {
|
|
9948
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9949
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9950
|
+
});
|
|
9951
|
+
}
|
|
9952
|
+
return target;
|
|
9953
|
+
}
|
|
9954
|
+
var ControlWrapper = function(param) {
|
|
9955
|
+
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$I({
|
|
9957
|
+
theme: tweakStyles
|
|
9958
|
+
});
|
|
9959
|
+
var hasEndIcon = !isLoading && isReactNodeNotEmpty(icon);
|
|
9960
|
+
var hasClearButton = !isDisabled && !isLoading && hasValue && isNotEmpty(onClear);
|
|
9961
|
+
var hasControls = hasEndIcon || hasClearButton || isLoading;
|
|
9962
|
+
var tweakPreloaderStyles = useTweakStyles({
|
|
9963
|
+
tweakStyles,
|
|
9964
|
+
className: "tweakPreloader",
|
|
9965
|
+
currentComponentName: "ControlWrapper"
|
|
9966
|
+
});
|
|
9967
|
+
var _obj2, _obj1, _obj22;
|
|
9968
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$R({
|
|
9969
|
+
className: clsx(classes.root, isNotEmpty(groupPlacement) && [
|
|
9970
|
+
classes["placement-".concat(groupPlacement)]
|
|
9971
|
+
], (_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
|
+
}, addDataAttributes$1(data, testId)), {
|
|
9973
|
+
children: [
|
|
9974
|
+
isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
9975
|
+
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, isFocused || hasValue), _obj1)),
|
|
9976
|
+
children: label
|
|
9977
|
+
}),
|
|
9978
|
+
/* @__PURE__ */ jsxs("div", {
|
|
9979
|
+
className: classes.wrapper,
|
|
9980
|
+
children: [
|
|
9981
|
+
children,
|
|
9982
|
+
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9983
|
+
className: classes.controls,
|
|
9984
|
+
children: [
|
|
9985
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
9986
|
+
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9987
|
+
}, addClickHandler(onClear), addDataTestId(testId, "clear")), {
|
|
9988
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9989
|
+
className: classes.iconInner,
|
|
9990
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
9991
|
+
type: "close"
|
|
9992
|
+
})
|
|
9993
|
+
})
|
|
9994
|
+
})),
|
|
9995
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
9996
|
+
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
|
+
}, addClickHandler(onIconClick, !isDisabled), addDataTestId(testId, "icon")), {
|
|
9998
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9999
|
+
className: classes.iconInner,
|
|
10000
|
+
children: renderIcon(icon)
|
|
10001
|
+
})
|
|
10002
|
+
})),
|
|
10003
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
10004
|
+
className: clsx(classes.icon, classes.loader)
|
|
10005
|
+
}, addDataTestId(testId, "loading")), {
|
|
10006
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
10007
|
+
className: classes.iconInner,
|
|
10008
|
+
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
10009
|
+
tweakStyles: tweakPreloaderStyles
|
|
10010
|
+
})
|
|
10011
|
+
})
|
|
10012
|
+
}))
|
|
10013
|
+
]
|
|
10014
|
+
})
|
|
10015
|
+
]
|
|
10016
|
+
})
|
|
10017
|
+
]
|
|
10018
|
+
}));
|
|
10019
|
+
};
|
|
10020
|
+
var PADDING_WITH_UNITS = 8;
|
|
10021
|
+
var useStyles$H = createThemedStyles("Input", {
|
|
10022
|
+
inputContent: {
|
|
10023
|
+
height: "var(--control-height)",
|
|
9868
10024
|
padding: [
|
|
9869
10025
|
0,
|
|
9870
|
-
|
|
10026
|
+
"var(--control-padding)"
|
|
9871
10027
|
],
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
"
|
|
9877
|
-
|
|
10028
|
+
fontSize: 16,
|
|
10029
|
+
fontFamily: "inherit"
|
|
10030
|
+
},
|
|
10031
|
+
input: {
|
|
10032
|
+
extend: "inputContent",
|
|
10033
|
+
width: "100%",
|
|
10034
|
+
outline: "none",
|
|
10035
|
+
outlineStyle: "none",
|
|
10036
|
+
boxSizing: "border-box",
|
|
10037
|
+
border: "none",
|
|
10038
|
+
background: "none",
|
|
10039
|
+
color: "black",
|
|
10040
|
+
"&[readonly]": {
|
|
10041
|
+
cursor: "default"
|
|
10042
|
+
},
|
|
10043
|
+
"&::placeholder": {
|
|
10044
|
+
opacity: 1
|
|
9878
10045
|
},
|
|
9879
|
-
"
|
|
9880
|
-
|
|
10046
|
+
"&::-webkit-date-and-time-value": {
|
|
10047
|
+
textAlign: "left"
|
|
10048
|
+
},
|
|
10049
|
+
MozAppearance: "textfield",
|
|
10050
|
+
"&::-webkit-inner-spin-button,&::-webkit-outer-spin-button,&::-webkit-calendar-picker-indicator": {
|
|
10051
|
+
display: "none",
|
|
10052
|
+
WebkitAppearance: "none",
|
|
10053
|
+
margin: 0
|
|
9881
10054
|
}
|
|
9882
10055
|
},
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
withIcons: {
|
|
9890
|
-
paddingRight: 4
|
|
10056
|
+
autoSizeWrapper: {
|
|
10057
|
+
position: "relative",
|
|
10058
|
+
display: "flex",
|
|
10059
|
+
minWidth: 0,
|
|
10060
|
+
zIndex: 0,
|
|
10061
|
+
flexGrow: 1
|
|
9891
10062
|
},
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
fontSize: 12
|
|
10063
|
+
autoSized: {
|
|
10064
|
+
position: "absolute",
|
|
10065
|
+
top: 0,
|
|
10066
|
+
left: 0,
|
|
10067
|
+
height: "100%"
|
|
9898
10068
|
},
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
10069
|
+
withUnits: {
|
|
10070
|
+
extend: "autoSized",
|
|
10071
|
+
paddingRight: "calc(".concat(PADDING_WITH_UNITS, "px + var(--units-width) - 1px)"),
|
|
10072
|
+
"& + $fakeValue": {
|
|
10073
|
+
paddingRight: PADDING_WITH_UNITS
|
|
10074
|
+
}
|
|
9903
10075
|
},
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
],
|
|
9912
|
-
zIndex: 1
|
|
10076
|
+
withLabel: {},
|
|
10077
|
+
fakeValue: {
|
|
10078
|
+
extend: "inputContent",
|
|
10079
|
+
visibility: "hidden",
|
|
10080
|
+
maxWidth: "100%",
|
|
10081
|
+
overflow: "hidden",
|
|
10082
|
+
minWidth: 8
|
|
9913
10083
|
},
|
|
9914
|
-
|
|
9915
|
-
|
|
9916
|
-
|
|
10084
|
+
units: {
|
|
10085
|
+
alignSelf: "center",
|
|
10086
|
+
paddingRight: "var(--control-padding)"
|
|
9917
10087
|
},
|
|
9918
|
-
|
|
9919
|
-
|
|
10088
|
+
focusedInput: {},
|
|
10089
|
+
disabledInput: {},
|
|
10090
|
+
invalidInput: {}
|
|
9920
10091
|
});
|
|
9921
10092
|
function _array_like_to_array$j(arr, len) {
|
|
9922
10093
|
if (len == null || len > arr.length)
|
|
@@ -9958,7 +10129,7 @@ function _async_to_generator$5(fn3) {
|
|
|
9958
10129
|
});
|
|
9959
10130
|
};
|
|
9960
10131
|
}
|
|
9961
|
-
function _define_property$
|
|
10132
|
+
function _define_property$S(obj, key, value) {
|
|
9962
10133
|
if (key in obj) {
|
|
9963
10134
|
Object.defineProperty(obj, key, {
|
|
9964
10135
|
value,
|
|
@@ -10002,7 +10173,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
10002
10173
|
function _non_iterable_rest$j() {
|
|
10003
10174
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10004
10175
|
}
|
|
10005
|
-
function _object_spread$
|
|
10176
|
+
function _object_spread$Q(target) {
|
|
10006
10177
|
for (var i = 1; i < arguments.length; i++) {
|
|
10007
10178
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10008
10179
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10012,12 +10183,12 @@ function _object_spread$P(target) {
|
|
|
10012
10183
|
}));
|
|
10013
10184
|
}
|
|
10014
10185
|
ownKeys2.forEach(function(key) {
|
|
10015
|
-
_define_property$
|
|
10186
|
+
_define_property$S(target, key, source[key]);
|
|
10016
10187
|
});
|
|
10017
10188
|
}
|
|
10018
10189
|
return target;
|
|
10019
10190
|
}
|
|
10020
|
-
function ownKeys$
|
|
10191
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
10021
10192
|
var keys2 = Object.keys(object);
|
|
10022
10193
|
if (Object.getOwnPropertySymbols) {
|
|
10023
10194
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10030,21 +10201,21 @@ function ownKeys$I(object, enumerableOnly) {
|
|
|
10030
10201
|
}
|
|
10031
10202
|
return keys2;
|
|
10032
10203
|
}
|
|
10033
|
-
function _object_spread_props$
|
|
10204
|
+
function _object_spread_props$J(target, source) {
|
|
10034
10205
|
source = source != null ? source : {};
|
|
10035
10206
|
if (Object.getOwnPropertyDescriptors) {
|
|
10036
10207
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10037
10208
|
} else {
|
|
10038
|
-
ownKeys$
|
|
10209
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
10039
10210
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10040
10211
|
});
|
|
10041
10212
|
}
|
|
10042
10213
|
return target;
|
|
10043
10214
|
}
|
|
10044
|
-
function _object_without_properties$
|
|
10215
|
+
function _object_without_properties$i(source, excluded) {
|
|
10045
10216
|
if (source == null)
|
|
10046
10217
|
return {};
|
|
10047
|
-
var target = _object_without_properties_loose$
|
|
10218
|
+
var target = _object_without_properties_loose$i(source, excluded);
|
|
10048
10219
|
var key, i;
|
|
10049
10220
|
if (Object.getOwnPropertySymbols) {
|
|
10050
10221
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10059,7 +10230,7 @@ function _object_without_properties$g(source, excluded) {
|
|
|
10059
10230
|
}
|
|
10060
10231
|
return target;
|
|
10061
10232
|
}
|
|
10062
|
-
function _object_without_properties_loose$
|
|
10233
|
+
function _object_without_properties_loose$i(source, excluded) {
|
|
10063
10234
|
if (source == null)
|
|
10064
10235
|
return {};
|
|
10065
10236
|
var target = {};
|
|
@@ -10191,38 +10362,32 @@ function _ts_generator$5(thisArg, body) {
|
|
|
10191
10362
|
};
|
|
10192
10363
|
}
|
|
10193
10364
|
}
|
|
10194
|
-
var
|
|
10195
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value,
|
|
10365
|
+
var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10366
|
+
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, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, controlProps = _object_without_properties$i(_param, [
|
|
10196
10367
|
"value",
|
|
10197
|
-
"label",
|
|
10198
10368
|
"placeholder",
|
|
10369
|
+
"label",
|
|
10199
10370
|
"type",
|
|
10200
10371
|
"isDisabled",
|
|
10372
|
+
"autoComplete",
|
|
10373
|
+
"inputMode",
|
|
10201
10374
|
"isReadonly",
|
|
10202
|
-
"hasFloatingLabel",
|
|
10203
10375
|
"isInvalid",
|
|
10204
10376
|
"isActive",
|
|
10205
10377
|
"isClearable",
|
|
10206
|
-
"
|
|
10207
|
-
"
|
|
10208
|
-
"errorPosition",
|
|
10209
|
-
"inlineStyle",
|
|
10210
|
-
"border",
|
|
10211
|
-
"isRequired",
|
|
10212
|
-
"isLoading",
|
|
10213
|
-
"isAutoSizeable",
|
|
10214
|
-
"defaultSize",
|
|
10215
|
-
"iconType",
|
|
10216
|
-
"hasRequiredLabel",
|
|
10217
|
-
"data",
|
|
10378
|
+
"isAutoSized",
|
|
10379
|
+
"name",
|
|
10218
10380
|
"tweakStyles",
|
|
10381
|
+
"maxLength",
|
|
10219
10382
|
"shouldFocusOnMount",
|
|
10220
10383
|
"units",
|
|
10221
10384
|
"testId",
|
|
10385
|
+
"tabIndex",
|
|
10222
10386
|
"onChange",
|
|
10387
|
+
"onPaste",
|
|
10223
10388
|
"onFocus",
|
|
10224
10389
|
"onBlur",
|
|
10225
|
-
"
|
|
10390
|
+
"onKeyDown",
|
|
10226
10391
|
"mask",
|
|
10227
10392
|
"maskPlaceholder",
|
|
10228
10393
|
"alwaysShowMask",
|
|
@@ -10232,13 +10397,27 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10232
10397
|
var classes = useStyles$H({
|
|
10233
10398
|
theme: tweakStyles
|
|
10234
10399
|
});
|
|
10235
|
-
var
|
|
10400
|
+
var tweakControlWrapperStyles = useTweakStyles({
|
|
10236
10401
|
tweakStyles,
|
|
10237
|
-
className: "
|
|
10402
|
+
className: "tweakControlWrapper",
|
|
10238
10403
|
currentComponentName: "Input"
|
|
10239
10404
|
});
|
|
10240
10405
|
var _useState = _sliced_to_array$j(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
10406
|
+
var _useState1 = _sliced_to_array$j(useState(), 2), unitsWidth = _useState1[0], setUnitsWidth = _useState1[1];
|
|
10241
10407
|
var inputRef = useRef(null);
|
|
10408
|
+
var mergedRef = mergeRefs([
|
|
10409
|
+
ref,
|
|
10410
|
+
inputRef
|
|
10411
|
+
]);
|
|
10412
|
+
var inputMode = initialInputMode !== null && initialInputMode !== void 0 ? initialInputMode : [
|
|
10413
|
+
"email",
|
|
10414
|
+
"tel",
|
|
10415
|
+
"url"
|
|
10416
|
+
].includes(type) ? type : void 0;
|
|
10417
|
+
var hasFocus = isFocused || isActive;
|
|
10418
|
+
var hasValue = isNotEmpty(value) && value !== "";
|
|
10419
|
+
var hasUnits = isReactNodeNotEmpty(units);
|
|
10420
|
+
var hasPlaceholder = (!isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
|
|
10242
10421
|
var handleChange = function(event) {
|
|
10243
10422
|
onChange(event.currentTarget.value, event);
|
|
10244
10423
|
};
|
|
@@ -10250,9 +10429,9 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10250
10429
|
setFocused(false);
|
|
10251
10430
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
10252
10431
|
};
|
|
10253
|
-
var
|
|
10432
|
+
var handleInputClear = function() {
|
|
10254
10433
|
var _ref = _async_to_generator$5(function(event) {
|
|
10255
|
-
var
|
|
10434
|
+
var _inputRef_current;
|
|
10256
10435
|
return _ts_generator$5(this, function(_state) {
|
|
10257
10436
|
switch (_state.label) {
|
|
10258
10437
|
case 0:
|
|
@@ -10262,114 +10441,195 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10262
10441
|
];
|
|
10263
10442
|
case 1:
|
|
10264
10443
|
_state.sent();
|
|
10265
|
-
|
|
10266
|
-
(_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.focus();
|
|
10444
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
10267
10445
|
return [
|
|
10268
10446
|
2
|
|
10269
10447
|
];
|
|
10270
10448
|
}
|
|
10271
10449
|
});
|
|
10272
10450
|
});
|
|
10273
|
-
return function
|
|
10451
|
+
return function handleInputClear2(event) {
|
|
10274
10452
|
return _ref.apply(this, arguments);
|
|
10275
10453
|
};
|
|
10276
10454
|
}();
|
|
10277
|
-
var
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
var hasLabel = isReactNodeNotEmpty(label);
|
|
10283
|
-
var isLabelActive = hasFocus && !isReadonly || hasValue || shouldAlwaysShowPlaceholder;
|
|
10284
|
-
var hasPlaceholder = (!hasLabel || isLabelActive) && isStringNotEmpty(placeholder);
|
|
10285
|
-
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
10455
|
+
var unitsRef = useCallback(function(node) {
|
|
10456
|
+
setUnitsWidth(node === null || node === void 0 ? void 0 : node.clientWidth);
|
|
10457
|
+
}, [
|
|
10458
|
+
units
|
|
10459
|
+
]);
|
|
10286
10460
|
var _obj2;
|
|
10287
|
-
var props =
|
|
10288
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10461
|
+
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)),
|
|
10463
|
+
style: hasUnits && hasValue ? {
|
|
10464
|
+
"--units-width": "".concat(unitsWidth, "px")
|
|
10465
|
+
} : void 0,
|
|
10292
10466
|
value,
|
|
10293
10467
|
type,
|
|
10468
|
+
autoComplete,
|
|
10469
|
+
inputMode,
|
|
10294
10470
|
disabled: isDisabled,
|
|
10295
10471
|
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
10296
|
-
|
|
10472
|
+
name,
|
|
10473
|
+
maxLength,
|
|
10297
10474
|
readOnly: isReadonly,
|
|
10298
|
-
|
|
10475
|
+
tabIndex,
|
|
10476
|
+
onKeyDown,
|
|
10477
|
+
onPaste,
|
|
10478
|
+
onFocus: handleFocus,
|
|
10479
|
+
onBlur: handleBlur,
|
|
10480
|
+
onChange: handleChange
|
|
10481
|
+
}, addDataTestId(testId, "input"));
|
|
10482
|
+
useEffect(function() {
|
|
10483
|
+
if (shouldFocusOnMount) {
|
|
10484
|
+
var _inputRef_current;
|
|
10485
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
10486
|
+
}
|
|
10487
|
+
}, []);
|
|
10488
|
+
var inputContent = /* @__PURE__ */ jsxs(Fragment, {
|
|
10489
|
+
children: [
|
|
10490
|
+
isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$Q({
|
|
10491
|
+
ref: mergedRef,
|
|
10492
|
+
mask,
|
|
10493
|
+
maskPlaceholder,
|
|
10494
|
+
alwaysShowMask,
|
|
10495
|
+
beforeMaskedStateChange
|
|
10496
|
+
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$Q({
|
|
10497
|
+
ref: mergedRef
|
|
10498
|
+
}, props)),
|
|
10499
|
+
(hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
|
|
10500
|
+
className: classes.fakeValue,
|
|
10501
|
+
children: value
|
|
10502
|
+
}),
|
|
10503
|
+
hasUnits && hasValue && /* @__PURE__ */ jsx("div", {
|
|
10504
|
+
className: classes.units,
|
|
10505
|
+
ref: unitsRef,
|
|
10506
|
+
children: units
|
|
10507
|
+
})
|
|
10508
|
+
]
|
|
10509
|
+
});
|
|
10510
|
+
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$J(_object_spread$Q({
|
|
10511
|
+
label,
|
|
10512
|
+
isDisabled,
|
|
10513
|
+
isFocused: hasFocus,
|
|
10514
|
+
isInvalid,
|
|
10515
|
+
hasValue: hasValue || hasPlaceholder,
|
|
10516
|
+
isFullWidth: !isAutoSized,
|
|
10517
|
+
tweakStyles: tweakControlWrapperStyles,
|
|
10518
|
+
onClear: isClearable && hasValue ? handleInputClear : void 0
|
|
10519
|
+
}, controlProps), {
|
|
10520
|
+
children: hasUnits || isAutoSized ? /* @__PURE__ */ jsx("div", {
|
|
10521
|
+
className: classes.autoSizeWrapper,
|
|
10522
|
+
children: inputContent
|
|
10523
|
+
}) : inputContent
|
|
10524
|
+
}));
|
|
10525
|
+
});
|
|
10526
|
+
function _define_property$R(obj, key, value) {
|
|
10527
|
+
if (key in obj) {
|
|
10528
|
+
Object.defineProperty(obj, key, {
|
|
10529
|
+
value,
|
|
10530
|
+
enumerable: true,
|
|
10531
|
+
configurable: true,
|
|
10532
|
+
writable: true
|
|
10533
|
+
});
|
|
10534
|
+
} else {
|
|
10535
|
+
obj[key] = value;
|
|
10536
|
+
}
|
|
10537
|
+
return obj;
|
|
10538
|
+
}
|
|
10539
|
+
function _object_spread$P(target) {
|
|
10540
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10541
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
10542
|
+
var ownKeys2 = Object.keys(source);
|
|
10543
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
10544
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
10545
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
10546
|
+
}));
|
|
10547
|
+
}
|
|
10548
|
+
ownKeys2.forEach(function(key) {
|
|
10549
|
+
_define_property$R(target, key, source[key]);
|
|
10550
|
+
});
|
|
10551
|
+
}
|
|
10552
|
+
return target;
|
|
10553
|
+
}
|
|
10554
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10555
|
+
var keys2 = Object.keys(object);
|
|
10556
|
+
if (Object.getOwnPropertySymbols) {
|
|
10557
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
10558
|
+
if (enumerableOnly) {
|
|
10559
|
+
symbols = symbols.filter(function(sym) {
|
|
10560
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10561
|
+
});
|
|
10562
|
+
}
|
|
10563
|
+
keys2.push.apply(keys2, symbols);
|
|
10564
|
+
}
|
|
10565
|
+
return keys2;
|
|
10566
|
+
}
|
|
10567
|
+
function _object_spread_props$I(target, source) {
|
|
10568
|
+
source = source != null ? source : {};
|
|
10569
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
10570
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10571
|
+
} else {
|
|
10572
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10573
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10574
|
+
});
|
|
10575
|
+
}
|
|
10576
|
+
return target;
|
|
10577
|
+
}
|
|
10578
|
+
function _object_without_properties$h(source, excluded) {
|
|
10579
|
+
if (source == null)
|
|
10580
|
+
return {};
|
|
10581
|
+
var target = _object_without_properties_loose$h(source, excluded);
|
|
10582
|
+
var key, i;
|
|
10583
|
+
if (Object.getOwnPropertySymbols) {
|
|
10584
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
10585
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
10586
|
+
key = sourceSymbolKeys[i];
|
|
10587
|
+
if (excluded.indexOf(key) >= 0)
|
|
10588
|
+
continue;
|
|
10589
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
10590
|
+
continue;
|
|
10591
|
+
target[key] = source[key];
|
|
10592
|
+
}
|
|
10593
|
+
}
|
|
10594
|
+
return target;
|
|
10595
|
+
}
|
|
10596
|
+
function _object_without_properties_loose$h(source, excluded) {
|
|
10597
|
+
if (source == null)
|
|
10598
|
+
return {};
|
|
10599
|
+
var target = {};
|
|
10600
|
+
var sourceKeys = Object.keys(source);
|
|
10601
|
+
var key, i;
|
|
10602
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
10603
|
+
key = sourceKeys[i];
|
|
10604
|
+
if (excluded.indexOf(key) >= 0)
|
|
10605
|
+
continue;
|
|
10606
|
+
target[key] = source[key];
|
|
10607
|
+
}
|
|
10608
|
+
return target;
|
|
10609
|
+
}
|
|
10610
|
+
var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10611
|
+
var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$h(_param, [
|
|
10612
|
+
"infoMessage",
|
|
10613
|
+
"errorMessage",
|
|
10614
|
+
"isInvalid",
|
|
10615
|
+
"testId",
|
|
10616
|
+
"tweakStyles"
|
|
10617
|
+
]);
|
|
10618
|
+
var tweakControlGroupStyles = useTweakStyles({
|
|
10619
|
+
tweakStyles,
|
|
10620
|
+
className: "tweakControlGroup"
|
|
10299
10621
|
});
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$P({
|
|
10312
|
-
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
10313
|
-
mask,
|
|
10314
|
-
maskPlaceholder,
|
|
10315
|
-
alwaysShowMask,
|
|
10316
|
-
beforeMaskedStateChange
|
|
10317
|
-
}, props)),
|
|
10318
|
-
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
10319
|
-
className: clsx(classes.label, (_obj22 = {}, _define_property$R(_obj22, classes.invalidLabel, isInvalid), _define_property$R(_obj22, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$R(_obj22, classes.activeLabel, isLabelActive), _define_property$R(_obj22, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
10320
|
-
_define_property$R(_obj22, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj22)),
|
|
10321
|
-
children: label
|
|
10322
|
-
}),
|
|
10323
|
-
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
10324
|
-
className: clsx(classes.unitsWrapper, _define_property$R({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
10325
|
-
children: [
|
|
10326
|
-
/* @__PURE__ */ jsx("span", {
|
|
10327
|
-
className: classes.fakeValue,
|
|
10328
|
-
children: value
|
|
10329
|
-
}),
|
|
10330
|
-
/* @__PURE__ */ jsx("span", {
|
|
10331
|
-
className: classes.units,
|
|
10332
|
-
children: units
|
|
10333
|
-
})
|
|
10334
|
-
]
|
|
10335
|
-
}),
|
|
10336
|
-
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
10337
|
-
className: classes.controls,
|
|
10338
|
-
children: [
|
|
10339
|
-
isLoading && /* @__PURE__ */ jsx("div", {
|
|
10340
|
-
className: clsx(classes.inputIcon, classes.loading),
|
|
10341
|
-
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
10342
|
-
tweakStyles: tweakPreloaderStyles
|
|
10343
|
-
})
|
|
10344
|
-
}),
|
|
10345
|
-
!isDisabled && hasClearIcon && /* @__PURE__ */ jsx("div", {
|
|
10346
|
-
className: clsx(classes.clearIcon, classes.activeIcon),
|
|
10347
|
-
onMouseDown: function(event) {
|
|
10348
|
-
return event.preventDefault();
|
|
10349
|
-
},
|
|
10350
|
-
onClick: handleOnInputClear,
|
|
10351
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
10352
|
-
type: "close"
|
|
10353
|
-
})
|
|
10354
|
-
}),
|
|
10355
|
-
isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
10356
|
-
className: clsx(classes.inputIcon, _define_property$R({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
10357
|
-
onClick: !isDisabled ? onIconClick : void 0,
|
|
10358
|
-
children: renderIcon(iconType)
|
|
10359
|
-
})
|
|
10360
|
-
]
|
|
10361
|
-
})
|
|
10362
|
-
]
|
|
10363
|
-
})),
|
|
10364
|
-
isStringNotEmpty(infoMessage) && /* @__PURE__ */ jsx("div", {
|
|
10365
|
-
className: classes.info,
|
|
10366
|
-
children: infoMessage
|
|
10367
|
-
}),
|
|
10368
|
-
isStringNotEmpty(errorMessage) && /* @__PURE__ */ jsx("div", {
|
|
10369
|
-
className: clsx(classes.error, classes["error-".concat(errorPosition)]),
|
|
10370
|
-
children: errorMessage
|
|
10371
|
-
})
|
|
10372
|
-
]
|
|
10622
|
+
return /* @__PURE__ */ jsx(ControlGroup, {
|
|
10623
|
+
errorMessage,
|
|
10624
|
+
infoMessage,
|
|
10625
|
+
testId,
|
|
10626
|
+
tweakStyles: tweakControlGroupStyles,
|
|
10627
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$I(_object_spread$P({}, inputProps), {
|
|
10628
|
+
ref,
|
|
10629
|
+
testId,
|
|
10630
|
+
tweakStyles,
|
|
10631
|
+
isInvalid
|
|
10632
|
+
}))
|
|
10373
10633
|
});
|
|
10374
10634
|
});
|
|
10375
10635
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
@@ -10434,10 +10694,10 @@ function _object_spread_props$H(target, source) {
|
|
|
10434
10694
|
}
|
|
10435
10695
|
return target;
|
|
10436
10696
|
}
|
|
10437
|
-
function _object_without_properties$
|
|
10697
|
+
function _object_without_properties$g(source, excluded) {
|
|
10438
10698
|
if (source == null)
|
|
10439
10699
|
return {};
|
|
10440
|
-
var target = _object_without_properties_loose$
|
|
10700
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
10441
10701
|
var key, i;
|
|
10442
10702
|
if (Object.getOwnPropertySymbols) {
|
|
10443
10703
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10452,7 +10712,7 @@ function _object_without_properties$f(source, excluded) {
|
|
|
10452
10712
|
}
|
|
10453
10713
|
return target;
|
|
10454
10714
|
}
|
|
10455
|
-
function _object_without_properties_loose$
|
|
10715
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
10456
10716
|
if (source == null)
|
|
10457
10717
|
return {};
|
|
10458
10718
|
var target = {};
|
|
@@ -10467,7 +10727,7 @@ function _object_without_properties_loose$f(source, excluded) {
|
|
|
10467
10727
|
return target;
|
|
10468
10728
|
}
|
|
10469
10729
|
var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10470
|
-
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$
|
|
10730
|
+
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$g(_param, [
|
|
10471
10731
|
"date",
|
|
10472
10732
|
"startDate",
|
|
10473
10733
|
"endDate",
|
|
@@ -10523,7 +10783,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10523
10783
|
}));
|
|
10524
10784
|
});
|
|
10525
10785
|
const reactDatepicker = "";
|
|
10526
|
-
var
|
|
10786
|
+
var Z_INDEX$1 = dimensions.Z_INDEX;
|
|
10527
10787
|
var useStyles$F = createThemedStyles("SearchInput", {
|
|
10528
10788
|
root: {
|
|
10529
10789
|
position: "relative"
|
|
@@ -10535,33 +10795,26 @@ var useStyles$F = createThemedStyles("SearchInput", {
|
|
|
10535
10795
|
left: 12,
|
|
10536
10796
|
height: "100%",
|
|
10537
10797
|
width: 20,
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
},
|
|
10541
|
-
iconClickable: {
|
|
10542
|
-
cursor: "pointer"
|
|
10798
|
+
color: colors.GREY_ACTIVE,
|
|
10799
|
+
zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
|
|
10543
10800
|
}
|
|
10544
10801
|
});
|
|
10545
10802
|
var inputStyles$4 = {
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10803
|
+
tweakControlWrapper: {
|
|
10804
|
+
root: {
|
|
10805
|
+
borderColor: "transparent",
|
|
10806
|
+
borderRadius: 18,
|
|
10807
|
+
paddingLeft: 0,
|
|
10808
|
+
transitionProperty: "background-color, border-color"
|
|
10809
|
+
},
|
|
10810
|
+
focused: {
|
|
10811
|
+
backgroundColor: colors.CLASSIC_WHITE,
|
|
10812
|
+
borderColor: colors.BORDER_MAIN
|
|
10813
|
+
}
|
|
10557
10814
|
},
|
|
10558
|
-
|
|
10815
|
+
inputContent: {
|
|
10559
10816
|
fontSize: 14,
|
|
10560
|
-
paddingLeft:
|
|
10561
|
-
},
|
|
10562
|
-
label: {
|
|
10563
|
-
left: LEFT_PADDING,
|
|
10564
|
-
fontSize: 14
|
|
10817
|
+
paddingLeft: 44
|
|
10565
10818
|
}
|
|
10566
10819
|
};
|
|
10567
10820
|
function _define_property$P(obj, key, value) {
|
|
@@ -10616,10 +10869,10 @@ function _object_spread_props$G(target, source) {
|
|
|
10616
10869
|
}
|
|
10617
10870
|
return target;
|
|
10618
10871
|
}
|
|
10619
|
-
function _object_without_properties$
|
|
10872
|
+
function _object_without_properties$f(source, excluded) {
|
|
10620
10873
|
if (source == null)
|
|
10621
10874
|
return {};
|
|
10622
|
-
var target = _object_without_properties_loose$
|
|
10875
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
10623
10876
|
var key, i;
|
|
10624
10877
|
if (Object.getOwnPropertySymbols) {
|
|
10625
10878
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10634,7 +10887,7 @@ function _object_without_properties$e(source, excluded) {
|
|
|
10634
10887
|
}
|
|
10635
10888
|
return target;
|
|
10636
10889
|
}
|
|
10637
|
-
function _object_without_properties_loose$
|
|
10890
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
10638
10891
|
if (source == null)
|
|
10639
10892
|
return {};
|
|
10640
10893
|
var target = {};
|
|
@@ -10649,12 +10902,13 @@ function _object_without_properties_loose$e(source, excluded) {
|
|
|
10649
10902
|
return target;
|
|
10650
10903
|
}
|
|
10651
10904
|
var SearchInput = function(_param) {
|
|
10652
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles,
|
|
10905
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, placeholder = _param.placeholder, value = _param.value, testId = _param.testId, data = _param.data, props = _object_without_properties$f(_param, [
|
|
10653
10906
|
"isClearable",
|
|
10654
10907
|
"tweakStyles",
|
|
10908
|
+
"placeholder",
|
|
10909
|
+
"value",
|
|
10655
10910
|
"testId",
|
|
10656
|
-
"data"
|
|
10657
|
-
"onSearchIconClick"
|
|
10911
|
+
"data"
|
|
10658
10912
|
]);
|
|
10659
10913
|
var classes = useStyles$F({
|
|
10660
10914
|
theme: tweakStyles
|
|
@@ -10667,23 +10921,20 @@ var SearchInput = function(_param) {
|
|
|
10667
10921
|
});
|
|
10668
10922
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$G(_object_spread$N({
|
|
10669
10923
|
className: classes.root
|
|
10670
|
-
}, addDataAttributes
|
|
10924
|
+
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
10671
10925
|
children: [
|
|
10672
|
-
/* @__PURE__ */ jsx("div",
|
|
10673
|
-
className:
|
|
10674
|
-
}, addClickHandler(onSearchIconClick)), {
|
|
10926
|
+
/* @__PURE__ */ jsx("div", {
|
|
10927
|
+
className: classes.icon,
|
|
10675
10928
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
10676
10929
|
type: "search"
|
|
10677
10930
|
})
|
|
10678
|
-
})
|
|
10931
|
+
}),
|
|
10679
10932
|
/* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10680
|
-
|
|
10933
|
+
value,
|
|
10934
|
+
placeholder,
|
|
10681
10935
|
isClearable,
|
|
10682
|
-
isActive: props.value !== "" && props.value !== void 0,
|
|
10683
10936
|
testId: getTestId(testId, "input"),
|
|
10684
|
-
tweakStyles: tweakInputStyles
|
|
10685
|
-
hasFloatingLabel: false,
|
|
10686
|
-
label: props.placeholder
|
|
10937
|
+
tweakStyles: tweakInputStyles
|
|
10687
10938
|
}, props))
|
|
10688
10939
|
]
|
|
10689
10940
|
}));
|
|
@@ -10773,10 +11024,10 @@ function _object_spread$M(target) {
|
|
|
10773
11024
|
}
|
|
10774
11025
|
return target;
|
|
10775
11026
|
}
|
|
10776
|
-
function _object_without_properties$
|
|
11027
|
+
function _object_without_properties$e(source, excluded) {
|
|
10777
11028
|
if (source == null)
|
|
10778
11029
|
return {};
|
|
10779
|
-
var target = _object_without_properties_loose$
|
|
11030
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
10780
11031
|
var key, i;
|
|
10781
11032
|
if (Object.getOwnPropertySymbols) {
|
|
10782
11033
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10791,7 +11042,7 @@ function _object_without_properties$d(source, excluded) {
|
|
|
10791
11042
|
}
|
|
10792
11043
|
return target;
|
|
10793
11044
|
}
|
|
10794
|
-
function _object_without_properties_loose$
|
|
11045
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
10795
11046
|
if (source == null)
|
|
10796
11047
|
return {};
|
|
10797
11048
|
var target = {};
|
|
@@ -10894,7 +11145,7 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10894
11145
|
_this_props.active;
|
|
10895
11146
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10896
11147
|
_this_props.options;
|
|
10897
|
-
var wrapperProps = _object_without_properties$
|
|
11148
|
+
var wrapperProps = _object_without_properties$e(_this_props, [
|
|
10898
11149
|
"active",
|
|
10899
11150
|
"elementType",
|
|
10900
11151
|
"children",
|
|
@@ -11256,6 +11507,7 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
|
|
|
11256
11507
|
return isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
|
|
11257
11508
|
};
|
|
11258
11509
|
};
|
|
11510
|
+
var CONTROL = dimensions.CONTROL, Z_INDEX = dimensions.Z_INDEX;
|
|
11259
11511
|
var useStyles$D = createThemedStyles("Select", {
|
|
11260
11512
|
root: {
|
|
11261
11513
|
width: "100%",
|
|
@@ -11275,7 +11527,8 @@ var useStyles$D = createThemedStyles("Select", {
|
|
|
11275
11527
|
},
|
|
11276
11528
|
withoutPopper: {
|
|
11277
11529
|
position: "absolute",
|
|
11278
|
-
top: "
|
|
11530
|
+
top: "100%",
|
|
11531
|
+
paddingTop: 4
|
|
11279
11532
|
},
|
|
11280
11533
|
listWrapperInBody: {
|
|
11281
11534
|
minWidth: "auto",
|
|
@@ -11285,16 +11538,17 @@ var useStyles$D = createThemedStyles("Select", {
|
|
|
11285
11538
|
arrow: {
|
|
11286
11539
|
position: "absolute",
|
|
11287
11540
|
right: 12,
|
|
11288
|
-
top:
|
|
11541
|
+
top: "50%",
|
|
11289
11542
|
width: 20,
|
|
11290
11543
|
height: 20,
|
|
11291
11544
|
cursor: "pointer",
|
|
11292
|
-
|
|
11545
|
+
transform: "translateY(-50%)",
|
|
11293
11546
|
transition: animations.defaultTransition,
|
|
11294
|
-
transitionProperty: "transform"
|
|
11547
|
+
transitionProperty: "transform",
|
|
11548
|
+
zIndex: Z_INDEX.CONTROL_FOCUS + 1
|
|
11295
11549
|
},
|
|
11296
11550
|
activeArrow: {
|
|
11297
|
-
transform: "rotate(180deg)"
|
|
11551
|
+
transform: "translateY(-50%) rotate(180deg)"
|
|
11298
11552
|
},
|
|
11299
11553
|
disabled: {
|
|
11300
11554
|
"& $arrow": {
|
|
@@ -11307,21 +11561,27 @@ var useStyles$D = createThemedStyles("Select", {
|
|
|
11307
11561
|
}
|
|
11308
11562
|
},
|
|
11309
11563
|
icon: {
|
|
11310
|
-
width:
|
|
11311
|
-
height:
|
|
11564
|
+
width: CONTROL.ICON_INNER_SIZE,
|
|
11565
|
+
height: CONTROL.ICON_INNER_SIZE
|
|
11566
|
+
},
|
|
11567
|
+
iconWrapper: {
|
|
11568
|
+
display: "flex",
|
|
11569
|
+
alignItems: "center"
|
|
11312
11570
|
}
|
|
11313
11571
|
});
|
|
11314
11572
|
var baseInputStyles = {
|
|
11315
|
-
|
|
11573
|
+
inputContent: {
|
|
11316
11574
|
paddingRight: 32
|
|
11317
11575
|
},
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11576
|
+
tweakControlWrapper: {
|
|
11577
|
+
controls: {
|
|
11578
|
+
paddingRight: 40
|
|
11579
|
+
},
|
|
11580
|
+
icon: {
|
|
11581
|
+
"&:last-child": {
|
|
11582
|
+
paddingRight: 0
|
|
11583
|
+
}
|
|
11321
11584
|
}
|
|
11322
|
-
},
|
|
11323
|
-
controls: {
|
|
11324
|
-
paddingRight: 32
|
|
11325
11585
|
}
|
|
11326
11586
|
};
|
|
11327
11587
|
var readonlyInputBaseStyles = {
|
|
@@ -11329,16 +11589,8 @@ var readonlyInputBaseStyles = {
|
|
|
11329
11589
|
cursor: "pointer"
|
|
11330
11590
|
}
|
|
11331
11591
|
};
|
|
11332
|
-
var multiSelectInputBaseStyles = {
|
|
11333
|
-
inputIcon: {
|
|
11334
|
-
"&:not($loading)": {
|
|
11335
|
-
width: "auto"
|
|
11336
|
-
}
|
|
11337
|
-
}
|
|
11338
|
-
};
|
|
11339
11592
|
var readonlyInputStyles = mergeStyles(baseInputStyles, readonlyInputBaseStyles);
|
|
11340
|
-
var
|
|
11341
|
-
var readonlyMultiSelectStyles = mergeStyles(baseInputStyles, readonlyInputBaseStyles, multiSelectInputBaseStyles);
|
|
11593
|
+
var readonlyMultiSelectStyles = mergeStyles(baseInputStyles, readonlyInputBaseStyles);
|
|
11342
11594
|
var getInputStyles = function(param) {
|
|
11343
11595
|
var hasReadonlyInput = param.hasReadonlyInput, isMultiSelect = param.isMultiSelect;
|
|
11344
11596
|
if (hasReadonlyInput && isMultiSelect) {
|
|
@@ -11347,21 +11599,8 @@ var getInputStyles = function(param) {
|
|
|
11347
11599
|
if (hasReadonlyInput && !isMultiSelect) {
|
|
11348
11600
|
return readonlyInputStyles;
|
|
11349
11601
|
}
|
|
11350
|
-
if (!hasReadonlyInput && isMultiSelect) {
|
|
11351
|
-
return multiSelectInputStyles;
|
|
11352
|
-
}
|
|
11353
11602
|
return baseInputStyles;
|
|
11354
11603
|
};
|
|
11355
|
-
var searchInputStyles$3 = {
|
|
11356
|
-
tweakInput: {
|
|
11357
|
-
inputWrapper: {
|
|
11358
|
-
height: 48,
|
|
11359
|
-
borderRadius: 0,
|
|
11360
|
-
border: "none",
|
|
11361
|
-
backgroundColor: "transparent"
|
|
11362
|
-
}
|
|
11363
|
-
}
|
|
11364
|
-
};
|
|
11365
11604
|
function _array_like_to_array$i(arr, len) {
|
|
11366
11605
|
if (len == null || len > arr.length)
|
|
11367
11606
|
len = arr.length;
|
|
@@ -11496,10 +11735,10 @@ function _object_spread_props$D(target, source) {
|
|
|
11496
11735
|
}
|
|
11497
11736
|
return target;
|
|
11498
11737
|
}
|
|
11499
|
-
function _object_without_properties$
|
|
11738
|
+
function _object_without_properties$d(source, excluded) {
|
|
11500
11739
|
if (source == null)
|
|
11501
11740
|
return {};
|
|
11502
|
-
var target = _object_without_properties_loose$
|
|
11741
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
11503
11742
|
var key, i;
|
|
11504
11743
|
if (Object.getOwnPropertySymbols) {
|
|
11505
11744
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11514,7 +11753,7 @@ function _object_without_properties$c(source, excluded) {
|
|
|
11514
11753
|
}
|
|
11515
11754
|
return target;
|
|
11516
11755
|
}
|
|
11517
|
-
function _object_without_properties_loose$
|
|
11756
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
11518
11757
|
if (source == null)
|
|
11519
11758
|
return {};
|
|
11520
11759
|
var target = {};
|
|
@@ -11651,7 +11890,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
11651
11890
|
}
|
|
11652
11891
|
function Select(props) {
|
|
11653
11892
|
var _input_current;
|
|
11654
|
-
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput,
|
|
11893
|
+
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, icon = props.icon, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, infoMessage = props.infoMessage, errorMessage = props.errorMessage, inputProps = _object_without_properties$d(props, [
|
|
11655
11894
|
"options",
|
|
11656
11895
|
"isMultiSelect",
|
|
11657
11896
|
"value",
|
|
@@ -11673,7 +11912,7 @@ function Select(props) {
|
|
|
11673
11912
|
"dropdownIcon",
|
|
11674
11913
|
"shouldScrollToList",
|
|
11675
11914
|
"searchInput",
|
|
11676
|
-
"
|
|
11915
|
+
"icon",
|
|
11677
11916
|
"onChange",
|
|
11678
11917
|
"onFocus",
|
|
11679
11918
|
"onBlur",
|
|
@@ -11684,16 +11923,23 @@ function Select(props) {
|
|
|
11684
11923
|
"convertValueToString",
|
|
11685
11924
|
"convertValueToId",
|
|
11686
11925
|
"convertValueToReactNode",
|
|
11687
|
-
"optionsFilter"
|
|
11926
|
+
"optionsFilter",
|
|
11927
|
+
"infoMessage",
|
|
11928
|
+
"errorMessage"
|
|
11688
11929
|
]);
|
|
11689
11930
|
var classes = useStyles$D({
|
|
11690
11931
|
theme: tweakStyles
|
|
11691
11932
|
});
|
|
11692
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11933
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$d(_ref, [
|
|
11693
11934
|
"shouldRenderInList"
|
|
11694
11935
|
]);
|
|
11695
11936
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
11696
11937
|
var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
|
|
11938
|
+
var tweakControlGroupStyles = useTweakStyles({
|
|
11939
|
+
tweakStyles,
|
|
11940
|
+
className: "tweakControlGroup",
|
|
11941
|
+
currentComponentName: "Select"
|
|
11942
|
+
});
|
|
11697
11943
|
var tweakInputStyles = useTweakStyles({
|
|
11698
11944
|
innerStyles: getInputStyles({
|
|
11699
11945
|
hasReadonlyInput,
|
|
@@ -11704,7 +11950,6 @@ function Select(props) {
|
|
|
11704
11950
|
currentComponentName: "Select"
|
|
11705
11951
|
});
|
|
11706
11952
|
var tweakSearchInputStyles = useTweakStyles({
|
|
11707
|
-
innerStyles: searchInputStyles$3,
|
|
11708
11953
|
tweakStyles,
|
|
11709
11954
|
className: "tweakSearchInput",
|
|
11710
11955
|
currentComponentName: "Select"
|
|
@@ -11786,7 +12031,7 @@ function Select(props) {
|
|
|
11786
12031
|
]);
|
|
11787
12032
|
var getDropdownOffset = function() {
|
|
11788
12033
|
var _input_current_parentElement2;
|
|
11789
|
-
if (isEmpty(input.current)
|
|
12034
|
+
if (isEmpty(input.current)) {
|
|
11790
12035
|
return 0;
|
|
11791
12036
|
}
|
|
11792
12037
|
var _input_current_parentElement_offsetHeight;
|
|
@@ -12098,7 +12343,8 @@ function Select(props) {
|
|
|
12098
12343
|
onToggleCheckbox: handleToggleOptionCheckbox
|
|
12099
12344
|
})
|
|
12100
12345
|
}));
|
|
12101
|
-
var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || isNotEmpty(
|
|
12346
|
+
var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || isNotEmpty(icon) ? /* @__PURE__ */ jsxs("div", {
|
|
12347
|
+
className: classes.iconWrapper,
|
|
12102
12348
|
children: [
|
|
12103
12349
|
shouldShowMultiSelectCounter && /* @__PURE__ */ jsxs("div", {
|
|
12104
12350
|
className: classes.counter,
|
|
@@ -12108,59 +12354,62 @@ function Select(props) {
|
|
|
12108
12354
|
")"
|
|
12109
12355
|
]
|
|
12110
12356
|
}),
|
|
12111
|
-
isNotEmpty(
|
|
12357
|
+
isNotEmpty(icon) && /* @__PURE__ */ jsx("div", {
|
|
12112
12358
|
className: classes.icon,
|
|
12113
|
-
children: renderIcon(
|
|
12359
|
+
children: renderIcon(icon)
|
|
12114
12360
|
})
|
|
12115
12361
|
]
|
|
12116
12362
|
}) : void 0;
|
|
12117
|
-
return /* @__PURE__ */
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
children:
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
|
|
12142
|
-
|
|
12143
|
-
|
|
12144
|
-
},
|
|
12145
|
-
|
|
12146
|
-
|
|
12147
|
-
|
|
12363
|
+
return /* @__PURE__ */ jsx(ControlGroup, {
|
|
12364
|
+
errorMessage,
|
|
12365
|
+
infoMessage,
|
|
12366
|
+
tweakStyles: tweakControlGroupStyles,
|
|
12367
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
12368
|
+
className: classes.root,
|
|
12369
|
+
onKeyDown: handleKeyDown,
|
|
12370
|
+
ref: root2,
|
|
12371
|
+
children: [
|
|
12372
|
+
/* @__PURE__ */ jsxs("div", {
|
|
12373
|
+
className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
|
|
12374
|
+
onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
|
|
12375
|
+
ref: inputWrapper,
|
|
12376
|
+
children: [
|
|
12377
|
+
/* @__PURE__ */ jsx(InputBase, _object_spread$I({
|
|
12378
|
+
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
12379
|
+
onChange: handleInputChange,
|
|
12380
|
+
isActive: isListOpen || isActive,
|
|
12381
|
+
isReadonly: hasReadonlyInput,
|
|
12382
|
+
onFocus: handleFocus,
|
|
12383
|
+
onBlur: handleBlur,
|
|
12384
|
+
isDisabled,
|
|
12385
|
+
ref: input,
|
|
12386
|
+
isLoading: areOptionsLoading,
|
|
12387
|
+
tweakStyles: tweakInputStyles,
|
|
12388
|
+
testId,
|
|
12389
|
+
icon: isMultiSelect ? multiSelectCounterWithIcon : icon
|
|
12390
|
+
}, inputProps)),
|
|
12391
|
+
/* @__PURE__ */ jsx("div", {
|
|
12392
|
+
onMouseDown: function(event) {
|
|
12393
|
+
event.preventDefault();
|
|
12394
|
+
},
|
|
12395
|
+
onClick: onArrowClick,
|
|
12396
|
+
className: clsx(classes.arrow, isOpen && classes.activeArrow),
|
|
12397
|
+
children: renderIcon(dropdownIcon)
|
|
12398
|
+
})
|
|
12399
|
+
]
|
|
12400
|
+
}),
|
|
12401
|
+
shouldUsePopper ? /* @__PURE__ */ jsx(Portal, {
|
|
12402
|
+
container: shouldRenderInBody ? document.body : inputWrapper.current,
|
|
12403
|
+
children: /* @__PURE__ */ jsx(Fragment, {
|
|
12404
|
+
children: listEl
|
|
12148
12405
|
})
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
shouldUsePopper ? /* @__PURE__ */ jsx(Portal, {
|
|
12152
|
-
container: shouldRenderInBody ? document.body : inputWrapper.current,
|
|
12153
|
-
children: /* @__PURE__ */ jsx(Fragment, {
|
|
12154
|
-
children: listEl
|
|
12406
|
+
}) : /* @__PURE__ */ jsx(Fragment, {
|
|
12407
|
+
children: isOpen && listEl
|
|
12155
12408
|
})
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
})
|
|
12159
|
-
]
|
|
12409
|
+
]
|
|
12410
|
+
})
|
|
12160
12411
|
});
|
|
12161
12412
|
}
|
|
12162
|
-
var SELECT_PADDING_LEFT = 12;
|
|
12163
|
-
var SELECT_PADDING_RIGHT = 24;
|
|
12164
12413
|
var useStyles$C = createThemedStyles("DatePickerHeader", {
|
|
12165
12414
|
btn: {
|
|
12166
12415
|
width: 36,
|
|
@@ -12172,26 +12421,6 @@ var useStyles$C = createThemedStyles("DatePickerHeader", {
|
|
|
12172
12421
|
cursor: "pointer",
|
|
12173
12422
|
marginLeft: 8
|
|
12174
12423
|
},
|
|
12175
|
-
select: {
|
|
12176
|
-
height: 35,
|
|
12177
|
-
fontSize: 16,
|
|
12178
|
-
position: "relative"
|
|
12179
|
-
},
|
|
12180
|
-
selectValue: {
|
|
12181
|
-
fontSize: 16,
|
|
12182
|
-
fontWeight: "bold",
|
|
12183
|
-
color: "transparent",
|
|
12184
|
-
pointerEvents: "none",
|
|
12185
|
-
paddingLeft: SELECT_PADDING_LEFT,
|
|
12186
|
-
paddingRight: SELECT_PADDING_RIGHT
|
|
12187
|
-
},
|
|
12188
|
-
selectControl: {
|
|
12189
|
-
position: "absolute",
|
|
12190
|
-
top: 0,
|
|
12191
|
-
left: 0,
|
|
12192
|
-
width: "100%",
|
|
12193
|
-
height: "100%"
|
|
12194
|
-
},
|
|
12195
12424
|
header: {
|
|
12196
12425
|
margin: 6,
|
|
12197
12426
|
display: "flex",
|
|
@@ -12209,22 +12438,16 @@ var selectStyles$1 = {
|
|
|
12209
12438
|
minHeight: 35
|
|
12210
12439
|
}
|
|
12211
12440
|
},
|
|
12212
|
-
arrow: {
|
|
12213
|
-
right: 0,
|
|
12214
|
-
top: 9,
|
|
12215
|
-
width: 16,
|
|
12216
|
-
height: 16
|
|
12217
|
-
},
|
|
12218
12441
|
tweakInput: {
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12442
|
+
tweakControlWrapper: {
|
|
12443
|
+
root: {
|
|
12444
|
+
"--control-height": "35px",
|
|
12445
|
+
border: "none"
|
|
12446
|
+
}
|
|
12222
12447
|
},
|
|
12223
|
-
|
|
12448
|
+
inputContent: {
|
|
12224
12449
|
fontSize: 16,
|
|
12225
|
-
fontWeight: "bold"
|
|
12226
|
-
paddingRight: SELECT_PADDING_RIGHT - 8,
|
|
12227
|
-
paddingLeft: SELECT_PADDING_LEFT
|
|
12450
|
+
fontWeight: "bold"
|
|
12228
12451
|
}
|
|
12229
12452
|
}
|
|
12230
12453
|
};
|
|
@@ -12247,47 +12470,25 @@ var DatePickerHeader = function(param) {
|
|
|
12247
12470
|
return /* @__PURE__ */ jsxs("div", {
|
|
12248
12471
|
className: classes.header,
|
|
12249
12472
|
children: [
|
|
12250
|
-
/* @__PURE__ */
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
12260
|
-
value: months[getMonth(date)],
|
|
12261
|
-
options: months,
|
|
12262
|
-
dropdownIcon: "chevron-down-small",
|
|
12263
|
-
tweakStyles: tweakSelectStyles,
|
|
12264
|
-
onChange: function(value) {
|
|
12265
|
-
return changeMonth(months.indexOf(value));
|
|
12266
|
-
}
|
|
12267
|
-
})
|
|
12268
|
-
})
|
|
12269
|
-
]
|
|
12473
|
+
/* @__PURE__ */ jsx(Select, {
|
|
12474
|
+
value: months[getMonth(date)],
|
|
12475
|
+
options: months,
|
|
12476
|
+
dropdownIcon: "chevron-down-small",
|
|
12477
|
+
isAutoSized: true,
|
|
12478
|
+
tweakStyles: tweakSelectStyles,
|
|
12479
|
+
onChange: function(value) {
|
|
12480
|
+
return changeMonth(months.indexOf(value));
|
|
12481
|
+
}
|
|
12270
12482
|
}),
|
|
12271
|
-
/* @__PURE__ */
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
|
|
12277
|
-
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
12281
|
-
value: getYear(date),
|
|
12282
|
-
options: years,
|
|
12283
|
-
dropdownIcon: "chevron-down-small",
|
|
12284
|
-
tweakStyles: tweakSelectStyles,
|
|
12285
|
-
onChange: function(value) {
|
|
12286
|
-
return changeYear(value);
|
|
12287
|
-
}
|
|
12288
|
-
})
|
|
12289
|
-
})
|
|
12290
|
-
]
|
|
12483
|
+
/* @__PURE__ */ jsx(Select, {
|
|
12484
|
+
value: getYear(date),
|
|
12485
|
+
options: years,
|
|
12486
|
+
dropdownIcon: "chevron-down-small",
|
|
12487
|
+
isAutoSized: true,
|
|
12488
|
+
tweakStyles: tweakSelectStyles,
|
|
12489
|
+
onChange: function(value) {
|
|
12490
|
+
return changeYear(value);
|
|
12491
|
+
}
|
|
12291
12492
|
}),
|
|
12292
12493
|
/* @__PURE__ */ jsxs("div", {
|
|
12293
12494
|
className: classes.buttons,
|
|
@@ -12456,10 +12657,10 @@ function _object_spread_props$C(target, source) {
|
|
|
12456
12657
|
}
|
|
12457
12658
|
return target;
|
|
12458
12659
|
}
|
|
12459
|
-
function _object_without_properties$
|
|
12660
|
+
function _object_without_properties$c(source, excluded) {
|
|
12460
12661
|
if (source == null)
|
|
12461
12662
|
return {};
|
|
12462
|
-
var target = _object_without_properties_loose$
|
|
12663
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
12463
12664
|
var key, i;
|
|
12464
12665
|
if (Object.getOwnPropertySymbols) {
|
|
12465
12666
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12474,7 +12675,7 @@ function _object_without_properties$b(source, excluded) {
|
|
|
12474
12675
|
}
|
|
12475
12676
|
return target;
|
|
12476
12677
|
}
|
|
12477
|
-
function _object_without_properties_loose$
|
|
12678
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
12478
12679
|
if (source == null)
|
|
12479
12680
|
return {};
|
|
12480
12681
|
var target = {};
|
|
@@ -12505,7 +12706,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
|
|
|
12505
12706
|
return _array_like_to_array$h(o, minLen);
|
|
12506
12707
|
}
|
|
12507
12708
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
12508
|
-
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$
|
|
12709
|
+
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$c(_param, [
|
|
12509
12710
|
"data",
|
|
12510
12711
|
"selectedDate",
|
|
12511
12712
|
"minDate",
|
|
@@ -12581,7 +12782,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12581
12782
|
isDisabled,
|
|
12582
12783
|
isClearable,
|
|
12583
12784
|
isActive: isOpen,
|
|
12584
|
-
|
|
12785
|
+
icon: isClearable && hasDateInputValue ? void 0 : "calendar",
|
|
12585
12786
|
tweakStyles: tweakDateInputStyles
|
|
12586
12787
|
}), isRange ? {
|
|
12587
12788
|
startDate: startDateValue,
|
|
@@ -13323,10 +13524,10 @@ function _object_spread_props$z(target, source) {
|
|
|
13323
13524
|
}
|
|
13324
13525
|
return target;
|
|
13325
13526
|
}
|
|
13326
|
-
function _object_without_properties$
|
|
13527
|
+
function _object_without_properties$b(source, excluded) {
|
|
13327
13528
|
if (source == null)
|
|
13328
13529
|
return {};
|
|
13329
|
-
var target = _object_without_properties_loose$
|
|
13530
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
13330
13531
|
var key, i;
|
|
13331
13532
|
if (Object.getOwnPropertySymbols) {
|
|
13332
13533
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -13341,7 +13542,7 @@ function _object_without_properties$a(source, excluded) {
|
|
|
13341
13542
|
}
|
|
13342
13543
|
return target;
|
|
13343
13544
|
}
|
|
13344
|
-
function _object_without_properties_loose$
|
|
13545
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
13345
13546
|
if (source == null)
|
|
13346
13547
|
return {};
|
|
13347
13548
|
var target = {};
|
|
@@ -13356,7 +13557,7 @@ function _object_without_properties_loose$a(source, excluded) {
|
|
|
13356
13557
|
return target;
|
|
13357
13558
|
}
|
|
13358
13559
|
var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
13359
|
-
var icon = _param.icon, _param_size = _param.size,
|
|
13560
|
+
var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$b(_param, [
|
|
13360
13561
|
"icon",
|
|
13361
13562
|
"size",
|
|
13362
13563
|
"view",
|
|
@@ -13376,7 +13577,7 @@ var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13376
13577
|
var _obj2;
|
|
13377
13578
|
return /* @__PURE__ */ jsx("button", _object_spread_props$z(_object_spread$E({
|
|
13378
13579
|
ref,
|
|
13379
|
-
className: clsx(classes.root, classes[view], classes[
|
|
13580
|
+
className: clsx(classes.root, classes[view], classes[size], (_obj2 = {}, _define_property$G(_obj2, classes.disabled, isDisabled), _define_property$G(_obj2, classes.active, isActive), _define_property$G(_obj2, classes.loading, isLoading), _obj2)),
|
|
13380
13581
|
type,
|
|
13381
13582
|
disabled: isDisabled,
|
|
13382
13583
|
onClick: hasNoAction ? void 0 : onClick
|
|
@@ -13934,7 +14135,7 @@ var FileItem = function(param) {
|
|
|
13934
14135
|
event.stopPropagation();
|
|
13935
14136
|
onRemove === null || onRemove === void 0 ? void 0 : onRemove(event);
|
|
13936
14137
|
};
|
|
13937
|
-
var name = fileInfo.name,
|
|
14138
|
+
var name = fileInfo.name, size = fileInfo.size;
|
|
13938
14139
|
var hasRemoveButton = isFunction$1(onRemove);
|
|
13939
14140
|
return /* @__PURE__ */ jsxs("div", {
|
|
13940
14141
|
className: classes.root,
|
|
@@ -13963,9 +14164,9 @@ var FileItem = function(param) {
|
|
|
13963
14164
|
className: classes.metadata,
|
|
13964
14165
|
children: [
|
|
13965
14166
|
metadata,
|
|
13966
|
-
shouldShowSize && isNotEmpty(
|
|
14167
|
+
shouldShowSize && isNotEmpty(size) && /* @__PURE__ */ jsx("div", {
|
|
13967
14168
|
className: classes.fileSize,
|
|
13968
|
-
children: filesize(
|
|
14169
|
+
children: filesize(size)
|
|
13969
14170
|
})
|
|
13970
14171
|
]
|
|
13971
14172
|
})
|
|
@@ -14280,10 +14481,10 @@ function _object_spread$A(target) {
|
|
|
14280
14481
|
}
|
|
14281
14482
|
return target;
|
|
14282
14483
|
}
|
|
14283
|
-
function _object_without_properties$
|
|
14484
|
+
function _object_without_properties$a(source, excluded) {
|
|
14284
14485
|
if (source == null)
|
|
14285
14486
|
return {};
|
|
14286
|
-
var target = _object_without_properties_loose$
|
|
14487
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
14287
14488
|
var key, i;
|
|
14288
14489
|
if (Object.getOwnPropertySymbols) {
|
|
14289
14490
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -14298,7 +14499,7 @@ function _object_without_properties$9(source, excluded) {
|
|
|
14298
14499
|
}
|
|
14299
14500
|
return target;
|
|
14300
14501
|
}
|
|
14301
|
-
function _object_without_properties_loose$
|
|
14502
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
14302
14503
|
if (source == null)
|
|
14303
14504
|
return {};
|
|
14304
14505
|
var target = {};
|
|
@@ -14431,7 +14632,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
14431
14632
|
}
|
|
14432
14633
|
}
|
|
14433
14634
|
var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
14434
|
-
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$
|
|
14635
|
+
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$a(_param, [
|
|
14435
14636
|
"value",
|
|
14436
14637
|
"canBeFloat",
|
|
14437
14638
|
"canBeNegative",
|
|
@@ -14912,11 +15113,13 @@ var inputStyles$3 = {
|
|
|
14912
15113
|
input: {
|
|
14913
15114
|
minWidth: 120
|
|
14914
15115
|
},
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
15116
|
+
tweakControlWrapper: {
|
|
15117
|
+
icon: {
|
|
15118
|
+
padding: 0,
|
|
15119
|
+
width: 24,
|
|
15120
|
+
"&:last-child": {
|
|
15121
|
+
paddingRight: 0
|
|
15122
|
+
}
|
|
14920
15123
|
}
|
|
14921
15124
|
}
|
|
14922
15125
|
};
|
|
@@ -15032,7 +15235,6 @@ var FilterInterval = function(param) {
|
|
|
15032
15235
|
onChange: handleFromChange,
|
|
15033
15236
|
value: value === null || value === void 0 ? void 0 : value[0],
|
|
15034
15237
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
|
|
15035
|
-
border: "bottom",
|
|
15036
15238
|
canBeFloat,
|
|
15037
15239
|
isClearable: true,
|
|
15038
15240
|
min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min,
|
|
@@ -15057,7 +15259,6 @@ var FilterInterval = function(param) {
|
|
|
15057
15259
|
onChange: handleToChange,
|
|
15058
15260
|
value: value === null || value === void 0 ? void 0 : value[1],
|
|
15059
15261
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
|
|
15060
|
-
border: "bottom",
|
|
15061
15262
|
canBeFloat,
|
|
15062
15263
|
isClearable: true,
|
|
15063
15264
|
min: toInput === null || toInput === void 0 ? void 0 : toInput.min,
|
|
@@ -15232,10 +15433,12 @@ var useStyles$s = createThemedStyles("MultiSelectList", {
|
|
|
15232
15433
|
});
|
|
15233
15434
|
var searchInputStyles$2 = {
|
|
15234
15435
|
tweakInput: {
|
|
15235
|
-
|
|
15236
|
-
|
|
15237
|
-
|
|
15238
|
-
|
|
15436
|
+
tweakControlWrapper: {
|
|
15437
|
+
root: {
|
|
15438
|
+
"--control-height": "40px",
|
|
15439
|
+
backgroundColor: "transparent",
|
|
15440
|
+
border: "none"
|
|
15441
|
+
}
|
|
15239
15442
|
}
|
|
15240
15443
|
}
|
|
15241
15444
|
};
|
|
@@ -16190,10 +16393,12 @@ var useStyles$r = createThemedStyles("FilterSelect", {
|
|
|
16190
16393
|
});
|
|
16191
16394
|
var searchInputStyles$1 = {
|
|
16192
16395
|
tweakInput: {
|
|
16193
|
-
|
|
16194
|
-
|
|
16195
|
-
|
|
16196
|
-
|
|
16396
|
+
tweakControlWrapper: {
|
|
16397
|
+
root: {
|
|
16398
|
+
"--control-height": "40px",
|
|
16399
|
+
backgroundColor: "transparent",
|
|
16400
|
+
border: "none"
|
|
16401
|
+
}
|
|
16197
16402
|
}
|
|
16198
16403
|
}
|
|
16199
16404
|
};
|
|
@@ -18215,7 +18420,6 @@ var FilterWithDates = function(param) {
|
|
|
18215
18420
|
locale: dateLocale,
|
|
18216
18421
|
onChangeDate: handleChangeFrom,
|
|
18217
18422
|
tweakStyles: tweakStartDatePickerStyles,
|
|
18218
|
-
border: "bottom",
|
|
18219
18423
|
testId: getTestId(testId, "from"),
|
|
18220
18424
|
isClearable
|
|
18221
18425
|
}, startPickerProps))
|
|
@@ -18230,7 +18434,6 @@ var FilterWithDates = function(param) {
|
|
|
18230
18434
|
locale: dateLocale,
|
|
18231
18435
|
onChangeDate: handleChangeTo,
|
|
18232
18436
|
tweakStyles: tweakEndDatePickerStyles,
|
|
18233
|
-
border: "bottom",
|
|
18234
18437
|
testId: getTestId(testId, "to"),
|
|
18235
18438
|
isClearable
|
|
18236
18439
|
}, endPickerProps))
|
|
@@ -18777,16 +18980,17 @@ var useStyles$o = createThemedStyles("FiltersPaneSearch", {
|
|
|
18777
18980
|
});
|
|
18778
18981
|
var searchInputStyles = {
|
|
18779
18982
|
tweakInput: {
|
|
18780
|
-
|
|
18781
|
-
|
|
18782
|
-
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
|
|
18787
|
-
|
|
18788
|
-
|
|
18789
|
-
|
|
18983
|
+
tweakControlWrapper: {
|
|
18984
|
+
root: {
|
|
18985
|
+
"--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
|
|
18986
|
+
backgroundColor: "transparent",
|
|
18987
|
+
border: "none",
|
|
18988
|
+
minWidth: 140
|
|
18989
|
+
},
|
|
18990
|
+
focused: {
|
|
18991
|
+
backgroundColor: "transparent",
|
|
18992
|
+
border: "none"
|
|
18993
|
+
}
|
|
18790
18994
|
}
|
|
18791
18995
|
}
|
|
18792
18996
|
};
|
|
@@ -18910,7 +19114,7 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
18910
19114
|
return _array_like_to_array$8(o, minLen);
|
|
18911
19115
|
}
|
|
18912
19116
|
function FiltersPaneSearch(param) {
|
|
18913
|
-
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled,
|
|
19117
|
+
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
18914
19118
|
var classes = useStyles$o({
|
|
18915
19119
|
theme: tweakStyles
|
|
18916
19120
|
});
|
|
@@ -18976,7 +19180,6 @@ function FiltersPaneSearch(param) {
|
|
|
18976
19180
|
},
|
|
18977
19181
|
testId: testId !== void 0 ? "".concat(testId, "-input") : void 0,
|
|
18978
19182
|
maxLength,
|
|
18979
|
-
isAutoSizeable,
|
|
18980
19183
|
isDisabled
|
|
18981
19184
|
}),
|
|
18982
19185
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -26060,10 +26263,10 @@ function _object_spread_props$l(target, source) {
|
|
|
26060
26263
|
}
|
|
26061
26264
|
return target;
|
|
26062
26265
|
}
|
|
26063
|
-
function _object_without_properties$
|
|
26266
|
+
function _object_without_properties$9(source, excluded) {
|
|
26064
26267
|
if (source == null)
|
|
26065
26268
|
return {};
|
|
26066
|
-
var target = _object_without_properties_loose$
|
|
26269
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
26067
26270
|
var key, i;
|
|
26068
26271
|
if (Object.getOwnPropertySymbols) {
|
|
26069
26272
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26078,7 +26281,7 @@ function _object_without_properties$8(source, excluded) {
|
|
|
26078
26281
|
}
|
|
26079
26282
|
return target;
|
|
26080
26283
|
}
|
|
26081
|
-
function _object_without_properties_loose$
|
|
26284
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
26082
26285
|
if (source == null)
|
|
26083
26286
|
return {};
|
|
26084
26287
|
var target = {};
|
|
@@ -26093,7 +26296,7 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
26093
26296
|
return target;
|
|
26094
26297
|
}
|
|
26095
26298
|
function FlexibleTableCell(_param) {
|
|
26096
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$
|
|
26299
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$9(_param, [
|
|
26097
26300
|
"row",
|
|
26098
26301
|
"columnName",
|
|
26099
26302
|
"config",
|
|
@@ -26436,10 +26639,10 @@ function _object_spread_props$j(target, source) {
|
|
|
26436
26639
|
}
|
|
26437
26640
|
return target;
|
|
26438
26641
|
}
|
|
26439
|
-
function _object_without_properties$
|
|
26642
|
+
function _object_without_properties$8(source, excluded) {
|
|
26440
26643
|
if (source == null)
|
|
26441
26644
|
return {};
|
|
26442
|
-
var target = _object_without_properties_loose$
|
|
26645
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
26443
26646
|
var key, i;
|
|
26444
26647
|
if (Object.getOwnPropertySymbols) {
|
|
26445
26648
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26454,7 +26657,7 @@ function _object_without_properties$7(source, excluded) {
|
|
|
26454
26657
|
}
|
|
26455
26658
|
return target;
|
|
26456
26659
|
}
|
|
26457
|
-
function _object_without_properties_loose$
|
|
26660
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
26458
26661
|
if (source == null)
|
|
26459
26662
|
return {};
|
|
26460
26663
|
var target = {};
|
|
@@ -26469,7 +26672,7 @@ function _object_without_properties_loose$7(source, excluded) {
|
|
|
26469
26672
|
return target;
|
|
26470
26673
|
}
|
|
26471
26674
|
function FlexibleTable(_param) {
|
|
26472
|
-
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$
|
|
26675
|
+
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$8(_param, [
|
|
26473
26676
|
"content",
|
|
26474
26677
|
"headerContent",
|
|
26475
26678
|
"config",
|
|
@@ -26702,11 +26905,11 @@ var useStyles$g = createThemedStyles("IncrementInput", {
|
|
|
26702
26905
|
right: BUTTONS_GAP,
|
|
26703
26906
|
top: BUTTONS_GAP,
|
|
26704
26907
|
bottom: BUTTONS_GAP,
|
|
26705
|
-
zIndex: 1
|
|
26908
|
+
zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
|
|
26706
26909
|
},
|
|
26707
26910
|
button: {
|
|
26708
26911
|
width: "100%",
|
|
26709
|
-
height: (dimensions.
|
|
26912
|
+
height: (dimensions.CONTROL.HEIGHT - 5) / 2,
|
|
26710
26913
|
border: "none",
|
|
26711
26914
|
outline: "none",
|
|
26712
26915
|
backgroundColor: colors.GREY_BACKGROUND,
|
|
@@ -26743,12 +26946,12 @@ var useStyles$g = createThemedStyles("IncrementInput", {
|
|
|
26743
26946
|
});
|
|
26744
26947
|
var inputStyles$2 = {
|
|
26745
26948
|
input: {
|
|
26746
|
-
|
|
26949
|
+
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26950
|
+
},
|
|
26951
|
+
tweakControlWrapper: {
|
|
26952
|
+
controls: {
|
|
26747
26953
|
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26748
26954
|
}
|
|
26749
|
-
},
|
|
26750
|
-
controls: {
|
|
26751
|
-
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26752
26955
|
}
|
|
26753
26956
|
};
|
|
26754
26957
|
function _define_property$k(obj, key, value) {
|
|
@@ -26803,10 +27006,10 @@ function _object_spread_props$i(target, source) {
|
|
|
26803
27006
|
}
|
|
26804
27007
|
return target;
|
|
26805
27008
|
}
|
|
26806
|
-
function _object_without_properties$
|
|
27009
|
+
function _object_without_properties$7(source, excluded) {
|
|
26807
27010
|
if (source == null)
|
|
26808
27011
|
return {};
|
|
26809
|
-
var target = _object_without_properties_loose$
|
|
27012
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
26810
27013
|
var key, i;
|
|
26811
27014
|
if (Object.getOwnPropertySymbols) {
|
|
26812
27015
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26821,7 +27024,7 @@ function _object_without_properties$6(source, excluded) {
|
|
|
26821
27024
|
}
|
|
26822
27025
|
return target;
|
|
26823
27026
|
}
|
|
26824
|
-
function _object_without_properties_loose$
|
|
27027
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
26825
27028
|
if (source == null)
|
|
26826
27029
|
return {};
|
|
26827
27030
|
var target = {};
|
|
@@ -26836,7 +27039,7 @@ function _object_without_properties_loose$6(source, excluded) {
|
|
|
26836
27039
|
return target;
|
|
26837
27040
|
}
|
|
26838
27041
|
var IncrementInput = function(_param) {
|
|
26839
|
-
var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$
|
|
27042
|
+
var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$7(_param, [
|
|
26840
27043
|
"value",
|
|
26841
27044
|
"onChange",
|
|
26842
27045
|
"min",
|
|
@@ -27284,10 +27487,10 @@ function _object_spread_props$h(target, source) {
|
|
|
27284
27487
|
}
|
|
27285
27488
|
return target;
|
|
27286
27489
|
}
|
|
27287
|
-
function _object_without_properties$
|
|
27490
|
+
function _object_without_properties$6(source, excluded) {
|
|
27288
27491
|
if (source == null)
|
|
27289
27492
|
return {};
|
|
27290
|
-
var target = _object_without_properties_loose$
|
|
27493
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
27291
27494
|
var key, i;
|
|
27292
27495
|
if (Object.getOwnPropertySymbols) {
|
|
27293
27496
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27302,7 +27505,7 @@ function _object_without_properties$5(source, excluded) {
|
|
|
27302
27505
|
}
|
|
27303
27506
|
return target;
|
|
27304
27507
|
}
|
|
27305
|
-
function _object_without_properties_loose$
|
|
27508
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
27306
27509
|
if (source == null)
|
|
27307
27510
|
return {};
|
|
27308
27511
|
var target = {};
|
|
@@ -27333,7 +27536,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
27333
27536
|
return _array_like_to_array$6(o, minLen);
|
|
27334
27537
|
}
|
|
27335
27538
|
var Modal = function(_param) {
|
|
27336
|
-
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size,
|
|
27539
|
+
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$6(_param, [
|
|
27337
27540
|
"data",
|
|
27338
27541
|
"tweakStyles",
|
|
27339
27542
|
"title",
|
|
@@ -27425,7 +27628,7 @@ var Modal = function(_param) {
|
|
|
27425
27628
|
enabled: shouldBlockScroll,
|
|
27426
27629
|
forwardProps: true,
|
|
27427
27630
|
children: /* @__PURE__ */ jsx("div", _object_spread_props$h(_object_spread$i({
|
|
27428
|
-
className: clsx(classes.root, classes[
|
|
27631
|
+
className: clsx(classes.root, classes[size], (_obj2 = {}, _define_property$j(_obj2, classes.overlay, position !== "static" && hasOverlay), _define_property$j(_obj2, classes.sideBar, position === "left" || position === "right"), _define_property$j(_obj2, classes.fixedPosition, position !== "static"), _obj2)),
|
|
27429
27632
|
style: {
|
|
27430
27633
|
zIndex
|
|
27431
27634
|
}
|
|
@@ -28093,7 +28296,7 @@ function _object_spread_props$e(target, source) {
|
|
|
28093
28296
|
return target;
|
|
28094
28297
|
}
|
|
28095
28298
|
var Notification = function(param) {
|
|
28096
|
-
var children = param.children, type = param.type, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? true : _param_isFullWidth, text = param.text, title = param.title, testId = param.testId, _param_size = param.size,
|
|
28299
|
+
var children = param.children, type = param.type, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? true : _param_isFullWidth, text = param.text, title = param.title, testId = param.testId, _param_size = param.size, size = _param_size === void 0 ? "s" : _param_size, data = param.data, icon = param.icon, tweakStyles = param.tweakStyles;
|
|
28097
28300
|
var classes = useStyles$b({
|
|
28098
28301
|
theme: tweakStyles
|
|
28099
28302
|
});
|
|
@@ -28103,7 +28306,7 @@ var Notification = function(param) {
|
|
|
28103
28306
|
var hasIcon = isReactNodeNotEmpty(icon) || isDefaultType;
|
|
28104
28307
|
var _obj2;
|
|
28105
28308
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$e(_object_spread$f({
|
|
28106
|
-
className: clsx(classes.root, classes[
|
|
28309
|
+
className: clsx(classes.root, classes[size], classes[type], (_obj2 = {}, _define_property$g(_obj2, classes.inline, !isFullWidth), _define_property$g(_obj2, classes.withTitle, hasTitle), _define_property$g(_obj2, classes.withText, hasText), _obj2))
|
|
28107
28310
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
28108
28311
|
children: [
|
|
28109
28312
|
hasIcon && /* @__PURE__ */ jsx("div", {
|
|
@@ -28178,7 +28381,7 @@ var useStyles$a = createThemedStyles("PhoneInputCountryList", {
|
|
|
28178
28381
|
},
|
|
28179
28382
|
searchContainer: {
|
|
28180
28383
|
width: "100%",
|
|
28181
|
-
height: dimensions.
|
|
28384
|
+
height: dimensions.CONTROL.HEIGHT,
|
|
28182
28385
|
display: "flex",
|
|
28183
28386
|
alignItems: "center",
|
|
28184
28387
|
boxSizing: "border-box",
|
|
@@ -28259,9 +28462,11 @@ var useStyles$a = createThemedStyles("PhoneInputCountryList", {
|
|
|
28259
28462
|
}
|
|
28260
28463
|
});
|
|
28261
28464
|
var inputStyles$1 = {
|
|
28262
|
-
|
|
28263
|
-
|
|
28264
|
-
|
|
28465
|
+
tweakControlWrapper: {
|
|
28466
|
+
root: {
|
|
28467
|
+
border: "none",
|
|
28468
|
+
height: "calc(var(--control-height) - 2px)"
|
|
28469
|
+
}
|
|
28265
28470
|
},
|
|
28266
28471
|
input: {
|
|
28267
28472
|
fontSize: 14,
|
|
@@ -28475,14 +28680,15 @@ var useStyles$9 = createThemedStyles("PhoneInput", {
|
|
|
28475
28680
|
root: {
|
|
28476
28681
|
width: "100%",
|
|
28477
28682
|
position: "relative",
|
|
28478
|
-
boxSizing: "border-box"
|
|
28683
|
+
boxSizing: "border-box",
|
|
28684
|
+
zIndex: 0
|
|
28479
28685
|
},
|
|
28480
28686
|
countrySelectContainer: {
|
|
28481
28687
|
position: "absolute",
|
|
28482
28688
|
left: 1,
|
|
28483
28689
|
top: 1,
|
|
28484
28690
|
width: COUNTRY_SELECT_WIDTH,
|
|
28485
|
-
height: dimensions.
|
|
28691
|
+
height: dimensions.CONTROL.HEIGHT - 2,
|
|
28486
28692
|
display: "flex",
|
|
28487
28693
|
alignItems: "center",
|
|
28488
28694
|
justifyContent: "center",
|
|
@@ -28493,7 +28699,7 @@ var useStyles$9 = createThemedStyles("PhoneInput", {
|
|
|
28493
28699
|
],
|
|
28494
28700
|
transition: "border-color 0.2s ease-in",
|
|
28495
28701
|
cursor: "pointer",
|
|
28496
|
-
zIndex:
|
|
28702
|
+
zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
|
|
28497
28703
|
},
|
|
28498
28704
|
disabledCountrySelect: {
|
|
28499
28705
|
cursor: "default"
|
|
@@ -28525,17 +28731,19 @@ var useStyles$9 = createThemedStyles("PhoneInput", {
|
|
|
28525
28731
|
flagListContainer: {
|
|
28526
28732
|
position: "absolute",
|
|
28527
28733
|
width: "100%",
|
|
28528
|
-
top: dimensions.
|
|
28734
|
+
top: dimensions.CONTROL.HEIGHT + 6,
|
|
28529
28735
|
left: -1,
|
|
28530
28736
|
zIndex: 3
|
|
28531
28737
|
}
|
|
28532
28738
|
});
|
|
28533
28739
|
var inputStyles = {
|
|
28534
|
-
|
|
28535
|
-
|
|
28536
|
-
|
|
28537
|
-
|
|
28538
|
-
|
|
28740
|
+
tweakControlWrapper: {
|
|
28741
|
+
root: {
|
|
28742
|
+
paddingLeft: COUNTRY_SELECT_WIDTH
|
|
28743
|
+
},
|
|
28744
|
+
label: {
|
|
28745
|
+
marginLeft: COUNTRY_SELECT_WIDTH
|
|
28746
|
+
}
|
|
28539
28747
|
}
|
|
28540
28748
|
};
|
|
28541
28749
|
function _array_like_to_array$2(arr, len) {
|
|
@@ -28632,10 +28840,10 @@ function _object_spread_props$d(target, source) {
|
|
|
28632
28840
|
}
|
|
28633
28841
|
return target;
|
|
28634
28842
|
}
|
|
28635
|
-
function _object_without_properties$
|
|
28843
|
+
function _object_without_properties$5(source, excluded) {
|
|
28636
28844
|
if (source == null)
|
|
28637
28845
|
return {};
|
|
28638
|
-
var target = _object_without_properties_loose$
|
|
28846
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
28639
28847
|
var key, i;
|
|
28640
28848
|
if (Object.getOwnPropertySymbols) {
|
|
28641
28849
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -28650,7 +28858,7 @@ function _object_without_properties$4(source, excluded) {
|
|
|
28650
28858
|
}
|
|
28651
28859
|
return target;
|
|
28652
28860
|
}
|
|
28653
|
-
function _object_without_properties_loose$
|
|
28861
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
28654
28862
|
if (source == null)
|
|
28655
28863
|
return {};
|
|
28656
28864
|
var target = {};
|
|
@@ -28681,7 +28889,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
28681
28889
|
return _array_like_to_array$2(o, minLen);
|
|
28682
28890
|
}
|
|
28683
28891
|
var PhoneInput = function(_param) {
|
|
28684
|
-
var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$
|
|
28892
|
+
var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$5(_param, [
|
|
28685
28893
|
"locale",
|
|
28686
28894
|
"value",
|
|
28687
28895
|
"onChange",
|
|
@@ -29211,7 +29419,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
29211
29419
|
return _array_like_to_array$1(o, minLen);
|
|
29212
29420
|
}
|
|
29213
29421
|
function Selector(param) {
|
|
29214
|
-
var options = param.options, value = param.value, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_hasSameOptionsWidth = param.hasSameOptionsWidth, hasSameOptionsWidth = _param_hasSameOptionsWidth === void 0 ? true : _param_hasSameOptionsWidth, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_size = param.size,
|
|
29422
|
+
var options = param.options, value = param.value, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_hasSameOptionsWidth = param.hasSameOptionsWidth, hasSameOptionsWidth = _param_hasSameOptionsWidth === void 0 ? true : _param_hasSameOptionsWidth, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_size = param.size, size = _param_size === void 0 ? "l" : _param_size, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
29215
29423
|
var classes = useStyles$7({
|
|
29216
29424
|
theme: tweakStyles
|
|
29217
29425
|
});
|
|
@@ -29231,7 +29439,7 @@ function Selector(param) {
|
|
|
29231
29439
|
setElementsData(_to_consumable_array(listEl.querySelectorAll(".".concat(classes.optionWrapper))));
|
|
29232
29440
|
}, [
|
|
29233
29441
|
options,
|
|
29234
|
-
|
|
29442
|
+
size
|
|
29235
29443
|
]);
|
|
29236
29444
|
var activeElementData = isNotEmpty(value) ? elementsData[optionsValues.indexOf(value)] : void 0;
|
|
29237
29445
|
var _obj2;
|
|
@@ -29255,7 +29463,7 @@ function Selector(param) {
|
|
|
29255
29463
|
}, addDataTestId(testId)), {
|
|
29256
29464
|
children: /* @__PURE__ */ jsxs("button", _object_spread_props$b(_object_spread$b({
|
|
29257
29465
|
type: "button",
|
|
29258
|
-
className: clsx(classes.option, classes[
|
|
29466
|
+
className: clsx(classes.option, classes[size], (_obj3 = {}, _define_property$b(_obj3, classes.active, isActiveOption), _define_property$b(_obj3, classes.disabled, isDisabledOption), _obj3)),
|
|
29259
29467
|
disabled: isDisabledOption,
|
|
29260
29468
|
onClick: !isDisabledOption ? function() {
|
|
29261
29469
|
return onChange(option.value);
|
|
@@ -29510,10 +29718,10 @@ function _object_spread_props$9(target, source) {
|
|
|
29510
29718
|
}
|
|
29511
29719
|
return target;
|
|
29512
29720
|
}
|
|
29513
|
-
function _object_without_properties$
|
|
29721
|
+
function _object_without_properties$4(source, excluded) {
|
|
29514
29722
|
if (source == null)
|
|
29515
29723
|
return {};
|
|
29516
|
-
var target = _object_without_properties_loose$
|
|
29724
|
+
var target = _object_without_properties_loose$4(source, excluded);
|
|
29517
29725
|
var key, i;
|
|
29518
29726
|
if (Object.getOwnPropertySymbols) {
|
|
29519
29727
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -29528,7 +29736,7 @@ function _object_without_properties$3(source, excluded) {
|
|
|
29528
29736
|
}
|
|
29529
29737
|
return target;
|
|
29530
29738
|
}
|
|
29531
|
-
function _object_without_properties_loose$
|
|
29739
|
+
function _object_without_properties_loose$4(source, excluded) {
|
|
29532
29740
|
if (source == null)
|
|
29533
29741
|
return {};
|
|
29534
29742
|
var target = {};
|
|
@@ -29645,7 +29853,7 @@ function _ts_generator(thisArg, body) {
|
|
|
29645
29853
|
}
|
|
29646
29854
|
}
|
|
29647
29855
|
var SmartInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
29648
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, maxLength = _param.maxLength, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_isTransliterationEnabled = _param.isTransliterationEnabled, isTransliterationEnabled = _param_isTransliterationEnabled === void 0 ? true : _param_isTransliterationEnabled, onChange = _param.onChange, rest = _object_without_properties$
|
|
29856
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, maxLength = _param.maxLength, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_isTransliterationEnabled = _param.isTransliterationEnabled, isTransliterationEnabled = _param_isTransliterationEnabled === void 0 ? true : _param_isTransliterationEnabled, onChange = _param.onChange, rest = _object_without_properties$4(_param, [
|
|
29649
29857
|
"value",
|
|
29650
29858
|
"smartType",
|
|
29651
29859
|
"regExp",
|
|
@@ -29929,12 +30137,12 @@ function _object_spread_props$8(target, source) {
|
|
|
29929
30137
|
return target;
|
|
29930
30138
|
}
|
|
29931
30139
|
var Status = function(param) {
|
|
29932
|
-
var children = param.children, color = param.color, _param_size = param.size,
|
|
30140
|
+
var children = param.children, color = param.color, _param_size = param.size, size = _param_size === void 0 ? "s" : _param_size, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "right" : _param_iconPosition, badge = param.badge, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
29933
30141
|
var classes = useStyles$6({
|
|
29934
30142
|
theme: tweakStyles
|
|
29935
30143
|
});
|
|
29936
30144
|
return /* @__PURE__ */ jsxs("span", _object_spread_props$8(_object_spread$8({
|
|
29937
|
-
className: clsx(classes.root, classes[
|
|
30145
|
+
className: clsx(classes.root, classes[size], classes[color])
|
|
29938
30146
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
29939
30147
|
children: [
|
|
29940
30148
|
isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("span", {
|
|
@@ -30150,49 +30358,28 @@ function _object_spread_props$6(target, source) {
|
|
|
30150
30358
|
}
|
|
30151
30359
|
return target;
|
|
30152
30360
|
}
|
|
30153
|
-
var PADDING_X = 12;
|
|
30154
30361
|
var useStyles$4 = createThemedStyles("TextArea", {
|
|
30155
|
-
root: {
|
|
30156
|
-
width: "100%",
|
|
30157
|
-
height: "100%",
|
|
30158
|
-
display: "flex",
|
|
30159
|
-
flexDirection: "column"
|
|
30160
|
-
},
|
|
30161
|
-
wrapper: {
|
|
30162
|
-
display: "flex",
|
|
30163
|
-
position: "relative",
|
|
30164
|
-
width: "100%",
|
|
30165
|
-
flexGrow: 1,
|
|
30166
|
-
boxSizing: "border-box",
|
|
30167
|
-
transition: animations.defaultTransition,
|
|
30168
|
-
transitionProperty: "border-color",
|
|
30169
|
-
backgroundColor: "white",
|
|
30170
|
-
border: [
|
|
30171
|
-
"solid",
|
|
30172
|
-
1,
|
|
30173
|
-
"lightgray"
|
|
30174
|
-
]
|
|
30175
|
-
},
|
|
30176
30362
|
textarea: _object_spread_props$6(_object_spread$6({}, helpers.withScrollBar), {
|
|
30177
30363
|
width: "100%",
|
|
30178
30364
|
height: "100%",
|
|
30179
|
-
outline: "none",
|
|
30180
|
-
outlineStyle: "none",
|
|
30181
30365
|
fontFamily: "inherit",
|
|
30182
30366
|
fontSize: 16,
|
|
30183
30367
|
padding: [
|
|
30184
30368
|
14,
|
|
30185
|
-
|
|
30186
|
-
8
|
|
30369
|
+
0,
|
|
30370
|
+
8,
|
|
30371
|
+
"var(--control-padding)"
|
|
30187
30372
|
],
|
|
30188
|
-
scrollPadding: "14px 0 8px",
|
|
30373
|
+
scrollPadding: "14px 0 8px var(--control-padding)",
|
|
30374
|
+
scrollbarGutter: "stable",
|
|
30375
|
+
boxSizing: "border-box",
|
|
30376
|
+
outline: "none",
|
|
30377
|
+
outlineStyle: "none",
|
|
30189
30378
|
transition: animations.defaultTransition,
|
|
30190
30379
|
transitionProperty: "background-color",
|
|
30191
30380
|
border: "none",
|
|
30192
30381
|
resize: "none",
|
|
30193
|
-
"
|
|
30194
|
-
extend: "disabled"
|
|
30195
|
-
},
|
|
30382
|
+
background: "transparent",
|
|
30196
30383
|
"&::placeholder": {
|
|
30197
30384
|
opacity: 1
|
|
30198
30385
|
},
|
|
@@ -30202,107 +30389,38 @@ var useStyles$4 = createThemedStyles("TextArea", {
|
|
|
30202
30389
|
margin: 0
|
|
30203
30390
|
}
|
|
30204
30391
|
}),
|
|
30205
|
-
|
|
30206
|
-
display: "
|
|
30392
|
+
autoSized: {
|
|
30393
|
+
display: "grid",
|
|
30207
30394
|
gridTemplateRows: "minmax(0, 100%)",
|
|
30208
30395
|
"& > $textarea, &::after": {
|
|
30209
|
-
gridArea: "1 /
|
|
30396
|
+
gridArea: "1 / 2"
|
|
30210
30397
|
},
|
|
30211
30398
|
"&::after": {
|
|
30212
30399
|
extend: "textarea",
|
|
30213
30400
|
content: 'attr(data-value) " "',
|
|
30401
|
+
// Без пробела ломается!
|
|
30214
30402
|
overflowWrap: "break-word",
|
|
30215
30403
|
whiteSpace: "pre-wrap",
|
|
30216
|
-
visibility: "hidden"
|
|
30217
|
-
scrollbarGutter: "stable"
|
|
30218
|
-
}
|
|
30219
|
-
},
|
|
30220
|
-
focused: {
|
|
30221
|
-
position: "relative",
|
|
30222
|
-
zIndex: 1
|
|
30223
|
-
},
|
|
30224
|
-
withFloatingLabel: {
|
|
30225
|
-
"& $textarea, &::after": {
|
|
30226
|
-
paddingTop: 24,
|
|
30227
|
-
scrollPaddingTop: "24px"
|
|
30228
|
-
}
|
|
30229
|
-
},
|
|
30230
|
-
floating: {},
|
|
30231
|
-
activeLabel: {
|
|
30232
|
-
display: "none",
|
|
30233
|
-
"&$floating": {
|
|
30234
|
-
display: "block",
|
|
30235
|
-
transform: "scale(0.75) translateY(-120%)"
|
|
30236
|
-
}
|
|
30237
|
-
},
|
|
30238
|
-
required: {
|
|
30239
|
-
"&:before": {
|
|
30240
|
-
content: '""',
|
|
30241
|
-
position: "absolute",
|
|
30242
|
-
left: -12,
|
|
30243
|
-
top: 20,
|
|
30244
|
-
width: 6,
|
|
30245
|
-
height: 6,
|
|
30246
|
-
borderRadius: "50%",
|
|
30247
|
-
backgroundColor: "red"
|
|
30248
|
-
}
|
|
30249
|
-
},
|
|
30250
|
-
disabled: {},
|
|
30251
|
-
label: {
|
|
30252
|
-
position: "absolute",
|
|
30253
|
-
pointerEvents: "none",
|
|
30254
|
-
left: PADDING_X,
|
|
30255
|
-
top: PADDING_X * 2,
|
|
30256
|
-
transformOrigin: "top left",
|
|
30257
|
-
transform: "translateY(-50%)",
|
|
30258
|
-
transition: animations.defaultTransition,
|
|
30259
|
-
transitionProperty: "transform, color",
|
|
30260
|
-
fontSize: 16
|
|
30261
|
-
},
|
|
30262
|
-
invalid: {
|
|
30263
|
-
borderColor: "red"
|
|
30264
|
-
},
|
|
30265
|
-
invalidLabel: {},
|
|
30266
|
-
error: {
|
|
30267
|
-
fontSize: 12,
|
|
30268
|
-
paddingTop: 4,
|
|
30269
|
-
paddingLeft: 13,
|
|
30270
|
-
color: "red"
|
|
30271
|
-
},
|
|
30272
|
-
requiredLabel: {
|
|
30273
|
-
"&:after": {
|
|
30274
|
-
content: '""',
|
|
30275
|
-
position: "absolute",
|
|
30276
|
-
right: -8,
|
|
30277
|
-
top: 4,
|
|
30278
|
-
transform: "translate(0, -50%)",
|
|
30279
|
-
width: 6,
|
|
30280
|
-
height: 6,
|
|
30281
|
-
borderRadius: "50%",
|
|
30282
|
-
backgroundColor: "red"
|
|
30404
|
+
visibility: "hidden"
|
|
30283
30405
|
}
|
|
30284
30406
|
},
|
|
30285
30407
|
symbolsCount: {
|
|
30286
|
-
display: "block",
|
|
30287
30408
|
textAlign: "right",
|
|
30288
30409
|
marginTop: 4,
|
|
30289
30410
|
fontSize: 12,
|
|
30290
30411
|
marginLeft: "auto",
|
|
30291
|
-
|
|
30292
|
-
|
|
30412
|
+
whiteSpace: "nowrap",
|
|
30413
|
+
pointerEvents: "none"
|
|
30293
30414
|
},
|
|
30294
30415
|
symbolsCountError: {
|
|
30295
30416
|
color: "red"
|
|
30296
|
-
},
|
|
30297
|
-
footer: {
|
|
30298
|
-
display: "flex"
|
|
30299
|
-
},
|
|
30300
|
-
info: {
|
|
30301
|
-
fontSize: 12,
|
|
30302
|
-
paddingTop: 4,
|
|
30303
|
-
paddingLeft: 13
|
|
30304
30417
|
}
|
|
30305
30418
|
});
|
|
30419
|
+
var controlWrapperStyles = {
|
|
30420
|
+
label: {
|
|
30421
|
+
top: 16
|
|
30422
|
+
}
|
|
30423
|
+
};
|
|
30306
30424
|
function _array_like_to_array(arr, len) {
|
|
30307
30425
|
if (len == null || len > arr.length)
|
|
30308
30426
|
len = arr.length;
|
|
@@ -30397,6 +30515,38 @@ function _object_spread_props$5(target, source) {
|
|
|
30397
30515
|
}
|
|
30398
30516
|
return target;
|
|
30399
30517
|
}
|
|
30518
|
+
function _object_without_properties$3(source, excluded) {
|
|
30519
|
+
if (source == null)
|
|
30520
|
+
return {};
|
|
30521
|
+
var target = _object_without_properties_loose$3(source, excluded);
|
|
30522
|
+
var key, i;
|
|
30523
|
+
if (Object.getOwnPropertySymbols) {
|
|
30524
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
30525
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
30526
|
+
key = sourceSymbolKeys[i];
|
|
30527
|
+
if (excluded.indexOf(key) >= 0)
|
|
30528
|
+
continue;
|
|
30529
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
30530
|
+
continue;
|
|
30531
|
+
target[key] = source[key];
|
|
30532
|
+
}
|
|
30533
|
+
}
|
|
30534
|
+
return target;
|
|
30535
|
+
}
|
|
30536
|
+
function _object_without_properties_loose$3(source, excluded) {
|
|
30537
|
+
if (source == null)
|
|
30538
|
+
return {};
|
|
30539
|
+
var target = {};
|
|
30540
|
+
var sourceKeys = Object.keys(source);
|
|
30541
|
+
var key, i;
|
|
30542
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
30543
|
+
key = sourceKeys[i];
|
|
30544
|
+
if (excluded.indexOf(key) >= 0)
|
|
30545
|
+
continue;
|
|
30546
|
+
target[key] = source[key];
|
|
30547
|
+
}
|
|
30548
|
+
return target;
|
|
30549
|
+
}
|
|
30400
30550
|
function _sliced_to_array(arr, i) {
|
|
30401
30551
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
30402
30552
|
}
|
|
@@ -30414,93 +30564,107 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
30414
30564
|
return _array_like_to_array(o, minLen);
|
|
30415
30565
|
}
|
|
30416
30566
|
var DEFAULT_VALUE = "";
|
|
30417
|
-
var TextArea = /* @__PURE__ */ forwardRef(function(
|
|
30418
|
-
var _param_value =
|
|
30567
|
+
var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
30568
|
+
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = _param.label, placeholder = _param.placeholder, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, name = _param.name;
|
|
30569
|
+
_param.shouldFocusOnMount;
|
|
30570
|
+
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, controlProps = _object_without_properties$3(_param, [
|
|
30571
|
+
"value",
|
|
30572
|
+
"label",
|
|
30573
|
+
"placeholder",
|
|
30574
|
+
"infoMessage",
|
|
30575
|
+
"errorMessage",
|
|
30576
|
+
"name",
|
|
30577
|
+
"shouldFocusOnMount",
|
|
30578
|
+
"hasCounter",
|
|
30579
|
+
"shouldTrimAfterMaxLength",
|
|
30580
|
+
"isAutoSized",
|
|
30581
|
+
"shouldAlwaysShowPlaceholder",
|
|
30582
|
+
"isDisabled",
|
|
30583
|
+
"isActive",
|
|
30584
|
+
"maxLength",
|
|
30585
|
+
"rows",
|
|
30586
|
+
"data",
|
|
30587
|
+
"testId",
|
|
30588
|
+
"tweakStyles",
|
|
30589
|
+
"onChange",
|
|
30590
|
+
"onPaste",
|
|
30591
|
+
"onFocus",
|
|
30592
|
+
"onBlur"
|
|
30593
|
+
]);
|
|
30419
30594
|
var classes = useStyles$4({
|
|
30420
30595
|
theme: tweakStyles
|
|
30421
30596
|
});
|
|
30597
|
+
var tweakControlGroupStyles = useTweakStyles({
|
|
30598
|
+
tweakStyles,
|
|
30599
|
+
className: "tweakControlGroup",
|
|
30600
|
+
currentComponentName: "TextArea"
|
|
30601
|
+
});
|
|
30602
|
+
var tweakControlWrapperStyles = useTweakStyles({
|
|
30603
|
+
innerStyles: controlWrapperStyles,
|
|
30604
|
+
tweakStyles,
|
|
30605
|
+
className: "tweakControlWrapper",
|
|
30606
|
+
currentComponentName: "TextArea"
|
|
30607
|
+
});
|
|
30422
30608
|
var _useState = _sliced_to_array(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
30423
|
-
var
|
|
30424
|
-
|
|
30425
|
-
|
|
30426
|
-
|
|
30609
|
+
var hasFocus = isFocused || isActive;
|
|
30610
|
+
var hasValue = value !== void 0 && value !== "";
|
|
30611
|
+
var hasLabel = isReactNodeNotEmpty(label);
|
|
30612
|
+
var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
|
|
30613
|
+
var handleChange = function(event) {
|
|
30614
|
+
onChange(event.currentTarget.value, event);
|
|
30427
30615
|
};
|
|
30428
|
-
var
|
|
30616
|
+
var handleFocus = function(event) {
|
|
30429
30617
|
setFocused(true);
|
|
30430
|
-
|
|
30431
|
-
onFocus(event);
|
|
30432
|
-
}
|
|
30618
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
|
|
30433
30619
|
};
|
|
30434
|
-
var
|
|
30620
|
+
var handleBlur = function(event) {
|
|
30435
30621
|
setFocused(false);
|
|
30436
|
-
|
|
30437
|
-
onBlur(event);
|
|
30438
|
-
}
|
|
30622
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
30439
30623
|
};
|
|
30440
|
-
|
|
30441
|
-
|
|
30442
|
-
|
|
30443
|
-
|
|
30444
|
-
var props = _object_spread$5({
|
|
30445
|
-
className: classes.textarea,
|
|
30446
|
-
onFocus: handleOnFocus,
|
|
30447
|
-
onBlur: handleOnBlur,
|
|
30448
|
-
onChange: handleOnChange,
|
|
30449
|
-
value,
|
|
30450
|
-
onPaste,
|
|
30451
|
-
disabled: isDisabled,
|
|
30452
|
-
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
30453
|
-
name,
|
|
30454
|
-
autoFocus: shouldFocusOnMount,
|
|
30455
|
-
rows
|
|
30456
|
-
}, addDataTestId(testId));
|
|
30457
|
-
var hasInfoMessage = isStringNotEmpty(infoMessage);
|
|
30458
|
-
var hasErrorMessage = isStringNotEmpty(errorMessage);
|
|
30459
|
-
var _obj2, _obj1;
|
|
30460
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$5(_object_spread$5({
|
|
30461
|
-
className: classes.root
|
|
30462
|
-
}, addDataAttributes(data)), {
|
|
30624
|
+
return /* @__PURE__ */ jsxs(ControlGroup, {
|
|
30625
|
+
errorMessage,
|
|
30626
|
+
infoMessage,
|
|
30627
|
+
tweakStyles: tweakControlGroupStyles,
|
|
30463
30628
|
children: [
|
|
30464
|
-
/* @__PURE__ */
|
|
30465
|
-
|
|
30466
|
-
|
|
30467
|
-
|
|
30468
|
-
|
|
30469
|
-
|
|
30470
|
-
|
|
30471
|
-
|
|
30472
|
-
|
|
30473
|
-
|
|
30474
|
-
|
|
30475
|
-
|
|
30476
|
-
|
|
30477
|
-
|
|
30478
|
-
|
|
30629
|
+
/* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
|
|
30630
|
+
label,
|
|
30631
|
+
tweakStyles: tweakControlWrapperStyles,
|
|
30632
|
+
isFocused: hasFocus,
|
|
30633
|
+
isDisabled,
|
|
30634
|
+
hasValue,
|
|
30635
|
+
isFullWidth: true,
|
|
30636
|
+
testId
|
|
30637
|
+
}, controlProps), {
|
|
30638
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({}, isAutoSized && {
|
|
30639
|
+
className: classes.autoSized,
|
|
30640
|
+
"data-value": value
|
|
30641
|
+
}), {
|
|
30642
|
+
children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
|
|
30643
|
+
ref,
|
|
30644
|
+
className: classes.textarea,
|
|
30645
|
+
value,
|
|
30646
|
+
disabled: isDisabled,
|
|
30647
|
+
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
30648
|
+
maxLength: shouldTrimAfterMaxLength ? maxLength : void 0,
|
|
30649
|
+
name,
|
|
30650
|
+
rows,
|
|
30651
|
+
onPaste,
|
|
30652
|
+
onFocus: handleFocus,
|
|
30653
|
+
onBlur: handleBlur,
|
|
30654
|
+
onChange: handleChange
|
|
30655
|
+
}, addDataAttributes$1(data, testId, "control")))
|
|
30656
|
+
}))
|
|
30657
|
+
})),
|
|
30658
|
+
hasCounter && isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
|
|
30659
|
+
className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
|
|
30479
30660
|
children: [
|
|
30480
|
-
|
|
30481
|
-
|
|
30482
|
-
|
|
30483
|
-
}),
|
|
30484
|
-
!hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
|
|
30485
|
-
className: classes.error,
|
|
30486
|
-
children: errorMessage
|
|
30487
|
-
}),
|
|
30488
|
-
hasCounter && isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
|
|
30489
|
-
className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
|
|
30490
|
-
children: [
|
|
30491
|
-
value.length,
|
|
30492
|
-
" / ",
|
|
30493
|
-
maxLength
|
|
30494
|
-
]
|
|
30495
|
-
})
|
|
30661
|
+
value.length,
|
|
30662
|
+
" / ",
|
|
30663
|
+
maxLength
|
|
30496
30664
|
]
|
|
30497
|
-
}),
|
|
30498
|
-
hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
|
|
30499
|
-
className: classes.error,
|
|
30500
|
-
children: errorMessage
|
|
30501
30665
|
})
|
|
30502
30666
|
]
|
|
30503
|
-
})
|
|
30667
|
+
});
|
|
30504
30668
|
});
|
|
30505
30669
|
var useStyles$3 = createThemedStyles("TextButton", {
|
|
30506
30670
|
root: {
|
|
@@ -30689,7 +30853,7 @@ function _object_without_properties_loose$2(source, excluded) {
|
|
|
30689
30853
|
return target;
|
|
30690
30854
|
}
|
|
30691
30855
|
var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
30692
|
-
var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size,
|
|
30856
|
+
var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$2(_param, [
|
|
30693
30857
|
"children",
|
|
30694
30858
|
"icon",
|
|
30695
30859
|
"view",
|
|
@@ -30721,7 +30885,7 @@ var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
30721
30885
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$4(_object_spread$4({
|
|
30722
30886
|
ref,
|
|
30723
30887
|
type,
|
|
30724
|
-
className: clsx(classes.root, classes[
|
|
30888
|
+
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$4(_obj2, classes.bold, isBold), _define_property$4(_obj2, classes.loading, isLoading), _define_property$4(_obj2, classes.active, isActive), _define_property$4(_obj2, classes.disabled, isDisabled), _obj2)),
|
|
30725
30889
|
disabled: hasNoAction,
|
|
30726
30890
|
onClick: !hasNoAction ? onClick : void 0
|
|
30727
30891
|
}, restProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
@@ -31209,11 +31373,6 @@ var NewMoreMenu = function(_param) {
|
|
|
31209
31373
|
}
|
|
31210
31374
|
}));
|
|
31211
31375
|
};
|
|
31212
|
-
var withPopupStyles = {
|
|
31213
|
-
popup: {
|
|
31214
|
-
zIndex: 9999
|
|
31215
|
-
}
|
|
31216
|
-
};
|
|
31217
31376
|
function _define_property(obj, key, value) {
|
|
31218
31377
|
if (key in obj) {
|
|
31219
31378
|
Object.defineProperty(obj, key, {
|
|
@@ -31299,7 +31458,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
31299
31458
|
return target;
|
|
31300
31459
|
}
|
|
31301
31460
|
var WithTooltip = function(_param) {
|
|
31302
|
-
var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled,
|
|
31461
|
+
var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = _param.tweakStyles, restProps = _object_without_properties(_param, [
|
|
31303
31462
|
"children",
|
|
31304
31463
|
"eventType",
|
|
31305
31464
|
"placement",
|
|
@@ -31307,29 +31466,22 @@ var WithTooltip = function(_param) {
|
|
|
31307
31466
|
"tooltipView",
|
|
31308
31467
|
"tooltipType",
|
|
31309
31468
|
"isDisabled",
|
|
31310
|
-
"popupData",
|
|
31311
31469
|
"tweakStyles"
|
|
31312
31470
|
]);
|
|
31313
31471
|
var tweakWithPopupStyles = useTweakStyles({
|
|
31314
|
-
innerStyles: withPopupStyles,
|
|
31315
31472
|
tweakStyles,
|
|
31316
|
-
className: "tweakWithPopup"
|
|
31317
|
-
currentComponentName: "WithTooltip"
|
|
31473
|
+
className: "tweakWithPopup"
|
|
31318
31474
|
});
|
|
31319
31475
|
var tweakTooltipStyles = useTweakStyles({
|
|
31320
31476
|
tweakStyles,
|
|
31321
|
-
className: "tweakTooltip"
|
|
31322
|
-
currentComponentName: "WithTooltip"
|
|
31477
|
+
className: "tweakTooltip"
|
|
31323
31478
|
});
|
|
31324
31479
|
return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({
|
|
31325
31480
|
trigger: children,
|
|
31326
31481
|
placement,
|
|
31327
31482
|
eventType,
|
|
31328
|
-
popupData: _object_spread_props(_object_spread({}, popupData), {
|
|
31329
|
-
tooltipView
|
|
31330
|
-
}),
|
|
31331
|
-
isDisabled: isDisabled || !isReactNodeNotEmpty(tooltipText),
|
|
31332
31483
|
isTriggerWrapped: true,
|
|
31484
|
+
isDisabled: isDisabled || !isReactNodeNotEmpty(tooltipText),
|
|
31333
31485
|
tweakStyles: tweakWithPopupStyles
|
|
31334
31486
|
}, restProps), {
|
|
31335
31487
|
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
@@ -31348,6 +31500,8 @@ export {
|
|
|
31348
31500
|
Checkbox,
|
|
31349
31501
|
CloseButton,
|
|
31350
31502
|
Colors,
|
|
31503
|
+
ControlGroup,
|
|
31504
|
+
ControlWrapper,
|
|
31351
31505
|
CssBaseline,
|
|
31352
31506
|
DEFAULT_PHONE_MASK,
|
|
31353
31507
|
DateInput,
|
|
@@ -31373,6 +31527,7 @@ export {
|
|
|
31373
31527
|
IconButton,
|
|
31374
31528
|
IncrementInput,
|
|
31375
31529
|
Input,
|
|
31530
|
+
InputBase,
|
|
31376
31531
|
List,
|
|
31377
31532
|
ListItem,
|
|
31378
31533
|
Modal,
|