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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (728) hide show
  1. package/cjs/components/Calendar/Calendar.tokens.js +64 -28
  2. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  3. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  4. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +57 -29
  5. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
  6. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  7. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  8. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  9. package/cjs/components/Calendar/CalendarBase/{CalendarBase.styles_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
  10. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
  11. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
  12. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  13. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  14. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  15. package/cjs/components/Calendar/CalendarDouble/{CalendarDouble.styles_1rc2ejs.css → CalendarDouble.styles_e9ada0.css} +2 -2
  16. package/cjs/components/Calendar/hoc/withRange.js.map +1 -1
  17. package/cjs/components/Calendar/hooks/useDays.js +1 -1
  18. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  19. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  20. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  21. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  22. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_wuxgzs.css +4 -0
  23. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  24. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  25. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  26. package/cjs/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
  27. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
  28. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +26 -17
  29. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  30. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +27 -12
  31. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  32. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1b92i4d.css +8 -0
  33. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  34. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  35. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  36. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  37. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  38. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7kz2z4.css +4 -0
  39. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  40. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  41. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  42. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  44. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_hbv1kh.css +4 -0
  45. package/cjs/components/Calendar/utils/index.js.map +1 -1
  46. package/cjs/components/Combobox/Combobox.js +2 -2
  47. package/cjs/components/Combobox/Combobox.js.map +1 -1
  48. package/cjs/components/DatePicker/DatePicker.tokens.js +186 -0
  49. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -0
  50. package/cjs/components/DatePicker/DatePickerBase.styles.js +30 -0
  51. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -0
  52. package/cjs/components/DatePicker/DatePickerBase.styles_1u3oyx8.css +1 -0
  53. package/cjs/components/DatePicker/RangeDate/DatePicker.css +150 -0
  54. package/cjs/components/DatePicker/RangeDate/DatePicker.js +341 -0
  55. package/cjs/components/DatePicker/RangeDate/DatePicker.js.map +1 -0
  56. package/cjs/components/DatePicker/RangeDate/DatePicker.styles.js +39 -0
  57. package/cjs/components/DatePicker/RangeDate/DatePicker.styles.js.map +1 -0
  58. package/cjs/components/DatePicker/RangeDate/DatePicker.styles_1aihs63.css +3 -0
  59. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.css +142 -0
  60. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js +52 -0
  61. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js.map +1 -0
  62. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +32 -0
  63. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js.map +1 -0
  64. package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles_x3to15.css +1 -0
  65. package/cjs/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_disabled}/base.js +2 -2
  66. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
  67. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
  68. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +9 -0
  69. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
  70. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_1851hxh.css +1 -0
  71. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +9 -0
  72. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
  73. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1yswrwb.css +1 -0
  74. package/cjs/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_view}/base.js +1 -1
  75. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
  76. package/cjs/components/DatePicker/SingleDate/DatePicker.css +134 -0
  77. package/cjs/components/DatePicker/SingleDate/DatePicker.js +183 -0
  78. package/cjs/components/DatePicker/SingleDate/DatePicker.js.map +1 -0
  79. package/cjs/components/DatePicker/SingleDate/DatePicker.styles.js +51 -0
  80. package/cjs/components/DatePicker/SingleDate/DatePicker.styles.js.map +1 -0
  81. package/cjs/components/DatePicker/SingleDate/DatePicker.styles_1udo3ch.css +5 -0
  82. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
  83. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
  84. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
  85. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +9 -0
  86. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
  87. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base_ayigv4.css +1 -0
  88. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +9 -0
  89. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
  90. package/cjs/components/DatePicker/SingleDate/variations/_size/base_jrds3p.css +1 -0
  91. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +9 -0
  92. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
  93. package/cjs/components/DatePicker/SingleDate/variations/_view/base_163gwfv.css +1 -0
  94. package/cjs/components/DatePicker/hooks/useDatePicker.js +79 -0
  95. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -0
  96. package/cjs/components/DatePicker/utils/dateHelper.js +84 -0
  97. package/cjs/components/DatePicker/utils/dateHelper.js.map +1 -0
  98. package/cjs/components/Dropdown/Dropdown.js +2 -1
  99. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  100. package/cjs/components/Dropdown/utils/index.js +0 -17
  101. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  102. package/cjs/components/Range/Range.css +14 -8
  103. package/cjs/components/Range/Range.js +79 -32
  104. package/cjs/components/Range/Range.js.map +1 -1
  105. package/cjs/components/Range/Range.styles.js +23 -11
  106. package/cjs/components/Range/Range.styles.js.map +1 -1
  107. package/cjs/components/Range/Range.styles_nik84l.css +9 -0
  108. package/cjs/components/Range/variations/_readonly/base.js +1 -1
  109. package/cjs/components/Range/variations/_readonly/base_yv1z2h.css +1 -0
  110. package/cjs/components/Range/variations/_size/base.js +1 -1
  111. package/cjs/components/Range/variations/_size/{base_16xiubi.css → base_gbgxzj.css} +1 -1
  112. package/cjs/components/Range/variations/_view/base.js +1 -1
  113. package/cjs/components/Range/variations/_view/base_87gpil.css +1 -0
  114. package/cjs/components/Select/Select.js +2 -2
  115. package/cjs/components/Select/Select.js.map +1 -1
  116. package/cjs/components/Slider/Slider.css +3 -3
  117. package/cjs/components/Slider/components/Double/Double.css +3 -3
  118. package/cjs/components/TextField/TextField.tokens.js +1 -1
  119. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  120. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  121. package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
  122. package/cjs/components/TextField/variations/_size/base.js +1 -1
  123. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  124. package/cjs/components/TextField/variations/_size/base_orwx1f.css +1 -0
  125. package/cjs/components/TextField/variations/_view/base.js +1 -1
  126. package/cjs/components/TextField/variations/_view/base_18ea6z7.css +1 -0
  127. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +23 -0
  128. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
  129. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  130. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  131. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  132. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  133. package/cjs/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +5 -5
  134. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
  135. package/cjs/index.css +68 -41
  136. package/cjs/index.js +12 -8
  137. package/cjs/index.js.map +1 -1
  138. package/cjs/utils/datejs.js +12 -0
  139. package/cjs/utils/datejs.js.map +1 -0
  140. package/cjs/utils/getPopoverPlacement.js +23 -0
  141. package/cjs/utils/getPopoverPlacement.js.map +1 -0
  142. package/cjs/utils/index.js.map +1 -1
  143. package/es/components/Calendar/Calendar.tokens.js +64 -28
  144. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  145. package/es/components/Calendar/Calendar.types.js.map +1 -1
  146. package/es/components/Calendar/CalendarBase/CalendarBase.css +57 -29
  147. package/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
  148. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  149. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  150. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  151. package/es/components/Calendar/CalendarBase/{CalendarBase.styles_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
  152. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
  153. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
  154. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  155. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  156. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  157. package/es/components/Calendar/CalendarDouble/{CalendarDouble.styles_1rc2ejs.css → CalendarDouble.styles_e9ada0.css} +2 -2
  158. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  159. package/es/components/Calendar/hooks/useDays.js +1 -1
  160. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  161. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  162. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  163. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  164. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_wuxgzs.css +4 -0
  165. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  166. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  167. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  168. package/es/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
  169. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
  170. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +27 -18
  171. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  172. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +26 -13
  173. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  174. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1b92i4d.css +8 -0
  175. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  176. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  177. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  178. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  179. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  180. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7kz2z4.css +4 -0
  181. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  182. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  183. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  184. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  185. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  186. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_hbv1kh.css +4 -0
  187. package/es/components/Calendar/utils/index.js.map +1 -1
  188. package/es/components/Combobox/Combobox.js +1 -1
  189. package/es/components/Combobox/Combobox.js.map +1 -1
  190. package/es/components/DatePicker/DatePicker.tokens.js +181 -0
  191. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -0
  192. package/es/components/DatePicker/DatePickerBase.styles.js +26 -0
  193. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -0
  194. package/es/components/DatePicker/DatePickerBase.styles_1u3oyx8.css +1 -0
  195. package/es/components/DatePicker/RangeDate/DatePicker.css +150 -0
  196. package/es/components/DatePicker/RangeDate/DatePicker.js +336 -0
  197. package/es/components/DatePicker/RangeDate/DatePicker.js.map +1 -0
  198. package/es/components/DatePicker/RangeDate/DatePicker.styles.js +33 -0
  199. package/es/components/DatePicker/RangeDate/DatePicker.styles.js.map +1 -0
  200. package/es/components/DatePicker/RangeDate/DatePicker.styles_1aihs63.css +3 -0
  201. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.css +142 -0
  202. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js +48 -0
  203. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js.map +1 -0
  204. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +28 -0
  205. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js.map +1 -0
  206. package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles_x3to15.css +1 -0
  207. package/es/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_disabled}/base.js +2 -2
  208. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
  209. package/es/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
  210. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js +5 -0
  211. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
  212. package/es/components/DatePicker/RangeDate/variations/_readonly/base_1851hxh.css +1 -0
  213. package/es/components/DatePicker/RangeDate/variations/_size/base.js +5 -0
  214. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
  215. package/es/components/DatePicker/RangeDate/variations/_size/base_1yswrwb.css +1 -0
  216. package/es/components/{Accordion → DatePicker/RangeDate}/variations/_view/base.js +1 -1
  217. package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
  218. package/es/components/DatePicker/SingleDate/DatePicker.css +134 -0
  219. package/es/components/DatePicker/SingleDate/DatePicker.js +178 -0
  220. package/es/components/DatePicker/SingleDate/DatePicker.js.map +1 -0
  221. package/es/components/DatePicker/SingleDate/DatePicker.styles.js +43 -0
  222. package/es/components/DatePicker/SingleDate/DatePicker.styles.js.map +1 -0
  223. package/es/components/DatePicker/SingleDate/DatePicker.styles_1udo3ch.css +5 -0
  224. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js +5 -0
  225. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
  226. package/es/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
  227. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js +5 -0
  228. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
  229. package/es/components/DatePicker/SingleDate/variations/_readonly/base_ayigv4.css +1 -0
  230. package/es/components/DatePicker/SingleDate/variations/_size/base.js +5 -0
  231. package/es/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
  232. package/es/components/DatePicker/SingleDate/variations/_size/base_jrds3p.css +1 -0
  233. package/es/components/DatePicker/SingleDate/variations/_view/base.js +5 -0
  234. package/es/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
  235. package/es/components/DatePicker/SingleDate/variations/_view/base_163gwfv.css +1 -0
  236. package/es/components/DatePicker/hooks/useDatePicker.js +75 -0
  237. package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -0
  238. package/es/components/DatePicker/utils/dateHelper.js +76 -0
  239. package/es/components/DatePicker/utils/dateHelper.js.map +1 -0
  240. package/es/components/Dropdown/Dropdown.js +2 -1
  241. package/es/components/Dropdown/Dropdown.js.map +1 -1
  242. package/es/components/Dropdown/utils/index.js +1 -16
  243. package/es/components/Dropdown/utils/index.js.map +1 -1
  244. package/es/components/Range/Range.css +14 -8
  245. package/es/components/Range/Range.js +81 -34
  246. package/es/components/Range/Range.js.map +1 -1
  247. package/es/components/Range/Range.styles.js +23 -12
  248. package/es/components/Range/Range.styles.js.map +1 -1
  249. package/es/components/Range/Range.styles_nik84l.css +9 -0
  250. package/es/components/Range/variations/_readonly/base.js +1 -1
  251. package/es/components/Range/variations/_readonly/base_yv1z2h.css +1 -0
  252. package/es/components/Range/variations/_size/base.js +1 -1
  253. package/es/components/Range/variations/_size/{base_16xiubi.css → base_gbgxzj.css} +1 -1
  254. package/es/components/Range/variations/_view/base.js +1 -1
  255. package/es/components/Range/variations/_view/base_87gpil.css +1 -0
  256. package/es/components/Select/Select.js +1 -1
  257. package/es/components/Select/Select.js.map +1 -1
  258. package/es/components/Slider/Slider.css +3 -3
  259. package/es/components/Slider/components/Double/Double.css +3 -3
  260. package/es/components/TextField/TextField.tokens.js +1 -1
  261. package/es/components/TextField/TextField.tokens.js.map +1 -1
  262. package/es/components/TextField/variations/_read-only/base.js +1 -1
  263. package/es/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
  264. package/es/components/TextField/variations/_size/base.js +1 -1
  265. package/es/components/TextField/variations/_size/base.js.map +1 -1
  266. package/es/components/TextField/variations/_size/base_orwx1f.css +1 -0
  267. package/es/components/TextField/variations/_view/base.js +1 -1
  268. package/es/components/TextField/variations/_view/base_18ea6z7.css +1 -0
  269. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js +19 -0
  270. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
  271. package/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  272. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  273. package/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  274. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  275. package/es/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +5 -5
  276. package/es/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
  277. package/es/index.css +68 -41
  278. package/es/index.js +4 -3
  279. package/es/index.js.map +1 -1
  280. package/es/utils/datejs.js +8 -0
  281. package/es/utils/datejs.js.map +1 -0
  282. package/es/utils/getPopoverPlacement.js +18 -0
  283. package/es/utils/getPopoverPlacement.js.map +1 -0
  284. package/es/utils/index.js.map +1 -1
  285. package/package.json +3 -2
  286. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +64 -28
  287. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
  288. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
  289. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
  290. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  291. package/styled-components/cjs/components/Calendar/hooks/useDays.js +1 -1
  292. package/styled-components/cjs/components/Calendar/mixins/active.js +12 -0
  293. package/styled-components/cjs/components/Calendar/mixins/flex.js +8 -0
  294. package/styled-components/cjs/components/Calendar/mixins/index.js +30 -29
  295. package/styled-components/cjs/components/Calendar/mixins/selected.js +29 -0
  296. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +26 -14
  297. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
  298. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +25 -16
  299. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
  300. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  301. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +26 -12
  302. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  303. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +26 -14
  304. package/styled-components/cjs/components/Combobox/Combobox.js +6 -7
  305. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +184 -0
  306. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +19 -0
  307. package/styled-components/cjs/components/DatePicker/RangeDate/DatePicker.js +349 -0
  308. package/styled-components/cjs/components/DatePicker/RangeDate/DatePicker.styles.js +27 -0
  309. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js +50 -0
  310. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +20 -0
  311. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.js +5 -0
  312. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +9 -0
  313. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  314. package/styled-components/cjs/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_readonly}/base.js +2 -1
  315. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
  316. package/styled-components/cjs/components/{Accordion/variations/_stretching → DatePicker/RangeDate/variations/_size}/base.js +2 -1
  317. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  318. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  319. package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.js +190 -0
  320. package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.styles.js +33 -0
  321. package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.types.js +5 -0
  322. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
  323. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
  324. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +10 -0
  325. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
  326. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/base.js +10 -0
  327. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
  328. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/base.js +10 -0
  329. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
  330. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +77 -0
  331. package/styled-components/cjs/components/DatePicker/index.js +44 -0
  332. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +78 -0
  333. package/styled-components/cjs/components/Dropdown/Dropdown.js +1 -1
  334. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -16
  335. package/styled-components/cjs/components/Range/Range.js +78 -32
  336. package/styled-components/cjs/components/Range/Range.styles.js +16 -10
  337. package/styled-components/cjs/components/Select/Select.js +7 -8
  338. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -1
  339. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  340. package/styled-components/cjs/components/_Icon/Icon.assets/{Minus.js → DisclosureDownFill.js} +5 -4
  341. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  342. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  343. package/styled-components/cjs/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +4 -4
  344. package/styled-components/cjs/components/_Icon/index.js +8 -15
  345. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
  346. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
  347. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +4 -1
  348. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +31 -0
  349. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.js +13 -0
  350. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +302 -0
  351. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
  352. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
  353. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +4 -1
  354. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +31 -0
  355. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.js +13 -0
  356. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +302 -0
  357. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
  358. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
  359. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +4 -1
  360. package/styled-components/cjs/index.js +4 -4
  361. package/styled-components/cjs/utils/datejs.js +11 -0
  362. package/styled-components/cjs/utils/getPopoverPlacement.js +21 -0
  363. package/styled-components/cjs/utils/index.js +22 -0
  364. package/styled-components/es/components/Calendar/Calendar.tokens.js +64 -28
  365. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
  366. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
  367. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
  368. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  369. package/styled-components/es/components/Calendar/hooks/useDays.js +1 -1
  370. package/styled-components/es/components/Calendar/mixins/active.js +6 -0
  371. package/styled-components/es/components/Calendar/mixins/flex.js +2 -0
  372. package/styled-components/es/components/Calendar/mixins/index.js +3 -27
  373. package/styled-components/es/components/Calendar/mixins/selected.js +23 -0
  374. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +24 -12
  375. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
  376. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +27 -18
  377. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
  378. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  379. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +24 -10
  380. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  381. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +24 -12
  382. package/styled-components/es/components/Combobox/Combobox.js +1 -2
  383. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +178 -0
  384. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +12 -0
  385. package/styled-components/es/components/DatePicker/RangeDate/DatePicker.js +340 -0
  386. package/styled-components/es/components/DatePicker/RangeDate/DatePicker.styles.js +19 -0
  387. package/styled-components/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js +43 -0
  388. package/styled-components/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +13 -0
  389. package/styled-components/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.js +1 -0
  390. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/base.js +3 -0
  391. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  392. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +3 -0
  393. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
  394. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +3 -0
  395. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  396. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  397. package/styled-components/es/components/DatePicker/SingleDate/DatePicker.js +181 -0
  398. package/styled-components/es/components/DatePicker/SingleDate/DatePicker.styles.js +25 -0
  399. package/styled-components/es/components/DatePicker/SingleDate/DatePicker.types.js +1 -0
  400. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/base.js +3 -0
  401. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
  402. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/base.js +4 -0
  403. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
  404. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/base.js +4 -0
  405. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
  406. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/base.js +4 -0
  407. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
  408. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +71 -0
  409. package/styled-components/es/components/DatePicker/index.js +3 -0
  410. package/styled-components/es/components/DatePicker/utils/dateHelper.js +72 -0
  411. package/styled-components/es/components/Dropdown/Dropdown.js +2 -2
  412. package/styled-components/es/components/Dropdown/utils/index.js +0 -15
  413. package/styled-components/es/components/Range/Range.js +81 -35
  414. package/styled-components/es/components/Range/Range.styles.js +15 -9
  415. package/styled-components/es/components/Select/Select.js +1 -2
  416. package/styled-components/es/components/TextField/TextField.tokens.js +1 -1
  417. package/styled-components/es/components/TextField/variations/_size/base.js +1 -1
  418. package/styled-components/es/components/_Icon/Icon.assets/{Minus.js → DisclosureDownFill.js} +4 -3
  419. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  420. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  421. package/styled-components/es/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +3 -3
  422. package/styled-components/es/components/_Icon/index.js +2 -3
  423. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
  424. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
  425. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +4 -1
  426. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +25 -0
  427. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.js +7 -0
  428. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +302 -0
  429. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
  430. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
  431. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +4 -1
  432. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +25 -0
  433. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.js +7 -0
  434. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +302 -0
  435. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
  436. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
  437. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +4 -1
  438. package/styled-components/es/index.js +1 -1
  439. package/styled-components/es/utils/datejs.js +4 -0
  440. package/styled-components/es/utils/getPopoverPlacement.js +15 -0
  441. package/styled-components/es/utils/index.js +1 -0
  442. package/types/components/Calendar/Calendar.tokens.d.ts +57 -26
  443. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  444. package/types/components/Calendar/Calendar.types.d.ts +1 -1
  445. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  446. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +27 -3
  447. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  448. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  449. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +30 -3
  450. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  451. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  452. package/types/components/Calendar/mixins/active.d.ts +17 -0
  453. package/types/components/Calendar/mixins/active.d.ts.map +1 -0
  454. package/types/components/Calendar/mixins/flex.d.ts +3 -0
  455. package/types/components/Calendar/mixins/flex.d.ts.map +1 -0
  456. package/types/components/Calendar/mixins/index.d.ts +3 -8
  457. package/types/components/Calendar/mixins/index.d.ts.map +1 -1
  458. package/types/components/Calendar/mixins/selected.d.ts +60 -0
  459. package/types/components/Calendar/mixins/selected.d.ts.map +1 -0
  460. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
  461. package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
  462. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  463. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +47 -7
  464. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  465. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +1 -0
  466. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
  467. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  468. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  469. package/types/components/Calendar/utils/index.d.ts +1 -1
  470. package/types/components/Calendar/utils/index.d.ts.map +1 -1
  471. package/types/components/Combobox/Combobox.d.ts.map +1 -1
  472. package/types/components/DatePicker/DatePicker.tokens.d.ts +179 -0
  473. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -0
  474. package/types/components/DatePicker/DatePickerBase.styles.d.ts +8 -0
  475. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -0
  476. package/types/components/DatePicker/DatePickerBase.types.d.ts +37 -0
  477. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -0
  478. package/types/components/DatePicker/RangeDate/DatePicker.d.ts +32 -0
  479. package/types/components/DatePicker/RangeDate/DatePicker.d.ts.map +1 -0
  480. package/types/components/DatePicker/RangeDate/DatePicker.styles.d.ts +140 -0
  481. package/types/components/DatePicker/RangeDate/DatePicker.styles.d.ts.map +1 -0
  482. package/types/components/DatePicker/RangeDate/DatePicker.types.d.ts +128 -0
  483. package/types/components/DatePicker/RangeDate/DatePicker.types.d.ts.map +1 -0
  484. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.d.ts +4 -0
  485. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.d.ts.map +1 -0
  486. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.d.ts +4 -0
  487. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.d.ts.map +1 -0
  488. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.d.ts +21 -0
  489. package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.d.ts.map +1 -0
  490. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts.map +1 -0
  491. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +1 -0
  492. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +1 -0
  493. package/types/components/{Accordion/Accordion.styles.d.ts → DatePicker/RangeDate/variations/_view/base.d.ts} +1 -1
  494. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +1 -0
  495. package/types/components/DatePicker/SingleDate/DatePicker.d.ts +31 -0
  496. package/types/components/DatePicker/SingleDate/DatePicker.d.ts.map +1 -0
  497. package/types/components/DatePicker/SingleDate/DatePicker.styles.d.ts +45 -0
  498. package/types/components/DatePicker/SingleDate/DatePicker.styles.d.ts.map +1 -0
  499. package/types/components/DatePicker/SingleDate/DatePicker.types.d.ts +115 -0
  500. package/types/components/DatePicker/SingleDate/DatePicker.types.d.ts.map +1 -0
  501. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts +2 -0
  502. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts.map +1 -0
  503. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts +2 -0
  504. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts.map +1 -0
  505. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts +2 -0
  506. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts.map +1 -0
  507. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts +2 -0
  508. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts.map +1 -0
  509. package/types/components/DatePicker/hooks/useDatePicker.d.ts +10 -0
  510. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -0
  511. package/types/components/DatePicker/index.d.ts +6 -0
  512. package/types/components/DatePicker/index.d.ts.map +1 -0
  513. package/types/components/DatePicker/utils/dateHelper.d.ts +10 -0
  514. package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -0
  515. package/types/components/Dropdown/utils/index.d.ts +1 -3
  516. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  517. package/types/components/Range/Range.d.ts +3 -3
  518. package/types/components/Range/Range.d.ts.map +1 -1
  519. package/types/components/Range/Range.styles.d.ts +1 -0
  520. package/types/components/Range/Range.styles.d.ts.map +1 -1
  521. package/types/components/Range/Range.types.d.ts +46 -1
  522. package/types/components/Range/Range.types.d.ts.map +1 -1
  523. package/types/components/Select/Select.d.ts.map +1 -1
  524. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  525. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts +4 -0
  526. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts.map +1 -0
  527. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  528. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts +4 -0
  529. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts.map +1 -0
  530. package/types/components/_Icon/index.d.ts +1 -2
  531. package/types/components/_Icon/index.d.ts.map +1 -1
  532. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +15 -4
  533. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
  534. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +3 -0
  535. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  536. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +3 -0
  537. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  538. package/types/examples/plasma_b2c/components/{Accordion/Accordion.config.d.ts → DatePicker/DatePicker.config.d.ts} +7 -2
  539. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -0
  540. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +668 -0
  541. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -0
  542. package/types/examples/plasma_b2c/components/Range/Range.d.ts +30 -3
  543. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  544. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +15 -4
  545. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
  546. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +3 -0
  547. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  548. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +3 -0
  549. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  550. package/types/examples/plasma_web/components/{Accordion/Accordion.config.d.ts → DatePicker/DatePicker.config.d.ts} +6 -5
  551. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -0
  552. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +668 -0
  553. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -0
  554. package/types/examples/plasma_web/components/Range/Range.d.ts +30 -3
  555. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  556. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +15 -4
  557. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
  558. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +3 -0
  559. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  560. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +3 -0
  561. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  562. package/types/index.d.ts +1 -1
  563. package/types/index.d.ts.map +1 -1
  564. package/types/utils/datejs.d.ts +3 -0
  565. package/types/utils/datejs.d.ts.map +1 -0
  566. package/types/utils/getPopoverPlacement.d.ts +5 -0
  567. package/types/utils/getPopoverPlacement.d.ts.map +1 -0
  568. package/types/utils/index.d.ts +1 -0
  569. package/types/utils/index.d.ts.map +1 -1
  570. package/cjs/components/Accordion/Accordion.css +0 -1
  571. package/cjs/components/Accordion/Accordion.js +0 -68
  572. package/cjs/components/Accordion/Accordion.js.map +0 -1
  573. package/cjs/components/Accordion/Accordion.styles.js +0 -9
  574. package/cjs/components/Accordion/Accordion.styles.js.map +0 -1
  575. package/cjs/components/Accordion/Accordion.styles_rsiff6.css +0 -1
  576. package/cjs/components/Accordion/Accordion.tokens.js +0 -45
  577. package/cjs/components/Accordion/Accordion.tokens.js.map +0 -1
  578. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -103
  579. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js.map +0 -1
  580. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -63
  581. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +0 -1
  582. package/cjs/components/Accordion/utils/index.js +0 -27
  583. package/cjs/components/Accordion/utils/index.js.map +0 -1
  584. package/cjs/components/Accordion/variations/_size/base.js.map +0 -1
  585. package/cjs/components/Accordion/variations/_view/base.js.map +0 -1
  586. package/cjs/components/Calendar/mixins/index.js +0 -18
  587. package/cjs/components/Calendar/mixins/index.js.map +0 -1
  588. package/cjs/components/Calendar/mixins/index_o3bz9l.css +0 -1
  589. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
  590. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
  591. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
  592. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
  593. package/cjs/components/Range/Range.styles_mc4w65.css +0 -8
  594. package/cjs/components/Range/variations/_readonly/base_tzdxy8.css +0 -1
  595. package/cjs/components/Range/variations/_view/base_5iz3nr.css +0 -1
  596. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  597. package/cjs/components/TextField/variations/_size/base_ntoddv.css +0 -1
  598. package/cjs/components/TextField/variations/_view/base_19gxyva.css +0 -1
  599. package/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +0 -24
  600. package/cjs/components/_Icon/Icon.assets/ChevronDownFill.js.map +0 -1
  601. package/cjs/components/_Icon/Icon.assets/Minus.js +0 -22
  602. package/cjs/components/_Icon/Icon.assets/Minus.js.map +0 -1
  603. package/cjs/components/_Icon/Icons/IconChevronDownFill.js +0 -23
  604. package/cjs/components/_Icon/Icons/IconChevronDownFill.js.map +0 -1
  605. package/cjs/components/_Icon/Icons/IconMinus.js.map +0 -1
  606. package/es/components/Accordion/Accordion.css +0 -1
  607. package/es/components/Accordion/Accordion.js +0 -63
  608. package/es/components/Accordion/Accordion.js.map +0 -1
  609. package/es/components/Accordion/Accordion.styles.js +0 -5
  610. package/es/components/Accordion/Accordion.styles.js.map +0 -1
  611. package/es/components/Accordion/Accordion.styles_rsiff6.css +0 -1
  612. package/es/components/Accordion/Accordion.tokens.js +0 -40
  613. package/es/components/Accordion/Accordion.tokens.js.map +0 -1
  614. package/es/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -99
  615. package/es/components/Accordion/ui/AccordionItem/AccordionItem.js.map +0 -1
  616. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -49
  617. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +0 -1
  618. package/es/components/Accordion/utils/index.js +0 -22
  619. package/es/components/Accordion/utils/index.js.map +0 -1
  620. package/es/components/Accordion/variations/_size/base.js.map +0 -1
  621. package/es/components/Accordion/variations/_size/base_x642ct.css +0 -1
  622. package/es/components/Accordion/variations/_view/base.js.map +0 -1
  623. package/es/components/Accordion/variations/_view/base_x642ct.css +0 -1
  624. package/es/components/Calendar/mixins/index.js +0 -14
  625. package/es/components/Calendar/mixins/index.js.map +0 -1
  626. package/es/components/Calendar/mixins/index_o3bz9l.css +0 -1
  627. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
  628. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
  629. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
  630. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
  631. package/es/components/Range/Range.styles_mc4w65.css +0 -8
  632. package/es/components/Range/variations/_readonly/base_tzdxy8.css +0 -1
  633. package/es/components/Range/variations/_view/base_5iz3nr.css +0 -1
  634. package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  635. package/es/components/TextField/variations/_size/base_ntoddv.css +0 -1
  636. package/es/components/TextField/variations/_view/base_19gxyva.css +0 -1
  637. package/es/components/_Icon/Icon.assets/ChevronDownFill.js +0 -20
  638. package/es/components/_Icon/Icon.assets/ChevronDownFill.js.map +0 -1
  639. package/es/components/_Icon/Icon.assets/Minus.js +0 -18
  640. package/es/components/_Icon/Icon.assets/Minus.js.map +0 -1
  641. package/es/components/_Icon/Icons/IconChevronDownFill.js +0 -19
  642. package/es/components/_Icon/Icons/IconChevronDownFill.js.map +0 -1
  643. package/es/components/_Icon/Icons/IconMinus.js.map +0 -1
  644. package/styled-components/cjs/components/Accordion/Accordion.js +0 -73
  645. package/styled-components/cjs/components/Accordion/Accordion.styles.js +0 -9
  646. package/styled-components/cjs/components/Accordion/Accordion.tokens.js +0 -43
  647. package/styled-components/cjs/components/Accordion/index.js +0 -38
  648. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -109
  649. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -49
  650. package/styled-components/cjs/components/Accordion/utils/index.js +0 -24
  651. package/styled-components/cjs/components/Accordion/variations/_size/tokens.json +0 -6
  652. package/styled-components/cjs/components/Accordion/variations/_stretching/tokens.json +0 -1
  653. package/styled-components/cjs/components/Accordion/variations/_view/tokens.json +0 -8
  654. package/styled-components/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +0 -23
  655. package/styled-components/cjs/components/_Icon/Icons/IconChevronDownFill.js +0 -22
  656. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.config.js +0 -26
  657. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.js +0 -17
  658. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +0 -66
  659. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.config.js +0 -30
  660. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.js +0 -17
  661. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +0 -65
  662. package/styled-components/es/components/Accordion/Accordion.js +0 -64
  663. package/styled-components/es/components/Accordion/Accordion.styles.js +0 -3
  664. package/styled-components/es/components/Accordion/Accordion.tokens.js +0 -37
  665. package/styled-components/es/components/Accordion/index.js +0 -3
  666. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -100
  667. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -42
  668. package/styled-components/es/components/Accordion/utils/index.js +0 -18
  669. package/styled-components/es/components/Accordion/variations/_size/tokens.json +0 -6
  670. package/styled-components/es/components/Accordion/variations/_stretching/base.js +0 -2
  671. package/styled-components/es/components/Accordion/variations/_stretching/tokens.json +0 -1
  672. package/styled-components/es/components/Accordion/variations/_view/base.js +0 -2
  673. package/styled-components/es/components/Accordion/variations/_view/tokens.json +0 -8
  674. package/styled-components/es/components/_Icon/Icon.assets/ChevronDownFill.js +0 -16
  675. package/styled-components/es/components/_Icon/Icons/IconChevronDownFill.js +0 -15
  676. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.config.js +0 -20
  677. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.js +0 -6
  678. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +0 -66
  679. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.config.js +0 -24
  680. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.js +0 -6
  681. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +0 -65
  682. package/types/components/Accordion/Accordion.d.ts +0 -43
  683. package/types/components/Accordion/Accordion.d.ts.map +0 -1
  684. package/types/components/Accordion/Accordion.styles.d.ts.map +0 -1
  685. package/types/components/Accordion/Accordion.tokens.d.ts +0 -38
  686. package/types/components/Accordion/Accordion.tokens.d.ts.map +0 -1
  687. package/types/components/Accordion/Accordion.types.d.ts +0 -36
  688. package/types/components/Accordion/Accordion.types.d.ts.map +0 -1
  689. package/types/components/Accordion/index.d.ts +0 -5
  690. package/types/components/Accordion/index.d.ts.map +0 -1
  691. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts +0 -4
  692. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts.map +0 -1
  693. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts +0 -13
  694. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts.map +0 -1
  695. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts +0 -47
  696. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts.map +0 -1
  697. package/types/components/Accordion/utils/index.d.ts +0 -16
  698. package/types/components/Accordion/utils/index.d.ts.map +0 -1
  699. package/types/components/Accordion/variations/_size/base.d.ts.map +0 -1
  700. package/types/components/Accordion/variations/_stretching/base.d.ts.map +0 -1
  701. package/types/components/Accordion/variations/_view/base.d.ts.map +0 -1
  702. package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts +0 -4
  703. package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts.map +0 -1
  704. package/types/components/_Icon/Icon.assets/Minus.d.ts +0 -4
  705. package/types/components/_Icon/Icon.assets/Minus.d.ts.map +0 -1
  706. package/types/components/_Icon/Icons/IconChevronDownFill.d.ts +0 -4
  707. package/types/components/_Icon/Icons/IconChevronDownFill.d.ts.map +0 -1
  708. package/types/components/_Icon/Icons/IconMinus.d.ts +0 -4
  709. package/types/components/_Icon/Icons/IconMinus.d.ts.map +0 -1
  710. package/types/examples/plasma_b2c/components/Accordion/Accordion.config.d.ts.map +0 -1
  711. package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts +0 -26
  712. package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts.map +0 -1
  713. package/types/examples/plasma_web/components/Accordion/Accordion.config.d.ts.map +0 -1
  714. package/types/examples/plasma_web/components/Accordion/Accordion.d.ts +0 -30
  715. package/types/examples/plasma_web/components/Accordion/Accordion.d.ts.map +0 -1
  716. /package/cjs/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_view}/base_x642ct.css +0 -0
  717. /package/cjs/components/{Accordion/ui/AccordionItem/AccordionItem.css → _Icon/Icons/IconClose.css} +0 -0
  718. /package/{cjs/components/Accordion → es/components/DatePicker/RangeDate}/variations/_view/base_x642ct.css +0 -0
  719. /package/es/components/{Accordion/ui/AccordionItem/AccordionItem.css → _Icon/Icons/IconClose.css} +0 -0
  720. /package/styled-components/cjs/components/{Accordion/Accordion.types.js → DatePicker/DatePickerBase.types.js} +0 -0
  721. /package/styled-components/cjs/components/{Accordion/ui/AccordionItem/AccordionItem.types.js → DatePicker/RangeDate/DatePicker.types.js} +0 -0
  722. /package/styled-components/cjs/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_view}/base.js +0 -0
  723. /package/styled-components/es/components/{Accordion/Accordion.types.js → DatePicker/DatePickerBase.types.js} +0 -0
  724. /package/styled-components/es/components/{Accordion/ui/AccordionItem/AccordionItem.types.js → DatePicker/RangeDate/DatePicker.types.js} +0 -0
  725. /package/styled-components/es/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_view}/base.js +0 -0
  726. /package/types/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_disabled}/base.d.ts +0 -0
  727. /package/types/components/{Accordion/variations/_stretching → DatePicker/RangeDate/variations/_readonly}/base.d.ts +0 -0
  728. /package/types/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_size}/base.d.ts +0 -0
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var React = require('react');
6
-
7
- var updatePropsRecursively = function updatePropsRecursively(children, activeIndex, disabled, updateValue) {
8
- return React.Children.map(children || [], function (child, index) {
9
- if (! /*#__PURE__*/React.isValidElement(child)) {
10
- return child;
11
- }
12
- var props = {
13
- index: index,
14
- value: activeIndex === index,
15
- disabled: disabled,
16
- onChangeValue: updateValue
17
- };
18
- return /*#__PURE__*/React.cloneElement(child, props);
19
- });
20
- };
21
- var getChildren = function getChildren(children, activeIndex, disabled, updateValue) {
22
- return updatePropsRecursively(children, activeIndex, disabled, updateValue);
23
- };
24
-
25
- exports.getChildren = getChildren;
26
- exports.updatePropsRecursively = updatePropsRecursively;
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Accordion/utils/index.ts"],"sourcesContent":["import { Children, ReactElement, ReactNode, cloneElement, isValidElement } from 'react';\n\nimport { AccordionItemProps } from '../ui/AccordionItem/AccordionItem.types';\n\nexport const updatePropsRecursively = (\n children?: ReactElement<AccordionItemProps>[],\n activeIndex?: number,\n disabled?: boolean,\n updateValue?: (index?: number, value?: boolean) => void,\n): ReactNode[] =>\n Children.map(children || [], (child, index) => {\n if (!isValidElement(child)) {\n return child;\n }\n\n const props = {\n index,\n value: activeIndex === index,\n disabled,\n onChangeValue: updateValue,\n };\n\n return cloneElement(child, props);\n });\n\nexport const getChildren = (\n children: ReactElement<AccordionItemProps>[],\n activeIndex?: number,\n disabled?: boolean,\n updateValue?: (index?: number, value?: boolean) => void,\n) => {\n return updatePropsRecursively(children, activeIndex, disabled, updateValue);\n};\n"],"names":["updatePropsRecursively","children","activeIndex","disabled","updateValue","Children","map","child","index","isValidElement","props","value","onChangeValue","cloneElement","getChildren"],"mappings":";;;;;;AAIaA,IAAAA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAC/BC,QAA6C,EAC7CC,WAAoB,EACpBC,QAAkB,EAClBC,WAAuD,EAAA;AAAA,EAAA,OAEvDC,cAAQ,CAACC,GAAG,CAACL,QAAQ,IAAI,EAAE,EAAE,UAACM,KAAK,EAAEC,KAAK,EAAK;AAC3C,IAAA,IAAI,eAACC,oBAAc,CAACF,KAAK,CAAC,EAAE;AACxB,MAAA,OAAOA,KAAK,CAAA;AAChB,KAAA;AAEA,IAAA,IAAMG,KAAK,GAAG;AACVF,MAAAA,KAAK,EAALA,KAAK;MACLG,KAAK,EAAET,WAAW,KAAKM,KAAK;AAC5BL,MAAAA,QAAQ,EAARA,QAAQ;AACRS,MAAAA,aAAa,EAAER,WAAAA;KAClB,CAAA;AAED,IAAA,oBAAOS,kBAAY,CAACN,KAAK,EAAEG,KAAK,CAAC,CAAA;AACrC,GAAC,CAAC,CAAA;AAAA,EAAA;AAEOI,IAAAA,WAAW,GAAG,SAAdA,WAAWA,CACpBb,QAA4C,EAC5CC,WAAoB,EACpBC,QAAkB,EAClBC,WAAuD,EACtD;EACD,OAAOJ,sBAAsB,CAACC,QAAQ,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,WAAW,CAAC,CAAA;AAC/E;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Accordion/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":";;;;AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Accordion/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":";;;;AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,18 +0,0 @@
1
- import './index_o3bz9l.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var react = require('@linaria/react');
7
-
8
- /**
9
- * Миксин для установки синтетического фокуса на выбранной кнопке.
10
- */
11
- var buttonFocus = /*#__PURE__*/react.styled('button')({
12
- name: "buttonFocus",
13
- "class": "bd8av9p",
14
- propsAsIs: false
15
- });
16
-
17
- exports.buttonFocus = buttonFocus;
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Calendar/mixins/index.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { tokens } from '../Calendar.tokens';\nimport { addFocus } from '../../../mixins';\n\nexport const flexCenter = `\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nexport const flexSpaceBetween = `\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\n/**\n * Миксин для установки синтетического фокуса на выбранной кнопке.\n */\nexport const buttonFocus = styled.button`\n border: none;\n background-color: transparent;\n padding: 0;\n outline: none;\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.calendarOutlineFocusColor})`,\n outlineRadius: '0.563rem',\n })};\n`;\n\n/**\n * Миксины для изменения стиля выбранного дня.\n */\nconst active = `\n &:active {\n background-color: var(--calendar_private-active-background);\n color: var(--calendar_private-active-color);\n font-weight: var(--plasma-typo-body-s-bold-font-weight);\n }\n`;\n\n/*\n * Если использовать токены и классы из ./tokens rollup ругается на этот миксин\n */\nexport const selectedMixin = `\n outline: none;\n cursor: pointer;\n\n &:hover:not(.item-selected) {\n background-color: var(--calendar_private-selectable-background-hover);\n \n ${String(active)};\n };\n\n &.item-selected {\n border: 0;\n background-color: var(--calendar_private-selected-background);\n color: var(--calendar_private-selected-color);\n cursor: default;\n font-weight: var(--plasma-typo-body-s-bold-font-weight);\n };\n\n &.item-current {\n border: 0.063rem solid var(--calendar_private-current-border-color);\n\n &:not(.item-selected):hover {\n background-color: var(--calendar_private-current-background-hover);\n color: var(--calendar_private-current-color-hover);\n\n & > div:first-of-type {\n background-color: var(--calendar_private-current-child-background-hover);\n min-width: var(--calendar_private-selected-min-width);\n min-height: var(--calendar_private-selected-min-height);\n }\n \n ${String(active)};\n }\n };\n\n &.item-hovered, &.item-hovered:hover {\n background-color: var(--calendar_private-hovered-background);\n color: var(--calendar_private-hovered-color);\n cursor: pointer;\n font-weight: var(--plasma-typo-body-s-bold-font-weight);\n ${String(active)};\n }\n\n ${String(active)};\n`;\n"],"names":["buttonFocus","styled","name","class","propsAsIs"],"mappings":";;;;;;AAiBA;AACA;AACA;AACO,IAAMA,WAAW,gBAAGC,YAAM,CAAA,QAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAYhC;;;;"}
@@ -1 +0,0 @@
1
- .bd8av9p{border:none;background-color:transparent;padding:0;outline:none;position:relative;}.bd8av9p::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.bd8av9p.focus-visible:focus::before,.bd8av9p[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}
@@ -1,4 +0,0 @@
1
- .sotsbos{border-radius:0.375rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.sotsbos.day-in-range:before{content:'';z-index:-1;position:absolute;width:2.5rem;height:1.875rem;background:var(--plasma-calendar-range-background);}.sotsbos.day-side-in-range:before{content:'';z-index:-1;position:absolute;width:0.313rem;height:1.875rem;background:var(--plasma-calendar-range-background);}.sotsbos.day-side-left:before{left:var(--sotsbos-0);}.sotsbos.day-side-right:before{right:var(--sotsbos-0);}
2
- .smv00b5{font-family:var(--plasma-calendar-day-font-family);font-size:var(--plasma-calendar-day-font-size);font-style:var(--plasma-calendar-day-font-style);font-weight:var(--plasma-calendar-day-font-weight);-webkit-letter-spacing:var(--plasma-calendar-day-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-day-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-day-font-letter-spacing);letter-spacing:var(--plasma-calendar-day-font-letter-spacing);line-height:var(--plasma-calendar-day-line-height);position:relative;box-sizing:border-box;min-width:2.5rem;min-height:2rem;border-radius:var(--plasma-calendar-item-border-radius);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--smv00b5-0);visibility:var(--smv00b5-1);}.smv00b5.item-selectable{--calendar_private-selected-min-width:2.25rem;--calendar_private-selected-min-height:1.75rem;--calendar_private-selected-background:var(--plasma-calendar-selected-item-background);--calendar_private-selected-color:var(--plasma-calendar-selected-item-color);--calendar_private-selectable-background-hover:var(--plasma-calendar-selectable-item-bg-hover);--calendar_private-current-border-color:var(--plasma-calendar-current-item-border-color);--calendar_private-current-background-hover:var(--plasma-calendar-current-item-bg-hover);--calendar_private-current-color-hover:var(--plasma-calendar-current-item-color-hover);--calendar_private-current-child-background-hover:var(--plasma-calendar-current-item-child-bg-hover);--calendar_private-active-background:var(--plasma-calendar-active-item-bg);--calendar_private-active-color:var(--plasma-calendar-active-item-color);--calendar_private-hovered-background:var(--plasma-calendar-hovered-item-bg);--calendar_private-hovered-color:var(--plasma-calendar-hovered-item-color);position:relative;outline:none;cursor:pointer;}.smv00b5.item-selectable::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.smv00b5.item-selectable.focus-visible:focus::before,.smv00b5.item-selectable[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.smv00b5.item-selectable:hover:not(.item-selected){background-color:var(--calendar_private-selectable-background-hover);}.smv00b5.item-selectable:hover:not(.item-selected):active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.smv00b5.item-selectable.item-selected{border:0;background-color:var(--calendar_private-selected-background);color:var(--calendar_private-selected-color);cursor:default;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.smv00b5.item-selectable.item-current{border:0.063rem solid var(--calendar_private-current-border-color);}.smv00b5.item-selectable.item-current:not(.item-selected):hover{background-color:var(--calendar_private-current-background-hover);color:var(--calendar_private-current-color-hover);}.smv00b5.item-selectable.item-current:not(.item-selected):hover > div:first-of-type{background-color:var(--calendar_private-current-child-background-hover);min-width:var(--calendar_private-selected-min-width);min-height:var(--calendar_private-selected-min-height);}.smv00b5.item-selectable.item-current:not(.item-selected):hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.smv00b5.item-selectable.item-hovered,.smv00b5.item-selectable.item-hovered:hover{background-color:var(--calendar_private-hovered-background);color:var(--calendar_private-hovered-color);cursor:pointer;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.smv00b5.item-selectable.item-hovered:active,.smv00b5.item-selectable.item-hovered:hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.smv00b5.item-selectable:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.smv00b5.day-of-week{color:var(--plasma-colors-tertiary);}.smv00b5.day-disabled{cursor:not-allowed;opacity:0.4;position:relative;}.smv00b5.day-disabled::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.smv00b5.day-disabled.focus-visible:focus::before,.smv00b5.day-disabled[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.smv00b5.day-disabled-current{cursor:not-allowed;opacity:0.4;position:relative;--calendar_private-add-focus-outline-offset:0.125rem;}.smv00b5.day-disabled-current::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.smv00b5.day-disabled-current.focus-visible:focus::before,.smv00b5.day-disabled-current[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}
3
- .s58etsc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;bottom:0.25rem;}
4
- .say0ota{margin:0 0.063rem;width:0.188rem;height:0.188rem;border-radius:50%;background-color:var(--say0ota-0);}
@@ -1,6 +0,0 @@
1
- .sjaqipy{padding:1rem 1.5rem 0;font-family:var(--plasma-calendar-header-font-family);font-size:var(--plasma-calendar-header-font-size);font-style:var(--plasma-calendar-header-font-style);font-weight:var(--plasma-calendar-header-font-weight-bold);-webkit-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);letter-spacing:var(--plasma-calendar-header-font-letter-spacing);line-height:var(--plasma-calendar-header-line-height);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
2
- .s1k7jebr{color:var(--plasma-calendar-content-primary-color);cursor:pointer;padding:0.5rem 0;font-family:var(--plasma-calendar-header-font-family);font-size:var(--plasma-calendar-header-font-size);font-style:var(--plasma-calendar-header-font-style);font-weight:var(--plasma-calendar-header-font-weight-bold);-webkit-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);letter-spacing:var(--plasma-calendar-header-font-letter-spacing);line-height:var(--plasma-calendar-header-line-height);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
3
- .s1b07tlr{font-family:var(--plasma-calendar-header-font-family);font-size:var(--plasma-calendar-header-font-size);font-style:var(--plasma-calendar-header-font-style);font-weight:var(--plasma-calendar-header-font-weight-bold);-webkit-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);letter-spacing:var(--plasma-calendar-header-font-letter-spacing);line-height:var(--plasma-calendar-header-line-height);margin-top:0;margin-bottom:0;padding:0.5rem 0;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.s1b07tlr:first-of-type{margin-right:3rem;}.s1b07tlr:last-of-type{margin-left:3rem;}
4
- .s13yvda3{padding:0.5rem 0;width:var(--plasma-calendar-arrow-container-width);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
5
- .s1i8jkj2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;}
6
- .sw3by8z{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
@@ -1,4 +0,0 @@
1
- .s2fb05v{padding:0.5rem 1.5rem 1.5rem;box-sizing:border-box;}
2
- .s1nlg4aa{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
3
- .s1cvx4bk{border-radius:0.438rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
4
- .s14caaqm{font-family:var(--plasma-calendar-month-font-family);font-size:var(--plasma-calendar-month-font-size);font-style:var(--plasma-calendar-month-font-style);font-weight:var(--plasma-calendar-month-font-weight);-webkit-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);letter-spacing:var(--plasma-calendar-month-font-letter-spacing);line-height:var(--plasma-calendar-month-line-height);position:relative;box-sizing:border-box;min-height:3.5rem;border-radius:var(--plasma-calendar-item-border-radius);-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;--calendar_private-selected-min-width:5.25rem;--calendar_private-selected-min-height:3.25rem;--calendar_private-selected-background:var(--plasma-calendar-selected-item-background);--calendar_private-selected-color:var(--plasma-calendar-selected-item-color);--calendar_private-selectable-background-hover:var(--plasma-calendar-selectable-item-bg-hover);--calendar_private-current-border-color:var(--plasma-calendar-current-item-border-color);--calendar_private-current-background-hover:var(--plasma-calendar-current-item-bg-hover);--calendar_private-current-color-hover:var(--plasma-calendar-current-item-color-hover);--calendar_private-current-child-background-hover:var(--plasma-calendar-current-item-child-bg-hover);--calendar_private-active-background:var(--plasma-calendar-active-item-bg);--calendar_private-active-color-hover:var(--plasma-calendar-active-item-color);--calendar_private-hovered-background:var(--plasma-calendar-hovered-item-bg);--calendar_private-hovered-color:var(--plasma-calendar-hovered-item-color);outline:none;cursor:pointer;}.s14caaqm::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.s14caaqm.focus-visible:focus::before,.s14caaqm[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.s14caaqm:hover:not(.item-selected){background-color:var(--calendar_private-selectable-background-hover);}.s14caaqm:hover:not(.item-selected):active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm.item-selected{border:0;background-color:var(--calendar_private-selected-background);color:var(--calendar_private-selected-color);cursor:default;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm.item-current{border:0.063rem solid var(--calendar_private-current-border-color);}.s14caaqm.item-current:not(.item-selected):hover{background-color:var(--calendar_private-current-background-hover);color:var(--calendar_private-current-color-hover);}.s14caaqm.item-current:not(.item-selected):hover > div:first-of-type{background-color:var(--calendar_private-current-child-background-hover);min-width:var(--calendar_private-selected-min-width);min-height:var(--calendar_private-selected-min-height);}.s14caaqm.item-current:not(.item-selected):hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm.item-hovered,.s14caaqm.item-hovered:hover{background-color:var(--calendar_private-hovered-background);color:var(--calendar_private-hovered-color);cursor:pointer;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm.item-hovered:active,.s14caaqm.item-hovered:hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}
@@ -1,4 +0,0 @@
1
- .sq90exc{padding:0.5rem 1.5rem 1.5rem;box-sizing:border-box;}
2
- .sp45mzt{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
3
- .s1rv7a6a{border-radius:0.438rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
4
- .s1fgpu0g{font-family:var(--plasma-calendar-year-font-family);font-size:var(--plasma-calendar-year-font-size);font-style:var(--plasma-calendar-year-font-style);font-weight:var(--plasma-calendar-year-font-weight);-webkit-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);letter-spacing:var(--plasma-calendar-year-font-letter-spacing);line-height:var(--plasma-calendar-year-line-height);position:relative;box-sizing:border-box;min-height:3.5rem;border-radius:var(--plasma-calendar-item-border-radius);-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;--calendar_private-selected-min-width:5.25rem;--calendar_private-selected-min-height:3.25rem;--calendar_private-selected-background:var(--plasma-calendar-selected-item-background);--calendar_private-selected-color:var(--plasma-calendar-selected-item-color);--calendar_private-selectable-background-hover:var(--plasma-calendar-selectable-item-bg-hover);--calendar_private-current-border-color:var(--plasma-calendar-current-item-border-color);--calendar_private-current-background-hover:var(--plasma-calendar-current-item-bg-hover);--calendar_private-current-color-hover:var(--plasma-calendar-current-item-color-hover);--calendar_private-current-child-background-hover:var(--plasma-calendar-current-item-child-bg-hover);--calendar_private-active-background:var(--plasma-calendar-active-item-bg);--calendar_private-active-color:var(--plasma-calendar-active-item-color);--calendar_private-hovered-background:var(--plasma-calendar-hovered-item-bg);--calendar_private-hovered-color:var(--plasma-calendar-hovered-item-color);outline:none;cursor:pointer;}.s1fgpu0g::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.s1fgpu0g.focus-visible:focus::before,.s1fgpu0g[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.s1fgpu0g:hover:not(.item-selected){background-color:var(--calendar_private-selectable-background-hover);}.s1fgpu0g:hover:not(.item-selected):active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g.item-selected{border:0;background-color:var(--calendar_private-selected-background);color:var(--calendar_private-selected-color);cursor:default;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g.item-current{border:0.063rem solid var(--calendar_private-current-border-color);}.s1fgpu0g.item-current:not(.item-selected):hover{background-color:var(--calendar_private-current-background-hover);color:var(--calendar_private-current-color-hover);}.s1fgpu0g.item-current:not(.item-selected):hover > div:first-of-type{background-color:var(--calendar_private-current-child-background-hover);min-width:var(--calendar_private-selected-min-width);min-height:var(--calendar_private-selected-min-height);}.s1fgpu0g.item-current:not(.item-selected):hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g.item-hovered,.s1fgpu0g.item-hovered:hover{background-color:var(--calendar_private-hovered-background);color:var(--calendar_private-hovered-color);cursor:pointer;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g.item-hovered:active,.s1fgpu0g.item-hovered:hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}
@@ -1,8 +0,0 @@
1
- .s1k2erwt{-webkit-flex:1;-ms-flex:1;flex:1;--plasma-textfield-color:var(--plasma-range-textfield-color);--plasma-textfield__placeholder-color:var(--plasma-range-textfield-placeholder-color);--plasma-textfield__caret-color:var(--plasma-range-textfield-caret-color);--plasma-textfield-focus-color:var(--plasma-range-textfield-focus-color);--plasma-textfield-bg-color:var(--plasma-range-textfield-background-color);--plasma-textfield-bg-color-hover:var(--plasma-range-textfield-background-color-hover);--plasma-textfield-bg-color-focus:var(--plasma-range-textfield-background-color-focus);--plasma-textfield-border-color:var(--plasma-range-textfield-border-color);--plasma-textfield-border-color-hover:var(--plasma-range-textfield-border-color-hover);--plasma-textfield-border-color-focus:var(--plasma-range-textfield-border-color-focus);--plasma-textfield-color-readonly:var(--plasma-range-textfield-color-readonly);--plasma-textfield-bg-color-readonly:var(--plasma-range-textfield-background-color-readonly);--plasma-textfield-border-color-readonly:var(--plasma-range-textfield-border-color-readonly);--plasma-textfield__placeholder-color-readonly:var(--plasma-range-textfield-placeholder-color-readonly);--plasma-textfield-height:var(--plasma-range-textfield-height);--plasmas-textfield-border-width:var(--plasma-range-textfield-border-width);--plasma-textfield-border-radius:var(--plasma-range-textfield-border-radius);--plasma-textfield-padding:var(--plasma-range-textfield-padding);--plasma-textfield__left-content-margin:var(--plasma-range-textfield__left-content-margin);--plasma-textfield__right-content-margin:var(--plasma-range-textfield__right-content-margin);--plasma-textfield-font-family:var(--plasma-range-textfield-font-family);--plasma-textfield-font-size:var(--plasma-range-textfield-font-size);--plasma-textfield-font-style:var(--plasma-range-textfield-font-style);--plasma-textfield-font-weight:var(--plasma-range-textfield-font-weight);--plasma-textfield-letter-spacing:var(--plasma-range-textfield-letter-spacing);--plasma-textfield-line-height:var(--plasma-range-textfield-line-height);--plasma-textfield-disabled-opacity:var(--plasma-range-disabled-opacity);--plasma-textfield__before-text-color:var(--plasma-range-textfield__before-text-color);--plasma-textfield__after-text-color:var(--plasma-range-textfield__after-text-color);--plasma-textfield__before-text-margin:var(--plasma-range-textfield__before-text-margin);--plasma-textfield__after-text-margin:var(--plasma-range-textfield__after-text-margin);}.s1k2erwt.range-value-error{--plasma-textfield-bg-color:var(--plasma-range-textfield-background-color-error);--plasma-textfield-bg-color-hover:var(--plasma-range-textfield-background-color-error-hover);--plasma-textfield-bg-color-focus:var(--plasma-range-textfield-background-color-error-focus);--plasma-textfield-border-color:var(--plasma-range-textfield-border-color-error);--plasma-textfield-border-color-hover:var(--plasma-range-textfield-border-color-error-hover);--plasma-textfield-border-color-focus:var(--plasma-range-textfield-border-color-error-focus);}.s1k2erwt.range-value-success{--plasma-textfield-bg-color:var(--plasma-range-textfield-background-color-success);--plasma-textfield-bg-color-hover:var(--plasma-range-textfield-background-color-success-hover);--plasma-textfield-bg-color-focus:var(--plasma-range-textfield-background-color-success-focus);--plasma-textfield-border-color:var(--plasma-range-textfield-border-color-success);--plasma-textfield-border-color-hover:var(--plasma-range-textfield-border-color-success-hover);--plasma-textfield-border-color-focus:var(--plasma-range-textfield-border-color-success-focus);}
2
-
3
-
4
-
5
- .czi0aji{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
6
-
7
-
8
-
@@ -1 +0,0 @@
1
- .b1l9fpln[readonly]{cursor:default;}.b1l9fpln[readonly] .czi0aji{background:var(--plasma-range-background-readonly);}.b1l9fpln[readonly] .s14q3826{display:block;color:var(--plasma-range__label-color-readonly);}.b1l9fpln[readonly] .l1fwucr5{color:var(--plasma-range__left-helper-color-readonly);}.b1l9fpln[readonly] .s1e6rwfy{color:var(--plasma-range__divider-color-readonly);}.b1l9fpln[readonly] .sfxtxl2,.b1l9fpln[readonly] .s1hiyoiq{color:var(--plasma-range-textfield-color-readonly);}
@@ -1 +0,0 @@
1
- .bfrw0i0 .czi0aji{background-color:var(--plasma-range-background);box-shadow:inset 0 0 0 var(--plasma-range-border-width) var(--plasma-range-border-color);}.bfrw0i0 .czi0aji.range-error{background-color:var(--plasma-range-background-error);box-shadow:inset 0 0 0 var(--plasma-range-border-width) var(--plasma-range-border-color-error);}.bfrw0i0 .czi0aji.range-success{background-color:var(--plasma-range-background-success);box-shadow:inset 0 0 0 var(--plasma-range-border-width) var(--plasma-range-border-color-success);}.bfrw0i0 .s1e6rwfy{color:var(--plasma-range__divider-color);}.bfrw0i0 .s14q3826{display:block;color:var(--plasma-range__label-color);}.bfrw0i0 .l1fwucr5{color:var(--plasma-range__left-helper-color);}
@@ -1 +0,0 @@
1
- .b1w985rt[readonly] .iq39zt5{color:var(--plasma-textfield-color-readonly);background-color:var(--plasma-textfield-bg-color-readonly);box-shadow:inset 0 0 0 var(--plasmas-textfield-border-width) var(--plasma-textfield-border-color-readonly);}.b1w985rt[readonly] .iq39zt5:hover{background-color:var(--plasma-textfield-bg-color-readonly);}.b1w985rt[readonly] .io4bpie::-webkit-input-placeholder{color:var(--plasma-textfield__placeholder-color-readonly);}.b1w985rt[readonly] .io4bpie::-moz-placeholder{color:var(--plasma-textfield__placeholder-color-readonly);}.b1w985rt[readonly] .io4bpie:-ms-input-placeholder{color:var(--plasma-textfield__placeholder-color-readonly);}.b1w985rt[readonly] .io4bpie::placeholder{color:var(--plasma-textfield__placeholder-color-readonly);}.b1w985rt[readonly] .io4bpie{color:var(--plasma-textfield-color-readonly);cursor:default;min-width:unset;}.b1w985rt[readonly] .llv9av6{color:var(--plasma-textfield__left-helper-color-readonly);}.b1w985rt[readonly] .l13qvwoy{color:var(--plasma-textfield__label-color-readonly);}
@@ -1 +0,0 @@
1
- .b13ve66i .io4bpie{font-family:var(--plasma-textfield-font-family);font-size:var(--plasma-textfield-font-size);font-style:var(--plasma-textfield-font-style);font-weight:var(--plasma-textfield-font-weight);-webkit-letter-spacing:var(--plasma-textfield-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-letter-spacing);letter-spacing:var(--plasma-textfield-letter-spacing);line-height:var(--plasma-textfield-line-height);}.b13ve66i .iq39zt5{height:var(--plasma-textfield-height);border-radius:var(--plasma-textfield-border-radius);padding:var(--plasma-textfield-padding);}.b13ve66i .iq39zt5.has-chips{padding-top:var(--plasma-textfield-padding-with-chips);padding-bottom:var(--plasma-textfield-padding-with-chips);}.b13ve66i .iq39zt5.has-empty-content-left{padding-left:var(--plasma-textfield-padding-with-chips);}.b13ve66i .iq39zt5.has-empty-content-right{padding-right:var(--plasma-textfield-padding-with-chips);}.b13ve66i .l13qvwoy{font-family:var(--plasma-textfield__label-font-family);font-size:var(--plasma-textfield__label-font-size);font-style:var(--plasma-textfield__label-font-style);font-weight:var(--plasma-textfield__label-font-weight);-webkit-letter-spacing:var(--plasma-textfield__label-letter-spacing);-moz-letter-spacing:var(--plasma-textfield__label-letter-spacing);-ms-letter-spacing:var(--plasma-textfield__label-letter-spacing);letter-spacing:var(--plasma-textfield__label-letter-spacing);line-height:var(--plasma-textfield__label-line-height);}.b13ve66i .llv9av6{margin-top:var(--plasma-textfield__left-helper-offset);font-family:var(--plasma-textfield__left-helper-font-family);font-size:var(--plasma-textfield__left-helper-font-size);font-style:var(--plasma-textfield__left-helper-font-style);font-weight:var(--plasma-textfield__left-helper-font-weight);-webkit-letter-spacing:var(--plasma-textfield__left-helper-letter-spacing);-moz-letter-spacing:var(--plasma-textfield__left-helper-letter-spacing);-ms-letter-spacing:var(--plasma-textfield__left-helper-letter-spacing);letter-spacing:var(--plasma-textfield__left-helper-letter-spacing);line-height:var(--plasma-textfield__left-helper-line-height);}.b13ve66i .s600610,.b13ve66i .suk2zst{font-family:var(--plasma-textfield-font-family);font-size:var(--plasma-textfield-font-size);font-style:var(--plasma-textfield-font-style);font-weight:var(--plasma-textfield-font-weight);-webkit-letter-spacing:var(--plasma-textfield-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-letter-spacing);letter-spacing:var(--plasma-textfield-letter-spacing);line-height:var(--plasma-textfield-line-height);}.b13ve66i .s600610{margin:var(--plasma-textfield__before-text-margin);}.b13ve66i .suk2zst{margin:var(--plasma-textfield__after-text-margin);}
@@ -1 +0,0 @@
1
- .bptx5xt .iq39zt5{--plasma_private-textfield-border-color:var(--plasma-textfield-border-color);--plasma_private-textfield-bg-color:var(--plasma-textfield-bg-color);color:var(--plasma-textfield-color);background-color:var(--plasma_private-textfield-bg-color);box-shadow:inset 0 0 0 var(--plasmas-textfield-border-width) var(--plasma_private-textfield-border-color);caret-color:var(--plasma-textfield__caret-color);-webkit-transition:background-color 0.1s ease-in,color 0.1s ease-in,box-shadow 0.1s ease-in;transition:background-color 0.1s ease-in,color 0.1s ease-in,box-shadow 0.1s ease-in;}.bptx5xt .iq39zt5:hover{--plasma_private-textfield-border-color:var(--plasma-textfield-border-color-hover,var(--plasma-textfield-border-color));--plasma_private-textfield-bg-color:var( --plasma-textfield-bg-color-hover, var(--plasma-textfield-bg-color) );}.bptx5xt .iq39zt5:focus-within{--plasma_private-textfield-border-color:var(--plasma-textfield-border-color-focus,var(--plasma-textfield-border-color));--plasma_private-textfield-bg-color:var( --plasma-textfield-bg-color-focus, var(--plasma-textfield-bg-color) );}.bptx5xt .io4bpie::-webkit-input-placeholder{color:var(--plasma-textfield__placeholder-color);}.bptx5xt .io4bpie::-moz-placeholder{color:var(--plasma-textfield__placeholder-color);}.bptx5xt .io4bpie:-ms-input-placeholder{color:var(--plasma-textfield__placeholder-color);}.bptx5xt .io4bpie::placeholder{color:var(--plasma-textfield__placeholder-color);}.bptx5xt .io4bpie{color:var(--plasma-textfield-color);}.bptx5xt .llv9av6{color:var(--plasma-textfield__left-helper-color);}.bptx5xt .s600610{color:var(--plasma-textfield__before-text-color);}.bptx5xt .suk2zst{color:var(--plasma-textfield__after-text-color);}
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
- var React = require('react');
7
-
8
- var _path;
9
- var ChevronDownFill = function ChevronDownFill(props) {
10
- return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({
11
- width: "100%",
12
- viewBox: "0 0 16 16",
13
- fill: "none"
14
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
15
- id: "path",
16
- d: "M11.45 5.79C11.37 5.61 11.19 5.5 11 5.5L5 5.5C4.8 5.5 4.62 5.61 4.54 5.79C4.46 5.96 4.49 6.17 4.62 6.32L7.62 9.82C7.71 9.93 7.85 10 8 10C8.14 10 8.28 9.93 8.37 9.82L11.37 6.32C11.5 6.17 11.53 5.96 11.45 5.79Z",
17
- fillRule: "evenodd",
18
- fill: "currentColor",
19
- clipRule: "evenodd"
20
- })));
21
- };
22
-
23
- exports.ChevronDownFill = ChevronDownFill;
24
- //# sourceMappingURL=ChevronDownFill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChevronDownFill.js","sources":["../../../../src/components/_Icon/Icon.assets/ChevronDownFill.tsx"],"sourcesContent":["import React from 'react';\n\nimport { IconProps } from '../IconRoot';\n\nexport const ChevronDownFill: React.FC<IconProps> = (props) => (\n <svg width=\"100%\" viewBox=\"0 0 16 16\" fill=\"none\" {...props}>\n <path\n id=\"path\"\n d=\"M11.45 5.79C11.37 5.61 11.19 5.5 11 5.5L5 5.5C4.8 5.5 4.62 5.61 4.54 5.79C4.46 5.96 4.49 6.17 4.62 6.32L7.62 9.82C7.71 9.93 7.85 10 8 10C8.14 10 8.28 9.93 8.37 9.82L11.37 6.32C11.5 6.17 11.53 5.96 11.45 5.79Z\"\n fillRule=\"evenodd\"\n fill=\"currentColor\"\n clipRule=\"evenodd\"\n />\n </svg>\n);\n"],"names":["ChevronDownFill","props","React","createElement","_extends","width","viewBox","fill","_path","id","d","fillRule","clipRule"],"mappings":";;;;;;;;IAIaA,eAAoC,GAAG,SAAvCA,eAAoCA,CAAIC,KAAK,EAAA;AAAA,EAAA,oBACtDC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,iCAAA,CAAA;AAAKC,IAAAA,KAAK,EAAC,MAAM;AAACC,IAAAA,OAAO,EAAC,WAAW;AAACC,IAAAA,IAAI,EAAC,MAAA;GAAWN,EAAAA,KAAK,GAAAO,KAAA,KAAAA,KAAA,gBACvDN,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AACIM,IAAAA,EAAE,EAAC,MAAM;AACTC,IAAAA,CAAC,EAAC,kNAAkN;AACpNC,IAAAA,QAAQ,EAAC,SAAS;AAClBJ,IAAAA,IAAI,EAAC,cAAc;AACnBK,IAAAA,QAAQ,EAAC,SAAA;GACZ,CAAC,CACD,CAAC,CAAA;AAAA;;;;"}
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
- var React = require('react');
7
-
8
- var _path;
9
- var Minus = function Minus(props) {
10
- return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({
11
- width: "100%",
12
- viewBox: "0 0 24 24",
13
- fill: "none"
14
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
15
- id: "icon",
16
- d: "M3.25 12C3.25 11.58 3.58 11.25 4 11.25L20 11.25C20.41 11.25 20.75 11.58 20.75 12C20.75 12.41 20.41 12.75 20 12.75L4 12.75C3.58 12.75 3.25 12.41 3.25 12Z",
17
- fill: "currentColor"
18
- })));
19
- };
20
-
21
- exports.Minus = Minus;
22
- //# sourceMappingURL=Minus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Minus.js","sources":["../../../../src/components/_Icon/Icon.assets/Minus.tsx"],"sourcesContent":["import React from 'react';\n\nimport { IconProps } from '../IconRoot';\n\nexport const Minus: React.FC<IconProps> = (props) => (\n <svg width=\"100%\" viewBox=\"0 0 24 24\" fill=\"none\" {...props}>\n <path\n id=\"icon\"\n d=\"M3.25 12C3.25 11.58 3.58 11.25 4 11.25L20 11.25C20.41 11.25 20.75 11.58 20.75 12C20.75 12.41 20.41 12.75 20 12.75L4 12.75C3.58 12.75 3.25 12.41 3.25 12Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"names":["Minus","props","React","createElement","_extends","width","viewBox","fill","_path","id","d"],"mappings":";;;;;;;;IAIaA,KAA0B,GAAG,SAA7BA,KAA0BA,CAAIC,KAAK,EAAA;AAAA,EAAA,oBAC5CC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,iCAAA,CAAA;AAAKC,IAAAA,KAAK,EAAC,MAAM;AAACC,IAAAA,OAAO,EAAC,WAAW;AAACC,IAAAA,IAAI,EAAC,MAAA;GAAWN,EAAAA,KAAK,GAAAO,KAAA,KAAAA,KAAA,gBACvDN,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AACIM,IAAAA,EAAE,EAAC,MAAM;AACTC,IAAAA,CAAC,EAAC,0JAA0J;AAC5JH,IAAAA,IAAI,EAAC,cAAA;GACR,CAAC,CACD,CAAC,CAAA;AAAA;;;;"}
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var React = require('react');
6
- var ChevronDownFill = require('../Icon.assets/ChevronDownFill.js');
7
- var IconRoot = require('../IconRoot.js');
8
-
9
- var IconChevronDownFill = function IconChevronDownFill(_ref) {
10
- var _ref$size = _ref.size,
11
- size = _ref$size === void 0 ? 'xs' : _ref$size,
12
- color = _ref.color,
13
- className = _ref.className;
14
- return /*#__PURE__*/React.createElement(IconRoot.IconRoot, {
15
- className: className,
16
- size: size,
17
- color: color,
18
- icon: ChevronDownFill.ChevronDownFill
19
- });
20
- };
21
-
22
- exports.IconChevronDownFill = IconChevronDownFill;
23
- //# sourceMappingURL=IconChevronDownFill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconChevronDownFill.js","sources":["../../../../src/components/_Icon/Icons/IconChevronDownFill.tsx"],"sourcesContent":["import React from 'react';\n\nimport { ChevronDownFill } from '../Icon.assets/ChevronDownFill';\nimport { IconRoot, IconProps } from '../IconRoot';\n\nexport const IconChevronDownFill: React.FC<IconProps> = ({ size = 'xs', color, className }) => {\n return <IconRoot className={className} size={size} color={color} icon={ChevronDownFill} />;\n};\n"],"names":["IconChevronDownFill","_ref","_ref$size","size","color","className","React","createElement","IconRoot","icon","ChevronDownFill"],"mappings":";;;;;;;;IAKaA,mBAAwC,GAAG,SAA3CA,mBAAwCA,CAAAC,IAAA,EAA0C;AAAA,EAAA,IAAAC,SAAA,GAAAD,IAAA,CAApCE,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,SAAA;IAAEE,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS,CAAA;AACpF,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,iBAAQ,EAAA;AAACH,IAAAA,SAAS,EAAEA,SAAU;AAACF,IAAAA,IAAI,EAAEA,IAAK;AAACC,IAAAA,KAAK,EAAEA,KAAM;AAACK,IAAAA,IAAI,EAAEC,+BAAAA;AAAgB,GAAE,CAAC,CAAA;AAC9F;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconMinus.js","sources":["../../../../src/components/_Icon/Icons/IconMinus.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Minus } from '../Icon.assets/Minus';\nimport { IconRoot, IconProps } from '../IconRoot';\n\nexport const IconMinus: React.FC<IconProps> = ({ size = 's', color, className }) => {\n return <IconRoot className={className} size={size} color={color} icon={Minus} />;\n};\n"],"names":["IconMinus","_ref","_ref$size","size","color","className","React","createElement","IconRoot","icon","Minus"],"mappings":";;;;;;;;IAKaA,SAA8B,GAAG,SAAjCA,SAA8BA,CAAAC,IAAA,EAAyC;AAAA,EAAA,IAAAC,SAAA,GAAAD,IAAA,CAAnCE,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,GAAG,GAAAA,SAAA;IAAEE,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS,CAAA;AACzE,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,iBAAQ,EAAA;AAACH,IAAAA,SAAS,EAAEA,SAAU;AAACF,IAAAA,IAAI,EAAEA,IAAK;AAACC,IAAAA,KAAK,EAAEA,KAAM;AAACK,IAAAA,IAAI,EAAEC,WAAAA;AAAM,GAAE,CAAC,CAAA;AACpF;;;;"}
@@ -1 +0,0 @@
1
- .Accordion_styles_rsiff6_bjv6ypd__465a9c67{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-accordion-gap);-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;height:auto;background:var(--plasma-accordion-background);}.Accordion_styles_rsiff6_bjv6ypd__465a9c67.Accordion_styles_rsiff6_accordionStretchingFixed__465a9c67{width:var(--plasma-accordion-width);}.Accordion_styles_rsiff6_bjv6ypd__465a9c67.Accordion_styles_rsiff6_accordionStretchingFilled__465a9c67{width:100%;}
@@ -1,63 +0,0 @@
1
- import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef, useState, Children } from 'react';
3
- import { cx } from '../../utils/index.js';
4
- import { base } from './Accordion.styles.js';
5
- import { classes } from './Accordion.tokens.js';
6
- import { base as base$1 } from './variations/_view/base.js';
7
- import { base as base$2 } from './variations/_size/base.js';
8
- import { getChildren } from './utils/index.js';
9
-
10
- var accordionRoot = function accordionRoot(Root) {
11
- return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
12
- var size = _ref.size,
13
- view = _ref.view,
14
- _ref$stretching = _ref.stretching,
15
- stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching,
16
- defaultActiveIndex = _ref.defaultActiveIndex,
17
- children = _ref.children,
18
- disabled = _ref.disabled,
19
- className = _ref.className,
20
- singleActive = _ref.singleActive,
21
- onChangeValue = _ref.onChangeValue;
22
- var stretchingClass = classes["".concat(stretching, "Stretching")];
23
- var _useState = useState(defaultActiveIndex),
24
- _useState2 = _slicedToArray(_useState, 2),
25
- activeIndex = _useState2[0],
26
- setActiveIndex = _useState2[1];
27
- var updateValue = function updateValue(index, value) {
28
- onChangeValue && onChangeValue(index, value);
29
- if (value && singleActive) {
30
- setActiveIndex(index);
31
- }
32
- };
33
- var childrenArray = Children.toArray(children);
34
- var childrenMemo = getChildren(childrenArray, activeIndex, disabled, updateValue);
35
- return /*#__PURE__*/React.createElement(Root, {
36
- ref: outerRootRef,
37
- size: size,
38
- view: view,
39
- className: cx(stretchingClass, classes.accordionRoot, className)
40
- }, childrenMemo);
41
- });
42
- };
43
- var accordionConfig = {
44
- name: 'Accordion',
45
- tag: 'div',
46
- layout: accordionRoot,
47
- base: base,
48
- variations: {
49
- view: {
50
- css: base$1
51
- },
52
- size: {
53
- css: base$2
54
- }
55
- },
56
- defaults: {
57
- view: 'default',
58
- size: 'm'
59
- }
60
- };
61
-
62
- export { accordionConfig, accordionRoot };
63
- //# sourceMappingURL=Accordion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordion.js","sources":["../../../src/components/Accordion/Accordion.tsx"],"sourcesContent":["import React, { Children, forwardRef, useState } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { AccordionProps } from './Accordion.types';\nimport { base } from './Accordion.styles';\nimport { classes } from './Accordion.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { getChildren } from './utils';\n\nexport const accordionRoot = (Root: RootProps<HTMLDivElement, AccordionProps>) =>\n forwardRef<HTMLDivElement, AccordionProps>(\n (\n {\n size,\n view,\n stretching = 'filled',\n defaultActiveIndex,\n children,\n disabled,\n className,\n singleActive,\n onChangeValue,\n },\n outerRootRef,\n ) => {\n const stretchingClass = classes[`${stretching}Stretching` as keyof typeof classes];\n\n const [activeIndex, setActiveIndex] = useState<number | undefined>(defaultActiveIndex);\n\n const updateValue = (index?: number, value?: boolean) => {\n onChangeValue && onChangeValue(index, value);\n if (value && singleActive) {\n setActiveIndex(index);\n }\n };\n\n const childrenArray = Children.toArray(children) as React.ReactElement[];\n\n const childrenMemo = getChildren(childrenArray, activeIndex, disabled, updateValue);\n\n return (\n <Root\n ref={outerRootRef}\n size={size}\n view={view}\n className={cx(stretchingClass, classes.accordionRoot, className)}\n >\n {childrenMemo}\n </Root>\n );\n },\n );\n\nexport const accordionConfig = {\n name: 'Accordion',\n tag: 'div',\n layout: accordionRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["accordionRoot","Root","forwardRef","_ref","outerRootRef","size","view","_ref$stretching","stretching","defaultActiveIndex","children","disabled","className","singleActive","onChangeValue","stretchingClass","classes","concat","_useState","useState","_useState2","_slicedToArray","activeIndex","setActiveIndex","updateValue","index","value","childrenArray","Children","toArray","childrenMemo","getChildren","React","createElement","ref","cx","accordionConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;IAYaA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAA+C,EAAA;AAAA,EAAA,oBACzEC,UAAU,CACN,UAAAC,IAAA,EAYIC,YAAY,EACX;AAAA,IAAA,IAXGC,IAAI,GAAAF,IAAA,CAAJE,IAAI;MACJC,IAAI,GAAAH,IAAA,CAAJG,IAAI;MAAAC,eAAA,GAAAJ,IAAA,CACJK,UAAU;AAAVA,MAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,eAAA;MACrBE,kBAAkB,GAAAN,IAAA,CAAlBM,kBAAkB;MAClBC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;MACRC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;MACRC,SAAS,GAAAT,IAAA,CAATS,SAAS;MACTC,YAAY,GAAAV,IAAA,CAAZU,YAAY;MACZC,aAAa,GAAAX,IAAA,CAAbW,aAAa,CAAA;AAIjB,IAAA,IAAMC,eAAe,GAAGC,OAAO,IAAAC,MAAA,CAAIT,UAAU,EAAqC,YAAA,CAAA,CAAA,CAAA;AAElF,IAAA,IAAAU,SAAA,GAAsCC,QAAQ,CAAqBV,kBAAkB,CAAC;MAAAW,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA/EI,MAAAA,WAAW,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,MAAAA,cAAc,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;IAElC,IAAMI,WAAW,GAAG,SAAdA,WAAWA,CAAIC,KAAc,EAAEC,KAAe,EAAK;AACrDZ,MAAAA,aAAa,IAAIA,aAAa,CAACW,KAAK,EAAEC,KAAK,CAAC,CAAA;MAC5C,IAAIA,KAAK,IAAIb,YAAY,EAAE;QACvBU,cAAc,CAACE,KAAK,CAAC,CAAA;AACzB,OAAA;KACH,CAAA;AAED,IAAA,IAAME,aAAa,GAAGC,QAAQ,CAACC,OAAO,CAACnB,QAAQ,CAAyB,CAAA;IAExE,IAAMoB,YAAY,GAAGC,WAAW,CAACJ,aAAa,EAAEL,WAAW,EAAEX,QAAQ,EAAEa,WAAW,CAAC,CAAA;AAEnF,IAAA,oBACIQ,KAAA,CAAAC,aAAA,CAAChC,IAAI,EAAA;AACDiC,MAAAA,GAAG,EAAE9B,YAAa;AAClBC,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,IAAI,EAAEA,IAAK;MACXM,SAAS,EAAEuB,EAAE,CAACpB,eAAe,EAAEC,OAAO,CAAChB,aAAa,EAAEY,SAAS,CAAA;AAAE,KAAA,EAEhEkB,YACC,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMM,eAAe,GAAG;AAC3BC,EAAAA,IAAI,EAAE,WAAW;AACjBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEvC,aAAa;AACrBwC,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRnC,IAAAA,IAAI,EAAE;AACFoC,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDtC,IAAAA,IAAI,EAAE;AACFqC,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNvC,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,5 +0,0 @@
1
- import './Accordion.styles_rsiff6.css';
2
- var base = "bjv6ypd";
3
-
4
- export { base };
5
- //# sourceMappingURL=Accordion.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordion.styles.js","sources":["../../../src/components/Accordion/Accordion.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from './Accordion.tokens';\n\nexport const base = css`\n display: flex;\n flex-direction: column;\n gap: var(${tokens.accordionGap});\n align-items: stretch;\n height: auto;\n background: var(${tokens.accordionBackground});\n\n &.${classes.fixedStretching} {\n width: var(${tokens.accordionWidth});\n }\n &.${classes.filledStretching} {\n width: 100%;\n }\n`;\n"],"names":["base"],"mappings":"AAIO,IAAMA,IAAI,GAchB;;;;"}
@@ -1 +0,0 @@
1
- .bjv6ypd{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-accordion-gap);-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;height:auto;background:var(--plasma-accordion-background);}.bjv6ypd.accordion-stretching-fixed{width:var(--plasma-accordion-width);}.bjv6ypd.accordion-stretching-filled{width:100%;}
@@ -1,40 +0,0 @@
1
- var classes = {
2
- filledStretching: 'accordion-stretching-filled',
3
- fixedStretching: 'accordion-stretching-fixed',
4
- accordionRoot: 'accordion-root',
5
- accordionItem: 'accordion-item',
6
- clearAccordionItem: 'clear-accordion-item',
7
- accordionItemShowBody: 'accordion-item-show-body',
8
- accordionPlusAnimationElement: 'accordion-plus-animation-element',
9
- accordionDisabled: 'accordion-disabled'
10
- };
11
- var tokens = {
12
- accordionGap: '--plasma-accordion-gap',
13
- accordionWidth: '--plasma-accordion-width',
14
- accordionBackground: '--plasma-accordion-background',
15
- accordionItemBackground: '--plasma-accordion-item-background',
16
- accordionItemBorderRadius: '--plasma-accordion-item-border-radius',
17
- accordionItemPadding: '--plasma-accordion-item-padding',
18
- accordionItemPaddingVertical: '--plasma-accordion-item-padding-vertical',
19
- accordionItemPaddingHorizontal: '--plasma-accordion-item-padding-horizontal',
20
- accordionItemGap: '--plasma-accordion-item-gap',
21
- accordionItemFocus: '--plasma-accordion-item-focus',
22
- accordionItemBorderBottom: '--plasma-accordion-item-border-bottom',
23
- accordionItemTitleColor: '--plasma-accordion-item-title-color',
24
- accordionItemTitleFontFamily: '--plasma-accordion-item-title-font-family',
25
- accordionItemTitleFontSize: '--plasma-accordion-item-title-font-size',
26
- accordionItemTitleFontStyle: '--plasma-accordion-item-title-font-style',
27
- accordionItemTitleFontWeight: '--plasma-accordion-item-title-font-weight',
28
- accordionItemTitleLetterSpacing: '--plasma-accordion-item-title-letter-spacing',
29
- accordionItemTitleLineHeight: '--plasma-accordion-item-title-line-height',
30
- accordionItemTextColor: '--plasma-accordion-item-text-color',
31
- accordionItemTextFontFamily: '--plasma-accordion-item-text-font-family',
32
- accordionItemTextFontSize: '--plasma-accordion-item-text-font-size',
33
- accordionItemTextFontStyle: '--plasma-accordion-item-text-font-style',
34
- accordionItemTextFontWeight: '--plasma-accordion-item-text-font-weight',
35
- accordionItemTextLetterSpacing: '--plasma-accordion-item-text-letter-spacing',
36
- accordionItemTextLineHeight: '--plasma-accordion-item-text-line-height'
37
- };
38
-
39
- export { classes, tokens };
40
- //# sourceMappingURL=Accordion.tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordion.tokens.js","sources":["../../../src/components/Accordion/Accordion.tokens.ts"],"sourcesContent":["export const classes = {\n filledStretching: 'accordion-stretching-filled',\n fixedStretching: 'accordion-stretching-fixed',\n accordionRoot: 'accordion-root',\n accordionItem: 'accordion-item',\n clearAccordionItem: 'clear-accordion-item',\n accordionItemShowBody: 'accordion-item-show-body',\n accordionPlusAnimationElement: 'accordion-plus-animation-element',\n accordionDisabled: 'accordion-disabled',\n};\n\nexport const tokens = {\n accordionGap: '--plasma-accordion-gap',\n accordionWidth: '--plasma-accordion-width',\n accordionBackground: '--plasma-accordion-background',\n\n accordionItemBackground: '--plasma-accordion-item-background',\n accordionItemBorderRadius: '--plasma-accordion-item-border-radius',\n accordionItemPadding: '--plasma-accordion-item-padding',\n accordionItemPaddingVertical: '--plasma-accordion-item-padding-vertical',\n accordionItemPaddingHorizontal: '--plasma-accordion-item-padding-horizontal',\n accordionItemGap: '--plasma-accordion-item-gap',\n accordionItemFocus: '--plasma-accordion-item-focus',\n accordionItemBorderBottom: '--plasma-accordion-item-border-bottom',\n\n accordionItemTitleColor: '--plasma-accordion-item-title-color',\n accordionItemTitleFontFamily: '--plasma-accordion-item-title-font-family',\n accordionItemTitleFontSize: '--plasma-accordion-item-title-font-size',\n accordionItemTitleFontStyle: '--plasma-accordion-item-title-font-style',\n accordionItemTitleFontWeight: '--plasma-accordion-item-title-font-weight',\n accordionItemTitleLetterSpacing: '--plasma-accordion-item-title-letter-spacing',\n accordionItemTitleLineHeight: '--plasma-accordion-item-title-line-height',\n\n accordionItemTextColor: '--plasma-accordion-item-text-color',\n accordionItemTextFontFamily: '--plasma-accordion-item-text-font-family',\n accordionItemTextFontSize: '--plasma-accordion-item-text-font-size',\n accordionItemTextFontStyle: '--plasma-accordion-item-text-font-style',\n accordionItemTextFontWeight: '--plasma-accordion-item-text-font-weight',\n accordionItemTextLetterSpacing: '--plasma-accordion-item-text-letter-spacing',\n accordionItemTextLineHeight: '--plasma-accordion-item-text-line-height',\n};\n"],"names":["classes","filledStretching","fixedStretching","accordionRoot","accordionItem","clearAccordionItem","accordionItemShowBody","accordionPlusAnimationElement","accordionDisabled","tokens","accordionGap","accordionWidth","accordionBackground","accordionItemBackground","accordionItemBorderRadius","accordionItemPadding","accordionItemPaddingVertical","accordionItemPaddingHorizontal","accordionItemGap","accordionItemFocus","accordionItemBorderBottom","accordionItemTitleColor","accordionItemTitleFontFamily","accordionItemTitleFontSize","accordionItemTitleFontStyle","accordionItemTitleFontWeight","accordionItemTitleLetterSpacing","accordionItemTitleLineHeight","accordionItemTextColor","accordionItemTextFontFamily","accordionItemTextFontSize","accordionItemTextFontStyle","accordionItemTextFontWeight","accordionItemTextLetterSpacing","accordionItemTextLineHeight"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,gBAAgB,EAAE,6BAA6B;AAC/CC,EAAAA,eAAe,EAAE,4BAA4B;AAC7CC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,kBAAkB,EAAE,sBAAsB;AAC1CC,EAAAA,qBAAqB,EAAE,0BAA0B;AACjDC,EAAAA,6BAA6B,EAAE,kCAAkC;AACjEC,EAAAA,iBAAiB,EAAE,oBAAA;AACvB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,YAAY,EAAE,wBAAwB;AACtCC,EAAAA,cAAc,EAAE,0BAA0B;AAC1CC,EAAAA,mBAAmB,EAAE,+BAA+B;AAEpDC,EAAAA,uBAAuB,EAAE,oCAAoC;AAC7DC,EAAAA,yBAAyB,EAAE,uCAAuC;AAClEC,EAAAA,oBAAoB,EAAE,iCAAiC;AACvDC,EAAAA,4BAA4B,EAAE,0CAA0C;AACxEC,EAAAA,8BAA8B,EAAE,4CAA4C;AAC5EC,EAAAA,gBAAgB,EAAE,6BAA6B;AAC/CC,EAAAA,kBAAkB,EAAE,+BAA+B;AACnDC,EAAAA,yBAAyB,EAAE,uCAAuC;AAElEC,EAAAA,uBAAuB,EAAE,qCAAqC;AAC9DC,EAAAA,4BAA4B,EAAE,2CAA2C;AACzEC,EAAAA,0BAA0B,EAAE,yCAAyC;AACrEC,EAAAA,2BAA2B,EAAE,0CAA0C;AACvEC,EAAAA,4BAA4B,EAAE,2CAA2C;AACzEC,EAAAA,+BAA+B,EAAE,8CAA8C;AAC/EC,EAAAA,4BAA4B,EAAE,2CAA2C;AAEzEC,EAAAA,sBAAsB,EAAE,oCAAoC;AAC5DC,EAAAA,2BAA2B,EAAE,0CAA0C;AACvEC,EAAAA,yBAAyB,EAAE,wCAAwC;AACnEC,EAAAA,0BAA0B,EAAE,yCAAyC;AACrEC,EAAAA,2BAA2B,EAAE,0CAA0C;AACvEC,EAAAA,8BAA8B,EAAE,6CAA6C;AAC7EC,EAAAA,2BAA2B,EAAE,0CAAA;AACjC;;;;"}
@@ -1,99 +0,0 @@
1
- import { slicedToArray as _slicedToArray } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { useState, useRef, useEffect } from 'react';
3
- import { convertRoundnessMatrix } from '../../../../utils/roundness.js';
4
- import { classes, tokens } from '../../Accordion.tokens.js';
5
- import { StyledAccordionItem, StyledAccordionHeader, StyledAccordionHeaderLeft, StyledAccordionContentLeft, StyledAccordionTitle, StyledAccordionContentRight, StyledAccordionBodyAnimate, StyledAccordionBody, StyledArrow, StyledPlus, StyledMinus } from './AccordionItem.styles.js';
6
-
7
- var _StyledMinus, _StyledArrow;
8
- var AccordionItem = function AccordionItem(_ref) {
9
- var value = _ref.value,
10
- contentRight = _ref.contentRight,
11
- contentLeft = _ref.contentLeft,
12
- title = _ref.title,
13
- _ref$pin = _ref.pin,
14
- pin = _ref$pin === void 0 ? 'square-square' : _ref$pin,
15
- children = _ref.children,
16
- _ref$type = _ref.type,
17
- type = _ref$type === void 0 ? 'sign' : _ref$type,
18
- index = _ref.index,
19
- disabled = _ref.disabled,
20
- onChangeValue = _ref.onChangeValue;
21
- var _useState = useState(value),
22
- _useState2 = _slicedToArray(_useState, 2),
23
- isOpen = _useState2[0],
24
- setShow = _useState2[1];
25
- var _useState3 = useState(),
26
- _useState4 = _slicedToArray(_useState3, 2),
27
- leftPadding = _useState4[0],
28
- setLeftPadding = _useState4[1];
29
- var handleOpen = function handleOpen() {
30
- if (disabled) {
31
- return;
32
- }
33
- setShow(!isOpen);
34
- onChangeValue && onChangeValue(index, !isOpen);
35
- };
36
- var onKeyPress = function onKeyPress(event) {
37
- if (disabled) {
38
- return;
39
- }
40
- event.persist();
41
- if (event.keyCode === 13) {
42
- handleOpen();
43
- }
44
- };
45
- var leftContentRef = useRef(null);
46
- useEffect(function () {
47
- var _leftContentRef$curre, _leftContentRef$curre2;
48
- setShow(value);
49
- var leftContentWidth = (_leftContentRef$curre = leftContentRef === null || leftContentRef === void 0 || (_leftContentRef$curre2 = leftContentRef.current) === null || _leftContentRef$curre2 === void 0 ? void 0 : _leftContentRef$curre2.offsetWidth) !== null && _leftContentRef$curre !== void 0 ? _leftContentRef$curre : 0;
50
- var leftPaddingBody = leftContentWidth ? "calc(".concat(leftContentWidth, "px + var(").concat(tokens.accordionItemGap, "))") : 0;
51
- setLeftPadding(leftPaddingBody);
52
- }, [value, type, leftContentRef, setLeftPadding]);
53
- var showedBody = isOpen ? classes.accordionItemShowBody : undefined;
54
- var StyledAnimationPLus = function StyledAnimationPLus() {
55
- return /*#__PURE__*/React.createElement(StyledPlus, null, _StyledMinus || (_StyledMinus = /*#__PURE__*/React.createElement(StyledMinus, {
56
- size: "xs",
57
- color: "inhert"
58
- })), /*#__PURE__*/React.createElement(StyledMinus, {
59
- size: "xs",
60
- color: "inhert",
61
- className: showedBody !== null && showedBody !== void 0 ? showedBody : classes.accordionPlusAnimationElement
62
- }));
63
- };
64
- var accordionBorderRadius = convertRoundnessMatrix(pin, "var(".concat(tokens.accordionItemBorderRadius, ")"), '1.5rem');
65
- var disabledClass = disabled ? classes.accordionDisabled : '';
66
- var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/React.createElement(StyledArrow, {
67
- size: "xs",
68
- color: "inhert"
69
- })) : undefined;
70
- var leftContentRotate = type === 'arrow' && isOpen ? classes.accordionItemShowBody : undefined;
71
- var rightContent = contentRight !== null && contentRight !== void 0 ? contentRight : type === 'sign' ? /*#__PURE__*/React.createElement(StyledAnimationPLus, null) : undefined;
72
- var rightContentRotate = type === 'sign' && isOpen ? classes.accordionItemShowBody : undefined;
73
- return /*#__PURE__*/React.createElement(StyledAccordionItem, {
74
- role: "tab",
75
- className: classes.accordionItem,
76
- tabIndex: 0,
77
- key: index,
78
- style: {
79
- borderRadius: accordionBorderRadius
80
- },
81
- onKeyDown: onKeyPress
82
- }, /*#__PURE__*/React.createElement(StyledAccordionHeader, {
83
- onClick: handleOpen,
84
- className: disabledClass
85
- }, /*#__PURE__*/React.createElement(StyledAccordionHeaderLeft, null, leftContent && /*#__PURE__*/React.createElement(StyledAccordionContentLeft, {
86
- ref: leftContentRef,
87
- className: leftContentRotate
88
- }, leftContent), /*#__PURE__*/React.createElement(StyledAccordionTitle, null, title)), /*#__PURE__*/React.createElement(StyledAccordionContentRight, {
89
- className: rightContentRotate
90
- }, rightContent && rightContent)), /*#__PURE__*/React.createElement(StyledAccordionBodyAnimate, {
91
- className: showedBody,
92
- style: {
93
- paddingLeft: "".concat(leftPadding)
94
- }
95
- }, /*#__PURE__*/React.createElement(StyledAccordionBody, null, children)));
96
- };
97
-
98
- export { AccordionItem };
99
- //# sourceMappingURL=AccordionItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionItem.js","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.tsx"],"sourcesContent":["import React, { HTMLAttributes, useState, KeyboardEvent, useRef, useEffect } from 'react';\n\nimport { convertRoundnessMatrix } from '../../../../utils/roundness';\nimport { classes, tokens } from '../../Accordion.tokens';\n\nimport {\n StyledAccordionItem,\n StyledAccordionHeader,\n StyledAccordionBody,\n StyledAccordionTitle,\n StyledAccordionContentLeft,\n StyledAccordionHeaderLeft,\n StyledAccordionContentRight,\n StyledArrow,\n StyledMinus,\n StyledPlus,\n StyledAccordionBodyAnimate,\n} from './AccordionItem.styles';\nimport type { AccordionItemProps } from './AccordionItem.types';\n\nexport const AccordionItem: React.FC<HTMLAttributes<HTMLDivElement> & AccordionItemProps> = ({\n value,\n contentRight,\n contentLeft,\n title,\n pin = 'square-square',\n children,\n type = 'sign',\n index,\n disabled,\n onChangeValue,\n}) => {\n const [isOpen, setShow] = useState(value);\n const [leftPadding, setLeftPadding] = useState<string | number | null>();\n\n const handleOpen = () => {\n if (disabled) {\n return;\n }\n setShow(!isOpen);\n onChangeValue && onChangeValue(index, !isOpen);\n };\n\n const onKeyPress = (event: KeyboardEvent<HTMLDivElement>) => {\n if (disabled) {\n return;\n }\n event.persist();\n if (event.keyCode === 13) {\n handleOpen();\n }\n };\n\n const leftContentRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n setShow(value);\n const leftContentWidth = leftContentRef?.current?.offsetWidth ?? 0;\n const leftPaddingBody = leftContentWidth ? `calc(${leftContentWidth}px + var(${tokens.accordionItemGap}))` : 0;\n setLeftPadding(leftPaddingBody);\n }, [value, type, leftContentRef, setLeftPadding]);\n\n const showedBody = isOpen ? classes.accordionItemShowBody : undefined;\n\n const StyledAnimationPLus = () => (\n <StyledPlus>\n <StyledMinus size=\"xs\" color=\"inhert\" />\n <StyledMinus size=\"xs\" color=\"inhert\" className={showedBody ?? classes.accordionPlusAnimationElement} />\n </StyledPlus>\n );\n\n const accordionBorderRadius = convertRoundnessMatrix(pin, `var(${tokens.accordionItemBorderRadius})`, '1.5rem');\n const disabledClass = disabled ? classes.accordionDisabled : '';\n\n const leftContent = contentLeft ?? (type === 'arrow' ? <StyledArrow size=\"xs\" color=\"inhert\" /> : undefined);\n const leftContentRotate = type === 'arrow' && isOpen ? classes.accordionItemShowBody : undefined;\n\n const rightContent = contentRight ?? (type === 'sign' ? <StyledAnimationPLus /> : undefined);\n const rightContentRotate = type === 'sign' && isOpen ? classes.accordionItemShowBody : undefined;\n\n return (\n <StyledAccordionItem\n role=\"tab\"\n className={classes.accordionItem}\n tabIndex={0}\n key={index}\n style={{ borderRadius: accordionBorderRadius }}\n onKeyDown={onKeyPress}\n >\n <StyledAccordionHeader onClick={handleOpen} className={disabledClass}>\n <StyledAccordionHeaderLeft>\n {leftContent && (\n <StyledAccordionContentLeft ref={leftContentRef} className={leftContentRotate}>\n {leftContent}\n </StyledAccordionContentLeft>\n )}\n <StyledAccordionTitle>{title}</StyledAccordionTitle>\n </StyledAccordionHeaderLeft>\n\n <StyledAccordionContentRight className={rightContentRotate}>\n {rightContent && rightContent}\n </StyledAccordionContentRight>\n </StyledAccordionHeader>\n <StyledAccordionBodyAnimate className={showedBody} style={{ paddingLeft: `${leftPadding}` }}>\n <StyledAccordionBody>{children}</StyledAccordionBody>\n </StyledAccordionBodyAnimate>\n </StyledAccordionItem>\n );\n};\n"],"names":["AccordionItem","_ref","value","contentRight","contentLeft","title","_ref$pin","pin","children","_ref$type","type","index","disabled","onChangeValue","_useState","useState","_useState2","_slicedToArray","isOpen","setShow","_useState3","_useState4","leftPadding","setLeftPadding","handleOpen","onKeyPress","event","persist","keyCode","leftContentRef","useRef","useEffect","_leftContentRef$curre","_leftContentRef$curre2","leftContentWidth","current","offsetWidth","leftPaddingBody","concat","tokens","accordionItemGap","showedBody","classes","accordionItemShowBody","undefined","StyledAnimationPLus","React","createElement","StyledPlus","_StyledMinus","StyledMinus","size","color","className","accordionPlusAnimationElement","accordionBorderRadius","convertRoundnessMatrix","accordionItemBorderRadius","disabledClass","accordionDisabled","leftContent","_StyledArrow","StyledArrow","leftContentRotate","rightContent","rightContentRotate","StyledAccordionItem","role","accordionItem","tabIndex","key","style","borderRadius","onKeyDown","StyledAccordionHeader","onClick","StyledAccordionHeaderLeft","StyledAccordionContentLeft","ref","StyledAccordionTitle","StyledAccordionContentRight","StyledAccordionBodyAnimate","paddingLeft","StyledAccordionBody"],"mappings":";;;;;;;IAoBaA,aAA4E,GAAG,SAA/EA,aAA4EA,CAAAC,IAAA,EAWnF;AAAA,EAAA,IAVFC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IACZC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAAC,QAAA,GAAAL,IAAA,CACLM,GAAG;AAAHA,IAAAA,GAAG,GAAAD,QAAA,KAAG,KAAA,CAAA,GAAA,eAAe,GAAAA,QAAA;IACrBE,QAAQ,GAAAP,IAAA,CAARO,QAAQ;IAAAC,SAAA,GAAAR,IAAA,CACRS,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,SAAA;IACbE,KAAK,GAAAV,IAAA,CAALU,KAAK;IACLC,QAAQ,GAAAX,IAAA,CAARW,QAAQ;IACRC,aAAa,GAAAZ,IAAA,CAAbY,aAAa,CAAA;AAEb,EAAA,IAAAC,SAAA,GAA0BC,QAAQ,CAACb,KAAK,CAAC;IAAAc,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAlCI,IAAAA,MAAM,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,OAAO,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AACtB,EAAA,IAAAI,UAAA,GAAsCL,QAAQ,EAA0B;IAAAM,UAAA,GAAAJ,cAAA,CAAAG,UAAA,EAAA,CAAA,CAAA;AAAjEE,IAAAA,WAAW,GAAAD,UAAA,CAAA,CAAA,CAAA;AAAEE,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA,CAAA;AAElC,EAAA,IAAMG,UAAU,GAAG,SAAbA,UAAUA,GAAS;AACrB,IAAA,IAAIZ,QAAQ,EAAE;AACV,MAAA,OAAA;AACJ,KAAA;IACAO,OAAO,CAAC,CAACD,MAAM,CAAC,CAAA;AAChBL,IAAAA,aAAa,IAAIA,aAAa,CAACF,KAAK,EAAE,CAACO,MAAM,CAAC,CAAA;GACjD,CAAA;AAED,EAAA,IAAMO,UAAU,GAAG,SAAbA,UAAUA,CAAIC,KAAoC,EAAK;AACzD,IAAA,IAAId,QAAQ,EAAE;AACV,MAAA,OAAA;AACJ,KAAA;IACAc,KAAK,CAACC,OAAO,EAAE,CAAA;AACf,IAAA,IAAID,KAAK,CAACE,OAAO,KAAK,EAAE,EAAE;AACtBJ,MAAAA,UAAU,EAAE,CAAA;AAChB,KAAA;GACH,CAAA;AAED,EAAA,IAAMK,cAAc,GAAGC,MAAM,CAAiB,IAAI,CAAC,CAAA;AAEnDC,EAAAA,SAAS,CAAC,YAAM;IAAA,IAAAC,qBAAA,EAAAC,sBAAA,CAAA;IACZd,OAAO,CAACjB,KAAK,CAAC,CAAA;IACd,IAAMgC,gBAAgB,GAAAF,CAAAA,qBAAA,GAAGH,cAAc,aAAdA,cAAc,KAAA,KAAA,CAAA,IAAA,CAAAI,sBAAA,GAAdJ,cAAc,CAAEM,OAAO,MAAAF,IAAAA,IAAAA,sBAAA,KAAvBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,sBAAA,CAAyBG,WAAW,cAAAJ,qBAAA,KAAA,KAAA,CAAA,GAAAA,qBAAA,GAAI,CAAC,CAAA;AAClE,IAAA,IAAMK,eAAe,GAAGH,gBAAgB,GAAA,OAAA,CAAAI,MAAA,CAAWJ,gBAAgB,EAAAI,WAAAA,CAAAA,CAAAA,MAAA,CAAYC,MAAM,CAACC,gBAAgB,UAAO,CAAC,CAAA;IAC9GjB,cAAc,CAACc,eAAe,CAAC,CAAA;GAClC,EAAE,CAACnC,KAAK,EAAEQ,IAAI,EAAEmB,cAAc,EAAEN,cAAc,CAAC,CAAC,CAAA;EAEjD,IAAMkB,UAAU,GAAGvB,MAAM,GAAGwB,OAAO,CAACC,qBAAqB,GAAGC,SAAS,CAAA;AAErE,EAAA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAA;AAAA,IAAA,oBACrBC,KAAA,CAAAC,aAAA,CAACC,UAAU,EAAAC,IAAAA,EAAAA,YAAA,KAAAA,YAAA,gBACPH,KAAA,CAAAC,aAAA,CAACG,WAAW,EAAA;AAACC,MAAAA,IAAI,EAAC,IAAI;AAACC,MAAAA,KAAK,EAAC,QAAA;AAAQ,KAAE,CAAC,CACxCN,eAAAA,KAAA,CAAAC,aAAA,CAACG,WAAW,EAAA;AAACC,MAAAA,IAAI,EAAC,IAAI;AAACC,MAAAA,KAAK,EAAC,QAAQ;MAACC,SAAS,EAAEZ,UAAU,KAAVA,IAAAA,IAAAA,UAAU,cAAVA,UAAU,GAAIC,OAAO,CAACY,6BAAAA;AAA8B,KAAE,CAC/F,CAAC,CAAA;GAChB,CAAA;AAED,EAAA,IAAMC,qBAAqB,GAAGC,sBAAsB,CAACjD,GAAG,EAAA,MAAA,CAAA+B,MAAA,CAASC,MAAM,CAACkB,yBAAyB,EAAA,GAAA,CAAA,EAAK,QAAQ,CAAC,CAAA;EAC/G,IAAMC,aAAa,GAAG9C,QAAQ,GAAG8B,OAAO,CAACiB,iBAAiB,GAAG,EAAE,CAAA;EAE/D,IAAMC,WAAW,GAAGxD,WAAW,KAAA,IAAA,IAAXA,WAAW,KAAXA,KAAAA,CAAAA,GAAAA,WAAW,GAAKM,IAAI,KAAK,OAAO,GAAAmD,YAAA,KAAAA,YAAA,gBAAGf,KAAA,CAAAC,aAAA,CAACe,WAAW,EAAA;AAACX,IAAAA,IAAI,EAAC,IAAI;AAACC,IAAAA,KAAK,EAAC,QAAA;GAAU,CAAC,IAAGR,SAAU,CAAA;AAC5G,EAAA,IAAMmB,iBAAiB,GAAGrD,IAAI,KAAK,OAAO,IAAIQ,MAAM,GAAGwB,OAAO,CAACC,qBAAqB,GAAGC,SAAS,CAAA;EAEhG,IAAMoB,YAAY,GAAG7D,YAAY,KAAA,IAAA,IAAZA,YAAY,KAAZA,KAAAA,CAAAA,GAAAA,YAAY,GAAKO,IAAI,KAAK,MAAM,gBAAGoC,KAAA,CAAAC,aAAA,CAACF,mBAAmB,EAAE,IAAA,CAAC,GAAGD,SAAU,CAAA;AAC5F,EAAA,IAAMqB,kBAAkB,GAAGvD,IAAI,KAAK,MAAM,IAAIQ,MAAM,GAAGwB,OAAO,CAACC,qBAAqB,GAAGC,SAAS,CAAA;AAEhG,EAAA,oBACIE,KAAA,CAAAC,aAAA,CAACmB,mBAAmB,EAAA;AAChBC,IAAAA,IAAI,EAAC,KAAK;IACVd,SAAS,EAAEX,OAAO,CAAC0B,aAAc;AACjCC,IAAAA,QAAQ,EAAE,CAAE;AACZC,IAAAA,GAAG,EAAE3D,KAAM;AACX4D,IAAAA,KAAK,EAAE;AAAEC,MAAAA,YAAY,EAAEjB,qBAAAA;KAAwB;AAC/CkB,IAAAA,SAAS,EAAEhD,UAAAA;AAAW,GAAA,eAEtBqB,KAAA,CAAAC,aAAA,CAAC2B,qBAAqB,EAAA;AAACC,IAAAA,OAAO,EAAEnD,UAAW;AAAC6B,IAAAA,SAAS,EAAEK,aAAAA;AAAc,GAAA,eACjEZ,KAAA,CAAAC,aAAA,CAAC6B,yBAAyB,EAAA,IAAA,EACrBhB,WAAW,iBACRd,KAAA,CAAAC,aAAA,CAAC8B,0BAA0B,EAAA;AAACC,IAAAA,GAAG,EAAEjD,cAAe;AAACwB,IAAAA,SAAS,EAAEU,iBAAAA;AAAkB,GAAA,EACzEH,WACuB,CAC/B,eACDd,KAAA,CAAAC,aAAA,CAACgC,oBAAoB,EAAE1E,IAAAA,EAAAA,KAA4B,CAC5B,CAAC,eAE5ByC,KAAA,CAAAC,aAAA,CAACiC,2BAA2B,EAAA;AAAC3B,IAAAA,SAAS,EAAEY,kBAAAA;GACnCD,EAAAA,YAAY,IAAIA,YACQ,CACV,CAAC,eACxBlB,KAAA,CAAAC,aAAA,CAACkC,0BAA0B,EAAA;AAAC5B,IAAAA,SAAS,EAAEZ,UAAW;AAAC8B,IAAAA,KAAK,EAAE;MAAEW,WAAW,EAAA,EAAA,CAAA5C,MAAA,CAAKhB,WAAW,CAAA;AAAG,KAAA;GACtFwB,eAAAA,KAAA,CAAAC,aAAA,CAACoC,mBAAmB,EAAE3E,IAAAA,EAAAA,QAA8B,CAC5B,CACX,CAAC,CAAA;AAE9B;;;;"}