@timeax/form-palette 0.0.34 → 0.0.36

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.mjs CHANGED
@@ -15601,6 +15601,7 @@ var InnerShadcnRadioVariant = (props, ref) => {
15601
15601
  required,
15602
15602
  // radio UI
15603
15603
  items,
15604
+ options,
15604
15605
  mappers,
15605
15606
  optionValue,
15606
15607
  optionLabel,
@@ -15628,13 +15629,13 @@ var InnerShadcnRadioVariant = (props, ref) => {
15628
15629
  const hasError = !!error;
15629
15630
  const normalized = React67.useMemo(
15630
15631
  () => normalizeItems(
15631
- items,
15632
+ items != null ? items : options,
15632
15633
  mappers,
15633
15634
  //@ts-ignore
15634
15635
  optionValue,
15635
15636
  optionLabel
15636
15637
  ),
15637
- [items, mappers, optionValue, optionLabel]
15638
+ [items, options, mappers, optionValue, optionLabel]
15638
15639
  );
15639
15640
  const selectedString = React67.useMemo(() => {
15640
15641
  if (value === void 0) return void 0;
@@ -15963,6 +15964,7 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
15963
15964
  required,
15964
15965
  // UI / behaviour
15965
15966
  items,
15967
+ options,
15966
15968
  mappers,
15967
15969
  optionValue,
15968
15970
  optionLabel,
@@ -16068,12 +16070,12 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
16068
16070
  const groupValue = asGroupValue(value);
16069
16071
  const normalized = React67.useMemo(
16070
16072
  () => normalizeItems2(
16071
- items,
16073
+ items != null ? items : options,
16072
16074
  mappers,
16073
16075
  optionValue,
16074
16076
  optionLabel
16075
16077
  ),
16076
- [items, mappers, optionValue, optionLabel]
16078
+ [items, options, mappers, optionValue, optionLabel]
16077
16079
  );
16078
16080
  const {
16079
16081
  groupStyle,