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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. package/cjs/components/Badge/Badge.css +3 -3
  2. package/cjs/components/Badge/Badge.js +3 -10
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.styles.js +5 -5
  5. package/cjs/components/Badge/Badge.styles.js.map +1 -1
  6. package/cjs/components/Badge/Badge.styles_8pi3br.css +4 -0
  7. package/cjs/components/Badge/Badge.tokens.js +1 -2
  8. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  9. package/cjs/components/NumberInput/NumberInput.css +52 -0
  10. package/cjs/components/NumberInput/NumberInput.js +205 -0
  11. package/cjs/components/NumberInput/NumberInput.js.map +1 -0
  12. package/cjs/components/NumberInput/NumberInput.styles.js +9 -0
  13. package/cjs/components/NumberInput/NumberInput.styles.js.map +1 -0
  14. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  15. package/cjs/components/NumberInput/NumberInput.tokens.js +102 -0
  16. package/cjs/components/NumberInput/NumberInput.tokens.js.map +1 -0
  17. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +19 -0
  18. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  19. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +22 -0
  20. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  21. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  22. package/cjs/components/NumberInput/ui/Input/Input.css +15 -0
  23. package/cjs/components/NumberInput/ui/Input/Input.js +204 -0
  24. package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -0
  25. package/cjs/components/NumberInput/ui/Input/Input.styles.js +96 -0
  26. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  27. package/cjs/components/NumberInput/ui/Input/Input.styles_fhgb95.css +8 -0
  28. package/cjs/components/NumberInput/utils/index.js +12 -0
  29. package/cjs/components/NumberInput/utils/index.js.map +1 -0
  30. package/cjs/components/NumberInput/variations/_background-type/base.js +9 -0
  31. package/cjs/components/NumberInput/variations/_background-type/base.js.map +1 -0
  32. package/cjs/components/NumberInput/variations/_background-type/base_dx9knv.css +1 -0
  33. package/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  34. package/cjs/components/NumberInput/variations/_disabled/base.js.map +1 -0
  35. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  36. package/cjs/components/NumberInput/variations/_segmentation/base.js +9 -0
  37. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  38. package/cjs/components/NumberInput/variations/_segmentation/base_14s5rot.css +1 -0
  39. package/cjs/components/NumberInput/variations/_shape/base.js +9 -0
  40. package/cjs/components/NumberInput/variations/_shape/base.js.map +1 -0
  41. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  42. package/cjs/components/NumberInput/variations/_size/base.js +9 -0
  43. package/cjs/components/NumberInput/variations/_size/base.js.map +1 -0
  44. package/cjs/components/NumberInput/variations/_size/base_yqdmk4.css +1 -0
  45. package/cjs/components/NumberInput/variations/_view/base.js +9 -0
  46. package/cjs/components/NumberInput/variations/_view/base.js.map +1 -0
  47. package/cjs/components/NumberInput/variations/_view/base_tnfbb5.css +1 -0
  48. package/cjs/components/Tabs/tokens.js +1 -2
  49. package/cjs/components/Tabs/tokens.js.map +1 -1
  50. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
  51. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -9
  52. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  53. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  54. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  55. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +5 -0
  56. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
  57. package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base_j8lg9u.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base_4zingj.css} +1 -1
  58. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
  59. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -9
  60. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  61. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  62. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  63. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +5 -0
  64. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
  65. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_12fk3xi.css → base_fueiq8.css} +1 -1
  66. package/cjs/index.css +38 -15
  67. package/cjs/index.js +6 -0
  68. package/cjs/index.js.map +1 -1
  69. package/emotion/cjs/components/Badge/Badge.js +3 -15
  70. package/emotion/cjs/components/Badge/Badge.styles.js +13 -4
  71. package/emotion/cjs/components/Badge/Badge.tokens.js +1 -2
  72. package/emotion/cjs/components/NumberInput/NumberInput.js +214 -0
  73. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +17 -0
  74. package/emotion/cjs/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  75. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +99 -0
  76. package/emotion/cjs/components/NumberInput/NumberInput.types.js +5 -0
  77. package/emotion/cjs/components/NumberInput/index.js +31 -0
  78. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  79. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +16 -0
  80. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  81. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +212 -0
  82. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +81 -0
  83. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  84. package/emotion/cjs/components/NumberInput/ui/index.js +19 -0
  85. package/emotion/cjs/components/NumberInput/utils/index.js +9 -0
  86. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  87. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  88. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  89. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  90. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  91. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  92. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  93. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  94. package/emotion/cjs/components/NumberInput/variations/_size/base.js +13 -0
  95. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  96. package/emotion/cjs/components/NumberInput/variations/_view/base.js +13 -0
  97. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  98. package/emotion/cjs/components/Tabs/tokens.js +1 -2
  99. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  100. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +12 -12
  101. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -14
  102. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +12 -12
  103. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  104. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  105. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +46 -0
  106. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  107. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  108. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  109. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  110. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  111. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +46 -0
  112. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  113. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  114. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  115. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  116. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  117. package/emotion/cjs/index.js +11 -0
  118. package/emotion/es/components/Badge/Badge.js +3 -16
  119. package/emotion/es/components/Badge/Badge.styles.js +14 -5
  120. package/emotion/es/components/Badge/Badge.tokens.js +1 -2
  121. package/emotion/es/components/NumberInput/NumberInput.js +206 -0
  122. package/emotion/es/components/NumberInput/NumberInput.styles.js +11 -0
  123. package/emotion/es/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  124. package/emotion/es/components/NumberInput/NumberInput.tokens.js +93 -0
  125. package/emotion/es/components/NumberInput/NumberInput.types.js +1 -0
  126. package/emotion/es/components/NumberInput/index.js +2 -0
  127. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  128. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +9 -0
  129. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  130. package/emotion/es/components/NumberInput/ui/Input/Input.js +203 -0
  131. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +74 -0
  132. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  133. package/emotion/es/components/NumberInput/ui/index.js +2 -0
  134. package/emotion/es/components/NumberInput/utils/index.js +3 -0
  135. package/emotion/es/components/NumberInput/variations/_background-type/base.js +4 -0
  136. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  137. package/emotion/es/components/NumberInput/variations/_disabled/base.js +3 -0
  138. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  139. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  140. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  141. package/emotion/es/components/NumberInput/variations/_shape/base.js +5 -0
  142. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  143. package/emotion/es/components/NumberInput/variations/_size/base.js +7 -0
  144. package/emotion/es/components/NumberInput/variations/_size/tokens.json +22 -0
  145. package/emotion/es/components/NumberInput/variations/_view/base.js +7 -0
  146. package/emotion/es/components/NumberInput/variations/_view/tokens.json +14 -0
  147. package/emotion/es/components/Tabs/tokens.js +1 -2
  148. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -15
  149. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +13 -13
  150. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -15
  151. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +13 -13
  152. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  153. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  154. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +40 -0
  155. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  156. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  157. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  158. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  159. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  160. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +40 -0
  161. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  162. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  163. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  164. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  165. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  166. package/emotion/es/index.js +2 -1
  167. package/es/components/Badge/Badge.css +3 -3
  168. package/es/components/Badge/Badge.js +4 -11
  169. package/es/components/Badge/Badge.js.map +1 -1
  170. package/es/components/Badge/Badge.styles.js +5 -5
  171. package/es/components/Badge/Badge.styles.js.map +1 -1
  172. package/es/components/Badge/Badge.styles_8pi3br.css +4 -0
  173. package/es/components/Badge/Badge.tokens.js +1 -2
  174. package/es/components/Badge/Badge.tokens.js.map +1 -1
  175. package/es/components/NumberInput/NumberInput.css +52 -0
  176. package/es/components/NumberInput/NumberInput.js +200 -0
  177. package/es/components/NumberInput/NumberInput.js.map +1 -0
  178. package/es/components/NumberInput/NumberInput.styles.js +5 -0
  179. package/es/components/NumberInput/NumberInput.styles.js.map +1 -0
  180. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  181. package/es/components/NumberInput/NumberInput.tokens.js +96 -0
  182. package/es/components/NumberInput/NumberInput.tokens.js.map +1 -0
  183. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +15 -0
  184. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  185. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +18 -0
  186. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  187. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  188. package/es/components/NumberInput/ui/Input/Input.css +15 -0
  189. package/es/components/NumberInput/ui/Input/Input.js +200 -0
  190. package/es/components/NumberInput/ui/Input/Input.js.map +1 -0
  191. package/es/components/NumberInput/ui/Input/Input.styles.js +85 -0
  192. package/es/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  193. package/es/components/NumberInput/ui/Input/Input.styles_fhgb95.css +8 -0
  194. package/es/components/NumberInput/utils/index.js +6 -0
  195. package/es/components/NumberInput/utils/index.js.map +1 -0
  196. package/es/components/NumberInput/variations/_background-type/base.js +5 -0
  197. package/es/components/NumberInput/variations/_background-type/base.js.map +1 -0
  198. package/es/components/NumberInput/variations/_background-type/base_dx9knv.css +1 -0
  199. package/es/components/NumberInput/variations/_disabled/base.js +5 -0
  200. package/es/components/NumberInput/variations/_disabled/base.js.map +1 -0
  201. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  202. package/es/components/NumberInput/variations/_segmentation/base.js +5 -0
  203. package/es/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  204. package/es/components/NumberInput/variations/_segmentation/base_14s5rot.css +1 -0
  205. package/es/components/NumberInput/variations/_shape/base.js +5 -0
  206. package/es/components/NumberInput/variations/_shape/base.js.map +1 -0
  207. package/es/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  208. package/es/components/NumberInput/variations/_size/base.js +5 -0
  209. package/es/components/NumberInput/variations/_size/base.js.map +1 -0
  210. package/es/components/NumberInput/variations/_size/base_yqdmk4.css +1 -0
  211. package/es/components/NumberInput/variations/_view/base.js +5 -0
  212. package/es/components/NumberInput/variations/_view/base.js.map +1 -0
  213. package/es/components/NumberInput/variations/_view/base_tnfbb5.css +1 -0
  214. package/es/components/Tabs/tokens.js +1 -2
  215. package/es/components/Tabs/tokens.js.map +1 -1
  216. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
  217. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +4 -10
  218. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  219. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  220. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  221. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +5 -0
  222. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
  223. package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base_j8lg9u.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base_4zingj.css} +1 -1
  224. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
  225. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +4 -10
  226. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  227. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  228. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  229. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +5 -0
  230. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
  231. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_12fk3xi.css → base_fueiq8.css} +1 -1
  232. package/es/index.css +38 -15
  233. package/es/index.js +2 -0
  234. package/es/index.js.map +1 -1
  235. package/package.json +2 -2
  236. package/styled-components/cjs/components/Badge/Badge.js +3 -15
  237. package/styled-components/cjs/components/Badge/Badge.styles.js +2 -2
  238. package/styled-components/cjs/components/Badge/Badge.tokens.js +1 -2
  239. package/styled-components/cjs/components/NumberInput/NumberInput.js +214 -0
  240. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +8 -0
  241. package/styled-components/cjs/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  242. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +99 -0
  243. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +5 -0
  244. package/styled-components/cjs/components/NumberInput/index.js +31 -0
  245. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  246. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +15 -0
  247. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  248. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +212 -0
  249. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +48 -0
  250. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  251. package/styled-components/cjs/components/NumberInput/ui/index.js +19 -0
  252. package/styled-components/cjs/components/NumberInput/utils/index.js +9 -0
  253. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  254. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  255. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  256. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  257. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  258. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  259. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  260. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  261. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +13 -0
  262. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  263. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +13 -0
  264. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  265. package/styled-components/cjs/components/Tabs/tokens.js +1 -2
  266. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  267. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +8 -8
  268. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -14
  269. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +9 -9
  270. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  271. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  272. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +46 -0
  273. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  274. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  275. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  276. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  277. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  278. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +46 -0
  279. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  280. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  281. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  282. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  283. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  284. package/styled-components/cjs/index.js +11 -0
  285. package/styled-components/es/components/Badge/Badge.js +3 -16
  286. package/styled-components/es/components/Badge/Badge.styles.js +3 -3
  287. package/styled-components/es/components/Badge/Badge.tokens.js +1 -2
  288. package/styled-components/es/components/NumberInput/NumberInput.js +206 -0
  289. package/styled-components/es/components/NumberInput/NumberInput.styles.js +2 -0
  290. package/styled-components/es/components/NumberInput/NumberInput.template-doc.mdx +214 -0
  291. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +93 -0
  292. package/styled-components/es/components/NumberInput/NumberInput.types.js +1 -0
  293. package/styled-components/es/components/NumberInput/index.js +2 -0
  294. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  295. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +8 -0
  296. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  297. package/styled-components/es/components/NumberInput/ui/Input/Input.js +203 -0
  298. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +41 -0
  299. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  300. package/styled-components/es/components/NumberInput/ui/index.js +2 -0
  301. package/styled-components/es/components/NumberInput/utils/index.js +3 -0
  302. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +4 -0
  303. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  304. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +3 -0
  305. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  306. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  307. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  308. package/styled-components/es/components/NumberInput/variations/_shape/base.js +5 -0
  309. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  310. package/styled-components/es/components/NumberInput/variations/_size/base.js +7 -0
  311. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +22 -0
  312. package/styled-components/es/components/NumberInput/variations/_view/base.js +7 -0
  313. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +14 -0
  314. package/styled-components/es/components/Tabs/tokens.js +1 -2
  315. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -15
  316. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +9 -9
  317. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -15
  318. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +10 -10
  319. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  320. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  321. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +40 -0
  322. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  323. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  324. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  325. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  326. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  327. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +40 -0
  328. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  329. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  330. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  331. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  332. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  333. package/styled-components/es/index.js +2 -1
  334. package/types/components/Badge/Badge.d.ts.map +1 -1
  335. package/types/components/Badge/Badge.styles.d.ts +1 -1
  336. package/types/components/Badge/Badge.styles.d.ts.map +1 -1
  337. package/types/components/Badge/Badge.tokens.d.ts +0 -1
  338. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  339. package/types/components/Badge/Badge.types.d.ts +0 -5
  340. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  341. package/types/components/NumberInput/NumberInput.d.ts +38 -0
  342. package/types/components/NumberInput/NumberInput.d.ts.map +1 -0
  343. package/types/components/NumberInput/NumberInput.styles.d.ts +2 -0
  344. package/types/components/NumberInput/NumberInput.styles.d.ts.map +1 -0
  345. package/types/components/NumberInput/NumberInput.tokens.d.ts +88 -0
  346. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +1 -0
  347. package/types/components/NumberInput/NumberInput.types.d.ts +112 -0
  348. package/types/components/NumberInput/NumberInput.types.d.ts.map +1 -0
  349. package/types/components/NumberInput/index.d.ts +3 -0
  350. package/types/components/NumberInput/index.d.ts.map +1 -0
  351. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +4 -0
  352. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +1 -0
  353. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +45 -0
  354. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +1 -0
  355. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +7 -0
  356. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +1 -0
  357. package/types/components/NumberInput/ui/Input/Input.d.ts +19 -0
  358. package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -0
  359. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +30 -0
  360. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +1 -0
  361. package/types/components/NumberInput/ui/Input/Input.types.d.ts +19 -0
  362. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +1 -0
  363. package/types/components/NumberInput/ui/index.d.ts +3 -0
  364. package/types/components/NumberInput/ui/index.d.ts.map +1 -0
  365. package/types/components/NumberInput/utils/index.d.ts +4 -0
  366. package/types/components/NumberInput/utils/index.d.ts.map +1 -0
  367. package/types/components/NumberInput/variations/_background-type/base.d.ts +2 -0
  368. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +1 -0
  369. package/types/components/NumberInput/variations/_disabled/base.d.ts +2 -0
  370. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +1 -0
  371. package/types/components/NumberInput/variations/_segmentation/base.d.ts +2 -0
  372. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +1 -0
  373. package/types/components/NumberInput/variations/_shape/base.d.ts +2 -0
  374. package/types/components/NumberInput/variations/_shape/base.d.ts.map +1 -0
  375. package/types/components/NumberInput/variations/_size/base.d.ts +2 -0
  376. package/types/components/NumberInput/variations/_size/base.d.ts.map +1 -0
  377. package/types/components/NumberInput/variations/_view/base.d.ts +2 -0
  378. package/types/components/NumberInput/variations/_view/base.d.ts.map +1 -0
  379. package/types/components/Tabs/TabItem.types.d.ts +0 -5
  380. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  381. package/types/components/Tabs/tokens.d.ts +0 -1
  382. package/types/components/Tabs/tokens.d.ts.map +1 -1
  383. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  384. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts +1 -1
  385. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  386. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  387. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts +1 -1
  388. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  389. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +0 -3
  390. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  391. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +0 -6
  392. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  393. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +39 -0
  394. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  395. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +82 -0
  396. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +1 -0
  397. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +0 -6
  398. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  399. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  400. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  401. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  402. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  403. package/types/examples/plasma_web/components/Badge/Badge.d.ts +0 -3
  404. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  405. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +39 -0
  406. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  407. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +82 -0
  408. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +1 -0
  409. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +0 -6
  410. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  411. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  412. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  413. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  414. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  415. package/types/index.d.ts +1 -0
  416. package/types/index.d.ts.map +1 -1
  417. package/cjs/components/Badge/Badge.styles_hhbwyi.css +0 -4
  418. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +0 -5
  419. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +0 -5
  420. package/es/components/Badge/Badge.styles_hhbwyi.css +0 -4
  421. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +0 -5
  422. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +0 -5
@@ -8,7 +8,7 @@
8
8
 
9
9
  .base_oopyb7_b1e1wuvi__72387433.base_oopyb7_badgeClear__72387433{color:var(--plasma-badge-color-clear);background-color:transparent;padding:0;}
10
10
 
11
- .Badge_styles_hhbwyi_s1t43xoe__47a1842a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-left-content-margin-left);margin-right:var(--plasma-badge-left-content-margin-right);}
11
+ .Badge_styles_8pi3br_b1t43xoe__783e5f62{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;}
12
+ .Badge_styles_8pi3br_st1n7hr__783e5f62{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-left-content-margin-left);margin-right:var(--plasma-badge-left-content-margin-right);}
12
13
 
13
- .Badge_styles_hhbwyi_sqn2dok__47a1842a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-right-content-margin-left);margin-right:var(--plasma-badge-right-content-margin-right);}
14
- .Badge_styles_hhbwyi_bae60b0__47a1842a{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;}.Badge_styles_hhbwyi_bae60b0__47a1842a.Badge_styles_hhbwyi_badgeTruncate__47a1842a{max-width:100%;}.Badge_styles_hhbwyi_bae60b0__47a1842a.Badge_styles_hhbwyi_badgeTruncate__47a1842a .Badge_styles_hhbwyi_st1n7hr__47a1842a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
14
+ .Badge_styles_8pi3br_sae60b0__783e5f62{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-right-content-margin-left);margin-right:var(--plasma-badge-right-content-margin-right);}
@@ -13,7 +13,7 @@ var base$4 = require('./variations/_clear/base.js');
13
13
  var Badge_styles = require('./Badge.styles.js');
14
14
  var Badge_tokens = require('./Badge.tokens.js');
15
15
 
16
- var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
16
+ var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear"];
17
17
  var badgeRoot = function badgeRoot(Root) {
18
18
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
19
19
  var children = props.children,
@@ -29,27 +29,20 @@ var badgeRoot = function badgeRoot(Root) {
29
29
  transparent = _props$transparent === void 0 ? false : _props$transparent,
30
30
  _props$clear = props.clear,
31
31
  clear = _props$clear === void 0 ? false : _props$clear,
32
- _props$maxWidth = props.maxWidth,
33
- maxWidth = _props$maxWidth === void 0 ? 'auto' : _props$maxWidth,
34
32
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
35
33
  var pilledClass = pilled ? Badge_tokens.classes.badgePilled : undefined;
36
34
  var transparentClass = transparent ? Badge_tokens.classes.badgeTransparent : undefined;
37
35
  var clearClass = clear ? Badge_tokens.classes.badgeClear : undefined;
38
36
  var txt = !text && typeof children === 'string' ? children : text;
39
- var truncate = maxWidth !== 'auto';
40
37
  return /*#__PURE__*/React.createElement(Root, _rollupPluginBabelHelpers.extends({
41
38
  ref: ref,
42
- className: index.cx(pilledClass, transparentClass, clearClass, truncate && Badge_tokens.classes.badgeTruncate, className),
39
+ className: index.cx(pilledClass, transparentClass, clearClass, className),
43
40
  view: view,
44
41
  size: size,
45
42
  pilled: pilled,
46
43
  transparent: transparent,
47
44
  clear: clear
48
- }, rest, {
49
- style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rest.style), {}, {
50
- maxWidth: maxWidth
51
- })
52
- }), contentLeft && /*#__PURE__*/React.createElement(Badge_styles.StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/React.createElement(Badge_styles.StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/React.createElement(Badge_styles.StyledContentRight, null, contentRight));
45
+ }, rest), contentLeft && /*#__PURE__*/React.createElement(Badge_styles.StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/React.createElement(Badge_styles.StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/React.createElement(Badge_styles.StyledContentRight, null, contentRight));
53
46
  });
54
47
  };
55
48
  var badgeConfig = {
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.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 { base as pilledCSS } from './variations/_pilled/base';\nimport { base as transparentCSS } from './variations/_transparent/base';\nimport { base as clearCSS } from './variations/_clear/base';\nimport type { BadgeProps, BadgeRootProps } from './Badge.types';\nimport { StyledContentLeft, StyledContentMain, StyledContentRight, base } from './Badge.styles';\nimport { classes } from './Badge.tokens';\n\nexport const badgeRoot = (Root: RootProps<HTMLDivElement, BadgeRootProps>) =>\n forwardRef<HTMLDivElement, BadgeProps>((props, ref) => {\n const {\n children,\n className,\n text,\n contentLeft,\n contentRight,\n size,\n view,\n pilled = false,\n transparent = false,\n clear = false,\n maxWidth = 'auto',\n ...rest\n } = props;\n\n const pilledClass = pilled ? classes.badgePilled : undefined;\n const transparentClass = transparent ? classes.badgeTransparent : undefined;\n const clearClass = clear ? classes.badgeClear : undefined;\n const txt = !text && typeof children === 'string' ? children : text;\n\n const truncate = maxWidth !== 'auto';\n\n return (\n <Root\n ref={ref}\n className={cx(pilledClass, transparentClass, clearClass, truncate && classes.badgeTruncate, className)}\n view={view}\n size={size}\n pilled={pilled}\n transparent={transparent}\n clear={clear}\n {...rest}\n style={{\n ...rest.style,\n maxWidth,\n }}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n {txt ? <StyledContentMain>{txt}</StyledContentMain> : children}\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </Root>\n );\n });\n\nexport const badgeConfig = {\n name: 'Badge',\n tag: 'div',\n layout: badgeRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n pilled: {\n css: pilledCSS,\n attrs: true,\n },\n transparent: {\n css: transparentCSS,\n attrs: true,\n },\n clear: {\n css: clearCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["badgeRoot","Root","forwardRef","props","ref","children","className","text","contentLeft","contentRight","size","view","_props$pilled","pilled","_props$transparent","transparent","_props$clear","clear","_props$maxWidth","maxWidth","rest","_objectWithoutProperties","_excluded","pilledClass","classes","badgePilled","undefined","transparentClass","badgeTransparent","clearClass","badgeClear","txt","truncate","React","createElement","_extends","cx","badgeTruncate","style","_objectSpread","StyledContentLeft","StyledContentMain","StyledContentRight","badgeConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","pilledCSS","attrs","transparentCSS","clearCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;IAcaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA+C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CAA6B,UAACC,KAAK,EAAEC,GAAG,EAAK;AACnD,IAAA,IACIC,QAAQ,GAYRF,KAAK,CAZLE,QAAQ;MACRC,SAAS,GAWTH,KAAK,CAXLG,SAAS;MACTC,IAAI,GAUJJ,KAAK,CAVLI,IAAI;MACJC,WAAW,GASXL,KAAK,CATLK,WAAW;MACXC,YAAY,GAQZN,KAAK,CARLM,YAAY;MACZC,IAAI,GAOJP,KAAK,CAPLO,IAAI;MACJC,IAAI,GAMJR,KAAK,CANLQ,IAAI;MAAAC,aAAA,GAMJT,KAAK,CALLU,MAAM;AAANA,MAAAA,MAAM,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,kBAAA,GAKdX,KAAK,CAJLY,WAAW;AAAXA,MAAAA,WAAW,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,kBAAA;MAAAE,YAAA,GAInBb,KAAK,CAHLc,KAAK;AAALA,MAAAA,KAAK,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,YAAA;MAAAE,eAAA,GAGbf,KAAK,CAFLgB,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,eAAA;AACdE,MAAAA,IAAI,GAAAC,iDAAA,CACPlB,KAAK,EAAAmB,SAAA,CAAA,CAAA;IAET,IAAMC,WAAW,GAAGV,MAAM,GAAGW,oBAAO,CAACC,WAAW,GAAGC,SAAS,CAAA;IAC5D,IAAMC,gBAAgB,GAAGZ,WAA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AA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMkC,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE9C,SAAS;AACjB+C,EAAAA,IAAI,EAAJA,iBAAI;AACJC,EAAAA,UAAU,EAAE;AACRrC,IAAAA,IAAI,EAAE;AACFsC,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDxC,IAAAA,IAAI,EAAE;AACFuC,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDtC,IAAAA,MAAM,EAAE;AACJoC,MAAAA,GAAG,EAAEG,WAAS;AACdC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDtC,IAAAA,WAAW,EAAE;AACTkC,MAAAA,GAAG,EAAEK,WAAc;AACnBD,MAAAA,KAAK,EAAE,IAAA;KACV;AACDpC,IAAAA,KAAK,EAAE;AACHgC,MAAAA,GAAG,EAAEM,WAAQ;AACbF,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDG,EAAAA,QAAQ,EAAE;AACN7C,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
1
+ {"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.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 { base as pilledCSS } from './variations/_pilled/base';\nimport { base as transparentCSS } from './variations/_transparent/base';\nimport { base as clearCSS } from './variations/_clear/base';\nimport type { BadgeProps, BadgeRootProps } from './Badge.types';\nimport { StyledContentLeft, StyledContentMain, StyledContentRight, base } from './Badge.styles';\nimport { classes } from './Badge.tokens';\n\nexport const badgeRoot = (Root: RootProps<HTMLDivElement, BadgeRootProps>) =>\n forwardRef<HTMLDivElement, BadgeProps>((props, ref) => {\n const {\n children,\n className,\n text,\n contentLeft,\n contentRight,\n size,\n view,\n pilled = false,\n transparent = false,\n clear = false,\n ...rest\n } = props;\n\n const pilledClass = pilled ? classes.badgePilled : undefined;\n const transparentClass = transparent ? classes.badgeTransparent : undefined;\n const clearClass = clear ? classes.badgeClear : undefined;\n const txt = !text && typeof children === 'string' ? children : text;\n\n return (\n <Root\n ref={ref}\n className={cx(pilledClass, transparentClass, clearClass, className)}\n view={view}\n size={size}\n pilled={pilled}\n transparent={transparent}\n clear={clear}\n {...rest}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n {txt ? <StyledContentMain>{txt}</StyledContentMain> : children}\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </Root>\n );\n });\n\nexport const badgeConfig = {\n name: 'Badge',\n tag: 'div',\n layout: badgeRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n pilled: {\n css: pilledCSS,\n attrs: true,\n },\n transparent: {\n css: transparentCSS,\n attrs: true,\n },\n clear: {\n css: clearCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["badgeRoot","Root","forwardRef","props","ref","children","className","text","contentLeft","contentRight","size","view","_props$pilled","pilled","_props$transparent","transparent","_props$clear","clear","rest","_objectWithoutProperties","_excluded","pilledClass","classes","badgePilled","undefined","transparentClass","badgeTransparent","clearClass","badgeClear","txt","React","createElement","_extends","cx","StyledContentLeft","StyledContentMain","StyledContentRight","badgeConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","pilledCSS","attrs","transparentCSS","clearCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;IAcaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA+C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CAA6B,UAACC,KAAK,EAAEC,GAAG,EAAK;AACnD,IAAA,IACIC,QAAQ,GAWRF,KAAK,CAXLE,QA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}
@@ -1,26 +1,26 @@
1
- import './Badge.styles_hhbwyi.css';
1
+ import './Badge.styles_8pi3br.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var react = require('@linaria/react');
7
7
 
8
+ var base = "b1t43xoe";
8
9
  var StyledContentLeft = /*#__PURE__*/react.styled('div')({
9
10
  name: "StyledContentLeft",
10
- "class": "s1t43xoe",
11
+ "class": "st1n7hr",
11
12
  propsAsIs: false
12
13
  });
13
14
  var StyledContentMain = /*#__PURE__*/react.styled('span')({
14
15
  name: "StyledContentMain",
15
- "class": "st1n7hr",
16
+ "class": "sqn2dok",
16
17
  propsAsIs: false
17
18
  });
18
19
  var StyledContentRight = /*#__PURE__*/react.styled('div')({
19
20
  name: "StyledContentRight",
20
- "class": "sqn2dok",
21
+ "class": "sae60b0",
21
22
  propsAsIs: false
22
23
  });
23
- var base = "bae60b0";
24
24
 
25
25
  exports.StyledContentLeft = StyledContentLeft;
26
26
  exports.StyledContentMain = StyledContentMain;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.styles.js","sources":["../../../src/components/Badge/Badge.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { classes, tokens } from './Badge.tokens';\n\nexport const StyledContentLeft = styled.div`\n display: flex;\n margin-left: var(${tokens.leftContentMarginLeft});\n margin-right: var(${tokens.leftContentMarginRight});\n`;\n\nexport const StyledContentMain = styled.span``;\n\nexport const StyledContentRight = styled.div`\n display: flex;\n margin-left: var(${tokens.rightContentMarginLeft});\n margin-right: var(${tokens.rightContentMarginRight});\n`;\n\nexport const base = css`\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n justify-content: center;\n\n width: max-content;\n\n &.${classes.badgeTruncate} {\n max-width: 100%;\n\n ${StyledContentMain} {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n`;\n"],"names":["StyledContentLeft","styled","name","class","propsAsIs","StyledContentMain","StyledContentRight","base"],"mappings":";;;;;;AAKO,IAAMA,iBAAiB,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAItC,EAAA;AAEM,IAAMC,iBAAiB,gBAAGJ,YAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAO,EAAA;AAEvC,IAAME,kBAAkB,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,oBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIvC,EAAA;AAEM,IAAMG,IAAI,GAiBhB;;;;;;;"}
1
+ {"version":3,"file":"Badge.styles.js","sources":["../../../src/components/Badge/Badge.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { tokens } from './Badge.tokens';\n\nexport const base = css`\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n justify-content: center;\n\n width: max-content;\n`;\n\nexport const StyledContentLeft = styled.div`\n display: flex;\n margin-left: var(${tokens.leftContentMarginLeft});\n margin-right: var(${tokens.leftContentMarginRight});\n`;\n\nexport const StyledContentMain = styled.span``;\n\nexport const StyledContentRight = styled.div`\n display: flex;\n margin-left: var(${tokens.rightContentMarginLeft});\n margin-right: var(${tokens.rightContentMarginRight});\n`;\n"],"names":["base","StyledContentLeft","styled","name","class","propsAsIs","StyledContentMain","StyledContentRight"],"mappings":";;;;;;AAKO,IAAMA,IAAI,GAOhB,WAAA;AAEM,IAAMC,iBAAiB,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAItC,EAAA;AAEM,IAAMC,iBAAiB,gBAAGJ,YAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAO,EAAA;AAEvC,IAAME,kBAAkB,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,oBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIvC;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ .b1t43xoe{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;}
2
+ .st1n7hr{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-left-content-margin-left);margin-right:var(--plasma-badge-left-content-margin-right);}
3
+
4
+ .sae60b0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-right-content-margin-left);margin-right:var(--plasma-badge-right-content-margin-right);}
@@ -5,8 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var classes = {
6
6
  badgePilled: 'badge-pilled',
7
7
  badgeTransparent: 'badge-transparent',
8
- badgeClear: 'badge-clear',
9
- badgeTruncate: 'badge-truncate'
8
+ badgeClear: 'badge-clear'
10
9
  };
11
10
  var tokens = {
12
11
  background: '--plasma-badge-background',
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.tokens.js","sources":["../../../src/components/Badge/Badge.tokens.ts"],"sourcesContent":["export const classes = {\n badgePilled: 'badge-pilled',\n badgeTransparent: 'badge-transparent',\n badgeClear: 'badge-clear',\n badgeTruncate: 'badge-truncate',\n};\n\nexport const tokens = {\n background: '--plasma-badge-background',\n color: '--plasma-badge-color',\n backgroundTransparent: '--plasma-badge-background-transparent',\n colorTransparent: '--plasma-badge-color-transparent',\n colorClear: '--plasma-badge-color-clear',\n\n borderRadius: '--plasma-badge-border-radius',\n pilledBorderRadius: '--plasma-badge-pilled-border-radius',\n height: '--plasma-badge-height',\n paddingTop: '--plasma-badge-padding-top',\n paddingRight: '--plasma-badge-padding-right',\n paddingBottom: '--plasma-badge-padding-bottom',\n paddingLeft: '--plasma-badge-padding-left',\n\n fontFamily: '--plasma-badge-font-family',\n fontSize: '--plasma-badge-font-size',\n fontStyle: '--plasma-badge-font-style',\n fontWeight: '--plasma-badge-font-weight',\n letterSpacing: '--plasma-badge-letter-spacing',\n lineHeight: '--plasma-badge-lineheight',\n\n leftContentMarginLeft: '--plasma-badge-left-content-margin-left',\n leftContentMarginRight: '--plasma-badge-left-content-margin-right',\n rightContentMarginLeft: '--plasma-badge-right-content-margin-left',\n rightContentMarginRight: '--plasma-badge-right-content-margin-right',\n};\n"],"names":["classes","badgePilled","badgeTransparent","badgeClear","badgeTruncate","tokens","background","color","backgroundTransparent","colorTransparent","colorClear","borderRadius","pilledBorderRadius","height","paddingTop","paddingRight","paddingBottom","paddingLeft","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","leftContentMarginLeft","leftContentMarginRight","rightContentMarginLeft","rightContentMarginRight"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,gBAAgB,EAAE,mBAAmB;AACrCC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,aAAa,EAAE,gBAAA;AACnB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,KAAK,EAAE,sBAAsB;AAC7BC,EAAAA,qBAAqB,EAAE,uCAAuC;AAC9DC,EAAAA,gBAAgB,EAAE,kCAAkC;AACpDC,EAAAA,UAAU,EAAE,4BAA4B;AAExCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,kBAAkB,EAAE,qCAAqC;AACzDC,EAAAA,MAAM,EAAE,uBAAuB;AAC/BC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,WAAW,EAAE,6BAA6B;AAE1CC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,QAAQ,EAAE,0BAA0B;AACpCC,EAAAA,SAAS,EAAE,2BAA2B;AACtCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,UAAU,EAAE,2BAA2B;AAEvCC,EAAAA,qBAAqB,EAAE,yCAAyC;AAChEC,EAAAA,sBAAsB,EAAE,0CAA0C;AAClEC,EAAAA,sBAAsB,EAAE,0CAA0C;AAClEC,EAAAA,uBAAuB,EAAE,2CAAA;AAC7B;;;;;"}
1
+ {"version":3,"file":"Badge.tokens.js","sources":["../../../src/components/Badge/Badge.tokens.ts"],"sourcesContent":["export const classes = {\n badgePilled: 'badge-pilled',\n badgeTransparent: 'badge-transparent',\n badgeClear: 'badge-clear',\n};\n\nexport const tokens = {\n background: '--plasma-badge-background',\n color: '--plasma-badge-color',\n backgroundTransparent: '--plasma-badge-background-transparent',\n colorTransparent: '--plasma-badge-color-transparent',\n colorClear: '--plasma-badge-color-clear',\n\n borderRadius: '--plasma-badge-border-radius',\n pilledBorderRadius: '--plasma-badge-pilled-border-radius',\n height: '--plasma-badge-height',\n paddingTop: '--plasma-badge-padding-top',\n paddingRight: '--plasma-badge-padding-right',\n paddingBottom: '--plasma-badge-padding-bottom',\n paddingLeft: '--plasma-badge-padding-left',\n\n fontFamily: '--plasma-badge-font-family',\n fontSize: '--plasma-badge-font-size',\n fontStyle: '--plasma-badge-font-style',\n fontWeight: '--plasma-badge-font-weight',\n letterSpacing: '--plasma-badge-letter-spacing',\n lineHeight: '--plasma-badge-lineheight',\n\n leftContentMarginLeft: '--plasma-badge-left-content-margin-left',\n leftContentMarginRight: '--plasma-badge-left-content-margin-right',\n rightContentMarginLeft: '--plasma-badge-right-content-margin-left',\n rightContentMarginRight: '--plasma-badge-right-content-margin-right',\n};\n"],"names":["classes","badgePilled","badgeTransparent","badgeClear","tokens","background","color","backgroundTransparent","colorTransparent","colorClear","borderRadius","pilledBorderRadius","height","paddingTop","paddingRight","paddingBottom","paddingLeft","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","leftContentMarginLeft","leftContentMarginRight","rightContentMarginLeft","rightContentMarginRight"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,gBAAgB,EAAE,mBAAmB;AACrCC,EAAAA,UAAU,EAAE,aAAA;AAChB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,KAAK,EAAE,sBAAsB;AAC7BC,EAAAA,qBAAqB,EAAE,uCAAuC;AAC9DC,EAAAA,gBAAgB,EAAE,kCAAkC;AACpDC,EAAAA,UAAU,EAAE,4BAA4B;AAExCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,kBAAkB,EAAE,qCAAqC;AACzDC,EAAAA,MAAM,EAAE,uBAAuB;AAC/BC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,WAAW,EAAE,6BAA6B;AAE1CC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,QAAQ,EAAE,0BAA0B;AACpCC,EAAAA,SAAS,EAAE,2BAA2B;AACtCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,UAAU,EAAE,2BAA2B;AAEvCC,EAAAA,qBAAqB,EAAE,yCAAyC;AAChEC,EAAAA,sBAAsB,EAAE,0CAA0C;AAClEC,EAAAA,sBAAsB,EAAE,0CAA0C;AAClEC,EAAAA,uBAAuB,EAAE,2CAAA;AAC7B;;;;;"}
@@ -0,0 +1,52 @@
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;}
@@ -0,0 +1,205 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
6
+ var React = require('react');
7
+ var index = require('../../utils/index.js');
8
+ var NumberInput_tokens = require('./NumberInput.tokens.js');
9
+ var NumberInput_styles = require('./NumberInput.styles.js');
10
+ var base = require('./variations/_view/base.js');
11
+ var base$1 = require('./variations/_size/base.js');
12
+ var base$2 = require('./variations/_shape/base.js');
13
+ var base$3 = require('./variations/_background-type/base.js');
14
+ var base$4 = require('./variations/_segmentation/base.js');
15
+ var base$5 = require('./variations/_disabled/base.js');
16
+ var isNumber = require('../../utils/isNumber.js');
17
+ var ActionButton = require('./ui/ActionButton/ActionButton.js');
18
+ var IconMinus = require('../_Icon/Icons/IconMinus.js');
19
+ var Input = require('./ui/Input/Input.js');
20
+ var IconPlus = require('../_Icon/Icons/IconPlus.js');
21
+ var getSizeValueFromProp = require('../../utils/getSizeValueFromProp.js');
22
+
23
+ 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"];
24
+ var numberInputRoot = function numberInputRoot(Root) {
25
+ return /*#__PURE__*/React.forwardRef(function (_ref, ref) {
26
+ var _ref2;
27
+ var className = _ref.className,
28
+ style = _ref.style,
29
+ width = _ref.width,
30
+ value = _ref.value,
31
+ min = _ref.min,
32
+ max = _ref.max,
33
+ _ref$step = _ref.step,
34
+ step = _ref$step === void 0 ? 1 : _ref$step,
35
+ isLoading = _ref.isLoading,
36
+ loader = _ref.loader,
37
+ size = _ref.size,
38
+ view = _ref.view,
39
+ clear = _ref.clear,
40
+ shape = _ref.shape,
41
+ segmentation = _ref.segmentation,
42
+ _ref$inputBackgroundT = _ref.inputBackgroundType,
43
+ inputBackgroundType = _ref$inputBackgroundT === void 0 ? 'fill' : _ref$inputBackgroundT,
44
+ disabled = _ref.disabled,
45
+ textBefore = _ref.textBefore,
46
+ textAfter = _ref.textAfter,
47
+ customIncrementButton = _ref.customIncrementButton,
48
+ incrementIcon = _ref.incrementIcon,
49
+ customDecrementButton = _ref.customDecrementButton,
50
+ decrementIcon = _ref.decrementIcon,
51
+ isManualInput = _ref.isManualInput,
52
+ onChange = _ref.onChange,
53
+ onIncrement = _ref.onIncrement,
54
+ onDecrement = _ref.onDecrement,
55
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
56
+ var _useState = React.useState((_ref2 = value !== null && value !== void 0 ? value : min) !== null && _ref2 !== void 0 ? _ref2 : 0),
57
+ _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
58
+ innerValue = _useState2[0],
59
+ setInnerValue = _useState2[1];
60
+ var _useState3 = React.useState(false),
61
+ _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
62
+ isInputFocused = _useState4[0],
63
+ setIsInputFocused = _useState4[1];
64
+ var _useState5 = React.useState(false),
65
+ _useState6 = _rollupPluginBabelHelpers.slicedToArray(_useState5, 2),
66
+ isAnimationRun = _useState6[0],
67
+ setIsAnimationRun = _useState6[1];
68
+ var innerWidth = width ? getSizeValueFromProp.getSizeValueFromProp(width) : '100%';
69
+ var actionIconSize = size === 'xs' ? 'xs' : 's';
70
+ var solidViewClass = segmentation === 'solid' ? NumberInput_tokens.classes.solidView : undefined;
71
+ var segmentedViewClass = segmentation === 'segmented' ? NumberInput_tokens.classes.segmentedView : undefined;
72
+ var clearViewClass = clear ? NumberInput_tokens.classes.clearView : undefined;
73
+ var disabledClass = disabled ? NumberInput_tokens.classes.disabled : undefined;
74
+ var loadingClass = isLoading ? NumberInput_tokens.classes.loading : undefined;
75
+ var focusedClass = isInputFocused ? NumberInput_tokens.classes.focused : undefined;
76
+ var isMinValue = function isMinValue(currentValue) {
77
+ return min !== undefined && currentValue <= min;
78
+ };
79
+ var isMaxValue = function isMaxValue(currentValue) {
80
+ return max !== undefined && currentValue >= max;
81
+ };
82
+ var decrementButtonDisabled = isMinValue(Number(innerValue)) && !isAnimationRun || isLoading ? NumberInput_tokens.classes.actionButtonDecrementDisabled : undefined;
83
+ var incrementButtonDisabled = isMaxValue(Number(innerValue)) && !isAnimationRun || isLoading ? NumberInput_tokens.classes.actionButtonIncrementDisabled : undefined;
84
+ var handleDecrement = function handleDecrement() {
85
+ if (isLoading || disabled || isAnimationRun) {
86
+ return;
87
+ }
88
+ var diffValue = Number(innerValue) - step;
89
+ var resValue = min !== undefined && diffValue <= min ? min : diffValue;
90
+ setInnerValue(resValue);
91
+ if (onDecrement) {
92
+ onDecrement(resValue);
93
+ }
94
+ if (onChange) {
95
+ onChange(null, resValue);
96
+ }
97
+ };
98
+ var handleIncrement = function handleIncrement() {
99
+ if (isLoading || disabled || isAnimationRun) {
100
+ return;
101
+ }
102
+ var diffValue = Number(innerValue) + step;
103
+ var resValue = max !== undefined && diffValue >= max ? max : diffValue;
104
+ setInnerValue(resValue);
105
+ if (onIncrement) {
106
+ onIncrement(resValue);
107
+ }
108
+ if (onChange) {
109
+ onChange(null, resValue);
110
+ }
111
+ };
112
+ React.useEffect(function () {
113
+ if (value === undefined || !isNumber.isNumber(value)) {
114
+ return;
115
+ }
116
+ setInnerValue(function (prevValue) {
117
+ return prevValue !== value ? value : prevValue;
118
+ });
119
+ }, [value]);
120
+ return /*#__PURE__*/React.createElement(Root, _rollupPluginBabelHelpers.extends({
121
+ view: view,
122
+ size: size,
123
+ disabled: disabled,
124
+ clear: clear,
125
+ shape: shape,
126
+ segmentation: segmentation,
127
+ isLoading: isLoading
128
+ }, segmentation === 'solid' ? {
129
+ inputBackgroundType: 'clear'
130
+ } : {
131
+ inputBackgroundType: inputBackgroundType
132
+ }, {
133
+ className: index.cx(className, solidViewClass, segmentedViewClass, clearViewClass, disabledClass, loadingClass, focusedClass),
134
+ style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, style), {}, _rollupPluginBabelHelpers.defineProperty({}, NumberInput_tokens.privateTokens.inputWidth, innerWidth))
135
+ }), customDecrementButton || /*#__PURE__*/React.createElement(ActionButton.ActionButton, {
136
+ className: index.cx(NumberInput_tokens.classes.actionButtonDecrement, decrementButtonDisabled, solidViewClass, segmentedViewClass),
137
+ icon: decrementIcon || /*#__PURE__*/React.createElement(IconMinus.IconMinus, {
138
+ color: "inherit",
139
+ size: actionIconSize
140
+ }),
141
+ onClick: handleDecrement
142
+ }), /*#__PURE__*/React.createElement(Input.NumberInput, _rollupPluginBabelHelpers.extends({
143
+ ref: ref,
144
+ segmentation: segmentation,
145
+ value: innerValue,
146
+ min: min,
147
+ max: max,
148
+ isManualInput: isManualInput,
149
+ textBefore: textBefore,
150
+ textAfter: textAfter,
151
+ isLoading: isLoading,
152
+ loader: loader,
153
+ disabled: disabled,
154
+ isInputFocused: isInputFocused,
155
+ setIsInputFocused: setIsInputFocused,
156
+ setIsAnimationRun: setIsAnimationRun,
157
+ setInnerValue: setInnerValue,
158
+ onChange: onChange
159
+ }, rest)), customIncrementButton || /*#__PURE__*/React.createElement(ActionButton.ActionButton, {
160
+ className: index.cx(NumberInput_tokens.classes.actionButtonIncrement, incrementButtonDisabled, solidViewClass, segmentedViewClass),
161
+ icon: incrementIcon || /*#__PURE__*/React.createElement(IconPlus.IconPlus, {
162
+ color: "inherit",
163
+ size: actionIconSize
164
+ }),
165
+ onClick: handleIncrement
166
+ }));
167
+ });
168
+ };
169
+ var numberInputConfig = {
170
+ name: 'NumberInput',
171
+ tag: 'div',
172
+ layout: numberInputRoot,
173
+ base: NumberInput_styles.base,
174
+ variations: {
175
+ view: {
176
+ css: base.base
177
+ },
178
+ size: {
179
+ css: base$1.base
180
+ },
181
+ shape: {
182
+ css: base$2.base
183
+ },
184
+ inputBackgroundType: {
185
+ css: base$3.base
186
+ },
187
+ segmentation: {
188
+ css: base$4.base
189
+ },
190
+ disabled: {
191
+ css: base$5.base,
192
+ attrs: true
193
+ }
194
+ },
195
+ defaults: {
196
+ view: 'default',
197
+ size: 'l',
198
+ shape: 'cornered',
199
+ segmentation: 'default'
200
+ }
201
+ };
202
+
203
+ exports.numberInputConfig = numberInputConfig;
204
+ exports.numberInputRoot = numberInputRoot;
205
+ //# sourceMappingURL=NumberInput.js.map
@@ -0,0 +1 @@
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 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 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","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,gBAAU,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,GAA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+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var base = "bwds6g";
7
+
8
+ exports.base = base;
9
+ //# sourceMappingURL=NumberInput.styles.js.map
@@ -0,0 +1 @@
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;;;;"}
@@ -0,0 +1 @@
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;}