@zat-design/sisyphus-react 4.5.8-beta.4 → 4.5.8-beta.6

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 (78) hide show
  1. package/dist/index.esm.css +1 -1
  2. package/dist/less.esm.css +1 -1
  3. package/es/ProAction/components/CheckModalContent/index.d.ts +1 -2
  4. package/es/ProDownload/index.d.ts +1 -2
  5. package/es/ProEditTable/components/ActionButton/index.d.ts +1 -2
  6. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
  7. package/es/ProEditTable/components/RcTable/BaseTable.js +7 -6
  8. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
  9. package/es/ProEditTable/components/RcTable/DraggableTable.js +4 -4
  10. package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
  11. package/es/ProEditTable/components/RenderField/index.js +22 -21
  12. package/es/ProEditTable/components/RenderField/tools.d.ts +7 -0
  13. package/es/ProEditTable/components/RenderField/tools.js +29 -2
  14. package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -2
  15. package/es/ProEditTable/components/Summary/index.d.ts +1 -2
  16. package/es/ProEditTable/index.d.ts +1 -1
  17. package/es/ProEditTable/index.js +44 -38
  18. package/es/ProEditTable/propsType.d.ts +6 -0
  19. package/es/ProEditTable/utils/config.d.ts +1 -2
  20. package/es/ProEditTable/utils/index.js +3 -2
  21. package/es/ProEditTable/utils/useShouldUpdateForTable.js +11 -4
  22. package/es/ProEnum/components/Group.d.ts +1 -2
  23. package/es/ProEnum/components/Tag.d.ts +1 -2
  24. package/es/ProEnum/index.d.ts +2 -3
  25. package/es/ProEnum/utils/getEnumLabel.d.ts +1 -2
  26. package/es/ProForm/components/base/Input/index.d.ts +1 -2
  27. package/es/ProForm/components/combination/FormList/components/Empty.d.ts +1 -2
  28. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  29. package/es/ProForm/hooks/useForm.d.ts +1 -1
  30. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -2
  31. package/es/ProLayout/components/ProCollapse/index.d.ts +1 -2
  32. package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
  33. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -2
  34. package/es/ProLayout/components/ProHeader/components/Describe/index.d.ts +3 -3
  35. package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
  36. package/es/ProLayout/components/ProHeader/index.js +1 -0
  37. package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +1 -2
  38. package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +1 -2
  39. package/es/ProLayout/index.d.ts +4 -4
  40. package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -2
  41. package/es/ProSelect/index.d.ts +1 -1
  42. package/es/ProStep/components/Anchor/index.d.ts +2 -2
  43. package/es/ProStep/components/Anchor/index.js +4 -3
  44. package/es/ProStep/components/Item/index.js +8 -5
  45. package/es/ProStep/components/Step/index.d.ts +6 -3
  46. package/es/ProStep/components/Step/index.js +5 -3
  47. package/es/ProStep/constants.d.ts +1 -0
  48. package/es/ProStep/constants.js +1 -0
  49. package/es/ProStep/index.js +102 -6
  50. package/es/ProStep/propsType.d.ts +12 -6
  51. package/es/ProStep/style/index.less +6 -3
  52. package/es/ProStep/utils/index.d.ts +5 -5
  53. package/es/ProStep/utils/index.js +35 -11
  54. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +1 -1
  55. package/es/ProTable/components/RenderFooter/index.d.ts +1 -2
  56. package/es/ProTable/components/RenderTableHeader/index.d.ts +1 -2
  57. package/es/ProTable/components/RenderTabs/index.d.ts +1 -1
  58. package/es/ProTable/components/TableResizable/index.d.ts +1 -2
  59. package/es/ProTabs/components/Card/index.d.ts +1 -2
  60. package/es/ProThemeTools/component/ProTools/index.d.ts +1 -2
  61. package/es/ProThemeTools/index.d.ts +1 -2
  62. package/es/ProTooltip/index.d.ts +1 -2
  63. package/es/ProTree/components/AdaptiveTooltip.d.ts +1 -2
  64. package/es/ProTree/components/CloseIcon.d.ts +1 -2
  65. package/es/ProTree/components/List.d.ts +1 -1
  66. package/es/ProTree/components/ProTree.d.ts +1 -2
  67. package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  68. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  69. package/es/ProTree/components/Tree.d.ts +2 -2
  70. package/es/ProTree/index.d.ts +1 -2
  71. package/es/ProTreeModal/components/Cascader.d.ts +1 -1
  72. package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
  73. package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
  74. package/es/ProTreeModal/components/Trigger.d.ts +1 -1
  75. package/es/ProTreeModal/components/Trigger.js +4 -2
  76. package/es/ProTreeModal/index.d.ts +1 -2
  77. package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -2
  78. package/package.json +2 -1
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const RenderTableHeader: (props: any) => import("react").JSX.Element;
1
+ declare const RenderTableHeader: (props: any) => import("react/jsx-runtime").JSX.Element;
3
2
  export default RenderTableHeader;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { ProTableTabsType } from '../../propsType';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProTableTabsType) => import("react").JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProTableTabsType) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  components: {
4
3
  header: {
@@ -7,7 +6,7 @@ declare const _default: {
7
6
  onDrag: any;
8
7
  width: number;
9
8
  minwidth?: number;
10
- }) => import("react").JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
11
10
  };
12
11
  };
13
12
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardType } from '../../propType';
3
- declare const Card: (props: CardType) => import("react").JSX.Element;
2
+ declare const Card: (props: CardType) => import("react/jsx-runtime").JSX.Element;
4
3
  export default Card;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { DevToolsPropsType } from '../../propsType';
3
- declare const ProTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => React.JSX.Element;
2
+ declare const ProTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
4
3
  export default ProTools;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import type { ProThemeToolsType } from './propsType';
3
2
  declare const ProThemeTools: {
4
- ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsType): import("react").JSX.Element;
3
+ ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsType): import("react/jsx-runtime").JSX.Element;
5
4
  setThemes: (themes: import("./utils/index").ThemesProps) => boolean;
6
5
  };
7
6
  export default ProThemeTools;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ProTooltipType } from './propsType';
3
- declare const ProTooltip: (props: ProTooltipType) => import("react").JSX.Element;
2
+ declare const ProTooltip: (props: ProTooltipType) => import("react/jsx-runtime").JSX.Element;
4
3
  export default ProTooltip;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  declare const AdaptiveTooltip: ({ children }: {
3
2
  children: any;
4
- }) => import("react").JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
5
4
  export default AdaptiveTooltip;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare function CloseIcon(props: any): import("react").JSX.Element;
1
+ declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
3
2
  export default CloseIcon;
@@ -12,6 +12,6 @@ interface ListProps {
12
12
  handleFilterClose?: (code: string) => void;
13
13
  optionRender?: (item: any, searchStr?: string) => string | ReactNode;
14
14
  }
15
- declare function List(props: ListProps): import("react").JSX.Element;
15
+ declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
16
16
  declare const _default: import("react").MemoExoticComponent<typeof List>;
17
17
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ProTreeType } from '../propsType';
3
- declare const ProTree: (props: ProTreeType) => import("react").JSX.Element;
2
+ declare const ProTree: (props: ProTreeType) => import("react/jsx-runtime").JSX.Element;
4
3
  export default ProTree;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ProTreeSelectType } from './propsType';
3
- export declare const ProTreeSelect: (props: ProTreeSelectType, ref: React.Ref<unknown> | undefined) => React.JSX.Element;
3
+ export declare const ProTreeSelect: (props: ProTreeSelectType, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.ForwardRefExoticComponent<ProTreeSelectType & React.RefAttributes<unknown>>;
5
5
  export default _default;
@@ -6,6 +6,6 @@ declare function SearchTitle(props: {
6
6
  showEllipse?: boolean;
7
7
  ellipseWidth?: string;
8
8
  otherProps?: ProFormOtherType;
9
- }): import("react").JSX.Element;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
10
  declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
11
11
  export default _default;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import type { ProTreeFieldNamesType, ProTreeType } from '../propsType';
3
3
  interface ListProps extends ProTreeType {
4
4
  disabled?: boolean;
@@ -23,5 +23,5 @@ interface ListProps extends ProTreeType {
23
23
  handleFilterClose?: (code: string, node?: any) => void;
24
24
  [key: string]: any;
25
25
  }
26
- declare function List(props: ListProps): React.JSX.Element;
26
+ declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
27
27
  export default List;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ProTreeType } from './propsType';
3
- declare const ProTreeHandle: (props: ProTreeType) => import("react").JSX.Element;
2
+ declare const ProTreeHandle: (props: ProTreeType) => import("react/jsx-runtime").JSX.Element;
4
3
  export default ProTreeHandle;
@@ -10,5 +10,5 @@ interface CascaderProps {
10
10
  handleOnChange?: (e: any, value: string) => void;
11
11
  optionRender?: (item: any, searchStr: string) => string | ReactNode;
12
12
  }
13
- declare const Cascader: (props: CascaderProps) => import("react").JSX.Element;
13
+ declare const Cascader: (props: CascaderProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export default Cascader;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare function CloseIcon(props: any): import("react").JSX.Element;
1
+ declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
3
2
  export default CloseIcon;
@@ -2,6 +2,6 @@
2
2
  declare function SearchTitle(props: {
3
3
  searchStr: string;
4
4
  label: string;
5
- }): import("react").JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
6
  declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
7
7
  export default _default;
@@ -17,5 +17,5 @@ interface TriggerProps {
17
17
  handleClearAll: () => void;
18
18
  appointChange: (appoint?: boolean) => void;
19
19
  }
20
- declare function Trigger(props: TriggerProps): import("react").JSX.Element;
20
+ declare function Trigger(props: TriggerProps): import("react/jsx-runtime").JSX.Element;
21
21
  export default Trigger;
@@ -6,7 +6,7 @@ import { ReactSVG } from 'react-svg';
6
6
  import { useSetState } from 'ahooks';
7
7
  import locale, { formatMessage } from "../../locale";
8
8
  import viewSvg from "../../assets/view.svg";
9
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
10
10
  function Trigger(props) {
11
11
  const {
12
12
  value,
@@ -116,7 +116,9 @@ function Trigger(props) {
116
116
  }), props.children]
117
117
  });
118
118
  }
119
- return props.children;
119
+ return /*#__PURE__*/_jsx(_Fragment, {
120
+ children: props.children
121
+ });
120
122
  };
121
123
 
122
124
  // 构建 Input 的基础属性
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import type { ProTreeModalType } from './propsType';
3
2
  export declare const CASCADER = "CASCADER";
4
- declare const ProTreeModal: (props: ProTreeModalType) => React.JSX.Element;
3
+ declare const ProTreeModal: (props: ProTreeModalType) => import("react/jsx-runtime").JSX.Element;
5
4
  export default ProTreeModal;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
1
  import type { DraggableUploadListItemType } from '../propsType';
3
- export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemType) => React.JSX.Element;
2
+ export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemType) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "4.5.8-beta.4",
3
+ "version": "4.5.8-beta.6",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -148,6 +148,7 @@
148
148
  "antd": "^6.1.3",
149
149
  "babel-plugin-import": "^1.13.8",
150
150
  "babel-plugin-lodash": "^3.3.4",
151
+ "babel-preset-current-node-syntax": "1.0.1",
151
152
  "cross-env": "^7.0.3",
152
153
  "dumi": "^1.1.54",
153
154
  "eslint": "^8.57.0",