@momentum-design/components 0.82.0 → 0.82.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 +16 -12
- package/dist/browser/index.js.map +2 -2
- package/dist/components/card/card.component.d.ts +2 -0
- package/dist/components/card/card.component.js +2 -0
- package/dist/components/dialog/dialog.component.d.ts +2 -1
- package/dist/components/dialog/dialog.component.js +2 -1
- package/dist/components/dialog/dialog.styles.js +2 -1
- package/dist/custom-elements.json +1655 -1631
- package/dist/react/card/index.d.ts +2 -0
- package/dist/react/card/index.js +2 -0
- package/dist/react/dialog/index.d.ts +2 -1
- package/dist/react/dialog/index.js +2 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +5 -5
- package/dist/utils/mixins/CardAndDialogFooterMixin.js +14 -11
- package/package.json +1 -1
|
@@ -32,6 +32,8 @@ import Component from '../../components/card';
|
|
|
32
32
|
* `mdc-button` component within the footer section.
|
|
33
33
|
* @slot footer-button-secondary - This slot is for passing secondary variant of `mdc-button` component
|
|
34
34
|
* within the footer section.
|
|
35
|
+
* @slot footer - This slot is for passing custom footer content. Only use this if really needed,
|
|
36
|
+
* using the footer-link and footer-button slots is preferred.
|
|
35
37
|
*
|
|
36
38
|
* @tagname mdc-card
|
|
37
39
|
*
|
package/dist/react/card/index.js
CHANGED
|
@@ -35,6 +35,8 @@ import { TAG_NAME } from '../../components/card/card.constants';
|
|
|
35
35
|
* `mdc-button` component within the footer section.
|
|
36
36
|
* @slot footer-button-secondary - This slot is for passing secondary variant of `mdc-button` component
|
|
37
37
|
* within the footer section.
|
|
38
|
+
* @slot footer - This slot is for passing custom footer content. Only use this if really needed,
|
|
39
|
+
* using the footer-link and footer-button slots is preferred.
|
|
38
40
|
*
|
|
39
41
|
* @tagname mdc-card
|
|
40
42
|
*
|
|
@@ -45,7 +45,8 @@ import Component from '../../components/dialog';
|
|
|
45
45
|
* within the footer section.
|
|
46
46
|
* @slot footer-button-primary - This slot is for passing primary variant of
|
|
47
47
|
* `mdc-button` component within the footer section.
|
|
48
|
-
*
|
|
48
|
+
* @slot footer - This slot is for passing custom footer content. Only use this if really needed,
|
|
49
|
+
* using the footer-link and footer-button slots is preferred
|
|
49
50
|
*/
|
|
50
51
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
|
51
52
|
onShown: EventName<Event>;
|
|
@@ -47,7 +47,8 @@ import { TAG_NAME } from '../../components/dialog/dialog.constants';
|
|
|
47
47
|
* within the footer section.
|
|
48
48
|
* @slot footer-button-primary - This slot is for passing primary variant of
|
|
49
49
|
* `mdc-button` component within the footer section.
|
|
50
|
-
*
|
|
50
|
+
* @slot footer - This slot is for passing custom footer content. Only use this if really needed,
|
|
51
|
+
* using the footer-link and footer-button slots is preferred
|
|
51
52
|
*/
|
|
52
53
|
const reactWrapper = createComponent({
|
|
53
54
|
tagName: TAG_NAME,
|
package/dist/react/index.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ export { default as AvatarButton } from './avatarbutton';
|
|
|
6
6
|
export { default as Badge } from './badge';
|
|
7
7
|
export { default as Brandvisual } from './brandvisual';
|
|
8
8
|
export { default as Bullet } from './bullet';
|
|
9
|
-
export { default as Button } from './button';
|
|
10
|
-
export { default as ButtonGroup } from './buttongroup';
|
|
11
9
|
export { default as ButtonLink } from './buttonlink';
|
|
12
10
|
export { default as Buttonsimple } from './buttonsimple';
|
|
13
11
|
export { default as Card } from './card';
|
|
12
|
+
export { default as ButtonGroup } from './buttongroup';
|
|
13
|
+
export { default as Button } from './button';
|
|
14
14
|
export { default as CardButton } from './cardbutton';
|
|
15
15
|
export { default as CardCheckbox } from './cardcheckbox';
|
|
16
16
|
export { default as CardRadio } from './cardradio';
|
|
@@ -35,8 +35,8 @@ export { default as MenuBar } from './menubar';
|
|
|
35
35
|
export { default as MenuItem } from './menuitem';
|
|
36
36
|
export { default as MenuItemCheckbox } from './menuitemcheckbox';
|
|
37
37
|
export { default as MenuItemRadio } from './menuitemradio';
|
|
38
|
-
export { default as MenuPopover } from './menupopover';
|
|
39
38
|
export { default as MenuSection } from './menusection';
|
|
39
|
+
export { default as MenuPopover } from './menupopover';
|
|
40
40
|
export { default as NavItem } from './navitem';
|
|
41
41
|
export { default as NavItemList } from './navitemlist';
|
|
42
42
|
export { default as OptGroup } from './optgroup';
|
|
@@ -52,14 +52,14 @@ export { default as Searchfield } from './searchfield';
|
|
|
52
52
|
export { default as Select } from './select';
|
|
53
53
|
export { default as SideNavigation } from './sidenavigation';
|
|
54
54
|
export { default as Skeleton } from './skeleton';
|
|
55
|
+
export { default as Spinner } from './spinner';
|
|
55
56
|
export { default as StaticCheckbox } from './staticcheckbox';
|
|
56
57
|
export { default as StaticRadio } from './staticradio';
|
|
57
58
|
export { default as StaticToggle } from './statictoggle';
|
|
58
|
-
export { default as Spinner } from './spinner';
|
|
59
59
|
export { default as Tab } from './tab';
|
|
60
60
|
export { default as TabList } from './tablist';
|
|
61
|
-
export { default as Text } from './text';
|
|
62
61
|
export { default as Textarea } from './textarea';
|
|
62
|
+
export { default as Text } from './text';
|
|
63
63
|
export { default as ThemeProvider } from './themeprovider';
|
|
64
64
|
export { default as Toggle } from './toggle';
|
|
65
65
|
export { default as ToggleTip } from './toggletip';
|
package/dist/react/index.js
CHANGED
|
@@ -6,11 +6,11 @@ export { default as AvatarButton } from './avatarbutton';
|
|
|
6
6
|
export { default as Badge } from './badge';
|
|
7
7
|
export { default as Brandvisual } from './brandvisual';
|
|
8
8
|
export { default as Bullet } from './bullet';
|
|
9
|
-
export { default as Button } from './button';
|
|
10
|
-
export { default as ButtonGroup } from './buttongroup';
|
|
11
9
|
export { default as ButtonLink } from './buttonlink';
|
|
12
10
|
export { default as Buttonsimple } from './buttonsimple';
|
|
13
11
|
export { default as Card } from './card';
|
|
12
|
+
export { default as ButtonGroup } from './buttongroup';
|
|
13
|
+
export { default as Button } from './button';
|
|
14
14
|
export { default as CardButton } from './cardbutton';
|
|
15
15
|
export { default as CardCheckbox } from './cardcheckbox';
|
|
16
16
|
export { default as CardRadio } from './cardradio';
|
|
@@ -35,8 +35,8 @@ export { default as MenuBar } from './menubar';
|
|
|
35
35
|
export { default as MenuItem } from './menuitem';
|
|
36
36
|
export { default as MenuItemCheckbox } from './menuitemcheckbox';
|
|
37
37
|
export { default as MenuItemRadio } from './menuitemradio';
|
|
38
|
-
export { default as MenuPopover } from './menupopover';
|
|
39
38
|
export { default as MenuSection } from './menusection';
|
|
39
|
+
export { default as MenuPopover } from './menupopover';
|
|
40
40
|
export { default as NavItem } from './navitem';
|
|
41
41
|
export { default as NavItemList } from './navitemlist';
|
|
42
42
|
export { default as OptGroup } from './optgroup';
|
|
@@ -52,14 +52,14 @@ export { default as Searchfield } from './searchfield';
|
|
|
52
52
|
export { default as Select } from './select';
|
|
53
53
|
export { default as SideNavigation } from './sidenavigation';
|
|
54
54
|
export { default as Skeleton } from './skeleton';
|
|
55
|
+
export { default as Spinner } from './spinner';
|
|
55
56
|
export { default as StaticCheckbox } from './staticcheckbox';
|
|
56
57
|
export { default as StaticRadio } from './staticradio';
|
|
57
58
|
export { default as StaticToggle } from './statictoggle';
|
|
58
|
-
export { default as Spinner } from './spinner';
|
|
59
59
|
export { default as Tab } from './tab';
|
|
60
60
|
export { default as TabList } from './tablist';
|
|
61
|
-
export { default as Text } from './text';
|
|
62
61
|
export { default as Textarea } from './textarea';
|
|
62
|
+
export { default as Text } from './text';
|
|
63
63
|
export { default as ThemeProvider } from './themeprovider';
|
|
64
64
|
export { default as Toggle } from './toggle';
|
|
65
65
|
export { default as ToggleTip } from './toggletip';
|
|
@@ -76,17 +76,20 @@ export const CardAndDialogFooterMixin = (superClass) => {
|
|
|
76
76
|
* @returns The footer element
|
|
77
77
|
*/
|
|
78
78
|
renderFooter() {
|
|
79
|
-
return html
|
|
80
|
-
<slot name="footer
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
return html `
|
|
80
|
+
<slot name="footer">
|
|
81
|
+
<div part="footer">
|
|
82
|
+
<slot name="footer-link" @slotchange=${() => this.handleFooterSlot(DEFAULTS.LINK)}></slot>
|
|
83
|
+
<slot
|
|
84
|
+
name="footer-button-secondary"
|
|
85
|
+
@slotchange=${() => this.handleFooterSlot(DEFAULTS.BUTTON, BUTTON_VARIANTS.SECONDARY)}
|
|
86
|
+
></slot>
|
|
87
|
+
<slot
|
|
88
|
+
name="footer-button-primary"
|
|
89
|
+
@slotchange=${() => this.handleFooterSlot(DEFAULTS.BUTTON, BUTTON_VARIANTS.PRIMARY)}
|
|
90
|
+
></slot>
|
|
91
|
+
</div>
|
|
92
|
+
</slot>`;
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
95
|
__decorate([
|
package/package.json
CHANGED