@mdui/shared 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdui/shared",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "mdui 项目的公共部分",
5
5
  "type": "module",
6
6
  "files": [
@@ -8,7 +8,6 @@
8
8
  "controllers",
9
9
  "decorators",
10
10
  "helpers",
11
- "icons",
12
11
  "lit-styles",
13
12
  "mixins",
14
13
  "LICENSE",
@@ -29,7 +28,7 @@
29
28
  "dependencies": {
30
29
  "@lit/reactive-element": "^2.1.0",
31
30
  "lit": "^3.3.0",
32
- "ssr-window": "^5.0.0",
31
+ "ssr-window": "^5.0.1",
33
32
  "tslib": "^2.8.1",
34
33
  "@mdui/jq": "^3.0.3"
35
34
  }
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconArrowRight extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-arrow-right': IconArrowRight;
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconArrowRight = class IconArrowRight extends LitElement {
7
- render() {
8
- return svgTag('<path d="m10 17 5-5-5-5v10z"/>');
9
- }
10
- };
11
- IconArrowRight.styles = style;
12
- IconArrowRight = __decorate([
13
- customElement('mdui-icon-arrow-right')
14
- ], IconArrowRight);
15
- export { IconArrowRight };
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconCancel_Outlined extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-cancel--outlined': IconCancel_Outlined;
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconCancel_Outlined = class IconCancel_Outlined extends LitElement {
7
- render() {
8
- return svgTag('<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"/>');
9
- }
10
- };
11
- IconCancel_Outlined.styles = style;
12
- IconCancel_Outlined = __decorate([
13
- customElement('mdui-icon-cancel--outlined')
14
- ], IconCancel_Outlined);
15
- export { IconCancel_Outlined };
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconCheckBoxOutlineBlank extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-check-box-outline-blank': IconCheckBoxOutlineBlank;
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconCheckBoxOutlineBlank = class IconCheckBoxOutlineBlank extends LitElement {
7
- render() {
8
- return svgTag('<path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>');
9
- }
10
- };
11
- IconCheckBoxOutlineBlank.styles = style;
12
- IconCheckBoxOutlineBlank = __decorate([
13
- customElement('mdui-icon-check-box-outline-blank')
14
- ], IconCheckBoxOutlineBlank);
15
- export { IconCheckBoxOutlineBlank };
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconCheckBox extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-check-box': IconCheckBox;
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconCheckBox = class IconCheckBox extends LitElement {
7
- render() {
8
- return svgTag('<path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>');
9
- }
10
- };
11
- IconCheckBox.styles = style;
12
- IconCheckBox = __decorate([
13
- customElement('mdui-icon-check-box')
14
- ], IconCheckBox);
15
- export { IconCheckBox };
package/icons/check.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconCheck extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-check': IconCheck;
10
- }
11
- }
package/icons/check.js DELETED
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconCheck = class IconCheck extends LitElement {
7
- render() {
8
- return svgTag('<path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>');
9
- }
10
- };
11
- IconCheck.styles = style;
12
- IconCheck = __decorate([
13
- customElement('mdui-icon-check')
14
- ], IconCheck);
15
- export { IconCheck };
package/icons/circle.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconCircle extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-circle': IconCircle;
10
- }
11
- }
package/icons/circle.js DELETED
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconCircle = class IconCircle extends LitElement {
7
- render() {
8
- return svgTag('<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"/>');
9
- }
10
- };
11
- IconCircle.styles = style;
12
- IconCircle = __decorate([
13
- customElement('mdui-icon-circle')
14
- ], IconCircle);
15
- export { IconCircle };
package/icons/clear.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconClear extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-clear': IconClear;
10
- }
11
- }
package/icons/clear.js DELETED
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconClear = class IconClear extends LitElement {
7
- render() {
8
- return svgTag('<path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>');
9
- }
10
- };
11
- IconClear.styles = style;
12
- IconClear = __decorate([
13
- customElement('mdui-icon-clear')
14
- ], IconClear);
15
- export { IconClear };
package/icons/error.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconError extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-error': IconError;
10
- }
11
- }
package/icons/error.js DELETED
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconError = class IconError extends LitElement {
7
- render() {
8
- return svgTag('<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>');
9
- }
10
- };
11
- IconError.styles = style;
12
- IconError = __decorate([
13
- customElement('mdui-icon-error')
14
- ], IconError);
15
- export { IconError };
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconIndeterminateCheckBox extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-indeterminate-check-box': IconIndeterminateCheckBox;
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconIndeterminateCheckBox = class IconIndeterminateCheckBox extends LitElement {
7
- render() {
8
- return svgTag('<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"/>');
9
- }
10
- };
11
- IconIndeterminateCheckBox.styles = style;
12
- IconIndeterminateCheckBox = __decorate([
13
- customElement('mdui-icon-indeterminate-check-box')
14
- ], IconIndeterminateCheckBox);
15
- export { IconIndeterminateCheckBox };
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconRadioButtonUnchecked extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-radio-button-unchecked': IconRadioButtonUnchecked;
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconRadioButtonUnchecked = class IconRadioButtonUnchecked extends LitElement {
7
- render() {
8
- return svgTag('<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>');
9
- }
10
- };
11
- IconRadioButtonUnchecked.styles = style;
12
- IconRadioButtonUnchecked = __decorate([
13
- customElement('mdui-icon-radio-button-unchecked')
14
- ], IconRadioButtonUnchecked);
15
- export { IconRadioButtonUnchecked };
@@ -1 +0,0 @@
1
- export declare const style: import("lit").CSSResult;
@@ -1,2 +0,0 @@
1
- import { css } from 'lit';
2
- export const style = css `:host{display:inline-block;width:1em;height:1em;line-height:1;font-size:1.5rem}`;
@@ -1,2 +0,0 @@
1
- import type { TemplateResult } from 'lit';
2
- export declare const svgTag: (svgPaths: string) => TemplateResult;
@@ -1,3 +0,0 @@
1
- import { html } from 'lit';
2
- import { unsafeSVG } from 'lit/directives/unsafe-svg.js';
3
- export const svgTag = (svgPaths) => html `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="currentColor">${unsafeSVG(svgPaths)}</svg>`;
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconVisibilityOff extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-visibility-off': IconVisibilityOff;
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconVisibilityOff = class IconVisibilityOff extends LitElement {
7
- render() {
8
- return svgTag('<path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/>');
9
- }
10
- };
11
- IconVisibilityOff.styles = style;
12
- IconVisibilityOff = __decorate([
13
- customElement('mdui-icon-visibility-off')
14
- ], IconVisibilityOff);
15
- export { IconVisibilityOff };
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { TemplateResult, CSSResultGroup } from 'lit';
3
- export declare class IconVisibility extends LitElement {
4
- static styles: CSSResultGroup;
5
- protected render(): TemplateResult;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'mdui-icon-visibility': IconVisibility;
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement } from 'lit';
3
- import { customElement } from 'lit/decorators/custom-element.js';
4
- import { style } from './shared/style.js';
5
- import { svgTag } from './shared/svg-tag.js';
6
- let IconVisibility = class IconVisibility extends LitElement {
7
- render() {
8
- return svgTag('<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/>');
9
- }
10
- };
11
- IconVisibility.styles = style;
12
- IconVisibility = __decorate([
13
- customElement('mdui-icon-visibility')
14
- ], IconVisibility);
15
- export { IconVisibility };