@bcgov-sso/common-react-components 1.19.0 → 1.20.7
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/cjs/index.js +8897 -5815
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Table/Table.d.ts +12 -0
- package/dist/cjs/types/components/Table/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/esm/index.js +8898 -5817
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Table/Table.d.ts +12 -0
- package/dist/esm/types/components/Table/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +7 -1
- package/package.json +37 -34
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const TABLE_BACKGROUND_COLOR = "#ededed";
|
|
2
|
+
export declare const TABLE_ROW_ACTIVE_COLOR = "#4950FA";
|
|
3
|
+
export declare const TABLE_ROW_HOVER_COLOR = "#fdb913";
|
|
4
|
+
export declare const TABLE_ROW_HEIGHT = 40;
|
|
5
|
+
export declare const TABLE_ROW_HEIGHT_MINI = 40;
|
|
6
|
+
export declare const TABLE_ROW_SPACING = 5;
|
|
7
|
+
export declare const TABLE_ROW_BORDER_RADIUS = 6;
|
|
8
|
+
declare const Table: import("styled-components").StyledComponent<"table", any, {
|
|
9
|
+
variant?: string | undefined;
|
|
10
|
+
readOnly?: boolean | undefined;
|
|
11
|
+
}, never>;
|
|
12
|
+
export default Table;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Table';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as _button_inc_component_library_Button from '@button-inc/component-library/Button';
|
|
3
|
+
import * as styled_components from 'styled-components';
|
|
3
4
|
|
|
4
5
|
declare function AccordionPanel({ title, hash, allOpen, setAllOpen, children }: any): JSX.Element;
|
|
5
6
|
interface Props$2 {
|
|
@@ -32,4 +33,9 @@ interface Props {
|
|
|
32
33
|
}
|
|
33
34
|
declare const Alert: (props: Props) => JSX.Element;
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
declare const Table: styled_components.StyledComponent<"table", any, {
|
|
37
|
+
variant?: string | undefined;
|
|
38
|
+
readOnly?: boolean | undefined;
|
|
39
|
+
}, never>;
|
|
40
|
+
|
|
41
|
+
export { Accordion, Alert, Button, NumberedContents, Table };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcgov-sso/common-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.7",
|
|
4
4
|
"description": "common react components",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
"deploy-storybook": "storybook-to-ghpages",
|
|
15
15
|
"rollup": "rollup -c"
|
|
16
16
|
},
|
|
17
|
-
"author": "
|
|
18
|
-
"license": "
|
|
17
|
+
"author": "SSO Team",
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/bcgov/sso-react-components/issues"
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/bcgov/sso-react-components#readme",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@button-inc/component-library": "^1.0.1",
|
|
25
|
-
"@fortawesome/fontawesome-svg-core": "^1.
|
|
26
|
-
"@fortawesome/free-solid-svg-icons": "^
|
|
27
|
-
"@fortawesome/react-fontawesome": "^0.1.
|
|
28
|
-
"@types/lodash.kebabcase": "^4.1.
|
|
29
|
-
"@types/styled-components": "^5.1.
|
|
25
|
+
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
|
26
|
+
"@fortawesome/free-solid-svg-icons": "^6.1.1",
|
|
27
|
+
"@fortawesome/react-fontawesome": "^0.1.18",
|
|
28
|
+
"@types/lodash.kebabcase": "^4.1.7",
|
|
29
|
+
"@types/styled-components": "^5.1.25",
|
|
30
30
|
"history": "^5.3.0",
|
|
31
31
|
"lodash.flatten": "^4.4.0",
|
|
32
32
|
"lodash.kebabcase": "^4.1.1",
|
|
33
|
-
"styled-components": "^5.3.
|
|
33
|
+
"styled-components": "^5.3.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^17.0.2",
|
|
@@ -41,32 +41,35 @@
|
|
|
41
41
|
"react-dom": "17.0.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@babel/core": "^7.
|
|
45
|
-
"@babel/preset-env": "^7.
|
|
46
|
-
"@babel/preset-react": "^7.
|
|
44
|
+
"@babel/core": "^7.18.5",
|
|
45
|
+
"@babel/preset-env": "^7.18.2",
|
|
46
|
+
"@babel/preset-react": "^7.17.12",
|
|
47
47
|
"@babel/preset-stage-0": "^7.8.3",
|
|
48
|
-
"@babel/preset-typescript": "^7.
|
|
49
|
-
"@rollup/plugin-commonjs": "^
|
|
50
|
-
"@rollup/plugin-node-resolve": "^13.0
|
|
51
|
-
"@rollup/plugin-typescript": "^8.3.
|
|
52
|
-
"@storybook/addon-a11y": "^6.
|
|
53
|
-
"@storybook/addon-actions": "^6.
|
|
54
|
-
"@storybook/addon-essentials": "^6.
|
|
55
|
-
"@storybook/addon-links": "^6.
|
|
56
|
-
"@storybook/
|
|
57
|
-
"@storybook/
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"
|
|
48
|
+
"@babel/preset-typescript": "^7.17.12",
|
|
49
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
50
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
51
|
+
"@rollup/plugin-typescript": "^8.3.3",
|
|
52
|
+
"@storybook/addon-a11y": "^6.5.9",
|
|
53
|
+
"@storybook/addon-actions": "^6.5.9",
|
|
54
|
+
"@storybook/addon-essentials": "^6.5.9",
|
|
55
|
+
"@storybook/addon-links": "^6.5.9",
|
|
56
|
+
"@storybook/builder-webpack5": "^6.5.9",
|
|
57
|
+
"@storybook/manager-webpack5": "^6.5.9",
|
|
58
|
+
"@storybook/react": "^6.5.9",
|
|
59
|
+
"@storybook/storybook-deployer": "^2.8.11",
|
|
60
|
+
"@types/lodash": "^4.14.182",
|
|
61
|
+
"@types/lodash.flatten": "^4.4.7",
|
|
62
|
+
"babel-loader": "^8.2.5",
|
|
61
63
|
"babel-preset-react": "^6.24.1",
|
|
62
|
-
"prettier": "^2.
|
|
63
|
-
"react": "
|
|
64
|
-
"react-dom": "
|
|
65
|
-
"rollup": "^2.
|
|
66
|
-
"rollup-plugin-dts": "^4.
|
|
67
|
-
"storybook-addon-designs": "^6.
|
|
68
|
-
"ts-loader": "^9.
|
|
69
|
-
"typescript": "^4.
|
|
70
|
-
"webpack
|
|
64
|
+
"prettier": "^2.7.1",
|
|
65
|
+
"react": "18.2.0",
|
|
66
|
+
"react-dom": "18.2.0",
|
|
67
|
+
"rollup": "^2.75.6",
|
|
68
|
+
"rollup-plugin-dts": "^4.2.2",
|
|
69
|
+
"storybook-addon-designs": "^6.3.1",
|
|
70
|
+
"ts-loader": "^9.3.0",
|
|
71
|
+
"typescript": "^4.7.4",
|
|
72
|
+
"webpack": "^5.73.0",
|
|
73
|
+
"webpack-cli": "^4.10.0"
|
|
71
74
|
}
|
|
72
75
|
}
|