mirror of
https://github.com/dzeiocom/components.git
synced 2025-07-30 00:39:51 +00:00
@ -1,4 +1,4 @@
|
||||
import React, { FC } from 'react'
|
||||
import React from 'react'
|
||||
import Link from '../Link'
|
||||
import { ColorType, Icon } from '../interfaces'
|
||||
import { buildClassName } from '../Util'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { FC, FocusEvent } from 'react'
|
||||
import React, { FocusEvent } from 'react'
|
||||
|
||||
import { ChevronDown, MinusSquare, PlusSquare } from 'lucide-react'
|
||||
import Text from '../Text'
|
||||
@ -167,7 +167,10 @@ export default class Input extends React.PureComponent<Props, States> {
|
||||
let iconRight = this.props.iconRight
|
||||
let iconLeft = this.props.iconLeft
|
||||
|
||||
let input: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>
|
||||
let input: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> = <input
|
||||
{...props}
|
||||
{...baseProps}
|
||||
/>
|
||||
|
||||
switch (this.props.type) {
|
||||
case 'textarea':
|
||||
@ -202,13 +205,14 @@ export default class Input extends React.PureComponent<Props, States> {
|
||||
return (value + this.ensureNumber(this.props.step, 1)).toString()
|
||||
}}
|
||||
}
|
||||
default:
|
||||
input = <input
|
||||
{...props}
|
||||
{...baseProps}
|
||||
/>
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{this.props.label && (
|
||||
|
@ -11,4 +11,4 @@
|
||||
top 0
|
||||
|
||||
&.hide
|
||||
top -7px
|
||||
top -8px
|
||||
|
@ -2,7 +2,7 @@ import Router from 'next/router'
|
||||
|
||||
import Image, { ImageProps } from 'next/image'
|
||||
import React from 'react'
|
||||
import { ChevronDown, ChevronsRight, Menu as LucideMenu, X } from 'lucide-react'
|
||||
import { ChevronDown, Menu as LucideMenu } from 'lucide-react'
|
||||
import Text from '../Text'
|
||||
import Menu from '../Menu'
|
||||
import Sidebar from '../Sidebar'
|
||||
@ -14,7 +14,6 @@ import { buildClassName } from '../Util'
|
||||
import css from './Navbar.module.styl'
|
||||
import { Icon } from '../interfaces'
|
||||
import Button from '../Button'
|
||||
import { objectEqual } from '@dzeio/object-util'
|
||||
|
||||
interface MenuItem {
|
||||
path?: string
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { buildClassName } from '../Util'
|
||||
import Button from '../Button'
|
||||
import Box from '../Box'
|
||||
import Col from '../Col'
|
||||
import Text from '../Text'
|
||||
import Router from 'next/router'
|
||||
import React from 'react'
|
||||
|
@ -19,6 +19,7 @@
|
||||
transition-duration $transitionTime
|
||||
transition-timing-function $transitionFunction
|
||||
height 100%
|
||||
max-width 100%
|
||||
width 0
|
||||
background $main
|
||||
border-radius 8px
|
||||
|
@ -1,5 +1,4 @@
|
||||
import React from 'react'
|
||||
import { buildClassName } from '../Util'
|
||||
import css from './ProgressBox.module.styl'
|
||||
import ProgressBar from '../ProgressBar'
|
||||
import Row from '../Row'
|
||||
|
Reference in New Issue
Block a user