@zat-design/sisyphus-react 4.2.0-beta.4 → 4.2.0-beta.5

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.
@@ -76,28 +76,21 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
76
76
  show?: boolean | ReactiveFunction<any, boolean>;
77
77
  component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
78
78
  children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
79
- status?: "" | "warning" | "error" | "success" | "validating";
80
- isView?: boolean;
81
- id?: string;
79
+ style?: React.CSSProperties;
82
80
  prefixCls?: string;
81
+ trigger?: string;
82
+ id?: string;
83
+ trim?: boolean;
84
+ normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
83
85
  className?: string;
84
- style?: React.CSSProperties;
86
+ isView?: boolean;
85
87
  rootClassName?: string;
88
+ status?: "" | "warning" | "error" | "success" | "validating";
86
89
  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
90
  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
91
  onReset?: () => void;
100
- viewType?: import("../../../render/propsType").ViewType;
92
+ vertical?: boolean;
93
+ desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
101
94
  validateTrigger?: string | false | string[];
102
95
  preserve?: boolean;
103
96
  clearNotShow?: boolean;
@@ -123,7 +116,14 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
123
116
  validateStatus?: "" | "warning" | "error" | "success" | "validating";
124
117
  help?: React.ReactNode;
125
118
  fieldId?: string;
119
+ valueType?: import("../../../render/propsType").ProFormValueType;
126
120
  switchValue?: [any, any];
121
+ viewRender?: (value: any, record: any, { form, index, namePath, }: {
122
+ [key: string]: any;
123
+ form: FormInstance<any>;
124
+ index?: number;
125
+ }) => string | React.ReactElement<any, any>;
126
+ viewType?: import("../../../render/propsType").ViewType;
127
127
  upperCase?: boolean;
128
128
  toISOString?: boolean;
129
129
  toCSTString?: boolean;
@@ -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" | "clearNotShow" | "valueType" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "precision">;
145
145
  formItemTransform: {
146
146
  getValueProps: any;
147
147
  normalize: any;
@@ -5,7 +5,7 @@ export declare const useStep: () => Partial<ProStepContextType>;
5
5
  declare const ProStep: {
6
6
  ({ children, ...resetProps }: ProStepType): JSX.Element;
7
7
  useStep: () => Partial<ProStepContextType>;
8
- Item: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: import("./propsType").ProStepItemPropsType) => JSX.Element;
8
+ Item: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: import("./propsType").ProStepItemPropsType) => globalThis.JSX.Element;
9
9
  Listener: ({ children, delayTime, excludes, ...props }: import("./propsType").ListenerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
10
10
  };
11
11
  export default ProStep;
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.5",
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,6 +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",
69
+ "postinstall": "patch-package",
57
70
  "prepare": "husky",
58
71
  "prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
59
72
  "postpublish": "git clean -fd",
@@ -157,6 +170,7 @@
157
170
  "mini-css-extract-plugin": "^2.9.4",
158
171
  "minimatch": "^9.0.5",
159
172
  "mockjs": "^1.0.0",
173
+ "patch-package": "^8.0.1",
160
174
  "postcss-less": "^6.0.0",
161
175
  "prettier": "^3.3.0",
162
176
  "react": "19.2.4",