iconograph-ui 1.6.2 → 1.6.4

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.
@@ -25,7 +25,8 @@
25
25
 
26
26
  <!-- svelte-ignore a11y_click_events_have_key_events -->
27
27
  <!-- svelte-ignore a11y_no_static_element_interactions -->
28
- <div class="dropdown {open ? 'open' : ''}" bind:this={dropdownEl} use:clickOutside on:click_outside={() => {open = false}}
28
+ <div class="dropdown {open ? 'open' : ''} {style == "icon" ? 'icon' : ''}"
29
+ bind:this={dropdownEl} use:clickOutside on:click_outside={() => {open = false}}
29
30
  on:click|preventDefault|stopPropagation={openDropdown}>
30
31
  {#if style == "icon"}
31
32
  <div style:background-image={`url("${detailsIcon}")`} class="icon"></div>
@@ -53,9 +54,12 @@
53
54
  .dropdown {
54
55
  position: relative;
55
56
  display: flex;
56
- height: var(--theme-input-height, 40px);
57
+ height: var(--theme-button-height, 40px);
57
58
  flex: 1;
58
59
  }
60
+ .dropdown.icon {
61
+ height: 32px;
62
+ }
59
63
  .dropdown.open {
60
64
  border-bottom-left-radius: 0px;
61
65
  border-bottom-right-radius: 0px;
@@ -84,10 +88,12 @@
84
88
  }
85
89
  .dropdown > div:first-of-type.icon {
86
90
  min-width: 1px;
91
+ width: 32px;
92
+ max-width: 32px;
87
93
  background-size: 16px auto;
88
94
  background-repeat: no-repeat;
89
95
  background-position: center center;
90
- padding-left: 24px;
96
+ padding: 0px;
91
97
  }
92
98
  .list {
93
99
  position: absolute;
@@ -21,14 +21,14 @@
21
21
  let dropdownEl;
22
22
  let coords = { top: 0, left: 0, width: 0 };
23
23
 
24
+ uri = `${uri}?limit=50&page=1`
25
+ if (parentId)
26
+ uri = `${uri}&parentId=${parentId}`
27
+
24
28
  async function handleFilter() {
25
29
  waiting = true;
26
30
 
27
- uri = `${uri}?contains=${search}&limit=15&page=1`
28
- if (parentId)
29
- uri = `${uri}&parentId=${parentId}`
30
-
31
- const response = await fetch(uri, {
31
+ const response = await fetch(`${uri}&contains=${search}`, {
32
32
  method: 'GET',
33
33
  headers: { 'Content-Type': 'application/json' }
34
34
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iconograph-ui",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "A Svelte Kit components library",
5
5
  "main": "./index.js",
6
6
  "svelte": "./index.js",