Skip to content

Commit 75a38b2

Browse files
committed
fix: format
1 parent ca1e457 commit 75a38b2

File tree

6 files changed

+19
-23
lines changed

6 files changed

+19
-23
lines changed

www/src/components/demos/toggle-button/sizes.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ export default function Demo() {
77
return (
88
<div className="flex items-center gap-4">
99
{sizes.map((size) => (
10-
<ToggleButton
11-
key={size}
12-
size={size}
13-
aria-label="Toggle pin"
14-
>
10+
<ToggleButton key={size} size={size} aria-label="Toggle pin">
1511
<PinIcon className="rotate-45" />
1612
</ToggleButton>
1713
))}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ export const CodeBlock = forwardRef<HTMLElement, CodeBlockProps>(
6767
<figure
6868
ref={ref}
6969
className={cn(
70-
"not-prose fd-codeblock bg-fd-secondary/50 group relative my-6 overflow-hidden rounded-lg border text-sm bg-bg-muted/30",
70+
"not-prose fd-codeblock bg-fd-secondary/50 bg-bg-muted/30 group relative my-6 overflow-hidden rounded-lg border text-sm",
7171
keepBackground &&
72-
"bg-[var(--shiki-light-bg)] dark:bg-[var(--shiki-dark-bg)] ",
72+
"bg-[var(--shiki-light-bg)] dark:bg-[var(--shiki-dark-bg)]",
7373
className
7474
)}
7575
{...props}

www/src/components/docs/install-tabs.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function InstallTab({
112112
<TabsPrimitive.TabPanel
113113
id={toValue(value)}
114114
className={cn(
115-
"mt-0 text-xs [&>figure:only-child]:m-0 [&>figure:only-child]:rounded-none [&>figure:only-child]:border-none overflow-hidden",
115+
"mt-0 overflow-hidden text-xs [&>figure:only-child]:m-0 [&>figure:only-child]:rounded-none [&>figure:only-child]:border-none",
116116
className
117117
)}
118118
{...props}

www/src/components/icons/reactjs-icon.tsx

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ interface IconProps extends Partial<SVGProps<SVGSVGElement>> {}
55
export const ReactJsIcon = ({ height = 50, ...rest }: IconProps) => {
66
return (
77
<svg
8-
xmlns="http://www.w3.org/2000/svg"
9-
fill="none"
10-
viewBox="-10.5 -9.45 21 18.9"
11-
height={height}
8+
xmlns="http://www.w3.org/2000/svg"
9+
fill="none"
10+
viewBox="-10.5 -9.45 21 18.9"
11+
height={height}
1212
{...rest}
13-
>
14-
<circle r={2} fill="#58c4dc" />
15-
<g stroke="#58c4dc">
16-
<ellipse rx={10} ry={4.5} />
17-
<ellipse rx={10} ry={4.5} transform="rotate(60)" />
18-
<ellipse rx={10} ry={4.5} transform="rotate(120)" />
19-
</g>
20-
</svg>
13+
>
14+
<circle r={2} fill="#58c4dc" />
15+
<g stroke="#58c4dc">
16+
<ellipse rx={10} ry={4.5} />
17+
<ellipse rx={10} ry={4.5} transform="rotate(60)" />
18+
<ellipse rx={10} ry={4.5} transform="rotate(120)" />
19+
</g>
20+
</svg>
2121
);
2222
};

www/src/modules/demos/components/components-overview.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export function ComponentsOverview({ className }: { className?: string }) {
115115
<TimeField aria-label="Event time" />
116116
<DatePicker className="" />
117117
</div>
118-
<div className="col-span-5 flex flex-col gap-4 md:col-span-4 lg:col-span-3 md:row-span-6 lg:row-span-8">
119-
<Alert title="Payment Information" className="md:flex hidden">
118+
<div className="col-span-5 flex flex-col gap-4 md:col-span-4 md:row-span-6 lg:col-span-3 lg:row-span-8">
119+
<Alert title="Payment Information" className="hidden md:flex">
120120
Enter your payment method to complete your purchase.
121121
</Alert>
122122
<Tabs>

www/src/registry/core/toggle-button_basic.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { focusRing } from "@/registry/lib/focus-styles";
1212

1313
const toggleButtonStyles = tv({
1414
extend: focusRing,
15-
base: "disabled:bg-bg-disabled shrink-0 disabled:text-fg-disabled inline-flex cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium leading-normal transition-colors disabled:cursor-default",
15+
base: "disabled:bg-bg-disabled disabled:text-fg-disabled inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium leading-normal transition-colors disabled:cursor-default",
1616
variants: {
1717
variant: {
1818
quiet:

0 commit comments

Comments
 (0)