@hortiview/shared-components 0.0.6193 → 0.0.6320
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.
- package/README.md +1 -5
- package/dist/assets/main.css +2 -2
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.test.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.test.js +1 -1
- package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
- package/dist/components/EmptyView/EmptyView.test.js +1 -1
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +1 -1
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +1 -1
- package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
- package/dist/components/GenericTable/GenericTable.d.ts +1 -1
- package/dist/components/GenericTable/GenericTable.js +69 -60
- package/dist/components/GenericTable/GenericTable.test.js +63 -32
- package/dist/components/HashTabView/HashTabView.test.js +1 -1
- package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
- package/dist/components/Iconify/Iconify.d.ts +1 -1
- package/dist/components/Iconify/Iconify.js +37 -37
- package/dist/components/Iconify/Iconify.test.js +1 -1
- package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
- package/dist/components/Scrollbar/scrollbar.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
- package/dist/main.d.ts +3 -3
- package/dist/{react.esm-C0LtovhP.js → react.esm-D9-uytwS.js} +1658 -1652
- package/dist/types/GenericTable.d.ts +9 -0
- package/package.json +23 -10
|
@@ -61,6 +61,15 @@ export type TableLayoutProps<T> = {
|
|
|
61
61
|
* @returns an array of ListItemProps that will be shown as actions for the row
|
|
62
62
|
*/
|
|
63
63
|
getRowActions?: (row: T) => ListItemProps[];
|
|
64
|
+
/**
|
|
65
|
+
* custom column width that is specified by a column key. Note, can be a unit-less number (in pixels) or a percentage "10%"
|
|
66
|
+
* @example customColumnWidth={{ id: '15%', actionColumn: '10%' }}
|
|
67
|
+
*/
|
|
68
|
+
customColumnWidth?: Partial<Record<keyof T, number | string>>;
|
|
69
|
+
/**
|
|
70
|
+
* table title to be displayed in the TableTopBar
|
|
71
|
+
*/
|
|
72
|
+
title?: string;
|
|
64
73
|
};
|
|
65
74
|
/**
|
|
66
75
|
* Props for the CellTemplate component {@link CellTemplate}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6320",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
|
|
7
7
|
"author": "Falk Menge <falk.menge.ext@bayer.com>",
|
|
@@ -23,19 +23,30 @@
|
|
|
23
23
|
"test": "vitest",
|
|
24
24
|
"test:ci": "vitest run --coverage --coverage.include=lib",
|
|
25
25
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
26
|
-
"preview": "vite preview"
|
|
26
|
+
"preview": "vite preview",
|
|
27
|
+
"storybook": "storybook dev -p 6006",
|
|
28
|
+
"build-storybook": "storybook build"
|
|
27
29
|
},
|
|
28
30
|
"peerDependencies": {
|
|
29
|
-
"@element/react-components": "^5.
|
|
30
|
-
"@element/themes": "^5.
|
|
31
|
+
"@element/react-components": "^5.42.4",
|
|
32
|
+
"@element/themes": "^5.44.4",
|
|
31
33
|
"lodash": "^4.17.21",
|
|
32
|
-
"react": "^18.
|
|
33
|
-
"react-dom": "^18.
|
|
34
|
+
"react": "^18.3.1",
|
|
35
|
+
"react-dom": "^18.3.1",
|
|
34
36
|
"react-hook-form": "^7.51.2"
|
|
35
37
|
},
|
|
36
38
|
"devDependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@element/
|
|
39
|
+
"@chromatic-com/storybook": "1.5.0",
|
|
40
|
+
"@element/react-components": "^5.42.4",
|
|
41
|
+
"@element/themes": "^5.44.4",
|
|
42
|
+
"@storybook/addon-essentials": "^8.1.6",
|
|
43
|
+
"@storybook/addon-interactions": "^8.1.6",
|
|
44
|
+
"@storybook/addon-links": "^8.1.6",
|
|
45
|
+
"@storybook/addon-onboarding": "^8.1.6",
|
|
46
|
+
"@storybook/blocks": "^8.1.6",
|
|
47
|
+
"@storybook/react": "^8.1.6",
|
|
48
|
+
"@storybook/react-vite": "^8.1.6",
|
|
49
|
+
"@storybook/test": "^8.1.6",
|
|
39
50
|
"@testing-library/jest-dom": "^6.4.2",
|
|
40
51
|
"@testing-library/react": "^14.2.1",
|
|
41
52
|
"@types/lodash": "^4.17.0",
|
|
@@ -50,12 +61,14 @@
|
|
|
50
61
|
"eslint": "^8.57.0",
|
|
51
62
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
52
63
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
64
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
53
65
|
"glob": "^10.3.10",
|
|
54
66
|
"jsdom": "^24.0.0",
|
|
55
67
|
"lodash": "^4.17.21",
|
|
56
|
-
"react": "^18.
|
|
57
|
-
"react-dom": "^18.
|
|
68
|
+
"react": "^18.3.1",
|
|
69
|
+
"react-dom": "^18.3.1",
|
|
58
70
|
"react-hook-form": "^7.51.2",
|
|
71
|
+
"storybook": "^8.1.6",
|
|
59
72
|
"typescript": "^5.2.2",
|
|
60
73
|
"vite": "^5.1.6",
|
|
61
74
|
"vite-plugin-dts": "^3.7.3",
|