pixel-react 1.1.9 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/AppHeader/types.d.ts +7 -7
- package/lib/components/Drawer/Drawer.stories.d.ts +2 -0
- package/lib/components/Drawer/Types.d.ts +11 -0
- package/lib/components/Icon/Icon.stories.d.ts +1 -0
- package/lib/components/Icon/types.d.ts +1 -0
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Table.stories.d.ts +2 -0
- package/lib/components/Table/Types.d.ts +16 -0
- package/lib/index.d.ts +36 -8
- package/lib/index.esm.js +88 -35
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +88 -35
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/Themes/BaseTheme.scss +3 -0
- package/src/assets/Themes/DarkTheme.scss +3 -0
- package/src/assets/icons/eye_closed.svg +3 -0
- package/src/components/AppHeader/AppHeader.scss +9 -1
- package/src/components/AppHeader/AppHeader.stories.tsx +28 -28
- package/src/components/AppHeader/AppHeader.tsx +11 -11
- package/src/components/AppHeader/types.ts +7 -7
- package/src/components/Button/Button.scss +1 -0
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/Drawer/Drawer.scss +13 -9
- package/src/components/Drawer/Drawer.stories.tsx +28 -0
- package/src/components/Drawer/Drawer.tsx +29 -6
- package/src/components/Drawer/Types.ts +11 -0
- package/src/components/Icon/Icon.stories.tsx +27 -0
- package/src/components/Icon/Icon.tsx +5 -1
- package/src/components/Icon/Icons.scss +13 -2
- package/src/components/Icon/iconList.ts +2 -0
- package/src/components/Icon/types.ts +1 -0
- package/src/components/Modal/Modal.tsx +8 -1
- package/src/components/Modal/modal.scss +10 -2
- package/src/components/Table/Table.scss +16 -4
- package/src/components/Table/Table.stories.tsx +36 -12
- package/src/components/Table/Table.tsx +33 -16
- package/src/components/Table/Types.ts +121 -105
@@ -14,17 +14,17 @@ export interface AppHeaderProps {
|
|
14
14
|
onQuickMenuClick?: (text: any) => void;
|
15
15
|
}
|
16
16
|
export interface appHeaderMenuItemProps {
|
17
|
-
|
18
|
-
|
17
|
+
label: string;
|
18
|
+
path?: string;
|
19
19
|
subMenuItems?: appHeaderSubMenuItemProps[];
|
20
20
|
}
|
21
21
|
export interface appHeaderSubMenuItemProps {
|
22
|
-
|
23
|
-
|
22
|
+
label: string;
|
23
|
+
path?: string;
|
24
24
|
quickMenuItems?: appHeaderQuickMenuItemProps[];
|
25
25
|
}
|
26
26
|
export interface appHeaderQuickMenuItemProps {
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
label?: string;
|
28
|
+
path?: string;
|
29
|
+
iconName: string;
|
30
30
|
}
|
@@ -7,4 +7,6 @@ export declare const Default: Story;
|
|
7
7
|
export declare const WithoutHeader: Story;
|
8
8
|
export declare const WithCustomHeader: Story;
|
9
9
|
export declare const WithCustomFooter: Story;
|
10
|
+
export declare const WithTertiaryButtons: Story;
|
11
|
+
export declare const WithCustomZIndex: Story;
|
10
12
|
export declare const Controlled: Story;
|
@@ -106,4 +106,15 @@ export interface DrawerProps {
|
|
106
106
|
* If provided, this will render in place of the default footer.
|
107
107
|
*/
|
108
108
|
customFooter?: ReactNode;
|
109
|
+
/**
|
110
|
+
* Tertiary button properties (optional)
|
111
|
+
*/
|
112
|
+
tertiaryButtonProps?: {
|
113
|
+
left?: BtnPropsCommon;
|
114
|
+
right?: BtnPropsCommon;
|
115
|
+
};
|
116
|
+
/**
|
117
|
+
* Custom z-index for the drawer
|
118
|
+
*/
|
119
|
+
zIndex?: number;
|
109
120
|
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import './Table.scss';
|
2
2
|
import { TableProps } from './Types';
|
3
|
-
declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, height, className, tableHeadClass, tableBodyRowClass, }: TableProps) => import("react/jsx-runtime").JSX.Element | null;
|
3
|
+
declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, noDataContent, height, className, tableHeadClass, tableBodyRowClass, headerTextColor, tableDataTextColor, headerIconName, headerIconOnClick, }: TableProps) => import("react/jsx-runtime").JSX.Element | null;
|
4
4
|
export default Table;
|
@@ -3,6 +3,8 @@ import Table from './Table';
|
|
3
3
|
declare const meta: Meta<typeof Table>;
|
4
4
|
type Story = StoryObj<typeof Table>;
|
5
5
|
export declare const Default: Story;
|
6
|
+
export declare const PrimaryHeaderTextColor: Story;
|
7
|
+
export declare const TableDataTextColor: Story;
|
6
8
|
export declare const PageTable: Story;
|
7
9
|
export declare const PrimaryHeader: Story;
|
8
10
|
export declare const FixedHeaderWithBorder: Story;
|
@@ -103,4 +103,20 @@ export interface TableProps {
|
|
103
103
|
* classNames for the table Row container
|
104
104
|
*/
|
105
105
|
tableBodyRowClass?: string;
|
106
|
+
/**
|
107
|
+
* custom color for the column text
|
108
|
+
*/
|
109
|
+
headerTextColor?: 'default' | 'primary';
|
110
|
+
/**
|
111
|
+
* custom color for the row text
|
112
|
+
*/
|
113
|
+
tableDataTextColor?: string;
|
114
|
+
/**
|
115
|
+
* icon for the table header, for expand or other purposes
|
116
|
+
*/
|
117
|
+
headerIconName?: string;
|
118
|
+
/**
|
119
|
+
* handle function for the table header icon
|
120
|
+
*/
|
121
|
+
headerIconOnClick?: () => void;
|
106
122
|
}
|
package/lib/index.d.ts
CHANGED
@@ -179,6 +179,17 @@ interface DrawerProps {
|
|
179
179
|
* If provided, this will render in place of the default footer.
|
180
180
|
*/
|
181
181
|
customFooter?: ReactNode;
|
182
|
+
/**
|
183
|
+
* Tertiary button properties (optional)
|
184
|
+
*/
|
185
|
+
tertiaryButtonProps?: {
|
186
|
+
left?: BtnPropsCommon;
|
187
|
+
right?: BtnPropsCommon;
|
188
|
+
};
|
189
|
+
/**
|
190
|
+
* Custom z-index for the drawer
|
191
|
+
*/
|
192
|
+
zIndex?: number;
|
182
193
|
}
|
183
194
|
|
184
195
|
declare const Drawer: FC<DrawerProps>;
|
@@ -192,6 +203,7 @@ interface IconProps {
|
|
192
203
|
onClick?: (data?: any) => void;
|
193
204
|
hoverEffect?: boolean;
|
194
205
|
disabled?: boolean;
|
206
|
+
variant?: "dark" | "light";
|
195
207
|
}
|
196
208
|
|
197
209
|
declare const Icon: React$1.ForwardRefExoticComponent<IconProps & React$1.RefAttributes<HTMLSpanElement>>;
|
@@ -925,9 +937,25 @@ interface TableProps {
|
|
925
937
|
* classNames for the table Row container
|
926
938
|
*/
|
927
939
|
tableBodyRowClass?: string;
|
940
|
+
/**
|
941
|
+
* custom color for the column text
|
942
|
+
*/
|
943
|
+
headerTextColor?: 'default' | 'primary';
|
944
|
+
/**
|
945
|
+
* custom color for the row text
|
946
|
+
*/
|
947
|
+
tableDataTextColor?: string;
|
948
|
+
/**
|
949
|
+
* icon for the table header, for expand or other purposes
|
950
|
+
*/
|
951
|
+
headerIconName?: string;
|
952
|
+
/**
|
953
|
+
* handle function for the table header icon
|
954
|
+
*/
|
955
|
+
headerIconOnClick?: () => void;
|
928
956
|
}
|
929
957
|
|
930
|
-
declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, height, className, tableHeadClass, tableBodyRowClass, }: TableProps) => react_jsx_runtime.JSX.Element | null;
|
958
|
+
declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, noDataContent, height, className, tableHeadClass, tableBodyRowClass, headerTextColor, tableDataTextColor, headerIconName, headerIconOnClick, }: TableProps) => react_jsx_runtime.JSX.Element | null;
|
931
959
|
|
932
960
|
/**
|
933
961
|
* Props for the Add Resource Button component.
|
@@ -1610,19 +1638,19 @@ interface AppHeaderProps {
|
|
1610
1638
|
onQuickMenuClick?: (text: any) => void;
|
1611
1639
|
}
|
1612
1640
|
interface appHeaderMenuItemProps {
|
1613
|
-
|
1614
|
-
|
1641
|
+
label: string;
|
1642
|
+
path?: string;
|
1615
1643
|
subMenuItems?: appHeaderSubMenuItemProps[];
|
1616
1644
|
}
|
1617
1645
|
interface appHeaderSubMenuItemProps {
|
1618
|
-
|
1619
|
-
|
1646
|
+
label: string;
|
1647
|
+
path?: string;
|
1620
1648
|
quickMenuItems?: appHeaderQuickMenuItemProps[];
|
1621
1649
|
}
|
1622
1650
|
interface appHeaderQuickMenuItemProps {
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1651
|
+
label?: string;
|
1652
|
+
path?: string;
|
1653
|
+
iconName: string;
|
1626
1654
|
}
|
1627
1655
|
|
1628
1656
|
declare const AppHeader: React.FC<AppHeaderProps>;
|