@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
@@ -63,7 +63,7 @@ export var calendarBaseRoot = function calendarBaseRoot(Root) {
63
63
  _useState8 = _slicedToArray(_useState7, 2),
64
64
  outOfRangeKey = _useState8[0],
65
65
  setOutOfRangeKey = _useState8[1];
66
- var _useReducer = useReducer(reducer, getInitialState(value, min, type)),
66
+ var _useReducer = useReducer(reducer, getInitialState(value, type)),
67
67
  _useReducer2 = _slicedToArray(_useReducer, 2),
68
68
  state = _useReducer2[0],
69
69
  dispatch = _useReducer2[1];
@@ -64,7 +64,7 @@ export var calendarDoubleRoot = function calendarDoubleRoot(Root) {
64
64
  _useState8 = _slicedToArray(_useState7, 2),
65
65
  outOfRangeKey = _useState8[0],
66
66
  setOutOfRangeKey = _useState8[1];
67
- var _useReducer = useReducer(reducer, getInitialState(value, min, type, true)),
67
+ var _useReducer = useReducer(reducer, getInitialState(value, type, true)),
68
68
  _useReducer2 = _slicedToArray(_useReducer, 2),
69
69
  state = _useReducer2[0],
70
70
  dispatch = _useReducer2[1];
@@ -30,8 +30,8 @@ export var sizeMap = {
30
30
  "double": [3, 1]
31
31
  }
32
32
  };
33
- export var getInitialState = function getInitialState(value, min, calendarState, isDouble) {
34
- var initDate = value || min || new Date();
33
+ export var getInitialState = function getInitialState(value, calendarState, isDouble) {
34
+ var initDate = value || new Date();
35
35
  var date = getDateFromValue(initDate);
36
36
  var resSize = isDouble ? sizeMap[calendarState]["double"] : sizeMap[calendarState].single;
37
37
  return {
@@ -73,6 +73,7 @@ export var Target = /*#__PURE__*/forwardRef(function (_ref, ref) {
73
73
  onChange: onChange,
74
74
  labelToItemMap: labelToItemMap,
75
75
  chipView: chipView,
76
- requiredProps: requiredProps
76
+ requiredProps: requiredProps,
77
+ chipType: selectProps.chipType
77
78
  });
78
79
  });
@@ -33,7 +33,8 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
33
33
  onChange = _ref.onChange,
34
34
  labelToItemMap = _ref.labelToItemMap,
35
35
  chipView = _ref.chipView,
36
- requiredProps = _ref.requiredProps;
36
+ requiredProps = _ref.requiredProps,
37
+ chipType = _ref.chipType;
37
38
  var withArrowInverse = opened ? classes.arrowInverse : undefined;
38
39
  var getChips = function getChips() {
39
40
  if (multiselect && Array.isArray(value)) {
@@ -104,7 +105,8 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
104
105
  }, multiselect ? {
105
106
  enumerationType: 'chip',
106
107
  chips: getChips(),
107
- onChangeChips: handleChipsChange
108
+ onChangeChips: handleChipsChange,
109
+ chipType: chipType
108
110
  } : {
109
111
  enumerationType: 'plain'
110
112
  }, {
@@ -1,4 +1,4 @@
1
- var _excluded = ["id", "className", "style", "contentLeft", "contentRight", "label", "labelPlacement", "textBefore", "textAfter", "placeholder", "leftHelper", "enumerationType", "requiredPlacement", "titleCaption", "hintTrigger", "hintText", "hintView", "hintSize", "hintTargetIcon", "hintPlacement", "hintHasArrow", "hintOffset", "hintWidth", "hintContentLeft", "view", "size", "readOnly", "disabled", "required", "clear", "optional", "hasDivider", "value", "chips", "onChange", "onChangeChips", "onSearch", "onKeyDown"];
1
+ var _excluded = ["id", "className", "style", "contentLeft", "contentRight", "label", "labelPlacement", "textBefore", "textAfter", "placeholder", "leftHelper", "enumerationType", "requiredPlacement", "titleCaption", "hintTrigger", "hintText", "hintView", "hintSize", "hintTargetIcon", "hintPlacement", "hintHasArrow", "hintOffset", "hintWidth", "hintContentLeft", "view", "size", "readOnly", "disabled", "required", "clear", "optional", "hasDivider", "value", "chips", "chipType", "onChange", "onChangeChips", "onSearch", "onKeyDown"];
2
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
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -77,6 +77,8 @@ export var textFieldRoot = function textFieldRoot(Root) {
77
77
  hasDivider = _ref.hasDivider,
78
78
  outerValue = _ref.value,
79
79
  values = _ref.chips,
80
+ _ref$chipType = _ref.chipType,
81
+ chipType = _ref$chipType === void 0 ? 'default' : _ref$chipType,
80
82
  onChange = _ref.onChange,
81
83
  onChangeChips = _ref.onChangeChips,
82
84
  onSearch = _ref.onSearch,
@@ -125,8 +127,8 @@ export var textFieldRoot = function textFieldRoot(Root) {
125
127
  var requiredPlacementClass = requiredPlacement === 'right' ? classes.requiredAlignRight : undefined;
126
128
  var labelPlacementClass = innerLabelPlacementValue ? classes["".concat(innerLabelPlacementValue, "LabelPlacement")] : undefined;
127
129
  var hasValueClass = hasValue ? classes.hasValue : undefined;
128
- var wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;
129
- var wrapperWithoutRightContent = !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;
130
+ var wrapperWithoutLeftContent = !contentLeft && isChipsVisible && chipType === 'default' ? classes.hasEmptyContentLeft : undefined;
131
+ var wrapperWithoutRightContent = !contentRight && isChipsVisible && chipType === 'default' ? classes.hasEmptyContentRight : undefined;
130
132
  var hintRef = useOutsideClick(function () {
131
133
  setIsHintVisible(false);
132
134
  });
@@ -317,7 +319,8 @@ export var textFieldRoot = function textFieldRoot(Root) {
317
319
  onClear: function onClear() {
318
320
  return onChipClear(chipId, index);
319
321
  },
320
- onClick: onChipClick
322
+ onClick: onChipClick,
323
+ chipType: chipType
321
324
  // TODO: #1547
322
325
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
323
326
  // @ts-ignore
@@ -62,7 +62,7 @@ export function App() {
62
62
  ```
63
63
 
64
64
  ### Статус поля
65
- Статус поля задается с помощью свойства `status`.
65
+ Статус поля задается с помощью свойства `status`.
66
66
  Возможные значения свойства: `success`, `warning` и `error`.
67
67
  На отображение TextField так же влияют свойства `clear` и `hasDivider`:
68
68
 
@@ -150,7 +150,7 @@ export function App() {
150
150
  ```
151
151
 
152
152
  ### Режим ввода
153
- С помощью свойства `enumerationType` можно вводить элементы как теги.
153
+ С помощью свойства `enumerationType` можно вводить элементы как теги. Свойство `chipType` изменяет внешний вид чипа.
154
154
  По нажатию Enter, после ввода нужного текста, он преобразуется в Chip:
155
155
 
156
156
  ```tsx live
@@ -166,7 +166,17 @@ export function App() {
166
166
  size="l"
167
167
  enumerationType="chip"
168
168
  helperText="Подсказка снизу"
169
- values={["Значение 1"]}
169
+ chips={["Значение 1"]}
170
+ />
171
+
172
+ <TextField
173
+ placeholder="Введите значение"
174
+ defaultValue="Значение"
175
+ size="l"
176
+ enumerationType="chip"
177
+ helperText="Подсказка снизу"
178
+ chips={["Значение 1"]}
179
+ chipType="text"
170
180
  />
171
181
  </div>
172
182
  );
@@ -1,5 +1,5 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { StyledChip } from './TextFieldChip.styles';
2
+ import { StyledChip, TextChip } from './TextFieldChip.styles';
3
3
  /**
4
4
  * Чип, отображающий выбранный элемент
5
5
  */
@@ -11,14 +11,23 @@ export var TextFieldChip = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
11
  onClick = _ref.onClick,
12
12
  onClear = _ref.onClear,
13
13
  onKeyDown = _ref.onKeyDown,
14
- _forceChipManipulationWithReadonly = _ref._forceChipManipulationWithReadonly;
14
+ _forceChipManipulationWithReadonly = _ref._forceChipManipulationWithReadonly,
15
+ chipType = _ref.chipType;
15
16
  var onClearHandle = function onClearHandle() {
16
17
  return onClear(id);
17
18
  };
18
19
  var onKeyDownHandle = function onKeyDownHandle(event) {
19
20
  onKeyDown === null || onKeyDown === void 0 || onKeyDown(event, id);
20
21
  };
21
- return /*#__PURE__*/React.createElement(StyledChip, {
22
+ var handleClick = function handleClick(e) {
23
+ if (onClick) {
24
+ onClick(e);
25
+ }
26
+ if (onClear) {
27
+ onClear(id);
28
+ }
29
+ };
30
+ return chipType === 'default' ? /*#__PURE__*/React.createElement(StyledChip, {
22
31
  ref: ref,
23
32
  tabIndex: -1,
24
33
  disabled: disabled,
@@ -32,5 +41,10 @@ export var TextFieldChip = /*#__PURE__*/forwardRef(function (_ref, ref) {
32
41
  // @ts-ignore
33
42
  ,
34
43
  _forceChipManipulationWithReadonly: _forceChipManipulationWithReadonly
35
- });
44
+ }) : /*#__PURE__*/React.createElement(TextChip, {
45
+ ref: ref,
46
+ tabIndex: -1,
47
+ onClick: handleClick,
48
+ onKeyDown: onKeyDownHandle
49
+ }, text);
36
50
  });
@@ -16,4 +16,12 @@ export var StyledChip = /*#__PURE__*/styled(Chip).withConfig({
16
16
  outlineSize: '0.0625rem',
17
17
  outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.chipBorderRadius, ") - 0.1rem)"),
18
18
  outlineColor: /*#__PURE__*/"var(".concat(tokens.focusColor, ")")
19
- }), tokens.chipOpacityReadonly);
19
+ }), tokens.chipOpacityReadonly);
20
+ export var TextChip = /*#__PURE__*/styled.button.withConfig({
21
+ componentId: "plasma-new-hope__sc-1mypbcr-1"
22
+ })(["display:block;flex:none;background:none;border:none;outline:none;padding:0;white-space:nowrap;cursor:pointer;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");color:var(", ");", " &:after{content:',';}&:last-child{&:after{content:'';}}"], tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.color, /*#__PURE__*/addFocus({
23
+ outlineOffset: '0.0625rem',
24
+ outlineSize: '0.0625rem',
25
+ outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.chipBorderRadius, ") - 0.1rem)"),
26
+ outlineColor: /*#__PURE__*/"var(".concat(tokens.focusColor, ")")
27
+ }));
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
2
  import { classes, tokens } from '../../tokens';
3
3
  import { applyHyphens, applyHyphensNormal } from '../../../../mixins';
4
- export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");margin:0;", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(applyHyphensNormal), /*#__PURE__*/String(classes.typoWithBreakWord), /*#__PURE__*/String(applyHyphens));
4
+ export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");margin:0;&.", "{white-space:nowrap;}", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, classes.typoWithNoWrap, applyHyphensNormal, classes.typoWithBreakWord, applyHyphens);
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["size", "children", "color", "style"];
2
+ var _excluded = ["size", "children", "color", "noWrap", "className", "style"];
3
3
  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); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -11,17 +11,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
11
11
  import React, { forwardRef } from 'react';
12
12
  import { applySpacing } from '../../../../mixins/applySpacing';
13
13
  import { base as sizeCSS } from '../../variations/_size/base';
14
+ import { classes } from '../../tokens';
15
+ import { cx } from '../../../../utils';
14
16
  import { base } from './Subtitle.styles';
15
17
  export var subtitleRoot = function subtitleRoot(Root) {
16
18
  return /*#__PURE__*/forwardRef(function (props, ref) {
17
19
  var size = props.size,
18
20
  children = props.children,
19
21
  color = props.color,
22
+ noWrap = props.noWrap,
23
+ className = props.className,
20
24
  style = props.style,
21
25
  rest = _objectWithoutProperties(props, _excluded);
26
+ var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
22
27
  return /*#__PURE__*/React.createElement(Root, _extends({
23
28
  size: size,
24
29
  ref: ref,
30
+ className: cx(withNoWrap, className),
25
31
  style: _objectSpread(_objectSpread({
26
32
  color: color
27
33
  }, style), applySpacing(rest))
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
- import { tokens } from '../../tokens';
2
+ import { classes, tokens } from '../../tokens';
3
3
  import { applyHyphens } from '../../../../mixins';
4
- export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");", ";"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(applyHyphens));
4
+ export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{white-space:nowrap;}", ";"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, classes.typoWithNoWrap, applyHyphens);
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["size", "children", "breakWord", "color", "className", "style"];
2
+ var _excluded = ["size", "children", "breakWord", "noWrap", "color", "className", "style"];
3
3
  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); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -17,15 +17,17 @@ export var typographyOldRoot = function typographyOldRoot(Root) {
17
17
  var size = props.size,
18
18
  children = props.children,
19
19
  breakWord = props.breakWord,
20
+ noWrap = props.noWrap,
20
21
  color = props.color,
21
22
  className = props.className,
22
23
  style = props.style,
23
24
  rest = _objectWithoutProperties(props, _excluded);
25
+ var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
24
26
  var withBreakWord = breakWord ? classes.typoWithBreakWord : undefined;
25
27
  return /*#__PURE__*/React.createElement(Root, _extends({
26
28
  size: size,
27
29
  ref: ref,
28
- className: cx(withBreakWord, className),
30
+ className: cx(withNoWrap, withBreakWord, className),
29
31
  style: _objectSpread(_objectSpread({
30
32
  color: color
31
33
  }, style), applySpacing(rest))
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
2
  import { classes, tokens } from '../tokens';
3
3
  import { applyHyphens, applyHyphensNormal } from '../../../mixins';
4
- export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(applyHyphensNormal), /*#__PURE__*/String(classes.typoWithBreakWord), /*#__PURE__*/String(applyHyphens));
4
+ export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{white-space:nowrap;}", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, classes.typoWithNoWrap, applyHyphensNormal, classes.typoWithBreakWord, applyHyphens);
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
2
  import { classes, tokens } from '../../tokens';
3
3
  import { applyHyphens, applyHyphensNormal } from '../../../../mixins';
4
- export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");text-transform:uppercase;", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(applyHyphensNormal), /*#__PURE__*/String(classes.typoWithBreakWord), /*#__PURE__*/String(applyHyphens));
4
+ export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");text-transform:uppercase;&.", "{white-space:nowrap;}", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, classes.typoWithNoWrap, applyHyphensNormal, classes.typoWithBreakWord, applyHyphens);
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["size", "children", "breakWord", "bold", "color", "className", "style"];
2
+ var _excluded = ["size", "children", "breakWord", "noWrap", "bold", "color", "className", "style"];
3
3
  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); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -18,18 +18,20 @@ export var typographyRootCompose = function typographyRootCompose(defaultArgs) {
18
18
  var size = props.size,
19
19
  children = props.children,
20
20
  breakWord = props.breakWord,
21
+ noWrap = props.noWrap,
21
22
  _props$bold = props.bold,
22
23
  bold = _props$bold === void 0 ? defaultArgs === null || defaultArgs === void 0 ? void 0 : defaultArgs.defaultBold : _props$bold,
23
24
  color = props.color,
24
25
  className = props.className,
25
26
  style = props.style,
26
27
  rest = _objectWithoutProperties(props, _excluded);
28
+ var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
27
29
  var withBreakWord = breakWord ? classes.typoWithBreakWord : undefined;
28
30
  var typographyBold = bold ? classes.typoBold : undefined;
29
31
  return /*#__PURE__*/React.createElement(Root, _extends({
30
32
  size: size,
31
33
  ref: ref,
32
- className: cx(withBreakWord, typographyBold, className),
34
+ className: cx(withNoWrap, withBreakWord, typographyBold, className),
33
35
  style: _objectSpread(_objectSpread({
34
36
  color: color
35
37
  }, style), applySpacing(rest)),
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
2
  import { applyHyphens, applyHyphensNormal } from '../../mixins';
3
3
  import { classes, tokens } from './tokens';
4
- export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{font-weight:var(", ");}", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(classes.typoBold), tokens.typoFontWeightBold, /*#__PURE__*/String(applyHyphensNormal), /*#__PURE__*/String(classes.typoWithBreakWord), /*#__PURE__*/String(applyHyphens));
4
+ export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{font-weight:var(", ");}&.", "{white-space:nowrap;}", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, classes.typoBold, tokens.typoFontWeightBold, classes.typoWithNoWrap, applyHyphensNormal, classes.typoWithBreakWord, applyHyphens);
@@ -19,6 +19,10 @@ title: Typography
19
19
  По умолчанию в типографике слова переносятся по слогам.
20
20
  Чтобы отключить данный функционал, необходимо установить свойство `breakWord` в значении `false`.
21
21
 
22
+ ## Пробелы
23
+ По умолчанию в типографике если текст превышает ширину элемента, то слова будут переноситься по пробелам.
24
+ Чтобы запретить перенос по пробелам, необходимо установить свойство `noWrap` в значении `true`.
25
+
22
26
  ## Состав
23
27
 
24
28
  ### Hero unit
@@ -1,4 +1,5 @@
1
1
  export var classes = {
2
+ typoWithNoWrap: 'with-no-wrap',
2
3
  typoWithBreakWord: 'with-break-word',
3
4
  typoBold: 'typography-bold'
4
5
  };
@@ -104,6 +104,11 @@ const meta: Meta<StorySelectProps> = {
104
104
  },
105
105
  if: { arg: 'required', truthy: false },
106
106
  },
107
+ chipType: {
108
+ control: 'select',
109
+ options: ['default', 'text'],
110
+ if: { arg: 'target', eq: 'textfield-like' },
111
+ },
107
112
  },
108
113
  args: {
109
114
  target: 'textfield-like',
@@ -121,6 +126,7 @@ const meta: Meta<StorySelectProps> = {
121
126
  optional: false,
122
127
  required: false,
123
128
  requiredPlacement: 'right',
129
+ chipType: 'default',
124
130
  },
125
131
  parameters: {
126
132
  controls: {
@@ -144,6 +150,7 @@ const meta: Meta<StorySelectProps> = {
144
150
  'optional',
145
151
  'required',
146
152
  'requiredPlacement',
153
+ 'chipType',
147
154
  ],
148
155
  },
149
156
  },
@@ -382,7 +389,7 @@ const SingleStory = (args: StorySelectProps) => {
382
389
  export const Single: StoryObj<StorySelectProps> = {
383
390
  parameters: {
384
391
  controls: {
385
- exclude: ['chipView', 'isTargetAmount'],
392
+ exclude: ['chipView', 'isTargetAmount', 'chipType'],
386
393
  },
387
394
  },
388
395
  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
  };
@@ -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
  };