@momentum-design/components 0.129.2 → 0.129.4
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 +8 -2
- package/dist/browser/index.js.map +3 -3
- package/dist/components/card/card.component.d.ts +1 -0
- package/dist/components/card/card.component.js +1 -0
- package/dist/components/cardbutton/cardbutton.component.d.ts +1 -0
- package/dist/components/cardbutton/cardbutton.component.js +1 -0
- package/dist/components/virtualizedlist/virtualizedlist.component.js +5 -5
- package/dist/components/virtualizedlist/virtualizedlist.styles.js +2 -0
- package/dist/custom-elements.json +5047 -5023
- package/dist/react/card/index.d.ts +1 -0
- package/dist/react/card/index.js +1 -0
- package/dist/react/cardbutton/index.d.ts +1 -0
- package/dist/react/cardbutton/index.js +1 -0
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +4 -4
- package/dist/utils/mixins/CardComponentMixin.js +5 -1
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ import Component from '../../components/card';
|
|
|
23
23
|
*
|
|
24
24
|
* Interactive card additionally supports 'promotional' variant that represents the border styling - 'promotional'.
|
|
25
25
|
*
|
|
26
|
+
* @slot image - This slot is for overriding the image content of the card
|
|
26
27
|
* @slot before-body - This slot is for passing the content before the body
|
|
27
28
|
* @slot body - This slot is for passing the text content for the card
|
|
28
29
|
* @slot after-body - This slot is for passing the content after the body
|
package/dist/react/card/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import { TAG_NAME } from '../../components/card/card.constants';
|
|
|
26
26
|
*
|
|
27
27
|
* Interactive card additionally supports 'promotional' variant that represents the border styling - 'promotional'.
|
|
28
28
|
*
|
|
29
|
+
* @slot image - This slot is for overriding the image content of the card
|
|
29
30
|
* @slot before-body - This slot is for passing the content before the body
|
|
30
31
|
* @slot body - This slot is for passing the text content for the card
|
|
31
32
|
* @slot after-body - This slot is for passing the content after the body
|
|
@@ -19,6 +19,7 @@ import type { Events as EventsInherited } from '../../components/buttonsimple/bu
|
|
|
19
19
|
* It fires the click event when space key is used.
|
|
20
20
|
* @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
|
|
21
21
|
*
|
|
22
|
+
* @slot image - This slot is for overriding the image content of the card
|
|
22
23
|
* @slot before-body - This slot is for passing the content before the body
|
|
23
24
|
* @slot body - This slot is for passing the text content for the card
|
|
24
25
|
* @slot after-body - This slot is for passing the content after the body
|
|
@@ -20,6 +20,7 @@ import { TAG_NAME } from '../../components/cardbutton/cardbutton.constants';
|
|
|
20
20
|
* It fires the click event when space key is used.
|
|
21
21
|
* @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
|
|
22
22
|
*
|
|
23
|
+
* @slot image - This slot is for overriding the image content of the card
|
|
23
24
|
* @slot before-body - This slot is for passing the content before the body
|
|
24
25
|
* @slot body - This slot is for passing the text content for the card
|
|
25
26
|
* @slot after-body - This slot is for passing the content after the body
|
package/dist/react/index.d.ts
CHANGED
|
@@ -14,24 +14,24 @@ export { default as Bullet } from './bullet';
|
|
|
14
14
|
export { default as Button } from './button';
|
|
15
15
|
export { default as ButtonGroup } from './buttongroup';
|
|
16
16
|
export { default as ButtonLink } from './buttonlink';
|
|
17
|
-
export { default as Card } from './card';
|
|
18
17
|
export { default as Buttonsimple } from './buttonsimple';
|
|
19
18
|
export { default as CardButton } from './cardbutton';
|
|
19
|
+
export { default as Card } from './card';
|
|
20
20
|
export { default as CardCheckbox } from './cardcheckbox';
|
|
21
21
|
export { default as CardRadio } from './cardradio';
|
|
22
22
|
export { default as Checkbox } from './checkbox';
|
|
23
23
|
export { default as Chip } from './chip';
|
|
24
|
-
export { default as Coachmark } from './coachmark';
|
|
25
24
|
export { default as Combobox } from './combobox';
|
|
26
25
|
export { default as ControlTypeProvider } from './controltypeprovider';
|
|
26
|
+
export { default as Dialog } from './dialog';
|
|
27
|
+
export { default as Coachmark } from './coachmark';
|
|
27
28
|
export { default as Divider } from './divider';
|
|
28
29
|
export { default as FilterChip } from './filterchip';
|
|
29
|
-
export { default as Dialog } from './dialog';
|
|
30
30
|
export { default as FormfieldGroup } from './formfieldgroup';
|
|
31
31
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
|
32
32
|
export { default as Icon } from './icon';
|
|
33
|
-
export { default as Illustration } from './illustration';
|
|
34
33
|
export { default as IconProvider } from './iconprovider';
|
|
34
|
+
export { default as Illustration } from './illustration';
|
|
35
35
|
export { default as IllustrationProvider } from './illustrationprovider';
|
|
36
36
|
export { default as Input } from './input';
|
|
37
37
|
export { default as InputChip } from './inputchip';
|
package/dist/react/index.js
CHANGED
|
@@ -14,24 +14,24 @@ export { default as Bullet } from './bullet';
|
|
|
14
14
|
export { default as Button } from './button';
|
|
15
15
|
export { default as ButtonGroup } from './buttongroup';
|
|
16
16
|
export { default as ButtonLink } from './buttonlink';
|
|
17
|
-
export { default as Card } from './card';
|
|
18
17
|
export { default as Buttonsimple } from './buttonsimple';
|
|
19
18
|
export { default as CardButton } from './cardbutton';
|
|
19
|
+
export { default as Card } from './card';
|
|
20
20
|
export { default as CardCheckbox } from './cardcheckbox';
|
|
21
21
|
export { default as CardRadio } from './cardradio';
|
|
22
22
|
export { default as Checkbox } from './checkbox';
|
|
23
23
|
export { default as Chip } from './chip';
|
|
24
|
-
export { default as Coachmark } from './coachmark';
|
|
25
24
|
export { default as Combobox } from './combobox';
|
|
26
25
|
export { default as ControlTypeProvider } from './controltypeprovider';
|
|
26
|
+
export { default as Dialog } from './dialog';
|
|
27
|
+
export { default as Coachmark } from './coachmark';
|
|
27
28
|
export { default as Divider } from './divider';
|
|
28
29
|
export { default as FilterChip } from './filterchip';
|
|
29
|
-
export { default as Dialog } from './dialog';
|
|
30
30
|
export { default as FormfieldGroup } from './formfieldgroup';
|
|
31
31
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
|
32
32
|
export { default as Icon } from './icon';
|
|
33
|
-
export { default as Illustration } from './illustration';
|
|
34
33
|
export { default as IconProvider } from './iconprovider';
|
|
34
|
+
export { default as Illustration } from './illustration';
|
|
35
35
|
export { default as IllustrationProvider } from './illustrationprovider';
|
|
36
36
|
export { default as Input } from './input';
|
|
37
37
|
export { default as InputChip } from './inputchip';
|
|
@@ -64,7 +64,11 @@ export const CardComponentMixin = (superClass) => {
|
|
|
64
64
|
if (!this.imageSrc) {
|
|
65
65
|
return nothing;
|
|
66
66
|
}
|
|
67
|
-
return html `<div part="image-wrapper"
|
|
67
|
+
return html `<div part="image-wrapper">
|
|
68
|
+
<slot name="image">
|
|
69
|
+
<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
|
|
70
|
+
</slot>
|
|
71
|
+
</div>`;
|
|
68
72
|
}
|
|
69
73
|
/**
|
|
70
74
|
* Renders the icon on the card if icon name is provided
|