@salutejs/plasma-new-hope 0.94.0-canary.1224.9684925191.0 → 0.94.0-canary.1269.9679187594.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (617) hide show
  1. package/cjs/components/Calendar/Calendar.tokens.js +28 -67
  2. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  3. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  4. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +29 -57
  5. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -6
  6. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  7. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  8. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  9. package/cjs/components/Calendar/CalendarBase/{CalendarBase.styles_1m6uih1.css → CalendarBase.styles_rv9ax9.css} +1 -1
  10. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +30 -58
  11. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -6
  12. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  13. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  14. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  15. package/{es/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.css → cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_1rc2ejs.css} +2 -2
  16. package/cjs/components/Calendar/hoc/withRange.js.map +1 -1
  17. package/cjs/components/Calendar/hooks/useDays.js +1 -1
  18. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  19. package/cjs/components/Calendar/mixins/index.js +18 -0
  20. package/cjs/components/Calendar/mixins/index.js.map +1 -0
  21. package/cjs/components/Calendar/mixins/index_o3bz9l.css +1 -0
  22. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  23. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  24. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  25. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +4 -0
  26. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  27. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  28. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  29. package/{es/components/Calendar/ui/CalendarDays/CalendarDays.styles_1oq8sud.css → cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles_bnrjbd.css} +1 -1
  30. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -36
  31. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +17 -31
  32. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  33. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +12 -27
  34. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  35. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +6 -0
  36. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  37. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  38. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  39. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  40. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  41. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +4 -0
  42. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  44. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  45. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  46. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  47. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +4 -0
  48. package/cjs/components/Calendar/utils/index.js.map +1 -1
  49. package/cjs/components/Combobox/Combobox.js +2 -2
  50. package/cjs/components/Combobox/Combobox.js.map +1 -1
  51. package/cjs/components/Dropdown/Dropdown.js +2 -4
  52. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  53. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  54. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  55. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  56. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  57. package/cjs/components/Dropdown/utils/index.js +17 -0
  58. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  59. package/cjs/components/Range/Range.css +6 -6
  60. package/cjs/components/Range/Range.js +2 -17
  61. package/cjs/components/Range/Range.js.map +1 -1
  62. package/cjs/components/Range/Range.styles.js +1 -1
  63. package/cjs/components/Range/Range.styles.js.map +1 -1
  64. package/cjs/components/Range/Range.styles_mc4w65.css +8 -0
  65. package/cjs/components/Select/Select.js +2 -2
  66. package/cjs/components/Select/Select.js.map +1 -1
  67. package/cjs/components/Slider/Slider.css +3 -3
  68. package/cjs/components/Slider/components/Double/Double.css +3 -3
  69. package/cjs/components/TextField/TextField.tokens.js +1 -1
  70. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  71. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  72. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +1 -0
  73. package/cjs/components/TextField/variations/_size/base.js +1 -1
  74. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  75. package/cjs/components/TextField/variations/_size/base_ntoddv.css +1 -0
  76. package/cjs/components/TextField/variations/_view/base.js +1 -1
  77. package/cjs/components/TextField/variations/_view/base_19gxyva.css +1 -0
  78. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  79. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  80. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  81. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  82. package/cjs/index.css +38 -71
  83. package/cjs/index.js +0 -12
  84. package/cjs/index.js.map +1 -1
  85. package/cjs/utils/index.js.map +1 -1
  86. package/es/components/Calendar/Calendar.tokens.js +28 -67
  87. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  88. package/es/components/Calendar/Calendar.types.js.map +1 -1
  89. package/es/components/Calendar/CalendarBase/CalendarBase.css +29 -57
  90. package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -7
  91. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  92. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  93. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  94. package/es/components/Calendar/CalendarBase/{CalendarBase.styles_1m6uih1.css → CalendarBase.styles_rv9ax9.css} +1 -1
  95. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +30 -58
  96. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -7
  97. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  98. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  99. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  100. package/{cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.css → es/components/Calendar/CalendarDouble/CalendarDouble.styles_1rc2ejs.css} +2 -2
  101. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  102. package/es/components/Calendar/hooks/useDays.js +1 -1
  103. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  104. package/es/components/Calendar/mixins/index.js +14 -0
  105. package/es/components/Calendar/mixins/index.js.map +1 -0
  106. package/es/components/Calendar/mixins/index_o3bz9l.css +1 -0
  107. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  108. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  109. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  110. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +4 -0
  111. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  112. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  113. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  114. package/{cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles_1oq8sud.css → es/components/Calendar/ui/CalendarDays/CalendarDays.styles_bnrjbd.css} +1 -1
  115. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -36
  116. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +18 -32
  117. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  118. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +13 -26
  119. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  120. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +6 -0
  121. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  122. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  123. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  124. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  125. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  126. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +4 -0
  127. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  128. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  129. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  130. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  131. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  132. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +4 -0
  133. package/es/components/Calendar/utils/index.js.map +1 -1
  134. package/es/components/Combobox/Combobox.js +1 -1
  135. package/es/components/Combobox/Combobox.js.map +1 -1
  136. package/es/components/Dropdown/Dropdown.js +2 -4
  137. package/es/components/Dropdown/Dropdown.js.map +1 -1
  138. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  139. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  140. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  141. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  142. package/es/components/Dropdown/utils/index.js +16 -1
  143. package/es/components/Dropdown/utils/index.js.map +1 -1
  144. package/es/components/Range/Range.css +6 -6
  145. package/es/components/Range/Range.js +3 -18
  146. package/es/components/Range/Range.js.map +1 -1
  147. package/es/components/Range/Range.styles.js +1 -1
  148. package/es/components/Range/Range.styles.js.map +1 -1
  149. package/es/components/Range/Range.styles_mc4w65.css +8 -0
  150. package/es/components/Select/Select.js +1 -1
  151. package/es/components/Select/Select.js.map +1 -1
  152. package/es/components/Slider/Slider.css +3 -3
  153. package/es/components/Slider/components/Double/Double.css +3 -3
  154. package/es/components/TextField/TextField.tokens.js +1 -1
  155. package/es/components/TextField/TextField.tokens.js.map +1 -1
  156. package/es/components/TextField/variations/_read-only/base.js +1 -1
  157. package/es/components/TextField/variations/_read-only/base_134hshp.css +1 -0
  158. package/es/components/TextField/variations/_size/base.js +1 -1
  159. package/es/components/TextField/variations/_size/base.js.map +1 -1
  160. package/es/components/TextField/variations/_size/base_ntoddv.css +1 -0
  161. package/es/components/TextField/variations/_view/base.js +1 -1
  162. package/es/components/TextField/variations/_view/base_19gxyva.css +1 -0
  163. package/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  164. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  165. package/es/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  166. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  167. package/es/index.css +38 -71
  168. package/es/index.js +0 -4
  169. package/es/index.js.map +1 -1
  170. package/es/utils/index.js.map +1 -1
  171. package/package.json +2 -3
  172. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +28 -67
  173. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -6
  174. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -2
  175. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -6
  176. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  177. package/styled-components/cjs/components/Calendar/hooks/useDays.js +1 -1
  178. package/styled-components/cjs/components/Calendar/mixins/index.js +29 -30
  179. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +20 -27
  180. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -2
  181. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +16 -30
  182. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -29
  183. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  184. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +12 -26
  185. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  186. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +14 -26
  187. package/styled-components/cjs/components/Combobox/Combobox.js +7 -6
  188. package/styled-components/cjs/components/Dropdown/Dropdown.js +2 -3
  189. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  190. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  191. package/styled-components/cjs/components/Dropdown/utils/index.js +16 -1
  192. package/styled-components/cjs/components/Range/Range.js +2 -17
  193. package/styled-components/cjs/components/Range/Range.styles.js +2 -3
  194. package/styled-components/cjs/components/Select/Select.js +8 -7
  195. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -1
  196. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  197. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  198. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  199. package/styled-components/cjs/components/_Icon/index.js +0 -7
  200. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +6 -24
  201. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -5
  202. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -5
  203. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  204. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +6 -24
  205. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -5
  206. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -5
  207. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +4 -4
  208. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +6 -24
  209. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -5
  210. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -5
  211. package/styled-components/cjs/index.js +0 -11
  212. package/styled-components/cjs/utils/index.js +0 -22
  213. package/styled-components/es/components/Calendar/Calendar.tokens.js +28 -67
  214. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -7
  215. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -2
  216. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -7
  217. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  218. package/styled-components/es/components/Calendar/hooks/useDays.js +1 -1
  219. package/styled-components/es/components/Calendar/mixins/index.js +27 -3
  220. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +19 -26
  221. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -2
  222. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +18 -32
  223. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -29
  224. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  225. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +11 -25
  226. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  227. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +13 -25
  228. package/styled-components/es/components/Combobox/Combobox.js +2 -1
  229. package/styled-components/es/components/Dropdown/Dropdown.js +3 -4
  230. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  231. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  232. package/styled-components/es/components/Dropdown/utils/index.js +15 -0
  233. package/styled-components/es/components/Range/Range.js +3 -18
  234. package/styled-components/es/components/Range/Range.styles.js +2 -3
  235. package/styled-components/es/components/Select/Select.js +2 -1
  236. package/styled-components/es/components/TextField/TextField.tokens.js +1 -1
  237. package/styled-components/es/components/TextField/variations/_size/base.js +1 -1
  238. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  239. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  240. package/styled-components/es/components/_Icon/index.js +0 -1
  241. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +6 -24
  242. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -5
  243. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -5
  244. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  245. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +6 -24
  246. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -5
  247. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -5
  248. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +4 -4
  249. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +6 -24
  250. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -5
  251. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -5
  252. package/styled-components/es/index.js +1 -2
  253. package/styled-components/es/utils/index.js +0 -1
  254. package/types/components/Accordion/utils/index.d.ts +1 -1
  255. package/types/components/Calendar/Calendar.tokens.d.ts +26 -60
  256. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  257. package/types/components/Calendar/Calendar.types.d.ts +1 -1
  258. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  259. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +3 -27
  260. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  261. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  262. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +3 -30
  263. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  264. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  265. package/types/components/Calendar/mixins/index.d.ts +8 -3
  266. package/types/components/Calendar/mixins/index.d.ts.map +1 -1
  267. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
  268. package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
  269. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  270. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +7 -47
  271. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  272. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +0 -1
  273. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
  274. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  275. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  276. package/types/components/Calendar/utils/index.d.ts +1 -1
  277. package/types/components/Calendar/utils/index.d.ts.map +1 -1
  278. package/types/components/Combobox/Combobox.d.ts.map +1 -1
  279. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  280. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  281. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +0 -1
  282. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  283. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  284. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +0 -1
  285. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  286. package/types/components/Dropdown/utils/index.d.ts +3 -1
  287. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  288. package/types/components/Range/Range.d.ts +3 -3
  289. package/types/components/Range/Range.d.ts.map +1 -1
  290. package/types/components/Range/Range.styles.d.ts.map +1 -1
  291. package/types/components/Range/Range.types.d.ts +3 -8
  292. package/types/components/Range/Range.types.d.ts.map +1 -1
  293. package/types/components/Range/index.d.ts +1 -1
  294. package/types/components/Range/index.d.ts.map +1 -1
  295. package/types/components/Select/Select.d.ts.map +1 -1
  296. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  297. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  298. package/types/components/_Icon/index.d.ts +0 -1
  299. package/types/components/_Icon/index.d.ts.map +1 -1
  300. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +4 -15
  301. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
  302. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +0 -3
  303. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  304. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +0 -3
  305. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  306. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -3
  307. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  308. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +4 -15
  309. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
  310. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +0 -3
  311. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  312. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +0 -3
  313. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  314. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -3
  315. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  316. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +4 -15
  317. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
  318. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +0 -3
  319. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  320. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +0 -3
  321. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  322. package/types/index.d.ts +0 -1
  323. package/types/index.d.ts.map +1 -1
  324. package/types/utils/index.d.ts +0 -1
  325. package/types/utils/index.d.ts.map +1 -1
  326. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_107vqka.css +0 -4
  327. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +0 -8
  328. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7jeg2n.css +0 -4
  329. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_4z2ki7.css +0 -4
  330. package/cjs/components/DatePicker/DatePicker.tokens.js +0 -189
  331. package/cjs/components/DatePicker/DatePicker.tokens.js.map +0 -1
  332. package/cjs/components/DatePicker/DatePickerBase.styles.js +0 -30
  333. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +0 -1
  334. package/cjs/components/DatePicker/DatePickerBase.styles_1thp2xv.css +0 -1
  335. package/cjs/components/DatePicker/RangeDate/RangeDate.css +0 -152
  336. package/cjs/components/DatePicker/RangeDate/RangeDate.js +0 -285
  337. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +0 -1
  338. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -51
  339. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +0 -1
  340. package/cjs/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +0 -5
  341. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +0 -144
  342. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -83
  343. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +0 -1
  344. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -42
  345. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +0 -1
  346. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +0 -2
  347. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -9
  348. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js.map +0 -1
  349. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +0 -1
  350. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -9
  351. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +0 -1
  352. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +0 -1
  353. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +0 -9
  354. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +0 -1
  355. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  356. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js +0 -9
  357. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +0 -1
  358. package/cjs/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +0 -1
  359. package/cjs/components/DatePicker/SingleDate/SingleDate.css +0 -134
  360. package/cjs/components/DatePicker/SingleDate/SingleDate.js +0 -183
  361. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +0 -1
  362. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -51
  363. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +0 -1
  364. package/cjs/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +0 -5
  365. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -9
  366. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js.map +0 -1
  367. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +0 -1
  368. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -9
  369. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js.map +0 -1
  370. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +0 -1
  371. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +0 -9
  372. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js.map +0 -1
  373. package/cjs/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +0 -1
  374. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +0 -9
  375. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js.map +0 -1
  376. package/cjs/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +0 -1
  377. package/cjs/components/DatePicker/hooks/useDatePicker.js +0 -79
  378. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +0 -1
  379. package/cjs/components/DatePicker/utils/dateHelper.js +0 -84
  380. package/cjs/components/DatePicker/utils/dateHelper.js.map +0 -1
  381. package/cjs/components/Range/Range.styles_9rort8.css +0 -8
  382. package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +0 -1
  383. package/cjs/components/TextField/variations/_size/base_orwx1f.css +0 -1
  384. package/cjs/components/TextField/variations/_view/base_18ea6z7.css +0 -1
  385. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -23
  386. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +0 -1
  387. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +0 -23
  388. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +0 -1
  389. package/cjs/utils/datejs.js +0 -12
  390. package/cjs/utils/datejs.js.map +0 -1
  391. package/cjs/utils/getPopoverPlacement.js +0 -23
  392. package/cjs/utils/getPopoverPlacement.js.map +0 -1
  393. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_107vqka.css +0 -4
  394. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +0 -8
  395. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7jeg2n.css +0 -4
  396. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_4z2ki7.css +0 -4
  397. package/es/components/DatePicker/DatePicker.tokens.js +0 -184
  398. package/es/components/DatePicker/DatePicker.tokens.js.map +0 -1
  399. package/es/components/DatePicker/DatePickerBase.styles.js +0 -26
  400. package/es/components/DatePicker/DatePickerBase.styles.js.map +0 -1
  401. package/es/components/DatePicker/DatePickerBase.styles_1thp2xv.css +0 -1
  402. package/es/components/DatePicker/RangeDate/RangeDate.css +0 -152
  403. package/es/components/DatePicker/RangeDate/RangeDate.js +0 -280
  404. package/es/components/DatePicker/RangeDate/RangeDate.js.map +0 -1
  405. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -43
  406. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +0 -1
  407. package/es/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +0 -5
  408. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +0 -144
  409. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -79
  410. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +0 -1
  411. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -37
  412. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +0 -1
  413. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +0 -2
  414. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -5
  415. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js.map +0 -1
  416. package/es/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +0 -1
  417. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -5
  418. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +0 -1
  419. package/es/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +0 -1
  420. package/es/components/DatePicker/RangeDate/variations/_size/base.js +0 -5
  421. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +0 -1
  422. package/es/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  423. package/es/components/DatePicker/RangeDate/variations/_view/base.js +0 -5
  424. package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +0 -1
  425. package/es/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +0 -1
  426. package/es/components/DatePicker/SingleDate/SingleDate.css +0 -134
  427. package/es/components/DatePicker/SingleDate/SingleDate.js +0 -178
  428. package/es/components/DatePicker/SingleDate/SingleDate.js.map +0 -1
  429. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -43
  430. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +0 -1
  431. package/es/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +0 -5
  432. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -5
  433. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js.map +0 -1
  434. package/es/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +0 -1
  435. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -5
  436. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js.map +0 -1
  437. package/es/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +0 -1
  438. package/es/components/DatePicker/SingleDate/variations/_size/base.js +0 -5
  439. package/es/components/DatePicker/SingleDate/variations/_size/base.js.map +0 -1
  440. package/es/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +0 -1
  441. package/es/components/DatePicker/SingleDate/variations/_view/base.js +0 -5
  442. package/es/components/DatePicker/SingleDate/variations/_view/base.js.map +0 -1
  443. package/es/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +0 -1
  444. package/es/components/DatePicker/hooks/useDatePicker.js +0 -75
  445. package/es/components/DatePicker/hooks/useDatePicker.js.map +0 -1
  446. package/es/components/DatePicker/utils/dateHelper.js +0 -76
  447. package/es/components/DatePicker/utils/dateHelper.js.map +0 -1
  448. package/es/components/Range/Range.styles_9rort8.css +0 -8
  449. package/es/components/TextField/variations/_read-only/base_1vu13zn.css +0 -1
  450. package/es/components/TextField/variations/_size/base_orwx1f.css +0 -1
  451. package/es/components/TextField/variations/_view/base_18ea6z7.css +0 -1
  452. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -19
  453. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js.map +0 -1
  454. package/es/components/_Icon/Icons/IconDisclosureDownFill.js +0 -19
  455. package/es/components/_Icon/Icons/IconDisclosureDownFill.js.map +0 -1
  456. package/es/utils/datejs.js +0 -8
  457. package/es/utils/datejs.js.map +0 -1
  458. package/es/utils/getPopoverPlacement.js +0 -18
  459. package/es/utils/getPopoverPlacement.js.map +0 -1
  460. package/styled-components/cjs/components/Calendar/mixins/active.js +0 -12
  461. package/styled-components/cjs/components/Calendar/mixins/flex.js +0 -8
  462. package/styled-components/cjs/components/Calendar/mixins/selected.js +0 -24
  463. package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +0 -150
  464. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +0 -187
  465. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +0 -19
  466. package/styled-components/cjs/components/DatePicker/DatePickerBase.types.js +0 -5
  467. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +0 -293
  468. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -33
  469. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.types.js +0 -5
  470. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -81
  471. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -26
  472. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +0 -5
  473. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -9
  474. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  475. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -10
  476. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/tokens.json +0 -4
  477. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +0 -10
  478. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  479. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/base.js +0 -10
  480. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  481. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +0 -190
  482. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -33
  483. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.types.js +0 -5
  484. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -9
  485. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/tokens.json +0 -4
  486. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -10
  487. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/tokens.json +0 -4
  488. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/base.js +0 -10
  489. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/tokens.json +0 -16
  490. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/base.js +0 -10
  491. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/tokens.json +0 -1
  492. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +0 -77
  493. package/styled-components/cjs/components/DatePicker/index.js +0 -44
  494. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +0 -78
  495. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -22
  496. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +0 -22
  497. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +0 -31
  498. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.js +0 -13
  499. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -257
  500. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +0 -31
  501. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.js +0 -13
  502. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +0 -257
  503. package/styled-components/cjs/utils/datejs.js +0 -11
  504. package/styled-components/cjs/utils/getPopoverPlacement.js +0 -21
  505. package/styled-components/es/components/Calendar/mixins/active.js +0 -6
  506. package/styled-components/es/components/Calendar/mixins/flex.js +0 -2
  507. package/styled-components/es/components/Calendar/mixins/selected.js +0 -18
  508. package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +0 -150
  509. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +0 -181
  510. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +0 -12
  511. package/styled-components/es/components/DatePicker/DatePickerBase.types.js +0 -1
  512. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +0 -284
  513. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -25
  514. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.types.js +0 -1
  515. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -74
  516. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -19
  517. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +0 -1
  518. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -3
  519. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  520. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -4
  521. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/tokens.json +0 -4
  522. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +0 -4
  523. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  524. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/base.js +0 -4
  525. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  526. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +0 -181
  527. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -25
  528. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.types.js +0 -1
  529. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -3
  530. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/tokens.json +0 -4
  531. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -4
  532. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/tokens.json +0 -4
  533. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/base.js +0 -4
  534. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/tokens.json +0 -16
  535. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/base.js +0 -4
  536. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/tokens.json +0 -1
  537. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +0 -71
  538. package/styled-components/es/components/DatePicker/index.js +0 -3
  539. package/styled-components/es/components/DatePicker/utils/dateHelper.js +0 -72
  540. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -15
  541. package/styled-components/es/components/_Icon/Icons/IconDisclosureDownFill.js +0 -15
  542. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +0 -25
  543. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.js +0 -7
  544. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -257
  545. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +0 -25
  546. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.js +0 -7
  547. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +0 -257
  548. package/styled-components/es/utils/datejs.js +0 -4
  549. package/styled-components/es/utils/getPopoverPlacement.js +0 -15
  550. package/types/components/Calendar/mixins/active.d.ts +0 -17
  551. package/types/components/Calendar/mixins/active.d.ts.map +0 -1
  552. package/types/components/Calendar/mixins/flex.d.ts +0 -3
  553. package/types/components/Calendar/mixins/flex.d.ts.map +0 -1
  554. package/types/components/Calendar/mixins/selected.d.ts +0 -40
  555. package/types/components/Calendar/mixins/selected.d.ts.map +0 -1
  556. package/types/components/DatePicker/DatePicker.tokens.d.ts +0 -182
  557. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +0 -1
  558. package/types/components/DatePicker/DatePickerBase.styles.d.ts +0 -8
  559. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +0 -1
  560. package/types/components/DatePicker/DatePickerBase.types.d.ts +0 -37
  561. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +0 -1
  562. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +0 -110
  563. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +0 -1
  564. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +0 -115
  565. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +0 -1
  566. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +0 -76
  567. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +0 -1
  568. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +0 -4
  569. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +0 -1
  570. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +0 -5
  571. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +0 -1
  572. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +0 -29
  573. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +0 -1
  574. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts +0 -2
  575. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts.map +0 -1
  576. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts +0 -2
  577. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +0 -1
  578. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts +0 -2
  579. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +0 -1
  580. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts +0 -2
  581. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +0 -1
  582. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +0 -31
  583. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +0 -1
  584. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +0 -45
  585. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +0 -1
  586. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +0 -120
  587. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +0 -1
  588. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts +0 -2
  589. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts.map +0 -1
  590. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts +0 -2
  591. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts.map +0 -1
  592. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts +0 -2
  593. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts.map +0 -1
  594. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts +0 -2
  595. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts.map +0 -1
  596. package/types/components/DatePicker/hooks/useDatePicker.d.ts +0 -10
  597. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +0 -1
  598. package/types/components/DatePicker/index.d.ts +0 -6
  599. package/types/components/DatePicker/index.d.ts.map +0 -1
  600. package/types/components/DatePicker/utils/dateHelper.d.ts +0 -10
  601. package/types/components/DatePicker/utils/dateHelper.d.ts.map +0 -1
  602. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts +0 -4
  603. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts.map +0 -1
  604. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts +0 -4
  605. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts.map +0 -1
  606. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts +0 -24
  607. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +0 -1
  608. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +0 -75
  609. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +0 -1
  610. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts +0 -24
  611. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +0 -1
  612. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +0 -75
  613. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +0 -1
  614. package/types/utils/datejs.d.ts +0 -3
  615. package/types/utils/datejs.d.ts.map +0 -1
  616. package/types/utils/getPopoverPlacement.d.ts +0 -5
  617. package/types/utils/getPopoverPlacement.d.ts.map +0 -1
@@ -1,58 +1,51 @@
1
1
  import styled from 'styled-components';
2
+ import { flexCenter, selectedMixin } from '../../mixins';
2
3
  import { classes, tokens } from '../../Calendar.tokens';
3
4
  import { addFocus } from '../../../../mixins';
4
- import { addSelected, flexCenter } from '../../mixins';
5
5
  var inRange = function inRange() {
6
- return "\n &:before {\n content: '';\n z-index: -1;\n position: absolute;\n width: 100%;\n height: calc(100% - 0.125rem);\n background: var(".concat(tokens.calendarRangeBackground, ");\n }\n");
6
+ return "\n &:before {\n content: '';\n z-index: -1;\n position: absolute;\n width: 2.5rem;\n height: 1.875rem;\n background: var(".concat(tokens.calendarRangeBackground, ");\n }\n");
7
7
  };
8
8
  var sideInRange = function sideInRange() {
9
- return "\n &:before {\n content: '';\n z-index: -1;\n position: absolute;\n width: 0.75rem;\n height: calc(100% - 0.125rem);\n background: var(".concat(tokens.calendarRangeBackground, ");\n }\n");
9
+ return "\n &:before {\n content: '';\n z-index: -1;\n position: absolute;\n width: 0.313rem;\n height: 1.875rem;\n background: var(".concat(tokens.calendarRangeBackground, ");\n }\n");
10
10
  };
11
11
  export var StyledDay = /*#__PURE__*/styled.div.withConfig({
12
12
  componentId: "plasma-new-hope__sc-2y5uj0-0"
13
- })(["border-radius:calc(var(", ") - 0.125rem);", ";&.", "{", ";}&.", "{", ";}&.", "{&:before{left:", ";}}&.", "{&:before{right:", ";}}"], tokens.calendarDayItemBorderRadius, /*#__PURE__*/String(flexCenter), /*#__PURE__*/String(classes.dayInRange), /*#__PURE__*/inRange(), /*#__PURE__*/String(classes.daySideInRange), /*#__PURE__*/sideInRange(), /*#__PURE__*/String(classes.daySideLeft), function (_ref) {
13
+ })(["border-radius:0.375rem;", ";&.", "{", ";}&.", "{", ";}&.", "{&:before{left:", ";}}&.", "{&:before{right:", ";}}"], /*#__PURE__*/String(flexCenter), /*#__PURE__*/String(classes.dayInRange), /*#__PURE__*/inRange(), /*#__PURE__*/String(classes.daySideInRange), /*#__PURE__*/sideInRange(), /*#__PURE__*/String(classes.daySideLeft), function (_ref) {
14
14
  var offset = _ref.offset;
15
15
  return "".concat(offset, "px");
16
16
  }, /*#__PURE__*/String(classes.daySideRight), function (_ref2) {
17
17
  var offset = _ref2.offset;
18
18
  return "".concat(offset, "px");
19
19
  });
20
+ var dayOfWeek = function dayOfWeek() {
21
+ return "\n color: var(--plasma-colors-tertiary);\n";
22
+ };
20
23
  var disabledDay = function disabledDay() {
21
- return "\n cursor: not-allowed;\n opacity: 0.4;\n";
24
+ return "\n cursor: not-allowed;\n opacity: 0.4;\n\n ".concat(addFocus({
25
+ outlineSize: '0.063rem',
26
+ outlineOffset: '-0.063rem',
27
+ outlineColor: "var(".concat(tokens.calendarOutlineFocusColor, ")"),
28
+ outlineRadius: '0.563rem'
29
+ }), ";\n");
22
30
  };
23
31
  var disabledCurrentDay = function disabledCurrentDay() {
24
- return "\n ".concat(disabledDay(), ";\n");
32
+ return "\n ".concat(disabledDay(), ";\n --calendar_private-add-focus-outline-offset: 0.125rem;\n");
25
33
  };
26
34
  export var StyledDayRoot = /*#__PURE__*/styled.div.withConfig({
27
35
  componentId: "plasma-new-hope__sc-2y5uj0-1"
28
- })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");position:relative;box-sizing:border-box;min-width:var(", ");min-height:var(", ");border-radius:var(", ");", ";color:", ";visibility:", ";&.", "{", ";", ";&.", "{", ";}}&.", "{color:var(", ");}&.", "{", ";}&.", "{", ";}&.", "{& > .", ":before{width:calc(100% + 2px);height:100%;}& > .", ":before{width:100%;right:-1px;left:unset;}& > .", ":before{width:100%;left:-1px;right:unset;}}"], tokens.calendarDayFontFamily, tokens.calendarDayFontSize, tokens.calendarDayFontStyle, tokens.calendarDayFontWeight, tokens.calendarDayFontLetterSpacing, tokens.calendarDayFontLineHeight, tokens.calendarDayItemWidth, tokens.calendarDayItemHeight, tokens.calendarDayItemBorderRadius, /*#__PURE__*/String(flexCenter), function (_ref3) {
36
+ })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");position:relative;box-sizing:border-box;min-width:2.5rem;min-height:2rem;border-radius:var(", ");", ";color:", ";visibility:", ";&.", "{--calendar_private-selected-min-width:2.25rem;--calendar_private-selected-min-height:1.75rem;--calendar_private-selected-background:var(", ");--calendar_private-selected-color:var(", ");--calendar_private-selectable-background-hover:var(", ");--calendar_private-current-border-color:var(", ");--calendar_private-current-background-hover:var(", ");--calendar_private-current-color-hover:var(", ");--calendar_private-current-child-background-hover:var(", ");--calendar_private-active-background:var(", ");--calendar_private-active-color:var(", ");--calendar_private-hovered-background:var(", ");--calendar_private-hovered-color:var(", ");", ";", ";}&.", "{", ";}&.", "{", ";}&.", "{", ";}"], tokens.calendarDayFontFamily, tokens.calendarDayFontSize, tokens.calendarDayFontStyle, tokens.calendarDayFontWeight, tokens.calendarDayFontLetterSpacing, tokens.calendarDayFontLineHeight, tokens.calendarItemBorderRadius, /*#__PURE__*/String(flexCenter), function (_ref3) {
29
37
  var isDayInCurrentMonth = _ref3.isDayInCurrentMonth;
30
38
  return isDayInCurrentMonth ? "var(".concat(tokens.calendarContentPrimaryColor, ")") : "var(".concat(tokens.calendarContentSecondaryColor, ")");
31
39
  }, function (_ref4) {
32
40
  var isDayInCurrentMonth = _ref4.isDayInCurrentMonth,
33
41
  isDouble = _ref4.isDouble;
34
42
  return !isDayInCurrentMonth && isDouble ? 'hidden' : 'visible';
35
- }, /*#__PURE__*/String(classes.selectableItem), /*#__PURE__*/addSelected({
36
- minWidth: /*#__PURE__*/"calc(var(".concat(tokens.calendarDayItemWidth, ") - 0.25rem)"),
37
- minHeight: /*#__PURE__*/"calc(var(".concat(tokens.calendarDayItemHeight, ") - 0.25rem)"),
38
- selectedFontWeight: /*#__PURE__*/"var(".concat(tokens.calendarDaySelectedFontWeight, ")"),
39
- selectedBackground: /*#__PURE__*/"var(".concat(tokens.calendarSelectedItemBackground, ")"),
40
- selectedColor: /*#__PURE__*/"var(".concat(tokens.calendarSelectedItemColor, ")"),
41
- selectableBackgroundHover: /*#__PURE__*/"var(".concat(tokens.calendarSelectableItemBackgroundHover, ")"),
42
- currentBorderColor: /*#__PURE__*/"var(".concat(tokens.calendarCurrentItemBorderColor, ")"),
43
- activeBackground: /*#__PURE__*/"var(".concat(tokens.calendarActiveItemBackground, ")"),
44
- activeColor: /*#__PURE__*/"var(".concat(tokens.calendarActiveItemColor, ")")
45
- }), /*#__PURE__*/addFocus({
46
- outlineSize: '0.063rem',
47
- outlineOffset: '-0.125rem',
48
- outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
49
- outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.calendarDayItemBorderRadius, ") + 0.125rem)")
50
- }), classes.currentItem, /*#__PURE__*/addFocus({
43
+ }, /*#__PURE__*/String(classes.selectableItem), tokens.calendarSelectedItemBackground, tokens.calendarSelectedItemColor, tokens.calendarSelectableItemBackgroundHover, tokens.calendarCurrentItemBorderColor, tokens.calendarCurrentItemBackgroundHover, tokens.calendarCurrentItemColorHover, tokens.calendarCurrentItemChildBackgroundHover, tokens.calendarActiveItemBackground, tokens.calendarActiveItemColor, tokens.calendarHoveredItemBackground, tokens.calendarHoveredItemColor, /*#__PURE__*/addFocus({
51
44
  outlineSize: '0.063rem',
52
- outlineOffset: '-0.1875rem',
45
+ outlineOffset: '-0.063rem',
53
46
  outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
54
- outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.calendarDayItemBorderRadius, ") + 0.125rem)")
55
- }), classes.dayOfWeek, tokens.calendarDayOfWeekColor, classes.dayDisabled, /*#__PURE__*/disabledDay(), classes.dayDisabledCurrent, /*#__PURE__*/disabledCurrentDay(), classes.currentItem, classes.dayInRange, classes.daySideRight, classes.daySideLeft);
47
+ outlineRadius: '0.563rem'
48
+ }), /*#__PURE__*/String(selectedMixin), /*#__PURE__*/String(classes.dayOfWeek), /*#__PURE__*/dayOfWeek(), /*#__PURE__*/String(classes.dayDisabled), /*#__PURE__*/disabledDay(), /*#__PURE__*/String(classes.dayDisabledCurrent), /*#__PURE__*/disabledCurrentDay());
56
49
  export var StyledEvents = /*#__PURE__*/styled.div.withConfig({
57
50
  componentId: "plasma-new-hope__sc-2y5uj0-2"
58
51
  })(["display:flex;position:absolute;bottom:0.25rem;"]);
@@ -1,12 +1,11 @@
1
1
  import styled from 'styled-components';
2
2
  import { flexCenter } from '../../mixins';
3
- import { tokens } from '../../Calendar.tokens';
4
3
  export var StyledFlex = /*#__PURE__*/styled.div.withConfig({
5
4
  componentId: "plasma-new-hope__sc-3ydwr5-0"
6
5
  })(["", ";"], /*#__PURE__*/String(flexCenter));
7
6
  export var StyledCalendarDays = /*#__PURE__*/styled.div.withConfig({
8
7
  componentId: "plasma-new-hope__sc-3ydwr5-1"
9
- })(["outline:none;padding:var(", ");box-sizing:border-box;"], tokens.calendarDaysPadding);
8
+ })(["outline:none;padding:0.5rem 1rem 1.5rem;box-sizing:border-box;"]);
10
9
  export var StyledCalendarDaysHint = /*#__PURE__*/styled.span.withConfig({
11
10
  componentId: "plasma-new-hope__sc-3ydwr5-2"
12
11
  })(["display:none;"]);
@@ -1,9 +1,9 @@
1
+ var _IconDisclosureLeft, _IconDisclosureRight;
1
2
  import React, { useCallback, useMemo } from 'react';
2
- import { IconDisclosureDownFill, IconDisclosureLeft, IconDisclosureRight } from '../../../_Icon';
3
+ import { IconDisclosureLeft, IconDisclosureRight } from '../../../_Icon';
3
4
  import { CalendarState } from '../../store/types';
4
5
  import { getCalendarType, MONTH_NAMES, YEAR_RENDER_COUNT } from '../../utils';
5
- import { classes } from '../../Calendar.tokens';
6
- import { StyledArrow, StyledArrows, StyledCalendarHeader, StyledDoubleHeaderWrapper, StyledHeader, StyledHeaderDate, StyledHeaderDouble, StyledNavigation } from './CalendarHeader.styles';
6
+ import { StyledArrow, StyledArrows, StyledCalendarHeader, StyledHeader, StyledHeaderDouble, StyledNavigation } from './CalendarHeader.styles';
7
7
 
8
8
  /**
9
9
  * Компонент шапки календаря.
@@ -13,7 +13,6 @@ export var CalendarHeader = function CalendarHeader(_ref) {
13
13
  type = _ref$type === void 0 ? 'Days' : _ref$type,
14
14
  _ref$startYear = _ref.startYear,
15
15
  startYear = _ref$startYear === void 0 ? 0 : _ref$startYear,
16
- size = _ref.size,
17
16
  firstDate = _ref.firstDate,
18
17
  secondDate = _ref.secondDate,
19
18
  isDouble = _ref.isDouble,
@@ -33,55 +32,42 @@ export var CalendarHeader = function CalendarHeader(_ref) {
33
32
  return '';
34
33
  }
35
34
  if (type === CalendarState.Days) {
36
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledHeaderDate, null, MONTH_NAMES[date.monthIndex]), /*#__PURE__*/React.createElement(StyledHeaderDate, null, date.year, /*#__PURE__*/React.createElement(IconDisclosureDownFill, {
37
- color: "inherit",
38
- size: size === 'xs' ? 'xs' : 's'
39
- })));
35
+ return "".concat(MONTH_NAMES[date.monthIndex], " ").concat(date.year);
40
36
  }
41
37
  if (type === CalendarState.Months) {
42
- return /*#__PURE__*/React.createElement(StyledHeaderDate, null, date.year, /*#__PURE__*/React.createElement(IconDisclosureDownFill, {
43
- color: "inherit",
44
- size: size === 'xs' ? 'xs' : 's'
45
- }));
38
+ return "".concat(date.year);
46
39
  }
47
40
  if (type === CalendarState.Years) {
48
- return /*#__PURE__*/React.createElement(StyledHeaderDate, null, startYear, "\u2014", startYear + YEAR_RENDER_COUNT - 1, /*#__PURE__*/React.createElement(IconDisclosureDownFill, {
49
- color: "inherit",
50
- size: size === 'xs' ? 'xs' : 's'
51
- }));
41
+ return "".concat(startYear, "\u2014").concat(startYear + YEAR_RENDER_COUNT - 1);
52
42
  }
53
43
  return '';
54
- }, [type, startYear, size]);
44
+ }, [type, startYear]);
55
45
  var currentCalendarType = getCalendarType(isDouble ? CalendarState.Days : type);
56
46
  var PreviousButton = useMemo(function () {
57
47
  return /*#__PURE__*/React.createElement(StyledArrow, {
48
+ type: "button",
58
49
  "aria-label": "\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 ".concat(currentCalendarType),
50
+ tabIndex: 0,
59
51
  onClick: function onClick() {
60
52
  return onPrev();
61
53
  }
62
- }, /*#__PURE__*/React.createElement(IconDisclosureLeft, {
63
- color: "inherit",
64
- size: size === 'xs' ? 'xs' : 's'
65
- }));
66
- }, [currentCalendarType, size, onPrev]);
54
+ }, _IconDisclosureLeft || (_IconDisclosureLeft = /*#__PURE__*/React.createElement(IconDisclosureLeft, null)));
55
+ }, [currentCalendarType, onPrev]);
67
56
  var NextButton = useMemo(function () {
68
57
  return /*#__PURE__*/React.createElement(StyledArrow, {
58
+ type: "button",
69
59
  "aria-label": "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 ".concat(currentCalendarType),
60
+ tabIndex: 0,
70
61
  onClick: function onClick() {
71
62
  return onNext();
72
63
  }
73
- }, /*#__PURE__*/React.createElement(IconDisclosureRight, {
74
- color: "inherit",
75
- size: size === 'xs' ? 'xs' : 's'
76
- }));
77
- }, [currentCalendarType, size, onNext]);
78
- return /*#__PURE__*/React.createElement(StyledCalendarHeader, null, isDouble ? /*#__PURE__*/React.createElement(StyledNavigation, null, /*#__PURE__*/React.createElement(StyledDoubleHeaderWrapper, null, PreviousButton, /*#__PURE__*/React.createElement(StyledHeaderDouble, {
64
+ }, _IconDisclosureRight || (_IconDisclosureRight = /*#__PURE__*/React.createElement(IconDisclosureRight, null)));
65
+ }, [currentCalendarType, onNext]);
66
+ return /*#__PURE__*/React.createElement(StyledCalendarHeader, null, isDouble ? /*#__PURE__*/React.createElement(StyledNavigation, null, PreviousButton, /*#__PURE__*/React.createElement(StyledHeaderDouble, {
79
67
  "aria-live": "polite"
80
- }, getHeaderContent(firstDate))), /*#__PURE__*/React.createElement(StyledDoubleHeaderWrapper, {
81
- className: classes.doubleHeaderLastDateWrapper
82
- }, /*#__PURE__*/React.createElement(StyledHeaderDouble, {
68
+ }, getHeaderContent(firstDate)), /*#__PURE__*/React.createElement(StyledHeaderDouble, {
83
69
  "aria-live": "polite"
84
- }, getHeaderContent(secondDate)), NextButton)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledHeader, {
70
+ }, getHeaderContent(secondDate)), NextButton) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledHeader, {
85
71
  type: "button",
86
72
  "aria-live": "polite",
87
73
  id: "id-grid-label",
@@ -1,39 +1,21 @@
1
1
  import styled from 'styled-components';
2
- import { classes, tokens } from '../../Calendar.tokens';
3
- import { component, mergeConfig } from '../../../../engines';
4
- import { iconButtonConfig, iconButtonTokens } from '../../../IconButton';
5
- import { flexCenter } from '../../mixins';
6
- import { addFocus } from '../../../../mixins';
7
- var mergedIconButtonConfig = /*#__PURE__*/mergeConfig(iconButtonConfig);
8
- var IconButton = /*#__PURE__*/component(mergedIconButtonConfig);
2
+ import { buttonFocus, flexCenter } from '../../mixins';
3
+ import { tokens } from '../../Calendar.tokens';
9
4
  export var StyledCalendarHeader = /*#__PURE__*/styled.div.withConfig({
10
5
  componentId: "plasma-new-hope__sc-186pzg3-0"
11
- })(["display:flex;justify-content:space-between;align-items:center;padding:var(", ");"], tokens.calendarHeaderWrapperPadding);
12
- export var StyledHeader = /*#__PURE__*/styled.button.withConfig({
6
+ })(["padding:1rem 1.5rem 0;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");display:flex;justify-content:space-between;align-items:center;"], tokens.calendarHeaderFontFamily, tokens.calendarHeaderFontSize, tokens.calendarHeaderFontStyle, tokens.calendarHeaderFontWeightBold, tokens.calendarHeaderFontLetterSpacing, tokens.calendarHeaderFontLineHeight);
7
+ export var StyledHeader = /*#__PURE__*/styled(buttonFocus).withConfig({
13
8
  componentId: "plasma-new-hope__sc-186pzg3-1"
14
- })(["border:none;background-color:transparent;padding:0;outline:none;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");padding:var(", ");color:var(", ");cursor:pointer;display:flex;gap:var(", ");justify-content:space-between;align-items:center;&:hover,&:active{color:var(", ");}", ";"], tokens.calendarHeaderFontFamily, tokens.calendarHeaderFontSize, tokens.calendarHeaderFontStyle, tokens.calendarHeaderFontWeightBold, tokens.calendarHeaderFontLetterSpacing, tokens.calendarHeaderFontLineHeight, tokens.calendarHeaderPadding, tokens.calendarContentPrimaryColor, tokens.calendarHeaderDateGap, tokens.calendarContentSecondaryColor, /*#__PURE__*/addFocus({
15
- outlineSize: '0.063rem',
16
- outlineOffset: '-0.125rem',
17
- outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
18
- outlineRadius: '0.563rem'
19
- }));
20
- export var StyledHeaderDate = /*#__PURE__*/styled.span.withConfig({
9
+ })(["color:var(", ");cursor:pointer;padding:0.5rem 0;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");display:flex;justify-content:space-between;align-items:center;"], tokens.calendarContentPrimaryColor, tokens.calendarHeaderFontFamily, tokens.calendarHeaderFontSize, tokens.calendarHeaderFontStyle, tokens.calendarHeaderFontWeightBold, tokens.calendarHeaderFontLetterSpacing, tokens.calendarHeaderFontLineHeight);
10
+ export var StyledHeaderDouble = /*#__PURE__*/styled.h4.withConfig({
21
11
  componentId: "plasma-new-hope__sc-186pzg3-2"
22
- })(["", ";pointer-events:none;"], flexCenter);
12
+ })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");margin-top:0;margin-bottom:0;padding:0.5rem 0;flex:1;", ";&:first-of-type{margin-right:3rem;}&:last-of-type{margin-left:3rem;}"], tokens.calendarHeaderFontFamily, tokens.calendarHeaderFontSize, tokens.calendarHeaderFontStyle, tokens.calendarHeaderFontWeightBold, tokens.calendarHeaderFontLetterSpacing, tokens.calendarHeaderFontLineHeight, /*#__PURE__*/String(flexCenter));
23
13
  export var StyledArrows = /*#__PURE__*/styled.div.withConfig({
24
14
  componentId: "plasma-new-hope__sc-186pzg3-3"
25
- })(["display:flex;gap:var(", ");padding:var(", ");"], tokens.calendarHeaderArrowGap, tokens.calendarHeaderArrowPadding);
26
-
27
- // NOTE: переопределение токенов IconButton
28
- export var StyledArrow = /*#__PURE__*/styled(IconButton).withConfig({
15
+ })(["padding:0.5rem 0;width:var(", ");display:flex;justify-content:space-between;align-items:center;"], tokens.calendarHeaderArrowContainerWidth);
16
+ export var StyledArrow = /*#__PURE__*/styled(buttonFocus).withConfig({
29
17
  componentId: "plasma-new-hope__sc-186pzg3-4"
30
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], iconButtonTokens.iconButtonColor, tokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, tokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, tokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, tokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, tokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive, tokens.iconButtonBackgroundColorActive, iconButtonTokens.iconButtonHeight, tokens.iconButtonHeight, iconButtonTokens.iconButtonWidth, tokens.iconButtonWidth, iconButtonTokens.iconButtonPadding, tokens.iconButtonPadding, iconButtonTokens.iconButtonRadius, tokens.iconButtonRadius, iconButtonTokens.iconButtonFocusColor, tokens.iconButtonFocusColor);
18
+ })(["display:flex;cursor:pointer;"]);
31
19
  export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
32
20
  componentId: "plasma-new-hope__sc-186pzg3-5"
33
- })(["width:100%;", ";"], flexCenter);
34
- export var StyledDoubleHeaderWrapper = /*#__PURE__*/styled.div.withConfig({
35
- componentId: "plasma-new-hope__sc-186pzg3-6"
36
- })(["width:100%;display:grid;grid-template-columns:var(", ") 1fr var(", ");grid-template-areas:'a b c';", "{grid-area:a;}&.", " ", "{grid-area:c;}"], tokens.iconButtonWidth, tokens.iconButtonWidth, StyledArrow, classes.doubleHeaderLastDateWrapper, StyledArrow);
37
- export var StyledHeaderDouble = /*#__PURE__*/styled.h4.withConfig({
38
- componentId: "plasma-new-hope__sc-186pzg3-7"
39
- })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");grid-area:b;justify-self:center;cursor:pointer;display:flex;gap:var(", ");justify-content:space-between;align-items:center;margin:0;", ";"], tokens.calendarHeaderFontFamily, tokens.calendarHeaderFontSize, tokens.calendarHeaderFontStyle, tokens.calendarHeaderFontWeightBold, tokens.calendarHeaderFontLetterSpacing, tokens.calendarHeaderFontLineHeight, tokens.calendarHeaderDateGap, /*#__PURE__*/String(flexCenter));
21
+ })(["width:100%;", ";"], /*#__PURE__*/String(flexCenter));
@@ -60,7 +60,7 @@ export var CalendarMonths = function CalendarMonths(_ref) {
60
60
  isCurrent = _ref2.isCurrent,
61
61
  monthFullName = _ref2.monthFullName;
62
62
  var selectedClass = isSelected ? classes.selectedItem : undefined;
63
- var currentClass = isCurrent ? classes.currentItem : undefined;
63
+ var currentClass = !isSelected && isCurrent ? classes.currentItem : undefined;
64
64
  return /*#__PURE__*/React.createElement(StyledMonthRoot, {
65
65
  id: "month-test-".concat(i, "-").concat(j),
66
66
  className: cx(selectedClass, currentClass, classes.selectableItem),
@@ -1,36 +1,22 @@
1
1
  import styled from 'styled-components';
2
- import { classes, tokens } from '../../Calendar.tokens';
2
+ import { flexCenter, selectedMixin } from '../../mixins';
3
+ import { tokens } from '../../Calendar.tokens';
3
4
  import { addFocus } from '../../../../mixins';
4
- import { addSelected, flexCenter } from '../../mixins';
5
5
  export var StyledCalendarMonths = /*#__PURE__*/styled.div.withConfig({
6
6
  componentId: "plasma-new-hope__sc-mx5ps9-0"
7
- })(["padding:var(", ");box-sizing:border-box;"], tokens.calendarMonthsPadding);
7
+ })(["padding:0.5rem 1.5rem 1.5rem;box-sizing:border-box;"]);
8
8
  export var StyledFlex = /*#__PURE__*/styled.div.withConfig({
9
9
  componentId: "plasma-new-hope__sc-mx5ps9-1"
10
10
  })(["", ";"], /*#__PURE__*/String(flexCenter));
11
11
  export var StyledMonth = /*#__PURE__*/styled.div.withConfig({
12
12
  componentId: "plasma-new-hope__sc-mx5ps9-2"
13
- })(["border-radius:calc(var(", ") - 0.125rem);", ";"], tokens.calendarMonthItemBorderRadius, /*#__PURE__*/String(flexCenter));
13
+ })(["border-radius:0.438rem;", ";"], /*#__PURE__*/String(flexCenter));
14
+ var selectable = /*#__PURE__*/"\n ".concat(addFocus({
15
+ outlineSize: '0.063rem',
16
+ outlineOffset: '-0.063rem',
17
+ outlineColor: "var(".concat(tokens.calendarOutlineFocusColor, ")"),
18
+ outlineRadius: '0.563rem'
19
+ }), ";\n\n --calendar_private-selected-min-width: 5.25rem;\n --calendar_private-selected-min-height: 3.25rem;\n --calendar_private-selected-background: var(").concat(tokens.calendarSelectedItemBackground, ");\n --calendar_private-selected-color: var(").concat(tokens.calendarSelectedItemColor, ");\n --calendar_private-selectable-background-hover: var(").concat(tokens.calendarSelectableItemBackgroundHover, ");\n --calendar_private-current-border-color: var(").concat(tokens.calendarCurrentItemBorderColor, ");\n --calendar_private-current-background-hover: var(").concat(tokens.calendarCurrentItemBackgroundHover, ");\n --calendar_private-current-color-hover: var(").concat(tokens.calendarCurrentItemColorHover, ");\n --calendar_private-current-child-background-hover: var(").concat(tokens.calendarCurrentItemChildBackgroundHover, ");\n --calendar_private-active-background: var(").concat(tokens.calendarActiveItemBackground, ");\n --calendar_private-active-color-hover: var(").concat(tokens.calendarActiveItemColor, ");\n --calendar_private-hovered-background: var(").concat(tokens.calendarHoveredItemBackground, ");\n --calendar_private-hovered-color: var(").concat(tokens.calendarHoveredItemColor, ");\n\n ").concat( /*#__PURE__*/String(selectedMixin), ";\n");
14
20
  export var StyledMonthRoot = /*#__PURE__*/styled.div.withConfig({
15
21
  componentId: "plasma-new-hope__sc-mx5ps9-3"
16
- })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");position:relative;box-sizing:border-box;min-height:var(", ");min-width:var(", ");border-radius:var(", ");", ";", ";", ";&.", "{", ";}"], tokens.calendarMonthFontFamily, tokens.calendarMonthFontSize, tokens.calendarMonthFontStyle, tokens.calendarMonthFontWeight, tokens.calendarMonthFontLetterSpacing, tokens.calendarMonthFontLineHeight, tokens.calendarMonthItemHeight, tokens.calendarMonthItemWidth, tokens.calendarMonthItemBorderRadius, /*#__PURE__*/String(flexCenter), /*#__PURE__*/addSelected({
17
- minWidth: /*#__PURE__*/"calc(var(".concat(tokens.calendarMonthItemWidth, ") - 0.25rem)"),
18
- minHeight: /*#__PURE__*/"calc(var(".concat(tokens.calendarMonthItemHeight, ") - 0.25rem)"),
19
- selectedFontWeight: /*#__PURE__*/"var(".concat(tokens.calendarMonthSelectedFontWeight, ")"),
20
- selectedBackground: /*#__PURE__*/"var(".concat(tokens.calendarSelectedItemBackground, ")"),
21
- selectedColor: /*#__PURE__*/"var(".concat(tokens.calendarSelectedItemColor, ")"),
22
- selectableBackgroundHover: /*#__PURE__*/"var(".concat(tokens.calendarSelectableItemBackgroundHover, ")"),
23
- currentBorderColor: /*#__PURE__*/"var(".concat(tokens.calendarCurrentItemBorderColor, ")"),
24
- activeBackground: /*#__PURE__*/"var(".concat(tokens.calendarActiveItemBackground, ")"),
25
- activeColor: /*#__PURE__*/"var(".concat(tokens.calendarActiveItemColor, ")")
26
- }), /*#__PURE__*/addFocus({
27
- outlineSize: '0.063rem',
28
- outlineOffset: '-0.125rem',
29
- outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
30
- outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.calendarMonthItemBorderRadius, ") + 0.125rem)")
31
- }), classes.currentItem, /*#__PURE__*/addFocus({
32
- outlineSize: '0.063rem',
33
- outlineOffset: '-0.1875rem',
34
- outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
35
- outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.calendarMonthItemBorderRadius, ") + 0.125rem)")
36
- }));
22
+ })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");position:relative;box-sizing:border-box;min-height:3.5rem;border-radius:var(", ");flex:1;", ";", ";"], tokens.calendarMonthFontFamily, tokens.calendarMonthFontSize, tokens.calendarMonthFontStyle, tokens.calendarMonthFontWeight, tokens.calendarMonthFontLetterSpacing, tokens.calendarMonthFontLineHeight, tokens.calendarItemBorderRadius, /*#__PURE__*/String(flexCenter), /*#__PURE__*/String(selectable));
@@ -59,7 +59,7 @@ export var CalendarYears = function CalendarYears(_ref) {
59
59
  isSelected = _ref2.isSelected,
60
60
  isCurrent = _ref2.isCurrent;
61
61
  var selectedClass = isSelected ? classes.selectedItem : undefined;
62
- var currentClass = isCurrent ? classes.currentItem : undefined;
62
+ var currentClass = !isSelected && isCurrent ? classes.currentItem : undefined;
63
63
  return /*#__PURE__*/React.createElement(StyledYearRoot, {
64
64
  className: cx(selectedClass, currentClass, classes.selectableItem),
65
65
  ref: function ref(element) {
@@ -1,36 +1,24 @@
1
1
  import styled from 'styled-components';
2
- import { classes, tokens } from '../../Calendar.tokens';
2
+ import { flexCenter, selectedMixin } from '../../mixins';
3
+ import { tokens } from '../../Calendar.tokens';
3
4
  import { addFocus } from '../../../../mixins';
4
- import { addSelected, flexCenter } from '../../mixins';
5
5
  export var StyledCalendarYears = /*#__PURE__*/styled.div.withConfig({
6
6
  componentId: "plasma-new-hope__sc-153qwc7-0"
7
- })(["padding:var(", ");box-sizing:border-box;"], tokens.calendarYearsPadding);
7
+ })(["padding:0.5rem 1.5rem 1.5rem;box-sizing:border-box;"]);
8
8
  export var StyledFlex = /*#__PURE__*/styled.div.withConfig({
9
9
  componentId: "plasma-new-hope__sc-153qwc7-1"
10
10
  })(["", ";"], /*#__PURE__*/String(flexCenter));
11
11
  export var StyledYear = /*#__PURE__*/styled.div.withConfig({
12
12
  componentId: "plasma-new-hope__sc-153qwc7-2"
13
- })(["border-radius:calc(var(", ") - 0.125rem);", ";"], tokens.calendarYearItemBorderRadius, /*#__PURE__*/String(flexCenter));
13
+ })(["border-radius:0.438rem;", ";"], /*#__PURE__*/String(flexCenter));
14
+ var selectable = function selectable() {
15
+ return "\n ".concat(addFocus({
16
+ outlineSize: '0.063rem',
17
+ outlineOffset: '-0.063rem',
18
+ outlineColor: "var(".concat(tokens.calendarOutlineFocusColor, ")"),
19
+ outlineRadius: '0.563rem'
20
+ }), ";\n\n --calendar_private-selected-min-width: 5.25rem;\n --calendar_private-selected-min-height: 3.25rem;\n --calendar_private-selected-background: var(").concat(tokens.calendarSelectedItemBackground, ");\n --calendar_private-selected-color: var(").concat(tokens.calendarSelectedItemColor, ");\n --calendar_private-selectable-background-hover: var(").concat(tokens.calendarSelectableItemBackgroundHover, ");\n --calendar_private-current-border-color: var(").concat(tokens.calendarCurrentItemBorderColor, ");\n --calendar_private-current-background-hover: var(").concat(tokens.calendarCurrentItemBackgroundHover, ");\n --calendar_private-current-color-hover: var(").concat(tokens.calendarCurrentItemColorHover, ");\n --calendar_private-current-child-background-hover: var(").concat(tokens.calendarCurrentItemChildBackgroundHover, ");\n --calendar_private-active-background: var(").concat(tokens.calendarActiveItemBackground, ");\n --calendar_private-active-color: var(").concat(tokens.calendarActiveItemColor, ");\n --calendar_private-hovered-background: var(").concat(tokens.calendarHoveredItemBackground, ");\n --calendar_private-hovered-color: var(").concat(tokens.calendarHoveredItemColor, ");\n \n ").concat(String(selectedMixin), ";\n");
21
+ };
14
22
  export var StyledYearRoot = /*#__PURE__*/styled.div.withConfig({
15
23
  componentId: "plasma-new-hope__sc-153qwc7-3"
16
- })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");position:relative;box-sizing:border-box;min-height:var(", ");min-width:var(", ");border-radius:var(", ");", ";", ";", ";&.", "{", ";}"], tokens.calendarYearFontFamily, tokens.calendarYearFontSize, tokens.calendarYearFontStyle, tokens.calendarYearFontWeight, tokens.calendarYearFontLetterSpacing, tokens.calendarYearFontLineHeight, tokens.calendarYearItemHeight, tokens.calendarYearItemWidth, tokens.calendarYearItemBorderRadius, /*#__PURE__*/String(flexCenter), /*#__PURE__*/addSelected({
17
- minWidth: /*#__PURE__*/"calc(var(".concat(tokens.calendarYearItemWidth, ") - 0.25rem)"),
18
- minHeight: /*#__PURE__*/"calc(var(".concat(tokens.calendarYearItemHeight, ") - 0.25rem)"),
19
- selectedFontWeight: /*#__PURE__*/"var(".concat(tokens.calendarYearSelectedFontWeight, ")"),
20
- selectedBackground: /*#__PURE__*/"var(".concat(tokens.calendarSelectedItemBackground, ")"),
21
- selectedColor: /*#__PURE__*/"var(".concat(tokens.calendarSelectedItemColor, ")"),
22
- selectableBackgroundHover: /*#__PURE__*/"var(".concat(tokens.calendarSelectableItemBackgroundHover, ")"),
23
- currentBorderColor: /*#__PURE__*/"var(".concat(tokens.calendarCurrentItemBorderColor, ")"),
24
- activeBackground: /*#__PURE__*/"var(".concat(tokens.calendarActiveItemBackground, ")"),
25
- activeColor: /*#__PURE__*/"var(".concat(tokens.calendarActiveItemColor, ")")
26
- }), /*#__PURE__*/addFocus({
27
- outlineSize: '0.063rem',
28
- outlineOffset: '-0.125rem',
29
- outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
30
- outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.calendarYearItemBorderRadius, ") + 0.125rem)")
31
- }), classes.currentItem, /*#__PURE__*/addFocus({
32
- outlineSize: '0.063rem',
33
- outlineOffset: '-0.1875rem',
34
- outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
35
- outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.calendarYearItemBorderRadius, ") + 0.125rem)")
36
- }));
24
+ })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");position:relative;box-sizing:border-box;min-height:3.5rem;border-radius:var(", ");flex:1;", ";", ";"], tokens.calendarYearFontFamily, tokens.calendarYearFontSize, tokens.calendarYearFontStyle, tokens.calendarYearFontWeight, tokens.calendarYearFontLetterSpacing, tokens.calendarYearFontLineHeight, tokens.calendarItemBorderRadius, /*#__PURE__*/String(flexCenter), /*#__PURE__*/selectable());
@@ -10,7 +10,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
11
  import React, { Children, forwardRef, useEffect, useRef, useState } from 'react';
12
12
  import { safeUseId, useForkRef } from '@salutejs/plasma-core';
13
- import { cx, getPlacements } from '../../utils';
13
+ import { cx } from '../../utils';
14
+ import { getPlacements } from '../Dropdown/utils';
14
15
  import { getChildren, getNewSelected, getValues } from '../Select/utils';
15
16
  import { useKeyNavigation } from '../Select/hooks';
16
17
  import { useDidMountEffect, useForceUpdate } from '../../hooks';
@@ -9,14 +9,14 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
11
  import React, { forwardRef, useReducer } from 'react';
12
- import { cx, getPlacements } from '../../utils';
12
+ import { cx } from '../../utils';
13
13
  import { pathReducer } from './reducers/pathReducer';
14
14
  import { focusedPathReducer } from './reducers/focusedPathReducer';
15
15
  import { DropdownInner } from './ui';
16
16
  import { base as viewCSS } from './variations/_view/base';
17
17
  import { base as sizeCSS } from './variations/_size/base';
18
18
  import { Ul, StyledPopover, base } from './Dropdown.styles';
19
- import { childrenWithProps } from './utils';
19
+ import { getPlacements, childrenWithProps } from './utils';
20
20
  import { classes } from './Dropdown.tokens';
21
21
  import { useKeyNavigation } from './hooks/useKeyboardNavigation';
22
22
  import { useHashMaps } from './hooks/useHashMaps';
@@ -154,8 +154,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
154
154
  onItemClick: onItemClick,
155
155
  listWidth: listWidth,
156
156
  variant: variant,
157
- hasArrow: hasArrow,
158
- size: size
157
+ hasArrow: hasArrow
159
158
  });
160
159
  }))));
161
160
  });
@@ -19,8 +19,7 @@ var DropdownInner = function DropdownInner(_ref) {
19
19
  onItemClick = _ref.onItemClick,
20
20
  listWidth = _ref.listWidth,
21
21
  variant = _ref.variant,
22
- hasArrow = _ref.hasArrow,
23
- size = _ref.size;
22
+ hasArrow = _ref.hasArrow;
24
23
  var handleToggle = function handleToggle(opened) {
25
24
  if (opened) {
26
25
  dispatchPath({
@@ -59,8 +58,7 @@ var DropdownInner = function DropdownInner(_ref) {
59
58
  ariaControls: listId,
60
59
  ariaExpanded: isCurrentListOpen,
61
60
  ariaLevel: nextLevel,
62
- ariaLabel: item.label,
63
- size: size
61
+ ariaLabel: item.label
64
62
  }),
65
63
  onToggle: handleToggle,
66
64
  isFocusTrapped: false,
@@ -92,8 +90,7 @@ var DropdownInner = function DropdownInner(_ref) {
92
90
  onItemClick: onItemClick,
93
91
  listWidth: listWidth,
94
92
  variant: variant,
95
- hasArrow: hasArrow,
96
- size: size
93
+ hasArrow: hasArrow
97
94
  });
98
95
  })));
99
96
  }
@@ -108,8 +105,7 @@ var DropdownInner = function DropdownInner(_ref) {
108
105
  onHover: onHover,
109
106
  onItemSelect: onItemSelect,
110
107
  onItemClick: onItemClick,
111
- variant: variant,
112
- size: size
108
+ variant: variant
113
109
  });
114
110
  };
115
111
  export { DropdownInner };
@@ -1,3 +1,4 @@
1
+ var _DisclosureIconWrappe;
1
2
  import React, { useEffect, useRef } from 'react';
2
3
  import { classes } from '../../Dropdown.tokens';
3
4
  import { cx } from '../../../../utils';
@@ -21,8 +22,7 @@ export var DropdownItem = function DropdownItem(_ref) {
21
22
  ariaLevel = _ref.ariaLevel,
22
23
  ariaLabel = _ref.ariaLabel,
23
24
  variant = _ref.variant,
24
- hasArrow = _ref.hasArrow,
25
- size = _ref.size;
25
+ hasArrow = _ref.hasArrow;
26
26
  var value = item.value,
27
27
  label = item.label,
28
28
  disabled = item.disabled,
@@ -30,7 +30,6 @@ export var DropdownItem = function DropdownItem(_ref) {
30
30
  contentLeft = item.contentLeft,
31
31
  contentRight = item.contentRight;
32
32
  var ref = useRef(null);
33
- var disclosureIconSize = size === 'xs' ? 'xs' : 's';
34
33
  var isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;
35
34
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
36
35
  var activeClass = value === (path === null || path === void 0 ? void 0 : path[currentLevel + 1]) ? classes.dropdownItemIsActive : undefined;
@@ -76,8 +75,8 @@ export var DropdownItem = function DropdownItem(_ref) {
76
75
  "aria-haspopup": ariaHasPopup,
77
76
  "aria-level": ariaLevel,
78
77
  "aria-label": ariaLabel
79
- }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledText, null, label), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight), item.items && hasArrow && /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRight, {
80
- size: disclosureIconSize,
78
+ }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledText, null, label), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight), item.items && hasArrow && (_DisclosureIconWrappe || (_DisclosureIconWrappe = /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRight, {
79
+ size: "xs",
81
80
  color: "inherit"
82
- })));
81
+ })))));
83
82
  };
@@ -1,5 +1,20 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  import React, { Children, cloneElement, isValidElement } from 'react';
3
+ export var getPlacement = function getPlacement(placement) {
4
+ return "".concat(placement, "-start");
5
+ };
6
+ export var getPlacements = function getPlacements(placements) {
7
+ if (!placements) {
8
+ return;
9
+ }
10
+ var isArray = Array.isArray(placements);
11
+ if (!isArray) {
12
+ return getPlacement(placements);
13
+ }
14
+ return (placements || []).map(function (placement) {
15
+ return getPlacement(placement);
16
+ });
17
+ };
3
18
  export var getCorrectHeight = function getCorrectHeight(listHeight) {
4
19
  if (Number.isNaN(Number(listHeight))) {
5
20
  return listHeight.toString();
@@ -3,7 +3,7 @@ var _excluded = ["label", "leftHelper", "contentLeft", "contentRight", "view", "
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
- import React, { forwardRef, useImperativeHandle, useMemo, useRef } from 'react';
6
+ import React, { forwardRef, useMemo } from 'react';
7
7
  import { cx } from '../../utils';
8
8
  import { base as sizeCSS } from './variations/_size/base';
9
9
  import { base as viewCSS } from './variations/_view/base';
@@ -53,9 +53,6 @@ export var rangeRoot = function rangeRoot(Root) {
53
53
  onBlurFirstTextfield = _ref.onBlurFirstTextfield,
54
54
  onBlurSecondTextfield = _ref.onBlurSecondTextfield,
55
55
  rest = _objectWithoutProperties(_ref, _excluded);
56
- var rangeRef = useRef(null);
57
- var firstTextFieldRef = useRef(null);
58
- var secondTextFieldRef = useRef(null);
59
56
  var rangeErrorClass = firstValueError && secondValueError ? classes.rangeError : undefined;
60
57
  var firstValueErrorClass = !rangeErrorClass && firstValueError ? classes.rangeValueError : undefined;
61
58
  var secondValueErrorClass = !rangeErrorClass && secondValueError ? classes.rangeValueError : undefined;
@@ -66,16 +63,6 @@ export var rangeRoot = function rangeRoot(Root) {
66
63
  var handleChangeSecondValue = getChangeHandler(onChangeSecondValue, disabled, readOnly);
67
64
  var handleSearchFirstValue = getSearchHandler(onSearchFirstValue, disabled, readOnly);
68
65
  var handleSearchSecondValue = getSearchHandler(onSearchSecondValue, disabled, readOnly);
69
- useImperativeHandle(ref, function () {
70
- return {
71
- firstTextField: function firstTextField() {
72
- return firstTextFieldRef;
73
- },
74
- secondTextField: function secondTextField() {
75
- return secondTextFieldRef;
76
- }
77
- };
78
- }, [firstTextFieldRef, secondTextFieldRef]);
79
66
  var Divider = useMemo(function () {
80
67
  if (dividerVariant === 'none') {
81
68
  return null;
@@ -86,15 +73,14 @@ export var rangeRoot = function rangeRoot(Root) {
86
73
  return _StyledDivider2 || (_StyledDivider2 = /*#__PURE__*/React.createElement(StyledDivider, null, dividerIcon));
87
74
  }, [dividerVariant, dividerIcon]);
88
75
  return /*#__PURE__*/React.createElement(Root, _extends({
89
- ref: rangeRef,
90
76
  view: view,
91
77
  size: size,
92
78
  disabled: disabled,
93
- readOnly: !disabled && readOnly
79
+ readOnly: !disabled && readOnly,
80
+ ref: ref
94
81
  }, rest), label && /*#__PURE__*/React.createElement(StyledLabel, null, label), /*#__PURE__*/React.createElement(ContentWrapper, {
95
82
  className: cx(rangeErrorClass, rangeSuccessClass)
96
83
  }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledInput, {
97
- ref: firstTextFieldRef,
98
84
  className: cx(firstValueErrorClass, firstValueSuccessClass),
99
85
  value: firstValue,
100
86
  readOnly: readOnly,
@@ -109,7 +95,6 @@ export var rangeRoot = function rangeRoot(Root) {
109
95
  onFocus: onFocusFirstTextfield,
110
96
  onBlur: onBlurFirstTextfield
111
97
  }), Divider, /*#__PURE__*/React.createElement(StyledInput, {
112
- ref: secondTextFieldRef,
113
98
  className: cx(secondValueErrorClass, secondValueSuccessClass),
114
99
  value: secondValue,
115
100
  readOnly: readOnly,