@salutejs/plasma-new-hope 0.69.0-canary.1155.8506197081.0 → 0.70.0-canary.1160.8541256541.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (440) hide show
  1. package/cjs/components/Cell/Cell.css +3 -0
  2. package/cjs/components/Cell/Cell.js +71 -0
  3. package/cjs/components/Cell/Cell.js.map +1 -0
  4. package/cjs/components/Cell/Cell.styles.js +39 -0
  5. package/cjs/components/Cell/Cell.styles.js.map +1 -0
  6. package/cjs/components/Cell/Cell.styles_ygfo1w.css +1 -0
  7. package/cjs/components/Cell/Cell.tokens.js +50 -0
  8. package/cjs/components/Cell/Cell.tokens.js.map +1 -0
  9. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +20 -0
  10. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -0
  11. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +13 -0
  12. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -0
  13. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +13 -0
  14. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js.map +1 -0
  15. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +13 -0
  16. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js.map +1 -0
  17. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +13 -0
  18. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js.map +1 -0
  19. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +13 -0
  20. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js.map +1 -0
  21. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +13 -0
  22. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -0
  23. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +13 -0
  24. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js.map +1 -0
  25. package/cjs/components/{TextField/_view → Cell/variations/_size}/base.js +2 -2
  26. package/cjs/components/Cell/variations/_size/base.js.map +1 -0
  27. package/cjs/components/{TextField/_size → Cell/variations/_view}/base.js +2 -2
  28. package/cjs/components/Cell/variations/_view/base.js.map +1 -0
  29. package/cjs/components/Cell/variations/_view/base_pir0qf.css +1 -0
  30. package/cjs/components/Pagination/Pagination.js +14 -13
  31. package/cjs/components/Pagination/Pagination.js.map +1 -1
  32. package/cjs/components/TextField/TextField.js +155 -29
  33. package/cjs/components/TextField/TextField.js.map +1 -1
  34. package/cjs/components/TextField/TextField.styles.js +27 -11
  35. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  36. package/cjs/components/TextField/TextField.styles_1b1mddp.css +8 -0
  37. package/cjs/components/TextField/TextField.tokens.js +68 -20
  38. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  39. package/cjs/components/TextField/TextField_wctd2m.css +1 -0
  40. package/cjs/components/TextField/hooks/useKeyNavigation.js +133 -0
  41. package/cjs/components/TextField/hooks/useKeyNavigation.js.map +1 -0
  42. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +19 -0
  43. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +38 -0
  44. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -0
  45. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +26 -0
  46. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -0
  47. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1rauupp.css +1 -0
  48. package/cjs/components/TextField/variations/_disabled/base.js +9 -0
  49. package/cjs/components/TextField/variations/_disabled/base.js.map +1 -0
  50. package/cjs/components/TextField/variations/_disabled/base_1tnjoy9.css +1 -0
  51. package/cjs/components/TextField/{_label-placement → variations/_label-placement}/base.js +1 -1
  52. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -0
  53. package/cjs/components/TextField/{_label-placement → variations/_label-placement}/inner.js +2 -2
  54. package/cjs/components/TextField/variations/_label-placement/inner.js.map +1 -0
  55. package/cjs/components/TextField/variations/_label-placement/inner_gqlcj2.css +1 -0
  56. package/cjs/components/TextField/{_label-placement → variations/_label-placement}/outer.js +2 -2
  57. package/cjs/components/TextField/variations/_label-placement/outer.js.map +1 -0
  58. package/cjs/components/TextField/variations/_label-placement/outer_is41nj.css +1 -0
  59. package/cjs/components/TextField/variations/_read-only/base.js +9 -0
  60. package/cjs/components/TextField/variations/_read-only/base.js.map +1 -0
  61. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +1 -0
  62. package/cjs/components/TextField/variations/_size/base.js +9 -0
  63. package/cjs/components/TextField/variations/_size/base.js.map +1 -0
  64. package/cjs/components/TextField/variations/_size/base_1khzr9t.css +1 -0
  65. package/cjs/components/TextField/{_disabled → variations/_view}/base.js +2 -2
  66. package/cjs/components/TextField/variations/_view/base.js.map +1 -0
  67. package/cjs/components/TextField/variations/_view/base_1qd77x6.css +1 -0
  68. package/cjs/index.css +20 -9
  69. package/cjs/index.js +16 -2
  70. package/cjs/index.js.map +1 -1
  71. package/es/components/Cell/Cell.css +3 -0
  72. package/es/components/Cell/Cell.js +66 -0
  73. package/es/components/Cell/Cell.js.map +1 -0
  74. package/es/components/Cell/Cell.styles.js +31 -0
  75. package/es/components/Cell/Cell.styles.js.map +1 -0
  76. package/es/components/Cell/Cell.styles_ygfo1w.css +1 -0
  77. package/es/components/Cell/Cell.tokens.js +45 -0
  78. package/es/components/Cell/Cell.tokens.js.map +1 -0
  79. package/es/components/Cell/ui/CellTextbox/CellTextbox.js +16 -0
  80. package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -0
  81. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js +9 -0
  82. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -0
  83. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +9 -0
  84. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js.map +1 -0
  85. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +9 -0
  86. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js.map +1 -0
  87. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +9 -0
  88. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js.map +1 -0
  89. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +9 -0
  90. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js.map +1 -0
  91. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +9 -0
  92. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -0
  93. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +9 -0
  94. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js.map +1 -0
  95. package/es/components/{TextField/_view → Cell/variations/_size}/base.js +2 -2
  96. package/es/components/Cell/variations/_size/base.js.map +1 -0
  97. package/es/components/Cell/variations/_size/base_x642ct.css +1 -0
  98. package/es/components/{TextField/_disabled → Cell/variations/_view}/base.js +2 -2
  99. package/es/components/Cell/variations/_view/base.js.map +1 -0
  100. package/es/components/Cell/variations/_view/base_pir0qf.css +1 -0
  101. package/es/components/Pagination/Pagination.js +15 -14
  102. package/es/components/Pagination/Pagination.js.map +1 -1
  103. package/es/components/TextField/TextField.js +158 -33
  104. package/es/components/TextField/TextField.js.map +1 -1
  105. package/es/components/TextField/TextField.styles.js +25 -12
  106. package/es/components/TextField/TextField.styles.js.map +1 -1
  107. package/es/components/TextField/TextField.styles_1b1mddp.css +8 -0
  108. package/es/components/TextField/TextField.tokens.js +68 -21
  109. package/es/components/TextField/TextField.tokens.js.map +1 -1
  110. package/es/components/TextField/TextField_wctd2m.css +1 -0
  111. package/es/components/TextField/hooks/useKeyNavigation.js +128 -0
  112. package/es/components/TextField/hooks/useKeyNavigation.js.map +1 -0
  113. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +19 -0
  114. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +34 -0
  115. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -0
  116. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +22 -0
  117. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -0
  118. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1rauupp.css +1 -0
  119. package/es/components/TextField/variations/_disabled/base.js +5 -0
  120. package/es/components/TextField/variations/_disabled/base.js.map +1 -0
  121. package/es/components/TextField/variations/_disabled/base_1tnjoy9.css +1 -0
  122. package/es/components/TextField/{_label-placement → variations/_label-placement}/base.js +1 -1
  123. package/es/components/TextField/variations/_label-placement/base.js.map +1 -0
  124. package/es/components/TextField/variations/_label-placement/base_x642ct.css +1 -0
  125. package/es/components/TextField/variations/_label-placement/inner.js +5 -0
  126. package/es/components/TextField/variations/_label-placement/inner.js.map +1 -0
  127. package/es/components/TextField/variations/_label-placement/inner_gqlcj2.css +1 -0
  128. package/es/components/TextField/variations/_label-placement/outer.js +5 -0
  129. package/es/components/TextField/variations/_label-placement/outer.js.map +1 -0
  130. package/es/components/TextField/variations/_label-placement/outer_is41nj.css +1 -0
  131. package/es/components/TextField/variations/_read-only/base.js +5 -0
  132. package/es/components/TextField/variations/_read-only/base.js.map +1 -0
  133. package/es/components/TextField/variations/_read-only/base_134hshp.css +1 -0
  134. package/es/components/TextField/variations/_size/base.js +5 -0
  135. package/es/components/TextField/variations/_size/base.js.map +1 -0
  136. package/es/components/TextField/variations/_size/base_1khzr9t.css +1 -0
  137. package/es/components/TextField/{_size → variations/_view}/base.js +2 -2
  138. package/es/components/TextField/variations/_view/base.js.map +1 -0
  139. package/es/components/TextField/variations/_view/base_1qd77x6.css +1 -0
  140. package/es/index.css +20 -9
  141. package/es/index.js +8 -2
  142. package/es/index.js.map +1 -1
  143. package/package.json +4 -4
  144. package/styled-components/cjs/components/Cell/Cell.js +71 -0
  145. package/styled-components/cjs/components/Cell/Cell.styles.js +35 -0
  146. package/styled-components/cjs/components/Cell/Cell.tokens.js +48 -0
  147. package/styled-components/cjs/components/Cell/Cell.types.js +5 -0
  148. package/styled-components/cjs/components/Cell/index.js +59 -0
  149. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +19 -0
  150. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +12 -0
  151. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.types.js +5 -0
  152. package/styled-components/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +12 -0
  153. package/styled-components/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +12 -0
  154. package/styled-components/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +12 -0
  155. package/styled-components/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +12 -0
  156. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +12 -0
  157. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +12 -0
  158. package/styled-components/cjs/components/{TextField/_disabled → Cell/variations/_size}/base.js +1 -2
  159. package/styled-components/cjs/components/Cell/variations/_size/tokens.json +1 -0
  160. package/styled-components/cjs/components/Cell/variations/_stretching/base.js +9 -0
  161. package/styled-components/cjs/components/Cell/variations/_stretching/tokens.json +1 -0
  162. package/styled-components/cjs/components/Cell/variations/_view/base.js +9 -0
  163. package/styled-components/cjs/components/Cell/variations/_view/tokens.json +1 -0
  164. package/styled-components/cjs/components/Pagination/Pagination.js +14 -13
  165. package/styled-components/cjs/components/TextField/TextField.js +162 -32
  166. package/styled-components/cjs/components/TextField/TextField.styles.js +18 -10
  167. package/styled-components/cjs/components/TextField/TextField.tokens.js +68 -21
  168. package/styled-components/cjs/components/TextField/hooks/index.js +12 -0
  169. package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.js +139 -0
  170. package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.types.js +5 -0
  171. package/styled-components/cjs/components/TextField/index.js +2 -2
  172. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +39 -0
  173. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +25 -0
  174. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +5 -0
  175. package/styled-components/cjs/components/TextField/ui/index.js +12 -0
  176. package/styled-components/cjs/components/TextField/variations/_disabled/base.js +10 -0
  177. package/styled-components/cjs/components/TextField/variations/_label-placement/inner.js +10 -0
  178. package/styled-components/cjs/components/TextField/{_label-placement → variations/_label-placement}/outer.js +3 -3
  179. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +10 -0
  180. package/styled-components/cjs/components/TextField/variations/_read-only/tokens.json +1 -0
  181. package/styled-components/cjs/components/TextField/variations/_size/base.js +10 -0
  182. package/styled-components/cjs/components/TextField/variations/_view/base.js +10 -0
  183. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.config.js +21 -0
  184. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.js +35 -0
  185. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +128 -0
  186. package/styled-components/cjs/examples/plasma_b2c/components/Chip/Chip.config.js +1 -2
  187. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
  188. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
  189. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +43 -0
  190. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.js +11 -0
  191. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +123 -0
  192. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.config.js +21 -0
  193. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.js +35 -0
  194. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +128 -0
  195. package/styled-components/cjs/examples/plasma_web/components/Chip/Chip.config.js +1 -2
  196. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
  197. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
  198. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +40 -0
  199. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.js +11 -0
  200. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +123 -0
  201. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.config.js +43 -0
  202. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.js +11 -0
  203. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +123 -0
  204. package/styled-components/cjs/index.js +11 -0
  205. package/styled-components/es/components/Cell/Cell.js +62 -0
  206. package/styled-components/es/components/Cell/Cell.styles.js +27 -0
  207. package/styled-components/es/components/Cell/Cell.tokens.js +42 -0
  208. package/styled-components/es/components/Cell/Cell.types.js +1 -0
  209. package/styled-components/es/components/Cell/index.js +6 -0
  210. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +12 -0
  211. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js +5 -0
  212. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.types.js +1 -0
  213. package/styled-components/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +5 -0
  214. package/styled-components/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +5 -0
  215. package/styled-components/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +5 -0
  216. package/styled-components/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +5 -0
  217. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +5 -0
  218. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +5 -0
  219. package/styled-components/es/components/Cell/variations/_size/base.js +2 -0
  220. package/styled-components/es/components/Cell/variations/_size/tokens.json +1 -0
  221. package/styled-components/es/components/Cell/variations/_stretching/base.js +3 -0
  222. package/styled-components/es/components/Cell/variations/_stretching/tokens.json +1 -0
  223. package/styled-components/es/components/Cell/variations/_view/base.js +3 -0
  224. package/styled-components/es/components/Cell/variations/_view/tokens.json +1 -0
  225. package/styled-components/es/components/Pagination/Pagination.js +14 -13
  226. package/styled-components/es/components/TextField/TextField.js +166 -36
  227. package/styled-components/es/components/TextField/TextField.styles.js +17 -9
  228. package/styled-components/es/components/TextField/TextField.tokens.js +67 -20
  229. package/styled-components/es/components/TextField/hooks/index.js +1 -0
  230. package/styled-components/es/components/TextField/hooks/useKeyNavigation.js +133 -0
  231. package/styled-components/es/components/TextField/hooks/useKeyNavigation.types.js +1 -0
  232. package/styled-components/es/components/TextField/index.js +2 -2
  233. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +30 -0
  234. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +19 -0
  235. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +1 -0
  236. package/styled-components/es/components/TextField/ui/index.js +1 -0
  237. package/styled-components/es/components/TextField/variations/_disabled/base.js +4 -0
  238. package/styled-components/es/components/TextField/variations/_label-placement/inner.js +4 -0
  239. package/styled-components/es/components/TextField/variations/_label-placement/outer.js +4 -0
  240. package/styled-components/es/components/TextField/variations/_read-only/base.js +4 -0
  241. package/styled-components/es/components/TextField/variations/_read-only/tokens.json +1 -0
  242. package/styled-components/es/components/TextField/variations/_size/base.js +4 -0
  243. package/styled-components/es/components/TextField/variations/_view/base.js +4 -0
  244. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.config.js +15 -0
  245. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.js +6 -0
  246. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +128 -0
  247. package/styled-components/es/examples/plasma_b2c/components/Chip/Chip.config.js +1 -2
  248. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
  249. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
  250. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +37 -0
  251. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.js +5 -0
  252. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +123 -0
  253. package/styled-components/es/examples/plasma_web/components/Cell/Cell.config.js +15 -0
  254. package/styled-components/es/examples/plasma_web/components/Cell/Cell.js +6 -0
  255. package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +128 -0
  256. package/styled-components/es/examples/plasma_web/components/Chip/Chip.config.js +1 -2
  257. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
  258. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
  259. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +34 -0
  260. package/styled-components/es/examples/plasma_web/components/TextField/TextField.js +5 -0
  261. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +123 -0
  262. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.config.js +37 -0
  263. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.js +5 -0
  264. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +123 -0
  265. package/styled-components/es/index.js +1 -0
  266. package/types/components/Cell/Cell.d.ts +23 -0
  267. package/types/components/Cell/Cell.d.ts.map +1 -0
  268. package/types/components/Cell/Cell.styles.d.ts +11 -0
  269. package/types/components/Cell/Cell.styles.d.ts.map +1 -0
  270. package/types/components/Cell/Cell.tokens.d.ts +43 -0
  271. package/types/components/Cell/Cell.tokens.d.ts.map +1 -0
  272. package/types/components/Cell/Cell.types.d.ts +51 -0
  273. package/types/components/Cell/Cell.types.d.ts.map +1 -0
  274. package/types/components/Cell/index.d.ts +9 -0
  275. package/types/components/Cell/index.d.ts.map +1 -0
  276. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts +4 -0
  277. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -0
  278. package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts +2 -0
  279. package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts.map +1 -0
  280. package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts +33 -0
  281. package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts.map +1 -0
  282. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.d.ts +3 -0
  283. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.d.ts.map +1 -0
  284. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts +2 -0
  285. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts.map +1 -0
  286. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.d.ts +3 -0
  287. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.d.ts.map +1 -0
  288. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts +2 -0
  289. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts.map +1 -0
  290. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts +3 -0
  291. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts.map +1 -0
  292. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts +2 -0
  293. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts.map +1 -0
  294. package/types/components/Cell/variations/_size/base.d.ts.map +1 -0
  295. package/types/components/Cell/variations/_stretching/base.d.ts.map +1 -0
  296. package/types/components/Cell/variations/_view/base.d.ts.map +1 -0
  297. package/types/components/Chip/Chip.d.ts +26 -2
  298. package/types/components/Chip/Chip.d.ts.map +1 -1
  299. package/types/components/Chip/Chip.types.d.ts +6 -5
  300. package/types/components/Chip/Chip.types.d.ts.map +1 -1
  301. package/types/components/Combobox/ui/ComboboxChip/ComboboxChip.styles.d.ts +13 -1
  302. package/types/components/Combobox/ui/ComboboxChip/ComboboxChip.styles.d.ts.map +1 -1
  303. package/types/components/Indicator/Indicator.d.ts +2 -2
  304. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  305. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts +13 -1
  306. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts.map +1 -1
  307. package/types/components/TextField/TextField.d.ts +8 -3
  308. package/types/components/TextField/TextField.d.ts.map +1 -1
  309. package/types/components/TextField/TextField.styles.d.ts +6 -3
  310. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  311. package/types/components/TextField/TextField.tokens.d.ts +57 -8
  312. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  313. package/types/components/TextField/TextField.types.d.ts +29 -2
  314. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  315. package/types/components/TextField/hooks/index.d.ts +2 -0
  316. package/types/components/TextField/hooks/index.d.ts.map +1 -0
  317. package/types/components/TextField/hooks/useKeyNavigation.d.ts +17 -0
  318. package/types/components/TextField/hooks/useKeyNavigation.d.ts.map +1 -0
  319. package/types/components/TextField/hooks/useKeyNavigation.types.d.ts +18 -0
  320. package/types/components/TextField/hooks/useKeyNavigation.types.d.ts.map +1 -0
  321. package/types/components/TextField/index.d.ts +3 -2
  322. package/types/components/TextField/index.d.ts.map +1 -1
  323. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +7 -0
  324. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -0
  325. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +15 -0
  326. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +1 -0
  327. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +37 -0
  328. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +1 -0
  329. package/types/components/TextField/ui/index.d.ts +2 -0
  330. package/types/components/TextField/ui/index.d.ts.map +1 -0
  331. package/types/components/TextField/variations/_disabled/base.d.ts.map +1 -0
  332. package/types/components/TextField/variations/_label-placement/base.d.ts +2 -0
  333. package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -0
  334. package/types/components/TextField/variations/_label-placement/index.d.ts.map +1 -0
  335. package/types/components/TextField/variations/_label-placement/inner.d.ts.map +1 -0
  336. package/types/components/TextField/variations/_label-placement/outer.d.ts.map +1 -0
  337. package/types/components/TextField/variations/_read-only/base.d.ts +2 -0
  338. package/types/components/TextField/variations/_read-only/base.d.ts.map +1 -0
  339. package/types/components/TextField/variations/_size/base.d.ts +2 -0
  340. package/types/components/TextField/variations/_size/base.d.ts.map +1 -0
  341. package/types/components/TextField/variations/_view/base.d.ts +2 -0
  342. package/types/components/TextField/variations/_view/base.d.ts.map +1 -0
  343. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts +14 -0
  344. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts.map +1 -0
  345. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +45 -0
  346. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts.map +1 -0
  347. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts +0 -1
  348. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts.map +1 -1
  349. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts +13 -2
  350. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts.map +1 -1
  351. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +2 -2
  352. package/types/examples/plasma_b2c/components/Indicator/Indicator.d.ts +2 -2
  353. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +32 -0
  354. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -0
  355. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +26 -0
  356. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -0
  357. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts +14 -0
  358. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts.map +1 -0
  359. package/types/examples/plasma_web/components/Cell/Cell.d.ts +45 -0
  360. package/types/examples/plasma_web/components/Cell/Cell.d.ts.map +1 -0
  361. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts +0 -1
  362. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts.map +1 -1
  363. package/types/examples/plasma_web/components/Chip/Chip.d.ts +13 -2
  364. package/types/examples/plasma_web/components/Chip/Chip.d.ts.map +1 -1
  365. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +2 -2
  366. package/types/examples/plasma_web/components/Indicator/Indicator.d.ts +2 -2
  367. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +32 -0
  368. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -0
  369. package/types/examples/plasma_web/components/TextField/TextField.d.ts +26 -0
  370. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -0
  371. package/types/examples/sds_engineer/components/Chip/Chip.d.ts +13 -1
  372. package/types/examples/sds_engineer/components/Chip/Chip.d.ts.map +1 -1
  373. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts +32 -0
  374. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts.map +1 -0
  375. package/types/examples/sds_engineer/components/TextField/TextField.d.ts +26 -0
  376. package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +1 -0
  377. package/types/index.d.ts +1 -0
  378. package/types/index.d.ts.map +1 -1
  379. package/cjs/components/TextField/TextField.styles_2qw1n8.css +0 -5
  380. package/cjs/components/TextField/TextField_1lzb2r1.css +0 -1
  381. package/cjs/components/TextField/_disabled/base.js.map +0 -1
  382. package/cjs/components/TextField/_disabled/base_so3w81.css +0 -1
  383. package/cjs/components/TextField/_label-placement/base.js.map +0 -1
  384. package/cjs/components/TextField/_label-placement/inner.js.map +0 -1
  385. package/cjs/components/TextField/_label-placement/inner_1tyuicp.css +0 -1
  386. package/cjs/components/TextField/_label-placement/outer.js.map +0 -1
  387. package/cjs/components/TextField/_label-placement/outer_19ekaek.css +0 -1
  388. package/cjs/components/TextField/_size/base.js.map +0 -1
  389. package/cjs/components/TextField/_size/base_b5smyu.css +0 -1
  390. package/cjs/components/TextField/_view/base.js.map +0 -1
  391. package/cjs/components/TextField/_view/base_5bqzed.css +0 -1
  392. package/es/components/TextField/TextField.styles_2qw1n8.css +0 -5
  393. package/es/components/TextField/TextField_1lzb2r1.css +0 -1
  394. package/es/components/TextField/_disabled/base.js.map +0 -1
  395. package/es/components/TextField/_disabled/base_so3w81.css +0 -1
  396. package/es/components/TextField/_label-placement/base.js.map +0 -1
  397. package/es/components/TextField/_label-placement/inner.js +0 -5
  398. package/es/components/TextField/_label-placement/inner.js.map +0 -1
  399. package/es/components/TextField/_label-placement/inner_1tyuicp.css +0 -1
  400. package/es/components/TextField/_label-placement/outer.js +0 -5
  401. package/es/components/TextField/_label-placement/outer.js.map +0 -1
  402. package/es/components/TextField/_label-placement/outer_19ekaek.css +0 -1
  403. package/es/components/TextField/_size/base.js.map +0 -1
  404. package/es/components/TextField/_size/base_b5smyu.css +0 -1
  405. package/es/components/TextField/_view/base.js.map +0 -1
  406. package/es/components/TextField/_view/base_5bqzed.css +0 -1
  407. package/styled-components/cjs/components/TextField/_label-placement/inner.js +0 -10
  408. package/styled-components/cjs/components/TextField/_size/base.js +0 -10
  409. package/styled-components/cjs/components/TextField/_view/base.js +0 -10
  410. package/styled-components/es/components/TextField/_disabled/base.js +0 -3
  411. package/styled-components/es/components/TextField/_label-placement/inner.js +0 -4
  412. package/styled-components/es/components/TextField/_label-placement/outer.js +0 -4
  413. package/styled-components/es/components/TextField/_size/base.js +0 -4
  414. package/styled-components/es/components/TextField/_view/base.js +0 -4
  415. package/types/components/TextField/_disabled/base.d.ts.map +0 -1
  416. package/types/components/TextField/_label-placement/base.d.ts.map +0 -1
  417. package/types/components/TextField/_label-placement/index.d.ts.map +0 -1
  418. package/types/components/TextField/_label-placement/inner.d.ts.map +0 -1
  419. package/types/components/TextField/_label-placement/outer.d.ts.map +0 -1
  420. package/types/components/TextField/_size/base.d.ts.map +0 -1
  421. package/types/components/TextField/_view/base.d.ts.map +0 -1
  422. /package/cjs/components/{TextField/_label-placement → Cell/variations/_size}/base_x642ct.css +0 -0
  423. /package/{es/components/TextField → cjs/components/TextField/variations}/_label-placement/base_x642ct.css +0 -0
  424. /package/styled-components/cjs/components/TextField/{_disabled → variations/_disabled}/tokens.json +0 -0
  425. /package/styled-components/cjs/components/TextField/{_label-placement → variations/_label-placement}/base.js +0 -0
  426. /package/styled-components/cjs/components/TextField/{_label-placement → variations/_label-placement}/index.js +0 -0
  427. /package/styled-components/cjs/components/TextField/{_size → variations/_size}/tokens.json +0 -0
  428. /package/styled-components/cjs/components/TextField/{_view → variations/_view}/tokens.json +0 -0
  429. /package/styled-components/es/components/TextField/{_disabled → variations/_disabled}/tokens.json +0 -0
  430. /package/styled-components/es/components/TextField/{_label-placement → variations/_label-placement}/base.js +0 -0
  431. /package/styled-components/es/components/TextField/{_label-placement → variations/_label-placement}/index.js +0 -0
  432. /package/styled-components/es/components/TextField/{_size → variations/_size}/tokens.json +0 -0
  433. /package/styled-components/es/components/TextField/{_view → variations/_view}/tokens.json +0 -0
  434. /package/types/components/{TextField/_disabled → Cell/variations/_size}/base.d.ts +0 -0
  435. /package/types/components/{TextField/_label-placement → Cell/variations/_stretching}/base.d.ts +0 -0
  436. /package/types/components/{TextField/_size → Cell/variations/_view}/base.d.ts +0 -0
  437. /package/types/components/TextField/{_view → variations/_disabled}/base.d.ts +0 -0
  438. /package/types/components/TextField/{_label-placement → variations/_label-placement}/index.d.ts +0 -0
  439. /package/types/components/TextField/{_label-placement → variations/_label-placement}/inner.d.ts +0 -0
  440. /package/types/components/TextField/{_label-placement → variations/_label-placement}/outer.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import './TextField_1lzb2r1.css';
1
+ import './TextField_wctd2m.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6,70 +6,190 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
7
7
  var React = require('react');
8
8
  var plasmaCore = require('@salutejs/plasma-core');
9
- var base$2 = require('./_size/base.js');
10
- var base$1 = require('./_view/base.js');
11
- var base$3 = require('./_disabled/base.js');
12
- var base$4 = require('./_label-placement/base.js');
9
+ var index = require('../../utils/index.js');
10
+ var base$2 = require('./variations/_size/base.js');
11
+ var base$1 = require('./variations/_view/base.js');
12
+ var base$3 = require('./variations/_disabled/base.js');
13
+ var base$4 = require('./variations/_read-only/base.js');
14
+ var base$5 = require('./variations/_label-placement/base.js');
13
15
  var TextField_styles = require('./TextField.styles.js');
16
+ var TextField_tokens = require('./TextField.tokens.js');
17
+ var TextFieldChip = require('./ui/TextFieldChip/TextFieldChip.js');
18
+ var useKeyNavigation = require('./hooks/useKeyNavigation.js');
14
19
 
15
- var _excluded = ["contentLeft", "contentRight", "children", "label", "labelPlacement", "placeholder", "leftHelper", "view", "size", "disabled", "onChange", "onSearch"];
20
+ var _excluded = ["id", "contentLeft", "contentRight", "label", "labelPlacement", "placeholder", "leftHelper", "enumerationType", "view", "size", "readOnly", "disabled", "values", "onChange", "onChangeChips", "onSearch"];
16
21
  var base = "bpunezx";
17
22
  var textFieldRoot = function textFieldRoot(Root) {
18
23
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
19
- var contentLeft = props.contentLeft,
24
+ var id = props.id,
25
+ contentLeft = props.contentLeft,
20
26
  contentRight = props.contentRight,
21
27
  label = props.label,
22
28
  labelPlacement = props.labelPlacement,
23
29
  placeholder = props.placeholder,
24
30
  leftHelper = props.leftHelper,
31
+ _props$enumerationTyp = props.enumerationType,
32
+ enumerationType = _props$enumerationTyp === void 0 ? 'plain' : _props$enumerationTyp,
25
33
  view = props.view,
26
34
  size = props.size,
27
- disabled = props.disabled,
35
+ _props$readOnly = props.readOnly,
36
+ readOnly = _props$readOnly === void 0 ? false : _props$readOnly,
37
+ _props$disabled = props.disabled,
38
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
39
+ values = props.values,
28
40
  onChange = props.onChange,
41
+ onChangeChips = props.onChangeChips,
29
42
  onSearch = props.onSearch,
30
43
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
44
+ var contentRef = React.useRef(null);
45
+ var inputRef = React.useRef(null);
46
+ var chipsRefs = React.useRef([]);
47
+ var controlledRefs = {
48
+ contentRef: contentRef,
49
+ inputRef: inputRef,
50
+ chipsRefs: chipsRefs
51
+ };
52
+ var _useState = React.useState([]),
53
+ _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
54
+ chips = _useState2[0],
55
+ setChips = _useState2[1];
56
+ var uniqId = plasmaCore.safeUseId();
57
+ var innerId = id || uniqId;
58
+ var labelId = plasmaCore.safeUseId();
59
+ var helperTextId = plasmaCore.safeUseId();
60
+ var isChipEnumeration = enumerationType === 'chip';
61
+ var hideLabel = (size === 'xs' || isChipEnumeration) && labelPlacement === 'inner';
62
+ var labelInside = size !== 'xs' && labelPlacement === 'inner';
63
+ var innerLabelPlacementValue = hideLabel ? 'outer' : labelPlacement;
64
+ var innerPlaceholderValue = hideLabel ? label : placeholder;
65
+ var innerLabelValue = hideLabel ? undefined : label;
66
+ var isChipsVisible = isChipEnumeration && (chips === null || chips === void 0 ? void 0 : chips.length);
67
+ var withHasChips = isChipsVisible ? TextField_tokens.classes.hasChips : undefined;
68
+ var wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? TextField_tokens.classes.hasEmptyContentLeft : undefined;
69
+ var wrapperWithoutRightContent = !contentRight && isChipsVisible ? TextField_tokens.classes.hasEmptyContentRight : undefined;
31
70
  var handleChange = function handleChange(event) {
71
+ if (disabled || readOnly) {
72
+ return;
73
+ }
32
74
  var _event$target = event.target,
33
75
  maxLength = _event$target.maxLength,
34
76
  value = _event$target.value;
35
- if (!onChange || maxLength !== -1 && value.length > maxLength) {
77
+ if (maxLength !== -1 && value.length > maxLength) {
36
78
  return;
37
79
  }
38
- onChange(event);
80
+ onChange === null || onChange === void 0 ? void 0 : onChange(event);
39
81
  };
40
- var handleKeyUp = function handleKeyUp(event) {
41
- if (event.key === 'Enter' && onSearch) {
42
- onSearch(event.target.value, event);
82
+ var updateChips = function updateChips(newChips, newValues) {
83
+ setChips(newChips);
84
+ onChangeChips === null || onChangeChips === void 0 ? void 0 : onChangeChips(newValues);
85
+ };
86
+ var _useKeyNavigation = useKeyNavigation.useKeyNavigation({
87
+ controlledRefs: controlledRefs,
88
+ disabled: disabled,
89
+ readOnly: readOnly,
90
+ chips: chips,
91
+ enumerationType: enumerationType,
92
+ updateChips: updateChips,
93
+ onSearch: onSearch,
94
+ onChange: onChange
95
+ }),
96
+ handleInputKeydown = _useKeyNavigation.handleInputKeydown,
97
+ handleChipKeyDown = _useKeyNavigation.handleChipKeyDown,
98
+ onChipClear = _useKeyNavigation.onChipClear,
99
+ handleContentKeyDown = _useKeyNavigation.handleContentKeyDown;
100
+ var onChipClick = function onChipClick(event) {
101
+ return event.stopPropagation();
102
+ };
103
+ var handleInputFocus = function handleInputFocus() {
104
+ if (readOnly || disabled || !(inputRef !== null && inputRef !== void 0 && inputRef.current)) {
105
+ return;
43
106
  }
107
+ inputRef.current.scrollIntoView({
108
+ behavior: 'smooth',
109
+ block: 'center',
110
+ inline: 'center'
111
+ });
112
+ inputRef.current.focus({
113
+ preventScroll: true
114
+ });
44
115
  };
45
- var labelInside = labelPlacement === 'inner';
46
- var lableId = plasmaCore.safeUseId();
47
- var helperTextId = plasmaCore.safeUseId();
116
+ var getRef = function getRef(element, index) {
117
+ if (element && chipsRefs !== null && chipsRefs !== void 0 && chipsRefs.current) {
118
+ chipsRefs.current[index] = element;
119
+ }
120
+ };
121
+ React.useEffect(function () {
122
+ if (!isChipEnumeration && !(values !== null && values !== void 0 && values.length)) {
123
+ return;
124
+ }
125
+ var newChips = (values === null || values === void 0 ? void 0 : values.map(function (value, index) {
126
+ return {
127
+ id: "".concat(index, "_").concat(value),
128
+ text: value
129
+ };
130
+ })) || [];
131
+ setChips(newChips);
132
+ }, [isChipEnumeration, values]);
48
133
  return /*#__PURE__*/React.createElement(Root, {
134
+ ref: ref,
49
135
  view: view,
50
136
  size: size,
51
137
  disabled: disabled,
52
- labelPlacement: labelPlacement
53
- }, labelInside || label && /*#__PURE__*/React.createElement(TextField_styles.Label, {
54
- id: lableId
55
- }, label), /*#__PURE__*/React.createElement(TextField_styles.InputWrapper, null, contentLeft, /*#__PURE__*/React.createElement(TextField_styles.InputLabelWrapper, null, /*#__PURE__*/React.createElement(TextField_styles.Input, _rollupPluginBabelHelpers.extends({}, rest, {
56
- ref: ref,
57
- "aria-labelledby": lableId,
138
+ readOnly: !disabled && readOnly,
139
+ labelPlacement: innerLabelPlacementValue,
140
+ onClick: handleInputFocus
141
+ }, labelInside || innerLabelValue && /*#__PURE__*/React.createElement(TextField_styles.Label, {
142
+ id: labelId,
143
+ htmlFor: id
144
+ }, innerLabelValue), /*#__PURE__*/React.createElement(TextField_styles.InputWrapper, {
145
+ className: index.cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)
146
+ }, contentLeft && /*#__PURE__*/React.createElement(TextField_styles.StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(TextField_styles.InputLabelWrapper, {
147
+ tabIndex: -1,
148
+ ref: contentRef,
149
+ onKeyDown: handleContentKeyDown,
150
+ className: withHasChips
151
+ }, isChipEnumeration && Boolean(chips === null || chips === void 0 ? void 0 : chips.length) && /*#__PURE__*/React.createElement(TextField_styles.StyledChips, null, chips === null || chips === void 0 ? void 0 : chips.map(function (_ref, index) {
152
+ var chipId = _ref.id,
153
+ text = _ref.text;
154
+ return /*#__PURE__*/React.createElement(TextFieldChip.TextFieldChip, {
155
+ ref: function ref(element) {
156
+ return getRef(element, index);
157
+ },
158
+ chipId: chipId,
159
+ key: "".concat(chipId, "_").concat(index),
160
+ disabled: disabled,
161
+ readOnly: readOnly,
162
+ value: text,
163
+ text: text,
164
+ onKeyDown: function onKeyDown(event) {
165
+ return handleChipKeyDown(event, chipId);
166
+ },
167
+ onClear: function onClear() {
168
+ return onChipClear(chipId);
169
+ },
170
+ onClick: onChipClick
171
+ });
172
+ })), /*#__PURE__*/React.createElement(TextField_styles.Input, _rollupPluginBabelHelpers.extends({}, rest, {
173
+ ref: inputRef,
174
+ id: innerId,
175
+ "aria-labelledby": labelId,
58
176
  "aria-describedby": helperTextId,
59
- placeholder: placeholder,
177
+ placeholder: innerPlaceholderValue,
60
178
  disabled: disabled,
179
+ readOnly: !disabled && readOnly,
61
180
  onChange: handleChange,
62
- onKeyUp: handleKeyUp
181
+ onKeyDown: handleInputKeydown
63
182
  })), labelInside && /*#__PURE__*/React.createElement(TextField_styles.Label, {
64
- id: lableId
65
- }, label)), contentRight), leftHelper && /*#__PURE__*/React.createElement(TextField_styles.LeftHelper, {
183
+ id: labelId,
184
+ htmlFor: innerId
185
+ }, innerLabelValue)), contentRight && /*#__PURE__*/React.createElement(TextField_styles.StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/React.createElement(TextField_styles.LeftHelper, {
66
186
  id: helperTextId
67
187
  }, leftHelper));
68
188
  });
69
189
  };
70
190
  var textFieldConfig = {
71
191
  name: 'TextField',
72
- tag: 'label',
192
+ tag: 'div',
73
193
  layout: textFieldRoot,
74
194
  base: base,
75
195
  variations: {
@@ -83,15 +203,21 @@ var textFieldConfig = {
83
203
  css: base$3.base,
84
204
  attrs: true
85
205
  },
206
+ readOnly: {
207
+ css: base$4.base,
208
+ attrs: true
209
+ },
86
210
  labelPlacement: {
87
- css: base$4.base
211
+ css: base$5.base
88
212
  }
89
213
  },
90
214
  defaults: {
91
- size: 'm'
215
+ size: 'm',
216
+ view: 'default'
92
217
  }
93
218
  };
94
219
 
220
+ exports.base = base;
95
221
  exports.textFieldConfig = textFieldConfig;
96
222
  exports.textFieldRoot = textFieldRoot;
97
223
  //# sourceMappingURL=TextField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.js","sources":["../../../src/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { ChangeEventHandler, KeyboardEventHandler, LabelHTMLAttributes } from 'react';\nimport { css } from '@linaria/core';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines';\n\nimport type { TextFieldProps } from './TextField.types';\nimport { base as size } from './_size/base';\nimport { base as view } from './_view/base';\nimport { base as disabled } from './_disabled/base';\nimport { base as labelPlacement } from './_label-placement/base';\nimport { Input, LeftHelper, Label, InputWrapper, InputLabelWrapper } from './TextField.styles';\n\nconst base = css`\n /* NOTE: Webkit не применяет opacity к inline тегам */\n display: block;\n`;\n\nexport const textFieldRoot = (\n Root: RootProps<HTMLInputElement, TextFieldProps & LabelHTMLAttributes<HTMLLabelElement>>,\n) =>\n forwardRef<HTMLInputElement, TextFieldProps>((props, ref) => {\n const {\n // layout\n contentLeft,\n contentRight,\n children,\n label,\n labelPlacement,\n placeholder,\n leftHelper,\n\n // variations\n view,\n size,\n disabled,\n\n // events\n onChange,\n onSearch,\n\n ...rest\n } = props;\n\n const handleChange: ChangeEventHandler<HTMLInputElement> = (event) => {\n const { maxLength, value } = event.target;\n\n if (!onChange || (maxLength !== -1 && value.length > maxLength)) {\n return;\n }\n\n onChange(event);\n };\n\n const handleKeyUp: KeyboardEventHandler<HTMLInputElement> = (event) => {\n if (event.key === 'Enter' && onSearch) {\n onSearch((event.target as HTMLInputElement).value, event);\n }\n };\n\n const labelInside = labelPlacement === 'inner';\n const lableId = safeUseId();\n const helperTextId = safeUseId();\n\n return (\n <Root view={view} size={size} disabled={disabled} labelPlacement={labelPlacement}>\n {labelInside || (label && <Label id={lableId}>{label}</Label>)}\n <InputWrapper>\n {contentLeft}\n <InputLabelWrapper>\n <Input\n {...rest}\n ref={ref}\n aria-labelledby={lableId}\n aria-describedby={helperTextId}\n placeholder={placeholder}\n disabled={disabled}\n onChange={handleChange}\n onKeyUp={handleKeyUp}\n />\n {labelInside && <Label id={lableId}>{label}</Label>}\n </InputLabelWrapper>\n {contentRight}\n </InputWrapper>\n {leftHelper && <LeftHelper id={helperTextId}>{leftHelper}</LeftHelper>}\n </Root>\n );\n });\n\nexport const textFieldConfig = {\n name: 'TextField',\n tag: 'label',\n layout: textFieldRoot,\n base,\n variations: {\n view: {\n css: view,\n },\n size: {\n css: size,\n },\n disabled: {\n css: disabled,\n attrs: true,\n },\n labelPlacement: {\n css: labelPlacement,\n },\n },\n defaults: {\n size: 'm',\n },\n};\n"],"names":["base","textFieldRoot","Root","forwardRef","props","ref","contentLeft","contentRight","label","labelPlacement","placeholder","leftHelper","view","size","disabled","onChange","onSearch","rest","_excluded","handleChange","event","_event$target","target","maxLength","value","length","handleKeyUp","key","labelInside","lableId","safeUseId","helperTextId","React","createElement","Label","id","InputWrapper","InputLabelWrapper","Input","_extends","onKeyUp","LeftHelper","textFieldConfig","name","tag","layout","variations","css","attrs","defaults"],"mappings":";;;;;;;;;;;;;;AAcA,IAAMA,IAAI,GAGT,SAAA,CAAA;IAEYC,aAAa,GAAGA,SAAhBA,aAAaA,CACtBC,IAAyF,EAAA;AAAA,EAAA,oBAEzFC,gBAAU,CAAmC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACzD,IAAA,IAEIC,WAAW,GAkBXF,KAAK,CAlBLE,WAAW,CAAA;MACXC,YAAY,GAiBZH,KAAK,CAjBLG,YAAY,CAAA;MAEZC,KAAK,GAeLJ,KAAK,CAfLI,KAAK,CAAA;MACLC,cAA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AA,MAAM,EAAE5C,aAAa;AACrBD,EAAAA,IAAI,EAAJA,IAAI;AACJ8C,EAAAA,UAAU,EAAE;AACRlC,IAAAA,IAAI,EAAE;AACFmC,MAAAA,GAAG,EAAEnC,WAAAA;KACR;AACDC,IAAAA,IAAI,EAAE;AACFkC,MAAAA,GAAG,EAAElC,WAAAA;KACR;AACDC,IAAAA,QAAQ,EAAE;AACNiC,MAAAA,GAAG,EAAEjC,WAAQ;AACbkC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDvC,IAAAA,cAAc,EAAE;AACZsC,MAAAA,GAAG,EAAEtC,WAAAA;AACT,KAAA;GACH;AACDwC,EAAAA,QAAQ,EAAE;AACNpC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
1
+ {"version":3,"file":"TextField.js","sources":["../../../src/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport type { ChangeEventHandler } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\nimport { css } from '@linaria/core';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { ChipValues, TextFieldPrimitiveValue, TextFieldProps } from './TextField.types';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as readOnlyCSS } from './variations/_read-only/base';\nimport { base as labelPlacementCSS } from './variations/_label-placement/base';\nimport {\n Input,\n LeftHelper,\n Label,\n InputWrapper,\n InputLabelWrapper,\n StyledContentLeft,\n StyledContentRight,\n StyledChips,\n} from './TextField.styles';\nimport { classes } from './TextField.tokens';\nimport { TextFieldChip } from './ui';\nimport { useKeyNavigation } from './hooks/useKeyNavigation';\n\nexport const base = css`\n /* NOTE: Webkit не применяет opacity к inline тегам */\n display: block;\n overflow: hidden;\n`;\n\nexport const textFieldRoot = (Root: RootProps<HTMLDivElement, TextFieldProps>) =>\n forwardRef<HTMLDivElement, TextFieldProps>((props, ref) => {\n const {\n id,\n\n // layout\n contentLeft,\n contentRight,\n label,\n labelPlacement,\n placeholder,\n leftHelper,\n enumerationType = 'plain',\n\n // variations\n view,\n size,\n readOnly = false,\n disabled = false,\n\n // controlled\n values,\n\n // events\n onChange,\n onChangeChips,\n onSearch,\n\n ...rest\n } = props;\n\n const contentRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const chipsRefs = useRef<Array<HTMLButtonElement>>([]);\n\n const controlledRefs = { contentRef, inputRef, chipsRefs };\n\n const [chips, setChips] = useState<Array<ChipValues>>([]);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const labelId = safeUseId();\n const helperTextId = safeUseId();\n\n const isChipEnumeration = enumerationType === 'chip';\n const hideLabel = (size === 'xs' || isChipEnumeration) && labelPlacement === 'inner';\n const labelInside = size !== 'xs' && labelPlacement === 'inner';\n const innerLabelPlacementValue = hideLabel ? 'outer' : labelPlacement;\n const innerPlaceholderValue = hideLabel ? label : placeholder;\n const innerLabelValue = hideLabel ? undefined : label;\n\n const isChipsVisible = isChipEnumeration && chips?.length;\n const withHasChips = isChipsVisible ? classes.hasChips : undefined;\n const wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;\n const wrapperWithoutRightContent = !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;\n\n const handleChange: ChangeEventHandler<HTMLInputElement> = (event) => {\n if (disabled || readOnly) {\n return;\n }\n\n const { maxLength, value } = event.target;\n\n if (maxLength !== -1 && value.length > maxLength) {\n return;\n }\n\n onChange?.(event);\n };\n\n const updateChips = (newChips: Array<ChipValues>, newValues: Array<TextFieldPrimitiveValue>) => {\n setChips(newChips);\n onChangeChips?.(newValues);\n };\n\n const { handleInputKeydown, handleChipKeyDown, onChipClear, handleContentKeyDown } = useKeyNavigation({\n controlledRefs,\n disabled,\n readOnly,\n chips,\n enumerationType,\n updateChips,\n onSearch,\n onChange,\n });\n\n const onChipClick = (event: React.MouseEvent<HTMLButtonElement>) => event.stopPropagation();\n\n const handleInputFocus = () => {\n if (readOnly || disabled || !inputRef?.current) {\n return;\n }\n\n inputRef.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n inputRef.current.focus({ preventScroll: true });\n };\n\n const getRef = (element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs?.current) {\n chipsRefs.current[index] = element;\n }\n };\n\n useEffect(() => {\n if (!isChipEnumeration && !values?.length) {\n return;\n }\n\n const newChips =\n values?.map((value, index) => ({\n id: `${index}_${value}`,\n text: value,\n })) || [];\n\n setChips(newChips);\n }, [isChipEnumeration, values]);\n\n return (\n <Root\n ref={ref}\n view={view}\n size={size}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n labelPlacement={innerLabelPlacementValue}\n onClick={handleInputFocus}\n >\n {labelInside ||\n (innerLabelValue && (\n <Label id={labelId} htmlFor={id}>\n {innerLabelValue}\n </Label>\n ))}\n <InputWrapper className={cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)}>\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <InputLabelWrapper\n tabIndex={-1}\n ref={contentRef}\n onKeyDown={handleContentKeyDown}\n className={withHasChips}\n >\n {isChipEnumeration && Boolean(chips?.length) && (\n <StyledChips>\n {chips?.map(({ id: chipId, text }, index) => {\n return (\n <TextFieldChip\n ref={(element) => getRef(element, index)}\n chipId={chipId}\n key={`${chipId}_${index}`}\n disabled={disabled}\n readOnly={readOnly}\n value={text}\n text={text}\n onKeyDown={(event) => handleChipKeyDown(event, chipId)}\n onClear={() => onChipClear(chipId)}\n onClick={onChipClick}\n />\n );\n })}\n </StyledChips>\n )}\n <Input\n {...rest}\n ref={inputRef}\n id={innerId}\n aria-labelledby={labelId}\n aria-describedby={helperTextId}\n placeholder={innerPlaceholderValue}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n onChange={handleChange}\n onKeyDown={handleInputKeydown}\n />\n {labelInside && (\n <Label id={labelId} htmlFor={innerId}>\n {innerLabelValue}\n </Label>\n )}\n </InputLabelWrapper>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </InputWrapper>\n {leftHelper && <LeftHelper id={helperTextId}>{leftHelper}</LeftHelper>}\n </Root>\n );\n });\n\nexport const textFieldConfig = {\n name: 'TextField',\n tag: 'div',\n layout: textFieldRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n readOnly: {\n css: readOnlyCSS,\n attrs: true,\n },\n labelPlacement: {\n css: labelPlacementCSS,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["base","textFieldRoot","Root","forwardRef","props","ref","id","contentLeft","contentRight","label","labelPlacement","placeholder","leftHelper","_props$enumerationTyp","enumerationType","view","size","_props$readOnly","readOnly","_props$disabled","disabled","values","onChange","onChangeChips","onSearch","rest","_excluded","contentRef","useRef","inputRef","chipsRefs","controlledRefs","_useState","useState","_useState2","_slicedToArray","chips","setChips","uniqId","safeUseId","innerId","labelId","helperTextId","isChipEnumeration","hideLabel","labelInside","innerLabelPlacementValue","innerPlaceholderValue","innerLabelValue","undefined","isChipsVisible","length","withHasChips","classes","hasChips","wrapperWithoutLeftContent","hasEmptyContentLeft","wrapperWithoutRightContent","hasEmptyContentRight","handleChange","event","_event$target","target","maxLength","value","updateChips","newChips","newValues","_useKeyNavigation","useKeyNavigation","handleInputKeydown","handleChipKeyDown","onChipClear","handleContentKeyDown","onChipClick","stopPropagation","handleInputFocus","current","scrollIntoView","behavior","block","inline","focus","preventScroll","getRef","element","index","useEffect","map","concat","text","React","createElement","onClick","Label","htmlFor","InputWrapper","className","cx","StyledContentLeft","InputLabelWrapper","tabIndex","onKeyDown","Boolean","StyledChips","_ref","chipId","TextFieldChip","key","onClear","Input","_extends","StyledContentRight","LeftHelper","textFieldConfig","name","tag","layout","variations","css","viewCS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iC,CAC7D,CAAA,EACbI,UAAU,iBAAI+E,KAAA,CAAAC,aAAA,CAACqB,2BAAU,EAAA;AAAC3G,MAAAA,EAAE,EAAEoC,YAAAA;KAAe9B,EAAAA,UAAuB,CACnE,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMsG,eAAe,GAAG;AAC3BC,EAAAA,IAAI,EAAE,WAAW;AACjBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEpH,aAAa;AACrBD,EAAAA,IAAI,EAAJA,IAAI;AACJsH,EAAAA,UAAU,EAAE;AACRvG,IAAAA,IAAI,EAAE;AACFwG,MAAAA,GAAG,EAAEC,WAAAA;KACR;AACDxG,IAAAA,IAAI,EAAE;AACFuG,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDrG,IAAAA,QAAQ,EAAE;AACNmG,MAAAA,GAAG,EAAEG,WAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDzG,IAAAA,QAAQ,EAAE;AACNqG,MAAAA,GAAG,EAAEK,WAAW;AAChBD,MAAAA,KAAK,EAAE,IAAA;KACV;AACDjH,IAAAA,cAAc,EAAE;AACZ6G,MAAAA,GAAG,EAAEM,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN9G,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;;"}
@@ -1,12 +1,12 @@
1
- import './TextField.styles_2qw1n8.css';
1
+ import './TextField.styles_1b1mddp.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var react = require('@linaria/react');
7
7
 
8
- var Input = /*#__PURE__*/react.styled('input')({
9
- name: "Input",
8
+ var InputWrapper = /*#__PURE__*/react.styled('div')({
9
+ name: "InputWrapper",
10
10
  "class": "iq39zt5",
11
11
  propsAsIs: false
12
12
  });
@@ -15,21 +15,34 @@ var InputLabelWrapper = /*#__PURE__*/react.styled('div')({
15
15
  "class": "i1j28rg8",
16
16
  propsAsIs: false
17
17
  });
18
-
19
- // NOTE: border-width is used in size border-color is used in view
20
- var InputWrapper = /*#__PURE__*/react.styled('div')({
21
- name: "InputWrapper",
22
- "class": "i13zudoe",
18
+ var StyledChips = /*#__PURE__*/react.styled('div')({
19
+ name: "StyledChips",
20
+ "class": "s13zudoe",
23
21
  propsAsIs: false
24
22
  });
25
- var Label = /*#__PURE__*/react.styled('div')({
23
+ var Input = /*#__PURE__*/react.styled('input')({
24
+ name: "Input",
25
+ "class": "io4bpie",
26
+ propsAsIs: false
27
+ });
28
+ var Label = /*#__PURE__*/react.styled('label')({
26
29
  name: "Label",
27
- "class": "lo4bpie",
30
+ "class": "l13qvwoy",
31
+ propsAsIs: false
32
+ });
33
+ var StyledContentLeft = /*#__PURE__*/react.styled('div')({
34
+ name: "StyledContentLeft",
35
+ "class": "s19ry60d",
36
+ propsAsIs: false
37
+ });
38
+ var StyledContentRight = /*#__PURE__*/react.styled('div')({
39
+ name: "StyledContentRight",
40
+ "class": "sbt1ohz",
28
41
  propsAsIs: false
29
42
  });
30
43
  var LeftHelper = /*#__PURE__*/react.styled('div')({
31
44
  name: "LeftHelper",
32
- "class": "l13qvwoy",
45
+ "class": "llv9av6",
33
46
  propsAsIs: false
34
47
  });
35
48
 
@@ -38,4 +51,7 @@ exports.InputLabelWrapper = InputLabelWrapper;
38
51
  exports.InputWrapper = InputWrapper;
39
52
  exports.Label = Label;
40
53
  exports.LeftHelper = LeftHelper;
54
+ exports.StyledChips = StyledChips;
55
+ exports.StyledContentLeft = StyledContentLeft;
56
+ exports.StyledContentRight = StyledContentRight;
41
57
  //# sourceMappingURL=TextField.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.styles.js","sources":["../../../src/components/TextField/TextField.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nexport const Input = styled.input`\n box-sizing: border-box;\n appearance: none;\n border: 0;\n padding: 0;\n background-color: transparent;\n outline: none;\n`;\n\nexport const InputLabelWrapper = styled.div`\n ${Input} {\n width: 100%;\n }\n`;\n\n// NOTE: border-width is used in size border-color is used in view\nexport const InputWrapper = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n\n box-shadow: inset 0 0 0 var(--plasma_private-textfield-border-width) var(--plasma_private-textfield-border-color);\n\n ${InputLabelWrapper} {\n flex-grow: 1;\n }\n`;\n\nexport const Label = styled.div``;\n\nexport const LeftHelper = styled.div``;\n"],"names":["Input","styled","name","class","propsAsIs","InputLabelWrapper","InputWrapper","Label","LeftHelper"],"mappings":";;;;;;AAEO,IAAMA,KAAK,gBAAGC,YAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,OAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAO1B,EAAA;AAEM,IAAMC,iBAAiB,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAItC,EAAA;;AAED;AACO,IAAME,YAAY,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAUjC,EAAA;AAEM,IAAMG,KAAK,gBAAGN,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,OAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM,EAAA;AAE1B,IAAMI,UAAU,gBAAGP,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM;;;;;;;;"}
1
+ {"version":3,"file":"TextField.styles.js","sources":["../../../src/components/TextField/TextField.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens } from './TextField.tokens';\n\nexport const InputWrapper = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n`;\n\nexport const InputLabelWrapper = styled.div`\n flex: 1;\n overflow: scroll;\n position: relative;\n width: 100%;\n display: inline-flex;\n align-items: center;\n\n ::-webkit-scrollbar {\n display: none;\n }\n\n scrollbar-width: none;\n\n overscroll-behavior: contain;\n\n &.${String(classes.hasChips)} {\n height: var(${tokens.chipHeight});\n border-radius: var(${tokens.chipBorderRadius});\n }\n`;\n\nexport const StyledChips = styled.div`\n display: flex;\n gap: var(${tokens.chipGap});\n margin-right: var(${tokens.chipGap});\n user-select: none;\n`;\n\nexport const Input = styled.input`\n box-sizing: border-box;\n appearance: none;\n border: 0;\n padding: 0;\n background-color: transparent;\n outline: none;\n flex: 1;\n min-width: 60%;\n`;\n\nexport const Label = styled.label``;\n\nexport const StyledContentLeft = styled.div`\n margin: var(${tokens.leftContentMargin});\n`;\n\nexport const StyledContentRight = styled.div`\n margin: var(${tokens.rightContentMargin});\n`;\n\nexport const LeftHelper = styled.div``;\n"],"names":["InputWrapper","styled","name","class","propsAsIs","InputLabelWrapper","StyledChips","Input","Label","StyledContentLeft","StyledContentRight","LeftHelper"],"mappings":";;;;;;AAIO,IAAMA,YAAY,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKjC,EAAA;AAEM,IAAMC,iBAAiB,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,E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:center;align-items:center;box-sizing:border-box;}
2
+ .i1j28rg8{-webkit-flex:1;-ms-flex:1;flex:1;overflow:scroll;position:relative;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;overscroll-behavior:contain;}.i1j28rg8::-webkit-scrollbar{display:none;}.i1j28rg8.has-chips{height:var(--plasma-textfield__chip-height);border-radius:var(--plasma-textfield__chip-border-radius);}
3
+ .s13zudoe{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-textfield__chip-gap);margin-right:var(--plasma-textfield__chip-gap);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
4
+ .io4bpie{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;-webkit-flex:1;-ms-flex:1;flex:1;min-width:60%;}
5
+
6
+ .s19ry60d{margin:var(--plasma-textfield__left-content-margin);}
7
+ .sbt1ohz{margin:var(--plasma-textfield__right-content-margin);}
8
+
@@ -2,34 +2,45 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var classes = {
6
+ hasChips: 'has-chips',
7
+ hasEmptyContentLeft: 'has-empty-content-left',
8
+ hasEmptyContentRight: 'has-empty-content-right'
9
+ };
5
10
  var tokens = {
6
11
  color: '--plasma-textfield-color',
7
12
  backgroundColor: '--plasma-textfield-bg-color',
8
13
  backgroundColorHover: '--plasma-textfield-bg-color-hover',
9
14
  backgroundColorFocus: '--plasma-textfield-bg-color-focus',
10
- /** Цвет каретки */
11
- caretColor: '--plasma-textfield__caret-color',
12
- placeholderColor: '--plasma-textfield__placeholder-color',
13
15
  borderColor: '--plasma-textfield-border-color',
14
16
  borderColorHover: '--plasma-textfield-border-color-hover',
15
17
  borderColorFocus: '--plasma-textfield-border-color-focus',
18
+ /** Цвета для read-only состояния */
19
+ colorReadOnly: '--plasma-textfield-color-readonly',
20
+ backgroundColorReadOnly: '--plasma-textfield-bg-color-readonly',
21
+ borderColorReadOnly: '--plasma-textfield-border-color-readonly',
22
+ placeholderColorReadOnly: '--plasma-textfield__placeholder-color-readonly',
23
+ /** Цвет каретки */
24
+ caretColor: '--plasma-textfield__caret-color',
25
+ placeholderColor: '--plasma-textfield__placeholder-color',
16
26
  height: '--plasma-textfield-height',
17
27
  borderWidth: '--plasmas-textfield-border-width',
18
28
  borderRadius: '--plasma-textfield-border-radius',
19
- /** отступ от границы ТextField */
29
+ /** Отступ от границы ТextField */
20
30
  padding: '--plasma-textfield-padding',
21
- paddingWithContent: '--plasma-textfield-padding-with-content',
22
- /* Отступ между Иконками и текстом Инпута */
23
- /* Отступ при отсутствии Иконок сохраняется */
24
- contentOffset: '--plasma-textfield__content-offset',
31
+ paddingWithChips: '--plasma-textfield-padding-with-chips',
32
+ /* Токены для инпута */
33
+ leftContentMargin: '--plasma-textfield__left-content-margin',
34
+ rightContentMargin: '--plasma-textfield__right-content-margin',
25
35
  fontFamily: '--plasma-textfield-font-family',
26
36
  fontStyle: '--plasma-textfield-font-style',
27
37
  fontSize: '--plasma-textfield-font-size',
28
38
  fontWeight: '--plasma-textfield-font-weight',
29
39
  letterSpacing: '--plasma-textfield-letter-spacing',
30
40
  lineHeight: '--plasma-textfield-line-height',
31
- /** Цвет подписи */
41
+ /** Токены лейбла */
32
42
  labelColor: '--plasma-textfield__label-color',
43
+ labelColorReadOnly: '--plasma-textfield__label-color-readonly',
33
44
  labelOffset: '--plasma-textfield__label-offset',
34
45
  labelFontFamily: '--plasma-textfield__label-font-family',
35
46
  labelFontStyle: '--plasma-textfield__label-font-style',
@@ -44,19 +55,56 @@ var tokens = {
44
55
  labelInnerFontWeight: '--plasma-textfield-placement_inner__label-font-weight',
45
56
  labelInnerLetterSpacing: '--plasma-textfield-placement_inner__label-letter-spacing',
46
57
  labelInnerLineHeight: '--plasma-textfield-placement_inner__label-line-height',
47
- leftHelperColor: '--plasma-textfield__leftHelper-color',
48
- leftHelperOffset: '--plasma-textfield__leftHelper-offset',
49
- leftHelperFontFamily: '--plasma-textfield__leftHelper-font-family',
50
- leftHelperFontStyle: '--plasma-textfield__leftHelper-font-style',
51
- leftHelperFontSize: '--plasma-textfield__leftHelper-font-size',
52
- leftHelperFontWeight: '--plasma-textfield__leftHelper-font-weight',
53
- leftHelperLetterSpacing: '--plasma-textfield__leftHelper-letter-spacing',
54
- leftHelperLineHeight: '--plasma-textfield__leftHelper-line-height',
55
- /* Дополнительный цвет который можно использовать в <Icon color="inheit" /> */
56
- contentColor: '--plasma-textfield__content-color',
58
+ labelInnerPadding: '--plasma-textfield-placement_inner__label-padding',
59
+ contentLabelInnerPadding: '--plasma-textfield-placement_inner__content-padding',
60
+ leftHelperColor: '--plasma-textfield__left-helper-color',
61
+ leftHelperColorReadOnly: '--plasma-textfield__left-helper-color-readonly',
62
+ leftHelperOffset: '--plasma-textfield__left-helper-offset',
63
+ leftHelperFontFamily: '--plasma-textfield__left-helper-font-family',
64
+ leftHelperFontStyle: '--plasma-textfield__left-helper-font-style',
65
+ leftHelperFontSize: '--plasma-textfield__left-helper-font-size',
66
+ leftHelperFontWeight: '--plasma-textfield__left-helper-font-weight',
67
+ leftHelperLetterSpacing: '--plasma-textfield__left-helper-letter-spacing',
68
+ leftHelperLineHeight: '--plasma-textfield__left-helper-line-height',
57
69
  /** Прозрачность для всего компонента в состоянии disabled */
58
- disabledOpacity: '--plasma-textfield-disabled-opacity'
70
+ disabledOpacity: '--plasma-textfield-disabled-opacity',
71
+ /** Токены чипа */
72
+ chipHeight: '--plasma-textfield__chip-height',
73
+ chipBorderRadius: '--plasma-textfield__chip-border-radius',
74
+ chipGap: '--plasma-textfield__chip-gap',
75
+ chipBackground: '--plasma-textfield__chip-background',
76
+ chipColor: '--plasma-textfield__chip-color',
77
+ chipBackgroundHover: '--plasma-textfield__chip-background-hover',
78
+ chipColorHover: '--plasma-textfield__chip-color-hover',
79
+ chipScaleHover: '--plasma-textfield__chip-scale-hover',
80
+ chipBackgroundReadOnly: '--plasma-textfield__chip-background-readonly',
81
+ chipColorReadOnly: '--plasma-textfield__chip-color-readonly',
82
+ chipBackgroundReadOnlyHover: '--plasma-textfield__chip-background-readonly-hover',
83
+ chipColorReadOnlyHover: '--plasma-textfield__chip-color-readonly-hover',
84
+ chipBackgroundActive: '--plasma-textfield__chip-background-active',
85
+ chipColorActive: '--plasma-textfield__chip-color-active',
86
+ chipScaleActive: '--plasma-textfield__chip-scale-active',
87
+ chipFocusColor: '--plasma-textfield__chip-focus-color',
88
+ chipCloseIconColor: '--plasma-textfield__chip-close-icon-color',
89
+ chipOutlineSize: '--plasma-textfield__chip-outline-size',
90
+ chipWidth: '--plasma-textfield__chip-width',
91
+ chipPaddingTop: '--plasma-textfield__chip-padding-top',
92
+ chipPaddingRight: '--plasma-textfield__chip-padding-right',
93
+ chipPaddingBottom: '--plasma-textfield__chip-padding-bottom',
94
+ chipPaddingLeft: '--plasma-textfield__chip-padding-left',
95
+ chipCloseIconSize: '--plasma-textfield__chip-close-icon-size',
96
+ chipFontFamily: '--plasma-textfield__chip-font-family',
97
+ chipFontSize: '--plasma-textfield__chip-font-size',
98
+ chipFontStyle: '--plasma-textfield__chip-font-style',
99
+ chipFontWeight: '--plasma-textfield__chip-font-weight',
100
+ chipLetterSpacing: '--plasma-textfield__chip-letter-spacing',
101
+ chipLineHeight: '--plasma-textfield__chip-line-height',
102
+ chipClearContentMarginLeft: '--plasma-textfield__chip-clear-content-margin-left',
103
+ chipClearContentMarginRight: '--plasma-textfield__chip-clear-content-margin-right',
104
+ chipOpacityReadonly: '--plasma-textfield__chip-opacity-readonly',
105
+ focusColor: '--plasma-textfield-focus-color'
59
106
  };
60
107
 
108
+ exports.classes = classes;
61
109
  exports.tokens = tokens;
62
110
  //# sourceMappingURL=TextField.tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.tokens.js","sources":["../../../src/components/TextField/TextField.tokens.ts"],"sourcesContent":["export const tokens = {\n color: '--plasma-textfield-color',\n backgroundColor: '--plasma-textfield-bg-color',\n backgroundColorHover: '--plasma-textfield-bg-color-hover',\n backgroundColorFocus: '--plasma-textfield-bg-color-focus',\n /** Цвет каретки */\n caretColor: '--plasma-textfield__caret-color',\n placeholderColor: '--plasma-textfield__placeholder-color',\n borderColor: '--plasma-textfield-border-color',\n borderColorHover: '--plasma-textfield-border-color-hover',\n borderColorFocus: '--plasma-textfield-border-color-focus',\n\n height: '--plasma-textfield-height',\n borderWidth: '--plasmas-textfield-border-width',\n borderRadius: '--plasma-textfield-border-radius',\n /** отступ от границы ТextField */\n padding: '--plasma-textfield-padding',\n paddingWithContent: '--plasma-textfield-padding-with-content',\n\n /* Отступ между Иконками и текстом Инпута */\n /* Отступ при отсутствии Иконок сохраняется */\n contentOffset: '--plasma-textfield__content-offset',\n\n fontFamily: '--plasma-textfield-font-family',\n fontStyle: '--plasma-textfield-font-style',\n fontSize: '--plasma-textfield-font-size',\n fontWeight: '--plasma-textfield-font-weight',\n letterSpacing: '--plasma-textfield-letter-spacing',\n lineHeight: '--plasma-textfield-line-height',\n\n /** Цвет подписи */\n labelColor: '--plasma-textfield__label-color',\n labelOffset: '--plasma-textfield__label-offset',\n\n labelFontFamily: '--plasma-textfield__label-font-family',\n labelFontStyle: '--plasma-textfield__label-font-style',\n labelFontSize: '--plasma-textfield__label-font-size',\n labelFontWeight: '--plasma-textfield__label-font-weight',\n labelLetterSpacing: '--plasma-textfield__label-letter-spacing',\n labelLineHeight: '--plasma-textfield__label-line-height',\n\n /* label-placement-inner */\n labelInnerFontFamily: '--plasma-textfield-placement_inner__label-font-family',\n labelInnerFontStyle: '--plasma-textfield-placement_inner__label-font-style',\n labelInnerFontSize: '--plasma-textfield-placement_inner__label-font-size',\n labelInnerFontWeight: '--plasma-textfield-placement_inner__label-font-weight',\n labelInnerLetterSpacing: '--plasma-textfield-placement_inner__label-letter-spacing',\n labelInnerLineHeight: '--plasma-textfield-placement_inner__label-line-height',\n\n leftHelperColor: '--plasma-textfield__leftHelper-color',\n leftHelperOffset: '--plasma-textfield__leftHelper-offset',\n\n leftHelperFontFamily: '--plasma-textfield__leftHelper-font-family',\n leftHelperFontStyle: '--plasma-textfield__leftHelper-font-style',\n leftHelperFontSize: '--plasma-textfield__leftHelper-font-size',\n leftHelperFontWeight: '--plasma-textfield__leftHelper-font-weight',\n leftHelperLetterSpacing: '--plasma-textfield__leftHelper-letter-spacing',\n leftHelperLineHeight: '--plasma-textfield__leftHelper-line-height',\n\n /* Дополнительный цвет который можно использовать в <Icon color=\"inheit\" /> */\n contentColor: '--plasma-textfield__content-color',\n\n /** Прозрачность для всего компонента в состоянии disabled */\n disabledOpacity: '--plasma-textfield-disabled-opacity',\n};\n"],"names":["tokens","color","backgroundColor","backgroundColorHover","backgroundColorFocus","caretColor","placeholderColor","borderColor","borderColorHover","borderColorFocus","height","borderWidth","borderRadius","padding","paddingWithContent","contentOffset","fontFamily","fontStyle","fontSize","fontWeight","letterSpacing","lineHeight","labelColor","labelOffset","labelFontFamily","labelFontStyle","labelFontSize","labelFontWeight","labelLetterSpacing","labelLineHeight","labelInnerFontFamily","labelInnerFontStyle","labelInnerFontSize","labelInnerFontWeight","labelInnerLetterSpacing","labelInnerLineHeight","leftHelperColor","leftHelperOffset","leftHelperFontFamily","leftHelperFontStyle","leftHelperFontSize","leftHelperFontWeight","leftHelperLetterSpacing","leftHelperLineHeight","contentColor","disabledOpacity"],"mappings":";;;;AAAO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,KAAK,EAAE,0BAA0B;AACjCC,EAAAA,eAAe,EAAE,6BAA6B;AAC9CC,EAAAA,oBAAoB,EAAE,mCAAmC;AACzDC,EAAAA,oBAAoB,EAAE,mCAAmC;AACzD;AACAC,EAAAA,UAAU,EAAE,iCAAiC;AAC7CC,EAAAA,gBAAgB,EAAE,uCAAuC;AAC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,EAAAA,kBAAkB,EAAE,0CAA0C;AAC9DC,EAAAA,oBAAoB,EAAE,4CAA4C;AAClEC,EAAAA,uBAAuB,EAAE,+CAA+C;AACxEC,EAAAA,oBAAoB,EAAE,4CAA4C;AAElE;AACAC,EAAAA,YAAY,EAAE,mCAAmC;AAEjD;AACAC,EAAAA,eAAe,EAAE,qCAAA;AACrB;;;;"}
1
+ {"version":3,"file":"TextField.tokens.js","sources":["../../../src/components/TextField/TextField.tokens.ts"],"sourcesContent":["export const classes = {\n hasChips: 'has-chips',\n hasEmptyContentLeft: 'has-empty-content-left',\n hasEmptyContentRight: 'has-empty-content-right',\n};\n\nexport const tokens = {\n color: '--plasma-textfield-color',\n\n backgroundColor: '--plasma-textfield-bg-color',\n backgroundColorHover: '--plasma-textfield-bg-color-hover',\n backgroundColorFocus: '--plasma-textfield-bg-color-focus',\n\n borderColor: '--plasma-textfield-border-color',\n borderColorHover: '--plasma-textfield-border-color-hover',\n borderColorFocus: '--plasma-textfield-border-color-focus',\n\n /** Цвета для read-only состояния */\n colorReadOnly: '--plasma-textfield-color-readonly',\n backgroundColorReadOnly: '--plasma-textfield-bg-color-readonly',\n borderColorReadOnly: '--plasma-textfield-border-color-readonly',\n placeholderColorReadOnly: '--plasma-textfield__placeholder-color-readonly',\n\n /** Цвет каретки */\n caretColor: '--plasma-textfield__caret-color',\n placeholderColor: '--plasma-textfield__placeholder-color',\n\n height: '--plasma-textfield-height',\n borderWidth: '--plasmas-textfield-border-width',\n borderRadius: '--plasma-textfield-border-radius',\n\n /** Отступ от границы ТextField */\n padding: '--plasma-textfield-padding',\n paddingWithChips: '--plasma-textfield-padding-with-chips',\n\n /* Токены для инпута */\n leftContentMargin: '--plasma-textfield__left-content-margin',\n rightContentMargin: '--plasma-textfield__right-content-margin',\n\n fontFamily: '--plasma-textfield-font-family',\n fontStyle: '--plasma-textfield-font-style',\n fontSize: '--plasma-textfield-font-size',\n fontWeight: '--plasma-textfield-font-weight',\n letterSpacing: '--plasma-textfield-letter-spacing',\n lineHeight: '--plasma-textfield-line-height',\n\n /** Токены лейбла */\n labelColor: '--plasma-textfield__label-color',\n labelColorReadOnly: '--plasma-textfield__label-color-readonly',\n labelOffset: '--plasma-textfield__label-offset',\n\n labelFontFamily: '--plasma-textfield__label-font-family',\n labelFontStyle: '--plasma-textfield__label-font-style',\n labelFontSize: '--plasma-textfield__label-font-size',\n labelFontWeight: '--plasma-textfield__label-font-weight',\n labelLetterSpacing: '--plasma-textfield__label-letter-spacing',\n labelLineHeight: '--plasma-textfield__label-line-height',\n\n /* label-placement-inner */\n labelInnerFontFamily: '--plasma-textfield-placement_inner__label-font-family',\n labelInnerFontStyle: '--plasma-textfield-placement_inner__label-font-style',\n labelInnerFontSize: '--plasma-textfield-placement_inner__label-font-size',\n labelInnerFontWeight: '--plasma-textfield-placement_inner__label-font-weight',\n labelInnerLetterSpacing: '--plasma-textfield-placement_inner__label-letter-spacing',\n labelInnerLineHeight: '--plasma-textfield-placement_inner__label-line-height',\n\n labelInnerPadding: '--plasma-textfield-placement_inner__label-padding',\n contentLabelInnerPadding: '--plasma-textfield-placement_inner__content-padding',\n\n leftHelperColor: '--plasma-textfield__left-helper-color',\n leftHelperColorReadOnly: '--plasma-textfield__left-helper-color-readonly',\n leftHelperOffset: '--plasma-textfield__left-helper-offset',\n\n leftHelperFontFamily: '--plasma-textfield__left-helper-font-family',\n leftHelperFontStyle: '--plasma-textfield__left-helper-font-style',\n leftHelperFontSize: '--plasma-textfield__left-helper-font-size',\n leftHelperFontWeight: '--plasma-textfield__left-helper-font-weight',\n leftHelperLetterSpacing: '--plasma-textfield__left-helper-letter-spacing',\n leftHelperLineHeight: '--plasma-textfield__left-helper-line-height',\n\n /** Прозрачность для всего компонента в состоянии disabled */\n disabledOpacity: '--plasma-textfield-disabled-opacity',\n\n /** Токены чипа */\n chipHeight: '--plasma-textfield__chip-height',\n chipBorderRadius: '--plasma-textfield__chip-border-radius',\n chipGap: '--plasma-textfield__chip-gap',\n chipBackground: '--plasma-textfield__chip-background',\n chipColor: '--plasma-textfield__chip-color',\n chipBackgroundHover: '--plasma-textfield__chip-background-hover',\n chipColorHover: '--plasma-textfield__chip-color-hover',\n chipScaleHover: '--plasma-textfield__chip-scale-hover',\n chipBackgroundReadOnly: '--plasma-textfield__chip-background-readonly',\n chipColorReadOnly: '--plasma-textfield__chip-color-readonly',\n chipBackgroundReadOnlyHover: '--plasma-textfield__chip-background-readonly-hover',\n chipColorReadOnlyHover: '--plasma-textfield__chip-color-readonly-hover',\n chipBackgroundActive: '--plasma-textfield__chip-background-active',\n chipColorActive: '--plasma-textfield__chip-color-active',\n chipScaleActive: '--plasma-textfield__chip-scale-active',\n chipFocusColor: '--plasma-textfield__chip-focus-color',\n chipCloseIconColor: '--plasma-textfield__chip-close-icon-color',\n chipOutlineSize: '--plasma-textfield__chip-outline-size',\n chipWidth: '--plasma-textfield__chip-width',\n chipPaddingTop: '--plasma-textfield__chip-padding-top',\n chipPaddingRight: '--plasma-textfield__chip-padding-right',\n chipPaddingBottom: '--plasma-textfield__chip-padding-bottom',\n chipPaddingLeft: '--plasma-textfield__chip-padding-left',\n chipCloseIconSize: '--plasma-textfield__chip-close-icon-size',\n chipFontFamily: '--plasma-textfield__chip-font-family',\n chipFontSize: '--plasma-textfield__chip-font-size',\n chipFontStyle: '--plasma-textfield__chip-font-style',\n chipFontWeight: '--plasma-textfield__chip-font-weight',\n chipLetterSpacing: '--plasma-textfield__chip-letter-spacing',\n chipLineHeight: '--plasma-textfield__chip-line-height',\n chipClearContentMarginLeft: '--plasma-textfield__chip-clear-content-margin-left',\n chipClearContentMarginRight: '--plasma-textfield__chip-clear-content-margin-right',\n chipOpacityReadonly: '--plasma-textfield__chip-opacity-readonly',\n\n focusColor: '--plasma-textfield-focus-color',\n};\n"],"names":["classes","hasChips","hasEmptyContentLeft","hasEmptyContentRight","tokens","color","backgroundColor","backgroundColorHover","backgroundColorFocus","borderColor","borderColorHover","borderColorFocus","colorReadOnly","backgroundColorReadOnly","borderColorReadOnly","placeholderColorReadOnly","caretColor","placeholderColor","height","borderWidth","borderRadius","padding","paddingWithChips","leftContentMargin","rightContentMargin","fontFamily","fontStyle","fontSize","fontWeight","letterSpacing","lineHeight","labelColor","labelColorReadOnly","labelOffset","labelFontFamily","labelFontStyle","labelFontSize","labelFontWeight","labelLetterSpacing","labelLineHeight","labelInnerFontFamily","labelInnerFontStyle","labelInnerFontSize","labelInnerFontWeight","labelInnerLetterSpacing","labelInnerLineHeight","labelInnerPadding","contentLabelInnerPadding","leftHelperColor","leftHelperColorReadOnly","leftHelperOffset","leftHelperFontFamily","leftHelperFontStyle","leftHelperFontSize","leftHelperFontWeight","leftHelperLetterSpacing","leftHelperLineHeight","disabledOpacity","chipHeight","chipBorderRadius","chipGap","chipBackground","chipColor","chipBackgroundHover","chipColorHover","chipScaleHover","chipBackgroundReadOnly","chipColorReadOnly","chipBackgroundReadOnlyHover","chipColorReadOnlyHover","chipBackgroundActive","chipColorActive","chipScaleActive","chipFocusColor","chipCloseIconColor","chipOutlineSize","chipWidth","chipPaddingTop","chipPaddingRight","chipPaddingBottom","chipPaddingLeft","chipCloseIconSize","chipFontFamily","chipFontSize","chipFontStyle","chipFontWeight","chipLetterSpacing","chipLineHeight","chipClearContentMarginLeft","chipClearContentMarginRight","chipOpacityReadonly","focusColor"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,mBAAmB,EAAE,wBAAwB;AAC7CC,EAAAA,oBAAoB,EAAE,yBAAA;AAC1B,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,KAAK,EAAE,0BAA0B;AAEjCC,EAAAA,eAAe,EAAE,6BAA6B;AAC9CC,EAAAA,oBAAoB,EAAE,mCAAmC;AACzDC,EAAAA,oBAAoB,EAAE,mCAAmC;AAEzDC,EAAAA,WAAW,EAAE,iCAAiC;AAC9CC,EAAAA,gBAAgB,EAAE,uCAAuC;AACzDC,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