@salutejs/plasma-new-hope 0.176.0-canary.1511.11555353496.0 → 0.176.0-canary.1514.11559014063.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. package/cjs/components/Counter/Counter.css +1 -1
  2. package/cjs/components/Counter/Counter.js +12 -3
  3. package/cjs/components/Counter/Counter.js.map +1 -1
  4. package/cjs/components/Counter/Counter.tokens.js +4 -0
  5. package/cjs/components/Counter/Counter.tokens.js.map +1 -1
  6. package/cjs/components/Counter/variations/_size/base.js +1 -1
  7. package/cjs/components/Counter/variations/_size/base.js.map +1 -1
  8. package/cjs/components/Counter/variations/_size/{base_1z0ohiy.css → base_4mz17d.css} +1 -1
  9. package/cjs/index.css +1 -24
  10. package/cjs/index.js +0 -6
  11. package/cjs/index.js.map +1 -1
  12. package/emotion/cjs/components/Counter/Counter.js +12 -3
  13. package/emotion/cjs/components/Counter/Counter.template-doc.mdx +2 -2
  14. package/emotion/cjs/components/Counter/Counter.tokens.js +4 -1
  15. package/emotion/cjs/components/Counter/variations/_size/base.js +1 -1
  16. package/emotion/cjs/examples/plasma_b2c/components/Counter/Counter.config.js +12 -9
  17. package/emotion/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +7 -5
  18. package/emotion/cjs/examples/plasma_web/components/Counter/Counter.config.js +12 -9
  19. package/emotion/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +7 -5
  20. package/emotion/cjs/index.js +0 -11
  21. package/emotion/es/components/Counter/Counter.js +12 -3
  22. package/emotion/es/components/Counter/Counter.template-doc.mdx +2 -2
  23. package/emotion/es/components/Counter/Counter.tokens.js +3 -0
  24. package/emotion/es/components/Counter/variations/_size/base.js +2 -2
  25. package/emotion/es/examples/plasma_b2c/components/Counter/Counter.config.js +12 -9
  26. package/emotion/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +7 -5
  27. package/emotion/es/examples/plasma_web/components/Counter/Counter.config.js +12 -9
  28. package/emotion/es/examples/plasma_web/components/Counter/Counter.stories.tsx +7 -5
  29. package/emotion/es/index.js +1 -2
  30. package/es/components/Counter/Counter.css +1 -1
  31. package/es/components/Counter/Counter.js +12 -3
  32. package/es/components/Counter/Counter.js.map +1 -1
  33. package/es/components/Counter/Counter.tokens.js +4 -1
  34. package/es/components/Counter/Counter.tokens.js.map +1 -1
  35. package/es/components/Counter/variations/_size/base.js +1 -1
  36. package/es/components/Counter/variations/_size/base.js.map +1 -1
  37. package/es/components/Counter/variations/_size/{base_1z0ohiy.css → base_4mz17d.css} +1 -1
  38. package/es/index.css +1 -24
  39. package/es/index.js +0 -2
  40. package/es/index.js.map +1 -1
  41. package/package.json +2 -2
  42. package/styled-components/cjs/components/Counter/Counter.js +12 -3
  43. package/styled-components/cjs/components/Counter/Counter.template-doc.mdx +2 -2
  44. package/styled-components/cjs/components/Counter/Counter.tokens.js +4 -1
  45. package/styled-components/cjs/components/Counter/variations/_size/base.js +1 -1
  46. package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.config.js +5 -2
  47. package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +7 -5
  48. package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.config.js +5 -2
  49. package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +7 -5
  50. package/styled-components/cjs/index.js +0 -11
  51. package/styled-components/es/components/Counter/Counter.js +12 -3
  52. package/styled-components/es/components/Counter/Counter.template-doc.mdx +2 -2
  53. package/styled-components/es/components/Counter/Counter.tokens.js +3 -0
  54. package/styled-components/es/components/Counter/variations/_size/base.js +2 -2
  55. package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.config.js +5 -2
  56. package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +7 -5
  57. package/styled-components/es/examples/plasma_web/components/Counter/Counter.config.js +5 -2
  58. package/styled-components/es/examples/plasma_web/components/Counter/Counter.stories.tsx +7 -5
  59. package/styled-components/es/index.js +1 -2
  60. package/types/components/Counter/Counter.d.ts.map +1 -1
  61. package/types/components/Counter/Counter.tokens.d.ts +3 -0
  62. package/types/components/Counter/Counter.tokens.d.ts.map +1 -1
  63. package/types/components/Counter/Counter.types.d.ts +2 -2
  64. package/types/components/Counter/variations/_size/base.d.ts.map +1 -1
  65. package/types/examples/plasma_b2c/components/Counter/Counter.config.d.ts +3 -0
  66. package/types/examples/plasma_b2c/components/Counter/Counter.config.d.ts.map +1 -1
  67. package/types/examples/plasma_b2c/components/Counter/Counter.d.ts +3 -0
  68. package/types/examples/plasma_b2c/components/Counter/Counter.d.ts.map +1 -1
  69. package/types/examples/plasma_web/components/Counter/Counter.config.d.ts +3 -0
  70. package/types/examples/plasma_web/components/Counter/Counter.config.d.ts.map +1 -1
  71. package/types/examples/plasma_web/components/Counter/Counter.d.ts +3 -0
  72. package/types/examples/plasma_web/components/Counter/Counter.d.ts.map +1 -1
  73. package/types/index.d.ts +0 -1
  74. package/types/index.d.ts.map +1 -1
  75. package/cjs/components/NumberInput/NumberInput.css +0 -52
  76. package/cjs/components/NumberInput/NumberInput.js +0 -183
  77. package/cjs/components/NumberInput/NumberInput.js.map +0 -1
  78. package/cjs/components/NumberInput/NumberInput.styles.js +0 -9
  79. package/cjs/components/NumberInput/NumberInput.styles.js.map +0 -1
  80. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  81. package/cjs/components/NumberInput/NumberInput.tokens.js +0 -91
  82. package/cjs/components/NumberInput/NumberInput.tokens.js.map +0 -1
  83. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -19
  84. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  85. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -22
  86. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  87. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +0 -1
  88. package/cjs/components/NumberInput/ui/Input/Input.css +0 -15
  89. package/cjs/components/NumberInput/ui/Input/Input.js +0 -197
  90. package/cjs/components/NumberInput/ui/Input/Input.js.map +0 -1
  91. package/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -96
  92. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  93. package/cjs/components/NumberInput/ui/Input/Input.styles_fhgb95.css +0 -8
  94. package/cjs/components/NumberInput/utils/index.js +0 -8
  95. package/cjs/components/NumberInput/utils/index.js.map +0 -1
  96. package/cjs/components/NumberInput/variations/_background-type/base.js +0 -9
  97. package/cjs/components/NumberInput/variations/_background-type/base.js.map +0 -1
  98. package/cjs/components/NumberInput/variations/_background-type/base_dx9knv.css +0 -1
  99. package/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  100. package/cjs/components/NumberInput/variations/_disabled/base.js.map +0 -1
  101. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  102. package/cjs/components/NumberInput/variations/_segmentation/base.js +0 -9
  103. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  104. package/cjs/components/NumberInput/variations/_segmentation/base_1mg9wqg.css +0 -1
  105. package/cjs/components/NumberInput/variations/_shape/base.js +0 -9
  106. package/cjs/components/NumberInput/variations/_shape/base.js.map +0 -1
  107. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  108. package/cjs/components/NumberInput/variations/_size/base.js +0 -9
  109. package/cjs/components/NumberInput/variations/_size/base.js.map +0 -1
  110. package/cjs/components/NumberInput/variations/_size/base_yqdmk4.css +0 -1
  111. package/cjs/components/NumberInput/variations/_view/base.js +0 -9
  112. package/cjs/components/NumberInput/variations/_view/base.js.map +0 -1
  113. package/cjs/components/NumberInput/variations/_view/base_3gefjm.css +0 -1
  114. package/emotion/cjs/components/NumberInput/NumberInput.js +0 -193
  115. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +0 -17
  116. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +0 -88
  117. package/emotion/cjs/components/NumberInput/NumberInput.types.js +0 -5
  118. package/emotion/cjs/components/NumberInput/index.js +0 -31
  119. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  120. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -16
  121. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  122. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -205
  123. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -81
  124. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  125. package/emotion/cjs/components/NumberInput/ui/index.js +0 -19
  126. package/emotion/cjs/components/NumberInput/utils/index.js +0 -7
  127. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  128. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  129. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  130. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  131. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  132. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  133. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  134. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  135. package/emotion/cjs/components/NumberInput/variations/_size/base.js +0 -13
  136. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  137. package/emotion/cjs/components/NumberInput/variations/_view/base.js +0 -13
  138. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  139. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -46
  140. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  141. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  142. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -46
  143. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  144. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  145. package/emotion/es/components/NumberInput/NumberInput.js +0 -185
  146. package/emotion/es/components/NumberInput/NumberInput.styles.js +0 -11
  147. package/emotion/es/components/NumberInput/NumberInput.tokens.js +0 -82
  148. package/emotion/es/components/NumberInput/NumberInput.types.js +0 -1
  149. package/emotion/es/components/NumberInput/index.js +0 -2
  150. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  151. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -9
  152. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  153. package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -196
  154. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +0 -74
  155. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  156. package/emotion/es/components/NumberInput/ui/index.js +0 -2
  157. package/emotion/es/components/NumberInput/utils/index.js +0 -1
  158. package/emotion/es/components/NumberInput/variations/_background-type/base.js +0 -4
  159. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  160. package/emotion/es/components/NumberInput/variations/_disabled/base.js +0 -3
  161. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  162. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  163. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  164. package/emotion/es/components/NumberInput/variations/_shape/base.js +0 -5
  165. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  166. package/emotion/es/components/NumberInput/variations/_size/base.js +0 -7
  167. package/emotion/es/components/NumberInput/variations/_size/tokens.json +0 -22
  168. package/emotion/es/components/NumberInput/variations/_view/base.js +0 -7
  169. package/emotion/es/components/NumberInput/variations/_view/tokens.json +0 -14
  170. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -40
  171. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  172. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  173. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -40
  174. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  175. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  176. package/es/components/NumberInput/NumberInput.css +0 -52
  177. package/es/components/NumberInput/NumberInput.js +0 -178
  178. package/es/components/NumberInput/NumberInput.js.map +0 -1
  179. package/es/components/NumberInput/NumberInput.styles.js +0 -5
  180. package/es/components/NumberInput/NumberInput.styles.js.map +0 -1
  181. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  182. package/es/components/NumberInput/NumberInput.tokens.js +0 -85
  183. package/es/components/NumberInput/NumberInput.tokens.js.map +0 -1
  184. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -15
  185. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  186. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -18
  187. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  188. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +0 -1
  189. package/es/components/NumberInput/ui/Input/Input.css +0 -15
  190. package/es/components/NumberInput/ui/Input/Input.js +0 -193
  191. package/es/components/NumberInput/ui/Input/Input.js.map +0 -1
  192. package/es/components/NumberInput/ui/Input/Input.styles.js +0 -85
  193. package/es/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  194. package/es/components/NumberInput/ui/Input/Input.styles_fhgb95.css +0 -8
  195. package/es/components/NumberInput/utils/index.js +0 -4
  196. package/es/components/NumberInput/utils/index.js.map +0 -1
  197. package/es/components/NumberInput/variations/_background-type/base.js +0 -5
  198. package/es/components/NumberInput/variations/_background-type/base.js.map +0 -1
  199. package/es/components/NumberInput/variations/_background-type/base_dx9knv.css +0 -1
  200. package/es/components/NumberInput/variations/_disabled/base.js +0 -5
  201. package/es/components/NumberInput/variations/_disabled/base.js.map +0 -1
  202. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  203. package/es/components/NumberInput/variations/_segmentation/base.js +0 -5
  204. package/es/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  205. package/es/components/NumberInput/variations/_segmentation/base_1mg9wqg.css +0 -1
  206. package/es/components/NumberInput/variations/_shape/base.js +0 -5
  207. package/es/components/NumberInput/variations/_shape/base.js.map +0 -1
  208. package/es/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  209. package/es/components/NumberInput/variations/_size/base.js +0 -5
  210. package/es/components/NumberInput/variations/_size/base.js.map +0 -1
  211. package/es/components/NumberInput/variations/_size/base_yqdmk4.css +0 -1
  212. package/es/components/NumberInput/variations/_view/base.js +0 -5
  213. package/es/components/NumberInput/variations/_view/base.js.map +0 -1
  214. package/es/components/NumberInput/variations/_view/base_3gefjm.css +0 -1
  215. package/styled-components/cjs/components/NumberInput/NumberInput.js +0 -193
  216. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +0 -8
  217. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +0 -88
  218. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +0 -5
  219. package/styled-components/cjs/components/NumberInput/index.js +0 -31
  220. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  221. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -15
  222. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  223. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -205
  224. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -48
  225. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  226. package/styled-components/cjs/components/NumberInput/ui/index.js +0 -19
  227. package/styled-components/cjs/components/NumberInput/utils/index.js +0 -7
  228. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  229. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  230. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  231. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  232. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  233. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  234. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  235. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  236. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +0 -13
  237. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  238. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +0 -13
  239. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  240. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -46
  241. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  242. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  243. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -46
  244. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  245. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  246. package/styled-components/es/components/NumberInput/NumberInput.js +0 -185
  247. package/styled-components/es/components/NumberInput/NumberInput.styles.js +0 -2
  248. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +0 -82
  249. package/styled-components/es/components/NumberInput/NumberInput.types.js +0 -1
  250. package/styled-components/es/components/NumberInput/index.js +0 -2
  251. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  252. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -8
  253. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  254. package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -196
  255. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +0 -41
  256. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  257. package/styled-components/es/components/NumberInput/ui/index.js +0 -2
  258. package/styled-components/es/components/NumberInput/utils/index.js +0 -1
  259. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +0 -4
  260. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  261. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +0 -3
  262. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  263. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  264. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  265. package/styled-components/es/components/NumberInput/variations/_shape/base.js +0 -5
  266. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  267. package/styled-components/es/components/NumberInput/variations/_size/base.js +0 -7
  268. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +0 -22
  269. package/styled-components/es/components/NumberInput/variations/_view/base.js +0 -7
  270. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +0 -14
  271. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -40
  272. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  273. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  274. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -40
  275. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  276. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  277. package/types/components/NumberInput/NumberInput.d.ts +0 -38
  278. package/types/components/NumberInput/NumberInput.d.ts.map +0 -1
  279. package/types/components/NumberInput/NumberInput.styles.d.ts +0 -2
  280. package/types/components/NumberInput/NumberInput.styles.d.ts.map +0 -1
  281. package/types/components/NumberInput/NumberInput.tokens.d.ts +0 -77
  282. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +0 -1
  283. package/types/components/NumberInput/NumberInput.types.d.ts +0 -112
  284. package/types/components/NumberInput/NumberInput.types.d.ts.map +0 -1
  285. package/types/components/NumberInput/index.d.ts +0 -3
  286. package/types/components/NumberInput/index.d.ts.map +0 -1
  287. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +0 -4
  288. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +0 -1
  289. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +0 -45
  290. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +0 -1
  291. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +0 -7
  292. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +0 -1
  293. package/types/components/NumberInput/ui/Input/Input.d.ts +0 -16
  294. package/types/components/NumberInput/ui/Input/Input.d.ts.map +0 -1
  295. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +0 -30
  296. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +0 -1
  297. package/types/components/NumberInput/ui/Input/Input.types.d.ts +0 -16
  298. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +0 -1
  299. package/types/components/NumberInput/ui/index.d.ts +0 -3
  300. package/types/components/NumberInput/ui/index.d.ts.map +0 -1
  301. package/types/components/NumberInput/utils/index.d.ts +0 -2
  302. package/types/components/NumberInput/utils/index.d.ts.map +0 -1
  303. package/types/components/NumberInput/variations/_background-type/base.d.ts +0 -2
  304. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +0 -1
  305. package/types/components/NumberInput/variations/_disabled/base.d.ts +0 -2
  306. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +0 -1
  307. package/types/components/NumberInput/variations/_segmentation/base.d.ts +0 -2
  308. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +0 -1
  309. package/types/components/NumberInput/variations/_shape/base.d.ts +0 -2
  310. package/types/components/NumberInput/variations/_shape/base.d.ts.map +0 -1
  311. package/types/components/NumberInput/variations/_size/base.d.ts +0 -2
  312. package/types/components/NumberInput/variations/_size/base.d.ts.map +0 -1
  313. package/types/components/NumberInput/variations/_view/base.d.ts +0 -2
  314. package/types/components/NumberInput/variations/_view/base.d.ts.map +0 -1
  315. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +0 -39
  316. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  317. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +0 -82
  318. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +0 -1
  319. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +0 -39
  320. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  321. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +0 -82
  322. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
1
  .base_1vjakah_b15waymg__f123ad8a{color:var(--plasma-counter-color);background-color:var(--plasma-counter-background);}
2
2
 
3
- .base_1z0ohiy_b1t6e429__9712bb45{font-family:var(--plasma-counter-font-family);font-size:var(--plasma-counter-font-size);font-style:var(--plasma-counter-font-style);font-weight:var(--plasma-counter-font-weight);-webkit-letter-spacing:var(--plasma-counter-letter-spacing);-moz-letter-spacing:var(--plasma-counter-letter-spacing);-ms-letter-spacing:var(--plasma-counter-letter-spacing);letter-spacing:var(--plasma-counter-letter-spacing);line-height:var(--plasma-counter-lineheight);border-radius:var(--plasma-counter-border-radius);height:var(--plasma-counter-height);padding-top:var(--plasma-counter-padding-top);padding-right:var(--plasma-counter-padding-right);padding-bottom:var(--plasma-counter-padding-bottom);padding-left:var(--plasma-counter-padding-left);}
3
+ .base_4mz17d_b1t6e429__b5e2cba4{font-family:var(--plasma-counter-font-family);font-size:var(--plasma-counter-font-size);font-style:var(--plasma-counter-font-style);font-weight:var(--plasma-counter-font-weight);-webkit-letter-spacing:var(--plasma-counter-letter-spacing);-moz-letter-spacing:var(--plasma-counter-letter-spacing);-ms-letter-spacing:var(--plasma-counter-letter-spacing);letter-spacing:var(--plasma-counter-letter-spacing);line-height:var(--plasma-counter-lineheight);border-radius:var(--plasma-counter-border-radius);height:var(--plasma-counter-height);padding-top:var(--plasma-counter-padding-top);padding-right:var(--plasma-counter-padding-right);padding-bottom:var(--plasma-counter-padding-bottom);padding-left:var(--plasma-counter-padding-left);}.base_4mz17d_b1t6e429__b5e2cba4.base_4mz17d__PlasmaCounterRound__b5e2cba4{width:var(--plasma-counter-height);}
4
4
 
5
5
  .Counter_styles_1uue90v_b1dqw7l5__00d0b847{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;width:-webkit-max-content;width:-moz-max-content;width:max-content;}
@@ -4,24 +4,33 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var React = require('react');
7
+ var index = require('../../utils/index.js');
7
8
  var base = require('./variations/_view/base.js');
8
9
  var base$1 = require('./variations/_size/base.js');
9
10
  var Counter_styles = require('./Counter.styles.js');
11
+ var Counter_tokens = require('./Counter.tokens.js');
10
12
 
11
- var _excluded = ["count", "maxCount", "size", "view"];
13
+ var _excluded = ["count", "maxCount", "size", "view", "className"];
14
+ var MIN_COUNT = 1;
12
15
  var counterRoot = function counterRoot(Root) {
13
16
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
14
17
  var count = props.count,
15
18
  maxCount = props.maxCount,
16
19
  size = props.size,
17
20
  view = props.view,
21
+ className = props.className,
18
22
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
19
- var content = maxCount && count > maxCount ? "".concat(maxCount, "+") : count;
23
+ var currCount = count < MIN_COUNT ? MIN_COUNT : count;
24
+ var currMaxCount = maxCount && maxCount < MIN_COUNT ? MIN_COUNT : maxCount;
25
+ var currMaxCountExceeded = currMaxCount && currCount > currMaxCount;
26
+ var content = currMaxCountExceeded ? "".concat(currMaxCount, "+") : currCount;
27
+ var roundClass = !currMaxCountExceeded && currCount >= 0 && currCount < 10 ? Counter_tokens.classes.round : undefined;
20
28
  return /*#__PURE__*/React.createElement(Root, _rollupPluginBabelHelpers.extends({
21
29
  ref: ref,
22
30
  view: view,
23
31
  size: size,
24
- count: count
32
+ count: count,
33
+ className: index.cx(roundClass, className)
25
34
  }, rest), content);
26
35
  });
27
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Counter.js","sources":["../../../src/components/Counter/Counter.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport type { CounterProps } from './Counter.types';\nimport { base } from './Counter.styles';\n\nexport const counterRoot = (Root: RootProps<HTMLDivElement, CounterProps>) =>\n forwardRef<HTMLDivElement, CounterProps>((props, ref) => {\n const { count, maxCount, size, view, ...rest } = props;\n\n const content = maxCount && count > maxCount ? `${maxCount}+` : count;\n\n return (\n <Root ref={ref} view={view} size={size} count={count} {...rest}>\n {content}\n </Root>\n );\n });\n\nexport const counterConfig = {\n name: 'Counter',\n tag: 'div',\n layout: counterRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'xs',\n },\n};\n"],"names":["counterRoot","Root","forwardRef","props","ref","count","maxCount","size","view","rest","_objectWithoutProperties","_excluded","content","concat","React","createElement","_extends","counterConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;IASaA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAA6C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CAA+B,UAACC,KAAK,EAAEC,GAAG,EAAK;AACrD,IAAA,IAAQC,KAAK,GAAoCF,KAAK,CAA9CE,KAAK;MAAEC,QAAQ,GAA0BH,KAAK,CAAvCG,QAAQ;MAAEC,IAAI,GAAoBJ,KAAK,CAA7BI,IAAI;MAAEC,IAAI,GAAcL,KAAK,CAAvBK,IAAI;AAAKC,MAAAA,IAAI,GAAAC,iDAAA,CAAKP,KAAK,EAAAQ,SAAA,CAAA,CAAA;AAEtD,IAAA,IAAMC,OAAO,GAAGN,QAAQ,IAAID,KAAK,GAAGC,QAAQ,GAAA,EAAA,CAAAO,MAAA,CAAMP,QAAQ,EAAA,GAAA,CAAA,GAAMD,KAAK,CAAA;AAErE,IAAA,oBACIS,KAAA,CAAAC,aAAA,CAACd,IAAI,EAAAe,iCAAA,CAAA;AAACZ,MAAAA,GAAG,EAAEA,GAAI;AAACI,MAAAA,IAAI,EAAEA,IAAK;AAACD,MAAAA,IAAI,EAAEA,IAAK;AAACF,MAAAA,KAAK,EAAEA,KAAAA;KAAWI,EAAAA,IAAI,CACzDG,EAAAA,OACC,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMK,aAAa,GAAG;AACzBC,EAAAA,IAAI,EAAE,SAAS;AACfC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEpB,WAAW;AACnBqB,EAAAA,IAAI,EAAJA,mBAAI;AACJC,EAAAA,UAAU,EAAE;AACRd,IAAAA,IAAI,EAAE;AACFe,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDjB,IAAAA,IAAI,EAAE;AACFgB,MAAAA,GAAG,EAAEE,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNlB,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,IAAA;AACV,GAAA;AACJ;;;;;"}
1
+ {"version":3,"file":"Counter.js","sources":["../../../src/components/Counter/Counter.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport type { CounterProps } from './Counter.types';\nimport { base } from './Counter.styles';\nimport { classes } from './Counter.tokens';\n\nconst MIN_COUNT = 1;\n\nexport const counterRoot = (Root: RootProps<HTMLDivElement, CounterProps>) =>\n forwardRef<HTMLDivElement, CounterProps>((props, ref) => {\n const { count, maxCount, size, view, className, ...rest } = props;\n\n const currCount = count < MIN_COUNT ? MIN_COUNT : count;\n const currMaxCount = maxCount && maxCount < MIN_COUNT ? MIN_COUNT : maxCount;\n const currMaxCountExceeded = currMaxCount && currCount > currMaxCount;\n\n const content = currMaxCountExceeded ? `${currMaxCount}+` : currCount;\n\n const roundClass = !currMaxCountExceeded && currCount >= 0 && currCount < 10 ? classes.round : undefined;\n\n return (\n <Root ref={ref} view={view} size={size} count={count} className={cx(roundClass, className)} {...rest}>\n {content}\n </Root>\n );\n });\n\nexport const counterConfig = {\n name: 'Counter',\n tag: 'div',\n layout: counterRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'xs',\n },\n};\n"],"names":["MIN_COUNT","counterRoot","Root","forwardRef","props","ref","count","maxCount","size","view","className","rest","_objectWithoutProperties","_excluded","currCount","currMaxCount","currMaxCountExceeded","content","concat","roundClass","classes","round","undefined","React","createElement","_extends","cx","counterConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,SAAS,GAAG,CAAC,CAAA;IAENC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAA6C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CAA+B,UAACC,KAAK,EAAEC,GAAG,EAAK;AACrD,IAAA,IAAQC,KAAK,GAA+CF,KAAK,CAAzDE,KAAK;MAAEC,QAAQ,GAAqCH,KAAK,CAAlDG,QAAQ;MAAEC,IAAI,GAA+BJ,KAAK,CAAxCI,IAAI;MAAEC,IAAI,GAAyBL,KAAK,CAAlCK,IAAI;MAAEC,SAAS,GAAcN,KAAK,CAA5BM,SAAS;AAAKC,MAAAA,IAAI,GAAAC,iDAAA,CAAKR,KAAK,EAAAS,SAAA,CAAA,CAAA;IAEjE,IAAMC,SAAS,GAAGR,KAAK,GAAGN,SAAS,GAAGA,SAAS,GAAGM,KAAK,CAAA;IACvD,IAAMS,YAAY,GAAGR,QAAQ,IAAIA,QAAQ,GAAGP,SAAS,GAAGA,SAAS,GAAGO,QAAQ,CAAA;AAC5E,IAAA,IAAMS,oBAAoB,GAAGD,YAAY,IAAID,SAAS,GAAGC,YAAY,CAAA;IAErE,IAAME,OAAO,GAAGD,oBAAoB,GAAA,EAAA,CAAAE,MAAA,CAAMH,YAAY,SAAMD,SAAS,CAAA;AAErE,IAAA,IAAMK,UAAU,GAAG,CAACH,oBAAoB,IAAIF,SAAS,IAAI,CAAC,IAAIA,SAAS,GAAG,EAAE,GAAGM,sBAAO,CAACC,KAAK,GAAGC,SAAS,CAAA;AAExG,IAAA,oBACIC,KAAA,CAAAC,aAAA,CAACtB,IAAI,EAAAuB,iCAAA,CAAA;AAACpB,MAAAA,GAAG,EAAEA,GAAI;AAACI,MAAAA,IAAI,EAAEA,IAAK;AAACD,MAAAA,IAAI,EAAEA,IAAK;AAACF,MAAAA,KAAK,EAAEA,KAAM;AAACI,MAAAA,SAAS,EAAEgB,QAAE,CAACP,UAAU,EAAET,SAAS,CAAA;KAAOC,EAAAA,IAAI,CAC/FM,EAAAA,OACC,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMU,aAAa,GAAG;AACzBC,EAAAA,IAAI,EAAE,SAAS;AACfC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE7B,WAAW;AACnB8B,EAAAA,IAAI,EAAJA,mBAAI;AACJC,EAAAA,UAAU,EAAE;AACRvB,IAAAA,IAAI,EAAE;AACFwB,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACD1B,IAAAA,IAAI,EAAE;AACFyB,MAAAA,GAAG,EAAEE,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN3B,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,IAAA;AACV,GAAA;AACJ;;;;;"}
@@ -2,6 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var classes = {
6
+ round: '--plasma-counter-round'
7
+ };
5
8
  var tokens = {
6
9
  background: '--plasma-counter-background',
7
10
  color: '--plasma-counter-color',
@@ -19,5 +22,6 @@ var tokens = {
19
22
  lineHeight: '--plasma-counter-lineheight'
20
23
  };
21
24
 
25
+ exports.classes = classes;
22
26
  exports.tokens = tokens;
23
27
  //# sourceMappingURL=Counter.tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Counter.tokens.js","sources":["../../../src/components/Counter/Counter.tokens.ts"],"sourcesContent":["export const tokens = {\n background: '--plasma-counter-background',\n color: '--plasma-counter-color',\n\n borderRadius: '--plasma-counter-border-radius',\n height: '--plasma-counter-height',\n paddingTop: '--plasma-counter-padding-top',\n paddingRight: '--plasma-counter-padding-right',\n paddingBottom: '--plasma-counter-padding-bottom',\n paddingLeft: '--plasma-counter-padding-left',\n\n fontFamily: '--plasma-counter-font-family',\n fontSize: '--plasma-counter-font-size',\n fontStyle: '--plasma-counter-font-style',\n fontWeight: '--plasma-counter-font-weight',\n letterSpacing: '--plasma-counter-letter-spacing',\n lineHeight: '--plasma-counter-lineheight',\n};\n"],"names":["tokens","background","color","borderRadius","height","paddingTop","paddingRight","paddingBottom","paddingLeft","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight"],"mappings":";;;;AAAO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,6BAA6B;AACzCC,EAAAA,KAAK,EAAE,wBAAwB;AAE/BC,EAAAA,YAAY,EAAE,gCAAgC;AAC9CC,EAAAA,MAAM,EAAE,yBAAyB;AACjCC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,YAAY,EAAE,gCAAgC;AAC9CC,EAAAA,aAAa,EAAE,iCAAiC;AAChDC,EAAAA,WAAW,EAAE,+BAA+B;AAE5CC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,QAAQ,EAAE,4BAA4B;AACtCC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,aAAa,EAAE,iCAAiC;AAChDC,EAAAA,UAAU,EAAE,6BAAA;AAChB;;;;"}
1
+ {"version":3,"file":"Counter.tokens.js","sources":["../../../src/components/Counter/Counter.tokens.ts"],"sourcesContent":["export const classes = {\n round: '--plasma-counter-round',\n};\n\nexport const tokens = {\n background: '--plasma-counter-background',\n color: '--plasma-counter-color',\n\n borderRadius: '--plasma-counter-border-radius',\n height: '--plasma-counter-height',\n paddingTop: '--plasma-counter-padding-top',\n paddingRight: '--plasma-counter-padding-right',\n paddingBottom: '--plasma-counter-padding-bottom',\n paddingLeft: '--plasma-counter-padding-left',\n\n fontFamily: '--plasma-counter-font-family',\n fontSize: '--plasma-counter-font-size',\n fontStyle: '--plasma-counter-font-style',\n fontWeight: '--plasma-counter-font-weight',\n letterSpacing: '--plasma-counter-letter-spacing',\n lineHeight: '--plasma-counter-lineheight',\n};\n"],"names":["classes","round","tokens","background","color","borderRadius","height","paddingTop","paddingRight","paddingBottom","paddingLeft","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,KAAK,EAAE,wBAAA;AACX,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,6BAA6B;AACzCC,EAAAA,KAAK,EAAE,wBAAwB;AAE/BC,EAAAA,YAAY,EAAE,gCAAgC;AAC9CC,EAAAA,MAAM,EAAE,yBAAyB;AACjCC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,YAAY,EAAE,gCAAgC;AAC9CC,EAAAA,aAAa,EAAE,iCAAiC;AAChDC,EAAAA,WAAW,EAAE,+BAA+B;AAE5CC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,QAAQ,EAAE,4BAA4B;AACtCC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,aAAa,EAAE,iCAAiC;AAChDC,EAAAA,UAAU,EAAE,6BAAA;AAChB;;;;;"}
@@ -1,4 +1,4 @@
1
- import './base_1z0ohiy.css';
1
+ import './base_4mz17d.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Counter/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Counter.tokens';\n\nexport const base = css`\n font-family: var(${tokens.fontFamily});\n font-size: var(${tokens.fontSize});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${tokens.lineHeight});\n\n border-radius: var(${tokens.borderRadius});\n\n height: var(${tokens.height});\n\n padding-top: var(${tokens.paddingTop});\n padding-right: var(${tokens.paddingRight});\n padding-bottom: var(${tokens.paddingBottom});\n padding-left: var(${tokens.paddingLeft});\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAgBhB;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Counter/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from '../../Counter.tokens';\n\nexport const base = css`\n font-family: var(${tokens.fontFamily});\n font-size: var(${tokens.fontSize});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${tokens.lineHeight});\n\n border-radius: var(${tokens.borderRadius});\n\n height: var(${tokens.height});\n\n padding-top: var(${tokens.paddingTop});\n padding-right: var(${tokens.paddingRight});\n padding-bottom: var(${tokens.paddingBottom});\n padding-left: var(${tokens.paddingLeft});\n\n &.${classes.round} {\n width: var(${tokens.height});\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAoBhB;;;;"}
@@ -1 +1 @@
1
- .b1t6e429{font-family:var(--plasma-counter-font-family);font-size:var(--plasma-counter-font-size);font-style:var(--plasma-counter-font-style);font-weight:var(--plasma-counter-font-weight);-webkit-letter-spacing:var(--plasma-counter-letter-spacing);-moz-letter-spacing:var(--plasma-counter-letter-spacing);-ms-letter-spacing:var(--plasma-counter-letter-spacing);letter-spacing:var(--plasma-counter-letter-spacing);line-height:var(--plasma-counter-lineheight);border-radius:var(--plasma-counter-border-radius);height:var(--plasma-counter-height);padding-top:var(--plasma-counter-padding-top);padding-right:var(--plasma-counter-padding-right);padding-bottom:var(--plasma-counter-padding-bottom);padding-left:var(--plasma-counter-padding-left);}
1
+ .b1t6e429{font-family:var(--plasma-counter-font-family);font-size:var(--plasma-counter-font-size);font-style:var(--plasma-counter-font-style);font-weight:var(--plasma-counter-font-weight);-webkit-letter-spacing:var(--plasma-counter-letter-spacing);-moz-letter-spacing:var(--plasma-counter-letter-spacing);-ms-letter-spacing:var(--plasma-counter-letter-spacing);letter-spacing:var(--plasma-counter-letter-spacing);line-height:var(--plasma-counter-lineheight);border-radius:var(--plasma-counter-border-radius);height:var(--plasma-counter-height);padding-top:var(--plasma-counter-padding-top);padding-right:var(--plasma-counter-padding-right);padding-bottom:var(--plasma-counter-padding-bottom);padding-left:var(--plasma-counter-padding-left);}.b1t6e429.--plasma-counter-round{width:var(--plasma-counter-height);}
package/cjs/index.css CHANGED
@@ -475,7 +475,7 @@
475
475
 
476
476
  .base_1vjakah_b15waymg__f123ad8a{color:var(--plasma-counter-color);background-color:var(--plasma-counter-background);}
477
477
 
478
- .base_1z0ohiy_b1t6e429__9712bb45{font-family:var(--plasma-counter-font-family);font-size:var(--plasma-counter-font-size);font-style:var(--plasma-counter-font-style);font-weight:var(--plasma-counter-font-weight);-webkit-letter-spacing:var(--plasma-counter-letter-spacing);-moz-letter-spacing:var(--plasma-counter-letter-spacing);-ms-letter-spacing:var(--plasma-counter-letter-spacing);letter-spacing:var(--plasma-counter-letter-spacing);line-height:var(--plasma-counter-lineheight);border-radius:var(--plasma-counter-border-radius);height:var(--plasma-counter-height);padding-top:var(--plasma-counter-padding-top);padding-right:var(--plasma-counter-padding-right);padding-bottom:var(--plasma-counter-padding-bottom);padding-left:var(--plasma-counter-padding-left);}
478
+ .base_4mz17d_b1t6e429__b5e2cba4{font-family:var(--plasma-counter-font-family);font-size:var(--plasma-counter-font-size);font-style:var(--plasma-counter-font-style);font-weight:var(--plasma-counter-font-weight);-webkit-letter-spacing:var(--plasma-counter-letter-spacing);-moz-letter-spacing:var(--plasma-counter-letter-spacing);-ms-letter-spacing:var(--plasma-counter-letter-spacing);letter-spacing:var(--plasma-counter-letter-spacing);line-height:var(--plasma-counter-lineheight);border-radius:var(--plasma-counter-border-radius);height:var(--plasma-counter-height);padding-top:var(--plasma-counter-padding-top);padding-right:var(--plasma-counter-padding-right);padding-bottom:var(--plasma-counter-padding-bottom);padding-left:var(--plasma-counter-padding-left);}.base_4mz17d_b1t6e429__b5e2cba4.base_4mz17d__PlasmaCounterRound__b5e2cba4{width:var(--plasma-counter-height);}
479
479
 
480
480
  .Counter_styles_1uue90v_b1dqw7l5__00d0b847{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;width:-webkit-max-content;width:-moz-max-content;width:max-content;}
481
481
 
@@ -804,26 +804,3 @@
804
804
  .IconButton_styles_1q2jfs2_shuaj1a__7aea03a6{--plasma-icon-button-color:var(--plasma-attach-icon-button-cancel-color);--plasma-icon-button-background-color:var(--plasma-attach-icon-button-cancel-background-color);--plasma-icon-button-loading-background-color:var(--plasma-attach-icon-button-cancel-loading-background-color);--plasma-icon-button-color-hover:var(--plasma-attach-icon-button-cancel-color-hover);--plasma-icon-button-background-color-hover:var(--plasma-attach-icon-button-cancel-background-color-hover);--plasma-icon-button-color-active:var(--plasma-attach-icon-button-cancel-color-active);--plasma-icon-button-background-color-active:var(--plasma-attach-icon-button-cancel-background-color-active);--plasma-icon-button-scale-hover:var(--plasma-attach-icon-button-cancel-scale-hover);---plasma-icon-button-scale-active:var(---plasma-attach-icon-button-cancel-scale-active);--plasma-icon-button-height:var(--plasma-attach-icon-button-cancel-height);--plasma-icon-button-width:var(--plasma-attach-icon-button-cancel-width);--plasma-icon-button-padding:var(--plasma-attach-icon-button-cancel-padding);--plasma-icon-button-radius:var(--plasma-attach-icon-button-cancel-radius);--plasma-icon-button-radius-circle:var(--plasma-attach-icon-button-cancel-radius-circle);--plasma-icon-button-font-family:var(--plasma-attach-icon-button-cancel-font-family);--plasma-icon-button-font-size:var(--plasma-attach-icon-button-cancel-font-size);--plasma-icon-button-font-style:var(--plasma-attach-icon-button-cancel-font-style);--plasma-icon-button-font-weight:var(--plasma-attach-icon-button-cancel-font-weight);--plasma-icon-button-letter-spacing:var(--plasma-attach-icon-button-cancel-letter-spacing);--plasma-icon-button-line-height:var(--plasma-attach-icon-button-cancel-line-height);--plasma-icon-button-disabled-opacity:var(--plasma-attach-icon-button-cancel-disabled-opacity);--plasma-icon-button-focus-color:var(--plasma-attach-icon-button-cancel-focus-color);--plasma-icon-button-spinner-color:var(--plasma-attach-icon-button-cancel-spinner-color);--plasma-icon-button-spinner-size:var(--plasma-attach-icon-button-cancel-spinner-size);}
805
805
 
806
806
  .ViewContainer_yiqfcb_bemjbnt__5b2a6776{position:relative;}
807
-
808
- .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;}
809
- .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;}
810
-
811
-
812
-
813
- .Input_styles_fhgb95_d1n4jo6t__3bed5c8f{position:relative;}
814
- .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;}
815
- .Input_styles_fhgb95_i1il5xze__3bed5c8f{position:absolute;z-index:-999;visibility:hidden;top:0;left:0;opacity:0;height:0;white-space:pre;}
816
-
817
- .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;}
818
-
819
- .base_3gefjm_bhi37xj__00c46017 .base_3gefjm_sj0ab1b__00c46017{--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_3gefjm_bhi37xj__00c46017 .base_3gefjm_sj0ab1b__00c46017.base_3gefjm_actionButtonDecrementDisabled__00c46017,.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_sj0ab1b__00c46017.base_3gefjm_actionButtonIncrementDisabled__00c46017{opacity:var(--plasma-number-input_action-button_disabled-opacity);cursor:not-allowed;}.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_sj0ab1b__00c46017.base_3gefjm_actionButtonDecrementDisabled__00c46017:hover,.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_sj0ab1b__00c46017.base_3gefjm_actionButtonIncrementDisabled__00c46017:hover,.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_sj0ab1b__00c46017.base_3gefjm_actionButtonDecrementDisabled__00c46017:active,.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_sj0ab1b__00c46017.base_3gefjm_actionButtonIncrementDisabled__00c46017:active{scale:none;color:var(--plasma-number-input_icon-button_color);background-color:var(--plasma-number-input_icon-button_background-color);}.base_3gefjm_bhi37xj__00c46017.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_i1s8bsh6__00c46017.base_3gefjm_manualInputNumberInput__00c46017: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_3gefjm_bhi37xj__00c46017.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_i1s8bsh6__00c46017.base_3gefjm_manualInputNumberInput__00c46017.base_3gefjm_errorAnimation__00c46017{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_3gefjm_shakingErrorBhi37xj__00c46017 0.5s forwards;animation:base_3gefjm_shakingErrorBhi37xj__00c46017 0.5s forwards;}.base_3gefjm_bhi37xj__00c46017.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_i1s8bsh6__00c46017.base_3gefjm_manualInputNumberInput__00c46017.base_3gefjm_errorAnimation__00c46017 .base_3gefjm_i1tgbhg7__00c46017{color:var(--plasma-number-input_error-color);-webkit-animation:base_3gefjm_fadeErrorBhi37xj__00c46017 0.5s forwards;animation:base_3gefjm_fadeErrorBhi37xj__00c46017 0.5s forwards;}.base_3gefjm_bhi37xj__00c46017.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_i1s8bsh6__00c46017.base_3gefjm_manualInputNumberInput__00c46017.base_3gefjm_errorAnimation__00c46017: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_3gefjm_shakingErrorBhi37xj__00c46017{12.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}25%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}37.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}50%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}62.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}75%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}87.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}100%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}}@keyframes base_3gefjm_shakingErrorBhi37xj__00c46017{12.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}25%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}37.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}50%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}62.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}75%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}87.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}100%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}}@-webkit-keyframes base_3gefjm_fadeErrorBhi37xj__00c46017{50%{opacity:1;}100%{opacity:0;}}@keyframes base_3gefjm_fadeErrorBhi37xj__00c46017{50%{opacity:1;}100%{opacity:0;}}.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_s1ft73sv__00c46017{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color);}.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_i1tgbhg7__00c46017{color:var(--plasma-number-input_color);caret-color:var(--plasma-number-input_caret_color);}.base_3gefjm_bhi37xj__00c46017 .base_3gefjm_az36kha__00c46017{color:var(--plasma-number-input_additional-text_color);}
820
-
821
- .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);}
822
-
823
- .base_k05biw_b1l31q8y__7da7a6d0 .base_k05biw_sj0ab1b__7da7a6d0{--plasma-icon-button-radius:var(--plasma-number-input_icon-button_radius);}
824
-
825
- .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);}
826
-
827
- .base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_i1s8bsh6__b0f7c19c{border-radius:var(--plasma-number-input_input-wrapper_border-radius);}.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_radius);}.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_segmentedView__b0f7c19c,.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_segmentation_radius,var(--plasma-number-input_icon-button_radius));}.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrement__b0f7c19c{border-radius:var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius) var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius);}.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrement__b0f7c19c{border-radius:var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius) var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_segmentedView__b0f7c19c .base_1mg9wqg_i1s8bsh6__b0f7c19c{border-radius:var(--plasma-number-input_icon-button_segmentation_radius);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c{position:relative;}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c: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);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_i1s8bsh6__b0f7c19c{position:relative;color:var(--plasma-number-input_color-solid);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_i1s8bsh6__b0f7c19c:not(error-animation).base_1mg9wqg_manualInputNumberInput__b0f7c19c: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_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c:hover,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c:hover,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c:active,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c:active{background-color:transparent;}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c{opacity:1;}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c svg,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c:hover svg,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c:hover svg,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c:active svg,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c:active svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_s1ft73sv__b0f7c19c{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color-solid);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_i1tgbhg7__b0f7c19c{caret-color:var(--plasma-number-input_caret_color-solid,var(--plasma-number-input_caret_color));}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_i1tgbhg7__b0f7c19c:not(.base_1mg9wqg_errorAnimation__b0f7c19c){color:var(--plasma-number-input_color-solid);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_az36kha__b0f7c19c{color:var(--plasma-number-input_additional-text_color-solid);}
828
-
829
- .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;}
package/cjs/index.js CHANGED
@@ -206,8 +206,6 @@ var Mask = require('./components/Mask/Mask.js');
206
206
  var Attach = require('./components/Attach/Attach.js');
207
207
  var Attach_tokens = require('./components/Attach/Attach.tokens.js');
208
208
  var ViewContainer = require('./components/ViewContainer/ViewContainer.js');
209
- var NumberInput = require('./components/NumberInput/NumberInput.js');
210
- var NumberInput_tokens = require('./components/NumberInput/NumberInput.tokens.js');
211
209
 
212
210
 
213
211
 
@@ -601,8 +599,4 @@ exports.attachRoot = Attach.attachRoot;
601
599
  exports.attachTokens = Attach_tokens.tokens;
602
600
  exports.viewContainerConfig = ViewContainer.viewContainerConfig;
603
601
  exports.viewContainerRoot = ViewContainer.viewContainerRoot;
604
- exports.numberInputConfig = NumberInput.numberInputConfig;
605
- exports.numberInputRoot = NumberInput.numberInputRoot;
606
- exports.numberInputClasses = NumberInput_tokens.classes;
607
- exports.numberInputTokens = NumberInput_tokens.tokens;
608
602
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,28 +6,37 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.counterRoot = exports.counterConfig = void 0;
8
8
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
+ var _utils = /*#__PURE__*/require("../../utils");
9
10
  var _base = /*#__PURE__*/require("./variations/_view/base");
10
11
  var _base2 = /*#__PURE__*/require("./variations/_size/base");
11
12
  var _Counter = /*#__PURE__*/require("./Counter.styles");
12
- var _excluded = ["count", "maxCount", "size", "view"];
13
+ var _Counter2 = /*#__PURE__*/require("./Counter.tokens");
14
+ var _excluded = ["count", "maxCount", "size", "view", "className"];
13
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
17
  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); }
16
18
  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; }
17
19
  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; }
20
+ var MIN_COUNT = 1;
18
21
  var counterRoot = exports.counterRoot = function counterRoot(Root) {
19
22
  return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
20
23
  var count = props.count,
21
24
  maxCount = props.maxCount,
22
25
  size = props.size,
23
26
  view = props.view,
27
+ className = props.className,
24
28
  rest = _objectWithoutProperties(props, _excluded);
25
- var content = maxCount && count > maxCount ? "".concat(maxCount, "+") : count;
29
+ var currCount = count < MIN_COUNT ? MIN_COUNT : count;
30
+ var currMaxCount = maxCount && maxCount < MIN_COUNT ? MIN_COUNT : maxCount;
31
+ var currMaxCountExceeded = currMaxCount && currCount > currMaxCount;
32
+ var content = currMaxCountExceeded ? "".concat(currMaxCount, "+") : currCount;
33
+ var roundClass = !currMaxCountExceeded && currCount >= 0 && currCount < 10 ? _Counter2.classes.round : undefined;
26
34
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
27
35
  ref: ref,
28
36
  view: view,
29
37
  size: size,
30
- count: count
38
+ count: count,
39
+ className: (0, _utils.cx)(roundClass, className)
31
40
  }, rest), content);
32
41
  });
33
42
  };
@@ -12,7 +12,7 @@ import { PropsTable, Description } from '@site/src/components';
12
12
  ## Примеры
13
13
 
14
14
  ### Максимальное значение числового badge
15
- Задается с помощью свойства `maxCount`.
15
+ Задается с помощью свойства `maxCount`. Как и `count`, не может быть меньше 1.
16
16
 
17
17
  ```tsx live
18
18
  import React from 'react';
@@ -29,7 +29,7 @@ export function App() {
29
29
  ```
30
30
 
31
31
  ### Размер числового badge
32
- Размер задается с помощью свойства `size`. Возможные значения свойства: `"xs"` или `"xxs"`.
32
+ Размер задается с помощью свойства `size`. Возможные значения свойства: `xxs`, `xs`, `s`, `m`, `l`.
33
33
 
34
34
  ```tsx live
35
35
  import React from 'react';
@@ -3,7 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tokens = void 0;
6
+ exports.tokens = exports.classes = void 0;
7
+ var classes = exports.classes = {
8
+ round: '--plasma-counter-round'
9
+ };
7
10
  var tokens = exports.tokens = {
8
11
  background: '--plasma-counter-background',
9
12
  color: '--plasma-counter-color',
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _react = /*#__PURE__*/require("@emotion/react");
8
8
  var _Counter = /*#__PURE__*/require("../../Counter.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("font-family:var(", _Counter.tokens.fontFamily, ");font-size:var(", _Counter.tokens.fontSize, ");font-style:var(", _Counter.tokens.fontStyle, ");font-weight:var(", _Counter.tokens.fontWeight, ");letter-spacing:var(", _Counter.tokens.letterSpacing, ");line-height:var(", _Counter.tokens.lineHeight, ");border-radius:var(", _Counter.tokens.borderRadius, ");height:var(", _Counter.tokens.height, ");padding-top:var(", _Counter.tokens.paddingTop, ");padding-right:var(", _Counter.tokens.paddingRight, ");padding-bottom:var(", _Counter.tokens.paddingBottom, ");padding-left:var(", _Counter.tokens.paddingLeft, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ291bnRlci92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ291bnRlci92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL0NvdW50ZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5mb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMuZm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5mb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcblxuICAgIHBhZGRpbmctdG9wOiB2YXIoJHt0b2tlbnMucGFkZGluZ1RvcH0pO1xuICAgIHBhZGRpbmctcmlnaHQ6IHZhcigke3Rva2Vucy5wYWRkaW5nUmlnaHR9KTtcbiAgICBwYWRkaW5nLWJvdHRvbTogdmFyKCR7dG9rZW5zLnBhZGRpbmdCb3R0b219KTtcbiAgICBwYWRkaW5nLWxlZnQ6IHZhcigke3Rva2Vucy5wYWRkaW5nTGVmdH0pO1xuYDtcbiJdfQ== */"));
9
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("font-family:var(", _Counter.tokens.fontFamily, ");font-size:var(", _Counter.tokens.fontSize, ");font-style:var(", _Counter.tokens.fontStyle, ");font-weight:var(", _Counter.tokens.fontWeight, ");letter-spacing:var(", _Counter.tokens.letterSpacing, ");line-height:var(", _Counter.tokens.lineHeight, ");border-radius:var(", _Counter.tokens.borderRadius, ");height:var(", _Counter.tokens.height, ");padding-top:var(", _Counter.tokens.paddingTop, ");padding-right:var(", _Counter.tokens.paddingRight, ");padding-bottom:var(", _Counter.tokens.paddingBottom, ");padding-left:var(", _Counter.tokens.paddingLeft, ");&.", _Counter.classes.round, "{width:var(", _Counter.tokens.height, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ291bnRlci92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ291bnRlci92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL0NvdW50ZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5mb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMuZm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5mb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcblxuICAgIHBhZGRpbmctdG9wOiB2YXIoJHt0b2tlbnMucGFkZGluZ1RvcH0pO1xuICAgIHBhZGRpbmctcmlnaHQ6IHZhcigke3Rva2Vucy5wYWRkaW5nUmlnaHR9KTtcbiAgICBwYWRkaW5nLWJvdHRvbTogdmFyKCR7dG9rZW5zLnBhZGRpbmdCb3R0b219KTtcbiAgICBwYWRkaW5nLWxlZnQ6IHZhcigke3Rva2Vucy5wYWRkaW5nTGVmdH0pO1xuXG4gICAgJi4ke2NsYXNzZXMucm91bmR9IHtcbiAgICAgICAgd2lkdGg6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcbiAgICB9XG5gO1xuIl19 */"));