feat: Moved to vite

Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
2022-09-27 12:56:56 +02:00
parent 895716cff0
commit b43329caa1
21 changed files with 3960 additions and 5908 deletions

View File

@ -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'

View File

@ -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 && (

View File

@ -11,4 +11,4 @@
top 0
&.hide
top -7px
top -8px

View File

@ -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

View File

@ -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'

View File

@ -19,6 +19,7 @@
transition-duration $transitionTime
transition-timing-function $transitionFunction
height 100%
max-width 100%
width 0
background $main
border-radius 8px

View File

@ -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'