@momentum-design/components 0.102.3 → 0.102.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.
- package/dist/browser/index.js +240 -246
- package/dist/browser/index.js.map +4 -4
- package/dist/components/input/input.component.d.ts +1 -0
- package/dist/components/input/input.component.js +2 -0
- package/dist/components/input/input.types.d.ts +7 -3
- package/dist/components/list/index.d.ts +0 -1
- package/dist/components/list/index.js +0 -1
- package/dist/components/list/list.component.d.ts +9 -12
- package/dist/components/list/list.component.js +17 -34
- package/dist/components/list/list.styles.js +9 -2
- package/dist/components/searchfield/searchfield.component.d.ts +7 -2
- package/dist/components/searchfield/searchfield.component.js +8 -3
- package/dist/components/searchfield/searchfield.types.d.ts +2 -0
- package/dist/components/searchfield/searchfield.types.js +1 -0
- package/dist/custom-elements.json +236 -248
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/input/index.d.ts +3 -1
- package/dist/react/input/index.js +2 -0
- package/dist/react/list/index.d.ts +6 -2
- package/dist/react/list/index.js +6 -2
- package/dist/react/password/index.d.ts +2 -1
- package/dist/react/password/index.js +1 -0
- package/dist/react/searchfield/index.d.ts +9 -3
- package/dist/react/searchfield/index.js +8 -2
- package/package.json +1 -1
package/dist/react/list/index.js
CHANGED
@@ -5,11 +5,15 @@ import { TAG_NAME } from '../../components/list/list.constants';
|
|
5
5
|
/**
|
6
6
|
* mdc-list component is used to display a group of list items. It is used as a container to wrap other list items.
|
7
7
|
*
|
8
|
+
* To add a header to the list, use the `mdc-listheader` component and place it in the `list-header` slot.
|
9
|
+
* `mdc-listitem` components can be placed in the default slot.
|
10
|
+
*
|
8
11
|
* @tagname mdc-list
|
9
12
|
*
|
10
|
-
* @
|
13
|
+
* @slot default - This is a default/unnamed slot, where listitems can be placed.
|
14
|
+
* @slot list-header - This slot is used to pass a header for the list, which can be a `mdc-listheader` component.
|
11
15
|
*
|
12
|
-
* @
|
16
|
+
* @csspart container - The container slot around the list items
|
13
17
|
*/
|
14
18
|
const reactWrapper = createComponent({
|
15
19
|
tagName: TAG_NAME,
|
@@ -43,8 +43,9 @@ import Component from '../../components/password';
|
|
43
43
|
*/
|
44
44
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
45
45
|
onInput: EventName<InputEvent>;
|
46
|
-
onChange: EventName<
|
46
|
+
onChange: EventName<import("../../components/input/input.types").InputChangeEvent>;
|
47
47
|
onFocus: EventName<FocusEvent>;
|
48
48
|
onBlur: EventName<FocusEvent>;
|
49
|
+
onClear: EventName<import("../../components/input/input.types").InputClearEvent>;
|
49
50
|
}>;
|
50
51
|
export default reactWrapper;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type EventName } from '@lit/react';
|
2
2
|
import Component from '../../components/searchfield';
|
3
3
|
/**
|
4
|
-
* searchfield component is used as an input field for search functionality.
|
4
|
+
* `mdc-searchfield` component is used as an input field for search functionality.
|
5
5
|
*
|
6
6
|
* It supports `mdc-inputchip` as filters.
|
7
7
|
*
|
@@ -9,13 +9,19 @@ import Component from '../../components/searchfield';
|
|
9
9
|
*
|
10
10
|
* @tagname mdc-searchfield
|
11
11
|
*
|
12
|
-
* @
|
12
|
+
* @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).
|
13
|
+
* @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
|
14
|
+
* @event focus - (React: onFocus) This event is dispatched when the input receives focus.
|
15
|
+
* @event blur - (React: onBlur) This event is dispatched when the input loses focus.
|
16
|
+
* @event clear - (React: onClear) This event is dispatched when the input text is cleared.
|
13
17
|
*
|
18
|
+
* @slot filters - Slot for input chips
|
14
19
|
*/
|
15
20
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
16
21
|
onInput: EventName<InputEvent>;
|
17
|
-
onChange: EventName<
|
22
|
+
onChange: EventName<import("../../components/input/input.types").InputChangeEvent>;
|
18
23
|
onFocus: EventName<FocusEvent>;
|
19
24
|
onBlur: EventName<FocusEvent>;
|
25
|
+
onClear: EventName<import("../../components/input/input.types").InputClearEvent>;
|
20
26
|
}>;
|
21
27
|
export default reactWrapper;
|
@@ -3,7 +3,7 @@ import { createComponent } from '@lit/react';
|
|
3
3
|
import Component from '../../components/searchfield';
|
4
4
|
import { TAG_NAME } from '../../components/searchfield/searchfield.constants';
|
5
5
|
/**
|
6
|
-
* searchfield component is used as an input field for search functionality.
|
6
|
+
* `mdc-searchfield` component is used as an input field for search functionality.
|
7
7
|
*
|
8
8
|
* It supports `mdc-inputchip` as filters.
|
9
9
|
*
|
@@ -11,8 +11,13 @@ import { TAG_NAME } from '../../components/searchfield/searchfield.constants';
|
|
11
11
|
*
|
12
12
|
* @tagname mdc-searchfield
|
13
13
|
*
|
14
|
-
* @
|
14
|
+
* @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).
|
15
|
+
* @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
|
16
|
+
* @event focus - (React: onFocus) This event is dispatched when the input receives focus.
|
17
|
+
* @event blur - (React: onBlur) This event is dispatched when the input loses focus.
|
18
|
+
* @event clear - (React: onClear) This event is dispatched when the input text is cleared.
|
15
19
|
*
|
20
|
+
* @slot filters - Slot for input chips
|
16
21
|
*/
|
17
22
|
const reactWrapper = createComponent({
|
18
23
|
tagName: TAG_NAME,
|
@@ -23,6 +28,7 @@ const reactWrapper = createComponent({
|
|
23
28
|
onChange: 'change',
|
24
29
|
onFocus: 'focus',
|
25
30
|
onBlur: 'blur',
|
31
|
+
onClear: 'clear',
|
26
32
|
},
|
27
33
|
displayName: 'Searchfield',
|
28
34
|
});
|