pv-design 1.0.15 → 1.0.17

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.
@@ -0,0 +1,104 @@
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
+ import { ConfigProvider as e, Modal as i } from "antd";
3
+ const x = ({ theme: o, LeftContent: r, RightContent: p, ...d }) => {
4
+ var n;
5
+ const l = {
6
+ titleColor: "rgba(204,204,204,0.85)",
7
+ ...((n = o == null ? void 0 : o.components) == null ? void 0 : n.Modal) || {}
8
+ };
9
+ return /* @__PURE__ */ a(
10
+ e,
11
+ {
12
+ prefixCls: "pv-modal",
13
+ theme: {
14
+ ...o || {},
15
+ components: {
16
+ Modal: l
17
+ }
18
+ },
19
+ children: [
20
+ /* @__PURE__ */ t("style", { children: `
21
+ .pv-modal-modal-content {
22
+ display: flex;
23
+ flex-direction: column;
24
+ padding: 20px 28px !important;
25
+ border-radius: 12px !important;
26
+ box-shadow: 0px 8px 48px 0px rgba(0,0,0,0.4) !important;
27
+ min-height: 580px !important;
28
+ max-height: 682px !important;
29
+ width: 780px !important;
30
+ background-color: #252526 !important;
31
+ }
32
+ .pv-modal-modal-title {
33
+ text-align: center;
34
+ height: 24px;
35
+ line-height: 24px !important;
36
+ }
37
+ .pv-modal-modal-close-icon {
38
+ color: rgba(204, 204, 204, 0.85) !important;
39
+ }
40
+ .pv-modal-modal-close {
41
+ top: 17px !important;
42
+ right: 20px !important;
43
+ }
44
+ .pv-modal-modal-header {
45
+ margin-bottom: 20px !important;
46
+ background-color: transparent !important;
47
+ }
48
+ .pv-modal-modal-body {
49
+ display: flex;
50
+ flex: 1;
51
+ overflow: hidden;
52
+ }
53
+ .pv-modal-content-container {
54
+ display: flex;
55
+ flex: 1;
56
+ justify-content: space-between;
57
+ align-items: center;
58
+ background-color: #18191A;
59
+ }
60
+ .pv-modal-content-left {
61
+ border-right: 1px dashed #4F4F4F;
62
+ }
63
+ .pv-modal-content-right {
64
+ }
65
+ .pv-modal-content-box {
66
+ width: 50% ;
67
+ flex: 1;
68
+ box-sizing: border-box;
69
+ height: 100%;
70
+ }
71
+ .pv-modal-modal-footer {
72
+ margin-top: 20px !important;
73
+ }
74
+ .pv-modal-modal-footer{
75
+ button:nth-of-type(1) {
76
+ background: transparent;
77
+ }
78
+ button:nth-of-type(1):hover {
79
+ background-color: transparent !important;
80
+ border: 1px solid #4B4A4A !important;
81
+ color: #d9d9d9 !important;
82
+ }
83
+ button {
84
+ font-size: 13px;
85
+ }
86
+ }
87
+ ` }),
88
+ /* @__PURE__ */ t(
89
+ i,
90
+ {
91
+ ...d,
92
+ children: /* @__PURE__ */ a("div", { className: "pv-modal-content-container", children: [
93
+ /* @__PURE__ */ t("div", { className: "pv-modal-content-left pv-modal-content-box", children: r }),
94
+ /* @__PURE__ */ t("div", { className: "pv-modal-content-right pv-modal-content-box", children: p })
95
+ ] })
96
+ }
97
+ )
98
+ ]
99
+ }
100
+ );
101
+ };
102
+ export {
103
+ x as default
104
+ };
package/dist/pv-design.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { lazy as o } from "react";
2
- const r = o(() => import("./index-C5hvxSxS.js")), m = o(() => import("./index-Dyq3zBZo.js")), p = o(() => import("./index-FYoViA-E.js"));
2
+ const r = o(() => import("./index-C5hvxSxS.js")), i = o(() => import("./index-Dyq3zBZo.js")), m = o(() => import("./index-FYoViA-E.js")), p = o(() => import("./index-CeU3h31R.js"));
3
3
  export {
4
- p as PvModal,
5
- m as PvTable,
6
- r as PvTabs
4
+ m as PvModal,
5
+ i as PvTable,
6
+ r as PvTabs,
7
+ p as ThirdModal
7
8
  };
@@ -1,4 +1,5 @@
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 };
4
+ declare const ThirdModal: import("react").LazyExoticComponent<import("react").FC<import("./thirdModal").ExtendedModalProps>>;
5
+ export { PvTabs, PvTable, PvModal, ThirdModal };
@@ -0,0 +1,8 @@
1
+ import type { ModalProps, ThemeConfig } from 'antd';
2
+ export interface ExtendedModalProps extends ModalProps {
3
+ theme?: ThemeConfig;
4
+ LeftContent: React.ReactNode;
5
+ RightContent: React.ReactNode;
6
+ }
7
+ declare const ThirdModal: React.FC<ExtendedModalProps>;
8
+ export default ThirdModal;
package/package.json CHANGED
@@ -1,55 +1,61 @@
1
- {
2
- "name": "pv-design",
3
- "version": "1.0.15",
4
- "description": "pvmed ui design",
5
- "type": "module",
6
- "main": "./dist/pv-design.js",
7
- "types": "./dist/types/index.d.ts",
8
- "scripts": {
9
- "start": "vite --port 1122",
10
- "build": "vite build --config vite.config.ts && tsc --jsx react --project tsconfig.types.json",
11
- "build:template": "tsc -b && vite build --config vite.template.config.ts",
12
- "build:doc": "typedoc",
13
- "doc:view": "http-serve docs -p 80",
14
- "lint": "eslint ."
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "ssh://git@192.168.18.221:12225/pvmed-prd/icp/pv-design.git"
19
- },
20
- "devDependencies": {
21
- "@eslint/js": "^9.9.0",
22
- "@types/node": "^22.7.4",
23
- "@types/react": "^18.3.3",
24
- "@types/react-dom": "^18.3.0",
25
- "@vitejs/plugin-react-swc": "^3.5.0",
26
- "antd": "^5.21.1",
27
- "eslint": "^9.9.0",
28
- "eslint-plugin-react-hooks": "^5.1.0-rc.0",
29
- "eslint-plugin-react-refresh": "^0.4.9",
30
- "globals": "^15.9.0",
31
- "path": "^0.12.7",
32
- "react": "^18.3.1",
33
- "react-dom": "^18.3.1",
34
- "typedoc": "^0.26.7",
35
- "typescript": "^5.5.3",
36
- "typescript-eslint": "^8.0.1",
37
- "vite": "^5.4.1"
38
- },
39
- "peerDependencies": {
40
- "antd": "^5.0.0",
41
- "react": ">16.8.0"
42
- },
43
- "keywords": [
44
- "ui",
45
- "ux",
46
- "pvmed",
47
- "design"
48
- ],
49
- "author": "pvmed",
50
- "license": "ISC",
51
- "files": [
52
- "dist",
53
- "README.md"
54
- ]
55
- }
1
+ {
2
+ "name": "pv-design",
3
+ "version": "1.0.17",
4
+ "description": "pvmed ui design",
5
+ "type": "module",
6
+ "main": "./dist/pv-design.js",
7
+ "types": "./dist/types/index.d.ts",
8
+ "scripts": {
9
+ "start": "vite --port 1122",
10
+ "build": "vite build --config vite.config.ts && tsc --jsx react --project tsconfig.types.json",
11
+ "build:template": "storybook build -o home",
12
+ "build:doc": "typedoc",
13
+ "doc:view": "http-serve docs -p 80",
14
+ "lint": "eslint .",
15
+ "storybook": "storybook dev -p 6006"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "ssh://git@192.168.18.221:12225/pvmed-prd/icp/pv-design.git"
20
+ },
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
+ "peerDependencies": {
46
+ "antd": "^5.0.0",
47
+ "react": ">16.8.0"
48
+ },
49
+ "keywords": [
50
+ "ui",
51
+ "ux",
52
+ "pvmed",
53
+ "design"
54
+ ],
55
+ "author": "pvmed",
56
+ "license": "ISC",
57
+ "files": [
58
+ "dist",
59
+ "README.md"
60
+ ]
61
+ }