@momentum-design/components 0.85.3 → 0.85.5
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 +238 -229
- package/dist/browser/index.js.map +4 -4
- package/dist/components/alertchip/alertchip.component.d.ts +2 -0
- package/dist/components/alertchip/alertchip.component.js +2 -0
- package/dist/components/avatar/avatar.component.d.ts +6 -0
- package/dist/components/avatar/avatar.component.js +6 -0
- package/dist/components/avatarbutton/avatarbutton.component.d.ts +9 -0
- package/dist/components/avatarbutton/avatarbutton.component.js +10 -0
- package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +1 -1
- package/dist/components/formfieldwrapper/formfieldwrapper.component.js +1 -1
- package/dist/components/icon/icon.component.d.ts +2 -0
- package/dist/components/icon/icon.component.js +2 -0
- package/dist/components/listitem/listitem.component.d.ts +11 -0
- package/dist/components/listitem/listitem.component.js +11 -3
- package/dist/components/listitem/listitem.constants.d.ts +2 -2
- package/dist/components/listitem/listitem.constants.js +3 -2
- package/dist/components/listitem/listitem.styles.js +9 -1
- package/dist/components/menubar/menubar.component.d.ts +31 -5
- package/dist/components/menubar/menubar.component.js +198 -9
- package/dist/components/menubar/menubar.constants.d.ts +3 -4
- package/dist/components/menubar/menubar.constants.js +3 -4
- package/dist/components/menupopover/menupopover.component.d.ts +1 -0
- package/dist/components/menupopover/menupopover.component.js +13 -2
- package/dist/components/menupopover/menupopover.constants.d.ts +1 -0
- package/dist/components/menupopover/menupopover.constants.js +1 -0
- package/dist/components/navitemlist/navitemlist.component.d.ts +1 -2
- package/dist/components/navitemlist/navitemlist.component.js +1 -4
- package/dist/components/popover/popover.component.js +8 -2
- package/dist/custom-elements.json +942 -1997
- package/dist/react/alertchip/index.d.ts +2 -0
- package/dist/react/alertchip/index.js +2 -0
- package/dist/react/avatar/index.d.ts +6 -0
- package/dist/react/avatar/index.js +6 -0
- package/dist/react/avatarbutton/index.d.ts +9 -0
- package/dist/react/avatarbutton/index.js +9 -0
- package/dist/react/icon/index.d.ts +2 -0
- package/dist/react/icon/index.js +2 -0
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/menubar/index.d.ts +6 -3
- package/dist/react/menubar/index.js +6 -3
- package/package.json +1 -1
- package/dist/components/menubar/menubar.types.d.ts +0 -4
- package/dist/components/menubar/menubar.types.js +0 -1
- package/dist/utils/mixins/MenuMixin.d.ts +0 -10
- package/dist/utils/mixins/MenuMixin.js +0 -479
@@ -18,6 +18,8 @@ import Component from '../../components/alertchip';
|
|
18
18
|
* @cssproperty --mdc-chip-border-color - The border color of the alertchip
|
19
19
|
* @cssproperty --mdc-chip-background-color - The background color of the alertchip
|
20
20
|
*
|
21
|
+
* @csspart icon - The alert icon
|
22
|
+
* @csspart label - The text label of the alertchip
|
21
23
|
*/
|
22
24
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
23
25
|
onClick: EventName<MouseEvent>;
|
@@ -20,6 +20,8 @@ import { TAG_NAME } from '../../components/alertchip/alertchip.constants';
|
|
20
20
|
* @cssproperty --mdc-chip-border-color - The border color of the alertchip
|
21
21
|
* @cssproperty --mdc-chip-background-color - The background color of the alertchip
|
22
22
|
*
|
23
|
+
* @csspart icon - The alert icon
|
24
|
+
* @csspart label - The text label of the alertchip
|
23
25
|
*/
|
24
26
|
const reactWrapper = createComponent({
|
25
27
|
tagName: TAG_NAME,
|
@@ -33,6 +33,12 @@ import Component from '../../components/avatar';
|
|
33
33
|
* Allows customization of the loading indicator foreground color.
|
34
34
|
* @cssproperty --mdc-avatar-loading-overlay-background-color -
|
35
35
|
* Allows customization of the loading overlay background color.
|
36
|
+
*
|
37
|
+
* @csspart content - The main content of the avatar.
|
38
|
+
* @csspart photo - The photo of the avatar.
|
39
|
+
* @csspart presence - The presence indicator of the avatar.
|
40
|
+
* @csspart loading-wrapper - The wrapper for the loading indicator.
|
41
|
+
* @csspart loader - The loading indicator of the avatar.
|
36
42
|
*/
|
37
43
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
38
44
|
export default reactWrapper;
|
@@ -36,6 +36,12 @@ import { TAG_NAME } from '../../components/avatar/avatar.constants';
|
|
36
36
|
* Allows customization of the loading indicator foreground color.
|
37
37
|
* @cssproperty --mdc-avatar-loading-overlay-background-color -
|
38
38
|
* Allows customization of the loading overlay background color.
|
39
|
+
*
|
40
|
+
* @csspart content - The main content of the avatar.
|
41
|
+
* @csspart photo - The photo of the avatar.
|
42
|
+
* @csspart presence - The presence indicator of the avatar.
|
43
|
+
* @csspart loading-wrapper - The wrapper for the loading indicator.
|
44
|
+
* @csspart loader - The loading indicator of the avatar.
|
39
45
|
*/
|
40
46
|
const reactWrapper = createComponent({
|
41
47
|
tagName: TAG_NAME,
|
@@ -6,6 +6,8 @@ import Component from '../../components/avatarbutton';
|
|
6
6
|
* This component is made by extending `buttonsimple` class.
|
7
7
|
* The button component acts as a wrapper for the avatar component.
|
8
8
|
*
|
9
|
+
* To override styles of the avatar inside, use the specified css parts.
|
10
|
+
*
|
9
11
|
* @dependency mdc-avatar
|
10
12
|
*
|
11
13
|
* @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.
|
@@ -18,6 +20,13 @@ import Component from '../../components/avatarbutton';
|
|
18
20
|
* @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state
|
19
21
|
* @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state
|
20
22
|
* @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state
|
23
|
+
*
|
24
|
+
* @csspart overlay - The overlay part of the avatar button.
|
25
|
+
* @csspart content - The main content of the avatar.
|
26
|
+
* @csspart photo - The photo part of the avatar.
|
27
|
+
* @csspart presence - The presence indicator part of the avatar.
|
28
|
+
* @csspart loading-wrapper - The wrapper for the loading indicator of the avatar.
|
29
|
+
* @csspart loader - The loading indicator part of the avatar.
|
21
30
|
*/
|
22
31
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
23
32
|
onClick: EventName<MouseEvent>;
|
@@ -8,6 +8,8 @@ import { TAG_NAME } from '../../components/avatarbutton/avatarbutton.constants';
|
|
8
8
|
* This component is made by extending `buttonsimple` class.
|
9
9
|
* The button component acts as a wrapper for the avatar component.
|
10
10
|
*
|
11
|
+
* To override styles of the avatar inside, use the specified css parts.
|
12
|
+
*
|
11
13
|
* @dependency mdc-avatar
|
12
14
|
*
|
13
15
|
* @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.
|
@@ -20,6 +22,13 @@ import { TAG_NAME } from '../../components/avatarbutton/avatarbutton.constants';
|
|
20
22
|
* @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state
|
21
23
|
* @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state
|
22
24
|
* @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state
|
25
|
+
*
|
26
|
+
* @csspart overlay - The overlay part of the avatar button.
|
27
|
+
* @csspart content - The main content of the avatar.
|
28
|
+
* @csspart photo - The photo part of the avatar.
|
29
|
+
* @csspart presence - The presence indicator part of the avatar.
|
30
|
+
* @csspart loading-wrapper - The wrapper for the loading indicator of the avatar.
|
31
|
+
* @csspart loader - The loading indicator part of the avatar.
|
23
32
|
*/
|
24
33
|
const reactWrapper = createComponent({
|
25
34
|
tagName: TAG_NAME,
|
@@ -44,6 +44,8 @@ import Component from '../../components/icon';
|
|
44
44
|
* @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
|
45
45
|
* @cssproperty --mdc-icon-size - Allows customization of the icon size.
|
46
46
|
* @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.
|
47
|
+
*
|
48
|
+
* @csspart icon - The svg inside the icon element.
|
47
49
|
*/
|
48
50
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
49
51
|
export default reactWrapper;
|
package/dist/react/icon/index.js
CHANGED
@@ -47,6 +47,8 @@ import { TAG_NAME } from '../../components/icon/icon.constants';
|
|
47
47
|
* @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
|
48
48
|
* @cssproperty --mdc-icon-size - Allows customization of the icon size.
|
49
49
|
* @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.
|
50
|
+
*
|
51
|
+
* @csspart icon - The svg inside the icon element.
|
50
52
|
*/
|
51
53
|
const reactWrapper = createComponent({
|
52
54
|
tagName: TAG_NAME,
|
package/dist/react/index.d.ts
CHANGED
@@ -43,8 +43,8 @@ export { default as OptGroup } from './optgroup';
|
|
43
43
|
export { default as Option } from './option';
|
44
44
|
export { default as Popover } from './popover';
|
45
45
|
export { default as Presence } from './presence';
|
46
|
-
export { default as Progressspinner } from './progressspinner';
|
47
46
|
export { default as Progressbar } from './progressbar';
|
47
|
+
export { default as Progressspinner } from './progressspinner';
|
48
48
|
export { default as Radio } from './radio';
|
49
49
|
export { default as RadioGroup } from './radiogroup';
|
50
50
|
export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
|
package/dist/react/index.js
CHANGED
@@ -43,8 +43,8 @@ export { default as OptGroup } from './optgroup';
|
|
43
43
|
export { default as Option } from './option';
|
44
44
|
export { default as Popover } from './popover';
|
45
45
|
export { default as Presence } from './presence';
|
46
|
-
export { default as Progressspinner } from './progressspinner';
|
47
46
|
export { default as Progressbar } from './progressbar';
|
47
|
+
export { default as Progressspinner } from './progressspinner';
|
48
48
|
export { default as Radio } from './radio';
|
49
49
|
export { default as RadioGroup } from './radiogroup';
|
50
50
|
export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import Component from '../../components/menubar';
|
2
2
|
/**
|
3
|
-
* Menubar is a navigational menu component that provides a
|
3
|
+
* Menubar is a navigational menu component that provides a vertical fixed list of menu items,
|
4
4
|
* with support for nested submenus and keyboard navigation. It serves as a container
|
5
5
|
* for menu items and manages their interaction patterns, including:
|
6
|
-
* - Keyboard navigation (
|
6
|
+
* - Keyboard navigation (Arrow keys, Home, End)
|
7
7
|
* - Menu item activation (Enter/Space)
|
8
8
|
* - Submenu toggling (Right/Left arrow keys)
|
9
9
|
* - Focus management
|
10
|
-
* - Support for both horizontal and vertical orientations
|
11
10
|
* - Integration with MenuPopover for nested menus
|
12
11
|
*
|
13
12
|
* A menubar will contain a set of menu items and their associated popovers.
|
@@ -16,6 +15,10 @@ import Component from '../../components/menubar';
|
|
16
15
|
* The component automatically handles ARIA attributes and follows WAI-ARIA menu design patterns.
|
17
16
|
* It works in conjunction with `mdc-menuitem` and `mdc-menupopover` to create accessible menu structures.
|
18
17
|
*
|
18
|
+
* **Note:** A menubar contains three types of menu items, including menuitem, menuitemradio and menuitemcheckbox. These menu items may optionally be nested in one or more group containers. Groups or items may optionally by separated with separator elements.
|
19
|
+
*
|
20
|
+
* `mdc-menubar` contains a group that wraps all its chilren passed within the default slot. This has been added to ensure the right accessibility behavior while using screen readers.
|
21
|
+
*
|
19
22
|
* @tagname mdc-menubar
|
20
23
|
* @slot default - Contains the menu items and their associated popovers
|
21
24
|
*/
|
@@ -3,14 +3,13 @@ import { createComponent } from '@lit/react';
|
|
3
3
|
import Component from '../../components/menubar';
|
4
4
|
import { TAG_NAME } from '../../components/menubar/menubar.constants';
|
5
5
|
/**
|
6
|
-
* Menubar is a navigational menu component that provides a
|
6
|
+
* Menubar is a navigational menu component that provides a vertical fixed list of menu items,
|
7
7
|
* with support for nested submenus and keyboard navigation. It serves as a container
|
8
8
|
* for menu items and manages their interaction patterns, including:
|
9
|
-
* - Keyboard navigation (
|
9
|
+
* - Keyboard navigation (Arrow keys, Home, End)
|
10
10
|
* - Menu item activation (Enter/Space)
|
11
11
|
* - Submenu toggling (Right/Left arrow keys)
|
12
12
|
* - Focus management
|
13
|
-
* - Support for both horizontal and vertical orientations
|
14
13
|
* - Integration with MenuPopover for nested menus
|
15
14
|
*
|
16
15
|
* A menubar will contain a set of menu items and their associated popovers.
|
@@ -19,6 +18,10 @@ import { TAG_NAME } from '../../components/menubar/menubar.constants';
|
|
19
18
|
* The component automatically handles ARIA attributes and follows WAI-ARIA menu design patterns.
|
20
19
|
* It works in conjunction with `mdc-menuitem` and `mdc-menupopover` to create accessible menu structures.
|
21
20
|
*
|
21
|
+
* **Note:** A menubar contains three types of menu items, including menuitem, menuitemradio and menuitemcheckbox. These menu items may optionally be nested in one or more group containers. Groups or items may optionally by separated with separator elements.
|
22
|
+
*
|
23
|
+
* `mdc-menubar` contains a group that wraps all its chilren passed within the default slot. This has been added to ensure the right accessibility behavior while using screen readers.
|
24
|
+
*
|
22
25
|
* @tagname mdc-menubar
|
23
26
|
* @slot default - Contains the menu items and their associated popovers
|
24
27
|
*/
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { LitElement } from 'lit';
|
2
|
-
import type { Orientation } from '../../components/menubar/menubar.types';
|
3
|
-
import type { Constructor } from './index.types';
|
4
|
-
export declare class MenuMixinInterface {
|
5
|
-
ariaOrientation: Orientation;
|
6
|
-
protected handleKeyDown(event: KeyboardEvent): void;
|
7
|
-
protected handleMouseClick(event: MouseEvent): void;
|
8
|
-
protected updatePopoverPlacementBasedOnOrientation(): void;
|
9
|
-
}
|
10
|
-
export declare const MenuMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MenuMixinInterface> & T;
|