pv-design 1.0.8 → 1.0.10

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,13 +1,14 @@
1
1
  import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
2
  import { ConfigProvider as i, Table as s } from "antd";
3
- const u = ({ theme: a, customRowClass: t, ...r }) => {
3
+ const w = ({ theme: a, customRowClass: e, ...r }) => {
4
4
  var o;
5
5
  const p = (d, l) => {
6
6
  const b = l % 2 === 0 ? "pv-table-even-row" : "pv-table-odd-row";
7
- return t ? t(b, d, l) : b;
8
- }, e = {
7
+ return e ? e(b, d, l) : b;
8
+ }, t = {
9
9
  colorBgContainer: "#18191a",
10
10
  headerBg: "#18191a",
11
+ cellFontSizeSM: 12,
11
12
  ...((o = a == null ? void 0 : a.components) == null ? void 0 : o.Table) || {}
12
13
  };
13
14
  return /* @__PURE__ */ c(
@@ -17,7 +18,7 @@ const u = ({ theme: a, customRowClass: t, ...r }) => {
17
18
  theme: {
18
19
  ...a || {},
19
20
  components: {
20
- Table: e
21
+ Table: t
21
22
  }
22
23
  },
23
24
  children: [
@@ -39,7 +40,7 @@ const u = ({ 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 ${e.colorBgContainer};
43
+ border: 6px solid ${t.colorBgContainer};
43
44
  }
44
45
  .pv-table-body::-webkit-scrollbar-track {
45
46
  background: transparent;
@@ -68,9 +69,6 @@ const u = ({ 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
  }
@@ -87,5 +85,5 @@ const u = ({ theme: a, customRowClass: t, ...r }) => {
87
85
  );
88
86
  };
89
87
  export {
90
- u as default
88
+ w as default
91
89
  };
@@ -0,0 +1,62 @@
1
+ import { jsxs as n, jsx as p } from "react/jsx-runtime";
2
+ import { ConfigProvider as d, Modal as i } from "antd";
3
+ const x = ({ theme: o, ...a }) => {
4
+ var t;
5
+ const r = {
6
+ titleColor: "rgba(204,204,204,0.85)",
7
+ ...((t = o == null ? void 0 : o.components) == null ? void 0 : t.Modal) || {}
8
+ };
9
+ return /* @__PURE__ */ n(
10
+ d,
11
+ {
12
+ prefixCls: "pv-modal",
13
+ theme: {
14
+ ...o || {},
15
+ components: {
16
+ Modal: r
17
+ }
18
+ },
19
+ children: [
20
+ /* @__PURE__ */ p("style", { children: `
21
+ .pv-modal-modal-content {
22
+ padding: 24px 28px 20px 28px !important;
23
+ border-radius: 12px !important;
24
+ box-shadow: 0px 8px 48px 1px rgba(0,0,0,0.4) !important;
25
+ }
26
+ .pv-modal-modal-title {
27
+ text-align: center;
28
+ height: 16px;
29
+ line-height: 16px !important;
30
+ }
31
+ .pv-modal-modal-close {
32
+ top: 16px !important;
33
+ right: 18px !important;
34
+ }
35
+ .pv-modal-modal-header {
36
+ margin-bottom: 32px !important;
37
+ }
38
+ .pv-modal-modal-footer {
39
+ margin-top: 20px !important;
40
+ }
41
+ .pv-modal-modal-footer{
42
+ button:nth-of-type(1) {
43
+ background: transparent;
44
+ }
45
+ button {
46
+ font-size: 13px;
47
+ }
48
+ }
49
+ ` }),
50
+ /* @__PURE__ */ p(
51
+ i,
52
+ {
53
+ ...a
54
+ }
55
+ )
56
+ ]
57
+ }
58
+ );
59
+ };
60
+ export {
61
+ x as default
62
+ };
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-DP5KCu51.js"));
2
+ const r = o(() => import("./index-C5hvxSxS.js")), m = o(() => import("./index-BqnyaJFp.js")), p = o(() => import("./index-Cqo4qO7u.js"));
3
3
  export {
4
+ p as PvModal,
4
5
  m as PvTable,
5
6
  r as PvTabs
6
7
  };
@@ -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
- export { PvTabs, PvTable };
3
+ declare const PvModal: import("react").LazyExoticComponent<import("react").FC<import("./pvModal").ExtendedModalProps>>;
4
+ export { PvTabs, PvTable, PvModal };
@@ -0,0 +1,6 @@
1
+ import type { ModalProps, ThemeConfig } from 'antd';
2
+ export interface ExtendedModalProps extends ModalProps {
3
+ theme?: ThemeConfig;
4
+ }
5
+ declare const PvModal: React.FC<ExtendedModalProps>;
6
+ export default PvModal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pv-design",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "pvmed ui design",
5
5
  "type": "module",
6
6
  "main": "./dist/pv-design.js",