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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (723) hide show
  1. package/cjs/components/Calendar/Calendar.tokens.js +67 -28
  2. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  3. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  4. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +57 -29
  5. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
  6. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  7. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  8. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  9. package/cjs/components/Calendar/CalendarBase/{CalendarBase.styles_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
  10. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
  11. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +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_fznpy7.css +4 -0
  23. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  24. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  25. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  26. package/cjs/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
  27. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
  28. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +31 -17
  29. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  30. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +27 -12
  31. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  32. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +8 -0
  33. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  34. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  35. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  36. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  37. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  38. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +4 -0
  39. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  40. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  41. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  42. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  44. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +4 -0
  45. package/cjs/components/Calendar/utils/index.js.map +1 -1
  46. package/cjs/components/Combobox/Combobox.js +2 -2
  47. package/cjs/components/Combobox/Combobox.js.map +1 -1
  48. package/cjs/components/DatePicker/DatePicker.tokens.js +189 -0
  49. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -0
  50. package/cjs/components/DatePicker/DatePickerBase.styles.js +30 -0
  51. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -0
  52. package/cjs/components/DatePicker/DatePickerBase.styles_1thp2xv.css +1 -0
  53. package/cjs/components/DatePicker/RangeDate/DatePicker.css +152 -0
  54. package/cjs/components/DatePicker/RangeDate/DatePicker.js +285 -0
  55. package/cjs/components/DatePicker/RangeDate/DatePicker.js.map +1 -0
  56. package/cjs/components/DatePicker/RangeDate/DatePicker.styles.js +51 -0
  57. package/cjs/components/DatePicker/RangeDate/DatePicker.styles.js.map +1 -0
  58. package/cjs/components/DatePicker/RangeDate/DatePicker.styles_6cvsgx.css +5 -0
  59. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +144 -0
  60. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +83 -0
  61. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -0
  62. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +42 -0
  63. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -0
  64. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +2 -0
  65. package/cjs/components/{Accordion/variations/_size → 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/{Accordion/variations/_view → DatePicker/RangeDate/variations/_readonly}/base.js +2 -2
  69. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
  70. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_dhosc0.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_c0144z.css +1 -0
  74. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js +9 -0
  75. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
  76. package/cjs/components/DatePicker/RangeDate/variations/_view/base_1vly6xz.css +1 -0
  77. package/cjs/components/DatePicker/SingleDate/DatePicker.css +134 -0
  78. package/cjs/components/DatePicker/SingleDate/DatePicker.js +183 -0
  79. package/cjs/components/DatePicker/SingleDate/DatePicker.js.map +1 -0
  80. package/cjs/components/DatePicker/SingleDate/DatePicker.styles.js +51 -0
  81. package/cjs/components/DatePicker/SingleDate/DatePicker.styles.js.map +1 -0
  82. package/cjs/components/DatePicker/SingleDate/DatePicker.styles_1reoff2.css +5 -0
  83. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
  84. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
  85. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
  86. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +9 -0
  87. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
  88. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base_ayigv4.css +1 -0
  89. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +9 -0
  90. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
  91. package/cjs/components/DatePicker/SingleDate/variations/_size/base_jrds3p.css +1 -0
  92. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +9 -0
  93. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
  94. package/cjs/components/DatePicker/SingleDate/variations/_view/base_163gwfv.css +1 -0
  95. package/cjs/components/DatePicker/hooks/useDatePicker.js +79 -0
  96. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -0
  97. package/cjs/components/DatePicker/utils/dateHelper.js +84 -0
  98. package/cjs/components/DatePicker/utils/dateHelper.js.map +1 -0
  99. package/cjs/components/Dropdown/Dropdown.js +2 -1
  100. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  101. package/cjs/components/Dropdown/utils/index.js +0 -17
  102. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  103. package/cjs/components/Range/Range.css +6 -6
  104. package/cjs/components/Range/Range.js +17 -2
  105. package/cjs/components/Range/Range.js.map +1 -1
  106. package/cjs/components/Range/Range.styles.js +1 -1
  107. package/cjs/components/Range/Range.styles.js.map +1 -1
  108. package/cjs/components/Range/Range.styles_9rort8.css +8 -0
  109. package/cjs/components/Select/Select.js +2 -2
  110. package/cjs/components/Select/Select.js.map +1 -1
  111. package/cjs/components/Slider/Slider.css +3 -3
  112. package/cjs/components/Slider/components/Double/Double.css +3 -3
  113. package/cjs/components/TextField/TextField.tokens.js +1 -1
  114. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  115. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  116. package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
  117. package/cjs/components/TextField/variations/_size/base.js +1 -1
  118. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  119. package/cjs/components/TextField/variations/_size/base_orwx1f.css +1 -0
  120. package/cjs/components/TextField/variations/_view/base.js +1 -1
  121. package/cjs/components/TextField/variations/_view/base_18ea6z7.css +1 -0
  122. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +23 -0
  123. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
  124. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  125. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  126. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  127. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  128. package/cjs/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +5 -5
  129. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
  130. package/cjs/index.css +69 -38
  131. package/cjs/index.js +12 -8
  132. package/cjs/index.js.map +1 -1
  133. package/cjs/utils/datejs.js +12 -0
  134. package/cjs/utils/datejs.js.map +1 -0
  135. package/cjs/utils/getPopoverPlacement.js +23 -0
  136. package/cjs/utils/getPopoverPlacement.js.map +1 -0
  137. package/cjs/utils/index.js.map +1 -1
  138. package/es/components/Calendar/Calendar.tokens.js +67 -28
  139. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  140. package/es/components/Calendar/Calendar.types.js.map +1 -1
  141. package/es/components/Calendar/CalendarBase/CalendarBase.css +57 -29
  142. package/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
  143. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  144. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  145. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  146. package/es/components/Calendar/CalendarBase/{CalendarBase.styles_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
  147. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
  148. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
  149. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  150. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  151. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  152. package/es/components/Calendar/CalendarDouble/{CalendarDouble.styles_1rc2ejs.css → CalendarDouble.styles_e9ada0.css} +2 -2
  153. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  154. package/es/components/Calendar/hooks/useDays.js +1 -1
  155. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  156. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  157. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  158. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  159. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_fznpy7.css +4 -0
  160. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  161. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  162. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  163. package/es/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
  164. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
  165. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +32 -18
  166. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  167. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +26 -13
  168. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  169. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +8 -0
  170. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  171. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  172. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  173. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  174. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  175. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +4 -0
  176. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  177. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  178. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  179. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  180. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  181. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +4 -0
  182. package/es/components/Calendar/utils/index.js.map +1 -1
  183. package/es/components/Combobox/Combobox.js +1 -1
  184. package/es/components/Combobox/Combobox.js.map +1 -1
  185. package/es/components/DatePicker/DatePicker.tokens.js +184 -0
  186. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -0
  187. package/es/components/DatePicker/DatePickerBase.styles.js +26 -0
  188. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -0
  189. package/es/components/DatePicker/DatePickerBase.styles_1thp2xv.css +1 -0
  190. package/es/components/DatePicker/RangeDate/DatePicker.css +152 -0
  191. package/es/components/DatePicker/RangeDate/DatePicker.js +280 -0
  192. package/es/components/DatePicker/RangeDate/DatePicker.js.map +1 -0
  193. package/es/components/DatePicker/RangeDate/DatePicker.styles.js +43 -0
  194. package/es/components/DatePicker/RangeDate/DatePicker.styles.js.map +1 -0
  195. package/es/components/DatePicker/RangeDate/DatePicker.styles_6cvsgx.css +5 -0
  196. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +144 -0
  197. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +79 -0
  198. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -0
  199. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +37 -0
  200. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -0
  201. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +2 -0
  202. package/es/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_disabled}/base.js +2 -2
  203. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
  204. package/es/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
  205. package/es/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_readonly}/base.js +2 -2
  206. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
  207. package/es/components/DatePicker/RangeDate/variations/_readonly/base_dhosc0.css +1 -0
  208. package/es/components/DatePicker/RangeDate/variations/_size/base.js +5 -0
  209. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
  210. package/es/components/DatePicker/RangeDate/variations/_size/base_c0144z.css +1 -0
  211. package/es/components/DatePicker/RangeDate/variations/_view/base.js +5 -0
  212. package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
  213. package/es/components/DatePicker/RangeDate/variations/_view/base_1vly6xz.css +1 -0
  214. package/es/components/DatePicker/SingleDate/DatePicker.css +134 -0
  215. package/es/components/DatePicker/SingleDate/DatePicker.js +178 -0
  216. package/es/components/DatePicker/SingleDate/DatePicker.js.map +1 -0
  217. package/es/components/DatePicker/SingleDate/DatePicker.styles.js +43 -0
  218. package/es/components/DatePicker/SingleDate/DatePicker.styles.js.map +1 -0
  219. package/es/components/DatePicker/SingleDate/DatePicker.styles_1reoff2.css +5 -0
  220. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js +5 -0
  221. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
  222. package/es/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
  223. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js +5 -0
  224. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
  225. package/es/components/DatePicker/SingleDate/variations/_readonly/base_ayigv4.css +1 -0
  226. package/es/components/DatePicker/SingleDate/variations/_size/base.js +5 -0
  227. package/es/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
  228. package/es/components/DatePicker/SingleDate/variations/_size/base_jrds3p.css +1 -0
  229. package/es/components/DatePicker/SingleDate/variations/_view/base.js +5 -0
  230. package/es/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
  231. package/es/components/DatePicker/SingleDate/variations/_view/base_163gwfv.css +1 -0
  232. package/es/components/DatePicker/hooks/useDatePicker.js +75 -0
  233. package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -0
  234. package/es/components/DatePicker/utils/dateHelper.js +76 -0
  235. package/es/components/DatePicker/utils/dateHelper.js.map +1 -0
  236. package/es/components/Dropdown/Dropdown.js +2 -1
  237. package/es/components/Dropdown/Dropdown.js.map +1 -1
  238. package/es/components/Dropdown/utils/index.js +1 -16
  239. package/es/components/Dropdown/utils/index.js.map +1 -1
  240. package/es/components/Range/Range.css +6 -6
  241. package/es/components/Range/Range.js +18 -3
  242. package/es/components/Range/Range.js.map +1 -1
  243. package/es/components/Range/Range.styles.js +1 -1
  244. package/es/components/Range/Range.styles.js.map +1 -1
  245. package/es/components/Range/Range.styles_9rort8.css +8 -0
  246. package/es/components/Select/Select.js +1 -1
  247. package/es/components/Select/Select.js.map +1 -1
  248. package/es/components/Slider/Slider.css +3 -3
  249. package/es/components/Slider/components/Double/Double.css +3 -3
  250. package/es/components/TextField/TextField.tokens.js +1 -1
  251. package/es/components/TextField/TextField.tokens.js.map +1 -1
  252. package/es/components/TextField/variations/_read-only/base.js +1 -1
  253. package/es/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
  254. package/es/components/TextField/variations/_size/base.js +1 -1
  255. package/es/components/TextField/variations/_size/base.js.map +1 -1
  256. package/es/components/TextField/variations/_size/base_orwx1f.css +1 -0
  257. package/es/components/TextField/variations/_view/base.js +1 -1
  258. package/es/components/TextField/variations/_view/base_18ea6z7.css +1 -0
  259. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js +19 -0
  260. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
  261. package/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  262. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  263. package/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  264. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  265. package/es/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +5 -5
  266. package/es/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
  267. package/es/index.css +69 -38
  268. package/es/index.js +4 -3
  269. package/es/index.js.map +1 -1
  270. package/es/utils/datejs.js +8 -0
  271. package/es/utils/datejs.js.map +1 -0
  272. package/es/utils/getPopoverPlacement.js +18 -0
  273. package/es/utils/getPopoverPlacement.js.map +1 -0
  274. package/es/utils/index.js.map +1 -1
  275. package/package.json +3 -2
  276. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +67 -28
  277. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
  278. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
  279. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
  280. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  281. package/styled-components/cjs/components/Calendar/hooks/useDays.js +1 -1
  282. package/styled-components/cjs/components/Calendar/mixins/active.js +12 -0
  283. package/styled-components/cjs/components/Calendar/mixins/flex.js +8 -0
  284. package/styled-components/cjs/components/Calendar/mixins/index.js +30 -29
  285. package/styled-components/cjs/components/Calendar/mixins/selected.js +24 -0
  286. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +27 -20
  287. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
  288. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +30 -16
  289. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
  290. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  291. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +26 -12
  292. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  293. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +26 -14
  294. package/styled-components/cjs/components/Combobox/Combobox.js +6 -7
  295. package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +150 -0
  296. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +187 -0
  297. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +19 -0
  298. package/styled-components/cjs/components/DatePicker/RangeDate/DatePicker.js +293 -0
  299. package/styled-components/cjs/components/DatePicker/RangeDate/DatePicker.styles.js +33 -0
  300. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +81 -0
  301. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +26 -0
  302. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +5 -0
  303. package/styled-components/cjs/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_disabled}/base.js +2 -1
  304. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  305. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +10 -0
  306. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
  307. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +10 -0
  308. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  309. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/base.js +10 -0
  310. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  311. package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.js +190 -0
  312. package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.styles.js +33 -0
  313. package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.types.js +5 -0
  314. package/styled-components/cjs/components/{Accordion/variations/_stretching → DatePicker/SingleDate/variations/_disabled}/base.js +2 -1
  315. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
  316. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +10 -0
  317. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
  318. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/base.js +10 -0
  319. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
  320. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/base.js +10 -0
  321. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
  322. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +77 -0
  323. package/styled-components/cjs/components/DatePicker/index.js +44 -0
  324. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +78 -0
  325. package/styled-components/cjs/components/Dropdown/Dropdown.js +1 -1
  326. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -16
  327. package/styled-components/cjs/components/Range/Range.js +17 -2
  328. package/styled-components/cjs/components/Range/Range.styles.js +3 -2
  329. package/styled-components/cjs/components/Select/Select.js +7 -8
  330. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -1
  331. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  332. package/styled-components/cjs/components/_Icon/Icon.assets/{Minus.js → DisclosureDownFill.js} +5 -4
  333. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  334. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  335. package/styled-components/cjs/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +4 -4
  336. package/styled-components/cjs/components/_Icon/index.js +8 -15
  337. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
  338. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
  339. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -2
  340. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +31 -0
  341. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.js +13 -0
  342. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +251 -0
  343. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  344. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
  345. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
  346. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -2
  347. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +31 -0
  348. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.js +13 -0
  349. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +251 -0
  350. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +4 -4
  351. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
  352. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
  353. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -2
  354. package/styled-components/cjs/index.js +4 -4
  355. package/styled-components/cjs/utils/datejs.js +11 -0
  356. package/styled-components/cjs/utils/getPopoverPlacement.js +21 -0
  357. package/styled-components/cjs/utils/index.js +22 -0
  358. package/styled-components/es/components/Calendar/Calendar.tokens.js +67 -28
  359. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
  360. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
  361. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
  362. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  363. package/styled-components/es/components/Calendar/hooks/useDays.js +1 -1
  364. package/styled-components/es/components/Calendar/mixins/active.js +6 -0
  365. package/styled-components/es/components/Calendar/mixins/flex.js +2 -0
  366. package/styled-components/es/components/Calendar/mixins/index.js +3 -27
  367. package/styled-components/es/components/Calendar/mixins/selected.js +18 -0
  368. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +26 -19
  369. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
  370. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +32 -18
  371. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
  372. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  373. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +25 -11
  374. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  375. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +25 -13
  376. package/styled-components/es/components/Combobox/Combobox.js +1 -2
  377. package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +150 -0
  378. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +181 -0
  379. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +12 -0
  380. package/styled-components/es/components/DatePicker/RangeDate/DatePicker.js +284 -0
  381. package/styled-components/es/components/DatePicker/RangeDate/DatePicker.styles.js +25 -0
  382. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +74 -0
  383. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +19 -0
  384. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js +1 -0
  385. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/base.js +3 -0
  386. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  387. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +4 -0
  388. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
  389. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +4 -0
  390. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  391. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/base.js +4 -0
  392. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  393. package/styled-components/es/components/DatePicker/SingleDate/DatePicker.js +181 -0
  394. package/styled-components/es/components/DatePicker/SingleDate/DatePicker.styles.js +25 -0
  395. package/styled-components/es/components/DatePicker/SingleDate/DatePicker.types.js +1 -0
  396. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/base.js +3 -0
  397. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
  398. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/base.js +4 -0
  399. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
  400. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/base.js +4 -0
  401. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
  402. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/base.js +4 -0
  403. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
  404. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +71 -0
  405. package/styled-components/es/components/DatePicker/index.js +3 -0
  406. package/styled-components/es/components/DatePicker/utils/dateHelper.js +72 -0
  407. package/styled-components/es/components/Dropdown/Dropdown.js +2 -2
  408. package/styled-components/es/components/Dropdown/utils/index.js +0 -15
  409. package/styled-components/es/components/Range/Range.js +18 -3
  410. package/styled-components/es/components/Range/Range.styles.js +3 -2
  411. package/styled-components/es/components/Select/Select.js +1 -2
  412. package/styled-components/es/components/TextField/TextField.tokens.js +1 -1
  413. package/styled-components/es/components/TextField/variations/_size/base.js +1 -1
  414. package/styled-components/es/components/_Icon/Icon.assets/{Minus.js → DisclosureDownFill.js} +4 -3
  415. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  416. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
  417. package/styled-components/es/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +3 -3
  418. package/styled-components/es/components/_Icon/index.js +2 -3
  419. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
  420. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
  421. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -2
  422. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +25 -0
  423. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.js +7 -0
  424. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +251 -0
  425. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  426. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
  427. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
  428. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -2
  429. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +25 -0
  430. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.js +7 -0
  431. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +251 -0
  432. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +4 -4
  433. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
  434. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
  435. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -2
  436. package/styled-components/es/index.js +1 -1
  437. package/styled-components/es/utils/datejs.js +4 -0
  438. package/styled-components/es/utils/getPopoverPlacement.js +15 -0
  439. package/styled-components/es/utils/index.js +1 -0
  440. package/types/components/Calendar/Calendar.tokens.d.ts +60 -26
  441. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  442. package/types/components/Calendar/Calendar.types.d.ts +1 -1
  443. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  444. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +27 -3
  445. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  446. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  447. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +30 -3
  448. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  449. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  450. package/types/components/Calendar/mixins/active.d.ts +17 -0
  451. package/types/components/Calendar/mixins/active.d.ts.map +1 -0
  452. package/types/components/Calendar/mixins/flex.d.ts +3 -0
  453. package/types/components/Calendar/mixins/flex.d.ts.map +1 -0
  454. package/types/components/Calendar/mixins/index.d.ts +3 -8
  455. package/types/components/Calendar/mixins/index.d.ts.map +1 -1
  456. package/types/components/Calendar/mixins/selected.d.ts +40 -0
  457. package/types/components/Calendar/mixins/selected.d.ts.map +1 -0
  458. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
  459. package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
  460. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  461. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +47 -7
  462. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  463. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +1 -0
  464. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
  465. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  466. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  467. package/types/components/Calendar/utils/index.d.ts +1 -1
  468. package/types/components/Calendar/utils/index.d.ts.map +1 -1
  469. package/types/components/Combobox/Combobox.d.ts.map +1 -1
  470. package/types/components/DatePicker/DatePicker.tokens.d.ts +182 -0
  471. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -0
  472. package/types/components/DatePicker/DatePickerBase.styles.d.ts +8 -0
  473. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -0
  474. package/types/components/DatePicker/DatePickerBase.types.d.ts +37 -0
  475. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -0
  476. package/types/components/DatePicker/RangeDate/DatePicker.d.ts +628 -0
  477. package/types/components/DatePicker/RangeDate/DatePicker.d.ts.map +1 -0
  478. package/types/components/DatePicker/RangeDate/DatePicker.styles.d.ts +115 -0
  479. package/types/components/DatePicker/RangeDate/DatePicker.styles.d.ts.map +1 -0
  480. package/types/components/DatePicker/RangeDate/DatePicker.types.d.ts +76 -0
  481. package/types/components/DatePicker/RangeDate/DatePicker.types.d.ts.map +1 -0
  482. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +4 -0
  483. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -0
  484. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +5 -0
  485. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +1 -0
  486. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +29 -0
  487. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +1 -0
  488. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts.map +1 -0
  489. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +1 -0
  490. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +1 -0
  491. package/types/components/{Accordion/Accordion.styles.d.ts → DatePicker/RangeDate/variations/_view/base.d.ts} +1 -1
  492. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +1 -0
  493. package/types/components/DatePicker/SingleDate/DatePicker.d.ts +31 -0
  494. package/types/components/DatePicker/SingleDate/DatePicker.d.ts.map +1 -0
  495. package/types/components/DatePicker/SingleDate/DatePicker.styles.d.ts +45 -0
  496. package/types/components/DatePicker/SingleDate/DatePicker.styles.d.ts.map +1 -0
  497. package/types/components/DatePicker/SingleDate/DatePicker.types.d.ts +120 -0
  498. package/types/components/DatePicker/SingleDate/DatePicker.types.d.ts.map +1 -0
  499. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts +2 -0
  500. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts.map +1 -0
  501. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts +2 -0
  502. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts.map +1 -0
  503. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts +2 -0
  504. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts.map +1 -0
  505. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts +2 -0
  506. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts.map +1 -0
  507. package/types/components/DatePicker/hooks/useDatePicker.d.ts +10 -0
  508. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -0
  509. package/types/components/DatePicker/index.d.ts +6 -0
  510. package/types/components/DatePicker/index.d.ts.map +1 -0
  511. package/types/components/DatePicker/utils/dateHelper.d.ts +10 -0
  512. package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -0
  513. package/types/components/Dropdown/utils/index.d.ts +1 -3
  514. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  515. package/types/components/Range/Range.d.ts +3 -3
  516. package/types/components/Range/Range.d.ts.map +1 -1
  517. package/types/components/Range/Range.styles.d.ts.map +1 -1
  518. package/types/components/Range/Range.types.d.ts +5 -1
  519. package/types/components/Range/Range.types.d.ts.map +1 -1
  520. package/types/components/Range/index.d.ts +1 -1
  521. package/types/components/Range/index.d.ts.map +1 -1
  522. package/types/components/Select/Select.d.ts.map +1 -1
  523. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  524. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts +4 -0
  525. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts.map +1 -0
  526. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  527. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts +4 -0
  528. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts.map +1 -0
  529. package/types/components/_Icon/index.d.ts +1 -2
  530. package/types/components/_Icon/index.d.ts.map +1 -1
  531. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +15 -4
  532. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
  533. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +3 -0
  534. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  535. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +3 -0
  536. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  537. package/types/examples/plasma_b2c/components/{Accordion/Accordion.config.d.ts → DatePicker/DatePicker.config.d.ts} +7 -2
  538. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -0
  539. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +334 -0
  540. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -0
  541. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -3
  542. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  543. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +15 -4
  544. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
  545. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +3 -0
  546. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  547. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +3 -0
  548. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  549. package/types/examples/plasma_web/components/{Accordion/Accordion.config.d.ts → DatePicker/DatePicker.config.d.ts} +6 -5
  550. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -0
  551. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +334 -0
  552. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -0
  553. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -3
  554. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  555. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +15 -4
  556. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
  557. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +3 -0
  558. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  559. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +3 -0
  560. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  561. package/types/index.d.ts +1 -1
  562. package/types/index.d.ts.map +1 -1
  563. package/types/utils/datejs.d.ts +3 -0
  564. package/types/utils/datejs.d.ts.map +1 -0
  565. package/types/utils/getPopoverPlacement.d.ts +5 -0
  566. package/types/utils/getPopoverPlacement.d.ts.map +1 -0
  567. package/types/utils/index.d.ts +1 -0
  568. package/types/utils/index.d.ts.map +1 -1
  569. package/cjs/components/Accordion/Accordion.css +0 -1
  570. package/cjs/components/Accordion/Accordion.js +0 -81
  571. package/cjs/components/Accordion/Accordion.js.map +0 -1
  572. package/cjs/components/Accordion/Accordion.styles.js +0 -9
  573. package/cjs/components/Accordion/Accordion.styles.js.map +0 -1
  574. package/cjs/components/Accordion/Accordion.styles_rsiff6.css +0 -1
  575. package/cjs/components/Accordion/Accordion.tokens.js +0 -45
  576. package/cjs/components/Accordion/Accordion.tokens.js.map +0 -1
  577. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -106
  578. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js.map +0 -1
  579. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -63
  580. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +0 -1
  581. package/cjs/components/Accordion/utils/index.js +0 -30
  582. package/cjs/components/Accordion/utils/index.js.map +0 -1
  583. package/cjs/components/Accordion/variations/_size/base.js.map +0 -1
  584. package/cjs/components/Accordion/variations/_size/base_x642ct.css +0 -1
  585. package/cjs/components/Accordion/variations/_view/base.js.map +0 -1
  586. package/cjs/components/Accordion/variations/_view/base_x642ct.css +0 -1
  587. package/cjs/components/Calendar/mixins/index.js +0 -18
  588. package/cjs/components/Calendar/mixins/index.js.map +0 -1
  589. package/cjs/components/Calendar/mixins/index_o3bz9l.css +0 -1
  590. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
  591. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
  592. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
  593. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
  594. package/cjs/components/Range/Range.styles_mc4w65.css +0 -8
  595. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  596. package/cjs/components/TextField/variations/_size/base_ntoddv.css +0 -1
  597. package/cjs/components/TextField/variations/_view/base_19gxyva.css +0 -1
  598. package/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +0 -24
  599. package/cjs/components/_Icon/Icon.assets/ChevronDownFill.js.map +0 -1
  600. package/cjs/components/_Icon/Icon.assets/Minus.js +0 -22
  601. package/cjs/components/_Icon/Icon.assets/Minus.js.map +0 -1
  602. package/cjs/components/_Icon/Icons/IconChevronDownFill.js +0 -23
  603. package/cjs/components/_Icon/Icons/IconChevronDownFill.js.map +0 -1
  604. package/cjs/components/_Icon/Icons/IconMinus.js.map +0 -1
  605. package/es/components/Accordion/Accordion.css +0 -1
  606. package/es/components/Accordion/Accordion.js +0 -76
  607. package/es/components/Accordion/Accordion.js.map +0 -1
  608. package/es/components/Accordion/Accordion.styles.js +0 -5
  609. package/es/components/Accordion/Accordion.styles.js.map +0 -1
  610. package/es/components/Accordion/Accordion.styles_rsiff6.css +0 -1
  611. package/es/components/Accordion/Accordion.tokens.js +0 -40
  612. package/es/components/Accordion/Accordion.tokens.js.map +0 -1
  613. package/es/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -102
  614. package/es/components/Accordion/ui/AccordionItem/AccordionItem.js.map +0 -1
  615. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -49
  616. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +0 -1
  617. package/es/components/Accordion/utils/index.js +0 -25
  618. package/es/components/Accordion/utils/index.js.map +0 -1
  619. package/es/components/Accordion/variations/_size/base.js.map +0 -1
  620. package/es/components/Accordion/variations/_size/base_x642ct.css +0 -1
  621. package/es/components/Accordion/variations/_view/base.js.map +0 -1
  622. package/es/components/Accordion/variations/_view/base_x642ct.css +0 -1
  623. package/es/components/Calendar/mixins/index.js +0 -14
  624. package/es/components/Calendar/mixins/index.js.map +0 -1
  625. package/es/components/Calendar/mixins/index_o3bz9l.css +0 -1
  626. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
  627. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
  628. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
  629. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
  630. package/es/components/Range/Range.styles_mc4w65.css +0 -8
  631. package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  632. package/es/components/TextField/variations/_size/base_ntoddv.css +0 -1
  633. package/es/components/TextField/variations/_view/base_19gxyva.css +0 -1
  634. package/es/components/_Icon/Icon.assets/ChevronDownFill.js +0 -20
  635. package/es/components/_Icon/Icon.assets/ChevronDownFill.js.map +0 -1
  636. package/es/components/_Icon/Icon.assets/Minus.js +0 -18
  637. package/es/components/_Icon/Icon.assets/Minus.js.map +0 -1
  638. package/es/components/_Icon/Icons/IconChevronDownFill.js +0 -19
  639. package/es/components/_Icon/Icons/IconChevronDownFill.js.map +0 -1
  640. package/es/components/_Icon/Icons/IconMinus.js.map +0 -1
  641. package/styled-components/cjs/components/Accordion/Accordion.js +0 -90
  642. package/styled-components/cjs/components/Accordion/Accordion.styles.js +0 -9
  643. package/styled-components/cjs/components/Accordion/Accordion.tokens.js +0 -43
  644. package/styled-components/cjs/components/Accordion/index.js +0 -38
  645. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -112
  646. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -49
  647. package/styled-components/cjs/components/Accordion/utils/index.js +0 -27
  648. package/styled-components/cjs/components/Accordion/variations/_size/base.js +0 -8
  649. package/styled-components/cjs/components/Accordion/variations/_size/tokens.json +0 -6
  650. package/styled-components/cjs/components/Accordion/variations/_stretching/tokens.json +0 -1
  651. package/styled-components/cjs/components/Accordion/variations/_view/tokens.json +0 -8
  652. package/styled-components/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +0 -23
  653. package/styled-components/cjs/components/_Icon/Icons/IconChevronDownFill.js +0 -22
  654. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.config.js +0 -26
  655. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.js +0 -17
  656. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +0 -66
  657. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.config.js +0 -30
  658. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.js +0 -17
  659. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +0 -65
  660. package/styled-components/es/components/Accordion/Accordion.js +0 -81
  661. package/styled-components/es/components/Accordion/Accordion.styles.js +0 -3
  662. package/styled-components/es/components/Accordion/Accordion.tokens.js +0 -37
  663. package/styled-components/es/components/Accordion/index.js +0 -3
  664. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -103
  665. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -42
  666. package/styled-components/es/components/Accordion/utils/index.js +0 -21
  667. package/styled-components/es/components/Accordion/variations/_size/base.js +0 -2
  668. package/styled-components/es/components/Accordion/variations/_size/tokens.json +0 -6
  669. package/styled-components/es/components/Accordion/variations/_stretching/base.js +0 -2
  670. package/styled-components/es/components/Accordion/variations/_stretching/tokens.json +0 -1
  671. package/styled-components/es/components/Accordion/variations/_view/base.js +0 -2
  672. package/styled-components/es/components/Accordion/variations/_view/tokens.json +0 -8
  673. package/styled-components/es/components/_Icon/Icon.assets/ChevronDownFill.js +0 -16
  674. package/styled-components/es/components/_Icon/Icons/IconChevronDownFill.js +0 -15
  675. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.config.js +0 -20
  676. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.js +0 -6
  677. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +0 -66
  678. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.config.js +0 -24
  679. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.js +0 -6
  680. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +0 -65
  681. package/types/components/Accordion/Accordion.d.ts +0 -43
  682. package/types/components/Accordion/Accordion.d.ts.map +0 -1
  683. package/types/components/Accordion/Accordion.styles.d.ts.map +0 -1
  684. package/types/components/Accordion/Accordion.tokens.d.ts +0 -38
  685. package/types/components/Accordion/Accordion.tokens.d.ts.map +0 -1
  686. package/types/components/Accordion/Accordion.types.d.ts +0 -36
  687. package/types/components/Accordion/Accordion.types.d.ts.map +0 -1
  688. package/types/components/Accordion/index.d.ts +0 -5
  689. package/types/components/Accordion/index.d.ts.map +0 -1
  690. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts +0 -4
  691. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts.map +0 -1
  692. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts +0 -13
  693. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts.map +0 -1
  694. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts +0 -51
  695. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts.map +0 -1
  696. package/types/components/Accordion/utils/index.d.ts +0 -17
  697. package/types/components/Accordion/utils/index.d.ts.map +0 -1
  698. package/types/components/Accordion/variations/_size/base.d.ts.map +0 -1
  699. package/types/components/Accordion/variations/_stretching/base.d.ts.map +0 -1
  700. package/types/components/Accordion/variations/_view/base.d.ts.map +0 -1
  701. package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts +0 -4
  702. package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts.map +0 -1
  703. package/types/components/_Icon/Icon.assets/Minus.d.ts +0 -4
  704. package/types/components/_Icon/Icon.assets/Minus.d.ts.map +0 -1
  705. package/types/components/_Icon/Icons/IconChevronDownFill.d.ts +0 -4
  706. package/types/components/_Icon/Icons/IconChevronDownFill.d.ts.map +0 -1
  707. package/types/components/_Icon/Icons/IconMinus.d.ts +0 -4
  708. package/types/components/_Icon/Icons/IconMinus.d.ts.map +0 -1
  709. package/types/examples/plasma_b2c/components/Accordion/Accordion.config.d.ts.map +0 -1
  710. package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts +0 -26
  711. package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts.map +0 -1
  712. package/types/examples/plasma_web/components/Accordion/Accordion.config.d.ts.map +0 -1
  713. package/types/examples/plasma_web/components/Accordion/Accordion.d.ts +0 -30
  714. package/types/examples/plasma_web/components/Accordion/Accordion.d.ts.map +0 -1
  715. /package/cjs/components/{Accordion/ui/AccordionItem/AccordionItem.css → _Icon/Icons/IconClose.css} +0 -0
  716. /package/es/components/{Accordion/ui/AccordionItem/AccordionItem.css → _Icon/Icons/IconClose.css} +0 -0
  717. /package/styled-components/cjs/components/{Accordion/Accordion.types.js → DatePicker/DatePickerBase.types.js} +0 -0
  718. /package/styled-components/cjs/components/{Accordion/ui/AccordionItem/AccordionItem.types.js → DatePicker/RangeDate/DatePicker.types.js} +0 -0
  719. /package/styled-components/es/components/{Accordion/Accordion.types.js → DatePicker/DatePickerBase.types.js} +0 -0
  720. /package/styled-components/es/components/{Accordion/ui/AccordionItem/AccordionItem.types.js → DatePicker/RangeDate/DatePicker.types.js} +0 -0
  721. /package/types/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_disabled}/base.d.ts +0 -0
  722. /package/types/components/{Accordion/variations/_stretching → DatePicker/RangeDate/variations/_readonly}/base.d.ts +0 -0
  723. /package/types/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_size}/base.d.ts +0 -0
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.config = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Accordion = /*#__PURE__*/require("../../../../components/Accordion");
9
- var config = exports.config = {
10
- defaults: {
11
- view: 'default',
12
- size: 'm'
13
- },
14
- variations: {
15
- view: {
16
- "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":var(", ") var(", ");", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);", ":0;"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemPadding, _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionBackground, _Accordion.accordionTokens.accordionItemBorderBottom),
17
- clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":20rem;", ":var(", ") 0rem;", ":var(--surface-clear);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":0rem !important;", ":var(--surface-clear);", ":0.125rem solid var(--surface-solid-tertiary);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemPadding, _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionBackground, _Accordion.accordionTokens.accordionItemBorderBottom)
18
- },
19
- size: {
20
- l: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.0625rem;", ":1.25rem;", ":0.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
21
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.875rem;", ":1.125rem;", ":0.375rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
22
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.6875rem;", ":0.875rem;", ":0.375rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
23
- xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.5rem;", ":0.75rem;", ":0.25rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight)
24
- }
25
- }
26
- };
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Accordion = void 0;
7
- Object.defineProperty(exports, "AccordionItem", {
8
- enumerable: true,
9
- get: function get() {
10
- return _Accordion.AccordionItem;
11
- }
12
- });
13
- var _Accordion = /*#__PURE__*/require("../../../../components/Accordion");
14
- var _engines = /*#__PURE__*/require("../../../../engines");
15
- var _Accordion2 = /*#__PURE__*/require("./Accordion.config");
16
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Accordion.accordionConfig, _Accordion2.config);
17
- var Accordion = exports.Accordion = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -1,66 +0,0 @@
1
- import * as React from 'react';
2
- import type { ComponentProps } from 'react';
3
- import type { StoryObj, Meta } from '@storybook/react';
4
- import { disableProps } from '@salutejs/plasma-sb-utils';
5
-
6
- import { mergeConfig } from '../../../../engines';
7
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
8
- import { accordionConfig } from '../../../../components/Accordion';
9
-
10
- import { config } from './Accordion.config';
11
- import { Accordion, AccordionItem } from './Accordion';
12
-
13
- const meta: Meta<typeof Accordion> = {
14
- title: 'plasma_b2c/Accordion',
15
- decorators: [WithTheme],
16
- component: Accordion,
17
- args: {
18
- singleActive: false,
19
- view: 'default',
20
- size: 'm',
21
- stretching: 'filled',
22
- type: 'arrow',
23
- disabled: false,
24
- title: 'Как оплатить заправку бонусами СберСпасибо?',
25
- body:
26
- 'После указания деталей заправки нажмите кнопку «К оплате». Откроется окно оплаты, где вы сможете списать бонусы и оплатить ими до 99% стоимости топлива',
27
- },
28
- argTypes: {
29
- ...argTypesFromConfig(mergeConfig(accordionConfig, config)),
30
- ...disableProps(['text']),
31
- stretching: {
32
- options: ['filled', 'fixed'],
33
- control: {
34
- type: 'select',
35
- },
36
- },
37
- type: {
38
- options: ['arrow', 'sign', 'clear'],
39
- control: {
40
- type: 'select',
41
- },
42
- },
43
- },
44
- };
45
-
46
- export default meta;
47
-
48
- export const Default: StoryObj<ComponentProps<typeof Accordion>> = {
49
- render: (props: ComponentProps<typeof Accordion>) => {
50
- const args = { ...props, text: undefined };
51
-
52
- return (
53
- <Accordion {...args}>
54
- <AccordionItem type={args.type} pin={args.pin} title={args.title}>
55
- {args.body}
56
- </AccordionItem>
57
- <AccordionItem type={args.type} pin={args.pin} title={args.title}>
58
- {args.body}
59
- </AccordionItem>
60
- <AccordionItem type={args.type} pin={args.pin} title={args.title}>
61
- {args.body}
62
- </AccordionItem>
63
- </Accordion>
64
- );
65
- },
66
- };
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.config = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Accordion = /*#__PURE__*/require("../../../../components/Accordion");
9
- var config = exports.config = {
10
- defaults: {
11
- view: 'default',
12
- size: 'm'
13
- },
14
- variations: {
15
- view: {
16
- "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":var(", ") var(", ");", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);", ":0;"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemPadding, _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionBackground, _Accordion.accordionTokens.accordionItemBorderBottom),
17
- clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":var(", ") 0rem;", ":var(--surface-clear);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":0rem !important;", ":var(--surface-clear);", ":0.125rem solid var(--surface-solid-tertiary);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemPadding, _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionBackground, _Accordion.accordionTokens.accordionItemBorderBottom)
18
- },
19
- size: {
20
- l: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.0625rem;", ":1.25rem;", ":0.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
21
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.875rem;", ":1.125rem;", ":0.375rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
22
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.6875rem;", ":0.875rem;", ":0.375rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
23
- xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.5rem;", ":0.75rem;", ":0.25rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Accordion.accordionTokens.accordionItemPaddingVertical, _Accordion.accordionTokens.accordionItemPaddingHorizontal, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight)
24
- },
25
- stretching: {
26
- filled: /*#__PURE__*/(0, _styledComponents.css)([""]),
27
- fixed: /*#__PURE__*/(0, _styledComponents.css)([""])
28
- }
29
- }
30
- };
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Accordion = void 0;
7
- Object.defineProperty(exports, "AccordionItem", {
8
- enumerable: true,
9
- get: function get() {
10
- return _Accordion.AccordionItem;
11
- }
12
- });
13
- var _Accordion = /*#__PURE__*/require("../../../../components/Accordion");
14
- var _engines = /*#__PURE__*/require("../../../../engines");
15
- var _Accordion2 = /*#__PURE__*/require("./Accordion.config");
16
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Accordion.accordionConfig, _Accordion2.config);
17
- var Accordion = exports.Accordion = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -1,65 +0,0 @@
1
- import * as React from 'react';
2
- import type { ComponentProps } from 'react';
3
- import type { StoryObj, Meta } from '@storybook/react';
4
- import { disableProps } from '@salutejs/plasma-sb-utils';
5
-
6
- import { mergeConfig } from '../../../../engines';
7
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
8
- import { accordionConfig } from '../../../../components/Accordion';
9
-
10
- import { config } from './Accordion.config';
11
- import { Accordion, AccordionItem } from './Accordion';
12
-
13
- const meta: Meta<typeof Accordion> = {
14
- title: 'plasma_web/Accordion',
15
- decorators: [WithTheme],
16
- component: Accordion,
17
- args: {
18
- singleActive: false,
19
- view: 'default',
20
- size: 'm',
21
- stretching: 'filled',
22
- type: 'arrow',
23
- title: 'Как оплатить заправку бонусами СберСпасибо?',
24
- body:
25
- 'После указания деталей заправки нажмите кнопку «К оплате». Откроется окно оплаты, где вы сможете списать бонусы и оплатить ими до 99% стоимости топлива',
26
- },
27
- argTypes: {
28
- ...argTypesFromConfig(mergeConfig(accordionConfig, config)),
29
- ...disableProps(['text']),
30
- stretching: {
31
- options: ['filled', 'fixed'],
32
- control: {
33
- type: 'select',
34
- },
35
- },
36
- type: {
37
- options: ['arrow', 'sign', 'clear'],
38
- control: {
39
- type: 'select',
40
- },
41
- },
42
- },
43
- };
44
-
45
- export default meta;
46
-
47
- export const Default: StoryObj<ComponentProps<typeof Accordion>> = {
48
- render: (props: ComponentProps<typeof Accordion>) => {
49
- const args = { ...props, text: undefined };
50
-
51
- return (
52
- <Accordion {...args}>
53
- <AccordionItem type={args.type} pin={args.pin} title={args.title}>
54
- {args.body}
55
- </AccordionItem>
56
- <AccordionItem type={args.type} pin={args.pin} title={args.title}>
57
- {args.body}
58
- </AccordionItem>
59
- <AccordionItem type={args.type} pin={args.pin} title={args.title}>
60
- {args.body}
61
- </AccordionItem>
62
- </Accordion>
63
- );
64
- },
65
- };
@@ -1,81 +0,0 @@
1
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
5
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import React, { Children, forwardRef, useState } from 'react';
12
- import { cx } from '../../utils';
13
- import { base } from './Accordion.styles';
14
- import { classes } from './Accordion.tokens';
15
- import { base as viewCSS } from './variations/_view/base';
16
- import { base as sizeCSS } from './variations/_size/base';
17
- import { getChildren } from './utils';
18
- export var accordionRoot = function accordionRoot(Root) {
19
- return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
20
- var size = _ref.size,
21
- view = _ref.view,
22
- _ref$stretching = _ref.stretching,
23
- stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching,
24
- _ref$defaultActiveEve = _ref.defaultActiveEventKey,
25
- defaultActiveEventKey = _ref$defaultActiveEve === void 0 ? [] : _ref$defaultActiveEve,
26
- children = _ref.children,
27
- disabled = _ref.disabled,
28
- className = _ref.className,
29
- singleActive = _ref.singleActive,
30
- onChange = _ref.onChange;
31
- var stretchingClass = classes["".concat(stretching, "Stretching")];
32
- var _useState = useState(defaultActiveEventKey),
33
- _useState2 = _slicedToArray(_useState, 2),
34
- activeIndex = _useState2[0],
35
- setActiveIndex = _useState2[1];
36
- var updateValue = function updateValue(index, value) {
37
- if (onChange) {
38
- onChange(index, value);
39
- }
40
- if (singleActive) {
41
- if (value) {
42
- setActiveIndex([index]);
43
- } else {
44
- setActiveIndex([]);
45
- }
46
- } else if (value) {
47
- setActiveIndex([index].concat(_toConsumableArray(activeIndex)));
48
- } else {
49
- var updatedActiveIndex = activeIndex.filter(function (i) {
50
- return i !== index;
51
- });
52
- setActiveIndex(updatedActiveIndex);
53
- }
54
- };
55
- var childrenArray = Children.toArray(children);
56
- return /*#__PURE__*/React.createElement(Root, {
57
- ref: outerRootRef,
58
- size: size,
59
- view: view,
60
- className: cx(stretchingClass, classes.accordionRoot, className)
61
- }, getChildren(childrenArray, activeIndex, disabled, updateValue));
62
- });
63
- };
64
- export var accordionConfig = {
65
- name: 'Accordion',
66
- tag: 'div',
67
- layout: accordionRoot,
68
- base: base,
69
- variations: {
70
- view: {
71
- css: viewCSS
72
- },
73
- size: {
74
- css: sizeCSS
75
- }
76
- },
77
- defaults: {
78
- view: 'default',
79
- size: 'm'
80
- }
81
- };
@@ -1,3 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { classes, tokens } from './Accordion.tokens';
3
- export var base = /*#__PURE__*/css(["display:flex;flex-direction:column;gap:var(", ");align-items:stretch;height:auto;background:var(", ");&.", "{width:var(", ");}&.", "{width:100%;}"], tokens.accordionGap, tokens.accordionBackground, classes.fixedStretching, tokens.accordionWidth, classes.filledStretching);
@@ -1,37 +0,0 @@
1
- export 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
- export 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
- };
@@ -1,3 +0,0 @@
1
- export { accordionRoot, accordionConfig } from './Accordion';
2
- export { AccordionItem } from './ui/AccordionItem/AccordionItem';
3
- export { tokens as accordionTokens, classes as accordionClasses } from './Accordion.tokens';
@@ -1,103 +0,0 @@
1
- var _StyledMinus, _StyledArrow;
2
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
6
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
7
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
- import React, { useState, useRef, useEffect } from 'react';
9
- import { convertRoundnessMatrix } from '../../../../utils/roundness';
10
- import { classes, tokens } from '../../Accordion.tokens';
11
- import { StyledAccordionItem, StyledAccordionHeader, StyledAccordionBody, StyledAccordionTitle, StyledAccordionContentLeft, StyledAccordionHeaderLeft, StyledAccordionContentRight, StyledArrow, StyledMinus, StyledPlus, StyledAccordionBodyAnimate } from './AccordionItem.styles';
12
- export var AccordionItem = function AccordionItem(_ref) {
13
- var value = _ref.value,
14
- contentRight = _ref.contentRight,
15
- contentLeft = _ref.contentLeft,
16
- title = _ref.title,
17
- _ref$pin = _ref.pin,
18
- pin = _ref$pin === void 0 ? 'square-square' : _ref$pin,
19
- children = _ref.children,
20
- _ref$type = _ref.type,
21
- type = _ref$type === void 0 ? 'sign' : _ref$type,
22
- index = _ref.index,
23
- eventKey = _ref.eventKey,
24
- disabled = _ref.disabled,
25
- onChange = _ref.onChange;
26
- var key = eventKey !== null && eventKey !== void 0 ? eventKey : index;
27
- var _useState = useState(),
28
- _useState2 = _slicedToArray(_useState, 2),
29
- leftPadding = _useState2[0],
30
- setLeftPadding = _useState2[1];
31
- var handleOpen = function handleOpen() {
32
- if (disabled) {
33
- return;
34
- }
35
- if (onChange) {
36
- onChange(key, !value);
37
- }
38
- };
39
- var onKeyPress = function onKeyPress(event) {
40
- if (disabled) {
41
- return;
42
- }
43
- event.persist();
44
- if (event.keyCode === 13 || event.keyCode === 32) {
45
- handleOpen();
46
- }
47
- };
48
- var leftContentRef = useRef(null);
49
- useEffect(function () {
50
- var _leftContentRef$curre, _leftContentRef$curre2;
51
- 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;
52
- var leftPaddingBody = leftContentWidth ? "calc(".concat(leftContentWidth, "px + var(").concat(tokens.accordionItemGap, "))") : 0;
53
- setLeftPadding(leftPaddingBody);
54
- }, [value, type, leftContentRef, setLeftPadding]);
55
- var openedBodyClass = value ? classes.accordionItemShowBody : undefined;
56
- var StyledAnimationPLus = function StyledAnimationPLus() {
57
- return /*#__PURE__*/React.createElement(StyledPlus, null, _StyledMinus || (_StyledMinus = /*#__PURE__*/React.createElement(StyledMinus, {
58
- size: "xs",
59
- color: "inhert"
60
- })), /*#__PURE__*/React.createElement(StyledMinus, {
61
- size: "xs",
62
- color: "inhert",
63
- className: openedBodyClass !== null && openedBodyClass !== void 0 ? openedBodyClass : classes.accordionPlusAnimationElement
64
- }));
65
- };
66
- var accordionBorderRadius = convertRoundnessMatrix(pin, "var(".concat(tokens.accordionItemBorderRadius, ")"), '1.5rem');
67
- var disabledClass = disabled ? classes.accordionDisabled : '';
68
- var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/React.createElement(StyledArrow, {
69
- size: "xs",
70
- color: "inhert"
71
- })) : undefined;
72
- var leftContentRotate = type === 'arrow' && value ? classes.accordionItemShowBody : undefined;
73
- var rightContent = contentRight !== null && contentRight !== void 0 ? contentRight : type === 'sign' ? /*#__PURE__*/React.createElement(StyledAnimationPLus, null) : undefined;
74
- var rightContentRotate = type === 'sign' && value ? classes.accordionItemShowBody : undefined;
75
- return /*#__PURE__*/React.createElement(StyledAccordionItem, {
76
- className: classes.accordionItem,
77
- key: key,
78
- style: {
79
- borderRadius: accordionBorderRadius
80
- }
81
- }, /*#__PURE__*/React.createElement(StyledAccordionHeader, {
82
- role: "tab",
83
- tabIndex: 0,
84
- onClick: handleOpen,
85
- className: disabledClass,
86
- "aria-expanded": "true",
87
- "aria-controls": "accordion-item-section".concat(key),
88
- id: "accordion-item-".concat(key),
89
- onKeyDown: onKeyPress
90
- }, /*#__PURE__*/React.createElement(StyledAccordionHeaderLeft, null, leftContent && /*#__PURE__*/React.createElement(StyledAccordionContentLeft, {
91
- ref: leftContentRef,
92
- className: leftContentRotate
93
- }, leftContent), /*#__PURE__*/React.createElement(StyledAccordionTitle, null, title)), /*#__PURE__*/React.createElement(StyledAccordionContentRight, {
94
- className: rightContentRotate
95
- }, rightContent && rightContent)), /*#__PURE__*/React.createElement(StyledAccordionBodyAnimate, {
96
- "aria-labelledby": "accordion-item-".concat(key),
97
- id: "accordion-item-section".concat(key),
98
- className: openedBodyClass,
99
- style: {
100
- paddingLeft: "".concat(leftPadding)
101
- }
102
- }, /*#__PURE__*/React.createElement(StyledAccordionBody, null, children)));
103
- };
@@ -1,42 +0,0 @@
1
- import styled from 'styled-components';
2
- import { IconChevronDownFill, IconMinus } from '../../../_Icon';
3
- import { classes, tokens } from '../../Accordion.tokens';
4
- import { addFocus } from '../../../../mixins';
5
- export var StyledAccordionItem = /*#__PURE__*/styled.div.withConfig({
6
- componentId: "plasma-new-hope__sc-20ij9z-0"
7
- })(["background:var(", ");border-bottom:var(", ");&:last-child{border-bottom:none;}"], tokens.accordionItemBackground, tokens.accordionItemBorderBottom);
8
- export var StyledAccordionHeader = /*#__PURE__*/styled.div.withConfig({
9
- componentId: "plasma-new-hope__sc-20ij9z-1"
10
- })(["width:100%;border:none;padding:var(", ");display:flex;gap:var(", ");justify-content:space-between;align-items:center;background:none;box-sizing:border-box;cursor:pointer;&.", "{opacity:0.4;cursor:not-allowed;}&:focus{outline:none;}", ""], tokens.accordionItemPadding, tokens.accordionItemGap, classes.accordionDisabled, /*#__PURE__*/addFocus({
11
- outlineOffset: '0.125rem',
12
- outlineSize: '0.125rem',
13
- outlineRadius: '0',
14
- outlineColor: /*#__PURE__*/"var(".concat(tokens.accordionItemFocus, ")")
15
- }));
16
- export var StyledAccordionHeaderLeft = /*#__PURE__*/styled.div.withConfig({
17
- componentId: "plasma-new-hope__sc-20ij9z-2"
18
- })(["display:flex;gap:var(", ");justify-content:space-between;align-items:center;"], tokens.accordionItemGap);
19
- export var StyledAccordionContentRight = /*#__PURE__*/styled.div.withConfig({
20
- componentId: "plasma-new-hope__sc-20ij9z-3"
21
- })(["transition:0.2s;transform:rotate(90deg);&.", "{transition:0.2s;transform:rotate(0deg);}"], classes.accordionItemShowBody);
22
- export var StyledAccordionContentLeft = /*#__PURE__*/styled.div.withConfig({
23
- componentId: "plasma-new-hope__sc-20ij9z-4"
24
- })(["transition:0.2s;display:flex;align-items:center;&.", "{transition:0.2s;transform:rotate(180deg);}"], classes.accordionItemShowBody);
25
- export var StyledAccordionTitle = /*#__PURE__*/styled.div.withConfig({
26
- componentId: "plasma-new-hope__sc-20ij9z-5"
27
- })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-weight:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.accordionItemTitleColor, tokens.accordionItemTitleFontFamily, tokens.accordionItemTitleFontSize, tokens.accordionItemTitleFontWeight, tokens.accordionItemTitleFontStyle, tokens.accordionItemTitleLetterSpacing, tokens.accordionItemTitleLineHeight);
28
- export var StyledAccordionBodyAnimate = /*#__PURE__*/styled.div.withConfig({
29
- componentId: "plasma-new-hope__sc-20ij9z-6"
30
- })(["display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.2s ease-out;overflow:hidden;&.", "{grid-template-rows:1fr;padding-bottom:var(", ");&.", "{transition:0.2s;transform:rotate(0deg);}}"], classes.accordionItemShowBody, tokens.accordionItemPaddingVertical, classes.accordionPlusAnimationElement);
31
- export var StyledAccordionBody = /*#__PURE__*/styled.div.withConfig({
32
- componentId: "plasma-new-hope__sc-20ij9z-7"
33
- })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-weight:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");overflow:hidden;padding-right:var(", ");padding-left:var(", ");"], tokens.accordionItemTextColor, tokens.accordionItemTextFontFamily, tokens.accordionItemTextFontSize, tokens.accordionItemTextFontWeight, tokens.accordionItemTextFontStyle, tokens.accordionItemTextLetterSpacing, tokens.accordionItemTextLineHeight, tokens.accordionItemPaddingHorizontal, tokens.accordionItemPaddingHorizontal);
34
- export var StyledArrow = /*#__PURE__*/styled(IconChevronDownFill).withConfig({
35
- componentId: "plasma-new-hope__sc-20ij9z-8"
36
- })(["pointer-events:none;user-select:none;color:var(", ");"], tokens.accordionItemTextColor);
37
- export var StyledMinus = /*#__PURE__*/styled(IconMinus).withConfig({
38
- componentId: "plasma-new-hope__sc-20ij9z-9"
39
- })(["pointer-events:none;user-select:none;color:var(", ");display:flex;align-items:center;position:absolute;top:0;left:0;&.", "{transition:0.2s;transform:rotate(90deg);}&.", "{transition:0.2s;transform:rotate(0deg);}"], tokens.accordionItemTextColor, classes.accordionPlusAnimationElement, classes.accordionItemShowBody);
40
- export var StyledPlus = /*#__PURE__*/styled.div.withConfig({
41
- componentId: "plasma-new-hope__sc-20ij9z-10"
42
- })(["position:relative;height:1rem;display:flex;align-items:center;justify-content:center;width:1rem;"]);
@@ -1,21 +0,0 @@
1
- import { Children, cloneElement, isValidElement } from 'react';
2
- export var updatePropsRecursively = function updatePropsRecursively(children, activeIndex, disabled, updateValue) {
3
- return Children.map(children || [], function (child, index) {
4
- if (! /*#__PURE__*/isValidElement(child)) {
5
- return child;
6
- }
7
- var props = {
8
- index: index,
9
- value: !!((activeIndex === null || activeIndex === void 0 ? void 0 : activeIndex.findIndex(function (i) {
10
- var _child$props$eventKey;
11
- return i === ((_child$props$eventKey = child.props.eventKey) !== null && _child$props$eventKey !== void 0 ? _child$props$eventKey : index);
12
- })) !== -1),
13
- disabled: disabled,
14
- onChange: updateValue
15
- };
16
- return /*#__PURE__*/cloneElement(child, props);
17
- });
18
- };
19
- export var getChildren = function getChildren(children, activeIndex, disabled, updateValue) {
20
- return updatePropsRecursively(children, activeIndex, disabled, updateValue);
21
- };
@@ -1,2 +0,0 @@
1
- import { css } from 'styled-components';
2
- export var base = /*#__PURE__*/css([""]);
@@ -1,6 +0,0 @@
1
- [
2
- "--plasma-accordion-item-padding-vertical",
3
- "--plasma-accordion-item-padding-horizontal",
4
- "--plasma-accordion-item-gap",
5
- "--plasma-accordion-item-border-radius"
6
- ]
@@ -1,2 +0,0 @@
1
- import { css } from 'styled-components';
2
- export var base = /*#__PURE__*/css([""]);
@@ -1,2 +0,0 @@
1
- import { css } from 'styled-components';
2
- export var base = /*#__PURE__*/css([""]);
@@ -1,8 +0,0 @@
1
- [
2
- "--plasma-accordion-width",
3
- "--plasma-accordion-gap",
4
- "--plasma-accordion-item-padding",
5
- "--plasma-accordion-background",
6
- "--plasma-accordion-item-background",
7
- "--plasma-accordion-item-border-bottom"
8
- ]
@@ -1,16 +0,0 @@
1
- var _path;
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- import React from 'react';
4
- export var ChevronDownFill = function ChevronDownFill(props) {
5
- return /*#__PURE__*/React.createElement("svg", _extends({
6
- width: "100%",
7
- viewBox: "0 0 16 16",
8
- fill: "none"
9
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
- id: "path",
11
- 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",
12
- fillRule: "evenodd",
13
- fill: "currentColor",
14
- clipRule: "evenodd"
15
- })));
16
- };
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { ChevronDownFill } from '../Icon.assets/ChevronDownFill';
3
- import { IconRoot } from '../IconRoot';
4
- export var IconChevronDownFill = function IconChevronDownFill(_ref) {
5
- var _ref$size = _ref.size,
6
- size = _ref$size === void 0 ? 'xs' : _ref$size,
7
- color = _ref.color,
8
- className = _ref.className;
9
- return /*#__PURE__*/React.createElement(IconRoot, {
10
- className: className,
11
- size: size,
12
- color: color,
13
- icon: ChevronDownFill
14
- });
15
- };