@pisell/common 0.0.5 → 0.0.7

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.
Files changed (43) hide show
  1. package/es/components/Iconfont/index.d.ts +1 -1
  2. package/es/components/avatar/index.d.ts +13 -0
  3. package/es/components/avatar/index.js +25 -0
  4. package/es/components/button/index.d.ts +17 -3
  5. package/es/components/button/index.js +28 -4
  6. package/es/components/checkbox/index.d.ts +20 -0
  7. package/es/components/checkbox/index.js +43 -0
  8. package/es/components/configProvider/index.d.ts +109 -0
  9. package/es/components/configProvider/index.js +111 -0
  10. package/es/components/index.d.ts +17 -0
  11. package/es/components/index.js +8 -1
  12. package/es/components/input/index.d.ts +35 -0
  13. package/es/components/input/index.js +97 -0
  14. package/es/components/pagination/index.d.ts +10 -0
  15. package/es/components/pagination/index.js +18 -0
  16. package/es/components/radio/index.d.ts +13 -0
  17. package/es/components/radio/index.js +28 -0
  18. package/es/components/switch/index.d.ts +10 -0
  19. package/es/components/switch/index.js +18 -0
  20. package/es/index.d.ts +0 -2
  21. package/es/index.js +1 -3
  22. package/lib/components/Iconfont/index.d.ts +1 -1
  23. package/lib/components/avatar/index.d.ts +13 -0
  24. package/lib/components/avatar/index.js +42 -0
  25. package/lib/components/button/index.d.ts +17 -3
  26. package/lib/components/button/index.js +7 -2
  27. package/lib/components/checkbox/index.d.ts +20 -0
  28. package/lib/components/checkbox/index.js +36 -0
  29. package/lib/components/configProvider/index.d.ts +109 -0
  30. package/lib/components/configProvider/index.js +140 -0
  31. package/lib/components/index.d.ts +17 -0
  32. package/lib/components/index.js +22 -2
  33. package/lib/components/input/index.d.ts +35 -0
  34. package/lib/components/input/index.js +53 -0
  35. package/lib/components/pagination/index.d.ts +10 -0
  36. package/lib/components/pagination/index.js +42 -0
  37. package/lib/components/radio/index.d.ts +13 -0
  38. package/lib/components/radio/index.js +36 -0
  39. package/lib/components/switch/index.d.ts +10 -0
  40. package/lib/components/switch/index.js +42 -0
  41. package/lib/index.d.ts +0 -2
  42. package/lib/index.js +0 -12
  43. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ import { Switch as AntSwitch } from 'antd5';
8
+ import React from 'react';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ /**
11
+ * 开关
12
+ * @param props
13
+ * @constructor
14
+ */
15
+ var Switch = function Switch(props) {
16
+ return /*#__PURE__*/_jsx(AntSwitch, _objectSpread({}, props));
17
+ };
18
+ export default Switch;
package/es/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { ConfigProvider } from 'antd5';
2
1
  export * from './business-components';
3
2
  export * from './business-hooks';
4
3
  export * from './components';
5
4
  export * from './hooks';
6
- export { ConfigProvider };
package/es/index.js CHANGED
@@ -1,6 +1,4 @@
1
- import { ConfigProvider } from 'antd5';
2
1
  export * from "./business-components";
3
2
  export * from "./business-hooks";
4
3
  export * from "./components";
5
- export * from "./hooks";
6
- export { ConfigProvider };
4
+ export * from "./hooks";
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface IconFontProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ export interface IconFontProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
3
  type: string;
4
4
  }
5
5
  declare const IconFont: React.FC<IconFontProps>;
@@ -0,0 +1,13 @@
1
+ import type { AvatarProps as AntAvatarProps } from 'antd5';
2
+ import React from 'react';
3
+ /**
4
+ * 后续可添加属性
5
+ */
6
+ export declare type AvatarProps = AntAvatarProps;
7
+ /**
8
+ * 头像
9
+ * @param props
10
+ * @constructor
11
+ */
12
+ declare const Avatar: React.FC<AvatarProps>;
13
+ export default Avatar;
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/avatar/index.tsx
30
+ var avatar_exports = {};
31
+ __export(avatar_exports, {
32
+ default: () => avatar_default
33
+ });
34
+ module.exports = __toCommonJS(avatar_exports);
35
+ var import_antd5 = require("antd5");
36
+ var import_react = __toESM(require("react"));
37
+ var Avatar = (props) => {
38
+ return /* @__PURE__ */ import_react.default.createElement(import_antd5.Avatar, { ...props });
39
+ };
40
+ var avatar_default = Avatar;
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {});
@@ -1,3 +1,17 @@
1
- import type { ButtonProps } from 'antd5';
2
- declare const TestButton: (props: ButtonProps) => JSX.Element;
3
- export default TestButton;
1
+ import type { ButtonProps as AntButtonProps } from 'antd5';
2
+ import type { ButtonGroupProps as AntButtonGroupProps } from 'antd5/es/button';
3
+ /**
4
+ * 后续可添加属性
5
+ */
6
+ export declare type ButtonProps = AntButtonProps;
7
+ export declare type ButtonGroupProps = AntButtonGroupProps;
8
+ /**
9
+ * 按钮组件
10
+ * @param props
11
+ * @constructor
12
+ */
13
+ declare const Button: {
14
+ (props: ButtonProps): JSX.Element;
15
+ Group: (props: ButtonGroupProps) => JSX.Element;
16
+ };
17
+ export default Button;
@@ -23,9 +23,14 @@ __export(button_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(button_exports);
25
25
  var import_antd5 = require("antd5");
26
- var TestButton = (props) => {
26
+ var { Group: AntGroup } = import_antd5.Button;
27
+ var Button = (props) => {
27
28
  return /* @__PURE__ */ React.createElement(import_antd5.Button, { ...props });
28
29
  };
29
- var button_default = TestButton;
30
+ var Group = (props) => {
31
+ return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
32
+ };
33
+ Button.Group = Group;
34
+ var button_default = Button;
30
35
  // Annotate the CommonJS export names for ESM import in node:
31
36
  0 && (module.exports = {});
@@ -0,0 +1,20 @@
1
+ import type { CheckboxGroupProps as AntCheckboxGroupProps } from 'antd/es/checkbox';
2
+ import type { CheckboxProps as AntCheckboxProps } from 'antd5';
3
+ /**
4
+ * 后续可添加属性
5
+ */
6
+ /**
7
+ * 后续可添加属性
8
+ */
9
+ export declare type CheckboxProps = AntCheckboxProps;
10
+ export declare type CheckboxGroupProps = AntCheckboxGroupProps;
11
+ /**
12
+ * 多选框
13
+ * @param props
14
+ * @constructor
15
+ */
16
+ declare const Checkbox: {
17
+ (props: CheckboxProps): JSX.Element;
18
+ Group: (props: CheckboxGroupProps) => JSX.Element;
19
+ };
20
+ export default Checkbox;
@@ -0,0 +1,36 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/checkbox/index.tsx
20
+ var checkbox_exports = {};
21
+ __export(checkbox_exports, {
22
+ default: () => checkbox_default
23
+ });
24
+ module.exports = __toCommonJS(checkbox_exports);
25
+ var import_antd5 = require("antd5");
26
+ var { Group: AntGroup } = import_antd5.Checkbox;
27
+ var Checkbox = (props) => {
28
+ return /* @__PURE__ */ React.createElement(import_antd5.Checkbox, { ...props });
29
+ };
30
+ var Group = (props) => {
31
+ return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
32
+ };
33
+ Checkbox.Group = Group;
34
+ var checkbox_default = Checkbox;
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {});
@@ -0,0 +1,109 @@
1
+ import { ConfigProvider } from 'antd5';
2
+ declare const cssVariableMap: {
3
+ /** 白色 - White */
4
+ '--color-white': string;
5
+ /** 灰色 - Grey */
6
+ '--color-grey-10': string;
7
+ '--color-grey-20': string;
8
+ '--color-grey-30': string;
9
+ '--color-grey-40': string;
10
+ '--color-grey-50': string;
11
+ '--color-grey-60': string;
12
+ '--color-grey-70': string;
13
+ '--color-grey-80': string;
14
+ '--color-grey-90': string;
15
+ '--color-grey-95': string;
16
+ '--color-grey-98': string;
17
+ '--color-grey-99': string;
18
+ /** 主题色 - Primary */
19
+ '--color-primary-primary': string;
20
+ /** -------------------文本与图标颜色 - Text-------------------------------- */
21
+ '--color-text-1': string;
22
+ '--color-text-2': string;
23
+ '--color-text-3': string;
24
+ '--color-text-4': string;
25
+ /** -------------------徽标色 - Badge 四种功能用色-------------------------------- */
26
+ /** 红色 */
27
+ '--color-badge-red': string;
28
+ /** 红色容器背景色 */
29
+ '--color-badge-red-container': string;
30
+ /** 橙色 */
31
+ '--color-badge-orange': string;
32
+ /** 橙色容器背景色 */
33
+ '--color-badge-orange-container': string;
34
+ /** 橙色文字颜色 */
35
+ '--color-badge-orange-text': string;
36
+ /** 绿色 */
37
+ '--color-badge-green': string;
38
+ /** 绿色容器背景色 */
39
+ '--color-badge-green-container': string;
40
+ /** 蓝色 */
41
+ '--color-badge-blue': string;
42
+ /** 蓝色容器背景色 */
43
+ '--color-badge-blue-container': string;
44
+ /** 紫色 */
45
+ '--color-badge-purple': string;
46
+ /** 紫色容器背景色 */
47
+ '--color-badge-purple-container': string;
48
+ /** 灰色 */
49
+ '--color-badge-grey': string;
50
+ /** 灰色容器背景色 */
51
+ '--color-badge-grey-container': string;
52
+ /** 黄色 */
53
+ '--color-badge-yellow': string;
54
+ /** 黄色容器背景色 */
55
+ '--color-badge-yellow-container': string;
56
+ /** 黄色文字颜色 */
57
+ '--color-badge-yellow-text': string;
58
+ /** -------------------功能色 - Functional Color-------------------------------- */
59
+ /** 错误色 */
60
+ '--color-functional-error': string;
61
+ /** 错误容器背景色 */
62
+ '--color-functional-error-container': string;
63
+ /** 警告色 */
64
+ '--color-functional-warning': string;
65
+ /** 警告容器背景色 */
66
+ '--color-functional-warning-container': string;
67
+ /** 成功色 */
68
+ '--color-functional-success': string;
69
+ /** 成功容器背景色 */
70
+ '--color-functional-success-container': string;
71
+ /** 信息色 */
72
+ '--color-functional-info': string;
73
+ /** 信息容器背景色 */
74
+ '--color-functional-info-container': string;
75
+ /** -------------------背景色 - Background------------------- */
76
+ /** APP大背景 */
77
+ '--color-bg-app': string;
78
+ /** web端大背景、表格表头背景 */
79
+ '--color-bg-web': string;
80
+ /** 鼠标悬停背景 */
81
+ '--color-bg-hover': string;
82
+ /** 鼠标按下背景 */
83
+ '--color-bg-pressing': string;
84
+ /** button禁用背景、输入框叉号默认 */
85
+ '--color-bg-button-disabled': string;
86
+ /** -------------------表面色 - Surface------------------- */
87
+ /** 多选框默认、单选框默认、警告提示叉号 */
88
+ '--color-surface-1': string;
89
+ /** 面包屑分隔符、开关_关闭 */
90
+ '--color-surface-2': string;
91
+ /** 输入框边框、输入框提示icon、开关禁用 */
92
+ '--color-surface-3': string;
93
+ /** 边框颜色、分页器边框、次要button禁用边框、多选框禁用、单选框禁用、下拉框边框、输入框禁用边框、输入框禁用icon、弹窗边框 */
94
+ '--color-surface-4': string;
95
+ /** 分割线颜色、弹窗分割线 */
96
+ '--color-surface-5': string;
97
+ };
98
+ declare const defaultTheme: {
99
+ token: {
100
+ colorPrimary: string;
101
+ colorSuccess: string;
102
+ borderRadius: number;
103
+ colorWarning: string;
104
+ colorError: string;
105
+ colorInfo: string;
106
+ colorTextBase: string;
107
+ };
108
+ };
109
+ export { ConfigProvider, defaultTheme, cssVariableMap };
@@ -0,0 +1,140 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/configProvider/index.ts
20
+ var configProvider_exports = {};
21
+ __export(configProvider_exports, {
22
+ ConfigProvider: () => import_antd5.ConfigProvider,
23
+ cssVariableMap: () => cssVariableMap,
24
+ defaultTheme: () => defaultTheme
25
+ });
26
+ module.exports = __toCommonJS(configProvider_exports);
27
+ var import_antd5 = require("antd5");
28
+ var cssVariableMap = {
29
+ /** 白色 - White */
30
+ "--color-white": "#FFFFFF",
31
+ /** 灰色 - Grey */
32
+ "--color-grey-10": "#1b1b1b",
33
+ "--color-grey-20": "#303030",
34
+ "--color-grey-30": "#474747",
35
+ "--color-grey-40": "#5e5e5e",
36
+ "--color-grey-50": "#777777",
37
+ "--color-grey-60": "#919191",
38
+ "--color-grey-70": "#ababab",
39
+ "--color-grey-80": "#c6c6c6",
40
+ "--color-grey-90": "#e2e2e2",
41
+ "--color-grey-95": "#f1f1f1",
42
+ "--color-grey-98": "#fafafa",
43
+ "--color-grey-99": "#fcfcfc",
44
+ /** 主题色 - Primary */
45
+ "--color-primary-primary": "#705DFF",
46
+ /** -------------------文本与图标颜色 - Text-------------------------------- */
47
+ "--color-text-1": "var(--color-grey-10)",
48
+ "--color-text-2": "var(--color-grey-50)",
49
+ "--color-text-3": "var(--color-grey-60)",
50
+ "--color-text-4": "var(--color-grey-70)",
51
+ /** -------------------徽标色 - Badge 四种功能用色-------------------------------- */
52
+ /** 红色 */
53
+ "--color-badge-red": "#DC3545",
54
+ /** 红色容器背景色 */
55
+ "--color-badge-red-container": "#FFDDE0",
56
+ /** 橙色 */
57
+ "--color-badge-orange": "#FD7E14",
58
+ /** 橙色容器背景色 */
59
+ "--color-badge-orange-container": "#FFE5D0",
60
+ /** 橙色文字颜色 */
61
+ "--color-badge-orange-text": "#CA6510",
62
+ /** 绿色 */
63
+ "--color-badge-green": "#1B945C",
64
+ /** 绿色容器背景色 */
65
+ "--color-badge-green-container": "#D7EDE3",
66
+ /** 蓝色 */
67
+ "--color-badge-blue": "#0B5FDB",
68
+ /** 蓝色容器背景色 */
69
+ "--color-badge-blue-container": "#D1E3FF",
70
+ /** 紫色 */
71
+ "--color-badge-purple": "#610FE5",
72
+ /** 紫色容器背景色 */
73
+ "--color-badge-purple-container": "#E9DBFF",
74
+ /** 灰色 */
75
+ "--color-badge-grey": "var(--color-grey-50)",
76
+ /** 灰色容器背景色 */
77
+ "--color-badge-grey-container": "var(--color-grey-90)",
78
+ /** 黄色 */
79
+ "--color-badge-yellow": "#F5B800",
80
+ /** 黄色容器背景色 */
81
+ "--color-badge-yellow-container": "#FFF3CD",
82
+ /** 黄色文字颜色 */
83
+ "--color-badge-yellow-text": "#CC9A06",
84
+ /** -------------------功能色 - Functional Color-------------------------------- */
85
+ /** 错误色 */
86
+ "--color-functional-error": "var(--color-badge-red)",
87
+ /** 错误容器背景色 */
88
+ "--color-functional-error-container": "var(--color-badge-red-container)",
89
+ /** 警告色 */
90
+ "--color-functional-warning": "var(--color-badge-orange)",
91
+ /** 警告容器背景色 */
92
+ "--color-functional-warning-container": "var(--color-badge-orange-container)",
93
+ /** 成功色 */
94
+ "--color-functional-success": "var(--color-badge-green)",
95
+ /** 成功容器背景色 */
96
+ "--color-functional-success-container": "var(--color-badge-green-container)",
97
+ /** 信息色 */
98
+ "--color-functional-info": "var(--color-badge-blue)",
99
+ /** 信息容器背景色 */
100
+ "--color-functional-info-container": "var(--color-badge-blue-container)",
101
+ /** -------------------背景色 - Background------------------- */
102
+ /** APP大背景 */
103
+ "--color-bg-app": "var(--color-grey-95)",
104
+ /** web端大背景、表格表头背景 */
105
+ "--color-bg-web": "var(--color-grey-98)",
106
+ /** 鼠标悬停背景 */
107
+ "--color-bg-hover": "var(--color-grey-95)",
108
+ /** 鼠标按下背景 */
109
+ "--color-bg-pressing": "var(--color-grey-90)",
110
+ /** button禁用背景、输入框叉号默认 */
111
+ "--color-bg-button-disabled": "var(--color-grey-80)",
112
+ /** -------------------表面色 - Surface------------------- */
113
+ /** 多选框默认、单选框默认、警告提示叉号 */
114
+ "--color-surface-1": "var(--color-grey-60)",
115
+ /** 面包屑分隔符、开关_关闭 */
116
+ "--color-surface-2": "var(--color-grey-70)",
117
+ /** 输入框边框、输入框提示icon、开关禁用 */
118
+ "--color-surface-3": "var(--color-grey-80)",
119
+ /** 边框颜色、分页器边框、次要button禁用边框、多选框禁用、单选框禁用、下拉框边框、输入框禁用边框、输入框禁用icon、弹窗边框 */
120
+ "--color-surface-4": "var(--color-grey-90)",
121
+ /** 分割线颜色、弹窗分割线 */
122
+ "--color-surface-5": "var(--color-grey-95)"
123
+ };
124
+ var defaultTheme = {
125
+ token: {
126
+ colorPrimary: "#705dff",
127
+ colorSuccess: "#1b945c",
128
+ borderRadius: 8,
129
+ colorWarning: "#fd7e14",
130
+ colorError: "#dc3545",
131
+ colorInfo: "#0b5fdb",
132
+ colorTextBase: "#1b1b1b"
133
+ }
134
+ };
135
+ // Annotate the CommonJS export names for ESM import in node:
136
+ 0 && (module.exports = {
137
+ ConfigProvider,
138
+ cssVariableMap,
139
+ defaultTheme
140
+ });
@@ -1,5 +1,22 @@
1
+ export { default as Avatar } from './avatar';
2
+ export type { AvatarProps } from './avatar';
1
3
  export { default as Button } from './button';
4
+ export type { ButtonGroupProps, ButtonProps } from './button';
2
5
  export { default as Card } from './card';
6
+ export type { CardProps } from './card';
7
+ export { default as Checkbox } from './checkbox';
8
+ export type { CheckboxGroupProps, CheckboxProps } from './checkbox';
3
9
  export { default as ColorPicker } from './ColorPicker';
10
+ export type { ColorPickerProps } from './ColorPicker';
11
+ export * from './configProvider';
4
12
  export { default as DragSort } from './DragSort';
5
13
  export { default as IconFont } from './Iconfont';
14
+ export type { IconFontProps } from './Iconfont';
15
+ export { default as Input } from './input';
16
+ export type { GroupProps, InputProps, PasswordProps, SearchProps, TextAreaProps, } from './input';
17
+ export { default as Pagination } from './pagination';
18
+ export type { PaginationProps } from './pagination';
19
+ export { default as Radio } from './radio';
20
+ export type { RadioGroupProps, RadioProps } from './radio';
21
+ export { default as Switch } from './switch';
22
+ export type { SwitchProps } from './switch';
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
21
  // If the importer is in node compatibility mode or this is not an ESM
21
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -29,23 +30,42 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
30
  // src/components/index.ts
30
31
  var components_exports = {};
31
32
  __export(components_exports, {
33
+ Avatar: () => import_avatar.default,
32
34
  Button: () => import_button.default,
33
35
  Card: () => import_card.default,
36
+ Checkbox: () => import_checkbox.default,
34
37
  ColorPicker: () => import_ColorPicker.default,
35
38
  DragSort: () => import_DragSort.default,
36
- IconFont: () => import_Iconfont.default
39
+ IconFont: () => import_Iconfont.default,
40
+ Input: () => import_input.default,
41
+ Pagination: () => import_pagination.default,
42
+ Radio: () => import_radio.default,
43
+ Switch: () => import_switch.default
37
44
  });
38
45
  module.exports = __toCommonJS(components_exports);
46
+ var import_avatar = __toESM(require("./avatar"));
39
47
  var import_button = __toESM(require("./button"));
40
48
  var import_card = __toESM(require("./card"));
49
+ var import_checkbox = __toESM(require("./checkbox"));
41
50
  var import_ColorPicker = __toESM(require("./ColorPicker"));
51
+ __reExport(components_exports, require("./configProvider"), module.exports);
42
52
  var import_DragSort = __toESM(require("./DragSort"));
43
53
  var import_Iconfont = __toESM(require("./Iconfont"));
54
+ var import_input = __toESM(require("./input"));
55
+ var import_pagination = __toESM(require("./pagination"));
56
+ var import_radio = __toESM(require("./radio"));
57
+ var import_switch = __toESM(require("./switch"));
44
58
  // Annotate the CommonJS export names for ESM import in node:
45
59
  0 && (module.exports = {
60
+ Avatar,
46
61
  Button,
47
62
  Card,
63
+ Checkbox,
48
64
  ColorPicker,
49
65
  DragSort,
50
- IconFont
66
+ IconFont,
67
+ Input,
68
+ Pagination,
69
+ Radio,
70
+ Switch
51
71
  });
@@ -0,0 +1,35 @@
1
+ import type { InputProps as AntInputProps } from 'antd5';
2
+ import { GroupProps as AntGroupProps, PasswordProps as AntPasswordProps, SearchProps as AntSearchProps, TextAreaProps as AntTextAreaProps } from 'antd5/es/input';
3
+ /**
4
+ * 后续可添加属性
5
+ */
6
+ /**
7
+ * 后续可添加属性
8
+ */
9
+ /**
10
+ * 后续可添加属性
11
+ */
12
+ /**
13
+ * 后续可添加属性
14
+ */
15
+ /**
16
+ * 后续可添加属性
17
+ */
18
+ export declare type InputProps = AntInputProps;
19
+ export declare type TextAreaProps = AntTextAreaProps;
20
+ export declare type SearchProps = AntSearchProps;
21
+ export declare type PasswordProps = AntPasswordProps;
22
+ export declare type GroupProps = AntGroupProps;
23
+ /**
24
+ * input输入框
25
+ * @param props
26
+ * @constructor
27
+ */
28
+ declare const Input: {
29
+ (props: InputProps): JSX.Element;
30
+ TextArea: (props: TextAreaProps) => JSX.Element;
31
+ Search: (props: SearchProps) => JSX.Element;
32
+ Password: (props: PasswordProps) => JSX.Element;
33
+ Group: (props: GroupProps) => JSX.Element;
34
+ };
35
+ export default Input;
@@ -0,0 +1,53 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/input/index.tsx
20
+ var input_exports = {};
21
+ __export(input_exports, {
22
+ default: () => input_default
23
+ });
24
+ module.exports = __toCommonJS(input_exports);
25
+ var import_antd5 = require("antd5");
26
+ var {
27
+ TextArea: AntTextArea,
28
+ Search: AntSearch,
29
+ Password: AntPassword,
30
+ Group: AntGroup
31
+ } = import_antd5.Input;
32
+ var Input = (props) => {
33
+ return /* @__PURE__ */ React.createElement(import_antd5.Input, { ...props });
34
+ };
35
+ var TextArea = (props) => {
36
+ return /* @__PURE__ */ React.createElement(AntTextArea, { ...props });
37
+ };
38
+ var Search = (props) => {
39
+ return /* @__PURE__ */ React.createElement(AntSearch, { ...props });
40
+ };
41
+ var Password = (props) => {
42
+ return /* @__PURE__ */ React.createElement(AntPassword, { ...props });
43
+ };
44
+ var Group = (props) => {
45
+ return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
46
+ };
47
+ Input.TextArea = TextArea;
48
+ Input.Search = Search;
49
+ Input.Password = Password;
50
+ Input.Group = Group;
51
+ var input_default = Input;
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {});
@@ -0,0 +1,10 @@
1
+ import type { PaginationProps as AntPaginationProps } from 'antd5';
2
+ import React from 'react';
3
+ export declare type PaginationProps = AntPaginationProps;
4
+ /**
5
+ * 分页
6
+ * @param props
7
+ * @constructor
8
+ */
9
+ declare const Pagination: React.FC<PaginationProps>;
10
+ export default Pagination;