@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
@@ -1,5 +1,11 @@
1
1
  # @hashrytech/quick-components-kit
2
2
 
3
+ ## 0.20.4
4
+
5
+ ### Patch Changes
6
+
7
+ - add: new showErrorText property
8
+
3
9
  ## 0.20.3
4
10
 
5
11
  ### Patch Changes
@@ -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
 
@@ -40,6 +40,7 @@ export type TextInputProps = {
40
40
  required?: boolean;
41
41
  pattern?: string;
42
42
  error?: string;
43
+ showErrorText?: boolean;
43
44
  labelClass?: ClassNameValue;
44
45
  firstDivClass?: ClassNameValue;
45
46
  secondDivClass?: ClassNameValue;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hashrytech/quick-components-kit.git"
7
7
  },
8
- "version": "0.20.3",
8
+ "version": "0.20.4",
9
9
  "license": "MIT",
10
10
  "author": "Hashry Tech",
11
11
  "files": [