iconograph-ui 1.2.7 → 1.2.9

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.
@@ -2,11 +2,20 @@
2
2
  export let name;
3
3
  export let type;
4
4
  export let value;
5
+ export let options = []
5
6
  export let required = false;
6
7
  </script>
7
8
 
8
9
  {#if type == "textarea"}
9
10
  <textarea name="{name}" bind:value={value} ></textarea>
11
+ {:else if type == "select" }
12
+ <select name="{name}" bind:value={value} >
13
+ {#each options as opt}
14
+ <option value={opt}>
15
+ {opt}
16
+ </option>
17
+ {/each}
18
+ </select>
10
19
  {:else}
11
20
  <input type={type} name="{name}" bind:value={value} autocomplete="on" required={required} />
12
21
  {/if}
@@ -28,7 +37,8 @@ textarea {
28
37
  max-width: calc(100% - 28px);
29
38
  min-height: 100px;
30
39
  }
31
- /*select {
40
+ select {
41
+ font-family: var(--theme-text-font);
32
42
  background-color: #f5f5fb;
33
43
  border: none;
34
44
  border-radius: 6px;
@@ -36,6 +46,6 @@ textarea {
36
46
  font-size: 14px;
37
47
  line-height: 14px;
38
48
  font-weight: 500;
39
- }*/
49
+ }
40
50
 
41
51
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iconograph-ui",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "A Svelte Kit components library",
5
5
  "main": "./index.js",
6
6
  "svelte": "./index.js",