@salutejs/plasma-new-hope 0.174.0-canary.1511.11518967304.0 → 0.174.1-canary.1512.11549467998.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (391) hide show
  1. package/cjs/components/Drawer/Drawer.js +2 -1
  2. package/cjs/components/Drawer/Drawer.js.map +1 -1
  3. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  4. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -1
  5. package/cjs/components/Popover/Popover.js +2 -1
  6. package/cjs/components/Popover/Popover.js.map +1 -1
  7. package/cjs/components/ViewContainer/ViewContainer.js +38 -0
  8. package/cjs/components/ViewContainer/ViewContainer.js.map +1 -0
  9. package/cjs/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
  10. package/cjs/components/{NumberInput/variations → ViewContainer}/_view/base.js +2 -2
  11. package/cjs/components/ViewContainer/_view/base.js.map +1 -0
  12. package/cjs/index.css +1 -24
  13. package/cjs/index.js +3 -6
  14. package/cjs/index.js.map +1 -1
  15. package/emotion/cjs/components/Drawer/Drawer.js +4 -3
  16. package/emotion/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  17. package/emotion/cjs/components/Popover/Popover.js +2 -1
  18. package/emotion/cjs/components/ViewContainer/ViewContainer.js +49 -0
  19. package/emotion/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  20. package/emotion/cjs/components/ViewContainer/_view/base.js +8 -0
  21. package/emotion/cjs/components/ViewContainer/_view/tokens.json +1 -0
  22. package/emotion/cjs/components/ViewContainer/index.js +18 -0
  23. package/emotion/cjs/examples/_helpers.js +3 -14
  24. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
  25. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
  26. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  27. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
  28. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
  29. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  30. package/emotion/cjs/index.js +4 -4
  31. package/emotion/es/components/Drawer/Drawer.js +2 -1
  32. package/emotion/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  33. package/emotion/es/components/Popover/Popover.js +2 -1
  34. package/emotion/es/components/ViewContainer/ViewContainer.js +40 -0
  35. package/emotion/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  36. package/emotion/es/components/ViewContainer/_view/base.js +2 -0
  37. package/emotion/es/components/ViewContainer/_view/tokens.json +1 -0
  38. package/emotion/es/components/ViewContainer/index.js +1 -0
  39. package/emotion/es/examples/_helpers.js +3 -14
  40. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
  41. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
  42. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  43. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
  44. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
  45. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  46. package/emotion/es/index.js +1 -1
  47. package/es/components/Drawer/Drawer.js +2 -1
  48. package/es/components/Drawer/Drawer.js.map +1 -1
  49. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  50. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -1
  51. package/es/components/Popover/Popover.js +2 -1
  52. package/es/components/Popover/Popover.js.map +1 -1
  53. package/es/components/ViewContainer/ViewContainer.js +33 -0
  54. package/es/components/ViewContainer/ViewContainer.js.map +1 -0
  55. package/es/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
  56. package/es/components/{NumberInput/variations/_segmentation → ViewContainer/_view}/base.js +2 -2
  57. package/es/components/ViewContainer/_view/base.js.map +1 -0
  58. package/es/index.css +1 -24
  59. package/es/index.js +1 -2
  60. package/es/index.js.map +1 -1
  61. package/package.json +3 -2
  62. package/styled-components/cjs/components/Drawer/Drawer.js +4 -3
  63. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  64. package/styled-components/cjs/components/Popover/Popover.js +2 -1
  65. package/styled-components/cjs/components/ViewContainer/ViewContainer.js +40 -0
  66. package/styled-components/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  67. package/styled-components/cjs/components/{NumberInput/NumberInput.styles.js → ViewContainer/_view/base.js} +1 -1
  68. package/styled-components/cjs/components/ViewContainer/_view/tokens.json +1 -0
  69. package/styled-components/cjs/components/ViewContainer/index.js +18 -0
  70. package/styled-components/cjs/examples/_helpers.js +3 -14
  71. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
  72. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
  73. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  74. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
  75. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
  76. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  77. package/styled-components/cjs/index.js +4 -4
  78. package/styled-components/es/components/Drawer/Drawer.js +2 -1
  79. package/styled-components/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  80. package/styled-components/es/components/Popover/Popover.js +2 -1
  81. package/styled-components/es/components/ViewContainer/ViewContainer.js +31 -0
  82. package/styled-components/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  83. package/styled-components/es/components/ViewContainer/_view/base.js +2 -0
  84. package/styled-components/es/components/ViewContainer/_view/tokens.json +1 -0
  85. package/styled-components/es/components/ViewContainer/index.js +1 -0
  86. package/styled-components/es/examples/_helpers.js +3 -14
  87. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
  88. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
  89. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  90. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
  91. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
  92. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  93. package/styled-components/es/index.js +1 -1
  94. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  95. package/types/components/Dropdown/ui/DropdownOld/DropdownOld.d.ts.map +1 -1
  96. package/types/components/Popover/Popover.d.ts.map +1 -1
  97. package/types/components/ViewContainer/ViewContainer.d.ts +26 -0
  98. package/types/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  99. package/types/components/ViewContainer/_view/base.d.ts.map +1 -0
  100. package/types/components/ViewContainer/index.d.ts +2 -0
  101. package/types/components/ViewContainer/index.d.ts.map +1 -0
  102. package/types/examples/_helpers.d.ts.map +1 -1
  103. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts +9 -0
  104. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
  105. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts +8 -0
  106. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  107. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts +9 -0
  108. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
  109. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts +8 -0
  110. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  111. package/types/index.d.ts +1 -1
  112. package/types/index.d.ts.map +1 -1
  113. package/cjs/components/NumberInput/NumberInput.css +0 -54
  114. package/cjs/components/NumberInput/NumberInput.js +0 -188
  115. package/cjs/components/NumberInput/NumberInput.js.map +0 -1
  116. package/cjs/components/NumberInput/NumberInput.styles.js +0 -9
  117. package/cjs/components/NumberInput/NumberInput.styles.js.map +0 -1
  118. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  119. package/cjs/components/NumberInput/NumberInput.tokens.js +0 -90
  120. package/cjs/components/NumberInput/NumberInput.tokens.js.map +0 -1
  121. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -19
  122. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  123. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -22
  124. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  125. package/cjs/components/NumberInput/ui/Input/Input.css +0 -15
  126. package/cjs/components/NumberInput/ui/Input/Input.js +0 -190
  127. package/cjs/components/NumberInput/ui/Input/Input.js.map +0 -1
  128. package/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -96
  129. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  130. package/cjs/components/NumberInput/ui/Input/Input.styles_jszc0c.css +0 -8
  131. package/cjs/components/NumberInput/utils/index.js +0 -8
  132. package/cjs/components/NumberInput/utils/index.js.map +0 -1
  133. package/cjs/components/NumberInput/variations/_background-type/base.js +0 -9
  134. package/cjs/components/NumberInput/variations/_background-type/base.js.map +0 -1
  135. package/cjs/components/NumberInput/variations/_background-type/base_1jmdljr.css +0 -1
  136. package/cjs/components/NumberInput/variations/_clear/base.js +0 -9
  137. package/cjs/components/NumberInput/variations/_clear/base.js.map +0 -1
  138. package/cjs/components/NumberInput/variations/_clear/base_3l8dqb.css +0 -1
  139. package/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  140. package/cjs/components/NumberInput/variations/_disabled/base.js.map +0 -1
  141. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  142. package/cjs/components/NumberInput/variations/_segmentation/base.js +0 -9
  143. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  144. package/cjs/components/NumberInput/variations/_segmentation/base_nl8ve.css +0 -1
  145. package/cjs/components/NumberInput/variations/_shape/base.js +0 -9
  146. package/cjs/components/NumberInput/variations/_shape/base.js.map +0 -1
  147. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  148. package/cjs/components/NumberInput/variations/_size/base.js +0 -9
  149. package/cjs/components/NumberInput/variations/_size/base.js.map +0 -1
  150. package/cjs/components/NumberInput/variations/_size/base_1pju5qf.css +0 -1
  151. package/cjs/components/NumberInput/variations/_view/base.js.map +0 -1
  152. package/cjs/components/NumberInput/variations/_view/base_cghr9q.css +0 -1
  153. package/emotion/cjs/components/NumberInput/NumberInput.js +0 -198
  154. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +0 -17
  155. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +0 -87
  156. package/emotion/cjs/components/NumberInput/NumberInput.types.js +0 -5
  157. package/emotion/cjs/components/NumberInput/index.js +0 -31
  158. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  159. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -16
  160. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  161. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -198
  162. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -82
  163. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  164. package/emotion/cjs/components/NumberInput/ui/index.js +0 -19
  165. package/emotion/cjs/components/NumberInput/utils/index.js +0 -7
  166. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  167. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  168. package/emotion/cjs/components/NumberInput/variations/_clear/base.js +0 -12
  169. package/emotion/cjs/components/NumberInput/variations/_clear/tokens.json +0 -5
  170. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  171. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  172. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  173. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  174. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  175. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  176. package/emotion/cjs/components/NumberInput/variations/_size/base.js +0 -13
  177. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  178. package/emotion/cjs/components/NumberInput/variations/_view/base.js +0 -13
  179. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  180. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -48
  181. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  182. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -109
  183. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -48
  184. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  185. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -109
  186. package/emotion/cjs/examples/themes/declaration.d.ts +0 -4
  187. package/emotion/cjs/examples/themes/index.js +0 -15
  188. package/emotion/cjs/examples/themes/plasma_b2c.module.css +0 -984
  189. package/emotion/cjs/examples/themes/plasma_web.module.css +0 -984
  190. package/emotion/es/components/NumberInput/NumberInput.js +0 -190
  191. package/emotion/es/components/NumberInput/NumberInput.styles.js +0 -11
  192. package/emotion/es/components/NumberInput/NumberInput.tokens.js +0 -81
  193. package/emotion/es/components/NumberInput/NumberInput.types.js +0 -1
  194. package/emotion/es/components/NumberInput/index.js +0 -2
  195. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  196. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -9
  197. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  198. package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -189
  199. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +0 -75
  200. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  201. package/emotion/es/components/NumberInput/ui/index.js +0 -2
  202. package/emotion/es/components/NumberInput/utils/index.js +0 -1
  203. package/emotion/es/components/NumberInput/variations/_background-type/base.js +0 -4
  204. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  205. package/emotion/es/components/NumberInput/variations/_clear/base.js +0 -6
  206. package/emotion/es/components/NumberInput/variations/_clear/tokens.json +0 -5
  207. package/emotion/es/components/NumberInput/variations/_disabled/base.js +0 -3
  208. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  209. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  210. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  211. package/emotion/es/components/NumberInput/variations/_shape/base.js +0 -5
  212. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  213. package/emotion/es/components/NumberInput/variations/_size/base.js +0 -7
  214. package/emotion/es/components/NumberInput/variations/_size/tokens.json +0 -22
  215. package/emotion/es/components/NumberInput/variations/_view/base.js +0 -7
  216. package/emotion/es/components/NumberInput/variations/_view/tokens.json +0 -14
  217. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -42
  218. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  219. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -109
  220. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -42
  221. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  222. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -109
  223. package/emotion/es/examples/themes/declaration.d.ts +0 -4
  224. package/emotion/es/examples/themes/index.js +0 -7
  225. package/emotion/es/examples/themes/plasma_b2c.module.css +0 -984
  226. package/emotion/es/examples/themes/plasma_web.module.css +0 -984
  227. package/es/components/NumberInput/NumberInput.css +0 -54
  228. package/es/components/NumberInput/NumberInput.js +0 -183
  229. package/es/components/NumberInput/NumberInput.js.map +0 -1
  230. package/es/components/NumberInput/NumberInput.styles.js +0 -5
  231. package/es/components/NumberInput/NumberInput.styles.js.map +0 -1
  232. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  233. package/es/components/NumberInput/NumberInput.tokens.js +0 -84
  234. package/es/components/NumberInput/NumberInput.tokens.js.map +0 -1
  235. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -15
  236. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  237. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -18
  238. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  239. package/es/components/NumberInput/ui/Input/Input.css +0 -15
  240. package/es/components/NumberInput/ui/Input/Input.js +0 -186
  241. package/es/components/NumberInput/ui/Input/Input.js.map +0 -1
  242. package/es/components/NumberInput/ui/Input/Input.styles.js +0 -85
  243. package/es/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  244. package/es/components/NumberInput/ui/Input/Input.styles_jszc0c.css +0 -8
  245. package/es/components/NumberInput/utils/index.js +0 -4
  246. package/es/components/NumberInput/utils/index.js.map +0 -1
  247. package/es/components/NumberInput/variations/_background-type/base.js +0 -5
  248. package/es/components/NumberInput/variations/_background-type/base.js.map +0 -1
  249. package/es/components/NumberInput/variations/_background-type/base_1jmdljr.css +0 -1
  250. package/es/components/NumberInput/variations/_clear/base.js +0 -5
  251. package/es/components/NumberInput/variations/_clear/base.js.map +0 -1
  252. package/es/components/NumberInput/variations/_clear/base_3l8dqb.css +0 -1
  253. package/es/components/NumberInput/variations/_disabled/base.js +0 -5
  254. package/es/components/NumberInput/variations/_disabled/base.js.map +0 -1
  255. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  256. package/es/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  257. package/es/components/NumberInput/variations/_segmentation/base_nl8ve.css +0 -1
  258. package/es/components/NumberInput/variations/_shape/base.js +0 -5
  259. package/es/components/NumberInput/variations/_shape/base.js.map +0 -1
  260. package/es/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  261. package/es/components/NumberInput/variations/_size/base.js +0 -5
  262. package/es/components/NumberInput/variations/_size/base.js.map +0 -1
  263. package/es/components/NumberInput/variations/_size/base_1pju5qf.css +0 -1
  264. package/es/components/NumberInput/variations/_view/base.js +0 -5
  265. package/es/components/NumberInput/variations/_view/base.js.map +0 -1
  266. package/es/components/NumberInput/variations/_view/base_cghr9q.css +0 -1
  267. package/styled-components/cjs/components/NumberInput/NumberInput.js +0 -198
  268. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +0 -87
  269. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +0 -5
  270. package/styled-components/cjs/components/NumberInput/index.js +0 -31
  271. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  272. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -15
  273. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  274. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -198
  275. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -49
  276. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  277. package/styled-components/cjs/components/NumberInput/ui/index.js +0 -19
  278. package/styled-components/cjs/components/NumberInput/utils/index.js +0 -7
  279. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  280. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  281. package/styled-components/cjs/components/NumberInput/variations/_clear/base.js +0 -12
  282. package/styled-components/cjs/components/NumberInput/variations/_clear/tokens.json +0 -5
  283. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  284. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  285. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  286. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  287. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  288. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  289. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +0 -13
  290. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  291. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +0 -13
  292. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  293. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -48
  294. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  295. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -109
  296. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -48
  297. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  298. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -109
  299. package/styled-components/cjs/examples/themes/declaration.d.ts +0 -4
  300. package/styled-components/cjs/examples/themes/index.js +0 -15
  301. package/styled-components/cjs/examples/themes/plasma_b2c.module.css +0 -984
  302. package/styled-components/cjs/examples/themes/plasma_web.module.css +0 -984
  303. package/styled-components/es/components/NumberInput/NumberInput.js +0 -190
  304. package/styled-components/es/components/NumberInput/NumberInput.styles.js +0 -2
  305. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +0 -81
  306. package/styled-components/es/components/NumberInput/NumberInput.types.js +0 -1
  307. package/styled-components/es/components/NumberInput/index.js +0 -2
  308. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  309. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -8
  310. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  311. package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -189
  312. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +0 -42
  313. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  314. package/styled-components/es/components/NumberInput/ui/index.js +0 -2
  315. package/styled-components/es/components/NumberInput/utils/index.js +0 -1
  316. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +0 -4
  317. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  318. package/styled-components/es/components/NumberInput/variations/_clear/base.js +0 -6
  319. package/styled-components/es/components/NumberInput/variations/_clear/tokens.json +0 -5
  320. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +0 -3
  321. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  322. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  323. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  324. package/styled-components/es/components/NumberInput/variations/_shape/base.js +0 -5
  325. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  326. package/styled-components/es/components/NumberInput/variations/_size/base.js +0 -7
  327. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +0 -22
  328. package/styled-components/es/components/NumberInput/variations/_view/base.js +0 -7
  329. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +0 -14
  330. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -42
  331. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  332. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -109
  333. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -42
  334. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  335. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -109
  336. package/styled-components/es/examples/themes/declaration.d.ts +0 -4
  337. package/styled-components/es/examples/themes/index.js +0 -7
  338. package/styled-components/es/examples/themes/plasma_b2c.module.css +0 -984
  339. package/styled-components/es/examples/themes/plasma_web.module.css +0 -984
  340. package/types/components/NumberInput/NumberInput.d.ts +0 -42
  341. package/types/components/NumberInput/NumberInput.d.ts.map +0 -1
  342. package/types/components/NumberInput/NumberInput.styles.d.ts +0 -2
  343. package/types/components/NumberInput/NumberInput.styles.d.ts.map +0 -1
  344. package/types/components/NumberInput/NumberInput.tokens.d.ts +0 -76
  345. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +0 -1
  346. package/types/components/NumberInput/NumberInput.types.d.ts +0 -112
  347. package/types/components/NumberInput/NumberInput.types.d.ts.map +0 -1
  348. package/types/components/NumberInput/index.d.ts +0 -3
  349. package/types/components/NumberInput/index.d.ts.map +0 -1
  350. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +0 -4
  351. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +0 -1
  352. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +0 -45
  353. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +0 -1
  354. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +0 -7
  355. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +0 -1
  356. package/types/components/NumberInput/ui/Input/Input.d.ts +0 -16
  357. package/types/components/NumberInput/ui/Input/Input.d.ts.map +0 -1
  358. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +0 -30
  359. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +0 -1
  360. package/types/components/NumberInput/ui/Input/Input.types.d.ts +0 -16
  361. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +0 -1
  362. package/types/components/NumberInput/ui/index.d.ts +0 -3
  363. package/types/components/NumberInput/ui/index.d.ts.map +0 -1
  364. package/types/components/NumberInput/utils/index.d.ts +0 -2
  365. package/types/components/NumberInput/utils/index.d.ts.map +0 -1
  366. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +0 -1
  367. package/types/components/NumberInput/variations/_clear/base.d.ts +0 -2
  368. package/types/components/NumberInput/variations/_clear/base.d.ts.map +0 -1
  369. package/types/components/NumberInput/variations/_disabled/base.d.ts +0 -2
  370. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +0 -1
  371. package/types/components/NumberInput/variations/_segmentation/base.d.ts +0 -2
  372. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +0 -1
  373. package/types/components/NumberInput/variations/_shape/base.d.ts +0 -2
  374. package/types/components/NumberInput/variations/_shape/base.d.ts.map +0 -1
  375. package/types/components/NumberInput/variations/_size/base.d.ts +0 -2
  376. package/types/components/NumberInput/variations/_size/base.d.ts.map +0 -1
  377. package/types/components/NumberInput/variations/_view/base.d.ts +0 -2
  378. package/types/components/NumberInput/variations/_view/base.d.ts.map +0 -1
  379. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +0 -41
  380. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  381. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +0 -84
  382. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +0 -1
  383. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +0 -41
  384. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  385. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +0 -84
  386. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +0 -1
  387. package/types/examples/themes/index.d.ts +0 -6
  388. package/types/examples/themes/index.d.ts.map +0 -1
  389. /package/cjs/components/{NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css → ViewContainer/_view/base_x642ct.css} +0 -0
  390. /package/es/components/{NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css → ViewContainer/_view/base_x642ct.css} +0 -0
  391. /package/types/components/{NumberInput/variations/_background-type → ViewContainer/_view}/base.d.ts +0 -0
@@ -1,22 +0,0 @@
1
- [
2
- "--plasma-number-input_icon-button_height",
3
- "--plasma-number-input_icon-button_width",
4
- "--plasma-number-input_icon-button_padding",
5
- "--plasma-number-input_icon-button_font-family",
6
- "--plasma-number-input_icon-button_font-size",
7
- "--plasma-number-input_icon-button_font-style",
8
- "--plasma-number-input_icon-button_font-weight",
9
- "--plasma-number-input_icon-button_letter-spacing",
10
- "--plasma-number-input_icon-button_line-height",
11
- "--plasma-number-input_font-family",
12
- "--plasma-number-input_font-style",
13
- "--plasma-number-input_font-size",
14
- "--plasma-number-input_font-weight",
15
- "--plasma-number-input_letter-spacing",
16
- "--plasma-number-input_line-height",
17
- "--plasma-number-input_text-wrapper_height",
18
- "--plasma-number-input_text-wrapper_padding",
19
- "--plasma-number-input_loader-spinner_size",
20
- "--plasma-number-input_text-before_margin-right",
21
- "--plasma-number-input_text-after_margin-left"
22
- ]
@@ -1,7 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { classes, tokens } from '../../NumberInput.tokens';
3
- import { iconButtonTokens } from '../../../IconButton';
4
- import { StyledIconButton } from '../../ui/ActionButton/ActionButton.styles';
5
- import { AdditionalText, Input, InputWrapper, StyledSpinner } from '../../ui/Input/Input.styles';
6
- import { spinnerTokens } from '../../../Spinner';
7
- export var base = /*#__PURE__*/css(["", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");&.", ",&.", "{opacity:var(", ");cursor:not-allowed;:hover,:active{scale:none;color:var(", ");background-color:var(", ");}}}&& ", "{&:focus-within{background-color:var(", ");box-shadow:inset 0 0 0 var(", ") var(", ");}}", "{", ":var(", ");}", "{color:var(", ");caret-color:var(", ");}", "{color:var(", ");}"], StyledIconButton, iconButtonTokens.iconButtonColor, tokens.iconButtonColor, iconButtonTokens.iconButtonBackgroundColor, tokens.iconButtonBackgroundColor, iconButtonTokens.iconButtonColorHover, tokens.iconButtonColorHover, iconButtonTokens.iconButtonBackgroundColorHover, tokens.iconButtonBackgroundColorHover, iconButtonTokens.iconButtonColorActive, tokens.iconButtonColorActive, iconButtonTokens.iconButtonBackgroundColorActive, tokens.iconButtonBackgroundColorActive, classes.actionButtonDecrementDisabled, classes.actionButtonIncrementDisabled, tokens.actionButtonDisabledOpacity, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, InputWrapper, tokens.backgroundColorFocus, tokens.inputWrapperBorderWidth, tokens.borderColorFocus, StyledSpinner, spinnerTokens.color, tokens.loaderSpinnerColor, Input, tokens.color, tokens.caretColor, AdditionalText, tokens.additionalTextColor);
@@ -1,14 +0,0 @@
1
- [
2
- "--plasma-number-input_icon-button_color",
3
- "--plasma-number-input_icon-button_background-color",
4
- "--plasma-number-input_icon-button_color-hover",
5
- "--plasma-number-input_icon-button_background-color-hover",
6
- "--plasma-number-input_icon-button_color-active",
7
- "--plasma-number-input_icon-button_background-color-active",
8
- "--plasma-number-input_loader-spinner_color",
9
- "--plasma-number-input_color",
10
- "--plasma-number-input_additional-text_color",
11
- "--plasma-number-input_action-button_disabled-opacity",
12
- "--plasma-number-input_background-color-focus",
13
- "--plasma-number-input_border-color-focus"
14
- ]
@@ -1,42 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { numberInputTokens as tokens } from '../../../../components/NumberInput';
3
- export var config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'l',
7
- shape: 'cornered',
8
- inputBackgroundType: 'fill'
9
- },
10
- variations: {
11
- view: {
12
- "default": /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--text-negative);", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-tertiary);", ":var(--on-dark-text-tertiary);", ":var(--surface-transparent-secondary);", ":var(--on-dark-surface-transparent-secondary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);", ":0.4;", ":inherit;", ":inherit;"], tokens.caretColor, tokens.errorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.backgroundColorFocus, tokens.backgroundColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
13
- secondary: /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--text-negative);", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":0.4;", ":inherit;", ":inherit;"], tokens.caretColor, tokens.errorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.backgroundColorFocus, tokens.backgroundColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
14
- accent: /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--inverse-text-primary);", ":var(--text-negative);", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-tertiary);", ":var(--on-dark-text-tertiary);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary);", ":var(--surface-accent);", ":var(--inverse-text-primary);", ":var(--surface-accent);", ":var(--inverse-text-primary);", ":var(--surface-accent-hover);", ":var(--inverse-text-primary);", ":var(--surface-accent-active);", ":0.4;", ":inherit;", ":inherit;"], tokens.caretColor, tokens.caretColorSolid, tokens.errorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.backgroundColorFocus, tokens.backgroundColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid)
15
- },
16
- size: {
17
- l: /*#__PURE__*/css(["", ":11.75rem;", ":3.5rem;", ":3.5rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.875rem;", ":0.375rem;", ":0 0.125rem;", ":0.875rem;", ":3.5rem;", ":1.063rem 1.125rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":0.25rem;", ":1.375rem;"], tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
18
- m: /*#__PURE__*/css(["", ":10.25rem;", ":3rem;", ":3rem;", ":1.25rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.75rem;", ":0.25rem;", ":0 0.125rem;", ":0.75rem;", ":3rem;", ":0.875rem 1rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.25rem;", ":0.25rem;", ":1.375rem;"], tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
19
- s: /*#__PURE__*/css(["", ":8.75rem;", ":2.5rem;", ":2.5rem;", ":1rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.625rem;", ":0.25rem;", ":0 0.125rem;", ":0.625rem;", ":2.5rem;", ":0.688rem 0.875rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.25rem;", ":0.25rem;", ":1.375rem;"], tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
20
- xs: /*#__PURE__*/css(["", ":6.875rem;", ":2rem;", ":2rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5rem;", ":0.125rem;", ":0 0.125rem;", ":0.5rem;", ":2rem;", ":0.563rem 0.625rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.25rem;", ":0.25rem;", ":1rem;"], tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize)
21
- },
22
- shape: {
23
- cornered: /*#__PURE__*/css([""]),
24
- pilled: /*#__PURE__*/css(["", ":50%;"], tokens.iconButtonRadius)
25
- },
26
- inputBackgroundType: {
27
- fill: /*#__PURE__*/css(["", ":var(--surface-transparent-primary);", ":var(--surface-transparent-primary);"], tokens.backgroundColor, tokens.backgroundColorHover),
28
- clear: /*#__PURE__*/css(["", ":transparent;", ":transparent;"], tokens.backgroundColor, tokens.backgroundColorHover)
29
- },
30
- segmentation: {
31
- "default": /*#__PURE__*/css([""]),
32
- segmented: /*#__PURE__*/css([""]),
33
- solid: /*#__PURE__*/css(["", ":0;"], tokens.iconButtonSegmentationRadius)
34
- },
35
- clear: {
36
- "true": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-tertiary);"], tokens.colorClear, tokens.iconButtonColorClear, tokens.additionalTextColorClear)
37
- },
38
- disabled: {
39
- "true": /*#__PURE__*/css(["", ":0.4;"], tokens.disabledOpacity)
40
- }
41
- }
42
- };
@@ -1,5 +0,0 @@
1
- import { numberInputConfig } from '../../../../components/NumberInput';
2
- import { component, mergeConfig } from '../../../../engines';
3
- import { config } from './NumberInput.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(numberInputConfig, config);
5
- export var NumberInput = /*#__PURE__*/component(mergedConfig);
@@ -1,109 +0,0 @@
1
- import React, { ComponentProps, useState } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
-
5
- import { WithTheme } from '../../../_helpers';
6
-
7
- import { NumberInput } from './NumberInput';
8
-
9
- const onChange = action('onChange');
10
- const onDecrement = action('onDecrement');
11
- const onIncrement = action('onIncrement');
12
-
13
- const views = ['default', 'secondary', 'accent'];
14
- const sizes = ['l', 'm', 's', 'xs'];
15
- const shapes = ['cornered', 'pilled'];
16
- const inputBackgroundTypes = ['fill', 'clear'];
17
- const segmentation = ['default', 'segmented', 'solid'];
18
-
19
- const meta: Meta<typeof NumberInput> = {
20
- title: 'plasma_b2c/NumberInput',
21
- component: NumberInput,
22
- decorators: [WithTheme],
23
- argTypes: {
24
- min: {
25
- control: {
26
- type: 'number',
27
- },
28
- },
29
- max: {
30
- control: {
31
- type: 'number',
32
- },
33
- },
34
- view: {
35
- options: views,
36
- control: {
37
- type: 'select',
38
- },
39
- },
40
- size: {
41
- options: sizes,
42
- control: {
43
- type: 'inline-radio',
44
- },
45
- },
46
- shape: {
47
- options: shapes,
48
- control: {
49
- type: 'inline-radio',
50
- },
51
- },
52
- inputBackgroundType: {
53
- options: inputBackgroundTypes,
54
- control: {
55
- type: 'inline-radio',
56
- },
57
- },
58
- segmentation: {
59
- options: segmentation,
60
- control: {
61
- type: 'select',
62
- },
63
- },
64
- },
65
- };
66
-
67
- export default meta;
68
-
69
- type StoryPropsDefault = ComponentProps<typeof NumberInput>;
70
-
71
- const StoryDefault = (args: StoryPropsDefault) => {
72
- const [value, setValue] = useState(5);
73
-
74
- const handleChange = (_: any, newValue: number) => {
75
- setValue(newValue);
76
- onChange(newValue);
77
- };
78
-
79
- return (
80
- <NumberInput
81
- {...args}
82
- value={value}
83
- onChange={handleChange}
84
- onDecrement={onDecrement}
85
- onIncrement={onIncrement}
86
- />
87
- );
88
- };
89
-
90
- export const Default: StoryObj<StoryPropsDefault> = {
91
- args: {
92
- view: 'default',
93
- size: 'l',
94
- shape: 'cornered',
95
- inputBackgroundType: 'fill',
96
- segmentation: 'default',
97
- clear: false,
98
- min: 0,
99
- max: 9,
100
- step: 1,
101
- width: 188,
102
- isManualInput: false,
103
- textBefore: '',
104
- textAfter: '',
105
- isLoading: false,
106
- disabled: false,
107
- },
108
- render: StoryDefault,
109
- };
@@ -1,42 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { numberInputTokens as tokens } from '../../../../components/NumberInput';
3
- export var config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'l',
7
- shape: 'cornered',
8
- inputBackgroundType: 'fill'
9
- },
10
- variations: {
11
- view: {
12
- "default": /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--text-negative);", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-tertiary);", ":var(--on-dark-text-tertiary);", ":var(--surface-accent);", ":var(--surface-accent);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);", ":0.4;", ":inherit;", ":inherit;"], tokens.caretColor, tokens.errorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.borderColorFocus, tokens.borderColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
13
- secondary: /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--text-negative);", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--surface-accent);", ":var(--surface-accent);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":0.4;", ":inherit;", ":inherit;"], tokens.caretColor, tokens.errorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.borderColorFocus, tokens.borderColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
14
- accent: /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--inverse-text-primary);", ":var(--text-negative);", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-tertiary);", ":var(--on-dark-text-tertiary);", ":var(--surface-accent);", ":var(--light-background-primary);", ":var(--surface-accent);", ":var(--inverse-text-primary);", ":var(--surface-accent);", ":var(--inverse-text-primary);", ":var(--surface-accent-hover);", ":var(--inverse-text-primary);", ":var(--surface-accent-active);", ":0.4;", ":inherit;", ":inherit;"], tokens.caretColor, tokens.caretColorSolid, tokens.errorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.borderColorFocus, tokens.borderColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid)
15
- },
16
- size: {
17
- l: /*#__PURE__*/css(["", ":11.75rem;", ":3.5rem;", ":3.5rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.875rem;", ":0.375rem;", ":0 0.125rem;", ":0.875rem;", ":3.5rem;", ":0.063rem;", ":1.063rem 1.125rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":0.25rem;", ":1.375rem;"], tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.inputWrapperBorderWidth, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
18
- m: /*#__PURE__*/css(["", ":10.25rem;", ":3rem;", ":3rem;", ":1.25rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.75rem;", ":0.25rem;", ":0 0.125rem;", ":0.75rem;", ":3rem;", ":0.063rem;", ":0.875rem 1rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.25rem;", ":0.25rem;", ":1.375rem;"], tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.inputWrapperBorderWidth, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
19
- s: /*#__PURE__*/css(["", ":8.75rem;", ":2.5rem;", ":2.5rem;", ":1rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.625rem;", ":0.25rem;", ":0 0.125rem;", ":0.625rem;", ":2.5rem;", ":0.063rem;", ":0.688rem 0.875rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.25rem;", ":0.25rem;", ":1.375rem;"], tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.inputWrapperBorderWidth, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
20
- xs: /*#__PURE__*/css(["", ":6.875rem;", ":2rem;", ":2rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5rem;", ":0.125rem;", ":0 0.125rem;", ":0.5rem;", ":2rem;", ":0.063rem;", ":0.563rem 0.625rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.25rem;", ":0.25rem;", ":1rem;"], tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.inputWrapperBorderWidth, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize)
21
- },
22
- shape: {
23
- cornered: /*#__PURE__*/css([""]),
24
- pilled: /*#__PURE__*/css(["", ":50%;"], tokens.iconButtonRadius)
25
- },
26
- inputBackgroundType: {
27
- fill: /*#__PURE__*/css(["", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);"], tokens.borderColor, tokens.borderColorHover),
28
- clear: /*#__PURE__*/css(["", ":transparent;", ":transparent;"], tokens.borderColor, tokens.borderColorHover)
29
- },
30
- segmentation: {
31
- "default": /*#__PURE__*/css([""]),
32
- segmented: /*#__PURE__*/css([""]),
33
- solid: /*#__PURE__*/css(["", ":0;"], tokens.iconButtonSegmentationRadius)
34
- },
35
- clear: {
36
- "true": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-tertiary);"], tokens.colorClear, tokens.iconButtonColorClear, tokens.additionalTextColorClear)
37
- },
38
- disabled: {
39
- "true": /*#__PURE__*/css(["", ":0.4;"], tokens.disabledOpacity)
40
- }
41
- }
42
- };
@@ -1,5 +0,0 @@
1
- import { numberInputConfig } from '../../../../components/NumberInput';
2
- import { component, mergeConfig } from '../../../../engines';
3
- import { config } from './NumberInput.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(numberInputConfig, config);
5
- export var NumberInput = /*#__PURE__*/component(mergedConfig);
@@ -1,109 +0,0 @@
1
- import React, { ComponentProps, useState } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
-
5
- import { WithTheme } from '../../../_helpers';
6
-
7
- import { NumberInput } from './NumberInput';
8
-
9
- const onChange = action('onChange');
10
- const onDecrement = action('onDecrement');
11
- const onIncrement = action('onIncrement');
12
-
13
- const views = ['default', 'secondary', 'accent'];
14
- const sizes = ['l', 'm', 's', 'xs'];
15
- const shapes = ['cornered', 'pilled'];
16
- const inputBackgroundTypes = ['fill', 'clear'];
17
- const segmentation = ['default', 'segmented', 'solid'];
18
-
19
- const meta: Meta<typeof NumberInput> = {
20
- title: 'plasma_web/NumberInput',
21
- component: NumberInput,
22
- decorators: [WithTheme],
23
- argTypes: {
24
- min: {
25
- control: {
26
- type: 'number',
27
- },
28
- },
29
- max: {
30
- control: {
31
- type: 'number',
32
- },
33
- },
34
- view: {
35
- options: views,
36
- control: {
37
- type: 'select',
38
- },
39
- },
40
- size: {
41
- options: sizes,
42
- control: {
43
- type: 'inline-radio',
44
- },
45
- },
46
- shape: {
47
- options: shapes,
48
- control: {
49
- type: 'inline-radio',
50
- },
51
- },
52
- inputBackgroundType: {
53
- options: inputBackgroundTypes,
54
- control: {
55
- type: 'inline-radio',
56
- },
57
- },
58
- segmentation: {
59
- options: segmentation,
60
- control: {
61
- type: 'select',
62
- },
63
- },
64
- },
65
- };
66
-
67
- export default meta;
68
-
69
- type StoryPropsDefault = ComponentProps<typeof NumberInput>;
70
-
71
- const StoryDefault = (args: StoryPropsDefault) => {
72
- const [value, setValue] = useState(5);
73
-
74
- const handleChange = (_: any, newValue: number) => {
75
- setValue(newValue);
76
- onChange(newValue);
77
- };
78
-
79
- return (
80
- <NumberInput
81
- {...args}
82
- value={value}
83
- onChange={handleChange}
84
- onDecrement={onDecrement}
85
- onIncrement={onIncrement}
86
- />
87
- );
88
- };
89
-
90
- export const Default: StoryObj<StoryPropsDefault> = {
91
- args: {
92
- view: 'default',
93
- size: 'l',
94
- shape: 'cornered',
95
- inputBackgroundType: 'fill',
96
- segmentation: 'default',
97
- clear: false,
98
- min: 0,
99
- max: 9,
100
- step: 1,
101
- width: 188,
102
- isManualInput: false,
103
- textBefore: '',
104
- textAfter: '',
105
- isLoading: false,
106
- disabled: false,
107
- },
108
- render: StoryDefault,
109
- };
@@ -1,4 +0,0 @@
1
- declare module '*.css' {
2
- const content: { light: string; dark: string };
3
- export default content;
4
- }
@@ -1,7 +0,0 @@
1
- /* eslint-disable camelcase */
2
- import plasma_b2c from './plasma_b2c.module.css';
3
- import plasma_web from './plasma_web.module.css';
4
- export var themes = {
5
- plasma_b2c: plasma_b2c,
6
- plasma_web: plasma_web
7
- };