Skip to content

Commit

Permalink
chore: merge foxgis branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jingsam committed Sep 1, 2024
2 parents bd3b846 + 2a6792c commit b1e29dd
Show file tree
Hide file tree
Showing 474 changed files with 1,044 additions and 2,325 deletions.
55 changes: 0 additions & 55 deletions apps/design-system/__registry__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1303,61 +1303,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: []
},
"toast-demo": {
name: "toast-demo",
type: "components:example",
registryDependencies: ["toast"],
component: React.lazy(() => import("@/registry/default/example/toast-demo")),
source: "",
files: ["registry/default/example/toast-demo.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"toast-destructive": {
name: "toast-destructive",
type: "components:example",
registryDependencies: ["toast"],
component: React.lazy(() => import("@/registry/default/example/toast-destructive")),
source: "",
files: ["registry/default/example/toast-destructive.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"toast-simple": {
name: "toast-simple",
type: "components:example",
registryDependencies: ["toast"],
component: React.lazy(() => import("@/registry/default/example/toast-simple")),
source: "",
files: ["registry/default/example/toast-simple.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"toast-with-action": {
name: "toast-with-action",
type: "components:example",
registryDependencies: ["toast"],
component: React.lazy(() => import("@/registry/default/example/toast-with-action")),
source: "",
files: ["registry/default/example/toast-with-action.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"toast-with-title": {
name: "toast-with-title",
type: "components:example",
registryDependencies: ["toast"],
component: React.lazy(() => import("@/registry/default/example/toast-with-title")),
source: "",
files: ["registry/default/example/toast-with-title.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"toggle-group-demo": {
name: "toggle-group-demo",
type: "components:example",
Expand Down
2 changes: 0 additions & 2 deletions apps/design-system/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import '@/styles/globals.css'
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import { ThemeProvider } from './Providers'
import { Toaster } from 'ui'
import { SonnerToaster } from './SonnerToast'

const inter = Inter({ subsets: ['latin'] })
Expand All @@ -29,7 +28,6 @@ export default async function Layout({ children }: RootLayoutProps) {
<div vaul-drawer-wrapper="">
<div className="relative flex min-h-screen flex-col bg-background">{children}</div>
</div>
<Toaster />
<SonnerToaster />
</ThemeProvider>
</body>
Expand Down
155 changes: 0 additions & 155 deletions apps/design-system/content/docs/components/toast.mdx

This file was deleted.

13 changes: 7 additions & 6 deletions apps/design-system/registry/default/example/calendar-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@ import { zodResolver } from '@hookform/resolvers/zod'
import { format } from 'date-fns'
import { CalendarIcon } from 'lucide-react'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
import { z } from 'zod'

import { cn } from '@/lib/utils'
import { Button } from 'ui'
import { Calendar } from 'ui'
import {
Button,
Calendar,
Form_Shadcn_,
FormControl_Shadcn_,
FormDescription_Shadcn_,
FormField_Shadcn_,
FormItem_Shadcn_,
FormLabel_Shadcn_,
FormMessage_Shadcn_,
Popover_Shadcn_,
PopoverContent_Shadcn_,
PopoverTrigger_Shadcn_,
} from 'ui'
import { Popover_Shadcn_, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_ } from 'ui'
import { toast } from 'ui'

const FormSchema = z.object({
dob: z.date({
Expand All @@ -33,8 +35,7 @@ export default function CalendarForm() {
})

function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: 'You submitted the following values:',
toast('You submitted the following values:', {
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@ import { zodResolver } from '@hookform/resolvers/zod'
import { format } from 'date-fns'
import { CalendarIcon } from 'lucide-react'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
import { z } from 'zod'

import { cn } from '@/lib/utils'
import { Button } from 'ui'
import { Calendar } from 'ui'
import {
Button,
Calendar,
Form_Shadcn_,
FormControl_Shadcn_,
FormDescription_Shadcn_,
FormField_Shadcn_,
FormItem_Shadcn_,
FormLabel_Shadcn_,
FormMessage_Shadcn_,
Popover_Shadcn_,
PopoverContent_Shadcn_,
PopoverTrigger_Shadcn_,
} from 'ui'
import { Popover_Shadcn_, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_ } from 'ui'
import { toast } from 'ui'

const FormSchema = z.object({
dob: z.date({
Expand All @@ -33,8 +35,7 @@ export default function CalendarForm() {
})

function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: 'You submitted the following values:',
toast('You submitted the following values:', {
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import { zodResolver } from '@hookform/resolvers/zod'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
import { z } from 'zod'

import { Button } from 'ui'
import { Checkbox_Shadcn_ } from 'ui'
import {
Button,
Checkbox_Shadcn_,
Form_Shadcn_,
FormControl_Shadcn_,
FormDescription_Shadcn_,
Expand All @@ -15,7 +16,6 @@ import {
FormLabel_Shadcn_,
FormMessage_Shadcn_,
} from 'ui'
import { toast } from 'ui'

const items = [
{
Expand Down Expand Up @@ -59,8 +59,7 @@ export default function CheckboxReactHookFormMultiple() {
})

function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: 'You submitted the following values:',
toast('You submitted the following values:', {
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
'use client'

import Link from 'next/link'
import { zodResolver } from '@hookform/resolvers/zod'
import Link from 'next/link'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
import { z } from 'zod'

import { Button } from 'ui'
import { Checkbox_Shadcn_ } from 'ui'
import {
Button,
Checkbox_Shadcn_,
Form_Shadcn_,
FormControl_Shadcn_,
FormDescription_Shadcn_,
FormField_Shadcn_,
FormItem_Shadcn_,
FormLabel_Shadcn_,
FormMessage_Shadcn_,
} from 'ui'
import { toast } from 'ui'

const FormSchema = z.object({
mobile: z.boolean().default(false).optional(),
Expand All @@ -31,8 +30,7 @@ export default function CheckboxReactHookFormSingle() {
})

function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: 'You submitted the following values:',
toast('You submitted the following values:', {
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
Expand Down
Loading

0 comments on commit b1e29dd

Please sign in to comment.