poe-svelte-ui-lib 1.4.3 → 1.4.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.
@@ -103,14 +103,7 @@
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%);
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
- : ''}"
106
+ style="background: color-mix(in srgb, var(--bg-color), var(--back-color) 70%); "
114
107
  onclick={toggleDropdown}
115
108
  aria-haspopup="true"
116
109
  aria-expanded={isDropdownOpen}
@@ -137,13 +130,7 @@
137
130
  onclick={(e) => selectOption(option, e)}
138
131
  {disabled}
139
132
  style="background: color-mix(in srgb, var(--bg-color), var(--back-color) 70%);
140
- {option.class?.split(' ').find((cls: string) => cls.startsWith('border-'))
141
- ? `border-width: 1px;
142
- border-color: var(--${option.class
143
- ?.split(' ')
144
- .find((cls: string) => cls.startsWith('border-'))
145
- ?.replace('border-', '')}-color)`
146
- : ''}"
133
+ "
147
134
  >
148
135
  {option.name}
149
136
  </button>
@@ -151,7 +138,7 @@
151
138
  </div>
152
139
  {/if}
153
140
  {:else if type === 'buttons'}
154
- <div id={`${id}-${crypto.randomUUID().slice(0, 6)}`} class="flex h-full w-full flex-row justify-center rounded-full border border-(--bg-color)">
141
+ <div id={`${id}-${crypto.randomUUID().slice(0, 6)}`} class="flex h-full w-full flex-row justify-center rounded-full">
155
142
  {#each options as option, index (option.id)}
156
143
  <button
157
144
  id={option.id}
@@ -162,14 +149,6 @@
162
149
  ${options.length > 0 && index === 0 ? 'rounded-l-2xl' : ''} ${index === options.length - 1 ? 'rounded-r-2xl' : ''}`,
163
150
  option.class,
164
151
  )} 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
- : ''}"
173
152
  onclick={(e) => selectOption(option, e)}
174
153
  disabled={option.disabled}
175
154
  >
@@ -220,13 +199,7 @@
220
199
  onclick={(e) => selectOption(option, e)}
221
200
  {disabled}
222
201
  style="background: color-mix(in srgb, var(--bg-color), var(--back-color) 70%);
223
- {option.class?.split(' ').find((cls: string) => cls.startsWith('border-'))
224
- ? `border-width: 1px;
225
- border-color: var(--${option.class
226
- ?.split(' ')
227
- .find((cls: string) => cls.startsWith('border-'))
228
- ?.replace('border-', '')}-color)`
229
- : ''}"
202
+ "
230
203
  >
231
204
  {option.name}
232
205
  </button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {