@salutejs/plasma-new-hope 0.94.0-canary.1274.9714678450.0 → 0.94.0-dev.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_107vqka.css +4 -0
  23. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  24. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  25. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  26. package/cjs/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
  27. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
  28. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +31 -17
  29. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  30. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +27 -12
  31. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  32. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +8 -0
  33. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  34. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  35. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  36. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  37. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  38. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7jeg2n.css +4 -0
  39. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  40. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  41. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  42. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  44. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_4z2ki7.css +4 -0
  45. package/cjs/components/Calendar/utils/index.js.map +1 -1
  46. package/cjs/components/Combobox/Combobox.js +2 -2
  47. package/cjs/components/Combobox/Combobox.js.map +1 -1
  48. package/cjs/components/DatePicker/DatePicker.tokens.js +189 -0
  49. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -0
  50. package/cjs/components/DatePicker/DatePickerBase.styles.js +30 -0
  51. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -0
  52. package/cjs/components/DatePicker/DatePickerBase.styles_1thp2xv.css +1 -0
  53. package/cjs/components/DatePicker/RangeDate/RangeDate.css +152 -0
  54. package/cjs/components/DatePicker/RangeDate/RangeDate.js +285 -0
  55. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -0
  56. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +51 -0
  57. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -0
  58. package/cjs/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +5 -0
  59. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +144 -0
  60. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +83 -0
  61. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -0
  62. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +42 -0
  63. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -0
  64. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +2 -0
  65. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +9 -0
  66. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
  67. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
  68. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +9 -0
  69. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
  70. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +1 -0
  71. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +9 -0
  72. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
  73. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +1 -0
  74. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js +9 -0
  75. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
  76. package/cjs/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +1 -0
  77. package/cjs/components/DatePicker/SingleDate/SingleDate.css +134 -0
  78. package/cjs/components/DatePicker/SingleDate/SingleDate.js +183 -0
  79. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -0
  80. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +51 -0
  81. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -0
  82. package/cjs/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +5 -0
  83. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
  84. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
  85. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
  86. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +9 -0
  87. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
  88. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +1 -0
  89. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +9 -0
  90. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
  91. package/cjs/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +1 -0
  92. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +9 -0
  93. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
  94. package/cjs/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +1 -0
  95. package/cjs/components/DatePicker/hooks/useDatePicker.js +79 -0
  96. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -0
  97. package/cjs/components/DatePicker/utils/dateHelper.js +84 -0
  98. package/cjs/components/DatePicker/utils/dateHelper.js.map +1 -0
  99. package/cjs/components/Dropdown/Dropdown.js +4 -2
  100. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  101. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +8 -4
  102. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  103. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +6 -5
  104. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  105. package/cjs/components/Dropdown/utils/index.js +0 -17
  106. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  107. package/cjs/components/Range/Range.css +6 -6
  108. package/cjs/components/Range/Range.js +17 -2
  109. package/cjs/components/Range/Range.js.map +1 -1
  110. package/cjs/components/Range/Range.styles.js +1 -1
  111. package/cjs/components/Range/Range.styles.js.map +1 -1
  112. package/cjs/components/Range/Range.styles_9rort8.css +8 -0
  113. package/cjs/components/Select/Select.js +2 -2
  114. package/cjs/components/Select/Select.js.map +1 -1
  115. package/cjs/components/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_107vqka.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_7jeg2n.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_4z2ki7.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 +5 -4
  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,183 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
+ var React = require('react');
7
+ var index = require('../../../utils/index.js');
8
+ var dateHelper = require('../utils/dateHelper.js');
9
+ var useDatePicker = require('../hooks/useDatePicker.js');
10
+ var DatePicker_tokens = require('../DatePicker.tokens.js');
11
+ var DatePickerBase_styles = require('../DatePickerBase.styles.js');
12
+ var base$1 = require('./variations/_size/base.js');
13
+ var base = require('./variations/_view/base.js');
14
+ var base$2 = require('./variations/_disabled/base.js');
15
+ var base$3 = require('./variations/_readonly/base.js');
16
+ var SingleDate_styles = require('./SingleDate.styles.js');
17
+ var getPopoverPlacement = require('../../../utils/getPopoverPlacement.js');
18
+
19
+ var _excluded = ["className", "isOpen", "label", "placeholder", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "view", "size", "readOnly", "disabled", "defaultDate", "valueError", "valueSuccess", "format", "maskWithFormat", "min", "max", "includeEdgeDates", "eventList", "disabledList", "type", "placement", "closeOnOverlayClick", "offset", "onChangeValue", "onCommitDate", "onToggle", "onFocus", "onBlur"];
20
+ var datePickerRoot = function datePickerRoot(Root) {
21
+ return /*#__PURE__*/React.forwardRef(function (_ref, ref) {
22
+ var className = _ref.className,
23
+ _ref$isOpen = _ref.isOpen,
24
+ isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
25
+ label = _ref.label,
26
+ placeholder = _ref.placeholder,
27
+ leftHelper = _ref.leftHelper,
28
+ contentLeft = _ref.contentLeft,
29
+ contentRight = _ref.contentRight,
30
+ textBefore = _ref.textBefore,
31
+ textAfter = _ref.textAfter,
32
+ view = _ref.view,
33
+ size = _ref.size,
34
+ _ref$readOnly = _ref.readOnly,
35
+ readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
36
+ _ref$disabled = _ref.disabled,
37
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
38
+ _ref$defaultDate = _ref.defaultDate,
39
+ defaultDate = _ref$defaultDate === void 0 ? '' : _ref$defaultDate,
40
+ valueError = _ref.valueError,
41
+ valueSuccess = _ref.valueSuccess,
42
+ _ref$format = _ref.format,
43
+ format = _ref$format === void 0 ? 'DD.MM.YYYY' : _ref$format,
44
+ maskWithFormat = _ref.maskWithFormat,
45
+ min = _ref.min,
46
+ max = _ref.max,
47
+ _ref$includeEdgeDates = _ref.includeEdgeDates,
48
+ includeEdgeDates = _ref$includeEdgeDates === void 0 ? false : _ref$includeEdgeDates,
49
+ eventList = _ref.eventList,
50
+ disabledList = _ref.disabledList,
51
+ _ref$type = _ref.type,
52
+ type = _ref$type === void 0 ? 'Days' : _ref$type,
53
+ _ref$placement = _ref.placement,
54
+ placement = _ref$placement === void 0 ? ['top', 'bottom'] : _ref$placement,
55
+ _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
56
+ closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
57
+ offset = _ref.offset,
58
+ onChangeValue = _ref.onChangeValue,
59
+ onCommitDate = _ref.onCommitDate,
60
+ onToggle = _ref.onToggle,
61
+ onFocus = _ref.onFocus,
62
+ onBlur = _ref.onBlur,
63
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
64
+ var inputRef = React.useRef(null);
65
+ var _useState = React.useState(isOpen),
66
+ _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
67
+ isInnerOpen = _useState2[0],
68
+ setIsInnerOpen = _useState2[1];
69
+ var _useState3 = React.useState(dateHelper.formatCalendarValue(defaultDate, format)),
70
+ _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
71
+ calendarValue = _useState4[0],
72
+ setCalendarValue = _useState4[1];
73
+ var _useState5 = React.useState(dateHelper.formatInputValue(defaultDate, format)),
74
+ _useState6 = _rollupPluginBabelHelpers.slicedToArray(_useState5, 2),
75
+ inputValue = _useState6[0],
76
+ setInputValue = _useState6[1];
77
+ var dateFormatDelimiter = React.useCallback(function () {
78
+ return dateHelper.getDateFormatDelimiter(format);
79
+ }, [format]);
80
+ var _useDatePicker = useDatePicker.useDatePicker({
81
+ currentValue: inputValue,
82
+ setInputValue: setInputValue,
83
+ setCalendarValue: setCalendarValue,
84
+ setIsInnerOpen: setIsInnerOpen,
85
+ dateFormatDelimiter: dateFormatDelimiter,
86
+ format: format,
87
+ disabled: disabled,
88
+ readOnly: readOnly,
89
+ maskWithFormat: maskWithFormat,
90
+ valueError: valueError,
91
+ valueSuccess: valueSuccess,
92
+ inputRef: inputRef,
93
+ onToggle: onToggle,
94
+ onChangeValue: onChangeValue,
95
+ onCommitDate: onCommitDate
96
+ }),
97
+ datePickerErrorClass = _useDatePicker.datePickerErrorClass,
98
+ datePickerSuccessClass = _useDatePicker.datePickerSuccessClass,
99
+ handleToggle = _useDatePicker.handleToggle,
100
+ handleChangeValue = _useDatePicker.handleChangeValue,
101
+ handleCommitDate = _useDatePicker.handleCommitDate;
102
+ var DatePickerInput = /*#__PURE__*/React.createElement(SingleDate_styles.StyledInput, {
103
+ ref: inputRef,
104
+ className: index.cx(datePickerErrorClass, datePickerSuccessClass),
105
+ value: inputValue,
106
+ readOnly: readOnly,
107
+ disabled: disabled,
108
+ placeholder: placeholder,
109
+ contentLeft: contentLeft,
110
+ contentRight: contentRight,
111
+ textBefore: textBefore,
112
+ textAfter: textAfter,
113
+ onChange: handleChangeValue,
114
+ onSearch: function onSearch(date) {
115
+ return handleCommitDate(date, true, false);
116
+ },
117
+ onFocus: onFocus,
118
+ onBlur: onBlur
119
+ });
120
+ return /*#__PURE__*/React.createElement(Root, _rollupPluginBabelHelpers.extends({
121
+ view: view,
122
+ size: size,
123
+ className: index.cx(DatePicker_tokens.classes.datePickerRoot, className),
124
+ disabled: disabled,
125
+ readOnly: !disabled && readOnly,
126
+ ref: ref
127
+ }, rest), label && /*#__PURE__*/React.createElement(SingleDate_styles.StyledLabel, null, label), /*#__PURE__*/React.createElement(SingleDate_styles.StyledPopover, {
128
+ isOpen: isOpen || isInnerOpen,
129
+ usePortal: false,
130
+ onToggle: handleToggle,
131
+ offset: offset,
132
+ placement: getPopoverPlacement.getPlacements(placement),
133
+ trigger: "click",
134
+ closeOnOverlayClick: closeOnOverlayClick,
135
+ isFocusTrapped: false,
136
+ target: DatePickerInput,
137
+ preventOverflow: false
138
+ }, /*#__PURE__*/React.createElement(DatePickerBase_styles.StyledCalendar, {
139
+ size: size,
140
+ value: calendarValue,
141
+ type: type,
142
+ eventList: eventList,
143
+ disabledList: disabledList,
144
+ min: min,
145
+ max: max,
146
+ includeEdgeDates: includeEdgeDates,
147
+ isRange: false,
148
+ onChangeValue: function onChangeValue(date) {
149
+ return handleCommitDate(date, false, true);
150
+ }
151
+ })), leftHelper && /*#__PURE__*/React.createElement(SingleDate_styles.LeftHelper, null, leftHelper));
152
+ });
153
+ };
154
+ var datePickerConfig = {
155
+ name: 'DatePicker',
156
+ tag: 'div',
157
+ layout: datePickerRoot,
158
+ base: SingleDate_styles.base,
159
+ variations: {
160
+ view: {
161
+ css: base.base
162
+ },
163
+ size: {
164
+ css: base$1.base
165
+ },
166
+ disabled: {
167
+ css: base$2.base,
168
+ attrs: true
169
+ },
170
+ readOnly: {
171
+ css: base$3.base,
172
+ attrs: true
173
+ }
174
+ },
175
+ defaults: {
176
+ size: 'm',
177
+ view: 'default'
178
+ }
179
+ };
180
+
181
+ exports.datePickerConfig = datePickerConfig;
182
+ exports.datePickerRoot = datePickerRoot;
183
+ //# sourceMappingURL=SingleDate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleDate.js","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef, useState } from 'react';\n\nimport type { RootProps } from '../../../engines';\nimport { cx, getPlacements } from '../../../utils';\nimport { formatCalendarValue, formatInputValue, getDateFormatDelimiter } from '../utils/dateHelper';\nimport { useDatePicker } from '../hooks/useDatePicker';\nimport { classes } from '../DatePicker.tokens';\nimport { StyledCalendar } from '../DatePickerBase.styles';\n\nimport type { DatePickerProps } from './SingleDate.types';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as readOnlyCSS } from './variations/_readonly/base';\nimport { LeftHelper, StyledInput, StyledLabel, StyledPopover, base } from './SingleDate.styles';\n\nexport const datePickerRoot = (\n Root: RootProps<HTMLDivElement, Omit<DatePickerProps, 'isOpen' | 'defaultValue' | 'onChangeValue'>>,\n) =>\n forwardRef<HTMLInputElement, DatePickerProps>(\n (\n {\n className,\n isOpen = false,\n\n label,\n placeholder,\n leftHelper,\n contentLeft,\n contentRight,\n textBefore,\n textAfter,\n view,\n size,\n readOnly = false,\n disabled = false,\n\n defaultDate = '',\n valueError,\n valueSuccess,\n format = 'DD.MM.YYYY',\n maskWithFormat,\n min,\n max,\n includeEdgeDates = false,\n eventList,\n disabledList,\n type = 'Days',\n\n placement = ['top', 'bottom'],\n closeOnOverlayClick = true,\n offset,\n\n onChangeValue,\n onCommitDate,\n onToggle,\n onFocus,\n onBlur,\n\n ...rest\n },\n ref,\n ) => {\n const inputRef = useRef<HTMLInputElement | null>(null);\n const [isInnerOpen, setIsInnerOpen] = useState(isOpen);\n\n const [calendarValue, setCalendarValue] = useState(formatCalendarValue(defaultDate, format));\n const [inputValue, setInputValue] = useState(formatInputValue(defaultDate, format));\n\n const dateFormatDelimiter = useCallback(() => getDateFormatDelimiter(format), [format]);\n\n const {\n datePickerErrorClass,\n datePickerSuccessClass,\n handleToggle,\n handleChangeValue,\n handleCommitDate,\n } = useDatePicker({\n currentValue: inputValue,\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 });\n\n const DatePickerInput = (\n <StyledInput\n ref={inputRef}\n className={cx(datePickerErrorClass, datePickerSuccessClass)}\n value={inputValue}\n readOnly={readOnly}\n disabled={disabled}\n placeholder={placeholder}\n contentLeft={contentLeft}\n contentRight={contentRight}\n textBefore={textBefore}\n textAfter={textAfter}\n onChange={handleChangeValue}\n onSearch={(date) => handleCommitDate(date, true, false)}\n onFocus={onFocus}\n onBlur={onBlur}\n />\n );\n\n return (\n <Root\n view={view}\n size={size}\n className={cx(classes.datePickerRoot, className)}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n ref={ref}\n {...rest}\n >\n {label && <StyledLabel>{label}</StyledLabel>}\n <StyledPopover\n isOpen={isOpen || isInnerOpen}\n usePortal={false}\n onToggle={handleToggle}\n offset={offset}\n placement={getPlacements(placement)}\n trigger=\"click\"\n closeOnOverlayClick={closeOnOverlayClick}\n isFocusTrapped={false}\n target={DatePickerInput}\n preventOverflow={false}\n >\n <StyledCalendar\n size={size}\n value={calendarValue}\n type={type}\n eventList={eventList}\n disabledList={disabledList}\n min={min}\n max={max}\n includeEdgeDates={includeEdgeDates}\n isRange={false}\n onChangeValue={(date) => handleCommitDate(date, false, true)}\n />\n </StyledPopover>\n {leftHelper && <LeftHelper>{leftHelper}</LeftHelper>}\n </Root>\n );\n },\n );\n\nexport const datePickerConfig = {\n name: 'DatePicker',\n tag: 'div',\n layout: datePickerRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n readOnly: {\n css: readOnlyCSS,\n attrs: true,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["datePickerRoot","Root","forwardRef","_ref","ref","className","_ref$isOpen","isOpen","label","placeholder","leftHelper","contentLeft","contentRight","textBefore","textAfter","view","size","_ref$readOnly","readOnly","_ref$disabled","disabled","_ref$defaultDate","defaultDate","valueError","valueSuccess","_ref$format","format","maskWithFormat","min","max","_ref$includeEdgeDates","includeEdgeDates","eventList","disabledList","_ref$type","type","_ref$placement","placement","_ref$closeOnOverlayCl","closeOnOverlayClick","offset","onChangeValue","onCommitDate","onToggle","onFocus","onBlur","rest","_objectWithoutProperties","_excluded","inputRef","useRef","_useState","useState","_useState2","_slicedToArray","isInnerOpen","setIsInnerOpen","_useState3","formatCalendarValue","_useState4","calendarValue","setCalendarValue","_useState5","formatInputValue","_useState6","inputValue","setInputValue","dateFormatDelimiter","useCallback","getDateFormatDelimiter","_useDatePicker","useDatePicker","currentValue","datePickerErrorClass","datePickerSuccessClass","handleToggle","handleChangeValue","handleCommitDate","DatePickerInput","React","createElement","StyledInput","cx","value","onChange","onSearch","date","_extends","classes","StyledLabel","StyledPopover","usePortal","getPlacements","trigger","isFocusTrapped","target","preventOverflow","StyledCalendar","isRange","LeftHelper","datePickerConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","readOnlyCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;IAgBaA,cAAc,GAAG,SAAjBA,cAAcA,CACvBC,IAAmG,EAAA;AAAA,EAAA,oBAEnGC,gBAAU,CACN,UAAAC,IAAA,EAyCIC,GAAG,EACF;AAAA,IAAA,IAxCGC,SAAS,GAAAF,IAAA,CAATE,SAAS;MAAAC,WAAA,GAAAH,IAAA,CACTI,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;MAEdE,KAAK,GAAAL,IAAA,CAALK,KAAK;MACLC,WAAW,GAAAN,IAAA,CAAXM,WAAW;MACXC,UAAU,GAAAP,IAAA,CAAVO,UAAU;MACVC,WAAW,GAAAR,IAAA,CAAXQ,WAAW;MACXC,YAAY,GAAAT,IAAA,CAAZS,YAAY;MACZC,UAAU,GAAAV,IAAA,CAAVU,UAAU;MACVC,SAAS,GAAAX,IAAA,CAATW,SAAS;MACTC,IAAI,GAAAZ,IAAA,CAAJY,IAAI;MACJC,IAAI,GAAAb,IAAA,CAAJa,IAAI;MAAAC,aAAA,GAAAd,IAAA,CACJe,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,aAAA,GAAAhB,IAAA,CAChBiB,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,gBAAA,GAAAlB,IAAA,CAEhBmB,WAAW;AAAXA,MAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,gBAAA;MAChBE,UAAU,GAAApB,IAAA,CAAVoB,UAAU;MACVC,YAAY,GAAArB,IAAA,CAAZqB,YAAY;MAAAC,WAAA,GAAAtB,IAAA,CACZuB,MAAM;AAANA,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CAACS,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;AAAA,OAAA;AAAC,KAChE,CACU,CAAC,EACf5E,UAAU,iBAAIqE,KAAA,CAAAC,aAAA,CAACmB,4BAAU,EAAEzF,IAAAA,EAAAA,UAAuB,CACjD,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM0F,gBAAgB,GAAG;AAC5BC,EAAAA,IAAI,EAAE,YAAY;AAClBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEvG,cAAc;AACtBwG,EAAAA,IAAI,EAAJA,sBAAI;AACJC,EAAAA,UAAU,EAAE;AACR1F,IAAAA,IAAI,EAAE;AACF2F,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACD3F,IAAAA,IAAI,EAAE;AACF0F,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDxF,IAAAA,QAAQ,EAAE;AACNsF,MAAAA,GAAG,EAAEG,WAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACD5F,IAAAA,QAAQ,EAAE;AACNwF,MAAAA,GAAG,EAAEK,WAAW;AAChBD,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDE,EAAAA,QAAQ,EAAE;AACNhG,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
@@ -0,0 +1,51 @@
1
+ import './SingleDate.styles_18b5qkz.css';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var react = require('@linaria/react');
7
+ require('@linaria/core');
8
+ var common = require('../../../engines/common.js');
9
+ var TextField$1 = require('../../TextField/TextField.js');
10
+ var Popover$1 = require('../../Popover/Popover.js');
11
+
12
+ var mergedTextFieldConfig = /*#__PURE__*/common.mergeConfig(TextField$1.textFieldConfig);
13
+ var TextField = /*#__PURE__*/common.component(mergedTextFieldConfig);
14
+ var mergedPopoverConfig = /*#__PURE__*/common.mergeConfig(Popover$1.popoverConfig);
15
+ var Popover = /*#__PURE__*/common.component(mergedPopoverConfig);
16
+ var _exp = function _exp() {
17
+ return Popover;
18
+ };
19
+ var StyledPopover = /*#__PURE__*/react.styled(_exp())({
20
+ name: "StyledPopover",
21
+ "class": "s1golqpq",
22
+ propsAsIs: true
23
+ });
24
+
25
+ // NOTE: переопределение токенов TextField
26
+ var _exp2 = function _exp2() {
27
+ return TextField;
28
+ };
29
+ var StyledInput = /*#__PURE__*/react.styled(_exp2())({
30
+ name: "StyledInput",
31
+ "class": "s15omatb",
32
+ propsAsIs: true
33
+ });
34
+ var base = "boba7w3";
35
+ var StyledLabel = /*#__PURE__*/react.styled('label')({
36
+ name: "StyledLabel",
37
+ "class": "svfqi8",
38
+ propsAsIs: false
39
+ });
40
+ var LeftHelper = /*#__PURE__*/react.styled('div')({
41
+ name: "LeftHelper",
42
+ "class": "l5dd1qs",
43
+ propsAsIs: false
44
+ });
45
+
46
+ exports.LeftHelper = LeftHelper;
47
+ exports.StyledInput = StyledInput;
48
+ exports.StyledLabel = StyledLabel;
49
+ exports.StyledPopover = StyledPopover;
50
+ exports.base = base;
51
+ //# 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,kBAAW,CAACC,2BAAe,CAAC,CAAA;AAC1D,IAAMC,SAAS,gBAAGC,gBAAS,CAACJ,qBAAqB,CAAC,CAAA;AAElD,IAAMK,mBAAmB,gBAAGJ,kBAAW,CAACK,uBAAa,CAAC,CAAA;AACtD,IAAMC,OAAO,gBAAGH,gBAAS,CAACC,mBAAmB,CAAC,CAAA;AAAC,IAAAG,IAAA,GAX7BA,SAW6BA,IAAAA,GAAA;AAAA,EAAA,OAEXD,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAME,aAAa,gBAAGC,YAAM,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,YAAM,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,YAAM,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,YAAM,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,9 @@
1
+ import './base_1rfgfsz.css';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var base = "bl4tpwr";
7
+
8
+ exports.base = base;
9
+ //# 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,9 @@
1
+ import './base_1jucwp.css';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var base = "b160pc19";
7
+
8
+ exports.base = base;
9
+ //# 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,9 @@
1
+ import './base_lf7y25.css';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var base = "bjvjzuw";
7
+
8
+ exports.base = base;
9
+ //# 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,9 @@
1
+ import './base_15vaheb.css';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var base = "bgt8q06";
7
+
8
+ exports.base = base;
9
+ //# 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,79 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var DatePicker_tokens = require('../DatePicker.tokens.js');
6
+ var dateHelper = require('../utils/dateHelper.js');
7
+
8
+ var useDatePicker = function useDatePicker(_ref) {
9
+ var currentValue = _ref.currentValue,
10
+ setInputValue = _ref.setInputValue,
11
+ setCalendarValue = _ref.setCalendarValue,
12
+ setIsInnerOpen = _ref.setIsInnerOpen,
13
+ dateFormatDelimiter = _ref.dateFormatDelimiter,
14
+ format = _ref.format,
15
+ disabled = _ref.disabled,
16
+ readOnly = _ref.readOnly,
17
+ maskWithFormat = _ref.maskWithFormat,
18
+ valueError = _ref.valueError,
19
+ valueSuccess = _ref.valueSuccess,
20
+ inputRef = _ref.inputRef,
21
+ onToggle = _ref.onToggle,
22
+ onChangeValue = _ref.onChangeValue,
23
+ onCommitDate = _ref.onCommitDate;
24
+ var datePickerErrorClass = valueError ? DatePicker_tokens.classes.datePickerError : undefined;
25
+ var datePickerSuccessClass = valueSuccess ? DatePicker_tokens.classes.datePickerSuccess : undefined;
26
+ var handleToggle = function handleToggle(opened, event) {
27
+ if (disabled || readOnly) {
28
+ return;
29
+ }
30
+ var isCalendarOpen = event.target === (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) ? true : opened;
31
+ if (onToggle) {
32
+ return onToggle(isCalendarOpen, event);
33
+ }
34
+ setIsInnerOpen(isCalendarOpen);
35
+ };
36
+ var handleChangeValue = function handleChangeValue(event) {
37
+ if (disabled || readOnly) {
38
+ return;
39
+ }
40
+ var value = event.target.value;
41
+ var newValue = maskWithFormat ? dateHelper.getMaskedDateOnInput(value, format, dateFormatDelimiter(), currentValue) : value;
42
+ setCalendarValue(dateHelper.formatCalendarValue(newValue, format));
43
+ setInputValue(dateHelper.formatInputValue(newValue, format));
44
+ onChangeValue === null || onChangeValue === void 0 || onChangeValue(event, newValue);
45
+ };
46
+ var handleCommitDate = function handleCommitDate(date, applyFormat, isCalendarValue) {
47
+ if (disabled || readOnly) {
48
+ return;
49
+ }
50
+ if (!date) {
51
+ setCalendarValue(undefined);
52
+ setInputValue('');
53
+ return onCommitDate === null || onCommitDate === void 0 ? void 0 : onCommitDate('', false, true);
54
+ }
55
+ if (isCalendarValue) {
56
+ setCalendarValue(dateHelper.formatCalendarValue(date, format));
57
+ setInputValue(dateHelper.formatInputValue(date, format));
58
+ return onCommitDate === null || onCommitDate === void 0 ? void 0 : onCommitDate(date, false, true);
59
+ }
60
+ var formatString = applyFormat ? format : undefined;
61
+ var _getDateFromFormat = dateHelper.getDateFromFormat(date, formatString),
62
+ newDate = _getDateFromFormat.value,
63
+ isError = _getDateFromFormat.isError,
64
+ isSuccess = _getDateFromFormat.isSuccess;
65
+ setCalendarValue(dateHelper.formatCalendarValue(newDate, format));
66
+ setInputValue(dateHelper.formatInputValue(newDate, format));
67
+ onCommitDate === null || onCommitDate === void 0 || onCommitDate(newDate, isError, isSuccess);
68
+ };
69
+ return {
70
+ datePickerErrorClass: datePickerErrorClass,
71
+ datePickerSuccessClass: datePickerSuccessClass,
72
+ handleToggle: handleToggle,
73
+ handleChangeValue: handleChangeValue,
74
+ handleCommitDate: handleCommitDate
75
+ };
76
+ };
77
+
78
+ exports.useDatePicker = useDatePicker;
79
+ //# 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,YAAY;IACZC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB;IAChBC,cAAc,GAAAJ,IAAA,CAAdI,cAAc;IACdC,mBAAmB,GAAAL,IAAA,CAAnBK,mBAAmB;IACnBC,MAAM,GAAAN,IAAA,CAANM,MAAM;IACNC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;IACRC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,cAAc,GAAAT,IAAA,CAAdS,cAAc;IACdC,UAAU,GAAAV,IAAA,CAAVU,UAAU;IACVC,YAAY,GAAAX,IAAA,CAAZW,YAAY;IACZC,QAAQ,GAAAZ,IAAA,CAARY,QAAQ;IACRC,QAAQ,GAAAb,IAAA,CAARa,QAAQ;IACRC,aAAa,GAAAd,IAAA,CAAbc,aAAa;IACbC,YAAY,GAAAf,IAAA,CAAZe,YAAY,CAA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AO,EAAEnC,MAAM,CAAC,CAAC,CAAA;AACtDJ,IAAAA,aAAa,CAAC+B,2BAAgB,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,84 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var datejs = require('../../../utils/datejs.js');
6
+
7
+ var formatInputValue = function formatInputValue(value, format) {
8
+ if (!value) {
9
+ return '';
10
+ }
11
+ if (format && datejs.customDayjs(value, format, true).isValid()) {
12
+ return datejs.customDayjs(value, format).format(format);
13
+ }
14
+ if (format && String(value).length >= 10 && String(new Date(value)) !== 'Invalid Date') {
15
+ return datejs.customDayjs(value).format(format);
16
+ }
17
+ return String(value);
18
+ };
19
+ var formatCalendarValue = function formatCalendarValue(value, format) {
20
+ if (!value) {
21
+ return undefined;
22
+ }
23
+ if (format && datejs.customDayjs(value, format, true).isValid()) {
24
+ return datejs.customDayjs(value, format, true).toDate();
25
+ }
26
+ if (String(new Date(value)) !== 'Invalid Date') {
27
+ return datejs.customDayjs(value).toDate();
28
+ }
29
+ return undefined;
30
+ };
31
+ var getDateFromFormat = function getDateFromFormat(value, format) {
32
+ if (format && datejs.customDayjs(value, format, true).isValid()) {
33
+ return {
34
+ value: datejs.customDayjs(value, format, true).toDate(),
35
+ isError: false,
36
+ isSuccess: true
37
+ };
38
+ }
39
+ if (!format && String(new Date(value)) !== 'Invalid Date') {
40
+ return {
41
+ value: datejs.customDayjs(value).toDate(),
42
+ isError: false,
43
+ isSuccess: true
44
+ };
45
+ }
46
+ return {
47
+ value: value,
48
+ isError: true,
49
+ isSuccess: false
50
+ };
51
+ };
52
+ var getDateFormatDelimiter = function getDateFormatDelimiter(format) {
53
+ var _format$match;
54
+ if (!format) {
55
+ return '';
56
+ }
57
+ var delimiter = (_format$match = format.match(/[^a-zA-Z0-9]/)) === null || _format$match === void 0 ? void 0 : _format$match[0];
58
+ return delimiter !== null && delimiter !== void 0 ? delimiter : '';
59
+ };
60
+ var getMaskedDateOnInput = function getMaskedDateOnInput(value, format, delimiter, prevValue) {
61
+ if (!value) {
62
+ return '';
63
+ }
64
+ if (!format || !delimiter) {
65
+ return value;
66
+ }
67
+ if (value.length >= format.length) {
68
+ return value.slice(0, format.length);
69
+ }
70
+ if (prevValue && value.length < prevValue.length && (prevValue === null || prevValue === void 0 ? void 0 : prevValue[value.length]) === delimiter) {
71
+ return value.slice(0, -1);
72
+ }
73
+ if ((format === null || format === void 0 ? void 0 : format[value.length]) === delimiter) {
74
+ return value + delimiter;
75
+ }
76
+ return value;
77
+ };
78
+
79
+ exports.formatCalendarValue = formatCalendarValue;
80
+ exports.formatInputValue = formatInputValue;
81
+ exports.getDateFormatDelimiter = getDateFormatDelimiter;
82
+ exports.getDateFromFormat = getDateFromFormat;
83
+ exports.getMaskedDateOnInput = getMaskedDateOnInput;
84
+ //# 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,kBAAW,CAACF,KAAK,EAAEC,MAAM,EAAE,IAAI,CAAC,CAACE,OAAO,EAAE,EAAE;IACtD,OAAOD,kBAAW,CAACF,KA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AA,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;;;;;;;;"}
@@ -22,6 +22,7 @@ var base$1 = require('./variations/_size/base.js');
22
22
  var Dropdown_styles = require('./Dropdown.styles.js');
23
23
  var useKeyboardNavigation = require('./hooks/useKeyboardNavigation.js');
24
24
  var useHashMaps = require('./hooks/useHashMaps.js');
25
+ var getPopoverPlacement = require('../../utils/getPopoverPlacement.js');
25
26
 
26
27
  var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow"];
27
28
 
@@ -120,7 +121,7 @@ var dropdownRoot = function dropdownRoot(Root) {
120
121
  usePortal: false,
121
122
  onToggle: handleGlobalToggle,
122
123
  offset: offset,
123
- placement: index$1.getPlacements(placement),
124
+ placement: getPopoverPlacement.getPlacements(placement),
124
125
  trigger: trigger,
125
126
  closeOnOverlayClick: closeOnOverlayClick,
126
127
  isFocusTrapped: false,
@@ -158,7 +159,8 @@ var dropdownRoot = function dropdownRoot(Root) {
158
159
  onItemClick: onItemClick,
159
160
  listWidth: listWidth,
160
161
  variant: variant,
161
- hasArrow: hasArrow
162
+ hasArrow: hasArrow,
163
+ size: size
162
164
  });
163
165
  }))));
164
166
  });