@nimbus-ds/patterns 1.21.0 → 1.23.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/CHANGELOG.md +12 -0
- package/dist/AppShell/index.d.ts +7 -2
- package/dist/AppShell/index.js +1 -1
- package/dist/CHANGELOG.md +12 -0
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface AppShellProperties {
|
|
|
65
65
|
/**
|
|
66
66
|
* Can be used to control the responsive properties of the AppShell menu so you can change which breakpoint the menu hides under.
|
|
67
67
|
*/
|
|
68
|
-
menuProperties?:
|
|
68
|
+
menuProperties?: Omit<BoxBaseProps, "children" | "width" | "height" | "position" | "top" | "left" | "right" | "bottom" | "borderStyle" | "borderWidth" | "borderColor" | "borderRightWidth" | "transitionProperty" | "transitionDuration" | "transitionTimingFunction" | "flexShrink" | "ref">;
|
|
69
69
|
/**
|
|
70
70
|
* Controls whether the left sidebar (menu) is expanded (true) or collapsed (false). Defaults to true.
|
|
71
71
|
*/
|
|
@@ -104,7 +104,12 @@ export type AppShellMenuContextValue = {
|
|
|
104
104
|
/** Useful boolean to know if the menu is rendered as a popover/flyout. */
|
|
105
105
|
isMenuPopover: boolean;
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Read AppShellMenuContext state. Useful to know if the menu is rendered as a popover/flyout.
|
|
109
|
+
* @param enforce When false, returns a default value (false) if no provider is present. Adviced not to abuse, but useful for menu that Menu components that aren't always inside an AppShell.
|
|
110
|
+
* @throws If `enforce=true` and used without a provider.
|
|
111
|
+
*/
|
|
112
|
+
export declare const useAppShellMenuContext: (enforce?: boolean) => AppShellMenuContextValue;
|
|
108
113
|
export interface CalloutCardProperties {
|
|
109
114
|
/**
|
|
110
115
|
* CalloutCard color.
|