pixel-react 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './AddButton.scss';
3
+ import { AddButtonProps } from './types';
4
+ declare const AddButton: React.FC<AddButtonProps>;
5
+ export default AddButton;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import AddButton from './AddButton';
3
+ declare const meta: Meta<typeof AddButton>;
4
+ type Story = StoryObj<typeof AddButton>;
5
+ export declare const PrimaryAddButton: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export { default } from './AddButton';
@@ -0,0 +1,4 @@
1
+ export interface AddButtonProps {
2
+ name: string;
3
+ onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
4
+ }
@@ -1,26 +1,30 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface AppHeaderProps {
3
3
  logoIconName: string;
4
- rightContent: ReactNode;
5
- projectsList: string[];
4
+ leftContent?: ReactNode;
5
+ rightContent?: ReactNode;
6
+ projectsList?: string[];
6
7
  appHeaderMenuItems: appHeaderMenuItemProps[];
7
- appHeaderHiddenMenuItems: string[];
8
+ appHeaderHiddenMenuItems?: string[];
8
9
  selectedMenu: string;
9
- selectedSubMenu: string;
10
- selectedQuickMenu: string;
10
+ selectedSubMenu?: string;
11
+ selectedQuickMenu?: string;
11
12
  onMenuClick?: (text: any) => void;
12
13
  onSubMenuClick?: (text: any) => void;
13
14
  onQuickMenuClick?: (text: any) => void;
14
15
  }
15
16
  export interface appHeaderMenuItemProps {
16
- menuName: string;
17
- subMenuItems: appHeaderSubMenuItemProps[];
17
+ menuLabel: string;
18
+ menuName?: string;
19
+ subMenuItems?: appHeaderSubMenuItemProps[];
18
20
  }
19
21
  export interface appHeaderSubMenuItemProps {
20
- subMenuName: string;
21
- quickMenuItems: appHeaderQuickMenuItemProps[];
22
+ subMenuLabel: string;
23
+ subMenuName?: string;
24
+ quickMenuItems?: appHeaderQuickMenuItemProps[];
22
25
  }
23
26
  export interface appHeaderQuickMenuItemProps {
24
- quickMenuName: string;
27
+ quickMenuLabel?: string;
28
+ quickMenuName?: string;
25
29
  quickMenuIconName: string;
26
30
  }
package/lib/index.d.ts CHANGED
@@ -1534,27 +1534,31 @@ declare const PieChart: React__default.FC<PieChartProps>;
1534
1534
 
1535
1535
  interface AppHeaderProps {
1536
1536
  logoIconName: string;
1537
- rightContent: ReactNode;
1538
- projectsList: string[];
1537
+ leftContent?: ReactNode;
1538
+ rightContent?: ReactNode;
1539
+ projectsList?: string[];
1539
1540
  appHeaderMenuItems: appHeaderMenuItemProps[];
1540
- appHeaderHiddenMenuItems: string[];
1541
+ appHeaderHiddenMenuItems?: string[];
1541
1542
  selectedMenu: string;
1542
- selectedSubMenu: string;
1543
- selectedQuickMenu: string;
1543
+ selectedSubMenu?: string;
1544
+ selectedQuickMenu?: string;
1544
1545
  onMenuClick?: (text: any) => void;
1545
1546
  onSubMenuClick?: (text: any) => void;
1546
1547
  onQuickMenuClick?: (text: any) => void;
1547
1548
  }
1548
1549
  interface appHeaderMenuItemProps {
1549
- menuName: string;
1550
- subMenuItems: appHeaderSubMenuItemProps[];
1550
+ menuLabel: string;
1551
+ menuName?: string;
1552
+ subMenuItems?: appHeaderSubMenuItemProps[];
1551
1553
  }
1552
1554
  interface appHeaderSubMenuItemProps {
1553
- subMenuName: string;
1554
- quickMenuItems: appHeaderQuickMenuItemProps[];
1555
+ subMenuLabel: string;
1556
+ subMenuName?: string;
1557
+ quickMenuItems?: appHeaderQuickMenuItemProps[];
1555
1558
  }
1556
1559
  interface appHeaderQuickMenuItemProps {
1557
- quickMenuName: string;
1560
+ quickMenuLabel?: string;
1561
+ quickMenuName?: string;
1558
1562
  quickMenuIconName: string;
1559
1563
  }
1560
1564