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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (245) 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/Drawer/Drawer.js +2 -1
  6. package/cjs/components/Drawer/Drawer.js.map +1 -1
  7. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  8. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  9. package/cjs/components/Select/Select.js +25 -13
  10. package/cjs/components/Select/Select.js.map +1 -1
  11. package/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  12. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  13. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  14. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  15. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  16. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  17. package/cjs/components/Select/utils/getButtonLabel.js +1 -1
  18. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  19. package/cjs/components/Select/utils/initialItemsTransform.js +6 -9
  20. package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -1
  21. package/cjs/components/ViewContainer/ViewContainer.js +38 -0
  22. package/cjs/components/ViewContainer/ViewContainer.js.map +1 -0
  23. package/cjs/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
  24. package/cjs/components/ViewContainer/_view/base.js +9 -0
  25. package/cjs/components/ViewContainer/_view/base.js.map +1 -0
  26. package/cjs/components/ViewContainer/_view/base_x642ct.css +1 -0
  27. package/cjs/index.css +2 -0
  28. package/cjs/index.js +3 -0
  29. package/cjs/index.js.map +1 -1
  30. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -26
  31. package/emotion/cjs/components/Combobox/ComboboxNew/utils/index.js +1 -8
  32. package/emotion/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  33. package/emotion/cjs/components/Drawer/Drawer.js +4 -3
  34. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  35. package/emotion/cjs/components/Select/Select.js +25 -12
  36. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  37. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  38. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +13 -13
  39. package/emotion/cjs/components/Select/utils/getButtonLabel.js +1 -1
  40. package/emotion/cjs/components/Select/utils/index.js +1 -8
  41. package/emotion/cjs/components/Select/utils/initialItemsTransform.js +6 -19
  42. package/emotion/cjs/components/ViewContainer/ViewContainer.js +49 -0
  43. package/emotion/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  44. package/emotion/cjs/components/ViewContainer/_view/base.js +8 -0
  45. package/emotion/cjs/components/ViewContainer/_view/tokens.json +1 -0
  46. package/emotion/cjs/components/ViewContainer/index.js +18 -0
  47. package/emotion/cjs/examples/_helpers.js +3 -14
  48. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  49. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
  50. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
  51. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  52. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  53. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
  54. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
  55. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  56. package/emotion/cjs/index.js +11 -0
  57. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +23 -27
  58. package/emotion/es/components/Combobox/ComboboxNew/utils/index.js +1 -2
  59. package/emotion/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  60. package/emotion/es/components/Drawer/Drawer.js +2 -1
  61. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  62. package/emotion/es/components/Select/Select.js +26 -13
  63. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  64. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  65. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +13 -13
  66. package/emotion/es/components/Select/utils/getButtonLabel.js +1 -1
  67. package/emotion/es/components/Select/utils/index.js +1 -2
  68. package/emotion/es/components/Select/utils/initialItemsTransform.js +6 -19
  69. package/emotion/es/components/ViewContainer/ViewContainer.js +40 -0
  70. package/emotion/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  71. package/emotion/es/components/ViewContainer/_view/base.js +2 -0
  72. package/emotion/es/components/ViewContainer/_view/tokens.json +1 -0
  73. package/emotion/es/components/ViewContainer/index.js +1 -0
  74. package/emotion/es/examples/_helpers.js +3 -14
  75. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  76. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
  77. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
  78. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  79. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  80. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
  81. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
  82. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  83. package/emotion/es/index.js +2 -1
  84. package/es/components/Combobox/ComboboxNew/Combobox.js +22 -27
  85. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  86. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -9
  87. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  88. package/es/components/Drawer/Drawer.js +2 -1
  89. package/es/components/Drawer/Drawer.js.map +1 -1
  90. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  91. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  92. package/es/components/Select/Select.js +26 -14
  93. package/es/components/Select/Select.js.map +1 -1
  94. package/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  95. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  96. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  97. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  98. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  99. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  100. package/es/components/Select/utils/getButtonLabel.js +1 -1
  101. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  102. package/es/components/Select/utils/initialItemsTransform.js +6 -9
  103. package/es/components/Select/utils/initialItemsTransform.js.map +1 -1
  104. package/es/components/ViewContainer/ViewContainer.js +33 -0
  105. package/es/components/ViewContainer/ViewContainer.js.map +1 -0
  106. package/es/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
  107. package/es/components/ViewContainer/_view/base.js +5 -0
  108. package/es/components/ViewContainer/_view/base.js.map +1 -0
  109. package/es/components/ViewContainer/_view/base_x642ct.css +1 -0
  110. package/es/index.css +2 -0
  111. package/es/index.js +1 -0
  112. package/es/index.js.map +1 -1
  113. package/package.json +3 -2
  114. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -26
  115. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/index.js +1 -8
  116. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  117. package/styled-components/cjs/components/Drawer/Drawer.js +4 -3
  118. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  119. package/styled-components/cjs/components/Select/Select.js +25 -12
  120. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  121. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  122. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  123. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +1 -1
  124. package/styled-components/cjs/components/Select/utils/index.js +1 -8
  125. package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +6 -19
  126. package/styled-components/cjs/components/ViewContainer/ViewContainer.js +40 -0
  127. package/styled-components/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  128. package/styled-components/cjs/components/ViewContainer/_view/base.js +8 -0
  129. package/styled-components/cjs/components/ViewContainer/_view/tokens.json +1 -0
  130. package/styled-components/cjs/components/ViewContainer/index.js +18 -0
  131. package/styled-components/cjs/examples/_helpers.js +3 -14
  132. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  133. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
  134. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
  135. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  136. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  137. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
  138. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
  139. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  140. package/styled-components/cjs/index.js +11 -0
  141. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +23 -27
  142. package/styled-components/es/components/Combobox/ComboboxNew/utils/index.js +1 -2
  143. package/styled-components/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  144. package/styled-components/es/components/Drawer/Drawer.js +2 -1
  145. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  146. package/styled-components/es/components/Select/Select.js +26 -13
  147. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  148. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  149. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  150. package/styled-components/es/components/Select/utils/getButtonLabel.js +1 -1
  151. package/styled-components/es/components/Select/utils/index.js +1 -2
  152. package/styled-components/es/components/Select/utils/initialItemsTransform.js +6 -19
  153. package/styled-components/es/components/ViewContainer/ViewContainer.js +31 -0
  154. package/styled-components/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  155. package/styled-components/es/components/ViewContainer/_view/base.js +2 -0
  156. package/styled-components/es/components/ViewContainer/_view/tokens.json +1 -0
  157. package/styled-components/es/components/ViewContainer/index.js +1 -0
  158. package/styled-components/es/examples/_helpers.js +3 -14
  159. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  160. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
  161. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
  162. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  163. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  164. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
  165. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
  166. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  167. package/styled-components/es/index.js +2 -1
  168. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  169. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +3 -14
  170. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  171. package/types/components/Combobox/ComboboxNew/utils/index.d.ts +0 -1
  172. package/types/components/Combobox/ComboboxNew/utils/index.d.ts.map +1 -1
  173. package/types/components/Combobox/ComboboxNew/utils/initialItemsTransform.d.ts.map +1 -1
  174. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  175. package/types/components/Select/Select.d.ts.map +1 -1
  176. package/types/components/Select/Select.types.d.ts +0 -1
  177. package/types/components/Select/Select.types.d.ts.map +1 -1
  178. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +2 -2
  179. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  180. package/types/components/Select/ui/Target/Target.types.d.ts +2 -2
  181. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  182. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +4 -4
  183. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  184. package/types/components/Select/utils/index.d.ts +0 -1
  185. package/types/components/Select/utils/index.d.ts.map +1 -1
  186. package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -1
  187. package/types/components/ViewContainer/ViewContainer.d.ts +26 -0
  188. package/types/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  189. package/types/components/ViewContainer/_view/base.d.ts +2 -0
  190. package/types/components/ViewContainer/_view/base.d.ts.map +1 -0
  191. package/types/components/ViewContainer/index.d.ts +2 -0
  192. package/types/components/ViewContainer/index.d.ts.map +1 -0
  193. package/types/examples/_helpers.d.ts.map +1 -1
  194. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +6 -30
  195. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  196. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts +9 -0
  197. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
  198. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts +8 -0
  199. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  200. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +6 -30
  201. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  202. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts +9 -0
  203. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
  204. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts +8 -0
  205. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  206. package/types/index.d.ts +1 -0
  207. package/types/index.d.ts.map +1 -1
  208. package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -21
  209. package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +0 -1
  210. package/cjs/components/Select/utils/getInitialValue.js +0 -21
  211. package/cjs/components/Select/utils/getInitialValue.js.map +0 -1
  212. package/emotion/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -20
  213. package/emotion/cjs/components/Select/utils/getInitialValue.js +0 -20
  214. package/emotion/cjs/examples/themes/declaration.d.ts +0 -4
  215. package/emotion/cjs/examples/themes/index.js +0 -15
  216. package/emotion/cjs/examples/themes/plasma_b2c.module.css +0 -984
  217. package/emotion/cjs/examples/themes/plasma_web.module.css +0 -984
  218. package/emotion/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -14
  219. package/emotion/es/components/Select/utils/getInitialValue.js +0 -14
  220. package/emotion/es/examples/themes/declaration.d.ts +0 -4
  221. package/emotion/es/examples/themes/index.js +0 -7
  222. package/emotion/es/examples/themes/plasma_b2c.module.css +0 -984
  223. package/emotion/es/examples/themes/plasma_web.module.css +0 -984
  224. package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -17
  225. package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +0 -1
  226. package/es/components/Select/utils/getInitialValue.js +0 -17
  227. package/es/components/Select/utils/getInitialValue.js.map +0 -1
  228. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -20
  229. package/styled-components/cjs/components/Select/utils/getInitialValue.js +0 -20
  230. package/styled-components/cjs/examples/themes/declaration.d.ts +0 -4
  231. package/styled-components/cjs/examples/themes/index.js +0 -15
  232. package/styled-components/cjs/examples/themes/plasma_b2c.module.css +0 -984
  233. package/styled-components/cjs/examples/themes/plasma_web.module.css +0 -984
  234. package/styled-components/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -14
  235. package/styled-components/es/components/Select/utils/getInitialValue.js +0 -14
  236. package/styled-components/es/examples/themes/declaration.d.ts +0 -4
  237. package/styled-components/es/examples/themes/index.js +0 -7
  238. package/styled-components/es/examples/themes/plasma_b2c.module.css +0 -984
  239. package/styled-components/es/examples/themes/plasma_web.module.css +0 -984
  240. package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts +0 -4
  241. package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts.map +0 -1
  242. package/types/components/Select/utils/getInitialValue.d.ts +0 -4
  243. package/types/components/Select/utils/getInitialValue.d.ts.map +0 -1
  244. package/types/examples/themes/index.d.ts +0 -6
  245. package/types/examples/themes/index.d.ts.map +0 -1
@@ -0,0 +1,9 @@
1
+ export declare const config: {
2
+ variations: {
3
+ view: {
4
+ onDark: import("@linaria/core").LinariaClassName;
5
+ onLight: import("@linaria/core").LinariaClassName;
6
+ };
7
+ };
8
+ };
9
+ //# sourceMappingURL=ViewContainer.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContainer.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;CAWlB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const ViewContainer: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
+ view: {
4
+ onDark: import("@linaria/core").LinariaClassName;
5
+ onLight: import("@linaria/core").LinariaClassName;
6
+ };
7
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/ViewContainer/ViewContainer").ViewContainerCustomProps & import("react").RefAttributes<HTMLAnchorElement>>;
8
+ //# sourceMappingURL=ViewContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContainer.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/ViewContainer/ViewContainer.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,aAAa;;;;;+LAA0B,CAAC"}
@@ -53,8 +53,6 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
53
53
  value?: string | undefined;
54
54
  onChange?: ((value: string) => void) | undefined;
55
55
  isTargetAmount?: false | undefined;
56
- targetAmount?: undefined;
57
- renderValue?: undefined;
58
56
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
59
57
  items: ItemOption[];
60
58
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -83,9 +81,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
83
81
  multiple: true;
84
82
  value?: string[] | undefined;
85
83
  onChange?: ((value: string[]) => void) | undefined;
86
- isTargetAmount?: true | undefined;
87
- targetAmount?: number | undefined;
88
- renderValue?: ((item: ItemOption) => string) | undefined;
84
+ isTargetAmount?: boolean | undefined;
89
85
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
90
86
  items: ItemOption[];
91
87
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -115,8 +111,6 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
115
111
  value?: string | undefined;
116
112
  onChange?: ((value: string) => void) | undefined;
117
113
  isTargetAmount?: false | undefined;
118
- targetAmount?: undefined;
119
- renderValue?: undefined;
120
114
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
121
115
  items: ItemOption[];
122
116
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -145,9 +139,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
145
139
  multiple: true;
146
140
  value?: string[] | undefined;
147
141
  onChange?: ((value: string[]) => void) | undefined;
148
- isTargetAmount?: true | undefined;
149
- targetAmount?: number | undefined;
150
- renderValue?: ((item: ItemOption) => string) | undefined;
142
+ isTargetAmount?: boolean | undefined;
151
143
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
152
144
  items: ItemOption[];
153
145
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -177,8 +169,6 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
177
169
  value?: string | undefined;
178
170
  onChange?: ((value: string) => void) | undefined;
179
171
  isTargetAmount?: false | undefined;
180
- targetAmount?: undefined;
181
- renderValue?: undefined;
182
172
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
183
173
  items: ItemOption[];
184
174
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -207,9 +197,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
207
197
  multiple: true;
208
198
  value?: string[] | undefined;
209
199
  onChange?: ((value: string[]) => void) | undefined;
210
- isTargetAmount?: true | undefined;
211
- targetAmount?: number | undefined;
212
- renderValue?: ((item: ItemOption) => string) | undefined;
200
+ isTargetAmount?: boolean | undefined;
213
201
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
214
202
  declare type PropsFromConfig = keyof typeof config['variations'];
215
203
  declare type PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> & Pick<ComponentProps<typeof ComboboxComponent>, PropsFromConfig>;
@@ -265,8 +253,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
265
253
  value?: string | undefined;
266
254
  onChange?: ((value: string) => void) | undefined;
267
255
  isTargetAmount?: false | undefined;
268
- targetAmount?: undefined;
269
- renderValue?: undefined;
270
256
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
271
257
  items: ItemOption[];
272
258
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -295,9 +281,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
295
281
  multiple: true;
296
282
  value?: string[] | undefined;
297
283
  onChange?: ((value: string[]) => void) | undefined;
298
- isTargetAmount?: true | undefined;
299
- targetAmount?: number | undefined;
300
- renderValue?: ((item: ItemOption) => string) | undefined;
284
+ isTargetAmount?: boolean | undefined;
301
285
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
302
286
  items: ItemOption[];
303
287
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -327,8 +311,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
327
311
  value?: string | undefined;
328
312
  onChange?: ((value: string) => void) | undefined;
329
313
  isTargetAmount?: false | undefined;
330
- targetAmount?: undefined;
331
- renderValue?: undefined;
332
314
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
333
315
  items: ItemOption[];
334
316
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -357,9 +339,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
357
339
  multiple: true;
358
340
  value?: string[] | undefined;
359
341
  onChange?: ((value: string[]) => void) | undefined;
360
- isTargetAmount?: true | undefined;
361
- targetAmount?: number | undefined;
362
- renderValue?: ((item: ItemOption) => string) | undefined;
342
+ isTargetAmount?: boolean | undefined;
363
343
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
364
344
  items: ItemOption[];
365
345
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -389,8 +369,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
389
369
  value?: string | undefined;
390
370
  onChange?: ((value: string) => void) | undefined;
391
371
  isTargetAmount?: false | undefined;
392
- targetAmount?: undefined;
393
- renderValue?: undefined;
394
372
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
395
373
  items: ItemOption[];
396
374
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -419,9 +397,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
419
397
  multiple: true;
420
398
  value?: string[] | undefined;
421
399
  onChange?: ((value: string[]) => void) | undefined;
422
- isTargetAmount?: true | undefined;
423
- targetAmount?: number | undefined;
424
- renderValue?: ((item: ItemOption) => string) | undefined;
400
+ isTargetAmount?: boolean | undefined;
425
401
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>)), "view" | "disabled" | "readOnly" | "size" | "labelPlacement"> & {
426
402
  ref?: ForwardedRef<HTMLInputElement> | undefined;
427
403
  }) => ReactElement | null;
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIxE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;2IAA0B,CAAC;AAElD,aAAK,eAAe,GAAG,MAAM,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC;AAEzD,aAAK,QAAQ,CAAC,CAAC,SAAS,UAAU,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,GACzE,IAAI,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,EAAE,eAAe,CAAC,CAAC;AAEpE,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAET,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const config: {
2
+ variations: {
3
+ view: {
4
+ onDark: import("@linaria/core").LinariaClassName;
5
+ onLight: import("@linaria/core").LinariaClassName;
6
+ };
7
+ };
8
+ };
9
+ //# sourceMappingURL=ViewContainer.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContainer.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/ViewContainer/ViewContainer.config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;CAWlB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const ViewContainer: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
+ view: {
4
+ onDark: import("@linaria/core").LinariaClassName;
5
+ onLight: import("@linaria/core").LinariaClassName;
6
+ };
7
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/ViewContainer/ViewContainer").ViewContainerCustomProps & import("react").RefAttributes<HTMLAnchorElement>>;
8
+ //# sourceMappingURL=ViewContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContainer.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/ViewContainer/ViewContainer.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,aAAa;;;;;+LAA0B,CAAC"}
package/types/index.d.ts CHANGED
@@ -59,4 +59,5 @@ export * from './components/EmptyState';
59
59
  export * from './components/Editable';
60
60
  export * from './components/Mask';
61
61
  export * from './components/Attach';
62
+ export * from './components/ViewContainer';
62
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,c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;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC"}
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- // Утилита предназначена для фильтрации элементов в value, которые отсутствуют в items.
6
- // Эти элементы игнорируются и не участвуют в дальнейшей работе компонента.
7
- var getInitialValue = function getInitialValue(outerValue, valueToItemMap) {
8
- if (Array.isArray(outerValue)) {
9
- if (outerValue.length === 0) {
10
- return [];
11
- }
12
- return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));
13
- }
14
- if (valueToItemMap.has(outerValue)) {
15
- return outerValue;
16
- }
17
- return '';
18
- };
19
-
20
- exports.getInitialValue = getInitialValue;
21
- //# sourceMappingURL=getInitialValue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getInitialValue.js","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/getInitialValue.ts"],"sourcesContent":["import { ComboboxProps } from '../Combobox.types';\nimport { ValueToItemMapType } from '../hooks/getPathMaps';\n\n// Утилита предназначена для фильтрации элементов в value, которые отсутствуют в items.\n// Эти элементы игнорируются и не участвуют в дальнейшей работе компонента.\nexport const getInitialValue = (\n outerValue: NonNullable<ComboboxProps['value']>,\n valueToItemMap: ValueToItemMapType,\n) => {\n if (Array.isArray(outerValue)) {\n if (outerValue.length === 0) {\n return [];\n }\n\n return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));\n }\n\n if (valueToItemMap.has(outerValue)) {\n return outerValue;\n }\n\n return '';\n};\n"],"names":["getInitialValue","outerValue","valueToItemMap","Array","isArray","length","filter","has","bind"],"mappings":";;;;AAGA;AACA;AACO,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CACxBC,UAA+C,EAC/CC,cAAkC,EACjC;AACD,EAAA,IAAIC,KAAK,CAACC,OAAO,CAACH,UAAU,CAAC,EAAE;AAC3B,IAAA,IAAIA,UAAU,CAACI,MAAM,KAAK,CAAC,EAAE;AACzB,MAAA,OAAO,EAAE,CAAA;AACb,KAAA;AAEA,IAAA,OAAOJ,UAAU,CAACK,MAAM,CAACJ,cAAc,CAACK,GAAG,CAACC,IAAI,CAACN,cAAc,CAAC,CAAC,CAAA;AACrE,GAAA;AAEA,EAAA,IAAIA,cAAc,CAACK,GAAG,CAACN,UAAU,CAAC,EAAE;AAChC,IAAA,OAAOA,UAAU,CAAA;AACrB,GAAA;AAEA,EAAA,OAAO,EAAE,CAAA;AACb;;;;"}
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- // Утилита предназначена для фильтрации элементов в value, которые отсутствуют в items.
6
- // Эти элементы игнорируются и не участвуют в дальнейшей работе компонента.
7
- var getInitialValue = function getInitialValue(outerValue, valueToItemMap) {
8
- if (Array.isArray(outerValue)) {
9
- if (outerValue.length === 0) {
10
- return [];
11
- }
12
- return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));
13
- }
14
- if (valueToItemMap.has(outerValue)) {
15
- return outerValue;
16
- }
17
- return '';
18
- };
19
-
20
- exports.getInitialValue = getInitialValue;
21
- //# sourceMappingURL=getInitialValue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getInitialValue.js","sources":["../../../../src/components/Select/utils/getInitialValue.ts"],"sourcesContent":["import { MergedSelectProps } from '../Select.types';\nimport { ValueToItemMapType } from '../hooks/usePathMaps';\n\n// Утилита предназначена для фильтрации элементов в value, которые отсутствуют в items.\n// Эти элементы игнорируются и не участвуют в дальнейшей работе компонента.\nexport const getInitialValue = (outerValue: MergedSelectProps['value'], valueToItemMap: ValueToItemMapType) => {\n if (Array.isArray(outerValue)) {\n if (outerValue.length === 0) {\n return [];\n }\n\n return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));\n }\n\n if (valueToItemMap.has(outerValue)) {\n return outerValue;\n }\n\n return '';\n};\n"],"names":["getInitialValue","outerValue","valueToItemMap","Array","isArray","length","filter","has","bind"],"mappings":";;;;AAGA;AACA;AACO,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,UAAsC,EAAEC,cAAkC,EAAK;AAC3G,EAAA,IAAIC,KAAK,CAACC,OAAO,CAACH,UAAU,CAAC,EAAE;AAC3B,IAAA,IAAIA,UAAU,CAACI,MAAM,KAAK,CAAC,EAAE;AACzB,MAAA,OAAO,EAAE,CAAA;AACb,KAAA;AAEA,IAAA,OAAOJ,UAAU,CAACK,MAAM,CAACJ,cAAc,CAACK,GAAG,CAACC,IAAI,CAACN,cAAc,CAAC,CAAC,CAAA;AACrE,GAAA;AAEA,EAAA,IAAIA,cAAc,CAACK,GAAG,CAACN,UAAU,CAAC,EAAE;AAChC,IAAA,OAAOA,UAAU,CAAA;AACrB,GAAA;AAEA,EAAA,OAAO,EAAE,CAAA;AACb;;;;"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getInitialValue = void 0;
7
- // Утилита предназначена для фильтрации элементов в value, которые отсутствуют в items.
8
- // Эти элементы игнорируются и не участвуют в дальнейшей работе компонента.
9
- var getInitialValue = exports.getInitialValue = function getInitialValue(outerValue, valueToItemMap) {
10
- if (Array.isArray(outerValue)) {
11
- if (outerValue.length === 0) {
12
- return [];
13
- }
14
- return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));
15
- }
16
- if (valueToItemMap.has(outerValue)) {
17
- return outerValue;
18
- }
19
- return '';
20
- };
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getInitialValue = void 0;
7
- // Утилита предназначена для фильтрации элементов в value, которые отсутствуют в items.
8
- // Эти элементы игнорируются и не участвуют в дальнейшей работе компонента.
9
- var getInitialValue = exports.getInitialValue = function getInitialValue(outerValue, valueToItemMap) {
10
- if (Array.isArray(outerValue)) {
11
- if (outerValue.length === 0) {
12
- return [];
13
- }
14
- return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));
15
- }
16
- if (valueToItemMap.has(outerValue)) {
17
- return outerValue;
18
- }
19
- return '';
20
- };
@@ -1,4 +0,0 @@
1
- declare module '*.css' {
2
- const content: { light: string; dark: string };
3
- export default content;
4
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.themes = void 0;
7
- var _plasma_b2cModule = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("./plasma_b2c.module.css"));
8
- var _plasma_webModule = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("./plasma_web.module.css"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- /* eslint-disable camelcase */
11
-
12
- var themes = exports.themes = {
13
- plasma_b2c: _plasma_b2cModule["default"],
14
- plasma_web: _plasma_webModule["default"]
15
- };