@momentum-design/components 0.95.8 → 0.96.1
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 +314 -248
- package/dist/browser/index.js.map +4 -4
- package/dist/components/buttonsimple/buttonsimple.constants.d.ts +3 -0
- package/dist/components/buttonsimple/buttonsimple.constants.js +3 -0
- package/dist/components/linkbutton/index.d.ts +8 -0
- package/dist/components/linkbutton/index.js +5 -0
- package/dist/components/linkbutton/linkbutton.component.d.ts +65 -0
- package/dist/components/linkbutton/linkbutton.component.js +111 -0
- package/dist/components/linkbutton/linkbutton.constants.d.ts +13 -0
- package/dist/components/linkbutton/linkbutton.constants.js +16 -0
- package/dist/components/linkbutton/linkbutton.styles.d.ts +2 -0
- package/dist/components/linkbutton/linkbutton.styles.js +66 -0
- package/dist/components/linkbutton/linkbutton.types.d.ts +10 -0
- package/dist/components/linkbutton/linkbutton.types.js +1 -0
- package/dist/components/linkbutton/linkbutton.utils.d.ts +3 -0
- package/dist/components/linkbutton/linkbutton.utils.js +12 -0
- package/dist/custom-elements.json +2206 -1614
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +3 -2
- package/dist/react/linkbutton/index.d.ts +38 -0
- package/dist/react/linkbutton/index.js +46 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -25,6 +25,7 @@ import IconProvider from './components/iconprovider';
|
|
25
25
|
import Input from './components/input';
|
26
26
|
import InputChip from './components/inputchip';
|
27
27
|
import Link from './components/link';
|
28
|
+
import LinkButton from './components/linkbutton';
|
28
29
|
import Linksimple from './components/linksimple';
|
29
30
|
import List from './components/list';
|
30
31
|
import ListItem from './components/listitem';
|
@@ -79,6 +80,6 @@ import type { MenuSectionChangeEvent } from './components/menusection/menusectio
|
|
79
80
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
80
81
|
import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
|
81
82
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
82
|
-
export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SideNavigation, Skeleton, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Stepperitem, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, ToggleTip, Tooltip, VirtualizedList, Listheader, SelectListbox, StepperConnector, };
|
83
|
+
export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, LinkButton, Linksimple, List, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SideNavigation, Skeleton, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Stepperitem, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, ToggleTip, Tooltip, VirtualizedList, Listheader, SelectListbox, StepperConnector, };
|
83
84
|
export type { BadgeType, ButtonColor, ButtonVariant, IconButtonSize, MenuPopoverActionEvent, MenuPopoverChangeEvent, MenuSectionChangeEvent, PillButtonSize, PopoverPlacement, SkeletonVariant, SelectChangeEvent, SelectInputEvent, SpinnerSize, SpinnerVariant, TextType, };
|
84
85
|
export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIIconsCache, };
|
package/dist/index.js
CHANGED
@@ -27,6 +27,7 @@ import IconProvider from './components/iconprovider';
|
|
27
27
|
import Input from './components/input';
|
28
28
|
import InputChip from './components/inputchip';
|
29
29
|
import Link from './components/link';
|
30
|
+
import LinkButton from './components/linkbutton';
|
30
31
|
import Linksimple from './components/linksimple';
|
31
32
|
import List from './components/list';
|
32
33
|
import ListItem from './components/listitem';
|
@@ -74,6 +75,6 @@ import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, }
|
|
74
75
|
import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
|
75
76
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
76
77
|
// Components Exports
|
77
|
-
export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SideNavigation, Skeleton, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Stepperitem, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, ToggleTip, Tooltip, VirtualizedList, Listheader, SelectListbox, StepperConnector, };
|
78
|
+
export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, LinkButton, Linksimple, List, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SideNavigation, Skeleton, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Stepperitem, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, ToggleTip, Tooltip, VirtualizedList, Listheader, SelectListbox, StepperConnector, };
|
78
79
|
// Constants / Utils Exports
|
79
80
|
export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIIconsCache, };
|
package/dist/react/index.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
+
export { default as AlertChip } from './alertchip';
|
1
2
|
export { default as Animation } from './animation';
|
2
3
|
export { default as Appheader } from './appheader';
|
3
|
-
export { default as AlertChip } from './alertchip';
|
4
4
|
export { default as Avatar } from './avatar';
|
5
5
|
export { default as AvatarButton } from './avatarbutton';
|
6
6
|
export { default as Badge } from './badge';
|
7
|
+
export { default as Brandvisual } from './brandvisual';
|
7
8
|
export { default as Bullet } from './bullet';
|
8
9
|
export { default as Button } from './button';
|
9
|
-
export { default as Brandvisual } from './brandvisual';
|
10
10
|
export { default as ButtonGroup } from './buttongroup';
|
11
11
|
export { default as ButtonLink } from './buttonlink';
|
12
12
|
export { default as Buttonsimple } from './buttonsimple';
|
@@ -27,6 +27,7 @@ export { default as IconProvider } from './iconprovider';
|
|
27
27
|
export { default as Input } from './input';
|
28
28
|
export { default as InputChip } from './inputchip';
|
29
29
|
export { default as Link } from './link';
|
30
|
+
export { default as LinkButton } from './linkbutton';
|
30
31
|
export { default as Linksimple } from './linksimple';
|
31
32
|
export { default as List } from './list';
|
32
33
|
export { default as Listheader } from './listheader';
|
package/dist/react/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
+
export { default as AlertChip } from './alertchip';
|
1
2
|
export { default as Animation } from './animation';
|
2
3
|
export { default as Appheader } from './appheader';
|
3
|
-
export { default as AlertChip } from './alertchip';
|
4
4
|
export { default as Avatar } from './avatar';
|
5
5
|
export { default as AvatarButton } from './avatarbutton';
|
6
6
|
export { default as Badge } from './badge';
|
7
|
+
export { default as Brandvisual } from './brandvisual';
|
7
8
|
export { default as Bullet } from './bullet';
|
8
9
|
export { default as Button } from './button';
|
9
|
-
export { default as Brandvisual } from './brandvisual';
|
10
10
|
export { default as ButtonGroup } from './buttongroup';
|
11
11
|
export { default as ButtonLink } from './buttonlink';
|
12
12
|
export { default as Buttonsimple } from './buttonsimple';
|
@@ -27,6 +27,7 @@ export { default as IconProvider } from './iconprovider';
|
|
27
27
|
export { default as Input } from './input';
|
28
28
|
export { default as InputChip } from './inputchip';
|
29
29
|
export { default as Link } from './link';
|
30
|
+
export { default as LinkButton } from './linkbutton';
|
30
31
|
export { default as Linksimple } from './linksimple';
|
31
32
|
export { default as List } from './list';
|
32
33
|
export { default as Listheader } from './listheader';
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { type EventName } from '@lit/react';
|
2
|
+
import Component from '../../components/linkbutton';
|
3
|
+
/**
|
4
|
+
* `mdc-linkbutton` visually mimics a hyperlink while functioning as a button. It blends the appearance of `mdc-link` with the accessibility and interaction capabilities of `mdc-button`.
|
5
|
+
*
|
6
|
+
* ### Features:
|
7
|
+
* - Looks like a link, behaves like a button.
|
8
|
+
* - Supports slots for a text label and an optional trailing icon.
|
9
|
+
* - Inherits accessibility and keyboard interaction behavior from `mdc-buttonsimple`.
|
10
|
+
*
|
11
|
+
* @dependency mdc-icon
|
12
|
+
*
|
13
|
+
* @tagname mdc-linkbutton
|
14
|
+
*
|
15
|
+
* @slot - Text label of the linkbutton.
|
16
|
+
*
|
17
|
+
* @event click - (React: onClick) This event is dispatched when the linkbutton is clicked.
|
18
|
+
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.
|
19
|
+
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.
|
20
|
+
* @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.
|
21
|
+
*
|
22
|
+
* @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.
|
23
|
+
* @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.
|
24
|
+
* @cssproperty --mdc-link-color-disabled - Color of the linkbutton’s child content in the disabled state.
|
25
|
+
* @cssproperty --mdc-link-color-hover - Color of the linkbutton’s child content in the hover state.
|
26
|
+
* @cssproperty --mdc-link-color-normal - Color of the linkbutton’s child content in the normal state.
|
27
|
+
* @cssproperty --mdc-link-inverted-color-active - Color of the inverted linkbutton’s child content in the active state.
|
28
|
+
* @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted linkbutton’s child content in the disabled state.
|
29
|
+
* @cssproperty --mdc-link-inverted-color-hover - Color of the inverted linkbutton’s child content in the hover state.
|
30
|
+
* @cssproperty --mdc-link-inverted-color-normal - Color of the inverted linkbutton’s child content in the normal state.
|
31
|
+
*/
|
32
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
33
|
+
onClick: EventName<MouseEvent>;
|
34
|
+
onKeyDown: EventName<KeyboardEvent>;
|
35
|
+
onKeyUp: EventName<KeyboardEvent>;
|
36
|
+
onFocus: EventName<FocusEvent>;
|
37
|
+
}>;
|
38
|
+
export default reactWrapper;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/linkbutton';
|
4
|
+
import { TAG_NAME } from '../../components/linkbutton/linkbutton.constants';
|
5
|
+
/**
|
6
|
+
* `mdc-linkbutton` visually mimics a hyperlink while functioning as a button. It blends the appearance of `mdc-link` with the accessibility and interaction capabilities of `mdc-button`.
|
7
|
+
*
|
8
|
+
* ### Features:
|
9
|
+
* - Looks like a link, behaves like a button.
|
10
|
+
* - Supports slots for a text label and an optional trailing icon.
|
11
|
+
* - Inherits accessibility and keyboard interaction behavior from `mdc-buttonsimple`.
|
12
|
+
*
|
13
|
+
* @dependency mdc-icon
|
14
|
+
*
|
15
|
+
* @tagname mdc-linkbutton
|
16
|
+
*
|
17
|
+
* @slot - Text label of the linkbutton.
|
18
|
+
*
|
19
|
+
* @event click - (React: onClick) This event is dispatched when the linkbutton is clicked.
|
20
|
+
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.
|
21
|
+
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.
|
22
|
+
* @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.
|
23
|
+
*
|
24
|
+
* @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.
|
25
|
+
* @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.
|
26
|
+
* @cssproperty --mdc-link-color-disabled - Color of the linkbutton’s child content in the disabled state.
|
27
|
+
* @cssproperty --mdc-link-color-hover - Color of the linkbutton’s child content in the hover state.
|
28
|
+
* @cssproperty --mdc-link-color-normal - Color of the linkbutton’s child content in the normal state.
|
29
|
+
* @cssproperty --mdc-link-inverted-color-active - Color of the inverted linkbutton’s child content in the active state.
|
30
|
+
* @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted linkbutton’s child content in the disabled state.
|
31
|
+
* @cssproperty --mdc-link-inverted-color-hover - Color of the inverted linkbutton’s child content in the hover state.
|
32
|
+
* @cssproperty --mdc-link-inverted-color-normal - Color of the inverted linkbutton’s child content in the normal state.
|
33
|
+
*/
|
34
|
+
const reactWrapper = createComponent({
|
35
|
+
tagName: TAG_NAME,
|
36
|
+
elementClass: Component,
|
37
|
+
react: React,
|
38
|
+
events: {
|
39
|
+
onClick: 'click',
|
40
|
+
onKeyDown: 'keydown',
|
41
|
+
onKeyUp: 'keyup',
|
42
|
+
onFocus: 'focus',
|
43
|
+
},
|
44
|
+
displayName: 'LinkButton',
|
45
|
+
});
|
46
|
+
export default reactWrapper;
|