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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. package/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -27
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  3. package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -9
  4. package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  5. package/cjs/components/NumberInput/NumberInput.css +54 -0
  6. package/cjs/components/NumberInput/NumberInput.js +188 -0
  7. package/cjs/components/NumberInput/NumberInput.js.map +1 -0
  8. package/cjs/components/NumberInput/NumberInput.styles.js +9 -0
  9. package/cjs/components/NumberInput/NumberInput.styles.js.map +1 -0
  10. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  11. package/cjs/components/NumberInput/NumberInput.tokens.js +90 -0
  12. package/cjs/components/NumberInput/NumberInput.tokens.js.map +1 -0
  13. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +19 -0
  14. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  15. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +22 -0
  16. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  17. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  18. package/cjs/components/NumberInput/ui/Input/Input.css +15 -0
  19. package/cjs/components/NumberInput/ui/Input/Input.js +190 -0
  20. package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -0
  21. package/cjs/components/NumberInput/ui/Input/Input.styles.js +96 -0
  22. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  23. package/cjs/components/NumberInput/ui/Input/Input.styles_jszc0c.css +8 -0
  24. package/cjs/components/NumberInput/utils/index.js +8 -0
  25. package/cjs/components/NumberInput/utils/index.js.map +1 -0
  26. package/cjs/components/NumberInput/variations/_background-type/base.js +9 -0
  27. package/cjs/components/NumberInput/variations/_background-type/base.js.map +1 -0
  28. package/cjs/components/NumberInput/variations/_background-type/base_1jmdljr.css +1 -0
  29. package/cjs/components/NumberInput/variations/_clear/base.js +9 -0
  30. package/cjs/components/NumberInput/variations/_clear/base.js.map +1 -0
  31. package/cjs/components/NumberInput/variations/_clear/base_3l8dqb.css +1 -0
  32. package/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  33. package/cjs/components/NumberInput/variations/_disabled/base.js.map +1 -0
  34. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  35. package/cjs/components/NumberInput/variations/_segmentation/base.js +9 -0
  36. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  37. package/cjs/components/NumberInput/variations/_segmentation/base_nl8ve.css +1 -0
  38. package/cjs/components/NumberInput/variations/_shape/base.js +9 -0
  39. package/cjs/components/NumberInput/variations/_shape/base.js.map +1 -0
  40. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  41. package/cjs/components/NumberInput/variations/_size/base.js +9 -0
  42. package/cjs/components/NumberInput/variations/_size/base.js.map +1 -0
  43. package/cjs/components/NumberInput/variations/_size/base_1pju5qf.css +1 -0
  44. package/cjs/components/NumberInput/variations/_view/base.js +9 -0
  45. package/cjs/components/NumberInput/variations/_view/base.js.map +1 -0
  46. package/cjs/components/NumberInput/variations/_view/base_cghr9q.css +1 -0
  47. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  48. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  49. package/cjs/components/Select/Select.js +25 -13
  50. package/cjs/components/Select/Select.js.map +1 -1
  51. package/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  52. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  53. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  54. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  55. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  56. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  57. package/cjs/components/Select/utils/getButtonLabel.js +1 -1
  58. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  59. package/cjs/components/Select/utils/initialItemsTransform.js +6 -9
  60. package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -1
  61. package/cjs/index.css +25 -0
  62. package/cjs/index.js +6 -0
  63. package/cjs/index.js.map +1 -1
  64. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -26
  65. package/emotion/cjs/components/Combobox/ComboboxNew/utils/index.js +1 -8
  66. package/emotion/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  67. package/emotion/cjs/components/NumberInput/NumberInput.js +198 -0
  68. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +17 -0
  69. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +87 -0
  70. package/emotion/cjs/components/NumberInput/NumberInput.types.js +5 -0
  71. package/emotion/cjs/components/NumberInput/index.js +31 -0
  72. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  73. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +16 -0
  74. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  75. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +198 -0
  76. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +82 -0
  77. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  78. package/emotion/cjs/components/NumberInput/ui/index.js +19 -0
  79. package/emotion/cjs/components/NumberInput/utils/index.js +7 -0
  80. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  81. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  82. package/emotion/cjs/components/NumberInput/variations/_clear/base.js +12 -0
  83. package/emotion/cjs/components/NumberInput/variations/_clear/tokens.json +5 -0
  84. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  85. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  86. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  87. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  88. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  89. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  90. package/emotion/cjs/components/NumberInput/variations/_size/base.js +13 -0
  91. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  92. package/emotion/cjs/components/NumberInput/variations/_view/base.js +13 -0
  93. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  94. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  95. package/emotion/cjs/components/Select/Select.js +25 -12
  96. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  97. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  98. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +13 -13
  99. package/emotion/cjs/components/Select/utils/getButtonLabel.js +1 -1
  100. package/emotion/cjs/components/Select/utils/index.js +1 -8
  101. package/emotion/cjs/components/Select/utils/initialItemsTransform.js +6 -19
  102. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  103. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +48 -0
  104. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  105. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +109 -0
  106. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  107. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +48 -0
  108. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  109. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +109 -0
  110. package/emotion/cjs/index.js +11 -0
  111. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +23 -27
  112. package/emotion/es/components/Combobox/ComboboxNew/utils/index.js +1 -2
  113. package/emotion/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  114. package/emotion/es/components/NumberInput/NumberInput.js +190 -0
  115. package/emotion/es/components/NumberInput/NumberInput.styles.js +11 -0
  116. package/emotion/es/components/NumberInput/NumberInput.tokens.js +81 -0
  117. package/emotion/es/components/NumberInput/NumberInput.types.js +1 -0
  118. package/emotion/es/components/NumberInput/index.js +2 -0
  119. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  120. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +9 -0
  121. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  122. package/emotion/es/components/NumberInput/ui/Input/Input.js +189 -0
  123. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +75 -0
  124. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  125. package/emotion/es/components/NumberInput/ui/index.js +2 -0
  126. package/emotion/es/components/NumberInput/utils/index.js +1 -0
  127. package/emotion/es/components/NumberInput/variations/_background-type/base.js +4 -0
  128. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  129. package/emotion/es/components/NumberInput/variations/_clear/base.js +6 -0
  130. package/emotion/es/components/NumberInput/variations/_clear/tokens.json +5 -0
  131. package/emotion/es/components/NumberInput/variations/_disabled/base.js +3 -0
  132. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  133. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  134. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  135. package/emotion/es/components/NumberInput/variations/_shape/base.js +5 -0
  136. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  137. package/emotion/es/components/NumberInput/variations/_size/base.js +7 -0
  138. package/emotion/es/components/NumberInput/variations/_size/tokens.json +22 -0
  139. package/emotion/es/components/NumberInput/variations/_view/base.js +7 -0
  140. package/emotion/es/components/NumberInput/variations/_view/tokens.json +14 -0
  141. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  142. package/emotion/es/components/Select/Select.js +26 -13
  143. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  144. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  145. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +13 -13
  146. package/emotion/es/components/Select/utils/getButtonLabel.js +1 -1
  147. package/emotion/es/components/Select/utils/index.js +1 -2
  148. package/emotion/es/components/Select/utils/initialItemsTransform.js +6 -19
  149. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  150. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +42 -0
  151. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  152. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +109 -0
  153. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  154. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +42 -0
  155. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  156. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +109 -0
  157. package/emotion/es/index.js +2 -1
  158. package/es/components/Combobox/ComboboxNew/Combobox.js +22 -27
  159. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  160. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -9
  161. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  162. package/es/components/NumberInput/NumberInput.css +54 -0
  163. package/es/components/NumberInput/NumberInput.js +183 -0
  164. package/es/components/NumberInput/NumberInput.js.map +1 -0
  165. package/es/components/NumberInput/NumberInput.styles.js +5 -0
  166. package/es/components/NumberInput/NumberInput.styles.js.map +1 -0
  167. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  168. package/es/components/NumberInput/NumberInput.tokens.js +84 -0
  169. package/es/components/NumberInput/NumberInput.tokens.js.map +1 -0
  170. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +15 -0
  171. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  172. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +18 -0
  173. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  174. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  175. package/es/components/NumberInput/ui/Input/Input.css +15 -0
  176. package/es/components/NumberInput/ui/Input/Input.js +186 -0
  177. package/es/components/NumberInput/ui/Input/Input.js.map +1 -0
  178. package/es/components/NumberInput/ui/Input/Input.styles.js +85 -0
  179. package/es/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  180. package/es/components/NumberInput/ui/Input/Input.styles_jszc0c.css +8 -0
  181. package/es/components/NumberInput/utils/index.js +4 -0
  182. package/es/components/NumberInput/utils/index.js.map +1 -0
  183. package/es/components/NumberInput/variations/_background-type/base.js +5 -0
  184. package/es/components/NumberInput/variations/_background-type/base.js.map +1 -0
  185. package/es/components/NumberInput/variations/_background-type/base_1jmdljr.css +1 -0
  186. package/es/components/NumberInput/variations/_clear/base.js +5 -0
  187. package/es/components/NumberInput/variations/_clear/base.js.map +1 -0
  188. package/es/components/NumberInput/variations/_clear/base_3l8dqb.css +1 -0
  189. package/es/components/NumberInput/variations/_disabled/base.js +5 -0
  190. package/es/components/NumberInput/variations/_disabled/base.js.map +1 -0
  191. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  192. package/es/components/NumberInput/variations/_segmentation/base.js +5 -0
  193. package/es/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  194. package/es/components/NumberInput/variations/_segmentation/base_nl8ve.css +1 -0
  195. package/es/components/NumberInput/variations/_shape/base.js +5 -0
  196. package/es/components/NumberInput/variations/_shape/base.js.map +1 -0
  197. package/es/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  198. package/es/components/NumberInput/variations/_size/base.js +5 -0
  199. package/es/components/NumberInput/variations/_size/base.js.map +1 -0
  200. package/es/components/NumberInput/variations/_size/base_1pju5qf.css +1 -0
  201. package/es/components/NumberInput/variations/_view/base.js +5 -0
  202. package/es/components/NumberInput/variations/_view/base.js.map +1 -0
  203. package/es/components/NumberInput/variations/_view/base_cghr9q.css +1 -0
  204. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  205. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  206. package/es/components/Select/Select.js +26 -14
  207. package/es/components/Select/Select.js.map +1 -1
  208. package/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  209. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  210. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  211. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  212. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  213. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  214. package/es/components/Select/utils/getButtonLabel.js +1 -1
  215. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  216. package/es/components/Select/utils/initialItemsTransform.js +6 -9
  217. package/es/components/Select/utils/initialItemsTransform.js.map +1 -1
  218. package/es/index.css +25 -0
  219. package/es/index.js +2 -0
  220. package/es/index.js.map +1 -1
  221. package/package.json +2 -2
  222. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -26
  223. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/index.js +1 -8
  224. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  225. package/styled-components/cjs/components/NumberInput/NumberInput.js +198 -0
  226. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +8 -0
  227. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +87 -0
  228. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +5 -0
  229. package/styled-components/cjs/components/NumberInput/index.js +31 -0
  230. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  231. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +15 -0
  232. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  233. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +198 -0
  234. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +49 -0
  235. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  236. package/styled-components/cjs/components/NumberInput/ui/index.js +19 -0
  237. package/styled-components/cjs/components/NumberInput/utils/index.js +7 -0
  238. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  239. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  240. package/styled-components/cjs/components/NumberInput/variations/_clear/base.js +12 -0
  241. package/styled-components/cjs/components/NumberInput/variations/_clear/tokens.json +5 -0
  242. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  243. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  244. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  245. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  246. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  247. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  248. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +13 -0
  249. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  250. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +13 -0
  251. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  252. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  253. package/styled-components/cjs/components/Select/Select.js +25 -12
  254. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  255. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  256. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  257. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +1 -1
  258. package/styled-components/cjs/components/Select/utils/index.js +1 -8
  259. package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +6 -19
  260. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  261. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +48 -0
  262. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  263. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +109 -0
  264. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  265. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +48 -0
  266. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  267. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +109 -0
  268. package/styled-components/cjs/index.js +11 -0
  269. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +23 -27
  270. package/styled-components/es/components/Combobox/ComboboxNew/utils/index.js +1 -2
  271. package/styled-components/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  272. package/styled-components/es/components/NumberInput/NumberInput.js +190 -0
  273. package/styled-components/es/components/NumberInput/NumberInput.styles.js +2 -0
  274. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +81 -0
  275. package/styled-components/es/components/NumberInput/NumberInput.types.js +1 -0
  276. package/styled-components/es/components/NumberInput/index.js +2 -0
  277. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  278. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +8 -0
  279. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  280. package/styled-components/es/components/NumberInput/ui/Input/Input.js +189 -0
  281. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +42 -0
  282. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  283. package/styled-components/es/components/NumberInput/ui/index.js +2 -0
  284. package/styled-components/es/components/NumberInput/utils/index.js +1 -0
  285. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +4 -0
  286. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  287. package/styled-components/es/components/NumberInput/variations/_clear/base.js +6 -0
  288. package/styled-components/es/components/NumberInput/variations/_clear/tokens.json +5 -0
  289. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +3 -0
  290. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  291. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  292. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  293. package/styled-components/es/components/NumberInput/variations/_shape/base.js +5 -0
  294. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  295. package/styled-components/es/components/NumberInput/variations/_size/base.js +7 -0
  296. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +22 -0
  297. package/styled-components/es/components/NumberInput/variations/_view/base.js +7 -0
  298. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +14 -0
  299. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  300. package/styled-components/es/components/Select/Select.js +26 -13
  301. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  302. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  303. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  304. package/styled-components/es/components/Select/utils/getButtonLabel.js +1 -1
  305. package/styled-components/es/components/Select/utils/index.js +1 -2
  306. package/styled-components/es/components/Select/utils/initialItemsTransform.js +6 -19
  307. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  308. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +42 -0
  309. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  310. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +109 -0
  311. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  312. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +42 -0
  313. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  314. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +109 -0
  315. package/styled-components/es/index.js +2 -1
  316. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  317. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +3 -14
  318. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  319. package/types/components/Combobox/ComboboxNew/utils/index.d.ts +0 -1
  320. package/types/components/Combobox/ComboboxNew/utils/index.d.ts.map +1 -1
  321. package/types/components/Combobox/ComboboxNew/utils/initialItemsTransform.d.ts.map +1 -1
  322. package/types/components/NumberInput/NumberInput.d.ts +42 -0
  323. package/types/components/NumberInput/NumberInput.d.ts.map +1 -0
  324. package/types/components/NumberInput/NumberInput.styles.d.ts +2 -0
  325. package/types/components/NumberInput/NumberInput.styles.d.ts.map +1 -0
  326. package/types/components/NumberInput/NumberInput.tokens.d.ts +76 -0
  327. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +1 -0
  328. package/types/components/NumberInput/NumberInput.types.d.ts +112 -0
  329. package/types/components/NumberInput/NumberInput.types.d.ts.map +1 -0
  330. package/types/components/NumberInput/index.d.ts +3 -0
  331. package/types/components/NumberInput/index.d.ts.map +1 -0
  332. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +4 -0
  333. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +1 -0
  334. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +45 -0
  335. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +1 -0
  336. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +7 -0
  337. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +1 -0
  338. package/types/components/NumberInput/ui/Input/Input.d.ts +16 -0
  339. package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -0
  340. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +30 -0
  341. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +1 -0
  342. package/types/components/NumberInput/ui/Input/Input.types.d.ts +16 -0
  343. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +1 -0
  344. package/types/components/NumberInput/ui/index.d.ts +3 -0
  345. package/types/components/NumberInput/ui/index.d.ts.map +1 -0
  346. package/types/components/NumberInput/utils/index.d.ts +2 -0
  347. package/types/components/NumberInput/utils/index.d.ts.map +1 -0
  348. package/types/components/NumberInput/variations/_background-type/base.d.ts +2 -0
  349. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +1 -0
  350. package/types/components/NumberInput/variations/_clear/base.d.ts +2 -0
  351. package/types/components/NumberInput/variations/_clear/base.d.ts.map +1 -0
  352. package/types/components/NumberInput/variations/_disabled/base.d.ts +2 -0
  353. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +1 -0
  354. package/types/components/NumberInput/variations/_segmentation/base.d.ts +2 -0
  355. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +1 -0
  356. package/types/components/NumberInput/variations/_shape/base.d.ts +2 -0
  357. package/types/components/NumberInput/variations/_shape/base.d.ts.map +1 -0
  358. package/types/components/NumberInput/variations/_size/base.d.ts +2 -0
  359. package/types/components/NumberInput/variations/_size/base.d.ts.map +1 -0
  360. package/types/components/NumberInput/variations/_view/base.d.ts +2 -0
  361. package/types/components/NumberInput/variations/_view/base.d.ts.map +1 -0
  362. package/types/components/Select/Select.d.ts.map +1 -1
  363. package/types/components/Select/Select.types.d.ts +0 -1
  364. package/types/components/Select/Select.types.d.ts.map +1 -1
  365. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +2 -2
  366. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  367. package/types/components/Select/ui/Target/Target.types.d.ts +2 -2
  368. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  369. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +4 -4
  370. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  371. package/types/components/Select/utils/index.d.ts +0 -1
  372. package/types/components/Select/utils/index.d.ts.map +1 -1
  373. package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -1
  374. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +6 -30
  375. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  376. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +41 -0
  377. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  378. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +84 -0
  379. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +1 -0
  380. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +6 -30
  381. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  382. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +41 -0
  383. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  384. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +84 -0
  385. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +1 -0
  386. package/types/index.d.ts +1 -0
  387. package/types/index.d.ts.map +1 -1
  388. package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -21
  389. package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +0 -1
  390. package/cjs/components/Select/utils/getInitialValue.js +0 -21
  391. package/cjs/components/Select/utils/getInitialValue.js.map +0 -1
  392. package/emotion/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -20
  393. package/emotion/cjs/components/Select/utils/getInitialValue.js +0 -20
  394. package/emotion/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -14
  395. package/emotion/es/components/Select/utils/getInitialValue.js +0 -14
  396. package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -17
  397. package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +0 -1
  398. package/es/components/Select/utils/getInitialValue.js +0 -17
  399. package/es/components/Select/utils/getInitialValue.js.map +0 -1
  400. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -20
  401. package/styled-components/cjs/components/Select/utils/getInitialValue.js +0 -20
  402. package/styled-components/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -14
  403. package/styled-components/es/components/Select/utils/getInitialValue.js +0 -14
  404. package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts +0 -4
  405. package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts.map +0 -1
  406. package/types/components/Select/utils/getInitialValue.d.ts +0 -4
  407. package/types/components/Select/utils/getInitialValue.d.ts.map +0 -1
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.NumberInput = void 0;
7
+ var _NumberInput = /*#__PURE__*/require("../../../../components/NumberInput");
8
+ var _engines = /*#__PURE__*/require("../../../../engines");
9
+ var _NumberInput2 = /*#__PURE__*/require("./NumberInput.config");
10
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_NumberInput.numberInputConfig, _NumberInput2.config);
11
+ var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -0,0 +1,109 @@
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
+ };
@@ -673,4 +673,15 @@ Object.keys(_Attach).forEach(function (key) {
673
673
  return _Attach[key];
674
674
  }
675
675
  });
676
+ });
677
+ var _NumberInput = /*#__PURE__*/require("./components/NumberInput");
678
+ Object.keys(_NumberInput).forEach(function (key) {
679
+ if (key === "default" || key === "__esModule") return;
680
+ if (key in exports && exports[key] === _NumberInput[key]) return;
681
+ Object.defineProperty(exports, key, {
682
+ enumerable: true,
683
+ get: function get() {
684
+ return _NumberInput[key];
685
+ }
686
+ });
676
687
  });
@@ -1,4 +1,4 @@
1
- var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
1
+ var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -16,7 +16,7 @@ import { sizeToIconSize } from '../../Select/utils';
16
16
  import { classes } from './Combobox.tokens';
17
17
  import { FloatingPopover } from './FloatingPopover';
18
18
  import { useKeyNavigation, getItemByFocused } from './hooks/useKeyboardNavigation';
19
- import { initialItemsTransform, updateAncestors, updateDescendants, updateSingleAncestors, filterItems, getItemId, getInitialValue } from './utils';
19
+ import { initialItemsTransform, updateAncestors, updateDescendants, updateSingleAncestors, filterItems, getItemId } from './utils';
20
20
  import { Inner, StyledTextField } from './ui';
21
21
  import { pathReducer, focusedPathReducer } from './reducers';
22
22
  import { getPathMap, getTreeMaps } from './hooks/getPathMaps';
@@ -35,7 +35,6 @@ export var comboboxRoot = function comboboxRoot(Root) {
35
35
  outerValue = props.value,
36
36
  outerOnChange = props.onChange,
37
37
  isTargetAmount = props.isTargetAmount,
38
- targetAmount = props.targetAmount,
39
38
  items = props.items,
40
39
  _props$placement = props.placement,
41
40
  placement = _props$placement === void 0 ? 'bottom-start' : _props$placement,
@@ -63,15 +62,10 @@ export var comboboxRoot = function comboboxRoot(Root) {
63
62
  alwaysOpened = _props$alwaysOpened === void 0 ? false : _props$alwaysOpened,
64
63
  filter = props.filter,
65
64
  outerCloseAfterSelect = props.closeAfterSelect,
66
- renderValue = props.renderValue,
67
65
  rest = _objectWithoutProperties(props, _excluded);
68
- var transformedItems = useMemo(function () {
69
- return initialItemsTransform(items || []);
70
- }, [items]);
71
-
72
66
  // Создаем структуры для быстрой работы с деревом
73
67
  var _useMemo = useMemo(function () {
74
- return getTreeMaps(transformedItems);
68
+ return getTreeMaps(items);
75
69
  }, [items]),
76
70
  _useMemo2 = _slicedToArray(_useMemo, 3),
77
71
  valueToCheckedMap = _useMemo2[0],
@@ -85,11 +79,14 @@ export var comboboxRoot = function comboboxRoot(Root) {
85
79
  _useState4 = _slicedToArray(_useState3, 2),
86
80
  internalValue = _useState4[0],
87
81
  setInternalValue = _useState4[1];
88
- var value = outerValue !== null && outerValue !== undefined ? getInitialValue(outerValue, valueToItemMap) : internalValue;
82
+ var value = outerValue || internalValue;
89
83
  var inputRef = useRef(null);
90
84
  var floatingPopoverRef = useRef(null);
91
85
  var inputForkRef = useForkRef(inputRef, ref);
92
86
  var treeId = safeUseId();
87
+ var transformedItems = useMemo(function () {
88
+ return initialItemsTransform(items || []);
89
+ }, [items]);
93
90
  var filteredItems = filterItems(transformedItems, textValue, (_valueToItemMap$get2 = valueToItemMap.get(value)) === null || _valueToItemMap$get2 === void 0 ? void 0 : _valueToItemMap$get2.label, filter);
94
91
  var _useMemo3 = useMemo(function () {
95
92
  return getPathMap(filteredItems);
@@ -256,7 +253,16 @@ export var comboboxRoot = function comboboxRoot(Root) {
256
253
  if (e) {
257
254
  e.stopPropagation();
258
255
  }
259
- var isCurrentChecked = checked.get(item.value);
256
+ var checkedCopy = new Map(checked);
257
+ var isCurrentChecked = checkedCopy.get(item.value);
258
+ checkedCopy.forEach(function (_, key) {
259
+ checkedCopy.set(key, false);
260
+ });
261
+ if (!isCurrentChecked) {
262
+ checkedCopy.set(item.value, 'done');
263
+ updateSingleAncestors(item, checkedCopy, 'dot');
264
+ }
265
+ setTextValue(isCurrentChecked ? '' : item.label);
260
266
  if (!alwaysOpened && closeAfterSelect) {
261
267
  dispatchPath({
262
268
  type: 'reset'
@@ -270,18 +276,14 @@ export var comboboxRoot = function comboboxRoot(Root) {
270
276
  }
271
277
  };
272
278
  var getChips = function getChips() {
273
- if (multiple && Array.isArray(value)) {
279
+ if (multiple) {
274
280
  if (value.length === 0) return [];
275
281
  if (isTargetAmount) {
276
- return ["\u0412\u044B\u0431\u0440\u0430\u043D\u043E ".concat(targetAmount || value.length)];
282
+ return ["\u0412\u044B\u0431\u0440\u0430\u043D\u043E ".concat(value.length)];
277
283
  }
278
- var renderValueMapper = renderValue && function (stringValue) {
279
- return renderValue(valueToItemMap.get(stringValue));
280
- };
281
- var valueToItemMapper = function valueToItemMapper(stringValue) {
282
- return valueToItemMap.get(stringValue).label;
283
- };
284
- return value.map(renderValueMapper || valueToItemMapper);
284
+ return value.map(function (value) {
285
+ return valueToItemMap.get(value).label;
286
+ });
285
287
  }
286
288
  return [];
287
289
  };
@@ -309,7 +311,6 @@ export var comboboxRoot = function comboboxRoot(Root) {
309
311
  // В данном эффекте мы следим за изменениями value снаружи и вносим коррективы в дерево чекбоксов.
310
312
  // Пример: когда юзер очистил value извне, тогда нужно пройтись по элементам и выключить все чекбоксы.
311
313
  useLayoutEffect(function () {
312
- var _valueToItemMap$get4;
313
314
  var checkedCopy = new Map(checked);
314
315
  checkedCopy.forEach(function (_, key) {
315
316
  checkedCopy.set(key, false);
@@ -327,12 +328,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
327
328
  }
328
329
  }
329
330
  setChecked(checkedCopy);
330
- setTextValue(((_valueToItemMap$get4 = valueToItemMap.get(outerValue)) === null || _valueToItemMap$get4 === void 0 ? void 0 : _valueToItemMap$get4.label) || '');
331
-
332
- // В deps мы кладем именно outerValue и internalValue, а не просто value.
333
- // Т.к. вначале нужно отфильтровать и провалидировать outerValue и результат положить в переменную.
334
- // А переменную, содержащую сложные типы данных, нельзя помещать в deps.
335
- }, [outerValue, internalValue, items]);
331
+ }, [value]);
336
332
  return /*#__PURE__*/React.createElement(Root, {
337
333
  size: size,
338
334
  view: view,
@@ -4,5 +4,4 @@ export { updateAncestors } from './updateAncestors';
4
4
  export { updateSingleAncestors } from './updateSingleAncestors';
5
5
  export { sizeToIconSize } from './sizeToIconSize';
6
6
  export { filterItems } from './filterItems';
7
- export { getItemId } from './getItemId';
8
- export { getInitialValue } from './getInitialValue';
7
+ export { getItemId } from './getItemId';
@@ -1,25 +1,11 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
1
  // Проходимся по массиву items и добавляем в каждый item ключ parent, который ссылается на item родителя.
14
2
  // Дает возможность прохода к корневому элементу (снизу вверх).
15
- // На выходе получаем глубокую копию исходного массива items.
16
3
  export var initialItemsTransform = function initialItemsTransform(items, parent) {
17
- return _toConsumableArray(items).map(function (item) {
18
- var itemCopy = _objectSpread({}, item);
19
- itemCopy.parent = parent;
20
- if (itemCopy.items) {
21
- itemCopy.items = initialItemsTransform(itemCopy.items, itemCopy);
4
+ items.forEach(function (item) {
5
+ item.parent = parent;
6
+ if (item.items) {
7
+ item.items = initialItemsTransform(item.items, item);
22
8
  }
23
- return itemCopy;
24
9
  });
10
+ return items;
25
11
  };
@@ -0,0 +1,190 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["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"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
+ import React, { forwardRef, useState } from 'react';
18
+ import { cx, getSizeValueFromProp } from '../../utils';
19
+ import { IconMinus, IconPlus } from '../_Icon';
20
+ import { ActionButton, NumberInput } from './ui';
21
+ import { classes, privateTokens } from './NumberInput.tokens';
22
+ import { base } from './NumberInput.styles';
23
+ import { base as viewCSS } from './variations/_view/base';
24
+ import { base as sizeCSS } from './variations/_size/base';
25
+ import { base as shapeCSS } from './variations/_shape/base';
26
+ import { base as inputBackgroundTypeCSS } from './variations/_background-type/base';
27
+ import { base as segmentationCSS } from './variations/_segmentation/base';
28
+ import { base as clearCSS } from './variations/_clear/base';
29
+ import { base as disabledCSS } from './variations/_disabled/base';
30
+ export var numberInputRoot = function numberInputRoot(Root) {
31
+ return /*#__PURE__*/forwardRef(function (_ref, ref) {
32
+ var _ref2;
33
+ var className = _ref.className,
34
+ style = _ref.style,
35
+ width = _ref.width,
36
+ value = _ref.value,
37
+ min = _ref.min,
38
+ max = _ref.max,
39
+ _ref$step = _ref.step,
40
+ step = _ref$step === void 0 ? 1 : _ref$step,
41
+ isLoading = _ref.isLoading,
42
+ loader = _ref.loader,
43
+ size = _ref.size,
44
+ view = _ref.view,
45
+ clear = _ref.clear,
46
+ shape = _ref.shape,
47
+ segmentation = _ref.segmentation,
48
+ _ref$inputBackgroundT = _ref.inputBackgroundType,
49
+ inputBackgroundType = _ref$inputBackgroundT === void 0 ? 'fill' : _ref$inputBackgroundT,
50
+ disabled = _ref.disabled,
51
+ textBefore = _ref.textBefore,
52
+ textAfter = _ref.textAfter,
53
+ customIncrementButton = _ref.customIncrementButton,
54
+ incrementIcon = _ref.incrementIcon,
55
+ customDecrementButton = _ref.customDecrementButton,
56
+ decrementIcon = _ref.decrementIcon,
57
+ isManualInput = _ref.isManualInput,
58
+ onChange = _ref.onChange,
59
+ onIncrement = _ref.onIncrement,
60
+ onDecrement = _ref.onDecrement,
61
+ rest = _objectWithoutProperties(_ref, _excluded);
62
+ var _useState = useState((_ref2 = value !== null && value !== void 0 ? value : min) !== null && _ref2 !== void 0 ? _ref2 : 0),
63
+ _useState2 = _slicedToArray(_useState, 2),
64
+ innerValue = _useState2[0],
65
+ setInnerValue = _useState2[1];
66
+ var innerWidth = width ? getSizeValueFromProp(width) : '100%';
67
+ var actionIconSize = size === 'xs' ? 'xs' : 's';
68
+ var solidViewClass = segmentation === 'solid' ? classes.solidView : undefined;
69
+ var segmentedViewClass = segmentation === 'segmented' ? classes.segmentedView : undefined;
70
+ var clearViewClass = clear ? classes.clearView : undefined;
71
+ var disabledClass = disabled ? classes.disabled : undefined;
72
+ var isMinValue = function isMinValue(currentValue) {
73
+ return min && currentValue <= min;
74
+ };
75
+ var isMaxValue = function isMaxValue(currentValue) {
76
+ return max && currentValue >= max;
77
+ };
78
+ var decrementButtonDisabled = isMinValue(Number(innerValue)) || isLoading ? classes.actionButtonDecrementDisabled : undefined;
79
+ var incrementButtonDisabled = isMaxValue(Number(innerValue)) || isLoading ? classes.actionButtonIncrementDisabled : undefined;
80
+ var handleDecrement = function handleDecrement() {
81
+ if (isLoading || disabled) {
82
+ return;
83
+ }
84
+ var diffValue = Number(innerValue) - step;
85
+ var resValue = !isMinValue(diffValue) ? diffValue : Number(min);
86
+ setInnerValue(resValue);
87
+ if (onDecrement) {
88
+ onDecrement(resValue);
89
+ }
90
+ if (onChange) {
91
+ onChange(null, resValue);
92
+ }
93
+ };
94
+ var handleIncrement = function handleIncrement() {
95
+ if (isLoading || disabled) {
96
+ return;
97
+ }
98
+ var diffValue = Number(innerValue) + step;
99
+ var resValue = !isMaxValue(diffValue) ? diffValue : Number(max);
100
+ setInnerValue(resValue);
101
+ if (onIncrement) {
102
+ onIncrement(resValue);
103
+ }
104
+ if (onChange) {
105
+ onChange(null, resValue);
106
+ }
107
+ };
108
+ return /*#__PURE__*/React.createElement(Root, _extends({
109
+ view: view,
110
+ size: size,
111
+ disabled: disabled,
112
+ clear: clear,
113
+ shape: shape,
114
+ segmentation: segmentation,
115
+ isLoading: isLoading
116
+ }, segmentation === 'solid' ? {
117
+ inputBackgroundType: 'clear'
118
+ } : {
119
+ inputBackgroundType: inputBackgroundType
120
+ }, {
121
+ className: cx(className, solidViewClass, clearViewClass, disabledClass),
122
+ style: _objectSpread(_objectSpread({}, style), {}, _defineProperty({}, privateTokens.inputWidth, innerWidth))
123
+ }), customDecrementButton || /*#__PURE__*/React.createElement(ActionButton, {
124
+ className: cx(classes.actionButtonDecrement, decrementButtonDisabled, solidViewClass, segmentedViewClass),
125
+ icon: decrementIcon || /*#__PURE__*/React.createElement(IconMinus, {
126
+ color: "inherit",
127
+ size: actionIconSize
128
+ }),
129
+ onClick: handleDecrement
130
+ }), /*#__PURE__*/React.createElement(NumberInput, _extends({
131
+ ref: ref,
132
+ segmentation: segmentation,
133
+ value: innerValue,
134
+ min: min,
135
+ max: max,
136
+ isManualInput: isManualInput,
137
+ textBefore: textBefore,
138
+ textAfter: textAfter,
139
+ isLoading: isLoading,
140
+ loader: loader,
141
+ disabled: disabled,
142
+ setInnerValue: setInnerValue,
143
+ onChange: onChange
144
+ }, rest)), customIncrementButton || /*#__PURE__*/React.createElement(ActionButton, {
145
+ className: cx(classes.actionButtonIncrement, incrementButtonDisabled, solidViewClass, segmentedViewClass),
146
+ icon: incrementIcon || /*#__PURE__*/React.createElement(IconPlus, {
147
+ color: "inherit",
148
+ size: actionIconSize
149
+ }),
150
+ onClick: handleIncrement
151
+ }));
152
+ });
153
+ };
154
+ export var numberInputConfig = {
155
+ name: 'NumberInput',
156
+ tag: 'div',
157
+ layout: numberInputRoot,
158
+ base: base,
159
+ variations: {
160
+ view: {
161
+ css: viewCSS
162
+ },
163
+ size: {
164
+ css: sizeCSS
165
+ },
166
+ shape: {
167
+ css: shapeCSS
168
+ },
169
+ inputBackgroundType: {
170
+ css: inputBackgroundTypeCSS
171
+ },
172
+ segmentation: {
173
+ css: segmentationCSS
174
+ },
175
+ clear: {
176
+ css: clearCSS,
177
+ attrs: true
178
+ },
179
+ disabled: {
180
+ css: disabledCSS,
181
+ attrs: true
182
+ }
183
+ },
184
+ defaults: {
185
+ view: 'default',
186
+ size: 'l',
187
+ shape: 'cornered',
188
+ segmentation: 'default'
189
+ }
190
+ };
@@ -0,0 +1,11 @@
1
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
2
+ import { css } from '@emotion/react';
3
+ export var base = process.env.NODE_ENV === "production" ? {
4
+ name: "1dep0p4-plasma-new-hope__base",
5
+ styles: "display:flex;align-items:center;label:plasma-new-hope__base;"
6
+ } : {
7
+ name: "1dep0p4-plasma-new-hope__base",
8
+ styles: "display:flex;align-items:center;label:plasma-new-hope__base;",
9
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvTnVtYmVySW5wdXQuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUV1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL051bWJlcklucHV0L051bWJlcklucHV0LnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZGlzcGxheTogZmxleDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuYDtcbiJdfQ== */",
10
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
11
+ };
@@ -0,0 +1,81 @@
1
+ export var classes = {
2
+ actionButtonDecrement: 'action-button-decrement',
3
+ actionButtonDecrementDisabled: 'action-button-decrement-disabled',
4
+ actionButtonIncrement: 'action-button-increment',
5
+ actionButtonIncrementDisabled: 'action-button-increment-disabled',
6
+ textBefore: 'text-before',
7
+ textAfter: 'text-after',
8
+ solidView: 'solid-view',
9
+ segmentedView: 'segmented-view',
10
+ clearView: 'clear-view',
11
+ errorAnimation: 'error-animation',
12
+ disabled: 'number-input-disabled'
13
+ };
14
+ export var privateTokens = {
15
+ inputWidth: '--plasma_private-number-input_width',
16
+ segmentationBorderRadius: '--plasma_private-segemntation-border-radius'
17
+ };
18
+ export var tokens = {
19
+ // Root size tokens
20
+ rootMinWidth: '--plasma-number-input_min-width',
21
+ disabledOpacity: '--plasma-number-input_disabled-opacity',
22
+ // Action button view tokens
23
+ iconButtonColor: '--plasma-number-input_icon-button_color',
24
+ iconButtonBackgroundColor: '--plasma-number-input_icon-button_background-color',
25
+ iconButtonColorHover: '--plasma-number-input_icon-button_color-hover',
26
+ iconButtonBackgroundColorHover: '--plasma-number-input_icon-button_background-color-hover',
27
+ iconButtonColorActive: '--plasma-number-input_icon-button_color-active',
28
+ iconButtonBackgroundColorActive: '--plasma-number-input_icon-button_background-color-active',
29
+ iconButtonColorClear: '--plasma-number-input_icon-button_color-clear',
30
+ actionButtonDisabledOpacity: '--plasma-number-input_action-button_disabled-opacity',
31
+ // Action button size tokens
32
+ iconButtonHeight: '--plasma-number-input_icon-button_height',
33
+ iconButtonWidth: '--plasma-number-input_icon-button_width',
34
+ iconButtonPadding: '--plasma-number-input_icon-button_padding',
35
+ iconButtonRadius: '--plasma-number-input_icon-button_radius',
36
+ iconButtonSegmentationRadius: '--plasma-number-input_icon-button_segmentation_radius',
37
+ iconButtonFontFamily: '--plasma-number-input_icon-button_font-family',
38
+ iconButtonFontSize: '--plasma-number-input_icon-button_font-size',
39
+ iconButtonFontStyle: '--plasma-number-input_icon-button_font-style',
40
+ iconButtonFontWeight: '--plasma-number-input_icon-button_font-weight',
41
+ iconButtonLetterSpacing: '--plasma-number-input_icon-button_letter-spacing',
42
+ iconButtonLineHeight: '--plasma-number-input_icon-button_line-height',
43
+ // Input size tokens
44
+ inputWrapperBorderWidth: '--plasma-number-input_input-wrapper_border-width',
45
+ inputWrapperMargin: '--plasma-number-input_input-wrapper_margin',
46
+ inputWrapperBorderRadius: '--plasma-number-input_input-wrapper_border-radius',
47
+ textWrapperHeight: '--plasma-number-input_text-wrapper_height',
48
+ textWrapperPadding: '--plasma-number-input_text-wrapper_padding',
49
+ fontFamily: '--plasma-number-input_font-family',
50
+ fontStyle: '--plasma-number-input_font-style',
51
+ fontSize: '--plasma-number-input_font-size',
52
+ fontWeight: '--plasma-number-input_font-weight',
53
+ letterSpacing: '--plasma-number-input_letter-spacing',
54
+ lineHeight: '--plasma-number-input_line-height',
55
+ textBeforeMarginRight: '--plasma-number-input_text-before_margin-right',
56
+ textAfterMarginLeft: '--plasma-number-input_text-after_margin-left',
57
+ // Input view tokens
58
+ caretColor: '--plasma-number-input_caret_color',
59
+ caretColorSolid: '--plasma-number-input_caret_color-solid',
60
+ color: '--plasma-number-input_color',
61
+ colorSolid: '--plasma-number-input_color-solid',
62
+ colorClear: '--plasma-number-input_color-clear',
63
+ backgroundColor: '--plasma-number-input_background-color',
64
+ backgroundColorHover: '--plasma-number-input_background-color-hover',
65
+ backgroundColorFocus: '--plasma-number-input_background-color-focus',
66
+ backgroundColorSolidFocus: '--plasma-number-input_background-color-solid-focus',
67
+ backgroundColorSolid: '--plasma-number-input_background-color-solid',
68
+ borderColor: '--plasma-number-input_border-color',
69
+ borderColorHover: '--plasma-number-input_border-color-hover',
70
+ borderColorFocus: '--plasma-number-input_border-color-focus',
71
+ borderColorSolidFocus: '--plasma-number-input_border-color-solid-focus',
72
+ borderColorSolid: '--plasma-number-input_border-color-solid',
73
+ additionalTextColor: '--plasma-number-input_additional-text_color',
74
+ additionalTextColorSolid: '--plasma-number-input_additional-text_color-solid',
75
+ additionalTextColorClear: '--plasma-number-input_additional-text_color-clear',
76
+ errorColor: '--plasma-number-input_error-color',
77
+ // Loader tokens
78
+ loaderSpinnerSize: '--plasma-number-input_loader-spinner_size',
79
+ loaderSpinnerColor: '--plasma-number-input_loader-spinner_color',
80
+ loaderSpinnerColorSolid: '--plasma-number-input_loader-spinner_color-solid'
81
+ };
@@ -0,0 +1,2 @@
1
+ export { numberInputRoot, numberInputConfig } from './NumberInput';
2
+ export { tokens as numberInputTokens, classes as numberInputClasses } from './NumberInput.tokens';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { StyledIconButton } from './ActionButton.styles';
3
+ export var ActionButton = function ActionButton(_ref) {
4
+ var icon = _ref.icon,
5
+ className = _ref.className,
6
+ onClick = _ref.onClick;
7
+ return /*#__PURE__*/React.createElement(StyledIconButton, {
8
+ className: className,
9
+ onClick: onClick
10
+ }, icon);
11
+ };
@@ -0,0 +1,9 @@
1
+ import _styled from "@emotion/styled/base";
2
+ import { iconButtonConfig } from '../../../IconButton';
3
+ import { component, mergeConfig } from '../../../../engines';
4
+ var mergedIconButtonConfig = /*#__PURE__*/mergeConfig(iconButtonConfig);
5
+ var IconButton = /*#__PURE__*/component(mergedIconButtonConfig);
6
+ export var StyledIconButton = /*#__PURE__*/_styled(IconButton, {
7
+ target: "e1l688ca0",
8
+ label: "plasma-new-hope__StyledIconButton"
9
+ })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvQWN0aW9uQnV0dG9uL0FjdGlvbkJ1dHRvbi5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUWtEIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTnVtYmVySW5wdXQvdWkvQWN0aW9uQnV0dG9uL0FjdGlvbkJ1dHRvbi5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGljb25CdXR0b25Db25maWcgfSBmcm9tICcuLi8uLi8uLi9JY29uQnV0dG9uJztcbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcblxuY29uc3QgbWVyZ2VkSWNvbkJ1dHRvbkNvbmZpZyA9IG1lcmdlQ29uZmlnKGljb25CdXR0b25Db25maWcpO1xuY29uc3QgSWNvbkJ1dHRvbiA9IGNvbXBvbmVudChtZXJnZWRJY29uQnV0dG9uQ29uZmlnKTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEljb25CdXR0b24gPSBzdHlsZWQoSWNvbkJ1dHRvbilgYDtcbiJdfQ== */");