@timeax/form-palette 0.1.13 → 0.1.15

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/extra.mjs CHANGED
@@ -14362,7 +14362,7 @@ var ShadcnChipsVariant = React72.forwardRef(function ShadcnChipsVariant2(props,
14362
14362
  {
14363
14363
  "data-slot": "chips-upper",
14364
14364
  className: cn(
14365
- "flex items-center gap-1 text-xs",
14365
+ "flex items-center gap-1 text-xs flex-wrap",
14366
14366
  chipsClassName
14367
14367
  ),
14368
14368
  children: [
@@ -15424,6 +15424,13 @@ function isEqualValue2(a3, b2) {
15424
15424
  function asGroupValue(value) {
15425
15425
  if (!value) return void 0;
15426
15426
  if (Array.isArray(value)) return value;
15427
+ if (typeof value == "object")
15428
+ return Object.keys(value).map(
15429
+ (key) => ({
15430
+ value: key,
15431
+ state: value[key]
15432
+ })
15433
+ );
15427
15434
  return void 0;
15428
15435
  }
15429
15436
  function asSingleValue(value) {
@@ -15648,7 +15655,9 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
15648
15655
  nativeEvent: void 0,
15649
15656
  meta: void 0
15650
15657
  };
15651
- onValue(nextList, detail);
15658
+ const value2 = {};
15659
+ nextList.forEach((item) => value2[item.value] = item.state);
15660
+ onValue(value2, detail);
15652
15661
  },
15653
15662
  [onValue, disabled, groupValue]
15654
15663
  );