@marianmeres/stuic 1.60.0 → 1.61.0
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.
|
@@ -21,7 +21,6 @@ const _PRESET = {
|
|
|
21
21
|
box: "mb-4 grid",
|
|
22
22
|
// gap-4
|
|
23
23
|
wrap: `
|
|
24
|
-
flex items-center
|
|
25
24
|
rounded-md border border-gray-300
|
|
26
25
|
bg-gray-100
|
|
27
26
|
focus-within:border-stuic-primary
|
|
@@ -175,27 +174,29 @@ $:
|
|
|
175
174
|
class:cursor-not-allowed={disabled}
|
|
176
175
|
class:opacity-50={disabled}
|
|
177
176
|
>
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
177
|
+
<div class="flex">
|
|
178
|
+
<slot name="input_before" {id} />
|
|
179
|
+
<select
|
|
180
|
+
class={_inputClass}
|
|
181
|
+
bind:value
|
|
182
|
+
bind:this={_inputEl}
|
|
183
|
+
{id}
|
|
184
|
+
{disabled}
|
|
185
|
+
{required}
|
|
186
|
+
{tabindex}
|
|
187
|
+
{autofocus}
|
|
188
|
+
{name}
|
|
189
|
+
use:validateAction={validate
|
|
190
|
+
? { ...(validate === true ? {} : validate), setValidationResult }
|
|
191
|
+
: undefined}
|
|
192
|
+
>
|
|
193
|
+
{#each _options as o, i}
|
|
194
|
+
<option value={o.value}>{o.label}</option>
|
|
195
|
+
{/each}
|
|
196
|
+
</select>
|
|
197
197
|
|
|
198
|
-
|
|
198
|
+
<slot name="input_after" {id} />
|
|
199
|
+
</div>
|
|
199
200
|
</div>
|
|
200
201
|
{#if validation && !validation?.valid}
|
|
201
202
|
<div transition:slide={{ duration: 150 }} class={_validationMessageClass}>
|