@gridui/menu 4.1.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 +27 -10
- 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 +10 -1
- package/dist/navigation-links/style.d.ts +3 -1
- package/dist/styled.js +3 -0
- package/dist/styles.css +474 -34
- package/dist/styles.local.css +312 -0
- package/docs/catalog.json +9 -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 +15 -10
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--spacing: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@layer utilities {
|
|
10
|
+
.gridui-u-menu--m-0 {
|
|
11
|
+
margin: 0px;
|
|
12
|
+
}
|
|
13
|
+
.gridui-u-menu--flex {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
.gridui-u-menu--grid {
|
|
17
|
+
display: grid;
|
|
18
|
+
}
|
|
19
|
+
.gridui-u-menu--inline-flex {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
}
|
|
22
|
+
.gridui-u-menu--w-full {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
.gridui-u-menu--min-w-0 {
|
|
26
|
+
min-width: 0px;
|
|
27
|
+
}
|
|
28
|
+
.gridui-u-menu--flex-1 {
|
|
29
|
+
flex: 1;
|
|
30
|
+
}
|
|
31
|
+
.gridui-u-menu--shrink-0 {
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
}
|
|
34
|
+
.gridui-u-menu--flex-nowrap {
|
|
35
|
+
flex-wrap: nowrap;
|
|
36
|
+
}
|
|
37
|
+
.gridui-u-menu--flex-wrap {
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
}
|
|
40
|
+
.gridui-u-menu--items-center {
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
.gridui-u-menu--items-start {
|
|
44
|
+
align-items: flex-start;
|
|
45
|
+
}
|
|
46
|
+
.gridui-u-menu--justify-between {
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
}
|
|
49
|
+
.gridui-u-menu--justify-start {
|
|
50
|
+
justify-content: flex-start;
|
|
51
|
+
}
|
|
52
|
+
.gridui-u-menu--gap-0 {
|
|
53
|
+
gap: 0px;
|
|
54
|
+
}
|
|
55
|
+
.gridui-u-menu--gap-gridui-4 {
|
|
56
|
+
gap: var(--gridui-space-4);
|
|
57
|
+
}
|
|
58
|
+
.gridui-u-menu--gap-gridui-8 {
|
|
59
|
+
gap: var(--gridui-space-8);
|
|
60
|
+
}
|
|
61
|
+
.gridui-u-menu--gap-gridui-16 {
|
|
62
|
+
gap: var(--gridui-space-16);
|
|
63
|
+
}
|
|
64
|
+
.gridui-u-menu--rounded-control {
|
|
65
|
+
border-radius: var(--gridui-control-radius);
|
|
66
|
+
}
|
|
67
|
+
.gridui-u-menu--border {
|
|
68
|
+
border-style: var(--tw-border-style);
|
|
69
|
+
border-width: 1px;
|
|
70
|
+
}
|
|
71
|
+
.gridui-u-menu--border-0 {
|
|
72
|
+
border-style: var(--tw-border-style);
|
|
73
|
+
border-width: 0px;
|
|
74
|
+
}
|
|
75
|
+
.gridui-u-menu--border-t {
|
|
76
|
+
border-top-style: var(--tw-border-style);
|
|
77
|
+
border-top-width: 1px;
|
|
78
|
+
}
|
|
79
|
+
.gridui-u-menu--border-solid {
|
|
80
|
+
--tw-border-style: solid;
|
|
81
|
+
border-style: solid;
|
|
82
|
+
}
|
|
83
|
+
.gridui-u-menu--border-border {
|
|
84
|
+
border-color: var(--gridui-border);
|
|
85
|
+
}
|
|
86
|
+
.gridui-u-menu--border-transparent {
|
|
87
|
+
border-color: transparent;
|
|
88
|
+
}
|
|
89
|
+
.gridui-u-menu--px-gridui-16 {
|
|
90
|
+
padding-inline: var(--gridui-space-16);
|
|
91
|
+
}
|
|
92
|
+
.gridui-u-menu--py-\(--gridui-menu-label-block\,var\(--gridui-space-8\)\) {
|
|
93
|
+
padding-block: var(--gridui-menu-label-block,var(--gridui-space-8));
|
|
94
|
+
}
|
|
95
|
+
.gridui-u-menu--py-\(--gridui-menu-row-block\,var\(--gridui-space-16\)\) {
|
|
96
|
+
padding-block: var(--gridui-menu-row-block,var(--gridui-space-16));
|
|
97
|
+
}
|
|
98
|
+
.gridui-u-menu--pt-0\.5 {
|
|
99
|
+
padding-top: calc(var(--spacing) * 0.5);
|
|
100
|
+
}
|
|
101
|
+
.gridui-u-menu--text-start {
|
|
102
|
+
text-align: start;
|
|
103
|
+
}
|
|
104
|
+
.gridui-u-menu--type-caption {
|
|
105
|
+
font: var(--gridui-type-caption);
|
|
106
|
+
font-family: var(--gridui-font-body);
|
|
107
|
+
letter-spacing: normal;
|
|
108
|
+
}
|
|
109
|
+
.gridui-u-menu--type-supporting {
|
|
110
|
+
font: var(--gridui-type-supporting);
|
|
111
|
+
font-family: var(--gridui-font-body);
|
|
112
|
+
letter-spacing: normal;
|
|
113
|
+
}
|
|
114
|
+
.gridui-u-menu--type-ui {
|
|
115
|
+
font: var(--gridui-type-ui);
|
|
116
|
+
font-family: var(--gridui-font-body);
|
|
117
|
+
letter-spacing: normal;
|
|
118
|
+
}
|
|
119
|
+
.gridui-u-menu--wrap-anywhere {
|
|
120
|
+
overflow-wrap: anywhere;
|
|
121
|
+
}
|
|
122
|
+
.gridui-u-menu--text-foreground {
|
|
123
|
+
color: var(--gridui-foreground);
|
|
124
|
+
}
|
|
125
|
+
.gridui-u-menu--text-muted {
|
|
126
|
+
color: var(--gridui-muted);
|
|
127
|
+
}
|
|
128
|
+
.gridui-u-menu--no-underline {
|
|
129
|
+
text-decoration-line: none;
|
|
130
|
+
}
|
|
131
|
+
.gridui-u-menu--\[--gridui-navigation-block\:var\(--gridui-space-4\)\] {
|
|
132
|
+
--gridui-navigation-block: var(--gridui-space-4);
|
|
133
|
+
}
|
|
134
|
+
.gridui-u-menu--\[--gridui-navigation-block\:var\(--gridui-space-8\)\] {
|
|
135
|
+
--gridui-navigation-block: var(--gridui-space-8);
|
|
136
|
+
}
|
|
137
|
+
.gridui-u-menu--\[--gridui-navigation-inline\:var\(--gridui-space-8\)\] {
|
|
138
|
+
--gridui-navigation-inline: var(--gridui-space-8);
|
|
139
|
+
}
|
|
140
|
+
.gridui-u-menu--\[--gridui-navigation-inline\:var\(--gridui-space-16\)\] {
|
|
141
|
+
--gridui-navigation-inline: var(--gridui-space-16);
|
|
142
|
+
}
|
|
143
|
+
.gridui-u-menu--\[--gridui-navigation-inline\:var\(--gridui-space-24\)\] {
|
|
144
|
+
--gridui-navigation-inline: var(--gridui-space-24);
|
|
145
|
+
}
|
|
146
|
+
.gridui-u-menu--\[--gridui-navigation-min\:max\(var\(--gridui-control-min-height-large\)\,var\(--gridui-target-min-size\)\)\] {
|
|
147
|
+
--gridui-navigation-min: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
|
|
148
|
+
}
|
|
149
|
+
.gridui-u-menu--\[--gridui-navigation-min\:max\(var\(--gridui-control-min-height-medium\)\,var\(--gridui-target-min-size\)\)\] {
|
|
150
|
+
--gridui-navigation-min: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
|
|
151
|
+
}
|
|
152
|
+
.gridui-u-menu--\[--gridui-navigation-min\:max\(var\(--gridui-control-min-height-small\)\,var\(--gridui-target-min-size\)\)\] {
|
|
153
|
+
--gridui-navigation-min: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
|
|
154
|
+
}
|
|
155
|
+
.gridui-u-menu--aria-\[current\=page\]\:bg-selection-background[aria-current="page"] {
|
|
156
|
+
background-color: var(--gridui-selection-background);
|
|
157
|
+
}
|
|
158
|
+
.gridui-u-menu--aria-\[current\=page\]\:text-foreground[aria-current="page"] {
|
|
159
|
+
color: var(--gridui-foreground);
|
|
160
|
+
}
|
|
161
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:is\(\[aria-current\=\'page\'\]\,\[aria-current\=\'true\'\]\)\]\:bg-selection-background > :is(a, .gridui-navigation-item):is([aria-current='page'], [aria-current='true']) {
|
|
162
|
+
background-color: var(--gridui-selection-background);
|
|
163
|
+
}
|
|
164
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:is\(\[aria-current\=\'page\'\]\,\[aria-current\=\'true\'\]\)\]\:text-foreground > :is(a, .gridui-navigation-item):is([aria-current='page'], [aria-current='true']) {
|
|
165
|
+
color: var(--gridui-foreground);
|
|
166
|
+
}
|
|
167
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:inline-flex > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
168
|
+
display: inline-flex;
|
|
169
|
+
}
|
|
170
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:min-h-\(--gridui-navigation-min\) > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
171
|
+
min-height: var(--gridui-navigation-min);
|
|
172
|
+
}
|
|
173
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:items-center > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
174
|
+
align-items: center;
|
|
175
|
+
}
|
|
176
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:justify-center > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
177
|
+
justify-content: center;
|
|
178
|
+
}
|
|
179
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:gap-gridui-8 > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
180
|
+
gap: var(--gridui-space-8);
|
|
181
|
+
}
|
|
182
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:rounded-control > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
183
|
+
border-radius: var(--gridui-control-radius);
|
|
184
|
+
}
|
|
185
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:border > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
186
|
+
border-style: var(--tw-border-style);
|
|
187
|
+
border-width: 1px;
|
|
188
|
+
}
|
|
189
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:border-solid > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
190
|
+
--tw-border-style: solid;
|
|
191
|
+
border-style: solid;
|
|
192
|
+
}
|
|
193
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:border-transparent > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
194
|
+
border-color: transparent;
|
|
195
|
+
}
|
|
196
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:bg-transparent > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
197
|
+
background-color: transparent;
|
|
198
|
+
}
|
|
199
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:px-\(--gridui-navigation-inline\) > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
200
|
+
padding-inline: var(--gridui-navigation-inline);
|
|
201
|
+
}
|
|
202
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:py-\(--gridui-navigation-block\) > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
203
|
+
padding-block: var(--gridui-navigation-block);
|
|
204
|
+
}
|
|
205
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:type-ui > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
206
|
+
font: var(--gridui-type-ui);
|
|
207
|
+
font-family: var(--gridui-font-body);
|
|
208
|
+
letter-spacing: normal;
|
|
209
|
+
}
|
|
210
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:whitespace-nowrap > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
}
|
|
213
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:text-foreground > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
214
|
+
color: var(--gridui-foreground);
|
|
215
|
+
}
|
|
216
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:no-underline > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
217
|
+
text-decoration-line: none;
|
|
218
|
+
}
|
|
219
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:\[transition-property\:var\(--gridui-motion-transition\,color\,background-color\,border-color\,text-decoration-color\,fill\,stroke\)\] > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
220
|
+
transition-property: var(--gridui-motion-transition,color,background-color,border-color,text-decoration-color,fill,stroke);
|
|
221
|
+
}
|
|
222
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:duration-\[calc\(var\(--gridui-motion-duration-quick\)\*var\(--gridui-motion-factor\,1\)\)\] > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
223
|
+
--tw-duration: calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1));
|
|
224
|
+
transition-duration: calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1));
|
|
225
|
+
}
|
|
226
|
+
.gridui-u-menu--\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:ease-\(--gridui-motion-ease-out\) > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
227
|
+
--tw-ease: var(--gridui-motion-ease-out);
|
|
228
|
+
transition-timing-function: var(--gridui-motion-ease-out);
|
|
229
|
+
}
|
|
230
|
+
@media (prefers-reduced-motion: reduce) {
|
|
231
|
+
.gridui-u-menu--motion-reduce\:\[\&_\>_\:is\(a\,\.gridui-navigation-item\)\:not\(\[data-size-explicit\]\)\]\:transition-none > :is(a, .gridui-navigation-item):not([data-size-explicit]) {
|
|
232
|
+
transition-property: none;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
.gridui-u-menu--\[\&_svg\]\:h-gridui-16 svg {
|
|
236
|
+
height: var(--gridui-space-16);
|
|
237
|
+
}
|
|
238
|
+
.gridui-u-menu--\[\&_svg\]\:w-gridui-16 svg {
|
|
239
|
+
width: var(--gridui-space-16);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
@layer components {
|
|
243
|
+
.gridui-menu-grid {
|
|
244
|
+
grid-template-columns: repeat(var(--gridui-menu-columns), minmax(0, 1fr));
|
|
245
|
+
}
|
|
246
|
+
@media (min-width: 40rem) {
|
|
247
|
+
.gridui-menu-grid {
|
|
248
|
+
grid-template-columns: repeat(var(--gridui-menu-columns-sm), minmax(0, 1fr));
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
@media (min-width: 48rem) {
|
|
252
|
+
.gridui-menu-grid {
|
|
253
|
+
grid-template-columns: repeat(var(--gridui-menu-columns-md), minmax(0, 1fr));
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
@media (min-width: 64rem) {
|
|
257
|
+
.gridui-menu-grid {
|
|
258
|
+
grid-template-columns: repeat(var(--gridui-menu-columns-lg), minmax(0, 1fr));
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
.gridui-menu-group {
|
|
262
|
+
--gridui-menu-row-block: var(--gridui-space-16);
|
|
263
|
+
--gridui-menu-label-block: var(--gridui-space-8);
|
|
264
|
+
}
|
|
265
|
+
:is(.gridui-menu-group, .gridui-menu-link)[data-density="compact"] {
|
|
266
|
+
--gridui-menu-row-block: var(--gridui-space-8);
|
|
267
|
+
--gridui-menu-label-block: var(--gridui-space-4);
|
|
268
|
+
}
|
|
269
|
+
:is(.gridui-menu-group, .gridui-menu-link)[data-density="comfortable"] {
|
|
270
|
+
--gridui-menu-row-block: var(--gridui-space-16);
|
|
271
|
+
--gridui-menu-label-block: var(--gridui-space-8);
|
|
272
|
+
}
|
|
273
|
+
.gridui-navigation-links {
|
|
274
|
+
--gridui-navigation-min: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
|
|
275
|
+
--gridui-navigation-inline: var(--gridui-space-16);
|
|
276
|
+
--gridui-navigation-block: var(--gridui-space-8);
|
|
277
|
+
}
|
|
278
|
+
.gridui-navigation-links[data-size="small"] {
|
|
279
|
+
--gridui-navigation-min: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
|
|
280
|
+
--gridui-navigation-inline: var(--gridui-space-8);
|
|
281
|
+
--gridui-navigation-block: var(--gridui-space-4);
|
|
282
|
+
}
|
|
283
|
+
.gridui-navigation-links[data-size="large"] {
|
|
284
|
+
--gridui-navigation-min: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
|
|
285
|
+
--gridui-navigation-inline: var(--gridui-space-24);
|
|
286
|
+
}
|
|
287
|
+
.gridui-navigation-links > .gridui-navigation-item:not([data-size-explicit]) {
|
|
288
|
+
min-inline-size: var(--gridui-navigation-min);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
@property --tw-border-style {
|
|
292
|
+
syntax: "*";
|
|
293
|
+
inherits: false;
|
|
294
|
+
initial-value: solid;
|
|
295
|
+
}
|
|
296
|
+
@property --tw-duration {
|
|
297
|
+
syntax: "*";
|
|
298
|
+
inherits: false;
|
|
299
|
+
}
|
|
300
|
+
@property --tw-ease {
|
|
301
|
+
syntax: "*";
|
|
302
|
+
inherits: false;
|
|
303
|
+
}
|
|
304
|
+
@layer properties {
|
|
305
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
306
|
+
*, ::before, ::after, ::backdrop {
|
|
307
|
+
--tw-border-style: solid;
|
|
308
|
+
--tw-duration: initial;
|
|
309
|
+
--tw-ease: initial;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/menu",
|
|
4
|
-
"version": "
|
|
5
|
-
"category": "
|
|
4
|
+
"version": "5.0.0",
|
|
5
|
+
"category": "navigation",
|
|
6
6
|
"description": "GridUI React menu",
|
|
7
7
|
"usage": "Menu groups and grids have no gaps between entries. Each link or action fills its allocated region; labels and entries own their content padding. Separators meet the containing edges without surrounding margins. For a navigation popup, use `PopoverPanel className=\"p-0\"`; keep text spacing inside the rows. Content panels containing prose or independent controls retain their own padding.",
|
|
8
8
|
"documentation": [
|
|
@@ -186,11 +186,13 @@
|
|
|
186
186
|
"@gridui/button/styles.css",
|
|
187
187
|
"@gridui/menu/styles.css"
|
|
188
188
|
],
|
|
189
|
+
"styledImport": "@gridui/menu/styled",
|
|
189
190
|
"examples": [
|
|
190
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
191
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
192
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
193
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
194
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
191
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/getting-started.mdx",
|
|
192
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/navigation-content.mdx",
|
|
193
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/overlays.mdx",
|
|
194
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/rich-navigation.mdx",
|
|
195
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/menu.stories.tsx",
|
|
196
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-navigation/menu/stories/navigation-links.stories.tsx"
|
|
195
197
|
]
|
|
196
198
|
}
|
|
@@ -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,15 +55,15 @@ 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
|
-
###
|
|
58
|
+
### iconMotion
|
|
59
59
|
|
|
60
|
-
``"
|
|
60
|
+
``"none" | "outward" | null | undefined`` · Optional
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
### size
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
``ActionSize | undefined`` · Optional
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
Component size preset.
|
|
67
67
|
|
|
68
68
|
### variant
|
|
69
69
|
|
|
@@ -87,7 +87,7 @@ Layout within the containing region.
|
|
|
87
87
|
|
|
88
88
|
### startIconSize
|
|
89
89
|
|
|
90
|
-
``"
|
|
90
|
+
``"medium" | "large" | "extra-large" | undefined`` · Optional
|
|
91
91
|
|
|
92
92
|
### endIcon
|
|
93
93
|
|
|
@@ -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
|
# MenuGrid
|
|
3
3
|
|
|
4
|
-
Compose MenuGrid with
|
|
4
|
+
Compose MenuGrid 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
|
|
|
@@ -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
|
+
|