@gridui/site-navigation 1.1.8 → 1.1.10
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 +7 -0
- package/dist/index.js +66 -52
- package/dist/index.js.map +2 -2
- package/dist/styles.css +9 -0
- package/docs/catalog.json +3 -2
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -7,6 +7,13 @@ 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-landing/site-navigation/.changeset/history).
|
|
9
9
|
|
|
10
|
+
## Mobile region spacing
|
|
11
|
+
|
|
12
|
+
The mobile navigation body has no outer padding: destination rows and separators
|
|
13
|
+
reach the drawer edges. Custom mobile navigation content owns row-internal
|
|
14
|
+
spacing. The settings group retains content padding for independent controls.
|
|
15
|
+
The generic DrawerBody default remains suitable for prose and forms.
|
|
16
|
+
|
|
10
17
|
## Rich navigation menus
|
|
11
18
|
|
|
12
19
|
SiteNavigation combines `@gridui/responsive-navigation`, `@gridui/menu`,
|
package/dist/index.js
CHANGED
|
@@ -115,59 +115,73 @@ var MobileSiteNavigation = (props) => {
|
|
|
115
115
|
}
|
|
116
116
|
)
|
|
117
117
|
] }),
|
|
118
|
-
/* @__PURE__ */ jsxs2(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
{
|
|
129
|
-
...anchorProps
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
118
|
+
/* @__PURE__ */ jsxs2(
|
|
119
|
+
DrawerBody,
|
|
120
|
+
{
|
|
121
|
+
className: "gridui-u-site-navigation--p-0",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ jsxs2(
|
|
124
|
+
"nav",
|
|
125
|
+
{
|
|
126
|
+
"aria-label": label,
|
|
127
|
+
children: [
|
|
128
|
+
links.map((link) => {
|
|
129
|
+
const { label: linkLabel, current, onClick, ...anchorProps } = link;
|
|
130
|
+
return /* @__PURE__ */ createElement2(
|
|
131
|
+
MenuLink,
|
|
132
|
+
{
|
|
133
|
+
...anchorProps,
|
|
134
|
+
key: link.href,
|
|
135
|
+
"aria-current": current ? "page" : void 0,
|
|
136
|
+
onClick: (event) => {
|
|
137
|
+
onClick?.(event);
|
|
138
|
+
const activation = getNavigationActivation(event);
|
|
139
|
+
if (!activation) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
anchorNavigation.current = activation === "anchor";
|
|
143
|
+
closeDrawer();
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
/* @__PURE__ */ jsx2(MenuItemContent, { children: /* @__PURE__ */ jsx2(MenuItemLabel, { children: linkLabel }) })
|
|
147
|
+
);
|
|
148
|
+
}),
|
|
149
|
+
mobileContent && /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
150
|
+
links.length > 0 && /* @__PURE__ */ jsx2(MenuSeparator, {}),
|
|
151
|
+
mobileContent
|
|
152
|
+
] })
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ jsx2(MenuSeparator, {}),
|
|
157
|
+
/* @__PURE__ */ jsxs2(
|
|
158
|
+
MenuGroup,
|
|
159
|
+
{
|
|
160
|
+
className: "gridui-u-site-navigation--gap-gridui-16 gridui-u-site-navigation--p-gridui-24",
|
|
161
|
+
"aria-labelledby": `${id}-settings`,
|
|
162
|
+
children: [
|
|
163
|
+
/* @__PURE__ */ jsx2(
|
|
164
|
+
MenuLabel,
|
|
165
|
+
{
|
|
166
|
+
className: "gridui-u-site-navigation--p-0",
|
|
167
|
+
id: `${id}-settings`,
|
|
168
|
+
children: settingsLabel
|
|
140
169
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"aria-labelledby": `${id}-settings`,
|
|
157
|
-
children: [
|
|
158
|
-
/* @__PURE__ */ jsx2(
|
|
159
|
-
MenuLabel,
|
|
160
|
-
{
|
|
161
|
-
id: `${id}-settings`,
|
|
162
|
-
children: settingsLabel
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
mobilePreferences
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
] }),
|
|
170
|
-
mobileFooter && /* @__PURE__ */ jsx2(DrawerFooter, { children: mobileFooter })
|
|
170
|
+
),
|
|
171
|
+
mobilePreferences
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
mobileFooter && /* @__PURE__ */ jsx2(DrawerFooter, { children: /* @__PURE__ */ jsx2(
|
|
179
|
+
"div",
|
|
180
|
+
{
|
|
181
|
+
className: "gridui-u-site-navigation--p-gridui-24",
|
|
182
|
+
children: mobileFooter
|
|
183
|
+
}
|
|
184
|
+
) })
|
|
171
185
|
]
|
|
172
186
|
}
|
|
173
187
|
)
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/site-navigation/style.ts", "../src/site-navigation/desktop-site-navigation.tsx", "../src/site-navigation/mobile-site-navigation.tsx", "../src/site-navigation/site-navigation.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * @author WMXPY\n * @package Site Navigation\n * @namespace SiteNavigation\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const navigationActionsStyles = cva(cn(\n \"gridui-navigation-actions\",\n \"gridui-u-site-navigation--ms-auto\",\n));\n", "/**\n * @author WMXPY\n * @package Site Navigation\n * @namespace SiteNavigation\n * @description Desktop Site Navigation\n */\n\nimport type { DesktopNavigationOptions } from \"./site-navigation-types\";\nimport { navigationActionsStyles } from \"./style\";\nimport { NavigationLinks } from \"@gridui/menu\";\nimport { DesktopNavigation } from \"@gridui/responsive-navigation\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type DesktopSiteNavigationProps = DesktopNavigationOptions;\n\nexport const DesktopSiteNavigation: FC<DesktopSiteNavigationProps> = (props: DesktopSiteNavigationProps) => {\n const { label, links, preferences, desktopContent } = props;\n return (<DesktopNavigation>\n <NavigationLinks\n aria-label={label}\n >\n {links.map((link) => {\n const { label: linkLabel, current, ...anchorProps } = link;\n return (<a\n {...anchorProps}\n key={link.href}\n aria-current={current ? \"page\" : undefined}\n >\n {linkLabel}\n </a>);\n })}\n {desktopContent}\n </NavigationLinks>\n <div\n className={cn(navigationActionsStyles())}\n >\n {preferences}\n </div>\n </DesktopNavigation>);\n};\n", "/**\n * @author WMXPY\n * @package Site Navigation\n * @namespace SiteNavigation\n * @description Mobile Site Navigation\n */\n\nimport type { MobileNavigationOptions } from \"./site-navigation-types\";\nimport { Button } from \"@gridui/button\";\nimport { DrawerBody, DrawerCloseButton, DrawerFooter, DrawerHeader, DrawerPanel, DrawerTitle, DrawerTrigger } from \"@gridui/drawer\";\nimport { getNavigationActivation } from \"@gridui/interaction\";\nimport { MenuGroup, MenuItemContent, MenuItemLabel, MenuLabel, MenuLink, MenuSeparator } from \"@gridui/menu\";\nimport { MobileNavigation, ResponsiveDrawer } from \"@gridui/responsive-navigation\";\nimport { Menu } from \"lucide-react\";\nimport { type FC, type RefObject, useId } from \"react\";\n\nexport type MobileSiteNavigationProps = MobileNavigationOptions & {\n readonly anchorNavigation: RefObject<boolean>;\n readonly closeDrawer: () => void;\n};\n\nexport const MobileSiteNavigation: FC<MobileSiteNavigationProps> = (props: MobileSiteNavigationProps) => {\n const { label, links, menuLabel, closeLabel, settingsLabel, mobilePreferences, mobileContent, mobileFooter,\n onMobileCloseAutoFocus, anchorNavigation, closeDrawer } = props;\n const id = useId();\n return (<MobileNavigation>\n <ResponsiveDrawer>\n <DrawerTrigger\n asChild\n >\n <Button\n variant=\"quiet\"\n size=\"standard\"\n layout=\"icon\"\n aria-label={menuLabel}\n title={menuLabel}\n >\n <Menu\n aria-hidden=\"true\"\n />\n </Button>\n </DrawerTrigger>\n <DrawerPanel\n onCloseAutoFocus={(event) => {\n const preserveAnchor = anchorNavigation.current;\n anchorNavigation.current = false;\n onMobileCloseAutoFocus?.(event);\n if (preserveAnchor) {\n event.preventDefault();\n }\n }}\n >\n <DrawerHeader>\n <DrawerTitle >\n {menuLabel}\n </DrawerTitle>\n <DrawerCloseButton\n aria-label={closeLabel}\n />\n </DrawerHeader>\n <DrawerBody>\n <nav\n aria-label={label}\n >\n {links.map((link) => {\n const { label: linkLabel, current, onClick, ...anchorProps } = link;\n return (<MenuLink\n {...anchorProps}\n key={link.href}\n aria-current={current ? \"page\" : undefined}\n onClick={(event) => {\n onClick?.(event);\n const activation = getNavigationActivation(event);\n if (!activation) {\n return;\n }\n anchorNavigation.current = activation === \"anchor\";\n closeDrawer();\n }}\n >\n <MenuItemContent>\n <MenuItemLabel>\n {linkLabel}\n </MenuItemLabel>\n </MenuItemContent>\n </MenuLink>);\n })}\n {mobileContent && (<>\n <MenuSeparator
|
|
5
|
-
"mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,0BAA0B,IAAI;AAAA,EACvC;AAAA,EACA;AACJ,CAAC;;;ACJD,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,MAAAA,WAAU;AAQX,SAeA,KAfA;AAKgB;AARjB,IAAM,wBAAwD,CAAC,UAAsC;AACxG,QAAM,EAAE,OAAO,OAAO,aAAa,eAAe,IAAI;AACtD,SAAQ,qBAAC,qBACL;AAAA;AAAA,MAAC;AAAA;AAAA,QACG,cAAY;AAAA,QAEX;AAAA,gBAAM,IAAI,CAAC,SAAS;AACjB,kBAAM,EAAE,OAAO,WAAW,SAAS,GAAG,YAAY,IAAI;AACtD,mBAAQ;AAAA,cAAC;AAAA;AAAA,gBACJ,GAAG;AAAA,gBACJ,KAAK,KAAK;AAAA,gBACV,gBAAc,UAAU,SAAS;AAAA;AAAA,cAEhC;AAAA,YACL;AAAA,UACJ,CAAC;AAAA,UACA;AAAA;AAAA;AAAA,IACL;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACG,WAAWA,IAAG,wBAAwB,CAAC;AAAA,QAEtC;AAAA;AAAA,IACL;AAAA,KACJ;AACJ;;;AChCA,SAAS,cAAc;AACvB,SAAS,YAAY,mBAAmB,cAAc,cAAc,aAAa,aAAa,qBAAqB;AACnH,SAAS,+BAA+B;AACxC,SAAS,WAAW,iBAAiB,eAAe,WAAW,UAAU,qBAAqB;AAC9F,SAAS,kBAAkB,wBAAwB;AACnD,SAAS,YAAY;AACrB,SAAkC,aAAa;AAuB3B,
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Site Navigation\n * @namespace SiteNavigation\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const navigationActionsStyles = cva(cn(\n \"gridui-navigation-actions\",\n \"gridui-u-site-navigation--ms-auto\",\n));\n", "/**\n * @author WMXPY\n * @package Site Navigation\n * @namespace SiteNavigation\n * @description Desktop Site Navigation\n */\n\nimport type { DesktopNavigationOptions } from \"./site-navigation-types\";\nimport { navigationActionsStyles } from \"./style\";\nimport { NavigationLinks } from \"@gridui/menu\";\nimport { DesktopNavigation } from \"@gridui/responsive-navigation\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type DesktopSiteNavigationProps = DesktopNavigationOptions;\n\nexport const DesktopSiteNavigation: FC<DesktopSiteNavigationProps> = (props: DesktopSiteNavigationProps) => {\n const { label, links, preferences, desktopContent } = props;\n return (<DesktopNavigation>\n <NavigationLinks\n aria-label={label}\n >\n {links.map((link) => {\n const { label: linkLabel, current, ...anchorProps } = link;\n return (<a\n {...anchorProps}\n key={link.href}\n aria-current={current ? \"page\" : undefined}\n >\n {linkLabel}\n </a>);\n })}\n {desktopContent}\n </NavigationLinks>\n <div\n className={cn(navigationActionsStyles())}\n >\n {preferences}\n </div>\n </DesktopNavigation>);\n};\n", "/**\n * @author WMXPY\n * @package Site Navigation\n * @namespace SiteNavigation\n * @description Mobile Site Navigation\n */\n\nimport type { MobileNavigationOptions } from \"./site-navigation-types\";\nimport { Button } from \"@gridui/button\";\nimport { DrawerBody, DrawerCloseButton, DrawerFooter, DrawerHeader, DrawerPanel, DrawerTitle, DrawerTrigger } from \"@gridui/drawer\";\nimport { getNavigationActivation } from \"@gridui/interaction\";\nimport { MenuGroup, MenuItemContent, MenuItemLabel, MenuLabel, MenuLink, MenuSeparator } from \"@gridui/menu\";\nimport { MobileNavigation, ResponsiveDrawer } from \"@gridui/responsive-navigation\";\nimport { Menu } from \"lucide-react\";\nimport { type FC, type RefObject, useId } from \"react\";\n\nexport type MobileSiteNavigationProps = MobileNavigationOptions & {\n readonly anchorNavigation: RefObject<boolean>;\n readonly closeDrawer: () => void;\n};\n\nexport const MobileSiteNavigation: FC<MobileSiteNavigationProps> = (props: MobileSiteNavigationProps) => {\n const { label, links, menuLabel, closeLabel, settingsLabel, mobilePreferences, mobileContent, mobileFooter,\n onMobileCloseAutoFocus, anchorNavigation, closeDrawer } = props;\n const id = useId();\n return (<MobileNavigation>\n <ResponsiveDrawer>\n <DrawerTrigger\n asChild\n >\n <Button\n variant=\"quiet\"\n size=\"standard\"\n layout=\"icon\"\n aria-label={menuLabel}\n title={menuLabel}\n >\n <Menu\n aria-hidden=\"true\"\n />\n </Button>\n </DrawerTrigger>\n <DrawerPanel\n onCloseAutoFocus={(event) => {\n const preserveAnchor = anchorNavigation.current;\n anchorNavigation.current = false;\n onMobileCloseAutoFocus?.(event);\n if (preserveAnchor) {\n event.preventDefault();\n }\n }}\n >\n <DrawerHeader>\n <DrawerTitle >\n {menuLabel}\n </DrawerTitle>\n <DrawerCloseButton\n aria-label={closeLabel}\n />\n </DrawerHeader>\n <DrawerBody\n className=\"gridui-u-site-navigation--p-0\"\n >\n <nav\n aria-label={label}\n >\n {links.map((link) => {\n const { label: linkLabel, current, onClick, ...anchorProps } = link;\n return (<MenuLink\n {...anchorProps}\n key={link.href}\n aria-current={current ? \"page\" : undefined}\n onClick={(event) => {\n onClick?.(event);\n const activation = getNavigationActivation(event);\n if (!activation) {\n return;\n }\n anchorNavigation.current = activation === \"anchor\";\n closeDrawer();\n }}\n >\n <MenuItemContent>\n <MenuItemLabel>\n {linkLabel}\n </MenuItemLabel>\n </MenuItemContent>\n </MenuLink>);\n })}\n {mobileContent && (<>\n {links.length > 0 && (<MenuSeparator />)}\n {mobileContent}\n </>)}\n </nav>\n <MenuSeparator />\n <MenuGroup\n className=\"gridui-u-site-navigation--gap-gridui-16 gridui-u-site-navigation--p-gridui-24\"\n aria-labelledby={`${id}-settings`}\n >\n <MenuLabel\n className=\"gridui-u-site-navigation--p-0\"\n id={`${id}-settings`}\n >\n {settingsLabel}\n </MenuLabel>\n {mobilePreferences}\n </MenuGroup>\n </DrawerBody>\n {mobileFooter && (<DrawerFooter>\n <div\n className=\"gridui-u-site-navigation--p-gridui-24\"\n >\n {mobileFooter}\n </div>\n </DrawerFooter>)}\n </DrawerPanel>\n </ResponsiveDrawer>\n </MobileNavigation>);\n};\n", "/**\n * @author WMXPY\n * @package Site Navigation\n * @namespace SiteNavigation\n * @description Site Navigation\n */\n\nimport { DesktopSiteNavigation } from \"./desktop-site-navigation\";\nimport { MobileSiteNavigation } from \"./mobile-site-navigation\";\nimport type { DesktopNavigationOptions, MobileNavigationOptions } from \"./site-navigation-types\";\nimport { ResponsiveNavigation } from \"@gridui/responsive-navigation\";\nimport { type FC, useRef, useState } from \"react\";\n\nexport type SiteNavigationProps = DesktopNavigationOptions & MobileNavigationOptions & {\n readonly className?: string;\n};\n\nexport const SiteNavigation: FC<SiteNavigationProps> = (props: SiteNavigationProps) => {\n const {\n className,\n label,\n links,\n menuLabel,\n closeLabel,\n settingsLabel,\n preferences,\n mobilePreferences,\n desktopContent,\n mobileContent,\n mobileFooter,\n onMobileCloseAutoFocus,\n } = props;\n const anchorNavigation = useRef(false);\n const [\n mobileOpen,\n setMobileOpen,\n ] = useState(false);\n return (<ResponsiveNavigation\n className={className}\n drawerOpen={mobileOpen}\n onDrawerOpenChange={(open) => {\n if (open) {\n anchorNavigation.current = false;\n }\n setMobileOpen(open);\n }}\n >\n <DesktopSiteNavigation\n label={label}\n links={links}\n preferences={preferences}\n desktopContent={desktopContent}\n />\n <MobileSiteNavigation\n label={label}\n links={links}\n menuLabel={menuLabel}\n closeLabel={closeLabel}\n settingsLabel={settingsLabel}\n mobilePreferences={mobilePreferences}\n mobileContent={mobileContent}\n mobileFooter={mobileFooter}\n onMobileCloseAutoFocus={onMobileCloseAutoFocus}\n anchorNavigation={anchorNavigation}\n closeDrawer={() => {\n setMobileOpen(false);\n }}\n />\n </ResponsiveNavigation>);\n};\n"],
|
|
5
|
+
"mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,0BAA0B,IAAI;AAAA,EACvC;AAAA,EACA;AACJ,CAAC;;;ACJD,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,MAAAA,WAAU;AAQX,SAeA,KAfA;AAKgB;AARjB,IAAM,wBAAwD,CAAC,UAAsC;AACxG,QAAM,EAAE,OAAO,OAAO,aAAa,eAAe,IAAI;AACtD,SAAQ,qBAAC,qBACL;AAAA;AAAA,MAAC;AAAA;AAAA,QACG,cAAY;AAAA,QAEX;AAAA,gBAAM,IAAI,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AAAA,YACvB;AAAA;AAAA,QACJ;AAAA;AAAA;AAAA,EACJ;AACJ;",
|
|
6
6
|
"names": ["cn", "jsx", "jsxs", "createElement", "jsx", "jsxs"]
|
|
7
7
|
}
|
package/dist/styles.css
CHANGED
|
@@ -4,4 +4,13 @@
|
|
|
4
4
|
.gridui-u-site-navigation--ms-auto {
|
|
5
5
|
margin-inline-start: auto;
|
|
6
6
|
}
|
|
7
|
+
.gridui-u-site-navigation--gap-gridui-16 {
|
|
8
|
+
gap: var(--gridui-space-16);
|
|
9
|
+
}
|
|
10
|
+
.gridui-u-site-navigation--p-0 {
|
|
11
|
+
padding: 0px;
|
|
12
|
+
}
|
|
13
|
+
.gridui-u-site-navigation--p-gridui-24 {
|
|
14
|
+
padding: var(--gridui-space-24);
|
|
15
|
+
}
|
|
7
16
|
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/site-navigation",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.10",
|
|
5
5
|
"category": "landing",
|
|
6
6
|
"description": "GridUI React site navigation",
|
|
7
|
-
"usage": "
|
|
7
|
+
"usage": "The mobile navigation body has no outer padding: destination rows and separators reach the drawer edges. Custom mobile navigation content owns row-internal spacing. The settings group retains content padding for independent controls. The generic DrawerBody default remains suitable for prose and forms.",
|
|
8
8
|
"documentation": [
|
|
9
9
|
"README.md",
|
|
10
10
|
"docs/reference/README.md",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"@gridui/site-navigation/styles.css"
|
|
39
39
|
],
|
|
40
40
|
"examples": [
|
|
41
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/site-navigation/stories/getting-started.mdx",
|
|
41
42
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/site-navigation/stories/mobile-navigation.mdx",
|
|
42
43
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/site-navigation/stories/site-navigation.mdx",
|
|
43
44
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/site-navigation/stories/site-navigation.stories.tsx"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/site-navigation",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "GridUI React site navigation",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
"react-dom": "^19.2.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@gridui/button": "^
|
|
31
|
-
"@gridui/drawer": "^
|
|
32
|
-
"@gridui/interaction": "^1.
|
|
33
|
-
"@gridui/menu": "^4.
|
|
34
|
-
"@gridui/responsive-navigation": "^1.1.
|
|
30
|
+
"@gridui/button": "^5.1.0",
|
|
31
|
+
"@gridui/drawer": "^2.1.0",
|
|
32
|
+
"@gridui/interaction": "^1.3.0",
|
|
33
|
+
"@gridui/menu": "^4.1.0",
|
|
34
|
+
"@gridui/responsive-navigation": "^1.1.9",
|
|
35
35
|
"@gridui/style-utils": "^4.0.0",
|
|
36
|
-
"@gridui/theme": "^
|
|
36
|
+
"@gridui/theme": "^3.0.0",
|
|
37
37
|
"class-variance-authority": "0.7.1",
|
|
38
|
-
"lucide-react": "1.
|
|
38
|
+
"lucide-react": "1.72.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
42
|
-
"@gridui/brand-link": "1.0.
|
|
43
|
-
"@gridui/grid": "3.
|
|
44
|
-
"@gridui/preferences": "1.0
|
|
42
|
+
"@gridui/brand-link": "1.0.7",
|
|
43
|
+
"@gridui/grid": "3.1.0",
|
|
44
|
+
"@gridui/preferences": "1.2.0",
|
|
45
45
|
"@jest/globals": "30.5.2",
|
|
46
|
-
"@storybook/react-vite": "10.6.
|
|
46
|
+
"@storybook/react-vite": "10.6.7",
|
|
47
47
|
"@types/jest": "30.0.0",
|
|
48
48
|
"@types/node": "26.6.6",
|
|
49
49
|
"@types/react": "19.3.0",
|