@gridui/menu 0.0.0-stage → 1.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 +33 -2
- package/dist/index.d.ts +36 -0
- package/dist/index.js +384 -0
- package/dist/index.js.map +7 -0
- package/dist/menu-action/menu-action.d.ts +10 -0
- package/dist/menu-action/style.d.ts +7 -0
- package/dist/menu-footer/menu-footer.d.ts +9 -0
- package/dist/menu-footer/style.d.ts +7 -0
- package/dist/menu-grid/menu-grid.d.ts +12 -0
- package/dist/menu-grid/style.d.ts +7 -0
- package/dist/menu-group/menu-group.d.ts +9 -0
- package/dist/menu-group/style.d.ts +7 -0
- package/dist/menu-heading/menu-heading.d.ts +9 -0
- package/dist/menu-heading/style.d.ts +7 -0
- package/dist/menu-item-content/menu-item-content.d.ts +9 -0
- package/dist/menu-item-content/style.d.ts +7 -0
- package/dist/menu-item-description/menu-item-description.d.ts +9 -0
- package/dist/menu-item-description/style.d.ts +7 -0
- package/dist/menu-item-icon/menu-item-icon.d.ts +9 -0
- package/dist/menu-item-icon/style.d.ts +7 -0
- package/dist/menu-item-label/menu-item-label.d.ts +9 -0
- package/dist/menu-item-label/style.d.ts +7 -0
- package/dist/menu-item-trailing/menu-item-trailing.d.ts +9 -0
- package/dist/menu-item-trailing/style.d.ts +7 -0
- package/dist/menu-label/menu-label.d.ts +9 -0
- package/dist/menu-label/style.d.ts +7 -0
- package/dist/menu-link/menu-link.d.ts +11 -0
- package/dist/menu-link/style.d.ts +7 -0
- package/dist/menu-note/menu-note.d.ts +9 -0
- package/dist/menu-note/style.d.ts +7 -0
- package/dist/menu-separator/menu-separator.d.ts +9 -0
- package/dist/menu-separator/style.d.ts +7 -0
- package/dist/navigation-links/navigation-links.d.ts +9 -0
- package/dist/navigation-links/style.d.ts +7 -0
- package/dist/styles.css +332 -0
- package/package.json +50 -3
package/README.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @gridui/menu
|
|
2
|
+
|
|
3
|
+
Core family. Public API: `MenuAction`, `MenuActionProps`, `MenuFooter`, `MenuFooterProps`, `MenuGrid`, `MenuGridProps`, `MenuGroup`, `MenuGroupProps`, `MenuHeading`, `MenuHeadingProps`, `MenuItemContent`, `MenuItemContentProps`, `MenuItemDescription`, `MenuItemDescriptionProps`, `MenuItemIcon`, `MenuItemIconProps`, `MenuItemLabel`, `MenuItemLabelProps`, `MenuItemTrailing`, `MenuItemTrailingProps`, `MenuLabel`, `MenuLabelProps`, `MenuLink`, `MenuLinkProps`, `MenuNote`, `MenuNoteProps`, `MenuSeparator`, `MenuSeparatorProps`, `NavigationLinks`, `NavigationLinksProps`.
|
|
4
|
+
|
|
5
|
+
Import components from `@gridui/menu` and load `@gridui/menu/styles.css` after Theme.
|
|
6
|
+
Load styles for any composed dependency used by this family. Applications own routes, labels, state persistence, and branding.
|
|
7
|
+
|
|
8
|
+
See [component ownership](../../docs/component-ownership.md) and [release history](.changeset/history/).
|
|
9
|
+
|
|
10
|
+
## Navigation content
|
|
11
|
+
|
|
12
|
+
Import ActionNavigation, BrandLink, NavigationLinks, and the Menu content parts from
|
|
13
|
+
`@gridui/menu`. ActionNavigation preserves a native navigation landmark for
|
|
14
|
+
wrapping action links. BrandLink is a native anchor with `compact`, `standard`,
|
|
15
|
+
and `large` sizes. It stays on one unbroken line and does not shrink inside a
|
|
16
|
+
flex row, including outside SiteHeader; applications supply the identity and destination.
|
|
17
|
+
NavigationLinks keeps a native `nav` for links and Controls Popover triggers.
|
|
18
|
+
MenuHeading and MenuNote arrange a heading row and supporting text without a
|
|
19
|
+
responsive-navigation provider. Menu parts provide groups, labels, grids, links,
|
|
20
|
+
actions, item icons/content, descriptions, trailing marks, separators, and footer rows. They present content
|
|
21
|
+
inside a caller-selected surface and do not own routing or responsive overlays.
|
|
22
|
+
Layout's SiteNavigation and ResponsiveNavigation coordinate those parts with
|
|
23
|
+
Controls Popover and Drawer.
|
|
24
|
+
|
|
25
|
+
`MenuGrid.columns` accepts `1`, `2`, or `3`, or `{ base, md?, lg? }` using 40rem
|
|
26
|
+
and 64rem breakpoints. Omitted breakpoints inherit the preceding value. The
|
|
27
|
+
default is one column below 40rem and three from 40rem onward. Use
|
|
28
|
+
`<MenuGrid columns={1}>` in mobile drawer content so it stays single-column at
|
|
29
|
+
every viewport size; Layout does not override Controls descendants. Native
|
|
30
|
+
attributes, refs, `className`, and `style` remain available.
|
|
31
|
+
|
|
32
|
+
See [Breadcrumb and Pagination](../../docs/usage/navigation.md), [collection items](../collection/docs/collection.md),
|
|
33
|
+
and [FollowScroll](../follow-scroll/docs/follow-scroll.md) for their standalone contracts.
|
|
2
34
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace Root
|
|
5
|
+
* @description Index
|
|
6
|
+
*/
|
|
7
|
+
export type { MenuActionProps } from "./menu-action/menu-action";
|
|
8
|
+
export { MenuAction } from "./menu-action/menu-action";
|
|
9
|
+
export type { MenuFooterProps } from "./menu-footer/menu-footer";
|
|
10
|
+
export { MenuFooter } from "./menu-footer/menu-footer";
|
|
11
|
+
export type { MenuGridProps } from "./menu-grid/menu-grid";
|
|
12
|
+
export { MenuGrid } from "./menu-grid/menu-grid";
|
|
13
|
+
export type { MenuGroupProps } from "./menu-group/menu-group";
|
|
14
|
+
export { MenuGroup } from "./menu-group/menu-group";
|
|
15
|
+
export type { MenuHeadingProps } from "./menu-heading/menu-heading";
|
|
16
|
+
export { MenuHeading } from "./menu-heading/menu-heading";
|
|
17
|
+
export type { MenuItemContentProps } from "./menu-item-content/menu-item-content";
|
|
18
|
+
export { MenuItemContent } from "./menu-item-content/menu-item-content";
|
|
19
|
+
export type { MenuItemDescriptionProps } from "./menu-item-description/menu-item-description";
|
|
20
|
+
export { MenuItemDescription } from "./menu-item-description/menu-item-description";
|
|
21
|
+
export type { MenuItemIconProps } from "./menu-item-icon/menu-item-icon";
|
|
22
|
+
export { MenuItemIcon } from "./menu-item-icon/menu-item-icon";
|
|
23
|
+
export type { MenuItemLabelProps } from "./menu-item-label/menu-item-label";
|
|
24
|
+
export { MenuItemLabel } from "./menu-item-label/menu-item-label";
|
|
25
|
+
export type { MenuItemTrailingProps } from "./menu-item-trailing/menu-item-trailing";
|
|
26
|
+
export { MenuItemTrailing } from "./menu-item-trailing/menu-item-trailing";
|
|
27
|
+
export type { MenuLabelProps } from "./menu-label/menu-label";
|
|
28
|
+
export { MenuLabel } from "./menu-label/menu-label";
|
|
29
|
+
export type { MenuLinkProps } from "./menu-link/menu-link";
|
|
30
|
+
export { MenuLink } from "./menu-link/menu-link";
|
|
31
|
+
export type { MenuNoteProps } from "./menu-note/menu-note";
|
|
32
|
+
export { MenuNote } from "./menu-note/menu-note";
|
|
33
|
+
export type { MenuSeparatorProps } from "./menu-separator/menu-separator";
|
|
34
|
+
export { MenuSeparator } from "./menu-separator/menu-separator";
|
|
35
|
+
export type { NavigationLinksProps } from "./navigation-links/navigation-links";
|
|
36
|
+
export { NavigationLinks } from "./navigation-links/navigation-links";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
// src/menu-action/style.ts
|
|
2
|
+
import { cn } from "@gridui/style-utils";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
var menuActionStyles = cva(cn(
|
|
5
|
+
"gridui-menu-action",
|
|
6
|
+
"w-full justify-start text-start"
|
|
7
|
+
));
|
|
8
|
+
|
|
9
|
+
// src/menu-action/menu-action.tsx
|
|
10
|
+
import { Button } from "@gridui/button";
|
|
11
|
+
import { cn as cn2 } from "@gridui/style-utils";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var MenuAction = (props) => {
|
|
14
|
+
const { className, ...restProps } = props;
|
|
15
|
+
const buttonProps = restProps.variant === void 0 ? {
|
|
16
|
+
...restProps,
|
|
17
|
+
variant: "quiet"
|
|
18
|
+
} : restProps;
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
Button,
|
|
21
|
+
{
|
|
22
|
+
...buttonProps,
|
|
23
|
+
className: cn2(menuActionStyles(), className)
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/menu-footer/style.ts
|
|
29
|
+
import { cn as cn3 } from "@gridui/style-utils";
|
|
30
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
31
|
+
var menuFooterStyles = cva2(cn3(
|
|
32
|
+
"gridui-menu-footer",
|
|
33
|
+
"flex flex-wrap items-center justify-between gap-gridui-8"
|
|
34
|
+
));
|
|
35
|
+
|
|
36
|
+
// src/menu-footer/menu-footer.tsx
|
|
37
|
+
import { cn as cn4 } from "@gridui/style-utils";
|
|
38
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
39
|
+
var MenuFooter = (props) => {
|
|
40
|
+
const { className, ...restProps } = props;
|
|
41
|
+
return /* @__PURE__ */ jsx2(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
...restProps,
|
|
45
|
+
className: cn4(menuFooterStyles(), className)
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// src/menu-grid/style.ts
|
|
51
|
+
import { cn as cn5 } from "@gridui/style-utils";
|
|
52
|
+
import { cva as cva3 } from "class-variance-authority";
|
|
53
|
+
var menuGridStyles = cva3(cn5(
|
|
54
|
+
"gridui-menu-grid",
|
|
55
|
+
"grid gap-gridui-8"
|
|
56
|
+
));
|
|
57
|
+
|
|
58
|
+
// src/menu-grid/menu-grid.tsx
|
|
59
|
+
import { cn as cn6 } from "@gridui/style-utils";
|
|
60
|
+
import { resolveResponsive } from "@gridui/style-utils/responsive";
|
|
61
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
62
|
+
var MenuGrid = (props) => {
|
|
63
|
+
const {
|
|
64
|
+
columns = {
|
|
65
|
+
base: 1,
|
|
66
|
+
md: 3
|
|
67
|
+
},
|
|
68
|
+
className,
|
|
69
|
+
style,
|
|
70
|
+
...restProps
|
|
71
|
+
} = props;
|
|
72
|
+
const count = resolveResponsive(columns);
|
|
73
|
+
const gridStyle = {
|
|
74
|
+
"--gridui-menu-columns": count.base,
|
|
75
|
+
"--gridui-menu-columns-md": count.md,
|
|
76
|
+
"--gridui-menu-columns-lg": count.lg,
|
|
77
|
+
...style
|
|
78
|
+
};
|
|
79
|
+
return /* @__PURE__ */ jsx3(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
...restProps,
|
|
83
|
+
className: cn6(menuGridStyles(), className),
|
|
84
|
+
style: gridStyle
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
// src/menu-group/style.ts
|
|
90
|
+
import { cn as cn7 } from "@gridui/style-utils";
|
|
91
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
92
|
+
var menuGroupStyles = cva4(cn7(
|
|
93
|
+
"gridui-menu-group",
|
|
94
|
+
"grid gap-gridui-16 min-w-0"
|
|
95
|
+
));
|
|
96
|
+
|
|
97
|
+
// src/menu-group/menu-group.tsx
|
|
98
|
+
import { cn as cn8 } from "@gridui/style-utils";
|
|
99
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
100
|
+
var MenuGroup = (props) => {
|
|
101
|
+
const { className, ...restProps } = props;
|
|
102
|
+
return /* @__PURE__ */ jsx4(
|
|
103
|
+
"section",
|
|
104
|
+
{
|
|
105
|
+
...restProps,
|
|
106
|
+
className: cn8(menuGroupStyles(), className)
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// src/menu-heading/style.ts
|
|
112
|
+
import { cn as cn9 } from "@gridui/style-utils";
|
|
113
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
114
|
+
var menuHeadingStyles = cva5(cn9(
|
|
115
|
+
"gridui-menu-heading",
|
|
116
|
+
"flex items-center justify-between gap-gridui-16"
|
|
117
|
+
));
|
|
118
|
+
|
|
119
|
+
// src/menu-heading/menu-heading.tsx
|
|
120
|
+
import { cn as cn10 } from "@gridui/style-utils";
|
|
121
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
122
|
+
var MenuHeading = (props) => {
|
|
123
|
+
const { className, ...restProps } = props;
|
|
124
|
+
return /* @__PURE__ */ jsx5(
|
|
125
|
+
"div",
|
|
126
|
+
{
|
|
127
|
+
...restProps,
|
|
128
|
+
className: cn10(menuHeadingStyles(), className)
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
// src/menu-item-content/style.ts
|
|
134
|
+
import { cn as cn11 } from "@gridui/style-utils";
|
|
135
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
136
|
+
var menuItemContentStyles = cva6(cn11(
|
|
137
|
+
"gridui-menu-item-content",
|
|
138
|
+
"grid min-w-0 flex-1 gap-gridui-4"
|
|
139
|
+
));
|
|
140
|
+
|
|
141
|
+
// src/menu-item-content/menu-item-content.tsx
|
|
142
|
+
import { cn as cn12 } from "@gridui/style-utils";
|
|
143
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
144
|
+
var MenuItemContent = (props) => {
|
|
145
|
+
const { className, ...restProps } = props;
|
|
146
|
+
return /* @__PURE__ */ jsx6(
|
|
147
|
+
"span",
|
|
148
|
+
{
|
|
149
|
+
...restProps,
|
|
150
|
+
className: cn12(menuItemContentStyles(), className)
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// src/menu-item-description/style.ts
|
|
156
|
+
import { cn as cn13 } from "@gridui/style-utils";
|
|
157
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
158
|
+
var menuItemDescriptionStyles = cva7(cn13(
|
|
159
|
+
"gridui-menu-item-description",
|
|
160
|
+
"text-muted type-supporting"
|
|
161
|
+
));
|
|
162
|
+
|
|
163
|
+
// src/menu-item-description/menu-item-description.tsx
|
|
164
|
+
import { cn as cn14 } from "@gridui/style-utils";
|
|
165
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
166
|
+
var MenuItemDescription = (props) => {
|
|
167
|
+
const { className, ...restProps } = props;
|
|
168
|
+
return /* @__PURE__ */ jsx7(
|
|
169
|
+
"span",
|
|
170
|
+
{
|
|
171
|
+
...restProps,
|
|
172
|
+
className: cn14(menuItemDescriptionStyles(), className)
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
// src/menu-item-icon/style.ts
|
|
178
|
+
import { cn as cn15 } from "@gridui/style-utils";
|
|
179
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
180
|
+
var menuIconStyles = cva8(cn15(
|
|
181
|
+
"gridui-menu-icon",
|
|
182
|
+
"inline-flex shrink-0 pt-0.5 text-foreground",
|
|
183
|
+
"[&_svg]:w-gridui-16 [&_svg]:h-gridui-16"
|
|
184
|
+
));
|
|
185
|
+
|
|
186
|
+
// src/menu-item-icon/menu-item-icon.tsx
|
|
187
|
+
import { cn as cn16 } from "@gridui/style-utils";
|
|
188
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
189
|
+
var MenuItemIcon = (props) => {
|
|
190
|
+
const { className, ...restProps } = props;
|
|
191
|
+
return /* @__PURE__ */ jsx8(
|
|
192
|
+
"span",
|
|
193
|
+
{
|
|
194
|
+
...restProps,
|
|
195
|
+
"aria-hidden": "true",
|
|
196
|
+
className: cn16(menuIconStyles(), className)
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// src/menu-item-label/style.ts
|
|
202
|
+
import { cn as cn17 } from "@gridui/style-utils";
|
|
203
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
204
|
+
var menuItemLabelStyles = cva9(cn17(
|
|
205
|
+
"gridui-menu-item-label",
|
|
206
|
+
"type-ui"
|
|
207
|
+
));
|
|
208
|
+
|
|
209
|
+
// src/menu-item-label/menu-item-label.tsx
|
|
210
|
+
import { cn as cn18 } from "@gridui/style-utils";
|
|
211
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
212
|
+
var MenuItemLabel = (props) => {
|
|
213
|
+
const { className, ...restProps } = props;
|
|
214
|
+
return /* @__PURE__ */ jsx9(
|
|
215
|
+
"span",
|
|
216
|
+
{
|
|
217
|
+
...restProps,
|
|
218
|
+
className: cn18(menuItemLabelStyles(), className)
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// src/menu-item-trailing/style.ts
|
|
224
|
+
import { cn as cn19 } from "@gridui/style-utils";
|
|
225
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
226
|
+
var menuTrailingStyles = cva10(cn19(
|
|
227
|
+
"gridui-menu-trailing",
|
|
228
|
+
"inline-flex shrink-0 pt-0.5 text-foreground",
|
|
229
|
+
"[&_svg]:w-gridui-16 [&_svg]:h-gridui-16"
|
|
230
|
+
));
|
|
231
|
+
|
|
232
|
+
// src/menu-item-trailing/menu-item-trailing.tsx
|
|
233
|
+
import { cn as cn20 } from "@gridui/style-utils";
|
|
234
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
235
|
+
var MenuItemTrailing = (props) => {
|
|
236
|
+
const { className, ...restProps } = props;
|
|
237
|
+
return /* @__PURE__ */ jsx10(
|
|
238
|
+
"span",
|
|
239
|
+
{
|
|
240
|
+
...restProps,
|
|
241
|
+
"aria-hidden": "true",
|
|
242
|
+
className: cn20(menuTrailingStyles(), className)
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
// src/menu-label/style.ts
|
|
248
|
+
import { cn as cn21 } from "@gridui/style-utils";
|
|
249
|
+
import { cva as cva11 } from "class-variance-authority";
|
|
250
|
+
var menuLabelStyles = cva11(cn21(
|
|
251
|
+
"gridui-menu-label",
|
|
252
|
+
"m-0 text-muted type-caption"
|
|
253
|
+
));
|
|
254
|
+
|
|
255
|
+
// src/menu-label/menu-label.tsx
|
|
256
|
+
import { cn as cn22 } from "@gridui/style-utils";
|
|
257
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
258
|
+
var MenuLabel = (props) => {
|
|
259
|
+
const { className, ...restProps } = props;
|
|
260
|
+
return /* @__PURE__ */ jsx11(
|
|
261
|
+
"h3",
|
|
262
|
+
{
|
|
263
|
+
...restProps,
|
|
264
|
+
className: cn22(menuLabelStyles(), className)
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
// src/menu-link/style.ts
|
|
270
|
+
import { cn as cn23 } from "@gridui/style-utils";
|
|
271
|
+
import { cva as cva12 } from "class-variance-authority";
|
|
272
|
+
var menuLinkStyles = cva12(cn23(
|
|
273
|
+
"gridui-menu-link",
|
|
274
|
+
"flex min-w-0 items-start gap-gridui-8 p-gridui-16 border border-solid border-transparent rounded-control text-foreground text-start no-underline wrap-anywhere",
|
|
275
|
+
"[&:hover]:bg-surface",
|
|
276
|
+
"aria-[current=page]:text-brand-art"
|
|
277
|
+
));
|
|
278
|
+
|
|
279
|
+
// src/menu-link/menu-link.tsx
|
|
280
|
+
import { cn as cn24 } from "@gridui/style-utils";
|
|
281
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
282
|
+
var MenuLink = (props) => {
|
|
283
|
+
const { className, ...restProps } = props;
|
|
284
|
+
return /* @__PURE__ */ jsx12(
|
|
285
|
+
"a",
|
|
286
|
+
{
|
|
287
|
+
...restProps,
|
|
288
|
+
className: cn24(menuLinkStyles(), className)
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
// src/menu-note/style.ts
|
|
294
|
+
import { cn as cn25 } from "@gridui/style-utils";
|
|
295
|
+
import { cva as cva13 } from "class-variance-authority";
|
|
296
|
+
var menuNoteStyles = cva13(cn25(
|
|
297
|
+
"gridui-menu-note",
|
|
298
|
+
"inline-flex items-center gap-gridui-8 m-0 text-muted type-caption",
|
|
299
|
+
"[&_svg]:w-gridui-16 [&_svg]:h-gridui-16"
|
|
300
|
+
));
|
|
301
|
+
|
|
302
|
+
// src/menu-note/menu-note.tsx
|
|
303
|
+
import { cn as cn26 } from "@gridui/style-utils";
|
|
304
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
305
|
+
var MenuNote = (props) => {
|
|
306
|
+
const { className, ...restProps } = props;
|
|
307
|
+
return /* @__PURE__ */ jsx13(
|
|
308
|
+
"span",
|
|
309
|
+
{
|
|
310
|
+
...restProps,
|
|
311
|
+
className: cn26(menuNoteStyles(), className)
|
|
312
|
+
}
|
|
313
|
+
);
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
// src/menu-separator/style.ts
|
|
317
|
+
import { cn as cn27 } from "@gridui/style-utils";
|
|
318
|
+
import { cva as cva14 } from "class-variance-authority";
|
|
319
|
+
var menuSeparatorStyles = cva14(cn27(
|
|
320
|
+
"gridui-menu-separator",
|
|
321
|
+
"my-gridui-24 mx-0 border-0 border-t border-solid border-border"
|
|
322
|
+
));
|
|
323
|
+
|
|
324
|
+
// src/menu-separator/menu-separator.tsx
|
|
325
|
+
import { cn as cn28 } from "@gridui/style-utils";
|
|
326
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
327
|
+
var MenuSeparator = (props) => {
|
|
328
|
+
const { className, ...restProps } = props;
|
|
329
|
+
return /* @__PURE__ */ jsx14(
|
|
330
|
+
"hr",
|
|
331
|
+
{
|
|
332
|
+
...restProps,
|
|
333
|
+
className: cn28(menuSeparatorStyles(), className)
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
// src/navigation-links/style.ts
|
|
339
|
+
import { cn as cn29 } from "@gridui/style-utils";
|
|
340
|
+
import { cva as cva15 } from "class-variance-authority";
|
|
341
|
+
var navigationLinksStyles = cva15(cn29(
|
|
342
|
+
"gridui-navigation-links",
|
|
343
|
+
"flex flex-nowrap items-center gap-gridui-4 type-ui",
|
|
344
|
+
"[&_>_a]:inline-flex [&_>_a]:min-h-9 [&_>_a]:items-center [&_>_a]:justify-center [&_>_a]:gap-gridui-8 [&_>_a]:py-gridui-4 [&_>_a]:px-gridui-8 [&_>_a]:border [&_>_a]:border-solid [&_>_a]:border-transparent [&_>_a]:rounded-control [&_>_a]:text-foreground [&_>_a]:bg-transparent [&_>_a]:type-ui [&_>_a]:no-underline [&_>_a]:whitespace-nowrap [&_>_a]:transition-colors [&_>_a]:duration-(--gridui-motion-duration-quick) [&_>_a]:ease-(--gridui-motion-ease-out)",
|
|
345
|
+
"[&_>_.gridui-menu-trigger]:inline-flex [&_>_.gridui-menu-trigger]:min-h-9 [&_>_.gridui-menu-trigger]:items-center [&_>_.gridui-menu-trigger]:justify-center [&_>_.gridui-menu-trigger]:gap-gridui-8 [&_>_.gridui-menu-trigger]:py-gridui-4 [&_>_.gridui-menu-trigger]:px-gridui-8 [&_>_.gridui-menu-trigger]:border [&_>_.gridui-menu-trigger]:border-solid [&_>_.gridui-menu-trigger]:border-transparent [&_>_.gridui-menu-trigger]:rounded-control [&_>_.gridui-menu-trigger]:text-foreground [&_>_.gridui-menu-trigger]:bg-transparent [&_>_.gridui-menu-trigger]:type-ui [&_>_.gridui-menu-trigger]:no-underline [&_>_.gridui-menu-trigger]:whitespace-nowrap [&_>_.gridui-menu-trigger]:transition-colors [&_>_.gridui-menu-trigger]:duration-(--gridui-motion-duration-quick) [&_>_.gridui-menu-trigger]:ease-(--gridui-motion-ease-out)",
|
|
346
|
+
"[&_>_a[aria-current='page']]:text-brand-art",
|
|
347
|
+
"[&_>_.gridui-menu-trigger[aria-current='true']]:text-brand-art",
|
|
348
|
+
"[&_>_a:hover]:bg-surface [&_>_a:hover]:border-transparent",
|
|
349
|
+
"[&_>_.gridui-menu-trigger:hover:not(:disabled)]:bg-surface [&_>_.gridui-menu-trigger:hover:not(:disabled)]:border-transparent",
|
|
350
|
+
"motion-reduce:[&_>_a]:transition-none",
|
|
351
|
+
"motion-reduce:[&_>_.gridui-menu-trigger]:transition-none"
|
|
352
|
+
));
|
|
353
|
+
|
|
354
|
+
// src/navigation-links/navigation-links.tsx
|
|
355
|
+
import { cn as cn30 } from "@gridui/style-utils";
|
|
356
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
357
|
+
var NavigationLinks = (props) => {
|
|
358
|
+
const { className, ...restProps } = props;
|
|
359
|
+
return /* @__PURE__ */ jsx15(
|
|
360
|
+
"nav",
|
|
361
|
+
{
|
|
362
|
+
...restProps,
|
|
363
|
+
className: cn30(navigationLinksStyles(), className)
|
|
364
|
+
}
|
|
365
|
+
);
|
|
366
|
+
};
|
|
367
|
+
export {
|
|
368
|
+
MenuAction,
|
|
369
|
+
MenuFooter,
|
|
370
|
+
MenuGrid,
|
|
371
|
+
MenuGroup,
|
|
372
|
+
MenuHeading,
|
|
373
|
+
MenuItemContent,
|
|
374
|
+
MenuItemDescription,
|
|
375
|
+
MenuItemIcon,
|
|
376
|
+
MenuItemLabel,
|
|
377
|
+
MenuItemTrailing,
|
|
378
|
+
MenuLabel,
|
|
379
|
+
MenuLink,
|
|
380
|
+
MenuNote,
|
|
381
|
+
MenuSeparator,
|
|
382
|
+
NavigationLinks
|
|
383
|
+
};
|
|
384
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/menu-action/style.ts", "../src/menu-action/menu-action.tsx", "../src/menu-footer/style.ts", "../src/menu-footer/menu-footer.tsx", "../src/menu-grid/style.ts", "../src/menu-grid/menu-grid.tsx", "../src/menu-group/style.ts", "../src/menu-group/menu-group.tsx", "../src/menu-heading/style.ts", "../src/menu-heading/menu-heading.tsx", "../src/menu-item-content/style.ts", "../src/menu-item-content/menu-item-content.tsx", "../src/menu-item-description/style.ts", "../src/menu-item-description/menu-item-description.tsx", "../src/menu-item-icon/style.ts", "../src/menu-item-icon/menu-item-icon.tsx", "../src/menu-item-label/style.ts", "../src/menu-item-label/menu-item-label.tsx", "../src/menu-item-trailing/style.ts", "../src/menu-item-trailing/menu-item-trailing.tsx", "../src/menu-label/style.ts", "../src/menu-label/menu-label.tsx", "../src/menu-link/style.ts", "../src/menu-link/menu-link.tsx", "../src/menu-note/style.ts", "../src/menu-note/menu-note.tsx", "../src/menu-separator/style.ts", "../src/menu-separator/menu-separator.tsx", "../src/navigation-links/style.ts", "../src/navigation-links/navigation-links.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuAction\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuActionStyles = cva(cn(\n \"gridui-menu-action\",\n \"w-full justify-start text-start\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuAction\n * @description Menu Action\n */\n\nimport { menuActionStyles } from \"./style\";\nimport { Button, type ButtonProps } from \"@gridui/button\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type MenuActionProps = ButtonProps;\n\nexport const MenuAction: FC<MenuActionProps> = (props: MenuActionProps) => {\n const { className, ...restProps } = props;\n const buttonProps: ButtonProps = restProps.variant === undefined ? {\n ...restProps,\n variant: \"quiet\",\n } : restProps;\n return (<Button\n {...buttonProps}\n className={cn(menuActionStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuFooter\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuFooterStyles = cva(cn(\n \"gridui-menu-footer\",\n \"flex flex-wrap items-center justify-between gap-gridui-8\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuFooter\n * @description Menu Footer\n */\n\nimport { menuFooterStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuFooterProps = ComponentPropsWithRef<\"div\">;\n\nexport const MenuFooter: FC<MenuFooterProps> = (props: MenuFooterProps) => {\n const { className, ...restProps } = props;\n return (<div\n {...restProps}\n className={cn(menuFooterStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuGrid\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuGridStyles = cva(cn(\n \"gridui-menu-grid\",\n \"grid gap-gridui-8\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuGrid\n * @description Menu Grid\n */\n\nimport { menuGridStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { resolveResponsive, type Responsive } from \"@gridui/style-utils/responsive\";\nimport type { ComponentPropsWithRef, CSSProperties, FC } from \"react\";\n\nexport type MenuGridProps = ComponentPropsWithRef<\"div\"> & {\n readonly columns?: Responsive<1 | 2 | 3>;\n};\n\nexport const MenuGrid: FC<MenuGridProps> = (props: MenuGridProps) => {\n const {\n columns = {\n base: 1,\n md: 3,\n },\n className,\n style,\n ...restProps\n } = props;\n const count = resolveResponsive(columns);\n const gridStyle: CSSProperties & Record<`--gridui-${string}`, number> = {\n \"--gridui-menu-columns\": count.base,\n \"--gridui-menu-columns-md\": count.md,\n \"--gridui-menu-columns-lg\": count.lg,\n ...style,\n };\n return (<div\n {...restProps}\n className={cn(menuGridStyles(), className)}\n style={gridStyle}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuGroup\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuGroupStyles = cva(cn(\n \"gridui-menu-group\",\n \"grid gap-gridui-16 min-w-0\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuGroup\n * @description Menu Group\n */\n\nimport { menuGroupStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuGroupProps = ComponentPropsWithRef<\"section\">;\n\nexport const MenuGroup: FC<MenuGroupProps> = (props: MenuGroupProps) => {\n const { className, ...restProps } = props;\n return (<section\n {...restProps}\n className={cn(menuGroupStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuHeading\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuHeadingStyles = cva(cn(\n \"gridui-menu-heading\",\n \"flex items-center justify-between gap-gridui-16\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuHeading\n * @description Menu Heading\n */\n\nimport { menuHeadingStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuHeadingProps = ComponentPropsWithRef<\"div\">;\n\nexport const MenuHeading: FC<MenuHeadingProps> = (props: MenuHeadingProps) => {\n const { className, ...restProps } = props;\n return (<div\n {...restProps}\n className={cn(menuHeadingStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemContent\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuItemContentStyles = cva(cn(\n \"gridui-menu-item-content\",\n \"grid min-w-0 flex-1 gap-gridui-4\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemContent\n * @description Menu Item Content\n */\n\nimport { menuItemContentStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuItemContentProps = ComponentPropsWithRef<\"span\">;\n\nexport const MenuItemContent: FC<MenuItemContentProps> = (props: MenuItemContentProps) => {\n const { className, ...restProps } = props;\n return (<span\n {...restProps}\n className={cn(menuItemContentStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemDescription\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuItemDescriptionStyles = cva(cn(\n \"gridui-menu-item-description\",\n \"text-muted type-supporting\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemDescription\n * @description Menu Item Description\n */\n\nimport { menuItemDescriptionStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuItemDescriptionProps = ComponentPropsWithRef<\"span\">;\n\nexport const MenuItemDescription: FC<MenuItemDescriptionProps> = (props: MenuItemDescriptionProps) => {\n const { className, ...restProps } = props;\n return (<span\n {...restProps}\n className={cn(menuItemDescriptionStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemIcon\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuIconStyles = cva(cn(\n \"gridui-menu-icon\",\n \"inline-flex shrink-0 pt-0.5 text-foreground\",\n \"[&_svg]:w-gridui-16 [&_svg]:h-gridui-16\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemIcon\n * @description Menu Item Icon\n */\n\nimport { menuIconStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuItemIconProps = ComponentPropsWithRef<\"span\">;\n\nexport const MenuItemIcon: FC<MenuItemIconProps> = (props: MenuItemIconProps) => {\n const { className, ...restProps } = props;\n return (<span\n {...restProps}\n aria-hidden=\"true\"\n className={cn(menuIconStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemLabel\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuItemLabelStyles = cva(cn(\n \"gridui-menu-item-label\",\n \"type-ui\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemLabel\n * @description Menu Item Label\n */\n\nimport { menuItemLabelStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuItemLabelProps = ComponentPropsWithRef<\"span\">;\n\nexport const MenuItemLabel: FC<MenuItemLabelProps> = (props: MenuItemLabelProps) => {\n const { className, ...restProps } = props;\n return (<span\n {...restProps}\n className={cn(menuItemLabelStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemTrailing\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuTrailingStyles = cva(cn(\n \"gridui-menu-trailing\",\n \"inline-flex shrink-0 pt-0.5 text-foreground\",\n \"[&_svg]:w-gridui-16 [&_svg]:h-gridui-16\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuItemTrailing\n * @description Menu Item Trailing\n */\n\nimport { menuTrailingStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuItemTrailingProps = ComponentPropsWithRef<\"span\">;\n\nexport const MenuItemTrailing: FC<MenuItemTrailingProps> = (props: MenuItemTrailingProps) => {\n const { className, ...restProps } = props;\n return (<span\n {...restProps}\n aria-hidden=\"true\"\n className={cn(menuTrailingStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuLabel\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuLabelStyles = cva(cn(\n \"gridui-menu-label\",\n \"m-0 text-muted type-caption\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuLabel\n * @description Menu Label\n */\n\nimport { menuLabelStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuLabelProps = ComponentPropsWithRef<\"h3\">;\n\nexport const MenuLabel: FC<MenuLabelProps> = (props: MenuLabelProps) => {\n const { className, ...restProps } = props;\n return (<h3\n {...restProps}\n className={cn(menuLabelStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuLink\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuLinkStyles = cva(cn(\n \"gridui-menu-link\",\n \"flex min-w-0 items-start gap-gridui-8 p-gridui-16 border border-solid border-transparent rounded-control text-foreground text-start no-underline wrap-anywhere\",\n \"[&:hover]:bg-surface\",\n \"aria-[current=page]:text-brand-art\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuLink\n * @description Menu Link\n */\n\nimport { menuLinkStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuLinkProps = ComponentPropsWithRef<\"a\"> & {\n readonly href: string;\n};\n\nexport const MenuLink: FC<MenuLinkProps> = (props: MenuLinkProps) => {\n const { className, ...restProps } = props;\n return (<a\n {...restProps}\n className={cn(menuLinkStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuNote\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuNoteStyles = cva(cn(\n \"gridui-menu-note\",\n \"inline-flex items-center gap-gridui-8 m-0 text-muted type-caption\",\n \"[&_svg]:w-gridui-16 [&_svg]:h-gridui-16\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuNote\n * @description Menu Note\n */\n\nimport { menuNoteStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuNoteProps = ComponentPropsWithRef<\"span\">;\n\nexport const MenuNote: FC<MenuNoteProps> = (props: MenuNoteProps) => {\n const { className, ...restProps } = props;\n return (<span\n {...restProps}\n className={cn(menuNoteStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuSeparator\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const menuSeparatorStyles = cva(cn(\n \"gridui-menu-separator\",\n \"my-gridui-24 mx-0 border-0 border-t border-solid border-border\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace MenuSeparator\n * @description Menu Separator\n */\n\nimport { menuSeparatorStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type MenuSeparatorProps = ComponentPropsWithRef<\"hr\">;\n\nexport const MenuSeparator: FC<MenuSeparatorProps> = (props: MenuSeparatorProps) => {\n const { className, ...restProps } = props;\n return (<hr\n {...restProps}\n className={cn(menuSeparatorStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace NavigationLinks\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const navigationLinksStyles = cva(cn(\n \"gridui-navigation-links\",\n \"flex flex-nowrap items-center gap-gridui-4 type-ui\",\n \"[&_>_a]:inline-flex [&_>_a]:min-h-9 [&_>_a]:items-center [&_>_a]:justify-center [&_>_a]:gap-gridui-8 [&_>_a]:py-gridui-4 [&_>_a]:px-gridui-8 [&_>_a]:border [&_>_a]:border-solid [&_>_a]:border-transparent [&_>_a]:rounded-control [&_>_a]:text-foreground [&_>_a]:bg-transparent [&_>_a]:type-ui [&_>_a]:no-underline [&_>_a]:whitespace-nowrap [&_>_a]:transition-colors [&_>_a]:duration-(--gridui-motion-duration-quick) [&_>_a]:ease-(--gridui-motion-ease-out)\",\n \"[&_>_.gridui-menu-trigger]:inline-flex [&_>_.gridui-menu-trigger]:min-h-9 [&_>_.gridui-menu-trigger]:items-center [&_>_.gridui-menu-trigger]:justify-center [&_>_.gridui-menu-trigger]:gap-gridui-8 [&_>_.gridui-menu-trigger]:py-gridui-4 [&_>_.gridui-menu-trigger]:px-gridui-8 [&_>_.gridui-menu-trigger]:border [&_>_.gridui-menu-trigger]:border-solid [&_>_.gridui-menu-trigger]:border-transparent [&_>_.gridui-menu-trigger]:rounded-control [&_>_.gridui-menu-trigger]:text-foreground [&_>_.gridui-menu-trigger]:bg-transparent [&_>_.gridui-menu-trigger]:type-ui [&_>_.gridui-menu-trigger]:no-underline [&_>_.gridui-menu-trigger]:whitespace-nowrap [&_>_.gridui-menu-trigger]:transition-colors [&_>_.gridui-menu-trigger]:duration-(--gridui-motion-duration-quick) [&_>_.gridui-menu-trigger]:ease-(--gridui-motion-ease-out)\",\n \"[&_>_a[aria-current='page']]:text-brand-art\",\n \"[&_>_.gridui-menu-trigger[aria-current='true']]:text-brand-art\",\n \"[&_>_a:hover]:bg-surface [&_>_a:hover]:border-transparent\",\n \"[&_>_.gridui-menu-trigger:hover:not(:disabled)]:bg-surface [&_>_.gridui-menu-trigger:hover:not(:disabled)]:border-transparent\",\n \"motion-reduce:[&_>_a]:transition-none\",\n \"motion-reduce:[&_>_.gridui-menu-trigger]:transition-none\",\n));\n", "/**\n * @author WMXPY\n * @package Menu\n * @namespace NavigationLinks\n * @description Navigation Links\n */\n\nimport { navigationLinksStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type NavigationLinksProps = ComponentPropsWithRef<\"nav\">;\n\nexport const NavigationLinks: FC<NavigationLinksProps> = (props: NavigationLinksProps) => {\n const { className, ...restProps } = props;\n return (<nav\n {...restProps}\n className={cn(navigationLinksStyles(), className)}\n />);\n};\n"],
|
|
5
|
+
"mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;A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x", "cn", "cva", "cn", "jsx", "cn", "cva", "cn", "jsx", "cn", "cva", "cn", "jsx", "cn", "cva", "cn", "jsx", "cn", "cva", "cn", "jsx", "cn", "cva", "cn", "jsx", "cn", "cva", "cn", "jsx"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuAction
|
|
5
|
+
* @description Menu Action
|
|
6
|
+
*/
|
|
7
|
+
import { type ButtonProps } from "@gridui/button";
|
|
8
|
+
import type { FC } from "react";
|
|
9
|
+
export type MenuActionProps = ButtonProps;
|
|
10
|
+
export declare const MenuAction: FC<MenuActionProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuFooter
|
|
5
|
+
* @description Menu Footer
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuFooterProps = ComponentPropsWithRef<"div">;
|
|
9
|
+
export declare const MenuFooter: FC<MenuFooterProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuGrid
|
|
5
|
+
* @description Menu Grid
|
|
6
|
+
*/
|
|
7
|
+
import { type Responsive } from "@gridui/style-utils/responsive";
|
|
8
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
9
|
+
export type MenuGridProps = ComponentPropsWithRef<"div"> & {
|
|
10
|
+
readonly columns?: Responsive<1 | 2 | 3>;
|
|
11
|
+
};
|
|
12
|
+
export declare const MenuGrid: FC<MenuGridProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuGroup
|
|
5
|
+
* @description Menu Group
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuGroupProps = ComponentPropsWithRef<"section">;
|
|
9
|
+
export declare const MenuGroup: FC<MenuGroupProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuHeading
|
|
5
|
+
* @description Menu Heading
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuHeadingProps = ComponentPropsWithRef<"div">;
|
|
9
|
+
export declare const MenuHeading: FC<MenuHeadingProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuItemContent
|
|
5
|
+
* @description Menu Item Content
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuItemContentProps = ComponentPropsWithRef<"span">;
|
|
9
|
+
export declare const MenuItemContent: FC<MenuItemContentProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuItemDescription
|
|
5
|
+
* @description Menu Item Description
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuItemDescriptionProps = ComponentPropsWithRef<"span">;
|
|
9
|
+
export declare const MenuItemDescription: FC<MenuItemDescriptionProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuItemIcon
|
|
5
|
+
* @description Menu Item Icon
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuItemIconProps = ComponentPropsWithRef<"span">;
|
|
9
|
+
export declare const MenuItemIcon: FC<MenuItemIconProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuItemLabel
|
|
5
|
+
* @description Menu Item Label
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuItemLabelProps = ComponentPropsWithRef<"span">;
|
|
9
|
+
export declare const MenuItemLabel: FC<MenuItemLabelProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuItemTrailing
|
|
5
|
+
* @description Menu Item Trailing
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuItemTrailingProps = ComponentPropsWithRef<"span">;
|
|
9
|
+
export declare const MenuItemTrailing: FC<MenuItemTrailingProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuLabel
|
|
5
|
+
* @description Menu Label
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuLabelProps = ComponentPropsWithRef<"h3">;
|
|
9
|
+
export declare const MenuLabel: FC<MenuLabelProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuLink
|
|
5
|
+
* @description Menu Link
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuLinkProps = ComponentPropsWithRef<"a"> & {
|
|
9
|
+
readonly href: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const MenuLink: FC<MenuLinkProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuNote
|
|
5
|
+
* @description Menu Note
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuNoteProps = ComponentPropsWithRef<"span">;
|
|
9
|
+
export declare const MenuNote: FC<MenuNoteProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace MenuSeparator
|
|
5
|
+
* @description Menu Separator
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type MenuSeparatorProps = ComponentPropsWithRef<"hr">;
|
|
9
|
+
export declare const MenuSeparator: FC<MenuSeparatorProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Menu
|
|
4
|
+
* @namespace NavigationLinks
|
|
5
|
+
* @description Navigation Links
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type NavigationLinksProps = ComponentPropsWithRef<"nav">;
|
|
9
|
+
export declare const NavigationLinks: FC<NavigationLinksProps>;
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | 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
|
+
--default-transition-duration: 150ms;
|
|
8
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
@layer utilities {
|
|
12
|
+
.m-0 {
|
|
13
|
+
margin: 0px;
|
|
14
|
+
}
|
|
15
|
+
.mx-0 {
|
|
16
|
+
margin-inline: 0px;
|
|
17
|
+
}
|
|
18
|
+
.my-gridui-24 {
|
|
19
|
+
margin-block: var(--gridui-space-24);
|
|
20
|
+
}
|
|
21
|
+
.flex {
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
.grid {
|
|
25
|
+
display: grid;
|
|
26
|
+
}
|
|
27
|
+
.inline-flex {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
}
|
|
30
|
+
.w-full {
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
.min-w-0 {
|
|
34
|
+
min-width: 0px;
|
|
35
|
+
}
|
|
36
|
+
.flex-1 {
|
|
37
|
+
flex: 1;
|
|
38
|
+
}
|
|
39
|
+
.shrink-0 {
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
}
|
|
42
|
+
.flex-nowrap {
|
|
43
|
+
flex-wrap: nowrap;
|
|
44
|
+
}
|
|
45
|
+
.flex-wrap {
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
}
|
|
48
|
+
.items-center {
|
|
49
|
+
align-items: center;
|
|
50
|
+
}
|
|
51
|
+
.items-start {
|
|
52
|
+
align-items: flex-start;
|
|
53
|
+
}
|
|
54
|
+
.justify-between {
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
}
|
|
57
|
+
.justify-start {
|
|
58
|
+
justify-content: flex-start;
|
|
59
|
+
}
|
|
60
|
+
.gap-gridui-4 {
|
|
61
|
+
gap: var(--gridui-space-4);
|
|
62
|
+
}
|
|
63
|
+
.gap-gridui-8 {
|
|
64
|
+
gap: var(--gridui-space-8);
|
|
65
|
+
}
|
|
66
|
+
.gap-gridui-16 {
|
|
67
|
+
gap: var(--gridui-space-16);
|
|
68
|
+
}
|
|
69
|
+
.rounded-control {
|
|
70
|
+
border-radius: var(--gridui-control-radius);
|
|
71
|
+
}
|
|
72
|
+
.border {
|
|
73
|
+
border-style: var(--tw-border-style);
|
|
74
|
+
border-width: 1px;
|
|
75
|
+
}
|
|
76
|
+
.border-0 {
|
|
77
|
+
border-style: var(--tw-border-style);
|
|
78
|
+
border-width: 0px;
|
|
79
|
+
}
|
|
80
|
+
.border-t {
|
|
81
|
+
border-top-style: var(--tw-border-style);
|
|
82
|
+
border-top-width: 1px;
|
|
83
|
+
}
|
|
84
|
+
.border-solid {
|
|
85
|
+
--tw-border-style: solid;
|
|
86
|
+
border-style: solid;
|
|
87
|
+
}
|
|
88
|
+
.border-border {
|
|
89
|
+
border-color: var(--gridui-border);
|
|
90
|
+
}
|
|
91
|
+
.border-transparent {
|
|
92
|
+
border-color: transparent;
|
|
93
|
+
}
|
|
94
|
+
.p-gridui-16 {
|
|
95
|
+
padding: var(--gridui-space-16);
|
|
96
|
+
}
|
|
97
|
+
.pt-0\.5 {
|
|
98
|
+
padding-top: calc(var(--spacing) * 0.5);
|
|
99
|
+
}
|
|
100
|
+
.text-start {
|
|
101
|
+
text-align: start;
|
|
102
|
+
}
|
|
103
|
+
.type-caption {
|
|
104
|
+
font: var(--gridui-type-caption);
|
|
105
|
+
letter-spacing: normal;
|
|
106
|
+
}
|
|
107
|
+
.type-supporting {
|
|
108
|
+
font: var(--gridui-type-supporting);
|
|
109
|
+
letter-spacing: normal;
|
|
110
|
+
}
|
|
111
|
+
.type-ui {
|
|
112
|
+
font: var(--gridui-type-ui);
|
|
113
|
+
letter-spacing: normal;
|
|
114
|
+
}
|
|
115
|
+
.wrap-anywhere {
|
|
116
|
+
overflow-wrap: anywhere;
|
|
117
|
+
}
|
|
118
|
+
.text-foreground {
|
|
119
|
+
color: var(--gridui-foreground);
|
|
120
|
+
}
|
|
121
|
+
.text-muted {
|
|
122
|
+
color: var(--gridui-muted);
|
|
123
|
+
}
|
|
124
|
+
.no-underline {
|
|
125
|
+
text-decoration-line: none;
|
|
126
|
+
}
|
|
127
|
+
.aria-\[current\=page\]\:text-brand-art[aria-current="page"] {
|
|
128
|
+
color: var(--gridui-brand-art);
|
|
129
|
+
}
|
|
130
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:inline-flex > .gridui-menu-trigger {
|
|
131
|
+
display: inline-flex;
|
|
132
|
+
}
|
|
133
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:min-h-9 > .gridui-menu-trigger {
|
|
134
|
+
min-height: calc(var(--spacing) * 9);
|
|
135
|
+
}
|
|
136
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:items-center > .gridui-menu-trigger {
|
|
137
|
+
align-items: center;
|
|
138
|
+
}
|
|
139
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:justify-center > .gridui-menu-trigger {
|
|
140
|
+
justify-content: center;
|
|
141
|
+
}
|
|
142
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:gap-gridui-8 > .gridui-menu-trigger {
|
|
143
|
+
gap: var(--gridui-space-8);
|
|
144
|
+
}
|
|
145
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:rounded-control > .gridui-menu-trigger {
|
|
146
|
+
border-radius: var(--gridui-control-radius);
|
|
147
|
+
}
|
|
148
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:border > .gridui-menu-trigger {
|
|
149
|
+
border-style: var(--tw-border-style);
|
|
150
|
+
border-width: 1px;
|
|
151
|
+
}
|
|
152
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:border-solid > .gridui-menu-trigger {
|
|
153
|
+
--tw-border-style: solid;
|
|
154
|
+
border-style: solid;
|
|
155
|
+
}
|
|
156
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:border-transparent > .gridui-menu-trigger {
|
|
157
|
+
border-color: transparent;
|
|
158
|
+
}
|
|
159
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:bg-transparent > .gridui-menu-trigger {
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
}
|
|
162
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:px-gridui-8 > .gridui-menu-trigger {
|
|
163
|
+
padding-inline: var(--gridui-space-8);
|
|
164
|
+
}
|
|
165
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:py-gridui-4 > .gridui-menu-trigger {
|
|
166
|
+
padding-block: var(--gridui-space-4);
|
|
167
|
+
}
|
|
168
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:type-ui > .gridui-menu-trigger {
|
|
169
|
+
font: var(--gridui-type-ui);
|
|
170
|
+
letter-spacing: normal;
|
|
171
|
+
}
|
|
172
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:whitespace-nowrap > .gridui-menu-trigger {
|
|
173
|
+
white-space: nowrap;
|
|
174
|
+
}
|
|
175
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:text-foreground > .gridui-menu-trigger {
|
|
176
|
+
color: var(--gridui-foreground);
|
|
177
|
+
}
|
|
178
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:no-underline > .gridui-menu-trigger {
|
|
179
|
+
text-decoration-line: none;
|
|
180
|
+
}
|
|
181
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:transition-colors > .gridui-menu-trigger {
|
|
182
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
183
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
184
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
185
|
+
}
|
|
186
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:duration-\(--gridui-motion-duration-quick\) > .gridui-menu-trigger {
|
|
187
|
+
--tw-duration: var(--gridui-motion-duration-quick);
|
|
188
|
+
transition-duration: var(--gridui-motion-duration-quick);
|
|
189
|
+
}
|
|
190
|
+
.\[\&_\>_\.gridui-menu-trigger\]\:ease-\(--gridui-motion-ease-out\) > .gridui-menu-trigger {
|
|
191
|
+
--tw-ease: var(--gridui-motion-ease-out);
|
|
192
|
+
transition-timing-function: var(--gridui-motion-ease-out);
|
|
193
|
+
}
|
|
194
|
+
@media (prefers-reduced-motion: reduce) {
|
|
195
|
+
.motion-reduce\:\[\&_\>_\.gridui-menu-trigger\]\:transition-none > .gridui-menu-trigger {
|
|
196
|
+
transition-property: none;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
.\[\&_\>_\.gridui-menu-trigger\:hover\:not\(\:disabled\)\]\:border-transparent > .gridui-menu-trigger:hover:not(:disabled) {
|
|
200
|
+
border-color: transparent;
|
|
201
|
+
}
|
|
202
|
+
.\[\&_\>_\.gridui-menu-trigger\:hover\:not\(\:disabled\)\]\:bg-surface > .gridui-menu-trigger:hover:not(:disabled) {
|
|
203
|
+
background-color: var(--gridui-surface);
|
|
204
|
+
}
|
|
205
|
+
.\[\&_\>_\.gridui-menu-trigger\[aria-current\=\'true\'\]\]\:text-brand-art > .gridui-menu-trigger[aria-current='true'] {
|
|
206
|
+
color: var(--gridui-brand-art);
|
|
207
|
+
}
|
|
208
|
+
.\[\&_\>_a\]\:inline-flex > a {
|
|
209
|
+
display: inline-flex;
|
|
210
|
+
}
|
|
211
|
+
.\[\&_\>_a\]\:min-h-9 > a {
|
|
212
|
+
min-height: calc(var(--spacing) * 9);
|
|
213
|
+
}
|
|
214
|
+
.\[\&_\>_a\]\:items-center > a {
|
|
215
|
+
align-items: center;
|
|
216
|
+
}
|
|
217
|
+
.\[\&_\>_a\]\:justify-center > a {
|
|
218
|
+
justify-content: center;
|
|
219
|
+
}
|
|
220
|
+
.\[\&_\>_a\]\:gap-gridui-8 > a {
|
|
221
|
+
gap: var(--gridui-space-8);
|
|
222
|
+
}
|
|
223
|
+
.\[\&_\>_a\]\:rounded-control > a {
|
|
224
|
+
border-radius: var(--gridui-control-radius);
|
|
225
|
+
}
|
|
226
|
+
.\[\&_\>_a\]\:border > a {
|
|
227
|
+
border-style: var(--tw-border-style);
|
|
228
|
+
border-width: 1px;
|
|
229
|
+
}
|
|
230
|
+
.\[\&_\>_a\]\:border-solid > a {
|
|
231
|
+
--tw-border-style: solid;
|
|
232
|
+
border-style: solid;
|
|
233
|
+
}
|
|
234
|
+
.\[\&_\>_a\]\:border-transparent > a {
|
|
235
|
+
border-color: transparent;
|
|
236
|
+
}
|
|
237
|
+
.\[\&_\>_a\]\:bg-transparent > a {
|
|
238
|
+
background-color: transparent;
|
|
239
|
+
}
|
|
240
|
+
.\[\&_\>_a\]\:px-gridui-8 > a {
|
|
241
|
+
padding-inline: var(--gridui-space-8);
|
|
242
|
+
}
|
|
243
|
+
.\[\&_\>_a\]\:py-gridui-4 > a {
|
|
244
|
+
padding-block: var(--gridui-space-4);
|
|
245
|
+
}
|
|
246
|
+
.\[\&_\>_a\]\:type-ui > a {
|
|
247
|
+
font: var(--gridui-type-ui);
|
|
248
|
+
letter-spacing: normal;
|
|
249
|
+
}
|
|
250
|
+
.\[\&_\>_a\]\:whitespace-nowrap > a {
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
}
|
|
253
|
+
.\[\&_\>_a\]\:text-foreground > a {
|
|
254
|
+
color: var(--gridui-foreground);
|
|
255
|
+
}
|
|
256
|
+
.\[\&_\>_a\]\:no-underline > a {
|
|
257
|
+
text-decoration-line: none;
|
|
258
|
+
}
|
|
259
|
+
.\[\&_\>_a\]\:transition-colors > a {
|
|
260
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
261
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
262
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
263
|
+
}
|
|
264
|
+
.\[\&_\>_a\]\:duration-\(--gridui-motion-duration-quick\) > a {
|
|
265
|
+
--tw-duration: var(--gridui-motion-duration-quick);
|
|
266
|
+
transition-duration: var(--gridui-motion-duration-quick);
|
|
267
|
+
}
|
|
268
|
+
.\[\&_\>_a\]\:ease-\(--gridui-motion-ease-out\) > a {
|
|
269
|
+
--tw-ease: var(--gridui-motion-ease-out);
|
|
270
|
+
transition-timing-function: var(--gridui-motion-ease-out);
|
|
271
|
+
}
|
|
272
|
+
@media (prefers-reduced-motion: reduce) {
|
|
273
|
+
.motion-reduce\:\[\&_\>_a\]\:transition-none > a {
|
|
274
|
+
transition-property: none;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
.\[\&_\>_a\:hover\]\:border-transparent > a:hover {
|
|
278
|
+
border-color: transparent;
|
|
279
|
+
}
|
|
280
|
+
.\[\&_\>_a\:hover\]\:bg-surface > a:hover {
|
|
281
|
+
background-color: var(--gridui-surface);
|
|
282
|
+
}
|
|
283
|
+
.\[\&_\>_a\[aria-current\=\'page\'\]\]\:text-brand-art > a[aria-current='page'] {
|
|
284
|
+
color: var(--gridui-brand-art);
|
|
285
|
+
}
|
|
286
|
+
.\[\&_svg\]\:h-gridui-16 svg {
|
|
287
|
+
height: var(--gridui-space-16);
|
|
288
|
+
}
|
|
289
|
+
.\[\&_svg\]\:w-gridui-16 svg {
|
|
290
|
+
width: var(--gridui-space-16);
|
|
291
|
+
}
|
|
292
|
+
.\[\&\:hover\]\:bg-surface:hover {
|
|
293
|
+
background-color: var(--gridui-surface);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
@layer components {
|
|
297
|
+
.gridui-menu-grid {
|
|
298
|
+
grid-template-columns: repeat(var(--gridui-menu-columns), minmax(0, 1fr));
|
|
299
|
+
}
|
|
300
|
+
@media (min-width: 40rem) {
|
|
301
|
+
.gridui-menu-grid {
|
|
302
|
+
grid-template-columns: repeat(var(--gridui-menu-columns-md), minmax(0, 1fr));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
@media (min-width: 64rem) {
|
|
306
|
+
.gridui-menu-grid {
|
|
307
|
+
grid-template-columns: repeat(var(--gridui-menu-columns-lg), minmax(0, 1fr));
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
@property --tw-border-style {
|
|
312
|
+
syntax: "*";
|
|
313
|
+
inherits: false;
|
|
314
|
+
initial-value: solid;
|
|
315
|
+
}
|
|
316
|
+
@property --tw-duration {
|
|
317
|
+
syntax: "*";
|
|
318
|
+
inherits: false;
|
|
319
|
+
}
|
|
320
|
+
@property --tw-ease {
|
|
321
|
+
syntax: "*";
|
|
322
|
+
inherits: false;
|
|
323
|
+
}
|
|
324
|
+
@layer properties {
|
|
325
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
326
|
+
*, ::before, ::after, ::backdrop {
|
|
327
|
+
--tw-border-style: solid;
|
|
328
|
+
--tw-duration: initial;
|
|
329
|
+
--tw-ease: initial;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/menu",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "GridUI React menu",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"**/*.css"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles.css": "./dist/styles.css"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^19.2.0",
|
|
26
|
+
"react-dom": "^19.2.0"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@gridui/button": "^2.1.1",
|
|
30
|
+
"@gridui/style-utils": "^2.1.2",
|
|
31
|
+
"@gridui/theme": "^2.1.2",
|
|
32
|
+
"class-variance-authority": "0.7.1"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@gridui-internal/configuration": "0.0.0",
|
|
36
|
+
"@gridui/popover": "1.0.0",
|
|
37
|
+
"@jest/globals": "30.5.2",
|
|
38
|
+
"@types/jest": "30.0.0",
|
|
39
|
+
"@types/node": "26.6.5",
|
|
40
|
+
"@types/react": "19.3.0",
|
|
41
|
+
"@types/react-dom": "19.3.0",
|
|
42
|
+
"jest": "30.5.2",
|
|
43
|
+
"react": "19.3.1",
|
|
44
|
+
"react-dom": "19.3.1",
|
|
45
|
+
"typescript": "6.0.3"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "node ../../scripts/compilation/package.ts",
|
|
49
|
+
"compile": "tsc --project tsconfig.json",
|
|
50
|
+
"test": "jest",
|
|
51
|
+
"coverage": "jest --coverage"
|
|
52
|
+
}
|
|
6
53
|
}
|