@react-typed-forms/schemas-html 4.0.1 → 4.1.0

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/lib/index.js CHANGED
@@ -663,11 +663,13 @@ function createTabsRenderer(options = {}) {
663
663
  designMode,
664
664
  formNode,
665
665
  className,
666
- renderChild
666
+ renderChild,
667
+ state
667
668
  },
668
669
  tabOptions
669
670
  }, isVisible) {
670
- const tabIndex = useControl(0);
671
+ var _tabIndex$value;
672
+ const tabIndex = state.meta.fields.tabIndex.as();
671
673
  const {
672
674
  tabClass,
673
675
  labelClass,
@@ -676,7 +678,7 @@ function createTabsRenderer(options = {}) {
676
678
  activeClass,
677
679
  contentClass
678
680
  } = options;
679
- const currentTab = tabIndex.value;
681
+ const currentTab = (_tabIndex$value = tabIndex.value) != null ? _tabIndex$value : 0;
680
682
  return designMode ? /*#__PURE__*/jsx(Fragment, {
681
683
  children: formNode.getChildNodes().map((x, i) => renderTabs([x], i))
682
684
  }) : renderTabs(formNode.getChildNodes().filter((x, i) => isVisible(i)), 0);
@@ -1730,8 +1732,8 @@ function OptionalEditRenderer({
1730
1732
  }) {
1731
1733
  var _effect = useComponentTracking();
1732
1734
  try {
1733
- var _options$setNullText;
1734
- renderMultiValues != null ? renderMultiValues : renderMultiValues = () => {
1735
+ var _renderMultiValues, _options$setNullText;
1736
+ (_renderMultiValues = renderMultiValues) != null ? _renderMultiValues : renderMultiValues = () => {
1735
1737
  var _options$multiValuesT;
1736
1738
  return (_options$multiValuesT = options.multiValuesText) != null ? _options$multiValuesT : "Differing values";
1737
1739
  };