@true-engineering/true-react-common-ui-kit 2.2.0 → 2.3.0
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/LICENSE +201 -201
- package/README.md +16 -0
- package/dist/components/Flag/augment.d.ts +1 -1
- package/dist/components/Icon/complexIcons/augment.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +3 -3
- package/dist/true-react-common-ui-kit.js +151 -97
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +151 -97
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/vite-env.d.ts +1 -1
- package/package.json +93 -93
- package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
- package/src/components/AccountInfo/AccountInfo.styles.ts +55 -55
- package/src/components/AccountInfo/AccountInfo.tsx +77 -77
- package/src/components/AccountInfo/index.ts +2 -2
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.styles.ts +34 -34
- package/src/components/AddButton/AddButton.tsx +48 -48
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.stories.tsx +52 -52
- package/src/components/Button/Button.styles.ts +196 -196
- package/src/components/Button/Button.tsx +167 -167
- package/src/components/Button/index.ts +2 -2
- package/src/components/Checkbox/Checkbox.stories.tsx +32 -32
- package/src/components/Checkbox/Checkbox.styles.ts +62 -62
- package/src/components/Checkbox/Checkbox.tsx +105 -105
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/CloseButton.styles.ts +34 -34
- package/src/components/CloseButton/CloseButton.tsx +35 -35
- package/src/components/CloseButton/index.ts +2 -2
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/Colors/Colors.styles.ts +38 -38
- package/src/components/Colors/Colors.tsx +26 -26
- package/src/components/Colors/index.ts +2 -2
- package/src/components/CssBaseline/CssBaseline.styles.ts +15 -15
- package/src/components/CssBaseline/CssBaseline.tsx +15 -15
- package/src/components/CssBaseline/index.ts +2 -2
- package/src/components/DateInput/DateInput.stories.tsx +61 -61
- package/src/components/DateInput/DateInput.styles.ts +14 -14
- package/src/components/DateInput/DateInput.tsx +82 -82
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/DateInput/index.ts +3 -3
- package/src/components/DatePicker/DatePicker.stories.tsx +87 -87
- package/src/components/DatePicker/DatePicker.styles.ts +44 -44
- package/src/components/DatePicker/DatePicker.tsx +327 -327
- package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.ts +84 -84
- package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.tsx +79 -79
- package/src/components/DatePicker/DatePickerHeader/index.ts +2 -2
- package/src/components/DatePicker/constants.ts +1 -1
- package/src/components/DatePicker/helpers.ts +23 -23
- package/src/components/DatePicker/index.ts +3 -3
- package/src/components/DatePicker/types.ts +45 -45
- package/src/components/Description/Description.stories.tsx +27 -27
- package/src/components/Description/Description.styles.ts +31 -31
- package/src/components/Description/Description.tsx +60 -60
- package/src/components/Description/index.ts +2 -2
- package/src/components/FiltersPane/FilterInterval/FilterInterval.styles.ts +64 -64
- package/src/components/FiltersPane/FilterInterval/FilterInterval.tsx +143 -143
- package/src/components/FiltersPane/FilterInterval/index.ts +1 -1
- package/src/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.tsx +10 -10
- package/src/components/FiltersPane/FilterMultiSelect/index.ts +1 -1
- package/src/components/FiltersPane/FilterSelect/FilterSelect.styles.ts +143 -143
- package/src/components/FiltersPane/FilterSelect/FilterSelect.tsx +348 -348
- package/src/components/FiltersPane/FilterSelect/index.ts +1 -1
- package/src/components/FiltersPane/FilterSelect/locales.ts +37 -37
- package/src/components/FiltersPane/FilterValueView/FilterValueView.styles.tsx +15 -15
- package/src/components/FiltersPane/FilterValueView/FilterValueView.tsx +166 -166
- package/src/components/FiltersPane/FilterValueView/index.tsx +1 -1
- package/src/components/FiltersPane/FilterWithDates/FilterWithDates.styles.ts +60 -60
- package/src/components/FiltersPane/FilterWithDates/FilterWithDates.tsx +184 -184
- package/src/components/FiltersPane/FilterWithDates/index.ts +1 -1
- package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.ts +17 -17
- package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.tsx +198 -198
- package/src/components/FiltersPane/FilterWithPeriod/index.ts +1 -1
- package/src/components/FiltersPane/FilterWrapper/FilterWrapper.styles.ts +110 -110
- package/src/components/FiltersPane/FilterWrapper/FilterWrapper.tsx +346 -346
- package/src/components/FiltersPane/FilterWrapper/index.ts +1 -1
- package/src/components/FiltersPane/FiltersPane.stories.tsx +295 -295
- package/src/components/FiltersPane/FiltersPane.styles.ts +71 -71
- package/src/components/FiltersPane/FiltersPane.tsx +151 -151
- package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.ts +109 -109
- package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.tsx +155 -155
- package/src/components/FiltersPane/FiltersPaneSearch/index.ts +1 -1
- package/src/components/FiltersPane/index.ts +20 -20
- package/src/components/FiltersPane/locales.ts +107 -107
- package/src/components/FiltersPane/types.ts +112 -112
- package/src/components/Flag/Flag.stories.tsx +29 -29
- package/src/components/Flag/Flag.styles.ts +18 -18
- package/src/components/Flag/Flag.tsx +27 -27
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/index.ts +2 -2
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +84 -84
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +131 -131
- package/src/components/FlexibleTable/FlexibleTable.tsx +205 -205
- package/src/components/FlexibleTable/TableRow.tsx +152 -152
- package/src/components/FlexibleTable/TableValue.tsx +75 -75
- package/src/components/FlexibleTable/fixture-test.ts +254 -254
- package/src/components/FlexibleTable/index.ts +3 -3
- package/src/components/FlexibleTable/types.ts +52 -52
- package/src/components/Icon/ComplexIconBoilerplate.tsx +17 -17
- package/src/components/Icon/Icon.stories.tsx +85 -85
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/Icon.tsx +32 -32
- package/src/components/Icon/IconBoilerplate.tsx +42 -42
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/icons.ts +7 -7
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/Icon/icons/icons.ts +838 -838
- package/src/components/Icon/icons/index.ts +1 -1
- package/src/components/Icon/index.ts +4 -4
- package/src/components/IncrementInput/ChangeButton.tsx +33 -33
- package/src/components/IncrementInput/IncrementInput.stories.tsx +31 -31
- package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
- package/src/components/IncrementInput/IncrementInput.tsx +80 -80
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.stories.tsx +86 -86
- package/src/components/Input/Input.styles.ts +307 -307
- package/src/components/Input/Input.tsx +311 -311
- package/src/components/Input/index.ts +2 -2
- package/src/components/List/List.stories.tsx +62 -62
- package/src/components/List/List.styles.ts +52 -52
- package/src/components/List/List.tsx +64 -64
- package/src/components/List/index.ts +2 -2
- package/src/components/Modal/Modal.stories.tsx +105 -105
- package/src/components/Modal/Modal.styles.ts +305 -305
- package/src/components/Modal/Modal.tsx +200 -186
- package/src/components/Modal/index.ts +2 -2
- package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
- package/src/components/MoreMenu/MoreMenu.styles.ts +70 -70
- package/src/components/MoreMenu/MoreMenu.tsx +90 -90
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
- package/src/components/MultiSelect/MultiSelect.styles.ts +55 -55
- package/src/components/MultiSelect/MultiSelect.tsx +89 -89
- package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
- package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.tsx +51 -51
- package/src/components/MultiSelect/MultiSelectInput/index.ts +1 -1
- package/src/components/MultiSelect/index.ts +3 -3
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +124 -124
- package/src/components/MultiSelectList/MultiSelectList.tsx +451 -451
- package/src/components/MultiSelectList/index.ts +2 -2
- package/src/components/MultiSelectList/locales.ts +37 -37
- package/src/components/Notification/Notification.stories.tsx +46 -46
- package/src/components/Notification/Notification.styles.ts +50 -50
- package/src/components/Notification/Notification.tsx +79 -79
- package/src/components/Notification/index.ts +2 -2
- package/src/components/NumberInput/NumberInput.stories.tsx +35 -35
- package/src/components/NumberInput/NumberInput.tsx +133 -133
- package/src/components/NumberInput/helpers.ts +86 -86
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.stories.tsx +70 -70
- package/src/components/PhoneInput/PhoneInput.styles.ts +84 -84
- package/src/components/PhoneInput/PhoneInput.tsx +194 -194
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.ts +100 -100
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.tsx +147 -147
- package/src/components/PhoneInput/PhoneInputCountryList/index.ts +2 -2
- package/src/components/PhoneInput/index.ts +6 -6
- package/src/components/PhoneInput/phone-info.ts +2147 -2147
- package/src/components/PhoneInput/types.ts +16 -16
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
- package/src/components/RadioButton/RadioButton.styles.ts +37 -37
- package/src/components/RadioButton/RadioButton.tsx +55 -55
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +61 -61
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/SearchInput/SearchInput.stories.tsx +23 -23
- package/src/components/SearchInput/SearchInput.styles.ts +50 -50
- package/src/components/SearchInput/SearchInput.tsx +50 -50
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/MultiSelect.stories.tsx +240 -240
- package/src/components/Select/Select.stories.tsx +235 -235
- package/src/components/Select/Select.styles.ts +96 -96
- package/src/components/Select/Select.tsx +575 -575
- package/src/components/Select/SelectList/SelectList.styles.ts +72 -72
- package/src/components/Select/SelectList/SelectList.tsx +158 -158
- package/src/components/Select/SelectList/index.ts +1 -1
- package/src/components/Select/SelectListItem/SelectListItem.styles.ts +14 -14
- package/src/components/Select/SelectListItem/SelectListItem.tsx +68 -68
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/helpers.ts +26 -26
- package/src/components/Select/index.ts +4 -4
- package/src/components/Select/types.ts +1 -1
- package/src/components/SmartInput/SmartInput.stories.tsx +50 -50
- package/src/components/SmartInput/SmartInput.tsx +147 -147
- package/src/components/SmartInput/helpers.ts +85 -85
- package/src/components/SmartInput/index.ts +1 -1
- package/src/components/Switch/Switch.stories.tsx +40 -40
- package/src/components/Switch/Switch.styles.ts +75 -75
- package/src/components/Switch/Switch.tsx +83 -83
- package/src/components/Switch/index.ts +2 -2
- package/src/components/TextArea/TextArea.stories.tsx +35 -35
- package/src/components/TextArea/TextArea.styles.ts +153 -153
- package/src/components/TextArea/TextArea.tsx +165 -165
- package/src/components/TextArea/index.ts +2 -2
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +60 -60
- package/src/components/TextWithInfo/TextWithInfo.tsx +60 -60
- package/src/components/TextWithInfo/index.ts +2 -2
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +19 -19
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +143 -143
- package/src/components/TextWithTooltip/index.ts +2 -2
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +21 -21
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +50 -50
- package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +18 -18
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +25 -25
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/index.ts +2 -2
- package/src/components/ThemedPreloader/index.ts +2 -2
- package/src/components/Toaster/Toaster.stories.tsx +30 -30
- package/src/components/Toaster/Toaster.styles.ts +59 -59
- package/src/components/Toaster/Toaster.tsx +110 -110
- package/src/components/Toaster/index.ts +2 -2
- package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
- package/src/components/Tooltip/Tooltip.styles.ts +45 -45
- package/src/components/Tooltip/Tooltip.tsx +35 -35
- package/src/components/Tooltip/index.ts +3 -3
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/index.ts +36 -36
- package/src/helpers/deprecated.ts +22 -22
- package/src/helpers/index.ts +4 -4
- package/src/helpers/misc.ts +158 -158
- package/src/helpers/phone.ts +87 -87
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/helpers/snippets.tsx +6 -6
- package/src/hooks/index.ts +6 -6
- package/src/hooks/use-did-mount-effect.ts +18 -18
- package/src/hooks/use-dropdown.ts +82 -82
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/hooks/use-on-click-outside.ts +77 -77
- package/src/hooks/use-theme.ts +32 -32
- package/src/hooks/use-tweak-styles.ts +13 -13
- package/src/index.ts +6 -6
- package/src/theme.ts +149 -149
- package/src/types.ts +107 -107
- package/src/vite-env.d.ts +1 -1
|
@@ -3984,63 +3984,63 @@
|
|
|
3984
3984
|
};
|
|
3985
3985
|
}, dependencies);
|
|
3986
3986
|
};
|
|
3987
|
-
const avatarGreen = ` <svg
|
|
3988
|
-
width="100%"
|
|
3989
|
-
height="100%"
|
|
3990
|
-
viewBox="0 0 32 32"
|
|
3991
|
-
fill="none"
|
|
3992
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3993
|
-
|
|
3994
|
-
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED"
|
|
3995
|
-
<mask
|
|
3996
|
-
id="mask0_0_12744"
|
|
3997
|
-
style="mask-type: 'alpha';"
|
|
3998
|
-
maskUnits="userSpaceOnUse"
|
|
3999
|
-
x="0"
|
|
4000
|
-
y="0"
|
|
4001
|
-
width="32"
|
|
4002
|
-
height="32"
|
|
4003
|
-
|
|
4004
|
-
<circle cx="16" cy="16" r="16" fill="white"
|
|
4005
|
-
</mask
|
|
4006
|
-
<g mask="url(#mask0_0_12744)"
|
|
4007
|
-
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)"
|
|
4008
|
-
<mask
|
|
4009
|
-
id="mask1_0_12744"
|
|
4010
|
-
style="mask-type: 'alpha';"
|
|
4011
|
-
maskUnits="userSpaceOnUse"
|
|
4012
|
-
x="3"
|
|
4013
|
-
y="16"
|
|
4014
|
-
width="26"
|
|
4015
|
-
height="26"
|
|
4016
|
-
|
|
4017
|
-
<circle cx="16" cy="29" r="13" fill="white"
|
|
4018
|
-
</mask
|
|
4019
|
-
<g mask="url(#mask1_0_12744)"
|
|
4020
|
-
<ellipse
|
|
4021
|
-
cx="16"
|
|
4022
|
-
cy="17.5"
|
|
4023
|
-
rx="6"
|
|
4024
|
-
ry="7.5"
|
|
4025
|
-
fill="#505F79"
|
|
4026
|
-
fill-opacity="0.204983"
|
|
4027
|
-
|
|
4028
|
-
</g
|
|
4029
|
-
</g
|
|
4030
|
-
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white"
|
|
4031
|
-
<defs
|
|
4032
|
-
<linearGradient
|
|
4033
|
-
id="paint0_linear_0_12744"
|
|
4034
|
-
x1="13.347"
|
|
4035
|
-
y1="46.279"
|
|
4036
|
-
x2="33.5318"
|
|
4037
|
-
y2="30.8088"
|
|
4038
|
-
gradientUnits="userSpaceOnUse"
|
|
4039
|
-
|
|
4040
|
-
<stop stop-color="#ABD229"
|
|
4041
|
-
<stop offset="1" stop-color="#9CD03F"
|
|
4042
|
-
</linearGradient
|
|
4043
|
-
</defs
|
|
3987
|
+
const avatarGreen = ` <svg
|
|
3988
|
+
width="100%"
|
|
3989
|
+
height="100%"
|
|
3990
|
+
viewBox="0 0 32 32"
|
|
3991
|
+
fill="none"
|
|
3992
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3993
|
+
>
|
|
3994
|
+
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
|
|
3995
|
+
<mask
|
|
3996
|
+
id="mask0_0_12744"
|
|
3997
|
+
style="mask-type: 'alpha';"
|
|
3998
|
+
maskUnits="userSpaceOnUse"
|
|
3999
|
+
x="0"
|
|
4000
|
+
y="0"
|
|
4001
|
+
width="32"
|
|
4002
|
+
height="32"
|
|
4003
|
+
>
|
|
4004
|
+
<circle cx="16" cy="16" r="16" fill="white" />
|
|
4005
|
+
</mask>
|
|
4006
|
+
<g mask="url(#mask0_0_12744)">
|
|
4007
|
+
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
|
|
4008
|
+
<mask
|
|
4009
|
+
id="mask1_0_12744"
|
|
4010
|
+
style="mask-type: 'alpha';"
|
|
4011
|
+
maskUnits="userSpaceOnUse"
|
|
4012
|
+
x="3"
|
|
4013
|
+
y="16"
|
|
4014
|
+
width="26"
|
|
4015
|
+
height="26"
|
|
4016
|
+
>
|
|
4017
|
+
<circle cx="16" cy="29" r="13" fill="white" />
|
|
4018
|
+
</mask>
|
|
4019
|
+
<g mask="url(#mask1_0_12744)">
|
|
4020
|
+
<ellipse
|
|
4021
|
+
cx="16"
|
|
4022
|
+
cy="17.5"
|
|
4023
|
+
rx="6"
|
|
4024
|
+
ry="7.5"
|
|
4025
|
+
fill="#505F79"
|
|
4026
|
+
fill-opacity="0.204983"
|
|
4027
|
+
/>
|
|
4028
|
+
</g>
|
|
4029
|
+
</g>
|
|
4030
|
+
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
|
|
4031
|
+
<defs>
|
|
4032
|
+
<linearGradient
|
|
4033
|
+
id="paint0_linear_0_12744"
|
|
4034
|
+
x1="13.347"
|
|
4035
|
+
y1="46.279"
|
|
4036
|
+
x2="33.5318"
|
|
4037
|
+
y2="30.8088"
|
|
4038
|
+
gradientUnits="userSpaceOnUse"
|
|
4039
|
+
>
|
|
4040
|
+
<stop stop-color="#ABD229" />
|
|
4041
|
+
<stop offset="1" stop-color="#9CD03F" />
|
|
4042
|
+
</linearGradient>
|
|
4043
|
+
</defs>
|
|
4044
4044
|
</svg>`;
|
|
4045
4045
|
var complexIcons = {
|
|
4046
4046
|
avatar: avatarGreen
|
|
@@ -7285,10 +7285,10 @@
|
|
|
7285
7285
|
}
|
|
7286
7286
|
return target;
|
|
7287
7287
|
}
|
|
7288
|
-
function _object_without_properties$
|
|
7288
|
+
function _object_without_properties$9(source, excluded) {
|
|
7289
7289
|
if (source == null)
|
|
7290
7290
|
return {};
|
|
7291
|
-
var target = _object_without_properties_loose$
|
|
7291
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
7292
7292
|
var key, i;
|
|
7293
7293
|
if (Object.getOwnPropertySymbols) {
|
|
7294
7294
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -7303,7 +7303,7 @@
|
|
|
7303
7303
|
}
|
|
7304
7304
|
return target;
|
|
7305
7305
|
}
|
|
7306
|
-
function _object_without_properties_loose$
|
|
7306
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
7307
7307
|
if (source == null)
|
|
7308
7308
|
return {};
|
|
7309
7309
|
var target = {};
|
|
@@ -7318,7 +7318,7 @@
|
|
|
7318
7318
|
return target;
|
|
7319
7319
|
}
|
|
7320
7320
|
var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
7321
|
-
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, isRange = _param.isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$
|
|
7321
|
+
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, isRange = _param.isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$9(_param, [
|
|
7322
7322
|
"date",
|
|
7323
7323
|
"startDate",
|
|
7324
7324
|
"endDate",
|
|
@@ -7490,10 +7490,10 @@
|
|
|
7490
7490
|
}
|
|
7491
7491
|
return target;
|
|
7492
7492
|
}
|
|
7493
|
-
function _object_without_properties$
|
|
7493
|
+
function _object_without_properties$8(source, excluded) {
|
|
7494
7494
|
if (source == null)
|
|
7495
7495
|
return {};
|
|
7496
|
-
var target = _object_without_properties_loose$
|
|
7496
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
7497
7497
|
var key, i;
|
|
7498
7498
|
if (Object.getOwnPropertySymbols) {
|
|
7499
7499
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -7508,7 +7508,7 @@
|
|
|
7508
7508
|
}
|
|
7509
7509
|
return target;
|
|
7510
7510
|
}
|
|
7511
|
-
function _object_without_properties_loose$
|
|
7511
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
7512
7512
|
if (source == null)
|
|
7513
7513
|
return {};
|
|
7514
7514
|
var target = {};
|
|
@@ -7523,7 +7523,7 @@
|
|
|
7523
7523
|
return target;
|
|
7524
7524
|
}
|
|
7525
7525
|
var SearchInput = function(_param) {
|
|
7526
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$
|
|
7526
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$8(_param, [
|
|
7527
7527
|
"isClearable",
|
|
7528
7528
|
"tweakStyles",
|
|
7529
7529
|
"testId",
|
|
@@ -7706,10 +7706,10 @@
|
|
|
7706
7706
|
}
|
|
7707
7707
|
return target;
|
|
7708
7708
|
}
|
|
7709
|
-
function _object_without_properties$
|
|
7709
|
+
function _object_without_properties$7(source, excluded) {
|
|
7710
7710
|
if (source == null)
|
|
7711
7711
|
return {};
|
|
7712
|
-
var target = _object_without_properties_loose$
|
|
7712
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
7713
7713
|
var key, i;
|
|
7714
7714
|
if (Object.getOwnPropertySymbols) {
|
|
7715
7715
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -7724,7 +7724,7 @@
|
|
|
7724
7724
|
}
|
|
7725
7725
|
return target;
|
|
7726
7726
|
}
|
|
7727
|
-
function _object_without_properties_loose$
|
|
7727
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
7728
7728
|
if (source == null)
|
|
7729
7729
|
return {};
|
|
7730
7730
|
var target = {};
|
|
@@ -7836,7 +7836,7 @@
|
|
|
7836
7836
|
_this_props.active;
|
|
7837
7837
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
7838
7838
|
_this_props.options;
|
|
7839
|
-
var wrapperProps = _object_without_properties$
|
|
7839
|
+
var wrapperProps = _object_without_properties$7(_this_props, [
|
|
7840
7840
|
"active",
|
|
7841
7841
|
"elementType",
|
|
7842
7842
|
"children",
|
|
@@ -8300,10 +8300,10 @@
|
|
|
8300
8300
|
}
|
|
8301
8301
|
return target;
|
|
8302
8302
|
}
|
|
8303
|
-
function _object_without_properties$
|
|
8303
|
+
function _object_without_properties$6(source, excluded) {
|
|
8304
8304
|
if (source == null)
|
|
8305
8305
|
return {};
|
|
8306
|
-
var target = _object_without_properties_loose$
|
|
8306
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
8307
8307
|
var key, i;
|
|
8308
8308
|
if (Object.getOwnPropertySymbols) {
|
|
8309
8309
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -8318,7 +8318,7 @@
|
|
|
8318
8318
|
}
|
|
8319
8319
|
return target;
|
|
8320
8320
|
}
|
|
8321
|
-
function _object_without_properties_loose$
|
|
8321
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
8322
8322
|
if (source == null)
|
|
8323
8323
|
return {};
|
|
8324
8324
|
var target = {};
|
|
@@ -8454,7 +8454,7 @@
|
|
|
8454
8454
|
}
|
|
8455
8455
|
};
|
|
8456
8456
|
function Select(props) {
|
|
8457
|
-
var options = props.options, value = props.value, 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, 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, iconType = props.iconType, 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, inputProps = _object_without_properties$
|
|
8457
|
+
var options = props.options, value = props.value, 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, 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, iconType = props.iconType, 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, inputProps = _object_without_properties$6(props, [
|
|
8458
8458
|
"options",
|
|
8459
8459
|
"value",
|
|
8460
8460
|
"defaultOptionLabel",
|
|
@@ -9155,10 +9155,10 @@
|
|
|
9155
9155
|
}
|
|
9156
9156
|
return target;
|
|
9157
9157
|
}
|
|
9158
|
-
function _object_without_properties$
|
|
9158
|
+
function _object_without_properties$5(source, excluded) {
|
|
9159
9159
|
if (source == null)
|
|
9160
9160
|
return {};
|
|
9161
|
-
var target = _object_without_properties_loose$
|
|
9161
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
9162
9162
|
var key, i;
|
|
9163
9163
|
if (Object.getOwnPropertySymbols) {
|
|
9164
9164
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9173,7 +9173,7 @@
|
|
|
9173
9173
|
}
|
|
9174
9174
|
return target;
|
|
9175
9175
|
}
|
|
9176
|
-
function _object_without_properties_loose$
|
|
9176
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
9177
9177
|
if (source == null)
|
|
9178
9178
|
return {};
|
|
9179
9179
|
var target = {};
|
|
@@ -9213,7 +9213,7 @@
|
|
|
9213
9213
|
});
|
|
9214
9214
|
};
|
|
9215
9215
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9216
|
-
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_topPosition = _param.topPosition, topPosition = _param_topPosition === void 0 ? 0 : _param_topPosition, _param_leftPosition = _param.leftPosition, leftPosition = _param_leftPosition === void 0 ? 0 : _param_leftPosition, _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, isRange = _param.isRange, isInline = _param.isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, shouldRenderPopperInBody = _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, 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$
|
|
9216
|
+
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_topPosition = _param.topPosition, topPosition = _param_topPosition === void 0 ? 0 : _param_topPosition, _param_leftPosition = _param.leftPosition, leftPosition = _param_leftPosition === void 0 ? 0 : _param_leftPosition, _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, isRange = _param.isRange, isInline = _param.isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, shouldRenderPopperInBody = _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, 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$5(_param, [
|
|
9217
9217
|
"data",
|
|
9218
9218
|
"selectedDate",
|
|
9219
9219
|
"minDate",
|
|
@@ -9759,10 +9759,10 @@
|
|
|
9759
9759
|
}
|
|
9760
9760
|
return target;
|
|
9761
9761
|
}
|
|
9762
|
-
function _object_without_properties$
|
|
9762
|
+
function _object_without_properties$4(source, excluded) {
|
|
9763
9763
|
if (source == null)
|
|
9764
9764
|
return {};
|
|
9765
|
-
var target = _object_without_properties_loose$
|
|
9765
|
+
var target = _object_without_properties_loose$4(source, excluded);
|
|
9766
9766
|
var key, i;
|
|
9767
9767
|
if (Object.getOwnPropertySymbols) {
|
|
9768
9768
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9777,7 +9777,7 @@
|
|
|
9777
9777
|
}
|
|
9778
9778
|
return target;
|
|
9779
9779
|
}
|
|
9780
|
-
function _object_without_properties_loose$
|
|
9780
|
+
function _object_without_properties_loose$4(source, excluded) {
|
|
9781
9781
|
if (source == null)
|
|
9782
9782
|
return {};
|
|
9783
9783
|
var target = {};
|
|
@@ -9910,7 +9910,7 @@
|
|
|
9910
9910
|
}
|
|
9911
9911
|
};
|
|
9912
9912
|
var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9913
|
-
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$
|
|
9913
|
+
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$4(_param, [
|
|
9914
9914
|
"value",
|
|
9915
9915
|
"canBeFloat",
|
|
9916
9916
|
"canBeNegative",
|
|
@@ -21825,10 +21825,10 @@
|
|
|
21825
21825
|
}
|
|
21826
21826
|
return target;
|
|
21827
21827
|
}
|
|
21828
|
-
function _object_without_properties$
|
|
21828
|
+
function _object_without_properties$3(source, excluded) {
|
|
21829
21829
|
if (source == null)
|
|
21830
21830
|
return {};
|
|
21831
|
-
var target = _object_without_properties_loose$
|
|
21831
|
+
var target = _object_without_properties_loose$3(source, excluded);
|
|
21832
21832
|
var key, i;
|
|
21833
21833
|
if (Object.getOwnPropertySymbols) {
|
|
21834
21834
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -21843,7 +21843,7 @@
|
|
|
21843
21843
|
}
|
|
21844
21844
|
return target;
|
|
21845
21845
|
}
|
|
21846
|
-
function _object_without_properties_loose$
|
|
21846
|
+
function _object_without_properties_loose$3(source, excluded) {
|
|
21847
21847
|
if (source == null)
|
|
21848
21848
|
return {};
|
|
21849
21849
|
var target = {};
|
|
@@ -21858,7 +21858,7 @@
|
|
|
21858
21858
|
return target;
|
|
21859
21859
|
}
|
|
21860
21860
|
var IncrementInput = function(_param) {
|
|
21861
|
-
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, tweakStyles = _param.tweakStyles, props = _object_without_properties$
|
|
21861
|
+
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, tweakStyles = _param.tweakStyles, props = _object_without_properties$3(_param, [
|
|
21862
21862
|
"value",
|
|
21863
21863
|
"onChange",
|
|
21864
21864
|
"min",
|
|
@@ -22270,6 +22270,38 @@
|
|
|
22270
22270
|
}
|
|
22271
22271
|
return target;
|
|
22272
22272
|
}
|
|
22273
|
+
function _object_without_properties$2(source, excluded) {
|
|
22274
|
+
if (source == null)
|
|
22275
|
+
return {};
|
|
22276
|
+
var target = _object_without_properties_loose$2(source, excluded);
|
|
22277
|
+
var key, i;
|
|
22278
|
+
if (Object.getOwnPropertySymbols) {
|
|
22279
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
22280
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
22281
|
+
key = sourceSymbolKeys[i];
|
|
22282
|
+
if (excluded.indexOf(key) >= 0)
|
|
22283
|
+
continue;
|
|
22284
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
22285
|
+
continue;
|
|
22286
|
+
target[key] = source[key];
|
|
22287
|
+
}
|
|
22288
|
+
}
|
|
22289
|
+
return target;
|
|
22290
|
+
}
|
|
22291
|
+
function _object_without_properties_loose$2(source, excluded) {
|
|
22292
|
+
if (source == null)
|
|
22293
|
+
return {};
|
|
22294
|
+
var target = {};
|
|
22295
|
+
var sourceKeys = Object.keys(source);
|
|
22296
|
+
var key, i;
|
|
22297
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
22298
|
+
key = sourceKeys[i];
|
|
22299
|
+
if (excluded.indexOf(key) >= 0)
|
|
22300
|
+
continue;
|
|
22301
|
+
target[key] = source[key];
|
|
22302
|
+
}
|
|
22303
|
+
return target;
|
|
22304
|
+
}
|
|
22273
22305
|
function _sliced_to_array$7(arr, i) {
|
|
22274
22306
|
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$7();
|
|
22275
22307
|
}
|
|
@@ -22286,8 +22318,31 @@
|
|
|
22286
22318
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
22287
22319
|
return _array_like_to_array$7(o, minLen);
|
|
22288
22320
|
}
|
|
22289
|
-
var Modal = function(
|
|
22290
|
-
var data =
|
|
22321
|
+
var Modal = function(_param) {
|
|
22322
|
+
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, isFooterSticky = _param.isFooterSticky, 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$2(_param, [
|
|
22323
|
+
"data",
|
|
22324
|
+
"tweakStyles",
|
|
22325
|
+
"title",
|
|
22326
|
+
"size",
|
|
22327
|
+
"isFooterSticky",
|
|
22328
|
+
"buttons",
|
|
22329
|
+
"buttonsAlign",
|
|
22330
|
+
"hasCloseButton",
|
|
22331
|
+
"hasOverlay",
|
|
22332
|
+
"isOpen",
|
|
22333
|
+
"position",
|
|
22334
|
+
"children",
|
|
22335
|
+
"zIndex",
|
|
22336
|
+
"testId",
|
|
22337
|
+
"shouldCloseOnOverlayClick",
|
|
22338
|
+
"shouldCloseOnEsc",
|
|
22339
|
+
"shouldBlockScroll",
|
|
22340
|
+
"timeout",
|
|
22341
|
+
"unmountOnExit",
|
|
22342
|
+
"onClose"
|
|
22343
|
+
]);
|
|
22344
|
+
var _ref;
|
|
22345
|
+
var isModalOpen = (_ref = isOpen !== null && isOpen !== void 0 ? isOpen : restProps.in) !== null && _ref !== void 0 ? _ref : false;
|
|
22291
22346
|
var _useTheme = useTheme("Modal", styles$d, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
22292
22347
|
var tweakCloseButtonStyles = useTweakStyles(componentStyles, tweakStyles, "tweakCloseButton");
|
|
22293
22348
|
var _useState = _sliced_to_array$7(React.useState(false), 2), isClickOnOverlay = _useState[0], setIsClickOnOverlay = _useState[1];
|
|
@@ -22315,7 +22370,7 @@
|
|
|
22315
22370
|
onClose
|
|
22316
22371
|
]);
|
|
22317
22372
|
React.useEffect(function() {
|
|
22318
|
-
if (!shouldCloseOnEsc || onClose === void 0 || !
|
|
22373
|
+
if (!shouldCloseOnEsc || onClose === void 0 || !isModalOpen) {
|
|
22319
22374
|
return function() {
|
|
22320
22375
|
return null;
|
|
22321
22376
|
};
|
|
@@ -22327,22 +22382,21 @@
|
|
|
22327
22382
|
}, [
|
|
22328
22383
|
shouldCloseOnEsc,
|
|
22329
22384
|
onClose,
|
|
22330
|
-
|
|
22385
|
+
isModalOpen,
|
|
22331
22386
|
handleEscClose
|
|
22332
22387
|
]);
|
|
22333
22388
|
var _obj, _obj1;
|
|
22334
|
-
return /* @__PURE__ */ jsx(reactTransitionGroup.CSSTransition, {
|
|
22335
|
-
in:
|
|
22336
|
-
timeout
|
|
22337
|
-
unmountOnExit
|
|
22389
|
+
return /* @__PURE__ */ jsx(reactTransitionGroup.CSSTransition, _object_spread_props$a(_object_spread$c({
|
|
22390
|
+
in: isModalOpen,
|
|
22391
|
+
timeout,
|
|
22392
|
+
unmountOnExit,
|
|
22338
22393
|
classNames: {
|
|
22339
22394
|
enter: classes["modal-enter"],
|
|
22340
22395
|
enterActive: classes["modal-enter-active"],
|
|
22341
22396
|
exit: classes["modal-exit"],
|
|
22342
22397
|
exitActive: classes["modal-exit-active"]
|
|
22343
|
-
}
|
|
22344
|
-
|
|
22345
|
-
onExited: onCompletelyHidden,
|
|
22398
|
+
}
|
|
22399
|
+
}, restProps), {
|
|
22346
22400
|
children: /* @__PURE__ */ jsx("div", {
|
|
22347
22401
|
className: classes.modalWrapper,
|
|
22348
22402
|
children: /* @__PURE__ */ jsx(reactRemoveScroll.RemoveScroll, {
|
|
@@ -22393,7 +22447,7 @@
|
|
|
22393
22447
|
}))
|
|
22394
22448
|
})
|
|
22395
22449
|
})
|
|
22396
|
-
});
|
|
22450
|
+
}));
|
|
22397
22451
|
};
|
|
22398
22452
|
var styles$c = {
|
|
22399
22453
|
root: {
|