@momentum-design/components 0.81.6 → 0.82.1
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 +13 -10
- 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 +259 -235
- 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 +1 -1
- package/dist/react/index.js +1 -1
- package/dist/utils/mixins/CardAndDialogFooterMixin.js +11 -9
- 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
|
@@ -43,8 +43,8 @@ export { default as OptGroup } from './optgroup';
|
|
|
43
43
|
export { default as Option } from './option';
|
|
44
44
|
export { default as Popover } from './popover';
|
|
45
45
|
export { default as Presence } from './presence';
|
|
46
|
-
export { default as Progressspinner } from './progressspinner';
|
|
47
46
|
export { default as Progressbar } from './progressbar';
|
|
47
|
+
export { default as Progressspinner } from './progressspinner';
|
|
48
48
|
export { default as Radio } from './radio';
|
|
49
49
|
export { default as RadioGroup } from './radiogroup';
|
|
50
50
|
export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
|
package/dist/react/index.js
CHANGED
|
@@ -43,8 +43,8 @@ export { default as OptGroup } from './optgroup';
|
|
|
43
43
|
export { default as Option } from './option';
|
|
44
44
|
export { default as Popover } from './popover';
|
|
45
45
|
export { default as Presence } from './presence';
|
|
46
|
-
export { default as Progressspinner } from './progressspinner';
|
|
47
46
|
export { default as Progressbar } from './progressbar';
|
|
47
|
+
export { default as Progressspinner } from './progressspinner';
|
|
48
48
|
export { default as Radio } from './radio';
|
|
49
49
|
export { default as RadioGroup } from './radiogroup';
|
|
50
50
|
export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
|
|
@@ -77,15 +77,17 @@ export const CardAndDialogFooterMixin = (superClass) => {
|
|
|
77
77
|
*/
|
|
78
78
|
renderFooter() {
|
|
79
79
|
return html `<div part="footer">
|
|
80
|
-
<slot name="footer
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
<slot name="footer">
|
|
81
|
+
<slot name="footer-link" @slotchange=${() => this.handleFooterSlot(DEFAULTS.LINK)}></slot>
|
|
82
|
+
<slot
|
|
83
|
+
name="footer-button-secondary"
|
|
84
|
+
@slotchange=${() => this.handleFooterSlot(DEFAULTS.BUTTON, BUTTON_VARIANTS.SECONDARY)}
|
|
85
|
+
></slot>
|
|
86
|
+
<slot
|
|
87
|
+
name="footer-button-primary"
|
|
88
|
+
@slotchange=${() => this.handleFooterSlot(DEFAULTS.BUTTON, BUTTON_VARIANTS.PRIMARY)}
|
|
89
|
+
></slot>
|
|
90
|
+
</slot>
|
|
89
91
|
</div>`;
|
|
90
92
|
}
|
|
91
93
|
}
|
package/package.json
CHANGED