@salutejs/plasma-new-hope 0.185.0-canary.1500.11703995241.0 → 0.185.0-canary.1511.11704579010.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. package/cjs/components/Badge/Badge.css +3 -3
  2. package/cjs/components/Badge/Badge.js +3 -10
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.styles.js +5 -5
  5. package/cjs/components/Badge/Badge.styles.js.map +1 -1
  6. package/cjs/components/Badge/Badge.styles_8pi3br.css +4 -0
  7. package/cjs/components/Badge/Badge.tokens.js +1 -2
  8. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  9. package/cjs/components/NumberInput/NumberInput.css +52 -0
  10. package/cjs/components/NumberInput/NumberInput.js +205 -0
  11. package/cjs/components/NumberInput/NumberInput.js.map +1 -0
  12. package/cjs/components/NumberInput/NumberInput.styles.js +9 -0
  13. package/cjs/components/NumberInput/NumberInput.styles.js.map +1 -0
  14. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  15. package/cjs/components/NumberInput/NumberInput.tokens.js +102 -0
  16. package/cjs/components/NumberInput/NumberInput.tokens.js.map +1 -0
  17. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +19 -0
  18. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  19. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +22 -0
  20. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  21. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  22. package/cjs/components/NumberInput/ui/Input/Input.css +15 -0
  23. package/cjs/components/NumberInput/ui/Input/Input.js +204 -0
  24. package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -0
  25. package/cjs/components/NumberInput/ui/Input/Input.styles.js +96 -0
  26. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  27. package/cjs/components/NumberInput/ui/Input/Input.styles_fhgb95.css +8 -0
  28. package/cjs/components/NumberInput/utils/index.js +12 -0
  29. package/cjs/components/NumberInput/utils/index.js.map +1 -0
  30. package/cjs/components/NumberInput/variations/_background-type/base.js +9 -0
  31. package/cjs/components/NumberInput/variations/_background-type/base.js.map +1 -0
  32. package/cjs/components/NumberInput/variations/_background-type/base_dx9knv.css +1 -0
  33. package/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  34. package/cjs/components/NumberInput/variations/_disabled/base.js.map +1 -0
  35. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  36. package/cjs/components/NumberInput/variations/_segmentation/base.js +9 -0
  37. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  38. package/cjs/components/NumberInput/variations/_segmentation/base_14s5rot.css +1 -0
  39. package/cjs/components/NumberInput/variations/_shape/base.js +9 -0
  40. package/cjs/components/NumberInput/variations/_shape/base.js.map +1 -0
  41. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  42. package/cjs/components/NumberInput/variations/_size/base.js +9 -0
  43. package/cjs/components/NumberInput/variations/_size/base.js.map +1 -0
  44. package/cjs/components/NumberInput/variations/_size/base_yqdmk4.css +1 -0
  45. package/cjs/components/NumberInput/variations/_view/base.js +9 -0
  46. package/cjs/components/NumberInput/variations/_view/base.js.map +1 -0
  47. package/cjs/components/NumberInput/variations/_view/base_tnfbb5.css +1 -0
  48. package/cjs/components/Tabs/tokens.js +1 -2
  49. package/cjs/components/Tabs/tokens.js.map +1 -1
  50. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
  51. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -9
  52. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  53. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  54. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  55. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +5 -0
  56. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
  57. package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base_j8lg9u.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base_4zingj.css} +1 -1
  58. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
  59. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -9
  60. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  61. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  62. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  63. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +5 -0
  64. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
  65. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_12fk3xi.css → base_fueiq8.css} +1 -1
  66. package/cjs/index.css +38 -15
  67. package/cjs/index.js +6 -0
  68. package/cjs/index.js.map +1 -1
  69. package/emotion/cjs/components/Badge/Badge.js +3 -15
  70. package/emotion/cjs/components/Badge/Badge.styles.js +13 -4
  71. package/emotion/cjs/components/Badge/Badge.tokens.js +1 -2
  72. package/emotion/cjs/components/NumberInput/NumberInput.js +214 -0
  73. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +17 -0
  74. package/emotion/cjs/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  75. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +99 -0
  76. package/emotion/cjs/components/NumberInput/NumberInput.types.js +5 -0
  77. package/emotion/cjs/components/NumberInput/index.js +31 -0
  78. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  79. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +16 -0
  80. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  81. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +212 -0
  82. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +81 -0
  83. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  84. package/emotion/cjs/components/NumberInput/ui/index.js +19 -0
  85. package/emotion/cjs/components/NumberInput/utils/index.js +9 -0
  86. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  87. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  88. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  89. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  90. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  91. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  92. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  93. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  94. package/emotion/cjs/components/NumberInput/variations/_size/base.js +13 -0
  95. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  96. package/emotion/cjs/components/NumberInput/variations/_view/base.js +13 -0
  97. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  98. package/emotion/cjs/components/Tabs/tokens.js +1 -2
  99. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  100. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +12 -12
  101. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -14
  102. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +12 -12
  103. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  104. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  105. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +46 -0
  106. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  107. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  108. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  109. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  110. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  111. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +46 -0
  112. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  113. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  114. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  115. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  116. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  117. package/emotion/cjs/index.js +11 -0
  118. package/emotion/es/components/Badge/Badge.js +3 -16
  119. package/emotion/es/components/Badge/Badge.styles.js +14 -5
  120. package/emotion/es/components/Badge/Badge.tokens.js +1 -2
  121. package/emotion/es/components/NumberInput/NumberInput.js +206 -0
  122. package/emotion/es/components/NumberInput/NumberInput.styles.js +11 -0
  123. package/emotion/es/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  124. package/emotion/es/components/NumberInput/NumberInput.tokens.js +93 -0
  125. package/emotion/es/components/NumberInput/NumberInput.types.js +1 -0
  126. package/emotion/es/components/NumberInput/index.js +2 -0
  127. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  128. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +9 -0
  129. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  130. package/emotion/es/components/NumberInput/ui/Input/Input.js +203 -0
  131. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +74 -0
  132. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  133. package/emotion/es/components/NumberInput/ui/index.js +2 -0
  134. package/emotion/es/components/NumberInput/utils/index.js +3 -0
  135. package/emotion/es/components/NumberInput/variations/_background-type/base.js +4 -0
  136. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  137. package/emotion/es/components/NumberInput/variations/_disabled/base.js +3 -0
  138. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  139. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  140. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  141. package/emotion/es/components/NumberInput/variations/_shape/base.js +5 -0
  142. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  143. package/emotion/es/components/NumberInput/variations/_size/base.js +7 -0
  144. package/emotion/es/components/NumberInput/variations/_size/tokens.json +22 -0
  145. package/emotion/es/components/NumberInput/variations/_view/base.js +7 -0
  146. package/emotion/es/components/NumberInput/variations/_view/tokens.json +14 -0
  147. package/emotion/es/components/Tabs/tokens.js +1 -2
  148. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -15
  149. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +13 -13
  150. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -15
  151. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +13 -13
  152. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  153. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  154. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +40 -0
  155. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  156. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  157. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  158. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  159. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  160. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +40 -0
  161. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  162. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  163. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  164. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  165. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  166. package/emotion/es/index.js +2 -1
  167. package/es/components/Badge/Badge.css +3 -3
  168. package/es/components/Badge/Badge.js +4 -11
  169. package/es/components/Badge/Badge.js.map +1 -1
  170. package/es/components/Badge/Badge.styles.js +5 -5
  171. package/es/components/Badge/Badge.styles.js.map +1 -1
  172. package/es/components/Badge/Badge.styles_8pi3br.css +4 -0
  173. package/es/components/Badge/Badge.tokens.js +1 -2
  174. package/es/components/Badge/Badge.tokens.js.map +1 -1
  175. package/es/components/NumberInput/NumberInput.css +52 -0
  176. package/es/components/NumberInput/NumberInput.js +200 -0
  177. package/es/components/NumberInput/NumberInput.js.map +1 -0
  178. package/es/components/NumberInput/NumberInput.styles.js +5 -0
  179. package/es/components/NumberInput/NumberInput.styles.js.map +1 -0
  180. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  181. package/es/components/NumberInput/NumberInput.tokens.js +96 -0
  182. package/es/components/NumberInput/NumberInput.tokens.js.map +1 -0
  183. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +15 -0
  184. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  185. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +18 -0
  186. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  187. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  188. package/es/components/NumberInput/ui/Input/Input.css +15 -0
  189. package/es/components/NumberInput/ui/Input/Input.js +200 -0
  190. package/es/components/NumberInput/ui/Input/Input.js.map +1 -0
  191. package/es/components/NumberInput/ui/Input/Input.styles.js +85 -0
  192. package/es/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  193. package/es/components/NumberInput/ui/Input/Input.styles_fhgb95.css +8 -0
  194. package/es/components/NumberInput/utils/index.js +6 -0
  195. package/es/components/NumberInput/utils/index.js.map +1 -0
  196. package/es/components/NumberInput/variations/_background-type/base.js +5 -0
  197. package/es/components/NumberInput/variations/_background-type/base.js.map +1 -0
  198. package/es/components/NumberInput/variations/_background-type/base_dx9knv.css +1 -0
  199. package/es/components/NumberInput/variations/_disabled/base.js +5 -0
  200. package/es/components/NumberInput/variations/_disabled/base.js.map +1 -0
  201. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  202. package/es/components/NumberInput/variations/_segmentation/base.js +5 -0
  203. package/es/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  204. package/es/components/NumberInput/variations/_segmentation/base_14s5rot.css +1 -0
  205. package/es/components/NumberInput/variations/_shape/base.js +5 -0
  206. package/es/components/NumberInput/variations/_shape/base.js.map +1 -0
  207. package/es/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  208. package/es/components/NumberInput/variations/_size/base.js +5 -0
  209. package/es/components/NumberInput/variations/_size/base.js.map +1 -0
  210. package/es/components/NumberInput/variations/_size/base_yqdmk4.css +1 -0
  211. package/es/components/NumberInput/variations/_view/base.js +5 -0
  212. package/es/components/NumberInput/variations/_view/base.js.map +1 -0
  213. package/es/components/NumberInput/variations/_view/base_tnfbb5.css +1 -0
  214. package/es/components/Tabs/tokens.js +1 -2
  215. package/es/components/Tabs/tokens.js.map +1 -1
  216. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
  217. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +4 -10
  218. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  219. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  220. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  221. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +5 -0
  222. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
  223. package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base_j8lg9u.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base_4zingj.css} +1 -1
  224. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
  225. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +4 -10
  226. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  227. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  228. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  229. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +5 -0
  230. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
  231. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_12fk3xi.css → base_fueiq8.css} +1 -1
  232. package/es/index.css +38 -15
  233. package/es/index.js +2 -0
  234. package/es/index.js.map +1 -1
  235. package/package.json +2 -2
  236. package/styled-components/cjs/components/Badge/Badge.js +3 -15
  237. package/styled-components/cjs/components/Badge/Badge.styles.js +2 -2
  238. package/styled-components/cjs/components/Badge/Badge.tokens.js +1 -2
  239. package/styled-components/cjs/components/NumberInput/NumberInput.js +214 -0
  240. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +8 -0
  241. package/styled-components/cjs/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  242. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +99 -0
  243. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +5 -0
  244. package/styled-components/cjs/components/NumberInput/index.js +31 -0
  245. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  246. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +15 -0
  247. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  248. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +212 -0
  249. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +48 -0
  250. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  251. package/styled-components/cjs/components/NumberInput/ui/index.js +19 -0
  252. package/styled-components/cjs/components/NumberInput/utils/index.js +9 -0
  253. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  254. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  255. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  256. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  257. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  258. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  259. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  260. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  261. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +13 -0
  262. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  263. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +13 -0
  264. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  265. package/styled-components/cjs/components/Tabs/tokens.js +1 -2
  266. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  267. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +8 -8
  268. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -14
  269. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +9 -9
  270. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  271. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  272. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +46 -0
  273. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  274. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  275. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  276. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  277. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  278. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +46 -0
  279. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  280. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  281. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  282. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  283. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  284. package/styled-components/cjs/index.js +11 -0
  285. package/styled-components/es/components/Badge/Badge.js +3 -16
  286. package/styled-components/es/components/Badge/Badge.styles.js +3 -3
  287. package/styled-components/es/components/Badge/Badge.tokens.js +1 -2
  288. package/styled-components/es/components/NumberInput/NumberInput.js +206 -0
  289. package/styled-components/es/components/NumberInput/NumberInput.styles.js +2 -0
  290. package/styled-components/es/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  291. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +93 -0
  292. package/styled-components/es/components/NumberInput/NumberInput.types.js +1 -0
  293. package/styled-components/es/components/NumberInput/index.js +2 -0
  294. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  295. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +8 -0
  296. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  297. package/styled-components/es/components/NumberInput/ui/Input/Input.js +203 -0
  298. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +41 -0
  299. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  300. package/styled-components/es/components/NumberInput/ui/index.js +2 -0
  301. package/styled-components/es/components/NumberInput/utils/index.js +3 -0
  302. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +4 -0
  303. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  304. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +3 -0
  305. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  306. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  307. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  308. package/styled-components/es/components/NumberInput/variations/_shape/base.js +5 -0
  309. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  310. package/styled-components/es/components/NumberInput/variations/_size/base.js +7 -0
  311. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +22 -0
  312. package/styled-components/es/components/NumberInput/variations/_view/base.js +7 -0
  313. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +14 -0
  314. package/styled-components/es/components/Tabs/tokens.js +1 -2
  315. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -15
  316. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +9 -9
  317. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -15
  318. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +10 -10
  319. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  320. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  321. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +40 -0
  322. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  323. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  324. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  325. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  326. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  327. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +40 -0
  328. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  329. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  330. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  331. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  332. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  333. package/styled-components/es/index.js +2 -1
  334. package/types/components/Badge/Badge.d.ts.map +1 -1
  335. package/types/components/Badge/Badge.styles.d.ts +1 -1
  336. package/types/components/Badge/Badge.styles.d.ts.map +1 -1
  337. package/types/components/Badge/Badge.tokens.d.ts +0 -1
  338. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  339. package/types/components/Badge/Badge.types.d.ts +0 -5
  340. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  341. package/types/components/NumberInput/NumberInput.d.ts +38 -0
  342. package/types/components/NumberInput/NumberInput.d.ts.map +1 -0
  343. package/types/components/NumberInput/NumberInput.styles.d.ts +2 -0
  344. package/types/components/NumberInput/NumberInput.styles.d.ts.map +1 -0
  345. package/types/components/NumberInput/NumberInput.tokens.d.ts +88 -0
  346. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +1 -0
  347. package/types/components/NumberInput/NumberInput.types.d.ts +112 -0
  348. package/types/components/NumberInput/NumberInput.types.d.ts.map +1 -0
  349. package/types/components/NumberInput/index.d.ts +3 -0
  350. package/types/components/NumberInput/index.d.ts.map +1 -0
  351. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +4 -0
  352. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +1 -0
  353. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +45 -0
  354. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +1 -0
  355. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +7 -0
  356. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +1 -0
  357. package/types/components/NumberInput/ui/Input/Input.d.ts +19 -0
  358. package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -0
  359. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +30 -0
  360. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +1 -0
  361. package/types/components/NumberInput/ui/Input/Input.types.d.ts +19 -0
  362. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +1 -0
  363. package/types/components/NumberInput/ui/index.d.ts +3 -0
  364. package/types/components/NumberInput/ui/index.d.ts.map +1 -0
  365. package/types/components/NumberInput/utils/index.d.ts +4 -0
  366. package/types/components/NumberInput/utils/index.d.ts.map +1 -0
  367. package/types/components/NumberInput/variations/_background-type/base.d.ts +2 -0
  368. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +1 -0
  369. package/types/components/NumberInput/variations/_disabled/base.d.ts +2 -0
  370. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +1 -0
  371. package/types/components/NumberInput/variations/_segmentation/base.d.ts +2 -0
  372. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +1 -0
  373. package/types/components/NumberInput/variations/_shape/base.d.ts +2 -0
  374. package/types/components/NumberInput/variations/_shape/base.d.ts.map +1 -0
  375. package/types/components/NumberInput/variations/_size/base.d.ts +2 -0
  376. package/types/components/NumberInput/variations/_size/base.d.ts.map +1 -0
  377. package/types/components/NumberInput/variations/_view/base.d.ts +2 -0
  378. package/types/components/NumberInput/variations/_view/base.d.ts.map +1 -0
  379. package/types/components/Tabs/TabItem.types.d.ts +0 -5
  380. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  381. package/types/components/Tabs/tokens.d.ts +0 -1
  382. package/types/components/Tabs/tokens.d.ts.map +1 -1
  383. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  384. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts +1 -1
  385. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  386. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  387. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts +1 -1
  388. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  389. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +0 -3
  390. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  391. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +0 -6
  392. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  393. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +39 -0
  394. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  395. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +82 -0
  396. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +1 -0
  397. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +0 -6
  398. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  399. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  400. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  401. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  402. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  403. package/types/examples/plasma_web/components/Badge/Badge.d.ts +0 -3
  404. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  405. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +39 -0
  406. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  407. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +82 -0
  408. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +1 -0
  409. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +0 -6
  410. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  411. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  412. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  413. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  414. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  415. package/types/index.d.ts +1 -0
  416. package/types/index.d.ts.map +1 -1
  417. package/cjs/components/Badge/Badge.styles_hhbwyi.css +0 -4
  418. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +0 -5
  419. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +0 -5
  420. package/es/components/Badge/Badge.styles_hhbwyi.css +0 -4
  421. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +0 -5
  422. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +0 -5
@@ -0,0 +1,203 @@
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
+ };
105
+ var handleManualInputChange = function handleManualInputChange(event) {
106
+ var _textWrapperRef$curre, _wrapperRef$current;
107
+ if (!isManualInput || disabled) {
108
+ return;
109
+ }
110
+ setIsAnimationRun(true);
111
+ var newValue = event.target.value;
112
+ if (!newValue) {
113
+ setInnerValue('');
114
+ if (onChange) {
115
+ onChange(event, '');
116
+ }
117
+ return;
118
+ }
119
+ var cleanValue = newValue.replace(excludingNumberSchema, '');
120
+ if (cleanValue.endsWith('.') || cleanValue === '-') {
121
+ setInnerValue(cleanValue);
122
+ if (onChange) {
123
+ onChange(event, cleanValue);
124
+ }
125
+ return;
126
+ }
127
+ var isValid = numberSchema.test(cleanValue);
128
+ if (!isValid) {
129
+ setValues(event, lastValidValue);
130
+ return;
131
+ }
132
+ 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)) {
133
+ wrapperRef.current.scrollLeft = textWrapperRef.current.offsetWidth - textWrapperRef.current.offsetLeft || 0;
134
+ }
135
+ setValues(event, Number(cleanValue));
136
+ };
137
+ var handleClickInputWrapper = function handleClickInputWrapper() {
138
+ if (!isManualInput || !inputRef.current) {
139
+ return;
140
+ }
141
+ if (!isInputFocused) {
142
+ inputRef.current.select();
143
+ }
144
+ setIsInputFocused(true);
145
+ };
146
+ var handleBlur = function handleBlur(event) {
147
+ validateValue(value);
148
+ setIsInputFocused(false);
149
+ if (onBlur) {
150
+ onBlur(event);
151
+ }
152
+ };
153
+ var handleKeyDown = function handleKeyDown(event) {
154
+ if (!isManualInput || disabled) {
155
+ return;
156
+ }
157
+ if (event.keyCode === keyCodes.Enter) {
158
+ event.preventDefault();
159
+ validateValue(value);
160
+ if (onKeyDown) {
161
+ onKeyDown(event);
162
+ }
163
+ }
164
+ };
165
+ var handleEndErrorAnimation = function handleEndErrorAnimation(correctValue) {
166
+ setIsAnimationRun(false);
167
+ setIsInputFocused(false);
168
+ setErrorClass(undefined);
169
+ setValues(null, correctValue);
170
+ };
171
+ useEffect(function () {
172
+ setDynamicWidth(getInputWidth());
173
+ }, []);
174
+ useDidMountEffect(function () {
175
+ setDynamicWidth(getInputWidth(false));
176
+ }, [value]);
177
+ return /*#__PURE__*/React.createElement(InputWrapper, {
178
+ ref: wrapperRef,
179
+ className: cx(solidViewClass, errorClass, manualInputClass),
180
+ isManualInput: Boolean(isManualInput),
181
+ onClick: handleClickInputWrapper
182
+ }, /*#__PURE__*/React.createElement(TextWrapper, {
183
+ ref: textWrapperRef
184
+ }, !isLoading && textBefore && /*#__PURE__*/React.createElement(AdditionalText, {
185
+ className: classes.textBefore
186
+ }, 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({
187
+ ref: inputForkRef,
188
+ dynamicWidth: dynamicWidth,
189
+ value: value,
190
+ isManualInput: Boolean(isManualInput),
191
+ tabIndex: disabled || !isManualInput ? -1 : 0,
192
+ onChange: handleManualInputChange,
193
+ onBlur: handleBlur,
194
+ onKeyDown: handleKeyDown,
195
+ onAnimationEnd: function onAnimationEnd() {
196
+ return handleEndErrorAnimation(Number(errorValue));
197
+ }
198
+ }, rest)), /*#__PURE__*/React.createElement(InputWidthHelper, {
199
+ ref: inputHelperRef
200
+ }, value)), !isLoading && textAfter && /*#__PURE__*/React.createElement(AdditionalText, {
201
+ className: classes.textAfter
202
+ }, textAfter)));
203
+ });
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFrRSIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL051bWJlcklucHV0L3VpL0lucHV0L0lucHV0LnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgY29tcG9uZW50LCBtZXJnZUNvbmZpZyB9IGZyb20gJy4uLy4uLy4uLy4uL2VuZ2luZXMnO1xuaW1wb3J0IHsgc3Bpbm5lckNvbmZpZyB9IGZyb20gJy4uLy4uLy4uL1NwaW5uZXInO1xuXG5jb25zdCBtZXJnZWRDb25maWcgPSBtZXJnZUNvbmZpZyhzcGlubmVyQ29uZmlnKTtcbmNvbnN0IFNwaW5uZXIgPSBjb21wb25lbnQobWVyZ2VkQ29uZmlnKTtcblxuZXhwb3J0IGNvbnN0IElucHV0V3JhcHBlciA9IHN0eWxlZC5kaXY8eyBpc01hbnVhbElucHV0OiBib29sZWFuIH0+YFxuICAgIG92ZXJmbG93LXg6IGF1dG87XG4gICAgb3ZlcmZsb3cteTogaGlkZGVuO1xuICAgIGZsZXg6IDE7XG4gICAgY3Vyc29yOiAkeyh7IGlzTWFudWFsSW5wdXQgfSkgPT4gKGlzTWFudWFsSW5wdXQgPy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WR0aCB9KSA9PiBkeW5hbWljV2lkdGh9O1xuICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgY3Vyc29yOiAkeyh7IGlzTWFudWFsSW5wdXQgfSkgPT4gKGlzTWFudWFsSW5wdXQgPyAndGV4dCcgOiAnZGVmYXVsdCcpfTtcbiAgICBwb2ludGVyLWV2ZW50czogJHsoeyBpc01hbnVhbElucHV0IH0pID0+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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCcUMiL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lZC5zcGFuYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAtOTk5O1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */",
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdDeUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHNwaW5uZXJDb25maWcgfSBmcm9tICcuLi8uLi8uLi9TcGlubmVyJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoc3Bpbm5lckNvbmZpZyk7XG5jb25zdCBTcGlubmVyID0gY29tcG9uZW50KG1lcmdlZENvbmZpZyk7XG5cbmV4cG9ydCB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iB9PmBcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgYm9yZGVyOiAwO1xuICAgIHBhZGRpbmc6IDA7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgb3V0bGluZTogbm9uZTtcbiAgICB3aWR0aDogJHsoeyBkeW5hbWljV2lkdGggfSkgPT4gZHluYW1pY1dpZHRofTtcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGN1cnNvcjogJHsoeyBpc01hbnVhbElucHV0IH0pID0+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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5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AuMXM7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRXaWR0aEhlbHBlciA9IHN0eWxlZC5zcGFuYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAtOTk5O1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */");
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9DNEMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHNwaW5uZXJDb25maWcgfSBmcm9tICcuLi8uLi8uLi9TcGlubmVyJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoc3Bpbm5lckNvbmZpZyk7XG5jb25zdCBTcGlubmVyID0gY29tcG9uZW50KG1lcm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gaXNNYW51YWxJbnB1dDogYm9vbGVhbiB9PmBcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgYm9yZGVyOiAwO1xuICAgIHBhZGRpbmc6IDA7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgb3V0bGluZTogbm9uZTtcbiAgICB3aWR0aDogJHsoeyBkeW5hbWljV2lkdGggfSkgPT4gZHluYW1pY1dpZHRofTtcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGN1cnNvcjogJHsoeyBpc01hbnVhbElucHV0IH0pID0+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,eyJ2ZXJzaW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sgaXNNYW51YWxJbnB1dCB9KSA9PiAoaXNNYW51YWxJbnB1dCA/ICdpbml0aWFsJyA6ICdub25lJyl9O1xuICAgIHRyYW5zaXRpb246IHdpZHRoIDAuMXM7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRXaWR0aEhlbHBlciA9IHN0eWxlZC5zcGFuYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAtOTk5O1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */",
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBDbUYiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWV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TtcbiAgICB6LWluZGV4OiAtOTk5O1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBvcGFjaXR5OiAwO1xuICAgIGhlaWdodDogMDtcbiAgICB3aGl0ZS1zcGFjZTogcHJlO1xuYDtcbiJdfQ== */"));
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvSW5wdXQvSW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdEMkMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9OdW1iZXJJbnB1dC91aS9JbnB1dC9JbnB1dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHNwaW5uZXJDb25maWcgfSBmcm9tICcuLi8uLi8uLi9TcGlubmVyJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoc3Bpbm5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SBzdHlsZWQuaW5wdXQ8eyBkeW5hbWljV2lkdGg6IHN0cmluZzsgaXNNYW51YWxJbnB1dDogYm9vbGVhbiB9PmBcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgYm9yZGVyOiAwO1xuICAgIHBhZGRpbmc6IDA7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgb3V0bGluZTogbm9uZTtcbiAgICB3aWR0aDogJHsoeyBkeW5hbWljV2lkdGggfSkgPT4gZHluYW1pY1dpZHRofTtcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIGN1cnNvcjogJHsoeyBpc01hbnVhbElucHV0IH0pID0+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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fc2VnbWVudGF0aW9uL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fc2VnbWVudGF0aW9uL2Jhc2UudHM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AgICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kQ29sb3JTb2xpZEZvY3VzfSk7XG4gICAgICAgICAgICAgICAgYm94LXNoYWRvdzogaW5zZXQgMCAwIDAgdmFyKCR7dG9rZW5zLmlucHV0V3JhcHBlckJvcmRlcldpZHRofSkgdmFyKCR7dG9rZW5zLmJvcmRlckNvbG9yU29saWRGb2N1c30pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJHtTdHlsZWRJY29uQnV0dG9ufSB7XG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5hY3Rpb25CdXR0b25EZWNyZW1lbnR9IHtcbiAgICAgICAgICAgICAgICBib3gtc2hhZG93OiB2YXIoJHtwcml2YXRlVG9rZW5zLmJvdHRvbUJveFNoYWRvd30pLCB2YXIoJHtwcml2YXRlVG9rZW5zLnRvcEJveFNoYWRvd30pLCB2YXIoJHtwcml2YXRlVG9rZW5zLmxlZnRCb3hTaGFkb3d9KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi4ke2NsYXNzZXMuYWN0aW9uQnV0dG9uSW5jcmVtZW50fSB7XG4gICAgICAgICAgICAgICAgYm94LXNoYWRvdzogdmFyKCR7cHJpdmF0ZVRva2Vucy5ib3R0b21Cb3hTaGFkb3d9KSwgdmFyKCR7cHJpdmF0ZVRva2Vucy50b3BCb3hTaGFkb3d9KSwgdmFyKCR7cHJpdmF0ZVRva2Vucy5yaWdodEJveFNoYWRvd30pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICA6aG92ZXIsXG4gICAgICAgICAgICA6YWN0aXZlIHsgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7dG9rZW5zLmljb25CdXR0b25CYWNrZ3JvdW5kQ29sb3J9KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgOmhvdmVyIHsgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pY29uQnV0dG9uQ29sb3JTb2xpZEhvdmVyfSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIDphY3RpdmUgeyAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmljb25CdXR0b25Db2xvclNvbGlkQWN0aXZlfSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYuJHtjbGFzc2VzLmFjdGlvbkJ1dHRvbkRlY3JlbWVudERpc2FibGVkfSwgJi4ke2NsYXNzZXMuYWN0aW9uQnV0dG9uSW5jcmVtZW50RGlzYWJsZWR9IHtcbiAgICAgICAgICAgICAgICBvcGFjaXR5OiAxO1xuXG4gICAgICAgICAgICAgICAgc3ZnIHtcbiAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogdmFyKCR7dG9rZW5zLmFjdGlvbkJ1dHRvbkRpc2FibGVkT3BhY2l0eX0pO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIDpob3ZlcixcbiAgICAgICAgICAgICAgICA6YWN0aXZlIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pY29uQnV0dG9uQ29sb3J9KTtcblxuICAgICAgICAgICAgICAgICAgICBzdmcge1xuICAgICAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogdmFyKCR7dG9rZW5zLmFjdGlvbkJ1dHRvbkRpc2FibGVkT3BhY2l0eX0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMuY2xlYXJWaWV3fSB7XG4gICAgICAgICAgICAke1N0eWxlZEljb25CdXR0b259IHtcbiAgICAgICAgICAgICAgICAmLiR7Y2xhc3Nlcy5hY3Rpb25CdXR0b25EZWNyZW1lbnREaXNhYmxlZH0sICYuJHtjbGFzc2VzLmFjdGlvbkJ1dHRvbkluY3JlbWVudERpc2FibGVkfSB7XG4gICAgICAgICAgICAgICAgICAgIDpob3ZlcixcbiAgICAgICAgICAgICAgICAgICAgOmFjdGl2ZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICR7U3R5bGVkU3Bpbm5lcn0ge1xuICAgICAgICAgICAgJHtzcGlubmVyVG9rZW5zLmNvbG9yfTogdmFyKCR7dG9rZW5zLmxvYWRlclNwaW5uZXJDb2xvclNvbGlkfSk7XG4gICAgICAgIH1cbiAgICBcbiAgICAgICAgJHtJbnB1dH0ge1xuICAgICAgICAgICAgY2FyZXQtY29sb3I6IHZhcigke3Rva2Vucy5jYXJldENvbG9yU29saWR9LCB2YXIoJHt0b2tlbnMuY2FyZXRDb2xvcn0pKTtcblxuICAgICAgICAgICAgJjpub3QoLiR7Y2xhc3Nlcy5lcnJvckFuaW1hdGlvbn0pe1xuICAgICAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuY29sb3JTb2xpZH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgXG4gICAgICAgICR7QWRkaXRpb25hbFRleHR9IHtcbiAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuYWRkaXRpb25hbFRleHRDb2xvclNvbGlkfSk7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWV1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL051bWJlcklucHV0L3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgcHJpdmF0ZVRva2VucywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vTnVtYmVySW5wdXQudG9rZW5zJztcbmltcG9ydCB7IGljb25CdXR0b25Ub2tlbnMgfSBmcm9tICcuLi8uLi8uLi9JY29uQnV0dG9uJztcbmltcG9ydCB7IFN0eWxlZEljb25CdXR0b24gfSBmcm9tICcuLi8uLi91aS9BY3Rpb25CdXR0b24vQWN0aW9uQnV0dG9uLnN0eWxlcyc7XG5pbXBvcnQge1xuICAgIEFkZGl0aW9uYWxUZXh0LFxuICAgIER5bmFtaWNJbnB1dCxcbiAgICBJbnB1dCxcbiAgICBJbnB1dFdyYXBwZXIsXG4gICAgU3R5bGVkU3Bpbm5lcixcbiAgICBUZXh0V3JhcHBlcixcbn0gZnJvbSAnLi4vLi4vdWkvSW5wdXQvSW5wdXQuc3R5bGVzJztcbmltcG9ydCB7IHNwaW5uZXJUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi9TcGlubmVyJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgd2lkdGg6IHZhcigke3ByaXZhdGVUb2tlbnMuaW5wdXRXaWR0aH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VmdH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJHtTdHlsZWRTcGlubmVyfSB7XG4gICAgICAgICR7c3Bpbm5lclRva2Vucy5zaXplfTogdmFyKCR7dG9rZW5zLmxvYWRlclNwaW5uZXJTaXplfSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -0,0 +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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyY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5cbiAgICAmJiAke0lucHV0V3JhcHBlcn17XG4gICAgICAgICYuJHtjbGFzc2VzLm1hbnVhbElucHV0fTpmb2N1cy13aXRoaW4ge1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7dG9rZW5zLmJhY2tncm91bmRDb2xvckZvY3VzfSk7XG4gICAgICAgICAgICBib3gtc2hhZG93OiBpbnNldCAwIDAgMCB2YXIoJHt0b2tlbnMuaW5wdXRXcmFwcGVyQm9yZGVyV2lkdGh9KSB2YXIoJHt0b2tlbnMuYm9yZGVyQ29sb3JGb2N1c30pO1xuICAgICAgICB9XG5cbiAgICAgICAgJi4ke2NsYXNzZXMubWFudWFsSW5wdXR9LiR7Y2xhc3Nlcy5lcnJvckFuaW1hdGlvbn0ge1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7dG9rZW5zLmJhY2tncm91bmRFcnJvckNvbG9yfSk7XG4gICAgICAgICAgICBib3gtc2hhZG93OiBpbnNldCAwIDAgMCB2YXIoJHt0b2tlbnMuaW5wdXRXcmFwcGVyQm9yZGVyV2lkdGh9KSB2YXIoJHt0b2tlbnMuYm9yZGVyRXJyb3JDb2xvcn0pO1xuXG4gICAgICAgICAgICBhbmltYXRpb246IHNoYWtpbmdFcnJvciAwLjNzIGZvcndhcmRzO1xuXG4gICAgICAgICAgICAke0lucHV0fSB7XG4gICAgICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5lcnJvckNvbG9yfSk7XG4gICAgICAgICAgICAgICAgYW5pbWF0aW9uOiBmYWRlRXJyb3IgMC4zcyBmb3J3YXJkcztcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJjpmb2N1cy13aXRoaW4ge1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kRXJyb3JDb2xvcn0pO1xuICAgICAgICAgICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDAgMCAwIHZhcigke3Rva2Vucy5pbnB1dFdyYXBwZXJCb3JkZXJXaWR0aH0pIHZhcigke3Rva2Vucy5ib3JkZXJFcnJvckNvbG9yfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBAa2V5ZnJhbWVzIHNoYWtpbmdFcnJvciB7XG4gICAgICAgICAgICAxNCUge1xuICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtMC4xMjVyZW0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgMjglIHtcbiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoMC4xMjVyZW0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgNDIlIHtcbiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTAuMTI1cmVtKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDU3JSB7XG4gICAgICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDAuMTI1cmVtKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDcxJSB7XG4gICAgICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0wLjEyNXJlbSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICA4NSUge1xuICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgwLjEyNXJlbSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAxMDAlIHtcbiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTAuMTI1cmVtKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIEBrZXlmcmFtZXMgZmFkZUVycm9yIHtcbiAgICAgICAgICAgIDUwJSB7XG4gICAgICAgICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDEwMCUge1xuICAgICAgICAgICAgICAgIG9wYWNpdHk6IDA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAke1N0eWxlZFNwaW5uZXJ9IHtcbiAgICAgICAgJHtzcGlubmVyVG9rZW5zLmNvbG9yfTogdmFyKCR7dG9rZW5zLmxvYWRlclNwaW5uZXJDb2xvcn0pO1xuICAgIH1cblxuICAgICR7SW5wdXR9IHtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5jb2xvcn0pO1xuICAgICAgICBjYXJldC1jb2xvcjogdmFyKCR7dG9rZW5zLmNhcmV0Q29sb3J9KTtcbiAgICB9XG5cbiAgICAke0FkZGl0aW9uYWxUZXh0fSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuYWRkaXRpb25hbFRleHRDb2xvcn0pO1xuICAgIH1cbmA7XG4iXX0= */"));
@@ -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
+ ]
@@ -14,8 +14,7 @@ export var classes = {
14
14
  tabsHasTopArrow: 'tabs-has-top-arrow',
15
15
  tabsHasBottomArrow: 'tabs-has-bottom-arrow',
16
16
  tabsClipScroll: 'tabs-clip-scroll',
17
- tabsClipShowAll: 'tabs-clip-show-all',
18
- tabsTruncate: 'tabs-truncate'
17
+ tabsClipShowAll: 'tabs-clip-show-all'
19
18
  };
20
19
  export var tokens = {
21
20
  disabledOpacity: '--plasma-tabs-disabled-opacity',
@@ -1,11 +1,5 @@
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
- var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
1
+ var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
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
- 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
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
- 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); }
9
3
  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; }
10
4
  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; }
11
5
  import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';
@@ -39,13 +33,11 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
39
33
  tabIndex = props.tabIndex,
40
34
  className = props.className,
41
35
  onClick = props.onClick,
42
- maxWidth = props.maxItemWidth,
43
36
  rest = _objectWithoutProperties(props, _excluded);
44
37
  var innerRef = useRef(null);
45
38
  var ref = useForkRef(outerRef, innerRef);
46
39
  var refs = useContext(TabsContext);
47
40
  var role = 'tab';
48
- var truncate = maxWidth !== 'auto';
49
41
  var pilledAttr = view !== 'clear' && pilled;
50
42
  var animatedClass = animated ? classes.tabItemAnimated : undefined;
51
43
  var pilledClass = pilledAttr ? classes.tabsPilled : undefined;
@@ -106,13 +98,9 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
106
98
  size: size,
107
99
  onFocus: onItemFocus,
108
100
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
109
- className: cx(pilledClass, selectedClass, animatedClass, truncate && classes.tabsTruncate, className),
101
+ className: cx(pilledClass, selectedClass, animatedClass, className),
110
102
  onClick: handleClick
111
- }, rest, {
112
- style: _objectSpread(_objectSpread({}, rest.style), {}, {
113
- maxWidth: maxWidth
114
- })
115
- }), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
103
+ }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
116
104
  className: classes.tabLeftContent
117
105
  }, contentLeft), /*#__PURE__*/React.createElement(StyledContent, {
118
106
  className: classes.tabContent