@iroco/ui 1.12.0 → 1.13.0

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.
@@ -62,7 +62,9 @@
62
62
  </li>
63
63
  {/each}
64
64
  </ul>
65
- <div class="nav__version">{version == null ? '' : version}</div>
65
+ {#if version != null}
66
+ <div class="nav__version">{version}</div>
67
+ {/if}
66
68
  </nav>
67
69
 
68
70
  <style>.container-wide {
@@ -17,8 +17,8 @@
17
17
  baseUrl = '',
18
18
  navigationItems,
19
19
  type = 'topbar',
20
- title = '',
21
- version = '',
20
+ title = null,
21
+ version = null,
22
22
  color = Color.green,
23
23
  currentRoute = '/foo'
24
24
  }: Props = $props();
@@ -33,7 +33,7 @@
33
33
  <IrocoLogo {href} width="10em" height="10em" />
34
34
  {:else}
35
35
  <IconIrocoLogo {href} width="3em" height="3em" {color} />
36
- <h1><a {href} class="navigation-mobile__title-link">{title}</a></h1>
36
+ <div class="navigation--mobile__title-container__title">{title}</div>
37
37
  {/if}
38
38
  </div>
39
39
 
@@ -59,7 +59,7 @@
59
59
  <IrocoLogo {href} width="10em" height="10em" />
60
60
  {:else}
61
61
  <IconIrocoLogo {href} width="3em" height="3em" />
62
- <h1><a class="navigation__title-link" {href}>{title}</a></h1>
62
+ <div class="navigation__title-container__title">{title}</div>
63
63
  {/if}
64
64
  </div>
65
65
  <NavBar {navigationItems} {currentRoute} {type} {version} />
@@ -237,7 +237,7 @@
237
237
  align-items: center;
238
238
  padding-left: 1em;
239
239
  }
240
- .navigation__title-container h1 {
240
+ .navigation__title-container__title {
241
241
  padding-left: 1em;
242
242
  }
243
243
 
@@ -256,9 +256,6 @@
256
256
  width: 100%;
257
257
  border-bottom: 1px solid var(--color-border);
258
258
  }
259
- .navigation--mobile h1 {
260
- font-size: 2em;
261
- }
262
259
  .navigation--mobile__button {
263
260
  background-color: transparent;
264
261
  border: none;
@@ -268,11 +265,13 @@
268
265
  display: flex;
269
266
  align-items: center;
270
267
  }
271
- .navigation--mobile__title-container h1 {
268
+ .navigation--mobile__title-container__title {
272
269
  padding-left: 0.5em;
273
270
  }
274
271
  }
275
- .navigation__title-link,
276
- .navigation-mobile__title-link {
272
+ .navigation__title-container__title,
273
+ .navigation--mobile__title-container__title {
277
274
  color: var(--color-text-light);
275
+ font-weight: bold;
276
+ font-size: 2em;
278
277
  }</style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {