@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.cjs
CHANGED
|
@@ -9759,7 +9759,7 @@ var getValueArray = (value) => {
|
|
|
9759
9759
|
return [];
|
|
9760
9760
|
};
|
|
9761
9761
|
var convertStringToValue = (stringValue, option) => {
|
|
9762
|
-
|
|
9762
|
+
console.log(stringValue, option);
|
|
9763
9763
|
if (option) {
|
|
9764
9764
|
return option.value;
|
|
9765
9765
|
}
|
|
@@ -9809,7 +9809,6 @@ function TogglesInternal({
|
|
|
9809
9809
|
const option2 = options.find((opt) => String(opt.value) === item);
|
|
9810
9810
|
return convertStringToValue(item, option2);
|
|
9811
9811
|
});
|
|
9812
|
-
debugger;
|
|
9813
9812
|
onChange?.(
|
|
9814
9813
|
typedValues,
|
|
9815
9814
|
{}
|
|
@@ -9819,6 +9818,9 @@ function TogglesInternal({
|
|
|
9819
9818
|
const singleValue = Array.isArray(newValue) ? newValue[0] : newValue;
|
|
9820
9819
|
const option = options.find((opt) => String(opt.value) === singleValue);
|
|
9821
9820
|
const typedValue = convertStringToValue(singleValue, option);
|
|
9821
|
+
{
|
|
9822
|
+
console.log("typedValues", typedValue);
|
|
9823
|
+
}
|
|
9822
9824
|
onChange?.(
|
|
9823
9825
|
typedValue,
|
|
9824
9826
|
{}
|