@zat-design/sisyphus-react 4.2.0-beta.4 → 4.2.0-beta.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.
@@ -75,42 +75,31 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
75
75
  confirm?: boolean | import("antd").ModalFuncProps | import("../../../render/propsType").FunctionArgs<any, boolean | import("antd").ModalFuncProps>;
76
76
  show?: boolean | ReactiveFunction<any, boolean>;
77
77
  component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
78
+ trim?: boolean;
79
+ normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
78
80
  children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
79
- status?: "" | "warning" | "error" | "success" | "validating";
80
- isView?: boolean;
81
- id?: string;
82
- prefixCls?: string;
83
81
  className?: string;
84
82
  style?: React.CSSProperties;
83
+ prefixCls?: string;
84
+ trigger?: string;
85
+ id?: string;
86
+ isView?: boolean;
85
87
  rootClassName?: string;
86
- getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
87
- trim?: boolean;
88
- normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
89
- vertical?: boolean;
90
- valueType?: import("../../../render/propsType").ProFormValueType;
91
88
  hidden?: boolean;
92
- trigger?: string;
93
- viewRender?: (value: any, record: any, { form, index, namePath, }: {
94
- [key: string]: any;
95
- form: FormInstance<any>;
96
- index?: number;
97
- }) => string | React.ReactElement<any, any>;
98
- desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
99
89
  onReset?: () => void;
100
- viewType?: import("../../../render/propsType").ViewType;
90
+ status?: "" | "warning" | "error" | "success" | "validating";
91
+ vertical?: boolean;
101
92
  validateTrigger?: string | false | string[];
102
93
  preserve?: boolean;
103
- clearNotShow?: boolean;
104
- labelAlign?: import("antd/es/form/interface").FormLabelAlign;
94
+ htmlFor?: string;
105
95
  colon?: boolean;
106
- layout?: import("antd/es/form/Form").FormItemLayout;
96
+ labelAlign?: import("antd/es/form/interface").FormLabelAlign;
107
97
  labelCol?: import("antd").ColProps;
108
- wrapperCol?: import("antd").ColProps;
109
- htmlFor?: string;
110
98
  getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
111
99
  shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
112
100
  validateDebounce?: number;
113
101
  valuePropName?: string;
102
+ getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
114
103
  messageVariables?: Record<string, string>;
115
104
  initialValue?: any;
116
105
  onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
@@ -121,12 +110,23 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
121
110
  icons: import("antd/es/form/FormItem").FeedbackIcons;
122
111
  };
123
112
  validateStatus?: "" | "warning" | "error" | "success" | "validating";
113
+ layout?: import("antd/es/form/Form").FormItemLayout;
114
+ wrapperCol?: import("antd").ColProps;
124
115
  help?: React.ReactNode;
125
116
  fieldId?: string;
117
+ valueType?: import("../../../render/propsType").ProFormValueType;
126
118
  switchValue?: [any, any];
119
+ viewRender?: (value: any, record: any, { form, index, namePath, }: {
120
+ [key: string]: any;
121
+ form: FormInstance<any>;
122
+ index?: number;
123
+ }) => string | React.ReactElement<any, any>;
124
+ viewType?: import("../../../render/propsType").ViewType;
127
125
  upperCase?: boolean;
128
126
  toISOString?: boolean;
129
127
  toCSTString?: boolean;
128
+ clearNotShow?: boolean;
129
+ desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
130
130
  name: any;
131
131
  dependencies: any[];
132
132
  tooltip: string | {
@@ -141,7 +141,7 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
141
141
  * 创建组件属性
142
142
  */
143
143
  export declare const createComponentProps: (column: FlexibleGroupColumnType, formItemProps: any) => {
144
- componentProps: import("lodash").Omit<any, "valueType" | "format" | "precision" | "clearNotShow" | "switchValue" | "dependNames" | "toISOString" | "toCSTString">;
144
+ componentProps: import("lodash").Omit<any, "format" | "valueType" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow" | "precision">;
145
145
  formItemTransform: {
146
146
  getValueProps: any;
147
147
  normalize: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "4.2.0-beta.4",
3
+ "version": "4.2.0-beta.7",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "es",
@@ -10,6 +10,18 @@
10
10
  "main": "es/index.js",
11
11
  "module": "es/index.js",
12
12
  "typings": "es/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./es/index.js",
16
+ "default": "./es/index.js"
17
+ },
18
+ "./tokens": {
19
+ "import": "./es/tokens.js",
20
+ "default": "./es/tokens.js"
21
+ },
22
+ "./es/*": "./es/*",
23
+ "./dist/*": "./dist/*"
24
+ },
13
25
  "sideEffects": [
14
26
  "./src/global.less",
15
27
  "./es/global.less",
@@ -54,7 +66,7 @@
54
66
  "lint:report": "eslint --ext .jsx,.js src -f checkstyle -o report_zacc_eslint_js.xml & exit 0; stylelint --custom-formatter node_modules/stylelint-checkstyle-formatter src/**/*.{css,scss,less} > report_zacc_stylelint_css.xml & exit 0",
55
67
  "lint:style": "stylelint --fix \"src/**/*.less\"",
56
68
  "precommit": "lint-staged",
57
- "prepare": "husky",
69
+ "prepare": "husky && patch-package",
58
70
  "prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
59
71
  "postpublish": "git clean -fd",
60
72
  "release": "yarn build && npm publish",
@@ -87,14 +99,16 @@
87
99
  "react-docgen-typescript-dumi-tmp": {
88
100
  "typescript": "^4.9.5"
89
101
  },
90
- "esbuild": "0.21.4"
102
+ "esbuild": "0.21.4",
103
+ "@umijs/bundler-utils": "^4.6.35"
91
104
  },
92
105
  "resolutions": {
93
106
  "react-resizable/react-draggable": "<4.5.0",
94
107
  "@ant-design/icons": "^6.1.0",
95
108
  "@babel/core": "^7.26.0",
96
109
  "react-docgen-typescript-dumi-tmp/typescript": "^4.9.5",
97
- "esbuild": "0.21.4"
110
+ "esbuild": "0.21.4",
111
+ "@umijs/bundler-utils": "^4.6.35"
98
112
  },
99
113
  "dependencies": {
100
114
  "@dnd-kit/core": "^6.0.8",
@@ -157,6 +171,7 @@
157
171
  "mini-css-extract-plugin": "^2.9.4",
158
172
  "minimatch": "^9.0.5",
159
173
  "mockjs": "^1.0.0",
174
+ "patch-package": "^8.0.1",
160
175
  "postcss-less": "^6.0.0",
161
176
  "prettier": "^3.3.0",
162
177
  "react": "19.2.4",