@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
|
@@ -1151,25 +1151,25 @@
|
|
|
1151
1151
|
if (Array.isArray(arr))
|
|
1152
1152
|
return arr;
|
|
1153
1153
|
}
|
|
1154
|
-
function _array_without_holes$
|
|
1154
|
+
function _array_without_holes$d(arr) {
|
|
1155
1155
|
if (Array.isArray(arr))
|
|
1156
1156
|
return _array_like_to_array$t(arr);
|
|
1157
1157
|
}
|
|
1158
|
-
function _iterable_to_array$
|
|
1158
|
+
function _iterable_to_array$d(iter) {
|
|
1159
1159
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1160
1160
|
return Array.from(iter);
|
|
1161
1161
|
}
|
|
1162
1162
|
function _non_iterable_rest$r() {
|
|
1163
1163
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1164
1164
|
}
|
|
1165
|
-
function _non_iterable_spread$
|
|
1165
|
+
function _non_iterable_spread$d() {
|
|
1166
1166
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1167
1167
|
}
|
|
1168
1168
|
function _to_array$2(arr) {
|
|
1169
|
-
return _array_with_holes$r(arr) || _iterable_to_array$
|
|
1169
|
+
return _array_with_holes$r(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_rest$r();
|
|
1170
1170
|
}
|
|
1171
|
-
function _to_consumable_array$
|
|
1172
|
-
return _array_without_holes$
|
|
1171
|
+
function _to_consumable_array$d(arr) {
|
|
1172
|
+
return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_spread$d();
|
|
1173
1173
|
}
|
|
1174
1174
|
function _unsupported_iterable_to_array$t(o, minLen) {
|
|
1175
1175
|
if (!o)
|
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
var _tweakStyles = _to_array$2(tweakStyles), first = _tweakStyles[0], rest = _tweakStyles.slice(1);
|
|
1202
1202
|
return trueReactPlatformHelpers.isArrayNotEmpty(rest) ? trueReactPlatformHelpers.mergeStyles.apply(void 0, [
|
|
1203
1203
|
first
|
|
1204
|
-
].concat(_to_consumable_array$
|
|
1204
|
+
].concat(_to_consumable_array$d(rest))) : first;
|
|
1205
1205
|
};
|
|
1206
1206
|
var checkStyles = function(componentName, styles) {
|
|
1207
1207
|
var invalidClasses = Object.keys(styles).filter(isTweakStyle);
|
|
@@ -1254,7 +1254,7 @@
|
|
|
1254
1254
|
if (Array.isArray(arr))
|
|
1255
1255
|
return arr;
|
|
1256
1256
|
}
|
|
1257
|
-
function _array_without_holes$
|
|
1257
|
+
function _array_without_holes$c(arr) {
|
|
1258
1258
|
if (Array.isArray(arr))
|
|
1259
1259
|
return _array_like_to_array$s(arr);
|
|
1260
1260
|
}
|
|
@@ -1333,7 +1333,7 @@
|
|
|
1333
1333
|
}
|
|
1334
1334
|
return obj;
|
|
1335
1335
|
}
|
|
1336
|
-
function _iterable_to_array$
|
|
1336
|
+
function _iterable_to_array$c(iter) {
|
|
1337
1337
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1338
1338
|
return Array.from(iter);
|
|
1339
1339
|
}
|
|
@@ -1368,7 +1368,7 @@
|
|
|
1368
1368
|
function _non_iterable_rest$q() {
|
|
1369
1369
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1370
1370
|
}
|
|
1371
|
-
function _non_iterable_spread$
|
|
1371
|
+
function _non_iterable_spread$c() {
|
|
1372
1372
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1373
1373
|
}
|
|
1374
1374
|
function _object_spread$1a(target) {
|
|
@@ -1390,10 +1390,10 @@
|
|
|
1390
1390
|
return _array_with_holes$q(arr) || _iterable_to_array_limit$p(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$q();
|
|
1391
1391
|
}
|
|
1392
1392
|
function _to_array$1(arr) {
|
|
1393
|
-
return _array_with_holes$q(arr) || _iterable_to_array$
|
|
1393
|
+
return _array_with_holes$q(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_rest$q();
|
|
1394
1394
|
}
|
|
1395
|
-
function _to_consumable_array$
|
|
1396
|
-
return _array_without_holes$
|
|
1395
|
+
function _to_consumable_array$c(arr) {
|
|
1396
|
+
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_spread$c();
|
|
1397
1397
|
}
|
|
1398
1398
|
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
1399
1399
|
if (!o)
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
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);
|
|
1512
1512
|
var styles = trueReactPlatformHelpers.isArrayNotEmpty(rest) ? trueReactPlatformHelpers.mergeStyles.apply(void 0, [
|
|
1513
1513
|
first
|
|
1514
|
-
].concat(_to_consumable_array$
|
|
1514
|
+
].concat(_to_consumable_array$c(rest))) : first;
|
|
1515
1515
|
var rules = this.addRules(styles);
|
|
1516
1516
|
var classes = _object_spread$1a({}, _class_private_field_get$1(this, _classes));
|
|
1517
1517
|
rules.forEach(function(rule, key) {
|
|
@@ -4738,19 +4738,19 @@
|
|
|
4738
4738
|
arr2[i] = arr[i];
|
|
4739
4739
|
return arr2;
|
|
4740
4740
|
}
|
|
4741
|
-
function _array_without_holes$
|
|
4741
|
+
function _array_without_holes$b(arr) {
|
|
4742
4742
|
if (Array.isArray(arr))
|
|
4743
4743
|
return _array_like_to_array$q(arr);
|
|
4744
4744
|
}
|
|
4745
|
-
function _iterable_to_array$
|
|
4745
|
+
function _iterable_to_array$b(iter) {
|
|
4746
4746
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
4747
4747
|
return Array.from(iter);
|
|
4748
4748
|
}
|
|
4749
|
-
function _non_iterable_spread$
|
|
4749
|
+
function _non_iterable_spread$b() {
|
|
4750
4750
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4751
4751
|
}
|
|
4752
|
-
function _to_consumable_array$
|
|
4753
|
-
return _array_without_holes$
|
|
4752
|
+
function _to_consumable_array$b(arr) {
|
|
4753
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$b();
|
|
4754
4754
|
}
|
|
4755
4755
|
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
4756
4756
|
if (!o)
|
|
@@ -4790,7 +4790,7 @@
|
|
|
4790
4790
|
var possibleValues = [
|
|
4791
4791
|
country.countryRu,
|
|
4792
4792
|
country.countryEn
|
|
4793
|
-
].concat(_to_consumable_array$
|
|
4793
|
+
].concat(_to_consumable_array$b(country.countryRu.split(" ")), _to_consumable_array$b(country.countryEn.split(" ")), [
|
|
4794
4794
|
country.dialCode
|
|
4795
4795
|
]).map(function(part) {
|
|
4796
4796
|
return part.toLowerCase();
|
|
@@ -6561,7 +6561,7 @@
|
|
|
6561
6561
|
arr2[i] = arr[i];
|
|
6562
6562
|
return arr2;
|
|
6563
6563
|
}
|
|
6564
|
-
function _array_without_holes$
|
|
6564
|
+
function _array_without_holes$a(arr) {
|
|
6565
6565
|
if (Array.isArray(arr))
|
|
6566
6566
|
return _array_like_to_array$o(arr);
|
|
6567
6567
|
}
|
|
@@ -6578,11 +6578,11 @@
|
|
|
6578
6578
|
}
|
|
6579
6579
|
return obj;
|
|
6580
6580
|
}
|
|
6581
|
-
function _iterable_to_array$
|
|
6581
|
+
function _iterable_to_array$a(iter) {
|
|
6582
6582
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
6583
6583
|
return Array.from(iter);
|
|
6584
6584
|
}
|
|
6585
|
-
function _non_iterable_spread$
|
|
6585
|
+
function _non_iterable_spread$a() {
|
|
6586
6586
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6587
6587
|
}
|
|
6588
6588
|
function _object_spread$16(target) {
|
|
@@ -6600,8 +6600,8 @@
|
|
|
6600
6600
|
}
|
|
6601
6601
|
return target;
|
|
6602
6602
|
}
|
|
6603
|
-
function _to_consumable_array$
|
|
6604
|
-
return _array_without_holes$
|
|
6603
|
+
function _to_consumable_array$a(arr) {
|
|
6604
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$a();
|
|
6605
6605
|
}
|
|
6606
6606
|
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
6607
6607
|
if (!o)
|
|
@@ -6637,7 +6637,7 @@
|
|
|
6637
6637
|
popperData = usePopper(referenceElement, dropdownElement, {
|
|
6638
6638
|
enabled: isOpen,
|
|
6639
6639
|
placement,
|
|
6640
|
-
modifiers: _to_consumable_array$
|
|
6640
|
+
modifiers: _to_consumable_array$a(shouldRenderInBody ? [
|
|
6641
6641
|
minWidthModifier
|
|
6642
6642
|
] : []).concat([
|
|
6643
6643
|
{
|
|
@@ -6660,7 +6660,7 @@
|
|
|
6660
6660
|
]
|
|
6661
6661
|
}, flipOptions)
|
|
6662
6662
|
}
|
|
6663
|
-
], _to_consumable_array$
|
|
6663
|
+
], _to_consumable_array$a(modifiers))
|
|
6664
6664
|
});
|
|
6665
6665
|
}
|
|
6666
6666
|
React.useEffect(function() {
|
|
@@ -6681,25 +6681,25 @@
|
|
|
6681
6681
|
if (Array.isArray(arr))
|
|
6682
6682
|
return arr;
|
|
6683
6683
|
}
|
|
6684
|
-
function _array_without_holes$
|
|
6684
|
+
function _array_without_holes$9(arr) {
|
|
6685
6685
|
if (Array.isArray(arr))
|
|
6686
6686
|
return _array_like_to_array$n(arr);
|
|
6687
6687
|
}
|
|
6688
|
-
function _iterable_to_array$
|
|
6688
|
+
function _iterable_to_array$9(iter) {
|
|
6689
6689
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
6690
6690
|
return Array.from(iter);
|
|
6691
6691
|
}
|
|
6692
6692
|
function _non_iterable_rest$n() {
|
|
6693
6693
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6694
6694
|
}
|
|
6695
|
-
function _non_iterable_spread$
|
|
6695
|
+
function _non_iterable_spread$9() {
|
|
6696
6696
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6697
6697
|
}
|
|
6698
6698
|
function _to_array(arr) {
|
|
6699
|
-
return _array_with_holes$n(arr) || _iterable_to_array$
|
|
6699
|
+
return _array_with_holes$n(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_rest$n();
|
|
6700
6700
|
}
|
|
6701
|
-
function _to_consumable_array$
|
|
6702
|
-
return _array_without_holes$
|
|
6701
|
+
function _to_consumable_array$9(arr) {
|
|
6702
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$9();
|
|
6703
6703
|
}
|
|
6704
6704
|
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
6705
6705
|
if (!o)
|
|
@@ -6734,7 +6734,7 @@
|
|
|
6734
6734
|
trueReactPlatformHelpers.mergeStyles.apply(void 0, [
|
|
6735
6735
|
maybeInnerStyles,
|
|
6736
6736
|
maybeThemeStyles
|
|
6737
|
-
].concat(_to_consumable_array$
|
|
6737
|
+
].concat(_to_consumable_array$9(rest)))
|
|
6738
6738
|
];
|
|
6739
6739
|
}
|
|
6740
6740
|
if (!areStylesThemed(maybeInnerStyles)) {
|
|
@@ -7979,7 +7979,7 @@
|
|
|
7979
7979
|
if (Array.isArray(arr))
|
|
7980
7980
|
return arr;
|
|
7981
7981
|
}
|
|
7982
|
-
function _array_without_holes$
|
|
7982
|
+
function _array_without_holes$8(arr) {
|
|
7983
7983
|
if (Array.isArray(arr))
|
|
7984
7984
|
return _array_like_to_array$m(arr);
|
|
7985
7985
|
}
|
|
@@ -7996,7 +7996,7 @@
|
|
|
7996
7996
|
}
|
|
7997
7997
|
return obj;
|
|
7998
7998
|
}
|
|
7999
|
-
function _iterable_to_array$
|
|
7999
|
+
function _iterable_to_array$8(iter) {
|
|
8000
8000
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
8001
8001
|
return Array.from(iter);
|
|
8002
8002
|
}
|
|
@@ -8031,7 +8031,7 @@
|
|
|
8031
8031
|
function _non_iterable_rest$m() {
|
|
8032
8032
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8033
8033
|
}
|
|
8034
|
-
function _non_iterable_spread$
|
|
8034
|
+
function _non_iterable_spread$8() {
|
|
8035
8035
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8036
8036
|
}
|
|
8037
8037
|
function _object_spread$12(target) {
|
|
@@ -8076,8 +8076,8 @@
|
|
|
8076
8076
|
function _sliced_to_array$m(arr, i) {
|
|
8077
8077
|
return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$m();
|
|
8078
8078
|
}
|
|
8079
|
-
function _to_consumable_array$
|
|
8080
|
-
return _array_without_holes$
|
|
8079
|
+
function _to_consumable_array$8(arr) {
|
|
8080
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$m(arr) || _non_iterable_spread$8();
|
|
8081
8081
|
}
|
|
8082
8082
|
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
8083
8083
|
if (!o)
|
|
@@ -8117,7 +8117,7 @@
|
|
|
8117
8117
|
fallbackAxisSideDirection: "start"
|
|
8118
8118
|
}),
|
|
8119
8119
|
isMinWidthSameAsTrigger && minWidthRelativeToTrigger
|
|
8120
|
-
].concat(_to_consumable_array$
|
|
8120
|
+
].concat(_to_consumable_array$8(middlewares), [
|
|
8121
8121
|
shouldShowArrow && react.arrow({
|
|
8122
8122
|
element: arrowRef
|
|
8123
8123
|
})
|
|
@@ -11688,7 +11688,7 @@
|
|
|
11688
11688
|
if (Array.isArray(arr))
|
|
11689
11689
|
return arr;
|
|
11690
11690
|
}
|
|
11691
|
-
function _array_without_holes$
|
|
11691
|
+
function _array_without_holes$7(arr) {
|
|
11692
11692
|
if (Array.isArray(arr))
|
|
11693
11693
|
return _array_like_to_array$i(arr);
|
|
11694
11694
|
}
|
|
@@ -11734,7 +11734,7 @@
|
|
|
11734
11734
|
}
|
|
11735
11735
|
return obj;
|
|
11736
11736
|
}
|
|
11737
|
-
function _iterable_to_array$
|
|
11737
|
+
function _iterable_to_array$7(iter) {
|
|
11738
11738
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
11739
11739
|
return Array.from(iter);
|
|
11740
11740
|
}
|
|
@@ -11769,7 +11769,7 @@
|
|
|
11769
11769
|
function _non_iterable_rest$i() {
|
|
11770
11770
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11771
11771
|
}
|
|
11772
|
-
function _non_iterable_spread$
|
|
11772
|
+
function _non_iterable_spread$7() {
|
|
11773
11773
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11774
11774
|
}
|
|
11775
11775
|
function _object_spread$J(target) {
|
|
@@ -11846,8 +11846,8 @@
|
|
|
11846
11846
|
function _sliced_to_array$i(arr, i) {
|
|
11847
11847
|
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$i();
|
|
11848
11848
|
}
|
|
11849
|
-
function _to_consumable_array$
|
|
11850
|
-
return _array_without_holes$
|
|
11849
|
+
function _to_consumable_array$7(arr) {
|
|
11850
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$i(arr) || _non_iterable_spread$7();
|
|
11851
11851
|
}
|
|
11852
11852
|
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
11853
11853
|
if (!o)
|
|
@@ -12182,7 +12182,7 @@
|
|
|
12182
12182
|
var option = filteredOptions[index];
|
|
12183
12183
|
handleChange(isSelected ? (
|
|
12184
12184
|
// Добавляем
|
|
12185
|
-
_to_consumable_array$
|
|
12185
|
+
_to_consumable_array$7(value !== null && value !== void 0 ? value : []).concat([
|
|
12186
12186
|
option
|
|
12187
12187
|
])
|
|
12188
12188
|
) : (
|
|
@@ -13851,6 +13851,10 @@
|
|
|
13851
13851
|
if (Array.isArray(arr))
|
|
13852
13852
|
return arr;
|
|
13853
13853
|
}
|
|
13854
|
+
function _array_without_holes$6(arr) {
|
|
13855
|
+
if (Array.isArray(arr))
|
|
13856
|
+
return _array_like_to_array$h(arr);
|
|
13857
|
+
}
|
|
13854
13858
|
function _define_property$J(obj, key, value) {
|
|
13855
13859
|
if (key in obj) {
|
|
13856
13860
|
Object.defineProperty(obj, key, {
|
|
@@ -13864,6 +13868,10 @@
|
|
|
13864
13868
|
}
|
|
13865
13869
|
return obj;
|
|
13866
13870
|
}
|
|
13871
|
+
function _iterable_to_array$6(iter) {
|
|
13872
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
13873
|
+
return Array.from(iter);
|
|
13874
|
+
}
|
|
13867
13875
|
function _iterable_to_array_limit$h(arr, i) {
|
|
13868
13876
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13869
13877
|
if (_i == null)
|
|
@@ -13895,6 +13903,9 @@
|
|
|
13895
13903
|
function _non_iterable_rest$h() {
|
|
13896
13904
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13897
13905
|
}
|
|
13906
|
+
function _non_iterable_spread$6() {
|
|
13907
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13908
|
+
}
|
|
13898
13909
|
function _object_spread$H(target) {
|
|
13899
13910
|
for (var i = 1; i < arguments.length; i++) {
|
|
13900
13911
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -13969,6 +13980,9 @@
|
|
|
13969
13980
|
function _sliced_to_array$h(arr, i) {
|
|
13970
13981
|
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$h();
|
|
13971
13982
|
}
|
|
13983
|
+
function _to_consumable_array$6(arr) {
|
|
13984
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$6();
|
|
13985
|
+
}
|
|
13972
13986
|
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
13973
13987
|
if (!o)
|
|
13974
13988
|
return;
|
|
@@ -13983,7 +13997,7 @@
|
|
|
13983
13997
|
return _array_like_to_array$h(o, minLen);
|
|
13984
13998
|
}
|
|
13985
13999
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
13986
|
-
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,
|
|
14000
|
+
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, [
|
|
13987
14001
|
"data",
|
|
13988
14002
|
"selectedDate",
|
|
13989
14003
|
"minDate",
|
|
@@ -14177,7 +14191,9 @@
|
|
|
14177
14191
|
},
|
|
14178
14192
|
disabledKeyboardNavigation,
|
|
14179
14193
|
popperContainer: shouldRenderPopperInBody ? PopperContainer : void 0,
|
|
14180
|
-
popperModifiers
|
|
14194
|
+
popperModifiers: [
|
|
14195
|
+
react.offset(-10)
|
|
14196
|
+
].concat(_to_consumable_array$6(popperModifiers)),
|
|
14181
14197
|
popperPlacement,
|
|
14182
14198
|
strictParsing,
|
|
14183
14199
|
preventOpenOnFocus,
|
|
@@ -19117,7 +19133,7 @@
|
|
|
19117
19133
|
var clearButtonStyles = cloneDeep(innerTextButtonStyles);
|
|
19118
19134
|
var backButtonStyles = innerTextButtonStyles;
|
|
19119
19135
|
var PICKER_TOP_MARGIN = 28;
|
|
19120
|
-
var PICKER_WITH_BUTTONS_TOP_MARGIN =
|
|
19136
|
+
var PICKER_WITH_BUTTONS_TOP_MARGIN = 56;
|
|
19121
19137
|
var START_PICKER_LEFT_MARGIN = -20;
|
|
19122
19138
|
var END_PICKER_LEFT_MARGIN = -170;
|
|
19123
19139
|
var startDatePickerStyles = {
|