@salutejs/plasma-new-hope 0.195.0-canary.1546.11913646617.0 → 0.195.0-canary.1556.11929098791.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (357) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +17 -17
  2. package/cjs/components/Autocomplete/Autocomplete.js +7 -1
  3. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  4. package/cjs/components/Badge/Badge.css +4 -4
  5. package/cjs/components/Badge/Badge.js +7 -17
  6. package/cjs/components/Badge/Badge.js.map +1 -1
  7. package/cjs/components/Badge/Badge.tokens.js +5 -10
  8. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  9. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  10. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  11. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +1 -0
  12. package/cjs/components/Badge/variations/_size/base.js +1 -1
  13. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  14. package/{es/components/Badge/variations/_size/base_bu5opk.css → cjs/components/Badge/variations/_size/base_to0y5x.css} +1 -1
  15. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  16. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  17. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +1 -0
  18. package/cjs/components/Badge/variations/_view/base.js +1 -1
  19. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  20. package/cjs/components/Badge/variations/_view/base_qlxank.css +1 -0
  21. package/cjs/components/Combobox/ComboboxNew/Combobox.css +17 -17
  22. package/cjs/components/Combobox/ComboboxNew/Combobox.js +25 -6
  23. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  24. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +17 -17
  25. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +17 -17
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  27. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  28. package/cjs/components/Combobox/ComboboxOld/Combobox.css +5 -4
  29. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
  30. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
  31. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
  32. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
  33. package/cjs/components/DatePicker/RangeDate/RangeDate.css +17 -17
  34. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -17
  35. package/cjs/components/DatePicker/SingleDate/SingleDate.css +17 -17
  36. package/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  37. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  38. package/cjs/components/Dropdown/Dropdown.css +5 -4
  39. package/cjs/components/Dropdown/Dropdown.js +4 -2
  40. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  41. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
  42. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  43. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  44. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -1
  45. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  46. package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
  47. package/cjs/components/Pagination/Pagination.css +17 -17
  48. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  49. package/cjs/components/Range/Range.css +17 -17
  50. package/cjs/components/Select/Select.css +17 -17
  51. package/cjs/components/Select/Select.js +0 -1
  52. package/cjs/components/Select/Select.js.map +1 -1
  53. package/cjs/components/Select/ui/Inner/Inner.css +17 -17
  54. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  55. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  56. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  57. package/cjs/components/Select/ui/Target/Target.css +17 -17
  58. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +17 -17
  59. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +28 -6
  60. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  61. package/cjs/components/Slider/Slider.css +17 -17
  62. package/cjs/components/Slider/components/Double/Double.css +17 -17
  63. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +17 -17
  64. package/cjs/components/TextField/TextField.js +9 -5
  65. package/cjs/components/TextField/TextField.js.map +1 -1
  66. package/cjs/components/TextField/TextField.styles.js +20 -11
  67. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  68. package/cjs/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  69. package/cjs/components/TextField/TextField.tokens.js +1 -0
  70. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  71. package/cjs/components/TextField/ui/Hint/Hint.css +20 -20
  72. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  73. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  74. package/cjs/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  75. package/cjs/index.css +26 -25
  76. package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
  77. package/emotion/cjs/components/Badge/Badge.js +7 -17
  78. package/emotion/cjs/components/Badge/Badge.template-doc.mdx +16 -40
  79. package/emotion/cjs/components/Badge/Badge.tokens.js +6 -10
  80. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  81. package/emotion/cjs/components/Badge/variations/_size/base.js +1 -2
  82. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  83. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  84. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +29 -6
  85. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  86. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  87. package/emotion/cjs/components/Dropdown/Dropdown.js +4 -2
  88. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  89. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
  90. package/emotion/cjs/components/Select/Select.js +0 -1
  91. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  92. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +34 -6
  93. package/emotion/cjs/components/TextField/TextField.js +10 -6
  94. package/emotion/cjs/components/TextField/TextField.styles.js +29 -26
  95. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -0
  96. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  97. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  98. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +6 -23
  99. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  100. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  101. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +6 -27
  102. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  103. package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
  104. package/emotion/es/components/Badge/Badge.js +8 -18
  105. package/emotion/es/components/Badge/Badge.template-doc.mdx +16 -40
  106. package/emotion/es/components/Badge/Badge.tokens.js +5 -9
  107. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  108. package/emotion/es/components/Badge/variations/_size/base.js +2 -3
  109. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  110. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  111. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +29 -6
  112. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  113. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  114. package/emotion/es/components/Dropdown/Dropdown.js +4 -2
  115. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  116. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
  117. package/emotion/es/components/Select/Select.js +0 -1
  118. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  119. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +34 -6
  120. package/emotion/es/components/TextField/TextField.js +10 -6
  121. package/emotion/es/components/TextField/TextField.styles.js +29 -26
  122. package/emotion/es/components/TextField/TextField.tokens.js +1 -0
  123. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  124. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  125. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +6 -23
  126. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  127. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  128. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +6 -27
  129. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  130. package/es/components/Autocomplete/Autocomplete.css +17 -17
  131. package/es/components/Autocomplete/Autocomplete.js +7 -1
  132. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  133. package/es/components/Badge/Badge.css +4 -4
  134. package/es/components/Badge/Badge.js +10 -20
  135. package/es/components/Badge/Badge.js.map +1 -1
  136. package/es/components/Badge/Badge.tokens.js +6 -10
  137. package/es/components/Badge/Badge.tokens.js.map +1 -1
  138. package/es/components/Badge/variations/_clear/base.js +1 -1
  139. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  140. package/es/components/Badge/variations/_clear/base_oopyb7.css +1 -0
  141. package/es/components/Badge/variations/_size/base.js +1 -1
  142. package/es/components/Badge/variations/_size/base.js.map +1 -1
  143. package/{cjs/components/Badge/variations/_size/base_bu5opk.css → es/components/Badge/variations/_size/base_to0y5x.css} +1 -1
  144. package/es/components/Badge/variations/_transparent/base.js +1 -1
  145. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  146. package/es/components/Badge/variations/_transparent/base_1l6036y.css +1 -0
  147. package/es/components/Badge/variations/_view/base.js +1 -1
  148. package/es/components/Badge/variations/_view/base.js.map +1 -1
  149. package/es/components/Badge/variations/_view/base_qlxank.css +1 -0
  150. package/es/components/Combobox/ComboboxNew/Combobox.css +17 -17
  151. package/es/components/Combobox/ComboboxNew/Combobox.js +26 -7
  152. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  153. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +17 -17
  154. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +17 -17
  155. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  156. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  157. package/es/components/Combobox/ComboboxOld/Combobox.css +5 -4
  158. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
  159. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
  160. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
  161. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
  162. package/es/components/DatePicker/RangeDate/RangeDate.css +17 -17
  163. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -17
  164. package/es/components/DatePicker/SingleDate/SingleDate.css +17 -17
  165. package/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  166. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  167. package/es/components/Dropdown/Dropdown.css +5 -4
  168. package/es/components/Dropdown/Dropdown.js +4 -2
  169. package/es/components/Dropdown/Dropdown.js.map +1 -1
  170. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
  171. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  172. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  173. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -2
  174. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  175. package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
  176. package/es/components/Pagination/Pagination.css +17 -17
  177. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  178. package/es/components/Range/Range.css +17 -17
  179. package/es/components/Select/Select.css +17 -17
  180. package/es/components/Select/Select.js +0 -1
  181. package/es/components/Select/Select.js.map +1 -1
  182. package/es/components/Select/ui/Inner/Inner.css +17 -17
  183. package/es/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  184. package/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  185. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  186. package/es/components/Select/ui/Target/Target.css +17 -17
  187. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +17 -17
  188. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +29 -7
  189. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  190. package/es/components/Slider/Slider.css +17 -17
  191. package/es/components/Slider/components/Double/Double.css +17 -17
  192. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +17 -17
  193. package/es/components/TextField/TextField.js +9 -5
  194. package/es/components/TextField/TextField.js.map +1 -1
  195. package/es/components/TextField/TextField.styles.js +20 -11
  196. package/es/components/TextField/TextField.styles.js.map +1 -1
  197. package/es/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  198. package/es/components/TextField/TextField.tokens.js +1 -0
  199. package/es/components/TextField/TextField.tokens.js.map +1 -1
  200. package/es/components/TextField/ui/Hint/Hint.css +20 -20
  201. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  202. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  203. package/es/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  204. package/es/index.css +26 -25
  205. package/package.json +3 -2
  206. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
  207. package/styled-components/cjs/components/Badge/Badge.js +7 -17
  208. package/styled-components/cjs/components/Badge/Badge.template-doc.mdx +16 -40
  209. package/styled-components/cjs/components/Badge/Badge.tokens.js +6 -10
  210. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  211. package/styled-components/cjs/components/Badge/variations/_size/base.js +1 -2
  212. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  213. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  214. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +29 -6
  215. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  216. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  217. package/styled-components/cjs/components/Dropdown/Dropdown.js +4 -2
  218. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  219. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
  220. package/styled-components/cjs/components/Select/Select.js +0 -1
  221. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  222. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +34 -6
  223. package/styled-components/cjs/components/TextField/TextField.js +9 -5
  224. package/styled-components/cjs/components/TextField/TextField.styles.js +9 -6
  225. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -0
  226. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  227. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  228. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +6 -23
  229. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  230. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  231. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +6 -27
  232. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  233. package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
  234. package/styled-components/es/components/Badge/Badge.js +8 -18
  235. package/styled-components/es/components/Badge/Badge.template-doc.mdx +16 -40
  236. package/styled-components/es/components/Badge/Badge.tokens.js +5 -9
  237. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  238. package/styled-components/es/components/Badge/variations/_size/base.js +2 -3
  239. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  240. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  241. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +29 -6
  242. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  243. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  244. package/styled-components/es/components/Dropdown/Dropdown.js +4 -2
  245. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  246. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
  247. package/styled-components/es/components/Select/Select.js +0 -1
  248. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  249. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +34 -6
  250. package/styled-components/es/components/TextField/TextField.js +9 -5
  251. package/styled-components/es/components/TextField/TextField.styles.js +9 -6
  252. package/styled-components/es/components/TextField/TextField.tokens.js +1 -0
  253. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  254. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  255. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +6 -23
  256. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  257. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  258. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +6 -27
  259. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  260. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  261. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +717 -61
  262. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  263. package/types/components/Badge/Badge.d.ts.map +1 -1
  264. package/types/components/Badge/Badge.tokens.d.ts +4 -8
  265. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  266. package/types/components/Badge/Badge.types.d.ts +5 -18
  267. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  268. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  269. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  270. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  271. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +31 -12
  272. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  273. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  274. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +717 -61
  275. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  276. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
  277. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  278. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +717 -61
  279. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  280. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +28 -9
  281. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  282. package/types/components/Dropdown/Dropdown.d.ts +50 -2
  283. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  284. package/types/components/Dropdown/Dropdown.types.d.ts +11 -6
  285. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  286. package/types/components/Dropdown/index.d.ts +1 -0
  287. package/types/components/Dropdown/index.d.ts.map +1 -1
  288. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  289. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +1 -0
  290. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  291. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +176 -4
  292. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  293. package/types/components/Range/Range.styles.d.ts +717 -61
  294. package/types/components/Range/Range.styles.d.ts.map +1 -1
  295. package/types/components/Select/Select.d.ts.map +1 -1
  296. package/types/components/Select/Select.types.d.ts +31 -12
  297. package/types/components/Select/Select.types.d.ts.map +1 -1
  298. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  299. package/types/components/Select/ui/Target/Target.d.ts +1 -1
  300. package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
  301. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  302. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  303. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +717 -61
  304. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  305. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
  306. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  307. package/types/components/Slider/components/Double/Double.styles.d.ts +717 -61
  308. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  309. package/types/components/TextField/TextField.d.ts.map +1 -1
  310. package/types/components/TextField/TextField.styles.d.ts +3 -1
  311. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  312. package/types/components/TextField/TextField.tokens.d.ts +1 -0
  313. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  314. package/types/components/TextField/TextField.types.d.ts +43 -20
  315. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  316. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +3 -5
  317. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  318. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  319. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +4 -61
  320. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  321. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1045 -133
  322. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  323. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +47 -1
  324. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  325. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +25 -1
  326. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  327. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +1246 -62
  328. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  329. package/types/examples/plasma_b2c/components/Select/Select.d.ts +176 -4
  330. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  331. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +717 -61
  332. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  333. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +3 -5
  334. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  335. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  336. package/types/examples/plasma_web/components/Badge/Badge.d.ts +4 -61
  337. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  338. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1045 -133
  339. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  340. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +47 -1
  341. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  342. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +25 -1
  343. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  344. package/types/examples/plasma_web/components/Mask/Mask.d.ts +1246 -62
  345. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  346. package/types/examples/plasma_web/components/Select/Select.d.ts +176 -4
  347. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  348. package/types/examples/plasma_web/components/TextField/TextField.d.ts +717 -61
  349. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  350. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +0 -1
  351. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +0 -1
  352. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +0 -1
  353. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  354. package/es/components/Badge/variations/_clear/base_wiboj8.css +0 -1
  355. package/es/components/Badge/variations/_transparent/base_aapqhz.css +0 -1
  356. package/es/components/Badge/variations/_view/base_j3xzf3.css +0 -1
  357. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
@@ -32,7 +32,6 @@ export var Item = function Item(_ref) {
32
32
  handleItemClick = _useContext.handleItemClick,
33
33
  variant = _useContext.variant,
34
34
  renderItem = _useContext.renderItem,
35
- valueToItemMap = _useContext.valueToItemMap,
36
35
  treeId = _useContext.treeId;
37
36
  var itemDisabled = Boolean(disabled || isDisabled);
38
37
  var disabledClassName = itemDisabled ? classes.dropdownItemIsDisabled : undefined;
@@ -87,7 +86,7 @@ export var Item = function Item(_ref) {
87
86
  }))), !multiselect && checked.get(item.value) === 'done' && /*#__PURE__*/React.createElement(IconDone, {
88
87
  size: sizeToIconSize(size, variant),
89
88
  color: "inherit"
90
- })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(valueToItemMap.get(value))) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
+ })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(item)) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
91
90
  contentLeft: contentLeft,
92
91
  contentRight: contentRight
93
92
  // TODO: #1548
@@ -1,4 +1,10 @@
1
1
  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); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2
8
  import React, { forwardRef } from 'react';
3
9
  import { sizeToIconSize, getItemId } from '../../../../utils';
4
10
  import { classes } from '../../../../Select.tokens';
@@ -10,9 +16,10 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
10
16
  multiselect = _ref.multiselect,
11
17
  value = _ref.value,
12
18
  label = _ref.label,
19
+ labelPlacement = _ref.labelPlacement,
20
+ hasPlaceholder = _ref.hasPlaceholder,
13
21
  placeholder = _ref.placeholder,
14
22
  onKeyDown = _ref.onKeyDown,
15
- labelPlacement = _ref.labelPlacement,
16
23
  size = _ref.size,
17
24
  view = _ref.view,
18
25
  handleClickArrow = _ref.handleClickArrow,
@@ -47,9 +54,24 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
47
54
 
48
55
  // Обработчик чипов
49
56
  var handleChipsChange = function handleChipsChange(chipLabels) {
50
- onChange(chipLabels.map(function (chipLabel) {
51
- return labelToItemMap.get(chipLabel).value;
52
- }));
57
+ if (!Array.isArray(value)) return;
58
+
59
+ // TODO: #1564
60
+ // Из лейблов чипов получаем value у item и далее прокидываем его в onChange.
61
+ if (renderValue && !isTargetAmount) {
62
+ var resultValues = _toConsumableArray(value);
63
+ value.forEach(function (_, index) {
64
+ var labelAfterRenderValue = renderValue(labelToItemMap.get(valueToItemMap.get(value[index]).label));
65
+ if (!chipLabels.includes(labelAfterRenderValue)) {
66
+ resultValues.splice(index, 1);
67
+ }
68
+ });
69
+ onChange(resultValues);
70
+ } else {
71
+ onChange(chipLabels.map(function (chipLabel) {
72
+ return labelToItemMap.get(chipLabel).value;
73
+ }));
74
+ }
53
75
  };
54
76
  return /*#__PURE__*/React.createElement(StyledTextField, _extends({
55
77
  ref: ref,
@@ -58,10 +80,16 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
58
80
  value: multiselect ? undefined : ((_valueToItemMap$get = valueToItemMap.get(value.toString())) === null || _valueToItemMap$get === void 0 ? void 0 : _valueToItemMap$get.label) || '',
59
81
  size: size,
60
82
  view: view,
61
- chipView: chipView,
83
+ chipView: chipView
84
+ }, labelPlacement === 'inner' ? {
85
+ label: label,
62
86
  labelPlacement: labelPlacement,
63
- disabled: disabled,
87
+ hasPlaceholder: hasPlaceholder
88
+ } : {
64
89
  label: label,
90
+ labelPlacement: labelPlacement
91
+ }, {
92
+ disabled: disabled,
65
93
  placeholder: value instanceof Array && value.length ? '' : placeholder,
66
94
  contentLeft: contentLeft,
67
95
  contentRight: /*#__PURE__*/React.createElement(IconArrowWrapper, {
@@ -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", "hasPlaceholder", "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"];
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."); }
@@ -39,6 +39,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
39
39
  contentRight = _ref.contentRight,
40
40
  label = _ref.label,
41
41
  labelPlacement = _ref.labelPlacement,
42
+ hasPlaceholder = _ref.hasPlaceholder,
42
43
  textBefore = _ref.textBefore,
43
44
  textAfter = _ref.textAfter,
44
45
  placeholder = _ref.placeholder,
@@ -114,10 +115,10 @@ export var textFieldRoot = function textFieldRoot(Root) {
114
115
  var hasLabelValue = Boolean(label);
115
116
  var hasInnerLabel = size !== 'xs' && labelPlacement === 'inner' && !isChipsVisible && hasLabelValue;
116
117
  var hasOuterLabel = labelPlacement === 'outer' && hasLabelValue;
117
- var hasPlaceholder = Boolean(placeholder) && !hasInnerLabel;
118
+ var innerHasPlaceholder = Boolean(placeholder) && (hasPlaceholder || !hasInnerLabel);
118
119
  var innerLabelValue = hasInnerLabel || hasOuterLabel ? label : undefined;
119
120
  var innerLabelPlacementValue = labelPlacement === 'inner' && !hasInnerLabel ? undefined : labelPlacement;
120
- var innerPlaceholderValue = hasPlaceholder ? placeholder : undefined;
121
+ var innerPlaceholderValue = innerHasPlaceholder ? placeholder : undefined;
121
122
  var placeholderShown = Boolean(innerPlaceholderValue) && !hasValue;
122
123
  var clearClass = clear ? classes.clear : undefined;
123
124
  var hasDividerClass = hasDivider ? classes.hasDivider : undefined;
@@ -125,6 +126,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
125
126
  var requiredPlacementClass = requiredPlacement === 'right' ? classes.requiredAlignRight : undefined;
126
127
  var labelPlacementClass = innerLabelPlacementValue ? classes["".concat(innerLabelPlacementValue, "LabelPlacement")] : undefined;
127
128
  var hasValueClass = hasValue ? classes.hasValue : undefined;
129
+ var hasPlaceholderClass = innerHasPlaceholder && placeholderShown && classes.forcePlaceholder;
128
130
  var wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;
129
131
  var wrapperWithoutRightContent = !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;
130
132
  var hintRef = useOutsideClick(function () {
@@ -333,7 +335,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
333
335
  "aria-labelledby": labelId,
334
336
  "aria-describedby": helperTextId,
335
337
  placeholder: innerPlaceholderValue,
336
- className: cx(hasValueClass),
338
+ className: cx(hasValueClass, hasPlaceholderClass),
337
339
  disabled: disabled,
338
340
  readOnly: !disabled && readOnly,
339
341
  onInput: handleInput,
@@ -342,7 +344,9 @@ export var textFieldRoot = function textFieldRoot(Root) {
342
344
  }, rest)), hasInnerLabel && /*#__PURE__*/React.createElement(Label, {
343
345
  id: labelId,
344
346
  htmlFor: innerId
345
- }, innerLabelValue, optionalTextNode), placeholderShown && !hasValue && /*#__PURE__*/React.createElement(InputPlaceholder, null, innerPlaceholderValue, hasPlaceholderOptional && optionalTextNode)), textAfter && /*#__PURE__*/React.createElement(StyledTextAfter, null, textAfter)), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
347
+ }, innerLabelValue, optionalTextNode), placeholderShown && !hasValue && /*#__PURE__*/React.createElement(InputPlaceholder, {
348
+ hasPadding: hasPlaceholder && size !== 'xs'
349
+ }, innerPlaceholderValue, hasPlaceholderOptional && optionalTextNode)), textAfter && /*#__PURE__*/React.createElement(StyledTextAfter, null, textAfter)), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
346
350
  id: helperTextId
347
351
  }, leftHelper));
348
352
  });
@@ -24,11 +24,14 @@ export var InputContainer = /*#__PURE__*/styled.div.withConfig({
24
24
  })(["position:relative;flex:1;min-width:60%;"]);
25
25
  export var InputPlaceholder = /*#__PURE__*/styled.div.withConfig({
26
26
  componentId: "plasma-new-hope__sc-g4vxbb-6"
27
- })(["position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;white-space:nowrap;pointer-events:none;user-select:none;font:inherit;letter-spacing:inherit;line-height:inherit;color:var(", ");"], tokens.placeholderColor);
27
+ })(["position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;white-space:nowrap;pointer-events:none;user-select:none;font:inherit;letter-spacing:inherit;line-height:inherit;color:var(", ");padding:", ";"], tokens.placeholderColor, function (_ref) {
28
+ var hasPadding = _ref.hasPadding;
29
+ return hasPadding ? "var(".concat(tokens.contentLabelInnerPadding, ")") : '0';
30
+ });
28
31
  export var OuterLabelWrapper = /*#__PURE__*/styled.div.withConfig({
29
32
  componentId: "plasma-new-hope__sc-g4vxbb-7"
30
- })(["display:flex;align-items:center;margin-bottom:", ";"], function (_ref) {
31
- var isInnerLabel = _ref.isInnerLabel;
33
+ })(["display:flex;align-items:center;margin-bottom:", ";"], function (_ref2) {
34
+ var isInnerLabel = _ref2.isInnerLabel;
32
35
  return isInnerLabel ? "var(".concat(tokens.titleCaptionInnerLabelOffset, ")") : "var(".concat(tokens.labelOffset, ")");
33
36
  });
34
37
  export var TitleCaption = /*#__PURE__*/styled.div.withConfig({
@@ -42,9 +45,9 @@ export var Label = /*#__PURE__*/styled.label.withConfig({
42
45
  })(["display:inline-flex;"]);
43
46
  export var StyledContentLeft = /*#__PURE__*/styled.div.withConfig({
44
47
  componentId: "plasma-new-hope__sc-g4vxbb-11"
45
- })(["margin:var(", ");color:", ";line-height:0;"], tokens.leftContentMargin, function (_ref2) {
46
- var isDefaultView = _ref2.isDefaultView,
47
- isClear = _ref2.isClear;
48
+ })(["margin:var(", ");color:", ";line-height:0;"], tokens.leftContentMargin, function (_ref3) {
49
+ var isDefaultView = _ref3.isDefaultView,
50
+ isClear = _ref3.isClear;
48
51
  return !isDefaultView && isClear ? "var(".concat(tokens.clearColor, ")") : "var(".concat(tokens.contentSlotColor, ")");
49
52
  });
50
53
  export var StyledContentRight = /*#__PURE__*/styled.div.withConfig({
@@ -1,6 +1,7 @@
1
1
  export var classes = {
2
2
  hasChips: 'has-chips',
3
3
  hasValue: 'has-value',
4
+ forcePlaceholder: 'force-placeholder',
4
5
  hasEmptyContentLeft: 'has-empty-content-left',
5
6
  hasEmptyContentRight: 'has-empty-content-right',
6
7
  innerLabelPlacement: 'label-placement-inner',
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
2
  import { classes, tokens } from '../../TextField.tokens';
3
3
  import { Input, InputContainer, Label, StyledTextAfter, StyledTextBefore } from '../../TextField.styles';
4
- export var base = /*#__PURE__*/css(["&.", "{", "{position:relative;display:inline-block;color:var(", ");}}&.", "{", "{padding:var(", ");}", ",", "{padding:var(", ");}", ":focus ~ ", ",", ".", " ~ ", "{color:var(", ");align-items:flex-start;padding:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{color:var(", ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:var(", ");padding-top:calc(calc(var(", ") - var(", ")) / 2);padding-bottom:calc(calc(var(", ") - var(", ")) / 2);}&.", " ", "{color:var(", ");}}"], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, StyledTextAfter, StyledTextBefore, tokens.contentLabelInnerPadding, Input, Label, Input, classes.hasValue, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, tokens.height, tokens.height, tokens.labelLineHeight, tokens.height, tokens.labelLineHeight, classes.clear, Label, tokens.clearPlaceholderColor);
4
+ export var base = /*#__PURE__*/css(["&.", "{", "{position:relative;display:inline-block;color:var(", ");}}&.", "{", "{padding:var(", ");}", ",", "{padding:var(", ");}", ":focus ~ ", ",", ".", " ~ ", ",", ".", " ~ ", "{color:var(", ");align-items:flex-start;padding:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{color:var(", ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:var(", ");padding-top:calc(calc(var(", ") - var(", ")) / 2);padding-bottom:calc(calc(var(", ") - var(", ")) / 2);}&.", " ", "{color:var(", ");}}"], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, StyledTextAfter, StyledTextBefore, tokens.contentLabelInnerPadding, Input, Label, Input, classes.hasValue, Label, Input, classes.forcePlaceholder, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, tokens.height, tokens.height, tokens.labelLineHeight, tokens.height, tokens.labelLineHeight, classes.clear, Label, tokens.clearPlaceholderColor);
@@ -16,10 +16,10 @@ export var config = {
16
16
  light: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-dark-surface-transparent-card);", ":var(--on-dark-text-primary);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent, badgeTokens.colorClear)
17
17
  },
18
18
  size: {
19
- l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0 0.6875rem;", ":0 0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":-0.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
- m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0 0.5625rem;", ":0 0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":-0.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
- s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0 0.4375rem;", ":0 0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
- xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0 0.25rem;", ":0 0.188rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
19
+ l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0.6875rem;", ":0.6875rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":-0.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
+ m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0.5625rem;", ":0.5625rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":-0.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
+ s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0.4375rem;", ":0.4375rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
+ xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0.25rem;", ":0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
23
23
  },
24
24
  pilled: {
25
25
  "true": /*#__PURE__*/css(["", ":1.25rem;"], badgeTokens.pilledBorderRadius)
@@ -28,7 +28,7 @@ export var config = {
28
28
  "true": /*#__PURE__*/css([""])
29
29
  },
30
30
  clear: {
31
- "true": /*#__PURE__*/css(["", ":var(--surface-clear);"], badgeTokens.backgroundClear)
31
+ "true": /*#__PURE__*/css([""])
32
32
  },
33
33
  truncate: {
34
34
  "true": /*#__PURE__*/css([""])
@@ -34,10 +34,6 @@ const meta: Meta<typeof Badge> = {
34
34
  maxWidth: {
35
35
  control: { type: 'text' },
36
36
  },
37
- text: {
38
- control: { type: 'text' },
39
- if: { arg: 'enableText', truthy: true },
40
- },
41
37
  ...disableProps(['contentLeft', 'contentRight']),
42
38
  },
43
39
  };
@@ -47,7 +43,6 @@ export default meta;
47
43
  type StoryProps = ComponentProps<typeof Badge> & {
48
44
  enableContentLeft: boolean;
49
45
  enableContentRight: boolean;
50
- enableText: boolean;
51
46
  };
52
47
  type Story = StoryObj<StoryProps>;
53
48
 
@@ -68,14 +63,13 @@ export const Default: Story = {
68
63
  },
69
64
  enableContentRight: {
70
65
  control: { type: 'boolean' },
71
- if: { arg: 'enableText', truthy: true },
66
+ if: { arg: 'enableContentLeft', truthy: false },
72
67
  },
73
68
  },
74
69
  args: {
70
+ text: 'Hello Kitty',
75
71
  view: 'default',
76
72
  size: 'm',
77
- enableText: true,
78
- text: 'Hello',
79
73
  enableContentLeft: false,
80
74
  enableContentRight: false,
81
75
  clear: false,
@@ -83,24 +77,13 @@ export const Default: Story = {
83
77
  transparent: false,
84
78
  maxWidth: '',
85
79
  },
86
- render: ({ enableContentLeft, enableContentRight, enableText, size, ...rest }: StoryProps) => {
87
- const iconSize = () => {
88
- switch (size) {
89
- case 'l':
90
- return '1rem';
91
- case 'xs':
92
- return '0.625rem';
93
- default:
94
- return '0.75rem';
95
- }
96
- };
80
+ render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
81
+ const iconSize = size === 'l' ? '1rem' : '0.75rem';
97
82
 
98
83
  return (
99
84
  <Badge
100
- contentLeft={
101
- enableContentLeft || !enableText ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined
102
- }
103
- contentRight={enableContentRight ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined}
85
+ contentLeft={enableContentLeft ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
86
+ contentRight={enableContentRight ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
104
87
  size={size}
105
88
  {...rest}
106
89
  />
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
87
87
  type: 'inline-radio',
88
88
  },
89
89
  },
90
+ hasPlaceholder: {
91
+ control: {
92
+ type: 'boolean',
93
+ },
94
+ if: { arg: 'labelPlacement', eq: 'inner' },
95
+ },
90
96
  size: {
91
97
  options: sizes,
92
98
  control: {
@@ -210,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
210
216
  view: 'default',
211
217
  label: 'Лейбл',
212
218
  labelPlacement: 'outer',
219
+ hasPlaceholder: false,
213
220
  titleCaption: 'Подпись к полю',
214
221
  textBefore: '',
215
222
  textAfter: '',
@@ -16,10 +16,10 @@ export var config = {
16
16
  light: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-dark-surface-transparent-card);", ":var(--on-dark-text-primary);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent, badgeTokens.colorClear)
17
17
  },
18
18
  size: {
19
- l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0 0.6875rem;", ":0 0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":-0.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
- m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0 0.5625rem;", ":0 0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":-0.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
- s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0 0.4375rem;", ":0 0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
- xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0 0.25rem;", ":0 0.188rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
19
+ l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0.6875rem;", ":0.6875rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":-0.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
+ m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0.5625rem;", ":0.5625rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":-0.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
+ s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0.4375rem;", ":0.4375rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
+ xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0.25rem;", ":0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
23
23
  },
24
24
  pilled: {
25
25
  "true": /*#__PURE__*/css(["", ":1.25rem;"], badgeTokens.pilledBorderRadius)
@@ -28,7 +28,7 @@ export var config = {
28
28
  "true": /*#__PURE__*/css([""])
29
29
  },
30
30
  clear: {
31
- "true": /*#__PURE__*/css(["", ":var(--surface-clear);"], badgeTokens.backgroundClear)
31
+ "true": /*#__PURE__*/css([""])
32
32
  }
33
33
  }
34
34
  };
@@ -31,13 +31,6 @@ const meta: Meta<typeof Badge> = {
31
31
  control: { type: 'boolean' },
32
32
  if: { arg: 'clear', truthy: false },
33
33
  },
34
- maxWidth: {
35
- control: { type: 'text' },
36
- },
37
- text: {
38
- control: { type: 'text' },
39
- if: { arg: 'enableText', truthy: true },
40
- },
41
34
  ...disableProps(['contentLeft', 'contentRight']),
42
35
  },
43
36
  };
@@ -47,7 +40,6 @@ export default meta;
47
40
  type StoryProps = ComponentProps<typeof Badge> & {
48
41
  enableContentLeft: boolean;
49
42
  enableContentRight: boolean;
50
- enableText: boolean;
51
43
  };
52
44
  type Story = StoryObj<StoryProps>;
53
45
 
@@ -68,39 +60,26 @@ export const Default: Story = {
68
60
  },
69
61
  enableContentRight: {
70
62
  control: { type: 'boolean' },
71
- if: { arg: 'enableText', truthy: true },
63
+ if: { arg: 'enableContentLeft', truthy: false },
72
64
  },
73
65
  },
74
66
  args: {
67
+ text: 'Hello',
75
68
  view: 'default',
76
69
  size: 'm',
77
- enableText: true,
78
- text: 'Hello',
79
70
  enableContentLeft: false,
80
71
  enableContentRight: false,
81
72
  clear: false,
82
73
  pilled: false,
83
74
  transparent: false,
84
- maxWidth: '',
85
75
  },
86
- render: ({ enableContentLeft, enableContentRight, enableText, size, ...rest }: StoryProps) => {
87
- const iconSize = () => {
88
- switch (size) {
89
- case 'l':
90
- return '1rem';
91
- case 'xs':
92
- return '0.625rem';
93
- default:
94
- return '0.75rem';
95
- }
96
- };
76
+ render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
77
+ const iconSize = size === 'l' ? '1rem' : '0.75rem';
97
78
 
98
79
  return (
99
80
  <Badge
100
- contentLeft={
101
- enableContentLeft || !enableText ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined
102
- }
103
- contentRight={enableContentRight ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined}
81
+ contentLeft={enableContentLeft ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
82
+ contentRight={enableContentRight ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
104
83
  size={size}
105
84
  {...rest}
106
85
  />
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
87
87
  type: 'inline-radio',
88
88
  },
89
89
  },
90
+ hasPlaceholder: {
91
+ control: {
92
+ type: 'boolean',
93
+ },
94
+ if: { arg: 'labelPlacement', eq: 'inner' },
95
+ },
90
96
  size: {
91
97
  options: sizes,
92
98
  control: {
@@ -210,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
210
216
  view: 'default',
211
217
  label: 'Лейбл',
212
218
  labelPlacement: 'outer',
219
+ hasPlaceholder: false,
213
220
  titleCaption: 'Подпись к полю',
214
221
  textBefore: '',
215
222
  textAfter: '',
@@ -219,11 +226,11 @@ export const Default: StoryObj<StoryPropsDefault> = {
219
226
  readOnly: false,
220
227
  enableContentLeft: true,
221
228
  enableContentRight: true,
222
- clear: false,
223
- hasDivider: false,
224
229
  optional: false,
225
230
  required: false,
226
231
  requiredPlacement: 'right',
232
+ clear: false,
233
+ hasDivider: false,
227
234
  hasHint: true,
228
235
  hintText: 'Текст подсказки',
229
236
  hintTrigger: 'hover',
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,+FAuLhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBAzLQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CAwMpF,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,+FA8LhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBAhMQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CA+MpF,CAAC"}