@true-engineering/true-react-common-ui-kit 1.5.0 → 1.5.2

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.
Files changed (243) hide show
  1. package/LICENSE +201 -201
  2. package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +1 -0
  3. package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +1 -0
  4. package/dist/components/FiltersPane/FiltersPane.d.ts +1 -0
  5. package/dist/components/Flag/augment.d.ts +1 -1
  6. package/dist/components/Icon/complexIcons/augment.d.ts +1 -1
  7. package/dist/components/Input/Input.d.ts +4 -4
  8. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -0
  9. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +1 -1
  10. package/dist/true-react-common-ui-kit.js +67 -60
  11. package/dist/true-react-common-ui-kit.js.map +1 -1
  12. package/dist/true-react-common-ui-kit.umd.cjs +67 -60
  13. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  14. package/dist/vite-env.d.ts +1 -1
  15. package/package.json +91 -91
  16. package/src/components/AccountInfo/AccountInfo.stories.tsx +35 -35
  17. package/src/components/AccountInfo/AccountInfo.styles.ts +55 -55
  18. package/src/components/AccountInfo/AccountInfo.tsx +106 -106
  19. package/src/components/AccountInfo/index.ts +2 -2
  20. package/src/components/AddButton/AddButton.stories.tsx +21 -21
  21. package/src/components/AddButton/AddButton.styles.ts +34 -34
  22. package/src/components/AddButton/AddButton.tsx +49 -49
  23. package/src/components/AddButton/index.ts +2 -2
  24. package/src/components/Button/Button.stories.tsx +61 -61
  25. package/src/components/Button/Button.styles.ts +196 -196
  26. package/src/components/Button/Button.tsx +195 -195
  27. package/src/components/Button/index.ts +2 -2
  28. package/src/components/Checkbox/Checkbox.stories.tsx +35 -35
  29. package/src/components/Checkbox/Checkbox.styles.ts +59 -59
  30. package/src/components/Checkbox/Checkbox.tsx +93 -93
  31. package/src/components/Checkbox/index.ts +2 -2
  32. package/src/components/CloseButton/CloseButton.styles.ts +34 -34
  33. package/src/components/CloseButton/CloseButton.tsx +37 -37
  34. package/src/components/CloseButton/index.ts +2 -2
  35. package/src/components/Colors/Colors.stories.tsx +7 -7
  36. package/src/components/Colors/Colors.styles.ts +38 -38
  37. package/src/components/Colors/Colors.tsx +34 -34
  38. package/src/components/Colors/index.ts +2 -2
  39. package/src/components/CssBaseline/CssBaseline.styles.ts +15 -15
  40. package/src/components/CssBaseline/CssBaseline.tsx +17 -17
  41. package/src/components/CssBaseline/index.ts +2 -2
  42. package/src/components/DateInput/DateInput.stories.tsx +63 -63
  43. package/src/components/DateInput/DateInput.styles.ts +14 -14
  44. package/src/components/DateInput/DateInput.tsx +60 -60
  45. package/src/components/DateInput/index.ts +2 -2
  46. package/src/components/DatePicker/DatePicker.stories.tsx +96 -96
  47. package/src/components/DatePicker/DatePicker.styles.ts +54 -54
  48. package/src/components/DatePicker/DatePicker.tsx +358 -358
  49. package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.ts +84 -84
  50. package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.tsx +94 -94
  51. package/src/components/DatePicker/DatePickerHeader/index.ts +1 -1
  52. package/src/components/DatePicker/DatePickerInput/DatePickerInput.styles.ts +25 -25
  53. package/src/components/DatePicker/DatePickerInput/DatePickerInput.tsx +31 -31
  54. package/src/components/DatePicker/DatePickerInput/index.ts +1 -1
  55. package/src/components/DatePicker/index.ts +4 -4
  56. package/src/components/Description/Description.stories.tsx +29 -29
  57. package/src/components/Description/Description.styles.ts +31 -31
  58. package/src/components/Description/Description.tsx +69 -69
  59. package/src/components/Description/index.ts +2 -2
  60. package/src/components/FiltersPane/FilterInterval/FilterInterval.styles.ts +64 -64
  61. package/src/components/FiltersPane/FilterInterval/FilterInterval.tsx +162 -162
  62. package/src/components/FiltersPane/FilterInterval/index.ts +1 -1
  63. package/src/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.tsx +14 -14
  64. package/src/components/FiltersPane/FilterMultiSelect/index.ts +1 -1
  65. package/src/components/FiltersPane/FilterSelect/FilterSelect.styles.ts +144 -144
  66. package/src/components/FiltersPane/FilterSelect/FilterSelect.tsx +397 -397
  67. package/src/components/FiltersPane/FilterSelect/index.ts +1 -1
  68. package/src/components/FiltersPane/FilterSelect/locales.ts +37 -37
  69. package/src/components/FiltersPane/FilterValueView/FilterValueView.styles.tsx +15 -15
  70. package/src/components/FiltersPane/FilterValueView/FilterValueView.tsx +186 -186
  71. package/src/components/FiltersPane/FilterValueView/index.tsx +1 -1
  72. package/src/components/FiltersPane/FilterWithDates/FilterWithDates.styles.ts +60 -60
  73. package/src/components/FiltersPane/FilterWithDates/FilterWithDates.tsx +222 -222
  74. package/src/components/FiltersPane/FilterWithDates/index.ts +1 -1
  75. package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.ts +17 -17
  76. package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.tsx +231 -231
  77. package/src/components/FiltersPane/FilterWithPeriod/index.ts +1 -1
  78. package/src/components/FiltersPane/FilterWrapper/FilterWrapper.styles.ts +110 -110
  79. package/src/components/FiltersPane/FilterWrapper/FilterWrapper.tsx +360 -360
  80. package/src/components/FiltersPane/FilterWrapper/index.ts +1 -1
  81. package/src/components/FiltersPane/FiltersPane.stories.tsx +308 -308
  82. package/src/components/FiltersPane/FiltersPane.styles.ts +71 -71
  83. package/src/components/FiltersPane/FiltersPane.tsx +193 -193
  84. package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.ts +109 -109
  85. package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.tsx +175 -175
  86. package/src/components/FiltersPane/FiltersPaneSearch/index.ts +1 -1
  87. package/src/components/FiltersPane/index.ts +20 -20
  88. package/src/components/FiltersPane/locales.ts +107 -107
  89. package/src/components/FiltersPane/types.ts +126 -126
  90. package/src/components/Flag/Flag.stories.tsx +29 -29
  91. package/src/components/Flag/Flag.styles.ts +18 -18
  92. package/src/components/Flag/Flag.tsx +28 -28
  93. package/src/components/Flag/augment.d.ts +1 -1
  94. package/src/components/Flag/index.ts +2 -2
  95. package/src/components/FlexibleTable/FlexibleTable.stories.tsx +80 -80
  96. package/src/components/FlexibleTable/FlexibleTable.styles.ts +131 -131
  97. package/src/components/FlexibleTable/FlexibleTable.tsx +243 -243
  98. package/src/components/FlexibleTable/TableRow.tsx +171 -171
  99. package/src/components/FlexibleTable/TableValue.tsx +83 -83
  100. package/src/components/FlexibleTable/fixture-test.ts +254 -254
  101. package/src/components/FlexibleTable/index.ts +3 -3
  102. package/src/components/FlexibleTable/types.ts +58 -58
  103. package/src/components/Icon/ComplexIconBoilerplate.tsx +17 -17
  104. package/src/components/Icon/Icon.stories.tsx +88 -88
  105. package/src/components/Icon/Icon.styles.ts +10 -10
  106. package/src/components/Icon/Icon.tsx +34 -34
  107. package/src/components/Icon/IconBoilerplate.tsx +42 -42
  108. package/src/components/Icon/complexIcons/augment.d.ts +1 -1
  109. package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
  110. package/src/components/Icon/complexIcons/icons.ts +7 -7
  111. package/src/components/Icon/complexIcons/index.ts +1 -1
  112. package/src/components/Icon/icons/icons.ts +838 -838
  113. package/src/components/Icon/icons/index.ts +1 -1
  114. package/src/components/Icon/index.ts +4 -4
  115. package/src/components/IncrementInput/ChangeButton.tsx +34 -34
  116. package/src/components/IncrementInput/IncrementInput.stories.tsx +34 -34
  117. package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
  118. package/src/components/IncrementInput/IncrementInput.tsx +95 -95
  119. package/src/components/IncrementInput/index.ts +2 -2
  120. package/src/components/Input/Input.stories.tsx +92 -92
  121. package/src/components/Input/Input.styles.ts +305 -305
  122. package/src/components/Input/Input.tsx +324 -310
  123. package/src/components/Input/index.ts +2 -2
  124. package/src/components/List/List.stories.tsx +62 -62
  125. package/src/components/List/List.styles.ts +52 -52
  126. package/src/components/List/List.tsx +82 -82
  127. package/src/components/List/index.ts +2 -2
  128. package/src/components/Modal/Modal.stories.tsx +113 -113
  129. package/src/components/Modal/Modal.styles.ts +308 -308
  130. package/src/components/Modal/Modal.tsx +210 -210
  131. package/src/components/Modal/index.ts +2 -2
  132. package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
  133. package/src/components/MoreMenu/MoreMenu.styles.ts +70 -70
  134. package/src/components/MoreMenu/MoreMenu.tsx +102 -102
  135. package/src/components/MoreMenu/index.ts +2 -2
  136. package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
  137. package/src/components/MultiSelect/MultiSelect.styles.ts +55 -55
  138. package/src/components/MultiSelect/MultiSelect.tsx +98 -98
  139. package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
  140. package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.tsx +62 -62
  141. package/src/components/MultiSelect/MultiSelectInput/index.ts +1 -1
  142. package/src/components/MultiSelect/index.ts +3 -3
  143. package/src/components/MultiSelectList/MultiSelectList.styles.ts +125 -125
  144. package/src/components/MultiSelectList/MultiSelectList.tsx +519 -519
  145. package/src/components/MultiSelectList/index.ts +2 -2
  146. package/src/components/MultiSelectList/locales.ts +37 -37
  147. package/src/components/Notification/Notification.stories.tsx +51 -51
  148. package/src/components/Notification/Notification.styles.ts +50 -50
  149. package/src/components/Notification/Notification.tsx +84 -84
  150. package/src/components/Notification/index.ts +2 -2
  151. package/src/components/NumberInput/NumberInput.stories.tsx +36 -36
  152. package/src/components/NumberInput/NumberInput.tsx +154 -154
  153. package/src/components/NumberInput/helpers.ts +87 -87
  154. package/src/components/NumberInput/index.ts +1 -1
  155. package/src/components/PhoneInput/PhoneInput.stories.tsx +71 -71
  156. package/src/components/PhoneInput/PhoneInput.styles.ts +84 -84
  157. package/src/components/PhoneInput/PhoneInput.tsx +223 -223
  158. package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
  159. package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.ts +100 -100
  160. package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.tsx +171 -171
  161. package/src/components/PhoneInput/PhoneInputCountryList/index.ts +2 -2
  162. package/src/components/PhoneInput/index.ts +6 -6
  163. package/src/components/PhoneInput/phone-info.ts +2167 -2167
  164. package/src/components/PhoneInput/types.ts +16 -16
  165. package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
  166. package/src/components/RadioButton/RadioButton.styles.ts +37 -37
  167. package/src/components/RadioButton/RadioButton.tsx +56 -56
  168. package/src/components/RadioButton/index.ts +2 -2
  169. package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +66 -66
  170. package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
  171. package/src/components/SearchInput/SearchInput.stories.tsx +24 -24
  172. package/src/components/SearchInput/SearchInput.styles.ts +50 -50
  173. package/src/components/SearchInput/SearchInput.tsx +63 -63
  174. package/src/components/SearchInput/index.ts +2 -2
  175. package/src/components/Select/Select.stories.tsx +258 -258
  176. package/src/components/Select/Select.styles.ts +85 -85
  177. package/src/components/Select/Select.tsx +508 -501
  178. package/src/components/Select/SelectList/SelectList.styles.ts +68 -68
  179. package/src/components/Select/SelectList/SelectList.tsx +139 -139
  180. package/src/components/Select/SelectList/index.ts +1 -1
  181. package/src/components/Select/helpers.ts +21 -21
  182. package/src/components/Select/index.ts +3 -3
  183. package/src/components/SmartInput/SmartInput.stories.tsx +63 -63
  184. package/src/components/SmartInput/SmartInput.tsx +180 -180
  185. package/src/components/SmartInput/helpers.ts +85 -85
  186. package/src/components/SmartInput/index.ts +1 -1
  187. package/src/components/Switch/Switch.stories.tsx +40 -40
  188. package/src/components/Switch/Switch.styles.ts +75 -75
  189. package/src/components/Switch/Switch.tsx +89 -89
  190. package/src/components/Switch/index.ts +2 -2
  191. package/src/components/TextArea/TextArea.stories.tsx +35 -35
  192. package/src/components/TextArea/TextArea.styles.ts +153 -153
  193. package/src/components/TextArea/TextArea.tsx +178 -178
  194. package/src/components/TextArea/index.ts +2 -2
  195. package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
  196. package/src/components/TextWithInfo/TextWithInfo.styles.ts +60 -60
  197. package/src/components/TextWithInfo/TextWithInfo.tsx +67 -67
  198. package/src/components/TextWithInfo/index.ts +2 -2
  199. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
  200. package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +19 -19
  201. package/src/components/TextWithTooltip/TextWithTooltip.tsx +163 -163
  202. package/src/components/TextWithTooltip/index.ts +2 -2
  203. package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
  204. package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +21 -21
  205. package/src/components/ThemedPreloader/ThemedPreloader.tsx +56 -56
  206. package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +34 -34
  207. package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
  208. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
  209. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +18 -18
  210. package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
  211. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
  212. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +32 -32
  213. package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
  214. package/src/components/ThemedPreloader/components/index.ts +2 -2
  215. package/src/components/ThemedPreloader/index.ts +2 -2
  216. package/src/components/Toaster/Toaster.stories.tsx +34 -34
  217. package/src/components/Toaster/Toaster.styles.ts +59 -59
  218. package/src/components/Toaster/Toaster.tsx +113 -113
  219. package/src/components/Toaster/index.ts +2 -2
  220. package/src/components/Tooltip/Tooltip.stories.tsx +21 -21
  221. package/src/components/Tooltip/Tooltip.styles.ts +45 -45
  222. package/src/components/Tooltip/Tooltip.tsx +40 -40
  223. package/src/components/Tooltip/index.ts +3 -3
  224. package/src/components/Tooltip/types.ts +1 -1
  225. package/src/components/index.ts +36 -36
  226. package/src/helpers/colors.ts +2 -2
  227. package/src/helpers/data-attributes.ts +18 -18
  228. package/src/helpers/dateHelpers/date-helpers.ts +9 -9
  229. package/src/helpers/index.ts +5 -5
  230. package/src/helpers/phone.ts +106 -106
  231. package/src/helpers/popper-helpers.ts +17 -17
  232. package/src/helpers/snippets.tsx +5 -5
  233. package/src/helpers/utils.ts +178 -178
  234. package/src/hooks/index.ts +6 -6
  235. package/src/hooks/use-did-mount-effect.ts +21 -21
  236. package/src/hooks/use-dropdown.ts +85 -85
  237. package/src/hooks/use-is-mounted.ts +15 -15
  238. package/src/hooks/use-on-click-outside.ts +92 -92
  239. package/src/hooks/use-theme.ts +36 -36
  240. package/src/hooks/use-tweak-styles.ts +14 -14
  241. package/src/index.ts +6 -6
  242. package/src/theme.ts +155 -155
  243. package/src/vite-env.d.ts +1 -1
@@ -4183,63 +4183,63 @@
4183
4183
  ]
4184
4184
  });
4185
4185
  };
4186
- const avatarGreen = ` <svg\r
4187
- width="100%"\r
4188
- height="100%"\r
4189
- viewBox="0 0 32 32"\r
4190
- fill="none"\r
4191
- xmlns="http://www.w3.org/2000/svg"\r
4192
- >\r
4193
- <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />\r
4194
- <mask\r
4195
- id="mask0_0_12744"\r
4196
- style="mask-type: 'alpha';"\r
4197
- maskUnits="userSpaceOnUse"\r
4198
- x="0"\r
4199
- y="0"\r
4200
- width="32"\r
4201
- height="32"\r
4202
- >\r
4203
- <circle cx="16" cy="16" r="16" fill="white" />\r
4204
- </mask>\r
4205
- <g mask="url(#mask0_0_12744)">\r
4206
- <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />\r
4207
- <mask\r
4208
- id="mask1_0_12744"\r
4209
- style="mask-type: 'alpha';"\r
4210
- maskUnits="userSpaceOnUse"\r
4211
- x="3"\r
4212
- y="16"\r
4213
- width="26"\r
4214
- height="26"\r
4215
- >\r
4216
- <circle cx="16" cy="29" r="13" fill="white" />\r
4217
- </mask>\r
4218
- <g mask="url(#mask1_0_12744)">\r
4219
- <ellipse\r
4220
- cx="16"\r
4221
- cy="17.5"\r
4222
- rx="6"\r
4223
- ry="7.5"\r
4224
- fill="#505F79"\r
4225
- fill-opacity="0.204983"\r
4226
- />\r
4227
- </g>\r
4228
- </g>\r
4229
- <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />\r
4230
- <defs>\r
4231
- <linearGradient\r
4232
- id="paint0_linear_0_12744"\r
4233
- x1="13.347"\r
4234
- y1="46.279"\r
4235
- x2="33.5318"\r
4236
- y2="30.8088"\r
4237
- gradientUnits="userSpaceOnUse"\r
4238
- >\r
4239
- <stop stop-color="#ABD229" />\r
4240
- <stop offset="1" stop-color="#9CD03F" />\r
4241
- </linearGradient>\r
4242
- </defs>\r
4186
+ const avatarGreen = ` <svg
4187
+ width="100%"
4188
+ height="100%"
4189
+ viewBox="0 0 32 32"
4190
+ fill="none"
4191
+ xmlns="http://www.w3.org/2000/svg"
4192
+ >
4193
+ <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
4194
+ <mask
4195
+ id="mask0_0_12744"
4196
+ style="mask-type: 'alpha';"
4197
+ maskUnits="userSpaceOnUse"
4198
+ x="0"
4199
+ y="0"
4200
+ width="32"
4201
+ height="32"
4202
+ >
4203
+ <circle cx="16" cy="16" r="16" fill="white" />
4204
+ </mask>
4205
+ <g mask="url(#mask0_0_12744)">
4206
+ <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
4207
+ <mask
4208
+ id="mask1_0_12744"
4209
+ style="mask-type: 'alpha';"
4210
+ maskUnits="userSpaceOnUse"
4211
+ x="3"
4212
+ y="16"
4213
+ width="26"
4214
+ height="26"
4215
+ >
4216
+ <circle cx="16" cy="29" r="13" fill="white" />
4217
+ </mask>
4218
+ <g mask="url(#mask1_0_12744)">
4219
+ <ellipse
4220
+ cx="16"
4221
+ cy="17.5"
4222
+ rx="6"
4223
+ ry="7.5"
4224
+ fill="#505F79"
4225
+ fill-opacity="0.204983"
4226
+ />
4227
+ </g>
4228
+ </g>
4229
+ <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
4230
+ <defs>
4231
+ <linearGradient
4232
+ id="paint0_linear_0_12744"
4233
+ x1="13.347"
4234
+ y1="46.279"
4235
+ x2="33.5318"
4236
+ y2="30.8088"
4237
+ gradientUnits="userSpaceOnUse"
4238
+ >
4239
+ <stop stop-color="#ABD229" />
4240
+ <stop offset="1" stop-color="#9CD03F" />
4241
+ </linearGradient>
4242
+ </defs>
4243
4243
  </svg>`;
4244
4244
  var complexIcons = {
4245
4245
  avatar: avatarGreen
@@ -6360,7 +6360,7 @@
6360
6360
  };
6361
6361
  var DEFAULT_SIZE = 6;
6362
6362
  var Input = /* @__PURE__ */ React.forwardRef(function(param, ref) {
6363
- var _param_value = param.value, value = _param_value === void 0 ? "" : _param_value, label = param.label, placeholder = param.placeholder, _param_type = param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = param.isDisabled, isReadonly = param.isReadonly, _param_hasFloatingLabel = param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = param.infoMessage, errorMessage = param.errorMessage, _param_errorPosition = param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = param.inlineStyle, border = param.border, isRequired = param.isRequired, isLoading = param.isLoading, isAutoSizeable = param.isAutoSizeable, _param_defaultSize = param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = param.iconType, name = param.name, mask = param.mask, maskPlaceholder = param.maskPlaceholder, hasRequiredLabel = param.hasRequiredLabel, data = param.data, tweakStyles = param.tweakStyles, maxLength = param.maxLength, shouldFocusOnMount = param.shouldFocusOnMount, units = param.units, testId = param.testId, tabIndex = param.tabIndex, onChange = param.onChange, onPaste = param.onPaste, onFocus = param.onFocus, onBlur = param.onBlur, onIconClick = param.onIconClick, onKeyDown = param.onKeyDown;
6363
+ var _param_value = param.value, value = _param_value === void 0 ? "" : _param_value, label = param.label, placeholder = param.placeholder, _param_type = param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = param.isDisabled, isReadonly = param.isReadonly, _param_hasFloatingLabel = param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = param.infoMessage, errorMessage = param.errorMessage, _param_errorPosition = param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = param.inlineStyle, border = param.border, isRequired = param.isRequired, isLoading = param.isLoading, isAutoSizeable = param.isAutoSizeable, _param_defaultSize = param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = param.iconType, name = param.name, hasRequiredLabel = param.hasRequiredLabel, data = param.data, tweakStyles = param.tweakStyles, maxLength = param.maxLength, shouldFocusOnMount = param.shouldFocusOnMount, units = param.units, testId = param.testId, tabIndex = param.tabIndex, onChange = param.onChange, onPaste = param.onPaste, onFocus = param.onFocus, onBlur = param.onBlur, onIconClick = param.onIconClick, onKeyDown = param.onKeyDown, mask = param.mask, maskChar = param.maskChar, maskPlaceholder = param.maskPlaceholder, alwaysShowMask = param.alwaysShowMask, beforeMaskedStateChange = param.beforeMaskedStateChange;
6364
6364
  var _useTheme = useTheme("Input", styles$y, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
6365
6365
  var _useState = _sliced_to_array$k(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
6366
6366
  var inputRef = React.useRef(null);
@@ -6440,7 +6440,10 @@
6440
6440
  }, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$A({
6441
6441
  ref: ref !== null && ref !== void 0 ? ref : inputRef,
6442
6442
  mask,
6443
- maskPlaceholder
6443
+ maskChar,
6444
+ maskPlaceholder,
6445
+ alwaysShowMask,
6446
+ beforeMaskedStateChange
6444
6447
  }, props)),
6445
6448
  hasLabel && /* @__PURE__ */ jsx("span", {
6446
6449
  className: clsx(classes.label, (_obj2 = {}, _define_property$B(_obj2, classes.invalidLabel, isInvalid), _define_property$B(_obj2, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$B(_obj2, classes.activeLabel, hasFocus && !isReadonly || hasValue), _define_property$B(_obj2, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
@@ -7701,6 +7704,10 @@
7701
7704
  handleListOpen();
7702
7705
  };
7703
7706
  var handleBlur = function(event) {
7707
+ if (isListOpen && !isOpen) {
7708
+ handleListClose(event);
7709
+ return;
7710
+ }
7704
7711
  if (!isNotEmpty(event.relatedTarget) || !isNotEmpty(list.current)) {
7705
7712
  return;
7706
7713
  }
@@ -7945,7 +7952,7 @@
7945
7952
  event.preventDefault();
7946
7953
  },
7947
7954
  onClick: onArrowClick,
7948
- className: clsx(classes.arrow, isListOpen && classes.activeArrow),
7955
+ className: clsx(classes.arrow, isOpen && classes.activeArrow),
7949
7956
  children: /* @__PURE__ */ jsx(Icon, {
7950
7957
  type: dropdownIcon
7951
7958
  })