@mailstep/design-system 0.1.14-beta.2 → 0.1.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.1.14-beta.2",
3
+ "version": "0.1.14",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -1,8 +1,9 @@
1
1
  import { TabsProps, UseTabsHook, TabContentProps } from './types.js';
2
2
  export { TabDefinition } from './types.js';
3
+ import { ReactElement } from 'react';
3
4
 
4
5
  declare const Tabs: (props: TabsProps) => JSX.Element | null
5
6
  declare const useTabs: UseTabsHook
6
- declare const TabContent: (props: TabContentProps) => React.ReactNode | React.ReactNode[]
7
+ declare const TabContent: (props: TabContentProps) => ReactElement | null
7
8
 
8
- export { TabContent, Tabs, Tabs as default, useTabs };
9
+ export { TabContent, Tabs as default, useTabs };
@@ -1,3 +1,5 @@
1
+ import { ReactElement } from 'react';
2
+
1
3
  type TabDefinition = {
2
4
  label: string;
3
5
  icon?: string;
@@ -17,7 +19,7 @@ type UseTabsHook = (tabDefinitions: TabDefinition[]) => {
17
19
  type TabContentProps = {
18
20
  activeTab: number;
19
21
  value: number;
20
- children: Element | null;
22
+ children: ReactElement | null;
21
23
  };
22
24
 
23
25
  export { TabContentProps, TabDefinition, TabsProps, UseTabsHook };
@@ -1,2 +1,3 @@
1
1
  import { TabContentProps } from './types';
2
- export declare const TabContent: ({ activeTab, value, children }: TabContentProps) => Element | null;
2
+ import { ReactElement } from 'react';
3
+ export declare const TabContent: ({ activeTab, value, children }: TabContentProps) => ReactElement | null;
@@ -1,3 +1,4 @@
1
+ import { ReactElement } from 'react';
1
2
  export type TabDefinition = {
2
3
  label: string;
3
4
  icon?: string;
@@ -23,5 +24,5 @@ export type UseTabsHook = (tabDefinitions: TabDefinition[]) => {
23
24
  export type TabContentProps = {
24
25
  activeTab: number;
25
26
  value: number;
26
- children: Element | null;
27
+ children: ReactElement | null;
27
28
  };
package/ui/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { CornerDialog } from './Blocks/CornerDialog/index.js';
2
2
  export { ImageList } from './Blocks/ImageList/index.js';
3
3
  export { LightBox, useLightBox } from './Blocks/LightBox/index.js';
4
4
  export { default as Modal, useClickOutside, useModal } from './Blocks/Modal/index.js';
5
- export { TabContent, Tabs, useTabs } from './Blocks/Tabs/index.js';
5
+ export { TabContent, default as Tabs, useTabs } from './Blocks/Tabs/index.js';
6
6
  export { default as Alert } from './Elements/Alert/index.js';
7
7
  export { default as Avatar } from './Elements/Avatar/index.js';
8
8
  export { default as Badge } from './Elements/Badge/index.js';