@likable-hair/svelte 0.0.65 → 0.0.67

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.
@@ -202,6 +202,29 @@ $: if (!!labelElement) {
202
202
  on:keyup
203
203
  bind:this={inputElement}
204
204
  />
205
+ {:else if type == 'number'}
206
+ <input
207
+ style:background-color={backgroundColor}
208
+ style:color={textColor}
209
+ style:font-size={fontSize}
210
+ id={inputId}
211
+ class="input-outlined"
212
+ type="number"
213
+ placeholder={placeholder}
214
+ disabled={disabled}
215
+ readonly={readonly}
216
+ bind:value={value}
217
+ on:change
218
+ on:input
219
+ on:focus={handleFocus}
220
+ on:focus
221
+ on:blur={handleBlur}
222
+ on:blur
223
+ on:keydown
224
+ on:keypress
225
+ on:keyup
226
+ bind:this={inputElement}
227
+ />
205
228
  {/if}
206
229
  <div>
207
230
  <slot name="append-inner"></slot>
@@ -260,6 +283,29 @@ $: if (!!labelElement) {
260
283
  on:keyup
261
284
  bind:this={inputElement}
262
285
  />
286
+ {:else if type == 'number'}
287
+ <input
288
+ style:background-color={backgroundColor}
289
+ style:color={textColor}
290
+ style:font-size={fontSize}
291
+ id={inputId}
292
+ class="input-boxed"
293
+ type="number"
294
+ placeholder={placeholder || label}
295
+ disabled={disabled}
296
+ readonly={readonly}
297
+ bind:value={value}
298
+ on:change
299
+ on:input
300
+ on:focus={handleFocus}
301
+ on:focus
302
+ on:blur={handleBlur}
303
+ on:blur
304
+ on:keydown
305
+ on:keypress
306
+ on:keyup
307
+ bind:this={inputElement}
308
+ />
263
309
  {/if}
264
310
  <div>
265
311
  <slot name="append-inner"></slot>
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  label?: string;
6
6
  placeholder?: string;
7
7
  color?: string;
8
- value?: string;
8
+ value?: string | number;
9
9
  disabled?: boolean;
10
10
  variant?: VariantOptions;
11
11
  width?: string;
@@ -25,7 +25,7 @@ declare const __propDef: {
25
25
  paddingBottom?: string;
26
26
  paddingTop?: string;
27
27
  fontSize?: string;
28
- type?: 'text' | 'password';
28
+ type?: 'text' | 'password' | 'number';
29
29
  readonly?: boolean;
30
30
  inputElement?: HTMLElement;
31
31
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "0.0.65",
4
+ "version": "0.0.67",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",