@salutejs/plasma-new-hope 0.92.0-canary.1261.9663085538.0 → 0.93.0-canary.1224.9665090614.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (617) hide show
  1. package/cjs/components/Calendar/Calendar.tokens.js +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_fznpy7.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_wmlwil.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_f2aje6.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/Slider/Slider.css +3 -3
  116. package/cjs/components/Slider/components/Double/Double.css +3 -3
  117. package/cjs/components/TextField/TextField.tokens.js +1 -1
  118. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  119. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  120. package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
  121. package/cjs/components/TextField/variations/_size/base.js +1 -1
  122. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  123. package/cjs/components/TextField/variations/_size/base_orwx1f.css +1 -0
  124. package/cjs/components/TextField/variations/_view/base.js +1 -1
  125. package/cjs/components/TextField/variations/_view/base_18ea6z7.css +1 -0
  126. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +23 -0
  127. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
  128. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  129. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  130. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  131. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  132. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +23 -0
  133. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
  134. package/cjs/index.css +71 -38
  135. package/cjs/index.js +12 -0
  136. package/cjs/index.js.map +1 -1
  137. package/cjs/utils/datejs.js +12 -0
  138. package/cjs/utils/datejs.js.map +1 -0
  139. package/cjs/utils/getPopoverPlacement.js +23 -0
  140. package/cjs/utils/getPopoverPlacement.js.map +1 -0
  141. package/cjs/utils/index.js.map +1 -1
  142. package/es/components/Calendar/Calendar.tokens.js +67 -28
  143. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  144. package/es/components/Calendar/Calendar.types.js.map +1 -1
  145. package/es/components/Calendar/CalendarBase/CalendarBase.css +57 -29
  146. package/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
  147. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  148. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  149. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  150. package/es/components/Calendar/CalendarBase/{CalendarBase.styles_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
  151. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
  152. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +7 -1
  153. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  154. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  155. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  156. package/{cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_1rc2ejs.css → es/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.css} +2 -2
  157. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  158. package/es/components/Calendar/hooks/useDays.js +1 -1
  159. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  160. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  161. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  162. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  163. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_fznpy7.css +4 -0
  164. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  165. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  166. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  167. package/es/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
  168. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
  169. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +32 -18
  170. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  171. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +26 -13
  172. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  173. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +8 -0
  174. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  175. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  176. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  177. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  178. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  179. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +4 -0
  180. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  181. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  182. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  183. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  184. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  185. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +4 -0
  186. package/es/components/Calendar/utils/index.js.map +1 -1
  187. package/es/components/Combobox/Combobox.js +1 -1
  188. package/es/components/Combobox/Combobox.js.map +1 -1
  189. package/es/components/DatePicker/DatePicker.tokens.js +184 -0
  190. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -0
  191. package/es/components/DatePicker/DatePickerBase.styles.js +26 -0
  192. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -0
  193. package/es/components/DatePicker/DatePickerBase.styles_1thp2xv.css +1 -0
  194. package/es/components/DatePicker/RangeDate/RangeDate.css +152 -0
  195. package/es/components/DatePicker/RangeDate/RangeDate.js +280 -0
  196. package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -0
  197. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +43 -0
  198. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -0
  199. package/es/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +5 -0
  200. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +144 -0
  201. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +79 -0
  202. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -0
  203. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +37 -0
  204. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -0
  205. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +2 -0
  206. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js +5 -0
  207. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
  208. package/es/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
  209. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js +5 -0
  210. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
  211. package/es/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +1 -0
  212. package/es/components/DatePicker/RangeDate/variations/_size/base.js +5 -0
  213. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
  214. package/es/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +1 -0
  215. package/es/components/DatePicker/RangeDate/variations/_view/base.js +5 -0
  216. package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
  217. package/es/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +1 -0
  218. package/es/components/DatePicker/SingleDate/SingleDate.css +134 -0
  219. package/es/components/DatePicker/SingleDate/SingleDate.js +178 -0
  220. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -0
  221. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +43 -0
  222. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -0
  223. package/es/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +5 -0
  224. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js +5 -0
  225. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
  226. package/es/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
  227. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js +5 -0
  228. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
  229. package/es/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +1 -0
  230. package/es/components/DatePicker/SingleDate/variations/_size/base.js +5 -0
  231. package/es/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
  232. package/es/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +1 -0
  233. package/es/components/DatePicker/SingleDate/variations/_view/base.js +5 -0
  234. package/es/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
  235. package/es/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +1 -0
  236. package/es/components/DatePicker/hooks/useDatePicker.js +75 -0
  237. package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -0
  238. package/es/components/DatePicker/utils/dateHelper.js +76 -0
  239. package/es/components/DatePicker/utils/dateHelper.js.map +1 -0
  240. package/es/components/Dropdown/Dropdown.js +4 -2
  241. package/es/components/Dropdown/Dropdown.js.map +1 -1
  242. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +8 -4
  243. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  244. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +6 -5
  245. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  246. package/es/components/Dropdown/utils/index.js +1 -16
  247. package/es/components/Dropdown/utils/index.js.map +1 -1
  248. package/es/components/Range/Range.css +6 -6
  249. package/es/components/Range/Range.js +18 -3
  250. package/es/components/Range/Range.js.map +1 -1
  251. package/es/components/Range/Range.styles.js +1 -1
  252. package/es/components/Range/Range.styles.js.map +1 -1
  253. package/es/components/Range/Range.styles_9rort8.css +8 -0
  254. package/es/components/Select/Select.js +1 -1
  255. package/es/components/Select/Select.js.map +1 -1
  256. package/es/components/Slider/Slider.css +3 -3
  257. package/es/components/Slider/components/Double/Double.css +3 -3
  258. package/es/components/TextField/TextField.tokens.js +1 -1
  259. package/es/components/TextField/TextField.tokens.js.map +1 -1
  260. package/es/components/TextField/variations/_read-only/base.js +1 -1
  261. package/es/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
  262. package/es/components/TextField/variations/_size/base.js +1 -1
  263. package/es/components/TextField/variations/_size/base.js.map +1 -1
  264. package/es/components/TextField/variations/_size/base_orwx1f.css +1 -0
  265. package/es/components/TextField/variations/_view/base.js +1 -1
  266. package/es/components/TextField/variations/_view/base_18ea6z7.css +1 -0
  267. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js +19 -0
  268. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
  269. package/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  270. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  271. package/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  272. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  273. package/es/components/_Icon/Icons/IconDisclosureDownFill.js +19 -0
  274. package/es/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
  275. package/es/index.css +71 -38
  276. package/es/index.js +4 -0
  277. package/es/index.js.map +1 -1
  278. package/es/utils/datejs.js +8 -0
  279. package/es/utils/datejs.js.map +1 -0
  280. package/es/utils/getPopoverPlacement.js +18 -0
  281. package/es/utils/getPopoverPlacement.js.map +1 -0
  282. package/es/utils/index.js.map +1 -1
  283. package/package.json +3 -2
  284. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +67 -28
  285. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
  286. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
  287. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +6 -0
  288. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  289. package/styled-components/cjs/components/Calendar/hooks/useDays.js +1 -1
  290. package/styled-components/cjs/components/Calendar/mixins/active.js +12 -0
  291. package/styled-components/cjs/components/Calendar/mixins/flex.js +8 -0
  292. package/styled-components/cjs/components/Calendar/mixins/index.js +30 -29
  293. package/styled-components/cjs/components/Calendar/mixins/selected.js +24 -0
  294. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +27 -20
  295. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
  296. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +30 -16
  297. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
  298. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  299. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +26 -12
  300. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  301. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +26 -14
  302. package/styled-components/cjs/components/Combobox/Combobox.js +6 -7
  303. package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +150 -0
  304. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +187 -0
  305. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +19 -0
  306. package/styled-components/cjs/components/DatePicker/DatePickerBase.types.js +5 -0
  307. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +293 -0
  308. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +33 -0
  309. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.types.js +5 -0
  310. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +81 -0
  311. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +26 -0
  312. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +5 -0
  313. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +9 -0
  314. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  315. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +10 -0
  316. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
  317. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +10 -0
  318. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  319. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/base.js +10 -0
  320. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  321. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +190 -0
  322. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +33 -0
  323. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.types.js +5 -0
  324. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
  325. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
  326. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +10 -0
  327. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
  328. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/base.js +10 -0
  329. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
  330. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/base.js +10 -0
  331. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
  332. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +77 -0
  333. package/styled-components/cjs/components/DatePicker/index.js +44 -0
  334. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +78 -0
  335. package/styled-components/cjs/components/Dropdown/Dropdown.js +3 -2
  336. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +8 -4
  337. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +6 -5
  338. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -16
  339. package/styled-components/cjs/components/Range/Range.js +17 -2
  340. package/styled-components/cjs/components/Range/Range.styles.js +3 -2
  341. package/styled-components/cjs/components/Select/Select.js +7 -8
  342. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -1
  343. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  344. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +22 -0
  345. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  346. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  347. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +22 -0
  348. package/styled-components/cjs/components/_Icon/index.js +7 -0
  349. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
  350. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
  351. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -2
  352. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +31 -0
  353. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.js +13 -0
  354. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +257 -0
  355. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  356. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
  357. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
  358. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -2
  359. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +31 -0
  360. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.js +13 -0
  361. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +257 -0
  362. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +4 -4
  363. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
  364. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
  365. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -2
  366. package/styled-components/cjs/index.js +11 -0
  367. package/styled-components/cjs/utils/datejs.js +11 -0
  368. package/styled-components/cjs/utils/getPopoverPlacement.js +21 -0
  369. package/styled-components/cjs/utils/index.js +22 -0
  370. package/styled-components/es/components/Calendar/Calendar.tokens.js +67 -28
  371. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
  372. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
  373. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +7 -1
  374. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  375. package/styled-components/es/components/Calendar/hooks/useDays.js +1 -1
  376. package/styled-components/es/components/Calendar/mixins/active.js +6 -0
  377. package/styled-components/es/components/Calendar/mixins/flex.js +2 -0
  378. package/styled-components/es/components/Calendar/mixins/index.js +3 -27
  379. package/styled-components/es/components/Calendar/mixins/selected.js +18 -0
  380. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +26 -19
  381. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
  382. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +32 -18
  383. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
  384. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  385. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +25 -11
  386. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  387. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +25 -13
  388. package/styled-components/es/components/Combobox/Combobox.js +1 -2
  389. package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +150 -0
  390. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +181 -0
  391. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +12 -0
  392. package/styled-components/es/components/DatePicker/DatePickerBase.types.js +1 -0
  393. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +284 -0
  394. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.styles.js +25 -0
  395. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.types.js +1 -0
  396. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +74 -0
  397. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +19 -0
  398. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +1 -0
  399. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/base.js +3 -0
  400. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  401. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +4 -0
  402. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
  403. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +4 -0
  404. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  405. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/base.js +4 -0
  406. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  407. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +181 -0
  408. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +25 -0
  409. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.types.js +1 -0
  410. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/base.js +3 -0
  411. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
  412. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/base.js +4 -0
  413. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
  414. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/base.js +4 -0
  415. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
  416. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/base.js +4 -0
  417. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
  418. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +71 -0
  419. package/styled-components/es/components/DatePicker/index.js +3 -0
  420. package/styled-components/es/components/DatePicker/utils/dateHelper.js +72 -0
  421. package/styled-components/es/components/Dropdown/Dropdown.js +4 -3
  422. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +8 -4
  423. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +6 -5
  424. package/styled-components/es/components/Dropdown/utils/index.js +0 -15
  425. package/styled-components/es/components/Range/Range.js +18 -3
  426. package/styled-components/es/components/Range/Range.styles.js +3 -2
  427. package/styled-components/es/components/Select/Select.js +1 -2
  428. package/styled-components/es/components/TextField/TextField.tokens.js +1 -1
  429. package/styled-components/es/components/TextField/variations/_size/base.js +1 -1
  430. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDownFill.js +15 -0
  431. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  432. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  433. package/styled-components/es/components/_Icon/Icons/IconDisclosureDownFill.js +15 -0
  434. package/styled-components/es/components/_Icon/index.js +1 -0
  435. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
  436. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
  437. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -2
  438. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +25 -0
  439. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.js +7 -0
  440. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +257 -0
  441. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  442. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
  443. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
  444. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -2
  445. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +25 -0
  446. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.js +7 -0
  447. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +257 -0
  448. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +4 -4
  449. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
  450. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
  451. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -2
  452. package/styled-components/es/index.js +2 -1
  453. package/styled-components/es/utils/datejs.js +4 -0
  454. package/styled-components/es/utils/getPopoverPlacement.js +15 -0
  455. package/styled-components/es/utils/index.js +1 -0
  456. package/types/components/Accordion/utils/index.d.ts +1 -1
  457. package/types/components/Calendar/Calendar.tokens.d.ts +60 -26
  458. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  459. package/types/components/Calendar/Calendar.types.d.ts +1 -1
  460. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  461. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +27 -3
  462. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  463. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  464. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +30 -3
  465. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  466. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  467. package/types/components/Calendar/mixins/active.d.ts +17 -0
  468. package/types/components/Calendar/mixins/active.d.ts.map +1 -0
  469. package/types/components/Calendar/mixins/flex.d.ts +3 -0
  470. package/types/components/Calendar/mixins/flex.d.ts.map +1 -0
  471. package/types/components/Calendar/mixins/index.d.ts +3 -8
  472. package/types/components/Calendar/mixins/index.d.ts.map +1 -1
  473. package/types/components/Calendar/mixins/selected.d.ts +40 -0
  474. package/types/components/Calendar/mixins/selected.d.ts.map +1 -0
  475. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
  476. package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
  477. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  478. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +47 -7
  479. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  480. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +1 -0
  481. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
  482. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  483. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  484. package/types/components/Calendar/utils/index.d.ts +1 -1
  485. package/types/components/Calendar/utils/index.d.ts.map +1 -1
  486. package/types/components/Combobox/Combobox.d.ts.map +1 -1
  487. package/types/components/DatePicker/DatePicker.tokens.d.ts +182 -0
  488. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -0
  489. package/types/components/DatePicker/DatePickerBase.styles.d.ts +8 -0
  490. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -0
  491. package/types/components/DatePicker/DatePickerBase.types.d.ts +37 -0
  492. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -0
  493. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +110 -0
  494. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -0
  495. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +115 -0
  496. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +1 -0
  497. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +76 -0
  498. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +1 -0
  499. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +4 -0
  500. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -0
  501. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +5 -0
  502. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +1 -0
  503. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +29 -0
  504. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +1 -0
  505. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts +2 -0
  506. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts.map +1 -0
  507. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts +2 -0
  508. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +1 -0
  509. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts +2 -0
  510. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +1 -0
  511. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts +2 -0
  512. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +1 -0
  513. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +31 -0
  514. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -0
  515. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +45 -0
  516. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -0
  517. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +120 -0
  518. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -0
  519. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts +2 -0
  520. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts.map +1 -0
  521. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts +2 -0
  522. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts.map +1 -0
  523. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts +2 -0
  524. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts.map +1 -0
  525. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts +2 -0
  526. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts.map +1 -0
  527. package/types/components/DatePicker/hooks/useDatePicker.d.ts +10 -0
  528. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -0
  529. package/types/components/DatePicker/index.d.ts +6 -0
  530. package/types/components/DatePicker/index.d.ts.map +1 -0
  531. package/types/components/DatePicker/utils/dateHelper.d.ts +10 -0
  532. package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -0
  533. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  534. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  535. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +1 -0
  536. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  537. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  538. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +1 -0
  539. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  540. package/types/components/Dropdown/utils/index.d.ts +1 -3
  541. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  542. package/types/components/Range/Range.d.ts +3 -3
  543. package/types/components/Range/Range.d.ts.map +1 -1
  544. package/types/components/Range/Range.styles.d.ts.map +1 -1
  545. package/types/components/Range/Range.types.d.ts +8 -3
  546. package/types/components/Range/Range.types.d.ts.map +1 -1
  547. package/types/components/Range/index.d.ts +1 -1
  548. package/types/components/Range/index.d.ts.map +1 -1
  549. package/types/components/Select/Select.d.ts.map +1 -1
  550. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  551. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts +4 -0
  552. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts.map +1 -0
  553. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  554. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts +4 -0
  555. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts.map +1 -0
  556. package/types/components/_Icon/index.d.ts +1 -0
  557. package/types/components/_Icon/index.d.ts.map +1 -1
  558. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +15 -4
  559. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
  560. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +3 -0
  561. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  562. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +3 -0
  563. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  564. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts +24 -0
  565. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -0
  566. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +75 -0
  567. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -0
  568. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -3
  569. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  570. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +15 -4
  571. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
  572. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +3 -0
  573. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  574. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +3 -0
  575. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  576. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts +24 -0
  577. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -0
  578. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +75 -0
  579. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -0
  580. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -3
  581. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  582. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +15 -4
  583. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
  584. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +3 -0
  585. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  586. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +3 -0
  587. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  588. package/types/index.d.ts +1 -0
  589. package/types/index.d.ts.map +1 -1
  590. package/types/utils/datejs.d.ts +3 -0
  591. package/types/utils/datejs.d.ts.map +1 -0
  592. package/types/utils/getPopoverPlacement.d.ts +5 -0
  593. package/types/utils/getPopoverPlacement.d.ts.map +1 -0
  594. package/types/utils/index.d.ts +1 -0
  595. package/types/utils/index.d.ts.map +1 -1
  596. package/cjs/components/Calendar/mixins/index.js +0 -18
  597. package/cjs/components/Calendar/mixins/index.js.map +0 -1
  598. package/cjs/components/Calendar/mixins/index_o3bz9l.css +0 -1
  599. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
  600. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
  601. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
  602. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
  603. package/cjs/components/Range/Range.styles_mc4w65.css +0 -8
  604. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  605. package/cjs/components/TextField/variations/_size/base_ntoddv.css +0 -1
  606. package/cjs/components/TextField/variations/_view/base_19gxyva.css +0 -1
  607. package/es/components/Calendar/mixins/index.js +0 -14
  608. package/es/components/Calendar/mixins/index.js.map +0 -1
  609. package/es/components/Calendar/mixins/index_o3bz9l.css +0 -1
  610. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
  611. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
  612. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
  613. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
  614. package/es/components/Range/Range.styles_mc4w65.css +0 -8
  615. package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  616. package/es/components/TextField/variations/_size/base_ntoddv.css +0 -1
  617. package/es/components/TextField/variations/_view/base_19gxyva.css +0 -1
@@ -0,0 +1,43 @@
1
+ import './SingleDate.styles_18b5qkz.css';
2
+ import { styled } from '@linaria/react';
3
+ import '@linaria/core';
4
+ import { component, mergeConfig } from '../../../engines/common.js';
5
+ import { textFieldConfig } from '../../TextField/TextField.js';
6
+ import { popoverConfig } from '../../Popover/Popover.js';
7
+
8
+ var mergedTextFieldConfig = /*#__PURE__*/mergeConfig(textFieldConfig);
9
+ var TextField = /*#__PURE__*/component(mergedTextFieldConfig);
10
+ var mergedPopoverConfig = /*#__PURE__*/mergeConfig(popoverConfig);
11
+ var Popover = /*#__PURE__*/component(mergedPopoverConfig);
12
+ var _exp = function _exp() {
13
+ return Popover;
14
+ };
15
+ var StyledPopover = /*#__PURE__*/styled(_exp())({
16
+ name: "StyledPopover",
17
+ "class": "s1golqpq",
18
+ propsAsIs: true
19
+ });
20
+
21
+ // NOTE: переопределение токенов TextField
22
+ var _exp2 = function _exp2() {
23
+ return TextField;
24
+ };
25
+ var StyledInput = /*#__PURE__*/styled(_exp2())({
26
+ name: "StyledInput",
27
+ "class": "s15omatb",
28
+ propsAsIs: true
29
+ });
30
+ var base = "boba7w3";
31
+ var StyledLabel = /*#__PURE__*/styled('label')({
32
+ name: "StyledLabel",
33
+ "class": "svfqi8",
34
+ propsAsIs: false
35
+ });
36
+ var LeftHelper = /*#__PURE__*/styled('div')({
37
+ name: "LeftHelper",
38
+ "class": "l5dd1qs",
39
+ propsAsIs: false
40
+ });
41
+
42
+ export { LeftHelper, StyledInput, StyledLabel, StyledPopover, base };
43
+ //# sourceMappingURL=SingleDate.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleDate.styles.js","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component, mergeConfig } from '../../../engines';\nimport { textFieldConfig, textFieldTokens } from '../../TextField';\nimport { classes, tokens } from '../DatePicker.tokens';\nimport { popoverConfig } from '../../Popover';\n\nconst mergedTextFieldConfig = mergeConfig(textFieldConfig);\nconst TextField = component(mergedTextFieldConfig);\n\nconst mergedPopoverConfig = mergeConfig(popoverConfig);\nconst Popover = component(mergedPopoverConfig);\n\nexport const StyledPopover = styled(Popover)``;\n\n// NOTE: переопределение токенов TextField\nexport const StyledInput = styled(TextField)` \n ${textFieldTokens.color}: var(${tokens.textFieldColor});\n ${textFieldTokens.placeholderColor}: var(${tokens.textFieldPlaceholderColor});\n ${textFieldTokens.caretColor}: var(${tokens.textFieldCaretColor});\n ${textFieldTokens.focusColor}: var(${tokens.textFieldFocusColor});\n\n ${textFieldTokens.backgroundColor}: var(${tokens.textFieldBackgroundColor});\n ${textFieldTokens.backgroundColorHover}: var(${tokens.textFieldBackgroundColorHover});\n ${textFieldTokens.backgroundColorFocus}: var(${tokens.textFieldBackgroundColorFocus});\n \n ${textFieldTokens.borderColor}: var(${tokens.borderColor});\n ${textFieldTokens.borderColorHover}: var(${tokens.borderColorHover});\n ${textFieldTokens.borderColorFocus}: var(${tokens.borderColorFocus});\n\n ${textFieldTokens.colorReadOnly}: var(${tokens.textFieldColorReadOnly});\n ${textFieldTokens.backgroundColorReadOnly}: var(${tokens.textFieldBackgroundColorReadOnly});\n ${textFieldTokens.borderColorReadOnly}: var(${tokens.textFieldBorderColorReadOnly});\n ${textFieldTokens.placeholderColorReadOnly}: var(${tokens.textFieldPlaceholderColorReadOnly});\n\n ${textFieldTokens.height}: var(${tokens.textFieldHeight});\n ${textFieldTokens.borderWidth}: var(${tokens.textFieldBorderWidth});\n ${textFieldTokens.borderRadius}: var(${tokens.textFieldBorderRadius});\n\n ${textFieldTokens.padding}: var(${tokens.textFieldPadding});\n\n ${textFieldTokens.leftContentMargin}: var(${tokens.textFieldLeftContentMargin});\n ${textFieldTokens.rightContentMargin}: var(${tokens.textFieldRightContentMargin});\n\n ${textFieldTokens.fontFamily}: var(${tokens.textFieldFontFamily});\n ${textFieldTokens.fontSize}: var(${tokens.textFieldFontSize});\n ${textFieldTokens.fontStyle}: var(${tokens.textFieldFontStyle});\n ${textFieldTokens.fontWeight}: var(${tokens.textFieldFontWeight});\n ${textFieldTokens.letterSpacing}: var(${tokens.textFieldLetterSpacing});\n ${textFieldTokens.lineHeight}: var(${tokens.textFieldLineHeight});\n\n ${textFieldTokens.disabledOpacity}: var(${tokens.disabledOpacity});\n \n ${textFieldTokens.textBeforeColor}: var(${tokens.textFieldTextBeforeColor});\n ${textFieldTokens.textAfterColor}: var(${tokens.textFieldTextAfterColor});\n ${textFieldTokens.textBeforeMargin}: var(${tokens.textFieldTextBeforeMargin});\n ${textFieldTokens.textAfterMargin}: var(${tokens.textFieldTextAfterMargin});\n\n &.${classes.datePickerError} {\n ${textFieldTokens.backgroundColor}: var(${tokens.textFieldBackgroundErrorColor});\n ${textFieldTokens.backgroundColorHover}: var(${tokens.textFieldBackgroundErrorColorHover});\n ${textFieldTokens.backgroundColorFocus}: var(${tokens.textFieldBackgroundErrorColorFocus});\n \n ${textFieldTokens.borderColor}: var(${tokens.textFieldBorderColorError});\n ${textFieldTokens.borderColorHover}: var(${tokens.textFieldBorderColorErrorHover});\n ${textFieldTokens.borderColorFocus}: var(${tokens.textFieldBorderColorErrorFocus});\n }\n\n &.${classes.datePickerSuccess} {\n ${textFieldTokens.backgroundColor}: var(${tokens.textFieldBackgroundSuccessColor});\n ${textFieldTokens.backgroundColorHover}: var(${tokens.textFieldBackgroundSuccessColorHover});\n ${textFieldTokens.backgroundColorFocus}: var(${tokens.textFieldBackgroundSuccessColorFocus});\n \n ${textFieldTokens.borderColor}: var(${tokens.textFieldBorderColorSuccess});\n ${textFieldTokens.borderColorHover}: var(${tokens.textFieldBorderColorSuccessHover});\n ${textFieldTokens.borderColorFocus}: var(${tokens.textFieldBorderColorSuccessFocus});\n }\n`;\n\nexport const base = css`\n display: inline-block;\n`;\n\nexport const StyledLabel = styled.label``;\n\nexport const LeftHelper = styled.div``;\n"],"names":["mergedTextFieldConfig","mergeConfig","textFieldConfig","TextField","component","mergedPopoverConfig","popoverConfig","Popover","_exp","StyledPopover","styled","name","class","propsAsIs","_exp2","StyledInput","base","StyledLabel","LeftHelper"],"mappings":";;;;;;AAQA,IAAMA,qBAAqB,gBAAGC,WAAW,CAACC,eAAe,CAAC,CAAA;AAC1D,IAAMC,SAAS,gBAAGC,SAAS,CAACJ,qBAAqB,CAAC,CAAA;AAElD,IAAMK,mBAAmB,gBAAGJ,WAAW,CAACK,aAAa,CAAC,CAAA;AACtD,IAAMC,OAAO,gBAAGH,SAAS,CAACC,mBAAmB,CAAC,CAAA;AAAC,IAAAG,IAAA,GAX7BA,SAW6BA,IAAAA,GAAA;AAAA,EAAA,OAEXD,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAME,aAAa,gBAAGC,MAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAAW,EAAA;;AAE9C;AAAA,IAAAC,KAAA,GAfkBA,SAelBA,KAAAA,GAAA;AAAA,EAAA,OACkCX,SAAS,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMY,WAAW,gBAAGL,MAAM,CAAAI,KAAA,EAAA,CAAA,CAAA;AAAAH,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA6DhC,EAAA;AAEM,IAAMG,IAAI,GAEhB,UAAA;AAEM,IAAMC,WAAW,gBAAGP,MAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,QAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAQ,EAAA;AAElC,IAAMK,UAAU,gBAAGR,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM;;;;"}
@@ -0,0 +1,5 @@
1
+
2
+ .s15omatb{--plasma-textfield-color:var(--plasma-date-picker-textfield-color);--plasma-textfield__placeholder-color:var(--plasma-date-picker-textfield-placeholder-color);--plasma-textfield__caret-color:var(--plasma-date-picker-textfield-caret-color);--plasma-textfield-focus-color:var(--plasma-date-picker-textfield-focus-color);--plasma-textfield-bg-color:var(--plasma-date-picker-textfield-background-color);--plasma-textfield-bg-color-hover:var(--plasma-date-picker-textfield-background-color-hover);--plasma-textfield-bg-color-focus:var(--plasma-date-picker-textfield-background-color-focus);--plasma-textfield-border-color:var(--plasma-date-picker_range-border-color);--plasma-textfield-border-color-hover:var(--plasma-date-picker_range-border-color-hover);--plasma-textfield-border-color-focus:var(--plasma-date-picker_range-border-color-focus);--plasma-textfield-color-readonly:var(--plasma-date-picker-textfield-color-readonly);--plasma-textfield-bg-color-readonly:var(--plasma-date-picker-textfield-background-color-readonly);--plasma-textfield-border-color-readonly:var(--plasma-date-picker-textfield-border-color-readonly);--plasma-textfield__placeholder-color-readonly:var(--plasma-date-picker-textfield-placeholder-color-readonly);--plasma-textfield-height:var(--plasma-date-picker-textfield-height);--plasma-textfield-border-width:var(--plasma-date-picker-textfield-border-width);--plasma-textfield-border-radius:var(--plasma-date-picker-textfield-border-radius);--plasma-textfield-padding:var(--plasma-date-picker-textfield-padding);--plasma-textfield__left-content-margin:var(--plasma-date-picker-textfield__left-content-margin);--plasma-textfield__right-content-margin:var(--plasma-date-picker-textfield__right-content-margin);--plasma-textfield-font-family:var(--plasma-date-picker-textfield-font-family);--plasma-textfield-font-size:var(--plasma-date-picker-textfield-font-size);--plasma-textfield-font-style:var(--plasma-date-picker-textfield-font-style);--plasma-textfield-font-weight:var(--plasma-date-picker-textfield-font-weight);--plasma-textfield-letter-spacing:var(--plasma-date-picker-textfield-letter-spacing);--plasma-textfield-line-height:var(--plasma-date-picker-textfield-line-height);--plasma-textfield-disabled-opacity:var(--plasma-date-picker-disabled-opacity);--plasma-textfield__before-text-color:var(--plasma-date-picker-textfield__before-text-color);--plasma-textfield__after-text-color:var(--plasma-date-picker-textfield__after-text-color);--plasma-textfield__before-text-margin:var(--plasma-date-picker-textfield__before-text-margin);--plasma-textfield__after-text-margin:var(--plasma-date-picker-textfield__after-text-margin);}.s15omatb.date-picker-error{--plasma-textfield-bg-color:var(--plasma-date-picker-textfield-background-color-error);--plasma-textfield-bg-color-hover:var(--plasma-date-picker-textfield-background-color-error-hover);--plasma-textfield-bg-color-focus:var(--plasma-date-picker-textfield-background-color-error-focus);--plasma-textfield-border-color:var(--plasma-date-picker-textfield-border-color-error);--plasma-textfield-border-color-hover:var(--plasma-date-picker-textfield-border-color-error-hover);--plasma-textfield-border-color-focus:var(--plasma-date-picker-textfield-border-color-error-focus);}.s15omatb.date-picker-success{--plasma-textfield-bg-color:var(--plasma-date-picker-textfield-background-color-success);--plasma-textfield-bg-color-hover:var(--plasma-date-picker-textfield-background-color-success-hover);--plasma-textfield-bg-color-focus:var(--plasma-date-picker-textfield-background-color-success-focus);--plasma-textfield-border-color:var(--plasma-date-picker-textfield-border-color-success);--plasma-textfield-border-color-hover:var(--plasma-date-picker-textfield-border-color-success-hover);--plasma-textfield-border-color-focus:var(--plasma-date-picker-textfield-border-color-success-focus);}
3
+ .boba7w3{display:inline-block;}
4
+
5
+
@@ -0,0 +1,5 @@
1
+ import './base_1rfgfsz.css';
2
+ var base = "bl4tpwr";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../src/components/DatePicker/SingleDate/variations/_disabled/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../../DatePicker.tokens';\n\nexport const base = css`\n &[disabled] {\n opacity: var(${tokens.disabledOpacity});\n cursor: not-allowed;\n }\n`;\n"],"names":["base"],"mappings":"AAIO,IAAMA,IAAI,GAKhB;;;;"}
@@ -0,0 +1 @@
1
+ .bl4tpwr[disabled]{opacity:var(--plasma-date-picker-disabled-opacity);cursor:not-allowed;}
@@ -0,0 +1,5 @@
1
+ import './base_1jucwp.css';
2
+ var base = "b160pc19";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../src/components/DatePicker/SingleDate/variations/_readonly/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../../DatePicker.tokens';\nimport { LeftHelper, StyledLabel } from '../../SingleDate.styles';\n\nexport const base = css`\n &[readonly] {\n cursor: default;\n\n ${StyledLabel} {\n display: block;\n color: var(${tokens.labelColorReadOnly});\n }\n\n ${LeftHelper} {\n color: var(${tokens.leftHelperColorReadOnly});\n }\n }\n`;\n"],"names":["base"],"mappings":"AAKO,IAAMA,IAAI,GAahB;;;;"}
@@ -0,0 +1 @@
1
+ .b160pc19[readonly]{cursor:default;}.b160pc19[readonly] .svfqi8{display:block;color:var(--plasma-date-picker__label-color-readonly);}.b160pc19[readonly] .l5dd1qs{color:var(--plasma-date-picker__left-helper-color-readonly);}
@@ -0,0 +1,5 @@
1
+ import './base_lf7y25.css';
2
+ var base = "bjvjzuw";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../src/components/DatePicker/SingleDate/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../../DatePicker.tokens';\nimport { StyledLabel, LeftHelper } from '../../SingleDate.styles';\n\nexport const base = css`\n width: var(${tokens.width});\n\n ${StyledLabel} {\n margin: var(${tokens.labelOffset});\n\n font-family: var(${tokens.labelFontFamily});\n font-size: var(${tokens.labelFontSize});\n font-style: var(${tokens.labelFontStyle});\n font-weight: var(${tokens.labelFontWeight});\n letter-spacing: var(${tokens.labelLetterSpacing});\n line-height: var(${tokens.labelLineHeight});\n }\n\n ${LeftHelper} {\n margin: var(${tokens.leftHelperOffset});\n\n font-family: var(${tokens.leftHelperFontFamily});\n font-size: var(${tokens.leftHelperFontSize});\n font-style: var(${tokens.leftHelperFontStyle});\n font-weight: var(${tokens.leftHelperFontWeight});\n letter-spacing: var(${tokens.leftHelperLetterSpacing});\n line-height: var(${tokens.leftHelperLineHeight});\n }\n`;\n"],"names":["base"],"mappings":"AAKO,IAAMA,IAAI,GAwBhB;;;;"}
@@ -0,0 +1 @@
1
+ .bjvjzuw{width:var(--plasma-date-picker-width);}.bjvjzuw .svfqi8{margin:var(--plasma-date-picker__label-offset);font-family:var(--plasma-date-picker__label-font-family);font-size:var(--plasma-date-picker__label-font-size);font-style:var(--plasma-date-picker__label-font-style);font-weight:var(--plasma-date-picker__label-font-weight);-webkit-letter-spacing:var(--plasma-date-picker__label-letter-spacing);-moz-letter-spacing:var(--plasma-date-picker__label-letter-spacing);-ms-letter-spacing:var(--plasma-date-picker__label-letter-spacing);letter-spacing:var(--plasma-date-picker__label-letter-spacing);line-height:var(--plasma-date-picker__label-line-height);}.bjvjzuw .l5dd1qs{margin:var(--plasma-date-picker__left-helper-offset);font-family:var(--plasma-date-picker__left-helper-font-family);font-size:var(--plasma-date-picker__left-helper-font-size);font-style:var(--plasma-date-picker__left-helper-font-style);font-weight:var(--plasma-date-picker__left-helper-font-weight);-webkit-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);-moz-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);-ms-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);line-height:var(--plasma-date-picker__left-helper-line-height);}
@@ -0,0 +1,5 @@
1
+ import './base_15vaheb.css';
2
+ var base = "bgt8q06";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../src/components/DatePicker/SingleDate/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { LeftHelper, StyledLabel } from '../../SingleDate.styles';\nimport { tokens } from '../../../DatePicker.tokens';\n\nexport const base = css`\n ${StyledLabel} {\n display: block;\n color: var(${tokens.labelColor});\n }\n\n ${LeftHelper} {\n color: var(${tokens.leftHelperColor});\n }\n`;\n"],"names":["base"],"mappings":"AAKO,IAAMA,IAAI,GAShB;;;;"}
@@ -0,0 +1 @@
1
+ .bgt8q06 .svfqi8{display:block;color:var(--plasma-date-picker__label-color);}.bgt8q06 .l5dd1qs{color:var(--plasma-date-picker__left-helper-color);}
@@ -0,0 +1,75 @@
1
+ import { classes } from '../DatePicker.tokens.js';
2
+ import { getMaskedDateOnInput, formatCalendarValue, formatInputValue, getDateFromFormat } from '../utils/dateHelper.js';
3
+
4
+ var useDatePicker = function useDatePicker(_ref) {
5
+ var currentValue = _ref.currentValue,
6
+ setInputValue = _ref.setInputValue,
7
+ setCalendarValue = _ref.setCalendarValue,
8
+ setIsInnerOpen = _ref.setIsInnerOpen,
9
+ dateFormatDelimiter = _ref.dateFormatDelimiter,
10
+ format = _ref.format,
11
+ disabled = _ref.disabled,
12
+ readOnly = _ref.readOnly,
13
+ maskWithFormat = _ref.maskWithFormat,
14
+ valueError = _ref.valueError,
15
+ valueSuccess = _ref.valueSuccess,
16
+ inputRef = _ref.inputRef,
17
+ onToggle = _ref.onToggle,
18
+ onChangeValue = _ref.onChangeValue,
19
+ onCommitDate = _ref.onCommitDate;
20
+ var datePickerErrorClass = valueError ? classes.datePickerError : undefined;
21
+ var datePickerSuccessClass = valueSuccess ? classes.datePickerSuccess : undefined;
22
+ var handleToggle = function handleToggle(opened, event) {
23
+ if (disabled || readOnly) {
24
+ return;
25
+ }
26
+ var isCalendarOpen = event.target === (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) ? true : opened;
27
+ if (onToggle) {
28
+ return onToggle(isCalendarOpen, event);
29
+ }
30
+ setIsInnerOpen(isCalendarOpen);
31
+ };
32
+ var handleChangeValue = function handleChangeValue(event) {
33
+ if (disabled || readOnly) {
34
+ return;
35
+ }
36
+ var value = event.target.value;
37
+ var newValue = maskWithFormat ? getMaskedDateOnInput(value, format, dateFormatDelimiter(), currentValue) : value;
38
+ setCalendarValue(formatCalendarValue(newValue, format));
39
+ setInputValue(formatInputValue(newValue, format));
40
+ onChangeValue === null || onChangeValue === void 0 || onChangeValue(event, newValue);
41
+ };
42
+ var handleCommitDate = function handleCommitDate(date, applyFormat, isCalendarValue) {
43
+ if (disabled || readOnly) {
44
+ return;
45
+ }
46
+ if (!date) {
47
+ setCalendarValue(undefined);
48
+ setInputValue('');
49
+ return onCommitDate === null || onCommitDate === void 0 ? void 0 : onCommitDate('', false, true);
50
+ }
51
+ if (isCalendarValue) {
52
+ setCalendarValue(formatCalendarValue(date, format));
53
+ setInputValue(formatInputValue(date, format));
54
+ return onCommitDate === null || onCommitDate === void 0 ? void 0 : onCommitDate(date, false, true);
55
+ }
56
+ var formatString = applyFormat ? format : undefined;
57
+ var _getDateFromFormat = getDateFromFormat(date, formatString),
58
+ newDate = _getDateFromFormat.value,
59
+ isError = _getDateFromFormat.isError,
60
+ isSuccess = _getDateFromFormat.isSuccess;
61
+ setCalendarValue(formatCalendarValue(newDate, format));
62
+ setInputValue(formatInputValue(newDate, format));
63
+ onCommitDate === null || onCommitDate === void 0 || onCommitDate(newDate, isError, isSuccess);
64
+ };
65
+ return {
66
+ datePickerErrorClass: datePickerErrorClass,
67
+ datePickerSuccessClass: datePickerSuccessClass,
68
+ handleToggle: handleToggle,
69
+ handleChangeValue: handleChangeValue,
70
+ handleCommitDate: handleCommitDate
71
+ };
72
+ };
73
+
74
+ export { useDatePicker };
75
+ //# sourceMappingURL=useDatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDatePicker.js","sources":["../../../../src/components/DatePicker/hooks/useDatePicker.ts"],"sourcesContent":["import { ChangeEvent, SyntheticEvent } from 'react';\n\nimport { classes } from '../DatePicker.tokens';\nimport type { UseDatePickerProps } from '../DatePickerBase.types';\nimport { formatCalendarValue, formatInputValue, getDateFromFormat, getMaskedDateOnInput } from '../utils/dateHelper';\n\nexport const useDatePicker = ({\n currentValue,\n setInputValue,\n setCalendarValue,\n setIsInnerOpen,\n dateFormatDelimiter,\n format,\n disabled,\n readOnly,\n maskWithFormat,\n valueError,\n valueSuccess,\n inputRef,\n onToggle,\n onChangeValue,\n onCommitDate,\n}: UseDatePickerProps) => {\n const datePickerErrorClass = valueError ? classes.datePickerError : undefined;\n const datePickerSuccessClass = valueSuccess ? classes.datePickerSuccess : undefined;\n\n const handleToggle = (opened: boolean, event: SyntheticEvent | Event) => {\n if (disabled || readOnly) {\n return;\n }\n\n const isCalendarOpen = event.target === inputRef?.current ? true : opened;\n\n if (onToggle) {\n return onToggle(isCalendarOpen, event);\n }\n\n setIsInnerOpen(isCalendarOpen);\n };\n\n const handleChangeValue = (event: ChangeEvent<HTMLInputElement>) => {\n if (disabled || readOnly) {\n return;\n }\n const { value } = event.target;\n\n const newValue = maskWithFormat\n ? getMaskedDateOnInput(value, format, dateFormatDelimiter(), currentValue)\n : value;\n\n setCalendarValue(formatCalendarValue(newValue, format));\n setInputValue(formatInputValue(newValue, format));\n\n onChangeValue?.(event, newValue);\n };\n\n const handleCommitDate = (date?: Date | string, applyFormat?: boolean, isCalendarValue?: boolean) => {\n if (disabled || readOnly) {\n return;\n }\n\n if (!date) {\n setCalendarValue(undefined);\n setInputValue('');\n\n return onCommitDate?.('', false, true);\n }\n\n if (isCalendarValue) {\n setCalendarValue(formatCalendarValue(date, format));\n setInputValue(formatInputValue(date, format));\n\n return onCommitDate?.(date, false, true);\n }\n\n const formatString = applyFormat ? format : undefined;\n\n const { value: newDate, isError, isSuccess } = getDateFromFormat(date, formatString);\n\n setCalendarValue(formatCalendarValue(newDate, format));\n setInputValue(formatInputValue(newDate, format));\n\n onCommitDate?.(newDate, isError, isSuccess);\n };\n\n return {\n datePickerErrorClass,\n datePickerSuccessClass,\n handleToggle,\n handleChangeValue,\n handleCommitDate,\n };\n};\n"],"names":["useDatePicker","_ref","currentValue","setInputValue","setCalendarValue","setIsInnerOpen","dateFormatDelimiter","format","disabled","readOnly","maskWithFormat","valueError","valueSuccess","inputRef","onToggle","onChangeValue","onCommitDate","datePickerErrorClass","classes","datePickerError","undefined","datePickerSuccessClass","datePickerSuccess","handleToggle","opened","event","isCalendarOpen","target","current","handleChangeValue","value","newValue","getMaskedDateOnInput","formatCalendarValue","formatInputValue","handleCommitDate","date","applyFormat","isCalendarValue","formatString","_getDateFromFormat","getDateFromFormat","newDate","isError","isSuccess"],"mappings":";;;IAMaA,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAgBA;AAAA,EAAA,IAftBC,YAAY,GAAAD,IAAA,CAAZC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AAAA,aAAa,CAAC+B,gBAAgB,CAACE,IAAI,EAAE7B,MAAM,CAAC,CAAC,CAAA;MAE7C,OAAOS,YAAY,KAAZA,IAAAA,IAAAA,YAAY,KAAZA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,YAAY,CAAGoB,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;AAC5C,KAAA;AAEA,IAAA,IAAMG,YAAY,GAAGF,WAAW,GAAG9B,MAAM,GAAGa,SAAS,CAAA;AAErD,IAAA,IAAAoB,kBAAA,GAA+CC,iBAAiB,CAACL,IAAI,EAAEG,YAAY,CAAC;MAArEG,OAAO,GAAAF,kBAAA,CAAdV,KAAK;MAAWa,OAAO,GAAAH,kBAAA,CAAPG,OAAO;MAAEC,SAAS,GAAAJ,kBAAA,CAATI,SAAS,CAAA;AAE1CxC,IAAAA,gBAAgB,CAAC6B,mBAAmB,CAACS,OAAO,EAAEnC,MAAM,CAAC,CAAC,CAAA;AACtDJ,IAAAA,aAAa,CAAC+B,gBAAgB,CAACQ,OAAO,EAAEnC,MAAM,CAAC,CAAC,CAAA;IAEhDS,YAAY,KAAA,IAAA,IAAZA,YAAY,KAAA,KAAA,CAAA,IAAZA,YAAY,CAAG0B,OAAO,EAAEC,OAAO,EAAEC,SAAS,CAAC,CAAA;GAC9C,CAAA;EAED,OAAO;AACH3B,IAAAA,oBAAoB,EAApBA,oBAAoB;AACpBI,IAAAA,sBAAsB,EAAtBA,sBAAsB;AACtBE,IAAAA,YAAY,EAAZA,YAAY;AACZM,IAAAA,iBAAiB,EAAjBA,iBAAiB;AACjBM,IAAAA,gBAAgB,EAAhBA,gBAAAA;GACH,CAAA;AACL;;;;"}
@@ -0,0 +1,76 @@
1
+ import { customDayjs } from '../../../utils/datejs.js';
2
+
3
+ var formatInputValue = function formatInputValue(value, format) {
4
+ if (!value) {
5
+ return '';
6
+ }
7
+ if (format && customDayjs(value, format, true).isValid()) {
8
+ return customDayjs(value, format).format(format);
9
+ }
10
+ if (format && String(value).length >= 10 && String(new Date(value)) !== 'Invalid Date') {
11
+ return customDayjs(value).format(format);
12
+ }
13
+ return String(value);
14
+ };
15
+ var formatCalendarValue = function formatCalendarValue(value, format) {
16
+ if (!value) {
17
+ return undefined;
18
+ }
19
+ if (format && customDayjs(value, format, true).isValid()) {
20
+ return customDayjs(value, format, true).toDate();
21
+ }
22
+ if (String(new Date(value)) !== 'Invalid Date') {
23
+ return customDayjs(value).toDate();
24
+ }
25
+ return undefined;
26
+ };
27
+ var getDateFromFormat = function getDateFromFormat(value, format) {
28
+ if (format && customDayjs(value, format, true).isValid()) {
29
+ return {
30
+ value: customDayjs(value, format, true).toDate(),
31
+ isError: false,
32
+ isSuccess: true
33
+ };
34
+ }
35
+ if (!format && String(new Date(value)) !== 'Invalid Date') {
36
+ return {
37
+ value: customDayjs(value).toDate(),
38
+ isError: false,
39
+ isSuccess: true
40
+ };
41
+ }
42
+ return {
43
+ value: value,
44
+ isError: true,
45
+ isSuccess: false
46
+ };
47
+ };
48
+ var getDateFormatDelimiter = function getDateFormatDelimiter(format) {
49
+ var _format$match;
50
+ if (!format) {
51
+ return '';
52
+ }
53
+ var delimiter = (_format$match = format.match(/[^a-zA-Z0-9]/)) === null || _format$match === void 0 ? void 0 : _format$match[0];
54
+ return delimiter !== null && delimiter !== void 0 ? delimiter : '';
55
+ };
56
+ var getMaskedDateOnInput = function getMaskedDateOnInput(value, format, delimiter, prevValue) {
57
+ if (!value) {
58
+ return '';
59
+ }
60
+ if (!format || !delimiter) {
61
+ return value;
62
+ }
63
+ if (value.length >= format.length) {
64
+ return value.slice(0, format.length);
65
+ }
66
+ if (prevValue && value.length < prevValue.length && (prevValue === null || prevValue === void 0 ? void 0 : prevValue[value.length]) === delimiter) {
67
+ return value.slice(0, -1);
68
+ }
69
+ if ((format === null || format === void 0 ? void 0 : format[value.length]) === delimiter) {
70
+ return value + delimiter;
71
+ }
72
+ return value;
73
+ };
74
+
75
+ export { formatCalendarValue, formatInputValue, getDateFormatDelimiter, getDateFromFormat, getMaskedDateOnInput };
76
+ //# sourceMappingURL=dateHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateHelper.js","sources":["../../../../src/components/DatePicker/utils/dateHelper.ts"],"sourcesContent":["import { customDayjs } from '../../../utils/datejs';\n\nexport const formatInputValue = (value?: Date | string, format?: string) => {\n if (!value) {\n return '';\n }\n\n if (format && customDayjs(value, format, true).isValid()) {\n return customDayjs(value, format).format(format);\n }\n\n if (format && String(value).length >= 10 && String(new Date(value)) !== 'Invalid Date') {\n return customDayjs(value).format(format);\n }\n\n return String(value);\n};\n\nexport const formatCalendarValue = (value?: Date | string, format?: string) => {\n if (!value) {\n return undefined;\n }\n\n if (format && customDayjs(value, format, true).isValid()) {\n return customDayjs(value, format, true).toDate();\n }\n\n if (String(new Date(value)) !== 'Invalid Date') {\n return customDayjs(value).toDate();\n }\n\n return undefined;\n};\n\nexport const getDateFromFormat = (value: Date | string, format?: string) => {\n if (format && customDayjs(value, format, true).isValid()) {\n return { value: customDayjs(value, format, true).toDate(), isError: false, isSuccess: true };\n }\n\n if (!format && String(new Date(value)) !== 'Invalid Date') {\n return { value: customDayjs(value).toDate(), isError: false, isSuccess: true };\n }\n\n return { value, isError: true, isSuccess: false };\n};\n\nexport const getDateFormatDelimiter = (format?: string) => {\n if (!format) {\n return '';\n }\n\n const delimiter = format.match(/[^a-zA-Z0-9]/)?.[0];\n\n return delimiter ?? '';\n};\n\nexport const getMaskedDateOnInput = (value?: string, format?: string, delimiter?: string, prevValue?: string) => {\n if (!value) {\n return '';\n }\n\n if (!format || !delimiter) {\n return value;\n }\n\n if (value.length >= format.length) {\n return value.slice(0, format.length);\n }\n\n if (prevValue && value.length < prevValue.length && prevValue?.[value.length] === delimiter) {\n return value.slice(0, -1);\n }\n\n if (format?.[value.length] === delimiter) {\n return value + delimiter;\n }\n\n return value;\n};\n"],"names":["formatInputValue","value","format","customDayjs","isValid","String","length","Date","formatCalendarValue","undefined","toDate","getDateFromFormat","isError","isSuccess","getDateFormatDelimiter","_format$match","delimiter","match","getMaskedDateOnInput","prevValue","slice"],"mappings":";;AAEO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,KAAqB,EAAEC,MAAe,EAAK;EACxE,IAAI,CAACD,KAAK,EAAE;AACR,IAAA,OAAO,EAAE,CAAA;AACb,GAAA;AAEA,EAAA,IAAIC,MAAM,IAAIC,WAAW,CAACF,KAAK,EAAEC,MAAM,EAAE,IAAI,CAAC,CAACE,OAAO,EAAE,EAAE;IACtD,OAAOD,WAAW,CAACF,KAAK,EAAEC,MAAM,CAAC,CAACA,MAAM,CAACA,MAAM,CAAC,CAAA;AACpD,GAAA;EAEA,IAAIA,MAAM,IAAIG,MAAM,CAACJ,KAAK,CAAC,CAACK,MAAM,IAAI,EAAE,IAAID,MAAM,CAAC,IAAIE,IAAI,CAACN,KAAK,CAAC,CAAC,KAAK,cAAc,EAAE;IACpF,OAAOE,WAAW,CAACF,KAAK,CAAC,CAACC,MAAM,CAACA,MAAM,CAAC,CAAA;AAC5C,GAAA;EAEA,OAAOG,MAAM,CAACJ,KAAK,CAAC,CAAA;AACxB,EAAC;AAEM,IAAMO,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIP,KAAqB,EAAEC,MAAe,EAAK;EAC3E,IAAI,CAACD,KAAK,EAAE;AACR,IAAA,OAAOQ,SAAS,CAAA;AACpB,GAAA;AAEA,EAAA,IAAIP,MAAM,IAAIC,WAAW,CAACF,KAAK,EAAEC,MAAM,EAAE,IAAI,CAAC,CAACE,OAAO,EAAE,EAAE;IACtD,OAAOD,WAAW,CAACF,KAAK,EAAEC,MAAM,EAAE,IAAI,CAAC,CAACQ,MAAM,EAAE,CAAA;AACpD,GAAA;EAEA,IAAIL,MAAM,CAAC,IAAIE,IAAI,CAACN,KAAK,CAAC,CAAC,KAAK,cAAc,EAAE;AAC5C,IAAA,OAAOE,WAAW,CAACF,KAAK,CAAC,CAACS,MAAM,EAAE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SAAS,KAATA,KAAAA,CAAAA,GAAAA,SAAS,GAAI,EAAE,CAAA;AAC1B,EAAC;AAEYE,IAAAA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAIjB,KAAc,EAAEC,MAAe,EAAEc,SAAkB,EAAEG,SAAkB,EAAK;EAC7G,IAAI,CAAClB,KAAK,EAAE;AACR,IAAA,OAAO,EAAE,CAAA;AACb,GAAA;AAEA,EAAA,IAAI,CAACC,MAAM,IAAI,CAACc,SAAS,EAAE;AACvB,IAAA,OAAOf,KAAK,CAAA;AAChB,GAAA;AAEA,EAAA,IAAIA,KAAK,CAACK,MAAM,IAAIJ,MAAM,CAACI,MAAM,EAAE;IAC/B,OAAOL,KAAK,CAACmB,KAAK,CAAC,CAAC,EAAElB,MAAM,CAACI,MAAM,CAAC,CAAA;AACxC,GAAA;EAEA,IAAIa,SAAS,IAAIlB,KAAK,CAACK,MAAM,GAAGa,SAAS,CAACb,MAAM,IAAI,CAAAa,SAAS,KAATA,IAAAA,IAAAA,SAAS,KAATA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,SAAS,CAAGlB,KAAK,CAACK,MAAM,CAAC,MAAKU,SAAS,EAAE;IACzF,OAAOf,KAAK,CAACmB,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAC7B,GAAA;AAEA,EAAA,IAAI,CAAAlB,MAAM,KAANA,IAAAA,IAAAA,MAAM,KAANA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,MAAM,CAAGD,KAAK,CAACK,MAAM,CAAC,MAAKU,SAAS,EAAE;IACtC,OAAOf,KAAK,GAAGe,SAAS,CAAA;AAC5B,GAAA;AAEA,EAAA,OAAOf,KAAK,CAAA;AAChB;;;;"}
@@ -7,7 +7,7 @@ import '@salutejs/plasma-core';
7
7
  import '@linaria/react';
8
8
  import { classes } from './Dropdown.tokens.js';
9
9
  import { DropdownInner } from './ui/DropdownInner/DropdownInner.js';
10
- import { getPlacements, childrenWithProps } from './utils/index.js';
10
+ import { childrenWithProps } from './utils/index.js';
11
11
  import 'focus-visible';
12
12
  import 'styled-components';
13
13
  import '@linaria/core';
@@ -18,6 +18,7 @@ import { base as base$2 } from './variations/_size/base.js';
18
18
  import { StyledPopover, Ul, base } from './Dropdown.styles.js';
19
19
  import { useKeyNavigation } from './hooks/useKeyboardNavigation.js';
20
20
  import { useHashMaps } from './hooks/useHashMaps.js';
21
+ import { getPlacements } from '../../utils/getPopoverPlacement.js';
21
22
 
22
23
  var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow"];
23
24
 
@@ -154,7 +155,8 @@ var dropdownRoot = function dropdownRoot(Root) {
154
155
  onItemClick: onItemClick,
155
156
  listWidth: listWidth,
156
157
  variant: variant,
157
- hasArrow: hasArrow
158
+ hasArrow: hasArrow,
159
+ size: size
158
160
  });
159
161
  }))));
160
162
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import React, { forwardRef, useReducer } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport { pathReducer } from './reducers/pathReducer';\nimport { focusedPathReducer } from './reducers/focusedPathReducer';\nimport { DropdownInner } from './ui';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { Ul, StyledPopover, base } from './Dropdown.styles';\nimport { getPlacements, childrenWithProps } from './utils';\nimport type { DropdownProps, HandleGlobalToggleType } from './Dropdown.types';\nimport { classes } from './Dropdown.tokens';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\nimport { useHashMaps } from './hooks/useHashMaps';\n\n/**\n * Выпадающий список.\n */\nexport const dropdownRoot = (Root: RootProps<HTMLDivElement, DropdownProps>) =>\n forwardRef<HTMLDivElement, DropdownProps>(\n (\n {\n items,\n children,\n placement = 'bottom',\n offset = [0, 0],\n closeOnOverlayClick = true,\n onToggle,\n size,\n view,\n itemRole = 'treeitem',\n className,\n listWidth,\n listHeight,\n listOverflow,\n closeOnSelect = true,\n onHover,\n onItemSelect,\n onItemClick,\n trigger = 'click',\n variant = 'normal',\n hasArrow = true,\n ...rest\n },\n ref,\n ) => {\n const [path, dispatchPath] = useReducer(pathReducer, []);\n const [focusedPath, dispatchFocusedPath] = useReducer(focusedPathReducer, []);\n\n const [pathMap, focusedToValueMap] = useHashMaps(items);\n\n const handleGlobalToggle: HandleGlobalToggleType = (opened, event) => {\n if (opened) {\n dispatchPath({ type: 'opened_first_level' });\n } else {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n }\n\n if (onToggle) {\n onToggle(opened, event);\n }\n };\n\n const { onKeyDown } = useKeyNavigation({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleGlobalToggle,\n closeOnSelect,\n onItemSelect,\n onItemClick,\n });\n\n const isCurrentListOpen = Boolean(path[0]);\n\n const getActiveDescendant = () => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n return focusedToValueMap?.get(focusedPathAsString)?.value.toString();\n };\n\n return (\n <Root\n className={cx(className, classes.dropdownRoot)}\n ref={ref}\n view={view}\n size={size}\n items={items}\n {...rest}\n >\n <StyledPopover\n isOpen={isCurrentListOpen}\n usePortal={false}\n onToggle={handleGlobalToggle}\n offset={offset}\n placement={getPlacements(placement)}\n trigger={trigger}\n closeOnOverlayClick={closeOnOverlayClick}\n isFocusTrapped={false}\n target={childrenWithProps(children, {\n role: 'combobox',\n 'aria-controls': 'tree_level_1',\n 'aria-expanded': isCurrentListOpen,\n 'aria-activedescendant': getActiveDescendant(),\n onKeyDown,\n })}\n preventOverflow={false}\n >\n <Ul\n listHeight={listHeight}\n listOverflow={listOverflow}\n role=\"tree\"\n id=\"tree_level_1\"\n listWidth={listWidth}\n >\n {items.map((item, index) => (\n <DropdownInner\n key={`${index}/0`}\n item={item}\n currentLevel={0}\n focusedPath={focusedPath}\n trigger={trigger}\n path={path}\n dispatchPath={dispatchPath}\n index={index}\n itemRole={itemRole}\n listHeight={listHeight}\n listOverflow={listOverflow}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n listWidth={listWidth}\n variant={variant}\n hasArrow={hasArrow}\n />\n ))}\n </Ul>\n </StyledPopover>\n </Root>\n );\n },\n );\n\nexport const dropdownConfig = {\n name: 'Dropdown',\n tag: 'div',\n layout: dropdownRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["dropdownRoot","Root","forwardRef","_ref","ref","items","children","_ref$placement","placement","_ref$offset","offset","_ref$closeOnOverlayCl","closeOnOverlayClick","onToggle","size","view","_ref$itemRole","itemRole","className","listWidth","listHeight","listOverflow","_ref$closeOnSelect","closeOnSelect","onHover","onItemSelect","onItemClick","_ref$trigger","trigger","_ref$variant","variant","_ref$hasArrow","hasArrow","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","pathReducer","_useReducer2","_slicedToArray","path","dispatchPath","_useReducer3","focusedPathReducer","_useReducer4","focusedPath","dispatchFocusedPath","_useHashMaps","useHashMaps","_useHashMaps2","pathMap","focusedToValueMap","handleGlobalToggle","opened","event","type","_useKeyNavigation","useKeyNavigation","onKeyDown","isCurrentListOpen","Boolean","getActiveDescendant","_focusedToValueMap$ge","focusedPathAsString","reduce","acc","n","concat","replace","get","value","toString","React","createElement","_extends","cx","classes","StyledPopover","isOpen","usePortal","getPlacements","isFocusTrapped","target","childrenWithProps","role","preventOverflow","Ul","id","map","item","index","DropdownInner","key","currentLevel","dropdownConfig","name","tag","layout","base","variations","css","vi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A;KACL,CACD,CACO,CACb,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM+D,cAAc,GAAG;AAC1BC,EAAAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAElG,YAAY;AACpBmG,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRrF,IAAAA,IAAI,EAAE;AACFsF,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDxF,IAAAA,IAAI,EAAE;AACFuF,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNzF,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Dropdown.js","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import React, { forwardRef, useReducer } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx, getPlacements } from '../../utils';\n\nimport { pathReducer } from './reducers/pathReducer';\nimport { focusedPathReducer } from './reducers/focusedPathReducer';\nimport { DropdownInner } from './ui';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { Ul, StyledPopover, base } from './Dropdown.styles';\nimport { childrenWithProps } from './utils';\nimport type { DropdownProps, HandleGlobalToggleType } from './Dropdown.types';\nimport { classes } from './Dropdown.tokens';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\nimport { useHashMaps } from './hooks/useHashMaps';\n\n/**\n * Выпадающий список.\n */\nexport const dropdownRoot = (Root: RootProps<HTMLDivElement, DropdownProps>) =>\n forwardRef<HTMLDivElement, DropdownProps>(\n (\n {\n items,\n children,\n placement = 'bottom',\n offset = [0, 0],\n closeOnOverlayClick = true,\n onToggle,\n size,\n view,\n itemRole = 'treeitem',\n className,\n listWidth,\n listHeight,\n listOverflow,\n closeOnSelect = true,\n onHover,\n onItemSelect,\n onItemClick,\n trigger = 'click',\n variant = 'normal',\n hasArrow = true,\n ...rest\n },\n ref,\n ) => {\n const [path, dispatchPath] = useReducer(pathReducer, []);\n const [focusedPath, dispatchFocusedPath] = useReducer(focusedPathReducer, []);\n\n const [pathMap, focusedToValueMap] = useHashMaps(items);\n\n const handleGlobalToggle: HandleGlobalToggleType = (opened, event) => {\n if (opened) {\n dispatchPath({ type: 'opened_first_level' });\n } else {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n }\n\n if (onToggle) {\n onToggle(opened, event);\n }\n };\n\n const { onKeyDown } = useKeyNavigation({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleGlobalToggle,\n closeOnSelect,\n onItemSelect,\n onItemClick,\n });\n\n const isCurrentListOpen = Boolean(path[0]);\n\n const getActiveDescendant = () => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n return focusedToValueMap?.get(focusedPathAsString)?.value.toString();\n };\n\n return (\n <Root\n className={cx(className, classes.dropdownRoot)}\n ref={ref}\n view={view}\n size={size}\n items={items}\n {...rest}\n >\n <StyledPopover\n isOpen={isCurrentListOpen}\n usePortal={false}\n onToggle={handleGlobalToggle}\n offset={offset}\n placement={getPlacements(placement)}\n trigger={trigger}\n closeOnOverlayClick={closeOnOverlayClick}\n isFocusTrapped={false}\n target={childrenWithProps(children, {\n role: 'combobox',\n 'aria-controls': 'tree_level_1',\n 'aria-expanded': isCurrentListOpen,\n 'aria-activedescendant': getActiveDescendant(),\n onKeyDown,\n })}\n preventOverflow={false}\n >\n <Ul\n listHeight={listHeight}\n listOverflow={listOverflow}\n role=\"tree\"\n id=\"tree_level_1\"\n listWidth={listWidth}\n >\n {items.map((item, index) => (\n <DropdownInner\n key={`${index}/0`}\n item={item}\n currentLevel={0}\n focusedPath={focusedPath}\n trigger={trigger}\n path={path}\n dispatchPath={dispatchPath}\n index={index}\n itemRole={itemRole}\n listHeight={listHeight}\n listOverflow={listOverflow}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n listWidth={listWidth}\n variant={variant}\n hasArrow={hasArrow}\n size={size}\n />\n ))}\n </Ul>\n </StyledPopover>\n </Root>\n );\n },\n );\n\nexport const dropdownConfig = {\n name: 'Dropdown',\n tag: 'div',\n layout: dropdownRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["dropdownRoot","Root","forwardRef","_ref","ref","items","children","_ref$placement","placement","_ref$offset","offset","_ref$closeOnOverlayCl","closeOnOverlayClick","onToggle","size","view","_ref$itemRole","itemRole","className","listWidth","listHeight","listOverflow","_ref$closeOnSelect","closeOnSelect","onHover","onItemSelect","onItemClick","_ref$trigger","trigger","_ref$variant","variant","_ref$hasArrow","hasArrow","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","pathReducer","_useReducer2","_slicedToArray","path","dispatchPath","_useReducer3","focusedPathReducer","_useReducer4","focusedPath","dispatchFocusedPath","_useHashMaps","useHashMaps","_useHashMaps2","pathMap","focusedToValueMap","handleGlobalToggle","opened","event","type","_useKeyNavigation","useKeyNavigation","onKeyDown","isCurrentListOpen","Boolean","getActiveDescendant","_focusedToValueMap$ge","focusedPathAsString","reduce","acc","n","concat","replace","get","value","toString","React","createElement","_extends","cx","classes","StyledPopover","isOpen","usePortal","getPlacements","isFocusTrapped","target","childrenWithProps","role","preventOverflow","Ul","id","map","item","index","DropdownInner","key","currentLevel","dropdownConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiBA;AACA;AACA;IACaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAA8C,EAAA;AAAA,EAAA,oBACv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AAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAElG,YAAY;AACpBmG,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRrF,IAAAA,IAAI,EAAE;AACFsF,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDxF,IAAAA,IAAI,EAAE;AACFuF,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNzF,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -28,7 +28,8 @@ var DropdownInner = function DropdownInner(_ref) {
28
28
  onItemClick = _ref.onItemClick,
29
29
  listWidth = _ref.listWidth,
30
30
  variant = _ref.variant,
31
- hasArrow = _ref.hasArrow;
31
+ hasArrow = _ref.hasArrow,
32
+ size = _ref.size;
32
33
  var handleToggle = function handleToggle(opened) {
33
34
  if (opened) {
34
35
  dispatchPath({
@@ -67,7 +68,8 @@ var DropdownInner = function DropdownInner(_ref) {
67
68
  ariaControls: listId,
68
69
  ariaExpanded: isCurrentListOpen,
69
70
  ariaLevel: nextLevel,
70
- ariaLabel: item.label
71
+ ariaLabel: item.label,
72
+ size: size
71
73
  }),
72
74
  onToggle: handleToggle,
73
75
  isFocusTrapped: false,
@@ -99,7 +101,8 @@ var DropdownInner = function DropdownInner(_ref) {
99
101
  onItemClick: onItemClick,
100
102
  listWidth: listWidth,
101
103
  variant: variant,
102
- hasArrow: hasArrow
104
+ hasArrow: hasArrow,
105
+ size: size
103
106
  });
104
107
  })));
105
108
  }
@@ -114,7 +117,8 @@ var DropdownInner = function DropdownInner(_ref) {
114
117
  onHover: onHover,
115
118
  onItemSelect: onItemSelect,
116
119
  onItemClick: onItemClick,
117
- variant: variant
120
+ variant: variant,
121
+ size: size
118
122
  });
119
123
  };
120
124
 
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownInner.js","sources":["../../../../../src/components/Dropdown/ui/DropdownInner/DropdownInner.tsx"],"sourcesContent":["import React from 'react';\nimport type { FC } from 'react';\n\nimport { DropdownItem } from '..';\nimport { Ul, StyledPopover } from '../../Dropdown.styles';\n\nimport { DropdownInnerProps } from './DropdownInner.type';\n\nconst DropdownInner: FC<DropdownInnerProps> = ({\n item,\n currentLevel,\n focusedPath,\n path,\n dispatchPath,\n index,\n trigger,\n itemRole,\n listHeight,\n listOverflow,\n handleGlobalToggle,\n closeOnSelect,\n onHover,\n onItemSelect,\n onItemClick,\n listWidth,\n variant,\n hasArrow,\n}) => {\n const handleToggle = (opened: boolean): void => {\n if (opened) {\n dispatchPath({ type: 'changed_on_level', value: item.value.toString(), level: currentLevel + 1 });\n } else {\n dispatchPath({ type: 'cut_by_level', level: currentLevel + 1 });\n }\n };\n\n const isCurrentListOpen = path[currentLevel + 1] === item.value.toString();\n\n const listId = `tree_level_${currentLevel + 2}`;\n const nextLevel = currentLevel + 1;\n\n if (item?.items) {\n return (\n <StyledPopover\n isOpen={isCurrentListOpen}\n usePortal={false}\n placement=\"right-start\"\n trigger={trigger}\n target={\n <DropdownItem\n item={item}\n index={index}\n path={path}\n focusedPath={focusedPath}\n currentLevel={currentLevel}\n itemRole={itemRole}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n variant={variant}\n hasArrow={hasArrow}\n ariaControls={listId}\n ariaExpanded={isCurrentListOpen}\n ariaLevel={nextLevel}\n ariaLabel={item.label}\n />\n }\n onToggle={handleToggle}\n isFocusTrapped={false}\n preventOverflow={false}\n >\n <Ul\n listHeight={listHeight}\n listOverflow={listOverflow}\n role=\"group\"\n id={listId}\n listWidth={listWidth}\n isInnerUl\n >\n {item.items.map((innerItem, innerIndex) => (\n <DropdownInner\n key={`${innerIndex}/${currentLevel}`}\n item={innerItem}\n currentLevel={nextLevel}\n focusedPath={focusedPath}\n path={path}\n dispatchPath={dispatchPath}\n index={innerIndex}\n trigger={trigger}\n itemRole={itemRole}\n listHeight={listHeight}\n listOverflow={listOverflow}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n listWidth={listWidth}\n variant={variant}\n hasArrow={hasArrow}\n />\n ))}\n </Ul>\n </StyledPopover>\n );\n }\n\n return (\n <DropdownItem\n item={item}\n index={index}\n focusedPath={focusedPath}\n currentLevel={currentLevel}\n itemRole={itemRole}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n variant={variant}\n />\n );\n};\n\nexport { DropdownInner };\n"],"names":["DropdownInner","_ref","item","currentLevel","focusedPath","path","dispatchPath","index","trigger","itemRole","listHeight","listOverflow","handleGlobalToggle","closeOnSelect","onHover","onItemSelect","onItemClick","listWidth","variant","hasArrow","handleToggle","opened","type","value","toString","level","isCurrentListOpen","listId","concat","nextLevel","items","React","createElement","StyledPopover","isOpen","usePortal","placement","target","DropdownItem","ariaControls","ariaExpanded","ariaLevel","ariaLabel","label","onToggle","isFocusTrapped","preventOverflow","Ul","role","id","isInnerUl","map","innerItem","innerIndex","key"],"mappings":";;;;;;;;;;;;AAQA,IAAMA,aAAqC,GAAG,SAAxCA,aAAqCA,CAAAC,IAAA,EAmBrC;AAAA,EAAA,IAlBFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IACZC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IACJC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,KAAK,GAAAN,IAAA,CAALM,KAAK;IACLC,OAAO,GAAAP,IAAA,CAAPO,OAAO;IACPC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,UAAU,GAAAT,IAAA,CAAVS,UAAU;IACVC,YAAY,GAAAV,IA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;AAEV;;;;"}
1
+ {"version":3,"file":"DropdownInner.js","sources":["../../../../../src/components/Dropdown/ui/DropdownInner/DropdownInner.tsx"],"sourcesContent":["import React from 'react';\nimport type { FC } from 'react';\n\nimport { DropdownItem } from '..';\nimport { Ul, StyledPopover } from '../../Dropdown.styles';\n\nimport { DropdownInnerProps } from './DropdownInner.type';\n\nconst DropdownInner: FC<DropdownInnerProps> = ({\n item,\n currentLevel,\n focusedPath,\n path,\n dispatchPath,\n index,\n trigger,\n itemRole,\n listHeight,\n listOverflow,\n handleGlobalToggle,\n closeOnSelect,\n onHover,\n onItemSelect,\n onItemClick,\n listWidth,\n variant,\n hasArrow,\n size,\n}) => {\n const handleToggle = (opened: boolean): void => {\n if (opened) {\n dispatchPath({ type: 'changed_on_level', value: item.value.toString(), level: currentLevel + 1 });\n } else {\n dispatchPath({ type: 'cut_by_level', level: currentLevel + 1 });\n }\n };\n\n const isCurrentListOpen = path[currentLevel + 1] === item.value.toString();\n\n const listId = `tree_level_${currentLevel + 2}`;\n const nextLevel = currentLevel + 1;\n\n if (item?.items) {\n return (\n <StyledPopover\n isOpen={isCurrentListOpen}\n usePortal={false}\n placement=\"right-start\"\n trigger={trigger}\n target={\n <DropdownItem\n item={item}\n index={index}\n path={path}\n focusedPath={focusedPath}\n currentLevel={currentLevel}\n itemRole={itemRole}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n variant={variant}\n hasArrow={hasArrow}\n ariaControls={listId}\n ariaExpanded={isCurrentListOpen}\n ariaLevel={nextLevel}\n ariaLabel={item.label}\n size={size}\n />\n }\n onToggle={handleToggle}\n isFocusTrapped={false}\n preventOverflow={false}\n >\n <Ul\n listHeight={listHeight}\n listOverflow={listOverflow}\n role=\"group\"\n id={listId}\n listWidth={listWidth}\n isInnerUl\n >\n {item.items.map((innerItem, innerIndex) => (\n <DropdownInner\n key={`${innerIndex}/${currentLevel}`}\n item={innerItem}\n currentLevel={nextLevel}\n focusedPath={focusedPath}\n path={path}\n dispatchPath={dispatchPath}\n index={innerIndex}\n trigger={trigger}\n itemRole={itemRole}\n listHeight={listHeight}\n listOverflow={listOverflow}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n listWidth={listWidth}\n variant={variant}\n hasArrow={hasArrow}\n size={size}\n />\n ))}\n </Ul>\n </StyledPopover>\n );\n }\n\n return (\n <DropdownItem\n item={item}\n index={index}\n focusedPath={focusedPath}\n currentLevel={currentLevel}\n itemRole={itemRole}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n variant={variant}\n size={size}\n />\n );\n};\n\nexport { DropdownInner };\n"],"names":["DropdownInner","_ref","item","currentLevel","focusedPath","path","dispatchPath","index","trigger","itemRole","listHeight","listOverflow","handleGlobalToggle","closeOnSelect","onHover","onItemSelect","onItemClick","listWidth","variant","hasArrow","size","handleToggle","opened","type","value","toString","level","isCurrentListOpen","listId","concat","nextLevel","items","React","createElement","StyledPopover","isOpen","usePortal","placement","target","DropdownItem","ariaControls","ariaExpanded","ariaLevel","ariaLabel","label","onToggle","isFocusTrapped","preventOverflow","Ul","role","id","isInnerUl","map","innerItem","innerIndex","key"],"mappings":";;;;;;;;;;;;AAQA,IAAMA,aAAqC,GAAG,SAAxCA,aAAqCA,CAAAC,IAAA,EAoBrC;AAAA,EAAA,IAnBFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IACZC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IACJC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,KAAK,GAAAN,IAAA,CAALM,KAAK;IACLC,OAAO,GAAAP,IAAA,CAAPO,OAAO;IACPC,QAAQ,GAAAR,IAAA,CAARQ,QAA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a,EAAEA,aAAc;AAC7BC,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,YAAY,EAAEA,YAAa;AAC3BC,IAAAA,WAAW,EAAEA,WAAY;AACzBE,IAAAA,OAAO,EAAEA,OAAQ;AACjBE,IAAAA,IAAI,EAAEA,IAAAA;AAAK,GACd,CAAC,CAAA;AAEV;;;;"}
@@ -5,7 +5,6 @@ import '@linaria/react';
5
5
  import { IconDisclosureRight } from '../../../_Icon/Icons/IconDisclosureRight.js';
6
6
  import { Wrapper, StyledContentLeft, StyledText, StyledContentRight, DisclosureIconWrapper } from './DropdownItem.styles.js';
7
7
 
8
- var _DisclosureIconWrappe;
9
8
  var DropdownItem = function DropdownItem(_ref) {
10
9
  var item = _ref.item,
11
10
  path = _ref.path,
@@ -24,7 +23,8 @@ var DropdownItem = function DropdownItem(_ref) {
24
23
  ariaLevel = _ref.ariaLevel,
25
24
  ariaLabel = _ref.ariaLabel,
26
25
  variant = _ref.variant,
27
- hasArrow = _ref.hasArrow;
26
+ hasArrow = _ref.hasArrow,
27
+ size = _ref.size;
28
28
  var value = item.value,
29
29
  label = item.label,
30
30
  disabled = item.disabled,
@@ -32,6 +32,7 @@ var DropdownItem = function DropdownItem(_ref) {
32
32
  contentLeft = item.contentLeft,
33
33
  contentRight = item.contentRight;
34
34
  var ref = useRef(null);
35
+ var disclosureIconSize = size === 'xs' ? 'xs' : 's';
35
36
  var isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;
36
37
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
37
38
  var activeClass = value === (path === null || path === void 0 ? void 0 : path[currentLevel + 1]) ? classes.dropdownItemIsActive : undefined;
@@ -77,10 +78,10 @@ var DropdownItem = function DropdownItem(_ref) {
77
78
  "aria-haspopup": ariaHasPopup,
78
79
  "aria-level": ariaLevel,
79
80
  "aria-label": ariaLabel
80
- }, 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, {
81
- size: "xs",
81
+ }, 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, {
82
+ size: disclosureIconSize,
82
83
  color: "inherit"
83
- })))));
84
+ })));
84
85
  };
85
86
 
86
87
  export { DropdownItem };
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, FC } from 'react';\n\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { IconDisclosureRight } from '../../../_Icon';\n\nimport {\n StyledContentLeft,\n StyledContentRight,\n StyledText,\n Wrapper,\n DisclosureIconWrapper,\n} from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\nexport const DropdownItem: FC<DropdownItemProps> = ({\n item,\n path,\n focusedPath,\n currentLevel,\n index,\n itemRole,\n closeOnSelect,\n handleGlobalToggle,\n onHover,\n onItemSelect,\n onItemClick,\n ariaControls,\n ariaExpanded,\n ariaHasPopup,\n ariaLevel,\n ariaLabel,\n variant,\n hasArrow,\n}) => {\n const { value, label, disabled, isDisabled, contentLeft, contentRight } = item;\n\n const ref = useRef<HTMLLIElement | null>(null);\n\n const isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;\n const focusedClass =\n currentLevel === focusedPath.length - 1 && index === focusedPath?.[currentLevel]\n ? classes.dropdownItemIsFocused\n : undefined;\n const activeClass = value === path?.[currentLevel + 1] ? classes.dropdownItemIsActive : undefined;\n\n useEffect(() => {\n if (focusedClass && ref?.current) {\n ref.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n }\n }, [focusedClass]);\n\n const handleClick = (event: React.MouseEvent<HTMLLIElement>): void => {\n if (disabled || isDisabled) {\n return;\n }\n\n if (onItemSelect) {\n onItemSelect(item, event);\n }\n\n if (onItemClick) {\n onItemClick(item, event);\n }\n\n if (handleGlobalToggle && closeOnSelect) {\n handleGlobalToggle(false, event);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <Wrapper\n className={cx(isDisabledClassName, focusedClass, activeClass)}\n id={value.toString()}\n role={itemRole}\n ref={ref}\n aria-disabled={disabled || isDisabled}\n onClick={handleClick}\n onMouseEnter={handleHover}\n variant={variant}\n aria-controls={ariaControls}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-level={ariaLevel}\n aria-label={ariaLabel}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledText>{label}</StyledText>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n\n {item.items && hasArrow && (\n <DisclosureIconWrapper>\n <IconDisclosureRight size=\"xs\" color=\"inherit\" />\n </DisclosureIconWrapper>\n )}\n </Wrapper>\n );\n};\n"],"names":["DropdownItem","_ref","item","path","focusedPath","currentLevel","index","itemRole","closeOnSelect","handleGlobalToggle","onHover","onItemSelect","onItemClick","ariaControls","ariaExpanded","ariaHasPopup","ariaLevel","ariaLabel","variant","hasArrow","value","label","disabled","isDisabled","contentLeft","contentRight","ref","useRef","isDisabledClassName","classes","dropdownItemIsDisabled","undefined","focusedClass","length","dropdownItemIsFocused","activeClass","dropdownItemIsActive","useEffect","current","scrollIntoView","behavior","block","inline","handleClick","event","handleHover","React","createElement","Wrapper","className","cx","id","toString","role","onClick","onMouseEnter","StyledContentLeft","StyledText","StyledContentRight","items","_DisclosureIconWrappe","DisclosureIconWrapper","IconDisclosureRight","size","color"],"mappings":";;;;;;;;IAeaA,YAAmC,GAAG,SAAtCA,YAAmCA,CAAAC,IAAA,EAmB1C;AAAA,EAAA,IAlBFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IACZC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;IACRC,aAAa,GAAAP,IAAA,CAAbO,aAAa;IACbC,kBAAkB,GAAAR,IAAA,CAAlBQ,kBAAkB;IAClBC,OAAO,GAAAT,IAAA,CAAPS,OAAO;IACPC,YAAY,GAAAV,IAAA,CAAZU,YAAY;IACZC,WAAW,GAAAX,IAAA,CAAXW,WAAW;IACXC,YAAY,GAAAZ,IAAA,CAAZY,YAAY;IACZC,YAAY,GAAAb,IAAA,CAAZa,YAAY;IACZC,YAAY,GAAAd,IAAA,CAAZc,YAAY;IACZC,SAAS,GAAAf,IAAA,CAATe,SAAS;IACTC,SAAS,GAAAhB,IAAA,CAATgB,SAAS;IACTC,OAAO,GAAAjB,IAAA,CAAPiB,OAAO;IACPC,QAAQ,GAAAlB,IAAA,CAARkB,QAAQ,CAAA;AAER,EAAA,IAAQC,KAAK,GAA6DlB,IAAI,CAAtEkB,KAAK;IAAEC,KAAK,GAAsDnB,IAAI,CAA/DmB,KAAK;IAAEC,QAAQ,GAA4CpB,IAAI,CAAxDoB,QAAQ;IAAEC,UAAU,GAAgCrB,IAAI,CAA9CqB,UAAU;IAAEC,WAAW,GAAmBtB,IAAI,CAAlCsB,WAAW;IAAEC,YAAY,GAAKvB,IAAI,CAArBuB,YAAY,CAAA;AAErE,EAAA,IAAMC,GAAG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IAAIxC,QAAQ,KAAAyC,qBAAA,KAAAA,qBAAA,gBACnBd,KAAA,CAAAC,aAAA,CAACc,qBAAqB,qBAClBf,KAAA,CAAAC,aAAA,CAACe,mBAAmB,EAAA;AAACC,IAAAA,IAAI,EAAC,IAAI;AAACC,IAAAA,KAAK,EAAC,SAAA;GAAW,CAC7B,CAAC,CAAA,CAEvB,CAAC,CAAA;AAElB;;;;"}
1
+ {"version":3,"file":"DropdownItem.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, FC } from 'react';\n\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { IconDisclosureRight } from '../../../_Icon';\n\nimport {\n StyledContentLeft,\n StyledContentRight,\n StyledText,\n Wrapper,\n DisclosureIconWrapper,\n} from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\nexport const DropdownItem: FC<DropdownItemProps> = ({\n item,\n path,\n focusedPath,\n currentLevel,\n index,\n itemRole,\n closeOnSelect,\n handleGlobalToggle,\n onHover,\n onItemSelect,\n onItemClick,\n ariaControls,\n ariaExpanded,\n ariaHasPopup,\n ariaLevel,\n ariaLabel,\n variant,\n hasArrow,\n size,\n}) => {\n const { value, label, disabled, isDisabled, contentLeft, contentRight } = item;\n\n const ref = useRef<HTMLLIElement | null>(null);\n\n const disclosureIconSize = size === 'xs' ? 'xs' : 's';\n const isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;\n const focusedClass =\n currentLevel === focusedPath.length - 1 && index === focusedPath?.[currentLevel]\n ? classes.dropdownItemIsFocused\n : undefined;\n const activeClass = value === path?.[currentLevel + 1] ? classes.dropdownItemIsActive : undefined;\n\n useEffect(() => {\n if (focusedClass && ref?.current) {\n ref.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n }\n }, [focusedClass]);\n\n const handleClick = (event: React.MouseEvent<HTMLLIElement>): void => {\n if (disabled || isDisabled) {\n return;\n }\n\n if (onItemSelect) {\n onItemSelect(item, event);\n }\n\n if (onItemClick) {\n onItemClick(item, event);\n }\n\n if (handleGlobalToggle && closeOnSelect) {\n handleGlobalToggle(false, event);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <Wrapper\n className={cx(isDisabledClassName, focusedClass, activeClass)}\n id={value.toString()}\n role={itemRole}\n ref={ref}\n aria-disabled={disabled || isDisabled}\n onClick={handleClick}\n onMouseEnter={handleHover}\n variant={variant}\n aria-controls={ariaControls}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-level={ariaLevel}\n aria-label={ariaLabel}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledText>{label}</StyledText>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n\n {item.items && hasArrow && (\n <DisclosureIconWrapper>\n <IconDisclosureRight size={disclosureIconSize} color=\"inherit\" />\n </DisclosureIconWrapper>\n )}\n </Wrapper>\n );\n};\n"],"names":["DropdownItem","_ref","item","path","focusedPath","currentLevel","index","itemRole","closeOnSelect","handleGlobalToggle","onHover","onItemSelect","onItemClick","ariaControls","ariaExpanded","ariaHasPopup","ariaLevel","ariaLabel","variant","hasArrow","size","value","label","disabled","isDisabled","contentLeft","contentRight","ref","useRef","disclosureIconSize","isDisabledClassName","classes","dropdownItemIsDisabled","undefined","focusedClass","length","dropdownItemIsFocused","activeClass","dropdownItemIsActive","useEffect","current","scrollIntoView","behavior","block","inline","handleClick","event","handleHover","React","createElement","Wrapper","className","cx","id","toString","role","onClick","onMouseEnter","StyledContentLeft","StyledText","StyledContentRight","items","DisclosureIconWrapper","IconDisclosureRight","color"],"mappings":";;;;;;;IAeaA,YAAmC,GAAG,SAAtCA,YAAmCA,CAAAC,IAAA,EAoB1C;AAAA,EAAA,IAnBFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,IAAI,GAAAF,IA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