Skip to content

Commit

Permalink
chore: use spaces from theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvein committed Sep 13, 2023
1 parent 62848f8 commit ed9aa11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
1 change: 1 addition & 0 deletions packages/DropdownMenu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"dependencies": {
"@ariakit/react": "0.2.17",
"@welcome-ui/box": "^5.0.0",
"@welcome-ui/core": "^5.0.0",
"@welcome-ui/system": "^5.0.0",
"@welcome-ui/utils": "^5.0.0"
},
Expand Down
16 changes: 2 additions & 14 deletions packages/DropdownMenu/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import * as Ariakit from '@ariakit/react'
import { CreateWuiProps, forwardRef, WuiProps } from '@welcome-ui/system'
import { useTheme } from '@xstyled/styled-components'
import type { WuiTheme } from '@welcome-ui/core'

import { Arrow } from './Arrow'
import { Item } from './Item'
Expand All @@ -11,20 +12,7 @@ import * as S from './styles'
export interface DropdownMenuOptions extends Omit<Ariakit.MenuProps, 'gutter'> {
/** add custom props from styled system on DropdownMenu inner */
innerProps?: WuiProps
gutter?:
| 'xxs'
| 'xs'
| 'sm'
| 'md'
| 'lg'
| 'xl'
| 'xxl'
| '3xl'
| '4xl'
| '5xl'
| '6xl'
| '7xl'
| number
gutter?: keyof WuiTheme['space'] | number
}

export type DropdownMenuProps = CreateWuiProps<'div', DropdownMenuOptions>
Expand Down

0 comments on commit ed9aa11

Please sign in to comment.