@chekinapp/ui 0.0.69 → 0.0.70
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/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9406,7 +9406,7 @@ var getValueArray = (value) => {
|
|
|
9406
9406
|
return [];
|
|
9407
9407
|
};
|
|
9408
9408
|
var convertStringToValue = (stringValue, option) => {
|
|
9409
|
-
|
|
9409
|
+
console.log(stringValue, option);
|
|
9410
9410
|
if (option) {
|
|
9411
9411
|
return option.value;
|
|
9412
9412
|
}
|
|
@@ -9456,7 +9456,6 @@ function TogglesInternal({
|
|
|
9456
9456
|
const option2 = options.find((opt) => String(opt.value) === item);
|
|
9457
9457
|
return convertStringToValue(item, option2);
|
|
9458
9458
|
});
|
|
9459
|
-
debugger;
|
|
9460
9459
|
onChange?.(
|
|
9461
9460
|
typedValues,
|
|
9462
9461
|
{}
|
|
@@ -9466,6 +9465,9 @@ function TogglesInternal({
|
|
|
9466
9465
|
const singleValue = Array.isArray(newValue) ? newValue[0] : newValue;
|
|
9467
9466
|
const option = options.find((opt) => String(opt.value) === singleValue);
|
|
9468
9467
|
const typedValue = convertStringToValue(singleValue, option);
|
|
9468
|
+
{
|
|
9469
|
+
console.log("typedValues", typedValue);
|
|
9470
|
+
}
|
|
9469
9471
|
onChange?.(
|
|
9470
9472
|
typedValue,
|
|
9471
9473
|
{}
|