@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,34 +1,1174 @@
1
1
  'use strict';
2
2
 
3
- var DatePicker = require('../DatePicker-4tMTL9Nx.js');
4
- require('../_tslib-CKiUdo7p.js');
5
- require('../jsx-runtime-BBxmckJR.js');
6
- require('react');
7
- require('clsx');
8
- require('react-dom');
9
- require('../floating-ui.dom-ma2MDAMT.js');
10
- require('../hooks/useDeviceTargetClass.js');
3
+ var tslib_es6 = require('../../tslib.es6-CKiUdo7p.js');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var clsx = require('clsx');
7
+ var DatePicker = require('react-datepicker');
8
+ var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
9
+ var Button = require('../../Button-VkatyBmt.js');
10
+ var Icon = require('../../Icon-Co5Mtpt_.js');
11
+ var Input = require('../../Input-C7gBdx1m.js');
12
+ var Label = require('../../Label-CpSzGRtr.js');
13
+ var Text = require('../../Text-_YhyTsQ1.js');
11
14
  require('lodash/castArray');
12
15
  require('lodash/camelCase');
13
16
  require('../context/UIContext.js');
14
17
  require('prop-types');
15
18
  require('../hooks/useMediaQueries.js');
16
19
  require('react-responsive');
17
- require('../Button-DH5f_2bV.js');
18
20
  require('../hooks/useStyles.js');
19
21
  require('lodash/maxBy');
20
22
  require('lodash/upperFirst');
21
23
  require('../hooks/styleAttributes.js');
22
- require('../Icon-C7ZJyN5o.js');
24
+ require('../../Link-DQxoFKhI.js');
25
+ require('../../Loader-fA11tUEJ.js');
23
26
  require('react-inlinesvg');
24
- require('../Link-DRV1vzHd.js');
25
- require('../Tooltip-DREz-tP6.js');
26
- require('../Text-B0SULA92.js');
27
- require('../Title-Ckp30YSI.js');
28
- require('../Loader-C2D6fJk1.js');
29
- require('../Input-vwyG3XF0.js');
30
- require('../Label-C2uLpNrU.js');
27
+ require('../../Tooltip-DkTKx9n-.js');
28
+ require('../../Title-zwP6c2U2.js');
31
29
 
30
+ function buildFormatLongFn(args) {
31
+ return (options = {}) => {
32
+ // TODO: Remove String()
33
+ const width = options.width ? String(options.width) : args.defaultWidth;
34
+ const format = args.formats[width] || args.formats[args.defaultWidth];
35
+ return format;
36
+ };
37
+ }
32
38
 
39
+ /* eslint-disable no-unused-vars */
33
40
 
34
- exports.DatePickerInput = DatePicker.DatePickerInput;
41
+ /**
42
+ * The localize function argument callback which allows to convert raw value to
43
+ * the actual type.
44
+ *
45
+ * @param value - The value to convert
46
+ *
47
+ * @returns The converted value
48
+ */
49
+
50
+ /**
51
+ * The map of localized values for each width.
52
+ */
53
+
54
+ /**
55
+ * The index type of the locale unit value. It types conversion of units of
56
+ * values that don't start at 0 (i.e. quarters).
57
+ */
58
+
59
+ /**
60
+ * Converts the unit value to the tuple of values.
61
+ */
62
+
63
+ /**
64
+ * The tuple of localized era values. The first element represents BC,
65
+ * the second element represents AD.
66
+ */
67
+
68
+ /**
69
+ * The tuple of localized quarter values. The first element represents Q1.
70
+ */
71
+
72
+ /**
73
+ * The tuple of localized day values. The first element represents Sunday.
74
+ */
75
+
76
+ /**
77
+ * The tuple of localized month values. The first element represents January.
78
+ */
79
+
80
+ function buildLocalizeFn(args) {
81
+ return (value, options) => {
82
+ const context = options?.context ? String(options.context) : "standalone";
83
+
84
+ let valuesArray;
85
+ if (context === "formatting" && args.formattingValues) {
86
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
87
+ const width = options?.width ? String(options.width) : defaultWidth;
88
+
89
+ valuesArray =
90
+ args.formattingValues[width] || args.formattingValues[defaultWidth];
91
+ } else {
92
+ const defaultWidth = args.defaultWidth;
93
+ const width = options?.width ? String(options.width) : args.defaultWidth;
94
+
95
+ valuesArray = args.values[width] || args.values[defaultWidth];
96
+ }
97
+ const index = args.argumentCallback ? args.argumentCallback(value) : value;
98
+
99
+ // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
100
+ return valuesArray[index];
101
+ };
102
+ }
103
+
104
+ function buildMatchFn(args) {
105
+ return (string, options = {}) => {
106
+ const width = options.width;
107
+
108
+ const matchPattern =
109
+ (width && args.matchPatterns[width]) ||
110
+ args.matchPatterns[args.defaultMatchWidth];
111
+ const matchResult = string.match(matchPattern);
112
+
113
+ if (!matchResult) {
114
+ return null;
115
+ }
116
+ const matchedString = matchResult[0];
117
+
118
+ const parsePatterns =
119
+ (width && args.parsePatterns[width]) ||
120
+ args.parsePatterns[args.defaultParseWidth];
121
+
122
+ const key = Array.isArray(parsePatterns)
123
+ ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
124
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
125
+ findKey(parsePatterns, (pattern) => pattern.test(matchedString));
126
+
127
+ let value;
128
+
129
+ value = args.valueCallback ? args.valueCallback(key) : key;
130
+ value = options.valueCallback
131
+ ? // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
132
+ options.valueCallback(value)
133
+ : value;
134
+
135
+ const rest = string.slice(matchedString.length);
136
+
137
+ return { value, rest };
138
+ };
139
+ }
140
+
141
+ function findKey(object, predicate) {
142
+ for (const key in object) {
143
+ if (
144
+ Object.prototype.hasOwnProperty.call(object, key) &&
145
+ predicate(object[key])
146
+ ) {
147
+ return key;
148
+ }
149
+ }
150
+ return undefined;
151
+ }
152
+
153
+ function findIndex(array, predicate) {
154
+ for (let key = 0; key < array.length; key++) {
155
+ if (predicate(array[key])) {
156
+ return key;
157
+ }
158
+ }
159
+ return undefined;
160
+ }
161
+
162
+ function buildMatchPatternFn(args) {
163
+ return (string, options = {}) => {
164
+ const matchResult = string.match(args.matchPattern);
165
+ if (!matchResult) return null;
166
+ const matchedString = matchResult[0];
167
+
168
+ const parseResult = string.match(args.parsePattern);
169
+ if (!parseResult) return null;
170
+ let value = args.valueCallback
171
+ ? args.valueCallback(parseResult[0])
172
+ : parseResult[0];
173
+
174
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
175
+ value = options.valueCallback ? options.valueCallback(value) : value;
176
+
177
+ const rest = string.slice(matchedString.length);
178
+
179
+ return { value, rest };
180
+ };
181
+ }
182
+
183
+ /**
184
+ * @name toDate
185
+ * @category Common Helpers
186
+ * @summary Convert the given argument to an instance of Date.
187
+ *
188
+ * @description
189
+ * Convert the given argument to an instance of Date.
190
+ *
191
+ * If the argument is an instance of Date, the function returns its clone.
192
+ *
193
+ * If the argument is a number, it is treated as a timestamp.
194
+ *
195
+ * If the argument is none of the above, the function returns Invalid Date.
196
+ *
197
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
198
+ *
199
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
200
+ *
201
+ * @param argument - The value to convert
202
+ *
203
+ * @returns The parsed date in the local time zone
204
+ *
205
+ * @example
206
+ * // Clone the date:
207
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
208
+ * //=> Tue Feb 11 2014 11:30:30
209
+ *
210
+ * @example
211
+ * // Convert the timestamp to date:
212
+ * const result = toDate(1392098430000)
213
+ * //=> Tue Feb 11 2014 11:30:30
214
+ */
215
+ function toDate(argument) {
216
+ const argStr = Object.prototype.toString.call(argument);
217
+
218
+ // Clone the date
219
+ if (
220
+ argument instanceof Date ||
221
+ (typeof argument === "object" && argStr === "[object Date]")
222
+ ) {
223
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
224
+ return new argument.constructor(+argument);
225
+ } else if (
226
+ typeof argument === "number" ||
227
+ argStr === "[object Number]" ||
228
+ typeof argument === "string" ||
229
+ argStr === "[object String]"
230
+ ) {
231
+ // TODO: Can we get rid of as?
232
+ return new Date(argument);
233
+ } else {
234
+ // TODO: Can we get rid of as?
235
+ return new Date(NaN);
236
+ }
237
+ }
238
+
239
+ let defaultOptions = {};
240
+
241
+ function getDefaultOptions() {
242
+ return defaultOptions;
243
+ }
244
+
245
+ /**
246
+ * The {@link startOfWeek} function options.
247
+ */
248
+
249
+ /**
250
+ * @name startOfWeek
251
+ * @category Week Helpers
252
+ * @summary Return the start of a week for the given date.
253
+ *
254
+ * @description
255
+ * Return the start of a week for the given date.
256
+ * The result will be in the local timezone.
257
+ *
258
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
259
+ *
260
+ * @param date - The original date
261
+ * @param options - An object with options
262
+ *
263
+ * @returns The start of a week
264
+ *
265
+ * @example
266
+ * // The start of a week for 2 September 2014 11:55:00:
267
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
268
+ * //=> Sun Aug 31 2014 00:00:00
269
+ *
270
+ * @example
271
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
272
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
273
+ * //=> Mon Sep 01 2014 00:00:00
274
+ */
275
+ function startOfWeek(date, options) {
276
+ const defaultOptions = getDefaultOptions();
277
+ const weekStartsOn =
278
+ options?.weekStartsOn ??
279
+ options?.locale?.options?.weekStartsOn ??
280
+ defaultOptions.weekStartsOn ??
281
+ defaultOptions.locale?.options?.weekStartsOn ??
282
+ 0;
283
+
284
+ const _date = toDate(date);
285
+ const day = _date.getDay();
286
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
287
+
288
+ _date.setDate(_date.getDate() - diff);
289
+ _date.setHours(0, 0, 0, 0);
290
+ return _date;
291
+ }
292
+
293
+ /**
294
+ * The {@link isSameWeek} function options.
295
+ */
296
+
297
+ /**
298
+ * @name isSameWeek
299
+ * @category Week Helpers
300
+ * @summary Are the given dates in the same week (and month and year)?
301
+ *
302
+ * @description
303
+ * Are the given dates in the same week (and month and year)?
304
+ *
305
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
306
+ *
307
+ * @param dateLeft - The first date to check
308
+ * @param dateRight - The second date to check
309
+ * @param options - An object with options
310
+ *
311
+ * @returns The dates are in the same week (and month and year)
312
+ *
313
+ * @example
314
+ * // Are 31 August 2014 and 4 September 2014 in the same week?
315
+ * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))
316
+ * //=> true
317
+ *
318
+ * @example
319
+ * // If week starts with Monday,
320
+ * // are 31 August 2014 and 4 September 2014 in the same week?
321
+ * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {
322
+ * weekStartsOn: 1
323
+ * })
324
+ * //=> false
325
+ *
326
+ * @example
327
+ * // Are 1 January 2014 and 1 January 2015 in the same week?
328
+ * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))
329
+ * //=> false
330
+ */
331
+ function isSameWeek(dateLeft, dateRight, options) {
332
+ const dateLeftStartOfWeek = startOfWeek(dateLeft, options);
333
+ const dateRightStartOfWeek = startOfWeek(dateRight, options);
334
+
335
+ return +dateLeftStartOfWeek === +dateRightStartOfWeek;
336
+ }
337
+
338
+ function declension(scheme, count) {
339
+ // scheme for count=1 exists
340
+ if (scheme.one !== undefined && count === 1) {
341
+ return scheme.one;
342
+ }
343
+
344
+ const rem10 = count % 10;
345
+ const rem100 = count % 100;
346
+
347
+ // 1, 21, 31, ...
348
+ if (rem10 === 1 && rem100 !== 11) {
349
+ return scheme.singularNominative.replace("{{count}}", String(count));
350
+
351
+ // 2, 3, 4, 22, 23, 24, 32 ...
352
+ } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
353
+ return scheme.singularGenitive.replace("{{count}}", String(count));
354
+
355
+ // 5, 6, 7, 8, 9, 10, 11, ...
356
+ } else {
357
+ return scheme.pluralGenitive.replace("{{count}}", String(count));
358
+ }
359
+ }
360
+
361
+ function buildLocalizeTokenFn(scheme) {
362
+ return (count, options) => {
363
+ if (options?.addSuffix) {
364
+ if (options.comparison && options.comparison > 0) {
365
+ if (scheme.future) {
366
+ return declension(scheme.future, count);
367
+ } else {
368
+ return "через " + declension(scheme.regular, count);
369
+ }
370
+ } else {
371
+ if (scheme.past) {
372
+ return declension(scheme.past, count);
373
+ } else {
374
+ return declension(scheme.regular, count) + " назад";
375
+ }
376
+ }
377
+ } else {
378
+ return declension(scheme.regular, count);
379
+ }
380
+ };
381
+ }
382
+
383
+ const formatDistanceLocale = {
384
+ lessThanXSeconds: buildLocalizeTokenFn({
385
+ regular: {
386
+ one: "меньше секунды",
387
+ singularNominative: "меньше {{count}} секунды",
388
+ singularGenitive: "меньше {{count}} секунд",
389
+ pluralGenitive: "меньше {{count}} секунд",
390
+ },
391
+ future: {
392
+ one: "меньше, чем через секунду",
393
+ singularNominative: "меньше, чем через {{count}} секунду",
394
+ singularGenitive: "меньше, чем через {{count}} секунды",
395
+ pluralGenitive: "меньше, чем через {{count}} секунд",
396
+ },
397
+ }),
398
+
399
+ xSeconds: buildLocalizeTokenFn({
400
+ regular: {
401
+ singularNominative: "{{count}} секунда",
402
+ singularGenitive: "{{count}} секунды",
403
+ pluralGenitive: "{{count}} секунд",
404
+ },
405
+ past: {
406
+ singularNominative: "{{count}} секунду назад",
407
+ singularGenitive: "{{count}} секунды назад",
408
+ pluralGenitive: "{{count}} секунд назад",
409
+ },
410
+ future: {
411
+ singularNominative: "через {{count}} секунду",
412
+ singularGenitive: "через {{count}} секунды",
413
+ pluralGenitive: "через {{count}} секунд",
414
+ },
415
+ }),
416
+
417
+ halfAMinute: (_count, options) => {
418
+ if (options?.addSuffix) {
419
+ if (options.comparison && options.comparison > 0) {
420
+ return "через полминуты";
421
+ } else {
422
+ return "полминуты назад";
423
+ }
424
+ }
425
+
426
+ return "полминуты";
427
+ },
428
+
429
+ lessThanXMinutes: buildLocalizeTokenFn({
430
+ regular: {
431
+ one: "меньше минуты",
432
+ singularNominative: "меньше {{count}} минуты",
433
+ singularGenitive: "меньше {{count}} минут",
434
+ pluralGenitive: "меньше {{count}} минут",
435
+ },
436
+ future: {
437
+ one: "меньше, чем через минуту",
438
+ singularNominative: "меньше, чем через {{count}} минуту",
439
+ singularGenitive: "меньше, чем через {{count}} минуты",
440
+ pluralGenitive: "меньше, чем через {{count}} минут",
441
+ },
442
+ }),
443
+
444
+ xMinutes: buildLocalizeTokenFn({
445
+ regular: {
446
+ singularNominative: "{{count}} минута",
447
+ singularGenitive: "{{count}} минуты",
448
+ pluralGenitive: "{{count}} минут",
449
+ },
450
+ past: {
451
+ singularNominative: "{{count}} минуту назад",
452
+ singularGenitive: "{{count}} минуты назад",
453
+ pluralGenitive: "{{count}} минут назад",
454
+ },
455
+ future: {
456
+ singularNominative: "через {{count}} минуту",
457
+ singularGenitive: "через {{count}} минуты",
458
+ pluralGenitive: "через {{count}} минут",
459
+ },
460
+ }),
461
+
462
+ aboutXHours: buildLocalizeTokenFn({
463
+ regular: {
464
+ singularNominative: "около {{count}} часа",
465
+ singularGenitive: "около {{count}} часов",
466
+ pluralGenitive: "около {{count}} часов",
467
+ },
468
+ future: {
469
+ singularNominative: "приблизительно через {{count}} час",
470
+ singularGenitive: "приблизительно через {{count}} часа",
471
+ pluralGenitive: "приблизительно через {{count}} часов",
472
+ },
473
+ }),
474
+
475
+ xHours: buildLocalizeTokenFn({
476
+ regular: {
477
+ singularNominative: "{{count}} час",
478
+ singularGenitive: "{{count}} часа",
479
+ pluralGenitive: "{{count}} часов",
480
+ },
481
+ }),
482
+
483
+ xDays: buildLocalizeTokenFn({
484
+ regular: {
485
+ singularNominative: "{{count}} день",
486
+ singularGenitive: "{{count}} дня",
487
+ pluralGenitive: "{{count}} дней",
488
+ },
489
+ }),
490
+
491
+ aboutXWeeks: buildLocalizeTokenFn({
492
+ regular: {
493
+ singularNominative: "около {{count}} недели",
494
+ singularGenitive: "около {{count}} недель",
495
+ pluralGenitive: "около {{count}} недель",
496
+ },
497
+ future: {
498
+ singularNominative: "приблизительно через {{count}} неделю",
499
+ singularGenitive: "приблизительно через {{count}} недели",
500
+ pluralGenitive: "приблизительно через {{count}} недель",
501
+ },
502
+ }),
503
+
504
+ xWeeks: buildLocalizeTokenFn({
505
+ regular: {
506
+ singularNominative: "{{count}} неделя",
507
+ singularGenitive: "{{count}} недели",
508
+ pluralGenitive: "{{count}} недель",
509
+ },
510
+ }),
511
+
512
+ aboutXMonths: buildLocalizeTokenFn({
513
+ regular: {
514
+ singularNominative: "около {{count}} месяца",
515
+ singularGenitive: "около {{count}} месяцев",
516
+ pluralGenitive: "около {{count}} месяцев",
517
+ },
518
+ future: {
519
+ singularNominative: "приблизительно через {{count}} месяц",
520
+ singularGenitive: "приблизительно через {{count}} месяца",
521
+ pluralGenitive: "приблизительно через {{count}} месяцев",
522
+ },
523
+ }),
524
+
525
+ xMonths: buildLocalizeTokenFn({
526
+ regular: {
527
+ singularNominative: "{{count}} месяц",
528
+ singularGenitive: "{{count}} месяца",
529
+ pluralGenitive: "{{count}} месяцев",
530
+ },
531
+ }),
532
+
533
+ aboutXYears: buildLocalizeTokenFn({
534
+ regular: {
535
+ singularNominative: "около {{count}} года",
536
+ singularGenitive: "около {{count}} лет",
537
+ pluralGenitive: "около {{count}} лет",
538
+ },
539
+ future: {
540
+ singularNominative: "приблизительно через {{count}} год",
541
+ singularGenitive: "приблизительно через {{count}} года",
542
+ pluralGenitive: "приблизительно через {{count}} лет",
543
+ },
544
+ }),
545
+
546
+ xYears: buildLocalizeTokenFn({
547
+ regular: {
548
+ singularNominative: "{{count}} год",
549
+ singularGenitive: "{{count}} года",
550
+ pluralGenitive: "{{count}} лет",
551
+ },
552
+ }),
553
+
554
+ overXYears: buildLocalizeTokenFn({
555
+ regular: {
556
+ singularNominative: "больше {{count}} года",
557
+ singularGenitive: "больше {{count}} лет",
558
+ pluralGenitive: "больше {{count}} лет",
559
+ },
560
+ future: {
561
+ singularNominative: "больше, чем через {{count}} год",
562
+ singularGenitive: "больше, чем через {{count}} года",
563
+ pluralGenitive: "больше, чем через {{count}} лет",
564
+ },
565
+ }),
566
+
567
+ almostXYears: buildLocalizeTokenFn({
568
+ regular: {
569
+ singularNominative: "почти {{count}} год",
570
+ singularGenitive: "почти {{count}} года",
571
+ pluralGenitive: "почти {{count}} лет",
572
+ },
573
+ future: {
574
+ singularNominative: "почти через {{count}} год",
575
+ singularGenitive: "почти через {{count}} года",
576
+ pluralGenitive: "почти через {{count}} лет",
577
+ },
578
+ }),
579
+ };
580
+
581
+ const formatDistance = (token, count, options) => {
582
+ return formatDistanceLocale[token](count, options);
583
+ };
584
+
585
+ const dateFormats = {
586
+ full: "EEEE, d MMMM y 'г.'",
587
+ long: "d MMMM y 'г.'",
588
+ medium: "d MMM y 'г.'",
589
+ short: "dd.MM.y",
590
+ };
591
+
592
+ const timeFormats = {
593
+ full: "H:mm:ss zzzz",
594
+ long: "H:mm:ss z",
595
+ medium: "H:mm:ss",
596
+ short: "H:mm",
597
+ };
598
+
599
+ const dateTimeFormats = {
600
+ any: "{{date}}, {{time}}",
601
+ };
602
+
603
+ const formatLong = {
604
+ date: buildFormatLongFn({
605
+ formats: dateFormats,
606
+ defaultWidth: "full",
607
+ }),
608
+
609
+ time: buildFormatLongFn({
610
+ formats: timeFormats,
611
+ defaultWidth: "full",
612
+ }),
613
+
614
+ dateTime: buildFormatLongFn({
615
+ formats: dateTimeFormats,
616
+ defaultWidth: "any",
617
+ }),
618
+ };
619
+
620
+ const accusativeWeekdays = [
621
+ "воскресенье",
622
+ "понедельник",
623
+ "вторник",
624
+ "среду",
625
+ "четверг",
626
+ "пятницу",
627
+ "субботу",
628
+ ];
629
+
630
+ function lastWeek(day) {
631
+ const weekday = accusativeWeekdays[day];
632
+
633
+ switch (day) {
634
+ case 0:
635
+ return "'в прошлое " + weekday + " в' p";
636
+ case 1:
637
+ case 2:
638
+ case 4:
639
+ return "'в прошлый " + weekday + " в' p";
640
+ case 3:
641
+ case 5:
642
+ case 6:
643
+ return "'в прошлую " + weekday + " в' p";
644
+ }
645
+ }
646
+
647
+ function thisWeek(day) {
648
+ const weekday = accusativeWeekdays[day];
649
+
650
+ if (day === 2 /* Tue */) {
651
+ return "'во " + weekday + " в' p";
652
+ } else {
653
+ return "'в " + weekday + " в' p";
654
+ }
655
+ }
656
+
657
+ function nextWeek(day) {
658
+ const weekday = accusativeWeekdays[day];
659
+
660
+ switch (day) {
661
+ case 0:
662
+ return "'в следующее " + weekday + " в' p";
663
+ case 1:
664
+ case 2:
665
+ case 4:
666
+ return "'в следующий " + weekday + " в' p";
667
+ case 3:
668
+ case 5:
669
+ case 6:
670
+ return "'в следующую " + weekday + " в' p";
671
+ }
672
+ }
673
+
674
+ const formatRelativeLocale = {
675
+ lastWeek: (date, baseDate, options) => {
676
+ const day = date.getDay();
677
+ if (isSameWeek(date, baseDate, options)) {
678
+ return thisWeek(day);
679
+ } else {
680
+ return lastWeek(day);
681
+ }
682
+ },
683
+ yesterday: "'вчера в' p",
684
+ today: "'сегодня в' p",
685
+ tomorrow: "'завтра в' p",
686
+ nextWeek: (date, baseDate, options) => {
687
+ const day = date.getDay();
688
+ if (isSameWeek(date, baseDate, options)) {
689
+ return thisWeek(day);
690
+ } else {
691
+ return nextWeek(day);
692
+ }
693
+ },
694
+ other: "P",
695
+ };
696
+
697
+ const formatRelative = (token, date, baseDate, options) => {
698
+ const format = formatRelativeLocale[token];
699
+
700
+ if (typeof format === "function") {
701
+ return format(date, baseDate, options);
702
+ }
703
+
704
+ return format;
705
+ };
706
+
707
+ const eraValues = {
708
+ narrow: ["до н.э.", "н.э."],
709
+ abbreviated: ["до н. э.", "н. э."],
710
+ wide: ["до нашей эры", "нашей эры"],
711
+ };
712
+
713
+ const quarterValues = {
714
+ narrow: ["1", "2", "3", "4"],
715
+ abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
716
+ wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"],
717
+ };
718
+
719
+ const monthValues = {
720
+ narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
721
+ abbreviated: [
722
+ "янв.",
723
+ "фев.",
724
+ "март",
725
+ "апр.",
726
+ "май",
727
+ "июнь",
728
+ "июль",
729
+ "авг.",
730
+ "сент.",
731
+ "окт.",
732
+ "нояб.",
733
+ "дек.",
734
+ ],
735
+
736
+ wide: [
737
+ "январь",
738
+ "февраль",
739
+ "март",
740
+ "апрель",
741
+ "май",
742
+ "июнь",
743
+ "июль",
744
+ "август",
745
+ "сентябрь",
746
+ "октябрь",
747
+ "ноябрь",
748
+ "декабрь",
749
+ ],
750
+ };
751
+
752
+ const formattingMonthValues = {
753
+ narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
754
+ abbreviated: [
755
+ "янв.",
756
+ "фев.",
757
+ "мар.",
758
+ "апр.",
759
+ "мая",
760
+ "июн.",
761
+ "июл.",
762
+ "авг.",
763
+ "сент.",
764
+ "окт.",
765
+ "нояб.",
766
+ "дек.",
767
+ ],
768
+
769
+ wide: [
770
+ "января",
771
+ "февраля",
772
+ "марта",
773
+ "апреля",
774
+ "мая",
775
+ "июня",
776
+ "июля",
777
+ "августа",
778
+ "сентября",
779
+ "октября",
780
+ "ноября",
781
+ "декабря",
782
+ ],
783
+ };
784
+
785
+ const dayValues = {
786
+ narrow: ["В", "П", "В", "С", "Ч", "П", "С"],
787
+ short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"],
788
+ abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"],
789
+ wide: [
790
+ "воскресенье",
791
+ "понедельник",
792
+ "вторник",
793
+ "среда",
794
+ "четверг",
795
+ "пятница",
796
+ "суббота",
797
+ ],
798
+ };
799
+
800
+ const dayPeriodValues = {
801
+ narrow: {
802
+ am: "ДП",
803
+ pm: "ПП",
804
+ midnight: "полн.",
805
+ noon: "полд.",
806
+ morning: "утро",
807
+ afternoon: "день",
808
+ evening: "веч.",
809
+ night: "ночь",
810
+ },
811
+ abbreviated: {
812
+ am: "ДП",
813
+ pm: "ПП",
814
+ midnight: "полн.",
815
+ noon: "полд.",
816
+ morning: "утро",
817
+ afternoon: "день",
818
+ evening: "веч.",
819
+ night: "ночь",
820
+ },
821
+ wide: {
822
+ am: "ДП",
823
+ pm: "ПП",
824
+ midnight: "полночь",
825
+ noon: "полдень",
826
+ morning: "утро",
827
+ afternoon: "день",
828
+ evening: "вечер",
829
+ night: "ночь",
830
+ },
831
+ };
832
+
833
+ const formattingDayPeriodValues = {
834
+ narrow: {
835
+ am: "ДП",
836
+ pm: "ПП",
837
+ midnight: "полн.",
838
+ noon: "полд.",
839
+ morning: "утра",
840
+ afternoon: "дня",
841
+ evening: "веч.",
842
+ night: "ночи",
843
+ },
844
+ abbreviated: {
845
+ am: "ДП",
846
+ pm: "ПП",
847
+ midnight: "полн.",
848
+ noon: "полд.",
849
+ morning: "утра",
850
+ afternoon: "дня",
851
+ evening: "веч.",
852
+ night: "ночи",
853
+ },
854
+ wide: {
855
+ am: "ДП",
856
+ pm: "ПП",
857
+ midnight: "полночь",
858
+ noon: "полдень",
859
+ morning: "утра",
860
+ afternoon: "дня",
861
+ evening: "вечера",
862
+ night: "ночи",
863
+ },
864
+ };
865
+
866
+ const ordinalNumber = (dirtyNumber, options) => {
867
+ const number = Number(dirtyNumber);
868
+ const unit = options?.unit;
869
+
870
+ let suffix;
871
+ if (unit === "date") {
872
+ suffix = "-е";
873
+ } else if (unit === "week" || unit === "minute" || unit === "second") {
874
+ suffix = "-я";
875
+ } else {
876
+ suffix = "-й";
877
+ }
878
+
879
+ return number + suffix;
880
+ };
881
+
882
+ const localize = {
883
+ ordinalNumber,
884
+
885
+ era: buildLocalizeFn({
886
+ values: eraValues,
887
+ defaultWidth: "wide",
888
+ }),
889
+
890
+ quarter: buildLocalizeFn({
891
+ values: quarterValues,
892
+ defaultWidth: "wide",
893
+ argumentCallback: (quarter) => quarter - 1,
894
+ }),
895
+
896
+ month: buildLocalizeFn({
897
+ values: monthValues,
898
+ defaultWidth: "wide",
899
+ formattingValues: formattingMonthValues,
900
+ defaultFormattingWidth: "wide",
901
+ }),
902
+
903
+ day: buildLocalizeFn({
904
+ values: dayValues,
905
+ defaultWidth: "wide",
906
+ }),
907
+
908
+ dayPeriod: buildLocalizeFn({
909
+ values: dayPeriodValues,
910
+ defaultWidth: "any",
911
+ formattingValues: formattingDayPeriodValues,
912
+ defaultFormattingWidth: "wide",
913
+ }),
914
+ };
915
+
916
+ const matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i;
917
+ const parseOrdinalNumberPattern = /\d+/i;
918
+
919
+ const matchEraPatterns = {
920
+ narrow: /^((до )?н\.?\s?э\.?)/i,
921
+ abbreviated: /^((до )?н\.?\s?э\.?)/i,
922
+ wide: /^(до нашей эры|нашей эры|наша эра)/i,
923
+ };
924
+ const parseEraPatterns = {
925
+ any: [/^д/i, /^н/i],
926
+ };
927
+
928
+ const matchQuarterPatterns = {
929
+ narrow: /^[1234]/i,
930
+ abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
931
+ wide: /^[1234](-?[ыои]?й?)? квартал/i,
932
+ };
933
+
934
+ const parseQuarterPatterns = {
935
+ any: [/1/i, /2/i, /3/i, /4/i],
936
+ };
937
+
938
+ const matchMonthPatterns = {
939
+ narrow: /^[яфмаисонд]/i,
940
+ abbreviated:
941
+ /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
942
+ wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i,
943
+ };
944
+
945
+ const parseMonthPatterns = {
946
+ narrow: [
947
+ /^я/i,
948
+ /^ф/i,
949
+ /^м/i,
950
+ /^а/i,
951
+ /^м/i,
952
+ /^и/i,
953
+ /^и/i,
954
+ /^а/i,
955
+ /^с/i,
956
+ /^о/i,
957
+ /^н/i,
958
+ /^я/i,
959
+ ],
960
+
961
+ any: [
962
+ /^я/i,
963
+ /^ф/i,
964
+ /^мар/i,
965
+ /^ап/i,
966
+ /^ма[йя]/i,
967
+ /^июн/i,
968
+ /^июл/i,
969
+ /^ав/i,
970
+ /^с/i,
971
+ /^о/i,
972
+ /^н/i,
973
+ /^д/i,
974
+ ],
975
+ };
976
+
977
+ const matchDayPatterns = {
978
+ narrow: /^[впсч]/i,
979
+ short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
980
+ abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
981
+ wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i,
982
+ };
983
+
984
+ const parseDayPatterns = {
985
+ narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
986
+ any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i],
987
+ };
988
+
989
+ const matchDayPeriodPatterns = {
990
+ narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
991
+ abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
992
+ wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i,
993
+ };
994
+
995
+ const parseDayPeriodPatterns = {
996
+ any: {
997
+ am: /^дп/i,
998
+ pm: /^пп/i,
999
+ midnight: /^полн/i,
1000
+ noon: /^полд/i,
1001
+ morning: /^у/i,
1002
+ afternoon: /^д[ен]/i,
1003
+ evening: /^в/i,
1004
+ night: /^н/i,
1005
+ },
1006
+ };
1007
+
1008
+ const match = {
1009
+ ordinalNumber: buildMatchPatternFn({
1010
+ matchPattern: matchOrdinalNumberPattern,
1011
+ parsePattern: parseOrdinalNumberPattern,
1012
+ valueCallback: (value) => parseInt(value, 10),
1013
+ }),
1014
+
1015
+ era: buildMatchFn({
1016
+ matchPatterns: matchEraPatterns,
1017
+ defaultMatchWidth: "wide",
1018
+ parsePatterns: parseEraPatterns,
1019
+ defaultParseWidth: "any",
1020
+ }),
1021
+
1022
+ quarter: buildMatchFn({
1023
+ matchPatterns: matchQuarterPatterns,
1024
+ defaultMatchWidth: "wide",
1025
+ parsePatterns: parseQuarterPatterns,
1026
+ defaultParseWidth: "any",
1027
+ valueCallback: (index) => index + 1,
1028
+ }),
1029
+
1030
+ month: buildMatchFn({
1031
+ matchPatterns: matchMonthPatterns,
1032
+ defaultMatchWidth: "wide",
1033
+ parsePatterns: parseMonthPatterns,
1034
+ defaultParseWidth: "any",
1035
+ }),
1036
+
1037
+ day: buildMatchFn({
1038
+ matchPatterns: matchDayPatterns,
1039
+ defaultMatchWidth: "wide",
1040
+ parsePatterns: parseDayPatterns,
1041
+ defaultParseWidth: "any",
1042
+ }),
1043
+
1044
+ dayPeriod: buildMatchFn({
1045
+ matchPatterns: matchDayPeriodPatterns,
1046
+ defaultMatchWidth: "wide",
1047
+ parsePatterns: parseDayPeriodPatterns,
1048
+ defaultParseWidth: "any",
1049
+ }),
1050
+ };
1051
+
1052
+ /**
1053
+ * @category Locales
1054
+ * @summary Russian locale.
1055
+ * @language Russian
1056
+ * @iso-639-2 rus
1057
+ * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
1058
+ * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
1059
+ */
1060
+ const ru = {
1061
+ code: "ru",
1062
+ formatDistance: formatDistance,
1063
+ formatLong: formatLong,
1064
+ formatRelative: formatRelative,
1065
+ localize: localize,
1066
+ match: match,
1067
+ options: {
1068
+ weekStartsOn: 1 /* Monday */,
1069
+ firstWeekContainsDate: 1,
1070
+ },
1071
+ };
1072
+
1073
+ function DatePickerInput(props) {
1074
+ var className = props.className, value = props.value, inputProps = props.inputProps, datePickerProps = props.datePickerProps, onChange = props.onChange, endValue = props.endValue, labelTextSize = props.labelTextSize, clearLabelTextColorHover = props.clearLabelTextColorHover, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconItemFillHover = props.clearIconItemFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextSize = props.clearLabelTextSize;
1075
+ var widthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
1076
+ prefix: 'width_',
1077
+ propsKey: 'width',
1078
+ });
1079
+ var datepickerRef = React.useRef(null);
1080
+ var start = React.useMemo(function () {
1081
+ if (value) {
1082
+ if (typeof value === 'string') {
1083
+ return new Date(value);
1084
+ }
1085
+ return value;
1086
+ }
1087
+ if (datePickerProps.isStartDefaultNull) {
1088
+ return undefined;
1089
+ }
1090
+ return new Date();
1091
+ }, [value, datePickerProps.isStartDefaultNull]);
1092
+ var end = React.useMemo(function () {
1093
+ if (!endValue) {
1094
+ return undefined;
1095
+ }
1096
+ if (typeof endValue === 'string') {
1097
+ return new Date(endValue);
1098
+ }
1099
+ return endValue;
1100
+ }, [endValue]);
1101
+ var _a = React.useState(start), startDate = _a[0], setStartDate = _a[1];
1102
+ var _b = React.useState(end), endDate = _b[0], setEndDate = _b[1];
1103
+ var handleChange = React.useCallback(function (_a) {
1104
+ var newStartDate = _a[0], newEndDate = _a[1];
1105
+ onChange && onChange(newStartDate, newEndDate);
1106
+ setStartDate(newStartDate);
1107
+ setEndDate(newEndDate);
1108
+ }, [onChange]);
1109
+ var renderDayContents = React.useCallback(function (day, date) {
1110
+ return (jsxRuntime.jsx(Button.Button, { className: "react-datepicker__day-button", label: date.getDate().toString(), labelTextColor: datePickerProps.dayTextColor, labelTextSize: datePickerProps.dayTextSize, shape: datePickerProps.dayTextShape, size: datePickerProps.daySize }));
1111
+ }, [
1112
+ datePickerProps.daySize,
1113
+ datePickerProps.dayTextColor,
1114
+ datePickerProps.dayTextShape,
1115
+ datePickerProps.dayTextSize,
1116
+ ]);
1117
+ var renderCustomHeader = React.useCallback(function (_a) {
1118
+ var monthDate = _a.monthDate, decreaseMonth = _a.decreaseMonth, increaseMonth = _a.increaseMonth;
1119
+ return (jsxRuntime.jsxs("div", { className: "react-datepicker__header--div", children: [datePickerProps.iconLeft && (jsxRuntime.jsx(Icon.Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill, fillHover: datePickerProps.iconFillHover, fillSize: datePickerProps.iconFillSize, iconFill: datePickerProps.iconItemFill, shape: datePickerProps.iconShape, size: datePickerProps.iconSize, SvgImage: datePickerProps.iconLeft, onClick: decreaseMonth })), jsxRuntime.jsxs("div", { className: "react-datepicker__data", children: [jsxRuntime.jsx(Text.Text, { className: "react-datepicker__month", size: datePickerProps.monthTextSize, textColor: datePickerProps.monthTextColor, textWeight: datePickerProps.monthTextWeight, children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsxRuntime.jsx(Text.Text, { className: "react-datepicker__year", size: datePickerProps.yearTextSize, textColor: datePickerProps.yearTextColor, textWeight: datePickerProps.yearTextWeight, children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), datePickerProps.iconRight && (jsxRuntime.jsx(Icon.Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill, fillHover: datePickerProps.iconFillHover, fillSize: datePickerProps.iconFillSize, iconFill: datePickerProps.iconItemFill, shape: datePickerProps.iconShape, size: datePickerProps.iconSize, SvgImage: datePickerProps.iconRight, onClick: increaseMonth }))] }));
1120
+ }, [
1121
+ datePickerProps.iconFill,
1122
+ datePickerProps.iconFillHover,
1123
+ datePickerProps.iconFillSize,
1124
+ datePickerProps.iconItemFill,
1125
+ datePickerProps.iconLeft,
1126
+ datePickerProps.iconRight,
1127
+ datePickerProps.iconShape,
1128
+ datePickerProps.iconSize,
1129
+ datePickerProps.monthTextColor,
1130
+ datePickerProps.monthTextSize,
1131
+ datePickerProps.monthTextWeight,
1132
+ datePickerProps.yearTextColor,
1133
+ datePickerProps.yearTextSize,
1134
+ datePickerProps.yearTextWeight,
1135
+ ]);
1136
+ React.useEffect(function () {
1137
+ setStartDate(start);
1138
+ }, [start]);
1139
+ React.useEffect(function () {
1140
+ setEndDate(end);
1141
+ }, [end]);
1142
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.monthsShown) && 'datepicker_type_multiple-months', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.customTimeInput) && 'datepicker_type_button', widthClass), children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ ref: datepickerRef, endDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? endDate : undefined, locale: ru, minDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.disablePastDays) ? new Date() : undefined, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, customInput: jsxRuntime.jsx(DatePickerCustomInput, { labelTextSize: labelTextSize, clearIcon: clearIcon, clearIconFill: clearIconFill, clearIconFillHover: clearIconFillHover, clearIconFillSize: clearIconFillSize, clearIconItemFill: clearIconItemFill, clearIconItemFillHover: clearIconItemFillHover, clearIconShape: clearIconShape, clearIconSize: clearIconSize, clearIconSrc: clearIconSrc, clearLabel: clearLabel, clearLabelTextColor: clearLabelTextColor, clearLabelTextColorHover: clearLabelTextColorHover, clearLabelTextSize: clearLabelTextSize, datepickerRef: datepickerRef, inputIcon: datePickerProps.inputIcon, inputIconFill: datePickerProps.inputIconFill, inputIconFillHover: datePickerProps.inputIconFillHover, inputIconFillSize: datePickerProps.inputIconFillSize, inputIconItemFill: datePickerProps.inputIconItemFill, inputIconShape: datePickerProps.inputIconShape, inputIconSize: datePickerProps.inputIconSize, inputIconSrc: datePickerProps.inputIconSrc, inputProps: inputProps, isClearable: datePickerProps.isClearable }), onChange: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? handleChange : onChange }, datePickerProps, {
1143
+ // Important for use custom clear button
1144
+ isClearable: false })) }));
1145
+ }
1146
+ var DatePickerCustomInput = React.forwardRef(function (props, ref) {
1147
+ var isClearable = props.isClearable, value = props.value, inputProps = props.inputProps, inputIcon = props.inputIcon;
1148
+ var multipleValue = React.useMemo(function () {
1149
+ if (value) {
1150
+ var twoDates = value.split(' - ');
1151
+ return twoDates[0] === twoDates[1] ? twoDates[0] : value;
1152
+ }
1153
+ return '';
1154
+ }, [value]);
1155
+ return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(Input.Input, tslib_es6.__assign({}, props, inputProps, { ref: ref, value: multipleValue })), inputIcon && jsxRuntime.jsx(DatePickerInputIcon, tslib_es6.__assign({}, props)), isClearable && jsxRuntime.jsx(DatePickerClearButton, tslib_es6.__assign({}, props))] }));
1156
+ });
1157
+ DatePickerCustomInput.displayName = 'DatePickerCustomInput';
1158
+ function DatePickerClearButton(props) {
1159
+ var datepickerRef = props.datepickerRef, clearLabel = props.clearLabel, clearLabelTextSize = props.clearLabelTextSize, clearLabelTextColor = props.clearLabelTextColor, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearLabelTextColorHover = props.clearLabelTextColorHover, clearIconItemFillHover = props.clearIconItemFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIcon = props.clearIcon, clearIconSrc = props.clearIconSrc;
1160
+ var onClick = React.useCallback(function (event) {
1161
+ var _a, _b;
1162
+ (_a = datepickerRef === null || datepickerRef === void 0 ? void 0 : datepickerRef.current) === null || _a === void 0 ? void 0 : _a.onClearClick(event);
1163
+ (_b = datepickerRef === null || datepickerRef === void 0 ? void 0 : datepickerRef.current) === null || _b === void 0 ? void 0 : _b.handleFocus(event);
1164
+ }, []);
1165
+ return (jsxRuntime.jsxs(React.Fragment, { children: [clearLabel && (jsxRuntime.jsx(Label.Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })), (clearIcon || clearIconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, size: clearIconSize, SvgImage: clearIcon, onClick: onClick }))] }));
1166
+ }
1167
+ DatePickerClearButton.displayName = 'DatePickerClearButton';
1168
+ function DatePickerInputIcon(props) {
1169
+ var inputIconFill = props.inputIconFill, inputIconFillHover = props.inputIconFillHover, inputIconFillSize = props.inputIconFillSize, inputIconShape = props.inputIconShape, inputIconSize = props.inputIconSize, inputIcon = props.inputIcon, inputIconSrc = props.inputIconSrc, inputIconItemFill = props.inputIconItemFill, onClick = props.onClick;
1170
+ return (jsxRuntime.jsx(Icon.Icon, { className: clsx('react-datepicker__input-icon', 'cursor_type_pointer'), fill: inputIconFill, fillHover: inputIconFillHover, fillSize: inputIconFillSize, iconFill: inputIconItemFill, imageSrc: inputIconSrc, shape: inputIconShape, size: inputIconSize, onClick: function () { return onClick && onClick(); }, SvgImage: inputIcon }));
1171
+ }
1172
+ DatePickerInputIcon.displayName = 'DatePickerInputIcon';
1173
+
1174
+ exports.DatePickerInput = DatePickerInput;