@gsa-tts/graymatter-ui 0.4.3 → 0.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gsa-tts/graymatter-ui",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -69,7 +69,6 @@
69
69
  "@fontsource-variable/archivo": "^5.2.6",
70
70
  "@fontsource/space-mono": "^5.2.8",
71
71
  "@uswds/uswds": "3.12.0",
72
- "slugify": "^1.6.6",
73
72
  "unist-util-visit": "^5.0.0",
74
73
  "@gsa-tts/graymatter-style-tokens": "0.3.17"
75
74
  },
@@ -5,8 +5,6 @@
5
5
  import ChatIcon from './icons/ChatIcon.svelte';
6
6
  import ConsoleIcon from './icons/ConsoleIcon.svelte';
7
7
  import ApiIcon from './icons/ApiIcon.svelte';
8
- import * as slugifyModule from 'slugify';
9
- const slugify = slugifyModule.default || slugifyModule;
10
8
 
11
9
  let {
12
10
  onNavItemClick,
@@ -131,10 +129,10 @@
131
129
  {#each navItems as navItem}
132
130
  <a
133
131
  href={navItem.href}
134
- class={`nav-item ${slugify(navItem.id)}-item`}
132
+ class={`nav-item ${navItem.id}-item`}
135
133
  class:active={$selectedItem === navItem.id}
136
134
  onclick={() => handleNavItemClick(navItem.id)}
137
- part={`${slugify(navItem.id)}-item`}
135
+ part={`${navItem.id}-item`}
138
136
  >
139
137
  <div class="icon">
140
138
  <navItem.icon isSelected={$selectedItem === navItem.id} />
@@ -28,16 +28,6 @@ export function setupCommonMocks() {
28
28
  };
29
29
  });
30
30
 
31
- vi.mock('slugify', () => {
32
- const mockSlugify = (x: string) => x.toLowerCase().replace(/ /g, '-');
33
- return {
34
- __esModule: true,
35
- default: mockSlugify,
36
- // Support both named and default exports
37
- slugify: mockSlugify,
38
- };
39
- });
40
-
41
31
  vi.stubGlobal(
42
32
  'window',
43
33
  Object.create(window, {