@momentum-design/components 0.106.7 → 0.107.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.
- package/dist/browser/index.js +358 -349
- package/dist/browser/index.js.map +4 -4
- package/dist/components/alertchip/alertchip.component.d.ts +5 -0
- package/dist/components/alertchip/alertchip.component.js +5 -0
- package/dist/components/alertchip/alertchip.types.d.ts +9 -2
- package/dist/components/chip/chip.component.d.ts +7 -0
- package/dist/components/chip/chip.component.js +9 -2
- package/dist/components/chip/chip.constants.d.ts +1 -12
- package/dist/components/chip/chip.constants.js +1 -12
- package/dist/components/chip/chip.styles.js +1 -59
- package/dist/components/chip/chip.types.d.ts +9 -2
- package/dist/components/filterchip/filterchip.component.d.ts +13 -0
- package/dist/components/filterchip/filterchip.component.js +13 -0
- package/dist/components/filterchip/filterchip.types.d.ts +9 -0
- package/dist/components/filterchip/filterchip.types.js +1 -0
- package/dist/components/inputchip/inputchip.component.d.ts +4 -0
- package/dist/components/inputchip/inputchip.component.js +5 -1
- package/dist/components/staticchip/index.d.ts +9 -0
- package/dist/components/staticchip/index.js +6 -0
- package/dist/components/staticchip/staticchip.component.d.ts +54 -0
- package/dist/components/staticchip/staticchip.component.js +89 -0
- package/dist/components/staticchip/staticchip.constants.d.ts +19 -0
- package/dist/components/staticchip/staticchip.constants.js +21 -0
- package/dist/components/staticchip/staticchip.styles.d.ts +2 -0
- package/dist/components/staticchip/staticchip.styles.js +66 -0
- package/dist/components/staticchip/staticchip.types.d.ts +4 -0
- package/dist/components/staticchip/staticchip.types.js +1 -0
- package/dist/custom-elements.json +497 -340
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/alertchip/index.d.ts +5 -0
- package/dist/react/alertchip/index.js +5 -0
- package/dist/react/chip/index.d.ts +7 -0
- package/dist/react/chip/index.js +7 -0
- package/dist/react/filterchip/index.d.ts +13 -0
- package/dist/react/filterchip/index.js +13 -0
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +2 -1
- package/dist/react/inputchip/index.d.ts +4 -0
- package/dist/react/inputchip/index.js +4 -0
- package/dist/react/staticchip/index.d.ts +20 -0
- package/dist/react/staticchip/index.js +29 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -57,6 +57,7 @@ import SelectListbox from './components/selectlistbox';
|
|
57
57
|
import SideNavigation from './components/sidenavigation';
|
58
58
|
import Skeleton from './components/skeleton';
|
59
59
|
import Spinner from './components/spinner';
|
60
|
+
import StaticChip from './components/staticchip';
|
60
61
|
import StaticCheckbox from './components/staticcheckbox';
|
61
62
|
import StaticRadio from './components/staticradio';
|
62
63
|
import StaticToggle from './components/statictoggle';
|
@@ -92,6 +93,6 @@ import type { VirtualizedListScrollEvent } from './components/virtualizedlist/vi
|
|
92
93
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
93
94
|
import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
|
94
95
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
95
|
-
export { Accordion, AccordionButton, AccordionGroup, 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, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, };
|
96
|
+
export { Accordion, AccordionButton, AccordionGroup, 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, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, };
|
96
97
|
export type { BadgeType, ButtonColor, ButtonVariant, IconButtonSize, MenuPopoverActionEvent, MenuPopoverChangeEvent, MenuSectionChangeEvent, PillButtonSize, PopoverPlacement, SkeletonVariant, SelectChangeEvent, SelectInputEvent, SpinnerSize, SpinnerVariant, TextType, TypewriterType, InputInputEvent, InputChangeEvent, InputFocusEvent, InputBlurEvent, InputClearEvent, VirtualizedListScrollEvent, };
|
97
98
|
export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIIconsCache, };
|
package/dist/index.js
CHANGED
@@ -59,6 +59,7 @@ import SelectListbox from './components/selectlistbox';
|
|
59
59
|
import SideNavigation from './components/sidenavigation';
|
60
60
|
import Skeleton from './components/skeleton';
|
61
61
|
import Spinner from './components/spinner';
|
62
|
+
import StaticChip from './components/staticchip';
|
62
63
|
import StaticCheckbox from './components/staticcheckbox';
|
63
64
|
import StaticRadio from './components/staticradio';
|
64
65
|
import StaticToggle from './components/statictoggle';
|
@@ -84,6 +85,6 @@ import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, }
|
|
84
85
|
import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
|
85
86
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
86
87
|
// Components Exports
|
87
|
-
export { Accordion, AccordionButton, AccordionGroup, 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, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, };
|
88
|
+
export { Accordion, AccordionButton, AccordionGroup, 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, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, };
|
88
89
|
// Constants / Utils Exports
|
89
90
|
export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIIconsCache, };
|
@@ -20,6 +20,11 @@ import Component from '../../components/alertchip';
|
|
20
20
|
*
|
21
21
|
* @csspart icon - The alert icon
|
22
22
|
* @csspart label - The text label of the alertchip
|
23
|
+
*
|
24
|
+
* @event click - (React: onClick) This event is dispatched when the chip is clicked.
|
25
|
+
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
|
26
|
+
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
|
27
|
+
* @event focus - (React: onFocus) This event is dispatched when the chip receives focus.
|
23
28
|
*/
|
24
29
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
25
30
|
onClick: EventName<import("../../utils/types").OverrideEventTarget<MouseEvent, import("../../components/buttonsimple/buttonsimple.component").default>>;
|
@@ -22,6 +22,11 @@ import { TAG_NAME } from '../../components/alertchip/alertchip.constants';
|
|
22
22
|
*
|
23
23
|
* @csspart icon - The alert icon
|
24
24
|
* @csspart label - The text label of the alertchip
|
25
|
+
*
|
26
|
+
* @event click - (React: onClick) This event is dispatched when the chip is clicked.
|
27
|
+
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
|
28
|
+
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
|
29
|
+
* @event focus - (React: onFocus) This event is dispatched when the chip receives focus.
|
25
30
|
*/
|
26
31
|
const reactWrapper = createComponent({
|
27
32
|
tagName: TAG_NAME,
|
@@ -19,6 +19,13 @@ import Component from '../../components/chip';
|
|
19
19
|
* @cssproperty --mdc-chip-border-color - The border color of the chip.
|
20
20
|
* @cssproperty --mdc-chip-background-color - The background color of the chip.
|
21
21
|
*
|
22
|
+
* @csspart label - The label part of the chip.
|
23
|
+
*
|
24
|
+
* @event click - (React: onClick) This event is dispatched when the chip is clicked.
|
25
|
+
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
|
26
|
+
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
|
27
|
+
* @event focus - (React: onFocus) This event is dispatched when the chip receives focus.
|
28
|
+
*
|
22
29
|
*/
|
23
30
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
24
31
|
onClick: EventName<import("../../utils/types").OverrideEventTarget<MouseEvent, import("../../components/buttonsimple/buttonsimple.component").default>>;
|
package/dist/react/chip/index.js
CHANGED
@@ -21,6 +21,13 @@ import { TAG_NAME } from '../../components/chip/chip.constants';
|
|
21
21
|
* @cssproperty --mdc-chip-border-color - The border color of the chip.
|
22
22
|
* @cssproperty --mdc-chip-background-color - The background color of the chip.
|
23
23
|
*
|
24
|
+
* @csspart label - The label part of the chip.
|
25
|
+
*
|
26
|
+
* @event click - (React: onClick) This event is dispatched when the chip is clicked.
|
27
|
+
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
|
28
|
+
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
|
29
|
+
* @event focus - (React: onFocus) This event is dispatched when the chip receives focus.
|
30
|
+
*
|
24
31
|
*/
|
25
32
|
const reactWrapper = createComponent({
|
26
33
|
tagName: TAG_NAME,
|
@@ -8,6 +8,19 @@ import Component from '../../components/filterchip';
|
|
8
8
|
*
|
9
9
|
* @tagname mdc-filterchip
|
10
10
|
*
|
11
|
+
* @dependency mdc-icon
|
12
|
+
* @dependency mdc-text
|
13
|
+
*
|
14
|
+
* @csspart label - The label part of the chip.
|
15
|
+
*
|
16
|
+
* @cssproperty --mdc-chip-color - The color of the chip.
|
17
|
+
* @cssproperty --mdc-chip-border-color - The border color of the chip.
|
18
|
+
* @cssproperty --mdc-chip-background-color - The background color of the chip.
|
19
|
+
*
|
20
|
+
* @event click - (React: onClick) This event is dispatched when the chip is clicked.
|
21
|
+
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
|
22
|
+
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
|
23
|
+
* @event focus - (React: onFocus) This event is dispatched when the chip receives focus.
|
11
24
|
*/
|
12
25
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
13
26
|
onClick: EventName<import("../../utils/types").OverrideEventTarget<MouseEvent, import("../../components/buttonsimple/buttonsimple.component").default>>;
|
@@ -10,6 +10,19 @@ import { TAG_NAME } from '../../components/filterchip/filterchip.constants';
|
|
10
10
|
*
|
11
11
|
* @tagname mdc-filterchip
|
12
12
|
*
|
13
|
+
* @dependency mdc-icon
|
14
|
+
* @dependency mdc-text
|
15
|
+
*
|
16
|
+
* @csspart label - The label part of the chip.
|
17
|
+
*
|
18
|
+
* @cssproperty --mdc-chip-color - The color of the chip.
|
19
|
+
* @cssproperty --mdc-chip-border-color - The border color of the chip.
|
20
|
+
* @cssproperty --mdc-chip-background-color - The background color of the chip.
|
21
|
+
*
|
22
|
+
* @event click - (React: onClick) This event is dispatched when the chip is clicked.
|
23
|
+
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
|
24
|
+
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
|
25
|
+
* @event focus - (React: onFocus) This event is dispatched when the chip receives focus.
|
13
26
|
*/
|
14
27
|
const reactWrapper = createComponent({
|
15
28
|
tagName: TAG_NAME,
|
package/dist/react/index.d.ts
CHANGED
@@ -39,8 +39,8 @@ export { default as Listheader } from './listheader';
|
|
39
39
|
export { default as ListItem } from './listitem';
|
40
40
|
export { default as Marker } from './marker';
|
41
41
|
export { default as MenuBar } from './menubar';
|
42
|
-
export { default as MenuItemCheckbox } from './menuitemcheckbox';
|
43
42
|
export { default as MenuItem } from './menuitem';
|
43
|
+
export { default as MenuItemCheckbox } from './menuitemcheckbox';
|
44
44
|
export { default as MenuItemRadio } from './menuitemradio';
|
45
45
|
export { default as MenuPopover } from './menupopover';
|
46
46
|
export { default as MenuSection } from './menusection';
|
@@ -63,6 +63,7 @@ export { default as Skeleton } from './skeleton';
|
|
63
63
|
export { default as Slider } from './slider';
|
64
64
|
export { default as Spinner } from './spinner';
|
65
65
|
export { default as StaticCheckbox } from './staticcheckbox';
|
66
|
+
export { default as StaticChip } from './staticchip';
|
66
67
|
export { default as StaticRadio } from './staticradio';
|
67
68
|
export { default as StaticToggle } from './statictoggle';
|
68
69
|
export { default as Stepper } from './stepper';
|
package/dist/react/index.js
CHANGED
@@ -39,8 +39,8 @@ export { default as Listheader } from './listheader';
|
|
39
39
|
export { default as ListItem } from './listitem';
|
40
40
|
export { default as Marker } from './marker';
|
41
41
|
export { default as MenuBar } from './menubar';
|
42
|
-
export { default as MenuItemCheckbox } from './menuitemcheckbox';
|
43
42
|
export { default as MenuItem } from './menuitem';
|
43
|
+
export { default as MenuItemCheckbox } from './menuitemcheckbox';
|
44
44
|
export { default as MenuItemRadio } from './menuitemradio';
|
45
45
|
export { default as MenuPopover } from './menupopover';
|
46
46
|
export { default as MenuSection } from './menusection';
|
@@ -63,6 +63,7 @@ export { default as Skeleton } from './skeleton';
|
|
63
63
|
export { default as Slider } from './slider';
|
64
64
|
export { default as Spinner } from './spinner';
|
65
65
|
export { default as StaticCheckbox } from './staticcheckbox';
|
66
|
+
export { default as StaticChip } from './staticchip';
|
66
67
|
export { default as StaticRadio } from './staticradio';
|
67
68
|
export { default as StaticToggle } from './statictoggle';
|
68
69
|
export { default as Stepper } from './stepper';
|
@@ -15,6 +15,10 @@ import Component from '../../components/inputchip';
|
|
15
15
|
*
|
16
16
|
* @event remove - This event is dispatched when the close button is activated. It bubbles and is composed.
|
17
17
|
*
|
18
|
+
* @csspart label - The label part of the chip.
|
19
|
+
* @csspart icon - The icon part of the chip.
|
20
|
+
* @csspart close-icon - The close icon part of the chip.
|
21
|
+
*
|
18
22
|
* @cssproperty --mdc-chip-color - The color of the chip.
|
19
23
|
* @cssproperty --mdc-chip-border-color - The border color of the chip.
|
20
24
|
* @cssproperty --mdc-chip-background-color - The background color of the chip.
|
@@ -17,6 +17,10 @@ import { TAG_NAME } from '../../components/inputchip/inputchip.constants';
|
|
17
17
|
*
|
18
18
|
* @event remove - This event is dispatched when the close button is activated. It bubbles and is composed.
|
19
19
|
*
|
20
|
+
* @csspart label - The label part of the chip.
|
21
|
+
* @csspart icon - The icon part of the chip.
|
22
|
+
* @csspart close-icon - The close icon part of the chip.
|
23
|
+
*
|
20
24
|
* @cssproperty --mdc-chip-color - The color of the chip.
|
21
25
|
* @cssproperty --mdc-chip-border-color - The border color of the chip.
|
22
26
|
* @cssproperty --mdc-chip-background-color - The background color of the chip.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import Component from '../../components/staticchip';
|
2
|
+
/**
|
3
|
+
* mdc-staticchip is an static element that can be used to represent a chip. It supports a leading icon along with label.
|
4
|
+
*
|
5
|
+
* It is recommended to keep the label text for the chip component concise and compact.
|
6
|
+
* For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>, including empty spaces to split words.
|
7
|
+
*
|
8
|
+
*
|
9
|
+
* @tagname mdc-staticchip
|
10
|
+
*
|
11
|
+
* @dependency mdc-icon
|
12
|
+
* @dependency mdc-text
|
13
|
+
*
|
14
|
+
* @cssproperty --mdc-chip-color - The color of the static chip.
|
15
|
+
* @cssproperty --mdc-chip-border-color - The border color of the static chip.
|
16
|
+
* @cssproperty --mdc-chip-background-color - The background color of the static chip.
|
17
|
+
*
|
18
|
+
*/
|
19
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
20
|
+
export default reactWrapper;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/staticchip';
|
4
|
+
import { TAG_NAME } from '../../components/staticchip/staticchip.constants';
|
5
|
+
/**
|
6
|
+
* mdc-staticchip is an static element that can be used to represent a chip. It supports a leading icon along with label.
|
7
|
+
*
|
8
|
+
* It is recommended to keep the label text for the chip component concise and compact.
|
9
|
+
* For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>, including empty spaces to split words.
|
10
|
+
*
|
11
|
+
*
|
12
|
+
* @tagname mdc-staticchip
|
13
|
+
*
|
14
|
+
* @dependency mdc-icon
|
15
|
+
* @dependency mdc-text
|
16
|
+
*
|
17
|
+
* @cssproperty --mdc-chip-color - The color of the static chip.
|
18
|
+
* @cssproperty --mdc-chip-border-color - The border color of the static chip.
|
19
|
+
* @cssproperty --mdc-chip-background-color - The background color of the static chip.
|
20
|
+
*
|
21
|
+
*/
|
22
|
+
const reactWrapper = createComponent({
|
23
|
+
tagName: TAG_NAME,
|
24
|
+
elementClass: Component,
|
25
|
+
react: React,
|
26
|
+
events: {},
|
27
|
+
displayName: 'StaticChip',
|
28
|
+
});
|
29
|
+
export default reactWrapper;
|