revotech-ui-kit 0.0.47 → 0.0.49
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 +312 -210
- package/dist/revotech-ui-kit.umd.cjs +161 -59
- 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-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):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.litElement,a.html_js,a.directive_js,a.asyncDirective_js))})(this,function(a,l,d,D,Fr,at,Vr){"use strict";function jt(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=jt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function Ur(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=jt(n))&&(o&&(o+=" "),o+=e);return o}const lt="-",Hr=n=>{const e=Yr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const u=i.split(lt);return u[0]===""&&u.length!==1&&u.shift(),er(u,e)||Xr(i)},getConflictingClassGroupIds:(i,u)=>{const v=r[i]||[];return u&&o[i]?[...v,...o[i]]:v}}},er=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?er(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(lt);return(i=e.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},tr=/^\[(.+)\]$/,Xr=n=>{if(tr.test(n)){const e=tr.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Yr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return Wr(Object.entries(n.classGroups),r).forEach(([s,i])=>{dt(i,o,s,e)}),o},dt=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:rr(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(Kr(t)){dt(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{dt(i,rr(e,s),r,o)})})},rr=(n,e)=>{let r=n;return e.split(lt).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Kr=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,u])=>[e+i,u])):s);return[r,t]}):n,Zr=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)}}},or="!",Jr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=u=>{const v=[];let m=0,g=0,$;for(let w=0;w<u.length;w++){let O=u[w];if(m===0){if(O===t&&(o||u.slice(w,w+s)===e)){v.push(u.slice(g,w)),g=w+s;continue}if(O==="/"){$=w;continue}}O==="["?m++:O==="]"&&m--}const _=v.length===0?u:u.substring(g),M=_.startsWith(or),P=M?_.substring(1):_,C=$&&$>g?$-g:void 0;return{modifiers:v,hasImportantModifier:M,baseClassName:P,maybePostfixModifierPosition:C}};return r?u=>r({className:u,parseClassName:i}):i},Qr=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},jr=n=>({cache:Zr(n.cacheSize),parseClassName:Jr(n),...Hr(n)}),eo=/\s+/,to=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(eo);let u="";for(let v=i.length-1;v>=0;v-=1){const m=i[v],{modifiers:g,hasImportantModifier:$,baseClassName:_,maybePostfixModifierPosition:M}=r(m);let P=!!M,C=o(P?_.substring(0,M):_);if(!C){if(!P){u=m+(u.length>0?" "+u:u);continue}if(C=o(_),!C){u=m+(u.length>0?" "+u:u);continue}P=!1}const w=Qr(g).join(":"),O=$?w+or:w,S=O+C;if(s.includes(S))continue;s.push(S);const Ae=t(C,P);for(let ce=0;ce<Ae.length;++ce){const nt=Ae[ce];s.push(O+nt)}u=m+(u.length>0?" "+u:u)}return u};function ro(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=nr(e))&&(o&&(o+=" "),o+=r);return o}const nr=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=nr(n[o]))&&(r&&(r+=" "),r+=e);return r};function oo(n,...e){let r,o,t,s=i;function i(v){const m=e.reduce((g,$)=>$(g),n());return r=jr(m),o=r.cache.get,t=r.cache.set,s=u,u(v)}function u(v){const m=o(v);if(m)return m;const g=to(v,r);return t(v,g),g}return function(){return s(ro.apply(null,arguments))}}const f=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},sr=/^\[(?:([a-z-]+):)?(.+)\]$/i,no=/^\d+\/\d+$/,so=new Set(["px","full","screen"]),io=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ao=/\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$/,lo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,co=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=n=>ue(n)||so.has(n)||no.test(n),G=n=>pe(n,"length",wo),ue=n=>!!n&&!Number.isNaN(Number(n)),ct=n=>pe(n,"number",ue),ye=n=>!!n&&Number.isInteger(Number(n)),po=n=>n.endsWith("%")&&ue(n.slice(0,-1)),h=n=>sr.test(n),F=n=>io.test(n),ho=new Set(["length","size","percentage"]),mo=n=>pe(n,ho,ir),go=n=>pe(n,"position",ir),fo=new Set(["image","url"]),bo=n=>pe(n,fo,xo),vo=n=>pe(n,"",yo),xe=()=>!0,pe=(n,e,r)=>{const o=sr.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},wo=n=>ao.test(n)&&!lo.test(n),ir=()=>!1,yo=n=>co.test(n),xo=n=>uo.test(n),Co=oo(()=>{const n=f("colors"),e=f("spacing"),r=f("blur"),o=f("brightness"),t=f("borderColor"),s=f("borderRadius"),i=f("borderSpacing"),u=f("borderWidth"),v=f("contrast"),m=f("grayscale"),g=f("hueRotate"),$=f("invert"),_=f("gap"),M=f("gradientColorStops"),P=f("gradientColorStopPositions"),C=f("inset"),w=f("margin"),O=f("opacity"),S=f("padding"),Ae=f("saturate"),ce=f("scale"),nt=f("sepia"),Rr=f("skew"),zr=f("space"),Br=f("translate"),Wt=()=>["auto","contain","none"],Zt=()=>["auto","hidden","clip","visible","scroll"],Jt=()=>["auto",h,e],y=()=>[h,e],Tr=()=>["",R,G],st=()=>["auto",ue,h],qr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],it=()=>["solid","dashed","dotted","double","none"],Nr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Qt=()=>["start","end","center","between","around","evenly","stretch"],Re=()=>["","0",h],Gr=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[ue,h];return{cacheSize:500,separator:":",theme:{colors:[xe],spacing:[R,G],blur:["none","",F,h],brightness:N(),borderColor:[n],borderRadius:["none","","full",F,h],borderSpacing:y(),borderWidth:Tr(),contrast:N(),grayscale:Re(),hueRotate:N(),invert:Re(),gap:y(),gradientColorStops:[n],gradientColorStopPositions:[po,G],inset:Jt(),margin:Jt(),opacity:N(),padding:y(),saturate:N(),scale:N(),sepia:Re(),skew:N(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Gr()}],"break-before":[{"break-before":Gr()}],"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:[...qr(),h]}],overflow:[{overflow:Zt()}],"overflow-x":[{"overflow-x":Zt()}],"overflow-y":[{"overflow-y":Zt()}],overscroll:[{overscroll:Wt()}],"overscroll-x":[{"overscroll-x":Wt()}],"overscroll-y":[{"overscroll-y":Wt()}],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",ye,h]}],basis:[{basis:Jt()}],"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:Re()}],shrink:[{shrink:Re()}],order:[{order:["first","last","none",ye,h]}],"grid-cols":[{"grid-cols":[xe]}],"col-start-end":[{col:["auto",{span:["full",ye,h]},h]}],"col-start":[{"col-start":st()}],"col-end":[{"col-end":st()}],"grid-rows":[{"grid-rows":[xe]}],"row-start-end":[{row:["auto",{span:[ye,h]},h]}],"row-start":[{"row-start":st()}],"row-end":[{"row-end":st()}],"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",...Qt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Qt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Qt(),"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:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[zr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[zr]}],"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,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ct]}],"font-family":[{font:[xe]}],"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",ue,ct]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,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:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,G]}],"underline-offset":[{"underline-offset":["auto",R,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:y()}],"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:[...qr(),go]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bo]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],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:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...it(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:it()}],"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:["",...it()]}],"outline-offset":[{"outline-offset":[R,h]}],"outline-w":[{outline:[R,G]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Tr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[R,G]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",F,vo]}],"shadow-color":[{shadow:[xe]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...Nr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Nr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",F,h]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[$]}],saturate:[{saturate:[Ae]}],sepia:[{sepia:[nt]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"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":[Ae]}],"backdrop-sepia":[{"backdrop-sepia":[nt]}],"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:N()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ce]}],"scale-x":[{"scale-x":[ce]}],"scale-y":[{"scale-y":[ce]}],rotate:[{rotate:[ye,h]}],"translate-x":[{"translate-x":[Br]}],"translate-y":[{"translate-y":[Br]}],"skew-x":[{"skew-x":[Rr]}],"skew-y":[{"skew-y":[Rr]}],"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":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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:[R,G,ct]}],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 p(...n){return Co(Ur(n))}class b 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(u=>this.isCustomPropertySet(u))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}function ar(){const n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const o=(n+Math.random()*16)%16|0;return(r=="x"?o:o&3|8).toString(16)})}const c=l.css` @font-face {
|
1
|
+
(function(a,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):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.litElement,a.html_js,a.directive_js,a.asyncDirective_js))})(this,function(a,l,d,k,Fr,at,Vr){"use strict";function jt(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=jt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function Ur(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=jt(n))&&(o&&(o+=" "),o+=e);return o}const lt="-",Hr=n=>{const e=Yr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const u=i.split(lt);return u[0]===""&&u.length!==1&&u.shift(),er(u,e)||Xr(i)},getConflictingClassGroupIds:(i,u)=>{const b=r[i]||[];return u&&o[i]?[...b,...o[i]]:b}}},er=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?er(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(lt);return(i=e.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},tr=/^\[(.+)\]$/,Xr=n=>{if(tr.test(n)){const e=tr.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Yr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return Wr(Object.entries(n.classGroups),r).forEach(([s,i])=>{dt(i,o,s,e)}),o},dt=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:rr(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(Kr(t)){dt(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{dt(i,rr(e,s),r,o)})})},rr=(n,e)=>{let r=n;return e.split(lt).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Kr=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,u])=>[e+i,u])):s);return[r,t]}):n,Zr=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)}}},or="!",Jr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=u=>{const b=[];let m=0,g=0,$;for(let w=0;w<u.length;w++){let O=u[w];if(m===0){if(O===t&&(o||u.slice(w,w+s)===e)){b.push(u.slice(g,w)),g=w+s;continue}if(O==="/"){$=w;continue}}O==="["?m++:O==="]"&&m--}const _=b.length===0?u:u.substring(g),M=_.startsWith(or),P=M?_.substring(1):_,C=$&&$>g?$-g:void 0;return{modifiers:b,hasImportantModifier:M,baseClassName:P,maybePostfixModifierPosition:C}};return r?u=>r({className:u,parseClassName:i}):i},Qr=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},jr=n=>({cache:Zr(n.cacheSize),parseClassName:Jr(n),...Hr(n)}),eo=/\s+/,to=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(eo);let u="";for(let b=i.length-1;b>=0;b-=1){const m=i[b],{modifiers:g,hasImportantModifier:$,baseClassName:_,maybePostfixModifierPosition:M}=r(m);let P=!!M,C=o(P?_.substring(0,M):_);if(!C){if(!P){u=m+(u.length>0?" "+u:u);continue}if(C=o(_),!C){u=m+(u.length>0?" "+u:u);continue}P=!1}const w=Qr(g).join(":"),O=$?w+or:w,S=O+C;if(s.includes(S))continue;s.push(S);const Ae=t(C,P);for(let ce=0;ce<Ae.length;++ce){const nt=Ae[ce];s.push(O+nt)}u=m+(u.length>0?" "+u:u)}return u};function ro(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=nr(e))&&(o&&(o+=" "),o+=r);return o}const nr=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=nr(n[o]))&&(r&&(r+=" "),r+=e);return r};function oo(n,...e){let r,o,t,s=i;function i(b){const m=e.reduce((g,$)=>$(g),n());return r=jr(m),o=r.cache.get,t=r.cache.set,s=u,u(b)}function u(b){const m=o(b);if(m)return m;const g=to(b,r);return t(b,g),g}return function(){return s(ro.apply(null,arguments))}}const f=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},sr=/^\[(?:([a-z-]+):)?(.+)\]$/i,no=/^\d+\/\d+$/,so=new Set(["px","full","screen"]),io=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ao=/\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$/,lo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,co=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=n=>ue(n)||so.has(n)||no.test(n),G=n=>pe(n,"length",wo),ue=n=>!!n&&!Number.isNaN(Number(n)),ct=n=>pe(n,"number",ue),ye=n=>!!n&&Number.isInteger(Number(n)),po=n=>n.endsWith("%")&&ue(n.slice(0,-1)),h=n=>sr.test(n),F=n=>io.test(n),ho=new Set(["length","size","percentage"]),mo=n=>pe(n,ho,ir),go=n=>pe(n,"position",ir),fo=new Set(["image","url"]),vo=n=>pe(n,fo,xo),bo=n=>pe(n,"",yo),xe=()=>!0,pe=(n,e,r)=>{const o=sr.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},wo=n=>ao.test(n)&&!lo.test(n),ir=()=>!1,yo=n=>co.test(n),xo=n=>uo.test(n),Co=oo(()=>{const n=f("colors"),e=f("spacing"),r=f("blur"),o=f("brightness"),t=f("borderColor"),s=f("borderRadius"),i=f("borderSpacing"),u=f("borderWidth"),b=f("contrast"),m=f("grayscale"),g=f("hueRotate"),$=f("invert"),_=f("gap"),M=f("gradientColorStops"),P=f("gradientColorStopPositions"),C=f("inset"),w=f("margin"),O=f("opacity"),S=f("padding"),Ae=f("saturate"),ce=f("scale"),nt=f("sepia"),Rr=f("skew"),zr=f("space"),Br=f("translate"),Wt=()=>["auto","contain","none"],Zt=()=>["auto","hidden","clip","visible","scroll"],Jt=()=>["auto",h,e],y=()=>[h,e],Tr=()=>["",R,G],st=()=>["auto",ue,h],qr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],it=()=>["solid","dashed","dotted","double","none"],Nr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Qt=()=>["start","end","center","between","around","evenly","stretch"],Re=()=>["","0",h],Gr=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[ue,h];return{cacheSize:500,separator:":",theme:{colors:[xe],spacing:[R,G],blur:["none","",F,h],brightness:N(),borderColor:[n],borderRadius:["none","","full",F,h],borderSpacing:y(),borderWidth:Tr(),contrast:N(),grayscale:Re(),hueRotate:N(),invert:Re(),gap:y(),gradientColorStops:[n],gradientColorStopPositions:[po,G],inset:Jt(),margin:Jt(),opacity:N(),padding:y(),saturate:N(),scale:N(),sepia:Re(),skew:N(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Gr()}],"break-before":[{"break-before":Gr()}],"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:[...qr(),h]}],overflow:[{overflow:Zt()}],"overflow-x":[{"overflow-x":Zt()}],"overflow-y":[{"overflow-y":Zt()}],overscroll:[{overscroll:Wt()}],"overscroll-x":[{"overscroll-x":Wt()}],"overscroll-y":[{"overscroll-y":Wt()}],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",ye,h]}],basis:[{basis:Jt()}],"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:Re()}],shrink:[{shrink:Re()}],order:[{order:["first","last","none",ye,h]}],"grid-cols":[{"grid-cols":[xe]}],"col-start-end":[{col:["auto",{span:["full",ye,h]},h]}],"col-start":[{"col-start":st()}],"col-end":[{"col-end":st()}],"grid-rows":[{"grid-rows":[xe]}],"row-start-end":[{row:["auto",{span:[ye,h]},h]}],"row-start":[{"row-start":st()}],"row-end":[{"row-end":st()}],"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",...Qt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Qt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Qt(),"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:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[zr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[zr]}],"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,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ct]}],"font-family":[{font:[xe]}],"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",ue,ct]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,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:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,G]}],"underline-offset":[{"underline-offset":["auto",R,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:y()}],"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:[...qr(),go]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vo]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],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:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...it(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:it()}],"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:["",...it()]}],"outline-offset":[{"outline-offset":[R,h]}],"outline-w":[{outline:[R,G]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Tr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[R,G]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",F,bo]}],"shadow-color":[{shadow:[xe]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...Nr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Nr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",F,h]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[$]}],saturate:[{saturate:[Ae]}],sepia:[{sepia:[nt]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"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":[Ae]}],"backdrop-sepia":[{"backdrop-sepia":[nt]}],"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:N()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ce]}],"scale-x":[{"scale-x":[ce]}],"scale-y":[{"scale-y":[ce]}],rotate:[{rotate:[ye,h]}],"translate-x":[{"translate-x":[Br]}],"translate-y":[{"translate-y":[Br]}],"skew-x":[{"skew-x":[Rr]}],"skew-y":[{"skew-y":[Rr]}],"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":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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:[R,G,ct]}],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 p(...n){return Co(Ur(n))}class v 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(u=>this.isCustomPropertySet(u))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}function ar(){const n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const o=(n+Math.random()*16)%16|0;return(r=="x"?o:o&3|8).toString(16)})}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');
|
@@ -2833,7 +2833,7 @@ body {
|
|
2833
2833
|
.\\[\\&_svg\\]\\:shrink-0 svg {
|
2834
2834
|
flex-shrink: 0;
|
2835
2835
|
}
|
2836
|
-
`;class lr extends Vr.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return Fr.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)}}at.directive(lr);class dr extends lr{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)}}}at.directive(dr);class $o extends dr{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 i=t.slice(1);switch(t[0]){case"@":this.eventData[i]=s,this.applyEvent(i,s);break;case".":o[i]=s;break;case"?":s?o.setAttribute(i,""):o.removeAttribute(i);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=at.directive($o);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,ut=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(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&&_o(e,r,t),t};let Z=class extends
|
2836
|
+
`;class lr extends Vr.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return Fr.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)}}at.directive(lr);class dr extends lr{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)}}}at.directive(dr);class $o extends dr{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 i=t.slice(1);switch(t[0]){case"@":this.eventData[i]=s,this.applyEvent(i,s);break;case".":o[i]=s;break;case"?":s?o.setAttribute(i,""):o.removeAttribute(i);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=at.directive($o);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,ut=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(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&&_o(e,r,t),t};let Z=class extends v{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 V);)n=n.parentElement;return n}render(){var e;const n=this.getFilteredAttributes();return k.html`
|
2837
2837
|
<div
|
2838
2838
|
${x(n)}
|
2839
2839
|
data-state=${(e=this._accordion)!=null&&e.selectedItems.includes(this.value)?"open":"closed"}
|
@@ -2849,10 +2849,10 @@ body {
|
|
2849
2849
|
<slot name="accordion-trigger"></slot>
|
2850
2850
|
</h3>
|
2851
2851
|
<div>
|
2852
|
-
${this._accordion&&this._accordion.selectedItems.includes(this.value)?
|
2852
|
+
${this._accordion&&this._accordion.selectedItems.includes(this.value)?k.html`<slot name="accordion-content"></slot>`:k.nothing}
|
2853
2853
|
</div>
|
2854
2854
|
</div>
|
2855
|
-
`}};Z.styles=[
|
2855
|
+
`}};Z.styles=[k.css``,c],ut([d.property({type:String})],Z.prototype,"value",2),ut([d.property({type:Number})],Z.prototype,"tabindex",2),Z=ut([d.customElement("rtg-accordion-item")],Z);function Eo(){return l.svg` <svg
|
2856
2856
|
class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
|
2857
2857
|
xmlns="http://www.w3.org/2000/svg"
|
2858
2858
|
width="24"
|
@@ -2940,9 +2940,9 @@ body {
|
|
2940
2940
|
<path d="M18 6 6 18"></path>
|
2941
2941
|
<path d="m6 6 12 12"></path>
|
2942
2942
|
</svg>
|
2943
|
-
`}function
|
2943
|
+
`}function ko(){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">
|
2944
2944
|
<circle cx="12.1" cy="12.1" r="1"></circle>
|
2945
|
-
</svg>`}var
|
2945
|
+
</svg>`}var Do=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,pr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Io(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&&Do(e,r,t),t};let ze=class extends v{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 V);)n=n.parentElement;return n}get _item(){let n=this.parentElement;for(;n&&!(n instanceof Z);)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`
|
2946
2946
|
<button
|
2947
2947
|
${x(n)}
|
2948
2948
|
type="button"
|
@@ -2961,7 +2961,7 @@ body {
|
|
2961
2961
|
<slot></slot>
|
2962
2962
|
${ur()}
|
2963
2963
|
</button>
|
2964
|
-
`}};ze.styles=[
|
2964
|
+
`}};ze.styles=[k.css``,c],pr([d.property({type:Function})],ze.prototype,"onClickCallback",2),ze=pr([d.customElement("rtg-accordion-trigger")],ze);var Lo=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,ht=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ao(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&&Lo(e,r,t),t};let Ce=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 V);)n=n.parentElement;return n}get _item(){let n=this.parentElement;for(;n&&!(n instanceof Z);)n=n.parentElement;return n}hasActiveState(){return this._item&&this._accordion?!!this._accordion.selectedItems.includes(this._item.value):!1}render(){return k.html`
|
2965
2965
|
<div
|
2966
2966
|
@click=${n=>{n.stopPropagation()}}
|
2967
2967
|
part="accordion-content"
|
@@ -2980,7 +2980,7 @@ body {
|
|
2980
2980
|
<slot></slot>
|
2981
2981
|
</div>
|
2982
2982
|
</div>
|
2983
|
-
`}};Ce.styles=[
|
2983
|
+
`}};Ce.styles=[k.css``,c],ht([d.property({type:String})],Ce.prototype,"value",2),ht([d.state()],Ce.prototype,"selectedValue",2),Ce=ht([d.customElement("rtg-accordion-content")],Ce);var he=(n=>(n.MULTIPLE="multiple",n.SINGLE="single",n))(he||{}),Ro=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,mt=(n,e,r,o)=>{for(var t=o>1?void 0:o?zo(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&&Ro(e,r,t),t};let V=class extends v{constructor(){super(...arguments),this.twCLass="",this.type=he.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===he.SINGLE)this.selectedItems=[];else if(this.type===he.MULTIPLE)this.selectedItems.splice(e,1);else throw new Error("Type does not correct");else if(this.type===he.SINGLE)this.selectedItems[0]=n;else if(this.type===he.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`
|
2984
2984
|
<div
|
2985
2985
|
data-orientation="vertical"
|
2986
2986
|
${x(n)}
|
@@ -2989,7 +2989,7 @@ body {
|
|
2989
2989
|
>
|
2990
2990
|
<slot name="accordion-item"></slot>
|
2991
2991
|
</div>
|
2992
|
-
`}};V.styles=[l.css``,c],mt([d.property({type:String})],V.prototype,"twCLass",2),mt([d.property({type:String})],V.prototype,"type",2),V=mt([d.customElement("rtg-accordion")],V);function hr(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=hr(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function Bo(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=hr(n))&&(o&&(o+=" "),o+=e);return o}const mr=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,gr=Bo,z=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return gr(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=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 _=mr(g)||mr($);return t[m][_]}),u=r&&Object.entries(r).reduce((m,g)=>{let[$,_]=g;return _===void 0||(m[$]=_),m},{}),
|
2992
|
+
`}};V.styles=[l.css``,c],mt([d.property({type:String})],V.prototype,"twCLass",2),mt([d.property({type:String})],V.prototype,"type",2),V=mt([d.customElement("rtg-accordion")],V);function hr(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=hr(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function Bo(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=hr(n))&&(o&&(o+=" "),o+=e);return o}const mr=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,gr=Bo,z=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return gr(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=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 _=mr(g)||mr($);return t[m][_]}),u=r&&Object.entries(r).reduce((m,g)=>{let[$,_]=g;return _===void 0||(m[$]=_),m},{}),b=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((m,g)=>{let{class:$,className:_,...M}=g;return Object.entries(M).every(P=>{let[C,w]=P;return Array.isArray(w)?w.includes({...s,...u}[C]):{...s,...u}[C]===w})?[...m,$,_]:m},[]);return gr(n,i,b,r==null?void 0:r.class,r==null?void 0:r.className)},fr=z("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 To=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,No=(n,e,r,o)=>{for(var t=o>1?void 0:o?qo(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&&To(e,r,t),t};a.AlertTitle=class extends l.LitElement{render(){return l.html`<slot part="alert-title"></slot>`}},a.AlertTitle.styles=l.css`
|
2993
2993
|
:host {
|
2994
2994
|
display: block;
|
2995
2995
|
font-weight: bold;
|
@@ -3040,14 +3040,14 @@ body {
|
|
3040
3040
|
width: 100%;
|
3041
3041
|
height: 100%;
|
3042
3042
|
}
|
3043
|
-
`,c],gt([d.property({type:String})],a.AspectRatio.prototype,"twCLass",2),gt([d.property({type:Number})],a.AspectRatio.prototype,"ratio",2),a.AspectRatio=gt([d.customElement("rtg-aspect-ratio")],a.AspectRatio);const Ko="relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",Wo="aspect-square h-full w-full",Zo="flex h-full w-full items-center justify-center rounded-full bg-muted";var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,
|
3043
|
+
`,c],gt([d.property({type:String})],a.AspectRatio.prototype,"twCLass",2),gt([d.property({type:Number})],a.AspectRatio.prototype,"ratio",2),a.AspectRatio=gt([d.customElement("rtg-aspect-ratio")],a.AspectRatio);const Ko="relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",Wo="aspect-square h-full w-full",Zo="flex h-full w-full items-center justify-center rounded-full bg-muted";var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,vr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qo(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&&Jo(e,r,t),t};let Te=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
3044
3044
|
<span
|
3045
3045
|
class="${p(Ko,this.className,this.twCLass)}"
|
3046
3046
|
part="avatar"
|
3047
3047
|
>
|
3048
3048
|
<slot></slot>
|
3049
3049
|
</span>
|
3050
|
-
`}};Te.styles=[l.css``,c],
|
3050
|
+
`}};Te.styles=[l.css``,c],vr([d.property({type:String})],Te.prototype,"twCLass",2),Te=vr([d.customElement("rtg-avatar")],Te);var jo=Object.defineProperty,en=Object.getOwnPropertyDescriptor,tn=(n,e,r,o)=>{for(var t=o>1?void 0:o?en(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&&jo(e,r,t),t};let ft=class extends l.LitElement{render(){return l.html`
|
3051
3051
|
<span
|
3052
3052
|
class="${p(Zo,this.className)}"
|
3053
3053
|
style="width:40px;height:40px"
|
@@ -3055,7 +3055,7 @@ body {
|
|
3055
3055
|
>
|
3056
3056
|
<slot></slot>
|
3057
3057
|
</span>
|
3058
|
-
`}};ft.styles=[l.css``,c],ft=tn([d.customElement("rtg-avatar-fallback")],ft);var rn=Object.defineProperty,on=Object.getOwnPropertyDescriptor,
|
3058
|
+
`}};ft.styles=[l.css``,c],ft=tn([d.customElement("rtg-avatar-fallback")],ft);var rn=Object.defineProperty,on=Object.getOwnPropertyDescriptor,vt=(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&&rn(e,r,t),t};let $e=class extends l.LitElement{constructor(){super(...arguments),this.alt="@shadcn",this.src="https://github.com/shadcn.png"}render(){return l.html`
|
3059
3059
|
<img
|
3060
3060
|
class="${p(Wo,this.className)}"
|
3061
3061
|
alt="${this.alt}"
|
@@ -3064,7 +3064,7 @@ body {
|
|
3064
3064
|
>
|
3065
3065
|
<slot></slot>
|
3066
3066
|
</img>
|
3067
|
-
`}};$e.styles=[l.css``,c],
|
3067
|
+
`}};$e.styles=[l.css``,c],vt([d.property({type:String})],$e.prototype,"alt",2),vt([d.property({type:String})],$e.prototype,"src",2),$e=vt([d.customElement("rtg-avatar-image")],$e);const nn=z("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 sn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,U=(n,e,r,o)=>{for(var t=o>1?void 0:o?an(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&&sn(e,r,t),t};a.Button=class extends v{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`
|
3068
3068
|
<button
|
3069
3069
|
part="button"
|
3070
3070
|
type="${this.type}"
|
@@ -3088,7 +3088,7 @@ body {
|
|
3088
3088
|
border-radius: var(--rtg-button-radius, unset) !important;
|
3089
3089
|
height: var(--rtg-button-height, unset) !important;
|
3090
3090
|
}
|
3091
|
-
`,c],U([d.property({type:Function})],a.Button.prototype,"click",2),U([d.property({type:Boolean})],a.Button.prototype,"disabled",2),U([d.property({type:String})],a.Button.prototype,"type",2),U([d.property({type:String})],a.Button.prototype,"variant",2),U([d.property({type:String})],a.Button.prototype,"size",2),U([d.property({type:String})],a.Button.prototype,"externalClass",2),U([d.property({type:String})],a.Button.prototype,"isCustomClass",2),a.Button=U([d.customElement("rtg-button")],a.Button);const ln=z("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 dn=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,qe=(n,e,r,o)=>{for(var t=o>1?void 0:o?cn(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&&dn(e,r,t),t};a.Badge=class extends
|
3091
|
+
`,c],U([d.property({type:Function})],a.Button.prototype,"click",2),U([d.property({type:Boolean})],a.Button.prototype,"disabled",2),U([d.property({type:String})],a.Button.prototype,"type",2),U([d.property({type:String})],a.Button.prototype,"variant",2),U([d.property({type:String})],a.Button.prototype,"size",2),U([d.property({type:String})],a.Button.prototype,"externalClass",2),U([d.property({type:String})],a.Button.prototype,"isCustomClass",2),a.Button=U([d.customElement("rtg-button")],a.Button);const ln=z("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 dn=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,qe=(n,e,r,o)=>{for(var t=o>1?void 0:o?cn(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&&dn(e,r,t),t};a.Badge=class extends v{constructor(){super(...arguments),this.twCLass="",this.variant="default",this.id="rtg-badge-id"}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html`
|
3092
3092
|
<div
|
3093
3093
|
${x(e)}
|
3094
3094
|
id="${this.id}"
|
@@ -3100,13 +3100,13 @@ body {
|
|
3100
3100
|
>
|
3101
3101
|
<slot></slot>
|
3102
3102
|
</div>
|
3103
|
-
`}},a.Badge.badgeVariants=ln,a.Badge.styles=[l.css``,c],qe([d.property({type:String})],a.Badge.prototype,"twCLass",2),qe([d.property({type:String})],a.Badge.prototype,"variant",2),qe([d.property({type:String})],a.Badge.prototype,"id",2),a.Badge=qe([d.customElement("rtg-badge")],a.Badge);var un=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,hn=(n,e,r,o)=>{for(var t=o>1?void 0:o?pn(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&&un(e,r,t),t};a.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},a.CardTitle.styles=[l.css``,c],a.CardTitle=hn([d.customElement("rtg-card-title")],a.CardTitle);var mn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,fn=(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&&mn(e,r,t),t};a.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},a.CardHeader.styles=[l.css``,c],a.CardHeader=fn([d.customElement("rtg-card-header")],a.CardHeader);var
|
3103
|
+
`}},a.Badge.badgeVariants=ln,a.Badge.styles=[l.css``,c],qe([d.property({type:String})],a.Badge.prototype,"twCLass",2),qe([d.property({type:String})],a.Badge.prototype,"variant",2),qe([d.property({type:String})],a.Badge.prototype,"id",2),a.Badge=qe([d.customElement("rtg-badge")],a.Badge);var un=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,hn=(n,e,r,o)=>{for(var t=o>1?void 0:o?pn(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&&un(e,r,t),t};a.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},a.CardTitle.styles=[l.css``,c],a.CardTitle=hn([d.customElement("rtg-card-title")],a.CardTitle);var mn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,fn=(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&&mn(e,r,t),t};a.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},a.CardHeader.styles=[l.css``,c],a.CardHeader=fn([d.customElement("rtg-card-header")],a.CardHeader);var vn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,wn=(n,e,r,o)=>{for(var t=o>1?void 0:o?bn(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&&vn(e,r,t),t};a.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},a.CardFooter.styles=[l.css``,c],a.CardFooter=wn([d.customElement("rtg-card-footer")],a.CardFooter);var yn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Cn=(n,e,r,o)=>{for(var t=o>1?void 0:o?xn(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&&yn(e,r,t),t};a.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},a.CardDescription.styles=[l.css``,c],a.CardDescription=Cn([d.customElement("rtg-card-description")],a.CardDescription);var $n=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,On=(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&&$n(e,r,t),t};a.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},a.CardContent.styles=[l.css``,c],a.CardContent=On([d.customElement("rtg-card-content")],a.CardContent);var En=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,Sn=(n,e,r,o)=>{for(var t=o>1?void 0:o?Pn(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.Card=class extends l.LitElement{render(){return l.html`<div
|
3104
3104
|
part="card"
|
3105
3105
|
class="rounded-lg border bg-card text-card-foreground shadow-sm p-6"
|
3106
3106
|
id="rtg-card-id"
|
3107
3107
|
>
|
3108
3108
|
<slot></slot>
|
3109
|
-
</div>`}},a.Card.styles=[l.css``,c],a.Card=Sn([d.customElement("rtg-card")],a.Card);var Mn=Object.defineProperty,
|
3109
|
+
</div>`}},a.Card.styles=[l.css``,c],a.Card=Sn([d.customElement("rtg-card")],a.Card);var Mn=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Dn=(n,e,r,o)=>{for(var t=o>1?void 0:o?kn(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&&Mn(e,r,t),t};let bt=class extends v{getAttributesToExclude(){return[""]}get _collapsible(){let n=this.parentElement;for(;n&&!(n instanceof J);)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`
|
3110
3110
|
<div
|
3111
3111
|
@click=${this.onTrigger}
|
3112
3112
|
${x(n)}
|
@@ -3114,7 +3114,7 @@ body {
|
|
3114
3114
|
>
|
3115
3115
|
<slot></slot>
|
3116
3116
|
</div>
|
3117
|
-
`}};
|
3117
|
+
`}};bt.styles=[l.css``,c],bt=Dn([d.customElement("rtg-collapsible-trigger")],bt);var In=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,An=(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};let wt=class extends v{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
3118
3118
|
<div
|
3119
3119
|
${x(n)}
|
3120
3120
|
class="${this.className}"
|
@@ -3123,7 +3123,7 @@ body {
|
|
3123
3123
|
>
|
3124
3124
|
<slot></slot>
|
3125
3125
|
</div>
|
3126
|
-
`}};wt.styles=[l.css``,c],wt=An([d.customElement("rtg-collapsible-content")],wt);var Rn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,Ne=(n,e,r,o)=>{for(var t=o>1?void 0:o?zn(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&&Rn(e,r,t),t};let J=class extends
|
3126
|
+
`}};wt.styles=[l.css``,c],wt=An([d.customElement("rtg-collapsible-content")],wt);var Rn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,Ne=(n,e,r,o)=>{for(var t=o>1?void 0:o?zn(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&&Rn(e,r,t),t};let J=class extends v{constructor(){super(...arguments),this.open=!1,this.onOpenChange=()=>{},this.twCLass=""}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
3127
3127
|
<div
|
3128
3128
|
data-state="${this.open?"open":"closed"}"
|
3129
3129
|
${x(n)}
|
@@ -3297,7 +3297,7 @@ body {
|
|
3297
3297
|
>
|
3298
3298
|
<slot></slot>
|
3299
3299
|
</span>
|
3300
|
-
`}},a.ContextMenuShortcut.styles=[l.css``,c],a.ContextMenuShortcut=ts([d.customElement("rtg-context-menu-shortcut")],a.ContextMenuShortcut);var rs=Object.defineProperty,os=Object.getOwnPropertyDescriptor,
|
3300
|
+
`}},a.ContextMenuShortcut.styles=[l.css``,c],a.ContextMenuShortcut=ts([d.customElement("rtg-context-menu-shortcut")],a.ContextMenuShortcut);var rs=Object.defineProperty,os=Object.getOwnPropertyDescriptor,br=(n,e,r,o)=>{for(var t=o>1?void 0:o?os(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&&rs(e,r,t),t};a.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 a.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`
|
3301
3301
|
<div class="flex" part="context-menu">
|
3302
3302
|
<div>
|
3303
3303
|
<slot @contextmenu="${this.toggleDropdown}"></slot>
|
@@ -3306,7 +3306,7 @@ body {
|
|
3306
3306
|
<slot></slot>
|
3307
3307
|
</div>
|
3308
3308
|
</div>
|
3309
|
-
`}},a.ContextMenu.styles=[l.css``,c],
|
3309
|
+
`}},a.ContextMenu.styles=[l.css``,c],br([d.state()],a.ContextMenu.prototype,"isOpen",2),a.ContextMenu=br([d.customElement("rtg-context-menu")],a.ContextMenu);var ns=Object.defineProperty,ss=Object.getOwnPropertyDescriptor,Ct=(n,e,r,o)=>{for(var t=o>1?void 0:o?ss(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&&ns(e,r,t),t};let Oe=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
3310
3310
|
<div
|
3311
3311
|
part="command"
|
3312
3312
|
class="${p("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md",this.className,this.twCLass)}"
|
@@ -3348,7 +3348,7 @@ body {
|
|
3348
3348
|
<slot></slot>
|
3349
3349
|
</div>
|
3350
3350
|
</div>
|
3351
|
-
`}`}};B._counter=0,B.styles=[l.css``,c],Ve([d.property({type:String})],B.prototype,"heading",2),Ve([d.property({attribute:"id",type:String})],B.prototype,"_id",2),Ve([d.property({attribute:"aria-hidden",type:String})],B.prototype,"_hidden",2),B=Ve([d.customElement("rtg-command-group")],B);var cs=Object.defineProperty,us=Object.getOwnPropertyDescriptor,_t=(n,e,r,o)=>{for(var t=o>1?void 0:o?us(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};let Ee=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
|
3351
|
+
`}`}};B._counter=0,B.styles=[l.css``,c],Ve([d.property({type:String})],B.prototype,"heading",2),Ve([d.property({attribute:"id",type:String})],B.prototype,"_id",2),Ve([d.property({attribute:"aria-hidden",type:String})],B.prototype,"_hidden",2),B=Ve([d.customElement("rtg-command-group")],B);var cs=Object.defineProperty,us=Object.getOwnPropertyDescriptor,_t=(n,e,r,o)=>{for(var t=o>1?void 0:o?us(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};let Ee=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 b,m;let s=!0;const i=t.querySelectorAll("rtg-command-item");i&&i.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 u=t.previousElementSibling;u&&u.setAttribute("aria-hidden",s||((b=u.previousElementSibling)==null?void 0:b.getAttribute("aria-hidden"))==="true"?"true":"false"),u=t.nextElementSibling,u&&u.setAttribute("aria-hidden",s||((m=u.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`
|
3352
3352
|
<div
|
3353
3353
|
part="command-input"
|
3354
3354
|
class="${p("flex items-center border-b px-3",this.className)}"
|
@@ -3387,10 +3387,10 @@ body {
|
|
3387
3387
|
data-value="${this._value}"
|
3388
3388
|
/>
|
3389
3389
|
</div>
|
3390
|
-
`}};Ee.styles=[l.css``,c],_t([d.property({type:String})],Ee.prototype,"placeholder",2),_t([d.property({attribute:"value",type:String})],Ee.prototype,"_value",2),Ee=_t([d.customElement("rtg-command-input")],Ee);var ps=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,Pe=(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&&ps(e,r,t),t};let
|
3390
|
+
`}};Ee.styles=[l.css``,c],_t([d.property({type:String})],Ee.prototype,"placeholder",2),_t([d.property({attribute:"value",type:String})],Ee.prototype,"_value",2),Ee=_t([d.customElement("rtg-command-input")],Ee);var ps=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,Pe=(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&&ps(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`
|
3391
3391
|
<div
|
3392
3392
|
part="command-item"
|
3393
|
-
class="${p("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)}"
|
3393
|
+
class="${p("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 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:text-neutral-200 dark:focus:bg-neutral-800",this.className)}"
|
3394
3394
|
@mouseover="${this.handleMouseEvent}"
|
3395
3395
|
@mouseleave="${this.handleMouseEvent}"
|
3396
3396
|
@focus="${this.handleMouseEvent}"
|
@@ -3405,7 +3405,7 @@ body {
|
|
3405
3405
|
>
|
3406
3406
|
<slot></slot>
|
3407
3407
|
</div>
|
3408
|
-
`}`}};
|
3408
|
+
`}`}};D._counter=0,D.styles=[l.css``,c],Pe([d.property({type:String})],D.prototype,"_id",2),Pe([d.property({attribute:"aria-hidden",type:String})],D.prototype,"_hidden",2),Pe([d.property({type:Function})],D.prototype,"onSelect",2),Pe([d.property({attribute:"data-value",type:String}),d.property({type:Boolean})],D.prototype,"identifier",1),D=Pe([d.customElement("rtg-command-item")],D);var ms=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,fs=(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};let Ot=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`
|
3409
3409
|
<div
|
3410
3410
|
part="command-list"
|
3411
3411
|
class="${p("max-h-[300px] overflow-y-auto overflow-x-hidden",this.className)}"
|
@@ -3418,7 +3418,7 @@ body {
|
|
3418
3418
|
<slot></slot>
|
3419
3419
|
</div>
|
3420
3420
|
</div>
|
3421
|
-
`}};Ot.styles=[l.css``,c],Ot=fs([d.customElement("rtg-command-list")],Ot);var
|
3421
|
+
`}};Ot.styles=[l.css``,c],Ot=fs([d.customElement("rtg-command-list")],Ot);var vs=Object.defineProperty,bs=Object.getOwnPropertyDescriptor,Et=(n,e,r,o)=>{for(var t=o>1?void 0:o?bs(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};let X=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${X._counter++}`:this._id=`rtgcmdrxlxs${X._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3422
3422
|
<div
|
3423
3423
|
part="command-separator"
|
3424
3424
|
class="${p("-mx-1 h-px bg-border",this.className)}"
|
@@ -3472,7 +3472,7 @@ body {
|
|
3472
3472
|
</div>
|
3473
3473
|
<div>${this.checkRender()}</div>
|
3474
3474
|
</div>
|
3475
|
-
`}};te.styles=[l.css``,c],He([d.state()],te.prototype,"searchKey",2),He([d.state()],te.prototype,"focusedIndex",2),He([d.state()],te.prototype,"selectedValue",2),te=He([d.customElement("rtg-combo-box-group")],te);var Es=Object.defineProperty,Ps=Object.getOwnPropertyDescriptor,I=(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&&Es(e,r,t),t};let E=class extends
|
3475
|
+
`}};te.styles=[l.css``,c],He([d.state()],te.prototype,"searchKey",2),He([d.state()],te.prototype,"focusedIndex",2),He([d.state()],te.prototype,"selectedValue",2),te=He([d.customElement("rtg-combo-box-group")],te);var Es=Object.defineProperty,Ps=Object.getOwnPropertyDescriptor,I=(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&&Es(e,r,t),t};let E=class extends v{constructor(){super(...arguments),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(n,e)=>{},this.onMouseOver=(n,e)=>{},this.handleClick=n=>{this.onSelect(this.value,this.selectItemIndex),n.stopPropagation();const e=new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.value}});this.dispatchEvent(e)}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}render(){const n=this.getFilteredAttributes();return l.html`
|
3476
3476
|
<div
|
3477
3477
|
${x(n)}
|
3478
3478
|
@click=${this.handleClick}
|
@@ -3517,7 +3517,7 @@ body {
|
|
3517
3517
|
@keydown="${this.handleKeyDown}"
|
3518
3518
|
/>
|
3519
3519
|
</div>
|
3520
|
-
`}};me.styles=[l.css``,c],Xe([d.property({type:String})],me.prototype,"placeholder",2),Xe([d.property({type:String})],me.prototype,"twClass",2),Xe([d.state()],me.prototype,"searchValue",2),me=Xe([d.customElement("rtg-combo-box-input")],me);var
|
3520
|
+
`}};me.styles=[l.css``,c],Xe([d.property({type:String})],me.prototype,"placeholder",2),Xe([d.property({type:String})],me.prototype,"twClass",2),Xe([d.state()],me.prototype,"searchValue",2),me=Xe([d.customElement("rtg-combo-box-input")],me);var ks=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Is=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ds(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 St=class extends l.LitElement{render(){return l.html`
|
3521
3521
|
<div class="py-6 text-center text-sm" cmdk-empty="" role="presentation">
|
3522
3522
|
<slot></slot>
|
3523
3523
|
</div>
|
@@ -3594,24 +3594,24 @@ body {
|
|
3594
3594
|
part="dialog-overly"
|
3595
3595
|
class="${p("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)}"
|
3596
3596
|
></div>
|
3597
|
-
`}},a.DialogOverlay.styles=[l.css``,c],a.DialogOverlay=Ws([d.customElement("rtg-dialog-overlay")],a.DialogOverlay);var Zs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,Qs=(n,e,r,o)=>{for(var t=o>1?void 0:o?Js(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&&Zs(e,r,t),t};const js="open";let
|
3597
|
+
`}},a.DialogOverlay.styles=[l.css``,c],a.DialogOverlay=Ws([d.customElement("rtg-dialog-overlay")],a.DialogOverlay);var Zs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,Qs=(n,e,r,o)=>{for(var t=o>1?void 0:o?Js(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&&Zs(e,r,t),t};const js="open";let kt=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const n=this._dialog;n&&(n.dataset.state=js)}}get _dialog(){let n=this.parentElement;for(;n;){if(n instanceof a.Dialog)return n;n=n.parentElement}return n}firstUpdated(n){var o,t;super.firstUpdated(n);const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements({flatten:!0});r&&r.length>0&&(r[0].click=this.handleClick),(t=this.shadowRoot)==null||t.addEventListener("click",s=>{s.stopPropagation()})}render(){return l.html`
|
3598
3598
|
<div part="dialog-trigger">
|
3599
3599
|
<slot></slot>
|
3600
3600
|
</div>
|
3601
|
-
`}};
|
3601
|
+
`}};kt.styles=[l.css``,c],kt=Qs([d.customElement("rtg-dialog-trigger")],kt);var ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,Cr=(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};const ri="open",oi="closed";a.Dialog=class extends l.LitElement{constructor(){super(...arguments),this.state=oi}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.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`
|
3602
3602
|
<div rtgdlg-root part="dialog">
|
3603
3603
|
${this.state===ri?l.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:l.nothing}
|
3604
3604
|
<slot></slot>
|
3605
3605
|
</div>
|
3606
|
-
`}},a.Dialog.styles=[l.css``,c],Cr([d.property({attribute:"data-state",type:String})],a.Dialog.prototype,"state",2),a.Dialog=Cr([d.customElement("rtg-dialog")],a.Dialog);var ni=Object.defineProperty,si=Object.getOwnPropertyDescriptor,
|
3606
|
+
`}},a.Dialog.styles=[l.css``,c],Cr([d.property({attribute:"data-state",type:String})],a.Dialog.prototype,"state",2),a.Dialog=Cr([d.customElement("rtg-dialog")],a.Dialog);var ni=Object.defineProperty,si=Object.getOwnPropertyDescriptor,Dt=(n,e,r,o)=>{for(var t=o>1?void 0:o?si(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&&ni(e,r,t),t};a.DropdownMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Ge,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof a.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`
|
3607
3607
|
<div
|
3608
3608
|
part="dropdown-menu-content"
|
3609
|
-
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"
|
3609
|
+
class="absolute flex h-full flex-col max-h-[300px] overflow-y-auto overflow-x-hidden rounded-md bg-popover text-popover-foreground border shadow-md"
|
3610
3610
|
style="display: ${this.isOpen?"block":"none"};width:260px"
|
3611
3611
|
>
|
3612
3612
|
<slot></slot>
|
3613
3613
|
</div>
|
3614
|
-
`}},a.DropdownMenuContent.styles=[l.css``,c],
|
3614
|
+
`}},a.DropdownMenuContent.styles=[l.css``,c],Dt([d.property({attribute:"data-state",type:String})],a.DropdownMenuContent.prototype,"state",2),Dt([d.state()],a.DropdownMenuContent.prototype,"isOpen",2),a.DropdownMenuContent=Dt([d.customElement("rtg-dropdown-menu-content")],a.DropdownMenuContent);var ii=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,Se=(n,e,r,o)=>{for(var t=o>1?void 0:o?ai(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&&ii(e,r,t),t};a.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${a.DropdownMenuItem._counter++}`:this._id=`rtgcmdrxgxli${a.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`
|
3615
3615
|
<div
|
3616
3616
|
part="dropdown-menu-item"
|
3617
3617
|
class="${p("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)}"
|
@@ -3728,7 +3728,7 @@ body {
|
|
3728
3728
|
<slot></slot>
|
3729
3729
|
</div>
|
3730
3730
|
</div>
|
3731
|
-
`}`}},a.DropdownMenuGroup._counter=0,a.DropdownMenuGroup.styles=[l.css``,c],Ye([d.property({type:String})],a.DropdownMenuGroup.prototype,"heading",2),Ye([d.property({attribute:"id",type:String})],a.DropdownMenuGroup.prototype,"_id",2),Ye([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuGroup.prototype,"_hidden",2),a.DropdownMenuGroup=Ye([d.customElement("rtg-dropdown-menu-group")],a.DropdownMenuGroup);var fi=Object.defineProperty,
|
3731
|
+
`}`}},a.DropdownMenuGroup._counter=0,a.DropdownMenuGroup.styles=[l.css``,c],Ye([d.property({type:String})],a.DropdownMenuGroup.prototype,"heading",2),Ye([d.property({attribute:"id",type:String})],a.DropdownMenuGroup.prototype,"_id",2),Ye([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuGroup.prototype,"_hidden",2),a.DropdownMenuGroup=Ye([d.customElement("rtg-dropdown-menu-group")],a.DropdownMenuGroup);var fi=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,$r=(n,e,r,o)=>{for(var t=o>1?void 0:o?vi(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&&fi(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`
|
3732
3732
|
<div part="dropdown-menu">
|
3733
3733
|
<div>
|
3734
3734
|
<slot @click="${this.toggleDropdown}"></slot>
|
@@ -3737,10 +3737,10 @@ body {
|
|
3737
3737
|
<slot></slot>
|
3738
3738
|
</div>
|
3739
3739
|
</div>
|
3740
|
-
`}},a.DropdownMenu.styles=[l.css``,c],$r([d.state()],a.DropdownMenu.prototype,"isOpen",2),a.DropdownMenu=$r([d.customElement("rtg-dropdown-menu")],a.DropdownMenu);var
|
3740
|
+
`}},a.DropdownMenu.styles=[l.css``,c],$r([d.state()],a.DropdownMenu.prototype,"isOpen",2),a.DropdownMenu=$r([d.customElement("rtg-dropdown-menu")],a.DropdownMenu);var bi=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,Ke=(n,e,r,o)=>{for(var t=o>1?void 0:o?wi(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&&bi(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`
|
3741
3741
|
<div
|
3742
3742
|
part="hover-card-content"
|
3743
|
-
class="${p("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)}"
|
3743
|
+
class="${p("absolute 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)}"
|
3744
3744
|
style="display: ${this.isOpen?"block":"none"};width:360px"
|
3745
3745
|
>
|
3746
3746
|
<slot></slot>
|
@@ -3757,7 +3757,7 @@ body {
|
|
3757
3757
|
<slot></slot>
|
3758
3758
|
</div>
|
3759
3759
|
</div>
|
3760
|
-
`}};Me.styles=[l.css``,c],Lt([d.property({type:String})],Me.prototype,"twClass",2),Lt([d.state()],Me.prototype,"isOpen",2),Me=Lt([d.customElement("rtg-hover-card")],Me);const Ci="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 $i=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,se=(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&&$i(e,r,t),t};a.Input=class extends
|
3760
|
+
`}};Me.styles=[l.css``,c],Lt([d.property({type:String})],Me.prototype,"twClass",2),Lt([d.state()],Me.prototype,"isOpen",2),Me=Lt([d.customElement("rtg-hover-card")],Me);const Ci="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 $i=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,se=(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&&$i(e,r,t),t};a.Input=class extends v{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`
|
3761
3761
|
<input
|
3762
3762
|
part="input"
|
3763
3763
|
type="${this.type}"
|
@@ -3768,7 +3768,7 @@ body {
|
|
3768
3768
|
${x(e)}
|
3769
3769
|
class="${p(Ci,this.twClass)}"
|
3770
3770
|
/>
|
3771
|
-
`}},a.Input.styles=[l.css``,c],se([d.property({type:Boolean})],a.Input.prototype,"disabled",2),se([d.property({type:String})],a.Input.prototype,"type",2),se([d.property({type:String})],a.Input.prototype,"placeholder",2),se([d.property({type:String})],a.Input.prototype,"defaultValue",2),se([d.property({type:String})],a.Input.prototype,"value",2),se([d.property({type:String})],a.Input.prototype,"twClass",2),a.Input=se([d.customElement("rtg-input")],a.Input);const Oi=z("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");var Ei=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,_r=(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&&Ei(e,r,t),t};let ge=class extends
|
3771
|
+
`}},a.Input.styles=[l.css``,c],se([d.property({type:Boolean})],a.Input.prototype,"disabled",2),se([d.property({type:String})],a.Input.prototype,"type",2),se([d.property({type:String})],a.Input.prototype,"placeholder",2),se([d.property({type:String})],a.Input.prototype,"defaultValue",2),se([d.property({type:String})],a.Input.prototype,"value",2),se([d.property({type:String})],a.Input.prototype,"twClass",2),a.Input=se([d.customElement("rtg-input")],a.Input);const Oi=z("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");var Ei=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,_r=(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&&Ei(e,r,t),t};let ge=class extends v{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`
|
3772
3772
|
<label
|
3773
3773
|
${x(n)}
|
3774
3774
|
part="label"
|
@@ -3788,7 +3788,7 @@ body {
|
|
3788
3788
|
color: var(--label-text-color) !important;
|
3789
3789
|
padding: var(--label-padding) !important;
|
3790
3790
|
}
|
3791
|
-
`,c],_r([d.property({type:String})],ge.prototype,"for",2),ge=_r([d.customElement("rtg-label")],ge);const Si=z("absolute 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"}}),Mi=z("absolute",{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
|
3791
|
+
`,c],_r([d.property({type:String})],ge.prototype,"for",2),ge=_r([d.customElement("rtg-label")],ge);const Si=z("absolute 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"}}),Mi=z("absolute",{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 ki=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,At=(n,e,r,o)=>{for(var t=o>1?void 0:o?Di(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&&ki(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?Si({state:"open",side:this.side}):Mi({state:"open",side:this.side});return l.html`
|
3792
3792
|
<div part="popover-content" class="${p(e)}">
|
3793
3793
|
<slot></slot>
|
3794
3794
|
</div>
|
@@ -3842,7 +3842,7 @@ body {
|
|
3842
3842
|
>
|
3843
3843
|
<slot></slot>
|
3844
3844
|
</div>
|
3845
|
-
`}},a.RadioGroup.styles=[l.css``,c],Er([d.property({type:String})],a.RadioGroup.prototype,"twClass",2),a.RadioGroup=Er([d.customElement("rtg-radio-group")],a.RadioGroup);var Fi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,L=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vi(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&&Fi(e,r,t),t};a.SelectItem=class extends
|
3845
|
+
`}},a.RadioGroup.styles=[l.css``,c],Er([d.property({type:String})],a.RadioGroup.prototype,"twClass",2),a.RadioGroup=Er([d.customElement("rtg-radio-group")],a.RadioGroup);var Fi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,L=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vi(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&&Fi(e,r,t),t};a.SelectItem=class extends v{constructor(){super(...arguments),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(e,r)=>{},this.onMouseOver=(e,r)=>{},this.handleClick=e=>{this.onSelect(this.value,this.selectItemIndex),e.stopPropagation();const r=new CustomEvent("clicked-select-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.value}});this.dispatchEvent(r)}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
|
3846
3846
|
<div
|
3847
3847
|
${x(e)}
|
3848
3848
|
@click=${this.handleClick}
|
@@ -3908,7 +3908,7 @@ body {
|
|
3908
3908
|
<slot></slot>
|
3909
3909
|
${ur()}
|
3910
3910
|
</button>
|
3911
|
-
`}};Bt.styles=[l.css``,c],Bt=ji([d.customElement("rtg-select-trigger")],Bt);var ea=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,Tt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ta(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&&ea(e,r,t),t};let
|
3911
|
+
`}};Bt.styles=[l.css``,c],Bt=ji([d.customElement("rtg-select-trigger")],Bt);var ea=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,Tt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ta(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&&ea(e,r,t),t};let ke=class extends l.LitElement{constructor(){super(...arguments),this.childrenArray=[],this.focusedIndex=0,this.selectedValue=""}get _select(){let n=this.parentElement;for(;n&&!(n instanceof a.Select);)n=n.parentElement;return n}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()}),document.addEventListener("trigger-select",n=>{n.detail.isOpen&&this._select&&this._select.selectedValue&&(this.focusedIndex=this.childrenArray.findIndex(e=>{var r;return e.value===((r=this._select)==null?void 0:r.selectedValue)}),this.requestUpdate())})}disconnectedCallback(){document.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}firstUpdated(n){document.addEventListener("keydown",this.handleKeyDown.bind(this)),this.childrenArray=Array.from(this.children).filter(e=>e.tagName.toLowerCase()==="rtg-select-item"),this.requestUpdate()}updated(n){var e;(e=this._select)!=null&&e.isOpen||document.removeEventListener("keydown",this.handleKeyDown.bind(this))}onSelectedValue(n,e){this.focusedIndex=e,this.selectedValue=n}handleKeyDown(n){var e;if(n.preventDefault(),(e=this._select)!=null&&e.isOpen)switch(n.key){case"ArrowDown":this.focusedIndex=(this.focusedIndex+1)%this.childrenArray.length;break;case"ArrowUp":this.focusedIndex=(this.focusedIndex-1+this.childrenArray.length)%this.childrenArray.length;break;case"Enter":if(this.focusedIndex>=0&&this.focusedIndex<this.childrenArray.length){const r=new CustomEvent("clicked-select-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.childrenArray[this.focusedIndex].value}});this.dispatchEvent(r)}break}}handleMouseOver(n,e){n.preventDefault(),this.focusedIndex=e}render(){return l.html`
|
3912
3912
|
<div
|
3913
3913
|
part="select-group"
|
3914
3914
|
class="absolute z-50 w-full max-h-72 mt-1 px-1 py-2 bg-white border border-gray-200 rounded-md 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
|
@@ -3929,7 +3929,7 @@ body {
|
|
3929
3929
|
${n.textContent}
|
3930
3930
|
</rtg-select-item> `})}
|
3931
3931
|
</div>
|
3932
|
-
`}};
|
3932
|
+
`}};ke.styles=[l.css``,c],Tt([d.state()],ke.prototype,"focusedIndex",2),Tt([d.state()],ke.prototype,"selectedValue",2),ke=Tt([d.customElement("rtg-select-group")],ke);var ra=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,Pr=(n,e,r,o)=>{for(var t=o>1?void 0:o?oa(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&&ra(e,r,t),t};let We=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="select a value",this.handleClick=()=>{if(this._select){[...document.getElementsByTagName("rtg-select")].map(r=>{var o;r.uuid!==((o=this._select)==null?void 0:o.uuid)&&(r.isOpen=!1)});const e=new CustomEvent("trigger-select",{bubbles:!0,composed:!0,detail:{isOpen:!this._select.isOpen}});this.dispatchEvent(e),this._select.isOpen=!this._select.isOpen}},this.renderLabel=()=>this._select&&this._select.selectedValue.length>0?this._select.selectedValue:this.placeholder}get _select(){let n=this.parentElement;for(;n&&!(n instanceof a.Select);)n=n.parentElement;return n}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()})}firstUpdated(n){var o,t;super.firstUpdated(n);const e=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="select-trigger-button"]'),r=e==null?void 0:e.assignedElements({flatten:!0});r&&r.length>0&&(r[0].click=this.handleClick),(t=this.shadowRoot)==null||t.addEventListener("click",s=>{s.stopPropagation()})}render(){return l.html`
|
3933
3933
|
<span
|
3934
3934
|
part="select-value"
|
3935
3935
|
class="flex line-clamp-1 w-[180px]"
|
@@ -3943,7 +3943,7 @@ body {
|
|
3943
3943
|
<slot name="content"></slot>
|
3944
3944
|
</div>
|
3945
3945
|
</div>
|
3946
|
-
`}},a.Select.styles=[l.css``,c],Ze([d.state()],a.Select.prototype,"isOpen",2),Ze([d.state()],a.Select.prototype,"selectedValue",2),Ze([d.state()],a.Select.prototype,"uuid",2),a.Select=Ze([d.customElement("rtg-select")],a.Select);var Je=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(Je||{}),ia=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,qt=(n,e,r,o)=>{for(var t=o>1?void 0:o?aa(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&&ia(e,r,t),t};a.Separator=class extends
|
3946
|
+
`}},a.Select.styles=[l.css``,c],Ze([d.state()],a.Select.prototype,"isOpen",2),Ze([d.state()],a.Select.prototype,"selectedValue",2),Ze([d.state()],a.Select.prototype,"uuid",2),a.Select=Ze([d.customElement("rtg-select")],a.Select);var Je=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(Je||{}),ia=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,qt=(n,e,r,o)=>{for(var t=o>1?void 0:o?aa(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&&ia(e,r,t),t};a.Separator=class extends v{constructor(){super(...arguments),this.orientation=Je.HORIZONTAL,this.twClass=""}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html` <div
|
3947
3947
|
part="separator"
|
3948
3948
|
${x(e)}
|
3949
3949
|
class=${p(this.orientation===Je.HORIZONTAL?"shrink-0 bg-border w-full h-[1px] my-4":"shrink-0 bg-border h-full w-[1px]",this.twClass)}
|
@@ -3971,7 +3971,7 @@ body {
|
|
3971
3971
|
</div>
|
3972
3972
|
<slot></slot>
|
3973
3973
|
</div>
|
3974
|
-
`}},a.Switch.styles=[l.css``,c],Qe([d.property({type:Boolean,reflect:!0})],a.Switch.prototype,"checked",2),Qe([d.property({type:Boolean})],a.Switch.prototype,"disabled",2),Qe([d.property({type:String})],a.Switch.prototype,"twClass",2),a.Switch=Qe([d.customElement("rtg-switch")],a.Switch);const ca="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 ua=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,Y=(n,e,r,o)=>{for(var t=o>1?void 0:o?pa(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&&ua(e,r,t),t};let A=class extends
|
3974
|
+
`}},a.Switch.styles=[l.css``,c],Qe([d.property({type:Boolean,reflect:!0})],a.Switch.prototype,"checked",2),Qe([d.property({type:Boolean})],a.Switch.prototype,"disabled",2),Qe([d.property({type:String})],a.Switch.prototype,"twClass",2),a.Switch=Qe([d.customElement("rtg-switch")],a.Switch);const ca="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 ua=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,Y=(n,e,r,o)=>{for(var t=o>1?void 0:o?pa(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&&ua(e,r,t),t};let A=class extends v{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`
|
3975
3975
|
<textarea
|
3976
3976
|
part="textarea"
|
3977
3977
|
${x(n)}
|
@@ -3983,7 +3983,7 @@ body {
|
|
3983
3983
|
?disabled=${this.disabled}
|
3984
3984
|
@change="${this.handleInputChange}"
|
3985
3985
|
/>
|
3986
|
-
`}};A.styles=[c],Y([d.property({type:Boolean})],A.prototype,"disabled",2),Y([d.property({type:String})],A.prototype,"placeholder",2),Y([d.property({type:String})],A.prototype,"defaultValue",2),Y([d.property({type:String})],A.prototype,"rows",2),Y([d.property({type:String})],A.prototype,"cols",2),Y([d.property({type:String})],A.prototype,"value",2),Y([d.property({type:String})],A.prototype,"twCLass",2),A=Y([d.customElement("rtg-textarea")],A);const ha=z("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]",ga="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 fa=Object.defineProperty,
|
3986
|
+
`}};A.styles=[c],Y([d.property({type:Boolean})],A.prototype,"disabled",2),Y([d.property({type:String})],A.prototype,"placeholder",2),Y([d.property({type:String})],A.prototype,"defaultValue",2),Y([d.property({type:String})],A.prototype,"rows",2),Y([d.property({type:String})],A.prototype,"cols",2),Y([d.property({type:String})],A.prototype,"value",2),Y([d.property({type:String})],A.prototype,"twCLass",2),A=Y([d.customElement("rtg-textarea")],A);const ha=z("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]",ga="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 fa=Object.defineProperty,va=Object.getOwnPropertyDescriptor,Nt=(n,e,r,o)=>{for(var t=o>1?void 0:o?va(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&&fa(e,r,t),t};const Sr="closed";let K=class extends l.LitElement{constructor(){super(...arguments),this.variant="default",this.state=Sr,this.handleCloseButtonClick=n=>{n.stopPropagation(),this.state=Sr,this.dispatchEvent(new CustomEvent("close-toast",{bubbles:!0,composed:!0}))}}render(){return l.html`
|
3987
3987
|
${this.state==="open"?l.html`<ol
|
3988
3988
|
part="toast-view-port"
|
3989
3989
|
tabindex="-1"
|
@@ -4017,7 +4017,7 @@ body {
|
|
4017
4017
|
button[toast-close] {
|
4018
4018
|
pointer-events: auto;
|
4019
4019
|
}
|
4020
|
-
`,c],Nt([d.property({type:String})],K.prototype,"variant",2),Nt([d.property({attribute:"data-state",type:String})],K.prototype,"state",2),K=Nt([d.customElement("rtg-toast-view-port")],K);var
|
4020
|
+
`,c],Nt([d.property({type:String})],K.prototype,"variant",2),Nt([d.property({attribute:"data-state",type:String})],K.prototype,"state",2),K=Nt([d.customElement("rtg-toast-view-port")],K);var ba=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,Gt=(n,e,r,o)=>{for(var t=o>1?void 0:o?wa(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&&ba(e,r,t),t};let De=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 K)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`
|
4021
4021
|
<div class="{${this.twClass}}" part="toast">
|
4022
4022
|
<div>
|
4023
4023
|
<slot @click="${this.onClick}"></slot>
|
@@ -4025,7 +4025,7 @@ body {
|
|
4025
4025
|
<slot></slot>
|
4026
4026
|
<div></div>
|
4027
4027
|
</div>
|
4028
|
-
`}};
|
4028
|
+
`}};De.styles=[l.css``,c],Gt([d.property({type:String})],De.prototype,"twClass",2),Gt([d.state()],De.prototype,"isOpen",2),De=Gt([d.customElement("rtg-toast")],De);var Mr=(n=>(n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg",n))(Mr||{}),kr=(n=>(n.DEFAULT="default",n.OUTLINE="outline",n))(kr||{});const ya=z("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 xa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,ie=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ca(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&&xa(e,r,t),t};a.Toggle=class extends v{constructor(){super(...arguments),this.disabled=!1,this.twCLass="",this.checked=!1,this.required=!1,this.variant=kr.DEFAULT,this.size=Mr.SMALL}getAttributesToExclude(){return["disabled","checked","variant","size","required"]}toggle(){this.disabled||(this.checked=!this.checked)}render(){const e=this.getFilteredAttributes();return k.html`
|
4029
4029
|
<button
|
4030
4030
|
type="button"
|
4031
4031
|
part="toggle"
|
@@ -4040,7 +4040,109 @@ body {
|
|
4040
4040
|
>
|
4041
4041
|
<slot></slot>
|
4042
4042
|
</button>
|
4043
|
-
`}},a.Toggle.styles=[c],a.Toggle.toggleVariants=ya,ie([d.property({type:Boolean})],a.Toggle.prototype,"disabled",2),ie([d.property({type:String})],a.Toggle.prototype,"twCLass",2),ie([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"checked",2),ie([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"required",2),ie([d.property({attribute:!0,type:String})],a.Toggle.prototype,"variant",2),ie([d.property({attribute:!0,type:String})],a.Toggle.prototype,"size",2),a.Toggle=ie([d.customElement("rtg-toggle")],a.Toggle);const $a=z("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 _a=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,
|
4043
|
+
`}},a.Toggle.styles=[c],a.Toggle.toggleVariants=ya,ie([d.property({type:Boolean})],a.Toggle.prototype,"disabled",2),ie([d.property({type:String})],a.Toggle.prototype,"twCLass",2),ie([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"checked",2),ie([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"required",2),ie([d.property({attribute:!0,type:String})],a.Toggle.prototype,"variant",2),ie([d.property({attribute:!0,type:String})],a.Toggle.prototype,"size",2),a.Toggle=ie([d.customElement("rtg-toggle")],a.Toggle);const $a=z("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 _a=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oa(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&&_a(e,r,t),t};let q=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`
|
4044
|
+
<main>
|
4045
|
+
<rtg-dropdown-menu class="w-full max-w-md">
|
4046
|
+
<rtg-button> open </rtg-button>
|
4047
|
+
<rtg-dropdown-menu-content>
|
4048
|
+
<rtg-dropdown-menu-shortcut style="margin-left:8px">My Account</rtg-dropdown-menu-shortcut>
|
4049
|
+
<rtg-dropdown-menu-separator></rtg-dropdown-menu-separator>
|
4050
|
+
<rtg-dropdown-menu-group>
|
4051
|
+
<rtg-dropdown-menu-item>
|
4052
|
+
<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="mr-2 h-4 w-4">
|
4053
|
+
<rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
4054
|
+
<line x1="16" x2="16" y1="2" y2="6"></line>
|
4055
|
+
<line x1="8" x2="8" y1="2" y2="6"></line>
|
4056
|
+
<line x1="3" x2="21" y1="10" y2="10"></line>
|
4057
|
+
</svg>
|
4058
|
+
<span>Calendar</span>
|
4059
|
+
</rtg-dropdown-menu-item>
|
4060
|
+
<rtg-dropdown-menu-item>
|
4061
|
+
<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="mr-2 h-4 w-4">
|
4062
|
+
<circle cx="12" cy="12" r="10"></circle>
|
4063
|
+
<path d="M8 14s1.5 2 4 2 4-2 4-2"></path>
|
4064
|
+
<line x1="9" x2="9.01" y1="9" y2="9"></line>
|
4065
|
+
<line x1="15" x2="15.01" y1="9" y2="9"></line>
|
4066
|
+
</svg>
|
4067
|
+
<span>Search Emoji</span>
|
4068
|
+
</rtg-dropdown-menu-item>
|
4069
|
+
<rtg-dropdown-menu-item>
|
4070
|
+
<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="mr-2 h-4 w-4">
|
4071
|
+
<rect width="16" height="20" x="4" y="2" rx="2"></rect>
|
4072
|
+
<line x1="8" x2="16" y1="6" y2="6"></line>
|
4073
|
+
<line x1="16" x2="16" y1="14" y2="18"></line>
|
4074
|
+
<path d="M16 10h.01"></path>
|
4075
|
+
<path d="M12 10h.01"></path>
|
4076
|
+
<path d="M8 10h.01"></path>
|
4077
|
+
<path d="M12 14h.01"></path>
|
4078
|
+
<path d="M8 14h.01"></path>
|
4079
|
+
<path d="M12 18h.01"></path>
|
4080
|
+
<path d="M8 18h.01"></path>
|
4081
|
+
</svg>
|
4082
|
+
<span>Calculator</span>
|
4083
|
+
</rtg-dropdown-menu-item>
|
4084
|
+
</rtg-dropdown-menu-group>
|
4085
|
+
|
4086
|
+
<rtg-dropdown-menu-separator></rtg-dropdown-menu-separator>
|
4087
|
+
<rtg-dropdown-menu-group>
|
4088
|
+
<rtg-dropdown-menu-item onclick="javascript:alert('Profile Clicked!')">
|
4089
|
+
<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="mr-2 h-4 w-4">
|
4090
|
+
<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path>
|
4091
|
+
<circle cx="12" cy="7" r="4"></circle>
|
4092
|
+
</svg>
|
4093
|
+
<span>Profile</span>
|
4094
|
+
<span class="ml-auto text-xs tracking-widest text-muted-foreground">⌘P</span>
|
4095
|
+
</rtg-dropdown-menu-item>
|
4096
|
+
<rtg-dropdown-menu-item>
|
4097
|
+
<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="mr-2 h-4 w-4">
|
4098
|
+
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
|
4099
|
+
<line x1="2" x2="22" y1="10" y2="10"></line>
|
4100
|
+
</svg>
|
4101
|
+
<span>Billing</span><span class="ml-auto text-xs tracking-widest text-muted-foreground">⌘B</span>
|
4102
|
+
</rtg-dropdown-menu-item>
|
4103
|
+
<rtg-dropdown-menu-item>
|
4104
|
+
<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="mr-2 h-4 w-4">
|
4105
|
+
<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path>
|
4106
|
+
<circle cx="12" cy="12" r="3"></circle>
|
4107
|
+
</svg>
|
4108
|
+
<span>Settings</span>
|
4109
|
+
<span class="ml-auto text-xs tracking-widest text-muted-foreground">
|
4110
|
+
⌘S</span>
|
4111
|
+
</rtg-dropdown-menu-item>
|
4112
|
+
</rtg-dropdown-menu-group></rtg-dropdown-menu-content>
|
4113
|
+
</rtg-dropdown-menu>
|
4114
|
+
</main>
|
4115
|
+
<main>
|
4116
|
+
<rtg-hover-card>
|
4117
|
+
<rtg-button variant="ghost">
|
4118
|
+
@nextjs
|
4119
|
+
</rtg-button>
|
4120
|
+
<rtg-hover-card-content>
|
4121
|
+
<div class="flex items-start gap-4">
|
4122
|
+
<!-- Avatar -->
|
4123
|
+
<rtg-avatar>
|
4124
|
+
<rtg-avatar-image src="https://github.com/vercel.png"></rtg-avatar-image>
|
4125
|
+
</rtg-avatar>
|
4126
|
+
<!-- Content -->
|
4127
|
+
<div class="space-y-2">
|
4128
|
+
<h4 class="text-sm font-semibold">@nextjs</h4>
|
4129
|
+
<p class="text-sm text-muted-foreground">
|
4130
|
+
The React Framework – created and maintained by @vercel.
|
4131
|
+
</p>
|
4132
|
+
<div class="flex items-center pt-2 text-xs">
|
4133
|
+
<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-calendar mr-2 h-4 w-4 opacity-70">
|
4134
|
+
<path d="M8 2v4"></path>
|
4135
|
+
<path d="M16 2v4"></path>
|
4136
|
+
<rect width="18" height="18" x="3" y="4" rx="2"></rect>
|
4137
|
+
<path d="M3 10h18"></path>
|
4138
|
+
</svg>
|
4139
|
+
<span>Joined December 2021</span>
|
4140
|
+
</div>
|
4141
|
+
</div>
|
4142
|
+
</div>
|
4143
|
+
</rtg-hover-card-content>
|
4144
|
+
</rtg-hover-card>
|
4145
|
+
</main>
|
4044
4146
|
<main>
|
4045
4147
|
<div class="flex flex-nowrap">
|
4046
4148
|
sample demo
|
@@ -4106,7 +4208,7 @@ body {
|
|
4106
4208
|
border-radius: var(--rtg-sample-demo-radius);
|
4107
4209
|
height: var(--rtg-sample-demo-height);
|
4108
4210
|
}
|
4109
|
-
`],
|
4211
|
+
`],ve([d.property({type:Function})],q.prototype,"click",2),ve([d.property({type:Boolean})],q.prototype,"disabled",2),ve([d.property({type:String})],q.prototype,"isCustomClass",2),ve([d.property({type:String})],q.prototype,"variant",2),ve([d.property({type:String})],q.prototype,"size",2),q=ve([d.customElement("rtg-sample-demo")],q);var Ea=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,be=(n,e,r,o)=>{for(var t=o>1?void 0:o?Pa(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&&Ea(e,r,t),t};a.MenubarMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.uniqueIds=[],this.selectedMenu="",this.isHovering=!1,this.id="",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()}toggleMenubar(e){e.stopPropagation(),document.querySelectorAll("rtg-menubar-menu").forEach(o=>{o!==this&&(o.isOpen=!1)}),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.MenubarContent)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-menubar-radio-item").forEach(r=>{const o=r;r!==e.target&&(o.checked=!1)})}get _slotElements(){var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");return(e==null?void 0:e.assignedElements({flatten:!0}))||[]}firstUpdated(){const e=this._slotElements,r=[];for(let o=0;o<e.length-1;o+=2){const t=e[o],s=e[o+1],i=crypto.randomUUID();r.push(i),t.dataset.pairId=i,s.dataset.pairId=i}this.uniqueIds=r,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}handleHover(e){this.isHovering||(this.isHovering=!0,this.toggleMenubar(e))}handleMouseLeave(){this.isHovering=!1}render(){return l.html`
|
4110
4212
|
<div>
|
4111
4213
|
<div
|
4112
4214
|
role="menuitem"
|
@@ -4127,7 +4229,7 @@ body {
|
|
4127
4229
|
<slot></slot>
|
4128
4230
|
</div>
|
4129
4231
|
</div>
|
4130
|
-
`}},a.MenubarMenu.styles=[l.css``,c],
|
4232
|
+
`}},a.MenubarMenu.styles=[l.css``,c],be([d.state()],a.MenubarMenu.prototype,"isOpen",2),be([d.state()],a.MenubarMenu.prototype,"uniqueIds",2),be([d.state()],a.MenubarMenu.prototype,"selectedMenu",2),be([d.state()],a.MenubarMenu.prototype,"isHovering",2),be([d.property({type:String})],a.MenubarMenu.prototype,"id",2),a.MenubarMenu=be([d.customElement("rtg-menubar-menu")],a.MenubarMenu);var Sa=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,Ie=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ma(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&&Sa(e,r,t),t};a.MenubarContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Ge,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof a.MenubarMenu);)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-menubar-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`
|
4131
4233
|
<div
|
4132
4234
|
part="menubar-content"
|
4133
4235
|
id="${this.id}"
|
@@ -4145,7 +4247,7 @@ body {
|
|
4145
4247
|
>
|
4146
4248
|
<slot></slot>
|
4147
4249
|
</div>
|
4148
|
-
`}},a.MenubarContent.styles=[l.css``,c],Ie([d.property({attribute:"data-state",type:String})],a.MenubarContent.prototype,"state",2),Ie([d.property({type:String})],a.MenubarContent.prototype,"id",2),Ie([d.property({type:String})],a.MenubarContent.prototype,"side",2),Ie([d.state()],a.MenubarContent.prototype,"isOpen",2),a.MenubarContent=Ie([d.customElement("rtg-menubar-content")],a.MenubarContent);var
|
4250
|
+
`}},a.MenubarContent.styles=[l.css``,c],Ie([d.property({attribute:"data-state",type:String})],a.MenubarContent.prototype,"state",2),Ie([d.property({type:String})],a.MenubarContent.prototype,"id",2),Ie([d.property({type:String})],a.MenubarContent.prototype,"side",2),Ie([d.state()],a.MenubarContent.prototype,"isOpen",2),a.MenubarContent=Ie([d.customElement("rtg-menubar-content")],a.MenubarContent);var ka=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,je=(n,e,r,o)=>{for(var t=o>1?void 0:o?Da(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&&ka(e,r,t),t};a.MenubarGroup=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.MenubarGroup._counter++}`:this._id=`rtgcmdrxlxg${a.MenubarGroup._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`
|
4149
4251
|
<div
|
4150
4252
|
part="menubar-group"
|
4151
4253
|
class="${e}"
|
@@ -4267,7 +4369,7 @@ body {
|
|
4267
4369
|
<span class="${p("ml-auto text-xs font-semibold",this.className)}">
|
4268
4370
|
<slot></slot>
|
4269
4371
|
</span>
|
4270
|
-
`}},a.MenubarShortcut.styles=[l.css``,c],a.MenubarShortcut=Fa([d.customElement("rtg-menubar-shortcut")],a.MenubarShortcut);var Va=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,
|
4372
|
+
`}},a.MenubarShortcut.styles=[l.css``,c],a.MenubarShortcut=Fa([d.customElement("rtg-menubar-shortcut")],a.MenubarShortcut);var Va=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Dr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ua(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&&Va(e,r,t),t};a.Menubar=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
4271
4373
|
<div
|
4272
4374
|
part="menubar"
|
4273
4375
|
role="menubar"
|
@@ -4278,7 +4380,7 @@ body {
|
|
4278
4380
|
>
|
4279
4381
|
<slot></slot>
|
4280
4382
|
</div>
|
4281
|
-
`}},a.Menubar.styles=[l.css``,c],
|
4383
|
+
`}},a.Menubar.styles=[l.css``,c],Dr([d.property({type:String})],a.Menubar.prototype,"twCLass",2),a.Menubar=Dr([d.customElement("rtg-menubar")],a.Menubar);const Ha="inline-flex items-center gap-1.5",Xa="transition-colors hover:text-foreground",Ya="font-normal text-foreground",Ka="[&>svg]:size-3.5",Wa="flex h-9 w-9 items-center justify-center",Za="flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";var Ja=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,ja=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qa(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&&Ja(e,r,t),t};let Vt=class extends v{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4282
4384
|
<span
|
4283
4385
|
${x(n)}
|
4284
4386
|
id="rtg-bread-crumb-ellipsis"
|
@@ -4300,7 +4402,7 @@ body {
|
|
4300
4402
|
/>
|
4301
4403
|
</svg>
|
4302
4404
|
</span>
|
4303
|
-
`}};Vt.styles=[l.css``,c],Vt=ja([d.customElement("rtg-bread-crumb-ellipsis")],Vt);var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,rl=(n,e,r,o)=>{for(var t=o>1?void 0:o?tl(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&&el(e,r,t),t};let Ut=class extends
|
4405
|
+
`}};Vt.styles=[l.css``,c],Vt=ja([d.customElement("rtg-bread-crumb-ellipsis")],Vt);var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,rl=(n,e,r,o)=>{for(var t=o>1?void 0:o?tl(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&&el(e,r,t),t};let Ut=class extends v{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
|
4304
4406
|
<li
|
4305
4407
|
${x(n)}
|
4306
4408
|
id="rtg-bread-crumb-item"
|
@@ -4309,7 +4411,7 @@ body {
|
|
4309
4411
|
>
|
4310
4412
|
<slot></slot>
|
4311
4413
|
</li>
|
4312
|
-
`}};Ut.styles=[l.css``,c],Ut=rl([d.customElement("rtg-bread-crumb-item")],Ut);var ol=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,sl=(n,e,r,o)=>{for(var t=o>1?void 0:o?nl(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&&ol(e,r,t),t};let Ht=class extends
|
4414
|
+
`}};Ut.styles=[l.css``,c],Ut=rl([d.customElement("rtg-bread-crumb-item")],Ut);var ol=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,sl=(n,e,r,o)=>{for(var t=o>1?void 0:o?nl(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&&ol(e,r,t),t};let Ht=class extends v{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
|
4313
4415
|
<ol
|
4314
4416
|
${x(n)}
|
4315
4417
|
id="rtg-bread-crumb-list"
|
@@ -4318,7 +4420,7 @@ body {
|
|
4318
4420
|
>
|
4319
4421
|
<slot></slot>
|
4320
4422
|
</ol>
|
4321
|
-
`}};Ht.styles=[l.css``,c],Ht=sl([d.customElement("rtg-bread-crumb-list")],Ht);var il=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ll=(n,e,r,o)=>{for(var t=o>1?void 0:o?al(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&&il(e,r,t),t};let Xt=class extends
|
4423
|
+
`}};Ht.styles=[l.css``,c],Ht=sl([d.customElement("rtg-bread-crumb-list")],Ht);var il=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ll=(n,e,r,o)=>{for(var t=o>1?void 0:o?al(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&&il(e,r,t),t};let Xt=class extends v{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4322
4424
|
<li
|
4323
4425
|
${x(n)}
|
4324
4426
|
id="rtg-bread-crumb-separator"
|
@@ -4343,7 +4445,7 @@ body {
|
|
4343
4445
|
<path d="M22 2 2 22"></path>
|
4344
4446
|
</svg>
|
4345
4447
|
</div>
|
4346
|
-
`}};Xt.styles=[l.css``,c],Xt=ll([d.customElement("rtg-bread-crumb-separator")],Xt);var dl=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,ul=(n,e,r,o)=>{for(var t=o>1?void 0:o?cl(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&&dl(e,r,t),t};let Yt=class extends
|
4448
|
+
`}};Xt.styles=[l.css``,c],Xt=ll([d.customElement("rtg-bread-crumb-separator")],Xt);var dl=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,ul=(n,e,r,o)=>{for(var t=o>1?void 0:o?cl(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&&dl(e,r,t),t};let Yt=class extends v{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4347
4449
|
<nav
|
4348
4450
|
${x(n)}
|
4349
4451
|
part="breadcrumb"
|
@@ -4352,7 +4454,7 @@ body {
|
|
4352
4454
|
>
|
4353
4455
|
<slot></slot>
|
4354
4456
|
</nav>
|
4355
|
-
`}};Yt.styles=[l.css``,c],Yt=ul([d.customElement("rtg-bread-crumb")],Yt);var pl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,ml=(n,e,r,o)=>{for(var t=o>1?void 0:o?hl(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&&pl(e,r,t),t};let Kt=class extends
|
4457
|
+
`}};Yt.styles=[l.css``,c],Yt=ul([d.customElement("rtg-bread-crumb")],Yt);var pl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,ml=(n,e,r,o)=>{for(var t=o>1?void 0:o?hl(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&&pl(e,r,t),t};let Kt=class extends v{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4356
4458
|
<span
|
4357
4459
|
${x(n)}
|
4358
4460
|
id="rtg-bread-crumb-text"
|
@@ -4363,7 +4465,7 @@ body {
|
|
4363
4465
|
>
|
4364
4466
|
<slot></slot>
|
4365
4467
|
</span>
|
4366
|
-
`}};Kt.styles=[l.css``,c],Kt=ml([d.customElement("rtg-bread-crumb-text")],Kt);var gl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,Ir=(n,e,r,o)=>{for(var t=o>1?void 0:o?fl(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&&gl(e,r,t),t};let et=class extends
|
4468
|
+
`}};Kt.styles=[l.css``,c],Kt=ml([d.customElement("rtg-bread-crumb-text")],Kt);var gl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,Ir=(n,e,r,o)=>{for(var t=o>1?void 0:o?fl(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&&gl(e,r,t),t};let et=class extends v{constructor(){super(...arguments),this.href="/"}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4367
4469
|
<a
|
4368
4470
|
${x(n)}
|
4369
4471
|
id="rtg-bread-crumb-link"
|
@@ -4373,7 +4475,7 @@ body {
|
|
4373
4475
|
>
|
4374
4476
|
<slot></slot>
|
4375
4477
|
</a>
|
4376
|
-
`}};et.styles=[l.css``,c],Ir([d.property({type:String})],et.prototype,"href",2),et=Ir([d.customElement("rtg-bread-crumb-link")],et);var
|
4478
|
+
`}};et.styles=[l.css``,c],Ir([d.property({type:String})],et.prototype,"href",2),et=Ir([d.customElement("rtg-bread-crumb-link")],et);var vl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,tt=(n,e,r,o)=>{for(var t=o>1?void 0:o?bl(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&&vl(e,r,t),t};let de=class extends v{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> `}};de.styles=[l.css``,c],tt([d.property()],de.prototype,"maxLength",2),tt([d.property()],de.prototype,"onChange",2),tt([d.property()],de.prototype,"pin",2),de=tt([d.customElement("rtg-input-otp")],de);var wl=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,Lr=(n,e,r,o)=>{for(var t=o>1?void 0:o?yl(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&&wl(e,r,t),t};let rt=class extends v{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> `}};rt.styles=[l.css``,c],Lr([d.property({type:Function})],rt.prototype,"click",2),rt=Lr([d.customElement("rtg-input-otp-group")],rt);var xl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,Ar=(n,e,r,o)=>{for(var t=o>1?void 0:o?Cl(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&&xl(e,r,t),t};let ot=class extends l.LitElement{constructor(){super(...arguments),this.index=0}render(){return l.html` <div role="separator">${ko()}</div> `}};ot.styles=[l.css``,c],Ar([d.property({type:Number})],ot.prototype,"index",2),ot=Ar([d.customElement("rtg-input-otp-separator")],ot);var $l=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,we=(n,e,r,o)=>{for(var t=o>1?void 0:o?_l(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&&$l(e,r,t),t};let W=class extends v{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 de);)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,i)=>s.value!==""?i: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`
|
4377
4479
|
<input
|
4378
4480
|
part="input-otp-slot"
|
4379
4481
|
autocomplete="one-time-code"
|