@salutejs/plasma-new-hope 0.186.1-canary.1517.11741997679.0 → 0.187.0-canary.1511.11742976604.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. package/cjs/components/NumberInput/NumberInput.css +52 -0
  2. package/cjs/components/NumberInput/NumberInput.js +205 -0
  3. package/cjs/components/NumberInput/NumberInput.js.map +1 -0
  4. package/cjs/components/NumberInput/NumberInput.styles.js +9 -0
  5. package/cjs/components/NumberInput/NumberInput.styles.js.map +1 -0
  6. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  7. package/cjs/components/NumberInput/NumberInput.tokens.js +102 -0
  8. package/cjs/components/NumberInput/NumberInput.tokens.js.map +1 -0
  9. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +19 -0
  10. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  11. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +22 -0
  12. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  13. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  14. package/cjs/components/NumberInput/ui/Input/Input.css +15 -0
  15. package/cjs/components/NumberInput/ui/Input/Input.js +205 -0
  16. package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -0
  17. package/cjs/components/NumberInput/ui/Input/Input.styles.js +96 -0
  18. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  19. package/cjs/components/NumberInput/ui/Input/Input.styles_fhgb95.css +8 -0
  20. package/cjs/components/NumberInput/utils/index.js +12 -0
  21. package/cjs/components/NumberInput/utils/index.js.map +1 -0
  22. package/cjs/components/NumberInput/variations/_background-type/base.js +9 -0
  23. package/cjs/components/NumberInput/variations/_background-type/base.js.map +1 -0
  24. package/cjs/components/NumberInput/variations/_background-type/base_dx9knv.css +1 -0
  25. package/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  26. package/cjs/components/NumberInput/variations/_disabled/base.js.map +1 -0
  27. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  28. package/cjs/components/NumberInput/variations/_segmentation/base.js +9 -0
  29. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  30. package/cjs/components/NumberInput/variations/_segmentation/base_14s5rot.css +1 -0
  31. package/cjs/components/NumberInput/variations/_shape/base.js +9 -0
  32. package/cjs/components/NumberInput/variations/_shape/base.js.map +1 -0
  33. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  34. package/cjs/components/NumberInput/variations/_size/base.js +9 -0
  35. package/cjs/components/NumberInput/variations/_size/base.js.map +1 -0
  36. package/cjs/components/NumberInput/variations/_size/base_yqdmk4.css +1 -0
  37. package/cjs/components/NumberInput/variations/_view/base.js +9 -0
  38. package/cjs/components/NumberInput/variations/_view/base.js.map +1 -0
  39. package/cjs/components/NumberInput/variations/_view/base_tnfbb5.css +1 -0
  40. package/cjs/components/Steps/Steps.css +10 -10
  41. package/cjs/components/Steps/Steps.js +14 -21
  42. package/cjs/components/Steps/Steps.js.map +1 -1
  43. package/cjs/components/Steps/Steps.styles.js +1 -1
  44. package/cjs/components/Steps/Steps.styles.js.map +1 -1
  45. package/cjs/components/Steps/{Steps.styles_wa45kj.css → Steps.styles_1xmqxqu.css} +1 -1
  46. package/cjs/components/Steps/Steps.tokens.js +0 -1
  47. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  48. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  49. package/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  50. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  51. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  52. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  53. package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  54. package/cjs/index.css +34 -11
  55. package/cjs/index.js +6 -0
  56. package/cjs/index.js.map +1 -1
  57. package/emotion/cjs/components/NumberInput/NumberInput.js +214 -0
  58. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +17 -0
  59. package/emotion/cjs/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  60. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +99 -0
  61. package/emotion/cjs/components/NumberInput/NumberInput.types.js +5 -0
  62. package/emotion/cjs/components/NumberInput/index.js +31 -0
  63. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  64. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +16 -0
  65. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  66. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +213 -0
  67. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +81 -0
  68. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  69. package/emotion/cjs/components/NumberInput/ui/index.js +19 -0
  70. package/emotion/cjs/components/NumberInput/utils/index.js +9 -0
  71. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  72. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  73. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  74. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  75. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  76. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  77. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  78. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  79. package/emotion/cjs/components/NumberInput/variations/_size/base.js +13 -0
  80. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  81. package/emotion/cjs/components/NumberInput/variations/_view/base.js +13 -0
  82. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  83. package/emotion/cjs/components/Steps/Steps.js +14 -23
  84. package/emotion/cjs/components/Steps/Steps.styles.js +1 -1
  85. package/emotion/cjs/components/Steps/Steps.tokens.js +0 -1
  86. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  87. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +11 -22
  88. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +46 -0
  89. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  90. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  91. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  92. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  93. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +46 -0
  94. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  95. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  96. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  97. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  98. package/emotion/cjs/index.js +11 -0
  99. package/emotion/es/components/NumberInput/NumberInput.js +206 -0
  100. package/emotion/es/components/NumberInput/NumberInput.styles.js +11 -0
  101. package/emotion/es/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  102. package/emotion/es/components/NumberInput/NumberInput.tokens.js +93 -0
  103. package/emotion/es/components/NumberInput/NumberInput.types.js +1 -0
  104. package/emotion/es/components/NumberInput/index.js +2 -0
  105. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  106. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +9 -0
  107. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  108. package/emotion/es/components/NumberInput/ui/Input/Input.js +204 -0
  109. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +74 -0
  110. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  111. package/emotion/es/components/NumberInput/ui/index.js +2 -0
  112. package/emotion/es/components/NumberInput/utils/index.js +3 -0
  113. package/emotion/es/components/NumberInput/variations/_background-type/base.js +4 -0
  114. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  115. package/emotion/es/components/NumberInput/variations/_disabled/base.js +3 -0
  116. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  117. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  118. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  119. package/emotion/es/components/NumberInput/variations/_shape/base.js +5 -0
  120. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  121. package/emotion/es/components/NumberInput/variations/_size/base.js +7 -0
  122. package/emotion/es/components/NumberInput/variations/_size/tokens.json +22 -0
  123. package/emotion/es/components/NumberInput/variations/_view/base.js +7 -0
  124. package/emotion/es/components/NumberInput/variations/_view/tokens.json +14 -0
  125. package/emotion/es/components/Steps/Steps.js +15 -24
  126. package/emotion/es/components/Steps/Steps.styles.js +1 -1
  127. package/emotion/es/components/Steps/Steps.tokens.js +0 -1
  128. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  129. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +11 -22
  130. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +40 -0
  131. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  132. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  133. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  134. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  135. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +40 -0
  136. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  137. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  138. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  139. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  140. package/emotion/es/index.js +2 -1
  141. package/es/components/NumberInput/NumberInput.css +52 -0
  142. package/es/components/NumberInput/NumberInput.js +200 -0
  143. package/es/components/NumberInput/NumberInput.js.map +1 -0
  144. package/es/components/NumberInput/NumberInput.styles.js +5 -0
  145. package/es/components/NumberInput/NumberInput.styles.js.map +1 -0
  146. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  147. package/es/components/NumberInput/NumberInput.tokens.js +96 -0
  148. package/es/components/NumberInput/NumberInput.tokens.js.map +1 -0
  149. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +15 -0
  150. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  151. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +18 -0
  152. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  153. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  154. package/es/components/NumberInput/ui/Input/Input.css +15 -0
  155. package/es/components/NumberInput/ui/Input/Input.js +201 -0
  156. package/es/components/NumberInput/ui/Input/Input.js.map +1 -0
  157. package/es/components/NumberInput/ui/Input/Input.styles.js +85 -0
  158. package/es/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  159. package/es/components/NumberInput/ui/Input/Input.styles_fhgb95.css +8 -0
  160. package/es/components/NumberInput/utils/index.js +6 -0
  161. package/es/components/NumberInput/utils/index.js.map +1 -0
  162. package/es/components/NumberInput/variations/_background-type/base.js +5 -0
  163. package/es/components/NumberInput/variations/_background-type/base.js.map +1 -0
  164. package/es/components/NumberInput/variations/_background-type/base_dx9knv.css +1 -0
  165. package/es/components/NumberInput/variations/_disabled/base.js +5 -0
  166. package/es/components/NumberInput/variations/_disabled/base.js.map +1 -0
  167. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  168. package/es/components/NumberInput/variations/_segmentation/base.js +5 -0
  169. package/es/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  170. package/es/components/NumberInput/variations/_segmentation/base_14s5rot.css +1 -0
  171. package/es/components/NumberInput/variations/_shape/base.js +5 -0
  172. package/es/components/NumberInput/variations/_shape/base.js.map +1 -0
  173. package/es/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  174. package/es/components/NumberInput/variations/_size/base.js +5 -0
  175. package/es/components/NumberInput/variations/_size/base.js.map +1 -0
  176. package/es/components/NumberInput/variations/_size/base_yqdmk4.css +1 -0
  177. package/es/components/NumberInput/variations/_view/base.js +5 -0
  178. package/es/components/NumberInput/variations/_view/base.js.map +1 -0
  179. package/es/components/NumberInput/variations/_view/base_tnfbb5.css +1 -0
  180. package/es/components/Steps/Steps.css +10 -10
  181. package/es/components/Steps/Steps.js +16 -23
  182. package/es/components/Steps/Steps.js.map +1 -1
  183. package/es/components/Steps/Steps.styles.js +1 -1
  184. package/es/components/Steps/Steps.styles.js.map +1 -1
  185. package/es/components/Steps/{Steps.styles_wa45kj.css → Steps.styles_1xmqxqu.css} +1 -1
  186. package/es/components/Steps/Steps.tokens.js +0 -1
  187. package/es/components/Steps/Steps.tokens.js.map +1 -1
  188. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  189. package/es/components/Steps/ui/StepItem/StepItem.js +8 -30
  190. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  191. package/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  192. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  193. package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  194. package/es/index.css +34 -11
  195. package/es/index.js +2 -0
  196. package/es/index.js.map +1 -1
  197. package/package.json +2 -2
  198. package/styled-components/cjs/components/NumberInput/NumberInput.js +214 -0
  199. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +8 -0
  200. package/styled-components/cjs/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  201. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +99 -0
  202. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +5 -0
  203. package/styled-components/cjs/components/NumberInput/index.js +31 -0
  204. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  205. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +15 -0
  206. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  207. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +213 -0
  208. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +48 -0
  209. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  210. package/styled-components/cjs/components/NumberInput/ui/index.js +19 -0
  211. package/styled-components/cjs/components/NumberInput/utils/index.js +9 -0
  212. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  213. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  214. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  215. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  216. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  217. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  218. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  219. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  220. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +13 -0
  221. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  222. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +13 -0
  223. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  224. package/styled-components/cjs/components/Steps/Steps.js +14 -23
  225. package/styled-components/cjs/components/Steps/Steps.styles.js +1 -1
  226. package/styled-components/cjs/components/Steps/Steps.tokens.js +0 -1
  227. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  228. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -17
  229. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +46 -0
  230. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  231. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  232. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  233. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  234. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +46 -0
  235. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  236. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  237. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  238. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  239. package/styled-components/cjs/index.js +11 -0
  240. package/styled-components/es/components/NumberInput/NumberInput.js +206 -0
  241. package/styled-components/es/components/NumberInput/NumberInput.styles.js +2 -0
  242. package/styled-components/es/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  243. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +93 -0
  244. package/styled-components/es/components/NumberInput/NumberInput.types.js +1 -0
  245. package/styled-components/es/components/NumberInput/index.js +2 -0
  246. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  247. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +8 -0
  248. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  249. package/styled-components/es/components/NumberInput/ui/Input/Input.js +204 -0
  250. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +41 -0
  251. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  252. package/styled-components/es/components/NumberInput/ui/index.js +2 -0
  253. package/styled-components/es/components/NumberInput/utils/index.js +3 -0
  254. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +4 -0
  255. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  256. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +3 -0
  257. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  258. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  259. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  260. package/styled-components/es/components/NumberInput/variations/_shape/base.js +5 -0
  261. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  262. package/styled-components/es/components/NumberInput/variations/_size/base.js +7 -0
  263. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +22 -0
  264. package/styled-components/es/components/NumberInput/variations/_view/base.js +7 -0
  265. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +14 -0
  266. package/styled-components/es/components/Steps/Steps.js +15 -24
  267. package/styled-components/es/components/Steps/Steps.styles.js +1 -1
  268. package/styled-components/es/components/Steps/Steps.tokens.js +0 -1
  269. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  270. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -17
  271. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +40 -0
  272. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  273. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  274. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  275. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  276. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +40 -0
  277. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  278. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  279. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  280. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  281. package/styled-components/es/index.js +2 -1
  282. package/types/components/NumberInput/NumberInput.d.ts +38 -0
  283. package/types/components/NumberInput/NumberInput.d.ts.map +1 -0
  284. package/types/components/NumberInput/NumberInput.styles.d.ts +2 -0
  285. package/types/components/NumberInput/NumberInput.styles.d.ts.map +1 -0
  286. package/types/components/NumberInput/NumberInput.tokens.d.ts +88 -0
  287. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +1 -0
  288. package/types/components/NumberInput/NumberInput.types.d.ts +112 -0
  289. package/types/components/NumberInput/NumberInput.types.d.ts.map +1 -0
  290. package/types/components/NumberInput/index.d.ts +3 -0
  291. package/types/components/NumberInput/index.d.ts.map +1 -0
  292. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +4 -0
  293. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +1 -0
  294. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +45 -0
  295. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +1 -0
  296. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +7 -0
  297. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +1 -0
  298. package/types/components/NumberInput/ui/Input/Input.d.ts +19 -0
  299. package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -0
  300. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +30 -0
  301. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +1 -0
  302. package/types/components/NumberInput/ui/Input/Input.types.d.ts +19 -0
  303. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +1 -0
  304. package/types/components/NumberInput/ui/index.d.ts +3 -0
  305. package/types/components/NumberInput/ui/index.d.ts.map +1 -0
  306. package/types/components/NumberInput/utils/index.d.ts +4 -0
  307. package/types/components/NumberInput/utils/index.d.ts.map +1 -0
  308. package/types/components/NumberInput/variations/_background-type/base.d.ts +2 -0
  309. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +1 -0
  310. package/types/components/NumberInput/variations/_disabled/base.d.ts +2 -0
  311. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +1 -0
  312. package/types/components/NumberInput/variations/_segmentation/base.d.ts +2 -0
  313. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +1 -0
  314. package/types/components/NumberInput/variations/_shape/base.d.ts +2 -0
  315. package/types/components/NumberInput/variations/_shape/base.d.ts.map +1 -0
  316. package/types/components/NumberInput/variations/_size/base.d.ts +2 -0
  317. package/types/components/NumberInput/variations/_size/base.d.ts.map +1 -0
  318. package/types/components/NumberInput/variations/_view/base.d.ts +2 -0
  319. package/types/components/NumberInput/variations/_view/base.d.ts.map +1 -0
  320. package/types/components/Steps/Steps.d.ts.map +1 -1
  321. package/types/components/Steps/Steps.styles.d.ts.map +1 -1
  322. package/types/components/Steps/Steps.tokens.d.ts +0 -1
  323. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  324. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
  325. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +2 -2
  326. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  327. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +39 -0
  328. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  329. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +82 -0
  330. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +1 -0
  331. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -1
  332. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +39 -0
  333. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  334. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +82 -0
  335. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +1 -0
  336. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -1
  337. package/types/index.d.ts +1 -0
  338. package/types/index.d.ts.map +1 -1
  339. package/cjs/components/Steps/ui/StepItem/StepItem.styles_q5nnk6.css +0 -9
  340. package/es/components/Steps/ui/StepItem/StepItem.styles_q5nnk6.css +0 -9
@@ -0,0 +1,204 @@
1
+ var _StyledSpinner;
2
+ var _excluded = ["value", "min", "max", "isLoading", "loader", "disabled", "segmentation", "textBefore", "textAfter", "isManualInput", "isInputFocused", "setIsInputFocused", "setIsAnimationRun", "setInnerValue", "onChange", "onBlur", "onKeyDown"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
9
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
+ import React, { forwardRef, useEffect, useRef, useState } from 'react';
13
+ import { useForkRef } from '@salutejs/plasma-core';
14
+ import { classes } from '../../NumberInput.tokens';
15
+ import { cx, isNumber } from '../../../../utils';
16
+ import { useDidMountEffect } from '../../../../hooks';
17
+ import { defaultCharacterWidth, excludingNumberSchema, numberSchema } from '../../utils';
18
+ import { keyCodes } from '../../../../utils/constants';
19
+ import { AdditionalText, Input, InputWrapper, DynamicInput, InputWidthHelper, TextWrapper, StyledSpinner, Loader } from './Input.styles';
20
+ export var NumberInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
21
+ var value = _ref.value,
22
+ min = _ref.min,
23
+ max = _ref.max,
24
+ isLoading = _ref.isLoading,
25
+ loader = _ref.loader,
26
+ disabled = _ref.disabled,
27
+ segmentation = _ref.segmentation,
28
+ textBefore = _ref.textBefore,
29
+ textAfter = _ref.textAfter,
30
+ isManualInput = _ref.isManualInput,
31
+ isInputFocused = _ref.isInputFocused,
32
+ setIsInputFocused = _ref.setIsInputFocused,
33
+ setIsAnimationRun = _ref.setIsAnimationRun,
34
+ setInnerValue = _ref.setInnerValue,
35
+ onChange = _ref.onChange,
36
+ onBlur = _ref.onBlur,
37
+ onKeyDown = _ref.onKeyDown,
38
+ rest = _objectWithoutProperties(_ref, _excluded);
39
+ var _useState = useState(value ? "".concat(String(value).length, "ch") : defaultCharacterWidth),
40
+ _useState2 = _slicedToArray(_useState, 2),
41
+ dynamicWidth = _useState2[0],
42
+ setDynamicWidth = _useState2[1];
43
+ var _useState3 = useState(Number(value)),
44
+ _useState4 = _slicedToArray(_useState3, 2),
45
+ lastValidValue = _useState4[0],
46
+ setLastValidValue = _useState4[1];
47
+ var _useState5 = useState(undefined),
48
+ _useState6 = _slicedToArray(_useState5, 2),
49
+ errorClass = _useState6[0],
50
+ setErrorClass = _useState6[1];
51
+ var _useState7 = useState(),
52
+ _useState8 = _slicedToArray(_useState7, 2),
53
+ errorValue = _useState8[0],
54
+ setErrorValue = _useState8[1];
55
+ var inputHelperRef = useRef(null);
56
+ var wrapperRef = useRef(null);
57
+ var textWrapperRef = useRef(null);
58
+ var inputRef = useRef(null);
59
+ var inputForkRef = useForkRef(inputRef, ref);
60
+ var solidViewClass = segmentation === 'solid' ? classes.solidView : undefined;
61
+ var manualInputClass = isManualInput ? classes.manualInput : undefined;
62
+ var getInputWidth = function getInputWidth() {
63
+ var _inputHelperRef$curre;
64
+ var firstRender = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
65
+ if (!firstRender && (_inputHelperRef$curre = inputHelperRef.current) !== null && _inputHelperRef$curre !== void 0 && _inputHelperRef$curre.clientWidth) {
66
+ var _inputHelperRef$curre2;
67
+ return "".concat((_inputHelperRef$curre2 = inputHelperRef.current) === null || _inputHelperRef$curre2 === void 0 ? void 0 : _inputHelperRef$curre2.clientWidth, "px");
68
+ }
69
+ if (value) {
70
+ return "".concat(String(value).length, "ch");
71
+ }
72
+ return defaultCharacterWidth;
73
+ };
74
+ var setValues = function setValues(event, newValue) {
75
+ setLastValidValue(newValue);
76
+ setInnerValue(newValue);
77
+ if (onChange) {
78
+ onChange(event, newValue);
79
+ }
80
+ };
81
+ var validateValue = function validateValue(newValue) {
82
+ if (!newValue || !isNumber(newValue)) {
83
+ setValues(null, lastValidValue);
84
+ setIsAnimationRun(false);
85
+ return;
86
+ }
87
+ if (String(newValue).endsWith('.')) {
88
+ setValues(null, Number(newValue));
89
+ setIsAnimationRun(false);
90
+ return;
91
+ }
92
+ var resValue = Number(newValue);
93
+ if (max !== undefined && resValue > max) {
94
+ setErrorClass(classes.errorAnimation);
95
+ setErrorValue(max);
96
+ setIsAnimationRun(true);
97
+ return;
98
+ }
99
+ if (min !== undefined && resValue < min) {
100
+ setErrorClass(classes.errorAnimation);
101
+ setErrorValue(min);
102
+ setIsAnimationRun(true);
103
+ }
104
+ setIsAnimationRun(false);
105
+ };
106
+ var handleManualInputChange = function handleManualInputChange(event) {
107
+ var _textWrapperRef$curre, _wrapperRef$current;
108
+ if (!isManualInput || disabled) {
109
+ return;
110
+ }
111
+ setIsAnimationRun(true);
112
+ var newValue = event.target.value;
113
+ if (!newValue) {
114
+ setInnerValue('');
115
+ if (onChange) {
116
+ onChange(event, '');
117
+ }
118
+ return;
119
+ }
120
+ var cleanValue = newValue.replace(excludingNumberSchema, '');
121
+ if (cleanValue.endsWith('.') || cleanValue === '-') {
122
+ setInnerValue(cleanValue);
123
+ if (onChange) {
124
+ onChange(event, cleanValue);
125
+ }
126
+ return;
127
+ }
128
+ var isValid = numberSchema.test(cleanValue);
129
+ if (!isValid) {
130
+ setValues(event, lastValidValue);
131
+ return;
132
+ }
133
+ if (textWrapperRef !== null && textWrapperRef !== void 0 && textWrapperRef.current && wrapperRef !== null && wrapperRef !== void 0 && wrapperRef.current && (textWrapperRef === null || textWrapperRef === void 0 || (_textWrapperRef$curre = textWrapperRef.current) === null || _textWrapperRef$curre === void 0 ? void 0 : _textWrapperRef$curre.clientWidth) > (wrapperRef === null || wrapperRef === void 0 || (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.clientWidth)) {
134
+ wrapperRef.current.scrollLeft = textWrapperRef.current.offsetWidth - textWrapperRef.current.offsetLeft || 0;
135
+ }
136
+ setValues(event, Number(cleanValue));
137
+ };
138
+ var handleClickInputWrapper = function handleClickInputWrapper() {
139
+ if (!isManualInput || !inputRef.current) {
140
+ return;
141
+ }
142
+ if (!isInputFocused) {
143
+ inputRef.current.select();
144
+ }
145
+ setIsInputFocused(true);
146
+ };
147
+ var handleBlur = function handleBlur(event) {
148
+ validateValue(value);
149
+ setIsInputFocused(false);
150
+ if (onBlur) {
151
+ onBlur(event);
152
+ }
153
+ };
154
+ var handleKeyDown = function handleKeyDown(event) {
155
+ if (!isManualInput || disabled) {
156
+ return;
157
+ }
158
+ if (event.keyCode === keyCodes.Enter) {
159
+ event.preventDefault();
160
+ validateValue(value);
161
+ if (onKeyDown) {
162
+ onKeyDown(event);
163
+ }
164
+ }
165
+ };
166
+ var handleEndErrorAnimation = function handleEndErrorAnimation(correctValue) {
167
+ setIsAnimationRun(false);
168
+ setIsInputFocused(false);
169
+ setErrorClass(undefined);
170
+ setValues(null, correctValue);
171
+ };
172
+ useEffect(function () {
173
+ setDynamicWidth(getInputWidth());
174
+ }, []);
175
+ useDidMountEffect(function () {
176
+ setDynamicWidth(getInputWidth(false));
177
+ }, [value]);
178
+ return /*#__PURE__*/React.createElement(InputWrapper, {
179
+ ref: wrapperRef,
180
+ className: cx(solidViewClass, errorClass, manualInputClass),
181
+ isManualInput: Boolean(isManualInput),
182
+ onClick: handleClickInputWrapper
183
+ }, /*#__PURE__*/React.createElement(TextWrapper, {
184
+ ref: textWrapperRef
185
+ }, !isLoading && textBefore && /*#__PURE__*/React.createElement(AdditionalText, {
186
+ className: classes.textBefore
187
+ }, textBefore), isLoading ? /*#__PURE__*/React.createElement(Loader, null, loader || _StyledSpinner || (_StyledSpinner = /*#__PURE__*/React.createElement(StyledSpinner, null))) : /*#__PURE__*/React.createElement(DynamicInput, null, /*#__PURE__*/React.createElement(Input, _extends({
188
+ ref: inputForkRef,
189
+ dynamicWidth: dynamicWidth,
190
+ value: value,
191
+ isManualInput: Boolean(isManualInput),
192
+ tabIndex: disabled || !isManualInput ? -1 : 0,
193
+ onChange: handleManualInputChange,
194
+ onBlur: handleBlur,
195
+ onKeyDown: handleKeyDown,
196
+ onAnimationEnd: function onAnimationEnd() {
197
+ return handleEndErrorAnimation(Number(errorValue));
198
+ }
199
+ }, rest)), /*#__PURE__*/React.createElement(InputWidthHelper, {
200
+ ref: inputHelperRef
201
+ }, value)), !isLoading && textAfter && /*#__PURE__*/React.createElement(AdditionalText, {
202
+ className: classes.textAfter
203
+ }, textAfter)));
204
+ });
@@ -0,0 +1,74 @@
1
+ import _styled from "@emotion/styled/base";
2
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
+ import { component, mergeConfig } from '../../../../engines';
4
+ import { spinnerConfig } from '../../../Spinner';
5
+ var mergedConfig = /*#__PURE__*/mergeConfig(spinnerConfig);
6
+ var Spinner = /*#__PURE__*/component(mergedConfig);
7
+ export var InputWrapper = /*#__PURE__*/_styled("div", {
8
+ target: "e15d8t3l7",
9
+ label: "plasma-new-hope__InputWrapper"
10
+ })("overflow-x:auto;overflow-y:hidden;flex:1;cursor:", function (_ref) {
11
+ var isManualInput = _ref.isManualInput;
12
+ return isManualInput ? 'text' : 'default';
13
+ }, ";::-webkit-scrollbar{display:none;}scrollbar-width:none;overscroll-behavior:contain;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ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2ludGVyLWV2ZW50czogJHsoeyBpc01hbnVhbElucHV0IH0pID0+IChpc01hbnVhbElucHV0ID8gJ2luaXRpYWwnIDogJ25vbmUnKX07XG4gICAgdHJhbnNpdGlvbjogd2lkdGggMC4xcztcbmA7XG5cbmV4cG9ydCBjb25zdCBJbnB1dFdpZHRoSGVscGVyID0gc3R5bGVkLnNwYW5gXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHotaW5kZXg6IC05OTk7XG4gICAgdmlzaWJpbGl0eTogaGlkZGVuO1xuICAgIHRvcDogMDtcbiAgICBsZWZ0OiAwO1xuICAgIG9wYWNpdHk6IDA7XG4gICAgaGVpZ2h0OiAwO1xuICAgIHdoaXRlLXNwYWNlOiBwcmU7XG5gO1xuIl19 */"));
14
+ export var TextWrapper = /*#__PURE__*/_styled("div", {
15
+ target: "e15d8t3l6",
16
+ label: "plasma-new-hope__TextWrapper"
17
+ })(process.env.NODE_ENV === "production" ? {
18
+ name: "zvqxgx",
19
+ styles: "display:flex;align-items:center;justify-content:center;width:fit-content;margin:0 auto;box-sizing:border-box"
20
+ } : {
21
+ name: "zvqxgx",
22
+ styles: "display:flex;align-items:center;justify-content:center;width:fit-content;margin:0 auto;box-sizing:border-box",
23
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCcUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3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biAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */",
24
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
+ });
26
+ export var AdditionalText = /*#__PURE__*/_styled("span", {
27
+ target: "e15d8t3l5",
28
+ label: "plasma-new-hope__AdditionalText"
29
+ })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdDeUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHNwaW5uZXJDb25maWcgfSBmcm9tICcuLi8uLi8uLi9TcGlubmVyJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoc3Bpbm5lckNvbmZpZyk7XG5jb25zdCBTcGlubmVyID0gY29tcG9uZW50KG1lcmdlZENvbmZpZyk7XG5cbmV4cG9ydCBjb25zdCBJbnB1dFdyYXBwZXIgPSBzdHlsZWQuZGl2PHsgaXNNYW51YWxJbnB1dDogYm9vbGVhbiB9PmBcbiAgICBvdmVyZmxvdy14OiBhdXRvO1xuICAgIG92ZXJmbG93LXk6IGhpZGRlbjtcbiAgICBmbGV4OiAxO1xuICAgIGN1cnNvcjogJHs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bm9uZTtcbiAgICB3aWR0aDogJHsoeyBkeW5hbWljV2lkdGggfSkgPT4gZHluYW1pY1dpZHRofTtcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGN1cnNvcjogJHsoeyBpc01hbnVhbElucHV0IH0pID0+IChpc01hbnVhbElucHV0ID8gJ3RleHQnIDogJ2RlZmF1bHQnKX07XG4gICAgcG9pbnRlci1ldmVudHM6ICR7KHsgaXNNYW51YWxJbnB1dCB9KSA9PiAoaXNNYW51YWxJbnB1dCA/ICdpbml0aWFsJyA6ICdub25lJyl9O1xuICAgIHRyYW5zaXRpb246IHdpZHRoIDAuMXM7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRXaWR0aEhlbHBlciA9IHN0eWxlZC5zcGFuYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAtOTk5O1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */");
30
+ export var Loader = /*#__PURE__*/_styled("div", {
31
+ target: "e15d8t3l4",
32
+ label: "plasma-new-hope__Loader"
33
+ })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtDZ0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiL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IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */");
34
+ export var StyledSpinner = /*#__PURE__*/_styled(Spinner, {
35
+ target: "e15d8t3l3",
36
+ label: "plasma-new-hope__StyledSpinner"
37
+ })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9DNEMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHNwaW5uZXJDb25maWcgfSBmcm9tICcuLi8uLi8uLi9TcGlubmVyJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoc3Bpbm5lckNvbmZpZyk7XG5jb25zdCBTcGlubmVyID0gY29tcG9uZW50KG1lcmdlZENvbmZpZyk7XG5cbmV4cG9ydCBjb25zdCBJbnB1dFdyYXBwZXIgPSBzdHlsZWQuZGl2PHsgaXNNYW51YWxJbnB1dDogYm9vbGVhbiB9PmBcbiAgICBvdmVyZmxvdy14OiBhdXRvO1xuICAgIG92ZXJmbG93LXk6IGhpZGRlbjtcbiAgICBmb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NwYXJlbnQ7XG4gICAgb3V0bGluZTogbm9uZTtcbiAgICB3aWR0aDogJHsoeyBkeW5hbWljV2lkdGggfSkgPT4gZHluYW1pY1dpZHRofTtcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGN1cnNvcjogJHsoeyBpc01hbnVhbElucHV0IH0pID0+IChpc01hbnVhbElucHV0ID8gJ3RleHQnIDogJ2RlZmF1bHQnKX07XG4gICAgcG9pbnRlci1ldmVudHM6ICR7KHsgaXNNYW51YWxJbnB1dCB9KSA9PiAoaXNNYW51YWxJbnB1dCA/ICdpbml0aWFsJyA6ICdub25lJyl9O1xuICAgIHRyYW5zaXRpb246IHdpZHRoIDAuMXM7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRXaWR0aEhlbHBlciA9IHN0eWxlZC5zcGFuYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAtOTk5O1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */");
38
+ export var DynamicInput = /*#__PURE__*/_styled("div", {
39
+ target: "e15d8t3l2",
40
+ label: "plasma-new-hope__DynamicInput"
41
+ })(process.env.NODE_ENV === "production" ? {
42
+ name: "bjn8wh",
43
+ styles: "position:relative"
44
+ } : {
45
+ name: "bjn8wh",
46
+ styles: "position:relative",
47
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNDc0MiLCJmaWxlI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uYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAtOTk5O1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */",
48
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
49
+ });
50
+ export var Input = /*#__PURE__*/_styled("input", {
51
+ target: "e15d8t3l1",
52
+ label: "plasma-new-hope__Input"
53
+ })("box-sizing:border-box;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:", function (_ref2) {
54
+ var dynamicWidth = _ref2.dynamicWidth;
55
+ return dynamicWidth;
56
+ }, ";box-sizing:border-box;cursor:", function (_ref3) {
57
+ var isManualInput = _ref3.isManualInput;
58
+ return isManualInput ? 'text' : 'default';
59
+ }, ";pointer-events:", function (_ref4) {
60
+ var isManualInput = _ref4.isManualInput;
61
+ return isManualInput ? 'initial' : 'none';
62
+ }, ";transition:width 0.1s;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBDbUYiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbW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== */"));
63
+ export var InputWidthHelper = /*#__PURE__*/_styled("span", {
64
+ target: "e15d8t3l0",
65
+ label: "plasma-new-hope__InputWidthHelper"
66
+ })(process.env.NODE_ENV === "production" ? {
67
+ name: "1lglqkg",
68
+ styles: "position:absolute;z-index:-999;visibility:hidden;top:0;left:0;opacity:0;height:0;white-space:pre"
69
+ } : {
70
+ name: "1lglqkg",
71
+ styles: "position:absolute;z-index:-999;visibility:hidden;top:0;left:0;opacity:0;height:0;white-space:pre",
72
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdEMkMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHNwaW5uZXJDb25maWcgfSBmcm9tICcuLi8uLi8uLi9TcGlubmVyJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoc3Bpbm5lckNvbmZpZyk7XG5jb25zdCBTcGlubmVyID0gY29tcG9uZW50KG1lcmdlZENvbmZpZyk7XG5cbmV4cG9ydCBjb25zdCBJbnB1dFdyYXBwZXIgPSBzdHlsZWQuZGl2PHsgaXNNYW51YWxJbnB1dDogYm9vbGVhbiB9PmBcbiAgICBvdmVyZmxvdy14O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BhZGRpbmc6IDA7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgb3V0bGluZTogbm9uZTtcbiAgICB3aWR0aDogJHsoeyBkeW5hbWljV2lkdGggfSkgPT4gZHluYW1pY1dpZHRofTtcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGN1cnNvcjogJHsoeyBpc01hbnVhbElucHV0IH0pID0+IChpc01hbnVhbElucHV0ID8gJ3RleHQnIDogJ2RlZmF1bHQnKX07XG4gICAgcG9pbnRlci1ldmVudHM6ICR7KHsgaXNNYW51YWxJbnB1dCB9KSA9PiAoaXNNYW51YWxJbnB1dCA/ICdpbml0aWFsJyA6ICdub25lJyl9O1xuICAgIHRyYW5zaXRpb246IHdpZHRoIDAuMXM7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRXaWR0aEhlbHBlciA9IHN0eWxlZC5zcGFuYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAtOTk5O1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */",
73
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
74
+ });
@@ -0,0 +1,2 @@
1
+ export { ActionButton } from './ActionButton/ActionButton';
2
+ export { NumberInput } from './Input/Input';
@@ -0,0 +1,3 @@
1
+ export var defaultCharacterWidth = '1ch';
2
+ export var numberSchema = /^(-)?\d+(\.\d+)?$/;
3
+ export var excludingNumberSchema = /[^-.\d]/g;
@@ -0,0 +1,4 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, tokens } from '../../NumberInput.tokens';
3
+ import { InputWrapper } from '../../ui/Input/Input.styles';
4
+ export var base = /*#__PURE__*/css(InputWrapper, "{background-color:var(", tokens.backgroundColor, ");box-shadow:inset 0 0 0 var(", tokens.inputWrapperBorderWidth, ") var(", tokens.borderColor, ");&.", classes.manualInput, ":hover{background-color:var(", tokens.backgroundColorHover, ");box-shadow:inset 0 0 0 var(", tokens.inputWrapperBorderWidth, ") var(", tokens.borderColorHover, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fYmFja2dyb3VuZC10eXBlL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fYmFja2dyb3VuZC10eXBlL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL051bWJlcklucHV0LnRva2Vucyc7XG5pbXBvcnQgeyBJbnB1dFdyYXBwZXIgfSBmcm9tICcuLi8uLi91aS9JbnB1dC9JbnB1dC5zdHlsZXMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAke0lucHV0V3JhcHBlcn0ge1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMuYmFja2dyb3VuZENvbG9yfSk7XG4gICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDAgMCAwIHZhcigke3Rva2Vucy5pbnB1dFdyYXBwZXJCb3JkZXJXaWR0aH0pIHZhcigke3Rva2Vucy5ib3JkZXJDb2xvcn0pO1xuXG4gICAgICAgICYuJHtjbGFzc2VzLm1hbnVhbElucHV0fTpob3ZlciB7XG4gICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMuYmFja2dyb3VuZENvbG9ySG92ZXJ9KTtcbiAgICAgICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDAgMCAwIHZhcigke3Rva2Vucy5pbnB1dFdyYXBwZXJCb3JkZXJXaWR0aH0pIHZhcigke3Rva2Vucy5ib3JkZXJDb2xvckhvdmVyfSk7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1,6 @@
1
+ [
2
+ "--plasma-number-input_background-color",
3
+ "--plasma-number-input_background-color-hover",
4
+ "--plasma-number-input_border-color",
5
+ "--plasma-number-input_border-color-hover"
6
+ ]
@@ -0,0 +1,3 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, tokens } from '../../NumberInput.tokens';
3
+ export var base = /*#__PURE__*/css("&&.", classes.disabled, "{pointer-events:none;opacity:var(", tokens.disabledOpacity, ");cursor:not-allowed;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fZGlzYWJsZWQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC92YXJpYXRpb25zL19kaXNhYmxlZC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9OdW1iZXJJbnB1dC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmJi4ke2NsYXNzZXMuZGlzYWJsZWR9IHtcbiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gICAgICAgIG9wYWNpdHk6IHZhcigke3Rva2Vucy5kaXNhYmxlZE9wYWNpdHl9KTtcbiAgICAgICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "boolean",
3
+ "tokens": ["--plasma-number-input_disabled-opacity"]
4
+ }
@@ -0,0 +1,6 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, privateTokens, tokens } from '../../NumberInput.tokens';
3
+ import { StyledIconButton } from '../../ui/ActionButton/ActionButton.styles';
4
+ import { AdditionalText, Input, InputWrapper, StyledSpinner } from '../../ui/Input/Input.styles';
5
+ import { spinnerTokens } from '../../../Spinner';
6
+ export var base = /*#__PURE__*/css(InputWrapper, "{border-radius:var(", tokens.inputWrapperBorderRadius, ");}", StyledIconButton, "{", privateTokens.segmentationBorderRadius, ":var(", tokens.iconButtonRadius, ");&.", classes.segmentedView, ",&.", classes.solidView, "{", privateTokens.segmentationBorderRadius, ":var(", tokens.iconButtonSegmentationRadius, ", var(", tokens.iconButtonRadius, "));}&.", classes.actionButtonDecrement, "{border-radius:var(", tokens.iconButtonRadius, ") var(", privateTokens.segmentationBorderRadius, ") var(", privateTokens.segmentationBorderRadius, ") var(", tokens.iconButtonRadius, ");}&.", classes.actionButtonIncrement, "{border-radius:var(", privateTokens.segmentationBorderRadius, ") var(", tokens.iconButtonRadius, ") var(", tokens.iconButtonRadius, ") var(", privateTokens.segmentationBorderRadius, ");}}&.", classes.segmentedView, "{", InputWrapper, "{border-radius:var(", tokens.iconButtonSegmentationRadius, ");}}&.", classes.solidView, "{", privateTokens.topBoxShadow, ":inset 0 var(", tokens.rootBorderWidth, ") var(", tokens.wrapperBorderColor, ");", privateTokens.bottomBoxShadow, ":inset 0 calc(-1 * var(", tokens.rootBorderWidth, ")) var(", tokens.wrapperBorderColor, ");", privateTokens.leftBoxShadow, ":inset var(", tokens.rootBorderWidth, ") 0 var(", tokens.wrapperBorderColor, ");", privateTokens.rightBoxShadow, ":inset calc(-1 * var(", tokens.rootBorderWidth, ")) 0 var(", tokens.wrapperBorderColor, ");position:relative;&.", classes.focused, ":not(", classes.loading, "),&.", classes.focused, ":not(", classes.disabled, "){", privateTokens.topBoxShadow, ":inset 0 var(", tokens.rootBorderWidth, ") var(", tokens.wrapperBorderColorFocus, ");", privateTokens.bottomBoxShadow, ":inset 0 calc(-1 * var(", tokens.rootBorderWidth, ")) var(", tokens.wrapperBorderColorFocus, ");", privateTokens.leftBoxShadow, ":inset var(", tokens.rootBorderWidth, ") 0 var(", tokens.wrapperBorderColorFocus, ");", privateTokens.rightBoxShadow, ":inset calc(-1 * var(", tokens.rootBorderWidth, ")) 0 var(", tokens.wrapperBorderColorFocus, ");}&:before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:calc(100% - var(", tokens.iconButtonWidth, ") * 2);height:100%;background:var(", tokens.backgroundColorSolid, ");box-shadow:var(", privateTokens.topBoxShadow, "),var(", privateTokens.bottomBoxShadow, ");}", InputWrapper, "{position:relative;color:var(", tokens.colorSolid, ");&:not(", classes.errorAnimation, ").", classes.manualInput, ":focus-within{background-color:var(", tokens.backgroundColorSolidFocus, ");box-shadow:inset 0 0 0 var(", tokens.inputWrapperBorderWidth, ") var(", tokens.borderColorSolidFocus, ");}}", StyledIconButton, "{&.", classes.actionButtonDecrement, "{box-shadow:var(", privateTokens.bottomBoxShadow, "),var(", privateTokens.topBoxShadow, "),var(", privateTokens.leftBoxShadow, ");}&.", classes.actionButtonIncrement, "{box-shadow:var(", privateTokens.bottomBoxShadow, "),var(", privateTokens.topBoxShadow, "),var(", privateTokens.rightBoxShadow, ");}:hover,:active{background-color:var(", tokens.iconButtonBackgroundColor, ");}:hover{color:var(", tokens.iconButtonColorSolidHover, ");}:active{color:var(", tokens.iconButtonColorSolidActive, ");}&.", classes.actionButtonDecrementDisabled, ",&.", classes.actionButtonIncrementDisabled, "{opacity:1;svg{opacity:var(", tokens.actionButtonDisabledOpacity, ");}:hover,:active{color:var(", tokens.iconButtonColor, ");svg{opacity:var(", tokens.actionButtonDisabledOpacity, ");}}}}&.", classes.clearView, "{", StyledIconButton, "{&.", classes.actionButtonDecrementDisabled, ",&.", classes.actionButtonIncrementDisabled, "{:hover,:active{background-color:transparent;}}}}", StyledSpinner, "{", spinnerTokens.color, ":var(", tokens.loaderSpinnerColorSolid, ");}", Input, "{caret-color:var(", tokens.caretColorSolid, ", var(", tokens.caretColor, "));&:not(.", classes.errorAnimation, "){color:var(", tokens.colorSolid, ");}}", AdditionalText, "{color:var(", tokens.additionalTextColorSolid, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fc2VnbWVudGF0aW9uL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fc2VnbWVudGF0aW9uL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHByaXZhdGVUb2tlbnMsIHRva2VucyB9IGZyb20gJy4uLy4uL051bWJlcklucHV0LnRva2Vucyc7XG5pbX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mRlcldpZHRofSkgdmFyKCR7dG9rZW5zLmJvcmRlckNvbG9yU29saWRGb2N1c30pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJHtTdHlsZWRJY29uQnV0dG9ufSB7XG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5hY3Rpb25CdXR0b25EZWNyZW1lbnR9IHtcbiAgICAgICAgICAgICAgICBib3gtc2hhZG93OiB2YXIoJHtwcml2YXRlVG9rZW5zLmJvdHRvbUJveFNoYWRvd30pLCB2YXIoJHtwcml2YXRlVG9rZW5zLnRvcEJveFNoYWRvd30pLCB2YXIoJHtwcml2YXRlVG9rZW5zLmxlZnRCb3hTaGFkb3d9KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi4ke2NsYXNzZXMuYWN0aW9uQnV0dG9uSW5jcmVtZW50fSB7XG4gICAgICAgICAgICAgICAgYm94LXNoYWRvdzogdmFyKCR7cHJpdmF0ZVRva2Vucy5ib3R0b21Cb3hTaGFkb3d9KSwgdmFyKCR7cHJpdmF0ZVRva2Vucy50b3BCb3hTaGFkb3d9KSwgdmFyKCR7cHJpdmF0ZVRva2Vucy5yaWdodEJveFNoYWRvd30pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICA6aG92ZXIsXG4gICAgICAgICAgICA6YWN0aXZlIHsgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7dG9rZW5zLmljb25CdXR0b25CYWNrZ3JvdW5kQ29sb3J9KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgOmhvdmVyIHsgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pY29uQnV0dG9uQ29sb3JTb2xpZEhvdmVyfSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIDphY3RpdmUgeyAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmljb25CdXR0b25Db2xvclNvbGlkQWN0aXZlfSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYuJHtjbGFzc2VzLmFjdGlvbkJ1dHRvbkRlY3JlbWVudERpc2FibGVkfSwgJi4ke2NsYXNzZXMuYWN0aW9uQnV0dG9uSW5jcmVtZW50RGlzYWJsZWR9IHtcbiAgICAgICAgICAgICAgICBvcGFjaXR5OiAxO1xuXG4gICAgICAgICAgICAgICAgc3ZnIHtcbiAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogdmFyKCR7dG9rZW5zLmFjdGlvbkJ1dHRvbkRpc2FibGVkT3BhY2l0eX0pO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIDpob3ZlcixcbiAgICAgICAgICAgICAgICA6YWN0aXZlIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pY29uQnV0dG9uQ29sb3J9KTtcblxuICAgICAgICAgICAgICAgICAgICBzdmcge1xuICAgICAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogdmFyKCR7dG9rZW5zLmFjdGlvbkJ1dHRvbkRpc2FibGVkT3BhY2l0eX0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMuY2xlYXJWaWV3fSB7XG4gICAgICAgICAgICAke1N0eWxlZEljb25CdXR0b259IHtcbiAgICAgICAgICAgICAgICAmLiR7Y2xhc3Nlcy5hY3Rpb25CdXR0b25EZWNyZW1lbnREaXNhYmxlZH0sICYuJHtjbGFzc2VzLmFjdGlvbkJ1dHRvbkluY3JlbWVudERpc2FibGVkfSB7XG4gICAgICAgICAgICAgICAgICAgIDpob3ZlcixcbiAgICAgICAgICAgICAgICAgICAgOmFjdGl2ZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICR7U3R5bGVkU3Bpbm5lcn0ge1xuICAgICAgICAgICAgJHtzcGlubmVyVG9rZW5zLmNvbG9yfTogdmFyKCR7dG9rZW5zLmxvYWRlclNwaW5uZXJDb2xvclNvbGlkfSk7XG4gICAgICAgIH1cbiAgICBcbiAgICAgICAgJHtJbnB1dH0ge1xuICAgICAgICAgICAgY2FyZXQtY29sb3I6IHZhcigke3Rva2Vucy5jYXJldENvbG9yU29saWR9LCB2YXIoJHt0b2tlbnMuY2FyZXRDb2xvcn0pKTtcblxuICAgICAgICAgICAgJjpub3QoLiR7Y2xhc3Nlcy5lcnJvckFuaW1hdGlvbn0pe1xuICAgICAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuY29sb3JTb2xpZH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgXG4gICAgICAgICR7QWRkaXRpb25hbFRleHR9IHtcbiAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuYWRkaXRpb25hbFRleHRDb2xvclNvbGlkfSk7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1 @@
1
+ ["--plasma-number-input_icon-button_segmentation_radius", "--plasma-number-input_background-color-solid"]
@@ -0,0 +1,5 @@
1
+ import { css } from '@emotion/react';
2
+ import { tokens } from '../../NumberInput.tokens';
3
+ import { iconButtonTokens } from '../../../IconButton';
4
+ import { StyledIconButton } from '../../ui/ActionButton/ActionButton.styles';
5
+ export var base = /*#__PURE__*/css(StyledIconButton, "{", iconButtonTokens.iconButtonRadius, ":var(", tokens.iconButtonRadius, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fc2hhcGUvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC92YXJpYXRpb25zL19zaGFwZS9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi8uLi9OdW1iZXJJbnB1dC50b2tlbnMnO1xuaW1wb3J0IHsgaWNvbkJ1dHRvblRva2VucyB9IGZyb20gJy4uLy4uLy4uL0ljb25CdXR0b24nO1xuaW1wb3J0IHsgU3R5bGVkSWNvbkJ1dHRvbiB9IGZyb20gJy4uLy4uL3VpL0FjdGlvbkJ1dHRvbi9BY3Rpb25CdXR0b24uc3R5bGVzJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJHtTdHlsZWRJY29uQnV0dG9ufSB7XG4gICAgICAgICR7aWNvbkJ1dHRvblRva2Vucy5pY29uQnV0dG9uUmFkaXVzfTogdmFyKCR7dG9rZW5zLmljb25CdXR0b25SYWRpdXN9KTtcbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1 @@
1
+ ["--plasma-number-input_icon-button_radius"]
@@ -0,0 +1,7 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, privateTokens, tokens } from '../../NumberInput.tokens';
3
+ import { iconButtonTokens } from '../../../IconButton';
4
+ import { StyledIconButton } from '../../ui/ActionButton/ActionButton.styles';
5
+ import { AdditionalText, DynamicInput, Input, InputWrapper, StyledSpinner, TextWrapper } from '../../ui/Input/Input.styles';
6
+ import { spinnerTokens } from '../../../Spinner';
7
+ export var base = /*#__PURE__*/css("width:var(", privateTokens.inputWidth, ");min-width:var(", tokens.rootMinWidth, ");", StyledIconButton, "{", iconButtonTokens.iconButtonHeight, ":var(", tokens.iconButtonHeight, ");", iconButtonTokens.iconButtonWidth, ":var(", tokens.iconButtonWidth, ");", iconButtonTokens.iconButtonPadding, ":var(", tokens.iconButtonPadding, ");", iconButtonTokens.iconButtonFontFamily, ":var(", tokens.iconButtonFontFamily, ");", iconButtonTokens.iconButtonFontSize, ":var(", tokens.iconButtonFontSize, ");", iconButtonTokens.iconButtonFontStyle, ":var(", tokens.iconButtonFontStyle, ");", iconButtonTokens.iconButtonFontWeight, ":var(", tokens.iconButtonFontWeight, ");", iconButtonTokens.iconButtonLetterSpacing, ":var(", tokens.iconButtonLetterSpacing, ");", iconButtonTokens.iconButtonLineHeight, ":var(", tokens.iconButtonLineHeight, ");}", InputWrapper, "{margin:var(", tokens.inputWrapperMargin, ");}", TextWrapper, "{height:var(", tokens.textWrapperHeight, ");padding:var(", tokens.textWrapperPadding, ");}", DynamicInput, ",", Input, ",", AdditionalText, "{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, ");}", AdditionalText, "{&.", classes.textBefore, "{margin-right:var(", tokens.textBeforeMarginRight, ");}&.", classes.textAfter, "{margin-left:var(", tokens.textAfterMarginLeft, ");}}", StyledSpinner, "{", spinnerTokens.size, ":var(", tokens.loaderSpinnerSize, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fc2l6ZS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 +1,22 @@
1
+ [
2
+ "--plasma-number-input_icon-button_height",
3
+ "--plasma-number-input_icon-button_width",
4
+ "--plasma-number-input_icon-button_padding",
5
+ "--plasma-number-input_icon-button_font-family",
6
+ "--plasma-number-input_icon-button_font-size",
7
+ "--plasma-number-input_icon-button_font-style",
8
+ "--plasma-number-input_icon-button_font-weight",
9
+ "--plasma-number-input_icon-button_letter-spacing",
10
+ "--plasma-number-input_icon-button_line-height",
11
+ "--plasma-number-input_font-family",
12
+ "--plasma-number-input_font-style",
13
+ "--plasma-number-input_font-size",
14
+ "--plasma-number-input_font-weight",
15
+ "--plasma-number-input_letter-spacing",
16
+ "--plasma-number-input_line-height",
17
+ "--plasma-number-input_text-wrapper_height",
18
+ "--plasma-number-input_text-wrapper_padding",
19
+ "--plasma-number-input_loader-spinner_size",
20
+ "--plasma-number-input_text-before_margin-right",
21
+ "--plasma-number-input_text-after_margin-left"
22
+ ]
@@ -0,0 +1,7 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, tokens } from '../../NumberInput.tokens';
3
+ import { iconButtonTokens } from '../../../IconButton';
4
+ import { StyledIconButton } from '../../ui/ActionButton/ActionButton.styles';
5
+ import { AdditionalText, Input, InputWrapper, StyledSpinner } from '../../ui/Input/Input.styles';
6
+ import { spinnerTokens } from '../../../Spinner';
7
+ export var base = /*#__PURE__*/css(StyledIconButton, "{", iconButtonTokens.iconButtonColor, ":var(", tokens.iconButtonColor, ");", iconButtonTokens.iconButtonBackgroundColor, ":var(", tokens.iconButtonBackgroundColor, ");", iconButtonTokens.iconButtonColorHover, ":var(", tokens.iconButtonColorHover, ");", iconButtonTokens.iconButtonBackgroundColorHover, ":var(", tokens.iconButtonBackgroundColorHover, ");", iconButtonTokens.iconButtonColorActive, ":var(", tokens.iconButtonColorActive, ");", iconButtonTokens.iconButtonBackgroundColorActive, ":var(", tokens.iconButtonBackgroundColorActive, ");&.", classes.actionButtonDecrementDisabled, ",&.", classes.actionButtonIncrementDisabled, "{opacity:var(", tokens.actionButtonDisabledOpacity, ");cursor:not-allowed;:hover,:active{scale:none;color:var(", tokens.iconButtonColor, ");background-color:var(", tokens.iconButtonBackgroundColor, ");}}}&& ", InputWrapper, "{&.", classes.manualInput, ":focus-within{background-color:var(", tokens.backgroundColorFocus, ");box-shadow:inset 0 0 0 var(", tokens.inputWrapperBorderWidth, ") var(", tokens.borderColorFocus, ");}&.", classes.manualInput, ".", classes.errorAnimation, "{background-color:var(", tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", tokens.inputWrapperBorderWidth, ") var(", tokens.borderErrorColor, ");animation:shakingError 0.3s forwards;", Input, "{color:var(", tokens.errorColor, ");animation:fadeError 0.3s forwards;}&:focus-within{background-color:var(", tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", tokens.inputWrapperBorderWidth, ") var(", tokens.borderErrorColor, ");}}@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%{opacity:1;}100%{opacity:0;}}}", StyledSpinner, "{", spinnerTokens.color, ":var(", tokens.loaderSpinnerColor, ");}", Input, "{color:var(", tokens.color, ");caret-color:var(", tokens.caretColor, ");}", AdditionalText, "{color:var(", tokens.additionalTextColor, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVF1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnR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ICAgICAgICAxNCUge1xuICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtMC4xMjVyZW0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgMjglIHtcbiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoMC4xMjVyZW0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgNDIlIHtcbiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTAuMTI1cmVtKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDU3JSB7XG4gICAgICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDAuMTI1cmVtKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDcxJSB7XG4gICAgICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0wLjEyNXJlbSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICA4NSUge1xuICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgwLjEyNXJlbSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAxMDAlIHtcbiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTAuMTI1cmVtKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIEBrZXlmcmFtZXMgZmFkZUVycm9yIHtcbiAgICAgICAgICAgIDUwJSB7XG4gICAgICAgICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDEwMCUge1xuICAgICAgICAgICAgICAgIG9wYWNpdHk6IDA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAke1N0eWxlZFNwaW5uZXJ9IHtcbiAgICAgICAgJHtzcGlubmVyVG9rZW5zLmNvbG9yfTogdmFyKCR7dG9rZW5zLmxvYWRlclNwaW5uZXJDb2xvcn0pO1xuICAgIH1cblxuICAgICR7SW5wdXR9IHtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5jb2xvcn0pO1xuICAgICAgICBjYXJldC1jb2xvcjogdmFyKCR7dG9rZW5zLmNhcmV0Q29sb3J9KTtcbiAgICB9XG5cbiAgICAke0FkZGl0aW9uYWxUZXh0fSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuYWRkaXRpb25hbFRleHRDb2xvcn0pO1xuICAgIH1cbmA7XG4iXX0= */"));
@@ -0,0 +1,14 @@
1
+ [
2
+ "--plasma-number-input_icon-button_color",
3
+ "--plasma-number-input_icon-button_background-color",
4
+ "--plasma-number-input_icon-button_color-hover",
5
+ "--plasma-number-input_icon-button_background-color-hover",
6
+ "--plasma-number-input_icon-button_color-active",
7
+ "--plasma-number-input_icon-button_background-color-active",
8
+ "--plasma-number-input_loader-spinner_color",
9
+ "--plasma-number-input_color",
10
+ "--plasma-number-input_additional-text_color",
11
+ "--plasma-number-input_action-button_disabled-opacity",
12
+ "--plasma-number-input_background-color-focus",
13
+ "--plasma-number-input_border-color-focus"
14
+ ]
@@ -1,8 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["view", "size", "orientation", "contentAlign", "hasLine", "hasContent", "hasLoader", "items", "onChange", "current", "status"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -14,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
14
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
- import React, { forwardRef, useState, useEffect, useMemo } from 'react';
15
+ import React, { forwardRef, useState, useEffect } from 'react';
18
16
  import cls from 'classnames';
19
17
  import { classes } from './Steps.tokens';
20
18
  import { StepItem } from './ui';
@@ -46,33 +44,19 @@ export var stepsRoot = function stepsRoot(Root) {
46
44
  _useState2 = _slicedToArray(_useState, 2),
47
45
  prevIndex = _useState2[0],
48
46
  setPrevIndex = _useState2[1];
47
+ var isUncontrolled = current !== undefined;
49
48
  var hasIndicator = items.some(function (item) {
50
49
  return item.indicator != null;
51
50
  });
52
51
  var isSimple = items.every(function (item) {
53
52
  return !item.title && !item.content;
54
53
  });
55
- var innerItems = useMemo(function () {
56
- var isUncontrolled = current !== undefined;
57
- return items.map(function (item, index) {
58
- var itemStatus = getItemStatus({
59
- isUncontrolled: isUncontrolled,
60
- current: current,
61
- status: status,
62
- index: index,
63
- item: item
64
- });
65
- return _objectSpread(_objectSpread({}, item), {}, {
66
- status: itemStatus
67
- });
68
- });
69
- }, [status, current, items]);
70
54
  useEffect(function () {
71
55
  var calcPrevIndex = function calcPrevIndex() {
72
56
  if (current !== undefined) {
73
57
  setPrevIndex(current);
74
58
  } else {
75
- var index = innerItems.findIndex(function (item) {
59
+ var index = items.findIndex(function (item) {
76
60
  return item.status === 'active';
77
61
  });
78
62
  setPrevIndex(index !== -1 ? index : undefined);
@@ -82,14 +66,21 @@ export var stepsRoot = function stepsRoot(Root) {
82
66
  return function () {
83
67
  calcPrevIndex();
84
68
  };
85
- }, [current, innerItems]);
69
+ }, [current, items]);
86
70
  return /*#__PURE__*/React.createElement(Root, _extends({
87
71
  size: size,
88
72
  view: view,
89
73
  ref: outerRef,
90
74
  className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, orientation === 'vertical'), classes.simple, isSimple), classes.hasIndicator, hasIndicator))
91
- }, rest), innerItems.map(function (item, index) {
92
- var isActive = item.status === 'active';
75
+ }, rest), items.map(function (item, index) {
76
+ var itemStatus = getItemStatus({
77
+ isUncontrolled: isUncontrolled,
78
+ current: current,
79
+ status: status,
80
+ index: index,
81
+ item: item
82
+ });
83
+ var isActive = itemStatus === 'active';
93
84
  var itemContent = hasContent === 'active' && !isActive || hasContent === 'none' ? '' : item.content;
94
85
  var itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';
95
86
  var onClick = onChange ? function () {
@@ -101,14 +92,14 @@ export var stepsRoot = function stepsRoot(Root) {
101
92
  title: item.title,
102
93
  content: itemContent,
103
94
  indicator: item.indicator,
104
- status: item.status,
95
+ status: itemStatus,
105
96
  size: size,
106
97
  orientation: orientation,
107
98
  contentAlign: itemContentAlign,
108
99
  hasLine: hasLine,
109
100
  hasLoader: hasLoader && isActive,
110
101
  onClick: onClick,
111
- items: innerItems
102
+ items: items
112
103
  });
113
104
  }));
114
105
  });
@@ -1,3 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { classes, tokens } from './Steps.tokens';
3
- export var base = /*#__PURE__*/css("display:flex;flex-direction:row;&.", classes.simple, "{align-items:center;&:not(&.", classes.verticalOrientation, "){&.", classes.hasIndicator, "{height:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){height:var(", tokens.activeBulletSize, ");}}&.", classes.verticalOrientation, "{&.", classes.hasIndicator, "{width:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){width:var(", tokens.activeBulletSize, ");}}}&.", classes.verticalOrientation, "{display:flex;flex-direction:column;justify-content:center;height:100%;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3RlcHMvU3RlcHMuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25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QnVsbGV0U2l6ZX0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgIH1cbmA7XG4iXX0= */"));
3
+ export var base = /*#__PURE__*/css("display:flex;flex-direction:row;&.", classes.simple, "{align-items:center;&:not(&.", classes.verticalOrientation, "){&.", classes.hasIndicator, "{height:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){height:var(", tokens.activeBulletSize, ");}}&.", classes.verticalOrientation, "{&.", classes.hasIndicator, "{width:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){width:var(", tokens.activeBulletSize, ");}}}&.", classes.verticalOrientation, "{display:flex;flex-direction:column;justify-content:center;height:100%;&.", classes.simple, "{display:inline-flex;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3RlcHMvU3RlcHMuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N0ZXBzL1N0ZXBzLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi9TdGVwcy50b2tlbnMnO1xuXG5leHBvcnQ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