@salutejs/plasma-new-hope 0.88.0-canary.1224.9413433725.0 → 0.88.0-canary.1224.9504044130.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (277) hide show
  1. package/cjs/components/Calendar/Calendar.tokens.js +3 -0
  2. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  3. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +21 -21
  4. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +21 -21
  5. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  6. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +3 -3
  7. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  8. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_fznpy7.css +4 -0
  9. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +4 -4
  10. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -8
  11. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -0
  12. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  13. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +3 -3
  14. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  15. package/{es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1b92i4d.css → cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css} +4 -4
  16. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  17. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  18. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  19. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +4 -0
  20. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  21. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  22. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  23. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +4 -0
  24. package/cjs/components/DatePicker/DatePicker.tokens.js +3 -0
  25. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  26. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  27. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  28. package/cjs/components/DatePicker/{DatePickerBase.styles_1u3oyx8.css → DatePickerBase.styles_1thp2xv.css} +1 -1
  29. package/cjs/components/DatePicker/RangeDate/DatePicker.css +83 -81
  30. package/cjs/components/DatePicker/RangeDate/DatePicker.js +72 -128
  31. package/cjs/components/DatePicker/RangeDate/DatePicker.js.map +1 -1
  32. package/cjs/components/DatePicker/RangeDate/DatePicker.styles.js +13 -1
  33. package/cjs/components/DatePicker/RangeDate/DatePicker.styles.js.map +1 -1
  34. package/cjs/components/DatePicker/RangeDate/{DatePicker.styles_1aihs63.css → DatePicker.styles_6cvsgx.css} +2 -0
  35. package/cjs/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.css → RangeDatePopover/RangeDatePopover.css} +31 -29
  36. package/cjs/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.js → RangeDatePopover/RangeDatePopover.js} +37 -6
  37. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -0
  38. package/cjs/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.styles.js → RangeDatePopover/RangeDatePopover.styles.js} +20 -10
  39. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -0
  40. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +2 -0
  41. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +1 -1
  42. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -1
  43. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_dhosc0.css +1 -0
  44. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  45. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -1
  46. package/cjs/components/DatePicker/RangeDate/variations/_size/base_c0144z.css +1 -0
  47. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js +1 -1
  48. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -1
  49. package/cjs/components/DatePicker/RangeDate/variations/_view/base_1vly6xz.css +1 -0
  50. package/cjs/components/DatePicker/SingleDate/DatePicker.css +24 -24
  51. package/cjs/components/DatePicker/SingleDate/DatePicker.styles.js +1 -1
  52. package/cjs/components/DatePicker/SingleDate/DatePicker.styles.js.map +1 -1
  53. package/{es/components/DatePicker/SingleDate/DatePicker.styles_1udo3ch.css → cjs/components/DatePicker/SingleDate/DatePicker.styles_1reoff2.css} +1 -1
  54. package/cjs/components/Range/Range.css +6 -12
  55. package/cjs/components/Range/Range.js +32 -64
  56. package/cjs/components/Range/Range.js.map +1 -1
  57. package/cjs/components/Range/Range.styles.js +11 -23
  58. package/cjs/components/Range/Range.styles.js.map +1 -1
  59. package/cjs/components/Range/{Range.styles_nik84l.css → Range.styles_9rort8.css} +3 -4
  60. package/cjs/components/Range/variations/_readonly/base.js +1 -1
  61. package/cjs/components/Range/variations/_readonly/base_tzdxy8.css +1 -0
  62. package/cjs/components/Range/variations/_size/base.js +1 -1
  63. package/cjs/components/Range/variations/_size/{base_gbgxzj.css → base_16xiubi.css} +1 -1
  64. package/cjs/components/Range/variations/_view/base.js +1 -1
  65. package/cjs/components/Range/variations/_view/base_5iz3nr.css +1 -0
  66. package/cjs/index.css +39 -35
  67. package/es/components/Calendar/Calendar.tokens.js +3 -0
  68. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  69. package/es/components/Calendar/CalendarBase/CalendarBase.css +21 -21
  70. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +21 -21
  71. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  72. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +3 -3
  73. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  74. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_fznpy7.css +4 -0
  75. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +4 -4
  76. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -8
  77. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -0
  78. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  79. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +3 -3
  80. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  81. package/{cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1b92i4d.css → es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css} +4 -4
  82. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  83. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  84. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  85. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +4 -0
  86. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  87. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  88. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  89. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +4 -0
  90. package/es/components/DatePicker/DatePicker.tokens.js +3 -0
  91. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  92. package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  93. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  94. package/es/components/DatePicker/{DatePickerBase.styles_1u3oyx8.css → DatePickerBase.styles_1thp2xv.css} +1 -1
  95. package/es/components/DatePicker/RangeDate/DatePicker.css +83 -81
  96. package/es/components/DatePicker/RangeDate/DatePicker.js +73 -129
  97. package/es/components/DatePicker/RangeDate/DatePicker.js.map +1 -1
  98. package/es/components/DatePicker/RangeDate/DatePicker.styles.js +12 -2
  99. package/es/components/DatePicker/RangeDate/DatePicker.styles.js.map +1 -1
  100. package/es/components/DatePicker/RangeDate/{DatePicker.styles_1aihs63.css → DatePicker.styles_6cvsgx.css} +2 -0
  101. package/es/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.css → RangeDatePopover/RangeDatePopover.css} +31 -29
  102. package/es/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.js → RangeDatePopover/RangeDatePopover.js} +36 -5
  103. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -0
  104. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +37 -0
  105. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -0
  106. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +2 -0
  107. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js +1 -1
  108. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -1
  109. package/es/components/DatePicker/RangeDate/variations/_readonly/base_dhosc0.css +1 -0
  110. package/es/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  111. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -1
  112. package/es/components/DatePicker/RangeDate/variations/_size/base_c0144z.css +1 -0
  113. package/es/components/DatePicker/RangeDate/variations/_view/base.js +1 -1
  114. package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -1
  115. package/es/components/DatePicker/RangeDate/variations/_view/base_1vly6xz.css +1 -0
  116. package/es/components/DatePicker/SingleDate/DatePicker.css +24 -24
  117. package/es/components/DatePicker/SingleDate/DatePicker.styles.js +1 -1
  118. package/es/components/DatePicker/SingleDate/DatePicker.styles.js.map +1 -1
  119. package/{cjs/components/DatePicker/SingleDate/DatePicker.styles_1udo3ch.css → es/components/DatePicker/SingleDate/DatePicker.styles_1reoff2.css} +1 -1
  120. package/es/components/Range/Range.css +6 -12
  121. package/es/components/Range/Range.js +33 -65
  122. package/es/components/Range/Range.js.map +1 -1
  123. package/es/components/Range/Range.styles.js +12 -23
  124. package/es/components/Range/Range.styles.js.map +1 -1
  125. package/es/components/Range/{Range.styles_nik84l.css → Range.styles_9rort8.css} +3 -4
  126. package/es/components/Range/variations/_readonly/base.js +1 -1
  127. package/es/components/Range/variations/_readonly/base_tzdxy8.css +1 -0
  128. package/es/components/Range/variations/_size/base.js +1 -1
  129. package/es/components/Range/variations/_size/{base_gbgxzj.css → base_16xiubi.css} +1 -1
  130. package/es/components/Range/variations/_view/base.js +1 -1
  131. package/es/components/Range/variations/_view/base_5iz3nr.css +1 -0
  132. package/es/index.css +39 -35
  133. package/package.json +2 -2
  134. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +3 -0
  135. package/styled-components/cjs/components/Calendar/mixins/selected.js +2 -7
  136. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +12 -17
  137. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -0
  138. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +4 -4
  139. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +7 -7
  140. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +8 -8
  141. package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +150 -0
  142. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +3 -0
  143. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  144. package/styled-components/cjs/components/DatePicker/RangeDate/DatePicker.js +72 -128
  145. package/styled-components/cjs/components/DatePicker/RangeDate/DatePicker.styles.js +8 -2
  146. package/styled-components/cjs/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.js → RangeDatePopover/RangeDatePopover.js} +36 -5
  147. package/styled-components/cjs/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.styles.js → RangeDatePopover/RangeDatePopover.styles.js} +12 -6
  148. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +2 -1
  149. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +2 -1
  150. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/base.js +3 -1
  151. package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.styles.js +1 -1
  152. package/styled-components/cjs/components/Range/Range.js +32 -63
  153. package/styled-components/cjs/components/Range/Range.styles.js +8 -13
  154. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +1 -1
  155. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +1 -1
  156. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +5 -5
  157. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +15 -66
  158. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  159. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +1 -1
  160. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -2
  161. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +6 -6
  162. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +15 -66
  163. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +4 -4
  164. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +1 -1
  165. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -2
  166. package/styled-components/es/components/Calendar/Calendar.tokens.js +3 -0
  167. package/styled-components/es/components/Calendar/mixins/selected.js +2 -7
  168. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +12 -17
  169. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -0
  170. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +4 -4
  171. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +8 -8
  172. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +9 -9
  173. package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +150 -0
  174. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +3 -0
  175. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  176. package/styled-components/es/components/DatePicker/RangeDate/DatePicker.js +73 -129
  177. package/styled-components/es/components/DatePicker/RangeDate/DatePicker.styles.js +7 -1
  178. package/styled-components/es/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.js → RangeDatePopover/RangeDatePopover.js} +34 -3
  179. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +19 -0
  180. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +2 -1
  181. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +2 -1
  182. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/base.js +3 -1
  183. package/styled-components/es/components/DatePicker/SingleDate/DatePicker.styles.js +2 -2
  184. package/styled-components/es/components/Range/Range.js +34 -65
  185. package/styled-components/es/components/Range/Range.styles.js +8 -13
  186. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +1 -1
  187. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +1 -1
  188. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +5 -5
  189. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +15 -66
  190. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  191. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +1 -1
  192. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -2
  193. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +6 -6
  194. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +15 -66
  195. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +4 -4
  196. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +1 -1
  197. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -2
  198. package/types/components/Calendar/Calendar.tokens.d.ts +3 -0
  199. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  200. package/types/components/Calendar/mixins/selected.d.ts +0 -20
  201. package/types/components/Calendar/mixins/selected.d.ts.map +1 -1
  202. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
  203. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  204. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  205. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  206. package/types/components/DatePicker/DatePicker.tokens.d.ts +3 -0
  207. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  208. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
  209. package/types/components/DatePicker/RangeDate/DatePicker.d.ts +598 -2
  210. package/types/components/DatePicker/RangeDate/DatePicker.d.ts.map +1 -1
  211. package/types/components/DatePicker/RangeDate/DatePicker.styles.d.ts +5 -30
  212. package/types/components/DatePicker/RangeDate/DatePicker.styles.d.ts.map +1 -1
  213. package/types/components/DatePicker/RangeDate/DatePicker.types.d.ts +7 -59
  214. package/types/components/DatePicker/RangeDate/DatePicker.types.d.ts.map +1 -1
  215. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +4 -0
  216. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -0
  217. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +5 -0
  218. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +1 -0
  219. package/types/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.types.d.ts → RangeDatePopover/RangeDatePopover.types.d.ts} +11 -3
  220. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +1 -0
  221. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +1 -1
  222. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +1 -1
  223. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +1 -1
  224. package/types/components/DatePicker/SingleDate/DatePicker.styles.d.ts.map +1 -1
  225. package/types/components/DatePicker/SingleDate/DatePicker.types.d.ts +5 -0
  226. package/types/components/DatePicker/SingleDate/DatePicker.types.d.ts.map +1 -1
  227. package/types/components/Range/Range.d.ts.map +1 -1
  228. package/types/components/Range/Range.styles.d.ts +0 -1
  229. package/types/components/Range/Range.styles.d.ts.map +1 -1
  230. package/types/components/Range/Range.types.d.ts +1 -42
  231. package/types/components/Range/Range.types.d.ts.map +1 -1
  232. package/types/components/Range/index.d.ts +1 -1
  233. package/types/components/Range/index.d.ts.map +1 -1
  234. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  235. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  236. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +4 -338
  237. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  238. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -30
  239. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  240. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  241. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  242. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +4 -338
  243. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  244. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -30
  245. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  246. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  247. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_wuxgzs.css +0 -4
  248. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7kz2z4.css +0 -4
  249. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_hbv1kh.css +0 -4
  250. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js.map +0 -1
  251. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js.map +0 -1
  252. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles_x3to15.css +0 -1
  253. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_1851hxh.css +0 -1
  254. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1yswrwb.css +0 -1
  255. package/cjs/components/DatePicker/RangeDate/variations/_view/base_x642ct.css +0 -1
  256. package/cjs/components/Range/variations/_readonly/base_yv1z2h.css +0 -1
  257. package/cjs/components/Range/variations/_view/base_87gpil.css +0 -1
  258. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_wuxgzs.css +0 -4
  259. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7kz2z4.css +0 -4
  260. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_hbv1kh.css +0 -4
  261. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js.map +0 -1
  262. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +0 -28
  263. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js.map +0 -1
  264. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles_x3to15.css +0 -1
  265. package/es/components/DatePicker/RangeDate/variations/_readonly/base_1851hxh.css +0 -1
  266. package/es/components/DatePicker/RangeDate/variations/_size/base_1yswrwb.css +0 -1
  267. package/es/components/DatePicker/RangeDate/variations/_view/base_x642ct.css +0 -1
  268. package/es/components/Range/variations/_readonly/base_yv1z2h.css +0 -1
  269. package/es/components/Range/variations/_view/base_87gpil.css +0 -1
  270. package/styled-components/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +0 -13
  271. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.d.ts +0 -4
  272. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.d.ts.map +0 -1
  273. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.d.ts +0 -4
  274. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.d.ts.map +0 -1
  275. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.d.ts.map +0 -1
  276. /package/styled-components/cjs/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.types.js → RangeDatePopover/RangeDatePopover.types.js} +0 -0
  277. /package/styled-components/es/components/DatePicker/RangeDate/{RangeDoubleDate/RangeDoubleDate.types.js → RangeDatePopover/RangeDatePopover.types.js} +0 -0
@@ -4,26 +4,22 @@ import { cx } from '../../../utils/index.js';
4
4
  import { formatCalendarValue, formatInputValue, getDateFormatDelimiter } from '../utils/dateHelper.js';
5
5
  import { useDatePicker } from '../hooks/useDatePicker.js';
6
6
  import { classes } from '../DatePicker.tokens.js';
7
- import { StyledCalendar } from '../DatePickerBase.styles.js';
8
7
  import { base as base$2 } from './variations/_size/base.js';
9
8
  import { base as base$1 } from './variations/_view/base.js';
10
9
  import { base as base$3 } from './variations/_disabled/base.js';
11
10
  import { base as base$4 } from './variations/_readonly/base.js';
12
- import { StyledRange, base } from './DatePicker.styles.js';
13
- import { RangeDoubleDate } from './RangeDoubleDate/RangeDoubleDate.js';
11
+ import { StyledLabel, LeftHelper, base, StyledRange } from './DatePicker.styles.js';
12
+ import { RangeDatePopover } from './RangeDatePopover/RangeDatePopover.js';
14
13
 
15
- var _excluded = ["className", "isOpenFirst", "isOpenSecond", "isDoubleCalendar", "isOpenDouble", "label", "leftHelper", "contentLeft", "contentRight", "view", "size", "readOnly", "disabled", "dividerVariant", "dividerIcon", "defaultFirstDate", "defaultSecondDate", "firstValueError", "secondValueError", "firstValueSuccess", "secondValueSuccess", "firstPlaceholder", "secondPlaceholder", "firstTextfieldContentLeft", "firstTextfieldContentRight", "secondTextfieldContentLeft", "secondTextfieldContentRight", "firstTextfieldTextBefore", "secondTextfieldTextBefore", "firstTextfieldTextAfter", "secondTextfieldTextAfter", "format", "maskWithFormat", "min", "max", "includeEdgeDates", "eventList", "disabledList", "type", "placement", "closeOnOverlayClick", "offset", "onToggleDouble", "onToggleFirst", "onToggleSecond", "onChangeFirstValue", "onChangeSecondValue", "onCommitFirstDate", "onCommitSecondDate", "onFocusFirstTextfield", "onFocusSecondTextfield", "onBlurFirstTextfield", "onBlurSecondTextfield"];
14
+ var _excluded = ["className", "isDoubleCalendar", "isOpen", "label", "leftHelper", "contentLeft", "contentRight", "view", "size", "readOnly", "disabled", "dividerVariant", "dividerIcon", "defaultFirstDate", "defaultSecondDate", "firstValueError", "secondValueError", "firstValueSuccess", "secondValueSuccess", "firstPlaceholder", "secondPlaceholder", "firstTextfieldContentLeft", "firstTextfieldContentRight", "secondTextfieldContentLeft", "secondTextfieldContentRight", "firstTextfieldTextBefore", "secondTextfieldTextBefore", "firstTextfieldTextAfter", "secondTextfieldTextAfter", "format", "maskWithFormat", "min", "max", "includeEdgeDates", "eventList", "disabledList", "type", "placement", "closeOnOverlayClick", "closeOnEsc", "offset", "onToggle", "onChangeFirstValue", "onChangeSecondValue", "onCommitFirstDate", "onCommitSecondDate", "onFocusFirstTextfield", "onFocusSecondTextfield", "onBlurFirstTextfield", "onBlurSecondTextfield"];
16
15
  var datePickerRangeRoot = function datePickerRangeRoot(Root) {
17
16
  return /*#__PURE__*/forwardRef(function (_ref, ref) {
18
17
  var _rangeRef$current, _rangeRef$current2;
19
18
  var className = _ref.className,
20
- _ref$isOpenFirst = _ref.isOpenFirst,
21
- isOpenFirst = _ref$isOpenFirst === void 0 ? false : _ref$isOpenFirst,
22
- _ref$isOpenSecond = _ref.isOpenSecond,
23
- isOpenSecond = _ref$isOpenSecond === void 0 ? false : _ref$isOpenSecond,
24
19
  _ref$isDoubleCalendar = _ref.isDoubleCalendar,
25
20
  isDoubleCalendar = _ref$isDoubleCalendar === void 0 ? false : _ref$isDoubleCalendar,
26
- isOpenDouble = _ref.isOpenDouble,
21
+ _ref$isOpen = _ref.isOpen,
22
+ isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
27
23
  label = _ref.label,
28
24
  leftHelper = _ref.leftHelper,
29
25
  contentLeft = _ref.contentLeft,
@@ -70,10 +66,10 @@ var datePickerRangeRoot = function datePickerRangeRoot(Root) {
70
66
  placement = _ref$placement === void 0 ? ['top', 'bottom'] : _ref$placement,
71
67
  _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
72
68
  closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
69
+ _ref$closeOnEsc = _ref.closeOnEsc,
70
+ closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
73
71
  offset = _ref.offset,
74
- onToggleDouble = _ref.onToggleDouble,
75
- onToggleFirst = _ref.onToggleFirst,
76
- onToggleSecond = _ref.onToggleSecond,
72
+ onToggle = _ref.onToggle,
77
73
  onChangeFirstValue = _ref.onChangeFirstValue,
78
74
  onChangeSecondValue = _ref.onChangeSecondValue,
79
75
  onCommitFirstDate = _ref.onCommitFirstDate,
@@ -93,34 +89,26 @@ var datePickerRangeRoot = function datePickerRangeRoot(Root) {
93
89
  _useState4 = _slicedToArray(_useState3, 2),
94
90
  secondInputRef = _useState4[0],
95
91
  setSecondInputRef = _useState4[1];
96
- var _useState5 = useState(isOpenFirst),
92
+ var _useState5 = useState(isOpen),
97
93
  _useState6 = _slicedToArray(_useState5, 2),
98
- isInnerOpenFirst = _useState6[0],
99
- setIsInnerOpenFirst = _useState6[1];
100
- var _useState7 = useState(isOpenSecond),
94
+ isInnerOpen = _useState6[0],
95
+ setIsInnerOpen = _useState6[1];
96
+ var _useState7 = useState(formatCalendarValue(defaultFirstDate, format)),
101
97
  _useState8 = _slicedToArray(_useState7, 2),
102
- isInnerOpenSecond = _useState8[0],
103
- setIsInnerOpenSecond = _useState8[1];
104
- var _useState9 = useState(isOpenDouble),
98
+ calendarFirstValue = _useState8[0],
99
+ setCalendarFirstValue = _useState8[1];
100
+ var _useState9 = useState(formatInputValue(defaultFirstDate, format)),
105
101
  _useState10 = _slicedToArray(_useState9, 2),
106
- isInnerOpenDouble = _useState10[0],
107
- setIsInnerOpenDouble = _useState10[1];
108
- var _useState11 = useState(formatCalendarValue(defaultFirstDate, format)),
102
+ inputFirstValue = _useState10[0],
103
+ setInputFirstValue = _useState10[1];
104
+ var _useState11 = useState(formatCalendarValue(defaultSecondDate, format)),
109
105
  _useState12 = _slicedToArray(_useState11, 2),
110
- calendarFirstValue = _useState12[0],
111
- setCalendarFirstValue = _useState12[1];
112
- var _useState13 = useState(formatInputValue(defaultFirstDate, format)),
106
+ calendarSecondValue = _useState12[0],
107
+ setCalendarSecondValue = _useState12[1];
108
+ var _useState13 = useState(formatInputValue(defaultSecondDate, format)),
113
109
  _useState14 = _slicedToArray(_useState13, 2),
114
- inputFirstValue = _useState14[0],
115
- setInputFirstValue = _useState14[1];
116
- var _useState15 = useState(formatCalendarValue(defaultSecondDate, format)),
117
- _useState16 = _slicedToArray(_useState15, 2),
118
- calendarSecondValue = _useState16[0],
119
- setCalendarSecondValue = _useState16[1];
120
- var _useState17 = useState(formatInputValue(defaultSecondDate, format)),
121
- _useState18 = _slicedToArray(_useState17, 2),
122
- inputSecondValue = _useState18[0],
123
- setInputSecondValue = _useState18[1];
110
+ inputSecondValue = _useState14[0],
111
+ setInputSecondValue = _useState14[1];
124
112
  var dateFormatDelimiter = useCallback(function () {
125
113
  return getDateFormatDelimiter(format);
126
114
  }, [format]);
@@ -128,7 +116,7 @@ var datePickerRangeRoot = function datePickerRangeRoot(Root) {
128
116
  currentValue: inputFirstValue,
129
117
  setInputValue: setInputFirstValue,
130
118
  setCalendarValue: setCalendarFirstValue,
131
- setIsInnerOpen: setIsInnerOpenFirst,
119
+ setIsInnerOpen: setIsInnerOpen,
132
120
  dateFormatDelimiter: dateFormatDelimiter,
133
121
  format: format,
134
122
  disabled: disabled,
@@ -137,18 +125,16 @@ var datePickerRangeRoot = function datePickerRangeRoot(Root) {
137
125
  valueError: firstValueError,
138
126
  valueSuccess: firstValueSuccess,
139
127
  inputRef: firstInputRef,
140
- onToggle: onToggleFirst,
141
128
  onChangeValue: onChangeFirstValue,
142
129
  onCommitDate: onCommitFirstDate
143
130
  }),
144
- handleToggleFirst = _useDatePicker.handleToggle,
145
131
  handleChangeFirstValue = _useDatePicker.handleChangeValue,
146
132
  handleCommitFirstDate = _useDatePicker.handleCommitDate;
147
133
  var _useDatePicker2 = useDatePicker({
148
134
  currentValue: inputSecondValue,
149
135
  setInputValue: setInputSecondValue,
150
136
  setCalendarValue: setCalendarSecondValue,
151
- setIsInnerOpen: setIsInnerOpenSecond,
137
+ setIsInnerOpen: setIsInnerOpen,
152
138
  dateFormatDelimiter: dateFormatDelimiter,
153
139
  format: format,
154
140
  disabled: disabled,
@@ -157,63 +143,23 @@ var datePickerRangeRoot = function datePickerRangeRoot(Root) {
157
143
  valueError: secondValueError,
158
144
  valueSuccess: secondValueSuccess,
159
145
  inputRef: secondInputRef,
160
- onToggle: onToggleSecond,
161
146
  onChangeValue: onChangeSecondValue,
162
147
  onCommitDate: onCommitSecondDate
163
148
  }),
164
- handleToggleSecond = _useDatePicker2.handleToggle,
165
149
  handleChangeSecondValue = _useDatePicker2.handleChangeValue,
166
150
  handleCommitSecondDate = _useDatePicker2.handleCommitDate;
167
- var handleToggleDouble = function handleToggleDouble(opened, event) {
151
+ var handleToggle = function handleToggle(opened, event) {
168
152
  var _firstInputRef$curren, _secondInputRef$curre;
169
153
  if (disabled || readOnly) {
170
154
  return;
171
155
  }
172
156
  var isCalendarOpen = firstInputRef !== null && firstInputRef !== void 0 && (_firstInputRef$curren = firstInputRef.current) !== null && _firstInputRef$curren !== void 0 && _firstInputRef$curren.contains(event.target || null) || secondInputRef !== null && secondInputRef !== void 0 && (_secondInputRef$curre = secondInputRef.current) !== null && _secondInputRef$curre !== void 0 && _secondInputRef$curre.contains(event.target || null) ? true : opened;
173
- if (onToggleDouble) {
174
- return onToggleDouble(isCalendarOpen, event);
157
+ if (onToggle) {
158
+ return onToggle(isCalendarOpen, event);
175
159
  }
176
- setIsInnerOpenDouble(isCalendarOpen);
160
+ setIsInnerOpen(isCalendarOpen);
177
161
  };
178
- var FirstCalendar = /*#__PURE__*/React.createElement(StyledCalendar, {
179
- value: calendarFirstValue,
180
- type: type,
181
- eventList: eventList,
182
- disabledList: disabledList,
183
- min: min,
184
- max: calendarSecondValue || max,
185
- includeEdgeDates: includeEdgeDates,
186
- isRange: false,
187
- onChangeValue: function onChangeValue(date) {
188
- handleCommitFirstDate(date, false, true);
189
- setIsInnerOpenFirst(false);
190
- if (!calendarSecondValue || secondValueError) {
191
- var _rangeRef$current3;
192
- rangeRef === null || rangeRef === void 0 || (_rangeRef$current3 = rangeRef.current) === null || _rangeRef$current3 === void 0 || (_rangeRef$current3 = _rangeRef$current3.secondTextField()) === null || _rangeRef$current3 === void 0 || (_rangeRef$current3 = _rangeRef$current3.current) === null || _rangeRef$current3 === void 0 || _rangeRef$current3.focus();
193
- setIsInnerOpenSecond(true);
194
- }
195
- }
196
- });
197
- var SecondCalendar = /*#__PURE__*/React.createElement(StyledCalendar, {
198
- value: calendarSecondValue,
199
- type: type,
200
- eventList: eventList,
201
- disabledList: disabledList,
202
- min: calendarFirstValue || min,
203
- max: max,
204
- includeEdgeDates: includeEdgeDates,
205
- isRange: false,
206
- onChangeValue: function onChangeValue(date) {
207
- handleCommitSecondDate(date, false, true);
208
- setIsInnerOpenSecond(false);
209
- if (!calendarFirstValue || firstValueError) {
210
- var _rangeRef$current4;
211
- rangeRef === null || rangeRef === void 0 || (_rangeRef$current4 = rangeRef.current) === null || _rangeRef$current4 === void 0 || (_rangeRef$current4 = _rangeRef$current4.firstTextField()) === null || _rangeRef$current4 === void 0 || (_rangeRef$current4 = _rangeRef$current4.current) === null || _rangeRef$current4 === void 0 || _rangeRef$current4.focus();
212
- setIsInnerOpenFirst(true);
213
- }
214
- }
215
- });
216
- var RangeComponent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledRange, _extends({
162
+ var RangeComponent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledRange, {
217
163
  ref: rangeRef,
218
164
  dividerIcon: dividerIcon,
219
165
  dividerVariant: dividerVariant,
@@ -221,8 +167,6 @@ var datePickerRangeRoot = function datePickerRangeRoot(Root) {
221
167
  readOnly: !disabled && readOnly,
222
168
  firstPlaceholder: firstPlaceholder,
223
169
  secondPlaceholder: secondPlaceholder,
224
- label: label,
225
- leftHelper: leftHelper,
226
170
  contentLeft: contentLeft,
227
171
  contentRight: contentRight,
228
172
  firstTextfieldTextBefore: firstTextfieldTextBefore,
@@ -242,67 +186,67 @@ var datePickerRangeRoot = function datePickerRangeRoot(Root) {
242
186
  onChangeFirstValue: handleChangeFirstValue,
243
187
  onChangeSecondValue: handleChangeSecondValue,
244
188
  onSearchFirstValue: function onSearchFirstValue(_, date) {
245
- return handleCommitFirstDate(String(date), true, false);
189
+ handleCommitFirstDate(String(date), true, false);
190
+ if (!calendarSecondValue || secondValueError) {
191
+ var _rangeRef$current3;
192
+ rangeRef === null || rangeRef === void 0 || (_rangeRef$current3 = rangeRef.current) === null || _rangeRef$current3 === void 0 || (_rangeRef$current3 = _rangeRef$current3.secondTextField()) === null || _rangeRef$current3 === void 0 || (_rangeRef$current3 = _rangeRef$current3.current) === null || _rangeRef$current3 === void 0 || _rangeRef$current3.focus();
193
+ }
246
194
  },
247
195
  onSearchSecondValue: function onSearchSecondValue(_, date) {
248
- return handleCommitSecondDate(String(date), true, false);
196
+ handleCommitSecondDate(String(date), true, false);
197
+ if (!calendarFirstValue || firstValueError) {
198
+ var _rangeRef$current4;
199
+ rangeRef === null || rangeRef === void 0 || (_rangeRef$current4 = rangeRef.current) === null || _rangeRef$current4 === void 0 || (_rangeRef$current4 = _rangeRef$current4.firstTextField()) === null || _rangeRef$current4 === void 0 || (_rangeRef$current4 = _rangeRef$current4.current) === null || _rangeRef$current4 === void 0 || _rangeRef$current4.focus();
200
+ }
249
201
  },
250
202
  onFocusFirstTextfield: onFocusFirstTextfield,
251
203
  onFocusSecondTextfield: onFocusSecondTextfield,
252
204
  onBlurFirstTextfield: onBlurFirstTextfield,
253
205
  onBlurSecondTextfield: onBlurSecondTextfield
254
- }, !isDoubleCalendar && {
255
- isOpenFirst: isOpenFirst || isInnerOpenFirst,
256
- isOpenSecond: isOpenSecond || isInnerOpenSecond,
257
- onToggleFirst: handleToggleFirst,
258
- onToggleSecond: handleToggleSecond,
259
- firstInputPopoverContent: FirstCalendar,
260
- secondInputPopoverContent: SecondCalendar,
261
- offset: offset,
262
- placement: placement,
263
- closeOnOverlayClick: closeOnOverlayClick
264
- })));
206
+ }));
265
207
  useEffect(function () {
266
208
  var _rangeRef$current5, _rangeRef$current6;
267
209
  setFirstInputRef((_rangeRef$current5 = rangeRef.current) === null || _rangeRef$current5 === void 0 ? void 0 : _rangeRef$current5.firstTextField());
268
210
  setSecondInputRef((_rangeRef$current6 = rangeRef.current) === null || _rangeRef$current6 === void 0 ? void 0 : _rangeRef$current6.secondTextField());
269
211
  }, [rangeRef.current]);
270
- if (isDoubleCalendar) {
271
- return /*#__PURE__*/React.createElement(Root, _extends({
272
- ref: rootRef,
273
- view: view,
274
- size: size,
275
- className: cx(classes.datePickerRoot, className),
276
- disabled: disabled,
277
- readOnly: !disabled && readOnly
278
- }, rest), /*#__PURE__*/React.createElement(RangeDoubleDate, {
279
- calendarValue: [calendarFirstValue, calendarSecondValue],
280
- target: RangeComponent,
281
- isOpen: isOpenDouble || isInnerOpenDouble,
282
- onToggle: handleToggleDouble,
283
- onChangeStartOfRange: function onChangeStartOfRange(firstDate) {
284
- handleCommitFirstDate(firstDate, false, true);
285
- handleCommitSecondDate('');
286
- },
287
- onChangeValue: function onChangeValue(_ref2) {
288
- var _ref3 = _slicedToArray(_ref2, 2),
289
- firstDate = _ref3[0],
290
- secondDate = _ref3[1];
291
- firstDate && handleCommitFirstDate(firstDate, false, true);
292
- secondDate && handleCommitSecondDate(secondDate, false, true);
293
- if (firstDate && secondDate && !firstValueError && !secondValueError) {
294
- setIsInnerOpenDouble(false);
295
- }
296
- }
297
- }));
298
- }
299
212
  return /*#__PURE__*/React.createElement(Root, _extends({
213
+ ref: rootRef,
300
214
  view: view,
301
215
  size: size,
302
216
  className: cx(classes.datePickerRoot, className),
303
217
  disabled: disabled,
304
218
  readOnly: !disabled && readOnly
305
- }, rest), RangeComponent);
219
+ }, rest), label && /*#__PURE__*/React.createElement(StyledLabel, null, label), /*#__PURE__*/React.createElement(RangeDatePopover, {
220
+ calendarValue: [calendarFirstValue, calendarSecondValue],
221
+ target: RangeComponent,
222
+ isOpen: isOpen || isInnerOpen,
223
+ includeEdgeDates: includeEdgeDates,
224
+ eventList: eventList,
225
+ disabledList: disabledList,
226
+ min: min,
227
+ max: max,
228
+ placement: placement,
229
+ closeOnOverlayClick: closeOnOverlayClick,
230
+ closeOnEsc: closeOnEsc,
231
+ offset: offset,
232
+ type: type,
233
+ onToggle: handleToggle,
234
+ isDoubleCalendar: isDoubleCalendar,
235
+ onChangeStartOfRange: function onChangeStartOfRange(firstDate) {
236
+ handleCommitFirstDate(firstDate, false, true);
237
+ handleCommitSecondDate('');
238
+ },
239
+ onChangeValue: function onChangeValue(_ref2) {
240
+ var _ref3 = _slicedToArray(_ref2, 2),
241
+ firstDate = _ref3[0],
242
+ secondDate = _ref3[1];
243
+ firstDate && handleCommitFirstDate(firstDate, false, true);
244
+ secondDate && handleCommitSecondDate(secondDate, false, true);
245
+ if (firstDate && secondDate && !firstValueError && !secondValueError) {
246
+ setIsInnerOpen(false);
247
+ }
248
+ }
249
+ }), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, null, leftHelper));
306
250
  });
307
251
  };
308
252
  var datePickerRangeConfig = {
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.js","sources":["../../../../src/components/DatePicker/RangeDate/DatePicker.tsx"],"sourcesContent":["import React, {\n MutableRefObject,\n SyntheticEvent,\n createRef,\n forwardRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\nimport type { RootProps } from '../../../engines';\nimport { cx } from '../../../utils';\nimport { formatCalendarValue, formatInputValue, getDateFormatDelimiter } from '../utils/dateHelper';\nimport { useDatePicker } from '../hooks/useDatePicker';\nimport type { RangeInputRefs } from '../../Range/Range.types';\nimport { classes } from '../DatePicker.tokens';\nimport { StyledCalendar } from '../DatePickerBase.styles';\n\nimport type { DatePickerRangeProps } from './DatePicker.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 { StyledRange, base } from './DatePicker.styles';\nimport { RangeDoubleDate } from './RangeDoubleDate/RangeDoubleDate';\n\nexport const datePickerRangeRoot = (\n Root: RootProps<HTMLDivElement, Omit<DatePickerRangeProps, 'isOpen' | 'defaultValue' | 'onChangeValue'>>,\n) =>\n forwardRef<RangeInputRefs, DatePickerRangeProps>(\n (\n {\n className,\n isOpenFirst = false,\n isOpenSecond = false,\n\n isDoubleCalendar = false,\n isOpenDouble,\n\n label,\n leftHelper,\n contentLeft,\n contentRight,\n view,\n size,\n readOnly = false,\n disabled = false,\n\n dividerVariant = 'dash',\n dividerIcon,\n\n defaultFirstDate = '',\n defaultSecondDate = '',\n firstValueError,\n secondValueError,\n firstValueSuccess,\n secondValueSuccess,\n firstPlaceholder,\n secondPlaceholder,\n firstTextfieldContentLeft,\n firstTextfieldContentRight,\n secondTextfieldContentLeft,\n secondTextfieldContentRight,\n firstTextfieldTextBefore,\n secondTextfieldTextBefore,\n firstTextfieldTextAfter,\n secondTextfieldTextAfter,\n\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 onToggleDouble,\n onToggleFirst,\n onToggleSecond,\n\n onChangeFirstValue,\n onChangeSecondValue,\n\n onCommitFirstDate,\n onCommitSecondDate,\n\n onFocusFirstTextfield,\n onFocusSecondTextfield,\n onBlurFirstTextfield,\n onBlurSecondTextfield,\n\n ...rest\n },\n ref,\n ) => {\n const rangeRef = ref && 'current' in ref ? ref : createRef<RangeInputRefs>();\n const rootRef = useRef<HTMLDivElement | null>(null);\n\n const [firstInputRef, setFirstInputRef] = useState<MutableRefObject<HTMLInputElement | null> | undefined>(\n rangeRef?.current?.firstTextField(),\n );\n const [secondInputRef, setSecondInputRef] = useState<MutableRefObject<HTMLInputElement | null> | undefined>(\n rangeRef?.current?.secondTextField(),\n );\n const [isInnerOpenFirst, setIsInnerOpenFirst] = useState(isOpenFirst);\n const [isInnerOpenSecond, setIsInnerOpenSecond] = useState(isOpenSecond);\n const [isInnerOpenDouble, setIsInnerOpenDouble] = useState(isOpenDouble);\n\n const [calendarFirstValue, setCalendarFirstValue] = useState(formatCalendarValue(defaultFirstDate, format));\n const [inputFirstValue, setInputFirstValue] = useState(formatInputValue(defaultFirstDate, format));\n\n const [calendarSecondValue, setCalendarSecondValue] = useState(\n formatCalendarValue(defaultSecondDate, format),\n );\n const [inputSecondValue, setInputSecondValue] = useState(formatInputValue(defaultSecondDate, format));\n\n const dateFormatDelimiter = useCallback(() => getDateFormatDelimiter(format), [format]);\n\n const {\n handleToggle: handleToggleFirst,\n handleChangeValue: handleChangeFirstValue,\n handleCommitDate: handleCommitFirstDate,\n } = useDatePicker({\n currentValue: inputFirstValue,\n setInputValue: setInputFirstValue,\n setCalendarValue: setCalendarFirstValue,\n setIsInnerOpen: setIsInnerOpenFirst,\n dateFormatDelimiter,\n format,\n disabled,\n readOnly,\n maskWithFormat,\n valueError: firstValueError,\n valueSuccess: firstValueSuccess,\n inputRef: firstInputRef,\n onToggle: onToggleFirst,\n onChangeValue: onChangeFirstValue,\n onCommitDate: onCommitFirstDate,\n });\n\n const {\n handleToggle: handleToggleSecond,\n handleChangeValue: handleChangeSecondValue,\n handleCommitDate: handleCommitSecondDate,\n } = useDatePicker({\n currentValue: inputSecondValue,\n setInputValue: setInputSecondValue,\n setCalendarValue: setCalendarSecondValue,\n setIsInnerOpen: setIsInnerOpenSecond,\n dateFormatDelimiter,\n format,\n disabled,\n readOnly,\n maskWithFormat,\n valueError: secondValueError,\n valueSuccess: secondValueSuccess,\n inputRef: secondInputRef,\n onToggle: onToggleSecond,\n onChangeValue: onChangeSecondValue,\n onCommitDate: onCommitSecondDate,\n });\n\n const handleToggleDouble = (opened: boolean, event: SyntheticEvent | Event) => {\n if (disabled || readOnly) {\n return;\n }\n\n const isCalendarOpen =\n firstInputRef?.current?.contains((event.target as Node) || null) ||\n secondInputRef?.current?.contains((event.target as Node) || null)\n ? true\n : opened;\n\n if (onToggleDouble) {\n return onToggleDouble(isCalendarOpen, event);\n }\n\n setIsInnerOpenDouble(isCalendarOpen);\n };\n\n const FirstCalendar = (\n <StyledCalendar\n value={calendarFirstValue}\n type={type}\n eventList={eventList}\n disabledList={disabledList}\n min={min}\n max={calendarSecondValue || max}\n includeEdgeDates={includeEdgeDates}\n isRange={false}\n onChangeValue={(date) => {\n handleCommitFirstDate(date, false, true);\n setIsInnerOpenFirst(false);\n if (!calendarSecondValue || secondValueError) {\n rangeRef?.current?.secondTextField()?.current?.focus();\n setIsInnerOpenSecond(true);\n }\n }}\n />\n );\n\n const SecondCalendar = (\n <StyledCalendar\n value={calendarSecondValue}\n type={type}\n eventList={eventList}\n disabledList={disabledList}\n min={calendarFirstValue || min}\n max={max}\n includeEdgeDates={includeEdgeDates}\n isRange={false}\n onChangeValue={(date) => {\n handleCommitSecondDate(date, false, true);\n\n setIsInnerOpenSecond(false);\n if (!calendarFirstValue || firstValueError) {\n rangeRef?.current?.firstTextField()?.current?.focus();\n setIsInnerOpenFirst(true);\n }\n }}\n />\n );\n\n const RangeComponent = (\n <>\n {/* TODO https://github.com/salute-developers/plasma/issues/1227\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n //@ts-ignore */}\n <StyledRange\n ref={rangeRef}\n dividerIcon={dividerIcon}\n dividerVariant={dividerVariant}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n firstPlaceholder={firstPlaceholder}\n secondPlaceholder={secondPlaceholder}\n label={label}\n leftHelper={leftHelper}\n contentLeft={contentLeft}\n contentRight={contentRight}\n firstTextfieldTextBefore={firstTextfieldTextBefore}\n secondTextfieldTextBefore={secondTextfieldTextBefore}\n firstTextfieldTextAfter={firstTextfieldTextAfter}\n secondTextfieldTextAfter={secondTextfieldTextAfter}\n firstTextfieldContentLeft={firstTextfieldContentLeft}\n firstTextfieldContentRight={firstTextfieldContentRight}\n secondTextfieldContentLeft={secondTextfieldContentLeft}\n secondTextfieldContentRight={secondTextfieldContentRight}\n firstValue={inputFirstValue}\n secondValue={inputSecondValue}\n firstValueError={firstValueError}\n secondValueError={secondValueError}\n firstValueSuccess={firstValueSuccess}\n secondValueSuccess={secondValueSuccess}\n onChangeFirstValue={handleChangeFirstValue}\n onChangeSecondValue={handleChangeSecondValue}\n onSearchFirstValue={(_, date) => handleCommitFirstDate(String(date), true, false)}\n onSearchSecondValue={(_, date) => handleCommitSecondDate(String(date), true, false)}\n onFocusFirstTextfield={onFocusFirstTextfield}\n onFocusSecondTextfield={onFocusSecondTextfield}\n onBlurFirstTextfield={onBlurFirstTextfield}\n onBlurSecondTextfield={onBlurSecondTextfield}\n {...(!isDoubleCalendar && {\n isOpenFirst: isOpenFirst || isInnerOpenFirst,\n isOpenSecond: isOpenSecond || isInnerOpenSecond,\n onToggleFirst: handleToggleFirst,\n onToggleSecond: handleToggleSecond,\n firstInputPopoverContent: FirstCalendar,\n secondInputPopoverContent: SecondCalendar,\n offset,\n placement,\n closeOnOverlayClick,\n })}\n />\n </>\n );\n\n useEffect(() => {\n setFirstInputRef(rangeRef.current?.firstTextField());\n setSecondInputRef(rangeRef.current?.secondTextField());\n }, [rangeRef.current]);\n\n if (isDoubleCalendar) {\n return (\n <Root\n ref={rootRef}\n view={view}\n size={size}\n className={cx(classes.datePickerRoot, className)}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n {...rest}\n >\n <RangeDoubleDate\n calendarValue={[calendarFirstValue, calendarSecondValue]}\n target={RangeComponent}\n isOpen={isOpenDouble || isInnerOpenDouble}\n onToggle={handleToggleDouble}\n onChangeStartOfRange={(firstDate) => {\n handleCommitFirstDate(firstDate, false, true);\n handleCommitSecondDate('');\n }}\n onChangeValue={([firstDate, secondDate]) => {\n firstDate && handleCommitFirstDate(firstDate, false, true);\n secondDate && handleCommitSecondDate(secondDate, false, true);\n if (firstDate && secondDate && !firstValueError && !secondValueError) {\n setIsInnerOpenDouble(false);\n }\n }}\n />\n </Root>\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 {...rest}\n >\n {RangeComponent}\n </Root>\n );\n },\n );\n\nexport const datePickerRangeConfig = {\n name: 'DatePickerRange',\n tag: 'div',\n layout: datePickerRangeRoot,\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":["datePickerRangeRoot","Root","forwardRef","_ref","ref","_rangeRef$current","_rangeRef$current2","className","_ref$isOpenFirst","isOpenFirst","_ref$isOpenSecond","isOpenSecond","_ref$isDoubleCalendar","isDoubleCalendar","isOpenDouble","label","leftHelper","contentLeft","contentRight","view","size","_ref$readOnly","readOnly","_ref$disabled","disabled","_ref$dividerVariant","dividerVariant","dividerIcon","_ref$defaultFirstDate","defaultFirstDate","_ref$defaultSecondDat","defaultSecondDate","firstValueError","secondValueError","firstValueSuccess","secondValueSuccess","firstPlaceholder","secondPlaceholder","firstTextfieldContentLeft","firstTextfieldContentRight","secondTextfieldContentLeft","secondTextfieldContentRight","firstTextfieldTextBefore","secondTextfieldTextBefore","firstTextfieldTextAfter","secondTextfieldTextAfter","_ref$format","format","maskWithFormat","min","max","_ref$includeEdgeDates","includeEdgeDates","eventList","disabledList","_ref$type","type","_ref$placement","placement","_ref$closeOnOverlayCl","closeOnOverlayClick","offset","onToggleDouble","onToggleFirst","onToggleSecond","onChangeFirstValue","onChangeSecondValue","onCommitFirstDate","onCommitSecondDate","onFocusFirstTextfield","onFocusSecondTextfield","onBlurFirstTextfield","onBlurSecondTextfield","rest","_objectWithoutProperties","_excluded","rangeRef","createRef","rootRef","useRef","_useState","useState","current","firstTextField","_useState2","_slicedToArray","firstInputRef","setFirstInputRef","_useState3","secondTextField","_useState4","secondInputRef","setSecondInputRef","_useState5","_useState6","isInnerOpenFirst","setIsInnerOpenFirst","_useState7","_useState8","isInnerOpenSecond","setIsInnerOpenSecond","_useState9","_useState10","isInnerOpenDouble","setIsInnerOpenDouble","_useState11","formatCalendarValue","_useState12","calendarFirstValue","setCalendarFirstValue","_useState13","formatInputValue","_useState14","inputFirstValue","setInputFirstValue","_useState15","_useState16","calendarSecondValue","setCalendarSecondValue","_useState17","_useState18","inputSecondValue","setInputSecondValue","dateFormatDelimiter","useCallback","getDateFormatDelimiter","_useDatePicker","useDatePicker","currentValue","setInputValue","setCalendarValue","setIsInnerOpen","valueError","valueSuccess","inputRef","onToggle","onChangeValue","onCommitDate","handleToggleFirst","handleToggle","handleChangeFirstValue","handleChangeValue","handleCommitFirstDate","handleCommitDate","_useDatePicker2","handleToggleSecond","handleChangeSecondValue","handleCommitSecondDate","handleToggleDouble","opened","event","_firstInputRef$curren","_secondInputRef$curre","isCalendarOpen","contains","target","FirstCalendar","React","createElement","StyledCalendar","value","isRange","date","_rangeRef$current3","focus","SecondCalendar","_rangeRef$current4","RangeComponent","Fragment","StyledRange","_extends","firstValue","secondValue","onSearchFirstValue","_","String","onSearchSecondValue","firstInputPopoverContent","secondInputPopoverContent","useEffect","_rangeRef$current5","_rangeRef$current6","cx","classes","datePickerRoot","RangeDoubleDate","calendarValue","isOpen","onChangeStartOfRange","firstDate","_ref2","_ref3","secondDate","datePickerRangeConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","readOnlyCSS","defaults"],"mappings":";;;;;;;;;;;;;;;IA2BaA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAC5BC,IAAwG,EAAA;AAAA,EAAA,oBAExGC,UAAU,CACN,UAAAC,IAAA,EAoEIC,GAAG,EACF;IAAA,IAAAC,iBAAA,EAAAC,kBAAA,CAAA;AAAA,IAAA,IAnEGC,SAAS,GAAAJ,IAAA,CAATI,SAAS;MAAAC,gBAAA,GAAAL,IAAA,CACTM,WAAW;AAAXA,MAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,gBAAA;MAAAE,iBAAA,GAAAP,IAAA,CACnBQ,YAAY;AAAZA,MAAAA,YAAY,GAAA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,IAAA,oBACIqD,KAAA,CAAAC,aAAA,CAAC7J,IAAI,EAAAyK,QAAA,CAAA;AACDvJ,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,IAAI,EAAEA,IAAK;MACXb,SAAS,EAAE+K,EAAE,CAACC,OAAO,CAACC,cAAc,EAAEjL,SAAS,CAAE;AACjDiB,MAAAA,QAAQ,EAAEA,QAAS;MACnBF,QAAQ,EAAE,CAACE,QAAQ,IAAIF,QAAAA;KACnBmD,EAAAA,IAAI,CAEP8F,EAAAA,cACC,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM0B,qBAAqB,GAAG;AACjCC,EAAAA,IAAI,EAAE,iBAAiB;AACvBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEpM,mBAAmB;AAC3BqM,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRnL,IAAAA,IAAI,EAAE;AACFoL,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDpL,IAAAA,IAAI,EAAE;AACFmL,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDjL,IAAAA,QAAQ,EAAE;AACN+K,MAAAA,GAAG,EAAEG,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDrL,IAAAA,QAAQ,EAAE;AACNiL,MAAAA,GAAG,EAAEK,MAAW;AAChBD,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDE,EAAAA,QAAQ,EAAE;AACNzL,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"DatePicker.js","sources":["../../../../src/components/DatePicker/RangeDate/DatePicker.tsx"],"sourcesContent":["import React, {\n MutableRefObject,\n SyntheticEvent,\n createRef,\n forwardRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\nimport type { RootProps } from '../../../engines';\nimport { cx } from '../../../utils';\nimport { formatCalendarValue, formatInputValue, getDateFormatDelimiter } from '../utils/dateHelper';\nimport { useDatePicker } from '../hooks/useDatePicker';\nimport type { RangeInputRefs } from '../../Range/Range.types';\nimport { classes } from '../DatePicker.tokens';\n\nimport type { DatePickerRangeProps } from './DatePicker.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, StyledLabel, StyledRange, base } from './DatePicker.styles';\nimport { RangeDatePopover } from './RangeDatePopover/RangeDatePopover';\n\nexport const datePickerRangeRoot = (\n Root: RootProps<HTMLDivElement, Omit<DatePickerRangeProps, 'isOpen' | 'defaultValue' | 'onChangeValue'>>,\n) =>\n forwardRef<RangeInputRefs, DatePickerRangeProps>(\n (\n {\n className,\n\n isDoubleCalendar = false,\n isOpen = false,\n\n label,\n leftHelper,\n contentLeft,\n contentRight,\n view,\n size,\n readOnly = false,\n disabled = false,\n\n dividerVariant = 'dash',\n dividerIcon,\n\n defaultFirstDate = '',\n defaultSecondDate = '',\n firstValueError,\n secondValueError,\n firstValueSuccess,\n secondValueSuccess,\n firstPlaceholder,\n secondPlaceholder,\n firstTextfieldContentLeft,\n firstTextfieldContentRight,\n secondTextfieldContentLeft,\n secondTextfieldContentRight,\n firstTextfieldTextBefore,\n secondTextfieldTextBefore,\n firstTextfieldTextAfter,\n secondTextfieldTextAfter,\n\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 closeOnEsc = true,\n offset,\n\n onToggle,\n\n onChangeFirstValue,\n onChangeSecondValue,\n\n onCommitFirstDate,\n onCommitSecondDate,\n\n onFocusFirstTextfield,\n onFocusSecondTextfield,\n onBlurFirstTextfield,\n onBlurSecondTextfield,\n\n ...rest\n },\n ref,\n ) => {\n const rangeRef = ref && 'current' in ref ? ref : createRef<RangeInputRefs>();\n const rootRef = useRef<HTMLDivElement | null>(null);\n\n const [firstInputRef, setFirstInputRef] = useState<MutableRefObject<HTMLInputElement | null> | undefined>(\n rangeRef?.current?.firstTextField(),\n );\n const [secondInputRef, setSecondInputRef] = useState<MutableRefObject<HTMLInputElement | null> | undefined>(\n rangeRef?.current?.secondTextField(),\n );\n const [isInnerOpen, setIsInnerOpen] = useState(isOpen);\n\n const [calendarFirstValue, setCalendarFirstValue] = useState(formatCalendarValue(defaultFirstDate, format));\n const [inputFirstValue, setInputFirstValue] = useState(formatInputValue(defaultFirstDate, format));\n\n const [calendarSecondValue, setCalendarSecondValue] = useState(\n formatCalendarValue(defaultSecondDate, format),\n );\n const [inputSecondValue, setInputSecondValue] = useState(formatInputValue(defaultSecondDate, format));\n\n const dateFormatDelimiter = useCallback(() => getDateFormatDelimiter(format), [format]);\n\n const {\n handleChangeValue: handleChangeFirstValue,\n handleCommitDate: handleCommitFirstDate,\n } = useDatePicker({\n currentValue: inputFirstValue,\n setInputValue: setInputFirstValue,\n setCalendarValue: setCalendarFirstValue,\n setIsInnerOpen,\n dateFormatDelimiter,\n format,\n disabled,\n readOnly,\n maskWithFormat,\n valueError: firstValueError,\n valueSuccess: firstValueSuccess,\n inputRef: firstInputRef,\n onChangeValue: onChangeFirstValue,\n onCommitDate: onCommitFirstDate,\n });\n\n const {\n handleChangeValue: handleChangeSecondValue,\n handleCommitDate: handleCommitSecondDate,\n } = useDatePicker({\n currentValue: inputSecondValue,\n setInputValue: setInputSecondValue,\n setCalendarValue: setCalendarSecondValue,\n setIsInnerOpen,\n dateFormatDelimiter,\n format,\n disabled,\n readOnly,\n maskWithFormat,\n valueError: secondValueError,\n valueSuccess: secondValueSuccess,\n inputRef: secondInputRef,\n onChangeValue: onChangeSecondValue,\n onCommitDate: onCommitSecondDate,\n });\n\n const handleToggle = (opened: boolean, event: SyntheticEvent | Event) => {\n if (disabled || readOnly) {\n return;\n }\n\n const isCalendarOpen =\n firstInputRef?.current?.contains((event.target as Node) || null) ||\n secondInputRef?.current?.contains((event.target as Node) || null)\n ? true\n : opened;\n\n if (onToggle) {\n return onToggle(isCalendarOpen, event);\n }\n\n setIsInnerOpen(isCalendarOpen);\n };\n\n const RangeComponent = (\n <>\n {/* TODO https://github.com/salute-developers/plasma/issues/1227\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n //@ts-ignore */}\n <StyledRange\n ref={rangeRef}\n dividerIcon={dividerIcon}\n dividerVariant={dividerVariant}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n firstPlaceholder={firstPlaceholder}\n secondPlaceholder={secondPlaceholder}\n contentLeft={contentLeft}\n contentRight={contentRight}\n firstTextfieldTextBefore={firstTextfieldTextBefore}\n secondTextfieldTextBefore={secondTextfieldTextBefore}\n firstTextfieldTextAfter={firstTextfieldTextAfter}\n secondTextfieldTextAfter={secondTextfieldTextAfter}\n firstTextfieldContentLeft={firstTextfieldContentLeft}\n firstTextfieldContentRight={firstTextfieldContentRight}\n secondTextfieldContentLeft={secondTextfieldContentLeft}\n secondTextfieldContentRight={secondTextfieldContentRight}\n firstValue={inputFirstValue}\n secondValue={inputSecondValue}\n firstValueError={firstValueError}\n secondValueError={secondValueError}\n firstValueSuccess={firstValueSuccess}\n secondValueSuccess={secondValueSuccess}\n onChangeFirstValue={handleChangeFirstValue}\n onChangeSecondValue={handleChangeSecondValue}\n onSearchFirstValue={(_, date) => {\n handleCommitFirstDate(String(date), true, false);\n if (!calendarSecondValue || secondValueError) {\n rangeRef?.current?.secondTextField()?.current?.focus();\n }\n }}\n onSearchSecondValue={(_, date) => {\n handleCommitSecondDate(String(date), true, false);\n if (!calendarFirstValue || firstValueError) {\n rangeRef?.current?.firstTextField()?.current?.focus();\n }\n }}\n onFocusFirstTextfield={onFocusFirstTextfield}\n onFocusSecondTextfield={onFocusSecondTextfield}\n onBlurFirstTextfield={onBlurFirstTextfield}\n onBlurSecondTextfield={onBlurSecondTextfield}\n />\n </>\n );\n\n useEffect(() => {\n setFirstInputRef(rangeRef.current?.firstTextField());\n setSecondInputRef(rangeRef.current?.secondTextField());\n }, [rangeRef.current]);\n\n return (\n <Root\n ref={rootRef}\n view={view}\n size={size}\n className={cx(classes.datePickerRoot, className)}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n {...rest}\n >\n {label && <StyledLabel>{label}</StyledLabel>}\n <RangeDatePopover\n calendarValue={[calendarFirstValue, calendarSecondValue]}\n target={RangeComponent}\n isOpen={isOpen || isInnerOpen}\n includeEdgeDates={includeEdgeDates}\n eventList={eventList}\n disabledList={disabledList}\n min={min}\n max={max}\n placement={placement}\n closeOnOverlayClick={closeOnOverlayClick}\n closeOnEsc={closeOnEsc}\n offset={offset}\n type={type}\n onToggle={handleToggle}\n isDoubleCalendar={isDoubleCalendar}\n onChangeStartOfRange={(firstDate) => {\n handleCommitFirstDate(firstDate, false, true);\n handleCommitSecondDate('');\n }}\n onChangeValue={([firstDate, secondDate]) => {\n firstDate && handleCommitFirstDate(firstDate, false, true);\n secondDate && handleCommitSecondDate(secondDate, false, true);\n if (firstDate && secondDate && !firstValueError && !secondValueError) {\n setIsInnerOpen(false);\n }\n }}\n />\n {leftHelper && <LeftHelper>{leftHelper}</LeftHelper>}\n </Root>\n );\n },\n );\n\nexport const datePickerRangeConfig = {\n name: 'DatePickerRange',\n tag: 'div',\n layout: datePickerRangeRoot,\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":["datePickerRangeRoot","Root","forwardRef","_ref","ref","_rangeRef$current","_rangeRef$current2","className","_ref$isDoubleCalendar","isDoubleCalendar","_ref$isOpen","isOpen","label","leftHelper","contentLeft","contentRight","view","size","_ref$readOnly","readOnly","_ref$disabled","disabled","_ref$dividerVariant","dividerVariant","dividerIcon","_ref$defaultFirstDate","defaultFirstDate","_ref$defaultSecondDat","defaultSecondDate","firstValueError","secondValueError","firstValueSuccess","secondValueSuccess","firstPlaceholder","secondPlaceholder","firstTextfieldContentLeft","firstTextfieldContentRight","secondTextfieldContentLeft","secondTextfieldContentRight","firstTextfieldTextBefore","secondTextfieldTextBefore","firstTextfieldTextAfter","secondTextfieldTextAfter","_ref$format","format","maskWithFormat","min","max","_ref$includeEdgeDates","includeEdgeDates","eventList","disabledList","_ref$type","type","_ref$placement","placement","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$closeOnEsc","closeOnEsc","offset","onToggle","onChangeFirstValue","onChangeSecondValue","onCommitFirstDate","onCommitSecondDate","onFocusFirstTextfield","onFocusSecondTextfield","onBlurFirstTextfield","onBlurSecondTextfield","rest","_objectWithoutProperties","_excluded","rangeRef","createRef","rootRef","useRef","_useState","useState","current","firstTextField","_useState2","_slicedToArray","firstInputRef","setFirstInputRef","_useState3","secondTextField","_useState4","secondInputRef","setSecondInputRef","_useState5","_useState6","isInnerOpen","setIsInnerOpen","_useState7","formatCalendarValue","_useState8","calendarFirstValue","setCalendarFirstValue","_useState9","formatInputValue","_useState10","inputFirstValue","setInputFirstValue","_useState11","_useState12","calendarSecondValue","setCalendarSecondValue","_useState13","_useState14","inputSecondValue","setInputSecondValue","dateFormatDelimiter","useCallback","getDateFormatDelimiter","_useDatePicker","useDatePicker","currentValue","setInputValue","setCalendarValue","valueError","valueSuccess","inputRef","onChangeValue","onCommitDate","handleChangeFirstValue","handleChangeValue","handleCommitFirstDate","handleCommitDate","_useDatePicker2","handleChangeSecondValue","handleCommitSecondDate","handleToggle","opened","event","_firstInputRef$curren","_secondInputRef$curre","isCalendarOpen","contains","target","RangeComponent","React","createElement","Fragment","StyledRange","firstValue","secondValue","onSearchFirstValue","_","date","String","_rangeRef$current3","focus","onSearchSecondValue","_rangeRef$current4","useEffect","_rangeRef$current5","_rangeRef$current6","_extends","cx","classes","datePickerRoot","StyledLabel","RangeDatePopover","calendarValue","onChangeStartOfRange","firstDate","_ref2","_ref3","secondDate","LeftHelper","datePickerRangeConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","readOnlyCSS","defaults"],"mappings":";;;;;;;;;;;;;;IA0BaA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAC5BC,IAAwG,EAAA;AAAA,EAAA,oBAExGC,UAAU,CACN,UAAAC,IAAA,EAiEIC,GAAG,EACF;IAAA,IAAAC,iBAAA,EAAAC,kBAAA,CAAA;AAAA,IAAA,IAhEGC,SAAS,GAAAJ,IAAA,CAATI,SAAS;MAAAC,qBAAA,GAAAL,IAAA,CAETM,gBAAgB;AAAhBA,MAAAA,gBAAgB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,qBAAA;MAAAE,WAAA,GAAAP,IAAA,CACxBQ,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;MAEdE,KAAK,GAAAT,IAAA,CAALS,KAAK;MACLC,UAAU,GAAAV,IAAA,CAAVU,UAAU;MACVC,WAAW,GAAAX,IAAA,CAAXW,WAAW;MACXC,YAAY,GAAAZ,IAAA,CAAZY,YAAY;MACZC,IAAI,GAAAb,IAAA,CAAJa,IAAI;MACJC,IAAI,GAAAd,IAAA,CAAJc,IAAI;MAAAC,aAAA,GAAAf,IAAA,CACJgB,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,aAAA,GAAAjB,IAAA,CAChBkB,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,mBAAA,GAAAnB,IAAA,CAEhBoB,cAAc;AAAdA,MAAAA,cAAc,GAAAD,mBAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,mBAAA;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AAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRhK,IAAAA,IAAI,EAAE;AACFiK,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDjK,IAAAA,IAAI,EAAE;AACFgK,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACD9J,IAAAA,QAAQ,EAAE;AACN4J,MAAAA,GAAG,EAAEG,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDlK,IAAAA,QAAQ,EAAE;AACN8J,MAAAA,GAAG,EAAEK,MAAW;AAChBD,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDE,EAAAA,QAAQ,EAAE;AACNtK,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- import './DatePicker.styles_1aihs63.css';
1
+ import './DatePicker.styles_6cvsgx.css';
2
2
  import { styled } from '@linaria/react';
3
3
  import '@linaria/core';
4
4
  import { component, mergeConfig } from '../../../engines/common.js';
@@ -28,6 +28,16 @@ var StyledRange = /*#__PURE__*/styled(_exp2())({
28
28
  propsAsIs: true
29
29
  });
30
30
  var base = "b1mbbfog";
31
+ var StyledLabel = /*#__PURE__*/styled('label')({
32
+ name: "StyledLabel",
33
+ "class": "s1e76aix",
34
+ propsAsIs: false
35
+ });
36
+ var LeftHelper = /*#__PURE__*/styled('div')({
37
+ name: "LeftHelper",
38
+ "class": "l1jb75sx",
39
+ propsAsIs: false
40
+ });
31
41
 
32
- export { StyledPopover, StyledRange, base };
42
+ export { LeftHelper, StyledLabel, StyledPopover, StyledRange, base };
33
43
  //# sourceMappingURL=DatePicker.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.styles.js","sources":["../../../../src/components/DatePicker/RangeDate/DatePicker.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component, mergeConfig } from '../../../engines';\nimport { rangeConfig, rangeTokens } from '../../Range';\nimport { tokens } from '../DatePicker.tokens';\nimport { popoverConfig } from '../../Popover';\n\nconst mergedRangeConfig = mergeConfig(rangeConfig);\nconst Range = component(mergedRangeConfig);\n\nconst mergedPopoverConfig = mergeConfig(popoverConfig);\nconst Popover = component(mergedPopoverConfig);\n\nexport const StyledPopover = styled(Popover)``;\n\n// NOTE: переопределение токенов Range\nexport const StyledRange = styled(Range)`\n ${rangeTokens.background}: var(${tokens.background});\n ${rangeTokens.backgroundError}: var(${tokens.backgroundError});\n ${rangeTokens.backgroundSuccess}: var(${tokens.backgroundSuccess});\n \n ${rangeTokens.borderColor}: var(${tokens.borderColor});\n ${rangeTokens.borderColorError}: var(${tokens.borderColorError});\n ${rangeTokens.borderColorSuccess}: var(${tokens.borderColorSuccess});\n \n ${rangeTokens.borderWidth}: var(${tokens.textFieldBorderWidth});\n\n ${rangeTokens.dividerColor}: var(${tokens.dividerColor});\n ${rangeTokens.labelColor}: var(${tokens.labelColor});\n ${rangeTokens.leftHelperColor}: var(${tokens.leftHelperColor});\n\n ${rangeTokens.textFieldColor}: var(${tokens.textFieldColor});\n ${rangeTokens.textFieldPlaceholderColor}: var(${tokens.textFieldPlaceholderColor});\n ${rangeTokens.textFieldCaretColor}: var(${tokens.textFieldCaretColor});\n\n ${rangeTokens.textFieldBackgroundColorFocus}: var(${tokens.textFieldBackgroundColorFocus});\n ${rangeTokens.textFieldBackgroundErrorColor}: var(${tokens.textFieldBackgroundErrorColor});\n ${rangeTokens.textFieldBackgroundErrorColorFocus}: var(${tokens.textFieldBackgroundErrorColorFocus});\n ${rangeTokens.textFieldBackgroundSuccessColor}: var(${tokens.textFieldBackgroundSuccessColor});\n ${rangeTokens.textFieldBackgroundSuccessColorFocus}: var(${tokens.textFieldBackgroundSuccessColorFocus});\n\n ${rangeTokens.textFieldBorderWidth}: var(${tokens.textFieldBorderWidth});\n ${rangeTokens.textFieldBorderColorFocus}: var(${tokens.textFieldBorderColorFocus});\n ${rangeTokens.textFieldBorderColorError}: var(${tokens.textFieldBorderColorError});\n ${rangeTokens.textFieldBorderColorErrorFocus}: var(${tokens.textFieldBorderColorErrorFocus});\n ${rangeTokens.textFieldBorderColorSuccess}: var(${tokens.textFieldBorderColorSuccess});\n ${rangeTokens.textFieldBorderColorSuccessFocus}: var(${tokens.textFieldBorderColorSuccessFocus});\n\n ${rangeTokens.textFieldTextBeforeColor}: var(${tokens.textFieldTextBeforeColor});\n ${rangeTokens.textFieldTextAfterColor}: var(${tokens.textFieldTextAfterColor});\n\n ${rangeTokens.focusColor}: var(${tokens.focusColor});\n\n ${rangeTokens.borderRadius}: var(${tokens.borderRadius});\n\n ${rangeTokens.dividerPadding}: var(${tokens.dividerPadding});\n ${rangeTokens.dividerFontFamily}: var(${tokens.dividerFontFamily});\n ${rangeTokens.dividerFontStyle}: var(${tokens.dividerFontStyle});\n ${rangeTokens.dividerFontSize}: var(${tokens.dividerFontSize});\n ${rangeTokens.dividerFontWeight}: var(${tokens.dividerFontWeight});\n ${rangeTokens.dividerLetterSpacing}: var(${tokens.dividerLetterSpacing});\n ${rangeTokens.dividerLineHeight}: var(${tokens.dividerLineHeight});\n\n ${rangeTokens.leftContentMargin}: var(${tokens.leftContentMargin});\n ${rangeTokens.rightContentMargin}: var(${tokens.rightContentMargin});\n\n ${rangeTokens.labelOffset}: var(${tokens.labelOffset});\n\n ${rangeTokens.labelFontFamily}: var(${tokens.labelFontFamily});\n ${rangeTokens.labelFontStyle}: var(${tokens.labelFontStyle});\n ${rangeTokens.labelFontSize}: var(${tokens.labelFontSize});\n ${rangeTokens.labelFontWeight}: var(${tokens.labelFontWeight});\n ${rangeTokens.labelLetterSpacing}: var(${tokens.labelLetterSpacing});\n ${rangeTokens.labelLineHeight}: var(${tokens.labelLineHeight});\n\n ${rangeTokens.textFieldHeight}: var(${tokens.textFieldHeight});\n ${rangeTokens.textFieldBorderRadius}: var(${tokens.textFieldBorderRadius});\n ${rangeTokens.textFieldPadding}: var(${tokens.textFieldPadding});\n ${rangeTokens.textFieldFontFamily}: var(${tokens.textFieldFontFamily});\n ${rangeTokens.textFieldFontStyle}: var(${tokens.textFieldFontStyle});\n ${rangeTokens.textFieldFontSize}: var(${tokens.textFieldFontSize});\n ${rangeTokens.textFieldFontWeight}: var(${tokens.textFieldFontWeight});\n ${rangeTokens.textFieldLetterSpacing}: var(${tokens.textFieldLetterSpacing});\n ${rangeTokens.textFieldLineHeight}: var(${tokens.textFieldLineHeight});\n\n ${rangeTokens.leftHelperOffset}: var(${tokens.leftHelperOffset});\n ${rangeTokens.leftHelperFontFamily}: var(${tokens.leftHelperFontFamily});\n ${rangeTokens.leftHelperFontStyle}: var(${tokens.leftHelperFontStyle});\n ${rangeTokens.leftHelperFontSize}: var(${tokens.leftHelperFontSize});\n ${rangeTokens.leftHelperFontWeight}: var(${tokens.leftHelperFontWeight});\n ${rangeTokens.leftHelperLetterSpacing}: var(${tokens.leftHelperLetterSpacing});\n ${rangeTokens.leftHelperLineHeight}: var(${tokens.leftHelperLineHeight});\n\n ${rangeTokens.textFieldLeftContentMargin}: var(${tokens.textFieldLeftContentMargin});\n ${rangeTokens.textFieldRightContentMargin}: var(${tokens.textFieldRightContentMargin});\n ${rangeTokens.textFieldTextBeforeMargin}: var(${tokens.textFieldTextBeforeMargin});\n ${rangeTokens.textFieldTextAfterMargin}: var(${tokens.textFieldTextAfterMargin});\n\n ${rangeTokens.backgroundReadOnly}: var(${tokens.backgroundReadOnly});\n ${rangeTokens.labelColorReadOnly}: var(${tokens.labelColorReadOnly});\n ${rangeTokens.leftHelperColorReadOnly}: var(${tokens.leftHelperColorReadOnly});\n ${rangeTokens.dividerColorReadOnly}: var(${tokens.dividerColorReadOnly});\n\n ${rangeTokens.textFieldColorReadOnly}: var(${tokens.textFieldColorReadOnly});\n ${rangeTokens.textFieldBackgroundColorReadOnly}: var(${tokens.textFieldBackgroundColorReadOnly});\n ${rangeTokens.textFieldPlaceholderColorReadOnly}: var(${tokens.textFieldPlaceholderColorReadOnly});\n`;\n\nexport const base = css``;\n"],"names":["mergedRangeConfig","mergeConfig","rangeConfig","Range","component","mergedPopoverConfig","popoverConfig","Popover","_exp","StyledPopover","styled","name","class","propsAsIs","_exp2","StyledRange","base"],"mappings":";;;;;;AAQA,IAAMA,iBAAiB,gBAAGC,WAAW,CAACC,WAAW,CAAC,CAAA;AAClD,IAAMC,KAAK,gBAAGC,SAAS,CAACJ,iBAAiB,CAAC,CAAA;AAE1C,IAAMK,mBAAmB,gBAAGJ,WAAW,CAACK,aAAa,CAAC,CAAA;AACtD,IAAMC,OAAO,gBAAGH,SAAS,CAACC,mBAAmB,CAAC,CAAA;AAAC,IAAAG,IAAA,GAX7BA,SAW6BA,IAAAA,GAAA;AAAA,EAAA,OAEXD,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAME,aAAa,gBAAGC,MAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAAW,EAAA;;AAE9C;AAAA,IAAAC,KAAA,GAfkBA,SAelBA,KAAAA,GAAA;AAAA,EAAA,OACkCX,KAAK,CAAA;AAAA,CAAA,CAAA;AAAhC,IAAMY,WAAW,gBAAGL,MAAM,CAAAI,KAAA,EAAA,CAAA,CAAA;AAAAH,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA0FhC,EAAA;AAEM,IAAMG,IAAI,GAAQ;;;;"}
1
+ {"version":3,"file":"DatePicker.styles.js","sources":["../../../../src/components/DatePicker/RangeDate/DatePicker.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component, mergeConfig } from '../../../engines';\nimport { rangeConfig, rangeTokens } from '../../Range';\nimport { tokens } from '../DatePicker.tokens';\nimport { popoverConfig } from '../../Popover';\n\nconst mergedRangeConfig = mergeConfig(rangeConfig);\nconst Range = component(mergedRangeConfig);\n\nconst mergedPopoverConfig = mergeConfig(popoverConfig);\nconst Popover = component(mergedPopoverConfig);\n\nexport const StyledPopover = styled(Popover)``;\n\n// NOTE: переопределение токенов Range\nexport const StyledRange = styled(Range)`\n ${rangeTokens.background}: var(${tokens.background});\n ${rangeTokens.backgroundError}: var(${tokens.backgroundError});\n ${rangeTokens.backgroundSuccess}: var(${tokens.backgroundSuccess});\n \n ${rangeTokens.borderColor}: var(${tokens.borderColor});\n ${rangeTokens.borderColorError}: var(${tokens.borderColorError});\n ${rangeTokens.borderColorSuccess}: var(${tokens.borderColorSuccess});\n \n ${rangeTokens.borderWidth}: var(${tokens.textFieldBorderWidth});\n\n ${rangeTokens.dividerColor}: var(${tokens.dividerColor});\n ${rangeTokens.labelColor}: var(${tokens.labelColor});\n ${rangeTokens.leftHelperColor}: var(${tokens.leftHelperColor});\n\n ${rangeTokens.textFieldColor}: var(${tokens.textFieldColor});\n ${rangeTokens.textFieldPlaceholderColor}: var(${tokens.textFieldPlaceholderColor});\n ${rangeTokens.textFieldCaretColor}: var(${tokens.textFieldCaretColor});\n\n ${rangeTokens.textFieldBackgroundColorFocus}: var(${tokens.textFieldBackgroundColorFocus});\n ${rangeTokens.textFieldBackgroundErrorColor}: var(${tokens.textFieldBackgroundErrorColor});\n ${rangeTokens.textFieldBackgroundErrorColorFocus}: var(${tokens.textFieldBackgroundErrorColorFocus});\n ${rangeTokens.textFieldBackgroundSuccessColor}: var(${tokens.textFieldBackgroundSuccessColor});\n ${rangeTokens.textFieldBackgroundSuccessColorFocus}: var(${tokens.textFieldBackgroundSuccessColorFocus});\n\n ${rangeTokens.textFieldBorderWidth}: var(${tokens.textFieldBorderWidth});\n ${rangeTokens.textFieldBorderColorFocus}: var(${tokens.textFieldBorderColorFocus});\n ${rangeTokens.textFieldBorderColorError}: var(${tokens.textFieldBorderColorError});\n ${rangeTokens.textFieldBorderColorErrorFocus}: var(${tokens.textFieldBorderColorErrorFocus});\n ${rangeTokens.textFieldBorderColorSuccess}: var(${tokens.textFieldBorderColorSuccess});\n ${rangeTokens.textFieldBorderColorSuccessFocus}: var(${tokens.textFieldBorderColorSuccessFocus});\n\n ${rangeTokens.textFieldTextBeforeColor}: var(${tokens.textFieldTextBeforeColor});\n ${rangeTokens.textFieldTextAfterColor}: var(${tokens.textFieldTextAfterColor});\n\n ${rangeTokens.focusColor}: var(${tokens.focusColor});\n\n ${rangeTokens.borderRadius}: var(${tokens.borderRadius});\n\n ${rangeTokens.dividerPadding}: var(${tokens.dividerPadding});\n ${rangeTokens.dividerFontFamily}: var(${tokens.dividerFontFamily});\n ${rangeTokens.dividerFontStyle}: var(${tokens.dividerFontStyle});\n ${rangeTokens.dividerFontSize}: var(${tokens.dividerFontSize});\n ${rangeTokens.dividerFontWeight}: var(${tokens.dividerFontWeight});\n ${rangeTokens.dividerLetterSpacing}: var(${tokens.dividerLetterSpacing});\n ${rangeTokens.dividerLineHeight}: var(${tokens.dividerLineHeight});\n\n ${rangeTokens.leftContentMargin}: var(${tokens.leftContentMargin});\n ${rangeTokens.rightContentMargin}: var(${tokens.rightContentMargin});\n\n ${rangeTokens.labelOffset}: var(${tokens.labelOffset});\n\n ${rangeTokens.labelFontFamily}: var(${tokens.labelFontFamily});\n ${rangeTokens.labelFontStyle}: var(${tokens.labelFontStyle});\n ${rangeTokens.labelFontSize}: var(${tokens.labelFontSize});\n ${rangeTokens.labelFontWeight}: var(${tokens.labelFontWeight});\n ${rangeTokens.labelLetterSpacing}: var(${tokens.labelLetterSpacing});\n ${rangeTokens.labelLineHeight}: var(${tokens.labelLineHeight});\n\n ${rangeTokens.textFieldHeight}: var(${tokens.textFieldHeight});\n ${rangeTokens.textFieldBorderRadius}: var(${tokens.textFieldBorderRadius});\n ${rangeTokens.textFieldPadding}: var(${tokens.textFieldPadding});\n ${rangeTokens.textFieldFontFamily}: var(${tokens.textFieldFontFamily});\n ${rangeTokens.textFieldFontStyle}: var(${tokens.textFieldFontStyle});\n ${rangeTokens.textFieldFontSize}: var(${tokens.textFieldFontSize});\n ${rangeTokens.textFieldFontWeight}: var(${tokens.textFieldFontWeight});\n ${rangeTokens.textFieldLetterSpacing}: var(${tokens.textFieldLetterSpacing});\n ${rangeTokens.textFieldLineHeight}: var(${tokens.textFieldLineHeight});\n\n ${rangeTokens.leftHelperOffset}: var(${tokens.leftHelperOffset});\n ${rangeTokens.leftHelperFontFamily}: var(${tokens.leftHelperFontFamily});\n ${rangeTokens.leftHelperFontStyle}: var(${tokens.leftHelperFontStyle});\n ${rangeTokens.leftHelperFontSize}: var(${tokens.leftHelperFontSize});\n ${rangeTokens.leftHelperFontWeight}: var(${tokens.leftHelperFontWeight});\n ${rangeTokens.leftHelperLetterSpacing}: var(${tokens.leftHelperLetterSpacing});\n ${rangeTokens.leftHelperLineHeight}: var(${tokens.leftHelperLineHeight});\n\n ${rangeTokens.textFieldLeftContentMargin}: var(${tokens.textFieldLeftContentMargin});\n ${rangeTokens.textFieldRightContentMargin}: var(${tokens.textFieldRightContentMargin});\n ${rangeTokens.textFieldTextBeforeMargin}: var(${tokens.textFieldTextBeforeMargin});\n ${rangeTokens.textFieldTextAfterMargin}: var(${tokens.textFieldTextAfterMargin});\n\n ${rangeTokens.backgroundReadOnly}: var(${tokens.backgroundReadOnly});\n ${rangeTokens.labelColorReadOnly}: var(${tokens.labelColorReadOnly});\n ${rangeTokens.leftHelperColorReadOnly}: var(${tokens.leftHelperColorReadOnly});\n ${rangeTokens.dividerColorReadOnly}: var(${tokens.dividerColorReadOnly});\n\n ${rangeTokens.textFieldColorReadOnly}: var(${tokens.textFieldColorReadOnly});\n ${rangeTokens.textFieldBackgroundColorReadOnly}: var(${tokens.textFieldBackgroundColorReadOnly});\n ${rangeTokens.textFieldPlaceholderColorReadOnly}: var(${tokens.textFieldPlaceholderColorReadOnly});\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":["mergedRangeConfig","mergeConfig","rangeConfig","Range","component","mergedPopoverConfig","popoverConfig","Popover","_exp","StyledPopover","styled","name","class","propsAsIs","_exp2","StyledRange","base","StyledLabel","LeftHelper"],"mappings":";;;;;;AAQA,IAAMA,iBAAiB,gBAAGC,WAAW,CAACC,WAAW,CAAC,CAAA;AAClD,IAAMC,KAAK,gBAAGC,SAAS,CAACJ,iBAAiB,CAAC,CAAA;AAE1C,IAAMK,mBAAmB,gBAAGJ,WAAW,CAACK,aAAa,CAAC,CAAA;AACtD,IAAMC,OAAO,gBAAGH,SAAS,CAACC,mBAAmB,CAAC,CAAA;AAAC,IAAAG,IAAA,GAX7BA,SAW6BA,IAAAA,GAAA;AAAA,EAAA,OAEXD,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAME,aAAa,gBAAGC,MAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAAW,EAAA;;AAE9C;AAAA,IAAAC,KAAA,GAfkBA,SAelBA,KAAAA,GAAA;AAAA,EAAA,OACkCX,KAAK,CAAA;AAAA,CAAA,CAAA;AAAhC,IAAMY,WAAW,gBAAGL,MAAM,CAAAI,KAAA,EAAA,CAAA,CAAA;AAAAH,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA0FhC,EAAA;AAEM,IAAMG,IAAI,GAEhB,WAAA;AAEM,IAAMC,WAAW,gBAAGP,MAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAQ,EAAA;AAElC,IAAMK,UAAU,gBAAGR,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM;;;;"}
@@ -1,3 +1,5 @@
1
1
 
2
2
  .s14tzje9{--plasma-range-background:var(--plasma-date-picker_range-background);--plasma-range-background-error:var(--plasma-date-picker_range-background-error);--plasma-range-background-success:var(--plasma-date-picker_range-background-success);--plasma-range-border-color:var(--plasma-date-picker_range-border-color);--plasma-range-border-color-error:var(--plasma-date-picker_range-border-color-error);--plasma-range-border-color-success:var(--plasma-date-picker_range-border-color-success);--plasma-range-border-width:var(--plasma-date-picker-textfield-border-width);--plasma-range__divider-color:var(--plasma-date-picker_range__divider-color);--plasma-range__label-color:var(--plasma-date-picker__label-color);--plasma-range__left-helper-color:var(--plasma-date-picker__left-helper-color);--plasma-range-textfield-color:var(--plasma-date-picker-textfield-color);--plasma-range-textfield-placeholder-color:var(--plasma-date-picker-textfield-placeholder-color);--plasma-range-textfield-caret-color:var(--plasma-date-picker-textfield-caret-color);--plasma-range-textfield-background-color-focus:var(--plasma-date-picker-textfield-background-color-focus);--plasma-range-textfield-background-color-error:var(--plasma-date-picker-textfield-background-color-error);--plasma-range-textfield-background-color-error-focus:var(--plasma-date-picker-textfield-background-color-error-focus);--plasma-range-textfield-background-color-success:var(--plasma-date-picker-textfield-background-color-success);--plasma-range-textfield-background-color-success-focus:var(--plasma-date-picker-textfield-background-color-success-focus);--plasma-range-textfield-border-width:var(--plasma-date-picker-textfield-border-width);--plasma-range-textfield-border-color-focus:var(--plasma-date-picker-textfield-border-color-focus);--plasma-range-textfield-border-color-error:var(--plasma-date-picker-textfield-border-color-error);--plasma-range-textfield-border-color-error-focus:var(--plasma-date-picker-textfield-border-color-error-focus);--plasma-range-textfield-border-color-success:var(--plasma-date-picker-textfield-border-color-success);--plasma-range-textfield-border-color-success-focus:var(--plasma-date-picker-textfield-border-color-success-focus);--plasma-range-textfield__before-text-color:var(--plasma-date-picker-textfield__before-text-color);--plasma-range-textfield__after-text-color:var(--plasma-date-picker-textfield__after-text-color);--plasma-range-focus-color:var(--plasma-date-picker-focus-color);--plasma-range-border-radius:var(--plasma-date-picker_range-border-radius);--plasma-range__divider-padding:var(--plasma-date-picker_range__divider-padding);--plasma-range__divider-font-family:var(--plasma-date-picker_range__divider-font-family);--plasma-range__divider-font-style:var(--plasma-date-picker_range__divider-font-style);--plasma-range__divider-font-size:var(--plasma-date-picker_range__divider-font-size);--plasma-range__divider-font-weight:var(--plasma-date-picker_range__divider-font-weight);--plasma-range__divider-letter-spacing:var(--plasma-date-picker_range__divider-letter-spacing);--plasma-range__divider-line-height:var(--plasma-date-picker_range__divider-line-height);--plasma-range__left-content-margin:var(--plasma-date-picker_range__left-content-margin);--plasma-range__right-content-margin:var(--plasma-date-picker_range__right-content-margin);--plasma-range__label-offset:var(--plasma-date-picker__label-offset);--plasma-range__label-font-family:var(--plasma-date-picker__label-font-family);--plasma-range__label-font-style:var(--plasma-date-picker__label-font-style);--plasma-range__label-font-size:var(--plasma-date-picker__label-font-size);--plasma-range__label-font-weight:var(--plasma-date-picker__label-font-weight);--plasma-range__label-letter-spacing:var(--plasma-date-picker__label-letter-spacing);--plasma-range__label-line-height:var(--plasma-date-picker__label-line-height);--plasma-range-textfield-height:var(--plasma-date-picker-textfield-height);--plasma-range-textfield-border-radius:var(--plasma-date-picker-textfield-border-radius);--plasma-range-textfield-padding:var(--plasma-date-picker-textfield-padding);--plasma-range-textfield-font-family:var(--plasma-date-picker-textfield-font-family);--plasma-range-textfield-font-style:var(--plasma-date-picker-textfield-font-style);--plasma-range-textfield-font-size:var(--plasma-date-picker-textfield-font-size);--plasma-range-textfield-font-weight:var(--plasma-date-picker-textfield-font-weight);--plasma-range-textfield-letter-spacing:var(--plasma-date-picker-textfield-letter-spacing);--plasma-range-textfield-line-height:var(--plasma-date-picker-textfield-line-height);--plasma-range__left-helper-offset:var(--plasma-date-picker__left-helper-offset);--plasma-range__left-helper-font-family:var(--plasma-date-picker__left-helper-font-family);--plasma-range__left-helper-font-style:var(--plasma-date-picker__left-helper-font-style);--plasma-range__left-helper-font-size:var(--plasma-date-picker__left-helper-font-size);--plasma-range__left-helper-font-weight:var(--plasma-date-picker__left-helper-font-weight);--plasma-range__left-helper-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);--plasma-range__left-helper-line-height:var(--plasma-date-picker__left-helper-line-height);--plasma-range-textfield__left-content-margin:var(--plasma-date-picker-textfield__left-content-margin);--plasma-range-textfield__right-content-margin:var(--plasma-date-picker-textfield__right-content-margin);--plasma-range-textfield__before-text-margin:var(--plasma-date-picker-textfield__before-text-margin);--plasma-range-textfield__after-text-margin:var(--plasma-date-picker-textfield__after-text-margin);--plasma-range-background-readonly:var(--plasma-date-picker_range-background-readonly);--plasma-range__label-color-readonly:var(--plasma-date-picker__label-color-readonly);--plasma-range__left-helper-color-readonly:var(--plasma-date-picker__left-helper-color-readonly);--plasma-range__divider-color-readonly:var(--plasma-date-picker_range__divider-color-readonly);--plasma-range-textfield-color-readonly:var(--plasma-date-picker-textfield-color-readonly);--plasma-range-textfield-background-color-readonly:var(--plasma-date-picker-textfield-background-color-readonly);--plasma-range-textfield-placeholder-color-readonly:var(--plasma-date-picker-textfield-placeholder-color-readonly);}
3
+ .b1mbbfog{display:inline-block;}
4
+
3
5