pv-design 1.0.23 → 1.0.24

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 CHANGED
@@ -19,6 +19,10 @@
19
19
  * API文档生成: typedoc
20
20
  * 组件demo:HTML(需要gitlab pages的支持)或MD
21
21
 
22
+ ### 使用准备动作
23
+ 1. yarn install / npm install (建议开发前都执行一次)
24
+
25
+
22
26
  ### 开发流程(新增组件)
23
27
  1. 创建组件:在 /components 目录下创建组件文件夹和文件。
24
28
  2. 编写文档:在 /src/template 目录下为每个组件编写使用文档(目录名称与components下的一致)。
@@ -26,7 +30,10 @@
26
30
  4. 编译组件:npm run build:watch,确保组件库的实时更新。
27
31
  5. 可以在template目录下查看组件的demo,确保组件的正常使用。
28
32
  6. 确保没问题后在stories下添加组件的stories,确保组件的正常展示。
29
- 7. 发布组件库:使用 npm publish 发布
33
+ 7. 发布组件库如下:
34
+ cd components
35
+ npm run build
36
+ npm publish
30
37
 
31
38
  ### 本地调试 link
32
39
  1. 为了确保开发过程中可能会更新组件,所以先在终端执行npm run build:watch,确保组件库的实时更新。
@@ -0,0 +1,79 @@
1
+ import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
+ import { ConfigProvider as a, ColorPicker as i } from "antd";
3
+ function l() {
4
+ return [
5
+ {
6
+ label: "",
7
+ defaultOpen: !0,
8
+ colors: [
9
+ "#0099ff",
10
+ "#00a400",
11
+ "#00c8ff",
12
+ "#10c6bd",
13
+ "#20ffff",
14
+ "#2afb12",
15
+ "#81c911",
16
+ "#9900ff",
17
+ "#a4a4ff",
18
+ "#aa7bff",
19
+ "#b4ff69",
20
+ "#c4ffff",
21
+ "#c8007d",
22
+ "#dcffcc",
23
+ "#dd5a14",
24
+ "#f600ff",
25
+ "#f89220",
26
+ "#faa07a",
27
+ "#ff2020",
28
+ "#ff9090",
29
+ "#ffaaf0",
30
+ "#ffc900",
31
+ "#ffcd7b",
32
+ "#fff600"
33
+ ],
34
+ key: "preset-colors"
35
+ }
36
+ ];
37
+ }
38
+ const d = ({ theme: f, children: c, ...e }) => {
39
+ var o;
40
+ const n = {
41
+ ...((o = f == null ? void 0 : f.components) == null ? void 0 : o.ColorPicker) || {}
42
+ };
43
+ return /* @__PURE__ */ p(
44
+ a,
45
+ {
46
+ prefixCls: "pv-color-picker",
47
+ theme: {
48
+ ...f || {},
49
+ components: {
50
+ ColorPicker: n
51
+ }
52
+ },
53
+ children: [
54
+ /* @__PURE__ */ r("style", { children: `
55
+ .pv-color-picker-popover-inner {
56
+ background-color: #2f2f2f !important;
57
+ }
58
+ .pv-color-picker-color-picker-inner-content {
59
+ width: 186px !important;
60
+ }
61
+ .pv-color-picker-collapse-header {
62
+ display: none !important;
63
+ }
64
+ ` }),
65
+ /* @__PURE__ */ r(
66
+ i,
67
+ {
68
+ presets: l(),
69
+ ...e,
70
+ children: c
71
+ }
72
+ )
73
+ ]
74
+ }
75
+ );
76
+ };
77
+ export {
78
+ d as default
79
+ };
package/dist/pv-design.js CHANGED
@@ -435,18 +435,19 @@ const B = {
435
435
  s || t == null || t();
436
436
  };
437
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({
438
+ }, C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
439
439
  __proto__: null,
440
440
  IconButtonType: m,
441
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));
442
+ }, Symbol.toStringTag, { value: "Module" })), z = 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(() => C)), F = d(() => import("./index-BBXpiUX2.js"));
443
443
  export {
444
444
  I as BaseModal,
445
445
  D as IconButton,
446
446
  m as IconButtonType,
447
447
  B as ModalTypeMap,
448
+ F as PvColorPicker,
448
449
  S as PvModal,
449
450
  O as PvTable,
450
- P as PvTabs,
451
+ z as PvTabs,
451
452
  $ as ThirdModal
452
453
  };
@@ -6,4 +6,5 @@ declare const PvModal: import("react").LazyExoticComponent<import("react").FC<im
6
6
  declare const ThirdModal: import("react").LazyExoticComponent<import("react").FC<import("./thirdModal").ExtendedModalProps>>;
7
7
  declare const BaseModal: import("react").LazyExoticComponent<import("react").FC<import("./baseModal").ExtendedModalProps>>;
8
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, };
9
+ declare const PvColorPicker: import("react").LazyExoticComponent<import("react").FC<import("./pvColorPicker").ExtendedColorPickerProps>>;
10
+ export { PvTabs, PvTable, PvModal, ThirdModal, BaseModal, ModalTypeMap, IconButtonType, IconButton, PvColorPicker, };
@@ -0,0 +1,7 @@
1
+ import type { ColorPickerProps, ThemeConfig } from 'antd';
2
+ import React from 'react';
3
+ export interface ExtendedColorPickerProps extends ColorPickerProps {
4
+ theme?: ThemeConfig;
5
+ }
6
+ declare const PvModal: React.FC<ExtendedColorPickerProps>;
7
+ export default PvModal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pv-design",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "pvmed ui design",
5
5
  "type": "module",
6
6
  "main": "./dist/pv-design.js",