@itcase/ui 1.1.25 → 1.2.1

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 (843) hide show
  1. package/dist/{cjs/Badge-C_bYrtVY.js → Badge-2JkquAEb.js} +6 -10
  2. package/dist/{Badge-CLV5v6N7.js → Badge-CrhdvxY6.js} +4 -4
  3. package/dist/Button-BA3ZeUjj.js +90 -0
  4. package/dist/Button-VkatyBmt.js +93 -0
  5. package/dist/{cjs/Divider-D92wY8Fn.js → Divider-BjB5MD6u.js} +4 -8
  6. package/dist/{Divider-Dhj6sMWd.js → Divider-U5UdY-ef.js} +2 -2
  7. package/dist/{DropdownItem-CkojAA8a.js → DropdownItem-bB-KYqcL.js} +7 -7
  8. package/dist/{cjs/DropdownItem-2Nqtx3Vi.js → DropdownItem-m4hdxHp6.js} +8 -13
  9. package/dist/{Group-DLmtajo8.js → Group-BXfLh7AZ.js} +3 -3
  10. package/dist/{cjs/Group-EFTg84wP.js → Group-Buo_BxGT.js} +5 -9
  11. package/dist/{cjs/Icon-C7ZJyN5o.js → Icon-Co5Mtpt_.js} +11 -17
  12. package/dist/{Icon-BLqnXYOO.js → Icon-CsE2-ieX.js} +10 -10
  13. package/dist/{Image-Bz4Fo3eB.js → Image-8t6PvsaZ.js} +2 -2
  14. package/dist/{cjs/Image-CCx6QWZj.js → Image-DrUlRMHa.js} +4 -8
  15. package/dist/{Input-CYDtAlO-.js → Input-BQ6Plt1n.js} +4 -4
  16. package/dist/{cjs/Input-vwyG3XF0.js → Input-C7gBdx1m.js} +5 -10
  17. package/dist/{Label-c3hONOHC.js → Label-BA_CnRBq.js} +5 -5
  18. package/dist/{cjs/Label-C2uLpNrU.js → Label-CpSzGRtr.js} +7 -11
  19. package/dist/{Link-DtzAAQn8.js → Link-Bqu5amIb.js} +8 -8
  20. package/dist/{cjs/Link-DRV1vzHd.js → Link-DQxoFKhI.js} +10 -15
  21. package/dist/{Loader-VCP1ZNcb.js → Loader-CJ8ZCdwy.js} +3 -3
  22. package/dist/{cjs/Loader-C2D6fJk1.js → Loader-fA11tUEJ.js} +5 -9
  23. package/dist/{MenuItem-BbU9r8_D.js → MenuItem-CNJfj0nV.js} +6 -6
  24. package/dist/{cjs/MenuItem-D6T9WRQk.js → MenuItem-DvIFaWkB.js} +7 -12
  25. package/dist/{cjs/Overlay-CkN2X1BM.js → Overlay-CFXouKnl.js} +4 -8
  26. package/dist/{Overlay-DNPslUfY.js → Overlay-DO5dnSRE.js} +2 -2
  27. package/dist/{cjs/Radio-Bvv59nEV.js → Radio-BQo97TZL.js} +7 -11
  28. package/dist/{Radio-BHqgR8WO.js → Radio-oMf0vN7T.js} +6 -6
  29. package/dist/{Scrollbar-DrRNpn12.js → Scrollbar-CrGXCZ_F.js} +2 -2
  30. package/dist/{cjs/Scrollbar-DOujlQOb.js → Scrollbar-DVlIZzvz.js} +2 -6
  31. package/dist/Switch-B5yVEqxz.js +14 -0
  32. package/dist/Switch-DEXsrPCo.js +12 -0
  33. package/dist/{Text-Dz-KPI5I.js → Text-CG3xPG27.js} +2 -2
  34. package/dist/{cjs/Text-B0SULA92.js → Text-_YhyTsQ1.js} +4 -8
  35. package/dist/{Title-zpOK2AxL.js → Title-BfSFPJtJ.js} +3 -3
  36. package/dist/{cjs/Title-Ckp30YSI.js → Title-zwP6c2U2.js} +6 -10
  37. package/dist/{Tooltip-IVq3_vb4.js → Tooltip-DJufHBiQ.js} +7 -7
  38. package/dist/{cjs/Tooltip-DREz-tP6.js → Tooltip-DkTKx9n-.js} +8 -13
  39. package/dist/cjs/components/Accordion.js +178 -15
  40. package/dist/cjs/components/Avatar.js +33 -14
  41. package/dist/cjs/components/Badge.js +4 -4
  42. package/dist/cjs/components/Breadcrumbs.js +88 -15
  43. package/dist/cjs/components/Button.js +9 -9
  44. package/dist/cjs/components/Caption.js +23 -7
  45. package/dist/cjs/components/Card.js +26 -8
  46. package/dist/cjs/components/Cell.js +70 -14
  47. package/dist/cjs/components/Checkbox.js +86 -8
  48. package/dist/cjs/components/Chips.js +75 -9
  49. package/dist/cjs/components/Choice.js +100 -15
  50. package/dist/cjs/components/Code.js +101 -8
  51. package/dist/cjs/components/ContextMenu.js +48 -13
  52. package/dist/cjs/components/CookiesWarning.js +56 -17
  53. package/dist/cjs/components/DadataHintField.js +31 -9
  54. package/dist/cjs/components/DatePicker.js +1158 -18
  55. package/dist/cjs/components/Divider.js +3 -3
  56. package/dist/cjs/components/Dot.js +32 -7
  57. package/dist/cjs/components/Drawer.js +12 -8
  58. package/dist/cjs/components/Dropdown.js +6 -6
  59. package/dist/cjs/components/Flex.js +116 -7
  60. package/dist/cjs/components/FormField.js +108 -27
  61. package/dist/cjs/components/Grid.js +148 -8
  62. package/dist/cjs/components/Group.js +3 -3
  63. package/dist/cjs/components/HTMLContent.js +83 -7
  64. package/dist/cjs/components/Icon.js +7 -7
  65. package/dist/cjs/components/Image.js +3 -3
  66. package/dist/cjs/components/Input.js +2 -2
  67. package/dist/cjs/components/InputMask.js +3 -8
  68. package/dist/cjs/components/InputPassword.js +112 -14
  69. package/dist/cjs/components/Label.js +5 -5
  70. package/dist/cjs/components/LanguageSelector.js +17 -11
  71. package/dist/cjs/components/Link.js +3 -3
  72. package/dist/cjs/components/List.js +43 -9
  73. package/dist/cjs/components/Loader.js +4 -4
  74. package/dist/cjs/components/Logo.js +37 -10
  75. package/dist/cjs/components/Menu.js +35 -11
  76. package/dist/cjs/components/MenuItem.js +5 -5
  77. package/dist/cjs/components/Modal.js +160 -12
  78. package/dist/cjs/components/Notification.js +41 -12
  79. package/dist/cjs/components/Overlay.js +3 -3
  80. package/dist/cjs/components/Page.js +39 -45
  81. package/dist/cjs/components/Pagination.js +97 -17
  82. package/dist/cjs/components/Panel.js +5 -9
  83. package/dist/cjs/components/Radio.js +4 -4
  84. package/dist/cjs/components/RangeSlider.js +48 -8
  85. package/dist/cjs/components/Response.js +78 -19
  86. package/dist/cjs/components/SVGContent.js +2 -6
  87. package/dist/cjs/components/ScrollOnDrag.js +4 -10
  88. package/dist/cjs/components/ScrollToView.js +56 -10
  89. package/dist/cjs/components/Scrollbar.js +2 -3
  90. package/dist/cjs/components/Search.js +123 -16
  91. package/dist/cjs/components/Segmented.js +91 -9
  92. package/dist/cjs/components/Select.js +115 -6775
  93. package/dist/cjs/components/SiteMenu.js +60 -14
  94. package/dist/cjs/components/Swiper.js +81 -9
  95. package/dist/cjs/components/Switch.js +2 -2
  96. package/dist/cjs/components/Tab.js +144 -14
  97. package/dist/cjs/components/Text.js +3 -3
  98. package/dist/cjs/components/Textarea.js +95 -8
  99. package/dist/cjs/components/Tile.js +50 -10
  100. package/dist/cjs/components/Title.js +2 -2
  101. package/dist/cjs/components/Tooltip.js +4 -4
  102. package/dist/cjs/components/Video.js +16 -6
  103. package/dist/cjs/components/Wrapper.js +43 -7
  104. package/dist/cjs/components.js +1 -213
  105. package/dist/cjs/context/Notifications.js +4 -9
  106. package/dist/cjs/context/UIContext.js +7 -12
  107. package/dist/cjs/hooks/useDeviceTargetClass.js +2 -7
  108. package/dist/cjs/hooks/useStyles.js +6 -12
  109. package/dist/components/Accordion.js +180 -13
  110. package/dist/components/Avatar.js +35 -12
  111. package/dist/components/Badge.js +4 -4
  112. package/dist/components/Breadcrumbs.js +90 -13
  113. package/dist/components/Button.js +9 -9
  114. package/dist/components/Caption.js +25 -5
  115. package/dist/components/Card.js +28 -6
  116. package/dist/components/Cell.js +72 -12
  117. package/dist/components/Checkbox.js +87 -5
  118. package/dist/components/Chips.js +76 -6
  119. package/dist/components/Choice.js +101 -12
  120. package/dist/components/Code.js +103 -6
  121. package/dist/components/ContextMenu.js +50 -11
  122. package/dist/components/CookiesWarning.js +58 -15
  123. package/dist/components/DadataHintField.js +33 -7
  124. package/dist/components/DatePicker.js +1161 -17
  125. package/dist/components/Divider.js +3 -3
  126. package/dist/components/Dot.js +34 -5
  127. package/dist/components/Drawer.js +12 -4
  128. package/dist/components/Dropdown.js +6 -6
  129. package/dist/components/Flex.js +118 -5
  130. package/dist/components/FormField.js +107 -22
  131. package/dist/components/Grid.js +149 -5
  132. package/dist/components/Group.js +3 -3
  133. package/dist/components/HTMLContent.js +85 -5
  134. package/dist/components/Icon.js +7 -7
  135. package/dist/components/Image.js +3 -3
  136. package/dist/components/Input.js +2 -2
  137. package/dist/components/InputMask.js +4 -4
  138. package/dist/components/InputPassword.js +113 -11
  139. package/dist/components/Label.js +5 -5
  140. package/dist/components/LanguageSelector.js +19 -9
  141. package/dist/components/Link.js +3 -3
  142. package/dist/components/List.js +45 -7
  143. package/dist/components/Loader.js +4 -4
  144. package/dist/components/Logo.js +38 -7
  145. package/dist/components/Menu.js +37 -9
  146. package/dist/components/MenuItem.js +5 -5
  147. package/dist/components/Modal.js +162 -10
  148. package/dist/components/Notification.js +42 -9
  149. package/dist/components/Overlay.js +3 -3
  150. package/dist/components/Page.js +3 -3
  151. package/dist/components/Pagination.js +99 -15
  152. package/dist/components/Panel.js +5 -5
  153. package/dist/components/Radio.js +4 -4
  154. package/dist/components/RangeSlider.js +50 -6
  155. package/dist/components/Response.js +79 -16
  156. package/dist/components/SVGContent.js +2 -2
  157. package/dist/components/ScrollOnDrag.js +5 -6
  158. package/dist/components/ScrollToView.js +58 -8
  159. package/dist/components/Scrollbar.js +2 -3
  160. package/dist/components/Search.js +124 -13
  161. package/dist/components/Segmented.js +92 -6
  162. package/dist/components/Select.js +38 -6674
  163. package/dist/components/SiteMenu.js +62 -12
  164. package/dist/components/Swiper.js +83 -7
  165. package/dist/components/Switch.js +2 -2
  166. package/dist/components/Tab.js +145 -11
  167. package/dist/components/Text.js +3 -3
  168. package/dist/components/Textarea.js +96 -5
  169. package/dist/components/Tile.js +52 -8
  170. package/dist/components/Title.js +2 -2
  171. package/dist/components/Tooltip.js +4 -4
  172. package/dist/components/Video.js +18 -4
  173. package/dist/components/Wrapper.js +45 -5
  174. package/dist/components.js +1 -95
  175. package/dist/context/Notifications.js +3 -3
  176. package/dist/context/UIContext.js +3 -3
  177. package/dist/css/components/Chips/Chips.css +1 -1
  178. package/dist/css/components/DatePicker/DatePicker.css +1 -1
  179. package/dist/css/components/Notification/Notification.css +11 -0
  180. package/dist/css/components/Notification/css/__item/notification__item_status.css +11 -0
  181. package/dist/css/components/Swiper/Swiper.css +0 -3
  182. package/dist/{components → types/components}/Button/Button.interface.d.ts +2 -2
  183. package/dist/{components → types/components}/Cell/Cell.interface.d.ts +4 -4
  184. package/dist/{components → types/components}/Chips/Chips.interface.d.ts +3 -3
  185. package/dist/{components → types/components}/Dropdown/Dropdown.interface.d.ts +8 -8
  186. package/dist/{components → types/components}/Flex/Flex.interface.d.ts +5 -5
  187. package/dist/{cjs → types}/components/Group/Group.interface.d.ts +4 -4
  188. package/dist/{components → types/components}/HTMLContent/HTMLContent.interface.d.ts +4 -4
  189. package/dist/{cjs → types}/components/Label/Label.interface.d.ts +5 -5
  190. package/dist/{cjs → types}/components/Logo/Logo.interface.d.ts +3 -3
  191. package/dist/{cjs → types}/components/MenuItem/MenuItem.interface.d.ts +7 -7
  192. package/dist/{cjs → types}/components/Pagination/Pagination.d.ts +2 -2
  193. package/dist/{cjs → types}/components/Pagination/Pagination.interface.d.ts +14 -5
  194. package/dist/{components → types/components}/Panel/Panel.interface.d.ts +3 -3
  195. package/dist/{cjs → types}/components/Segmented/Segmented.interface.d.ts +3 -3
  196. package/dist/types/components/Select/SelectClearIndicator.d.ts +11 -0
  197. package/dist/types/components/Select/SelectContainer.d.ts +2 -0
  198. package/dist/types/components/Select/SelectControl.d.ts +11 -0
  199. package/dist/types/components/Select/SelectDropdownIndicator.d.ts +13 -0
  200. package/dist/types/components/Select/SelectGroupHeading.d.ts +7 -0
  201. package/dist/types/components/Select/SelectIndicatorsContainer.d.ts +4 -0
  202. package/dist/types/components/Select/SelectInput.d.ts +12 -0
  203. package/dist/types/components/Select/SelectLoadingIndicator.d.ts +7 -0
  204. package/dist/types/components/Select/SelectMenu.d.ts +11 -0
  205. package/dist/types/components/Select/SelectMultiValueContainer.d.ts +1 -0
  206. package/dist/types/components/Select/SelectMultiValueLabel.d.ts +4 -0
  207. package/dist/types/components/Select/SelectMultiValueRemove.d.ts +4 -0
  208. package/dist/types/components/Select/SelectNoOptions.d.ts +12 -0
  209. package/dist/types/components/Select/SelectOption.d.ts +16 -0
  210. package/dist/types/components/Select/SelectPlaceholder.d.ts +11 -0
  211. package/dist/types/components/Select/SelectSingleValue.d.ts +12 -0
  212. package/dist/types/components/Select/SelectValueContainer.d.ts +11 -0
  213. package/dist/types/components/Select/index.d.ts +20 -0
  214. package/dist/{cjs → types}/components/Swiper/Swiper.interface.d.ts +3 -3
  215. package/dist/{components → types/components}/Tab/Tab.interface.d.ts +8 -7
  216. package/dist/{components → types/components}/Text/Text.interface.d.ts +4 -4
  217. package/dist/{components → types/components}/Tile/Tile.interface.d.ts +6 -6
  218. package/dist/{components → types/components}/Title/Title.interface.d.ts +4 -4
  219. package/dist/{cjs → types}/components/Tooltip/Tooltip.interface.d.ts +3 -3
  220. package/dist/{components → types/components}/Wrapper/Wrapper.interface.d.ts +3 -3
  221. package/dist/types/context/Notifications.d.ts +19 -0
  222. package/dist/types/context/UIContext.d.ts +11 -0
  223. package/dist/types/hooks/styleAttributes.d.ts +2 -0
  224. package/dist/{cjs → types}/hooks/styleAttributes.interface.d.ts +2 -2
  225. package/dist/types/hooks/useDeviceTargetClass.d.ts +1 -0
  226. package/dist/types/hooks/useMediaQueries.d.ts +7 -0
  227. package/dist/types/hooks/useStyles.d.ts +1 -0
  228. package/dist/types/icons/index.d.ts +10 -0
  229. package/dist/types/types/componentProps/align.d.ts +1 -0
  230. package/dist/types/types/componentProps/alignDirection.d.ts +1 -0
  231. package/dist/types/types/componentProps/justifyContent.d.ts +1 -0
  232. package/dist/types/types/componentProps/textAlign.d.ts +1 -0
  233. package/dist/types/types/componentProps/textColorActive.d.ts +2 -0
  234. package/dist/types/types/componentProps/textWrap.d.ts +1 -0
  235. package/dist/{cjs → types}/types/index.d.ts +6 -6
  236. package/package.json +33 -35
  237. package/dist/Accordion-FIIzpSgl.js +0 -177
  238. package/dist/Avatar-DR2A8Na8.js +0 -31
  239. package/dist/Breadcrumbs-CDKi6gOC.js +0 -88
  240. package/dist/Button-CSzPxWyC.js +0 -90
  241. package/dist/Caption-DDh0VFPJ.js +0 -25
  242. package/dist/Card-CvW4Qozl.js +0 -28
  243. package/dist/Cell-3We_qMvM.js +0 -68
  244. package/dist/Checkbox-0h4YosTW.js +0 -87
  245. package/dist/Chips-Bd3ZFosY.js +0 -76
  246. package/dist/Choice-CeQ9Il98.js +0 -97
  247. package/dist/Code-1WUXVzfb.js +0 -272
  248. package/dist/ContextMenuItem-KPAQQHlQ.js +0 -46
  249. package/dist/CookiesWarning-B30eAOND.js +0 -52
  250. package/dist/DadataHintField-CHJLsVjJ.js +0 -1103
  251. package/dist/DatePicker-Bf7t1yiM.js +0 -14136
  252. package/dist/Dot-Bc0Ly45H.js +0 -34
  253. package/dist/Drawer-DkLkFSmD.js +0 -139
  254. package/dist/FlexItem-DHmKl6e7.js +0 -118
  255. package/dist/GridRow-DRjyNWBh.js +0 -149
  256. package/dist/HTMLContent-CgbJTAy4.js +0 -85
  257. package/dist/InputPassword-DYBnRCtc.js +0 -108
  258. package/dist/LanguageSelector-D0A-uqch.js +0 -14
  259. package/dist/ListItem-BoCF7VH9.js +0 -44
  260. package/dist/Logo-DCx_YOA2.js +0 -37
  261. package/dist/Menu-C-TIWZeb.js +0 -34
  262. package/dist/ModalLoader-4OS81u94.js +0 -161
  263. package/dist/NotificationList-CmXca2zs.js +0 -40
  264. package/dist/Pagination-BAbFsztK.js +0 -86
  265. package/dist/RangeSlider-BPFVikab.js +0 -50
  266. package/dist/Response-BMRzGa5t.js +0 -74
  267. package/dist/ScrollToView-W6XhacKJ.js +0 -1821
  268. package/dist/SearchResult-6Vg0m_NA.js +0 -120
  269. package/dist/Segmented-BM1p7Ubz.js +0 -92
  270. package/dist/SiteMenuButton-DsYMvX6W.js +0 -58
  271. package/dist/Swiper-CXjE6qZR.js +0 -5138
  272. package/dist/Switch-0BHqovLA.js +0 -12
  273. package/dist/SwitchField-DCwEVCVg.js +0 -98
  274. package/dist/TabGroup-BLB4Ymcx.js +0 -144
  275. package/dist/Textarea-D3XSuMEm.js +0 -96
  276. package/dist/Tile-CNnauNx6.js +0 -52
  277. package/dist/Video-0z4mNz4P.js +0 -18
  278. package/dist/Wrapper-CJTkVfsd.js +0 -45
  279. package/dist/cjs/Accordion-Ba4Use_H.js +0 -186
  280. package/dist/cjs/Avatar-BKK80aBG.js +0 -37
  281. package/dist/cjs/Breadcrumbs-B7F96CYT.js +0 -96
  282. package/dist/cjs/Button-DH5f_2bV.js +0 -98
  283. package/dist/cjs/Caption-f-OM1D-G.js +0 -31
  284. package/dist/cjs/Card-BhnTRJN5.js +0 -34
  285. package/dist/cjs/Cell-Bc4BC1e3.js +0 -74
  286. package/dist/cjs/Checkbox-C5EikmBn.js +0 -94
  287. package/dist/cjs/Chips-wl8WgeWZ.js +0 -83
  288. package/dist/cjs/Choice-DJOKyu8I.js +0 -105
  289. package/dist/cjs/Code-BJFoJBYh.js +0 -279
  290. package/dist/cjs/ContextMenuItem-CLU1xPrC.js +0 -53
  291. package/dist/cjs/CookiesWarning-C-6cEf16.js +0 -59
  292. package/dist/cjs/DadataHintField-z7Mw-xDn.js +0 -1111
  293. package/dist/cjs/DatePicker-4tMTL9Nx.js +0 -14160
  294. package/dist/cjs/Dot-CKWexdtn.js +0 -40
  295. package/dist/cjs/Drawer-AQqI18ra.js +0 -146
  296. package/dist/cjs/FlexItem-2KlvlTJY.js +0 -125
  297. package/dist/cjs/GridRow-CAqZZGge.js +0 -157
  298. package/dist/cjs/HTMLContent-4vI2pdQC.js +0 -91
  299. package/dist/cjs/InputPassword-CbrEhEJB.js +0 -115
  300. package/dist/cjs/LanguageSelector-DZC_wwP6.js +0 -20
  301. package/dist/cjs/ListItem-B5rYml7Y.js +0 -51
  302. package/dist/cjs/Logo-CsOCRB7d.js +0 -44
  303. package/dist/cjs/Menu-KYRzB912.js +0 -40
  304. package/dist/cjs/ModalLoader-DRt-18Tr.js +0 -170
  305. package/dist/cjs/NotificationList-DETpx50O.js +0 -48
  306. package/dist/cjs/Pagination-DuykmIqr.js +0 -94
  307. package/dist/cjs/RangeSlider-Dy53bTyY.js +0 -57
  308. package/dist/cjs/Response-CTawELy2.js +0 -82
  309. package/dist/cjs/ScrollToView-DPhR0AQC.js +0 -1831
  310. package/dist/cjs/SearchResult-CfZvZ2Rg.js +0 -129
  311. package/dist/cjs/Segmented-D9L6q-Sa.js +0 -100
  312. package/dist/cjs/SiteMenuButton-CC0QccWu.js +0 -65
  313. package/dist/cjs/Swiper-Zh5xaPu3.js +0 -5145
  314. package/dist/cjs/Switch-K1p9h3aF.js +0 -19
  315. package/dist/cjs/SwitchField-C31Nbyyn.js +0 -108
  316. package/dist/cjs/TabGroup-BKWkofWW.js +0 -153
  317. package/dist/cjs/Textarea-tng0D_n7.js +0 -103
  318. package/dist/cjs/Tile-bPw3x_en.js +0 -58
  319. package/dist/cjs/Video-B_xqvgag.js +0 -24
  320. package/dist/cjs/Wrapper-DravIzND.js +0 -51
  321. package/dist/cjs/components/Button/Button.interface.d.ts +0 -77
  322. package/dist/cjs/components/Cell/Cell.interface.d.ts +0 -62
  323. package/dist/cjs/components/Chips/Chips.interface.d.ts +0 -44
  324. package/dist/cjs/components/Dropdown/Dropdown.interface.d.ts +0 -73
  325. package/dist/cjs/components/Flex/Flex.interface.d.ts +0 -120
  326. package/dist/cjs/components/HTMLContent/HTMLContent.interface.d.ts +0 -30
  327. package/dist/cjs/components/Panel/Panel.interface.d.ts +0 -56
  328. package/dist/cjs/components/Tab/Tab.interface.d.ts +0 -79
  329. package/dist/cjs/components/Text/Text.interface.d.ts +0 -54
  330. package/dist/cjs/components/Tile/Tile.interface.d.ts +0 -37
  331. package/dist/cjs/components/Title/Title.interface.d.ts +0 -50
  332. package/dist/cjs/components/Wrapper/Wrapper.interface.d.ts +0 -20
  333. package/dist/cjs/components/index.d.ts +0 -60
  334. package/dist/cjs/context/index.d.ts +0 -2
  335. package/dist/cjs/floating-ui.dom-ma2MDAMT.js +0 -1431
  336. package/dist/cjs/hooks/index.d.ts +0 -3
  337. package/dist/cjs/index.d.ts +0 -4
  338. package/dist/cjs/jsx-runtime-BBxmckJR.js +0 -1377
  339. package/dist/cjs/types/componentProps/align.d.ts +0 -1
  340. package/dist/cjs/types/componentProps/alignDirection.d.ts +0 -1
  341. package/dist/cjs/types/componentProps/justifyContent.d.ts +0 -1
  342. package/dist/cjs/types/componentProps/textAlign.d.ts +0 -1
  343. package/dist/cjs/types/componentProps/textColorActive.d.ts +0 -2
  344. package/dist/cjs/types/componentProps/textWrap.d.ts +0 -1
  345. package/dist/components/Accordion/Accordion.d.ts +0 -8
  346. package/dist/components/Accordion/Accordion.interface.d.ts +0 -70
  347. package/dist/components/Accordion/AccordionItem.d.ts +0 -8
  348. package/dist/components/Accordion/index.d.ts +0 -3
  349. package/dist/components/Avatar/Avatar.d.ts +0 -3
  350. package/dist/components/Avatar/Avatar.interface.d.ts +0 -29
  351. package/dist/components/Avatar/index.d.ts +0 -1
  352. package/dist/components/Badge/Badge.d.ts +0 -10
  353. package/dist/components/Badge/Badge.interface.d.ts +0 -33
  354. package/dist/components/Badge/index.d.ts +0 -1
  355. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -8
  356. package/dist/components/Breadcrumbs/Breadcrumbs.interface.d.ts +0 -71
  357. package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -8
  358. package/dist/components/Breadcrumbs/index.d.ts +0 -3
  359. package/dist/components/Button/Button.d.ts +0 -5
  360. package/dist/components/Button/index.d.ts +0 -1
  361. package/dist/components/Caption/Caption.d.ts +0 -3
  362. package/dist/components/Caption/Caption.interface.d.ts +0 -21
  363. package/dist/components/Caption/index.d.ts +0 -1
  364. package/dist/components/Card/Card.d.ts +0 -13
  365. package/dist/components/Card/Card.interface.d.ts +0 -29
  366. package/dist/components/Card/index.d.ts +0 -1
  367. package/dist/components/Cell/Cell.d.ts +0 -9
  368. package/dist/components/Cell/index.d.ts +0 -1
  369. package/dist/components/Checkbox/Checkbox.d.ts +0 -9
  370. package/dist/components/Checkbox/Checkbox.interface.d.ts +0 -56
  371. package/dist/components/Checkbox/index.d.ts +0 -1
  372. package/dist/components/Chips/Chips.d.ts +0 -4
  373. package/dist/components/Chips/index.d.ts +0 -1
  374. package/dist/components/Choice/Choice.d.ts +0 -5
  375. package/dist/components/Choice/Choice.interface.d.ts +0 -59
  376. package/dist/components/Choice/index.d.ts +0 -1
  377. package/dist/components/Code/Code.d.ts +0 -21
  378. package/dist/components/Code/Code.interface.d.ts +0 -33
  379. package/dist/components/Code/index.d.ts +0 -1
  380. package/dist/components/ContextMenu/ContextMenu.d.ts +0 -8
  381. package/dist/components/ContextMenu/ContextMenu.interface.d.ts +0 -36
  382. package/dist/components/ContextMenu/ContextMenuItem.d.ts +0 -3
  383. package/dist/components/ContextMenu/index.d.ts +0 -3
  384. package/dist/components/CookiesWarning/CookiesWarning.d.ts +0 -10
  385. package/dist/components/CookiesWarning/CookiesWarning.interface.d.ts +0 -16
  386. package/dist/components/CookiesWarning/index.d.ts +0 -2
  387. package/dist/components/DadataHintField/DadataHintField.d.ts +0 -3
  388. package/dist/components/DadataHintField/DadataHintField.interface.d.ts +0 -14
  389. package/dist/components/DadataHintField/index.d.ts +0 -1
  390. package/dist/components/DatePicker/DatePicker.d.ts +0 -3
  391. package/dist/components/DatePicker/DatePicker.interface.d.ts +0 -100
  392. package/dist/components/DatePicker/index.d.ts +0 -1
  393. package/dist/components/Divider/Divider.d.ts +0 -8
  394. package/dist/components/Divider/Divider.interface.d.ts +0 -31
  395. package/dist/components/Divider/index.d.ts +0 -1
  396. package/dist/components/Dot/Dot.d.ts +0 -6
  397. package/dist/components/Dot/Dot.interface.d.ts +0 -27
  398. package/dist/components/Dot/index.d.ts +0 -1
  399. package/dist/components/Drawer/Drawer.d.ts +0 -3
  400. package/dist/components/Drawer/Drawer.interface.d.ts +0 -16
  401. package/dist/components/Drawer/index.d.ts +0 -1
  402. package/dist/components/Dropdown/Dropdown.d.ts +0 -10
  403. package/dist/components/Dropdown/DropdownItem.d.ts +0 -10
  404. package/dist/components/Dropdown/index.d.ts +0 -3
  405. package/dist/components/Flex/Flex.d.ts +0 -8
  406. package/dist/components/Flex/FlexItem.d.ts +0 -8
  407. package/dist/components/Flex/index.d.ts +0 -3
  408. package/dist/components/FormField/ChoiceField.d.ts +0 -8
  409. package/dist/components/FormField/FormField.d.ts +0 -9
  410. package/dist/components/FormField/FormFiled.interface.d.ts +0 -77
  411. package/dist/components/FormField/PasswordField.d.ts +0 -9
  412. package/dist/components/FormField/SelectField.d.ts +0 -9
  413. package/dist/components/FormField/SwitchField.d.ts +0 -8
  414. package/dist/components/FormField/index.d.ts +0 -6
  415. package/dist/components/Grid/Grid.d.ts +0 -8
  416. package/dist/components/Grid/Grid.interface.d.ts +0 -142
  417. package/dist/components/Grid/GridItem.d.ts +0 -3
  418. package/dist/components/Grid/GridRow.d.ts +0 -8
  419. package/dist/components/Grid/index.d.ts +0 -4
  420. package/dist/components/Group/Group.d.ts +0 -9
  421. package/dist/components/Group/Group.interface.d.ts +0 -53
  422. package/dist/components/Group/index.d.ts +0 -1
  423. package/dist/components/HTMLContent/HTMLContent.d.ts +0 -3
  424. package/dist/components/HTMLContent/index.d.ts +0 -1
  425. package/dist/components/Icon/Icon.d.ts +0 -5
  426. package/dist/components/Icon/Icon.interface.d.ts +0 -93
  427. package/dist/components/Icon/index.d.ts +0 -1
  428. package/dist/components/Image/Image.d.ts +0 -3
  429. package/dist/components/Image/Image.interface.d.ts +0 -34
  430. package/dist/components/Image/index.d.ts +0 -1
  431. package/dist/components/Input/Input.d.ts +0 -5
  432. package/dist/components/Input/Input.interface.d.ts +0 -51
  433. package/dist/components/Input/index.d.ts +0 -1
  434. package/dist/components/InputMask/Input.d.ts +0 -5
  435. package/dist/components/InputMask/Input.interface.d.ts +0 -53
  436. package/dist/components/InputMask/index.d.ts +0 -1
  437. package/dist/components/InputPassword/InputPassword.d.ts +0 -10
  438. package/dist/components/InputPassword/InputPassword.interface.d.ts +0 -52
  439. package/dist/components/InputPassword/index.d.ts +0 -1
  440. package/dist/components/Label/Label.d.ts +0 -9
  441. package/dist/components/Label/Label.interface.d.ts +0 -58
  442. package/dist/components/Label/index.d.ts +0 -1
  443. package/dist/components/LanguageSelector/Label.interface.d.ts +0 -20
  444. package/dist/components/LanguageSelector/LanguageSelector.d.ts +0 -3
  445. package/dist/components/LanguageSelector/index.d.ts +0 -1
  446. package/dist/components/Link/Link.d.ts +0 -11
  447. package/dist/components/Link/Link.interface.d.ts +0 -61
  448. package/dist/components/Link/index.d.ts +0 -1
  449. package/dist/components/List/List.d.ts +0 -3
  450. package/dist/components/List/List.interface.d.ts +0 -28
  451. package/dist/components/List/ListItem.d.ts +0 -3
  452. package/dist/components/List/index.d.ts +0 -3
  453. package/dist/components/Loader/Loader.d.ts +0 -4
  454. package/dist/components/Loader/Loader.interface.d.ts +0 -30
  455. package/dist/components/Loader/index.d.ts +0 -1
  456. package/dist/components/Logo/Logo.d.ts +0 -4
  457. package/dist/components/Logo/Logo.interface.d.ts +0 -37
  458. package/dist/components/Logo/index.d.ts +0 -1
  459. package/dist/components/Menu/Menu.d.ts +0 -8
  460. package/dist/components/Menu/Menu.interface.d.ts +0 -20
  461. package/dist/components/Menu/index.d.ts +0 -1
  462. package/dist/components/MenuItem/MenuItem.d.ts +0 -11
  463. package/dist/components/MenuItem/MenuItem.interface.d.ts +0 -65
  464. package/dist/components/MenuItem/index.d.ts +0 -1
  465. package/dist/components/Modal/Modal.d.ts +0 -4
  466. package/dist/components/Modal/Modal.interface.d.ts +0 -33
  467. package/dist/components/Modal/ModalLoader.d.ts +0 -3
  468. package/dist/components/Modal/index.d.ts +0 -3
  469. package/dist/components/Notification/Notification.interface.d.ts +0 -49
  470. package/dist/components/Notification/NotificationItem.d.ts +0 -10
  471. package/dist/components/Notification/NotificationList.d.ts +0 -3
  472. package/dist/components/Notification/index.d.ts +0 -3
  473. package/dist/components/Overlay/Overlay.d.ts +0 -3
  474. package/dist/components/Overlay/Overlay.interface.d.ts +0 -12
  475. package/dist/components/Overlay/index.d.ts +0 -1
  476. package/dist/components/Pagination/Pagination.d.ts +0 -13
  477. package/dist/components/Pagination/Pagination.interface.d.ts +0 -46
  478. package/dist/components/Pagination/index.d.ts +0 -1
  479. package/dist/components/Panel/Panel.d.ts +0 -7
  480. package/dist/components/Panel/index.d.ts +0 -1
  481. package/dist/components/Radio/Radio.d.ts +0 -10
  482. package/dist/components/Radio/Radio.interface.d.ts +0 -53
  483. package/dist/components/Radio/index.d.ts +0 -1
  484. package/dist/components/RangeSlider/RangeSlider.d.ts +0 -3
  485. package/dist/components/RangeSlider/RangeSlider.interface.d.ts +0 -28
  486. package/dist/components/RangeSlider/index.d.ts +0 -1
  487. package/dist/components/Response/Response.d.ts +0 -4
  488. package/dist/components/Response/Response.interface.d.ts +0 -66
  489. package/dist/components/Response/index.d.ts +0 -1
  490. package/dist/components/SVGContent/SVGContent.d.ts +0 -3
  491. package/dist/components/SVGContent/SVGContent.interface.d.ts +0 -11
  492. package/dist/components/SVGContent/index.d.ts +0 -1
  493. package/dist/components/ScrollOnDrag/ScrollOnDrag.d.ts +0 -8
  494. package/dist/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +0 -18
  495. package/dist/components/ScrollOnDrag/index.d.ts +0 -1
  496. package/dist/components/ScrollToView/ScrollToView.d.ts +0 -2
  497. package/dist/components/ScrollToView/index.d.ts +0 -1
  498. package/dist/components/Scrollbar/Scrollbar.d.ts +0 -8
  499. package/dist/components/Scrollbar/Scrollbar.interface.d.ts +0 -10
  500. package/dist/components/Scrollbar/index.d.ts +0 -1
  501. package/dist/components/Search/Search.interface.d.ts +0 -69
  502. package/dist/components/Search/SearchInput.d.ts +0 -5
  503. package/dist/components/Search/SearchResult.d.ts +0 -4
  504. package/dist/components/Search/index.d.ts +0 -3
  505. package/dist/components/Segmented/Segmented.d.ts +0 -5
  506. package/dist/components/Segmented/Segmented.interface.d.ts +0 -42
  507. package/dist/components/Segmented/index.d.ts +0 -1
  508. package/dist/components/SiteMenu/SiteMenu.d.ts +0 -3
  509. package/dist/components/SiteMenu/SiteMenu.interface.d.ts +0 -23
  510. package/dist/components/SiteMenu/SiteMenuButton.d.ts +0 -3
  511. package/dist/components/SiteMenu/index.d.ts +0 -3
  512. package/dist/components/Swiper/Swiper.d.ts +0 -9
  513. package/dist/components/Swiper/Swiper.interface.d.ts +0 -58
  514. package/dist/components/Swiper/index.d.ts +0 -1
  515. package/dist/components/Switch/Switch.d.ts +0 -4
  516. package/dist/components/Switch/Switch.interface.d.ts +0 -10
  517. package/dist/components/Switch/index.d.ts +0 -1
  518. package/dist/components/Tab/Tab.d.ts +0 -11
  519. package/dist/components/Tab/TabGroup.d.ts +0 -3
  520. package/dist/components/Tab/index.d.ts +0 -3
  521. package/dist/components/Text/Text.d.ts +0 -9
  522. package/dist/components/Text/index.d.ts +0 -1
  523. package/dist/components/Textarea/Textarea.d.ts +0 -9
  524. package/dist/components/Textarea/Textarea.interface.d.ts +0 -44
  525. package/dist/components/Textarea/index.d.ts +0 -1
  526. package/dist/components/Tile/Tile.d.ts +0 -9
  527. package/dist/components/Tile/index.d.ts +0 -1
  528. package/dist/components/Title/Title.d.ts +0 -9
  529. package/dist/components/Title/index.d.ts +0 -1
  530. package/dist/components/Tooltip/Tooltip.d.ts +0 -5
  531. package/dist/components/Tooltip/Tooltip.interface.d.ts +0 -44
  532. package/dist/components/Tooltip/index.d.ts +0 -1
  533. package/dist/components/Video/Video.d.ts +0 -3
  534. package/dist/components/Video/Video.interface.d.ts +0 -15
  535. package/dist/components/Video/index.d.ts +0 -1
  536. package/dist/components/Wrapper/Wrapper.d.ts +0 -9
  537. package/dist/components/Wrapper/index.d.ts +0 -1
  538. package/dist/components/index.d.ts +0 -60
  539. package/dist/context/index.d.ts +0 -2
  540. package/dist/floating-ui.dom-BV5qw-HP.js +0 -1423
  541. package/dist/hooks/index.d.ts +0 -3
  542. package/dist/hooks/styleAttributes.interface.d.ts +0 -161
  543. package/dist/index.d.ts +0 -4
  544. package/dist/jsx-runtime-C2uP7l8s.js +0 -1371
  545. package/dist/types/componentProps/align.d.ts +0 -1
  546. package/dist/types/componentProps/alignDirection.d.ts +0 -1
  547. package/dist/types/componentProps/alignment.d.ts +0 -1
  548. package/dist/types/componentProps/appearanceKeys.d.ts +0 -1
  549. package/dist/types/componentProps/borderColor.d.ts +0 -1
  550. package/dist/types/componentProps/borderColorHover.d.ts +0 -1
  551. package/dist/types/componentProps/borderType.d.ts +0 -1
  552. package/dist/types/componentProps/borderWidth.d.ts +0 -1
  553. package/dist/types/componentProps/captionPosition.d.ts +0 -1
  554. package/dist/types/componentProps/direction.d.ts +0 -1
  555. package/dist/types/componentProps/elevation.d.ts +0 -1
  556. package/dist/types/componentProps/emojiSize.d.ts +0 -1
  557. package/dist/types/componentProps/fill.d.ts +0 -1
  558. package/dist/types/componentProps/fillGradient.d.ts +0 -1
  559. package/dist/types/componentProps/fillHover.d.ts +0 -1
  560. package/dist/types/componentProps/fillType.d.ts +0 -1
  561. package/dist/types/componentProps/flexAlign.d.ts +0 -1
  562. package/dist/types/componentProps/flexGrow.d.ts +0 -1
  563. package/dist/types/componentProps/flexJustifyContent.d.ts +0 -1
  564. package/dist/types/componentProps/flexWrap.d.ts +0 -1
  565. package/dist/types/componentProps/gridAlign.d.ts +0 -1
  566. package/dist/types/componentProps/gridAlignSelf.d.ts +0 -1
  567. package/dist/types/componentProps/gridJustifyItems.d.ts +0 -1
  568. package/dist/types/componentProps/gridJustifySelf.d.ts +0 -1
  569. package/dist/types/componentProps/height.d.ts +0 -1
  570. package/dist/types/componentProps/horizontalContentAlign.d.ts +0 -1
  571. package/dist/types/componentProps/horizontalResizeMode.d.ts +0 -1
  572. package/dist/types/componentProps/iconFillSize.d.ts +0 -1
  573. package/dist/types/componentProps/iconSize.d.ts +0 -1
  574. package/dist/types/componentProps/itemColor.d.ts +0 -1
  575. package/dist/types/componentProps/justifyContent.d.ts +0 -1
  576. package/dist/types/componentProps/overflow.d.ts +0 -1
  577. package/dist/types/componentProps/position.d.ts +0 -1
  578. package/dist/types/componentProps/resizeMode.d.ts +0 -1
  579. package/dist/types/componentProps/shape.d.ts +0 -1
  580. package/dist/types/componentProps/size.d.ts +0 -1
  581. package/dist/types/componentProps/sizeInterface.d.ts +0 -1
  582. package/dist/types/componentProps/sizePX.d.ts +0 -1
  583. package/dist/types/componentProps/stacking.d.ts +0 -1
  584. package/dist/types/componentProps/state.d.ts +0 -1
  585. package/dist/types/componentProps/stateKeys.d.ts +0 -1
  586. package/dist/types/componentProps/svgFill.d.ts +0 -1
  587. package/dist/types/componentProps/textAlign.d.ts +0 -1
  588. package/dist/types/componentProps/textColor.d.ts +0 -1
  589. package/dist/types/componentProps/textColorActive.d.ts +0 -2
  590. package/dist/types/componentProps/textColorHover.d.ts +0 -1
  591. package/dist/types/componentProps/textGradient.d.ts +0 -1
  592. package/dist/types/componentProps/textSize.d.ts +0 -1
  593. package/dist/types/componentProps/textStyle.d.ts +0 -1
  594. package/dist/types/componentProps/textTag.d.ts +0 -1
  595. package/dist/types/componentProps/textWeight.d.ts +0 -1
  596. package/dist/types/componentProps/textWrap.d.ts +0 -1
  597. package/dist/types/componentProps/titleSize.d.ts +0 -1
  598. package/dist/types/componentProps/type.d.ts +0 -1
  599. package/dist/types/componentProps/underline.d.ts +0 -1
  600. package/dist/types/componentProps/verticalContentAlign.d.ts +0 -1
  601. package/dist/types/componentProps/verticalResizeMode.d.ts +0 -1
  602. package/dist/types/componentProps/width.d.ts +0 -1
  603. package/dist/types/componentProps/wrap.d.ts +0 -1
  604. package/dist/types/index.d.ts +0 -57
  605. /package/dist/{cjs/_tslib-CKiUdo7p.js → tslib.es6-CKiUdo7p.js} +0 -0
  606. /package/dist/{_tslib-S-VPg1Cw.js → tslib.es6-S-VPg1Cw.js} +0 -0
  607. /package/dist/{cjs → types}/components/Accordion/Accordion.d.ts +0 -0
  608. /package/dist/{cjs → types}/components/Accordion/Accordion.interface.d.ts +0 -0
  609. /package/dist/{cjs → types}/components/Accordion/AccordionItem.d.ts +0 -0
  610. /package/dist/{cjs → types}/components/Accordion/index.d.ts +0 -0
  611. /package/dist/{cjs → types}/components/Avatar/Avatar.d.ts +0 -0
  612. /package/dist/{cjs → types}/components/Avatar/Avatar.interface.d.ts +0 -0
  613. /package/dist/{cjs → types}/components/Avatar/index.d.ts +0 -0
  614. /package/dist/{cjs → types}/components/Badge/Badge.d.ts +0 -0
  615. /package/dist/{cjs → types}/components/Badge/Badge.interface.d.ts +0 -0
  616. /package/dist/{cjs → types}/components/Badge/index.d.ts +0 -0
  617. /package/dist/{cjs → types}/components/Breadcrumbs/Breadcrumbs.d.ts +0 -0
  618. /package/dist/{cjs → types}/components/Breadcrumbs/Breadcrumbs.interface.d.ts +0 -0
  619. /package/dist/{cjs → types}/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -0
  620. /package/dist/{cjs → types}/components/Breadcrumbs/index.d.ts +0 -0
  621. /package/dist/{cjs → types}/components/Button/Button.d.ts +0 -0
  622. /package/dist/{cjs → types}/components/Button/index.d.ts +0 -0
  623. /package/dist/{cjs → types}/components/Caption/Caption.d.ts +0 -0
  624. /package/dist/{cjs → types}/components/Caption/Caption.interface.d.ts +0 -0
  625. /package/dist/{cjs → types}/components/Caption/index.d.ts +0 -0
  626. /package/dist/{cjs → types}/components/Card/Card.d.ts +0 -0
  627. /package/dist/{cjs → types}/components/Card/Card.interface.d.ts +0 -0
  628. /package/dist/{cjs → types}/components/Card/index.d.ts +0 -0
  629. /package/dist/{cjs → types}/components/Cell/Cell.d.ts +0 -0
  630. /package/dist/{cjs → types}/components/Cell/index.d.ts +0 -0
  631. /package/dist/{cjs → types}/components/Checkbox/Checkbox.d.ts +0 -0
  632. /package/dist/{cjs → types}/components/Checkbox/Checkbox.interface.d.ts +0 -0
  633. /package/dist/{cjs → types}/components/Checkbox/index.d.ts +0 -0
  634. /package/dist/{cjs → types}/components/Chips/Chips.d.ts +0 -0
  635. /package/dist/{cjs → types}/components/Chips/index.d.ts +0 -0
  636. /package/dist/{cjs → types}/components/Choice/Choice.d.ts +0 -0
  637. /package/dist/{cjs → types}/components/Choice/Choice.interface.d.ts +0 -0
  638. /package/dist/{cjs → types}/components/Choice/index.d.ts +0 -0
  639. /package/dist/{cjs → types}/components/Code/Code.d.ts +0 -0
  640. /package/dist/{cjs → types}/components/Code/Code.interface.d.ts +0 -0
  641. /package/dist/{cjs → types}/components/Code/index.d.ts +0 -0
  642. /package/dist/{cjs → types}/components/ContextMenu/ContextMenu.d.ts +0 -0
  643. /package/dist/{cjs → types}/components/ContextMenu/ContextMenu.interface.d.ts +0 -0
  644. /package/dist/{cjs → types}/components/ContextMenu/ContextMenuItem.d.ts +0 -0
  645. /package/dist/{cjs → types}/components/ContextMenu/index.d.ts +0 -0
  646. /package/dist/{cjs → types}/components/CookiesWarning/CookiesWarning.d.ts +0 -0
  647. /package/dist/{cjs → types}/components/CookiesWarning/CookiesWarning.interface.d.ts +0 -0
  648. /package/dist/{cjs → types}/components/CookiesWarning/index.d.ts +0 -0
  649. /package/dist/{cjs → types}/components/DadataHintField/DadataHintField.d.ts +0 -0
  650. /package/dist/{cjs → types}/components/DadataHintField/DadataHintField.interface.d.ts +0 -0
  651. /package/dist/{cjs → types}/components/DadataHintField/index.d.ts +0 -0
  652. /package/dist/{cjs → types}/components/DatePicker/DatePicker.d.ts +0 -0
  653. /package/dist/{cjs → types}/components/DatePicker/DatePicker.interface.d.ts +0 -0
  654. /package/dist/{cjs → types}/components/DatePicker/index.d.ts +0 -0
  655. /package/dist/{cjs → types}/components/Divider/Divider.d.ts +0 -0
  656. /package/dist/{cjs → types}/components/Divider/Divider.interface.d.ts +0 -0
  657. /package/dist/{cjs → types}/components/Divider/index.d.ts +0 -0
  658. /package/dist/{cjs → types}/components/Dot/Dot.d.ts +0 -0
  659. /package/dist/{cjs → types}/components/Dot/Dot.interface.d.ts +0 -0
  660. /package/dist/{cjs → types}/components/Dot/index.d.ts +0 -0
  661. /package/dist/{cjs → types}/components/Drawer/Drawer.d.ts +0 -0
  662. /package/dist/{cjs → types}/components/Drawer/Drawer.interface.d.ts +0 -0
  663. /package/dist/{cjs → types}/components/Drawer/index.d.ts +0 -0
  664. /package/dist/{cjs → types}/components/Dropdown/Dropdown.d.ts +0 -0
  665. /package/dist/{cjs → types}/components/Dropdown/DropdownItem.d.ts +0 -0
  666. /package/dist/{cjs → types}/components/Dropdown/index.d.ts +0 -0
  667. /package/dist/{cjs → types}/components/Flex/Flex.d.ts +0 -0
  668. /package/dist/{cjs → types}/components/Flex/FlexItem.d.ts +0 -0
  669. /package/dist/{cjs → types}/components/Flex/index.d.ts +0 -0
  670. /package/dist/{cjs → types}/components/FormField/ChoiceField.d.ts +0 -0
  671. /package/dist/{cjs → types}/components/FormField/FormField.d.ts +0 -0
  672. /package/dist/{cjs → types}/components/FormField/FormFiled.interface.d.ts +0 -0
  673. /package/dist/{cjs → types}/components/FormField/PasswordField.d.ts +0 -0
  674. /package/dist/{cjs → types}/components/FormField/SelectField.d.ts +0 -0
  675. /package/dist/{cjs → types}/components/FormField/SwitchField.d.ts +0 -0
  676. /package/dist/{cjs → types}/components/FormField/index.d.ts +0 -0
  677. /package/dist/{cjs → types}/components/Grid/Grid.d.ts +0 -0
  678. /package/dist/{cjs → types}/components/Grid/Grid.interface.d.ts +0 -0
  679. /package/dist/{cjs → types}/components/Grid/GridItem.d.ts +0 -0
  680. /package/dist/{cjs → types}/components/Grid/GridRow.d.ts +0 -0
  681. /package/dist/{cjs → types}/components/Grid/index.d.ts +0 -0
  682. /package/dist/{cjs → types}/components/Group/Group.d.ts +0 -0
  683. /package/dist/{cjs → types}/components/Group/index.d.ts +0 -0
  684. /package/dist/{cjs → types}/components/HTMLContent/HTMLContent.d.ts +0 -0
  685. /package/dist/{cjs → types}/components/HTMLContent/index.d.ts +0 -0
  686. /package/dist/{cjs → types}/components/Icon/Icon.d.ts +0 -0
  687. /package/dist/{cjs → types}/components/Icon/Icon.interface.d.ts +0 -0
  688. /package/dist/{cjs → types}/components/Icon/index.d.ts +0 -0
  689. /package/dist/{cjs → types}/components/Image/Image.d.ts +0 -0
  690. /package/dist/{cjs → types}/components/Image/Image.interface.d.ts +0 -0
  691. /package/dist/{cjs → types}/components/Image/index.d.ts +0 -0
  692. /package/dist/{cjs → types}/components/Input/Input.d.ts +0 -0
  693. /package/dist/{cjs → types}/components/Input/Input.interface.d.ts +0 -0
  694. /package/dist/{cjs → types}/components/Input/index.d.ts +0 -0
  695. /package/dist/{cjs → types}/components/InputMask/Input.d.ts +0 -0
  696. /package/dist/{cjs → types}/components/InputMask/Input.interface.d.ts +0 -0
  697. /package/dist/{cjs → types}/components/InputMask/index.d.ts +0 -0
  698. /package/dist/{cjs → types}/components/InputPassword/InputPassword.d.ts +0 -0
  699. /package/dist/{cjs → types}/components/InputPassword/InputPassword.interface.d.ts +0 -0
  700. /package/dist/{cjs → types}/components/InputPassword/index.d.ts +0 -0
  701. /package/dist/{cjs → types}/components/Label/Label.d.ts +0 -0
  702. /package/dist/{cjs → types}/components/Label/index.d.ts +0 -0
  703. /package/dist/{cjs → types}/components/LanguageSelector/Label.interface.d.ts +0 -0
  704. /package/dist/{cjs → types}/components/LanguageSelector/LanguageSelector.d.ts +0 -0
  705. /package/dist/{cjs → types}/components/LanguageSelector/index.d.ts +0 -0
  706. /package/dist/{cjs → types}/components/Link/Link.d.ts +0 -0
  707. /package/dist/{cjs → types}/components/Link/Link.interface.d.ts +0 -0
  708. /package/dist/{cjs → types}/components/Link/index.d.ts +0 -0
  709. /package/dist/{cjs → types}/components/List/List.d.ts +0 -0
  710. /package/dist/{cjs → types}/components/List/List.interface.d.ts +0 -0
  711. /package/dist/{cjs → types}/components/List/ListItem.d.ts +0 -0
  712. /package/dist/{cjs → types}/components/List/index.d.ts +0 -0
  713. /package/dist/{cjs → types}/components/Loader/Loader.d.ts +0 -0
  714. /package/dist/{cjs → types}/components/Loader/Loader.interface.d.ts +0 -0
  715. /package/dist/{cjs → types}/components/Loader/index.d.ts +0 -0
  716. /package/dist/{cjs → types}/components/Logo/Logo.d.ts +0 -0
  717. /package/dist/{cjs → types}/components/Logo/index.d.ts +0 -0
  718. /package/dist/{cjs → types}/components/Menu/Menu.d.ts +0 -0
  719. /package/dist/{cjs → types}/components/Menu/Menu.interface.d.ts +0 -0
  720. /package/dist/{cjs → types}/components/Menu/index.d.ts +0 -0
  721. /package/dist/{cjs → types}/components/MenuItem/MenuItem.d.ts +0 -0
  722. /package/dist/{cjs → types}/components/MenuItem/index.d.ts +0 -0
  723. /package/dist/{cjs → types}/components/Modal/Modal.d.ts +0 -0
  724. /package/dist/{cjs → types}/components/Modal/Modal.interface.d.ts +0 -0
  725. /package/dist/{cjs → types}/components/Modal/ModalLoader.d.ts +0 -0
  726. /package/dist/{cjs → types}/components/Modal/index.d.ts +0 -0
  727. /package/dist/{cjs → types}/components/Notification/Notification.interface.d.ts +0 -0
  728. /package/dist/{cjs → types}/components/Notification/NotificationItem.d.ts +0 -0
  729. /package/dist/{cjs → types}/components/Notification/NotificationList.d.ts +0 -0
  730. /package/dist/{cjs → types}/components/Notification/index.d.ts +0 -0
  731. /package/dist/{cjs → types}/components/Overlay/Overlay.d.ts +0 -0
  732. /package/dist/{cjs → types}/components/Overlay/Overlay.interface.d.ts +0 -0
  733. /package/dist/{cjs → types}/components/Overlay/index.d.ts +0 -0
  734. /package/dist/{cjs → types}/components/Pagination/index.d.ts +0 -0
  735. /package/dist/{cjs → types}/components/Panel/Panel.d.ts +0 -0
  736. /package/dist/{cjs → types}/components/Panel/index.d.ts +0 -0
  737. /package/dist/{cjs → types}/components/Radio/Radio.d.ts +0 -0
  738. /package/dist/{cjs → types}/components/Radio/Radio.interface.d.ts +0 -0
  739. /package/dist/{cjs → types}/components/Radio/index.d.ts +0 -0
  740. /package/dist/{cjs → types}/components/RangeSlider/RangeSlider.d.ts +0 -0
  741. /package/dist/{cjs → types}/components/RangeSlider/RangeSlider.interface.d.ts +0 -0
  742. /package/dist/{cjs → types}/components/RangeSlider/index.d.ts +0 -0
  743. /package/dist/{cjs → types}/components/Response/Response.d.ts +0 -0
  744. /package/dist/{cjs → types}/components/Response/Response.interface.d.ts +0 -0
  745. /package/dist/{cjs → types}/components/Response/index.d.ts +0 -0
  746. /package/dist/{cjs → types}/components/SVGContent/SVGContent.d.ts +0 -0
  747. /package/dist/{cjs → types}/components/SVGContent/SVGContent.interface.d.ts +0 -0
  748. /package/dist/{cjs → types}/components/SVGContent/index.d.ts +0 -0
  749. /package/dist/{cjs → types}/components/ScrollOnDrag/ScrollOnDrag.d.ts +0 -0
  750. /package/dist/{cjs → types}/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +0 -0
  751. /package/dist/{cjs → types}/components/ScrollOnDrag/index.d.ts +0 -0
  752. /package/dist/{cjs → types}/components/ScrollToView/ScrollToView.d.ts +0 -0
  753. /package/dist/{cjs → types}/components/ScrollToView/index.d.ts +0 -0
  754. /package/dist/{cjs → types}/components/Scrollbar/Scrollbar.d.ts +0 -0
  755. /package/dist/{cjs → types}/components/Scrollbar/Scrollbar.interface.d.ts +0 -0
  756. /package/dist/{cjs → types}/components/Scrollbar/index.d.ts +0 -0
  757. /package/dist/{cjs → types}/components/Search/Search.interface.d.ts +0 -0
  758. /package/dist/{cjs → types}/components/Search/SearchInput.d.ts +0 -0
  759. /package/dist/{cjs → types}/components/Search/SearchResult.d.ts +0 -0
  760. /package/dist/{cjs → types}/components/Search/index.d.ts +0 -0
  761. /package/dist/{cjs → types}/components/Segmented/Segmented.d.ts +0 -0
  762. /package/dist/{cjs → types}/components/Segmented/index.d.ts +0 -0
  763. /package/dist/{cjs → types}/components/SiteMenu/SiteMenu.d.ts +0 -0
  764. /package/dist/{cjs → types}/components/SiteMenu/SiteMenu.interface.d.ts +0 -0
  765. /package/dist/{cjs → types}/components/SiteMenu/SiteMenuButton.d.ts +0 -0
  766. /package/dist/{cjs → types}/components/SiteMenu/index.d.ts +0 -0
  767. /package/dist/{cjs → types}/components/Swiper/Swiper.d.ts +0 -0
  768. /package/dist/{cjs → types}/components/Swiper/index.d.ts +0 -0
  769. /package/dist/{cjs → types}/components/Switch/Switch.d.ts +0 -0
  770. /package/dist/{cjs → types}/components/Switch/Switch.interface.d.ts +0 -0
  771. /package/dist/{cjs → types}/components/Switch/index.d.ts +0 -0
  772. /package/dist/{cjs → types}/components/Tab/Tab.d.ts +0 -0
  773. /package/dist/{cjs → types}/components/Tab/TabGroup.d.ts +0 -0
  774. /package/dist/{cjs → types}/components/Tab/index.d.ts +0 -0
  775. /package/dist/{cjs → types}/components/Text/Text.d.ts +0 -0
  776. /package/dist/{cjs → types}/components/Text/index.d.ts +0 -0
  777. /package/dist/{cjs → types}/components/Textarea/Textarea.d.ts +0 -0
  778. /package/dist/{cjs → types}/components/Textarea/Textarea.interface.d.ts +0 -0
  779. /package/dist/{cjs → types}/components/Textarea/index.d.ts +0 -0
  780. /package/dist/{cjs → types}/components/Tile/Tile.d.ts +0 -0
  781. /package/dist/{cjs → types}/components/Tile/index.d.ts +0 -0
  782. /package/dist/{cjs → types}/components/Title/Title.d.ts +0 -0
  783. /package/dist/{cjs → types}/components/Title/index.d.ts +0 -0
  784. /package/dist/{cjs → types}/components/Tooltip/Tooltip.d.ts +0 -0
  785. /package/dist/{cjs → types}/components/Tooltip/index.d.ts +0 -0
  786. /package/dist/{cjs → types}/components/Video/Video.d.ts +0 -0
  787. /package/dist/{cjs → types}/components/Video/Video.interface.d.ts +0 -0
  788. /package/dist/{cjs → types}/components/Video/index.d.ts +0 -0
  789. /package/dist/{cjs → types}/components/Wrapper/Wrapper.d.ts +0 -0
  790. /package/dist/{cjs → types}/components/Wrapper/index.d.ts +0 -0
  791. /package/dist/{cjs → types}/types/componentProps/alignment.d.ts +0 -0
  792. /package/dist/{cjs → types}/types/componentProps/appearanceKeys.d.ts +0 -0
  793. /package/dist/{cjs → types}/types/componentProps/borderColor.d.ts +0 -0
  794. /package/dist/{cjs → types}/types/componentProps/borderColorHover.d.ts +0 -0
  795. /package/dist/{cjs → types}/types/componentProps/borderType.d.ts +0 -0
  796. /package/dist/{cjs → types}/types/componentProps/borderWidth.d.ts +0 -0
  797. /package/dist/{cjs → types}/types/componentProps/captionPosition.d.ts +0 -0
  798. /package/dist/{cjs → types}/types/componentProps/direction.d.ts +0 -0
  799. /package/dist/{cjs → types}/types/componentProps/elevation.d.ts +0 -0
  800. /package/dist/{cjs → types}/types/componentProps/emojiSize.d.ts +0 -0
  801. /package/dist/{cjs → types}/types/componentProps/fill.d.ts +0 -0
  802. /package/dist/{cjs → types}/types/componentProps/fillGradient.d.ts +0 -0
  803. /package/dist/{cjs → types}/types/componentProps/fillHover.d.ts +0 -0
  804. /package/dist/{cjs → types}/types/componentProps/fillType.d.ts +0 -0
  805. /package/dist/{cjs → types}/types/componentProps/flexAlign.d.ts +0 -0
  806. /package/dist/{cjs → types}/types/componentProps/flexGrow.d.ts +0 -0
  807. /package/dist/{cjs → types}/types/componentProps/flexJustifyContent.d.ts +0 -0
  808. /package/dist/{cjs → types}/types/componentProps/flexWrap.d.ts +0 -0
  809. /package/dist/{cjs → types}/types/componentProps/gridAlign.d.ts +0 -0
  810. /package/dist/{cjs → types}/types/componentProps/gridAlignSelf.d.ts +0 -0
  811. /package/dist/{cjs → types}/types/componentProps/gridJustifyItems.d.ts +0 -0
  812. /package/dist/{cjs → types}/types/componentProps/gridJustifySelf.d.ts +0 -0
  813. /package/dist/{cjs → types}/types/componentProps/height.d.ts +0 -0
  814. /package/dist/{cjs → types}/types/componentProps/horizontalContentAlign.d.ts +0 -0
  815. /package/dist/{cjs → types}/types/componentProps/horizontalResizeMode.d.ts +0 -0
  816. /package/dist/{cjs → types}/types/componentProps/iconFillSize.d.ts +0 -0
  817. /package/dist/{cjs → types}/types/componentProps/iconSize.d.ts +0 -0
  818. /package/dist/{cjs → types}/types/componentProps/itemColor.d.ts +0 -0
  819. /package/dist/{cjs → types}/types/componentProps/overflow.d.ts +0 -0
  820. /package/dist/{cjs → types}/types/componentProps/position.d.ts +0 -0
  821. /package/dist/{cjs → types}/types/componentProps/resizeMode.d.ts +0 -0
  822. /package/dist/{cjs → types}/types/componentProps/shape.d.ts +0 -0
  823. /package/dist/{cjs → types}/types/componentProps/size.d.ts +0 -0
  824. /package/dist/{cjs → types}/types/componentProps/sizeInterface.d.ts +0 -0
  825. /package/dist/{cjs → types}/types/componentProps/sizePX.d.ts +0 -0
  826. /package/dist/{cjs → types}/types/componentProps/stacking.d.ts +0 -0
  827. /package/dist/{cjs → types}/types/componentProps/state.d.ts +0 -0
  828. /package/dist/{cjs → types}/types/componentProps/stateKeys.d.ts +0 -0
  829. /package/dist/{cjs → types}/types/componentProps/svgFill.d.ts +0 -0
  830. /package/dist/{cjs → types}/types/componentProps/textColor.d.ts +0 -0
  831. /package/dist/{cjs → types}/types/componentProps/textColorHover.d.ts +0 -0
  832. /package/dist/{cjs → types}/types/componentProps/textGradient.d.ts +0 -0
  833. /package/dist/{cjs → types}/types/componentProps/textSize.d.ts +0 -0
  834. /package/dist/{cjs → types}/types/componentProps/textStyle.d.ts +0 -0
  835. /package/dist/{cjs → types}/types/componentProps/textTag.d.ts +0 -0
  836. /package/dist/{cjs → types}/types/componentProps/textWeight.d.ts +0 -0
  837. /package/dist/{cjs → types}/types/componentProps/titleSize.d.ts +0 -0
  838. /package/dist/{cjs → types}/types/componentProps/type.d.ts +0 -0
  839. /package/dist/{cjs → types}/types/componentProps/underline.d.ts +0 -0
  840. /package/dist/{cjs → types}/types/componentProps/verticalContentAlign.d.ts +0 -0
  841. /package/dist/{cjs → types}/types/componentProps/verticalResizeMode.d.ts +0 -0
  842. /package/dist/{cjs → types}/types/componentProps/width.d.ts +0 -0
  843. /package/dist/{cjs → types}/types/componentProps/wrap.d.ts +0 -0
@@ -1,1103 +0,0 @@
1
- import { _ as __assign$1, a as __rest } from './_tslib-S-VPg1Cw.js';
2
- import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
3
- import React__default, { PureComponent, useMemo } from 'react';
4
- import clsx from 'clsx';
5
- import crypto from 'crypto';
6
- import { I as Input } from './Input-CYDtAlO-.js';
7
-
8
- function getDefaultExportFromCjs (x) {
9
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
10
- }
11
-
12
- //
13
-
14
- var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
15
- var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
16
-
17
- if (ret !== void 0) {
18
- return !!ret;
19
- }
20
-
21
- if (objA === objB) {
22
- return true;
23
- }
24
-
25
- if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
26
- return false;
27
- }
28
-
29
- var keysA = Object.keys(objA);
30
- var keysB = Object.keys(objB);
31
-
32
- if (keysA.length !== keysB.length) {
33
- return false;
34
- }
35
-
36
- var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
37
-
38
- // Test for A's keys different from B.
39
- for (var idx = 0; idx < keysA.length; idx++) {
40
- var key = keysA[idx];
41
-
42
- if (!bHasOwnProperty(key)) {
43
- return false;
44
- }
45
-
46
- var valueA = objA[key];
47
- var valueB = objB[key];
48
-
49
- ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
50
-
51
- if (ret === false || (ret === void 0 && valueA !== valueB)) {
52
- return false;
53
- }
54
- }
55
-
56
- return true;
57
- };
58
-
59
- var shallowEqual = /*@__PURE__*/getDefaultExportFromCjs(shallowequal);
60
-
61
- /**
62
- * Returns a function, that, as long as it continues to be invoked, will not
63
- * be triggered. The function will be called after it stops being called for
64
- * N milliseconds. If `immediate` is passed, trigger the function on the
65
- * leading edge, instead of the trailing. The function also has a property 'clear'
66
- * that is a function which will clear the timer to prevent previously scheduled executions.
67
- *
68
- * @source underscore.js
69
- * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
70
- * @param {Function} function to wrap
71
- * @param {Number} timeout in ms (`100`)
72
- * @param {Boolean} whether to execute at the beginning (`false`)
73
- * @api public
74
- */
75
-
76
- function debounce(func, wait, immediate){
77
- var timeout, args, context, timestamp, result;
78
- if (null == wait) wait = 100;
79
-
80
- function later() {
81
- var last = Date.now() - timestamp;
82
-
83
- if (last < wait && last >= 0) {
84
- timeout = setTimeout(later, wait - last);
85
- } else {
86
- timeout = null;
87
- if (!immediate) {
88
- result = func.apply(context, args);
89
- context = args = null;
90
- }
91
- }
92
- }
93
- var debounced = function(){
94
- context = this;
95
- args = arguments;
96
- timestamp = Date.now();
97
- var callNow = immediate && !timeout;
98
- if (!timeout) timeout = setTimeout(later, wait);
99
- if (callNow) {
100
- result = func.apply(context, args);
101
- context = args = null;
102
- }
103
-
104
- return result;
105
- };
106
-
107
- debounced.clear = function() {
108
- if (timeout) {
109
- clearTimeout(timeout);
110
- timeout = null;
111
- }
112
- };
113
-
114
- debounced.flush = function() {
115
- if (timeout) {
116
- result = func.apply(context, args);
117
- context = args = null;
118
-
119
- clearTimeout(timeout);
120
- timeout = null;
121
- }
122
- };
123
-
124
- return debounced;
125
- }
126
- // Adds compatibility for ES modules
127
- debounce.debounce = debounce;
128
-
129
- var debounce_1 = debounce;
130
-
131
- let urlAlphabet =
132
- 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
133
-
134
- const POOL_SIZE_MULTIPLIER = 128;
135
- let pool, poolOffset;
136
- let fillPool = bytes => {
137
- if (!pool || pool.length < bytes) {
138
- pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
139
- crypto.randomFillSync(pool);
140
- poolOffset = 0;
141
- } else if (poolOffset + bytes > pool.length) {
142
- crypto.randomFillSync(pool);
143
- poolOffset = 0;
144
- }
145
- poolOffset += bytes;
146
- };
147
- let nanoid = (size = 21) => {
148
- fillPool((size -= 0));
149
- let id = '';
150
- for (let i = poolOffset - size; i < poolOffset; i++) {
151
- id += urlAlphabet[pool[i] & 63];
152
- }
153
- return id
154
- };
155
-
156
- var xhr;
157
- var makeRequest = function (method, endpoint, data, cache, onReceiveData) {
158
- if (xhr) {
159
- xhr.abort();
160
- }
161
- var cacheKey;
162
- if (cache) {
163
- cacheKey = cache.serializeCacheKey({
164
- headers: data.headers,
165
- body: data.json,
166
- url: endpoint,
167
- method: method,
168
- });
169
- var cachedData = cache.get(cacheKey);
170
- if (cachedData) {
171
- onReceiveData(cachedData);
172
- return;
173
- }
174
- }
175
- xhr = new XMLHttpRequest();
176
- xhr.open(method, endpoint);
177
- if (data.headers) {
178
- Object.entries(data.headers).forEach(function (_a) {
179
- var header = _a[0], headerValue = _a[1];
180
- xhr.setRequestHeader(header, headerValue);
181
- });
182
- }
183
- xhr.send(JSON.stringify(data.json));
184
- xhr.onreadystatechange = function () {
185
- var _a;
186
- if (!xhr || xhr.readyState !== 4) {
187
- return;
188
- }
189
- if (xhr.status === 200) {
190
- var payload = (_a = JSON.parse(xhr.response)) === null || _a === void 0 ? void 0 : _a.suggestions;
191
- if (payload) {
192
- cache === null || cache === void 0 ? void 0 : cache.set(cacheKey, payload);
193
- onReceiveData(payload);
194
- }
195
- }
196
- };
197
- };
198
-
199
- var HttpCache = /** @class */ (function () {
200
- function HttpCache() {
201
- }
202
- /**
203
- * Сгенерировать уникальный ключ кеша из параметров http-запроса
204
- * @example
205
- * ```ts
206
- * cache.serializeCacheKey({
207
- * url: 'https://example.com',
208
- * body: { key: "value" },
209
- * method: "POST"
210
- * })
211
- * ```
212
- */
213
- HttpCache.prototype.serializeCacheKey = function (payload) {
214
- try {
215
- return JSON.stringify(payload);
216
- }
217
- catch (_e) {
218
- // на случай попытки сериализации объекта с циклическими зависимостями внутри
219
- return payload.url + String(Math.random());
220
- }
221
- };
222
- return HttpCache;
223
- }());
224
-
225
- var __extends$7 = (undefined && undefined.__extends) || (function () {
226
- var extendStatics = function (d, b) {
227
- extendStatics = Object.setPrototypeOf ||
228
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
229
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
230
- return extendStatics(d, b);
231
- };
232
- return function (d, b) {
233
- if (typeof b !== "function" && b !== null)
234
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
235
- extendStatics(d, b);
236
- function __() { this.constructor = d; }
237
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
238
- };
239
- })();
240
- var minute = 60000;
241
- var DefaultHttpCache = /** @class */ (function (_super) {
242
- __extends$7(DefaultHttpCache, _super);
243
- function DefaultHttpCache() {
244
- var _this = _super !== null && _super.apply(this, arguments) || this;
245
- _this._map = new Map();
246
- _this._ttl = 10 * minute;
247
- return _this;
248
- }
249
- Object.defineProperty(DefaultHttpCache, "shared", {
250
- /**
251
- * Синглтон
252
- * @example
253
- * ```ts
254
- * cache.shared.get('key');
255
- * ```
256
- */
257
- get: function () {
258
- if (!DefaultHttpCache.sharedInstance) {
259
- DefaultHttpCache.sharedInstance = new DefaultHttpCache();
260
- }
261
- return DefaultHttpCache.sharedInstance;
262
- },
263
- enumerable: false,
264
- configurable: true
265
- });
266
- Object.defineProperty(DefaultHttpCache.prototype, "ttl", {
267
- /**
268
- * Время жизни кеша в миллисекундах
269
- * @example
270
- * ```ts
271
- * cache.ttl = 60000;
272
- * cache.ttl = Infinity;
273
- * cache.tll = 0;
274
- *
275
- * // негативные значения игнорируются
276
- * cache.ttl = -1;
277
- * cache.ttl = Number.NEGATIVE_INFINITY;
278
- * ```
279
- */
280
- get: function () {
281
- return this._ttl;
282
- },
283
- set: function (ttl) {
284
- if (typeof ttl === 'number' && ttl >= 0) {
285
- this._ttl = ttl;
286
- }
287
- },
288
- enumerable: false,
289
- configurable: true
290
- });
291
- Object.defineProperty(DefaultHttpCache.prototype, "size", {
292
- /**
293
- * Количество элементов в кеше
294
- */
295
- get: function () {
296
- return this._map.size;
297
- },
298
- enumerable: false,
299
- configurable: true
300
- });
301
- DefaultHttpCache.prototype.get = function (key) {
302
- var data = this._map.get(key);
303
- if (!data)
304
- return null;
305
- if (data.expires <= Date.now()) {
306
- this.delete(key);
307
- return null;
308
- }
309
- return data.data;
310
- };
311
- DefaultHttpCache.prototype.set = function (key, data) {
312
- this._map.set(key, {
313
- data: data,
314
- expires: Date.now() + this.ttl,
315
- });
316
- return this;
317
- };
318
- DefaultHttpCache.prototype.delete = function (key) {
319
- this._map.delete(key);
320
- return this;
321
- };
322
- DefaultHttpCache.prototype.reset = function () {
323
- this._map.clear();
324
- return this;
325
- };
326
- return DefaultHttpCache;
327
- }(HttpCache));
328
-
329
- var __extends$6 = (undefined && undefined.__extends) || (function () {
330
- var extendStatics = function (d, b) {
331
- extendStatics = Object.setPrototypeOf ||
332
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
333
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
334
- return extendStatics(d, b);
335
- };
336
- return function (d, b) {
337
- if (typeof b !== "function" && b !== null)
338
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
339
- extendStatics(d, b);
340
- function __() { this.constructor = d; }
341
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
342
- };
343
- })();
344
- var __assign = (undefined && undefined.__assign) || function () {
345
- __assign = Object.assign || function(t) {
346
- for (var s, i = 1, n = arguments.length; i < n; i++) {
347
- s = arguments[i];
348
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
349
- t[p] = s[p];
350
- }
351
- return t;
352
- };
353
- return __assign.apply(this, arguments);
354
- };
355
- var BaseSuggestions = /** @class */ (function (_super) {
356
- __extends$6(BaseSuggestions, _super);
357
- function BaseSuggestions(props) {
358
- var _this = _super.call(this, props) || this;
359
- /**
360
- * URL для загрузки подсказок, переопределяется в конкретном компоненте
361
- */
362
- _this.loadSuggestionsUrl = '';
363
- _this.dontPerformBlurHandler = false;
364
- _this.getSuggestionsUrl = function () {
365
- var url = _this.props.url;
366
- return url || _this.loadSuggestionsUrl;
367
- };
368
- _this.setupDebounce = function (delay) {
369
- if (typeof delay === 'number' && delay > 0) {
370
- _this.fetchSuggestions = debounce_1.debounce(_this.performFetchSuggestions, delay);
371
- }
372
- else {
373
- _this.fetchSuggestions = _this.performFetchSuggestions;
374
- }
375
- };
376
- _this.fetchSuggestions = function () {
377
- //
378
- };
379
- _this.handleInputFocus = function (event) {
380
- _this.setState({ isFocused: true });
381
- var suggestions = _this.state.suggestions;
382
- if (suggestions.length === 0) {
383
- _this.fetchSuggestions();
384
- }
385
- var inputProps = _this.props.inputProps;
386
- if (inputProps && inputProps.onFocus) {
387
- inputProps.onFocus(event);
388
- }
389
- };
390
- _this.handleInputBlur = function (event) {
391
- var _a = _this.state, suggestions = _a.suggestions, suggestionIndex = _a.suggestionIndex;
392
- var _b = _this.props, selectOnBlur = _b.selectOnBlur, inputProps = _b.inputProps;
393
- _this.setState({ isFocused: false });
394
- if (suggestions.length === 0) {
395
- _this.fetchSuggestions();
396
- }
397
- if (selectOnBlur && !_this.dontPerformBlurHandler) {
398
- if (suggestions.length > 0) {
399
- var suggestionIndexToSelect = suggestionIndex >= 0 && suggestionIndex < suggestions.length ? suggestionIndex : 0;
400
- _this.selectSuggestion(suggestionIndexToSelect, true);
401
- }
402
- }
403
- _this.dontPerformBlurHandler = false;
404
- if (inputProps && inputProps.onBlur) {
405
- inputProps.onBlur(event);
406
- }
407
- };
408
- _this.handleInputChange = function (event) {
409
- var value = event.target.value;
410
- var inputProps = _this.props.inputProps;
411
- if (_this.didMount) {
412
- _this.setState({ query: value, inputQuery: value, displaySuggestions: !!value }, function () {
413
- _this.fetchSuggestions();
414
- });
415
- }
416
- if (inputProps && inputProps.onChange) {
417
- inputProps.onChange(event);
418
- }
419
- };
420
- _this.handleInputKeyDown = function (event) {
421
- _this.handleKeyboard(event);
422
- var inputProps = _this.props.inputProps;
423
- if (inputProps && inputProps.onKeyDown) {
424
- inputProps.onKeyDown(event);
425
- }
426
- };
427
- _this.handleInputKeyPress = function (event) {
428
- _this.handleKeyboard(event);
429
- var inputProps = _this.props.inputProps;
430
- if (inputProps && inputProps.onKeyPress) {
431
- inputProps.onKeyPress(event);
432
- }
433
- };
434
- _this.handleKeyboard = function (event) {
435
- var _a = _this.state, suggestions = _a.suggestions, suggestionIndex = _a.suggestionIndex, inputQuery = _a.inputQuery;
436
- if (event.which === 40) {
437
- // Arrow down
438
- event.preventDefault();
439
- if (suggestionIndex < suggestions.length - 1) {
440
- var newSuggestionIndex = suggestionIndex + 1;
441
- var newInputQuery = suggestions[newSuggestionIndex].value;
442
- if (_this.didMount) {
443
- _this.setState({ suggestionIndex: newSuggestionIndex, query: newInputQuery });
444
- }
445
- }
446
- }
447
- else if (event.which === 38) {
448
- // Arrow up
449
- event.preventDefault();
450
- if (suggestionIndex >= 0) {
451
- var newSuggestionIndex = suggestionIndex - 1;
452
- var newInputQuery = newSuggestionIndex === -1 ? inputQuery : suggestions[newSuggestionIndex].value;
453
- if (_this.didMount) {
454
- _this.setState({ suggestionIndex: newSuggestionIndex, query: newInputQuery });
455
- }
456
- }
457
- }
458
- else if (event.which === 13) {
459
- // Enter
460
- event.preventDefault();
461
- if (suggestionIndex >= 0) {
462
- _this.selectSuggestion(suggestionIndex);
463
- }
464
- }
465
- };
466
- _this.performFetchSuggestions = function () {
467
- var _a = _this.props, minChars = _a.minChars, token = _a.token;
468
- var query = _this.state.query;
469
- // Проверяем на минимальное количество символов для отправки
470
- if (typeof minChars === 'number' && minChars > 0 && query.length < minChars) {
471
- _this.setState({ suggestions: [], suggestionIndex: -1 });
472
- return;
473
- }
474
- makeRequest('POST', _this.getSuggestionsUrl(), {
475
- headers: {
476
- Accept: 'application/json',
477
- Authorization: "Token ".concat(token),
478
- 'Content-Type': 'application/json',
479
- },
480
- json: _this.getLoadSuggestionsData(),
481
- }, _this.httpCache, function (suggestions) {
482
- if (_this.didMount) {
483
- _this.setState({ suggestions: suggestions, suggestionIndex: -1 });
484
- }
485
- });
486
- };
487
- _this.onSuggestionClick = function (index, event) {
488
- event.stopPropagation();
489
- _this.selectSuggestion(index);
490
- };
491
- _this.selectSuggestion = function (index, isSilent) {
492
- if (isSilent === void 0) { isSilent = false; }
493
- var suggestions = _this.state.suggestions;
494
- var _a = _this.props, selectOnBlur = _a.selectOnBlur, onChange = _a.onChange;
495
- if (suggestions.length >= index - 1) {
496
- var suggestion = suggestions[index];
497
- if (selectOnBlur) {
498
- _this.dontPerformBlurHandler = true;
499
- }
500
- _this.setState({ query: suggestion.value, inputQuery: suggestion.value, displaySuggestions: false }, function () {
501
- if (!isSilent) {
502
- _this.fetchSuggestions();
503
- setTimeout(function () { return _this.setCursorToEnd(_this.textInput); });
504
- }
505
- });
506
- if (onChange) {
507
- onChange(suggestion);
508
- }
509
- }
510
- };
511
- _this.setCursorToEnd = function (element) {
512
- if (element) {
513
- var valueLength = element.value.length;
514
- if (element.selectionStart || element.selectionStart === 0) {
515
- // eslint-disable-next-line no-param-reassign
516
- element.selectionStart = valueLength;
517
- // eslint-disable-next-line no-param-reassign
518
- element.selectionEnd = valueLength;
519
- element.focus();
520
- }
521
- }
522
- };
523
- _this.getHighlightWords = function () {
524
- var inputQuery = _this.state.inputQuery;
525
- var wordsToPass = ['г', 'респ', 'ул', 'р-н', 'село', 'деревня', 'поселок', 'пр-д', 'пл', 'к', 'кв', 'обл', 'д'];
526
- var words = inputQuery.replace(',', '').split(' ');
527
- words = words.filter(function (word) {
528
- return wordsToPass.indexOf(word) < 0;
529
- });
530
- return words;
531
- };
532
- /**
533
- * Функция, которая вернет уникальный key для списка React
534
- * @param suggestion
535
- */
536
- _this.getSuggestionKey = function (suggestion) { return suggestion.value; };
537
- _this.focus = function () {
538
- if (_this.textInput) {
539
- _this.textInput.focus();
540
- }
541
- };
542
- _this.setInputValue = function (value) {
543
- _this.setState({ query: value || '', inputQuery: value || '' });
544
- };
545
- _this.didMount = false;
546
- var _a = _this.props, defaultQuery = _a.defaultQuery, value = _a.value, delay = _a.delay;
547
- var valueQuery = value ? value.value : undefined;
548
- _this.setupDebounce(delay);
549
- _this.state = {
550
- query: defaultQuery || valueQuery || '',
551
- inputQuery: defaultQuery || valueQuery || '',
552
- isFocused: false,
553
- displaySuggestions: true,
554
- suggestions: [],
555
- suggestionIndex: -1,
556
- };
557
- return _this;
558
- }
559
- BaseSuggestions.prototype.componentDidMount = function () {
560
- this.didMount = true;
561
- };
562
- BaseSuggestions.prototype.componentDidUpdate = function (prevProps) {
563
- var _a = this.props, value = _a.value, delay = _a.delay;
564
- var _b = this.state, query = _b.query, inputQuery = _b.inputQuery;
565
- if (!shallowEqual(prevProps.value, value)) {
566
- var newQuery = value ? value.value : '';
567
- if (query !== newQuery || inputQuery !== newQuery) {
568
- this.setState({ query: newQuery, inputQuery: newQuery });
569
- }
570
- }
571
- if (delay !== prevProps.delay) {
572
- this.setupDebounce(delay);
573
- }
574
- };
575
- BaseSuggestions.prototype.componentWillUnmount = function () {
576
- this.didMount = false;
577
- };
578
- Object.defineProperty(BaseSuggestions.prototype, "uid", {
579
- get: function () {
580
- if (this.props.uid) {
581
- return this.props.uid;
582
- }
583
- if (!this._uid) {
584
- this._uid = nanoid();
585
- }
586
- return this._uid;
587
- },
588
- enumerable: false,
589
- configurable: true
590
- });
591
- Object.defineProperty(BaseSuggestions.prototype, "httpCache", {
592
- get: function () {
593
- var _a = this.props, cacheProp = _a.httpCache, ttl = _a.httpCacheTtl;
594
- if (!cacheProp) {
595
- return null;
596
- }
597
- if (cacheProp instanceof HttpCache) {
598
- return cacheProp;
599
- }
600
- var cache = DefaultHttpCache.shared;
601
- if (typeof ttl === 'number') {
602
- cache.ttl = ttl;
603
- }
604
- return cache;
605
- },
606
- enumerable: false,
607
- configurable: true
608
- });
609
- BaseSuggestions.prototype.render = function () {
610
- var _this = this;
611
- var _a = this.props, inputProps = _a.inputProps, hintText = _a.hintText, containerClassName = _a.containerClassName, hintClassName = _a.hintClassName, suggestionsClassName = _a.suggestionsClassName, suggestionClassName = _a.suggestionClassName, currentSuggestionClassName = _a.currentSuggestionClassName, customInput = _a.customInput, children = _a.children;
612
- var _b = this.state, query = _b.query, isFocused = _b.isFocused, suggestions = _b.suggestions, suggestionIndex = _b.suggestionIndex, displaySuggestions = _b.displaySuggestions;
613
- var Component = typeof customInput !== 'undefined' ? customInput : 'input';
614
- var optionsExpanded = isFocused && suggestions && displaySuggestions && suggestions.length > 0;
615
- return (React__default.createElement("div", { role: "combobox", "aria-expanded": optionsExpanded ? 'true' : 'false', "aria-owns": this.uid, "aria-controls": this.uid, "aria-haspopup": "listbox", className: containerClassName || 'react-dadata react-dadata__container' },
616
- React__default.createElement("div", null,
617
- React__default.createElement(Component, __assign({ autoComplete: "off", className: "react-dadata__input" }, inputProps, { value: query, ref: function (input) {
618
- _this.textInput = input;
619
- }, onChange: this.handleInputChange, onKeyPress: this.handleInputKeyPress, onKeyDown: this.handleInputKeyDown, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur }))),
620
- optionsExpanded && (React__default.createElement("ul", { id: this.uid, "aria-expanded": true, role: "listbox", className: suggestionsClassName || 'react-dadata__suggestions' },
621
- typeof hintText !== 'undefined' && (React__default.createElement("div", { className: hintClassName || 'react-dadata__suggestion-note' }, hintText)),
622
- suggestions.map(function (suggestion, index) {
623
- var suggestionClass = suggestionClassName || 'react-dadata__suggestion';
624
- if (index === suggestionIndex) {
625
- suggestionClass += " ".concat(currentSuggestionClassName || 'react-dadata__suggestion--current');
626
- }
627
- return (React__default.createElement("button", { role: "option", "aria-selected": index === suggestionIndex ? 'true' : 'false', key: _this.getSuggestionKey(suggestion), onMouseDown: _this.onSuggestionClick.bind(_this, index), className: suggestionClass }, _this.renderOption(suggestion)));
628
- }))),
629
- children));
630
- };
631
- return BaseSuggestions;
632
- }(React__default.PureComponent));
633
-
634
- let IDX = 36;
635
- let HEX = "";
636
- while (IDX--) {
637
- HEX += IDX.toString(36);
638
- }
639
- function uid(len = 11) {
640
- let str = "";
641
- let num = len;
642
- while (num--) {
643
- str += HEX[Math.random() * 36 | 0];
644
- }
645
- return str;
646
- }
647
-
648
- const escapeRegexp = (term) => term.replace(/[|\\{}()[\]^$+*?.-]/g, (char) => `\\${char}`);
649
- const termsToRegExpString = (terms) => terms.replace(/\s{2,}/g, " ").split(" ").join("|");
650
- const regexpQuery = ({
651
- terms,
652
- matchExactly = false
653
- }) => {
654
- if (typeof terms !== "string") {
655
- throw new TypeError("Expected a string");
656
- }
657
- const escapedTerms = escapeRegexp(terms.trim());
658
- return `(${matchExactly ? escapedTerms : termsToRegExpString(escapedTerms)})`;
659
- };
660
- const buildRegexp = ({
661
- terms,
662
- matchExactly = false
663
- }) => {
664
- try {
665
- const fromString = /^([/~@;%#'])(.*?)\1([gimsuy]*)$/.exec(terms);
666
- if (fromString) {
667
- return new RegExp(fromString[2], fromString[3]);
668
- }
669
- return new RegExp(regexpQuery({ terms, matchExactly }), "ig");
670
- } catch (e) {
671
- throw new TypeError("Expected terms to be either a string or a RegExp!");
672
- }
673
- };
674
-
675
- const hasProp = (prop) => (obj) => obj !== null && typeof obj === "object" && prop in obj;
676
- const hasMatch = hasProp("match");
677
- const chunkExists = (chunk) => typeof chunk !== "undefined";
678
- function clip({
679
- curr,
680
- next,
681
- prev,
682
- clipBy = 3
683
- }) {
684
- const words = curr.text.split(" ");
685
- const len = words.length;
686
- if (curr.match || clipBy >= len) {
687
- return curr.text;
688
- }
689
- const ellipsis = "...";
690
- if (chunkExists(next) && chunkExists(prev) && hasMatch(prev) && hasMatch(next)) {
691
- if (len > clipBy * 2) {
692
- return [
693
- ...words.slice(0, clipBy),
694
- ellipsis,
695
- ...words.slice(-clipBy)
696
- ].join(" ");
697
- }
698
- return curr.text;
699
- }
700
- if (chunkExists(next) && hasMatch(next)) {
701
- return [ellipsis, ...words.slice(-clipBy)].join(" ");
702
- }
703
- if (chunkExists(prev) && hasMatch(prev)) {
704
- return [...words.slice(0, clipBy), ellipsis].join(" ");
705
- }
706
- return curr.text;
707
- }
708
-
709
- var __defProp = Object.defineProperty;
710
- var __defProps = Object.defineProperties;
711
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
712
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
713
- var __hasOwnProp = Object.prototype.hasOwnProperty;
714
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
715
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
716
- var __spreadValues = (a, b) => {
717
- for (var prop in b || (b = {}))
718
- if (__hasOwnProp.call(b, prop))
719
- __defNormalProp(a, prop, b[prop]);
720
- if (__getOwnPropSymbols)
721
- for (var prop of __getOwnPropSymbols(b)) {
722
- if (__propIsEnum.call(b, prop))
723
- __defNormalProp(a, prop, b[prop]);
724
- }
725
- return a;
726
- };
727
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
728
- const hasLength = (str) => str.length > 0;
729
- const highlightWords = ({
730
- text,
731
- query,
732
- clipBy,
733
- matchExactly = false
734
- }) => {
735
- const safeQuery = typeof query === "string" ? query.trim() : query;
736
- if (safeQuery === "") {
737
- return [
738
- {
739
- key: uid(),
740
- text,
741
- match: false
742
- }
743
- ];
744
- }
745
- const searchRegexp = buildRegexp({ terms: query, matchExactly });
746
- return text.split(searchRegexp).filter(hasLength).map((str) => ({
747
- // Compose the object for a match
748
- key: uid(),
749
- text: str,
750
- match: matchExactly ? str.toLowerCase() === safeQuery.toLowerCase() : searchRegexp.test(str)
751
- })).map((chunk, index, chunks) => __spreadValues(__spreadValues({}, chunk), typeof clipBy === "number" && {
752
- // We only overwrite the text if there is a clip
753
- text: clip(__spreadProps(__spreadValues(__spreadValues({
754
- curr: chunk
755
- }, index < chunks.length - 1 && { next: chunks[index + 1] }), index > 0 && { prev: chunks[index - 1] }), {
756
- // If this wasn't the first chunk, set the previous chunk
757
- clipBy
758
- }))
759
- }));
760
- };
761
-
762
- var __extends$5 = (undefined && undefined.__extends) || (function () {
763
- var extendStatics = function (d, b) {
764
- extendStatics = Object.setPrototypeOf ||
765
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
766
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
767
- return extendStatics(d, b);
768
- };
769
- return function (d, b) {
770
- if (typeof b !== "function" && b !== null)
771
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
772
- extendStatics(d, b);
773
- function __() { this.constructor = d; }
774
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
775
- };
776
- })();
777
- var HighlightWords = /** @class */ (function (_super) {
778
- __extends$5(HighlightWords, _super);
779
- function HighlightWords() {
780
- return _super !== null && _super.apply(this, arguments) || this;
781
- }
782
- HighlightWords.prototype.render = function () {
783
- var _a = this.props, text = _a.text, words = _a.words, highlightClassName = _a.highlightClassName, _b = _a.tagName, tagName = _b === void 0 ? 'span' : _b;
784
- var query = typeof words === 'string' ? words : words.join(' ');
785
- var chunks = highlightWords({ text: text, query: query });
786
- return (React__default.createElement("span", { "aria-label": text }, chunks.map(function (chunk) {
787
- if (!chunk.match) {
788
- return React__default.createElement("span", { key: chunk.key, "aria-hidden": true }, chunk.text);
789
- }
790
- var Component = tagName;
791
- return (React__default.createElement(Component, { key: chunk.key, className: highlightClassName, "aria-hidden": true }, chunk.text));
792
- })));
793
- };
794
- return HighlightWords;
795
- }(PureComponent));
796
-
797
- var __extends$4 = (undefined && undefined.__extends) || (function () {
798
- var extendStatics = function (d, b) {
799
- extendStatics = Object.setPrototypeOf ||
800
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
801
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
802
- return extendStatics(d, b);
803
- };
804
- return function (d, b) {
805
- if (typeof b !== "function" && b !== null)
806
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
807
- extendStatics(d, b);
808
- function __() { this.constructor = d; }
809
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
810
- };
811
- })();
812
- /** @class */ ((function (_super) {
813
- __extends$4(AddressSuggestions, _super);
814
- function AddressSuggestions() {
815
- var _this = _super !== null && _super.apply(this, arguments) || this;
816
- _this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/address';
817
- _this.getLoadSuggestionsData = function () {
818
- var _a = _this.props, count = _a.count, filterFromBound = _a.filterFromBound, filterToBound = _a.filterToBound, filterLocations = _a.filterLocations, filterLocationsBoost = _a.filterLocationsBoost, filterLanguage = _a.filterLanguage, filterRestrictValue = _a.filterRestrictValue;
819
- var query = _this.state.query;
820
- // TODO: Type this params
821
- var requestPayload = {
822
- query: query,
823
- count: count || 10,
824
- };
825
- // Ограничение поиска по типу
826
- if (filterFromBound && filterToBound) {
827
- requestPayload.from_bound = { value: filterFromBound };
828
- requestPayload.to_bound = { value: filterToBound };
829
- }
830
- // Язык подсказок
831
- if (filterLanguage) {
832
- requestPayload.language = filterLanguage;
833
- }
834
- // Сужение области поиска
835
- if (filterLocations) {
836
- requestPayload.locations = filterLocations;
837
- }
838
- // Приоритет города при ранжировании
839
- if (filterLocationsBoost) {
840
- requestPayload.locations_boost = filterLocationsBoost;
841
- }
842
- // @see https://confluence.hflabs.ru/pages/viewpage.action?pageId=1023737934
843
- if (filterRestrictValue) {
844
- requestPayload.restrict_value = true;
845
- }
846
- return requestPayload;
847
- };
848
- _this.renderOption = function (suggestion) {
849
- var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
850
- var query = _this.state.query;
851
- return renderOption ? (renderOption(suggestion, query)) : (React__default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), tagName: "mark", text: suggestion.value }));
852
- };
853
- return _this;
854
- }
855
- return AddressSuggestions;
856
- })(BaseSuggestions));
857
-
858
- var __extends$3 = (undefined && undefined.__extends) || (function () {
859
- var extendStatics = function (d, b) {
860
- extendStatics = Object.setPrototypeOf ||
861
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
862
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
863
- return extendStatics(d, b);
864
- };
865
- return function (d, b) {
866
- if (typeof b !== "function" && b !== null)
867
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
868
- extendStatics(d, b);
869
- function __() { this.constructor = d; }
870
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
871
- };
872
- })();
873
- var PartySuggestions = /** @class */ (function (_super) {
874
- __extends$3(PartySuggestions, _super);
875
- function PartySuggestions() {
876
- var _this = _super !== null && _super.apply(this, arguments) || this;
877
- _this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/party';
878
- _this.getLoadSuggestionsData = function () {
879
- var _a = _this.props, count = _a.count, filterStatus = _a.filterStatus, filterType = _a.filterType, filterOkved = _a.filterOkved, filterLocations = _a.filterLocations, filterLocationsBoost = _a.filterLocationsBoost;
880
- var query = _this.state.query;
881
- var requestPayload = {
882
- query: query,
883
- count: count || 10,
884
- };
885
- // Ограничение по статусу организации
886
- if (filterStatus) {
887
- requestPayload.status = filterStatus;
888
- }
889
- // Ограничение по ОКВЭД
890
- // @see https://confluence.hflabs.ru/pages/viewpage.action?pageId=1093075333
891
- if (filterOkved) {
892
- requestPayload.okved = filterOkved;
893
- }
894
- // Ограничение по типу организации
895
- if (filterType) {
896
- requestPayload.type = filterType;
897
- }
898
- // Сужение области поиска
899
- if (filterLocations) {
900
- requestPayload.locations = filterLocations;
901
- }
902
- // Приоритет города при ранжировании
903
- if (filterLocationsBoost) {
904
- requestPayload.locations_boost = filterLocationsBoost;
905
- }
906
- return requestPayload;
907
- };
908
- _this.getSuggestionKey = function (suggestion) { return suggestion.data.hid; };
909
- _this.renderOption = function (suggestion) {
910
- var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
911
- var query = _this.state.query;
912
- return renderOption ? (renderOption(suggestion, query)) : (React__default.createElement("div", null,
913
- React__default.createElement("div", { className: suggestion.data.state.status === 'LIQUIDATED' ? 'react-dadata__suggestion--line-through' : undefined },
914
- React__default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.value })),
915
- React__default.createElement("div", { className: "react-dadata__suggestion-subtitle" },
916
- suggestion.data.inn && React__default.createElement("div", { className: "react-dadata__suggestion-subtitle-item" }, suggestion.data.inn),
917
- suggestion.data.address && suggestion.data.address.value && (React__default.createElement("div", { className: "react-dadata__suggestion-subtitle-item" },
918
- React__default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.data.address.value }))))));
919
- };
920
- return _this;
921
- }
922
- return PartySuggestions;
923
- }(BaseSuggestions));
924
-
925
- var __extends$2 = (undefined && undefined.__extends) || (function () {
926
- var extendStatics = function (d, b) {
927
- extendStatics = Object.setPrototypeOf ||
928
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
929
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
930
- return extendStatics(d, b);
931
- };
932
- return function (d, b) {
933
- if (typeof b !== "function" && b !== null)
934
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
935
- extendStatics(d, b);
936
- function __() { this.constructor = d; }
937
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
938
- };
939
- })();
940
- /** @class */ ((function (_super) {
941
- __extends$2(BankSuggestions, _super);
942
- function BankSuggestions() {
943
- var _this = _super !== null && _super.apply(this, arguments) || this;
944
- _this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/bank';
945
- _this.getLoadSuggestionsData = function () {
946
- var _a = _this.props, count = _a.count, filterStatus = _a.filterStatus, filterType = _a.filterType, filterLocations = _a.filterLocations, filterLocationsBoost = _a.filterLocationsBoost;
947
- var query = _this.state.query;
948
- var requestPayload = {
949
- query: query,
950
- count: count || 10,
951
- };
952
- // Ограничение по статусу организации
953
- if (filterStatus) {
954
- requestPayload.status = filterStatus;
955
- }
956
- // Ограничение по типу организации
957
- if (filterType) {
958
- requestPayload.type = filterType;
959
- }
960
- // Сужение области поиска
961
- if (filterLocations) {
962
- requestPayload.locations = filterLocations;
963
- }
964
- // Приоритет города при ранжировании
965
- if (filterLocationsBoost) {
966
- requestPayload.locations_boost = filterLocationsBoost;
967
- }
968
- return requestPayload;
969
- };
970
- _this.getSuggestionKey = function (suggestion) { return "".concat(suggestion.data.bic); };
971
- _this.renderOption = function (suggestion) {
972
- var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
973
- var query = _this.state.query;
974
- return renderOption ? (renderOption(suggestion, query)) : (React__default.createElement("div", null,
975
- React__default.createElement("div", { className: suggestion.data.state.status === 'LIQUIDATED' ? 'react-dadata__suggestion--line-through' : undefined },
976
- React__default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.value })),
977
- React__default.createElement("div", { className: "react-dadata__suggestion-subtitle" },
978
- suggestion.data.bic && React__default.createElement("div", { className: "react-dadata__suggestion-subtitle-item" }, suggestion.data.bic),
979
- suggestion.data.address && suggestion.data.address.value && (React__default.createElement("div", { className: "react-dadata__suggestion-subtitle-item" },
980
- React__default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.data.address.value }))))));
981
- };
982
- return _this;
983
- }
984
- return BankSuggestions;
985
- })(BaseSuggestions));
986
-
987
- var __extends$1 = (undefined && undefined.__extends) || (function () {
988
- var extendStatics = function (d, b) {
989
- extendStatics = Object.setPrototypeOf ||
990
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
991
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
992
- return extendStatics(d, b);
993
- };
994
- return function (d, b) {
995
- if (typeof b !== "function" && b !== null)
996
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
997
- extendStatics(d, b);
998
- function __() { this.constructor = d; }
999
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1000
- };
1001
- })();
1002
- /** @class */ ((function (_super) {
1003
- __extends$1(FioSuggestions, _super);
1004
- function FioSuggestions() {
1005
- var _this = _super !== null && _super.apply(this, arguments) || this;
1006
- _this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/fio';
1007
- _this.getLoadSuggestionsData = function () {
1008
- var _a = _this.props, count = _a.count, filterGender = _a.filterGender, filterParts = _a.filterParts;
1009
- var query = _this.state.query;
1010
- var requestPayload = {
1011
- query: query,
1012
- count: count || 10,
1013
- };
1014
- // Ограничение по полу
1015
- if (filterGender) {
1016
- requestPayload.gender = filterGender;
1017
- }
1018
- // Ограничение по части ФИО
1019
- if (filterParts) {
1020
- requestPayload.parts = filterParts;
1021
- }
1022
- return requestPayload;
1023
- };
1024
- _this.getSuggestionKey = function (suggestion) {
1025
- return "name:".concat(suggestion.data.name || '', "surname:").concat(suggestion.data.surname || '', "patronymic:").concat(suggestion.data.patronymic || '');
1026
- };
1027
- _this.renderOption = function (suggestion) {
1028
- var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
1029
- var query = _this.state.query;
1030
- return renderOption ? (renderOption(suggestion, query)) : (React__default.createElement("div", null,
1031
- React__default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.value })));
1032
- };
1033
- return _this;
1034
- }
1035
- return FioSuggestions;
1036
- })(BaseSuggestions));
1037
-
1038
- var __extends = (undefined && undefined.__extends) || (function () {
1039
- var extendStatics = function (d, b) {
1040
- extendStatics = Object.setPrototypeOf ||
1041
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1042
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1043
- return extendStatics(d, b);
1044
- };
1045
- return function (d, b) {
1046
- if (typeof b !== "function" && b !== null)
1047
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1048
- extendStatics(d, b);
1049
- function __() { this.constructor = d; }
1050
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1051
- };
1052
- })();
1053
- /** @class */ ((function (_super) {
1054
- __extends(EmailSuggestions, _super);
1055
- function EmailSuggestions() {
1056
- var _this = _super !== null && _super.apply(this, arguments) || this;
1057
- _this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/email';
1058
- _this.getLoadSuggestionsData = function () {
1059
- var count = _this.props.count;
1060
- var query = _this.state.query;
1061
- return {
1062
- query: query,
1063
- count: count || 10,
1064
- };
1065
- };
1066
- _this.getSuggestionKey = function (suggestion) { return suggestion.value; };
1067
- _this.renderOption = function (suggestion) {
1068
- var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
1069
- var query = _this.state.query;
1070
- return renderOption ? (renderOption(suggestion, query)) : (React__default.createElement("div", null,
1071
- React__default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.value })));
1072
- };
1073
- return _this;
1074
- }
1075
- return EmailSuggestions;
1076
- })(BaseSuggestions));
1077
-
1078
- function DadataHintField(props) {
1079
- var delay = props.delay, inputProps = props.inputProps, setValue = props.setValue, input = props.input, meta = props.meta, token = props.token;
1080
- var dadataInputProps = useMemo(function () {
1081
- return __assign$1(__assign$1({}, inputProps), { className: clsx('react-dadata__input', meta.active && 'input_state_focus', meta.error && meta.touched && "input_state_".concat(meta.error.key || 'error')),
1082
- // https://www.npmjs.com/package/react-dadata
1083
- // "Свойство value игнорируется."
1084
- // value: input.value,
1085
- inputValue: input.value, onFocus: input.onFocus, onBlur: input.onBlur, onChange: input.onChange });
1086
- }, [
1087
- inputProps,
1088
- meta.active,
1089
- meta.error,
1090
- meta.touched,
1091
- input.value,
1092
- input.onFocus,
1093
- input.onBlur,
1094
- input.onChange,
1095
- ]);
1096
- return (jsxRuntimeExports.jsx(PartySuggestions, { customInput: DadataСustomInput, delay: delay || 750, inputProps: dadataInputProps, minChars: 3, token: token, onChange: setValue }));
1097
- }
1098
- function DadataСustomInput(props) {
1099
- var inputValue = props.inputValue, otherProps = __rest(props, ["inputValue"]);
1100
- return jsxRuntimeExports.jsx(Input, __assign$1({}, otherProps, { value: inputValue }));
1101
- }
1102
-
1103
- export { DadataHintField as D };