pv-design 1.0.17 → 1.0.19
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 +38 -29
- package/dist/{index-CeU3h31R.js → index-BQp_W-87.js} +24 -20
- package/dist/pv-design.js +209 -6
- package/dist/types/baseModal/default/index.d.ts +7 -0
- package/dist/types/baseModal/index.d.ts +16 -0
- package/dist/types/baseModal/third/index.d.ts +7 -0
- package/dist/types/iconButton/index.d.ts +17 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/pvModal/index.d.ts +1 -0
- package/dist/types/pvTable/index.d.ts +1 -0
- package/dist/types/pvTabs/index.d.ts +1 -0
- package/dist/types/thirdModal/index.d.ts +1 -0
- package/dist/types/vite.config.d.ts +2 -0
- package/package.json +8 -31
package/README.md
CHANGED
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
# pvmed/pv-design
|
|
2
|
-
|
|
3
|
-
柏视组件库
|
|
4
|
-
|
|
5
|
-
## 注意:
|
|
6
|
-
|
|
7
|
-
1. 确保组件的向下兼容性,不要破坏现有功能:不缩减API,不改变旧API的定义,如有必要,请提供迁移方案。
|
|
8
|
-
2. 保证组件增量更新。
|
|
9
|
-
3. 保证组件的类型声明正确性。
|
|
10
|
-
|
|
11
|
-
## 介绍
|
|
12
|
-
### 技术栈说明
|
|
13
|
-
* 框架: React-ts(swc*)
|
|
14
|
-
○ 采用ts的原因是打包版本中可以继承antd-design的type定义,简化组件的类型声明,提高使用时的便利性
|
|
15
|
-
○ eslint
|
|
16
|
-
* 打包工具: Vite(ESBuild)
|
|
17
|
-
○ 快速、简单
|
|
18
|
-
* 样式: 内联or style标签
|
|
19
|
-
* API文档生成: typedoc
|
|
20
|
-
* 组件demo:HTML(需要gitlab pages的支持)或MD
|
|
21
|
-
|
|
22
|
-
### 开发流程(新增组件)
|
|
23
|
-
1. 创建组件:在 /components 目录下创建组件文件夹和文件。
|
|
24
|
-
2. 编写文档:在 /src/template 目录下为每个组件编写使用文档(目录名称与components下的一致)。
|
|
25
|
-
3. 组件命名约束:使用Pv拼接组件名,如:PvTabs
|
|
26
|
-
4. 编译组件:npm run build
|
|
27
|
-
5. 生成API文档:npm run build:doc
|
|
28
|
-
6. 生成组件文档:npm run build:template
|
|
29
|
-
7. 发布组件库:使用 npm publish 发布
|
|
1
|
+
# pvmed/pv-design
|
|
2
|
+
|
|
3
|
+
柏视组件库
|
|
4
|
+
|
|
5
|
+
## 注意:
|
|
6
|
+
|
|
7
|
+
1. 确保组件的向下兼容性,不要破坏现有功能:不缩减API,不改变旧API的定义,如有必要,请提供迁移方案。
|
|
8
|
+
2. 保证组件增量更新。
|
|
9
|
+
3. 保证组件的类型声明正确性。
|
|
10
|
+
|
|
11
|
+
## 介绍
|
|
12
|
+
### 技术栈说明
|
|
13
|
+
* 框架: React-ts(swc*)
|
|
14
|
+
○ 采用ts的原因是打包版本中可以继承antd-design的type定义,简化组件的类型声明,提高使用时的便利性
|
|
15
|
+
○ eslint
|
|
16
|
+
* 打包工具: Vite(ESBuild)
|
|
17
|
+
○ 快速、简单
|
|
18
|
+
* 样式: 内联or style标签
|
|
19
|
+
* API文档生成: typedoc
|
|
20
|
+
* 组件demo:HTML(需要gitlab pages的支持)或MD
|
|
21
|
+
|
|
22
|
+
### 开发流程(新增组件)
|
|
23
|
+
1. 创建组件:在 /components 目录下创建组件文件夹和文件。
|
|
24
|
+
2. 编写文档:在 /src/template 目录下为每个组件编写使用文档(目录名称与components下的一致)。
|
|
25
|
+
3. 组件命名约束:使用Pv拼接组件名,如:PvTabs
|
|
26
|
+
4. 编译组件:npm run build
|
|
27
|
+
5. 生成API文档:npm run build:doc
|
|
28
|
+
6. 生成组件文档:npm run build:template
|
|
29
|
+
7. 发布组件库:使用 npm publish 发布
|
|
30
|
+
|
|
31
|
+
### 本地调试 link
|
|
32
|
+
1. 进入components目录:cd components
|
|
33
|
+
2. 本地打包:npm run build
|
|
34
|
+
3. 链接组件库:npm link
|
|
35
|
+
4. 在其他项目中使用组件库:npm link pv-design
|
|
36
|
+
5. 后续正常的使用组件库和开发即可
|
|
37
|
+
6. 当组件更新时,执行:npm run build
|
|
38
|
+
7. 当需要取消使用组件库时,执行:npm unlink pv-design
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { ConfigProvider as e, Modal as i } from "antd";
|
|
3
|
-
const x = ({ theme: o, LeftContent:
|
|
4
|
-
var
|
|
5
|
-
const
|
|
3
|
+
const x = ({ theme: o, LeftContent: l, RightContent: r, ...a }) => {
|
|
4
|
+
var d;
|
|
5
|
+
const p = {
|
|
6
6
|
titleColor: "rgba(204,204,204,0.85)",
|
|
7
|
-
...((
|
|
7
|
+
...((d = o == null ? void 0 : o.components) == null ? void 0 : d.Modal) || {}
|
|
8
8
|
};
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ n(
|
|
10
10
|
e,
|
|
11
11
|
{
|
|
12
12
|
prefixCls: "pv-modal",
|
|
13
13
|
theme: {
|
|
14
14
|
...o || {},
|
|
15
15
|
components: {
|
|
16
|
-
Modal:
|
|
16
|
+
Modal: p
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
children: [
|
|
20
20
|
/* @__PURE__ */ t("style", { children: `
|
|
21
|
-
.pv-modal-modal-content {
|
|
21
|
+
.pv-modal-body .pv-modal-modal-content {
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
padding: 20px 28px !important;
|
|
@@ -29,23 +29,23 @@ const x = ({ theme: o, LeftContent: r, RightContent: p, ...d }) => {
|
|
|
29
29
|
width: 780px !important;
|
|
30
30
|
background-color: #252526 !important;
|
|
31
31
|
}
|
|
32
|
-
.pv-modal-modal-title {
|
|
32
|
+
.pv-modal-body .pv-modal-modal-title {
|
|
33
33
|
text-align: center;
|
|
34
34
|
height: 24px;
|
|
35
35
|
line-height: 24px !important;
|
|
36
36
|
}
|
|
37
|
-
.pv-modal-modal-close-icon {
|
|
37
|
+
.pv-modal-body .pv-modal-modal-close-icon {
|
|
38
38
|
color: rgba(204, 204, 204, 0.85) !important;
|
|
39
39
|
}
|
|
40
|
-
.pv-modal-modal-close {
|
|
40
|
+
.pv-modal-body .pv-modal-modal-close {
|
|
41
41
|
top: 17px !important;
|
|
42
42
|
right: 20px !important;
|
|
43
43
|
}
|
|
44
|
-
.pv-modal-modal-header {
|
|
44
|
+
.pv-modal-body .pv-modal-modal-header {
|
|
45
45
|
margin-bottom: 20px !important;
|
|
46
46
|
background-color: transparent !important;
|
|
47
47
|
}
|
|
48
|
-
.pv-modal-modal-body {
|
|
48
|
+
.pv-modal-body .pv-modal-modal-body {
|
|
49
49
|
display: flex;
|
|
50
50
|
flex: 1;
|
|
51
51
|
overflow: hidden;
|
|
@@ -56,6 +56,8 @@ const x = ({ theme: o, LeftContent: r, RightContent: p, ...d }) => {
|
|
|
56
56
|
justify-content: space-between;
|
|
57
57
|
align-items: center;
|
|
58
58
|
background-color: #18191A;
|
|
59
|
+
border-radius: 8px;
|
|
60
|
+
width: 100%;
|
|
59
61
|
}
|
|
60
62
|
.pv-modal-content-left {
|
|
61
63
|
border-right: 1px dashed #4F4F4F;
|
|
@@ -68,10 +70,10 @@ const x = ({ theme: o, LeftContent: r, RightContent: p, ...d }) => {
|
|
|
68
70
|
box-sizing: border-box;
|
|
69
71
|
height: 100%;
|
|
70
72
|
}
|
|
71
|
-
.pv-modal-modal-footer {
|
|
73
|
+
.pv-modal-body .pv-modal-modal-footer {
|
|
72
74
|
margin-top: 20px !important;
|
|
73
75
|
}
|
|
74
|
-
.pv-modal-modal-footer{
|
|
76
|
+
.pv-modal-body .pv-modal-modal-footer{
|
|
75
77
|
button:nth-of-type(1) {
|
|
76
78
|
background: transparent;
|
|
77
79
|
}
|
|
@@ -81,17 +83,19 @@ const x = ({ theme: o, LeftContent: r, RightContent: p, ...d }) => {
|
|
|
81
83
|
color: #d9d9d9 !important;
|
|
82
84
|
}
|
|
83
85
|
button {
|
|
84
|
-
font-size:
|
|
86
|
+
font-size: 12px;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
` }),
|
|
88
90
|
/* @__PURE__ */ t(
|
|
89
91
|
i,
|
|
90
92
|
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
width: 780,
|
|
94
|
+
...a,
|
|
95
|
+
className: [a.className, "pv-modal-body"].join(" "),
|
|
96
|
+
children: /* @__PURE__ */ n("div", { className: "pv-modal-content-container", children: [
|
|
97
|
+
/* @__PURE__ */ t("div", { className: "pv-modal-content-left pv-modal-content-box", children: l }),
|
|
98
|
+
/* @__PURE__ */ t("div", { className: "pv-modal-content-right pv-modal-content-box", children: r })
|
|
95
99
|
] })
|
|
96
100
|
}
|
|
97
101
|
)
|
package/dist/pv-design.js
CHANGED
|
@@ -1,8 +1,211 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode("._iconButton_1fiji_1{color:#9d9d9d;cursor:pointer}._iconButton_1fiji_1._iconButton-primary_1fiji_5:hover{color:#2777e5}._iconButton_1fiji_1._iconButton-danger_1fiji_8:hover{color:#dc4446}._iconButton_1fiji_1._iconButton-disable_1fiji_11{color:#4f4f4f!important;cursor:not-allowed}._iconButton_1fiji_1._iconButton-disable_1fiji_11:hover{color:#4f4f4f!important}._iconButton_1fiji_1._iconButton-block_1fiji_18{display:block}")),document.head.appendChild(o)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
+
import { lazy as r } from "react";
|
|
3
|
+
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
4
|
+
import { ConfigProvider as c, Modal as s } from "antd";
|
|
5
|
+
const y = ({ theme: o, ...t }) => {
|
|
6
|
+
var n;
|
|
7
|
+
const d = {
|
|
8
|
+
titleColor: "rgba(204,204,204,0.85)",
|
|
9
|
+
...((n = o == null ? void 0 : o.components) == null ? void 0 : n.Modal) || {}
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ m(
|
|
12
|
+
c,
|
|
13
|
+
{
|
|
14
|
+
prefixCls: "pv-modal",
|
|
15
|
+
theme: {
|
|
16
|
+
...o || {},
|
|
17
|
+
components: {
|
|
18
|
+
Modal: d
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ a("style", { children: `
|
|
23
|
+
.pv-modal-body .pv-modal-modal-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
padding: 20px 28px !important;
|
|
27
|
+
border-radius: 12px !important;
|
|
28
|
+
box-shadow: 0px 8px 48px 0px rgba(0,0,0,0.4) !important;
|
|
29
|
+
min-height: 580px !important;
|
|
30
|
+
max-height: 682px !important;
|
|
31
|
+
width: 780px !important;
|
|
32
|
+
background-color: #000000 !important;
|
|
33
|
+
}
|
|
34
|
+
.pv-modal-body .pv-modal-modal-title {
|
|
35
|
+
text-align: center;
|
|
36
|
+
height: 24px;
|
|
37
|
+
line-height: 24px !important;
|
|
38
|
+
}
|
|
39
|
+
.pv-modal-body .pv-modal-modal-close-icon {
|
|
40
|
+
color: rgba(204, 204, 204, 0.85) !important;
|
|
41
|
+
}
|
|
42
|
+
.pv-modal-body .pv-modal-modal-close {
|
|
43
|
+
top: 17px !important;
|
|
44
|
+
right: 20px !important;
|
|
45
|
+
}
|
|
46
|
+
.pv-modal-body .pv-modal-modal-header {
|
|
47
|
+
margin-bottom: 20px !important;
|
|
48
|
+
background-color: transparent !important;
|
|
49
|
+
}
|
|
50
|
+
.pv-modal-body .pv-modal-modal-body {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex: 1;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
.pv-modal-body .pv-modal-modal-footer {
|
|
56
|
+
margin-top: 20px !important;
|
|
57
|
+
}
|
|
58
|
+
.pv-modal-body .pv-modal-modal-footer{
|
|
59
|
+
button:nth-of-type(1) {
|
|
60
|
+
background: transparent;
|
|
61
|
+
}
|
|
62
|
+
button:nth-of-type(1):hover {
|
|
63
|
+
background-color: transparent !important;
|
|
64
|
+
border: 1px solid #4B4A4A !important;
|
|
65
|
+
color: #d9d9d9 !important;
|
|
66
|
+
}
|
|
67
|
+
button {
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
` }),
|
|
72
|
+
/* @__PURE__ */ a(
|
|
73
|
+
s,
|
|
74
|
+
{
|
|
75
|
+
width: 780,
|
|
76
|
+
...t,
|
|
77
|
+
className: [t.className, "pv-modal-body"].join(" ")
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}, e = ({ theme: o, ...t }) => {
|
|
84
|
+
var n;
|
|
85
|
+
const d = {
|
|
86
|
+
titleColor: "rgba(204,204,204,0.85)",
|
|
87
|
+
...((n = o == null ? void 0 : o.components) == null ? void 0 : n.Modal) || {}
|
|
88
|
+
};
|
|
89
|
+
return /* @__PURE__ */ m(
|
|
90
|
+
c,
|
|
91
|
+
{
|
|
92
|
+
prefixCls: "pv-modal",
|
|
93
|
+
theme: {
|
|
94
|
+
...o || {},
|
|
95
|
+
components: {
|
|
96
|
+
Modal: d
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ a("style", { children: `
|
|
101
|
+
.pv-modal-body .pv-modal-modal-content {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
padding: 20px 28px !important;
|
|
105
|
+
border-radius: 12px !important;
|
|
106
|
+
box-shadow: 0px 8px 48px 0px rgba(0,0,0,0.4) !important;
|
|
107
|
+
background-color: #252526 !important;
|
|
108
|
+
}
|
|
109
|
+
.pv-modal-body .pv-modal-modal-title {
|
|
110
|
+
text-align: center;
|
|
111
|
+
height: 24px;
|
|
112
|
+
line-height: 24px !important;
|
|
113
|
+
}
|
|
114
|
+
.pv-modal-body .pv-modal-modal-close-icon {
|
|
115
|
+
color: rgba(204, 204, 204, 0.85) !important;
|
|
116
|
+
}
|
|
117
|
+
.pv-modal-body .pv-modal-modal-close {
|
|
118
|
+
top: 17px !important;
|
|
119
|
+
right: 20px !important;
|
|
120
|
+
}
|
|
121
|
+
.pv-modal-body .pv-modal-modal-header {
|
|
122
|
+
margin-bottom: 20px !important;
|
|
123
|
+
background-color: transparent !important;
|
|
124
|
+
}
|
|
125
|
+
.pv-modal-body .pv-modal-modal-body {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex: 1;
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
}
|
|
130
|
+
.pv-modal-body .pv-modal-modal-footer {
|
|
131
|
+
margin-top: 20px !important;
|
|
132
|
+
}
|
|
133
|
+
.pv-modal-body .pv-modal-modal-footer{
|
|
134
|
+
button:nth-of-type(1) {
|
|
135
|
+
background: transparent;
|
|
136
|
+
}
|
|
137
|
+
button:nth-of-type(1):hover {
|
|
138
|
+
background-color: transparent !important;
|
|
139
|
+
border: 1px solid #4B4A4A !important;
|
|
140
|
+
color: #d9d9d9 !important;
|
|
141
|
+
}
|
|
142
|
+
button {
|
|
143
|
+
font-size: 12px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
` }),
|
|
147
|
+
/* @__PURE__ */ a(
|
|
148
|
+
s,
|
|
149
|
+
{
|
|
150
|
+
...t,
|
|
151
|
+
className: [t.className, "pv-modal-body"].join(" ")
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
var b = /* @__PURE__ */ ((o) => (o[o.default = 0] = "default", o[o.third = 3] = "third", o))(b || {});
|
|
159
|
+
const g = {
|
|
160
|
+
default: 0,
|
|
161
|
+
third: 3
|
|
162
|
+
}, h = ({ modalType: o, ...t }) => {
|
|
163
|
+
switch (o) {
|
|
164
|
+
case 0:
|
|
165
|
+
return /* @__PURE__ */ a(e, { ...t });
|
|
166
|
+
case 3:
|
|
167
|
+
return /* @__PURE__ */ a(y, { ...t });
|
|
168
|
+
default:
|
|
169
|
+
return /* @__PURE__ */ a(e, { ...t });
|
|
170
|
+
}
|
|
171
|
+
}, B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
172
|
+
__proto__: null,
|
|
173
|
+
ModalType: b,
|
|
174
|
+
ModalTypeMap: g,
|
|
175
|
+
default: h
|
|
176
|
+
}, Symbol.toStringTag, { value: "Module" })), _ = "_iconButton_1fiji_1", l = {
|
|
177
|
+
iconButton: _,
|
|
178
|
+
"iconButton-primary": "_iconButton-primary_1fiji_5",
|
|
179
|
+
"iconButton-danger": "_iconButton-danger_1fiji_8",
|
|
180
|
+
"iconButton-disable": "_iconButton-disable_1fiji_11",
|
|
181
|
+
"iconButton-block": "_iconButton-block_1fiji_18"
|
|
182
|
+
}, i = {
|
|
183
|
+
primary: "primary",
|
|
184
|
+
danger: "danger"
|
|
185
|
+
}, j = ({ children: o, onClick: t, className: d, size: n = 12, disable: p = !1, type: u = i.primary, block: x = !1 }) => {
|
|
186
|
+
const v = () => {
|
|
187
|
+
switch (u) {
|
|
188
|
+
case i.primary:
|
|
189
|
+
return l["iconButton-primary"];
|
|
190
|
+
case i.danger:
|
|
191
|
+
return l["iconButton-danger"];
|
|
192
|
+
}
|
|
193
|
+
}, f = () => {
|
|
194
|
+
p || t == null || t();
|
|
195
|
+
};
|
|
196
|
+
return /* @__PURE__ */ a("span", { className: [l.iconButton, d, p && l["iconButton-disable"], v(), x && l["iconButton-block"]].join(" "), onClick: f, style: { fontSize: `${n}px` }, children: o });
|
|
197
|
+
}, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
198
|
+
__proto__: null,
|
|
199
|
+
IconButtonType: i,
|
|
200
|
+
default: j
|
|
201
|
+
}, Symbol.toStringTag, { value: "Module" })), z = r(() => import("./index-C5hvxSxS.js")), N = r(() => import("./index-Dyq3zBZo.js")), S = r(() => import("./index-FYoViA-E.js")), T = r(() => import("./index-BQp_W-87.js")), A = r(() => Promise.resolve().then(() => B)), C = r(() => Promise.resolve().then(() => M));
|
|
3
202
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
203
|
+
A as BaseModal,
|
|
204
|
+
C as IconButton,
|
|
205
|
+
i as IconButtonType,
|
|
206
|
+
g as ModalTypeMap,
|
|
207
|
+
S as PvModal,
|
|
208
|
+
N as PvTable,
|
|
209
|
+
z as PvTabs,
|
|
210
|
+
T as ThirdModal
|
|
8
211
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ModalProps, ThemeConfig } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare enum ModalType {
|
|
4
|
+
'default' = 0,
|
|
5
|
+
'third' = 3
|
|
6
|
+
}
|
|
7
|
+
export declare const ModalTypeMap: {
|
|
8
|
+
default: number;
|
|
9
|
+
third: number;
|
|
10
|
+
};
|
|
11
|
+
export interface ExtendedModalProps extends ModalProps {
|
|
12
|
+
theme?: ThemeConfig;
|
|
13
|
+
modalType: ModalType;
|
|
14
|
+
}
|
|
15
|
+
declare const BaseModal: React.FC<ExtendedModalProps>;
|
|
16
|
+
export default BaseModal;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const IconButtonType: {
|
|
3
|
+
primary: string;
|
|
4
|
+
danger: string;
|
|
5
|
+
};
|
|
6
|
+
export type IconButtonTypes = typeof IconButtonType[keyof typeof IconButtonType];
|
|
7
|
+
export interface IconButtonProps {
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
size?: number;
|
|
11
|
+
disable?: boolean;
|
|
12
|
+
type: IconButtonTypes;
|
|
13
|
+
block?: boolean;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare const IconButton: ({ children, onClick, className, size, disable, type, block }: IconButtonProps) => React.JSX.Element;
|
|
17
|
+
export default IconButton;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { ModalTypeMap } from "./baseModal";
|
|
2
|
+
import { IconButtonType } from "./iconButton";
|
|
1
3
|
declare const PvTabs: import("react").LazyExoticComponent<import("react").FC<import("./pvTabs").ExtendedTabsProps>>;
|
|
2
4
|
declare const PvTable: import("react").LazyExoticComponent<import("react").FC<import("./pvTable").ExtendedTableProps>>;
|
|
3
5
|
declare const PvModal: import("react").LazyExoticComponent<import("react").FC<import("./pvModal").ExtendedModalProps>>;
|
|
4
6
|
declare const ThirdModal: import("react").LazyExoticComponent<import("react").FC<import("./thirdModal").ExtendedModalProps>>;
|
|
5
|
-
|
|
7
|
+
declare const BaseModal: import("react").LazyExoticComponent<import("react").FC<import("./baseModal").ExtendedModalProps>>;
|
|
8
|
+
declare const IconButton: import("react").LazyExoticComponent<({ children, onClick, className, size, disable, type, block }: import("./iconButton").IconButtonProps) => import("react").JSX.Element>;
|
|
9
|
+
export { PvTabs, PvTable, PvModal, ThirdModal, BaseModal, ModalTypeMap, IconButton, IconButtonType, };
|
package/package.json
CHANGED
|
@@ -1,47 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pv-design",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "pvmed ui design",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/pv-design.js",
|
|
7
7
|
"types": "./dist/types/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"
|
|
10
|
-
"build": "vite build --config vite.config.ts && tsc --jsx react --project tsconfig.types.json",
|
|
11
|
-
"build:template": "storybook build -o home",
|
|
9
|
+
"build": "npm run clean && vite build --config vite.config.ts && tsc --jsx react --project tsconfig.types.json",
|
|
12
10
|
"build:doc": "typedoc",
|
|
13
11
|
"doc:view": "http-serve docs -p 80",
|
|
14
12
|
"lint": "eslint .",
|
|
15
|
-
"
|
|
13
|
+
"clean": "if exist dist rd /s /q dist"
|
|
16
14
|
},
|
|
17
15
|
"repository": {
|
|
18
16
|
"type": "git",
|
|
19
17
|
"url": "ssh://git@192.168.18.221:12225/pvmed-prd/icp/pv-design.git"
|
|
20
18
|
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@eslint/js": "^9.9.0",
|
|
23
|
-
"@storybook/addon-docs": "^9.0.11",
|
|
24
|
-
"@storybook/addon-onboarding": "^9.0.11",
|
|
25
|
-
"@storybook/react-vite": "^9.0.11",
|
|
26
|
-
"@types/node": "^22.7.4",
|
|
27
|
-
"@types/react": "^18.3.3",
|
|
28
|
-
"@types/react-dom": "^18.3.0",
|
|
29
|
-
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
30
|
-
"antd": "^5.21.1",
|
|
31
|
-
"eslint": "^9.9.0",
|
|
32
|
-
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
33
|
-
"eslint-plugin-react-refresh": "^0.4.9",
|
|
34
|
-
"eslint-plugin-storybook": "^9.0.11",
|
|
35
|
-
"globals": "^15.9.0",
|
|
36
|
-
"path": "^0.12.7",
|
|
37
|
-
"react": "^18.3.1",
|
|
38
|
-
"react-dom": "^18.3.1",
|
|
39
|
-
"storybook": "^9.0.11",
|
|
40
|
-
"typedoc": "^0.26.7",
|
|
41
|
-
"typescript": "^5.5.3",
|
|
42
|
-
"typescript-eslint": "^8.0.1",
|
|
43
|
-
"vite": "^5.4.1"
|
|
44
|
-
},
|
|
45
19
|
"peerDependencies": {
|
|
46
20
|
"antd": "^5.0.0",
|
|
47
21
|
"react": ">16.8.0"
|
|
@@ -57,5 +31,8 @@
|
|
|
57
31
|
"files": [
|
|
58
32
|
"dist",
|
|
59
33
|
"README.md"
|
|
60
|
-
]
|
|
61
|
-
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"vite-plugin-css-injected-by-js": "^3.5.2"
|
|
37
|
+
}
|
|
38
|
+
}
|