@momentum-design/components 0.27.3 → 0.27.5

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.
Files changed (42) hide show
  1. package/dist/browser/index.js +15 -15
  2. package/dist/browser/index.js.map +3 -3
  3. package/dist/components/avatarbutton/avatarbutton.component.d.ts +5 -0
  4. package/dist/components/avatarbutton/avatarbutton.component.js +5 -0
  5. package/dist/components/button/button.component.d.ts +5 -0
  6. package/dist/components/button/button.component.js +26 -17
  7. package/dist/components/buttonsimple/buttonsimple.component.d.ts +5 -0
  8. package/dist/components/buttonsimple/buttonsimple.component.js +5 -0
  9. package/dist/components/checkbox/checkbox.component.d.ts +3 -0
  10. package/dist/components/checkbox/checkbox.component.js +3 -0
  11. package/dist/components/input/input.component.d.ts +5 -0
  12. package/dist/components/input/input.component.js +5 -0
  13. package/dist/components/radio/radio.component.d.ts +3 -0
  14. package/dist/components/radio/radio.component.js +3 -0
  15. package/dist/components/tab/tab.component.d.ts +5 -0
  16. package/dist/components/tab/tab.component.js +5 -0
  17. package/dist/components/toggle/toggle.component.d.ts +3 -0
  18. package/dist/components/toggle/toggle.component.js +3 -0
  19. package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +2 -0
  20. package/dist/components/virtualizedlist/virtualizedlist.component.js +2 -0
  21. package/dist/custom-elements.json +1052 -832
  22. package/dist/react/avatarbutton/index.d.ts +11 -1
  23. package/dist/react/avatarbutton/index.js +11 -1
  24. package/dist/react/button/index.d.ts +11 -1
  25. package/dist/react/button/index.js +11 -1
  26. package/dist/react/buttonsimple/index.d.ts +11 -1
  27. package/dist/react/buttonsimple/index.js +11 -1
  28. package/dist/react/checkbox/index.d.ts +8 -1
  29. package/dist/react/checkbox/index.js +8 -1
  30. package/dist/react/index.d.ts +1 -1
  31. package/dist/react/index.js +1 -1
  32. package/dist/react/input/index.d.ts +12 -1
  33. package/dist/react/input/index.js +12 -1
  34. package/dist/react/radio/index.d.ts +8 -1
  35. package/dist/react/radio/index.js +8 -1
  36. package/dist/react/tab/index.d.ts +11 -1
  37. package/dist/react/tab/index.js +11 -1
  38. package/dist/react/toggle/index.d.ts +8 -1
  39. package/dist/react/toggle/index.js +8 -1
  40. package/dist/react/virtualizedlist/index.d.ts +5 -1
  41. package/dist/react/virtualizedlist/index.js +5 -1
  42. package/package.json +1 -1
@@ -7,7 +7,17 @@ import Component from '../../components/avatarbutton';
7
7
  *
8
8
  * @dependency mdc-avatar
9
9
  *
10
+ * @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.
11
+ * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the avatarbutton.
12
+ * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the avatarbutton.
13
+ * @event focus - (React: onFocus) This event is dispatched when the avatarbutton receives focus.
14
+ *
10
15
  * @tagname mdc-avatarbutton
11
16
  */
12
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
17
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
18
+ onClick: string;
19
+ onKeyDown: string;
20
+ onKeyUp: string;
21
+ onFocus: string;
22
+ }>;
13
23
  export default reactWrapper;
@@ -10,13 +10,23 @@ import { TAG_NAME } from '../../components/avatarbutton/avatarbutton.constants';
10
10
  *
11
11
  * @dependency mdc-avatar
12
12
  *
13
+ * @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.
14
+ * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the avatarbutton.
15
+ * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the avatarbutton.
16
+ * @event focus - (React: onFocus) This event is dispatched when the avatarbutton receives focus.
17
+ *
13
18
  * @tagname mdc-avatarbutton
14
19
  */
15
20
  const reactWrapper = createComponent({
16
21
  tagName: TAG_NAME,
17
22
  elementClass: Component,
18
23
  react: React,
19
- events: {},
24
+ events: {
25
+ onClick: 'click',
26
+ onKeyDown: 'keydown',
27
+ onKeyUp: 'keyup',
28
+ onFocus: 'focus',
29
+ },
20
30
  displayName: 'AvatarButton',
21
31
  });
22
32
  export default reactWrapper;
@@ -27,9 +27,19 @@ import Component from '../../components/button';
27
27
  *
28
28
  * @dependency mdc-icon
29
29
  *
30
+ * @event click - (React: onClick) This event is dispatched when the button is clicked.
31
+ * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the button.
32
+ * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the button.
33
+ * @event focus - (React: onFocus) This event is dispatched when the button receives focus.
34
+ *
30
35
  * @tagname mdc-button
31
36
  *
32
37
  * @slot - Text label of the button.
33
38
  */
34
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
39
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
40
+ onClick: string;
41
+ onKeyDown: string;
42
+ onKeyUp: string;
43
+ onFocus: string;
44
+ }>;
35
45
  export default reactWrapper;
@@ -30,6 +30,11 @@ import { TAG_NAME } from '../../components/button/button.constants';
30
30
  *
31
31
  * @dependency mdc-icon
32
32
  *
33
+ * @event click - (React: onClick) This event is dispatched when the button is clicked.
34
+ * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the button.
35
+ * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the button.
36
+ * @event focus - (React: onFocus) This event is dispatched when the button receives focus.
37
+ *
33
38
  * @tagname mdc-button
34
39
  *
35
40
  * @slot - Text label of the button.
@@ -38,7 +43,12 @@ const reactWrapper = createComponent({
38
43
  tagName: TAG_NAME,
39
44
  elementClass: Component,
40
45
  react: React,
41
- events: {},
46
+ events: {
47
+ onClick: 'click',
48
+ onKeyDown: 'keydown',
49
+ onKeyUp: 'keyup',
50
+ onFocus: 'focus',
51
+ },
42
52
  displayName: 'Button',
43
53
  });
44
54
  export default reactWrapper;
@@ -4,7 +4,17 @@ import Component from '../../components/buttonsimple';
4
4
  * It is used as an internal component and is not intended to be used directly by consumers.
5
5
  * Consumers should use the `mdc-button` component instead.
6
6
  *
7
+ * @event click - (React: onClick) This event is dispatched when the button is clicked.
8
+ * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the button.
9
+ * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the button.
10
+ * @event focus - (React: onFocus) This event is dispatched when the button receives focus.
11
+ *
7
12
  * @tagname mdc-buttonsimple
8
13
  */
9
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
14
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
15
+ onClick: string;
16
+ onKeyDown: string;
17
+ onKeyUp: string;
18
+ onFocus: string;
19
+ }>;
10
20
  export default reactWrapper;
@@ -7,13 +7,23 @@ import { TAG_NAME } from '../../components/buttonsimple/buttonsimple.constants';
7
7
  * It is used as an internal component and is not intended to be used directly by consumers.
8
8
  * Consumers should use the `mdc-button` component instead.
9
9
  *
10
+ * @event click - (React: onClick) This event is dispatched when the button is clicked.
11
+ * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the button.
12
+ * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the button.
13
+ * @event focus - (React: onFocus) This event is dispatched when the button receives focus.
14
+ *
10
15
  * @tagname mdc-buttonsimple
11
16
  */
12
17
  const reactWrapper = createComponent({
13
18
  tagName: TAG_NAME,
14
19
  elementClass: Component,
15
20
  react: React,
16
- events: {},
21
+ events: {
22
+ onClick: 'click',
23
+ onKeyDown: 'keydown',
24
+ onKeyUp: 'keyup',
25
+ onFocus: 'focus',
26
+ },
17
27
  displayName: 'Buttonsimple',
18
28
  });
19
29
  export default reactWrapper;
@@ -11,6 +11,9 @@ import Component from '../../components/checkbox';
11
11
  *
12
12
  * @tagname mdc-checkbox
13
13
  *
14
+ * @event change - (React: onChange) Event that gets dispatched when the checkbox state changes.
15
+ * @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.
16
+ *
14
17
  * @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.
15
18
  * @cssproperty --mdc-checkbox-border-color - Border color in high contrast.
16
19
  * @cssproperty --mdc-checkbox-checked-background-color - Background color for a selected checkbox.
@@ -25,5 +28,9 @@ import Component from '../../components/checkbox';
25
28
  * @cssproperty --mdc-checkbox-icon-color - Icon color for an unselected checkbox.
26
29
  * @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.
27
30
  */
28
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
31
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
32
+ undefined: string;
33
+ onChange: string;
34
+ onFocus: string;
35
+ }>;
29
36
  export default reactWrapper;
@@ -14,6 +14,9 @@ import { TAG_NAME } from '../../components/checkbox/checkbox.constants';
14
14
  *
15
15
  * @tagname mdc-checkbox
16
16
  *
17
+ * @event change - (React: onChange) Event that gets dispatched when the checkbox state changes.
18
+ * @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.
19
+ *
17
20
  * @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.
18
21
  * @cssproperty --mdc-checkbox-border-color - Border color in high contrast.
19
22
  * @cssproperty --mdc-checkbox-checked-background-color - Background color for a selected checkbox.
@@ -32,7 +35,11 @@ const reactWrapper = createComponent({
32
35
  tagName: TAG_NAME,
33
36
  elementClass: Component,
34
37
  react: React,
35
- events: {},
38
+ events: {
39
+ undefined: 'undefined',
40
+ onChange: 'change',
41
+ onFocus: 'focus',
42
+ },
36
43
  displayName: 'Checkbox',
37
44
  });
38
45
  export default reactWrapper;
@@ -2,9 +2,9 @@ export { default as Avatar } from './avatar';
2
2
  export { default as AvatarButton } from './avatarbutton';
3
3
  export { default as Badge } from './badge';
4
4
  export { default as Bullet } from './bullet';
5
+ export { default as Button } from './button';
5
6
  export { default as Buttonsimple } from './buttonsimple';
6
7
  export { default as Checkbox } from './checkbox';
7
- export { default as Button } from './button';
8
8
  export { default as Divider } from './divider';
9
9
  export { default as FormfieldGroup } from './formfieldgroup';
10
10
  export { default as FormfieldWrapper } from './formfieldwrapper';
@@ -2,9 +2,9 @@ export { default as Avatar } from './avatar';
2
2
  export { default as AvatarButton } from './avatarbutton';
3
3
  export { default as Badge } from './badge';
4
4
  export { default as Bullet } from './bullet';
5
+ export { default as Button } from './button';
5
6
  export { default as Buttonsimple } from './buttonsimple';
6
7
  export { default as Checkbox } from './checkbox';
7
- export { default as Button } from './button';
8
8
  export { default as Divider } from './divider';
9
9
  export { default as FormfieldGroup } from './formfieldgroup';
10
10
  export { default as FormfieldWrapper } from './formfieldwrapper';
@@ -13,6 +13,11 @@ import Component from '../../components/input';
13
13
  *
14
14
  * @tagname mdc-input
15
15
  *
16
+ * @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).
17
+ * @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
18
+ * @event focus - (React: onFocus) This event is dispatched when the input receives focus.
19
+ * @event blur - (React: onBlur) This event is dispatched when the input loses focus.
20
+ *
16
21
  * @dependency mdc-icon
17
22
  * @dependency mdc-text
18
23
  * @dependency mdc-button
@@ -35,5 +40,11 @@ import Component from '../../components/input';
35
40
  * @cssproperty --mdc-input-primary-border-color - Border color for the input container when primary
36
41
  *
37
42
  */
38
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
43
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
44
+ undefined: string;
45
+ onInput: string;
46
+ onChange: string;
47
+ onFocus: string;
48
+ onBlur: string;
49
+ }>;
39
50
  export default reactWrapper;
@@ -16,6 +16,11 @@ import { TAG_NAME } from '../../components/input/input.constants';
16
16
  *
17
17
  * @tagname mdc-input
18
18
  *
19
+ * @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).
20
+ * @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
21
+ * @event focus - (React: onFocus) This event is dispatched when the input receives focus.
22
+ * @event blur - (React: onBlur) This event is dispatched when the input loses focus.
23
+ *
19
24
  * @dependency mdc-icon
20
25
  * @dependency mdc-text
21
26
  * @dependency mdc-button
@@ -42,7 +47,13 @@ const reactWrapper = createComponent({
42
47
  tagName: TAG_NAME,
43
48
  elementClass: Component,
44
49
  react: React,
45
- events: {},
50
+ events: {
51
+ undefined: 'undefined',
52
+ onInput: 'input',
53
+ onChange: 'change',
54
+ onFocus: 'focus',
55
+ onBlur: 'blur',
56
+ },
46
57
  displayName: 'Input',
47
58
  });
48
59
  export default reactWrapper;
@@ -8,6 +8,9 @@ import Component from '../../components/radio';
8
8
  *
9
9
  * @tagname mdc-radio
10
10
  *
11
+ * @event change - (React: onChange) Event that gets dispatched when the radio state changes.
12
+ * @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
13
+ *
11
14
  * @cssproperty --mdc-radio-inner-circle-size - size of the inner circle
12
15
  * @cssproperty --mdc-radio-text-disabled-color - color of the label when disabled
13
16
  * @cssproperty --mdc-radio-disabled-border-color - color of the radio button border when disabled
@@ -26,5 +29,9 @@ import Component from '../../components/radio';
26
29
  * when active and disabled
27
30
  *
28
31
  */
29
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
32
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
33
+ undefined: string;
34
+ onChange: string;
35
+ onFocus: string;
36
+ }>;
30
37
  export default reactWrapper;
@@ -11,6 +11,9 @@ import { TAG_NAME } from '../../components/radio/radio.constants';
11
11
  *
12
12
  * @tagname mdc-radio
13
13
  *
14
+ * @event change - (React: onChange) Event that gets dispatched when the radio state changes.
15
+ * @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
16
+ *
14
17
  * @cssproperty --mdc-radio-inner-circle-size - size of the inner circle
15
18
  * @cssproperty --mdc-radio-text-disabled-color - color of the label when disabled
16
19
  * @cssproperty --mdc-radio-disabled-border-color - color of the radio button border when disabled
@@ -33,7 +36,11 @@ const reactWrapper = createComponent({
33
36
  tagName: TAG_NAME,
34
37
  elementClass: Component,
35
38
  react: React,
36
- events: {},
39
+ events: {
40
+ undefined: 'undefined',
41
+ onChange: 'change',
42
+ onFocus: 'focus',
43
+ },
37
44
  displayName: 'Radio',
38
45
  });
39
46
  export default reactWrapper;
@@ -16,6 +16,11 @@ import Component from '../../components/tab';
16
16
  * @dependency mdc-icon
17
17
  * @dependency mdc-text
18
18
  *
19
+ * @event click - (React: onClick) This event is dispatched when the tab is clicked.
20
+ * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the tab.
21
+ * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the tab.
22
+ * @event focus - (React: onFocus) This event is dispatched when the tab receives focus.
23
+ *
19
24
  * @tagname mdc-tab
20
25
  *
21
26
  * @cssproperty --mdc-tab-content-gap - Gap between the badge(if provided), icon and text.
@@ -83,5 +88,10 @@ import Component from '../../components/tab';
83
88
  * @cssproperty --mdc-tab-pill-inactive-color - Text and icon color for inactive pill tab.
84
89
  * @cssproperty --mdc-tab-pill-inactive-color-disabled - Text and icon color for inactive pill tab in disabled state.
85
90
  */
86
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
91
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
92
+ onClick: string;
93
+ onKeyDown: string;
94
+ onKeyUp: string;
95
+ onFocus: string;
96
+ }>;
87
97
  export default reactWrapper;
@@ -19,6 +19,11 @@ import { TAG_NAME } from '../../components/tab/tab.constants';
19
19
  * @dependency mdc-icon
20
20
  * @dependency mdc-text
21
21
  *
22
+ * @event click - (React: onClick) This event is dispatched when the tab is clicked.
23
+ * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the tab.
24
+ * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the tab.
25
+ * @event focus - (React: onFocus) This event is dispatched when the tab receives focus.
26
+ *
22
27
  * @tagname mdc-tab
23
28
  *
24
29
  * @cssproperty --mdc-tab-content-gap - Gap between the badge(if provided), icon and text.
@@ -90,7 +95,12 @@ const reactWrapper = createComponent({
90
95
  tagName: TAG_NAME,
91
96
  elementClass: Component,
92
97
  react: React,
93
- events: {},
98
+ events: {
99
+ onClick: 'click',
100
+ onKeyDown: 'keydown',
101
+ onKeyUp: 'keyup',
102
+ onFocus: 'focus',
103
+ },
94
104
  displayName: 'Tab',
95
105
  });
96
106
  export default reactWrapper;
@@ -13,6 +13,9 @@ import Component from '../../components/toggle';
13
13
  *
14
14
  * @tagname mdc-toggle
15
15
  *
16
+ * @event change - (React: onChange) Event that gets dispatched when the toggle state changes.
17
+ * @event focus - (React: onFocus) Event that gets dispatched when the toggle receives focus.
18
+ *
16
19
  * @cssproperty --mdc-toggle-width - width of the toggle
17
20
  * @cssproperty --mdc-toggle-height - height of the toggle
18
21
  * @cssproperty --mdc-toggle-width-compact - width of the toggle when it's size is compact
@@ -32,5 +35,9 @@ import Component from '../../components/toggle';
32
35
  * @cssproperty --mdc-toggle-label-color-disabled - color of the toggle label and help text in disabled state
33
36
  *
34
37
  */
35
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
38
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
39
+ undefined: string;
40
+ onChange: string;
41
+ onFocus: string;
42
+ }>;
36
43
  export default reactWrapper;
@@ -16,6 +16,9 @@ import { TAG_NAME } from '../../components/toggle/toggle.constants';
16
16
  *
17
17
  * @tagname mdc-toggle
18
18
  *
19
+ * @event change - (React: onChange) Event that gets dispatched when the toggle state changes.
20
+ * @event focus - (React: onFocus) Event that gets dispatched when the toggle receives focus.
21
+ *
19
22
  * @cssproperty --mdc-toggle-width - width of the toggle
20
23
  * @cssproperty --mdc-toggle-height - height of the toggle
21
24
  * @cssproperty --mdc-toggle-width-compact - width of the toggle when it's size is compact
@@ -39,7 +42,11 @@ const reactWrapper = createComponent({
39
42
  tagName: TAG_NAME,
40
43
  elementClass: Component,
41
44
  react: React,
42
- events: {},
45
+ events: {
46
+ undefined: 'undefined',
47
+ onChange: 'change',
48
+ onFocus: 'focus',
49
+ },
43
50
  displayName: 'Toggle',
44
51
  });
45
52
  export default reactWrapper;
@@ -9,7 +9,11 @@ import Component from '../../components/virtualizedlist';
9
9
  *
10
10
  * @tagname mdc-virtualizedlist
11
11
  *
12
+ * @event onscroll - (React: onScroll) Event that gets called when user scrolls inside of list.
13
+ *
12
14
  * @slot - Client side List with nested list items.
13
15
  */
14
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
16
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
17
+ onScroll: string;
18
+ }>;
15
19
  export default reactWrapper;
@@ -12,13 +12,17 @@ import { TAG_NAME } from '../../components/virtualizedlist/virtualizedlist.const
12
12
  *
13
13
  * @tagname mdc-virtualizedlist
14
14
  *
15
+ * @event onscroll - (React: onScroll) Event that gets called when user scrolls inside of list.
16
+ *
15
17
  * @slot - Client side List with nested list items.
16
18
  */
17
19
  const reactWrapper = createComponent({
18
20
  tagName: TAG_NAME,
19
21
  elementClass: Component,
20
22
  react: React,
21
- events: {},
23
+ events: {
24
+ onScroll: 'onscroll',
25
+ },
22
26
  displayName: 'VirtualizedList',
23
27
  });
24
28
  export default reactWrapper;
package/package.json CHANGED
@@ -37,5 +37,5 @@
37
37
  "lit": "^3.2.0",
38
38
  "uuid": "^11.0.5"
39
39
  },
40
- "version": "0.27.3"
40
+ "version": "0.27.5"
41
41
  }