@momentum-design/components 0.104.14 → 0.104.15
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 +164 -158
- package/dist/browser/index.js.map +3 -3
- 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 +773 -737
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- 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
@@ -72,8 +72,8 @@ export { default as TabList } from './tablist';
|
|
72
72
|
export { default as Text } from './text';
|
73
73
|
export { default as Textarea } from './textarea';
|
74
74
|
export { default as ThemeProvider } from './themeprovider';
|
75
|
-
export { default as Toast } from './toast';
|
76
75
|
export { default as Toggle } from './toggle';
|
76
|
+
export { default as Toast } from './toast';
|
77
77
|
export { default as ToggleTip } from './toggletip';
|
78
78
|
export { default as Tooltip } from './tooltip';
|
79
79
|
export { default as Typewriter } from './typewriter';
|
package/dist/react/index.js
CHANGED
@@ -72,8 +72,8 @@ export { default as TabList } from './tablist';
|
|
72
72
|
export { default as Text } from './text';
|
73
73
|
export { default as Textarea } from './textarea';
|
74
74
|
export { default as ThemeProvider } from './themeprovider';
|
75
|
-
export { default as Toast } from './toast';
|
76
75
|
export { default as Toggle } from './toggle';
|
76
|
+
export { default as Toast } from './toast';
|
77
77
|
export { default as ToggleTip } from './toggletip';
|
78
78
|
export { default as Tooltip } from './tooltip';
|
79
79
|
export { default as Typewriter } from './typewriter';
|
@@ -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',
|