grep-components 2.6.0-GREPF-2540.2 → 2.6.0-gREPF-2541.1

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 (27) hide show
  1. package/dist/build/components/AppBarNavList/styles/index.d.ts +16 -4
  2. package/dist/build/components/AppBarProfile/styles/index.d.ts +8 -2
  3. package/dist/build/components/ConfirmationDialog/styles/index.d.ts +8 -2
  4. package/dist/build/components/ContainedLinkList/styles/index.d.ts +8 -2
  5. package/dist/build/components/DropdownMenu/styles/collapsable-menu-item.style.d.ts +10 -4
  6. package/dist/build/components/DropdownMenu/styles/dropdown-menu.style.d.ts +8 -2
  7. package/dist/build/components/Footer/styles/index.d.ts +8 -2
  8. package/dist/build/components/GDPR/styles/index.d.ts +8 -2
  9. package/dist/build/components/GrepCrumbs/styles/styles.d.ts +8 -2
  10. package/dist/build/components/GrepEditor/styles/buttonStyles.d.ts +8 -2
  11. package/dist/build/components/GrepEditor/styles/editorStyles.d.ts +8 -3
  12. package/dist/build/components/GrepTable/index.d.ts +8 -3
  13. package/dist/build/components/GrepTable/styles/index.d.ts +26 -8
  14. package/dist/build/components/GrepTableCard/styles/index.d.ts +8 -2
  15. package/dist/build/components/GreyCover/styles/index.d.ts +10 -4
  16. package/dist/build/components/ProfileInfo/styles/index.d.ts +8 -2
  17. package/dist/build/components/SearchBar/styles/index.d.ts +8 -2
  18. package/dist/build/components/ServiceMessage/styles/index.d.ts +8 -2
  19. package/dist/build/components/Sidebar/styles/index.d.ts +8 -2
  20. package/dist/build/components/SortableTable/styles/row.style.d.ts +10 -4
  21. package/dist/build/components/ToC/styles/nav-tree-node.style.d.ts +10 -4
  22. package/dist/build/components/ToC/styles/nav-tree.style.d.ts +8 -2
  23. package/dist/build/components/ToC/styles/nav.style.d.ts +8 -2
  24. package/dist/build/styling/makeStyles.d.ts +34 -2
  25. package/dist/index.js +356 -83
  26. package/dist/index.js.map +1 -1
  27. package/package.json +6 -9
@@ -1,7 +1,19 @@
1
1
  import { Theme } from '@mui/material';
2
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
2
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
3
+ props: Record<string, unknown>;
4
+ ownerState?: Record<string, unknown> | undefined;
5
+ } | undefined) => {
6
+ classes: Record<"tabs" | "tab" | "indicator", string>;
3
7
  theme: Theme;
4
- }, Record<never, unknown>, "tabs" | "tab" | "indicator", Record<string, unknown>>;
5
- export declare const useMobileStyles: import("tss-react").Tss.UseStyles<{
8
+ css: import("tss-react").Css;
9
+ cx: import("tss-react").Cx;
10
+ };
11
+ export declare const useMobileStyles: (params: void, muiStyleOverridesParams?: {
12
+ props: Record<string, unknown>;
13
+ ownerState?: Record<string, unknown> | undefined;
14
+ } | undefined) => {
15
+ classes: Record<"mobileNavList", string>;
6
16
  theme: Theme;
7
- }, Record<never, unknown>, "mobileNavList", Record<string, unknown>>;
17
+ css: import("tss-react").Css;
18
+ cx: import("tss-react").Cx;
19
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"user", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "user", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"discard", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "discard", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"container" | "title", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "container" | "title", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,5 +1,11 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
2
- theme: import("@mui/material").Theme;
3
- }, {
1
+ export declare const useStyles: (params: {
4
2
  open: boolean;
5
- }, "root" | "subMenu" | "expander", Record<string, unknown>>;
3
+ }, muiStyleOverridesParams?: {
4
+ props: Record<string, unknown>;
5
+ ownerState?: Record<string, unknown> | undefined;
6
+ } | undefined) => {
7
+ classes: Record<"root" | "subMenu" | "expander", string>;
8
+ theme: import("@mui/material").Theme;
9
+ css: import("tss-react").Css;
10
+ cx: import("tss-react").Cx;
11
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"selected", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "selected", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,9 @@
1
- export declare const useFooterStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useFooterStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"content" | "footer" | "list" | "serviceNameText" | "item" | "itemText" | "itemBtn", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "content" | "footer" | "list" | "serviceNameText" | "item" | "itemText" | "itemBtn", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"content" | "container" | "body" | "title" | "icon", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "content" | "container" | "body" | "title" | "icon", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"container" | "link" | "current", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "container" | "link" | "current", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,9 @@
1
- export declare const useButtonStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useButtonStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"btn" | "btnSelected", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "btn" | "btnSelected", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,11 +1,16 @@
1
1
  interface Properties {
2
- [key: string]: boolean | undefined;
3
2
  hasFocus: boolean;
4
3
  hasContent: boolean;
5
4
  readOnly?: boolean;
6
5
  hasCustomToolbar?: boolean;
7
6
  }
8
- export declare const useEditorStyles: import("tss-react").Tss.UseStyles<{
7
+ export declare const useEditorStyles: (params: Properties, muiStyleOverridesParams?: {
8
+ props: Record<string, unknown>;
9
+ ownerState?: Record<string, unknown> | undefined;
10
+ } | undefined) => {
11
+ classes: Record<"label" | "legend" | "root" | "editor" | "helpertext" | "charcount", string>;
9
12
  theme: import("@mui/material").Theme;
10
- }, Properties, "label" | "legend" | "root" | "editor" | "helpertext" | "charcount", Record<string, unknown>>;
13
+ css: import("tss-react").Css;
14
+ cx: import("tss-react").Cx;
15
+ };
11
16
  export {};
@@ -50,13 +50,18 @@ export interface GrepTableProps<T> extends Pick<TableProps, 'size' | 'stickyHead
50
50
  rowTabIndex?: number;
51
51
  }
52
52
  interface StyleProps {
53
- [key: string]: boolean | undefined;
54
53
  outlined?: boolean;
55
54
  showHeader?: boolean;
56
55
  }
57
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
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>;
58
61
  theme: import("@mui/material").Theme;
59
- }, StyleProps, "body" | "header" | "table", Record<string, unknown>>;
62
+ css: import("tss-react").Css;
63
+ cx: import("tss-react").Cx;
64
+ };
60
65
  /**
61
66
  * Since Grep-Table is so tightly intregrated into LPU and Admin some core logic could not be fixed
62
67
  * Still works but still messy
@@ -1,12 +1,30 @@
1
1
  import { TableColumn } from '..';
2
- export declare const usePaginationActionStyles: import("tss-react").Tss.UseStyles<{
2
+ export declare const usePaginationActionStyles: (params: void, muiStyleOverridesParams?: {
3
+ props: Record<string, unknown>;
4
+ ownerState?: Record<string, unknown> | undefined;
5
+ } | undefined) => {
6
+ classes: Record<"button" | "textButton", string>;
3
7
  theme: import("@mui/material").Theme;
4
- }, Record<never, unknown>, "button" | "textButton", Record<string, unknown>>;
5
- export declare const usePaginationStyles: import("tss-react").Tss.UseStyles<{
8
+ css: import("tss-react").Css;
9
+ cx: import("tss-react").Cx;
10
+ };
11
+ export declare const usePaginationStyles: (params: void, muiStyleOverridesParams?: {
12
+ props: Record<string, unknown>;
13
+ ownerState?: Record<string, unknown> | undefined;
14
+ } | undefined) => {
15
+ classes: Record<"toolbar" | "selectLabel" | "displayedRows" | "spacer", string>;
6
16
  theme: import("@mui/material").Theme;
7
- }, Record<never, unknown>, "toolbar" | "selectLabel" | "displayedRows" | "spacer", Record<string, unknown>>;
8
- export declare const useTableHeaderStyles: import("tss-react").Tss.UseStyles<{
9
- theme: import("@mui/material").Theme;
10
- }, {
17
+ css: import("tss-react").Css;
18
+ cx: import("tss-react").Cx;
19
+ };
20
+ export declare const useTableHeaderStyles: (params: {
11
21
  column: TableColumn<unknown>;
12
- }, "th", Record<string, unknown>>;
22
+ }, muiStyleOverridesParams?: {
23
+ props: Record<string, unknown>;
24
+ ownerState?: Record<string, unknown> | undefined;
25
+ } | undefined) => {
26
+ classes: Record<"th", string>;
27
+ theme: import("@mui/material").Theme;
28
+ css: import("tss-react").Css;
29
+ cx: import("tss-react").Cx;
30
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"container" | "title", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "container" | "title", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,5 +1,11 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
2
- theme: import("@mui/material").Theme;
3
- }, {
1
+ export declare const useStyles: (params: {
4
2
  elevation?: boolean;
5
- }, "cover", Record<string, unknown>>;
3
+ }, muiStyleOverridesParams?: {
4
+ props: Record<string, unknown>;
5
+ ownerState?: Record<string, unknown> | undefined;
6
+ } | undefined) => {
7
+ classes: Record<"cover", string>;
8
+ theme: import("@mui/material").Theme;
9
+ css: import("tss-react").Css;
10
+ cx: import("tss-react").Cx;
11
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"container", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "container", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"input" | "icon" | "outer" | "helptext", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "input" | "icon" | "outer" | "helptext", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,4 +1,10 @@
1
- declare const _default: import("tss-react").Tss.UseStyles<{
1
+ declare const _default: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"button" | "warning" | "close" | "message" | "messageText" | "messageType", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "button" | "warning" | "close" | "message" | "messageText" | "messageType", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
4
10
  export default _default;
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"container" | "text" | "selected" | "icon" | "item", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "container" | "text" | "selected" | "icon" | "item", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,6 +1,12 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
2
- theme: import("@mui/material").Theme;
3
- }, {
1
+ export declare const useStyles: (params: {
4
2
  isDragging: boolean;
5
- }, "row", Record<string, unknown>>;
3
+ }, muiStyleOverridesParams?: {
4
+ props: Record<string, unknown>;
5
+ ownerState?: Record<string, unknown> | undefined;
6
+ } | undefined) => {
7
+ classes: Record<"row", string>;
8
+ theme: import("@mui/material").Theme;
9
+ css: import("tss-react").Css;
10
+ cx: import("tss-react").Cx;
11
+ };
6
12
  export default useStyles;
@@ -1,5 +1,11 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
2
- theme: import("@mui/material").Theme;
3
- }, {
1
+ export declare const useStyles: (params: {
4
2
  lvl: number;
5
- }, "link" | "root", Record<string, unknown>>;
3
+ }, muiStyleOverridesParams?: {
4
+ props: Record<string, unknown>;
5
+ ownerState?: Record<string, unknown> | undefined;
6
+ } | undefined) => {
7
+ classes: Record<"link" | "root", string>;
8
+ theme: import("@mui/material").Theme;
9
+ css: import("tss-react").Css;
10
+ cx: import("tss-react").Cx;
11
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"root", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "root", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,9 @@
1
- export declare const useStyles: import("tss-react").Tss.UseStyles<{
1
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
+ props: Record<string, unknown>;
3
+ ownerState?: Record<string, unknown> | undefined;
4
+ } | undefined) => {
5
+ classes: Record<"root" | "keyboardHint", string>;
2
6
  theme: import("@mui/material").Theme;
3
- }, Record<never, unknown>, "root" | "keyboardHint", Record<string, unknown>>;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,3 +1,35 @@
1
- export declare const tss: import("tss-react").Tss<{
1
+ export declare const makeStyles: <Params = void, RuleNameSubsetReferencableInNestedSelectors extends string = never>(params?: {
2
+ name?: string | Record<string, unknown> | undefined;
3
+ uniqId?: string | undefined;
4
+ } | undefined) => <RuleName_2 extends string>(cssObjectByRuleNameOrGetCssObjectByRuleName: Record<RuleName_2, import("tss-react").CSSObject> | ((theme: import("@mui/material/styles").Theme, params: Params, classes: Record<RuleNameSubsetReferencableInNestedSelectors, string>) => Record<RuleNameSubsetReferencableInNestedSelectors | RuleName_2, import("tss-react").CSSObject>)) => (params: Params, muiStyleOverridesParams?: {
5
+ props: Record<string, unknown>;
6
+ ownerState?: Record<string, unknown> | undefined;
7
+ } | undefined) => {
8
+ classes: Record<RuleName_2, string>;
2
9
  theme: import("@mui/material/styles").Theme;
3
- }, Record<never, unknown>, never, Record<string, unknown>, never>;
10
+ css: import("tss-react").Css;
11
+ cx: import("tss-react").Cx;
12
+ }, withStyles: {
13
+ <C extends keyof import("react").ReactHTML | import("tss-react/tools/ReactComponent").ReactComponent<any>, Props extends C extends import("tss-react/tools/ReactComponent").ReactComponent<infer P> ? P : C extends keyof import("react").ReactHTML ? import("react").ReactHTML[C] extends import("tss-react/tools/ReactComponent").ReactComponent<infer P_1> ? NonNullable<P_1> : never : never, CssObjectByRuleName extends Props extends {
14
+ classes?: Partial<infer ClassNameByRuleName> | undefined;
15
+ } ? { [RuleName in keyof ClassNameByRuleName]?: import("tss-react").CSSObject | undefined; } & {
16
+ [mediaQuery: `@media${string}`]: { [RuleName_1 in keyof ClassNameByRuleName]?: import("tss-react").CSSObject | undefined; };
17
+ } : {
18
+ root: import("tss-react").CSSObject;
19
+ } & {
20
+ [mediaQuery: `@media${string}`]: {
21
+ root: import("tss-react").CSSObject;
22
+ };
23
+ }>(Component: C, cssObjectByRuleNameOrGetCssObjectByRuleName: (CssObjectByRuleName & {
24
+ [mediaQuery: `@media${string}`]: { [Key in keyof CssObjectByRuleName]?: import("tss-react").CSSObject | undefined; };
25
+ }) | ((theme: import("@mui/material/styles").Theme, props: Props, classes: Record<Exclude<keyof CssObjectByRuleName, `@media${string}`>, string>) => CssObjectByRuleName), params?: {
26
+ name?: string | Record<string, unknown> | undefined;
27
+ uniqId?: string | undefined;
28
+ } | undefined): C extends keyof import("react").ReactHTML ? import("react").ReactHTML[C] : C;
29
+ getClasses: <Classes>(props: {
30
+ className?: string | undefined;
31
+ classes?: Classes | undefined;
32
+ }) => Classes extends Record<string, unknown> ? Classes extends Partial<Record<infer K, any>> ? Record<K, string> : Classes : {
33
+ root: string;
34
+ };
35
+ };