@momentum-design/components 0.95.1 → 0.95.2
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 +46 -42
- package/dist/browser/index.js.map +4 -4
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.styles.js +4 -0
- package/dist/components/dialog/dialog.component.d.ts +1 -1
- package/dist/components/dialog/dialog.component.js +2 -2
- package/dist/custom-elements.json +570 -570
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/utils/mixins/CardComponentMixin.js +2 -2
- package/dist/utils/mixins/{CardAndDialogFooterMixin.d.ts → FooterMixin.d.ts} +2 -2
- package/dist/utils/mixins/{CardAndDialogFooterMixin.js → FooterMixin.js} +1 -1
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export { default as AlertChip } from './alertchip';
|
2
1
|
export { default as Animation } from './animation';
|
2
|
+
export { default as AlertChip } from './alertchip';
|
3
3
|
export { default as Appheader } from './appheader';
|
4
4
|
export { default as Avatar } from './avatar';
|
5
5
|
export { default as AvatarButton } from './avatarbutton';
|
@@ -22,8 +22,8 @@ export { default as Divider } from './divider';
|
|
22
22
|
export { default as FilterChip } from './filterchip';
|
23
23
|
export { default as FormfieldGroup } from './formfieldgroup';
|
24
24
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
25
|
-
export { default as Icon } from './icon';
|
26
25
|
export { default as IconProvider } from './iconprovider';
|
26
|
+
export { default as Icon } from './icon';
|
27
27
|
export { default as Input } from './input';
|
28
28
|
export { default as InputChip } from './inputchip';
|
29
29
|
export { default as Link } from './link';
|
package/dist/react/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export { default as AlertChip } from './alertchip';
|
2
1
|
export { default as Animation } from './animation';
|
2
|
+
export { default as AlertChip } from './alertchip';
|
3
3
|
export { default as Appheader } from './appheader';
|
4
4
|
export { default as Avatar } from './avatar';
|
5
5
|
export { default as AvatarButton } from './avatarbutton';
|
@@ -22,8 +22,8 @@ export { default as Divider } from './divider';
|
|
22
22
|
export { default as FilterChip } from './filterchip';
|
23
23
|
export { default as FormfieldGroup } from './formfieldgroup';
|
24
24
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
25
|
-
export { default as Icon } from './icon';
|
26
25
|
export { default as IconProvider } from './iconprovider';
|
26
|
+
export { default as Icon } from './icon';
|
27
27
|
export { default as Input } from './input';
|
28
28
|
export { default as InputChip } from './inputchip';
|
29
29
|
export { default as Link } from './link';
|
@@ -46,12 +46,12 @@ export const CardComponentMixin = (superClass) => {
|
|
46
46
|
*/
|
47
47
|
this.orientation = DEFAULTS.ORIENTATION;
|
48
48
|
/**
|
49
|
-
* The tag name for the card title. It supports all the types that `
|
49
|
+
* The tag name for the card title. It supports all the types that `mdc-text` supports
|
50
50
|
* @default 'span'
|
51
51
|
*/
|
52
52
|
this.titleTagName = DEFAULTS.TAGNAME;
|
53
53
|
/**
|
54
|
-
* The tag name for the subtitle. It supports all the types that `
|
54
|
+
* The tag name for the subtitle. It supports all the types that `mdc-text` supports
|
55
55
|
* @default 'span'
|
56
56
|
*/
|
57
57
|
this.subtitleTagName = DEFAULTS.TAGNAME;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { LitElement, TemplateResult } from 'lit';
|
2
2
|
import type { Constructor } from './index.types';
|
3
|
-
export declare class
|
3
|
+
export declare class FooterMixinInterface {
|
4
4
|
protected footerLink?: Array<HTMLElement>;
|
5
5
|
protected footerButtonPrimary?: Array<HTMLElement>;
|
6
6
|
protected footerButtonSecondary?: Array<HTMLElement>;
|
@@ -8,4 +8,4 @@ export declare class CardAndDialogFooterMixinInterface {
|
|
8
8
|
protected handleFooterSlot(tagname: string, variant?: string): void;
|
9
9
|
protected renderFooter(): TemplateResult;
|
10
10
|
}
|
11
|
-
export declare const
|
11
|
+
export declare const FooterMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<FooterMixinInterface> & T;
|
@@ -12,7 +12,7 @@ import { html } from 'lit';
|
|
12
12
|
import { queryAssignedElements } from 'lit/decorators.js';
|
13
13
|
import { DEFAULTS, VARIANTS } from '../../components/card/card.constants';
|
14
14
|
import { BUTTON_COLORS, BUTTON_VARIANTS } from '../../components/button/button.constants';
|
15
|
-
export const
|
15
|
+
export const FooterMixin = (superClass) => {
|
16
16
|
class InnerMixinClass extends superClass {
|
17
17
|
/**
|
18
18
|
* Updates the color of the footer buttons based on the variant.
|