bump BETA 3

Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2022-10-18 13:26:17 +02:00
parent 8a360e122c
commit 41c01d8af5
Signed by: Florian Bouillon
GPG Key ID: E05B3A94178D3A7C
8 changed files with 1891 additions and 3383 deletions

5
.eslintrc.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = {
extends: [
"./node_modules/@dzeio/config/eslint/react-typescript"
]
}

5249
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@dzeio/components", "name": "@dzeio/components",
"version": "1.0.0-beta.3", "version": "1.0.0-beta.4",
"license": "MIT", "license": "MIT",
"main": "./index.umd.js", "main": "./index.umd.js",
"module": "./index.es.js", "module": "./index.es.js",
@ -18,6 +18,7 @@
"react": "^18", "react": "^18",
"react-dom": "^18", "react-dom": "^18",
"style-loader": "^3", "style-loader": "^3",
"stylus": "^0.59.0",
"typescript": "^4", "typescript": "^4",
"vite": "^3" "vite": "^3"
}, },
@ -33,6 +34,6 @@
}, },
"dependencies": { "dependencies": {
"@dzeio/object-util": "^1", "@dzeio/object-util": "^1",
"lucide-react": "^0.88.0" "lucide-react": "^0.91.0"
} }
} }

View File

@ -1,7 +1,7 @@
@import "../config" @import "../config"
.box .box
background nativeRGB(var(--theme-50)) background nativeRGB(var(--theme-100))
@media (prefers-color-scheme dark) @media (prefers-color-scheme dark)
background nativeRGB(var(--gray-800)) background nativeRGB(var(--gray-800))
border-radius 16px border-radius 16px

View File

@ -8,7 +8,6 @@
line-height 1.5 line-height 1.5
display inline-flex display inline-flex
padding 10px 20px padding 10px 20px
margin 8px 8px 0 8px
cursor pointer cursor pointer
align-items center align-items center
text-align center text-align center
@ -89,9 +88,6 @@
&.outline &.outline
padding 3px 8px // @padding - @border padding 3px 8px // @padding - @border
&.nomargintop
margin-top 0
&:disabled &:disabled
background nativeRGB(var(--gray-500)) background nativeRGB(var(--gray-500))
color nativeRGB(var(--gray-500--text)) color nativeRGB(var(--gray-500--text))

View File

@ -9,7 +9,6 @@ import css from './Button.module.styl'
// MAKE OUTLINE use Fieldset instead of the current one xd // MAKE OUTLINE use Fieldset instead of the current one xd
interface Props { interface Props {
nomargintop?: boolean
color?: ColorType color?: ColorType
children?: React.ReactNode children?: React.ReactNode
icon?: Icon | string icon?: Icon | string
@ -57,7 +56,6 @@ export default class Button extends React.Component<Props> {
[css[this.props.type as string], this.props.type], [css[this.props.type as string], this.props.type],
[css.block, this.props.block], [css.block, this.props.block],
[css[this.props.size as string], this.props.size], [css[this.props.size as string], this.props.size],
[css.nomargintop, this.props.nomargintop],
[css.loading, this.props.loading], [css.loading, this.props.loading],
[css.mobileBlock, this.props.mobileBlock] [css.mobileBlock, this.props.mobileBlock]
) )

View File

@ -6,4 +6,5 @@
> *:not(:first-child) > *:not(:first-child)
margin-top 48px margin-top 48px
&.main &.main
margin 48px auto margin 0 auto
padding 48px @padding[1]

View File

@ -133,11 +133,11 @@ export default class Navbar extends React.Component<Props, State> {
{!this.state.isMobile && ( {!this.state.isMobile && (
<ul> <ul>
{!this.state.isMobile && this.props.menu.map((item) => ( {!this.state.isMobile && this.props.menu.map((item) => (
<li key={item.path}><Button nomargintop type="ghost" href={item.path} icon={item.icon} onClick={item.subMenu ? this.onClick(item.subMenu) : undefined}>{item.name}</Button></li> <li key={item.path}><Button type="ghost" href={item.path} icon={item.icon} onClick={item.subMenu ? this.onClick(item.subMenu) : undefined}>{item.name}</Button></li>
))} ))}
{this.props.user && ( {this.props.user && (
<li> <li>
<Button nomargintop type="ghost" iconLeft={ChevronDown} onClick={this.props.user.menu ? this.onClick(this.props.user.menu) : undefined}>{this.props.user.name}</Button> <Button type="ghost" iconLeft={ChevronDown} onClick={this.props.user.menu ? this.onClick(this.props.user.menu) : undefined}>{this.props.user.name}</Button>
</li> </li>
)} )}
</ul> </ul>