@nextelco/common-ui 1.6.1 → 1.6.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/dist/bundle.js +1 -1
- package/dist/types/components/layout/Header/Header.d.ts +3 -1
- package/dist/types/components/layout/Header/Header.stories.d.ts +3 -1
- package/dist/types/components/molecules/Sidebar/Sidebar.d.ts +10 -0
- package/dist/types/components/molecules/Sidebar/Sidebar.stories.d.ts +9 -0
- package/dist/types/index.d.ts +4 -2
- package/dist/types/types/SidebarMenu.d.ts +10 -0
- package/package.json +1 -1
- /package/dist/types/components/{moleculas → molecules}/FormItem/FormItem.d.ts +0 -0
- /package/dist/types/components/{moleculas → molecules}/FormItem/FormItem.stories.d.ts +0 -0
- /package/dist/types/components/{moleculas → molecules}/Modal/Modal.d.ts +0 -0
- /package/dist/types/components/{moleculas → molecules}/Modal/Modal.stories.d.ts +0 -0
- /package/dist/types/components/{moleculas → molecules}/Notification/Notification.d.ts +0 -0
@@ -1,11 +1,13 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
2
|
import './Header.scss';
|
3
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
3
4
|
type Props = {
|
4
5
|
title: string;
|
6
|
+
icon: IconProp;
|
5
7
|
sideBar: boolean;
|
6
8
|
handleSideBar: () => void;
|
7
9
|
profile: ReactNode;
|
8
10
|
handleHome: () => void;
|
9
11
|
};
|
10
|
-
declare const Header: ({ title, sideBar, handleSideBar, profile, handleHome, }: Props) => React.JSX.Element;
|
12
|
+
declare const Header: ({ title, icon, sideBar, handleSideBar, profile, handleHome, }: Props) => React.JSX.Element;
|
11
13
|
export default Header;
|
@@ -3,8 +3,9 @@ import { StoryObj } from '@storybook/react';
|
|
3
3
|
import Header from './Header';
|
4
4
|
type Story = StoryObj<typeof Header>;
|
5
5
|
declare const _default: {
|
6
|
-
component: ({ title, sideBar, handleSideBar, profile, handleHome, }: {
|
6
|
+
component: ({ title, icon, sideBar, handleSideBar, profile, handleHome, }: {
|
7
7
|
title: string;
|
8
|
+
icon: import("@fortawesome/fontawesome-svg-core").IconProp;
|
8
9
|
sideBar: boolean;
|
9
10
|
handleSideBar: () => void;
|
10
11
|
profile: React.ReactNode;
|
@@ -22,6 +23,7 @@ declare const _default: {
|
|
22
23
|
};
|
23
24
|
args: {
|
24
25
|
title: string;
|
26
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
25
27
|
sideBar: true;
|
26
28
|
handleSideBar: () => void;
|
27
29
|
handleHome: () => void;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Sidebar from './Sidebar';
|
3
|
+
declare const meta: Meta<typeof Sidebar>;
|
4
|
+
export default meta;
|
5
|
+
type Story = StoryObj<typeof Sidebar>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const Closed: Story;
|
8
|
+
export declare const HomePage: Story;
|
9
|
+
export declare const CustomContent: Story;
|
package/dist/types/index.d.ts
CHANGED
@@ -15,8 +15,9 @@ export { default as IconButton } from './components/atoms/Button/variants/IconBu
|
|
15
15
|
export { default as NavButton } from './components/atoms/Button/variants/NavButton';
|
16
16
|
export { default as TabButton } from './components/atoms/Button/variants/TabButton';
|
17
17
|
export { default as Stack } from './components/atoms/Stack/Stack';
|
18
|
-
export { default as Modal } from './components/
|
19
|
-
export { default as FormItem } from './components/
|
18
|
+
export { default as Modal } from './components/molecules/Modal/Modal';
|
19
|
+
export { default as FormItem } from './components/molecules/FormItem/FormItem';
|
20
|
+
export { default as Sidebar } from './components/molecules/Sidebar/Sidebar';
|
20
21
|
export { default as Profile } from './components/organisms/Profile/Profile';
|
21
22
|
export { default as Header } from './components/layout/Header/Header';
|
22
23
|
export { default as Footer } from './components/layout/Footer/Footer';
|
@@ -30,3 +31,4 @@ export { ApiProvider } from './contexts/apiContext';
|
|
30
31
|
export { useApi } from './hooks/useApi';
|
31
32
|
export { LoggedUser } from './types/LoggedUser';
|
32
33
|
export { ButtonTheme } from './types/ButtonTheme';
|
34
|
+
export { Menu, Submenu } from './types/SidebarMenu';
|
package/package.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|