@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/extra.mjs CHANGED
@@ -15406,6 +15406,7 @@ var InnerShadcnRadioVariant = (props, ref) => {
15406
15406
  required,
15407
15407
  // radio UI
15408
15408
  items,
15409
+ options,
15409
15410
  mappers,
15410
15411
  optionValue,
15411
15412
  optionLabel,
@@ -15433,13 +15434,13 @@ var InnerShadcnRadioVariant = (props, ref) => {
15433
15434
  const hasError = !!error;
15434
15435
  const normalized = React.useMemo(
15435
15436
  () => normalizeItems(
15436
- items,
15437
+ items != null ? items : options,
15437
15438
  mappers,
15438
15439
  //@ts-ignore
15439
15440
  optionValue,
15440
15441
  optionLabel
15441
15442
  ),
15442
- [items, mappers, optionValue, optionLabel]
15443
+ [items, options, mappers, optionValue, optionLabel]
15443
15444
  );
15444
15445
  const selectedString = React.useMemo(() => {
15445
15446
  if (value === void 0) return void 0;
@@ -15768,6 +15769,7 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
15768
15769
  required,
15769
15770
  // UI / behaviour
15770
15771
  items,
15772
+ options,
15771
15773
  mappers,
15772
15774
  optionValue,
15773
15775
  optionLabel,
@@ -15873,12 +15875,12 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
15873
15875
  const groupValue = asGroupValue(value);
15874
15876
  const normalized = React.useMemo(
15875
15877
  () => normalizeItems2(
15876
- items,
15878
+ items != null ? items : options,
15877
15879
  mappers,
15878
15880
  optionValue,
15879
15881
  optionLabel
15880
15882
  ),
15881
- [items, mappers, optionValue, optionLabel]
15883
+ [items, options, mappers, optionValue, optionLabel]
15882
15884
  );
15883
15885
  const {
15884
15886
  groupStyle,
@@ -25139,6 +25141,7 @@ function InputField(props) {
25139
25141
  description,
25140
25142
  helpText,
25141
25143
  errorText,
25144
+ autoOff,
25142
25145
  // Container + tags
25143
25146
  contain,
25144
25147
  tags,
@@ -25388,6 +25391,7 @@ function InputField(props) {
25388
25391
  Variant,
25389
25392
  {
25390
25393
  ...rest,
25394
+ name: autoOff ? void 0 : name,
25391
25395
  id: key,
25392
25396
  ref,
25393
25397
  value,
@@ -25575,6 +25579,7 @@ function InputField(props) {
25575
25579
  Variant,
25576
25580
  {
25577
25581
  ...rest,
25582
+ name: autoOff ? void 0 : name,
25578
25583
  id: key,
25579
25584
  ref,
25580
25585
  value,