@salutejs/plasma-new-hope 0.75.1-canary.1182.8691036704.0 → 0.76.0-canary.1172.8687373718.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.75.1-canary.1182.8691036704.0",
3
+ "version": "0.76.0-canary.1172.8687373718.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -67,7 +67,7 @@
67
67
  "@rollup/plugin-babel": "^6.0.3",
68
68
  "@rollup/plugin-commonjs": "^25.0.4",
69
69
  "@rollup/plugin-node-resolve": "^15.1.0",
70
- "@salutejs/plasma-sb-utils": "0.155.0",
70
+ "@salutejs/plasma-sb-utils": "0.156.0-canary.1172.8687373718.0",
71
71
  "@storybook/addon-docs": "^7.6.17",
72
72
  "@storybook/addon-essentials": "^7.6.17",
73
73
  "@storybook/addons": "^7.6.17",
@@ -97,10 +97,10 @@
97
97
  "@linaria/core": "5.0.2",
98
98
  "@linaria/react": "5.0.3",
99
99
  "@popperjs/core": "2.11.8",
100
- "@salutejs/plasma-core": "1.157.0",
100
+ "@salutejs/plasma-core": "1.158.0-canary.1172.8687373718.0",
101
101
  "focus-visible": "5.2.0",
102
102
  "react-popper": "2.3.0",
103
103
  "storeon": "3.1.5"
104
104
  },
105
- "gitHead": "51d22d2ebc0f4c9f18212bf125145405c0092508"
105
+ "gitHead": "bbc7f3fb9e9e9e726344b79612d60c7d48caa15f"
106
106
  }
@@ -26,7 +26,6 @@ const meta: Meta<typeof Divider> = {
26
26
  },
27
27
  table: { defaultValue: { summary: 'default' } },
28
28
  },
29
- length: { control: 'text' },
30
29
  },
31
30
  };
32
31
 
@@ -70,11 +70,16 @@ type StoryPropsDefault = Omit<
70
70
  | 'chips'
71
71
  | 'onChangeChips'
72
72
  > & {
73
- enableContentLeft: boolean;
74
- enableContentRight: boolean;
73
+ 'storybook:contentLeft': boolean;
74
+ 'storybook:contentRight': boolean;
75
75
  };
76
76
 
77
- const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsDefault) => {
77
+ const StoryDemo = ({
78
+ 'storybook:contentLeft': enableContentLeft,
79
+ 'storybook:contentRight': enableContentRight,
80
+ view,
81
+ ...rest
82
+ }: StoryPropsDefault) => {
78
83
  const [text, setText] = useState('Значение поля');
79
84
 
80
85
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -109,8 +114,8 @@ export const Default: StoryObj<StoryPropsDefault> = {
109
114
  leftHelper: 'Подсказка к полю',
110
115
  disabled: false,
111
116
  readOnly: false,
112
- enableContentLeft: true,
113
- enableContentRight: true,
117
+ 'storybook:contentLeft': true,
118
+ 'storybook:contentRight': true,
114
119
  },
115
120
  render: (args) => <StoryDemo {...args} />,
116
121
  };
@@ -134,11 +139,16 @@ type StoryPropsChips = Omit<
134
139
  | 'required'
135
140
  | 'enumerationType'
136
141
  > & {
137
- enableContentLeft: boolean;
138
- enableContentRight: boolean;
142
+ 'storybook:contentLeft': boolean;
143
+ 'storybook:contentRight': boolean;
139
144
  };
140
145
 
141
- const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsChips) => {
146
+ const StoryChips = ({
147
+ 'storybook:contentLeft': enableContentLeft,
148
+ 'storybook:contentRight': enableContentRight,
149
+ view,
150
+ ...rest
151
+ }: StoryPropsChips) => {
142
152
  const [text, setText] = useState('Значение поля');
143
153
 
144
154
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -185,7 +185,6 @@ export const Live: StoryObj<TooltipProps> = {
185
185
  control: {
186
186
  type: 'select',
187
187
  },
188
- mapping: placements,
189
188
  },
190
189
  size: {
191
190
  options: ['m', 's'],
@@ -70,11 +70,16 @@ type StoryPropsDefault = Omit<
70
70
  | 'chips'
71
71
  | 'onChangeChips'
72
72
  > & {
73
- enableContentLeft: boolean;
74
- enableContentRight: boolean;
73
+ 'storybook:contentLeft': boolean;
74
+ 'storybook:contentRight': boolean;
75
75
  };
76
76
 
77
- const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsDefault) => {
77
+ const StoryDemo = ({
78
+ 'storybook:contentLeft': enableContentLeft,
79
+ 'storybook:contentRight': enableContentRight,
80
+ view,
81
+ ...rest
82
+ }: StoryPropsDefault) => {
78
83
  const [text, setText] = useState('Значение поля');
79
84
 
80
85
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -109,8 +114,8 @@ export const Default: StoryObj<StoryPropsDefault> = {
109
114
  leftHelper: 'Подсказка к полю',
110
115
  disabled: false,
111
116
  readOnly: false,
112
- enableContentLeft: true,
113
- enableContentRight: true,
117
+ 'storybook:contentLeft': true,
118
+ 'storybook:contentRight': true,
114
119
  },
115
120
  render: (args) => <StoryDemo {...args} />,
116
121
  };
@@ -134,11 +139,16 @@ type StoryPropsChips = Omit<
134
139
  | 'required'
135
140
  | 'enumerationType'
136
141
  > & {
137
- enableContentLeft: boolean;
138
- enableContentRight: boolean;
142
+ 'storybook:contentLeft': boolean;
143
+ 'storybook:contentRight': boolean;
139
144
  };
140
145
 
141
- const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsChips) => {
146
+ const StoryChips = ({
147
+ 'storybook:contentLeft': enableContentLeft,
148
+ 'storybook:contentRight': enableContentRight,
149
+ view,
150
+ ...rest
151
+ }: StoryPropsChips) => {
142
152
  const [text, setText] = useState('Значение поля');
143
153
 
144
154
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -185,7 +185,6 @@ export const Live: StoryObj<TooltipProps> = {
185
185
  control: {
186
186
  type: 'select',
187
187
  },
188
- mapping: placements,
189
188
  },
190
189
  size: {
191
190
  options: ['m', 's'],
@@ -70,11 +70,16 @@ type StoryPropsDefault = Omit<
70
70
  | 'chips'
71
71
  | 'onChangeChips'
72
72
  > & {
73
- enableContentLeft: boolean;
74
- enableContentRight: boolean;
73
+ 'storybook:contentLeft': boolean;
74
+ 'storybook:contentRight': boolean;
75
75
  };
76
76
 
77
- const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsDefault) => {
77
+ const StoryDemo = ({
78
+ 'storybook:contentLeft': enableContentLeft,
79
+ 'storybook:contentRight': enableContentRight,
80
+ view,
81
+ ...rest
82
+ }: StoryPropsDefault) => {
78
83
  const [text, setText] = useState('Значение поля');
79
84
 
80
85
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -109,8 +114,8 @@ export const Default: StoryObj<StoryPropsDefault> = {
109
114
  leftHelper: 'Подсказка к полю',
110
115
  disabled: false,
111
116
  readOnly: false,
112
- enableContentLeft: true,
113
- enableContentRight: true,
117
+ 'storybook:contentLeft': true,
118
+ 'storybook:contentRight': true,
114
119
  },
115
120
  render: (args) => <StoryDemo {...args} />,
116
121
  };
@@ -134,11 +139,16 @@ type StoryPropsChips = Omit<
134
139
  | 'required'
135
140
  | 'enumerationType'
136
141
  > & {
137
- enableContentLeft: boolean;
138
- enableContentRight: boolean;
142
+ 'storybook:contentLeft': boolean;
143
+ 'storybook:contentRight': boolean;
139
144
  };
140
145
 
141
- const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsChips) => {
146
+ const StoryChips = ({
147
+ 'storybook:contentLeft': enableContentLeft,
148
+ 'storybook:contentRight': enableContentRight,
149
+ view,
150
+ ...rest
151
+ }: StoryPropsChips) => {
142
152
  const [text, setText] = useState('Значение поля');
143
153
 
144
154
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -185,7 +185,6 @@ export const Live: StoryObj<TooltipProps> = {
185
185
  control: {
186
186
  type: 'select',
187
187
  },
188
- mapping: placements,
189
188
  },
190
189
  size: {
191
190
  options: ['m', 's'],
@@ -26,7 +26,6 @@ const meta: Meta<typeof Divider> = {
26
26
  },
27
27
  table: { defaultValue: { summary: 'default' } },
28
28
  },
29
- length: { control: 'text' },
30
29
  },
31
30
  };
32
31
 
@@ -70,11 +70,16 @@ type StoryPropsDefault = Omit<
70
70
  | 'chips'
71
71
  | 'onChangeChips'
72
72
  > & {
73
- enableContentLeft: boolean;
74
- enableContentRight: boolean;
73
+ 'storybook:contentLeft': boolean;
74
+ 'storybook:contentRight': boolean;
75
75
  };
76
76
 
77
- const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsDefault) => {
77
+ const StoryDemo = ({
78
+ 'storybook:contentLeft': enableContentLeft,
79
+ 'storybook:contentRight': enableContentRight,
80
+ view,
81
+ ...rest
82
+ }: StoryPropsDefault) => {
78
83
  const [text, setText] = useState('Значение поля');
79
84
 
80
85
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -109,8 +114,8 @@ export const Default: StoryObj<StoryPropsDefault> = {
109
114
  leftHelper: 'Подсказка к полю',
110
115
  disabled: false,
111
116
  readOnly: false,
112
- enableContentLeft: true,
113
- enableContentRight: true,
117
+ 'storybook:contentLeft': true,
118
+ 'storybook:contentRight': true,
114
119
  },
115
120
  render: (args) => <StoryDemo {...args} />,
116
121
  };
@@ -134,11 +139,16 @@ type StoryPropsChips = Omit<
134
139
  | 'required'
135
140
  | 'enumerationType'
136
141
  > & {
137
- enableContentLeft: boolean;
138
- enableContentRight: boolean;
142
+ 'storybook:contentLeft': boolean;
143
+ 'storybook:contentRight': boolean;
139
144
  };
140
145
 
141
- const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsChips) => {
146
+ const StoryChips = ({
147
+ 'storybook:contentLeft': enableContentLeft,
148
+ 'storybook:contentRight': enableContentRight,
149
+ view,
150
+ ...rest
151
+ }: StoryPropsChips) => {
142
152
  const [text, setText] = useState('Значение поля');
143
153
 
144
154
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -185,7 +185,6 @@ export const Live: StoryObj<TooltipProps> = {
185
185
  control: {
186
186
  type: 'select',
187
187
  },
188
- mapping: placements,
189
188
  },
190
189
  size: {
191
190
  options: ['m', 's'],
@@ -70,11 +70,16 @@ type StoryPropsDefault = Omit<
70
70
  | 'chips'
71
71
  | 'onChangeChips'
72
72
  > & {
73
- enableContentLeft: boolean;
74
- enableContentRight: boolean;
73
+ 'storybook:contentLeft': boolean;
74
+ 'storybook:contentRight': boolean;
75
75
  };
76
76
 
77
- const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsDefault) => {
77
+ const StoryDemo = ({
78
+ 'storybook:contentLeft': enableContentLeft,
79
+ 'storybook:contentRight': enableContentRight,
80
+ view,
81
+ ...rest
82
+ }: StoryPropsDefault) => {
78
83
  const [text, setText] = useState('Значение поля');
79
84
 
80
85
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -109,8 +114,8 @@ export const Default: StoryObj<StoryPropsDefault> = {
109
114
  leftHelper: 'Подсказка к полю',
110
115
  disabled: false,
111
116
  readOnly: false,
112
- enableContentLeft: true,
113
- enableContentRight: true,
117
+ 'storybook:contentLeft': true,
118
+ 'storybook:contentRight': true,
114
119
  },
115
120
  render: (args) => <StoryDemo {...args} />,
116
121
  };
@@ -134,11 +139,16 @@ type StoryPropsChips = Omit<
134
139
  | 'required'
135
140
  | 'enumerationType'
136
141
  > & {
137
- enableContentLeft: boolean;
138
- enableContentRight: boolean;
142
+ 'storybook:contentLeft': boolean;
143
+ 'storybook:contentRight': boolean;
139
144
  };
140
145
 
141
- const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsChips) => {
146
+ const StoryChips = ({
147
+ 'storybook:contentLeft': enableContentLeft,
148
+ 'storybook:contentRight': enableContentRight,
149
+ view,
150
+ ...rest
151
+ }: StoryPropsChips) => {
142
152
  const [text, setText] = useState('Значение поля');
143
153
 
144
154
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -185,7 +185,6 @@ export const Live: StoryObj<TooltipProps> = {
185
185
  control: {
186
186
  type: 'select',
187
187
  },
188
- mapping: placements,
189
188
  },
190
189
  size: {
191
190
  options: ['m', 's'],
@@ -70,11 +70,16 @@ type StoryPropsDefault = Omit<
70
70
  | 'chips'
71
71
  | 'onChangeChips'
72
72
  > & {
73
- enableContentLeft: boolean;
74
- enableContentRight: boolean;
73
+ 'storybook:contentLeft': boolean;
74
+ 'storybook:contentRight': boolean;
75
75
  };
76
76
 
77
- const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsDefault) => {
77
+ const StoryDemo = ({
78
+ 'storybook:contentLeft': enableContentLeft,
79
+ 'storybook:contentRight': enableContentRight,
80
+ view,
81
+ ...rest
82
+ }: StoryPropsDefault) => {
78
83
  const [text, setText] = useState('Значение поля');
79
84
 
80
85
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -109,8 +114,8 @@ export const Default: StoryObj<StoryPropsDefault> = {
109
114
  leftHelper: 'Подсказка к полю',
110
115
  disabled: false,
111
116
  readOnly: false,
112
- enableContentLeft: true,
113
- enableContentRight: true,
117
+ 'storybook:contentLeft': true,
118
+ 'storybook:contentRight': true,
114
119
  },
115
120
  render: (args) => <StoryDemo {...args} />,
116
121
  };
@@ -134,11 +139,16 @@ type StoryPropsChips = Omit<
134
139
  | 'required'
135
140
  | 'enumerationType'
136
141
  > & {
137
- enableContentLeft: boolean;
138
- enableContentRight: boolean;
142
+ 'storybook:contentLeft': boolean;
143
+ 'storybook:contentRight': boolean;
139
144
  };
140
145
 
141
- const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsChips) => {
146
+ const StoryChips = ({
147
+ 'storybook:contentLeft': enableContentLeft,
148
+ 'storybook:contentRight': enableContentRight,
149
+ view,
150
+ ...rest
151
+ }: StoryPropsChips) => {
142
152
  const [text, setText] = useState('Значение поля');
143
153
 
144
154
  const iconSize = rest.size === 'xs' ? 'xs' : 's';
@@ -185,7 +185,6 @@ export const Live: StoryObj<TooltipProps> = {
185
185
  control: {
186
186
  type: 'select',
187
187
  },
188
- mapping: placements,
189
188
  },
190
189
  size: {
191
190
  options: ['m', 's'],