@iroco/ui 0.51.1 → 0.52.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.
package/Button.svelte CHANGED
@@ -266,17 +266,18 @@ export let node;
266
266
  .iroco-ui-button:active {
267
267
  box-shadow: none;
268
268
  }
269
- .iroco-ui-button .iroco-ui-link {
270
- background: none;
271
- border: none;
272
- font-family: "Arial";
273
- color: #f2ebe3;
274
- cursor: pointer;
275
- }
276
269
  .iroco-ui-button.disabled {
277
270
  background-color: #f5f5f5;
278
271
  cursor: default;
279
272
  }
280
273
  .iroco-ui-button.disabled:hover {
281
274
  box-shadow: none;
275
+ }
276
+
277
+ .iroco-ui-link {
278
+ background: none;
279
+ border: none;
280
+ font-family: "Arial";
281
+ color: #f2ebe3;
282
+ cursor: pointer;
282
283
  }</style>
package/NavBar.svelte CHANGED
@@ -4,6 +4,7 @@ import { navigating } from "$app/stores";
4
4
  import { NavigationItemType } from "./definition.js";
5
5
  export let navigationItems;
6
6
  export let type;
7
+ export let version = null;
7
8
  let active;
8
9
  const dispatch = createEventDispatcher();
9
10
  const handleClickLink = (menuItem) => {
@@ -50,6 +51,7 @@ $:
50
51
  </li>
51
52
  {/each}
52
53
  </ul>
54
+ <div class="nav__version">{version == null ? '' : version}</div>
53
55
  </nav>
54
56
 
55
57
  <style>.font-color-blue {
@@ -559,14 +561,6 @@ $:
559
561
  box-shadow: none;
560
562
  }
561
563
 
562
- .iroco-ui-button .iroco-ui-link {
563
- background: none;
564
- border: none;
565
- font-family: "Arial";
566
- color: #f2ebe3;
567
- cursor: pointer;
568
- }
569
-
570
564
  .iroco-ui-button.disabled {
571
565
  background-color: #f5f5f5;
572
566
  cursor: default;
@@ -576,6 +570,14 @@ $:
576
570
  box-shadow: none;
577
571
  }
578
572
 
573
+ .iroco-ui-link {
574
+ background: none;
575
+ border: none;
576
+ font-family: "Arial";
577
+ color: #f2ebe3;
578
+ cursor: pointer;
579
+ }
580
+
579
581
  .nav__sidebar__item, .nav__topbar__item {
580
582
  text-decoration: none;
581
583
  display: block;
@@ -616,6 +618,12 @@ $:
616
618
  border-bottom: 1px solid #00d692;
617
619
  }
618
620
 
621
+ .nav__sidebar__version {
622
+ margin-left: auto;
623
+ padding-left: 2em;
624
+ color: #464452;
625
+ }
626
+
619
627
  .nav__topbar {
620
628
  flex-grow: 1;
621
629
  display: flex;
@@ -674,6 +682,9 @@ $:
674
682
  .nav__sidebar__item:first-child {
675
683
  border-top: 1px solid #464452;
676
684
  }
685
+ .nav__sidebar__version {
686
+ display: none;
687
+ }
677
688
  .nav__topbar {
678
689
  height: 100%;
679
690
  }
@@ -4,6 +4,7 @@ declare const __propDef: {
4
4
  props: {
5
5
  navigationItems: Array<NavigationItem>;
6
6
  type: 'sidebar' | 'topbar';
7
+ version?: string | null | undefined;
7
8
  };
8
9
  events: {
9
10
  click: MouseEvent;
package/Navigation.svelte CHANGED
@@ -5,6 +5,7 @@ import NavBar from "./NavBar.svelte";
5
5
  export let navigationItems;
6
6
  export let type = "topbar";
7
7
  export let title = null;
8
+ export let version = null;
8
9
  let showMenu = false;
9
10
  </script>
10
11
 
@@ -28,6 +29,7 @@ let showMenu = false;
28
29
  on:click={() => (showMenu = false)}
29
30
  {type}
30
31
  {navigationItems}
32
+ {version}
31
33
  />
32
34
  {/if}
33
35
  </div>
@@ -41,7 +43,7 @@ let showMenu = false;
41
43
  <h1>{title}</h1>
42
44
  {/if}
43
45
  </div>
44
- <NavBar {navigationItems} {type} />
46
+ <NavBar {navigationItems} {type} {version} />
45
47
  </div>
46
48
 
47
49
  <style>.font-color-blue {
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  navigationItems: Array<NavigationItem>;
6
6
  type?: "sidebar" | "topbar" | undefined;
7
7
  title?: string | null | undefined;
8
+ version?: string | null | undefined;
8
9
  };
9
10
  events: {
10
11
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "0.51.1",
3
+ "version": "0.52.0",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "lib/index.ts",
6
6
  "svelte": "index.js",
package/scss/button.scss CHANGED
@@ -53,14 +53,6 @@
53
53
  box-shadow: none;
54
54
  }
55
55
 
56
- .iroco-ui-link {
57
- background: none;
58
- border: none;
59
- font-family: fonts.$arial;
60
- color: colors.$beige;
61
- cursor: pointer;
62
- }
63
-
64
56
  &.disabled {
65
57
  background-color: colors.$lightGrey;
66
58
  cursor: default;
@@ -69,3 +61,11 @@
69
61
  }
70
62
  }
71
63
  }
64
+
65
+ .iroco-ui-link {
66
+ background: none;
67
+ border: none;
68
+ font-family: fonts.$arial;
69
+ color: colors.$beige;
70
+ cursor: pointer;
71
+ }