@momentum-design/components 0.27.2 → 0.27.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 +68 -68
- package/dist/browser/index.js.map +3 -3
- package/dist/components/avatarbutton/avatarbutton.component.d.ts +5 -0
- package/dist/components/avatarbutton/avatarbutton.component.js +5 -0
- package/dist/components/button/button.component.d.ts +5 -0
- package/dist/components/button/button.component.js +25 -16
- package/dist/components/buttonsimple/buttonsimple.component.d.ts +5 -0
- package/dist/components/buttonsimple/buttonsimple.component.js +5 -0
- package/dist/components/checkbox/checkbox.component.d.ts +3 -0
- package/dist/components/checkbox/checkbox.component.js +3 -0
- package/dist/components/icon/icon.component.js +29 -16
- package/dist/components/icon/icon.utils.d.ts +2 -2
- package/dist/components/icon/icon.utils.js +2 -2
- package/dist/components/iconprovider/iconprovider.component.d.ts +33 -29
- package/dist/components/iconprovider/iconprovider.component.js +33 -5
- package/dist/components/iconprovider/iconprovider.constants.d.ts +1 -0
- package/dist/components/iconprovider/iconprovider.constants.js +1 -0
- package/dist/components/iconprovider/iconprovider.context.d.ts +3 -1
- package/dist/components/iconprovider/iconprovider.types.d.ts +3 -0
- package/dist/components/iconprovider/iconprovider.types.js +1 -0
- package/dist/components/input/input.component.d.ts +5 -0
- package/dist/components/input/input.component.js +5 -0
- package/dist/components/radio/radio.component.d.ts +3 -0
- package/dist/components/radio/radio.component.js +3 -0
- package/dist/components/tab/tab.component.d.ts +5 -0
- package/dist/components/tab/tab.component.js +5 -0
- package/dist/components/toggle/toggle.component.d.ts +3 -0
- package/dist/components/toggle/toggle.component.js +3 -0
- package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +2 -0
- package/dist/components/virtualizedlist/virtualizedlist.component.js +2 -0
- package/dist/custom-elements.json +261 -21
- package/dist/react/avatarbutton/index.d.ts +11 -1
- package/dist/react/avatarbutton/index.js +11 -1
- package/dist/react/button/index.d.ts +11 -1
- package/dist/react/button/index.js +11 -1
- package/dist/react/buttonsimple/index.d.ts +11 -1
- package/dist/react/buttonsimple/index.js +11 -1
- package/dist/react/checkbox/index.d.ts +8 -1
- package/dist/react/checkbox/index.js +8 -1
- package/dist/react/iconprovider/index.d.ts +11 -5
- package/dist/react/iconprovider/index.js +11 -5
- package/dist/react/input/index.d.ts +12 -1
- package/dist/react/input/index.js +12 -1
- package/dist/react/radio/index.d.ts +8 -1
- package/dist/react/radio/index.js +8 -1
- package/dist/react/tab/index.d.ts +11 -1
- package/dist/react/tab/index.js +11 -1
- package/dist/react/toggle/index.d.ts +8 -1
- package/dist/react/toggle/index.js +8 -1
- package/dist/react/virtualizedlist/index.d.ts +5 -1
- package/dist/react/virtualizedlist/index.js +5 -1
- package/package.json +1 -1
@@ -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;
|
@@ -3,12 +3,18 @@ import Component from '../../components/iconprovider';
|
|
3
3
|
* IconProvider component, which allows to be consumed from sub components
|
4
4
|
* (see `providerUtils.consume` for how to consume)
|
5
5
|
*
|
6
|
-
*
|
7
|
-
*
|
8
|
-
*
|
6
|
+
* Attribute `iconSet` can be set to either `momentum-icons` or `custom-icons`.
|
7
|
+
* If `momentum-icons` is selected, the icons will be fetched from the
|
8
|
+
* Momentum Design System icon set per a dynamic JS Import (no need to provide a URL).
|
9
|
+
* This requires the consumer to have the `@momentum-designs` package installed and the
|
10
|
+
* build tooling needs to support dynamic imports.
|
9
11
|
*
|
10
|
-
* If `
|
11
|
-
*
|
12
|
+
* If `custom-icons` is selected, the icons will be fetched from the provided URL.
|
13
|
+
* This requires the consumer to provide a URL from which the icons will be fetched and
|
14
|
+
* the consumer needs to make sure to bundle the icons in the application.
|
15
|
+
*
|
16
|
+
* If `cacheStrategy` is provided (only works with iconSet = `custom-icons`), the
|
17
|
+
* IconProvider will cache the icons in the selected cache (either web-api-cache or in-memory-cache),
|
12
18
|
* to avoid fetching the same icon multiple times over the network.
|
13
19
|
* This is useful when the same icon is used multiple times in the application.
|
14
20
|
* To consider:
|
@@ -6,12 +6,18 @@ import { TAG_NAME } from '../../components/iconprovider/iconprovider.constants';
|
|
6
6
|
* IconProvider component, which allows to be consumed from sub components
|
7
7
|
* (see `providerUtils.consume` for how to consume)
|
8
8
|
*
|
9
|
-
*
|
10
|
-
*
|
11
|
-
*
|
9
|
+
* Attribute `iconSet` can be set to either `momentum-icons` or `custom-icons`.
|
10
|
+
* If `momentum-icons` is selected, the icons will be fetched from the
|
11
|
+
* Momentum Design System icon set per a dynamic JS Import (no need to provide a URL).
|
12
|
+
* This requires the consumer to have the `@momentum-designs` package installed and the
|
13
|
+
* build tooling needs to support dynamic imports.
|
12
14
|
*
|
13
|
-
* If `
|
14
|
-
*
|
15
|
+
* If `custom-icons` is selected, the icons will be fetched from the provided URL.
|
16
|
+
* This requires the consumer to provide a URL from which the icons will be fetched and
|
17
|
+
* the consumer needs to make sure to bundle the icons in the application.
|
18
|
+
*
|
19
|
+
* If `cacheStrategy` is provided (only works with iconSet = `custom-icons`), the
|
20
|
+
* IconProvider will cache the icons in the selected cache (either web-api-cache or in-memory-cache),
|
15
21
|
* to avoid fetching the same icon multiple times over the network.
|
16
22
|
* This is useful when the same icon is used multiple times in the application.
|
17
23
|
* To consider:
|
@@ -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;
|
package/dist/react/tab/index.js
CHANGED
@@ -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