grep-components 1.26.0-GREPF-2179.1 → 1.26.0-GREPF-2179.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 (36) hide show
  1. package/dist/components/AppBar/stories/AppBarStory.stories.d.ts +12 -0
  2. package/dist/components/AppBarNavList/stories/AppBarNavList.stories.d.ts +12 -0
  3. package/dist/components/AppBarProfile/stories/AppBarProfile.stories.d.ts +11 -1
  4. package/dist/components/CircularLoading/stories/CircularLoading.stories.d.ts +17 -1
  5. package/dist/components/ConfirmationDialog/stories/dialog.stories.d.ts +18 -1
  6. package/dist/components/ContainedLinkList/stories/ContainedLinkList.stories.d.ts +12 -0
  7. package/dist/components/DropdownMenu/stories/DropDownMenu.stories.d.ts +12 -1
  8. package/dist/components/Footer/stories/Footer.stories.d.ts +18 -0
  9. package/dist/components/GDPR/stories/GDPR.stories.d.ts +11 -0
  10. package/dist/components/GrepCrumbs/stories/GrepCrumbs.stories.d.ts +18 -0
  11. package/dist/components/GrepDatePicker/stories/DatePicker.stories.d.ts +9 -1
  12. package/dist/components/GrepDateRange/stories/GrepDateRange.stories.d.ts +8 -0
  13. package/dist/components/GrepDialog/stories/dialog.stories.d.ts +18 -1
  14. package/dist/components/GrepEditor/stories/GrepEditor.stories.d.ts +49 -1
  15. package/dist/components/GrepInput/stories/GrepInput.stories.d.ts +13 -1
  16. package/dist/components/GrepSelect/stories/GrepSelect.stories.d.ts +8 -1
  17. package/dist/components/GrepTable/stories/GrepTable.stories.d.ts +67 -0
  18. package/dist/components/GrepTableCard/stories/GrepTableCard.stories.d.ts +12 -0
  19. package/dist/components/GreyCover/stories/GreyCover.stories.d.ts +11 -1
  20. package/dist/components/InfoContainer/stories/infoContainer.stories.d.ts +17 -1
  21. package/dist/components/LinkList/stories/LinkList.stories.d.ts +12 -0
  22. package/dist/components/LoadingOverlay/stories/LoadingOverlay.stories.d.ts +11 -1
  23. package/dist/components/MainLayout/stories/MainLayout.stories.d.ts +11 -1
  24. package/dist/components/NavGuard/stories/NavGuard.stories.d.ts +11 -0
  25. package/dist/components/ProfileInfo/stories/ProfileInfo.stories.d.ts +12 -0
  26. package/dist/components/SearchBar/stories/SearchBar.stories.d.ts +11 -1
  27. package/dist/components/Sidebar/stories/Sidebar.stories.d.ts +12 -0
  28. package/dist/components/SortableTable/stories/SortableTable.stories.d.ts +11 -0
  29. package/dist/components/ToC/stories/ToC.stories.d.ts +11 -0
  30. package/dist/stories/index.stories.d.ts +15 -0
  31. package/package.json +16 -15
  32. package/dist/components/GrepDateRange/stories/index.d.ts +0 -1
  33. package/dist/components/NavGuard/stories/index.d.ts +0 -1
  34. package/dist/components/SortableTable/stories/index.d.ts +0 -1
  35. package/dist/components/ToC/stories/index.d.ts +0 -1
  36. package/dist/stories/index.d.ts +0 -4
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const v0colors: {
2
3
  primary: string;
3
4
  secondary: string;
@@ -13,3 +14,14 @@ export declare const v0colors: {
13
14
  white: string;
14
15
  lightGrey: string;
15
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const navbarPages: {
2
3
  id: number;
3
4
  label: string;
@@ -6,3 +7,14 @@ export declare const navbarPages: {
6
7
  name: string;
7
8
  path: string;
8
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 +1,11 @@
1
- export {};
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 +1,17 @@
1
- export {};
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 +1,18 @@
1
- export {};
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,2 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { NavigationProps } from '../../AppBarNavList';
2
3
  export declare const myPages: NavigationProps[];
4
+ declare const _default: {
5
+ title: string;
6
+ excludeStories: string[];
7
+ };
8
+ export default _default;
9
+ export declare const Standard: {
10
+ (): JSX.Element;
11
+ story: {
12
+ name: string;
13
+ };
14
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownMenuItem } from '../..';
2
3
  interface TestMenuItem {
3
4
  label: string;
@@ -5,4 +6,14 @@ interface TestMenuItem {
5
6
  disabled?: boolean;
6
7
  }
7
8
  export declare const menuItems: DropdownMenuItem<TestMenuItem>[];
8
- export {};
9
+ declare const _default: {
10
+ title: string;
11
+ excludeStories: string[];
12
+ };
13
+ export default _default;
14
+ export declare const Standard: {
15
+ (): JSX.Element;
16
+ story: {
17
+ name: string;
18
+ };
19
+ };
@@ -1,2 +1,20 @@
1
+ /// <reference types="react" />
1
2
  import { FooterItem } from '..';
2
3
  export declare const footerItems: FooterItem[];
4
+ declare const _default: {
5
+ title: string;
6
+ excludeStories: string[];
7
+ };
8
+ export default _default;
9
+ export declare const FooterWithContent: {
10
+ (): JSX.Element;
11
+ story: {
12
+ name: string;
13
+ };
14
+ };
15
+ export declare const FooterWithContentLongerThan100: {
16
+ (): JSX.Element;
17
+ story: {
18
+ name: string;
19
+ };
20
+ };
@@ -1,2 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const renderGDPRText: () => JSX.Element;
3
+ declare const _default: {
4
+ title: string;
5
+ excludeStories: string[];
6
+ };
7
+ export default _default;
8
+ export declare const Standard: {
9
+ (): JSX.Element;
10
+ story: {
11
+ name: string;
12
+ };
13
+ };
@@ -1,2 +1,20 @@
1
+ /// <reference types="react" />
1
2
  import { Breadcrumb } from '..';
2
3
  export declare const breadcrumbs: Breadcrumb[];
4
+ declare const _default: {
5
+ title: string;
6
+ excludeStories: string[];
7
+ };
8
+ export default _default;
9
+ export declare const Standard: {
10
+ (): JSX.Element;
11
+ story: {
12
+ name: string;
13
+ };
14
+ };
15
+ export declare const OverflowAsTooltip: {
16
+ (): JSX.Element;
17
+ story: {
18
+ name: string;
19
+ };
20
+ };
@@ -1 +1,9 @@
1
- export {};
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: () => JSX.Element;
8
+ export declare const Test: () => JSX.Element;
9
+ export declare const Outlined: () => JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import 'dayjs/locale/nb';
3
+ declare const _default: {
4
+ title: string;
5
+ decorators: ((storyFn: any) => JSX.Element)[];
6
+ };
7
+ export default _default;
8
+ export declare const Standard: () => JSX.Element;
@@ -1 +1,18 @@
1
- export {};
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 WithCustomActions: {
14
+ (): JSX.Element;
15
+ story: {
16
+ name: string;
17
+ };
18
+ };
@@ -1 +1,49 @@
1
- export {};
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: () => JSX.Element;
8
+ export declare const CustomStyles: {
9
+ (): JSX.Element;
10
+ story: {
11
+ name: string;
12
+ };
13
+ };
14
+ export declare const CustomToolbar: {
15
+ (): JSX.Element;
16
+ story: {
17
+ name: string;
18
+ };
19
+ };
20
+ export declare const CustomButtons: {
21
+ (): JSX.Element;
22
+ story: {
23
+ name: string;
24
+ };
25
+ };
26
+ export declare const PasteStrippingAndBlockedInlineStyles: {
27
+ (): JSX.Element;
28
+ story: {
29
+ name: string;
30
+ };
31
+ };
32
+ export declare const WithCharacterCount: {
33
+ (): JSX.Element;
34
+ story: {
35
+ name: string;
36
+ };
37
+ };
38
+ export declare const DisableAndStripNewlines: {
39
+ (): JSX.Element;
40
+ story: {
41
+ name: string;
42
+ };
43
+ };
44
+ export declare const DisablePasting: {
45
+ (): JSX.Element;
46
+ story: {
47
+ name: string;
48
+ };
49
+ };
@@ -1 +1,13 @@
1
- export {};
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 Input: () => JSX.Element;
8
+ export declare const InputOutlined: {
9
+ (): JSX.Element;
10
+ story: {
11
+ name: string;
12
+ };
13
+ };
@@ -1 +1,8 @@
1
- export {};
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: () => JSX.Element;
8
+ export declare const Outlined: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableColumn } from '..';
2
3
  export interface ICurriculum {
3
4
  id: number;
@@ -8,3 +9,69 @@ export interface ICurriculum {
8
9
  }
9
10
  export declare const tableColumns: TableColumn<ICurriculum>[];
10
11
  export declare const tableData: (samples?: number) => ICurriculum[];
12
+ declare const _default: {
13
+ title: string;
14
+ decorators: ((storyFn: any) => JSX.Element)[];
15
+ excludeStories: string[];
16
+ };
17
+ export default _default;
18
+ export declare const Standard: {
19
+ (): JSX.Element;
20
+ story: {
21
+ name: string;
22
+ };
23
+ };
24
+ export declare const Outlined: {
25
+ (): JSX.Element;
26
+ story: {
27
+ name: string;
28
+ };
29
+ };
30
+ export declare const Clickable: {
31
+ (): JSX.Element;
32
+ story: {
33
+ name: string;
34
+ };
35
+ };
36
+ export declare const WithoutData: {
37
+ (): JSX.Element;
38
+ story: {
39
+ name: string;
40
+ };
41
+ };
42
+ export declare const WithDropdownMenu: {
43
+ (): JSX.Element;
44
+ story: {
45
+ name: string;
46
+ };
47
+ };
48
+ export declare const WithPagination: {
49
+ (): JSX.Element;
50
+ story: {
51
+ name: string;
52
+ };
53
+ };
54
+ export declare const WithoutHeader: {
55
+ (): JSX.Element;
56
+ story: {
57
+ name: string;
58
+ };
59
+ };
60
+ export declare const WithoutPadding: {
61
+ (): JSX.Element;
62
+ story: {
63
+ name: string;
64
+ };
65
+ };
66
+ export declare const WithRowStyle: {
67
+ (): JSX.Element;
68
+ story: {
69
+ name: string;
70
+ };
71
+ };
72
+ export declare const WithRowStyleFunction: {
73
+ (): JSX.Element;
74
+ story: {
75
+ name: string;
76
+ };
77
+ };
@@ -1,2 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { ICurriculum } from '../../GrepTable/stories/GrepTable.stories';
2
3
  export declare const data: ICurriculum[];
4
+ declare const _default: {
5
+ title: string;
6
+ excludeStories: string[];
7
+ };
8
+ export default _default;
9
+ export declare const Standard: {
10
+ (): JSX.Element;
11
+ story: {
12
+ name: string;
13
+ };
14
+ };
@@ -1 +1,11 @@
1
- export {};
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const GreyCoverWithContent: {
7
+ (): JSX.Element;
8
+ story: {
9
+ name: string;
10
+ };
11
+ };
@@ -1 +1,17 @@
1
- export {};
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const HorizontalFields: {
7
+ (): JSX.Element;
8
+ story: {
9
+ name: string;
10
+ };
11
+ };
12
+ export declare const VerticalFields: {
13
+ (): JSX.Element;
14
+ story: {
15
+ name: string;
16
+ };
17
+ };
@@ -1,2 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { NavigationProps } from '../../AppBarNavList';
2
3
  export declare const adminPages: NavigationProps[];
4
+ declare const _default: {
5
+ title: string;
6
+ excludeStories: string[];
7
+ };
8
+ export default _default;
9
+ export declare const Standard: {
10
+ (): JSX.Element;
11
+ story: {
12
+ name: string;
13
+ };
14
+ };
@@ -1 +1,11 @@
1
- export {};
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 +1,11 @@
1
- export {};
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const MainLayoutWithContent: {
7
+ (): JSX.Element;
8
+ story: {
9
+ name: string;
10
+ };
11
+ };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const Default: {
7
+ (): JSX.Element;
8
+ story: {
9
+ name: string;
10
+ };
11
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const user: {
2
3
  firstName: string;
3
4
  lastName: string;
@@ -5,3 +6,14 @@ export declare const user: {
5
6
  phoneNumber: string;
6
7
  role: string;
7
8
  };
9
+ declare const _default: {
10
+ title: string;
11
+ excludeStories: string[];
12
+ };
13
+ export default _default;
14
+ export declare const Standard: {
15
+ (): JSX.Element;
16
+ story: {
17
+ name: string;
18
+ };
19
+ };
@@ -1 +1,11 @@
1
- export {};
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,2 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { NavigationProps } from '../../AppBarNavList';
2
3
  export declare const adminPages: NavigationProps[];
4
+ declare const _default: {
5
+ title: string;
6
+ excludeStories: string[];
7
+ };
8
+ export default _default;
9
+ export declare const Standard: {
10
+ (): JSX.Element;
11
+ story: {
12
+ name: string;
13
+ };
14
+ };
@@ -0,0 +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
+ };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const Default: {
7
+ (): JSX.Element;
8
+ story: {
9
+ name: string;
10
+ };
11
+ };
@@ -0,0 +1,15 @@
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 Dashboard: {
8
+ (): JSX.Element;
9
+ story: {
10
+ name: string;
11
+ };
12
+ };
13
+ export declare const Admin: () => JSX.Element;
14
+ export declare const MyProfile: () => JSX.Element;
15
+ export declare const Læreplaner: () => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grep-components",
3
- "version": "1.26.0-GREPF-2179.1",
3
+ "version": "1.26.0-GREPF-2179.2",
4
4
  "description": "Grep komponentbibliotek",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,8 +20,8 @@
20
20
  "pretest": "tsc --noEmit",
21
21
  "test": "jest --maxWorkers=8 --verbose",
22
22
  "test:ci": "jest --maxWorkers=2 --verbose",
23
- "storybook": "start-storybook -p 9009",
24
- "build-storybook": "build-storybook",
23
+ "storybook": "storybook dev -p 9009",
24
+ "build-storybook": "storybook build",
25
25
  "yalc:init": "yalc add && yalc push",
26
26
  "yalc:build": "rollup -c --no-treeshake --no-sourcemap --environment yalc",
27
27
  "yalc:watch": "npm run yalc:build -- -w",
@@ -89,7 +89,10 @@
89
89
  "redux": "^4.x"
90
90
  },
91
91
  "devDependencies": {
92
+ "storybook": "next",
92
93
  "@babel/core": "^7.20.12",
94
+ "@babel/plugin-transform-private-property-in-object": "^7.22.11",
95
+ "@babel/eslint-parser": "^7.11.0",
93
96
  "@commitlint/cli": "^17.0.2",
94
97
  "@commitlint/config-conventional": "^17.0.2",
95
98
  "@date-io/dayjs": "^2.14.0",
@@ -97,17 +100,15 @@
97
100
  "@rollup/plugin-json": "^6.0.0",
98
101
  "@rollup/plugin-node-resolve": "^15.0.0",
99
102
  "@rollup/plugin-url": "^8.0.0",
100
- "@storybook/addon-actions": "^6.5.15",
101
- "@storybook/addon-essentials": "^6.5.15",
102
- "@storybook/addon-links": "^6.5.15",
103
- "@storybook/addon-storysource": "^6.5.15",
104
- "@storybook/addons": "^7.1.0",
105
- "@storybook/builder-webpack5": "^6.5.15",
106
- "@storybook/cli": "^6.5.15",
107
- "@storybook/manager-webpack5": "^6.5.15",
108
- "@storybook/preset-create-react-app": "^4.1.2",
109
- "@storybook/react": "^6.5.15",
110
- "@storybook/storybook-deployer": "^2.8.12",
103
+ "@storybook/addon-actions": "^7.4.2",
104
+ "@storybook/addon-essentials": "^7.4.2",
105
+ "@storybook/addon-links": "^7.4.2",
106
+ "@storybook/addon-storysource": "^7.4.2",
107
+ "@storybook/addons": "^7.4.2",
108
+ "@storybook/cli": "^7.4.2",
109
+ "@storybook/preset-create-react-app": "^7.4.2",
110
+ "@storybook/react-webpack5": "^7.4.2",
111
+ "@storybook/storybook-deployer": "^2.8.16",
111
112
  "@testing-library/dom": "^9.0.0",
112
113
  "@testing-library/jest-dom": "^5.14.1",
113
114
  "@testing-library/react": "^14.0.0",
@@ -123,7 +124,6 @@
123
124
  "@types/react-router-dom": "^5.1.3",
124
125
  "@typescript-eslint/eslint-plugin": "^5.1.0",
125
126
  "@typescript-eslint/parser": "^5.1.0",
126
- "@babel/eslint-parser": "^7.11.0",
127
127
  "babel-jest": "^29.2.0",
128
128
  "babel-loader": "^9.0.0",
129
129
  "babel-plugin-external-helpers": "^6.22.0",
@@ -140,6 +140,7 @@
140
140
  "eslint-plugin-import": "^2.23.4",
141
141
  "eslint-plugin-react": "^7.24.0",
142
142
  "eslint-plugin-react-hooks": "^4.2.0",
143
+ "eslint-plugin-storybook": "^0.6.13",
143
144
  "history": "^4.7.2",
144
145
  "husky": "^8.0.1",
145
146
  "immutable": "^3.8.2",
@@ -1 +0,0 @@
1
- import 'dayjs/locale/nb';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import '../components/NavGuard/stories';
2
- import '../components/SortableTable/stories';
3
- import '../components/GrepDateRange/stories';
4
- import '../components/ToC/stories';