@likable-hair/svelte 0.0.59 → 0.0.60

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.
@@ -13,6 +13,7 @@
13
13
  id={id}
14
14
  type="checkbox"
15
15
  bind:checked={value}
16
+ on:change
16
17
  disabled={disabled}
17
18
  >
18
19
 
@@ -14,6 +14,8 @@ declare const __propDef: {
14
14
  disabledInnerColor?: string;
15
15
  };
16
16
  events: {
17
+ change: Event;
18
+ } & {
17
19
  [evt: string]: CustomEvent<any>;
18
20
  };
19
21
  slots: {};
@@ -1,6 +1,6 @@
1
1
  <script context="module"></script>
2
2
 
3
- <script >export let label = "", placeholder = "", color = null, value = "", disabled = false, variant = 'outlined', width = "100%", height = "50px", maxWidth = undefined, minWidth = undefined, textColor = "black", borderWeight = "2px", borderRadius = "5px", borderColor = null, focusBorderColor = null, focusedBoxShadow = undefined, backgroundColor = null, padding = undefined, paddingLeft = undefined, paddingRight = undefined, paddingBottom = undefined, paddingTop = undefined, fontSize = undefined, type = 'text', inputElement = undefined;
3
+ <script >export let label = "", placeholder = "", color = null, value = "", disabled = false, variant = 'outlined', width = "100%", height = "50px", maxWidth = undefined, minWidth = undefined, textColor = "black", borderWeight = "2px", borderRadius = "5px", borderColor = null, focusBorderColor = null, focusedBoxShadow = undefined, backgroundColor = null, padding = undefined, paddingLeft = undefined, paddingRight = undefined, paddingBottom = undefined, paddingTop = undefined, fontSize = undefined, type = 'text', readonly = false, inputElement = undefined;
4
4
  import { v4 as uuidv4 } from 'uuid';
5
5
  import { onMount } from 'svelte';
6
6
  let inputId = uuidv4(), focused = false, legendWidth = 0, labelElement = undefined;
@@ -166,6 +166,7 @@ $: if (!!labelElement) {
166
166
  type="password"
167
167
  placeholder={placeholder}
168
168
  disabled={disabled}
169
+ readonly={readonly}
169
170
  bind:value={value}
170
171
  on:change
171
172
  on:input
@@ -188,6 +189,7 @@ $: if (!!labelElement) {
188
189
  type="text"
189
190
  placeholder={placeholder}
190
191
  disabled={disabled}
192
+ readonly={readonly}
191
193
  bind:value={value}
192
194
  on:change
193
195
  on:input
@@ -222,6 +224,7 @@ $: if (!!labelElement) {
222
224
  type="password"
223
225
  placeholder={placeholder || label}
224
226
  disabled={disabled}
227
+ readonly={readonly}
225
228
  bind:value={value}
226
229
  on:change
227
230
  on:input
@@ -244,6 +247,7 @@ $: if (!!labelElement) {
244
247
  type="text"
245
248
  placeholder={placeholder || label}
246
249
  disabled={disabled}
250
+ readonly={readonly}
247
251
  bind:value={value}
248
252
  on:change
249
253
  on:input
@@ -26,6 +26,7 @@ declare const __propDef: {
26
26
  paddingTop?: string;
27
27
  fontSize?: string;
28
28
  type?: 'text' | 'password';
29
+ readonly?: boolean;
29
30
  inputElement?: HTMLElement;
30
31
  };
31
32
  events: {
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.59",
4
+ "version": "0.0.60",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",