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 +3 -3
- package/package.json +1 -1
- package/source/components/datepicker/index.tsx +1 -1
- package/source/components/input/index.tsx +1 -1
- package/source/components/materialInput/index.tsx +3 -3
- package/source/components/multiselect/index.tsx +1 -1
- package/source/components/select/index.tsx +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# GBS Building Blocks 2.0 (v0.0.
|
|
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.
|
|
9
|
+
## What's New 🎉 (Ver 0.0.40)
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- Minor Update For Code Readability (Pre-Refactoring Job)
|
|
12
12
|
|
|
13
13
|
## Authors
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -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
|
|
158
|
+
{error && <p className={primary["error-primary"]}>{error}</p>}
|
|
159
159
|
|
|
160
160
|
{/* Hidden input to integrate with the form */}
|
|
161
161
|
<input
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
175
|
+
{error && <p className={primary["error-primary"]}>{error}</p>}
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
{/* Hidden input to integrate with the form */}
|