@momentum-design/components 0.106.8 → 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/chip/chip.component.js +2 -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/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 +703 -576
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +2 -1
- 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, };
|
package/dist/react/index.d.ts
CHANGED
@@ -60,10 +60,11 @@ export { default as Select } from './select';
|
|
60
60
|
export { default as Selectlistbox } from './selectlistbox';
|
61
61
|
export { default as SideNavigation } from './sidenavigation';
|
62
62
|
export { default as Skeleton } from './skeleton';
|
63
|
+
export { default as Slider } from './slider';
|
63
64
|
export { default as Spinner } from './spinner';
|
64
65
|
export { default as StaticCheckbox } from './staticcheckbox';
|
66
|
+
export { default as StaticChip } from './staticchip';
|
65
67
|
export { default as StaticRadio } from './staticradio';
|
66
|
-
export { default as Slider } from './slider';
|
67
68
|
export { default as StaticToggle } from './statictoggle';
|
68
69
|
export { default as Stepper } from './stepper';
|
69
70
|
export { default as StepperConnector } from './stepperconnector';
|
package/dist/react/index.js
CHANGED
@@ -60,10 +60,11 @@ export { default as Select } from './select';
|
|
60
60
|
export { default as Selectlistbox } from './selectlistbox';
|
61
61
|
export { default as SideNavigation } from './sidenavigation';
|
62
62
|
export { default as Skeleton } from './skeleton';
|
63
|
+
export { default as Slider } from './slider';
|
63
64
|
export { default as Spinner } from './spinner';
|
64
65
|
export { default as StaticCheckbox } from './staticcheckbox';
|
66
|
+
export { default as StaticChip } from './staticchip';
|
65
67
|
export { default as StaticRadio } from './staticradio';
|
66
|
-
export { default as Slider } from './slider';
|
67
68
|
export { default as StaticToggle } from './statictoggle';
|
68
69
|
export { default as Stepper } from './stepper';
|
69
70
|
export { default as StepperConnector } from './stepperconnector';
|
@@ -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;
|