@faasjs/ant-design 0.0.2-beta.410 → 0.0.2-beta.411

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
@@ -165,7 +165,7 @@ declare type setDrawerProps = (changes: Partial<DrawerProps>) => void;
165
165
  * const { drawer, setDrawerProps } = useDrawer()
166
166
  *
167
167
  * return <>
168
- * <Button onClick={ () => setDrawerProps(prev => ({ visible: !prev.visible})) }>
168
+ * <Button onClick={ () => setDrawerProps(prev => ({ open: !prev.open})) }>
169
169
  * Toggle
170
170
  * </Button>
171
171
  * {drawer}
@@ -339,7 +339,7 @@ declare type setModalProps = (changes: Partial<ModalProps>) => void;
339
339
  * const { modal, setModalProps } = useModal()
340
340
  *
341
341
  * return <>
342
- * <Button onClick={() => setModalProps({ visible: true })}>Open Modal</Button>
342
+ * <Button onClick={() => setModalProps({ open: true })}>Open Modal</Button>
343
343
  * {modal}</>
344
344
  * }
345
345
  * ```
package/dist/index.js CHANGED
@@ -292,10 +292,10 @@ var import_react5 = require("react");
292
292
  var import_jsx_runtime = require("react/jsx-runtime");
293
293
  function useDrawer(init) {
294
294
  const [props, setProps] = (0, import_react5.useState)({
295
- visible: false,
295
+ open: false,
296
296
  onClose: () => setProps((prev) => ({
297
297
  ...prev,
298
- visible: false
298
+ open: false
299
299
  })),
300
300
  ...init
301
301
  });
@@ -809,10 +809,10 @@ var import_react10 = require("react");
809
809
  var import_jsx_runtime = require("react/jsx-runtime");
810
810
  function useModal(init) {
811
811
  const [props, setProps] = (0, import_react10.useState)({
812
- visible: false,
812
+ open: false,
813
813
  onCancel: () => setProps((prev) => ({
814
814
  ...prev,
815
- visible: false
815
+ open: false
816
816
  })),
817
817
  ...init
818
818
  });
package/dist/index.mjs CHANGED
@@ -253,10 +253,10 @@ import { useState as useState3 } from "react";
253
253
  import { jsx as jsx4 } from "react/jsx-runtime";
254
254
  function useDrawer(init) {
255
255
  const [props, setProps] = useState3({
256
- visible: false,
256
+ open: false,
257
257
  onClose: () => setProps((prev) => ({
258
258
  ...prev,
259
- visible: false
259
+ open: false
260
260
  })),
261
261
  ...init
262
262
  });
@@ -785,10 +785,10 @@ import { useState as useState6 } from "react";
785
785
  import { jsx as jsx9 } from "react/jsx-runtime";
786
786
  function useModal(init) {
787
787
  const [props, setProps] = useState6({
788
- visible: false,
788
+ open: false,
789
789
  onCancel: () => setProps((prev) => ({
790
790
  ...prev,
791
- visible: false
791
+ open: false
792
792
  })),
793
793
  ...init
794
794
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.2-beta.410",
3
+ "version": "0.0.2-beta.411",
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.410",
31
+ "@faasjs/react": "^0.0.2-beta.411",
32
32
  "react-router-dom": "*",
33
33
  "dayjs": "*"
34
34
  },