@mailstep/design-system 0.7.68-beta.0 → 0.7.68-beta.2
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/package.json +1 -1
- package/ui/Blocks/Tabs/TabContent.d.ts +2 -2
- package/ui/Blocks/Tabs/TabContent.js +3 -1
- package/ui/Blocks/Tabs/types.d.ts +2 -2
- package/ui/index.es.js +6537 -6551
- package/ui/index.umd.js +170 -170
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { TabContentProps } from './types';
|
|
3
3
|
|
|
4
|
-
export declare const TabContent:
|
|
4
|
+
export declare const TabContent: FC<TabContentProps>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Activity } from 'react';
|
|
1
3
|
export var TabContent = function (_a) {
|
|
2
4
|
var activeTab = _a.activeTab, value = _a.value, children = _a.children;
|
|
3
|
-
return activeTab === value ?
|
|
5
|
+
return (_jsx(Activity, { mode: activeTab === value ? 'visible' : 'hidden', children: children }));
|
|
4
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
export type TabDefinition = {
|
|
4
4
|
label: string;
|
|
@@ -29,5 +29,5 @@ export type UseTabsHook = (tabDefinitions: TabDefinition[]) => {
|
|
|
29
29
|
export type TabContentProps = {
|
|
30
30
|
activeTab: number;
|
|
31
31
|
value: number;
|
|
32
|
-
children:
|
|
32
|
+
children: ReactNode;
|
|
33
33
|
};
|