@redneckz/wildless-cms-uni-blocks 0.10.8 → 0.10.10

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 (585) hide show
  1. package/bin/migration-scripts/0.10.10.js +44 -0
  2. package/bundle/bundle.umd.js +149 -150
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Filtration/FiltrationContent.d.ts +2 -6
  5. package/bundle/components/OfficeMap/useOfficeMap.d.ts +2 -0
  6. package/bundle/hooks/useForm.d.ts +8 -4
  7. package/bundle/hooks/useNormalizedInput.d.ts +11 -0
  8. package/bundle/ui-kit/ControlProps.d.ts +1 -1
  9. package/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  10. package/bundle/ui-kit/Input/Input.d.ts +1 -1
  11. package/bundle/ui-kit/Input/InputProps.d.ts +4 -5
  12. package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  13. package/bundle/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  14. package/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  15. package/bundle/utils/appendSlash.d.ts +1 -0
  16. package/bundle/utils/identity.d.ts +1 -0
  17. package/bundle/utils/toLocalNumberFormat.d.ts +1 -0
  18. package/dist/ProjectSettings.js +3 -3
  19. package/dist/ProjectSettings.js.map +1 -1
  20. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  21. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  22. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  23. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  24. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  25. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  26. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  27. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  28. package/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  29. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  30. package/dist/components/Calculator/CalculatorValueBlock.js +2 -2
  31. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  32. package/dist/components/Calculator/renderInitialFeeInput.js +3 -3
  33. package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  34. package/dist/components/Calculator/renderProposal.js +2 -2
  35. package/dist/components/Calculator/renderProposal.js.map +1 -1
  36. package/dist/components/Calculator/renderRealEstateValue.js +2 -2
  37. package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  38. package/dist/components/Calculator/renderWantedSumInput.js +3 -3
  39. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  40. package/dist/components/Calculator/useCreditCalculatorParams.js +1 -1
  41. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  42. package/dist/components/CardTransfer/CardTransfer.js +10 -8
  43. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  44. package/dist/components/ContentPage/ContentPage.page.json +0 -1
  45. package/dist/components/Filtration/Filtration.js +1 -1
  46. package/dist/components/Filtration/Filtration.js.map +1 -1
  47. package/dist/components/Filtration/FiltrationContent.d.ts +2 -6
  48. package/dist/components/Filtration/renderFormItem.js.map +1 -1
  49. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  50. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  51. package/dist/components/OfficeMap/OfficeMap.js +2 -2
  52. package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  53. package/dist/components/OfficeMap/useOfficeMap.d.ts +2 -0
  54. package/dist/components/OfficeMap/useOfficeMap.js +1 -2
  55. package/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  56. package/dist/components/PictureText/PictureText.js +2 -2
  57. package/dist/components/PictureText/PictureText.js.map +1 -1
  58. package/dist/hooks/useForm.d.ts +8 -4
  59. package/dist/hooks/useForm.js +5 -3
  60. package/dist/hooks/useForm.js.map +1 -1
  61. package/dist/hooks/useNormalizedInput.d.ts +11 -0
  62. package/dist/hooks/useNormalizedInput.js +23 -0
  63. package/dist/hooks/useNormalizedInput.js.map +1 -0
  64. package/dist/hooks/useSWRResource.js +2 -1
  65. package/dist/hooks/useSWRResource.js.map +1 -1
  66. package/dist/services/search/useSearch.js +3 -2
  67. package/dist/services/search/useSearch.js.map +1 -1
  68. package/dist/ui-kit/ControlProps.d.ts +1 -1
  69. package/dist/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  70. package/dist/ui-kit/CurrencyInput/CurrencyInput.js +3 -16
  71. package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  72. package/dist/ui-kit/Input/Input.d.ts +1 -1
  73. package/dist/ui-kit/Input/Input.js +3 -2
  74. package/dist/ui-kit/Input/Input.js.map +1 -1
  75. package/dist/ui-kit/Input/InputProps.d.ts +4 -5
  76. package/dist/ui-kit/InputRange/InputRange.js +9 -11
  77. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  78. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  79. package/dist/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  80. package/dist/ui-kit/NumberInput/NumberInput.js +22 -0
  81. package/dist/ui-kit/NumberInput/NumberInput.js.map +1 -0
  82. package/dist/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  83. package/dist/ui-kit/PhoneInput/PhoneInput.js +2 -2
  84. package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  85. package/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
  86. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  87. package/dist/ui-kit/Sitemap/Sitemap.js +2 -1
  88. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  89. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +5 -3
  90. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  91. package/dist/utils/appendSlash.d.ts +1 -0
  92. package/dist/utils/appendSlash.js +5 -0
  93. package/dist/utils/appendSlash.js.map +1 -0
  94. package/dist/utils/identity.d.ts +1 -0
  95. package/dist/utils/identity.js +5 -0
  96. package/dist/utils/identity.js.map +1 -0
  97. package/dist/utils/toLocalNumberFormat.d.ts +1 -0
  98. package/dist/utils/toLocalNumberFormat.js +8 -0
  99. package/dist/utils/toLocalNumberFormat.js.map +1 -0
  100. package/lib/ProjectSettings.js +1 -1
  101. package/lib/ProjectSettings.js.map +1 -1
  102. package/lib/common.css +1 -1
  103. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  105. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  106. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  107. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  108. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  109. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  110. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  111. package/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  112. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  113. package/lib/components/Calculator/CalculatorValueBlock.js +2 -2
  114. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  115. package/lib/components/Calculator/renderInitialFeeInput.js +3 -3
  116. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  117. package/lib/components/Calculator/renderProposal.js +2 -2
  118. package/lib/components/Calculator/renderProposal.js.map +1 -1
  119. package/lib/components/Calculator/renderRealEstateValue.js +2 -2
  120. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  121. package/lib/components/Calculator/renderWantedSumInput.js +3 -3
  122. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  123. package/lib/components/Calculator/useCreditCalculatorParams.js +1 -1
  124. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  125. package/lib/components/CardTransfer/CardTransfer.js +10 -8
  126. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  127. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.d.ts +1 -0
  128. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +1 -0
  129. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +1 -0
  130. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +1 -0
  131. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +1 -0
  132. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +1 -0
  133. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +1 -0
  134. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +1 -0
  135. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +1 -0
  136. package/lib/components/ContentPage/ContentPage.page.json +0 -1
  137. package/lib/components/Filtration/Filtration.fixture.d.ts +1 -0
  138. package/lib/components/Filtration/Filtration.js +1 -1
  139. package/lib/components/Filtration/Filtration.js.map +1 -1
  140. package/lib/components/Filtration/FiltrationContent.d.ts +2 -6
  141. package/lib/components/Filtration/renderFormItem.js.map +1 -1
  142. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  143. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  144. package/lib/components/OfficeMap/OfficeMap.js +2 -2
  145. package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  146. package/lib/components/OfficeMap/useOfficeMap.d.ts +2 -0
  147. package/lib/components/OfficeMap/useOfficeMap.js +1 -2
  148. package/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  149. package/lib/components/PictureText/PictureText.js +2 -2
  150. package/lib/components/PictureText/PictureText.js.map +1 -1
  151. package/lib/components/RollupItem/RollupItem.fixture.d.ts +1 -0
  152. package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +1 -0
  153. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
  154. package/lib/components/Video/Video.fixture.d.ts +1 -0
  155. package/lib/hooks/useForm.d.ts +8 -4
  156. package/lib/hooks/useForm.js +5 -3
  157. package/lib/hooks/useForm.js.map +1 -1
  158. package/lib/hooks/useNormalizedInput.d.ts +11 -0
  159. package/lib/hooks/useNormalizedInput.js +20 -0
  160. package/lib/hooks/useNormalizedInput.js.map +1 -0
  161. package/lib/hooks/useSWRResource.js +2 -1
  162. package/lib/hooks/useSWRResource.js.map +1 -1
  163. package/lib/services/search/useSearch.js +3 -2
  164. package/lib/services/search/useSearch.js.map +1 -1
  165. package/lib/ui-kit/ControlProps.d.ts +1 -1
  166. package/lib/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  167. package/lib/ui-kit/CurrencyInput/CurrencyInput.js +3 -16
  168. package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  169. package/lib/ui-kit/Heading/Heading.fixture.d.ts +1 -0
  170. package/lib/ui-kit/Heading/Heading.fixture.mobile.d.ts +1 -0
  171. package/lib/ui-kit/Input/Input.d.ts +1 -1
  172. package/lib/ui-kit/Input/Input.js +3 -2
  173. package/lib/ui-kit/Input/Input.js.map +1 -1
  174. package/lib/ui-kit/Input/InputProps.d.ts +4 -5
  175. package/lib/ui-kit/InputRange/InputRange.js +10 -12
  176. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  177. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  178. package/lib/ui-kit/LinkButton/LinkButton.fixture.d.ts +1 -0
  179. package/lib/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  180. package/lib/ui-kit/NumberInput/NumberInput.fixture.d.ts +7 -0
  181. package/lib/ui-kit/NumberInput/NumberInput.js +20 -0
  182. package/lib/ui-kit/NumberInput/NumberInput.js.map +1 -0
  183. package/lib/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  184. package/lib/ui-kit/PhoneInput/PhoneInput.js +2 -2
  185. package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  186. package/lib/ui-kit/RichText/RichText.fixture.d.ts +1 -0
  187. package/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
  188. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  189. package/lib/ui-kit/Select/Select.fixture.d.ts +1 -0
  190. package/lib/ui-kit/Sitemap/Sitemap.js +2 -1
  191. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  192. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.fixture.d.ts +1 -0
  193. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +5 -3
  194. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  195. package/lib/ui-kit/Tags/Tags.fixture.d.ts +1 -0
  196. package/lib/utils/appendSlash.d.ts +1 -0
  197. package/lib/utils/appendSlash.js +2 -0
  198. package/lib/utils/appendSlash.js.map +1 -0
  199. package/lib/utils/identity.d.ts +1 -0
  200. package/lib/utils/identity.js +2 -0
  201. package/lib/utils/identity.js.map +1 -0
  202. package/lib/utils/toLocalNumberFormat.d.ts +1 -0
  203. package/lib/utils/toLocalNumberFormat.js +5 -0
  204. package/lib/utils/toLocalNumberFormat.js.map +1 -0
  205. package/mobile/bundle/bundle.umd.js +47 -41
  206. package/mobile/bundle/bundle.umd.min.js +1 -1
  207. package/mobile/bundle/components/Filtration/FiltrationContent.d.ts +2 -6
  208. package/mobile/bundle/components/OfficeMap/useOfficeMap.d.ts +2 -0
  209. package/mobile/bundle/hooks/useForm.d.ts +8 -4
  210. package/mobile/bundle/hooks/useNormalizedInput.d.ts +11 -0
  211. package/mobile/bundle/ui-kit/ControlProps.d.ts +1 -1
  212. package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  213. package/mobile/bundle/ui-kit/Input/Input.d.ts +1 -1
  214. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +4 -5
  215. package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  216. package/mobile/bundle/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  217. package/mobile/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  218. package/mobile/bundle/utils/appendSlash.d.ts +1 -0
  219. package/mobile/bundle/utils/identity.d.ts +1 -0
  220. package/mobile/bundle/utils/toLocalNumberFormat.d.ts +1 -0
  221. package/mobile/dist/ProjectSettings.js +3 -3
  222. package/mobile/dist/ProjectSettings.js.map +1 -1
  223. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  224. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  225. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  226. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  227. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  228. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  229. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  230. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  231. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  232. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  233. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +2 -2
  234. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  235. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +3 -3
  236. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  237. package/mobile/dist/components/Calculator/renderProposal.js +2 -2
  238. package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
  239. package/mobile/dist/components/Calculator/renderRealEstateValue.js +2 -2
  240. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  241. package/mobile/dist/components/Calculator/renderWantedSumInput.js +3 -3
  242. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  243. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +1 -1
  244. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  245. package/mobile/dist/components/CardTransfer/CardTransfer.js +10 -8
  246. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  247. package/mobile/dist/components/ContentPage/ContentPage.page.json +0 -1
  248. package/mobile/dist/components/Filtration/Filtration.js +1 -1
  249. package/mobile/dist/components/Filtration/Filtration.js.map +1 -1
  250. package/mobile/dist/components/Filtration/FiltrationContent.d.ts +2 -6
  251. package/mobile/dist/components/Filtration/renderFormItem.js.map +1 -1
  252. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  253. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  254. package/mobile/dist/components/OfficeMap/OfficeMap.js +2 -2
  255. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  256. package/mobile/dist/components/OfficeMap/useOfficeMap.d.ts +2 -0
  257. package/mobile/dist/components/OfficeMap/useOfficeMap.js +1 -2
  258. package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  259. package/mobile/dist/components/PictureText/PictureText.js +2 -2
  260. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  261. package/mobile/dist/hooks/useForm.d.ts +8 -4
  262. package/mobile/dist/hooks/useForm.js +5 -3
  263. package/mobile/dist/hooks/useForm.js.map +1 -1
  264. package/mobile/dist/hooks/useNormalizedInput.d.ts +11 -0
  265. package/mobile/dist/hooks/useNormalizedInput.js +23 -0
  266. package/mobile/dist/hooks/useNormalizedInput.js.map +1 -0
  267. package/mobile/dist/hooks/useSWRResource.js +2 -1
  268. package/mobile/dist/hooks/useSWRResource.js.map +1 -1
  269. package/mobile/dist/services/search/useSearch.js +3 -2
  270. package/mobile/dist/services/search/useSearch.js.map +1 -1
  271. package/mobile/dist/ui-kit/ControlProps.d.ts +1 -1
  272. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  273. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +3 -16
  274. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  275. package/mobile/dist/ui-kit/Input/Input.d.ts +1 -1
  276. package/mobile/dist/ui-kit/Input/Input.js +3 -2
  277. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  278. package/mobile/dist/ui-kit/Input/InputProps.d.ts +4 -5
  279. package/mobile/dist/ui-kit/InputRange/InputRange.js +9 -11
  280. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  281. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  282. package/mobile/dist/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  283. package/mobile/dist/ui-kit/NumberInput/NumberInput.js +22 -0
  284. package/mobile/dist/ui-kit/NumberInput/NumberInput.js.map +1 -0
  285. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  286. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +2 -2
  287. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  288. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
  289. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  290. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +2 -1
  291. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  292. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +5 -3
  293. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  294. package/mobile/dist/utils/appendSlash.d.ts +1 -0
  295. package/mobile/dist/utils/appendSlash.js +5 -0
  296. package/mobile/dist/utils/appendSlash.js.map +1 -0
  297. package/mobile/dist/utils/identity.d.ts +1 -0
  298. package/mobile/dist/utils/identity.js +5 -0
  299. package/mobile/dist/utils/identity.js.map +1 -0
  300. package/mobile/dist/utils/toLocalNumberFormat.d.ts +1 -0
  301. package/mobile/dist/utils/toLocalNumberFormat.js +8 -0
  302. package/mobile/dist/utils/toLocalNumberFormat.js.map +1 -0
  303. package/mobile/lib/ProjectSettings.js +1 -1
  304. package/mobile/lib/ProjectSettings.js.map +1 -1
  305. package/mobile/lib/common.css +1 -1
  306. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  307. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  308. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  309. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  310. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  311. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  312. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  313. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  314. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  315. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  316. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +2 -2
  317. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  318. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +3 -3
  319. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  320. package/mobile/lib/components/Calculator/renderProposal.js +2 -2
  321. package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
  322. package/mobile/lib/components/Calculator/renderRealEstateValue.js +2 -2
  323. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  324. package/mobile/lib/components/Calculator/renderWantedSumInput.js +3 -3
  325. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  326. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +1 -1
  327. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  328. package/mobile/lib/components/CardTransfer/CardTransfer.js +10 -8
  329. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  330. package/mobile/lib/components/ContentPage/ContentPage.page.json +0 -1
  331. package/mobile/lib/components/Filtration/Filtration.js +1 -1
  332. package/mobile/lib/components/Filtration/Filtration.js.map +1 -1
  333. package/mobile/lib/components/Filtration/FiltrationContent.d.ts +2 -6
  334. package/mobile/lib/components/Filtration/renderFormItem.js.map +1 -1
  335. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  336. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  337. package/mobile/lib/components/OfficeMap/OfficeMap.js +2 -2
  338. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  339. package/mobile/lib/components/OfficeMap/useOfficeMap.d.ts +2 -0
  340. package/mobile/lib/components/OfficeMap/useOfficeMap.js +1 -2
  341. package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  342. package/mobile/lib/components/PictureText/PictureText.js +2 -2
  343. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  344. package/mobile/lib/hooks/useForm.d.ts +8 -4
  345. package/mobile/lib/hooks/useForm.js +5 -3
  346. package/mobile/lib/hooks/useForm.js.map +1 -1
  347. package/mobile/lib/hooks/useNormalizedInput.d.ts +11 -0
  348. package/mobile/lib/hooks/useNormalizedInput.js +20 -0
  349. package/mobile/lib/hooks/useNormalizedInput.js.map +1 -0
  350. package/mobile/lib/hooks/useSWRResource.js +2 -1
  351. package/mobile/lib/hooks/useSWRResource.js.map +1 -1
  352. package/mobile/lib/services/search/useSearch.js +3 -2
  353. package/mobile/lib/services/search/useSearch.js.map +1 -1
  354. package/mobile/lib/ui-kit/ControlProps.d.ts +1 -1
  355. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  356. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +3 -16
  357. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  358. package/mobile/lib/ui-kit/Input/Input.d.ts +1 -1
  359. package/mobile/lib/ui-kit/Input/Input.js +3 -2
  360. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  361. package/mobile/lib/ui-kit/Input/InputProps.d.ts +4 -5
  362. package/mobile/lib/ui-kit/InputRange/InputRange.js +10 -12
  363. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  364. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  365. package/mobile/lib/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  366. package/mobile/lib/ui-kit/NumberInput/NumberInput.js +20 -0
  367. package/mobile/lib/ui-kit/NumberInput/NumberInput.js.map +1 -0
  368. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  369. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +2 -2
  370. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  371. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
  372. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  373. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +2 -1
  374. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  375. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +5 -3
  376. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  377. package/mobile/lib/utils/appendSlash.d.ts +1 -0
  378. package/mobile/lib/utils/appendSlash.js +2 -0
  379. package/mobile/lib/utils/appendSlash.js.map +1 -0
  380. package/mobile/lib/utils/identity.d.ts +1 -0
  381. package/mobile/lib/utils/identity.js +2 -0
  382. package/mobile/lib/utils/identity.js.map +1 -0
  383. package/mobile/lib/utils/toLocalNumberFormat.d.ts +1 -0
  384. package/mobile/lib/utils/toLocalNumberFormat.js +5 -0
  385. package/mobile/lib/utils/toLocalNumberFormat.js.map +1 -0
  386. package/mobile/src/ProjectSettings.ts +2 -2
  387. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -2
  388. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  389. package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +4 -4
  390. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +6 -10
  391. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +4 -4
  392. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +2 -2
  393. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +3 -3
  394. package/mobile/src/components/Calculator/renderProposal.tsx +2 -2
  395. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +2 -2
  396. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +3 -3
  397. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +1 -1
  398. package/mobile/src/components/CardTransfer/CardTransfer.tsx +16 -12
  399. package/mobile/src/components/ContentPage/ContentPage.page.json +0 -1
  400. package/mobile/src/components/Filtration/Filtration.tsx +1 -1
  401. package/mobile/src/components/Filtration/FiltrationContent.ts +2 -7
  402. package/mobile/src/components/Filtration/renderFormItem.tsx +1 -1
  403. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  404. package/mobile/src/components/OfficeMap/OfficeMap.tsx +2 -2
  405. package/mobile/src/components/OfficeMap/useOfficeMap.ts +1 -3
  406. package/mobile/src/components/PictureText/PictureText.tsx +2 -2
  407. package/mobile/src/hooks/useForm.ts +16 -8
  408. package/mobile/src/hooks/useNormalizedInput.ts +33 -0
  409. package/mobile/src/hooks/useSWRResource.ts +3 -1
  410. package/mobile/src/services/search/useSearch.ts +3 -2
  411. package/mobile/src/ui-kit/ControlProps.ts +1 -1
  412. package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +12 -38
  413. package/mobile/src/ui-kit/Input/Input.tsx +33 -16
  414. package/mobile/src/ui-kit/Input/InputProps.ts +4 -5
  415. package/mobile/src/ui-kit/InputRange/InputRange.tsx +43 -49
  416. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +2 -4
  417. package/mobile/src/ui-kit/NumberInput/NumberInput.tsx +35 -0
  418. package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +2 -3
  419. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +1 -1
  420. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +2 -1
  421. package/mobile/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +9 -5
  422. package/mobile/src/utils/appendSlash.ts +2 -0
  423. package/mobile/src/utils/identity.ts +1 -0
  424. package/mobile/src/utils/toLocalNumberFormat.ts +7 -0
  425. package/package.json +8 -3
  426. package/src/ProjectSettings.ts +2 -2
  427. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -0
  428. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -2
  429. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  430. package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +4 -4
  431. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +6 -10
  432. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +4 -4
  433. package/src/components/Bonus/Bonus.fixture.tsx +2 -1
  434. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +1 -0
  435. package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +1 -0
  436. package/src/components/Calculator/Calculator.fixture.tsx +1 -1
  437. package/src/components/Calculator/CalculatorValueBlock.tsx +2 -2
  438. package/src/components/Calculator/renderInitialFeeInput.tsx +3 -3
  439. package/src/components/Calculator/renderProposal.tsx +2 -2
  440. package/src/components/Calculator/renderRealEstateValue.tsx +2 -2
  441. package/src/components/Calculator/renderWantedSumInput.tsx +3 -3
  442. package/src/components/Calculator/useCreditCalculatorParams.ts +1 -1
  443. package/src/components/CardTransfer/CardTransfer.fixture.tsx +1 -0
  444. package/src/components/CardTransfer/CardTransfer.tsx +16 -12
  445. package/src/components/Carousel/Carousel.fixture.mobile.tsx +2 -1
  446. package/src/components/Carousel/Carousel.fixture.tsx +2 -1
  447. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +2 -0
  448. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -0
  449. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +2 -0
  450. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +3 -1
  451. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.fixture.tsx +2 -1
  452. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +2 -0
  453. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +2 -0
  454. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -0
  455. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +2 -1
  456. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +2 -1
  457. package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +2 -0
  458. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +2 -0
  459. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +2 -0
  460. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +2 -1
  461. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +2 -1
  462. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +2 -7
  463. package/src/components/ContentPage/ContentPage.page.json +0 -1
  464. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +2 -1
  465. package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +1 -0
  466. package/src/components/Filtration/Filtration.fixture.tsx +2 -0
  467. package/src/components/Filtration/Filtration.tsx +1 -1
  468. package/src/components/Filtration/FiltrationContent.ts +2 -7
  469. package/src/components/Filtration/renderFormItem.tsx +1 -1
  470. package/src/components/Footer/Footer.fixture.mobile.tsx +1 -0
  471. package/src/components/Footer/Footer.fixture.tsx +1 -0
  472. package/src/components/Header/Header.fixture.mobile.tsx +1 -0
  473. package/src/components/Header/Header.fixture.tsx +1 -0
  474. package/src/components/Headline/Headline.fixture.mobile.tsx +2 -1
  475. package/src/components/Headline/Headline.fixture.tsx +2 -1
  476. package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +2 -1
  477. package/src/components/ImgBlock/ImgBlock.fixture.mobile.tsx +2 -1
  478. package/src/components/ImgBlock/ImgBlock.fixture.tsx +2 -1
  479. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -0
  480. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  481. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +1 -0
  482. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -0
  483. package/src/components/LinkDocs/LinkDocs.fixture.tsx +1 -0
  484. package/src/components/LinkList/LinkList.fixture.tsx +1 -0
  485. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -1
  486. package/src/components/OfficeMap/OfficeMap.fixture.tsx +1 -0
  487. package/src/components/OfficeMap/OfficeMap.tsx +2 -2
  488. package/src/components/OfficeMap/useOfficeMap.ts +1 -3
  489. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -0
  490. package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +1 -0
  491. package/src/components/PictureText/PictureText.fixture.tsx +2 -1
  492. package/src/components/PictureText/PictureText.tsx +2 -2
  493. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +2 -1
  494. package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -1
  495. package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -1
  496. package/src/components/ProductTile/ProductTile.fixture.tsx +2 -1
  497. package/src/components/PromoTile/PromoTile.fixture.tsx +1 -0
  498. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +1 -0
  499. package/src/components/RichTextBlock/RichTextBlock.fixture.mobile.tsx +1 -0
  500. package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +1 -0
  501. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +2 -1
  502. package/src/components/RollupItem/RollupItem.fixture.tsx +2 -0
  503. package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -0
  504. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -0
  505. package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -0
  506. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +2 -0
  507. package/src/components/Tabs/Tabs.fixture.tsx +1 -0
  508. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +1 -0
  509. package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -0
  510. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +2 -1
  511. package/src/components/TextBlock/TextBlock.fixture.tsx +2 -1
  512. package/src/components/Tile/Tile.fixture.tsx +2 -1
  513. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +2 -1
  514. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +2 -1
  515. package/src/components/Video/Video.fixture.tsx +2 -0
  516. package/src/hooks/useForm.ts +16 -8
  517. package/src/hooks/useNormalizedInput.ts +33 -0
  518. package/src/hooks/useSWRResource.ts +3 -1
  519. package/src/services/search/useSearch.ts +3 -2
  520. package/src/ui-kit/Button/Button.fixture.tsx +1 -0
  521. package/src/ui-kit/ControlProps.ts +1 -1
  522. package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +12 -38
  523. package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +2 -0
  524. package/src/ui-kit/Heading/Heading.fixture.tsx +2 -0
  525. package/src/ui-kit/Icon/Icon.fixture.tsx +2 -1
  526. package/src/ui-kit/Input/Input.tsx +33 -16
  527. package/src/ui-kit/Input/InputProps.ts +4 -5
  528. package/src/ui-kit/InputRange/InputRange.tsx +43 -49
  529. package/src/ui-kit/InputRange/InputRangeProps.ts +2 -4
  530. package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +2 -0
  531. package/src/ui-kit/List/List.fixture.tsx +1 -0
  532. package/src/ui-kit/LocationDialog/LocationDialog.fixture.tsx +2 -1
  533. package/src/ui-kit/NumberInput/NumberInput.fixture.tsx +31 -0
  534. package/src/ui-kit/NumberInput/NumberInput.tsx +35 -0
  535. package/src/ui-kit/PhoneInput/PhoneInput.tsx +2 -3
  536. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +1 -0
  537. package/src/ui-kit/RichText/RichText.fixture.tsx +2 -0
  538. package/src/ui-kit/SearchDialog/SearchDialog.tsx +1 -1
  539. package/src/ui-kit/Select/Select.fixture.tsx +2 -0
  540. package/src/ui-kit/Sitemap/Sitemap.tsx +2 -1
  541. package/src/ui-kit/SlideCheckbox/SlideCheckbox.fixture.tsx +2 -0
  542. package/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +9 -5
  543. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +2 -1
  544. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.tsx +2 -1
  545. package/src/ui-kit/Tags/Tags.fixture.tsx +2 -0
  546. package/src/utils/appendSlash.ts +2 -0
  547. package/src/utils/identity.ts +1 -0
  548. package/src/utils/toLocalNumberFormat.ts +7 -0
  549. package/tailwind.config.cjs +1 -1
  550. package/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  551. package/bundle/utils/addSpacesBetweenNumbers.d.ts +0 -1
  552. package/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  553. package/dist/ui-kit/CurrencyInput/CurrencyInputProps.js +0 -2
  554. package/dist/ui-kit/CurrencyInput/CurrencyInputProps.js.map +0 -1
  555. package/dist/utils/addSpacesBetweenNumbers.d.ts +0 -1
  556. package/dist/utils/addSpacesBetweenNumbers.js +0 -5
  557. package/dist/utils/addSpacesBetweenNumbers.js.map +0 -1
  558. package/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  559. package/lib/ui-kit/CurrencyInput/CurrencyInputProps.js +0 -2
  560. package/lib/ui-kit/CurrencyInput/CurrencyInputProps.js.map +0 -1
  561. package/lib/utils/addSpacesBetweenNumbers.d.ts +0 -1
  562. package/lib/utils/addSpacesBetweenNumbers.js +0 -2
  563. package/lib/utils/addSpacesBetweenNumbers.js.map +0 -1
  564. package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  565. package/mobile/bundle/utils/addSpacesBetweenNumbers.d.ts +0 -1
  566. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  567. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.js +0 -2
  568. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.js.map +0 -1
  569. package/mobile/dist/utils/addSpacesBetweenNumbers.d.ts +0 -1
  570. package/mobile/dist/utils/addSpacesBetweenNumbers.js +0 -5
  571. package/mobile/dist/utils/addSpacesBetweenNumbers.js.map +0 -1
  572. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  573. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.js +0 -2
  574. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.js.map +0 -1
  575. package/mobile/lib/utils/addSpacesBetweenNumbers.d.ts +0 -1
  576. package/mobile/lib/utils/addSpacesBetweenNumbers.js +0 -2
  577. package/mobile/lib/utils/addSpacesBetweenNumbers.js.map +0 -1
  578. package/mobile/src/components/Gallery/Gallery.ui.json +0 -1
  579. package/mobile/src/components/MiniGallery/MiniGallery.ui.json +0 -1
  580. package/mobile/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +0 -6
  581. package/mobile/src/utils/addSpacesBetweenNumbers.ts +0 -2
  582. package/src/components/Gallery/Gallery.ui.json +0 -1
  583. package/src/components/MiniGallery/MiniGallery.ui.json +0 -1
  584. package/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +0 -6
  585. package/src/utils/addSpacesBetweenNumbers.ts +0 -2
@@ -1,8 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useNormalizedInput } from '../../hooks/useNormalizedInput';
4
4
  import { clamp } from '../../utils/clamp';
5
5
  import { style } from '../../utils/style';
6
+ import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
6
7
  import { Text } from '../Text/Text';
7
8
  import type { InputRangeProps } from './InputRangeProps';
8
9
  import { parseDecimal } from './parseDecimal';
@@ -13,8 +14,8 @@ const DISABLED_INPUT_CLASSES = 'disabled:border-gray disabled:bg-main-divider';
13
14
  const DEFAULT_MIN = 1;
14
15
  const DEFAULT_MAX = 100;
15
16
 
16
- export const InputRange = JSX<InputRangeProps>(
17
- ({
17
+ export const InputRange = JSX<InputRangeProps>((props) => {
18
+ const {
18
19
  className,
19
20
  title,
20
21
  items = [],
@@ -25,54 +26,47 @@ export const InputRange = JSX<InputRangeProps>(
25
26
  value = list[0] || min,
26
27
  disabled = false,
27
28
  onChange,
28
- }) => {
29
- const [isFocused, setFocused] = useState(false);
29
+ } = props;
30
30
 
31
- const handleChange = useCallback(
32
- (e: { target?: { value?: string } }) => {
33
- onChange && onChange(parseDecimal(e.target?.value));
34
- },
35
- [onChange],
36
- );
31
+ const normalizedProps = useNormalizedInput(props, {
32
+ normalize: (_: number | undefined = 0) =>
33
+ list.length ? closestValue(list)(_) : clamp(_, min, max),
34
+ format: toLocalNumberFormat(),
35
+ });
37
36
 
38
- const handleFocus = useCallback(() => {
39
- setFocused(true);
40
- }, []);
37
+ const handleChange = useCallback(
38
+ (e: { target?: { value?: string } }) => {
39
+ onChange && onChange(parseDecimal(e.target?.value));
40
+ },
41
+ [onChange],
42
+ );
41
43
 
42
- const handleBlur = useCallback(() => {
43
- setFocused(false);
44
- onChange && onChange(list.length ? closestValue(list)(value) : clamp(value || 0, min, max));
45
- }, [onChange, value]);
46
-
47
- return (
48
- <div className={className}>
49
- <label className="block relative">
50
- {title ? (
51
- <Text size="text-m" font="font-light" color="text-primary-text">
52
- {title}
53
- </Text>
54
- ) : null}
55
- <input
56
- className={style(
57
- 'm-0 mt-2 font-sans text-h3 w-full h-14',
58
- 'border border-solid border-gray rounded-md outline-none',
59
- 'p-0 pl-4 box-border',
60
- 'text-primary-text hover:border-primary-hover focus:border-primary-text',
61
- DISABLED_INPUT_CLASSES,
62
- )}
63
- value={isFocused ? value : addSpacesBetweenNumbers(value)}
64
- disabled={disabled}
65
- onInput={handleChange as any}
66
- onFocus={handleFocus}
67
- onBlur={handleBlur}
68
- />
69
- {renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })}
70
- </label>
71
- {renderRangeCaption(items)}
72
- </div>
73
- );
74
- },
75
- );
44
+ return (
45
+ <div className={className}>
46
+ <label className="block relative">
47
+ {title ? (
48
+ <Text size="text-m" font="font-light" color="text-primary-text">
49
+ {title}
50
+ </Text>
51
+ ) : null}
52
+ <input
53
+ className={style(
54
+ 'm-0 mt-2 font-sans text-h3 w-full h-14',
55
+ 'border border-solid border-gray rounded-md outline-none',
56
+ 'p-0 pl-4 box-border',
57
+ 'text-primary-text hover:border-primary-hover focus:border-primary-text',
58
+ DISABLED_INPUT_CLASSES,
59
+ )}
60
+ disabled={disabled}
61
+ onInput={handleChange as any}
62
+ {...normalizedProps}
63
+ />
64
+ {renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })}
65
+ </label>
66
+ {renderRangeCaption(items)}
67
+ </div>
68
+ );
69
+ });
76
70
 
77
71
  const closestValue = (list: number[]) => (_: number) =>
78
72
  list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
@@ -1,14 +1,12 @@
1
+ import type { InputProps } from '../Input/InputProps';
1
2
  import type { ListContent } from '../List/ListContent';
2
3
 
3
- export interface InputRangeProps extends ListContent {
4
- className?: string;
4
+ export interface InputRangeProps extends ListContent, InputProps<number> {
5
5
  items?: string[];
6
6
  min?: number;
7
7
  max?: number;
8
8
  list?: number[];
9
9
  step?: number;
10
- value?: number;
11
10
  title?: string;
12
11
  disabled?: boolean;
13
- onChange?: (value: number) => void;
14
12
  }
@@ -1,3 +1,5 @@
1
+ import '../../setup-fixture';
2
+
1
3
  import { LinkButton } from './LinkButton';
2
4
 
3
5
  export default {
@@ -1,4 +1,5 @@
1
1
  import '../../setup-fixture';
2
+
2
3
  import { List } from './List';
3
4
 
4
5
  const items = ['List Item #1', 'List Item #2', 'List Item #3', 'List Item #4'];
@@ -1,6 +1,7 @@
1
+ import '../../setup-fixture';
2
+
1
3
  import type { Picture } from '../../model/Picture';
2
4
  import type { ForeignOffice } from '../../services/sitemap/SitemapData';
3
- import '../../setup-fixture';
4
5
  import { LocationDialog } from './LocationDialog';
5
6
 
6
7
  const belarus: Picture = {
@@ -0,0 +1,31 @@
1
+ import '../../setup-fixture';
2
+
3
+ import { useState } from 'react';
4
+ import { NumberInput } from './NumberInput';
5
+
6
+ const ComponentWithInput = ({ fractionDigits = 0 }: { fractionDigits?: number }) => {
7
+ const [value, setValue] = useState('123456.789');
8
+
9
+ return (
10
+ <NumberInput
11
+ className="col-span-2 mt-2"
12
+ label="Числовое поле"
13
+ fractionDigits={fractionDigits}
14
+ value={value}
15
+ onChange={(_) => setValue(_)}
16
+ />
17
+ );
18
+ };
19
+
20
+ export default {
21
+ default: (
22
+ <div className="container grid grid-cols-12">
23
+ <ComponentWithInput fractionDigits={2} />
24
+ </div>
25
+ ),
26
+ integer: (
27
+ <div className="container grid grid-cols-12">
28
+ <ComponentWithInput />
29
+ </div>
30
+ ),
31
+ };
@@ -0,0 +1,35 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useNormalizedInput } from '../../hooks/useNormalizedInput';
4
+ import { clamp } from '../../utils/clamp';
5
+ import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
6
+ import { Input } from '../Input/Input';
7
+ import type { InputProps } from '../Input/InputProps';
8
+
9
+ export interface NumberInputProps extends InputProps<string> {
10
+ min?: number;
11
+ max?: number;
12
+ defaultValue?: string;
13
+ fractionDigits?: number;
14
+ }
15
+
16
+ export const NumberInput = JSX<NumberInputProps>((props) => {
17
+ const { onChange, min, max, defaultValue = '0', fractionDigits = 0, ...inputProps } = props;
18
+ const normalizedProps = useNormalizedInput(props, {
19
+ normalize: (_: string | undefined = defaultValue) =>
20
+ min && max ? String(clamp(Number(sanitizeNumberStr(_)), min, max)) : sanitizeNumberStr(_),
21
+ format: toLocalNumberFormat(fractionDigits),
22
+ });
23
+
24
+ const handleChange = useCallback(
25
+ (_: string) => onChange && onChange(sanitizeNumberStr(_)),
26
+ [onChange],
27
+ );
28
+
29
+ return <Input onChange={handleChange} {...inputProps} {...normalizedProps} />;
30
+ });
31
+
32
+ const sanitizeNumberStr = (_ = ''): string =>
33
+ _.replaceAll(',', '.')
34
+ .replace(/[^\d.]/g, '')
35
+ .replace(/([^.]*\.[^.]*)\./, '$1');
@@ -6,13 +6,12 @@ import { normalizePhone } from './normalizePhone';
6
6
 
7
7
  export const PhoneInput = JSX<InputProps>(({ children, onChange, ...inputProps }) => {
8
8
  const handleChange = useCallback(
9
- ({ target: { value } }: { target: { value?: string } }) =>
10
- onChange && onChange(normalizePhone(value || '')),
9
+ (value: string) => onChange && onChange(normalizePhone(value)),
11
10
  [onChange],
12
11
  );
13
12
 
14
13
  return (
15
- <Input onInput={handleChange} onFocus={handleChange} {...inputProps}>
14
+ <Input onChange={handleChange} onFocus={handleChange} {...inputProps}>
16
15
  {children}
17
16
  </Input>
18
17
  );
@@ -1,4 +1,5 @@
1
1
  import '../../setup-fixture';
2
+
2
3
  import { Text } from '../Text/Text';
3
4
  import { RadioButtonGroup } from './RadioButtonGroup';
4
5
 
@@ -1,3 +1,5 @@
1
+ import '../../setup-fixture';
2
+
1
3
  import { RichText } from './RichText';
2
4
 
3
5
  const HTML = `
@@ -19,7 +19,7 @@ export const SEARCH_DIALOG_ID = 'search';
19
19
  export const SearchDialog = JSX<SearchDialogProps>(({ topItems }) => {
20
20
  const dialogProps = useDialogProps(SEARCH_DIALOG_ID);
21
21
 
22
- const basePathList = topItems?.map((_) => _.href || '/');
22
+ const basePathList = useMemo(() => topItems?.map((_) => _.href || '/'), [topItems]);
23
23
  const [searchResult, searchInputProps] = useSearch({
24
24
  basePathList,
25
25
  initialQuery: dialogProps.message,
@@ -1,3 +1,5 @@
1
+ import '../../setup-fixture';
2
+
1
3
  import { Select } from './Select';
2
4
 
3
5
  const rates = [
@@ -3,6 +3,7 @@ import { useLink } from '../../hooks/useLink';
3
3
  import type { LinkProps } from '../../model/LinkProps';
4
4
  import { projectSettings } from '../../ProjectSettings';
5
5
  import type { TopMenuItemProps } from '../../services/sitemap/SitemapData';
6
+ import { appendSlash } from '../../utils/appendSlash';
6
7
  import { style } from '../../utils/style';
7
8
 
8
9
  export interface SitemapProps {
@@ -34,7 +35,7 @@ const renderColumn = (menuItem: TopMenuItemProps & { onClick: () => void }, inde
34
35
  {text || `Раздел ${index}`}
35
36
  </a>
36
37
  {items?.map((_, i) => (
37
- <ColumnItem key={String(i)} {..._} basePath={href} index={i} />
38
+ <ColumnItem key={String(i)} {..._} basePath={appendSlash(href)} index={i} />
38
39
  ))}
39
40
  </div>
40
41
  );
@@ -1,3 +1,5 @@
1
+ import '../../setup-fixture';
2
+
1
3
  import { SlideCheckbox } from './SlideCheckbox';
2
4
 
3
5
  export default {
@@ -20,14 +20,18 @@ interface MultipleSlideCheckboxGroupProps extends ControlProps<string[]> {
20
20
  export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideCheckboxGroupProps>(
21
21
  ({ value, onChange, items = [], multiple }) => {
22
22
  const handleChange = (newValue: string) => {
23
+ if (!onChange) {
24
+ return;
25
+ }
26
+
23
27
  if (multiple) {
24
28
  const hasAlready = value?.includes(newValue);
25
- onChange &&
26
- onChange(
27
- hasAlready ? value?.filter((v) => v !== newValue) : [...(value || []), newValue],
28
- );
29
+
30
+ onChange(
31
+ hasAlready ? (value || []).filter((v) => v !== newValue) : [...(value || []), newValue],
32
+ );
29
33
  } else {
30
- onChange && onChange(value === newValue ? undefined : newValue);
34
+ onChange(value === newValue ? '' : newValue);
31
35
  }
32
36
  };
33
37
 
@@ -1,5 +1,6 @@
1
- import type { VNode } from '../../model/VNode';
2
1
  import '../../setup-fixture';
2
+
3
+ import type { VNode } from '../../model/VNode';
3
4
  import { SwipeListControl } from './SwipeListControl';
4
5
 
5
6
  const renderElement = (_: any, i: number): VNode => (
@@ -1,5 +1,6 @@
1
- import type { VNode } from '../../model/VNode';
2
1
  import '../../setup-fixture';
2
+
3
+ import type { VNode } from '../../model/VNode';
3
4
  import { SwipeListControl } from './SwipeListControl';
4
5
 
5
6
  const renderElement = (_: any, i: number): VNode => (
@@ -1,3 +1,5 @@
1
+ import '../../setup-fixture';
2
+
1
3
  import { Tags } from './Tags';
2
4
 
3
5
  const tags = ['Tag #1', 'Tag #2', 'Tag #3', 'Tag #4'];
@@ -0,0 +1,2 @@
1
+ export const appendSlash = (url: string | undefined) =>
2
+ url && !url.endsWith('/') ? `${url}/` : url;
@@ -0,0 +1 @@
1
+ export const identity = <T>(_: T) => _;
@@ -0,0 +1,7 @@
1
+ export const toLocalNumberFormat =
2
+ (fractionDigits = 0) =>
3
+ (_: string | number | undefined = 0): string =>
4
+ new Intl.NumberFormat('ru-RU', {
5
+ minimumFractionDigits: 0,
6
+ maximumFractionDigits: fractionDigits,
7
+ }).format(Number(_) || 0);
@@ -56,7 +56,7 @@ module.exports = {
56
56
  mohave: ['Mohave', ...defaultTheme.fontFamily.sans],
57
57
  },
58
58
  padding: {
59
- 'default': '3rem',
59
+ default: '3rem',
60
60
  },
61
61
  fontSize: {
62
62
  'm-title': ['1.375rem', '1.8125rem'], // 22px 29px // Временно оставлен до готовности нового мобильного дизайна
@@ -1,5 +0,0 @@
1
- import type { InputProps } from '../Input/InputProps';
2
- export declare type CurrencyInputProps = InputProps & {
3
- minValue?: number;
4
- maxValue?: number;
5
- };
@@ -1 +0,0 @@
1
- export declare const addSpacesBetweenNumbers: (number: number) => string;
@@ -1,5 +0,0 @@
1
- import type { InputProps } from '../Input/InputProps';
2
- export declare type CurrencyInputProps = InputProps & {
3
- minValue?: number;
4
- maxValue?: number;
5
- };
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=CurrencyInputProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrencyInputProps.js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/CurrencyInputProps.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const addSpacesBetweenNumbers: (number: number) => string;
@@ -1,5 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.addSpacesBetweenNumbers = void 0;
3
- const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', {}).format(number);
4
- exports.addSpacesBetweenNumbers = addSpacesBetweenNumbers;
5
- //# sourceMappingURL=addSpacesBetweenNumbers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addSpacesBetweenNumbers.js","sourceRoot":"","sources":["../../src/utils/addSpacesBetweenNumbers.ts"],"names":[],"mappings":";;AAAO,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAE,EAAE,CACxD,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AADvC,QAAA,uBAAuB,2BACgB"}
@@ -1,5 +0,0 @@
1
- import type { InputProps } from '../Input/InputProps';
2
- export declare type CurrencyInputProps = InputProps & {
3
- minValue?: number;
4
- maxValue?: number;
5
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CurrencyInputProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrencyInputProps.js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/CurrencyInputProps.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const addSpacesBetweenNumbers: (number: number) => string;
@@ -1,2 +0,0 @@
1
- export const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', {}).format(number);
2
- //# sourceMappingURL=addSpacesBetweenNumbers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addSpacesBetweenNumbers.js","sourceRoot":"","sources":["../../src/utils/addSpacesBetweenNumbers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAE,EAAE,CACxD,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { InputProps } from '../Input/InputProps';
2
- export declare type CurrencyInputProps = InputProps & {
3
- minValue?: number;
4
- maxValue?: number;
5
- };
@@ -1 +0,0 @@
1
- export declare const addSpacesBetweenNumbers: (number: number) => string;
@@ -1,5 +0,0 @@
1
- import type { InputProps } from '../Input/InputProps';
2
- export declare type CurrencyInputProps = InputProps & {
3
- minValue?: number;
4
- maxValue?: number;
5
- };
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=CurrencyInputProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrencyInputProps.js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/CurrencyInputProps.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const addSpacesBetweenNumbers: (number: number) => string;
@@ -1,5 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.addSpacesBetweenNumbers = void 0;
3
- const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', {}).format(number);
4
- exports.addSpacesBetweenNumbers = addSpacesBetweenNumbers;
5
- //# sourceMappingURL=addSpacesBetweenNumbers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addSpacesBetweenNumbers.js","sourceRoot":"","sources":["../../src/utils/addSpacesBetweenNumbers.ts"],"names":[],"mappings":";;AAAO,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAE,EAAE,CACxD,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AADvC,QAAA,uBAAuB,2BACgB"}
@@ -1,5 +0,0 @@
1
- import type { InputProps } from '../Input/InputProps';
2
- export declare type CurrencyInputProps = InputProps & {
3
- minValue?: number;
4
- maxValue?: number;
5
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CurrencyInputProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrencyInputProps.js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/CurrencyInputProps.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const addSpacesBetweenNumbers: (number: number) => string;
@@ -1,2 +0,0 @@
1
- export const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', {}).format(number);
2
- //# sourceMappingURL=addSpacesBetweenNumbers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addSpacesBetweenNumbers.js","sourceRoot":"","sources":["../../src/utils/addSpacesBetweenNumbers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAE,EAAE,CACxD,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { InputProps } from '../Input/InputProps';
2
-
3
- export type CurrencyInputProps = InputProps & {
4
- minValue?: number;
5
- maxValue?: number;
6
- };
@@ -1,2 +0,0 @@
1
- export const addSpacesBetweenNumbers = (number: number) =>
2
- new Intl.NumberFormat('ru-RU', {}).format(number);
@@ -1 +0,0 @@
1
- {}
@@ -1,6 +0,0 @@
1
- import type { InputProps } from '../Input/InputProps';
2
-
3
- export type CurrencyInputProps = InputProps & {
4
- minValue?: number;
5
- maxValue?: number;
6
- };
@@ -1,2 +0,0 @@
1
- export const addSpacesBetweenNumbers = (number: number) =>
2
- new Intl.NumberFormat('ru-RU', {}).format(number);