grep-components 1.28.0 → 1.29.0-GREPF-2262.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 (147) hide show
  1. package/dist/assets/index.d.ts +2 -2
  2. package/dist/components/AppBar/AppBar.d.ts +16 -14
  3. package/dist/components/AppBar/MainAppStyles.d.ts +30 -30
  4. package/dist/components/AppBar/MobileAppBar.d.ts +9 -9
  5. package/dist/components/AppBar/stories/AppBarStory.stories.d.ts +29 -27
  6. package/dist/components/AppBar/types.d.ts +33 -33
  7. package/dist/components/AppBarNavList/MobileAppBarNavList.d.ts +13 -13
  8. package/dist/components/AppBarNavList/index.d.ts +15 -15
  9. package/dist/components/AppBarNavList/stories/AppBarNavList.stories.d.ts +22 -20
  10. package/dist/components/AppBarNavList/styles/index.d.ts +19 -23
  11. package/dist/components/AppBarProfile/index.d.ts +8 -8
  12. package/dist/components/AppBarProfile/stories/AppBarProfile.stories.d.ts +11 -11
  13. package/dist/components/AppBarProfile/styles/index.d.ts +9 -11
  14. package/dist/components/BodyLayout/index.d.ts +6 -6
  15. package/dist/components/CircularLoading/index.d.ts +7 -7
  16. package/dist/components/CircularLoading/stories/CircularLoading.stories.d.ts +17 -17
  17. package/dist/components/ConfirmationDialog/components/dialog.d.ts +15 -15
  18. package/dist/components/ConfirmationDialog/index.d.ts +6 -6
  19. package/dist/components/ConfirmationDialog/stories/dialog.stories.d.ts +18 -18
  20. package/dist/components/ConfirmationDialog/styles/index.d.ts +9 -11
  21. package/dist/components/ContainedLinkList/index.d.ts +10 -10
  22. package/dist/components/ContainedLinkList/stories/ContainedLinkList.stories.d.ts +14 -14
  23. package/dist/components/ContainedLinkList/styles/index.d.ts +9 -11
  24. package/dist/components/DropdownMenu/components/collapsable-menu-item.d.ts +25 -25
  25. package/dist/components/DropdownMenu/components/collapsable-menu.d.ts +8 -8
  26. package/dist/components/DropdownMenu/index.d.ts +16 -16
  27. package/dist/components/DropdownMenu/stories/DropDownMenu.stories.d.ts +19 -19
  28. package/dist/components/DropdownMenu/styles/collapsable-menu-item.style.d.ts +11 -13
  29. package/dist/components/DropdownMenu/styles/dropdown-menu.style.d.ts +9 -11
  30. package/dist/components/Footer/index.d.ts +14 -14
  31. package/dist/components/Footer/stories/Footer.stories.d.ts +20 -20
  32. package/dist/components/Footer/styles/index.d.ts +9 -11
  33. package/dist/components/GDPR/index.d.ts +5 -5
  34. package/dist/components/GDPR/stories/GDPR.stories.d.ts +13 -13
  35. package/dist/components/GDPR/styles/index.d.ts +9 -11
  36. package/dist/components/GrepCrumbs/index.d.ts +12 -12
  37. package/dist/components/GrepCrumbs/stories/GrepCrumbs.stories.d.ts +20 -20
  38. package/dist/components/GrepCrumbs/styles/styles.d.ts +9 -11
  39. package/dist/components/GrepDatePicker/index.d.ts +13 -13
  40. package/dist/components/GrepDatePicker/stories/DatePicker.stories.d.ts +9 -9
  41. package/dist/components/GrepDateRange/index.d.ts +20 -19
  42. package/dist/components/GrepDateRange/stories/GrepDateRange.stories.d.ts +8 -8
  43. package/dist/components/GrepDialog/dialog.d.ts +13 -13
  44. package/dist/components/GrepDialog/index.d.ts +6 -6
  45. package/dist/components/GrepDialog/stories/dialog.stories.d.ts +18 -18
  46. package/dist/components/GrepEditor/components/buttons/InlineButton.d.ts +11 -11
  47. package/dist/components/GrepEditor/components/buttons/button.d.ts +12 -12
  48. package/dist/components/GrepEditor/components/buttons/index.d.ts +2 -2
  49. package/dist/components/GrepEditor/components/editor.d.ts +38 -38
  50. package/dist/components/GrepEditor/components/toolbars/floating-toolbar.d.ts +5 -5
  51. package/dist/components/GrepEditor/components/toolbars/index.d.ts +8 -8
  52. package/dist/components/GrepEditor/context/index.d.ts +10 -10
  53. package/dist/components/GrepEditor/context/provider.d.ts +9 -9
  54. package/dist/components/GrepEditor/index.d.ts +12 -12
  55. package/dist/components/GrepEditor/misc/handlers/key.d.ts +6 -6
  56. package/dist/components/GrepEditor/misc/plugins/_link.d.ts +14 -14
  57. package/dist/components/GrepEditor/misc/utils.d.ts +16 -16
  58. package/dist/components/GrepEditor/stories/GrepEditor.stories.d.ts +49 -49
  59. package/dist/components/GrepEditor/styles/buttonStyles.d.ts +9 -11
  60. package/dist/components/GrepEditor/styles/editorStyles.d.ts +15 -17
  61. package/dist/components/GrepEditor/styles/index.d.ts +3 -3
  62. package/dist/components/GrepEditor/styles/toolbarStyles.d.ts +11 -13
  63. package/dist/components/GrepInput/index.d.ts +8 -8
  64. package/dist/components/GrepInput/stories/GrepInput.stories.d.ts +13 -13
  65. package/dist/components/GrepSelect/index.d.ts +20 -20
  66. package/dist/components/GrepSelect/stories/GrepSelect.stories.d.ts +8 -8
  67. package/dist/components/GrepTable/components/GrepPaginationActions.d.ts +10 -10
  68. package/dist/components/GrepTable/components/grep-table-cell.d.ts +12 -14
  69. package/dist/components/GrepTable/components/grep-table-header-cell.d.ts +10 -11
  70. package/dist/components/GrepTable/components/grep-table-header.d.ts +13 -14
  71. package/dist/components/GrepTable/components/grep-table-pagination.d.ts +4 -4
  72. package/dist/components/GrepTable/components/grep-table-placeholder.d.ts +9 -10
  73. package/dist/components/GrepTable/components/grep-table-row.d.ts +14 -15
  74. package/dist/components/GrepTable/index.d.ts +73 -75
  75. package/dist/components/GrepTable/stories/GrepTable.stories.d.ts +77 -77
  76. package/dist/components/GrepTable/styles/index.d.ts +30 -36
  77. package/dist/components/GrepTableCard/index.d.ts +7 -7
  78. package/dist/components/GrepTableCard/stories/GrepTableCard.stories.d.ts +14 -14
  79. package/dist/components/GrepTableCard/styles/index.d.ts +9 -11
  80. package/dist/components/GreyCover/index.d.ts +7 -7
  81. package/dist/components/GreyCover/stories/GreyCover.stories.d.ts +11 -11
  82. package/dist/components/GreyCover/styles/index.d.ts +11 -13
  83. package/dist/components/InfoContainer/index.d.ts +13 -13
  84. package/dist/components/InfoContainer/stories/infoContainer.stories.d.ts +17 -17
  85. package/dist/components/LinkList/index.d.ts +9 -9
  86. package/dist/components/LinkList/stories/LinkList.stories.d.ts +14 -14
  87. package/dist/components/LoadingOverlay/index.d.ts +13 -13
  88. package/dist/components/LoadingOverlay/stories/LoadingOverlay.stories.d.ts +11 -11
  89. package/dist/components/MainLayout/index.d.ts +6 -6
  90. package/dist/components/MainLayout/stories/MainLayout.stories.d.ts +11 -11
  91. package/dist/components/NavGuard/index.d.ts +14 -14
  92. package/dist/components/NavGuard/stories/NavGuard.stories.d.ts +11 -11
  93. package/dist/components/NavGuard/stories/_scaffold.d.ts +5 -5
  94. package/dist/components/NavGuard/stories/standard.d.ts +3 -3
  95. package/dist/components/OverflowTooltip/index.d.ts +9 -7
  96. package/dist/components/ProfileInfo/index.d.ts +10 -10
  97. package/dist/components/ProfileInfo/stories/ProfileInfo.stories.d.ts +19 -19
  98. package/dist/components/ProfileInfo/styles/index.d.ts +9 -11
  99. package/dist/components/SearchBar/index.d.ts +16 -16
  100. package/dist/components/SearchBar/stories/SearchBar.stories.d.ts +11 -11
  101. package/dist/components/SearchBar/styles/index.d.ts +9 -11
  102. package/dist/components/ServiceMessage/index.d.ts +9 -9
  103. package/dist/components/ServiceMessage/styles/index.d.ts +10 -12
  104. package/dist/components/Sidebar/index.d.ts +10 -10
  105. package/dist/components/Sidebar/stories/Sidebar.stories.d.ts +20 -20
  106. package/dist/components/Sidebar/styles/index.d.ts +9 -11
  107. package/dist/components/SortableTable/components/cell.d.ts +7 -7
  108. package/dist/components/SortableTable/components/row.d.ts +11 -11
  109. package/dist/components/SortableTable/index.d.ts +20 -20
  110. package/dist/components/SortableTable/stories/SortableTable.stories.d.ts +11 -11
  111. package/dist/components/SortableTable/styles/row.style.d.ts +12 -14
  112. package/dist/components/ToC/components/nav-tree-node.d.ts +21 -21
  113. package/dist/components/ToC/components/nav-tree.d.ts +11 -11
  114. package/dist/components/ToC/components/nav.d.ts +9 -9
  115. package/dist/components/ToC/context/index.d.ts +11 -11
  116. package/dist/components/ToC/context/provider.d.ts +17 -17
  117. package/dist/components/ToC/index.d.ts +10 -10
  118. package/dist/components/ToC/stories/ToC.stories.d.ts +11 -11
  119. package/dist/components/ToC/stories/_scaffold.d.ts +5 -5
  120. package/dist/components/ToC/stories/_text.d.ts +3 -3
  121. package/dist/components/ToC/stories/standard.d.ts +3 -3
  122. package/dist/components/ToC/styles/nav-tree-node.style.d.ts +11 -13
  123. package/dist/components/ToC/styles/nav-tree.style.d.ts +9 -11
  124. package/dist/components/ToC/styles/nav.style.d.ts +9 -11
  125. package/dist/components/ToC/utils/element-level.d.ts +5 -5
  126. package/dist/components/ToC/utils/identity-element.d.ts +8 -8
  127. package/dist/components/ToC/utils/normalize.d.ts +12 -12
  128. package/dist/components/ToC/utils/tree-builder.d.ts +7 -7
  129. package/dist/components/index.d.ts +59 -59
  130. package/dist/hooks/index.d.ts +3 -3
  131. package/dist/hooks/use-content-elements.d.ts +9 -9
  132. package/dist/hooks/use-date.d.ts +10 -10
  133. package/dist/hooks/use-debounce.d.ts +21 -21
  134. package/dist/index.d.ts +36 -36
  135. package/dist/index.js +3007 -2748
  136. package/dist/index.js.map +1 -1
  137. package/dist/setupTests.d.ts +1 -1
  138. package/dist/stories/index.stories.d.ts +15 -15
  139. package/dist/styling/Colors/colors.d.ts +27 -27
  140. package/dist/styling/Colors/index.d.ts +2 -2
  141. package/dist/styling/hex2rgb.d.ts +3 -3
  142. package/dist/styling/index.d.ts +4 -4
  143. package/dist/styling/makeStyles.d.ts +36 -30
  144. package/dist/utils/dateHelper.d.ts +27 -27
  145. package/dist/utils/index.d.ts +2 -2
  146. package/dist/utils/keyboard.d.ts +6 -6
  147. package/package.json +51 -43
@@ -1,2 +1,2 @@
1
- import UdirLogo from './utdanningsdirektoratet-logo-rgb-neg.png';
2
- export { UdirLogo };
1
+ import UdirLogo from './utdanningsdirektoratet-logo-rgb-neg.png';
2
+ export { UdirLogo };
@@ -1,14 +1,16 @@
1
- import * as React from 'react';
2
- import { IAuthorizedPage, UserMenuItem, v0colors } from './types';
3
- declare type AppBarProps = {
4
- isProd: boolean;
5
- username: string;
6
- currentPath: string;
7
- appTitle: string;
8
- userMenuItems: UserMenuItem[];
9
- menuItems: IAuthorizedPage[];
10
- userRole?: string;
11
- colors: v0colors;
12
- };
13
- declare const AppBar: React.FunctionComponent<AppBarProps>;
14
- export default AppBar;
1
+ import * as React from 'react';
2
+ import { IAuthorizedPage, UserMenuItem, v0colors } from './types';
3
+ import { ReactNode } from 'react';
4
+ type AppBarProps = {
5
+ isProd: boolean;
6
+ username: string;
7
+ currentPath: string;
8
+ appTitle: string;
9
+ userMenuItems: UserMenuItem[];
10
+ menuItems: IAuthorizedPage[];
11
+ userRole?: string;
12
+ colors: v0colors;
13
+ children?: ReactNode;
14
+ };
15
+ declare const AppBar: React.FunctionComponent<AppBarProps>;
16
+ export default AppBar;
@@ -1,30 +1,30 @@
1
- /// <reference types="react" />
2
- import { Theme, MUIStyledCommonProps } from '@mui/system';
3
- import { v0colors } from './types';
4
- export declare const dimensions: {
5
- breadcrumbsFontSize: number;
6
- contentWidth: number;
7
- footerHeight: number;
8
- inputBoxHeight: number;
9
- toolbarHeight: number;
10
- toolbarHeightMobile: number;
11
- toolbarWidth: number;
12
- toolbarMenuWidth: number;
13
- toolbarMenuHeight: number;
14
- };
15
- export declare const ToolbarTitle: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps<unknown> & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
16
- export declare const EnvironmentTitle: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
- export declare const Toolbar: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
- export declare const ToolbarFixer: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
- export declare const ToolbarInner: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme> & {
20
- colors: v0colors;
21
- } & MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
- export declare const ToolbarLeft: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
- export declare const ToolbarRight: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
24
- export declare const UserContainer: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
- export declare const AccountName: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
26
- export declare const ToolbarMenu: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
27
- export declare const MobileToolbarMenu: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
28
- export declare const ToolbarMenuInner: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
29
- export declare const ToolbarMenuItem: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps<unknown> & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
30
- export declare const MobileToolbarMenuItem: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps<unknown> & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
1
+ /// <reference types="react" />
2
+ import { Theme, MUIStyledCommonProps } from '@mui/system';
3
+ import { v0colors } from './types';
4
+ export declare const dimensions: {
5
+ breadcrumbsFontSize: number;
6
+ contentWidth: number;
7
+ footerHeight: number;
8
+ inputBoxHeight: number;
9
+ toolbarHeight: number;
10
+ toolbarHeightMobile: number;
11
+ toolbarWidth: number;
12
+ toolbarMenuWidth: number;
13
+ toolbarMenuHeight: number;
14
+ };
15
+ export declare const ToolbarTitle: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
16
+ export declare const EnvironmentTitle: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
+ export declare const Toolbar: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const ToolbarFixer: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
+ export declare const ToolbarInner: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme> & {
20
+ colors: v0colors;
21
+ } & MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
+ export declare const ToolbarLeft: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
+ export declare const ToolbarRight: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
24
+ export declare const UserContainer: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
+ export declare const AccountName: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
26
+ export declare const ToolbarMenu: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
27
+ export declare const MobileToolbarMenu: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
28
+ export declare const ToolbarMenuInner: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
29
+ export declare const ToolbarMenuItem: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
30
+ export declare const MobileToolbarMenuItem: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- import { IAuthorizedPage, UserMenuItem, v0colors } from './types';
3
- declare type Props = {
4
- userMenuItems: UserMenuItem[];
5
- menuItems: IAuthorizedPage[];
6
- colors: v0colors;
7
- };
8
- declare const MobileAppBar: React.FunctionComponent<Props>;
9
- export default MobileAppBar;
1
+ import * as React from 'react';
2
+ import { IAuthorizedPage, UserMenuItem, v0colors } from './types';
3
+ type Props = {
4
+ userMenuItems: UserMenuItem[];
5
+ menuItems: IAuthorizedPage[];
6
+ colors: v0colors;
7
+ };
8
+ declare const MobileAppBar: React.FunctionComponent<Props>;
9
+ export default MobileAppBar;
@@ -1,27 +1,29 @@
1
- /// <reference types="react" />
2
- export declare const v0colors: {
3
- primary: string;
4
- secondary: string;
5
- body: string;
6
- headerBackgroundColor: string;
7
- borderColor: string;
8
- primaryFade: string;
9
- greyText: string;
10
- placeholderText: string;
11
- textColor: string;
12
- textColorFade: string;
13
- textColorMoreFade: string;
14
- white: string;
15
- lightGrey: string;
16
- };
17
- declare const _default: {
18
- title: string;
19
- excludeStories: string[];
20
- };
21
- export default _default;
22
- export declare const WithContent: {
23
- (): JSX.Element;
24
- story: {
25
- name: string;
26
- };
27
- };
1
+ import * as React from 'react';
2
+ export declare const v0colors: {
3
+ primary: string;
4
+ secondary: string;
5
+ body: string;
6
+ headerBackgroundColor: string;
7
+ borderColor: string;
8
+ primaryFade: string;
9
+ greyText: string;
10
+ placeholderText: string;
11
+ textColor: string;
12
+ textColorFade: string;
13
+ textColorMoreFade: string;
14
+ white: string;
15
+ lightGrey: string;
16
+ };
17
+ declare const _default: {
18
+ title: string;
19
+ excludeStories: string[];
20
+ render: () => React.JSX.Element;
21
+ decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
22
+ };
23
+ export default _default;
24
+ export declare const WithContent: {
25
+ (): React.JSX.Element;
26
+ story: {
27
+ name: string;
28
+ };
29
+ };
@@ -1,33 +1,33 @@
1
- export declare type UserMenuItem = {
2
- id: string;
3
- label: string;
4
- action?: () => void;
5
- isAnchor?: boolean;
6
- href?: string;
7
- onClick?: (e: any) => void;
8
- };
9
- export interface IAuthorizedPage {
10
- name: string;
11
- translatedTextRef?: string;
12
- accessTextRef?: string;
13
- redirectUrl?: string;
14
- path: string;
15
- exact?: boolean;
16
- link?: boolean;
17
- accessLink?: boolean;
18
- }
19
- export declare type v0colors = {
20
- body: string;
21
- headerBackgroundColor: string;
22
- borderColor: string;
23
- primaryFade: string;
24
- greyText: string;
25
- placeholderText: string;
26
- textColor: string;
27
- textColorFade: string;
28
- textColorMoreFade: string;
29
- white: string;
30
- lightGrey: string;
31
- primary: string;
32
- secondary: string;
33
- };
1
+ export type UserMenuItem = {
2
+ id: string;
3
+ label: string;
4
+ action?: () => void;
5
+ isAnchor?: boolean;
6
+ href?: string;
7
+ onClick?: (e: any) => void;
8
+ };
9
+ export interface IAuthorizedPage {
10
+ name: string;
11
+ translatedTextRef?: string;
12
+ accessTextRef?: string;
13
+ redirectUrl?: string;
14
+ path: string;
15
+ exact?: boolean;
16
+ link?: boolean;
17
+ accessLink?: boolean;
18
+ }
19
+ export type v0colors = {
20
+ body: string;
21
+ headerBackgroundColor: string;
22
+ borderColor: string;
23
+ primaryFade: string;
24
+ greyText: string;
25
+ placeholderText: string;
26
+ textColor: string;
27
+ textColorFade: string;
28
+ textColorMoreFade: string;
29
+ white: string;
30
+ lightGrey: string;
31
+ primary: string;
32
+ secondary: string;
33
+ };
@@ -1,13 +1,13 @@
1
- import * as React from 'react';
2
- export interface NavigationProps {
3
- id: number;
4
- label: string;
5
- toUrl?: string;
6
- children?: NavigationProps[];
7
- linkIcon?: React.ReactElement<any>;
8
- }
9
- export interface AppBarNavListProps {
10
- pages: NavigationProps[];
11
- }
12
- declare const _default: React.ComponentType<AppBarNavListProps>;
13
- export default _default;
1
+ import * as React from 'react';
2
+ export interface NavigationProps {
3
+ id: number;
4
+ label: string;
5
+ toUrl?: string;
6
+ children?: NavigationProps[];
7
+ linkIcon?: React.ReactElement<unknown>;
8
+ }
9
+ export interface AppBarNavListProps {
10
+ pages: NavigationProps[];
11
+ }
12
+ declare const _default: React.ComponentType<AppBarNavListProps>;
13
+ export default _default;
@@ -1,15 +1,15 @@
1
- import * as React from 'react';
2
- export interface NavigationProps {
3
- id: number;
4
- label: string;
5
- toUrl?: string;
6
- children?: NavigationProps[];
7
- linkIcon?: React.ReactElement<any>;
8
- }
9
- export interface AppBarNavListProps {
10
- selectedPage: number;
11
- pages: NavigationProps[];
12
- onChange: (selectedPage: number) => void;
13
- }
14
- declare const _default: React.ComponentType<AppBarNavListProps>;
15
- export default _default;
1
+ import * as React from 'react';
2
+ export interface NavigationProps {
3
+ id: number;
4
+ label: string;
5
+ toUrl?: string;
6
+ children?: NavigationProps[];
7
+ linkIcon?: React.ReactElement<unknown>;
8
+ }
9
+ export interface AppBarNavListProps {
10
+ selectedPage: number;
11
+ pages: NavigationProps[];
12
+ onChange: (selectedPage: number) => void;
13
+ }
14
+ declare const _default: React.ComponentType<AppBarNavListProps>;
15
+ export default _default;
@@ -1,20 +1,22 @@
1
- /// <reference types="react" />
2
- export declare const navbarPages: {
3
- id: number;
4
- label: string;
5
- onClick: (url: string) => void;
6
- toUrl: string;
7
- name: string;
8
- path: string;
9
- }[];
10
- declare const _default: {
11
- title: string;
12
- excludeStories: string[];
13
- };
14
- export default _default;
15
- export declare const WithThemeAndAppbar: {
16
- (): JSX.Element;
17
- story: {
18
- name: string;
19
- };
20
- };
1
+ import * as React from 'react';
2
+ export declare const navbarPages: {
3
+ id: number;
4
+ label: string;
5
+ onClick: (url: string) => void;
6
+ toUrl: string;
7
+ name: string;
8
+ path: string;
9
+ }[];
10
+ declare const _default: {
11
+ title: string;
12
+ excludeStories: string[];
13
+ render: () => React.JSX.Element;
14
+ decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
15
+ };
16
+ export default _default;
17
+ export declare const WithThemeAndAppbar: {
18
+ (): React.JSX.Element;
19
+ story: {
20
+ name: string;
21
+ };
22
+ };
@@ -1,23 +1,19 @@
1
- import { Theme } from '@mui/material';
2
- export declare const useStyles: (params: void, styleOverrides?: {
3
- props: {
4
- classes?: Record<string, string> | undefined;
5
- } & Record<string, unknown>;
6
- ownerState?: Record<string, unknown> | undefined;
7
- } | undefined) => {
8
- classes: Record<"tabs" | "tab" | "indicator", string>;
9
- theme: Theme;
10
- css: import("tss-react").Css;
11
- cx: import("tss-react").Cx;
12
- };
13
- export declare const useMobileStyles: (params: void, styleOverrides?: {
14
- props: {
15
- classes?: Record<string, string> | undefined;
16
- } & Record<string, unknown>;
17
- ownerState?: Record<string, unknown> | undefined;
18
- } | undefined) => {
19
- classes: Record<"mobileNavList", string>;
20
- theme: Theme;
21
- css: import("tss-react").Css;
22
- cx: import("tss-react").Cx;
23
- };
1
+ import { Theme } from '@mui/material';
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>;
7
+ theme: Theme;
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>;
16
+ theme: Theme;
17
+ css: import("tss-react").Css;
18
+ cx: import("tss-react").Cx;
19
+ };
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- export interface AppBarProfileProps {
3
- userRole: string;
4
- fullName: string;
5
- onButtonClick: (args?: any) => void;
6
- }
7
- declare const _default: React.ComponentType<AppBarProfileProps>;
8
- export default _default;
1
+ import * as React from 'react';
2
+ export interface AppBarProfileProps {
3
+ userRole: string;
4
+ fullName: string;
5
+ onButtonClick: (args?: unknown) => void;
6
+ }
7
+ declare const _default: React.ComponentType<AppBarProfileProps>;
8
+ export default _default;
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const Standard: {
7
- (): JSX.Element;
8
- story: {
9
- name: string;
10
- };
11
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const Standard: {
7
+ (): React.JSX.Element;
8
+ story: {
9
+ name: string;
10
+ };
11
+ };
@@ -1,11 +1,9 @@
1
- export declare const useStyles: (params: void, styleOverrides?: {
2
- props: {
3
- classes?: Record<string, string> | undefined;
4
- } & Record<string, unknown>;
5
- ownerState?: Record<string, unknown> | undefined;
6
- } | undefined) => {
7
- classes: Record<"user", string>;
8
- theme: import("@mui/material").Theme;
9
- css: import("tss-react").Css;
10
- cx: import("tss-react").Cx;
11
- };
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>;
6
+ theme: import("@mui/material").Theme;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- export interface BodyLayoutProps {
3
- children?: React.ReactNode;
4
- }
5
- declare const _default: React.ComponentType<BodyLayoutProps>;
6
- export default _default;
1
+ import * as React from 'react';
2
+ export interface BodyLayoutProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare const _default: React.ComponentType<BodyLayoutProps>;
6
+ export default _default;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { CircularProgressProps } from '@mui/material/CircularProgress';
3
- interface Props extends CircularProgressProps {
4
- height?: number | string;
5
- }
6
- declare const _default: React.ComponentType<Props>;
7
- export default _default;
1
+ import * as React from 'react';
2
+ import { CircularProgressProps } from '@mui/material/CircularProgress';
3
+ interface Props extends CircularProgressProps {
4
+ height?: number | string;
5
+ }
6
+ declare const _default: React.ComponentType<Props>;
7
+ export default _default;
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const Standard: {
7
- (): JSX.Element;
8
- story: {
9
- name: string;
10
- };
11
- };
12
- export declare const CustomHeight: {
13
- (): JSX.Element;
14
- story: {
15
- name: string;
16
- };
17
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const Standard: {
7
+ (): React.JSX.Element;
8
+ story: {
9
+ name: string;
10
+ };
11
+ };
12
+ export declare const CustomHeight: {
13
+ (): React.JSX.Element;
14
+ story: {
15
+ name: string;
16
+ };
17
+ };
@@ -1,15 +1,15 @@
1
- import React from 'react';
2
- export interface ConfirmationOptions {
3
- title: string;
4
- description: string;
5
- warning?: boolean;
6
- confirmText?: string;
7
- cancelText?: string;
8
- }
9
- interface Props extends Partial<ConfirmationOptions> {
10
- open: boolean;
11
- onSubmit: () => void;
12
- onCancel: () => void;
13
- }
14
- export declare const ConfirmationDialog: React.FC<Props>;
15
- export {};
1
+ import React from 'react';
2
+ export interface ConfirmationOptions {
3
+ title: string;
4
+ description: string;
5
+ warning?: boolean;
6
+ confirmText?: string;
7
+ cancelText?: string;
8
+ }
9
+ interface Props extends Partial<ConfirmationOptions> {
10
+ open: boolean;
11
+ onSubmit: () => void;
12
+ onCancel: () => void;
13
+ }
14
+ export declare const ConfirmationDialog: React.FC<Props>;
15
+ export {};
@@ -1,6 +1,6 @@
1
- import React, { ReactNode } from 'react';
2
- import { ConfirmationOptions } from './components/dialog';
3
- export declare const ConfirmationServiceProvider: React.FC<{
4
- children: ReactNode;
5
- }>;
6
- export declare const useConfirmation: () => (options: ConfirmationOptions) => Promise<void>;
1
+ import React, { ReactNode } from 'react';
2
+ import { ConfirmationOptions } from './components/dialog';
3
+ export declare const ConfirmationServiceProvider: React.FC<{
4
+ children: ReactNode;
5
+ }>;
6
+ export declare const useConfirmation: () => (options: ConfirmationOptions) => Promise<void>;
@@ -1,18 +1,18 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- decorators: ((storyFn: any) => JSX.Element)[];
5
- };
6
- export default _default;
7
- export declare const Standard: {
8
- (): JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };
13
- export declare const Warning: {
14
- (): JSX.Element;
15
- story: {
16
- name: string;
17
- };
18
- };
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ decorators: ((storyFn: any) => React.JSX.Element)[];
5
+ };
6
+ export default _default;
7
+ export declare const Standard: {
8
+ (): React.JSX.Element;
9
+ story: {
10
+ name: string;
11
+ };
12
+ };
13
+ export declare const Warning: {
14
+ (): React.JSX.Element;
15
+ story: {
16
+ name: string;
17
+ };
18
+ };
@@ -1,11 +1,9 @@
1
- export declare const useStyles: (params: void, styleOverrides?: {
2
- props: {
3
- classes?: Record<string, string> | undefined;
4
- } & Record<string, unknown>;
5
- ownerState?: Record<string, unknown> | undefined;
6
- } | undefined) => {
7
- classes: Record<"discard", string>;
8
- theme: import("@mui/material").Theme;
9
- css: import("tss-react").Css;
10
- cx: import("tss-react").Cx;
11
- };
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>;
6
+ theme: import("@mui/material").Theme;
7
+ css: import("tss-react").Css;
8
+ cx: import("tss-react").Cx;
9
+ };