Skip to content

Commit aab0de9

Browse files
committed
fix: format
1 parent 4759c10 commit aab0de9

File tree

19 files changed

+30
-44
lines changed

19 files changed

+30
-44
lines changed

www/src/app/(app)/docs/[...slug]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default async function Page({ params }: PageProps) {
3636
page.data.toc && page.data.toc.length > 0,
3737
})}
3838
>
39-
<div className="container max-w-(--breakpoint-md)">
39+
<div className="max-w-(--breakpoint-md) container">
4040
<Breadcrumbs tree={source.pageTree} className="mb-2" />
4141
<h1 className="text-4xl font-bold">{page.data.title}</h1>
4242
<p className="text-fg-muted mt-2">{page.data.description}</p>

www/src/app/(app)/themes/components/explore-themes.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const ExploreThemesDialog = ({
1717
return (
1818
<DialogRoot>
1919
{children}
20-
<Dialog type="drawer" className="container max-w-(--breakpoint-xl) py-8!">
20+
<Dialog type="drawer" className="max-w-(--breakpoint-xl) py-8! container">
2121
{({ close }) => (
2222
<>
2323
<h2 className="text-lg font-bold">Themes</h2>

www/src/app/(app)/themes/components/theme-select.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ const AutoResizeInput = React.forwardRef<HTMLInputElement, InputProps>(
308308
ref={mergeRefs(inputRef, forwardedRef)}
309309
onChange={chain(onChange, setInputValue)}
310310
className={cn(
311-
"border-fg min-w-[10px] focus:border-b focus:outline-hidden",
311+
"border-fg focus:outline-hidden min-w-[10px] focus:border-b",
312312
className
313313
)}
314314
{...props}

www/src/app/(preview)/preview/(marketing)/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function MarketingLayout({
77
children: React.ReactNode;
88
}) {
99
return (
10-
<div className="container max-w-(--breakpoint-lg)">
10+
<div className="max-w-(--breakpoint-lg) container">
1111
<Header />
1212
<main className="mt-16">{children}</main>
1313
<Footer />

www/src/components/mdx/code-block.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const CodeBlock = forwardRef<HTMLElement, CodeBlockProps>(
100100
) : (
101101
allowCopy && (
102102
<CopyButton
103-
className="absolute right-2 top-2 z-2 backdrop-blur-sm"
103+
className="z-2 absolute right-2 top-2 backdrop-blur-sm"
104104
onCopy={onCopy}
105105
/>
106106
)

www/src/components/mdx/mdx-components.tsx

+4-17
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ export const mdxComponents: MDXComponents = {
4141
>,
4242
p: ({ className, ...props }) => (
4343
<p
44-
className={cn(
45-
"text-base leading-7 not-first:mt-4",
46-
className
47-
)}
44+
className={cn("not-first:mt-4 text-base leading-7", className)}
4845
{...props}
4946
/>
5047
),
@@ -59,10 +56,7 @@ export const mdxComponents: MDXComponents = {
5956
),
6057
blockquote: ({ className, ...props }) => (
6158
<blockquote
62-
className={cn(
63-
"*:text-fg-muted mt-6 border-l-2 pl-6 italic",
64-
className
65-
)}
59+
className={cn("*:text-fg-muted mt-6 border-l-2 pl-6 italic", className)}
6660
{...props}
6761
/>
6862
),
@@ -134,17 +128,10 @@ export const mdxComponents: MDXComponents = {
134128
InstallTab,
135129
InstallTabs,
136130
ComponentSource: ({ name, ...rest }: { name: string }) => (
137-
<ComponentSource
138-
name={name}
139-
className="w-full not-first:mt-4"
140-
{...rest}
141-
/>
131+
<ComponentSource name={name} className="not-first:mt-4 w-full" {...rest} />
142132
),
143133
ComponentPreview: (props: ComponentPreviewProps) => (
144-
<ComponentPreview
145-
containerClassName="not-first:mt-4"
146-
{...props}
147-
/>
134+
<ComponentPreview containerClassName="not-first:mt-4" {...props} />
148135
),
149136
Step: ({ className, ...props }: React.ComponentProps<"h3">) => (
150137
<h3

www/src/components/mobile-nav.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { ThemeSwitcher } from "./theme-switcher";
1515
export const MobileNav = ({ items }: { items: PageTree.Node[] }) => {
1616
return (
1717
<header className="bg-bg sticky top-0 z-50 block border-b backdrop-blur-md sm:hidden">
18-
<div className="container flex h-14 w-full max-w-(--breakpoint-2xl) items-center justify-between">
18+
<div className="max-w-(--breakpoint-2xl) container flex h-14 w-full items-center justify-between">
1919
<DialogRoot>
2020
<Button variant="quiet" size="sm" shape="square">
2121
<AlignLeftIcon />
@@ -24,7 +24,7 @@ export const MobileNav = ({ items }: { items: PageTree.Node[] }) => {
2424
type="drawer"
2525
placement="left"
2626
swipeIndicator={false}
27-
className="w-60 p-0!"
27+
className="p-0! w-60"
2828
>
2929
{({ close }) => (
3030
<div className="flex h-screen flex-col">

www/src/components/sidebar.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ const SidebarRoot = ({
156156
>
157157
<div
158158
className={cn(
159-
"transition-sidebar group-data-collapsed/sidebar:w-(--sidebar-width-collapsed) relative z-10 h-svh w-(--sidebar-width) bg-transparent"
159+
"transition-sidebar group-data-collapsed/sidebar:w-(--sidebar-width-collapsed) w-(--sidebar-width) relative z-10 h-svh bg-transparent"
160160
)}
161161
/>
162-
<div className="transition-sidebar bg-bg group-data-collapsed/sidebar:w-(--sidebar-width-collapsed) [&_svg]:text-fg-muted fixed inset-y-0 left-0 z-10 flex h-svh w-(--sidebar-width) flex-col overflow-hidden border-r [&_button]:font-normal">
163-
<div className="relative flex h-svh w-(--sidebar-width) flex-1 translate-x-[-0.5px] flex-col overflow-hidden">
162+
<div className="transition-sidebar bg-bg group-data-collapsed/sidebar:w-(--sidebar-width-collapsed) [&_svg]:text-fg-muted w-(--sidebar-width) fixed inset-y-0 left-0 z-10 flex h-svh flex-col overflow-hidden border-r [&_button]:font-normal">
163+
<div className="w-(--sidebar-width) relative flex h-svh flex-1 translate-x-[-0.5px] flex-col overflow-hidden">
164164
{children}
165165
</div>
166166
</div>

www/src/registry/ui/default/core/command/command.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const CommandInput = React.forwardRef<
3939
<CommandPrimitive.Input
4040
ref={ref}
4141
className={cn(
42-
"placeholder:text-fg-muted flex h-11 w-full rounded-md bg-transparent py-3 text-base outline-hidden disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",
42+
"placeholder:text-fg-muted outline-hidden flex h-11 w-full rounded-md bg-transparent py-3 text-base disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",
4343
className
4444
)}
4545
{...props}
@@ -125,7 +125,7 @@ const CommandItem = React.forwardRef<
125125
<CommandPrimitive.Item
126126
ref={ref}
127127
className={cn(
128-
"aria-selected:bg-bg-muted aria-selected:text-fg relative flex h-10 cursor-pointer select-none items-center rounded-sm px-2 text-sm outline-hidden transition-colors",
128+
"aria-selected:bg-bg-muted aria-selected:text-fg outline-hidden relative flex h-10 cursor-pointer select-none items-center rounded-sm px-2 text-sm transition-colors",
129129
className
130130
)}
131131
{...props}

www/src/registry/ui/default/core/date-input/date-input.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const dateInputStyles = tv({
1515
"text-fg placeholder:text-fg-muted disabled:text-fg-disabled flex items-center justify-start disabled:cursor-default",
1616
],
1717
segment:
18-
"focus:bg-bg-accent focus:text-fg-onAccent type-literal:px-0 placeholder-shown:[&:not([data-disabled])]:[&:not([data-focused])]:text-fg-muted disabled:text-fg-disabled select-none rounded px-0.5 outline-hidden focus:caret-transparent",
18+
"focus:bg-bg-accent focus:text-fg-onAccent type-literal:px-0 placeholder-shown:[&:not([data-disabled])]:[&:not([data-focused])]:text-fg-muted disabled:text-fg-disabled outline-hidden select-none rounded px-0.5 focus:caret-transparent",
1919
},
2020
});
2121

www/src/registry/ui/default/core/dialog/dialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Text } from "@/registry/ui/default/core/text";
2020
const dialogStyles = tv({
2121
slots: {
2222
content: [
23-
"relative flex max-w-full flex-col rounded-[inherit] p-4 outline-hidden",
23+
"outline-hidden relative flex max-w-full flex-col rounded-[inherit] p-4",
2424
"group-data-[type=modal]/overlay:p-6",
2525
"group-data-[type=drawer]/overlay:pt-0",
2626
],

www/src/registry/ui/default/core/input/input.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ const inputStyles = tv({
2424
slots: {
2525
root: [
2626
focusInput(),
27-
"border-border-field bg-bg text-fg-muted inline-flex w-full cursor-text items-center justify-start gap-2 rounded-md border px-2 text-base shadow-xs transition-colors sm:text-sm [&_svg]:size-4",
27+
"border-border-field bg-bg text-fg-muted shadow-xs inline-flex w-full cursor-text items-center justify-start gap-2 rounded-md border px-2 text-base transition-colors sm:text-sm [&_svg]:size-4",
2828
"disabled:border-border-disabled disabled:bg-bg-disabled disabled:text-fg-disabled disabled:cursor-default",
2929
"invalid:border-border-danger focus-within:invalid:border-border",
3030
],
3131
input: [
32-
"text-fg placeholder:text-fg-muted disabled:text-fg-disabled h-full w-full bg-transparent outline-hidden disabled:cursor-default",
32+
"text-fg placeholder:text-fg-muted disabled:text-fg-disabled outline-hidden h-full w-full bg-transparent disabled:cursor-default",
3333
],
3434
},
3535
variants: {

www/src/registry/ui/default/core/list-box/list-box.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { CheckIcon, LoaderIcon } from "@/__icons__";
1818
const listBoxStyles = tv({
1919
base: [
2020
focusRing(),
21-
"orientation-horizontal:flex-row orientation-horizontal:w-auto layout-grid:grid layout-grid:grid-cols-2 layout-grid:w-auto empty:text-fg-muted flex flex-col overflow-auto p-1 outline-hidden empty:min-h-24 empty:items-center empty:justify-center empty:text-sm empty:italic",
21+
"orientation-horizontal:flex-row orientation-horizontal:w-auto layout-grid:grid layout-grid:grid-cols-2 layout-grid:w-auto empty:text-fg-muted outline-hidden flex flex-col overflow-auto p-1 empty:min-h-24 empty:items-center empty:justify-center empty:text-sm empty:italic",
2222
"[&_.separator]:-mx-1 [&_.separator]:my-1 [&_.separator]:w-auto",
2323
],
2424
variants: {
@@ -31,7 +31,7 @@ const listBoxStyles = tv({
3131

3232
const listBoxItemStyles = tv({
3333
base: [
34-
"disabled:pointer-default hover:bg-bg-inverse/10 focus:bg-bg-inverse/10 pressed:bg-bg-inverse/15 disabled:text-fg-disabled flex cursor-pointer items-center rounded-sm px-3 py-1.5 text-sm outline-hidden transition-colors disabled:cursor-default",
34+
"disabled:pointer-default hover:bg-bg-inverse/10 focus:bg-bg-inverse/10 pressed:bg-bg-inverse/15 disabled:text-fg-disabled outline-hidden flex cursor-pointer items-center rounded-sm px-3 py-1.5 text-sm transition-colors disabled:cursor-default",
3535
"selection-single:pl-0 selection-multiple:pl-0",
3636
"[&_svg]:size-4",
3737
],

www/src/registry/ui/default/core/menu/menu.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ import { CheckIcon, ChevronRightIcon } from "@/__icons__";
1919

2020
const menuStyles = tv({
2121
base: [
22-
"max-h[inherit] rounded-[inherit] p-1 outline-hidden",
22+
"max-h[inherit] outline-hidden rounded-[inherit] p-1",
2323
"group-data-[type=drawer]/overlay:p-2",
2424
"[&_.separator]:-mx-1 [&_.separator]:my-1 [&_.separator]:w-auto",
2525
],
2626
});
2727

2828
const menuItemStyles = tv({
2929
base: [
30-
"focus:bg-bg-inverse/10 disabled:text-fg-disabled flex cursor-pointer items-center gap-2 rounded-sm px-3 py-1.5 text-sm outline-hidden transition-colors disabled:pointer-events-none",
30+
"focus:bg-bg-inverse/10 disabled:text-fg-disabled outline-hidden flex cursor-pointer items-center gap-2 rounded-sm px-3 py-1.5 text-sm transition-colors disabled:pointer-events-none",
3131
"selection-single:pl-0 selection-multiple:pl-0",
3232
"group-data-[type=drawer]/overlay:text-md group-data-[type=drawer]/overlay:py-3",
3333
"group-data-[type=modal]/overlay:text-md group-data-[type=modal]/overlay:py-2",

www/src/registry/ui/default/core/overlay/overlay.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Overlay.displayName = "Overlay";
8181
const modalVariants = tv({
8282
slots: {
8383
backdrop: [
84-
"fixed left-0 top-0 z-50 flex h-(--visual-viewport-height) w-[100vw] items-center justify-center bg-black/40 backdrop-blur-sm",
84+
"h-(--visual-viewport-height) fixed left-0 top-0 z-50 flex w-[100vw] items-center justify-center bg-black/40 backdrop-blur-sm",
8585
"entering:animate-in entering:fade-in-0 entering:zoom-in-95 exiting:animate-out exiting:fade-out-0 exiting:zoom-out-95 entering:duration-200 exiting:duration-150",
8686
],
8787
overlay: [
@@ -139,7 +139,7 @@ ModalOverlay.displayName = "ModalOverlay";
139139
const popoverOverlayVariants = tv({
140140
slots: {
141141
overlay:
142-
"group/overlay bg-bg text-fg z-50 rounded-md border shadow-md data-[trigger=ComboBox]:min-w-(--trigger-width) data-[trigger=Select]:min-w-(--trigger-width)",
142+
"group/overlay bg-bg text-fg data-[trigger=ComboBox]:min-w-(--trigger-width) data-[trigger=Select]:min-w-(--trigger-width) z-50 rounded-md border shadow-md",
143143
arrow: [
144144
"fill-bg stroke-border block stroke-1",
145145
"group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180",
@@ -202,7 +202,7 @@ const drawerVariants = tv({
202202
slots: {
203203
backdrop: ["fixed inset-0 z-50 bg-black/60 backdrop-blur-sm", "opacity-0"],
204204
overlay: [
205-
"group/overlay bg-bg fixed z-50 flex flex-col outline-hidden",
205+
"group/overlay bg-bg outline-hidden fixed z-50 flex flex-col",
206206
"inset-0",
207207
"placement-bottom:top-auto placement-top:bottom-auto placement-left:right-auto placement-right:left-auto",
208208
"placement-bottom:mt-24 placement-bottom:rounded-t-[10px] placement-bottom:border-t",

www/src/registry/ui/default/core/scroll-area/scroll-area.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { type VariantProps, tv } from "tailwind-variants";
77
const scrollAreaStyles = tv({
88
slots: {
99
root: "flex h-full w-full flex-col overflow-hidden",
10-
viewport: "flex h-full w-full flex-col *:block! *:w-fit *:grow",
10+
viewport: "*:block! flex h-full w-full flex-col *:w-fit *:grow",
1111
scrollbar:
1212
"my-0 flex touch-none select-none flex-col rounded-full bg-gray-800 data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col", // TODO: remove my-0, it was my-1
1313
thumb:

www/src/registry/ui/default/core/slider/slider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const sliderStyles = tv({
3838
thumb: [
3939
focusRing(),
4040
"rounded-full bg-white shadow-md transition-[width,height]",
41-
"absolute left-[50%] top-[50%] block -translate-x-1/2! -translate-y-1/2!",
41+
"-translate-x-1/2! -translate-y-1/2! absolute left-[50%] top-[50%] block",
4242
"disabled:bg-bg-disabled disabled:border-bg disabled:border",
4343
],
4444
valueLabel: "text-fg-muted text-sm",

www/src/registry/ui/default/core/tabs/tabs.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const tabsStyles = tv({
2020
root: "orientation-vertical:flex-row flex flex-col",
2121
list: "orientation-horizontal:overflow-x-auto orientation-horizontal:whitespace-nowrap orientation-horizontal:items-center orientation-horizontal:border-b orientation-vertical:flex-col orientation-vertical:border-r orientation-horizontal:[&_[role=tab]]:border-b-[3px] orientation-vertical:[&_[role=tab]]:border-r-[3px] flex",
2222
tab: [
23-
"text-fg-muted selected:border-border-focus selected:text-fg disabled:text-fg-disabled disabled:selected:border-border-disabled -mb-px cursor-pointer border-transparent px-2 py-2 text-center text-sm font-medium outline-hidden transition-colors disabled:cursor-default",
23+
"text-fg-muted selected:border-border-focus selected:text-fg disabled:text-fg-disabled disabled:selected:border-border-disabled outline-hidden -mb-px cursor-pointer border-transparent px-2 py-2 text-center text-sm font-medium transition-colors disabled:cursor-default",
2424
"focus-visible:[&>span]:border-border-focus [&>span]:rounded-md [&>span]:border-2 [&>span]:border-transparent [&>span]:px-1.5 [&>span]:py-1",
2525
],
2626
panel: [focusRing(), "rounded"],

www/tailwind.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { Config } from "tailwindcss";
2-
import defaultTheme from "tailwindcss/defaultTheme";
32

43
const config = {
54
content: ["src/**/*.{ts,tsx}", "content/**/*.{ts,tsx,mdx}"],

0 commit comments

Comments
 (0)