hamzus-ui 0.0.40 → 0.0.42
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.
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
export let desabled = false;
|
|
7
7
|
export let onClick = undefined;
|
|
8
8
|
export let label = '';
|
|
9
|
+
export let type = 'button';
|
|
9
10
|
export let avoidRipple = false;
|
|
10
11
|
// local var
|
|
11
12
|
let button;
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
}
|
|
43
44
|
</script>
|
|
44
45
|
|
|
45
|
-
<button bind:this={button} on:click={handleClick} on:mousedown={createRipple} class="button h4" class:desabled class:loading {...$$restProps}>
|
|
46
|
+
<button bind:this={button} on:click={handleClick} on:mousedown={createRipple} class="button h4" class:desabled class:loading {...$$restProps} {type}>
|
|
46
47
|
{#if label}
|
|
47
48
|
<h4>{label}</h4>
|
|
48
49
|
{:else}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
export let label = '';
|
|
11
11
|
export let labelType = 'h5';
|
|
12
12
|
export let onChange = () => {};
|
|
13
|
+
export let onFocus = () => {};
|
|
14
|
+
export let onBlur = () => {};
|
|
13
15
|
export let name = '';
|
|
14
16
|
export let value = '';
|
|
15
17
|
export let initialValue = value;
|
|
@@ -115,6 +117,8 @@
|
|
|
115
117
|
>
|
|
116
118
|
<slot name="startContent" />
|
|
117
119
|
<input
|
|
120
|
+
on:focus={onFocus}
|
|
121
|
+
on:blur={onBlur}
|
|
118
122
|
on:input={handleChange}
|
|
119
123
|
class="h4"
|
|
120
124
|
{placeholder}
|