@salutejs/plasma-new-hope 0.325.0-canary.1993.15271190997.0 → 0.325.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/cjs/components/List/List.css +7 -0
  2. package/cjs/components/List/List.js +59 -0
  3. package/cjs/components/List/List.js.map +1 -0
  4. package/cjs/components/List/List.styles.js +9 -0
  5. package/cjs/components/List/List.styles.js.map +1 -0
  6. package/cjs/components/List/List.styles_97b8jq.css +1 -0
  7. package/cjs/components/List/List.tokens.js +44 -0
  8. package/cjs/components/List/List.tokens.js.map +1 -0
  9. package/cjs/components/List/ui/ListItem.css +18 -0
  10. package/cjs/components/List/ui/ListItem.js +28 -0
  11. package/cjs/components/List/ui/ListItem.js.map +1 -0
  12. package/cjs/components/List/ui/ListItem.styles.js +28 -0
  13. package/cjs/components/List/ui/ListItem.styles.js.map +1 -0
  14. package/cjs/components/List/ui/ListItem.styles_106alid.css +2 -0
  15. package/cjs/components/List/variations/_disabled/base.js +9 -0
  16. package/cjs/components/List/variations/_disabled/base.js.map +1 -0
  17. package/cjs/components/List/variations/_disabled/base_1p96e1z.css +1 -0
  18. package/cjs/components/List/variations/_size/base.js +9 -0
  19. package/cjs/components/List/variations/_size/base.js.map +1 -0
  20. package/cjs/components/List/variations/_size/base_jq4nc8.css +1 -0
  21. package/cjs/components/List/variations/_view/base.js +9 -0
  22. package/cjs/components/List/variations/_view/base.js.map +1 -0
  23. package/cjs/components/List/variations/_view/base_1fsqflm.css +1 -0
  24. package/cjs/components/Notification/Notification.css +12 -12
  25. package/cjs/components/Notification/Notification.js +5 -1
  26. package/cjs/components/Notification/Notification.js.map +1 -1
  27. package/cjs/components/Notification/Notification.styles.js +63 -48
  28. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  29. package/cjs/components/Notification/{Notification.styles_1yt699o.css → Notification.styles_1uyb7ob.css} +1 -1
  30. package/cjs/components/Notification/Notification.types.js.map +1 -1
  31. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  32. package/cjs/components/Notification/variations/_layout/base.js +1 -1
  33. package/cjs/components/Notification/variations/_layout/base.js.map +1 -1
  34. package/cjs/components/Notification/variations/_layout/base_1g9g70c.css +1 -0
  35. package/cjs/components/NumberFormat/NumberFormat.js +2 -7
  36. package/cjs/components/NumberFormat/NumberFormat.js.map +1 -1
  37. package/cjs/index.css +23 -12
  38. package/cjs/index.js +8 -0
  39. package/cjs/index.js.map +1 -1
  40. package/emotion/cjs/components/List/List.js +55 -0
  41. package/emotion/cjs/components/List/List.styles.js +17 -0
  42. package/emotion/cjs/components/List/List.template-doc.mdx +42 -0
  43. package/emotion/cjs/components/List/List.tokens.js +42 -0
  44. package/emotion/cjs/components/List/List.types.js +5 -0
  45. package/emotion/cjs/components/List/index.js +38 -0
  46. package/emotion/cjs/components/List/ui/ListItem.js +25 -0
  47. package/emotion/cjs/components/List/ui/ListItem.styles.js +21 -0
  48. package/emotion/cjs/components/List/ui/ListItem.types.js +5 -0
  49. package/emotion/cjs/components/List/variations/_disabled/base.js +10 -0
  50. package/emotion/cjs/components/List/variations/_disabled/tokens.json +1 -0
  51. package/emotion/cjs/components/List/variations/_size/base.js +9 -0
  52. package/emotion/cjs/components/List/variations/_size/tokens.json +1 -0
  53. package/emotion/cjs/components/List/variations/_view/base.js +10 -0
  54. package/emotion/cjs/components/List/variations/_view/tokens.json +1 -0
  55. package/emotion/cjs/components/Notification/Notification.js +5 -1
  56. package/emotion/cjs/components/Notification/Notification.styles.js +43 -36
  57. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +44 -0
  58. package/emotion/cjs/components/Notification/variations/_layout/base.js +1 -1
  59. package/emotion/cjs/components/NumberFormat/NumberFormat.js +2 -7
  60. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +16 -1
  61. package/emotion/cjs/examples/fixtures/Notification.js +1 -1
  62. package/emotion/cjs/examples/plasma_b2c/components/List/List.config.js +29 -0
  63. package/emotion/cjs/examples/plasma_b2c/components/List/List.js +12 -0
  64. package/emotion/cjs/examples/plasma_b2c/components/List/List.stories.tsx +61 -0
  65. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
  66. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +23 -22
  67. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -4
  68. package/emotion/cjs/examples/plasma_web/components/List/List.config.js +29 -0
  69. package/emotion/cjs/examples/plasma_web/components/List/List.js +12 -0
  70. package/emotion/cjs/examples/plasma_web/components/List/List.stories.tsx +61 -0
  71. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
  72. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +23 -22
  73. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -5
  74. package/emotion/cjs/index.js +11 -0
  75. package/emotion/es/components/List/List.js +45 -0
  76. package/emotion/es/components/List/List.styles.js +11 -0
  77. package/emotion/es/components/List/List.template-doc.mdx +42 -0
  78. package/emotion/es/components/List/List.tokens.js +36 -0
  79. package/emotion/es/components/List/List.types.js +1 -0
  80. package/emotion/es/components/List/index.js +3 -0
  81. package/emotion/es/components/List/ui/ListItem.js +18 -0
  82. package/emotion/es/components/List/ui/ListItem.styles.js +14 -0
  83. package/emotion/es/components/List/ui/ListItem.types.js +1 -0
  84. package/emotion/es/components/List/variations/_disabled/base.js +4 -0
  85. package/emotion/es/components/List/variations/_disabled/tokens.json +1 -0
  86. package/emotion/es/components/List/variations/_size/base.js +3 -0
  87. package/emotion/es/components/List/variations/_size/tokens.json +1 -0
  88. package/emotion/es/components/List/variations/_view/base.js +4 -0
  89. package/emotion/es/components/List/variations/_view/tokens.json +1 -0
  90. package/emotion/es/components/Notification/Notification.js +5 -1
  91. package/emotion/es/components/Notification/Notification.styles.js +43 -36
  92. package/emotion/es/components/Notification/Notification.template-doc.mdx +44 -0
  93. package/emotion/es/components/Notification/variations/_layout/base.js +1 -1
  94. package/emotion/es/components/NumberFormat/NumberFormat.js +2 -7
  95. package/emotion/es/components/TextField/TextField.template-doc.mdx +16 -1
  96. package/emotion/es/examples/fixtures/Notification.js +1 -1
  97. package/emotion/es/examples/plasma_b2c/components/List/List.config.js +23 -0
  98. package/emotion/es/examples/plasma_b2c/components/List/List.js +6 -0
  99. package/emotion/es/examples/plasma_b2c/components/List/List.stories.tsx +61 -0
  100. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
  101. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +23 -22
  102. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -4
  103. package/emotion/es/examples/plasma_web/components/List/List.config.js +23 -0
  104. package/emotion/es/examples/plasma_web/components/List/List.js +6 -0
  105. package/emotion/es/examples/plasma_web/components/List/List.stories.tsx +61 -0
  106. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
  107. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +23 -22
  108. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -5
  109. package/emotion/es/index.js +3 -1
  110. package/es/components/List/List.css +7 -0
  111. package/es/components/List/List.js +49 -0
  112. package/es/components/List/List.js.map +1 -0
  113. package/es/components/List/List.styles.js +5 -0
  114. package/es/components/List/List.styles.js.map +1 -0
  115. package/es/components/List/List.styles_97b8jq.css +1 -0
  116. package/es/components/List/List.tokens.js +39 -0
  117. package/es/components/List/List.tokens.js.map +1 -0
  118. package/es/components/List/ui/ListItem.css +18 -0
  119. package/es/components/List/ui/ListItem.js +20 -0
  120. package/es/components/List/ui/ListItem.js.map +1 -0
  121. package/es/components/List/ui/ListItem.styles.js +23 -0
  122. package/es/components/List/ui/ListItem.styles.js.map +1 -0
  123. package/es/components/List/ui/ListItem.styles_106alid.css +2 -0
  124. package/es/components/List/variations/_disabled/base.js +5 -0
  125. package/es/components/List/variations/_disabled/base.js.map +1 -0
  126. package/es/components/List/variations/_disabled/base_1p96e1z.css +1 -0
  127. package/es/components/List/variations/_size/base.js +5 -0
  128. package/es/components/List/variations/_size/base.js.map +1 -0
  129. package/es/components/List/variations/_size/base_jq4nc8.css +1 -0
  130. package/es/components/List/variations/_view/base.js +5 -0
  131. package/es/components/List/variations/_view/base.js.map +1 -0
  132. package/es/components/List/variations/_view/base_1fsqflm.css +1 -0
  133. package/es/components/Notification/Notification.css +12 -12
  134. package/es/components/Notification/Notification.js +5 -1
  135. package/es/components/Notification/Notification.js.map +1 -1
  136. package/es/components/Notification/Notification.styles.js +63 -48
  137. package/es/components/Notification/Notification.styles.js.map +1 -1
  138. package/es/components/Notification/{Notification.styles_1yt699o.css → Notification.styles_1uyb7ob.css} +1 -1
  139. package/es/components/Notification/Notification.types.js.map +1 -1
  140. package/es/components/Notification/NotificationsProvider.css +11 -11
  141. package/es/components/Notification/variations/_layout/base.js +1 -1
  142. package/es/components/Notification/variations/_layout/base.js.map +1 -1
  143. package/es/components/Notification/variations/_layout/base_1g9g70c.css +1 -0
  144. package/es/components/NumberFormat/NumberFormat.js +2 -7
  145. package/es/components/NumberFormat/NumberFormat.js.map +1 -1
  146. package/es/index.css +23 -12
  147. package/es/index.js +3 -0
  148. package/es/index.js.map +1 -1
  149. package/package.json +2 -2
  150. package/styled-components/cjs/components/List/List.js +55 -0
  151. package/styled-components/cjs/components/List/List.styles.js +8 -0
  152. package/styled-components/cjs/components/List/List.template-doc.mdx +42 -0
  153. package/styled-components/cjs/components/List/List.tokens.js +42 -0
  154. package/styled-components/cjs/components/List/List.types.js +5 -0
  155. package/styled-components/cjs/components/List/index.js +38 -0
  156. package/styled-components/cjs/components/List/ui/ListItem.js +25 -0
  157. package/styled-components/cjs/components/List/ui/ListItem.styles.js +19 -0
  158. package/styled-components/cjs/components/List/ui/ListItem.types.js +5 -0
  159. package/styled-components/cjs/components/List/variations/_disabled/base.js +10 -0
  160. package/styled-components/cjs/components/List/variations/_disabled/tokens.json +1 -0
  161. package/styled-components/cjs/components/List/variations/_size/base.js +9 -0
  162. package/styled-components/cjs/components/List/variations/_size/tokens.json +1 -0
  163. package/styled-components/cjs/components/List/variations/_view/base.js +10 -0
  164. package/styled-components/cjs/components/List/variations/_view/tokens.json +1 -0
  165. package/styled-components/cjs/components/Notification/Notification.js +5 -1
  166. package/styled-components/cjs/components/Notification/Notification.styles.js +33 -26
  167. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +44 -0
  168. package/styled-components/cjs/components/Notification/variations/_layout/base.js +1 -1
  169. package/styled-components/cjs/components/NumberFormat/NumberFormat.js +2 -7
  170. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +16 -1
  171. package/styled-components/cjs/examples/fixtures/Notification.js +1 -1
  172. package/styled-components/cjs/examples/plasma_b2c/components/List/List.config.js +29 -0
  173. package/styled-components/cjs/examples/plasma_b2c/components/List/List.js +12 -0
  174. package/styled-components/cjs/examples/plasma_b2c/components/List/List.stories.tsx +61 -0
  175. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
  176. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +2 -1
  177. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -4
  178. package/styled-components/cjs/examples/plasma_web/components/List/List.config.js +29 -0
  179. package/styled-components/cjs/examples/plasma_web/components/List/List.js +12 -0
  180. package/styled-components/cjs/examples/plasma_web/components/List/List.stories.tsx +61 -0
  181. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
  182. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +7 -6
  183. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -5
  184. package/styled-components/cjs/index.js +11 -0
  185. package/styled-components/es/components/List/List.js +45 -0
  186. package/styled-components/es/components/List/List.styles.js +2 -0
  187. package/styled-components/es/components/List/List.template-doc.mdx +42 -0
  188. package/styled-components/es/components/List/List.tokens.js +36 -0
  189. package/styled-components/es/components/List/List.types.js +1 -0
  190. package/styled-components/es/components/List/index.js +3 -0
  191. package/styled-components/es/components/List/ui/ListItem.js +18 -0
  192. package/styled-components/es/components/List/ui/ListItem.styles.js +12 -0
  193. package/styled-components/es/components/List/ui/ListItem.types.js +1 -0
  194. package/styled-components/es/components/List/variations/_disabled/base.js +4 -0
  195. package/styled-components/es/components/List/variations/_disabled/tokens.json +1 -0
  196. package/styled-components/es/components/List/variations/_size/base.js +3 -0
  197. package/styled-components/es/components/List/variations/_size/tokens.json +1 -0
  198. package/styled-components/es/components/List/variations/_view/base.js +4 -0
  199. package/styled-components/es/components/List/variations/_view/tokens.json +1 -0
  200. package/styled-components/es/components/Notification/Notification.js +5 -1
  201. package/styled-components/es/components/Notification/Notification.styles.js +33 -26
  202. package/styled-components/es/components/Notification/Notification.template-doc.mdx +44 -0
  203. package/styled-components/es/components/Notification/variations/_layout/base.js +1 -1
  204. package/styled-components/es/components/NumberFormat/NumberFormat.js +2 -7
  205. package/styled-components/es/components/TextField/TextField.template-doc.mdx +16 -1
  206. package/styled-components/es/examples/fixtures/Notification.js +1 -1
  207. package/styled-components/es/examples/plasma_b2c/components/List/List.config.js +23 -0
  208. package/styled-components/es/examples/plasma_b2c/components/List/List.js +6 -0
  209. package/styled-components/es/examples/plasma_b2c/components/List/List.stories.tsx +61 -0
  210. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
  211. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +2 -1
  212. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -4
  213. package/styled-components/es/examples/plasma_web/components/List/List.config.js +23 -0
  214. package/styled-components/es/examples/plasma_web/components/List/List.js +6 -0
  215. package/styled-components/es/examples/plasma_web/components/List/List.stories.tsx +61 -0
  216. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
  217. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +7 -6
  218. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -5
  219. package/styled-components/es/index.js +3 -1
  220. package/types/components/List/List.d.ts +36 -0
  221. package/types/components/List/List.d.ts.map +1 -0
  222. package/types/components/List/List.styles.d.ts +2 -0
  223. package/types/components/List/List.styles.d.ts.map +1 -0
  224. package/types/components/List/List.tokens.d.ts +37 -0
  225. package/types/components/List/List.tokens.d.ts.map +1 -0
  226. package/types/components/List/List.types.d.ts +22 -0
  227. package/types/components/List/List.types.d.ts.map +1 -0
  228. package/types/components/List/index.d.ts +5 -0
  229. package/types/components/List/index.d.ts.map +1 -0
  230. package/types/components/List/ui/ListItem.d.ts +4 -0
  231. package/types/components/List/ui/ListItem.d.ts.map +1 -0
  232. package/types/components/List/ui/ListItem.styles.d.ts +34 -0
  233. package/types/components/List/ui/ListItem.styles.d.ts.map +1 -0
  234. package/types/components/List/ui/ListItem.types.d.ts +14 -0
  235. package/types/components/List/ui/ListItem.types.d.ts.map +1 -0
  236. package/types/components/List/variations/_disabled/base.d.ts +2 -0
  237. package/types/components/List/variations/_disabled/base.d.ts.map +1 -0
  238. package/types/components/List/variations/_size/base.d.ts +2 -0
  239. package/types/components/List/variations/_size/base.d.ts.map +1 -0
  240. package/types/components/List/variations/_view/base.d.ts +2 -0
  241. package/types/components/List/variations/_view/base.d.ts.map +1 -0
  242. package/types/components/Notification/Notification.d.ts.map +1 -1
  243. package/types/components/Notification/Notification.styles.d.ts +3 -1
  244. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  245. package/types/components/Notification/Notification.types.d.ts +9 -0
  246. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  247. package/types/components/NumberFormat/NumberFormat.d.ts.map +1 -1
  248. package/types/index.d.ts +2 -0
  249. package/types/index.d.ts.map +1 -1
  250. package/cjs/components/Notification/variations/_layout/base_qkc3i4.css +0 -1
  251. package/es/components/Notification/variations/_layout/base_qkc3i4.css +0 -1
@@ -1,13 +1,14 @@
1
1
  import React, { ComponentProps, useState } from 'react';
2
2
  import type { StoryObj, Meta } from '@storybook/react';
3
3
  import { action } from '@storybook/addon-actions';
4
- import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
4
+ import { IconPlaceholder, getConfigVariations } from '@salutejs/plasma-sb-utils';
5
5
 
6
6
  import { WithTheme } from '../../../_helpers';
7
7
  import { IconCross, IconLock } from '../../../../components/_Icon';
8
8
  import type { PopoverPlacement } from '../Popover/Popover';
9
9
 
10
10
  import { TextField } from './TextField';
11
+ import { config } from './TextField.config';
11
12
 
12
13
  const onChange = action('onChange');
13
14
  const onFocus = action('onFocus');
@@ -15,14 +16,14 @@ const onBlur = action('onBlur');
15
16
  const onSearch = action('onSearch');
16
17
  const onChipsChange = action('onChipsChange');
17
18
 
18
- const sizes = ['l', 'm', 's', 'xs'];
19
- const views = ['default', 'positive', 'warning', 'negative'];
19
+ const { views, sizes } = getConfigVariations(config);
20
+
20
21
  const chipViews = ['default', 'secondary', 'accent', 'positive', 'warning', 'negative'];
21
22
  const hintViews = ['default'];
22
23
  const hintSizes = ['m', 's'];
23
24
  const hintTriggers = ['hover', 'click'];
24
- const hintTargetPlacements = ['outer', 'inner'];
25
25
  const labelPlacements = ['outer', 'inner'];
26
+ const hintTargetPlacements = ['outer', 'inner'];
26
27
  const placements: Array<PopoverPlacement> = [
27
28
  'top',
28
29
  'top-start',
@@ -63,6 +64,10 @@ const meta: Meta<typeof TextField> = {
63
64
  control: {
64
65
  type: 'select',
65
66
  },
67
+ if: {
68
+ arg: 'optional',
69
+ truthy: false,
70
+ },
66
71
  },
67
72
  required: {
68
73
  control: {
@@ -322,7 +327,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
322
327
  },
323
328
  parameters: {
324
329
  controls: {
325
- exclude: ['chipType'],
330
+ exclude: ['chipType', 'chipView'],
326
331
  },
327
332
  },
328
333
  render: (args) => <StoryDemo {...args} />,
@@ -784,6 +784,17 @@ Object.keys(_Table).forEach(function (key) {
784
784
  }
785
785
  });
786
786
  });
787
+ var _List = /*#__PURE__*/require("./components/List");
788
+ Object.keys(_List).forEach(function (key) {
789
+ if (key === "default" || key === "__esModule") return;
790
+ if (key in exports && exports[key] === _List[key]) return;
791
+ Object.defineProperty(exports, key, {
792
+ enumerable: true,
793
+ get: function get() {
794
+ return _List[key];
795
+ }
796
+ });
797
+ });
787
798
  var _LinkButton = /*#__PURE__*/require("./components/LinkButton");
788
799
  Object.keys(_LinkButton).forEach(function (key) {
789
800
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,45 @@
1
+ import React, { forwardRef } from 'react';
2
+ import cls from 'classnames';
3
+ import { base } from "./List.styles";
4
+ import { classes } from "./List.tokens";
5
+ import { base as viewCSS } from "./variations/_view/base";
6
+ import { base as sizeCSS } from "./variations/_size/base";
7
+ import { base as disabledCSS } from "./variations/_disabled/base";
8
+ export var listRoot = function listRoot(Root) {
9
+ return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
10
+ var size = _ref.size,
11
+ view = _ref.view,
12
+ disabled = _ref.disabled,
13
+ variant = _ref.variant,
14
+ className = _ref.className,
15
+ children = _ref.children;
16
+ return /*#__PURE__*/React.createElement(Root, {
17
+ ref: outerRootRef,
18
+ size: size,
19
+ view: view,
20
+ disabled: disabled,
21
+ className: cls(classes.listRoot, className, variant === 'tight' ? classes.tightListItem : '', disabled ? classes.disabledList : '')
22
+ }, children);
23
+ });
24
+ };
25
+ export var listConfig = {
26
+ name: 'List',
27
+ tag: 'ul',
28
+ layout: listRoot,
29
+ base: base,
30
+ variations: {
31
+ view: {
32
+ css: viewCSS
33
+ },
34
+ size: {
35
+ css: sizeCSS
36
+ },
37
+ disabled: {
38
+ css: disabledCSS
39
+ }
40
+ },
41
+ defaults: {
42
+ view: 'default',
43
+ size: 'm'
44
+ }
45
+ };
@@ -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: "19gahao-plasma-new-hope__base",
5
+ styles: "display:flex;flex-direction:column;align-items:stretch;height:auto;width:100%;list-style-type:none;padding:0;margin:0;label:plasma-new-hope__base;"
6
+ } : {
7
+ name: "19gahao-plasma-new-hope__base",
8
+ styles: "display:flex;flex-direction:column;align-items:stretch;height:auto;width:100%;list-style-type:none;padding:0;margin:0;label:plasma-new-hope__base;",
9
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC9MaXN0LnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9MaXN0L0xpc3Quc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IHN0cmV0Y2g7XG4gICAgaGVpZ2h0OiBhdXRvO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbiAgICBwYWRkaW5nOiAwO1xuICAgIG1hcmdpbjogMDtcbmA7XG4iXX0= */",
10
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
11
+ };
@@ -0,0 +1,42 @@
1
+ ---
2
+ id: list
3
+ title: List
4
+ ---
5
+
6
+ import { PropsTable } from '@site/src/components';
7
+
8
+ # List
9
+ Компонент ячейки.
10
+
11
+ <PropsTable name="List" />
12
+
13
+ Компонент представляет собой спсиок состоящий из `ListItem`.
14
+
15
+ ListItem представляет собой простой компонент с текстом и иконкой
16
+
17
+ ### Типы ListItem
18
+ <PropsTable name="ListItem" />
19
+
20
+ ## Примеры
21
+
22
+ ### Базовое использование
23
+ ```tsx live
24
+ import React from 'react';
25
+ import { List, ListItem } from '@salutejs/{{ package }}';
26
+ import { IconChevronRight } from '@salutejs/plasma-icons';
27
+
28
+ export function App() {
29
+ return (
30
+ <div>
31
+ <List view="default" size="s" variant="normal">
32
+ <ListItem contentRight={<IconChevronRight color="inherit" size="xs" />}>Test Item 1</ListItem>
33
+ <ListItem contentRight={<IconChevronRight color="inherit" size="xs" />}>Test Item 2</ListItem>
34
+ <ListItem contentRight={<IconChevronRight color="inherit" size="xs" />} disabled>
35
+ Test Item 3
36
+ </ListItem>
37
+ <ListItem contentRight={<IconChevronRight color="inherit" size="xs" />}>Test Item 4</ListItem>
38
+ </List>
39
+ </div>
40
+ );
41
+ }
42
+ ```
@@ -0,0 +1,36 @@
1
+ export var classes = {
2
+ listRoot: 'list-root',
3
+ listItem: 'list-item',
4
+ filledStretching: 'list-stretching-filled',
5
+ fixedStretching: 'list-stretching-fixed',
6
+ tightListItem: 'list-item-tight',
7
+ disabledList: 'list-item-disabled',
8
+ disabledListItem: 'list-item-disabled-item'
9
+ };
10
+ export var tokens = {
11
+ listGap: '--plasma-list-gap',
12
+ listWidth: '--plasma-list-width',
13
+ listItemBackground: '--plasma-list-item-background',
14
+ listItemBackgroundHover: '--plasma-list-item-background-hover',
15
+ listItemBorderRadius: '--plasma-list-item-border-radius',
16
+ listItemPaddingLeft: '--plasma-list-item-padding-left',
17
+ listItemPaddingRight: '--plasma-list-item-padding-right',
18
+ listItemPaddingTop: '--plasma-list-item-padding-top',
19
+ listItemPaddingBottom: '--plasma-list-item-padding-bottom',
20
+ listItemBorderColor: '--plasma-list-item-border-color',
21
+ listItemBorderColorHover: '--plasma-list-item-border-color-hover',
22
+ listItemBorderWidth: '--plasma-list-item-border-width',
23
+ listItemIconLeftColor: '--plasma-list-item-color-icon-left',
24
+ listItemIconRightColor: '--plasma-list-item-color-icon-right',
25
+ listItemGap: '--plasma-list-item-gap',
26
+ listItemTightDifference: '--plasma-list-item-tight-difference',
27
+ listItemColor: '--plasma-list-item-color',
28
+ listItemColorHover: '--plasma-list-item-color-hover',
29
+ listItemFontFamily: '--plasma-list-item-font-family',
30
+ listItemFontSize: '--plasma-list-item-font-size',
31
+ listItemFontStyle: '--plasma-list-item-font-style',
32
+ listItemFontWeight: '--plasma-list-item-font-weight',
33
+ listItemLetterSpacing: '--plasma-list-item-letter-spacing',
34
+ listItemLineHeight: '--plasma-list-item-line-height',
35
+ listDisabledOpacity: '--plasma-list-disabled-opacity'
36
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export { listRoot, listConfig } from "./List";
2
+ export { ListItem } from "./ui/ListItem";
3
+ export { tokens as listTokens, classes as listClasses } from "./List.tokens";
@@ -0,0 +1,18 @@
1
+ var _excluded = ["children", "contentRight", "disabled"];
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
+ import React from 'react';
6
+ import { classes } from "../List.tokens";
7
+ import { StyledListItem, CellItem } from "./ListItem.styles";
8
+ export var ListItem = function ListItem(_ref) {
9
+ var children = _ref.children,
10
+ contentRight = _ref.contentRight,
11
+ disabled = _ref.disabled,
12
+ rest = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement(StyledListItem, _extends({
14
+ className: disabled ? classes.disabledListItem : ''
15
+ }, rest), /*#__PURE__*/React.createElement(CellItem, {
16
+ contentRight: contentRight
17
+ }, children));
18
+ };
@@ -0,0 +1,14 @@
1
+ import _styled from "@emotion/styled/base";
2
+ import { tokens, classes } from "../List.tokens";
3
+ import { cellConfig, cellTokens } from "../../Cell";
4
+ import { component, mergeConfig } from "../../../engines";
5
+ var mergedCellConfig = /*#__PURE__*/mergeConfig(cellConfig);
6
+ var Cell = /*#__PURE__*/component(mergedCellConfig);
7
+ export var CellItem = /*#__PURE__*/_styled(Cell, {
8
+ target: "e1juutei1",
9
+ label: "plasma-new-hope__CellItem"
10
+ })(cellTokens.cellWidth, ":100%;", cellTokens.cellPadding, ":0rem;", cellTokens.cellPaddingLeftContent, ":0rem;", cellTokens.cellPaddingContent, ":0rem;", cellTokens.cellPaddingRightContent, ":0rem;", cellTokens.cellTextboxGap, ":0rem;", cellTokens.cellGap, ":var(", tokens.listItemGap, ");", cellTokens.cellColor, ":var(", tokens.listItemColor, ");", cellTokens.cellBackgroundColor, ":transparent;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC91aS9MaXN0SXRlbS5zdHlsZXMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVNvQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0xpc3QvdWkvTGlzdEl0ZW0uc3R5bGVzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZ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TGV0dGVyU3BhY2luZ30pO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICAgIGJhY2tncm91bmQ6IHZhcigke3Rva2Vucy5saXN0SXRlbUJhY2tncm91bmRIb3Zlcn0pO1xuICAgICAgICBib3JkZXItY29sb3I6IHZhcigke3Rva2Vucy5saXN0SXRlbUJvcmRlckNvbG9ySG92ZXJ9KTtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5saXN0SXRlbUNvbG9ySG92ZXJ9KTtcbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy5kaXNhYmxlZExpc3RJdGVtfSB7XG4gICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgICAgIG9wYWNpdHk6IHZhcigke3Rva2Vucy5saXN0RGlzYWJsZWRPcGFjaXR5fSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
11
+ export var StyledListItem = /*#__PURE__*/_styled("li", {
12
+ target: "e1juutei0",
13
+ label: "plasma-new-hope__StyledListItem"
14
+ })("padding:var(", tokens.listItemPaddingTop, ") var(", tokens.listItemPaddingRight, ") var(", tokens.listItemPaddingBottom, ") var(", tokens.listItemPaddingLeft, ");border-radius:var(", tokens.listItemBorderRadius, ");background:var(", tokens.listItemBackground, ");border:var(", tokens.listItemBorderWidth, ") solid var(", tokens.listItemBorderColor, ");box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;color:var(", tokens.listItemColor, ");font-size:var(", tokens.listItemFontSize, ");font-weight:var(", tokens.listItemFontWeight, ");font-family:var(", tokens.listItemFontFamily, ");font-style:var(", tokens.listItemFontStyle, ");line-height:var(", tokens.listItemLineHeight, ");letter-spacing:var(", tokens.listItemLetterSpacing, ");&:hover{background:var(", tokens.listItemBackgroundHover, ");border-color:var(", tokens.listItemBorderColorHover, ");color:var(", tokens.listItemColorHover, ");}&.", classes.disabledListItem, "{cursor:not-allowed;opacity:var(", tokens.listDisabledOpacity, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingUR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TaXplfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5saXN0SXRlbUZvbnRXZWlnaHR9KTtcbiAgICBmb250LWZhbWlseTogdmFyKCR7dG9rZW5zLmxpc3RJdGVtRm9udEZhbWlseX0pO1xuICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy5saXN0SXRlbUZvbnRTdHlsZX0pO1xuICAgIGxpbmUtaGVpZ2h0OiB2YXIoJHt0b2tlbnMubGlzdEl0ZW1MaW5lSGVpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5saXN0SXRlbUxldHRlclNwYWNpbmd9KTtcblxuICAgICY6aG92ZXIge1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMubGlzdEl0ZW1CYWNrZ3JvdW5kSG92ZXJ9KTtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoJHt0b2tlbnMubGlzdEl0ZW1Cb3JkZXJDb2xvckhvdmVyfSk7XG4gICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMubGlzdEl0ZW1Db2xvckhvdmVyfSk7XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMuZGlzYWJsZWRMaXN0SXRlbX0ge1xuICAgICAgICBjdXJzb3I6IG5vdC1hbGxvd2VkO1xuICAgICAgICBvcGFjaXR5OiB2YXIoJHt0b2tlbnMubGlzdERpc2FibGVkT3BhY2l0eX0pO1xuICAgIH1cbmA7XG4iXX0= */"));
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, tokens } from "../../List.tokens";
3
+ import { StyledListItem } from "../../ui/ListItem.styles";
4
+ export var base = /*#__PURE__*/css("&.", classes.disabledList, "{", StyledListItem, "{cursor:not-allowed;opacity:var(", tokens.listDisabledOpacity, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL19kaXNhYmxlZC9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0xpc3QvdmFyaWF0aW9ucy9fZGlzYWJsZWQvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vTGlzdC50b2tlbnMnO1xuaW1wb3J0IHsgU3R5bGVkTGlzdEl0ZW0gfSBmcm9tICcuLi8uLi91aS9MaXN0SXRlbS5zdHlsZXMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5kaXNhYmxlZExpc3R9IHtcbiAgICAgICAgJHtTdHlsZWRMaXN0SXRlbX0ge1xuICAgICAgICAgICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgICAgICAgICAgIG9wYWNpdHk6IHZhcigke3Rva2Vucy5saXN0RGlzYWJsZWRPcGFjaXR5fSk7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1,3 @@
1
+ import { css } from '@emotion/react';
2
+ import { tokens } from "../../List.tokens";
3
+ export var base = /*#__PURE__*/css("gap:var(", tokens.listGap, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL0xpc3QudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZ2FwOiB2YXIoJHt0b2tlbnMubGlzdEdhcH0pO1xuYDtcbiJdfQ== */"));
@@ -0,0 +1,4 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, tokens } from "../../List.tokens";
3
+ import { StyledListItem } from "../../ui/ListItem.styles";
4
+ export var base = /*#__PURE__*/css("&.", classes.tightListItem, "{", StyledListItem, "{padding:calc(var(", tokens.listItemPaddingTop, ") - var(", tokens.listItemTightDifference, ")) var(", tokens.listItemPaddingRight, ") calc(var(", tokens.listItemPaddingBottom, ") - var(", tokens.listItemTightDifference, ")) var(", tokens.listItemPaddingLeft, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL0xpc3QudG9rZW5zJztcbmltcG9ydCB7IFN0eWxlZExpc3RJdGVtIH0gZnJvbSAnLi4vLi4vdWkvTGlzdEl0ZW0uc3R5bGVzJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJi4ke2NsYXNzZXMudGlnaHRMaXN0SXRlbX0ge1xuICAgICAgICAke1N0eWxlZExpc3RJdGVtfSB7XG4gICAgICAgICAgICBwYWRkaW5nOiBjYWxjKHZhcigke3Rva2Vucy5saXN0SXRlbVBhZGRpbmdUb3B9KSAtIHZhcigke3Rva2Vucy5saXN0SXRlbVRpZ2h0RGlmZmVyZW5jZX0pKVxuICAgICAgICAgICAgICAgIHZhcigke3Rva2Vucy5saXN0SXRlbVBhZGRpbmdSaWdodH0pXG4gICAgICAgICAgICAgICAgY2FsYyh2YXIoJHt0b2tlbnMubGlzdEl0ZW1QYWRkaW5nQm90dG9tfSkgLSB2YXIoJHt0b2tlbnMubGlzdEl0ZW1UaWdodERpZmZlcmVuY2V9KSlcbiAgICAgICAgICAgICAgICB2YXIoJHt0b2tlbnMubGlzdEl0ZW1QYWRkaW5nTGVmdH0pO1xuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -1,4 +1,4 @@
1
- var _excluded = ["role", "title", "children", "actions", "view", "size", "iconPlacement", "showCloseIcon", "layout", "icon", "closeIconType", "textColor", "titleColor", "backgroundColor", "onCloseButtonClick"];
1
+ var _excluded = ["role", "title", "children", "actions", "view", "size", "iconPlacement", "showCloseIcon", "layout", "icon", "closeIconType", "textColor", "titleColor", "backgroundColor", "width", "maxWidth", "onCloseButtonClick"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
4
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
@@ -37,6 +37,8 @@ export var notificationRoot = function notificationRoot(Root) {
37
37
  textColor = props.textColor,
38
38
  titleColor = props.titleColor,
39
39
  backgroundColor = props.backgroundColor,
40
+ width = props.width,
41
+ maxWidth = props.maxWidth,
40
42
  onCloseButtonClick = props.onCloseButtonClick,
41
43
  rest = _objectWithoutProperties(props, _excluded);
42
44
  var ariaLive = 'polite';
@@ -64,6 +66,8 @@ export var notificationRoot = function notificationRoot(Root) {
64
66
  "aria-atomic": ariaAtomic
65
67
  }, rest), /*#__PURE__*/React.createElement(Wrapper, {
66
68
  backgroundColor: backgroundColor,
69
+ width: width,
70
+ maxWidth: maxWidth,
67
71
  className: cx(classes.wrapper, getLayoutClass(layout), oneLineClass, withoutCloseIconClass)
68
72
  }, /*#__PURE__*/React.createElement(ContentBox, {
69
73
  iconPlacement: IconPlacementInternal,