@ceed/ads 1.35.0 → 1.36.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.
- package/README.md +85 -95
- package/dist/components/Accordions/Accordions.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +5 -5
- package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts +7 -17
- package/dist/components/Box/Box.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -5
- package/dist/components/Button/Button.d.ts +3 -2
- package/dist/components/Calendar/Calendar.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Chip/Chip.d.ts +1 -0
- package/dist/components/Container/Container.d.ts +6 -1
- package/dist/components/DialogActions/DialogActions.d.ts +1 -0
- package/dist/components/DialogContent/DialogContent.d.ts +1 -0
- package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
- package/dist/components/DialogTitle/DialogTitle.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +28 -1
- package/dist/components/FilterMenu/components/MonthRange.d.ts +11 -0
- package/dist/components/FilterMenu/types.d.ts +5 -1
- package/dist/components/FormControl/FormControl.d.ts +1 -0
- package/dist/components/FormHelperText/FormHelperText.d.ts +1 -0
- package/dist/components/FormLabel/FormLabel.d.ts +1 -0
- package/dist/components/Grid/Grid.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +3 -2
- package/dist/components/IconMenuButton/IconMenuButton.d.ts +7 -6
- package/dist/components/InfoSign/InfoSign.d.ts +3 -2
- package/dist/components/Input/Input.d.ts +8 -22
- package/dist/components/InsetDrawer/InsetDrawer.d.ts +1 -0
- package/dist/components/Markdown/Markdown.d.ts +9 -24
- package/dist/components/Menu/Menu.d.ts +2 -1
- package/dist/components/MenuButton/MenuButton.d.ts +10 -8
- package/dist/components/Modal/Modal.d.ts +4 -2
- package/dist/components/NavigationGroup/NavigationGroup.d.ts +3 -2
- package/dist/components/NavigationItem/NavigationItem.d.ts +3 -2
- package/dist/components/Navigator/Navigator.d.ts +5 -4
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/ProfileMenu/ProfileMenu.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +1 -0
- package/dist/components/RadioList/RadioList.d.ts +3 -2
- package/dist/components/SearchBar/SearchBar.d.ts +6 -5
- package/dist/components/SearchBar/index.d.ts +3 -2
- package/dist/components/Select/Select.d.ts +12 -10
- package/dist/components/Sheet/Sheet.d.ts +1 -0
- package/dist/components/Stack/Stack.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +2 -1
- package/dist/components/Switch/Switch.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +7 -5
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +8 -20
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +4 -2
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +1 -0
- package/dist/components/Uploader/Uploader.d.ts +18 -17
- package/dist/components/data-display/Avatar.md +60 -72
- package/dist/components/data-display/Badge.md +197 -181
- package/dist/components/data-display/Chip.md +164 -142
- package/dist/components/data-display/DataTable.md +843 -338
- package/dist/components/data-display/InfoSign.md +1 -3
- package/dist/components/data-display/Markdown.md +93 -125
- package/dist/components/data-display/Table.md +1453 -1007
- package/dist/components/data-display/Typography.md +101 -104
- package/dist/components/feedback/Alert.md +80 -86
- package/dist/components/feedback/CircularProgress.md +32 -36
- package/dist/components/feedback/Dialog.md +25 -17
- package/dist/components/feedback/Modal.md +296 -265
- package/dist/components/feedback/Skeleton.md +125 -89
- package/dist/components/index.d.ts +61 -3
- package/dist/components/inputs/Autocomplete.md +191 -95
- package/dist/components/inputs/Button.md +83 -83
- package/dist/components/inputs/ButtonGroup.md +195 -185
- package/dist/components/inputs/Calendar.md +25 -28
- package/dist/components/inputs/Checkbox.md +11 -29
- package/dist/components/inputs/CurrencyInput.md +4 -4
- package/dist/components/inputs/DatePicker.md +229 -110
- package/dist/components/inputs/DateRangePicker.md +248 -137
- package/dist/components/inputs/FilterMenu.md +138 -8
- package/dist/components/inputs/FilterableCheckboxGroup.md +115 -55
- package/dist/components/inputs/FormControl.md +75 -69
- package/dist/components/inputs/IconButton.md +229 -205
- package/dist/components/inputs/Input.md +131 -98
- package/dist/components/inputs/MonthPicker.md +186 -84
- package/dist/components/inputs/MonthRangePicker.md +73 -49
- package/dist/components/inputs/PercentageInput.md +15 -31
- package/dist/components/inputs/RadioButton.md +320 -256
- package/dist/components/inputs/RadioList.md +66 -50
- package/dist/components/inputs/RadioTileGroup.md +287 -170
- package/dist/components/inputs/SearchBar.md +154 -55
- package/dist/components/inputs/Select.md +106 -95
- package/dist/components/inputs/Slider.md +153 -102
- package/dist/components/inputs/Switch.md +193 -138
- package/dist/components/inputs/Textarea.md +15 -20
- package/dist/components/inputs/Uploader/Uploader.md +68 -39
- package/dist/components/layout/Box.md +841 -662
- package/dist/components/layout/Container.md +3 -11
- package/dist/components/layout/Grid.md +480 -394
- package/dist/components/layout/Stack.md +739 -566
- package/dist/components/navigation/Breadcrumbs.md +182 -116
- package/dist/components/navigation/Dropdown.md +732 -391
- package/dist/components/navigation/IconMenuButton.md +14 -6
- package/dist/components/navigation/InsetDrawer.md +550 -378
- package/dist/components/navigation/Link.md +104 -94
- package/dist/components/navigation/Menu.md +623 -502
- package/dist/components/navigation/MenuButton.md +18 -10
- package/dist/components/navigation/NavigationGroup.md +19 -50
- package/dist/components/navigation/NavigationItem.md +6 -6
- package/dist/components/navigation/Navigator.md +26 -28
- package/dist/components/navigation/Pagination.md +86 -75
- package/dist/components/navigation/ProfileMenu.md +65 -43
- package/dist/components/navigation/Stepper.md +2 -12
- package/dist/components/navigation/Tabs.md +209 -183
- package/dist/components/surfaces/Accordions.md +89 -172
- package/dist/components/surfaces/Card.md +1094 -709
- package/dist/components/surfaces/Divider.md +562 -412
- package/dist/components/surfaces/Sheet.md +700 -518
- package/dist/guides/ThemeProvider.md +65 -40
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +1653 -1560
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1316 -1215
- package/framer/index.js +1 -1
- package/package.json +32 -35
|
@@ -6,19 +6,19 @@ The Grid component is a powerful layout system built on CSS Grid. It uses a 12-c
|
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
8
|
<Grid container spacing={args.spacing}>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</Grid>
|
|
9
|
+
<GridItem xs={6}>
|
|
10
|
+
<Typography>Item 1 (xs=6)</Typography>
|
|
11
|
+
</GridItem>
|
|
12
|
+
<GridItem xs={6}>
|
|
13
|
+
<Typography>Item 2 (xs=6)</Typography>
|
|
14
|
+
</GridItem>
|
|
15
|
+
<GridItem xs={4}>
|
|
16
|
+
<Typography>Item 3 (xs=4)</Typography>
|
|
17
|
+
</GridItem>
|
|
18
|
+
<GridItem xs={8}>
|
|
19
|
+
<Typography>Item 4 (xs=8)</Typography>
|
|
20
|
+
</GridItem>
|
|
21
|
+
</Grid>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
| Field | Description | Default |
|
|
@@ -58,31 +58,36 @@ function MyComponent() {
|
|
|
58
58
|
The basic usage of the 12-column grid system.
|
|
59
59
|
|
|
60
60
|
```tsx
|
|
61
|
-
<div
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</
|
|
84
|
-
</
|
|
85
|
-
</
|
|
61
|
+
<div
|
|
62
|
+
style={{
|
|
63
|
+
display: "flex",
|
|
64
|
+
flexDirection: "column",
|
|
65
|
+
gap: "2rem"
|
|
66
|
+
}}
|
|
67
|
+
>
|
|
68
|
+
<div>
|
|
69
|
+
<Typography
|
|
70
|
+
level="title-md"
|
|
71
|
+
sx={{
|
|
72
|
+
mb: 2
|
|
73
|
+
}}
|
|
74
|
+
>
|
|
75
|
+
12열 그리드 시스템
|
|
76
|
+
</Typography>
|
|
77
|
+
<Grid container spacing={2}>
|
|
78
|
+
<GridItem xs={12}>xs=12</GridItem>
|
|
79
|
+
<GridItem xs={6}>xs=6</GridItem>
|
|
80
|
+
<GridItem xs={6}>xs=6</GridItem>
|
|
81
|
+
<GridItem xs={4}>xs=4</GridItem>
|
|
82
|
+
<GridItem xs={4}>xs=4</GridItem>
|
|
83
|
+
<GridItem xs={4}>xs=4</GridItem>
|
|
84
|
+
<GridItem xs={3}>xs=3</GridItem>
|
|
85
|
+
<GridItem xs={3}>xs=3</GridItem>
|
|
86
|
+
<GridItem xs={3}>xs=3</GridItem>
|
|
87
|
+
<GridItem xs={3}>xs=3</GridItem>
|
|
88
|
+
</Grid>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
86
91
|
```
|
|
87
92
|
|
|
88
93
|
## Responsive Grid Layout
|
|
@@ -91,46 +96,49 @@ A responsive grid that applies different layouts across different screen sizes.
|
|
|
91
96
|
|
|
92
97
|
```tsx
|
|
93
98
|
<div>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
<
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</
|
|
133
|
-
</div>
|
|
99
|
+
<Typography
|
|
100
|
+
level="title-md"
|
|
101
|
+
sx={{
|
|
102
|
+
mb: 2
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
반응형 그리드 (브라우저 크기를 조절해보세요)
|
|
106
|
+
</Typography>
|
|
107
|
+
<Grid container spacing={2}>
|
|
108
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
109
|
+
<div>
|
|
110
|
+
<Typography level="body-xs">xs=12</Typography>
|
|
111
|
+
<Typography level="body-xs">sm=6</Typography>
|
|
112
|
+
<Typography level="body-xs">md=4</Typography>
|
|
113
|
+
<Typography level="body-xs">lg=3</Typography>
|
|
114
|
+
</div>
|
|
115
|
+
</GridItem>
|
|
116
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
117
|
+
<div>
|
|
118
|
+
<Typography level="body-xs">xs=12</Typography>
|
|
119
|
+
<Typography level="body-xs">sm=6</Typography>
|
|
120
|
+
<Typography level="body-xs">md=4</Typography>
|
|
121
|
+
<Typography level="body-xs">lg=3</Typography>
|
|
122
|
+
</div>
|
|
123
|
+
</GridItem>
|
|
124
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
125
|
+
<div>
|
|
126
|
+
<Typography level="body-xs">xs=12</Typography>
|
|
127
|
+
<Typography level="body-xs">sm=6</Typography>
|
|
128
|
+
<Typography level="body-xs">md=4</Typography>
|
|
129
|
+
<Typography level="body-xs">lg=3</Typography>
|
|
130
|
+
</div>
|
|
131
|
+
</GridItem>
|
|
132
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
133
|
+
<div>
|
|
134
|
+
<Typography level="body-xs">xs=12</Typography>
|
|
135
|
+
<Typography level="body-xs">sm=6</Typography>
|
|
136
|
+
<Typography level="body-xs">md=4</Typography>
|
|
137
|
+
<Typography level="body-xs">lg=3</Typography>
|
|
138
|
+
</div>
|
|
139
|
+
</GridItem>
|
|
140
|
+
</Grid>
|
|
141
|
+
</div>
|
|
134
142
|
```
|
|
135
143
|
|
|
136
144
|
## Grid Spacing Examples
|
|
@@ -138,63 +146,77 @@ A responsive grid that applies different layouts across different screen sizes.
|
|
|
138
146
|
Grid layouts with different spacing values.
|
|
139
147
|
|
|
140
148
|
```tsx
|
|
141
|
-
<div
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
</
|
|
157
|
-
|
|
149
|
+
<div
|
|
150
|
+
style={{
|
|
151
|
+
display: "flex",
|
|
152
|
+
flexDirection: "column",
|
|
153
|
+
gap: "3rem"
|
|
154
|
+
}}
|
|
155
|
+
>
|
|
156
|
+
<div>
|
|
157
|
+
<Typography
|
|
158
|
+
level="title-sm"
|
|
159
|
+
sx={{
|
|
160
|
+
mb: 1
|
|
161
|
+
}}
|
|
162
|
+
>
|
|
163
|
+
간격 없음 (spacing=0)
|
|
164
|
+
</Typography>
|
|
165
|
+
<Grid container spacing={0}>
|
|
166
|
+
<GridItem xs={4}>Item 1</GridItem>
|
|
167
|
+
<GridItem xs={4}>Item 2</GridItem>
|
|
168
|
+
<GridItem xs={4}>Item 3</GridItem>
|
|
169
|
+
</Grid>
|
|
170
|
+
</div>
|
|
158
171
|
|
|
159
|
-
<div>
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
</
|
|
170
|
-
</
|
|
172
|
+
<div>
|
|
173
|
+
<Typography
|
|
174
|
+
level="title-sm"
|
|
175
|
+
sx={{
|
|
176
|
+
mb: 1
|
|
177
|
+
}}
|
|
178
|
+
>
|
|
179
|
+
작은 간격 (spacing=1)
|
|
180
|
+
</Typography>
|
|
181
|
+
<Grid container spacing={1}>
|
|
182
|
+
<GridItem xs={4}>Item 1</GridItem>
|
|
183
|
+
<GridItem xs={4}>Item 2</GridItem>
|
|
184
|
+
<GridItem xs={4}>Item 3</GridItem>
|
|
185
|
+
</Grid>
|
|
186
|
+
</div>
|
|
171
187
|
|
|
172
|
-
<div>
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
</
|
|
183
|
-
</
|
|
188
|
+
<div>
|
|
189
|
+
<Typography
|
|
190
|
+
level="title-sm"
|
|
191
|
+
sx={{
|
|
192
|
+
mb: 1
|
|
193
|
+
}}
|
|
194
|
+
>
|
|
195
|
+
중간 간격 (spacing=2)
|
|
196
|
+
</Typography>
|
|
197
|
+
<Grid container spacing={2}>
|
|
198
|
+
<GridItem xs={4}>Item 1</GridItem>
|
|
199
|
+
<GridItem xs={4}>Item 2</GridItem>
|
|
200
|
+
<GridItem xs={4}>Item 3</GridItem>
|
|
201
|
+
</Grid>
|
|
202
|
+
</div>
|
|
184
203
|
|
|
185
|
-
<div>
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
</
|
|
196
|
-
</
|
|
197
|
-
</
|
|
204
|
+
<div>
|
|
205
|
+
<Typography
|
|
206
|
+
level="title-sm"
|
|
207
|
+
sx={{
|
|
208
|
+
mb: 1
|
|
209
|
+
}}
|
|
210
|
+
>
|
|
211
|
+
큰 간격 (spacing=4)
|
|
212
|
+
</Typography>
|
|
213
|
+
<Grid container spacing={4}>
|
|
214
|
+
<GridItem xs={4}>Item 1</GridItem>
|
|
215
|
+
<GridItem xs={4}>Item 2</GridItem>
|
|
216
|
+
<GridItem xs={4}>Item 3</GridItem>
|
|
217
|
+
</Grid>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
198
220
|
```
|
|
199
221
|
|
|
200
222
|
## Nested Grid Layout
|
|
@@ -203,62 +225,75 @@ You can nest one grid inside another.
|
|
|
203
225
|
|
|
204
226
|
```tsx
|
|
205
227
|
<div>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
</
|
|
236
|
-
|
|
228
|
+
<Typography
|
|
229
|
+
level="title-md"
|
|
230
|
+
sx={{
|
|
231
|
+
mb: 2
|
|
232
|
+
}}
|
|
233
|
+
>
|
|
234
|
+
중첩된 그리드
|
|
235
|
+
</Typography>
|
|
236
|
+
<Grid container spacing={2}>
|
|
237
|
+
<Grid xs={12} md={8}>
|
|
238
|
+
<Box
|
|
239
|
+
sx={{
|
|
240
|
+
p: 2,
|
|
241
|
+
bgcolor: "success.50",
|
|
242
|
+
borderRadius: "md",
|
|
243
|
+
minHeight: 200
|
|
244
|
+
}}
|
|
245
|
+
>
|
|
246
|
+
<Typography
|
|
247
|
+
level="title-sm"
|
|
248
|
+
sx={{
|
|
249
|
+
mb: 2
|
|
250
|
+
}}
|
|
251
|
+
>
|
|
252
|
+
메인 콘텐츠 영역
|
|
253
|
+
</Typography>
|
|
254
|
+
<Grid container spacing={1}>
|
|
255
|
+
<GridItem xs={6}>
|
|
256
|
+
<Typography level="body-xs">중첩 아이템 1</Typography>
|
|
257
|
+
</GridItem>
|
|
258
|
+
<GridItem xs={6}>
|
|
259
|
+
<Typography level="body-xs">중첩 아이템 2</Typography>
|
|
260
|
+
</GridItem>
|
|
261
|
+
<GridItem xs={12}>
|
|
262
|
+
<Typography level="body-xs">중첩 아이템 3</Typography>
|
|
263
|
+
</GridItem>
|
|
264
|
+
</Grid>
|
|
265
|
+
</Box>
|
|
266
|
+
</Grid>
|
|
237
267
|
|
|
238
|
-
<Grid xs={12} md={4}>
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
</
|
|
258
|
-
</
|
|
259
|
-
|
|
260
|
-
</
|
|
261
|
-
</
|
|
268
|
+
<Grid xs={12} md={4}>
|
|
269
|
+
<Box
|
|
270
|
+
sx={{
|
|
271
|
+
p: 2,
|
|
272
|
+
bgcolor: "warning.50",
|
|
273
|
+
borderRadius: "md",
|
|
274
|
+
minHeight: 200
|
|
275
|
+
}}
|
|
276
|
+
>
|
|
277
|
+
<Typography
|
|
278
|
+
level="title-sm"
|
|
279
|
+
sx={{
|
|
280
|
+
mb: 2
|
|
281
|
+
}}
|
|
282
|
+
>
|
|
283
|
+
사이드바
|
|
284
|
+
</Typography>
|
|
285
|
+
<Grid container spacing={1}>
|
|
286
|
+
<GridItem xs={12}>
|
|
287
|
+
<Typography level="body-xs">사이드바 아이템 1</Typography>
|
|
288
|
+
</GridItem>
|
|
289
|
+
<GridItem xs={12}>
|
|
290
|
+
<Typography level="body-xs">사이드바 아이템 2</Typography>
|
|
291
|
+
</GridItem>
|
|
292
|
+
</Grid>
|
|
293
|
+
</Box>
|
|
294
|
+
</Grid>
|
|
295
|
+
</Grid>
|
|
296
|
+
</div>
|
|
262
297
|
```
|
|
263
298
|
|
|
264
299
|
## Grid Auto Layout Example
|
|
@@ -266,43 +301,51 @@ You can nest one grid inside another.
|
|
|
266
301
|
A grid using auto layout.
|
|
267
302
|
|
|
268
303
|
```tsx
|
|
269
|
-
<div
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
</
|
|
285
|
-
|
|
304
|
+
<div
|
|
305
|
+
style={{
|
|
306
|
+
display: "flex",
|
|
307
|
+
flexDirection: "column",
|
|
308
|
+
gap: "2rem"
|
|
309
|
+
}}
|
|
310
|
+
>
|
|
311
|
+
<div>
|
|
312
|
+
<Typography
|
|
313
|
+
level="title-sm"
|
|
314
|
+
sx={{
|
|
315
|
+
mb: 1
|
|
316
|
+
}}
|
|
317
|
+
>
|
|
318
|
+
자동 레이아웃 - 동일한 너비
|
|
319
|
+
</Typography>
|
|
320
|
+
<Grid container spacing={2}>
|
|
321
|
+
<GridItem xs>자동 너비 1</GridItem>
|
|
322
|
+
<GridItem xs>자동 너비 2</GridItem>
|
|
323
|
+
<GridItem xs>자동 너비 3</GridItem>
|
|
324
|
+
</Grid>
|
|
325
|
+
</div>
|
|
286
326
|
|
|
287
|
-
<div>
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
</
|
|
327
|
+
<div>
|
|
328
|
+
<Typography
|
|
329
|
+
level="title-sm"
|
|
330
|
+
sx={{
|
|
331
|
+
mb: 1
|
|
332
|
+
}}
|
|
333
|
+
>
|
|
334
|
+
자동 레이아웃 - 내용에 따른 너비
|
|
335
|
+
</Typography>
|
|
336
|
+
<Grid container spacing={2}>
|
|
337
|
+
<GridItem xs="auto">
|
|
338
|
+
<Typography>짧은 내용</Typography>
|
|
339
|
+
</GridItem>
|
|
340
|
+
<GridItem xs>
|
|
341
|
+
<Typography>남은 공간을 모두 차지하는 긴 내용</Typography>
|
|
342
|
+
</GridItem>
|
|
343
|
+
<GridItem xs="auto">
|
|
344
|
+
<Typography>또 다른 짧은 내용</Typography>
|
|
345
|
+
</GridItem>
|
|
346
|
+
</Grid>
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
306
349
|
```
|
|
307
350
|
|
|
308
351
|
## Complex Grid Layouts
|
|
@@ -310,125 +353,148 @@ A grid using auto layout.
|
|
|
310
353
|
Complex layout examples based on real use cases.
|
|
311
354
|
|
|
312
355
|
```tsx
|
|
313
|
-
<div
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
356
|
+
<div
|
|
357
|
+
style={{
|
|
358
|
+
display: "flex",
|
|
359
|
+
flexDirection: "column",
|
|
360
|
+
gap: "3rem"
|
|
361
|
+
}}
|
|
362
|
+
>
|
|
363
|
+
{/* Dashboard Layout */}
|
|
364
|
+
<div>
|
|
365
|
+
<Typography
|
|
366
|
+
level="title-md"
|
|
367
|
+
sx={{
|
|
368
|
+
mb: 2
|
|
369
|
+
}}
|
|
370
|
+
>
|
|
371
|
+
대시보드 레이아웃
|
|
372
|
+
</Typography>
|
|
373
|
+
<Grid container spacing={2}>
|
|
374
|
+
{/* Header */}
|
|
375
|
+
<Grid xs={12}>
|
|
376
|
+
<Box
|
|
377
|
+
sx={{
|
|
378
|
+
p: 3,
|
|
379
|
+
bgcolor: "primary.100",
|
|
380
|
+
borderRadius: "md",
|
|
381
|
+
textAlign: "center"
|
|
382
|
+
}}
|
|
383
|
+
>
|
|
384
|
+
<Typography level="title-lg">대시보드 헤더</Typography>
|
|
385
|
+
</Box>
|
|
386
|
+
</Grid>
|
|
387
|
+
|
|
388
|
+
{/* Stats Cards */}
|
|
389
|
+
<GridItem xs={12} sm={6} lg={3}>
|
|
390
|
+
<div>
|
|
391
|
+
<Typography level="title-sm">총 사용자</Typography>
|
|
392
|
+
<Typography level="h2">1,234</Typography>
|
|
393
|
+
</div>
|
|
394
|
+
</GridItem>
|
|
395
|
+
<GridItem xs={12} sm={6} lg={3}>
|
|
396
|
+
<div>
|
|
397
|
+
<Typography level="title-sm">매출</Typography>
|
|
398
|
+
<Typography level="h2">₩5.6M</Typography>
|
|
399
|
+
</div>
|
|
400
|
+
</GridItem>
|
|
401
|
+
<GridItem xs={12} sm={6} lg={3}>
|
|
402
|
+
<div>
|
|
403
|
+
<Typography level="title-sm">주문</Typography>
|
|
404
|
+
<Typography level="h2">789</Typography>
|
|
405
|
+
</div>
|
|
406
|
+
</GridItem>
|
|
407
|
+
<GridItem xs={12} sm={6} lg={3}>
|
|
408
|
+
<div>
|
|
409
|
+
<Typography level="title-sm">전환율</Typography>
|
|
410
|
+
<Typography level="h2">3.2%</Typography>
|
|
411
|
+
</div>
|
|
412
|
+
</GridItem>
|
|
413
|
+
|
|
414
|
+
{/* Main Content */}
|
|
415
|
+
<Grid xs={12} lg={8}>
|
|
416
|
+
<Box
|
|
417
|
+
sx={{
|
|
418
|
+
p: 3,
|
|
419
|
+
bgcolor: "neutral.50",
|
|
420
|
+
borderRadius: "md",
|
|
421
|
+
minHeight: 300
|
|
422
|
+
}}
|
|
423
|
+
>
|
|
424
|
+
<Typography level="title-md">차트 영역</Typography>
|
|
425
|
+
<Typography level="body-sm">여기에 차트가 들어갑니다</Typography>
|
|
426
|
+
</Box>
|
|
427
|
+
</Grid>
|
|
428
|
+
|
|
429
|
+
{/* Sidebar */}
|
|
430
|
+
<Grid xs={12} lg={4}>
|
|
431
|
+
<Box
|
|
432
|
+
sx={{
|
|
433
|
+
p: 3,
|
|
434
|
+
bgcolor: "success.50",
|
|
435
|
+
borderRadius: "md",
|
|
436
|
+
minHeight: 300
|
|
437
|
+
}}
|
|
438
|
+
>
|
|
439
|
+
<Typography level="title-md">최근 활동</Typography>
|
|
440
|
+
<Typography level="body-sm">활동 목록이 여기 표시됩니다</Typography>
|
|
441
|
+
</Box>
|
|
442
|
+
</Grid>
|
|
443
|
+
</Grid>
|
|
444
|
+
</div>
|
|
337
445
|
|
|
338
|
-
{/*
|
|
339
|
-
<
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
<
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
446
|
+
{/* Product Grid */}
|
|
447
|
+
<div>
|
|
448
|
+
<Typography
|
|
449
|
+
level="title-md"
|
|
450
|
+
sx={{
|
|
451
|
+
mb: 2
|
|
452
|
+
}}
|
|
453
|
+
>
|
|
454
|
+
제품 그리드
|
|
455
|
+
</Typography>
|
|
456
|
+
<Grid container spacing={2}>
|
|
457
|
+
{[1, 2, 3, 4, 5, 6].map((item) => (
|
|
458
|
+
<Grid key={item} xs={12} sm={6} md={4} lg={2}>
|
|
459
|
+
<Box
|
|
460
|
+
sx={{
|
|
461
|
+
p: 2,
|
|
462
|
+
bgcolor: "background.body",
|
|
463
|
+
border: "1px solid",
|
|
464
|
+
borderColor: "divider",
|
|
465
|
+
borderRadius: "md",
|
|
466
|
+
textAlign: "center"
|
|
467
|
+
}}
|
|
468
|
+
>
|
|
469
|
+
<Box
|
|
470
|
+
sx={{
|
|
471
|
+
width: "100%",
|
|
472
|
+
height: 80,
|
|
473
|
+
bgcolor: "neutral.100",
|
|
474
|
+
borderRadius: "sm",
|
|
475
|
+
mb: 1,
|
|
476
|
+
display: "flex",
|
|
477
|
+
alignItems: "center",
|
|
478
|
+
justifyContent: "center"
|
|
479
|
+
}}
|
|
480
|
+
>
|
|
481
|
+
<Typography level="body-xs">제품 {item}</Typography>
|
|
482
|
+
</Box>
|
|
483
|
+
<Typography level="body-sm">제품명</Typography>
|
|
484
|
+
<Typography
|
|
485
|
+
level="body-xs"
|
|
486
|
+
sx={{
|
|
487
|
+
color: "text.secondary"
|
|
488
|
+
}}
|
|
489
|
+
>
|
|
490
|
+
₩10,000
|
|
491
|
+
</Typography>
|
|
492
|
+
</Box>
|
|
493
|
+
</Grid>
|
|
494
|
+
))}
|
|
495
|
+
</Grid>
|
|
496
|
+
</div>
|
|
361
497
|
</div>
|
|
362
|
-
</GridItem>
|
|
363
|
-
|
|
364
|
-
{/* Main Content */}
|
|
365
|
-
<Grid xs={12} lg={8}>
|
|
366
|
-
<Box sx={{
|
|
367
|
-
p: 3,
|
|
368
|
-
bgcolor: 'neutral.50',
|
|
369
|
-
borderRadius: 'md',
|
|
370
|
-
minHeight: 300
|
|
371
|
-
}}>
|
|
372
|
-
<Typography level="title-md">차트 영역</Typography>
|
|
373
|
-
<Typography level="body-sm">여기에 차트가 들어갑니다</Typography>
|
|
374
|
-
</Box>
|
|
375
|
-
</Grid>
|
|
376
|
-
|
|
377
|
-
{/* Sidebar */}
|
|
378
|
-
<Grid xs={12} lg={4}>
|
|
379
|
-
<Box sx={{
|
|
380
|
-
p: 3,
|
|
381
|
-
bgcolor: 'success.50',
|
|
382
|
-
borderRadius: 'md',
|
|
383
|
-
minHeight: 300
|
|
384
|
-
}}>
|
|
385
|
-
<Typography level="title-md">최근 활동</Typography>
|
|
386
|
-
<Typography level="body-sm">활동 목록이 여기 표시됩니다</Typography>
|
|
387
|
-
</Box>
|
|
388
|
-
</Grid>
|
|
389
|
-
</Grid>
|
|
390
|
-
</div>
|
|
391
|
-
|
|
392
|
-
{/* Product Grid */}
|
|
393
|
-
<div>
|
|
394
|
-
<Typography level="title-md" sx={{
|
|
395
|
-
mb: 2
|
|
396
|
-
}}>
|
|
397
|
-
제품 그리드
|
|
398
|
-
</Typography>
|
|
399
|
-
<Grid container spacing={2}>
|
|
400
|
-
{[1, 2, 3, 4, 5, 6].map(item => <Grid key={item} xs={12} sm={6} md={4} lg={2}>
|
|
401
|
-
<Box sx={{
|
|
402
|
-
p: 2,
|
|
403
|
-
bgcolor: 'background.body',
|
|
404
|
-
border: '1px solid',
|
|
405
|
-
borderColor: 'divider',
|
|
406
|
-
borderRadius: 'md',
|
|
407
|
-
textAlign: 'center'
|
|
408
|
-
}}>
|
|
409
|
-
<Box sx={{
|
|
410
|
-
width: '100%',
|
|
411
|
-
height: 80,
|
|
412
|
-
bgcolor: 'neutral.100',
|
|
413
|
-
borderRadius: 'sm',
|
|
414
|
-
mb: 1,
|
|
415
|
-
display: 'flex',
|
|
416
|
-
alignItems: 'center',
|
|
417
|
-
justifyContent: 'center'
|
|
418
|
-
}}>
|
|
419
|
-
<Typography level="body-xs">제품 {item}</Typography>
|
|
420
|
-
</Box>
|
|
421
|
-
<Typography level="body-sm">제품명</Typography>
|
|
422
|
-
<Typography level="body-xs" sx={{
|
|
423
|
-
color: 'text.secondary'
|
|
424
|
-
}}>
|
|
425
|
-
₩10,000
|
|
426
|
-
</Typography>
|
|
427
|
-
</Box>
|
|
428
|
-
</Grid>)}
|
|
429
|
-
</Grid>
|
|
430
|
-
</div>
|
|
431
|
-
</div>
|
|
432
498
|
```
|
|
433
499
|
|
|
434
500
|
## Grid Breakpoint Demo
|
|
@@ -437,54 +503,60 @@ An example showing how Grid behaves at each breakpoint.
|
|
|
437
503
|
|
|
438
504
|
```tsx
|
|
439
505
|
<div>
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
<
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
506
|
+
<Typography
|
|
507
|
+
level="title-md"
|
|
508
|
+
sx={{
|
|
509
|
+
mb: 2
|
|
510
|
+
}}
|
|
511
|
+
>
|
|
512
|
+
브레이크포인트 데모 - 각 화면 크기에서 다른 레이아웃
|
|
513
|
+
</Typography>
|
|
514
|
+
|
|
515
|
+
<Box
|
|
516
|
+
sx={{
|
|
517
|
+
mb: 2
|
|
518
|
+
}}
|
|
519
|
+
>
|
|
520
|
+
<Typography
|
|
521
|
+
level="body-sm"
|
|
522
|
+
sx={{
|
|
523
|
+
color: "text.secondary"
|
|
524
|
+
}}
|
|
525
|
+
>
|
|
526
|
+
• xs (0px+): 모든 아이템이 한 줄로
|
|
527
|
+
<br />• sm (600px+): 2개씩 배치
|
|
528
|
+
<br />• md (900px+): 3개씩 배치
|
|
529
|
+
<br />• lg (1200px+): 4개씩 배치
|
|
530
|
+
</Typography>
|
|
531
|
+
</Box>
|
|
460
532
|
|
|
461
|
-
<Grid container spacing={2}>
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
</Grid>
|
|
487
|
-
</div>
|
|
533
|
+
<Grid container spacing={2}>
|
|
534
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
535
|
+
<Typography level="body-sm">첫 번째 아이템</Typography>
|
|
536
|
+
</GridItem>
|
|
537
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
538
|
+
<Typography level="body-sm">두 번째 아이템</Typography>
|
|
539
|
+
</GridItem>
|
|
540
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
541
|
+
<Typography level="body-sm">세 번째 아이템</Typography>
|
|
542
|
+
</GridItem>
|
|
543
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
544
|
+
<Typography level="body-sm">네 번째 아이템</Typography>
|
|
545
|
+
</GridItem>
|
|
546
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
547
|
+
<Typography level="body-sm">다섯 번째 아이템</Typography>
|
|
548
|
+
</GridItem>
|
|
549
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
550
|
+
<Typography level="body-sm">여섯 번째 아이템</Typography>
|
|
551
|
+
</GridItem>
|
|
552
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
553
|
+
<Typography level="body-sm">일곱 번째 아이템</Typography>
|
|
554
|
+
</GridItem>
|
|
555
|
+
<GridItem xs={12} sm={6} md={4} lg={3}>
|
|
556
|
+
<Typography level="body-sm">여덟 번째 아이템</Typography>
|
|
557
|
+
</GridItem>
|
|
558
|
+
</Grid>
|
|
559
|
+
</div>
|
|
488
560
|
```
|
|
489
561
|
|
|
490
562
|
## Grid System
|
|
@@ -495,12 +567,24 @@ Grid is based on a 12-column system. Each item can span 1 to 12 columns.
|
|
|
495
567
|
|
|
496
568
|
```tsx
|
|
497
569
|
<Grid container spacing={2}>
|
|
498
|
-
<Grid item xs={12}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
<Grid item xs={
|
|
502
|
-
|
|
503
|
-
|
|
570
|
+
<Grid item xs={12}>
|
|
571
|
+
전체 너비 (12/12)
|
|
572
|
+
</Grid>
|
|
573
|
+
<Grid item xs={6}>
|
|
574
|
+
절반 너비 (6/12)
|
|
575
|
+
</Grid>
|
|
576
|
+
<Grid item xs={6}>
|
|
577
|
+
절반 너비 (6/12)
|
|
578
|
+
</Grid>
|
|
579
|
+
<Grid item xs={4}>
|
|
580
|
+
3분의 1 너비 (4/12)
|
|
581
|
+
</Grid>
|
|
582
|
+
<Grid item xs={4}>
|
|
583
|
+
3분의 1 너비 (4/12)
|
|
584
|
+
</Grid>
|
|
585
|
+
<Grid item xs={4}>
|
|
586
|
+
3분의 1 너비 (4/12)
|
|
587
|
+
</Grid>
|
|
504
588
|
</Grid>
|
|
505
589
|
```
|
|
506
590
|
|
|
@@ -648,7 +732,9 @@ You can let items size and position automatically without explicitly defining th
|
|
|
648
732
|
</Grid>
|
|
649
733
|
|
|
650
734
|
<Grid item xs={12}>
|
|
651
|
-
<Button type="submit" fullWidth>
|
|
735
|
+
<Button type="submit" fullWidth>
|
|
736
|
+
Submit
|
|
737
|
+
</Button>
|
|
652
738
|
</Grid>
|
|
653
739
|
</Grid>
|
|
654
740
|
```
|