jy-headless 0.0.21 → 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
|
@@ -380,12 +380,13 @@ const ModalContext = createContext({
|
|
|
380
380
|
isShow: false,
|
|
381
381
|
setIsShow: (value) => { },
|
|
382
382
|
});
|
|
383
|
+
|
|
383
384
|
const Modal = ({ opener, children, targetSelector = 'root', }) => {
|
|
384
385
|
const [isShow, setIsShow] = useState(false);
|
|
385
386
|
const onHandleShow = () => {
|
|
386
387
|
setIsShow(true);
|
|
387
388
|
};
|
|
388
|
-
return (React.createElement(ModalContext, { value: { isShow, setIsShow } },
|
|
389
|
+
return (React.createElement(ModalContext.Provider, { value: { isShow, setIsShow } },
|
|
389
390
|
React.cloneElement(opener, {
|
|
390
391
|
onClick: onHandleShow,
|
|
391
392
|
}),
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -382,12 +382,13 @@ const ModalContext = React.createContext({
|
|
|
382
382
|
isShow: false,
|
|
383
383
|
setIsShow: (value) => { },
|
|
384
384
|
});
|
|
385
|
+
|
|
385
386
|
const Modal = ({ opener, children, targetSelector = 'root', }) => {
|
|
386
387
|
const [isShow, setIsShow] = React.useState(false);
|
|
387
388
|
const onHandleShow = () => {
|
|
388
389
|
setIsShow(true);
|
|
389
390
|
};
|
|
390
|
-
return (React.createElement(ModalContext, { value: { isShow, setIsShow } },
|
|
391
|
+
return (React.createElement(ModalContext.Provider, { value: { isShow, setIsShow } },
|
|
391
392
|
React.cloneElement(opener, {
|
|
392
393
|
onClick: onHandleShow,
|
|
393
394
|
}),
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|