@hashrytech/quick-components-kit 0.19.7 → 0.19.8
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/CHANGELOG.md
CHANGED
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
size?: TextInputSize;
|
|
42
42
|
disabled?: boolean;
|
|
43
43
|
required?: boolean;
|
|
44
|
-
|
|
44
|
+
pattern?: string;
|
|
45
|
+
error?: string;
|
|
45
46
|
labelClass?: ClassNameValue;
|
|
46
47
|
firstDivClass?: ClassNameValue;
|
|
47
48
|
secondDivClass?: ClassNameValue;
|
|
@@ -78,7 +79,8 @@
|
|
|
78
79
|
size="md",
|
|
79
80
|
disabled=false,
|
|
80
81
|
required=false,
|
|
81
|
-
|
|
82
|
+
pattern,
|
|
83
|
+
error,
|
|
82
84
|
firstDivClass,
|
|
83
85
|
secondDivClass,
|
|
84
86
|
thirdDivClass,
|
|
@@ -147,7 +149,7 @@
|
|
|
147
149
|
|
|
148
150
|
{#if leftIcon}<div class="h-full flex flex-col items-center justify-center {size == 'lg' ? 'pl-3' : 'pl-2.5'}">{@render leftIcon()}</div>{/if}
|
|
149
151
|
|
|
150
|
-
<input {disabled} {required} {type} {id} name={name ? name: id} {placeholder} {onmouseup} bind:value {autocomplete} {inputmode} {min} {max} oninput={handleInput}
|
|
152
|
+
<input {disabled} {required} {type} {id} name={name ? name: id} {placeholder} {pattern} {onmouseup} bind:value {autocomplete} {inputmode} {min} {max} oninput={handleInput}
|
|
151
153
|
class={twMerge("border-0 focus:border-0 focus:ring-0 active:border-0 outline-none p-0 bg-transparent placeholder:text-neutral-600/50 h-full w-full rounded-primary", sizeStyle[size], restProps.class)} />
|
|
152
154
|
|
|
153
155
|
{#if rightIcon}<div class="h-full flex flex-col items-center justify-center {size == 'lg' ? 'pr-3' : 'pr-2.5'}">{@render rightIcon()}</div>{/if}
|