@salutejs/plasma-new-hope 0.325.0-canary.1954.15277675821.0 → 0.325.0-canary.1967.15291487889.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/cjs/components/CodeField/CodeField.css +14 -0
  2. package/cjs/components/CodeField/CodeField.js +290 -0
  3. package/cjs/components/CodeField/CodeField.js.map +1 -0
  4. package/cjs/components/CodeField/CodeField.styles.js +57 -0
  5. package/cjs/components/CodeField/CodeField.styles.js.map +1 -0
  6. package/cjs/components/CodeField/CodeField.styles_7zxgpc.css +6 -0
  7. package/cjs/components/CodeField/CodeField.tokens.js +59 -0
  8. package/cjs/components/CodeField/CodeField.tokens.js.map +1 -0
  9. package/cjs/components/CodeField/utils/constants.js +18 -0
  10. package/cjs/components/CodeField/utils/constants.js.map +1 -0
  11. package/cjs/components/CodeField/utils/handleCodeError.js +55 -0
  12. package/cjs/components/CodeField/utils/handleCodeError.js.map +1 -0
  13. package/cjs/components/CodeField/utils/handleItemError.js +53 -0
  14. package/cjs/components/CodeField/utils/handleItemError.js.map +1 -0
  15. package/cjs/components/CodeField/utils/initialValuesHelper.js +33 -0
  16. package/cjs/components/CodeField/utils/initialValuesHelper.js.map +1 -0
  17. package/cjs/components/{List/variations/_view → CodeField/variations/_disabled}/base.js +2 -2
  18. package/cjs/components/CodeField/variations/_disabled/base.js.map +1 -0
  19. package/cjs/components/CodeField/variations/_disabled/base_obsae2.css +1 -0
  20. package/cjs/components/{List/variations/_variant → CodeField/variations/_shape}/base.js +2 -2
  21. package/cjs/components/CodeField/variations/_shape/base.js.map +1 -0
  22. package/cjs/components/CodeField/variations/_shape/base_1scsyya.css +1 -0
  23. package/cjs/components/{List/variations/_disabled → CodeField/variations/_size}/base.js +2 -2
  24. package/cjs/components/CodeField/variations/_size/base.js.map +1 -0
  25. package/cjs/components/CodeField/variations/_size/base_1wrvbr5.css +1 -0
  26. package/cjs/components/{List/variations/_size → CodeField/variations/_view}/base.js +2 -2
  27. package/cjs/components/CodeField/variations/_view/base.js.map +1 -0
  28. package/cjs/components/CodeField/variations/_view/base_9a5yza.css +1 -0
  29. package/cjs/components/Notification/Notification.css +12 -12
  30. package/cjs/components/Notification/Notification.js +5 -1
  31. package/cjs/components/Notification/Notification.js.map +1 -1
  32. package/cjs/components/Notification/Notification.styles.js +63 -48
  33. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  34. package/cjs/components/Notification/{Notification.styles_1yt699o.css → Notification.styles_1uyb7ob.css} +1 -1
  35. package/cjs/components/Notification/Notification.types.js.map +1 -1
  36. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  37. package/cjs/components/Notification/variations/_layout/base.js +1 -1
  38. package/cjs/components/Notification/variations/_layout/base.js.map +1 -1
  39. package/cjs/components/Notification/variations/_layout/base_1g9g70c.css +1 -0
  40. package/cjs/components/NumberInput/ui/Input/Input.js +0 -3
  41. package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -1
  42. package/cjs/index.css +27 -17
  43. package/cjs/index.js +10 -8
  44. package/cjs/index.js.map +1 -1
  45. package/emotion/cjs/components/CodeField/CodeField.js +299 -0
  46. package/emotion/cjs/components/CodeField/CodeField.styles.js +65 -0
  47. package/emotion/cjs/components/CodeField/CodeField.template-doc.mdx +150 -0
  48. package/emotion/cjs/components/CodeField/CodeField.tokens.js +57 -0
  49. package/emotion/cjs/components/CodeField/index.js +50 -0
  50. package/emotion/cjs/components/CodeField/utils/constants.js +12 -0
  51. package/emotion/cjs/components/CodeField/utils/handleCodeError.js +58 -0
  52. package/emotion/cjs/components/CodeField/utils/handleItemError.js +56 -0
  53. package/emotion/cjs/components/CodeField/utils/index.js +38 -0
  54. package/emotion/cjs/components/CodeField/utils/initialValuesHelper.js +30 -0
  55. package/emotion/cjs/components/CodeField/variations/_disabled/base.js +9 -0
  56. package/emotion/cjs/components/CodeField/variations/_disabled/tokens.json +4 -0
  57. package/emotion/cjs/components/CodeField/variations/_shape/base.js +10 -0
  58. package/emotion/cjs/components/CodeField/variations/_shape/tokens.json +1 -0
  59. package/emotion/cjs/components/CodeField/variations/_size/base.js +10 -0
  60. package/emotion/cjs/components/CodeField/variations/_size/tokens.json +19 -0
  61. package/emotion/cjs/components/CodeField/variations/_view/base.js +10 -0
  62. package/emotion/cjs/components/CodeField/variations/_view/tokens.json +0 -0
  63. package/emotion/cjs/components/Notification/Notification.js +5 -1
  64. package/emotion/cjs/components/Notification/Notification.styles.js +43 -36
  65. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +44 -0
  66. package/emotion/cjs/components/Notification/variations/_layout/base.js +1 -1
  67. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -3
  68. package/emotion/cjs/examples/fixtures/Notification.js +1 -1
  69. package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.config.js +31 -0
  70. package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.js +11 -0
  71. package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +107 -0
  72. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
  73. package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.config.js +31 -0
  74. package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.js +11 -0
  75. package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.stories.tsx +107 -0
  76. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
  77. package/emotion/cjs/index.js +11 -11
  78. package/emotion/es/components/CodeField/CodeField.js +290 -0
  79. package/emotion/es/components/CodeField/CodeField.styles.js +58 -0
  80. package/emotion/es/components/CodeField/CodeField.template-doc.mdx +150 -0
  81. package/emotion/es/components/CodeField/CodeField.tokens.js +51 -0
  82. package/emotion/es/components/CodeField/index.js +3 -0
  83. package/emotion/es/components/CodeField/utils/constants.js +6 -0
  84. package/emotion/es/components/CodeField/utils/handleCodeError.js +52 -0
  85. package/emotion/es/components/CodeField/utils/handleItemError.js +50 -0
  86. package/emotion/es/components/CodeField/utils/index.js +3 -0
  87. package/emotion/es/components/CodeField/utils/initialValuesHelper.js +24 -0
  88. package/emotion/es/components/CodeField/variations/_disabled/base.js +3 -0
  89. package/emotion/es/components/CodeField/variations/_disabled/tokens.json +4 -0
  90. package/emotion/es/components/CodeField/variations/_shape/base.js +4 -0
  91. package/emotion/es/components/CodeField/variations/_shape/tokens.json +1 -0
  92. package/emotion/es/components/CodeField/variations/_size/base.js +4 -0
  93. package/emotion/es/components/CodeField/variations/_size/tokens.json +19 -0
  94. package/emotion/es/components/CodeField/variations/_view/base.js +4 -0
  95. package/emotion/es/components/CodeField/variations/_view/tokens.json +0 -0
  96. package/emotion/es/components/Notification/Notification.js +5 -1
  97. package/emotion/es/components/Notification/Notification.styles.js +43 -36
  98. package/emotion/es/components/Notification/Notification.template-doc.mdx +44 -0
  99. package/emotion/es/components/Notification/variations/_layout/base.js +1 -1
  100. package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -3
  101. package/emotion/es/examples/fixtures/Notification.js +1 -1
  102. package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.config.js +25 -0
  103. package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.js +5 -0
  104. package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +107 -0
  105. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
  106. package/emotion/es/examples/plasma_web/components/CodeField/CodeField.config.js +25 -0
  107. package/emotion/es/examples/plasma_web/components/CodeField/CodeField.js +5 -0
  108. package/emotion/es/examples/plasma_web/components/CodeField/CodeField.stories.tsx +107 -0
  109. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
  110. package/emotion/es/index.js +1 -2
  111. package/es/components/CodeField/CodeField.css +14 -0
  112. package/es/components/CodeField/CodeField.js +280 -0
  113. package/es/components/CodeField/CodeField.js.map +1 -0
  114. package/es/components/CodeField/CodeField.styles.js +48 -0
  115. package/es/components/CodeField/CodeField.styles.js.map +1 -0
  116. package/es/components/CodeField/CodeField.styles_7zxgpc.css +6 -0
  117. package/es/components/CodeField/CodeField.tokens.js +54 -0
  118. package/es/components/CodeField/CodeField.tokens.js.map +1 -0
  119. package/es/components/CodeField/utils/constants.js +9 -0
  120. package/es/components/CodeField/utils/constants.js.map +1 -0
  121. package/es/components/CodeField/utils/handleCodeError.js +51 -0
  122. package/es/components/CodeField/utils/handleCodeError.js.map +1 -0
  123. package/es/components/CodeField/utils/handleItemError.js +49 -0
  124. package/es/components/CodeField/utils/handleItemError.js.map +1 -0
  125. package/es/components/CodeField/utils/initialValuesHelper.js +27 -0
  126. package/es/components/CodeField/utils/initialValuesHelper.js.map +1 -0
  127. package/es/components/{List/variations/_view → CodeField/variations/_disabled}/base.js +2 -2
  128. package/es/components/CodeField/variations/_disabled/base.js.map +1 -0
  129. package/es/components/CodeField/variations/_disabled/base_obsae2.css +1 -0
  130. package/es/components/CodeField/variations/_shape/base.js +5 -0
  131. package/es/components/CodeField/variations/_shape/base.js.map +1 -0
  132. package/es/components/CodeField/variations/_shape/base_1scsyya.css +1 -0
  133. package/es/components/{List/variations/_disabled → CodeField/variations/_size}/base.js +2 -2
  134. package/es/components/CodeField/variations/_size/base.js.map +1 -0
  135. package/es/components/CodeField/variations/_size/base_1wrvbr5.css +1 -0
  136. package/es/components/{List/variations/_size → CodeField/variations/_view}/base.js +2 -2
  137. package/es/components/CodeField/variations/_view/base.js.map +1 -0
  138. package/es/components/CodeField/variations/_view/base_9a5yza.css +1 -0
  139. package/es/components/Notification/Notification.css +12 -12
  140. package/es/components/Notification/Notification.js +5 -1
  141. package/es/components/Notification/Notification.js.map +1 -1
  142. package/es/components/Notification/Notification.styles.js +63 -48
  143. package/es/components/Notification/Notification.styles.js.map +1 -1
  144. package/es/components/Notification/{Notification.styles_1yt699o.css → Notification.styles_1uyb7ob.css} +1 -1
  145. package/es/components/Notification/Notification.types.js.map +1 -1
  146. package/es/components/Notification/NotificationsProvider.css +11 -11
  147. package/es/components/Notification/variations/_layout/base.js +1 -1
  148. package/es/components/Notification/variations/_layout/base.js.map +1 -1
  149. package/es/components/Notification/variations/_layout/base_1g9g70c.css +1 -0
  150. package/es/components/NumberInput/ui/Input/Input.js +0 -3
  151. package/es/components/NumberInput/ui/Input/Input.js.map +1 -1
  152. package/es/index.css +27 -17
  153. package/es/index.js +3 -3
  154. package/package.json +2 -2
  155. package/styled-components/cjs/components/CodeField/CodeField.js +299 -0
  156. package/styled-components/cjs/components/CodeField/CodeField.styles.js +38 -0
  157. package/styled-components/cjs/components/CodeField/CodeField.template-doc.mdx +150 -0
  158. package/styled-components/cjs/components/CodeField/CodeField.tokens.js +57 -0
  159. package/styled-components/cjs/components/CodeField/index.js +50 -0
  160. package/styled-components/cjs/components/CodeField/utils/constants.js +12 -0
  161. package/styled-components/cjs/components/CodeField/utils/handleCodeError.js +58 -0
  162. package/styled-components/cjs/components/CodeField/utils/handleItemError.js +56 -0
  163. package/styled-components/cjs/components/CodeField/utils/index.js +38 -0
  164. package/styled-components/cjs/components/CodeField/utils/initialValuesHelper.js +30 -0
  165. package/styled-components/cjs/components/{List/variations/_view → CodeField/variations/_disabled}/base.js +2 -1
  166. package/styled-components/cjs/components/CodeField/variations/_disabled/tokens.json +4 -0
  167. package/styled-components/cjs/components/CodeField/variations/_shape/base.js +10 -0
  168. package/styled-components/cjs/components/CodeField/variations/_shape/tokens.json +1 -0
  169. package/styled-components/cjs/components/CodeField/variations/_size/base.js +10 -0
  170. package/styled-components/cjs/components/CodeField/variations/_size/tokens.json +19 -0
  171. package/styled-components/cjs/components/CodeField/variations/_view/base.js +10 -0
  172. package/styled-components/cjs/components/CodeField/variations/_view/tokens.json +0 -0
  173. package/styled-components/cjs/components/Notification/Notification.js +5 -1
  174. package/styled-components/cjs/components/Notification/Notification.styles.js +33 -26
  175. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +44 -0
  176. package/styled-components/cjs/components/Notification/variations/_layout/base.js +1 -1
  177. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -3
  178. package/styled-components/cjs/examples/fixtures/Notification.js +1 -1
  179. package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.config.js +31 -0
  180. package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.js +11 -0
  181. package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +107 -0
  182. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
  183. package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.config.js +31 -0
  184. package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.js +11 -0
  185. package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.stories.tsx +107 -0
  186. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
  187. package/styled-components/cjs/index.js +11 -11
  188. package/styled-components/es/components/CodeField/CodeField.js +290 -0
  189. package/styled-components/es/components/CodeField/CodeField.styles.js +30 -0
  190. package/styled-components/es/components/CodeField/CodeField.template-doc.mdx +150 -0
  191. package/styled-components/es/components/CodeField/CodeField.tokens.js +51 -0
  192. package/styled-components/es/components/CodeField/index.js +3 -0
  193. package/styled-components/es/components/CodeField/utils/constants.js +6 -0
  194. package/styled-components/es/components/CodeField/utils/handleCodeError.js +52 -0
  195. package/styled-components/es/components/CodeField/utils/handleItemError.js +50 -0
  196. package/styled-components/es/components/CodeField/utils/index.js +3 -0
  197. package/styled-components/es/components/CodeField/utils/initialValuesHelper.js +24 -0
  198. package/styled-components/es/components/CodeField/variations/_disabled/base.js +3 -0
  199. package/styled-components/es/components/CodeField/variations/_disabled/tokens.json +4 -0
  200. package/styled-components/es/components/CodeField/variations/_shape/base.js +4 -0
  201. package/styled-components/es/components/CodeField/variations/_shape/tokens.json +1 -0
  202. package/styled-components/es/components/CodeField/variations/_size/base.js +4 -0
  203. package/styled-components/es/components/CodeField/variations/_size/tokens.json +19 -0
  204. package/styled-components/es/components/CodeField/variations/_view/base.js +4 -0
  205. package/styled-components/es/components/CodeField/variations/_view/tokens.json +0 -0
  206. package/styled-components/es/components/Notification/Notification.js +5 -1
  207. package/styled-components/es/components/Notification/Notification.styles.js +33 -26
  208. package/styled-components/es/components/Notification/Notification.template-doc.mdx +44 -0
  209. package/styled-components/es/components/Notification/variations/_layout/base.js +1 -1
  210. package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -3
  211. package/styled-components/es/examples/fixtures/Notification.js +1 -1
  212. package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.config.js +25 -0
  213. package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.js +5 -0
  214. package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +107 -0
  215. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
  216. package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.config.js +25 -0
  217. package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.js +5 -0
  218. package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.stories.tsx +107 -0
  219. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
  220. package/styled-components/es/index.js +1 -2
  221. package/types/components/CodeField/CodeField.d.ts +69 -0
  222. package/types/components/CodeField/CodeField.d.ts.map +1 -0
  223. package/types/components/CodeField/CodeField.styles.d.ts +11 -0
  224. package/types/components/CodeField/CodeField.styles.d.ts.map +1 -0
  225. package/types/components/CodeField/CodeField.tokens.d.ts +52 -0
  226. package/types/components/CodeField/CodeField.tokens.d.ts.map +1 -0
  227. package/types/components/CodeField/CodeField.types.d.ts +93 -0
  228. package/types/components/CodeField/CodeField.types.d.ts.map +1 -0
  229. package/types/components/CodeField/index.d.ts +4 -0
  230. package/types/components/CodeField/index.d.ts.map +1 -0
  231. package/types/components/CodeField/utils/constants.d.ts +7 -0
  232. package/types/components/CodeField/utils/constants.d.ts.map +1 -0
  233. package/types/components/CodeField/utils/handleCodeError.d.ts +15 -0
  234. package/types/components/CodeField/utils/handleCodeError.d.ts.map +1 -0
  235. package/types/components/CodeField/utils/handleItemError.d.ts +14 -0
  236. package/types/components/CodeField/utils/handleItemError.d.ts.map +1 -0
  237. package/types/components/CodeField/utils/index.d.ts +4 -0
  238. package/types/components/CodeField/utils/index.d.ts.map +1 -0
  239. package/types/components/CodeField/utils/initialValuesHelper.d.ts +4 -0
  240. package/types/components/CodeField/utils/initialValuesHelper.d.ts.map +1 -0
  241. package/types/components/CodeField/variations/_disabled/base.d.ts.map +1 -0
  242. package/types/components/CodeField/variations/_shape/base.d.ts.map +1 -0
  243. package/types/components/CodeField/variations/_size/base.d.ts.map +1 -0
  244. package/types/components/CodeField/variations/_view/base.d.ts.map +1 -0
  245. package/types/components/Notification/Notification.d.ts.map +1 -1
  246. package/types/components/Notification/Notification.styles.d.ts +3 -1
  247. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  248. package/types/components/Notification/Notification.types.d.ts +9 -0
  249. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  250. package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -1
  251. package/types/index.d.ts +1 -2
  252. package/types/index.d.ts.map +1 -1
  253. package/cjs/components/List/List.css +0 -1
  254. package/cjs/components/List/List.js +0 -63
  255. package/cjs/components/List/List.js.map +0 -1
  256. package/cjs/components/List/List.styles.js +0 -9
  257. package/cjs/components/List/List.styles.js.map +0 -1
  258. package/cjs/components/List/List.styles_9yg2yl.css +0 -1
  259. package/cjs/components/List/List.tokens.js +0 -41
  260. package/cjs/components/List/List.tokens.js.map +0 -1
  261. package/cjs/components/List/ui/ListItem.css +0 -18
  262. package/cjs/components/List/ui/ListItem.js +0 -27
  263. package/cjs/components/List/ui/ListItem.js.map +0 -1
  264. package/cjs/components/List/ui/ListItem.styles.js +0 -28
  265. package/cjs/components/List/ui/ListItem.styles.js.map +0 -1
  266. package/cjs/components/List/ui/ListItem.styles_1eo5k14.css +0 -2
  267. package/cjs/components/List/variations/_disabled/base.js.map +0 -1
  268. package/cjs/components/List/variations/_disabled/base_x642ct.css +0 -1
  269. package/cjs/components/List/variations/_size/base.js.map +0 -1
  270. package/cjs/components/List/variations/_size/base_x642ct.css +0 -1
  271. package/cjs/components/List/variations/_variant/base.js.map +0 -1
  272. package/cjs/components/List/variations/_variant/base_x642ct.css +0 -1
  273. package/cjs/components/List/variations/_view/base.js.map +0 -1
  274. package/cjs/components/List/variations/_view/base_x642ct.css +0 -1
  275. package/cjs/components/Notification/variations/_layout/base_qkc3i4.css +0 -1
  276. package/emotion/cjs/components/List/List.js +0 -59
  277. package/emotion/cjs/components/List/List.styles.js +0 -9
  278. package/emotion/cjs/components/List/List.tokens.js +0 -39
  279. package/emotion/cjs/components/List/index.js +0 -38
  280. package/emotion/cjs/components/List/ui/ListItem.js +0 -24
  281. package/emotion/cjs/components/List/ui/ListItem.styles.js +0 -21
  282. package/emotion/cjs/components/List/variations/_disabled/base.js +0 -8
  283. package/emotion/cjs/components/List/variations/_disabled/tokens.json +0 -1
  284. package/emotion/cjs/components/List/variations/_size/base.js +0 -8
  285. package/emotion/cjs/components/List/variations/_size/tokens.json +0 -1
  286. package/emotion/cjs/components/List/variations/_variant/base.js +0 -8
  287. package/emotion/cjs/components/List/variations/_variant/tokens.json +0 -1
  288. package/emotion/cjs/components/List/variations/_view/base.js +0 -8
  289. package/emotion/cjs/components/List/variations/_view/tokens.json +0 -1
  290. package/emotion/cjs/examples/plasma_b2c/components/List/List.config.js +0 -34
  291. package/emotion/cjs/examples/plasma_b2c/components/List/List.js +0 -12
  292. package/emotion/cjs/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
  293. package/emotion/cjs/examples/plasma_web/components/List/List.config.js +0 -34
  294. package/emotion/cjs/examples/plasma_web/components/List/List.js +0 -12
  295. package/emotion/cjs/examples/plasma_web/components/List/List.stories.tsx +0 -60
  296. package/emotion/es/components/List/List.js +0 -50
  297. package/emotion/es/components/List/List.styles.js +0 -3
  298. package/emotion/es/components/List/List.tokens.js +0 -33
  299. package/emotion/es/components/List/index.js +0 -3
  300. package/emotion/es/components/List/ui/ListItem.js +0 -17
  301. package/emotion/es/components/List/ui/ListItem.styles.js +0 -14
  302. package/emotion/es/components/List/variations/_disabled/base.js +0 -2
  303. package/emotion/es/components/List/variations/_disabled/tokens.json +0 -1
  304. package/emotion/es/components/List/variations/_size/base.js +0 -2
  305. package/emotion/es/components/List/variations/_size/tokens.json +0 -1
  306. package/emotion/es/components/List/variations/_variant/base.js +0 -2
  307. package/emotion/es/components/List/variations/_variant/tokens.json +0 -1
  308. package/emotion/es/components/List/variations/_view/base.js +0 -2
  309. package/emotion/es/components/List/variations/_view/tokens.json +0 -1
  310. package/emotion/es/examples/plasma_b2c/components/List/List.config.js +0 -28
  311. package/emotion/es/examples/plasma_b2c/components/List/List.js +0 -6
  312. package/emotion/es/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
  313. package/emotion/es/examples/plasma_web/components/List/List.config.js +0 -28
  314. package/emotion/es/examples/plasma_web/components/List/List.js +0 -6
  315. package/emotion/es/examples/plasma_web/components/List/List.stories.tsx +0 -60
  316. package/es/components/List/List.css +0 -1
  317. package/es/components/List/List.js +0 -54
  318. package/es/components/List/List.js.map +0 -1
  319. package/es/components/List/List.styles.js +0 -5
  320. package/es/components/List/List.styles.js.map +0 -1
  321. package/es/components/List/List.styles_9yg2yl.css +0 -1
  322. package/es/components/List/List.tokens.js +0 -36
  323. package/es/components/List/List.tokens.js.map +0 -1
  324. package/es/components/List/ui/ListItem.css +0 -18
  325. package/es/components/List/ui/ListItem.js +0 -19
  326. package/es/components/List/ui/ListItem.js.map +0 -1
  327. package/es/components/List/ui/ListItem.styles.js +0 -23
  328. package/es/components/List/ui/ListItem.styles.js.map +0 -1
  329. package/es/components/List/ui/ListItem.styles_1eo5k14.css +0 -2
  330. package/es/components/List/variations/_disabled/base.js.map +0 -1
  331. package/es/components/List/variations/_disabled/base_x642ct.css +0 -1
  332. package/es/components/List/variations/_size/base.js.map +0 -1
  333. package/es/components/List/variations/_size/base_x642ct.css +0 -1
  334. package/es/components/List/variations/_variant/base.js +0 -5
  335. package/es/components/List/variations/_variant/base.js.map +0 -1
  336. package/es/components/List/variations/_variant/base_x642ct.css +0 -1
  337. package/es/components/List/variations/_view/base.js.map +0 -1
  338. package/es/components/List/variations/_view/base_x642ct.css +0 -1
  339. package/es/components/Notification/variations/_layout/base_qkc3i4.css +0 -1
  340. package/styled-components/cjs/components/List/List.js +0 -59
  341. package/styled-components/cjs/components/List/List.styles.js +0 -9
  342. package/styled-components/cjs/components/List/List.tokens.js +0 -39
  343. package/styled-components/cjs/components/List/List.types.js +0 -5
  344. package/styled-components/cjs/components/List/index.js +0 -38
  345. package/styled-components/cjs/components/List/ui/ListItem.js +0 -24
  346. package/styled-components/cjs/components/List/ui/ListItem.styles.js +0 -19
  347. package/styled-components/cjs/components/List/ui/ListItem.types.js +0 -5
  348. package/styled-components/cjs/components/List/variations/_disabled/base.js +0 -8
  349. package/styled-components/cjs/components/List/variations/_disabled/tokens.json +0 -1
  350. package/styled-components/cjs/components/List/variations/_size/base.js +0 -8
  351. package/styled-components/cjs/components/List/variations/_size/tokens.json +0 -1
  352. package/styled-components/cjs/components/List/variations/_variant/base.js +0 -8
  353. package/styled-components/cjs/components/List/variations/_variant/tokens.json +0 -1
  354. package/styled-components/cjs/components/List/variations/_view/tokens.json +0 -1
  355. package/styled-components/cjs/examples/plasma_b2c/components/List/List.config.js +0 -34
  356. package/styled-components/cjs/examples/plasma_b2c/components/List/List.js +0 -12
  357. package/styled-components/cjs/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
  358. package/styled-components/cjs/examples/plasma_web/components/List/List.config.js +0 -34
  359. package/styled-components/cjs/examples/plasma_web/components/List/List.js +0 -12
  360. package/styled-components/cjs/examples/plasma_web/components/List/List.stories.tsx +0 -60
  361. package/styled-components/es/components/List/List.js +0 -50
  362. package/styled-components/es/components/List/List.styles.js +0 -3
  363. package/styled-components/es/components/List/List.tokens.js +0 -33
  364. package/styled-components/es/components/List/List.types.js +0 -1
  365. package/styled-components/es/components/List/index.js +0 -3
  366. package/styled-components/es/components/List/ui/ListItem.js +0 -17
  367. package/styled-components/es/components/List/ui/ListItem.styles.js +0 -12
  368. package/styled-components/es/components/List/ui/ListItem.types.js +0 -1
  369. package/styled-components/es/components/List/variations/_disabled/base.js +0 -2
  370. package/styled-components/es/components/List/variations/_disabled/tokens.json +0 -1
  371. package/styled-components/es/components/List/variations/_size/base.js +0 -2
  372. package/styled-components/es/components/List/variations/_size/tokens.json +0 -1
  373. package/styled-components/es/components/List/variations/_variant/base.js +0 -2
  374. package/styled-components/es/components/List/variations/_variant/tokens.json +0 -1
  375. package/styled-components/es/components/List/variations/_view/base.js +0 -2
  376. package/styled-components/es/components/List/variations/_view/tokens.json +0 -1
  377. package/styled-components/es/examples/plasma_b2c/components/List/List.config.js +0 -28
  378. package/styled-components/es/examples/plasma_b2c/components/List/List.js +0 -6
  379. package/styled-components/es/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
  380. package/styled-components/es/examples/plasma_web/components/List/List.config.js +0 -28
  381. package/styled-components/es/examples/plasma_web/components/List/List.js +0 -6
  382. package/styled-components/es/examples/plasma_web/components/List/List.stories.tsx +0 -60
  383. package/types/components/List/List.d.ts +0 -43
  384. package/types/components/List/List.d.ts.map +0 -1
  385. package/types/components/List/List.styles.d.ts +0 -2
  386. package/types/components/List/List.styles.d.ts.map +0 -1
  387. package/types/components/List/List.tokens.d.ts +0 -34
  388. package/types/components/List/List.tokens.d.ts.map +0 -1
  389. package/types/components/List/List.types.d.ts +0 -24
  390. package/types/components/List/List.types.d.ts.map +0 -1
  391. package/types/components/List/index.d.ts +0 -5
  392. package/types/components/List/index.d.ts.map +0 -1
  393. package/types/components/List/ui/ListItem.d.ts +0 -4
  394. package/types/components/List/ui/ListItem.d.ts.map +0 -1
  395. package/types/components/List/ui/ListItem.styles.d.ts +0 -36
  396. package/types/components/List/ui/ListItem.styles.d.ts.map +0 -1
  397. package/types/components/List/ui/ListItem.types.d.ts +0 -15
  398. package/types/components/List/ui/ListItem.types.d.ts.map +0 -1
  399. package/types/components/List/variations/_disabled/base.d.ts.map +0 -1
  400. package/types/components/List/variations/_size/base.d.ts.map +0 -1
  401. package/types/components/List/variations/_variant/base.d.ts.map +0 -1
  402. package/types/components/List/variations/_view/base.d.ts.map +0 -1
  403. /package/emotion/cjs/components/{List/List.types.js → CodeField/CodeField.types.js} +0 -0
  404. /package/emotion/es/components/{List/List.types.js → CodeField/CodeField.types.js} +0 -0
  405. /package/{emotion/cjs/components/List/ui/ListItem.types.js → styled-components/cjs/components/CodeField/CodeField.types.js} +0 -0
  406. /package/{emotion/es/components/List/ui/ListItem.types.js → styled-components/es/components/CodeField/CodeField.types.js} +0 -0
  407. /package/types/components/{List → CodeField}/variations/_disabled/base.d.ts +0 -0
  408. /package/types/components/{List/variations/_size → CodeField/variations/_shape}/base.d.ts +0 -0
  409. /package/types/components/{List/variations/_variant → CodeField/variations/_size}/base.d.ts +0 -0
  410. /package/types/components/{List → CodeField}/variations/_view/base.d.ts +0 -0
@@ -0,0 +1,52 @@
1
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
2
+ 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."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
5
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
6
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
+ import { classes } from "../CodeField.tokens";
8
+ import { ANIMATION_TIMEOUT } from "./constants";
9
+ import { getCodeValue } from "./initialValuesHelper";
10
+ export var handleCodeError = function handleCodeError(_ref) {
11
+ var _captionRef$current, _captionRef$current2;
12
+ var codeLength = _ref.codeLength,
13
+ codeErrorBehavior = _ref.codeErrorBehavior,
14
+ currentCode = _ref.currentCode,
15
+ inputRefs = _ref.inputRefs,
16
+ inputContainerRef = _ref.inputContainerRef,
17
+ captionRef = _ref.captionRef,
18
+ setCode = _ref.setCode,
19
+ codeSetter = _ref.codeSetter;
20
+ if (!inputContainerRef.current) {
21
+ return;
22
+ }
23
+ switch (codeErrorBehavior) {
24
+ case 'keep':
25
+ inputContainerRef.current.classList.add(classes.codeError, classes.codeErrorAnimation);
26
+ (_captionRef$current = captionRef.current) === null || _captionRef$current === void 0 || _captionRef$current.classList.add(classes.captionError);
27
+ setTimeout(function () {
28
+ var _inputContainerRef$cu;
29
+ var newCode = _toConsumableArray(currentCode);
30
+ newCode.pop();
31
+ codeSetter(newCode);
32
+ setCode(currentCode);
33
+ (_inputContainerRef$cu = inputContainerRef.current) === null || _inputContainerRef$cu === void 0 || _inputContainerRef$cu.classList.remove(classes.codeErrorAnimation);
34
+ setTimeout(function () {
35
+ var _inputRefs$current, _inputRefs$current2;
36
+ (_inputRefs$current = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current === void 0 || _inputRefs$current.setSelectionRange(0, 1);
37
+ (_inputRefs$current2 = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current2 === void 0 || _inputRefs$current2.focus();
38
+ }, 0);
39
+ }, ANIMATION_TIMEOUT);
40
+ break;
41
+ case 'remove-code':
42
+ default:
43
+ inputContainerRef.current.classList.add(classes.codeError, classes.codeErrorAnimation, classes.codeErrorFade);
44
+ (_captionRef$current2 = captionRef.current) === null || _captionRef$current2 === void 0 || _captionRef$current2.classList.add(classes.captionError);
45
+ setTimeout(function () {
46
+ var _inputRefs$current$, _inputContainerRef$cu2;
47
+ codeSetter(getCodeValue(codeLength, ''));
48
+ (_inputRefs$current$ = inputRefs.current[0]) === null || _inputRefs$current$ === void 0 || _inputRefs$current$.focus();
49
+ (_inputContainerRef$cu2 = inputContainerRef.current) === null || _inputContainerRef$cu2 === void 0 || _inputContainerRef$cu2.classList.remove(classes.codeError, classes.codeErrorAnimation, classes.codeErrorFade);
50
+ }, ANIMATION_TIMEOUT);
51
+ }
52
+ };
@@ -0,0 +1,50 @@
1
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
2
+ 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."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
5
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
6
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
+ import { classes } from "../CodeField.tokens";
8
+ import { ANIMATION_TIMEOUT } from "./constants";
9
+ export var handleItemError = function handleItemError(_ref) {
10
+ var _inputRefs$current$in, _inputRefs$current$in4;
11
+ var currentSymbol = _ref.currentSymbol,
12
+ itemErrorBehavior = _ref.itemErrorBehavior,
13
+ index = _ref.index,
14
+ newCode = _ref.newCode,
15
+ inputRefs = _ref.inputRefs,
16
+ setCode = _ref.setCode,
17
+ codeSetter = _ref.codeSetter;
18
+ if (!inputRefs.current[index] || currentSymbol === ' ') {
19
+ return;
20
+ }
21
+ switch (itemErrorBehavior) {
22
+ case 'keep':
23
+ setCode(newCode);
24
+ (_inputRefs$current$in = inputRefs.current[index]) === null || _inputRefs$current$in === void 0 || _inputRefs$current$in.classList.add(classes.itemError, classes.itemErrorAnimation);
25
+ setTimeout(function () {
26
+ var _inputRefs$current$in2;
27
+ (_inputRefs$current$in2 = inputRefs.current[index]) === null || _inputRefs$current$in2 === void 0 || _inputRefs$current$in2.classList.remove(classes.itemErrorAnimation);
28
+ setTimeout(function () {
29
+ var _inputRefs$current$in3;
30
+ return (_inputRefs$current$in3 = inputRefs.current[index]) === null || _inputRefs$current$in3 === void 0 ? void 0 : _inputRefs$current$in3.setSelectionRange(0, 1);
31
+ }, 0);
32
+ }, ANIMATION_TIMEOUT);
33
+ break;
34
+ case 'forbid-enter':
35
+ newCode[index] = '';
36
+ codeSetter(newCode);
37
+ break;
38
+ case 'remove-symbol':
39
+ default:
40
+ setCode(newCode);
41
+ (_inputRefs$current$in4 = inputRefs.current[index]) === null || _inputRefs$current$in4 === void 0 || _inputRefs$current$in4.classList.add(classes.itemError, classes.itemErrorFade, classes.itemErrorAnimation);
42
+ setTimeout(function () {
43
+ var _inputRefs$current$in5;
44
+ var updatedCode = _toConsumableArray(newCode);
45
+ updatedCode[index] = '';
46
+ codeSetter(updatedCode);
47
+ (_inputRefs$current$in5 = inputRefs.current[index]) === null || _inputRefs$current$in5 === void 0 || _inputRefs$current$in5.classList.remove(classes.itemError, classes.itemErrorFade, classes.itemErrorAnimation);
48
+ }, ANIMATION_TIMEOUT);
49
+ }
50
+ };
@@ -0,0 +1,3 @@
1
+ export { getFieldPattern, getPlaceholderValue, getCodeValue } from "./initialValuesHelper";
2
+ export { handleItemError } from "./handleItemError";
3
+ export { handleCodeError } from "./handleCodeError";
@@ -0,0 +1,24 @@
1
+ export var getFieldPattern = function getFieldPattern(allowedSymbols) {
2
+ if (!allowedSymbols) {
3
+ return null;
4
+ }
5
+ if (typeof allowedSymbols === 'string') {
6
+ return new RegExp(allowedSymbols, 'g');
7
+ }
8
+ return allowedSymbols;
9
+ };
10
+ export var getCodeValue = function getCodeValue(codeLength, value) {
11
+ if (!value.length) {
12
+ return new Array(codeLength).fill('');
13
+ }
14
+ return value.slice(0, codeLength).split('');
15
+ };
16
+ export var getPlaceholderValue = function getPlaceholderValue(codeLength, placeholder) {
17
+ if (!placeholder || typeof placeholder !== 'string') {
18
+ return null;
19
+ }
20
+ if (placeholder.length === 1) {
21
+ return Array(codeLength).fill(placeholder);
22
+ }
23
+ return placeholder.slice(0, codeLength).split('');
24
+ };
@@ -0,0 +1,3 @@
1
+ import { css } from '@emotion/react';
2
+ import { tokens } from "../../CodeField.tokens";
3
+ export var base = /*#__PURE__*/css("&&[disabled]{opacity:var(", tokens.disabledOpacity, ");cursor:not-allowed;&>*{pointer-events:none;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX2Rpc2FibGVkL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX2Rpc2FibGVkL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL0NvZGVGaWVsZC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmJltkaXNhYmxlZF0ge1xuICAgICAgICBvcGFjaXR5OiB2YXIoJHt0b2tlbnMuZGlzYWJsZWRPcGFjaXR5fSk7XG4gICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG5cbiAgICAgICAgJiA+ICoge1xuICAgICAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "boolean",
3
+ "tokens": ["--plasma-codefield-disabled-opacity"]
4
+ }
@@ -0,0 +1,4 @@
1
+ import { css } from '@emotion/react';
2
+ import { tokens, classes } from "../../CodeField.tokens";
3
+ import { ItemInput } from "../../CodeField.styles";
4
+ export var base = /*#__PURE__*/css(ItemInput, "{border-radius:var(", tokens.borderRadius, ");&.", classes.segmented, "{border-radius:var(", tokens.borderRadiusSegmented, ");&:first-child{border-top-left-radius:var(", tokens.segmentedSideBorderRadius, ");border-bottom-left-radius:var(", tokens.segmentedSideBorderRadius, ");}&:last-child{border-top-right-radius:var(", tokens.segmentedSideBorderRadius, ");border-bottom-right-radius:var(", tokens.segmentedSideBorderRadius, ");}}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NoYXBlL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbn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XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -0,0 +1 @@
1
+ ["--plasma-codefield-code-item-border-radius", "--plasma-codefield-code-item-segmented-side-border-radius"]
@@ -0,0 +1,4 @@
1
+ import { css } from '@emotion/react';
2
+ import { CaptionWrapper, CodeGroup, CodeWrapper, ItemInput } from "../../CodeField.styles";
3
+ import { tokens } from "../../CodeField.tokens";
4
+ export var base = /*#__PURE__*/css("gap:var(", tokens.captionGap, ");", CodeWrapper, ",", CodeGroup, "{gap:var(", tokens.codeItemsGap, ");}", ItemInput, "{width:var(", tokens.codeItemWidth, ");height:var(", tokens.codeItemHeight, ");font-family:var(", tokens.fontFamily, ");font-size:var(", tokens.fontSize, ");font-style:var(", tokens.fontStyle, ");font-weight:var(", tokens.fontWeight, ");letter-spacing:var(", tokens.letterSpacing, ");line-height:var(", tokens.lineHeight, ");}", CaptionWrapper, "{font-family:var(", tokens.captionFontFamily, ");font-size:var(", tokens.captionFontSize, ");font-style:var(", tokens.captionFontStyle, ");font-weight:var(", tokens.captionFontWeight, ");letter-spacing:var(", tokens.captionLetterSpacing, ");line-height:var(", tokens.captionLineHeight, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db2RlRmllbGQvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcn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W5zLmNhcHRpb25Gb250U2l6ZX0pO1xuICAgICAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkZvbnRTdHlsZX0pO1xuICAgICAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLmNhcHRpb25Gb250V2VpZ2h0fSk7XG4gICAgICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICAgICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5jYXB0aW9uTGluZUhlaWdodH0pO1xuICAgIH1cbmA7XG4iXX0= */"));
@@ -0,0 +1,19 @@
1
+ [
2
+ "--plasma-codefield-caption-gap",
3
+ "--plasma-codefield-code-item-gap",
4
+ "--plasma-codefield-separator-width",
5
+ "--plasma-codefield-item-width",
6
+ "--plasma-codefield-item-height",
7
+ "--plasma-codefield-font-family",
8
+ "--plasma-codefield-font-style",
9
+ "--plasma-codefield-font-size",
10
+ "--plasma-codefield-font-weight",
11
+ "--plasma-codefield-letter-spacing",
12
+ "--plasma-codefield-line-height",
13
+ "--plasma-codefield-caption-font-family",
14
+ "--plasma-codefield-caption-font-style",
15
+ "--plasma-codefield-caption-font-size",
16
+ "--plasma-codefield-caption-font-weight",
17
+ "--plasma-codefield-caption-letter-spacing",
18
+ "--plasma-codefield-caption-line-height"
19
+ ]
@@ -0,0 +1,4 @@
1
+ import { css } from '@emotion/react';
2
+ import { CaptionWrapper, ItemInput } from "../../CodeField.styles";
3
+ import { classes, tokens } from "../../CodeField.tokens";
4
+ export var base = /*#__PURE__*/css(CaptionWrapper, "{color:var(", tokens.captionColor, ");&.", classes.captionError, "{color:var(", tokens.captionColorError, ");}}", ItemInput, "{color:var(", tokens.codeColor, ");caret-color:var(", tokens.caretColor, ");background-color:var(", tokens.backgroundColor, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderColor, ");}&:hover{.", classes.hoverEnabled, "{background-color:var(", tokens.backgroundColorHover, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderColorHover, ");}}&:focus-within{", ItemInput, ":focus-within{background-color:var(", tokens.backgroundColorFocus, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderColorFocus, ");}}&& .", classes.codeErrorAnimation, "{animation:shakingError 0.3s forwards;}&& .", classes.codeError, "{", ItemInput, "{color:var(", tokens.codeColorError, ");background-color:var(", tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderErrorColor, ");}&:focus-within{", ItemInput, "{background-color:var(", tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderErrorColor, ");}}&.", classes.codeErrorFade, "{", ItemInput, "{animation:fadeError 0.3s forwards;}}}&& .", classes.itemErrorAnimation, "{animation:shakingError 0.3s forwards;}&& .", classes.itemError, ",&& .", classes.itemError, ":focus-within{color:var(", tokens.codeColorError, ");background-color:var(", tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderErrorColor, ");&.", classes.codeErrorFade, "{animation:shakingError 0.3s forwards fadeError 0.3s forwards;}}@keyframes shakingError{14%{transform:translateX(-0.125rem);}28%{transform:translateX(0.125rem);}42%{transform:translateX(-0.125rem);}57%{transform:translateX(0.125rem);}71%{transform:translateX(-0.125rem);}85%{transform:translateX(0.125rem);}100%{transform:translateX(-0.125rem);}}@keyframes fadeError{50%{color:var(", tokens.codeColorError, ");}100%{color:transparent;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyJdLCJuYW1lcyI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ha2luZ0Vycm9yIDAuM3MgZm9yd2FyZHMgZmFkZUVycm9yIDAuM3MgZm9yd2FyZHM7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBAa2V5ZnJhbWVzIHNoYWtpbmdFcnJvciB7XG4gICAgICAgIDE0JSB7XG4gICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTAuMTI1cmVtKTtcbiAgICAgICAgfVxuICAgICAgICAyOCUge1xuICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDAuMTI1cmVtKTtcbiAgICAgICAgfVxuICAgICAgICA0MiUge1xuICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0wLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICAgICAgNTclIHtcbiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgwLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICAgICAgNzElIHtcbiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtMC4xMjVyZW0pO1xuICAgICAgICB9XG4gICAgICAgIDg1JSB7XG4gICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoMC4xMjVyZW0pO1xuICAgICAgICB9XG4gICAgICAgIDEwMCUge1xuICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0wLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBAa2V5ZnJhbWVzIGZhZGVFcnJvciB7XG4gICAgICAgIDUwJSB7XG4gICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmNvZGVDb2xvckVycm9yfSk7XG4gICAgICAgIH1cbiAgICAgICAgMTAwJSB7XG4gICAgICAgICAgICBjb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -1,4 +1,4 @@
1
- var _excluded = ["role", "title", "children", "actions", "view", "size", "iconPlacement", "showCloseIcon", "layout", "icon", "closeIconType", "textColor", "titleColor", "backgroundColor", "onCloseButtonClick"];
1
+ var _excluded = ["role", "title", "children", "actions", "view", "size", "iconPlacement", "showCloseIcon", "layout", "icon", "closeIconType", "textColor", "titleColor", "backgroundColor", "width", "maxWidth", "onCloseButtonClick"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
4
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
@@ -37,6 +37,8 @@ export var notificationRoot = function notificationRoot(Root) {
37
37
  textColor = props.textColor,
38
38
  titleColor = props.titleColor,
39
39
  backgroundColor = props.backgroundColor,
40
+ width = props.width,
41
+ maxWidth = props.maxWidth,
40
42
  onCloseButtonClick = props.onCloseButtonClick,
41
43
  rest = _objectWithoutProperties(props, _excluded);
42
44
  var ariaLive = 'polite';
@@ -64,6 +66,8 @@ export var notificationRoot = function notificationRoot(Root) {
64
66
  "aria-atomic": ariaAtomic
65
67
  }, rest), /*#__PURE__*/React.createElement(Wrapper, {
66
68
  backgroundColor: backgroundColor,
69
+ width: width,
70
+ maxWidth: maxWidth,
67
71
  className: cx(classes.wrapper, getLayoutClass(layout), oneLineClass, withoutCloseIconClass)
68
72
  }, /*#__PURE__*/React.createElement(ContentBox, {
69
73
  iconPlacement: IconPlacementInternal,