grep-components 2.25.0-GREPF-2996.2 → 3.0.0-GREPF-2906.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.
Files changed (32) hide show
  1. package/dist/components/GrepDatePicker/stories/DatePicker.stories.d.ts +1 -1
  2. package/dist/components/GrepSelect/index.d.ts +5 -0
  3. package/dist/components/GrepTable/index.d.ts +3 -14
  4. package/dist/components/NavGuard/stories/NavGuard.stories.d.ts +1 -1
  5. package/dist/index.js +391 -2036
  6. package/dist/index.js.map +1 -1
  7. package/dist/styling/index.d.ts +0 -1
  8. package/package.json +54 -50
  9. package/dist/components/AppBarNavList/styles/index.d.ts +0 -19
  10. package/dist/components/AppBarProfile/styles/index.d.ts +0 -9
  11. package/dist/components/ConfirmationDialog/styles/index.d.ts +0 -9
  12. package/dist/components/ContainedLinkList/styles/index.d.ts +0 -9
  13. package/dist/components/DropdownMenu/styles/collapsable-menu-item.style.d.ts +0 -11
  14. package/dist/components/DropdownMenu/styles/dropdown-menu.style.d.ts +0 -9
  15. package/dist/components/Footer/styles/index.d.ts +0 -9
  16. package/dist/components/GDPR/styles/index.d.ts +0 -9
  17. package/dist/components/GrepCrumbs/styles/styles.d.ts +0 -9
  18. package/dist/components/GrepEditor/styles/buttonStyles.d.ts +0 -9
  19. package/dist/components/GrepEditor/styles/editorStyles.d.ts +0 -16
  20. package/dist/components/GrepEditor/styles/index.d.ts +0 -2
  21. package/dist/components/GrepTable/styles/index.d.ts +0 -30
  22. package/dist/components/GrepTableCard/styles/index.d.ts +0 -9
  23. package/dist/components/GreyCover/styles/index.d.ts +0 -11
  24. package/dist/components/ProfileInfo/styles/index.d.ts +0 -9
  25. package/dist/components/SearchBar/styles/index.d.ts +0 -9
  26. package/dist/components/ServiceMessage/styles/index.d.ts +0 -10
  27. package/dist/components/Sidebar/styles/index.d.ts +0 -9
  28. package/dist/components/SortableTable/styles/row.style.d.ts +0 -10
  29. package/dist/components/ToC/styles/nav-tree-node.style.d.ts +0 -11
  30. package/dist/components/ToC/styles/nav-tree.style.d.ts +0 -9
  31. package/dist/components/ToC/styles/nav.style.d.ts +0 -9
  32. package/dist/styling/makeStyles.d.ts +0 -6
@@ -4,7 +4,7 @@ import { StoryObj } from '@storybook/react-vite';
4
4
  declare const meta: {
5
5
  component: (args: Omit<GrepDatePickerProps, "value" | "onChange">) => React.JSX.Element;
6
6
  title: string;
7
- render: ({ ...args }: Omit<GrepDatePickerProps, "value" | "onChange">) => React.JSX.Element;
7
+ render: ({ ...args }: Omit<GrepDatePickerProps, "onChange" | "value">) => React.JSX.Element;
8
8
  decorators: ((storyFn: () => React.ReactNode) => React.JSX.Element)[];
9
9
  };
10
10
  export default meta;
@@ -6,10 +6,15 @@ export interface SelectItem {
6
6
  disabled?: boolean;
7
7
  lang?: string;
8
8
  }
9
+ export interface ErrorOptions {
10
+ text: string;
11
+ color?: string;
12
+ }
9
13
  export type GrepSelectProps = SelectProps & {
10
14
  label: string;
11
15
  outlined?: boolean;
12
16
  helperText?: string;
17
+ errorOptions?: ErrorOptions;
13
18
  errorMessage?: string;
14
19
  selectItems: SelectItem[];
15
20
  unselectOption?: boolean;
@@ -3,6 +3,7 @@ import { TableProps } from '@mui/material/Table';
3
3
  import { TableCellProps } from '@mui/material/TableCell';
4
4
  import GrepTableRow from './components/grep-table-row';
5
5
  import { DropdownMenuItem } from '../DropdownMenu';
6
+ import { SxProps, Theme } from '@mui/material/styles';
6
7
  export interface TableColumn<T> extends Pick<TableCellProps, 'padding' | 'sx'> {
7
8
  label?: string | JSX.Element;
8
9
  width?: number | string;
@@ -44,24 +45,12 @@ export interface GrepTableProps<T> extends Pick<TableProps, 'size' | 'stickyHead
44
45
  * @deprecated No longer in use.
45
46
  */
46
47
  rowHeight?: number;
48
+ tableHeaderSx?: SxProps<Theme>;
47
49
  rowStyle?: React.CSSProperties | ((data: T, index: number) => React.CSSProperties);
48
50
  disableSelectOnClick?: boolean;
49
51
  underlineOnFocus?: boolean;
50
52
  rowTabIndex?: number;
51
53
  }
52
- interface StyleProps {
53
- outlined?: boolean;
54
- showHeader?: boolean;
55
- }
56
- export declare const useStyles: (params: StyleProps, muiStyleOverridesParams?: {
57
- props: Record<string, unknown>;
58
- ownerState?: Record<string, unknown> | undefined;
59
- } | undefined) => {
60
- classes: Record<"body" | "header" | "table", string>;
61
- theme: import("@mui/material").Theme;
62
- css: import("tss-react").Css;
63
- cx: import("tss-react").Cx;
64
- };
65
54
  /**
66
55
  * Since Grep-Table is so tightly intregrated into LPU and Admin some core logic could not be fixed
67
56
  * Still works but still messy
@@ -69,6 +58,6 @@ export declare const useStyles: (params: StyleProps, muiStyleOverridesParams?: {
69
58
  * @todo enhance page handling
70
59
  *
71
60
  */
72
- export declare const GrepTable: <T>({ placeholderText, dropdownItems, isRowDisabled, pagination, outlined, columns, header, data, onSelectedRowChange, sortBy, sortDirection, onSortBy, onRowClick, size, caption, stickyHeader, padding, disableSelectOnClick, menuButtonLabel, underlineOnFocus, rowTabIndex, rowStyle, rowsPerPageOptions, ...props }: GrepTableProps<T>) => JSX.Element;
61
+ export declare const GrepTable: <T>({ placeholderText, dropdownItems, isRowDisabled, pagination, outlined, columns, header, data, onSelectedRowChange, sortBy, sortDirection, onSortBy, onRowClick, size, caption, stickyHeader, padding, disableSelectOnClick, menuButtonLabel, underlineOnFocus, rowTabIndex, tableHeaderSx, rowStyle, rowsPerPageOptions, ...props }: GrepTableProps<T>) => JSX.Element;
73
62
  export { GrepTableRow };
74
63
  export default GrepTable;
@@ -26,7 +26,7 @@ declare const meta: {
26
26
  txtSave: string;
27
27
  testType: "button";
28
28
  };
29
- render: ({ ...args }: Omit<NavGuardProperties, "title" | "onCancel" | "onSave" | "onDiscard"> & {
29
+ render: ({ ...args }: Omit<NavGuardProperties, "title" | "onSave" | "onCancel" | "onDiscard"> & {
30
30
  testType: testType;
31
31
  }) => React.JSX.Element;
32
32
  title: string;