@salutejs/plasma-new-hope 0.186.0-canary.1511.11718939010.0 → 0.186.0-canary.1534.11720486647.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (305) hide show
  1. package/cjs/index.css +0 -23
  2. package/cjs/index.js +0 -6
  3. package/cjs/index.js.map +1 -1
  4. package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
  5. package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
  6. package/emotion/cjs/components/_Icon/index.js +8 -1
  7. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +215 -0
  8. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
  9. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +80 -0
  10. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  11. package/emotion/cjs/index.js +0 -11
  12. package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
  13. package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
  14. package/emotion/es/components/_Icon/index.js +2 -1
  15. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +207 -0
  16. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
  17. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +73 -0
  18. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  19. package/emotion/es/index.js +1 -2
  20. package/es/index.css +0 -23
  21. package/es/index.js +0 -2
  22. package/es/index.js.map +1 -1
  23. package/package.json +2 -2
  24. package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
  25. package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
  26. package/styled-components/cjs/components/_Icon/index.js +8 -1
  27. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +215 -0
  28. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
  29. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +33 -0
  30. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  31. package/styled-components/cjs/index.js +0 -11
  32. package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
  33. package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
  34. package/styled-components/es/components/_Icon/index.js +2 -1
  35. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +207 -0
  36. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
  37. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +26 -0
  38. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  39. package/styled-components/es/index.js +1 -2
  40. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +4 -0
  41. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +1 -0
  42. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +4 -0
  43. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +1 -0
  44. package/types/components/_Icon/index.d.ts +1 -0
  45. package/types/components/_Icon/index.d.ts.map +1 -1
  46. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +20 -0
  47. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +1 -0
  48. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.styles.d.ts +15 -0
  49. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.styles.d.ts.map +1 -0
  50. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.types.d.ts +72 -0
  51. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.types.d.ts.map +1 -0
  52. package/types/index.d.ts +0 -1
  53. package/types/index.d.ts.map +1 -1
  54. package/cjs/components/NumberInput/NumberInput.css +0 -52
  55. package/cjs/components/NumberInput/NumberInput.js +0 -207
  56. package/cjs/components/NumberInput/NumberInput.js.map +0 -1
  57. package/cjs/components/NumberInput/NumberInput.styles.js +0 -9
  58. package/cjs/components/NumberInput/NumberInput.styles.js.map +0 -1
  59. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  60. package/cjs/components/NumberInput/NumberInput.tokens.js +0 -102
  61. package/cjs/components/NumberInput/NumberInput.tokens.js.map +0 -1
  62. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -19
  63. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  64. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -22
  65. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  66. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +0 -1
  67. package/cjs/components/NumberInput/ui/Input/Input.css +0 -15
  68. package/cjs/components/NumberInput/ui/Input/Input.js +0 -205
  69. package/cjs/components/NumberInput/ui/Input/Input.js.map +0 -1
  70. package/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -96
  71. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  72. package/cjs/components/NumberInput/ui/Input/Input.styles_fhgb95.css +0 -8
  73. package/cjs/components/NumberInput/utils/index.js +0 -12
  74. package/cjs/components/NumberInput/utils/index.js.map +0 -1
  75. package/cjs/components/NumberInput/variations/_background-type/base.js +0 -9
  76. package/cjs/components/NumberInput/variations/_background-type/base.js.map +0 -1
  77. package/cjs/components/NumberInput/variations/_background-type/base_dx9knv.css +0 -1
  78. package/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  79. package/cjs/components/NumberInput/variations/_disabled/base.js.map +0 -1
  80. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  81. package/cjs/components/NumberInput/variations/_segmentation/base.js +0 -9
  82. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  83. package/cjs/components/NumberInput/variations/_segmentation/base_14s5rot.css +0 -1
  84. package/cjs/components/NumberInput/variations/_shape/base.js +0 -9
  85. package/cjs/components/NumberInput/variations/_shape/base.js.map +0 -1
  86. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  87. package/cjs/components/NumberInput/variations/_size/base.js +0 -9
  88. package/cjs/components/NumberInput/variations/_size/base.js.map +0 -1
  89. package/cjs/components/NumberInput/variations/_size/base_yqdmk4.css +0 -1
  90. package/cjs/components/NumberInput/variations/_view/base.js +0 -9
  91. package/cjs/components/NumberInput/variations/_view/base.js.map +0 -1
  92. package/cjs/components/NumberInput/variations/_view/base_tnfbb5.css +0 -1
  93. package/emotion/cjs/components/NumberInput/NumberInput.js +0 -216
  94. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +0 -17
  95. package/emotion/cjs/components/NumberInput/NumberInput.template-doc.mdx +0 -214
  96. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +0 -99
  97. package/emotion/cjs/components/NumberInput/index.js +0 -31
  98. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  99. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -16
  100. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -213
  101. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -81
  102. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  103. package/emotion/cjs/components/NumberInput/ui/index.js +0 -19
  104. package/emotion/cjs/components/NumberInput/utils/index.js +0 -9
  105. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  106. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  107. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  108. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  109. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  110. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  111. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  112. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  113. package/emotion/cjs/components/NumberInput/variations/_size/base.js +0 -13
  114. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  115. package/emotion/cjs/components/NumberInput/variations/_view/base.js +0 -13
  116. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  117. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -46
  118. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  119. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  120. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -46
  121. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  122. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  123. package/emotion/es/components/NumberInput/NumberInput.js +0 -208
  124. package/emotion/es/components/NumberInput/NumberInput.styles.js +0 -11
  125. package/emotion/es/components/NumberInput/NumberInput.template-doc.mdx +0 -214
  126. package/emotion/es/components/NumberInput/NumberInput.tokens.js +0 -93
  127. package/emotion/es/components/NumberInput/index.js +0 -2
  128. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  129. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -9
  130. package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -204
  131. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +0 -74
  132. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  133. package/emotion/es/components/NumberInput/ui/index.js +0 -2
  134. package/emotion/es/components/NumberInput/utils/index.js +0 -3
  135. package/emotion/es/components/NumberInput/variations/_background-type/base.js +0 -4
  136. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  137. package/emotion/es/components/NumberInput/variations/_disabled/base.js +0 -3
  138. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  139. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  140. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  141. package/emotion/es/components/NumberInput/variations/_shape/base.js +0 -5
  142. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  143. package/emotion/es/components/NumberInput/variations/_size/base.js +0 -7
  144. package/emotion/es/components/NumberInput/variations/_size/tokens.json +0 -22
  145. package/emotion/es/components/NumberInput/variations/_view/base.js +0 -7
  146. package/emotion/es/components/NumberInput/variations/_view/tokens.json +0 -14
  147. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -40
  148. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  149. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  150. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -40
  151. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  152. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  153. package/es/components/NumberInput/NumberInput.css +0 -52
  154. package/es/components/NumberInput/NumberInput.js +0 -202
  155. package/es/components/NumberInput/NumberInput.js.map +0 -1
  156. package/es/components/NumberInput/NumberInput.styles.js +0 -5
  157. package/es/components/NumberInput/NumberInput.styles.js.map +0 -1
  158. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  159. package/es/components/NumberInput/NumberInput.tokens.js +0 -96
  160. package/es/components/NumberInput/NumberInput.tokens.js.map +0 -1
  161. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -15
  162. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  163. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -18
  164. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  165. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +0 -1
  166. package/es/components/NumberInput/ui/Input/Input.css +0 -15
  167. package/es/components/NumberInput/ui/Input/Input.js +0 -201
  168. package/es/components/NumberInput/ui/Input/Input.js.map +0 -1
  169. package/es/components/NumberInput/ui/Input/Input.styles.js +0 -85
  170. package/es/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  171. package/es/components/NumberInput/ui/Input/Input.styles_fhgb95.css +0 -8
  172. package/es/components/NumberInput/utils/index.js +0 -6
  173. package/es/components/NumberInput/utils/index.js.map +0 -1
  174. package/es/components/NumberInput/variations/_background-type/base.js +0 -5
  175. package/es/components/NumberInput/variations/_background-type/base.js.map +0 -1
  176. package/es/components/NumberInput/variations/_background-type/base_dx9knv.css +0 -1
  177. package/es/components/NumberInput/variations/_disabled/base.js +0 -5
  178. package/es/components/NumberInput/variations/_disabled/base.js.map +0 -1
  179. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  180. package/es/components/NumberInput/variations/_segmentation/base.js +0 -5
  181. package/es/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  182. package/es/components/NumberInput/variations/_segmentation/base_14s5rot.css +0 -1
  183. package/es/components/NumberInput/variations/_shape/base.js +0 -5
  184. package/es/components/NumberInput/variations/_shape/base.js.map +0 -1
  185. package/es/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  186. package/es/components/NumberInput/variations/_size/base.js +0 -5
  187. package/es/components/NumberInput/variations/_size/base.js.map +0 -1
  188. package/es/components/NumberInput/variations/_size/base_yqdmk4.css +0 -1
  189. package/es/components/NumberInput/variations/_view/base.js +0 -5
  190. package/es/components/NumberInput/variations/_view/base.js.map +0 -1
  191. package/es/components/NumberInput/variations/_view/base_tnfbb5.css +0 -1
  192. package/styled-components/cjs/components/NumberInput/NumberInput.js +0 -216
  193. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +0 -8
  194. package/styled-components/cjs/components/NumberInput/NumberInput.template-doc.mdx +0 -214
  195. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +0 -99
  196. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +0 -5
  197. package/styled-components/cjs/components/NumberInput/index.js +0 -31
  198. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  199. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -15
  200. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  201. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -213
  202. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -48
  203. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  204. package/styled-components/cjs/components/NumberInput/ui/index.js +0 -19
  205. package/styled-components/cjs/components/NumberInput/utils/index.js +0 -9
  206. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  207. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  208. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  209. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  210. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  211. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  212. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  213. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  214. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +0 -13
  215. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  216. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +0 -13
  217. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  218. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -46
  219. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  220. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  221. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -46
  222. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  223. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  224. package/styled-components/es/components/NumberInput/NumberInput.js +0 -208
  225. package/styled-components/es/components/NumberInput/NumberInput.styles.js +0 -2
  226. package/styled-components/es/components/NumberInput/NumberInput.template-doc.mdx +0 -214
  227. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +0 -93
  228. package/styled-components/es/components/NumberInput/NumberInput.types.js +0 -1
  229. package/styled-components/es/components/NumberInput/index.js +0 -2
  230. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  231. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -8
  232. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  233. package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -204
  234. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +0 -41
  235. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  236. package/styled-components/es/components/NumberInput/ui/index.js +0 -2
  237. package/styled-components/es/components/NumberInput/utils/index.js +0 -3
  238. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +0 -4
  239. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  240. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +0 -3
  241. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  242. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  243. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  244. package/styled-components/es/components/NumberInput/variations/_shape/base.js +0 -5
  245. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  246. package/styled-components/es/components/NumberInput/variations/_size/base.js +0 -7
  247. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +0 -22
  248. package/styled-components/es/components/NumberInput/variations/_view/base.js +0 -7
  249. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +0 -14
  250. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -40
  251. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  252. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  253. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -40
  254. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  255. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  256. package/types/components/NumberInput/NumberInput.d.ts +0 -38
  257. package/types/components/NumberInput/NumberInput.d.ts.map +0 -1
  258. package/types/components/NumberInput/NumberInput.styles.d.ts +0 -2
  259. package/types/components/NumberInput/NumberInput.styles.d.ts.map +0 -1
  260. package/types/components/NumberInput/NumberInput.tokens.d.ts +0 -88
  261. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +0 -1
  262. package/types/components/NumberInput/NumberInput.types.d.ts +0 -112
  263. package/types/components/NumberInput/NumberInput.types.d.ts.map +0 -1
  264. package/types/components/NumberInput/index.d.ts +0 -3
  265. package/types/components/NumberInput/index.d.ts.map +0 -1
  266. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +0 -4
  267. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +0 -1
  268. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +0 -45
  269. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +0 -1
  270. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +0 -7
  271. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +0 -1
  272. package/types/components/NumberInput/ui/Input/Input.d.ts +0 -19
  273. package/types/components/NumberInput/ui/Input/Input.d.ts.map +0 -1
  274. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +0 -30
  275. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +0 -1
  276. package/types/components/NumberInput/ui/Input/Input.types.d.ts +0 -19
  277. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +0 -1
  278. package/types/components/NumberInput/ui/index.d.ts +0 -3
  279. package/types/components/NumberInput/ui/index.d.ts.map +0 -1
  280. package/types/components/NumberInput/utils/index.d.ts +0 -4
  281. package/types/components/NumberInput/utils/index.d.ts.map +0 -1
  282. package/types/components/NumberInput/variations/_background-type/base.d.ts +0 -2
  283. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +0 -1
  284. package/types/components/NumberInput/variations/_disabled/base.d.ts +0 -2
  285. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +0 -1
  286. package/types/components/NumberInput/variations/_segmentation/base.d.ts +0 -2
  287. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +0 -1
  288. package/types/components/NumberInput/variations/_shape/base.d.ts +0 -2
  289. package/types/components/NumberInput/variations/_shape/base.d.ts.map +0 -1
  290. package/types/components/NumberInput/variations/_size/base.d.ts +0 -2
  291. package/types/components/NumberInput/variations/_size/base.d.ts.map +0 -1
  292. package/types/components/NumberInput/variations/_view/base.d.ts +0 -2
  293. package/types/components/NumberInput/variations/_view/base.d.ts.map +0 -1
  294. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +0 -39
  295. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  296. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +0 -82
  297. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +0 -1
  298. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +0 -39
  299. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  300. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +0 -82
  301. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +0 -1
  302. /package/emotion/cjs/{components/NumberInput/NumberInput.types.js → examples/plasma_b2c/components/Dropzone/Dropzone.types.js} +0 -0
  303. /package/emotion/es/{components/NumberInput/NumberInput.types.js → examples/plasma_b2c/components/Dropzone/Dropzone.types.js} +0 -0
  304. /package/{emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js → styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.types.js} +0 -0
  305. /package/{emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js → styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.types.js} +0 -0
@@ -1,5 +0,0 @@
1
- import { numberInputConfig } from '../../../../components/NumberInput';
2
- import { component, mergeConfig } from '../../../../engines';
3
- import { config } from './NumberInput.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(numberInputConfig, config);
5
- export var NumberInput = /*#__PURE__*/component(mergedConfig);
@@ -1,108 +0,0 @@
1
- import React, { ComponentProps, useState } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
-
5
- import { WithTheme } from '../../../_helpers';
6
-
7
- import { NumberInput } from './NumberInput';
8
-
9
- const onChange = action('onChange');
10
- const onDecrement = action('onDecrement');
11
- const onIncrement = action('onIncrement');
12
-
13
- const views = ['default', 'secondary', 'accent', 'clear'];
14
- const sizes = ['l', 'm', 's', 'xs'];
15
- const shapes = ['cornered', 'pilled'];
16
- const inputBackgroundTypes = ['fill', 'clear'];
17
- const segmentation = ['default', 'segmented', 'solid'];
18
-
19
- const meta: Meta<typeof NumberInput> = {
20
- title: 'plasma_web/NumberInput',
21
- component: NumberInput,
22
- decorators: [WithTheme],
23
- argTypes: {
24
- min: {
25
- control: {
26
- type: 'number',
27
- },
28
- },
29
- max: {
30
- control: {
31
- type: 'number',
32
- },
33
- },
34
- view: {
35
- options: views,
36
- control: {
37
- type: 'select',
38
- },
39
- },
40
- size: {
41
- options: sizes,
42
- control: {
43
- type: 'inline-radio',
44
- },
45
- },
46
- shape: {
47
- options: shapes,
48
- control: {
49
- type: 'inline-radio',
50
- },
51
- },
52
- inputBackgroundType: {
53
- options: inputBackgroundTypes,
54
- control: {
55
- type: 'inline-radio',
56
- },
57
- },
58
- segmentation: {
59
- options: segmentation,
60
- control: {
61
- type: 'select',
62
- },
63
- },
64
- },
65
- };
66
-
67
- export default meta;
68
-
69
- type StoryPropsDefault = ComponentProps<typeof NumberInput>;
70
-
71
- const StoryDefault = (args: StoryPropsDefault) => {
72
- const [value, setValue] = useState(5);
73
-
74
- const handleChange = (_: any, newValue: number) => {
75
- setValue(newValue);
76
- onChange(newValue);
77
- };
78
-
79
- return (
80
- <NumberInput
81
- {...args}
82
- value={value}
83
- onChange={handleChange}
84
- onDecrement={onDecrement}
85
- onIncrement={onIncrement}
86
- />
87
- );
88
- };
89
-
90
- export const Default: StoryObj<StoryPropsDefault> = {
91
- args: {
92
- view: 'default',
93
- size: 'l',
94
- shape: 'cornered',
95
- inputBackgroundType: 'fill',
96
- segmentation: 'default',
97
- min: 0,
98
- max: 9,
99
- step: 1,
100
- width: 188,
101
- isManualInput: false,
102
- textBefore: '',
103
- textAfter: '',
104
- isLoading: false,
105
- disabled: false,
106
- },
107
- render: StoryDefault,
108
- };
@@ -1,52 +0,0 @@
1
- .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
2
-
3
- .Button_styles_1sopr3d_bzw1898__8219590b{min-width:4ch;-webkit-flex-shrink:2;-ms-flex-negative:2;flex-shrink:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.Button_styles_1sopr3d_bzw1898__8219590b.Button_styles_1sopr3d_buttonContentRelaxed__8219590b{text-align:start;-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;}
4
- .Button_styles_1sopr3d_bdfuqwe__8219590b{color:var(--plasma-button-value-color);margin:var(--plasma-button-value-margin);min-width:4ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
5
- .Button_styles_1sopr3d_l9ypozh__8219590b{opacity:var(--l9ypozh-0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:var(--l9ypozh-1);-webkit-justify-content:var(--l9ypozh-1);-ms-flex-pack:var(--l9ypozh-1);justify-content:var(--l9ypozh-1);height:100%;width:100%;}
6
- .Button_styles_1sopr3d_l4dfhbg__8219590b{position:absolute;}
7
- .Button_styles_1sopr3d_srdlazt__8219590b{--plasma-spinner-size:var(--plasma-button-spinner-size);--plasma-spinner-color:var(--plasma-button-spinner-color);}
8
- .Button_styles_1sopr3d_s7rggv0__8219590b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:var(--plasma-button-left-content-margin);-webkit-align-self:var(--plasma-button-left-content-align-self);-ms-flex-item-align:var(--plasma-button-left-content-align);align-self:var(--plasma-button-left-content-align-self);}
9
- .Button_styles_1sopr3d_s1rjh7ra__8219590b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:var(--plasma-button-right-content-margin);-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);}
10
- .Button_styles_1sopr3d_b9ga1dj__8219590b{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_1sopr3d_b9ga1dj__8219590b{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_1sopr3d_b9ga1dj__8219590b.Button_styles_1sopr3d_b9ga1dj__8219590b.Button_styles_1sopr3d_buttonSquare__8219590b{width:var(--plasma-button-height);padding:0;}
11
-
12
- .base_jfbpjg_b1ty39ru__57cb1989{color:var(--plasma-button-color);background:var(--plasma-button-background-color);}.base_jfbpjg_b1ty39ru__57cb1989.base_jfbpjg_buttonLoading__57cb1989{background:var(--plasma-button-loading-background-color);}.base_jfbpjg_b1ty39ru__57cb1989:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}.base_jfbpjg_b1ty39ru__57cb1989:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}
13
-
14
- .base_1alzrso_be0ha5g__cdc67255{height:var(--plasma-button-height);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);}
15
-
16
- .base_do83p2_b169l30m__044ccc85[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}.base_do83p2_b169l30m__044ccc85[disabled]:hover,.base_do83p2_b169l30m__044ccc85[disabled]:active{scale:none;color:var(--plasma-button-color);background:var(--plasma-button-background-color);}
17
-
18
- .base_1kq737e_b187cmzt__d829f64a{position:relative;}.base_1kq737e_b187cmzt__d829f64a:focus{outline:none;}.base_1kq737e_b187cmzt__d829f64a::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1kq737e_b187cmzt__d829f64a.base_1kq737e_focusVisible__d829f64a:focus::before,.base_1kq737e_b187cmzt__d829f64a[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}
19
-
20
- .base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingFixed__bd4ad37e{width:var(--plasma-button-width);}.base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingFilled__bd4ad37e{width:100%;}.base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingAuto__bd4ad37e{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
21
-
22
- .IconButton_styles_403on7_b1ua728l__d34a8ea7{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);color:var(--plasma-button-color);background:var(--plasma-button-background-color);height:var(--plasma-button-height);width:var(--plasma-button-width);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);position:relative;--plasma-button-padding:0;--plasma-button-color:var(--plasma-icon-button-color);--plasma-button-background-color:var(--plasma-icon-button-background-color);--plasma-button-color-hover:var(--plasma-icon-button-color-hover);--plasma-button-background-color-hover:var(--plasma-icon-button-background-color-hover);--plasma-button-color-active:var(--plasma-icon-button-color-active);--plasma-button-background-color-active:var(--plasma-icon-button-background-color-active);--plasma-button-loading-background-color:var(--plasma-icon-button-loading-background-color);--plasma-button-font-family:var(--plasma-icon-button-font-family);--plasma-button-font-size:var(--plasma-icon-button-font-size);--plasma-button-font-style:var(--plasma-icon-button-font-style);--plasma-button-font-weight:var(--plasma-icon-button-font-weight);--plasma-button-letter-spacing:var(--plasma-icon-button-letter-spacing);--plasma-button-line-height:var(--plasma-icon-button-line-height);--plasma-button-width:var(--plasma-icon-button-width);--plasma-button-height:var(--plasma-icon-button-height);--plasma-button-radius:var(--plasma-icon-button-radius);--plasma-button-disabled-opacity:var(--plasma-icon-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-icon-button-focus-color);--plasma-button-spinner-size:var(--plasma-icon-button-spinner-size);--plasma-button-spinner-color:var(--plasma-icon-button-spinner-color);}a.IconButton_styles_403on7_b1ua728l__d34a8ea7{-webkit-text-decoration:none;text-decoration:none;}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_buttonSquare__d34a8ea7{width:var(--plasma-button-height);padding:0;}.IconButton_styles_403on7_b1ua728l__d34a8ea7:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}.IconButton_styles_403on7_b1ua728l__d34a8ea7:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}.IconButton_styles_403on7_b1ua728l__d34a8ea7:focus{outline:none;}.IconButton_styles_403on7_b1ua728l__d34a8ea7::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_focusVisible__d34a8ea7:focus::before,.IconButton_styles_403on7_b1ua728l__d34a8ea7[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}.IconButton_styles_403on7_b1ua728l__d34a8ea7[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}.IconButton_styles_403on7_b1ua728l__d34a8ea7[disabled]:hover,.IconButton_styles_403on7_b1ua728l__d34a8ea7[disabled]:active{scale:none;color:var(--plasma-button-color);background:var(--plasma-button-background-color);}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_buttonStretchingFixed__d34a8ea7{width:var(--plasma-button-width);}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_buttonStretchingFilled__d34a8ea7{width:100%;}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_buttonStretchingAuto__d34a8ea7{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
23
-
24
- .base_1gusher_b1chvyq8__76b641f5{color:var(--plasma-spinner-color);}
25
-
26
- .base_ova69f_bw56nfh__55225c7f{width:var(--plasma-spinner-size);height:var(--plasma-spinner-size);}
27
-
28
- .Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
29
- .Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
30
-
31
- .Input_styles_fhgb95_i1s8bsh6__3bed5c8f{overflow-x:auto;overflow-y:hidden;-webkit-flex:1;-ms-flex:1;flex:1;cursor:var(--i1s8bsh6-0);-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;overscroll-behavior:contain;}.Input_styles_fhgb95_i1s8bsh6__3bed5c8f::-webkit-scrollbar{display:none;}
32
- .Input_styles_fhgb95_t6wb9c__3bed5c8f{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0 auto;box-sizing:border-box;}
33
-
34
-
35
-
36
- .Input_styles_fhgb95_d1n4jo6t__3bed5c8f{position:relative;}
37
- .Input_styles_fhgb95_i1tgbhg7__3bed5c8f{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:var(--i1tgbhg7-0);box-sizing:border-box;cursor:var(--i1tgbhg7-1);pointer-events:var(--i1tgbhg7-2);-webkit-transition:width 0.1s;transition:width 0.1s;}
38
- .Input_styles_fhgb95_i1il5xze__3bed5c8f{position:absolute;z-index:-999;visibility:hidden;top:0;left:0;opacity:0;height:0;white-space:pre;}
39
-
40
- .NumberInput_styles_jeawjl_bwds6g__9a871afb{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
41
-
42
- .base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8{--plasma-icon-button-color:var(--plasma-number-input_icon-button_color);--plasma-icon-button-background-color:var(--plasma-number-input_icon-button_background-color);--plasma-icon-button-color-hover:var(--plasma-number-input_icon-button_color-hover);--plasma-icon-button-background-color-hover:var(--plasma-number-input_icon-button_background-color-hover);--plasma-icon-button-color-active:var(--plasma-number-input_icon-button_color-active);--plasma-icon-button-background-color-active:var(--plasma-number-input_icon-button_background-color-active);}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonDecrementDisabled__884e17c8,.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonIncrementDisabled__884e17c8{opacity:var(--plasma-number-input_action-button_disabled-opacity);cursor:not-allowed;}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonDecrementDisabled__884e17c8:hover,.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonIncrementDisabled__884e17c8:hover,.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonDecrementDisabled__884e17c8:active,.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonIncrementDisabled__884e17c8:active{scale:none;color:var(--plasma-number-input_icon-button_color);background-color:var(--plasma-number-input_icon-button_background-color);}.base_tnfbb5_bhi37xj__884e17c8.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1s8bsh6__884e17c8.base_tnfbb5_manualInputNumberInput__884e17c8:focus-within{background-color:var(--plasma-number-input_background-color-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-focus);}.base_tnfbb5_bhi37xj__884e17c8.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1s8bsh6__884e17c8.base_tnfbb5_manualInputNumberInput__884e17c8.base_tnfbb5_errorAnimation__884e17c8{background-color:var(--plasma-number-input_background_error-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border_error-color);-webkit-animation:base_tnfbb5_shakingErrorBhi37xj__884e17c8 0.3s forwards;animation:base_tnfbb5_shakingErrorBhi37xj__884e17c8 0.3s forwards;}.base_tnfbb5_bhi37xj__884e17c8.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1s8bsh6__884e17c8.base_tnfbb5_manualInputNumberInput__884e17c8.base_tnfbb5_errorAnimation__884e17c8 .base_tnfbb5_i1tgbhg7__884e17c8{color:var(--plasma-number-input_error-color);-webkit-animation:base_tnfbb5_fadeErrorBhi37xj__884e17c8 0.3s forwards;animation:base_tnfbb5_fadeErrorBhi37xj__884e17c8 0.3s forwards;}.base_tnfbb5_bhi37xj__884e17c8.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1s8bsh6__884e17c8.base_tnfbb5_manualInputNumberInput__884e17c8.base_tnfbb5_errorAnimation__884e17c8:focus-within{background-color:var(--plasma-number-input_background_error-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border_error-color);}@-webkit-keyframes base_tnfbb5_shakingErrorBhi37xj__884e17c8{14%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}28%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}42%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}57%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}71%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}85%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}100%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}}@keyframes base_tnfbb5_shakingErrorBhi37xj__884e17c8{14%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}28%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}42%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}57%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}71%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}85%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}100%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}}@-webkit-keyframes base_tnfbb5_fadeErrorBhi37xj__884e17c8{50%{opacity:1;}100%{opacity:0;}}@keyframes base_tnfbb5_fadeErrorBhi37xj__884e17c8{50%{opacity:1;}100%{opacity:0;}}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_s1ft73sv__884e17c8{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color);}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1tgbhg7__884e17c8{color:var(--plasma-number-input_color);caret-color:var(--plasma-number-input_caret_color);}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_az36kha__884e17c8{color:var(--plasma-number-input_additional-text_color);}
43
-
44
- .base_yqdmk4_b13wjeky__9b206d94{width:var(--plasma_private-number-input_width);min-width:var(--plasma-number-input_min-width);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_sj0ab1b__9b206d94{--plasma-icon-button-height:var(--plasma-number-input_icon-button_height);--plasma-icon-button-width:var(--plasma-number-input_icon-button_width);--plasma-icon-button-padding:var(--plasma-number-input_icon-button_padding);--plasma-icon-button-font-family:var(--plasma-number-input_icon-button_font-family);--plasma-icon-button-font-size:var(--plasma-number-input_icon-button_font-size);--plasma-icon-button-font-style:var(--plasma-number-input_icon-button_font-style);--plasma-icon-button-font-weight:var(--plasma-number-input_icon-button_font-weight);--plasma-icon-button-letter-spacing:var(--plasma-number-input_icon-button_letter-spacing);--plasma-icon-button-line-height:var(--plasma-number-input_icon-button_line-height);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_i1s8bsh6__9b206d94{margin:var(--plasma-number-input_input-wrapper_margin);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_t6wb9c__9b206d94{height:var(--plasma-number-input_text-wrapper_height);padding:var(--plasma-number-input_text-wrapper_padding);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_d1n4jo6t__9b206d94,.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_i1tgbhg7__9b206d94,.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_az36kha__9b206d94{font-family:var(--plasma-number-input_font-family);font-size:var(--plasma-number-input_font-size);font-style:var(--plasma-number-input_font-style);font-weight:var(--plasma-number-input_font-weight);-webkit-letter-spacing:var(--plasma-number-input_letter-spacing);-moz-letter-spacing:var(--plasma-number-input_letter-spacing);-ms-letter-spacing:var(--plasma-number-input_letter-spacing);letter-spacing:var(--plasma-number-input_letter-spacing);line-height:var(--plasma-number-input_line-height);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_az36kha__9b206d94.base_yqdmk4_textBefore__9b206d94{margin-right:var(--plasma-number-input_text-before_margin-right);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_az36kha__9b206d94.base_yqdmk4_textAfter__9b206d94{margin-left:var(--plasma-number-input_text-after_margin-left);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_s1ft73sv__9b206d94{--plasma-spinner-size:var(--plasma-number-input_loader-spinner_size);}
45
-
46
- .base_k05biw_b1l31q8y__7da7a6d0 .base_k05biw_sj0ab1b__7da7a6d0{--plasma-icon-button-radius:var(--plasma-number-input_icon-button_radius);}
47
-
48
- .base_dx9knv_b15uqx38__1d74109c .base_dx9knv_i1s8bsh6__1d74109c{background-color:var(--plasma-number-input_background-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color);}.base_dx9knv_b15uqx38__1d74109c .base_dx9knv_i1s8bsh6__1d74109c.base_dx9knv_manualInputNumberInput__1d74109c:hover{background-color:var(--plasma-number-input_background-color-hover);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-hover);}
49
-
50
- .base_14s5rot_bpps6rw__6339f446 .base_14s5rot_i1s8bsh6__6339f446{border-radius:var(--plasma-number-input_input-wrapper_border-radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446{--plasma_private-segmentation-border-radius:var(--plasma-number-input_icon-button_radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_segmentedView__6339f446,.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_solidView__6339f446{--plasma_private-segmentation-border-radius:var(--plasma-number-input_icon-button_segmentation_radius,var(--plasma-number-input_icon-button_radius));}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrement__6339f446{border-radius:var(--plasma-number-input_icon-button_radius) var(--plasma_private-segmentation-border-radius) var(--plasma_private-segmentation-border-radius) var(--plasma-number-input_icon-button_radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrement__6339f446{border-radius:var(--plasma_private-segmentation-border-radius) var(--plasma-number-input_icon-button_radius) var(--plasma-number-input_icon-button_radius) var(--plasma_private-segmentation-border-radius);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_segmentedView__6339f446 .base_14s5rot_i1s8bsh6__6339f446{border-radius:var(--plasma-number-input_icon-button_segmentation_radius);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446{--plasma_private-number-input_top-box-shadow:inset 0 var(--plasma-number-input_input-border-width) var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_bottom-box-shadow:inset 0 calc(-1 * var(--plasma-number-input_input-border-width)) var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_left-box-shadow:inset var(--plasma-number-input_input-border-width) 0 var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_right-box-shadow:inset calc(-1 * var(--plasma-number-input_input-border-width)) 0 var(--plasma-number-input_wrapper_border-color);position:relative;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_numberInputFocused__6339f446:not(number-input-loading),.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_numberInputFocused__6339f446:not(number-input-disabled){--plasma_private-number-input_top-box-shadow:inset 0 var(--plasma-number-input_input-border-width) var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_bottom-box-shadow:inset 0 calc(-1 * var(--plasma-number-input_input-border-width)) var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_left-box-shadow:inset var(--plasma-number-input_input-border-width) 0 var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_right-box-shadow:inset calc(-1 * var(--plasma-number-input_input-border-width)) 0 var(--plasma-number-input_wrapper_border-color_focus);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446:before{content:'';position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:calc(100% - var(--plasma-number-input_icon-button_width) * 2);height:100%;background:var(--plasma-number-input_background-color-solid);box-shadow:var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_bottom-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1s8bsh6__6339f446{position:relative;color:var(--plasma-number-input_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1s8bsh6__6339f446:not(error-animation).base_14s5rot_manualInputNumberInput__6339f446:focus-within{background-color:var(--plasma-number-input_background-color-solid-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-solid-focus);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrement__6339f446{box-shadow:var(--plasma_private-number-input_bottom-box-shadow),var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_left-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrement__6339f446{box-shadow:var(--plasma_private-number-input_bottom-box-shadow),var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_right-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:active{background-color:var(--plasma-number-input_icon-button_background-color);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:hover{color:var(--plasma-number-input_icon-button_color_solid-hover);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:active{color:var(--plasma-number-input_icon-button_color_solid-active);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446{opacity:1;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446 svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446 svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active{color:var(--plasma-number-input_icon-button_color);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active{background-color:transparent;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_s1ft73sv__6339f446{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1tgbhg7__6339f446{caret-color:var(--plasma-number-input_caret_color-solid,var(--plasma-number-input_caret_color));}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1tgbhg7__6339f446:not(.base_14s5rot_errorAnimation__6339f446){color:var(--plasma-number-input_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_az36kha__6339f446{color:var(--plasma-number-input_additional-text_color-solid);}
51
-
52
- .base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_numberInputDisabled__e93ebd2b{pointer-events:none;opacity:var(--plasma-number-input_disabled-opacity);cursor:not-allowed;}
@@ -1,202 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, objectSpread2 as _objectSpread2, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef, useState, useEffect } from 'react';
3
- import { cx } from '../../utils/index.js';
4
- import { classes, privateTokens } from './NumberInput.tokens.js';
5
- import { base } from './NumberInput.styles.js';
6
- import { base as base$1 } from './variations/_view/base.js';
7
- import { base as base$2 } from './variations/_size/base.js';
8
- import { base as base$3 } from './variations/_shape/base.js';
9
- import { base as base$4 } from './variations/_background-type/base.js';
10
- import { base as base$5 } from './variations/_segmentation/base.js';
11
- import { base as base$6 } from './variations/_disabled/base.js';
12
- import { isNumber } from '../../utils/isNumber.js';
13
- import { ActionButton } from './ui/ActionButton/ActionButton.js';
14
- import { IconMinus } from '../_Icon/Icons/IconMinus.js';
15
- import { NumberInput } from './ui/Input/Input.js';
16
- import { IconPlus } from '../_Icon/Icons/IconPlus.js';
17
- import { getSizeValueFromProp } from '../../utils/getSizeValueFromProp.js';
18
-
19
- var _excluded = ["className", "style", "width", "value", "min", "max", "step", "isLoading", "loader", "size", "view", "clear", "shape", "segmentation", "inputBackgroundType", "disabled", "textBefore", "textAfter", "customIncrementButton", "incrementIcon", "customDecrementButton", "decrementIcon", "isManualInput", "onChange", "onIncrement", "onDecrement"];
20
- var numberInputRoot = function numberInputRoot(Root) {
21
- return /*#__PURE__*/forwardRef(function (_ref, ref) {
22
- var _ref2;
23
- var className = _ref.className,
24
- style = _ref.style,
25
- width = _ref.width,
26
- value = _ref.value,
27
- min = _ref.min,
28
- max = _ref.max,
29
- _ref$step = _ref.step,
30
- step = _ref$step === void 0 ? 1 : _ref$step,
31
- isLoading = _ref.isLoading,
32
- loader = _ref.loader,
33
- size = _ref.size,
34
- view = _ref.view,
35
- clear = _ref.clear,
36
- shape = _ref.shape,
37
- segmentation = _ref.segmentation,
38
- _ref$inputBackgroundT = _ref.inputBackgroundType,
39
- inputBackgroundType = _ref$inputBackgroundT === void 0 ? 'fill' : _ref$inputBackgroundT,
40
- disabled = _ref.disabled,
41
- textBefore = _ref.textBefore,
42
- textAfter = _ref.textAfter,
43
- customIncrementButton = _ref.customIncrementButton,
44
- incrementIcon = _ref.incrementIcon,
45
- customDecrementButton = _ref.customDecrementButton,
46
- decrementIcon = _ref.decrementIcon,
47
- isManualInput = _ref.isManualInput,
48
- onChange = _ref.onChange,
49
- onIncrement = _ref.onIncrement,
50
- onDecrement = _ref.onDecrement,
51
- rest = _objectWithoutProperties(_ref, _excluded);
52
- var _useState = useState((_ref2 = value !== null && value !== void 0 ? value : min) !== null && _ref2 !== void 0 ? _ref2 : 0),
53
- _useState2 = _slicedToArray(_useState, 2),
54
- innerValue = _useState2[0],
55
- setInnerValue = _useState2[1];
56
- var _useState3 = useState(false),
57
- _useState4 = _slicedToArray(_useState3, 2),
58
- isInputFocused = _useState4[0],
59
- setIsInputFocused = _useState4[1];
60
- var _useState5 = useState(false),
61
- _useState6 = _slicedToArray(_useState5, 2),
62
- isAnimationRun = _useState6[0],
63
- setIsAnimationRun = _useState6[1];
64
- var innerWidth = width ? getSizeValueFromProp(width) : '100%';
65
- var actionIconSize = size === 'xs' ? 'xs' : 's';
66
- var solidViewClass = segmentation === 'solid' ? classes.solidView : undefined;
67
- var segmentedViewClass = segmentation === 'segmented' ? classes.segmentedView : undefined;
68
- var clearViewClass = clear ? classes.clearView : undefined;
69
- var disabledClass = disabled ? classes.disabled : undefined;
70
- var loadingClass = isLoading ? classes.loading : undefined;
71
- var focusedClass = isInputFocused ? classes.focused : undefined;
72
- var isMinValue = function isMinValue(currentValue) {
73
- return min !== undefined && currentValue <= min;
74
- };
75
- var isMaxValue = function isMaxValue(currentValue) {
76
- return max !== undefined && currentValue >= max;
77
- };
78
- var decrementButtonDisabled = isMinValue(Number(innerValue)) && !isAnimationRun || isLoading ? classes.actionButtonDecrementDisabled : undefined;
79
- var incrementButtonDisabled = isMaxValue(Number(innerValue)) && !isAnimationRun || isLoading ? classes.actionButtonIncrementDisabled : undefined;
80
- var handleDecrement = function handleDecrement() {
81
- console.log(isAnimationRun);
82
- if (isLoading || disabled || isAnimationRun) {
83
- return;
84
- }
85
- var diffValue = Number(innerValue) - step;
86
- var resValue = min !== undefined && diffValue <= min ? min : diffValue;
87
- setInnerValue(resValue);
88
- if (onDecrement) {
89
- onDecrement(resValue);
90
- }
91
- if (onChange) {
92
- onChange(null, resValue);
93
- }
94
- };
95
- var handleIncrement = function handleIncrement() {
96
- console.log(isAnimationRun);
97
- if (isLoading || disabled || isAnimationRun) {
98
- return;
99
- }
100
- var diffValue = Number(innerValue) + step;
101
- var resValue = max !== undefined && diffValue >= max ? max : diffValue;
102
- setInnerValue(resValue);
103
- if (onIncrement) {
104
- onIncrement(resValue);
105
- }
106
- if (onChange) {
107
- onChange(null, resValue);
108
- }
109
- };
110
- useEffect(function () {
111
- if (value === undefined || !isNumber(value)) {
112
- return;
113
- }
114
- setInnerValue(function (prevValue) {
115
- return prevValue !== value ? value : prevValue;
116
- });
117
- }, [value]);
118
- return /*#__PURE__*/React.createElement(Root, _extends({
119
- view: view,
120
- size: size,
121
- disabled: disabled,
122
- clear: clear,
123
- shape: shape,
124
- segmentation: segmentation,
125
- isLoading: isLoading
126
- }, segmentation === 'solid' ? {
127
- inputBackgroundType: 'clear'
128
- } : {
129
- inputBackgroundType: inputBackgroundType
130
- }, {
131
- className: cx(className, solidViewClass, segmentedViewClass, clearViewClass, disabledClass, loadingClass, focusedClass),
132
- style: _objectSpread2(_objectSpread2({}, style), {}, _defineProperty({}, privateTokens.inputWidth, innerWidth))
133
- }), customDecrementButton || /*#__PURE__*/React.createElement(ActionButton, {
134
- className: cx(classes.actionButtonDecrement, decrementButtonDisabled, solidViewClass, segmentedViewClass),
135
- icon: decrementIcon || /*#__PURE__*/React.createElement(IconMinus, {
136
- color: "inherit",
137
- size: actionIconSize
138
- }),
139
- onClick: handleDecrement
140
- }), /*#__PURE__*/React.createElement(NumberInput, _extends({
141
- ref: ref,
142
- segmentation: segmentation,
143
- value: innerValue,
144
- min: min,
145
- max: max,
146
- isManualInput: isManualInput,
147
- textBefore: textBefore,
148
- textAfter: textAfter,
149
- isLoading: isLoading,
150
- loader: loader,
151
- disabled: disabled,
152
- isInputFocused: isInputFocused,
153
- setIsInputFocused: setIsInputFocused,
154
- setIsAnimationRun: setIsAnimationRun,
155
- setInnerValue: setInnerValue,
156
- onChange: onChange
157
- }, rest)), customIncrementButton || /*#__PURE__*/React.createElement(ActionButton, {
158
- className: cx(classes.actionButtonIncrement, incrementButtonDisabled, solidViewClass, segmentedViewClass),
159
- icon: incrementIcon || /*#__PURE__*/React.createElement(IconPlus, {
160
- color: "inherit",
161
- size: actionIconSize
162
- }),
163
- onClick: handleIncrement
164
- }));
165
- });
166
- };
167
- var numberInputConfig = {
168
- name: 'NumberInput',
169
- tag: 'div',
170
- layout: numberInputRoot,
171
- base: base,
172
- variations: {
173
- view: {
174
- css: base$1
175
- },
176
- size: {
177
- css: base$2
178
- },
179
- shape: {
180
- css: base$3
181
- },
182
- inputBackgroundType: {
183
- css: base$4
184
- },
185
- segmentation: {
186
- css: base$5
187
- },
188
- disabled: {
189
- css: base$6,
190
- attrs: true
191
- }
192
- },
193
- defaults: {
194
- view: 'default',
195
- size: 'l',
196
- shape: 'cornered',
197
- segmentation: 'default'
198
- }
199
- };
200
-
201
- export { numberInputConfig, numberInputRoot };
202
- //# sourceMappingURL=NumberInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumberInput.js","sources":["../../../src/components/NumberInput/NumberInput.tsx"],"sourcesContent":["import React, { CSSProperties, forwardRef, useEffect, useState } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx, getSizeValueFromProp, isNumber } from '../../utils';\nimport { IconMinus, IconPlus } from '../_Icon';\n\nimport type { NumberInputProps, NumberInputRootProps } from './NumberInput.types';\nimport { ActionButton, NumberInput } from './ui';\nimport { classes, privateTokens } from './NumberInput.tokens';\nimport { base } from './NumberInput.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as shapeCSS } from './variations/_shape/base';\nimport { base as inputBackgroundTypeCSS } from './variations/_background-type/base';\nimport { base as segmentationCSS } from './variations/_segmentation/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\n\nexport const numberInputRoot = (Root: RootProps<HTMLDivElement, NumberInputRootProps>) =>\n forwardRef<HTMLInputElement, NumberInputProps>(\n (\n {\n className,\n style,\n width,\n value,\n min,\n max,\n step = 1,\n isLoading,\n loader,\n size,\n view,\n clear,\n shape,\n segmentation,\n inputBackgroundType = 'fill',\n disabled,\n textBefore,\n textAfter,\n customIncrementButton,\n incrementIcon,\n customDecrementButton,\n decrementIcon,\n isManualInput,\n onChange,\n onIncrement,\n onDecrement,\n ...rest\n },\n ref,\n ) => {\n const [innerValue, setInnerValue] = useState<number | string>(value ?? min ?? 0);\n const [isInputFocused, setIsInputFocused] = useState(false);\n const [isAnimationRun, setIsAnimationRun] = useState(false);\n\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n\n const actionIconSize = size === 'xs' ? 'xs' : 's';\n const solidViewClass = segmentation === 'solid' ? classes.solidView : undefined;\n const segmentedViewClass = segmentation === 'segmented' ? classes.segmentedView : undefined;\n const clearViewClass = clear ? classes.clearView : undefined;\n const disabledClass = disabled ? classes.disabled : undefined;\n const loadingClass = isLoading ? classes.loading : undefined;\n const focusedClass = isInputFocused ? classes.focused : undefined;\n\n const isMinValue = (currentValue: number) => min !== undefined && currentValue <= min;\n const isMaxValue = (currentValue: number) => max !== undefined && currentValue >= max;\n\n const decrementButtonDisabled =\n (isMinValue(Number(innerValue)) && !isAnimationRun) || isLoading\n ? classes.actionButtonDecrementDisabled\n : undefined;\n const incrementButtonDisabled =\n (isMaxValue(Number(innerValue)) && !isAnimationRun) || isLoading\n ? classes.actionButtonIncrementDisabled\n : undefined;\n\n const handleDecrement = () => {\n console.log(isAnimationRun);\n if (isLoading || disabled || isAnimationRun) {\n return;\n }\n\n const diffValue = Number(innerValue) - step;\n const resValue = min !== undefined && diffValue <= min ? min : diffValue;\n\n setInnerValue(resValue);\n\n if (onDecrement) {\n onDecrement(resValue);\n }\n\n if (onChange) {\n onChange(null, resValue);\n }\n };\n\n const handleIncrement = () => {\n console.log(isAnimationRun);\n if (isLoading || disabled || isAnimationRun) {\n return;\n }\n\n const diffValue = Number(innerValue) + step;\n const resValue = max !== undefined && diffValue >= max ? max : diffValue;\n\n setInnerValue(resValue);\n\n if (onIncrement) {\n onIncrement(resValue);\n }\n\n if (onChange) {\n onChange(null, resValue);\n }\n };\n\n useEffect(() => {\n if (value === undefined || !isNumber(value)) {\n return;\n }\n\n setInnerValue((prevValue) => (prevValue !== value ? value : prevValue));\n }, [value]);\n\n return (\n <Root\n view={view}\n size={size}\n disabled={disabled}\n clear={clear}\n shape={shape}\n segmentation={segmentation}\n isLoading={isLoading}\n {...(segmentation === 'solid' ? { inputBackgroundType: 'clear' } : { inputBackgroundType })}\n className={cx(\n className,\n solidViewClass,\n segmentedViewClass,\n clearViewClass,\n disabledClass,\n loadingClass,\n focusedClass,\n )}\n style={\n {\n ...style,\n [privateTokens.inputWidth]: innerWidth,\n } as CSSProperties\n }\n >\n {customDecrementButton || (\n <ActionButton\n className={cx(\n classes.actionButtonDecrement,\n decrementButtonDisabled,\n solidViewClass,\n segmentedViewClass,\n )}\n icon={decrementIcon || <IconMinus color=\"inherit\" size={actionIconSize} />}\n onClick={handleDecrement}\n />\n )}\n <NumberInput\n ref={ref}\n segmentation={segmentation}\n value={innerValue}\n min={min}\n max={max}\n isManualInput={isManualInput}\n textBefore={textBefore}\n textAfter={textAfter}\n isLoading={isLoading}\n loader={loader}\n disabled={disabled}\n isInputFocused={isInputFocused}\n setIsInputFocused={setIsInputFocused}\n setIsAnimationRun={setIsAnimationRun}\n setInnerValue={setInnerValue}\n onChange={onChange}\n {...rest}\n />\n {customIncrementButton || (\n <ActionButton\n className={cx(\n classes.actionButtonIncrement,\n incrementButtonDisabled,\n solidViewClass,\n segmentedViewClass,\n )}\n icon={incrementIcon || <IconPlus color=\"inherit\" size={actionIconSize} />}\n onClick={handleIncrement}\n />\n )}\n </Root>\n );\n },\n );\n\nexport const numberInputConfig = {\n name: 'NumberInput',\n tag: 'div',\n layout: numberInputRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n shape: {\n css: shapeCSS,\n },\n inputBackgroundType: {\n css: inputBackgroundTypeCSS,\n },\n segmentation: {\n css: segmentationCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'default',\n size: 'l',\n shape: 'cornered',\n segmentation: 'default',\n },\n};\n"],"names":["numberInputRoot","Root","forwardRef","_ref","ref","_ref2","className","style","width","value","min","max","_ref$step","step","isLoading","loader","size","view","clear","shape","segmentation","_ref$inputBackgroundT","inputBackgroundType","disabled","textBefore","textAfter","customIncrementButton","incrementIcon","customDecrementButton","decrementIcon","isManualInput","onChange","onIncrement","onDecrement","rest","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","innerValue","setInnerValue","_useState3","_useState4","isInputFocused","setIsInputFocused","_useState5","_useState6","isAnimationRun","setIsAnimationRun","innerWidth","getSizeValueFromProp","actionIconSize","solidViewClass","classes","solidView","undefined","segmentedViewClass","segmentedView","clearViewClass","clearView","disabledClass","loadingClass","loading","focusedClass","focused","isMinValue","currentValue","isMaxValue","decrementButtonDisabled","Number","actionButtonDecrementDisabled","incrementButtonDisabled","actionButtonIncrementDisabled","handleDecrement","console","log","diffValue","resValue","handleIncrement","useEffect","isNumber","prevValue","React","createElement","_extends","cx","_objectSpread","_defineProperty","privateTokens","inputWidth","ActionButton","actionButtonDecrement","icon","IconMinus","color","onClick","NumberInput","actionButtonIncrement","IconPlus","numberInputConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","shapeCSS","inputBackgroundTypeCSS","segmentationCSS","disabledCSS","attrs","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;IAiBaA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,IAAqD,EAAA;AAAA,EAAA,oBACjFC,UAAU,CACN,UAAAC,IAAA,EA8BIC,GAAG,EACF;AAAA,IAAA,IAAAC,KAAA,CAAA;AAAA,IAAA,IA7BGC,SAAS,GAAAH,IAAA,CAATG,SAAS;MACTC,KAAK,GAAAJ,IAAA,CAALI,KAAK;MACLC,KAAK,GAAAL,IAAA,CAALK,KAAK;MACLC,KAAK,GAAAN,IAAA,CAALM,KAAK;MACLC,GAAG,GAAAP,IAAA,CAAHO,GAAG;MACHC,GAAG,GAAAR,IAAA,CAAHQ,GAAG;MAAAC,SAAA,GAAAT,IAAA,CACHU,IAAI;AAAJA,MAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,SAAA;MACRE,SAAS,GAAAX,IAAA,CAATW,SAAS;MACTC,MAAM,GAAAZ,IAAA,CAANY,MAAM;MACNC,IAAI,GAAAb,IAAA,CAAJa,IAAI;MACJC,IAAI,GAAAd,IAAA,CAAJc,IAAI;MACJC,KAAK,GAAAf,IAAA,CAALe,KAAK;MACLC,KAAK,GAAAhB,IAAA,CAALgB,KAAK;MACLC,YAAY,GAAAjB,IAAA,CAAZiB,YAAY;MAAAC,qBAAA,GAAAlB,IAAA,CACZmB,mBAAmB;AAAnBA,MAAAA,mBAAmB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,qBAA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AACJ;;;;"}
@@ -1,5 +0,0 @@
1
- import './NumberInput.styles_jeawjl.css';
2
- var base = "bwds6g";
3
-
4
- export { base };
5
- //# sourceMappingURL=NumberInput.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumberInput.styles.js","sources":["../../../src/components/NumberInput/NumberInput.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css`\n display: flex;\n align-items: center;\n`;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAGhB;;;;"}
@@ -1 +0,0 @@
1
- .bwds6g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
@@ -1,96 +0,0 @@
1
- var classes = {
2
- actionButtonDecrement: 'action-button-decrement',
3
- actionButtonDecrementDisabled: 'action-button-decrement-disabled',
4
- actionButtonIncrement: 'action-button-increment',
5
- actionButtonIncrementDisabled: 'action-button-increment-disabled',
6
- textBefore: 'text-before',
7
- textAfter: 'text-after',
8
- solidView: 'solid-view',
9
- segmentedView: 'segmented-view',
10
- clearView: 'clear-view',
11
- errorAnimation: 'error-animation',
12
- disabled: 'number-input-disabled',
13
- loading: 'number-input-loading',
14
- focused: 'number-input-focused',
15
- manualInput: 'manual-input-number-input'
16
- };
17
- var privateTokens = {
18
- inputWidth: '--plasma_private-number-input_width',
19
- segmentationBorderRadius: '--plasma_private-segmentation-border-radius',
20
- segmentationInputBorderRadius: '--plasma_private-segmentation_input_border-radius',
21
- topBoxShadow: '--plasma_private-number-input_top-box-shadow',
22
- bottomBoxShadow: '--plasma_private-number-input_bottom-box-shadow',
23
- leftBoxShadow: '--plasma_private-number-input_left-box-shadow',
24
- rightBoxShadow: '--plasma_private-number-input_right-box-shadow'
25
- };
26
- var tokens = {
27
- // Root size tokens
28
- rootMinWidth: '--plasma-number-input_min-width',
29
- disabledOpacity: '--plasma-number-input_disabled-opacity',
30
- rootBorderWidth: '--plasma-number-input_input-border-width',
31
- wrapperBorderColor: '--plasma-number-input_wrapper_border-color',
32
- wrapperBorderColorFocus: '--plasma-number-input_wrapper_border-color_focus',
33
- // Action button view tokens
34
- iconButtonColor: '--plasma-number-input_icon-button_color',
35
- iconButtonBackgroundColor: '--plasma-number-input_icon-button_background-color',
36
- iconButtonColorHover: '--plasma-number-input_icon-button_color-hover',
37
- iconButtonColorSolidHover: '--plasma-number-input_icon-button_color_solid-hover',
38
- iconButtonBackgroundColorHover: '--plasma-number-input_icon-button_background-color-hover',
39
- iconButtonColorActive: '--plasma-number-input_icon-button_color-active',
40
- iconButtonColorSolidActive: '--plasma-number-input_icon-button_color_solid-active',
41
- iconButtonBackgroundColorActive: '--plasma-number-input_icon-button_background-color-active',
42
- actionButtonDisabledOpacity: '--plasma-number-input_action-button_disabled-opacity',
43
- // Action button size tokens
44
- iconButtonHeight: '--plasma-number-input_icon-button_height',
45
- iconButtonWidth: '--plasma-number-input_icon-button_width',
46
- iconButtonPadding: '--plasma-number-input_icon-button_padding',
47
- iconButtonRadius: '--plasma-number-input_icon-button_radius',
48
- iconButtonSegmentationRadius: '--plasma-number-input_icon-button_segmentation_radius',
49
- iconButtonFontFamily: '--plasma-number-input_icon-button_font-family',
50
- iconButtonFontSize: '--plasma-number-input_icon-button_font-size',
51
- iconButtonFontStyle: '--plasma-number-input_icon-button_font-style',
52
- iconButtonFontWeight: '--plasma-number-input_icon-button_font-weight',
53
- iconButtonLetterSpacing: '--plasma-number-input_icon-button_letter-spacing',
54
- iconButtonLineHeight: '--plasma-number-input_icon-button_line-height',
55
- // Input size tokens
56
- inputWrapperBorderWidth: '--plasma-number-input_input-wrapper_border-width',
57
- inputWrapperMargin: '--plasma-number-input_input-wrapper_margin',
58
- inputWrapperBorderRadius: '--plasma-number-input_input-wrapper_border-radius',
59
- textWrapperHeight: '--plasma-number-input_text-wrapper_height',
60
- textWrapperPadding: '--plasma-number-input_text-wrapper_padding',
61
- fontFamily: '--plasma-number-input_font-family',
62
- fontStyle: '--plasma-number-input_font-style',
63
- fontSize: '--plasma-number-input_font-size',
64
- fontWeight: '--plasma-number-input_font-weight',
65
- letterSpacing: '--plasma-number-input_letter-spacing',
66
- lineHeight: '--plasma-number-input_line-height',
67
- textBeforeMarginRight: '--plasma-number-input_text-before_margin-right',
68
- textAfterMarginLeft: '--plasma-number-input_text-after_margin-left',
69
- // Input view tokens
70
- caretColor: '--plasma-number-input_caret_color',
71
- caretColorSolid: '--plasma-number-input_caret_color-solid',
72
- color: '--plasma-number-input_color',
73
- colorSolid: '--plasma-number-input_color-solid',
74
- backgroundColor: '--plasma-number-input_background-color',
75
- backgroundColorHover: '--plasma-number-input_background-color-hover',
76
- backgroundColorFocus: '--plasma-number-input_background-color-focus',
77
- backgroundColorSolidFocus: '--plasma-number-input_background-color-solid-focus',
78
- backgroundColorSolid: '--plasma-number-input_background-color-solid',
79
- borderColor: '--plasma-number-input_border-color',
80
- borderColorHover: '--plasma-number-input_border-color-hover',
81
- borderColorFocus: '--plasma-number-input_border-color-focus',
82
- borderColorSolidFocus: '--plasma-number-input_border-color-solid-focus',
83
- borderColorSolid: '--plasma-number-input_border-color-solid',
84
- additionalTextColor: '--plasma-number-input_additional-text_color',
85
- additionalTextColorSolid: '--plasma-number-input_additional-text_color-solid',
86
- errorColor: '--plasma-number-input_error-color',
87
- backgroundErrorColor: '--plasma-number-input_background_error-color',
88
- borderErrorColor: '--plasma-number-input_border_error-color',
89
- // Loader tokens
90
- loaderSpinnerSize: '--plasma-number-input_loader-spinner_size',
91
- loaderSpinnerColor: '--plasma-number-input_loader-spinner_color',
92
- loaderSpinnerColorSolid: '--plasma-number-input_loader-spinner_color-solid'
93
- };
94
-
95
- export { classes, privateTokens, tokens };
96
- //# sourceMappingURL=NumberInput.tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumberInput.tokens.js","sources":["../../../src/components/NumberInput/NumberInput.tokens.ts"],"sourcesContent":["export const classes = {\n actionButtonDecrement: 'action-button-decrement',\n actionButtonDecrementDisabled: 'action-button-decrement-disabled',\n actionButtonIncrement: 'action-button-increment',\n actionButtonIncrementDisabled: 'action-button-increment-disabled',\n textBefore: 'text-before',\n textAfter: 'text-after',\n solidView: 'solid-view',\n segmentedView: 'segmented-view',\n clearView: 'clear-view',\n errorAnimation: 'error-animation',\n disabled: 'number-input-disabled',\n loading: 'number-input-loading',\n focused: 'number-input-focused',\n manualInput: 'manual-input-number-input',\n};\n\nexport const privateTokens = {\n inputWidth: '--plasma_private-number-input_width',\n segmentationBorderRadius: '--plasma_private-segmentation-border-radius',\n segmentationInputBorderRadius: '--plasma_private-segmentation_input_border-radius',\n topBoxShadow: '--plasma_private-number-input_top-box-shadow',\n bottomBoxShadow: '--plasma_private-number-input_bottom-box-shadow',\n leftBoxShadow: '--plasma_private-number-input_left-box-shadow',\n rightBoxShadow: '--plasma_private-number-input_right-box-shadow',\n};\n\nexport const tokens = {\n // Root size tokens\n rootMinWidth: '--plasma-number-input_min-width',\n disabledOpacity: '--plasma-number-input_disabled-opacity',\n rootBorderWidth: '--plasma-number-input_input-border-width',\n wrapperBorderColor: '--plasma-number-input_wrapper_border-color',\n wrapperBorderColorFocus: '--plasma-number-input_wrapper_border-color_focus',\n\n // Action button view tokens\n iconButtonColor: '--plasma-number-input_icon-button_color',\n iconButtonBackgroundColor: '--plasma-number-input_icon-button_background-color',\n iconButtonColorHover: '--plasma-number-input_icon-button_color-hover',\n iconButtonColorSolidHover: '--plasma-number-input_icon-button_color_solid-hover',\n iconButtonBackgroundColorHover: '--plasma-number-input_icon-button_background-color-hover',\n iconButtonColorActive: '--plasma-number-input_icon-button_color-active',\n iconButtonColorSolidActive: '--plasma-number-input_icon-button_color_solid-active',\n iconButtonBackgroundColorActive: '--plasma-number-input_icon-button_background-color-active',\n\n actionButtonDisabledOpacity: '--plasma-number-input_action-button_disabled-opacity',\n\n // Action button size tokens\n iconButtonHeight: '--plasma-number-input_icon-button_height',\n iconButtonWidth: '--plasma-number-input_icon-button_width',\n iconButtonPadding: '--plasma-number-input_icon-button_padding',\n iconButtonRadius: '--plasma-number-input_icon-button_radius',\n iconButtonSegmentationRadius: '--plasma-number-input_icon-button_segmentation_radius',\n iconButtonFontFamily: '--plasma-number-input_icon-button_font-family',\n iconButtonFontSize: '--plasma-number-input_icon-button_font-size',\n iconButtonFontStyle: '--plasma-number-input_icon-button_font-style',\n iconButtonFontWeight: '--plasma-number-input_icon-button_font-weight',\n iconButtonLetterSpacing: '--plasma-number-input_icon-button_letter-spacing',\n iconButtonLineHeight: '--plasma-number-input_icon-button_line-height',\n\n // Input size tokens\n inputWrapperBorderWidth: '--plasma-number-input_input-wrapper_border-width',\n inputWrapperMargin: '--plasma-number-input_input-wrapper_margin',\n inputWrapperBorderRadius: '--plasma-number-input_input-wrapper_border-radius',\n textWrapperHeight: '--plasma-number-input_text-wrapper_height',\n textWrapperPadding: '--plasma-number-input_text-wrapper_padding',\n\n fontFamily: '--plasma-number-input_font-family',\n fontStyle: '--plasma-number-input_font-style',\n fontSize: '--plasma-number-input_font-size',\n fontWeight: '--plasma-number-input_font-weight',\n letterSpacing: '--plasma-number-input_letter-spacing',\n lineHeight: '--plasma-number-input_line-height',\n\n textBeforeMarginRight: '--plasma-number-input_text-before_margin-right',\n textAfterMarginLeft: '--plasma-number-input_text-after_margin-left',\n\n // Input view tokens\n caretColor: '--plasma-number-input_caret_color',\n caretColorSolid: '--plasma-number-input_caret_color-solid',\n color: '--plasma-number-input_color',\n colorSolid: '--plasma-number-input_color-solid',\n backgroundColor: '--plasma-number-input_background-color',\n backgroundColorHover: '--plasma-number-input_background-color-hover',\n backgroundColorFocus: '--plasma-number-input_background-color-focus',\n backgroundColorSolidFocus: '--plasma-number-input_background-color-solid-focus',\n backgroundColorSolid: '--plasma-number-input_background-color-solid',\n borderColor: '--plasma-number-input_border-color',\n borderColorHover: '--plasma-number-input_border-color-hover',\n borderColorFocus: '--plasma-number-input_border-color-focus',\n borderColorSolidFocus: '--plasma-number-input_border-color-solid-focus',\n borderColorSolid: '--plasma-number-input_border-color-solid',\n additionalTextColor: '--plasma-number-input_additional-text_color',\n additionalTextColorSolid: '--plasma-number-input_additional-text_color-solid',\n\n errorColor: '--plasma-number-input_error-color',\n backgroundErrorColor: '--plasma-number-input_background_error-color',\n borderErrorColor: '--plasma-number-input_border_error-color',\n\n // Loader tokens\n loaderSpinnerSize: '--plasma-number-input_loader-spinner_size',\n loaderSpinnerColor: '--plasma-number-input_loader-spinner_color',\n loaderSpinnerColorSolid: '--plasma-number-input_loader-spinner_color-solid',\n};\n"],"names":["classes","actionButtonDecrement","actionButtonDecrementDisabled","actionButtonIncrement","actionButtonIncrementDisabled","textBefore","textAfter","solidView","segmentedView","clearView","errorAnimation","disabled","loading","focused","manualInput","privateTokens","inputWidth","segmentationBorderRadius","segmentationInputBorderRadius","topBoxShadow","bottomBoxShadow","leftBoxShadow","rightBoxShadow","tokens","rootMinWidth","disabledOpacity","rootBorderWidth","wrapperBorderColor","wrapperBorderColorFocus","iconButtonColor","iconButtonBackgroundColor","iconButtonColorHover","iconButtonColorSolidHover","iconButtonBackgroundColorHover","iconButtonColorActive","iconButtonColorSolidActive","iconButtonBackgroundColorActive","actionButtonDisabledOpacity","iconButtonHeight","iconButtonWidth","iconButtonPadding","iconButtonRadius","iconButtonSegmentationRadius","iconButtonFontFamily","iconButtonFontSize","iconButtonFontStyle","iconButtonFontWeight","iconButtonLetterSpacing","iconButtonLineHeight","inputWrapperBorderWidth","inputWrapperMargin","inputWrapperBorderRadius","textWrapperHeight","textWrapperPadding","fontFamily","fontStyle","fontSize","fontWeight","letterSpacing","lineHeight","textBeforeMarginRight","textAfterMarginLeft","caretColor","caretColorSolid","color","colorSolid","backgroundColor","backgroundColorHover","backgroundColorFocus","backgroundColorSolidFocus","backgroundColorSolid","borderColor","borderColorHover","borderColorFocus","borderColorSolidFocus","borderColorSolid","additionalTextColor","additionalTextColorSolid","errorColor","backgroundErrorColor","borderErrorColor","loaderSpinnerSize","loaderSpinnerColor","loaderSpinnerColorS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AE,wCAAwC;AACzDC,EAAAA,oBAAoB,EAAE,8CAA8C;AACpEC,EAAAA,oBAAoB,EAAE,8CAA8C;AACpEC,EAAAA,yBAAyB,EAAE,oDAAoD;AAC/EC,EAAAA,oBAAoB,EAAE,8CAA8C;AACpEC,EAAAA,WAAW,EAAE,oCAAoC;AACjDC,EAAAA,gBAAgB,EAAE,0CAA0C;AAC5DC,EAAAA,gBAAgB,EAAE,0CAA0C;AAC5DC,EAAAA,qBAAqB,EAAE,gDAAgD;AACvEC,EAAAA,gBAAgB,EAAE,0CAA0C;AAC5DC,EAAAA,mBAAmB,EAAE,6CAA6C;AAClEC,EAAAA,wBAAwB,EAAE,mDAAmD;AAE7EC,EAAAA,UAAU,EAAE,mCAAmC;AAC/CC,EAAAA,oBAAoB,EAAE,8CAA8C;AACpEC,EAAAA,gBAAgB,EAAE,0CAA0C;AAE5D;AACAC,EAAAA,iBAAiB,EAAE,2CAA2C;AAC9DC,EAAAA,kBAAkB,EAAE,4CAA4C;AAChEC,EAAAA,uBAAuB,EAAE,kDAAA;AAC7B;;;;"}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { StyledIconButton } from './ActionButton.styles.js';
3
-
4
- var ActionButton = function ActionButton(_ref) {
5
- var icon = _ref.icon,
6
- className = _ref.className,
7
- onClick = _ref.onClick;
8
- return /*#__PURE__*/React.createElement(StyledIconButton, {
9
- className: className,
10
- onClick: onClick
11
- }, icon);
12
- };
13
-
14
- export { ActionButton };
15
- //# sourceMappingURL=ActionButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionButton.js","sources":["../../../../../src/components/NumberInput/ui/ActionButton/ActionButton.tsx"],"sourcesContent":["import React, { FC } from 'react';\n\nimport { StyledIconButton } from './ActionButton.styles';\nimport type { ActionButtonProps } from './ActionButton.types';\n\nexport const ActionButton: FC<ActionButtonProps> = ({ icon, className, onClick }) => {\n return (\n <StyledIconButton className={className} onClick={onClick}>\n {icon}\n </StyledIconButton>\n );\n};\n"],"names":["ActionButton","_ref","icon","className","onClick","React","createElement","StyledIconButton"],"mappings":";;;IAKaA,YAAmC,GAAG,SAAtCA,YAAmCA,CAAAC,IAAA,EAAqC;AAAA,EAAA,IAA/BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IAAEC,OAAO,GAAAH,IAAA,CAAPG,OAAO,CAAA;AAC1E,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,gBAAgB,EAAA;AAACJ,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,OAAO,EAAEA,OAAAA;AAAQ,GAAA,EACpDF,IACa,CAAC,CAAA;AAE3B;;;;"}