@enki-tek/fms-web-components 0.1.48 → 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.
@@ -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.48",
3
+ "version": "0.1.49",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",