@pisell/common 0.0.15-0 → 0.0.16

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 (100) hide show
  1. package/es/business-components/colorInput/index.js +29 -25
  2. package/es/business-components/rechargeOption/index.js +72 -55
  3. package/es/business-components/selectTag/index.d.ts +1 -1
  4. package/es/business-components/selectTag/index.js +44 -36
  5. package/es/business-components/sortModal/index.d.ts +1 -1
  6. package/es/business-components/sortModal/index.js +19 -14
  7. package/es/business-components/statistics/index.js +23 -17
  8. package/es/business-components/tagModal/index.d.ts +1 -1
  9. package/es/business-components/tagModal/index.js +16 -12
  10. package/es/business-hooks/useModal/index.d.ts +1 -1
  11. package/es/business-hooks/useModal/index.js +11 -4
  12. package/es/business-hooks/useTagModal/index.d.ts +1 -2
  13. package/es/business-hooks/useTagModal/index.js +16 -12
  14. package/es/components/ColorPicker/index.js +6 -4
  15. package/es/components/DragSort/index.d.ts +1 -2
  16. package/es/components/DragSort/index.js +39 -28
  17. package/es/components/EditorPreview/index.d.ts +1 -1
  18. package/es/components/EditorPreview/index.js +8 -3
  19. package/es/components/Iconfont/index.js +8 -2
  20. package/es/components/agreement/Detail/index.d.ts +2 -2
  21. package/es/components/agreement/Detail/index.js +15 -12
  22. package/es/components/agreement/index.js +18 -14
  23. package/es/components/avatar/index.js +8 -2
  24. package/es/components/button/index.d.ts +2 -3
  25. package/es/components/button/index.js +9 -3
  26. package/es/components/card/index.d.ts +1 -1
  27. package/es/components/card/index.js +11 -5
  28. package/es/components/checkbox/index.d.ts +2 -3
  29. package/es/components/checkbox/index.js +9 -3
  30. package/es/components/datePicker/index.d.ts +1 -2
  31. package/es/components/datePicker/index.js +8 -2
  32. package/es/components/index.d.ts +1 -1
  33. package/es/components/input/index.d.ts +5 -6
  34. package/es/components/input/index.js +12 -6
  35. package/es/components/inputNumber/index.d.ts +1 -2
  36. package/es/components/inputNumber/index.js +8 -2
  37. package/es/components/pagination/index.js +8 -1
  38. package/es/components/radio/index.d.ts +2 -3
  39. package/es/components/radio/index.js +9 -3
  40. package/es/components/select/index.d.ts +6 -2
  41. package/es/components/select/index.js +13 -2
  42. package/es/components/switch/index.js +8 -1
  43. package/es/hooks/useTableModal/index.d.ts +1 -1
  44. package/es/hooks/useTableModal/index.js +5 -2
  45. package/lib/business-components/selectTag/index.d.ts +1 -1
  46. package/lib/business-components/sortModal/index.d.ts +1 -1
  47. package/lib/business-components/tagModal/index.d.ts +1 -1
  48. package/lib/business-hooks/useModal/index.d.ts +1 -1
  49. package/lib/business-hooks/useTagModal/index.d.ts +1 -2
  50. package/lib/components/DragSort/index.d.ts +1 -2
  51. package/lib/components/DragSort/index.js +5 -6
  52. package/lib/components/EditorPreview/index.d.ts +1 -1
  53. package/lib/components/EditorPreview/index.js +1 -12
  54. package/lib/components/agreement/Detail/index.d.ts +2 -2
  55. package/lib/components/agreement/Detail/index.js +2 -2
  56. package/lib/components/button/index.d.ts +2 -3
  57. package/lib/components/button/index.js +2 -13
  58. package/lib/components/card/index.d.ts +1 -1
  59. package/lib/components/card/index.js +1 -2
  60. package/lib/components/checkbox/index.d.ts +2 -3
  61. package/lib/components/checkbox/index.js +2 -13
  62. package/lib/components/datePicker/index.d.ts +1 -2
  63. package/lib/components/datePicker/index.js +1 -12
  64. package/lib/components/index.d.ts +1 -1
  65. package/lib/components/input/index.d.ts +5 -6
  66. package/lib/components/input/index.js +5 -16
  67. package/lib/components/inputNumber/index.d.ts +1 -2
  68. package/lib/components/inputNumber/index.js +1 -12
  69. package/lib/components/radio/index.d.ts +2 -3
  70. package/lib/components/radio/index.js +2 -13
  71. package/lib/components/select/index.d.ts +6 -2
  72. package/lib/components/select/index.js +6 -12
  73. package/lib/hooks/useTableModal/index.d.ts +1 -1
  74. package/package.json +7 -16
  75. package/build/lowcode/assets-daily.json +0 -67
  76. package/build/lowcode/assets-dev.json +0 -67
  77. package/build/lowcode/assets-prod.json +0 -67
  78. package/build/lowcode/designer.html +0 -302
  79. package/build/lowcode/index.html +0 -304
  80. package/build/lowcode/index.js +0 -1
  81. package/build/lowcode/meta.js +0 -1
  82. package/build/lowcode/preview.css +0 -1
  83. package/build/lowcode/preview.html +0 -33
  84. package/build/lowcode/preview.js +0 -27
  85. package/build/lowcode/render/default/view.js +0 -20
  86. package/build/lowcode/view.js +0 -20
  87. package/es/lowcode/button/index.d.ts +0 -5
  88. package/es/lowcode/button/index.js +0 -6
  89. package/es/lowcode/checkbox/index.d.ts +0 -10
  90. package/es/lowcode/checkbox/index.js +0 -11
  91. package/es/lowcode/index.d.ts +0 -4
  92. package/es/lowcode/index.js +0 -2
  93. package/lib/lowcode/button/index.d.ts +0 -5
  94. package/lib/lowcode/button/index.js +0 -42
  95. package/lib/lowcode/checkbox/index.d.ts +0 -10
  96. package/lib/lowcode/checkbox/index.js +0 -42
  97. package/lib/lowcode/index.d.ts +0 -4
  98. package/lib/lowcode/index.js +0 -42
  99. package/lowcode/button/meta.ts +0 -324
  100. package/lowcode/checkbox/meta.ts +0 -92
@@ -1,11 +1,17 @@
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); }
1
7
  import { InputNumber as AntInputNumber } from 'antd5';
2
- import React from 'react';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
3
9
  /**
4
10
  * 数字输入框
5
11
  * @param props
6
12
  * @constructor
7
13
  */
8
14
  var InputNumber = function InputNumber(props) {
9
- return /*#__PURE__*/React.createElement(AntInputNumber, props);
15
+ return /*#__PURE__*/_jsx(AntInputNumber, _objectSpread({}, props));
10
16
  };
11
17
  export default InputNumber;
@@ -1,11 +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); }
1
7
  import { Pagination as AntPagination } from 'antd5';
2
8
  import React from 'react';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
3
10
  /**
4
11
  * 分页
5
12
  * @param props
6
13
  * @constructor
7
14
  */
8
15
  var Pagination = function Pagination(props) {
9
- return /*#__PURE__*/React.createElement(AntPagination, props);
16
+ return /*#__PURE__*/_jsx(AntPagination, _objectSpread({}, props));
10
17
  };
11
18
  export default Pagination;
@@ -1,5 +1,4 @@
1
1
  import type { RadioGroupProps as AntRadioGroupProps, RadioProps as AntRadioProps } from 'antd5';
2
- import React from 'react';
3
2
  export declare type RadioGroupProps = AntRadioGroupProps;
4
3
  export declare type RadioProps = AntRadioProps;
5
4
  /**
@@ -8,7 +7,7 @@ export declare type RadioProps = AntRadioProps;
8
7
  * @constructor
9
8
  */
10
9
  declare const Radio: {
11
- (props: RadioProps): React.JSX.Element;
12
- Group: (props: RadioGroupProps) => React.JSX.Element;
10
+ (props: RadioProps): import("react/jsx-runtime").JSX.Element;
11
+ Group: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
13
12
  };
14
13
  export default Radio;
@@ -1,5 +1,11 @@
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); }
1
7
  import { Radio as AntRadio } from 'antd5';
2
- import React from 'react';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
3
9
  var AntGroup = AntRadio.Group;
4
10
  /**
5
11
  * 单选框
@@ -7,7 +13,7 @@ var AntGroup = AntRadio.Group;
7
13
  * @constructor
8
14
  */
9
15
  var Radio = function Radio(props) {
10
- return /*#__PURE__*/React.createElement(AntRadio, props);
16
+ return /*#__PURE__*/_jsx(AntRadio, _objectSpread({}, props));
11
17
  };
12
18
 
13
19
  /**
@@ -16,7 +22,7 @@ var Radio = function Radio(props) {
16
22
  * @constructor
17
23
  */
18
24
  var Group = function Group(props) {
19
- return /*#__PURE__*/React.createElement(AntGroup, props);
25
+ return /*#__PURE__*/_jsx(AntGroup, _objectSpread({}, props));
20
26
  };
21
27
  Radio.Group = Group;
22
28
  export default Radio;
@@ -1,5 +1,9 @@
1
1
  import type { SelectProps as AntSelectProps } from 'antd5';
2
- import React from 'react';
2
+ import { OptionProps as AntOptionProps } from 'rc-select/es/Option';
3
3
  export declare type SelectProps = AntSelectProps;
4
- declare const Select: (props: SelectProps) => React.JSX.Element;
4
+ export declare type SelectOptionProps = AntOptionProps;
5
+ declare const Select: {
6
+ (props: SelectProps): import("react/jsx-runtime").JSX.Element;
7
+ Option: (props: AntOptionProps) => import("react/jsx-runtime").JSX.Element;
8
+ };
5
9
  export default Select;
@@ -1,6 +1,17 @@
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); }
1
7
  import { Select as AntSelect } from 'antd5';
2
- import React from 'react';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ var AntOption = AntSelect.Option;
10
+ var Option = function Option(props) {
11
+ return /*#__PURE__*/_jsx(AntOption, _objectSpread({}, props));
12
+ };
3
13
  var Select = function Select(props) {
4
- return /*#__PURE__*/React.createElement(AntSelect, props);
14
+ return /*#__PURE__*/_jsx(AntSelect, _objectSpread({}, props));
5
15
  };
16
+ Select.Option = Option;
6
17
  export default Select;
@@ -1,11 +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); }
1
7
  import { Switch as AntSwitch } from 'antd5';
2
8
  import React from 'react';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
3
10
  /**
4
11
  * 开关
5
12
  * @param props
6
13
  * @constructor
7
14
  */
8
15
  var Switch = function Switch(props) {
9
- return /*#__PURE__*/React.createElement(AntSwitch, props);
16
+ return /*#__PURE__*/_jsx(AntSwitch, _objectSpread({}, props));
10
17
  };
11
18
  export default Switch;
@@ -8,5 +8,5 @@ interface useModalProps {
8
8
  children: React.ReactNode;
9
9
  title: React.ReactNode;
10
10
  }
11
- declare const useTableModal: (props: Partial<useModalProps>) => React.JSX.Element;
11
+ declare const useTableModal: (props: Partial<useModalProps>) => import("react/jsx-runtime").JSX.Element;
12
12
  export default useTableModal;
@@ -13,10 +13,13 @@ import useModal from "../../business-hooks/useModal";
13
13
  * @Describe: 其余参数与Modal一致
14
14
  * @Author: Wzw
15
15
  */
16
-
16
+ import { Fragment as _Fragment } from "react/jsx-runtime";
17
+ import { jsx as _jsx } from "react/jsx-runtime";
17
18
  var useTableModal = function useTableModal(props) {
18
19
  var _useModal = useModal({}),
19
20
  content = _useModal.content;
20
- return /*#__PURE__*/React.createElement(React.Fragment, null, content);
21
+ return /*#__PURE__*/_jsx(_Fragment, {
22
+ children: content
23
+ });
21
24
  };
22
25
  export default useTableModal;
@@ -21,5 +21,5 @@ export interface SelectTagProps<T> extends Omit<SelectProps, 'options'> {
21
21
  label: string;
22
22
  }[];
23
23
  }
24
- declare const SelectTag: <T extends Value>(props: SelectTagProps<T>) => React.JSX.Element;
24
+ declare const SelectTag: <T extends Value>(props: SelectTagProps<T>) => import("react/jsx-runtime").JSX.Element;
25
25
  export default SelectTag;
@@ -26,5 +26,5 @@ export interface SortModalProps<T> {
26
26
  hideModal: () => void;
27
27
  }>;
28
28
  }
29
- declare const SortModal: <T extends Record<string, any>>(props: SortModalProps<T>) => React.JSX.Element;
29
+ declare const SortModal: <T extends Record<string, any>>(props: SortModalProps<T>) => import("react/jsx-runtime").JSX.Element;
30
30
  export default SortModal;
@@ -13,5 +13,5 @@ export interface TagModalProps<T> extends useModalProps {
13
13
  hideModal: () => void;
14
14
  }>;
15
15
  }
16
- declare const TagModal: <T extends string | number>(props: TagModalProps<T>) => React.JSX.Element;
16
+ declare const TagModal: <T extends string | number>(props: TagModalProps<T>) => import("react/jsx-runtime").JSX.Element;
17
17
  export default TagModal;
@@ -26,6 +26,6 @@ declare const useModal: (props: Partial<useModalProps>) => {
26
26
  showModal: () => void;
27
27
  hideModal: () => void;
28
28
  visible: boolean;
29
- content: React.JSX.Element;
29
+ content: import("react/jsx-runtime").JSX.Element;
30
30
  };
31
31
  export default useModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { useModalProps } from '../useModal';
3
2
  export interface TagDataType<T> {
4
3
  value: T;
@@ -13,6 +12,6 @@ declare const useTagModal: <T extends string | number>(props: UseTagModalProps<T
13
12
  showModal: () => void;
14
13
  hideModal: () => void;
15
14
  visible: boolean;
16
- content: import("react").JSX.Element;
15
+ content: import("react/jsx-runtime").JSX.Element;
17
16
  };
18
17
  export default useTagModal;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const DragDrop: ({ onChange, children, list, droppableId, draggableIdKey, droppableClassName, draggableClassName, footer, direction, isDragDisabled, }: any) => React.JSX.Element;
1
+ declare const DragDrop: ({ onChange, children, list, droppableId, draggableIdKey, droppableClassName, draggableClassName, footer, direction, isDragDisabled, }: any) => import("react/jsx-runtime").JSX.Element;
3
2
  export default DragDrop;
@@ -32,10 +32,9 @@ __export(DragSort_exports, {
32
32
  default: () => DragSort_default
33
33
  });
34
34
  module.exports = __toCommonJS(DragSort_exports);
35
+ var import_react_beautiful_dnd = require("react-beautiful-dnd");
35
36
  var import_array_move = __toESM(require("array-move"));
36
37
  var import_classnames = __toESM(require("classnames"));
37
- var import_react = __toESM(require("react"));
38
- var import_react_beautiful_dnd = require("react-beautiful-dnd");
39
38
  var import_utils = require("../../utils");
40
39
  var DragDrop = ({
41
40
  onChange,
@@ -49,7 +48,7 @@ var DragDrop = ({
49
48
  direction = "vertical",
50
49
  isDragDisabled
51
50
  }) => {
52
- const newDroppableId = droppableId || (0, import_utils.getUniqueId)("droppableId_");
51
+ droppableId = droppableId || (0, import_utils.getUniqueId)("droppableId_");
53
52
  const handleDragEnd = (result) => {
54
53
  if (result.destination) {
55
54
  onChange && onChange(
@@ -65,14 +64,14 @@ var DragDrop = ({
65
64
  return draggableIdKey ? String(item[draggableIdKey]) : String(item);
66
65
  }
67
66
  };
68
- return /* @__PURE__ */ import_react.default.createElement(import_react_beautiful_dnd.DragDropContext, { onDragEnd: handleDragEnd }, /* @__PURE__ */ import_react.default.createElement(import_react_beautiful_dnd.Droppable, { droppableId: newDroppableId, direction }, (provided) => /* @__PURE__ */ import_react.default.createElement(
67
+ return /* @__PURE__ */ React.createElement(import_react_beautiful_dnd.DragDropContext, { onDragEnd: handleDragEnd }, /* @__PURE__ */ React.createElement(import_react_beautiful_dnd.Droppable, { droppableId, direction }, (provided) => /* @__PURE__ */ React.createElement(
69
68
  "div",
70
69
  {
71
70
  ...provided.droppableProps,
72
71
  ref: provided.innerRef,
73
72
  className: (0, import_classnames.default)(droppableClassName)
74
73
  },
75
- list.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
74
+ list.map((item, index) => /* @__PURE__ */ React.createElement(
76
75
  import_react_beautiful_dnd.Draggable,
77
76
  {
78
77
  key: getDraggableId(item, index),
@@ -80,7 +79,7 @@ var DragDrop = ({
80
79
  index,
81
80
  isDragDisabled: !!isDragDisabled
82
81
  },
83
- (provided2) => /* @__PURE__ */ import_react.default.createElement(
82
+ (provided2) => /* @__PURE__ */ React.createElement(
84
83
  "div",
85
84
  {
86
85
  className: (0, import_classnames.default)(
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import './index.less';
3
3
  declare type EditorPreivewProps = React.HTMLAttributes<any>;
4
4
  declare const EditorPreivew: React.FC<EditorPreivewProps>;
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
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
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
 
29
19
  // src/components/EditorPreview/index.tsx
@@ -32,10 +22,9 @@ __export(EditorPreview_exports, {
32
22
  default: () => EditorPreview_default
33
23
  });
34
24
  module.exports = __toCommonJS(EditorPreview_exports);
35
- var import_react = __toESM(require("react"));
36
25
  var import_index = require("./index.less");
37
26
  var EditorPreivew = (props) => {
38
- return /* @__PURE__ */ import_react.default.createElement(
27
+ return /* @__PURE__ */ React.createElement(
39
28
  "div",
40
29
  {
41
30
  ...props,
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
1
+ /// <reference types="react" />
2
+ declare const _default: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
3
3
  export default _default;
@@ -34,7 +34,7 @@ __export(Detail_exports, {
34
34
  module.exports = __toCommonJS(Detail_exports);
35
35
  var import_ahooks = require("ahooks");
36
36
  var import_antd5 = require("antd5");
37
- var import_react = __toESM(require("react"));
37
+ var import_react = require("react");
38
38
  var import_business_hooks = require("../../../business-hooks");
39
39
  var import_EditorPreview = __toESM(require("../../EditorPreview"));
40
40
  var import_serve = require("./serve");
@@ -59,7 +59,7 @@ var AgreementDetail = ({}, ref) => {
59
59
  }, [data, current]);
60
60
  const { showModal, content } = (0, import_business_hooks.useModal)({
61
61
  title: detail.title,
62
- children: /* @__PURE__ */ import_react.default.createElement(import_antd5.Spin, { spinning: _getPolicyDetail.loading }, /* @__PURE__ */ import_react.default.createElement("div", { style: { minHeight: 400 } }, /* @__PURE__ */ import_react.default.createElement(
62
+ children: /* @__PURE__ */ React.createElement(import_antd5.Spin, { spinning: _getPolicyDetail.loading }, /* @__PURE__ */ React.createElement("div", { style: { minHeight: 400 } }, /* @__PURE__ */ React.createElement(
63
63
  import_EditorPreview.default,
64
64
  {
65
65
  dangerouslySetInnerHTML: {
@@ -1,6 +1,5 @@
1
1
  import type { ButtonProps as AntButtonProps } from 'antd5';
2
2
  import type { ButtonGroupProps as AntButtonGroupProps } from 'antd5/es/button';
3
- import React from 'react';
4
3
  /**
5
4
  * 后续可添加属性
6
5
  */
@@ -12,7 +11,7 @@ export declare type ButtonGroupProps = AntButtonGroupProps;
12
11
  * @constructor
13
12
  */
14
13
  declare const Button: {
15
- (props: ButtonProps): React.JSX.Element;
16
- Group: (props: ButtonGroupProps) => React.JSX.Element;
14
+ (props: ButtonProps): import("react/jsx-runtime").JSX.Element;
15
+ Group: (props: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
17
16
  };
18
17
  export default Button;
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
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
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
 
29
19
  // src/components/button/index.tsx
@@ -33,13 +23,12 @@ __export(button_exports, {
33
23
  });
34
24
  module.exports = __toCommonJS(button_exports);
35
25
  var import_antd5 = require("antd5");
36
- var import_react = __toESM(require("react"));
37
26
  var { Group: AntGroup } = import_antd5.Button;
38
27
  var Button = (props) => {
39
- return /* @__PURE__ */ import_react.default.createElement(import_antd5.Button, { ...props });
28
+ return /* @__PURE__ */ React.createElement(import_antd5.Button, { ...props });
40
29
  };
41
30
  var Group = (props) => {
42
- return /* @__PURE__ */ import_react.default.createElement(AntGroup, { ...props });
31
+ return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
43
32
  };
44
33
  Button.Group = Group;
45
34
  var button_default = Button;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import './index.less';
3
3
  export declare type CardProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
4
4
  declare const Card: React.FC<Partial<CardProps>>;
@@ -33,10 +33,9 @@ __export(card_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(card_exports);
35
35
  var import_classnames = __toESM(require("classnames"));
36
- var import_react = __toESM(require("react"));
37
36
  var import_index = require("./index.less");
38
37
  var Card = (props) => {
39
- return /* @__PURE__ */ import_react.default.createElement("div", { ...props, className: (0, import_classnames.default)("pisell-card", props.className) }, props.children);
38
+ return /* @__PURE__ */ React.createElement("div", { ...props, className: (0, import_classnames.default)("pisell-card", props.className) }, props.children);
40
39
  };
41
40
  var card_default = Card;
42
41
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,5 @@
1
1
  import type { CheckboxGroupProps as AntCheckboxGroupProps } from 'antd/es/checkbox';
2
2
  import type { CheckboxProps as AntCheckboxProps } from 'antd5';
3
- import React from 'react';
4
3
  /**
5
4
  * 后续可添加属性
6
5
  */
@@ -15,7 +14,7 @@ export declare type CheckboxGroupProps = AntCheckboxGroupProps;
15
14
  * @constructor
16
15
  */
17
16
  declare const Checkbox: {
18
- (props: CheckboxProps): React.JSX.Element;
19
- Group: (props: AntCheckboxGroupProps) => React.JSX.Element;
17
+ (props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
18
+ Group: (props: AntCheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
20
19
  };
21
20
  export default Checkbox;
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
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
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
 
29
19
  // src/components/checkbox/index.tsx
@@ -33,13 +23,12 @@ __export(checkbox_exports, {
33
23
  });
34
24
  module.exports = __toCommonJS(checkbox_exports);
35
25
  var import_antd5 = require("antd5");
36
- var import_react = __toESM(require("react"));
37
26
  var { Group: AntGroup } = import_antd5.Checkbox;
38
27
  var Checkbox = (props) => {
39
- return /* @__PURE__ */ import_react.default.createElement(import_antd5.Checkbox, { ...props });
28
+ return /* @__PURE__ */ React.createElement(import_antd5.Checkbox, { ...props });
40
29
  };
41
30
  var Group = (props) => {
42
- return /* @__PURE__ */ import_react.default.createElement(AntGroup, { ...props });
31
+ return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
43
32
  };
44
33
  Checkbox.Group = Group;
45
34
  var checkbox_default = Checkbox;
@@ -1,10 +1,9 @@
1
1
  import { DatePickerProps as AntDatePickerProps } from 'antd5';
2
- import React from 'react';
3
2
  export declare type DatePickerProps = AntDatePickerProps;
4
3
  /**
5
4
  * 日期选择框
6
5
  * @param props
7
6
  * @constructor
8
7
  */
9
- declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
8
+ declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export default DatePicker;
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
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
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
 
29
19
  // src/components/datePicker/index.tsx
@@ -33,9 +23,8 @@ __export(datePicker_exports, {
33
23
  });
34
24
  module.exports = __toCommonJS(datePicker_exports);
35
25
  var import_antd5 = require("antd5");
36
- var import_react = __toESM(require("react"));
37
26
  var DatePicker = (props) => {
38
- return /* @__PURE__ */ import_react.default.createElement(import_antd5.DatePicker, { ...props });
27
+ return /* @__PURE__ */ React.createElement(import_antd5.DatePicker, { ...props });
39
28
  };
40
29
  var datePicker_default = DatePicker;
41
30
  // Annotate the CommonJS export names for ESM import in node:
@@ -25,6 +25,6 @@ export type { PaginationProps } from './pagination';
25
25
  export { default as Radio } from './radio';
26
26
  export type { RadioGroupProps, RadioProps } from './radio';
27
27
  export { default as Select } from './select';
28
- export type { SelectProps } from './select';
28
+ export type { SelectOptionProps, SelectProps } from './select';
29
29
  export { default as Switch } from './switch';
30
30
  export type { SwitchProps } from './switch';
@@ -1,6 +1,5 @@
1
1
  import type { InputProps as AntInputProps } from 'antd5';
2
2
  import { GroupProps as AntGroupProps, PasswordProps as AntPasswordProps, SearchProps as AntSearchProps, TextAreaProps as AntTextAreaProps } from 'antd5/es/input';
3
- import React from 'react';
4
3
  /**
5
4
  * 后续可添加属性
6
5
  */
@@ -27,10 +26,10 @@ export declare type GroupProps = AntGroupProps;
27
26
  * @constructor
28
27
  */
29
28
  declare const Input: {
30
- (props: InputProps): React.JSX.Element;
31
- TextArea: (props: TextAreaProps) => React.JSX.Element;
32
- Search: (props: SearchProps) => React.JSX.Element;
33
- Password: (props: PasswordProps) => React.JSX.Element;
34
- Group: (props: GroupProps) => React.JSX.Element;
29
+ (props: InputProps): import("react/jsx-runtime").JSX.Element;
30
+ TextArea: (props: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
31
+ Search: (props: SearchProps) => import("react/jsx-runtime").JSX.Element;
32
+ Password: (props: PasswordProps) => import("react/jsx-runtime").JSX.Element;
33
+ Group: (props: GroupProps) => import("react/jsx-runtime").JSX.Element;
35
34
  };
36
35
  export default Input;
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
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
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
 
29
19
  // src/components/input/index.tsx
@@ -33,7 +23,6 @@ __export(input_exports, {
33
23
  });
34
24
  module.exports = __toCommonJS(input_exports);
35
25
  var import_antd5 = require("antd5");
36
- var import_react = __toESM(require("react"));
37
26
  var {
38
27
  TextArea: AntTextArea,
39
28
  Search: AntSearch,
@@ -41,19 +30,19 @@ var {
41
30
  Group: AntGroup
42
31
  } = import_antd5.Input;
43
32
  var Input = (props) => {
44
- return /* @__PURE__ */ import_react.default.createElement(import_antd5.Input, { ...props });
33
+ return /* @__PURE__ */ React.createElement(import_antd5.Input, { ...props });
45
34
  };
46
35
  var TextArea = (props) => {
47
- return /* @__PURE__ */ import_react.default.createElement(AntTextArea, { ...props });
36
+ return /* @__PURE__ */ React.createElement(AntTextArea, { ...props });
48
37
  };
49
38
  var Search = (props) => {
50
- return /* @__PURE__ */ import_react.default.createElement(AntSearch, { ...props });
39
+ return /* @__PURE__ */ React.createElement(AntSearch, { ...props });
51
40
  };
52
41
  var Password = (props) => {
53
- return /* @__PURE__ */ import_react.default.createElement(AntPassword, { ...props });
42
+ return /* @__PURE__ */ React.createElement(AntPassword, { ...props });
54
43
  };
55
44
  var Group = (props) => {
56
- return /* @__PURE__ */ import_react.default.createElement(AntGroup, { ...props });
45
+ return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
57
46
  };
58
47
  Input.TextArea = TextArea;
59
48
  Input.Search = Search;