@getsoren/design-system 4.43.0 → 4.44.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.
@@ -26,7 +26,7 @@ export type NavigationGroupItem = {
26
26
  /**
27
27
  * Allow the group to be collapsed/expanded by clicking its header.
28
28
  * Set to false to keep the group permanently expanded.
29
- * @default true
29
+ * @default false
30
30
  */
31
31
  collapsible?: boolean;
32
32
  /**
@@ -123,6 +123,11 @@ export interface NavigationMenuProps {
123
123
  * Search component
124
124
  */
125
125
  Footer?: ReactNode;
126
+ /**
127
+ * localStorage key used to persist the sidebar collapsed state
128
+ * @default "soren-navigation-menu-collapsed"
129
+ */
130
+ storageKey?: string;
126
131
  }
127
132
  declare const DEFAULT_CONTEXT_VALUE: {
128
133
  closeDrawerMenu: () => void;
@@ -135,5 +140,5 @@ declare const DEFAULT_CONTEXT_VALUE: {
135
140
  };
136
141
  type NavigationMenuContextValue = NavigationMenuProps & typeof DEFAULT_CONTEXT_VALUE;
137
142
  export declare const NavigationMenuContext: import('react').Context<NavigationMenuContextValue>;
138
- declare const _default: import('react').MemoExoticComponent<({ AppBar, NavLink, Search, Logo, Footer, items, enableSearchFocusShortcut, disableResponsive, hideSearchDesktop, bottomLink, sideBarWidth, }: NavigationMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
143
+ declare const _default: import('react').MemoExoticComponent<({ AppBar, NavLink, Search, Logo, Footer, items, enableSearchFocusShortcut, disableResponsive, hideSearchDesktop, bottomLink, sideBarWidth, storageKey, }: NavigationMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
139
144
  export default _default;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@getsoren/design-system",
3
3
  "description": "Design System React library",
4
4
  "sideEffects": false,
5
- "version": "4.43.0",
5
+ "version": "4.44.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",