@salutejs/plasma-new-hope 0.93.0-canary.1224.9678231866.0 → 0.93.0-canary.1252.9678189355.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (633) hide show
  1. package/cjs/components/Calendar/Calendar.tokens.js +28 -67
  2. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  3. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  4. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +29 -57
  5. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -6
  6. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  7. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  8. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  9. package/cjs/components/Calendar/CalendarBase/{CalendarBase.styles_1m6uih1.css → CalendarBase.styles_rv9ax9.css} +1 -1
  10. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +30 -58
  11. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -6
  12. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  13. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  14. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  15. package/{es/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.css → cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_1rc2ejs.css} +2 -2
  16. package/cjs/components/Calendar/hoc/withRange.js.map +1 -1
  17. package/cjs/components/Calendar/hooks/useDays.js +1 -1
  18. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  19. package/cjs/components/Calendar/mixins/index.js +18 -0
  20. package/cjs/components/Calendar/mixins/index.js.map +1 -0
  21. package/cjs/components/Calendar/mixins/index_o3bz9l.css +1 -0
  22. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  23. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  24. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  25. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +4 -0
  26. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  27. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  28. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  29. package/{es/components/Calendar/ui/CalendarDays/CalendarDays.styles_1oq8sud.css → cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles_bnrjbd.css} +1 -1
  30. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -36
  31. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +17 -31
  32. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  33. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +12 -27
  34. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  35. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +6 -0
  36. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  37. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  38. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  39. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  40. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  41. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +4 -0
  42. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  44. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  45. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  46. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  47. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +4 -0
  48. package/cjs/components/Calendar/utils/index.js.map +1 -1
  49. package/cjs/components/Combobox/Combobox.js +2 -2
  50. package/cjs/components/Combobox/Combobox.js.map +1 -1
  51. package/cjs/components/Dropdown/Dropdown.js +2 -4
  52. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  53. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  54. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  55. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  56. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  57. package/cjs/components/Dropdown/utils/index.js +17 -0
  58. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  59. package/cjs/components/Range/Range.css +6 -6
  60. package/cjs/components/Range/Range.js +2 -17
  61. package/cjs/components/Range/Range.js.map +1 -1
  62. package/cjs/components/Range/Range.styles.js +1 -1
  63. package/cjs/components/Range/Range.styles.js.map +1 -1
  64. package/cjs/components/Range/Range.styles_mc4w65.css +8 -0
  65. package/cjs/components/Segment/SegmentProvider/SegmentProvider.js +4 -5
  66. package/cjs/components/Segment/SegmentProvider/SegmentProvider.js.map +1 -1
  67. package/cjs/components/Select/Select.js +2 -2
  68. package/cjs/components/Select/Select.js.map +1 -1
  69. package/cjs/components/Slider/Slider.css +3 -3
  70. package/cjs/components/Slider/components/Double/Double.css +3 -3
  71. package/cjs/components/TextField/TextField.tokens.js +1 -1
  72. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  73. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  74. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +1 -0
  75. package/cjs/components/TextField/variations/_size/base.js +1 -1
  76. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  77. package/cjs/components/TextField/variations/_size/base_ntoddv.css +1 -0
  78. package/cjs/components/TextField/variations/_view/base.js +1 -1
  79. package/cjs/components/TextField/variations/_view/base_19gxyva.css +1 -0
  80. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  81. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  82. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  83. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  84. package/cjs/index.css +38 -71
  85. package/cjs/index.js +0 -12
  86. package/cjs/index.js.map +1 -1
  87. package/cjs/utils/index.js.map +1 -1
  88. package/es/components/Calendar/Calendar.tokens.js +28 -67
  89. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  90. package/es/components/Calendar/Calendar.types.js.map +1 -1
  91. package/es/components/Calendar/CalendarBase/CalendarBase.css +29 -57
  92. package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -7
  93. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  94. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  95. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  96. package/es/components/Calendar/CalendarBase/{CalendarBase.styles_1m6uih1.css → CalendarBase.styles_rv9ax9.css} +1 -1
  97. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +30 -58
  98. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -7
  99. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  100. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  101. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  102. package/{cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.css → es/components/Calendar/CalendarDouble/CalendarDouble.styles_1rc2ejs.css} +2 -2
  103. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  104. package/es/components/Calendar/hooks/useDays.js +1 -1
  105. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  106. package/es/components/Calendar/mixins/index.js +14 -0
  107. package/es/components/Calendar/mixins/index.js.map +1 -0
  108. package/es/components/Calendar/mixins/index_o3bz9l.css +1 -0
  109. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  110. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  111. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  112. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +4 -0
  113. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  114. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  115. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  116. package/{cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles_1oq8sud.css → es/components/Calendar/ui/CalendarDays/CalendarDays.styles_bnrjbd.css} +1 -1
  117. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -36
  118. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +18 -32
  119. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  120. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +13 -26
  121. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  122. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +6 -0
  123. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  124. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  125. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  126. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  127. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  128. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +4 -0
  129. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  130. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  131. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  132. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  133. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  134. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +4 -0
  135. package/es/components/Calendar/utils/index.js.map +1 -1
  136. package/es/components/Combobox/Combobox.js +1 -1
  137. package/es/components/Combobox/Combobox.js.map +1 -1
  138. package/es/components/Dropdown/Dropdown.js +2 -4
  139. package/es/components/Dropdown/Dropdown.js.map +1 -1
  140. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  141. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  142. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  143. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  144. package/es/components/Dropdown/utils/index.js +16 -1
  145. package/es/components/Dropdown/utils/index.js.map +1 -1
  146. package/es/components/Range/Range.css +6 -6
  147. package/es/components/Range/Range.js +3 -18
  148. package/es/components/Range/Range.js.map +1 -1
  149. package/es/components/Range/Range.styles.js +1 -1
  150. package/es/components/Range/Range.styles.js.map +1 -1
  151. package/es/components/Range/Range.styles_mc4w65.css +8 -0
  152. package/es/components/Segment/SegmentProvider/SegmentProvider.js +5 -6
  153. package/es/components/Segment/SegmentProvider/SegmentProvider.js.map +1 -1
  154. package/es/components/Select/Select.js +1 -1
  155. package/es/components/Select/Select.js.map +1 -1
  156. package/es/components/Slider/Slider.css +3 -3
  157. package/es/components/Slider/components/Double/Double.css +3 -3
  158. package/es/components/TextField/TextField.tokens.js +1 -1
  159. package/es/components/TextField/TextField.tokens.js.map +1 -1
  160. package/es/components/TextField/variations/_read-only/base.js +1 -1
  161. package/es/components/TextField/variations/_read-only/base_134hshp.css +1 -0
  162. package/es/components/TextField/variations/_size/base.js +1 -1
  163. package/es/components/TextField/variations/_size/base.js.map +1 -1
  164. package/es/components/TextField/variations/_size/base_ntoddv.css +1 -0
  165. package/es/components/TextField/variations/_view/base.js +1 -1
  166. package/es/components/TextField/variations/_view/base_19gxyva.css +1 -0
  167. package/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  168. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  169. package/es/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  170. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  171. package/es/index.css +38 -71
  172. package/es/index.js +0 -4
  173. package/es/index.js.map +1 -1
  174. package/es/utils/index.js.map +1 -1
  175. package/package.json +2 -3
  176. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +28 -67
  177. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -6
  178. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -2
  179. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -6
  180. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  181. package/styled-components/cjs/components/Calendar/hooks/useDays.js +1 -1
  182. package/styled-components/cjs/components/Calendar/mixins/index.js +29 -30
  183. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +20 -27
  184. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -2
  185. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +16 -30
  186. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -29
  187. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  188. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +12 -26
  189. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  190. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +14 -26
  191. package/styled-components/cjs/components/Combobox/Combobox.js +7 -6
  192. package/styled-components/cjs/components/Dropdown/Dropdown.js +2 -3
  193. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  194. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  195. package/styled-components/cjs/components/Dropdown/utils/index.js +16 -1
  196. package/styled-components/cjs/components/Range/Range.js +2 -17
  197. package/styled-components/cjs/components/Range/Range.styles.js +2 -3
  198. package/styled-components/cjs/components/Segment/Segment.template-doc.mdx +7 -2
  199. package/styled-components/cjs/components/Segment/SegmentProvider/SegmentProvider.js +4 -5
  200. package/styled-components/cjs/components/Select/Select.js +8 -7
  201. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -1
  202. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  203. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  204. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  205. package/styled-components/cjs/components/_Icon/index.js +0 -7
  206. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +6 -24
  207. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -5
  208. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -5
  209. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  210. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +6 -24
  211. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -5
  212. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -5
  213. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +4 -4
  214. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +6 -24
  215. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -5
  216. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -5
  217. package/styled-components/cjs/index.js +0 -11
  218. package/styled-components/cjs/utils/index.js +0 -22
  219. package/styled-components/es/components/Calendar/Calendar.tokens.js +28 -67
  220. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -7
  221. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -2
  222. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -7
  223. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  224. package/styled-components/es/components/Calendar/hooks/useDays.js +1 -1
  225. package/styled-components/es/components/Calendar/mixins/index.js +27 -3
  226. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +19 -26
  227. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -2
  228. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +18 -32
  229. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -29
  230. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  231. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +11 -25
  232. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  233. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +13 -25
  234. package/styled-components/es/components/Combobox/Combobox.js +2 -1
  235. package/styled-components/es/components/Dropdown/Dropdown.js +3 -4
  236. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  237. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  238. package/styled-components/es/components/Dropdown/utils/index.js +15 -0
  239. package/styled-components/es/components/Range/Range.js +3 -18
  240. package/styled-components/es/components/Range/Range.styles.js +2 -3
  241. package/styled-components/es/components/Segment/Segment.template-doc.mdx +7 -2
  242. package/styled-components/es/components/Segment/SegmentProvider/SegmentProvider.js +5 -6
  243. package/styled-components/es/components/Select/Select.js +2 -1
  244. package/styled-components/es/components/TextField/TextField.tokens.js +1 -1
  245. package/styled-components/es/components/TextField/variations/_size/base.js +1 -1
  246. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  247. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  248. package/styled-components/es/components/_Icon/index.js +0 -1
  249. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +6 -24
  250. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -5
  251. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -5
  252. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  253. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +6 -24
  254. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -5
  255. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -5
  256. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +4 -4
  257. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +6 -24
  258. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -5
  259. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -5
  260. package/styled-components/es/index.js +1 -2
  261. package/styled-components/es/utils/index.js +0 -1
  262. package/types/components/Accordion/utils/index.d.ts +1 -1
  263. package/types/components/Calendar/Calendar.tokens.d.ts +26 -60
  264. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  265. package/types/components/Calendar/Calendar.types.d.ts +1 -1
  266. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  267. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +3 -27
  268. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  269. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  270. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +3 -30
  271. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  272. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  273. package/types/components/Calendar/mixins/index.d.ts +8 -3
  274. package/types/components/Calendar/mixins/index.d.ts.map +1 -1
  275. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
  276. package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
  277. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  278. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +7 -47
  279. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  280. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +0 -1
  281. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
  282. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  283. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  284. package/types/components/Calendar/utils/index.d.ts +1 -1
  285. package/types/components/Calendar/utils/index.d.ts.map +1 -1
  286. package/types/components/Combobox/Combobox.d.ts.map +1 -1
  287. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  288. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  289. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +0 -1
  290. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  291. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  292. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +0 -1
  293. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  294. package/types/components/Dropdown/utils/index.d.ts +3 -1
  295. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  296. package/types/components/Range/Range.d.ts +3 -3
  297. package/types/components/Range/Range.d.ts.map +1 -1
  298. package/types/components/Range/Range.styles.d.ts.map +1 -1
  299. package/types/components/Range/Range.types.d.ts +3 -8
  300. package/types/components/Range/Range.types.d.ts.map +1 -1
  301. package/types/components/Range/index.d.ts +1 -1
  302. package/types/components/Range/index.d.ts.map +1 -1
  303. package/types/components/Segment/SegmentProvider/SegmentProvider.d.ts +3 -3
  304. package/types/components/Segment/SegmentProvider/SegmentProvider.d.ts.map +1 -1
  305. package/types/components/Segment/SegmentProvider/SegmentProvider.types.d.ts +11 -3
  306. package/types/components/Segment/SegmentProvider/SegmentProvider.types.d.ts.map +1 -1
  307. package/types/components/Segment/SegmentProvider/index.d.ts +1 -0
  308. package/types/components/Segment/SegmentProvider/index.d.ts.map +1 -1
  309. package/types/components/Segment/index.d.ts +1 -0
  310. package/types/components/Segment/index.d.ts.map +1 -1
  311. package/types/components/Select/Select.d.ts.map +1 -1
  312. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  313. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  314. package/types/components/_Icon/index.d.ts +0 -1
  315. package/types/components/_Icon/index.d.ts.map +1 -1
  316. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +4 -15
  317. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
  318. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +0 -3
  319. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  320. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +0 -3
  321. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  322. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -3
  323. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  324. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +4 -15
  325. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
  326. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +0 -3
  327. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  328. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +0 -3
  329. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  330. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -3
  331. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  332. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +4 -15
  333. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
  334. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +0 -3
  335. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  336. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +0 -3
  337. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  338. package/types/index.d.ts +0 -1
  339. package/types/index.d.ts.map +1 -1
  340. package/types/utils/index.d.ts +0 -1
  341. package/types/utils/index.d.ts.map +1 -1
  342. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_107vqka.css +0 -4
  343. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +0 -8
  344. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +0 -4
  345. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +0 -4
  346. package/cjs/components/DatePicker/DatePicker.tokens.js +0 -189
  347. package/cjs/components/DatePicker/DatePicker.tokens.js.map +0 -1
  348. package/cjs/components/DatePicker/DatePickerBase.styles.js +0 -30
  349. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +0 -1
  350. package/cjs/components/DatePicker/DatePickerBase.styles_1thp2xv.css +0 -1
  351. package/cjs/components/DatePicker/RangeDate/RangeDate.css +0 -152
  352. package/cjs/components/DatePicker/RangeDate/RangeDate.js +0 -285
  353. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +0 -1
  354. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -51
  355. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +0 -1
  356. package/cjs/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +0 -5
  357. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +0 -144
  358. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -83
  359. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +0 -1
  360. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -42
  361. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +0 -1
  362. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +0 -2
  363. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -9
  364. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js.map +0 -1
  365. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +0 -1
  366. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -9
  367. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +0 -1
  368. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +0 -1
  369. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +0 -9
  370. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +0 -1
  371. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  372. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js +0 -9
  373. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +0 -1
  374. package/cjs/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +0 -1
  375. package/cjs/components/DatePicker/SingleDate/SingleDate.css +0 -134
  376. package/cjs/components/DatePicker/SingleDate/SingleDate.js +0 -183
  377. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +0 -1
  378. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -51
  379. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +0 -1
  380. package/cjs/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +0 -5
  381. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -9
  382. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js.map +0 -1
  383. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +0 -1
  384. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -9
  385. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js.map +0 -1
  386. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +0 -1
  387. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +0 -9
  388. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js.map +0 -1
  389. package/cjs/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +0 -1
  390. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +0 -9
  391. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js.map +0 -1
  392. package/cjs/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +0 -1
  393. package/cjs/components/DatePicker/hooks/useDatePicker.js +0 -79
  394. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +0 -1
  395. package/cjs/components/DatePicker/utils/dateHelper.js +0 -84
  396. package/cjs/components/DatePicker/utils/dateHelper.js.map +0 -1
  397. package/cjs/components/Range/Range.styles_9rort8.css +0 -8
  398. package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +0 -1
  399. package/cjs/components/TextField/variations/_size/base_orwx1f.css +0 -1
  400. package/cjs/components/TextField/variations/_view/base_18ea6z7.css +0 -1
  401. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -23
  402. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +0 -1
  403. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +0 -23
  404. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +0 -1
  405. package/cjs/utils/datejs.js +0 -12
  406. package/cjs/utils/datejs.js.map +0 -1
  407. package/cjs/utils/getPopoverPlacement.js +0 -23
  408. package/cjs/utils/getPopoverPlacement.js.map +0 -1
  409. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_107vqka.css +0 -4
  410. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +0 -8
  411. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +0 -4
  412. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +0 -4
  413. package/es/components/DatePicker/DatePicker.tokens.js +0 -184
  414. package/es/components/DatePicker/DatePicker.tokens.js.map +0 -1
  415. package/es/components/DatePicker/DatePickerBase.styles.js +0 -26
  416. package/es/components/DatePicker/DatePickerBase.styles.js.map +0 -1
  417. package/es/components/DatePicker/DatePickerBase.styles_1thp2xv.css +0 -1
  418. package/es/components/DatePicker/RangeDate/RangeDate.css +0 -152
  419. package/es/components/DatePicker/RangeDate/RangeDate.js +0 -280
  420. package/es/components/DatePicker/RangeDate/RangeDate.js.map +0 -1
  421. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -43
  422. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +0 -1
  423. package/es/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +0 -5
  424. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +0 -144
  425. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -79
  426. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +0 -1
  427. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -37
  428. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +0 -1
  429. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +0 -2
  430. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -5
  431. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js.map +0 -1
  432. package/es/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +0 -1
  433. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -5
  434. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +0 -1
  435. package/es/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +0 -1
  436. package/es/components/DatePicker/RangeDate/variations/_size/base.js +0 -5
  437. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +0 -1
  438. package/es/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  439. package/es/components/DatePicker/RangeDate/variations/_view/base.js +0 -5
  440. package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +0 -1
  441. package/es/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +0 -1
  442. package/es/components/DatePicker/SingleDate/SingleDate.css +0 -134
  443. package/es/components/DatePicker/SingleDate/SingleDate.js +0 -178
  444. package/es/components/DatePicker/SingleDate/SingleDate.js.map +0 -1
  445. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -43
  446. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +0 -1
  447. package/es/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +0 -5
  448. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -5
  449. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js.map +0 -1
  450. package/es/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +0 -1
  451. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -5
  452. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js.map +0 -1
  453. package/es/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +0 -1
  454. package/es/components/DatePicker/SingleDate/variations/_size/base.js +0 -5
  455. package/es/components/DatePicker/SingleDate/variations/_size/base.js.map +0 -1
  456. package/es/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +0 -1
  457. package/es/components/DatePicker/SingleDate/variations/_view/base.js +0 -5
  458. package/es/components/DatePicker/SingleDate/variations/_view/base.js.map +0 -1
  459. package/es/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +0 -1
  460. package/es/components/DatePicker/hooks/useDatePicker.js +0 -75
  461. package/es/components/DatePicker/hooks/useDatePicker.js.map +0 -1
  462. package/es/components/DatePicker/utils/dateHelper.js +0 -76
  463. package/es/components/DatePicker/utils/dateHelper.js.map +0 -1
  464. package/es/components/Range/Range.styles_9rort8.css +0 -8
  465. package/es/components/TextField/variations/_read-only/base_1vu13zn.css +0 -1
  466. package/es/components/TextField/variations/_size/base_orwx1f.css +0 -1
  467. package/es/components/TextField/variations/_view/base_18ea6z7.css +0 -1
  468. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -19
  469. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js.map +0 -1
  470. package/es/components/_Icon/Icons/IconDisclosureDownFill.js +0 -19
  471. package/es/components/_Icon/Icons/IconDisclosureDownFill.js.map +0 -1
  472. package/es/utils/datejs.js +0 -8
  473. package/es/utils/datejs.js.map +0 -1
  474. package/es/utils/getPopoverPlacement.js +0 -18
  475. package/es/utils/getPopoverPlacement.js.map +0 -1
  476. package/styled-components/cjs/components/Calendar/mixins/active.js +0 -12
  477. package/styled-components/cjs/components/Calendar/mixins/flex.js +0 -8
  478. package/styled-components/cjs/components/Calendar/mixins/selected.js +0 -24
  479. package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +0 -150
  480. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +0 -187
  481. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +0 -19
  482. package/styled-components/cjs/components/DatePicker/DatePickerBase.types.js +0 -5
  483. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +0 -293
  484. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -33
  485. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.types.js +0 -5
  486. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -81
  487. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -26
  488. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +0 -5
  489. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -9
  490. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  491. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -10
  492. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/tokens.json +0 -4
  493. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +0 -10
  494. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  495. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/base.js +0 -10
  496. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  497. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +0 -190
  498. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -33
  499. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.types.js +0 -5
  500. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -9
  501. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/tokens.json +0 -4
  502. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -10
  503. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/tokens.json +0 -4
  504. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/base.js +0 -10
  505. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/tokens.json +0 -16
  506. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/base.js +0 -10
  507. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/tokens.json +0 -1
  508. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +0 -77
  509. package/styled-components/cjs/components/DatePicker/index.js +0 -44
  510. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +0 -78
  511. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -22
  512. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +0 -22
  513. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +0 -31
  514. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.js +0 -13
  515. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -257
  516. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +0 -31
  517. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.js +0 -13
  518. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +0 -257
  519. package/styled-components/cjs/utils/datejs.js +0 -11
  520. package/styled-components/cjs/utils/getPopoverPlacement.js +0 -21
  521. package/styled-components/es/components/Calendar/mixins/active.js +0 -6
  522. package/styled-components/es/components/Calendar/mixins/flex.js +0 -2
  523. package/styled-components/es/components/Calendar/mixins/selected.js +0 -18
  524. package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +0 -150
  525. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +0 -181
  526. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +0 -12
  527. package/styled-components/es/components/DatePicker/DatePickerBase.types.js +0 -1
  528. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +0 -284
  529. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -25
  530. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.types.js +0 -1
  531. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -74
  532. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -19
  533. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +0 -1
  534. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -3
  535. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  536. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -4
  537. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/tokens.json +0 -4
  538. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +0 -4
  539. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  540. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/base.js +0 -4
  541. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  542. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +0 -181
  543. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -25
  544. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.types.js +0 -1
  545. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -3
  546. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/tokens.json +0 -4
  547. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -4
  548. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/tokens.json +0 -4
  549. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/base.js +0 -4
  550. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/tokens.json +0 -16
  551. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/base.js +0 -4
  552. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/tokens.json +0 -1
  553. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +0 -71
  554. package/styled-components/es/components/DatePicker/index.js +0 -3
  555. package/styled-components/es/components/DatePicker/utils/dateHelper.js +0 -72
  556. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -15
  557. package/styled-components/es/components/_Icon/Icons/IconDisclosureDownFill.js +0 -15
  558. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +0 -25
  559. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.js +0 -7
  560. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -257
  561. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +0 -25
  562. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.js +0 -7
  563. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +0 -257
  564. package/styled-components/es/utils/datejs.js +0 -4
  565. package/styled-components/es/utils/getPopoverPlacement.js +0 -15
  566. package/types/components/Calendar/mixins/active.d.ts +0 -17
  567. package/types/components/Calendar/mixins/active.d.ts.map +0 -1
  568. package/types/components/Calendar/mixins/flex.d.ts +0 -3
  569. package/types/components/Calendar/mixins/flex.d.ts.map +0 -1
  570. package/types/components/Calendar/mixins/selected.d.ts +0 -40
  571. package/types/components/Calendar/mixins/selected.d.ts.map +0 -1
  572. package/types/components/DatePicker/DatePicker.tokens.d.ts +0 -182
  573. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +0 -1
  574. package/types/components/DatePicker/DatePickerBase.styles.d.ts +0 -8
  575. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +0 -1
  576. package/types/components/DatePicker/DatePickerBase.types.d.ts +0 -37
  577. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +0 -1
  578. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +0 -110
  579. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +0 -1
  580. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +0 -115
  581. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +0 -1
  582. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +0 -76
  583. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +0 -1
  584. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +0 -4
  585. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +0 -1
  586. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +0 -5
  587. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +0 -1
  588. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +0 -29
  589. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +0 -1
  590. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts +0 -2
  591. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts.map +0 -1
  592. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts +0 -2
  593. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +0 -1
  594. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts +0 -2
  595. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +0 -1
  596. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts +0 -2
  597. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +0 -1
  598. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +0 -31
  599. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +0 -1
  600. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +0 -45
  601. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +0 -1
  602. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +0 -120
  603. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +0 -1
  604. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts +0 -2
  605. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts.map +0 -1
  606. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts +0 -2
  607. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts.map +0 -1
  608. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts +0 -2
  609. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts.map +0 -1
  610. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts +0 -2
  611. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts.map +0 -1
  612. package/types/components/DatePicker/hooks/useDatePicker.d.ts +0 -10
  613. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +0 -1
  614. package/types/components/DatePicker/index.d.ts +0 -6
  615. package/types/components/DatePicker/index.d.ts.map +0 -1
  616. package/types/components/DatePicker/utils/dateHelper.d.ts +0 -10
  617. package/types/components/DatePicker/utils/dateHelper.d.ts.map +0 -1
  618. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts +0 -4
  619. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts.map +0 -1
  620. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts +0 -4
  621. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts.map +0 -1
  622. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts +0 -24
  623. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +0 -1
  624. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +0 -75
  625. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +0 -1
  626. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts +0 -24
  627. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +0 -1
  628. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +0 -75
  629. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +0 -1
  630. package/types/utils/datejs.d.ts +0 -3
  631. package/types/utils/datejs.d.ts.map +0 -1
  632. package/types/utils/getPopoverPlacement.d.ts +0 -5
  633. package/types/utils/getPopoverPlacement.d.ts.map +0 -1
@@ -1,12 +0,0 @@
1
- import styled from 'styled-components';
2
- import { calendarBaseConfig, calendarBaseTokens } from '../Calendar';
3
- import { component, mergeConfig } from '../../engines';
4
- import { tokens } from './DatePicker.tokens';
5
- var mergedCalendarConfig = /*#__PURE__*/mergeConfig(calendarBaseConfig);
6
- var Calendar = /*#__PURE__*/component(mergedCalendarConfig);
7
- export var baseCalendarTokens = /*#__PURE__*/"\n padding-top: var(".concat(tokens.calendarPaddingTop, ");\n box-shadow: var(").concat(tokens.calendarShadow, ");\n border-radius: var(").concat(tokens.calendarBorderRadius, ");\n\n ").concat(calendarBaseTokens.calendarBackgroundColor, ": var(").concat(tokens.calendarBackgroundColor, ");\n ").concat(calendarBaseTokens.calendarSelectedItemBackground, ": var(").concat(tokens.calendarSelectedItemBackground, ");\n ").concat(calendarBaseTokens.calendarSelectedItemColor, ": var(").concat(tokens.calendarSelectedItemColor, ");\n ").concat(calendarBaseTokens.calendarSelectableItemBackgroundHover, ": var(").concat(tokens.calendarSelectableItemBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemBorderColor, ": var(").concat(tokens.calendarCurrentItemBorderColor, ");\n ").concat(calendarBaseTokens.calendarCurrentItemBackgroundHover, ": var(").concat(tokens.calendarCurrentItemBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemColorHover, ": var(").concat(tokens.calendarCurrentItemColorHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemChildBackgroundHover, ": var(").concat(tokens.calendarCurrentItemChildBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarActiveItemBackground, ": var(").concat(tokens.calendarActiveItemBackground, ");\n ").concat(calendarBaseTokens.calendarActiveItemColor, ": var(").concat(tokens.calendarActiveItemColor, ");\n ").concat(calendarBaseTokens.calendarHoveredItemBackground, ": var(").concat(tokens.calendarHoveredItemBackground, ");\n ").concat(calendarBaseTokens.calendarHoveredItemColor, ": var(").concat(tokens.calendarHoveredItemColor, ");\n ").concat(calendarBaseTokens.calendarRangeBackground, ": var(").concat(tokens.calendarRangeBackground, ");\n ").concat(calendarBaseTokens.calendarOutlineFocusColor, ": var(").concat(tokens.calendarOutlineFocusColor, ");\n ").concat(calendarBaseTokens.calendarContentPrimaryColor, ": var(").concat(tokens.calendarContentPrimaryColor, ");\n ").concat(calendarBaseTokens.calendarContentSecondaryColor, ": var(").concat(tokens.calendarContentSecondaryColor, ");\n\n ").concat(calendarBaseTokens.iconButtonColor, ": var(").concat(tokens.iconButtonColor, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColor, ": var(").concat(tokens.iconButtonBackgroundColor, ");\n ").concat(calendarBaseTokens.iconButtonColorHover, ": var(").concat(tokens.iconButtonColorHover, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColorHover, ": var(").concat(tokens.iconButtonBackgroundColorHover, ");\n ").concat(calendarBaseTokens.iconButtonColorActive, ": var(").concat(tokens.iconButtonColorActive, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColorActive, ": var(").concat(tokens.iconButtonBackgroundColorActive, ");\n\n ").concat(calendarBaseTokens.calendarWidth, ": var(").concat(tokens.calendarWidth, ");\n ").concat(calendarBaseTokens.calendarHeight, ": var(").concat(tokens.calendarHeight, ");\n ").concat(calendarBaseTokens.calendarYearsPadding, ": var(").concat(tokens.calendarYearsPadding, ");\n ").concat(calendarBaseTokens.calendarYearItemBorderRadius, ": var(").concat(tokens.calendarYearItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarYearItemWidth, ": var(").concat(tokens.calendarYearItemWidth, ");\n ").concat(calendarBaseTokens.calendarYearItemHeight, ": var(").concat(tokens.calendarYearItemHeight, ");\n ").concat(calendarBaseTokens.calendarYearFontFamily, ": var(").concat(tokens.calendarYearFontFamily, ");\n ").concat(calendarBaseTokens.calendarYearFontSize, ": var(").concat(tokens.calendarYearFontSize, ");\n ").concat(calendarBaseTokens.calendarYearFontStyle, ": var(").concat(tokens.calendarYearFontStyle, ");\n ").concat(calendarBaseTokens.calendarYearFontLetterSpacing, ": var(").concat(tokens.calendarYearFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarYearFontLineHeight, ": var(").concat(tokens.calendarYearFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarYearFontWeight, ": var(").concat(tokens.calendarYearFontWeight, ");\n ").concat(calendarBaseTokens.calendarYearSelectedFontWeight, ": var(").concat(tokens.calendarYearSelectedFontWeight, ");\n ").concat(calendarBaseTokens.calendarMonthsPadding, ": var(").concat(tokens.calendarMonthsPadding, ");\n ").concat(calendarBaseTokens.calendarMonthItemBorderRadius, ": var(").concat(tokens.calendarMonthItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarMonthItemWidth, ": var(").concat(tokens.calendarMonthItemWidth, ");\n ").concat(calendarBaseTokens.calendarMonthItemHeight, ": var(").concat(tokens.calendarMonthItemHeight, ");\n ").concat(calendarBaseTokens.calendarMonthFontFamily, ": var(").concat(tokens.calendarMonthFontFamily, ");\n ").concat(calendarBaseTokens.calendarMonthFontSize, ": var(").concat(tokens.calendarMonthFontSize, ");\n ").concat(calendarBaseTokens.calendarMonthFontStyle, ": var(").concat(tokens.calendarMonthFontStyle, ");\n ").concat(calendarBaseTokens.calendarMonthFontLetterSpacing, ": var(").concat(tokens.calendarMonthFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarMonthFontLineHeight, ": var(").concat(tokens.calendarMonthFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarMonthFontWeight, ": var(").concat(tokens.calendarMonthFontWeight, ");\n ").concat(calendarBaseTokens.calendarMonthSelectedFontWeight, ": var(").concat(tokens.calendarMonthSelectedFontWeight, ");\n ").concat(calendarBaseTokens.calendarDaysPadding, ": var(").concat(tokens.calendarDaysPadding, ");\n ").concat(calendarBaseTokens.calendarDayItemBorderRadius, ": var(").concat(tokens.calendarDayItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarDayItemWidth, ": var(").concat(tokens.calendarDayItemWidth, ");\n ").concat(calendarBaseTokens.calendarDayItemHeight, ": var(").concat(tokens.calendarDayItemHeight, ");\n ").concat(calendarBaseTokens.calendarDayFontFamily, ": var(").concat(tokens.calendarDayFontFamily, ");\n ").concat(calendarBaseTokens.calendarDayFontSize, ": var(").concat(tokens.calendarDayFontSize, ");\n ").concat(calendarBaseTokens.calendarDayFontStyle, ": var(").concat(tokens.calendarDayFontStyle, ");\n ").concat(calendarBaseTokens.calendarDayFontLetterSpacing, ": var(").concat(tokens.calendarDayFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarDayFontLineHeight, ": var(").concat(tokens.calendarDayFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarDayFontWeight, ": var(").concat(tokens.calendarDayFontWeight, ");\n ").concat(calendarBaseTokens.calendarDaySelectedFontWeight, ": var(").concat(tokens.calendarDaySelectedFontWeight, ");\n ").concat(calendarBaseTokens.calendarHeaderWrapperPadding, ": var(").concat(tokens.calendarHeaderWrapperPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderArrowGap, ": var(").concat(tokens.calendarHeaderArrowGap, ");\n ").concat(calendarBaseTokens.calendarHeaderArrowPadding, ": var(").concat(tokens.calendarHeaderArrowPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderPadding, ": var(").concat(tokens.calendarHeaderPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderDateGap, ": var(").concat(tokens.calendarHeaderDateGap, ");\n ").concat(calendarBaseTokens.calendarHeaderFontFamily, ": var(").concat(tokens.calendarHeaderFontFamily, ");\n ").concat(calendarBaseTokens.calendarHeaderFontSize, ": var(").concat(tokens.calendarHeaderFontSize, ");\n ").concat(calendarBaseTokens.calendarHeaderFontStyle, ": var(").concat(tokens.calendarHeaderFontStyle, ");\n ").concat(calendarBaseTokens.calendarHeaderFontLetterSpacing, ": var(").concat(tokens.calendarHeaderFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarHeaderFontLineHeight, ": var(").concat(tokens.calendarHeaderFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarHeaderFontWeight, ": var(").concat(tokens.calendarHeaderFontWeight, ");\n ").concat(calendarBaseTokens.calendarHeaderFontWeightBold, ": var(").concat(tokens.calendarHeaderFontWeightBold, ");\n ").concat(calendarBaseTokens.iconButtonHeight, ": var(").concat(tokens.iconButtonHeight, ");\n ").concat(calendarBaseTokens.iconButtonWidth, ": var(").concat(tokens.iconButtonWidth, ");\n ").concat(calendarBaseTokens.iconButtonPadding, ": var(").concat(tokens.iconButtonPadding, ");\n ").concat(calendarBaseTokens.iconButtonRadius, ": var(").concat(tokens.iconButtonRadius, ");\n ").concat(calendarBaseTokens.iconButtonFocusColor, ": var(").concat(tokens.iconButtonFocusColor, ");\n");
8
-
9
- // NOTE: переопределение токенов Calendar
10
- export var StyledCalendar = /*#__PURE__*/styled(Calendar).withConfig({
11
- componentId: "plasma-new-hope__sc-1i6o09y-0"
12
- })(["", ""], baseCalendarTokens);
@@ -1,284 +0,0 @@
1
- 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"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { createRef, forwardRef, useCallback, useEffect, useRef, useState } from 'react';
12
- import { cx } from '../../../utils';
13
- import { formatCalendarValue, formatInputValue, getDateFormatDelimiter } from '../utils/dateHelper';
14
- import { useDatePicker } from '../hooks/useDatePicker';
15
- import { classes } from '../DatePicker.tokens';
16
- import { base as sizeCSS } from './variations/_size/base';
17
- import { base as viewCSS } from './variations/_view/base';
18
- import { base as disabledCSS } from './variations/_disabled/base';
19
- import { base as readOnlyCSS } from './variations/_readonly/base';
20
- import { LeftHelper, StyledLabel, StyledRange, base } from './RangeDate.styles';
21
- import { RangeDatePopover } from './RangeDatePopover/RangeDatePopover';
22
- export var datePickerRangeRoot = function datePickerRangeRoot(Root) {
23
- return /*#__PURE__*/forwardRef(function (_ref, ref) {
24
- var _rangeRef$current, _rangeRef$current2;
25
- var className = _ref.className,
26
- _ref$isDoubleCalendar = _ref.isDoubleCalendar,
27
- isDoubleCalendar = _ref$isDoubleCalendar === void 0 ? false : _ref$isDoubleCalendar,
28
- _ref$isOpen = _ref.isOpen,
29
- isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
30
- label = _ref.label,
31
- leftHelper = _ref.leftHelper,
32
- contentLeft = _ref.contentLeft,
33
- contentRight = _ref.contentRight,
34
- view = _ref.view,
35
- size = _ref.size,
36
- _ref$readOnly = _ref.readOnly,
37
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
38
- _ref$disabled = _ref.disabled,
39
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
40
- _ref$dividerVariant = _ref.dividerVariant,
41
- dividerVariant = _ref$dividerVariant === void 0 ? 'dash' : _ref$dividerVariant,
42
- dividerIcon = _ref.dividerIcon,
43
- _ref$defaultFirstDate = _ref.defaultFirstDate,
44
- defaultFirstDate = _ref$defaultFirstDate === void 0 ? '' : _ref$defaultFirstDate,
45
- _ref$defaultSecondDat = _ref.defaultSecondDate,
46
- defaultSecondDate = _ref$defaultSecondDat === void 0 ? '' : _ref$defaultSecondDat,
47
- firstValueError = _ref.firstValueError,
48
- secondValueError = _ref.secondValueError,
49
- firstValueSuccess = _ref.firstValueSuccess,
50
- secondValueSuccess = _ref.secondValueSuccess,
51
- firstPlaceholder = _ref.firstPlaceholder,
52
- secondPlaceholder = _ref.secondPlaceholder,
53
- firstTextfieldContentLeft = _ref.firstTextfieldContentLeft,
54
- firstTextfieldContentRight = _ref.firstTextfieldContentRight,
55
- secondTextfieldContentLeft = _ref.secondTextfieldContentLeft,
56
- secondTextfieldContentRight = _ref.secondTextfieldContentRight,
57
- firstTextfieldTextBefore = _ref.firstTextfieldTextBefore,
58
- secondTextfieldTextBefore = _ref.secondTextfieldTextBefore,
59
- firstTextfieldTextAfter = _ref.firstTextfieldTextAfter,
60
- secondTextfieldTextAfter = _ref.secondTextfieldTextAfter,
61
- _ref$format = _ref.format,
62
- format = _ref$format === void 0 ? 'DD.MM.YYYY' : _ref$format,
63
- maskWithFormat = _ref.maskWithFormat,
64
- min = _ref.min,
65
- max = _ref.max,
66
- _ref$includeEdgeDates = _ref.includeEdgeDates,
67
- includeEdgeDates = _ref$includeEdgeDates === void 0 ? false : _ref$includeEdgeDates,
68
- eventList = _ref.eventList,
69
- disabledList = _ref.disabledList,
70
- _ref$type = _ref.type,
71
- type = _ref$type === void 0 ? 'Days' : _ref$type,
72
- _ref$placement = _ref.placement,
73
- placement = _ref$placement === void 0 ? ['top', 'bottom'] : _ref$placement,
74
- _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
75
- closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
76
- _ref$closeOnEsc = _ref.closeOnEsc,
77
- closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
78
- offset = _ref.offset,
79
- onToggle = _ref.onToggle,
80
- onChangeFirstValue = _ref.onChangeFirstValue,
81
- onChangeSecondValue = _ref.onChangeSecondValue,
82
- onCommitFirstDate = _ref.onCommitFirstDate,
83
- onCommitSecondDate = _ref.onCommitSecondDate,
84
- onFocusFirstTextfield = _ref.onFocusFirstTextfield,
85
- onFocusSecondTextfield = _ref.onFocusSecondTextfield,
86
- onBlurFirstTextfield = _ref.onBlurFirstTextfield,
87
- onBlurSecondTextfield = _ref.onBlurSecondTextfield,
88
- rest = _objectWithoutProperties(_ref, _excluded);
89
- var rangeRef = ref && 'current' in ref ? ref : /*#__PURE__*/createRef();
90
- var rootRef = useRef(null);
91
- var _useState = useState(rangeRef === null || rangeRef === void 0 || (_rangeRef$current = rangeRef.current) === null || _rangeRef$current === void 0 ? void 0 : _rangeRef$current.firstTextField()),
92
- _useState2 = _slicedToArray(_useState, 2),
93
- firstInputRef = _useState2[0],
94
- setFirstInputRef = _useState2[1];
95
- var _useState3 = useState(rangeRef === null || rangeRef === void 0 || (_rangeRef$current2 = rangeRef.current) === null || _rangeRef$current2 === void 0 ? void 0 : _rangeRef$current2.secondTextField()),
96
- _useState4 = _slicedToArray(_useState3, 2),
97
- secondInputRef = _useState4[0],
98
- setSecondInputRef = _useState4[1];
99
- var _useState5 = useState(isOpen),
100
- _useState6 = _slicedToArray(_useState5, 2),
101
- isInnerOpen = _useState6[0],
102
- setIsInnerOpen = _useState6[1];
103
- var _useState7 = useState(formatCalendarValue(defaultFirstDate, format)),
104
- _useState8 = _slicedToArray(_useState7, 2),
105
- calendarFirstValue = _useState8[0],
106
- setCalendarFirstValue = _useState8[1];
107
- var _useState9 = useState(formatInputValue(defaultFirstDate, format)),
108
- _useState10 = _slicedToArray(_useState9, 2),
109
- inputFirstValue = _useState10[0],
110
- setInputFirstValue = _useState10[1];
111
- var _useState11 = useState(formatCalendarValue(defaultSecondDate, format)),
112
- _useState12 = _slicedToArray(_useState11, 2),
113
- calendarSecondValue = _useState12[0],
114
- setCalendarSecondValue = _useState12[1];
115
- var _useState13 = useState(formatInputValue(defaultSecondDate, format)),
116
- _useState14 = _slicedToArray(_useState13, 2),
117
- inputSecondValue = _useState14[0],
118
- setInputSecondValue = _useState14[1];
119
- var dateFormatDelimiter = useCallback(function () {
120
- return getDateFormatDelimiter(format);
121
- }, [format]);
122
- var _useDatePicker = useDatePicker({
123
- currentValue: inputFirstValue,
124
- setInputValue: setInputFirstValue,
125
- setCalendarValue: setCalendarFirstValue,
126
- setIsInnerOpen: setIsInnerOpen,
127
- dateFormatDelimiter: dateFormatDelimiter,
128
- format: format,
129
- disabled: disabled,
130
- readOnly: readOnly,
131
- maskWithFormat: maskWithFormat,
132
- valueError: firstValueError,
133
- valueSuccess: firstValueSuccess,
134
- inputRef: firstInputRef,
135
- onChangeValue: onChangeFirstValue,
136
- onCommitDate: onCommitFirstDate
137
- }),
138
- handleChangeFirstValue = _useDatePicker.handleChangeValue,
139
- handleCommitFirstDate = _useDatePicker.handleCommitDate;
140
- var _useDatePicker2 = useDatePicker({
141
- currentValue: inputSecondValue,
142
- setInputValue: setInputSecondValue,
143
- setCalendarValue: setCalendarSecondValue,
144
- setIsInnerOpen: setIsInnerOpen,
145
- dateFormatDelimiter: dateFormatDelimiter,
146
- format: format,
147
- disabled: disabled,
148
- readOnly: readOnly,
149
- maskWithFormat: maskWithFormat,
150
- valueError: secondValueError,
151
- valueSuccess: secondValueSuccess,
152
- inputRef: secondInputRef,
153
- onChangeValue: onChangeSecondValue,
154
- onCommitDate: onCommitSecondDate
155
- }),
156
- handleChangeSecondValue = _useDatePicker2.handleChangeValue,
157
- handleCommitSecondDate = _useDatePicker2.handleCommitDate;
158
- var handleToggle = function handleToggle(opened, event) {
159
- var _firstInputRef$curren, _secondInputRef$curre;
160
- if (disabled || readOnly) {
161
- return;
162
- }
163
- 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;
164
- if (onToggle) {
165
- return onToggle(isCalendarOpen, event);
166
- }
167
- setIsInnerOpen(isCalendarOpen);
168
- };
169
- var RangeComponent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledRange, {
170
- ref: rangeRef,
171
- dividerIcon: dividerIcon,
172
- dividerVariant: dividerVariant,
173
- disabled: disabled,
174
- readOnly: !disabled && readOnly,
175
- firstPlaceholder: firstPlaceholder,
176
- secondPlaceholder: secondPlaceholder,
177
- contentLeft: contentLeft,
178
- contentRight: contentRight,
179
- firstTextfieldTextBefore: firstTextfieldTextBefore,
180
- secondTextfieldTextBefore: secondTextfieldTextBefore,
181
- firstTextfieldTextAfter: firstTextfieldTextAfter,
182
- secondTextfieldTextAfter: secondTextfieldTextAfter,
183
- firstTextfieldContentLeft: firstTextfieldContentLeft,
184
- firstTextfieldContentRight: firstTextfieldContentRight,
185
- secondTextfieldContentLeft: secondTextfieldContentLeft,
186
- secondTextfieldContentRight: secondTextfieldContentRight,
187
- firstValue: inputFirstValue,
188
- secondValue: inputSecondValue,
189
- firstValueError: firstValueError,
190
- secondValueError: secondValueError,
191
- firstValueSuccess: firstValueSuccess,
192
- secondValueSuccess: secondValueSuccess,
193
- onChangeFirstValue: handleChangeFirstValue,
194
- onChangeSecondValue: handleChangeSecondValue,
195
- onSearchFirstValue: function onSearchFirstValue(_, date) {
196
- handleCommitFirstDate(String(date), true, false);
197
- if (!calendarSecondValue || secondValueError) {
198
- var _rangeRef$current3;
199
- 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();
200
- }
201
- },
202
- onSearchSecondValue: function onSearchSecondValue(_, date) {
203
- handleCommitSecondDate(String(date), true, false);
204
- if (!calendarFirstValue || firstValueError) {
205
- var _rangeRef$current4;
206
- 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();
207
- }
208
- },
209
- onFocusFirstTextfield: onFocusFirstTextfield,
210
- onFocusSecondTextfield: onFocusSecondTextfield,
211
- onBlurFirstTextfield: onBlurFirstTextfield,
212
- onBlurSecondTextfield: onBlurSecondTextfield
213
- }));
214
- useEffect(function () {
215
- var _rangeRef$current5, _rangeRef$current6;
216
- setFirstInputRef((_rangeRef$current5 = rangeRef.current) === null || _rangeRef$current5 === void 0 ? void 0 : _rangeRef$current5.firstTextField());
217
- setSecondInputRef((_rangeRef$current6 = rangeRef.current) === null || _rangeRef$current6 === void 0 ? void 0 : _rangeRef$current6.secondTextField());
218
- }, [rangeRef.current]);
219
- return /*#__PURE__*/React.createElement(Root, _extends({
220
- ref: rootRef,
221
- view: view,
222
- size: size,
223
- className: cx(classes.datePickerRoot, className),
224
- disabled: disabled,
225
- readOnly: !disabled && readOnly
226
- }, rest), label && /*#__PURE__*/React.createElement(StyledLabel, null, label), /*#__PURE__*/React.createElement(RangeDatePopover, {
227
- calendarValue: [calendarFirstValue, calendarSecondValue],
228
- target: RangeComponent,
229
- isOpen: isOpen || isInnerOpen,
230
- includeEdgeDates: includeEdgeDates,
231
- eventList: eventList,
232
- disabledList: disabledList,
233
- min: min,
234
- max: max,
235
- placement: placement,
236
- closeOnOverlayClick: closeOnOverlayClick,
237
- closeOnEsc: closeOnEsc,
238
- offset: offset,
239
- type: type,
240
- onToggle: handleToggle,
241
- isDoubleCalendar: isDoubleCalendar,
242
- onChangeStartOfRange: function onChangeStartOfRange(firstDate) {
243
- handleCommitFirstDate(firstDate, false, true);
244
- handleCommitSecondDate('');
245
- },
246
- onChangeValue: function onChangeValue(_ref2) {
247
- var _ref3 = _slicedToArray(_ref2, 2),
248
- firstDate = _ref3[0],
249
- secondDate = _ref3[1];
250
- firstDate && handleCommitFirstDate(firstDate, false, true);
251
- secondDate && handleCommitSecondDate(secondDate, false, true);
252
- if (firstDate && secondDate && !firstValueError && !secondValueError) {
253
- setIsInnerOpen(false);
254
- }
255
- }
256
- }), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, null, leftHelper));
257
- });
258
- };
259
- export var datePickerRangeConfig = {
260
- name: 'DatePickerRange',
261
- tag: 'div',
262
- layout: datePickerRangeRoot,
263
- base: base,
264
- variations: {
265
- view: {
266
- css: viewCSS
267
- },
268
- size: {
269
- css: sizeCSS
270
- },
271
- disabled: {
272
- css: disabledCSS,
273
- attrs: true
274
- },
275
- readOnly: {
276
- css: readOnlyCSS,
277
- attrs: true
278
- }
279
- },
280
- defaults: {
281
- size: 'm',
282
- view: 'default'
283
- }
284
- };
@@ -1,25 +0,0 @@
1
- import styled from 'styled-components';
2
- import { css } from 'styled-components';
3
- import { component, mergeConfig } from '../../../engines';
4
- import { rangeConfig, rangeTokens } from '../../Range';
5
- import { tokens } from '../DatePicker.tokens';
6
- import { popoverConfig } from '../../Popover';
7
- var mergedRangeConfig = /*#__PURE__*/mergeConfig(rangeConfig);
8
- var Range = /*#__PURE__*/component(mergedRangeConfig);
9
- var mergedPopoverConfig = /*#__PURE__*/mergeConfig(popoverConfig);
10
- var Popover = /*#__PURE__*/component(mergedPopoverConfig);
11
- export var StyledPopover = /*#__PURE__*/styled(Popover).withConfig({
12
- componentId: "plasma-new-hope__sc-14j95rs-0"
13
- })([""]);
14
-
15
- // NOTE: переопределение токенов Range
16
- export var StyledRange = /*#__PURE__*/styled(Range).withConfig({
17
- componentId: "plasma-new-hope__sc-14j95rs-1"
18
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], rangeTokens.background, tokens.background, rangeTokens.backgroundError, tokens.backgroundError, rangeTokens.backgroundSuccess, tokens.backgroundSuccess, rangeTokens.borderColor, tokens.borderColor, rangeTokens.borderColorError, tokens.borderColorError, rangeTokens.borderColorSuccess, tokens.borderColorSuccess, rangeTokens.borderWidth, tokens.textFieldBorderWidth, rangeTokens.dividerColor, tokens.dividerColor, rangeTokens.labelColor, tokens.labelColor, rangeTokens.leftHelperColor, tokens.leftHelperColor, rangeTokens.textFieldColor, tokens.textFieldColor, rangeTokens.textFieldPlaceholderColor, tokens.textFieldPlaceholderColor, rangeTokens.textFieldCaretColor, tokens.textFieldCaretColor, rangeTokens.textFieldBackgroundColorFocus, tokens.textFieldBackgroundColorFocus, rangeTokens.textFieldBackgroundErrorColor, tokens.textFieldBackgroundErrorColor, rangeTokens.textFieldBackgroundErrorColorFocus, tokens.textFieldBackgroundErrorColorFocus, rangeTokens.textFieldBackgroundSuccessColor, tokens.textFieldBackgroundSuccessColor, rangeTokens.textFieldBackgroundSuccessColorFocus, tokens.textFieldBackgroundSuccessColorFocus, rangeTokens.textFieldBorderWidth, tokens.textFieldBorderWidth, rangeTokens.textFieldBorderColorFocus, tokens.textFieldBorderColorFocus, rangeTokens.textFieldBorderColorError, tokens.textFieldBorderColorError, rangeTokens.textFieldBorderColorErrorFocus, tokens.textFieldBorderColorErrorFocus, rangeTokens.textFieldBorderColorSuccess, tokens.textFieldBorderColorSuccess, rangeTokens.textFieldBorderColorSuccessFocus, tokens.textFieldBorderColorSuccessFocus, rangeTokens.textFieldTextBeforeColor, tokens.textFieldTextBeforeColor, rangeTokens.textFieldTextAfterColor, tokens.textFieldTextAfterColor, rangeTokens.focusColor, tokens.focusColor, rangeTokens.borderRadius, tokens.borderRadius, rangeTokens.dividerPadding, tokens.dividerPadding, rangeTokens.dividerFontFamily, tokens.dividerFontFamily, rangeTokens.dividerFontStyle, tokens.dividerFontStyle, rangeTokens.dividerFontSize, tokens.dividerFontSize, rangeTokens.dividerFontWeight, tokens.dividerFontWeight, rangeTokens.dividerLetterSpacing, tokens.dividerLetterSpacing, rangeTokens.dividerLineHeight, tokens.dividerLineHeight, rangeTokens.leftContentMargin, tokens.leftContentMargin, rangeTokens.rightContentMargin, tokens.rightContentMargin, rangeTokens.labelOffset, tokens.labelOffset, rangeTokens.labelFontFamily, tokens.labelFontFamily, rangeTokens.labelFontStyle, tokens.labelFontStyle, rangeTokens.labelFontSize, tokens.labelFontSize, rangeTokens.labelFontWeight, tokens.labelFontWeight, rangeTokens.labelLetterSpacing, tokens.labelLetterSpacing, rangeTokens.labelLineHeight, tokens.labelLineHeight, rangeTokens.textFieldHeight, tokens.textFieldHeight, rangeTokens.textFieldBorderRadius, tokens.textFieldBorderRadius, rangeTokens.textFieldPadding, tokens.textFieldPadding, rangeTokens.textFieldFontFamily, tokens.textFieldFontFamily, rangeTokens.textFieldFontStyle, tokens.textFieldFontStyle, rangeTokens.textFieldFontSize, tokens.textFieldFontSize, rangeTokens.textFieldFontWeight, tokens.textFieldFontWeight, rangeTokens.textFieldLetterSpacing, tokens.textFieldLetterSpacing, rangeTokens.textFieldLineHeight, tokens.textFieldLineHeight, rangeTokens.leftHelperOffset, tokens.leftHelperOffset, rangeTokens.leftHelperFontFamily, tokens.leftHelperFontFamily, rangeTokens.leftHelperFontStyle, tokens.leftHelperFontStyle, rangeTokens.leftHelperFontSize, tokens.leftHelperFontSize, rangeTokens.leftHelperFontWeight, tokens.leftHelperFontWeight, rangeTokens.leftHelperLetterSpacing, tokens.leftHelperLetterSpacing, rangeTokens.leftHelperLineHeight, tokens.leftHelperLineHeight, rangeTokens.textFieldLeftContentMargin, tokens.textFieldLeftContentMargin, rangeTokens.textFieldRightContentMargin, tokens.textFieldRightContentMargin, rangeTokens.textFieldTextBeforeMargin, tokens.textFieldTextBeforeMargin, rangeTokens.textFieldTextAfterMargin, tokens.textFieldTextAfterMargin, rangeTokens.backgroundReadOnly, tokens.backgroundReadOnly, rangeTokens.labelColorReadOnly, tokens.labelColorReadOnly, rangeTokens.leftHelperColorReadOnly, tokens.leftHelperColorReadOnly, rangeTokens.dividerColorReadOnly, tokens.dividerColorReadOnly, rangeTokens.textFieldColorReadOnly, tokens.textFieldColorReadOnly, rangeTokens.textFieldBackgroundColorReadOnly, tokens.textFieldBackgroundColorReadOnly, rangeTokens.textFieldPlaceholderColorReadOnly, tokens.textFieldPlaceholderColorReadOnly);
19
- export var base = /*#__PURE__*/css(["display:inline-block;"]);
20
- export var StyledLabel = /*#__PURE__*/styled.label.withConfig({
21
- componentId: "plasma-new-hope__sc-14j95rs-2"
22
- })([""]);
23
- export var LeftHelper = /*#__PURE__*/styled.div.withConfig({
24
- componentId: "plasma-new-hope__sc-14j95rs-3"
25
- })([""]);
@@ -1,74 +0,0 @@
1
- import React from 'react';
2
- import { getPlacements } from '../../../../utils';
3
- import { StyledPopover } from '../RangeDate.styles';
4
- import { StyledCalendar, StyledCalendarDouble } from './RangeDatePopover.styles';
5
- export var RangeDatePopover = function RangeDatePopover(_ref) {
6
- var target = _ref.target,
7
- isOpen = _ref.isOpen,
8
- isDoubleCalendar = _ref.isDoubleCalendar,
9
- calendarValue = _ref.calendarValue,
10
- min = _ref.min,
11
- max = _ref.max,
12
- includeEdgeDates = _ref.includeEdgeDates,
13
- eventList = _ref.eventList,
14
- disabledList = _ref.disabledList,
15
- _ref$placement = _ref.placement,
16
- placement = _ref$placement === void 0 ? ['top', 'bottom'] : _ref$placement,
17
- _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
18
- closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
19
- closeOnEsc = _ref.closeOnEsc,
20
- offset = _ref.offset,
21
- type = _ref.type,
22
- size = _ref.size,
23
- onChangeValue = _ref.onChangeValue,
24
- onChangeStartOfRange = _ref.onChangeStartOfRange,
25
- onToggle = _ref.onToggle;
26
- if (isDoubleCalendar) {
27
- return /*#__PURE__*/React.createElement(StyledPopover, {
28
- isOpen: isOpen,
29
- usePortal: false,
30
- onToggle: onToggle,
31
- offset: offset,
32
- placement: getPlacements(placement),
33
- trigger: "click",
34
- closeOnOverlayClick: closeOnOverlayClick,
35
- isFocusTrapped: false,
36
- target: target,
37
- preventOverflow: false
38
- }, /*#__PURE__*/React.createElement(StyledCalendarDouble, {
39
- size: size,
40
- value: calendarValue,
41
- eventList: eventList,
42
- disabledList: disabledList,
43
- min: min,
44
- max: max,
45
- includeEdgeDates: includeEdgeDates,
46
- onChangeValue: onChangeValue,
47
- onChangeStartOfRange: onChangeStartOfRange
48
- }));
49
- }
50
- return /*#__PURE__*/React.createElement(StyledPopover, {
51
- isOpen: isOpen,
52
- usePortal: false,
53
- onToggle: onToggle,
54
- offset: offset,
55
- placement: getPlacements(placement),
56
- trigger: "click",
57
- closeOnOverlayClick: closeOnOverlayClick,
58
- isFocusTrapped: false,
59
- target: target,
60
- preventOverflow: false,
61
- closeOnEsc: closeOnEsc
62
- }, /*#__PURE__*/React.createElement(StyledCalendar, {
63
- size: size,
64
- value: calendarValue,
65
- eventList: eventList,
66
- disabledList: disabledList,
67
- min: min,
68
- max: max,
69
- type: type,
70
- includeEdgeDates: includeEdgeDates,
71
- onChangeValue: onChangeValue,
72
- onChangeStartOfRange: onChangeStartOfRange
73
- }));
74
- };
@@ -1,19 +0,0 @@
1
- import styled from 'styled-components';
2
- import { calendarDoubleConfig, calendarBaseTokens, withRange, calendarBaseConfig } from '../../../Calendar';
3
- import { tokens } from '../../DatePicker.tokens';
4
- import { component, mergeConfig } from '../../../../engines';
5
- import { baseCalendarTokens } from '../../DatePickerBase.styles';
6
- var mergedCalendarDoubleConfig = /*#__PURE__*/mergeConfig(calendarDoubleConfig);
7
- var CalendarDouble = /*#__PURE__*/component(mergedCalendarDoubleConfig);
8
- var mergedCalendarConfig = /*#__PURE__*/mergeConfig(calendarBaseConfig);
9
- var Calendar = /*#__PURE__*/component(mergedCalendarConfig);
10
- var CalendarDoubleRange = /*#__PURE__*/withRange(CalendarDouble);
11
- var CalendarRange = /*#__PURE__*/withRange(Calendar);
12
-
13
- // NOTE: переопределение токенов Calendar
14
- export var StyledCalendarDouble = /*#__PURE__*/styled(CalendarDoubleRange).withConfig({
15
- componentId: "plasma-new-hope__sc-vflcna-0"
16
- })(["", ":var(", ");", " ", ":calc(var(", ") * 2 + 2.063rem);"], calendarBaseTokens.calendarSeparatorBackground, tokens.calendarSeparatorBackground, baseCalendarTokens, calendarBaseTokens.calendarWidth, tokens.calendarWidth);
17
- export var StyledCalendar = /*#__PURE__*/styled(CalendarRange).withConfig({
18
- componentId: "plasma-new-hope__sc-vflcna-1"
19
- })(["", ""], baseCalendarTokens);
@@ -1,3 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { tokens } from '../../../DatePicker.tokens';
3
- export var base = /*#__PURE__*/css(["&[disabled]{opacity:var(", ");cursor:not-allowed;}"], tokens.disabledOpacity);
@@ -1,4 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { tokens } from '../../../DatePicker.tokens';
3
- import { LeftHelper, StyledLabel } from '../../RangeDate.styles';
4
- export var base = /*#__PURE__*/css(["&[readonly]{cursor:default;", ":transparent;", "{display:block;color:var(", ");}", "{color:var(", ");}}"], tokens.textFieldBackgroundColorReadOnly, StyledLabel, tokens.labelColorReadOnly, LeftHelper, tokens.leftHelperColorReadOnly);
@@ -1,4 +0,0 @@
1
- {
2
- "type": "boolean",
3
- "tokens": ["--plasma-date-picker__label-color-readonly", "--plasma-date-picker__left-helper-color-readonly"]
4
- }
@@ -1,4 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { tokens } from '../../../DatePicker.tokens';
3
- import { StyledLabel, LeftHelper } from '../../RangeDate.styles';
4
- export var base = /*#__PURE__*/css(["width:var(", ");", "{margin:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}"], tokens.width, StyledLabel, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, LeftHelper, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight);
@@ -1,4 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { LeftHelper, StyledLabel } from '../../RangeDate.styles';
3
- import { tokens } from '../../../DatePicker.tokens';
4
- export var base = /*#__PURE__*/css(["", "{display:block;color:var(", ");}", "{color:var(", ");}"], StyledLabel, tokens.labelColor, LeftHelper, tokens.leftHelperColor);