@inc2734/unitone-css 0.47.2 → 0.48.0

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.
Files changed (89) hide show
  1. package/README.md +1 -1
  2. package/dist/app.css +1 -1
  3. package/dist/app.js +1 -1
  4. package/dist/index.js +1 -1
  5. package/dist/library.js +1 -1
  6. package/package.json +8 -14
  7. package/src/app.js +50 -11
  8. package/src/layout-primitives/both-sides/index.jsx +1 -0
  9. package/src/layout-primitives/center/_center.scss +1 -6
  10. package/src/layout-primitives/center/index.jsx +2 -1
  11. package/src/layout-primitives/cluster/index.jsx +1 -0
  12. package/src/layout-primitives/container/index.jsx +1 -0
  13. package/src/layout-primitives/cover/_cover.scss +1 -0
  14. package/src/layout-primitives/cover/index.jsx +1 -0
  15. package/src/layout-primitives/decorator/index.jsx +1 -0
  16. package/src/layout-primitives/float/_float.scss +4 -4
  17. package/src/layout-primitives/float/index.jsx +2 -1
  18. package/src/layout-primitives/frame/index.jsx +1 -0
  19. package/src/layout-primitives/gutters/index.jsx +1 -0
  20. package/src/layout-primitives/layers/_layers.scss +21 -8
  21. package/src/layout-primitives/layers/index.jsx +5 -2
  22. package/src/layout-primitives/reel/index.jsx +1 -0
  23. package/src/layout-primitives/responsive-grid/index.jsx +1 -0
  24. package/src/layout-primitives/stack/index.jsx +1 -0
  25. package/src/layout-primitives/switcher/index.jsx +1 -0
  26. package/src/layout-primitives/text/index.jsx +3 -1
  27. package/src/layout-primitives/vertical-writing/index.jsx +4 -1
  28. package/src/layout-primitives/with-sidebar/index.jsx +1 -0
  29. package/src/library.js +2 -1
  30. package/dist/storybook.css +0 -1
  31. package/src/layout-primitives/both-sides/README.md +0 -143
  32. package/src/layout-primitives/both-sides/stories/index.stories.jsx +0 -49
  33. package/src/layout-primitives/center/README.md +0 -113
  34. package/src/layout-primitives/center/stories/index.stories.jsx +0 -63
  35. package/src/layout-primitives/cluster/README.md +0 -133
  36. package/src/layout-primitives/cluster/stories/index.stories.jsx +0 -135
  37. package/src/layout-primitives/container/README.md +0 -93
  38. package/src/layout-primitives/container/stories/index.stories.jsx +0 -65
  39. package/src/layout-primitives/cover/README.md +0 -195
  40. package/src/layout-primitives/cover/stories/index.stories.jsx +0 -179
  41. package/src/layout-primitives/decorator/README.md +0 -179
  42. package/src/layout-primitives/decorator/stories/index.stories.jsx +0 -198
  43. package/src/layout-primitives/float/README.md +0 -115
  44. package/src/layout-primitives/float/stories/index.stories.jsx +0 -78
  45. package/src/layout-primitives/frame/README.md +0 -67
  46. package/src/layout-primitives/frame/stories/index.stories.jsx +0 -50
  47. package/src/layout-primitives/gutters/README.md +0 -47
  48. package/src/layout-primitives/gutters/stories/index.stories.jsx +0 -48
  49. package/src/layout-primitives/layers/README.md +0 -307
  50. package/src/layout-primitives/layers/stories/index.stories.jsx +0 -187
  51. package/src/layout-primitives/reel/README.md +0 -115
  52. package/src/layout-primitives/reel/stories/index.stories.jsx +0 -80
  53. package/src/layout-primitives/responsive-grid/README.md +0 -130
  54. package/src/layout-primitives/responsive-grid/stories/index.stories.jsx +0 -234
  55. package/src/layout-primitives/stack/README.md +0 -98
  56. package/src/layout-primitives/stack/stories/index.stories.jsx +0 -193
  57. package/src/layout-primitives/switcher/README.md +0 -73
  58. package/src/layout-primitives/switcher/stories/index.stories.jsx +0 -50
  59. package/src/layout-primitives/text/README.md +0 -139
  60. package/src/layout-primitives/text/stories/index.stories.jsx +0 -148
  61. package/src/layout-primitives/vertical-writing/README.md +0 -133
  62. package/src/layout-primitives/vertical-writing/stories/index.stories.jsx +0 -104
  63. package/src/layout-primitives/with-sidebar/README.md +0 -169
  64. package/src/layout-primitives/with-sidebar/stories/index.stories.jsx +0 -124
  65. package/src/patterns/features/features-1/Features1.jsx +0 -54
  66. package/src/patterns/features/features-1/stories/index.stories.jsx +0 -68
  67. package/src/patterns/features/features-2/Features2.jsx +0 -28
  68. package/src/patterns/features/features-2/stories/index.stories.jsx +0 -67
  69. package/src/patterns/header/header-1/Header1.jsx +0 -34
  70. package/src/patterns/header/header-1/stories/index.stories.jsx +0 -44
  71. package/src/patterns/header/header-2/Header2.jsx +0 -28
  72. package/src/patterns/header/header-2/stories/index.stories.jsx +0 -44
  73. package/src/patterns/header/header-3/Header3.jsx +0 -25
  74. package/src/patterns/header/header-3/stories/index.stories.jsx +0 -43
  75. package/src/patterns/header/header-4/Header4.jsx +0 -28
  76. package/src/patterns/header/header-4/stories/index.stories.jsx +0 -41
  77. package/src/patterns/header/header-5/Header5.jsx +0 -35
  78. package/src/patterns/header/header-5/stories/index.stories.jsx +0 -43
  79. package/src/patterns/header/header-6/Header6.jsx +0 -37
  80. package/src/patterns/header/header-6/stories/index.stories.jsx +0 -58
  81. package/src/patterns/media-text/media-text-1/MediaText1.jsx +0 -44
  82. package/src/patterns/media-text/media-text-1/stories/index.stories.jsx +0 -34
  83. package/src/patterns/media-text/media-text-2/MediaText2.jsx +0 -42
  84. package/src/patterns/media-text/media-text-2/stories/index.stories.jsx +0 -34
  85. package/src/stories/1.introduction.stories.mdx +0 -60
  86. package/src/stories/2.get-started.stories.mdx +0 -49
  87. package/src/stories/3.global-api.stories.mdx +0 -61
  88. package/src/stories/4.global-css-variables.stories.mdx +0 -198
  89. package/src/storybook.scss +0 -10
@@ -1,130 +0,0 @@
1
- # Responsive grid
2
-
3
- Generates a simple grid.
4
-
5
- ## Usage
6
-
7
- ### HTML
8
-
9
- ```html
10
- <div data-unitone-layout="responsive-grid">
11
- <img src="https://placehold.jp/400x300.jpg" alt="" />
12
- <img src="https://placehold.jp/400x300.jpg" alt="" />
13
- <img src="https://placehold.jp/400x300.jpg" alt="" />
14
- </div>
15
- ```
16
-
17
- ### JSX
18
-
19
- ```jsx
20
- import { ResponsiveGrid } from '@inc2734/unitone-css';
21
-
22
- <ResponsiveGrid>
23
- <img src="https://placehold.jp/400x300.jpg" alt="" />
24
- <img src="https://placehold.jp/400x300.jpg" alt="" />
25
- <img src="https://placehold.jp/400x300.jpg" alt="" />
26
- </ResponsiveGrid>
27
- ```
28
-
29
- ## Props
30
-
31
- ### Gap
32
-
33
- Gap.
34
-
35
- #### HTML
36
-
37
- ```html
38
- <div data-unitone-layout="responsive-grid -gap:1">
39
- ...
40
- </div>
41
- ```
42
-
43
- #### JSX
44
-
45
- ```jsx
46
- import { ResponsiveGrid } from '@inc2734/unitone-css';
47
-
48
- <ResponsiveGrid gap={1}>
49
- ...
50
- </ResponsiveGrid>
51
- ```
52
-
53
- ### Auto repeat
54
-
55
- auto-fill / auto-fit for grid items.
56
-
57
- #### HTML
58
-
59
- ```html
60
- <div data-unitone-layout="responsive-grid -auto-repeat:auto-fit">
61
- ...
62
- </div>
63
- ```
64
-
65
- #### JSX
66
-
67
- ```jsx
68
- import { ResponsiveGrid } from '@inc2734/unitone-css';
69
-
70
- <ResponsiveGrid autoRepeat="auto-fit">
71
- ...
72
- </ResponsiveGrid>
73
- ```
74
-
75
- ### Columns min width.
76
-
77
- Min width of each columns.
78
-
79
- #### HTML
80
-
81
- ```html
82
- <div data-unitone-layout="responsive-grid" style="--unitone--column-min-width: 240px">
83
- ...
84
- </div>
85
- ```
86
-
87
- #### JSX
88
-
89
- ```jsx
90
- import { ResponsiveGrid } from '@inc2734/unitone-css';
91
-
92
- <ResponsiveGrid minWidth="240px">
93
- ...
94
- </ResponsiveGrid>
95
- ```
96
-
97
- ### Divider
98
-
99
- Using divider.
100
-
101
- stripe / underline / bordered
102
-
103
- #### HTML
104
-
105
- ```html
106
- <div data-unitone-layout="responsive-grid -divider:stripe">
107
- <div>
108
- ...
109
- </div>
110
- <div>
111
- ...
112
- </div>
113
- </div>
114
- ```
115
-
116
- #### JSX
117
-
118
- ```jsx
119
- import { ResponsiveGrid } from '@inc2734/unitone-css';
120
-
121
- <ResponsiveGrid divider="stripe">
122
- <div>
123
- ...
124
- </div>
125
- <div>
126
- ...
127
- </div>
128
- </ResponsiveGrid>
129
- ```
130
-
@@ -1,234 +0,0 @@
1
- import React from 'react';
2
- import readme from '../README.md';
3
-
4
- import { ResponsiveGrid } from '../';
5
- import { Stack } from '../../stack';
6
-
7
- export default {
8
- title: 'Layout Primitives/ResponsiveGrid',
9
- component: ResponsiveGrid,
10
- parameters: {
11
- notes: { readme },
12
- },
13
- argTypes: {
14
- columnMinWidth: {
15
- control: { type: 'text' },
16
- description: 'Min width of each columns. Set by CSS var `--unitone--column-min-width`.',
17
- table: { defaultValue: { summary: '240px' } },
18
- type: { name: 'string', required: false },
19
- },
20
- gap: {
21
- control: { type: 'inline-radio' },
22
- description: 'Gap. Set by CSS var `--unitone--gap`.',
23
- options: [-2, -1, 0, 1, 2, 3, 4, 5, 6, 7],
24
- table: { defaultValue: { summary: 'var(--unitone--global--gap)' } },
25
- type: { name: 'number', required: false },
26
- },
27
- autoRepeat: {
28
- control: { type: 'inline-radio' },
29
- description: 'The auto-repeat. Set by CSS var `--unitone--auto-repeat`.',
30
- options: ['auto-fill', 'auto-fit'],
31
- table: { defaultValue: { summary: 'auto-fill' } },
32
- type: { name: 'string', required: false },
33
- },
34
- divider: {
35
- control: { type: 'inline-radio' },
36
- description: 'Divider. Set by `data-unitone-layout` attribute `-divider:x`.',
37
- options: [undefined, 'stripe', 'underline', 'bordered'],
38
- table: { defaultValue: { summary: false } },
39
- type: { name: 'boolean', required: false },
40
- },
41
- },
42
- args: {
43
- columnMinWidth: '240px',
44
- gap: 2,
45
- autoRepeat: 'auto-fill',
46
- divider: undefined,
47
- },
48
- };
49
-
50
- const content = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit';
51
-
52
- export const Default = (args) => {
53
- return (
54
- <ResponsiveGrid {...args}>
55
- <div>
56
- <Stack gap={-2}>
57
- <img src="https://placehold.jp/400x300.jpg" alt="" />
58
- <p>{content}</p>
59
- </Stack>
60
- </div>
61
- <div>
62
- <Stack gap={-2}>
63
- <img src="https://placehold.jp/400x300.jpg" alt="" />
64
- <p>{content}</p>
65
- </Stack>
66
- </div>
67
- <div>
68
- <Stack gap={-2}>
69
- <img src="https://placehold.jp/400x300.jpg" alt="" />
70
- <p>{content}</p>
71
- </Stack>
72
- </div>
73
- <div>
74
- <Stack gap={-2}>
75
- <img src="https://placehold.jp/400x300.jpg" alt="" />
76
- <p>{content}</p>
77
- </Stack>
78
- </div>
79
- <div>
80
- <Stack gap={-2}>
81
- <img src="https://placehold.jp/400x300.jpg" alt="" />
82
- <p>{content}</p>
83
- </Stack>
84
- </div>
85
- <div>
86
- <Stack gap={-2}>
87
- <img src="https://placehold.jp/400x300.jpg" alt="" />
88
- <p>{content}</p>
89
- </Stack>
90
- </div>
91
- </ResponsiveGrid>
92
- );
93
- };
94
-
95
- export const ExampleStripe = (args) => {
96
- return (
97
- <ResponsiveGrid {...args}>
98
- <div>
99
- <Stack gap={-2}>
100
- <img src="https://placehold.jp/400x300.jpg" alt="" />
101
- <p>{content}</p>
102
- </Stack>
103
- </div>
104
- <div>
105
- <Stack gap={-2}>
106
- <img src="https://placehold.jp/400x300.jpg" alt="" />
107
- <p>{content}</p>
108
- </Stack>
109
- </div>
110
- <div>
111
- <Stack gap={-2}>
112
- <img src="https://placehold.jp/400x300.jpg" alt="" />
113
- <p>{content}</p>
114
- </Stack>
115
- </div>
116
- <div>
117
- <Stack gap={-2}>
118
- <img src="https://placehold.jp/400x300.jpg" alt="" />
119
- <p>{content}</p>
120
- </Stack>
121
- </div>
122
- <div>
123
- <Stack gap={-2}>
124
- <img src="https://placehold.jp/400x300.jpg" alt="" />
125
- <p>{content}</p>
126
- </Stack>
127
- </div>
128
- <div>
129
- <Stack gap={-2}>
130
- <img src="https://placehold.jp/400x300.jpg" alt="" />
131
- <p>{content}</p>
132
- </Stack>
133
- </div>
134
- </ResponsiveGrid>
135
- );
136
- };
137
- ExampleStripe.args = {
138
- divider: 'stripe',
139
- };
140
- ExampleStripe.storyName = 'Example : Stripe';
141
-
142
- export const ExampleUnderline = (args) => {
143
- return (
144
- <ResponsiveGrid {...args}>
145
- <div>
146
- <Stack gap={-2}>
147
- <img src="https://placehold.jp/400x300.jpg" alt="" />
148
- <p>{content}</p>
149
- </Stack>
150
- </div>
151
- <div>
152
- <Stack gap={-2}>
153
- <img src="https://placehold.jp/400x300.jpg" alt="" />
154
- <p>{content}</p>
155
- </Stack>
156
- </div>
157
- <div>
158
- <Stack gap={-2}>
159
- <img src="https://placehold.jp/400x300.jpg" alt="" />
160
- <p>{content}</p>
161
- </Stack>
162
- </div>
163
- <div>
164
- <Stack gap={-2}>
165
- <img src="https://placehold.jp/400x300.jpg" alt="" />
166
- <p>{content}</p>
167
- </Stack>
168
- </div>
169
- <div>
170
- <Stack gap={-2}>
171
- <img src="https://placehold.jp/400x300.jpg" alt="" />
172
- <p>{content}</p>
173
- </Stack>
174
- </div>
175
- <div>
176
- <Stack gap={-2}>
177
- <img src="https://placehold.jp/400x300.jpg" alt="" />
178
- <p>{content}</p>
179
- </Stack>
180
- </div>
181
- </ResponsiveGrid>
182
- );
183
- };
184
- ExampleUnderline.args = {
185
- divider: 'underline',
186
- };
187
- ExampleUnderline.storyName = 'Example : Underline';
188
-
189
- export const ExampleBordered = (args) => {
190
- return (
191
- <ResponsiveGrid {...args}>
192
- <div>
193
- <Stack gap={-2}>
194
- <img src="https://placehold.jp/400x300.jpg" alt="" />
195
- <p>{content}</p>
196
- </Stack>
197
- </div>
198
- <div>
199
- <Stack gap={-2}>
200
- <img src="https://placehold.jp/400x300.jpg" alt="" />
201
- <p>{content}</p>
202
- </Stack>
203
- </div>
204
- <div>
205
- <Stack gap={-2}>
206
- <img src="https://placehold.jp/400x300.jpg" alt="" />
207
- <p>{content}</p>
208
- </Stack>
209
- </div>
210
- <div>
211
- <Stack gap={-2}>
212
- <img src="https://placehold.jp/400x300.jpg" alt="" />
213
- <p>{content}</p>
214
- </Stack>
215
- </div>
216
- <div>
217
- <Stack gap={-2}>
218
- <img src="https://placehold.jp/400x300.jpg" alt="" />
219
- <p>{content}</p>
220
- </Stack>
221
- </div>
222
- <div>
223
- <Stack gap={-2}>
224
- <img src="https://placehold.jp/400x300.jpg" alt="" />
225
- <p>{content}</p>
226
- </Stack>
227
- </div>
228
- </ResponsiveGrid>
229
- );
230
- };
231
- ExampleBordered.args = {
232
- divider: 'bordered',
233
- };
234
- ExampleBordered.storyName = 'Example : Bordered';
@@ -1,98 +0,0 @@
1
- # Stack
2
-
3
- Arranges child elements vertically at regular intervals.
4
-
5
- ## Usage
6
-
7
- ### HTML
8
-
9
- ```html
10
- <div data-unitone-layout="stack">
11
- <p>Lorem 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>
12
- <p>Lorem 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>
13
- </div>
14
- ```
15
-
16
- ### JSX
17
-
18
- ```jsx
19
- import { Stack } from '@inc2734/unitone-css';
20
-
21
- <Stack>
22
- <p>Lorem 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
- <p>Lorem 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>
24
- </Stack>
25
- ```
26
-
27
- ## Props
28
-
29
- ### Gap
30
-
31
- Gap.
32
-
33
- #### HTML
34
-
35
- ```html
36
- <div data-unitone-layout="stack -gap:1">
37
- ...
38
- </div>
39
- ```
40
-
41
- #### JSX
42
-
43
- ```jsx
44
- import { Stack } from '@inc2734/unitone-css';
45
-
46
- <Stack gap={1}>
47
- ...
48
- </Stack>
49
- ```
50
-
51
- ### Negative gap
52
-
53
- Add a netative value gap.
54
-
55
- #### HTML
56
-
57
- ```html
58
- <div data-unitone-layout="stack -gap:1 -negative">
59
- ...
60
- </div>
61
- ```
62
-
63
- #### JSX
64
-
65
- ```jsx
66
- import { Stack } from '@inc2734/unitone-css';
67
-
68
- <Stack gap={1} negative>
69
- ...
70
- </Stack>
71
- ```
72
-
73
- ### Using divider
74
-
75
- stripe / underline / bordered
76
-
77
- #### HTML
78
-
79
- ```html
80
- <div data-unitone-layout="stack -divider:stripe">
81
- <div>
82
- ...
83
- </div>
84
- <div>
85
- ...
86
- </div>
87
- </div>
88
- ```
89
-
90
- #### JSX
91
-
92
- ```jsx
93
- import { Stack } from '@inc2734/unitone-css';
94
-
95
- <Stack gap={1} divider="stripe">
96
- ...
97
- </Stack>
98
- ```
@@ -1,193 +0,0 @@
1
- import React from 'react';
2
- import readme from '../README.md';
3
-
4
- import { Stack } from '../';
5
- import { Decorator } from '../../decorator';
6
- import { Cluster } from '../../cluster';
7
-
8
- export default {
9
- title: 'Layout Primitives/Stack',
10
- component: Stack,
11
- parameters: {
12
- notes: { readme },
13
- },
14
- argTypes: {
15
- gap: {
16
- control: { type: 'inline-radio' },
17
- description:
18
- 'Gap. Set by CSS var `--unitone--gap` or `data-unitone-layout` attribute `-gap:x`.',
19
- options: [-2, -1, 0, 1, 2, 3, 4, 5, 6, 7],
20
- table: { defaultValue: { summary: 'var(--unitone--global--gap)' } },
21
- type: { name: 'number', required: false },
22
- },
23
- negative: {
24
- control: { type: 'inline-radio' },
25
- description: 'Using negative gap. Set by `data-unitone-layout` attribute `-negative`.',
26
- options: [false, true],
27
- table: { defaultValue: { summary: false } },
28
- type: { name: 'boolean', required: false },
29
- },
30
- divider: {
31
- control: { type: 'inline-radio' },
32
- description: 'Divider. Set by `data-unitone-layout` attribute `-divider:x`.',
33
- options: [undefined, 'stripe', 'underline', 'bordered'],
34
- table: { defaultValue: { summary: false } },
35
- type: { name: 'boolean', required: false },
36
- },
37
- },
38
- args: {
39
- gap: 1,
40
- negative: false,
41
- divider: undefined,
42
- },
43
- };
44
-
45
- const contentEn =
46
- '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';
47
- const contentJa =
48
- 'あともゴーシュ子たり何に向いていまし。夜中は次がしばらくと落ちて狸から舞台のようで来でおかげをしからちょろちょろゴーシュを合わせていです。どうかまげて子をこどもに出でしです。それりんに狸がこってボック';
49
-
50
- const Content = (props) => {
51
- const content = 'ja' === props.lang ? contentJa : contentEn;
52
-
53
- return (
54
- <>
55
- <p style={{ '--unitone--font-size': -2 }}>{content}</p>
56
- <p style={{ '--unitone--font-size': -1 }}>{content}</p>
57
- <p>{content}</p>
58
- <p style={{ '--unitone--font-size': 1 }}>{content}</p>
59
- <p style={{ '--unitone--font-size': 2 }}>{content}</p>
60
- <p style={{ '--unitone--font-size': 3 }}>{content}</p>
61
- <p style={{ '--unitone--font-size': 4 }}>{content}</p>
62
- <p style={{ '--unitone--font-size': 5 }}>{content}</p>
63
- <p style={{ '--unitone--font-size': 6 }}>{content}</p>
64
- <p style={{ '--unitone--font-size': 7 }}>{content}</p>
65
- </>
66
- );
67
- };
68
-
69
- export const Default = (args) => {
70
- return (
71
- <Stack {...args}>
72
- <Content />
73
- </Stack>
74
- );
75
- };
76
-
77
- export const ExampleJa = (args) => {
78
- return (
79
- <Stack {...args}>
80
- <Content lang="ja" />
81
- </Stack>
82
- );
83
- };
84
- ExampleJa.storyName = 'Example : Ja';
85
-
86
- export const ExampleCard = (args) => {
87
- return (
88
- <div style={{ maxWidth: '480px' }}>
89
- <Decorator
90
- backgroundColor={args.backgroundColor}
91
- color={args.color}
92
- padding="1"
93
- borderRadius="4px"
94
- >
95
- <Stack gap={args.gap}>
96
- <Decorator>
97
- <Cluster>
98
- <img
99
- src="https://ja.gravatar.com/userimage/18715762/ad5c138cf1d8f3ce1bda5218f26b9b4e.jpeg"
100
- alt=""
101
- style={{ width: '48px', height: '48px' }}
102
- />
103
- <Stack gap="0">
104
- <div>
105
- <b>Takashi Kitajima</b>
106
- </div>
107
- <div style={{ '--unitone--font-size': -1 }}>Takashi Kitajima</div>
108
- </Stack>
109
- </Cluster>
110
- </Decorator>
111
- <div>
112
- <Stack style={{ '--unitone--font-size': -1 }}>
113
- <p>
114
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
115
- incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
116
- exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
117
- irure dolor in reprehenderit in voluptate velit esse cill
118
- </p>
119
- </Stack>
120
- </div>
121
- </Stack>
122
- </Decorator>
123
- </div>
124
- );
125
- };
126
- ExampleCard.args = {
127
- color: '#f0f2f6',
128
- backgroundColor: '#1e293a',
129
- };
130
- ExampleCard.storyName = 'Example : Card';
131
- ExampleCard.argTypes = {
132
- center: { table: { disable: true } },
133
- };
134
-
135
- export const ExampleStripe = (args) => {
136
- return (
137
- <Stack {...args}>
138
- <div>
139
- <p>{contentEn}</p>
140
- </div>
141
- <div>
142
- <p>{contentEn}</p>
143
- </div>
144
- <div>
145
- <p>{contentEn}</p>
146
- </div>
147
- </Stack>
148
- );
149
- };
150
- ExampleStripe.args = {
151
- divider: 'stripe',
152
- };
153
- ExampleStripe.storyName = 'Example : Stripe';
154
-
155
- export const ExampleUnderline = (args) => {
156
- return (
157
- <Stack {...args}>
158
- <div>
159
- <p>{contentEn}</p>
160
- </div>
161
- <div>
162
- <p>{contentEn}</p>
163
- </div>
164
- <div>
165
- <p>{contentEn}</p>
166
- </div>
167
- </Stack>
168
- );
169
- };
170
- ExampleUnderline.args = {
171
- divider: 'underline',
172
- };
173
- ExampleUnderline.storyName = 'Example : Underline';
174
-
175
- export const ExampleBordered = (args) => {
176
- return (
177
- <Stack {...args}>
178
- <div>
179
- <p>{contentEn}</p>
180
- </div>
181
- <div>
182
- <p>{contentEn}</p>
183
- </div>
184
- <div>
185
- <p>{contentEn}</p>
186
- </div>
187
- </Stack>
188
- );
189
- };
190
- ExampleBordered.args = {
191
- divider: 'bordered',
192
- };
193
- ExampleBordered.storyName = 'Example : Bordered';