revotech-ui-kit 0.0.31 → 0.0.33
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/revotech-ui-kit.js +3742 -3333
- package/dist/revotech-ui-kit.umd.cjs +732 -614
- package/dist/src/components/atoms/accordion/accordion-content.d.ts +5 -2
- package/dist/src/components/atoms/accordion/accordion-trigger.d.ts +6 -2
- package/dist/src/components/atoms/hoverCard/hover-card-content.d.ts +6 -0
- package/dist/src/components/atoms/hoverCard/hover-card.atom.d.ts +6 -0
- package/dist/src/components/atoms/index.d.ts +17 -14
- package/dist/src/components/atoms/radio-group/radio-group.atom.d.ts +1 -0
- package/dist/src/components/atoms/seperator/separator.atom.d.ts +1 -0
- package/dist/src/components/atoms/switch/switch.atom.d.ts +1 -0
- package/dist/src/components/atoms/textarea/textarea.atom.d.ts +5 -0
- package/dist/src/components/atoms/toast/toast-action.d.ts +5 -0
- package/dist/src/components/atoms/toast/toast-description.d.ts +5 -0
- package/dist/src/components/atoms/toast/toast-title.d.ts +5 -0
- package/dist/src/components/atoms/toast/toast-view-port.d.ts +5 -0
- package/dist/src/components/atoms/toast/toast.atom.d.ts +5 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit-element"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.html_js,a.directive_js,a.asyncDirective_js,a.litElement))})(this,function(a,l,d,ur,Ue,hr,k){"use strict";function St(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=St(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function mr(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=St(n))&&(o&&(o+=" "),o+=e);return o}const Xe="-",gr=n=>{const e=fr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const p=i.split(Xe);return p[0]===""&&p.length!==1&&p.shift(),Pt(p,e)||br(i)},getConflictingClassGroupIds:(i,p)=>{const f=r[i]||[];return p&&o[i]?[...f,...o[i]]:f}}},Pt=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?Pt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(Xe);return(i=e.validators.find(({validator:p})=>p(s)))==null?void 0:i.classGroupId},kt=/^\[(.+)\]$/,br=n=>{if(kt.test(n)){const e=kt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},fr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return wr(Object.entries(n.classGroups),r).forEach(([s,i])=>{Ye(i,o,s,e)}),o},Ye=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:Dt(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(vr(t)){Ye(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{Ye(i,Dt(e,s),r,o)})})},Dt=(n,e)=>{let r=n;return e.split(Xe).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},vr=n=>n.isThemeGetter,wr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,p])=>[e+i,p])):s);return[r,t]}):n,yr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,i)=>{r.set(s,i),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return t(s,i),i},set(s,i){r.has(s)?r.set(s,i):t(s,i)}}},Mt="!",xr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=p=>{const f=[];let m=0,g=0,C;for(let v=0;v<p.length;v++){let O=p[v];if(m===0){if(O===t&&(o||p.slice(v,v+s)===e)){f.push(p.slice(g,v)),g=v+s;continue}if(O==="/"){C=v;continue}}O==="["?m++:O==="]"&&m--}const _=f.length===0?p:p.substring(g),P=_.startsWith(Mt),E=P?_.substring(1):_,$=C&&C>g?C-g:void 0;return{modifiers:f,hasImportantModifier:P,baseClassName:E,maybePostfixModifierPosition:$}};return r?p=>r({className:p,parseClassName:i}):i},$r=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},Cr=n=>({cache:yr(n.cacheSize),parseClassName:xr(n),...gr(n)}),_r=/\s+/,Or=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(_r);let p="";for(let f=i.length-1;f>=0;f-=1){const m=i[f],{modifiers:g,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:P}=r(m);let E=!!P,$=o(E?_.substring(0,P):_);if(!$){if(!E){p=m+(p.length>0?" "+p:p);continue}if($=o(_),!$){p=m+(p.length>0?" "+p:p);continue}E=!1}const v=$r(g).join(":"),O=C?v+Mt:v,S=O+$;if(s.includes(S))continue;s.push(S);const _e=t($,E);for(let oe=0;oe<_e.length;++oe){const Ge=_e[oe];s.push(O+Ge)}p=m+(p.length>0?" "+p:p)}return p};function Er(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=It(e))&&(o&&(o+=" "),o+=r);return o}const It=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=It(n[o]))&&(r&&(r+=" "),r+=e);return r};function Sr(n,...e){let r,o,t,s=i;function i(f){const m=e.reduce((g,C)=>C(g),n());return r=Cr(m),o=r.cache.get,t=r.cache.set,s=p,p(f)}function p(f){const m=o(f);if(m)return m;const g=Or(f,r);return t(f,g),g}return function(){return s(Er.apply(null,arguments))}}const b=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Lt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pr=/^\d+\/\d+$/,kr=new Set(["px","full","screen"]),Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ir=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ar=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=n=>ne(n)||kr.has(n)||Pr.test(n),T=n=>se(n,"length",qr),ne=n=>!!n&&!Number.isNaN(Number(n)),He=n=>se(n,"number",ne),me=n=>!!n&&Number.isInteger(Number(n)),zr=n=>n.endsWith("%")&&ne(n.slice(0,-1)),h=n=>Lt.test(n),B=n=>Dr.test(n),Rr=new Set(["length","size","percentage"]),Tr=n=>se(n,Rr,At),Br=n=>se(n,"position",At),Nr=new Set(["image","url"]),Fr=n=>se(n,Nr,Ur),Gr=n=>se(n,"",Vr),ge=()=>!0,se=(n,e,r)=>{const o=Lt.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},qr=n=>Mr.test(n)&&!Ir.test(n),At=()=>!1,Vr=n=>Lr.test(n),Ur=n=>Ar.test(n),Xr=Sr(()=>{const n=b("colors"),e=b("spacing"),r=b("blur"),o=b("brightness"),t=b("borderColor"),s=b("borderRadius"),i=b("borderSpacing"),p=b("borderWidth"),f=b("contrast"),m=b("grayscale"),g=b("hueRotate"),C=b("invert"),_=b("gap"),P=b("gradientColorStops"),E=b("gradientColorStopPositions"),$=b("inset"),v=b("margin"),O=b("opacity"),S=b("padding"),_e=b("saturate"),oe=b("scale"),Ge=b("sepia"),sr=b("skew"),ir=b("space"),ar=b("translate"),Ct=()=>["auto","contain","none"],_t=()=>["auto","hidden","clip","visible","scroll"],Ot=()=>["auto",h,e],w=()=>[h,e],lr=()=>["",I,T],qe=()=>["auto",ne,h],dr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ve=()=>["solid","dashed","dotted","double","none"],cr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Et=()=>["start","end","center","between","around","evenly","stretch"],Oe=()=>["","0",h],pr=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ne,h];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[I,T],blur:["none","",B,h],brightness:R(),borderColor:[n],borderRadius:["none","","full",B,h],borderSpacing:w(),borderWidth:lr(),contrast:R(),grayscale:Oe(),hueRotate:R(),invert:Oe(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[zr,T],inset:Ot(),margin:Ot(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:Oe(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":pr()}],"break-before":[{"break-before":pr()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...dr(),h]}],overflow:[{overflow:_t()}],"overflow-x":[{"overflow-x":_t()}],"overflow-y":[{"overflow-y":_t()}],overscroll:[{overscroll:Ct()}],"overscroll-x":[{"overscroll-x":Ct()}],"overscroll-y":[{"overscroll-y":Ct()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",me,h]}],basis:[{basis:Ot()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:Oe()}],shrink:[{shrink:Oe()}],order:[{order:["first","last","none",me,h]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",me,h]},h]}],"col-start":[{"col-start":qe()}],"col-end":[{"col-end":qe()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[me,h]},h]}],"row-start":[{"row-start":qe()}],"row-end":[{"row-end":qe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...Et()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Et(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Et(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[ir]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ir]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",B,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",He]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",ne,He]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ve(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,T]}],"underline-offset":[{"underline-offset":["auto",I,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...dr(),Br]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Fr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...Ve(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:Ve()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Ve()]}],"outline-offset":[{"outline-offset":[I,h]}],"outline-w":[{outline:[I,T]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:lr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[I,T]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",B,Gr]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...cr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":cr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,h]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[C]}],saturate:[{saturate:[_e]}],sepia:[{sepia:[Ge]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[_e]}],"backdrop-sepia":[{"backdrop-sepia":[Ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[oe]}],"scale-x":[{"scale-x":[oe]}],"scale-y":[{"scale-y":[oe]}],rotate:[{rotate:[me,h]}],"translate-x":[{"translate-x":[ar]}],"translate-y":[{"translate-y":[ar]}],"skew-x":[{"skew-x":[sr]}],"skew-y":[{"skew-y":[sr]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[I,T,He]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function u(...n){return Xr(mr(n))}class y extends l.LitElement{constructor(){super()}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,o=""){var s,i;let t="";e.some(p=>this.isCustomPropertySet(p))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}const c=l.css` @font-face {
|
1
|
+
(function(i,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit-element"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit-element","lit/html.js","lit/directive.js","lit/async-directive.js"],l):(i=typeof globalThis<"u"?globalThis:i||self,l(i["revotech-ui-kit"]={},i.lit,i.decorators_js,i.litElement,i.html_js,i.directive_js,i.asyncDirective_js))})(this,function(i,l,d,k,_r,Qe,Or){"use strict";function Tt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=Tt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function Er(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=Tt(n))&&(o&&(o+=" "),o+=e);return o}const je="-",Sr=n=>{const e=kr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:a=>{const p=a.split(je);return p[0]===""&&p.length!==1&&p.shift(),Bt(p,e)||Pr(a)},getConflictingClassGroupIds:(a,p)=>{const f=r[a]||[];return p&&o[a]?[...f,...o[a]]:f}}},Bt=(n,e)=>{var a;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?Bt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(je);return(a=e.validators.find(({validator:p})=>p(s)))==null?void 0:a.classGroupId},Nt=/^\[(.+)\]$/,Pr=n=>{if(Nt.test(n)){const e=Nt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},kr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return Mr(Object.entries(n.classGroups),r).forEach(([s,a])=>{et(a,o,s,e)}),o},et=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:Ft(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(Dr(t)){et(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,a])=>{et(a,Ft(e,s),r,o)})})},Ft=(n,e)=>{let r=n;return e.split(je).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Dr=n=>n.isThemeGetter,Mr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,p])=>[e+a,p])):s);return[r,t]}):n,Ir=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,a)=>{r.set(s,a),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=o.get(s))!==void 0)return t(s,a),a},set(s,a){r.has(s)?r.set(s,a):t(s,a)}}},qt="!",Lr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,a=p=>{const f=[];let m=0,g=0,$;for(let v=0;v<p.length;v++){let O=p[v];if(m===0){if(O===t&&(o||p.slice(v,v+s)===e)){f.push(p.slice(g,v)),g=v+s;continue}if(O==="/"){$=v;continue}}O==="["?m++:O==="]"&&m--}const _=f.length===0?p:p.substring(g),P=_.startsWith(qt),E=P?_.substring(1):_,C=$&&$>g?$-g:void 0;return{modifiers:f,hasImportantModifier:P,baseClassName:E,maybePostfixModifierPosition:C}};return r?p=>r({className:p,parseClassName:a}):a},Ar=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},zr=n=>({cache:Ir(n.cacheSize),parseClassName:Lr(n),...Sr(n)}),Rr=/\s+/,Tr=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],a=n.trim().split(Rr);let p="";for(let f=a.length-1;f>=0;f-=1){const m=a[f],{modifiers:g,hasImportantModifier:$,baseClassName:_,maybePostfixModifierPosition:P}=r(m);let E=!!P,C=o(E?_.substring(0,P):_);if(!C){if(!E){p=m+(p.length>0?" "+p:p);continue}if(C=o(_),!C){p=m+(p.length>0?" "+p:p);continue}E=!1}const v=Ar(g).join(":"),O=$?v+qt:v,S=O+C;if(s.includes(S))continue;s.push(S);const ke=t(C,E);for(let le=0;le<ke.length;++le){const We=ke[le];s.push(O+We)}p=m+(p.length>0?" "+p:p)}return p};function Br(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=Gt(e))&&(o&&(o+=" "),o+=r);return o}const Gt=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=Gt(n[o]))&&(r&&(r+=" "),r+=e);return r};function Nr(n,...e){let r,o,t,s=a;function a(f){const m=e.reduce((g,$)=>$(g),n());return r=zr(m),o=r.cache.get,t=r.cache.set,s=p,p(f)}function p(f){const m=o(f);if(m)return m;const g=Tr(f,r);return t(f,g),g}return function(){return s(Br.apply(null,arguments))}}const b=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Vt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fr=/^\d+\/\d+$/,qr=new Set(["px","full","screen"]),Gr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ur=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Hr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=n=>de(n)||qr.has(n)||Fr.test(n),N=n=>ce(n,"length",eo),de=n=>!!n&&!Number.isNaN(Number(n)),tt=n=>ce(n,"number",de),ve=n=>!!n&&Number.isInteger(Number(n)),Yr=n=>n.endsWith("%")&&de(n.slice(0,-1)),h=n=>Vt.test(n),F=n=>Gr.test(n),Kr=new Set(["length","size","percentage"]),Wr=n=>ce(n,Kr,Ut),Zr=n=>ce(n,"position",Ut),Jr=new Set(["image","url"]),Qr=n=>ce(n,Jr,ro),jr=n=>ce(n,"",to),we=()=>!0,ce=(n,e,r)=>{const o=Vt.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},eo=n=>Vr.test(n)&&!Ur.test(n),Ut=()=>!1,to=n=>Hr.test(n),ro=n=>Xr.test(n),oo=Nr(()=>{const n=b("colors"),e=b("spacing"),r=b("blur"),o=b("brightness"),t=b("borderColor"),s=b("borderRadius"),a=b("borderSpacing"),p=b("borderWidth"),f=b("contrast"),m=b("grayscale"),g=b("hueRotate"),$=b("invert"),_=b("gap"),P=b("gradientColorStops"),E=b("gradientColorStopPositions"),C=b("inset"),v=b("margin"),O=b("opacity"),S=b("padding"),ke=b("saturate"),le=b("scale"),We=b("sepia"),fr=b("skew"),vr=b("space"),wr=b("translate"),Lt=()=>["auto","contain","none"],At=()=>["auto","hidden","clip","visible","scroll"],zt=()=>["auto",h,e],w=()=>[h,e],yr=()=>["",L,N],Ze=()=>["auto",de,h],xr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Je=()=>["solid","dashed","dotted","double","none"],Cr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Rt=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",h],$r=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[de,h];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[L,N],blur:["none","",F,h],brightness:B(),borderColor:[n],borderRadius:["none","","full",F,h],borderSpacing:w(),borderWidth:yr(),contrast:B(),grayscale:De(),hueRotate:B(),invert:De(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[Yr,N],inset:zt(),margin:zt(),opacity:B(),padding:w(),saturate:B(),scale:B(),sepia:De(),skew:B(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":$r()}],"break-before":[{"break-before":$r()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...xr(),h]}],overflow:[{overflow:At()}],"overflow-x":[{"overflow-x":At()}],"overflow-y":[{"overflow-y":At()}],overscroll:[{overscroll:Lt()}],"overscroll-x":[{"overscroll-x":Lt()}],"overscroll-y":[{"overscroll-y":Lt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ve,h]}],basis:[{basis:zt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",ve,h]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",ve,h]},h]}],"col-start":[{"col-start":Ze()}],"col-end":[{"col-end":Ze()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[ve,h]},h]}],"row-start":[{"row-start":Ze()}],"row-end":[{"row-end":Ze()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...Rt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Rt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Rt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[vr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[vr]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",F,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tt]}],"font-family":[{font:[we]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",de,tt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,N]}],"underline-offset":[{"underline-offset":["auto",L,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xr(),Zr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...Je(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:Je()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Je()]}],"outline-offset":[{"outline-offset":[L,h]}],"outline-w":[{outline:[L,N]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:yr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[L,N]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",F,jr]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...Cr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Cr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",F,h]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[$]}],saturate:[{saturate:[ke]}],sepia:[{sepia:[We]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[$]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[ke]}],"backdrop-sepia":[{"backdrop-sepia":[We]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[le]}],"scale-x":[{"scale-x":[le]}],"scale-y":[{"scale-y":[le]}],rotate:[{rotate:[ve,h]}],"translate-x":[{"translate-x":[wr]}],"translate-y":[{"translate-y":[wr]}],"skew-x":[{"skew-x":[fr]}],"skew-y":[{"skew-y":[fr]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[L,N,tt]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function u(...n){return oo(Er(n))}class y extends l.LitElement{constructor(){super()}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,o=""){var s,a;let t="";e.some(p=>this.isCustomPropertySet(p))&&(t=o),t&&((a=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||a.classList.add(t))}}const c=l.css` @font-face {
|
2
2
|
font-family: 'GeistSans';
|
3
3
|
|
4
4
|
src: url('assets/fonts/Geist/Geist-Regular.woff2') format('woff2');
|
@@ -1204,6 +1204,11 @@ body {
|
|
1204
1204
|
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));
|
1205
1205
|
}
|
1206
1206
|
|
1207
|
+
.rotate-180 {
|
1208
|
+
--tw-rotate: 180deg;
|
1209
|
+
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));
|
1210
|
+
}
|
1211
|
+
|
1207
1212
|
.scale-100 {
|
1208
1213
|
--tw-scale-x: 1;
|
1209
1214
|
--tw-scale-y: 1;
|
@@ -1418,6 +1423,10 @@ body {
|
|
1418
1423
|
white-space: nowrap;
|
1419
1424
|
}
|
1420
1425
|
|
1426
|
+
.text-wrap {
|
1427
|
+
text-wrap: wrap;
|
1428
|
+
}
|
1429
|
+
|
1421
1430
|
.break-words {
|
1422
1431
|
overflow-wrap: break-word;
|
1423
1432
|
}
|
@@ -1644,6 +1653,11 @@ body {
|
|
1644
1653
|
fill: hsl(var(--primary));
|
1645
1654
|
}
|
1646
1655
|
|
1656
|
+
.object-cover {
|
1657
|
+
-o-object-fit: cover;
|
1658
|
+
object-fit: cover;
|
1659
|
+
}
|
1660
|
+
|
1647
1661
|
.p-0 {
|
1648
1662
|
padding: 0;
|
1649
1663
|
}
|
@@ -2767,42 +2781,249 @@ body {
|
|
2767
2781
|
.\\[\\&_svg\\]\\:shrink-0 svg {
|
2768
2782
|
flex-shrink: 0;
|
2769
2783
|
}
|
2770
|
-
|
2784
|
+
`;class Ht extends Or.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return _r.nothing}update(e,[r]){var o;this.element!==e.element&&(this.element=e.element),this.host=((o=e.options)===null||o===void 0?void 0:o.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(e){if(!e)return;const{prevData:r,element:o}=this;for(const t in e){const s=e[t];s!==r[t]&&(o[t]=s)}}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r)(!e||!(t in e)&&o[t]===r[t])&&(o[t]=void 0)}}Qe.directive(Ht);class Xt extends Ht{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const r in e){const o=e[r];o!==this.eventData[r]&&this.applyEvent(r,o)}}applyEvent(e,r){const{prevData:o,element:t}=this;this.eventData[e]=r,o[e]&&t.removeEventListener(e,this,r),t.addEventListener(e,this,r)}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r)(!e||!(t in e)&&o[t]===r[t])&&this.groomEvent(t,r[t])}groomEvent(e,r){const{element:o}=this;delete this.eventData[e],o.removeEventListener(e,this,r)}handleEvent(e){const r=this.eventData[e.type];typeof r=="function"?r.call(this.host,e):r.handleEvent(e)}disconnected(){const{eventData:e,element:r}=this;for(const o in e){const t=o.slice(1),s=e[o];r.removeEventListener(t,this,s)}}reconnected(){const{eventData:e,element:r}=this;for(const o in e){const t=o.slice(1),s=e[o];r.addEventListener(t,this,s)}}}Qe.directive(Xt);class no extends Xt{apply(e){if(!e)return;const{prevData:r,element:o}=this;for(const t in e){const s=e[t];if(s===r[t])continue;const a=t.slice(1);switch(t[0]){case"@":this.eventData[a]=s,this.applyEvent(a,s);break;case".":o[a]=s;break;case"?":s?o.setAttribute(a,""):o.removeAttribute(a);break;default:s!=null?o.setAttribute(t,String(s)):o.removeAttribute(t);break}}}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r){const s=t.slice(1);if(!e||!(t in e)&&o[s]===r[t])switch(t[0]){case"@":this.groomEvent(s,r[t]);break;case".":o[s]=void 0;break;case"?":o.removeAttribute(s);break;default:o.removeAttribute(t);break}}}}const x=Qe.directive(no);var so=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,rt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ao(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&so(e,r,t),t};let J=class extends y{constructor(){super(...arguments),this.value="",this.tabindex=0,this.handleClick=n=>{n.preventDefault(),n.stopPropagation();const e=n.currentTarget;if(e instanceof HTMLDivElement){const r=e.getAttribute("value")??"";this._accordion&&this._accordion.raiseEvent(r)}}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(n){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this._accordion&&this._accordion.removeEventListener("clicked-accordion",()=>{})}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof q);)n=n.parentElement;return n}render(){var e;const n=this.getFilteredAttributes();return k.html`
|
2785
|
+
<div
|
2786
|
+
${x(n)}
|
2787
|
+
data-state=${(e=this._accordion)!=null&&e.selectedItems.includes(this.value)?"open":"closed"}
|
2788
|
+
role="tablist"
|
2789
|
+
data-orientation="vertical"
|
2790
|
+
data-state="active"
|
2791
|
+
class="w-full border-b"
|
2792
|
+
value="${this.value}"
|
2793
|
+
@click=${this.handleClick}
|
2794
|
+
part="accordion-item"
|
2795
|
+
>
|
2796
|
+
<h3>
|
2797
|
+
<slot name="accordion-trigger"></slot>
|
2798
|
+
</h3>
|
2799
|
+
<div>
|
2800
|
+
${this._accordion&&this._accordion.selectedItems.includes(this.value)?k.html`<slot name="accordion-content"></slot>`:k.nothing}
|
2801
|
+
</div>
|
2802
|
+
</div>
|
2803
|
+
`}};J.styles=[k.css``,c],rt([d.property({type:String})],J.prototype,"value",2),rt([d.property({type:Number})],J.prototype,"tabindex",2),J=rt([d.customElement("rtg-accordion-item")],J);function Yt(){return l.svg` <svg
|
2804
|
+
class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
|
2805
|
+
xmlns="http://www.w3.org/2000/svg"
|
2806
|
+
width="24"
|
2807
|
+
height="24"
|
2808
|
+
viewBox="0 0 24 24"
|
2809
|
+
fill="none"
|
2810
|
+
stroke="currentColor"
|
2811
|
+
stroke-width="2"
|
2812
|
+
stroke-linecap="round"
|
2813
|
+
stroke-linejoin="round"
|
2814
|
+
>
|
2815
|
+
<path d="m7 15 5 5 5-5"></path>
|
2816
|
+
<path d="m7 9 5-5 5 5"></path>
|
2817
|
+
</svg>
|
2818
|
+
`}function Kt(){return l.svg`
|
2819
|
+
<svg
|
2820
|
+
class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
|
2821
|
+
xmlns="http://www.w3.org/2000/svg"
|
2822
|
+
width="24"
|
2823
|
+
height="24"
|
2824
|
+
viewBox="0 0 24 24"
|
2825
|
+
fill="none"
|
2826
|
+
stroke="currentColor"
|
2827
|
+
stroke-width="2"
|
2828
|
+
stroke-linecap="round"
|
2829
|
+
stroke-linejoin="round"
|
2830
|
+
>
|
2831
|
+
<path d="M20 6 9 17l-5-5"></path>
|
2832
|
+
</svg>
|
2833
|
+
`}function Wt(){return l.svg` <svg
|
2834
|
+
xmlns="http://www.w3.org/2000/svg"
|
2835
|
+
width = "24"
|
2836
|
+
height = "24"
|
2837
|
+
viewBox = "0 0 24 24"
|
2838
|
+
fill = "none"
|
2839
|
+
stroke = "currentColor"
|
2840
|
+
stroke-width="2"
|
2841
|
+
stroke-linecap="round"
|
2842
|
+
stroke-linejoin="round"
|
2843
|
+
class="lucide lucide-search h-4 w-4 shrink-0 opacity-50" >
|
2844
|
+
<circle cx="11" cy = "11" r = "8" > </circle>
|
2845
|
+
<path d="m21 21-4.3-4.3"></path >
|
2846
|
+
</svg>
|
2847
|
+
`}function Zt(){return l.svg` <svg
|
2848
|
+
xmlns="http://www.w3.org/2000/svg"
|
2849
|
+
width="24"
|
2850
|
+
height="24"
|
2851
|
+
viewBox="0 0 24 24"
|
2852
|
+
fill="#000000"
|
2853
|
+
stroke="currentColor"
|
2854
|
+
stroke-width="2"
|
2855
|
+
stroke-linecap="round"
|
2856
|
+
stroke-linejoin="round"
|
2857
|
+
class="lucide lucide-circle h-2 w-2 fill-current"
|
2858
|
+
>
|
2859
|
+
<circle cx="12" cy="12" r="10"></circle>
|
2860
|
+
</svg>
|
2861
|
+
`}function io(){return l.svg` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-4 w-4 shrink-0 transition-transform duration-200"><path d="m6 9 6 6 6-6"></path></svg>
|
2862
|
+
`}function lo(){return l.svg` <svg
|
2863
|
+
xmlns="http://www.w3.org/2000/svg"
|
2864
|
+
width="24"
|
2865
|
+
height="24"
|
2866
|
+
viewBox="0 0 24 24"
|
2867
|
+
fill="#000000"
|
2868
|
+
stroke="currentColor"
|
2869
|
+
stroke-width="2"
|
2870
|
+
stroke-linecap="round"
|
2871
|
+
stroke-linejoin="round"
|
2872
|
+
class="lucide lucide-circle h-3.5 w-3.5 fill-primary"
|
2873
|
+
>
|
2874
|
+
<circle cx="12" cy="12" r="10"></circle></svg
|
2875
|
+
>
|
2876
|
+
`}function co(){return l.svg` <svg
|
2877
|
+
xmlns="http://www.w3.org/2000/svg"
|
2878
|
+
width="24"
|
2879
|
+
height="24"
|
2880
|
+
viewBox="0 0 24 24"
|
2881
|
+
fill="#000000"
|
2882
|
+
stroke="currentColor"
|
2883
|
+
stroke-width="2"
|
2884
|
+
stroke-linecap="round"
|
2885
|
+
stroke-linejoin="round"
|
2886
|
+
class="lucide lucide-x h-4 w-4"
|
2887
|
+
>
|
2888
|
+
<path d="M18 6 6 18"></path>
|
2889
|
+
<path d="m6 6 12 12"></path>
|
2890
|
+
</svg>
|
2891
|
+
`}function po(){return l.svg`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-dot">
|
2892
|
+
<circle cx="12.1" cy="12.1" r="1"></circle>
|
2893
|
+
</svg>`}var uo=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,Jt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ho(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&uo(e,r,t),t};let Me=class extends y{connectedCallback(){super.connectedCallback()}firstUpdated(n){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}getAttributesToExclude(){return["value","defaultValue"]}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof q);)n=n.parentElement;return n}get _item(){let n=this.parentElement;for(;n&&!(n instanceof J);)n=n.parentElement;return n}hasActiveState(){return this._item&&this._accordion?!!this._accordion.selectedItems.includes(this._item.value):!1}render(){var r;const n=this.getFilteredAttributes(),e=this.hasActiveState();return k.html`
|
2894
|
+
<button
|
2895
|
+
${x(n)}
|
2896
|
+
type="button"
|
2897
|
+
part="accordion-trigger"
|
2898
|
+
role="tab"
|
2899
|
+
value=${(r=this._item)==null?void 0:r.value}
|
2900
|
+
aria-selected=${e?"true":"false"}
|
2901
|
+
aria-controls=${!!e}
|
2902
|
+
aria-expanded=${e?"true":"false"}
|
2903
|
+
data-state=${e?"open":"closed"}
|
2904
|
+
class="w-full flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180"
|
2905
|
+
tabindex="-1"
|
2906
|
+
data-orientation="horizontal"
|
2907
|
+
data-radix-collection-item=""
|
2908
|
+
>
|
2909
|
+
<slot></slot>
|
2910
|
+
${io()}
|
2911
|
+
</button>
|
2912
|
+
`}};Me.styles=[k.css``,c],Jt([d.property({type:Function})],Me.prototype,"onClickCallback",2),Me=Jt([d.customElement("rtg-accordion-trigger")],Me);var mo=Object.defineProperty,go=Object.getOwnPropertyDescriptor,ot=(n,e,r,o)=>{for(var t=o>1?void 0:o?go(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&mo(e,r,t),t};let ye=class extends k.LitElement{constructor(){super(...arguments),this.value="",this.selectedValue=""}updated(n){super.updated(n)}firstUpdated(n){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof q);)n=n.parentElement;return n}get _item(){let n=this.parentElement;for(;n&&!(n instanceof J);)n=n.parentElement;return n}hasActiveState(){return this._item&&this._accordion?!!this._accordion.selectedItems.includes(this._item.value):!1}render(){return k.html`
|
2913
|
+
<div
|
2914
|
+
@click=${n=>{n.stopPropagation()}}
|
2915
|
+
part="accordion-content"
|
2916
|
+
data-state=${this.hasActiveState()?"open":"closed"}
|
2917
|
+
role="region"
|
2918
|
+
data-orientation="vertical"
|
2919
|
+
class="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down
|
2920
|
+
text-wrap"
|
2921
|
+
style="
|
2922
|
+
--radix-accordion-content-height: var(--radix-collapsible-content-height);
|
2923
|
+
--radix-accordion-content-width: var(--radix-collapsible-content-width);
|
2924
|
+
--radix-collapsible-content-height: 36px;
|
2925
|
+
--radix-collapsible-content-width: 385px;"
|
2926
|
+
>
|
2927
|
+
<div class="pb-4 pt-0">
|
2928
|
+
<slot></slot>
|
2929
|
+
</div>
|
2930
|
+
</div>
|
2931
|
+
`}};ye.styles=[k.css``,c],ot([d.property({type:String})],ye.prototype,"value",2),ot([d.state()],ye.prototype,"selectedValue",2),ye=ot([d.customElement("rtg-accordion-content")],ye);var pe=(n=>(n.MULTIPLE="multiple",n.SINGLE="single",n))(pe||{}),bo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,nt=(n,e,r,o)=>{for(var t=o>1?void 0:o?fo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&bo(e,r,t),t};let q=class extends y{constructor(){super(...arguments),this.twCLass="",this.type=pe.MULTIPLE,this.selectedItems=[]}getAttributesToExclude(){return["variant"]}connectedCallback(){var n;super.connectedCallback(),(n=this.shadowRoot)==null||n.addEventListener("clicked-accordion",()=>{})}disconnectedCallback(){super.disconnectedCallback()}setSelectedItems(n){const e=this.selectedItems.indexOf(n);if(e>-1)if(this.type===pe.SINGLE)this.selectedItems=[];else if(this.type===pe.MULTIPLE)this.selectedItems.splice(e,1);else throw new Error("Type does not correct");else if(this.type===pe.SINGLE)this.selectedItems[0]=n;else if(this.type===pe.MULTIPLE)this.selectedItems.push(n);else throw new Error("Type does not correct")}raiseEvent(n){this.setSelectedItems(n);const e=new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}});this.dispatchEvent(e)}render(){const n=this.getFilteredAttributes();return l.html`
|
2932
|
+
<div
|
2933
|
+
data-orientation="vertical"
|
2934
|
+
${x(n)}
|
2935
|
+
part="accordion"
|
2936
|
+
class="${this.twCLass} w-full"
|
2937
|
+
>
|
2938
|
+
<slot name="accordion-item"></slot>
|
2939
|
+
</div>
|
2940
|
+
`}};q.styles=[l.css``,c],nt([d.property({type:String})],q.prototype,"twCLass",2),nt([d.property({type:String})],q.prototype,"type",2),q=nt([d.customElement("rtg-accordion")],q);function Qt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=Qt(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function vo(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=Qt(n))&&(o&&(o+=" "),o+=e);return o}const jt=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,er=vo,A=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return er(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,a=Object.keys(t).map(m=>{const g=r==null?void 0:r[m],$=s==null?void 0:s[m];if(g===null)return null;const _=jt(g)||jt($);return t[m][_]}),p=r&&Object.entries(r).reduce((m,g)=>{let[$,_]=g;return _===void 0||(m[$]=_),m},{}),f=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((m,g)=>{let{class:$,className:_,...P}=g;return Object.entries(P).every(E=>{let[C,v]=E;return Array.isArray(v)?v.includes({...s,...p}[C]):{...s,...p}[C]===v})?[...m,$,_]:m},[]);return er(n,a,f,r==null?void 0:r.class,r==null?void 0:r.className)},tr=A("p-4 rounded-sm text-sm font-medium",{variants:{variant:{success:"bg-green-100 text-green-800 border-green-200",error:"bg-red-100 text-red-800 border-red-200",warning:"bg-yellow-100 text-yellow-800 border-yellow-200",info:"bg-blue-100 text-blue-800 border-blue-200"},size:{small:"text-sm",default:"text-base",large:"text-xl"}},defaultVariants:{variant:"info",size:"default"}});var wo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,xo=(n,e,r,o)=>{for(var t=o>1?void 0:o?yo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&wo(e,r,t),t};i.AlertTitle=class extends l.LitElement{render(){return l.html`<slot part="alert-title"></slot>`}},i.AlertTitle.styles=l.css`
|
2941
|
+
:host {
|
2942
|
+
display: block;
|
2943
|
+
font-weight: bold;
|
2944
|
+
margin-bottom: 0.5rem;
|
2945
|
+
}
|
2946
|
+
`,i.AlertTitle=xo([d.customElement("rtg-alert-title")],i.AlertTitle);var Co=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,_o=(n,e,r,o)=>{for(var t=o>1?void 0:o?$o(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Co(e,r,t),t};i.AlertDescription=class extends l.LitElement{render(){return l.html`<slot part="alert-description"></slot>`}},i.AlertDescription.styles=l.css`
|
2947
|
+
:host {
|
2948
|
+
display: block;
|
2949
|
+
}
|
2950
|
+
`,i.AlertDescription=_o([d.customElement("rtg-alert-description")],i.AlertDescription);var Oo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,Ie=(n,e,r,o)=>{for(var t=o>1?void 0:o?Eo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Oo(e,r,t),t};i.Alert=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.variant="info",this.size="default"}get alertClasses(){return tr({variant:this.variant,size:this.size})}render(){return l.html`
|
2951
|
+
<div class="alert ${this.alertClasses} ${this.twCLass}" part="alert">
|
2952
|
+
<slot name="title"></slot>
|
2953
|
+
<slot name="description"></slot>
|
2954
|
+
</div>
|
2955
|
+
`}},i.Alert.styles=[l.css`
|
2956
|
+
:host {
|
2957
|
+
display: block;
|
2958
|
+
margin-bottom: 1rem;
|
2959
|
+
}
|
2960
|
+
.alert {
|
2961
|
+
border: 1px solid transparent;
|
2962
|
+
border-radius: 0.375rem;
|
2963
|
+
}
|
2964
|
+
.title {
|
2965
|
+
font-weight: bold;
|
2966
|
+
margin-bottom: 0.5rem;
|
2967
|
+
}
|
2968
|
+
`,c],i.Alert.alertVairants=tr,Ie([d.property({type:String})],i.Alert.prototype,"twCLass",2),Ie([d.property({type:String})],i.Alert.prototype,"variant",2),Ie([d.property({type:String})],i.Alert.prototype,"size",2),i.Alert=Ie([d.customElement("rtg-alert")],i.Alert);var So=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,st=(n,e,r,o)=>{for(var t=o>1?void 0:o?Po(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&So(e,r,t),t};i.AspectRatio=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.ratio=16/9}render(){const e=1/this.ratio*100;return l.html`
|
2969
|
+
<div
|
2970
|
+
class="${u("aspect-ratio-wrapper bg-muted",this.className,this.twCLass)} "
|
2971
|
+
style="padding-top: ${e}%;"
|
2972
|
+
part="aspect-ratio"
|
2973
|
+
>
|
2974
|
+
<div class="aspect-ratio-inner">
|
2975
|
+
<slot></slot>
|
2976
|
+
</div>
|
2977
|
+
</div>
|
2978
|
+
`}},i.AspectRatio.styles=[l.css`
|
2979
|
+
.aspect-ratio-wrapper {
|
2980
|
+
position: relative;
|
2981
|
+
width: 100%;
|
2982
|
+
overflow: hidden;
|
2983
|
+
}
|
2984
|
+
.aspect-ratio-inner {
|
2985
|
+
position: absolute;
|
2986
|
+
top: 0;
|
2987
|
+
left: 0;
|
2988
|
+
width: 100%;
|
2989
|
+
height: 100%;
|
2990
|
+
}
|
2991
|
+
`,c],st([d.property({type:String})],i.AspectRatio.prototype,"twCLass",2),st([d.property({type:Number})],i.AspectRatio.prototype,"ratio",2),i.AspectRatio=st([d.customElement("rtg-aspect-ratio")],i.AspectRatio);const ko="relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",Do="aspect-square h-full w-full",Mo="flex h-full w-full items-center justify-center rounded-full bg-muted";var Io=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,rr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Lo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Io(e,r,t),t};let Le=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
2771
2992
|
<span
|
2772
|
-
class="${u(
|
2993
|
+
class="${u(ko,this.className,this.twCLass)}"
|
2773
2994
|
part="avatar"
|
2774
2995
|
>
|
2775
2996
|
<slot></slot>
|
2776
2997
|
</span>
|
2777
|
-
`}};
|
2998
|
+
`}};Le.styles=[l.css``,c],rr([d.property({type:String})],Le.prototype,"twCLass",2),Le=rr([d.customElement("rtg-avatar")],Le);var Ao=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,Ro=(n,e,r,o)=>{for(var t=o>1?void 0:o?zo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ao(e,r,t),t};let at=class extends l.LitElement{render(){return l.html`
|
2778
2999
|
<span
|
2779
|
-
class="${u(
|
3000
|
+
class="${u(Mo,this.className)}"
|
2780
3001
|
style="width:40px;height:40px"
|
2781
3002
|
part="avatar-fallback"
|
2782
3003
|
>
|
2783
3004
|
<slot></slot>
|
2784
3005
|
</span>
|
2785
|
-
`}};
|
3006
|
+
`}};at.styles=[l.css``,c],at=Ro([d.customElement("rtg-avatar-fallback")],at);var To=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,it=(n,e,r,o)=>{for(var t=o>1?void 0:o?Bo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&To(e,r,t),t};let xe=class extends l.LitElement{constructor(){super(...arguments),this.alt="@shadcn",this.src="https://github.com/shadcn.png"}render(){return l.html`
|
2786
3007
|
<img
|
2787
|
-
class="${u(
|
3008
|
+
class="${u(Do,this.className)}"
|
2788
3009
|
alt="${this.alt}"
|
2789
3010
|
src="${this.src}"
|
2790
3011
|
part="avatar-image"
|
2791
3012
|
>
|
2792
3013
|
<slot></slot>
|
2793
3014
|
</img>
|
2794
|
-
`}};
|
3015
|
+
`}};xe.styles=[l.css``,c],it([d.property({type:String})],xe.prototype,"alt",2),it([d.property({type:String})],xe.prototype,"src",2),xe=it([d.customElement("rtg-avatar-image")],xe);const No=A("inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}});var Fo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,G=(n,e,r,o)=>{for(var t=o>1?void 0:o?qo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Fo(e,r,t),t};i.Button=class extends y{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default",this.externalClass="",this.isCustomClass=!1}handleClick(){this.disabled||this.click()}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
|
2795
3016
|
<button
|
2796
3017
|
part="button"
|
2797
3018
|
type="${this.type}"
|
2798
3019
|
${x(e)}
|
2799
3020
|
?disabled="${this.disabled}"
|
2800
|
-
class="${u(
|
3021
|
+
class="${u(i.Button.buttonVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.externalClass} ${this.isCustomClass?"rtg-button-custom-class":""}"
|
2801
3022
|
@click="${this.handleClick}"
|
2802
3023
|
>
|
2803
3024
|
<slot></slot>
|
2804
3025
|
</button>
|
2805
|
-
`}},
|
3026
|
+
`}},i.Button.buttonVariants=No,i.Button.styles=[l.css`
|
2806
3027
|
:host {
|
2807
3028
|
--rtg-button-bg: unset;
|
2808
3029
|
--rtg-button-color: unset;
|
@@ -2815,7 +3036,52 @@ body {
|
|
2815
3036
|
border-radius: var(--rtg-button-radius, unset) !important;
|
2816
3037
|
height: var(--rtg-button-height, unset) !important;
|
2817
3038
|
}
|
2818
|
-
`,c],
|
3039
|
+
`,c],G([d.property({type:Function})],i.Button.prototype,"click",2),G([d.property({type:Boolean})],i.Button.prototype,"disabled",2),G([d.property({type:String})],i.Button.prototype,"type",2),G([d.property({type:String})],i.Button.prototype,"variant",2),G([d.property({type:String})],i.Button.prototype,"size",2),G([d.property({type:String})],i.Button.prototype,"externalClass",2),G([d.property({type:String})],i.Button.prototype,"isCustomClass",2),i.Button=G([d.customElement("rtg-button")],i.Button);const Go=A("inline-flex items-center border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent rounded-full",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var Vo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Ae=(n,e,r,o)=>{for(var t=o>1?void 0:o?Uo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Vo(e,r,t),t};i.Badge=class extends y{constructor(){super(...arguments),this.twCLass="",this.variant="default",this.id="rtg-badge-id"}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html`
|
3040
|
+
<div
|
3041
|
+
${x(e)}
|
3042
|
+
id="${this.id}"
|
3043
|
+
part="badge"
|
3044
|
+
class="
|
3045
|
+
${u(i.Badge.badgeVariants({variant:this.variant,className:this.className}))},
|
3046
|
+
${this.twCLass}
|
3047
|
+
"
|
3048
|
+
>
|
3049
|
+
<slot></slot>
|
3050
|
+
</div>
|
3051
|
+
`}},i.Badge.badgeVariants=Go,i.Badge.styles=[l.css``,c],Ae([d.property({type:String})],i.Badge.prototype,"twCLass",2),Ae([d.property({type:String})],i.Badge.prototype,"variant",2),Ae([d.property({type:String})],i.Badge.prototype,"id",2),i.Badge=Ae([d.customElement("rtg-badge")],i.Badge);var Ho=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Yo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Xo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ho(e,r,t),t};i.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},i.CardTitle.styles=[l.css``,c],i.CardTitle=Yo([d.customElement("rtg-card-title")],i.CardTitle);var Ko=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,Zo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Wo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ko(e,r,t),t};i.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},i.CardHeader.styles=[l.css``,c],i.CardHeader=Zo([d.customElement("rtg-card-header")],i.CardHeader);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,jo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qo(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Jo(e,r,t),t};i.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},i.CardFooter.styles=[l.css``,c],i.CardFooter=jo([d.customElement("rtg-card-footer")],i.CardFooter);var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,rn=(n,e,r,o)=>{for(var t=o>1?void 0:o?tn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&en(e,r,t),t};i.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},i.CardDescription.styles=[l.css``,c],i.CardDescription=rn([d.customElement("rtg-card-description")],i.CardDescription);var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,sn=(n,e,r,o)=>{for(var t=o>1?void 0:o?nn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&on(e,r,t),t};i.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},i.CardContent.styles=[l.css``,c],i.CardContent=sn([d.customElement("rtg-card-content")],i.CardContent);var an=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,dn=(n,e,r,o)=>{for(var t=o>1?void 0:o?ln(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&an(e,r,t),t};i.Card=class extends l.LitElement{render(){return l.html`<div
|
3052
|
+
part="card"
|
3053
|
+
class="rounded-lg border bg-card text-card-foreground shadow-sm p-6"
|
3054
|
+
id="rtg-card-id"
|
3055
|
+
>
|
3056
|
+
<slot></slot>
|
3057
|
+
</div>`}},i.Card.styles=[l.css``,c],i.Card=dn([d.customElement("rtg-card")],i.Card);var cn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,un=(n,e,r,o)=>{for(var t=o>1?void 0:o?pn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&cn(e,r,t),t};let lt=class extends y{getAttributesToExclude(){return[""]}get _collapsible(){let n=this.parentElement;for(;n&&!(n instanceof Q);)n=n.parentElement;return n}onTrigger(){const n=this._collapsible;n&&(n.open=!n.open,n.onOpenChange())}render(){const n=this.getFilteredAttributes();return l.html`
|
3058
|
+
<div
|
3059
|
+
@click=${this.onTrigger}
|
3060
|
+
${x(n)}
|
3061
|
+
part="collapsible-trigger"
|
3062
|
+
>
|
3063
|
+
<slot></slot>
|
3064
|
+
</div>
|
3065
|
+
`}};lt.styles=[l.css``,c],lt=un([d.customElement("rtg-collapsible-trigger")],lt);var hn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,gn=(n,e,r,o)=>{for(var t=o>1?void 0:o?mn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&hn(e,r,t),t};let dt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
3066
|
+
<div
|
3067
|
+
${x(n)}
|
3068
|
+
class="${this.className}"
|
3069
|
+
style="--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
|
3070
|
+
part="collapsible-content"
|
3071
|
+
>
|
3072
|
+
<slot></slot>
|
3073
|
+
</div>
|
3074
|
+
`}};dt.styles=[l.css``,c],dt=gn([d.customElement("rtg-collapsible-content")],dt);var bn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,ze=(n,e,r,o)=>{for(var t=o>1?void 0:o?fn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&bn(e,r,t),t};let Q=class extends y{constructor(){super(...arguments),this.open=!1,this.onOpenChange=()=>{},this.twCLass=""}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
3075
|
+
<div
|
3076
|
+
data-state="${this.open?"open":"closed"}"
|
3077
|
+
${x(n)}
|
3078
|
+
class="${this.twCLass}"
|
3079
|
+
part="collapsible"
|
3080
|
+
>
|
3081
|
+
<slot></slot>
|
3082
|
+
${this.open?l.html`<slot name="collapsible-content"></slot>`:l.nothing}
|
3083
|
+
</div>
|
3084
|
+
`}};Q.styles=[l.css``,c],ze([d.property({type:Boolean})],Q.prototype,"open",2),ze([d.property({type:Function})],Q.prototype,"onOpenChange",2),ze([d.property({type:String})],Q.prototype,"twCLass",2),Q=ze([d.customElement("rtg-collapsible")],Q);const vn="peer h-4 w-4 align-middle shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",wn="flex items-center justify-center text-current pointer-events-none";var yn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,j=(n,e,r,o)=>{for(var t=o>1?void 0:o?xn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&yn(e,r,t),t};i.Checkbox=class extends l.LitElement{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.type="text",this.value="",this.required=!1,this.twCLass=""}_onClick(e){e.defaultPrevented||(this.checked=!this.checked,this.required=!this.required,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.checked=!this.checked,this.required=!this.required}render(){const e={...this.dataset};return l.html`
|
2819
3085
|
<button
|
2820
3086
|
part="checkbox"
|
2821
3087
|
data-testid="checkbox-atom"
|
@@ -2827,10 +3093,10 @@ body {
|
|
2827
3093
|
?required=${this.required}
|
2828
3094
|
?disabled=${this.disabled}
|
2829
3095
|
@click="${this._onClick}"
|
2830
|
-
class="${u(
|
3096
|
+
class="${u(vn,this.className)} ${this.twCLass}"
|
2831
3097
|
${Object.entries(e).map(([r,o])=>l.html` ${r}="${o}" `)}
|
2832
3098
|
>
|
2833
|
-
${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${
|
3099
|
+
${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${wn}"
|
2834
3100
|
><svg
|
2835
3101
|
xmlns="http://www.w3.org/2000/svg"
|
2836
3102
|
width="24"
|
@@ -2846,102 +3112,149 @@ body {
|
|
2846
3112
|
<polyline points="20 6 9 17 4 12"></polyline></svg
|
2847
3113
|
></span>`:l.nothing}
|
2848
3114
|
</button>
|
2849
|
-
`}},
|
2850
|
-
<div
|
2851
|
-
part="dialog-content"
|
2852
|
-
class="${u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",this.className)}"
|
2853
|
-
rtgdlg-content
|
2854
|
-
>
|
2855
|
-
<slot></slot>
|
2856
|
-
<button
|
2857
|
-
type="button"
|
2858
|
-
@click="${this.handleCloseButtonClick}"
|
2859
|
-
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
|
2860
|
-
>
|
2861
|
-
<svg
|
2862
|
-
xmlns="http://www.w3.org/2000/svg"
|
2863
|
-
width="24"
|
2864
|
-
height="24"
|
2865
|
-
viewBox="0 0 24 24"
|
2866
|
-
fill="none"
|
2867
|
-
stroke="currentColor"
|
2868
|
-
stroke-width="2"
|
2869
|
-
stroke-linecap="round"
|
2870
|
-
stroke-linejoin="round"
|
2871
|
-
class="h-4 w-4"
|
2872
|
-
>
|
2873
|
-
<path d="M18 6 6 18"></path>
|
2874
|
-
<path d="m6 6 12 12"></path></svg
|
2875
|
-
><span class="sr-only">Close</span>
|
2876
|
-
</button>
|
2877
|
-
</div>
|
2878
|
-
`:l.nothing}`}},a.DialogContent.styles=[l.css``,c],Gt([d.property({attribute:"data-state",type:String})],a.DialogContent.prototype,"state",2),a.DialogContent=Gt([d.customElement("rtg-dialog-content")],a.DialogContent);var go=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,fo=(n,e,r,o)=>{for(var t=o>1?void 0:o?bo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&go(e,r,t),t};const vo="closed";a.DialogClose=class extends l.LitElement{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof a.Dialog)return e;e=e.parentElement}return e}firstUpdated(e){var t;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"),o=r==null?void 0:r.assignedElements();o&&o.length>0&&o[0].addEventListener("click",()=>{const i=this._dialog;i&&(i.dataset.state=vo)})}render(){return l.html`
|
2879
|
-
<div part="dialog-close">
|
2880
|
-
<slot></slot>
|
2881
|
-
</div>
|
2882
|
-
`}},a.DialogClose.styles=[l.css``,c],a.DialogClose=fo([d.customElement("rtg-dialog-close")],a.DialogClose);var wo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,xo=(n,e,r,o)=>{for(var t=o>1?void 0:o?yo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&wo(e,r,t),t};a.DialogFooter=class extends l.LitElement{render(){return l.html`
|
3115
|
+
`}},i.Checkbox.styles=[l.css``,c],j([d.property({type:Boolean})],i.Checkbox.prototype,"disabled",2),j([d.property({type:Boolean})],i.Checkbox.prototype,"checked",2),j([d.property({type:String})],i.Checkbox.prototype,"type",2),j([d.property({type:String})],i.Checkbox.prototype,"value",2),j([d.property({type:Boolean})],i.Checkbox.prototype,"required",2),j([d.property({type:String})],i.Checkbox.prototype,"twCLass",2),i.Checkbox=j([d.customElement("rtg-checkbox")],i.Checkbox);const Cn="open",Re="closed";var $n=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,ct=(n,e,r,o)=>{for(var t=o>1?void 0:o?_n(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&$n(e,r,t),t};i.ContextMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Re,this.isOpen=!1}get _contextMenu(){let e=this.parentElement;for(;e&&!(e instanceof i.ContextMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-context-menu-content"),o=(s=this.shadowRoot)==null?void 0:s.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
2883
3116
|
<div
|
2884
|
-
part="
|
2885
|
-
class="
|
3117
|
+
part="context-menu-content"
|
3118
|
+
class="z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
|
3119
|
+
data-state="${this.state}"
|
3120
|
+
style="display: ${this.isOpen?"block":"none"}; width: 260px"
|
2886
3121
|
>
|
2887
3122
|
<slot></slot>
|
2888
3123
|
</div>
|
2889
|
-
`}},
|
3124
|
+
`}},i.ContextMenuContent.styles=[l.css``,c],ct([d.property({attribute:"data-state",type:String})],i.ContextMenuContent.prototype,"state",2),ct([d.state()],i.ContextMenuContent.prototype,"isOpen",2),i.ContextMenuContent=ct([d.customElement("rtg-context-menu-content")],i.ContextMenuContent);var On=Object.defineProperty,En=Object.getOwnPropertyDescriptor,ee=(n,e,r,o)=>{for(var t=o>1?void 0:o?En(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&On(e,r,t),t};i.ContextMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${i.ContextMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${i.ContextMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
|
2890
3125
|
<div
|
2891
|
-
part="
|
2892
|
-
class="${u("flex
|
2893
|
-
|
2894
|
-
|
2895
|
-
|
3126
|
+
part="context-menu-checkbox"
|
3127
|
+
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
3128
|
+
@click=${this.toggleChecked}
|
3129
|
+
@mouseover="${this.handleMouseEvent}"
|
3130
|
+
@mouseleave="${this.handleMouseEvent}"
|
3131
|
+
@focus="${this.handleMouseEvent}"
|
3132
|
+
rtgcmd-item
|
3133
|
+
role="option"
|
3134
|
+
aria-selected="${this.selected}"
|
3135
|
+
data-selected="${this.selected}"
|
3136
|
+
data-value="${this.value}"
|
3137
|
+
id="${this.identifier}"
|
3138
|
+
aria-hidden="${this.hidden}"
|
3139
|
+
>
|
3140
|
+
<span
|
3141
|
+
class="icon-space absolute left-2 flex items-center justify-center"
|
2896
3142
|
>
|
2897
|
-
${this.
|
2898
|
-
|
2899
|
-
|
2900
|
-
|
2901
|
-
|
3143
|
+
${this.checked?l.html`
|
3144
|
+
<svg
|
3145
|
+
xmlns="http://www.w3.org/2000/svg"
|
3146
|
+
viewBox="0 0 24 24"
|
3147
|
+
width="16px"
|
3148
|
+
height="16px"
|
3149
|
+
>
|
3150
|
+
<path
|
3151
|
+
d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"
|
3152
|
+
/>
|
3153
|
+
</svg>
|
3154
|
+
`:l.nothing}
|
3155
|
+
</span>
|
3156
|
+
<slot></slot>
|
2902
3157
|
</div>
|
2903
|
-
`}},
|
3158
|
+
`}},i.ContextMenuCheckboxItem._counter=0,i.ContextMenuCheckboxItem.styles=[l.css`
|
3159
|
+
.icon-space {
|
3160
|
+
width: 16px; /* Fixed width to reserve space for the check icon */
|
3161
|
+
height: 16px;
|
3162
|
+
display: inline-block;
|
3163
|
+
}
|
3164
|
+
`,c],ee([d.property({type:String})],i.ContextMenuCheckboxItem.prototype,"_id",2),ee([d.property({attribute:"aria-hidden",type:String})],i.ContextMenuCheckboxItem.prototype,"_hidden",2),ee([d.property({attribute:"data-value",type:String})],i.ContextMenuCheckboxItem.prototype,"value",1),ee([d.property({type:Boolean})],i.ContextMenuCheckboxItem.prototype,"selected",2),ee([d.property({type:Boolean})],i.ContextMenuCheckboxItem.prototype,"checked",2),ee([d.property({type:Boolean})],i.ContextMenuCheckboxItem.prototype,"disabled",2),i.ContextMenuCheckboxItem=ee([d.customElement("rtg-context-menu-checkbox-item")],i.ContextMenuCheckboxItem);var Sn=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,Te=(n,e,r,o)=>{for(var t=o>1?void 0:o?Pn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Sn(e,r,t),t};i.ContextMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${i.ContextMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${i.ContextMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3165
|
+
<div
|
3166
|
+
part="context-menu-group"
|
3167
|
+
class="${e}"
|
3168
|
+
rtgcmd-group
|
3169
|
+
role="presentation"
|
3170
|
+
id="${this.identifier}"
|
3171
|
+
>
|
3172
|
+
<div
|
3173
|
+
rtgcmd-group-heading
|
3174
|
+
aria-hidden="true"
|
3175
|
+
id="${this.identifier}h"
|
3176
|
+
>
|
3177
|
+
${this.heading}
|
3178
|
+
</div>
|
3179
|
+
<div
|
3180
|
+
rtgcmd-group-items
|
3181
|
+
role="group"
|
3182
|
+
aria-labelledby="${this.identifier}h"
|
3183
|
+
>
|
3184
|
+
<slot></slot>
|
3185
|
+
</div>
|
3186
|
+
</div>
|
3187
|
+
`}`}},i.ContextMenuGroup._counter=0,i.ContextMenuGroup.styles=[l.css``,c],Te([d.property({type:String})],i.ContextMenuGroup.prototype,"heading",2),Te([d.property({attribute:"id",type:String})],i.ContextMenuGroup.prototype,"_id",2),Te([d.property({attribute:"aria-hidden",type:String})],i.ContextMenuGroup.prototype,"_hidden",2),i.ContextMenuGroup=Te([d.customElement("rtg-context-menu-group")],i.ContextMenuGroup);var kn=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Ce=(n,e,r,o)=>{for(var t=o>1?void 0:o?Dn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&kn(e,r,t),t};i.ContextMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${i.ContextMenuItem._counter++}`:this._id=`rtgcmdrxgxli${i.ContextMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
|
3188
|
+
<div
|
3189
|
+
part="context-menu-item"
|
3190
|
+
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground",this.className)}"
|
3191
|
+
@mouseover="${this.handleMouseEvent}"
|
3192
|
+
@mouseleave="${this.handleMouseEvent}"
|
3193
|
+
@focus="${this.handleMouseEvent}"
|
3194
|
+
rtgcmd-item
|
3195
|
+
role="option"
|
3196
|
+
aria-selected="${this.selected}"
|
3197
|
+
data-selected="${this.selected}"
|
3198
|
+
data-value="${this.value}"
|
3199
|
+
id="${this.identifier}"
|
3200
|
+
aria-hidden="${this.hidden}"
|
3201
|
+
>
|
3202
|
+
<slot></slot>
|
3203
|
+
</div>
|
3204
|
+
`}`}},i.ContextMenuItem._counter=0,i.ContextMenuItem.styles=[l.css``,c],Ce([d.property({type:String})],i.ContextMenuItem.prototype,"_id",2),Ce([d.property({attribute:"aria-hidden",type:String})],i.ContextMenuItem.prototype,"_hidden",2),Ce([d.property({attribute:"data-value",type:String})],i.ContextMenuItem.prototype,"value",1),Ce([d.property({type:Boolean})],i.ContextMenuItem.prototype,"selected",2),i.ContextMenuItem=Ce([d.customElement("rtg-context-menu-item")],i.ContextMenuItem);var Mn=Object.defineProperty,In=Object.getOwnPropertyDescriptor,te=(n,e,r,o)=>{for(var t=o>1?void 0:o?In(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Mn(e,r,t),t};i.ContextMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${i.ContextMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${i.ContextMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
2904
3205
|
<div
|
2905
|
-
part="
|
2906
|
-
class="${u("
|
2907
|
-
|
2908
|
-
|
2909
|
-
|
2910
|
-
${this.
|
3206
|
+
part="context-menu-radio"
|
3207
|
+
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
3208
|
+
@click=${this.toggleChecked}
|
3209
|
+
@mouseover="${this.handleMouseEvent}"
|
3210
|
+
@mouseleave="${this.handleMouseEvent}"
|
3211
|
+
@focus="${this.handleMouseEvent}"
|
3212
|
+
rtgcmd-item
|
3213
|
+
role="option"
|
3214
|
+
aria-selected="${this.selected}"
|
3215
|
+
data-selected="${this.selected}"
|
3216
|
+
data-value="${this.value}"
|
3217
|
+
id="${this.identifier}"
|
3218
|
+
aria-hidden="${this.hidden}"
|
3219
|
+
>
|
3220
|
+
<span
|
3221
|
+
class="icon-space absolute left-2 flex items-center justify-center"
|
3222
|
+
>
|
3223
|
+
${this.checked?l.html` ${Zt()} `:l.nothing}
|
3224
|
+
</span>
|
2911
3225
|
<slot></slot>
|
2912
3226
|
</div>
|
2913
|
-
`}},
|
2914
|
-
|
2915
|
-
|
2916
|
-
|
2917
|
-
|
2918
|
-
|
2919
|
-
|
2920
|
-
|
2921
|
-
|
2922
|
-
|
2923
|
-
|
2924
|
-
|
2925
|
-
|
2926
|
-
|
2927
|
-
|
2928
|
-
|
2929
|
-
|
2930
|
-
|
2931
|
-
class="${u(ie.labelVariants({className:this.className}))}"
|
3227
|
+
`}},i.ContextMenuRadioItem._counter=0,i.ContextMenuRadioItem.styles=[l.css`
|
3228
|
+
.icon-space {
|
3229
|
+
width: 16px; /* Fixed width to reserve space for the check icon */
|
3230
|
+
height: 16px;
|
3231
|
+
display: inline-block;
|
3232
|
+
}
|
3233
|
+
`,c],te([d.property({type:String})],i.ContextMenuRadioItem.prototype,"_id",2),te([d.property({attribute:"aria-hidden",type:String})],i.ContextMenuRadioItem.prototype,"_hidden",2),te([d.property({attribute:"data-value",type:String})],i.ContextMenuRadioItem.prototype,"value",1),te([d.property({type:Boolean})],i.ContextMenuRadioItem.prototype,"selected",2),te([d.property({type:Boolean})],i.ContextMenuRadioItem.prototype,"checked",2),te([d.property({type:Boolean})],i.ContextMenuRadioItem.prototype,"disabled",2),i.ContextMenuRadioItem=te([d.customElement("rtg-context-menu-radio-item")],i.ContextMenuRadioItem);var Ln=Object.defineProperty,An=Object.getOwnPropertyDescriptor,pt=(n,e,r,o)=>{for(var t=o>1?void 0:o?An(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ln(e,r,t),t};i.ContextMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${i.ContextMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${i.ContextMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3234
|
+
<div
|
3235
|
+
part="context-menu-separator"
|
3236
|
+
class="${u("-mx-1 h-px bg-border",this.className)}"
|
3237
|
+
rtgcmd-separator
|
3238
|
+
role="separator"
|
3239
|
+
id="${this.identifier}"
|
3240
|
+
></div>
|
3241
|
+
`}`}},i.ContextMenuSeparator._counter=0,i.ContextMenuSeparator.styles=[l.css``,c],pt([d.property({type:String})],i.ContextMenuSeparator.prototype,"_id",2),pt([d.property({attribute:"aria-hidden",type:String})],i.ContextMenuSeparator.prototype,"_hidden",2),i.ContextMenuSeparator=pt([d.customElement("rtg-context-menu-separator")],i.ContextMenuSeparator);var zn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,Tn=(n,e,r,o)=>{for(var t=o>1?void 0:o?Rn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&zn(e,r,t),t};i.ContextMenuShortcut=class extends l.LitElement{render(){return l.html`
|
3242
|
+
<span
|
3243
|
+
part="context-menu-shortcut"
|
3244
|
+
class="${u("ml-auto text-xs font-semibold",this.className)}"
|
2932
3245
|
>
|
2933
3246
|
<slot></slot>
|
2934
|
-
</
|
2935
|
-
`}};
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2939
|
-
|
2940
|
-
|
2941
|
-
|
2942
|
-
|
2943
|
-
|
2944
|
-
|
3247
|
+
</span>
|
3248
|
+
`}},i.ContextMenuShortcut.styles=[l.css``,c],i.ContextMenuShortcut=Tn([d.customElement("rtg-context-menu-shortcut")],i.ContextMenuShortcut);var Bn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,or=(n,e,r,o)=>{for(var t=o>1?void 0:o?Nn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Bn(e,r,t),t};i.ContextMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.preventDefault(),e.stopPropagation();const{clientX:r,clientY:o}=e,t=e.target.getBoundingClientRect();requestAnimationFrame(()=>{const s=this._content;s&&(s.style.position="absolute",s.style.left=`${r-t.left}px`,s.style.top=`${o-t.top}px`,s.dataset.state="open",this.isOpen=!0)})}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof i.ContextMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-context-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
3249
|
+
<div class="flex" part="context-menu">
|
3250
|
+
<div>
|
3251
|
+
<slot @contextmenu="${this.toggleDropdown}"></slot>
|
3252
|
+
</div>
|
3253
|
+
<div>
|
3254
|
+
<slot></slot>
|
3255
|
+
</div>
|
3256
|
+
</div>
|
3257
|
+
`}},i.ContextMenu.styles=[l.css``,c],or([d.state()],i.ContextMenu.prototype,"isOpen",2),i.ContextMenu=or([d.customElement("rtg-context-menu")],i.ContextMenu);var Fn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,ut=(n,e,r,o)=>{for(var t=o>1?void 0:o?qn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Fn(e,r,t),t};let $e=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
2945
3258
|
<div
|
2946
3259
|
part="command"
|
2947
3260
|
class="${u("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md",this.className,this.twCLass)}"
|
@@ -2950,7 +3263,7 @@ body {
|
|
2950
3263
|
>
|
2951
3264
|
<slot></slot>
|
2952
3265
|
</div>
|
2953
|
-
`}}
|
3266
|
+
`}};$e.styles=[l.css``,c],ut([d.property({type:String})],$e.prototype,"twCLass",2),ut([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],$e.prototype,"_input",2),$e=ut([d.customElement("rtg-command")],$e);var Gn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,ht=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Gn(e,r,t),t};let V=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="true"}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}e${V._counter++}`:this._id=`rtgcmdrxlxe${V._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
2954
3267
|
<div
|
2955
3268
|
part="command-empty"
|
2956
3269
|
class="${u("py-6 text-center text-sm",this.className)}"
|
@@ -2960,7 +3273,7 @@ body {
|
|
2960
3273
|
>
|
2961
3274
|
<slot></slot>
|
2962
3275
|
</div>
|
2963
|
-
`}`}};
|
3276
|
+
`}`}};V._counter=0,V.styles=[l.css``,c],ht([d.property({type:String})],V.prototype,"_id",2),ht([d.property({attribute:"aria-hidden",type:String})],V.prototype,"_hidden",2),V=ht([d.customElement("rtg-command-empty")],V);var Un=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Be=(n,e,r,o)=>{for(var t=o>1?void 0:o?Hn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Un(e,r,t),t};let z=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}g${z._counter++}`:this._id=`rtgcmdrxlxg${z._counter++}`,this._id}render(){const n="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
2964
3277
|
<div
|
2965
3278
|
part="command-group"
|
2966
3279
|
class="${n}"
|
@@ -2983,7 +3296,7 @@ body {
|
|
2983
3296
|
<slot></slot>
|
2984
3297
|
</div>
|
2985
3298
|
</div>
|
2986
|
-
`}`}};
|
3299
|
+
`}`}};z._counter=0,z.styles=[l.css``,c],Be([d.property({type:String})],z.prototype,"heading",2),Be([d.property({attribute:"id",type:String})],z.prototype,"_id",2),Be([d.property({attribute:"aria-hidden",type:String})],z.prototype,"_hidden",2),z=Be([d.customElement("rtg-command-group")],z);var Xn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,mt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Yn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Xn(e,r,t),t};let _e=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const n=this.parentElement;if(n){let e=!0;const r=n.querySelectorAll("rtg-command-list > rtg-command-group");r&&r.forEach(t=>{var f,m;let s=!0;const a=t.querySelectorAll("rtg-command-item");a&&a.forEach(g=>{((g==null?void 0:g.value)||"").toLowerCase().includes(this._value.toLowerCase())?(s=!1,e=!1,g.setAttribute("aria-hidden","false")):g.setAttribute("aria-hidden","true")}),t.setAttribute("aria-hidden",s?"true":"false");let p=t.previousElementSibling;p&&p.setAttribute("aria-hidden",s||((f=p.previousElementSibling)==null?void 0:f.getAttribute("aria-hidden"))==="true"?"true":"false"),p=t.nextElementSibling,p&&p.setAttribute("aria-hidden",s||((m=p.nextElementSibling)==null?void 0:m.getAttribute("aria-hidden"))==="true"?"true":"false")});const o=n.querySelector("rtg-command-empty");o&&o.setAttribute("aria-hidden",e?"false":"true")}}handleChange(n){const e=n.target;e&&(this._value=e.value,this.filterItems())}render(){return l.html`
|
2987
3300
|
<div
|
2988
3301
|
part="command-input"
|
2989
3302
|
class="${u("flex items-center border-b px-3",this.className)}"
|
@@ -3022,7 +3335,7 @@ body {
|
|
3022
3335
|
data-value="${this._value}"
|
3023
3336
|
/>
|
3024
3337
|
</div>
|
3025
|
-
`}};
|
3338
|
+
`}};_e.styles=[l.css``,c],mt([d.property({type:String})],_e.prototype,"placeholder",2),mt([d.property({attribute:"value",type:String})],_e.prototype,"_value",2),_e=mt([d.customElement("rtg-command-input")],_e);var Kn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Wn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Kn(e,r,t),t};let D=class extends l.LitElement{constructor(){super(...arguments),this.selected=!1,this._id="",this._hidden="",this.onSelect=()=>{}}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-group]");return n?this._id=`${n.getAttribute("id")}li${D._counter++}`:this._id=`rtgcmdrxgxli${D._counter++}`,this._id}get value(){var n;return((n=this.textContent)==null?void 0:n.trim())||""}handleMouseEvent(n){(n.type==="mouseover"||n.type==="focus")&&(this.selected=!0),n.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
|
3026
3339
|
<div
|
3027
3340
|
part="command-item"
|
3028
3341
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",this.className)}"
|
@@ -3040,7 +3353,7 @@ body {
|
|
3040
3353
|
>
|
3041
3354
|
<slot></slot>
|
3042
3355
|
</div>
|
3043
|
-
`}`}};D._counter=0,D.styles=[l.css``,c],
|
3356
|
+
`}`}};D._counter=0,D.styles=[l.css``,c],Oe([d.property({type:String})],D.prototype,"_id",2),Oe([d.property({attribute:"aria-hidden",type:String})],D.prototype,"_hidden",2),Oe([d.property({type:Function})],D.prototype,"onSelect",2),Oe([d.property({attribute:"data-value",type:String}),d.property({type:Boolean})],D.prototype,"identifier",1),D=Oe([d.customElement("rtg-command-item")],D);var Zn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Qn=(n,e,r,o)=>{for(var t=o>1?void 0:o?Jn(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Zn(e,r,t),t};let gt=class extends l.LitElement{get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}l`:"rtgcmdrxl"}render(){return l.html`
|
3044
3357
|
<div
|
3045
3358
|
part="command-list"
|
3046
3359
|
class="${u("max-h-[300px] overflow-y-auto overflow-x-hidden",this.className)}"
|
@@ -3053,7 +3366,7 @@ body {
|
|
3053
3366
|
<slot></slot>
|
3054
3367
|
</div>
|
3055
3368
|
</div>
|
3056
|
-
`}};
|
3369
|
+
`}};gt.styles=[l.css``,c],gt=Qn([d.customElement("rtg-command-list")],gt);var jn=Object.defineProperty,es=Object.getOwnPropertyDescriptor,bt=(n,e,r,o)=>{for(var t=o>1?void 0:o?es(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&jn(e,r,t),t};let U=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}s${U._counter++}`:this._id=`rtgcmdrxlxs${U._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3057
3370
|
<div
|
3058
3371
|
part="command-separator"
|
3059
3372
|
class="${u("-mx-1 h-px bg-border",this.className)}"
|
@@ -3061,146 +3374,7 @@ body {
|
|
3061
3374
|
role="separator"
|
3062
3375
|
id="${this.identifier}"
|
3063
3376
|
></div>
|
3064
|
-
`}`}};
|
3065
|
-
part="card"
|
3066
|
-
class="rounded-lg border bg-card text-card-foreground shadow-sm p-6"
|
3067
|
-
id="rtg-card-id"
|
3068
|
-
>
|
3069
|
-
<slot></slot>
|
3070
|
-
</div>`}},a.Card.styles=[l.css``,c],a.Card=bn([d.customElement("rtg-card")],a.Card);const fn=N("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none transition-transform transition-opacity",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}}),vn=N("fixed",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}});var wn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,rt=(n,e,r,o)=>{for(var t=o>1?void 0:o?yn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&wn(e,r,t),t};a.PopoverContent=class extends l.LitElement{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.side="bottom"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof a.Popover);)e=e.parentElement;return e}handleClickOutside(e){var o,t;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(r&&!((t=r.assignedElements({flatten:!0})[0])!=null&&t.contains(e.target))){const i=this._popover;i.isOpen=!1}}firstUpdated(e){window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var r;(r=this._popover)!=null&&r.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}render(){const e=this.enableDefaultStyle?fn({state:"open",side:this.side}):vn({state:"open",side:this.side});return l.html`
|
3071
|
-
<div part="popover-content" class="${u(e)}">
|
3072
|
-
<slot></slot>
|
3073
|
-
</div>
|
3074
|
-
`}},a.PopoverContent.styles=[l.css``,c],rt([d.property({type:Boolean})],a.PopoverContent.prototype,"enableDefaultStyle",2),rt([d.property({type:String})],a.PopoverContent.prototype,"side",2),a.PopoverContent=rt([d.customElement("rtg-popover-content")],a.PopoverContent);var xn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Cn=(n,e,r,o)=>{for(var t=o>1?void 0:o?$n(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&xn(e,r,t),t};a.PopoverTrigger=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof a.Popover);)e=e.parentElement;return e}firstUpdated(e){var t,s;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="trigger-button"]'),o=r==null?void 0:r.assignedElements({flatten:!0});o&&o.length>0&&(o[0].click=this.handleClick),(s=this.shadowRoot)==null||s.addEventListener("click",i=>{i.stopPropagation()})}render(){return l.html`
|
3075
|
-
<div part="popover-trigger" style="width: fit-content;">
|
3076
|
-
<slot name="trigger-button"></slot>
|
3077
|
-
</div>
|
3078
|
-
`}},a.PopoverTrigger.styles=[l.css``,c],a.PopoverTrigger=Cn([d.customElement("rtg-popover-trigger")],a.PopoverTrigger);var _n=Object.defineProperty,On=Object.getOwnPropertyDescriptor,Xt=(n,e,r,o)=>{for(var t=o>1?void 0:o?On(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&_n(e,r,t),t};a.Popover=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1}firstUpdated(e){super.firstUpdated(e)}updated(e){super.updated(e)}render(){return l.html`
|
3079
|
-
<div part="popover">
|
3080
|
-
<slot
|
3081
|
-
name="trigger"
|
3082
|
-
@click="${()=>this.isOpen=!this.isOpen}"
|
3083
|
-
></slot>
|
3084
|
-
<div data-testid="popover-content-holder" ?hidden="${!this.isOpen}">
|
3085
|
-
<slot name="content"></slot>
|
3086
|
-
</div>
|
3087
|
-
</div>
|
3088
|
-
`}},a.Popover.styles=[l.css``,c],Xt([d.state()],a.Popover.prototype,"isOpen",2),a.Popover=Xt([d.customElement("rtg-popover")],a.Popover);const Yt=N("p-4 rounded-sm text-sm font-medium",{variants:{variant:{success:"bg-green-100 text-green-800 border-green-200",error:"bg-red-100 text-red-800 border-red-200",warning:"bg-yellow-100 text-yellow-800 border-yellow-200",info:"bg-blue-100 text-blue-800 border-blue-200"},size:{small:"text-sm",default:"text-base",large:"text-xl"}},defaultVariants:{variant:"info",size:"default"}});var En=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Pn=(n,e,r,o)=>{for(var t=o>1?void 0:o?Sn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&En(e,r,t),t};a.AlertTitle=class extends l.LitElement{render(){return l.html`<slot part="alert-title"></slot>`}},a.AlertTitle.styles=l.css`
|
3089
|
-
:host {
|
3090
|
-
display: block;
|
3091
|
-
font-weight: bold;
|
3092
|
-
margin-bottom: 0.5rem;
|
3093
|
-
}
|
3094
|
-
`,a.AlertTitle=Pn([d.customElement("rtg-alert-title")],a.AlertTitle);var kn=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Mn=(n,e,r,o)=>{for(var t=o>1?void 0:o?Dn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&kn(e,r,t),t};a.AlertDescription=class extends l.LitElement{render(){return l.html`<slot part="alert-description"></slot>`}},a.AlertDescription.styles=l.css`
|
3095
|
-
:host {
|
3096
|
-
display: block;
|
3097
|
-
}
|
3098
|
-
`,a.AlertDescription=Mn([d.customElement("rtg-alert-description")],a.AlertDescription);var In=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Pe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ln(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&In(e,r,t),t};a.Alert=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.variant="info",this.size="default"}get alertClasses(){return Yt({variant:this.variant,size:this.size})}render(){return l.html`
|
3099
|
-
<div class="alert ${this.alertClasses} ${this.twCLass}" part="alert">
|
3100
|
-
<slot name="title"></slot>
|
3101
|
-
<slot name="description"></slot>
|
3102
|
-
</div>
|
3103
|
-
`}},a.Alert.styles=[l.css`
|
3104
|
-
:host {
|
3105
|
-
display: block;
|
3106
|
-
margin-bottom: 1rem;
|
3107
|
-
}
|
3108
|
-
.alert {
|
3109
|
-
border: 1px solid transparent;
|
3110
|
-
border-radius: 0.375rem;
|
3111
|
-
}
|
3112
|
-
.title {
|
3113
|
-
font-weight: bold;
|
3114
|
-
margin-bottom: 0.5rem;
|
3115
|
-
}
|
3116
|
-
`,c],a.Alert.alertVairants=Yt,Pe([d.property({type:String})],a.Alert.prototype,"twCLass",2),Pe([d.property({type:String})],a.Alert.prototype,"variant",2),Pe([d.property({type:String})],a.Alert.prototype,"size",2),a.Alert=Pe([d.customElement("rtg-alert")],a.Alert);const An=N("inline-flex items-center border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent rounded-full",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var zn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,ke=(n,e,r,o)=>{for(var t=o>1?void 0:o?Rn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&zn(e,r,t),t};a.Badge=class extends y{constructor(){super(...arguments),this.twCLass="",this.variant="default",this.id="rtg-badge-id"}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html`
|
3117
|
-
<div
|
3118
|
-
${x(e)}
|
3119
|
-
id="${this.id}"
|
3120
|
-
part="badge"
|
3121
|
-
class="
|
3122
|
-
${u(a.Badge.badgeVariants({variant:this.variant,className:this.className}))},
|
3123
|
-
${this.twCLass}
|
3124
|
-
"
|
3125
|
-
>
|
3126
|
-
<slot></slot>
|
3127
|
-
</div>
|
3128
|
-
`}},a.Badge.badgeVariants=An,a.Badge.styles=[l.css``,c],ke([d.property({type:String})],a.Badge.prototype,"twCLass",2),ke([d.property({type:String})],a.Badge.prototype,"variant",2),ke([d.property({type:String})],a.Badge.prototype,"id",2),a.Badge=ke([d.customElement("rtg-badge")],a.Badge);function Ht(){return l.svg` <svg
|
3129
|
-
class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
|
3130
|
-
xmlns="http://www.w3.org/2000/svg"
|
3131
|
-
width="24"
|
3132
|
-
height="24"
|
3133
|
-
viewBox="0 0 24 24"
|
3134
|
-
fill="none"
|
3135
|
-
stroke="currentColor"
|
3136
|
-
stroke-width="2"
|
3137
|
-
stroke-linecap="round"
|
3138
|
-
stroke-linejoin="round"
|
3139
|
-
>
|
3140
|
-
<path d="m7 15 5 5 5-5"></path>
|
3141
|
-
<path d="m7 9 5-5 5 5"></path>
|
3142
|
-
</svg>
|
3143
|
-
`}function Kt(){return l.svg`
|
3144
|
-
<svg
|
3145
|
-
class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
|
3146
|
-
xmlns="http://www.w3.org/2000/svg"
|
3147
|
-
width="24"
|
3148
|
-
height="24"
|
3149
|
-
viewBox="0 0 24 24"
|
3150
|
-
fill="none"
|
3151
|
-
stroke="currentColor"
|
3152
|
-
stroke-width="2"
|
3153
|
-
stroke-linecap="round"
|
3154
|
-
stroke-linejoin="round"
|
3155
|
-
>
|
3156
|
-
<path d="M20 6 9 17l-5-5"></path>
|
3157
|
-
</svg>
|
3158
|
-
`}function Wt(){return l.svg` <svg
|
3159
|
-
xmlns="http://www.w3.org/2000/svg"
|
3160
|
-
width = "24"
|
3161
|
-
height = "24"
|
3162
|
-
viewBox = "0 0 24 24"
|
3163
|
-
fill = "none"
|
3164
|
-
stroke = "currentColor"
|
3165
|
-
stroke-width="2"
|
3166
|
-
stroke-linecap="round"
|
3167
|
-
stroke-linejoin="round"
|
3168
|
-
class="lucide lucide-search h-4 w-4 shrink-0 opacity-50" >
|
3169
|
-
<circle cx="11" cy = "11" r = "8" > </circle>
|
3170
|
-
<path d="m21 21-4.3-4.3"></path >
|
3171
|
-
</svg>
|
3172
|
-
`}function Zt(){return l.svg` <svg
|
3173
|
-
xmlns="http://www.w3.org/2000/svg"
|
3174
|
-
width="24"
|
3175
|
-
height="24"
|
3176
|
-
viewBox="0 0 24 24"
|
3177
|
-
fill="#000000"
|
3178
|
-
stroke="currentColor"
|
3179
|
-
stroke-width="2"
|
3180
|
-
stroke-linecap="round"
|
3181
|
-
stroke-linejoin="round"
|
3182
|
-
class="lucide lucide-circle h-2 w-2 fill-current"
|
3183
|
-
>
|
3184
|
-
<circle cx="12" cy="12" r="10"></circle>
|
3185
|
-
</svg>
|
3186
|
-
`}function Tn(){return l.svg` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-4 w-4 shrink-0 transition-transform duration-200"><path d="m6 9 6 6 6-6"></path></svg>
|
3187
|
-
`}function Bn(){return l.svg` <svg
|
3188
|
-
xmlns="http://www.w3.org/2000/svg"
|
3189
|
-
width="24"
|
3190
|
-
height="24"
|
3191
|
-
viewBox="0 0 24 24"
|
3192
|
-
fill="#000000"
|
3193
|
-
stroke="currentColor"
|
3194
|
-
stroke-width="2"
|
3195
|
-
stroke-linecap="round"
|
3196
|
-
stroke-linejoin="round"
|
3197
|
-
class="lucide lucide-circle h-3.5 w-3.5 fill-primary"
|
3198
|
-
>
|
3199
|
-
<circle cx="12" cy="12" r="10"></circle></svg
|
3200
|
-
>
|
3201
|
-
`}function Nn(){return l.svg`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-dot">
|
3202
|
-
<circle cx="12.1" cy="12.1" r="1"></circle>
|
3203
|
-
</svg>`}var Fn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,De=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Fn(e,r,t),t};let ae=class extends l.LitElement{constructor(){super(...arguments),this.value="",this.handleClick=()=>{},this.handleKeyDown=()=>{}}render(){return l.html`
|
3377
|
+
`}`}};U._counter=0,U.styles=[l.css``,c],bt([d.property({type:String})],U.prototype,"_id",2),bt([d.property({attribute:"aria-hidden",type:String})],U.prototype,"_hidden",2),U=bt([d.customElement("rtg-command-separator")],U);var ts=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,Ne=(n,e,r,o)=>{for(var t=o>1?void 0:o?rs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ts(e,r,t),t};let ue=class extends l.LitElement{constructor(){super(...arguments),this.value="",this.handleClick=()=>{},this.handleKeyDown=()=>{}}render(){return l.html`
|
3204
3378
|
<input
|
3205
3379
|
part="combo-box-input"
|
3206
3380
|
class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
|
@@ -3218,7 +3392,7 @@ body {
|
|
3218
3392
|
@click=${this.handleClick}
|
3219
3393
|
@keydown=${this.handleKeyDown}
|
3220
3394
|
/>
|
3221
|
-
`}};
|
3395
|
+
`}};ue.styles=[l.css``,c],Ne([d.property({type:String})],ue.prototype,"value",2),Ne([d.property({type:Function})],ue.prototype,"handleClick",2),Ne([d.property({type:Function})],ue.prototype,"handleKeyDown",2),ue=Ne([d.customElement("rtg-combo-box-input")],ue);var os=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,H=(n,e,r,o)=>{for(var t=o>1?void 0:o?ns(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&os(e,r,t),t};let M=class extends l.LitElement{constructor(){super(...arguments),this.key="",this.searchText="",this.value="",this.tabindex=0,this.isSelected=!1,this.twClass="",this.onSelect=()=>{}}connectedCallback(){var n;super.connectedCallback(),(n=this.shadowRoot)==null||n.addEventListener("mousedown",()=>{var r;let e=(r=this.parentElement)==null?void 0:r.querySelector(`[data-hs-combo-box-value="${this.value}"]`);e&&e.click()})}render(){return l.html`
|
3222
3396
|
<div
|
3223
3397
|
part="combo-box-item"
|
3224
3398
|
key="${this.key}"
|
@@ -3253,10 +3427,10 @@ body {
|
|
3253
3427
|
</span>
|
3254
3428
|
</div>
|
3255
3429
|
</div>
|
3256
|
-
`}};M.styles=[l.css``,c],
|
3430
|
+
`}};M.styles=[l.css``,c],H([d.property({type:String})],M.prototype,"key",2),H([d.property({type:String})],M.prototype,"searchText",2),H([d.property({type:String})],M.prototype,"value",2),H([d.property({type:Number})],M.prototype,"tabindex",2),H([d.property({type:Boolean})],M.prototype,"isSelected",2),H([d.property({type:String})],M.prototype,"twClass",2),H([d.property({type:Function})],M.prototype,"onSelect",2),M=H([d.customElement("rtg-combo-box-item")],M);var ss=Object.defineProperty,as=Object.getOwnPropertyDescriptor,Fe=(n,e,r,o)=>{for(var t=o>1?void 0:o?as(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ss(e,r,t),t};let he=class extends l.LitElement{constructor(){super(...arguments),this.state=Re,this.handleKeyDown=()=>{},this.isOpen=!1}get _popover(){let n=this.parentElement;for(;n&&!(n instanceof i.ComboBox);)n=n.parentElement;return n}render(){return l.html`
|
3257
3431
|
<div
|
3258
3432
|
part="combo-box-list"
|
3259
|
-
style=";display: ${this.state===
|
3433
|
+
style=";display: ${this.state===Cn?"block":"none"}; top:115%"
|
3260
3434
|
class="absolute z-50 w-full max-h-72 p-1 bg-white border border-gray-200 rounded-lg overflow-hidden overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-900 dark:border-neutral-700"
|
3261
3435
|
data-hs-combo-box-output=""
|
3262
3436
|
@keydown="${this.handleKeyDown}"
|
@@ -3280,7 +3454,7 @@ body {
|
|
3280
3454
|
</div>
|
3281
3455
|
<slot></slot>
|
3282
3456
|
</div>
|
3283
|
-
`}};
|
3457
|
+
`}};he.styles=[l.css``,c],Fe([d.property({attribute:"data-state",type:String})],he.prototype,"state",2),Fe([d.property({attribute:"keydown",type:Function})],he.prototype,"handleKeyDown",2),Fe([d.state()],he.prototype,"isOpen",2),he=Fe([d.customElement("rtg-combo-box-list")],he);var is=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,R=(n,e,r,o)=>{for(var t=o>1?void 0:o?ls(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&is(e,r,t),t};i.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.comboBoxid=crypto.randomUUID(),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("[data-hs-combo-box]"),o=e.target;if(!r||!r.contains(o))this.isOpen=!1;else if(!((s=o.shadowRoot)==null?void 0:s.firstElementChild))return}}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(e){this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}toggleDropdown(){this.isOpen=!this.isOpen,this.focusedIndex=-1}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}handleSearch(e){const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}updateFocus(){if(!this.shadowRoot)return;this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((r,o)=>{o===this.focusedIndex?r.classList.add("bg-gray-100"):r.classList.remove("bg-gray-100")})}render(){return l.html`
|
3284
3458
|
<div
|
3285
3459
|
class="relative"
|
3286
3460
|
data-hs-combo-box=""
|
@@ -3311,7 +3485,7 @@ body {
|
|
3311
3485
|
data-hs-combo-box-toggle=""
|
3312
3486
|
@click="${this.toggleDropdown}"
|
3313
3487
|
>
|
3314
|
-
${
|
3488
|
+
${Yt()}
|
3315
3489
|
</div>
|
3316
3490
|
</div>
|
3317
3491
|
<div
|
@@ -3362,7 +3536,71 @@ body {
|
|
3362
3536
|
`}
|
3363
3537
|
</div>
|
3364
3538
|
</div>
|
3365
|
-
`}},
|
3539
|
+
`}},i.ComboBox.styles=[l.css``,c],R([d.state()],i.ComboBox.prototype,"comboBoxid",2),R([d.state()],i.ComboBox.prototype,"isOpen",2),R([d.state()],i.ComboBox.prototype,"selectedValue",2),R([d.state()],i.ComboBox.prototype,"searchTerm",2),R([d.state()],i.ComboBox.prototype,"focusedIndex",2),R([d.state()],i.ComboBox.prototype,"filteredItems",2),R([d.property({type:String})],i.ComboBox.prototype,"label",2),R([d.property({type:Array})],i.ComboBox.prototype,"items",2),i.ComboBox=R([d.customElement("rtg-combo-box")],i.ComboBox);var ds=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,nr=(n,e,r,o)=>{for(var t=o>1?void 0:o?cs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ds(e,r,t),t};const ps="open",sr="closed";i.DialogContent=class extends l.LitElement{constructor(){super(...arguments),this.state=sr,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=sr)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof i.Dialog)return e;e=e.parentElement}return e}render(){return l.html`${this.state===ps?l.html`
|
3540
|
+
<div
|
3541
|
+
part="dialog-content"
|
3542
|
+
class="${u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",this.className)}"
|
3543
|
+
rtgdlg-content
|
3544
|
+
>
|
3545
|
+
<slot></slot>
|
3546
|
+
<button
|
3547
|
+
type="button"
|
3548
|
+
@click="${this.handleCloseButtonClick}"
|
3549
|
+
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
|
3550
|
+
>
|
3551
|
+
<svg
|
3552
|
+
xmlns="http://www.w3.org/2000/svg"
|
3553
|
+
width="24"
|
3554
|
+
height="24"
|
3555
|
+
viewBox="0 0 24 24"
|
3556
|
+
fill="none"
|
3557
|
+
stroke="currentColor"
|
3558
|
+
stroke-width="2"
|
3559
|
+
stroke-linecap="round"
|
3560
|
+
stroke-linejoin="round"
|
3561
|
+
class="h-4 w-4"
|
3562
|
+
>
|
3563
|
+
<path d="M18 6 6 18"></path>
|
3564
|
+
<path d="m6 6 12 12"></path></svg
|
3565
|
+
><span class="sr-only">Close</span>
|
3566
|
+
</button>
|
3567
|
+
</div>
|
3568
|
+
`:l.nothing}`}},i.DialogContent.styles=[l.css``,c],nr([d.property({attribute:"data-state",type:String})],i.DialogContent.prototype,"state",2),i.DialogContent=nr([d.customElement("rtg-dialog-content")],i.DialogContent);var us=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,ms=(n,e,r,o)=>{for(var t=o>1?void 0:o?hs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&us(e,r,t),t};const gs="closed";i.DialogClose=class extends l.LitElement{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof i.Dialog)return e;e=e.parentElement}return e}firstUpdated(e){var t;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"),o=r==null?void 0:r.assignedElements();o&&o.length>0&&o[0].addEventListener("click",()=>{const a=this._dialog;a&&(a.dataset.state=gs)})}render(){return l.html`
|
3569
|
+
<div part="dialog-close">
|
3570
|
+
<slot></slot>
|
3571
|
+
</div>
|
3572
|
+
`}},i.DialogClose.styles=[l.css``,c],i.DialogClose=ms([d.customElement("rtg-dialog-close")],i.DialogClose);var bs=Object.defineProperty,fs=Object.getOwnPropertyDescriptor,vs=(n,e,r,o)=>{for(var t=o>1?void 0:o?fs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&bs(e,r,t),t};i.DialogFooter=class extends l.LitElement{render(){return l.html`
|
3573
|
+
<div
|
3574
|
+
part="dialog-footer"
|
3575
|
+
class="${u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",this.className)}"
|
3576
|
+
>
|
3577
|
+
<slot></slot>
|
3578
|
+
</div>
|
3579
|
+
`}},i.DialogFooter.styles=[l.css``,c],i.DialogFooter=vs([d.customElement("rtg-dialog-footer")],i.DialogFooter);var ws=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,ft=(n,e,r,o)=>{for(var t=o>1?void 0:o?ys(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ws(e,r,t),t};i.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
|
3580
|
+
<div
|
3581
|
+
part="dialog-header"
|
3582
|
+
class="${u("flex flex-col space-y-1.5 text-center sm:text-left",this.className)}"
|
3583
|
+
>
|
3584
|
+
<h2
|
3585
|
+
class="${u("text-lg font-semibold leading-none tracking-tight",this.className)}"
|
3586
|
+
>
|
3587
|
+
${this._title}
|
3588
|
+
</h2>
|
3589
|
+
<p class="${u("text-sm text-muted-foreground",this.className)}">
|
3590
|
+
${this.description}
|
3591
|
+
</p>
|
3592
|
+
</div>
|
3593
|
+
`}},i.DialogHeader.styles=[l.css``,c],ft([d.property({attribute:"title",type:String})],i.DialogHeader.prototype,"_title",2),ft([d.property({type:String})],i.DialogHeader.prototype,"description",2),i.DialogHeader=ft([d.customElement("rtg-dialog-header")],i.DialogHeader);var xs=Object.defineProperty,Cs=Object.getOwnPropertyDescriptor,$s=(n,e,r,o)=>{for(var t=o>1?void 0:o?Cs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&xs(e,r,t),t};i.DialogOverlay=class extends l.LitElement{render(){return l.html`
|
3594
|
+
<div
|
3595
|
+
part="dialog-overly"
|
3596
|
+
class="${u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",this.className)}"
|
3597
|
+
></div>
|
3598
|
+
`}},i.DialogOverlay.styles=[l.css``,c],i.DialogOverlay=$s([d.customElement("rtg-dialog-overlay")],i.DialogOverlay);var _s=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,ar=(n,e,r,o)=>{for(var t=o>1?void 0:o?Os(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&_s(e,r,t),t};const Es="open",Ss="closed";i.Dialog=class extends l.LitElement{constructor(){super(...arguments),this.state=Ss}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof i.DialogContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.state)}render(){return l.html`
|
3599
|
+
<div rtgdlg-root part="dialog">
|
3600
|
+
${this.state===Es?l.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:l.nothing}
|
3601
|
+
<slot></slot>
|
3602
|
+
</div>
|
3603
|
+
`}},i.Dialog.styles=[l.css``,c],ar([d.property({attribute:"data-state",type:String})],i.Dialog.prototype,"state",2),i.Dialog=ar([d.customElement("rtg-dialog")],i.Dialog);var Ps=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,vt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ks(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ps(e,r,t),t};i.DropdownMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Re,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof i.DropdownMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-dropdown-menu-content"),o=(s=this.shadowRoot)==null?void 0:s.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
3366
3604
|
<div
|
3367
3605
|
part="dropdown-menu-content"
|
3368
3606
|
class="flex h-full flex-col max-h-[300px] overflow-y-auto overflow-x-hidden rounded-md bg-popover text-popover-foreground border shadow-md"
|
@@ -3370,7 +3608,7 @@ body {
|
|
3370
3608
|
>
|
3371
3609
|
<slot></slot>
|
3372
3610
|
</div>
|
3373
|
-
`}},
|
3611
|
+
`}},i.DropdownMenuContent.styles=[l.css``,c],vt([d.property({attribute:"data-state",type:String})],i.DropdownMenuContent.prototype,"state",2),vt([d.state()],i.DropdownMenuContent.prototype,"isOpen",2),i.DropdownMenuContent=vt([d.customElement("rtg-dropdown-menu-content")],i.DropdownMenuContent);var Ds=Object.defineProperty,Ms=Object.getOwnPropertyDescriptor,Ee=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ms(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ds(e,r,t),t};i.DropdownMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${i.DropdownMenuItem._counter++}`:this._id=`rtgcmdrxgxli${i.DropdownMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
|
3374
3612
|
<div
|
3375
3613
|
part="dropdown-menu-item"
|
3376
3614
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",this.className)}"
|
@@ -3387,7 +3625,7 @@ body {
|
|
3387
3625
|
>
|
3388
3626
|
<slot></slot>
|
3389
3627
|
</div>
|
3390
|
-
`}`}},
|
3628
|
+
`}`}},i.DropdownMenuItem._counter=0,i.DropdownMenuItem.styles=[l.css``,c],Ee([d.property({type:String})],i.DropdownMenuItem.prototype,"_id",2),Ee([d.property({attribute:"aria-hidden",type:String})],i.DropdownMenuItem.prototype,"_hidden",2),Ee([d.property({attribute:"data-value",type:String})],i.DropdownMenuItem.prototype,"value",1),Ee([d.property({type:Boolean})],i.DropdownMenuItem.prototype,"selected",2),i.DropdownMenuItem=Ee([d.customElement("rtg-dropdown-menu-item")],i.DropdownMenuItem);var Is=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,re=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ls(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Is(e,r,t),t};i.DropdownMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${i.DropdownMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${i.DropdownMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
3391
3629
|
<div
|
3392
3630
|
part="dropdown-menu-radio"
|
3393
3631
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
@@ -3410,13 +3648,13 @@ body {
|
|
3410
3648
|
</span>
|
3411
3649
|
<slot></slot>
|
3412
3650
|
</div>
|
3413
|
-
`}},
|
3651
|
+
`}},i.DropdownMenuRadioItem._counter=0,i.DropdownMenuRadioItem.styles=[l.css`
|
3414
3652
|
.icon-space {
|
3415
3653
|
width: 16px; /* Fixed width to reserve space for the check icon */
|
3416
3654
|
height: 16px;
|
3417
3655
|
display: inline-block;
|
3418
3656
|
}
|
3419
|
-
`,c],
|
3657
|
+
`,c],re([d.property({type:String})],i.DropdownMenuRadioItem.prototype,"_id",2),re([d.property({attribute:"aria-hidden",type:String})],i.DropdownMenuRadioItem.prototype,"_hidden",2),re([d.property({attribute:"data-value",type:String})],i.DropdownMenuRadioItem.prototype,"value",1),re([d.property({type:Boolean})],i.DropdownMenuRadioItem.prototype,"selected",2),re([d.property({type:Boolean})],i.DropdownMenuRadioItem.prototype,"checked",2),re([d.property({type:Boolean})],i.DropdownMenuRadioItem.prototype,"disabled",2),i.DropdownMenuRadioItem=re([d.customElement("rtg-dropdown-menu-radio-item")],i.DropdownMenuRadioItem);var As=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,wt=(n,e,r,o)=>{for(var t=o>1?void 0:o?zs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&As(e,r,t),t};i.DropdownMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${i.DropdownMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${i.DropdownMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3420
3658
|
<div
|
3421
3659
|
part="dropdown-menu-seperator"
|
3422
3660
|
class="${u("-mx-1 h-px bg-border",this.className)}"
|
@@ -3424,7 +3662,7 @@ body {
|
|
3424
3662
|
role="separator"
|
3425
3663
|
id="${this.identifier}"
|
3426
3664
|
></div>
|
3427
|
-
`}`}},
|
3665
|
+
`}`}},i.DropdownMenuSeparator._counter=0,i.DropdownMenuSeparator.styles=[l.css``,c],wt([d.property({type:String})],i.DropdownMenuSeparator.prototype,"_id",2),wt([d.property({attribute:"aria-hidden",type:String})],i.DropdownMenuSeparator.prototype,"_hidden",2),i.DropdownMenuSeparator=wt([d.customElement("rtg-dropdown-menu-separator")],i.DropdownMenuSeparator);var Rs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ts(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Rs(e,r,t),t};i.DropdownMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${i.DropdownMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${i.DropdownMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
|
3428
3666
|
<div
|
3429
3667
|
part="dropdown-menu-item"
|
3430
3668
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
@@ -3447,213 +3685,160 @@ body {
|
|
3447
3685
|
<svg
|
3448
3686
|
xmlns="http://www.w3.org/2000/svg"
|
3449
3687
|
viewBox="0 0 24 24"
|
3450
|
-
width="16px"
|
3451
|
-
height="16px"
|
3452
|
-
>
|
3453
|
-
<path
|
3454
|
-
d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"
|
3455
|
-
/>
|
3456
|
-
</svg>
|
3457
|
-
`:l.nothing}
|
3458
|
-
</span>
|
3459
|
-
<slot></slot>
|
3460
|
-
</div>
|
3461
|
-
`}},a.DropdownMenuCheckboxItem._counter=0,a.DropdownMenuCheckboxItem.styles=[l.css`
|
3462
|
-
.icon-space {
|
3463
|
-
width: 16px; /* Fixed width to reserve space for the check icon */
|
3464
|
-
height: 16px;
|
3465
|
-
display: inline-block;
|
3466
|
-
}
|
3467
|
-
`,c],Z([d.property({type:String})],a.DropdownMenuCheckboxItem.prototype,"_id",2),Z([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuCheckboxItem.prototype,"_hidden",2),Z([d.property({attribute:"data-value",type:String})],a.DropdownMenuCheckboxItem.prototype,"value",1),Z([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"selected",2),Z([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"checked",2),Z([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"disabled",2),a.DropdownMenuCheckboxItem=Z([d.customElement("rtg-dropdown-menu-checkbox-item")],a.DropdownMenuCheckboxItem);var ss=Object.defineProperty,is=Object.getOwnPropertyDescriptor,Le=(n,e,r,o)=>{for(var t=o>1?void 0:o?is(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ss(e,r,t),t};a.DropdownMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${a.DropdownMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${a.DropdownMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3468
|
-
<div
|
3469
|
-
part="dropdown-menu-group"
|
3470
|
-
class="${e}"
|
3471
|
-
rtgcmd-group
|
3472
|
-
role="presentation"
|
3473
|
-
id="${this.identifier}"
|
3474
|
-
>
|
3475
|
-
<div
|
3476
|
-
rtgcmd-group-heading
|
3477
|
-
aria-hidden="true"
|
3478
|
-
id="${this.identifier}h"
|
3479
|
-
>
|
3480
|
-
${this.heading}
|
3481
|
-
</div>
|
3482
|
-
<div
|
3483
|
-
rtgcmd-group-items
|
3484
|
-
role="group"
|
3485
|
-
aria-labelledby="${this.identifier}h"
|
3486
|
-
>
|
3487
|
-
<slot></slot>
|
3488
|
-
</div>
|
3489
|
-
</div>
|
3490
|
-
`}`}},a.DropdownMenuGroup._counter=0,a.DropdownMenuGroup.styles=[l.css``,c],Le([d.property({type:String})],a.DropdownMenuGroup.prototype,"heading",2),Le([d.property({attribute:"id",type:String})],a.DropdownMenuGroup.prototype,"_id",2),Le([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuGroup.prototype,"_hidden",2),a.DropdownMenuGroup=Le([d.customElement("rtg-dropdown-menu-group")],a.DropdownMenuGroup);var as=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,jt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ls(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&as(e,r,t),t};a.DropdownMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.stopPropagation(),this.isOpen=!this.isOpen}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof a.DropdownMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
3491
|
-
<div part="dropdown-menu">
|
3492
|
-
<div>
|
3493
|
-
<slot @click="${this.toggleDropdown}"></slot>
|
3494
|
-
</div>
|
3495
|
-
<div>
|
3496
|
-
<slot></slot>
|
3497
|
-
</div>
|
3498
|
-
</div>
|
3499
|
-
`}},a.DropdownMenu.styles=[l.css``,c],jt([d.state()],a.DropdownMenu.prototype,"isOpen",2),a.DropdownMenu=jt([d.customElement("rtg-dropdown-menu")],a.DropdownMenu);var Jt=(n=>(n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg",n))(Jt||{}),Qt=(n=>(n.DEFAULT="default",n.OUTLINE="outline",n))(Qt||{});const ds=N("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground bg-transparent h-10 px-3",{variants:{variant:{default:" hover:bg-muted hover:text-muted-foreground",outline:" border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-9 px-2.5",md:"h-10 px-3",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"sm"}});var cs=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,j=(n,e,r,o)=>{for(var t=o>1?void 0:o?ps(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&cs(e,r,t),t};a.Toggle=class extends y{constructor(){super(...arguments),this.disabled=!1,this.twCLass="",this.checked=!1,this.required=!1,this.variant=Qt.DEFAULT,this.size=Jt.SMALL}getAttributesToExclude(){return["disabled","checked","variant","size","required"]}toggle(){this.disabled||(this.checked=!this.checked)}render(){const e=this.getFilteredAttributes();return k.html`
|
3500
|
-
<button
|
3501
|
-
type="button"
|
3502
|
-
part="toggle"
|
3503
|
-
class="${u(a.Toggle.toggleVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.twCLass}"
|
3504
|
-
aria-pressed=${this.checked}
|
3505
|
-
data-state="${this.checked?"on":"off"}"
|
3506
|
-
aria-label="Toggle bold"
|
3507
|
-
@click=${this.toggle}
|
3508
|
-
?required=${this.required}
|
3509
|
-
?disabled=${this.disabled}
|
3510
|
-
${x(e)}
|
3511
|
-
>
|
3512
|
-
<slot></slot>
|
3513
|
-
</button>
|
3514
|
-
`}},a.Toggle.styles=[c],a.Toggle.toggleVariants=ds,j([d.property({type:Boolean})],a.Toggle.prototype,"disabled",2),j([d.property({type:String})],a.Toggle.prototype,"twCLass",2),j([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"checked",2),j([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"required",2),j([d.property({attribute:!0,type:String})],a.Toggle.prototype,"variant",2),j([d.property({attribute:!0,type:String})],a.Toggle.prototype,"size",2),a.Toggle=j([d.customElement("rtg-toggle")],a.Toggle);var us=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,st=(n,e,r,o)=>{for(var t=o>1?void 0:o?hs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&us(e,r,t),t};a.ContextMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Me,this.isOpen=!1}get _contextMenu(){let e=this.parentElement;for(;e&&!(e instanceof a.ContextMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-context-menu-content"),o=(s=this.shadowRoot)==null?void 0:s.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
3515
|
-
<div
|
3516
|
-
part="context-menu-content"
|
3517
|
-
class="z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
|
3518
|
-
data-state="${this.state}"
|
3519
|
-
style="display: ${this.isOpen?"block":"none"}; width: 260px"
|
3520
|
-
>
|
3521
|
-
<slot></slot>
|
3522
|
-
</div>
|
3523
|
-
`}},a.ContextMenuContent.styles=[l.css``,c],st([d.property({attribute:"data-state",type:String})],a.ContextMenuContent.prototype,"state",2),st([d.state()],a.ContextMenuContent.prototype,"isOpen",2),a.ContextMenuContent=st([d.customElement("rtg-context-menu-content")],a.ContextMenuContent);var ms=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,J=(n,e,r,o)=>{for(var t=o>1?void 0:o?gs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ms(e,r,t),t};a.ContextMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
|
3524
|
-
<div
|
3525
|
-
part="context-menu-checkbox"
|
3526
|
-
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
3527
|
-
@click=${this.toggleChecked}
|
3528
|
-
@mouseover="${this.handleMouseEvent}"
|
3529
|
-
@mouseleave="${this.handleMouseEvent}"
|
3530
|
-
@focus="${this.handleMouseEvent}"
|
3531
|
-
rtgcmd-item
|
3532
|
-
role="option"
|
3533
|
-
aria-selected="${this.selected}"
|
3534
|
-
data-selected="${this.selected}"
|
3535
|
-
data-value="${this.value}"
|
3536
|
-
id="${this.identifier}"
|
3537
|
-
aria-hidden="${this.hidden}"
|
3538
|
-
>
|
3539
|
-
<span
|
3540
|
-
class="icon-space absolute left-2 flex items-center justify-center"
|
3541
|
-
>
|
3542
|
-
${this.checked?l.html`
|
3543
|
-
<svg
|
3544
|
-
xmlns="http://www.w3.org/2000/svg"
|
3545
|
-
viewBox="0 0 24 24"
|
3546
|
-
width="16px"
|
3547
|
-
height="16px"
|
3548
|
-
>
|
3549
|
-
<path
|
3550
|
-
d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"
|
3551
|
-
/>
|
3552
|
-
</svg>
|
3553
|
-
`:l.nothing}
|
3554
|
-
</span>
|
3555
|
-
<slot></slot>
|
3556
|
-
</div>
|
3557
|
-
`}},a.ContextMenuCheckboxItem._counter=0,a.ContextMenuCheckboxItem.styles=[l.css`
|
3558
|
-
.icon-space {
|
3559
|
-
width: 16px; /* Fixed width to reserve space for the check icon */
|
3560
|
-
height: 16px;
|
3561
|
-
display: inline-block;
|
3562
|
-
}
|
3563
|
-
`,c],J([d.property({type:String})],a.ContextMenuCheckboxItem.prototype,"_id",2),J([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuCheckboxItem.prototype,"_hidden",2),J([d.property({attribute:"data-value",type:String})],a.ContextMenuCheckboxItem.prototype,"value",1),J([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"selected",2),J([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"checked",2),J([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"disabled",2),a.ContextMenuCheckboxItem=J([d.customElement("rtg-context-menu-checkbox-item")],a.ContextMenuCheckboxItem);var bs=Object.defineProperty,fs=Object.getOwnPropertyDescriptor,Ae=(n,e,r,o)=>{for(var t=o>1?void 0:o?fs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&bs(e,r,t),t};a.ContextMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${a.ContextMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${a.ContextMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3564
|
-
<div
|
3565
|
-
part="context-menu-group"
|
3566
|
-
class="${e}"
|
3567
|
-
rtgcmd-group
|
3568
|
-
role="presentation"
|
3569
|
-
id="${this.identifier}"
|
3570
|
-
>
|
3571
|
-
<div
|
3572
|
-
rtgcmd-group-heading
|
3573
|
-
aria-hidden="true"
|
3574
|
-
id="${this.identifier}h"
|
3575
|
-
>
|
3576
|
-
${this.heading}
|
3577
|
-
</div>
|
3578
|
-
<div
|
3579
|
-
rtgcmd-group-items
|
3580
|
-
role="group"
|
3581
|
-
aria-labelledby="${this.identifier}h"
|
3582
|
-
>
|
3583
|
-
<slot></slot>
|
3584
|
-
</div>
|
3585
|
-
</div>
|
3586
|
-
`}`}},a.ContextMenuGroup._counter=0,a.ContextMenuGroup.styles=[l.css``,c],Ae([d.property({type:String})],a.ContextMenuGroup.prototype,"heading",2),Ae([d.property({attribute:"id",type:String})],a.ContextMenuGroup.prototype,"_id",2),Ae([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuGroup.prototype,"_hidden",2),a.ContextMenuGroup=Ae([d.customElement("rtg-context-menu-group")],a.ContextMenuGroup);var vs=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,xe=(n,e,r,o)=>{for(var t=o>1?void 0:o?ws(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&vs(e,r,t),t};a.ContextMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
|
3587
|
-
<div
|
3588
|
-
part="context-menu-item"
|
3589
|
-
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground",this.className)}"
|
3590
|
-
@mouseover="${this.handleMouseEvent}"
|
3591
|
-
@mouseleave="${this.handleMouseEvent}"
|
3592
|
-
@focus="${this.handleMouseEvent}"
|
3593
|
-
rtgcmd-item
|
3594
|
-
role="option"
|
3595
|
-
aria-selected="${this.selected}"
|
3596
|
-
data-selected="${this.selected}"
|
3597
|
-
data-value="${this.value}"
|
3598
|
-
id="${this.identifier}"
|
3599
|
-
aria-hidden="${this.hidden}"
|
3600
|
-
>
|
3601
|
-
<slot></slot>
|
3602
|
-
</div>
|
3603
|
-
`}`}},a.ContextMenuItem._counter=0,a.ContextMenuItem.styles=[l.css``,c],xe([d.property({type:String})],a.ContextMenuItem.prototype,"_id",2),xe([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuItem.prototype,"_hidden",2),xe([d.property({attribute:"data-value",type:String})],a.ContextMenuItem.prototype,"value",1),xe([d.property({type:Boolean})],a.ContextMenuItem.prototype,"selected",2),a.ContextMenuItem=xe([d.customElement("rtg-context-menu-item")],a.ContextMenuItem);var ys=Object.defineProperty,xs=Object.getOwnPropertyDescriptor,Q=(n,e,r,o)=>{for(var t=o>1?void 0:o?xs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ys(e,r,t),t};a.ContextMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
3604
|
-
<div
|
3605
|
-
part="context-menu-radio"
|
3606
|
-
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
3607
|
-
@click=${this.toggleChecked}
|
3608
|
-
@mouseover="${this.handleMouseEvent}"
|
3609
|
-
@mouseleave="${this.handleMouseEvent}"
|
3610
|
-
@focus="${this.handleMouseEvent}"
|
3611
|
-
rtgcmd-item
|
3612
|
-
role="option"
|
3613
|
-
aria-selected="${this.selected}"
|
3614
|
-
data-selected="${this.selected}"
|
3615
|
-
data-value="${this.value}"
|
3616
|
-
id="${this.identifier}"
|
3617
|
-
aria-hidden="${this.hidden}"
|
3618
|
-
>
|
3619
|
-
<span
|
3620
|
-
class="icon-space absolute left-2 flex items-center justify-center"
|
3621
|
-
>
|
3622
|
-
${this.checked?l.html` ${Zt()} `:l.nothing}
|
3688
|
+
width="16px"
|
3689
|
+
height="16px"
|
3690
|
+
>
|
3691
|
+
<path
|
3692
|
+
d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"
|
3693
|
+
/>
|
3694
|
+
</svg>
|
3695
|
+
`:l.nothing}
|
3623
3696
|
</span>
|
3624
3697
|
<slot></slot>
|
3625
3698
|
</div>
|
3626
|
-
`}},
|
3699
|
+
`}},i.DropdownMenuCheckboxItem._counter=0,i.DropdownMenuCheckboxItem.styles=[l.css`
|
3627
3700
|
.icon-space {
|
3628
3701
|
width: 16px; /* Fixed width to reserve space for the check icon */
|
3629
3702
|
height: 16px;
|
3630
3703
|
display: inline-block;
|
3631
3704
|
}
|
3632
|
-
`,c],
|
3705
|
+
`,c],oe([d.property({type:String})],i.DropdownMenuCheckboxItem.prototype,"_id",2),oe([d.property({attribute:"aria-hidden",type:String})],i.DropdownMenuCheckboxItem.prototype,"_hidden",2),oe([d.property({attribute:"data-value",type:String})],i.DropdownMenuCheckboxItem.prototype,"value",1),oe([d.property({type:Boolean})],i.DropdownMenuCheckboxItem.prototype,"selected",2),oe([d.property({type:Boolean})],i.DropdownMenuCheckboxItem.prototype,"checked",2),oe([d.property({type:Boolean})],i.DropdownMenuCheckboxItem.prototype,"disabled",2),i.DropdownMenuCheckboxItem=oe([d.customElement("rtg-dropdown-menu-checkbox-item")],i.DropdownMenuCheckboxItem);var Bs=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,qe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ns(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Bs(e,r,t),t};i.DropdownMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${i.DropdownMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${i.DropdownMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3633
3706
|
<div
|
3634
|
-
part="
|
3635
|
-
class="${
|
3636
|
-
rtgcmd-
|
3637
|
-
role="
|
3707
|
+
part="dropdown-menu-group"
|
3708
|
+
class="${e}"
|
3709
|
+
rtgcmd-group
|
3710
|
+
role="presentation"
|
3638
3711
|
id="${this.identifier}"
|
3639
|
-
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3712
|
+
>
|
3713
|
+
<div
|
3714
|
+
rtgcmd-group-heading
|
3715
|
+
aria-hidden="true"
|
3716
|
+
id="${this.identifier}h"
|
3717
|
+
>
|
3718
|
+
${this.heading}
|
3719
|
+
</div>
|
3720
|
+
<div
|
3721
|
+
rtgcmd-group-items
|
3722
|
+
role="group"
|
3723
|
+
aria-labelledby="${this.identifier}h"
|
3724
|
+
>
|
3725
|
+
<slot></slot>
|
3726
|
+
</div>
|
3727
|
+
</div>
|
3728
|
+
`}`}},i.DropdownMenuGroup._counter=0,i.DropdownMenuGroup.styles=[l.css``,c],qe([d.property({type:String})],i.DropdownMenuGroup.prototype,"heading",2),qe([d.property({attribute:"id",type:String})],i.DropdownMenuGroup.prototype,"_id",2),qe([d.property({attribute:"aria-hidden",type:String})],i.DropdownMenuGroup.prototype,"_hidden",2),i.DropdownMenuGroup=qe([d.customElement("rtg-dropdown-menu-group")],i.DropdownMenuGroup);var Fs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,ir=(n,e,r,o)=>{for(var t=o>1?void 0:o?qs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Fs(e,r,t),t};i.DropdownMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.stopPropagation(),this.isOpen=!this.isOpen}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof i.DropdownMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
3729
|
+
<div part="dropdown-menu">
|
3730
|
+
<div>
|
3731
|
+
<slot @click="${this.toggleDropdown}"></slot>
|
3732
|
+
</div>
|
3733
|
+
<div>
|
3734
|
+
<slot></slot>
|
3735
|
+
</div>
|
3736
|
+
</div>
|
3737
|
+
`}},i.DropdownMenu.styles=[l.css``,c],ir([d.state()],i.DropdownMenu.prototype,"isOpen",2),i.DropdownMenu=ir([d.customElement("rtg-dropdown-menu")],i.DropdownMenu);var Gs=Object.defineProperty,Vs=Object.getOwnPropertyDescriptor,Ge=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Gs(e,r,t),t};let ne=class extends l.LitElement{constructor(){super(...arguments),this.twClass="",this.state="close",this.isOpen=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("mouseenter",this.handleHoverEnter),document.addEventListener("mouseleave",this.handleHoverEnter)}disconnectedCallback(){document.removeEventListener("mouseleave",this.handleHoverEnter),document.removeEventListener("mouseenter",this.handleHoverEnter),super.disconnectedCallback()}updated(n){super.updated(n),this.state==="open"?this.isOpen=!0:this.isOpen=!1}handleHoverEnter(n){var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("rtg-hover-card-content");e&&!e.contains(n.target)&&(this.isOpen=!1)}render(){return l.html`
|
3738
|
+
<div
|
3739
|
+
part="hover-card-content"
|
3740
|
+
class="${u("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",this.twClass)}"
|
3741
|
+
style="display: ${this.isOpen?"block":"none"};width:360px"
|
3644
3742
|
>
|
3645
3743
|
<slot></slot>
|
3646
|
-
</
|
3647
|
-
`}}
|
3648
|
-
<div
|
3744
|
+
</div>
|
3745
|
+
`}};ne.styles=[l.css``,c],Ge([d.property({type:String})],ne.prototype,"twClass",2),Ge([d.property({attribute:"data-state",type:String})],ne.prototype,"state",2),Ge([d.state()],ne.prototype,"isOpen",2),ne=Ge([d.customElement("rtg-hover-card-content")],ne);var Us=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,yt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Hs(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Us(e,r,t),t};let Se=class extends l.LitElement{constructor(){super(...arguments),this.twClass="",this.isOpen=!1}handleMouseEnter(){this.isOpen=!0}handleMouseLeave(){this.isOpen=!1}get _content(){var r;const n=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),e=n==null?void 0:n.assignedElements();if(e){for(let o=0;o<e.length;o++)if(e[o]instanceof ne)return e[o]}return null}updated(n){super.updated(n);const e=this._content;e&&(e.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback(),document.addEventListener("mouseenter",this.handleMouseEnter),document.addEventListener("mouseleave",this.handleMouseLeave)}disconnectedCallback(){document.removeEventListener("mouseleave",this.handleMouseLeave),document.removeEventListener("mouseenter",this.handleMouseEnter),super.disconnectedCallback()}render(){return l.html`
|
3746
|
+
<div part="hover-card" class="${this.twClass}">
|
3649
3747
|
<div>
|
3650
|
-
<slot
|
3748
|
+
<slot
|
3749
|
+
@mouseenter="${this.handleMouseEnter}"
|
3750
|
+
@mouseleave="${this.handleMouseLeave}"
|
3751
|
+
></slot>
|
3651
3752
|
</div>
|
3652
3753
|
<div>
|
3653
3754
|
<slot></slot>
|
3654
3755
|
</div>
|
3655
3756
|
</div>
|
3656
|
-
`}}
|
3757
|
+
`}};Se.styles=[l.css``,c],yt([d.property({type:String})],Se.prototype,"twClass",2),yt([d.state()],Se.prototype,"isOpen",2),Se=yt([d.customElement("rtg-hover-card")],Se);const Xs="flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 input-base";var Ys=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,se=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ks(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ys(e,r,t),t};i.Input=class extends y{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.twClass="",this.value=this.value||this.defaultValue}firstUpdated(e){const r=["--input-border-radius","--input-padding"];this.applyCustomClass(r,"input","input-base"),this.type!=="file"&&this.defaultValue&&(this.value=this.defaultValue)}handleInputChange(e){const r=e.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
|
3758
|
+
<input
|
3759
|
+
${x(e)}
|
3760
|
+
part="input"
|
3761
|
+
type="${this.type}"
|
3762
|
+
placeholder="${this.placeholder}"
|
3763
|
+
?disabled=${this.disabled}
|
3764
|
+
class="${u(Xs,this.twClass)}"
|
3765
|
+
.value=${this.type!=="file"?this.value:""}
|
3766
|
+
@change="${this.handleInputChange}"
|
3767
|
+
/>
|
3768
|
+
`}},i.Input.styles=[l.css``,c],se([d.property({type:Boolean})],i.Input.prototype,"disabled",2),se([d.property({type:String})],i.Input.prototype,"type",2),se([d.property({type:String})],i.Input.prototype,"placeholder",2),se([d.property({type:String})],i.Input.prototype,"defaultValue",2),se([d.property({type:String})],i.Input.prototype,"value",2),se([d.property({type:String})],i.Input.prototype,"twClass",2),i.Input=se([d.customElement("rtg-input")],i.Input);const Ws=A("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");var Zs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,lr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Js(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Zs(e,r,t),t};let me=class extends y{constructor(){super(...arguments),this.for=""}firstUpdated(n){const e=["--label-text-color,--label-padding"];this.applyCustomClass(e,"label","label-base")}_onClick(n){var r;if(n.defaultPrevented)return;const e=(r=this.shadowRoot)==null?void 0:r.getElementById(this.for);e&&e.click()}getAttributesToExclude(){return["for","data-testid"]}render(){const n=this.getFilteredAttributes();return l.html`
|
3769
|
+
<label
|
3770
|
+
${x(n)}
|
3771
|
+
part="label"
|
3772
|
+
for="${this.for}"
|
3773
|
+
@click="${this._onClick}"
|
3774
|
+
@keydown="${this._onClick}"
|
3775
|
+
class="${u(me.labelVariants({className:this.className}))}"
|
3776
|
+
>
|
3777
|
+
<slot></slot>
|
3778
|
+
</label>
|
3779
|
+
`}};me.labelVariants=Ws,me.styles=[l.css`
|
3780
|
+
:root {
|
3781
|
+
--label-text-color: inherit;
|
3782
|
+
--label-padding: inherit;
|
3783
|
+
}
|
3784
|
+
.label-base {
|
3785
|
+
color: var(--label-text-color) !important;
|
3786
|
+
padding: var(--label-padding) !important;
|
3787
|
+
}
|
3788
|
+
`,c],lr([d.property({type:String})],me.prototype,"for",2),me=lr([d.customElement("rtg-label")],me);const Qs=A("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none transition-transform transition-opacity",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}}),js=A("fixed",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}});var ea=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,xt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ta(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ea(e,r,t),t};i.PopoverContent=class extends l.LitElement{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.side="bottom"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof i.Popover);)e=e.parentElement;return e}handleClickOutside(e){var o,t;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(r&&!((t=r.assignedElements({flatten:!0})[0])!=null&&t.contains(e.target))){const a=this._popover;a.isOpen=!1}}firstUpdated(e){window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var r;(r=this._popover)!=null&&r.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}render(){const e=this.enableDefaultStyle?Qs({state:"open",side:this.side}):js({state:"open",side:this.side});return l.html`
|
3789
|
+
<div part="popover-content" class="${u(e)}">
|
3790
|
+
<slot></slot>
|
3791
|
+
</div>
|
3792
|
+
`}},i.PopoverContent.styles=[l.css``,c],xt([d.property({type:Boolean})],i.PopoverContent.prototype,"enableDefaultStyle",2),xt([d.property({type:String})],i.PopoverContent.prototype,"side",2),i.PopoverContent=xt([d.customElement("rtg-popover-content")],i.PopoverContent);var ra=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,na=(n,e,r,o)=>{for(var t=o>1?void 0:o?oa(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ra(e,r,t),t};i.PopoverTrigger=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof i.Popover);)e=e.parentElement;return e}firstUpdated(e){var t,s;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="trigger-button"]'),o=r==null?void 0:r.assignedElements({flatten:!0});o&&o.length>0&&(o[0].click=this.handleClick),(s=this.shadowRoot)==null||s.addEventListener("click",a=>{a.stopPropagation()})}render(){return l.html`
|
3793
|
+
<div part="popover-trigger" style="width: fit-content;">
|
3794
|
+
<slot name="trigger-button"></slot>
|
3795
|
+
</div>
|
3796
|
+
`}},i.PopoverTrigger.styles=[l.css``,c],i.PopoverTrigger=na([d.customElement("rtg-popover-trigger")],i.PopoverTrigger);var sa=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,dr=(n,e,r,o)=>{for(var t=o>1?void 0:o?aa(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&sa(e,r,t),t};i.Popover=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1}firstUpdated(e){super.firstUpdated(e)}updated(e){super.updated(e)}render(){return l.html`
|
3797
|
+
<div part="popover">
|
3798
|
+
<slot
|
3799
|
+
name="trigger"
|
3800
|
+
@click="${()=>this.isOpen=!this.isOpen}"
|
3801
|
+
></slot>
|
3802
|
+
<div data-testid="popover-content-holder" ?hidden="${!this.isOpen}">
|
3803
|
+
<slot name="content"></slot>
|
3804
|
+
</div>
|
3805
|
+
</div>
|
3806
|
+
`}},i.Popover.styles=[l.css``,c],dr([d.state()],i.Popover.prototype,"isOpen",2),i.Popover=dr([d.customElement("rtg-popover")],i.Popover);const ia="unChecked";var la=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ge=(n,e,r,o)=>{for(var t=o>1?void 0:o?da(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&la(e,r,t),t};i.RadioGroupItem=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="",this.state=ia}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
3807
|
+
<div class="${u("flex items-center space-x-2")}" part="radio-group-item">
|
3808
|
+
<button
|
3809
|
+
type="button"
|
3810
|
+
role="radio"
|
3811
|
+
aria-checked="${this.checked}"
|
3812
|
+
data-state="${this.state}"
|
3813
|
+
value="${this.value}"
|
3814
|
+
@click="${this._onClick}"
|
3815
|
+
class="aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"
|
3816
|
+
id="${this.id}"
|
3817
|
+
tabindex="${this.tabindex}"
|
3818
|
+
data-radix-collection-item=""
|
3819
|
+
>
|
3820
|
+
${this.checked?l.html`<span
|
3821
|
+
data-state="checked"
|
3822
|
+
class="flex items-center justify-center"
|
3823
|
+
>
|
3824
|
+
${lo()}
|
3825
|
+
</span>`:l.nothing}
|
3826
|
+
</button>
|
3827
|
+
<label
|
3828
|
+
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
3829
|
+
for="${this.id}"
|
3830
|
+
>${this.value}</label
|
3831
|
+
>
|
3832
|
+
</div>
|
3833
|
+
`}},i.RadioGroupItem.styles=[l.css``,c],ge([d.property({type:Boolean,reflect:!0})],i.RadioGroupItem.prototype,"checked",2),ge([d.property({type:Number})],i.RadioGroupItem.prototype,"tabindex",2),ge([d.property({type:String})],i.RadioGroupItem.prototype,"value",2),ge([d.property({type:String})],i.RadioGroupItem.prototype,"id",2),ge([d.property({attribute:"data-state",type:String})],i.RadioGroupItem.prototype,"state",2),i.RadioGroupItem=ge([d.customElement("rtg-radio-group-item")],i.RadioGroupItem);var ca=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,cr=(n,e,r,o)=>{for(var t=o>1?void 0:o?pa(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ca(e,r,t),t};i.RadioGroup=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
3834
|
+
<div
|
3835
|
+
part="radio-group"
|
3836
|
+
class="${u("grid gap-2",this.twClass)}"
|
3837
|
+
style="outline: none;"
|
3838
|
+
>
|
3839
|
+
<slot></slot>
|
3840
|
+
</div>
|
3841
|
+
`}},i.RadioGroup.styles=[l.css``,c],cr([d.property({type:String})],i.RadioGroup.prototype,"twClass",2),i.RadioGroup=cr([d.customElement("rtg-radio-group")],i.RadioGroup);var ua=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,X=(n,e,r,o)=>{for(var t=o>1?void 0:o?ha(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ua(e,r,t),t};i.SelectItem=class extends l.LitElement{constructor(){super(...arguments),this.key="",this.searchText="",this.value="",this.tabindex=0,this.isSelected=!1,this.class="",this.onSelect=()=>{}}render(){return l.html`
|
3657
3842
|
<div
|
3658
3843
|
key="${this.key}"
|
3659
3844
|
class="flex items-center cursor-pointer py-2 px-4 w-full
|
@@ -3690,7 +3875,7 @@ body {
|
|
3690
3875
|
</span>
|
3691
3876
|
</div>
|
3692
3877
|
</div>
|
3693
|
-
`}},
|
3878
|
+
`}},i.SelectItem.styles=[l.css``,c],X([d.property({type:String})],i.SelectItem.prototype,"key",2),X([d.property({type:String})],i.SelectItem.prototype,"searchText",2),X([d.property({type:String})],i.SelectItem.prototype,"value",2),X([d.property({type:Number})],i.SelectItem.prototype,"tabindex",2),X([d.property({type:Boolean})],i.SelectItem.prototype,"isSelected",2),X([d.property({type:String})],i.SelectItem.prototype,"class",2),X([d.property({type:Function})],i.SelectItem.prototype,"onSelect",2),i.SelectItem=X([d.customElement("rtg-select-item")],i.SelectItem);var ma=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,Ct=(n,e,r,o)=>{for(var t=o>1?void 0:o?ga(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ma(e,r,t),t};i.SelectList=class extends l.LitElement{constructor(){super(...arguments),this.state=Re,this.isOpen=!1}render(){return l.html`
|
3694
3879
|
<div
|
3695
3880
|
class="absolute z-50 w-full max-h-72 p-1 bg-white border border-gray-200 rounded-lg overflow-hidden overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-900 dark:border-neutral-700"
|
3696
3881
|
data-hs-combo-box-output=""
|
@@ -3699,21 +3884,22 @@ body {
|
|
3699
3884
|
>
|
3700
3885
|
<slot></slot>
|
3701
3886
|
</div>
|
3702
|
-
`}},
|
3887
|
+
`}},i.SelectList.styles=[l.css``,c],Ct([d.property({attribute:"data-state",type:String})],i.SelectList.prototype,"state",2),Ct([d.state()],i.SelectList.prototype,"isOpen",2),i.SelectList=Ct([d.customElement("rtg-select-list")],i.SelectList);var ba=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,va=(n,e,r,o)=>{for(var t=o>1?void 0:o?fa(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ba(e,r,t),t};i.SelectLabel=class extends l.LitElement{render(){return l.html`
|
3703
3888
|
<span class="${u("px-2 py-1.5 text-sm font-semibold",this.className)}">
|
3704
3889
|
<slot></slot>
|
3705
3890
|
</span>
|
3706
|
-
`}},
|
3891
|
+
`}},i.SelectLabel.styles=[l.css``,c],i.SelectLabel=va([d.customElement("rtg-select-label")],i.SelectLabel);var wa=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,$t=(n,e,r,o)=>{for(var t=o>1?void 0:o?ya(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&wa(e,r,t),t};i.SelectSeperator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${i.SelectSeperator._counter++}`:this._id=`rtgcmdrxlxs${i.SelectSeperator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3707
3892
|
<div
|
3708
3893
|
class="${u("-mx-1 h-px bg-border",this.className)}"
|
3709
3894
|
rtgcmd-separator
|
3710
3895
|
role="separator"
|
3711
3896
|
id="${this.identifier}"
|
3712
3897
|
></div>
|
3713
|
-
`}`}},
|
3898
|
+
`}`}},i.SelectSeperator._counter=0,i.SelectSeperator.styles=[l.css``,c],$t([d.property({type:String})],i.SelectSeperator.prototype,"_id",2),$t([d.property({attribute:"aria-hidden",type:String})],i.SelectSeperator.prototype,"_hidden",2),i.SelectSeperator=$t([d.customElement("rtg-select-separator")],i.SelectSeperator);var xa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,Y=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ca(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&xa(e,r,t),t};i.Select=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("[data-hs-combo-box]"),o=e.target;if(!r||!r.contains(o))this.isOpen=!1;else if(!((s=o.shadowRoot)==null?void 0:s.firstElementChild))return}}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?document.addEventListener("mouseup",this.handleClickOutside):document.removeEventListener("mouseup",this.handleClickOutside))}firstUpdated(e){this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen}selectItem(e){e.stopPropagation();const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-select-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-select-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){this.toggleDropdown()}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}render(){return l.html`
|
3714
3899
|
<div class="relative" data-hs-combo-box="">
|
3715
3900
|
<div class="relative">
|
3716
3901
|
<input
|
3902
|
+
part="select-input"
|
3717
3903
|
class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
|
3718
3904
|
text-sm font-medium border border-input cursor-pointer
|
3719
3905
|
ring-offset-background
|
@@ -3735,13 +3921,14 @@ body {
|
|
3735
3921
|
data-hs-combo-box-toggle=""
|
3736
3922
|
@click="${this.toggleDropdown}"
|
3737
3923
|
>
|
3738
|
-
${
|
3924
|
+
${Yt()}
|
3739
3925
|
</div>
|
3740
3926
|
</div>
|
3741
3927
|
<div
|
3742
3928
|
class="absolute z-50 w-full max-h-72 p-1 bg-white border border-gray-200 rounded-lg overflow-hidden overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-900 dark:border-neutral-700"
|
3743
3929
|
style="display: ${this.isOpen?"block":"none"}; top:115%"
|
3744
3930
|
data-hs-combo-box-output=""
|
3931
|
+
part="select-list"
|
3745
3932
|
@keydown="${this.handleKeyDown}"
|
3746
3933
|
>
|
3747
3934
|
${this.filteredItems.length===0?l.html`
|
@@ -3771,9 +3958,17 @@ body {
|
|
3771
3958
|
`}
|
3772
3959
|
</div>
|
3773
3960
|
</div>
|
3774
|
-
`}},
|
3775
|
-
|
3961
|
+
`}},i.Select.styles=[l.css``,c],Y([d.state()],i.Select.prototype,"isOpen",2),Y([d.state()],i.Select.prototype,"selectedValue",2),Y([d.state()],i.Select.prototype,"searchTerm",2),Y([d.state()],i.Select.prototype,"focusedIndex",2),Y([d.state()],i.Select.prototype,"filteredItems",2),Y([d.property({type:String})],i.Select.prototype,"label",2),Y([d.property({type:Array})],i.Select.prototype,"items",2),i.Select=Y([d.customElement("rtg-select")],i.Select);var Ve=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(Ve||{}),$a=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,_t=(n,e,r,o)=>{for(var t=o>1?void 0:o?_a(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&$a(e,r,t),t};i.Separator=class extends y{constructor(){super(...arguments),this.orientation=Ve.HORIZONTAL,this.twClass=""}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html` <div
|
3962
|
+
part="separator"
|
3963
|
+
${x(e)}
|
3964
|
+
class=${u(this.orientation===Ve.HORIZONTAL?"shrink-0 bg-border w-full h-[1px] my-4":"shrink-0 bg-border h-full w-[1px]",this.twClass)}
|
3965
|
+
role="none"
|
3966
|
+
>
|
3967
|
+
${this.orientation!==Ve.HORIZONTAL&&" "}
|
3968
|
+
</div>`}},i.Separator.styles=[l.css``,c],_t([d.property({type:String})],i.Separator.prototype,"orientation",2),_t([d.property({type:String})],i.Separator.prototype,"twClass",2),i.Separator=_t([d.customElement("rtg-separator")],i.Separator);var Oa=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,Ue=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ea(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Oa(e,r,t),t};i.Switch=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.twClass=""}_toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked})))}render(){return l.html`
|
3969
|
+
<div class="${u("flex items-center space-x-2",this.twClass)}">
|
3776
3970
|
<div
|
3971
|
+
part="switch"
|
3777
3972
|
@click="${this._toggleChecked}"
|
3778
3973
|
data-testid="switch-atom"
|
3779
3974
|
role="switch"
|
@@ -3783,6 +3978,7 @@ body {
|
|
3783
3978
|
style="background-color:${this.checked?"#000000":"#e0e0e0"};cursor:${this.disabled?"default":""}"
|
3784
3979
|
>
|
3785
3980
|
<div
|
3981
|
+
part="switch-pointer"
|
3786
3982
|
class="pointer-events-none block h-4 w-4 rounded-full bg-background
|
3787
3983
|
shadow-lg ring-0 transition-transform"
|
3788
3984
|
style="transform: translateX(${this.checked?"16px":"0px"})"
|
@@ -3790,112 +3986,76 @@ body {
|
|
3790
3986
|
</div>
|
3791
3987
|
<slot></slot>
|
3792
3988
|
</div>
|
3793
|
-
`}},
|
3794
|
-
<
|
3795
|
-
|
3796
|
-
type="button"
|
3797
|
-
role="radio"
|
3798
|
-
aria-checked="${this.checked}"
|
3799
|
-
data-state="${this.state}"
|
3800
|
-
value="${this.value}"
|
3801
|
-
@click="${this._onClick}"
|
3802
|
-
class="aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"
|
3803
|
-
id="${this.id}"
|
3804
|
-
tabindex="${this.tabindex}"
|
3805
|
-
data-radix-collection-item=""
|
3806
|
-
>
|
3807
|
-
${this.checked?l.html`<span
|
3808
|
-
data-state="checked"
|
3809
|
-
class="flex items-center justify-center"
|
3810
|
-
>
|
3811
|
-
${Bn()}
|
3812
|
-
</span>`:l.nothing}
|
3813
|
-
</button>
|
3814
|
-
<label
|
3815
|
-
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
3816
|
-
for="${this.id}"
|
3817
|
-
>${this.value}</label
|
3818
|
-
>
|
3819
|
-
</div>
|
3820
|
-
`}},a.RadioGroupItem.styles=[l.css``,c],de([d.property({type:Boolean,reflect:!0})],a.RadioGroupItem.prototype,"checked",2),de([d.property({type:Number})],a.RadioGroupItem.prototype,"tabindex",2),de([d.property({type:String})],a.RadioGroupItem.prototype,"value",2),de([d.property({type:String})],a.RadioGroupItem.prototype,"id",2),de([d.property({attribute:"data-state",type:String})],a.RadioGroupItem.prototype,"state",2),a.RadioGroupItem=de([d.customElement("rtg-radio-group-item")],a.RadioGroupItem);var Xs=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,Hs=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ys(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Xs(e,r,t),t};a.RadioGroup=class extends l.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
3821
|
-
<div class="${u("grid gap-2",this.className)}" style="outline: none;">
|
3822
|
-
<slot></slot>
|
3823
|
-
</div>
|
3824
|
-
`}},a.RadioGroup.styles=[l.css``,c],a.RadioGroup=Hs([d.customElement("rtg-radio-group")],a.RadioGroup);var Ks=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,ct=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ws(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ks(e,r,t),t};let $e=class extends y{constructor(){super(...arguments),this.value="",this.tabindex=0,this.handleClick=n=>{n.preventDefault(),n.stopPropagation();const e=n.currentTarget;if(e instanceof HTMLDivElement){const r=e.getAttribute("value")??"";this._accordion&&this._accordion.raiseEvent(r)}}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(n){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this._accordion&&this._accordion.removeEventListener("clicked-accordion",()=>{})}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof ee);)n=n.parentElement;return n}render(){const n=this.getFilteredAttributes();return k.html`
|
3825
|
-
<div
|
3989
|
+
`}},i.Switch.styles=[l.css``,c],Ue([d.property({type:Boolean,reflect:!0})],i.Switch.prototype,"checked",2),Ue([d.property({type:Boolean})],i.Switch.prototype,"disabled",2),Ue([d.property({type:String})],i.Switch.prototype,"twClass",2),i.Switch=Ue([d.customElement("rtg-switch")],i.Switch);const Sa="flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50";var Pa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,K=(n,e,r,o)=>{for(var t=o>1?void 0:o?ka(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Pa(e,r,t),t};let I=class extends y{constructor(){super(),this.disabled=!1,this.placeholder="",this.defaultValue="",this.rows="4",this.cols="50",this.value="",this.twCLass="",this.value=this.value||this.defaultValue}firstUpdated(n){this.value=this.defaultValue}handleInputChange(n){const e=n.target;this.value=e.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}render(){const n=this.getFilteredAttributes();return l.html`
|
3990
|
+
<textarea
|
3991
|
+
part="textarea"
|
3826
3992
|
${x(n)}
|
3827
|
-
|
3828
|
-
|
3829
|
-
|
3830
|
-
|
3831
|
-
|
3832
|
-
|
3833
|
-
@
|
3834
|
-
|
3835
|
-
|
3836
|
-
|
3837
|
-
|
3838
|
-
|
3993
|
+
class="${u(Sa,this.className,this.twCLass)}"
|
3994
|
+
placeholder="${this.placeholder}"
|
3995
|
+
.value=${this.value}
|
3996
|
+
.rows="${this.rows}"
|
3997
|
+
.cols="${this.cols}"
|
3998
|
+
?disabled=${this.disabled}
|
3999
|
+
@change="${this.handleInputChange}"
|
4000
|
+
/>
|
4001
|
+
`}};I.styles=[c],K([d.property({type:Boolean})],I.prototype,"disabled",2),K([d.property({type:String})],I.prototype,"placeholder",2),K([d.property({type:String})],I.prototype,"defaultValue",2),K([d.property({type:String})],I.prototype,"rows",2),K([d.property({type:String})],I.prototype,"cols",2),K([d.property({type:String})],I.prototype,"value",2),K([d.property({type:String})],I.prototype,"twCLass",2),I=K([d.customElement("rtg-textarea")],I);const Da=A("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ma="fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",Ia="absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600";var La=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,Ot=(n,e,r,o)=>{for(var t=o>1?void 0:o?Aa(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&La(e,r,t),t};const pr="closed";let W=class extends l.LitElement{constructor(){super(...arguments),this.variant="default",this.state=pr,this.handleCloseButtonClick=n=>{n.stopPropagation(),this.state=pr,this.dispatchEvent(new CustomEvent("close-toast",{bubbles:!0,composed:!0}))}}render(){return l.html`
|
4002
|
+
${this.state==="open"?l.html`<ol
|
4003
|
+
part="toast-view-port"
|
4004
|
+
tabindex="-1"
|
4005
|
+
@click="${n=>n.stopPropagation()}"
|
4006
|
+
class="${u(Ma,this.className)}"
|
4007
|
+
>
|
4008
|
+
<li
|
4009
|
+
role="status"
|
4010
|
+
aria-live="off"
|
4011
|
+
aria-atomic="true"
|
4012
|
+
tabindex="0"
|
4013
|
+
data-state="${this.state}"
|
4014
|
+
data-swipe-direction="right"
|
4015
|
+
class="${u(W.toastVariants({variant:this.variant,className:this.className}),this.className)}"
|
4016
|
+
data-radix-collection-item=""
|
4017
|
+
style="user-select: none; touch-action: none;"
|
4018
|
+
>
|
4019
|
+
<slot></slot>
|
4020
|
+
<button
|
4021
|
+
type="button"
|
4022
|
+
class="${Ia}"
|
4023
|
+
toast-close=""
|
4024
|
+
data-radix-toast-announce-exclude=""
|
4025
|
+
@click="${n=>this.handleCloseButtonClick(n)}"
|
4026
|
+
>
|
4027
|
+
${co()}
|
4028
|
+
</button>
|
4029
|
+
</li>
|
4030
|
+
</ol>`:l.nothing}
|
4031
|
+
`}};W.toastVariants=Da,W.styles=[l.css`
|
4032
|
+
button[toast-close] {
|
4033
|
+
pointer-events: auto;
|
4034
|
+
}
|
4035
|
+
`,c],Ot([d.property({type:String})],W.prototype,"variant",2),Ot([d.property({attribute:"data-state",type:String})],W.prototype,"state",2),W=Ot([d.customElement("rtg-toast-view-port")],W);var za=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Et=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ra(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&za(e,r,t),t};let Pe=class extends l.LitElement{constructor(){super(...arguments),this.twClass="",this.isOpen=!1}onClick(){this.isOpen=!this.isOpen}connectedCallback(){super.connectedCallback(),this.addEventListener("close-toast",()=>{this.isOpen=!1})}get _content(){var r;const n=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),e=n==null?void 0:n.assignedElements();if(e){for(let o=0;o<e.length;o++)if(e[o]instanceof W)return e[o]}return null}updated(n){super.updated(n);const e=this._content;e&&(e.dataset.state=this.isOpen?"open":"closed")}render(){return l.html`
|
4036
|
+
<div class="{${this.twClass}}" part="toast">
|
3839
4037
|
<div>
|
3840
|
-
${this.
|
4038
|
+
<slot @click="${this.onClick}"></slot>
|
3841
4039
|
</div>
|
4040
|
+
<slot></slot>
|
4041
|
+
<div></div>
|
3842
4042
|
</div>
|
3843
|
-
`}}
|
4043
|
+
`}};Pe.styles=[l.css``,c],Et([d.property({type:String})],Pe.prototype,"twClass",2),Et([d.state()],Pe.prototype,"isOpen",2),Pe=Et([d.customElement("rtg-toast")],Pe);var ur=(n=>(n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg",n))(ur||{}),hr=(n=>(n.DEFAULT="default",n.OUTLINE="outline",n))(hr||{});const Ta=A("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground bg-transparent h-10 px-3",{variants:{variant:{default:" hover:bg-muted hover:text-muted-foreground",outline:" border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-9 px-2.5",md:"h-10 px-3",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"sm"}});var Ba=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,ae=(n,e,r,o)=>{for(var t=o>1?void 0:o?Na(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ba(e,r,t),t};i.Toggle=class extends y{constructor(){super(...arguments),this.disabled=!1,this.twCLass="",this.checked=!1,this.required=!1,this.variant=hr.DEFAULT,this.size=ur.SMALL}getAttributesToExclude(){return["disabled","checked","variant","size","required"]}toggle(){this.disabled||(this.checked=!this.checked)}render(){const e=this.getFilteredAttributes();return k.html`
|
3844
4044
|
<button
|
3845
|
-
${x(n)}
|
3846
4045
|
type="button"
|
3847
|
-
part="
|
3848
|
-
|
3849
|
-
|
3850
|
-
|
3851
|
-
aria-
|
3852
|
-
|
3853
|
-
|
3854
|
-
|
3855
|
-
|
3856
|
-
data-orientation="horizontal"
|
3857
|
-
data-radix-collection-item=""
|
4046
|
+
part="toggle"
|
4047
|
+
class="${u(i.Toggle.toggleVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.twCLass}"
|
4048
|
+
aria-pressed=${this.checked}
|
4049
|
+
data-state="${this.checked?"on":"off"}"
|
4050
|
+
aria-label="Toggle bold"
|
4051
|
+
@click=${this.toggle}
|
4052
|
+
?required=${this.required}
|
4053
|
+
?disabled=${this.disabled}
|
4054
|
+
${x(e)}
|
3858
4055
|
>
|
3859
4056
|
<slot></slot>
|
3860
|
-
${Tn()}
|
3861
4057
|
</button>
|
3862
|
-
`}}
|
3863
|
-
<div
|
3864
|
-
part="accordion-content"
|
3865
|
-
data-state="open"
|
3866
|
-
role="region"
|
3867
|
-
data-orientation="vertical"
|
3868
|
-
class="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
|
3869
|
-
style="
|
3870
|
-
--radix-accordion-content-height: var(--radix-collapsible-content-height);
|
3871
|
-
--radix-accordion-content-width: var(--radix-collapsible-content-width);
|
3872
|
-
--radix-collapsible-content-height: 0px;
|
3873
|
-
--radix-collapsible-content-width: 385px;"
|
3874
|
-
>
|
3875
|
-
<div class="pb-4 pt-0">
|
3876
|
-
<slot></slot>
|
3877
|
-
</div>
|
3878
|
-
</div>
|
3879
|
-
`}};Ce.styles=[k.css``,c],pt([d.property({type:String})],Ce.prototype,"value",2),pt([d.state()],Ce.prototype,"selectedValue",2),Ce=pt([d.customElement("rtg-accordion-content")],Ce);var pe=(n=>(n.MULTIPLE="multiple",n.SINGLE="single",n))(pe||{}),ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ut=(n,e,r,o)=>{for(var t=o>1?void 0:o?ti(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ei(e,r,t),t};let ee=class extends y{constructor(){super(...arguments),this.twCLass="",this.type=pe.MULTIPLE,this.selectedItems=[]}getAttributesToExclude(){return["variant"]}connectedCallback(){var n;super.connectedCallback(),(n=this.shadowRoot)==null||n.addEventListener("clicked-accordion",()=>{})}disconnectedCallback(){super.disconnectedCallback()}setSelectedItems(n){const e=this.selectedItems.indexOf(n);if(e>-1)if(this.type===pe.SINGLE)this.selectedItems=[];else if(this.type===pe.MULTIPLE)this.selectedItems.splice(e,1);else throw new Error("Type does not correct");else if(this.type===pe.SINGLE)this.selectedItems[0]=n;else if(this.type===pe.MULTIPLE)this.selectedItems.push(n);else throw new Error("Type does not correct")}raiseEvent(n){this.setSelectedItems(n);const e=new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}});this.dispatchEvent(e)}render(){const n=this.getFilteredAttributes();return l.html`
|
3880
|
-
<div
|
3881
|
-
data-orientation="vertical"
|
3882
|
-
${x(n)}
|
3883
|
-
part="accordion"
|
3884
|
-
class="${this.twCLass}"
|
3885
|
-
>
|
3886
|
-
<slot name="accordion-item"></slot>
|
3887
|
-
</div>
|
3888
|
-
`}};ee.styles=[l.css``,c],ut([d.property({type:String})],ee.prototype,"twCLass",2),ut([d.property({type:String})],ee.prototype,"type",2),ee=ut([d.customElement("rtg-accordion")],ee);var ht=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(ht||{}),ri=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,tr=(n,e,r,o)=>{for(var t=o>1?void 0:o?oi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ri(e,r,t),t};a.Separator=class extends y{constructor(){super(...arguments),this.orientation=ht.HORIZONTAL}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return this.orientation===ht.HORIZONTAL?l.html` <div
|
3889
|
-
${x(e)}
|
3890
|
-
class="${u("shrink-0 bg-border w-full h-[1px] my-4",this.className)}"
|
3891
|
-
role="none"
|
3892
|
-
></div>`:(console.log("elseee "),l.html` <div
|
3893
|
-
${x(e)}
|
3894
|
-
class="${u("shrink-0 bg-border h-full w-[1px]",this.className)}"
|
3895
|
-
role="none"
|
3896
|
-
>
|
3897
|
-
 
|
3898
|
-
</div>`)}},a.Separator.styles=[l.css``,c],tr([d.property({type:String})],a.Separator.prototype,"orientation",2),a.Separator=tr([d.customElement("rtg-separator")],a.Separator);const ni=N("inline-flex items-center justify-center rounded-sm text-sm font-medium ",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}});var si=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ue=(n,e,r,o)=>{for(var t=o>1?void 0:o?ii(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&si(e,r,t),t};let z=class extends l.LitElement{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.isCustomClass=!1,this.variant="default",this.size="default"}render(){return l.html`
|
4058
|
+
`}},i.Toggle.styles=[c],i.Toggle.toggleVariants=Ta,ae([d.property({type:Boolean})],i.Toggle.prototype,"disabled",2),ae([d.property({type:String})],i.Toggle.prototype,"twCLass",2),ae([d.property({attribute:!0,type:Boolean,reflect:!0})],i.Toggle.prototype,"checked",2),ae([d.property({attribute:!0,type:Boolean,reflect:!0})],i.Toggle.prototype,"required",2),ae([d.property({attribute:!0,type:String})],i.Toggle.prototype,"variant",2),ae([d.property({attribute:!0,type:String})],i.Toggle.prototype,"size",2),i.Toggle=ae([d.customElement("rtg-toggle")],i.Toggle);const Fa=A("inline-flex items-center justify-center rounded-sm text-sm font-medium ",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}});var qa=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,be=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ga(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&qa(e,r,t),t};let T=class extends l.LitElement{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.isCustomClass=!1,this.variant="default",this.size="default"}render(){return l.html`
|
3899
4059
|
<div class="${this.className}">
|
3900
4060
|
<rtg-card class="rounded block w-96" data-testid="card-id">
|
3901
4061
|
<cardheader data-testid="card-header-id">
|
@@ -4030,7 +4190,7 @@ body {
|
|
4030
4190
|
</cardfooter>
|
4031
4191
|
</rtg-card>
|
4032
4192
|
</div>
|
4033
|
-
`}};
|
4193
|
+
`}};T.buttonVariants=Fa,T.styles=[c,l.css`
|
4034
4194
|
:host {
|
4035
4195
|
--rtg-sample-demo-bg: unset;
|
4036
4196
|
--rtg-sample-demo-color: unset;
|
@@ -4043,63 +4203,14 @@ body {
|
|
4043
4203
|
border-radius: var(--rtg-sample-demo-radius);
|
4044
4204
|
height: var(--rtg-sample-demo-height);
|
4045
4205
|
}
|
4046
|
-
`],
|
4047
|
-
<div
|
4048
|
-
@click=${this.onTrigger}
|
4049
|
-
${x(n)}
|
4050
|
-
part="collapsible-trigger"
|
4051
|
-
>
|
4052
|
-
<slot></slot>
|
4053
|
-
</div>
|
4054
|
-
`}};mt.styles=[l.css``,c],mt=di([d.customElement("rtg-collapsible-trigger")],mt);var ci=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,ui=(n,e,r,o)=>{for(var t=o>1?void 0:o?pi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ci(e,r,t),t};let gt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4055
|
-
<div
|
4056
|
-
${x(n)}
|
4057
|
-
class="${this.className}"
|
4058
|
-
style="--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
|
4059
|
-
part="collapsible-content"
|
4060
|
-
>
|
4061
|
-
<slot></slot>
|
4062
|
-
</div>
|
4063
|
-
`}};gt.styles=[l.css``,c],gt=ui([d.customElement("rtg-collapsible-content")],gt);var hi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,Re=(n,e,r,o)=>{for(var t=o>1?void 0:o?mi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&hi(e,r,t),t};let te=class extends y{constructor(){super(...arguments),this.open=!1,this.onOpenChange=()=>{},this.twCLass=""}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4064
|
-
<div
|
4065
|
-
data-state="${this.open?"open":"closed"}"
|
4066
|
-
${x(n)}
|
4067
|
-
class="${this.twCLass}"
|
4068
|
-
part="collapsible"
|
4069
|
-
>
|
4070
|
-
<slot></slot>
|
4071
|
-
${this.open?l.html`<slot name="collapsible-content"></slot>`:l.nothing}
|
4072
|
-
</div>
|
4073
|
-
`}};te.styles=[l.css``,c],Re([d.property({type:Boolean})],te.prototype,"open",2),Re([d.property({type:Function})],te.prototype,"onOpenChange",2),Re([d.property({type:String})],te.prototype,"twCLass",2),te=Re([d.customElement("rtg-collapsible")],te);var gi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,bt=(n,e,r,o)=>{for(var t=o>1?void 0:o?bi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&gi(e,r,t),t};a.AspectRatio=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.ratio=16/9}render(){const e=1/this.ratio*100;return l.html`
|
4074
|
-
<div
|
4075
|
-
class="${u("aspect-ratio-wrapper bg-muted",this.className,this.twCLass)} "
|
4076
|
-
style="padding-top: ${e}%;"
|
4077
|
-
part="aspect-ratio"
|
4078
|
-
>
|
4079
|
-
<div class="aspect-ratio-inner">
|
4080
|
-
<slot></slot>
|
4081
|
-
</div>
|
4082
|
-
</div>
|
4083
|
-
`}},a.AspectRatio.styles=[l.css`
|
4084
|
-
.aspect-ratio-wrapper {
|
4085
|
-
position: relative;
|
4086
|
-
width: 100%;
|
4087
|
-
overflow: hidden;
|
4088
|
-
}
|
4089
|
-
.aspect-ratio-inner {
|
4090
|
-
position: absolute;
|
4091
|
-
top: 0;
|
4092
|
-
left: 0;
|
4093
|
-
width: 100%;
|
4094
|
-
height: 100%;
|
4095
|
-
}
|
4096
|
-
`,c],bt([d.property({type:String})],a.AspectRatio.prototype,"twCLass",2),bt([d.property({type:Number})],a.AspectRatio.prototype,"ratio",2),a.AspectRatio=bt([d.customElement("rtg-aspect-ratio")],a.AspectRatio);const fi="inline-flex items-center gap-1.5",vi="transition-colors hover:text-foreground",wi="font-normal text-foreground",yi="[&>svg]:size-3.5",xi="flex h-9 w-9 items-center justify-center",$i="flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";var Ci=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,Oi=(n,e,r,o)=>{for(var t=o>1?void 0:o?_i(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ci(e,r,t),t};let ft=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4206
|
+
`],be([d.property({type:Function})],T.prototype,"click",2),be([d.property({type:Boolean})],T.prototype,"disabled",2),be([d.property({type:String})],T.prototype,"isCustomClass",2),be([d.property({type:String})],T.prototype,"variant",2),be([d.property({type:String})],T.prototype,"size",2),T=be([d.customElement("rtg-sample-demo")],T);const Va="inline-flex items-center gap-1.5",Ua="transition-colors hover:text-foreground",Ha="font-normal text-foreground",Xa="[&>svg]:size-3.5",Ya="flex h-9 w-9 items-center justify-center",Ka="flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";var Wa=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Ja=(n,e,r,o)=>{for(var t=o>1?void 0:o?Za(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Wa(e,r,t),t};let St=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4097
4207
|
<span
|
4208
|
+
${x(n)}
|
4098
4209
|
id="rtg-bread-crumb-ellipsis"
|
4099
4210
|
role="presentation"
|
4100
4211
|
aria-hidden="true"
|
4101
|
-
class="${u(
|
4102
|
-
|
4212
|
+
class="${u(Ya,this.className)}"
|
4213
|
+
part="breadcrumb-ellipsis"
|
4103
4214
|
>
|
4104
4215
|
<svg
|
4105
4216
|
fill="#000000"
|
@@ -4114,29 +4225,33 @@ body {
|
|
4114
4225
|
/>
|
4115
4226
|
</svg>
|
4116
4227
|
</span>
|
4117
|
-
`}};
|
4228
|
+
`}};St.styles=[l.css``,c],St=Ja([d.customElement("rtg-bread-crumb-ellipsis")],St);var Qa=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,ei=(n,e,r,o)=>{for(var t=o>1?void 0:o?ja(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Qa(e,r,t),t};let Pt=class extends y{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
|
4118
4229
|
<li
|
4119
4230
|
${x(n)}
|
4120
4231
|
id="rtg-bread-crumb-item"
|
4121
|
-
class="${u(
|
4232
|
+
class="${u(Va,this.className)}"
|
4233
|
+
part="breadcrumb-item"
|
4122
4234
|
>
|
4123
4235
|
<slot></slot>
|
4124
4236
|
</li>
|
4125
|
-
`}};
|
4237
|
+
`}};Pt.styles=[l.css``,c],Pt=ei([d.customElement("rtg-bread-crumb-item")],Pt);var ti=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,oi=(n,e,r,o)=>{for(var t=o>1?void 0:o?ri(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ti(e,r,t),t};let kt=class extends y{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
|
4126
4238
|
<ol
|
4127
4239
|
${x(n)}
|
4128
4240
|
id="rtg-bread-crumb-list"
|
4129
|
-
class="${u(
|
4241
|
+
class="${u(Ka,this.className)}"
|
4242
|
+
part="breadcrumb-list"
|
4130
4243
|
>
|
4131
4244
|
<slot></slot>
|
4132
4245
|
</ol>
|
4133
|
-
`}};
|
4246
|
+
`}};kt.styles=[l.css``,c],kt=oi([d.customElement("rtg-bread-crumb-list")],kt);var ni=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ai=(n,e,r,o)=>{for(var t=o>1?void 0:o?si(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ni(e,r,t),t};let Dt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4134
4247
|
<li
|
4135
4248
|
${x(n)}
|
4136
4249
|
id="rtg-bread-crumb-separator"
|
4137
4250
|
role="presentation"
|
4138
4251
|
aria-hidden="true"
|
4139
|
-
class="${u(
|
4252
|
+
class="${u(Xa,this.className)}"
|
4253
|
+
part="breadcrumb-separator"
|
4254
|
+
|
4140
4255
|
>
|
4141
4256
|
<svg
|
4142
4257
|
xmlns="http://www.w3.org/2000/svg"
|
@@ -4153,34 +4268,37 @@ body {
|
|
4153
4268
|
<path d="M22 2 2 22"></path>
|
4154
4269
|
</svg>
|
4155
4270
|
</div>
|
4156
|
-
`}};
|
4271
|
+
`}};Dt.styles=[l.css``,c],Dt=ai([d.customElement("rtg-bread-crumb-separator")],Dt);var ii=Object.defineProperty,li=Object.getOwnPropertyDescriptor,di=(n,e,r,o)=>{for(var t=o>1?void 0:o?li(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ii(e,r,t),t};let Mt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4157
4272
|
<nav
|
4158
4273
|
${x(n)}
|
4274
|
+
part="breadcrumb"
|
4159
4275
|
class="${u(this.className)}"
|
4160
4276
|
aria-label="breadcrumb"
|
4161
4277
|
>
|
4162
4278
|
<slot></slot>
|
4163
4279
|
</nav>
|
4164
|
-
`}};
|
4280
|
+
`}};Mt.styles=[l.css``,c],Mt=di([d.customElement("rtg-bread-crumb")],Mt);var ci=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,ui=(n,e,r,o)=>{for(var t=o>1?void 0:o?pi(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ci(e,r,t),t};let It=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4165
4281
|
<span
|
4166
4282
|
${x(n)}
|
4167
4283
|
id="rtg-bread-crumb-text"
|
4168
4284
|
aria-disabled="true"
|
4169
4285
|
aria-current="page"
|
4170
|
-
class="${u(
|
4286
|
+
class="${u(Ha,this.className)}"
|
4287
|
+
part="breadcrumb-text"
|
4171
4288
|
>
|
4172
4289
|
<slot></slot>
|
4173
4290
|
</span>
|
4174
|
-
`}}
|
4291
|
+
`}};It.styles=[l.css``,c],It=ui([d.customElement("rtg-bread-crumb-text")],It);var hi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,mr=(n,e,r,o)=>{for(var t=o>1?void 0:o?mi(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&hi(e,r,t),t};let He=class extends y{constructor(){super(...arguments),this.href="/"}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4175
4292
|
<a
|
4176
4293
|
${x(n)}
|
4177
4294
|
id="rtg-bread-crumb-link"
|
4178
|
-
class="${u(
|
4295
|
+
class="${u(Ua,this.className)}"
|
4179
4296
|
href="${this.href}"
|
4297
|
+
part="breadcrumb-link"
|
4180
4298
|
>
|
4181
4299
|
<slot></slot>
|
4182
4300
|
</a>
|
4183
|
-
`}};
|
4301
|
+
`}};He.styles=[l.css``,c],mr([d.property({type:String})],He.prototype,"href",2),He=mr([d.customElement("rtg-bread-crumb-link")],He);var gi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,Xe=(n,e,r,o)=>{for(var t=o>1?void 0:o?bi(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&gi(e,r,t),t};let ie=class extends y{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}raiseEvent(n,e="changes",r=1/0){const o=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:n,eventType:e,customIndex:r}});this.dispatchEvent(o)}render(){return l.html` <slot part="input-otp" class="flex items-center"></slot> `}};ie.styles=[l.css``,c],Xe([d.property()],ie.prototype,"maxLength",2),Xe([d.property()],ie.prototype,"onChange",2),Xe([d.property()],ie.prototype,"pin",2),ie=Xe([d.customElement("rtg-input-otp")],ie);var fi=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,gr=(n,e,r,o)=>{for(var t=o>1?void 0:o?vi(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&fi(e,r,t),t};let Ye=class extends y{constructor(){super(...arguments),this.click=()=>{},this.childrenArray=[]}getAttributesToExclude(){return[]}firstUpdated(n){super.firstUpdated(n),this.childrenArray=Array.from(this.children),this.childrenArray.forEach((e,r)=>{e.isFirst=r===0,e.isLast=r===this.childrenArray.length-1}),this.requestUpdate()}render(){return l.html` <slot part="input-otp-group" class="flex"></slot> `}};Ye.styles=[l.css``,c],gr([d.property({type:Function})],Ye.prototype,"click",2),Ye=gr([d.customElement("rtg-input-otp-group")],Ye);var wi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,br=(n,e,r,o)=>{for(var t=o>1?void 0:o?yi(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&wi(e,r,t),t};let Ke=class extends l.LitElement{constructor(){super(...arguments),this.index=0}render(){return l.html` <div role="separator">${po()}</div> `}};Ke.styles=[l.css``,c],br([d.property({type:Number})],Ke.prototype,"index",2),Ke=br([d.customElement("rtg-input-otp-separator")],Ke);var xi=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,fe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ci(e,r):e,s=n.length-1,a;s>=0;s--)(a=n[s])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&xi(e,r,t),t};let Z=class extends y{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let n=this.parentElement;for(;n&&!(n instanceof ie);)n=n.parentElement;return n}connectedCallback(){super.connectedCallback()}firstUpdated(n){const e=this._inputOtp;e&&(e.inputes.push({index:e.inputes.length,value:"",isSelected:!1,userIndex:this.index}),e.addEventListener("selected-input",r=>{console.log("event",r.detail);const o=this.shadowRoot.querySelector(`input[name="input-${r.detail.selectedItems}"]`);o&&(o.focus(),r.detail.eventType==="changes"&&(o.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(n){const e=n.target,r=this._inputOtp;if(r&&!e.value){let o=r.inputes.reduce((t,s,a)=>s.value!==""?a:t,-1);console.log("inputOtpInstance lastIndex",o),console.log("inputOtpInstance.inputes",r.inputes[o]),o+1===r.maxLength?r.raiseEvent(o,"focus"):r.raiseEvent(++o,"focus")}}handleInputChange(n){const e=n.target;if(new RegExp(/^\d+$/).test(e.value)){const o=this._inputOtp;if(o){let t=o.inputes.findIndex(s=>s.index===this.index);o.inputes[t]={...o.inputes[t],value:e.value,isSelected:!1},o.inputes.length!==t+1&&o.raiseEvent(++t,"changes")}}else e.value=""}handleKeyDown(n){const e=n.target;if(n.key==="Backspace"){console.log("backspace");const r=this._inputOtp;if(r){let o=r.inputes.findIndex(t=>t.index===this.index);r.inputes[o]={...r.inputes[o],value:""},o+1===r.maxLength&&e.value?r.raiseEvent(o,"changes"):r.raiseEvent(--o,"changes")}}}render(){const n={"h-[40px]":!0,"w-[40px]":!0,"text-center relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all":!0,"first:rounded-l-md first:border-l":this.isFirst,"last:rounded-r-md":this.isLast,"overflow-hidden":!0," focus:border focus:border-[#c1c1c1] focus:border-[3px]":!0};return l.html`
|
4184
4302
|
<input
|
4185
4303
|
part="input-otp-slot"
|
4186
4304
|
autocomplete="one-time-code"
|
@@ -4196,4 +4314,4 @@ body {
|
|
4196
4314
|
style="outline: none"
|
4197
4315
|
class=${Object.entries(n).map(([e,r])=>r?e:void 0).join(" ")}
|
4198
4316
|
/>
|
4199
|
-
`}};
|
4317
|
+
`}};Z.styles=[l.css``,c],fe([d.property({type:Function})],Z.prototype,"click",2),fe([d.property({type:Number})],Z.prototype,"index",2),fe([d.property({type:Boolean})],Z.prototype,"isFirst",2),fe([d.property({type:Boolean})],Z.prototype,"isLast",2),fe([d.property({type:String})],Z.prototype,"value",2),Z=fe([d.customElement("rtg-input-otp-slot")],Z),Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|