@hashrytech/quick-components-kit 0.20.3 → 0.20.4
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
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
disabled?: boolean;
|
|
43
43
|
required?: boolean;
|
|
44
44
|
pattern?: string;
|
|
45
|
-
error?: string;
|
|
45
|
+
error?: string;
|
|
46
|
+
showErrorText?: boolean;
|
|
46
47
|
labelClass?: ClassNameValue;
|
|
47
48
|
firstDivClass?: ClassNameValue;
|
|
48
49
|
secondDivClass?: ClassNameValue;
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
required=false,
|
|
84
85
|
pattern,
|
|
85
86
|
error,
|
|
87
|
+
showErrorText=true,
|
|
86
88
|
firstDivClass,
|
|
87
89
|
secondDivClass,
|
|
88
90
|
thirdDivClass,
|
|
@@ -201,7 +203,7 @@
|
|
|
201
203
|
|
|
202
204
|
</div>
|
|
203
205
|
|
|
204
|
-
{#if error}
|
|
206
|
+
{#if error && showErrorText}
|
|
205
207
|
<p class="text-sm text-red-500 mt-0.5 bg-red-100/30 px-2 rounded-primary">{error}</p>
|
|
206
208
|
{/if}
|
|
207
209
|
|