@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.
@@ -183,7 +183,7 @@ $:
183
183
  class:cursor-not-allowed={disabled}
184
184
  class:opacity-50={disabled}
185
185
  >
186
- <div class="flex items-center">
186
+ <div class="flex">
187
187
  <slot name="input_before" {id} />
188
188
  {#if type === 'textarea'}
189
189
  <textarea
@@ -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
- <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>
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
- <slot name="input_after" {id} />
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}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.60.0",
3
+ "version": "1.61.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",