@enki-tek/fms-web-components 0.1.47 → 0.1.49

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.
@@ -69,7 +69,7 @@
69
69
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
70
70
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
71
71
  @import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
72
- .nav-item, .sidebar-open-ul, :global(.flex-column), .icons, .icon-sidebar-content .toggle-button {
72
+ .nav-item, .icons, .icon-sidebar-content .toggle-button {
73
73
  color: #ffffff;
74
74
  }
75
75
  .line-open, .line {
@@ -121,10 +121,6 @@ li.icons:hover {
121
121
  :global(.offcanvas-body) {
122
122
  padding: 0rem 0rem;
123
123
  }
124
- .offcanvas-title {
125
- color: #ffffff;
126
- font-size: 28px;
127
- }
128
124
  .nav-item {
129
125
  padding: 18px 32px;
130
126
  }
@@ -12,7 +12,7 @@
12
12
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
13
13
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
14
14
  @import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
15
- .nav-item, .sidebar-open-ul, :global(.flex-column), .icons, .icon-sidebar-content .toggle-button {
15
+ .nav-item, .icons, .icon-sidebar-content .toggle-button {
16
16
  color: #ffffff;
17
17
  }
18
18
  .line-open, .line {
@@ -64,10 +64,6 @@ li.icons:hover {
64
64
  :global(.offcanvas-body) {
65
65
  padding: 0rem 0rem;
66
66
  }
67
- .offcanvas-title {
68
- color: #ffffff;
69
- font-size: 28px;
70
- }
71
67
  .nav-item {
72
68
  padding: 18px 32px;
73
69
  }
@@ -10,7 +10,7 @@
10
10
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
11
11
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
12
12
  @import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
13
- .nav-item, .sidebar-open-ul, :global(.flex-column), .icons, .icon-sidebar-content .toggle-button {
13
+ .nav-item, .icons, .icon-sidebar-content .toggle-button {
14
14
  color: #ffffff;
15
15
  }
16
16
  .line-open, .line {
@@ -62,10 +62,6 @@ li.icons:hover {
62
62
  :global(.offcanvas-body) {
63
63
  padding: 0rem 0rem;
64
64
  }
65
- .offcanvas-title {
66
- color: #ffffff;
67
- font-size: 28px;
68
- }
69
65
  .nav-item {
70
66
  padding: 18px 32px;
71
67
  }
@@ -19,7 +19,7 @@
19
19
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
20
20
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
21
21
  @import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
22
- .nav-item, .sidebar-open-ul, :global(.flex-column), .icons, .icon-sidebar-content .toggle-button {
22
+ .nav-item, .icons, .icon-sidebar-content .toggle-button {
23
23
  color: #ffffff;
24
24
  }
25
25
  .line-open, .line {
@@ -71,10 +71,6 @@ li.icons:hover {
71
71
  :global(.offcanvas-body) {
72
72
  padding: 0rem 0rem;
73
73
  }
74
- .offcanvas-title {
75
- color: #ffffff;
76
- font-size: 28px;
77
- }
78
74
  .nav-item {
79
75
  padding: 18px 32px;
80
76
  }
@@ -81,18 +81,6 @@ li.icons:hover {
81
81
  padding: 0rem 0rem;
82
82
  }
83
83
 
84
- .offcanvas-title {
85
- color: $white;
86
- font-size: 28px;
87
- }
88
-
89
- :global(.flex-column) {
90
- @extend %common-styles;
91
- }
92
-
93
- .sidebar-open-ul {
94
- @extend %common-styles;
95
- }
96
84
 
97
85
 
98
86
  .nav-item {
@@ -1,5 +1,8 @@
1
+ <script>
2
+ export let selected = false;
3
+ </script>
1
4
 
2
- <div class=" m-2 gray-card">
5
+ <div class="m-2 gray-card {selected ? 'selected' : ''}">
3
6
  <slot />
4
7
  </div>
5
8
 
@@ -54,4 +57,7 @@
54
57
  padding: 1rem;
55
58
  border-radius: 0.75rem;
56
59
  font-family: Roboto;
60
+ }
61
+ .gray-card.selected {
62
+ background-color: #DEE2E6 !important;
57
63
  }</style>
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} GrayCardEvents */
3
3
  /** @typedef {typeof __propDef.slots} GrayCardSlots */
4
4
  export default class GrayCard extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ selected?: boolean | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type GrayCardSlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ selected?: boolean | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -68,4 +68,7 @@
68
68
  padding: 1rem;
69
69
  border-radius: 0.75rem;
70
70
  font-family: Roboto;
71
+ }
72
+ .gray-card.selected {
73
+ background-color: #DEE2E6 !important;
71
74
  }</style>
@@ -58,4 +58,8 @@
58
58
  padding: $rem;
59
59
  border-radius: calc((3*$rem)/4);
60
60
  font-family: $bodyFonts;
61
+ }
62
+
63
+ .gray-card.selected {
64
+ background-color: $gray-300 !important;
61
65
  }
@@ -63,6 +63,9 @@
63
63
  border-radius: 0.75rem;
64
64
  font-family: Roboto;
65
65
  }
66
+ .gray-card.selected {
67
+ background-color: #DEE2E6 !important;
68
+ }
66
69
  .blip {
67
70
  animation: blip 5s; /* Continuous animation */
68
71
  }
@@ -78,4 +78,7 @@
78
78
  padding: 1rem;
79
79
  border-radius: 0.75rem;
80
80
  font-family: Roboto;
81
+ }
82
+ .gray-card.selected {
83
+ background-color: #DEE2E6 !important;
81
84
  }</style>
@@ -62,4 +62,7 @@
62
62
  padding: 1rem;
63
63
  border-radius: 0.75rem;
64
64
  font-family: Roboto;
65
+ }
66
+ .gray-card.selected {
67
+ background-color: #DEE2E6 !important;
65
68
  }</style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",