@momentum-design/components 0.22.1 → 0.22.3
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/browser/index.js +397 -141
- package/dist/browser/index.js.map +4 -4
- package/dist/components/avatar/avatar.component.d.ts +2 -2
- package/dist/components/avatar/avatar.component.js +2 -1
- package/dist/components/avatarbutton/avatarbutton.component.d.ts +4 -3
- package/dist/components/avatarbutton/avatarbutton.component.js +2 -1
- package/dist/components/badge/badge.component.d.ts +5 -10
- package/dist/components/badge/badge.component.js +3 -6
- package/dist/components/button/button.component.d.ts +4 -3
- package/dist/components/button/button.component.js +2 -2
- package/dist/components/buttonsimple/buttonsimple.component.d.ts +9 -10
- package/dist/components/buttonsimple/buttonsimple.component.js +11 -12
- package/dist/components/divider/divider.component.d.ts +4 -3
- package/dist/components/divider/divider.component.js +1 -1
- package/dist/components/formfieldwrapper/formfieldwrapper.types.d.ts +3 -1
- package/dist/components/formfieldwrapper/formfieldwrapper.utils.d.ts +2 -3
- package/dist/components/link/link.component.d.ts +5 -11
- package/dist/components/link/link.component.js +3 -6
- package/dist/components/tab/index.d.ts +9 -0
- package/dist/components/tab/index.js +6 -0
- package/dist/components/tab/tab.component.d.ts +128 -0
- package/dist/components/tab/tab.component.js +180 -0
- package/dist/components/tab/tab.constants.d.ts +10 -0
- package/dist/components/tab/tab.constants.js +11 -0
- package/dist/components/tab/tab.styles.d.ts +2 -0
- package/dist/components/tab/tab.styles.js +247 -0
- package/dist/components/tab/tab.types.d.ts +3 -0
- package/dist/components/tab/tab.types.js +1 -0
- package/dist/custom-elements.json +1244 -525
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/buttonsimple/index.d.ts +0 -1
- package/dist/react/buttonsimple/index.js +0 -1
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +2 -1
- package/dist/react/tab/index.d.ts +82 -0
- package/dist/react/tab/index.js +91 -0
- package/dist/utils/mixins/AvatarComponentMixin.d.ts +0 -2
- package/dist/utils/mixins/AvatarComponentMixin.js +0 -4
- package/dist/utils/mixins/IconNameMixin.d.ts +7 -0
- package/dist/utils/mixins/IconNameMixin.js +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -15,6 +15,7 @@ import Link from './components/link';
|
|
15
15
|
import Toggle from './components/toggle';
|
16
16
|
import Checkbox from './components/checkbox';
|
17
17
|
import Radio from './components/radio';
|
18
|
+
import Tab from './components/tab';
|
18
19
|
import type { TextType } from './components/text/text.types';
|
19
|
-
export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Toggle, Checkbox, Radio, };
|
20
|
+
export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Toggle, Checkbox, Radio, Tab, };
|
20
21
|
export type { TextType, };
|
package/dist/index.js
CHANGED
@@ -15,4 +15,5 @@ import Link from './components/link';
|
|
15
15
|
import Toggle from './components/toggle';
|
16
16
|
import Checkbox from './components/checkbox';
|
17
17
|
import Radio from './components/radio';
|
18
|
-
|
18
|
+
import Tab from './components/tab';
|
19
|
+
export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Toggle, Checkbox, Radio, Tab, };
|
@@ -5,7 +5,6 @@ import Component from '../../components/buttonsimple';
|
|
5
5
|
* Consumers should use the `mdc-button` component instead.
|
6
6
|
*
|
7
7
|
* @tagname mdc-buttonsimple
|
8
|
-
*
|
9
8
|
*/
|
10
9
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
11
10
|
export default reactWrapper;
|
package/dist/react/index.d.ts
CHANGED
@@ -4,8 +4,8 @@ export { default as Badge } from './badge';
|
|
4
4
|
export { default as Bullet } from './bullet';
|
5
5
|
export { default as Button } from './button';
|
6
6
|
export { default as Buttonsimple } from './buttonsimple';
|
7
|
-
export { default as Checkbox } from './checkbox';
|
8
7
|
export { default as Divider } from './divider';
|
8
|
+
export { default as Checkbox } from './checkbox';
|
9
9
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
10
10
|
export { default as Icon } from './icon';
|
11
11
|
export { default as IconProvider } from './iconprovider';
|
@@ -15,6 +15,7 @@ export { default as Marker } from './marker';
|
|
15
15
|
export { default as Modalcontainer } from './modalcontainer';
|
16
16
|
export { default as Presence } from './presence';
|
17
17
|
export { default as Radio } from './radio';
|
18
|
+
export { default as Tab } from './tab';
|
18
19
|
export { default as Text } from './text';
|
19
20
|
export { default as ThemeProvider } from './themeprovider';
|
20
21
|
export { default as Toggle } from './toggle';
|
package/dist/react/index.js
CHANGED
@@ -4,8 +4,8 @@ export { default as Badge } from './badge';
|
|
4
4
|
export { default as Bullet } from './bullet';
|
5
5
|
export { default as Button } from './button';
|
6
6
|
export { default as Buttonsimple } from './buttonsimple';
|
7
|
-
export { default as Checkbox } from './checkbox';
|
8
7
|
export { default as Divider } from './divider';
|
8
|
+
export { default as Checkbox } from './checkbox';
|
9
9
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
10
10
|
export { default as Icon } from './icon';
|
11
11
|
export { default as IconProvider } from './iconprovider';
|
@@ -15,6 +15,7 @@ export { default as Marker } from './marker';
|
|
15
15
|
export { default as Modalcontainer } from './modalcontainer';
|
16
16
|
export { default as Presence } from './presence';
|
17
17
|
export { default as Radio } from './radio';
|
18
|
+
export { default as Tab } from './tab';
|
18
19
|
export { default as Text } from './text';
|
19
20
|
export { default as ThemeProvider } from './themeprovider';
|
20
21
|
export { default as Toggle } from './toggle';
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import Component from '../../components/tab';
|
2
|
+
/**
|
3
|
+
* `mdc-tab` is Tab component to be used within the Tabgroup.
|
4
|
+
*
|
5
|
+
* Passing in the attribute `text` to the tab component is changing the text displayed in the tab.
|
6
|
+
*
|
7
|
+
* The `slot="badge"` can be used to add a badge to the tab.
|
8
|
+
*
|
9
|
+
* For `icon`, the `mdc-icon` component is used to render the icon.
|
10
|
+
*
|
11
|
+
* @dependency mdc-icon
|
12
|
+
* @dependency mdc-text
|
13
|
+
*
|
14
|
+
* @tagname mdc-tab
|
15
|
+
*
|
16
|
+
* @cssproperty --mdc-tab-content-gap - Gap between the badge(if provided), icon and text.
|
17
|
+
* @cssproperty --mdc-tab-height - Height of the tab.
|
18
|
+
* @cssproperty --mdc-tab-glass-active-background-color-disabled - Background color for active glass tab
|
19
|
+
* in disabled state.
|
20
|
+
* @cssproperty --mdc-tab-glass-active-background-color-hover - Background color for active glass tab in hover state.
|
21
|
+
* @cssproperty --mdc-tab-glass-active-background-color-normal - Background color for active glass tab in rest state.
|
22
|
+
* @cssproperty --mdc-tab-glass-active-background-color-pressed - Background color for active glass tab
|
23
|
+
* in pressed state.
|
24
|
+
* @cssproperty --mdc-tab-glass-active-color - Text and icon color for active glass tab.
|
25
|
+
* @cssproperty --mdc-tab-glass-active-color-disabled - Text and icon color for active glass tab in disabled state.
|
26
|
+
* @cssproperty --mdc-tab-glass-border-radius - Border radius for glass tab.
|
27
|
+
* @cssproperty --mdc-tab-glass-inactive-background-color-disabled - Background color for inactive glass tab
|
28
|
+
* in disabled state.
|
29
|
+
* @cssproperty --mdc-tab-glass-inactive-background-color-hover - Background color for inactive glass tab
|
30
|
+
* in hover state.
|
31
|
+
* @cssproperty --mdc-tab-glass-inactive-background-color-normal - Background color for inactive glass tab
|
32
|
+
* in rest state.
|
33
|
+
* @cssproperty --mdc-tab-glass-inactive-background-color-pressed - Background color for inactive glass tab
|
34
|
+
* in pressed state.
|
35
|
+
* @cssproperty --mdc-tab-glass-inactive-color - Text and icon color for inactive glass tab.
|
36
|
+
* @cssproperty --mdc-tab-glass-inactive-color-disabled - Text and icon color for inactive glass tab in disabled state.
|
37
|
+
* @cssproperty --mdc-tab-line-active-background-color-pressed - Background color for active line tab in pressed state.
|
38
|
+
* @cssproperty --mdc-tab-line-active-background-color-disabled - Background color for active line tab
|
39
|
+
* in disabled state.
|
40
|
+
* @cssproperty --mdc-tab-line-active-background-color-hover - Background color for active line tab in hover state.
|
41
|
+
* @cssproperty --mdc-tab-line-active-background-color-normal - Background color for active line tab in rest state.
|
42
|
+
* @cssproperty --mdc-tab-line-active-color - Text and icon color for active line tab.
|
43
|
+
* @cssproperty --mdc-tab-line-active-color-disabled - Text and icon color for active line tab in disabled state.
|
44
|
+
* @cssproperty --mdc-tab-line-active-indicator-color - color for indicator in active line tab.
|
45
|
+
* @cssproperty --mdc-tab-line-active-indicator-color-disabled - Color for indicator in active line tab
|
46
|
+
* in disabled state.
|
47
|
+
* @cssproperty --mdc-tab-line-active-indicator-height - Height for indicator in active line tab.
|
48
|
+
* @cssproperty --mdc-tab-line-active-indicator-width - Width for indicator in active line tab.
|
49
|
+
* @cssproperty --mdc-tab-line-border-bottom-left-radius - Bottom left border radius for line tab.
|
50
|
+
* @cssproperty --mdc-tab-line-border-bottom-right-radius - Bottom right border radius for line tab.
|
51
|
+
* @cssproperty --mdc-tab-line-border-top-left-radius - Top left border radius for line tab.
|
52
|
+
* @cssproperty --mdc-tab-line-border-top-right-radius - Top right border radius for line tab.
|
53
|
+
* @cssproperty --mdc-tab-line-inactive-background-color-pressed - Background color for inactive line tab
|
54
|
+
* in pressed state.
|
55
|
+
* @cssproperty --mdc-tab-line-inactive-background-color-disabled - Background color for inactive line tab
|
56
|
+
* in disabled state
|
57
|
+
* @cssproperty --mdc-tab-line-inactive-background-color-hover - Background color for inactive line tab in hover state.
|
58
|
+
* @cssproperty --mdc-tab-line-inactive-background-color-normal - Background color for inactive line tab
|
59
|
+
* in rest state.
|
60
|
+
* @cssproperty --mdc-tab-line-inactive-color - Text and icon color for inactive line tab.
|
61
|
+
* @cssproperty --mdc-tab-line-inactive-color-disabled - Text and icon color for inactive line tab in disabled state.
|
62
|
+
* @cssproperty --mdc-tab-padding-left - Padding left for the tab.
|
63
|
+
* @cssproperty --mdc-tab-padding-right - Padding right for the tab.
|
64
|
+
* @cssproperty --mdc-tab-pill-active-background-color-pressed - Background color for active pill tab in pressed state.
|
65
|
+
* @cssproperty --mdc-tab-pill-active-background-color-disabled - Background color for active pill tab
|
66
|
+
* in disabled state.
|
67
|
+
* @cssproperty --mdc-tab-pill-active-background-color-hover - Background color for active pill tab in hover state.
|
68
|
+
* @cssproperty --mdc-tab-pill-active-background-color-normal - Background color for active pill tab in rest state.
|
69
|
+
* @cssproperty --mdc-tab-pill-active-color - Text and icon color for active pill tab.
|
70
|
+
* @cssproperty --mdc-tab-pill-active-color-disabled - Text and icon color for active pill tab in disabled state.
|
71
|
+
* @cssproperty --mdc-tab-pill-border-radius - Border radius for pill tab.
|
72
|
+
* @cssproperty --mdc-tab-pill-inactive-background-color-pressed - Background color for inactive pill tab
|
73
|
+
* in pressed state.
|
74
|
+
* @cssproperty --mdc-tab-pill-inactive-background-color-disabled - Background color for inactive pill tab
|
75
|
+
* in disabled state.
|
76
|
+
* @cssproperty --mdc-tab-pill-inactive-background-color-hover - Background color for inactive pill tab in hover state.
|
77
|
+
* @cssproperty --mdc-tab-pill-inactive-background-color-normal - Background color for inactive pill tab in rest state.
|
78
|
+
* @cssproperty --mdc-tab-pill-inactive-color - Text and icon color for inactive pill tab.
|
79
|
+
* @cssproperty --mdc-tab-pill-inactive-color-disabled - Text and icon color for inactive pill tab in disabled state.
|
80
|
+
*/
|
81
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
82
|
+
export default reactWrapper;
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/tab';
|
4
|
+
import { TAG_NAME } from '../../components/tab/tab.constants';
|
5
|
+
/**
|
6
|
+
* `mdc-tab` is Tab component to be used within the Tabgroup.
|
7
|
+
*
|
8
|
+
* Passing in the attribute `text` to the tab component is changing the text displayed in the tab.
|
9
|
+
*
|
10
|
+
* The `slot="badge"` can be used to add a badge to the tab.
|
11
|
+
*
|
12
|
+
* For `icon`, the `mdc-icon` component is used to render the icon.
|
13
|
+
*
|
14
|
+
* @dependency mdc-icon
|
15
|
+
* @dependency mdc-text
|
16
|
+
*
|
17
|
+
* @tagname mdc-tab
|
18
|
+
*
|
19
|
+
* @cssproperty --mdc-tab-content-gap - Gap between the badge(if provided), icon and text.
|
20
|
+
* @cssproperty --mdc-tab-height - Height of the tab.
|
21
|
+
* @cssproperty --mdc-tab-glass-active-background-color-disabled - Background color for active glass tab
|
22
|
+
* in disabled state.
|
23
|
+
* @cssproperty --mdc-tab-glass-active-background-color-hover - Background color for active glass tab in hover state.
|
24
|
+
* @cssproperty --mdc-tab-glass-active-background-color-normal - Background color for active glass tab in rest state.
|
25
|
+
* @cssproperty --mdc-tab-glass-active-background-color-pressed - Background color for active glass tab
|
26
|
+
* in pressed state.
|
27
|
+
* @cssproperty --mdc-tab-glass-active-color - Text and icon color for active glass tab.
|
28
|
+
* @cssproperty --mdc-tab-glass-active-color-disabled - Text and icon color for active glass tab in disabled state.
|
29
|
+
* @cssproperty --mdc-tab-glass-border-radius - Border radius for glass tab.
|
30
|
+
* @cssproperty --mdc-tab-glass-inactive-background-color-disabled - Background color for inactive glass tab
|
31
|
+
* in disabled state.
|
32
|
+
* @cssproperty --mdc-tab-glass-inactive-background-color-hover - Background color for inactive glass tab
|
33
|
+
* in hover state.
|
34
|
+
* @cssproperty --mdc-tab-glass-inactive-background-color-normal - Background color for inactive glass tab
|
35
|
+
* in rest state.
|
36
|
+
* @cssproperty --mdc-tab-glass-inactive-background-color-pressed - Background color for inactive glass tab
|
37
|
+
* in pressed state.
|
38
|
+
* @cssproperty --mdc-tab-glass-inactive-color - Text and icon color for inactive glass tab.
|
39
|
+
* @cssproperty --mdc-tab-glass-inactive-color-disabled - Text and icon color for inactive glass tab in disabled state.
|
40
|
+
* @cssproperty --mdc-tab-line-active-background-color-pressed - Background color for active line tab in pressed state.
|
41
|
+
* @cssproperty --mdc-tab-line-active-background-color-disabled - Background color for active line tab
|
42
|
+
* in disabled state.
|
43
|
+
* @cssproperty --mdc-tab-line-active-background-color-hover - Background color for active line tab in hover state.
|
44
|
+
* @cssproperty --mdc-tab-line-active-background-color-normal - Background color for active line tab in rest state.
|
45
|
+
* @cssproperty --mdc-tab-line-active-color - Text and icon color for active line tab.
|
46
|
+
* @cssproperty --mdc-tab-line-active-color-disabled - Text and icon color for active line tab in disabled state.
|
47
|
+
* @cssproperty --mdc-tab-line-active-indicator-color - color for indicator in active line tab.
|
48
|
+
* @cssproperty --mdc-tab-line-active-indicator-color-disabled - Color for indicator in active line tab
|
49
|
+
* in disabled state.
|
50
|
+
* @cssproperty --mdc-tab-line-active-indicator-height - Height for indicator in active line tab.
|
51
|
+
* @cssproperty --mdc-tab-line-active-indicator-width - Width for indicator in active line tab.
|
52
|
+
* @cssproperty --mdc-tab-line-border-bottom-left-radius - Bottom left border radius for line tab.
|
53
|
+
* @cssproperty --mdc-tab-line-border-bottom-right-radius - Bottom right border radius for line tab.
|
54
|
+
* @cssproperty --mdc-tab-line-border-top-left-radius - Top left border radius for line tab.
|
55
|
+
* @cssproperty --mdc-tab-line-border-top-right-radius - Top right border radius for line tab.
|
56
|
+
* @cssproperty --mdc-tab-line-inactive-background-color-pressed - Background color for inactive line tab
|
57
|
+
* in pressed state.
|
58
|
+
* @cssproperty --mdc-tab-line-inactive-background-color-disabled - Background color for inactive line tab
|
59
|
+
* in disabled state
|
60
|
+
* @cssproperty --mdc-tab-line-inactive-background-color-hover - Background color for inactive line tab in hover state.
|
61
|
+
* @cssproperty --mdc-tab-line-inactive-background-color-normal - Background color for inactive line tab
|
62
|
+
* in rest state.
|
63
|
+
* @cssproperty --mdc-tab-line-inactive-color - Text and icon color for inactive line tab.
|
64
|
+
* @cssproperty --mdc-tab-line-inactive-color-disabled - Text and icon color for inactive line tab in disabled state.
|
65
|
+
* @cssproperty --mdc-tab-padding-left - Padding left for the tab.
|
66
|
+
* @cssproperty --mdc-tab-padding-right - Padding right for the tab.
|
67
|
+
* @cssproperty --mdc-tab-pill-active-background-color-pressed - Background color for active pill tab in pressed state.
|
68
|
+
* @cssproperty --mdc-tab-pill-active-background-color-disabled - Background color for active pill tab
|
69
|
+
* in disabled state.
|
70
|
+
* @cssproperty --mdc-tab-pill-active-background-color-hover - Background color for active pill tab in hover state.
|
71
|
+
* @cssproperty --mdc-tab-pill-active-background-color-normal - Background color for active pill tab in rest state.
|
72
|
+
* @cssproperty --mdc-tab-pill-active-color - Text and icon color for active pill tab.
|
73
|
+
* @cssproperty --mdc-tab-pill-active-color-disabled - Text and icon color for active pill tab in disabled state.
|
74
|
+
* @cssproperty --mdc-tab-pill-border-radius - Border radius for pill tab.
|
75
|
+
* @cssproperty --mdc-tab-pill-inactive-background-color-pressed - Background color for inactive pill tab
|
76
|
+
* in pressed state.
|
77
|
+
* @cssproperty --mdc-tab-pill-inactive-background-color-disabled - Background color for inactive pill tab
|
78
|
+
* in disabled state.
|
79
|
+
* @cssproperty --mdc-tab-pill-inactive-background-color-hover - Background color for inactive pill tab in hover state.
|
80
|
+
* @cssproperty --mdc-tab-pill-inactive-background-color-normal - Background color for inactive pill tab in rest state.
|
81
|
+
* @cssproperty --mdc-tab-pill-inactive-color - Text and icon color for inactive pill tab.
|
82
|
+
* @cssproperty --mdc-tab-pill-inactive-color-disabled - Text and icon color for inactive pill tab in disabled state.
|
83
|
+
*/
|
84
|
+
const reactWrapper = createComponent({
|
85
|
+
tagName: TAG_NAME,
|
86
|
+
elementClass: Component,
|
87
|
+
react: React,
|
88
|
+
events: {},
|
89
|
+
displayName: 'Tab',
|
90
|
+
});
|
91
|
+
export default reactWrapper;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { AvatarSize } from '../../components/avatar/avatar.types';
|
2
|
-
import type { IconNames } from '../../components/icon/icon.types';
|
3
2
|
import type { PresenceType } from '../../components/presence/presence.types';
|
4
3
|
import type { Component } from '../../models';
|
5
4
|
import type { Constructor } from './index.types';
|
@@ -8,7 +7,6 @@ export interface AvatarComponentMixinInterface {
|
|
8
7
|
initials?: string;
|
9
8
|
presence?: PresenceType;
|
10
9
|
size: AvatarSize;
|
11
|
-
iconName?: IconNames;
|
12
10
|
counter?: number;
|
13
11
|
isTyping: boolean;
|
14
12
|
}
|
@@ -49,10 +49,6 @@ export const AvatarComponentMixin = (superClass) => {
|
|
49
49
|
property({ type: Number, reflect: true, attribute: 'size' }),
|
50
50
|
__metadata("design:type", Number)
|
51
51
|
], InnerMixinClass.prototype, "size", void 0);
|
52
|
-
__decorate([
|
53
|
-
property({ type: String, attribute: 'icon-name' }),
|
54
|
-
__metadata("design:type", String)
|
55
|
-
], InnerMixinClass.prototype, "iconName", void 0);
|
56
52
|
__decorate([
|
57
53
|
property({ type: Number }),
|
58
54
|
__metadata("design:type", Number)
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
import type { Constructor } from './index.types';
|
3
|
+
import type { IconNames } from '../../components/icon/icon.types';
|
4
|
+
export interface IconNameMixinInterface {
|
5
|
+
iconName: IconNames;
|
6
|
+
}
|
7
|
+
export declare const IconNameMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<IconNameMixinInterface> & T;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
9
|
+
};
|
10
|
+
import { property } from 'lit/decorators.js';
|
11
|
+
export const IconNameMixin = (superClass) => {
|
12
|
+
class InnerMixinClass extends superClass {
|
13
|
+
}
|
14
|
+
__decorate([
|
15
|
+
property({ type: String, attribute: 'icon-name' }),
|
16
|
+
__metadata("design:type", String)
|
17
|
+
], InnerMixinClass.prototype, "iconName", void 0);
|
18
|
+
// Cast return type to your mixin's interface intersected with the superClass type
|
19
|
+
return InnerMixinClass;
|
20
|
+
};
|
package/package.json
CHANGED