@agility/plenum-ui 1.3.19 → 1.3.20
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/lib/index.js
CHANGED
|
@@ -12794,6 +12794,9 @@ var Select = function (_a) {
|
|
|
12794
12794
|
/** Comment */
|
|
12795
12795
|
var Checkbox = function (_a) {
|
|
12796
12796
|
var label = _a.label, id = _a.id, isDisabled = _a.isDisabled, isChecked = _a.isChecked, isRequired = _a.isRequired, isError = _a.isError, message = _a.message, value = _a.value, onChange = _a.onChange;
|
|
12797
|
+
var uniqueID = useId();
|
|
12798
|
+
if (!id)
|
|
12799
|
+
id = "cb-".concat(uniqueID);
|
|
12797
12800
|
var checboxStyles = cn('focus:ring-purple-500 h-4 w-4 text-purple-600 border-gray-300 rounded', { 'border-red-500 shadow-none': isError });
|
|
12798
12801
|
var wrapperStyles = cn('relative flex items-start', { 'opacity-50': isDisabled });
|
|
12799
12802
|
var handleChange = function (e) {
|