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.
Files changed (38) hide show
  1. package/lib/components/AppHeader/types.d.ts +7 -7
  2. package/lib/components/Drawer/Drawer.stories.d.ts +2 -0
  3. package/lib/components/Drawer/Types.d.ts +11 -0
  4. package/lib/components/Icon/Icon.stories.d.ts +1 -0
  5. package/lib/components/Icon/types.d.ts +1 -0
  6. package/lib/components/Table/Table.d.ts +1 -1
  7. package/lib/components/Table/Table.stories.d.ts +2 -0
  8. package/lib/components/Table/Types.d.ts +16 -0
  9. package/lib/index.d.ts +36 -8
  10. package/lib/index.esm.js +88 -35
  11. package/lib/index.esm.js.map +1 -1
  12. package/lib/index.js +88 -35
  13. package/lib/index.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/assets/Themes/BaseTheme.scss +3 -0
  16. package/src/assets/Themes/DarkTheme.scss +3 -0
  17. package/src/assets/icons/eye_closed.svg +3 -0
  18. package/src/components/AppHeader/AppHeader.scss +9 -1
  19. package/src/components/AppHeader/AppHeader.stories.tsx +28 -28
  20. package/src/components/AppHeader/AppHeader.tsx +11 -11
  21. package/src/components/AppHeader/types.ts +7 -7
  22. package/src/components/Button/Button.scss +1 -0
  23. package/src/components/Checkbox/Checkbox.tsx +1 -1
  24. package/src/components/Drawer/Drawer.scss +13 -9
  25. package/src/components/Drawer/Drawer.stories.tsx +28 -0
  26. package/src/components/Drawer/Drawer.tsx +29 -6
  27. package/src/components/Drawer/Types.ts +11 -0
  28. package/src/components/Icon/Icon.stories.tsx +27 -0
  29. package/src/components/Icon/Icon.tsx +5 -1
  30. package/src/components/Icon/Icons.scss +13 -2
  31. package/src/components/Icon/iconList.ts +2 -0
  32. package/src/components/Icon/types.ts +1 -0
  33. package/src/components/Modal/Modal.tsx +8 -1
  34. package/src/components/Modal/modal.scss +10 -2
  35. package/src/components/Table/Table.scss +16 -4
  36. package/src/components/Table/Table.stories.tsx +36 -12
  37. package/src/components/Table/Table.tsx +33 -16
  38. 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
- menuLabel: string;
18
- menuName?: string;
17
+ label: string;
18
+ path?: string;
19
19
  subMenuItems?: appHeaderSubMenuItemProps[];
20
20
  }
21
21
  export interface appHeaderSubMenuItemProps {
22
- subMenuLabel: string;
23
- subMenuName?: string;
22
+ label: string;
23
+ path?: string;
24
24
  quickMenuItems?: appHeaderQuickMenuItemProps[];
25
25
  }
26
26
  export interface appHeaderQuickMenuItemProps {
27
- quickMenuLabel?: string;
28
- quickMenuName?: string;
29
- quickMenuIconName: string;
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
  }
@@ -4,4 +4,5 @@ declare const meta: Meta<typeof Icon>;
4
4
  type Story = StoryObj<typeof Icon>;
5
5
  export declare const Icons: Story;
6
6
  export declare const AllIcons: Story;
7
+ export declare const DarkVariantIcons: Story;
7
8
  export default meta;
@@ -7,4 +7,5 @@ export interface IconProps {
7
7
  onClick?: (data?: any) => void;
8
8
  hoverEffect?: boolean;
9
9
  disabled?: boolean;
10
+ variant?: "dark" | "light";
10
11
  }
@@ -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
- menuLabel: string;
1614
- menuName?: string;
1641
+ label: string;
1642
+ path?: string;
1615
1643
  subMenuItems?: appHeaderSubMenuItemProps[];
1616
1644
  }
1617
1645
  interface appHeaderSubMenuItemProps {
1618
- subMenuLabel: string;
1619
- subMenuName?: string;
1646
+ label: string;
1647
+ path?: string;
1620
1648
  quickMenuItems?: appHeaderQuickMenuItemProps[];
1621
1649
  }
1622
1650
  interface appHeaderQuickMenuItemProps {
1623
- quickMenuLabel?: string;
1624
- quickMenuName?: string;
1625
- quickMenuIconName: string;
1651
+ label?: string;
1652
+ path?: string;
1653
+ iconName: string;
1626
1654
  }
1627
1655
 
1628
1656
  declare const AppHeader: React.FC<AppHeaderProps>;