@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
@@ -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
  );
@@ -20,14 +20,23 @@ var TextFieldChip = exports.TextFieldChip = /*#__PURE__*/(0, _react.forwardRef)(
20
20
  onClick = _ref.onClick,
21
21
  onClear = _ref.onClear,
22
22
  onKeyDown = _ref.onKeyDown,
23
- _forceChipManipulationWithReadonly = _ref._forceChipManipulationWithReadonly;
23
+ _forceChipManipulationWithReadonly = _ref._forceChipManipulationWithReadonly,
24
+ chipType = _ref.chipType;
24
25
  var onClearHandle = function onClearHandle() {
25
26
  return onClear(id);
26
27
  };
27
28
  var onKeyDownHandle = function onKeyDownHandle(event) {
28
29
  onKeyDown === null || onKeyDown === void 0 || onKeyDown(event, id);
29
30
  };
30
- return /*#__PURE__*/_react["default"].createElement(_TextFieldChip.StyledChip, {
31
+ var handleClick = function handleClick(e) {
32
+ if (onClick) {
33
+ onClick(e);
34
+ }
35
+ if (onClear) {
36
+ onClear(id);
37
+ }
38
+ };
39
+ return chipType === 'default' ? /*#__PURE__*/_react["default"].createElement(_TextFieldChip.StyledChip, {
31
40
  ref: ref,
32
41
  tabIndex: -1,
33
42
  disabled: disabled,
@@ -41,5 +50,10 @@ var TextFieldChip = exports.TextFieldChip = /*#__PURE__*/(0, _react.forwardRef)(
41
50
  // @ts-ignore
42
51
  ,
43
52
  _forceChipManipulationWithReadonly: _forceChipManipulationWithReadonly
44
- });
53
+ }) : /*#__PURE__*/_react["default"].createElement(_TextFieldChip.TextChip, {
54
+ ref: ref,
55
+ tabIndex: -1,
56
+ onClick: handleClick,
57
+ onKeyDown: onKeyDownHandle
58
+ }, text);
45
59
  });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.StyledChip = void 0;
6
+ exports.TextChip = exports.StyledChip = void 0;
7
7
  var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
8
8
  var _Chip = /*#__PURE__*/require("../../../Chip");
9
9
  var _engines = /*#__PURE__*/require("../../../../engines");
@@ -22,4 +22,12 @@ var StyledChip = exports.StyledChip = /*#__PURE__*/(0, _styledComponents["defaul
22
22
  outlineSize: '0.0625rem',
23
23
  outlineRadius: /*#__PURE__*/"calc(var(".concat(_TextField.tokens.chipBorderRadius, ") - 0.1rem)"),
24
24
  outlineColor: /*#__PURE__*/"var(".concat(_TextField.tokens.focusColor, ")")
25
- }), _TextField.tokens.chipOpacityReadonly);
25
+ }), _TextField.tokens.chipOpacityReadonly);
26
+ var TextChip = exports.TextChip = /*#__PURE__*/_styledComponents["default"].button.withConfig({
27
+ componentId: "plasma-new-hope__sc-1mypbcr-1"
28
+ })(["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:'';}}"], _TextField.tokens.fontFamily, _TextField.tokens.fontSize, _TextField.tokens.fontStyle, _TextField.tokens.fontWeight, _TextField.tokens.letterSpacing, _TextField.tokens.lineHeight, _TextField.tokens.color, /*#__PURE__*/(0, _mixins.addFocus)({
29
+ outlineOffset: '0.0625rem',
30
+ outlineSize: '0.0625rem',
31
+ outlineRadius: /*#__PURE__*/"calc(var(".concat(_TextField.tokens.chipBorderRadius, ") - 0.1rem)"),
32
+ outlineColor: /*#__PURE__*/"var(".concat(_TextField.tokens.focusColor, ")")
33
+ }));
@@ -7,4 +7,4 @@ exports.base = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _tokens = /*#__PURE__*/require("../../tokens");
9
9
  var _mixins = /*#__PURE__*/require("../../../../mixins");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");margin:0;", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, /*#__PURE__*/String(_mixins.applyHyphensNormal), /*#__PURE__*/String(_tokens.classes.typoWithBreakWord), /*#__PURE__*/String(_mixins.applyHyphens));
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.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.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoWithNoWrap, _mixins.applyHyphensNormal, _tokens.classes.typoWithBreakWord, _mixins.applyHyphens);
@@ -8,8 +8,10 @@ exports.subtitleRoot = exports.subtitleConfig = void 0;
8
8
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
9
  var _applySpacing = /*#__PURE__*/require("../../../../mixins/applySpacing");
10
10
  var _base = /*#__PURE__*/require("../../variations/_size/base");
11
+ var _tokens = /*#__PURE__*/require("../../tokens");
12
+ var _utils = /*#__PURE__*/require("../../../../utils");
11
13
  var _Subtitle = /*#__PURE__*/require("./Subtitle.styles");
12
- var _excluded = ["size", "children", "color", "style"];
14
+ var _excluded = ["size", "children", "color", "noWrap", "className", "style"];
13
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
17
  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); }
@@ -25,11 +27,15 @@ var subtitleRoot = exports.subtitleRoot = function subtitleRoot(Root) {
25
27
  var size = props.size,
26
28
  children = props.children,
27
29
  color = props.color,
30
+ noWrap = props.noWrap,
31
+ className = props.className,
28
32
  style = props.style,
29
33
  rest = _objectWithoutProperties(props, _excluded);
34
+ var withNoWrap = noWrap ? _tokens.classes.typoWithNoWrap : undefined;
30
35
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
31
36
  size: size,
32
37
  ref: ref,
38
+ className: (0, _utils.cx)(withNoWrap, className),
33
39
  style: _objectSpread(_objectSpread({
34
40
  color: color
35
41
  }, style), (0, _applySpacing.applySpacing)(rest))
@@ -7,4 +7,4 @@ exports.base = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _tokens = /*#__PURE__*/require("../../tokens");
9
9
  var _mixins = /*#__PURE__*/require("../../../../mixins");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");", ";"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, /*#__PURE__*/String(_mixins.applyHyphens));
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{white-space:nowrap;}", ";"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoWithNoWrap, _mixins.applyHyphens);
@@ -9,7 +9,7 @@ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")
9
9
  var _applySpacing = /*#__PURE__*/require("../../../mixins/applySpacing");
10
10
  var _tokens = /*#__PURE__*/require("../tokens");
11
11
  var _utils = /*#__PURE__*/require("../../../utils");
12
- var _excluded = ["size", "children", "breakWord", "color", "className", "style"];
12
+ var _excluded = ["size", "children", "breakWord", "noWrap", "color", "className", "style"];
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
14
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
15
  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); }
@@ -25,15 +25,17 @@ var typographyOldRoot = exports.typographyOldRoot = function typographyOldRoot(R
25
25
  var size = props.size,
26
26
  children = props.children,
27
27
  breakWord = props.breakWord,
28
+ noWrap = props.noWrap,
28
29
  color = props.color,
29
30
  className = props.className,
30
31
  style = props.style,
31
32
  rest = _objectWithoutProperties(props, _excluded);
33
+ var withNoWrap = noWrap ? _tokens.classes.typoWithNoWrap : undefined;
32
34
  var withBreakWord = breakWord ? _tokens.classes.typoWithBreakWord : undefined;
33
35
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
34
36
  size: size,
35
37
  ref: ref,
36
- className: (0, _utils.cx)(withBreakWord, className),
38
+ className: (0, _utils.cx)(withNoWrap, withBreakWord, className),
37
39
  style: _objectSpread(_objectSpread({
38
40
  color: color
39
41
  }, style), (0, _applySpacing.applySpacing)(rest))
@@ -7,4 +7,4 @@ exports.base = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _tokens = /*#__PURE__*/require("../tokens");
9
9
  var _mixins = /*#__PURE__*/require("../../../mixins");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, /*#__PURE__*/String(_mixins.applyHyphensNormal), /*#__PURE__*/String(_tokens.classes.typoWithBreakWord), /*#__PURE__*/String(_mixins.applyHyphens));
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{white-space:nowrap;}", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoWithNoWrap, _mixins.applyHyphensNormal, _tokens.classes.typoWithBreakWord, _mixins.applyHyphens);
@@ -7,4 +7,4 @@ exports.base = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _tokens = /*#__PURE__*/require("../../tokens");
9
9
  var _mixins = /*#__PURE__*/require("../../../../mixins");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");text-transform:uppercase;", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, /*#__PURE__*/String(_mixins.applyHyphensNormal), /*#__PURE__*/String(_tokens.classes.typoWithBreakWord), /*#__PURE__*/String(_mixins.applyHyphens));
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.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.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoWithNoWrap, _mixins.applyHyphensNormal, _tokens.classes.typoWithBreakWord, _mixins.applyHyphens);
@@ -9,7 +9,7 @@ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")
9
9
  var _applySpacing = /*#__PURE__*/require("../../mixins/applySpacing");
10
10
  var _utils = /*#__PURE__*/require("../../utils");
11
11
  var _tokens = /*#__PURE__*/require("./tokens");
12
- var _excluded = ["size", "children", "breakWord", "bold", "color", "className", "style"];
12
+ var _excluded = ["size", "children", "breakWord", "noWrap", "bold", "color", "className", "style"];
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
14
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
15
  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); }
@@ -26,18 +26,20 @@ var typographyRootCompose = exports.typographyRootCompose = function typographyR
26
26
  var size = props.size,
27
27
  children = props.children,
28
28
  breakWord = props.breakWord,
29
+ noWrap = props.noWrap,
29
30
  _props$bold = props.bold,
30
31
  bold = _props$bold === void 0 ? defaultArgs === null || defaultArgs === void 0 ? void 0 : defaultArgs.defaultBold : _props$bold,
31
32
  color = props.color,
32
33
  className = props.className,
33
34
  style = props.style,
34
35
  rest = _objectWithoutProperties(props, _excluded);
36
+ var withNoWrap = noWrap ? _tokens.classes.typoWithNoWrap : undefined;
35
37
  var withBreakWord = breakWord ? _tokens.classes.typoWithBreakWord : undefined;
36
38
  var typographyBold = bold ? _tokens.classes.typoBold : undefined;
37
39
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
38
40
  size: size,
39
41
  ref: ref,
40
- className: (0, _utils.cx)(withBreakWord, typographyBold, className),
42
+ className: (0, _utils.cx)(withNoWrap, withBreakWord, typographyBold, className),
41
43
  style: _objectSpread(_objectSpread({
42
44
  color: color
43
45
  }, style), (0, _applySpacing.applySpacing)(rest)),
@@ -7,4 +7,4 @@ exports.base = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _mixins = /*#__PURE__*/require("../../mixins");
9
9
  var _tokens = /*#__PURE__*/require("./tokens");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{font-weight:var(", ");}", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, /*#__PURE__*/String(_tokens.classes.typoBold), _tokens.tokens.typoFontWeightBold, /*#__PURE__*/String(_mixins.applyHyphensNormal), /*#__PURE__*/String(_tokens.classes.typoWithBreakWord), /*#__PURE__*/String(_mixins.applyHyphens));
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.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.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoBold, _tokens.tokens.typoFontWeightBold, _tokens.classes.typoWithNoWrap, _mixins.applyHyphensNormal, _tokens.classes.typoWithBreakWord, _mixins.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
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.tokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
+ typoWithNoWrap: 'with-no-wrap',
8
9
  typoWithBreakWord: 'with-break-word',
9
10
  typoBold: 'typography-bold'
10
11
  };
@@ -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
  };
@@ -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
  },