Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiesen243 committed Jan 14, 2025
1 parent 4a6f6e7 commit aefccab
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
21 changes: 17 additions & 4 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,23 @@
"license": "MIT",
"type": "module",
"exports": {
"./utils": "./src/utils.ts",
"./*": "./src/components/*.tsx",
"./hooks/*": "./src/hooks/*.ts",
"./tailwind.css": "./src/tailwind.css"
"./utils": {
"types": "./dist/src/utils.d.ts",
"default": "./src/utils.ts"
},
"./*": {
"types": "./dist/src/components/*.d.ts",
"default": "./src/components/*.tsx"
},
"./hooks/*": {
"types": "./dist/src/hooks/*.d.ts",
"default": [
"./src/hooks/*.ts",
"./src/hooks/*.tsx"
]
},
"./tailwind.css": "./src/tailwind.css",
"./components/*": "./src/components/*.tsx"
},
"scripts": {
"build": "tsc",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import {
TriangleAlertIcon,
} from 'lucide-react'

import { useToast } from '@yuki/ui/hooks/use-toast'
import {
Toast,
ToastClose,
ToastDescription,
ToastProvider,
ToastTitle,
ToastViewport,
} from '@yuki/ui/toast'
} from '@yuki/ui/components/toast'
import { useToast } from '@yuki/ui/hooks/use-toast'

export function Toaster() {
const { toasts } = useToast()
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/use-toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Inspired by react-hot-toast library
import * as React from 'react'

import type { ToastActionElement, ToastProps } from '@yuki/ui/toast'
import type { ToastActionElement, ToastProps } from '@yuki/ui/components/toast'

const TOAST_LIMIT = 3
const TOAST_REMOVE_DELAY = 2000
Expand Down

0 comments on commit aefccab

Please sign in to comment.