gasp-components 1.0.33 → 1.0.34
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 +14 -14
- package/dist/components/progress/index.d.ts +5 -1
- package/dist/components/progress/index.js +14 -10
- package/package.json +80 -80
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# GASP Components
|
|
2
|
-
Standard React components for (General Authority for Statistics) projects
|
|
3
|
-
|
|
4
|
-
## Pre-requesite
|
|
5
|
-
|
|
6
|
-
- NodeJS latest iron version (v20.xx.xx)
|
|
7
|
-
- NPM v10.xx.xx
|
|
8
|
-
|
|
9
|
-
## Development Instructions
|
|
10
|
-
- To start the development: `npm run dev`
|
|
11
|
-
|
|
12
|
-
## References
|
|
13
|
-
## References
|
|
14
|
-
- [Ant Design](https://ant.design/components/overview/) React Components
|
|
1
|
+
# GASP Components
|
|
2
|
+
Standard React components for (General Authority for Statistics) projects
|
|
3
|
+
|
|
4
|
+
## Pre-requesite
|
|
5
|
+
|
|
6
|
+
- NodeJS latest iron version (v20.xx.xx)
|
|
7
|
+
- NPM v10.xx.xx
|
|
8
|
+
|
|
9
|
+
## Development Instructions
|
|
10
|
+
- To start the development: `npm run dev`
|
|
11
|
+
|
|
12
|
+
## References
|
|
13
|
+
## References
|
|
14
|
+
- [Ant Design](https://ant.design/components/overview/) React Components
|
|
15
15
|
- [Tailwindcss](https://tailwindcss.com/docs/utility-first) for styling
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ProgressProps } from "antd";
|
|
2
|
+
import { ProgressProps as AntdProgressProps } from "antd";
|
|
3
|
+
interface ProgressProps extends AntdProgressProps {
|
|
4
|
+
textClassName?: string;
|
|
5
|
+
}
|
|
3
6
|
export declare const Progress: React.FC<ProgressProps>;
|
|
7
|
+
export {};
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Row as
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Row as x, Typography as n, Progress as d } from "antd";
|
|
3
3
|
import e from "classnames";
|
|
4
|
-
const
|
|
4
|
+
const c = ({
|
|
5
5
|
percent: s = 0,
|
|
6
6
|
className: m,
|
|
7
7
|
format: r,
|
|
8
8
|
showInfo: a = !0,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
textClassName: i,
|
|
10
|
+
...t
|
|
11
|
+
}) => /* @__PURE__ */ l(x, { justify: "end", children: [
|
|
11
12
|
/* @__PURE__ */ o(
|
|
12
|
-
|
|
13
|
+
n.Text,
|
|
13
14
|
{
|
|
14
|
-
className: e(
|
|
15
|
+
className: e(
|
|
16
|
+
i,
|
|
17
|
+
"mb-1 font-medium text-xs leading-[18px]"
|
|
18
|
+
),
|
|
15
19
|
children: a && (r ? r(s) : `${s}%`)
|
|
16
20
|
}
|
|
17
21
|
),
|
|
18
22
|
/* @__PURE__ */ o(
|
|
19
|
-
|
|
23
|
+
d,
|
|
20
24
|
{
|
|
21
|
-
...
|
|
25
|
+
...t,
|
|
22
26
|
percent: s,
|
|
23
27
|
showInfo: !1,
|
|
24
28
|
className: e(m, "m-0 leading-[0px]")
|
|
@@ -26,5 +30,5 @@ const p = ({
|
|
|
26
30
|
)
|
|
27
31
|
] });
|
|
28
32
|
export {
|
|
29
|
-
|
|
33
|
+
c as Progress
|
|
30
34
|
};
|
package/package.json
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gasp-components",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "npm run storybook",
|
|
8
|
-
"build": "tsc --p ./tsconfig.build.json && vite build",
|
|
9
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
10
|
-
"prepublishOnly": "npm run build",
|
|
11
|
-
"storybook": "storybook dev -p 6006",
|
|
12
|
-
"build-storybook": "storybook build"
|
|
13
|
-
},
|
|
14
|
-
"peerDependencies": {
|
|
15
|
-
"@ag-grid-enterprise/excel-export": "^31.0.2",
|
|
16
|
-
"@ag-grid-enterprise/server-side-row-model": "^31.0.2",
|
|
17
|
-
"@ag-grid-enterprise/set-filter": "^31.0.2",
|
|
18
|
-
"ag-grid-community": "^31.0.2",
|
|
19
|
-
"ag-grid-react": "^31.0.2",
|
|
20
|
-
"antd": "^5.13.1",
|
|
21
|
-
"classnames": "^2.5.1",
|
|
22
|
-
"react": "^18.2.0",
|
|
23
|
-
"react-dom": "^18.2.0",
|
|
24
|
-
"react-intl": "^6.6.1",
|
|
25
|
-
"sass": "^1.69.7",
|
|
26
|
-
"tailwind-scrollbar-hide": "^1.1.7"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@ag-grid-enterprise/excel-export": "^31.0.2",
|
|
30
|
-
"@ag-grid-enterprise/server-side-row-model": "^31.0.2",
|
|
31
|
-
"@ag-grid-enterprise/set-filter": "^31.0.2",
|
|
32
|
-
"@storybook/addon-essentials": "^7.6.8",
|
|
33
|
-
"@storybook/addon-interactions": "^7.6.8",
|
|
34
|
-
"@storybook/addon-links": "^7.6.8",
|
|
35
|
-
"@storybook/addon-onboarding": "^1.0.10",
|
|
36
|
-
"@storybook/blocks": "^7.6.8",
|
|
37
|
-
"@storybook/builder-vite": "^7.6.9",
|
|
38
|
-
"@storybook/preview-api": "^7.6.8",
|
|
39
|
-
"@storybook/react": "^7.6.8",
|
|
40
|
-
"@storybook/react-vite": "^7.6.8",
|
|
41
|
-
"@storybook/test": "^7.6.8",
|
|
42
|
-
"@storybook/types": "^7.6.8",
|
|
43
|
-
"@types/node": "^20.11.4",
|
|
44
|
-
"@types/react": "^18.2.43",
|
|
45
|
-
"@types/react-dom": "^18.2.17",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
47
|
-
"@typescript-eslint/parser": "^6.14.0",
|
|
48
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
49
|
-
"ag-grid-community": "^31.0.2",
|
|
50
|
-
"ag-grid-react": "^31.0.2",
|
|
51
|
-
"antd": "^5.13.1",
|
|
52
|
-
"autoprefixer": "^10.4.16",
|
|
53
|
-
"classnames": "^2.5.1",
|
|
54
|
-
"eslint": "^8.55.0",
|
|
55
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
56
|
-
"eslint-plugin-react-refresh": "^0.4.5",
|
|
57
|
-
"eslint-plugin-storybook": "^0.6.15",
|
|
58
|
-
"glob": "^10.3.10",
|
|
59
|
-
"postcss": "^8.4.33",
|
|
60
|
-
"react": "^18.2.0",
|
|
61
|
-
"react-dom": "^18.2.0",
|
|
62
|
-
"react-intl": "^6.6.1",
|
|
63
|
-
"sass": "^1.69.7",
|
|
64
|
-
"storybook": "^7.6.8",
|
|
65
|
-
"tailwindcss": "^3.4.1",
|
|
66
|
-
"typescript": "^5.2.2",
|
|
67
|
-
"vite": "^5.0.8",
|
|
68
|
-
"vite-plugin-dts": "^3.7.1",
|
|
69
|
-
"vite-plugin-lib-inject-css": "^1.3.0",
|
|
70
|
-
"tailwind-scrollbar-hide": "^1.1.7"
|
|
71
|
-
},
|
|
72
|
-
"main": "dist/main.js",
|
|
73
|
-
"types": "dist/main.d.ts",
|
|
74
|
-
"files": [
|
|
75
|
-
"dist"
|
|
76
|
-
],
|
|
77
|
-
"sideEffects": [
|
|
78
|
-
"**/*.css"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "gasp-components",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.34",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "npm run storybook",
|
|
8
|
+
"build": "tsc --p ./tsconfig.build.json && vite build",
|
|
9
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
10
|
+
"prepublishOnly": "npm run build",
|
|
11
|
+
"storybook": "storybook dev -p 6006",
|
|
12
|
+
"build-storybook": "storybook build"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"@ag-grid-enterprise/excel-export": "^31.0.2",
|
|
16
|
+
"@ag-grid-enterprise/server-side-row-model": "^31.0.2",
|
|
17
|
+
"@ag-grid-enterprise/set-filter": "^31.0.2",
|
|
18
|
+
"ag-grid-community": "^31.0.2",
|
|
19
|
+
"ag-grid-react": "^31.0.2",
|
|
20
|
+
"antd": "^5.13.1",
|
|
21
|
+
"classnames": "^2.5.1",
|
|
22
|
+
"react": "^18.2.0",
|
|
23
|
+
"react-dom": "^18.2.0",
|
|
24
|
+
"react-intl": "^6.6.1",
|
|
25
|
+
"sass": "^1.69.7",
|
|
26
|
+
"tailwind-scrollbar-hide": "^1.1.7"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@ag-grid-enterprise/excel-export": "^31.0.2",
|
|
30
|
+
"@ag-grid-enterprise/server-side-row-model": "^31.0.2",
|
|
31
|
+
"@ag-grid-enterprise/set-filter": "^31.0.2",
|
|
32
|
+
"@storybook/addon-essentials": "^7.6.8",
|
|
33
|
+
"@storybook/addon-interactions": "^7.6.8",
|
|
34
|
+
"@storybook/addon-links": "^7.6.8",
|
|
35
|
+
"@storybook/addon-onboarding": "^1.0.10",
|
|
36
|
+
"@storybook/blocks": "^7.6.8",
|
|
37
|
+
"@storybook/builder-vite": "^7.6.9",
|
|
38
|
+
"@storybook/preview-api": "^7.6.8",
|
|
39
|
+
"@storybook/react": "^7.6.8",
|
|
40
|
+
"@storybook/react-vite": "^7.6.8",
|
|
41
|
+
"@storybook/test": "^7.6.8",
|
|
42
|
+
"@storybook/types": "^7.6.8",
|
|
43
|
+
"@types/node": "^20.11.4",
|
|
44
|
+
"@types/react": "^18.2.43",
|
|
45
|
+
"@types/react-dom": "^18.2.17",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
47
|
+
"@typescript-eslint/parser": "^6.14.0",
|
|
48
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
49
|
+
"ag-grid-community": "^31.0.2",
|
|
50
|
+
"ag-grid-react": "^31.0.2",
|
|
51
|
+
"antd": "^5.13.1",
|
|
52
|
+
"autoprefixer": "^10.4.16",
|
|
53
|
+
"classnames": "^2.5.1",
|
|
54
|
+
"eslint": "^8.55.0",
|
|
55
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
56
|
+
"eslint-plugin-react-refresh": "^0.4.5",
|
|
57
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
58
|
+
"glob": "^10.3.10",
|
|
59
|
+
"postcss": "^8.4.33",
|
|
60
|
+
"react": "^18.2.0",
|
|
61
|
+
"react-dom": "^18.2.0",
|
|
62
|
+
"react-intl": "^6.6.1",
|
|
63
|
+
"sass": "^1.69.7",
|
|
64
|
+
"storybook": "^7.6.8",
|
|
65
|
+
"tailwindcss": "^3.4.1",
|
|
66
|
+
"typescript": "^5.2.2",
|
|
67
|
+
"vite": "^5.0.8",
|
|
68
|
+
"vite-plugin-dts": "^3.7.1",
|
|
69
|
+
"vite-plugin-lib-inject-css": "^1.3.0",
|
|
70
|
+
"tailwind-scrollbar-hide": "^1.1.7"
|
|
71
|
+
},
|
|
72
|
+
"main": "dist/main.js",
|
|
73
|
+
"types": "dist/main.d.ts",
|
|
74
|
+
"files": [
|
|
75
|
+
"dist"
|
|
76
|
+
],
|
|
77
|
+
"sideEffects": [
|
|
78
|
+
"**/*.css"
|
|
79
|
+
]
|
|
80
|
+
}
|