@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 +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +4 -2
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +4 -2
- package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +4 -2
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +4 -2
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +4 -2
- package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +4 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.70.0-canary.1160.
|
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": "
|
105
|
+
"gitHead": "457ca24d9f14412260bac518efdc060c3e007775"
|
106
106
|
}
|
package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx
CHANGED
@@ -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={
|
86
|
-
contentRight={enableContentRight ? <IconPlaceholder size={
|
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);
|
package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx
CHANGED
@@ -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={
|
86
|
-
contentRight={enableContentRight ? <IconPlaceholder size={
|
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);
|
package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx
CHANGED
@@ -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={
|
86
|
-
contentRight={enableContentRight ? <IconPlaceholder size={
|
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={
|
86
|
-
contentRight={enableContentRight ? <IconPlaceholder size={
|
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={
|
86
|
-
contentRight={enableContentRight ? <IconPlaceholder size={
|
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);
|
package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx
CHANGED
@@ -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={
|
86
|
-
contentRight={enableContentRight ? <IconPlaceholder size={
|
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);
|