@digital-realty/ix-fab 1.0.9 → 1.0.11-alpha.0

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/dist/IxFab.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- import { LitElement } from 'lit';
2
- import '@material/web/fab/fab.js';
3
- import '@material/web/icon/icon.js';
4
- export type FabVariant = 'surface' | 'primary' | 'secondary' | 'tertiary';
5
- export type FabSize = 'medium' | 'small' | 'large';
6
- export declare class IxFab extends LitElement {
7
- /**
8
- * Lowers the FAB's elevation.
9
- */
10
- lowered: boolean;
11
- /**
12
- * Changes the colour of the FAB
13
- */
14
- variant: FabVariant;
15
- /**
16
- * The text to display on the FAB.
17
- */
18
- label: string;
19
- /**
20
- * The size of the FAB.
21
- */
22
- size: FabSize;
23
- onClick: (event: MouseEvent) => void;
24
- render(): import("lit").TemplateResult<1>;
25
- }
1
+ import { LitElement } from 'lit';
2
+ import '@material/web/fab/fab.js';
3
+ import '@material/web/icon/icon.js';
4
+ export type FabVariant = 'surface' | 'primary' | 'secondary' | 'tertiary';
5
+ export type FabSize = 'medium' | 'small' | 'large';
6
+ export declare class IxFab extends LitElement {
7
+ /**
8
+ * Lowers the FAB's elevation.
9
+ */
10
+ lowered: boolean;
11
+ /**
12
+ * Changes the colour of the FAB
13
+ */
14
+ variant: FabVariant;
15
+ /**
16
+ * The text to display on the FAB.
17
+ */
18
+ label: string;
19
+ /**
20
+ * The size of the FAB.
21
+ */
22
+ size: FabSize;
23
+ onClick: (event: MouseEvent) => void;
24
+ render(): import("lit").TemplateResult<1>;
25
+ }
package/dist/IxFab.js CHANGED
@@ -1,31 +1,31 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement, html } from 'lit';
3
- import { property } from 'lit/decorators.js';
4
- import '@material/web/fab/fab.js';
5
- import '@material/web/icon/icon.js';
6
- export class IxFab extends LitElement {
7
- constructor() {
8
- super(...arguments);
9
- /**
10
- * Lowers the FAB's elevation.
11
- */
12
- this.lowered = false;
13
- /**
14
- * Changes the colour of the FAB
15
- */
16
- this.variant = 'surface';
17
- /**
18
- * The text to display on the FAB.
19
- */
20
- this.label = '';
21
- /**
22
- * The size of the FAB.
23
- */
24
- this.size = 'medium';
25
- // eslint-disable-next-line class-methods-use-this
26
- this.onClick = () => { };
27
- }
28
- render() {
1
+ import { __decorate } from "tslib";
2
+ import { LitElement, html } from 'lit';
3
+ import { property } from 'lit/decorators.js';
4
+ import '@material/web/fab/fab.js';
5
+ import '@material/web/icon/icon.js';
6
+ export class IxFab extends LitElement {
7
+ constructor() {
8
+ super(...arguments);
9
+ /**
10
+ * Lowers the FAB's elevation.
11
+ */
12
+ this.lowered = false;
13
+ /**
14
+ * Changes the colour of the FAB
15
+ */
16
+ this.variant = 'surface';
17
+ /**
18
+ * The text to display on the FAB.
19
+ */
20
+ this.label = '';
21
+ /**
22
+ * The size of the FAB.
23
+ */
24
+ this.size = 'medium';
25
+ // eslint-disable-next-line class-methods-use-this
26
+ this.onClick = () => { };
27
+ }
28
+ render() {
29
29
  return html `
30
30
  <md-fab
31
31
  .label=${this.label}
@@ -36,22 +36,22 @@ export class IxFab extends LitElement {
36
36
  >
37
37
  <slot slot="icon"></slot>
38
38
  </md-fab>
39
- `;
40
- }
41
- }
42
- __decorate([
43
- property({ type: Boolean, reflect: true })
44
- ], IxFab.prototype, "lowered", void 0);
45
- __decorate([
46
- property()
47
- ], IxFab.prototype, "variant", void 0);
48
- __decorate([
49
- property()
50
- ], IxFab.prototype, "label", void 0);
51
- __decorate([
52
- property()
53
- ], IxFab.prototype, "size", void 0);
54
- __decorate([
55
- property()
56
- ], IxFab.prototype, "onClick", void 0);
39
+ `;
40
+ }
41
+ }
42
+ __decorate([
43
+ property({ type: Boolean, reflect: true })
44
+ ], IxFab.prototype, "lowered", void 0);
45
+ __decorate([
46
+ property()
47
+ ], IxFab.prototype, "variant", void 0);
48
+ __decorate([
49
+ property()
50
+ ], IxFab.prototype, "label", void 0);
51
+ __decorate([
52
+ property()
53
+ ], IxFab.prototype, "size", void 0);
54
+ __decorate([
55
+ property()
56
+ ], IxFab.prototype, "onClick", void 0);
57
57
  //# sourceMappingURL=IxFab.js.map
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { IxFab } from './IxFab.js';
1
+ export { IxFab } from './IxFab.js';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { IxFab } from './IxFab.js';
1
+ export { IxFab } from './IxFab.js';
2
2
  //# sourceMappingURL=index.js.map
package/dist/ix-fab.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/dist/ix-fab.js CHANGED
@@ -1,3 +1,3 @@
1
- import { IxFab } from './IxFab.js';
2
- window.customElements.define('ix-fab', IxFab);
1
+ import { IxFab } from './IxFab.js';
2
+ window.customElements.define('ix-fab', IxFab);
3
3
  //# sourceMappingURL=ix-fab.js.map
@@ -1,4 +1,4 @@
1
- import { IxFab as IxFabLit } from '../IxFab.js';
2
- export declare const IxFab: import("@lit/react").ReactWebComponent<IxFabLit, {
3
- onclick: string;
4
- }>;
1
+ import { IxFab as IxFabLit } from '../IxFab.js';
2
+ export declare const IxFab: import("@lit/react").ReactWebComponent<IxFabLit, {
3
+ onclick: string;
4
+ }>;
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit/react';
3
- import { IxFab as IxFabLit } from '../IxFab.js';
4
- customElements.define('ix-fab', IxFabLit);
5
- export const IxFab = createComponent({
6
- tagName: 'ix-fab',
7
- elementClass: IxFabLit,
8
- react: React,
9
- events: {
10
- onclick: 'onClick',
11
- },
12
- });
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { IxFab as IxFabLit } from '../IxFab.js';
4
+ customElements.define('ix-fab', IxFabLit);
5
+ export const IxFab = createComponent({
6
+ tagName: 'ix-fab',
7
+ elementClass: IxFabLit,
8
+ react: React,
9
+ events: {
10
+ onclick: 'onClick',
11
+ },
12
+ });
13
13
  //# sourceMappingURL=IxFab.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent ix-fab following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "Digital Realty",
6
- "version": "1.0.9",
6
+ "version": "1.0.11-alpha.0",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -103,5 +103,5 @@
103
103
  "README.md",
104
104
  "LICENSE"
105
105
  ],
106
- "gitHead": "c7668fda980293ca038c0dd061ebe350fa88ee60"
106
+ "gitHead": "020de6dab25bbe6058e9a71b2c56681822403481"
107
107
  }