pv-design 1.0.22 → 1.0.23

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/dist/pv-design.js CHANGED
@@ -1,21 +1,21 @@
1
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 n } from "react";
3
- import { jsxs as p, jsx as a } from "react/jsx-runtime";
4
- import { ConfigProvider as i, Modal as m } from "antd";
2
+ import { lazy as d } from "react";
3
+ import { jsxs as l, jsx as a } from "react/jsx-runtime";
4
+ import { ConfigProvider as p, Modal as i } from "antd";
5
5
  const h = ({ theme: o, ...t }) => {
6
6
  var r;
7
- const d = {
7
+ const n = {
8
8
  titleColor: "rgba(204,204,204,0.85)",
9
9
  ...((r = o == null ? void 0 : o.components) == null ? void 0 : r.Modal) || {}
10
10
  };
11
- return /* @__PURE__ */ p(
12
- i,
11
+ return /* @__PURE__ */ l(
12
+ p,
13
13
  {
14
14
  prefixCls: "pv-base-modal-third",
15
15
  theme: {
16
16
  ...o || {},
17
17
  components: {
18
- Modal: d
18
+ Modal: n
19
19
  }
20
20
  },
21
21
  children: [
@@ -70,7 +70,7 @@ const h = ({ theme: o, ...t }) => {
70
70
  }
71
71
  ` }),
72
72
  /* @__PURE__ */ a(
73
- m,
73
+ i,
74
74
  {
75
75
  width: 780,
76
76
  ...t,
@@ -82,18 +82,18 @@ const h = ({ theme: o, ...t }) => {
82
82
  );
83
83
  }, b = ({ theme: o, ...t }) => {
84
84
  var r;
85
- const d = {
85
+ const n = {
86
86
  titleColor: "rgba(204,204,204,0.85)",
87
87
  ...((r = o == null ? void 0 : o.components) == null ? void 0 : r.Modal) || {}
88
88
  };
89
- return /* @__PURE__ */ p(
90
- i,
89
+ return /* @__PURE__ */ l(
90
+ p,
91
91
  {
92
92
  prefixCls: "pv-base-modal-default",
93
93
  theme: {
94
94
  ...o || {},
95
95
  components: {
96
- Modal: d
96
+ Modal: n
97
97
  }
98
98
  },
99
99
  children: [
@@ -145,7 +145,7 @@ const h = ({ theme: o, ...t }) => {
145
145
  }
146
146
  ` }),
147
147
  /* @__PURE__ */ a(
148
- m,
148
+ i,
149
149
  {
150
150
  ...t,
151
151
  className: [t.className, "pv-base-modal-default-body"].join(" ")
@@ -156,18 +156,18 @@ const h = ({ theme: o, ...t }) => {
156
156
  );
157
157
  }, g = ({ theme: o, ...t }) => {
158
158
  var r;
159
- const d = {
159
+ const n = {
160
160
  titleColor: "rgba(204,204,204,0.85)",
161
161
  ...((r = o == null ? void 0 : o.components) == null ? void 0 : r.Modal) || {}
162
162
  };
163
- return /* @__PURE__ */ p(
164
- i,
163
+ return /* @__PURE__ */ l(
164
+ p,
165
165
  {
166
166
  prefixCls: "pv-base-modal-four",
167
167
  theme: {
168
168
  ...o || {},
169
169
  components: {
170
- Modal: d
170
+ Modal: n
171
171
  }
172
172
  },
173
173
  children: [
@@ -221,7 +221,7 @@ const h = ({ theme: o, ...t }) => {
221
221
  }
222
222
  ` }),
223
223
  /* @__PURE__ */ a(
224
- m,
224
+ i,
225
225
  {
226
226
  width: 1052,
227
227
  ...t,
@@ -233,18 +233,18 @@ const h = ({ theme: o, ...t }) => {
233
233
  );
234
234
  }, y = ({ theme: o, ...t }) => {
235
235
  var r;
236
- const d = {
236
+ const n = {
237
237
  titleColor: "rgba(204,204,204,0.85)",
238
238
  ...((r = o == null ? void 0 : o.components) == null ? void 0 : r.Modal) || {}
239
239
  };
240
- return /* @__PURE__ */ p(
241
- i,
240
+ return /* @__PURE__ */ l(
241
+ p,
242
242
  {
243
243
  prefixCls: "pv-base-modal-two",
244
244
  theme: {
245
245
  ...o || {},
246
246
  components: {
247
- Modal: d
247
+ Modal: n
248
248
  }
249
249
  },
250
250
  children: [
@@ -299,7 +299,7 @@ const h = ({ theme: o, ...t }) => {
299
299
  }
300
300
  ` }),
301
301
  /* @__PURE__ */ a(
302
- m,
302
+ i,
303
303
  {
304
304
  width: 486,
305
305
  ...t,
@@ -309,18 +309,97 @@ const h = ({ theme: o, ...t }) => {
309
309
  ]
310
310
  }
311
311
  );
312
+ }, w = ({ theme: o, ...t }) => {
313
+ var r;
314
+ const n = {
315
+ titleColor: "rgba(204,204,204,0.85)",
316
+ ...((r = o == null ? void 0 : o.components) == null ? void 0 : r.Modal) || {}
317
+ };
318
+ return /* @__PURE__ */ l(
319
+ p,
320
+ {
321
+ prefixCls: "pv-base-modal-one",
322
+ theme: {
323
+ ...o || {},
324
+ components: {
325
+ Modal: n
326
+ }
327
+ },
328
+ children: [
329
+ /* @__PURE__ */ a("style", { children: `
330
+ .pv-base-modal-one-body .pv-base-modal-one-modal-content {
331
+ display: flex;
332
+ flex-direction: column;
333
+ padding: 20px 28px !important;
334
+ border-radius: 12px !important;
335
+ box-shadow: 0px 8px 48px 0px rgba(0,0,0,0.4) !important;
336
+ width: 338px !important;
337
+ min-height: 228px !important;
338
+ max-height: 580px !important;
339
+ background-color: #252526 !important;
340
+ }
341
+ .pv-base-modal-one-body .pv-base-modal-one-modal-title {
342
+ text-align: center;
343
+ height: 24px;
344
+ line-height: 24px !important;
345
+ }
346
+ .pv-base-modal-one-body .pv-base-modal-one-modal-close-icon {
347
+ color: rgba(204, 204, 204, 0.85) !important;
348
+ }
349
+ .pv-base-modal-one-body .pv-base-modal-one-modal-close {
350
+ top: 17px !important;
351
+ right: 20px !important;
352
+ }
353
+ .pv-base-modal-one-body .pv-base-modal-one-modal-header {
354
+ margin-bottom: 20px !important;
355
+ background-color: transparent !important;
356
+ }
357
+ .pv-base-modal-one-body .pv-base-modal-one-modal-body {
358
+ display: flex;
359
+ flex: 1;
360
+ overflow: hidden;
361
+ }
362
+ .pv-base-modal-one-body .pv-base-modal-one-modal-footer {
363
+ margin-top: 20px !important;
364
+ }
365
+ .pv-base-modal-one-body .pv-base-modal-one-modal-footer{
366
+ button:nth-of-type(1) {
367
+ background: transparent;
368
+ }
369
+ button:nth-of-type(1):hover {
370
+ background-color: transparent !important;
371
+ border: 1px solid #4B4A4A !important;
372
+ color: #d9d9d9 !important;
373
+ }
374
+ button {
375
+ font-size: 12px;
376
+ }
377
+ }
378
+ ` }),
379
+ /* @__PURE__ */ a(
380
+ i,
381
+ {
382
+ ...t,
383
+ className: [t.className, "pv-base-modal-one-body"].join(" ")
384
+ }
385
+ )
386
+ ]
387
+ }
388
+ );
312
389
  };
313
390
  var c = /* @__PURE__ */ ((o) => (o[o.default = 0] = "default", o[o.third = 3] = "third", o[o.four = 4] = "four", o[o.one = 1] = "one", o[o.two = 2] = "two", o))(c || {});
314
- const w = {
391
+ const B = {
315
392
  default: 0,
316
393
  third: 3,
317
394
  four: 4,
318
395
  one: 1,
319
396
  two: 2
320
- }, B = ({ modalType: o, ...t }) => {
397
+ }, _ = ({ modalType: o, ...t }) => {
321
398
  switch (o) {
322
399
  case 0:
323
400
  return /* @__PURE__ */ a(b, { ...t });
401
+ case 1:
402
+ return /* @__PURE__ */ a(w, { ...t });
324
403
  case 2:
325
404
  return /* @__PURE__ */ a(y, { ...t });
326
405
  case 3:
@@ -330,44 +409,44 @@ const w = {
330
409
  default:
331
410
  return /* @__PURE__ */ a(b, { ...t });
332
411
  }
333
- }, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
412
+ }, k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
334
413
  __proto__: null,
335
414
  ModalType: c,
336
- ModalTypeMap: w,
337
- default: B
338
- }, Symbol.toStringTag, { value: "Module" })), k = "_iconButton_1fiji_1", e = {
339
- iconButton: k,
415
+ ModalTypeMap: B,
416
+ default: _
417
+ }, Symbol.toStringTag, { value: "Module" })), j = "_iconButton_1fiji_1", e = {
418
+ iconButton: j,
340
419
  "iconButton-primary": "_iconButton-primary_1fiji_5",
341
420
  "iconButton-danger": "_iconButton-danger_1fiji_8",
342
421
  "iconButton-disable": "_iconButton-disable_1fiji_11",
343
422
  "iconButton-block": "_iconButton-block_1fiji_18"
344
- }, l = {
423
+ }, m = {
345
424
  primary: "primary",
346
425
  danger: "danger"
347
- }, j = ({ children: o, onClick: t, className: d, size: r = 12, disable: s = !1, type: u = l.primary, block: f = !1 }) => {
348
- const x = () => {
426
+ }, M = ({ children: o, onClick: t, className: n, size: r = 12, disable: s = !1, type: u = m.primary, block: x = !1 }) => {
427
+ const f = () => {
349
428
  switch (u) {
350
- case l.primary:
429
+ case m.primary:
351
430
  return e["iconButton-primary"];
352
- case l.danger:
431
+ case m.danger:
353
432
  return e["iconButton-danger"];
354
433
  }
355
434
  }, v = () => {
356
435
  s || t == null || t();
357
436
  };
358
- return /* @__PURE__ */ a("span", { className: [e.iconButton, d, s ? e["iconButton-disable"] : "", x(), f ? e["iconButton-block"] : ""].join(" "), onClick: v, style: { fontSize: `${r}px` }, children: o });
359
- }, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
437
+ return /* @__PURE__ */ a("span", { className: [e.iconButton, n, s ? e["iconButton-disable"] : "", f(), x ? e["iconButton-block"] : ""].join(" "), onClick: v, style: { fontSize: `${r}px` }, children: o });
438
+ }, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
360
439
  __proto__: null,
361
- IconButtonType: l,
362
- default: j
363
- }, Symbol.toStringTag, { value: "Module" })), C = n(() => import("./index-C5hvxSxS.js")), P = n(() => import("./index-Dyq3zBZo.js")), S = n(() => import("./index-FYoViA-E.js")), O = n(() => import("./index-CaYRL7KG.js")), $ = n(() => Promise.resolve().then(() => _)), I = n(() => Promise.resolve().then(() => M));
440
+ IconButtonType: m,
441
+ default: M
442
+ }, Symbol.toStringTag, { value: "Module" })), P = d(() => import("./index-C5hvxSxS.js")), O = d(() => import("./index-Dyq3zBZo.js")), S = d(() => import("./index-FYoViA-E.js")), $ = d(() => import("./index-CaYRL7KG.js")), I = d(() => Promise.resolve().then(() => k)), D = d(() => Promise.resolve().then(() => N));
364
443
  export {
365
- $ as BaseModal,
366
- I as IconButton,
367
- l as IconButtonType,
368
- w as ModalTypeMap,
444
+ I as BaseModal,
445
+ D as IconButton,
446
+ m as IconButtonType,
447
+ B as ModalTypeMap,
369
448
  S as PvModal,
370
- P as PvTable,
371
- C as PvTabs,
372
- O as ThirdModal
449
+ O as PvTable,
450
+ P as PvTabs,
451
+ $ as ThirdModal
373
452
  };
@@ -0,0 +1,7 @@
1
+ import type { ModalProps, ThemeConfig } from 'antd';
2
+ import React from 'react';
3
+ export interface ExtendedModalProps extends ModalProps {
4
+ theme?: ThemeConfig;
5
+ }
6
+ declare const OneModal: React.FC<ExtendedModalProps>;
7
+ export default OneModal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pv-design",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "pvmed ui design",
5
5
  "type": "module",
6
6
  "main": "./dist/pv-design.js",