@salutejs/plasma-new-hope 0.230.0-canary.1670.12462995068.0 → 0.231.0-canary.1647.12467637991.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (303) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +4 -4
  2. package/cjs/components/Breadcrumbs/Breadcrumbs.js +2 -1
  3. package/cjs/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  4. package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.css +3 -0
  5. package/cjs/components/Breadcrumbs/utils/getShortItems.js +44 -0
  6. package/cjs/components/Breadcrumbs/utils/getShortItems.js.map +1 -0
  7. package/cjs/components/Breadcrumbs/utils/index.js +0 -38
  8. package/cjs/components/Breadcrumbs/utils/index.js.map +1 -1
  9. package/cjs/components/Calendar/utils/getDateWithModification.js.map +1 -1
  10. package/cjs/components/Combobox/ComboboxNew/Combobox.context.js +10 -0
  11. package/cjs/components/Combobox/ComboboxNew/Combobox.context.js.map +1 -0
  12. package/cjs/components/Combobox/ComboboxNew/Combobox.css +4 -4
  13. package/cjs/components/Combobox/ComboboxNew/Combobox.js +2 -3
  14. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  15. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +0 -75
  16. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +0 -112
  17. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -2
  18. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  19. package/cjs/components/Combobox/ComboboxOld/Combobox.css +4 -4
  20. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  21. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  22. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  23. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  24. package/cjs/components/DatePicker/RangeDate/RangeDate.css +4 -4
  25. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +4 -4
  26. package/cjs/components/DatePicker/SingleDate/SingleDate.css +4 -4
  27. package/cjs/components/Dropdown/Dropdown.context.js +10 -0
  28. package/cjs/components/Dropdown/Dropdown.context.js.map +1 -0
  29. package/cjs/components/Dropdown/Dropdown.css +4 -4
  30. package/cjs/components/Dropdown/Dropdown.js +2 -3
  31. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  32. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.css +27 -0
  33. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  34. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  35. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +0 -25
  36. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  37. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  38. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.css +4 -4
  39. package/cjs/components/Pagination/Pagination.css +4 -4
  40. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  41. package/cjs/components/Popover/Popover.css +4 -4
  42. package/cjs/components/Popover/Popover.js +9 -5
  43. package/cjs/components/Popover/Popover.js.map +1 -1
  44. package/cjs/components/Popover/Popover.styles.js +7 -7
  45. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  46. package/{es/components/Popover/Popover.styles_mzmbre.css → cjs/components/Popover/Popover.styles_gh4xvw.css} +2 -2
  47. package/cjs/components/Popover/Popover.tokens.js +2 -1
  48. package/cjs/components/Popover/Popover.tokens.js.map +1 -1
  49. package/cjs/components/Portal/Portal.js +1 -1
  50. package/cjs/components/Portal/Portal.js.map +1 -1
  51. package/cjs/components/Range/Range.css +4 -4
  52. package/cjs/components/Select/Select.context.js +10 -0
  53. package/cjs/components/Select/Select.context.js.map +1 -0
  54. package/cjs/components/Select/Select.css +4 -4
  55. package/cjs/components/Select/Select.js +2 -3
  56. package/cjs/components/Select/Select.js.map +1 -1
  57. package/cjs/components/Select/ui/Inner/Inner.css +0 -109
  58. package/cjs/components/Select/ui/Inner/Inner.js +1 -1
  59. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  60. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +0 -112
  61. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +2 -2
  62. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  63. package/cjs/components/Select/ui/Target/Target.css +4 -4
  64. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +4 -4
  65. package/cjs/components/Slider/Slider.css +4 -4
  66. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +4 -11
  67. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  68. package/cjs/components/TextArea/TextArea.js +0 -1
  69. package/cjs/components/TextArea/TextArea.js.map +1 -1
  70. package/cjs/components/TextArea/ui/Hint/Hint.css +4 -4
  71. package/cjs/components/TextField/TextField.js +0 -1
  72. package/cjs/components/TextField/TextField.js.map +1 -1
  73. package/cjs/components/TextField/ui/Hint/Hint.css +4 -4
  74. package/cjs/engines/common.js +0 -36
  75. package/cjs/engines/common.js.map +1 -1
  76. package/cjs/engines/linaria.js +3 -3
  77. package/cjs/engines/linaria.js.map +1 -1
  78. package/cjs/engines/utils.js +40 -0
  79. package/cjs/engines/utils.js.map +1 -0
  80. package/cjs/index.css +4 -4
  81. package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.js +2 -1
  82. package/emotion/cjs/components/Breadcrumbs/utils/getShortItems.js +42 -0
  83. package/emotion/cjs/components/Breadcrumbs/utils/index.js +1 -37
  84. package/emotion/cjs/components/Calendar/utils/getDateWithModification.js +3 -3
  85. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.context.js +8 -0
  86. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +3 -4
  87. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  88. package/emotion/cjs/components/Dropdown/Dropdown.context.js +8 -0
  89. package/emotion/cjs/components/Dropdown/Dropdown.js +3 -4
  90. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +3 -3
  91. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  92. package/emotion/cjs/components/Popover/Popover.js +10 -6
  93. package/emotion/cjs/components/Popover/Popover.styles.js +8 -16
  94. package/emotion/cjs/components/Popover/Popover.template-doc.mdx +128 -43
  95. package/emotion/cjs/components/Popover/Popover.tokens.js +2 -1
  96. package/emotion/cjs/components/Portal/Portal.js +1 -1
  97. package/emotion/cjs/components/Select/Select.context.js +8 -0
  98. package/emotion/cjs/components/Select/Select.js +3 -4
  99. package/emotion/cjs/components/Select/ui/Inner/Inner.js +3 -3
  100. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  101. package/emotion/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +3 -3
  102. package/emotion/cjs/components/TextArea/TextArea.js +1 -2
  103. package/emotion/cjs/components/TextField/TextField.js +1 -2
  104. package/emotion/cjs/engines/common.js +2 -42
  105. package/emotion/cjs/engines/emotion.js +4 -4
  106. package/emotion/cjs/engines/utils.js +42 -0
  107. package/emotion/es/components/Breadcrumbs/Breadcrumbs.js +2 -1
  108. package/emotion/es/components/Breadcrumbs/utils/getShortItems.js +35 -0
  109. package/emotion/es/components/Breadcrumbs/utils/index.js +0 -35
  110. package/emotion/es/components/Calendar/utils/getDateWithModification.js +1 -1
  111. package/emotion/es/components/Combobox/ComboboxNew/Combobox.context.js +2 -0
  112. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  113. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  114. package/emotion/es/components/Dropdown/Dropdown.context.js +2 -0
  115. package/emotion/es/components/Dropdown/Dropdown.js +2 -2
  116. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  117. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  118. package/emotion/es/components/Popover/Popover.js +11 -7
  119. package/emotion/es/components/Popover/Popover.styles.js +8 -16
  120. package/emotion/es/components/Popover/Popover.template-doc.mdx +128 -43
  121. package/emotion/es/components/Popover/Popover.tokens.js +2 -1
  122. package/emotion/es/components/Portal/Portal.js +1 -1
  123. package/emotion/es/components/Select/Select.context.js +2 -0
  124. package/emotion/es/components/Select/Select.js +2 -2
  125. package/emotion/es/components/Select/ui/Inner/Inner.js +1 -1
  126. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  127. package/emotion/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +1 -1
  128. package/emotion/es/components/TextArea/TextArea.js +1 -2
  129. package/emotion/es/components/TextField/TextField.js +1 -2
  130. package/emotion/es/engines/common.js +0 -40
  131. package/emotion/es/engines/emotion.js +2 -2
  132. package/emotion/es/engines/utils.js +36 -0
  133. package/es/components/Autocomplete/Autocomplete.css +4 -4
  134. package/es/components/Breadcrumbs/Breadcrumbs.js +2 -1
  135. package/es/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  136. package/es/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.css +3 -0
  137. package/es/components/Breadcrumbs/utils/getShortItems.js +39 -0
  138. package/es/components/Breadcrumbs/utils/getShortItems.js.map +1 -0
  139. package/es/components/Breadcrumbs/utils/index.js +1 -37
  140. package/es/components/Breadcrumbs/utils/index.js.map +1 -1
  141. package/es/components/Calendar/utils/getDateWithModification.js.map +1 -1
  142. package/es/components/Combobox/ComboboxNew/Combobox.context.js +6 -0
  143. package/es/components/Combobox/ComboboxNew/Combobox.context.js.map +1 -0
  144. package/es/components/Combobox/ComboboxNew/Combobox.css +4 -4
  145. package/es/components/Combobox/ComboboxNew/Combobox.js +3 -3
  146. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  147. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +0 -75
  148. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +0 -112
  149. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  150. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  151. package/es/components/Combobox/ComboboxOld/Combobox.css +4 -4
  152. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  153. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  154. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  155. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  156. package/es/components/DatePicker/RangeDate/RangeDate.css +4 -4
  157. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +4 -4
  158. package/es/components/DatePicker/SingleDate/SingleDate.css +4 -4
  159. package/es/components/Dropdown/Dropdown.context.js +6 -0
  160. package/es/components/Dropdown/Dropdown.context.js.map +1 -0
  161. package/es/components/Dropdown/Dropdown.css +4 -4
  162. package/es/components/Dropdown/Dropdown.js +3 -3
  163. package/es/components/Dropdown/Dropdown.js.map +1 -1
  164. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.css +27 -0
  165. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  166. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  167. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +0 -25
  168. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  169. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  170. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.css +4 -4
  171. package/es/components/Pagination/Pagination.css +4 -4
  172. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  173. package/es/components/Popover/Popover.css +4 -4
  174. package/es/components/Popover/Popover.js +11 -7
  175. package/es/components/Popover/Popover.js.map +1 -1
  176. package/es/components/Popover/Popover.styles.js +7 -7
  177. package/es/components/Popover/Popover.styles.js.map +1 -1
  178. package/{cjs/components/Popover/Popover.styles_mzmbre.css → es/components/Popover/Popover.styles_gh4xvw.css} +2 -2
  179. package/es/components/Popover/Popover.tokens.js +2 -1
  180. package/es/components/Popover/Popover.tokens.js.map +1 -1
  181. package/es/components/Portal/Portal.js +1 -1
  182. package/es/components/Portal/Portal.js.map +1 -1
  183. package/es/components/Range/Range.css +4 -4
  184. package/es/components/Select/Select.context.js +6 -0
  185. package/es/components/Select/Select.context.js.map +1 -0
  186. package/es/components/Select/Select.css +4 -4
  187. package/es/components/Select/Select.js +3 -3
  188. package/es/components/Select/Select.js.map +1 -1
  189. package/es/components/Select/ui/Inner/Inner.css +0 -109
  190. package/es/components/Select/ui/Inner/Inner.js +1 -1
  191. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  192. package/es/components/Select/ui/Inner/ui/Item/Item.css +0 -112
  193. package/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  194. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  195. package/es/components/Select/ui/Target/Target.css +4 -4
  196. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +4 -4
  197. package/es/components/Slider/Slider.css +4 -4
  198. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +4 -11
  199. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  200. package/es/components/TextArea/TextArea.js +0 -1
  201. package/es/components/TextArea/TextArea.js.map +1 -1
  202. package/es/components/TextArea/ui/Hint/Hint.css +4 -4
  203. package/es/components/TextField/TextField.js +0 -1
  204. package/es/components/TextField/TextField.js.map +1 -1
  205. package/es/components/TextField/ui/Hint/Hint.css +4 -4
  206. package/es/engines/common.js +2 -36
  207. package/es/engines/common.js.map +1 -1
  208. package/es/engines/linaria.js +1 -1
  209. package/es/engines/linaria.js.map +1 -1
  210. package/es/engines/utils.js +35 -0
  211. package/es/engines/utils.js.map +1 -0
  212. package/es/index.css +4 -4
  213. package/package.json +22 -5
  214. package/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.js +2 -1
  215. package/styled-components/cjs/components/Breadcrumbs/utils/getShortItems.js +42 -0
  216. package/styled-components/cjs/components/Breadcrumbs/utils/index.js +1 -37
  217. package/styled-components/cjs/components/Calendar/utils/getDateWithModification.js +3 -3
  218. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.context.js +8 -0
  219. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +3 -4
  220. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  221. package/styled-components/cjs/components/Dropdown/Dropdown.context.js +8 -0
  222. package/styled-components/cjs/components/Dropdown/Dropdown.js +3 -4
  223. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +3 -3
  224. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  225. package/styled-components/cjs/components/Popover/Popover.js +10 -6
  226. package/styled-components/cjs/components/Popover/Popover.styles.js +4 -4
  227. package/styled-components/cjs/components/Popover/Popover.template-doc.mdx +128 -43
  228. package/styled-components/cjs/components/Popover/Popover.tokens.js +2 -1
  229. package/styled-components/cjs/components/Portal/Portal.js +1 -1
  230. package/styled-components/cjs/components/Select/Select.context.js +8 -0
  231. package/styled-components/cjs/components/Select/Select.js +3 -4
  232. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +3 -3
  233. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  234. package/styled-components/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +3 -3
  235. package/styled-components/cjs/components/TextArea/TextArea.js +0 -1
  236. package/styled-components/cjs/components/TextField/TextField.js +0 -1
  237. package/styled-components/cjs/engines/common.js +2 -42
  238. package/styled-components/cjs/engines/styled-components.js +3 -3
  239. package/styled-components/cjs/engines/utils.js +42 -0
  240. package/styled-components/es/components/Breadcrumbs/Breadcrumbs.js +2 -1
  241. package/styled-components/es/components/Breadcrumbs/utils/getShortItems.js +35 -0
  242. package/styled-components/es/components/Breadcrumbs/utils/index.js +0 -35
  243. package/styled-components/es/components/Calendar/utils/getDateWithModification.js +1 -1
  244. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.context.js +2 -0
  245. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  246. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  247. package/styled-components/es/components/Dropdown/Dropdown.context.js +2 -0
  248. package/styled-components/es/components/Dropdown/Dropdown.js +2 -2
  249. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  250. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  251. package/styled-components/es/components/Popover/Popover.js +11 -7
  252. package/styled-components/es/components/Popover/Popover.styles.js +4 -4
  253. package/styled-components/es/components/Popover/Popover.template-doc.mdx +128 -43
  254. package/styled-components/es/components/Popover/Popover.tokens.js +2 -1
  255. package/styled-components/es/components/Portal/Portal.js +1 -1
  256. package/styled-components/es/components/Select/Select.context.js +2 -0
  257. package/styled-components/es/components/Select/Select.js +2 -2
  258. package/styled-components/es/components/Select/ui/Inner/Inner.js +1 -1
  259. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  260. package/styled-components/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +1 -1
  261. package/styled-components/es/components/TextArea/TextArea.js +0 -1
  262. package/styled-components/es/components/TextField/TextField.js +0 -1
  263. package/styled-components/es/engines/common.js +0 -40
  264. package/styled-components/es/engines/styled-components.js +1 -1
  265. package/styled-components/es/engines/utils.js +36 -0
  266. package/types/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  267. package/types/components/Breadcrumbs/utils/getShortItems.d.ts +6 -0
  268. package/types/components/Breadcrumbs/utils/getShortItems.d.ts.map +1 -0
  269. package/types/components/Breadcrumbs/utils/index.d.ts +2 -5
  270. package/types/components/Breadcrumbs/utils/index.d.ts.map +1 -1
  271. package/types/components/Calendar/utils/getDateWithModification.d.ts +1 -1
  272. package/types/components/Calendar/utils/getDateWithModification.d.ts.map +1 -1
  273. package/types/components/Combobox/ComboboxNew/Combobox.context.d.ts +4 -0
  274. package/types/components/Combobox/ComboboxNew/Combobox.context.d.ts.map +1 -0
  275. package/types/components/Combobox/ComboboxNew/Combobox.d.ts +1 -2
  276. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  277. package/types/components/Dropdown/Dropdown.context.d.ts +4 -0
  278. package/types/components/Dropdown/Dropdown.context.d.ts.map +1 -0
  279. package/types/components/Dropdown/Dropdown.d.ts +1 -2
  280. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  281. package/types/components/Popover/Popover.d.ts.map +1 -1
  282. package/types/components/Popover/Popover.styles.d.ts +1 -1
  283. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  284. package/types/components/Popover/Popover.tokens.d.ts +1 -0
  285. package/types/components/Popover/Popover.tokens.d.ts.map +1 -1
  286. package/types/components/Popover/Popover.types.d.ts +4 -4
  287. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  288. package/types/components/Portal/Portal.types.d.ts +1 -1
  289. package/types/components/Portal/Portal.types.d.ts.map +1 -1
  290. package/types/components/Select/Select.context.d.ts +4 -0
  291. package/types/components/Select/Select.context.d.ts.map +1 -0
  292. package/types/components/Select/Select.d.ts +1 -2
  293. package/types/components/Select/Select.d.ts.map +1 -1
  294. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  295. package/types/components/TextField/TextField.d.ts.map +1 -1
  296. package/types/engines/common.d.ts +1 -3
  297. package/types/engines/common.d.ts.map +1 -1
  298. package/types/engines/utils.d.ts +4 -0
  299. package/types/engines/utils.d.ts.map +1 -0
  300. package/cjs/components/Slider/components/Double/Double.css +0 -91
  301. package/es/components/Slider/components/Double/Double.css +0 -91
  302. /package/cjs/components/Breadcrumbs/utils/{index.css → getShortItems.css} +0 -0
  303. /package/es/components/Breadcrumbs/utils/{index.css → getShortItems.css} +0 -0
@@ -71,10 +71,10 @@
71
71
  .SuggestionItem_styles_lpdinw_s1siyv9w__5ad0f45d{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex:1;-ms-flex:1;flex:1;}
72
72
  .SuggestionItem_styles_lpdinw_wykobsk__5ad0f45d{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;box-sizing:content-box;padding:var(--plasma-autocomplete-item-padding);font-family:var(--plasma-autocomplete-item-font-family);font-size:var(--plasma-autocomplete-item-font-size);font-style:var(--plasma-autocomplete-item-font-style);font-weight:var(--plasma-autocomplete-item-font-weight);-webkit-letter-spacing:var(--plasma-autocomplete-item-font-letter-spacing);-moz-letter-spacing:var(--plasma-autocomplete-item-font-letter-spacing);-ms-letter-spacing:var(--plasma-autocomplete-item-font-letter-spacing);letter-spacing:var(--plasma-autocomplete-item-font-letter-spacing);line-height:var(--plasma-autocomplete-item-font-line-height);background:var(--plasma-autocomplete-item-background);color:var(--plasma-autocomplete-item-color);border-radius:var(--plasma-autocomplete-item-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;}.SuggestionItem_styles_lpdinw_wykobsk__5ad0f45d:hover{cursor:pointer;background:var(--plasma-autocomplete-item-background-hover);}.SuggestionItem_styles_lpdinw_wykobsk__5ad0f45d:focus{outline:none;}.SuggestionItem_styles_lpdinw_wykobsk__5ad0f45d::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-autocomplete-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.SuggestionItem_styles_lpdinw_wykobsk__5ad0f45d.SuggestionItem_styles_lpdinw_suggestionItemIsFocused__5ad0f45d:before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-autocomplete-focus-color);}
73
73
 
74
- .Popover_styles_mzmbre_s1g1xbt5__2ee8e6b1{display:inline-block;}
75
- .Popover_styles_mzmbre_s12xwbyh__2ee8e6b1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
76
- .Popover_styles_mzmbre_s1pd4d8a__2ee8e6b1{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_mzmbre_s1pd4d8a__2ee8e6b1::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
77
- .Popover_styles_mzmbre_s16xlixz__2ee8e6b1{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1:before{content:'';display:block;position:absolute;background:transparent;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:unset !important;bottom:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top-start']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top-end']:before{top:unset;left:0;right:0;height:var(--plasma-popover-arrow-height);bottom:calc(-1 * var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-start']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-end']:before{top:calc(-1 * var(--plasma-popover-arrow-height));left:0;right:0;bottom:var(--plasma-popover-arrow-height);height:var(--plasma-popover-arrow-height);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left-start']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left-end']:before{width:var(--plasma-popover-arrow-height);height:100%;top:0;right:calc(-1 * var(--plasma-popover-arrow-height));bottom:0;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right-start']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right-end']:before{width:var(--plasma-popover-arrow-height);height:100%;top:0;left:calc(-1 * var(--plasma-popover-arrow-height));bottom:0;}
74
+ .Popover_styles_gh4xvw_s1g1xbt5__0bb7cc15{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
75
+ .Popover_styles_gh4xvw_s12xwbyh__0bb7cc15{display:inline-block;}.Popover_styles_gh4xvw_s12xwbyh__0bb7cc15.Popover_styles_gh4xvw_popoverTargetAsRef__0bb7cc15{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_gh4xvw_s12xwbyh__0bb7cc15.Popover_styles_gh4xvw_popoverTargetAsRef__0bb7cc15 .Popover_styles_gh4xvw_s1g1xbt5__0bb7cc15{width:100%;height:100%;display:block;}
76
+ .Popover_styles_gh4xvw_s1pd4d8a__0bb7cc15{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_gh4xvw_s1pd4d8a__0bb7cc15::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
77
+ .Popover_styles_gh4xvw_s16xlixz__0bb7cc15{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15:before{content:'';display:block;position:absolute;background:transparent;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:unset !important;bottom:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top-start']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top-end']:before{top:unset;left:0;right:0;height:var(--plasma-popover-arrow-height);bottom:calc(-1 * var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-start']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-end']:before{top:calc(-1 * var(--plasma-popover-arrow-height));left:0;right:0;bottom:var(--plasma-popover-arrow-height);height:var(--plasma-popover-arrow-height);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left-start']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left-end']:before{width:var(--plasma-popover-arrow-height);height:100%;top:0;right:calc(-1 * var(--plasma-popover-arrow-height));bottom:0;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right-start']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right-end']:before{width:var(--plasma-popover-arrow-height);height:100%;top:0;left:calc(-1 * var(--plasma-popover-arrow-height));bottom:0;}
78
78
 
79
79
  .Autocomplete_styles_pv6izw_bn6ooh7__4d3c35cc .Autocomplete_styles_pv6izw_popoverWrapper__4d3c35cc,.Autocomplete_styles_pv6izw_bn6ooh7__4d3c35cc .Autocomplete_styles_pv6izw_popoverTarget__4d3c35cc{display:block;}
80
80
  .Autocomplete_styles_pv6izw_s1ih3p9n__4d3c35cc .Autocomplete_styles_pv6izw_popoverRoot__4d3c35cc{display:block;width:var(--s1ih3p9n-0);}
@@ -8,6 +8,7 @@ var base$1 = require('./variations/_size/base.js');
8
8
  var base = require('./variations/_view/base.js');
9
9
  var Breadcrumbs_styles = require('./Breadcrumbs.styles.js');
10
10
  var index = require('./utils/index.js');
11
+ var getShortItems = require('./utils/getShortItems.js');
11
12
 
12
13
  var breadcrumbsRoot = function breadcrumbsRoot(Root) {
13
14
  return /*#__PURE__*/React.forwardRef(function (_ref, outerRootRef) {
@@ -22,7 +23,7 @@ var breadcrumbsRoot = function breadcrumbsRoot(Root) {
22
23
  color: "inherit",
23
24
  size: index.convertIconSize(size)
24
25
  });
25
- var renderItems = index.getRenderItems(items, renderSeparator, showItems);
26
+ var renderItems = getShortItems.getRenderItems(items, renderSeparator, showItems);
26
27
  var itemsWithSeparator = index.addSeparator(renderItems, renderSeparator);
27
28
  return /*#__PURE__*/React.createElement(Root, {
28
29
  ref: outerRootRef,
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.js","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { BreadcrumbsProps } from './Breadcrumbs.types';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base, Separator } from './Breadcrumbs.styles';\nimport { addSeparator, convertIconSize, getRenderItems } from './utils';\n\nexport const breadcrumbsRoot = (Root: RootProps<HTMLDivElement, BreadcrumbsProps>) =>\n forwardRef<HTMLDivElement, BreadcrumbsProps>(\n ({ view, size, separator, items, showItems = items.length, className }, outerRootRef) => {\n const renderSeparator = separator ?? <Separator color=\"inherit\" size={convertIconSize(size)} />;\n const renderItems: ReactNode[] = getRenderItems(items, renderSeparator, showItems);\n const itemsWithSeparator = addSeparator(renderItems, renderSeparator);\n\n return (\n <Root ref={outerRootRef} size={size} view={view} className={cx(className)} items={items}>\n {itemsWithSeparator.map((item, index) => (\n <React.Fragment key={index}>{item}</React.Fragment>\n ))}\n </Root>\n );\n },\n );\n\nexport const breadcrumbsConfig = {\n name: 'Breadcrumbs',\n tag: 'div',\n layout: breadcrumbsRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["breadcrumbsRoot","Root","forwardRef","_ref","outerRootRef","view","size","separator","items","_ref$showItems","showItems","length","className","renderSeparator","React","createElement","Separator","color","convertIconSize","renderItems","getRenderItems","itemsWithSeparator","addSeparator","ref","cx","map","item","index","Fragment","key","breadcrumbsConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;IAWaA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,IAAiD,EAAA;AAAA,EAAA,oBAC7EC,gBAAU,CACN,UAAAC,IAAA,EAAwEC,YAAY,EAAK;AAAA,IAAA,IAAtFC,IAAI,GAAAF,IAAA,CAAJE,IAAI;MAAEC,IAAI,GAAAH,IAAA,CAAJG,IAAI;MAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS;MAAEC,KAAK,GAAAL,IAAA,CAALK,KAAK;MAAAC,cAAA,GAAAN,IAAA,CAAEO,SAAS;AAATA,MAAAA,SAAS,GAAAD,cAAA,KAAA,KAAA,CAAA,GAAGD,KAAK,CAACG,MAAM,GAAAF,cAAA;MAAEG,SAAS,GAAAT,IAAA,CAAT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ACF8B,MAAAA,GAAG,EAAEE,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNlC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
1
+ {"version":3,"file":"Breadcrumbs.js","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { BreadcrumbsProps } from './Breadcrumbs.types';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base, Separator } from './Breadcrumbs.styles';\nimport { addSeparator, convertIconSize } from './utils';\nimport { getRenderItems } from './utils/getShortItems';\n\nexport const breadcrumbsRoot = (Root: RootProps<HTMLDivElement, BreadcrumbsProps>) =>\n forwardRef<HTMLDivElement, BreadcrumbsProps>(\n ({ view, size, separator, items, showItems = items.length, className }, outerRootRef) => {\n const renderSeparator = separator ?? <Separator color=\"inherit\" size={convertIconSize(size)} />;\n const renderItems: ReactNode[] = getRenderItems(items, renderSeparator, showItems);\n const itemsWithSeparator = addSeparator(renderItems, renderSeparator);\n\n return (\n <Root ref={outerRootRef} size={size} view={view} className={cx(className)} items={items}>\n {itemsWithSeparator.map((item, index) => (\n <React.Fragment key={index}>{item}</React.Fragment>\n ))}\n </Root>\n );\n },\n );\n\nexport const breadcrumbsConfig = {\n name: 'Breadcrumbs',\n tag: 'div',\n layout: breadcrumbsRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["breadcrumbsRoot","Root","forwardRef","_ref","outerRootRef","view","size","separator","items","_ref$showItems","showItems","length","className","renderSeparator","React","createElement","Separator","color","convertIconSize","renderItems","getRenderItems","itemsWithSeparator","addSeparator","ref","cx","map","item","index","Fragment","key","breadcrumbsConf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IAAI,EAAEC,KAAK,EAAA;AAAA,MAAA,oBAChCb,KAAA,CAAAC,aAAA,CAACD,KAAK,CAACc,QAAQ,EAAA;AAACC,QAAAA,GAAG,EAAEF,KAAAA;AAAM,OAAA,EAAED,IAAqB,CAAC,CAAA;AAAA,KACtD,CACC,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMI,iBAAiB,GAAG;AAC7BC,EAAAA,IAAI,EAAE,aAAa;AACnBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEjC,eAAe;AACvBkC,EAAAA,IAAI,EAAJA,uBAAI;AACJC,EAAAA,UAAU,EAAE;AACR9B,IAAAA,IAAI,EAAE;AACF+B,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACD/B,IAAAA,IAAI,EAAE;AACF8B,MAAAA,GAAG,EAAEE,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNlC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
@@ -0,0 +1,3 @@
1
+
2
+ .BreadcrumbShorter_styles_czqxks_s19f9x1v__c6484ba8{cursor:pointer;position:relative;}.BreadcrumbShorter_styles_czqxks_s19f9x1v__c6484ba8::before{content:'';position:absolute;top:0.125rem;left:0.125rem;right:0.125rem;bottom:0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:0;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.BreadcrumbShorter_styles_czqxks_s19f9x1v__c6484ba8.BreadcrumbShorter_styles_czqxks_focusVisible__c6484ba8:focus::before,.BreadcrumbShorter_styles_czqxks_s19f9x1v__c6484ba8[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem var(--plasma-breadcrumbs-focus-outline-color);}
3
+ .BreadcrumbShorter_styles_czqxks_s1ald2fi__c6484ba8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-breadcrumbs-gap);}
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var BreadcrumbShorter = require('../ui/BreadcrumbShorter/BreadcrumbShorter.js');
7
+ var Breadcrumbs_styles = require('../Breadcrumbs.styles.js');
8
+
9
+ var shortItems = function shortItems(items, renderSeparator, showItems) {
10
+ if (!showItems || showItems < 2 || items.length <= showItems) {
11
+ return items;
12
+ }
13
+ var leftSlice = Math.floor(showItems / 2);
14
+ var rightSlice = items.length - leftSlice - showItems % 2;
15
+ var renderItems = items.slice(leftSlice, rightSlice);
16
+ var shorter = /*#__PURE__*/React.createElement(BreadcrumbShorter.BreadcrumbShorter, {
17
+ separator: renderSeparator
18
+ }, renderItems);
19
+ items.splice(leftSlice, rightSlice - leftSlice, shorter);
20
+ return items;
21
+ };
22
+ var getRenderItems = function getRenderItems(items, renderSeparator, showItems) {
23
+ var renderItems = shortItems(items.map(function (item) {
24
+ if (item.renderItem) {
25
+ return item.renderItem();
26
+ }
27
+ var title = item.title,
28
+ disabled = item.disabled,
29
+ href = item.href,
30
+ onClick = item.onClick;
31
+ return /*#__PURE__*/React.createElement(Breadcrumbs_styles.StyledLink, {
32
+ tabIndex: 0,
33
+ href: href,
34
+ disabled: disabled,
35
+ onClick: onClick,
36
+ isHref: Boolean(href || onClick)
37
+ }, title);
38
+ }), renderSeparator, showItems);
39
+ return renderItems;
40
+ };
41
+
42
+ exports.getRenderItems = getRenderItems;
43
+ exports.shortItems = shortItems;
44
+ //# sourceMappingURL=getShortItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getShortItems.js","sources":["../../../../src/components/Breadcrumbs/utils/getShortItems.tsx"],"sourcesContent":["import React from 'react';\nimport type { ReactNode } from 'react';\n\nimport { BreadcrumbShorter } from '../ui/BreadcrumbShorter/BreadcrumbShorter';\nimport { StyledLink } from '../Breadcrumbs.styles';\nimport { BreadcrumbsItem } from '../Breadcrumbs.types';\n\nexport const shortItems = (items: ReactNode[], renderSeparator: ReactNode, showItems?: number) => {\n if (!showItems || showItems < 2 || items.length <= showItems) {\n return items;\n }\n\n const leftSlice = Math.floor(showItems / 2);\n const rightSlice = items.length - leftSlice - (showItems % 2);\n\n const renderItems: ReactNode[] = items.slice(leftSlice, rightSlice);\n const shorter = <BreadcrumbShorter separator={renderSeparator}>{renderItems}</BreadcrumbShorter>;\n items.splice(leftSlice, rightSlice - leftSlice, shorter);\n return items;\n};\n\nexport const getRenderItems = (items: BreadcrumbsItem[], renderSeparator: ReactNode, showItems?: number) => {\n const renderItems = shortItems(\n items.map((item: BreadcrumbsItem) => {\n if (item.renderItem) {\n return item.renderItem();\n }\n\n const { title, disabled, href, onClick } = item;\n\n return (\n <StyledLink\n tabIndex={0}\n href={href}\n disabled={disabled}\n onClick={onClick}\n isHref={Boolean(href || onClick)}\n >\n {title}\n </StyledLink>\n );\n }),\n renderSeparator,\n showItems,\n );\n\n return renderItems;\n};\n"],"names":["shortItems","items","renderSeparator","showItems","length","leftSlice","Math","floor","rightSlice","renderItems","slice","shorter","React","createElement","BreadcrumbShorter","separator","splice","getRenderItems","map","item","renderItem","title","disabled","href","onClick","StyledLink","tabIndex","isHref","Boolean"],"mappings":";;;;;;;;AAOO,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,KAAkB,EAAEC,eAA0B,EAAEC,SAAkB,EAAK;AAC9F,EAAA,IAAI,CAACA,SAAS,IAAIA,SAAS,GAAG,CAAC,IAAIF,KAAK,CAACG,MAAM,IAAID,SAAS,EAAE;AAC1D,IAAA,OAAOF,KAAK,CAAA;AAChB,GAAA;EAEA,IAAMI,SAAS,GAAGC,IAAI,CAACC,KAAK,CAACJ,SAAS,GAAG,CAAC,CAAC,CAAA;EAC3C,IAAMK,UAAU,GAAGP,KAAK,CAAC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;AAED,EAAA,OAAOM,WAAW,CAAA;AACtB;;;;;"}
@@ -2,23 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var React = require('react');
6
- var BreadcrumbShorter = require('../ui/BreadcrumbShorter/BreadcrumbShorter.js');
7
- var Breadcrumbs_styles = require('../Breadcrumbs.styles.js');
8
-
9
- var shortItems = function shortItems(items, renderSeparator, showItems) {
10
- if (!showItems || showItems < 2 || items.length <= showItems) {
11
- return items;
12
- }
13
- var leftSlice = Math.floor(showItems / 2);
14
- var rightSlice = items.length - leftSlice - showItems % 2;
15
- var renderItems = items.slice(leftSlice, rightSlice);
16
- var shorter = /*#__PURE__*/React.createElement(BreadcrumbShorter.BreadcrumbShorter, {
17
- separator: renderSeparator
18
- }, renderItems);
19
- items.splice(leftSlice, rightSlice - leftSlice, shorter);
20
- return items;
21
- };
22
5
  var convertIconSize = function convertIconSize(size) {
23
6
  switch (size) {
24
7
  case 's':
@@ -28,25 +11,6 @@ var convertIconSize = function convertIconSize(size) {
28
11
  return 's';
29
12
  }
30
13
  };
31
- var getRenderItems = function getRenderItems(items, renderSeparator, showItems) {
32
- var renderItems = shortItems(items.map(function (item) {
33
- if (item.renderItem) {
34
- return item.renderItem();
35
- }
36
- var title = item.title,
37
- disabled = item.disabled,
38
- href = item.href,
39
- onClick = item.onClick;
40
- return /*#__PURE__*/React.createElement(Breadcrumbs_styles.StyledLink, {
41
- tabIndex: 0,
42
- href: href,
43
- disabled: disabled,
44
- onClick: onClick,
45
- isHref: Boolean(href || onClick)
46
- }, title);
47
- }), renderSeparator, showItems);
48
- return renderItems;
49
- };
50
14
  var addSeparator = function addSeparator(items, renderSeparator) {
51
15
  return items.flatMap(function (item, idx) {
52
16
  return idx < items.length - 1 ? [item, renderSeparator] : [item];
@@ -55,6 +19,4 @@ var addSeparator = function addSeparator(items, renderSeparator) {
55
19
 
56
20
  exports.addSeparator = addSeparator;
57
21
  exports.convertIconSize = convertIconSize;
58
- exports.getRenderItems = getRenderItems;
59
- exports.shortItems = shortItems;
60
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Breadcrumbs/utils/index.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\n\nimport { BreadcrumbShorter } from '../ui/BreadcrumbShorter/BreadcrumbShorter';\nimport { StyledLink } from '../Breadcrumbs.styles';\nimport { BreadcrumbsItem } from '../Breadcrumbs.types';\n\nexport const shortItems = (items: ReactNode[], renderSeparator: ReactNode, showItems?: number) => {\n if (!showItems || showItems < 2 || items.length <= showItems) {\n return items;\n }\n\n const leftSlice = Math.floor(showItems / 2);\n const rightSlice = items.length - leftSlice - (showItems % 2);\n\n const renderItems: ReactNode[] = items.slice(leftSlice, rightSlice);\n const shorter = <BreadcrumbShorter separator={renderSeparator}>{renderItems}</BreadcrumbShorter>;\n items.splice(leftSlice, rightSlice - leftSlice, shorter);\n return items;\n};\n\nexport const convertIconSize = (size?: string) => {\n switch (size) {\n case 's':\n case 'xs':\n return 'xs';\n default:\n return 's';\n }\n};\n\nexport const getRenderItems = (items: BreadcrumbsItem[], renderSeparator: ReactNode, showItems?: number) => {\n const renderItems = shortItems(\n items.map((item: BreadcrumbsItem) => {\n if (item.renderItem) {\n return item.renderItem();\n }\n\n const { title, disabled, href, onClick } = item;\n\n return (\n <StyledLink\n tabIndex={0}\n href={href}\n disabled={disabled}\n onClick={onClick}\n isHref={Boolean(href || onClick)}\n >\n {title}\n </StyledLink>\n );\n }),\n renderSeparator,\n showItems,\n );\n\n return renderItems;\n};\n\nexport const addSeparator = (items: ReactNode[], renderSeparator: ReactNode) => {\n return items.flatMap((item, idx) => (idx < items.length - 1 ? [item, renderSeparator] : [item]));\n};\n"],"names":["shortItems","items","renderSeparator","showItems","length","leftSlice","Math","floor","rightSlice","renderItems","slice","shorter","React","createElement","BreadcrumbShorter","separator","splice","convertIconSize","size","getRenderItems","map","item","renderItem","title","disabled","href","onClick","StyledLink","t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IA,IAAI,CAACC,UAAU,EAAE;AACjB,MAAA,OAAOD,IAAI,CAACC,UAAU,EAAE,CAAA;AAC5B,KAAA;AAEA,IAAA,IAAQC,KAAK,GAA8BF,IAAI,CAAvCE,KAAK;MAAEC,QAAQ,GAAoBH,IAAI,CAAhCG,QAAQ;MAAEC,IAAI,GAAcJ,IAAI,CAAtBI,IAAI;MAAEC,OAAO,GAAKL,IAAI,CAAhBK,OAAO,CAAA;AAEtC,IAAA,oBACId,KAAA,CAAAC,aAAA,CAACc,6BAAU,EAAA;AACPC,MAAAA,QAAQ,EAAE,CAAE;AACZH,MAAAA,IAAI,EAAEA,IAAK;AACXD,MAAAA,QAAQ,EAAEA,QAAS;AACnBE,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,MAAM,EAAEC,OAAO,CAACL,IAAI,IAAIC,OAAO,CAAA;AAAE,KAAA,EAEhCH,KACO,CAAC,CAAA;AAErB,GAAC,CAAC,EACFrB,eAAe,EACfC,SACJ,CAAC,CAAA;AAED,EAAA,OAAOM,WAAW,CAAA;AACtB,EAAC;AAEM,IAAMsB,YAAY,GAAG,SAAfA,YAAYA,CAAI9B,KAAkB,EAAEC,eAA0B,EAAK;AAC5E,EAAA,OAAOD,KAAK,CAAC+B,OAAO,CAAC,UAACX,IAAI,EAAEY,GAAG,EAAA;AAAA,IAAA,OAAMA,GAAG,GAAGhC,KAAK,CAACG,MAAM,GAAG,CAAC,GAAG,CAACiB,IAAI,EAAEnB,eAAe,CAAC,GAAG,CAACmB,IAAI,CAAC,CAAA;AAAA,GAAC,CAAC,CAAA;AACpG;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Breadcrumbs/utils/index.ts"],"sourcesContent":["import { ReactNode } from 'react';\n\nexport const convertIconSize = (size?: string) => {\n switch (size) {\n case 's':\n case 'xs':\n return 'xs';\n default:\n return 's';\n }\n};\n\nexport const addSeparator = (items: ReactNode[], renderSeparator: ReactNode) => {\n return items.flatMap((item, idx) => (idx < items.length - 1 ? [item, renderSeparator] : [item]));\n};\n"],"names":["convertIconSize","size","addSeparator","items","renderSeparator","flatMap","item","idx","length"],"mappings":";;;;IAEaA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,IAAa,EAAK;AAC9C,EAAA,QAAQA,IAAI;AACR,IAAA,KAAK,GAAG,CAAA;AACR,IAAA,KAAK,IAAI;AACL,MAAA,OAAO,IAAI,CAAA;AACf,IAAA;AACI,MAAA,OAAO,GAAG,CAAA;AAClB,GAAA;AACJ,EAAC;AAEM,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAIC,KAAkB,EAAEC,eAA0B,EAAK;AAC5E,EAAA,OAAOD,KAAK,CAACE,OAAO,CAAC,UAACC,IAAI,EAAEC,GAAG,EAAA;AAAA,IAAA,OAAMA,GAAG,GAAGJ,KAAK,CAACK,MAAM,GAAG,CAAC,GAAG,CAACF,IAAI,EAAEF,eAAe,CAAC,GAAG,CAACE,IAAI,CAAC,CAAA;AAAA,GAAC,CAAC,CAAA;AACpG;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDateWithModification.js","sources":["../../../../src/components/Calendar/utils/getDateWithModification.ts"],"sourcesContent":["import type { DateItem, DateObject, DisabledDay, EventDay } from '../Calendar.types';\nimport type { CalendarStateType } from '..';\nimport { CalendarState } from '../store/types';\n\nimport { getPropsMap } from '.';\n\ntype GetDatesWithModificationsArgs = {\n dates: DateItem[];\n type: CalendarStateType;\n eventList?: EventDay[];\n disabledList?: DisabledDay[];\n includeEdgeDates?: boolean;\n min?: Date;\n max?: Date;\n};\n\ntype DateOperationHandler = {\n [k in CalendarStateType]: {\n [t in 'add' | 'subtract']: (date: Date) => number;\n };\n};\n\nconst dateOperationHandler: DateOperationHandler = {\n Days: {\n add: (date: Date) => date.setDate(date.getDate() + 1),\n subtract: (date: Date) => date.setDate(date.getDate() - 1),\n },\n Months: {\n add: (date: Date) => date.setMonth(date.getMonth() + 1),\n subtract: (date: Date) => date.setMonth(date.getMonth() - 1),\n },\n Quarters: {\n add: (date: Date) => date.setMonth(date.getMonth() + 3),\n subtract: (date: Date) => date.setMonth(date.getMonth() - 3),\n },\n Years: {\n add: (date: Date) => date.setFullYear(date.getFullYear() + 1),\n subtract: (date: Date) => date.setFullYear(date.getFullYear() - 1),\n },\n};\n\nconst normalizeDate = (date: Date, type: CalendarStateType) => {\n if (type === CalendarState.Months || type === CalendarState.Years) {\n date.setDate(1);\n }\n\n if (type === CalendarState.Years) {\n date.setMonth(0);\n }\n};\n\nconst isDisabledNextDate = ({ year, monthIndex, day }: DateObject, type: CalendarStateType, max?: Date) => {\n if (!max) {\n return false;\n }\n\n const maxDate = new Date(max);\n\n normalizeDate(maxDate, type);\n\n const currentDate = new Date(year, monthIndex, day);\n dateOperationHandler[type].add(currentDate);\n\n let isOut = true;\n\n while (isOut && currentDate <= maxDate) {\n isOut = maxDate <= currentDate;\n\n dateOperationHandler[type].add(currentDate);\n }\n\n return isOut;\n};\n\nconst isDisabledPreviousDate = ({ year, monthIndex, day }: DateObject, type: CalendarStateType, min?: Date) => {\n if (!min) {\n return false;\n }\n\n const minDate = new Date(min);\n\n normalizeDate(minDate, type);\n\n const currentDate = new Date(year, monthIndex, day);\n dateOperationHandler[type].subtract(currentDate);\n\n let isOut = true;\n\n while (isOut && currentDate >= minDate) {\n isOut = minDate >= currentDate;\n\n dateOperationHandler[type].subtract(currentDate);\n }\n\n return isOut;\n};\n\nconst getDisabledDates = (list: DateObject[], type: CalendarStateType, min?: Date, max?: Date) => {\n const disabledDate: string[] = [];\n\n if (isDisabledPreviousDate(list[0], type, min)) {\n disabledDate.push('previous');\n }\n\n if (isDisabledNextDate(list[list.length - 1], type, max)) {\n disabledDate.push('next');\n }\n\n return disabledDate.join(',');\n};\n\nconst isDisabledArrowLeft = (date: Date, min?: Date) => {\n const currentDate = new Date(date);\n\n currentDate.setDate(currentDate.getDate() - 1);\n\n return (min && min >= currentDate) || (min && min >= date);\n};\n\nconst isDisabledArrowRight = (date: Date, max?: Date) => {\n const currentDate = new Date(date);\n\n currentDate.setDate(currentDate.getDate() + 1);\n\n return (max && max <= currentDate) || (max && max <= date);\n};\n\nconst isDisabledArrowUp = (date: Date, min?: Date) => {\n const currentDate = new Date(date);\n\n currentDate.setDate(date.getDate() - 7);\n\n return min && min >= currentDate;\n};\n\nconst isDisabledArrowDown = (date: Date, max?: Date) => {\n const currentDate = new Date(date);\n\n currentDate.setDate(date.getDate() + 7);\n\n return max && max <= currentDate;\n};\n\nconst getDisabledArrowKey = (currentDate: Date, min?: Date, max?: Date) => {\n const disabledArrowKey: string[] = [];\n\n if (isDisabledArrowLeft(currentDate, min)) {\n disabledArrowKey.push('left');\n }\n\n if (isDisabledArrowRight(currentDate, max)) {\n disabledArrowKey.push('right');\n }\n\n if (isDisabledArrowDown(currentDate, max)) {\n disabledArrowKey.push('down');\n }\n\n if (isDisabledArrowUp(currentDate, min)) {\n disabledArrowKey.push('up');\n }\n\n return disabledArrowKey.join(',');\n};\n\n/**\n * Метод модифицирующий дату (добавляющий свойства events и disabled).\n */\nexport const getDatesWithModifications = ({\n dates,\n type,\n eventList = [],\n disabledList = [],\n includeEdgeDates,\n min,\n max,\n}: GetDatesWithModificationsArgs) => {\n const eventsMap = getPropsMap(eventList);\n const disabledDatesMap = getPropsMap(disabledList);\n\n const filteredDates =\n type === CalendarState.Days ? dates.filter(({ isDayInCurrentMonth }) => isDayInCurrentMonth) : dates;\n const datesList = filteredDates.map(({ date }) => date);\n\n const disabledDates = getDisabledDates(datesList, type, min, max);\n\n return dates.map((dateItem) => {\n const { date } = dateItem;\n const { year, monthIndex, day } = date;\n\n const keyDate = `${year}-${monthIndex}-${day}`;\n const currentDate = new Date(year, monthIndex, day);\n\n const minDate = min && new Date(min);\n minDate && normalizeDate(minDate, type);\n\n const maxDate = max && new Date(max);\n maxDate && normalizeDate(maxDate, type);\n\n let minValue: boolean | undefined;\n let maxValue: boolean | undefined;\n\n if (type === CalendarState.Days) {\n minValue = min && (includeEdgeDates ? min > currentDate : min >= currentDate);\n maxValue = max && (includeEdgeDates ? max < currentDate : max <= currentDate);\n } else {\n minValue = minDate && minDate > currentDate;\n maxValue = maxDate && maxDate < currentDate;\n }\n\n const isOutOfMinMaxRange = minValue || maxValue;\n\n dateItem.events = eventsMap.get(keyDate);\n dateItem.disabled = disabledDatesMap.has(keyDate) || isOutOfMinMaxRange;\n\n dateItem.isOutOfMinMaxRange = isOutOfMinMaxRange;\n dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max);\n dateItem.disabledDates = disabledDates;\n\n return dateItem;\n });\n};\n"],"names":["dateOperationHandler","Days","add","date","setDate","getDate","subtract","Months","setMonth","getMonth","Quarters","Years","setFullYear","getFullYear","normalizeDate","type","CalendarState","isDisabledNextDate","_ref","max","year","monthIndex","day","maxDate","Date","currentDate","isOut","isDisabledPreviousDate","_ref2","min","minDate","getDisabledDates","list","disabledDate","push","length","join","isDisabledArrowLeft","isDisabledArrowRight","isDisabledArrowUp","isDisabledArrowDown","getDisabledArrowKey","disabledArrowKey","getDatesWithModifications","_ref3","dates","_ref3$eventList","eventList","_ref3$disabledList","disabledList","includeEdgeDates","eventsMap","getPropsMap","disabledDatesMap","filteredDates","filter","_ref4","isDayInCurrentMonth","datesList","map","_ref5","disabledDates","dateItem","keyDate","concat","minValue","maxValue","isOutOfMinMaxRange","events","get","disabled","has"],"mappings":";;;;;;;AAsBA,IAAMA,oBAA0C,GAAG;AAC/CC,EAAAA,IAAI,EAAE;IACFC,GAAG,EAAE,SAAAA,GAAAA,CAACC,IAAU,EAAA;MAAA,OAAKA,IAAI,CAACC,OAAO,CAACD,IAAI,CAACE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;AAAA,KAAA;IACrDC,QAAQ,EAAE,SAAAA,QAAAA,CAACH,IAAU,EAAA;MAAA,OAAKA,IAAI,CAACC,OAAO,CAACD,IAAI,CAACE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;AAAA,KAAA;GAC7D;AACDE,EAAA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B,CAACkB,GAAG,CAACR,OAAO,CAAC,IAAII,kBAAkB,CAAA;IAEvEL,QAAQ,CAACK,kBAAkB,GAAGA,kBAAkB,CAAA;IAChDL,QAAQ,CAACpB,gBAAgB,GAAGD,mBAAmB,CAAChB,WAAW,EAAEI,GAAG,EAAEV,GAAG,CAAC,CAAA;IACtE2C,QAAQ,CAACD,aAAa,GAAGA,aAAa,CAAA;AAEtC,IAAA,OAAOC,QAAQ,CAAA;AACnB,GAAC,CAAC,CAAA;AACN;;;;"}
1
+ {"version":3,"file":"getDateWithModification.js","sources":["../../../../src/components/Calendar/utils/getDateWithModification.ts"],"sourcesContent":["import type { DateItem, DateObject, DisabledDay, EventDay } from '../Calendar.types';\nimport { CalendarState, CalendarStateType } from '../store/types';\n\nimport { getPropsMap } from './calendarGridHelper';\n\ntype GetDatesWithModificationsArgs = {\n dates: DateItem[];\n type: CalendarStateType;\n eventList?: EventDay[];\n disabledList?: DisabledDay[];\n includeEdgeDates?: boolean;\n min?: Date;\n max?: Date;\n};\n\ntype DateOperationHandler = {\n [k in CalendarStateType]: {\n [t in 'add' | 'subtract']: (date: Date) => number;\n };\n};\n\nconst dateOperationHandler: DateOperationHandler = {\n Days: {\n add: (date: Date) => date.setDate(date.getDate() + 1),\n subtract: (date: Date) => date.setDate(date.getDate() - 1),\n },\n Months: {\n add: (date: Date) => date.setMonth(date.getMonth() + 1),\n subtract: (date: Date) => date.setMonth(date.getMonth() - 1),\n },\n Quarters: {\n add: (date: Date) => date.setMonth(date.getMonth() + 3),\n subtract: (date: Date) => date.setMonth(date.getMonth() - 3),\n },\n Years: {\n add: (date: Date) => date.setFullYear(date.getFullYear() + 1),\n subtract: (date: Date) => date.setFullYear(date.getFullYear() - 1),\n },\n};\n\nconst normalizeDate = (date: Date, type: CalendarStateType) => {\n if (type === CalendarState.Months || type === CalendarState.Years) {\n date.setDate(1);\n }\n\n if (type === CalendarState.Years) {\n date.setMonth(0);\n }\n};\n\nconst isDisabledNextDate = ({ year, monthIndex, day }: DateObject, type: CalendarStateType, max?: Date) => {\n if (!max) {\n return false;\n }\n\n const maxDate = new Date(max);\n\n normalizeDate(maxDate, type);\n\n const currentDate = new Date(year, monthIndex, day);\n dateOperationHandler[type].add(currentDate);\n\n let isOut = true;\n\n while (isOut && currentDate <= maxDate) {\n isOut = maxDate <= currentDate;\n\n dateOperationHandler[type].add(currentDate);\n }\n\n return isOut;\n};\n\nconst isDisabledPreviousDate = ({ year, monthIndex, day }: DateObject, type: CalendarStateType, min?: Date) => {\n if (!min) {\n return false;\n }\n\n const minDate = new Date(min);\n\n normalizeDate(minDate, type);\n\n const currentDate = new Date(year, monthIndex, day);\n dateOperationHandler[type].subtract(currentDate);\n\n let isOut = true;\n\n while (isOut && currentDate >= minDate) {\n isOut = minDate >= currentDate;\n\n dateOperationHandler[type].subtract(currentDate);\n }\n\n return isOut;\n};\n\nconst getDisabledDates = (list: DateObject[], type: CalendarStateType, min?: Date, max?: Date) => {\n const disabledDate: string[] = [];\n\n if (isDisabledPreviousDate(list[0], type, min)) {\n disabledDate.push('previous');\n }\n\n if (isDisabledNextDate(list[list.length - 1], type, max)) {\n disabledDate.push('next');\n }\n\n return disabledDate.join(',');\n};\n\nconst isDisabledArrowLeft = (date: Date, min?: Date) => {\n const currentDate = new Date(date);\n\n currentDate.setDate(currentDate.getDate() - 1);\n\n return (min && min >= currentDate) || (min && min >= date);\n};\n\nconst isDisabledArrowRight = (date: Date, max?: Date) => {\n const currentDate = new Date(date);\n\n currentDate.setDate(currentDate.getDate() + 1);\n\n return (max && max <= currentDate) || (max && max <= date);\n};\n\nconst isDisabledArrowUp = (date: Date, min?: Date) => {\n const currentDate = new Date(date);\n\n currentDate.setDate(date.getDate() - 7);\n\n return min && min >= currentDate;\n};\n\nconst isDisabledArrowDown = (date: Date, max?: Date) => {\n const currentDate = new Date(date);\n\n currentDate.setDate(date.getDate() + 7);\n\n return max && max <= currentDate;\n};\n\nconst getDisabledArrowKey = (currentDate: Date, min?: Date, max?: Date) => {\n const disabledArrowKey: string[] = [];\n\n if (isDisabledArrowLeft(currentDate, min)) {\n disabledArrowKey.push('left');\n }\n\n if (isDisabledArrowRight(currentDate, max)) {\n disabledArrowKey.push('right');\n }\n\n if (isDisabledArrowDown(currentDate, max)) {\n disabledArrowKey.push('down');\n }\n\n if (isDisabledArrowUp(currentDate, min)) {\n disabledArrowKey.push('up');\n }\n\n return disabledArrowKey.join(',');\n};\n\n/**\n * Метод модифицирующий дату (добавляющий свойства events и disabled).\n */\nexport const getDatesWithModifications = ({\n dates,\n type,\n eventList = [],\n disabledList = [],\n includeEdgeDates,\n min,\n max,\n}: GetDatesWithModificationsArgs) => {\n const eventsMap = getPropsMap(eventList);\n const disabledDatesMap = getPropsMap(disabledList);\n\n const filteredDates =\n type === CalendarState.Days ? dates.filter(({ isDayInCurrentMonth }) => isDayInCurrentMonth) : dates;\n const datesList = filteredDates.map(({ date }) => date);\n\n const disabledDates = getDisabledDates(datesList, type, min, max);\n\n return dates.map((dateItem) => {\n const { date } = dateItem;\n const { year, monthIndex, day } = date;\n\n const keyDate = `${year}-${monthIndex}-${day}`;\n const currentDate = new Date(year, monthIndex, day);\n\n const minDate = min && new Date(min);\n minDate && normalizeDate(minDate, type);\n\n const maxDate = max && new Date(max);\n maxDate && normalizeDate(maxDate, type);\n\n let minValue: boolean | undefined;\n let maxValue: boolean | undefined;\n\n if (type === CalendarState.Days) {\n minValue = min && (includeEdgeDates ? min > currentDate : min >= currentDate);\n maxValue = max && (includeEdgeDates ? max < currentDate : max <= currentDate);\n } else {\n minValue = minDate && minDate > currentDate;\n maxValue = maxDate && maxDate < currentDate;\n }\n\n const isOutOfMinMaxRange = minValue || maxValue;\n\n dateItem.events = eventsMap.get(keyDate);\n dateItem.disabled = disabledDatesMap.has(keyDate) || isOutOfMinMaxRange;\n\n dateItem.isOutOfMinMaxRange = isOutOfMinMaxRange;\n dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max);\n dateItem.disabledDates = disabledDates;\n\n return dateItem;\n });\n};\n"],"names":["dateOperationHandler","Days","add","date","setDate","getDate","subtract","Months","setMonth","getMonth","Quarters","Years","setFullYear","getFullYear","normalizeDate","type","CalendarState","isDisabledNextDate","_ref","max","year","monthIndex","day","maxDate","Date","currentDate","isOut","isDisabledPreviousDate","_ref2","min","minDate","getDisabledDates","list","disabledDate","push","length","join","isDisabledArrowLeft","isDisabledArrowRight","isDisabledArrowUp","isDisabledArrowDown","getDisabledArrowKey","disabledArrowKey","getDatesWithModifications","_ref3","dates","_ref3$eventList","eventList","_ref3$disabledList","disabledList","includeEdgeDates","eventsMap","getPropsMap","disabledDatesMap","filteredDates","filter","_ref4","isDayInCurrentMonth","datesList","map","_ref5","disabledDates","dateItem","keyDate","concat","minValue","maxValue","isOutOfMinMaxRange","events","get","disabled","has"],"mappings":";;;;;;;AAqBA,IAAMA,oBAA0C,GAAG;AAC/CC,EAAAA,IAAI,EAAE;IACFC,GAAG,EAAE,SAAAA,GAAAA,CAACC,IAAU,EAAA;MAAA,OAAKA,IAAI,CAACC,OAAO,CAACD,IAAI,CAACE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;AAAA,KAAA;IACrDC,QAAQ,EAAE,SAAAA,QAAAA,CAACH,IAAU,EAAA;MAAA,OAAKA,IAAI,CAACC,OAAO,CAACD,IAAI,CAACE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;AAAA,KAAA;GAC7D;AACDE,EAAAA,MAAM,EAAE;IACJL,GAAG,EAAE,SAAAA,GAAAA,CAACC,IAAU,EAAA;MAAA,OAAKA,IAAI,CAACK,QAAQ,CAACL,IAAI,CAACM,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAA;AAAA,KAAA;IACvDH,QAAQ,EAAE,SAAAA,QAAAA,CAACH,IAAU,EAAA;MAAA,OAAKA,IAAI,CAACK,QAAQ,CAACL,IAAI,CAACM,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAA;AAAA,KAAA;GAC/D;AACDC,EAAAA,QAAQ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 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ var Context = /*#__PURE__*/React.createContext({});
8
+
9
+ exports.Context = Context;
10
+ //# sourceMappingURL=Combobox.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.context.js","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.context.tsx"],"sourcesContent":["import { createContext } from 'react';\n\nimport type { ItemContext } from './Combobox.types';\n\nexport const Context = createContext<ItemContext>({} as ItemContext);\n"],"names":["Context","createContext"],"mappings":";;;;;;IAIaA,OAAO,gBAAGC,mBAAa,CAAc,EAAiB;;;;"}
@@ -62,10 +62,10 @@
62
62
 
63
63
  .base_1x99605_b10o15xy__faec7753 .base_1x99605_hq39zt5__faec7753{--plasma-tooltip-padding-top:var(--plasma-textfield__tooltip-padding-top);--plasma-tooltip-padding-right:var(--plasma-textfield__tooltip-padding-right);--plasma-tooltip-padding-bottom:var(--plasma-textfield__tooltip-padding-bottom);--plasma-tooltip-padding-left:var(--plasma-textfield__tooltip-padding-left);--plasma-tooltip-min-height:var(--plasma-textfield__tooltip-min-height);--plasma-tooltip-border-radius:var(--plasma-textfield__tooltip-border-radius);--plasma-tooltip-text-font-family:var(--plasma-textfield__tooltip-text-font-family);--plasma-tooltip-text-font-size:var(--plasma-textfield__tooltip-text-font-size);--plasma-tooltip-text-font-style:var(--plasma-textfield__tooltip-text-font-style);--plasma-tooltip-text-font-weight:var(--plasma-textfield__tooltip-text-font-weight);--plasma-tooltip-text-font-letter-spacing:var(--plasma-textfield__tooltip-text-font-letter-spacing);--plasma-tooltip-text-font-line-height:var(--plasma-textfield__tooltip-text-font-line-height);--plasma-tooltip-content-left-margin:var(--plasma-textfield__tooltip-content-left-margin);--plasma-tooltip-arrow-mask-width:var(--plasma-textfield__tooltip-arrow-mask-width);--plasma-tooltip-arrow-mask-height:var(--plasma-textfield__tooltip-arrow-mask-height);--plasma-tooltip-arrow-mask-image:var(--plasma-textfield__tooltip-arrow-mask-image);--plasma-tooltip-arrow-height:var(--plasma-textfield__tooltip-arrow-height);--plasma-tooltip-arrow-edge-margin:var(--plasma-textfield__tooltip-arrow-edge-margin);--plasma-tooltip-arrow-background:var(--plasma-textfield__tooltip-arrow-background);}
64
64
 
65
- .Popover_styles_mzmbre_s1g1xbt5__2ee8e6b1{display:inline-block;}
66
- .Popover_styles_mzmbre_s12xwbyh__2ee8e6b1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
67
- .Popover_styles_mzmbre_s1pd4d8a__2ee8e6b1{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_mzmbre_s1pd4d8a__2ee8e6b1::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
68
- .Popover_styles_mzmbre_s16xlixz__2ee8e6b1{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1:before{content:'';display:block;position:absolute;background:transparent;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right-start'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right-end'] > .Popover_styles_mzmbre_popoverArrow__2ee8e6b1{top:unset !important;bottom:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top-start']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='top-end']:before{top:unset;left:0;right:0;height:var(--plasma-popover-arrow-height);bottom:calc(-1 * var(--plasma-popover-arrow-height));}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-start']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='bottom-end']:before{top:calc(-1 * var(--plasma-popover-arrow-height));left:0;right:0;bottom:var(--plasma-popover-arrow-height);height:var(--plasma-popover-arrow-height);}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left-start']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='left-end']:before{width:var(--plasma-popover-arrow-height);height:100%;top:0;right:calc(-1 * var(--plasma-popover-arrow-height));bottom:0;}.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right-start']:before,.Popover_styles_mzmbre_s16xlixz__2ee8e6b1[data-popper-placement^='right-end']:before{width:var(--plasma-popover-arrow-height);height:100%;top:0;left:calc(-1 * var(--plasma-popover-arrow-height));bottom:0;}
65
+ .Popover_styles_gh4xvw_s1g1xbt5__0bb7cc15{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
66
+ .Popover_styles_gh4xvw_s12xwbyh__0bb7cc15{display:inline-block;}.Popover_styles_gh4xvw_s12xwbyh__0bb7cc15.Popover_styles_gh4xvw_popoverTargetAsRef__0bb7cc15{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_gh4xvw_s12xwbyh__0bb7cc15.Popover_styles_gh4xvw_popoverTargetAsRef__0bb7cc15 .Popover_styles_gh4xvw_s1g1xbt5__0bb7cc15{width:100%;height:100%;display:block;}
67
+ .Popover_styles_gh4xvw_s1pd4d8a__0bb7cc15{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_gh4xvw_s1pd4d8a__0bb7cc15::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
68
+ .Popover_styles_gh4xvw_s16xlixz__0bb7cc15{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15:before{content:'';display:block;position:absolute;background:transparent;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right-start'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right-end'] > .Popover_styles_gh4xvw_popoverArrow__0bb7cc15{top:unset !important;bottom:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top-start']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='top-end']:before{top:unset;left:0;right:0;height:var(--plasma-popover-arrow-height);bottom:calc(-1 * var(--plasma-popover-arrow-height));}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-start']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='bottom-end']:before{top:calc(-1 * var(--plasma-popover-arrow-height));left:0;right:0;bottom:var(--plasma-popover-arrow-height);height:var(--plasma-popover-arrow-height);}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left-start']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='left-end']:before{width:var(--plasma-popover-arrow-height);height:100%;top:0;right:calc(-1 * var(--plasma-popover-arrow-height));bottom:0;}.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right-start']:before,.Popover_styles_gh4xvw_s16xlixz__0bb7cc15[data-popper-placement^='right-end']:before{width:var(--plasma-popover-arrow-height);height:100%;top:0;left:calc(-1 * var(--plasma-popover-arrow-height));bottom:0;}
69
69
 
70
70
  .Tooltip_styles_1bh0sd0_teczcv4__e6cc0309{padding:var(--plasma-tooltip-padding-top) var(--plasma-tooltip-padding-right) var(--plasma-tooltip-padding-bottom) var(--plasma-tooltip-padding-left);min-height:var(--plasma-tooltip-min-height);box-sizing:border-box;background-color:var(--plasma-tooltip-background-color);border-radius:var(--plasma-tooltip-border-radius);box-shadow:var(--plasma-tooltip-box-shadow);color:var(--plasma-tooltip-color);font-family:var(--plasma-tooltip-text-font-family);font-size:var(--plasma-tooltip-text-font-size);font-style:var(--plasma-tooltip-text-font-style);font-weight:var(--plasma-tooltip-text-font-weight);-webkit-letter-spacing:var(--plasma-tooltip-text-font-letter-spacing);-moz-letter-spacing:var(--plasma-tooltip-text-font-letter-spacing);-ms-letter-spacing:var(--plasma-tooltip-text-font-letter-spacing);letter-spacing:var(--plasma-tooltip-text-font-letter-spacing);line-height:var(--plasma-tooltip-text-font-line-height);max-width:var(--teczcv4-0);min-width:var(--teczcv4-1);width:-webkit-max-content;width:-moz-max-content;width:max-content;word-break:break-word;pointer-events:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
71
71
  .Tooltip_styles_1bh0sd0_s1j361h1__e6cc0309{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:var(--plasma-tooltip-content-left-margin);height:var(--plasma-tooltip-text-font-line-height);}
@@ -13,6 +13,7 @@ var Combobox_styles = require('./Combobox.styles.js');
13
13
  var base = require('./variations/_view/base.js');
14
14
  var base$1 = require('./variations/_size/base.js');
15
15
  var SelectNative = require('./ui/SelectNative/SelectNative.js');
16
+ var Combobox_context = require('./Combobox.context.js');
16
17
  var initialItemsTransform = require('./utils/initialItemsTransform.js');
17
18
  var getInitialValue = require('./utils/getInitialValue.js');
18
19
  var filterItems = require('./utils/filterItems.js');
@@ -29,7 +30,6 @@ var getItemId = require('./utils/getItemId.js');
29
30
  var Inner = require('./ui/Inner/Inner.js');
30
31
 
31
32
  var _excluded = ["name", "multiple", "value", "onChange", "defaultValue", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "keepPlaceholder", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue", "zIndex", "beforeList", "afterList"];
32
- var Context = /*#__PURE__*/React.createContext({});
33
33
 
34
34
  /**
35
35
  * Поле ввода с выпадающим списком и возможностью фильтрации и выбора элементов.
@@ -400,7 +400,7 @@ var comboboxRoot = function comboboxRoot(Root) {
400
400
  onChange: onChange,
401
401
  onSetValue: setInternalValue,
402
402
  ref: ref
403
- }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Context.Provider, {
403
+ }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Combobox_context.Context.Provider, {
404
404
  value: {
405
405
  focusedPath: focusedPath,
406
406
  checked: checked,
@@ -519,7 +519,6 @@ var comboboxConfig = {
519
519
  }
520
520
  };
521
521
 
522
- exports.Context = Context;
523
522
  exports.comboboxConfig = comboboxConfig;
524
523
  exports.comboboxRoot = comboboxRoot;
525
524
  //# sourceMappingURL=Combobox.js.map