Compare commits

...

11 Commits

Author SHA1 Message Date
031971b859 v0.8.1 2021-04-01 23:34:02 +02:00
1488386e1d Merge branch 'master' of github.com:dzeiocom/components 2021-04-01 20:43:51 +02:00
26c2c50f23 v0.8.0 2021-04-01 10:19:52 +02:00
c591c2f0a8 Made Loader Stable
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
2021-04-01 10:19:32 +02:00
7fe816c997 v0.7.6 2021-04-01 10:09:59 +02:00
7e28baf2aa Fixed Text
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
2021-04-01 10:09:26 +02:00
8c64a57a16 Merge branch 'master' of github.com:dzeiocom/components
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2021-03-30 21:33:54 +02:00
c1e40c6789 v0.5.4 2021-03-30 01:48:12 +02:00
bd0787d0ec Fixed Problems
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2021-03-30 01:47:40 +02:00
5f51088ab0 v0.5.3 2021-03-29 18:49:45 +02:00
d7a09a4dcd Finished Work On Navbar
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2021-03-29 18:49:23 +02:00
7 changed files with 29 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@dzeio/components",
"version": "0.7.5",
"version": "0.8.1",
"license": "MIT",
"main": "./index.js",
"types": "./types/index.d.ts",
@ -36,7 +36,7 @@
"typescript": "^4.2.3"
},
"scripts": {
"dev": "rm -rf src/dzeio/**/*.js && start-storybook -p 6006",
"dev": "rm -rf src/dzeio/**/*.js && start-storybook -s ./.storybook/public -p 6006",
"build": "rollup --config",
"prepublishOnly": "yarn build",
"postinstall": "rollup --config"

View File

@ -6,6 +6,7 @@
width 100%
height 7px
pointer-events none
z-index 200
top 0
&.hide

View File

@ -4,9 +4,22 @@ import { buildClassName } from '../Util'
import css from './Loader.module.styl'
interface Props {
/**
* The new Percentage (if you calculate it yourself)
*/
percent?: number
/**
* Auto random loader
*/
auto?: {
/**
* the minimum and maximum interval between two increment
*/
interval: [number, number]
/**
* the minimum and maximum incrementation (MUST be an integer)
*/
increment: [number, number]
}
}
@ -15,6 +28,11 @@ interface State {
percent?: number
}
/**
* Display a simple loading animation at the top of the page
*
* @version 1.0.0
*/
export default class Loader extends React.Component<Props, State> {
public state: State = {}

View File

@ -216,9 +216,7 @@
margin 0
padding 0
.userMenu
// padding-bottom 16px
a
.userMenu a
padding 16px 0

View File

@ -68,7 +68,7 @@ interface Props {
name: string
}>
/**
* Internal Usem don't use it !
* Internal Use don't use it !
*/
mobileMenu?: () => void
}

View File

@ -3,14 +3,12 @@
.row
display flex
flex-wrap wrap
&:not(.nomargin)
margin (0 - $gapSize) 0 0
padding 0 $gapSize * 2 0 $gapSize
.row:not(.nomargin)
padding 0
margin (0 - $gapSize) 0 0 (0 - $gapSize)
padding $gapSize
&.nomargin
.row
padding 0
.nowrap
flex-wrap nowrap

View File

@ -26,6 +26,6 @@ export default class Text extends React.Component<Props> {
return (<p className={classes}><em>{this.props.children}</em></p>)
}
return React.createElement(this.props.type || 'p', {className: classes})
return React.createElement(this.props.type || 'p', {className: classes, children: this.props.children})
}
}