Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/design-system/.env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copy this file in the same folder, rename it to .env.local and fill out the env vars
NEXT_PUBLIC_BASE_PATH=/design-system
5 changes: 0 additions & 5 deletions apps/design-system/config/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,6 @@ export const docsConfig: DocsConfig = {
href: '/docs/components/textarea',
items: [],
},
{
title: 'Toast',
href: '/docs/components/toast',
items: [],
},
{
title: 'Toggle',
href: '/docs/components/toggle',
Expand Down
4 changes: 2 additions & 2 deletions apps/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "next dev --turbopack --port 3003",
"build": "pnpm run content:build && pnpm run build:registry && pnpm run build:llms && next build",
"build": "pnpm run content:build && pnpm run build:registry && next build",
"build:registry": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts && prettier --log-level silent --write \"registry/**/*.{ts,tsx,mdx}\" --cache",
"build:llms": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-llms-txt.ts",
"start": "next start",
"lint": "next lint",
"content:build": "contentlayer2 build",
Expand All @@ -18,6 +17,7 @@
"dependencies": {
"@hookform/resolvers": "^3.1.1",
"contentlayer2": "0.4.6",
"date-fns": "^2.30.0",
"eslint-config-supabase": "workspace:*",
"icons": "workspace:*",
"jotai": "^2.8.0",
Expand Down
158 changes: 0 additions & 158 deletions apps/design-system/public/llms.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Component() {
fill="none"
className="absolute left-[5px] top-[50px] z-10"
>
<g clip-path="url(#a)">
<g clipPath="url(#a)">
<path
fill="currentColor"
d="M173.928 21.13C115.811 44.938 58.751 45.773 0 26.141c4.227-4.386 7.82-2.715 10.567-1.88 21.133 5.64 42.9 6.266 64.457 7.101 31.066 1.253 60.441-5.848 89.183-17.335 1.268-.418 2.325-1.253 4.861-2.924-14.582-2.924-29.165 2.089-41.845-3.76.212-.835.212-1.879.423-2.714 9.51-.627 19.231-1.253 28.742-2.089 9.51-.835 18.808-1.88 28.318-2.506 6.974-.418 9.933 2.924 7.397 9.19-3.17 8.145-7.608 15.664-11.623 23.391-.423.836-1.057 1.88-1.902 2.298-2.325.835-4.65 1.044-7.186 1.67-.422-2.088-1.479-4.386-1.268-6.265.423-2.506 1.902-4.595 3.804-9.19Z"
Expand Down Expand Up @@ -48,7 +48,7 @@ export default function Component() {
viewBox="0 0 122 148"
className="absolute left-[85px] top-[10px] z-10 -scale-x-100"
>
<g clip-path="url(#ab)">
<g clipPath="url(#ab)">
<path
fill="currentColor"
d="M0 2.65c6.15-4.024 12.299-2.753 17.812-.847a115.56 115.56 0 0 1 21.84 10.59C70.4 32.727 88.849 61.744 96.483 97.54c1.908 9.108 2.544 18.639 3.817 29.017 8.481-4.871 12.934-14.402 21.416-19.909 1.061 4.236-1.06 6.989-2.756 9.319-6.998 9.531-14.207 19.062-21.63 28.382-3.604 4.448-6.36 4.871-10.177 1.059-8.058-7.837-12.935-17.368-14.42-28.382 0-.424.636-1.059 1.485-2.118 9.118 2.33 6.997 13.979 14.843 18.215 3.393-14.614.848-28.593-2.969-42.149-4.029-14.19-9.33-27.746-17.812-39.82-8.27-11.86-18.66-21.392-30.11-30.287C26.93 11.758 14.207 6.039 0 2.65Z"
Expand Down Expand Up @@ -96,7 +96,7 @@ export default function Component() {
viewBox="0 0 75 175"
className="absolute left-[30px] top-[38px] z-10 rotate-[-40deg]"
>
<g clip-path="url(#abc)">
<g clipPath="url(#abc)">
<path
fill="currentColor"
d="M20.187 175c-4.439-2.109-7.186-2.531-8.032-4.008-3.17-5.484-6.763-10.968-8.454-17.084-5.073-16.242-4.439-32.694-1.057-49.146 5.707-28.053 18.388-52.942 34.24-76.565 1.692-2.531 3.171-5.063 4.862-7.805 0-.21-.211-.632-.634-1.265-4.65 1.265-9.511 2.53-14.161 3.585-2.537.422-5.496.422-8.032-.421-1.48-.422-3.593-2.742-3.593-4.219 0-1.898 1.48-4.218 2.747-5.906 1.057-1.054 2.96-1.265 4.65-1.687C35.406 7.315 48.088 3.729 60.98.776c10.99-2.53 14.584 1.055 13.95 11.812-.634 11.18-.846 22.358-1.268 33.326-.212 3.375-.846 6.96-1.268 10.757-8.878-4.007-8.878-4.007-12.048-38.177C47.03 33.259 38.153 49.289 29.91 65.741 21.667 82.193 16.17 99.49 13.212 117.84c-2.959 18.984.634 36.912 6.975 57.161Z"
Expand Down
2 changes: 2 additions & 0 deletions apps/design-system/registry/default/example/drawer-demo.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import * as React from 'react'
import { Minus, Plus } from 'lucide-react'
import { Bar, BarChart, ResponsiveContainer } from 'recharts'
Expand Down
2 changes: 2 additions & 0 deletions apps/design-system/registry/default/example/drawer-dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import * as React from 'react'

import { cn } from '@/lib/utils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ export default function NavigationMenuDemo() {
</NavigationMenuContent>
</NavigationMenuItem>
<NavigationMenuItem>
<Link href="/docs" legacyBehavior passHref>
<NavigationMenuLink className={buttonVariants({ type: 'text', size: 'small' })}>
Documentation
</NavigationMenuLink>
</Link>
<NavigationMenuLink
href="/docs"
className={buttonVariants({ type: 'text', size: 'small' })}
>
Documentation
</NavigationMenuLink>
</NavigationMenuItem>
</NavigationMenuList>
</NavigationMenu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,12 @@ export default function NavigationMenuDemo() {
</NavigationMenuContent>
</NavigationMenuItem>
<NavigationMenuItem>
<Link href="/docs" legacyBehavior passHref>
<NavigationMenuLink className={buttonVariants({ type: 'text', size: 'small' })}>
Documentation
</NavigationMenuLink>
</Link>
<NavigationMenuLink
href="/docs"
className={buttonVariants({ type: 'text', size: 'small' })}
>
Documentation
</NavigationMenuLink>
</NavigationMenuItem>
</NavigationMenuList>
<ScrollBar orientation="horizontal" />
Expand Down
11 changes: 4 additions & 7 deletions apps/design-system/registry/default/example/scroll-area-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ const tags = Array.from({ length: 50 }).map((_, i, a) => `v1.2.0-beta.${a.length
export default function ScrollAreaDemo() {
return (
<ScrollArea className="h-72 w-48 rounded-md border">
<div className="p-4">
<div className="p-4 divide-y divide-border">
<h4 className="mb-4 text-sm font-medium leading-none">Tags</h4>
{tags.map((tag) => (
<>
<div key={tag} className="text-sm">
{tag}
</div>
<Separator className="my-2" />
</>
<div key={tag} className="text-sm py-2">
{tag}
</div>
))}
</div>
</ScrollArea>
Expand Down
4 changes: 2 additions & 2 deletions apps/design-system/registry/default/example/sheet-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export default function SheetDemo() {
<Label_Shadcn_ htmlFor="name" className="text-right">
Name
</Label_Shadcn_>
<Input_Shadcn_ id="name" value="Pedro Duarte" className="col-span-3" />
<Input_Shadcn_ id="name" value="Pedro Duarte" className="col-span-3" readOnly />
</div>
<div className="grid grid-cols-4 items-center gap-4">
<Label_Shadcn_ htmlFor="username" className="text-right">
Username
</Label_Shadcn_>
<Input_Shadcn_ id="username" value="@peduarte" className="col-span-3" />
<Input_Shadcn_ id="username" value="@peduarte" className="col-span-3" readOnly />
</div>
</div>
<SheetFooter>
Expand Down
Loading
Loading