@true-engineering/true-react-common-ui-kit 4.0.0-alpha23 → 4.0.0-alpha25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/true-react-common-ui-kit.js +68 -54
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +68 -54
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/DatePicker/DatePicker.stories.tsx +21 -0
- package/src/components/DatePicker/DatePicker.tsx +6 -3
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +1 -1
- package/src/components/WithPopup/WithPopup.tsx +3 -5
|
@@ -1164,25 +1164,25 @@ function _array_with_holes$r(arr) {
|
|
|
1164
1164
|
if (Array.isArray(arr))
|
|
1165
1165
|
return arr;
|
|
1166
1166
|
}
|
|
1167
|
-
function _array_without_holes$
|
|
1167
|
+
function _array_without_holes$d(arr) {
|
|
1168
1168
|
if (Array.isArray(arr))
|
|
1169
1169
|
return _array_like_to_array$t(arr);
|
|
1170
1170
|
}
|
|
1171
|
-
function _iterable_to_array$
|
|
1171
|
+
function _iterable_to_array$d(iter) {
|
|
1172
1172
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1173
1173
|
return Array.from(iter);
|
|
1174
1174
|
}
|
|
1175
1175
|
function _non_iterable_rest$r() {
|
|
1176
1176
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1177
1177
|
}
|
|
1178
|
-
function _non_iterable_spread$
|
|
1178
|
+
function _non_iterable_spread$d() {
|
|
1179
1179
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1180
1180
|
}
|
|
1181
1181
|
function _to_array$2(arr) {
|
|
1182
|
-
return _array_with_holes$r(arr) || _iterable_to_array$
|
|
1182
|
+
return _array_with_holes$r(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_rest$r();
|
|
1183
1183
|
}
|
|
1184
|
-
function _to_consumable_array$
|
|
1185
|
-
return _array_without_holes$
|
|
1184
|
+
function _to_consumable_array$d(arr) {
|
|
1185
|
+
return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_spread$d();
|
|
1186
1186
|
}
|
|
1187
1187
|
function _unsupported_iterable_to_array$t(o, minLen) {
|
|
1188
1188
|
if (!o)
|
|
@@ -1214,7 +1214,7 @@ var mergeTweakStyles = function(tweakStyles) {
|
|
|
1214
1214
|
var _tweakStyles = _to_array$2(tweakStyles), first = _tweakStyles[0], rest = _tweakStyles.slice(1);
|
|
1215
1215
|
return isArrayNotEmpty(rest) ? mergeStyles.apply(void 0, [
|
|
1216
1216
|
first
|
|
1217
|
-
].concat(_to_consumable_array$
|
|
1217
|
+
].concat(_to_consumable_array$d(rest))) : first;
|
|
1218
1218
|
};
|
|
1219
1219
|
var checkStyles = function(componentName, styles) {
|
|
1220
1220
|
var invalidClasses = Object.keys(styles).filter(isTweakStyle);
|
|
@@ -1267,7 +1267,7 @@ function _array_with_holes$q(arr) {
|
|
|
1267
1267
|
if (Array.isArray(arr))
|
|
1268
1268
|
return arr;
|
|
1269
1269
|
}
|
|
1270
|
-
function _array_without_holes$
|
|
1270
|
+
function _array_without_holes$c(arr) {
|
|
1271
1271
|
if (Array.isArray(arr))
|
|
1272
1272
|
return _array_like_to_array$s(arr);
|
|
1273
1273
|
}
|
|
@@ -1346,7 +1346,7 @@ function _define_property$1c(obj, key, value) {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
return obj;
|
|
1348
1348
|
}
|
|
1349
|
-
function _iterable_to_array$
|
|
1349
|
+
function _iterable_to_array$c(iter) {
|
|
1350
1350
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1351
1351
|
return Array.from(iter);
|
|
1352
1352
|
}
|
|
@@ -1381,7 +1381,7 @@ function _iterable_to_array_limit$p(arr, i) {
|
|
|
1381
1381
|
function _non_iterable_rest$q() {
|
|
1382
1382
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1383
1383
|
}
|
|
1384
|
-
function _non_iterable_spread$
|
|
1384
|
+
function _non_iterable_spread$c() {
|
|
1385
1385
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1386
1386
|
}
|
|
1387
1387
|
function _object_spread$1a(target) {
|
|
@@ -1403,10 +1403,10 @@ function _sliced_to_array$p(arr, i) {
|
|
|
1403
1403
|
return _array_with_holes$q(arr) || _iterable_to_array_limit$p(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$q();
|
|
1404
1404
|
}
|
|
1405
1405
|
function _to_array$1(arr) {
|
|
1406
|
-
return _array_with_holes$q(arr) || _iterable_to_array$
|
|
1406
|
+
return _array_with_holes$q(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_rest$q();
|
|
1407
1407
|
}
|
|
1408
|
-
function _to_consumable_array$
|
|
1409
|
-
return _array_without_holes$
|
|
1408
|
+
function _to_consumable_array$c(arr) {
|
|
1409
|
+
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_spread$c();
|
|
1410
1410
|
}
|
|
1411
1411
|
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
1412
1412
|
if (!o)
|
|
@@ -1524,7 +1524,7 @@ var TweakStylesManager = /* @__PURE__ */ function() {
|
|
|
1524
1524
|
var _$_class_private_field_get = _to_array$1(_class_private_field_get$1(this, _tweak)), first = _$_class_private_field_get[0], rest = _$_class_private_field_get.slice(1);
|
|
1525
1525
|
var styles = isArrayNotEmpty(rest) ? mergeStyles.apply(void 0, [
|
|
1526
1526
|
first
|
|
1527
|
-
].concat(_to_consumable_array$
|
|
1527
|
+
].concat(_to_consumable_array$c(rest))) : first;
|
|
1528
1528
|
var rules = this.addRules(styles);
|
|
1529
1529
|
var classes = _object_spread$1a({}, _class_private_field_get$1(this, _classes));
|
|
1530
1530
|
rules.forEach(function(rule, key) {
|
|
@@ -4751,19 +4751,19 @@ function _array_like_to_array$q(arr, len) {
|
|
|
4751
4751
|
arr2[i] = arr[i];
|
|
4752
4752
|
return arr2;
|
|
4753
4753
|
}
|
|
4754
|
-
function _array_without_holes$
|
|
4754
|
+
function _array_without_holes$b(arr) {
|
|
4755
4755
|
if (Array.isArray(arr))
|
|
4756
4756
|
return _array_like_to_array$q(arr);
|
|
4757
4757
|
}
|
|
4758
|
-
function _iterable_to_array$
|
|
4758
|
+
function _iterable_to_array$b(iter) {
|
|
4759
4759
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
4760
4760
|
return Array.from(iter);
|
|
4761
4761
|
}
|
|
4762
|
-
function _non_iterable_spread$
|
|
4762
|
+
function _non_iterable_spread$b() {
|
|
4763
4763
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4764
4764
|
}
|
|
4765
|
-
function _to_consumable_array$
|
|
4766
|
-
return _array_without_holes$
|
|
4765
|
+
function _to_consumable_array$b(arr) {
|
|
4766
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$b();
|
|
4767
4767
|
}
|
|
4768
4768
|
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
4769
4769
|
if (!o)
|
|
@@ -4803,7 +4803,7 @@ var checkSearchStringInCountry = function(country, searchString) {
|
|
|
4803
4803
|
var possibleValues = [
|
|
4804
4804
|
country.countryRu,
|
|
4805
4805
|
country.countryEn
|
|
4806
|
-
].concat(_to_consumable_array$
|
|
4806
|
+
].concat(_to_consumable_array$b(country.countryRu.split(" ")), _to_consumable_array$b(country.countryEn.split(" ")), [
|
|
4807
4807
|
country.dialCode
|
|
4808
4808
|
]).map(function(part) {
|
|
4809
4809
|
return part.toLowerCase();
|
|
@@ -6574,7 +6574,7 @@ function _array_like_to_array$o(arr, len) {
|
|
|
6574
6574
|
arr2[i] = arr[i];
|
|
6575
6575
|
return arr2;
|
|
6576
6576
|
}
|
|
6577
|
-
function _array_without_holes$
|
|
6577
|
+
function _array_without_holes$a(arr) {
|
|
6578
6578
|
if (Array.isArray(arr))
|
|
6579
6579
|
return _array_like_to_array$o(arr);
|
|
6580
6580
|
}
|
|
@@ -6591,11 +6591,11 @@ function _define_property$18(obj, key, value) {
|
|
|
6591
6591
|
}
|
|
6592
6592
|
return obj;
|
|
6593
6593
|
}
|
|
6594
|
-
function _iterable_to_array$
|
|
6594
|
+
function _iterable_to_array$a(iter) {
|
|
6595
6595
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
6596
6596
|
return Array.from(iter);
|
|
6597
6597
|
}
|
|
6598
|
-
function _non_iterable_spread$
|
|
6598
|
+
function _non_iterable_spread$a() {
|
|
6599
6599
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6600
6600
|
}
|
|
6601
6601
|
function _object_spread$16(target) {
|
|
@@ -6613,8 +6613,8 @@ function _object_spread$16(target) {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
return target;
|
|
6615
6615
|
}
|
|
6616
|
-
function _to_consumable_array$
|
|
6617
|
-
return _array_without_holes$
|
|
6616
|
+
function _to_consumable_array$a(arr) {
|
|
6617
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$a();
|
|
6618
6618
|
}
|
|
6619
6619
|
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
6620
6620
|
if (!o)
|
|
@@ -6650,7 +6650,7 @@ var useDropdown = function(param) {
|
|
|
6650
6650
|
popperData = usePopper(referenceElement, dropdownElement, {
|
|
6651
6651
|
enabled: isOpen,
|
|
6652
6652
|
placement,
|
|
6653
|
-
modifiers: _to_consumable_array$
|
|
6653
|
+
modifiers: _to_consumable_array$a(shouldRenderInBody ? [
|
|
6654
6654
|
minWidthModifier
|
|
6655
6655
|
] : []).concat([
|
|
6656
6656
|
{
|
|
@@ -6673,7 +6673,7 @@ var useDropdown = function(param) {
|
|
|
6673
6673
|
]
|
|
6674
6674
|
}, flipOptions)
|
|
6675
6675
|
}
|
|
6676
|
-
], _to_consumable_array$
|
|
6676
|
+
], _to_consumable_array$a(modifiers))
|
|
6677
6677
|
});
|
|
6678
6678
|
}
|
|
6679
6679
|
useEffect(function() {
|
|
@@ -6694,25 +6694,25 @@ function _array_with_holes$n(arr) {
|
|
|
6694
6694
|
if (Array.isArray(arr))
|
|
6695
6695
|
return arr;
|
|
6696
6696
|
}
|
|
6697
|
-
function _array_without_holes$
|
|
6697
|
+
function _array_without_holes$9(arr) {
|
|
6698
6698
|
if (Array.isArray(arr))
|
|
6699
6699
|
return _array_like_to_array$n(arr);
|
|
6700
6700
|
}
|
|
6701
|
-
function _iterable_to_array$
|
|
6701
|
+
function _iterable_to_array$9(iter) {
|
|
6702
6702
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
6703
6703
|
return Array.from(iter);
|
|
6704
6704
|
}
|
|
6705
6705
|
function _non_iterable_rest$n() {
|
|
6706
6706
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6707
6707
|
}
|
|
6708
|
-
function _non_iterable_spread$
|
|
6708
|
+
function _non_iterable_spread$9() {
|
|
6709
6709
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6710
6710
|
}
|
|
6711
6711
|
function _to_array(arr) {
|
|
6712
|
-
return _array_with_holes$n(arr) || _iterable_to_array$
|
|
6712
|
+
return _array_with_holes$n(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_rest$n();
|
|
6713
6713
|
}
|
|
6714
|
-
function _to_consumable_array$
|
|
6715
|
-
return _array_without_holes$
|
|
6714
|
+
function _to_consumable_array$9(arr) {
|
|
6715
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$9();
|
|
6716
6716
|
}
|
|
6717
6717
|
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
6718
6718
|
if (!o)
|
|
@@ -6747,7 +6747,7 @@ var useTweakStyles = function(param) {
|
|
|
6747
6747
|
mergeStyles.apply(void 0, [
|
|
6748
6748
|
maybeInnerStyles,
|
|
6749
6749
|
maybeThemeStyles
|
|
6750
|
-
].concat(_to_consumable_array$
|
|
6750
|
+
].concat(_to_consumable_array$9(rest)))
|
|
6751
6751
|
];
|
|
6752
6752
|
}
|
|
6753
6753
|
if (!areStylesThemed(maybeInnerStyles)) {
|
|
@@ -7992,7 +7992,7 @@ function _array_with_holes$m(arr) {
|
|
|
7992
7992
|
if (Array.isArray(arr))
|
|
7993
7993
|
return arr;
|
|
7994
7994
|
}
|
|
7995
|
-
function _array_without_holes$
|
|
7995
|
+
function _array_without_holes$8(arr) {
|
|
7996
7996
|
if (Array.isArray(arr))
|
|
7997
7997
|
return _array_like_to_array$m(arr);
|
|
7998
7998
|
}
|
|
@@ -8009,7 +8009,7 @@ function _define_property$14(obj, key, value) {
|
|
|
8009
8009
|
}
|
|
8010
8010
|
return obj;
|
|
8011
8011
|
}
|
|
8012
|
-
function _iterable_to_array$
|
|
8012
|
+
function _iterable_to_array$8(iter) {
|
|
8013
8013
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
8014
8014
|
return Array.from(iter);
|
|
8015
8015
|
}
|
|
@@ -8044,7 +8044,7 @@ function _iterable_to_array_limit$m(arr, i) {
|
|
|
8044
8044
|
function _non_iterable_rest$m() {
|
|
8045
8045
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8046
8046
|
}
|
|
8047
|
-
function _non_iterable_spread$
|
|
8047
|
+
function _non_iterable_spread$8() {
|
|
8048
8048
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8049
8049
|
}
|
|
8050
8050
|
function _object_spread$12(target) {
|
|
@@ -8089,8 +8089,8 @@ function _object_spread_props$S(target, source) {
|
|
|
8089
8089
|
function _sliced_to_array$m(arr, i) {
|
|
8090
8090
|
return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$m();
|
|
8091
8091
|
}
|
|
8092
|
-
function _to_consumable_array$
|
|
8093
|
-
return _array_without_holes$
|
|
8092
|
+
function _to_consumable_array$8(arr) {
|
|
8093
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$m(arr) || _non_iterable_spread$8();
|
|
8094
8094
|
}
|
|
8095
8095
|
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
8096
8096
|
if (!o)
|
|
@@ -8114,23 +8114,21 @@ var WithPopup = function(param) {
|
|
|
8114
8114
|
var arrowRef = useRef(null);
|
|
8115
8115
|
var handleToggle = function(isActive, event) {
|
|
8116
8116
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
setIsOpen(isActive);
|
|
8120
|
-
}
|
|
8117
|
+
onToggle === null || onToggle === void 0 ? void 0 : onToggle(isActive, event);
|
|
8118
|
+
setIsOpen(isActive);
|
|
8121
8119
|
};
|
|
8122
8120
|
var handleClose = function(event) {
|
|
8123
8121
|
handleToggle(false, event);
|
|
8124
8122
|
};
|
|
8125
8123
|
var _useFloating = useFloating({
|
|
8126
|
-
open: isOpen,
|
|
8124
|
+
open: isOpen && !isDisabled,
|
|
8127
8125
|
middleware: [
|
|
8128
8126
|
offset$2(popupOffset),
|
|
8129
8127
|
canBeFlipped && flip$2({
|
|
8130
8128
|
fallbackAxisSideDirection: "start"
|
|
8131
8129
|
}),
|
|
8132
8130
|
isMinWidthSameAsTrigger && minWidthRelativeToTrigger
|
|
8133
|
-
].concat(_to_consumable_array$
|
|
8131
|
+
].concat(_to_consumable_array$8(middlewares), [
|
|
8134
8132
|
shouldShowArrow && arrow$2({
|
|
8135
8133
|
element: arrowRef
|
|
8136
8134
|
})
|
|
@@ -11701,7 +11699,7 @@ function _array_with_holes$i(arr) {
|
|
|
11701
11699
|
if (Array.isArray(arr))
|
|
11702
11700
|
return arr;
|
|
11703
11701
|
}
|
|
11704
|
-
function _array_without_holes$
|
|
11702
|
+
function _array_without_holes$7(arr) {
|
|
11705
11703
|
if (Array.isArray(arr))
|
|
11706
11704
|
return _array_like_to_array$i(arr);
|
|
11707
11705
|
}
|
|
@@ -11747,7 +11745,7 @@ function _define_property$L(obj, key, value) {
|
|
|
11747
11745
|
}
|
|
11748
11746
|
return obj;
|
|
11749
11747
|
}
|
|
11750
|
-
function _iterable_to_array$
|
|
11748
|
+
function _iterable_to_array$7(iter) {
|
|
11751
11749
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
11752
11750
|
return Array.from(iter);
|
|
11753
11751
|
}
|
|
@@ -11782,7 +11780,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
11782
11780
|
function _non_iterable_rest$i() {
|
|
11783
11781
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11784
11782
|
}
|
|
11785
|
-
function _non_iterable_spread$
|
|
11783
|
+
function _non_iterable_spread$7() {
|
|
11786
11784
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11787
11785
|
}
|
|
11788
11786
|
function _object_spread$J(target) {
|
|
@@ -11859,8 +11857,8 @@ function _object_without_properties_loose$d(source, excluded) {
|
|
|
11859
11857
|
function _sliced_to_array$i(arr, i) {
|
|
11860
11858
|
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$i();
|
|
11861
11859
|
}
|
|
11862
|
-
function _to_consumable_array$
|
|
11863
|
-
return _array_without_holes$
|
|
11860
|
+
function _to_consumable_array$7(arr) {
|
|
11861
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$i(arr) || _non_iterable_spread$7();
|
|
11864
11862
|
}
|
|
11865
11863
|
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
11866
11864
|
if (!o)
|
|
@@ -12195,7 +12193,7 @@ function Select(props) {
|
|
|
12195
12193
|
var option = filteredOptions[index];
|
|
12196
12194
|
handleChange(isSelected ? (
|
|
12197
12195
|
// Добавляем
|
|
12198
|
-
_to_consumable_array$
|
|
12196
|
+
_to_consumable_array$7(value !== null && value !== void 0 ? value : []).concat([
|
|
12199
12197
|
option
|
|
12200
12198
|
])
|
|
12201
12199
|
) : (
|
|
@@ -13864,6 +13862,10 @@ function _array_with_holes$h(arr) {
|
|
|
13864
13862
|
if (Array.isArray(arr))
|
|
13865
13863
|
return arr;
|
|
13866
13864
|
}
|
|
13865
|
+
function _array_without_holes$6(arr) {
|
|
13866
|
+
if (Array.isArray(arr))
|
|
13867
|
+
return _array_like_to_array$h(arr);
|
|
13868
|
+
}
|
|
13867
13869
|
function _define_property$J(obj, key, value) {
|
|
13868
13870
|
if (key in obj) {
|
|
13869
13871
|
Object.defineProperty(obj, key, {
|
|
@@ -13877,6 +13879,10 @@ function _define_property$J(obj, key, value) {
|
|
|
13877
13879
|
}
|
|
13878
13880
|
return obj;
|
|
13879
13881
|
}
|
|
13882
|
+
function _iterable_to_array$6(iter) {
|
|
13883
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
13884
|
+
return Array.from(iter);
|
|
13885
|
+
}
|
|
13880
13886
|
function _iterable_to_array_limit$h(arr, i) {
|
|
13881
13887
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13882
13888
|
if (_i == null)
|
|
@@ -13908,6 +13914,9 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
13908
13914
|
function _non_iterable_rest$h() {
|
|
13909
13915
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13910
13916
|
}
|
|
13917
|
+
function _non_iterable_spread$6() {
|
|
13918
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13919
|
+
}
|
|
13911
13920
|
function _object_spread$H(target) {
|
|
13912
13921
|
for (var i = 1; i < arguments.length; i++) {
|
|
13913
13922
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -13982,6 +13991,9 @@ function _object_without_properties_loose$c(source, excluded) {
|
|
|
13982
13991
|
function _sliced_to_array$h(arr, i) {
|
|
13983
13992
|
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$h();
|
|
13984
13993
|
}
|
|
13994
|
+
function _to_consumable_array$6(arr) {
|
|
13995
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$6();
|
|
13996
|
+
}
|
|
13985
13997
|
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
13986
13998
|
if (!o)
|
|
13987
13999
|
return;
|
|
@@ -13996,7 +14008,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
|
|
|
13996
14008
|
return _array_like_to_array$h(o, minLen);
|
|
13997
14009
|
}
|
|
13998
14010
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
13999
|
-
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, locale = _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, 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,
|
|
14011
|
+
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, locale = _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, 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, _param_popperModifiers = _param.popperModifiers, popperModifiers = _param_popperModifiers === void 0 ? [] : _param_popperModifiers, _param_popperPlacement = _param.popperPlacement, popperPlacement = _param_popperPlacement === void 0 ? "bottom-start" : _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, [
|
|
14000
14012
|
"data",
|
|
14001
14013
|
"selectedDate",
|
|
14002
14014
|
"minDate",
|
|
@@ -14190,7 +14202,9 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
14190
14202
|
},
|
|
14191
14203
|
disabledKeyboardNavigation,
|
|
14192
14204
|
popperContainer: shouldRenderPopperInBody ? PopperContainer : void 0,
|
|
14193
|
-
popperModifiers
|
|
14205
|
+
popperModifiers: [
|
|
14206
|
+
offset$2(-10)
|
|
14207
|
+
].concat(_to_consumable_array$6(popperModifiers)),
|
|
14194
14208
|
popperPlacement,
|
|
14195
14209
|
strictParsing,
|
|
14196
14210
|
preventOpenOnFocus,
|
|
@@ -19130,7 +19144,7 @@ var useStyles$q = createThemedStyles("FilterWithDates", {
|
|
|
19130
19144
|
var clearButtonStyles = cloneDeep(innerTextButtonStyles);
|
|
19131
19145
|
var backButtonStyles = innerTextButtonStyles;
|
|
19132
19146
|
var PICKER_TOP_MARGIN = 28;
|
|
19133
|
-
var PICKER_WITH_BUTTONS_TOP_MARGIN =
|
|
19147
|
+
var PICKER_WITH_BUTTONS_TOP_MARGIN = 56;
|
|
19134
19148
|
var START_PICKER_LEFT_MARGIN = -20;
|
|
19135
19149
|
var END_PICKER_LEFT_MARGIN = -170;
|
|
19136
19150
|
var startDatePickerStyles = {
|