@salutejs/plasma-new-hope 0.197.0-canary.1572.11971256317.0 → 0.197.0-canary.1588.11972699441.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (359) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +2 -1
  2. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  3. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  4. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  5. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  6. package/cjs/components/Calendar/store/reducer.js +2 -2
  7. package/cjs/components/Calendar/store/reducer.js.map +1 -1
  8. package/cjs/components/Combobox/ComboboxNew/Combobox.css +2 -1
  9. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +2 -1
  10. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +2 -1
  11. package/cjs/components/DatePicker/RangeDate/RangeDate.css +2 -1
  12. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +2 -1
  13. package/cjs/components/DatePicker/SingleDate/SingleDate.css +2 -1
  14. package/cjs/components/Pagination/Pagination.css +2 -1
  15. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -1
  16. package/cjs/components/Range/Range.css +2 -1
  17. package/cjs/components/Select/Select.css +2 -1
  18. package/cjs/components/Select/ui/Inner/Inner.css +2 -1
  19. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +2 -1
  20. package/cjs/components/Select/ui/Target/Target.css +2 -1
  21. package/cjs/components/Select/ui/Target/Target.js +2 -1
  22. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  23. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -1
  24. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
  25. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  26. package/cjs/components/Slider/Slider.css +2 -1
  27. package/cjs/components/Slider/components/Double/Double.css +2 -1
  28. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +2 -1
  29. package/cjs/components/TextField/TextField.js +7 -4
  30. package/cjs/components/TextField/TextField.js.map +1 -1
  31. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +2 -1
  32. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +17 -3
  33. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  34. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +7 -1
  35. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  36. package/cjs/components/TextField/ui/TextFieldChip/{TextFieldChip.styles_1y8n7la.css → TextFieldChip.styles_1yosnxc.css} +1 -0
  37. package/cjs/components/Typography/Body/Body.css +1 -1
  38. package/cjs/components/Typography/Old/Button/Button.css +1 -1
  39. package/cjs/components/Typography/Old/Paragraph/Paragraph.css +1 -1
  40. package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  41. package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js.map +1 -1
  42. package/{es/components/Typography/Old/Paragraph/Paragraph.styles_179bahu.css → cjs/components/Typography/Old/Paragraph/Paragraph.styles_f6q9s8.css} +1 -1
  43. package/cjs/components/Typography/Old/Subtitle/Subtitle.css +1 -1
  44. package/cjs/components/Typography/Old/Subtitle/Subtitle.js +7 -1
  45. package/cjs/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
  46. package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
  47. package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js.map +1 -1
  48. package/{es/components/Typography/Old/Subtitle/Subtitle.styles_1plleej.css → cjs/components/Typography/Old/Subtitle/Subtitle.styles_g6d0r2.css} +1 -1
  49. package/cjs/components/Typography/Old/TypographyOld.js +4 -2
  50. package/cjs/components/Typography/Old/TypographyOld.js.map +1 -1
  51. package/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
  52. package/cjs/components/Typography/Old/TypographyOld.styles.js.map +1 -1
  53. package/{es/components/Typography/Old/TypographyOld.styles_17w0rtq.css → cjs/components/Typography/Old/TypographyOld.styles_168abbx.css} +1 -1
  54. package/cjs/components/Typography/Old/Underline/Underline.css +1 -1
  55. package/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
  56. package/cjs/components/Typography/Old/Underline/Underline.styles.js.map +1 -1
  57. package/cjs/components/Typography/Old/Underline/{Underline.styles_vsz834.css → Underline.styles_1x2vb5e.css} +1 -1
  58. package/cjs/components/Typography/Typography.js +4 -2
  59. package/cjs/components/Typography/Typography.js.map +1 -1
  60. package/cjs/components/Typography/Typography.styles.js +1 -1
  61. package/cjs/components/Typography/Typography.styles.js.map +1 -1
  62. package/cjs/components/Typography/{Typography.styles_6mr47g.css → Typography.styles_fa07dt.css} +1 -1
  63. package/cjs/components/Typography/tokens.js +1 -0
  64. package/cjs/components/Typography/tokens.js.map +1 -1
  65. package/cjs/index.css +7 -6
  66. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  67. package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  68. package/emotion/cjs/components/Calendar/store/reducer.js +2 -2
  69. package/emotion/cjs/components/Select/ui/Target/Target.js +2 -1
  70. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
  71. package/emotion/cjs/components/TextField/TextField.js +8 -5
  72. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +13 -3
  73. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +17 -3
  74. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +12 -3
  75. package/emotion/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  76. package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.js +7 -1
  77. package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
  78. package/emotion/cjs/components/Typography/Old/TypographyOld.js +4 -2
  79. package/emotion/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
  80. package/emotion/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
  81. package/emotion/cjs/components/Typography/Typography.js +4 -2
  82. package/emotion/cjs/components/Typography/Typography.styles.js +1 -1
  83. package/emotion/cjs/components/Typography/Typography.template-doc.mdx +4 -0
  84. package/emotion/cjs/components/Typography/tokens.js +1 -0
  85. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +8 -1
  86. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -0
  87. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +8 -1
  88. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
  89. package/emotion/cjs/examples/typograpy/components/Body/Body.stories.tsx +9 -1
  90. package/emotion/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +9 -1
  91. package/emotion/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +9 -1
  92. package/emotion/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +9 -1
  93. package/emotion/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +9 -1
  94. package/emotion/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +9 -1
  95. package/emotion/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +9 -1
  96. package/emotion/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +9 -1
  97. package/emotion/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +9 -1
  98. package/emotion/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +9 -1
  99. package/emotion/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +11 -1
  100. package/emotion/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +9 -1
  101. package/emotion/cjs/examples/typograpy/components/Text/Text.stories.tsx +9 -1
  102. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  103. package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  104. package/emotion/es/components/Calendar/store/reducer.js +2 -2
  105. package/emotion/es/components/Select/ui/Target/Target.js +2 -1
  106. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
  107. package/emotion/es/components/TextField/TextField.js +8 -5
  108. package/emotion/es/components/TextField/TextField.template-doc.mdx +13 -3
  109. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +18 -4
  110. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +11 -2
  111. package/emotion/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  112. package/emotion/es/components/Typography/Old/Subtitle/Subtitle.js +7 -1
  113. package/emotion/es/components/Typography/Old/Subtitle/Subtitle.styles.js +2 -2
  114. package/emotion/es/components/Typography/Old/TypographyOld.js +4 -2
  115. package/emotion/es/components/Typography/Old/TypographyOld.styles.js +1 -1
  116. package/emotion/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
  117. package/emotion/es/components/Typography/Typography.js +4 -2
  118. package/emotion/es/components/Typography/Typography.styles.js +1 -1
  119. package/emotion/es/components/Typography/Typography.template-doc.mdx +4 -0
  120. package/emotion/es/components/Typography/tokens.js +1 -0
  121. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +8 -1
  122. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -0
  123. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +8 -1
  124. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
  125. package/emotion/es/examples/typograpy/components/Body/Body.stories.tsx +9 -1
  126. package/emotion/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +9 -1
  127. package/emotion/es/examples/typograpy/components/Heading/Heading.stories.tsx +9 -1
  128. package/emotion/es/examples/typograpy/components/Old/Body/Body.stories.tsx +9 -1
  129. package/emotion/es/examples/typograpy/components/Old/Button/Button.stories.tsx +9 -1
  130. package/emotion/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +9 -1
  131. package/emotion/es/examples/typograpy/components/Old/Display/Display.stories.tsx +9 -1
  132. package/emotion/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +9 -1
  133. package/emotion/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +9 -1
  134. package/emotion/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +9 -1
  135. package/emotion/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +11 -1
  136. package/emotion/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +9 -1
  137. package/emotion/es/examples/typograpy/components/Text/Text.stories.tsx +9 -1
  138. package/es/components/Autocomplete/Autocomplete.css +2 -1
  139. package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  140. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  141. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  142. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  143. package/es/components/Calendar/store/reducer.js +2 -2
  144. package/es/components/Calendar/store/reducer.js.map +1 -1
  145. package/es/components/Combobox/ComboboxNew/Combobox.css +2 -1
  146. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +2 -1
  147. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +2 -1
  148. package/es/components/DatePicker/RangeDate/RangeDate.css +2 -1
  149. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +2 -1
  150. package/es/components/DatePicker/SingleDate/SingleDate.css +2 -1
  151. package/es/components/Pagination/Pagination.css +2 -1
  152. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -1
  153. package/es/components/Range/Range.css +2 -1
  154. package/es/components/Select/Select.css +2 -1
  155. package/es/components/Select/ui/Inner/Inner.css +2 -1
  156. package/es/components/Select/ui/Inner/ui/Item/Item.css +2 -1
  157. package/es/components/Select/ui/Target/Target.css +2 -1
  158. package/es/components/Select/ui/Target/Target.js +2 -1
  159. package/es/components/Select/ui/Target/Target.js.map +1 -1
  160. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -1
  161. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
  162. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  163. package/es/components/Slider/Slider.css +2 -1
  164. package/es/components/Slider/components/Double/Double.css +2 -1
  165. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +2 -1
  166. package/es/components/TextField/TextField.js +7 -4
  167. package/es/components/TextField/TextField.js.map +1 -1
  168. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +2 -1
  169. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +18 -4
  170. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  171. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +7 -2
  172. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  173. package/es/components/TextField/ui/TextFieldChip/{TextFieldChip.styles_1y8n7la.css → TextFieldChip.styles_1yosnxc.css} +1 -0
  174. package/es/components/Typography/Body/Body.css +1 -1
  175. package/es/components/Typography/Old/Button/Button.css +1 -1
  176. package/es/components/Typography/Old/Paragraph/Paragraph.css +1 -1
  177. package/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  178. package/es/components/Typography/Old/Paragraph/Paragraph.styles.js.map +1 -1
  179. package/{cjs/components/Typography/Old/Paragraph/Paragraph.styles_179bahu.css → es/components/Typography/Old/Paragraph/Paragraph.styles_f6q9s8.css} +1 -1
  180. package/es/components/Typography/Old/Subtitle/Subtitle.css +1 -1
  181. package/es/components/Typography/Old/Subtitle/Subtitle.js +7 -1
  182. package/es/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
  183. package/es/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
  184. package/es/components/Typography/Old/Subtitle/Subtitle.styles.js.map +1 -1
  185. package/{cjs/components/Typography/Old/Subtitle/Subtitle.styles_1plleej.css → es/components/Typography/Old/Subtitle/Subtitle.styles_g6d0r2.css} +1 -1
  186. package/es/components/Typography/Old/TypographyOld.js +4 -2
  187. package/es/components/Typography/Old/TypographyOld.js.map +1 -1
  188. package/es/components/Typography/Old/TypographyOld.styles.js +1 -1
  189. package/es/components/Typography/Old/TypographyOld.styles.js.map +1 -1
  190. package/{cjs/components/Typography/Old/TypographyOld.styles_17w0rtq.css → es/components/Typography/Old/TypographyOld.styles_168abbx.css} +1 -1
  191. package/es/components/Typography/Old/Underline/Underline.css +1 -1
  192. package/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
  193. package/es/components/Typography/Old/Underline/Underline.styles.js.map +1 -1
  194. package/es/components/Typography/Old/Underline/{Underline.styles_vsz834.css → Underline.styles_1x2vb5e.css} +1 -1
  195. package/es/components/Typography/Typography.js +4 -2
  196. package/es/components/Typography/Typography.js.map +1 -1
  197. package/es/components/Typography/Typography.styles.js +1 -1
  198. package/es/components/Typography/Typography.styles.js.map +1 -1
  199. package/es/components/Typography/{Typography.styles_6mr47g.css → Typography.styles_fa07dt.css} +1 -1
  200. package/es/components/Typography/tokens.js +1 -0
  201. package/es/components/Typography/tokens.js.map +1 -1
  202. package/es/index.css +7 -6
  203. package/package.json +2 -2
  204. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  205. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  206. package/styled-components/cjs/components/Calendar/store/reducer.js +2 -2
  207. package/styled-components/cjs/components/Select/ui/Target/Target.js +2 -1
  208. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
  209. package/styled-components/cjs/components/TextField/TextField.js +7 -4
  210. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +13 -3
  211. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +17 -3
  212. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +10 -2
  213. package/styled-components/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  214. package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.js +7 -1
  215. package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
  216. package/styled-components/cjs/components/Typography/Old/TypographyOld.js +4 -2
  217. package/styled-components/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
  218. package/styled-components/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
  219. package/styled-components/cjs/components/Typography/Typography.js +4 -2
  220. package/styled-components/cjs/components/Typography/Typography.styles.js +1 -1
  221. package/styled-components/cjs/components/Typography/Typography.template-doc.mdx +4 -0
  222. package/styled-components/cjs/components/Typography/tokens.js +1 -0
  223. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +8 -1
  224. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -0
  225. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +8 -1
  226. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
  227. package/styled-components/cjs/examples/typograpy/components/Body/Body.stories.tsx +9 -1
  228. package/styled-components/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +9 -1
  229. package/styled-components/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +9 -1
  230. package/styled-components/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +9 -1
  231. package/styled-components/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +9 -1
  232. package/styled-components/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +9 -1
  233. package/styled-components/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +9 -1
  234. package/styled-components/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +9 -1
  235. package/styled-components/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +9 -1
  236. package/styled-components/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +9 -1
  237. package/styled-components/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +11 -1
  238. package/styled-components/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +9 -1
  239. package/styled-components/cjs/examples/typograpy/components/Text/Text.stories.tsx +9 -1
  240. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  241. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  242. package/styled-components/es/components/Calendar/store/reducer.js +2 -2
  243. package/styled-components/es/components/Select/ui/Target/Target.js +2 -1
  244. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
  245. package/styled-components/es/components/TextField/TextField.js +7 -4
  246. package/styled-components/es/components/TextField/TextField.template-doc.mdx +13 -3
  247. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +18 -4
  248. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +9 -1
  249. package/styled-components/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  250. package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.js +7 -1
  251. package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.styles.js +2 -2
  252. package/styled-components/es/components/Typography/Old/TypographyOld.js +4 -2
  253. package/styled-components/es/components/Typography/Old/TypographyOld.styles.js +1 -1
  254. package/styled-components/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
  255. package/styled-components/es/components/Typography/Typography.js +4 -2
  256. package/styled-components/es/components/Typography/Typography.styles.js +1 -1
  257. package/styled-components/es/components/Typography/Typography.template-doc.mdx +4 -0
  258. package/styled-components/es/components/Typography/tokens.js +1 -0
  259. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +8 -1
  260. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -0
  261. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +8 -1
  262. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
  263. package/styled-components/es/examples/typograpy/components/Body/Body.stories.tsx +9 -1
  264. package/styled-components/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +9 -1
  265. package/styled-components/es/examples/typograpy/components/Heading/Heading.stories.tsx +9 -1
  266. package/styled-components/es/examples/typograpy/components/Old/Body/Body.stories.tsx +9 -1
  267. package/styled-components/es/examples/typograpy/components/Old/Button/Button.stories.tsx +9 -1
  268. package/styled-components/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +9 -1
  269. package/styled-components/es/examples/typograpy/components/Old/Display/Display.stories.tsx +9 -1
  270. package/styled-components/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +9 -1
  271. package/styled-components/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +9 -1
  272. package/styled-components/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +9 -1
  273. package/styled-components/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +11 -1
  274. package/styled-components/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +9 -1
  275. package/styled-components/es/examples/typograpy/components/Text/Text.stories.tsx +9 -1
  276. package/types/components/Autocomplete/Autocomplete.types.d.ts +3 -2
  277. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  278. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +16 -0
  279. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  280. package/types/components/Calendar/store/reducer.d.ts +1 -1
  281. package/types/components/Calendar/store/reducer.d.ts.map +1 -1
  282. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +16 -0
  283. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  284. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +16 -0
  285. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  286. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +6 -0
  287. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  288. package/types/components/Range/Range.styles.d.ts +16 -0
  289. package/types/components/Range/Range.styles.d.ts.map +1 -1
  290. package/types/components/Select/Select.types.d.ts +5 -0
  291. package/types/components/Select/Select.types.d.ts.map +1 -1
  292. package/types/components/Select/ui/Target/Target.d.ts +1 -1
  293. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  294. package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
  295. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  296. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  297. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +16 -0
  298. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  299. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
  300. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  301. package/types/components/Slider/components/Double/Double.styles.d.ts +16 -0
  302. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  303. package/types/components/TextField/TextField.d.ts.map +1 -1
  304. package/types/components/TextField/TextField.types.d.ts +8 -0
  305. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  306. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
  307. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +1 -0
  308. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +1 -1
  309. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +5 -1
  310. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +1 -1
  311. package/types/components/Typography/Body/Body.d.ts +2 -0
  312. package/types/components/Typography/Body/Body.d.ts.map +1 -1
  313. package/types/components/Typography/Dspl/Dspl.d.ts +2 -0
  314. package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
  315. package/types/components/Typography/Heading/Heading.d.ts +2 -0
  316. package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
  317. package/types/components/Typography/Old/Paragraph/Paragraph.styles.d.ts.map +1 -1
  318. package/types/components/Typography/Old/Subtitle/Subtitle.d.ts.map +1 -1
  319. package/types/components/Typography/Old/Subtitle/Subtitle.styles.d.ts.map +1 -1
  320. package/types/components/Typography/Old/TypographyOld.d.ts.map +1 -1
  321. package/types/components/Typography/Old/TypographyOld.styles.d.ts.map +1 -1
  322. package/types/components/Typography/Old/Underline/Underline.styles.d.ts.map +1 -1
  323. package/types/components/Typography/Text/Text.d.ts +2 -0
  324. package/types/components/Typography/Text/Text.d.ts.map +1 -1
  325. package/types/components/Typography/Typography.d.ts +1 -0
  326. package/types/components/Typography/Typography.d.ts.map +1 -1
  327. package/types/components/Typography/Typography.styles.d.ts.map +1 -1
  328. package/types/components/Typography/Typography.types.d.ts +1 -0
  329. package/types/components/Typography/Typography.types.d.ts.map +1 -1
  330. package/types/components/Typography/tokens.d.ts +1 -0
  331. package/types/components/Typography/tokens.d.ts.map +1 -1
  332. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +553 -3
  333. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  334. package/types/examples/plasma_b2c/components/Editable/Editable.d.ts +4 -0
  335. package/types/examples/plasma_b2c/components/Editable/Editable.d.ts.map +1 -1
  336. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +16 -0
  337. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  338. package/types/examples/plasma_b2c/components/Select/Select.d.ts +6 -0
  339. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  340. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +16 -0
  341. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  342. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +553 -3
  343. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  344. package/types/examples/plasma_web/components/Editable/Editable.d.ts +4 -0
  345. package/types/examples/plasma_web/components/Editable/Editable.d.ts.map +1 -1
  346. package/types/examples/plasma_web/components/Mask/Mask.d.ts +16 -0
  347. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  348. package/types/examples/plasma_web/components/Select/Select.d.ts +6 -0
  349. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  350. package/types/examples/plasma_web/components/TextField/TextField.d.ts +16 -0
  351. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  352. package/types/examples/typograpy/components/Body/Body.d.ts +1 -0
  353. package/types/examples/typograpy/components/Body/Body.d.ts.map +1 -1
  354. package/types/examples/typograpy/components/Dspl/Dspl.d.ts +1 -0
  355. package/types/examples/typograpy/components/Dspl/Dspl.d.ts.map +1 -1
  356. package/types/examples/typograpy/components/Heading/Heading.d.ts +1 -0
  357. package/types/examples/typograpy/components/Heading/Heading.d.ts.map +1 -1
  358. package/types/examples/typograpy/components/Text/Text.d.ts +1 -0
  359. package/types/examples/typograpy/components/Text/Text.d.ts.map +1 -1
@@ -103,6 +103,11 @@ const meta: Meta<StorySelectProps> = {
103
103
  },
104
104
  if: { arg: 'required', truthy: false },
105
105
  },
106
+ chipType: {
107
+ control: 'select',
108
+ options: ['default', 'text'],
109
+ if: { arg: 'target', eq: 'textfield-like' },
110
+ },
106
111
  },
107
112
  args: {
108
113
  target: 'textfield-like',
@@ -120,6 +125,7 @@ const meta: Meta<StorySelectProps> = {
120
125
  optional: false,
121
126
  required: false,
122
127
  requiredPlacement: 'right',
128
+ chipType: 'default',
123
129
  },
124
130
  parameters: {
125
131
  controls: {
@@ -143,6 +149,7 @@ const meta: Meta<StorySelectProps> = {
143
149
  'optional',
144
150
  'required',
145
151
  'requiredPlacement',
152
+ 'chipType',
146
153
  ],
147
154
  },
148
155
  },
@@ -381,7 +388,7 @@ const SingleStory = (args: StorySelectProps) => {
381
388
  export const Single: StoryObj<StorySelectProps> = {
382
389
  parameters: {
383
390
  controls: {
384
- exclude: ['chipView', 'isTargetAmount'],
391
+ exclude: ['chipView', 'isTargetAmount', 'chipType'],
385
392
  },
386
393
  },
387
394
  render: (args) => <SingleStory {...args} />,
@@ -134,6 +134,10 @@ const meta: Meta<typeof TextField> = {
134
134
  control: { type: 'text' },
135
135
  if: { arg: 'hasHint', truthy: true },
136
136
  },
137
+ chipType: {
138
+ control: 'select',
139
+ options: ['default', 'text'],
140
+ },
137
141
  },
138
142
  };
139
143
 
@@ -233,6 +237,11 @@ export const Default: StoryObj<StoryPropsDefault> = {
233
237
  hintWidth: '10rem',
234
238
  hintHasArrow: true,
235
239
  },
240
+ parameters: {
241
+ controls: {
242
+ exclude: ['chipType'],
243
+ },
244
+ },
236
245
  render: (args) => <StoryDemo {...args} />,
237
246
  };
238
247
 
@@ -288,6 +297,7 @@ export const Chips: StoryObj<StoryPropsChips> = {
288
297
  args: {
289
298
  ...Default.args,
290
299
  chips: ['1 value', '2 value', '3 value', '4 value'],
300
+ chipType: 'default',
291
301
  },
292
302
  render: (args) => <StoryChips {...args} />,
293
303
  };
@@ -12,8 +12,16 @@ const meta: Meta<typeof Body> = {
12
12
  title: 'typography/Body',
13
13
  decorators: [WithTheme],
14
14
  component: Body,
15
- argTypes: argTypesFromConfig(mergeConfig(bodyConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(bodyConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  bold: false,
19
27
  },
@@ -12,8 +12,16 @@ const meta: Meta<typeof Dspl> = {
12
12
  title: 'typography/Dspl',
13
13
  decorators: [WithTheme],
14
14
  component: Dspl,
15
- argTypes: argTypesFromConfig(mergeConfig(dsplConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(dsplConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  bold: false,
19
27
  },
@@ -12,8 +12,16 @@ const meta: Meta<typeof Heading> = {
12
12
  title: 'typography/Heading',
13
13
  decorators: [WithTheme],
14
14
  component: Heading,
15
- argTypes: argTypesFromConfig(mergeConfig(dsplConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(dsplConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  bold: false,
19
27
  },
@@ -12,8 +12,16 @@ const meta: Meta<typeof OldBody> = {
12
12
  title: 'typography/Old/Body',
13
13
  decorators: [WithTheme],
14
14
  component: OldBody,
15
- argTypes: argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  },
19
27
  };
@@ -12,8 +12,16 @@ const meta: Meta<typeof Button> = {
12
12
  title: 'typography/Old/Button',
13
13
  decorators: [WithTheme],
14
14
  component: Button,
15
- argTypes: argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  },
19
27
  };
@@ -12,8 +12,16 @@ const meta: Meta<typeof Caption> = {
12
12
  title: 'typography/Old/Caption',
13
13
  decorators: [WithTheme],
14
14
  component: Caption,
15
- argTypes: argTypesFromConfig(mergeConfig(captionConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(captionConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  },
19
27
  };
@@ -12,8 +12,16 @@ const meta: Meta<typeof Display> = {
12
12
  title: 'typography/Old/Display',
13
13
  decorators: [WithTheme],
14
14
  component: Display,
15
- argTypes: argTypesFromConfig(mergeConfig(displayConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(displayConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  },
19
27
  };
@@ -12,8 +12,16 @@ const meta: Meta<typeof Footnote> = {
12
12
  title: 'typography/Old/Footnote',
13
13
  decorators: [WithTheme],
14
14
  component: Footnote,
15
- argTypes: argTypesFromConfig(mergeConfig(footnoteConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(footnoteConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  },
19
27
  };
@@ -12,8 +12,16 @@ const meta: Meta<typeof Headline> = {
12
12
  title: 'typography/Old/Headline',
13
13
  decorators: [WithTheme],
14
14
  component: Headline,
15
- argTypes: argTypesFromConfig(mergeConfig(headlineConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(headlineConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  },
19
27
  };
@@ -12,8 +12,16 @@ const meta: Meta<typeof Paragraph> = {
12
12
  title: 'typography/Old/Paragraph',
13
13
  decorators: [WithTheme],
14
14
  component: Paragraph,
15
- argTypes: argTypesFromConfig(mergeConfig(paragraphConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(paragraphConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  resetMargin: false,
19
27
  m: 2,
@@ -12,7 +12,17 @@ const meta: Meta<typeof Subtitle> = {
12
12
  title: 'typography/Old/Subtitle',
13
13
  decorators: [WithTheme],
14
14
  component: Subtitle,
15
- argTypes: argTypesFromConfig(mergeConfig(subtitleConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(subtitleConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
23
+ args: {
24
+ noWrap: false,
25
+ },
16
26
  };
17
27
 
18
28
  export default meta;
@@ -12,8 +12,16 @@ const meta: Meta<typeof Underline> = {
12
12
  title: 'typography/Old/Underline',
13
13
  decorators: [WithTheme],
14
14
  component: Underline,
15
- argTypes: argTypesFromConfig(mergeConfig(underlineConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(underlineConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  },
19
27
  };
@@ -12,8 +12,16 @@ const meta: Meta<typeof Text> = {
12
12
  title: 'typography/Text',
13
13
  decorators: [WithTheme],
14
14
  component: Text,
15
- argTypes: argTypesFromConfig(mergeConfig(textConfig, config)),
15
+ argTypes: {
16
+ ...argTypesFromConfig(mergeConfig(textConfig, config)),
17
+ color: {
18
+ control: {
19
+ type: 'color',
20
+ },
21
+ },
22
+ },
16
23
  args: {
24
+ noWrap: false,
17
25
  breakWord: true,
18
26
  bold: false,
19
27
  },
@@ -59,7 +59,8 @@
59
59
  .Chip_styles_1mwwhiw_swddmyi__07da4d18{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-chip-right-content-margin-left);margin-right:var(--plasma-chip-right-content-margin-right);}
60
60
  .Chip_styles_1mwwhiw_s1pcflhj__07da4d18{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-chip-clear-content-margin-left);margin-right:var(--plasma-chip-clear-content-margin-right);color:var(--plasma-chip-close-icon-color);}
61
61
 
62
- .TextFieldChip_styles_1y8n7la_s32p7ut__8f291676{--plasma-chip-color:var(--plasma-textfield__chip-color);--plasma-chip-background:var(--plasma-textfield__chip-background);--plasma-chip-color-hover:var(--plasma-textfield__chip-color-hover);--plasma-chip-background-hover:var(--plasma-textfield__chip-background-hover);--plasma-chip-color-active:var(--plasma-textfield__chip-color-active);--plasma-chip-background-active:var(--plasma-textfield__chip-background-active);--plasma-chip-background-readonly:var(--plasma-textfield__chip-background-readonly);--plasma-chip-color-readonly:var(--plasma-textfield__chip-color-readonly);--plasma-chip-background-readonly-hover:var(--plasma-textfield__chip-background-readonly-hover);--plasma-chip-color-readonly-hover:var(--plasma-textfield__chip-color-readonly-hover);--plasma-chip-border-radius:var(--plasma-textfield__chip-border-radius);--plasma-chip-width:var(--plasma-textfield__chip-width);--plasma-chip-height:var(--plasma-textfield__chip-height);--plasma-chip-padding-right:var(--plasma-textfield__chip-padding-right);--plasma-chip-padding-left:var(--plasma-textfield__chip-padding-left);--plasma-chip-font-family:var(--plasma-textfield__chip-font-family);--plasma-chip-font-size:var(--plasma-textfield__chip-font-size);--plasma-chip-font-style:var(--plasma-textfield__chip-font-style);--plasma-chip-font-weight:var(--plasma-textfield__chip-font-weight);--plasma-chip-letter-spacing:var(--plasma-textfield__chip-letter-spacing);--plasma-chip-lineheight:var(--plasma-textfield__chip-line-height);--plasma-chip-clear-content-margin-left:var(--plasma-textfield__chip-clear-content-margin-left);--plasma-chip-clear-content-margin-right:var(--plasma-textfield__chip-clear-content-margin-right);--plasma-chip-scale-hover:var(--plasma-textfield__chip-scale-hover);--plasma-chip-scale-active:var(--plasma-textfield__chip-scale-active);--plasma-chip-close-icon-size:var(--plasma-textfield__chip-close-icon-size);--plasma-chip-close-icon-color:var(--plasma-textfield__chip-close-icon-color);--plasma-chip-focus-color:var(--plasma-textfield-focus-color);-webkit-scroll-snap-align:center;-moz-scroll-snap-align:center;-ms-scroll-snap-align:center;scroll-snap-align:center;-webkit-scroll-snap-stop:normal;-moz-scroll-snap-stop:normal;-ms-scroll-snap-stop:normal;scroll-snap-stop:normal;position:relative;}.TextFieldChip_styles_1y8n7la_s32p7ut__8f291676::before{content:'';position:absolute;top:0.0625rem;left:0.0625rem;right:0.0625rem;bottom:0.0625rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:calc(var(--plasma-textfield__chip-border-radius) - 0.1rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.TextFieldChip_styles_1y8n7la_s32p7ut__8f291676.TextFieldChip_styles_1y8n7la_focusVisible__8f291676:focus::before,.TextFieldChip_styles_1y8n7la_s32p7ut__8f291676[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-textfield-focus-color);}.TextFieldChip_styles_1y8n7la_s32p7ut__8f291676[readonly]{opacity:var(--plasma-textfield__chip-opacity-readonly);}
62
+ .TextFieldChip_styles_1yosnxc_s32p7ut__b8a89acb{--plasma-chip-color:var(--plasma-textfield__chip-color);--plasma-chip-background:var(--plasma-textfield__chip-background);--plasma-chip-color-hover:var(--plasma-textfield__chip-color-hover);--plasma-chip-background-hover:var(--plasma-textfield__chip-background-hover);--plasma-chip-color-active:var(--plasma-textfield__chip-color-active);--plasma-chip-background-active:var(--plasma-textfield__chip-background-active);--plasma-chip-background-readonly:var(--plasma-textfield__chip-background-readonly);--plasma-chip-color-readonly:var(--plasma-textfield__chip-color-readonly);--plasma-chip-background-readonly-hover:var(--plasma-textfield__chip-background-readonly-hover);--plasma-chip-color-readonly-hover:var(--plasma-textfield__chip-color-readonly-hover);--plasma-chip-border-radius:var(--plasma-textfield__chip-border-radius);--plasma-chip-width:var(--plasma-textfield__chip-width);--plasma-chip-height:var(--plasma-textfield__chip-height);--plasma-chip-padding-right:var(--plasma-textfield__chip-padding-right);--plasma-chip-padding-left:var(--plasma-textfield__chip-padding-left);--plasma-chip-font-family:var(--plasma-textfield__chip-font-family);--plasma-chip-font-size:var(--plasma-textfield__chip-font-size);--plasma-chip-font-style:var(--plasma-textfield__chip-font-style);--plasma-chip-font-weight:var(--plasma-textfield__chip-font-weight);--plasma-chip-letter-spacing:var(--plasma-textfield__chip-letter-spacing);--plasma-chip-lineheight:var(--plasma-textfield__chip-line-height);--plasma-chip-clear-content-margin-left:var(--plasma-textfield__chip-clear-content-margin-left);--plasma-chip-clear-content-margin-right:var(--plasma-textfield__chip-clear-content-margin-right);--plasma-chip-scale-hover:var(--plasma-textfield__chip-scale-hover);--plasma-chip-scale-active:var(--plasma-textfield__chip-scale-active);--plasma-chip-close-icon-size:var(--plasma-textfield__chip-close-icon-size);--plasma-chip-close-icon-color:var(--plasma-textfield__chip-close-icon-color);--plasma-chip-focus-color:var(--plasma-textfield-focus-color);-webkit-scroll-snap-align:center;-moz-scroll-snap-align:center;-ms-scroll-snap-align:center;scroll-snap-align:center;-webkit-scroll-snap-stop:normal;-moz-scroll-snap-stop:normal;-ms-scroll-snap-stop:normal;scroll-snap-stop:normal;position:relative;}.TextFieldChip_styles_1yosnxc_s32p7ut__b8a89acb::before{content:'';position:absolute;top:0.0625rem;left:0.0625rem;right:0.0625rem;bottom:0.0625rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:calc(var(--plasma-textfield__chip-border-radius) - 0.1rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.TextFieldChip_styles_1yosnxc_s32p7ut__b8a89acb.TextFieldChip_styles_1yosnxc_focusVisible__b8a89acb:focus::before,.TextFieldChip_styles_1yosnxc_s32p7ut__b8a89acb[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-textfield-focus-color);}.TextFieldChip_styles_1yosnxc_s32p7ut__b8a89acb[readonly]{opacity:var(--plasma-textfield__chip-opacity-readonly);}
63
+ .TextFieldChip_styles_1yosnxc_t4nir3h__b8a89acb{display:block;-webkit-flex:none;-ms-flex:none;flex:none;background:none;border:none;outline:none;padding:0;white-space:nowrap;cursor:pointer;font-family:var(--plasma-textfield-font-family);font-size:var(--plasma-textfield-font-size);font-style:var(--plasma-textfield-font-style);font-weight:var(--plasma-textfield-font-weight);-webkit-letter-spacing:var(--plasma-textfield-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-letter-spacing);letter-spacing:var(--plasma-textfield-letter-spacing);line-height:var(--plasma-textfield-line-height);color:var(--plasma-textfield-color);position:relative;}.TextFieldChip_styles_1yosnxc_t4nir3h__b8a89acb::before{content:'';position:absolute;top:0.0625rem;left:0.0625rem;right:0.0625rem;bottom:0.0625rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:calc(var(--plasma-textfield__chip-border-radius) - 0.1rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.TextFieldChip_styles_1yosnxc_t4nir3h__b8a89acb.TextFieldChip_styles_1yosnxc_focusVisible__b8a89acb:focus::before,.TextFieldChip_styles_1yosnxc_t4nir3h__b8a89acb[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-textfield-focus-color);}.TextFieldChip_styles_1yosnxc_t4nir3h__b8a89acb:after{content:',';}.TextFieldChip_styles_1yosnxc_t4nir3h__b8a89acb:last-child:after{content:'';}
63
64
 
64
65
  .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
65
66
 
@@ -62,7 +62,7 @@ var calendarBaseRoot = function calendarBaseRoot(Root) {
62
62
  _useState8 = _slicedToArray(_useState7, 2),
63
63
  outOfRangeKey = _useState8[0],
64
64
  setOutOfRangeKey = _useState8[1];
65
- var _useReducer = useReducer(reducer, getInitialState(value, min, type)),
65
+ var _useReducer = useReducer(reducer, getInitialState(value, type)),
66
66
  _useReducer2 = _slicedToArray(_useReducer, 2),
67
67
  state = _useReducer2[0],
68
68
  dispatch = _useReducer2[1];
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarBase.js","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"sourcesContent":["import React, {\n useCallback,\n useMemo,\n useReducer,\n useState,\n KeyboardEvent,\n HTMLAttributes,\n forwardRef,\n useEffect,\n} from 'react';\n\nimport type { Calendar, CalendarConfigProps, DateObject } from '../Calendar.types';\nimport { getInitialState, reducer, sizeMap } from '../store/reducer';\nimport { ActionType, CalendarState } from '../store/types';\nimport { isValueUpdate } from '../utils';\nimport { useKeyNavigation, useCalendarNavigation, useCalendarDateChange } from '../hooks';\nimport { CalendarDays, CalendarHeader, CalendarMonths, CalendarQuarters, CalendarYears } from '../ui';\nimport { RootProps } from '../../../engines';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { IsOutOfRange, StyledCalendar } from './CalendarBase.styles';\n\nexport type CalendarBaseProps = Calendar & CalendarConfigProps;\n\n/**\n * Компонент календаря.\n */\nexport const calendarBaseRoot = (Root: RootProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>) =>\n forwardRef<HTMLDivElement, CalendarBaseProps>(\n (\n {\n value: externalValue,\n min,\n max,\n includeEdgeDates,\n type = 'Days',\n eventList,\n disabledList,\n eventMonthList,\n disabledMonthList,\n eventQuarterList,\n disabledQuarterList,\n eventYearList,\n disabledYearList,\n onChangeValue,\n locale = 'ru',\n ...rest\n },\n outerRootRef,\n ) => {\n const [firstValue, secondValue] = useMemo(\n () => (Array.isArray(externalValue) ? externalValue : [externalValue]),\n [externalValue],\n );\n const value = secondValue || firstValue;\n\n const [hoveredItem, setHoveredItem] = useState<DateObject | undefined>();\n const [prevType, setPrevType] = useState(type);\n const [prevValue, setPrevValue] = useState(value);\n const [outOfRangeKey, setOutOfRangeKey] = useState<number>(0);\n\n const [state, dispatch] = useReducer(reducer, getInitialState(value, min, type));\n\n const { date, calendarState, startYear, size } = state;\n\n const { handleNext, handlePrev } = useCalendarNavigation({\n calendarState,\n date,\n dispatch,\n });\n\n const [selectIndexes, onKeyDown, onSelectIndexes, outerRefs, isOutOfRange] = useKeyNavigation({\n size,\n calendarState,\n onNext: handleNext,\n onPrev: handlePrev,\n });\n\n const {\n handleOnChangeDay,\n handleOnChangeMonth,\n handleOnChangeQuarter,\n handleOnChangeYear,\n handleUpdateCalendarState,\n } = useCalendarDateChange({ type, onChangeValue, onSelectIndexes, dispatch });\n\n // Изменяем ключ каждый раз как пытаемся перейти на даты которые находятся за пределами min/max ограничений.\n // Это необходимо для того чтобы screen-reader корректно озвучивал уведомление aria-live=\"assertive\"\n // о том что нет доступных дат\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n setOutOfRangeKey((previousState) => Number(!previousState));\n\n onKeyDown(event);\n },\n [onKeyDown],\n );\n\n useEffect(() => {\n if (prevType !== calendarState) {\n dispatch({\n type: ActionType.UPDATE_CALENDAR_STATE,\n payload: { calendarState, size: sizeMap[calendarState].single },\n });\n\n setPrevType(calendarState);\n }\n }, [calendarState]);\n\n useEffect(() => {\n if (!prevValue) {\n setPrevValue(value);\n }\n\n if ((value && prevValue && isValueUpdate(value, prevValue)) || (value && !prevValue)) {\n dispatch({\n type: ActionType.UPDATE_DATE,\n payload: { value },\n });\n\n setPrevValue(value);\n }\n }, [value, prevValue]);\n\n return (\n <Root ref={outerRootRef} aria-label=\"Выбор даты\" {...rest}>\n {isOutOfRange && (\n <IsOutOfRange\n key={outOfRangeKey}\n aria-atomic=\"true\"\n role=\"alert\"\n aria-live=\"assertive\"\n aria-relevant=\"additions\"\n >\n Далее нет доступных дат.\n </IsOutOfRange>\n )}\n <CalendarHeader\n size={rest.size}\n firstDate={date}\n startYear={startYear}\n type={calendarState}\n onPrev={handlePrev}\n onNext={handleNext}\n onUpdateCalendarState={handleUpdateCalendarState}\n locale={locale}\n />\n {calendarState === CalendarState.Days && (\n <CalendarDays\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventList}\n disabledList={disabledList}\n includeEdgeDates={includeEdgeDates}\n hoveredDay={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeDay={handleOnChangeDay}\n onSetSelected={onSelectIndexes}\n onHoverDay={setHoveredItem}\n onKeyDown={handleKeyDown}\n outerRefs={outerRefs}\n locale={locale}\n />\n )}\n {calendarState === CalendarState.Months && (\n <CalendarMonths\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventMonthList}\n disabledList={disabledMonthList}\n hoveredMonth={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeMonth={handleOnChangeMonth}\n onSetSelected={onSelectIndexes}\n onHoverMonth={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n locale={locale}\n />\n )}\n {calendarState === CalendarState.Quarters && (\n <CalendarQuarters\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventQuarterList}\n disabledList={disabledQuarterList}\n hoveredQuarter={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeQuarter={handleOnChangeQuarter}\n onSetSelected={onSelectIndexes}\n onHoverQuarter={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n />\n )}\n {calendarState === CalendarState.Years && (\n <CalendarYears\n value={externalValue}\n date={date}\n startYear={startYear}\n selectIndexes={selectIndexes}\n min={min}\n max={max}\n eventList={eventYearList}\n disabledList={disabledYearList}\n hoveredYear={hoveredItem}\n onChangeYear={handleOnChangeYear}\n onSetSelected={onSelectIndexes}\n onHoverYear={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n />\n )}\n </Root>\n );\n },\n );\n\nexport const calendarBaseConfig = {\n name: 'CalendarBase',\n tag: 'div',\n layout: calendarBaseRoot,\n base: StyledCalendar,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["calendarBaseRoot","Root","forwardRef","_ref","outerRootRef","externalValue","value","min","max","includeEdgeDates","_ref$type","type","eventList","disabledList","eventMonthList","disabledMonthList","eventQuarterList","disabledQuarterList","eventYearList","disabledYearList","onChangeValue","_ref$locale","locale","rest","_objectWithoutProperties","_excluded","_useMemo","useMemo","Array","isArray","_useMemo2","_slicedToArray","firstValue","secondValue","_useState","useState","_useState2","hoveredItem","setHoveredItem","_useState3","_useState4","prevType","setPrevType","_useState5","_useState6","prevValue","setPrevValue","_useState7","_useState8","outOfRangeKey","setOutOfRangeKey","_useReducer","useReducer","reducer","getInitialState","_useReducer2","state","dispatch","date","calendarState","startYear","size","_useCalendarNavigatio","useCalendarNavigation","handleNext","handlePrev","_useKeyNavigation","useKeyNavigation","onNext","onPrev","_useKeyNavigation2","selectIndexes","onKeyDown","onSelectIndexes","outerRefs","isOutOfRange","_useCalendarDateChang","useCalendarDateChange","handleOnChangeDay","handleOnChangeMonth","handleOnChangeQuarter","handleOnChangeYear","handleUpdateCalendarState","handleKeyDown","useCallback","event","previousState","Number","useEffect","ActionType","UPDATE_CALENDAR_STATE","payload","sizeMap","single","isValueUpdate","UPDATE_DATE","React","createElement","_extends","ref","IsOutOfRange","key","role","CalendarHeader","firstDate","onUpdateCalendarState","CalendarState","Days","CalendarDays","hoveredDay","onChangeDay","onSetSelected","onHoverDay","Months","CalendarMonths","hoveredMonth","onChangeMonth","onHoverMonth","Quarters","CalendarQuarters","hoveredQuarter","onChangeQuarter","onHoverQuarter","Years","CalendarYears","hoveredYear","onChangeYear","onHoverYear","calendarBaseConfig","name","tag","layout","base","StyledCalendar","variations","view","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAA+D,EAAA;AAAA,EAAA,oBAC5FC,UAAU,CACN,UAAAC,IAAA,EAmBIC,YAAY,EACX;AAAA,IAAA,IAlBUC,aAAa,GAAAF,IAAA,CAApBG,KAAK;MACLC,GAAG,GAAAJ,IAAA,CAAHI,GAAG;MACHC,GAAG,GAAAL,IAAA,CAAHK,GAAG;MACHC,gBAAgB,GAAAN,IAAA,CAAhBM,gBAAgB;MAAAC,SAAA,GAAAP,IAAA,CAChBQ,IAAI;AAAJA,MAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,SAAA;MACbE,SAAS,GAAAT,IAAA,CAATS,SAAS;MACTC,YAAY,GAAAV,IAAA,CAAZU,YAAY;MACZC,cAAc,GAAAX,IAAA,CAAdW,cAAc;MACdC,iBAAiB,GAAAZ,IAAA,CAAjBY,iBAAiB;MACjBC,gBAAgB,GAAAb,IAAA,CAAhBa,gBAAgB;MAChBC,mBAAmB,GAAAd,IAAA,CAAnBc,mBAAmB;MACnBC,aAAa,GAAAf,IAAA,CAAbe,aAAa;MACbC,gBAAgB,GAAAhB,IAAA,CAAhBgB,gBAAgB;MAChBC,aAAa,GAAAjB,IAAA,CAAbiB,aAAa;MAAAC,WAAA,GAAAlB,IAAA,CACbmB,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,WAAA;AACVE,MAAAA,IAAI,GAAAC,wBAAA,CAAArB,IAAA,EAAAsB,SAAA,CAAA,CAAA;IAIX,IAAAC,QAAA,GAAkCC,OAAO,CACrC,YAAA;QAAA,OAAOC,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EAAA;AAEE,IAAMsD,kBAAkB,GAAG;AAC9BC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEnI,gBAAgB;AACxBoI,EAAAA,IAAI,EAAEC,cAAc;AACpBC,EAAAA,UAAU,EAAE;AACRC,IAAAA,IAAI,EAAE;AACFC,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD5E,IAAAA,IAAI,EAAE;AACF2E,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNJ,IAAAA,IAAI,EAAE,SAAS;AACf1E,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"CalendarBase.js","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"sourcesContent":["import React, {\n useCallback,\n useMemo,\n useReducer,\n useState,\n KeyboardEvent,\n HTMLAttributes,\n forwardRef,\n useEffect,\n} from 'react';\n\nimport type { Calendar, CalendarConfigProps, DateObject } from '../Calendar.types';\nimport { getInitialState, reducer, sizeMap } from '../store/reducer';\nimport { ActionType, CalendarState } from '../store/types';\nimport { isValueUpdate } from '../utils';\nimport { useKeyNavigation, useCalendarNavigation, useCalendarDateChange } from '../hooks';\nimport { CalendarDays, CalendarHeader, CalendarMonths, CalendarQuarters, CalendarYears } from '../ui';\nimport { RootProps } from '../../../engines';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { IsOutOfRange, StyledCalendar } from './CalendarBase.styles';\n\nexport type CalendarBaseProps = Calendar & CalendarConfigProps;\n\n/**\n * Компонент календаря.\n */\nexport const calendarBaseRoot = (Root: RootProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>) =>\n forwardRef<HTMLDivElement, CalendarBaseProps>(\n (\n {\n value: externalValue,\n min,\n max,\n includeEdgeDates,\n type = 'Days',\n eventList,\n disabledList,\n eventMonthList,\n disabledMonthList,\n eventQuarterList,\n disabledQuarterList,\n eventYearList,\n disabledYearList,\n onChangeValue,\n locale = 'ru',\n ...rest\n },\n outerRootRef,\n ) => {\n const [firstValue, secondValue] = useMemo(\n () => (Array.isArray(externalValue) ? externalValue : [externalValue]),\n [externalValue],\n );\n const value = secondValue || firstValue;\n\n const [hoveredItem, setHoveredItem] = useState<DateObject | undefined>();\n const [prevType, setPrevType] = useState(type);\n const [prevValue, setPrevValue] = useState(value);\n const [outOfRangeKey, setOutOfRangeKey] = useState<number>(0);\n\n const [state, dispatch] = useReducer(reducer, getInitialState(value, type));\n\n const { date, calendarState, startYear, size } = state;\n\n const { handleNext, handlePrev } = useCalendarNavigation({\n calendarState,\n date,\n dispatch,\n });\n\n const [selectIndexes, onKeyDown, onSelectIndexes, outerRefs, isOutOfRange] = useKeyNavigation({\n size,\n calendarState,\n onNext: handleNext,\n onPrev: handlePrev,\n });\n\n const {\n handleOnChangeDay,\n handleOnChangeMonth,\n handleOnChangeQuarter,\n handleOnChangeYear,\n handleUpdateCalendarState,\n } = useCalendarDateChange({ type, onChangeValue, onSelectIndexes, dispatch });\n\n // Изменяем ключ каждый раз как пытаемся перейти на даты которые находятся за пределами min/max ограничений.\n // Это необходимо для того чтобы screen-reader корректно озвучивал уведомление aria-live=\"assertive\"\n // о том что нет доступных дат\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n setOutOfRangeKey((previousState) => Number(!previousState));\n\n onKeyDown(event);\n },\n [onKeyDown],\n );\n\n useEffect(() => {\n if (prevType !== calendarState) {\n dispatch({\n type: ActionType.UPDATE_CALENDAR_STATE,\n payload: { calendarState, size: sizeMap[calendarState].single },\n });\n\n setPrevType(calendarState);\n }\n }, [calendarState]);\n\n useEffect(() => {\n if (!prevValue) {\n setPrevValue(value);\n }\n\n if ((value && prevValue && isValueUpdate(value, prevValue)) || (value && !prevValue)) {\n dispatch({\n type: ActionType.UPDATE_DATE,\n payload: { value },\n });\n\n setPrevValue(value);\n }\n }, [value, prevValue]);\n\n return (\n <Root ref={outerRootRef} aria-label=\"Выбор даты\" {...rest}>\n {isOutOfRange && (\n <IsOutOfRange\n key={outOfRangeKey}\n aria-atomic=\"true\"\n role=\"alert\"\n aria-live=\"assertive\"\n aria-relevant=\"additions\"\n >\n Далее нет доступных дат.\n </IsOutOfRange>\n )}\n <CalendarHeader\n size={rest.size}\n firstDate={date}\n startYear={startYear}\n type={calendarState}\n onPrev={handlePrev}\n onNext={handleNext}\n onUpdateCalendarState={handleUpdateCalendarState}\n locale={locale}\n />\n {calendarState === CalendarState.Days && (\n <CalendarDays\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventList}\n disabledList={disabledList}\n includeEdgeDates={includeEdgeDates}\n hoveredDay={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeDay={handleOnChangeDay}\n onSetSelected={onSelectIndexes}\n onHoverDay={setHoveredItem}\n onKeyDown={handleKeyDown}\n outerRefs={outerRefs}\n locale={locale}\n />\n )}\n {calendarState === CalendarState.Months && (\n <CalendarMonths\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventMonthList}\n disabledList={disabledMonthList}\n hoveredMonth={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeMonth={handleOnChangeMonth}\n onSetSelected={onSelectIndexes}\n onHoverMonth={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n locale={locale}\n />\n )}\n {calendarState === CalendarState.Quarters && (\n <CalendarQuarters\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventQuarterList}\n disabledList={disabledQuarterList}\n hoveredQuarter={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeQuarter={handleOnChangeQuarter}\n onSetSelected={onSelectIndexes}\n onHoverQuarter={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n />\n )}\n {calendarState === CalendarState.Years && (\n <CalendarYears\n value={externalValue}\n date={date}\n startYear={startYear}\n selectIndexes={selectIndexes}\n min={min}\n max={max}\n eventList={eventYearList}\n disabledList={disabledYearList}\n hoveredYear={hoveredItem}\n onChangeYear={handleOnChangeYear}\n onSetSelected={onSelectIndexes}\n onHoverYear={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n />\n )}\n </Root>\n );\n },\n );\n\nexport const calendarBaseConfig = {\n name: 'CalendarBase',\n tag: 'div',\n layout: calendarBaseRoot,\n base: StyledCalendar,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["calendarBaseRoot","Root","forwardRef","_ref","outerRootRef","externalValue","value","min","max","includeEdgeDates","_ref$type","type","eventList","disabledList","eventMonthList","disabledMonthList","eventQuarterList","disabledQuarterList","eventYearList","disabledYearList","onChangeValue","_ref$locale","locale","rest","_objectWithoutProperties","_excluded","_useMemo","useMemo","Array","isArray","_useMemo2","_slicedToArray","firstValue","secondValue","_useState","useState","_useState2","hoveredItem","setHoveredItem","_useState3","_useState4","prevType","setPrevType","_useState5","_useState6","prevValue","setPrevValue","_useState7","_useState8","outOfRangeKey","setOutOfRangeKey","_useReducer","useReducer","reducer","getInitialState","_useReducer2","state","dispatch","date","calendarState","startYear","size","_useCalendarNavigatio","useCalendarNavigation","handleNext","handlePrev","_useKeyNavigation","useKeyNavigation","onNext","onPrev","_useKeyNavigation2","selectIndexes","onKeyDown","onSelectIndexes","outerRefs","isOutOfRange","_useCalendarDateChang","useCalendarDateChange","handleOnChangeDay","handleOnChangeMonth","handleOnChangeQuarter","handleOnChangeYear","handleUpdateCalendarState","handleKeyDown","useCallback","event","previousState","Number","useEffect","ActionType","UPDATE_CALENDAR_STATE","payload","sizeMap","single","isValueUpdate","UPDATE_DATE","React","createElement","_extends","ref","IsOutOfRange","key","role","CalendarHeader","firstDate","onUpdateCalendarState","CalendarState","Days","CalendarDays","hoveredDay","onChangeDay","onSetSelected","onHoverDay","Months","CalendarMonths","hoveredMonth","onChangeMonth","onHoverMonth","Quarters","CalendarQuarters","hoveredQuarter","onChangeQuarter","onHoverQuarter","Years","CalendarYears","hoveredYear","onChangeYear","onHoverYear","calendarBaseConfig","name","tag","layout","base","StyledCalendar","variations","view","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAA+D,EAAA;AAAA,EAAA,oBAC5FC,UAAU,CACN,UAAAC,IAAA,EAmBIC,YAAY,EACX;AAAA,IAAA,IAlBUC,aAAa,GAAAF,IAAA,CAApBG,KAAK;MACLC,GAAG,GAAAJ,IAAA,CAAHI,GAAG;MACHC,GAAG,GAAAL,IAAA,CAAHK,GAAG;MACHC,gBAAgB,GAAAN,IAAA,CAAhBM,gBAAgB;MAAAC,SAAA,GAAAP,IAAA,CAChBQ,IAAI;AAAJA,MAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,SAAA;MACbE,SAAS,GAAAT,IAAA,CAATS,SAAS;MACTC,YAAY,GAAAV,IAAA,CAAZU,YAAY;MACZC,cAAc,GAAAX,IAAA,CAAdW,cAAc;MACdC,iBAAiB,GAAAZ,IAAA,CAAjBY,iBAAiB;MACjBC,gBAAgB,GAAAb,IAAA,CAAhBa,gBAAgB;MAChBC,mBAAmB,GAAAd,IAAA,CAAnBc,mBAAmB;MACnBC,aAAa,GAAAf,IAAA,CAAbe,aAAa;MACbC,gBAAgB,GAAAhB,IAAA,CAAhBgB,gBAAgB;MAChBC,aAAa,GAAAjB,IAAA,CAAbiB,aAAa;MAAAC,WAAA,GAAAlB,IAAA,CACbmB,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,WAAA;AACVE,MAAAA,IAAI,GAAAC,wBAAA,CAAArB,IAAA,EAAAsB,SAAA,CAAA,CAAA;IAIX,IAAAC,QAAA,GAAkCC,O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AC,CAAA;AAAA,EAAA;AAEE,IAAMsD,kBAAkB,GAAG;AAC9BC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEnI,gBAAgB;AACxBoI,EAAAA,IAAI,EAAEC,cAAc;AACpBC,EAAAA,UAAU,EAAE;AACRC,IAAAA,IAAI,EAAE;AACFC,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD5E,IAAAA,IAAI,EAAE;AACF2E,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNJ,IAAAA,IAAI,EAAE,SAAS;AACf1E,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -65,7 +65,7 @@ var calendarDoubleRoot = function calendarDoubleRoot(Root) {
65
65
  _useState8 = _slicedToArray(_useState7, 2),
66
66
  outOfRangeKey = _useState8[0],
67
67
  setOutOfRangeKey = _useState8[1];
68
- var _useReducer = useReducer(reducer, getInitialState(value, min, type, true)),
68
+ var _useReducer = useReducer(reducer, getInitialState(value, type, true)),
69
69
  _useReducer2 = _slicedToArray(_useReducer, 2),
70
70
  state = _useReducer2[0],
71
71
  dispatch = _useReducer2[1];