@clickpalm/react 1.2.11 → 1.2.12

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.d.ts CHANGED
@@ -2602,6 +2602,7 @@ interface TabItemProps {
2602
2602
  value: string;
2603
2603
  label: string;
2604
2604
  children: ReactNode;
2605
+ forceMount?: boolean;
2605
2606
  }
2606
2607
  declare const TabsItem: React.FC<TabItemProps>;
2607
2608
  declare const Tabs: React.FC<TabsProps> & {
package/dist/index.js CHANGED
@@ -2023,8 +2023,8 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2023
2023
  const childrenArray = import_react11.Children.toArray(children);
2024
2024
  childrenArray.forEach((child) => {
2025
2025
  if ((0, import_react11.isValidElement)(child) && child.type === TabsItem) {
2026
- const { value, label, children: content } = child.props;
2027
- items.push({ value, label, children: content });
2026
+ const { value, label, forceMount, children: content } = child.props;
2027
+ items.push({ value, label, forceMount, children: content });
2028
2028
  }
2029
2029
  });
2030
2030
  const listRef = (0, import_react11.useRef)(null);
@@ -2113,6 +2113,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2113
2113
  {
2114
2114
  colorContent,
2115
2115
  value: item.value,
2116
+ forceMount: item.forceMount || void 0,
2116
2117
  children: item.children
2117
2118
  },
2118
2119
  `content-${item.value}`
package/dist/index.mjs CHANGED
@@ -1952,8 +1952,8 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
1952
1952
  const childrenArray = Children.toArray(children);
1953
1953
  childrenArray.forEach((child) => {
1954
1954
  if (isValidElement(child) && child.type === TabsItem) {
1955
- const { value, label, children: content } = child.props;
1956
- items.push({ value, label, children: content });
1955
+ const { value, label, forceMount, children: content } = child.props;
1956
+ items.push({ value, label, forceMount, children: content });
1957
1957
  }
1958
1958
  });
1959
1959
  const listRef = useRef4(null);
@@ -2042,6 +2042,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2042
2042
  {
2043
2043
  colorContent,
2044
2044
  value: item.value,
2045
+ forceMount: item.forceMount || void 0,
2045
2046
  children: item.children
2046
2047
  },
2047
2048
  `content-${item.value}`
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Design System da Clikpalm",
4
4
  "author": "Enisson Shilo",
5
5
  "license": "MIT",
6
- "version": "1.2.11",
6
+ "version": "1.2.12",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/clickpalm/clickpalm-designsystem-lib.git"