gasp-components 1.0.29 → 1.0.31
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/assets/main.css +1 -1
- package/dist/components/ag-grid-table/index.js +35548 -19
- package/dist/components/date-picker/index.js +11 -7
- package/dist/components/input/index.js +7 -7
- package/dist/components/password-input/index.js +7 -7
- package/dist/components/select/index.js +5 -5
- package/dist/components/time-picker/index.d.ts +3 -0
- package/dist/components/time-picker/index.js +27 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +56 -54
- package/package.json +80 -79
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { DatePicker as a } from "antd";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import i from "classnames";
|
|
4
|
+
const n = (o) => /* @__PURE__ */ e("div", { className: "border-[1px] border-gainsboro border-solid rounded-xl py-[10px] px-[5px]", children: /* @__PURE__ */ e(
|
|
5
5
|
a,
|
|
6
6
|
{
|
|
7
|
-
...
|
|
7
|
+
...o,
|
|
8
8
|
variant: "borderless",
|
|
9
9
|
className: "w-full",
|
|
10
10
|
rootClassName: "font-bold",
|
|
11
|
-
|
|
11
|
+
panelRender: (r) => /* @__PURE__ */ e("div", { className: "bg-white", children: r }),
|
|
12
|
+
inputRender: ({ className: r, ...s }) => /* @__PURE__ */ e(
|
|
12
13
|
"input",
|
|
13
14
|
{
|
|
14
15
|
...s,
|
|
15
|
-
className:
|
|
16
|
+
className: i(
|
|
17
|
+
r,
|
|
18
|
+
"font-semibold !text-midnightBlue"
|
|
19
|
+
)
|
|
16
20
|
}
|
|
17
21
|
)
|
|
18
22
|
}
|
|
19
23
|
) });
|
|
20
24
|
export {
|
|
21
|
-
|
|
25
|
+
n as DatePicker
|
|
22
26
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { Input as
|
|
2
|
+
import { Input as t } from "antd";
|
|
3
3
|
import r from "classnames";
|
|
4
|
-
const
|
|
5
|
-
className:
|
|
4
|
+
const I = ({
|
|
5
|
+
className: o,
|
|
6
6
|
classNames: p,
|
|
7
|
-
isPassword:
|
|
7
|
+
isPassword: n = !1,
|
|
8
8
|
...f
|
|
9
9
|
}) => {
|
|
10
|
-
const i = "rounded-xl px-4 leading-none font-semibold !bg-transparent h-[56px]", x =
|
|
10
|
+
const i = "rounded-xl px-4 leading-none font-semibold !bg-transparent h-[56px] text-midnightBlue", x = n ? t.Password : t;
|
|
11
11
|
return /* @__PURE__ */ u(
|
|
12
12
|
x,
|
|
13
13
|
{
|
|
14
14
|
...f,
|
|
15
|
-
className: r(
|
|
15
|
+
className: r(o, i),
|
|
16
16
|
classNames: {
|
|
17
17
|
...p,
|
|
18
18
|
affixWrapper: r(p == null ? void 0 : p.affixWrapper, "ps-4"),
|
|
@@ -23,5 +23,5 @@ const b = ({
|
|
|
23
23
|
);
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
I as Input
|
|
27
27
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Input as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { Input as i } from "antd";
|
|
3
3
|
import r from "classnames";
|
|
4
4
|
const e = ({
|
|
5
5
|
className: o,
|
|
6
6
|
classNames: p,
|
|
7
|
-
...
|
|
8
|
-
}) => /* @__PURE__ */
|
|
9
|
-
|
|
7
|
+
...t
|
|
8
|
+
}) => /* @__PURE__ */ f(
|
|
9
|
+
i.Password,
|
|
10
10
|
{
|
|
11
|
-
...
|
|
12
|
-
className: r(o, "rounded-xl px-4 leading-none font-semibold !bg-transparent h-[56px]"),
|
|
11
|
+
...t,
|
|
12
|
+
className: r(o, "rounded-xl px-4 leading-none font-semibold !bg-transparent h-[56px] text-midnightBlue"),
|
|
13
13
|
classNames: {
|
|
14
14
|
...p,
|
|
15
15
|
affixWrapper: r(p == null ? void 0 : p.affixWrapper, "ps-4"),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { Select as
|
|
3
|
-
const
|
|
2
|
+
import { Select as t } from "antd";
|
|
3
|
+
const b = ({ options: r, ...s }) => {
|
|
4
4
|
const a = r == null ? void 0 : r.map((e) => typeof e.label == "string" ? {
|
|
5
5
|
...e,
|
|
6
|
-
label: /* @__PURE__ */ l("span", { className: "font-semibold", children: e.label })
|
|
6
|
+
label: /* @__PURE__ */ l("span", { className: "font-semibold text-midnightBlue", children: e.label })
|
|
7
7
|
} : e);
|
|
8
8
|
return /* @__PURE__ */ l("div", { className: "border-[1px] border-gainsboro border-solid font-semibold rounded-xl py-[10px] px-[5px]", children: /* @__PURE__ */ l(
|
|
9
|
-
|
|
9
|
+
t,
|
|
10
10
|
{
|
|
11
11
|
...s,
|
|
12
12
|
options: a,
|
|
@@ -17,5 +17,5 @@ const m = ({ options: r, ...s }) => {
|
|
|
17
17
|
) });
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
b as Select
|
|
21
21
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as e, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { TimePicker as a } from "antd";
|
|
3
|
+
import t from "classnames";
|
|
4
|
+
const n = (o) => /* @__PURE__ */ e("div", { className: "border-[1px] border-gainsboro border-solid rounded-xl py-[10px] px-[5px]", children: /* @__PURE__ */ e(
|
|
5
|
+
a,
|
|
6
|
+
{
|
|
7
|
+
...o,
|
|
8
|
+
variant: "borderless",
|
|
9
|
+
className: "w-full",
|
|
10
|
+
rootClassName: "font-bold",
|
|
11
|
+
panelRender: (r) => /* @__PURE__ */ e("div", { className: "bg-white", children: r }),
|
|
12
|
+
renderExtraFooter: () => /* @__PURE__ */ e(s, {}),
|
|
13
|
+
inputRender: ({ className: r, ...i }) => /* @__PURE__ */ e(
|
|
14
|
+
"input",
|
|
15
|
+
{
|
|
16
|
+
...i,
|
|
17
|
+
className: t(
|
|
18
|
+
r,
|
|
19
|
+
"font-semibold !text-midnightBlue"
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
) });
|
|
25
|
+
export {
|
|
26
|
+
n as TimePicker
|
|
27
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { AgGridTable } from "./components/ag-grid-table";
|
|
|
4
4
|
export { Button } from "./components/button";
|
|
5
5
|
export { CheckList } from "./components/checklist";
|
|
6
6
|
export { DatePicker } from "./components/date-picker";
|
|
7
|
+
export { TimePicker } from "./components/time-picker";
|
|
7
8
|
export { Dragger } from "./components/dragger";
|
|
8
9
|
export { Dropdown } from "./components/dropdown";
|
|
9
10
|
export { Form } from "./components/form";
|
package/dist/main.js
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import "./assets/main.css";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { IntlProvider as
|
|
4
|
-
import { ConfigProvider as
|
|
5
|
-
import { AgGridTable as
|
|
3
|
+
import { IntlProvider as e } from "react-intl";
|
|
4
|
+
import { ConfigProvider as l } from "antd";
|
|
5
|
+
import { AgGridTable as u } from "./components/ag-grid-table/index.js";
|
|
6
6
|
import { Button as C } from "./components/button/index.js";
|
|
7
|
-
import { CheckList as
|
|
8
|
-
import { DatePicker as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
7
|
+
import { CheckList as T } from "./components/checklist/index.js";
|
|
8
|
+
import { DatePicker as E } from "./components/date-picker/index.js";
|
|
9
|
+
import { TimePicker as I } from "./components/time-picker/index.js";
|
|
10
|
+
import { Dragger as b } from "./components/dragger/index.js";
|
|
11
|
+
import { Dropdown as M } from "./components/dropdown/index.js";
|
|
12
|
+
import { Form as v } from "./components/form/index.js";
|
|
13
|
+
import { FormItem as L } from "./components/form-item/index.js";
|
|
14
|
+
import { Input as y } from "./components/input/index.js";
|
|
15
|
+
import { Modal as j } from "./components/modal/index.js";
|
|
16
|
+
import { PasswordInput as N } from "./components/password-input/index.js";
|
|
17
|
+
import { Progress as X } from "./components/progress/index.js";
|
|
18
|
+
import { ProgressCircle as q } from "./components/progress-circle/index.js";
|
|
19
|
+
import { ProgressCircleFloat as K } from "./components/progress-circle-float/index.js";
|
|
20
|
+
import { RadioButton as Q } from "./components/radio-button/index.js";
|
|
21
|
+
import { RadioButtonGroup as Y } from "./components/radio-button-group/index.js";
|
|
22
|
+
import { ResultPopup as _ } from "./components/result-popup/index.js";
|
|
23
|
+
import { Select as oo } from "./components/select/index.js";
|
|
24
|
+
import { SideMenu as no } from "./components/side-menu/index.js";
|
|
25
|
+
import { Steps as to } from "./components/steps/index.js";
|
|
26
|
+
import { Table as io } from "./components/table/index.js";
|
|
27
|
+
import { Tabs as co } from "./components/tabs/index.js";
|
|
28
|
+
import { Tag as lo } from "./components/tag/index.js";
|
|
29
|
+
import { TimelineHorizontal as ao } from "./components/timeline-horizontal/index.js";
|
|
30
|
+
import { Upload as go } from "./components/upload/index.js";
|
|
31
|
+
import { libTheme as mo } from "./theme.js";
|
|
31
32
|
const g = ({
|
|
32
33
|
locale: r,
|
|
33
34
|
theme: o,
|
|
34
35
|
...c
|
|
35
36
|
}) => {
|
|
36
37
|
var n, p, t, f, i;
|
|
37
|
-
return /* @__PURE__ */ s(
|
|
38
|
-
|
|
38
|
+
return /* @__PURE__ */ s(e, { locale: (r == null ? void 0 : r.locale) || "en", children: /* @__PURE__ */ s(
|
|
39
|
+
l,
|
|
39
40
|
{
|
|
40
41
|
...c,
|
|
41
42
|
theme: {
|
|
@@ -93,31 +94,32 @@ const g = ({
|
|
|
93
94
|
) });
|
|
94
95
|
};
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
u as AgGridTable,
|
|
97
98
|
C as Button,
|
|
98
|
-
|
|
99
|
+
T as CheckList,
|
|
99
100
|
g as ConfigProvider,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
go as
|
|
101
|
+
E as DatePicker,
|
|
102
|
+
b as Dragger,
|
|
103
|
+
M as Dropdown,
|
|
104
|
+
v as Form,
|
|
105
|
+
L as FormItem,
|
|
106
|
+
y as Input,
|
|
107
|
+
j as Modal,
|
|
108
|
+
N as PasswordInput,
|
|
109
|
+
X as Progress,
|
|
110
|
+
q as ProgressCircle,
|
|
111
|
+
K as ProgressCircleFloat,
|
|
112
|
+
Q as RadioButton,
|
|
113
|
+
Y as RadioButtonGroup,
|
|
114
|
+
_ as ResultPopup,
|
|
115
|
+
oo as Select,
|
|
116
|
+
no as SideMenu,
|
|
117
|
+
to as Steps,
|
|
118
|
+
io as Table,
|
|
119
|
+
co as Tabs,
|
|
120
|
+
lo as Tag,
|
|
121
|
+
I as TimePicker,
|
|
122
|
+
ao as TimelineHorizontal,
|
|
123
|
+
go as Upload,
|
|
124
|
+
mo as theme
|
|
123
125
|
};
|
package/package.json
CHANGED
|
@@ -1,79 +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/
|
|
16
|
-
"@ag-grid-enterprise/
|
|
17
|
-
"ag-grid-
|
|
18
|
-
"ag-grid-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"react
|
|
23
|
-
"react-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@storybook/addon-
|
|
33
|
-
"@storybook/
|
|
34
|
-
"@storybook/
|
|
35
|
-
"@storybook/
|
|
36
|
-
"@storybook/
|
|
37
|
-
"@storybook/
|
|
38
|
-
"@storybook/
|
|
39
|
-
"@storybook/
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@types
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"eslint
|
|
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
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "gasp-components",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.31",
|
|
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
|
+
}
|