refactor(input-number): use seperate style file, not from input

This commit is contained in:
07akioni 2020-12-16 11:19:01 +08:00
parent 35d56075eb
commit 9dd55561dd
3 changed files with 9 additions and 9 deletions

View File

@ -7,5 +7,9 @@ export default {
buttonWidthLarge: '28px', buttonWidthLarge: '28px',
buttonIconSizeSmall: '14px', buttonIconSizeSmall: '14px',
buttonIconSizeMedium: '14px', buttonIconSizeMedium: '14px',
buttonIconSizeLarge: '14px' buttonIconSizeLarge: '14px',
heightTiny: '22px',
heightSmall: '28px',
heightMedium: '34px',
heightLarge: '40px'
} }

View File

@ -2,8 +2,7 @@ import create from '../../_styles/utils/create-component-base'
import { changeColor } from 'seemly' import { changeColor } from 'seemly'
import { baseDark } from '../../_styles/base' import { baseDark } from '../../_styles/base'
import { iconDark } from '../../icon/styles' import { iconDark } from '../../icon/styles'
import inputCommonVariables from '../../input/styles/_common' import commonVars from './_common'
import inputNumberCommonVariables from './_common'
export default create({ export default create({
name: 'InputNumber', name: 'InputNumber',
@ -40,8 +39,7 @@ export default create({
const buttonTextColorHover = primaryColorHover const buttonTextColorHover = primaryColorHover
const buttonTextColorPressed = primaryColorPressed const buttonTextColorPressed = primaryColorPressed
return { return {
...inputCommonVariables, ...commonVars,
...inputNumberCommonVariables,
borderRadius, borderRadius,
// default // default
buttonColorDisabled, buttonColorDisabled,

View File

@ -2,8 +2,7 @@ import create from '../../_styles/utils/create-component-base'
import { changeColor } from 'seemly' import { changeColor } from 'seemly'
import { baseLight } from '../../_styles/base' import { baseLight } from '../../_styles/base'
import { iconLight } from '../../icon/styles' import { iconLight } from '../../icon/styles'
import inputCommonVariables from '../../input/styles/_common' import commonVars from './_common'
import inputNumberCommonVariables from './_common'
export default create({ export default create({
name: 'InputNumber', name: 'InputNumber',
@ -40,8 +39,7 @@ export default create({
const buttonTextColorPressed = primaryColorPressed const buttonTextColorPressed = primaryColorPressed
const colorFocus = color const colorFocus = color
return { return {
...inputCommonVariables, ...commonVars,
...inputNumberCommonVariables,
borderRadius, borderRadius,
// default // default
buttonColorDisabled, buttonColorDisabled,