Moved to NPM and lucide-icons

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-06-28 10:56:58 +02:00
parent e38387534a
commit e24b31df10
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6
18 changed files with 41225 additions and 11994 deletions

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

1
.gitignore vendored
View File

@ -9,4 +9,3 @@ types/
!src/stylus.d.ts !src/stylus.d.ts
!.storybook/*.js !.storybook/*.js
style.css style.css
yarn-error.log

40667
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -11,15 +11,15 @@
"@storybook/addon-essentials": "^6.1.14", "@storybook/addon-essentials": "^6.1.14",
"@storybook/cli": "^6.1.14", "@storybook/cli": "^6.1.14",
"@storybook/react": "^6.1.14", "@storybook/react": "^6.1.14",
"@types/node": "^14.14.28", "@types/node": "^15.12.1",
"@types/react": "^17.0.2", "@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1", "@types/react-dom": "^17.0.1",
"babel-loader": "^8.2.2", "babel-loader": "^8.2.2",
"css-loader": "^5.0.2", "css-loader": "^5.0.2",
"next": "^10.0.5", "lucide-react": "^0.15.19",
"react": "^17.0.1", "next": "^10.0.0",
"react-dom": "^17.0.1", "react": "^16.0.0",
"react-feather": "^2.0.9", "react-dom": "^16.0.0",
"style-loader": "^2.0.0", "style-loader": "^2.0.0",
"stylus": "^0.54.8", "stylus": "^0.54.8",
"stylus-loader": "^4.3.3", "stylus-loader": "^4.3.3",
@ -28,17 +28,17 @@
"webpack": "^4.44.2" "webpack": "^4.44.2"
}, },
"peerDependencies": { "peerDependencies": {
"next": "^10.0.5", "lucide-react": "^0.15.19",
"react": "^17.0.1", "next": "^10.0.0 || ^11.0.0",
"react-dom": "^17.0.1", "react": "^16.0.0 || ^17.0.0",
"react-feather": "^2.0.9", "react-dom": "^16.0.0 || ^17.0.0",
"stylus": "^0.54.8", "stylus": "^0.54.8",
"typescript": "^4.2.3" "typescript": "^4.0.0"
}, },
"scripts": { "scripts": {
"dev": "start-storybook -s ./.storybook/public -p 6006", "dev": "start-storybook -s ./.storybook/public -p 6006",
"build": "rollup --config", "build": "rollup --config",
"prepublishOnly": "yarn build", "prepublishOnly": "npm run build",
"postinstall": "rollup --config" "postinstall": "rollup --config"
}, },
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
import { Meta } from '@storybook/react/types-6-0' import { Meta } from '@storybook/react/types-6-0'
import React from 'react' import React from 'react'
import { Zap } from 'react-feather' import { Zap } from 'lucide-react'
import Component from '.' import Component from '.'
export default { export default {

View File

@ -34,7 +34,7 @@ export default class Button extends React.Component<Props> {
inner = ( inner = (
<> <>
{typeof Icon === 'string' ? ( {typeof Icon === 'string' ? (
<Image imageProps={{src: Icon, width: 16, height: 16, className: css.img}} /> <Image imageProps={{src: Icon, width: 16, height: 16}} />
) : ( ) : (
<Icon size={this.props.size === 'large' ? 20 : this.props.size === 'small' ? 14 : 16} /> <Icon size={this.props.size === 'large' ? 20 : this.props.size === 'small' ? 14 : 16} />
)} )}

View File

@ -1,8 +1,7 @@
import React from 'react' import React from 'react'
import { Check } from 'react-feather' import { Check } from 'lucide-react'
import { buildClassName } from '../Util' import { buildClassName } from '../Util'
import { ColorType } from '../interfaces'
import css from './Checkbox.module.styl' import css from './Checkbox.module.styl'
import Text from '../Text' import Text from '../Text'

View File

@ -1,6 +1,6 @@
import { Meta, Story } from '@storybook/react/types-6-0' import { Meta, Story } from '@storybook/react/types-6-0'
import React from 'react' import React from 'react'
import { Zap } from 'react-feather' import { Zap } from 'lucide-react'
import Component from '.' import Component from '.'
export default { export default {

View File

@ -1,7 +1,7 @@
import React, { FC } from 'react' import React, { FC } from 'react'
import { Heart } from 'react-feather' import { Heart } from 'lucide-react'
import Link from '../Link' import Link from '../Link'
import { Icon } from 'react-feather' import { LucideProps } from 'lucide-react'
import Text from '../Text' import Text from '../Text'
import css from './Footer.module.styl' import css from './Footer.module.styl'
import Image from 'next/image' import Image from 'next/image'
@ -15,7 +15,7 @@ interface Props {
}> }>
socials?: Array<{ socials?: Array<{
href: string href: string
icon: Icon | string icon: FC<LucideProps> | string
}> }>
} }

View File

@ -2,7 +2,7 @@ import { Meta } from '@storybook/react/types-6-0'
import { Story } from "@storybook/react" import { Story } from "@storybook/react"
import React from 'react' import React from 'react'
import Component from '.' import Component from '.'
import { X } from 'react-feather' import { X } from 'lucide-react'
export default { export default {
title: 'DZEIO/Input', title: 'DZEIO/Input',

View File

@ -1,11 +1,10 @@
import React, { FC } from 'react' import React, { FC } from 'react'
import { ChevronDown } from 'react-feather' import { ChevronDown } from 'lucide-react'
import Text from '../Text' import Text from '../Text'
import { IconProps } from '../interfaces' import { IconProps } from '../interfaces'
import { buildClassName } from '../Util' import { buildClassName } from '../Util'
import css from './Input.module.styl' import css from './Input.module.styl'
import Row from '../Row'
interface Props extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> { interface Props extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
id?: string id?: string

View File

@ -1,6 +1,6 @@
import React from 'react' import React from 'react'
import NextLink from 'next/link' import NextLink from 'next/link'
import { ExternalLink } from 'react-feather' import { ExternalLink } from 'lucide-react'
import css from './Link.module.styl' import css from './Link.module.styl'
import { buildClassName } from '../Util' import { buildClassName } from '../Util'

View File

@ -1,6 +1,6 @@
import { Meta, Story } from '@storybook/react/types-6-0' import { Meta, Story } from '@storybook/react/types-6-0'
import React from 'react' import React from 'react'
import { Zap, ZapOff } from 'react-feather' import { Zap, ZapOff } from 'lucide-react'
import Component from '.' import Component from '.'
import Text from '../Text' import Text from '../Text'

View File

@ -2,7 +2,7 @@ import Router from 'next/router'
import Image, { ImageProps } from 'next/image' import Image, { ImageProps } from 'next/image'
import React, { FC } from 'react' import React, { FC } from 'react'
import { ChevronDown, ChevronsRight, Menu, X } from 'react-feather' import { ChevronDown, ChevronsRight, Menu, X } from 'lucide-react'
import Text from '../Text' import Text from '../Text'
import Col from '../Col' import Col from '../Col'
import Row from '../Row' import Row from '../Row'

View File

@ -1,6 +1,6 @@
import { Meta } from '@storybook/react/types-6-0' import { Meta } from '@storybook/react/types-6-0'
import React from 'react' import React from 'react'
import { Zap } from 'react-feather' import { Zap } from 'lucide-react'
import Component from '.' import Component from '.'
export default { export default {

View File

@ -5,7 +5,7 @@ import Col from '../Col'
import Text from '../Text' import Text from '../Text'
import Router from 'next/router' import Router from 'next/router'
import React from 'react' import React from 'react'
import { X } from 'react-feather' import { X } from 'lucide-react'
import css from './NotificationManager.module.styl' import css from './NotificationManager.module.styl'

View File

@ -1,5 +1,5 @@
import React from 'react' import React from 'react'
import { X } from 'react-feather' import { X } from 'lucide-react'
import Text from '../Text' import Text from '../Text'
import Box from '../Box' import Box from '../Box'
import Row from '../Row' import Row from '../Row'

11445
yarn.lock

File diff suppressed because it is too large Load Diff