@@ -44,9 +44,7 @@ export function ComponentsOverview({ className }: { className?: string }) {
44
44
const { variants } = useLocalVariants ( ) ;
45
45
const globalVariant = variants . global ;
46
46
return (
47
- < div
48
- className = { cn ( "grid grid-cols-10 gap-8 p-4 sm:p-8" , className ) }
49
- >
47
+ < div className = { cn ( "grid grid-cols-10 gap-8 p-4 sm:p-8" , className ) } >
50
48
< div className = "col-span-10 xl:col-span-6" >
51
49
< Slider
52
50
label = "Progress"
@@ -66,7 +64,7 @@ export function ComponentsOverview({ className }: { className?: string }) {
66
64
fallback = "M"
67
65
/>
68
66
</ div >
69
- < div className = "col-span-4 lg:col -span-2 row -span-2" >
67
+ < div className = "col-span-4 row -span-2 lg:col -span-2" >
70
68
< RadioGroup >
71
69
< Radio value = "email" > Email</ Radio >
72
70
< Radio value = "phone" > Phone (SMS)</ Radio >
@@ -76,7 +74,7 @@ export function ComponentsOverview({ className }: { className?: string }) {
76
74
< Radio value = "none" > None</ Radio >
77
75
</ RadioGroup >
78
76
</ div >
79
- < div className = "col-span-6 lg:col-span-8 row-span-2 flex flex-col items-end justify-between gap-2 lg:row-span-1 lg:flex-row lg:items-center xl:col-span-5 xl:justify-start" >
77
+ < div className = "col-span-6 row-span-2 flex flex-col items-end justify-between gap-2 lg:col-span-8 lg:row-span-1 lg:flex-row lg:items-center xl:col-span-5 xl:justify-start" >
80
78
< div className = "flex items-center gap-2" >
81
79
< Button variant = { globalVariant } > Button</ Button >
82
80
< ToggleButton aria-label = "pin" variant = { globalVariant } >
@@ -111,7 +109,7 @@ export function ComponentsOverview({ className }: { className?: string }) {
111
109
/>
112
110
</ div >
113
111
</ div >
114
- < div className = "col-span-10 lg:col-span-8 flex items-center justify-end gap-2 xl:col-span-3" >
112
+ < div className = "col-span-10 flex items-center justify-end gap-2 lg:col-span-8 xl:col-span-3" >
115
113
< FileTriggerDemo />
116
114
< ColorPicker defaultValue = "#5100FF" />
117
115
< TimeField aria-label = "Event time" />
@@ -175,14 +173,83 @@ export const MobileComponentsOverview = ({
175
173
} : {
176
174
className ?: string ;
177
175
} ) => {
176
+ const { variants } = useLocalVariants ( ) ;
177
+ const globalVariant = variants . global ;
178
178
return (
179
- < div className = { cn ( "space-y-4 p-4" , className ) } >
180
- < Slider
181
- label = "Progress"
182
- showValueLabel
183
- defaultValue = { 50 }
184
- className = "w-full"
185
- />
179
+ < div className = { cn ( "grid grid-cols-10 gap-4 p-4" , className ) } >
180
+ < div className = "col-span-10" >
181
+ < Slider
182
+ label = "Progress"
183
+ showValueLabel
184
+ defaultValue = { 50 }
185
+ variant = { globalVariant }
186
+ className = "!w-full"
187
+ />
188
+ </ div >
189
+ < div className = "min-[35rem]:col-span-3 col-span-10 row-span-2 flex justify-between" >
190
+ < RadioGroup >
191
+ < Radio value = "email" > Email</ Radio >
192
+ < Radio value = "phone" > Phone (SMS)</ Radio >
193
+ < Radio value = "notification" >
194
+ < span className = "truncate" > Push notification</ span >
195
+ </ Radio >
196
+ < Radio value = "none" > None</ Radio >
197
+ </ RadioGroup >
198
+ < div className = "min-[35rem]:hidden flex flex-col items-end gap-2" >
199
+ < Avatar
200
+ src = "https://github.com/mehdibha.png"
201
+ alt = "@mehdibha"
202
+ fallback = "M"
203
+ />
204
+ < Switch >
205
+ < span className = "truncate" > Focus mode</ span >
206
+ </ Switch >
207
+ </ div >
208
+ </ div >
209
+ < div className = "min-[35rem]:col-span-7 col-span-10 flex flex-wrap items-center justify-end gap-2" >
210
+ < Button variant = { globalVariant } > Button</ Button >
211
+ < ToggleButton aria-label = "pin" variant = { globalVariant } >
212
+ < PinIcon />
213
+ </ ToggleButton >
214
+ < span className = "flex-1" />
215
+ < MenuRoot >
216
+ < Button shape = "square" >
217
+ < MenuIcon />
218
+ </ Button >
219
+ < Menu >
220
+ < MenuItem > Account settings</ MenuItem >
221
+ < MenuItem > Create team</ MenuItem >
222
+ < MenuItem > Command menu</ MenuItem >
223
+ < MenuItem > Log out</ MenuItem >
224
+ </ Menu >
225
+ </ MenuRoot >
226
+ < Select className = "xs:flex-auto flex-1" >
227
+ < SelectItem > Perplexity</ SelectItem >
228
+ < SelectItem > Replicate</ SelectItem >
229
+ < SelectItem > Together AI</ SelectItem >
230
+ < SelectItem > ElevenLabs</ SelectItem >
231
+ </ Select >
232
+ </ div >
233
+ < div className = "min-[35rem]:flex col-span-7 hidden items-center justify-end gap-2" >
234
+ < Avatar
235
+ src = "https://github.com/mehdibha.png"
236
+ alt = "@mehdibha"
237
+ fallback = "M"
238
+ />
239
+ < Switch >
240
+ < span className = "truncate" > Focus mode</ span >
241
+ </ Switch >
242
+ </ div >
243
+ < div className = "col-span-10" >
244
+ < DatePicker className = "w-full" />
245
+ </ div >
246
+ < div className = "col-span-10 flex items-center gap-2 flex-wrap" >
247
+ < FileTriggerDemo />
248
+ < ColorPicker defaultValue = "#5100FF" className = "flex-1" />
249
+ < TimeField aria-label = "Event time" className = "flex-1" />
250
+ </ div >
251
+ { /* <div className="col-span-5 flex justify-end">
252
+ </div> */ }
186
253
{ /* TODO */ }
187
254
</ div >
188
255
) ;
0 commit comments