@salutejs/plasma-new-hope 0.70.0-canary.1160.8541256541.0 → 0.70.0-canary.1160.8552645176.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.70.0-canary.1160.8541256541.0",
3
+ "version": "0.70.0-canary.1160.8552645176.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -102,5 +102,5 @@
102
102
  "react-popper": "2.3.0",
103
103
  "storeon": "3.1.5"
104
104
  },
105
- "gitHead": "a7e2c0ff7afbd1e55280d97c0e5a49cf9ca92959"
105
+ "gitHead": "457ca24d9f14412260bac518efdc060c3e007775"
106
106
  }
@@ -78,12 +78,14 @@ const StoryDefault = ({
78
78
  }: StoryPropsDefault) => {
79
79
  const [text, setText] = useState('Значение поля');
80
80
 
81
+ const iconSize = rest.size === 'xs' ? 'xs' : 's';
82
+
81
83
  return (
82
84
  <TextField
83
85
  {...rest}
84
86
  value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
88
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
87
89
  view={view}
88
90
  onChange={(e) => {
89
91
  setText(e.target.value);
@@ -78,16 +78,18 @@ const StoryDefault = ({
78
78
  }: StoryPropsDefault) => {
79
79
  const [text, setText] = useState('Значение поля');
80
80
 
81
+ const iconSize = rest.size === 'xs' ? 'xs' : 's';
82
+
81
83
  return (
82
84
  <TextField
83
85
  {...rest}
84
86
  value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
88
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
87
89
  view={view}
88
- onChange={(_, value) => {
89
- setText(value);
90
- onChange(value);
90
+ onChange={(e) => {
91
+ setText(e.target.value);
92
+ onChange(e.target.value);
91
93
  }}
92
94
  onFocus={onFocus}
93
95
  onBlur={onBlur}
@@ -78,16 +78,18 @@ const StoryDefault = ({
78
78
  }: StoryPropsDefault) => {
79
79
  const [text, setText] = useState('Значение поля');
80
80
 
81
+ const iconSize = rest.size === 'xs' ? 'xs' : 's';
82
+
81
83
  return (
82
84
  <TextField
83
85
  {...rest}
84
86
  value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
88
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
87
89
  view={view}
88
- onChange={(_, value) => {
89
- setText(value);
90
- onChange(value);
90
+ onChange={(e) => {
91
+ setText(e.target.value);
92
+ onChange(e.target.value);
91
93
  }}
92
94
  onFocus={onFocus}
93
95
  onBlur={onBlur}
@@ -78,12 +78,14 @@ const StoryDefault = ({
78
78
  }: StoryPropsDefault) => {
79
79
  const [text, setText] = useState('Значение поля');
80
80
 
81
+ const iconSize = rest.size === 'xs' ? 'xs' : 's';
82
+
81
83
  return (
82
84
  <TextField
83
85
  {...rest}
84
86
  value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
88
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
87
89
  view={view}
88
90
  onChange={(e) => {
89
91
  setText(e.target.value);
@@ -78,16 +78,18 @@ const StoryDefault = ({
78
78
  }: StoryPropsDefault) => {
79
79
  const [text, setText] = useState('Значение поля');
80
80
 
81
+ const iconSize = rest.size === 'xs' ? 'xs' : 's';
82
+
81
83
  return (
82
84
  <TextField
83
85
  {...rest}
84
86
  value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
88
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
87
89
  view={view}
88
- onChange={(_, value) => {
89
- setText(value);
90
- onChange(value);
90
+ onChange={(e) => {
91
+ setText(e.target.value);
92
+ onChange(e.target.value);
91
93
  }}
92
94
  onFocus={onFocus}
93
95
  onBlur={onBlur}
@@ -78,16 +78,18 @@ const StoryDefault = ({
78
78
  }: StoryPropsDefault) => {
79
79
  const [text, setText] = useState('Значение поля');
80
80
 
81
+ const iconSize = rest.size === 'xs' ? 'xs' : 's';
82
+
81
83
  return (
82
84
  <TextField
83
85
  {...rest}
84
86
  value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
88
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
87
89
  view={view}
88
- onChange={(_, value) => {
89
- setText(value);
90
- onChange(value);
90
+ onChange={(e) => {
91
+ setText(e.target.value);
92
+ onChange(e.target.value);
91
93
  }}
92
94
  onFocus={onFocus}
93
95
  onBlur={onBlur}