gbs-add-block 0.0.39 → 0.0.40

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # GBS Building Blocks 2.0 (v0.0.39)
1
+ # GBS Building Blocks 2.0 (v0.0.40)
2
2
 
3
3
  Latest and upgraded version of GBS building blocks with headless UI and removed dependencies.
4
4
 
@@ -6,9 +6,9 @@ Latest and upgraded version of GBS building blocks with headless UI and removed
6
6
 
7
7
  For detailed documentation on usage and props, Please visit: [Building Block Documentation v2.0](https://blackmax-designs.gitbook.io/building-block-v2.0)
8
8
 
9
- ## What's New 🎉 (Ver 0.0.39)
9
+ ## What's New 🎉 (Ver 0.0.40)
10
10
 
11
- - Form Renderer Now Supports Date Picker and CheckBox
11
+ - Minor Update For Code Readability (Pre-Refactoring Job)
12
12
 
13
13
  ## Authors
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbs-add-block",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "React Component Library",
5
5
  "files": [
6
6
  "index.js",
@@ -155,7 +155,7 @@ export const DatePicker = ({
155
155
  {selectedDate ? selectedDate.toLocaleDateString() : placeholder}
156
156
  </span>
157
157
  </button>
158
- <p className={primary["error-primary"]}>{error && error}</p>
158
+ {error && <p className={primary["error-primary"]}>{error}</p>}
159
159
 
160
160
  {/* Hidden input to integrate with the form */}
161
161
  <input
@@ -93,7 +93,7 @@ export const Input = ({
93
93
  />
94
94
  </button>
95
95
  )}
96
- <div className="text-xs text-red-500">{error && error}</div>
96
+ {error && <div className="text-xs text-red-500">{error}</div>}
97
97
  </div>
98
98
  ) : (
99
99
  <div className="otp-container">
@@ -62,7 +62,7 @@ const MaterialInput = ({
62
62
  ${
63
63
  error
64
64
  ? "border-red-500 focus:border-red-500"
65
- : "border-gray-300 focus:border-blue-500"
65
+ : "border-gray-300 focus:border-black"
66
66
  }
67
67
  ${disabled ? "text-gray-400 cursor-not-allowed" : "text-gray-900"}
68
68
  `}
@@ -91,7 +91,7 @@ const MaterialInput = ({
91
91
  ${
92
92
  error
93
93
  ? "border-red-500 focus:border-red-500"
94
- : "border-gray-300 focus:border-blue-500"
94
+ : "border-gray-300 focus:border-black"
95
95
  }
96
96
  ${disabled ? "text-gray-400 cursor-not-allowed" : "text-gray-900"}
97
97
  `}
@@ -109,7 +109,7 @@ const MaterialInput = ({
109
109
  error
110
110
  ? "text-red-500"
111
111
  : isFocused
112
- ? "text-blue-500"
112
+ ? "text-black"
113
113
  : "text-gray-500"
114
114
  }
115
115
  ${disabled ? "text-gray-400 cursor-not-allowed" : ""}
@@ -177,7 +177,7 @@ const MultiSelect = forwardRef<MultiSelectHandle, MultiSelectProps>(
177
177
  </button>
178
178
  </div>
179
179
  </div>
180
- <p className={primary["error-primary"]}>{error && error}</p>
180
+ {error && <p className={primary["error-primary"]}>{error}</p>}
181
181
 
182
182
  {/* Hidden input to integrate with the form */}
183
183
  <input
@@ -172,7 +172,7 @@ const Select = forwardRef<SelectHandle, SelectProps>((props, ref) => {
172
172
  />
173
173
  </button>
174
174
  )}
175
- <p className={primary["error-primary"]}>{error && error}</p>
175
+ {error && <p className={primary["error-primary"]}>{error}</p>}
176
176
  </div>
177
177
 
178
178
  {/* Hidden input to integrate with the form */}