mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-07 14:18:48 +08:00
95 lines
2.8 KiB
TypeScript
95 lines
2.8 KiB
TypeScript
import { MdOutlinedTextField as _MdOutlinedTextField } from "@material/web/textfield/outlined-text-field.js?module";
|
|
import { MdOutlinedButton as _MdOutlinedButton } from "@material/web/button/outlined-button.js?module";
|
|
import { MdTonalButton as _MdTonalButton } from "@material/web/button/tonal-button.js?module";
|
|
import { MdSelectOption as _MdSelectOption } from "@material/web/select/select-option.js?module";
|
|
import { MdOutlinedSelect as _MdOutlinedSelect } from "@material/web/select/outlined-select.js?module";
|
|
import { MdDialog as _MdDialog } from "@material/web/dialog/dialog.js?module";
|
|
import { MdTextButton as _MdTextButton } from "@material/web/button/text-button.js?module";
|
|
import { MdMenu as _MdMenu } from "@material/web/menu/menu.js?module";
|
|
import { MdMenuItem as _MdMenuItem } from "@material/web/menu/menu-item.js?module";
|
|
import { createComponent } from "@lit-labs/react/?target=es2022";
|
|
import * as Preact from "preact/compat";
|
|
|
|
export const MdOutlinedTextField = createComponent({
|
|
tagName: "md-outlined-text-field",
|
|
elementClass: _MdOutlinedTextField,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
});
|
|
|
|
export const MdOutlinedButton = createComponent({
|
|
tagName: "md-outlined-button",
|
|
elementClass: _MdOutlinedButton,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
});
|
|
|
|
export const MdTonalButton = createComponent({
|
|
tagName: "md-tonal-button",
|
|
elementClass: _MdTonalButton,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
});
|
|
|
|
export const MdSelectOption = createComponent({
|
|
tagName: "md-select-option",
|
|
elementClass: _MdSelectOption,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
});
|
|
|
|
export const MdOutlinedSelect = createComponent({
|
|
tagName: "md-outlined-select",
|
|
elementClass: _MdOutlinedSelect,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
});
|
|
|
|
export type DialogAction = {
|
|
action: string;
|
|
};
|
|
|
|
export const MdDialog = createComponent({
|
|
tagName: "md-dialog",
|
|
elementClass: _MdDialog,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
events: {
|
|
"onopening": "opening",
|
|
"onopened": "opened",
|
|
"onclosing": "closing",
|
|
"onclosed": "closed",
|
|
},
|
|
});
|
|
|
|
export const MdTextButton = createComponent({
|
|
tagName: "md-text-button",
|
|
elementClass: _MdTextButton,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
});
|
|
|
|
export const MdMenu = createComponent({
|
|
tagName: "md-menu",
|
|
elementClass: _MdMenu,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
});
|
|
|
|
export const MdMenuItem = createComponent({
|
|
tagName: "md-menu-item",
|
|
elementClass: _MdMenuItem,
|
|
// @ts-ignore Checked
|
|
react: Preact,
|
|
});
|
|
|
|
export { _MdOutlinedTextField };
|
|
export { _MdOutlinedButton };
|
|
export { _MdTonalButton };
|
|
export { _MdSelectOption };
|
|
export { _MdOutlinedSelect };
|
|
export { _MdDialog };
|
|
export { _MdTextButton };
|
|
export { _MdMenu };
|
|
export { _MdMenuItem };
|