@momentum-design/components 0.104.14 → 0.104.16
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 +175 -168
- package/dist/browser/index.js.map +3 -3
- package/dist/components/appheader/appheader.component.js +11 -11
- package/dist/components/appheader/appheader.styles.js +2 -1
- package/dist/components/sidenavigation/sidenavigation.component.d.ts +22 -32
- package/dist/components/sidenavigation/sidenavigation.component.js +40 -55
- package/dist/components/sidenavigation/sidenavigation.styles.js +5 -0
- package/dist/components/sidenavigation/sidenavigation.types.d.ts +9 -4
- package/dist/custom-elements.json +2082 -2046
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +4 -4
- package/dist/react/sidenavigation/index.d.ts +23 -3
- package/dist/react/sidenavigation/index.js +15 -1
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export { default as Accordion } from './accordion';
|
2
1
|
export { default as AccordionButton } from './accordionbutton';
|
2
|
+
export { default as Accordion } from './accordion';
|
3
3
|
export { default as AccordionGroup } from './accordiongroup';
|
4
4
|
export { default as AlertChip } from './alertchip';
|
5
5
|
export { default as Animation } from './animation';
|
@@ -26,9 +26,9 @@ export { default as Divider } from './divider';
|
|
26
26
|
export { default as FilterChip } from './filterchip';
|
27
27
|
export { default as FormfieldGroup } from './formfieldgroup';
|
28
28
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
29
|
-
export { default as Icon } from './icon';
|
30
29
|
export { default as IconProvider } from './iconprovider';
|
31
30
|
export { default as Input } from './input';
|
31
|
+
export { default as Icon } from './icon';
|
32
32
|
export { default as InputChip } from './inputchip';
|
33
33
|
export { default as Link } from './link';
|
34
34
|
export { default as LinkButton } from './linkbutton';
|
@@ -73,8 +73,8 @@ export { default as Text } from './text';
|
|
73
73
|
export { default as Textarea } from './textarea';
|
74
74
|
export { default as ThemeProvider } from './themeprovider';
|
75
75
|
export { default as Toast } from './toast';
|
76
|
-
export { default as Toggle } from './toggle';
|
77
|
-
export { default as ToggleTip } from './toggletip';
|
78
76
|
export { default as Tooltip } from './tooltip';
|
77
|
+
export { default as ToggleTip } from './toggletip';
|
78
|
+
export { default as Toggle } from './toggle';
|
79
79
|
export { default as Typewriter } from './typewriter';
|
80
80
|
export { default as VirtualizedList } from './virtualizedlist';
|
package/dist/react/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export { default as Accordion } from './accordion';
|
2
1
|
export { default as AccordionButton } from './accordionbutton';
|
2
|
+
export { default as Accordion } from './accordion';
|
3
3
|
export { default as AccordionGroup } from './accordiongroup';
|
4
4
|
export { default as AlertChip } from './alertchip';
|
5
5
|
export { default as Animation } from './animation';
|
@@ -26,9 +26,9 @@ export { default as Divider } from './divider';
|
|
26
26
|
export { default as FilterChip } from './filterchip';
|
27
27
|
export { default as FormfieldGroup } from './formfieldgroup';
|
28
28
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
29
|
-
export { default as Icon } from './icon';
|
30
29
|
export { default as IconProvider } from './iconprovider';
|
31
30
|
export { default as Input } from './input';
|
31
|
+
export { default as Icon } from './icon';
|
32
32
|
export { default as InputChip } from './inputchip';
|
33
33
|
export { default as Link } from './link';
|
34
34
|
export { default as LinkButton } from './linkbutton';
|
@@ -73,8 +73,8 @@ export { default as Text } from './text';
|
|
73
73
|
export { default as Textarea } from './textarea';
|
74
74
|
export { default as ThemeProvider } from './themeprovider';
|
75
75
|
export { default as Toast } from './toast';
|
76
|
-
export { default as Toggle } from './toggle';
|
77
|
-
export { default as ToggleTip } from './toggletip';
|
78
76
|
export { default as Tooltip } from './tooltip';
|
77
|
+
export { default as ToggleTip } from './toggletip';
|
78
|
+
export { default as Toggle } from './toggle';
|
79
79
|
export { default as Typewriter } from './typewriter';
|
80
80
|
export { default as VirtualizedList } from './virtualizedlist';
|
@@ -48,13 +48,33 @@ import Component from '../../components/sidenavigation';
|
|
48
48
|
* @slot fixed-section - Slot for the fixed content area of the side navigation.
|
49
49
|
* @slot brand-logo - Slot for the brand logo (e.g., icon or img).
|
50
50
|
*
|
51
|
+
* @csspart side-navigation-container - The main container wrapping the entire side navigation.
|
52
|
+
* @csspart scrollable-section - The scrollable section of the side navigation.
|
53
|
+
* @csspart fixed-section - The fixed section of the side navigation.
|
54
|
+
* @csspart separator - The divider between the scrollable and fixed sections.
|
55
|
+
* @csspart brand-logo-container - The container wrapping the brand logo and footer text.
|
56
|
+
* @csspart footer-text - The footer text label in the fixed section.
|
57
|
+
* @csspart vertical-divider - The vertical divider between the scrollable and fixed sections.
|
58
|
+
* @csspart vertical-divider-button - The button inside the vertical divider used to toggle expand/collapse.
|
59
|
+
*
|
60
|
+
* @event toggle - (React: onToggle) Dispatched when the grabber button is clicked to expand/collapse the sidenavigation.
|
61
|
+
* @event activechange - (React: onActiveChange) Dispatched when the active state of a nested navmenuitem changes.
|
62
|
+
*
|
51
63
|
* @cssproperty --mdc-sidenavigation-expanded-width - width of the sideNavigation when expanded
|
52
|
-
* @cssproperty --mdc-sidenavigation-collapsed-width - width of the sideNavigation when
|
64
|
+
* @cssproperty --mdc-sidenavigation-collapsed-width - width of the sideNavigation when collapsed
|
65
|
+
* @cssproperty --mdc-sidenavigation-vertical-divider-button-z-index - z-index of the vertical divider button
|
53
66
|
*/
|
54
67
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
55
|
-
|
68
|
+
onToggle: EventName<CustomEvent<{
|
69
|
+
expanded: boolean;
|
70
|
+
}> & {
|
71
|
+
target: Component;
|
72
|
+
}>;
|
73
|
+
onActiveChange: EventName<CustomEvent<{
|
56
74
|
navId: string;
|
57
75
|
active: boolean;
|
58
|
-
}
|
76
|
+
}> & {
|
77
|
+
target: Component;
|
78
|
+
}>;
|
59
79
|
}>;
|
60
80
|
export default reactWrapper;
|
@@ -50,14 +50,28 @@ import { TAG_NAME } from '../../components/sidenavigation/sidenavigation.constan
|
|
50
50
|
* @slot fixed-section - Slot for the fixed content area of the side navigation.
|
51
51
|
* @slot brand-logo - Slot for the brand logo (e.g., icon or img).
|
52
52
|
*
|
53
|
+
* @csspart side-navigation-container - The main container wrapping the entire side navigation.
|
54
|
+
* @csspart scrollable-section - The scrollable section of the side navigation.
|
55
|
+
* @csspart fixed-section - The fixed section of the side navigation.
|
56
|
+
* @csspart separator - The divider between the scrollable and fixed sections.
|
57
|
+
* @csspart brand-logo-container - The container wrapping the brand logo and footer text.
|
58
|
+
* @csspart footer-text - The footer text label in the fixed section.
|
59
|
+
* @csspart vertical-divider - The vertical divider between the scrollable and fixed sections.
|
60
|
+
* @csspart vertical-divider-button - The button inside the vertical divider used to toggle expand/collapse.
|
61
|
+
*
|
62
|
+
* @event toggle - (React: onToggle) Dispatched when the grabber button is clicked to expand/collapse the sidenavigation.
|
63
|
+
* @event activechange - (React: onActiveChange) Dispatched when the active state of a nested navmenuitem changes.
|
64
|
+
*
|
53
65
|
* @cssproperty --mdc-sidenavigation-expanded-width - width of the sideNavigation when expanded
|
54
|
-
* @cssproperty --mdc-sidenavigation-collapsed-width - width of the sideNavigation when
|
66
|
+
* @cssproperty --mdc-sidenavigation-collapsed-width - width of the sideNavigation when collapsed
|
67
|
+
* @cssproperty --mdc-sidenavigation-vertical-divider-button-z-index - z-index of the vertical divider button
|
55
68
|
*/
|
56
69
|
const reactWrapper = createComponent({
|
57
70
|
tagName: TAG_NAME,
|
58
71
|
elementClass: Component,
|
59
72
|
react: React,
|
60
73
|
events: {
|
74
|
+
onToggle: 'toggle',
|
61
75
|
onActiveChange: 'activechange',
|
62
76
|
},
|
63
77
|
displayName: 'SideNavigation',
|