@momentum-design/components 0.106.4 → 0.106.6
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 +208 -208
- package/dist/browser/index.js.map +4 -4
- package/dist/components/listitem/index.d.ts +0 -1
- package/dist/components/listitem/index.js +0 -1
- package/dist/components/listitem/listitem.component.d.ts +8 -31
- package/dist/components/listitem/listitem.component.js +17 -80
- package/dist/components/listitem/listitem.constants.d.ts +0 -1
- package/dist/components/listitem/listitem.constants.js +0 -2
- package/dist/components/menuitem/index.d.ts +0 -1
- package/dist/components/menuitem/index.js +0 -1
- package/dist/components/menuitem/menuitem.component.d.ts +3 -1
- package/dist/components/menuitem/menuitem.component.js +3 -1
- package/dist/components/navmenuitem/navmenuitem.component.d.ts +9 -0
- package/dist/components/navmenuitem/navmenuitem.component.js +45 -1
- package/dist/components/option/index.d.ts +0 -1
- package/dist/components/option/index.js +0 -1
- package/dist/components/option/option.component.d.ts +3 -3
- package/dist/components/option/option.component.js +3 -3
- package/dist/components/select/select.component.d.ts +2 -2
- package/dist/components/select/select.component.js +2 -2
- package/dist/custom-elements.json +1311 -1752
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +4 -4
- package/dist/react/listitem/index.d.ts +2 -5
- package/dist/react/listitem/index.js +2 -5
- package/dist/react/menuitem/index.d.ts +3 -1
- package/dist/react/menuitem/index.js +3 -1
- package/dist/react/navmenuitem/index.d.ts +2 -0
- package/dist/react/navmenuitem/index.js +2 -0
- package/dist/react/option/index.d.ts +3 -3
- package/dist/react/option/index.js +3 -3
- package/dist/react/select/index.d.ts +2 -2
- package/dist/react/select/index.js +2 -2
- package/package.json +1 -1
- package/dist/components/listitem/listitem.utils.d.ts +0 -3
- package/dist/components/listitem/listitem.utils.js +0 -4
package/dist/react/index.d.ts
CHANGED
@@ -13,14 +13,13 @@ export { default as Button } from './button';
|
|
13
13
|
export { default as ButtonGroup } from './buttongroup';
|
14
14
|
export { default as ButtonLink } from './buttonlink';
|
15
15
|
export { default as Buttonsimple } from './buttonsimple';
|
16
|
+
export { default as CardCheckbox } from './cardcheckbox';
|
16
17
|
export { default as Card } from './card';
|
17
18
|
export { default as CardButton } from './cardbutton';
|
18
|
-
export { default as CardCheckbox } from './cardcheckbox';
|
19
19
|
export { default as CardRadio } from './cardradio';
|
20
20
|
export { default as Checkbox } from './checkbox';
|
21
21
|
export { default as Chip } from './chip';
|
22
22
|
export { default as Coachmark } from './coachmark';
|
23
|
-
export { default as Combobox } from './combobox';
|
24
23
|
export { default as Dialog } from './dialog';
|
25
24
|
export { default as Divider } from './divider';
|
26
25
|
export { default as FilterChip } from './filterchip';
|
@@ -33,8 +32,9 @@ export { default as InputChip } from './inputchip';
|
|
33
32
|
export { default as Link } from './link';
|
34
33
|
export { default as LinkButton } from './linkbutton';
|
35
34
|
export { default as Linksimple } from './linksimple';
|
36
|
-
export { default as
|
35
|
+
export { default as Combobox } from './combobox';
|
37
36
|
export { default as ListBox } from './listbox';
|
37
|
+
export { default as List } from './list';
|
38
38
|
export { default as Listheader } from './listheader';
|
39
39
|
export { default as ListItem } from './listitem';
|
40
40
|
export { default as Marker } from './marker';
|
@@ -59,8 +59,8 @@ export { default as Searchfield } from './searchfield';
|
|
59
59
|
export { default as Select } from './select';
|
60
60
|
export { default as Selectlistbox } from './selectlistbox';
|
61
61
|
export { default as SideNavigation } from './sidenavigation';
|
62
|
-
export { default as Slider } from './slider';
|
63
62
|
export { default as Skeleton } from './skeleton';
|
63
|
+
export { default as Slider } from './slider';
|
64
64
|
export { default as Spinner } from './spinner';
|
65
65
|
export { default as StaticCheckbox } from './staticcheckbox';
|
66
66
|
export { default as StaticRadio } from './staticradio';
|
package/dist/react/index.js
CHANGED
@@ -13,14 +13,13 @@ export { default as Button } from './button';
|
|
13
13
|
export { default as ButtonGroup } from './buttongroup';
|
14
14
|
export { default as ButtonLink } from './buttonlink';
|
15
15
|
export { default as Buttonsimple } from './buttonsimple';
|
16
|
+
export { default as CardCheckbox } from './cardcheckbox';
|
16
17
|
export { default as Card } from './card';
|
17
18
|
export { default as CardButton } from './cardbutton';
|
18
|
-
export { default as CardCheckbox } from './cardcheckbox';
|
19
19
|
export { default as CardRadio } from './cardradio';
|
20
20
|
export { default as Checkbox } from './checkbox';
|
21
21
|
export { default as Chip } from './chip';
|
22
22
|
export { default as Coachmark } from './coachmark';
|
23
|
-
export { default as Combobox } from './combobox';
|
24
23
|
export { default as Dialog } from './dialog';
|
25
24
|
export { default as Divider } from './divider';
|
26
25
|
export { default as FilterChip } from './filterchip';
|
@@ -33,8 +32,9 @@ export { default as InputChip } from './inputchip';
|
|
33
32
|
export { default as Link } from './link';
|
34
33
|
export { default as LinkButton } from './linkbutton';
|
35
34
|
export { default as Linksimple } from './linksimple';
|
36
|
-
export { default as
|
35
|
+
export { default as Combobox } from './combobox';
|
37
36
|
export { default as ListBox } from './listbox';
|
37
|
+
export { default as List } from './list';
|
38
38
|
export { default as Listheader } from './listheader';
|
39
39
|
export { default as ListItem } from './listitem';
|
40
40
|
export { default as Marker } from './marker';
|
@@ -59,8 +59,8 @@ export { default as Searchfield } from './searchfield';
|
|
59
59
|
export { default as Select } from './select';
|
60
60
|
export { default as Selectlistbox } from './selectlistbox';
|
61
61
|
export { default as SideNavigation } from './sidenavigation';
|
62
|
-
export { default as Slider } from './slider';
|
63
62
|
export { default as Skeleton } from './skeleton';
|
63
|
+
export { default as Slider } from './slider';
|
64
64
|
export { default as Spinner } from './spinner';
|
65
65
|
export { default as StaticCheckbox } from './staticcheckbox';
|
66
66
|
export { default as StaticRadio } from './staticradio';
|
@@ -11,15 +11,12 @@ import Component from '../../components/listitem';
|
|
11
11
|
* Based on the leading/trailing slot, the position of the controls and text can be adjusted. <br/>
|
12
12
|
* Please use mdc-list as a parent element even when there is only listitem for a11y purpose.
|
13
13
|
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
* This will be helpful when the listitem text is truncated or
|
17
|
-
* when you want to display additional information about the listitem.
|
14
|
+
* **Note**: If a listitem contains a long text, it is recommended to create a tooltip for the listitem that displays the full text on hover.
|
15
|
+
* Consumers need to add a unique ID to this listitem and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the listitem using the `triggerID` attribute.
|
18
16
|
*
|
19
17
|
* @tagname mdc-listitem
|
20
18
|
*
|
21
19
|
* @dependency mdc-text
|
22
|
-
* @dependency mdc-tooltip
|
23
20
|
*
|
24
21
|
* @slot leading-controls - slot for list item controls to appear of leading end.
|
25
22
|
* @slot leading-text-primary-label - slot for list item primary label.
|
@@ -13,15 +13,12 @@ import { TAG_NAME } from '../../components/listitem/listitem.constants';
|
|
13
13
|
* Based on the leading/trailing slot, the position of the controls and text can be adjusted. <br/>
|
14
14
|
* Please use mdc-list as a parent element even when there is only listitem for a11y purpose.
|
15
15
|
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
* This will be helpful when the listitem text is truncated or
|
19
|
-
* when you want to display additional information about the listitem.
|
16
|
+
* **Note**: If a listitem contains a long text, it is recommended to create a tooltip for the listitem that displays the full text on hover.
|
17
|
+
* Consumers need to add a unique ID to this listitem and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the listitem using the `triggerID` attribute.
|
20
18
|
*
|
21
19
|
* @tagname mdc-listitem
|
22
20
|
*
|
23
21
|
* @dependency mdc-text
|
24
|
-
* @dependency mdc-tooltip
|
25
22
|
*
|
26
23
|
* @slot leading-controls - slot for list item controls to appear of leading end.
|
27
24
|
* @slot leading-text-primary-label - slot for list item primary label.
|
@@ -12,9 +12,11 @@ import Component from '../../components/menuitem';
|
|
12
12
|
*
|
13
13
|
* Menu item has `name` and `value` attribute that can be used to identify the menu item when it is selected.
|
14
14
|
*
|
15
|
+
* **Note**: If a menuitem contains a long text, it is recommended to create a tooltip for the menuitem that displays the full text on hover.
|
16
|
+
* Consumers need to add a unique ID to this menuitem and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the menuitem using the `triggerID` attribute.
|
17
|
+
*
|
15
18
|
* @dependency mdc-text
|
16
19
|
* @dependency mdc-icon
|
17
|
-
* @dependency mdc-tooltip
|
18
20
|
*
|
19
21
|
* @tagname mdc-menuitem
|
20
22
|
*
|
@@ -14,9 +14,11 @@ import { TAG_NAME } from '../../components/menuitem/menuitem.constants';
|
|
14
14
|
*
|
15
15
|
* Menu item has `name` and `value` attribute that can be used to identify the menu item when it is selected.
|
16
16
|
*
|
17
|
+
* **Note**: If a menuitem contains a long text, it is recommended to create a tooltip for the menuitem that displays the full text on hover.
|
18
|
+
* Consumers need to add a unique ID to this menuitem and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the menuitem using the `triggerID` attribute.
|
19
|
+
*
|
17
20
|
* @dependency mdc-text
|
18
21
|
* @dependency mdc-icon
|
19
|
-
* @dependency mdc-tooltip
|
20
22
|
*
|
21
23
|
* @tagname mdc-menuitem
|
22
24
|
*
|
@@ -8,6 +8,8 @@ import Component from '../../components/navmenuitem';
|
|
8
8
|
* component. Its structure, spacing, and interactions are designed to align with
|
9
9
|
* the visual and functional requirements of side navigation layouts.
|
10
10
|
*
|
11
|
+
* By providing the tooltip-text attribute, a tooltip will be displayed on hover of the navmenuitem. This tooltip is useful when an active navmenuitem is present within a submenu of the sidenavigation component.
|
12
|
+
*
|
11
13
|
* @tagname mdc-navmenuitem
|
12
14
|
*
|
13
15
|
* @dependency mdc-icon
|
@@ -10,6 +10,8 @@ import { TAG_NAME } from '../../components/navmenuitem/navmenuitem.constants';
|
|
10
10
|
* component. Its structure, spacing, and interactions are designed to align with
|
11
11
|
* the visual and functional requirements of side navigation layouts.
|
12
12
|
*
|
13
|
+
* By providing the tooltip-text attribute, a tooltip will be displayed on hover of the navmenuitem. This tooltip is useful when an active navmenuitem is present within a submenu of the sidenavigation component.
|
14
|
+
*
|
13
15
|
* @tagname mdc-navmenuitem
|
14
16
|
*
|
15
17
|
* @dependency mdc-icon
|
@@ -11,12 +11,12 @@ import Component from '../../components/option';
|
|
11
11
|
* on the right side of the option to indicate that it is selected.
|
12
12
|
*
|
13
13
|
* The `prefixIcon` property can be used to display an icon on the left side of the option label.
|
14
|
-
*
|
15
|
-
*
|
14
|
+
*
|
15
|
+
* **Note**: If an option contains a long text, it is recommended to create a tooltip for the option that displays the full text on hover.
|
16
|
+
* Consumers need to add a unique ID to this option and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the option using the `triggerID` attribute.
|
16
17
|
*
|
17
18
|
* @dependency mdc-icon
|
18
19
|
* @dependency mdc-text
|
19
|
-
* @dependency mdc-tooltip
|
20
20
|
*
|
21
21
|
* @tagname mdc-option
|
22
22
|
*
|
@@ -13,12 +13,12 @@ import { TAG_NAME } from '../../components/option/option.constants';
|
|
13
13
|
* on the right side of the option to indicate that it is selected.
|
14
14
|
*
|
15
15
|
* The `prefixIcon` property can be used to display an icon on the left side of the option label.
|
16
|
-
*
|
17
|
-
*
|
16
|
+
*
|
17
|
+
* **Note**: If an option contains a long text, it is recommended to create a tooltip for the option that displays the full text on hover.
|
18
|
+
* Consumers need to add a unique ID to this option and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the option using the `triggerID` attribute.
|
18
19
|
*
|
19
20
|
* @dependency mdc-icon
|
20
21
|
* @dependency mdc-text
|
21
|
-
* @dependency mdc-tooltip
|
22
22
|
*
|
23
23
|
* @tagname mdc-option
|
24
24
|
*
|
@@ -3,8 +3,6 @@ import Component from '../../components/select';
|
|
3
3
|
/**
|
4
4
|
* The mdc-select component is a dropdown selection control that allows users to pick an option from a predefined list.
|
5
5
|
* It is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.
|
6
|
-
* The component ensures accessibility and usability while handling various use cases,
|
7
|
-
* including long text truncation with tooltip support.
|
8
6
|
*
|
9
7
|
* Every mdc-option should have a `value` attribute set to ensure proper form submission.
|
10
8
|
*
|
@@ -12,6 +10,8 @@ import Component from '../../components/select';
|
|
12
10
|
*
|
13
11
|
* **Note:** Make sure to add `mdc-selectlistbox` as a child of `mdc-select` and wrap options/optgroup in it to ensure proper accessibility functionality. Read more about it in SelectListBox documentation.
|
14
12
|
*
|
13
|
+
* If you need to use `mdc-tooltip` with any options, make sure to place the tooltip component outside the `mdc-select` element.
|
14
|
+
*
|
15
15
|
* @dependency mdc-button
|
16
16
|
* @dependency mdc-icon
|
17
17
|
* @dependency mdc-popover
|
@@ -5,8 +5,6 @@ import { TAG_NAME } from '../../components/select/select.constants';
|
|
5
5
|
/**
|
6
6
|
* The mdc-select component is a dropdown selection control that allows users to pick an option from a predefined list.
|
7
7
|
* It is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.
|
8
|
-
* The component ensures accessibility and usability while handling various use cases,
|
9
|
-
* including long text truncation with tooltip support.
|
10
8
|
*
|
11
9
|
* Every mdc-option should have a `value` attribute set to ensure proper form submission.
|
12
10
|
*
|
@@ -14,6 +12,8 @@ import { TAG_NAME } from '../../components/select/select.constants';
|
|
14
12
|
*
|
15
13
|
* **Note:** Make sure to add `mdc-selectlistbox` as a child of `mdc-select` and wrap options/optgroup in it to ensure proper accessibility functionality. Read more about it in SelectListBox documentation.
|
16
14
|
*
|
15
|
+
* If you need to use `mdc-tooltip` with any options, make sure to place the tooltip component outside the `mdc-select` element.
|
16
|
+
*
|
17
17
|
* @dependency mdc-button
|
18
18
|
* @dependency mdc-icon
|
19
19
|
* @dependency mdc-popover
|
package/package.json
CHANGED