igniteui-webcomponents 1.0.0-beta.1 → 1.0.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/README.md +31 -2
- package/components/avatar/avatar.d.ts +2 -0
- package/components/avatar/avatar.d.ts.map +1 -1
- package/components/avatar/avatar.js +11 -7
- package/components/avatar/avatar.js.map +1 -1
- package/components/badge/badge.d.ts +1 -1
- package/components/badge/badge.d.ts.map +1 -1
- package/components/badge/badge.js +5 -27
- package/components/badge/badge.js.map +1 -1
- package/components/badge/badge.material.css.d.ts.map +1 -1
- package/components/badge/badge.material.css.js +1 -1
- package/components/badge/badge.material.css.js.map +1 -1
- package/components/button/button-base.d.ts +11 -15
- package/components/button/button-base.d.ts.map +1 -1
- package/components/button/button-base.js +53 -27
- package/components/button/button-base.js.map +1 -1
- package/components/button/button.d.ts +15 -2
- package/components/button/button.d.ts.map +1 -1
- package/components/button/button.js +34 -24
- package/components/button/button.js.map +1 -1
- package/components/button/button.material.css.d.ts.map +1 -1
- package/components/button/button.material.css.js +1 -1
- package/components/button/button.material.css.js.map +1 -1
- package/components/button/icon-button.d.ts +2 -6
- package/components/button/icon-button.d.ts.map +1 -1
- package/components/button/icon-button.js +8 -52
- package/components/button/icon-button.js.map +1 -1
- package/components/calendar/calendar.d.ts +1 -2
- package/components/calendar/calendar.d.ts.map +1 -1
- package/components/calendar/calendar.js +5 -10
- package/components/calendar/calendar.js.map +1 -1
- package/components/calendar/calendar.material.css.d.ts.map +1 -1
- package/components/calendar/calendar.material.css.js +1 -1
- package/components/calendar/calendar.material.css.js.map +1 -1
- package/components/calendar/common/calendar-base.d.ts +2 -0
- package/components/calendar/common/calendar-base.d.ts.map +1 -1
- package/components/calendar/common/calendar-base.js +2 -0
- package/components/calendar/common/calendar-base.js.map +1 -1
- package/components/calendar/days-view/days-view.js +1 -1
- package/components/calendar/days-view/days-view.js.map +1 -1
- package/components/calendar/days-view/days-view.material.css.d.ts.map +1 -1
- package/components/calendar/days-view/days-view.material.css.js +1 -1
- package/components/calendar/days-view/days-view.material.css.js.map +1 -1
- package/components/calendar/months-view/months-view.d.ts.map +1 -1
- package/components/calendar/months-view/months-view.js +1 -1
- package/components/calendar/months-view/months-view.js.map +1 -1
- package/components/calendar/years-view/years-view.d.ts.map +1 -1
- package/components/calendar/years-view/years-view.js +1 -1
- package/components/calendar/years-view/years-view.js.map +1 -1
- package/components/card/card.actions.d.ts +3 -2
- package/components/card/card.actions.d.ts.map +1 -1
- package/components/card/card.actions.js +4 -14
- package/components/card/card.actions.js.map +1 -1
- package/components/card/card.content.d.ts +3 -2
- package/components/card/card.content.d.ts.map +1 -1
- package/components/card/card.content.js +4 -14
- package/components/card/card.content.js.map +1 -1
- package/components/card/card.d.ts +1 -0
- package/components/card/card.d.ts.map +1 -1
- package/components/card/card.header.d.ts +3 -2
- package/components/card/card.header.d.ts.map +1 -1
- package/components/card/card.header.js +4 -14
- package/components/card/card.header.js.map +1 -1
- package/components/card/card.js +5 -8
- package/components/card/card.js.map +1 -1
- package/components/card/card.media.d.ts +3 -2
- package/components/card/card.media.d.ts.map +1 -1
- package/components/card/card.media.js +4 -14
- package/components/card/card.media.js.map +1 -1
- package/components/checkbox/checkbox.d.ts +1 -0
- package/components/checkbox/checkbox.d.ts.map +1 -1
- package/components/checkbox/checkbox.js +4 -7
- package/components/checkbox/checkbox.js.map +1 -1
- package/components/checkbox/switch.d.ts +1 -0
- package/components/checkbox/switch.d.ts.map +1 -1
- package/components/checkbox/switch.js +3 -7
- package/components/checkbox/switch.js.map +1 -1
- package/components/common/definitions/defineAllComponents.d.ts +2 -0
- package/components/common/definitions/defineAllComponents.d.ts.map +1 -0
- package/components/common/definitions/defineAllComponents.js +57 -0
- package/components/common/definitions/defineAllComponents.js.map +1 -0
- package/components/common/definitions/defineComponents.d.ts +2 -0
- package/components/common/definitions/defineComponents.d.ts.map +1 -0
- package/components/common/definitions/defineComponents.js +9 -0
- package/components/common/definitions/defineComponents.js.map +1 -0
- package/components/common/mixins/sizable.d.ts.map +1 -1
- package/components/common/mixins/sizable.js.map +1 -1
- package/components/form/form.d.ts +1 -0
- package/components/form/form.d.ts.map +1 -1
- package/components/form/form.js +10 -8
- package/components/form/form.js.map +1 -1
- package/components/icon/icon.d.ts +1 -0
- package/components/icon/icon.d.ts.map +1 -1
- package/components/icon/icon.js +1 -0
- package/components/icon/icon.js.map +1 -1
- package/components/input/input.d.ts +2 -0
- package/components/input/input.d.ts.map +1 -1
- package/components/input/input.js +6 -8
- package/components/input/input.js.map +1 -1
- package/components/list/list-header.d.ts +2 -0
- package/components/list/list-header.d.ts.map +1 -1
- package/components/list/list-header.js +6 -13
- package/components/list/list-header.js.map +1 -1
- package/components/list/list-item.d.ts +2 -0
- package/components/list/list-item.d.ts.map +1 -1
- package/components/list/list-item.js +6 -13
- package/components/list/list-item.js.map +1 -1
- package/components/list/list.d.ts +2 -0
- package/components/list/list.d.ts.map +1 -1
- package/components/list/list.js +6 -13
- package/components/list/list.js.map +1 -1
- package/components/nav-drawer/nav-drawer-header-item.d.ts +1 -0
- package/components/nav-drawer/nav-drawer-header-item.d.ts.map +1 -1
- package/components/nav-drawer/nav-drawer-header-item.js +3 -13
- package/components/nav-drawer/nav-drawer-header-item.js.map +1 -1
- package/components/nav-drawer/nav-drawer-item.d.ts +1 -3
- package/components/nav-drawer/nav-drawer-item.d.ts.map +1 -1
- package/components/nav-drawer/nav-drawer-item.js +5 -34
- package/components/nav-drawer/nav-drawer-item.js.map +1 -1
- package/components/nav-drawer/nav-drawer.d.ts +1 -0
- package/components/nav-drawer/nav-drawer.d.ts.map +1 -1
- package/components/nav-drawer/nav-drawer.js +4 -7
- package/components/nav-drawer/nav-drawer.js.map +1 -1
- package/components/navbar/navbar.d.ts +1 -0
- package/components/navbar/navbar.d.ts.map +1 -1
- package/components/navbar/navbar.js +3 -13
- package/components/navbar/navbar.js.map +1 -1
- package/components/navbar/navbar.material.css.d.ts.map +1 -1
- package/components/navbar/navbar.material.css.js +1 -1
- package/components/navbar/navbar.material.css.js.map +1 -1
- package/components/radio/radio.d.ts +1 -0
- package/components/radio/radio.d.ts.map +1 -1
- package/components/radio/radio.js +4 -7
- package/components/radio/radio.js.map +1 -1
- package/components/radio-group/radio-group.d.ts +1 -0
- package/components/radio-group/radio-group.d.ts.map +1 -1
- package/components/radio-group/radio-group.js +4 -7
- package/components/radio-group/radio-group.js.map +1 -1
- package/components/ripple/ripple.d.ts +1 -0
- package/components/ripple/ripple.d.ts.map +1 -1
- package/components/ripple/ripple.js +3 -13
- package/components/ripple/ripple.js.map +1 -1
- package/custom-elements.json +87 -167
- package/index.d.ts +12 -5
- package/index.d.ts.map +1 -1
- package/index.js +11 -5
- package/index.js.map +1 -1
- package/package.json +8 -2
- package/themes/bootstrap.css +1 -1
- package/themes/fluent.css +1 -1
- package/themes/indigo.css +1 -1
- package/vscode-html-custom-data.json +75 -134
- package/components/button/link-button.d.ts +0 -14
- package/components/button/link-button.d.ts.map +0 -1
- package/components/button/link-button.js +0 -48
- package/components/button/link-button.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,18 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/IgniteUI/igniteui-webcomponents/actions/workflows/node.js.yml)
|
|
4
4
|
[](https://coveralls.io/github/IgniteUI/igniteui-webcomponents)
|
|
5
|
+
[](https://badge.fury.io/js/igniteui-webcomponents)
|
|
5
6
|
[](https://discord.gg/39MjrTRqds)
|
|
6
7
|
|
|
7
8
|
[Ignite UI for Web Components](https://www.infragistics.com/products/ignite-ui-web-components) is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
|
|
8
9
|
|
|
9
10
|
## Usage
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
In order to use the Ignite UI Web Components in your application you should install the `igniteui-webcomponents` package:
|
|
12
13
|
|
|
14
|
+
```
|
|
15
|
+
npm install igniteui-webcomponents
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Next you will need to import the components that you want to use. You could import one or more components using the `defineComponents` function like this:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { defineComponents, IgcAvatarComponent, IgcBadgeComponent } from 'igniteui-webcomponents';
|
|
22
|
+
|
|
23
|
+
defineComponents(IgcAvatarComponent, IgcBadgeComponent);
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
You could also import all of the components using the `defineAllComponents` function:
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import { defineAllComponents } from 'igniteui-webcomponents';
|
|
30
|
+
|
|
31
|
+
defineAllComponents();
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Please note that importing all of the components will increase the bundle size of your application. That's why we recommend you to import only the components that you are actually using.
|
|
35
|
+
|
|
36
|
+
After the components are imported you could use them in your html:
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<igc-avatar initials="AZ"></igc-avatar>
|
|
40
|
+
<igc-badge></igc-badge>
|
|
41
|
+
```
|
|
13
42
|
|
|
14
43
|
## Setup
|
|
15
44
|
|
|
16
|
-
|
|
45
|
+
In order to run the repository locally from the root folder run:
|
|
17
46
|
|
|
18
47
|
```
|
|
19
48
|
npm install
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
declare const IgcAvatarComponent_base: import("../common/mixins/constructor.js").Constructor<import("../common/mixins/sizable.js").SizableInterface> & typeof LitElement;
|
|
3
3
|
export default class IgcAvatarComponent extends IgcAvatarComponent_base {
|
|
4
|
+
static tagName: string;
|
|
4
5
|
static styles: import("lit").CSSResult[];
|
|
5
6
|
src: string;
|
|
6
7
|
private hasError;
|
|
@@ -9,6 +10,7 @@ export default class IgcAvatarComponent extends IgcAvatarComponent_base {
|
|
|
9
10
|
shape: 'circle' | 'rounded' | 'square';
|
|
10
11
|
private get classes();
|
|
11
12
|
constructor();
|
|
13
|
+
protected handleErrorState(): void;
|
|
12
14
|
protected render(): import("lit").TemplateResult<1>;
|
|
13
15
|
}
|
|
14
16
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAqBvC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,uBAAwB;IAEtE,OAAc,MAAM,4BAAY;IAIzB,GAAG,EAAG,MAAM,CAAC;IAGpB,OAAO,CAAC,QAAQ,CAAS;IAIlB,GAAG,EAAG,MAAM,CAAC;IAIb,QAAQ,EAAG,MAAM,CAAC;IAIlB,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAY;IAEzD,OAAO,KAAK,OAAO,GAWlB;;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAqBvC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,uBAAwB;IAEtE,OAAc,OAAO,SAAgB;IAGrC,OAAc,MAAM,4BAAY;IAIzB,GAAG,EAAG,MAAM,CAAC;IAGpB,OAAO,CAAC,QAAQ,CAAS;IAIlB,GAAG,EAAG,MAAM,CAAC;IAIb,QAAQ,EAAG,MAAM,CAAC;IAIlB,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAY;IAEzD,OAAO,KAAK,OAAO,GAWlB;;IAQD,SAAS,CAAC,gBAAgB;IAI1B,SAAS,CAAC,MAAM;CAyBjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,kBAAkB,CAAC;KAClC;CACF"}
|
|
@@ -5,12 +5,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement } from 'lit';
|
|
8
|
-
import {
|
|
8
|
+
import { property, state } from 'lit/decorators.js';
|
|
9
9
|
import { classMap } from 'lit/directives/class-map.js';
|
|
10
10
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
11
|
+
import { watch } from '../common/decorators/watch.js';
|
|
11
12
|
import { SizableMixin } from '../common/mixins/sizable.js';
|
|
12
13
|
import { styles } from './avatar.material.css';
|
|
13
|
-
|
|
14
|
+
export default class IgcAvatarComponent extends SizableMixin(LitElement) {
|
|
14
15
|
constructor() {
|
|
15
16
|
super();
|
|
16
17
|
this.hasError = false;
|
|
@@ -28,6 +29,9 @@ let IgcAvatarComponent = class IgcAvatarComponent extends SizableMixin(LitElemen
|
|
|
28
29
|
large: size === 'large',
|
|
29
30
|
};
|
|
30
31
|
}
|
|
32
|
+
handleErrorState() {
|
|
33
|
+
this.hasError = false;
|
|
34
|
+
}
|
|
31
35
|
render() {
|
|
32
36
|
return html `
|
|
33
37
|
<div
|
|
@@ -53,7 +57,8 @@ let IgcAvatarComponent = class IgcAvatarComponent extends SizableMixin(LitElemen
|
|
|
53
57
|
</div>
|
|
54
58
|
`;
|
|
55
59
|
}
|
|
56
|
-
}
|
|
60
|
+
}
|
|
61
|
+
IgcAvatarComponent.tagName = 'igc-avatar';
|
|
57
62
|
IgcAvatarComponent.styles = [styles];
|
|
58
63
|
__decorate([
|
|
59
64
|
property()
|
|
@@ -70,8 +75,7 @@ __decorate([
|
|
|
70
75
|
__decorate([
|
|
71
76
|
property({ reflect: true })
|
|
72
77
|
], IgcAvatarComponent.prototype, "shape", void 0);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
], IgcAvatarComponent);
|
|
76
|
-
export default IgcAvatarComponent;
|
|
78
|
+
__decorate([
|
|
79
|
+
watch('src')
|
|
80
|
+
], IgcAvatarComponent.prototype, "handleErrorState", null);
|
|
77
81
|
//# sourceMappingURL=avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/components/avatar/avatar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/components/avatar/avatar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAe/C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY,CAAC,UAAU,CAAC;IAuCtE;QACE,KAAK,EAAE,CAAC;QA5BF,aAAQ,GAAG,KAAK,CAAC;QAYlB,UAAK,GAAoC,QAAQ,CAAC;QAiBvD,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;IACtB,CAAC;IAhBD,IAAY,OAAO;QACjB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAE7B,OAAO;YACL,MAAM,EAAE,KAAK,KAAK,QAAQ;YAC1B,OAAO,EAAE,KAAK,KAAK,SAAS;YAC5B,MAAM,EAAE,KAAK,KAAK,QAAQ;YAC1B,KAAK,EAAE,IAAI,KAAK,OAAO;YACvB,MAAM,EAAE,IAAI,KAAK,QAAQ;YACzB,KAAK,EAAE,IAAI,KAAK,OAAO;SACxB,CAAC;IACJ,CAAC;IAQS,gBAAgB;QACxB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAES,MAAM;QACd,OAAO,IAAI,CAAA;;;;;+BAKgB,IAAI,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK;gBAC3C,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;;UAE5B,IAAI,CAAC,QAAQ;YACb,CAAC,CAAC,IAAI,CAAA,yBAAyB,IAAI,CAAC,QAAQ,SAAS;YACrD,CAAC,CAAC,IAAI,CAAA,iBAAiB;UACvB,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ;YAC1B,CAAC,CAAC,IAAI,CAAA;;;sBAGM,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;sBACnB,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;0BACf,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;;aAEzC;YACH,CAAC,CAAC,EAAE;;KAET,CAAC;IACJ,CAAC;;AAvEa,0BAAO,GAAG,YAAY,CAAC;AAGvB,yBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAIhC;IADC,QAAQ,EAAE;+CACS;AAGpB;IADC,KAAK,EAAE;oDACiB;AAIzB;IADC,QAAQ,EAAE;+CACS;AAIpB;IADC,QAAQ,EAAE;oDACc;AAIzB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC6B;AAqBzD;IADC,KAAK,CAAC,KAAK,CAAC;0DAGZ","sourcesContent":["import { html, LitElement } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { watch } from '../common/decorators/watch.js';\nimport { SizableMixin } from '../common/mixins/sizable.js';\nimport { styles } from './avatar.material.css';\n\n/**\n * An avatar component is used as a representation of a user identity\n * typically in a user profile.\n *\n * @element igc-avatar\n *\n * @slot - Renders an icon inside the default slot.\n *\n * @csspart base - The base wrapper of the avatar.\n * @csspart initials - The initials wrapper of the avatar.\n * @csspart image - The image wrapper of the avatar.\n * @csspart icon - The icon wrapper of the avatar.\n */\nexport default class IgcAvatarComponent extends SizableMixin(LitElement) {\n /** @private */\n public static tagName = 'igc-avatar';\n\n /** @private */\n public static styles = [styles];\n\n /** The image source to use. */\n @property()\n public src!: string;\n\n @state()\n private hasError = false;\n\n /** Alternative text for the image. */\n @property()\n public alt!: string;\n\n /** Initials to use as a fallback when no image is available. */\n @property()\n public initials!: string;\n\n /** The shape of the avatar. */\n @property({ reflect: true })\n public shape: 'circle' | 'rounded' | 'square' = 'square';\n\n private get classes() {\n const { size, shape } = this;\n\n return {\n circle: shape === 'circle',\n rounded: shape === 'rounded',\n square: shape === 'square',\n small: size === 'small',\n medium: size === 'medium',\n large: size === 'large',\n };\n }\n\n constructor() {\n super();\n this.size = 'small';\n }\n\n @watch('src')\n protected handleErrorState() {\n this.hasError = false;\n }\n\n protected render() {\n return html`\n <div\n part=\"base\"\n role=\"img\"\n aria-label=\"avatar\"\n aria-roledescription=${this.size + ' ' + this.shape}\n class=${classMap(this.classes)}\n >\n ${this.initials\n ? html`<span part=\"initials\">${this.initials}</span>`\n : html` <slot></slot> `}\n ${this.src && !this.hasError\n ? html`\n <img\n part=\"image\"\n alt=${ifDefined(this.alt)}\n src=${ifDefined(this.src)}\n @error=\"${() => (this.hasError = true)}\"\n />\n `\n : ''}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-avatar': IgcAvatarComponent;\n }\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
export default class IgcBadgeComponent extends LitElement {
|
|
3
|
+
static tagName: string;
|
|
3
4
|
static styles: import("lit").CSSResult;
|
|
4
5
|
variant?: 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
5
6
|
outlined: boolean;
|
|
6
7
|
shape?: 'rounded' | 'square';
|
|
7
|
-
private get classes();
|
|
8
8
|
protected render(): import("lit").TemplateResult<1>;
|
|
9
9
|
}
|
|
10
10
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAcvC,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU;IAEvD,OAAc,OAAO,SAAe;IAGpC,OAAc,MAAM,0BAAU;IAIvB,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAC1D;IAIL,QAAQ,UAAS;IAIjB,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAa;IAEhD,SAAS,CAAC,MAAM;CAOjB;AAOD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,iBAAiB,CAAC;KAChC;CACF"}
|
|
@@ -5,42 +5,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement } from 'lit';
|
|
8
|
-
import {
|
|
9
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
10
9
|
import { styles } from './badge.material.css';
|
|
11
|
-
|
|
10
|
+
export default class IgcBadgeComponent extends LitElement {
|
|
12
11
|
constructor() {
|
|
13
12
|
super(...arguments);
|
|
14
13
|
this.variant = 'primary';
|
|
15
14
|
this.outlined = false;
|
|
16
15
|
this.shape = 'rounded';
|
|
17
16
|
}
|
|
18
|
-
get classes() {
|
|
19
|
-
const { shape, variant } = this;
|
|
20
|
-
return {
|
|
21
|
-
primary: variant === 'primary',
|
|
22
|
-
info: variant === 'info',
|
|
23
|
-
success: variant === 'success',
|
|
24
|
-
warning: variant === 'warning',
|
|
25
|
-
danger: variant === 'danger',
|
|
26
|
-
rounded: shape === 'rounded',
|
|
27
|
-
square: shape === 'square',
|
|
28
|
-
outlined: this.outlined,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
17
|
render() {
|
|
32
18
|
return html `
|
|
33
|
-
<span
|
|
34
|
-
part="base"
|
|
35
|
-
class=${classMap(this.classes)}
|
|
36
|
-
role="img"
|
|
37
|
-
aria-label="badge"
|
|
38
|
-
>
|
|
19
|
+
<span part="base" role="img" aria-label="badge">
|
|
39
20
|
<slot></slot>
|
|
40
21
|
</span>
|
|
41
22
|
`;
|
|
42
23
|
}
|
|
43
|
-
}
|
|
24
|
+
}
|
|
25
|
+
IgcBadgeComponent.tagName = 'igc-badge';
|
|
44
26
|
IgcBadgeComponent.styles = styles;
|
|
45
27
|
__decorate([
|
|
46
28
|
property({ reflect: true })
|
|
@@ -51,8 +33,4 @@ __decorate([
|
|
|
51
33
|
__decorate([
|
|
52
34
|
property({ reflect: true })
|
|
53
35
|
], IgcBadgeComponent.prototype, "shape", void 0);
|
|
54
|
-
IgcBadgeComponent = __decorate([
|
|
55
|
-
customElement('igc-badge')
|
|
56
|
-
], IgcBadgeComponent);
|
|
57
|
-
export default IgcBadgeComponent;
|
|
58
36
|
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/badge/badge.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/badge/badge.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAY9C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU;IAAzD;;QASS,YAAO,GACZ,SAAS,CAAC;QAIL,aAAQ,GAAG,KAAK,CAAC;QAIjB,UAAK,GAA0B,SAAS,CAAC;IASlD,CAAC;IAPW,MAAM;QACd,OAAO,IAAI,CAAA;;;;KAIV,CAAC;IACJ,CAAC;;AAxBa,yBAAO,GAAG,WAAW,CAAC;AAGtB,wBAAM,GAAG,MAAM,CAAC;AAI9B;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAEhB;AAIZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDACoB","sourcesContent":["import { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { styles } from './badge.material.css';\n\n/**\n * The badge is a component indicating a status on a related item or an area\n * where some active indication is required.\n *\n * @element igc-badge\n *\n * @slot - Default slot for the badge.\n *\n * @csspart base - The base wrapper of the badge.\n */\nexport default class IgcBadgeComponent extends LitElement {\n /** @private */\n public static tagName = 'igc-badge';\n\n /** @private */\n public static styles = styles;\n\n /** The type of badge. */\n @property({ reflect: true })\n public variant?: 'primary' | 'info' | 'success' | 'warning' | 'danger' =\n 'primary';\n\n /** Sets whether to draw an outlined version of the badge. */\n @property({ type: Boolean, reflect: true })\n public outlined = false;\n\n /** The shape of the badge. */\n @property({ reflect: true })\n public shape?: 'rounded' | 'square' = 'rounded';\n\n protected render() {\n return html`\n <span part=\"base\" role=\"img\" aria-label=\"badge\">\n <slot></slot>\n </span>\n `;\n }\n}\n\n// export const badgeDefinition: IgcComponentDefinition = {\n// tag: 'igc-badge',\n// component: IgcBadgeComponent,\n// };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-badge': IgcBadgeComponent;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.material.css.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.material.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"badge.material.css.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.material.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAAyqD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}[hidden]{display:none !important}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}
|
|
2
|
+
export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}[hidden]{display:none !important}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;--size: 0.75rem;font-weight:500}[part=base]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--size);min-height:var(--size);max-height:calc(var(--size)*2);line-height:1;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;white-space:nowrap;font-family:var(--igc-font-family);font-size:var(--igc-subtitle-1-font-size);font-weight:inherit}:host(:not(:empty)) [part=base]{padding:.25rem .5rem;min-width:calc(var(--size)*2)}:host([variant=primary]){background:hsla(var(--igc-primary-500), var(--igc-primary-a));color:var(--igc-primary-500-contrast)}:host([variant=info]){background:hsla(var(--igc-info-500), var(--igc-info-a));color:var(--igc-info-500-contrast)}:host([variant=success]){background:hsla(var(--igc-success-500), var(--igc-success-a));color:var(--igc-success-500-contrast)}:host([variant=warning]){background:hsla(var(--igc-warn-500), var(--igc-warn-a));color:var(--igc-warn-500-contrast)}:host([variant=danger]){background:hsla(var(--igc-error-500), var(--igc-error-a));color:var(--igc-error-500-contrast)}:host([shape=rounded]){border-radius:var(--size)}:host([shape=square]){border-radius:0}:host([outlined]){-webkit-box-shadow:inset 0 0 0 .125rem hsla(var(--igc-gray-50), var(--igc-gray-a));box-shadow:inset 0 0 0 .125rem hsla(var(--igc-gray-50), var(--igc-gray-a))}`;
|
|
3
3
|
//# sourceMappingURL=badge.material.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.material.css.js","sourceRoot":"","sources":["../../../src/components/badge/badge.material.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,
|
|
1
|
+
{"version":3,"file":"badge.material.css.js","sourceRoot":"","sources":["../../../src/components/badge/badge.material.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,mqDAAmqD,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}[hidden]{display:none !important}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;--size: 0.75rem;font-weight:500}[part=base]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--size);min-height:var(--size);max-height:calc(var(--size)*2);line-height:1;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;white-space:nowrap;font-family:var(--igc-font-family);font-size:var(--igc-subtitle-1-font-size);font-weight:inherit}:host(:not(:empty)) [part=base]{padding:.25rem .5rem;min-width:calc(var(--size)*2)}:host([variant=primary]){background:hsla(var(--igc-primary-500), var(--igc-primary-a));color:var(--igc-primary-500-contrast)}:host([variant=info]){background:hsla(var(--igc-info-500), var(--igc-info-a));color:var(--igc-info-500-contrast)}:host([variant=success]){background:hsla(var(--igc-success-500), var(--igc-success-a));color:var(--igc-success-500-contrast)}:host([variant=warning]){background:hsla(var(--igc-warn-500), var(--igc-warn-a));color:var(--igc-warn-500-contrast)}:host([variant=danger]){background:hsla(var(--igc-error-500), var(--igc-error-a));color:var(--igc-error-500-contrast)}:host([shape=rounded]){border-radius:var(--size)}:host([shape=square]){border-radius:0}:host([outlined]){-webkit-box-shadow:inset 0 0 0 .125rem hsla(var(--igc-gray-50), var(--igc-gray-a));box-shadow:inset 0 0 0 .125rem hsla(var(--igc-gray-50), var(--igc-gray-a))}`;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
2
|
import { Constructor } from '../common/mixins/constructor.js';
|
|
3
3
|
export interface IgcButtonEventMap {
|
|
4
4
|
igcFocus: CustomEvent<void>;
|
|
@@ -6,26 +6,22 @@ export interface IgcButtonEventMap {
|
|
|
6
6
|
}
|
|
7
7
|
declare const IgcButtonBaseComponent_base: Constructor<import("../common/mixins/sizable.js").SizableInterface> & Constructor<import("../common//mixins/event-emitter.js").EventEmitterInterface<IgcButtonEventMap>> & Constructor<LitElement>;
|
|
8
8
|
export declare abstract class IgcButtonBaseComponent extends IgcButtonBaseComponent_base {
|
|
9
|
-
static styles: import("lit").CSSResult[];
|
|
10
9
|
private nativeElement;
|
|
10
|
+
type: 'button' | 'reset' | 'submit';
|
|
11
|
+
href: string;
|
|
12
|
+
download: string;
|
|
13
|
+
target: '_blank' | '_parent' | '_self' | '_top' | undefined;
|
|
14
|
+
rel: string;
|
|
11
15
|
disabled: boolean;
|
|
12
|
-
variant: 'flat' | 'contained' | 'outlined' | 'fab';
|
|
13
16
|
focus(options?: FocusOptions): void;
|
|
14
17
|
blur(): void;
|
|
15
18
|
protected handleFocus(): void;
|
|
16
19
|
protected handleBlur(): void;
|
|
17
|
-
protected get classes(): {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
fab: boolean;
|
|
23
|
-
small: boolean;
|
|
24
|
-
medium: boolean;
|
|
25
|
-
large: boolean;
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
};
|
|
28
|
-
protected renderContent(): import("lit").TemplateResult<1>;
|
|
20
|
+
protected get classes(): {};
|
|
21
|
+
private renderButton;
|
|
22
|
+
private renderLinkButton;
|
|
23
|
+
protected abstract renderContent(): TemplateResult;
|
|
24
|
+
protected render(): TemplateResult<1>;
|
|
29
25
|
}
|
|
30
26
|
export {};
|
|
31
27
|
//# sourceMappingURL=button-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-base.d.ts","sourceRoot":"","sources":["../../../src/components/button/button-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"button-base.d.ts","sourceRoot":"","sources":["../../../src/components/button/button-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAMvD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;CAC5B;;AAED,8BAAsB,sBAAuB,SAAQ,2BAEpD;IAKC,OAAO,CAAC,aAAa,CAAe;IAO7B,IAAI,EAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAIrC,IAAI,EAAG,MAAM,CAAC;IAId,QAAQ,EAAG,MAAM,CAAC;IAIlB,MAAM,EAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAO7D,GAAG,EAAG,MAAM,CAAC;IAMb,QAAQ,UAAS;IAIjB,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY;IAM5B,IAAI;IAIX,SAAS,CAAC,WAAW;IAIrB,SAAS,CAAC,UAAU;IAIpB,SAAS,KAAK,OAAO,OAEpB;IAED,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,gBAAgB;IAmBxB,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,cAAc;IAElD,SAAS,CAAC,MAAM;CAIjB"}
|
|
@@ -6,15 +6,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement } from 'lit';
|
|
8
8
|
import { property, query } from 'lit/decorators.js';
|
|
9
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
10
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
9
11
|
import { EventEmitterMixin } from '../common//mixins/event-emitter.js';
|
|
10
12
|
import { alternateName } from '../common/decorators';
|
|
11
13
|
import { SizableMixin } from '../common/mixins/sizable.js';
|
|
12
|
-
import { styles } from './button.material.css';
|
|
13
14
|
export class IgcButtonBaseComponent extends SizableMixin(EventEmitterMixin(LitElement)) {
|
|
14
15
|
constructor() {
|
|
15
16
|
super(...arguments);
|
|
16
17
|
this.disabled = false;
|
|
17
|
-
this.variant = 'flat';
|
|
18
18
|
}
|
|
19
19
|
focus(options) {
|
|
20
20
|
this.nativeElement.focus(options);
|
|
@@ -29,41 +29,67 @@ export class IgcButtonBaseComponent extends SizableMixin(EventEmitterMixin(LitEl
|
|
|
29
29
|
this.emitEvent('igcBlur');
|
|
30
30
|
}
|
|
31
31
|
get classes() {
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
native: true,
|
|
35
|
-
flat: variant === 'flat',
|
|
36
|
-
outlined: variant === 'outlined',
|
|
37
|
-
contained: variant === 'contained',
|
|
38
|
-
fab: variant === 'fab',
|
|
39
|
-
small: size === 'small',
|
|
40
|
-
medium: size === 'medium',
|
|
41
|
-
large: size === 'large',
|
|
42
|
-
disabled: this.disabled,
|
|
43
|
-
};
|
|
32
|
+
return {};
|
|
44
33
|
}
|
|
45
|
-
|
|
34
|
+
renderButton() {
|
|
46
35
|
return html `
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
36
|
+
<button
|
|
37
|
+
part="base"
|
|
38
|
+
.disabled=${this.disabled}
|
|
39
|
+
class=${classMap(this.classes)}
|
|
40
|
+
type=${ifDefined(this.type)}
|
|
41
|
+
@focus=${this.handleFocus}
|
|
42
|
+
@blur=${this.handleBlur}
|
|
43
|
+
>
|
|
44
|
+
${this.renderContent()}
|
|
45
|
+
</button>
|
|
54
46
|
`;
|
|
55
47
|
}
|
|
48
|
+
renderLinkButton() {
|
|
49
|
+
return html `
|
|
50
|
+
<a
|
|
51
|
+
part="base"
|
|
52
|
+
role="button"
|
|
53
|
+
href=${ifDefined(this.href)}
|
|
54
|
+
target=${ifDefined(this.target)}
|
|
55
|
+
download=${ifDefined(this.download)}
|
|
56
|
+
rel=${ifDefined(this.rel)}
|
|
57
|
+
aria-disabled=${this.disabled ? 'true' : 'false'}
|
|
58
|
+
class=${classMap(this.classes)}
|
|
59
|
+
@focus=${this.handleFocus}
|
|
60
|
+
@blur=${this.handleBlur}
|
|
61
|
+
>
|
|
62
|
+
${this.renderContent()}
|
|
63
|
+
</a>
|
|
64
|
+
`;
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
const link = this.href !== undefined;
|
|
68
|
+
return link ? this.renderLinkButton() : this.renderButton();
|
|
69
|
+
}
|
|
56
70
|
}
|
|
57
|
-
IgcButtonBaseComponent.styles = [styles];
|
|
58
71
|
__decorate([
|
|
59
|
-
query('
|
|
72
|
+
query('[part="base"]', true)
|
|
60
73
|
], IgcButtonBaseComponent.prototype, "nativeElement", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
alternateName('displayType'),
|
|
76
|
+
property()
|
|
77
|
+
], IgcButtonBaseComponent.prototype, "type", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
property()
|
|
80
|
+
], IgcButtonBaseComponent.prototype, "href", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
property()
|
|
83
|
+
], IgcButtonBaseComponent.prototype, "download", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
property()
|
|
86
|
+
], IgcButtonBaseComponent.prototype, "target", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
property()
|
|
89
|
+
], IgcButtonBaseComponent.prototype, "rel", void 0);
|
|
61
90
|
__decorate([
|
|
62
91
|
property({ type: Boolean, reflect: true })
|
|
63
92
|
], IgcButtonBaseComponent.prototype, "disabled", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
property({ reflect: true })
|
|
66
|
-
], IgcButtonBaseComponent.prototype, "variant", void 0);
|
|
67
93
|
__decorate([
|
|
68
94
|
alternateName('focusComponent')
|
|
69
95
|
], IgcButtonBaseComponent.prototype, "focus", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-base.js","sourceRoot":"","sources":["../../../src/components/button/button-base.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"button-base.js","sourceRoot":"","sources":["../../../src/components/button/button-base.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAO3D,MAAM,OAAgB,sBAAuB,SAAQ,YAAY,CAC/D,iBAAiB,CAA6C,UAAU,CAAC,CAC1E;IAFD;;QAuCS,aAAQ,GAAG,KAAK,CAAC;IAkE1B,CAAC;IA9DQ,KAAK,CAAC,OAAsB;QACjC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAIM,IAAI;QACT,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;IAES,WAAW;QACnB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IAES,UAAU;QAClB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;IAED,IAAc,OAAO;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAEO,YAAY;QAClB,OAAO,IAAI,CAAA;;;oBAGK,IAAI,CAAC,QAAQ;gBACjB,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;eACvB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;iBAClB,IAAI,CAAC,WAAW;gBACjB,IAAI,CAAC,UAAU;;UAErB,IAAI,CAAC,aAAa,EAAE;;KAEzB,CAAC;IACJ,CAAC;IAEO,gBAAgB;QACtB,OAAO,IAAI,CAAA;;;;eAIA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;iBAClB,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;mBACpB,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;cAC7B,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;wBACT,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBACxC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;iBACrB,IAAI,CAAC,WAAW;gBACjB,IAAI,CAAC,UAAU;;UAErB,IAAI,CAAC,aAAa,EAAE;;KAEzB,CAAC;IACJ,CAAC;IAIS,MAAM;QACd,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC;QACrC,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;IAC9D,CAAC;CACF;AAlGC;IADC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC;6DACO;AAOpC;IAFC,aAAa,CAAC,aAAa,CAAC;IAC5B,QAAQ,EAAE;oDACiC;AAI5C;IADC,QAAQ,EAAE;oDACU;AAIrB;IADC,QAAQ,EAAE;wDACc;AAIzB;IADC,QAAQ,EAAE;sDACyD;AAOpE;IADC,QAAQ,EAAE;mDACS;AAMpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDACnB;AAIxB;IADC,aAAa,CAAC,gBAAgB,CAAC;mDAG/B;AAID;IADC,aAAa,CAAC,eAAe,CAAC;kDAG9B","sourcesContent":["import { html, LitElement, TemplateResult } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { EventEmitterMixin } from '../common//mixins/event-emitter.js';\nimport { alternateName } from '../common/decorators';\nimport { Constructor } from '../common/mixins/constructor.js';\nimport { SizableMixin } from '../common/mixins/sizable.js';\n\nexport interface IgcButtonEventMap {\n igcFocus: CustomEvent<void>;\n igcBlur: CustomEvent<void>;\n}\n\nexport abstract class IgcButtonBaseComponent extends SizableMixin(\n EventEmitterMixin<IgcButtonEventMap, Constructor<LitElement>>(LitElement)\n) {\n /**\n * @private\n */\n @query('[part=\"base\"]', true)\n private nativeElement!: HTMLElement;\n\n /**\n * The type of the button. Defaults to undefined.\n */\n @alternateName('displayType')\n @property()\n public type!: 'button' | 'reset' | 'submit';\n\n /** The URL the button points to. */\n @property()\n public href!: string;\n\n /** Prompts to save the linked URL instead of navigating to it. */\n @property()\n public download!: string;\n\n /** Where to display the linked URL, as the name for a browsing context. */\n @property()\n public target!: '_blank' | '_parent' | '_self' | '_top' | undefined;\n\n /**\n * The relationship of the linked URL.\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types\n */\n @property()\n public rel!: string;\n\n /**\n * Determines whether the button is disabled.\n */\n @property({ type: Boolean, reflect: true })\n public disabled = false;\n\n /** Sets focus in the button. */\n @alternateName('focusComponent')\n public focus(options?: FocusOptions) {\n this.nativeElement.focus(options);\n }\n\n /** Removes focus from the button. */\n @alternateName('blurComponent')\n public blur() {\n this.nativeElement.blur();\n }\n\n protected handleFocus() {\n this.emitEvent('igcFocus');\n }\n\n protected handleBlur() {\n this.emitEvent('igcBlur');\n }\n\n protected get classes() {\n return {};\n }\n\n private renderButton() {\n return html`\n <button\n part=\"base\"\n .disabled=${this.disabled}\n class=${classMap(this.classes)}\n type=${ifDefined(this.type)}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n >\n ${this.renderContent()}\n </button>\n `;\n }\n\n private renderLinkButton() {\n return html`\n <a\n part=\"base\"\n role=\"button\"\n href=${ifDefined(this.href)}\n target=${ifDefined(this.target)}\n download=${ifDefined(this.download)}\n rel=${ifDefined(this.rel)}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n class=${classMap(this.classes)}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n >\n ${this.renderContent()}\n </a>\n `;\n }\n\n protected abstract renderContent(): TemplateResult;\n\n protected render() {\n const link = this.href !== undefined;\n return link ? this.renderLinkButton() : this.renderButton();\n }\n}\n"]}
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { IgcButtonBaseComponent } from './button-base.js';
|
|
2
2
|
export default class IgcButtonComponent extends IgcButtonBaseComponent {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
static tagName: string;
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
variant: 'flat' | 'contained' | 'outlined' | 'fab';
|
|
6
|
+
constructor();
|
|
7
|
+
protected get classes(): {
|
|
8
|
+
flat: boolean;
|
|
9
|
+
outlined: boolean;
|
|
10
|
+
contained: boolean;
|
|
11
|
+
fab: boolean;
|
|
12
|
+
small: boolean;
|
|
13
|
+
medium: boolean;
|
|
14
|
+
large: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
};
|
|
17
|
+
protected renderContent(): import("lit").TemplateResult<1>;
|
|
5
18
|
}
|
|
6
19
|
declare global {
|
|
7
20
|
interface HTMLElementTagNameMap {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAoB1D,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,sBAAsB;IAEpE,OAAc,OAAO,SAAgB;IAKrC,OAAc,MAAM,4BAAY;IAIzB,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,KAAK,CAAe;;IAOxE,SAAS,KAAK,OAAO;;;;;;;;;MAapB;IAED,SAAS,CAAC,aAAa;CAWxB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,kBAAkB,CAAC;KAClC;CACF"}
|
|
@@ -5,33 +5,43 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html } from 'lit';
|
|
8
|
-
import {
|
|
9
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
10
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
11
|
-
import { alternateName } from '../common/decorators';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
12
9
|
import { IgcButtonBaseComponent } from './button-base.js';
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
import { styles } from './button.material.css';
|
|
11
|
+
export default class IgcButtonComponent extends IgcButtonBaseComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.variant = 'contained';
|
|
15
|
+
this.size = 'medium';
|
|
16
|
+
}
|
|
17
|
+
get classes() {
|
|
18
|
+
const { size, variant } = this;
|
|
19
|
+
return {
|
|
20
|
+
flat: variant === 'flat',
|
|
21
|
+
outlined: variant === 'outlined',
|
|
22
|
+
contained: variant === 'contained',
|
|
23
|
+
fab: variant === 'fab',
|
|
24
|
+
small: size === 'small',
|
|
25
|
+
medium: size === 'medium',
|
|
26
|
+
large: size === 'large',
|
|
27
|
+
disabled: this.disabled,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
renderContent() {
|
|
15
31
|
return html `
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
>
|
|
24
|
-
${this.renderContent()}
|
|
25
|
-
</button>
|
|
32
|
+
<span part="prefix">
|
|
33
|
+
<slot name="prefix"></slot>
|
|
34
|
+
</span>
|
|
35
|
+
<slot></slot>
|
|
36
|
+
<span part="suffix">
|
|
37
|
+
<slot name="suffix"></slot>
|
|
38
|
+
</span>
|
|
26
39
|
`;
|
|
27
40
|
}
|
|
28
|
-
}
|
|
41
|
+
}
|
|
42
|
+
IgcButtonComponent.tagName = 'igc-button';
|
|
43
|
+
IgcButtonComponent.styles = [styles];
|
|
29
44
|
__decorate([
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
], IgcButtonComponent.prototype, "type", void 0);
|
|
33
|
-
IgcButtonComponent = __decorate([
|
|
34
|
-
customElement('igc-button')
|
|
35
|
-
], IgcButtonComponent);
|
|
36
|
-
export default IgcButtonComponent;
|
|
45
|
+
property({ reflect: true })
|
|
46
|
+
], IgcButtonComponent.prototype, "variant", void 0);
|
|
37
47
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAmB/C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,sBAAsB;IAapE;QACE,KAAK,EAAE,CAAC;QAHH,YAAO,GAA8C,WAAW,CAAC;QAItE,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;IACvB,CAAC;IAED,IAAc,OAAO;QACnB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAE/B,OAAO;YACL,IAAI,EAAE,OAAO,KAAK,MAAM;YACxB,QAAQ,EAAE,OAAO,KAAK,UAAU;YAChC,SAAS,EAAE,OAAO,KAAK,WAAW;YAClC,GAAG,EAAE,OAAO,KAAK,KAAK;YACtB,KAAK,EAAE,IAAI,KAAK,OAAO;YACvB,MAAM,EAAE,IAAI,KAAK,QAAQ;YACzB,KAAK,EAAE,IAAI,KAAK,OAAO;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC;IACJ,CAAC;IAES,aAAa;QACrB,OAAO,IAAI,CAAA;;;;;;;;KAQV,CAAC;IACJ,CAAC;;AAzCa,0BAAO,GAAG,YAAY,CAAC;AAKvB,yBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAIhC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAC4C","sourcesContent":["import { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { IgcButtonBaseComponent } from './button-base.js';\nimport { styles } from './button.material.css';\n\n/**\n * Represents a clickable button, used to submit forms or anywhere in a\n * document for accessible, standard button functionality.\n *\n * @element igc-button\n *\n * @slot - Renders the label of the button.\n * @slot prefix - Renders content before the label of the button.\n * @slot suffix - Renders content after the label of the button.\n *\n * @fires igcFocus - Emitted when the button gains focus.\n * @fires igcBlur - Emitted when the button loses focus.\n *\n * @csspart base - The native button element.\n * @csspart prefix - The prefix container.\n * @csspart suffix - The suffix container.\n */\nexport default class IgcButtonComponent extends IgcButtonBaseComponent {\n /** @private */\n public static tagName = 'igc-button';\n\n /**\n * @private\n */\n public static styles = [styles];\n\n /** Sets the variant of the button. */\n @property({ reflect: true })\n public variant: 'flat' | 'contained' | 'outlined' | 'fab' = 'contained';\n\n constructor() {\n super();\n this.size = 'medium';\n }\n\n protected get classes() {\n const { size, variant } = this;\n\n return {\n flat: variant === 'flat',\n outlined: variant === 'outlined',\n contained: variant === 'contained',\n fab: variant === 'fab',\n small: size === 'small',\n medium: size === 'medium',\n large: size === 'large',\n disabled: this.disabled,\n };\n }\n\n protected renderContent() {\n return html`\n <span part=\"prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n <slot></slot>\n <span part=\"suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-button': IgcButtonComponent;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.material.css.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.material.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"button.material.css.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.material.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAA4gJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}[hidden]{display:none !important}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}a,button{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border:none;border-radius:calc(var(--igc-border-radius)*2);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline-style:none;-webkit-tap-highlight-color:transparent;overflow:hidden;white-space:nowrap;text-decoration:none;z-index:0;font-family:var(--igc-button-font-family);font-weight:var(--igc-button-font-weight);font-size:var(--igc-button-font-size);font-style:var(--igc-button-font-style);letter-spacing:var(--igc-button-letter-spacing);line-height:var(--igc-button-line-height);text-transform:var(--igc-button-text-transform)}a.disabled,button.disabled{background:hsla(var(--igc-gray-300), var(--igc-gray-a));color:hsla(var(--igc-gray-500), var(--igc-gray-a));pointer-events:none;-webkit-box-shadow:none;box-shadow:none}a:hover:not(.disabled),button:hover:not(.disabled){cursor:pointer}a::before,button::before{position:absolute;content:"";width:100%;height:100%;z-index:-1;will-change:opacity;-webkit-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}[name=prefix]::slotted(*){-webkit-margin-end:var(--igc-spacing-large);margin-inline-end:var(--igc-spacing-large)}[name=suffix]::slotted(*){-webkit-margin-start:var(--igc-spacing-large);margin-inline-start:var(--igc-spacing-large)}span[part=prefix],span[part=suffix]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.flat,.outlined{
|
|
2
|
+
export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}[hidden]{display:none !important}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}a,button{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border:none;border-radius:calc(var(--igc-border-radius)*2);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline-style:none;-webkit-tap-highlight-color:transparent;overflow:hidden;white-space:nowrap;text-decoration:none;z-index:0;font-family:var(--igc-button-font-family);font-weight:var(--igc-button-font-weight);font-size:var(--igc-button-font-size);font-style:var(--igc-button-font-style);letter-spacing:var(--igc-button-letter-spacing);line-height:var(--igc-button-line-height);text-transform:var(--igc-button-text-transform)}a.disabled,button.disabled{background:hsla(var(--igc-gray-300), var(--igc-gray-a));color:hsla(var(--igc-gray-500), var(--igc-gray-a));pointer-events:none;-webkit-box-shadow:none;box-shadow:none}a:hover:not(.disabled),button:hover:not(.disabled){cursor:pointer}a::before,button::before{position:absolute;content:"";width:100%;height:100%;z-index:-1;will-change:opacity;-webkit-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}[name=prefix]::slotted(*){-webkit-margin-end:var(--igc-spacing-large);margin-inline-end:var(--igc-spacing-large)}[name=suffix]::slotted(*){-webkit-margin-start:var(--igc-spacing-large);margin-inline-start:var(--igc-spacing-large)}span[part=prefix],span[part=suffix]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.flat,.outlined{color:hsla(var(--igc-secondary-500), var(--igc-secondary-a));background:transparent}.flat.disabled,.disabled.outlined{background:transparent}.flat::before,.outlined::before{opacity:0}.flat:hover:not(.disabled)::before,.outlined:hover:not(.disabled)::before{background:hsla(var(--igc-secondary-500), var(--igc-secondary-a));opacity:.12}.flat:focus:not(.disabled)::before,.outlined:focus:not(.disabled)::before,.flat:active:not(.disabled)::before,.outlined:active:not(.disabled)::before{background:hsla(var(--igc-secondary-500), var(--igc-secondary-a));opacity:.24}.outlined{-webkit-box-shadow:inset 0 0 0 1px hsla(var(--igc-secondary-500), var(--igc-secondary-a));box-shadow:inset 0 0 0 1px hsla(var(--igc-secondary-500), var(--igc-secondary-a))}.outlined.disabled{-webkit-box-shadow:inset 0 0 0 1px hsla(var(--igc-gray-300), var(--igc-gray-a));box-shadow:inset 0 0 0 1px hsla(var(--igc-gray-300), var(--igc-gray-a))}.contained,.fab{background:hsla(var(--igc-secondary-500), var(--igc-secondary-a));color:var(--igc-secondary-500-contrast);-webkit-box-shadow:var(--igc-elevation-2);box-shadow:var(--igc-elevation-2);-webkit-transition:-webkit-box-shadow .1s ease-out;transition:-webkit-box-shadow .1s ease-out;-o-transition:box-shadow .1s ease-out;transition:box-shadow .1s ease-out;transition:box-shadow .1s ease-out, -webkit-box-shadow .1s ease-out}.contained::before,.fab::before{opacity:0}.contained:hover:not(.disabled),.fab:hover:not(.disabled){-webkit-box-shadow:var(--igc-elevation-4);box-shadow:var(--igc-elevation-4)}.contained:hover:not(.disabled)::before,.fab:hover:not(.disabled)::before{background:#fff;opacity:.12}.contained:focus:not(.disabled),.fab:focus:not(.disabled),.contained:active:not(.disabled),.fab:active:not(.disabled){-webkit-box-shadow:var(--igc-elevation-8);box-shadow:var(--igc-elevation-8)}.contained:focus:not(.disabled)::before,.fab:focus:not(.disabled)::before,.contained:active:not(.disabled)::before,.fab:active:not(.disabled)::before{background:#fff;opacity:.24}.fab{border-radius:calc(var(--igc-border-radius)*12);-webkit-box-shadow:var(--igc-elevation-6);box-shadow:var(--igc-elevation-6)}.fab:hover:not(.disabled),.fab:focus:not(.disabled),.fab:active:not(.disabled){-webkit-box-shadow:var(--igc-elevation-12);box-shadow:var(--igc-elevation-12)}.fab.large{min-width:3rem;min-height:3rem}.fab.medium{min-width:2.5rem;min-height:2.5rem}.fab.small{min-width:2rem;min-height:2rem}.large{height:var(--size, 36px);padding:0 calc(var(--igc-spacing-large)*2)}.medium{height:var(--size, 30px);padding:0 calc(var(--igc-spacing-medium)*3)}.small{height:var(--size, 24px);padding:0 calc(var(--igc-spacing-small)*4)}`;
|
|
3
3
|
//# sourceMappingURL=button.material.css.js.map
|