@gridui/menu 3.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,6 +7,14 @@ Load styles for any composed dependency used by this family. Applications own ro
7
7
 
8
8
  See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/menu/.changeset/history).
9
9
 
10
+ ## Continuous menu regions
11
+
12
+ Menu groups and grids have no gaps between entries. Each link or action fills
13
+ its allocated region; labels and entries own their content padding. Separators
14
+ meet the containing edges without surrounding margins. For a navigation popup,
15
+ use `PopoverPanel className="p-0"`; keep text spacing inside the rows.
16
+ Content panels containing prose or independent controls retain their own padding.
17
+
10
18
  ## Navigation content
11
19
 
12
20
  Import NavigationLinks and the Menu content parts from `@gridui/menu`. Import
@@ -23,8 +31,8 @@ inside a caller-selected surface and do not own routing or responsive overlays.
23
31
  Landing’s SiteNavigation and Layout’s ResponsiveNavigation coordinate those parts with
24
32
  Core Popover and Drawer.
25
33
 
26
- `MenuGrid.columns` accepts `1`, `2`, or `3`, or `{ base, md?, lg? }` using 40rem
27
- and 64rem breakpoints. Omitted breakpoints inherit the preceding value. The
34
+ `MenuGrid.columns` accepts `1`, `2`, or `3`, or `{ base, sm?, md?, lg? }` using 40rem,
35
+ 48rem, and 64rem breakpoints. Omitted breakpoints inherit the preceding value. The
28
36
  default is one column below 40rem and three from 40rem onward. Use
29
37
  `<MenuGrid columns={1}>` in mobile drawer content so it stays single-column at
30
38
  every viewport size; Layout does not override Core descendants. Native
@@ -44,3 +52,5 @@ Migration: PopoverTrigger is no longer styled implicitly by its private class
44
52
  inside NavigationLinks. Add `className={navigationItemStyles()}` explicitly to
45
53
  each trigger that should use the navigation item presentation. Native anchor
46
54
  styling remains automatic.
55
+
56
+ [Component reference](docs/reference/README.md) contains focused API pages for each public component.
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ import { cn as cn5 } from "@gridui/style-utils";
52
52
  import { cva as cva3 } from "class-variance-authority";
53
53
  var menuGridStyles = cva3(cn5(
54
54
  "gridui-menu-grid",
55
- "gridui-u-menu--grid gridui-u-menu--gap-gridui-8"
55
+ "gridui-u-menu--grid gridui-u-menu--gap-0"
56
56
  ));
57
57
 
58
58
  // src/menu-grid/menu-grid.tsx
@@ -63,7 +63,7 @@ var MenuGrid = (props) => {
63
63
  const {
64
64
  columns = {
65
65
  base: 1,
66
- md: 3
66
+ sm: 3
67
67
  },
68
68
  className,
69
69
  style,
@@ -72,6 +72,7 @@ var MenuGrid = (props) => {
72
72
  const count = resolveResponsive(columns);
73
73
  const gridStyle = {
74
74
  "--gridui-menu-columns": count.base,
75
+ "--gridui-menu-columns-sm": count.sm,
75
76
  "--gridui-menu-columns-md": count.md,
76
77
  "--gridui-menu-columns-lg": count.lg,
77
78
  ...style
@@ -91,7 +92,7 @@ import { cn as cn7 } from "@gridui/style-utils";
91
92
  import { cva as cva4 } from "class-variance-authority";
92
93
  var menuGroupStyles = cva4(cn7(
93
94
  "gridui-menu-group",
94
- "gridui-u-menu--grid gridui-u-menu--gap-gridui-16 gridui-u-menu--min-w-0"
95
+ "gridui-u-menu--grid gridui-u-menu--gap-0 gridui-u-menu--min-w-0"
95
96
  ));
96
97
 
97
98
  // src/menu-group/menu-group.tsx
@@ -249,7 +250,7 @@ import { cn as cn21 } from "@gridui/style-utils";
249
250
  import { cva as cva11 } from "class-variance-authority";
250
251
  var menuLabelStyles = cva11(cn21(
251
252
  "gridui-menu-label",
252
- "gridui-u-menu--m-0 gridui-u-menu--text-muted gridui-u-menu--type-caption"
253
+ "gridui-u-menu--m-0 gridui-u-menu--px-gridui-16 gridui-u-menu--py-gridui-8 gridui-u-menu--text-muted gridui-u-menu--type-caption"
253
254
  ));
254
255
 
255
256
  // src/menu-label/menu-label.tsx
@@ -317,7 +318,7 @@ import { cn as cn27 } from "@gridui/style-utils";
317
318
  import { cva as cva14 } from "class-variance-authority";
318
319
  var menuSeparatorStyles = cva14(cn27(
319
320
  "gridui-menu-separator",
320
- "gridui-u-menu--my-gridui-24 gridui-u-menu--mx-0 gridui-u-menu--border-0 gridui-u-menu--border-t gridui-u-menu--border-solid gridui-u-menu--border-border"
321
+ "gridui-u-menu--m-0 gridui-u-menu--border-0 gridui-u-menu--border-t gridui-u-menu--border-solid gridui-u-menu--border-border"
321
322
  ));
322
323
 
323
324
  // src/menu-separator/menu-separator.tsx
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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 \"gridui-u-menu--w-full gridui-u-menu--justify-start gridui-u-menu--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 \"gridui-u-menu--flex gridui-u-menu--flex-wrap gridui-u-menu--items-center gridui-u-menu--justify-between gridui-u-menu--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 \"gridui-u-menu--grid gridui-u-menu--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 \"gridui-u-menu--grid gridui-u-menu--gap-gridui-16 gridui-u-menu--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 \"gridui-u-menu--flex gridui-u-menu--items-center gridui-u-menu--justify-between gridui-u-menu--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 \"gridui-u-menu--grid gridui-u-menu--min-w-0 gridui-u-menu--flex-1 gridui-u-menu--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 \"gridui-u-menu--text-muted gridui-u-menu--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 \"gridui-u-menu--inline-flex gridui-u-menu--shrink-0 gridui-u-menu--pt-0.5 gridui-u-menu--text-foreground\",\n \"gridui-u-menu--[&_svg]:w-gridui-16 gridui-u-menu--[&_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 \"gridui-u-menu--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 \"gridui-u-menu--inline-flex gridui-u-menu--shrink-0 gridui-u-menu--pt-0.5 gridui-u-menu--text-foreground\",\n \"gridui-u-menu--[&_svg]:w-gridui-16 gridui-u-menu--[&_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 \"gridui-u-menu--m-0 gridui-u-menu--text-muted gridui-u-menu--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 \"gridui-u-menu--flex gridui-u-menu--min-w-0 gridui-u-menu--items-start gridui-u-menu--gap-gridui-8 gridui-u-menu--p-gridui-16 gridui-u-menu--border gridui-u-menu--border-solid gridui-u-menu--border-transparent gridui-u-menu--rounded-control gridui-u-menu--text-foreground gridui-u-menu--text-start gridui-u-menu--no-underline gridui-u-menu--wrap-anywhere\",\n \"gridui-u-menu--aria-[current=page]:text-foreground gridui-u-menu--aria-[current=page]:bg-brand-tint\",\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 \"gridui-u-menu--inline-flex gridui-u-menu--items-center gridui-u-menu--gap-gridui-8 gridui-u-menu--m-0 gridui-u-menu--text-muted gridui-u-menu--type-caption\",\n \"gridui-u-menu--[&_svg]:w-gridui-16 gridui-u-menu--[&_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 \"gridui-u-menu--my-gridui-24 gridui-u-menu--mx-0 gridui-u-menu--border-0 gridui-u-menu--border-t gridui-u-menu--border-solid gridui-u-menu--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 \"gridui-u-menu--flex gridui-u-menu--flex-nowrap gridui-u-menu--items-center gridui-u-menu--gap-gridui-4 gridui-u-menu--type-ui\",\n \"gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:inline-flex gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:min-h-gridui-control-small gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:items-center gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:justify-center gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:gap-gridui-8 gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:py-gridui-4 gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:px-gridui-8 gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:border gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:border-solid gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:border-transparent gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:rounded-control gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:text-foreground gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:bg-transparent gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:type-ui gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:no-underline gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:whitespace-nowrap gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:transition-colors gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:duration-(--gridui-motion-duration-quick) gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:ease-(--gridui-motion-ease-out)\",\n \"gridui-u-menu--[&_>_:is(a,.gridui-navigation-item):is([aria-current='page'],[aria-current='true'])]:text-foreground gridui-u-menu--[&_>_:is(a,.gridui-navigation-item):is([aria-current='page'],[aria-current='true'])]:bg-brand-tint\",\n \"gridui-u-menu--motion-reduce:[&_>_:is(a,.gridui-navigation-item)]:transition-none\",\n));\n\nexport const navigationItemStyles = cva(\"gridui-navigation-item\");\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={c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,IAAM,iBAAiBA,MAAID;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AACJ,CAAC;;;ACND,SAAS,MAAAE,YAAU;AAOP,gBAAAC,aAAA;AAFL,IAAM,WAA8B,CAAC,UAAyB;AACjE,QAAM,EAAE,WAAW,GAAG,UAAU,IAAI;AACpC,SAAQ,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWD,KAAG,eAAe,GAAG,SAAS;AAAA;AAAA,EAC7C;AACJ;;;ACZA,SAAS,MAAAE,YAAU;AACnB,SAAS,OAAAC,aAAW;AAEb,IAAM,sBAAsBA,MAAID;AAAA,EACnC;AAAA,EACA;AACJ,CAAC;;;ACLD,SAAS,MAAAE,YAAU;AAOP,gBAAAC,aAAA;AAFL,IAAM,gBAAwC,CAAC,UAA8B;AAChF,QAAM,EAAE,WAAW,GAAG,UAAU,IAAI;AACpC,SAAQ,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWD,KAAG,oBAAoB,GAAG,SAAS;AAAA;AAAA,EAClD;AACJ;;;ACZA,SAAS,MAAAE,YAAU;AACnB,SAAS,OAAAC,aAAW;AAEb,IAAM,wBAAwBA,MAAID;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,uBAAuBC,MAAI,wBAAwB;;;ACVhE,SAAS,MAAAC,YAAU;AAOP,gBAAAC,aAAA;AAFL,IAAM,kBAA4C,CAAC,UAAgC;AACtF,QAAM,EAAE,WAAW,GAAG,UAAU,IAAI;AACpC,SAAQ,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWD,KAAG,sBAAsB,GAAG,SAAS;AAAA;AAAA,EACpD;AACJ;",
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 \"gridui-u-menu--w-full gridui-u-menu--justify-start gridui-u-menu--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 \"gridui-u-menu--flex gridui-u-menu--flex-wrap gridui-u-menu--items-center gridui-u-menu--justify-between gridui-u-menu--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 \"gridui-u-menu--grid gridui-u-menu--gap-0\",\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 sm: 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-sm\": count.sm,\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 \"gridui-u-menu--grid gridui-u-menu--gap-0 gridui-u-menu--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 \"gridui-u-menu--flex gridui-u-menu--items-center gridui-u-menu--justify-between gridui-u-menu--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 \"gridui-u-menu--grid gridui-u-menu--min-w-0 gridui-u-menu--flex-1 gridui-u-menu--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 \"gridui-u-menu--text-muted gridui-u-menu--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 \"gridui-u-menu--inline-flex gridui-u-menu--shrink-0 gridui-u-menu--pt-0.5 gridui-u-menu--text-foreground\",\n \"gridui-u-menu--[&_svg]:w-gridui-16 gridui-u-menu--[&_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 \"gridui-u-menu--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 \"gridui-u-menu--inline-flex gridui-u-menu--shrink-0 gridui-u-menu--pt-0.5 gridui-u-menu--text-foreground\",\n \"gridui-u-menu--[&_svg]:w-gridui-16 gridui-u-menu--[&_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 \"gridui-u-menu--m-0 gridui-u-menu--px-gridui-16 gridui-u-menu--py-gridui-8 gridui-u-menu--text-muted gridui-u-menu--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 \"gridui-u-menu--flex gridui-u-menu--min-w-0 gridui-u-menu--items-start gridui-u-menu--gap-gridui-8 gridui-u-menu--p-gridui-16 gridui-u-menu--border gridui-u-menu--border-solid gridui-u-menu--border-transparent gridui-u-menu--rounded-control gridui-u-menu--text-foreground gridui-u-menu--text-start gridui-u-menu--no-underline gridui-u-menu--wrap-anywhere\",\n \"gridui-u-menu--aria-[current=page]:text-foreground gridui-u-menu--aria-[current=page]:bg-brand-tint\",\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 \"gridui-u-menu--inline-flex gridui-u-menu--items-center gridui-u-menu--gap-gridui-8 gridui-u-menu--m-0 gridui-u-menu--text-muted gridui-u-menu--type-caption\",\n \"gridui-u-menu--[&_svg]:w-gridui-16 gridui-u-menu--[&_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 \"gridui-u-menu--m-0 gridui-u-menu--border-0 gridui-u-menu--border-t gridui-u-menu--border-solid gridui-u-menu--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 \"gridui-u-menu--flex gridui-u-menu--flex-nowrap gridui-u-menu--items-center gridui-u-menu--gap-gridui-4 gridui-u-menu--type-ui\",\n \"gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:inline-flex gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:min-h-gridui-control-small gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:items-center gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:justify-center gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:gap-gridui-8 gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:py-gridui-4 gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:px-gridui-8 gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:border gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:border-solid gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:border-transparent gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:rounded-control gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:text-foreground gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:bg-transparent gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:type-ui gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:no-underline gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:whitespace-nowrap gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:transition-colors gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:duration-(--gridui-motion-duration-quick) gridui-u-menu--[&_>_:is(a,.gridui-navigation-item)]:ease-(--gridui-motion-ease-out)\",\n \"gridui-u-menu--[&_>_:is(a,.gridui-navigation-item):is([aria-current='page'],[aria-current='true'])]:text-foreground gridui-u-menu--[&_>_:is(a,.gridui-navigation-item):is([aria-current='page'],[aria-current='true'])]:bg-brand-tint\",\n \"gridui-u-menu--motion-reduce:[&_>_:is(a,.gridui-navigation-item)]:transition-none\",\n));\n\nexport const navigationItemStyles = cva(\"gridui-navigation-item\");\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;AAEb,IAAM,mBAAmB,IAAI;AAAA,EAChC;AAAA,EACA;AACJ,CAAC;;;ACLD,SAAS,cAAgC;AACzC,SAAS,MAAAA,WAAU;AAWP;AANL,IAAM,aAAkC,CAAC,UAA2B;AACvE,QAAM,EAAE,WAAW,GAAG,UAAU,IAAI;AACpC,QAAM,cAA2B,UAAU,YAAY,SAAY;AAAA,IAC/D,GAAG;AAAA,IACH,SAAS;AAAA,EACb,IAAI;AACJ,SAAQ;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWA,IAAG,iBAAiB,GAAG,SAAS;AAAA;AAAA,EAC/C;AACJ;;;ACjBA,SAAS,MAAAC,WAAU;AACnB,SAAS,OAAAC,YAAW;AAEb,IAAM,mBAAmBA,KAAID;AAAA,EAChC;AAAA,EACA;AACJ,CAAC;;;ACLD,SAAS,MAAAE,WAAU;AAOP,gBAAAC,YAAA;AAFL,IAAM,aAAkC,CAAC,UAA2B;AACvE,QAAM,EAAE,WAAW,GAAG,UAAU,IAAI;AACpC,SAAQ,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWD,IAAG,iBAAiB,GAAG,SAAS;AAAA;AAAA,EAC/C;AACJ;;;ACZA,SAAS,MAAAE,WAAU;AACnB,SAAS,OAAAC,YAAW;AAEb,IAAM,iBAAiBA,KAAID;AAAA,EAC9B;AAAA,EACA;AACJ,CAAC;;;ACLD,SAAS,MAAAE,WAAU;AACnB,SAAS,yBAA0C;AAyBvC,gBAAAC,YAAA;AAlBL,IAAM,WAA8B,CAAC,UAAyB;AACjE,QAAM;AAAA,IACF,UAAU;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AG,sBAAsB,GAAG,SAAS;AAAA;AAAA,EACpD;AACJ;",
6
6
  "names": ["cn", "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", "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
7
  }
package/dist/styles.css CHANGED
@@ -12,12 +12,6 @@
12
12
  .gridui-u-menu--m-0 {
13
13
  margin: 0px;
14
14
  }
15
- .gridui-u-menu--mx-0 {
16
- margin-inline: 0px;
17
- }
18
- .gridui-u-menu--my-gridui-24 {
19
- margin-block: var(--gridui-space-24);
20
- }
21
15
  .gridui-u-menu--flex {
22
16
  display: flex;
23
17
  }
@@ -57,6 +51,9 @@
57
51
  .gridui-u-menu--justify-start {
58
52
  justify-content: flex-start;
59
53
  }
54
+ .gridui-u-menu--gap-0 {
55
+ gap: 0px;
56
+ }
60
57
  .gridui-u-menu--gap-gridui-4 {
61
58
  gap: var(--gridui-space-4);
62
59
  }
@@ -94,6 +91,12 @@
94
91
  .gridui-u-menu--p-gridui-16 {
95
92
  padding: var(--gridui-space-16);
96
93
  }
94
+ .gridui-u-menu--px-gridui-16 {
95
+ padding-inline: var(--gridui-space-16);
96
+ }
97
+ .gridui-u-menu--py-gridui-8 {
98
+ padding-block: var(--gridui-space-8);
99
+ }
97
100
  .gridui-u-menu--pt-0\.5 {
98
101
  padding-top: calc(var(--spacing) * 0.5);
99
102
  }
@@ -217,6 +220,11 @@
217
220
  grid-template-columns: repeat(var(--gridui-menu-columns), minmax(0, 1fr));
218
221
  }
219
222
  @media (min-width: 40rem) {
223
+ .gridui-menu-grid {
224
+ grid-template-columns: repeat(var(--gridui-menu-columns-sm), minmax(0, 1fr));
225
+ }
226
+ }
227
+ @media (min-width: 48rem) {
220
228
  .gridui-menu-grid {
221
229
  grid-template-columns: repeat(var(--gridui-menu-columns-md), minmax(0, 1fr));
222
230
  }
package/docs/catalog.json CHANGED
@@ -1,12 +1,28 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/menu",
4
- "version": "3.0.0",
4
+ "version": "4.0.1",
5
5
  "category": "core",
6
6
  "description": "GridUI React menu",
7
- "usage": "`MenuGrid.columns` accepts `1`, `2`, or `3`, or `{ base, md?, lg? }` using 40rem and 64rem breakpoints. Omitted breakpoints inherit the preceding value. The default is one column below 40rem and three from 40rem onward. Use `<MenuGrid columns={1}>` in mobile drawer content so it stays single-column at every viewport size; Layout does not override Core descendants. Native attributes, refs, `className`, and `style` remain available.",
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": [
9
- "README.md"
9
+ "README.md",
10
+ "docs/reference/README.md",
11
+ "docs/reference/menu-action.md",
12
+ "docs/reference/menu-footer.md",
13
+ "docs/reference/menu-grid.md",
14
+ "docs/reference/menu-group.md",
15
+ "docs/reference/menu-heading.md",
16
+ "docs/reference/menu-item-content.md",
17
+ "docs/reference/menu-item-description.md",
18
+ "docs/reference/menu-item-icon.md",
19
+ "docs/reference/menu-item-label.md",
20
+ "docs/reference/menu-item-trailing.md",
21
+ "docs/reference/menu-label.md",
22
+ "docs/reference/menu-link.md",
23
+ "docs/reference/menu-note.md",
24
+ "docs/reference/menu-separator.md",
25
+ "docs/reference/navigation-links.md"
10
26
  ],
11
27
  "exports": [
12
28
  {
@@ -171,6 +187,10 @@
171
187
  "@gridui/menu/styles.css"
172
188
  ],
173
189
  "examples": [
190
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/getting-started.mdx",
191
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/navigation-content.mdx",
192
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/overlays.mdx",
193
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/rich-navigation.mdx",
174
194
  "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx"
175
195
  ]
176
196
  }
@@ -0,0 +1,18 @@
1
+ <!-- Generated by pnpm docs:storybook. -->
2
+ # Component reference
3
+
4
+ - [MenuAction](menu-action.md)
5
+ - [MenuFooter](menu-footer.md)
6
+ - [MenuGrid](menu-grid.md)
7
+ - [MenuGroup](menu-group.md)
8
+ - [MenuHeading](menu-heading.md)
9
+ - [MenuItemContent](menu-item-content.md)
10
+ - [MenuItemDescription](menu-item-description.md)
11
+ - [MenuItemIcon](menu-item-icon.md)
12
+ - [MenuItemLabel](menu-item-label.md)
13
+ - [MenuItemTrailing](menu-item-trailing.md)
14
+ - [MenuLabel](menu-label.md)
15
+ - [MenuLink](menu-link.md)
16
+ - [MenuNote](menu-note.md)
17
+ - [MenuSeparator](menu-separator.md)
18
+ - [NavigationLinks](navigation-links.md)
@@ -0,0 +1,99 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuAction
3
+
4
+ Compose MenuAction with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuAction } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLButtonElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLButtonElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLButtonElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### size
59
+
60
+ ``"small" | "standard" | "large" | "extra-large" | null | undefined`` · Optional
61
+
62
+ Component size preset.
63
+
64
+ ### iconMotion
65
+
66
+ ``"none" | "outward" | null | undefined`` · Optional
67
+
68
+ ### variant
69
+
70
+ ``"text" | "primary" | "secondary" | "quiet" | "highlight" | "underlined" | null | undefined`` · Optional
71
+
72
+ Visual variant.
73
+
74
+ ### layout
75
+
76
+ ``"cell" | "standard" | "icon" | "entry" | "rail" | "divided" | null | undefined`` · Optional
77
+
78
+ Layout within the containing region.
79
+
80
+ ### startIcon
81
+
82
+ ``ReactNode`` · Optional
83
+
84
+ ### startIconLayout
85
+
86
+ ``"divided" | "inline" | undefined`` · Optional
87
+
88
+ ### startIconSize
89
+
90
+ ``"standard" | "large" | "extra-large" | undefined`` · Optional
91
+
92
+ ### endIcon
93
+
94
+ ``ReactNode`` · Optional
95
+
96
+ ### loading
97
+
98
+ ``boolean | undefined`` · Optional
99
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuFooter
3
+
4
+ Compose MenuFooter with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuFooter } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,66 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuGrid
3
+
4
+ Compose MenuGrid with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuGrid } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### columns
59
+
60
+ ``Responsive<1 | 2 | 3> | undefined`` · Optional
61
+
62
+ Default: ``{
63
+ base: 1,
64
+ sm: 3,
65
+ }``
66
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuGroup
3
+
4
+ Groups related navigation or action items under an optional label. Use it to organize a menu without adding a popup or modal surface.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuGroup } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuHeading
3
+
4
+ Compose MenuHeading with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuHeading } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuItemContent
3
+
4
+ Compose MenuItemContent with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuItemContent } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLSpanElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLSpanElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLSpanElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuItemDescription
3
+
4
+ Compose MenuItemDescription with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuItemDescription } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLSpanElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLSpanElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLSpanElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuItemIcon
3
+
4
+ Compose MenuItemIcon with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuItemIcon } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLSpanElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLSpanElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLSpanElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuItemLabel
3
+
4
+ Compose MenuItemLabel with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuItemLabel } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLSpanElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLSpanElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLSpanElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuItemTrailing
3
+
4
+ Compose MenuItemTrailing with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuItemTrailing } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLSpanElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLSpanElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLSpanElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuLabel
3
+
4
+ Compose MenuLabel with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuLabel } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLHeadingElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLHeadingElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLHeadingElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLHeadingElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLHeadingElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuLink
3
+
4
+ Compose MenuLink with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuLink } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### href
23
+
24
+ ``string`` · Required
25
+
26
+ ### children
27
+
28
+ ``ReactNode`` · Optional
29
+
30
+ Content rendered inside the component.
31
+
32
+ ### onFocus
33
+
34
+ ``(event: FocusEvent<HTMLAnchorElement, Element>): void`` · Optional
35
+
36
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
37
+
38
+ ### onBlur
39
+
40
+ ``(event: FocusEvent<HTMLAnchorElement, Element>): void`` · Optional
41
+
42
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
43
+
44
+ ### onChange
45
+
46
+ ``(event: ChangeEvent<HTMLAnchorElement, Element>): void`` · Optional
47
+
48
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
49
+
50
+ ### onSubmit
51
+
52
+ ``(event: SubmitEvent<HTMLAnchorElement>): void`` · Optional
53
+
54
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
+
56
+ ### onClick
57
+
58
+ ``(event: MouseEvent<HTMLAnchorElement, MouseEvent>): void`` · Optional
59
+
60
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
61
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuNote
3
+
4
+ Compose MenuNote with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuNote } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLSpanElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLSpanElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLSpanElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # MenuSeparator
3
+
4
+ Compose MenuSeparator with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { MenuSeparator } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLHRElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLHRElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLHRElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLHRElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLHRElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # NavigationLinks
3
+
4
+ Compose NavigationLinks with MenuGroup inside the same @gridui/menu component family.
5
+
6
+ Import from ``@gridui/menu`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { NavigationLinks } from "@gridui/menu";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/menu/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/menu/stories/menu.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/menu",
3
- "version": "3.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "GridUI React menu",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -27,14 +27,14 @@
27
27
  "react-dom": "^19.2.0"
28
28
  },
29
29
  "dependencies": {
30
- "@gridui/button": "^4.0.0",
31
- "@gridui/style-utils": "^3.0.0",
32
- "@gridui/theme": "^2.5.3",
30
+ "@gridui/button": "^5.0.0",
31
+ "@gridui/style-utils": "^4.0.0",
32
+ "@gridui/theme": "^2.5.4",
33
33
  "class-variance-authority": "0.7.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@gridui-internal/configuration": "0.0.0-internal",
37
- "@gridui/action-navigation": "1.0.5",
37
+ "@gridui/action-navigation": "1.0.6",
38
38
  "@jest/globals": "30.5.2",
39
39
  "@storybook/react-vite": "10.6.6",
40
40
  "@types/jest": "30.0.0",