@universal-material/web 3.0.0 → 3.0.1
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/README.md +28 -0
- package/button/button-base.d.ts +15 -9
- package/button/button-base.d.ts.map +1 -1
- package/button/button-base.js +46 -93
- package/button/button-base.js.map +1 -1
- package/button/button-base.styles.d.ts +2 -0
- package/button/button-base.styles.d.ts.map +1 -0
- package/button/button-base.styles.js +75 -0
- package/button/button-base.styles.js.map +1 -0
- package/button/button-set.d.ts +10 -2
- package/button/button-set.d.ts.map +1 -1
- package/button/button-set.js +27 -16
- package/button/button-set.js.map +1 -1
- package/button/button-set.styles.d.ts +2 -0
- package/button/button-set.styles.d.ts.map +1 -0
- package/button/button-set.styles.js +39 -0
- package/button/button-set.styles.js.map +1 -0
- package/button/button.d.ts +18 -4
- package/button/button.d.ts.map +1 -1
- package/button/button.js +29 -102
- package/button/button.js.map +1 -1
- package/button/button.styles.d.ts +2 -0
- package/button/button.styles.d.ts.map +1 -0
- package/button/button.styles.js +96 -0
- package/button/button.styles.js.map +1 -0
- package/button/fab.d.ts +14 -2
- package/button/fab.d.ts.map +1 -1
- package/button/fab.js +25 -106
- package/button/fab.js.map +1 -1
- package/button/fab.styles.d.ts +2 -0
- package/button/fab.styles.d.ts.map +1 -0
- package/button/fab.styles.js +89 -0
- package/button/fab.styles.js.map +1 -0
- package/button/icon-button.d.ts +3 -4
- package/button/icon-button.d.ts.map +1 -1
- package/button/icon-button.js +15 -89
- package/button/icon-button.js.map +1 -1
- package/button/icon-button.styles.d.ts +2 -0
- package/button/icon-button.styles.d.ts.map +1 -0
- package/button/icon-button.styles.js +70 -0
- package/button/icon-button.styles.js.map +1 -0
- package/card/card-content.d.ts +5 -3
- package/card/card-content.d.ts.map +1 -1
- package/card/card-content.js +33 -13
- package/card/card-content.js.map +1 -1
- package/card/card-content.styles.d.ts +2 -0
- package/card/card-content.styles.d.ts.map +1 -0
- package/card/card-content.styles.js +15 -0
- package/card/card-content.styles.js.map +1 -0
- package/card/card-media.d.ts +3 -3
- package/card/card-media.d.ts.map +1 -1
- package/card/card-media.js +9 -17
- package/card/card-media.js.map +1 -1
- package/card/card-media.styles.d.ts +2 -0
- package/card/card-media.styles.d.ts.map +1 -0
- package/card/card-media.styles.js +13 -0
- package/card/card-media.styles.js.map +1 -0
- package/card/card.d.ts +9 -6
- package/card/card.d.ts.map +1 -1
- package/card/card.js +22 -34
- package/card/card.js.map +1 -1
- package/card/card.styles.d.ts +2 -0
- package/card/card.styles.d.ts.map +1 -0
- package/card/card.styles.js +26 -0
- package/card/card.styles.js.map +1 -0
- package/checkbox/checkbox.d.ts +16 -0
- package/checkbox/checkbox.d.ts.map +1 -0
- package/checkbox/checkbox.js +75 -0
- package/checkbox/checkbox.js.map +1 -0
- package/container/container.d.ts +14 -0
- package/container/container.d.ts.map +1 -0
- package/container/container.js +23 -0
- package/container/container.js.map +1 -0
- package/container/container.styles.d.ts +2 -0
- package/container/container.styles.d.ts.map +1 -0
- package/container/container.styles.js +43 -0
- package/container/container.styles.js.map +1 -0
- package/custom-elements.json +3706 -0
- package/divider/divider.d.ts +5 -2
- package/divider/divider.d.ts.map +1 -1
- package/divider/divider.js +11 -19
- package/divider/divider.js.map +1 -1
- package/divider/divider.styles.d.ts +2 -0
- package/divider/divider.styles.d.ts.map +1 -0
- package/divider/divider.styles.js +15 -0
- package/divider/divider.styles.js.map +1 -0
- package/elevation/elevation.d.ts +4 -3
- package/elevation/elevation.d.ts.map +1 -1
- package/elevation/elevation.js +11 -37
- package/elevation/elevation.js.map +1 -1
- package/elevation/elevation.styles.d.ts +2 -0
- package/elevation/elevation.styles.d.ts.map +1 -0
- package/elevation/elevation.styles.js +28 -0
- package/elevation/elevation.styles.js.map +1 -0
- package/index.d.ts +23 -0
- package/index.d.ts.map +1 -0
- package/index.js +23 -0
- package/index.js.map +1 -0
- package/package.json +35 -26
- package/ripple/ripple.d.ts +11 -5
- package/ripple/ripple.d.ts.map +1 -1
- package/ripple/ripple.js +66 -120
- package/ripple/ripple.js.map +1 -1
- package/ripple/ripple.styles.d.ts +2 -0
- package/ripple/ripple.styles.d.ts.map +1 -0
- package/ripple/ripple.styles.js +74 -0
- package/ripple/ripple.styles.js.map +1 -0
- package/shared/base.styles.d.ts +2 -0
- package/shared/base.styles.d.ts.map +1 -0
- package/shared/base.styles.js +9 -0
- package/shared/base.styles.js.map +1 -0
- package/table/table-body.d.ts +11 -0
- package/table/table-body.d.ts.map +1 -0
- package/table/table-body.js +21 -0
- package/table/table-body.js.map +1 -0
- package/table/table-body.styles.d.ts +2 -0
- package/table/table-body.styles.d.ts.map +1 -0
- package/table/table-body.styles.js +11 -0
- package/table/table-body.styles.js.map +1 -0
- package/table/table-cell.d.ts +11 -0
- package/table/table-cell.d.ts.map +1 -0
- package/table/table-cell.js +21 -0
- package/table/table-cell.js.map +1 -0
- package/table/table-cell.styles.d.ts +2 -0
- package/table/table-cell.styles.d.ts.map +1 -0
- package/table/table-cell.styles.js +11 -0
- package/table/table-cell.styles.js.map +1 -0
- package/table/table-head.d.ts +11 -0
- package/table/table-head.d.ts.map +1 -0
- package/table/table-head.js +21 -0
- package/table/table-head.js.map +1 -0
- package/table/table-head.styles.d.ts +2 -0
- package/table/table-head.styles.d.ts.map +1 -0
- package/table/table-head.styles.js +11 -0
- package/table/table-head.styles.js.map +1 -0
- package/table/table-header-cell.d.ts +11 -0
- package/table/table-header-cell.d.ts.map +1 -0
- package/table/table-header-cell.js +21 -0
- package/table/table-header-cell.js.map +1 -0
- package/table/table-header-cell.styles.d.ts +2 -0
- package/table/table-header-cell.styles.d.ts.map +1 -0
- package/table/table-header-cell.styles.js +12 -0
- package/table/table-header-cell.styles.js.map +1 -0
- package/table/table-row.d.ts +11 -0
- package/table/table-row.d.ts.map +1 -0
- package/{card/button-set.js → table/table-row.js} +10 -15
- package/table/table-row.js.map +1 -0
- package/table/table-row.styles.d.ts +2 -0
- package/table/table-row.styles.d.ts.map +1 -0
- package/table/table-row.styles.js +7 -0
- package/table/table-row.styles.js.map +1 -0
- package/table/table.d.ts +16 -0
- package/table/table.d.ts.map +1 -0
- package/table/table.js +19 -0
- package/table/table.js.map +1 -0
- package/table/table.styles.d.ts +2 -0
- package/table/table.styles.d.ts.map +1 -0
- package/table/table.styles.js +16 -0
- package/table/table.styles.js.map +1 -0
- package/theme/color.d.ts +7 -0
- package/theme/color.d.ts.map +1 -0
- package/theme/color.js +2 -0
- package/theme/color.js.map +1 -0
- package/theme/css-var-builder.d.ts +9 -0
- package/theme/css-var-builder.d.ts.map +1 -0
- package/theme/css-var-builder.js +25 -0
- package/theme/css-var-builder.js.map +1 -0
- package/theme/index.d.ts +2 -0
- package/theme/index.d.ts.map +1 -0
- package/theme/index.js +2 -0
- package/theme/index.js.map +1 -0
- package/theme/neutral-colors.d.ts +4 -0
- package/theme/neutral-colors.d.ts.map +1 -0
- package/theme/neutral-colors.js +19 -0
- package/theme/neutral-colors.js.map +1 -0
- package/theme/rgb-color.d.ts +9 -0
- package/theme/rgb-color.d.ts.map +1 -0
- package/theme/rgb-color.js +13 -0
- package/theme/rgb-color.js.map +1 -0
- package/theme/theme-builder.d.ts +27 -0
- package/theme/theme-builder.d.ts.map +1 -0
- package/theme/theme-builder.js +146 -0
- package/theme/theme-builder.js.map +1 -0
- package/theme/theme-color.d.ts +6 -0
- package/theme/theme-color.d.ts.map +1 -0
- package/theme/theme-color.js +2 -0
- package/theme/theme-color.js.map +1 -0
- package/all.d.ts +0 -9
- package/all.d.ts.map +0 -1
- package/all.js +0 -9
- package/all.js.map +0 -1
- package/card/button-set.d.ts +0 -11
- package/card/button-set.d.ts.map +0 -1
- package/card/button-set.js.map +0 -1
- package/shared/area-hidden-element.d.ts +0 -5
- package/shared/area-hidden-element.d.ts.map +0 -1
- package/shared/area-hidden-element.js +0 -10
- package/shared/area-hidden-element.js.map +0 -1
package/divider/divider.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class UmDivider extends LitElement {
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
|
+
/**
|
|
5
|
+
* When true, remove the margin of the divider
|
|
6
|
+
*/
|
|
4
7
|
noMargin: boolean;
|
|
5
8
|
}
|
|
6
9
|
declare global {
|
|
7
10
|
interface HTMLElementTagNameMap {
|
|
8
|
-
'u-divider':
|
|
11
|
+
'u-divider': UmDivider;
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=divider.d.ts.map
|
package/divider/divider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../src/divider/divider.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../src/divider/divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,qBACa,SAAU,SAAQ,UAAU;IAEvC,OAAgB,MAAM,0BAAU;IAEhC;;OAEG;IAC+D,QAAQ,UAAS;CACpF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,SAAS,CAAC;KACxB;CACF"}
|
package/divider/divider.js
CHANGED
|
@@ -4,32 +4,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { LitElement } from 'lit';
|
|
8
8
|
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
-
|
|
9
|
+
import { styles } from './divider.styles';
|
|
10
|
+
let UmDivider = class UmDivider extends LitElement {
|
|
10
11
|
constructor() {
|
|
11
12
|
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* When true, remove the margin of the divider
|
|
15
|
+
*/
|
|
12
16
|
this.noMargin = false;
|
|
13
17
|
}
|
|
14
18
|
};
|
|
15
|
-
|
|
16
|
-
:host {
|
|
17
|
-
--_divider-thickness: var(--u-divider-thickness, 1px);
|
|
18
|
-
display: block;
|
|
19
|
-
margin-block: 8px;
|
|
20
|
-
height: var(--_divider-thickness);
|
|
21
|
-
background-color: var(--u-divider-color, var(--u-outline-variant-color, #cac4d0));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host([no-margin]) {
|
|
25
|
-
margin: 0;
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
19
|
+
UmDivider.styles = styles;
|
|
28
20
|
__decorate([
|
|
29
21
|
property({ type: Boolean, attribute: 'no-margin', reflect: true })
|
|
30
|
-
],
|
|
31
|
-
|
|
22
|
+
], UmDivider.prototype, "noMargin", void 0);
|
|
23
|
+
UmDivider = __decorate([
|
|
32
24
|
customElement('u-divider')
|
|
33
|
-
],
|
|
34
|
-
export {
|
|
25
|
+
], UmDivider);
|
|
26
|
+
export { UmDivider };
|
|
35
27
|
//# sourceMappingURL=divider.js.map
|
package/divider/divider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.js","sourceRoot":"","sources":["../../src/divider/divider.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"divider.js","sourceRoot":"","sources":["../../src/divider/divider.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAGnC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QAIL;;WAEG;QAC+D,aAAQ,GAAG,KAAK,CAAC;IACrF,CAAC;;AANiB,gBAAM,GAAG,MAAM,AAAT,CAAU;AAKkC;IAAjE,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;2CAAkB;AAPxE,SAAS;IADrB,aAAa,CAAC,WAAW,CAAC;GACd,SAAS,CAQrB","sourcesContent":["import { LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { styles } from './divider.styles';\n\n@customElement('u-divider')\nexport class UmDivider extends LitElement {\n\n static override styles = styles;\n\n /**\n * When true, remove the margin of the divider\n */\n @property({type: Boolean, attribute: 'no-margin', reflect: true}) noMargin = false;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'u-divider': UmDivider;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.styles.d.ts","sourceRoot":"","sources":["../../src/divider/divider.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAYlB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styles = css `
|
|
3
|
+
:host {
|
|
4
|
+
--_divider-thickness: var(--u-divider-thickness, 1px);
|
|
5
|
+
display: block;
|
|
6
|
+
margin-block: 8px;
|
|
7
|
+
height: var(--_divider-thickness);
|
|
8
|
+
background-color: var(--u-divider-color, var(--u-color-outline-variant, rgb(202, 196, 208)));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([no-margin]) {
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
//# sourceMappingURL=divider.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.styles.js","sourceRoot":"","sources":["../../src/divider/divider.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;CAYzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n --_divider-thickness: var(--u-divider-thickness, 1px);\n display: block;\n margin-block: 8px;\n height: var(--_divider-thickness);\n background-color: var(--u-divider-color, var(--u-color-outline-variant, rgb(202, 196, 208)));\n }\n\n :host([no-margin]) {\n margin: 0;\n }\n`;\n"]}
|
package/elevation/elevation.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class UmElevation extends LitElement {
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
|
+
ariaHidden: string;
|
|
4
5
|
}
|
|
5
6
|
declare global {
|
|
6
7
|
interface HTMLElementTagNameMap {
|
|
7
|
-
'u-elevation':
|
|
8
|
+
'u-elevation': UmElevation;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=elevation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevation.d.ts","sourceRoot":"","sources":["../../src/elevation/elevation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"elevation.d.ts","sourceRoot":"","sources":["../../src/elevation/elevation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,qBACa,WAAY,SAAQ,UAAU;IACzC,OAAgB,MAAM,0BAAU;IAEvB,UAAU,SAAU;CAC9B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,WAAW,CAAC;KAC5B;CACF"}
|
package/elevation/elevation.js
CHANGED
|
@@ -4,44 +4,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { LitElement } from 'lit';
|
|
8
8
|
import { customElement } from 'lit/decorators.js';
|
|
9
|
-
import {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
--_level: var(--u-elevation-level, 0);
|
|
15
|
-
--_shadow-color: var(--u-shadow-color, #000);
|
|
16
|
-
|
|
17
|
-
-webkit-tap-highlight-color: transparent;
|
|
18
|
-
position: absolute;
|
|
19
|
-
inset: 0;
|
|
20
|
-
border-radius: inherit;
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host::before,
|
|
25
|
-
:host::after {
|
|
26
|
-
content: '';
|
|
27
|
-
position: absolute;
|
|
28
|
-
inset: 0;
|
|
29
|
-
border-radius: inherit;
|
|
30
|
-
transition: box-shadow 150ms ease-in-out;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host::before {
|
|
34
|
-
box-shadow: 0 calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0 var(--_shadow-color);
|
|
35
|
-
opacity: .3;
|
|
9
|
+
import { styles } from './elevation.styles';
|
|
10
|
+
let UmElevation = class UmElevation extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.ariaHidden = "true";
|
|
36
14
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
opacity: .15;
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
Elevation = __decorate([
|
|
15
|
+
};
|
|
16
|
+
UmElevation.styles = styles;
|
|
17
|
+
UmElevation = __decorate([
|
|
44
18
|
customElement('u-elevation')
|
|
45
|
-
],
|
|
46
|
-
export {
|
|
19
|
+
], UmElevation);
|
|
20
|
+
export { UmElevation };
|
|
47
21
|
//# sourceMappingURL=elevation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevation.js","sourceRoot":"","sources":["../../src/elevation/elevation.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"elevation.js","sourceRoot":"","sources":["../../src/elevation/elevation.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGrC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QAGI,eAAU,GAAG,MAAM,CAAC;IAC/B,CAAC;;AAHiB,kBAAM,GAAG,MAAM,AAAT,CAAU;AADrB,WAAW;IADvB,aAAa,CAAC,aAAa,CAAC;GAChB,WAAW,CAIvB","sourcesContent":["import { LitElement } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\nimport { styles } from './elevation.styles';\n\n@customElement('u-elevation')\nexport class UmElevation extends LitElement {\n static override styles = styles;\n\n override ariaHidden = \"true\";\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'u-elevation': UmElevation;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation.styles.d.ts","sourceRoot":"","sources":["../../src/elevation/elevation.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAyBlB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styles = css `
|
|
3
|
+
:host {
|
|
4
|
+
--_level: var(--u-elevation-level, 0);
|
|
5
|
+
--_shadow-color: var(--u-color-shadow, rgb(0, 0, 0));
|
|
6
|
+
-webkit-tap-highlight-color: transparent;
|
|
7
|
+
position: absolute;
|
|
8
|
+
inset: 0;
|
|
9
|
+
border-radius: inherit;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
}
|
|
12
|
+
:host::before, :host::after {
|
|
13
|
+
content: "";
|
|
14
|
+
position: absolute;
|
|
15
|
+
inset: 0;
|
|
16
|
+
border-radius: inherit;
|
|
17
|
+
transition: box-shadow 150ms ease-in-out;
|
|
18
|
+
}
|
|
19
|
+
:host::before {
|
|
20
|
+
box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))) calc(1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))) 0 var(--_shadow-color);
|
|
21
|
+
opacity: 0.3;
|
|
22
|
+
}
|
|
23
|
+
:host::after {
|
|
24
|
+
box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);
|
|
25
|
+
opacity: 0.15;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
//# sourceMappingURL=elevation.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation.styles.js","sourceRoot":"","sources":["../../src/elevation/elevation.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAyBzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n --_level: var(--u-elevation-level, 0);\n --_shadow-color: var(--u-color-shadow, rgb(0, 0, 0));\n -webkit-tap-highlight-color: transparent;\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n }\n :host::before, :host::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n transition: box-shadow 150ms ease-in-out;\n }\n :host::before {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))) calc(1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))) 0 var(--_shadow-color);\n opacity: 0.3;\n }\n :host::after {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);\n opacity: 0.15;\n }\n`;\n"]}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import './button/button.js';
|
|
2
|
+
import './button/fab.js';
|
|
3
|
+
import './button/icon-button.js';
|
|
4
|
+
import './button/button-set.js';
|
|
5
|
+
import './card/card.js';
|
|
6
|
+
import './checkbox/checkbox.js';
|
|
7
|
+
import './container/container.js';
|
|
8
|
+
import './divider/divider.js';
|
|
9
|
+
import './elevation/elevation.js';
|
|
10
|
+
import './ripple/ripple.js';
|
|
11
|
+
import './table/table.js';
|
|
12
|
+
export * from './button/button.js';
|
|
13
|
+
export * from './button/fab.js';
|
|
14
|
+
export * from './button/icon-button.js';
|
|
15
|
+
export * from './button/button-set.js';
|
|
16
|
+
export * from './card/card.js';
|
|
17
|
+
export * from './checkbox/checkbox.js';
|
|
18
|
+
export * from './container/container.js';
|
|
19
|
+
export * from './divider/divider.js';
|
|
20
|
+
export * from './elevation/elevation.js';
|
|
21
|
+
export * from './ripple/ripple.js';
|
|
22
|
+
export * from './table/table.js';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC;AAChC,OAAO,gBAAgB,CAAC;AACxB,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,kBAAkB,CAAC;AAE1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
package/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import './button/button.js';
|
|
2
|
+
import './button/fab.js';
|
|
3
|
+
import './button/icon-button.js';
|
|
4
|
+
import './button/button-set.js';
|
|
5
|
+
import './card/card.js';
|
|
6
|
+
import './checkbox/checkbox.js';
|
|
7
|
+
import './container/container.js';
|
|
8
|
+
import './divider/divider.js';
|
|
9
|
+
import './elevation/elevation.js';
|
|
10
|
+
import './ripple/ripple.js';
|
|
11
|
+
import './table/table.js';
|
|
12
|
+
export * from './button/button.js';
|
|
13
|
+
export * from './button/fab.js';
|
|
14
|
+
export * from './button/icon-button.js';
|
|
15
|
+
export * from './button/button-set.js';
|
|
16
|
+
export * from './card/card.js';
|
|
17
|
+
export * from './checkbox/checkbox.js';
|
|
18
|
+
export * from './container/container.js';
|
|
19
|
+
export * from './divider/divider.js';
|
|
20
|
+
export * from './elevation/elevation.js';
|
|
21
|
+
export * from './ripple/ripple.js';
|
|
22
|
+
export * from './table/table.js';
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC;AAChC,OAAO,gBAAgB,CAAC;AACxB,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,kBAAkB,CAAC;AAE1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC","sourcesContent":["import './button/button.js';\nimport './button/fab.js';\nimport './button/icon-button.js';\nimport './button/button-set.js';\nimport './card/card.js';\nimport './checkbox/checkbox.js';\nimport './container/container.js';\nimport './divider/divider.js';\nimport './elevation/elevation.js';\nimport './ripple/ripple.js';\nimport './table/table.js';\n\nexport * from './button/button.js';\nexport * from './button/fab.js';\nexport * from './button/icon-button.js';\nexport * from './button/button-set.js';\nexport * from './card/card.js';\nexport * from './checkbox/checkbox.js';\nexport * from './container/container.js';\nexport * from './divider/divider.js';\nexport * from './elevation/elevation.js';\nexport * from './ripple/ripple.js';\nexport * from './table/table.js';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@universal-material/web",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Material web components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -13,32 +13,30 @@
|
|
|
13
13
|
"typescript",
|
|
14
14
|
"lit"
|
|
15
15
|
],
|
|
16
|
+
"module": "./index.js",
|
|
17
|
+
"typings": "./index.d.ts",
|
|
16
18
|
"scripts": {
|
|
17
|
-
"build": "
|
|
18
|
-
"build:watch": "
|
|
19
|
-
"
|
|
19
|
+
"build": "run-s clean sass:sass-to-ts script:build copy",
|
|
20
|
+
"build:watch": "npm-run-all clean sass:sass-to-ts --parallel sass:sass-to-ts:watch script:build:watch",
|
|
21
|
+
"script:build": "tsc",
|
|
22
|
+
"script:build:watch": "tsc --watch",
|
|
23
|
+
"script:build:prod": "npm run clean && npm run script:build && npm run copy",
|
|
24
|
+
"sass:sass-to-ts": "gulp -f gulpfile.js sass:sass-to-ts",
|
|
25
|
+
"sass:sass-to-ts:watch": "gulp -f gulpfile.js sass:sass-to-ts:watch",
|
|
26
|
+
"clean": "rimraf ./dist/ rimraf ./src/**/*.d.ts rimraf ./src/**/*.styles.ts",
|
|
27
|
+
"copy": "copyfiles package.json README.md custom-elements.json dist/",
|
|
20
28
|
"lint": "npm run lint:lit-analyzer && npm run lint:eslint",
|
|
21
29
|
"lint:eslint": "eslint 'src/**/*.ts'",
|
|
22
30
|
"lint:lit-analyzer": "lit-analyzer",
|
|
23
31
|
"format": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --ignore-path ./.eslintignore --write",
|
|
24
|
-
"docs": "npm run docs:clean && npm run build && npm run analyze && npm run docs:build
|
|
25
|
-
"docs:clean": "rimraf docs",
|
|
26
|
-
"docs:
|
|
27
|
-
"docs:
|
|
28
|
-
"docs:
|
|
29
|
-
"docs:assets": "cp node_modules/prismjs/themes/prism-okaidia.css docs/",
|
|
30
|
-
"docs:watch": "run-p docs:gulp docs:serve",
|
|
31
|
-
"docs:gulp": "gulp -f gulpfile.cjs docs",
|
|
32
|
+
"docs": "npm run docs:clean && npm run build && npm run analyze && npm run docs:build",
|
|
33
|
+
"docs:clean": "rimraf ./docs/dist/",
|
|
34
|
+
"docs:build": "gulp -f gulpfile.js docs",
|
|
35
|
+
"docs:watch": "run-p docs:gulp:watch docs:serve",
|
|
36
|
+
"docs:gulp:watch": "gulp -f gulpfile.js docs:watch",
|
|
32
37
|
"docs:serve": "wds --root-dir=docs/dist --node-resolve --watch",
|
|
33
38
|
"analyze": "cem analyze --litelement --globs \"src/**/*.ts\"",
|
|
34
39
|
"analyze:watch": "cem analyze --litelement --globs \"src/**/*.ts\" --watch",
|
|
35
|
-
"serve": "wds --watch",
|
|
36
|
-
"serve:prod": "MODE=prod npm run serve",
|
|
37
|
-
"test": "npm run test:dev && npm run test:prod",
|
|
38
|
-
"test:dev": "wtr",
|
|
39
|
-
"test:watch": "wtr --watch",
|
|
40
|
-
"test:prod": "MODE=prod wtr",
|
|
41
|
-
"test:prod:watch": "MODE=prod wtr --watch",
|
|
42
40
|
"checksize": "rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js"
|
|
43
41
|
},
|
|
44
42
|
"author": "https://github.com/universal-material/universal-material/graphs/contributors",
|
|
@@ -49,33 +47,44 @@
|
|
|
49
47
|
"license": "MIT",
|
|
50
48
|
"homepage": "https://universal-material.github.io",
|
|
51
49
|
"dependencies": {
|
|
52
|
-
"lit": "^3.0.0"
|
|
50
|
+
"lit": "^3.0.0",
|
|
51
|
+
"@material/material-color-utilities": "^0.2.7"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
54
|
"@11ty/eleventy": "^1.0.1",
|
|
56
55
|
"@11ty/eleventy-plugin-syntaxhighlight": "^4.0.0",
|
|
57
56
|
"@custom-elements-manifest/analyzer": "^0.6.3",
|
|
58
57
|
"@open-wc/testing": "^3.1.5",
|
|
59
|
-
"@rollup/plugin-node-resolve": "^
|
|
60
|
-
"@rollup/plugin-replace": "^5.0.
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
62
|
-
"@typescript-eslint/parser": "^5.
|
|
58
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
59
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
61
|
+
"@typescript-eslint/parser": "^7.5.0",
|
|
63
62
|
"@web/dev-server": "^0.1.31",
|
|
64
63
|
"@web/dev-server-legacy": "^1.0.0",
|
|
65
64
|
"@web/test-runner": "^0.15.0",
|
|
66
65
|
"@web/test-runner-playwright": "^0.9.0",
|
|
67
66
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
|
68
|
-
"
|
|
67
|
+
"copyfiles": "^2.4.1",
|
|
68
|
+
"eslint": "^8.57.0",
|
|
69
|
+
"eslint-plugin-import": "^2.29.1",
|
|
70
|
+
"eslint-plugin-import-helpers": "^1.3.1",
|
|
71
|
+
"eslint-plugin-unused-imports": "^3.1.0",
|
|
69
72
|
"gulp": "^4.0.2",
|
|
70
73
|
"gulp-notify": "^4.0.0",
|
|
71
74
|
"gulp-pug": "^5.0.0",
|
|
75
|
+
"gulp-sass": "^5.1.0",
|
|
76
|
+
"html-entities": "^2.5.2",
|
|
72
77
|
"lit-analyzer": "^1.2.1",
|
|
73
78
|
"npm-run-all": "^4.1.5",
|
|
74
79
|
"prettier": "^2.6.2",
|
|
75
80
|
"rimraf": "^3.0.2",
|
|
76
81
|
"rollup": "^2.73.0",
|
|
77
|
-
"rollup-plugin-summary": "^
|
|
82
|
+
"rollup-plugin-summary": "^2.0.0",
|
|
78
83
|
"rollup-plugin-terser": "^7.0.2",
|
|
84
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
85
|
+
"sass": "^1.74.1",
|
|
86
|
+
"through2": "^4.0.2",
|
|
87
|
+
"ts-morph": "^22.0.0",
|
|
79
88
|
"typescript": "~5.3.3"
|
|
80
89
|
},
|
|
81
90
|
"customElements": "custom-elements.json"
|
package/ripple/ripple.d.ts
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { HTMLTemplateResult, LitElement } from 'lit';
|
|
2
|
+
export declare class UmRipple extends LitElement {
|
|
3
3
|
static styles: import("lit").CSSResult;
|
|
4
|
-
disabled: boolean;
|
|
5
4
|
private isTouching;
|
|
5
|
+
/**
|
|
6
|
+
* Disables the ripple.
|
|
7
|
+
*/
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
private readonly rippleContainer;
|
|
6
10
|
constructor();
|
|
11
|
+
render(): HTMLTemplateResult;
|
|
7
12
|
private attachEvents;
|
|
8
13
|
private handleMouseDown;
|
|
9
14
|
private handleTouchStart;
|
|
10
15
|
private canCreateRipple;
|
|
11
|
-
createRipple(
|
|
16
|
+
createRipple(targetX?: number | null, targetY?: number | null, releaseEventName?: string | null): (() => void) | null;
|
|
17
|
+
private createDismissEvent;
|
|
12
18
|
private static _setElementSquareSizeAndCenter;
|
|
13
19
|
}
|
|
14
20
|
declare global {
|
|
15
21
|
interface HTMLElementTagNameMap {
|
|
16
|
-
'u-ripple':
|
|
22
|
+
'u-ripple': UmRipple;
|
|
17
23
|
}
|
|
18
24
|
}
|
|
19
25
|
//# sourceMappingURL=ripple.d.ts.map
|
package/ripple/ripple.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ripple.d.ts","sourceRoot":"","sources":["../../src/ripple/ripple.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ripple.d.ts","sourceRoot":"","sources":["../../src/ripple/ripple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,kBAAkB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAK3D,qBACa,QAAS,SAAQ,UAAU;IAEtC,OAAgB,MAAM,0BAAU;IAEhC,OAAO,CAAC,UAAU,CAAS;IAE3B;;OAEG;IACuC,QAAQ,UAAS;IAE/B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAe;;IASlE,MAAM,IAAI,kBAAkB;IAIrC,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,eAAe;IAYvB,YAAY,CAAC,OAAO,GAAE,MAAM,GAAG,IAAW,EAAE,OAAO,GAAE,MAAM,GAAG,IAAW,EAAE,gBAAgB,GAAE,MAAM,GAAG,IAAW,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;IA+CvI,OAAO,CAAC,kBAAkB;IAkB1B,OAAO,CAAC,MAAM,CAAC,8BAA8B;CAQ9C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,QAAQ,CAAC;KACtB;CACF"}
|