@secondstaxorg/sscomp 1.3.2 → 1.3.5
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/LICENSE +15 -15
- package/dist/index.es.js +710 -710
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3293 -457
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +710 -710
- package/dist/index.min.js.map +1 -1
- package/package.json +84 -82
- package/types/components/ActionFailed/ActionFailed.d.ts +3 -0
- package/types/components/ActionFailed/type.d.ts +6 -0
- package/types/components/Button/Button.d.ts +22 -2
- package/types/components/Button/type.d.ts +12 -0
- package/types/ui-documentation/colours/style.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,82 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@secondstaxorg/sscomp",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"registry": "https://registry.npmjs.org/"
|
|
6
|
-
},
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/Secondstax/sscomp"
|
|
10
|
-
},
|
|
11
|
-
"description": "A react component library for secondstax",
|
|
12
|
-
"main": "dist/index.min.js",
|
|
13
|
-
"module": "dist/index.es.js",
|
|
14
|
-
"types": "types/index.d.ts",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@storybook/
|
|
38
|
-
"@storybook/
|
|
39
|
-
"@storybook/
|
|
40
|
-
"@storybook/
|
|
41
|
-
"@storybook/
|
|
42
|
-
"@storybook/
|
|
43
|
-
"@storybook/
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"rollup
|
|
52
|
-
"rollup-plugin-
|
|
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
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@secondstaxorg/sscomp",
|
|
3
|
+
"version": "1.3.5",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "https://registry.npmjs.org/"
|
|
6
|
+
},
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Secondstax/sscomp"
|
|
10
|
+
},
|
|
11
|
+
"description": "A react component library for secondstax",
|
|
12
|
+
"main": "dist/index.min.js",
|
|
13
|
+
"module": "dist/index.es.js",
|
|
14
|
+
"types": "types/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"types"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
21
|
+
"build": "tsc && rollup -c rollup.config.js",
|
|
22
|
+
"storybook": "storybook dev -p 6006",
|
|
23
|
+
"predeploy": "npm run build-storybook",
|
|
24
|
+
"deploy-storybook": "gh-pages -d storybook-static",
|
|
25
|
+
"build-storybook": "storybook build"
|
|
26
|
+
},
|
|
27
|
+
"author": "augustus Otu, mark obuobi",
|
|
28
|
+
"license": "ISC",
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@babel/core": "^7.19.6",
|
|
31
|
+
"@babel/preset-env": "^7.22.5",
|
|
32
|
+
"@babel/preset-react": "^7.22.5",
|
|
33
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
34
|
+
"@rollup/plugin-commonjs": "^23.0.7",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
36
|
+
"@rollup/plugin-typescript": "^9.0.2",
|
|
37
|
+
"@storybook/addon-actions": "^7.0.22",
|
|
38
|
+
"@storybook/addon-essentials": "^7.0.22",
|
|
39
|
+
"@storybook/addon-interactions": "^7.0.22",
|
|
40
|
+
"@storybook/addon-links": "^7.0.22",
|
|
41
|
+
"@storybook/addon-mdx-gfm": "7.0.22",
|
|
42
|
+
"@storybook/react": "^7.0.22",
|
|
43
|
+
"@storybook/react-webpack5": "7.0.22",
|
|
44
|
+
"@storybook/storybook-deployer": "^2.8.16",
|
|
45
|
+
"@storybook/testing-library": "^0.1.0",
|
|
46
|
+
"@types/react": "^18.0.22",
|
|
47
|
+
"@types/styled-components": "^5.1.26",
|
|
48
|
+
"babel-loader": "^8.2.5",
|
|
49
|
+
"react": "^18.2.0",
|
|
50
|
+
"react-dom": "^18.2.0",
|
|
51
|
+
"rollup": "^3.2.3",
|
|
52
|
+
"rollup-plugin-dts": "^5.1.1",
|
|
53
|
+
"rollup-plugin-image": "^1.0.2",
|
|
54
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
55
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
56
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
57
|
+
"storybook": "7.0.22",
|
|
58
|
+
"styled-components": "^5.3.6",
|
|
59
|
+
"typescript": "^4.8.4",
|
|
60
|
+
"webpack": "^5.74.0"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@heroicons/react": "^2.0.13",
|
|
64
|
+
"@mdx-js/react": "^1.6.22",
|
|
65
|
+
"@rollup/plugin-image": "^3.0.2",
|
|
66
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
67
|
+
"@rollup/plugin-sucrase": "^5.0.1",
|
|
68
|
+
"axios": "^1.4.0",
|
|
69
|
+
"chart.js": "^3.9.1",
|
|
70
|
+
"dayjs": "^1.11.6",
|
|
71
|
+
"gh-pages": "^4.0.0",
|
|
72
|
+
"heroicons": "^2.0.12",
|
|
73
|
+
"postcss": "^8.4.21",
|
|
74
|
+
"react-chartjs-2": "^4.3.1",
|
|
75
|
+
"react-fast-marquee": "^1.3.5",
|
|
76
|
+
"react-is": "^18.2.0",
|
|
77
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
78
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
79
|
+
"rollup-plugin-typescript2": "^0.34.1"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"styled-components": "^5.3.6"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Colour variant of the button
|
|
5
|
+
*/
|
|
6
|
+
variant?: 'primary' | 'error' | 'warning' | 'success';
|
|
7
|
+
/**
|
|
8
|
+
* Size of the button. Whether large, medium or small
|
|
9
|
+
*/
|
|
10
|
+
size: 'lg' | 'md' | 'sm';
|
|
11
|
+
/**
|
|
12
|
+
* State of the button. Whether disabled or not.
|
|
13
|
+
*/
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* HTML or text content of the button. Essentially the label.
|
|
17
|
+
*/
|
|
18
|
+
children: any;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Solid and Outline buttons
|
|
22
|
+
*/
|
|
3
23
|
declare const Button: (props: ButtonProps) => JSX.Element;
|
|
4
24
|
export default Button;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Colour variant of the button
|
|
5
|
+
*/
|
|
3
6
|
variant?: 'primary' | 'error' | 'warning' | 'success';
|
|
7
|
+
/**
|
|
8
|
+
* Size of the button. Whether large, medium or small
|
|
9
|
+
*/
|
|
4
10
|
size: 'lg' | 'md' | 'sm';
|
|
11
|
+
/**
|
|
12
|
+
* State of the button. Whether disabled or not.
|
|
13
|
+
*/
|
|
5
14
|
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* HTML or text content of the button. Essentially the label.
|
|
17
|
+
*/
|
|
6
18
|
children: any;
|
|
7
19
|
}
|