mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 23:37:51 +01:00
- Fix problemi rilevati da ESLint (per togliere alcune regole commentate) - Spostati i tipi nella cartella typings - Aggiunti alcuni alias per la cartella resources
34 lines
722 B
TypeScript
34 lines
722 B
TypeScript
import {Drawer as MWCDrawer} from '@material/mwc-drawer';
|
|
import {css} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import type {JSXElement} from '../typings';
|
|
|
|
declare global {
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
'material-drawer': JSXElement<MaterialDrawer>;
|
|
}
|
|
}
|
|
}
|
|
|
|
@customElement('material-drawer')
|
|
export default class MaterialDrawer extends MWCDrawer {
|
|
static styles = [
|
|
...MWCDrawer.styles,
|
|
css`
|
|
:first-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.mdc-drawer-app-content {
|
|
color: var(--mdc-theme-text-primary-on-background);
|
|
background-color: var(--mdc-theme-background);
|
|
}
|
|
|
|
.mdc-drawer {
|
|
height: calc(100% - 64px);
|
|
}
|
|
`];
|
|
}
|