@yoopta/themes-shadcn 6.0.0 → 6.0.2
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/embed/elements/embed/embed-element.d.ts +1 -1
- package/dist/embed/elements/embed/embed-element.d.ts.map +1 -1
- package/dist/embed/elements/embed/embed-render.d.ts.map +1 -1
- package/dist/embed/index.d.ts +1 -1
- package/dist/embed.js +2 -2
- package/dist/file/elements/file/file-element.d.ts +1 -1
- package/dist/file/elements/file/file-element.d.ts.map +1 -1
- package/dist/file/index.d.ts +1 -1
- package/dist/file.js +2 -2
- package/dist/image/elements/image/image-element.d.ts +1 -1
- package/dist/image/elements/image/image-element.d.ts.map +1 -1
- package/dist/image/elements/image/image-render.d.ts.map +1 -1
- package/dist/image/index.d.ts +1 -1
- package/dist/image.js +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/steps/elements/steps-list-item.d.ts.map +1 -1
- package/dist/steps.js +1 -1
- package/dist/table.js +3 -3
- package/dist/variables.css +50 -0
- package/dist/video/elements/video/video-element.d.ts +1 -1
- package/dist/video/elements/video/video-element.d.ts.map +1 -1
- package/dist/video/elements/video/video-render.d.ts.map +1 -1
- package/dist/video/index.d.ts +1 -1
- package/dist/video.js +2 -2
- package/package.json +15 -14
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t}from"./chunks/style-inject.es-e87a8d02.js";import{AccordionUI as r}from"./accordion.js";import{BlockquoteUI as o}from"./blockquote.js";import{CalloutUI as a}from"./callout.js";import{CarouselUI as e}from"./carousel.js";import{CodeUI as i}from"./code.js";import{CodeGroupUI as n}from"./code-group.js";import{DividerUI as d}from"./divider.js";import{EmbedUI as s}from"./embed.js";import{FileUI as c}from"./file.js";import{HeadingsUI as l}from"./headings.js";import{ImageUI as p}from"./image.js";import{LinkUI as g}from"./link.js";import{ListsUI as w}from"./lists.js";import{MentionUI as h}from"./mention.js";export{MentionDropdown}from"./mention.js";import{ParagraphUI as b}from"./paragraph.js";import{StepsUI as m}from"./steps.js";import{TableUI as u}from"./table.js";import{TableOfContentsUI as v}from"./table-of-contents.js";import{TabsUI as y}from"./tabs.js";import{VideoUI as f}from"./video.js";export{EmojiDropdown}from"./emoji.js";import"react/jsx-runtime";import"./chunks/_tslib-35bb891d.js";import"react";import"./chunks/index-17323747.js";import"react-dom";import"./chunks/index-91a5b8d5.js";import"./chunks/index-f85dae42.js";import"./chunks/index-ff0e3962.js";import"./chunks/index-23db6fea.js";import"./chunks/index-ce60ba41.js";import"./chunks/index-13505606.js";import"./chunks/utils-3345eade.js";import"@yoopta/editor";import"slate";import"./chunks/plus-840fe920.js";import"./chunks/createLucideIcon-8605f860.js";import"./chunks/trash-2-f36597ff.js";import"./chunks/chevron-down-28dfb290.js";import"@yoopta/ui/element-options";import"./chunks/button-7aec29d6.js";import"./chunks/arrow-right-38c3a9bd.js";import"./chunks/card-05710740.js";import"@yoopta/code";import"./chunks/index-0bca29df.js";import"./chunks/language-select-89735035.js";import"./chunks/select-a8bcd8b5.js";import"./chunks/index-056e5c06.js";import"./chunks/index-23c7fb16.js";import"./chunks/index-70f4e709.js";import"./chunks/Combination-575d4475.js";import"./chunks/index-1674c2c8.js";import"./chunks/check-06bd6a78.js";import"./chunks/chevron-up-9a13532e.js";import"./chunks/sparkles-ae42eae3.js";import"./chunks/tabs-294764a6.js";import"./chunks/index-ba3032f8.js";import"./chunks/x-9bfeb90f.js";import"./chunks/scroll-area-dae47c2c.js";import"./chunks/separator-219dc1f7.js";import"./chunks/index-a5cba5f7.js";import"@yoopta/embed";import"./chunks/input-b2431223.js";import"./chunks/index-87b75648.js";import"./chunks/code-d31bdce0.js";import"./chunks/play-998f23d2.js";import"./chunks/tooltip-65b9c3a0.js";import"./chunks/external-link-1579dd7f.js";import"@yoopta/file";import"./chunks/upload-b1dd210d.js";import"./chunks/file-text-ad3e3ebb.js";import"@yoopta/image";import"./chunks/label-21d46c31.js";import"./chunks/popover-8e6ee2ab.js";import"./chunks/settings-2-84fe63d9.js";import"./chunks/hover-card-d6a71398.js";import"@yoopta/lists";import"@yoopta/steps";import"./chunks/dropdown-menu-eb328f8d.js";import"@yoopta/table";import"@yoopta/ui/portal";import"@yoopta/table-of-contents";import"@yoopta/tabs";import"@yoopta/video";t(":root{--yoopta-shadcn-background:0 0% 100%;--yoopta-shadcn-foreground:0 0% 3.9%;--yoopta-shadcn-card:0 0% 100%;--yoopta-shadcn-card-foreground:0 0% 3.9%;--yoopta-shadcn-popover:0 0% 100%;--yoopta-shadcn-popover-foreground:0 0% 3.9%;--yoopta-shadcn-primary:0 0% 9%;--yoopta-shadcn-primary-foreground:0 0% 98%;--yoopta-shadcn-secondary:0 0% 96.1%;--yoopta-shadcn-secondary-foreground:0 0% 9%;--yoopta-shadcn-muted:0 0% 96.1%;--yoopta-shadcn-muted-foreground:0 0% 45.1%;--yoopta-shadcn-accent:0 0% 96.1%;--yoopta-shadcn-accent-foreground:0 0% 9%;--yoopta-shadcn-destructive:0 84.2% 60.2%;--yoopta-shadcn-destructive-foreground:0 0% 98%;--yoopta-shadcn-border:0 0% 89.8%;--yoopta-shadcn-input:0 0% 89.8%;--yoopta-shadcn-ring:0 0% 3.9%;--yoopta-shadcn-radius:0.5rem}.dark,[data-theme=dark],[data-yoopta-theme=dark]{--yoopta-shadcn-background:0 0% 3.9%;--yoopta-shadcn-foreground:0 0% 98%;--yoopta-shadcn-card:0 0% 3.9%;--yoopta-shadcn-card-foreground:0 0% 98%;--yoopta-shadcn-popover:0 0% 3.9%;--yoopta-shadcn-popover-foreground:0 0% 98%;--yoopta-shadcn-primary:0 0% 98%;--yoopta-shadcn-primary-foreground:0 0% 9%;--yoopta-shadcn-secondary:0 0% 14.9%;--yoopta-shadcn-secondary-foreground:0 0% 98%;--yoopta-shadcn-muted:0 0% 14.9%;--yoopta-shadcn-muted-foreground:0 0% 63.9%;--yoopta-shadcn-accent:0 0% 14.9%;--yoopta-shadcn-accent-foreground:0 0% 98%;--yoopta-shadcn-destructive:0 62.8% 30.6%;--yoopta-shadcn-destructive-foreground:0 0% 98%;--yoopta-shadcn-border:0 0% 14.9%;--yoopta-shadcn-input:0 0% 14.9%;--yoopta-shadcn-ring:0 0% 83.1%}");function x(t,x){const k={Accordion:r,Paragraph:b,Blockquote:o,Callout:a,Table:u,TableOfContents:v,Link:g,HeadingOne:l.HeadingOne,HeadingTwo:l.HeadingTwo,HeadingThree:l.HeadingThree,BulletedList:w.BulletedList,NumberedList:w.NumberedList,TodoList:w.TodoList,Image:p,Video:f,Code:i,Tabs:y,CodeGroup:n,Steps:m,Carousel:e,Divider:d,Embed:s,File:c,Mention:h};return t.map(t=>{var r;const o=t.getPlugin.type,a=k[o];if(!a)return t;const e=null==x?void 0:x[o],i=null!==(r=null==e?void 0:e.elements)&&void 0!==r?r:a;return t.extend(Object.assign({elements:i},e&&{injectElementsFromPlugins:e.injectElementsFromPlugins,events:e.events,options:e.options}))})}t("*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,system-ui,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{margin-left:auto;margin-right:auto;padding-left:2rem;padding-right:2rem;width:100%}@media (min-width:1400px){.container{max-width:1400px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.left-0{left:0}.left-1\\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-\\[2\\.75rem\\]{top:2.75rem}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\\[9998\\]{z-index:9998}.z-\\[9999\\]{z-index:9999}.m-0{margin:0}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-3\\.5{margin-left:-.875rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.ml-1{margin-left:.25rem}.ml-3\\.5{margin-left:.875rem}.ml-6{margin-left:1.5rem}.ml-\\[-13px\\]{margin-left:-13px}.ml-auto{margin-left:auto}.mr-1\\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.\\!block{display:block!important}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.size-2{height:.5rem;width:.5rem}.size-2\\.5{height:.625rem;width:.625rem}.size-3\\.5{height:.875rem;width:.875rem}.size-4{height:1rem;width:1rem}.size-7{height:1.75rem;width:1.75rem}.size-8{height:2rem;width:2rem}.size-full{height:100%;width:100%}.h-10{height:2.5rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[calc\\(100\\%-2\\.75rem\\)\\]{height:calc(100% - 2.75rem)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\\[200px\\]{max-height:200px}.max-h-\\[280px\\]{max-height:280px}.max-h-full{max-height:100%}.min-h-16{min-height:4rem}.min-h-\\[300px\\]{min-height:300px}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\\[1px\\]{width:1px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\\[160px\\]{min-width:160px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[220px\\]{min-width:220px}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[280px\\]{max-width:280px}.max-w-\\[320px\\]{max-width:320px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.table-fixed{table-layout:fixed}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y:0.5rem}.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y:calc(-50% - 2px)}.rotate-180,.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-45{--tw-rotate:45deg}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.scroll-m-20{scroll-margin:5rem}.scroll-my-1{scroll-margin-bottom:.25rem;scroll-margin-top:.25rem}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.125rem*var(--tw-space-y-reverse));margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-balance{text-wrap:balance}.rounded{border-radius:.25rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--yoopta-shadcn-radius)}.rounded-md{border-radius:calc(var(--yoopta-shadcn-radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--yoopta-shadcn-radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-left-radius:var(--yoopta-shadcn-radius);border-bottom-right-radius:var(--yoopta-shadcn-radius)}.rounded-t-lg{border-top-left-radius:var(--yoopta-shadcn-radius);border-top-right-radius:var(--yoopta-shadcn-radius)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-x-0{border-left-width:0;border-right-width:0}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.border-t{border-top-width:1px}.border-t-0{border-top-width:0}.border-t-2{border-top-width:2px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-border{border-color:hsl(var(--yoopta-shadcn-border))}.border-border\\/50{border-color:hsl(var(--yoopta-shadcn-border)/.5)}.border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.border-input{border-color:hsl(var(--yoopta-shadcn-input))}.border-muted-foreground\\/20{border-color:hsl(var(--yoopta-shadcn-muted-foreground)/.2)}.border-primary{border-color:hsl(var(--yoopta-shadcn-primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.border-yellow-200{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity,1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--yoopta-shadcn-accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity,1))}.bg-background{background-color:hsl(var(--yoopta-shadcn-background))}.bg-background\\/80{background-color:hsl(var(--yoopta-shadcn-background)/.8)}.bg-background\\/95{background-color:hsl(var(--yoopta-shadcn-background)/.95)}.bg-black\\/5{background-color:rgba(0,0,0,.05)}.bg-black\\/70{background-color:rgba(0,0,0,.7)}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-border{background-color:hsl(var(--yoopta-shadcn-border))}.bg-border\\/70{background-color:hsl(var(--yoopta-shadcn-border)/.7)}.bg-card{background-color:hsl(var(--yoopta-shadcn-card))}.bg-cyan-100{--tw-bg-opacity:1;background-color:rgb(207 250 254/var(--tw-bg-opacity,1))}.bg-cyan-500{--tw-bg-opacity:1;background-color:rgb(6 182 212/var(--tw-bg-opacity,1))}.bg-destructive{background-color:hsl(var(--yoopta-shadcn-destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity,1))}.bg-foreground{background-color:hsl(var(--yoopta-shadcn-foreground))}.bg-fuchsia-500{--tw-bg-opacity:1;background-color:rgb(217 70 239/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity,1))}.bg-lime-500{--tw-bg-opacity:1;background-color:rgb(132 204 22/var(--tw-bg-opacity,1))}.bg-muted{background-color:hsl(var(--yoopta-shadcn-muted))}.bg-muted\\/50{background-color:hsl(var(--yoopta-shadcn-muted)/.5)}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity,1))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.bg-pink-100{--tw-bg-opacity:1;background-color:rgb(252 231 243/var(--tw-bg-opacity,1))}.bg-pink-500{--tw-bg-opacity:1;background-color:rgb(236 72 153/var(--tw-bg-opacity,1))}.bg-popover{background-color:hsl(var(--yoopta-shadcn-popover))}.bg-primary{background-color:hsl(var(--yoopta-shadcn-primary))}.bg-primary\\/10{background-color:hsl(var(--yoopta-shadcn-primary)/.1)}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity,1))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity,1))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity,1))}.bg-secondary{background-color:hsl(var(--yoopta-shadcn-secondary))}.bg-sky-500{--tw-bg-opacity:1;background-color:rgb(14 165 233/var(--tw-bg-opacity,1))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-violet-500{--tw-bg-opacity:1;background-color:rgb(139 92 246/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\\/20{background-color:hsla(0,0%,100%,.2)}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-border{--tw-gradient-from:hsl(var(--yoopta-shadcn-border)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--yoopta-shadcn-border)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-80\\%{--tw-gradient-via-position:80%}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-foreground{fill:hsl(var(--yoopta-shadcn-foreground))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-px{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-baseline{vertical-align:baseline}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[10px\\]{font-size:10px}.text-\\[9px\\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--yoopta-shadcn-accent-foreground))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity,1))}.text-background{color:hsl(var(--yoopta-shadcn-background))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.text-card-foreground{color:hsl(var(--yoopta-shadcn-card-foreground))}.text-cyan-600{--tw-text-opacity:1;color:rgb(8 145 178/var(--tw-text-opacity,1))}.text-destructive{color:hsl(var(--yoopta-shadcn-destructive))}.text-destructive-foreground{color:hsl(var(--yoopta-shadcn-destructive-foreground))}.text-foreground{color:hsl(var(--yoopta-shadcn-foreground))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-muted-foreground{color:hsl(var(--yoopta-shadcn-muted-foreground))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.text-pink-600{--tw-text-opacity:1;color:rgb(219 39 119/var(--tw-text-opacity,1))}.text-popover-foreground{color:hsl(var(--yoopta-shadcn-popover-foreground))}.text-primary{color:hsl(var(--yoopta-shadcn-primary))}.text-primary-foreground{color:hsl(var(--yoopta-shadcn-primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity,1))}.text-purple-800{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.text-secondary-foreground{color:hsl(var(--yoopta-shadcn-secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\\/60{color:hsla(0,0%,100%,.6)}.text-white\\/80{color:hsla(0,0%,100%,.8)}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-primary{--tw-ring-color:hsl(var(--yoopta-shadcn-primary))}.ring-ring\\/50{--tw-ring-color:hsl(var(--yoopta-shadcn-ring)/0.5)}.ring-white\\/80{--tw-ring-color:hsla(0,0%,100%,.8)}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-background{--tw-ring-offset-color:hsl(var(--yoopta-shadcn-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-\\[color\\2c box-shadow\\]{transition-duration:.15s;transition-property:color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.yoopta-editor::-moz-selection{background:#c6ddf8}.yoopta-editor::selection{background:#c6ddf8}.yoopta-slate{outline:none}.yoopta-block{margin:2px 0;position:relative}.yoopta-block:before{background-color:#2383e224;border-radius:4px;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s;width:100%;z-index:0}.yoopta-block[data-block-selected=true]:before{background-color:#2383e224;content:\"\";opacity:1;transition:opacity .2s}.file\\:border-0::file-selector-button{border-width:0}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-foreground::file-selector-button{color:hsl(var(--yoopta-shadcn-foreground))}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--yoopta-shadcn-muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--yoopta-shadcn-muted-foreground))}.last\\:border-b-0:last-child{border-bottom-width:0}.last\\:border-r-0:last-child{border-right-width:0}.hover\\:bg-accent:hover{background-color:hsl(var(--yoopta-shadcn-accent))}.hover\\:bg-accent\\/50:hover{background-color:hsl(var(--yoopta-shadcn-accent)/.5)}.hover\\:bg-black\\/10:hover{background-color:rgba(0,0,0,.1)}.hover\\:bg-black\\/5:hover{background-color:rgba(0,0,0,.05)}.hover\\:bg-destructive\\/10:hover{background-color:hsl(var(--yoopta-shadcn-destructive)/.1)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--yoopta-shadcn-destructive)/.9)}.hover\\:bg-muted:hover{background-color:hsl(var(--yoopta-shadcn-muted))}.hover\\:bg-muted\\/50:hover{background-color:hsl(var(--yoopta-shadcn-muted)/.5)}.hover\\:bg-muted\\/80:hover{background-color:hsl(var(--yoopta-shadcn-muted)/.8)}.hover\\:bg-primary\\/15:hover{background-color:hsl(var(--yoopta-shadcn-primary)/.15)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--yoopta-shadcn-primary)/.9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--yoopta-shadcn-secondary)/.8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--yoopta-shadcn-accent-foreground))}.hover\\:text-destructive:hover{color:hsl(var(--yoopta-shadcn-destructive))}.hover\\:text-foreground:hover{color:hsl(var(--yoopta-shadcn-foreground))}.hover\\:text-primary\\/80:hover{color:hsl(var(--yoopta-shadcn-primary)/.8)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:ring-4:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:bg-accent:focus{background-color:hsl(var(--yoopta-shadcn-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--yoopta-shadcn-accent-foreground))}.focus\\:text-destructive:focus{color:hsl(var(--yoopta-shadcn-destructive))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-ring:focus{--tw-ring-color:hsl(var(--yoopta-shadcn-ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:border-ring:focus-visible{border-color:hsl(var(--yoopta-shadcn-ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:outline-1:focus-visible{outline-width:1px}.focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--yoopta-shadcn-ring))}.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:hsl(var(--yoopta-shadcn-ring)/0.5)}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--yoopta-shadcn-background))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100,.group\\/code-block:hover .group-hover\\/code-block\\:opacity-100,.group\\/code-group-content:hover .group-hover\\/code-group-content\\:opacity-100,.group\\/file:hover .group-hover\\/file\\:opacity-100,.group\\/step:hover .group-hover\\/step\\:opacity-100,.group\\/steps-node:hover .group-hover\\/steps-node\\:opacity-100,.group\\/tab:hover .group-hover\\/tab\\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\\:opacity-70{opacity:.7}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal]{height:.375rem}.data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal],.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[size\\=default\\]\\:h-9[data-size=default]{height:2.25rem}.data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:2rem}.data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical]{min-height:11rem}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical]{width:.375rem}.data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical]{width:auto}.data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical]{width:100%}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x:1rem}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked],.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical]{flex-direction:column}.data-\\[align\\=start\\]\\:items-start[data-align=start]{align-items:flex-start}.data-\\[align\\=end\\]\\:items-end[data-align=end]{align-items:flex-end}.data-\\[align\\=center\\]\\:items-center[data-align=center]{align-items:center}.data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:hsl(var(--yoopta-shadcn-background))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--yoopta-shadcn-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--yoopta-shadcn-accent))}.data-\\[state\\=selected\\]\\:bg-muted[data-state=selected]{background-color:hsl(var(--yoopta-shadcn-muted))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--yoopta-shadcn-input))}.data-\\[inset\\]\\:pl-8[data-inset]{padding-left:2rem}.data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:hsl(var(--yoopta-shadcn-muted-foreground))}.data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:hsl(var(--yoopta-shadcn-foreground))}.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:hsl(var(--yoopta-shadcn-accent-foreground))}.data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:hsl(var(--yoopta-shadcn-destructive))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1[data-slot=select-value]>*{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;overflow:hidden}.\\*\\:data-\\[slot\\=select-value\\]\\:flex[data-slot=select-value]>*{display:flex}.\\*\\:data-\\[slot\\=select-value\\]\\:items-center[data-slot=select-value]>*{align-items:center}.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2[data-slot=select-value]>*{gap:.5rem}.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10:focus[data-variant=destructive]{background-color:hsl(var(--yoopta-shadcn-destructive)/.1)}.data-\\[variant\\=destructive\\]\\:focus\\:text-destructive:focus[data-variant=destructive]{color:hsl(var(--yoopta-shadcn-destructive))}.dark\\:border-blue-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.dark\\:border-green-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(22 101 52/var(--tw-border-opacity,1))}.dark\\:border-red-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(153 27 27/var(--tw-border-opacity,1))}.dark\\:border-yellow-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(133 77 14/var(--tw-border-opacity,1))}.dark\\:bg-amber-900\\/30:is(.dark *){background-color:rgba(120,53,15,.3)}.dark\\:bg-blue-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity,1))}.dark\\:bg-blue-900\\/30:is(.dark *){background-color:rgba(30,58,138,.3)}.dark\\:bg-blue-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(23 37 84/var(--tw-bg-opacity,1))}.dark\\:bg-cyan-900\\/30:is(.dark *){background-color:rgba(22,78,99,.3)}.dark\\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:bg-gray-800\\/50:is(.dark *){background-color:rgba(31,41,55,.5)}.dark\\:bg-green-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity,1))}.dark\\:bg-green-900\\/30:is(.dark *){background-color:rgba(20,83,45,.3)}.dark\\:bg-green-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(5 46 22/var(--tw-bg-opacity,1))}.dark\\:bg-input\\/30:is(.dark *){background-color:hsl(var(--yoopta-shadcn-input)/.3)}.dark\\:bg-orange-900\\/30:is(.dark *){background-color:rgba(124,45,18,.3)}.dark\\:bg-pink-900\\/30:is(.dark *){background-color:rgba(131,24,67,.3)}.dark\\:bg-purple-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity,1))}.dark\\:bg-purple-900\\/30:is(.dark *){background-color:rgba(88,28,135,.3)}.dark\\:bg-red-900\\/30:is(.dark *){background-color:rgba(127,29,29,.3)}.dark\\:bg-red-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(69 10 10/var(--tw-bg-opacity,1))}.dark\\:bg-yellow-900\\/30:is(.dark *){background-color:rgba(113,63,18,.3)}.dark\\:bg-yellow-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(66 32 6/var(--tw-bg-opacity,1))}.dark\\:text-amber-400:is(.dark *){--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\\:text-blue-100:is(.dark *){--tw-text-opacity:1;color:rgb(219 234 254/var(--tw-text-opacity,1))}.dark\\:text-blue-200:is(.dark *){--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity,1))}.dark\\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\\:text-cyan-400:is(.dark *){--tw-text-opacity:1;color:rgb(34 211 238/var(--tw-text-opacity,1))}.dark\\:text-gray-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.dark\\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.dark\\:text-green-100:is(.dark *){--tw-text-opacity:1;color:rgb(220 252 231/var(--tw-text-opacity,1))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity,1))}.dark\\:text-green-400:is(.dark *){--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\\:text-orange-400:is(.dark *){--tw-text-opacity:1;color:rgb(251 146 60/var(--tw-text-opacity,1))}.dark\\:text-pink-400:is(.dark *){--tw-text-opacity:1;color:rgb(244 114 182/var(--tw-text-opacity,1))}.dark\\:text-purple-200:is(.dark *){--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity,1))}.dark\\:text-purple-400:is(.dark *){--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity,1))}.dark\\:text-red-100:is(.dark *){--tw-text-opacity:1;color:rgb(254 226 226/var(--tw-text-opacity,1))}.dark\\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\\:text-yellow-100:is(.dark *){--tw-text-opacity:1;color:rgb(254 249 195/var(--tw-text-opacity,1))}.dark\\:text-yellow-400:is(.dark *){--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-input\\/50:hover:is(.dark *){background-color:hsl(var(--yoopta-shadcn-input)/.5)}.dark\\:hover\\:bg-white\\/10:hover:is(.dark *){background-color:hsla(0,0%,100%,.1)}.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:focus[data-variant=destructive]:is(.dark *){background-color:hsl(var(--yoopta-shadcn-destructive)/.2)}@media (min-width:768px){.md\\:basis-1\\/2{flex-basis:50%}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\\:basis-1\\/3{flex-basis:33.333333%}.lg\\:text-5xl{font-size:3rem;line-height:1}}.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]){padding-right:0}.\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&\\>div\\]\\:contents>div{display:contents}.\\[\\&\\>li\\]\\:mt-2>li{margin-top:.5rem}.\\[\\&\\>p\\]\\:m-0>p{margin:0}.\\[\\&\\>p\\]\\:text-sm>p{font-size:.875rem;line-height:1.25rem}.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr{border-bottom-width:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){height:1rem;width:1rem}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'text-\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*=text-]){color:hsl(var(--yoopta-shadcn-muted-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_tr\\:first-child\\]\\:border-t tr:first-child{border-top-width:1px}.\\[\\&_tr\\]\\:border-b tr{border-bottom-width:1px}.\\[\\&_tr\\]\\:border-border tr{border-color:hsl(var(--yoopta-shadcn-border))}");export{r as AccordionUI,o as BlockquoteUI,a as CalloutUI,i as CodeUI,d as DividerUI,s as EmbedUI,c as FileUI,l as HeadingsUI,p as ImageUI,g as LinkUI,w as ListsUI,h as MentionUI,b as ParagraphUI,m as StepsUI,u as TableUI,y as TabsUI,f as VideoUI,x as applyTheme,x as default};
|
|
1
|
+
import{s as t}from"./chunks/style-inject.es-e87a8d02.js";import{AccordionUI as r}from"./accordion.js";import{BlockquoteUI as o}from"./blockquote.js";import{CalloutUI as e}from"./callout.js";import{CarouselUI as a}from"./carousel.js";import{CodeUI as i}from"./code.js";import{CodeGroupUI as n}from"./code-group.js";import{DividerUI as d}from"./divider.js";import{EmbedUI as s}from"./embed.js";import{FileUI as c}from"./file.js";import{HeadingsUI as l}from"./headings.js";import{ImageUI as g}from"./image.js";import{LinkUI as p}from"./link.js";import{ListsUI as w}from"./lists.js";import{MentionUI as b}from"./mention.js";export{MentionDropdown}from"./mention.js";import{ParagraphUI as h}from"./paragraph.js";import{StepsUI as v}from"./steps.js";import{TableUI as m}from"./table.js";import{TableOfContentsUI as u}from"./table-of-contents.js";import{TabsUI as x}from"./tabs.js";import{VideoUI as f}from"./video.js";export{EmojiDropdown}from"./emoji.js";import"react/jsx-runtime";import"./chunks/_tslib-35bb891d.js";import"react";import"./chunks/index-17323747.js";import"react-dom";import"./chunks/index-91a5b8d5.js";import"./chunks/index-f85dae42.js";import"./chunks/index-ff0e3962.js";import"./chunks/index-23db6fea.js";import"./chunks/index-ce60ba41.js";import"./chunks/index-13505606.js";import"./chunks/utils-3345eade.js";import"@yoopta/editor";import"slate";import"./chunks/plus-840fe920.js";import"./chunks/createLucideIcon-8605f860.js";import"./chunks/trash-2-f36597ff.js";import"./chunks/chevron-down-28dfb290.js";import"@yoopta/ui/element-options";import"./chunks/button-7aec29d6.js";import"./chunks/arrow-right-38c3a9bd.js";import"./chunks/card-05710740.js";import"@yoopta/code";import"./chunks/index-0bca29df.js";import"./chunks/language-select-89735035.js";import"./chunks/select-a8bcd8b5.js";import"./chunks/index-056e5c06.js";import"./chunks/index-23c7fb16.js";import"./chunks/index-70f4e709.js";import"./chunks/Combination-575d4475.js";import"./chunks/index-1674c2c8.js";import"./chunks/check-06bd6a78.js";import"./chunks/chevron-up-9a13532e.js";import"./chunks/sparkles-ae42eae3.js";import"./chunks/tabs-294764a6.js";import"./chunks/index-ba3032f8.js";import"./chunks/x-9bfeb90f.js";import"./chunks/scroll-area-dae47c2c.js";import"./chunks/separator-219dc1f7.js";import"./chunks/index-a5cba5f7.js";import"@yoopta/embed";import"./chunks/input-b2431223.js";import"./chunks/index-87b75648.js";import"./chunks/code-d31bdce0.js";import"./chunks/play-998f23d2.js";import"./chunks/tooltip-65b9c3a0.js";import"./chunks/external-link-1579dd7f.js";import"@yoopta/file";import"./chunks/upload-b1dd210d.js";import"./chunks/file-text-ad3e3ebb.js";import"@yoopta/image";import"./chunks/label-21d46c31.js";import"./chunks/popover-8e6ee2ab.js";import"./chunks/settings-2-84fe63d9.js";import"./chunks/hover-card-d6a71398.js";import"@yoopta/lists";import"@yoopta/steps";import"./chunks/dropdown-menu-eb328f8d.js";import"@yoopta/table";import"@yoopta/ui/portal";import"@yoopta/table-of-contents";import"@yoopta/tabs";import"@yoopta/video";function y(t,y){const k={Accordion:r,Paragraph:h,Blockquote:o,Callout:e,Table:m,TableOfContents:u,Link:p,HeadingOne:l.HeadingOne,HeadingTwo:l.HeadingTwo,HeadingThree:l.HeadingThree,BulletedList:w.BulletedList,NumberedList:w.NumberedList,TodoList:w.TodoList,Image:g,Video:f,Code:i,Tabs:x,CodeGroup:n,Steps:v,Carousel:a,Divider:d,Embed:s,File:c,Mention:b};return t.map(t=>{var r;const o=t.getPlugin.type,e=k[o];if(!e)return t;const a=null==y?void 0:y[o],i=null!==(r=null==a?void 0:a.elements)&&void 0!==r?r:e;return t.extend(Object.assign({elements:i},a&&{injectElementsFromPlugins:a.injectElementsFromPlugins,events:a.events,options:a.options}))})}t(".sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.left-0{left:0}.left-1\\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-\\[2\\.75rem\\]{top:2.75rem}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\\[9998\\]{z-index:9998}.z-\\[9999\\]{z-index:9999}.m-0{margin:0}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-3\\.5{margin-left:-.875rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.ml-1{margin-left:.25rem}.ml-3\\.5{margin-left:.875rem}.ml-6{margin-left:1.5rem}.ml-\\[-13px\\]{margin-left:-13px}.ml-auto{margin-left:auto}.mr-1\\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.\\!block{display:block!important}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.size-2{height:.5rem;width:.5rem}.size-2\\.5{height:.625rem;width:.625rem}.size-3\\.5{height:.875rem;width:.875rem}.size-4{height:1rem;width:1rem}.size-7{height:1.75rem;width:1.75rem}.size-8{height:2rem;width:2rem}.size-full{height:100%;width:100%}.h-10{height:2.5rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[calc\\(100\\%-2\\.75rem\\)\\]{height:calc(100% - 2.75rem)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\\[200px\\]{max-height:200px}.max-h-\\[280px\\]{max-height:280px}.max-h-full{max-height:100%}.min-h-16{min-height:4rem}.min-h-\\[300px\\]{min-height:300px}.w-1\\.5{width:.375rem}.w-16{width:4rem}.w-2\\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\\[1px\\]{width:1px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\\[160px\\]{min-width:160px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[220px\\]{min-width:220px}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[280px\\]{max-width:280px}.max-w-\\[320px\\]{max-width:320px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.table-fixed{table-layout:fixed}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y:0.5rem}.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y:calc(-50% - 2px)}.rotate-180,.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-45{--tw-rotate:45deg}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.scroll-m-20{scroll-margin:5rem}.scroll-my-1{scroll-margin-bottom:.25rem;scroll-margin-top:.25rem}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.125rem*var(--tw-space-y-reverse));margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-balance{text-wrap:balance}.rounded{border-radius:.25rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-x-0{border-left-width:0;border-right-width:0}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.border-t{border-top-width:1px}.border-t-0{border-top-width:0}.border-t-2{border-top-width:2px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-border{border-color:hsl(var(--border))}.border-border\\/50{border-color:hsl(var(--border)/.5)}.border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.border-input{border-color:hsl(var(--input))}.border-muted-foreground\\/20{border-color:hsl(var(--muted-foreground)/.2)}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.border-yellow-200{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity,1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity,1))}.bg-background{background-color:hsl(var(--background))}.bg-background\\/80{background-color:hsl(var(--background)/.8)}.bg-background\\/95{background-color:hsl(var(--background)/.95)}.bg-black\\/5{background-color:rgba(0,0,0,.05)}.bg-black\\/70{background-color:rgba(0,0,0,.7)}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-border{background-color:hsl(var(--border))}.bg-border\\/70{background-color:hsl(var(--border)/.7)}.bg-card{background-color:hsl(var(--card))}.bg-cyan-100{--tw-bg-opacity:1;background-color:rgb(207 250 254/var(--tw-bg-opacity,1))}.bg-cyan-500{--tw-bg-opacity:1;background-color:rgb(6 182 212/var(--tw-bg-opacity,1))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity,1))}.bg-foreground{background-color:hsl(var(--foreground))}.bg-fuchsia-500{--tw-bg-opacity:1;background-color:rgb(217 70 239/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity,1))}.bg-lime-500{--tw-bg-opacity:1;background-color:rgb(132 204 22/var(--tw-bg-opacity,1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity,1))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.bg-pink-100{--tw-bg-opacity:1;background-color:rgb(252 231 243/var(--tw-bg-opacity,1))}.bg-pink-500{--tw-bg-opacity:1;background-color:rgb(236 72 153/var(--tw-bg-opacity,1))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\\/10{background-color:hsl(var(--primary)/.1)}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity,1))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity,1))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity,1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-sky-500{--tw-bg-opacity:1;background-color:rgb(14 165 233/var(--tw-bg-opacity,1))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-violet-500{--tw-bg-opacity:1;background-color:rgb(139 92 246/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\\/20{background-color:hsla(0,0%,100%,.2)}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-border{--tw-gradient-from:hsl(var(--border)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--border)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-80\\%{--tw-gradient-via-position:80%}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-foreground{fill:hsl(var(--foreground))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-px{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-baseline{vertical-align:baseline}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[10px\\]{font-size:10px}.text-\\[9px\\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity,1))}.text-background{color:hsl(var(--background))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-600{--tw-text-opacity:1;color:rgb(8 145 178/var(--tw-text-opacity,1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.text-pink-600{--tw-text-opacity:1;color:rgb(219 39 119/var(--tw-text-opacity,1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity,1))}.text-purple-800{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\\/60{color:hsla(0,0%,100%,.6)}.text-white\\/80{color:hsla(0,0%,100%,.8)}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\\[0_0_4px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.3\\)\\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_4px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.3\\)\\]{--tw-shadow:0 0 4px rgba(0,0,0,.3);--tw-shadow-colored:0 0 4px var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-primary{--tw-ring-color:hsl(var(--primary))}.ring-ring\\/50{--tw-ring-color:hsl(var(--ring)/0.5)}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-\\[color\\2c box-shadow\\]{transition-duration:.15s;transition-property:color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.yoopta-editor{background-color:hsl(var(--background));color:hsl(var(--foreground))}.yoopta-editor::-moz-selection{background:#c6ddf8}.yoopta-editor::selection{background:#c6ddf8}.yoopta-slate{outline:none}.yoopta-block{margin:2px 0;position:relative}.yoopta-block:before{background-color:#2383e224;border-radius:4px;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s;width:100%;z-index:0}.yoopta-block[data-block-selected=true]:before{background-color:#2383e224;content:\"\";opacity:1;transition:opacity .2s}.yoopta-placeholder{position:relative}.yoopta-placeholder:before{color:hsl(var(--foreground));content:attr(data-placeholder);font-size:75%;left:4px;opacity:.4;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.file\\:border-0::file-selector-button{border-width:0}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last\\:border-b-0:last-child{border-bottom-width:0}.last\\:border-r-0:last-child{border-right-width:0}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-accent\\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\\:bg-black\\/10:hover{background-color:rgba(0,0,0,.1)}.hover\\:bg-black\\/5:hover{background-color:rgba(0,0,0,.05)}.hover\\:bg-destructive\\/10:hover{background-color:hsl(var(--destructive)/.1)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:bg-muted\\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\\:bg-muted\\/80:hover{background-color:hsl(var(--muted)/.8)}.hover\\:bg-primary\\/15:hover{background-color:hsl(var(--primary)/.15)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-destructive:hover{color:hsl(var(--destructive))}.hover\\:text-foreground:hover{color:hsl(var(--foreground))}.hover\\:text-primary\\/80:hover{color:hsl(var(--primary)/.8)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:ring-4:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:text-destructive:focus{color:hsl(var(--destructive))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:border-ring:focus-visible{border-color:hsl(var(--ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:outline-1:focus-visible{outline-width:1px}.focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:hsl(var(--ring)/0.5)}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100,.group\\/code-block:hover .group-hover\\/code-block\\:opacity-100,.group\\/code-group-content:hover .group-hover\\/code-group-content\\:opacity-100,.group\\/file:hover .group-hover\\/file\\:opacity-100,.group\\/step:hover .group-hover\\/step\\:opacity-100,.group\\/steps-node:hover .group-hover\\/steps-node\\:opacity-100,.group\\/tab:hover .group-hover\\/tab\\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\\:opacity-70{opacity:.7}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal]{height:.375rem}.data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal],.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[size\\=default\\]\\:h-9[data-size=default]{height:2.25rem}.data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:2rem}.data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical]{min-height:11rem}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical]{width:.375rem}.data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical]{width:auto}.data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical]{width:100%}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x:1rem}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked],.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical]{flex-direction:column}.data-\\[align\\=start\\]\\:items-start[data-align=start]{align-items:flex-start}.data-\\[align\\=end\\]\\:items-end[data-align=end]{align-items:flex-end}.data-\\[align\\=center\\]\\:items-center[data-align=center]{align-items:center}.data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=selected\\]\\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\\[inset\\]\\:pl-8[data-inset]{padding-left:2rem}.data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:hsl(var(--destructive))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1[data-slot=select-value]>*{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;overflow:hidden}.\\*\\:data-\\[slot\\=select-value\\]\\:flex[data-slot=select-value]>*{display:flex}.\\*\\:data-\\[slot\\=select-value\\]\\:items-center[data-slot=select-value]>*{align-items:center}.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2[data-slot=select-value]>*{gap:.5rem}.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10:focus[data-variant=destructive]{background-color:hsl(var(--destructive)/.1)}.data-\\[variant\\=destructive\\]\\:focus\\:text-destructive:focus[data-variant=destructive]{color:hsl(var(--destructive))}.dark\\:border-blue-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.dark\\:border-green-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(22 101 52/var(--tw-border-opacity,1))}.dark\\:border-red-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(153 27 27/var(--tw-border-opacity,1))}.dark\\:border-yellow-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(133 77 14/var(--tw-border-opacity,1))}.dark\\:bg-amber-900\\/30:is(.dark *){background-color:rgba(120,53,15,.3)}.dark\\:bg-blue-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity,1))}.dark\\:bg-blue-900\\/30:is(.dark *){background-color:rgba(30,58,138,.3)}.dark\\:bg-blue-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(23 37 84/var(--tw-bg-opacity,1))}.dark\\:bg-cyan-900\\/30:is(.dark *){background-color:rgba(22,78,99,.3)}.dark\\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:bg-gray-800\\/50:is(.dark *){background-color:rgba(31,41,55,.5)}.dark\\:bg-green-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity,1))}.dark\\:bg-green-900\\/30:is(.dark *){background-color:rgba(20,83,45,.3)}.dark\\:bg-green-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(5 46 22/var(--tw-bg-opacity,1))}.dark\\:bg-input\\/30:is(.dark *){background-color:hsl(var(--input)/.3)}.dark\\:bg-orange-900\\/30:is(.dark *){background-color:rgba(124,45,18,.3)}.dark\\:bg-pink-900\\/30:is(.dark *){background-color:rgba(131,24,67,.3)}.dark\\:bg-purple-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity,1))}.dark\\:bg-purple-900\\/30:is(.dark *){background-color:rgba(88,28,135,.3)}.dark\\:bg-red-900\\/30:is(.dark *){background-color:rgba(127,29,29,.3)}.dark\\:bg-red-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(69 10 10/var(--tw-bg-opacity,1))}.dark\\:bg-yellow-900\\/30:is(.dark *){background-color:rgba(113,63,18,.3)}.dark\\:bg-yellow-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(66 32 6/var(--tw-bg-opacity,1))}.dark\\:text-amber-400:is(.dark *){--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\\:text-blue-100:is(.dark *){--tw-text-opacity:1;color:rgb(219 234 254/var(--tw-text-opacity,1))}.dark\\:text-blue-200:is(.dark *){--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity,1))}.dark\\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\\:text-cyan-400:is(.dark *){--tw-text-opacity:1;color:rgb(34 211 238/var(--tw-text-opacity,1))}.dark\\:text-gray-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.dark\\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.dark\\:text-green-100:is(.dark *){--tw-text-opacity:1;color:rgb(220 252 231/var(--tw-text-opacity,1))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity,1))}.dark\\:text-green-400:is(.dark *){--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\\:text-orange-400:is(.dark *){--tw-text-opacity:1;color:rgb(251 146 60/var(--tw-text-opacity,1))}.dark\\:text-pink-400:is(.dark *){--tw-text-opacity:1;color:rgb(244 114 182/var(--tw-text-opacity,1))}.dark\\:text-purple-200:is(.dark *){--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity,1))}.dark\\:text-purple-400:is(.dark *){--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity,1))}.dark\\:text-red-100:is(.dark *){--tw-text-opacity:1;color:rgb(254 226 226/var(--tw-text-opacity,1))}.dark\\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\\:text-yellow-100:is(.dark *){--tw-text-opacity:1;color:rgb(254 249 195/var(--tw-text-opacity,1))}.dark\\:text-yellow-400:is(.dark *){--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-input\\/50:hover:is(.dark *){background-color:hsl(var(--input)/.5)}.dark\\:hover\\:bg-white\\/10:hover:is(.dark *){background-color:hsla(0,0%,100%,.1)}.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:focus[data-variant=destructive]:is(.dark *){background-color:hsl(var(--destructive)/.2)}@media (min-width:768px){.md\\:basis-1\\/2{flex-basis:50%}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\\:basis-1\\/3{flex-basis:33.333333%}.lg\\:text-5xl{font-size:3rem;line-height:1}}.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]){padding-right:0}.\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&\\>div\\]\\:contents>div{display:contents}.\\[\\&\\>li\\]\\:mt-2>li{margin-top:.5rem}.\\[\\&\\>p\\]\\:m-0>p{margin:0}.\\[\\&\\>p\\]\\:text-sm>p{font-size:.875rem;line-height:1.25rem}.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr{border-bottom-width:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){height:1rem;width:1rem}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'text-\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*=text-]){color:hsl(var(--muted-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_tr\\:first-child\\]\\:border-t tr:first-child{border-top-width:1px}.\\[\\&_tr\\]\\:border-b tr{border-bottom-width:1px}.\\[\\&_tr\\]\\:border-border tr{border-color:hsl(var(--border))}");export{r as AccordionUI,o as BlockquoteUI,e as CalloutUI,i as CodeUI,d as DividerUI,s as EmbedUI,c as FileUI,l as HeadingsUI,g as ImageUI,p as LinkUI,w as ListsUI,b as MentionUI,h as ParagraphUI,v as StepsUI,m as TableUI,x as TabsUI,f as VideoUI,y as applyTheme,y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps-list-item.d.ts","sourceRoot":"","sources":["../../../src/steps/elements/steps-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAe/D,eAAO,MAAM,YAAY,UAAW,wBAAwB,
|
|
1
|
+
{"version":3,"file":"steps-list-item.d.ts","sourceRoot":"","sources":["../../../src/steps/elements/steps-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAe/D,eAAO,MAAM,YAAY,UAAW,wBAAwB,4CAkH3D,CAAC"}
|
package/dist/steps.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useYooptaEditor as s,Blocks as n,Elements as r}from"@yoopta/editor";import{StepsCommands as i}from"@yoopta/steps";import{B as o}from"./chunks/button-7aec29d6.js";import{c as a}from"./chunks/utils-3345eade.js";import{P as c}from"./chunks/plus-840fe920.js";import{useMemo as
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useYooptaEditor as s,Blocks as n,Elements as r}from"@yoopta/editor";import{StepsCommands as i}from"@yoopta/steps";import{B as o}from"./chunks/button-7aec29d6.js";import{c as a}from"./chunks/utils-3345eade.js";import{P as c}from"./chunks/plus-840fe920.js";import{useMemo as l}from"react";import{D as d,a as p,M as m,b,c as h,A as u,d as g,e as k}from"./chunks/dropdown-menu-eb328f8d.js";import{T as j}from"./chunks/trash-2-f36597ff.js";import"./chunks/_tslib-35bb891d.js";import"./chunks/createLucideIcon-8605f860.js";import"./chunks/index-17323747.js";import"react-dom";import"./chunks/index-91a5b8d5.js";import"./chunks/index-ff0e3962.js";import"./chunks/index-f85dae42.js";import"./chunks/index-13505606.js";import"./chunks/index-23c7fb16.js";import"./chunks/index-70f4e709.js";import"./chunks/Combination-575d4475.js";import"./chunks/index-ce60ba41.js";import"./chunks/index-23db6fea.js";import"./chunks/index-ba3032f8.js";const v={"step-container":{render:r=>{const l=s(),{attributes:d,children:p}=r;return e("div",Object.assign({},d,{role:"list",className:"ml-3.5 my-4 relative group/steps-node"},{children:[p,t("div",Object.assign({contentEditable:!1,className:a("-ml-3.5 z-20 absolute left-0 flex","transition-opacity duration-300","opacity-0 group-hover/steps-node:opacity-100"),style:{bottom:"-4px"}},{children:!l.readOnly&&t(o,Object.assign({variant:"ghost",size:"icon",className:a("w-7 h-7 shrink-0 rounded-lg","bg-muted hover:bg-muted/80","text-sm font-semibold"),onClick:()=>{if(l.readOnly)return;n.getBlockSlate(l,{id:r.blockId})&&i.addStep(l,{blockId:r.blockId})},"aria-label":"Add more Step"},{children:t(c,{className:"w-4 h-4"})}))}))]}))}},"step-list":{render:e=>{const{attributes:s,children:n}=e;return t("div",Object.assign({},s,{className:"[&>div]:contents contents"},{children:n}))}},"step-list-item":{render:n=>{const{attributes:c,children:v,element:x}=n,f=s(),N=l(()=>{const e=r.getElementPath(f,{blockId:n.blockId,element:x}),t=null==e?void 0:e[e.length-1];return t||0},[f,x,n.blockId]),O=l(()=>{const e=r.getElementChildren(f,{blockId:n.blockId,type:"step-list"});return!!e&&N===e.length-1},[f,x,n.blockId,N]),y=N+1,I=0===x.children.length;return t("div",Object.assign({className:"prose dark:prose-invert"},{children:e("div",Object.assign({className:"relative group/component-wrapper group/step"},{children:[e("div",Object.assign({},c,{role:"listitem",className:"step group/step relative flex items-start pb-5"},{children:[t("div",{"data-component-part":"step-line",contentEditable:!1,className:a("absolute w-px h-[calc(100%-2.75rem)] top-[2.75rem]",O?"bg-transparent bg-gradient-to-b from-border via-80% to-transparent":"bg-border/70",O&&I&&"hidden")}),t("div",Object.assign({"data-component-part":"step-number",contentEditable:!1,className:"absolute ml-[-13px] py-2 pointer-events-none select-none"},{children:t("div",Object.assign({className:a("size-7 shrink-0 rounded-full","bg-muted","text-xs font-semibold","flex items-center justify-center","text-foreground")},{children:y}))})),t("div",Object.assign({className:"w-full overflow-hidden pl-8 pr-px"},{children:v}))]})),t("div",Object.assign({contentEditable:!1,className:a("z-20 absolute top-0 right-3 flex","transition-opacity duration-300","opacity-0 hover:opacity-100 group-hover/step:opacity-100")},{children:!f.readOnly&&e(d,{children:[t(p,Object.assign({asChild:!0},{children:t(o,Object.assign({variant:"ghost",size:"icon",className:a("size-8 shrink-0 rounded-lg","border border-transparent","hover:bg-muted"),"aria-label":"Edit Step attributes"},{children:t(m,{className:"h-4 w-4"})}))})),e(b,Object.assign({align:"end"},{children:[e(h,Object.assign({onClick:()=>{i.moveUp(f,{blockId:n.blockId,stepId:x.id})},className:"cursor-pointer"},{children:[t(u,{className:"h-4 w-4"})," Move up"]})),e(h,Object.assign({onClick:()=>{i.moveDown(f,{blockId:n.blockId,stepId:x.id})},className:"cursor-pointer"},{children:[t(g,{className:"h-4 w-4"})," Move down"]})),t(k,{}),e(h,Object.assign({onClick:()=>{i.deleteStep(f,{blockId:n.blockId,stepId:x.id})},className:"text-destructive focus:text-destructive cursor-pointer"},{children:[t(j,{className:"h-4 w-4"})," Delete step"]}))]}))]})}))]}))}))}},"step-list-item-heading":{render:e=>{const{attributes:s,children:n}=e;return t("p",Object.assign({},s,{"data-component-part":"step-title",className:"mt-2 font-semibold prose dark:prose-invert text-foreground"},{children:n}))}},"step-list-item-content":{render:e=>{const{attributes:s,children:n}=e;return t("div",Object.assign({},s,{"data-component-part":"step-content",className:"my-2 prose dark:prose-invert"},{children:n}))}}};export{v as StepsUI};
|
package/dist/table.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as l}from"react/jsx-runtime";import{forwardRef as o,useState as n,useRef as r,useEffect as a,useCallback as s,useMemo as i}from"react";import{useYooptaEditor as c,Blocks as d}from"@yoopta/editor";import{TableCommands as u,TABLE_CELLS_IN_SELECTION as m,TABLE_SLATE_TO_SELECTION_SET as h}from"@yoopta/table";import{useElementOptions as b,useUpdateElementProps as p,ElementOptions as g}from"@yoopta/ui/element-options";import{_ as v}from"./chunks/_tslib-35bb891d.js";import{c as f}from"./chunks/utils-3345eade.js";import{Portal as y}from"@yoopta/ui/portal";import{Editor as w,Element as x}from"slate";import{B as k}from"./chunks/button-7aec29d6.js";import{P as j}from"./chunks/plus-840fe920.js";import{D as N,a as C,b as O,c as M,e as z,M as E,A as L,d as I,f as $,g as S,h as B}from"./chunks/dropdown-menu-eb328f8d.js";import{c as R}from"./chunks/createLucideIcon-8605f860.js";import{A as T,a as q}from"./chunks/arrow-right-38c3a9bd.js";import{T as A}from"./chunks/trash-2-f36597ff.js";import{L as D}from"./chunks/label-21d46c31.js";import{P as H,a as P,b as _}from"./chunks/popover-8e6ee2ab.js";import{S as G}from"./chunks/separator-219dc1f7.js";import{C as V}from"./chunks/chevron-down-28dfb290.js";import{s as F}from"./chunks/style-inject.es-e87a8d02.js";import"./chunks/index-17323747.js";import"react-dom";import"./chunks/index-91a5b8d5.js";import"./chunks/index-ff0e3962.js";import"./chunks/index-f85dae42.js";import"./chunks/index-13505606.js";import"./chunks/index-23c7fb16.js";import"./chunks/index-70f4e709.js";import"./chunks/Combination-575d4475.js";import"./chunks/index-ce60ba41.js";import"./chunks/index-23db6fea.js";import"./chunks/index-ba3032f8.js";import"./chunks/index-a5cba5f7.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.294.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const
|
|
7
|
+
*/const J=R("Eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]),W=R("Merge",[["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22",key:"1hyw0i"}],["path",{d:"m20 22-5-5",key:"1m27yz"}]]),X=R("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Y=R("MoveHorizontal",[["polyline",{points:"18 8 22 12 18 16",key:"1hqrds"}],["polyline",{points:"6 8 2 12 6 16",key:"f0ernq"}],["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}]]),K=R("MoveVertical",[["polyline",{points:"8 18 12 22 16 18",key:"1uutw3"}],["polyline",{points:"8 6 12 2 16 6",key:"d60sxy"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}]]),Z=R("Paintbrush",[["path",{d:"M18.37 2.63 14 7l-1.59-1.59a2 2 0 0 0-2.82 0L8 7l9 9 1.59-1.59a2 2 0 0 0 0-2.82L17 10l4.37-4.37a2.12 2.12 0 1 0-3-3Z",key:"m6k5sh"}],["path",{d:"M9 8c-2 3-4 3.5-7 4l8 10c2-1 6-5 6-7",key:"arzq70"}],["path",{d:"M14.5 17.5 4.5 15",key:"s7fvrz"}]]),Q=R("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]),U=R("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]),ee=o((t,l)=>{var{className:o}=t,n=v(t,["className"]);return e("table",Object.assign({ref:l,"data-slot":"table",className:f("caption-bottom text-sm table-fixed border-collapse",o)},n))});
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.294.0 - ISC
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the ISC license.
|
|
12
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/ee.displayName="Table";l((t,o)=>{var{className:l}=t,n=v(t,["className"]);return e("thead",Object.assign({ref:o,"data-slot":"table-header",className:f("[&_tr]:border-b",l)},n))}).displayName="TableHeader";const te=l((t,o)=>{var{className:l}=t,n=v(t,["className"]);return e("tbody",Object.assign({ref:o,"data-slot":"table-body",className:f("[&_tr:first-child]:border-t [&_tr]:border-b [&_tr]:border-border",l)},n))});te.displayName="TableBody";l((t,o)=>{var{className:l}=t,n=v(t,["className"]);return e("tfoot",Object.assign({ref:o,"data-slot":"table-footer",className:f("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",l)},n))}).displayName="TableFooter";const oe=l((t,o)=>{var{className:l}=t,n=v(t,["className"]);return e("tr",Object.assign({ref:o,"data-slot":"table-row",className:f("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",l)},n))});oe.displayName="TableRow";const le=l((t,o)=>{var{className:l}=t,n=v(t,["className"]);return e("th",Object.assign({ref:o,"data-slot":"table-head",className:f("border-border border-r last:border-r-0 text-foreground h-10 px-2 text-left font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] bg-muted/50",l)},n))});le.displayName="TableHead";const ne=l((t,o)=>{var{className:l}=t,n=v(t,["className"]);return e("td",Object.assign({ref:o,"data-slot":"table-cell",className:f("border-border border-r last:border-r-0 p-2 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l)},n))});ne.displayName="TableCell";l((t,o)=>{var{className:l}=t,n=v(t,["className"]);return e("caption",Object.assign({ref:o,"data-slot":"table-caption",className:f("text-muted-foreground mt-4 text-sm",l)},n))}).displayName="TableCaption";const re=({blockId:t})=>{const o=c(),[l,i]=n(null),[d,h]=n(!1),[m,b]=n(null),[p,g]=n([]),v=r(0),f=r(0),w=r([]),x=r(null),k=r(null),j=r(null);a(()=>{w.current=p},[p]),a(()=>{k.current=l},[l]),a(()=>{x.current=m},[m]);const N=s(()=>{const e=document.querySelector(`[data-yoopta-block-id="${t}"][data-table-container]`);if(!e)return;const o=e.querySelector("table");if(!o)return;const l=o.getBoundingClientRect();i(l);const n=o.querySelector("colgroup");j.current=n;const r=o.querySelectorAll("colgroup col"),a=o.querySelector("tr");if(r.length>0){const e=[];l.left,r.forEach((t,o)=>{const l=window.getComputedStyle(t),n=parseInt(l.width,10)||200;e.push(n)}),g(e)}else if(a){const e=a.querySelectorAll("td, th"),t=[],o=[];e.forEach((e,l)=>{const n=e.getBoundingClientRect();o.push(n.width),t.push({index:l,left:n.left,width:n.width})}),g(o)}},[t]);a(()=>{N();const e=document.querySelector(`[data-yoopta-block-id="${t}"][data-table-container]`);if(!e)return;const o=e.querySelector("table");if(!o)return;const l=new ResizeObserver(()=>{d||N()});l.observe(o);const n=new MutationObserver(()=>{d||N()});n.observe(o,{childList:!0,subtree:!0});const r=()=>{d||N()};return window.addEventListener("scroll",r,!0),()=>{l.disconnect(),n.disconnect(),window.removeEventListener("scroll",r,!0)}},[t,N,d]);const C=s(e=>{if(!j.current)return;j.current.querySelectorAll("col").forEach((t,o)=>{void 0!==e[o]&&(t.style.width=`${e[o]}px`)})},[]),O=s((e,t)=>{if(!t||0===e.length)return[];let o=t.left;return e.map((e,t)=>{const l={index:t,left:o,width:e};return o+=e,l})},[]),M=s((e,t)=>{e.preventDefault(),e.stopPropagation();const o=p[t];void 0!==o&&(h(!0),b(t),v.current=e.clientX,f.current=o,document.body.classList.add("resizing-column"))},[p]),z=s(e=>{const t=x.current;if(null===t)return;const o=e.clientX-v.current,l=Math.max(50,f.current+o),n=[...w.current];n[t]=l,g(n),C(n)},[C]),E=s(()=>{const e=x.current,l=w.current;null!==e&&void 0!==l[e]&&u.setColumnWidth(o,t,e,l[e]),h(!1),b(null),document.body.classList.remove("resizing-column"),setTimeout(N,50)},[o,t,N]);if(a(()=>{if(d)return document.addEventListener("mousemove",z),document.addEventListener("mouseup",E),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",E)}},[d,z,E]),!l||0===p.length)return null;const L=O(p,l).slice(0,-1).map(t=>{const o=t.left+t.width-3;return e("div",{className:"column-resize-handle",style:{position:"fixed",left:`${o}px`,top:`${l.top}px`,width:"6px",height:`${l.height}px`,cursor:"col-resize",zIndex:50,backgroundColor:d&&m===t.index?"hsl(var(--primary))":"transparent"},onMouseDown:e=>M(e,t.index),onMouseEnter:e=>{d||(e.target.style.backgroundColor="hsl(var(--primary) / 0.3)")},onMouseLeave:e=>{d||(e.target.style.backgroundColor="transparent")}},`resize-${t.index}`)});return e(y,Object.assign({id:"column-resize-handles-container"},{children:e("div",Object.assign({className:"column-resize-handles-container",style:{pointerEvents:d?"auto":void 0}},{children:L}))}))},ae=({blockId:t,totalColumns:o,position:l,onMouseEnter:n,onMouseLeave:r})=>{const a=c(),i=s(()=>{const e=[0,0,o-1,0];u.insertTableColumn(a,t,{path:e,insertMode:"after"})},[a,t,o]);return e(y,Object.assign({id:`table-add-column-button-${t}`},{children:e("div",Object.assign({className:"fixed z-[9999] pointer-events-auto",style:{left:`${l.left+4}px`,top:`${l.top}px`,width:"18px",height:`${l.height}px`},onMouseEnter:n,onMouseLeave:r},{children:e(k,Object.assign({variant:"ghost",size:"sm",className:"p-0 h-full w-full bg-background/95 hover:bg-accent border border-border/50 shadow-sm rounded-md transition-all hover:shadow-md flex items-center justify-center text-muted-foreground hover:text-foreground",onClick:i,onMouseDown:e=>e.preventDefault()},{children:e(j,{className:"h-3 w-3"})}))}))}))},se=({blockId:t,totalRows:o,position:l,onMouseEnter:n,onMouseLeave:r})=>{const a=c(),i=s(()=>{const e=[0,o-1,0,0];u.insertTableRow(a,t,{path:e,insertMode:"after"})},[a,t,o]);return e(y,Object.assign({id:`table-add-row-button-${t}`},{children:e("div",Object.assign({className:"fixed z-[9999] pointer-events-auto",style:{left:`${l.left}px`,top:`${l.top+4}px`,width:`${l.width}px`,height:"18px"},onMouseEnter:n,onMouseLeave:r},{children:e(k,Object.assign({variant:"ghost",size:"sm",className:"h-full w-full bg-background/95 hover:bg-accent border border-border/50 shadow-sm rounded-md transition-all hover:shadow-md flex items-center justify-center gap-1.5 text-muted-foreground hover:text-foreground",onClick:i,onMouseDown:e=>e.preventDefault()},{children:e(j,{className:"h-3 w-3"})}))}))}))},ie=({blockId:l,colIndex:n,position:r,onMouseEnter:a,onMouseLeave:d})=>{const h=c(),m=i(()=>[0,0,n,0],[n]),b=s(()=>{u.insertTableColumn(h,l,{path:m,insertMode:"before"})},[h,l,m]),p=s(()=>{u.insertTableColumn(h,l,{path:m,insertMode:"after"})},[h,l,m]),g=s(()=>{u.deleteTableColumn(h,l,{path:m})},[h,l,m]),v=s(()=>{u.toggleHeaderColumn(h,l)},[h,l]);return e(y,Object.assign({id:`table-column-controls-${l}-${n}`},{children:e("div",Object.assign({className:"fixed z-[9999] pointer-events-auto",style:{left:`${r.left}px`,top:`${r.top+4}px`,width:`${r.width}px`,height:"18px"},onMouseEnter:a,onMouseLeave:d},{children:t(N,{children:[e(C,Object.assign({asChild:!0},{children:e(k,Object.assign({variant:"ghost",size:"sm",className:"h-full w-full bg-background/95 hover:bg-accent border border-border/50 shadow-sm rounded-md p-0 transition-all hover:shadow-md",onMouseDown:e=>e.preventDefault()},{children:e(Y,{className:"h-3 w-3 text-muted-foreground"})}))})),t(O,Object.assign({align:"start",side:"top",className:"w-48"},{children:[0===n&&t(o,{children:[t(M,Object.assign({onClick:v},{children:[e(Q,{className:"mr-2 h-4 w-4"}),"Header column"]})),e(z,{})]}),t(M,Object.assign({onClick:b},{children:[e(T,{className:"mr-2 h-4 w-4"}),"Insert column left"]})),t(M,Object.assign({onClick:p},{children:[e(q,{className:"mr-2 h-4 w-4"}),"Insert column right"]})),e(z,{}),t(M,Object.assign({onClick:g,className:"text-destructive focus:text-destructive"},{children:[e(A,{className:"mr-2 h-4 w-4"}),"Delete column"]}))]}))]})}))}))},ce=({blockId:l,rowIndex:n,position:r,onMouseEnter:a,onMouseLeave:d})=>{const h=c(),m=i(()=>[0,n,0,0],[n]),b=s(()=>{u.insertTableRow(h,l,{path:m,insertMode:"before"})},[h,l,m]),p=s(()=>{u.insertTableRow(h,l,{path:m,insertMode:"after"})},[h,l,m]),g=s(()=>{u.deleteTableRow(h,l,{path:m})},[h,l,m]),v=s(()=>{u.toggleHeaderRow(h,l)},[h,l]);return e(y,Object.assign({id:`table-row-controls-${l}-${n}`},{children:e("div",Object.assign({className:"fixed z-[9998] pointer-events-auto",style:{left:`${r.left+20}px`,top:`${r.top}px`,width:"18px",height:`${r.height}px`},onMouseEnter:a,onMouseLeave:d},{children:t(N,{children:[e(C,Object.assign({asChild:!0},{children:e(k,Object.assign({variant:"ghost",size:"sm",className:"h-full w-full bg-background/95 hover:bg-accent border border-border/50 shadow-sm rounded-md p-0 transition-all hover:shadow-md flex items-center justify-center",onMouseDown:e=>e.preventDefault()},{children:e(E,{className:"h-3 w-3 text-muted-foreground"})}))})),t(O,Object.assign({align:"start",side:"left",className:"w-48"},{children:[0===n&&t(o,{children:[t(M,Object.assign({onClick:v},{children:[e(Q,{className:"mr-2 h-4 w-4"}),"Header row"]})),e(z,{})]}),t(M,Object.assign({onClick:b},{children:[e(L,{className:"mr-2 h-4 w-4"}),"Insert row above"]})),t(M,Object.assign({onClick:p},{children:[e(I,{className:"mr-2 h-4 w-4"}),"Insert row below"]})),e(z,{}),t(M,Object.assign({onClick:g,className:"text-destructive focus:text-destructive"},{children:[e(A,{className:"mr-2 h-4 w-4"}),"Delete row"]}))]}))]})}))}))},de=({blockId:l})=>{const u=c(),h=i(()=>d.getBlockSlate(u,{id:l}),[l,u]),[m,b]=n(null),[p,g]=n(!1),[v,f]=n({rowControls:null,columnControls:null,addRowButton:null,addColumnButton:null}),y=r(!1),k=r(!1),j=r(null),N=r(null);N.current=m;const C=s(()=>{var e,t;const o=N.current;if(!o)return void f({rowControls:null,columnControls:null,addRowButton:null,addColumnButton:null});const n=document.querySelector(`[data-yoopta-block-id="${l}"][data-table-container]`);if(!n)return;const r=n.querySelector(".overflow-x-auto"),a=null==r?void 0:r.getBoundingClientRect(),s=n.querySelector("table");if(!s)return;const i=s.getBoundingClientRect(),c=Array.from(n.querySelectorAll("tr")),d=c[o.rowIndex];if(!d)return;const u=Array.from(d.querySelectorAll('[data-element-type="table-data-cell"]'));if(0===u.length)return;const h=u.map(e=>e.getBoundingClientRect()),m=Math.min(...h.map(e=>e.top)),b=Math.max(...h.map(e=>e.bottom)),p=Math.min(...h.map(e=>e.left)),g=b-m,v=[];c.forEach(e=>{const t=Array.from(e.querySelectorAll('[data-element-type="table-data-cell"]'));t[o.colIndex]&&v.push(t[o.colIndex].getBoundingClientRect())});const y=v.length>0?Math.min(...v.map(e=>e.left)):p,w=v.length>0?Math.max(...v.map(e=>e.right)):p,x=w-y,k=v.length>0?Math.min(...v.map(e=>e.top)):m,j=o.rowIndex===o.totalRows-1,C=o.colIndex===o.totalColumns-1,O=!a||y>=a.left-x&&w<=a.right+x,M=null!==(e=null==a?void 0:a.left)&&void 0!==e?e:i.left,z=null!==(t=null==a?void 0:a.right)&&void 0!==t?t:i.right,E=z-M;f({rowControls:{left:Math.max(0,p-32),top:m,height:g},columnControls:O?{left:y,top:k-32,width:x}:null,addRowButton:j?{left:M,top:i.bottom,width:E}:null,addColumnButton:C?{left:Math.min(i.right,z),top:i.top,height:i.height}:null})},[l]);a(()=>{if(!m||!p)return;const e=()=>{C()};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),C(),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[m,p,C]);const O=s(()=>{j.current&&(clearTimeout(j.current),j.current=null)},[]),M=s(()=>{O(),j.current=setTimeout(()=>{y.current||k.current||(g(!1),b(null))},150)},[O]),z=s(e=>{if(!h)return null;const t=Array.from(w.nodes(h,{at:[0],match:t=>{if(!x.isElement(t))return!1;const o=t;return"table-data-cell"===o.type&&"id"in o&&o.id===e},mode:"all"}));if(0===t.length)return null;const[,o]=t[0],l=o[o.length-2],n=o[o.length-1],r=Array.from(w.nodes(h,{at:[0],match:e=>x.isElement(e)&&"table"===e.type,mode:"lowest"}));if(0===r.length)return null;const[a]=r[0];if(!x.isElement(a))return null;const s=a.children.length,i=a.children[0];if(!x.isElement(i))return null;const c=i.children.length;return{rowIndex:l,colIndex:n,cellElementId:e,totalRows:s,totalColumns:c}},[h]);a(()=>{const e=document.querySelector(`[data-yoopta-block-id="${l}"][data-table-container]`);if(!e||!h)return;const t=e=>{O(),y.current=!0;const t=e.target.closest('[data-element-type="table-data-cell"]');if(!t)return;const o=t.getAttribute("data-yoopta-element-id");if(!o)return;const l=N.current;if((null==l?void 0:l.cellElementId)===o)return void g(!0);const n=z(o);n&&(b(n),g(!0))},o=()=>{y.current=!1,M()};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",o),()=>{O(),e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",o)}},[l,h,z,O,M]);const E=s(()=>{O(),k.current=!0},[O]),L=s(()=>{k.current=!1,M()},[M]);return p&&m?t(o,{children:[v.rowControls&&e(ce,{blockId:l,rowIndex:m.rowIndex,position:v.rowControls,onMouseEnter:E,onMouseLeave:L}),v.columnControls&&e(ie,{blockId:l,colIndex:m.colIndex,position:v.columnControls,onMouseEnter:E,onMouseLeave:L}),v.addColumnButton&&e(ae,{blockId:l,totalColumns:m.totalColumns,position:v.addColumnButton,onMouseEnter:E,onMouseLeave:L}),v.addRowButton&&e(se,{blockId:l,totalRows:m.totalRows,position:v.addRowButton,onMouseEnter:E,onMouseLeave:L})]}):null},ue=()=>{var o,l,n,r;const{element:a}=b(),s=p(),i=null!==(o=a.props)&&void 0!==o?o:{};return e(g.Content,Object.assign({side:"bottom",align:"end",sideOffset:8,className:"min-w-[180px] rounded-lg border bg-popover p-2 shadow-md"},{children:t(g.Group,Object.assign({className:"flex flex-col gap-1.5"},{children:[e(g.Label,Object.assign({className:"px-2 text-xs font-bold text-muted-foreground"},{children:"Appearance"})),t("div",Object.assign({className:"flex items-center justify-between px-2"},{children:[e("span",Object.assign({className:"text-xs font-medium text-muted-foreground"},{children:"Bordered"})),e(g.Toggle,{checked:null===(l=i.bordered)||void 0===l||l,onCheckedChange:e=>s({bordered:e})})]})),t("div",Object.assign({className:"flex items-center justify-between px-2"},{children:[e("span",Object.assign({className:"text-xs font-medium text-muted-foreground"},{children:"Compact"})),e(g.Toggle,{checked:null!==(n=i.compact)&&void 0!==n&&n,onCheckedChange:e=>s({compact:e})})]})),t("div",Object.assign({className:"flex items-center justify-between px-2"},{children:[e("span",Object.assign({className:"text-xs font-medium text-muted-foreground"},{children:"Scrollable"})),e(g.Toggle,{checked:null===(r=i.scrollable)||void 0===r||r,onCheckedChange:e=>s({scrollable:e})})]}))]}))}))},he=[{label:"None",value:"transparent",color:"transparent"},{label:"Gray",value:"hsl(var(--muted))",color:"hsl(var(--muted))"},{label:"Red",value:"hsl(0 70% 95%)",color:"hsl(0 70% 95%)"},{label:"Orange",value:"hsl(30 70% 95%)",color:"hsl(30 70% 95%)"},{label:"Yellow",value:"hsl(60 70% 95%)",color:"hsl(60 70% 95%)"},{label:"Green",value:"hsl(120 70% 95%)",color:"hsl(120 70% 95%)"},{label:"Blue",value:"hsl(210 70% 95%)",color:"hsl(210 70% 95%)"},{label:"Purple",value:"hsl(270 70% 95%)",color:"hsl(270 70% 95%)"}],me=[{label:"Default",value:"inherit",color:"currentColor"},{label:"Gray",value:"hsl(var(--muted-foreground))",color:"hsl(var(--muted-foreground))"},{label:"Red",value:"hsl(0 70% 50%)",color:"hsl(0 70% 50%)"},{label:"Orange",value:"hsl(30 70% 50%)",color:"hsl(30 70% 50%)"},{label:"Yellow",value:"hsl(60 70% 40%)",color:"hsl(60 70% 40%)"},{label:"Green",value:"hsl(120 70% 40%)",color:"hsl(120 70% 40%)"},{label:"Blue",value:"hsl(210 70% 50%)",color:"hsl(210 70% 50%)"},{label:"Purple",value:"hsl(270 70% 50%)",color:"hsl(270 70% 50%)"}],be=({blockId:l})=>{const r=c(),s=i(()=>d.getBlockSlate(r,{id:l}),[l,r]),[m,b]=n(null),[p,g]=n(!1),[v,f]=n([]),y=s?h.get(s):[];a(()=>{f(y)},[y]);const w=Array.isArray(y)&&(null==y?void 0:y.length)>0?y:v;a(()=>{if(!s||!w||w.length<=1)return void b(null);const e=document.querySelector(`[data-yoopta-block-id="${l}"]`);if(!e)return void b(null);const t=e.getBoundingClientRect();let o=1/0,n=-1/0,r=1/0,a=-1/0;for(const[e]of w){const t=document.querySelector(`[data-yoopta-block-id="${l}"] [data-yoopta-element-id="${e.id}"]`);if(!t)continue;const s=t.getBoundingClientRect();if(!s)continue;const{top:i,bottom:c,left:d,right:u}=s;o=Math.min(o,i),n=Math.max(n,c),r=Math.min(r,d),a=Math.max(a,u)}b(o!==1/0?{top:o-t.top,left:r-t.left,width:a-r,height:n-o}:null)},[s,w,l]),a(()=>{if(!w||w.length<=1)return;const e=()=>{b(e=>e?Object.assign({},e):null)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[w]);const x=e=>{r&&w&&0!==w.length&&(u.setCellHorizontalAlign(r,l,{cells:w,align:e}),g(!1))},j=e=>{r&&w&&0!==w.length&&(u.setCellVerticalAlign(r,l,{cells:w,align:e}),g(!1))};return m?t(o,{children:[e("div",{className:"pointer-events-none absolute z-[9999]",style:{top:`${m.top}px`,left:`${m.left}px`,width:`${m.width}px`,height:`${m.height}px`,border:"2px solid hsl(var(--primary))",backgroundColor:"hsl(var(--primary) / 0.05)",borderRadius:"2px"}}),e("div",Object.assign({className:"absolute z-20 pointer-events-auto",style:{top:`${m.top+m.height/2}px`,left:`${m.left+m.width}px`,transform:"translate(-50%, -50%)"}},{children:t(H,Object.assign({open:p,onOpenChange:g},{children:[e(P,Object.assign({asChild:!0},{children:e(k,Object.assign({variant:"secondary",size:"icon",className:"h-4 w-4 rounded-full shadow-lg bg-primary hover:bg-primary/90",onMouseDown:e=>e.preventDefault()},{children:e(E,{className:"h-3 w-3 text-primary-foreground"})}))})),e(_,Object.assign({className:"w-64 p-2",align:"start",side:"right"},{children:t("div",Object.assign({className:"space-y-2"},{children:[t(k,Object.assign({variant:"ghost",size:"sm",className:"w-full justify-start gap-2",onClick:()=>{!r||!w||w.length<=1||(u.mergeCells(r,l,{cells:w}),g(!1))},disabled:!w||w.length<=1},{children:[e(X,{className:"h-4 w-4"}),"Merge cells"]})),e(G,{}),t("div",Object.assign({className:"space-y-1"},{children:[e(D,Object.assign({className:"text-sm font-medium"},{children:"Color"})),t(N,{children:[e(C,Object.assign({asChild:!0},{children:t(k,Object.assign({variant:"outline",size:"sm",className:"w-full justify-between"},{children:[t("span",Object.assign({className:"flex items-center gap-2"},{children:[e(K,{className:"h-4 w-4"}),"Select color"]})),e(V,{className:"h-4 w-4 opacity-50"})]}))})),t(O,Object.assign({className:"w-56",align:"start"},{children:[t($,{children:[t(S,{children:[e(K,{className:"mr-2 h-4 w-4"}),"Background color"]}),e(B,{children:he.map(o=>e(M,Object.assign({onClick:()=>(e=>{r&&w&&0!==w.length&&(u.setCellBackgroundColor(r,l,{cells:w,color:e}),g(!1))})(o.value)},{children:t("div",Object.assign({className:"flex items-center gap-2"},{children:[e("div",{className:"h-4 w-4 rounded border",style:{backgroundColor:o.color}}),o.label]}))}),o.value))})]}),t($,{children:[t(S,{children:[e(U,{className:"mr-2 h-4 w-4"}),"Text color"]}),e(B,{children:me.map(o=>e(M,Object.assign({onClick:()=>(e=>{r&&w&&0!==w.length&&(u.setCellTextColor(r,l,{cells:w,color:e}),g(!1))})(o.value)},{children:t("div",Object.assign({className:"flex items-center gap-2"},{children:[e("div",Object.assign({className:"h-4 w-4 rounded border flex items-center justify-center text-xs font-bold",style:{color:o.color}},{children:"A"})),o.label]}))}),o.value))})]})]}))]})]})),t("div",Object.assign({className:"space-y-1"},{children:[e(D,Object.assign({className:"text-sm font-medium"},{children:"Alignment"})),t(N,{children:[e(C,Object.assign({asChild:!0},{children:t(k,Object.assign({variant:"outline",size:"sm",className:"w-full justify-between"},{children:[t("span",Object.assign({className:"flex items-center gap-2"},{children:[e(J,{className:"h-4 w-4"}),"Select alignment"]})),e(V,{className:"h-4 w-4 opacity-50"})]}))})),t(O,Object.assign({className:"w-56",align:"start"},{children:[t($,{children:[t(S,{children:[e(J,{className:"mr-2 h-4 w-4"}),"Horizontal"]}),t(B,{children:[e(M,Object.assign({onClick:()=>x("left")},{children:"Left"})),e(M,Object.assign({onClick:()=>x("center")},{children:"Center"})),e(M,Object.assign({onClick:()=>x("right")},{children:"Right"})),e(M,Object.assign({onClick:()=>x("justify")},{children:"Justify"}))]})]}),t($,{children:[t(S,{children:[e(Z,{className:"mr-2 h-4 w-4"}),"Vertical"]}),t(B,{children:[e(M,Object.assign({onClick:()=>j("top")},{children:"Top"})),e(M,Object.assign({onClick:()=>j("middle")},{children:"Middle"})),e(M,Object.assign({onClick:()=>j("bottom")},{children:"Bottom"}))]})]})]}))]})]})),e(G,{}),t(k,Object.assign({variant:"ghost",size:"sm",className:"w-full justify-start gap-2 text-destructive hover:text-destructive",onClick:()=>{r&&w&&0!==w.length&&(u.clearContents(r,l,{cells:w}),g(!1))}},{children:[e(W,{className:"h-4 w-4"}),"Clear contents"]}))]}))}))]}))}))]}):null};F("[data-element-type=table-data-cell] [data-slate-node=element]{margin:0}[data-slate-node=table]{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-slate-node=table-data-cell]{cursor:cell}[data-slate-node=table-data-cell]:active{cursor:crosshair}[data-is-selecting=true] ::-moz-selection{background:none}[data-is-selecting=true] ::selection{background:none}.column-resize-handle{transition:background-color .15s ease}.column-resize-handle:hover{background-color:hsl(var(--yoopta-shadcn-primary)/.3)!important}.yoopta-table-bordered [data-slot=table-cell]:first-child,.yoopta-table-bordered [data-slot=table-head]:first-child{border-left:1px solid hsl(var(--yoopta-shadcn-border))}.yoopta-table-bordered [data-slot=table-cell]:last-child,.yoopta-table-bordered [data-slot=table-head]:last-child{border-right:1px solid hsl(var(--yoopta-shadcn-border))}.yoopta-table-no-borders [data-slot=table-body] tr:first-child{border-top:none}.yoopta-table-no-borders [data-slot=table-body] tr:last-child{border-bottom:none}.yoopta-table-striped [data-slot=table-body] tr:nth-child(2n){background-color:hsl(var(--yoopta-shadcn-muted)/.4)}.yoopta-table-compact [data-slot=table-cell],.yoopta-table-compact [data-slot=table-head]{padding:4px 6px}.yoopta-table-compact [data-slot=table-head]{height:auto}.yoopta-table-scrollable table[data-slot=table]{min-width:100%}body.resizing-column{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}body.resizing-column,body.resizing-column *{cursor:col-resize!important}");const pe={table:{render:l=>{var n,r,a,s,u,h,b;const{attributes:p,children:v,element:y,blockId:w}=l,x=y,k=c(),j=i(()=>d.getBlockSlate(k,{id:w}),[k,w]),N=j?m.get(j):null,C=null===(r=null===(n=x.props)||void 0===n?void 0:n.bordered)||void 0===r||r,O=null!==(s=null===(a=x.props)||void 0===a?void 0:a.compact)&&void 0!==s&&s,M=null===(h=null===(u=x.props)||void 0===u?void 0:u.scrollable)||void 0===h||h,z=null===(b=x.props)||void 0===b?void 0:b.columnWidths,E=i(()=>{if(M&&z&&0!==z.length)return z.reduce((e,t)=>e+("number"==typeof t?t:parseFloat(String(t))||0),0)},[M,z]);return t("div",Object.assign({className:f("group relative p-4",C?"yoopta-table-bordered":"yoopta-table-no-borders",O&&"yoopta-table-compact",M&&"yoopta-table-scrollable"),"data-yoopta-block-id":w,"data-table-container":!0},{children:[t(g.Root,Object.assign({blockId:w,element:y},{children:[e(g.Trigger,{className:"absolute right-0 top-0 z-10 opacity-0 group-hover:opacity-100 transition-opacity rounded-md p-1 hover:bg-accent"}),e(ue,{})]})),e("div",Object.assign({className:f(M&&"overflow-x-auto")},{children:t(ee,Object.assign({},p,{style:M&&E?{width:`${E}px`}:void 0,"data-is-selecting":!!N},{children:[e("colgroup",{children:null==z?void 0:z.map((t,o)=>e("col",{style:{width:`${t}px`}},o))}),e(te,{children:v})]}))})),!k.readOnly&&t(o,{children:[e(be,{blockId:w}),e(de,{blockId:w}),e(re,{blockId:w})]})]}))}},"table-row":{render:t=>{const{attributes:o,children:l}=t;return e(oe,Object.assign({},o,{children:l}))}},"table-data-cell":{render:t=>{var o,l,n,r,a,s,u,b,p,g,v,y;const{attributes:w,children:x,element:k}=t,j=k,N=c(),C=i(()=>d.getBlockSlate(N,{id:t.blockId}),[N,t.blockId]),O=(null===(o=j.props)||void 0===o?void 0:o.asHeader)?le:ne;return e(O,Object.assign({},w,{onMouseDown:e=>{N.readOnly||(e.stopPropagation(),C&&(h.delete(C),m.delete(C)))},colSpan:null!==(n=null===(l=j.props)||void 0===l?void 0:l.colSpan)&&void 0!==n?n:1,rowSpan:null!==(a=null===(r=j.props)||void 0===r?void 0:r.rowSpan)&&void 0!==a?a:1,align:null!==(u=null===(s=j.props)||void 0===s?void 0:s.align)&&void 0!==u?u:"left",valign:null!==(p=null===(b=j.props)||void 0===b?void 0:b.verticalAlign)&&void 0!==p?p:"middle","data-yoopta-element-id":j.id,className:f("relative group transition-colors"),style:{backgroundColor:null===(g=j.props)||void 0===g?void 0:g.backgroundColor,color:null!==(y=null===(v=j.props)||void 0===v?void 0:v.color)&&void 0!==y?y:"inherit"}},{children:x}))}}};export{pe as TableUI};
|
|
13
|
+
*/ee.displayName="Table";o((t,l)=>{var{className:o}=t,n=v(t,["className"]);return e("thead",Object.assign({ref:l,"data-slot":"table-header",className:f("[&_tr]:border-b",o)},n))}).displayName="TableHeader";const te=o((t,l)=>{var{className:o}=t,n=v(t,["className"]);return e("tbody",Object.assign({ref:l,"data-slot":"table-body",className:f("[&_tr:first-child]:border-t [&_tr]:border-b [&_tr]:border-border",o)},n))});te.displayName="TableBody";o((t,l)=>{var{className:o}=t,n=v(t,["className"]);return e("tfoot",Object.assign({ref:l,"data-slot":"table-footer",className:f("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",o)},n))}).displayName="TableFooter";const le=o((t,l)=>{var{className:o}=t,n=v(t,["className"]);return e("tr",Object.assign({ref:l,"data-slot":"table-row",className:f("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",o)},n))});le.displayName="TableRow";const oe=o((t,l)=>{var{className:o}=t,n=v(t,["className"]);return e("th",Object.assign({ref:l,"data-slot":"table-head",className:f("border-border border-r last:border-r-0 text-foreground h-10 px-2 text-left font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] bg-muted/50",o)},n))});oe.displayName="TableHead";const ne=o((t,l)=>{var{className:o}=t,n=v(t,["className"]);return e("td",Object.assign({ref:l,"data-slot":"table-cell",className:f("border-border border-r last:border-r-0 p-2 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",o)},n))});ne.displayName="TableCell";o((t,l)=>{var{className:o}=t,n=v(t,["className"]);return e("caption",Object.assign({ref:l,"data-slot":"table-caption",className:f("text-muted-foreground mt-4 text-sm",o)},n))}).displayName="TableCaption";const re=({blockId:t})=>{const l=c(),[o,i]=n(null),[d,m]=n(!1),[h,b]=n(null),[p,g]=n([]),v=r(0),f=r(0),w=r([]),x=r(null),k=r(null),j=r(null);a(()=>{w.current=p},[p]),a(()=>{k.current=o},[o]),a(()=>{x.current=h},[h]);const N=s(()=>{const e=document.querySelector(`[data-yoopta-block-id="${t}"][data-table-container]`);if(!e)return;const l=e.querySelector("table");if(!l)return;const o=l.getBoundingClientRect();i(o);const n=l.querySelector("colgroup");j.current=n;const r=l.querySelectorAll("colgroup col"),a=l.querySelector("tr");if(r.length>0){const e=[];o.left,r.forEach((t,l)=>{const o=window.getComputedStyle(t),n=parseInt(o.width,10)||200;e.push(n)}),g(e)}else if(a){const e=a.querySelectorAll("td, th"),t=[],l=[];e.forEach((e,o)=>{const n=e.getBoundingClientRect();l.push(n.width),t.push({index:o,left:n.left,width:n.width})}),g(l)}},[t]);a(()=>{N();const e=document.querySelector(`[data-yoopta-block-id="${t}"][data-table-container]`);if(!e)return;const l=e.querySelector("table");if(!l)return;const o=new ResizeObserver(()=>{d||N()});o.observe(l);const n=new MutationObserver(()=>{d||N()});n.observe(l,{childList:!0,subtree:!0});const r=()=>{d||N()};return window.addEventListener("scroll",r,!0),()=>{o.disconnect(),n.disconnect(),window.removeEventListener("scroll",r,!0)}},[t,N,d]);const C=s(e=>{if(!j.current)return;j.current.querySelectorAll("col").forEach((t,l)=>{void 0!==e[l]&&(t.style.width=`${e[l]}px`)})},[]),O=s((e,t)=>{if(!t||0===e.length)return[];let l=t.left;return e.map((e,t)=>{const o={index:t,left:l,width:e};return l+=e,o})},[]),M=s((e,t)=>{e.preventDefault(),e.stopPropagation();const l=p[t];void 0!==l&&(m(!0),b(t),v.current=e.clientX,f.current=l,document.body.classList.add("resizing-column"))},[p]),z=s(e=>{const t=x.current;if(null===t)return;const l=e.clientX-v.current,o=Math.max(50,f.current+l),n=[...w.current];n[t]=o,g(n),C(n)},[C]),E=s(()=>{const e=x.current,o=w.current;null!==e&&void 0!==o[e]&&u.setColumnWidth(l,t,e,o[e]),m(!1),b(null),document.body.classList.remove("resizing-column"),setTimeout(N,50)},[l,t,N]);if(a(()=>{if(d)return document.addEventListener("mousemove",z),document.addEventListener("mouseup",E),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",E)}},[d,z,E]),!o||0===p.length)return null;const L=O(p,o).slice(0,-1).map(t=>{const l=t.left+t.width-3;return e("div",{className:"column-resize-handle",style:{position:"fixed",left:`${l}px`,top:`${o.top}px`,width:"6px",height:`${o.height}px`,cursor:"col-resize",zIndex:50,backgroundColor:d&&h===t.index?"hsl(var(--primary))":"transparent"},onMouseDown:e=>M(e,t.index),onMouseEnter:e=>{d||(e.target.style.backgroundColor="hsl(var(--primary) / 0.3)")},onMouseLeave:e=>{d||(e.target.style.backgroundColor="transparent")}},`resize-${t.index}`)});return e(y,Object.assign({id:"column-resize-handles-container"},{children:e("div",Object.assign({className:"column-resize-handles-container",style:{pointerEvents:d?"auto":void 0}},{children:L}))}))},ae=({blockId:t,totalColumns:l,position:o,onMouseEnter:n,onMouseLeave:r})=>{const a=c(),i=s(()=>{const e=[0,0,l-1,0];u.insertTableColumn(a,t,{path:e,insertMode:"after"})},[a,t,l]);return e(y,Object.assign({id:`table-add-column-button-${t}`},{children:e("div",Object.assign({className:"fixed z-[9999] pointer-events-auto",style:{left:`${o.left+4}px`,top:`${o.top}px`,width:"18px",height:`${o.height}px`},onMouseEnter:n,onMouseLeave:r},{children:e(k,Object.assign({variant:"ghost",size:"sm",className:"p-0 h-full w-full bg-background/95 hover:bg-accent border border-border/50 shadow-sm rounded-md transition-all hover:shadow-md flex items-center justify-center text-muted-foreground hover:text-foreground",onClick:i,onMouseDown:e=>e.preventDefault()},{children:e(j,{className:"h-3 w-3"})}))}))}))},se=({blockId:t,totalRows:l,position:o,onMouseEnter:n,onMouseLeave:r})=>{const a=c(),i=s(()=>{const e=[0,l-1,0,0];u.insertTableRow(a,t,{path:e,insertMode:"after"})},[a,t,l]);return e(y,Object.assign({id:`table-add-row-button-${t}`},{children:e("div",Object.assign({className:"fixed z-[9999] pointer-events-auto",style:{left:`${o.left}px`,top:`${o.top+4}px`,width:`${o.width}px`,height:"18px"},onMouseEnter:n,onMouseLeave:r},{children:e(k,Object.assign({variant:"ghost",size:"sm",className:"h-full w-full bg-background/95 hover:bg-accent border border-border/50 shadow-sm rounded-md transition-all hover:shadow-md flex items-center justify-center gap-1.5 text-muted-foreground hover:text-foreground",onClick:i,onMouseDown:e=>e.preventDefault()},{children:e(j,{className:"h-3 w-3"})}))}))}))},ie=({blockId:o,colIndex:n,position:r,onMouseEnter:a,onMouseLeave:d})=>{const m=c(),h=i(()=>[0,0,n,0],[n]),b=s(()=>{u.insertTableColumn(m,o,{path:h,insertMode:"before"})},[m,o,h]),p=s(()=>{u.insertTableColumn(m,o,{path:h,insertMode:"after"})},[m,o,h]),g=s(()=>{u.deleteTableColumn(m,o,{path:h})},[m,o,h]),v=s(()=>{u.toggleHeaderColumn(m,o)},[m,o]);return e(y,Object.assign({id:`table-column-controls-${o}-${n}`},{children:e("div",Object.assign({className:"fixed z-[9999] pointer-events-auto",style:{left:`${r.left}px`,top:`${r.top+4}px`,width:`${r.width}px`,height:"18px"},onMouseEnter:a,onMouseLeave:d},{children:t(N,{children:[e(C,Object.assign({asChild:!0},{children:e(k,Object.assign({variant:"ghost",size:"sm",className:"h-full w-full bg-background/95 hover:bg-accent border border-border/50 shadow-sm rounded-md p-0 transition-all hover:shadow-md",onMouseDown:e=>e.preventDefault()},{children:e(X,{className:"h-3 w-3 text-muted-foreground"})}))})),t(O,Object.assign({align:"start",side:"top",className:"w-48"},{children:[0===n&&t(l,{children:[t(M,Object.assign({onClick:v},{children:[e(Q,{className:"mr-2 h-4 w-4"}),"Header column"]})),e(z,{})]}),t(M,Object.assign({onClick:b},{children:[e(T,{className:"mr-2 h-4 w-4"}),"Insert column left"]})),t(M,Object.assign({onClick:p},{children:[e(q,{className:"mr-2 h-4 w-4"}),"Insert column right"]})),e(z,{}),t(M,Object.assign({onClick:g,className:"text-destructive focus:text-destructive"},{children:[e(A,{className:"mr-2 h-4 w-4"}),"Delete column"]}))]}))]})}))}))},ce=({blockId:o,rowIndex:n,position:r,onMouseEnter:a,onMouseLeave:d})=>{const m=c(),h=i(()=>[0,n,0,0],[n]),b=s(()=>{u.insertTableRow(m,o,{path:h,insertMode:"before"})},[m,o,h]),p=s(()=>{u.insertTableRow(m,o,{path:h,insertMode:"after"})},[m,o,h]),g=s(()=>{u.deleteTableRow(m,o,{path:h})},[m,o,h]),v=s(()=>{u.toggleHeaderRow(m,o)},[m,o]);return e(y,Object.assign({id:`table-row-controls-${o}-${n}`},{children:e("div",Object.assign({className:"fixed z-[9998] pointer-events-auto",style:{left:`${r.left+20}px`,top:`${r.top}px`,width:"18px",height:`${r.height}px`},onMouseEnter:a,onMouseLeave:d},{children:t(N,{children:[e(C,Object.assign({asChild:!0},{children:e(k,Object.assign({variant:"ghost",size:"sm",className:"h-full w-full bg-background/95 hover:bg-accent border border-border/50 shadow-sm rounded-md p-0 transition-all hover:shadow-md flex items-center justify-center",onMouseDown:e=>e.preventDefault()},{children:e(E,{className:"h-3 w-3 text-muted-foreground"})}))})),t(O,Object.assign({align:"start",side:"left",className:"w-48"},{children:[0===n&&t(l,{children:[t(M,Object.assign({onClick:v},{children:[e(Q,{className:"mr-2 h-4 w-4"}),"Header row"]})),e(z,{})]}),t(M,Object.assign({onClick:b},{children:[e(L,{className:"mr-2 h-4 w-4"}),"Insert row above"]})),t(M,Object.assign({onClick:p},{children:[e(I,{className:"mr-2 h-4 w-4"}),"Insert row below"]})),e(z,{}),t(M,Object.assign({onClick:g,className:"text-destructive focus:text-destructive"},{children:[e(A,{className:"mr-2 h-4 w-4"}),"Delete row"]}))]}))]})}))}))},de=({blockId:o})=>{const u=c(),m=i(()=>d.getBlockSlate(u,{id:o}),[o,u]),[h,b]=n(null),[p,g]=n(!1),[v,f]=n({rowControls:null,columnControls:null,addRowButton:null,addColumnButton:null}),y=r(!1),k=r(!1),j=r(null),N=r(null);N.current=h;const C=s(()=>{var e,t;const l=N.current;if(!l)return void f({rowControls:null,columnControls:null,addRowButton:null,addColumnButton:null});const n=document.querySelector(`[data-yoopta-block-id="${o}"][data-table-container]`);if(!n)return;const r=n.querySelector(".overflow-x-auto"),a=null==r?void 0:r.getBoundingClientRect(),s=n.querySelector("table");if(!s)return;const i=s.getBoundingClientRect(),c=Array.from(n.querySelectorAll("tr")),d=c[l.rowIndex];if(!d)return;const u=Array.from(d.querySelectorAll('[data-element-type="table-data-cell"]'));if(0===u.length)return;const m=u.map(e=>e.getBoundingClientRect()),h=Math.min(...m.map(e=>e.top)),b=Math.max(...m.map(e=>e.bottom)),p=Math.min(...m.map(e=>e.left)),g=b-h,v=[];c.forEach(e=>{const t=Array.from(e.querySelectorAll('[data-element-type="table-data-cell"]'));t[l.colIndex]&&v.push(t[l.colIndex].getBoundingClientRect())});const y=v.length>0?Math.min(...v.map(e=>e.left)):p,w=v.length>0?Math.max(...v.map(e=>e.right)):p,x=w-y,k=v.length>0?Math.min(...v.map(e=>e.top)):h,j=l.rowIndex===l.totalRows-1,C=l.colIndex===l.totalColumns-1,O=!a||y>=a.left-x&&w<=a.right+x,M=null!==(e=null==a?void 0:a.left)&&void 0!==e?e:i.left,z=null!==(t=null==a?void 0:a.right)&&void 0!==t?t:i.right,E=z-M;f({rowControls:{left:Math.max(0,p-32),top:h,height:g},columnControls:O?{left:y,top:k-32,width:x}:null,addRowButton:j?{left:M,top:i.bottom,width:E}:null,addColumnButton:C?{left:Math.min(i.right,z),top:i.top,height:i.height}:null})},[o]);a(()=>{if(!h||!p)return;const e=()=>{C()};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),C(),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[h,p,C]);const O=s(()=>{j.current&&(clearTimeout(j.current),j.current=null)},[]),M=s(()=>{O(),j.current=setTimeout(()=>{y.current||k.current||(g(!1),b(null))},150)},[O]),z=s(e=>{if(!m)return null;const t=Array.from(w.nodes(m,{at:[0],match:t=>{if(!x.isElement(t))return!1;const l=t;return"table-data-cell"===l.type&&"id"in l&&l.id===e},mode:"all"}));if(0===t.length)return null;const[,l]=t[0],o=l[l.length-2],n=l[l.length-1],r=Array.from(w.nodes(m,{at:[0],match:e=>x.isElement(e)&&"table"===e.type,mode:"lowest"}));if(0===r.length)return null;const[a]=r[0];if(!x.isElement(a))return null;const s=a.children.length,i=a.children[0];if(!x.isElement(i))return null;const c=i.children.length;return{rowIndex:o,colIndex:n,cellElementId:e,totalRows:s,totalColumns:c}},[m]);a(()=>{const e=document.querySelector(`[data-yoopta-block-id="${o}"][data-table-container]`);if(!e||!m)return;const t=e=>{O(),y.current=!0;const t=e.target.closest('[data-element-type="table-data-cell"]');if(!t)return;const l=t.getAttribute("data-yoopta-element-id");if(!l)return;const o=N.current;if((null==o?void 0:o.cellElementId)===l)return void g(!0);const n=z(l);n&&(b(n),g(!0))},l=()=>{y.current=!1,M()};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",l),()=>{O(),e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",l)}},[o,m,z,O,M]);const E=s(()=>{O(),k.current=!0},[O]),L=s(()=>{k.current=!1,M()},[M]);return p&&h?t(l,{children:[v.rowControls&&e(ce,{blockId:o,rowIndex:h.rowIndex,position:v.rowControls,onMouseEnter:E,onMouseLeave:L}),v.columnControls&&e(ie,{blockId:o,colIndex:h.colIndex,position:v.columnControls,onMouseEnter:E,onMouseLeave:L}),v.addColumnButton&&e(ae,{blockId:o,totalColumns:h.totalColumns,position:v.addColumnButton,onMouseEnter:E,onMouseLeave:L}),v.addRowButton&&e(se,{blockId:o,totalRows:h.totalRows,position:v.addRowButton,onMouseEnter:E,onMouseLeave:L})]}):null},ue=()=>{var l,o,n,r;const{element:a}=b(),s=p(),i=null!==(l=a.props)&&void 0!==l?l:{};return e(g.Content,Object.assign({side:"bottom",align:"end",sideOffset:8,className:"min-w-[180px] rounded-lg border bg-popover p-2 shadow-md"},{children:t(g.Group,Object.assign({className:"flex flex-col gap-1.5"},{children:[e(g.Label,Object.assign({className:"px-2 text-xs font-bold text-muted-foreground"},{children:"Appearance"})),t("div",Object.assign({className:"flex items-center justify-between px-2"},{children:[e("span",Object.assign({className:"text-xs font-medium text-muted-foreground"},{children:"Bordered"})),e(g.Toggle,{checked:null===(o=i.bordered)||void 0===o||o,onCheckedChange:e=>s({bordered:e})})]})),t("div",Object.assign({className:"flex items-center justify-between px-2"},{children:[e("span",Object.assign({className:"text-xs font-medium text-muted-foreground"},{children:"Compact"})),e(g.Toggle,{checked:null!==(n=i.compact)&&void 0!==n&&n,onCheckedChange:e=>s({compact:e})})]})),t("div",Object.assign({className:"flex items-center justify-between px-2"},{children:[e("span",Object.assign({className:"text-xs font-medium text-muted-foreground"},{children:"Scrollable"})),e(g.Toggle,{checked:null===(r=i.scrollable)||void 0===r||r,onCheckedChange:e=>s({scrollable:e})})]}))]}))}))},me=[{label:"None",value:"transparent",color:"transparent"},{label:"Gray",value:"hsl(var(--muted))",color:"hsl(var(--muted))"},{label:"Red",value:"hsl(0 70% 95%)",color:"hsl(0 70% 95%)"},{label:"Orange",value:"hsl(30 70% 95%)",color:"hsl(30 70% 95%)"},{label:"Yellow",value:"hsl(60 70% 95%)",color:"hsl(60 70% 95%)"},{label:"Green",value:"hsl(120 70% 95%)",color:"hsl(120 70% 95%)"},{label:"Blue",value:"hsl(210 70% 95%)",color:"hsl(210 70% 95%)"},{label:"Purple",value:"hsl(270 70% 95%)",color:"hsl(270 70% 95%)"}],he=[{label:"Default",value:"inherit",color:"currentColor"},{label:"Gray",value:"hsl(var(--muted-foreground))",color:"hsl(var(--muted-foreground))"},{label:"Red",value:"hsl(0 70% 50%)",color:"hsl(0 70% 50%)"},{label:"Orange",value:"hsl(30 70% 50%)",color:"hsl(30 70% 50%)"},{label:"Yellow",value:"hsl(60 70% 40%)",color:"hsl(60 70% 40%)"},{label:"Green",value:"hsl(120 70% 40%)",color:"hsl(120 70% 40%)"},{label:"Blue",value:"hsl(210 70% 50%)",color:"hsl(210 70% 50%)"},{label:"Purple",value:"hsl(270 70% 50%)",color:"hsl(270 70% 50%)"}],be=({blockId:o})=>{const r=c(),s=i(()=>d.getBlockSlate(r,{id:o}),[o,r]),[h,b]=n(null),[p,g]=n(!1),[v,f]=n([]),y=s?m.get(s):[];a(()=>{f(y)},[y]);const w=Array.isArray(y)&&(null==y?void 0:y.length)>0?y:v;a(()=>{if(!s||!w||w.length<=1)return void b(null);const e=document.querySelector(`[data-yoopta-block-id="${o}"]`);if(!e)return void b(null);const t=e.getBoundingClientRect();let l=1/0,n=-1/0,r=1/0,a=-1/0;for(const[e]of w){const t=document.querySelector(`[data-yoopta-block-id="${o}"] [data-yoopta-element-id="${e.id}"]`);if(!t)continue;const s=t.getBoundingClientRect();if(!s)continue;const{top:i,bottom:c,left:d,right:u}=s;l=Math.min(l,i),n=Math.max(n,c),r=Math.min(r,d),a=Math.max(a,u)}b(l!==1/0?{top:l-t.top,left:r-t.left,width:a-r,height:n-l}:null)},[s,w,o]),a(()=>{if(!w||w.length<=1)return;const e=()=>{b(e=>e?Object.assign({},e):null)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[w]);const x=e=>{r&&w&&0!==w.length&&(u.setCellHorizontalAlign(r,o,{cells:w,align:e}),g(!1))},j=e=>{r&&w&&0!==w.length&&(u.setCellVerticalAlign(r,o,{cells:w,align:e}),g(!1))};return h?t(l,{children:[e("div",{className:"pointer-events-none absolute z-[9999]",style:{top:`${h.top}px`,left:`${h.left}px`,width:`${h.width}px`,height:`${h.height}px`,border:"2px solid hsl(var(--primary))",backgroundColor:"hsl(var(--primary) / 0.05)",borderRadius:"2px"}}),e("div",Object.assign({className:"absolute z-20 pointer-events-auto",style:{top:`${h.top+h.height/2}px`,left:`${h.left+h.width}px`,transform:"translate(-50%, -50%)"}},{children:t(H,Object.assign({open:p,onOpenChange:g},{children:[e(P,Object.assign({asChild:!0},{children:e(k,Object.assign({variant:"secondary",size:"icon",className:"h-4 w-4 rounded-full shadow-lg bg-primary hover:bg-primary/90",onMouseDown:e=>e.preventDefault()},{children:e(E,{className:"h-3 w-3 text-primary-foreground"})}))})),e(_,Object.assign({className:"w-64 p-2",align:"start",side:"right"},{children:t("div",Object.assign({className:"space-y-2"},{children:[t(k,Object.assign({variant:"ghost",size:"sm",className:"w-full justify-start gap-2",onClick:()=>{!r||!w||w.length<=1||(u.mergeCells(r,o,{cells:w}),g(!1))},disabled:!w||w.length<=1},{children:[e(W,{className:"h-4 w-4"}),"Merge cells"]})),e(G,{}),t("div",Object.assign({className:"space-y-1"},{children:[e(D,Object.assign({className:"text-sm font-medium"},{children:"Color"})),t(N,{children:[e(C,Object.assign({asChild:!0},{children:t(k,Object.assign({variant:"outline",size:"sm",className:"w-full justify-between"},{children:[t("span",Object.assign({className:"flex items-center gap-2"},{children:[e(Z,{className:"h-4 w-4"}),"Select color"]})),e(V,{className:"h-4 w-4 opacity-50"})]}))})),t(O,Object.assign({className:"w-56",align:"start"},{children:[t($,{children:[t(S,{children:[e(Z,{className:"mr-2 h-4 w-4"}),"Background color"]}),e(B,{children:me.map(l=>e(M,Object.assign({onClick:()=>(e=>{r&&w&&0!==w.length&&(u.setCellBackgroundColor(r,o,{cells:w,color:e}),g(!1))})(l.value)},{children:t("div",Object.assign({className:"flex items-center gap-2"},{children:[e("div",{className:"h-4 w-4 rounded border",style:{backgroundColor:l.color}}),l.label]}))}),l.value))})]}),t($,{children:[t(S,{children:[e(U,{className:"mr-2 h-4 w-4"}),"Text color"]}),e(B,{children:he.map(l=>e(M,Object.assign({onClick:()=>(e=>{r&&w&&0!==w.length&&(u.setCellTextColor(r,o,{cells:w,color:e}),g(!1))})(l.value)},{children:t("div",Object.assign({className:"flex items-center gap-2"},{children:[e("div",Object.assign({className:"h-4 w-4 rounded border flex items-center justify-center text-xs font-bold",style:{color:l.color}},{children:"A"})),l.label]}))}),l.value))})]})]}))]})]})),t("div",Object.assign({className:"space-y-1"},{children:[e(D,Object.assign({className:"text-sm font-medium"},{children:"Alignment"})),t(N,{children:[e(C,Object.assign({asChild:!0},{children:t(k,Object.assign({variant:"outline",size:"sm",className:"w-full justify-between"},{children:[t("span",Object.assign({className:"flex items-center gap-2"},{children:[e(Y,{className:"h-4 w-4"}),"Select alignment"]})),e(V,{className:"h-4 w-4 opacity-50"})]}))})),t(O,Object.assign({className:"w-56",align:"start"},{children:[t($,{children:[t(S,{children:[e(Y,{className:"mr-2 h-4 w-4"}),"Horizontal"]}),t(B,{children:[e(M,Object.assign({onClick:()=>x("left")},{children:"Left"})),e(M,Object.assign({onClick:()=>x("center")},{children:"Center"})),e(M,Object.assign({onClick:()=>x("right")},{children:"Right"})),e(M,Object.assign({onClick:()=>x("justify")},{children:"Justify"}))]})]}),t($,{children:[t(S,{children:[e(K,{className:"mr-2 h-4 w-4"}),"Vertical"]}),t(B,{children:[e(M,Object.assign({onClick:()=>j("top")},{children:"Top"})),e(M,Object.assign({onClick:()=>j("middle")},{children:"Middle"})),e(M,Object.assign({onClick:()=>j("bottom")},{children:"Bottom"}))]})]})]}))]})]})),e(G,{}),t(k,Object.assign({variant:"ghost",size:"sm",className:"w-full justify-start gap-2 text-destructive hover:text-destructive",onClick:()=>{r&&w&&0!==w.length&&(u.clearContents(r,o,{cells:w}),g(!1))}},{children:[e(J,{className:"h-4 w-4"}),"Clear contents"]}))]}))}))]}))}))]}):null};F("[data-element-type=table-data-cell] [data-slate-node=element]{margin:0}[data-slate-node=table]{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-slate-node=table-data-cell]{cursor:cell}[data-slate-node=table-data-cell]:active{cursor:crosshair}[data-is-selecting=true] ::-moz-selection{background:none}[data-is-selecting=true] ::selection{background:none}.column-resize-handle{transition:background-color .15s ease}.column-resize-handle:hover{background-color:hsl(var(--primary)/.3)!important}.yoopta-table-bordered [data-slot=table-cell]:first-child,.yoopta-table-bordered [data-slot=table-head]:first-child{border-left:1px solid hsl(var(--border))}.yoopta-table-bordered [data-slot=table-cell]:last-child,.yoopta-table-bordered [data-slot=table-head]:last-child{border-right:1px solid hsl(var(--border))}.yoopta-table-no-borders [data-slot=table-body] tr:first-child{border-top:none}.yoopta-table-no-borders [data-slot=table-body] tr:last-child{border-bottom:none}.yoopta-table-striped [data-slot=table-body] tr:nth-child(2n){background-color:hsl(var(--muted)/.4)}.yoopta-table-compact [data-slot=table-cell],.yoopta-table-compact [data-slot=table-head]{padding:4px 6px}.yoopta-table-compact [data-slot=table-head]{height:auto}.yoopta-table-scrollable table[data-slot=table]{min-width:100%}body.resizing-column{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}body.resizing-column,body.resizing-column *{cursor:col-resize!important}");const pe={table:{render:o=>{var n,r,a,s,u,m,b;const{attributes:p,children:v,element:y,blockId:w}=o,x=y,k=c(),j=i(()=>d.getBlockSlate(k,{id:w}),[k,w]),N=j?h.get(j):null,C=null===(r=null===(n=x.props)||void 0===n?void 0:n.bordered)||void 0===r||r,O=null!==(s=null===(a=x.props)||void 0===a?void 0:a.compact)&&void 0!==s&&s,M=null===(m=null===(u=x.props)||void 0===u?void 0:u.scrollable)||void 0===m||m,z=null===(b=x.props)||void 0===b?void 0:b.columnWidths,E=i(()=>{if(M&&z&&0!==z.length)return z.reduce((e,t)=>e+("number"==typeof t?t:parseFloat(String(t))||0),0)},[M,z]);return t("div",Object.assign({className:f("group relative p-4",C?"yoopta-table-bordered":"yoopta-table-no-borders",O&&"yoopta-table-compact",M&&"yoopta-table-scrollable"),"data-yoopta-block-id":w,"data-table-container":!0},{children:[t(g.Root,Object.assign({blockId:w,element:y},{children:[e(g.Trigger,{className:"absolute right-0 top-0 z-10 opacity-0 group-hover:opacity-100 transition-opacity rounded-md p-1 hover:bg-accent"}),e(ue,{})]})),e("div",Object.assign({className:f(M&&"overflow-x-auto")},{children:t(ee,Object.assign({},p,{style:M&&E?{width:`${E}px`}:void 0,"data-is-selecting":!!N},{children:[e("colgroup",{children:null==z?void 0:z.map((t,l)=>e("col",{style:{width:`${t}px`}},l))}),e(te,{children:v})]}))})),!k.readOnly&&t(l,{children:[e(be,{blockId:w}),e(de,{blockId:w}),e(re,{blockId:w})]})]}))}},"table-row":{render:t=>{const{attributes:l,children:o}=t;return e(le,Object.assign({},l,{children:o}))}},"table-data-cell":{render:t=>{var l,o,n,r,a,s,u,b,p,g,v,y;const{attributes:w,children:x,element:k}=t,j=k,N=c(),C=i(()=>d.getBlockSlate(N,{id:t.blockId}),[N,t.blockId]),O=(null===(l=j.props)||void 0===l?void 0:l.asHeader)?oe:ne;return e(O,Object.assign({},w,{onMouseDown:e=>{N.readOnly||(e.stopPropagation(),C&&(m.delete(C),h.delete(C)))},colSpan:null!==(n=null===(o=j.props)||void 0===o?void 0:o.colSpan)&&void 0!==n?n:1,rowSpan:null!==(a=null===(r=j.props)||void 0===r?void 0:r.rowSpan)&&void 0!==a?a:1,align:null!==(u=null===(s=j.props)||void 0===s?void 0:s.align)&&void 0!==u?u:"left",valign:null!==(p=null===(b=j.props)||void 0===b?void 0:b.verticalAlign)&&void 0!==p?p:"middle","data-yoopta-element-id":j.id,className:f("relative group transition-colors"),style:{backgroundColor:null===(g=j.props)||void 0===g?void 0:g.backgroundColor,color:null!==(y=null===(v=j.props)||void 0===v?void 0:v.color)&&void 0!==y?y:"inherit"}},{children:x}))}}};export{pe as TableUI};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* Default CSS Variables for @yoopta/themes-shadcn */
|
|
2
|
+
/* This file is NOT auto-imported. Import it only if you don't already have shadcn CSS variables defined: */
|
|
3
|
+
/* import '@yoopta/themes-shadcn/variables.css'; */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--background: 0 0% 100%;
|
|
7
|
+
--foreground: 0 0% 3.9%;
|
|
8
|
+
--card: 0 0% 100%;
|
|
9
|
+
--card-foreground: 0 0% 3.9%;
|
|
10
|
+
--popover: 0 0% 100%;
|
|
11
|
+
--popover-foreground: 0 0% 3.9%;
|
|
12
|
+
--primary: 0 0% 9%;
|
|
13
|
+
--primary-foreground: 0 0% 98%;
|
|
14
|
+
--secondary: 0 0% 96.1%;
|
|
15
|
+
--secondary-foreground: 0 0% 9%;
|
|
16
|
+
--muted: 0 0% 96.1%;
|
|
17
|
+
--muted-foreground: 0 0% 45.1%;
|
|
18
|
+
--accent: 0 0% 96.1%;
|
|
19
|
+
--accent-foreground: 0 0% 9%;
|
|
20
|
+
--destructive: 0 84.2% 60.2%;
|
|
21
|
+
--destructive-foreground: 0 0% 98%;
|
|
22
|
+
--border: 0 0% 89.8%;
|
|
23
|
+
--input: 0 0% 89.8%;
|
|
24
|
+
--ring: 0 0% 3.9%;
|
|
25
|
+
--radius: 0.5rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dark,
|
|
29
|
+
[data-theme='dark'],
|
|
30
|
+
[data-yoopta-theme='dark'] {
|
|
31
|
+
--background: 0 0% 3.9%;
|
|
32
|
+
--foreground: 0 0% 98%;
|
|
33
|
+
--card: 0 0% 3.9%;
|
|
34
|
+
--card-foreground: 0 0% 98%;
|
|
35
|
+
--popover: 0 0% 3.9%;
|
|
36
|
+
--popover-foreground: 0 0% 98%;
|
|
37
|
+
--primary: 0 0% 98%;
|
|
38
|
+
--primary-foreground: 0 0% 9%;
|
|
39
|
+
--secondary: 0 0% 14.9%;
|
|
40
|
+
--secondary-foreground: 0 0% 98%;
|
|
41
|
+
--muted: 0 0% 14.9%;
|
|
42
|
+
--muted-foreground: 0 0% 63.9%;
|
|
43
|
+
--accent: 0 0% 14.9%;
|
|
44
|
+
--accent-foreground: 0 0% 98%;
|
|
45
|
+
--destructive: 0 62.8% 30.6%;
|
|
46
|
+
--destructive-foreground: 0 0% 98%;
|
|
47
|
+
--border: 0 0% 14.9%;
|
|
48
|
+
--input: 0 0% 14.9%;
|
|
49
|
+
--ring: 0 0% 83.1%;
|
|
50
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type PluginElementRenderProps } from '@yoopta/editor';
|
|
2
|
-
export declare const VideoElement: ({ element, attributes, children, blockId, }: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const VideoElement: ({ element, attributes, children, blockId, }: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=video-element.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-element.d.ts","sourceRoot":"","sources":["../../../../src/video/elements/video/video-element.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,wBAAwB,EAA0B,MAAM,gBAAgB,CAAC;AAmBvF,eAAO,MAAM,YAAY,gDAKtB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"video-element.d.ts","sourceRoot":"","sources":["../../../../src/video/elements/video/video-element.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,wBAAwB,EAA0B,MAAM,gBAAgB,CAAC;AAmBvF,eAAO,MAAM,YAAY,gDAKtB,wBAAwB,mDAgI1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-render.d.ts","sourceRoot":"","sources":["../../../../src/video/elements/video/video-render.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAMxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACtD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,CAAC;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,iBAAiB,CAAC;IAChC,aAAa,CAAC,EAAE,kBAAkB,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,WAAW,mGASrB,KAAK,
|
|
1
|
+
{"version":3,"file":"video-render.d.ts","sourceRoot":"","sources":["../../../../src/video/elements/video/video-render.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAMxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACtD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,CAAC;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,iBAAiB,CAAC;IAChC,aAAa,CAAC,EAAE,kBAAkB,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,WAAW,mGASrB,KAAK,4CA6PP,CAAC"}
|
package/dist/video/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const VideoUI: {
|
|
2
2
|
video: {
|
|
3
|
-
render: ({ element, attributes, children, blockId, }: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
render: ({ element, attributes, children, blockId, }: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
4
|
};
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|