feat(system): small improvements

This commit is contained in:
Pavel Prichodko 2022-04-11 21:02:39 +02:00
parent aa2c8ee30c
commit 0cb0263842
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
6 changed files with 16 additions and 5 deletions

View File

@ -32,6 +32,14 @@ export const Base = styled('div', {
width: 44, width: 44,
height: 44, height: 44,
}, },
64: {
width: 64,
height: 64,
},
80: {
width: 80,
height: 80,
},
120: { 120: {
width: 120, width: 120,
height: 120, height: 120,
@ -57,6 +65,8 @@ export const Indicator = styled('span', {
}, },
36: {}, 36: {},
44: {}, 44: {},
64: {},
80: {},
120: {}, 120: {},
}, },
state: { state: {

View File

@ -5,7 +5,6 @@ import type { VariantProps } from '~/src/styles/config'
export type Variants = VariantProps<typeof Base> export type Variants = VariantProps<typeof Base>
export const Base = styled('button', { export const Base = styled('button', {
all: 'unset',
fontFamily: '$sans', fontFamily: '$sans',
fontWeight: '$500', fontWeight: '$500',
fontSize: '15px', fontSize: '15px',

View File

@ -33,7 +33,7 @@ const ContextMenuTrigger = (props: TriggerProps) => {
} }
interface MenuProps extends ContextMenuContentProps { interface MenuProps extends ContextMenuContentProps {
children: React.ReactElement[] | React.ReactElement children: React.ReactNode
} }
const ContextMenu = (props: MenuProps) => { const ContextMenu = (props: MenuProps) => {

View File

@ -1,5 +1,5 @@
# TextInput # CopyInput
```tsx ```tsx
import { TextInput } from '@status-im/components' import { CopyInput } from '@status-im/components'
``` ```

View File

@ -13,6 +13,9 @@ const Heading = styled('div', {
17: { 17: {
fontSize: '17px', fontSize: '17px',
}, },
22: {
fontSize: '22px',
},
}, },
color: { color: {
accent: { accent: {

View File

@ -5,7 +5,6 @@ import type { VariantProps } from '~/src/styles/config'
export type Variants = VariantProps<typeof Base> export type Variants = VariantProps<typeof Base>
export const Base = styled('button', { export const Base = styled('button', {
all: 'unset',
width: 32, width: 32,
height: 32, height: 32,
flexShrink: 0, flexShrink: 0,