@momentum-design/components 0.53.8 → 0.53.9

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,13 +1,13 @@
1
1
  export { default as AlertChip } from './alertchip';
2
+ export { default as Appheader } from './appheader';
2
3
  export { default as Avatar } from './avatar';
3
4
  export { default as AvatarButton } from './avatarbutton';
4
5
  export { default as Badge } from './badge';
5
- export { default as Appheader } from './appheader';
6
6
  export { default as Brandvisual } from './brandvisual';
7
7
  export { default as Bullet } from './bullet';
8
8
  export { default as Button } from './button';
9
- export { default as Checkbox } from './checkbox';
10
9
  export { default as Buttonsimple } from './buttonsimple';
10
+ export { default as Checkbox } from './checkbox';
11
11
  export { default as Chip } from './chip';
12
12
  export { default as Coachmark } from './coachmark';
13
13
  export { default as Divider } from './divider';
@@ -1,13 +1,13 @@
1
1
  export { default as AlertChip } from './alertchip';
2
+ export { default as Appheader } from './appheader';
2
3
  export { default as Avatar } from './avatar';
3
4
  export { default as AvatarButton } from './avatarbutton';
4
5
  export { default as Badge } from './badge';
5
- export { default as Appheader } from './appheader';
6
6
  export { default as Brandvisual } from './brandvisual';
7
7
  export { default as Bullet } from './bullet';
8
8
  export { default as Button } from './button';
9
- export { default as Checkbox } from './checkbox';
10
9
  export { default as Buttonsimple } from './buttonsimple';
10
+ export { default as Checkbox } from './checkbox';
11
11
  export { default as Chip } from './chip';
12
12
  export { default as Coachmark } from './coachmark';
13
13
  export { default as Divider } from './divider';
@@ -1,11 +1,11 @@
1
+ import { type EventName } from '@lit/react';
1
2
  import Component from '../../components/link';
2
3
  /**
3
4
  * `mdc-link` component can be used to navigate to a different page
4
5
  * within the application or to an external site. It can be used to link to
5
6
  * emails or phone numbers.
6
7
  *
7
- * The `children` of the link component is expected to be an anchor element
8
- * containing the text, href, and other attributes.
8
+ * The `children` of the link component is expected to be the text content.
9
9
  *
10
10
  * For `icon`, the `mdc-icon` component is used to render the icon.
11
11
  *
@@ -13,6 +13,11 @@ import Component from '../../components/link';
13
13
  *
14
14
  * @tagname mdc-link
15
15
  *
16
+ * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
17
+ * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
18
+ * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
19
+ * @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
20
+ *
16
21
  * @cssproperty --mdc-link-border-radius - Border radius of the link
17
22
  * @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
18
23
  * @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
@@ -25,5 +30,10 @@ import Component from '../../components/link';
25
30
  * @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state
26
31
  * @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants
27
32
  */
28
- declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
33
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
34
+ onClick: EventName<MouseEvent>;
35
+ onKeyDown: EventName<KeyboardEvent>;
36
+ onFocus: EventName<FocusEvent>;
37
+ onBlur: EventName<Event>;
38
+ }>;
29
39
  export default reactWrapper;
@@ -7,8 +7,7 @@ import { TAG_NAME } from '../../components/link/link.constants';
7
7
  * within the application or to an external site. It can be used to link to
8
8
  * emails or phone numbers.
9
9
  *
10
- * The `children` of the link component is expected to be an anchor element
11
- * containing the text, href, and other attributes.
10
+ * The `children` of the link component is expected to be the text content.
12
11
  *
13
12
  * For `icon`, the `mdc-icon` component is used to render the icon.
14
13
  *
@@ -16,6 +15,11 @@ import { TAG_NAME } from '../../components/link/link.constants';
16
15
  *
17
16
  * @tagname mdc-link
18
17
  *
18
+ * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
19
+ * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
20
+ * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
21
+ * @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
22
+ *
19
23
  * @cssproperty --mdc-link-border-radius - Border radius of the link
20
24
  * @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
21
25
  * @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
@@ -32,7 +36,12 @@ const reactWrapper = createComponent({
32
36
  tagName: TAG_NAME,
33
37
  elementClass: Component,
34
38
  react: React,
35
- events: {},
39
+ events: {
40
+ onClick: 'click',
41
+ onKeyDown: 'keydown',
42
+ onFocus: 'focus',
43
+ onBlur: 'blur',
44
+ },
36
45
  displayName: 'Link',
37
46
  });
38
47
  export default reactWrapper;
package/package.json CHANGED
@@ -39,5 +39,5 @@
39
39
  "lit": "^3.2.0",
40
40
  "uuid": "^11.0.5"
41
41
  },
42
- "version": "0.53.8"
42
+ "version": "0.53.9"
43
43
  }