@momentum-design/components 0.56.1 → 0.57.0

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.
Files changed (30) hide show
  1. package/dist/browser/index.js +201 -179
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/link/link.component.d.ts +7 -59
  4. package/dist/components/link/link.component.js +7 -109
  5. package/dist/components/link/link.constants.d.ts +0 -2
  6. package/dist/components/link/link.constants.js +0 -2
  7. package/dist/components/link/link.styles.d.ts +2 -2
  8. package/dist/components/link/link.styles.js +4 -57
  9. package/dist/components/linksimple/index.d.ts +7 -0
  10. package/dist/components/linksimple/index.js +4 -0
  11. package/dist/components/linksimple/linksimple.component.d.ts +73 -0
  12. package/dist/components/linksimple/linksimple.component.js +141 -0
  13. package/dist/components/linksimple/linksimple.constants.d.ts +6 -0
  14. package/dist/components/linksimple/linksimple.constants.js +7 -0
  15. package/dist/components/linksimple/linksimple.styles.d.ts +2 -0
  16. package/dist/components/linksimple/linksimple.styles.js +72 -0
  17. package/dist/components/linksimple/linksimple.types.d.ts +7 -0
  18. package/dist/components/linksimple/linksimple.types.js +1 -0
  19. package/dist/components/popover/popover.styles.js +4 -1
  20. package/dist/components/select/select.styles.js +1 -0
  21. package/dist/custom-elements.json +1241 -881
  22. package/dist/index.d.ts +2 -1
  23. package/dist/index.js +2 -1
  24. package/dist/react/index.d.ts +2 -1
  25. package/dist/react/index.js +2 -1
  26. package/dist/react/link/index.d.ts +4 -16
  27. package/dist/react/link/index.js +4 -16
  28. package/dist/react/linksimple/index.d.ts +34 -0
  29. package/dist/react/linksimple/index.js +42 -0
  30. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -43,6 +43,7 @@ import Tooltip from './components/tooltip';
43
43
  import ToggleTip from './components/toggletip';
44
44
  import VirtualizedList from './components/virtualizedlist';
45
45
  import TabList from './components/tablist';
46
+ import Linksimple from './components/linksimple';
46
47
  import type { BadgeType } from './components/badge/badge.types';
47
48
  import type { ButtonColor, ButtonVariant, IconButtonSize, PillButtonSize } from './components/button/button.types';
48
49
  import type { PopoverPlacement } from './components/popover/popover.types';
@@ -50,6 +51,6 @@ import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.t
50
51
  import type { TextType } from './components/text/text.types';
51
52
  import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
52
53
  import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
53
- export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, ScreenreaderAnnouncer, StaticCheckbox, StaticRadio, Textarea, ToggleTip, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
54
+ export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, ScreenreaderAnnouncer, StaticCheckbox, StaticRadio, Textarea, ToggleTip, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, Linksimple, };
54
55
  export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
55
56
  export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
package/dist/index.js CHANGED
@@ -44,10 +44,11 @@ import Tooltip from './components/tooltip';
44
44
  import ToggleTip from './components/toggletip';
45
45
  import VirtualizedList from './components/virtualizedlist';
46
46
  import TabList from './components/tablist';
47
+ import Linksimple from './components/linksimple';
47
48
  import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
48
49
  // Constants / Utils Imports
49
50
  import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
50
51
  // Components Exports
51
- export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, ScreenreaderAnnouncer, StaticCheckbox, StaticRadio, Textarea, ToggleTip, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
52
+ export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, ScreenreaderAnnouncer, StaticCheckbox, StaticRadio, Textarea, ToggleTip, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, Linksimple, };
52
53
  // Constants / Utils Exports
53
54
  export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
@@ -2,10 +2,10 @@ export { default as AlertChip } from './alertchip';
2
2
  export { default as Appheader } from './appheader';
3
3
  export { default as Avatar } from './avatar';
4
4
  export { default as AvatarButton } from './avatarbutton';
5
- export { default as Badge } from './badge';
6
5
  export { default as Brandvisual } from './brandvisual';
7
6
  export { default as Bullet } from './bullet';
8
7
  export { default as Button } from './button';
8
+ export { default as Badge } from './badge';
9
9
  export { default as Buttonsimple } from './buttonsimple';
10
10
  export { default as Checkbox } from './checkbox';
11
11
  export { default as Chip } from './chip';
@@ -19,6 +19,7 @@ export { default as IconProvider } from './iconprovider';
19
19
  export { default as Input } from './input';
20
20
  export { default as InputChip } from './inputchip';
21
21
  export { default as Link } from './link';
22
+ export { default as Linksimple } from './linksimple';
22
23
  export { default as List } from './list';
23
24
  export { default as ListItem } from './listitem';
24
25
  export { default as Marker } from './marker';
@@ -2,10 +2,10 @@ export { default as AlertChip } from './alertchip';
2
2
  export { default as Appheader } from './appheader';
3
3
  export { default as Avatar } from './avatar';
4
4
  export { default as AvatarButton } from './avatarbutton';
5
- export { default as Badge } from './badge';
6
5
  export { default as Brandvisual } from './brandvisual';
7
6
  export { default as Bullet } from './bullet';
8
7
  export { default as Button } from './button';
8
+ export { default as Badge } from './badge';
9
9
  export { default as Buttonsimple } from './buttonsimple';
10
10
  export { default as Checkbox } from './checkbox';
11
11
  export { default as Chip } from './chip';
@@ -19,6 +19,7 @@ export { default as IconProvider } from './iconprovider';
19
19
  export { default as Input } from './input';
20
20
  export { default as InputChip } from './inputchip';
21
21
  export { default as Link } from './link';
22
+ export { default as Linksimple } from './linksimple';
22
23
  export { default as List } from './list';
23
24
  export { default as ListItem } from './listitem';
24
25
  export { default as Marker } from './marker';
@@ -13,22 +13,10 @@ 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
- *
21
- * @cssproperty --mdc-link-border-radius - Border radius of the link
22
- * @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
23
- * @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
24
- * @cssproperty --mdc-link-color-hover - Text and icon color of the link in hover state
25
- * @cssproperty --mdc-link-color-normal - Text and icon color of the link in normal state
26
- * @cssproperty --mdc-link-icon-margin-left - Gap between the text and icon (only applicable when an icon is set)
27
- * @cssproperty --mdc-link-inverted-color-active - Text and icon color of the inverted link in active state
28
- * @cssproperty --mdc-link-inverted-color-disabled - Text and icon color of the inverted link in disabled state
29
- * @cssproperty --mdc-link-inverted-color-hover - Text and icon color of the inverted link in hover state
30
- * @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state
31
- * @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants
16
+ * @event click - (React: onClick) Fired when the user activates the Link using a mouse or assistive technology.
17
+ * @event keydown - (React: onKeyDown) Fired when the user presses a key while the Link has focus.
18
+ * @event focus - (React: onFocus) Fired when the Link receives keyboard or mouse focus.
19
+ * @event blur - (React: onBlur) Fired when the Link loses keyboard or mouse focus.
32
20
  */
33
21
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
34
22
  onClick: EventName<MouseEvent>;
@@ -15,22 +15,10 @@ import { TAG_NAME } from '../../components/link/link.constants';
15
15
  *
16
16
  * @tagname mdc-link
17
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
- *
23
- * @cssproperty --mdc-link-border-radius - Border radius of the link
24
- * @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
25
- * @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
26
- * @cssproperty --mdc-link-color-hover - Text and icon color of the link in hover state
27
- * @cssproperty --mdc-link-color-normal - Text and icon color of the link in normal state
28
- * @cssproperty --mdc-link-icon-margin-left - Gap between the text and icon (only applicable when an icon is set)
29
- * @cssproperty --mdc-link-inverted-color-active - Text and icon color of the inverted link in active state
30
- * @cssproperty --mdc-link-inverted-color-disabled - Text and icon color of the inverted link in disabled state
31
- * @cssproperty --mdc-link-inverted-color-hover - Text and icon color of the inverted link in hover state
32
- * @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state
33
- * @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants
18
+ * @event click - (React: onClick) Fired when the user activates the Link using a mouse or assistive technology.
19
+ * @event keydown - (React: onKeyDown) Fired when the user presses a key while the Link has focus.
20
+ * @event focus - (React: onFocus) Fired when the Link receives keyboard or mouse focus.
21
+ * @event blur - (React: onBlur) Fired when the Link loses keyboard or mouse focus.
34
22
  */
35
23
  const reactWrapper = createComponent({
36
24
  tagName: TAG_NAME,
@@ -0,0 +1,34 @@
1
+ import { type EventName } from '@lit/react';
2
+ import Component from '../../components/linksimple';
3
+ /**
4
+ * `mdc-linksimple` is a lightweight link component that can be used to navigate
5
+ * within the application or to an external URL. It does not have any predefined default size.
6
+ *
7
+ * The `children` of the `mdc-linksimple` component can be customized to suit
8
+ * different use cases, including text, icons, or other inline content. For the child to be an icon,
9
+ * the `mdc-icon` component should be used to render.
10
+ *
11
+ * @tagname mdc-linksimple
12
+ *
13
+ * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
14
+ * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
15
+ * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
16
+ * @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
17
+ *
18
+ * @cssproperty --mdc-link-border-radius - Border radius of the link.
19
+ * @cssproperty --mdc-link-color-active - Color of the link’s child content in the active state.
20
+ * @cssproperty --mdc-link-color-disabled - Color of the link’s child content in the disabled state.
21
+ * @cssproperty --mdc-link-color-hover - Color of the link’s child content in the hover state.
22
+ * @cssproperty --mdc-link-color-normal - Color of the link’s child content in the normal state.
23
+ * @cssproperty --mdc-link-inverted-color-active - Color of the inverted link’s child content in the active state.
24
+ * @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted link’s child content in the disabled state.
25
+ * @cssproperty --mdc-link-inverted-color-hover - Color of the inverted link’s child content in the hover state.
26
+ * @cssproperty --mdc-link-inverted-color-normal - Color of the inverted link’s child content in the normal state.
27
+ */
28
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
29
+ onClick: EventName<MouseEvent>;
30
+ onKeyDown: EventName<KeyboardEvent>;
31
+ onFocus: EventName<FocusEvent>;
32
+ onBlur: EventName<Event>;
33
+ }>;
34
+ export default reactWrapper;
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/linksimple';
4
+ import { TAG_NAME } from '../../components/linksimple/linksimple.constants';
5
+ /**
6
+ * `mdc-linksimple` is a lightweight link component that can be used to navigate
7
+ * within the application or to an external URL. It does not have any predefined default size.
8
+ *
9
+ * The `children` of the `mdc-linksimple` component can be customized to suit
10
+ * different use cases, including text, icons, or other inline content. For the child to be an icon,
11
+ * the `mdc-icon` component should be used to render.
12
+ *
13
+ * @tagname mdc-linksimple
14
+ *
15
+ * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
16
+ * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
17
+ * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
18
+ * @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
19
+ *
20
+ * @cssproperty --mdc-link-border-radius - Border radius of the link.
21
+ * @cssproperty --mdc-link-color-active - Color of the link’s child content in the active state.
22
+ * @cssproperty --mdc-link-color-disabled - Color of the link’s child content in the disabled state.
23
+ * @cssproperty --mdc-link-color-hover - Color of the link’s child content in the hover state.
24
+ * @cssproperty --mdc-link-color-normal - Color of the link’s child content in the normal state.
25
+ * @cssproperty --mdc-link-inverted-color-active - Color of the inverted link’s child content in the active state.
26
+ * @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted link’s child content in the disabled state.
27
+ * @cssproperty --mdc-link-inverted-color-hover - Color of the inverted link’s child content in the hover state.
28
+ * @cssproperty --mdc-link-inverted-color-normal - Color of the inverted link’s child content in the normal state.
29
+ */
30
+ const reactWrapper = createComponent({
31
+ tagName: TAG_NAME,
32
+ elementClass: Component,
33
+ react: React,
34
+ events: {
35
+ onClick: 'click',
36
+ onKeyDown: 'keydown',
37
+ onFocus: 'focus',
38
+ onBlur: 'blur',
39
+ },
40
+ displayName: 'Linksimple',
41
+ });
42
+ 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.56.1"
42
+ "version": "0.57.0"
43
43
  }