@inc2734/unitone-css 0.46.5 → 0.47.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.css +1 -1
- package/dist/app.js +1 -1
- package/dist/index.js +1 -0
- package/dist/library.js +1 -0
- package/dist/storybook.css +1 -1
- package/package.json +27 -17
- package/src/app.js +5 -132
- package/src/foundation/_foundation.scss +7 -1
- package/src/index.js +1 -0
- package/src/layout-primitives/both-sides/README.md +96 -7
- package/src/layout-primitives/both-sides/stories/index.stories.jsx +2 -5
- package/src/layout-primitives/center/README.md +85 -21
- package/src/layout-primitives/center/stories/index.stories.jsx +2 -2
- package/src/layout-primitives/cluster/README.md +87 -4
- package/src/layout-primitives/cluster/stories/index.stories.jsx +1 -1
- package/src/layout-primitives/container/README.md +73 -19
- package/src/layout-primitives/container/stories/index.stories.jsx +2 -2
- package/src/layout-primitives/cover/README.md +144 -18
- package/src/layout-primitives/cover/_cover.scss +24 -24
- package/src/layout-primitives/cover/index.jsx +63 -0
- package/src/layout-primitives/cover/stories/index.stories.jsx +20 -19
- package/src/layout-primitives/decorator/README.md +134 -12
- package/src/layout-primitives/decorator/stories/index.stories.jsx +2 -2
- package/src/layout-primitives/float/README.md +93 -2
- package/src/layout-primitives/float/stories/index.stories.jsx +3 -3
- package/src/layout-primitives/frame/README.md +53 -1
- package/src/layout-primitives/frame/stories/index.stories.jsx +1 -1
- package/src/layout-primitives/gutters/README.md +35 -11
- package/src/layout-primitives/gutters/stories/index.stories.jsx +4 -4
- package/src/layout-primitives/index.js +17 -0
- package/src/layout-primitives/layers/README.md +240 -4
- package/src/layout-primitives/layers/{Layers.jsx → index.jsx} +16 -1
- package/src/layout-primitives/layers/stories/index.stories.jsx +32 -2
- package/src/layout-primitives/reel/README.md +81 -28
- package/src/layout-primitives/reel/stories/index.stories.jsx +3 -3
- package/src/layout-primitives/responsive-grid/README.md +103 -8
- package/src/layout-primitives/responsive-grid/{ResponsiveGrid.jsx → index.jsx} +2 -1
- package/src/layout-primitives/responsive-grid/stories/index.stories.jsx +187 -26
- package/src/layout-primitives/stack/README.md +61 -2
- package/src/layout-primitives/stack/_stack.scss +2 -0
- package/src/layout-primitives/stack/stories/index.stories.jsx +3 -3
- package/src/layout-primitives/switcher/README.md +60 -4
- package/src/layout-primitives/switcher/stories/index.stories.jsx +2 -2
- package/src/layout-primitives/text/README.md +117 -2
- package/src/layout-primitives/text/stories/index.stories.jsx +13 -3
- package/src/layout-primitives/vertical-writing/README.md +96 -3
- package/src/layout-primitives/vertical-writing/stories/index.stories.jsx +2 -2
- package/src/layout-primitives/with-sidebar/README.md +136 -3
- package/src/layout-primitives/with-sidebar/stories/index.stories.jsx +4 -7
- package/src/library.js +132 -0
- package/src/patterns/features/features-1/Features1.jsx +9 -7
- package/src/patterns/features/features-2/Features2.jsx +1 -6
- package/src/patterns/header/header-1/Header1.jsx +10 -7
- package/src/patterns/header/header-2/Header2.jsx +1 -6
- package/src/patterns/header/header-3/Header3.jsx +1 -6
- package/src/patterns/header/header-4/Header4.jsx +9 -6
- package/src/patterns/header/header-5/Header5.jsx +9 -6
- package/src/patterns/header/header-6/Header6.jsx +10 -7
- package/src/patterns/media-text/media-text-1/MediaText1.jsx +9 -6
- package/src/patterns/media-text/media-text-2/MediaText2.jsx +8 -5
- package/src/settings/_root.scss +8 -8
- package/src/stories/1.introduction.stories.mdx +37 -4
- package/src/stories/2.get-started.stories.mdx +28 -2
- package/src/stories/3.global-api.stories.mdx +26 -22
- package/src/stories/4.global-css-variables.stories.mdx +198 -0
- package/src/variables/_variables.scss +2 -0
- package/src/layout-primitives/cover/Cover.jsx +0 -41
- /package/src/layout-primitives/both-sides/{BothSides.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/center/{Center.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/cluster/{Cluster.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/container/{Container.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/decorator/{Decorator.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/float/{Float.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/frame/{Frame.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/gutters/{Gutters.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/reel/{Reel.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/stack/{Stack.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/switcher/{Switcher.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/text/{Text.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/vertical-writing/{VerticalWriting.jsx → index.jsx} +0 -0
- /package/src/layout-primitives/with-sidebar/{WithSidebar.jsx → index.jsx} +0 -0
|
@@ -1,57 +1,179 @@
|
|
|
1
|
+
# Decorator
|
|
2
|
+
|
|
3
|
+
Decorative blocks. Color, padding, position, etc. can be set.
|
|
4
|
+
|
|
1
5
|
## Usage
|
|
2
6
|
|
|
7
|
+
### HTML
|
|
8
|
+
|
|
3
9
|
```html
|
|
4
10
|
<div data-unitone-layout="decorator">
|
|
5
11
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill
|
|
6
12
|
</div>
|
|
7
13
|
```
|
|
8
14
|
|
|
9
|
-
###
|
|
15
|
+
### JSX
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
import { Decorator } from '@inc2734/unitone-css';
|
|
19
|
+
|
|
20
|
+
<Decorator>
|
|
21
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill
|
|
22
|
+
</Decorator>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Props
|
|
26
|
+
|
|
27
|
+
### Background color
|
|
28
|
+
|
|
29
|
+
Background color.
|
|
30
|
+
|
|
31
|
+
#### HTML
|
|
10
32
|
|
|
11
33
|
```html
|
|
12
|
-
<div data-unitone-layout="decorator -
|
|
34
|
+
<div data-unitone-layout="decorator" style="--unitone--background-color: red">
|
|
13
35
|
...
|
|
14
36
|
</div>
|
|
15
37
|
```
|
|
16
38
|
|
|
17
|
-
|
|
39
|
+
#### JSX
|
|
40
|
+
|
|
41
|
+
```jsx
|
|
42
|
+
import { Decorator } from '@inc2734/unitone-css';
|
|
43
|
+
|
|
44
|
+
<Decorator backgroundColor="red">
|
|
45
|
+
...
|
|
46
|
+
</Decorator>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Color
|
|
50
|
+
|
|
51
|
+
Color.
|
|
52
|
+
|
|
53
|
+
#### HTML
|
|
18
54
|
|
|
19
55
|
```html
|
|
20
|
-
<div data-unitone-layout="decorator
|
|
56
|
+
<div data-unitone-layout="decorator" style="--unitone--color: red">
|
|
21
57
|
...
|
|
22
58
|
</div>
|
|
23
59
|
```
|
|
24
60
|
|
|
25
|
-
|
|
61
|
+
#### JSX
|
|
62
|
+
|
|
63
|
+
```jsx
|
|
64
|
+
import { Decorator } from '@inc2734/unitone-css';
|
|
65
|
+
|
|
66
|
+
<Decorator color="red">
|
|
67
|
+
...
|
|
68
|
+
</Decorator>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Border
|
|
72
|
+
|
|
73
|
+
Border.
|
|
26
74
|
|
|
27
|
-
|
|
75
|
+
#### HTML
|
|
28
76
|
|
|
29
77
|
```html
|
|
30
|
-
<div data-unitone-layout="decorator -
|
|
78
|
+
<div data-unitone-layout="decorator" style="--unitone--border-width: 1px; --unitone--border-color: #000; --unitone--border-radius: 4px">
|
|
31
79
|
...
|
|
32
80
|
</div>
|
|
33
81
|
```
|
|
34
82
|
|
|
35
|
-
|
|
83
|
+
#### JSX
|
|
84
|
+
|
|
85
|
+
```jsx
|
|
86
|
+
import { Decorator } from '@inc2734/unitone-css';
|
|
87
|
+
|
|
88
|
+
<Decorator borderWidth="1px" borderColor="#000" borderRadius="4px">
|
|
89
|
+
...
|
|
90
|
+
</Decorator>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Padding
|
|
94
|
+
|
|
95
|
+
Padding.
|
|
96
|
+
|
|
97
|
+
#### HTML
|
|
36
98
|
|
|
37
99
|
```html
|
|
38
|
-
<div data-unitone-layout="decorator -
|
|
100
|
+
<div data-unitone-layout="decorator -padding:1">
|
|
39
101
|
...
|
|
40
102
|
</div>
|
|
41
103
|
```
|
|
42
104
|
|
|
43
|
-
|
|
105
|
+
#### JSX
|
|
106
|
+
|
|
107
|
+
```jsx
|
|
108
|
+
import { Decorator } from '@inc2734/unitone-css';
|
|
109
|
+
|
|
110
|
+
<Decorator padding={1}>
|
|
111
|
+
...
|
|
112
|
+
</Decorator>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Position
|
|
116
|
+
|
|
117
|
+
Position.
|
|
118
|
+
|
|
119
|
+
#### HTML
|
|
44
120
|
|
|
45
121
|
```html
|
|
46
|
-
<div data-unitone-layout="decorator -position:relative" style="--unitone--z-index: 1">
|
|
122
|
+
<div data-unitone-layout="decorator -position:relative" style="--unitone--top: 0; --unitone--right: 0; --unitone--bottom: 0; --unitone--left: 0; --unitone--z-index: 1">
|
|
47
123
|
...
|
|
48
124
|
</div>
|
|
49
125
|
```
|
|
50
126
|
|
|
51
|
-
|
|
127
|
+
#### JSX
|
|
128
|
+
|
|
129
|
+
```jsx
|
|
130
|
+
import { Decorator } from '@inc2734/unitone-css';
|
|
131
|
+
|
|
132
|
+
<Decorator position="relative" top="0" right="0" bottom="0" left="0" zIndex="1">
|
|
133
|
+
...
|
|
134
|
+
</Decorator>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Overflow
|
|
138
|
+
|
|
139
|
+
Overflow.
|
|
140
|
+
|
|
141
|
+
#### HTML
|
|
52
142
|
|
|
53
143
|
```html
|
|
54
144
|
<div data-unitone-layout="decorator -overflow:hidden">
|
|
55
145
|
...
|
|
56
146
|
</div>
|
|
57
147
|
```
|
|
148
|
+
|
|
149
|
+
#### JSX
|
|
150
|
+
|
|
151
|
+
```jsx
|
|
152
|
+
import { Decorator } from '@inc2734/unitone-css';
|
|
153
|
+
|
|
154
|
+
<Decorator overflow="hidden">
|
|
155
|
+
...
|
|
156
|
+
</Decorator>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### With shadow
|
|
160
|
+
|
|
161
|
+
Add a box shadow.
|
|
162
|
+
|
|
163
|
+
#### HTML
|
|
164
|
+
|
|
165
|
+
```html
|
|
166
|
+
<div data-unitone-layout="decorator -shadow">
|
|
167
|
+
...
|
|
168
|
+
</div>
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
#### JSX
|
|
172
|
+
|
|
173
|
+
```jsx
|
|
174
|
+
import { Decorator } from '@inc2734/unitone-css';
|
|
175
|
+
|
|
176
|
+
<Decorator shadow>
|
|
177
|
+
...
|
|
178
|
+
</Decorator>
|
|
179
|
+
```
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import readme from '../README.md';
|
|
3
3
|
|
|
4
|
-
import { Decorator } from '../
|
|
5
|
-
import { Stack } from '../../stack
|
|
4
|
+
import { Decorator } from '../';
|
|
5
|
+
import { Stack } from '../../stack';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Layout Primitives/Decorator',
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
# Float
|
|
2
|
+
|
|
1
3
|
## Usage
|
|
2
4
|
|
|
5
|
+
### HTML
|
|
6
|
+
|
|
3
7
|
```html
|
|
4
8
|
<div data-unitone-layout="float">
|
|
5
9
|
<img src="https://placehold.jp/400x300.jpg" alt="" />
|
|
@@ -7,7 +11,26 @@
|
|
|
7
11
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill</p>
|
|
8
12
|
```
|
|
9
13
|
|
|
10
|
-
###
|
|
14
|
+
### JSX
|
|
15
|
+
|
|
16
|
+
```jsx
|
|
17
|
+
import { Float } from '@inc2734/unitone-css';
|
|
18
|
+
|
|
19
|
+
<Float>
|
|
20
|
+
<img src="https://placehold.jp/400x300.jpg" alt="" />
|
|
21
|
+
</Float>
|
|
22
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill</p>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Props
|
|
26
|
+
|
|
27
|
+
### Position
|
|
28
|
+
|
|
29
|
+
Change floating position.
|
|
30
|
+
|
|
31
|
+
left / right
|
|
32
|
+
|
|
33
|
+
#### HTML
|
|
11
34
|
|
|
12
35
|
```html
|
|
13
36
|
<div data-unitone-layout="float -right">
|
|
@@ -15,10 +38,78 @@
|
|
|
15
38
|
</div>
|
|
16
39
|
```
|
|
17
40
|
|
|
18
|
-
|
|
41
|
+
#### JSX
|
|
42
|
+
|
|
43
|
+
```jsx
|
|
44
|
+
import { Float } from '@inc2734/unitone-css';
|
|
45
|
+
|
|
46
|
+
<Float position="right">
|
|
47
|
+
...
|
|
48
|
+
</Float>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Gap
|
|
52
|
+
|
|
53
|
+
Gap.
|
|
54
|
+
|
|
55
|
+
#### HTML
|
|
19
56
|
|
|
20
57
|
```html
|
|
21
58
|
<div data-unitone-layout="float -gap:1">
|
|
22
59
|
...
|
|
23
60
|
</div>
|
|
24
61
|
```
|
|
62
|
+
|
|
63
|
+
#### JSX
|
|
64
|
+
|
|
65
|
+
```jsx
|
|
66
|
+
import { Float } from '@inc2734/unitone-css';
|
|
67
|
+
|
|
68
|
+
<Float gap={1}>
|
|
69
|
+
...
|
|
70
|
+
</Float>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Min width
|
|
74
|
+
|
|
75
|
+
Min width of the floating item.
|
|
76
|
+
|
|
77
|
+
#### HTML
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<div data-unitone-layout="float" style="--unitone--min-width: 500px">
|
|
81
|
+
...
|
|
82
|
+
</div>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
#### JSX
|
|
86
|
+
|
|
87
|
+
```jsx
|
|
88
|
+
import { Float } from '@inc2734/unitone-css';
|
|
89
|
+
|
|
90
|
+
<Float minWidth="500px">
|
|
91
|
+
...
|
|
92
|
+
</Float>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Min measure.
|
|
96
|
+
|
|
97
|
+
Min width of the item following the floating item.
|
|
98
|
+
|
|
99
|
+
#### HTML
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<div data-unitone-layout="float" style="--unitone--min-measure: 500px">
|
|
103
|
+
...
|
|
104
|
+
</div>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
#### JSX
|
|
108
|
+
|
|
109
|
+
```jsx
|
|
110
|
+
import { Float } from '@inc2734/unitone-css';
|
|
111
|
+
|
|
112
|
+
<Float minMeasure="500px">
|
|
113
|
+
...
|
|
114
|
+
</Float>
|
|
115
|
+
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import readme from '../README.md';
|
|
3
3
|
|
|
4
|
-
import { Float } from '../
|
|
4
|
+
import { Float } from '../';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: 'Layout Primitives/Float',
|
|
@@ -21,13 +21,13 @@ export default {
|
|
|
21
21
|
minMeasure: {
|
|
22
22
|
control: { type: 'text' },
|
|
23
23
|
description:
|
|
24
|
-
'Min
|
|
24
|
+
'Min width of the item following the floating item. Set by CSS var `--unitone--min-measure`.',
|
|
25
25
|
table: { defaultValue: { summary: 'calc(var(--unitone--measure) / 2)' } },
|
|
26
26
|
type: { name: 'string', required: false },
|
|
27
27
|
},
|
|
28
28
|
minWidth: {
|
|
29
29
|
control: { type: 'text' },
|
|
30
|
-
description: 'Min
|
|
30
|
+
description: 'Min width of the floating item. Set by CSS var `--unitone--min-width`.',
|
|
31
31
|
table: { defaultValue: { summary: 'calc(var(--unitone--measure) / 2)' } },
|
|
32
32
|
type: { name: 'string', required: false },
|
|
33
33
|
},
|
|
@@ -1,15 +1,67 @@
|
|
|
1
|
+
# Frame
|
|
2
|
+
|
|
1
3
|
## Usage
|
|
2
4
|
|
|
5
|
+
### HTML
|
|
6
|
+
|
|
3
7
|
```html
|
|
4
8
|
<div data-unitone-layout="frame">
|
|
5
9
|
<img src="https://placehold.jp/400x300.jpg" alt="" />
|
|
6
10
|
</div>
|
|
7
11
|
```
|
|
8
12
|
|
|
9
|
-
###
|
|
13
|
+
### JSX
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
import { Frame } from '@inc2734/unitone-css';
|
|
17
|
+
|
|
18
|
+
<Frame>
|
|
19
|
+
<img src="https://placehold.jp/400x300.jpg" alt="" />
|
|
20
|
+
</Frame>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Props
|
|
24
|
+
|
|
25
|
+
### Ratio
|
|
26
|
+
|
|
27
|
+
Aspect ratio.
|
|
28
|
+
|
|
29
|
+
#### HTML
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<div data-unitone-layout="frame" style="--unitone--aspect-ratio: 16/9">
|
|
33
|
+
<img src="https://placehold.jp/400x300.jpg" alt="" />
|
|
34
|
+
</div>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
#### JSX
|
|
38
|
+
|
|
39
|
+
```jsx
|
|
40
|
+
import { Frame } from '@inc2734/unitone-css';
|
|
41
|
+
|
|
42
|
+
<Frame aspectRatio="16/9">
|
|
43
|
+
<img src="https://placehold.jp/400x300.jpg" alt="" />
|
|
44
|
+
</Frame>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Switch
|
|
48
|
+
|
|
49
|
+
Switch aspect ratio when portrait.
|
|
50
|
+
|
|
51
|
+
#### HTML
|
|
10
52
|
|
|
11
53
|
```html
|
|
12
54
|
<div data-unitone-layout="frame -switch">
|
|
13
55
|
<img src="https://placehold.jp/400x300.jpg" alt="" />
|
|
14
56
|
</div>
|
|
15
57
|
```
|
|
58
|
+
|
|
59
|
+
#### JSX
|
|
60
|
+
|
|
61
|
+
```jsx
|
|
62
|
+
import { Frame } from '@inc2734/unitone-css';
|
|
63
|
+
|
|
64
|
+
<Frame switch>
|
|
65
|
+
<img src="https://placehold.jp/400x300.jpg" alt="" />
|
|
66
|
+
</Frame>
|
|
67
|
+
```
|
|
@@ -1,23 +1,47 @@
|
|
|
1
|
+
# Gutters
|
|
2
|
+
|
|
3
|
+
Separate content with top and bottom padding.
|
|
4
|
+
|
|
1
5
|
## Usage
|
|
2
6
|
|
|
7
|
+
### HTML
|
|
8
|
+
|
|
3
9
|
```html
|
|
4
|
-
<div data-unitone-layout="
|
|
5
|
-
|
|
6
|
-
<h2>Lorem ipsum dolor sit amet</h2>
|
|
7
|
-
<p>
|
|
8
|
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
|
|
9
|
-
ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
|
|
10
|
-
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
|
|
11
|
-
reprehenderit in voluptate velit esse cill
|
|
12
|
-
</p>
|
|
13
|
-
</div>
|
|
10
|
+
<div data-unitone-layout="gutters">
|
|
11
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill
|
|
14
12
|
</div>
|
|
15
13
|
```
|
|
16
14
|
|
|
17
|
-
###
|
|
15
|
+
### JSX
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
import { Gutters } from '@inc2734/unitone-css';
|
|
19
|
+
|
|
20
|
+
<Gutters>
|
|
21
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill
|
|
22
|
+
</Gutters>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Props
|
|
26
|
+
|
|
27
|
+
### Padding
|
|
28
|
+
|
|
29
|
+
Top and bottom padding.
|
|
30
|
+
|
|
31
|
+
#### HTML
|
|
18
32
|
|
|
19
33
|
```html
|
|
20
34
|
<div data-unitone-layout="section -padding:1">
|
|
21
35
|
...
|
|
22
36
|
</div>
|
|
23
37
|
```
|
|
38
|
+
|
|
39
|
+
#### JSX
|
|
40
|
+
|
|
41
|
+
```jsx
|
|
42
|
+
import { Gutters } from '@inc2734/unitone-css';
|
|
43
|
+
|
|
44
|
+
<Gutters padding={1}>
|
|
45
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill
|
|
46
|
+
</Gutters>
|
|
47
|
+
```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import readme from '../README.md';
|
|
3
3
|
|
|
4
|
-
import { Gutters } from '../
|
|
5
|
-
import { Center } from '../../center
|
|
6
|
-
import { Container } from '../../container
|
|
7
|
-
import { Stack } from '../../stack
|
|
4
|
+
import { Gutters } from '../';
|
|
5
|
+
import { Center } from '../../center';
|
|
6
|
+
import { Container } from '../../container';
|
|
7
|
+
import { Stack } from '../../stack';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
title: 'Layout Primitives/Gutters',
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { BothSides } from './both-sides';
|
|
2
|
+
export { Center } from './center';
|
|
3
|
+
export { Cluster } from './cluster';
|
|
4
|
+
export { Container } from './container';
|
|
5
|
+
export { Cover, CoverContent } from './cover';
|
|
6
|
+
export { Decorator } from './decorator';
|
|
7
|
+
export { Float } from './float';
|
|
8
|
+
export { Frame } from './frame';
|
|
9
|
+
export { Gutters } from './gutters';
|
|
10
|
+
export { Layers } from './layers';
|
|
11
|
+
export { Reel } from './reel';
|
|
12
|
+
export { ResponsiveGrid } from './responsive-grid';
|
|
13
|
+
export { Stack } from './stack';
|
|
14
|
+
export { Switcher } from './switcher';
|
|
15
|
+
export { Text } from './text';
|
|
16
|
+
export { VerticalWriting } from './vertical-writing';
|
|
17
|
+
export { WithSidebar } from './with-sidebar';
|