@momentum-design/components 0.104.11 → 0.104.13
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 +43 -43
- package/dist/browser/index.js.map +3 -3
- 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/checkbox/checkbox.component.js +1 -1
- package/dist/components/formfieldgroup/formfieldgroup.component.js +0 -2
- package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +6 -5
- package/dist/components/formfieldwrapper/formfieldwrapper.component.js +8 -10
- package/dist/components/input/input.component.js +1 -1
- package/dist/components/radio/radio.component.js +1 -1
- package/dist/components/select/select.component.js +1 -1
- package/dist/components/textarea/textarea.component.js +1 -1
- package/dist/components/toggle/toggle.component.js +1 -1
- package/dist/custom-elements.json +1378 -1705
- 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/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +3 -3
- package/dist/utils/mixins/FormInternalsMixin.js +0 -6
- package/package.json +1 -1
@@ -45,9 +45,12 @@ import Component from '../../components/cardcheckbox';
|
|
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/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',
|
package/dist/react/index.d.ts
CHANGED
@@ -31,10 +31,10 @@ export { default as IconProvider } from './iconprovider';
|
|
31
31
|
export { default as Input } from './input';
|
32
32
|
export { default as InputChip } from './inputchip';
|
33
33
|
export { default as Link } from './link';
|
34
|
-
export { default as LinkButton } from './linkbutton';
|
35
|
-
export { default as Linksimple } from './linksimple';
|
36
34
|
export { default as List } from './list';
|
37
35
|
export { default as Listheader } from './listheader';
|
36
|
+
export { default as Linksimple } from './linksimple';
|
37
|
+
export { default as LinkButton } from './linkbutton';
|
38
38
|
export { default as ListItem } from './listitem';
|
39
39
|
export { default as Marker } from './marker';
|
40
40
|
export { default as MenuBar } from './menubar';
|
@@ -72,8 +72,8 @@ export { default as TabList } from './tablist';
|
|
72
72
|
export { default as Text } from './text';
|
73
73
|
export { default as Textarea } from './textarea';
|
74
74
|
export { default as ThemeProvider } from './themeprovider';
|
75
|
-
export { default as Toast } from './toast';
|
76
75
|
export { default as Toggle } from './toggle';
|
76
|
+
export { default as Toast } from './toast';
|
77
77
|
export { default as ToggleTip } from './toggletip';
|
78
78
|
export { default as Tooltip } from './tooltip';
|
79
79
|
export { default as Typewriter } from './typewriter';
|
package/dist/react/index.js
CHANGED
@@ -31,10 +31,10 @@ export { default as IconProvider } from './iconprovider';
|
|
31
31
|
export { default as Input } from './input';
|
32
32
|
export { default as InputChip } from './inputchip';
|
33
33
|
export { default as Link } from './link';
|
34
|
-
export { default as LinkButton } from './linkbutton';
|
35
|
-
export { default as Linksimple } from './linksimple';
|
36
34
|
export { default as List } from './list';
|
37
35
|
export { default as Listheader } from './listheader';
|
36
|
+
export { default as Linksimple } from './linksimple';
|
37
|
+
export { default as LinkButton } from './linkbutton';
|
38
38
|
export { default as ListItem } from './listitem';
|
39
39
|
export { default as Marker } from './marker';
|
40
40
|
export { default as MenuBar } from './menubar';
|
@@ -72,8 +72,8 @@ export { default as TabList } from './tablist';
|
|
72
72
|
export { default as Text } from './text';
|
73
73
|
export { default as Textarea } from './textarea';
|
74
74
|
export { default as ThemeProvider } from './themeprovider';
|
75
|
-
export { default as Toast } from './toast';
|
76
75
|
export { default as Toggle } from './toggle';
|
76
|
+
export { default as Toast } from './toast';
|
77
77
|
export { default as ToggleTip } from './toggletip';
|
78
78
|
export { default as Tooltip } from './tooltip';
|
79
79
|
export { default as Typewriter } from './typewriter';
|
@@ -8,7 +8,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
9
9
|
};
|
10
10
|
import { property, query } from 'lit/decorators.js';
|
11
|
-
import { v4 as uuidv4 } from 'uuid';
|
12
11
|
export const FormInternalsMixin = (superClass) => {
|
13
12
|
class InnerMixinClass extends superClass {
|
14
13
|
constructor() {
|
@@ -37,11 +36,6 @@ export const FormInternalsMixin = (superClass) => {
|
|
37
36
|
get willValidate() {
|
38
37
|
return this.internals.willValidate;
|
39
38
|
}
|
40
|
-
connectedCallback() {
|
41
|
-
super.connectedCallback();
|
42
|
-
/** @internal */
|
43
|
-
this.id = `mdc-el-${uuidv4()}`;
|
44
|
-
}
|
45
39
|
/**
|
46
40
|
* Sets the validity of the input field based on the input field's validity.
|
47
41
|
* @returns void
|