pv-design 1.0.7 → 1.0.9
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.
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
return
|
|
1
|
+
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { ConfigProvider as i, Table as s } from "antd";
|
|
3
|
+
const w = ({ theme: a, customRowClass: e, ...r }) => {
|
|
4
|
+
var o;
|
|
5
|
+
const p = (d, l) => {
|
|
6
|
+
const b = l % 2 === 0 ? "pv-table-even-row" : "pv-table-odd-row";
|
|
7
|
+
return e ? e(b, d, l) : b;
|
|
8
|
+
}, t = {
|
|
9
|
+
colorBgContainer: "#18191a",
|
|
10
|
+
headerBg: "#18191a",
|
|
11
|
+
cellFontSizeSM: 12,
|
|
12
|
+
...((o = a == null ? void 0 : a.components) == null ? void 0 : o.Table) || {}
|
|
8
13
|
};
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
14
|
+
return /* @__PURE__ */ c(
|
|
15
|
+
i,
|
|
11
16
|
{
|
|
12
17
|
prefixCls: "pv-table",
|
|
13
18
|
theme: {
|
|
14
19
|
...a || {},
|
|
15
20
|
components: {
|
|
16
|
-
Table:
|
|
17
|
-
colorBgContainer: "#18191a",
|
|
18
|
-
headerBg: "#18191a",
|
|
19
|
-
...((e = a == null ? void 0 : a.components) == null ? void 0 : e.Table) || {}
|
|
20
|
-
}
|
|
21
|
+
Table: t
|
|
21
22
|
}
|
|
22
23
|
},
|
|
23
24
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ n("style", { children: `
|
|
25
26
|
.pv-table-table {
|
|
26
27
|
scrollbar-color: unset !important;
|
|
27
28
|
}
|
|
@@ -39,7 +40,7 @@ const m = ({ theme: a, customRowClass: t, ...r }) => {
|
|
|
39
40
|
.pv-table-table-body::-webkit-scrollbar-thumb {
|
|
40
41
|
background-color: #3D3E40;
|
|
41
42
|
border-radius: 8px;
|
|
42
|
-
border: 6px solid
|
|
43
|
+
border: 6px solid ${t.colorBgContainer};
|
|
43
44
|
}
|
|
44
45
|
.pv-table-body::-webkit-scrollbar-track {
|
|
45
46
|
background: transparent;
|
|
@@ -68,18 +69,15 @@ const m = ({ theme: a, customRowClass: t, ...r }) => {
|
|
|
68
69
|
.pv-table-table-cell::before {
|
|
69
70
|
background: transparent !important;
|
|
70
71
|
}
|
|
71
|
-
.pv-table-table-small {
|
|
72
|
-
font-size: 12px !important;
|
|
73
|
-
}
|
|
74
72
|
.pv-table-table-small .pv-table-even-row>td {
|
|
75
73
|
padding: 5px 8px !important;
|
|
76
74
|
}
|
|
77
75
|
` }),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
76
|
+
/* @__PURE__ */ n(
|
|
77
|
+
s,
|
|
80
78
|
{
|
|
81
79
|
...r,
|
|
82
|
-
rowClassName: r != null && r.rowClassName ? r.rowClassName :
|
|
80
|
+
rowClassName: r != null && r.rowClassName ? r.rowClassName : p
|
|
83
81
|
}
|
|
84
82
|
)
|
|
85
83
|
]
|
|
@@ -87,5 +85,5 @@ const m = ({ theme: a, customRowClass: t, ...r }) => {
|
|
|
87
85
|
);
|
|
88
86
|
};
|
|
89
87
|
export {
|
|
90
|
-
|
|
88
|
+
w as default
|
|
91
89
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { ConfigProvider as i, Modal as n } from "antd";
|
|
3
|
+
const d = ({ theme: o, ...e }) => /* @__PURE__ */ p(
|
|
4
|
+
i,
|
|
5
|
+
{
|
|
6
|
+
theme: {
|
|
7
|
+
...o || {},
|
|
8
|
+
components: {
|
|
9
|
+
Modal: {
|
|
10
|
+
titleColor: "#cccccc"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ t("style", { children: `
|
|
16
|
+
.pvdesign-modal-content {
|
|
17
|
+
padding: 24px 28px 20px 28px !important;
|
|
18
|
+
}
|
|
19
|
+
.pvdesign-modal-title {
|
|
20
|
+
text-align: center;
|
|
21
|
+
height: 16px;
|
|
22
|
+
line-height: 16px !important;
|
|
23
|
+
}
|
|
24
|
+
.pvdesign-modal-close {
|
|
25
|
+
top: 16px !important;
|
|
26
|
+
right: 18px !important;
|
|
27
|
+
}
|
|
28
|
+
.pvdesign-modal-header {
|
|
29
|
+
margin-bottom: 32px !important;
|
|
30
|
+
}
|
|
31
|
+
.pvdesign-modal-footer {
|
|
32
|
+
margin-top: 20px !important;
|
|
33
|
+
}
|
|
34
|
+
` }),
|
|
35
|
+
/* @__PURE__ */ t(
|
|
36
|
+
n,
|
|
37
|
+
{
|
|
38
|
+
...e
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
export {
|
|
45
|
+
d as default
|
|
46
|
+
};
|
package/dist/pv-design.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { lazy as o } from "react";
|
|
2
|
-
const r = o(() => import("./index-C5hvxSxS.js")), m = o(() => import("./index-
|
|
2
|
+
const r = o(() => import("./index-C5hvxSxS.js")), m = o(() => import("./index-BqnyaJFp.js")), p = o(() => import("./index-BuZO4MfR.js"));
|
|
3
3
|
export {
|
|
4
|
+
p as PvModal,
|
|
4
5
|
m as PvTable,
|
|
5
6
|
r as PvTabs
|
|
6
7
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
declare const PvTabs: import("react").LazyExoticComponent<import("react").FC<import("./pvTabs").ExtendedTabsProps>>;
|
|
2
2
|
declare const PvTable: import("react").LazyExoticComponent<import("react").FC<import("./pvTable").ExtendedTableProps>>;
|
|
3
|
-
|
|
3
|
+
declare const PvModal: import("react").LazyExoticComponent<import("react").FC<import("./pvModal").ExtendedModalProps>>;
|
|
4
|
+
export { PvTabs, PvTable, PvModal };
|