@momentum-design/components 0.102.4 → 0.102.6

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.
@@ -1,6 +1,6 @@
1
1
  export { default as Accordion } from './accordion';
2
- export { default as AccordionGroup } from './accordiongroup';
3
2
  export { default as AccordionButton } from './accordionbutton';
3
+ export { default as AccordionGroup } from './accordiongroup';
4
4
  export { default as AlertChip } from './alertchip';
5
5
  export { default as Animation } from './animation';
6
6
  export { default as Appheader } from './appheader';
@@ -11,10 +11,10 @@ export { default as Brandvisual } from './brandvisual';
11
11
  export { default as Bullet } from './bullet';
12
12
  export { default as Button } from './button';
13
13
  export { default as ButtonGroup } from './buttongroup';
14
- export { default as ButtonLink } from './buttonlink';
15
14
  export { default as Buttonsimple } from './buttonsimple';
16
15
  export { default as Card } from './card';
17
16
  export { default as CardButton } from './cardbutton';
17
+ export { default as ButtonLink } from './buttonlink';
18
18
  export { default as CardCheckbox } from './cardcheckbox';
19
19
  export { default as CardRadio } from './cardradio';
20
20
  export { default as Checkbox } from './checkbox';
@@ -72,7 +72,7 @@ export { default as Textarea } from './textarea';
72
72
  export { default as ThemeProvider } from './themeprovider';
73
73
  export { default as Toast } from './toast';
74
74
  export { default as Toggle } from './toggle';
75
- export { default as ToggleTip } from './toggletip';
76
75
  export { default as Tooltip } from './tooltip';
77
76
  export { default as Typewriter } from './typewriter';
78
77
  export { default as VirtualizedList } from './virtualizedlist';
78
+ export { default as ToggleTip } from './toggletip';
@@ -1,6 +1,6 @@
1
1
  export { default as Accordion } from './accordion';
2
- export { default as AccordionGroup } from './accordiongroup';
3
2
  export { default as AccordionButton } from './accordionbutton';
3
+ export { default as AccordionGroup } from './accordiongroup';
4
4
  export { default as AlertChip } from './alertchip';
5
5
  export { default as Animation } from './animation';
6
6
  export { default as Appheader } from './appheader';
@@ -11,10 +11,10 @@ export { default as Brandvisual } from './brandvisual';
11
11
  export { default as Bullet } from './bullet';
12
12
  export { default as Button } from './button';
13
13
  export { default as ButtonGroup } from './buttongroup';
14
- export { default as ButtonLink } from './buttonlink';
15
14
  export { default as Buttonsimple } from './buttonsimple';
16
15
  export { default as Card } from './card';
17
16
  export { default as CardButton } from './cardbutton';
17
+ export { default as ButtonLink } from './buttonlink';
18
18
  export { default as CardCheckbox } from './cardcheckbox';
19
19
  export { default as CardRadio } from './cardradio';
20
20
  export { default as Checkbox } from './checkbox';
@@ -72,7 +72,7 @@ export { default as Textarea } from './textarea';
72
72
  export { default as ThemeProvider } from './themeprovider';
73
73
  export { default as Toast } from './toast';
74
74
  export { default as Toggle } from './toggle';
75
- export { default as ToggleTip } from './toggletip';
76
75
  export { default as Tooltip } from './tooltip';
77
76
  export { default as Typewriter } from './typewriter';
78
77
  export { default as VirtualizedList } from './virtualizedlist';
78
+ export { default as ToggleTip } from './toggletip';
@@ -18,6 +18,7 @@ import Component from '../../components/input';
18
18
  * @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
19
19
  * @event focus - (React: onFocus) This event is dispatched when the input receives focus.
20
20
  * @event blur - (React: onBlur) This event is dispatched when the input loses focus.
21
+ * @event clear - (React: onClear) This event is dispatched when the input text is cleared.
21
22
  *
22
23
  * @dependency mdc-icon
23
24
  * @dependency mdc-text
@@ -43,8 +44,9 @@ import Component from '../../components/input';
43
44
  *
44
45
  */
45
46
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
47
+ onClear: EventName<import("../../components/input/input.types").InputClearEvent>;
46
48
  onInput: EventName<InputEvent>;
47
- onChange: EventName<Event>;
49
+ onChange: EventName<import("../../components/input/input.types").InputChangeEvent>;
48
50
  onFocus: EventName<FocusEvent>;
49
51
  onBlur: EventName<FocusEvent>;
50
52
  }>;
@@ -20,6 +20,7 @@ import { TAG_NAME } from '../../components/input/input.constants';
20
20
  * @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
21
21
  * @event focus - (React: onFocus) This event is dispatched when the input receives focus.
22
22
  * @event blur - (React: onBlur) This event is dispatched when the input loses focus.
23
+ * @event clear - (React: onClear) This event is dispatched when the input text is cleared.
23
24
  *
24
25
  * @dependency mdc-icon
25
26
  * @dependency mdc-text
@@ -49,6 +50,7 @@ const reactWrapper = createComponent({
49
50
  elementClass: Component,
50
51
  react: React,
51
52
  events: {
53
+ onClear: 'clear',
52
54
  onInput: 'input',
53
55
  onChange: 'change',
54
56
  onFocus: 'focus',
@@ -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<Event>;
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;
@@ -52,6 +52,7 @@ const reactWrapper = createComponent({
52
52
  onChange: 'change',
53
53
  onFocus: 'focus',
54
54
  onBlur: 'blur',
55
+ onClear: 'clear',
55
56
  },
56
57
  displayName: 'Password',
57
58
  });
@@ -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
- * @slot filters - Slot for input chips
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<Event>;
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
- * @slot filters - Slot for input chips
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
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.102.4",
4
+ "version": "0.102.6",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"