@faasjs/ant-design 0.0.2-beta.429 → 0.0.2-beta.431

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.
package/dist/index.d.ts CHANGED
@@ -185,37 +185,45 @@ declare function useDrawer(init?: DrawerProps): {
185
185
  declare type StringProps = {
186
186
  type?: 'string';
187
187
  input?: InputProps;
188
+ required?: boolean;
188
189
  };
189
190
  declare type StringListProps = {
190
191
  type: 'string[]';
191
192
  input?: InputProps;
192
193
  maxCount?: number;
194
+ required?: boolean;
193
195
  };
194
196
  declare type NumberProps = {
195
197
  type: 'number';
196
198
  input?: InputNumberProps;
199
+ required?: boolean;
197
200
  };
198
201
  declare type NumberListProps = {
199
202
  type: 'number[]';
200
203
  input?: InputNumberProps;
201
204
  maxCount?: number;
205
+ required?: boolean;
202
206
  };
203
207
  declare type BooleanProps = {
204
208
  type: 'boolean';
205
209
  input?: SwitchProps;
210
+ required?: boolean;
206
211
  };
207
212
  declare type DateProps = {
208
213
  type: 'date';
209
214
  input?: DatePickerProps$1;
215
+ required?: boolean;
210
216
  };
211
217
  declare type TimeProps = {
212
218
  type: 'time';
213
219
  input?: TimePickerProps$1;
220
+ required?: boolean;
214
221
  };
215
222
  declare type ObjectProps = {
216
223
  type: 'object';
217
224
  object: (FaasItemProps & (StringProps | StringListProps | NumberProps | NumberListProps | BooleanProps | OptionsProps | DateProps | TimeProps | ObjectProps))[];
218
225
  disabled?: boolean;
226
+ required?: boolean;
219
227
  };
220
228
  declare type ObjectListProps = {
221
229
  type: 'object[]';
@@ -225,6 +233,7 @@ declare type ObjectListProps = {
225
233
  } & (StringProps | StringListProps | NumberProps | NumberListProps | BooleanProps | OptionsProps | DateProps | TimeProps | ObjectProps))[];
226
234
  maxCount?: number;
227
235
  disabled?: boolean;
236
+ required?: boolean;
228
237
  };
229
238
  declare type OptionsProps = {
230
239
  options?: BaseOption[];
package/dist/index.js CHANGED
@@ -1268,7 +1268,7 @@ function Title(props) {
1268
1268
  (0, import_react14.useEffect)(() => {
1269
1269
  const title = Array.isArray(props.title) ? props.title : [props.title];
1270
1270
  document.title = title.concat(props.suffix || Title2.suffix).filter((t) => !!t).join(props.separator || Title2.separator);
1271
- }, [props.title]);
1271
+ }, [props]);
1272
1272
  if (props.h1) {
1273
1273
  if (typeof props.h1 === "boolean")
1274
1274
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h1", {
package/dist/index.mjs CHANGED
@@ -1265,7 +1265,7 @@ function Title(props) {
1265
1265
  useEffect6(() => {
1266
1266
  const title = Array.isArray(props.title) ? props.title : [props.title];
1267
1267
  document.title = title.concat(props.suffix || Title2.suffix).filter((t) => !!t).join(props.separator || Title2.separator);
1268
- }, [props.title]);
1268
+ }, [props]);
1269
1269
  if (props.h1) {
1270
1270
  if (typeof props.h1 === "boolean")
1271
1271
  return /* @__PURE__ */ jsx12("h1", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.2-beta.429",
3
+ "version": "0.0.2-beta.431",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,7 +28,7 @@
28
28
  "lodash": "*",
29
29
  "react": "*",
30
30
  "react-dom": "*",
31
- "@faasjs/react": "^0.0.2-beta.429",
31
+ "@faasjs/react": "^0.0.2-beta.431",
32
32
  "react-router-dom": "*",
33
33
  "dayjs": "*"
34
34
  },