hplx-react-elements-dev 1.2.44 → 1.2.46
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/dist/esm/addSuggestion/AddSuggestion.d.ts +1 -1
- package/dist/esm/checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/reusableTable/ReusableTableTypes.d.ts +7 -0
- package/dist/esm/reusableTable/components/FilterCheckbox.d.ts +8 -0
- package/dist/esm/reusableTable/components/FilterDropdown.d.ts +9 -0
- package/dist/esm/reusableTable/context/TableContext.d.ts +3 -1
- package/dist/esm/timePicker/TimePicker.d.ts +1 -0
- package/dist/esm/toggleSwitch/ToggleSwitch.d.ts +1 -1
- package/dist/esm/types.d.ts +1 -0
- package/package.json +115 -115
|
@@ -33,6 +33,9 @@ export interface ITableColDef<T> {
|
|
|
33
33
|
pinned?: typeof PinnableValues[keyof typeof PinnableValues];
|
|
34
34
|
renderCell?: (value: unknown, row: T, column: ITableColDef<T>, rowIndex: number) => React.ReactNode;
|
|
35
35
|
valueFormatter?: (value: unknown, row: T, column: ITableColDef<T>, rowIndex: number) => React.ReactNode;
|
|
36
|
+
enableFilter?: boolean;
|
|
37
|
+
filterValues?: ITableDropdown[];
|
|
38
|
+
onFilterCheck?: (value: string) => void;
|
|
36
39
|
}
|
|
37
40
|
export declare const PinnableValues: {
|
|
38
41
|
Left: string;
|
|
@@ -53,3 +56,7 @@ export interface ITableRowProps {
|
|
|
53
56
|
export interface ITableHeadProps<T> {
|
|
54
57
|
columns: ITableColDef<T>[];
|
|
55
58
|
}
|
|
59
|
+
export interface ITableDropdown {
|
|
60
|
+
name: string;
|
|
61
|
+
isSelected: boolean;
|
|
62
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ITableDropdown } from "../ReusableTableTypes";
|
|
3
|
+
interface FilterDropdown {
|
|
4
|
+
options: ITableDropdown[];
|
|
5
|
+
onCheck: (name: string) => void;
|
|
6
|
+
dropdownRef: React.Ref<HTMLUListElement>;
|
|
7
|
+
}
|
|
8
|
+
declare function FilterDropdown(props: FilterDropdown): JSX.Element;
|
|
9
|
+
export default FilterDropdown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { SetStateAction } from "react";
|
|
2
2
|
import { ITableColDef } from "../ReusableTableTypes";
|
|
3
3
|
import { IPaginationProps } from "../components/Pagination";
|
|
4
4
|
interface TableContextProps<T> {
|
|
@@ -17,6 +17,8 @@ interface TableContextProps<T> {
|
|
|
17
17
|
paginationState: IPaginationProps;
|
|
18
18
|
setPaginationState: React.Dispatch<React.SetStateAction<IPaginationProps>>;
|
|
19
19
|
onPaginationClick: ((activePage: number) => void) | undefined;
|
|
20
|
+
showDropdown: string | null;
|
|
21
|
+
setShowDropdown: React.Dispatch<SetStateAction<string | null>>;
|
|
20
22
|
}
|
|
21
23
|
export declare const useTableContext: <T>() => TableContextProps<T>;
|
|
22
24
|
export declare const TableProvider: <T>({ children, initialColumns, rowData, headerRowClasses, rowClassesForSpecificIndex, tableBodyClassesToOverride, hideHeader, paginationProps, onPaginationClick, }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ToggleSwitchProps } from "../types";
|
|
3
|
-
declare const ToggleSwitch: ({ size, theme, disabled, text, secondaryText, id, onClick, isToggled }: ToggleSwitchProps) => JSX.Element;
|
|
3
|
+
declare const ToggleSwitch: ({ size, theme, disabled, text, secondaryText, id, onClick, isToggled, }: ToggleSwitchProps) => JSX.Element;
|
|
4
4
|
export default ToggleSwitch;
|
package/dist/esm/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
2
|
+
"name": "hplx-react-elements-dev",
|
|
3
|
+
"description": "Healthplix UI Element",
|
|
4
|
+
"author": "healthplix-tech",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"elements",
|
|
8
|
+
"ui",
|
|
9
|
+
"frontend",
|
|
10
|
+
"healthplix"
|
|
11
|
+
],
|
|
12
|
+
"version": "1.2.46",
|
|
13
|
+
"main": "dist/esm/index.js",
|
|
14
|
+
"module": "dist/esm/index.js",
|
|
15
|
+
"types": "dist/esm/index.d.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://hplx-admin@bitbucket.org/healthplixrepos/ui-elements.git"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"react-date-range": "^1.4.0",
|
|
26
|
+
"react-modal": "^3.16.1",
|
|
27
|
+
"rollup-plugin-terser": "^7.0.2"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"start": "react-scripts start",
|
|
31
|
+
"build:tailwind": "tailwindcss build -i src/tailwind.css -o src/themes/tailwind.output.css",
|
|
32
|
+
"build": "rm -rf dist && NODE_ENV=production && rollup -c",
|
|
33
|
+
"test": "react-scripts test",
|
|
34
|
+
"eject": "react-scripts eject",
|
|
35
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
36
|
+
"build-storybook": "build-storybook -s public"
|
|
37
|
+
},
|
|
38
|
+
"eslintConfig": {
|
|
39
|
+
"extends": [
|
|
40
|
+
"react-app",
|
|
41
|
+
"react-app/jest"
|
|
42
|
+
],
|
|
43
|
+
"overrides": [
|
|
44
|
+
{
|
|
45
|
+
"files": [
|
|
46
|
+
"**/*.stories.*"
|
|
47
|
+
],
|
|
48
|
+
"rules": {
|
|
49
|
+
"import/no-anonymous-default-export": "off"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"browserslist": {
|
|
55
|
+
"production": [
|
|
56
|
+
">0.2%",
|
|
57
|
+
"not dead",
|
|
58
|
+
"not op_mini all"
|
|
59
|
+
],
|
|
60
|
+
"development": [
|
|
61
|
+
"last 1 chrome version",
|
|
62
|
+
"last 1 firefox version",
|
|
63
|
+
"last 1 safari version"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@babel/cli": "^7.18.10",
|
|
68
|
+
"@babel/core": "^7.18.10",
|
|
69
|
+
"@babel/polyfill": "^7.12.1",
|
|
70
|
+
"@babel/preset-env": "^7.18.10",
|
|
71
|
+
"@rollup/plugin-babel": "^6.0.2",
|
|
72
|
+
"@rollup/plugin-commonjs": "^23.0.2",
|
|
73
|
+
"@rollup/plugin-image": "^3.0.1",
|
|
74
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
75
|
+
"@rollup/plugin-replace": "^5.0.1",
|
|
76
|
+
"@rollup/plugin-typescript": "^9.0.2",
|
|
77
|
+
"@storybook/addon-actions": "^6.5.9",
|
|
78
|
+
"@storybook/addon-essentials": "^6.5.9",
|
|
79
|
+
"@storybook/addon-interactions": "^6.5.9",
|
|
80
|
+
"@storybook/addon-links": "^6.5.9",
|
|
81
|
+
"@storybook/builder-webpack5": "^6.5.9",
|
|
82
|
+
"@storybook/manager-webpack5": "^6.5.9",
|
|
83
|
+
"@storybook/node-logger": "^6.5.9",
|
|
84
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
85
|
+
"@storybook/react": "^6.5.9",
|
|
86
|
+
"@storybook/testing-library": "^0.0.13",
|
|
87
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
88
|
+
"@testing-library/react": "^13.3.0",
|
|
89
|
+
"@testing-library/user-event": "^13.5.0",
|
|
90
|
+
"@types/jest": "^27.5.2",
|
|
91
|
+
"@types/node": "^16.11.46",
|
|
92
|
+
"@types/react": "^18.0.15",
|
|
93
|
+
"@types/react-calendar": "^3.5.3",
|
|
94
|
+
"@types/react-date-range": "^1.4.4",
|
|
95
|
+
"@types/react-dom": "^18.0.6",
|
|
96
|
+
"@types/react-modal": "^3.13.1",
|
|
97
|
+
"@types/webfontloader": "^1.6.34",
|
|
98
|
+
"autoprefixer": "^10.4.7",
|
|
99
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
100
|
+
"dayjs": "^1.11.6",
|
|
101
|
+
"hplx-ui-icons": "^2.2.6",
|
|
102
|
+
"postcss": "^8.4.14",
|
|
103
|
+
"postcss-loader": "^7.0.1",
|
|
104
|
+
"prop-types": "^15.8.1",
|
|
105
|
+
"react": "^18.2.0",
|
|
106
|
+
"react-dom": "^18.2.0",
|
|
107
|
+
"react-scripts": "5.0.1",
|
|
108
|
+
"rollup": "^2.79.1",
|
|
109
|
+
"rollup-plugin-filesize": "^9.1.2",
|
|
110
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
111
|
+
"tailwindcss": "^3.1.6",
|
|
112
|
+
"typescript": "^4.7.4",
|
|
113
|
+
"web-vitals": "^2.1.4",
|
|
114
|
+
"webfontloader": "^1.6.28",
|
|
115
|
+
"webpack": "^5.74.0"
|
|
116
|
+
}
|
|
117
117
|
}
|