@mailstep/design-system 0.1.14-beta.1 → 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.1",
3
+ "version": "0.1.14",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -13,7 +13,7 @@
13
13
  "storybook": "storybook dev -p 6006",
14
14
  "build": "rm -rf ./build && rollup -c && cp package.json build",
15
15
  "build-storybook": "storybook build",
16
- "deploy": "npm run build && npm publish ./build",
16
+ "deploy": "npm publish ./build",
17
17
  "dev": "yarn storybook",
18
18
  "test": "echo \"The tests are still waiting to be written, but it seems like they're really good at procrastinating!\""
19
19
  },
@@ -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 };
@@ -0,0 +1,7 @@
1
+ import { Tabs } from './Tabs.js';
2
+ import 'react';
3
+
4
+
5
+
6
+ export { Tabs as default };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -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,4 +1,5 @@
1
- export { Tabs } from './Tabs';
1
+ import { Tabs } from './Tabs';
2
2
  export { TabContent } from './TabContent';
3
3
  export { useTabs } from './hooks/useTabs';
4
4
  export type { TabDefinition } from './types';
5
+ export default Tabs;
@@ -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/dts/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import CornerDialog from './Blocks/CornerDialog';
2
2
  import ImageList from './Blocks/ImageList';
3
3
  import LightBox from './Blocks/LightBox';
4
4
  import Modal from './Blocks/Modal';
5
+ import Tabs from './Blocks/Tabs';
5
6
  import Alert from './Elements/Alert';
6
7
  import Avatar from './Elements/Avatar';
7
8
  import Badge from './Elements/Badge';
@@ -32,7 +33,7 @@ import Input from './Forms/Input';
32
33
  import RadioButton from './Forms/RadioButton';
33
34
  import ThemeProvider from './ThemeProvider';
34
35
  import utils from './utils';
35
- export { Card, CornerDialog, ImageList, LightBox, Modal, Alert, Avatar, Badge, BorderedBox, Button, Dropdown, ErrorMessage, Icon, Image, Label, Line, Link, Logo, Pagination, Paragraph, Portal, ProgressBar, SimpleLink, SpaceAround, Spinner, Tag, Toast, Toggle, Typography, Checkbox, Input, RadioButton, ThemeProvider, utils };
36
+ export { Card, CornerDialog, ImageList, LightBox, Modal, Tabs, Alert, Avatar, Badge, BorderedBox, Button, Dropdown, ErrorMessage, Icon, Image, Label, Line, Link, Logo, Pagination, Paragraph, Portal, ProgressBar, SimpleLink, SpaceAround, Spinner, Tag, Toast, Toggle, Typography, Checkbox, Input, RadioButton, ThemeProvider, utils };
36
37
  export * from './Blocks/CornerDialog';
37
38
  export * from './Blocks/ImageList';
38
39
  export * from './Blocks/LightBox';
package/ui/index.d.ts CHANGED
@@ -2,6 +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, default as Tabs, useTabs } from './Blocks/Tabs/index.js';
5
6
  export { default as Alert } from './Elements/Alert/index.js';
6
7
  export { default as Avatar } from './Elements/Avatar/index.js';
7
8
  export { default as Badge } from './Elements/Badge/index.js';
@@ -32,7 +33,6 @@ export { default as Input } from './Forms/Input/index.js';
32
33
  export { default as RadioButton } from './Forms/RadioButton/index.js';
33
34
  export { default as ThemeProvider, themes } from './ThemeProvider/index.js';
34
35
  export { createRgba, default as utils } from './utils/index.js';
35
- export { TabContent, Tabs, useTabs } from './Blocks/Tabs/index.js';
36
36
  export { CornerDialogProps, Intent } from './Blocks/CornerDialog/types.js';
37
37
  export { ImageData } from './Blocks/LightBox/types.js';
38
38
  export { ImageUploadProps } from './Blocks/ImageList/types.js';
package/ui/index.js CHANGED
@@ -5,6 +5,9 @@ export { useLightBox } from './Blocks/LightBox/hooks/useLightBox.js';
5
5
  export { Modal } from './Blocks/Modal/Modal.js';
6
6
  export { useModal } from './Blocks/Modal/hooks/useModal.js';
7
7
  export { useClickOutside } from './Blocks/Modal/hooks/useClickOutside.js';
8
+ export { Tabs } from './Blocks/Tabs/Tabs.js';
9
+ export { TabContent } from './Blocks/Tabs/TabContent.js';
10
+ export { useTabs } from './Blocks/Tabs/hooks/useTabs.js';
8
11
  export { default as Alert } from './Elements/Alert/Alert.js';
9
12
  export { Avatar } from './Elements/Avatar/Avatar.js';
10
13
  export { default as Badge } from './Elements/Badge/Badge.js';
@@ -54,9 +57,6 @@ export { default as RadioButton } from './Forms/RadioButton/RadioButton.js';
54
57
  export { default as ThemeProvider } from './ThemeProvider/ThemeProvider.js';
55
58
  export { default as themes } from './ThemeProvider/themes/index.js';
56
59
  export { default as utils } from './utils/index.js';
57
- export { Tabs } from './Blocks/Tabs/Tabs.js';
58
- export { TabContent } from './Blocks/Tabs/TabContent.js';
59
- export { useTabs } from './Blocks/Tabs/hooks/useTabs.js';
60
60
  export { createRgba } from './utils/CreateRgba/createRgba.js';
61
61
  export { default as KeyPress } from './utils/KeyPress/KeyPress.js';
62
62
  //# sourceMappingURL=index.js.map