mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
@@ -10,14 +10,14 @@
|
||||
"peerDependencies": {
|
||||
"react": "^19.1.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"jotai": "^2.15.0",
|
||||
"usehooks-ts": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^19.2.2",
|
||||
"@types/react-dom": "^19.2.2",
|
||||
"react": "^19.1.1",
|
||||
"react-dom": "^19.1.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"jotai": "^2.15.0",
|
||||
"usehooks-ts": "^3.1.0"
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,6 @@ import { useLayoutEffect, useRef } from 'react'
|
||||
export const useRefValue = <S>(
|
||||
value: S,
|
||||
): Readonly<{
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
current: S extends Function ? S : Readonly<S>
|
||||
}> => {
|
||||
const ref = useRef<S>(value)
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { clsxm, Spring } from '@afilmory/utils'
|
||||
import type { HTMLMotionProps } from 'motion/react'
|
||||
import { m } from 'motion/react'
|
||||
import type { FC, PropsWithChildren } from 'react'
|
||||
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
import { Spring } from '@afilmory/utils'
|
||||
|
||||
export const GlassButton: FC<HTMLMotionProps<'button'> & PropsWithChildren> = (
|
||||
props,
|
||||
) => {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
import * as React from 'react'
|
||||
|
||||
export interface CheckboxProps {
|
||||
checked?: boolean
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
'use client'
|
||||
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
import * as CheckboxPrimitive from '@radix-ui/react-checkbox'
|
||||
import type { HTMLMotionProps } from 'motion/react'
|
||||
import { m as motion } from 'motion/react'
|
||||
import * as React from 'react'
|
||||
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
|
||||
type CheckboxProps = React.ComponentProps<typeof CheckboxPrimitive.Root> &
|
||||
HTMLMotionProps<'button'> & {
|
||||
indeterminate?: boolean
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'
|
||||
import * as React from 'react'
|
||||
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
|
||||
const DropdownMenu: typeof DropdownMenuPrimitive.Root = (props) => {
|
||||
return <DropdownMenuPrimitive.Root {...props} />
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { useCallback, useState } from 'react'
|
||||
import { useInView } from 'react-intersection-observer'
|
||||
|
||||
import { Thumbhash } from '@afilmory/ui'
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
import { useCallback, useState } from 'react'
|
||||
import { useInView } from 'react-intersection-observer'
|
||||
|
||||
export interface LazyImageProps {
|
||||
src: string
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { clsxm, Spring } from '@afilmory/utils'
|
||||
import * as DialogPrimitive from '@radix-ui/react-dialog'
|
||||
import { useAtomValue, useStore } from 'jotai'
|
||||
import { useAtomValue } from 'jotai'
|
||||
import { AnimatePresence } from 'motion/react'
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import { useEventCallback } from 'usehooks-ts'
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export * from './ScrollArea'
|
||||
export * from './ctx'
|
||||
export * from './hooks'
|
||||
export * from './ScrollArea'
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { clsxm, Spring } from '@afilmory/utils'
|
||||
import * as TooltipPrimitive from '@radix-ui/react-tooltip'
|
||||
import { m } from 'motion/react'
|
||||
import * as React from 'react'
|
||||
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
import { Spring } from '@afilmory/utils'
|
||||
|
||||
import { tooltipStyle } from './styles'
|
||||
|
||||
const TooltipProvider = TooltipPrimitive.Provider
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
import type { PropsWithChildren } from 'react'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
import { clsxm } from '@afilmory/utils'
|
||||
|
||||
import {
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
|
||||
Reference in New Issue
Block a user