@momentum-design/components 0.104.10 → 0.104.12
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 +210 -182
- package/dist/browser/index.js.map +3 -3
- package/dist/components/avatar/avatar.styles.js +28 -0
- package/dist/components/avatar/avatar.utils.js +9 -9
- package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +1 -1
- package/dist/components/cardcheckbox/cardcheckbox.component.js +2 -1
- package/dist/components/cardcheckbox/cardcheckbox.types.d.ts +3 -1
- package/dist/components/cardradio/cardradio.component.d.ts +1 -1
- package/dist/components/cardradio/cardradio.component.js +3 -2
- package/dist/components/cardradio/cardradio.types.d.ts +3 -1
- package/dist/components/presence/presence.component.d.ts +14 -16
- package/dist/components/presence/presence.component.js +24 -36
- package/dist/components/presence/presence.constants.d.ts +11 -11
- package/dist/components/presence/presence.constants.js +12 -12
- package/dist/components/presence/presence.styles.js +16 -16
- package/dist/components/presence/presence.types.d.ts +3 -3
- package/dist/components/presence/presence.utils.d.ts +2 -1
- package/dist/components/presence/presence.utils.js +27 -15
- package/dist/custom-elements.json +37 -10
- package/dist/react/cardcheckbox/index.d.ts +4 -1
- package/dist/react/cardcheckbox/index.js +2 -1
- package/dist/react/cardradio/index.d.ts +4 -1
- package/dist/react/cardradio/index.js +2 -1
- package/package.json +1 -1
@@ -47,13 +47,14 @@ import { TAG_NAME } from '../../components/cardcheckbox/cardcheckbox.constants';
|
|
47
47
|
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.
|
48
48
|
* It toggles the checked state when space key is used.
|
49
49
|
* @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
|
50
|
-
*
|
50
|
+
* @event change - (React: onChange) Event that gets dispatched when the card's checked state changes.
|
51
51
|
*/
|
52
52
|
const reactWrapper = createComponent({
|
53
53
|
tagName: TAG_NAME,
|
54
54
|
elementClass: Component,
|
55
55
|
react: React,
|
56
56
|
events: {
|
57
|
+
onChange: 'change',
|
57
58
|
onClick: 'click',
|
58
59
|
onKeyDown: 'keydown',
|
59
60
|
onKeyUp: 'keyup',
|
@@ -45,9 +45,12 @@ import Component from '../../components/cardradio';
|
|
45
45
|
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.
|
46
46
|
* It toggles the checked state when space key is used.
|
47
47
|
* @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
|
48
|
-
*
|
48
|
+
* @event change - (React: onChange) Event that gets dispatched when the card's checked state changes.
|
49
49
|
*/
|
50
50
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
51
|
+
onChange: EventName<CustomEvent<unknown> & {
|
52
|
+
target: Component;
|
53
|
+
}>;
|
51
54
|
onClick: EventName<import("../../utils/types").OverrideEventTarget<MouseEvent, Component>>;
|
52
55
|
onKeyDown: EventName<import("../../utils/types").OverrideEventTarget<KeyboardEvent, Component>>;
|
53
56
|
onKeyUp: EventName<import("../../utils/types").OverrideEventTarget<KeyboardEvent, Component>>;
|
@@ -47,13 +47,14 @@ import { TAG_NAME } from '../../components/cardradio/cardradio.constants';
|
|
47
47
|
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.
|
48
48
|
* It toggles the checked state when space key is used.
|
49
49
|
* @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
|
50
|
-
*
|
50
|
+
* @event change - (React: onChange) Event that gets dispatched when the card's checked state changes.
|
51
51
|
*/
|
52
52
|
const reactWrapper = createComponent({
|
53
53
|
tagName: TAG_NAME,
|
54
54
|
elementClass: Component,
|
55
55
|
react: React,
|
56
56
|
events: {
|
57
|
+
onChange: 'change',
|
57
58
|
onClick: 'click',
|
58
59
|
onKeyDown: 'keydown',
|
59
60
|
onKeyUp: 'keyup',
|