@yoopta/callout 4.0.0-rc.15 → 4.0.0-rc.16
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.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{UI as o,useBlockData as t,useYooptaEditor as e,useYooptaReadOnly as l,YooptaPlugin as r}from"@yoopta/editor";import{jsxs as a,jsx as c}from"react/jsx-runtime";import*as n from"react";"function"==typeof SuppressedError&&SuppressedError;const i={default:{backgroundColor:"#f5f7f9",color:"#000"},info:{backgroundColor:"#e1f3fe",color:"#08a2e7",borderLeft:"4px solid #08a2e7"},success:{backgroundColor:"#d1fae5",color:"#12b77f",borderLeft:"4px solid #12b77f"},warning:{backgroundColor:"#fef3c9",color:"#f97415",borderLeft:"4px solid #f97415"},error:{backgroundColor:"#fee1e2",color:"#ee4443",borderLeft:"4px solid #ee4443"}};var s,u;function d(){return d=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},d.apply(this,arguments)}var y,p=function(o){return n.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"success_svg__lucide success_svg__lucide-circle-check"},o),s||(s=n.createElement("circle",{cx:12,cy:12,r:10})),u||(u=n.createElement("path",{d:"m9 12 2 2 4-4"})))};function h(){return h=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},h.apply(this,arguments)}var f,g,m=function(o){return n.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"warning_svg__lucide warning_svg__lucide-triangle-alert"},o),y||(y=n.createElement("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4M12 17h.01"})))};function b(){return b=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},b.apply(this,arguments)}var w,v,x=function(o){return n.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"error_svg__lucide error_svg__lucide-circle-x"},o),f||(f=n.createElement("circle",{cx:12,cy:12,r:10})),g||(g=n.createElement("path",{d:"m15 9-6 6M9 9l6 6"})))};function k(){return k=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},k.apply(this,arguments)}var j,O,_=function(o){return n.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"default_svg__lucide default_svg__lucide-ban"},o),w||(w=n.createElement("circle",{cx:12,cy:12,r:10})),v||(v=n.createElement("path",{d:"m4.9 4.9 14.2 14.2"})))};function C(){return C=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},C.apply(this,arguments)}var N,E=function(o){return n.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"info_svg__lucide info_svg__lucide-info"},o),j||(j=n.createElement("circle",{cx:12,cy:12,r:10})),O||(O=n.createElement("path",{d:"M12 16v-4M12 8h.01"})))};function L(){return L=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},L.apply(this,arguments)}var B=function(o){return n.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",className:"checkmark_svg__lucide checkmark_svg__lucide-check"},o),N||(N=n.createElement("path",{d:"M20 6 9 17l-5-5"})))};const{ExtendedBlockActions:M,BlockOptionsMenuGroup:P,BlockOptionsMenuItem:S,BlockOptionsSeparator:W}=o,A=({editor:o,block:t,props:e})=>{const l=e=>{o.blocks.Callout.updateElement(t.id,"callout",{theme:e})},r=o=>(null==e?void 0:e.theme)===o;return a(M,Object.assign({onClick:()=>o.setSelection([t.meta.order]),className:"yoopta-callout-options"},{children:[c(W,{}),a(P,{children:[c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("default"),style:{backgroundColor:r("default")?i.default.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(_,{width:16,height:16,color:i.default.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Default"]})),r("default")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))}),c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("info"),style:{backgroundColor:r("info")?i.info.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(E,{width:16,height:16,color:i.info.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Info"]})),r("info")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))}),c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("success"),style:{backgroundColor:r("success")?i.success.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(p,{width:16,height:16,color:i.success.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Success"]})),r("success")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))}),c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("warning"),style:{backgroundColor:r("warning")?i.warning.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(m,{width:16,height:16,color:i.warning.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Warning"]})),r("warning")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))}),c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("error"),style:{backgroundColor:r("error")?i.error.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(x,{width:16,height:16,color:i.error.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Error"]})),r("error")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))})]})]}))},I=({element:o,attributes:r,children:n,blockId:s,HTMLAttributes:u={}})=>{const{className:d=""}=u,y=function(o,t){var e={};for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&t.indexOf(l)<0&&(e[l]=o[l]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(o);r<l.length;r++)t.indexOf(l[r])<0&&Object.prototype.propertyIsEnumerable.call(o,l[r])&&(e[l[r]]=o[l[r]])}return e}(u,["className"]),p=t(s),h=e(),f=l(),{theme:g="default"}=o.props||{},m=i[g];return a("div",Object.assign({"data-element-type":o.type,style:m,className:`yoo-callout-rounded-md yoo-callout-mt-2 yoo-callout-p-2 yoo-callout-pl-4 yoo-callout-leading-7 yoo-callout-bg-info yoo-callout-text-info-foreground yoo-callout-text-[16px] yoopta-callout yoopta-callout-theme-${g} ${d}`},y,r,{children:[!f&&c(A,{block:p,editor:h,props:o.props}),n]}))};I.displayName="Callout";const T=new r({type:"Callout",elements:{callout:{render:I,props:{theme:"default"}}},options:{display:{title:"Callout",description:"Make writing stand out"},shortcuts:["<"]}});!function(o,t){void 0===t&&(t={});var e=t.insertAt;if(o&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===e&&l.firstChild?l.insertBefore(r,l.firstChild):l.appendChild(r),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}}("#yoopta-editor .yoo-callout-mx-\\[4px\\]{margin-left:4px;margin-right:4px}#yoopta-editor .yoo-callout-mr-2{margin-right:.5rem}#yoopta-editor .yoo-callout-mt-2{margin-top:.5rem}#yoopta-editor .yoo-callout-flex{display:flex}#yoopta-editor .yoo-callout-h-4{height:1rem}#yoopta-editor .yoo-callout-w-4{width:1rem}#yoopta-editor .yoo-callout-w-full{width:100%}#yoopta-editor .yoo-callout-cursor-pointer{cursor:pointer}#yoopta-editor .yoo-callout-justify-start{justify-content:flex-start}#yoopta-editor .yoo-callout-justify-between{justify-content:space-between}#yoopta-editor .yoo-callout-rounded-md{border-radius:.375rem}#yoopta-editor .yoo-callout-rounded-sm{border-radius:.125rem}#yoopta-editor .yoo-callout-p-2{padding:.5rem}#yoopta-editor .yoo-callout-px-2{padding-left:.5rem;padding-right:.5rem}#yoopta-editor .yoo-callout-py-1{padding-bottom:.25rem;padding-top:.25rem}#yoopta-editor .yoo-callout-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}#yoopta-editor .yoo-callout-pl-4{padding-left:1rem}#yoopta-editor .yoo-callout-text-\\[16px\\]{font-size:16px}#yoopta-editor .yoo-callout-leading-7{line-height:1.75rem}#yoopta-editor .yoo-callout-leading-\\[120\\%\\]{line-height:120%}#yoopta-editor .yoopta-callout .yoopta-callout-options{opacity:0;transition:opacity .15s ease-in-out}#yoopta-editor .yoopta-callout:hover .yoopta-callout-options{opacity:1}#yoopta-editor .hover\\:yoo-callout-bg-\\[\\#37352f14\\]:hover{background-color:#37352f14}");export{T as default};
|
|
1
|
+
import{UI as o,useBlockData as t,useYooptaEditor as e,useYooptaReadOnly as l,YooptaPlugin as r}from"@yoopta/editor";import{jsxs as a,jsx as c}from"react/jsx-runtime";import*as n from"react";"function"==typeof SuppressedError&&SuppressedError;const i={default:{backgroundColor:"#f5f7f9",color:"#000"},info:{backgroundColor:"#e1f3fe",color:"#08a2e7",borderLeft:"4px solid #08a2e7"},success:{backgroundColor:"#d1fae5",color:"#12b77f",borderLeft:"4px solid #12b77f"},warning:{backgroundColor:"#fef3c9",color:"#f97415",borderLeft:"4px solid #f97415"},error:{backgroundColor:"#fee1e2",color:"#ee4443",borderLeft:"4px solid #ee4443"}};var s,u;function d(){return d=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},d.apply(this,arguments)}var y,p=function(o){return n.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"success_svg__lucide success_svg__lucide-circle-check"},o),s||(s=n.createElement("circle",{cx:12,cy:12,r:10})),u||(u=n.createElement("path",{d:"m9 12 2 2 4-4"})))};function h(){return h=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},h.apply(this,arguments)}var f,g,m=function(o){return n.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"warning_svg__lucide warning_svg__lucide-triangle-alert"},o),y||(y=n.createElement("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4M12 17h.01"})))};function b(){return b=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},b.apply(this,arguments)}var w,v,x=function(o){return n.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"error_svg__lucide error_svg__lucide-circle-x"},o),f||(f=n.createElement("circle",{cx:12,cy:12,r:10})),g||(g=n.createElement("path",{d:"m15 9-6 6M9 9l6 6"})))};function k(){return k=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},k.apply(this,arguments)}var j,O,_=function(o){return n.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"default_svg__lucide default_svg__lucide-ban"},o),w||(w=n.createElement("circle",{cx:12,cy:12,r:10})),v||(v=n.createElement("path",{d:"m4.9 4.9 14.2 14.2"})))};function C(){return C=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},C.apply(this,arguments)}var N,E=function(o){return n.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"info_svg__lucide info_svg__lucide-info"},o),j||(j=n.createElement("circle",{cx:12,cy:12,r:10})),O||(O=n.createElement("path",{d:"M12 16v-4M12 8h.01"})))};function L(){return L=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l])}return o},L.apply(this,arguments)}var B=function(o){return n.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",className:"checkmark_svg__lucide checkmark_svg__lucide-check"},o),N||(N=n.createElement("path",{d:"M20 6 9 17l-5-5"})))};const{ExtendedBlockActions:M,BlockOptionsMenuGroup:P,BlockOptionsMenuItem:S,BlockOptionsSeparator:W}=o,A=({editor:o,block:t,props:e})=>{const l=e=>{o.blocks.Callout.updateElement(t.id,"callout",{theme:e})},r=o=>(null==e?void 0:e.theme)===o;return a(M,Object.assign({onClick:()=>o.setSelection([t.meta.order]),className:"yoopta-callout-options"},{children:[c(W,{}),a(P,{children:[c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("default"),style:{backgroundColor:r("default")?i.default.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(_,{width:16,height:16,color:i.default.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Default"]})),r("default")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))}),c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("info"),style:{backgroundColor:r("info")?i.info.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(E,{width:16,height:16,color:i.info.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Info"]})),r("info")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))}),c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("success"),style:{backgroundColor:r("success")?i.success.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(p,{width:16,height:16,color:i.success.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Success"]})),r("success")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))}),c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("warning"),style:{backgroundColor:r("warning")?i.warning.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(m,{width:16,height:16,color:i.warning.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Warning"]})),r("warning")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))}),c(S,{children:a("button",Object.assign({type:"button",className:"yoo-callout-rounded-sm yoo-callout-justify-between hover:yoo-callout-bg-[#37352f14] yoo-callout-leading-[120%] yoo-callout-px-2 yoo-callout-py-1.5 yoo-callout-mx-[4px] yoo-callout-cursor-pointer yoo-callout-w-full yoo-callout-flex yoo-callout-justify-start",onClick:()=>l("error"),style:{backgroundColor:r("error")?i.error.backgroundColor:void 0}},{children:[a("span",Object.assign({className:"yoo-callout-flex"},{children:[c(x,{width:16,height:16,color:i.error.color,className:"yoo-callout-w-4 yoo-callout-h-4 yoo-callout-mr-2"}),"Error"]})),r("error")&&c(B,{width:16,height:16,color:"#000",className:"yoo-callout-w-4 yoo-callout-h-4"})]}))})]})]}))},I=({element:o,attributes:r,children:n,blockId:s,HTMLAttributes:u={}})=>{const{className:d=""}=u,y=function(o,t){var e={};for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&t.indexOf(l)<0&&(e[l]=o[l]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(o);r<l.length;r++)t.indexOf(l[r])<0&&Object.prototype.propertyIsEnumerable.call(o,l[r])&&(e[l[r]]=o[l[r]])}return e}(u,["className"]),p=t(s),h=e(),f=l(),{theme:g="default"}=o.props||{},m=i[g];return a("div",Object.assign({"data-element-type":o.type,style:m,className:`yoo-callout-rounded-md yoo-callout-mt-2 yoo-callout-p-2 yoo-callout-pl-4 yoo-callout-leading-7 yoo-callout-bg-info yoo-callout-text-info-foreground yoo-callout-text-[16px] yoopta-callout-theme-${g} ${d}`},y,r,{children:[!f&&c(A,{block:p,editor:h,props:o.props}),n]}))};I.displayName="Callout";const T=new r({type:"Callout",elements:{callout:{render:I,props:{theme:"default"}}},options:{display:{title:"Callout",description:"Make writing stand out"},shortcuts:["<"]}});!function(o,t){void 0===t&&(t={});var e=t.insertAt;if(o&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===e&&l.firstChild?l.insertBefore(r,l.firstChild):l.appendChild(r),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}}("#yoopta-editor .yoo-callout-mx-\\[4px\\]{margin-left:4px;margin-right:4px}#yoopta-editor .yoo-callout-mr-2{margin-right:.5rem}#yoopta-editor .yoo-callout-mt-2{margin-top:.5rem}#yoopta-editor .yoo-callout-flex{display:flex}#yoopta-editor .yoo-callout-h-4{height:1rem}#yoopta-editor .yoo-callout-w-4{width:1rem}#yoopta-editor .yoo-callout-w-full{width:100%}#yoopta-editor .yoo-callout-cursor-pointer{cursor:pointer}#yoopta-editor .yoo-callout-justify-start{justify-content:flex-start}#yoopta-editor .yoo-callout-justify-between{justify-content:space-between}#yoopta-editor .yoo-callout-rounded-md{border-radius:.375rem}#yoopta-editor .yoo-callout-rounded-sm{border-radius:.125rem}#yoopta-editor .yoo-callout-p-2{padding:.5rem}#yoopta-editor .yoo-callout-px-2{padding-left:.5rem;padding-right:.5rem}#yoopta-editor .yoo-callout-py-1{padding-bottom:.25rem;padding-top:.25rem}#yoopta-editor .yoo-callout-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}#yoopta-editor .yoo-callout-pl-4{padding-left:1rem}#yoopta-editor .yoo-callout-text-\\[16px\\]{font-size:16px}#yoopta-editor .yoo-callout-leading-7{line-height:1.75rem}#yoopta-editor .yoo-callout-leading-\\[120\\%\\]{line-height:120%}#yoopta-editor .yoopta-callout .yoopta-callout-options{opacity:0;transition:opacity .15s ease-in-out}#yoopta-editor .yoopta-callout:hover .yoopta-callout-options{opacity:1}#yoopta-editor .hover\\:yoo-callout-bg-\\[\\#37352f14\\]:hover{background-color:#37352f14}");export{T as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/callout",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.16",
|
|
4
4
|
"description": "Callout plugin for Yoopta Editor",
|
|
5
5
|
"author": "Darginec05 <devopsbanda@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://github.com/Darginec05/Editor-Yoopta/issues"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "911334619cc6bb6c25c72aa037192ef2a88a8029"
|
|
38
38
|
}
|