@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.
- package/dist/browser/index.js +173 -182
- package/dist/browser/index.js.map +3 -3
- package/dist/components/link/link.component.d.ts +29 -18
- package/dist/components/link/link.component.js +67 -39
- package/dist/components/link/link.styles.js +34 -48
- package/dist/components/link/link.types.d.ts +7 -1
- package/dist/custom-elements.json +852 -741
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/react/link/index.d.ts +13 -3
- package/dist/react/link/index.js +12 -3
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
@@ -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';
|
package/dist/react/index.js
CHANGED
@@ -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
|
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;
|
package/dist/react/link/index.js
CHANGED
@@ -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
|
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