@gridui/menu 4.2.0 → 5.0.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/README.md +16 -9
- package/dist/index.js +15 -8
- package/dist/index.js.map +2 -2
- package/dist/menu-group/menu-group.d.ts +4 -1
- package/dist/menu-link/menu-link.d.ts +2 -0
- package/dist/navigation-links/navigation-links.d.ts +4 -1
- package/dist/navigation-links/style.d.ts +3 -1
- package/dist/styles.css +126 -88
- package/dist/styles.local.css +87 -34
- package/docs/catalog.json +8 -7
- package/docs/reference/menu-action.md +8 -8
- package/docs/reference/menu-footer.md +2 -2
- package/docs/reference/menu-grid.md +3 -3
- package/docs/reference/menu-group.md +8 -2
- package/docs/reference/menu-heading.md +2 -2
- package/docs/reference/menu-item-content.md +2 -2
- package/docs/reference/menu-item-description.md +2 -2
- package/docs/reference/menu-item-icon.md +2 -2
- package/docs/reference/menu-item-label.md +2 -2
- package/docs/reference/menu-item-trailing.md +2 -2
- package/docs/reference/menu-label.md +3 -3
- package/docs/reference/menu-link.md +7 -3
- package/docs/reference/menu-note.md +2 -2
- package/docs/reference/menu-separator.md +3 -3
- package/docs/reference/navigation-links.md +11 -3
- package/package.json +7 -7
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -55,3 +55,9 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
55
55
|
|
|
56
56
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
57
57
|
|
|
58
|
+
### density
|
|
59
|
+
|
|
60
|
+
``Density | undefined`` · Optional
|
|
61
|
+
|
|
62
|
+
Default: ``"comfortable"``
|
|
63
|
+
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
2
|
# MenuLabel
|
|
3
3
|
|
|
4
|
-
Compose MenuLabel with
|
|
4
|
+
Compose MenuLabel with ResponsiveNavigationMenu inside the same @gridui/menu component family.
|
|
5
5
|
|
|
6
6
|
Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/responsive-navigation/stories/navigation-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
2
|
# MenuLink
|
|
3
3
|
|
|
4
|
-
Compose MenuLink with
|
|
4
|
+
Compose MenuLink with SiteNavigation inside the same @gridui/menu component family.
|
|
5
5
|
|
|
6
6
|
Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/site-navigation/stories/site-navigation.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -59,3 +59,7 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
59
59
|
|
|
60
60
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
61
61
|
|
|
62
|
+
### density
|
|
63
|
+
|
|
64
|
+
``Density | undefined`` · Optional
|
|
65
|
+
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
2
|
# MenuSeparator
|
|
3
3
|
|
|
4
|
-
Compose MenuSeparator with
|
|
4
|
+
Compose MenuSeparator with ResponsiveNavigationMenu inside the same @gridui/menu component family.
|
|
5
5
|
|
|
6
6
|
Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/responsive-navigation/stories/navigation-menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
2
|
# NavigationLinks
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Arranges native navigation links at a shared control size. Use MenuGroup density for rich destination rows.
|
|
5
5
|
|
|
6
6
|
Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/menu/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/navigation-links.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -55,3 +55,11 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
55
55
|
|
|
56
56
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
57
57
|
|
|
58
|
+
### size
|
|
59
|
+
|
|
60
|
+
``Size | undefined`` · Optional
|
|
61
|
+
|
|
62
|
+
Default: ``"medium"``
|
|
63
|
+
|
|
64
|
+
Component size preset.
|
|
65
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "GridUI React menu",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"react-dom": "^19.2.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@gridui/button": "^
|
|
36
|
-
"@gridui/motion": "^1.0.
|
|
37
|
-
"@gridui/style-utils": "^4.
|
|
38
|
-
"@gridui/theme": "^
|
|
35
|
+
"@gridui/button": "^6.0.0",
|
|
36
|
+
"@gridui/motion": "^1.0.3",
|
|
37
|
+
"@gridui/style-utils": "^4.1.0",
|
|
38
|
+
"@gridui/theme": "^5.0.0",
|
|
39
39
|
"class-variance-authority": "0.7.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
43
|
-
"@gridui/action-navigation": "1.1.
|
|
43
|
+
"@gridui/action-navigation": "1.1.1",
|
|
44
44
|
"@jest/globals": "30.5.2",
|
|
45
45
|
"@storybook/react-vite": "10.6.7",
|
|
46
46
|
"@types/jest": "30.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/react": "19.3.0",
|
|
49
49
|
"@types/react-dom": "19.3.0",
|
|
50
50
|
"jest": "30.5.2",
|
|
51
|
-
"lucide-react": "1.
|
|
51
|
+
"lucide-react": "1.73.0",
|
|
52
52
|
"react": "19.3.1",
|
|
53
53
|
"react-dom": "19.3.1",
|
|
54
54
|
"typescript": "6.0.3"
|