@salutejs/plasma-new-hope 0.70.0-canary.1160.8552305660.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.8552305660.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": "0ac942742e2e134122fc4cee0ff92791c703c145"
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 size={rest.size} /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder size={rest.size} /> : 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,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 size={rest.size} /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder size={rest.size} /> : 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,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 size={rest.size} /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder size={rest.size} /> : 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,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 size={rest.size} /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder size={rest.size} /> : 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,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 size={rest.size} /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder size={rest.size} /> : 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,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 size={rest.size} /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder size={rest.size} /> : 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);