@salutejs/plasma-new-hope 0.94.0-canary.1274.9714678450.0 → 0.94.1-canary.1273.9715265388.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (629) hide show
  1. package/cjs/components/Calendar/Calendar.tokens.js +67 -28
  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 +57 -29
  5. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
  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_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
  10. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
  11. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +6 -0
  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_1rc2ejs.css → cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.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/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  20. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  21. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  22. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_107vqka.css +4 -0
  23. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  24. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  25. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  26. package/cjs/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
  27. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
  28. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +31 -17
  29. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  30. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +27 -12
  31. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  32. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +8 -0
  33. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  34. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  35. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  36. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  37. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  38. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7jeg2n.css +4 -0
  39. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  40. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  41. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  42. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  44. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_4z2ki7.css +4 -0
  45. package/cjs/components/Calendar/utils/index.js.map +1 -1
  46. package/cjs/components/Combobox/Combobox.js +2 -2
  47. package/cjs/components/Combobox/Combobox.js.map +1 -1
  48. package/cjs/components/DatePicker/DatePicker.tokens.js +189 -0
  49. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -0
  50. package/cjs/components/DatePicker/DatePickerBase.styles.js +30 -0
  51. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -0
  52. package/cjs/components/DatePicker/DatePickerBase.styles_1thp2xv.css +1 -0
  53. package/cjs/components/DatePicker/RangeDate/RangeDate.css +152 -0
  54. package/cjs/components/DatePicker/RangeDate/RangeDate.js +285 -0
  55. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -0
  56. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +51 -0
  57. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -0
  58. package/cjs/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +5 -0
  59. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +144 -0
  60. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +83 -0
  61. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -0
  62. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +42 -0
  63. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -0
  64. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +2 -0
  65. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +9 -0
  66. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
  67. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
  68. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +9 -0
  69. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
  70. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +1 -0
  71. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +9 -0
  72. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
  73. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +1 -0
  74. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js +9 -0
  75. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
  76. package/cjs/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +1 -0
  77. package/cjs/components/DatePicker/SingleDate/SingleDate.css +134 -0
  78. package/cjs/components/DatePicker/SingleDate/SingleDate.js +183 -0
  79. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -0
  80. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +51 -0
  81. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -0
  82. package/cjs/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +5 -0
  83. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
  84. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
  85. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
  86. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +9 -0
  87. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
  88. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +1 -0
  89. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +9 -0
  90. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
  91. package/cjs/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +1 -0
  92. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +9 -0
  93. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
  94. package/cjs/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +1 -0
  95. package/cjs/components/DatePicker/hooks/useDatePicker.js +79 -0
  96. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -0
  97. package/cjs/components/DatePicker/utils/dateHelper.js +84 -0
  98. package/cjs/components/DatePicker/utils/dateHelper.js.map +1 -0
  99. package/cjs/components/Dropdown/Dropdown.js +4 -2
  100. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  101. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +8 -4
  102. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  103. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +6 -5
  104. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  105. package/cjs/components/Dropdown/utils/index.js +0 -17
  106. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  107. package/cjs/components/Range/Range.css +6 -6
  108. package/cjs/components/Range/Range.js +17 -2
  109. package/cjs/components/Range/Range.js.map +1 -1
  110. package/cjs/components/Range/Range.styles.js +1 -1
  111. package/cjs/components/Range/Range.styles.js.map +1 -1
  112. package/cjs/components/Range/Range.styles_9rort8.css +8 -0
  113. package/cjs/components/Select/Select.js +2 -2
  114. package/cjs/components/Select/Select.js.map +1 -1
  115. package/cjs/components/Sheet/Sheet.js.map +1 -1
  116. package/cjs/components/Slider/Slider.css +3 -3
  117. package/cjs/components/Slider/components/Double/Double.css +3 -3
  118. package/cjs/components/TextField/TextField.tokens.js +1 -1
  119. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  120. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  121. package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
  122. package/cjs/components/TextField/variations/_size/base.js +1 -1
  123. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  124. package/cjs/components/TextField/variations/_size/base_orwx1f.css +1 -0
  125. package/cjs/components/TextField/variations/_view/base.js +1 -1
  126. package/cjs/components/TextField/variations/_view/base_18ea6z7.css +1 -0
  127. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +23 -0
  128. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
  129. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  130. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  131. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  132. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  133. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +23 -0
  134. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
  135. package/cjs/index.css +71 -38
  136. package/cjs/index.js +12 -0
  137. package/cjs/index.js.map +1 -1
  138. package/cjs/utils/datejs.js +12 -0
  139. package/cjs/utils/datejs.js.map +1 -0
  140. package/cjs/utils/getPopoverPlacement.js +23 -0
  141. package/cjs/utils/getPopoverPlacement.js.map +1 -0
  142. package/cjs/utils/index.js.map +1 -1
  143. package/es/components/Calendar/Calendar.tokens.js +67 -28
  144. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  145. package/es/components/Calendar/Calendar.types.js.map +1 -1
  146. package/es/components/Calendar/CalendarBase/CalendarBase.css +57 -29
  147. package/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
  148. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  149. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  150. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  151. package/es/components/Calendar/CalendarBase/{CalendarBase.styles_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
  152. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
  153. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +7 -1
  154. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  155. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  156. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  157. package/{cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_1rc2ejs.css → es/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.css} +2 -2
  158. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  159. package/es/components/Calendar/hooks/useDays.js +1 -1
  160. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  161. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  162. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  163. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  164. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_107vqka.css +4 -0
  165. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  166. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  167. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  168. package/es/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
  169. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
  170. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +32 -18
  171. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  172. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +26 -13
  173. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  174. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +8 -0
  175. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  176. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  177. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  178. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  179. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  180. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7jeg2n.css +4 -0
  181. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  182. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  183. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  184. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  185. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  186. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_4z2ki7.css +4 -0
  187. package/es/components/Calendar/utils/index.js.map +1 -1
  188. package/es/components/Combobox/Combobox.js +1 -1
  189. package/es/components/Combobox/Combobox.js.map +1 -1
  190. package/es/components/DatePicker/DatePicker.tokens.js +184 -0
  191. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -0
  192. package/es/components/DatePicker/DatePickerBase.styles.js +26 -0
  193. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -0
  194. package/es/components/DatePicker/DatePickerBase.styles_1thp2xv.css +1 -0
  195. package/es/components/DatePicker/RangeDate/RangeDate.css +152 -0
  196. package/es/components/DatePicker/RangeDate/RangeDate.js +280 -0
  197. package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -0
  198. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +43 -0
  199. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -0
  200. package/es/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +5 -0
  201. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +144 -0
  202. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +79 -0
  203. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -0
  204. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +37 -0
  205. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -0
  206. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +2 -0
  207. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js +5 -0
  208. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
  209. package/es/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
  210. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js +5 -0
  211. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
  212. package/es/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +1 -0
  213. package/es/components/DatePicker/RangeDate/variations/_size/base.js +5 -0
  214. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
  215. package/es/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +1 -0
  216. package/es/components/DatePicker/RangeDate/variations/_view/base.js +5 -0
  217. package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
  218. package/es/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +1 -0
  219. package/es/components/DatePicker/SingleDate/SingleDate.css +134 -0
  220. package/es/components/DatePicker/SingleDate/SingleDate.js +178 -0
  221. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -0
  222. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +43 -0
  223. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -0
  224. package/es/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +5 -0
  225. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js +5 -0
  226. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
  227. package/es/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
  228. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js +5 -0
  229. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
  230. package/es/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +1 -0
  231. package/es/components/DatePicker/SingleDate/variations/_size/base.js +5 -0
  232. package/es/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
  233. package/es/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +1 -0
  234. package/es/components/DatePicker/SingleDate/variations/_view/base.js +5 -0
  235. package/es/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
  236. package/es/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +1 -0
  237. package/es/components/DatePicker/hooks/useDatePicker.js +75 -0
  238. package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -0
  239. package/es/components/DatePicker/utils/dateHelper.js +76 -0
  240. package/es/components/DatePicker/utils/dateHelper.js.map +1 -0
  241. package/es/components/Dropdown/Dropdown.js +4 -2
  242. package/es/components/Dropdown/Dropdown.js.map +1 -1
  243. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +8 -4
  244. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  245. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +6 -5
  246. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  247. package/es/components/Dropdown/utils/index.js +1 -16
  248. package/es/components/Dropdown/utils/index.js.map +1 -1
  249. package/es/components/Range/Range.css +6 -6
  250. package/es/components/Range/Range.js +18 -3
  251. package/es/components/Range/Range.js.map +1 -1
  252. package/es/components/Range/Range.styles.js +1 -1
  253. package/es/components/Range/Range.styles.js.map +1 -1
  254. package/es/components/Range/Range.styles_9rort8.css +8 -0
  255. package/es/components/Select/Select.js +1 -1
  256. package/es/components/Select/Select.js.map +1 -1
  257. package/es/components/Sheet/Sheet.js +4 -4
  258. package/es/components/Sheet/Sheet.js.map +1 -1
  259. package/es/components/Slider/Slider.css +3 -3
  260. package/es/components/Slider/components/Double/Double.css +3 -3
  261. package/es/components/TextField/TextField.tokens.js +1 -1
  262. package/es/components/TextField/TextField.tokens.js.map +1 -1
  263. package/es/components/TextField/variations/_read-only/base.js +1 -1
  264. package/es/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
  265. package/es/components/TextField/variations/_size/base.js +1 -1
  266. package/es/components/TextField/variations/_size/base.js.map +1 -1
  267. package/es/components/TextField/variations/_size/base_orwx1f.css +1 -0
  268. package/es/components/TextField/variations/_view/base.js +1 -1
  269. package/es/components/TextField/variations/_view/base_18ea6z7.css +1 -0
  270. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js +19 -0
  271. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
  272. package/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  273. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  274. package/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  275. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  276. package/es/components/_Icon/Icons/IconDisclosureDownFill.js +19 -0
  277. package/es/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
  278. package/es/index.css +71 -38
  279. package/es/index.js +4 -0
  280. package/es/index.js.map +1 -1
  281. package/es/utils/datejs.js +8 -0
  282. package/es/utils/datejs.js.map +1 -0
  283. package/es/utils/getPopoverPlacement.js +18 -0
  284. package/es/utils/getPopoverPlacement.js.map +1 -0
  285. package/es/utils/index.js.map +1 -1
  286. package/package.json +5 -4
  287. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +67 -28
  288. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
  289. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
  290. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +6 -0
  291. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  292. package/styled-components/cjs/components/Calendar/hooks/useDays.js +1 -1
  293. package/styled-components/cjs/components/Calendar/mixins/active.js +12 -0
  294. package/styled-components/cjs/components/Calendar/mixins/flex.js +8 -0
  295. package/styled-components/cjs/components/Calendar/mixins/index.js +30 -29
  296. package/styled-components/cjs/components/Calendar/mixins/selected.js +24 -0
  297. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +27 -20
  298. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
  299. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +30 -16
  300. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
  301. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  302. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +26 -12
  303. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  304. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +26 -14
  305. package/styled-components/cjs/components/Combobox/Combobox.js +6 -7
  306. package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +150 -0
  307. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +187 -0
  308. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +19 -0
  309. package/styled-components/cjs/components/DatePicker/DatePickerBase.types.js +5 -0
  310. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +293 -0
  311. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +33 -0
  312. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.types.js +5 -0
  313. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +81 -0
  314. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +26 -0
  315. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +5 -0
  316. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +9 -0
  317. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  318. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +10 -0
  319. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
  320. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +10 -0
  321. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  322. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/base.js +10 -0
  323. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  324. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +190 -0
  325. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +33 -0
  326. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.types.js +5 -0
  327. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
  328. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
  329. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +10 -0
  330. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
  331. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/base.js +10 -0
  332. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
  333. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/base.js +10 -0
  334. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
  335. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +77 -0
  336. package/styled-components/cjs/components/DatePicker/index.js +44 -0
  337. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +78 -0
  338. package/styled-components/cjs/components/Dropdown/Dropdown.js +3 -2
  339. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +8 -4
  340. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +6 -5
  341. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -16
  342. package/styled-components/cjs/components/Range/Range.js +17 -2
  343. package/styled-components/cjs/components/Range/Range.styles.js +3 -2
  344. package/styled-components/cjs/components/Select/Select.js +7 -8
  345. package/styled-components/cjs/components/Sheet/Sheet.js +3 -3
  346. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -1
  347. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  348. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +22 -0
  349. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  350. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  351. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +22 -0
  352. package/styled-components/cjs/components/_Icon/index.js +7 -0
  353. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
  354. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
  355. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -2
  356. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +31 -0
  357. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.js +13 -0
  358. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +257 -0
  359. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  360. package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +2 -2
  361. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
  362. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
  363. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -2
  364. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +31 -0
  365. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.js +13 -0
  366. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +257 -0
  367. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +4 -4
  368. package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.stories.tsx +2 -2
  369. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
  370. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
  371. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -2
  372. package/styled-components/cjs/index.js +11 -0
  373. package/styled-components/cjs/utils/datejs.js +11 -0
  374. package/styled-components/cjs/utils/getPopoverPlacement.js +21 -0
  375. package/styled-components/cjs/utils/index.js +22 -0
  376. package/styled-components/es/components/Calendar/Calendar.tokens.js +67 -28
  377. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
  378. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
  379. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +7 -1
  380. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  381. package/styled-components/es/components/Calendar/hooks/useDays.js +1 -1
  382. package/styled-components/es/components/Calendar/mixins/active.js +6 -0
  383. package/styled-components/es/components/Calendar/mixins/flex.js +2 -0
  384. package/styled-components/es/components/Calendar/mixins/index.js +3 -27
  385. package/styled-components/es/components/Calendar/mixins/selected.js +18 -0
  386. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +26 -19
  387. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
  388. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +32 -18
  389. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
  390. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  391. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +25 -11
  392. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  393. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +25 -13
  394. package/styled-components/es/components/Combobox/Combobox.js +1 -2
  395. package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +150 -0
  396. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +181 -0
  397. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +12 -0
  398. package/styled-components/es/components/DatePicker/DatePickerBase.types.js +1 -0
  399. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +284 -0
  400. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.styles.js +25 -0
  401. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.types.js +1 -0
  402. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +74 -0
  403. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +19 -0
  404. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +1 -0
  405. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/base.js +3 -0
  406. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  407. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +4 -0
  408. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
  409. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +4 -0
  410. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  411. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/base.js +4 -0
  412. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  413. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +181 -0
  414. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +25 -0
  415. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.types.js +1 -0
  416. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/base.js +3 -0
  417. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
  418. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/base.js +4 -0
  419. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
  420. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/base.js +4 -0
  421. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
  422. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/base.js +4 -0
  423. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
  424. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +71 -0
  425. package/styled-components/es/components/DatePicker/index.js +3 -0
  426. package/styled-components/es/components/DatePicker/utils/dateHelper.js +72 -0
  427. package/styled-components/es/components/Dropdown/Dropdown.js +4 -3
  428. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +8 -4
  429. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +6 -5
  430. package/styled-components/es/components/Dropdown/utils/index.js +0 -15
  431. package/styled-components/es/components/Range/Range.js +18 -3
  432. package/styled-components/es/components/Range/Range.styles.js +3 -2
  433. package/styled-components/es/components/Select/Select.js +1 -2
  434. package/styled-components/es/components/Sheet/Sheet.js +4 -4
  435. package/styled-components/es/components/TextField/TextField.tokens.js +1 -1
  436. package/styled-components/es/components/TextField/variations/_size/base.js +1 -1
  437. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDownFill.js +15 -0
  438. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  439. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  440. package/styled-components/es/components/_Icon/Icons/IconDisclosureDownFill.js +15 -0
  441. package/styled-components/es/components/_Icon/index.js +1 -0
  442. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
  443. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
  444. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -2
  445. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +25 -0
  446. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.js +7 -0
  447. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +257 -0
  448. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  449. package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +2 -2
  450. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
  451. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
  452. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -2
  453. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +25 -0
  454. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.js +7 -0
  455. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +257 -0
  456. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +4 -4
  457. package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.stories.tsx +2 -2
  458. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
  459. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
  460. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -2
  461. package/styled-components/es/index.js +2 -1
  462. package/styled-components/es/utils/datejs.js +4 -0
  463. package/styled-components/es/utils/getPopoverPlacement.js +15 -0
  464. package/styled-components/es/utils/index.js +1 -0
  465. package/types/components/Accordion/utils/index.d.ts +1 -1
  466. package/types/components/Calendar/Calendar.tokens.d.ts +60 -26
  467. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  468. package/types/components/Calendar/Calendar.types.d.ts +1 -1
  469. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  470. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +27 -3
  471. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  472. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  473. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +30 -3
  474. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  475. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  476. package/types/components/Calendar/mixins/active.d.ts +17 -0
  477. package/types/components/Calendar/mixins/active.d.ts.map +1 -0
  478. package/types/components/Calendar/mixins/flex.d.ts +3 -0
  479. package/types/components/Calendar/mixins/flex.d.ts.map +1 -0
  480. package/types/components/Calendar/mixins/index.d.ts +3 -8
  481. package/types/components/Calendar/mixins/index.d.ts.map +1 -1
  482. package/types/components/Calendar/mixins/selected.d.ts +40 -0
  483. package/types/components/Calendar/mixins/selected.d.ts.map +1 -0
  484. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
  485. package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
  486. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  487. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +47 -7
  488. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  489. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +1 -0
  490. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
  491. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  492. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  493. package/types/components/Calendar/utils/index.d.ts +1 -1
  494. package/types/components/Calendar/utils/index.d.ts.map +1 -1
  495. package/types/components/Combobox/Combobox.d.ts.map +1 -1
  496. package/types/components/DatePicker/DatePicker.tokens.d.ts +182 -0
  497. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -0
  498. package/types/components/DatePicker/DatePickerBase.styles.d.ts +8 -0
  499. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -0
  500. package/types/components/DatePicker/DatePickerBase.types.d.ts +37 -0
  501. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -0
  502. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +110 -0
  503. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -0
  504. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +115 -0
  505. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +1 -0
  506. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +76 -0
  507. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +1 -0
  508. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +4 -0
  509. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -0
  510. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +5 -0
  511. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +1 -0
  512. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +29 -0
  513. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +1 -0
  514. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts +2 -0
  515. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts.map +1 -0
  516. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts +2 -0
  517. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +1 -0
  518. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts +2 -0
  519. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +1 -0
  520. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts +2 -0
  521. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +1 -0
  522. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +31 -0
  523. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -0
  524. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +45 -0
  525. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -0
  526. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +120 -0
  527. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -0
  528. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts +2 -0
  529. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts.map +1 -0
  530. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts +2 -0
  531. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts.map +1 -0
  532. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts +2 -0
  533. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts.map +1 -0
  534. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts +2 -0
  535. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts.map +1 -0
  536. package/types/components/DatePicker/hooks/useDatePicker.d.ts +10 -0
  537. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -0
  538. package/types/components/DatePicker/index.d.ts +6 -0
  539. package/types/components/DatePicker/index.d.ts.map +1 -0
  540. package/types/components/DatePicker/utils/dateHelper.d.ts +10 -0
  541. package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -0
  542. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  543. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  544. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +1 -0
  545. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  546. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  547. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +1 -0
  548. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  549. package/types/components/Dropdown/utils/index.d.ts +1 -3
  550. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  551. package/types/components/Range/Range.d.ts +3 -3
  552. package/types/components/Range/Range.d.ts.map +1 -1
  553. package/types/components/Range/Range.styles.d.ts.map +1 -1
  554. package/types/components/Range/Range.types.d.ts +8 -3
  555. package/types/components/Range/Range.types.d.ts.map +1 -1
  556. package/types/components/Range/index.d.ts +1 -1
  557. package/types/components/Range/index.d.ts.map +1 -1
  558. package/types/components/Select/Select.d.ts.map +1 -1
  559. package/types/components/Sheet/Sheet.d.ts.map +1 -1
  560. package/types/components/Sheet/Sheet.types.d.ts +1 -1
  561. package/types/components/Sheet/Sheet.types.d.ts.map +1 -1
  562. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  563. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts +4 -0
  564. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts.map +1 -0
  565. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  566. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts +4 -0
  567. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts.map +1 -0
  568. package/types/components/_Icon/index.d.ts +1 -0
  569. package/types/components/_Icon/index.d.ts.map +1 -1
  570. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +15 -4
  571. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
  572. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +3 -0
  573. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  574. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +3 -0
  575. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  576. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts +24 -0
  577. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -0
  578. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +75 -0
  579. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -0
  580. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -3
  581. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  582. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +15 -4
  583. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
  584. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +3 -0
  585. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  586. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +3 -0
  587. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  588. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts +24 -0
  589. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -0
  590. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +75 -0
  591. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -0
  592. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -3
  593. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  594. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +15 -4
  595. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
  596. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +3 -0
  597. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  598. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +3 -0
  599. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  600. package/types/index.d.ts +1 -0
  601. package/types/index.d.ts.map +1 -1
  602. package/types/utils/datejs.d.ts +3 -0
  603. package/types/utils/datejs.d.ts.map +1 -0
  604. package/types/utils/getPopoverPlacement.d.ts +5 -0
  605. package/types/utils/getPopoverPlacement.d.ts.map +1 -0
  606. package/types/utils/index.d.ts +1 -0
  607. package/types/utils/index.d.ts.map +1 -1
  608. package/cjs/components/Calendar/mixins/index.js +0 -18
  609. package/cjs/components/Calendar/mixins/index.js.map +0 -1
  610. package/cjs/components/Calendar/mixins/index_o3bz9l.css +0 -1
  611. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
  612. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
  613. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
  614. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
  615. package/cjs/components/Range/Range.styles_mc4w65.css +0 -8
  616. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  617. package/cjs/components/TextField/variations/_size/base_ntoddv.css +0 -1
  618. package/cjs/components/TextField/variations/_view/base_19gxyva.css +0 -1
  619. package/es/components/Calendar/mixins/index.js +0 -14
  620. package/es/components/Calendar/mixins/index.js.map +0 -1
  621. package/es/components/Calendar/mixins/index_o3bz9l.css +0 -1
  622. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
  623. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
  624. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
  625. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
  626. package/es/components/Range/Range.styles_mc4w65.css +0 -8
  627. package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  628. package/es/components/TextField/variations/_size/base_ntoddv.css +0 -1
  629. package/es/components/TextField/variations/_view/base_19gxyva.css +0 -1
@@ -0,0 +1,25 @@
1
+ import styled from 'styled-components';
2
+ import { css } from 'styled-components';
3
+ import { component, mergeConfig } from '../../../engines';
4
+ import { textFieldConfig, textFieldTokens } from '../../TextField';
5
+ import { classes, tokens } from '../DatePicker.tokens';
6
+ import { popoverConfig } from '../../Popover';
7
+ var mergedTextFieldConfig = /*#__PURE__*/mergeConfig(textFieldConfig);
8
+ var TextField = /*#__PURE__*/component(mergedTextFieldConfig);
9
+ var mergedPopoverConfig = /*#__PURE__*/mergeConfig(popoverConfig);
10
+ var Popover = /*#__PURE__*/component(mergedPopoverConfig);
11
+ export var StyledPopover = /*#__PURE__*/styled(Popover).withConfig({
12
+ componentId: "plasma-new-hope__sc-1ye0xbz-0"
13
+ })([""]);
14
+
15
+ // NOTE: переопределение токенов TextField
16
+ export var StyledInput = /*#__PURE__*/styled(TextField).withConfig({
17
+ componentId: "plasma-new-hope__sc-1ye0xbz-1"
18
+ })([" ", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}"], textFieldTokens.color, tokens.textFieldColor, textFieldTokens.placeholderColor, tokens.textFieldPlaceholderColor, textFieldTokens.caretColor, tokens.textFieldCaretColor, textFieldTokens.focusColor, tokens.textFieldFocusColor, textFieldTokens.backgroundColor, tokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, tokens.borderColor, textFieldTokens.borderColorHover, tokens.borderColorHover, textFieldTokens.borderColorFocus, tokens.borderColorFocus, textFieldTokens.colorReadOnly, tokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, tokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, tokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, tokens.textFieldPlaceholderColorReadOnly, textFieldTokens.height, tokens.textFieldHeight, textFieldTokens.borderWidth, tokens.textFieldBorderWidth, textFieldTokens.borderRadius, tokens.textFieldBorderRadius, textFieldTokens.padding, tokens.textFieldPadding, textFieldTokens.leftContentMargin, tokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, tokens.textFieldRightContentMargin, textFieldTokens.fontFamily, tokens.textFieldFontFamily, textFieldTokens.fontSize, tokens.textFieldFontSize, textFieldTokens.fontStyle, tokens.textFieldFontStyle, textFieldTokens.fontWeight, tokens.textFieldFontWeight, textFieldTokens.letterSpacing, tokens.textFieldLetterSpacing, textFieldTokens.lineHeight, tokens.textFieldLineHeight, textFieldTokens.disabledOpacity, tokens.disabledOpacity, textFieldTokens.textBeforeColor, tokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, tokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, tokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, tokens.textFieldTextAfterMargin, classes.datePickerError, textFieldTokens.backgroundColor, tokens.textFieldBackgroundErrorColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundErrorColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundErrorColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorError, textFieldTokens.borderColorHover, tokens.textFieldBorderColorErrorHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorErrorFocus, classes.datePickerSuccess, textFieldTokens.backgroundColor, tokens.textFieldBackgroundSuccessColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundSuccessColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundSuccessColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorSuccess, textFieldTokens.borderColorHover, tokens.textFieldBorderColorSuccessHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorSuccessFocus);
19
+ export var base = /*#__PURE__*/css(["display:inline-block;"]);
20
+ export var StyledLabel = /*#__PURE__*/styled.label.withConfig({
21
+ componentId: "plasma-new-hope__sc-1ye0xbz-2"
22
+ })([""]);
23
+ export var LeftHelper = /*#__PURE__*/styled.div.withConfig({
24
+ componentId: "plasma-new-hope__sc-1ye0xbz-3"
25
+ })([""]);
@@ -0,0 +1,3 @@
1
+ import { css } from 'styled-components';
2
+ import { tokens } from '../../../DatePicker.tokens';
3
+ export var base = /*#__PURE__*/css(["&[disabled]{opacity:var(", ");cursor:not-allowed;}"], tokens.disabledOpacity);
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "boolean",
3
+ "tokens": ["--plasma-date-picker-disabled-opacity"]
4
+ }
@@ -0,0 +1,4 @@
1
+ import { css } from 'styled-components';
2
+ import { tokens } from '../../../DatePicker.tokens';
3
+ import { LeftHelper, StyledLabel } from '../../SingleDate.styles';
4
+ export var base = /*#__PURE__*/css(["&[readonly]{cursor:default;", "{display:block;color:var(", ");}", "{color:var(", ");}}"], StyledLabel, tokens.labelColorReadOnly, LeftHelper, tokens.leftHelperColorReadOnly);
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "boolean",
3
+ "tokens": ["--plasma-date-picker__label-color-readonly", "--plasma-date-picker__left-helper-color-readonly"]
4
+ }
@@ -0,0 +1,4 @@
1
+ import { css } from 'styled-components';
2
+ import { tokens } from '../../../DatePicker.tokens';
3
+ import { StyledLabel, LeftHelper } from '../../SingleDate.styles';
4
+ export var base = /*#__PURE__*/css(["width:var(", ");", "{margin:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}"], tokens.width, StyledLabel, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, LeftHelper, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight);
@@ -0,0 +1,16 @@
1
+ [
2
+ "--plasma-date-picker__label-offset",
3
+ "--plasma-date-picker__label-font-family",
4
+ "--plasma-date-picker__label-font-style",
5
+ "--plasma-date-picker__label-font-size",
6
+ "--plasma-date-picker__label-font-weight",
7
+ "--plasma-date-picker__label-letter-spacing",
8
+ "--plasma-date-picker__label-line-height",
9
+ "--plasma-date-picker__left-helper-offset",
10
+ "--plasma-date-picker__left-helper-font-family",
11
+ "--plasma-date-picker__left-helper-font-style",
12
+ "--plasma-date-picker__left-helper-font-size",
13
+ "--plasma-date-picker__left-helper-font-weight",
14
+ "--plasma-date-picker__left-helper-letter-spacing",
15
+ "--plasma-date-picker__left-helper-line-height"
16
+ ]
@@ -0,0 +1,4 @@
1
+ import { css } from 'styled-components';
2
+ import { LeftHelper, StyledLabel } from '../../SingleDate.styles';
3
+ import { tokens } from '../../../DatePicker.tokens';
4
+ export var base = /*#__PURE__*/css(["", "{display:block;color:var(", ");}", "{color:var(", ");}"], StyledLabel, tokens.labelColor, LeftHelper, tokens.leftHelperColor);
@@ -0,0 +1 @@
1
+ ["--plasma-datepicker__label-color", "--plasma-datepicker__left-helper-color"]
@@ -0,0 +1,71 @@
1
+ import { classes } from '../DatePicker.tokens';
2
+ import { formatCalendarValue, formatInputValue, getDateFromFormat, getMaskedDateOnInput } from '../utils/dateHelper';
3
+ export var useDatePicker = function useDatePicker(_ref) {
4
+ var currentValue = _ref.currentValue,
5
+ setInputValue = _ref.setInputValue,
6
+ setCalendarValue = _ref.setCalendarValue,
7
+ setIsInnerOpen = _ref.setIsInnerOpen,
8
+ dateFormatDelimiter = _ref.dateFormatDelimiter,
9
+ format = _ref.format,
10
+ disabled = _ref.disabled,
11
+ readOnly = _ref.readOnly,
12
+ maskWithFormat = _ref.maskWithFormat,
13
+ valueError = _ref.valueError,
14
+ valueSuccess = _ref.valueSuccess,
15
+ inputRef = _ref.inputRef,
16
+ onToggle = _ref.onToggle,
17
+ onChangeValue = _ref.onChangeValue,
18
+ onCommitDate = _ref.onCommitDate;
19
+ var datePickerErrorClass = valueError ? classes.datePickerError : undefined;
20
+ var datePickerSuccessClass = valueSuccess ? classes.datePickerSuccess : undefined;
21
+ var handleToggle = function handleToggle(opened, event) {
22
+ if (disabled || readOnly) {
23
+ return;
24
+ }
25
+ var isCalendarOpen = event.target === (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) ? true : opened;
26
+ if (onToggle) {
27
+ return onToggle(isCalendarOpen, event);
28
+ }
29
+ setIsInnerOpen(isCalendarOpen);
30
+ };
31
+ var handleChangeValue = function handleChangeValue(event) {
32
+ if (disabled || readOnly) {
33
+ return;
34
+ }
35
+ var value = event.target.value;
36
+ var newValue = maskWithFormat ? getMaskedDateOnInput(value, format, dateFormatDelimiter(), currentValue) : value;
37
+ setCalendarValue(formatCalendarValue(newValue, format));
38
+ setInputValue(formatInputValue(newValue, format));
39
+ onChangeValue === null || onChangeValue === void 0 || onChangeValue(event, newValue);
40
+ };
41
+ var handleCommitDate = function handleCommitDate(date, applyFormat, isCalendarValue) {
42
+ if (disabled || readOnly) {
43
+ return;
44
+ }
45
+ if (!date) {
46
+ setCalendarValue(undefined);
47
+ setInputValue('');
48
+ return onCommitDate === null || onCommitDate === void 0 ? void 0 : onCommitDate('', false, true);
49
+ }
50
+ if (isCalendarValue) {
51
+ setCalendarValue(formatCalendarValue(date, format));
52
+ setInputValue(formatInputValue(date, format));
53
+ return onCommitDate === null || onCommitDate === void 0 ? void 0 : onCommitDate(date, false, true);
54
+ }
55
+ var formatString = applyFormat ? format : undefined;
56
+ var _getDateFromFormat = getDateFromFormat(date, formatString),
57
+ newDate = _getDateFromFormat.value,
58
+ isError = _getDateFromFormat.isError,
59
+ isSuccess = _getDateFromFormat.isSuccess;
60
+ setCalendarValue(formatCalendarValue(newDate, format));
61
+ setInputValue(formatInputValue(newDate, format));
62
+ onCommitDate === null || onCommitDate === void 0 || onCommitDate(newDate, isError, isSuccess);
63
+ };
64
+ return {
65
+ datePickerErrorClass: datePickerErrorClass,
66
+ datePickerSuccessClass: datePickerSuccessClass,
67
+ handleToggle: handleToggle,
68
+ handleChangeValue: handleChangeValue,
69
+ handleCommitDate: handleCommitDate
70
+ };
71
+ };
@@ -0,0 +1,3 @@
1
+ export { datePickerRoot, datePickerConfig } from './SingleDate/SingleDate';
2
+ export { datePickerRangeRoot, datePickerRangeConfig } from './RangeDate/RangeDate';
3
+ export { classes as datePickerClasses, tokens as datePickerTokens } from './DatePicker.tokens';
@@ -0,0 +1,72 @@
1
+ import { customDayjs } from '../../../utils/datejs';
2
+ export var formatInputValue = function formatInputValue(value, format) {
3
+ if (!value) {
4
+ return '';
5
+ }
6
+ if (format && customDayjs(value, format, true).isValid()) {
7
+ return customDayjs(value, format).format(format);
8
+ }
9
+ if (format && String(value).length >= 10 && String(new Date(value)) !== 'Invalid Date') {
10
+ return customDayjs(value).format(format);
11
+ }
12
+ return String(value);
13
+ };
14
+ export var formatCalendarValue = function formatCalendarValue(value, format) {
15
+ if (!value) {
16
+ return undefined;
17
+ }
18
+ if (format && customDayjs(value, format, true).isValid()) {
19
+ return customDayjs(value, format, true).toDate();
20
+ }
21
+ if (String(new Date(value)) !== 'Invalid Date') {
22
+ return customDayjs(value).toDate();
23
+ }
24
+ return undefined;
25
+ };
26
+ export var getDateFromFormat = function getDateFromFormat(value, format) {
27
+ if (format && customDayjs(value, format, true).isValid()) {
28
+ return {
29
+ value: customDayjs(value, format, true).toDate(),
30
+ isError: false,
31
+ isSuccess: true
32
+ };
33
+ }
34
+ if (!format && String(new Date(value)) !== 'Invalid Date') {
35
+ return {
36
+ value: customDayjs(value).toDate(),
37
+ isError: false,
38
+ isSuccess: true
39
+ };
40
+ }
41
+ return {
42
+ value: value,
43
+ isError: true,
44
+ isSuccess: false
45
+ };
46
+ };
47
+ export var getDateFormatDelimiter = function getDateFormatDelimiter(format) {
48
+ var _format$match;
49
+ if (!format) {
50
+ return '';
51
+ }
52
+ var delimiter = (_format$match = format.match(/[^a-zA-Z0-9]/)) === null || _format$match === void 0 ? void 0 : _format$match[0];
53
+ return delimiter !== null && delimiter !== void 0 ? delimiter : '';
54
+ };
55
+ export var getMaskedDateOnInput = function getMaskedDateOnInput(value, format, delimiter, prevValue) {
56
+ if (!value) {
57
+ return '';
58
+ }
59
+ if (!format || !delimiter) {
60
+ return value;
61
+ }
62
+ if (value.length >= format.length) {
63
+ return value.slice(0, format.length);
64
+ }
65
+ if (prevValue && value.length < prevValue.length && (prevValue === null || prevValue === void 0 ? void 0 : prevValue[value.length]) === delimiter) {
66
+ return value.slice(0, -1);
67
+ }
68
+ if ((format === null || format === void 0 ? void 0 : format[value.length]) === delimiter) {
69
+ return value + delimiter;
70
+ }
71
+ return value;
72
+ };
@@ -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 } from '../../utils';
12
+ import { cx, getPlacements } 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 { getPlacements, childrenWithProps } from './utils';
19
+ import { 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,7 +154,8 @@ export var dropdownRoot = function dropdownRoot(Root) {
154
154
  onItemClick: onItemClick,
155
155
  listWidth: listWidth,
156
156
  variant: variant,
157
- hasArrow: hasArrow
157
+ hasArrow: hasArrow,
158
+ size: size
158
159
  });
159
160
  }))));
160
161
  });
@@ -19,7 +19,8 @@ var DropdownInner = function DropdownInner(_ref) {
19
19
  onItemClick = _ref.onItemClick,
20
20
  listWidth = _ref.listWidth,
21
21
  variant = _ref.variant,
22
- hasArrow = _ref.hasArrow;
22
+ hasArrow = _ref.hasArrow,
23
+ size = _ref.size;
23
24
  var handleToggle = function handleToggle(opened) {
24
25
  if (opened) {
25
26
  dispatchPath({
@@ -58,7 +59,8 @@ var DropdownInner = function DropdownInner(_ref) {
58
59
  ariaControls: listId,
59
60
  ariaExpanded: isCurrentListOpen,
60
61
  ariaLevel: nextLevel,
61
- ariaLabel: item.label
62
+ ariaLabel: item.label,
63
+ size: size
62
64
  }),
63
65
  onToggle: handleToggle,
64
66
  isFocusTrapped: false,
@@ -90,7 +92,8 @@ var DropdownInner = function DropdownInner(_ref) {
90
92
  onItemClick: onItemClick,
91
93
  listWidth: listWidth,
92
94
  variant: variant,
93
- hasArrow: hasArrow
95
+ hasArrow: hasArrow,
96
+ size: size
94
97
  });
95
98
  })));
96
99
  }
@@ -105,7 +108,8 @@ var DropdownInner = function DropdownInner(_ref) {
105
108
  onHover: onHover,
106
109
  onItemSelect: onItemSelect,
107
110
  onItemClick: onItemClick,
108
- variant: variant
111
+ variant: variant,
112
+ size: size
109
113
  });
110
114
  };
111
115
  export { DropdownInner };
@@ -1,4 +1,3 @@
1
- var _DisclosureIconWrappe;
2
1
  import React, { useEffect, useRef } from 'react';
3
2
  import { classes } from '../../Dropdown.tokens';
4
3
  import { cx } from '../../../../utils';
@@ -22,7 +21,8 @@ export var DropdownItem = function DropdownItem(_ref) {
22
21
  ariaLevel = _ref.ariaLevel,
23
22
  ariaLabel = _ref.ariaLabel,
24
23
  variant = _ref.variant,
25
- hasArrow = _ref.hasArrow;
24
+ hasArrow = _ref.hasArrow,
25
+ size = _ref.size;
26
26
  var value = item.value,
27
27
  label = item.label,
28
28
  disabled = item.disabled,
@@ -30,6 +30,7 @@ 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';
33
34
  var isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;
34
35
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
35
36
  var activeClass = value === (path === null || path === void 0 ? void 0 : path[currentLevel + 1]) ? classes.dropdownItemIsActive : undefined;
@@ -75,8 +76,8 @@ export var DropdownItem = function DropdownItem(_ref) {
75
76
  "aria-haspopup": ariaHasPopup,
76
77
  "aria-level": ariaLevel,
77
78
  "aria-label": ariaLabel
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",
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,
80
81
  color: "inherit"
81
- })))));
82
+ })));
82
83
  };
@@ -1,20 +1,5 @@
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
- };
18
3
  export var getCorrectHeight = function getCorrectHeight(listHeight) {
19
4
  if (Number.isNaN(Number(listHeight))) {
20
5
  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, useMemo } from 'react';
6
+ import React, { forwardRef, useImperativeHandle, useMemo, useRef } 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,6 +53,9 @@ 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);
56
59
  var rangeErrorClass = firstValueError && secondValueError ? classes.rangeError : undefined;
57
60
  var firstValueErrorClass = !rangeErrorClass && firstValueError ? classes.rangeValueError : undefined;
58
61
  var secondValueErrorClass = !rangeErrorClass && secondValueError ? classes.rangeValueError : undefined;
@@ -63,6 +66,16 @@ export var rangeRoot = function rangeRoot(Root) {
63
66
  var handleChangeSecondValue = getChangeHandler(onChangeSecondValue, disabled, readOnly);
64
67
  var handleSearchFirstValue = getSearchHandler(onSearchFirstValue, disabled, readOnly);
65
68
  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]);
66
79
  var Divider = useMemo(function () {
67
80
  if (dividerVariant === 'none') {
68
81
  return null;
@@ -73,14 +86,15 @@ export var rangeRoot = function rangeRoot(Root) {
73
86
  return _StyledDivider2 || (_StyledDivider2 = /*#__PURE__*/React.createElement(StyledDivider, null, dividerIcon));
74
87
  }, [dividerVariant, dividerIcon]);
75
88
  return /*#__PURE__*/React.createElement(Root, _extends({
89
+ ref: rangeRef,
76
90
  view: view,
77
91
  size: size,
78
92
  disabled: disabled,
79
- readOnly: !disabled && readOnly,
80
- ref: ref
93
+ readOnly: !disabled && readOnly
81
94
  }, rest), label && /*#__PURE__*/React.createElement(StyledLabel, null, label), /*#__PURE__*/React.createElement(ContentWrapper, {
82
95
  className: cx(rangeErrorClass, rangeSuccessClass)
83
96
  }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledInput, {
97
+ ref: firstTextFieldRef,
84
98
  className: cx(firstValueErrorClass, firstValueSuccessClass),
85
99
  value: firstValue,
86
100
  readOnly: readOnly,
@@ -95,6 +109,7 @@ export var rangeRoot = function rangeRoot(Root) {
95
109
  onFocus: onFocusFirstTextfield,
96
110
  onBlur: onBlurFirstTextfield
97
111
  }), Divider, /*#__PURE__*/React.createElement(StyledInput, {
112
+ ref: secondTextFieldRef,
98
113
  className: cx(secondValueErrorClass, secondValueSuccessClass),
99
114
  value: secondValue,
100
115
  readOnly: readOnly,
@@ -2,6 +2,7 @@ import styled from 'styled-components';
2
2
  import { css } from 'styled-components';
3
3
  import { component, mergeConfig } from '../../engines';
4
4
  import { textFieldConfig, textFieldTokens } from '../TextField';
5
+ import { popoverClasses } from '../Popover';
5
6
  import { classes, tokens } from './Range.tokens';
6
7
  var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig);
7
8
  var TextField = /*#__PURE__*/component(mergedConfig);
@@ -9,8 +10,8 @@ var TextField = /*#__PURE__*/component(mergedConfig);
9
10
  // NOTE: переопределение токенов TextField
10
11
  export var StyledInput = /*#__PURE__*/styled(TextField).withConfig({
11
12
  componentId: "plasma-new-hope__sc-xpkrak-0"
12
- })(["flex:1;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}"], textFieldTokens.color, tokens.textFieldColor, textFieldTokens.placeholderColor, tokens.textFieldPlaceholderColor, textFieldTokens.caretColor, tokens.textFieldCaretColor, textFieldTokens.focusColor, tokens.textFieldFocusColor, textFieldTokens.backgroundColor, tokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColor, textFieldTokens.borderColorHover, tokens.textFieldBorderColorHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorFocus, textFieldTokens.colorReadOnly, tokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, tokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, tokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, tokens.textFieldPlaceholderColorReadOnly, textFieldTokens.height, tokens.textFieldHeight, textFieldTokens.borderWidth, tokens.textFieldBorderWidth, textFieldTokens.borderRadius, tokens.textFieldBorderRadius, textFieldTokens.padding, tokens.textFieldPadding, textFieldTokens.leftContentMargin, tokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, tokens.textFieldRightContentMargin, textFieldTokens.fontFamily, tokens.textFieldFontFamily, textFieldTokens.fontSize, tokens.textFieldFontSize, textFieldTokens.fontStyle, tokens.textFieldFontStyle, textFieldTokens.fontWeight, tokens.textFieldFontWeight, textFieldTokens.letterSpacing, tokens.textFieldLetterSpacing, textFieldTokens.lineHeight, tokens.textFieldLineHeight, textFieldTokens.disabledOpacity, tokens.disabledOpacity, textFieldTokens.textBeforeColor, tokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, tokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, tokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, tokens.textFieldTextAfterMargin, classes.rangeValueError, textFieldTokens.backgroundColor, tokens.textFieldBackgroundErrorColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundErrorColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundErrorColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorError, textFieldTokens.borderColorHover, tokens.textFieldBorderColorErrorHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorErrorFocus, classes.rangeValueSuccess, textFieldTokens.backgroundColor, tokens.textFieldBackgroundSuccessColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundSuccessColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundSuccessColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorSuccess, textFieldTokens.borderColorHover, tokens.textFieldBorderColorSuccessHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorSuccessFocus);
13
- export var base = /*#__PURE__*/css([""]);
13
+ })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}"], textFieldTokens.color, tokens.textFieldColor, textFieldTokens.placeholderColor, tokens.textFieldPlaceholderColor, textFieldTokens.caretColor, tokens.textFieldCaretColor, textFieldTokens.focusColor, tokens.textFieldFocusColor, textFieldTokens.backgroundColor, tokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColor, textFieldTokens.borderColorHover, tokens.textFieldBorderColorHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorFocus, textFieldTokens.colorReadOnly, tokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, tokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, tokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, tokens.textFieldPlaceholderColorReadOnly, textFieldTokens.height, tokens.textFieldHeight, textFieldTokens.borderWidth, tokens.textFieldBorderWidth, textFieldTokens.borderRadius, tokens.textFieldBorderRadius, textFieldTokens.padding, tokens.textFieldPadding, textFieldTokens.leftContentMargin, tokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, tokens.textFieldRightContentMargin, textFieldTokens.fontFamily, tokens.textFieldFontFamily, textFieldTokens.fontSize, tokens.textFieldFontSize, textFieldTokens.fontStyle, tokens.textFieldFontStyle, textFieldTokens.fontWeight, tokens.textFieldFontWeight, textFieldTokens.letterSpacing, tokens.textFieldLetterSpacing, textFieldTokens.lineHeight, tokens.textFieldLineHeight, textFieldTokens.disabledOpacity, tokens.disabledOpacity, textFieldTokens.textBeforeColor, tokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, tokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, tokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, tokens.textFieldTextAfterMargin, classes.rangeValueError, textFieldTokens.backgroundColor, tokens.textFieldBackgroundErrorColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundErrorColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundErrorColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorError, textFieldTokens.borderColorHover, tokens.textFieldBorderColorErrorHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorErrorFocus, classes.rangeValueSuccess, textFieldTokens.backgroundColor, tokens.textFieldBackgroundSuccessColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundSuccessColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundSuccessColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorSuccess, textFieldTokens.borderColorHover, tokens.textFieldBorderColorSuccessHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorSuccessFocus);
14
+ export var base = /*#__PURE__*/css([".", "{display:block;flex:1;}.", "{display:flex;flex-direction:column;}"], /*#__PURE__*/String(popoverClasses.wrapper), /*#__PURE__*/String(popoverClasses.target));
14
15
  export var StyledLabel = /*#__PURE__*/styled.label.withConfig({
15
16
  componentId: "plasma-new-hope__sc-xpkrak-1"
16
17
  })([""]);
@@ -10,8 +10,7 @@ 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, useCallback, useEffect, useMemo, useRef, useState } from 'react';
12
12
  import { safeUseId, useForkRef } from '@salutejs/plasma-core';
13
- import { cx } from '../../utils';
14
- import { getPlacements } from '../Dropdown/utils';
13
+ import { cx, getPlacements } from '../../utils';
15
14
  import { useDidMountEffect, useForceUpdate } from '../../hooks';
16
15
  import { base as targetCSS } from './variations/_target/base';
17
16
  import { base as viewCSS } from './variations/_view/base';
@@ -2,7 +2,7 @@ var _excluded = ["opened", "children", "onClose", "hasHandle", "contentHeader",
2
2
  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); }
3
3
  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; }
4
4
  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; }
5
- import React, { forwardRef } from 'react';
5
+ import React, { forwardRef, useRef } from 'react';
6
6
  import { Overlay } from '../Overlay';
7
7
  import { cx } from '../../utils';
8
8
  import { useOverflow, useSheetSwipe } from './hooks';
@@ -38,9 +38,9 @@ export var sheetRoot = function sheetRoot(Root) {
38
38
  className = _ref.className,
39
39
  view = _ref.view,
40
40
  restProps = _objectWithoutProperties(_ref, _excluded);
41
- var contentWrapperRef = React.useRef(null);
42
- var contentRef = React.useRef(null);
43
- var handleRef = React.useRef(null);
41
+ var contentWrapperRef = useRef(null);
42
+ var contentRef = useRef(null);
43
+ var handleRef = useRef(null);
44
44
  useOverflow({
45
45
  opened: opened
46
46
  });
@@ -20,7 +20,7 @@ export var tokens = {
20
20
  caretColor: '--plasma-textfield__caret-color',
21
21
  placeholderColor: '--plasma-textfield__placeholder-color',
22
22
  height: '--plasma-textfield-height',
23
- borderWidth: '--plasmas-textfield-border-width',
23
+ borderWidth: '--plasma-textfield-border-width',
24
24
  borderRadius: '--plasma-textfield-border-radius',
25
25
  /** Отступ от границы ТextField */
26
26
  padding: '--plasma-textfield-padding',
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
2
  import { classes, tokens } from '../../TextField.tokens';
3
3
  import { Input, InputWrapper, Label, LeftHelper, StyledTextAfter, StyledTextBefore } from '../../TextField.styles';
4
- export var base = /*#__PURE__*/css(["", "{font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{height:var(", ");border-radius:var(", ");padding:var(", ");&.", "{padding-top:var(", ");padding-bottom:var(", ");}&.", "{padding-left:var(", ");}&.", "{padding-right:var(", ");}}", "{font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin-top:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", ",", "{font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin:var(", ");}", "{margin:var(", ");}"], Input, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, InputWrapper, tokens.height, tokens.borderRadius, tokens.padding, classes.hasChips, tokens.paddingWithChips, tokens.paddingWithChips, classes.hasEmptyContentLeft, tokens.paddingWithChips, classes.hasEmptyContentRight, tokens.paddingWithChips, Label, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, LeftHelper, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, StyledTextBefore, StyledTextAfter, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, StyledTextBefore, tokens.textBeforeMargin, StyledTextAfter, tokens.textAfterMargin);
4
+ export var base = /*#__PURE__*/css(["", "{width:100%;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{height:var(", ");border-radius:var(", ");padding:var(", ");&.", "{padding-top:var(", ");padding-bottom:var(", ");}&.", "{padding-left:var(", ");}&.", "{padding-right:var(", ");}}", "{font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin-top:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", ",", "{font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin:var(", ");}", "{margin:var(", ");}"], Input, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, InputWrapper, tokens.height, tokens.borderRadius, tokens.padding, classes.hasChips, tokens.paddingWithChips, tokens.paddingWithChips, classes.hasEmptyContentLeft, tokens.paddingWithChips, classes.hasEmptyContentRight, tokens.paddingWithChips, Label, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, LeftHelper, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, StyledTextBefore, StyledTextAfter, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, StyledTextBefore, tokens.textBeforeMargin, StyledTextAfter, tokens.textAfterMargin);
@@ -0,0 +1,15 @@
1
+ var _path;
2
+ 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); }
3
+ import React from 'react';
4
+ export var DisclosureDownFill = function DisclosureDownFill(props) {
5
+ return /*#__PURE__*/React.createElement("svg", _extends({
6
+ width: "100%",
7
+ viewBox: "0 0 24 24",
8
+ fill: "none"
9
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
+ fillRule: "evenodd",
11
+ clipRule: "evenodd",
12
+ d: "M17.1814 9.43661C17.059 9.17051 16.7929 9 16.5 9H7.50001C7.20711 9 6.94102 9.17051 6.81863 9.43661C6.69624 9.70271 6.73995 10.0157 6.93057 10.2381L11.4306 15.4881C11.5731 15.6543 11.7811 15.75 12 15.75C12.219 15.75 12.427 15.6543 12.5695 15.4881L17.0695 10.2381C17.2601 10.0157 17.3038 9.70271 17.1814 9.43661Z",
13
+ fill: "currentColor"
14
+ })));
15
+ };
@@ -9,7 +9,7 @@ export var DisclosureLeft = function DisclosureLeft(props) {
9
9
  }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
10
  fillRule: "evenodd",
11
11
  clipRule: "evenodd",
12
- d: "M14.117 8.707a1 1 0 10-1.414-1.414L7.996 12l4.707 4.707a1 1 0 001.414-1.414L10.824 12l3.293-3.293z",
12
+ d: "M14.5309 6.96967C14.8238 7.26256 14.8238 7.73744 14.5309 8.03033L10.5613 12L14.5309 15.9697C14.8238 16.2626 14.8238 16.7374 14.5309 17.0303C14.238 17.3232 13.7632 17.3232 13.4703 17.0303L8.43994 12L13.4703 6.96967C13.7632 6.67678 14.238 6.67678 14.5309 6.96967Z",
13
13
  fill: "currentColor"
14
14
  })));
15
15
  };
@@ -1,25 +1,15 @@
1
- var _path, _path2;
1
+ var _path;
2
2
  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); }
3
3
  import React from 'react';
4
4
  export var DisclosureRight = function DisclosureRight(props) {
5
- if (props.size === 'xs') {
6
- return /*#__PURE__*/React.createElement("svg", _extends({
7
- width: "100%",
8
- viewBox: "0 0 17 16",
9
- fill: "none"
10
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
11
- fillRule: "evenodd",
12
- clipRule: "evenodd",
13
- d: "M9.883 4.707a1 1 0 011.414-1.414L16.004 8l-4.707 4.707a1 1 0 01-1.414-1.414L13.176 8 9.883 4.707z",
14
- fill: "currentColor"
15
- })));
16
- }
17
5
  return /*#__PURE__*/React.createElement("svg", _extends({
18
6
  width: "100%",
19
7
  viewBox: "0 0 24 24",
20
8
  fill: "none"
21
- }, props), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
22
- d: "M9.883 8.707a1 1 0 011.414-1.414L16.004 12l-4.707 4.707a1 1 0 01-1.414-1.414L13.176 12 9.883 8.707z",
9
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
+ fillRule: "evenodd",
11
+ clipRule: "evenodd",
12
+ d: "M9.46967 6.96967C9.17678 7.26256 9.17678 7.73744 9.46967 8.03033L13.4393 12L9.46967 15.9697C9.17678 16.2626 9.17678 16.7374 9.46967 17.0303C9.76256 17.3232 10.2374 17.3232 10.5303 17.0303L15.5607 12L10.5303 6.96967C10.2374 6.67678 9.76256 6.67678 9.46967 6.96967Z",
23
13
  fill: "currentColor"
24
14
  })));
25
15
  };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { DisclosureDownFill } from '../Icon.assets/DisclosureDownFill';
3
+ import { IconRoot } from '../IconRoot';
4
+ export var IconDisclosureDownFill = function IconDisclosureDownFill(_ref) {
5
+ var _ref$size = _ref.size,
6
+ size = _ref$size === void 0 ? 's' : _ref$size,
7
+ color = _ref.color,
8
+ className = _ref.className;
9
+ return /*#__PURE__*/React.createElement(IconRoot, {
10
+ className: className,
11
+ size: size,
12
+ color: color,
13
+ icon: DisclosureDownFill
14
+ });
15
+ };
@@ -1,5 +1,6 @@
1
1
  export { IconDisclosureLeft } from './Icons/IconDisclosureLeft';
2
2
  export { IconDisclosureRight } from './Icons/IconDisclosureRight';
3
+ export { IconDisclosureDownFill } from './Icons/IconDisclosureDownFill';
3
4
  export { IconMic } from './Icons/IconMic';
4
5
  export { IconChevronLeft } from './Icons/IconChevronLeft';
5
6
  export { IconChevronDoubleLeft } from './Icons/IconChevronDoubleLeft';