not-bulma 1.2.73 → 1.2.74

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-bulma",
3
- "version": "1.2.73",
3
+ "version": "1.2.74",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -1,12 +1,23 @@
1
1
  <script>
2
+ import { onMount } from "svelte";
2
3
  import UIBoolean from "./ui.boolean.svelte";
3
4
 
4
5
  export let values = [];
5
6
  export let inverted = false;
6
7
  export let componentConstructor = UIBoolean;
8
+
9
+ let _values = [];
10
+
11
+ onMount(() => {
12
+ if (typeof values === "boolean") {
13
+ _values = [values];
14
+ } else if (Array.isArray(values)) {
15
+ _values = [...values];
16
+ }
17
+ });
7
18
  </script>
8
19
 
9
- {#each values as item}
20
+ {#each _values as item}
10
21
  <svelte:component
11
22
  this={componentConstructor}
12
23
  {...item}