jy-headless 0.0.22 → 0.0.23

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.esm.js CHANGED
@@ -386,7 +386,7 @@ const Modal = ({ opener, children, targetSelector = 'root', }) => {
386
386
  const onHandleShow = () => {
387
387
  setIsShow(true);
388
388
  };
389
- return (React.createElement(ModalContext, { value: { isShow, setIsShow } },
389
+ return (React.createElement(ModalContext.Provider, { value: { isShow, setIsShow } },
390
390
  React.cloneElement(opener, {
391
391
  onClick: onHandleShow,
392
392
  }),
package/dist/index.js CHANGED
@@ -388,7 +388,7 @@ const Modal = ({ opener, children, targetSelector = 'root', }) => {
388
388
  const onHandleShow = () => {
389
389
  setIsShow(true);
390
390
  };
391
- return (React.createElement(ModalContext, { value: { isShow, setIsShow } },
391
+ return (React.createElement(ModalContext.Provider, { value: { isShow, setIsShow } },
392
392
  React.cloneElement(opener, {
393
393
  onClick: onHandleShow,
394
394
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jy-headless",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "typings": "dist/index.d.ts",