@true-engineering/true-react-common-ui-kit 4.0.0-alpha23 → 4.0.0-alpha24
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 +65 -49
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +65 -49
- 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
|
@@ -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)
|
|
@@ -8130,7 +8130,7 @@ var WithPopup = function(param) {
|
|
|
8130
8130
|
fallbackAxisSideDirection: "start"
|
|
8131
8131
|
}),
|
|
8132
8132
|
isMinWidthSameAsTrigger && minWidthRelativeToTrigger
|
|
8133
|
-
].concat(_to_consumable_array$
|
|
8133
|
+
].concat(_to_consumable_array$8(middlewares), [
|
|
8134
8134
|
shouldShowArrow && arrow$2({
|
|
8135
8135
|
element: arrowRef
|
|
8136
8136
|
})
|
|
@@ -11701,7 +11701,7 @@ function _array_with_holes$i(arr) {
|
|
|
11701
11701
|
if (Array.isArray(arr))
|
|
11702
11702
|
return arr;
|
|
11703
11703
|
}
|
|
11704
|
-
function _array_without_holes$
|
|
11704
|
+
function _array_without_holes$7(arr) {
|
|
11705
11705
|
if (Array.isArray(arr))
|
|
11706
11706
|
return _array_like_to_array$i(arr);
|
|
11707
11707
|
}
|
|
@@ -11747,7 +11747,7 @@ function _define_property$L(obj, key, value) {
|
|
|
11747
11747
|
}
|
|
11748
11748
|
return obj;
|
|
11749
11749
|
}
|
|
11750
|
-
function _iterable_to_array$
|
|
11750
|
+
function _iterable_to_array$7(iter) {
|
|
11751
11751
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
11752
11752
|
return Array.from(iter);
|
|
11753
11753
|
}
|
|
@@ -11782,7 +11782,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
11782
11782
|
function _non_iterable_rest$i() {
|
|
11783
11783
|
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
11784
|
}
|
|
11785
|
-
function _non_iterable_spread$
|
|
11785
|
+
function _non_iterable_spread$7() {
|
|
11786
11786
|
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
11787
|
}
|
|
11788
11788
|
function _object_spread$J(target) {
|
|
@@ -11859,8 +11859,8 @@ function _object_without_properties_loose$d(source, excluded) {
|
|
|
11859
11859
|
function _sliced_to_array$i(arr, i) {
|
|
11860
11860
|
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
11861
|
}
|
|
11862
|
-
function _to_consumable_array$
|
|
11863
|
-
return _array_without_holes$
|
|
11862
|
+
function _to_consumable_array$7(arr) {
|
|
11863
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$i(arr) || _non_iterable_spread$7();
|
|
11864
11864
|
}
|
|
11865
11865
|
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
11866
11866
|
if (!o)
|
|
@@ -12195,7 +12195,7 @@ function Select(props) {
|
|
|
12195
12195
|
var option = filteredOptions[index];
|
|
12196
12196
|
handleChange(isSelected ? (
|
|
12197
12197
|
// Добавляем
|
|
12198
|
-
_to_consumable_array$
|
|
12198
|
+
_to_consumable_array$7(value !== null && value !== void 0 ? value : []).concat([
|
|
12199
12199
|
option
|
|
12200
12200
|
])
|
|
12201
12201
|
) : (
|
|
@@ -13864,6 +13864,10 @@ function _array_with_holes$h(arr) {
|
|
|
13864
13864
|
if (Array.isArray(arr))
|
|
13865
13865
|
return arr;
|
|
13866
13866
|
}
|
|
13867
|
+
function _array_without_holes$6(arr) {
|
|
13868
|
+
if (Array.isArray(arr))
|
|
13869
|
+
return _array_like_to_array$h(arr);
|
|
13870
|
+
}
|
|
13867
13871
|
function _define_property$J(obj, key, value) {
|
|
13868
13872
|
if (key in obj) {
|
|
13869
13873
|
Object.defineProperty(obj, key, {
|
|
@@ -13877,6 +13881,10 @@ function _define_property$J(obj, key, value) {
|
|
|
13877
13881
|
}
|
|
13878
13882
|
return obj;
|
|
13879
13883
|
}
|
|
13884
|
+
function _iterable_to_array$6(iter) {
|
|
13885
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
13886
|
+
return Array.from(iter);
|
|
13887
|
+
}
|
|
13880
13888
|
function _iterable_to_array_limit$h(arr, i) {
|
|
13881
13889
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13882
13890
|
if (_i == null)
|
|
@@ -13908,6 +13916,9 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
13908
13916
|
function _non_iterable_rest$h() {
|
|
13909
13917
|
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
13918
|
}
|
|
13919
|
+
function _non_iterable_spread$6() {
|
|
13920
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13921
|
+
}
|
|
13911
13922
|
function _object_spread$H(target) {
|
|
13912
13923
|
for (var i = 1; i < arguments.length; i++) {
|
|
13913
13924
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -13982,6 +13993,9 @@ function _object_without_properties_loose$c(source, excluded) {
|
|
|
13982
13993
|
function _sliced_to_array$h(arr, i) {
|
|
13983
13994
|
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
13995
|
}
|
|
13996
|
+
function _to_consumable_array$6(arr) {
|
|
13997
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$6();
|
|
13998
|
+
}
|
|
13985
13999
|
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
13986
14000
|
if (!o)
|
|
13987
14001
|
return;
|
|
@@ -13996,7 +14010,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
|
|
|
13996
14010
|
return _array_like_to_array$h(o, minLen);
|
|
13997
14011
|
}
|
|
13998
14012
|
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,
|
|
14013
|
+
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
14014
|
"data",
|
|
14001
14015
|
"selectedDate",
|
|
14002
14016
|
"minDate",
|
|
@@ -14190,7 +14204,9 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
14190
14204
|
},
|
|
14191
14205
|
disabledKeyboardNavigation,
|
|
14192
14206
|
popperContainer: shouldRenderPopperInBody ? PopperContainer : void 0,
|
|
14193
|
-
popperModifiers
|
|
14207
|
+
popperModifiers: [
|
|
14208
|
+
offset$2(-10)
|
|
14209
|
+
].concat(_to_consumable_array$6(popperModifiers)),
|
|
14194
14210
|
popperPlacement,
|
|
14195
14211
|
strictParsing,
|
|
14196
14212
|
preventOpenOnFocus,
|
|
@@ -19130,7 +19146,7 @@ var useStyles$q = createThemedStyles("FilterWithDates", {
|
|
|
19130
19146
|
var clearButtonStyles = cloneDeep(innerTextButtonStyles);
|
|
19131
19147
|
var backButtonStyles = innerTextButtonStyles;
|
|
19132
19148
|
var PICKER_TOP_MARGIN = 28;
|
|
19133
|
-
var PICKER_WITH_BUTTONS_TOP_MARGIN =
|
|
19149
|
+
var PICKER_WITH_BUTTONS_TOP_MARGIN = 56;
|
|
19134
19150
|
var START_PICKER_LEFT_MARGIN = -20;
|
|
19135
19151
|
var END_PICKER_LEFT_MARGIN = -170;
|
|
19136
19152
|
var startDatePickerStyles = {
|