@salutejs/plasma-new-hope 0.147.0-canary.1437.10886798256.0 → 0.147.0-canary.1437.10892194926.0
Sign up to get free protection for your applications and to get access to all the features.
- package/emotion/cjs/components/Attach/Attach.template-doc.mdx +46 -0
- package/emotion/es/components/Attach/Attach.template-doc.mdx +46 -0
- package/package.json +2 -2
- package/styled-components/cjs/components/Attach/Attach.template-doc.mdx +46 -0
- package/styled-components/es/components/Attach/Attach.template-doc.mdx +46 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
id: attach
|
3
|
+
title: Attach
|
4
|
+
---
|
5
|
+
|
6
|
+
import { PropsTable, Description } from '@site/src/components';
|
7
|
+
|
8
|
+
# Attach
|
9
|
+
<Description name="Attach" />
|
10
|
+
<PropsTable name="Attach" />
|
11
|
+
|
12
|
+
## Примеры
|
13
|
+
|
14
|
+
### Расположение элементов
|
15
|
+
C помощью свойства `flow` можно регулировать расположение элементов в зависимости от ширины контейнера.
|
16
|
+
|
17
|
+
```tsx live
|
18
|
+
import React from 'react';
|
19
|
+
import { Attach } from '@salutejs/plasma-web';
|
20
|
+
|
21
|
+
export function App() {
|
22
|
+
return (
|
23
|
+
<div style=\{{ display: "flex", flexDirection: "column", gap: "100px"}}>
|
24
|
+
<Attach style=\{{ width: "400px" }} flow="auto" />
|
25
|
+
<Attach style=\{{ width: "400px" }} flow="horizontal" />
|
26
|
+
<Attach style=\{{ width: "400px" }} flow="vertical" />
|
27
|
+
</div>
|
28
|
+
);
|
29
|
+
}
|
30
|
+
```
|
31
|
+
|
32
|
+
### Фильтр форматов файлов
|
33
|
+
Свойство `acceptedFileFormats` устанавливает доступные форматы файлов.
|
34
|
+
|
35
|
+
```tsx live
|
36
|
+
import React from 'react';
|
37
|
+
import { Attach } from '@salutejs/plasma-web';
|
38
|
+
|
39
|
+
export function App() {
|
40
|
+
return (
|
41
|
+
<div>
|
42
|
+
<Attach acceptedFileFormats={['.pdf', '.doc']} />
|
43
|
+
</div>
|
44
|
+
);
|
45
|
+
}
|
46
|
+
```
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
id: attach
|
3
|
+
title: Attach
|
4
|
+
---
|
5
|
+
|
6
|
+
import { PropsTable, Description } from '@site/src/components';
|
7
|
+
|
8
|
+
# Attach
|
9
|
+
<Description name="Attach" />
|
10
|
+
<PropsTable name="Attach" />
|
11
|
+
|
12
|
+
## Примеры
|
13
|
+
|
14
|
+
### Расположение элементов
|
15
|
+
C помощью свойства `flow` можно регулировать расположение элементов в зависимости от ширины контейнера.
|
16
|
+
|
17
|
+
```tsx live
|
18
|
+
import React from 'react';
|
19
|
+
import { Attach } from '@salutejs/plasma-web';
|
20
|
+
|
21
|
+
export function App() {
|
22
|
+
return (
|
23
|
+
<div style=\{{ display: "flex", flexDirection: "column", gap: "100px"}}>
|
24
|
+
<Attach style=\{{ width: "400px" }} flow="auto" />
|
25
|
+
<Attach style=\{{ width: "400px" }} flow="horizontal" />
|
26
|
+
<Attach style=\{{ width: "400px" }} flow="vertical" />
|
27
|
+
</div>
|
28
|
+
);
|
29
|
+
}
|
30
|
+
```
|
31
|
+
|
32
|
+
### Фильтр форматов файлов
|
33
|
+
Свойство `acceptedFileFormats` устанавливает доступные форматы файлов.
|
34
|
+
|
35
|
+
```tsx live
|
36
|
+
import React from 'react';
|
37
|
+
import { Attach } from '@salutejs/plasma-web';
|
38
|
+
|
39
|
+
export function App() {
|
40
|
+
return (
|
41
|
+
<div>
|
42
|
+
<Attach acceptedFileFormats={['.pdf', '.doc']} />
|
43
|
+
</div>
|
44
|
+
);
|
45
|
+
}
|
46
|
+
```
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.147.0-canary.1437.
|
3
|
+
"version": "0.147.0-canary.1437.10892194926.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -122,5 +122,5 @@
|
|
122
122
|
"react-popper": "2.3.0",
|
123
123
|
"storeon": "3.1.5"
|
124
124
|
},
|
125
|
-
"gitHead": "
|
125
|
+
"gitHead": "f36a805e6ed3106aeff691aaedcfad695064ae69"
|
126
126
|
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
id: attach
|
3
|
+
title: Attach
|
4
|
+
---
|
5
|
+
|
6
|
+
import { PropsTable, Description } from '@site/src/components';
|
7
|
+
|
8
|
+
# Attach
|
9
|
+
<Description name="Attach" />
|
10
|
+
<PropsTable name="Attach" />
|
11
|
+
|
12
|
+
## Примеры
|
13
|
+
|
14
|
+
### Расположение элементов
|
15
|
+
C помощью свойства `flow` можно регулировать расположение элементов в зависимости от ширины контейнера.
|
16
|
+
|
17
|
+
```tsx live
|
18
|
+
import React from 'react';
|
19
|
+
import { Attach } from '@salutejs/plasma-web';
|
20
|
+
|
21
|
+
export function App() {
|
22
|
+
return (
|
23
|
+
<div style=\{{ display: "flex", flexDirection: "column", gap: "100px"}}>
|
24
|
+
<Attach style=\{{ width: "400px" }} flow="auto" />
|
25
|
+
<Attach style=\{{ width: "400px" }} flow="horizontal" />
|
26
|
+
<Attach style=\{{ width: "400px" }} flow="vertical" />
|
27
|
+
</div>
|
28
|
+
);
|
29
|
+
}
|
30
|
+
```
|
31
|
+
|
32
|
+
### Фильтр форматов файлов
|
33
|
+
Свойство `acceptedFileFormats` устанавливает доступные форматы файлов.
|
34
|
+
|
35
|
+
```tsx live
|
36
|
+
import React from 'react';
|
37
|
+
import { Attach } from '@salutejs/plasma-web';
|
38
|
+
|
39
|
+
export function App() {
|
40
|
+
return (
|
41
|
+
<div>
|
42
|
+
<Attach acceptedFileFormats={['.pdf', '.doc']} />
|
43
|
+
</div>
|
44
|
+
);
|
45
|
+
}
|
46
|
+
```
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
id: attach
|
3
|
+
title: Attach
|
4
|
+
---
|
5
|
+
|
6
|
+
import { PropsTable, Description } from '@site/src/components';
|
7
|
+
|
8
|
+
# Attach
|
9
|
+
<Description name="Attach" />
|
10
|
+
<PropsTable name="Attach" />
|
11
|
+
|
12
|
+
## Примеры
|
13
|
+
|
14
|
+
### Расположение элементов
|
15
|
+
C помощью свойства `flow` можно регулировать расположение элементов в зависимости от ширины контейнера.
|
16
|
+
|
17
|
+
```tsx live
|
18
|
+
import React from 'react';
|
19
|
+
import { Attach } from '@salutejs/plasma-web';
|
20
|
+
|
21
|
+
export function App() {
|
22
|
+
return (
|
23
|
+
<div style=\{{ display: "flex", flexDirection: "column", gap: "100px"}}>
|
24
|
+
<Attach style=\{{ width: "400px" }} flow="auto" />
|
25
|
+
<Attach style=\{{ width: "400px" }} flow="horizontal" />
|
26
|
+
<Attach style=\{{ width: "400px" }} flow="vertical" />
|
27
|
+
</div>
|
28
|
+
);
|
29
|
+
}
|
30
|
+
```
|
31
|
+
|
32
|
+
### Фильтр форматов файлов
|
33
|
+
Свойство `acceptedFileFormats` устанавливает доступные форматы файлов.
|
34
|
+
|
35
|
+
```tsx live
|
36
|
+
import React from 'react';
|
37
|
+
import { Attach } from '@salutejs/plasma-web';
|
38
|
+
|
39
|
+
export function App() {
|
40
|
+
return (
|
41
|
+
<div>
|
42
|
+
<Attach acceptedFileFormats={['.pdf', '.doc']} />
|
43
|
+
</div>
|
44
|
+
);
|
45
|
+
}
|
46
|
+
```
|