@kws3/ui 1.9.0 → 1.9.1
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/CHANGELOG.mdx
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 1.9.1
|
|
2
|
+
- `SearchableSelect` and `MultiSelect`: match colors of dropdown area to theme color when dropdown area is inside a `Portal`
|
|
3
|
+
- `AutoComplete`: match colors of dropdown area to theme color when dropdown area is inside a `Portal`
|
|
4
|
+
|
|
1
5
|
## 1.9.0
|
|
2
6
|
- Use new fuzzy algorithm for `AutoComplete`,`MultiSelect` and `SearchableSelect` component
|
|
3
7
|
- Add property `scoreThreshold` in `AutoComplete`,`MultiSelect` and `SearchableSelect` component to control search accuracy.
|
|
@@ -66,7 +66,9 @@ Default value: `<span>{option.label}</span>`
|
|
|
66
66
|
class="button is-paddingless delete is-medium is-loading" />
|
|
67
67
|
{/if}
|
|
68
68
|
{#if rootContainer}
|
|
69
|
-
<div
|
|
69
|
+
<div
|
|
70
|
+
class="kws-autocomplete is-{color || 'primary'}"
|
|
71
|
+
use:portal={dropdown_portal}>
|
|
70
72
|
<ul bind:this={dropdown} class="options" class:hidden={!show_options}>
|
|
71
73
|
{#each filtered_options as option}
|
|
72
74
|
<li
|
|
@@ -120,7 +120,9 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
120
120
|
style={shouldShowClearAll ? "" : "display: none;"} />
|
|
121
121
|
{/if}
|
|
122
122
|
{#if rootContainer}
|
|
123
|
-
<div
|
|
123
|
+
<div
|
|
124
|
+
class="kws-searchableselect is-{color || 'primary'}"
|
|
125
|
+
use:portal={dropdown_portal}>
|
|
124
126
|
<ul
|
|
125
127
|
bind:this={dropdown}
|
|
126
128
|
class="options {single ? 'is-single' : 'is-multi'}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kws3/ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "UI components for use with Svelte v3 applications.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"text-mask-core": "^5.1.2",
|
|
31
31
|
"tippy.js": "^6.3.1"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "cc856b925257a0978959fa01b32b7bea6dc52c5c"
|
|
34
34
|
}
|
package/styles/Select.scss
CHANGED
|
@@ -187,7 +187,7 @@ $kws-select-options-z-index: $__modal-z + 1 !default;
|
|
|
187
187
|
$color-invert: nth($pair, 2);
|
|
188
188
|
$color-light: findLightColor($color);
|
|
189
189
|
$color-dark: findDarkColor($color);
|
|
190
|
-
.searchableselect {
|
|
190
|
+
.kws-searchableselect {
|
|
191
191
|
&.is-#{$name} {
|
|
192
192
|
border-color: $color;
|
|
193
193
|
&:focus-within {
|