poe-svelte-ui-lib 1.4.2 → 1.4.3
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/dist/Select/Select.svelte +16 -1
- package/package.json +1 -1
|
@@ -103,7 +103,14 @@
|
|
|
103
103
|
${disabled ? 'opacity-50' : 'cursor-pointer hover:shadow-md'}`,
|
|
104
104
|
value?.class,
|
|
105
105
|
)}
|
|
106
|
-
style="background: color-mix(in srgb, var(--bg-color), var(--back-color) 70%);
|
|
106
|
+
style="background: color-mix(in srgb, var(--bg-color), var(--back-color) 70%);
|
|
107
|
+
{value?.class?.split(' ').find((cls: string) => cls.startsWith('border-'))
|
|
108
|
+
? `border-width: 1px;
|
|
109
|
+
border-color: var(--${value.class
|
|
110
|
+
?.split(' ')
|
|
111
|
+
.find((cls: string) => cls.startsWith('border-'))
|
|
112
|
+
?.replace('border-', '')}-color)`
|
|
113
|
+
: ''}"
|
|
107
114
|
onclick={toggleDropdown}
|
|
108
115
|
aria-haspopup="true"
|
|
109
116
|
aria-expanded={isDropdownOpen}
|
|
@@ -155,6 +162,14 @@
|
|
|
155
162
|
${options.length > 0 && index === 0 ? 'rounded-l-2xl' : ''} ${index === options.length - 1 ? 'rounded-r-2xl' : ''}`,
|
|
156
163
|
option.class,
|
|
157
164
|
)} bg-(--bg-color)"
|
|
165
|
+
style="
|
|
166
|
+
{option.class?.split(' ').find((cls: string) => cls.startsWith('border-'))
|
|
167
|
+
? `border-width: 1px;
|
|
168
|
+
border-color: var(--${option.class
|
|
169
|
+
?.split(' ')
|
|
170
|
+
.find((cls: string) => cls.startsWith('border-'))
|
|
171
|
+
?.replace('border-', '')}-color)`
|
|
172
|
+
: ''}"
|
|
158
173
|
onclick={(e) => selectOption(option, e)}
|
|
159
174
|
disabled={option.disabled}
|
|
160
175
|
>
|