@gsa-tts/graymatter-ui 0.3.6 → 0.3.8
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 +17 -0
- package/dist/graymatter-ui.js +1974 -1930
- package/dist/graymatter-ui.umd.cjs +8 -8
- package/package.json +1 -1
- package/src/components/DesktopSideNav.svelte +43 -37
- package/src/components/DesktopSideNav.webcomponent.svelte +2 -0
- package/src/components/Head.astro +1 -2
- package/src/components/MobileBottomNav.svelte +8 -1
- package/src/components/MobileBottomNav.webcomponent.svelte +2 -0
- package/src/components/MobileSideMenu.svelte +15 -18
- package/src/components/MobileTopNav.svelte +1 -1
- package/src/components/icons/CloseIcon.svelte +5 -5
- package/src/helpers/meta.ts +1 -2
- package/src/styles/components/globalAppLayout.css +7 -1
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ PUBLIC_DISCOVER_URL=https://your-discover-page.com
|
|
|
72
72
|
```svelte
|
|
73
73
|
<DesktopSideNav
|
|
74
74
|
showAppIcons={true}
|
|
75
|
+
hideDiscover={false}
|
|
75
76
|
apiUrl="https://custom-api.com"
|
|
76
77
|
chatUrl="https://custom-chat.com"
|
|
77
78
|
consoleUrl="https://custom-console.com"
|
|
@@ -94,6 +95,22 @@ PUBLIC_DISCOVER_URL=https://your-discover-page.com
|
|
|
94
95
|
|
|
95
96
|
**Priority Order:** Component props → Environment variables → Fallback (`#`)
|
|
96
97
|
|
|
98
|
+
### Discover Icon Control
|
|
99
|
+
|
|
100
|
+
The discover icon can be conditionally shown/hidden using the `hideDiscover` prop for both desktop and mobile navigation:
|
|
101
|
+
|
|
102
|
+
```svelte
|
|
103
|
+
<!-- Hide discover icon (default) -->
|
|
104
|
+
<DesktopSideNav showAppIcons={true} hideDiscover={true}>
|
|
105
|
+
<MobileBottomNav showAppIcons={true} hideDiscover={true}>
|
|
106
|
+
|
|
107
|
+
<!-- Show discover icon -->
|
|
108
|
+
<DesktopSideNav showAppIcons={true} hideDiscover={false}>
|
|
109
|
+
<MobileBottomNav showAppIcons={true} hideDiscover={false}>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Note:** The discover icon is hidden by default (`hideDiscover={true}`) since the discover page may not be available in all deployments. This gives you control over when to enable the discover functionality across all consuming applications.
|
|
113
|
+
|
|
97
114
|
## Available Components
|
|
98
115
|
|
|
99
116
|
### Web Components (Universal - Any Framework)
|