@getsoren/design-system 4.39.6 → 4.40.1

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.
@@ -14,6 +14,35 @@ export type ObjectNavigationItem = {
14
14
  hasAccess?: boolean;
15
15
  target?: string;
16
16
  };
17
+ export type NavigationGroupItem = {
18
+ /**
19
+ * Section title displayed above the grouped links
20
+ */
21
+ groupLabel: string;
22
+ /**
23
+ * Links belonging to this group
24
+ */
25
+ items: ObjectNavigationItem[];
26
+ /**
27
+ * Allow the group to be collapsed/expanded by clicking its header.
28
+ * Set to false to keep the group permanently expanded.
29
+ * @default true
30
+ */
31
+ collapsible?: boolean;
32
+ /**
33
+ * Initial expanded state when collapsible
34
+ * @default true
35
+ */
36
+ defaultExpanded?: boolean;
37
+ /**
38
+ * Hide the whole group on mobile
39
+ */
40
+ hideOnMobile?: boolean;
41
+ /**
42
+ * Hide the whole group when the user has no access to it
43
+ */
44
+ hasAccess?: boolean;
45
+ };
17
46
  export interface BottomLinkProps {
18
47
  url?: string;
19
48
  state?: any;
@@ -40,7 +69,7 @@ export interface NavLinkProps {
40
69
  state?: any;
41
70
  target?: string;
42
71
  }
43
- export type NavigationItem = ObjectNavigationItem | ReactNode;
72
+ export type NavigationItem = ObjectNavigationItem | NavigationGroupItem | ReactNode;
44
73
  export interface NavigationMenuProps {
45
74
  /**
46
75
  * Menu items
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.39.6",
5
+ "version": "4.40.1",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",