@remarkablejames/editor 0.0.2 → 0.0.3
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/lib/{ActionMenuButton-Bmn3RME4.js → ActionMenuButton-D5HLfRzv.js} +9 -10
- package/lib/ActionMenuButton-DN6VHLkp.cjs +1 -0
- package/lib/Attachment.cjs +2 -2
- package/lib/Attachment.js +31 -33
- package/lib/Blockquote.cjs +2 -2
- package/lib/Blockquote.js +13 -12
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +11 -10
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +9 -8
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +41 -45
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +13 -14
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +6 -5
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +30 -31
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +9 -8
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +18 -19
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +9 -8
- package/lib/{Drawer-DvGh9aXG.js → Drawer-B9l1SoRJ.js} +41 -47
- package/lib/Drawer-BN0lYcnJ.cjs +2 -0
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +14 -15
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +24 -28
- package/lib/ExportPdf.cjs +3 -3
- package/lib/ExportPdf.js +14 -13
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +6 -6
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +7 -6
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +15 -14
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +26 -26
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +22 -23
- package/lib/History.cjs +1 -1
- package/lib/History.js +11 -11
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +10 -9
- package/lib/Iframe-CXFk3GEq.cjs +1 -0
- package/lib/{Iframe-CnnvV6cK.js → Iframe-MjeJ2OOI.js} +11 -13
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +2 -2
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +4 -5
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +79 -82
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +25 -26
- package/lib/Indent-BPX9XRos.cjs +1 -0
- package/lib/{Indent-Bsj8gKvT.js → Indent-CgwDItIf.js} +31 -30
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +12 -11
- package/lib/{Katex-CilGTz7u.js → Katex-CZ4g3vA9.js} +19 -22
- package/lib/Katex-DIgsR_dS.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +19 -20
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/LinkEditBlock-B2bU0Mcr.cjs +5 -0
- package/lib/{LinkEditBlock-BD_WvA3r.js → LinkEditBlock-CaDV3Vq5.js} +19 -24
- package/lib/Mention.js +3 -3
- package/lib/Mermaid-B9h7XKFo.cjs +2 -0
- package/lib/{Mermaid-BrjU75Bs.js → Mermaid-EhYj_ICn.js} +45 -48
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +26 -28
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +11 -10
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +37 -42
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +5 -5
- package/lib/SlashCommandNodeView-COlWSlnE.cjs +1 -0
- package/lib/{SlashCommandNodeView-COx5qZ2y.js → SlashCommandNodeView-CY3peX5x.js} +39 -41
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +12 -11
- package/lib/{Table-BlM8yMhr.js → Table-Bw7rLue7.js} +46 -46
- package/lib/Table-DLrtX6T7.cjs +5 -0
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +12 -11
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +26 -27
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +18 -19
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +9 -8
- package/lib/Twitter-Ck6vGefg.cjs +1 -0
- package/lib/{Twitter-BP8sYXX7.js → Twitter-pM0y5Z-L.js} +18 -22
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +2 -2
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +4 -5
- package/lib/bubble.cjs +3 -3
- package/lib/bubble.js +77 -86
- package/lib/{clsx-m_C5j3RU.js → clsx-CDyrfCnw.js} +24 -24
- package/lib/{dropdown-menu-CkHN04Mx.cjs → dropdown-menu-DwR8tTs9.cjs} +1 -1
- package/lib/{dropdown-menu-C1hdPLCZ.js → dropdown-menu-nX-u8e2w.js} +1 -1
- package/lib/extensions/Image/Image.d.ts +11 -0
- package/lib/extensions/Image/components/ImageCropper.d.ts +1 -1
- package/lib/{index-B3Ijnbxs.js → index-C-tDsIKJ.js} +1 -1
- package/lib/{index-C1KQsOcg.js → index-C1WCZhyA.js} +1 -1
- package/lib/{index-C8FjP66D.js → index-CsSfYR30.js} +1 -1
- package/lib/index-Dib4cXXf.cjs +10 -0
- package/lib/{index-s3l5RdyW.js → index-DjDf4BK8.js} +1 -1
- package/lib/index-_WrFM-Fk.js +5054 -0
- package/lib/index.cjs +4 -4
- package/lib/index.js +147 -392
- package/lib/{popover-B05Fd8lC.cjs → popover-BY7j9SiD.cjs} +1 -1
- package/lib/{popover-CsSXh7w6.js → popover-CSvY4C-l.js} +1 -1
- package/lib/{renderNodeView-C_hPIdEs.js → renderNodeView-BJSrgyGj.js} +2 -2
- package/lib/{select-B3-5wTqn.js → select-BelNLNvT.js} +1 -1
- package/lib/{select-7ubC1NF0.cjs → select-Bu-5iIA9.cjs} +1 -1
- package/lib/{separator-CYCA8tSn.js → separator-Br5kcIJa.js} +12 -13
- package/lib/separator-Cp9Lg3HU.cjs +1 -0
- package/lib/style.css +1 -1
- package/lib/{textarea-1FhpmBkP.js → textarea-Ceev4t42.js} +1 -1
- package/lib/{textarea-Bjhcpp76.cjs → textarea-DfqvYaA6.cjs} +1 -1
- package/lib/theme/theme.d.ts +1 -1
- package/lib/{updatePosition-DvfTZHcH.js → updatePosition-e90ZrFWW.js} +2 -2
- package/package.json +1 -1
- package/lib/ActionMenuButton-C5P0Kzrb.cjs +0 -1
- package/lib/Drawer-gz9U5ArC.cjs +0 -2
- package/lib/Icon-CKM0tYbW.js +0 -15
- package/lib/Icon-CQyFgXeo.cjs +0 -1
- package/lib/Iframe-Ds6gG2YO.cjs +0 -1
- package/lib/ImageCropper-BKhXlnXN.cjs +0 -1
- package/lib/ImageCropper-DUzu_9-6.js +0 -896
- package/lib/Indent-D_7HOYYd.cjs +0 -1
- package/lib/Katex-lL3bHXJd.cjs +0 -4
- package/lib/LinkEditBlock-D3HSHmsU.cjs +0 -5
- package/lib/Mermaid-BfeLPzoS.cjs +0 -2
- package/lib/SlashCommandNodeView-DD-nlhM-.cjs +0 -1
- package/lib/Table-C21AlUrh.cjs +0 -5
- package/lib/Twitter-D46MnvPr.cjs +0 -1
- package/lib/Video-Bpd8W8l6.js +0 -231
- package/lib/Video-BwrHx6B1.cjs +0 -1
- package/lib/button-BmTP96NR.cjs +0 -1
- package/lib/button-CDIxPURh.js +0 -35
- package/lib/checkbox-7sfSdzy9.js +0 -29
- package/lib/checkbox-DyVlLWHv.cjs +0 -1
- package/lib/dialog-B-jOQ5i3.cjs +0 -1
- package/lib/dialog-QWWUWOGP.js +0 -95
- package/lib/events.constant-Bh2uzJud.js +0 -71
- package/lib/events.constant-ELn21EzG.cjs +0 -1
- package/lib/file-BLas99n7.js +0 -43
- package/lib/file-i7e4nQY2.cjs +0 -1
- package/lib/index-CAiZY1nx.js +0 -2741
- package/lib/index-DWSAk_9a.cjs +0 -1
- package/lib/input-qvpuOf-3.js +0 -21
- package/lib/input-s0JD5kf2.cjs +0 -1
- package/lib/isNumber-BTYSVlKo.cjs +0 -1
- package/lib/isNumber-WaBzl_0s.js +0 -15
- package/lib/label-CFax-gzo.cjs +0 -1
- package/lib/label-DC37f2RQ.js +0 -11
- package/lib/separator-ncbdw4oq.cjs +0 -1
- package/lib/tabs-BeHxylKH.js +0 -46
- package/lib/tabs-DBqNpGAq.cjs +0 -1
- package/lib/throttle-CRNq0z-O.js +0 -249
- package/lib/throttle-gTTvqDTW.cjs +0 -1
- package/lib/toggle-DoJTBdvy.js +0 -89
- package/lib/toggle-oFwBZC4x.cjs +0 -1
- package/lib/useButtonProps-BE10eHkG.js +0 -165
- package/lib/useButtonProps-CFu0GHzW.cjs +0 -1
package/lib/index-DWSAk_9a.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const oe=require("./clsx-CXbNJWDD.cjs"),G=require("@radix-ui/react-icons"),r=require("lucide-react"),n=require("react/jsx-runtime"),_="-",he=e=>{const o=ge(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const i=d.split(_);return i[0]===""&&i.length!==1&&i.shift(),ne(i,o)||pe(d)},getConflictingClassGroupIds:(d,i)=>{const m=t[d]||[];return i&&s[d]?[...m,...s[d]]:m}}},ne=(e,o)=>{var d;if(e.length===0)return o.classGroupId;const t=e[0],s=o.nextPart.get(t),c=s?ne(e.slice(1),s):void 0;if(c)return c;if(o.validators.length===0)return;const l=e.join(_);return(d=o.validators.find(({validator:i})=>i(l)))==null?void 0:d.classGroupId},Y=/^\[(.+)\]$/,pe=e=>{if(Y.test(e)){const o=Y.exec(e)[1],t=o==null?void 0:o.substring(0,o.indexOf(":"));if(t)return"arbitrary.."+t}},ge=e=>{const{theme:o,prefix:t}=e,s={nextPart:new Map,validators:[]};return be(Object.entries(e.classGroups),t).forEach(([l,d])=>{X(d,s,l,o)}),s},X=(e,o,t,s)=>{e.forEach(c=>{if(typeof c=="string"){const l=c===""?o:ee(o,c);l.classGroupId=t;return}if(typeof c=="function"){if(me(c)){X(c(s),o,t,s);return}o.validators.push({validator:c,classGroupId:t});return}Object.entries(c).forEach(([l,d])=>{X(d,ee(o,l),t,s)})})},ee=(e,o)=>{let t=e;return o.split(_).forEach(s=>{t.nextPart.has(s)||t.nextPart.set(s,{nextPart:new Map,validators:[]}),t=t.nextPart.get(s)}),t},me=e=>e.isThemeGetter,be=(e,o)=>o?e.map(([t,s])=>{const c=s.map(l=>typeof l=="string"?o+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([d,i])=>[o+d,i])):l);return[t,c]}):e,fe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,t=new Map,s=new Map;const c=(l,d)=>{t.set(l,d),o++,o>e&&(o=0,s=t,t=new Map)};return{get(l){let d=t.get(l);if(d!==void 0)return d;if((d=s.get(l))!==void 0)return c(l,d),d},set(l,d){t.has(l)?t.set(l,d):c(l,d)}}},se="!",we=e=>{const{separator:o,experimentalParseClassName:t}=e,s=o.length===1,c=o[0],l=o.length,d=i=>{const m=[];let u=0,b=0,v;for(let h=0;h<i.length;h++){let x=i[h];if(u===0){if(x===c&&(s||i.slice(h,h+l)===o)){m.push(i.slice(b,h)),b=h+l;continue}if(x==="/"){v=h;continue}}x==="["?u++:x==="]"&&u--}const w=m.length===0?i:i.substring(b),k=w.startsWith(se),y=k?w.substring(1):w,f=v&&v>b?v-b:void 0;return{modifiers:m,hasImportantModifier:k,baseClassName:y,maybePostfixModifierPosition:f}};return t?i=>t({className:i,parseClassName:d}):d},ve=e=>{if(e.length<=1)return e;const o=[];let t=[];return e.forEach(s=>{s[0]==="["?(o.push(...t.sort(),s),t=[]):t.push(s)}),o.push(...t.sort()),o},xe=e=>({cache:fe(e.cacheSize),parseClassName:we(e),...he(e)}),ye=/\s+/,Ce=(e,o)=>{const{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:c}=o,l=[],d=e.trim().split(ye);let i="";for(let m=d.length-1;m>=0;m-=1){const u=d[m],{modifiers:b,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:k}=t(u);let y=!!k,f=s(y?w.substring(0,k):w);if(!f){if(!y){i=u+(i.length>0?" "+i:i);continue}if(f=s(w),!f){i=u+(i.length>0?" "+i:i);continue}y=!1}const h=ve(b).join(":"),x=v?h+se:h,C=x+f;if(l.includes(C))continue;l.push(C);const A=c(f,y);for(let V=0;V<A.length;++V){const B=A[V];l.push(x+B)}i=u+(i.length>0?" "+i:i)}return i};function ke(){let e=0,o,t,s="";for(;e<arguments.length;)(o=arguments[e++])&&(t=le(o))&&(s&&(s+=" "),s+=t);return s}const le=e=>{if(typeof e=="string")return e;let o,t="";for(let s=0;s<e.length;s++)e[s]&&(o=le(e[s]))&&(t&&(t+=" "),t+=o);return t};function ze(e,...o){let t,s,c,l=d;function d(m){const u=o.reduce((b,v)=>v(b),e());return t=xe(u),s=t.cache.get,c=t.cache.set,l=i,i(m)}function i(m){const u=s(m);if(u)return u;const b=Ce(m,t);return c(m,b),b}return function(){return l(ke.apply(null,arguments))}}const p=e=>{const o=t=>t[e]||[];return o.isThemeGetter=!0,o},ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,Me=/^\d+\/\d+$/,je=new Set(["px","full","screen"]),Le=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ve=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,He=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Se=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>H(e)||je.has(e)||Me.test(e),j=e=>S(e,"length",We),H=e=>!!e&&!Number.isNaN(Number(e)),F=e=>S(e,"number",H),R=e=>!!e&&Number.isInteger(Number(e)),Ie=e=>e.endsWith("%")&&H(e.slice(0,-1)),a=e=>ie.test(e),L=e=>Le.test(e),Re=new Set(["length","size","percentage"]),Pe=e=>S(e,Re,ae),Be=e=>S(e,"position",ae),Te=new Set(["image","url"]),Ee=e=>S(e,Te,Ue),Ge=e=>S(e,"",Ne),P=()=>!0,S=(e,o,t)=>{const s=ie.exec(e);return s?s[1]?typeof o=="string"?s[1]===o:o.has(s[1]):t(s[2]):!1},We=e=>Ve.test(e)&&!He.test(e),ae=()=>!1,Ne=e=>Se.test(e),Ue=e=>Ae.test(e),Oe=()=>{const e=p("colors"),o=p("spacing"),t=p("blur"),s=p("brightness"),c=p("borderColor"),l=p("borderRadius"),d=p("borderSpacing"),i=p("borderWidth"),m=p("contrast"),u=p("grayscale"),b=p("hueRotate"),v=p("invert"),w=p("gap"),k=p("gradientColorStops"),y=p("gradientColorStopPositions"),f=p("inset"),h=p("margin"),x=p("opacity"),C=p("padding"),A=p("saturate"),V=p("scale"),B=p("sepia"),q=p("skew"),$=p("space"),Z=p("translate"),W=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",a,o],g=()=>[a,o],D=()=>["",M,j],T=()=>["auto",H,a],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",a],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[H,a];return{cacheSize:500,separator:":",theme:{colors:[P],spacing:[M,j],blur:["none","",L,a],brightness:z(),borderColor:[e],borderRadius:["none","","full",L,a],borderSpacing:g(),borderWidth:D(),contrast:z(),grayscale:I(),hueRotate:z(),invert:I(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[Ie,j],inset:U(),margin:U(),opacity:z(),padding:g(),saturate:z(),scale:z(),sepia:I(),skew:z(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",a]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),a]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R,a]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",a]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",R,a]}],"grid-cols":[{"grid-cols":[P]}],"col-start-end":[{col:["auto",{span:["full",R,a]},a]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[P]}],"row-start-end":[{row:["auto",{span:[R,a]},a]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",a]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",a]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",a,o]}],"min-w":[{"min-w":[a,o,"min","max","fit"]}],"max-w":[{"max-w":[a,o,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[a,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[a,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[a,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[a,o,"auto","min","max","fit"]}],"font-size":[{text:["base",L,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",F]}],"font-family":[{font:[P]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",a]}],"line-clamp":[{"line-clamp":["none",H,F]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,a]}],"list-image":[{"list-image":["none",a]}],"list-style-type":[{list:["none","disc","decimal",a]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,j]}],"underline-offset":[{"underline-offset":["auto",M,a]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",a]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",a]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Be]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ee]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:E()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[M,a]}],"outline-w":[{outline:[M,j]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[M,j]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,Ge]}],"shadow-color":[{shadow:[P]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[s]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",L,a]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[v]}],saturate:[{saturate:[A]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",a]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",a]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",a]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[R,a]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",a]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",a]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",a]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,j,F]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Fe=ze(Oe);function Xe(...e){return Fe(oe.clsx(e))}function _e(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5zM7 9h3V7H5v5h2zm14-6H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 16H3V5h18z"})})}function qe(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 15h15m0 4H6m9-8h6m0-4h-6M9 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2M3 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2"})})}function $e(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"richtext-h-4 richtext-w-4",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M5.5 3c1.404 0 2.107 0 2.611.38c.219.164.406.375.552.62C9 4.568 9 5.358 9 6.938v10.125c0 1.58 0 2.37-.337 2.937a2.1 2.1 0 0 1-.552.621c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C2 19.432 2 18.642 2 17.062V6.938c0-1.58 0-2.37.337-2.938a2.1 2.1 0 0 1 .552-.62C3.393 3 4.096 3 5.5 3M20 11.938v5.124c0 1.58 0 2.37-.337 2.938a2.1 2.1 0 0 1-.552.62c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C13 19.433 13 18.642 13 17.063V6.938c0-1.58 0-2.37.337-2.938M22 9l-6-6m6 0l-6 6",color:"currentColor"})})}function Ze(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"richtext-h-4 richtext-w-4",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M21 18.5c0 1.404 0 2.107-.38 2.611a2.1 2.1 0 0 1-.62.552c-.567.337-1.358.337-2.937.337H6.938c-1.58 0-2.37 0-2.938-.337a2.1 2.1 0 0 1-.62-.552C3 20.607 3 19.904 3 18.5s0-2.107.38-2.611c.163-.218.374-.406.62-.552C4.567 15 5.357 15 6.938 15h10.125c1.58 0 2.37 0 2.937.337c.246.146.457.334.62.552c.38.504.38 1.207.38 2.611M12.063 4H6.937C5.358 4 4.568 4 4 4.337a2.1 2.1 0 0 0-.62.552C3 5.393 3 6.096 3 7.5s0 2.107.38 2.611c.163.218.374.406.62.552C4.567 11 5.357 11 6.938 11h10.125c1.58 0 2.37 0 2.937-.337M21 8l-6-6m6 0l-6 6",color:"currentColor"})})}function De(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"})})}function Je(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"})})}function ce(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 48 48",...e,children:n.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M36 19L24 31L12 19z"})})}function Qe(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M9 7v10h6v-2h-4V7z"})})}function Ke(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"})})}function Ye(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M11 7c-1.1 0-2 .9-2 2v2a2 2 0 0 0 2 2h2v2H9v2h4c1.11 0 2-.89 2-2v-2a2 2 0 0 0-2-2h-2V9h4V7z"})})}function er(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"currentColor",d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6l1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6l-1.4-1.4z"})})}function rr(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4"})})}function tr(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4"})})}function or(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z"})})}function nr(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"currentColor",d:"M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905"})})}function de(){return n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:[n.jsx("path",{fill:"currentColor",d:"M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z"}),n.jsx("path",{fill:"currentColor",d:"M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z"})]})}function ue(){return n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",className:"icon",viewBox:"0 0 1024 1024",children:[n.jsx("path",{fill:"currentColor",d:"M679.253 402.364 618.77 561.015l-60.348-158.651a30.04 30.04 0 0 0-30.447-18.637 29.76 29.76 0 0 0-30.447 18.637l-60.416 158.651-60.416-158.651a30.515 30.515 0 0 0-38.843-17.272 28.945 28.945 0 0 0-17.954 37.547l88.815 233.267c4.369 11.469 15.7 19.115 28.398 19.115a30.31 30.31 0 0 0 28.468-19.115l62.395-163.908 62.396 163.84c4.437 11.605 15.701 19.183 28.4 19.183a30.31 30.31 0 0 0 28.466-19.115l88.747-233.267a28.945 28.945 0 0 0-17.886-37.547 30.447 30.447 0 0 0-38.912 17.272zm219.478 395.605-51.883-29.218c-28.672-16.18-52.224-3.072-52.224 29.082v.273H643.209a29.833 29.833 0 0 0-30.31 29.354c0 16.18 13.584 29.218 30.31 29.218h151.825c1.092 30.516 24.03 43.077 52.224 27.648l51.063-27.989c29.013-15.906 29.15-42.189.41-58.368"}),n.jsx("path",{fill:"currentColor",d:"m810.667 913.135-.478.068H201.796c-19.865 0-36.727-11.673-36.727-25.6v-618.36h154.965c51.268 0 92.911-39.39 92.911-87.858v-87.86H810.19c19.797 0 36.522 11.742 36.522 25.669V739.26h61.987V119.262c0-46.421-44.169-84.241-98.51-84.241H328.364l-225.28 194.56v658.09c0 46.285 44.236 84.105 98.713 84.105H810.19c43.759 0 80.554-24.713 93.32-58.573h-92.842zM350.89 94.89v86.562c0 16.11-13.858 29.286-30.925 29.286H216.815L350.959 94.891z"})]})}function sr(){return n.jsx("svg",{height:"1em",viewBox:"0 0 15 15",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M2.5 10.5H2v.5h.5zm2 0v.5H5v-.5zm9-7h.5v-.207l-.146-.147zm-3-3l.354-.354L10.707 0H10.5zM2 6v4.5h1V6zm.5 5h2v-1h-2zm2.5-.5v-2H4v2zM3 7h2V6H3zM2 5V1.5H1V5zm11-1.5V5h1V3.5zM2.5 1h8V0h-8zm7.646-.146l3 3l.708-.708l-3-3zM2 1.5a.5.5 0 0 1 .5-.5V0A1.5 1.5 0 0 0 1 1.5zM1 12v1.5h1V12zm1.5 3h10v-1h-10zM14 13.5V12h-1v1.5zM12.5 15a1.5 1.5 0 0 0 1.5-1.5h-1a.5.5 0 0 1-.5.5zM1 13.5A1.5 1.5 0 0 0 2.5 15v-1a.5.5 0 0 1-.5-.5zM6 7h3V6H6zm0 4h3v-1H6zm1-4.5v4h1v-4zm3.5.5H13V6h-2.5zM10 6v5h1V6zm.5 3H12V8h-1.5z",fill:"currentColor"})})}function lr(){return n.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:n.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[n.jsx("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),n.jsx("path",{d:"M5 12V5a2 2 0 0 1 2-2h7l5 5v4M2 21v-6m3 0v6m-3-3h3m15-3v6h2m-9 0v-6l2 3l2-3v6m-9.5-6h3M9 15v6"})]})})}function ir(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z"})})}function ar(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48",children:n.jsxs("g",{fill:"none",stroke:"currentColor",strokeWidth:"4",children:[n.jsx("circle",{cx:"10",cy:"24",r:"4"}),n.jsx("circle",{cx:"38",cy:"10",r:"4"}),n.jsx("circle",{cx:"38",cy:"24",r:"4"}),n.jsx("circle",{cx:"38",cy:"38",r:"4"}),n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M34 38H22V10h12M14 24h20"})]})})}function cr(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z"})})}function dr(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548",color:"currentColor"})})}function ur(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"})})}const hr={Bold:r.Bold,LoaderCircle:r.LoaderCircle,Italic:r.Italic,Underline:r.Underline,Quote:r.Quote,TextQuote:qe,Strikethrough:r.Strikethrough,Minus:r.Minus,Eraser:r.Eraser,PaintRoller:r.PaintRoller,Redo2:r.Redo2,Undo2:r.Undo2,AlignCenter:G.TextAlignCenterIcon,AlignJustify:G.TextAlignJustifyIcon,AlignLeft:G.TextAlignLeftIcon,AlignRight:G.TextAlignRightIcon,ChevronDown:r.ChevronDown,Subscript:r.Subscript,Superscript:r.Superscript,Code:r.Code,Code2:r.CodeXml,Type:r.Type,IndentIncrease:r.IndentIncrease,IndentDecrease:r.IndentDecrease,List:r.List,ListOrdered:r.ListOrdered,ListTodo:r.ListTodo,Link:r.Link,ImageUp:r.ImageUp,Video:r.Video,Maximize:r.Maximize,Minimize:r.Minimize,Table:r.Table,Sparkles:r.Sparkles,Pencil:r.Pencil,Unlink:r.Unlink,BetweenHorizonalEnd:r.BetweenHorizonalEnd,BetweenHorizonalStart:r.BetweenHorizonalStart,BetweenVerticalStart:r.BetweenVerticalStart,BetweenVerticalEnd:r.BetweenVerticalEnd,TableCellsMerge:r.TableCellsMerge,TableCellsSplit:r.TableCellsSplit,Trash2:r.Trash2,Trash:r.Trash,Replace:r.Replace,ChevronsUpDown:r.ChevronsUpDown,LineHeight:Je,Word:De,HeadingParagraph:r.Pilcrow,Heading1:r.Heading1,Heading2:r.Heading2,Heading3:r.Heading3,Heading4:r.Heading4,Heading5:r.Heading5,Heading6:r.Heading6,Columns2:r.Columns2,Columns3:r.Columns3,Columns4:r.Columns4,Plus:r.Plus,Grip:r.GripVertical,Copy:r.Copy,Clipboard:r.Clipboard,PanelLeft:r.PanelLeft,PanelRight:r.PanelRight,Columns:r.Columns2,Iframe:r.Frame,MenuDown:ce,SizeS:Ye,SizeM:Ke,SizeL:Qe,AspectRatio:_e,Emoji:r.SmilePlus,DeleteColumn:$e,DeleteRow:Ze,SearchAndReplace:r.Replace,EmojiIcon:r.SmilePlusIcon,KatexIcon:r.Sigma,ExportPdf:de,ExportWord:ue,ImportWord:ur,ColumnAddLeft:rr,ColumnAddRight:tr,BookMarked:r.BookMarked,Excalidraw:nr,ZoomIn:r.ZoomIn,ZoomOut:r.ZoomOut,Settings:r.Settings,Eye:r.Eye,TextDirection:or,LeftToRight:ir,RightToLeft:cr,Attachment:r.Paperclip,GifIcon:sr,ChevronUp:r.ChevronUp,Crop:r.CropIcon,Mermaid:ar,Twitter:dr,CodeView:er,FlipX:r.FlipVertical,FlipY:r.FlipHorizontal,PencilRuler:r.PencilRuler,WrapText:r.WrapText,Loader:r.Loader2,X:r.X,Html:lr,ExternalLink:r.ExternalLink,Callout:r.NotebookPen},re=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,te=oe.clsx,pr=(e,o)=>t=>{var s;if((o==null?void 0:o.variants)==null)return te(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:c,defaultVariants:l}=o,d=Object.keys(c).map(u=>{const b=t==null?void 0:t[u],v=l==null?void 0:l[u];if(b===null)return null;const w=re(b)||re(v);return c[u][w]}),i=t&&Object.entries(t).reduce((u,b)=>{let[v,w]=b;return w===void 0||(u[v]=w),u},{}),m=o==null||(s=o.compoundVariants)===null||s===void 0?void 0:s.reduce((u,b)=>{let{class:v,className:w,...k}=b;return Object.entries(k).every(y=>{let[f,h]=y;return Array.isArray(h)?h.includes({...l,...i}[f]):{...l,...i}[f]===h})?[...u,v,w]:u},[]);return te(e,d,m,t==null?void 0:t.class,t==null?void 0:t.className)};exports.ExportPdf=de;exports.ExportWord=ue;exports.MenuDown=ce;exports.cn=Xe;exports.cva=pr;exports.icons=hr;
|
package/lib/input-qvpuOf-3.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import * as o from "react";
|
|
3
|
-
import { c as x } from "./index-CAiZY1nx.js";
|
|
4
|
-
const h = o.forwardRef(
|
|
5
|
-
({ className: t, type: e, ...r }, i) => /* @__PURE__ */ c(
|
|
6
|
-
"input",
|
|
7
|
-
{
|
|
8
|
-
ref: i,
|
|
9
|
-
type: e,
|
|
10
|
-
className: x(
|
|
11
|
-
"richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",
|
|
12
|
-
t
|
|
13
|
-
),
|
|
14
|
-
...r
|
|
15
|
-
}
|
|
16
|
-
)
|
|
17
|
-
);
|
|
18
|
-
h.displayName = "Input";
|
|
19
|
-
export {
|
|
20
|
-
h as I
|
|
21
|
-
};
|
package/lib/input-s0JD5kf2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),o=require("react"),s=require("./index-DWSAk_9a.cjs");function u(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const x=u(o),c=x.forwardRef(({className:t,type:r,...e},i)=>n.jsx("input",{ref:i,type:r,className:s.cn("richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",t),...e}));c.displayName="Input";exports.Input=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./throttle-gTTvqDTW.cjs");function d(i,t,f){return i===i&&(f!==void 0&&(i=i<=f?i:f),t!==void 0&&(i=i>=t?i:t)),i}function c(i,t,f){return f===void 0&&(f=t,t=void 0),f!==void 0&&(f=n.toNumber(f),f=f===f?f:0),t!==void 0&&(t=n.toNumber(t),t=t===t?t:0),d(n.toNumber(i),t,f)}var s="[object Number]";function a(i){return typeof i=="number"||n.isObjectLike(i)&&n.baseGetTag(i)==s}exports.clamp=c;exports.isNumber=a;
|
package/lib/isNumber-WaBzl_0s.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t, i as d, b as a } from "./throttle-CRNq0z-O.js";
|
|
2
|
-
function s(i, f, n) {
|
|
3
|
-
return i === i && (n !== void 0 && (i = i <= n ? i : n), f !== void 0 && (i = i >= f ? i : f)), i;
|
|
4
|
-
}
|
|
5
|
-
function b(i, f, n) {
|
|
6
|
-
return n === void 0 && (n = f, f = void 0), n !== void 0 && (n = t(n), n = n === n ? n : 0), f !== void 0 && (f = t(f), f = f === f ? f : 0), s(t(i), f, n);
|
|
7
|
-
}
|
|
8
|
-
var c = "[object Number]";
|
|
9
|
-
function g(i) {
|
|
10
|
-
return typeof i == "number" || d(i) && a(i) == c;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
b as c,
|
|
14
|
-
g as i
|
|
15
|
-
};
|
package/lib/label-CFax-gzo.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),l=require("@radix-ui/react-label"),c=require("./index-DWSAk_9a.cjs"),u=require("react");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=i(l),d=i(u),m=c.cva("richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"),o=d.forwardRef(({className:e,...r},t)=>s.jsx(n.Root,{className:c.cn(m(),e),ref:t,...r}));o.displayName=n.Root.displayName;exports.Label=o;
|
package/lib/label-DC37f2RQ.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import * as t from "@radix-ui/react-label";
|
|
3
|
-
import { c as i, a as s } from "./index-CAiZY1nx.js";
|
|
4
|
-
import * as c from "react";
|
|
5
|
-
const m = s(
|
|
6
|
-
"richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
|
|
7
|
-
), l = c.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(t.Root, { className: i(m(), e), ref: r, ...a }));
|
|
8
|
-
l.displayName = t.Root.displayName;
|
|
9
|
-
export {
|
|
10
|
-
l as L
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),k=require("lucide-react"),n=require("react"),E=require("react-colorful"),j=require("./index-bVGIXhRg.cjs"),v=require("./popover-B05Fd8lC.cjs"),P=require("./input-s0JD5kf2.cjs"),O=require("@radix-ui/react-separator"),y=require("./index-DWSAk_9a.cjs"),R=require("./button-BmTP96NR.cjs");function L(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const c in t)if(c!=="default"){const h=Object.getOwnPropertyDescriptor(t,c);Object.defineProperty(r,c,h.get?h:{enumerable:!0,get:()=>t[c]})}}return r.default=t,Object.freeze(r)}const _=L(n),N=L(O);function q(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:e.jsx("path",{fill:"currentColor",d:"M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z"})})}const w=typeof window>"u";function S(t,r,c=window){const h=n.useRef(void 0);n.useEffect(()=>{h.current=r},[r]),n.useEffect(()=>{if(!(c&&c.addEventListener))return;const f=x=>{h.current&&h.current(x)};return c.addEventListener(t,f),()=>{c.removeEventListener(t,f)}},[t,c])}function $(t,r,c={}){const{initializeWithValue:h=!0}=c,i=n.useCallback(o=>c.serializer?c.serializer(o):JSON.stringify(o),[c]),f=n.useCallback(o=>{if(c.deserializer)return c.deserializer(o);if(o==="undefined")return;const l=r instanceof Function?r():r;let s;try{s=JSON.parse(o)}catch(a){return console.error("Error parsing JSON:",a),l}return s},[c,r]),x=n.useCallback(()=>{const o=r instanceof Function?r():r;if(w)return o;try{const l=window.localStorage.getItem(t);return l?f(l):o}catch(l){return console.warn(`Error reading localStorage key “${t}”:`,l),o}},[r,t,f]),[d,p]=n.useState(()=>h?x():r instanceof Function?r():r),b=n.useCallback(o=>{w&&console.warn(`Tried setting localStorage key “${t}” even though environment is not a client`);try{const l=o instanceof Function?o(x()):o;window.localStorage.setItem(t,i(l)),p(l),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))}catch(l){console.warn(`Error setting localStorage key “${t}”:`,l)}},[t,i,x]),g=n.useCallback(()=>{w&&console.warn(`Tried removing localStorage key “${t}” even though environment is not a client`);const o=r instanceof Function?r():r;window.localStorage.removeItem(t),p(o),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))},[t,r]);n.useEffect(()=>{p(x())},[t]);const m=n.useCallback(o=>{o.key&&o.key!==t||p(x())},[t,x]);return S("storage",m),S("local-storage",m),[d,b,g]}function M(t){const{t:r}=j.useLocale(),{disabled:c=!1,value:h,onChange:i,colors:f=j.COLORS_LIST,highlight:x}=t,[d,p]=n.useState(!1),b=n.useMemo(()=>{const s=f,a=[];for(let u=0;u<s.length;u+=10)a.push(s.slice(u,u+10));return a},[f]),[g,m]=$(x?"richtext-recent-highlight":"richtext-recent-colors",[]),o=s=>{const a=[...g],u=a.indexOf(s);u!==-1&&a.splice(u,1),a.unshift(s),a.length>10&&a.pop(),m(a)};function l(s){if(s===void 0){i==null||i(s),p(!1);return}/^#([\da-f]{3}){1,2}$/i.test(s)&&(i==null||i(s),o(s),p(!1))}return e.jsxs(v.Popover,{modal:!0,onOpenChange:p,open:d,children:[e.jsx(v.PopoverTrigger,{asChild:!0,className:"!richtext-p-0",disabled:c,children:t==null?void 0:t.children}),e.jsx(v.PopoverContent,{align:"start",className:"richtext-size-full !richtext-p-2",hideWhenDetached:!0,side:"bottom",children:e.jsxs("div",{className:"richtext-flex richtext-flex-col",children:[e.jsxs("div",{className:"rd-1 richtext-flex richtext-cursor-pointer richtext-items-center richtext-gap-[4px] richtext-p-1 hover:richtext-bg-accent",onClick:()=>{l(void 0)},children:[e.jsx(q,{}),e.jsx("span",{className:"richtext-ml-1 richtext-text-sm",children:r(x?"editor.nofill":"editor.default")})]}),b.map((s,a)=>e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-p-0 last:richtext-pb-2",children:s.map((u,z)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-solid !richtext-border-transparent richtext-p-0.5 hover:!richtext-border-border",onClick:()=>l(u),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px]",style:{backgroundColor:u},children:u===h?e.jsx("svg",{className:"richtext-absolute -richtext-top-px richtext-left-px richtext-block richtext-size-3",viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})}):e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-${z}`))},`color-row-${a}`)),e.jsxs("div",{children:[e.jsx("div",{className:"richtext-my-1 richtext-text-sm",children:r("editor.recent")}),e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-flex-wrap richtext-p-0 last:richtext-pb-2",children:g==null?void 0:g.map((s,a)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-transparent richtext-p-0.5 hover:richtext-border-border hover:richtext-shadow-sm",onClick:()=>l(s),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px] richtext-border-transparent",style:{backgroundColor:s},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-recent-${a}`))})]}),e.jsx(T,{setColor:l})]})})]})}function T({setColor:t}){const{t:r}=j.useLocale(),[c,h]=n.useState(!1),[i,f]=n.useState("#000000"),x=n.useCallback(d=>{f(d)},[]);return e.jsxs(v.Popover,{onOpenChange:h,open:c,children:[e.jsx(v.PopoverTrigger,{asChild:!0,children:e.jsxs("div",{className:"richtext-p-1.5 richtext-text-sm hover:richtext-cursor-pointer hover:richtext-bg-accent",children:[r("editor.color.more"),"..."]})}),e.jsxs(v.PopoverContent,{children:[e.jsxs("div",{className:"richtext-flex richtext-flex-col richtext-items-center richtext-justify-center",children:[e.jsx(E.HexColorPicker,{color:i,onChange:d=>{x(d)}}),e.jsx(P.Input,{className:"richtext-mt-[8px] richtext-w-full",type:"text",value:i.replace("#",""),onChange:d=>{d.preventDefault(),d.stopPropagation(),x(`#${d.target.value}`)}})]}),e.jsx(C,{className:"richtext-my-[10px]"}),e.jsx(R.Button,{className:"richtext-w-full",onClick:d=>{d.preventDefault(),d.stopPropagation(),t(i),h(!1)},children:e.jsx(k.Plus,{size:16})})]})]})}const C=_.forwardRef(({className:t,orientation:r="horizontal",decorative:c=!0,...h},i)=>e.jsx(N.Root,{ref:i,decorative:c,orientation:r,className:y.cn("richtext-shrink-0 richtext-bg-border",r==="horizontal"?"richtext-h-[1px] richtext-w-full":"richtext-h-full richtext-w-[1px]",t),...h}));C.displayName=N.Root.displayName;exports.ColorPicker=M;exports.Separator=C;
|
package/lib/tabs-BeHxylKH.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import * as t from "@radix-ui/react-tabs";
|
|
3
|
-
import * as c from "react";
|
|
4
|
-
import { c as a } from "./index-CAiZY1nx.js";
|
|
5
|
-
const d = t.Root, o = c.forwardRef(({ className: e, ...i }, r) => /* @__PURE__ */ s(
|
|
6
|
-
t.List,
|
|
7
|
-
{
|
|
8
|
-
ref: r,
|
|
9
|
-
className: a(
|
|
10
|
-
"richtext-inline-flex richtext-h-10 richtext-items-center richtext-justify-center richtext-rounded-md richtext-bg-muted richtext-p-1 richtext-text-muted-foreground",
|
|
11
|
-
e
|
|
12
|
-
),
|
|
13
|
-
...i
|
|
14
|
-
}
|
|
15
|
-
));
|
|
16
|
-
o.displayName = t.List.displayName;
|
|
17
|
-
const n = c.forwardRef(({ className: e, ...i }, r) => /* @__PURE__ */ s(
|
|
18
|
-
t.Trigger,
|
|
19
|
-
{
|
|
20
|
-
ref: r,
|
|
21
|
-
className: a(
|
|
22
|
-
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-sm richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-all focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=active]:richtext-bg-background data-[state=active]:richtext-text-foreground data-[state=active]:richtext-shadow-sm",
|
|
23
|
-
e
|
|
24
|
-
),
|
|
25
|
-
...i
|
|
26
|
-
}
|
|
27
|
-
));
|
|
28
|
-
n.displayName = t.Trigger.displayName;
|
|
29
|
-
const x = c.forwardRef(({ className: e, ...i }, r) => /* @__PURE__ */ s(
|
|
30
|
-
t.Content,
|
|
31
|
-
{
|
|
32
|
-
ref: r,
|
|
33
|
-
className: a(
|
|
34
|
-
"richtext-mt-2 richtext-ring-offset-background focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1",
|
|
35
|
-
e
|
|
36
|
-
),
|
|
37
|
-
...i
|
|
38
|
-
}
|
|
39
|
-
));
|
|
40
|
-
x.displayName = t.Content.displayName;
|
|
41
|
-
export {
|
|
42
|
-
d as T,
|
|
43
|
-
o as a,
|
|
44
|
-
n as b,
|
|
45
|
-
x as c
|
|
46
|
-
};
|
package/lib/tabs-DBqNpGAq.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),h=require("@radix-ui/react-tabs"),d=require("react"),s=require("./index-DWSAk_9a.cjs");function o(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return i.default=t,Object.freeze(i)}const r=o(h),n=o(d),l=r.Root,x=n.forwardRef(({className:t,...i},e)=>c.jsx(r.List,{ref:e,className:s.cn("richtext-inline-flex richtext-h-10 richtext-items-center richtext-justify-center richtext-rounded-md richtext-bg-muted richtext-p-1 richtext-text-muted-foreground",t),...i}));x.displayName=r.List.displayName;const f=n.forwardRef(({className:t,...i},e)=>c.jsx(r.Trigger,{ref:e,className:s.cn("richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-sm richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-all focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=active]:richtext-bg-background data-[state=active]:richtext-text-foreground data-[state=active]:richtext-shadow-sm",t),...i}));f.displayName=r.Trigger.displayName;const u=n.forwardRef(({className:t,...i},e)=>c.jsx(r.Content,{ref:e,className:s.cn("richtext-mt-2 richtext-ring-offset-background focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1",t),...i}));u.displayName=r.Content.displayName;exports.Tabs=l;exports.TabsContent=u;exports.TabsList=x;exports.TabsTrigger=f;
|
package/lib/throttle-CRNq0z-O.js
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { N as C, n as L, a2 as W, m as z } from "./clsx-m_C5j3RU.js";
|
|
2
|
-
var B = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, H = C.create({
|
|
3
|
-
name: "image",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
inline: !1,
|
|
7
|
-
allowBase64: !1,
|
|
8
|
-
HTMLAttributes: {},
|
|
9
|
-
resize: !1
|
|
10
|
-
};
|
|
11
|
-
},
|
|
12
|
-
inline() {
|
|
13
|
-
return this.options.inline;
|
|
14
|
-
},
|
|
15
|
-
group() {
|
|
16
|
-
return this.options.inline ? "inline" : "block";
|
|
17
|
-
},
|
|
18
|
-
draggable: !0,
|
|
19
|
-
addAttributes() {
|
|
20
|
-
return {
|
|
21
|
-
src: {
|
|
22
|
-
default: null
|
|
23
|
-
},
|
|
24
|
-
alt: {
|
|
25
|
-
default: null
|
|
26
|
-
},
|
|
27
|
-
title: {
|
|
28
|
-
default: null
|
|
29
|
-
},
|
|
30
|
-
width: {
|
|
31
|
-
default: null
|
|
32
|
-
},
|
|
33
|
-
height: {
|
|
34
|
-
default: null
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
parseHTML() {
|
|
39
|
-
return [
|
|
40
|
-
{
|
|
41
|
-
tag: this.options.allowBase64 ? "img[src]" : 'img[src]:not([src^="data:"])'
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
},
|
|
45
|
-
renderHTML({ HTMLAttributes: e }) {
|
|
46
|
-
return ["img", z(this.options.HTMLAttributes, e)];
|
|
47
|
-
},
|
|
48
|
-
parseMarkdown: (e, t) => t.createNode("image", {
|
|
49
|
-
src: e.href,
|
|
50
|
-
title: e.title,
|
|
51
|
-
alt: e.text
|
|
52
|
-
}),
|
|
53
|
-
renderMarkdown: (e) => {
|
|
54
|
-
var t, n, r, a, c, u;
|
|
55
|
-
const o = (n = (t = e.attrs) == null ? void 0 : t.src) != null ? n : "", s = (a = (r = e.attrs) == null ? void 0 : r.alt) != null ? a : "", d = (u = (c = e.attrs) == null ? void 0 : c.title) != null ? u : "";
|
|
56
|
-
return d ? `` : ``;
|
|
57
|
-
},
|
|
58
|
-
addNodeView() {
|
|
59
|
-
if (!this.options.resize || !this.options.resize.enabled || typeof document > "u")
|
|
60
|
-
return null;
|
|
61
|
-
const { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize;
|
|
62
|
-
return ({ node: a, getPos: c, HTMLAttributes: u, editor: o }) => {
|
|
63
|
-
const s = document.createElement("img");
|
|
64
|
-
Object.entries(u).forEach(([l, f]) => {
|
|
65
|
-
if (f != null)
|
|
66
|
-
switch (l) {
|
|
67
|
-
case "width":
|
|
68
|
-
case "height":
|
|
69
|
-
break;
|
|
70
|
-
default:
|
|
71
|
-
s.setAttribute(l, f);
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
}), s.src = u.src;
|
|
75
|
-
const d = new W({
|
|
76
|
-
element: s,
|
|
77
|
-
editor: o,
|
|
78
|
-
node: a,
|
|
79
|
-
getPos: c,
|
|
80
|
-
onResize: (l, f) => {
|
|
81
|
-
s.style.width = `${l}px`, s.style.height = `${f}px`;
|
|
82
|
-
},
|
|
83
|
-
onCommit: (l, f) => {
|
|
84
|
-
const b = c();
|
|
85
|
-
b !== void 0 && this.editor.chain().setNodeSelection(b).updateAttributes(this.name, {
|
|
86
|
-
width: l,
|
|
87
|
-
height: f
|
|
88
|
-
}).run();
|
|
89
|
-
},
|
|
90
|
-
onUpdate: (l, f, b) => l.type === a.type,
|
|
91
|
-
options: {
|
|
92
|
-
directions: e,
|
|
93
|
-
min: {
|
|
94
|
-
width: t,
|
|
95
|
-
height: n
|
|
96
|
-
},
|
|
97
|
-
preserveAspectRatio: r === !0
|
|
98
|
-
}
|
|
99
|
-
}), m = d.dom;
|
|
100
|
-
return m.style.visibility = "hidden", m.style.pointerEvents = "none", s.onload = () => {
|
|
101
|
-
m.style.visibility = "", m.style.pointerEvents = "";
|
|
102
|
-
}, d;
|
|
103
|
-
};
|
|
104
|
-
},
|
|
105
|
-
addCommands() {
|
|
106
|
-
return {
|
|
107
|
-
setImage: (e) => ({ commands: t }) => t.insertContent({
|
|
108
|
-
type: this.name,
|
|
109
|
-
attrs: e
|
|
110
|
-
})
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
addInputRules() {
|
|
114
|
-
return [
|
|
115
|
-
L({
|
|
116
|
-
find: B,
|
|
117
|
-
type: this.type,
|
|
118
|
-
getAttributes: (e) => {
|
|
119
|
-
const [, , t, n, r] = e;
|
|
120
|
-
return { src: n, alt: t, title: r };
|
|
121
|
-
}
|
|
122
|
-
})
|
|
123
|
-
];
|
|
124
|
-
}
|
|
125
|
-
}), be = H, P = typeof global == "object" && global && global.Object === Object && global, F = typeof self == "object" && self && self.Object === Object && self, R = P || F || Function("return this")(), T = R.Symbol, _ = Object.prototype, U = _.hasOwnProperty, V = _.toString, h = T ? T.toStringTag : void 0;
|
|
126
|
-
function D(e) {
|
|
127
|
-
var t = U.call(e, h), n = e[h];
|
|
128
|
-
try {
|
|
129
|
-
e[h] = void 0;
|
|
130
|
-
var r = !0;
|
|
131
|
-
} catch {
|
|
132
|
-
}
|
|
133
|
-
var a = V.call(e);
|
|
134
|
-
return r && (t ? e[h] = n : delete e[h]), a;
|
|
135
|
-
}
|
|
136
|
-
var G = Object.prototype, X = G.toString;
|
|
137
|
-
function q(e) {
|
|
138
|
-
return X.call(e);
|
|
139
|
-
}
|
|
140
|
-
var J = "[object Null]", K = "[object Undefined]", E = T ? T.toStringTag : void 0;
|
|
141
|
-
function Q(e) {
|
|
142
|
-
return e == null ? e === void 0 ? K : J : E && E in Object(e) ? D(e) : q(e);
|
|
143
|
-
}
|
|
144
|
-
function Y(e) {
|
|
145
|
-
return e != null && typeof e == "object";
|
|
146
|
-
}
|
|
147
|
-
var Z = "[object Symbol]";
|
|
148
|
-
function ee(e) {
|
|
149
|
-
return typeof e == "symbol" || Y(e) && Q(e) == Z;
|
|
150
|
-
}
|
|
151
|
-
var te = /\s/;
|
|
152
|
-
function ne(e) {
|
|
153
|
-
for (var t = e.length; t-- && te.test(e.charAt(t)); )
|
|
154
|
-
;
|
|
155
|
-
return t;
|
|
156
|
-
}
|
|
157
|
-
var re = /^\s+/;
|
|
158
|
-
function ie(e) {
|
|
159
|
-
return e && e.slice(0, ne(e) + 1).replace(re, "");
|
|
160
|
-
}
|
|
161
|
-
function v(e) {
|
|
162
|
-
var t = typeof e;
|
|
163
|
-
return e != null && (t == "object" || t == "function");
|
|
164
|
-
}
|
|
165
|
-
var I = NaN, ae = /^[-+]0x[0-9a-f]+$/i, oe = /^0b[01]+$/i, se = /^0o[0-7]+$/i, le = parseInt;
|
|
166
|
-
function $(e) {
|
|
167
|
-
if (typeof e == "number")
|
|
168
|
-
return e;
|
|
169
|
-
if (ee(e))
|
|
170
|
-
return I;
|
|
171
|
-
if (v(e)) {
|
|
172
|
-
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
173
|
-
e = v(t) ? t + "" : t;
|
|
174
|
-
}
|
|
175
|
-
if (typeof e != "string")
|
|
176
|
-
return e === 0 ? e : +e;
|
|
177
|
-
e = ie(e);
|
|
178
|
-
var n = oe.test(e);
|
|
179
|
-
return n || se.test(e) ? le(e.slice(2), n ? 2 : 8) : ae.test(e) ? I : +e;
|
|
180
|
-
}
|
|
181
|
-
var S = function() {
|
|
182
|
-
return R.Date.now();
|
|
183
|
-
}, ue = "Expected a function", ce = Math.max, de = Math.min;
|
|
184
|
-
function fe(e, t, n) {
|
|
185
|
-
var r, a, c, u, o, s, d = 0, m = !1, l = !1, f = !0;
|
|
186
|
-
if (typeof e != "function")
|
|
187
|
-
throw new TypeError(ue);
|
|
188
|
-
t = $(t) || 0, v(n) && (m = !!n.leading, l = "maxWait" in n, c = l ? ce($(n.maxWait) || 0, t) : c, f = "trailing" in n ? !!n.trailing : f);
|
|
189
|
-
function b(i) {
|
|
190
|
-
var g = r, p = a;
|
|
191
|
-
return r = a = void 0, d = i, u = e.apply(p, g), u;
|
|
192
|
-
}
|
|
193
|
-
function A(i) {
|
|
194
|
-
return d = i, o = setTimeout(y, t), m ? b(i) : u;
|
|
195
|
-
}
|
|
196
|
-
function N(i) {
|
|
197
|
-
var g = i - s, p = i - d, w = t - g;
|
|
198
|
-
return l ? de(w, c - p) : w;
|
|
199
|
-
}
|
|
200
|
-
function O(i) {
|
|
201
|
-
var g = i - s, p = i - d;
|
|
202
|
-
return s === void 0 || g >= t || g < 0 || l && p >= c;
|
|
203
|
-
}
|
|
204
|
-
function y() {
|
|
205
|
-
var i = S();
|
|
206
|
-
if (O(i))
|
|
207
|
-
return x(i);
|
|
208
|
-
o = setTimeout(y, N(i));
|
|
209
|
-
}
|
|
210
|
-
function x(i) {
|
|
211
|
-
return o = void 0, f && r ? b(i) : (r = a = void 0, u);
|
|
212
|
-
}
|
|
213
|
-
function k() {
|
|
214
|
-
o !== void 0 && clearTimeout(o), d = 0, r = s = a = o = void 0;
|
|
215
|
-
}
|
|
216
|
-
function M() {
|
|
217
|
-
return o === void 0 ? u : x(S());
|
|
218
|
-
}
|
|
219
|
-
function j() {
|
|
220
|
-
var i = S(), g = O(i);
|
|
221
|
-
if (r = arguments, a = this, s = i, g) {
|
|
222
|
-
if (o === void 0)
|
|
223
|
-
return A(s);
|
|
224
|
-
if (l)
|
|
225
|
-
return clearTimeout(o), o = setTimeout(y, t), b(s);
|
|
226
|
-
}
|
|
227
|
-
return o === void 0 && (o = setTimeout(y, t)), u;
|
|
228
|
-
}
|
|
229
|
-
return j.cancel = k, j.flush = M, j;
|
|
230
|
-
}
|
|
231
|
-
var ge = "Expected a function";
|
|
232
|
-
function pe(e, t, n) {
|
|
233
|
-
var r = !0, a = !0;
|
|
234
|
-
if (typeof e != "function")
|
|
235
|
-
throw new TypeError(ge);
|
|
236
|
-
return v(n) && (r = "leading" in n ? !!n.leading : r, a = "trailing" in n ? !!n.trailing : a), fe(e, t, {
|
|
237
|
-
leading: r,
|
|
238
|
-
maxWait: t,
|
|
239
|
-
trailing: a
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
export {
|
|
243
|
-
pe as a,
|
|
244
|
-
Q as b,
|
|
245
|
-
be as c,
|
|
246
|
-
fe as d,
|
|
247
|
-
Y as i,
|
|
248
|
-
$ as t
|
|
249
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const T=require("./clsx-CXbNJWDD.cjs");var B=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,H=T.Node3.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",T.mergeAttributes(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,n,r,a,c,u;const o=(n=(t=e.attrs)==null?void 0:t.src)!=null?n:"",s=(a=(r=e.attrs)==null?void 0:r.alt)!=null?a:"",d=(u=(c=e.attrs)==null?void 0:c.title)!=null?u:"";return d?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;const{directions:e,minWidth:t,minHeight:n,alwaysPreserveAspectRatio:r}=this.options.resize;return({node:a,getPos:c,HTMLAttributes:u,editor:o})=>{const s=document.createElement("img");Object.entries(u).forEach(([l,f])=>{if(f!=null)switch(l){case"width":case"height":break;default:s.setAttribute(l,f);break}}),s.src=u.src;const d=new T.ResizableNodeView({element:s,editor:o,node:a,getPos:c,onResize:(l,f)=>{s.style.width=`${l}px`,s.style.height=`${f}px`},onCommit:(l,f)=>{const b=c();b!==void 0&&this.editor.chain().setNodeSelection(b).updateAttributes(this.name,{width:l,height:f}).run()},onUpdate:(l,f,b)=>l.type===a.type,options:{directions:e,min:{width:t,height:n},preserveAspectRatio:r===!0}}),m=d.dom;return m.style.visibility="hidden",m.style.pointerEvents="none",s.onload=()=>{m.style.visibility="",m.style.pointerEvents=""},d}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[T.nodeInputRule({find:B,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),P=H,F=typeof global=="object"&&global&&global.Object===Object&&global,U=typeof self=="object"&&self&&self.Object===Object&&self,_=F||U||Function("return this")(),v=_.Symbol,A=Object.prototype,G=A.hasOwnProperty,V=A.toString,h=v?v.toStringTag:void 0;function D(e){var t=G.call(e,h),n=e[h];try{e[h]=void 0;var r=!0}catch{}var a=V.call(e);return r&&(t?e[h]=n:delete e[h]),a}var X=Object.prototype,q=X.toString;function J(e){return q.call(e)}var K="[object Null]",Q="[object Undefined]",$=v?v.toStringTag:void 0;function N(e){return e==null?e===void 0?Q:K:$&&$ in Object(e)?D(e):J(e)}function k(e){return e!=null&&typeof e=="object"}var Y="[object Symbol]";function Z(e){return typeof e=="symbol"||k(e)&&N(e)==Y}var ee=/\s/;function te(e){for(var t=e.length;t--&&ee.test(e.charAt(t)););return t}var ne=/^\s+/;function re(e){return e&&e.slice(0,te(e)+1).replace(ne,"")}function j(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var R=NaN,ie=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,oe=/^0o[0-7]+$/i,se=parseInt;function x(e){if(typeof e=="number")return e;if(Z(e))return R;if(j(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=j(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=re(e);var n=ae.test(e);return n||oe.test(e)?se(e.slice(2),n?2:8):ie.test(e)?R:+e}var S=function(){return _.Date.now()},le="Expected a function",ue=Math.max,ce=Math.min;function L(e,t,n){var r,a,c,u,o,s,d=0,m=!1,l=!1,f=!0;if(typeof e!="function")throw new TypeError(le);t=x(t)||0,j(n)&&(m=!!n.leading,l="maxWait"in n,c=l?ue(x(n.maxWait)||0,t):c,f="trailing"in n?!!n.trailing:f);function b(i){var g=r,p=a;return r=a=void 0,d=i,u=e.apply(p,g),u}function M(i){return d=i,o=setTimeout(y,t),m?b(i):u}function C(i){var g=i-s,p=i-d,I=t-g;return l?ce(I,c-p):I}function w(i){var g=i-s,p=i-d;return s===void 0||g>=t||g<0||l&&p>=c}function y(){var i=S();if(w(i))return E(i);o=setTimeout(y,C(i))}function E(i){return o=void 0,f&&r?b(i):(r=a=void 0,u)}function W(){o!==void 0&&clearTimeout(o),d=0,r=s=a=o=void 0}function z(){return o===void 0?u:E(S())}function O(){var i=S(),g=w(i);if(r=arguments,a=this,s=i,g){if(o===void 0)return M(s);if(l)return clearTimeout(o),o=setTimeout(y,t),b(s)}return o===void 0&&(o=setTimeout(y,t)),u}return O.cancel=W,O.flush=z,O}var de="Expected a function";function fe(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(de);return j(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),L(e,t,{leading:r,maxWait:t,trailing:a})}exports.baseGetTag=N;exports.debounce=L;exports.index_default=P;exports.isObjectLike=k;exports.throttle=fe;exports.toNumber=x;
|
package/lib/toggle-DoJTBdvy.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { Slot as N } from "@radix-ui/react-slot";
|
|
3
|
-
import * as R from "react";
|
|
4
|
-
import y from "react";
|
|
5
|
-
import { i as w, c as x, a as z } from "./index-CAiZY1nx.js";
|
|
6
|
-
import { T as j, a as k, b as A, g as S } from "./useButtonProps-BE10eHkG.js";
|
|
7
|
-
import * as d from "@radix-ui/react-toggle";
|
|
8
|
-
const F = y.forwardRef(
|
|
9
|
-
(o, c) => {
|
|
10
|
-
const {
|
|
11
|
-
icon: a = void 0,
|
|
12
|
-
// title = undefined,
|
|
13
|
-
tooltip: e = void 0,
|
|
14
|
-
disabled: i = !1,
|
|
15
|
-
customClass: m = "",
|
|
16
|
-
// color = undefined,
|
|
17
|
-
loading: V = void 0,
|
|
18
|
-
shortcutKeys: r = void 0,
|
|
19
|
-
tooltipOptions: p = {},
|
|
20
|
-
action: s = void 0,
|
|
21
|
-
isActive: _ = void 0,
|
|
22
|
-
children: u,
|
|
23
|
-
asChild: g = !1,
|
|
24
|
-
upload: B = !1,
|
|
25
|
-
initialDisplayedColor: H = void 0,
|
|
26
|
-
dataState: v = !1,
|
|
27
|
-
...b
|
|
28
|
-
} = o, l = w[a], C = g ? N : f, T = (h) => {
|
|
29
|
-
if (i) {
|
|
30
|
-
h.preventDefault();
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
s == null || s(h);
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ n(j, { children: [
|
|
36
|
-
/* @__PURE__ */ t(k, { asChild: !0, children: /* @__PURE__ */ n(
|
|
37
|
-
C,
|
|
38
|
-
{
|
|
39
|
-
className: x("richtext-h-[32px] richtext-w-[32px]", m),
|
|
40
|
-
"data-state": v ? "on" : "off",
|
|
41
|
-
disabled: i,
|
|
42
|
-
onClick: T,
|
|
43
|
-
ref: c,
|
|
44
|
-
size: "sm",
|
|
45
|
-
...b,
|
|
46
|
-
children: [
|
|
47
|
-
l && /* @__PURE__ */ t(l, { className: "richtext-size-4" }),
|
|
48
|
-
u
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
) }),
|
|
52
|
-
e && /* @__PURE__ */ t(A, { ...p, className: "richtext-tooltip", children: /* @__PURE__ */ n("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
|
|
53
|
-
/* @__PURE__ */ t("div", { children: e }),
|
|
54
|
-
!!(r != null && r.length) && /* @__PURE__ */ t("span", { children: S(r) })
|
|
55
|
-
] }) })
|
|
56
|
-
] });
|
|
57
|
-
}
|
|
58
|
-
), D = z(
|
|
59
|
-
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
|
|
60
|
-
{
|
|
61
|
-
variants: {
|
|
62
|
-
variant: {
|
|
63
|
-
default: "richtext-bg-transparent",
|
|
64
|
-
outline: "richtext-border richtext-border-input richtext-bg-transparent hover:richtext-bg-accent hover:richtext-text-accent-foreground"
|
|
65
|
-
},
|
|
66
|
-
size: {
|
|
67
|
-
default: "richtext-h-10 richtext-px-3",
|
|
68
|
-
sm: "richtext-h-9 richtext-px-2",
|
|
69
|
-
lg: "richtext-h-11 richtext-px-5"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
defaultVariants: {
|
|
73
|
-
variant: "default",
|
|
74
|
-
size: "default"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
), f = R.forwardRef(({ className: o, variant: c, size: a, ...e }, i) => /* @__PURE__ */ t(
|
|
78
|
-
d.Root,
|
|
79
|
-
{
|
|
80
|
-
ref: i,
|
|
81
|
-
className: x(D({ variant: c, size: a, className: o })),
|
|
82
|
-
...e
|
|
83
|
-
}
|
|
84
|
-
));
|
|
85
|
-
f.displayName = d.Root.displayName;
|
|
86
|
-
export {
|
|
87
|
-
F as A,
|
|
88
|
-
f as T
|
|
89
|
-
};
|
package/lib/toggle-oFwBZC4x.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),N=require("@radix-ui/react-slot"),u=require("react"),a=require("./index-DWSAk_9a.cjs"),s=require("./useButtonProps-CFu0GHzW.cjs"),R=require("@radix-ui/react-toggle");function f(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const c=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,c.get?c:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const q=f(u),g=f(R),O=u.forwardRef((t,r)=>{const{icon:i=void 0,tooltip:c=void 0,disabled:o=!1,customClass:p="",loading:w=void 0,shortcutKeys:n=void 0,tooltipOptions:m={},action:l=void 0,isActive:z=void 0,children:v,asChild:b=!1,upload:P=!1,initialDisplayedColor:_=void 0,dataState:j=!1,...T}=t,d=a.icons[i],y=b?N.Slot:x,C=h=>{if(o){h.preventDefault();return}l==null||l(h)};return e.jsxs(s.Tooltip,{children:[e.jsx(s.TooltipTrigger,{asChild:!0,children:e.jsxs(y,{className:a.cn("richtext-h-[32px] richtext-w-[32px]",p),"data-state":j?"on":"off",disabled:o,onClick:C,ref:r,size:"sm",...T,children:[d&&e.jsx(d,{className:"richtext-size-4"}),v]})}),c&&e.jsx(s.TooltipContent,{...m,className:"richtext-tooltip",children:e.jsxs("div",{className:"richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center",children:[e.jsx("div",{children:c}),!!(n!=null&&n.length)&&e.jsx("span",{children:s.getShortcutKeys(n)})]})})]})}),S=a.cva("richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",{variants:{variant:{default:"richtext-bg-transparent",outline:"richtext-border richtext-border-input richtext-bg-transparent hover:richtext-bg-accent hover:richtext-text-accent-foreground"},size:{default:"richtext-h-10 richtext-px-3",sm:"richtext-h-9 richtext-px-2",lg:"richtext-h-11 richtext-px-5"}},defaultVariants:{variant:"default",size:"default"}}),x=q.forwardRef(({className:t,variant:r,size:i,...c},o)=>e.jsx(g.Root,{ref:o,className:a.cn(S({variant:r,size:i,className:t})),...c}));x.displayName=g.Root.displayName;exports.ActionButton=O;exports.Toggle=x;
|