@gsa-tts/graymatter-ui 0.3.9 → 0.3.11
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/dist/graymatter-ui.js +1840 -1897
- package/dist/graymatter-ui.umd.cjs +6 -6
- package/package.json +3 -3
- package/src/components/Button.svelte +3 -5
- package/src/components/Button.webcomponent.svelte +0 -2
- package/src/components/DesktopSideNav.svelte +3 -4
- package/src/components/DesktopSideNav.webcomponent.svelte +0 -2
- package/src/components/MobileSideMenu.svelte +2 -2
- package/src/components/MobileSideMenu.webcomponent.svelte +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gsa-tts/graymatter-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"typescript": "5.7.3",
|
|
56
56
|
"vite": "^6.3.5",
|
|
57
57
|
"vitest": "^3.0.7",
|
|
58
|
-
"@gsa-tts/graymatter-
|
|
58
|
+
"@gsa-tts/graymatter-eslint": "0.0.2",
|
|
59
59
|
"@gsa-tts/graymatter-typescript-config": "0.0.2",
|
|
60
|
-
"@gsa-tts/graymatter-
|
|
60
|
+
"@gsa-tts/graymatter-vitest-config": "0.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@fontsource-variable/archivo": "^5.2.6",
|
|
@@ -24,10 +24,9 @@
|
|
|
24
24
|
shape?: 'round' | 'square';
|
|
25
25
|
href?: string;
|
|
26
26
|
disabled?: boolean;
|
|
27
|
-
size
|
|
27
|
+
size?: 'small' | 'medium' | 'large';
|
|
28
28
|
type?: 'button' | 'submit' | 'reset';
|
|
29
29
|
onclick?: (event: MouseEvent) => void;
|
|
30
|
-
children?: import('svelte').Snippet | null;
|
|
31
30
|
class?: string;
|
|
32
31
|
[key: `data-${string}`]: string;
|
|
33
32
|
[key: `aria-${string}`]: string;
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
href = undefined,
|
|
41
40
|
disabled = false,
|
|
42
41
|
onclick,
|
|
43
|
-
children = null,
|
|
44
42
|
size = 'medium',
|
|
45
43
|
type = 'button',
|
|
46
44
|
class: className = '',
|
|
@@ -73,11 +71,11 @@
|
|
|
73
71
|
|
|
74
72
|
{#if href}
|
|
75
73
|
<a class={mergedClasses()} {href} class:disabled {onclick} {...props}>
|
|
76
|
-
|
|
74
|
+
<slot />
|
|
77
75
|
</a>
|
|
78
76
|
{:else}
|
|
79
77
|
<button class={mergedClasses()} {type} {disabled} {onclick} {...props}>
|
|
80
|
-
|
|
78
|
+
<slot />
|
|
81
79
|
</button>
|
|
82
80
|
{/if}
|
|
83
81
|
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
ssrSelectedItem = undefined,
|
|
27
27
|
onNavToggle = undefined,
|
|
28
28
|
onNavItemClick = undefined,
|
|
29
|
-
children,
|
|
30
29
|
showAppIcons = true,
|
|
31
30
|
hideDiscover = true,
|
|
32
31
|
profileMenuData,
|
|
@@ -374,7 +373,7 @@
|
|
|
374
373
|
>
|
|
375
374
|
<div class="icon-container" part="chat-icon-container">
|
|
376
375
|
<div class="icon-wrapper">
|
|
377
|
-
<ChatIcon isSelected={isNavSelected('chat')
|
|
376
|
+
<ChatIcon isSelected={isNavSelected('chat')} />
|
|
378
377
|
</div>
|
|
379
378
|
</div>
|
|
380
379
|
<span class="nav-text">Chat</span>
|
|
@@ -398,7 +397,7 @@
|
|
|
398
397
|
>
|
|
399
398
|
<div class="icon-container" part="console-icon-container">
|
|
400
399
|
<div class="icon-wrapper">
|
|
401
|
-
<ConsoleIcon isSelected={isNavSelected('console')
|
|
400
|
+
<ConsoleIcon isSelected={isNavSelected('console')} />
|
|
402
401
|
</div>
|
|
403
402
|
</div>
|
|
404
403
|
<span class="nav-text">Console</span>
|
|
@@ -470,7 +469,7 @@
|
|
|
470
469
|
{#if sideNavExpanded()}
|
|
471
470
|
<div class="drawer-content" part="drawer-content">
|
|
472
471
|
<nav aria-label="Sub navigation" part="sub-navigation">
|
|
473
|
-
|
|
472
|
+
<slot />
|
|
474
473
|
</nav>
|
|
475
474
|
</div>
|
|
476
475
|
{/if}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
let sideMenuElement: HTMLDivElement;
|
|
12
12
|
let pendingMobileHash: string | null = null;
|
|
13
13
|
|
|
14
|
-
let { logoLinkUrl, logoLinkLabel
|
|
14
|
+
let { logoLinkUrl, logoLinkLabel } = $props();
|
|
15
15
|
|
|
16
16
|
function handleMobileAnchorNavigate(event: Event) {
|
|
17
17
|
const customEvent = event as CustomEvent;
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
<!-- Show submenu items if available and not on discover -->
|
|
181
181
|
{#if $selectedItem && $selectedItem !== 'discover'}
|
|
182
182
|
<div class="subnav-section" part="subnav-section">
|
|
183
|
-
|
|
183
|
+
<slot />
|
|
184
184
|
</div>
|
|
185
185
|
{:else}
|
|
186
186
|
<!-- Show message when no submenu is available -->
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
<script lang="ts">
|
|
8
8
|
import MobileSideMenu from './MobileSideMenu.svelte';
|
|
9
9
|
|
|
10
|
-
let { logoLinkUrl, logoLinkLabel
|
|
10
|
+
let { logoLinkUrl, logoLinkLabel } = $props();
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
-
<MobileSideMenu {logoLinkUrl} {logoLinkLabel}
|
|
13
|
+
<MobileSideMenu {logoLinkUrl} {logoLinkLabel}>
|
|
14
|
+
<slot />
|
|
15
|
+
</MobileSideMenu>
|