@onsvisual/svelte-components 0.1.23 → 0.1.25

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,11 +1,13 @@
1
1
  declare namespace _default {
2
- namespace light {
3
- let text: string;
4
- let muted: string;
5
- let hinted: string;
6
- let pale: string;
7
- let background: string;
8
- }
2
+ let light: {
3
+ text: string;
4
+ muted: string;
5
+ hinted: string;
6
+ pale: string;
7
+ background: string;
8
+ link: string;
9
+ "link-hover": string;
10
+ };
9
11
  let dark: {
10
12
  text: string;
11
13
  muted: string;
@@ -15,15 +17,13 @@ declare namespace _default {
15
17
  link: string;
16
18
  "link-hover": string;
17
19
  };
18
- namespace lightblue {
19
- let text_1: string;
20
- export { text_1 as text };
21
- let muted_1: string;
22
- export { muted_1 as muted };
23
- let pale_1: string;
24
- export { pale_1 as pale };
25
- let background_1: string;
26
- export { background_1 as background };
27
- }
20
+ let lightblue: {
21
+ text: string;
22
+ muted: string;
23
+ pale: string;
24
+ background: string;
25
+ link: string;
26
+ "link-hover": string;
27
+ };
28
28
  }
29
29
  export default _default;
@@ -126,7 +126,8 @@
126
126
  <td
127
127
  class="ons-table__cell"
128
128
  class:ons-table__cell--numeric="{col.numeric}"
129
- data-th="{col.label}">{format(row[col.key], col.numeric)}</td
129
+ data-th="{col.label}"
130
+ >{@html row[col.key] ? format(row[col.key], col.numeric) : "&ndash;"}</td
130
131
  >
131
132
  {/each}
132
133
  </tr>
@@ -50,7 +50,7 @@
50
50
  <option value="{null}" selected disabled>{placeholder}</option>
51
51
  {/if}
52
52
  {#each options as option}
53
- <option value="{option}">{option.label}</option>
53
+ <option value="{option}">{option?.label || option}</option>
54
54
  {/each}
55
55
  </select>
56
56
  </div>
@@ -5,6 +5,8 @@ export default {
5
5
  hinted: "#e2e2e3",
6
6
  pale: "#f0f0f0",
7
7
  background: "#fff",
8
+ link: "#206095",
9
+ "link-hover": "#003c57",
8
10
  },
9
11
  dark: {
10
12
  text: "#fff",
@@ -20,5 +22,7 @@ export default {
20
22
  muted: "#707070",
21
23
  pale: "#f0f0f0",
22
24
  background: "rgb(233, 239, 244)",
25
+ link: "#206095",
26
+ "link-hover": "#003c57",
23
27
  },
24
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://onsvisual.github.io/svelte-components",