@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/package.json CHANGED
@@ -1,82 +1,84 @@
1
- {
2
- "name": "@secondstaxorg/sscomp",
3
- "version": "1.3.2",
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","types"
17
- ],
18
- "scripts": {
19
- "test": "echo \"Error: no test specified\" && exit 1",
20
- "build": "tsc && rollup -c rollup.config.js",
21
- "storybook": "start-storybook -p 6006",
22
- "predeploy": "npm run build-storybook",
23
- "deploy-storybook": "gh-pages -d storybook-static",
24
- "build-storybook": "build-storybook"
25
- },
26
- "author": "augustus Otu, mark obuobi",
27
- "license": "ISC",
28
- "devDependencies": {
29
- "@babel/core": "^7.19.6",
30
- "@rollup/plugin-commonjs": "^23.0.7",
31
- "@rollup/plugin-node-resolve": "^15.0.1",
32
- "@rollup/plugin-typescript": "^9.0.2",
33
- "@storybook/addon-actions": "^6.5.13",
34
- "@storybook/addon-essentials": "^6.5.13",
35
- "@storybook/addon-interactions": "^6.5.13",
36
- "@storybook/addon-links": "^6.5.13",
37
- "@storybook/builder-webpack4": "^6.5.13",
38
- "@storybook/builder-webpack5": "^6.5.13",
39
- "@storybook/manager-webpack4": "^6.5.13",
40
- "@storybook/manager-webpack5": "^6.5.13",
41
- "@storybook/react": "^6.5.13",
42
- "@storybook/storybook-deployer": "^2.8.16",
43
- "@storybook/testing-library": "^0.0.13",
44
- "@types/react": "^18.0.22",
45
- "@types/styled-components": "^5.1.26",
46
- "babel-loader": "^8.2.5",
47
- "rollup": "^3.2.3",
48
- "rollup-plugin-dts": "^5.1.1",
49
- "rollup-plugin-image": "^1.0.2",
50
- "rollup-plugin-peer-deps-external": "^2.2.4",
51
- "rollup-plugin-postcss": "^4.0.2",
52
- "rollup-plugin-terser": "^7.0.2",
53
- "styled-components": "^5.3.6",
54
- "typescript": "^4.8.4",
55
- "webpack": "^5.74.0"
56
- },
57
- "dependencies": {
58
- "@heroicons/react": "^2.0.13",
59
- "@mdx-js/react": "^1.6.22",
60
- "@rollup/plugin-image": "^3.0.2",
61
- "@rollup/plugin-json": "^6.0.0",
62
- "@rollup/plugin-sucrase": "^5.0.1",
63
- "@secondstaxorg/sscomp": "^1.0.9",
64
- "axios": "^1.4.0",
65
- "chart.js": "^3.9.1",
66
- "dayjs": "^1.11.6",
67
- "gh-pages": "^4.0.0",
68
- "heroicons": "^2.0.12",
69
- "postcss": "^8.4.21",
70
- "react-chartjs-2": "^4.3.1",
71
- "react-fast-marquee": "^1.3.5",
72
- "react-is": "^18.2.0",
73
- "rollup-plugin-copy": "^3.4.0",
74
- "rollup-plugin-sourcemaps": "^0.6.3",
75
- "rollup-plugin-typescript2": "^0.34.1"
76
- },
77
- "peerDependencies": {
78
- "styled-components": "^5.3.6",
79
- "react": "^18.2.0",
80
- "react-dom": "^18.2.0"
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,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ActionFailedProps } from "./type";
3
+ /**
4
+ * Solid button
5
+ */
3
6
  export declare const ActionFailed: (props: ActionFailedProps) => JSX.Element;
4
7
  export default ActionFailed;
@@ -1,4 +1,10 @@
1
1
  export interface ActionFailedProps {
2
+ /**
3
+ * Heading message from the response of the action
4
+ */
2
5
  headingText?: string;
6
+ /**
7
+ * Text explaining the details of the error
8
+ */
3
9
  subText?: string;
4
10
  }
@@ -1,4 +1,24 @@
1
- /// <reference types="react" />
2
- import { ButtonProps } from "./type";
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
  }
@@ -0,0 +1,2 @@
1
+ export declare const PreviewContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const FirstDiv: import("styled-components").StyledComponent<"div", any, {}, never>;