dees-catalog/ts_web/elements/dees-stepper.ts

61 lines
1.2 KiB
TypeScript
Raw Normal View History

2021-08-29 15:10:25 +00:00
import { DeesElement, customElement, html, css, unsafeCSS, cssManager, property } from '@designestate/dees-element';
import * as domtools from '@designestate/dees-domtools';
@customElement('dees-stepper')
export class DeesStepper extends DeesElement {
public static demo = () => html`
<dees-stepper></dees-stepper>
`;
constructor() {
super();
}
@property({
type: Array
})
public steps = [{
title: 'Who are you?'
}, {
title: 'Verification:'
}]
public static styles = [
cssManager.defaultStyles,
css`
:host {
position: absolute;
width: 100%;
height: 100%;
}
.stepperContainer {
position: absolute;
width: 100%;
height: 100%;
background: #111;
overflow: hidden;
}
.step {
max-width: 600px;
min-height: 300px;
border-radius: 10px;
background: #222;
margin: auto;
margin-bottom: 20px;
}
`
]
public render () {
return html`
<div class="stepperContainer">
${this.steps.map(stepArg => html`
<div class="step"></div>
`)}
</div>
`;
}
}