@timeax/form-palette 0.0.35 → 0.0.37

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,
@@ -27076,6 +27078,7 @@ function InputField(props) {
27076
27078
  description,
27077
27079
  helpText,
27078
27080
  errorText,
27081
+ autoOff,
27079
27082
  // Container + tags
27080
27083
  contain,
27081
27084
  tags,
@@ -27325,6 +27328,7 @@ function InputField(props) {
27325
27328
  Variant,
27326
27329
  {
27327
27330
  ...rest,
27331
+ name: autoOff ? void 0 : name,
27328
27332
  id: key,
27329
27333
  ref,
27330
27334
  value,
@@ -27512,6 +27516,7 @@ function InputField(props) {
27512
27516
  Variant,
27513
27517
  {
27514
27518
  ...rest,
27519
+ name: autoOff ? void 0 : name,
27515
27520
  id: key,
27516
27521
  ref,
27517
27522
  value,