Skip to content

Commit

Permalink
move types
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbulat committed Jan 6, 2025
1 parent 4c9630e commit 0741d40
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 0 additions & 4 deletions packages/ui-core/src/modal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export type ModalNotesProps = ComponentBase & {
withPadding?: boolean
}

export type ModalOverlayProps = ModalAnimationProps & {
blur?: string
}

export type ModalPaddingProps = ComponentBase & {
verticalOnly?: boolean
horizontalOnly?: boolean
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-core/src/overlay/Backdrop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import classNames from 'classnames'
import { motion } from 'framer-motion'
import commonClasses from '../../common.module.scss'
import type { ModalOverlayProps } from '../../modal/types'
import type { BackdropProps } from '../types'
import classes from './index.module.scss'

export const Backdrop = ({ children, blur, ...rest }: ModalOverlayProps) => {
export const Backdrop = ({ children, blur, ...rest }: BackdropProps) => {
const allClasses = classNames(commonClasses.fixedPosition, classes.backdrop)
return (
<motion.div
Expand Down
10 changes: 10 additions & 0 deletions packages/ui-core/src/overlay/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors
// SPDX-License-Identifier: GPL-3.0-only

import type { ComponentBase } from '@w3ux/types'
import type { AnimationProps } from 'framer-motion'

export type BackdropProps = ComponentBase &
AnimationProps & {
blur?: string
}

0 comments on commit 0741d40

Please sign in to comment.