@revotech-group/revotech-ui-kit 0.0.50 → 0.0.52
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 +1676 -1617
- package/dist/revotech-ui-kit.umd.cjs +304 -301
- package/dist/src/components/atoms/calendar/calendar.atom.d.ts +2 -1
- package/dist/src/components/atoms/index.d.ts +1 -0
- package/dist/src/components/atoms/progress/progress.atom.d.ts +13 -0
- package/dist/src/components/atoms/progress/progress.stories.d.ts +4 -0
- package/dist/src/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(s,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):(s=typeof globalThis<"u"?globalThis:s||self,l(s["revotech-ui-kit"]={},s.lit,s.decorators_js,s.litElement,s.html_js,s.directive_js,s.asyncDirective_js))})(this,function(s,l,d,D,nn,gt,on){"use strict";function ar(o){var e,r,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o)){var t=o.length;for(e=0;e<t;e++)o[e]&&(r=ar(o[e]))&&(n&&(n+=" "),n+=r)}else for(r in o)o[r]&&(n&&(n+=" "),n+=r);return n}function sn(){for(var o,e,r=0,n="",t=arguments.length;r<t;r++)(o=arguments[r])&&(e=ar(o))&&(n&&(n+=" "),n+=e);return n}const mt="-",an=o=>{const e=dn(o),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=o;return{getClassGroupId:a=>{const p=a.split(mt);return p[0]===""&&p.length!==1&&p.shift(),lr(p,e)||ln(a)},getConflictingClassGroupIds:(a,p)=>{const m=r[a]||[];return p&&n[a]?[...m,...n[a]]:m}}},lr=(o,e)=>{var a;if(o.length===0)return e.classGroupId;const r=o[0],n=e.nextPart.get(r),t=n?lr(o.slice(1),n):void 0;if(t)return t;if(e.validators.length===0)return;const i=o.join(mt);return(a=e.validators.find(({validator:p})=>p(i)))==null?void 0:a.classGroupId},dr=/^\[(.+)\]$/,ln=o=>{if(dr.test(o)){const e=dr.exec(o)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},dn=o=>{const{theme:e,prefix:r}=o,n={nextPart:new Map,validators:[]};return un(Object.entries(o.classGroups),r).forEach(([i,a])=>{vt(a,n,i,e)}),n},vt=(o,e,r,n)=>{o.forEach(t=>{if(typeof t=="string"){const i=t===""?e:cr(e,t);i.classGroupId=r;return}if(typeof t=="function"){if(cn(t)){vt(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([i,a])=>{vt(a,cr(e,i),r,n)})})},cr=(o,e)=>{let r=o;return e.split(mt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},cn=o=>o.isThemeGetter,un=(o,e)=>e?o.map(([r,n])=>{const t=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,p])=>[e+a,p])):i);return[r,t]}):o,pn=o=>{if(o<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const t=(i,a)=>{r.set(i,a),e++,e>o&&(e=0,n=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return t(i,a),a},set(i,a){r.has(i)?r.set(i,a):t(i,a)}}},ur="!",hn=o=>{const{separator:e,experimentalParseClassName:r}=o,n=e.length===1,t=e[0],i=e.length,a=p=>{const m=[];let g=0,v=0,$;for(let w=0;w<p.length;w++){let O=p[w];if(g===0){if(O===t&&(n||p.slice(w,w+i)===e)){m.push(p.slice(v,w)),v=w+i;continue}if(O==="/"){$=w;continue}}O==="["?g++:O==="]"&&g--}const _=m.length===0?p:p.substring(v),M=_.startsWith(ur),P=M?_.substring(1):_,C=$&&$>v?$-v:void 0;return{modifiers:m,hasImportantModifier:M,baseClassName:P,maybePostfixModifierPosition:C}};return r?p=>r({className:p,parseClassName:a}):a},gn=o=>{if(o.length<=1)return o;const e=[];let r=[];return o.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},mn=o=>({cache:pn(o.cacheSize),parseClassName:hn(o),...an(o)}),vn=/\s+/,fn=(o,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:t}=e,i=[],a=o.trim().split(vn);let p="";for(let m=a.length-1;m>=0;m-=1){const g=a[m],{modifiers:v,hasImportantModifier:$,baseClassName:_,maybePostfixModifierPosition:M}=r(g);let P=!!M,C=n(P?_.substring(0,M):_);if(!C){if(!P){p=g+(p.length>0?" "+p:p);continue}if(C=n(_),!C){p=g+(p.length>0?" "+p:p);continue}P=!1}const w=gn(v).join(":"),O=$?w+ur:w,S=O+C;if(i.includes(S))continue;i.push(S);const Te=t(C,P);for(let ge=0;ge<Te.length;++ge){const ut=Te[ge];i.push(O+ut)}p=g+(p.length>0?" "+p:p)}return p};function bn(){let o=0,e,r,n="";for(;o<arguments.length;)(e=arguments[o++])&&(r=pr(e))&&(n&&(n+=" "),n+=r);return n}const pr=o=>{if(typeof o=="string")return o;let e,r="";for(let n=0;n<o.length;n++)o[n]&&(e=pr(o[n]))&&(r&&(r+=" "),r+=e);return r};function wn(o,...e){let r,n,t,i=a;function a(m){const g=e.reduce((v,$)=>$(v),o());return r=mn(g),n=r.cache.get,t=r.cache.set,i=p,p(m)}function p(m){const g=n(m);if(g)return g;const v=fn(m,r);return t(m,v),v}return function(){return i(bn.apply(null,arguments))}}const f=o=>{const e=r=>r[o]||[];return e.isThemeGetter=!0,e},hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,yn=/^\d+\/\d+$/,xn=new Set(["px","full","screen"]),Cn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$n=/\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$/,_n=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,On=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,En=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=o=>me(o)||xn.has(o)||yn.test(o),F=o=>ve(o,"length",An),me=o=>!!o&&!Number.isNaN(Number(o)),ft=o=>ve(o,"number",me),Oe=o=>!!o&&Number.isInteger(Number(o)),Pn=o=>o.endsWith("%")&&me(o.slice(0,-1)),h=o=>hr.test(o),G=o=>Cn.test(o),Sn=new Set(["length","size","percentage"]),kn=o=>ve(o,Sn,gr),Mn=o=>ve(o,"position",gr),Dn=new Set(["image","url"]),In=o=>ve(o,Dn,Bn),Ln=o=>ve(o,"",zn),Ee=()=>!0,ve=(o,e,r)=>{const n=hr.exec(o);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},An=o=>$n.test(o)&&!_n.test(o),gr=()=>!1,zn=o=>On.test(o),Bn=o=>En.test(o),Rn=wn(()=>{const o=f("colors"),e=f("spacing"),r=f("blur"),n=f("brightness"),t=f("borderColor"),i=f("borderRadius"),a=f("borderSpacing"),p=f("borderWidth"),m=f("contrast"),g=f("grayscale"),v=f("hueRotate"),$=f("invert"),_=f("gap"),M=f("gradientColorStops"),P=f("gradientColorStopPositions"),C=f("inset"),w=f("margin"),O=f("opacity"),S=f("padding"),Te=f("saturate"),ge=f("scale"),ut=f("sepia"),Zr=f("skew"),Jr=f("space"),jr=f("translate"),nr=()=>["auto","contain","none"],or=()=>["auto","hidden","clip","visible","scroll"],ir=()=>["auto",h,e],y=()=>[h,e],Qr=()=>["",B,F],pt=()=>["auto",me,h],en=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ht=()=>["solid","dashed","dotted","double","none"],tn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],sr=()=>["start","end","center","between","around","evenly","stretch"],qe=()=>["","0",h],rn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[me,h];return{cacheSize:500,separator:":",theme:{colors:[Ee],spacing:[B,F],blur:["none","",G,h],brightness:q(),borderColor:[o],borderRadius:["none","","full",G,h],borderSpacing:y(),borderWidth:Qr(),contrast:q(),grayscale:qe(),hueRotate:q(),invert:qe(),gap:y(),gradientColorStops:[o],gradientColorStopPositions:[Pn,F],inset:ir(),margin:ir(),opacity:q(),padding:y(),saturate:q(),scale:q(),sepia:qe(),skew:q(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":rn()}],"break-before":[{"break-before":rn()}],"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:[...en(),h]}],overflow:[{overflow:or()}],"overflow-x":[{"overflow-x":or()}],"overflow-y":[{"overflow-y":or()}],overscroll:[{overscroll:nr()}],"overscroll-x":[{"overscroll-x":nr()}],"overscroll-y":[{"overscroll-y":nr()}],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",Oe,h]}],basis:[{basis:ir()}],"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:qe()}],shrink:[{shrink:qe()}],order:[{order:["first","last","none",Oe,h]}],"grid-cols":[{"grid-cols":[Ee]}],"col-start-end":[{col:["auto",{span:["full",Oe,h]},h]}],"col-start":[{"col-start":pt()}],"col-end":[{"col-end":pt()}],"grid-rows":[{"grid-rows":[Ee]}],"row-start-end":[{row:["auto",{span:[Oe,h]},h]}],"row-start":[{"row-start":pt()}],"row-end":[{"row-end":pt()}],"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",...sr()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...sr(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...sr(),"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":[Jr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Jr]}],"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:[G]},G]}],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",G,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ft]}],"font-family":[{font:[Ee]}],"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",me,ft]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[o]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[o]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ht(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,F]}],"underline-offset":[{"underline-offset":["auto",B,h]}],"text-decoration-color":[{decoration:[o]}],"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:[...en(),Mn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",kn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},In]}],"bg-color":[{bg:[o]}],"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:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...ht(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:ht()}],"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:["",...ht()]}],"outline-offset":[{"outline-offset":[B,h]}],"outline-w":[{outline:[B,F]}],"outline-color":[{outline:[o]}],"ring-w":[{ring:Qr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[o]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[B,F]}],"ring-offset-color":[{"ring-offset":[o]}],shadow:[{shadow:["","inner","none",G,Ln]}],"shadow-color":[{shadow:[Ee]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...tn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":tn()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",G,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[$]}],saturate:[{saturate:[Te]}],sepia:[{sepia:[ut]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[$]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[Te]}],"backdrop-sepia":[{"backdrop-sepia":[ut]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ge]}],"scale-x":[{"scale-x":[ge]}],"scale-y":[{"scale-y":[ge]}],rotate:[{rotate:[Oe,h]}],"translate-x":[{"translate-x":[jr]}],"translate-y":[{"translate-y":[jr]}],"skew-x":[{"skew-x":[Zr]}],"skew-y":[{"skew-y":[Zr]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",o]}],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:[o]}],"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:[o,"none"]}],"stroke-w":[{stroke:[B,F,ft]}],stroke:[{stroke:[o,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function u(...o){return Rn(sn(o))}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,n=""){var i,a;let t="";e.some(p=>this.isCustomPropertySet(p))&&(t=n),t&&((a=(i=this.shadowRoot)==null?void 0:i.querySelector(r))==null||a.classList.add(t))}}function mr(){const o=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(o+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const c=l.css` @font-face {
|
|
1
|
+
(function(s,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):(s=typeof globalThis<"u"?globalThis:s||self,l(s["revotech-ui-kit"]={},s.lit,s.decorators_js,s.litElement,s.html_js,s.directive_js,s.asyncDirective_js))})(this,function(s,l,d,D,on,gt,sn){"use strict";function lr(o){var e,r,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o)){var t=o.length;for(e=0;e<t;e++)o[e]&&(r=lr(o[e]))&&(n&&(n+=" "),n+=r)}else for(r in o)o[r]&&(n&&(n+=" "),n+=r);return n}function an(){for(var o,e,r=0,n="",t=arguments.length;r<t;r++)(o=arguments[r])&&(e=lr(o))&&(n&&(n+=" "),n+=e);return n}const mt="-",ln=o=>{const e=cn(o),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=o;return{getClassGroupId:a=>{const p=a.split(mt);return p[0]===""&&p.length!==1&&p.shift(),dr(p,e)||dn(a)},getConflictingClassGroupIds:(a,p)=>{const m=r[a]||[];return p&&n[a]?[...m,...n[a]]:m}}},dr=(o,e)=>{var a;if(o.length===0)return e.classGroupId;const r=o[0],n=e.nextPart.get(r),t=n?dr(o.slice(1),n):void 0;if(t)return t;if(e.validators.length===0)return;const i=o.join(mt);return(a=e.validators.find(({validator:p})=>p(i)))==null?void 0:a.classGroupId},cr=/^\[(.+)\]$/,dn=o=>{if(cr.test(o)){const e=cr.exec(o)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},cn=o=>{const{theme:e,prefix:r}=o,n={nextPart:new Map,validators:[]};return pn(Object.entries(o.classGroups),r).forEach(([i,a])=>{vt(a,n,i,e)}),n},vt=(o,e,r,n)=>{o.forEach(t=>{if(typeof t=="string"){const i=t===""?e:ur(e,t);i.classGroupId=r;return}if(typeof t=="function"){if(un(t)){vt(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([i,a])=>{vt(a,ur(e,i),r,n)})})},ur=(o,e)=>{let r=o;return e.split(mt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},un=o=>o.isThemeGetter,pn=(o,e)=>e?o.map(([r,n])=>{const t=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,p])=>[e+a,p])):i);return[r,t]}):o,hn=o=>{if(o<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const t=(i,a)=>{r.set(i,a),e++,e>o&&(e=0,n=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return t(i,a),a},set(i,a){r.has(i)?r.set(i,a):t(i,a)}}},pr="!",gn=o=>{const{separator:e,experimentalParseClassName:r}=o,n=e.length===1,t=e[0],i=e.length,a=p=>{const m=[];let g=0,v=0,$;for(let w=0;w<p.length;w++){let O=p[w];if(g===0){if(O===t&&(n||p.slice(w,w+i)===e)){m.push(p.slice(v,w)),v=w+i;continue}if(O==="/"){$=w;continue}}O==="["?g++:O==="]"&&g--}const _=m.length===0?p:p.substring(v),M=_.startsWith(pr),E=M?_.substring(1):_,C=$&&$>v?$-v:void 0;return{modifiers:m,hasImportantModifier:M,baseClassName:E,maybePostfixModifierPosition:C}};return r?p=>r({className:p,parseClassName:a}):a},mn=o=>{if(o.length<=1)return o;const e=[];let r=[];return o.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},vn=o=>({cache:hn(o.cacheSize),parseClassName:gn(o),...ln(o)}),fn=/\s+/,bn=(o,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:t}=e,i=[],a=o.trim().split(fn);let p="";for(let m=a.length-1;m>=0;m-=1){const g=a[m],{modifiers:v,hasImportantModifier:$,baseClassName:_,maybePostfixModifierPosition:M}=r(g);let E=!!M,C=n(E?_.substring(0,M):_);if(!C){if(!E){p=g+(p.length>0?" "+p:p);continue}if(C=n(_),!C){p=g+(p.length>0?" "+p:p);continue}E=!1}const w=mn(v).join(":"),O=$?w+pr:w,S=O+C;if(i.includes(S))continue;i.push(S);const Te=t(C,E);for(let ge=0;ge<Te.length;++ge){const ut=Te[ge];i.push(O+ut)}p=g+(p.length>0?" "+p:p)}return p};function wn(){let o=0,e,r,n="";for(;o<arguments.length;)(e=arguments[o++])&&(r=hr(e))&&(n&&(n+=" "),n+=r);return n}const hr=o=>{if(typeof o=="string")return o;let e,r="";for(let n=0;n<o.length;n++)o[n]&&(e=hr(o[n]))&&(r&&(r+=" "),r+=e);return r};function yn(o,...e){let r,n,t,i=a;function a(m){const g=e.reduce((v,$)=>$(v),o());return r=vn(g),n=r.cache.get,t=r.cache.set,i=p,p(m)}function p(m){const g=n(m);if(g)return g;const v=bn(m,r);return t(m,v),v}return function(){return i(wn.apply(null,arguments))}}const f=o=>{const e=r=>r[o]||[];return e.isThemeGetter=!0,e},gr=/^\[(?:([a-z-]+):)?(.+)\]$/i,xn=/^\d+\/\d+$/,Cn=new Set(["px","full","screen"]),$n=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_n=/\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$/,On=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,En=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=o=>me(o)||Cn.has(o)||xn.test(o),V=o=>ve(o,"length",zn),me=o=>!!o&&!Number.isNaN(Number(o)),ft=o=>ve(o,"number",me),Oe=o=>!!o&&Number.isInteger(Number(o)),Sn=o=>o.endsWith("%")&&me(o.slice(0,-1)),h=o=>gr.test(o),F=o=>$n.test(o),kn=new Set(["length","size","percentage"]),Mn=o=>ve(o,kn,mr),Dn=o=>ve(o,"position",mr),In=new Set(["image","url"]),Ln=o=>ve(o,In,Rn),An=o=>ve(o,"",Bn),Pe=()=>!0,ve=(o,e,r)=>{const n=gr.exec(o);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},zn=o=>_n.test(o)&&!On.test(o),mr=()=>!1,Bn=o=>Pn.test(o),Rn=o=>En.test(o),Nn=yn(()=>{const o=f("colors"),e=f("spacing"),r=f("blur"),n=f("brightness"),t=f("borderColor"),i=f("borderRadius"),a=f("borderSpacing"),p=f("borderWidth"),m=f("contrast"),g=f("grayscale"),v=f("hueRotate"),$=f("invert"),_=f("gap"),M=f("gradientColorStops"),E=f("gradientColorStopPositions"),C=f("inset"),w=f("margin"),O=f("opacity"),S=f("padding"),Te=f("saturate"),ge=f("scale"),ut=f("sepia"),Jr=f("skew"),Qr=f("space"),jr=f("translate"),or=()=>["auto","contain","none"],ir=()=>["auto","hidden","clip","visible","scroll"],sr=()=>["auto",h,e],y=()=>[h,e],en=()=>["",B,V],pt=()=>["auto",me,h],tn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ht=()=>["solid","dashed","dotted","double","none"],rn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ar=()=>["start","end","center","between","around","evenly","stretch"],qe=()=>["","0",h],nn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[me,h];return{cacheSize:500,separator:":",theme:{colors:[Pe],spacing:[B,V],blur:["none","",F,h],brightness:q(),borderColor:[o],borderRadius:["none","","full",F,h],borderSpacing:y(),borderWidth:en(),contrast:q(),grayscale:qe(),hueRotate:q(),invert:qe(),gap:y(),gradientColorStops:[o],gradientColorStopPositions:[Sn,V],inset:sr(),margin:sr(),opacity:q(),padding:y(),saturate:q(),scale:q(),sepia:qe(),skew:q(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":nn()}],"break-before":[{"break-before":nn()}],"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:[...tn(),h]}],overflow:[{overflow:ir()}],"overflow-x":[{"overflow-x":ir()}],"overflow-y":[{"overflow-y":ir()}],overscroll:[{overscroll:or()}],"overscroll-x":[{"overscroll-x":or()}],"overscroll-y":[{"overscroll-y":or()}],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",Oe,h]}],basis:[{basis:sr()}],"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:qe()}],shrink:[{shrink:qe()}],order:[{order:["first","last","none",Oe,h]}],"grid-cols":[{"grid-cols":[Pe]}],"col-start-end":[{col:["auto",{span:["full",Oe,h]},h]}],"col-start":[{"col-start":pt()}],"col-end":[{"col-end":pt()}],"grid-rows":[{"grid-rows":[Pe]}],"row-start-end":[{row:["auto",{span:[Oe,h]},h]}],"row-start":[{"row-start":pt()}],"row-end":[{"row-end":pt()}],"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",...ar()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ar(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ar(),"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":[Qr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Qr]}],"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,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ft]}],"font-family":[{font:[Pe]}],"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",me,ft]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[o]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[o]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ht(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,V]}],"underline-offset":[{"underline-offset":["auto",B,h]}],"text-decoration-color":[{decoration:[o]}],"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:[...tn(),Dn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ln]}],"bg-color":[{bg:[o]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...ht(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:ht()}],"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:["",...ht()]}],"outline-offset":[{"outline-offset":[B,h]}],"outline-w":[{outline:[B,V]}],"outline-color":[{outline:[o]}],"ring-w":[{ring:en()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[o]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[B,V]}],"ring-offset-color":[{"ring-offset":[o]}],shadow:[{shadow:["","inner","none",F,An]}],"shadow-color":[{shadow:[Pe]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...rn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":rn()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",F,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[$]}],saturate:[{saturate:[Te]}],sepia:[{sepia:[ut]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[$]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[Te]}],"backdrop-sepia":[{"backdrop-sepia":[ut]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ge]}],"scale-x":[{"scale-x":[ge]}],"scale-y":[{"scale-y":[ge]}],rotate:[{rotate:[Oe,h]}],"translate-x":[{"translate-x":[jr]}],"translate-y":[{"translate-y":[jr]}],"skew-x":[{"skew-x":[Jr]}],"skew-y":[{"skew-y":[Jr]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",o]}],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:[o]}],"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:[o,"none"]}],"stroke-w":[{stroke:[B,V,ft]}],stroke:[{stroke:[o,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function u(...o){return Nn(an(o))}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,n=""){var i,a;let t="";e.some(p=>this.isCustomPropertySet(p))&&(t=n),t&&((a=(i=this.shadowRoot)==null?void 0:i.querySelector(r))==null||a.classList.add(t))}}function vr(){const o=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(o+Math.random()*16)%16|0;return(r=="x"?n:n&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
|
|
2836
|
+
`;class fr extends sn.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return on.nothing}update(e,[r]){var n;this.element!==e.element&&(this.element=e.element),this.host=((n=e.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(e){if(!e)return;const{prevData:r,element:n}=this;for(const t in e){const i=e[t];i!==r[t]&&(n[t]=i)}}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r)(!e||!(t in e)&&n[t]===r[t])&&(n[t]=void 0)}}gt.directive(fr);class br extends fr{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const r in e){const n=e[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(e,r){const{prevData:n,element:t}=this;this.eventData[e]=r,n[e]&&t.removeEventListener(e,this,r),t.addEventListener(e,this,r)}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r)(!e||!(t in e)&&n[t]===r[t])&&this.groomEvent(t,r[t])}groomEvent(e,r){const{element:n}=this;delete this.eventData[e],n.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 n in e){const t=n.slice(1),i=e[n];r.removeEventListener(t,this,i)}}reconnected(){const{eventData:e,element:r}=this;for(const n in e){const t=n.slice(1),i=e[n];r.addEventListener(t,this,i)}}}gt.directive(br);class Tn extends br{apply(e){if(!e)return;const{prevData:r,element:n}=this;for(const t in e){const i=e[t];if(i===r[t])continue;const a=t.slice(1);switch(t[0]){case"@":this.eventData[a]=i,this.applyEvent(a,i);break;case".":n[a]=i;break;case"?":i?n.setAttribute(a,""):n.removeAttribute(a);break;default:i!=null?n.setAttribute(t,String(i)):n.removeAttribute(t);break}}}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r){const i=t.slice(1);if(!e||!(t in e)&&n[i]===r[t])switch(t[0]){case"@":this.groomEvent(i,r[t]);break;case".":n[i]=void 0;break;case"?":n.removeAttribute(i);break;default:n.removeAttribute(t);break}}}}const x=gt.directive(Tn);var qn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,bt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Vn(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&qn(e,r,t),t};let J=class extends b{constructor(){super(...arguments),this.value="",this.tabindex=0,this.handleClick=o=>{o.preventDefault(),o.stopPropagation();const e=o.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(o){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 o=this.parentElement;for(;o&&!(o instanceof G);)o=o.parentElement;return o}render(){var e;const o=this.getFilteredAttributes();return D.html`
|
|
2837
2837
|
<div
|
|
2838
2838
|
${x(o)}
|
|
2839
2839
|
data-state=${(e=this._accordion)!=null&&e.selectedItems.includes(this.value)?"open":"closed"}
|
|
@@ -2852,7 +2852,7 @@ body {
|
|
|
2852
2852
|
${this._accordion&&this._accordion.selectedItems.includes(this.value)?D.html`<slot name="accordion-content"></slot>`:D.nothing}
|
|
2853
2853
|
</div>
|
|
2854
2854
|
</div>
|
|
2855
|
-
`}};
|
|
2855
|
+
`}};J.styles=[D.css``,c],bt([d.property({type:String})],J.prototype,"value",2),bt([d.property({type:Number})],J.prototype,"tabindex",2),J=bt([d.customElement("rtg-accordion-item")],J);function Fn(){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"
|
|
@@ -2867,7 +2867,7 @@ body {
|
|
|
2867
2867
|
<path d="m7 15 5 5 5-5"></path>
|
|
2868
2868
|
<path d="m7 9 5-5 5 5"></path>
|
|
2869
2869
|
</svg>
|
|
2870
|
-
`}function
|
|
2870
|
+
`}function wr(){return l.svg`
|
|
2871
2871
|
<svg
|
|
2872
2872
|
class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
|
|
2873
2873
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -2910,8 +2910,8 @@ body {
|
|
|
2910
2910
|
>
|
|
2911
2911
|
<circle cx="12" cy="12" r="10"></circle>
|
|
2912
2912
|
</svg>
|
|
2913
|
-
`}function
|
|
2914
|
-
`}function
|
|
2913
|
+
`}function yr(){return l.svg` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-4 w-4 shrink-0 transition-transform duration-200"><path d="m6 9 6 6 6-6"></path></svg>
|
|
2914
|
+
`}function Un(){return l.svg` <svg
|
|
2915
2915
|
xmlns="http://www.w3.org/2000/svg"
|
|
2916
2916
|
width="24"
|
|
2917
2917
|
height="24"
|
|
@@ -2925,7 +2925,7 @@ body {
|
|
|
2925
2925
|
>
|
|
2926
2926
|
<circle cx="12" cy="12" r="10"></circle></svg
|
|
2927
2927
|
>
|
|
2928
|
-
`}function
|
|
2928
|
+
`}function Hn(){return l.svg` <svg
|
|
2929
2929
|
xmlns="http://www.w3.org/2000/svg"
|
|
2930
2930
|
width="24"
|
|
2931
2931
|
height="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 Yn(){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 Xn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,xr=(o,e,r,n)=>{for(var t=n>1?void 0:n?Kn(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Xn(e,r,t),t};let Ve=class extends b{connectedCallback(){super.connectedCallback()}firstUpdated(o){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}getAttributesToExclude(){return["value","defaultValue"]}get _accordion(){let o=this.parentElement;for(;o&&!(o instanceof G);)o=o.parentElement;return o}get _item(){let o=this.parentElement;for(;o&&!(o instanceof J);)o=o.parentElement;return o}hasActiveState(){return this._item&&this._accordion?!!this._accordion.selectedItems.includes(this._item.value):!1}render(){var r;const o=this.getFilteredAttributes(),e=this.hasActiveState();return D.html`
|
|
2946
2946
|
<button
|
|
2947
2947
|
${x(o)}
|
|
2948
2948
|
type="button"
|
|
@@ -2959,9 +2959,9 @@ body {
|
|
|
2959
2959
|
data-radix-collection-item=""
|
|
2960
2960
|
>
|
|
2961
2961
|
<slot></slot>
|
|
2962
|
-
${
|
|
2962
|
+
${yr()}
|
|
2963
2963
|
</button>
|
|
2964
|
-
`}};
|
|
2964
|
+
`}};Ve.styles=[D.css``,c],xr([d.property({type:Function})],Ve.prototype,"onClickCallback",2),Ve=xr([d.customElement("rtg-accordion-trigger")],Ve);var Wn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,yt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Zn(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Wn(e,r,t),t};let Ee=class extends D.LitElement{constructor(){super(...arguments),this.value="",this.selectedValue=""}updated(o){super.updated(o)}firstUpdated(o){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}get _accordion(){let o=this.parentElement;for(;o&&!(o instanceof G);)o=o.parentElement;return o}get _item(){let o=this.parentElement;for(;o&&!(o instanceof J);)o=o.parentElement;return o}hasActiveState(){return this._item&&this._accordion?!!this._accordion.selectedItems.includes(this._item.value):!1}render(){return D.html`
|
|
2965
2965
|
<div
|
|
2966
2966
|
@click=${o=>{o.stopPropagation()}}
|
|
2967
2967
|
part="accordion-content"
|
|
@@ -2980,7 +2980,7 @@ body {
|
|
|
2980
2980
|
<slot></slot>
|
|
2981
2981
|
</div>
|
|
2982
2982
|
</div>
|
|
2983
|
-
`}};
|
|
2983
|
+
`}};Ee.styles=[D.css``,c],yt([d.property({type:String})],Ee.prototype,"value",2),yt([d.state()],Ee.prototype,"selectedValue",2),Ee=yt([d.customElement("rtg-accordion-content")],Ee);var fe=(o=>(o.MULTIPLE="multiple",o.SINGLE="single",o))(fe||{}),Jn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,xt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Qn(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Jn(e,r,t),t};let G=class extends b{constructor(){super(...arguments),this.twCLass="",this.type=fe.MULTIPLE,this.selectedItems=[]}getAttributesToExclude(){return["variant"]}connectedCallback(){var o;super.connectedCallback(),(o=this.shadowRoot)==null||o.addEventListener("clicked-accordion",()=>{})}disconnectedCallback(){super.disconnectedCallback()}setSelectedItems(o){const e=this.selectedItems.indexOf(o);if(e>-1)if(this.type===fe.SINGLE)this.selectedItems=[];else if(this.type===fe.MULTIPLE)this.selectedItems.splice(e,1);else throw new Error("Type does not correct");else if(this.type===fe.SINGLE)this.selectedItems[0]=o;else if(this.type===fe.MULTIPLE)this.selectedItems.push(o);else throw new Error("Type does not correct")}raiseEvent(o){this.setSelectedItems(o);const e=new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}});this.dispatchEvent(e)}render(){const o=this.getFilteredAttributes();return l.html`
|
|
2984
2984
|
<div
|
|
2985
2985
|
data-orientation="vertical"
|
|
2986
2986
|
${x(o)}
|
|
@@ -2989,17 +2989,17 @@ body {
|
|
|
2989
2989
|
>
|
|
2990
2990
|
<slot name="accordion-item"></slot>
|
|
2991
2991
|
</div>
|
|
2992
|
-
`}};
|
|
2992
|
+
`}};G.styles=[l.css``,c],xt([d.property({type:String})],G.prototype,"twCLass",2),xt([d.property({type:String})],G.prototype,"type",2),G=xt([d.customElement("rtg-accordion")],G);function Cr(o){var e,r,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o))for(e=0;e<o.length;e++)o[e]&&(r=Cr(o[e]))&&(n&&(n+=" "),n+=r);else for(e in o)o[e]&&(n&&(n+=" "),n+=e);return n}function jn(){for(var o,e,r=0,n="";r<arguments.length;)(o=arguments[r++])&&(e=Cr(o))&&(n&&(n+=" "),n+=e);return n}const $r=o=>typeof o=="boolean"?"".concat(o):o===0?"0":o,_r=jn,k=(o,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return _r(o,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:i}=e,a=Object.keys(t).map(g=>{const v=r==null?void 0:r[g],$=i==null?void 0:i[g];if(v===null)return null;const _=$r(v)||$r($);return t[g][_]}),p=r&&Object.entries(r).reduce((g,v)=>{let[$,_]=v;return _===void 0||(g[$]=_),g},{}),m=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((g,v)=>{let{class:$,className:_,...M}=v;return Object.entries(M).every(E=>{let[C,w]=E;return Array.isArray(w)?w.includes({...i,...p}[C]):{...i,...p}[C]===w})?[...g,$,_]:g},[]);return _r(o,a,m,r==null?void 0:r.class,r==null?void 0:r.className)},Or=k("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 eo=Object.defineProperty,to=Object.getOwnPropertyDescriptor,ro=(o,e,r,n)=>{for(var t=n>1?void 0:n?to(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&eo(e,r,t),t};s.AlertTitle=class extends l.LitElement{render(){return l.html`<slot part="alert-title"></slot>`}},s.AlertTitle.styles=l.css`
|
|
2993
2993
|
:host {
|
|
2994
2994
|
display: block;
|
|
2995
2995
|
font-weight: bold;
|
|
2996
2996
|
margin-bottom: 0.5rem;
|
|
2997
2997
|
}
|
|
2998
|
-
`,s.AlertTitle=
|
|
2998
|
+
`,s.AlertTitle=ro([d.customElement("rtg-alert-title")],s.AlertTitle);var no=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,io=(o,e,r,n)=>{for(var t=n>1?void 0:n?oo(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&no(e,r,t),t};s.AlertDescription=class extends l.LitElement{render(){return l.html`<slot part="alert-description"></slot>`}},s.AlertDescription.styles=l.css`
|
|
2999
2999
|
:host {
|
|
3000
3000
|
display: block;
|
|
3001
3001
|
}
|
|
3002
|
-
`,s.AlertDescription=
|
|
3002
|
+
`,s.AlertDescription=io([d.customElement("rtg-alert-description")],s.AlertDescription);var so=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,Fe=(o,e,r,n)=>{for(var t=n>1?void 0:n?ao(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&so(e,r,t),t};s.Alert=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.variant="info",this.size="default"}get alertClasses(){return Or({variant:this.variant,size:this.size})}render(){return l.html`
|
|
3003
3003
|
<div class="alert ${this.alertClasses} ${this.twCLass}" part="alert">
|
|
3004
3004
|
<slot name="title"></slot>
|
|
3005
3005
|
<slot name="description"></slot>
|
|
@@ -3017,7 +3017,7 @@ body {
|
|
|
3017
3017
|
font-weight: bold;
|
|
3018
3018
|
margin-bottom: 0.5rem;
|
|
3019
3019
|
}
|
|
3020
|
-
`,c],s.Alert.alertVairants=
|
|
3020
|
+
`,c],s.Alert.alertVairants=Or,Fe([d.property({type:String})],s.Alert.prototype,"twCLass",2),Fe([d.property({type:String})],s.Alert.prototype,"variant",2),Fe([d.property({type:String})],s.Alert.prototype,"size",2),s.Alert=Fe([d.customElement("rtg-alert")],s.Alert);var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,Ct=(o,e,r,n)=>{for(var t=n>1?void 0:n?co(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&lo(e,r,t),t};s.AspectRatio=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.ratio=16/9}render(){const e=1/this.ratio*100;return l.html`
|
|
3021
3021
|
<div
|
|
3022
3022
|
class="${u("aspect-ratio-wrapper bg-muted",this.className,this.twCLass)} "
|
|
3023
3023
|
style="padding-top: ${e}%;"
|
|
@@ -3040,31 +3040,31 @@ body {
|
|
|
3040
3040
|
width: 100%;
|
|
3041
3041
|
height: 100%;
|
|
3042
3042
|
}
|
|
3043
|
-
`,c],Ct([d.property({type:String})],s.AspectRatio.prototype,"twCLass",2),Ct([d.property({type:Number})],s.AspectRatio.prototype,"ratio",2),s.AspectRatio=Ct([d.customElement("rtg-aspect-ratio")],s.AspectRatio);const
|
|
3043
|
+
`,c],Ct([d.property({type:String})],s.AspectRatio.prototype,"twCLass",2),Ct([d.property({type:Number})],s.AspectRatio.prototype,"ratio",2),s.AspectRatio=Ct([d.customElement("rtg-aspect-ratio")],s.AspectRatio);const uo="relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",po="aspect-square h-full w-full",ho="flex h-full w-full items-center justify-center rounded-full bg-muted";var go=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,Pr=(o,e,r,n)=>{for(var t=n>1?void 0:n?mo(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&go(e,r,t),t};let Ge=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
|
3044
3044
|
<span
|
|
3045
|
-
class="${u(
|
|
3045
|
+
class="${u(uo,this.className,this.twCLass)}"
|
|
3046
3046
|
part="avatar"
|
|
3047
3047
|
>
|
|
3048
3048
|
<slot></slot>
|
|
3049
3049
|
</span>
|
|
3050
|
-
`}};
|
|
3050
|
+
`}};Ge.styles=[l.css``,c],Pr([d.property({type:String})],Ge.prototype,"twCLass",2),Ge=Pr([d.customElement("rtg-avatar")],Ge);var vo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,bo=(o,e,r,n)=>{for(var t=n>1?void 0:n?fo(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&vo(e,r,t),t};let $t=class extends l.LitElement{render(){return l.html`
|
|
3051
3051
|
<span
|
|
3052
|
-
class="${u(
|
|
3052
|
+
class="${u(ho,this.className)}"
|
|
3053
3053
|
style="width:40px;height:40px"
|
|
3054
3054
|
part="avatar-fallback"
|
|
3055
3055
|
>
|
|
3056
3056
|
<slot></slot>
|
|
3057
3057
|
</span>
|
|
3058
|
-
`}};$t.styles=[l.css``,c],$t=
|
|
3058
|
+
`}};$t.styles=[l.css``,c],$t=bo([d.customElement("rtg-avatar-fallback")],$t);var wo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,_t=(o,e,r,n)=>{for(var t=n>1?void 0:n?yo(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&wo(e,r,t),t};let Se=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
|
-
class="${u(
|
|
3060
|
+
class="${u(po,this.className)}"
|
|
3061
3061
|
alt="${this.alt}"
|
|
3062
3062
|
src="${this.src}"
|
|
3063
3063
|
part="avatar-image"
|
|
3064
3064
|
>
|
|
3065
3065
|
<slot></slot>
|
|
3066
3066
|
</img>
|
|
3067
|
-
`}};Se.styles=[l.css``,c],_t([d.property({type:String})],Se.prototype,"alt",2),_t([d.property({type:String})],Se.prototype,"src",2),Se=_t([d.customElement("rtg-avatar-image")],Se);const
|
|
3067
|
+
`}};Se.styles=[l.css``,c],_t([d.property({type:String})],Se.prototype,"alt",2),_t([d.property({type:String})],Se.prototype,"src",2),Se=_t([d.customElement("rtg-avatar-image")],Se);const xo=k("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 Co=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,U=(o,e,r,n)=>{for(var t=n>1?void 0:n?$o(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Co(e,r,t),t};s.Button=class extends b{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}"
|
|
@@ -3075,7 +3075,7 @@ body {
|
|
|
3075
3075
|
>
|
|
3076
3076
|
<slot></slot>
|
|
3077
3077
|
</button>
|
|
3078
|
-
`}},s.Button.buttonVariants=
|
|
3078
|
+
`}},s.Button.buttonVariants=xo,s.Button.styles=[l.css`
|
|
3079
3079
|
:host {
|
|
3080
3080
|
--rtg-button-bg: unset;
|
|
3081
3081
|
--rtg-button-color: unset;
|
|
@@ -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})],s.Button.prototype,"click",2),U([d.property({type:Boolean})],s.Button.prototype,"disabled",2),U([d.property({type:String})],s.Button.prototype,"type",2),U([d.property({type:String})],s.Button.prototype,"variant",2),U([d.property({type:String})],s.Button.prototype,"size",2),U([d.property({type:String})],s.Button.prototype,"externalClass",2),U([d.property({type:String})],s.Button.prototype,"isCustomClass",2),s.Button=U([d.customElement("rtg-button")],s.Button);const
|
|
3091
|
+
`,c],U([d.property({type:Function})],s.Button.prototype,"click",2),U([d.property({type:Boolean})],s.Button.prototype,"disabled",2),U([d.property({type:String})],s.Button.prototype,"type",2),U([d.property({type:String})],s.Button.prototype,"variant",2),U([d.property({type:String})],s.Button.prototype,"size",2),U([d.property({type:String})],s.Button.prototype,"externalClass",2),U([d.property({type:String})],s.Button.prototype,"isCustomClass",2),s.Button=U([d.customElement("rtg-button")],s.Button);const _o=k("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 Oo=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,Ue=(o,e,r,n)=>{for(var t=n>1?void 0:n?Po(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Oo(e,r,t),t};s.Badge=class extends b{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
|
-
`}},s.Badge.badgeVariants
|
|
3103
|
+
`}},s.Badge.badgeVariants=_o,s.Badge.styles=[l.css``,c],Ue([d.property({type:String})],s.Badge.prototype,"twCLass",2),Ue([d.property({type:String})],s.Badge.prototype,"variant",2),Ue([d.property({type:String})],s.Badge.prototype,"id",2),s.Badge=Ue([d.customElement("rtg-badge")],s.Badge);var Eo=Object.defineProperty,So=Object.getOwnPropertyDescriptor,ko=(o,e,r,n)=>{for(var t=n>1?void 0:n?So(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Eo(e,r,t),t};s.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},s.CardTitle.styles=[l.css``,c],s.CardTitle=ko([d.customElement("rtg-card-title")],s.CardTitle);var Mo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,Io=(o,e,r,n)=>{for(var t=n>1?void 0:n?Do(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Mo(e,r,t),t};s.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},s.CardHeader.styles=[l.css``,c],s.CardHeader=Io([d.customElement("rtg-card-header")],s.CardHeader);var Lo=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,zo=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ao(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Lo(e,r,t),t};s.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},s.CardFooter.styles=[l.css``,c],s.CardFooter=zo([d.customElement("rtg-card-footer")],s.CardFooter);var Bo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,No=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ro(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Bo(e,r,t),t};s.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},s.CardDescription.styles=[l.css``,c],s.CardDescription=No([d.customElement("rtg-card-description")],s.CardDescription);var To=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Vo=(o,e,r,n)=>{for(var t=n>1?void 0:n?qo(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&To(e,r,t),t};s.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},s.CardContent.styles=[l.css``,c],s.CardContent=Vo([d.customElement("rtg-card-content")],s.CardContent);var Fo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Uo=(o,e,r,n)=>{for(var t=n>1?void 0:n?Go(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Fo(e,r,t),t};s.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>`}},s.Card.styles=[l.css``,c],s.Card=
|
|
3109
|
+
</div>`}},s.Card.styles=[l.css``,c],s.Card=Uo([d.customElement("rtg-card")],s.Card);var Ho=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Xo=(o,e,r,n)=>{for(var t=n>1?void 0:n?Yo(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ho(e,r,t),t};let Ot=class extends b{getAttributesToExclude(){return[""]}get _collapsible(){let o=this.parentElement;for(;o&&!(o instanceof Q);)o=o.parentElement;return o}onTrigger(){const o=this._collapsible;o&&(o.open=!o.open,o.onOpenChange())}render(){const o=this.getFilteredAttributes();return l.html`
|
|
3110
3110
|
<div
|
|
3111
3111
|
@click=${this.onTrigger}
|
|
3112
3112
|
${x(o)}
|
|
@@ -3114,7 +3114,7 @@ body {
|
|
|
3114
3114
|
>
|
|
3115
3115
|
<slot></slot>
|
|
3116
3116
|
</div>
|
|
3117
|
-
`}};Ot.styles=[l.css``,c],Ot=
|
|
3117
|
+
`}};Ot.styles=[l.css``,c],Ot=Xo([d.customElement("rtg-collapsible-trigger")],Ot);var Ko=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,Zo=(o,e,r,n)=>{for(var t=n>1?void 0:n?Wo(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ko(e,r,t),t};let Pt=class extends b{getAttributesToExclude(){return[""]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
3118
3118
|
<div
|
|
3119
3119
|
${x(o)}
|
|
3120
3120
|
class="${this.className}"
|
|
@@ -3123,7 +3123,7 @@ body {
|
|
|
3123
3123
|
>
|
|
3124
3124
|
<slot></slot>
|
|
3125
3125
|
</div>
|
|
3126
|
-
`}};
|
|
3126
|
+
`}};Pt.styles=[l.css``,c],Pt=Zo([d.customElement("rtg-collapsible-content")],Pt);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,He=(o,e,r,n)=>{for(var t=n>1?void 0:n?Qo(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Jo(e,r,t),t};let Q=class extends b{constructor(){super(...arguments),this.open=!1,this.onOpenChange=()=>{},this.twCLass=""}getAttributesToExclude(){return[""]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
3127
3127
|
<div
|
|
3128
3128
|
data-state="${this.open?"open":"closed"}"
|
|
3129
3129
|
${x(o)}
|
|
@@ -3133,7 +3133,7 @@ body {
|
|
|
3133
3133
|
<slot></slot>
|
|
3134
3134
|
${this.open?l.html`<slot name="collapsible-content"></slot>`:l.nothing}
|
|
3135
3135
|
</div>
|
|
3136
|
-
`}};
|
|
3136
|
+
`}};Q.styles=[l.css``,c],He([d.property({type:Boolean})],Q.prototype,"open",2),He([d.property({type:Function})],Q.prototype,"onOpenChange",2),He([d.property({type:String})],Q.prototype,"twCLass",2),Q=He([d.customElement("rtg-collapsible")],Q);const jo="peer h-4 w-4 align-middle shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",ei="flex items-center justify-center text-current pointer-events-none";var ti=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,j=(o,e,r,n)=>{for(var t=n>1?void 0:n?ri(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ti(e,r,t),t};s.Checkbox=class extends l.LitElement{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.type="text",this.value="",this.required=!1,this.twCLass=""}_onClick(e){e.defaultPrevented||(this.checked=!this.checked,this.required=!this.required,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.checked=!this.checked,this.required=!this.required}render(){const e={...this.dataset};return l.html`
|
|
3137
3137
|
<button
|
|
3138
3138
|
part="checkbox"
|
|
3139
3139
|
data-testid="checkbox-atom"
|
|
@@ -3148,7 +3148,7 @@ body {
|
|
|
3148
3148
|
class="${u(jo,this.className)} ${this.twCLass}"
|
|
3149
3149
|
${Object.entries(e).map(([r,n])=>l.html` ${r}="${n}" `)}
|
|
3150
3150
|
>
|
|
3151
|
-
${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${
|
|
3151
|
+
${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${ei}"
|
|
3152
3152
|
><svg
|
|
3153
3153
|
xmlns="http://www.w3.org/2000/svg"
|
|
3154
3154
|
width="24"
|
|
@@ -3164,7 +3164,7 @@ body {
|
|
|
3164
3164
|
<polyline points="20 6 9 17 4 12"></polyline></svg
|
|
3165
3165
|
></span>`:l.nothing}
|
|
3166
3166
|
</button>
|
|
3167
|
-
`}},s.Checkbox.styles=[l.css``,c],j([d.property({type:Boolean})],s.Checkbox.prototype,"disabled",2),j([d.property({type:Boolean})],s.Checkbox.prototype,"checked",2),j([d.property({type:String})],s.Checkbox.prototype,"type",2),j([d.property({type:String})],s.Checkbox.prototype,"value",2),j([d.property({type:Boolean})],s.Checkbox.prototype,"required",2),j([d.property({type:String})],s.Checkbox.prototype,"twCLass",2),s.Checkbox=j([d.customElement("rtg-checkbox")],s.Checkbox);const Ye="closed";var
|
|
3167
|
+
`}},s.Checkbox.styles=[l.css``,c],j([d.property({type:Boolean})],s.Checkbox.prototype,"disabled",2),j([d.property({type:Boolean})],s.Checkbox.prototype,"checked",2),j([d.property({type:String})],s.Checkbox.prototype,"type",2),j([d.property({type:String})],s.Checkbox.prototype,"value",2),j([d.property({type:Boolean})],s.Checkbox.prototype,"required",2),j([d.property({type:String})],s.Checkbox.prototype,"twCLass",2),s.Checkbox=j([d.customElement("rtg-checkbox")],s.Checkbox);const Ye="closed";var ni=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,Et=(o,e,r,n)=>{for(var t=n>1?void 0:n?oi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ni(e,r,t),t};s.ContextMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Ye,this.isOpen=!1}get _contextMenu(){let e=this.parentElement;for(;e&&!(e instanceof s.ContextMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,i;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-context-menu-content"),n=(i=this.shadowRoot)==null?void 0:i.querySelector("button");r&&!r.contains(e.target)&&!(n!=null&&n.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
|
3168
3168
|
<div
|
|
3169
3169
|
part="context-menu-content"
|
|
3170
3170
|
class="z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
|
|
@@ -3173,7 +3173,7 @@ body {
|
|
|
3173
3173
|
>
|
|
3174
3174
|
<slot></slot>
|
|
3175
3175
|
</div>
|
|
3176
|
-
`}},s.ContextMenuContent.styles=[l.css``,c],
|
|
3176
|
+
`}},s.ContextMenuContent.styles=[l.css``,c],Et([d.property({attribute:"data-state",type:String})],s.ContextMenuContent.prototype,"state",2),Et([d.state()],s.ContextMenuContent.prototype,"isOpen",2),s.ContextMenuContent=Et([d.customElement("rtg-context-menu-content")],s.ContextMenuContent);var ii=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ee=(o,e,r,n)=>{for(var t=n>1?void 0:n?si(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ii(e,r,t),t};s.ContextMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.ContextMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${s.ContextMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
|
|
3177
3177
|
<div
|
|
3178
3178
|
part="context-menu-checkbox"
|
|
3179
3179
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
@@ -3213,7 +3213,7 @@ body {
|
|
|
3213
3213
|
height: 16px;
|
|
3214
3214
|
display: inline-block;
|
|
3215
3215
|
}
|
|
3216
|
-
`,c],
|
|
3216
|
+
`,c],ee([d.property({type:String})],s.ContextMenuCheckboxItem.prototype,"_id",2),ee([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuCheckboxItem.prototype,"_hidden",2),ee([d.property({attribute:"data-value",type:String})],s.ContextMenuCheckboxItem.prototype,"value",1),ee([d.property({type:Boolean})],s.ContextMenuCheckboxItem.prototype,"selected",2),ee([d.property({type:Boolean})],s.ContextMenuCheckboxItem.prototype,"checked",2),ee([d.property({type:Boolean})],s.ContextMenuCheckboxItem.prototype,"disabled",2),s.ContextMenuCheckboxItem=ee([d.customElement("rtg-context-menu-checkbox-item")],s.ContextMenuCheckboxItem);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Xe=(o,e,r,n)=>{for(var t=n>1?void 0:n?li(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ai(e,r,t),t};s.ContextMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${s.ContextMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${s.ContextMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
|
3217
3217
|
<div
|
|
3218
3218
|
part="context-menu-group"
|
|
3219
3219
|
class="${e}"
|
|
@@ -3236,7 +3236,7 @@ body {
|
|
|
3236
3236
|
<slot></slot>
|
|
3237
3237
|
</div>
|
|
3238
3238
|
</div>
|
|
3239
|
-
`}`}},s.ContextMenuGroup._counter=0,s.ContextMenuGroup.styles=[l.css``,c],Xe([d.property({type:String})],s.ContextMenuGroup.prototype,"heading",2),Xe([d.property({attribute:"id",type:String})],s.ContextMenuGroup.prototype,"_id",2),Xe([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuGroup.prototype,"_hidden",2),s.ContextMenuGroup=Xe([d.customElement("rtg-context-menu-group")],s.ContextMenuGroup);var
|
|
3239
|
+
`}`}},s.ContextMenuGroup._counter=0,s.ContextMenuGroup.styles=[l.css``,c],Xe([d.property({type:String})],s.ContextMenuGroup.prototype,"heading",2),Xe([d.property({attribute:"id",type:String})],s.ContextMenuGroup.prototype,"_id",2),Xe([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuGroup.prototype,"_hidden",2),s.ContextMenuGroup=Xe([d.customElement("rtg-context-menu-group")],s.ContextMenuGroup);var di=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,ke=(o,e,r,n)=>{for(var t=n>1?void 0:n?ci(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&di(e,r,t),t};s.ContextMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.ContextMenuItem._counter++}`:this._id=`rtgcmdrxgxli${s.ContextMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
|
|
3240
3240
|
<div
|
|
3241
3241
|
part="context-menu-item"
|
|
3242
3242
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground",this.className)}"
|
|
@@ -3253,7 +3253,7 @@ body {
|
|
|
3253
3253
|
>
|
|
3254
3254
|
<slot></slot>
|
|
3255
3255
|
</div>
|
|
3256
|
-
`}`}},s.ContextMenuItem._counter=0,s.ContextMenuItem.styles=[l.css``,c],ke([d.property({type:String})],s.ContextMenuItem.prototype,"_id",2),ke([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuItem.prototype,"_hidden",2),ke([d.property({attribute:"data-value",type:String})],s.ContextMenuItem.prototype,"value",1),ke([d.property({type:Boolean})],s.ContextMenuItem.prototype,"selected",2),s.ContextMenuItem=ke([d.customElement("rtg-context-menu-item")],s.ContextMenuItem);var
|
|
3256
|
+
`}`}},s.ContextMenuItem._counter=0,s.ContextMenuItem.styles=[l.css``,c],ke([d.property({type:String})],s.ContextMenuItem.prototype,"_id",2),ke([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuItem.prototype,"_hidden",2),ke([d.property({attribute:"data-value",type:String})],s.ContextMenuItem.prototype,"value",1),ke([d.property({type:Boolean})],s.ContextMenuItem.prototype,"selected",2),s.ContextMenuItem=ke([d.customElement("rtg-context-menu-item")],s.ContextMenuItem);var ui=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,te=(o,e,r,n)=>{for(var t=n>1?void 0:n?pi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ui(e,r,t),t};s.ContextMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.ContextMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${s.ContextMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
|
3257
3257
|
<div
|
|
3258
3258
|
part="context-menu-radio"
|
|
3259
3259
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
@@ -3282,7 +3282,7 @@ body {
|
|
|
3282
3282
|
height: 16px;
|
|
3283
3283
|
display: inline-block;
|
|
3284
3284
|
}
|
|
3285
|
-
`,c],
|
|
3285
|
+
`,c],te([d.property({type:String})],s.ContextMenuRadioItem.prototype,"_id",2),te([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuRadioItem.prototype,"_hidden",2),te([d.property({attribute:"data-value",type:String})],s.ContextMenuRadioItem.prototype,"value",1),te([d.property({type:Boolean})],s.ContextMenuRadioItem.prototype,"selected",2),te([d.property({type:Boolean})],s.ContextMenuRadioItem.prototype,"checked",2),te([d.property({type:Boolean})],s.ContextMenuRadioItem.prototype,"disabled",2),s.ContextMenuRadioItem=te([d.customElement("rtg-context-menu-radio-item")],s.ContextMenuRadioItem);var hi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,St=(o,e,r,n)=>{for(var t=n>1?void 0:n?gi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&hi(e,r,t),t};s.ContextMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${s.ContextMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${s.ContextMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
|
3286
3286
|
<div
|
|
3287
3287
|
part="context-menu-separator"
|
|
3288
3288
|
class="${u("-mx-1 h-px bg-border",this.className)}"
|
|
@@ -3290,14 +3290,14 @@ body {
|
|
|
3290
3290
|
role="separator"
|
|
3291
3291
|
id="${this.identifier}"
|
|
3292
3292
|
></div>
|
|
3293
|
-
`}`}},s.ContextMenuSeparator._counter=0,s.ContextMenuSeparator.styles=[l.css``,c],St([d.property({type:String})],s.ContextMenuSeparator.prototype,"_id",2),St([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuSeparator.prototype,"_hidden",2),s.ContextMenuSeparator=St([d.customElement("rtg-context-menu-separator")],s.ContextMenuSeparator);var
|
|
3293
|
+
`}`}},s.ContextMenuSeparator._counter=0,s.ContextMenuSeparator.styles=[l.css``,c],St([d.property({type:String})],s.ContextMenuSeparator.prototype,"_id",2),St([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuSeparator.prototype,"_hidden",2),s.ContextMenuSeparator=St([d.customElement("rtg-context-menu-separator")],s.ContextMenuSeparator);var mi=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,fi=(o,e,r,n)=>{for(var t=n>1?void 0:n?vi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&mi(e,r,t),t};s.ContextMenuShortcut=class extends l.LitElement{render(){return l.html`
|
|
3294
3294
|
<span
|
|
3295
3295
|
part="context-menu-shortcut"
|
|
3296
3296
|
class="${u("ml-auto text-xs font-semibold",this.className)}"
|
|
3297
3297
|
>
|
|
3298
3298
|
<slot></slot>
|
|
3299
3299
|
</span>
|
|
3300
|
-
`}},s.ContextMenuShortcut.styles=[l.css``,c],s.ContextMenuShortcut=
|
|
3300
|
+
`}},s.ContextMenuShortcut.styles=[l.css``,c],s.ContextMenuShortcut=fi([d.customElement("rtg-context-menu-shortcut")],s.ContextMenuShortcut);var bi=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,Er=(o,e,r,n)=>{for(var t=n>1?void 0:n?wi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&bi(e,r,t),t};s.ContextMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var n;const r=e.target;(n=this.shadowRoot)!=null&&n.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:n}=e,t=e.target.getBoundingClientRect();requestAnimationFrame(()=>{const i=this._content;i&&(i.style.position="absolute",i.style.left=`${r-t.left}px`,i.style.top=`${n-t.top}px`,i.dataset.state="open",this.isOpen=!0)})}get _content(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof s.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
|
-
`}},s.ContextMenu.styles=[l.css``,c],Er([d.state()],s.ContextMenu.prototype,"isOpen",2),s.ContextMenu=Er([d.customElement("rtg-context-menu")],s.ContextMenu);var
|
|
3309
|
+
`}},s.ContextMenu.styles=[l.css``,c],Er([d.state()],s.ContextMenu.prototype,"isOpen",2),s.ContextMenu=Er([d.customElement("rtg-context-menu")],s.ContextMenu);var yi=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,kt=(o,e,r,n)=>{for(var t=n>1?void 0:n?xi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&yi(e,r,t),t};let Me=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
|
3310
3310
|
<div
|
|
3311
3311
|
part="command"
|
|
3312
3312
|
class="${u("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md",this.className,this.twCLass)}"
|
|
@@ -3315,7 +3315,7 @@ body {
|
|
|
3315
3315
|
>
|
|
3316
3316
|
<slot></slot>
|
|
3317
3317
|
</div>
|
|
3318
|
-
`}};Me.styles=[l.css``,c],kt([d.property({type:String})],Me.prototype,"twCLass",2),kt([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],Me.prototype,"_input",2),Me=kt([d.customElement("rtg-command")],Me);var
|
|
3318
|
+
`}};Me.styles=[l.css``,c],kt([d.property({type:String})],Me.prototype,"twCLass",2),kt([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],Me.prototype,"_input",2),Me=kt([d.customElement("rtg-command")],Me);var Ci=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,Mt=(o,e,r,n)=>{for(var t=n>1?void 0:n?$i(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ci(e,r,t),t};let H=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="true"}get identifier(){var e,r;if(this._id!=="")return this._id;const o=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return o?this._id=`${o.getAttribute("id")}e${H._counter++}`:this._id=`rtgcmdrxlxe${H._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
|
3319
3319
|
<div
|
|
3320
3320
|
part="command-empty"
|
|
3321
3321
|
class="${u("py-6 text-center text-sm",this.className)}"
|
|
@@ -3325,7 +3325,7 @@ body {
|
|
|
3325
3325
|
>
|
|
3326
3326
|
<slot></slot>
|
|
3327
3327
|
</div>
|
|
3328
|
-
`}`}};H._counter=0,H.styles=[l.css``,c],Mt([d.property({type:String})],H.prototype,"_id",2),Mt([d.property({attribute:"aria-hidden",type:String})],H.prototype,"_hidden",2),H=Mt([d.customElement("rtg-command-empty")],H);var
|
|
3328
|
+
`}`}};H._counter=0,H.styles=[l.css``,c],Mt([d.property({type:String})],H.prototype,"_id",2),Mt([d.property({attribute:"aria-hidden",type:String})],H.prototype,"_hidden",2),H=Mt([d.customElement("rtg-command-empty")],H);var _i=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor,Ke=(o,e,r,n)=>{for(var t=n>1?void 0:n?Oi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&_i(e,r,t),t};let R=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const o=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return o?this._id=`${o.getAttribute("id")}g${R._counter++}`:this._id=`rtgcmdrxlxg${R._counter++}`,this._id}render(){const o="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`
|
|
3329
3329
|
<div
|
|
3330
3330
|
part="command-group"
|
|
3331
3331
|
class="${o}"
|
|
@@ -3348,7 +3348,7 @@ body {
|
|
|
3348
3348
|
<slot></slot>
|
|
3349
3349
|
</div>
|
|
3350
3350
|
</div>
|
|
3351
|
-
`}`}};R._counter=0,R.styles=[l.css``,c],Ke([d.property({type:String})],R.prototype,"heading",2),Ke([d.property({attribute:"id",type:String})],R.prototype,"_id",2),Ke([d.property({attribute:"aria-hidden",type:String})],R.prototype,"_hidden",2),R=Ke([d.customElement("rtg-command-group")],R);var
|
|
3351
|
+
`}`}};R._counter=0,R.styles=[l.css``,c],Ke([d.property({type:String})],R.prototype,"heading",2),Ke([d.property({attribute:"id",type:String})],R.prototype,"_id",2),Ke([d.property({attribute:"aria-hidden",type:String})],R.prototype,"_hidden",2),R=Ke([d.customElement("rtg-command-group")],R);var Pi=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,Dt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ei(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Pi(e,r,t),t};let De=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){var e,r;const o=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return o?`${o.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const o=this.parentElement;if(o){let e=!0;const r=o.querySelectorAll("rtg-command-list > rtg-command-group");r&&r.forEach(t=>{var m,g;let i=!0;const a=t.querySelectorAll("rtg-command-item");a&&a.forEach(v=>{((v==null?void 0:v.value)||"").toLowerCase().includes(this._value.toLowerCase())?(i=!1,e=!1,v.setAttribute("aria-hidden","false")):v.setAttribute("aria-hidden","true")}),t.setAttribute("aria-hidden",i?"true":"false");let p=t.previousElementSibling;p&&p.setAttribute("aria-hidden",i||((m=p.previousElementSibling)==null?void 0:m.getAttribute("aria-hidden"))==="true"?"true":"false"),p=t.nextElementSibling,p&&p.setAttribute("aria-hidden",i||((g=p.nextElementSibling)==null?void 0:g.getAttribute("aria-hidden"))==="true"?"true":"false")});const n=o.querySelector("rtg-command-empty");n&&n.setAttribute("aria-hidden",e?"false":"true")}}handleChange(o){const e=o.target;e&&(this._value=e.value,this.filterItems())}render(){return l.html`
|
|
3352
3352
|
<div
|
|
3353
3353
|
part="command-input"
|
|
3354
3354
|
class="${u("flex items-center border-b px-3",this.className)}"
|
|
@@ -3387,7 +3387,7 @@ body {
|
|
|
3387
3387
|
data-value="${this._value}"
|
|
3388
3388
|
/>
|
|
3389
3389
|
</div>
|
|
3390
|
-
`}};De.styles=[l.css``,c],Dt([d.property({type:String})],De.prototype,"placeholder",2),Dt([d.property({attribute:"value",type:String})],De.prototype,"_value",2),De=Dt([d.customElement("rtg-command-input")],De);var
|
|
3390
|
+
`}};De.styles=[l.css``,c],Dt([d.property({type:String})],De.prototype,"placeholder",2),Dt([d.property({attribute:"value",type:String})],De.prototype,"_value",2),De=Dt([d.customElement("rtg-command-input")],De);var Si=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,Ie=(o,e,r,n)=>{for(var t=n>1?void 0:n?ki(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Si(e,r,t),t};let I=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 o=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-group]");return o?this._id=`${o.getAttribute("id")}li${I._counter++}`:this._id=`rtgcmdrxgxli${I._counter++}`,this._id}get value(){var o;return((o=this.textContent)==null?void 0:o.trim())||""}handleMouseEvent(o){(o.type==="mouseover"||o.type==="focus")&&(this.selected=!0),o.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
3393
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 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)}"
|
|
@@ -3405,7 +3405,7 @@ body {
|
|
|
3405
3405
|
>
|
|
3406
3406
|
<slot></slot>
|
|
3407
3407
|
</div>
|
|
3408
|
-
`}`}};I._counter=0,I.styles=[l.css``,c],Ie([d.property({type:String})],I.prototype,"_id",2),Ie([d.property({attribute:"aria-hidden",type:String})],I.prototype,"_hidden",2),Ie([d.property({type:Function})],I.prototype,"onSelect",2),Ie([d.property({attribute:"data-value",type:String}),d.property({type:Boolean})],I.prototype,"identifier",1),I=Ie([d.customElement("rtg-command-item")],I);var
|
|
3408
|
+
`}`}};I._counter=0,I.styles=[l.css``,c],Ie([d.property({type:String})],I.prototype,"_id",2),Ie([d.property({attribute:"aria-hidden",type:String})],I.prototype,"_hidden",2),Ie([d.property({type:Function})],I.prototype,"onSelect",2),Ie([d.property({attribute:"data-value",type:String}),d.property({type:Boolean})],I.prototype,"identifier",1),I=Ie([d.customElement("rtg-command-item")],I);var Mi=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Ii=(o,e,r,n)=>{for(var t=n>1?void 0:n?Di(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Mi(e,r,t),t};let It=class extends l.LitElement{get identifier(){var e,r;const o=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return o?`${o.getAttribute("id")}l`:"rtgcmdrxl"}render(){return l.html`
|
|
3409
3409
|
<div
|
|
3410
3410
|
part="command-list"
|
|
3411
3411
|
class="${u("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
|
-
`}};It.styles=[l.css``,c],It=
|
|
3421
|
+
`}};It.styles=[l.css``,c],It=Ii([d.customElement("rtg-command-list")],It);var Li=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Lt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ai(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Li(e,r,t),t};let Y=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const o=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return o?this._id=`${o.getAttribute("id")}s${Y._counter++}`:this._id=`rtgcmdrxlxs${Y._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="${u("-mx-1 h-px bg-border",this.className)}"
|
|
@@ -3426,7 +3426,7 @@ body {
|
|
|
3426
3426
|
role="separator"
|
|
3427
3427
|
id="${this.identifier}"
|
|
3428
3428
|
></div>
|
|
3429
|
-
`}`}};Y._counter=0,Y.styles=[l.css``,c],Lt([d.property({type:String})],Y.prototype,"_id",2),Lt([d.property({attribute:"aria-hidden",type:String})],Y.prototype,"_hidden",2),Y=Lt([d.customElement("rtg-command-separator")],Y);var
|
|
3429
|
+
`}`}};Y._counter=0,Y.styles=[l.css``,c],Lt([d.property({type:String})],Y.prototype,"_id",2),Lt([d.property({attribute:"aria-hidden",type:String})],Y.prototype,"_hidden",2),Y=Lt([d.customElement("rtg-command-separator")],Y);var zi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,Ri=(o,e,r,n)=>{for(var t=n>1?void 0:n?Bi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&zi(e,r,t),t};let At=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{if(this._comboBox){[...document.getElementsByTagName("rtg-combo-box")].map(r=>{var n;r.uuid!==((n=this._comboBox)==null?void 0:n.uuid)&&(r.isOpen=!1)});const e=new CustomEvent("trigger-combo-box",{bubbles:!0,composed:!0,detail:{isOpen:!this._comboBox.isOpen}});this.dispatchEvent(e),this._comboBox.isOpen=!this._comboBox.isOpen}}}get _comboBox(){let o=this.parentElement;for(;o&&!(o instanceof s.ComboBox);)o=o.parentElement;return o}firstUpdated(o){var n,t;super.firstUpdated(o);const e=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="combo-box-trigger"]'),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",i=>{i.stopPropagation()})}render(){return l.html`
|
|
3430
3430
|
<button
|
|
3431
3431
|
type="button"
|
|
3432
3432
|
part="combo-box-trigger-button"
|
|
@@ -3440,14 +3440,14 @@ body {
|
|
|
3440
3440
|
<slot></slot>
|
|
3441
3441
|
${Fn()}
|
|
3442
3442
|
</button>
|
|
3443
|
-
`}};At.styles=[l.css``,c],At=
|
|
3443
|
+
`}};At.styles=[l.css``,c],At=Ri([d.customElement("rtg-combo-box-trigger")],At);var Ni=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor,Sr=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ti(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ni(e,r,t),t};let We=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="select a value",this.handleClick=()=>{if(this._comboBox){[...document.getElementsByTagName("rtg-combo-box")].map(r=>{var n;r.uuid!==((n=this._comboBox)==null?void 0:n.uuid)&&(r.isOpen=!1)});const e=new CustomEvent("trigger-combo-box",{bubbles:!0,composed:!0,detail:{isOpen:!this._comboBox.isOpen}});this.dispatchEvent(e),this._comboBox.isOpen=!this._comboBox.isOpen}},this.renderLabel=()=>this._comboBox&&this._comboBox.selectedValue.length>0?this._comboBox.selectedValue:this.placeholder}get _comboBox(){let o=this.parentElement;for(;o&&!(o instanceof s.ComboBox);)o=o.parentElement;return o}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",()=>{this.requestUpdate()})}firstUpdated(o){var n,t;super.firstUpdated(o);const e=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="combo-box-trigger"]'),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",i=>{i.stopPropagation()})}render(){return l.html`
|
|
3444
3444
|
<span
|
|
3445
3445
|
part="combo-box-value"
|
|
3446
3446
|
class="flex line-clamp-1 w-[180px]"
|
|
3447
3447
|
@click=${this.handleClick}
|
|
3448
3448
|
>${this.renderLabel()}</span
|
|
3449
3449
|
>
|
|
3450
|
-
`}};We.styles=[l.css``,c],
|
|
3450
|
+
`}};We.styles=[l.css``,c],Sr([d.property({type:String})],We.prototype,"placeholder",2),We=Sr([d.customElement("rtg-combo-box-value")],We);var qi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,Ze=(o,e,r,n)=>{for(var t=n>1?void 0:n?Vi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&qi(e,r,t),t};let re=class extends l.LitElement{constructor(){super(...arguments),this.childrenArray=[],this.searchKey="",this.focusedIndex=0,this.selectedValue="",this.checkRender=()=>this.childrenArray.length>0?this.childrenArray.filter(o=>{var e,r;return(r=o.value)==null?void 0:r.toLowerCase().includes((e=this.searchKey)==null?void 0:e.toLowerCase())}).map((o,e)=>{var r;return l.html`<rtg-combo-box-item
|
|
3451
3451
|
@mouseover="${n=>this.handleMouseOver(n,e)}"
|
|
3452
3452
|
data-hs-combo-box-value=${o}
|
|
3453
3453
|
tabIndex=${e}
|
|
@@ -3472,7 +3472,7 @@ body {
|
|
|
3472
3472
|
</div>
|
|
3473
3473
|
<div>${this.checkRender()}</div>
|
|
3474
3474
|
</div>
|
|
3475
|
-
`}};
|
|
3475
|
+
`}};re.styles=[l.css``,c],Ze([d.state()],re.prototype,"searchKey",2),Ze([d.state()],re.prototype,"focusedIndex",2),Ze([d.state()],re.prototype,"selectedValue",2),re=Ze([d.customElement("rtg-combo-box-group")],re);var Fi=Object.defineProperty,Gi=Object.getOwnPropertyDescriptor,L=(o,e,r,n)=>{for(var t=n>1?void 0:n?Gi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Fi(e,r,t),t};let P=class extends b{constructor(){super(...arguments),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(o,e)=>{},this.onMouseOver=(o,e)=>{},this.handleClick=o=>{this.onSelect(this.value,this.selectItemIndex),o.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 o=this.getFilteredAttributes();return l.html`
|
|
3476
3476
|
<div
|
|
3477
3477
|
${x(o)}
|
|
3478
3478
|
@click=${this.handleClick}
|
|
@@ -3496,10 +3496,10 @@ body {
|
|
|
3496
3496
|
<span
|
|
3497
3497
|
class="${this.isSelected?"visible":"invisible"} data-hs-combo-box-value mr-2"
|
|
3498
3498
|
>
|
|
3499
|
-
${
|
|
3499
|
+
${wr()}
|
|
3500
3500
|
</span>
|
|
3501
3501
|
</div>
|
|
3502
|
-
`}};
|
|
3502
|
+
`}};P.styles=[l.css``,c],L([d.property({type:String})],P.prototype,"value",2),L([d.property({type:String})],P.prototype,"key",2),L([d.property({type:Number})],P.prototype,"tabindex",2),L([d.property({type:Boolean})],P.prototype,"isSelected",2),L([d.property({type:Boolean})],P.prototype,"isFocus",2),L([d.property({type:String})],P.prototype,"class",2),L([d.property({type:Number})],P.prototype,"selectItemIndex",2),L([d.property({type:Function})],P.prototype,"onSelect",2),L([d.property({type:Function})],P.prototype,"onMouseOver",2),P=L([d.customElement("rtg-combo-box-item")],P);var Ui=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,Je=(o,e,r,n)=>{for(var t=n>1?void 0:n?Hi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ui(e,r,t),t};let be=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="Search Item ...",this.twClass="",this.searchValue=""}get _comboBoxGroup(){let o=this.parentElement;for(;o&&!(o instanceof re);)o=o.parentElement;return o}handleSearch(o){o.stopPropagation();const e=o.target;this.searchValue=e.value,this._comboBoxGroup&&(this._comboBoxGroup.searchKey=this.searchValue)}handleKeyDown(o){o.stopPropagation()}render(){return l.html`
|
|
3503
3503
|
<div class="flex items-center px-2">
|
|
3504
3504
|
${Gn()}
|
|
3505
3505
|
<input
|
|
@@ -3517,11 +3517,11 @@ body {
|
|
|
3517
3517
|
@keydown="${this.handleKeyDown}"
|
|
3518
3518
|
/>
|
|
3519
3519
|
</div>
|
|
3520
|
-
`}};be.styles=[l.css``,c],Je([d.property({type:String})],be.prototype,"placeholder",2),Je([d.property({type:String})],be.prototype,"twClass",2),Je([d.state()],be.prototype,"searchValue",2),be=Je([d.customElement("rtg-combo-box-input")],be);var
|
|
3520
|
+
`}};be.styles=[l.css``,c],Je([d.property({type:String})],be.prototype,"placeholder",2),Je([d.property({type:String})],be.prototype,"twClass",2),Je([d.state()],be.prototype,"searchValue",2),be=Je([d.customElement("rtg-combo-box-input")],be);var Yi=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Ki=(o,e,r,n)=>{for(var t=n>1?void 0:n?Xi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Yi(e,r,t),t};let zt=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>
|
|
3524
|
-
`}};zt.styles=[l.css``,c],zt=
|
|
3524
|
+
`}};zt.styles=[l.css``,c],zt=Ki([d.customElement("rtg-combo-box-empty")],zt);var Wi=Object.defineProperty,Zi=Object.getOwnPropertyDescriptor,N=(o,e,r,n)=>{for(var t=n>1?void 0:n?Zi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Wi(e,r,t),t};s.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.uuid=vr(),this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var t,i;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("[data-combo-box-uuid]"),n=e.target;if(!n.tagName.includes("RTG-COMBO")){if(!r||!r.contains(n))this.isOpen=!1;else if(!((i=n.shadowRoot)==null?void 0:i.firstElementChild))return}}}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",e=>{this.isOpen&&(this.selectedValue=e.detail.selectedItem,this.isOpen=!1,this.requestUpdate())})}firstUpdated(e){this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const n=r.closest("rtg-combo-box-item");n?(this.selectedValue=n.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}render(){return l.html`
|
|
3525
3525
|
<div
|
|
3526
3526
|
class="relative"
|
|
3527
3527
|
data-hs-combo-box=""
|
|
@@ -3535,7 +3535,7 @@ body {
|
|
|
3535
3535
|
<slot name="combo-box-content"></slot>
|
|
3536
3536
|
</div>
|
|
3537
3537
|
</div>
|
|
3538
|
-
`}},s.ComboBox.styles=[l.css``,c],N([d.state()],s.ComboBox.prototype,"isOpen",2),N([d.state()],s.ComboBox.prototype,"selectedValue",2),N([d.state()],s.ComboBox.prototype,"searchTerm",2),N([d.state()],s.ComboBox.prototype,"focusedIndex",2),N([d.state()],s.ComboBox.prototype,"filteredItems",2),N([d.state()],s.ComboBox.prototype,"uuid",2),N([d.property({type:String})],s.ComboBox.prototype,"label",2),N([d.property({type:Array})],s.ComboBox.prototype,"items",2),s.ComboBox=N([d.customElement("rtg-combo-box")],s.ComboBox);var
|
|
3538
|
+
`}},s.ComboBox.styles=[l.css``,c],N([d.state()],s.ComboBox.prototype,"isOpen",2),N([d.state()],s.ComboBox.prototype,"selectedValue",2),N([d.state()],s.ComboBox.prototype,"searchTerm",2),N([d.state()],s.ComboBox.prototype,"focusedIndex",2),N([d.state()],s.ComboBox.prototype,"filteredItems",2),N([d.state()],s.ComboBox.prototype,"uuid",2),N([d.property({type:String})],s.ComboBox.prototype,"label",2),N([d.property({type:Array})],s.ComboBox.prototype,"items",2),s.ComboBox=N([d.customElement("rtg-combo-box")],s.ComboBox);var Ji=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor,kr=(o,e,r,n)=>{for(var t=n>1?void 0:n?Qi(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ji(e,r,t),t};const ji="open",Mr="closed";s.DialogContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Mr,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=Mr)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof s.Dialog)return e;e=e.parentElement}return e}render(){return l.html`${this.state===ji?l.html`
|
|
3539
3539
|
<div
|
|
3540
3540
|
part="dialog-content"
|
|
3541
3541
|
class="${u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",this.className)}"
|
|
@@ -3564,18 +3564,18 @@ body {
|
|
|
3564
3564
|
><span class="sr-only">Close</span>
|
|
3565
3565
|
</button>
|
|
3566
3566
|
</div>
|
|
3567
|
-
`:l.nothing}`}},s.DialogContent.styles=[l.css``,c],
|
|
3567
|
+
`:l.nothing}`}},s.DialogContent.styles=[l.css``,c],kr([d.property({attribute:"data-state",type:String})],s.DialogContent.prototype,"state",2),s.DialogContent=kr([d.customElement("rtg-dialog-content")],s.DialogContent);var es=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,rs=(o,e,r,n)=>{for(var t=n>1?void 0:n?ts(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&es(e,r,t),t};const ns="closed";s.DialogClose=class extends l.LitElement{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof s.Dialog)return e;e=e.parentElement}return e}firstUpdated(e){var t;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"),n=r==null?void 0:r.assignedElements();n&&n.length>0&&n[0].addEventListener("click",()=>{const a=this._dialog;a&&(a.dataset.state=ns)})}render(){return l.html`
|
|
3568
3568
|
<div part="dialog-close">
|
|
3569
3569
|
<slot></slot>
|
|
3570
3570
|
</div>
|
|
3571
|
-
`}},s.DialogClose.styles=[l.css``,c],s.DialogClose=
|
|
3571
|
+
`}},s.DialogClose.styles=[l.css``,c],s.DialogClose=rs([d.customElement("rtg-dialog-close")],s.DialogClose);var os=Object.defineProperty,is=Object.getOwnPropertyDescriptor,ss=(o,e,r,n)=>{for(var t=n>1?void 0:n?is(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&os(e,r,t),t};s.DialogFooter=class extends l.LitElement{render(){return l.html`
|
|
3572
3572
|
<div
|
|
3573
3573
|
part="dialog-footer"
|
|
3574
3574
|
class="${u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",this.className)}"
|
|
3575
3575
|
>
|
|
3576
3576
|
<slot></slot>
|
|
3577
3577
|
</div>
|
|
3578
|
-
`}},s.DialogFooter.styles=[l.css``,c],s.DialogFooter=
|
|
3578
|
+
`}},s.DialogFooter.styles=[l.css``,c],s.DialogFooter=ss([d.customElement("rtg-dialog-footer")],s.DialogFooter);var as=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,Bt=(o,e,r,n)=>{for(var t=n>1?void 0:n?ls(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&as(e,r,t),t};s.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
|
|
3579
3579
|
<div
|
|
3580
3580
|
part="dialog-header"
|
|
3581
3581
|
class="${u("flex flex-col space-y-1.5 text-center sm:text-left",this.className)}"
|
|
@@ -3589,21 +3589,21 @@ body {
|
|
|
3589
3589
|
${this.description}
|
|
3590
3590
|
</p>
|
|
3591
3591
|
</div>
|
|
3592
|
-
`}},s.DialogHeader.styles=[l.css``,c],Bt([d.property({attribute:"title",type:String})],s.DialogHeader.prototype,"_title",2),Bt([d.property({type:String})],s.DialogHeader.prototype,"description",2),s.DialogHeader=Bt([d.customElement("rtg-dialog-header")],s.DialogHeader);var
|
|
3592
|
+
`}},s.DialogHeader.styles=[l.css``,c],Bt([d.property({attribute:"title",type:String})],s.DialogHeader.prototype,"_title",2),Bt([d.property({type:String})],s.DialogHeader.prototype,"description",2),s.DialogHeader=Bt([d.customElement("rtg-dialog-header")],s.DialogHeader);var ds=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,us=(o,e,r,n)=>{for(var t=n>1?void 0:n?cs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ds(e,r,t),t};s.DialogOverlay=class extends l.LitElement{render(){return l.html`
|
|
3593
3593
|
<div
|
|
3594
3594
|
part="dialog-overly"
|
|
3595
3595
|
class="${u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",this.className)}"
|
|
3596
3596
|
></div>
|
|
3597
|
-
`}},s.DialogOverlay.styles=[l.css``,c],s.DialogOverlay=
|
|
3597
|
+
`}},s.DialogOverlay.styles=[l.css``,c],s.DialogOverlay=us([d.customElement("rtg-dialog-overlay")],s.DialogOverlay);var ps=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,gs=(o,e,r,n)=>{for(var t=n>1?void 0:n?hs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ps(e,r,t),t};const ms="open";let Rt=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const o=this._dialog;o&&(o.dataset.state=ms)}}get _dialog(){let o=this.parentElement;for(;o;){if(o instanceof s.Dialog)return o;o=o.parentElement}return o}firstUpdated(o){var n,t;super.firstUpdated(o);const e=(n=this.shadowRoot)==null?void 0:n.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",i=>{i.stopPropagation()})}render(){return l.html`
|
|
3598
3598
|
<div part="dialog-trigger">
|
|
3599
3599
|
<slot></slot>
|
|
3600
3600
|
</div>
|
|
3601
|
-
`}};Rt.styles=[l.css``,c],Rt=
|
|
3601
|
+
`}};Rt.styles=[l.css``,c],Rt=gs([d.customElement("rtg-dialog-trigger")],Rt);var vs=Object.defineProperty,fs=Object.getOwnPropertyDescriptor,Dr=(o,e,r,n)=>{for(var t=n>1?void 0:n?fs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&vs(e,r,t),t};const bs="open",ws="closed";s.Dialog=class extends l.LitElement{constructor(){super(...arguments),this.state=ws}get _content(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof s.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
|
-
${this.state===
|
|
3603
|
+
${this.state===bs?l.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:l.nothing}
|
|
3604
3604
|
<slot></slot>
|
|
3605
3605
|
</div>
|
|
3606
|
-
`}},s.Dialog.styles=[l.css``,c],
|
|
3606
|
+
`}},s.Dialog.styles=[l.css``,c],Dr([d.property({attribute:"data-state",type:String})],s.Dialog.prototype,"state",2),s.Dialog=Dr([d.customElement("rtg-dialog")],s.Dialog);var ys=Object.defineProperty,xs=Object.getOwnPropertyDescriptor,Nt=(o,e,r,n)=>{for(var t=n>1?void 0:n?xs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ys(e,r,t),t};s.DropdownMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Ye,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof s.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,i;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-dropdown-menu-content"),n=(i=this.shadowRoot)==null?void 0:i.querySelector("button");r&&!r.contains(e.target)&&!(n!=null&&n.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
|
3607
3607
|
<div
|
|
3608
3608
|
part="dropdown-menu-content"
|
|
3609
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"
|
|
@@ -3611,7 +3611,7 @@ body {
|
|
|
3611
3611
|
>
|
|
3612
3612
|
<slot></slot>
|
|
3613
3613
|
</div>
|
|
3614
|
-
`}},s.DropdownMenuContent.styles=[l.css``,c],Nt([d.property({attribute:"data-state",type:String})],s.DropdownMenuContent.prototype,"state",2),Nt([d.state()],s.DropdownMenuContent.prototype,"isOpen",2),s.DropdownMenuContent=Nt([d.customElement("rtg-dropdown-menu-content")],s.DropdownMenuContent);var
|
|
3614
|
+
`}},s.DropdownMenuContent.styles=[l.css``,c],Nt([d.property({attribute:"data-state",type:String})],s.DropdownMenuContent.prototype,"state",2),Nt([d.state()],s.DropdownMenuContent.prototype,"isOpen",2),s.DropdownMenuContent=Nt([d.customElement("rtg-dropdown-menu-content")],s.DropdownMenuContent);var Cs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,Le=(o,e,r,n)=>{for(var t=n>1?void 0:n?$s(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Cs(e,r,t),t};s.DropdownMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.DropdownMenuItem._counter++}`:this._id=`rtgcmdrxgxli${s.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="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",this.className)}"
|
|
@@ -3628,7 +3628,7 @@ body {
|
|
|
3628
3628
|
>
|
|
3629
3629
|
<slot></slot>
|
|
3630
3630
|
</div>
|
|
3631
|
-
`}`}},s.DropdownMenuItem._counter=0,s.DropdownMenuItem.styles=[l.css``,c],Le([d.property({type:String})],s.DropdownMenuItem.prototype,"_id",2),Le([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuItem.prototype,"_hidden",2),Le([d.property({attribute:"data-value",type:String})],s.DropdownMenuItem.prototype,"value",1),Le([d.property({type:Boolean})],s.DropdownMenuItem.prototype,"selected",2),s.DropdownMenuItem=Le([d.customElement("rtg-dropdown-menu-item")],s.DropdownMenuItem);var
|
|
3631
|
+
`}`}},s.DropdownMenuItem._counter=0,s.DropdownMenuItem.styles=[l.css``,c],Le([d.property({type:String})],s.DropdownMenuItem.prototype,"_id",2),Le([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuItem.prototype,"_hidden",2),Le([d.property({attribute:"data-value",type:String})],s.DropdownMenuItem.prototype,"value",1),Le([d.property({type:Boolean})],s.DropdownMenuItem.prototype,"selected",2),s.DropdownMenuItem=Le([d.customElement("rtg-dropdown-menu-item")],s.DropdownMenuItem);var _s=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,ne=(o,e,r,n)=>{for(var t=n>1?void 0:n?Os(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&_s(e,r,t),t};s.DropdownMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.DropdownMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${s.DropdownMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
|
3632
3632
|
<div
|
|
3633
3633
|
part="dropdown-menu-radio"
|
|
3634
3634
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
@@ -3657,7 +3657,7 @@ body {
|
|
|
3657
3657
|
height: 16px;
|
|
3658
3658
|
display: inline-block;
|
|
3659
3659
|
}
|
|
3660
|
-
`,c],
|
|
3660
|
+
`,c],ne([d.property({type:String})],s.DropdownMenuRadioItem.prototype,"_id",2),ne([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuRadioItem.prototype,"_hidden",2),ne([d.property({attribute:"data-value",type:String})],s.DropdownMenuRadioItem.prototype,"value",1),ne([d.property({type:Boolean})],s.DropdownMenuRadioItem.prototype,"selected",2),ne([d.property({type:Boolean})],s.DropdownMenuRadioItem.prototype,"checked",2),ne([d.property({type:Boolean})],s.DropdownMenuRadioItem.prototype,"disabled",2),s.DropdownMenuRadioItem=ne([d.customElement("rtg-dropdown-menu-radio-item")],s.DropdownMenuRadioItem);var Ps=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,Tt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Es(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ps(e,r,t),t};s.DropdownMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${s.DropdownMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${s.DropdownMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
|
3661
3661
|
<div
|
|
3662
3662
|
part="dropdown-menu-seperator"
|
|
3663
3663
|
class="${u("-mx-1 h-px bg-border",this.className)}"
|
|
@@ -3665,7 +3665,7 @@ body {
|
|
|
3665
3665
|
role="separator"
|
|
3666
3666
|
id="${this.identifier}"
|
|
3667
3667
|
></div>
|
|
3668
|
-
`}`}},s.DropdownMenuSeparator._counter=0,s.DropdownMenuSeparator.styles=[l.css``,c],Tt([d.property({type:String})],s.DropdownMenuSeparator.prototype,"_id",2),Tt([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuSeparator.prototype,"_hidden",2),s.DropdownMenuSeparator=Tt([d.customElement("rtg-dropdown-menu-separator")],s.DropdownMenuSeparator);var
|
|
3668
|
+
`}`}},s.DropdownMenuSeparator._counter=0,s.DropdownMenuSeparator.styles=[l.css``,c],Tt([d.property({type:String})],s.DropdownMenuSeparator.prototype,"_id",2),Tt([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuSeparator.prototype,"_hidden",2),s.DropdownMenuSeparator=Tt([d.customElement("rtg-dropdown-menu-separator")],s.DropdownMenuSeparator);var Ss=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,oe=(o,e,r,n)=>{for(var t=n>1?void 0:n?ks(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ss(e,r,t),t};s.DropdownMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.DropdownMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${s.DropdownMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
|
|
3669
3669
|
<div
|
|
3670
3670
|
part="dropdown-menu-item"
|
|
3671
3671
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
@@ -3705,7 +3705,7 @@ body {
|
|
|
3705
3705
|
height: 16px;
|
|
3706
3706
|
display: inline-block;
|
|
3707
3707
|
}
|
|
3708
|
-
`,c],
|
|
3708
|
+
`,c],oe([d.property({type:String})],s.DropdownMenuCheckboxItem.prototype,"_id",2),oe([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuCheckboxItem.prototype,"_hidden",2),oe([d.property({attribute:"data-value",type:String})],s.DropdownMenuCheckboxItem.prototype,"value",1),oe([d.property({type:Boolean})],s.DropdownMenuCheckboxItem.prototype,"selected",2),oe([d.property({type:Boolean})],s.DropdownMenuCheckboxItem.prototype,"checked",2),oe([d.property({type:Boolean})],s.DropdownMenuCheckboxItem.prototype,"disabled",2),s.DropdownMenuCheckboxItem=oe([d.customElement("rtg-dropdown-menu-checkbox-item")],s.DropdownMenuCheckboxItem);var Ms=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Qe=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ds(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ms(e,r,t),t};s.DropdownMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${s.DropdownMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${s.DropdownMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
|
3709
3709
|
<div
|
|
3710
3710
|
part="dropdown-menu-group"
|
|
3711
3711
|
class="${e}"
|
|
@@ -3728,7 +3728,7 @@ body {
|
|
|
3728
3728
|
<slot></slot>
|
|
3729
3729
|
</div>
|
|
3730
3730
|
</div>
|
|
3731
|
-
`}`}},s.DropdownMenuGroup._counter=0,s.DropdownMenuGroup.styles=[l.css``,c],
|
|
3731
|
+
`}`}},s.DropdownMenuGroup._counter=0,s.DropdownMenuGroup.styles=[l.css``,c],Qe([d.property({type:String})],s.DropdownMenuGroup.prototype,"heading",2),Qe([d.property({attribute:"id",type:String})],s.DropdownMenuGroup.prototype,"_id",2),Qe([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuGroup.prototype,"_hidden",2),s.DropdownMenuGroup=Qe([d.customElement("rtg-dropdown-menu-group")],s.DropdownMenuGroup);var Is=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,Ir=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ls(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Is(e,r,t),t};s.DropdownMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var n;const r=e.target;(n=this.shadowRoot)!=null&&n.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 n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof s.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,7 +3737,7 @@ body {
|
|
|
3737
3737
|
<slot></slot>
|
|
3738
3738
|
</div>
|
|
3739
3739
|
</div>
|
|
3740
|
-
`}},s.DropdownMenu.styles=[l.css``,c],
|
|
3740
|
+
`}},s.DropdownMenu.styles=[l.css``,c],Ir([d.state()],s.DropdownMenu.prototype,"isOpen",2),s.DropdownMenu=Ir([d.customElement("rtg-dropdown-menu")],s.DropdownMenu);var As=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,je=(o,e,r,n)=>{for(var t=n>1?void 0:n?zs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&As(e,r,t),t};let ie=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(o){super.updated(o),this.state==="open"?this.isOpen=!0:this.isOpen=!1}handleHoverEnter(o){var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("rtg-hover-card-content");e&&!e.contains(o.target)&&(this.isOpen=!1)}render(){return l.html`
|
|
3741
3741
|
<div
|
|
3742
3742
|
part="hover-card-content"
|
|
3743
3743
|
class="${u("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)}"
|
|
@@ -3745,7 +3745,7 @@ body {
|
|
|
3745
3745
|
>
|
|
3746
3746
|
<slot></slot>
|
|
3747
3747
|
</div>
|
|
3748
|
-
`}};
|
|
3748
|
+
`}};ie.styles=[l.css``,c],je([d.property({type:String})],ie.prototype,"twClass",2),je([d.property({attribute:"data-state",type:String})],ie.prototype,"state",2),je([d.state()],ie.prototype,"isOpen",2),ie=je([d.customElement("rtg-hover-card-content")],ie);var Bs=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,qt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Rs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Bs(e,r,t),t};let Ae=class extends l.LitElement{constructor(){super(...arguments),this.twClass="",this.isOpen=!1}handleMouseEnter(){this.isOpen=!0}handleMouseLeave(){this.isOpen=!1}get _content(){var r;const o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),e=o==null?void 0:o.assignedElements();if(e){for(let n=0;n<e.length;n++)if(e[n]instanceof ie)return e[n]}return null}updated(o){super.updated(o);const e=this._content;e&&(e.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback(),document.addEventListener("mouseenter",this.handleMouseEnter),document.addEventListener("mouseleave",this.handleMouseLeave)}disconnectedCallback(){document.removeEventListener("mouseleave",this.handleMouseLeave),document.removeEventListener("mouseenter",this.handleMouseEnter),super.disconnectedCallback()}render(){return l.html`
|
|
3749
3749
|
<div part="hover-card" class="${this.twClass}">
|
|
3750
3750
|
<div>
|
|
3751
3751
|
<slot
|
|
@@ -3757,7 +3757,7 @@ body {
|
|
|
3757
3757
|
<slot></slot>
|
|
3758
3758
|
</div>
|
|
3759
3759
|
</div>
|
|
3760
|
-
`}};Ae.styles=[l.css``,c],qt([d.property({type:String})],Ae.prototype,"twClass",2),qt([d.state()],Ae.prototype,"isOpen",2),Ae=qt([d.customElement("rtg-hover-card")],Ae);const
|
|
3760
|
+
`}};Ae.styles=[l.css``,c],qt([d.property({type:String})],Ae.prototype,"twClass",2),qt([d.state()],Ae.prototype,"isOpen",2),Ae=qt([d.customElement("rtg-hover-card")],Ae);const Ns="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 Ts=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,se=(o,e,r,n)=>{for(var t=n>1?void 0:n?qs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ts(e,r,t),t};s.Input=class extends b{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}"
|
|
@@ -3766,9 +3766,9 @@ body {
|
|
|
3766
3766
|
.value=${this.type!=="file"?this.value:""}
|
|
3767
3767
|
@change="${this.handleInputChange}"
|
|
3768
3768
|
${x(e)}
|
|
3769
|
-
class="${u(
|
|
3769
|
+
class="${u(Ns,this.twClass)}"
|
|
3770
3770
|
/>
|
|
3771
|
-
`}},s.Input.styles=[l.css``,c],
|
|
3771
|
+
`}},s.Input.styles=[l.css``,c],se([d.property({type:Boolean})],s.Input.prototype,"disabled",2),se([d.property({type:String})],s.Input.prototype,"type",2),se([d.property({type:String})],s.Input.prototype,"placeholder",2),se([d.property({type:String})],s.Input.prototype,"defaultValue",2),se([d.property({type:String})],s.Input.prototype,"value",2),se([d.property({type:String})],s.Input.prototype,"twClass",2),s.Input=se([d.customElement("rtg-input")],s.Input);const Vs=k("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");var Fs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Lr=(o,e,r,n)=>{for(var t=n>1?void 0:n?Gs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Fs(e,r,t),t};let we=class extends b{constructor(){super(...arguments),this.for=""}firstUpdated(o){const e=["--label-text-color,--label-padding"];this.applyCustomClass(e,"label","label-base")}_onClick(o){var r;if(o.defaultPrevented)return;const e=(r=this.shadowRoot)==null?void 0:r.getElementById(this.for);e&&e.click()}getAttributesToExclude(){return["for","data-testid"]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
3772
3772
|
<label
|
|
3773
3773
|
${x(o)}
|
|
3774
3774
|
part="label"
|
|
@@ -3779,7 +3779,7 @@ body {
|
|
|
3779
3779
|
>
|
|
3780
3780
|
<slot></slot>
|
|
3781
3781
|
</label>
|
|
3782
|
-
`}};we.labelVariants=
|
|
3782
|
+
`}};we.labelVariants=Vs,we.styles=[l.css`
|
|
3783
3783
|
:root {
|
|
3784
3784
|
--label-text-color: inherit;
|
|
3785
3785
|
--label-padding: inherit;
|
|
@@ -3788,7 +3788,7 @@ body {
|
|
|
3788
3788
|
color: var(--label-text-color) !important;
|
|
3789
3789
|
padding: var(--label-padding) !important;
|
|
3790
3790
|
}
|
|
3791
|
-
`,c],
|
|
3791
|
+
`,c],Lr([d.property({type:String})],we.prototype,"for",2),we=Lr([d.customElement("rtg-label")],we);const Us=k("absolute z-50 rounded-md p-4 text-popover-foreground 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"},styleContent:{true:"w-72 border bg-popover shadow-md",false:""}},defaultVariants:{state:"closed",side:"bottom"}}),Hs=k("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 Ys=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,et=(o,e,r,n)=>{for(var t=n>1?void 0:n?Xs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ys(e,r,t),t};s.PopoverContent=class extends l.LitElement{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.styleContent=!0,this.side="bottom"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof s.Popover);)e=e.parentElement;return e}handleClickOutside(e){const r=this._popover;r&&!r.contains(e.target)&&(r.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))}preventClickPropagation(e){e.stopPropagation()}render(){const e=this.enableDefaultStyle?Us({state:"open",side:this.side,styleContent:this.styleContent}):Hs({state:"open",side:this.side});return l.html`
|
|
3792
3792
|
<div
|
|
3793
3793
|
@click="${this.preventClickPropagation}"
|
|
3794
3794
|
part="popover-content"
|
|
@@ -3797,11 +3797,11 @@ body {
|
|
|
3797
3797
|
>
|
|
3798
3798
|
<slot></slot>
|
|
3799
3799
|
</div>
|
|
3800
|
-
`}},s.PopoverContent.styles=[l.css``,c],et([d.property({type:Boolean})],s.PopoverContent.prototype,"enableDefaultStyle",2),et([d.property({type:Boolean})],s.PopoverContent.prototype,"styleContent",2),et([d.property({type:String})],s.PopoverContent.prototype,"side",2),s.PopoverContent=et([d.customElement("rtg-popover-content")],s.PopoverContent);var
|
|
3800
|
+
`}},s.PopoverContent.styles=[l.css``,c],et([d.property({type:Boolean})],s.PopoverContent.prototype,"enableDefaultStyle",2),et([d.property({type:Boolean})],s.PopoverContent.prototype,"styleContent",2),et([d.property({type:String})],s.PopoverContent.prototype,"side",2),s.PopoverContent=et([d.customElement("rtg-popover-content")],s.PopoverContent);var Ks=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,Zs=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ws(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ks(e,r,t),t};s.PopoverTrigger=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof s.Popover);)e=e.parentElement;return e}firstUpdated(e){var t,i;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="trigger-button"]'),n=r==null?void 0:r.assignedElements({flatten:!0});n&&n.length>0&&(n[0].click=this.handleClick),(i=this.shadowRoot)==null||i.addEventListener("click",a=>{a.stopPropagation()})}render(){return l.html`
|
|
3801
3801
|
<div part="popover-trigger" style="width: fit-content;">
|
|
3802
3802
|
<slot name="trigger-button"></slot>
|
|
3803
3803
|
</div>
|
|
3804
|
-
`}},s.PopoverTrigger.styles=[l.css``,c],s.PopoverTrigger=
|
|
3804
|
+
`}},s.PopoverTrigger.styles=[l.css``,c],s.PopoverTrigger=Zs([d.customElement("rtg-popover-trigger")],s.PopoverTrigger);var Js=Object.defineProperty,Qs=Object.getOwnPropertyDescriptor,Ar=(o,e,r,n)=>{for(var t=n>1?void 0:n?Qs(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Js(e,r,t),t};s.Popover=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1}firstUpdated(e){super.firstUpdated(e)}updated(e){super.updated(e)}render(){return l.html`
|
|
3805
3805
|
<div part="popover" style="position:relative">
|
|
3806
3806
|
<slot
|
|
3807
3807
|
name="trigger"
|
|
@@ -3811,7 +3811,7 @@ body {
|
|
|
3811
3811
|
<slot style="position:absolute" name="content"></slot>
|
|
3812
3812
|
</div>
|
|
3813
3813
|
</div>
|
|
3814
|
-
`}},s.Popover.styles=[l.css``,c],
|
|
3814
|
+
`}},s.Popover.styles=[l.css``,c],Ar([d.state()],s.Popover.prototype,"isOpen",2),s.Popover=Ar([d.customElement("rtg-popover")],s.Popover);const js="unChecked";var ea=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,ye=(o,e,r,n)=>{for(var t=n>1?void 0:n?ta(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ea(e,r,t),t};s.RadioGroupItem=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="radio-group-item",this.state=js}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
|
3815
3815
|
<div class="${u("flex items-center space-x-2")}" part="radio-group-item">
|
|
3816
3816
|
<button
|
|
3817
3817
|
type="button"
|
|
@@ -3829,7 +3829,7 @@ body {
|
|
|
3829
3829
|
data-state="checked"
|
|
3830
3830
|
class="flex items-center justify-center"
|
|
3831
3831
|
>
|
|
3832
|
-
${
|
|
3832
|
+
${Un()}
|
|
3833
3833
|
</span>`:l.nothing}
|
|
3834
3834
|
</button>
|
|
3835
3835
|
<label
|
|
@@ -3839,7 +3839,7 @@ body {
|
|
|
3839
3839
|
>${this.value}</label
|
|
3840
3840
|
>
|
|
3841
3841
|
</div>
|
|
3842
|
-
`}},s.RadioGroupItem.styles=[l.css``,c],ye([d.property({type:Boolean,reflect:!0})],s.RadioGroupItem.prototype,"checked",2),ye([d.property({type:Number})],s.RadioGroupItem.prototype,"tabindex",2),ye([d.property({type:String})],s.RadioGroupItem.prototype,"value",2),ye([d.property({type:String})],s.RadioGroupItem.prototype,"id",2),ye([d.property({attribute:"data-state",type:String})],s.RadioGroupItem.prototype,"state",2),s.RadioGroupItem=ye([d.customElement("rtg-radio-group-item")],s.RadioGroupItem);var
|
|
3842
|
+
`}},s.RadioGroupItem.styles=[l.css``,c],ye([d.property({type:Boolean,reflect:!0})],s.RadioGroupItem.prototype,"checked",2),ye([d.property({type:Number})],s.RadioGroupItem.prototype,"tabindex",2),ye([d.property({type:String})],s.RadioGroupItem.prototype,"value",2),ye([d.property({type:String})],s.RadioGroupItem.prototype,"id",2),ye([d.property({attribute:"data-state",type:String})],s.RadioGroupItem.prototype,"state",2),s.RadioGroupItem=ye([d.customElement("rtg-radio-group-item")],s.RadioGroupItem);var ra=Object.defineProperty,na=Object.getOwnPropertyDescriptor,zr=(o,e,r,n)=>{for(var t=n>1?void 0:n?na(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ra(e,r,t),t};s.RadioGroup=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
|
3843
3843
|
<div
|
|
3844
3844
|
part="radio-group"
|
|
3845
3845
|
class="${u("grid gap-2",this.twClass)}"
|
|
@@ -3847,7 +3847,7 @@ body {
|
|
|
3847
3847
|
>
|
|
3848
3848
|
<slot></slot>
|
|
3849
3849
|
</div>
|
|
3850
|
-
`}},s.RadioGroup.styles=[l.css``,c],
|
|
3850
|
+
`}},s.RadioGroup.styles=[l.css``,c],zr([d.property({type:String})],s.RadioGroup.prototype,"twClass",2),s.RadioGroup=zr([d.customElement("rtg-radio-group")],s.RadioGroup);var oa=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,A=(o,e,r,n)=>{for(var t=n>1?void 0:n?ia(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&oa(e,r,t),t};s.SelectItem=class extends b{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`
|
|
3851
3851
|
<div
|
|
3852
3852
|
${x(e)}
|
|
3853
3853
|
@click=${this.handleClick}
|
|
@@ -3871,10 +3871,10 @@ body {
|
|
|
3871
3871
|
<span
|
|
3872
3872
|
class="${this.isSelected?"visible":"invisible"} hs-select-selected:block mr-2"
|
|
3873
3873
|
>
|
|
3874
|
-
${
|
|
3874
|
+
${wr()}
|
|
3875
3875
|
</span>
|
|
3876
3876
|
</div>
|
|
3877
|
-
`}},s.SelectItem.styles=[l.css``,c],A([d.property({type:String})],s.SelectItem.prototype,"value",2),A([d.property({type:String})],s.SelectItem.prototype,"key",2),A([d.property({type:Number})],s.SelectItem.prototype,"tabindex",2),A([d.property({type:Boolean})],s.SelectItem.prototype,"isSelected",2),A([d.property({type:Boolean})],s.SelectItem.prototype,"isFocus",2),A([d.property({type:String})],s.SelectItem.prototype,"class",2),A([d.property({type:Number})],s.SelectItem.prototype,"selectItemIndex",2),A([d.property({type:Function})],s.SelectItem.prototype,"onSelect",2),A([d.property({type:Function})],s.SelectItem.prototype,"onMouseOver",2),s.SelectItem=A([d.customElement("rtg-select-item")],s.SelectItem);var
|
|
3877
|
+
`}},s.SelectItem.styles=[l.css``,c],A([d.property({type:String})],s.SelectItem.prototype,"value",2),A([d.property({type:String})],s.SelectItem.prototype,"key",2),A([d.property({type:Number})],s.SelectItem.prototype,"tabindex",2),A([d.property({type:Boolean})],s.SelectItem.prototype,"isSelected",2),A([d.property({type:Boolean})],s.SelectItem.prototype,"isFocus",2),A([d.property({type:String})],s.SelectItem.prototype,"class",2),A([d.property({type:Number})],s.SelectItem.prototype,"selectItemIndex",2),A([d.property({type:Function})],s.SelectItem.prototype,"onSelect",2),A([d.property({type:Function})],s.SelectItem.prototype,"onMouseOver",2),s.SelectItem=A([d.customElement("rtg-select-item")],s.SelectItem);var sa=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,Vt=(o,e,r,n)=>{for(var t=n>1?void 0:n?aa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&sa(e,r,t),t};s.SelectList=class extends l.LitElement{constructor(){super(...arguments),this.state=Ye,this.isOpen=!1}render(){return l.html`
|
|
3878
3878
|
<div
|
|
3879
3879
|
part="select-list"
|
|
3880
3880
|
class="absolute z-50 w-full max-h-72 p-1 bg-white border border-gray-200 rounded-lg overflow-hidden overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-900 dark:border-neutral-700"
|
|
@@ -3884,14 +3884,14 @@ body {
|
|
|
3884
3884
|
>
|
|
3885
3885
|
<slot></slot>
|
|
3886
3886
|
</div>
|
|
3887
|
-
`}},s.SelectList.styles=[l.css``,c],
|
|
3887
|
+
`}},s.SelectList.styles=[l.css``,c],Vt([d.property({attribute:"data-state",type:String})],s.SelectList.prototype,"state",2),Vt([d.state()],s.SelectList.prototype,"isOpen",2),s.SelectList=Vt([d.customElement("rtg-select-list")],s.SelectList);var la=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ca=(o,e,r,n)=>{for(var t=n>1?void 0:n?da(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&la(e,r,t),t};s.SelectLabel=class extends l.LitElement{render(){return l.html`
|
|
3888
3888
|
<span
|
|
3889
3889
|
part="select-label"
|
|
3890
3890
|
class="${u("px-4 w-full text-base font-bold",this.className)}"
|
|
3891
3891
|
>
|
|
3892
3892
|
<slot></slot>
|
|
3893
3893
|
</span>
|
|
3894
|
-
`}},s.SelectLabel.styles=[l.css``,c],s.SelectLabel=
|
|
3894
|
+
`}},s.SelectLabel.styles=[l.css``,c],s.SelectLabel=ca([d.customElement("rtg-select-label")],s.SelectLabel);var ua=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,Ft=(o,e,r,n)=>{for(var t=n>1?void 0:n?pa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ua(e,r,t),t};s.SelectSeperator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${s.SelectSeperator._counter++}`:this._id=`rtgcmdrxlxs${s.SelectSeperator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
|
3895
3895
|
<div
|
|
3896
3896
|
class="${u("-mx-1 h-px bg-border",this.className)}"
|
|
3897
3897
|
part="select-separator"
|
|
@@ -3899,7 +3899,7 @@ body {
|
|
|
3899
3899
|
role="separator"
|
|
3900
3900
|
id="${this.identifier}"
|
|
3901
3901
|
></div>
|
|
3902
|
-
`}`}},s.SelectSeperator._counter=0,s.SelectSeperator.styles=[l.css``,c],
|
|
3902
|
+
`}`}},s.SelectSeperator._counter=0,s.SelectSeperator.styles=[l.css``,c],Ft([d.property({type:String})],s.SelectSeperator.prototype,"_id",2),Ft([d.property({attribute:"aria-hidden",type:String})],s.SelectSeperator.prototype,"_hidden",2),s.SelectSeperator=Ft([d.customElement("rtg-select-separator")],s.SelectSeperator);var ha=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,ma=(o,e,r,n)=>{for(var t=n>1?void 0:n?ga(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ha(e,r,t),t};let Gt=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{if(this._select){[...document.getElementsByTagName("rtg-select")].map(r=>{var n;r.uuid!==((n=this._select)==null?void 0:n.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}}}get _select(){let o=this.parentElement;for(;o&&!(o instanceof s.Select);)o=o.parentElement;return o}firstUpdated(o){var n,t;super.firstUpdated(o);const e=(n=this.shadowRoot)==null?void 0:n.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",i=>{i.stopPropagation()})}render(){return l.html`
|
|
3903
3903
|
<button
|
|
3904
3904
|
type="button"
|
|
3905
3905
|
part="select-trigger"
|
|
@@ -3911,9 +3911,9 @@ body {
|
|
|
3911
3911
|
@click="${this.handleClick}"
|
|
3912
3912
|
>
|
|
3913
3913
|
<slot></slot>
|
|
3914
|
-
${
|
|
3914
|
+
${yr()}
|
|
3915
3915
|
</button>
|
|
3916
|
-
`}};
|
|
3916
|
+
`}};Gt.styles=[l.css``,c],Gt=ma([d.customElement("rtg-select-trigger")],Gt);var va=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,Ut=(o,e,r,n)=>{for(var t=n>1?void 0:n?fa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&va(e,r,t),t};let ze=class extends l.LitElement{constructor(){super(...arguments),this.childrenArray=[],this.focusedIndex=0,this.selectedValue=""}get _select(){let o=this.parentElement;for(;o&&!(o instanceof s.Select);)o=o.parentElement;return o}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()}),document.addEventListener("trigger-select",o=>{o.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(o){document.addEventListener("keydown",this.handleKeyDown.bind(this)),this.childrenArray=Array.from(this.children).filter(e=>e.tagName.toLowerCase()==="rtg-select-item"),this.requestUpdate()}updated(o){var e;(e=this._select)!=null&&e.isOpen||document.removeEventListener("keydown",this.handleKeyDown.bind(this))}onSelectedValue(o,e){this.focusedIndex=e,this.selectedValue=o}handleKeyDown(o){var e;if(o.preventDefault(),(e=this._select)!=null&&e.isOpen)switch(o.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(o,e){o.preventDefault(),this.focusedIndex=e}render(){return l.html`
|
|
3917
3917
|
<div
|
|
3918
3918
|
part="select-group"
|
|
3919
3919
|
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
|
|
@@ -3934,28 +3934,28 @@ body {
|
|
|
3934
3934
|
${o.textContent}
|
|
3935
3935
|
</rtg-select-item> `})}
|
|
3936
3936
|
</div>
|
|
3937
|
-
`}};ze.styles=[l.css``,c],Ut([d.state()],ze.prototype,"focusedIndex",2),Ut([d.state()],ze.prototype,"selectedValue",2),ze=Ut([d.customElement("rtg-select-group")],ze);var
|
|
3937
|
+
`}};ze.styles=[l.css``,c],Ut([d.state()],ze.prototype,"focusedIndex",2),Ut([d.state()],ze.prototype,"selectedValue",2),ze=Ut([d.customElement("rtg-select-group")],ze);var ba=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,Br=(o,e,r,n)=>{for(var t=n>1?void 0:n?wa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ba(e,r,t),t};let tt=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="select a value",this.handleClick=()=>{if(this._select){[...document.getElementsByTagName("rtg-select")].map(r=>{var n;r.uuid!==((n=this._select)==null?void 0:n.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 o=this.parentElement;for(;o&&!(o instanceof s.Select);)o=o.parentElement;return o}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()})}firstUpdated(o){var n,t;super.firstUpdated(o);const e=(n=this.shadowRoot)==null?void 0:n.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",i=>{i.stopPropagation()})}render(){return l.html`
|
|
3938
3938
|
<span
|
|
3939
3939
|
part="select-value"
|
|
3940
3940
|
class="flex line-clamp-1 w-[180px]"
|
|
3941
3941
|
@click=${this.handleClick}
|
|
3942
3942
|
>${this.renderLabel()}</span
|
|
3943
3943
|
>
|
|
3944
|
-
`}};tt.styles=[l.css``,c],
|
|
3944
|
+
`}};tt.styles=[l.css``,c],Br([d.property({type:String})],tt.prototype,"placeholder",2),tt=Br([d.customElement("rtg-select-value")],tt);var ya=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,rt=(o,e,r,n)=>{for(var t=n>1?void 0:n?xa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ya(e,r,t),t};s.Select=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.uuid=vr(),this.handleClickOutside=e=>{var t,i;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("[data-select-uuid]"),n=e.target;if(!n.tagName.includes("RTG-SELECT")){if(!r||!r.contains(n))this.isOpen=!1;else if(!((i=n.shadowRoot)==null?void 0:i.firstElementChild))return}}}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-select-item",e=>{this.isOpen&&(this.selectedValue=e.detail.selectedItem,this.isOpen=!1,this.requestUpdate())})}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}render(){return l.html`
|
|
3945
3945
|
<div part="select" class="relative" data-select-uuid=${this.uuid}>
|
|
3946
3946
|
<slot name="trigger"></slot>
|
|
3947
3947
|
<div ?hidden="${!this.isOpen}">
|
|
3948
3948
|
<slot name="content"></slot>
|
|
3949
3949
|
</div>
|
|
3950
3950
|
</div>
|
|
3951
|
-
`}},s.Select.styles=[l.css``,c],rt([d.state()],s.Select.prototype,"isOpen",2),rt([d.state()],s.Select.prototype,"selectedValue",2),rt([d.state()],s.Select.prototype,"uuid",2),s.Select=rt([d.customElement("rtg-select")],s.Select);var nt=(o=>(o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o))(nt||{}),
|
|
3951
|
+
`}},s.Select.styles=[l.css``,c],rt([d.state()],s.Select.prototype,"isOpen",2),rt([d.state()],s.Select.prototype,"selectedValue",2),rt([d.state()],s.Select.prototype,"uuid",2),s.Select=rt([d.customElement("rtg-select")],s.Select);var nt=(o=>(o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o))(nt||{}),Ca=Object.defineProperty,$a=Object.getOwnPropertyDescriptor,Ht=(o,e,r,n)=>{for(var t=n>1?void 0:n?$a(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ca(e,r,t),t};s.Separator=class extends b{constructor(){super(...arguments),this.orientation=nt.HORIZONTAL,this.twClass=""}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html` <div
|
|
3952
3952
|
part="separator"
|
|
3953
3953
|
${x(e)}
|
|
3954
3954
|
class=${u(this.orientation===nt.HORIZONTAL?"shrink-0 bg-border w-full h-[1px] my-4":"shrink-0 bg-border h-full w-[1px]",this.twClass)}
|
|
3955
3955
|
role="none"
|
|
3956
3956
|
>
|
|
3957
3957
|
${this.orientation!==nt.HORIZONTAL&&" "}
|
|
3958
|
-
</div>`}},s.Separator.styles=[l.css``,c],Ht([d.property({type:String})],s.Separator.prototype,"orientation",2),Ht([d.property({type:String})],s.Separator.prototype,"twClass",2),s.Separator=Ht([d.customElement("rtg-separator")],s.Separator);var
|
|
3958
|
+
</div>`}},s.Separator.styles=[l.css``,c],Ht([d.property({type:String})],s.Separator.prototype,"orientation",2),Ht([d.property({type:String})],s.Separator.prototype,"twClass",2),s.Separator=Ht([d.customElement("rtg-separator")],s.Separator);var _a=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,ot=(o,e,r,n)=>{for(var t=n>1?void 0:n?Oa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&_a(e,r,t),t};s.Switch=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.twClass=""}_toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked})))}render(){return l.html`
|
|
3959
3959
|
<div class="${u("flex items-center space-x-2",this.twClass)}">
|
|
3960
3960
|
<div
|
|
3961
3961
|
part="switch"
|
|
@@ -3976,11 +3976,11 @@ body {
|
|
|
3976
3976
|
</div>
|
|
3977
3977
|
<slot></slot>
|
|
3978
3978
|
</div>
|
|
3979
|
-
`}},s.Switch.styles=[l.css``,c],ot([d.property({type:Boolean,reflect:!0})],s.Switch.prototype,"checked",2),ot([d.property({type:Boolean})],s.Switch.prototype,"disabled",2),ot([d.property({type:String})],s.Switch.prototype,"twClass",2),s.Switch=ot([d.customElement("rtg-switch")],s.Switch);const
|
|
3979
|
+
`}},s.Switch.styles=[l.css``,c],ot([d.property({type:Boolean,reflect:!0})],s.Switch.prototype,"checked",2),ot([d.property({type:Boolean})],s.Switch.prototype,"disabled",2),ot([d.property({type:String})],s.Switch.prototype,"twClass",2),s.Switch=ot([d.customElement("rtg-switch")],s.Switch);const Pa="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 Ea=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,X=(o,e,r,n)=>{for(var t=n>1?void 0:n?Sa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ea(e,r,t),t};let z=class extends b{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(o){this.value=this.defaultValue}handleInputChange(o){const e=o.target;this.value=e.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
3980
3980
|
<textarea
|
|
3981
3981
|
part="textarea"
|
|
3982
3982
|
${x(o)}
|
|
3983
|
-
class="${u(
|
|
3983
|
+
class="${u(Pa,this.className,this.twCLass)}"
|
|
3984
3984
|
placeholder="${this.placeholder}"
|
|
3985
3985
|
.value=${this.value}
|
|
3986
3986
|
.rows="${this.rows}"
|
|
@@ -3988,12 +3988,12 @@ body {
|
|
|
3988
3988
|
?disabled=${this.disabled}
|
|
3989
3989
|
@change="${this.handleInputChange}"
|
|
3990
3990
|
/>
|
|
3991
|
-
`}};z.styles=[c],X([d.property({type:Boolean})],z.prototype,"disabled",2),X([d.property({type:String})],z.prototype,"placeholder",2),X([d.property({type:String})],z.prototype,"defaultValue",2),X([d.property({type:String})],z.prototype,"rows",2),X([d.property({type:String})],z.prototype,"cols",2),X([d.property({type:String})],z.prototype,"value",2),X([d.property({type:String})],z.prototype,"twCLass",2),z=X([d.customElement("rtg-textarea")],z);const
|
|
3991
|
+
`}};z.styles=[c],X([d.property({type:Boolean})],z.prototype,"disabled",2),X([d.property({type:String})],z.prototype,"placeholder",2),X([d.property({type:String})],z.prototype,"defaultValue",2),X([d.property({type:String})],z.prototype,"rows",2),X([d.property({type:String})],z.prototype,"cols",2),X([d.property({type:String})],z.prototype,"value",2),X([d.property({type:String})],z.prototype,"twCLass",2),z=X([d.customElement("rtg-textarea")],z);const ka=k("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]",Da="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 Ia=Object.defineProperty,La=Object.getOwnPropertyDescriptor,Yt=(o,e,r,n)=>{for(var t=n>1?void 0:n?La(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ia(e,r,t),t};const Rr="closed";let K=class extends l.LitElement{constructor(){super(...arguments),this.variant="default",this.state=Rr,this.handleCloseButtonClick=o=>{o.stopPropagation(),this.state=Rr,this.dispatchEvent(new CustomEvent("close-toast",{bubbles:!0,composed:!0}))}}render(){return l.html`
|
|
3992
3992
|
${this.state==="open"?l.html`<ol
|
|
3993
3993
|
part="toast-view-port"
|
|
3994
3994
|
tabindex="-1"
|
|
3995
3995
|
@click="${o=>o.stopPropagation()}"
|
|
3996
|
-
class="${u(
|
|
3996
|
+
class="${u(Ma,this.className)}"
|
|
3997
3997
|
>
|
|
3998
3998
|
<li
|
|
3999
3999
|
role="status"
|
|
@@ -4009,20 +4009,20 @@ body {
|
|
|
4009
4009
|
<slot></slot>
|
|
4010
4010
|
<button
|
|
4011
4011
|
type="button"
|
|
4012
|
-
class="${
|
|
4012
|
+
class="${Da}"
|
|
4013
4013
|
toast-close=""
|
|
4014
4014
|
data-radix-toast-announce-exclude=""
|
|
4015
4015
|
@click="${o=>this.handleCloseButtonClick(o)}"
|
|
4016
4016
|
>
|
|
4017
|
-
${
|
|
4017
|
+
${Hn()}
|
|
4018
4018
|
</button>
|
|
4019
4019
|
</li>
|
|
4020
4020
|
</ol>`:l.nothing}
|
|
4021
|
-
`}};K.toastVariants=
|
|
4021
|
+
`}};K.toastVariants=ka,K.styles=[l.css`
|
|
4022
4022
|
button[toast-close] {
|
|
4023
4023
|
pointer-events: auto;
|
|
4024
4024
|
}
|
|
4025
|
-
`,c],Yt([d.property({type:String})],K.prototype,"variant",2),Yt([d.property({attribute:"data-state",type:String})],K.prototype,"state",2),K=Yt([d.customElement("rtg-toast-view-port")],K);var
|
|
4025
|
+
`,c],Yt([d.property({type:String})],K.prototype,"variant",2),Yt([d.property({attribute:"data-state",type:String})],K.prototype,"state",2),K=Yt([d.customElement("rtg-toast-view-port")],K);var Aa=Object.defineProperty,za=Object.getOwnPropertyDescriptor,Xt=(o,e,r,n)=>{for(var t=n>1?void 0:n?za(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Aa(e,r,t),t};let Be=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 o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),e=o==null?void 0:o.assignedElements();if(e){for(let n=0;n<e.length;n++)if(e[n]instanceof K)return e[n]}return null}updated(o){super.updated(o);const e=this._content;e&&(e.dataset.state=this.isOpen?"open":"closed")}render(){return l.html`
|
|
4026
4026
|
<div class="{${this.twClass}}" part="toast">
|
|
4027
4027
|
<div>
|
|
4028
4028
|
<slot @click="${this.onClick}"></slot>
|
|
@@ -4030,7 +4030,7 @@ body {
|
|
|
4030
4030
|
<slot></slot>
|
|
4031
4031
|
<div></div>
|
|
4032
4032
|
</div>
|
|
4033
|
-
`}};Be.styles=[l.css``,c],Xt([d.property({type:String})],Be.prototype,"twClass",2),Xt([d.state()],Be.prototype,"isOpen",2),Be=Xt([d.customElement("rtg-toast")],Be);var
|
|
4033
|
+
`}};Be.styles=[l.css``,c],Xt([d.property({type:String})],Be.prototype,"twClass",2),Xt([d.state()],Be.prototype,"isOpen",2),Be=Xt([d.customElement("rtg-toast")],Be);var Nr=(o=>(o.SMALL="sm",o.MEDIUM="md",o.LARGE="lg",o))(Nr||{}),Tr=(o=>(o.DEFAULT="default",o.OUTLINE="outline",o))(Tr||{});const Ba=k("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 Ra=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,ae=(o,e,r,n)=>{for(var t=n>1?void 0:n?Na(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ra(e,r,t),t};s.Toggle=class extends b{constructor(){super(...arguments),this.disabled=!1,this.twCLass="",this.checked=!1,this.required=!1,this.variant=Tr.DEFAULT,this.size=Nr.SMALL}getAttributesToExclude(){return["disabled","checked","variant","size","required"]}toggle(){this.disabled||(this.checked=!this.checked)}render(){const e=this.getFilteredAttributes();return D.html`
|
|
4034
4034
|
<button
|
|
4035
4035
|
type="button"
|
|
4036
4036
|
part="toggle"
|
|
@@ -4045,7 +4045,10 @@ body {
|
|
|
4045
4045
|
>
|
|
4046
4046
|
<slot></slot>
|
|
4047
4047
|
</button>
|
|
4048
|
-
`}},s.Toggle.styles=[c],s.Toggle.toggleVariants=
|
|
4048
|
+
`}},s.Toggle.styles=[c],s.Toggle.toggleVariants=Ba,ae([d.property({type:Boolean})],s.Toggle.prototype,"disabled",2),ae([d.property({type:String})],s.Toggle.prototype,"twCLass",2),ae([d.property({attribute:!0,type:Boolean,reflect:!0})],s.Toggle.prototype,"checked",2),ae([d.property({attribute:!0,type:Boolean,reflect:!0})],s.Toggle.prototype,"required",2),ae([d.property({attribute:!0,type:String})],s.Toggle.prototype,"variant",2),ae([d.property({attribute:!0,type:String})],s.Toggle.prototype,"size",2),s.Toggle=ae([d.customElement("rtg-toggle")],s.Toggle);const Ta=k("inline-flex items-center justify-center rounded-sm text-sm font-medium ",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}});var qa=Object.defineProperty,Va=Object.getOwnPropertyDescriptor,xe=(o,e,r,n)=>{for(var t=n>1?void 0:n?Va(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&qa(e,r,t),t};let T=class extends l.LitElement{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.isCustomClass=!1,this.variant="default",this.size="default"}render(){const o=["1","2","3","4","5","6"];return l.html`
|
|
4049
|
+
<main>
|
|
4050
|
+
<rtg-progress .progressValue="${15}"></rtg-progress>
|
|
4051
|
+
</main>
|
|
4049
4052
|
<main>
|
|
4050
4053
|
<rtg-date-picker>
|
|
4051
4054
|
</rtg-date-picker>
|
|
@@ -4057,13 +4060,13 @@ body {
|
|
|
4057
4060
|
<main>
|
|
4058
4061
|
<div style="max-width:310px;max-height:310px;margin:auto">
|
|
4059
4062
|
<rtg-carousel .items="${o}">
|
|
4060
|
-
${o.map((
|
|
4061
|
-
<div slot="slide-${
|
|
4063
|
+
${o.map((r,n)=>l.html`
|
|
4064
|
+
<div slot="slide-${n}" class="p-1">
|
|
4062
4065
|
<rtg-card>
|
|
4063
4066
|
<rtg-card-content
|
|
4064
4067
|
class="flex aspect-square items-center justify-center p-6"
|
|
4065
4068
|
>
|
|
4066
|
-
<span class="text-4xl font-semibold">${
|
|
4069
|
+
<span class="text-4xl font-semibold">${r}</span>
|
|
4067
4070
|
</rtg-card-content>
|
|
4068
4071
|
</rtg-card>
|
|
4069
4072
|
</div>
|
|
@@ -4075,13 +4078,13 @@ body {
|
|
|
4075
4078
|
<main>
|
|
4076
4079
|
<div style="max-width:310px;max-height:310px;margin:auto">
|
|
4077
4080
|
<rtg-carousel size .items="${o}">
|
|
4078
|
-
${o.map((
|
|
4079
|
-
<div slot="slide-${
|
|
4081
|
+
${o.map((r,n)=>l.html`
|
|
4082
|
+
<div slot="slide-${n}" class="p-1">
|
|
4080
4083
|
<rtg-card>
|
|
4081
4084
|
<rtg-card-content
|
|
4082
4085
|
class="flex aspect-square items-center justify-center p-6"
|
|
4083
4086
|
>
|
|
4084
|
-
<span class="text-4xl font-semibold">${
|
|
4087
|
+
<span class="text-4xl font-semibold">${r}</span>
|
|
4085
4088
|
</rtg-card-content>
|
|
4086
4089
|
</rtg-card>
|
|
4087
4090
|
</div>
|
|
@@ -4093,13 +4096,13 @@ body {
|
|
|
4093
4096
|
<main>
|
|
4094
4097
|
<div style="width:310px;height:310px;margin-top:40px">
|
|
4095
4098
|
<rtg-carousel orientation="vertical" .items="${o}">
|
|
4096
|
-
${o.map((
|
|
4097
|
-
<div slot="slide-${
|
|
4099
|
+
${o.map((r,n)=>l.html`
|
|
4100
|
+
<div slot="slide-${n}" class="p-1">
|
|
4098
4101
|
<rtg-card>
|
|
4099
4102
|
<rtg-card-content
|
|
4100
4103
|
class="flex aspect-square items-center justify-center p-6"
|
|
4101
4104
|
>
|
|
4102
|
-
<span class="text-4xl font-semibold">${
|
|
4105
|
+
<span class="text-4xl font-semibold">${r}</span>
|
|
4103
4106
|
</rtg-card-content>
|
|
4104
4107
|
</rtg-card>
|
|
4105
4108
|
</div>
|
|
@@ -4505,7 +4508,7 @@ body {
|
|
|
4505
4508
|
</div>
|
|
4506
4509
|
</main>
|
|
4507
4510
|
|
|
4508
|
-
`}};T.buttonVariants=
|
|
4511
|
+
`}};T.buttonVariants=Ta,T.styles=[c,l.css`
|
|
4509
4512
|
:host {
|
|
4510
4513
|
--rtg-sample-demo-bg: unset;
|
|
4511
4514
|
--rtg-sample-demo-color: unset;
|
|
@@ -4539,7 +4542,7 @@ body {
|
|
|
4539
4542
|
<slot></slot>
|
|
4540
4543
|
</div>
|
|
4541
4544
|
</div>
|
|
4542
|
-
`}},s.MenubarMenu.styles=[l.css``,c],Ce([d.state()],s.MenubarMenu.prototype,"isOpen",2),Ce([d.state()],s.MenubarMenu.prototype,"uniqueIds",2),Ce([d.state()],s.MenubarMenu.prototype,"selectedMenu",2),Ce([d.state()],s.MenubarMenu.prototype,"isHovering",2),Ce([d.property({type:String})],s.MenubarMenu.prototype,"id",2),s.MenubarMenu=Ce([d.customElement("rtg-menubar-menu")],s.MenubarMenu);var
|
|
4545
|
+
`}},s.MenubarMenu.styles=[l.css``,c],Ce([d.state()],s.MenubarMenu.prototype,"isOpen",2),Ce([d.state()],s.MenubarMenu.prototype,"uniqueIds",2),Ce([d.state()],s.MenubarMenu.prototype,"selectedMenu",2),Ce([d.state()],s.MenubarMenu.prototype,"isHovering",2),Ce([d.property({type:String})],s.MenubarMenu.prototype,"id",2),s.MenubarMenu=Ce([d.customElement("rtg-menubar-menu")],s.MenubarMenu);var Ua=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Re=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ha(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ua(e,r,t),t};s.MenubarContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Ye,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof s.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,i;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-menubar-content"),n=(i=this.shadowRoot)==null?void 0:i.querySelector("button");r&&!r.contains(e.target)&&!(n!=null&&n.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
|
4543
4546
|
<div
|
|
4544
4547
|
part="menubar-content"
|
|
4545
4548
|
id="${this.id}"
|
|
@@ -4557,7 +4560,7 @@ body {
|
|
|
4557
4560
|
>
|
|
4558
4561
|
<slot></slot>
|
|
4559
4562
|
</div>
|
|
4560
|
-
`}},s.MenubarContent.styles=[l.css``,c],Re([d.property({attribute:"data-state",type:String})],s.MenubarContent.prototype,"state",2),Re([d.property({type:String})],s.MenubarContent.prototype,"id",2),Re([d.property({type:String})],s.MenubarContent.prototype,"side",2),Re([d.state()],s.MenubarContent.prototype,"isOpen",2),s.MenubarContent=Re([d.customElement("rtg-menubar-content")],s.MenubarContent);var
|
|
4563
|
+
`}},s.MenubarContent.styles=[l.css``,c],Re([d.property({attribute:"data-state",type:String})],s.MenubarContent.prototype,"state",2),Re([d.property({type:String})],s.MenubarContent.prototype,"id",2),Re([d.property({type:String})],s.MenubarContent.prototype,"side",2),Re([d.state()],s.MenubarContent.prototype,"isOpen",2),s.MenubarContent=Re([d.customElement("rtg-menubar-content")],s.MenubarContent);var Ya=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,it=(o,e,r,n)=>{for(var t=n>1?void 0:n?Xa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ya(e,r,t),t};s.MenubarGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${s.MenubarGroup._counter++}`:this._id=`rtgcmdrxlxg${s.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`
|
|
4561
4564
|
<div
|
|
4562
4565
|
part="menubar-group"
|
|
4563
4566
|
class="${e}"
|
|
@@ -4580,7 +4583,7 @@ body {
|
|
|
4580
4583
|
<slot></slot>
|
|
4581
4584
|
</div>
|
|
4582
4585
|
</div>
|
|
4583
|
-
`}`}},s.MenubarGroup._counter=0,s.MenubarGroup.styles=[l.css``,c],it([d.property({type:String})],s.MenubarGroup.prototype,"heading",2),it([d.property({attribute:"id",type:String})],s.MenubarGroup.prototype,"_id",2),it([d.property({attribute:"aria-hidden",type:String})],s.MenubarGroup.prototype,"_hidden",2),s.MenubarGroup=it([d.customElement("rtg-menubar-group")],s.MenubarGroup);var
|
|
4586
|
+
`}`}},s.MenubarGroup._counter=0,s.MenubarGroup.styles=[l.css``,c],it([d.property({type:String})],s.MenubarGroup.prototype,"heading",2),it([d.property({attribute:"id",type:String})],s.MenubarGroup.prototype,"_id",2),it([d.property({attribute:"aria-hidden",type:String})],s.MenubarGroup.prototype,"_hidden",2),s.MenubarGroup=it([d.customElement("rtg-menubar-group")],s.MenubarGroup);var Ka=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,Ne=(o,e,r,n)=>{for(var t=n>1?void 0:n?Wa(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ka(e,r,t),t};s.MenubarItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.MenubarItem._counter++}`:this._id=`rtgcmdrxgxli${s.MenubarItem._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`
|
|
4584
4587
|
<div
|
|
4585
4588
|
part="menubar-item"
|
|
4586
4589
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",this.className)}"
|
|
@@ -4597,7 +4600,7 @@ body {
|
|
|
4597
4600
|
>
|
|
4598
4601
|
<slot></slot>
|
|
4599
4602
|
</div>
|
|
4600
|
-
`}`}},s.MenubarItem._counter=0,s.MenubarItem.styles=[l.css``,c],Ne([d.property({type:String})],s.MenubarItem.prototype,"_id",2),Ne([d.property({attribute:"aria-hidden",type:String})],s.MenubarItem.prototype,"_hidden",2),Ne([d.property({attribute:"data-value",type:String})],s.MenubarItem.prototype,"value",1),Ne([d.property({type:Boolean})],s.MenubarItem.prototype,"selected",2),s.MenubarItem=Ne([d.customElement("rtg-menubar-item")],s.MenubarItem);var
|
|
4603
|
+
`}`}},s.MenubarItem._counter=0,s.MenubarItem.styles=[l.css``,c],Ne([d.property({type:String})],s.MenubarItem.prototype,"_id",2),Ne([d.property({attribute:"aria-hidden",type:String})],s.MenubarItem.prototype,"_hidden",2),Ne([d.property({attribute:"data-value",type:String})],s.MenubarItem.prototype,"value",1),Ne([d.property({type:Boolean})],s.MenubarItem.prototype,"selected",2),s.MenubarItem=Ne([d.customElement("rtg-menubar-item")],s.MenubarItem);var Za=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,le=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ja(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Za(e,r,t),t};s.MenubarRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.MenubarRadioItem._counter++}`:this._id=`rtgcmdrxgxli${s.MenubarRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
|
4601
4604
|
<div
|
|
4602
4605
|
part="menubar-radio-item"
|
|
4603
4606
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
@@ -4626,7 +4629,7 @@ body {
|
|
|
4626
4629
|
height: 16px;
|
|
4627
4630
|
display: inline-block;
|
|
4628
4631
|
}
|
|
4629
|
-
`,c],
|
|
4632
|
+
`,c],le([d.property({type:String})],s.MenubarRadioItem.prototype,"_id",2),le([d.property({attribute:"aria-hidden",type:String})],s.MenubarRadioItem.prototype,"_hidden",2),le([d.property({attribute:"data-value",type:String})],s.MenubarRadioItem.prototype,"value",1),le([d.property({type:Boolean})],s.MenubarRadioItem.prototype,"selected",2),le([d.property({type:Boolean})],s.MenubarRadioItem.prototype,"checked",2),le([d.property({type:Boolean})],s.MenubarRadioItem.prototype,"disabled",2),s.MenubarRadioItem=le([d.customElement("rtg-menubar-radio-item")],s.MenubarRadioItem);var Qa=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,de=(o,e,r,n)=>{for(var t=n>1?void 0:n?ja(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Qa(e,r,t),t};s.MenubarCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.MenubarCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${s.MenubarCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
|
|
4630
4633
|
<div
|
|
4631
4634
|
part="menubar-checkbox-item"
|
|
4632
4635
|
class="${u("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
@@ -4666,7 +4669,7 @@ body {
|
|
|
4666
4669
|
height: 16px;
|
|
4667
4670
|
display: inline-block;
|
|
4668
4671
|
}
|
|
4669
|
-
`,c],
|
|
4672
|
+
`,c],de([d.property({type:String})],s.MenubarCheckboxItem.prototype,"_id",2),de([d.property({attribute:"aria-hidden",type:String})],s.MenubarCheckboxItem.prototype,"_hidden",2),de([d.property({attribute:"data-value",type:String})],s.MenubarCheckboxItem.prototype,"value",1),de([d.property({type:Boolean})],s.MenubarCheckboxItem.prototype,"selected",2),de([d.property({type:Boolean})],s.MenubarCheckboxItem.prototype,"checked",2),de([d.property({type:Boolean})],s.MenubarCheckboxItem.prototype,"disabled",2),s.MenubarCheckboxItem=de([d.customElement("rtg-menubar-checkbox-item")],s.MenubarCheckboxItem);var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,Kt=(o,e,r,n)=>{for(var t=n>1?void 0:n?tl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&el(e,r,t),t};s.MenubarSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${s.MenubarSeparator._counter++}`:this._id=`rtgcmdrxlxs${s.MenubarSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
|
4670
4673
|
<div
|
|
4671
4674
|
part="menubar-seperator"
|
|
4672
4675
|
class="${u("-mx-1 h-px bg-border",this.className)}"
|
|
@@ -4674,12 +4677,12 @@ body {
|
|
|
4674
4677
|
role="separator"
|
|
4675
4678
|
id="${this.identifier}"
|
|
4676
4679
|
></div>
|
|
4677
|
-
`}`}},s.MenubarSeparator._counter=0,s.MenubarSeparator.styles=[l.css``,c],Kt([d.property({type:String})],s.MenubarSeparator.prototype,"_id",2),Kt([d.property({attribute:"aria-hidden",type:String})],s.MenubarSeparator.prototype,"_hidden",2),s.MenubarSeparator=Kt([d.customElement("rtg--menubar-separator")],s.MenubarSeparator);var
|
|
4680
|
+
`}`}},s.MenubarSeparator._counter=0,s.MenubarSeparator.styles=[l.css``,c],Kt([d.property({type:String})],s.MenubarSeparator.prototype,"_id",2),Kt([d.property({attribute:"aria-hidden",type:String})],s.MenubarSeparator.prototype,"_hidden",2),s.MenubarSeparator=Kt([d.customElement("rtg--menubar-separator")],s.MenubarSeparator);var rl=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,ol=(o,e,r,n)=>{for(var t=n>1?void 0:n?nl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&rl(e,r,t),t};s.MenubarShortcut=class extends l.LitElement{render(){return l.html`
|
|
4678
4681
|
part="menubar-shortcut"
|
|
4679
4682
|
<span class="${u("ml-auto text-xs font-semibold",this.className)}">
|
|
4680
4683
|
<slot></slot>
|
|
4681
4684
|
</span>
|
|
4682
|
-
`}},s.MenubarShortcut.styles=[l.css``,c],s.MenubarShortcut=
|
|
4685
|
+
`}},s.MenubarShortcut.styles=[l.css``,c],s.MenubarShortcut=ol([d.customElement("rtg-menubar-shortcut")],s.MenubarShortcut);var il=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,qr=(o,e,r,n)=>{for(var t=n>1?void 0:n?sl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&il(e,r,t),t};s.Menubar=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
|
4683
4686
|
<div
|
|
4684
4687
|
part="menubar"
|
|
4685
4688
|
role="menubar"
|
|
@@ -4690,7 +4693,7 @@ body {
|
|
|
4690
4693
|
>
|
|
4691
4694
|
<slot></slot>
|
|
4692
4695
|
</div>
|
|
4693
|
-
`}},s.Menubar.styles=[l.css``,c],
|
|
4696
|
+
`}},s.Menubar.styles=[l.css``,c],qr([d.property({type:String})],s.Menubar.prototype,"twCLass",2),s.Menubar=qr([d.customElement("rtg-menubar")],s.Menubar);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Vr=(o,e,r,n)=>{for(var t=n>1?void 0:n?ll(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&al(e,r,t),t};s.NavigationMenuList=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}render(){return l.html`
|
|
4694
4697
|
<div part="navigation-menu-list" class="${u("relative",this.twClass)}">
|
|
4695
4698
|
<ul
|
|
4696
4699
|
data-orientation="horizontal"
|
|
@@ -4701,7 +4704,7 @@ body {
|
|
|
4701
4704
|
</ul>
|
|
4702
4705
|
<div></div>
|
|
4703
4706
|
</div>
|
|
4704
|
-
`}},s.NavigationMenuList.styles=[l.css``,c],
|
|
4707
|
+
`}},s.NavigationMenuList.styles=[l.css``,c],Vr([d.property({type:String})],s.NavigationMenuList.prototype,"twClass",2),s.NavigationMenuList=Vr([d.customElement("rtg-navigation-menu-list")],s.NavigationMenuList);var dl=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,$e=(o,e,r,n)=>{for(var t=n>1?void 0:n?cl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&dl(e,r,t),t};s.NavigationMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.twClass="",this.state="close",this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof s.NavigationMenuItem);)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,i;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-menubar-content"),n=(i=this.shadowRoot)==null?void 0:i.querySelector("button");r&&!r.contains(e.target)&&!(n!=null&&n.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
|
4705
4708
|
<div
|
|
4706
4709
|
part="navigation-menu-content"
|
|
4707
4710
|
class="${u("absolute top-full flex justify-center",this.twClass)}"
|
|
@@ -4725,7 +4728,7 @@ body {
|
|
|
4725
4728
|
</div>
|
|
4726
4729
|
</div>
|
|
4727
4730
|
</div>
|
|
4728
|
-
`}},s.NavigationMenuContent.styles=[l.css``,c],$e([d.property({type:String})],s.NavigationMenuContent.prototype,"twClass",2),$e([d.property({attribute:"data-state",type:String})],s.NavigationMenuContent.prototype,"state",2),$e([d.property({type:String})],s.NavigationMenuContent.prototype,"id",2),$e([d.property({type:String})],s.NavigationMenuContent.prototype,"side",2),$e([d.state()],s.NavigationMenuContent.prototype,"isOpen",2),s.NavigationMenuContent=$e([d.customElement("rtg-navigation-menu-content")],s.NavigationMenuContent);var
|
|
4731
|
+
`}},s.NavigationMenuContent.styles=[l.css``,c],$e([d.property({type:String})],s.NavigationMenuContent.prototype,"twClass",2),$e([d.property({attribute:"data-state",type:String})],s.NavigationMenuContent.prototype,"state",2),$e([d.property({type:String})],s.NavigationMenuContent.prototype,"id",2),$e([d.property({type:String})],s.NavigationMenuContent.prototype,"side",2),$e([d.state()],s.NavigationMenuContent.prototype,"isOpen",2),s.NavigationMenuContent=$e([d.customElement("rtg-navigation-menu-content")],s.NavigationMenuContent);var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,ce=(o,e,r,n)=>{for(var t=n>1?void 0:n?pl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ul(e,r,t),t};s.NavigationMenuItem=class extends l.LitElement{constructor(){super(...arguments),this.twClass="",this.value="",this.navigationLink=!0,this.isOpen=!1,this.uniqueIds=[],this.isHovering=!1,this.handleClickOutside=e=>{var n;const r=e.target;(n=this.shadowRoot)!=null&&n.contains(r)||(this.isOpen=!1)}}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}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 n=0;n<e.length-1;n+=2){const t=e[n],i=e[n+1],a=crypto.randomUUID();r.push(a),t.dataset.pairId=a,i.dataset.pairId=a}this.uniqueIds=r,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}closeAllMenus(){document.querySelectorAll("rtg-navigation-menu-item").forEach(r=>{r.isOpen=!1,r.isHovering=!1})}toggleMenubar(e){e.stopPropagation(),document.querySelectorAll("rtg-navigation-menu-item").forEach(n=>{n!==this&&(n.isOpen=!1)}),this.isOpen=!this.isOpen}get _content(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof s.NavigationMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleHover(){this.closeAllMenus(),this.isHovering||(this.isHovering=!0,this.isOpen=!0)}handleMouseLeave(){this.isHovering=!1,this.isOpen=!1}render(){return l.html`
|
|
4729
4732
|
<li part="navigation-menu-item" class="${u("relative",this.twClass)}">
|
|
4730
4733
|
<div
|
|
4731
4734
|
class="flex"
|
|
@@ -4758,7 +4761,7 @@ body {
|
|
|
4758
4761
|
<slot></slot>
|
|
4759
4762
|
</div>
|
|
4760
4763
|
</li>
|
|
4761
|
-
`}},s.NavigationMenuItem.styles=[l.css``,c],
|
|
4764
|
+
`}},s.NavigationMenuItem.styles=[l.css``,c],ce([d.property({type:String})],s.NavigationMenuItem.prototype,"twClass",2),ce([d.property({type:String})],s.NavigationMenuItem.prototype,"value",2),ce([d.property({type:Boolean})],s.NavigationMenuItem.prototype,"navigationLink",2),ce([d.state()],s.NavigationMenuItem.prototype,"isOpen",2),ce([d.state()],s.NavigationMenuItem.prototype,"uniqueIds",2),ce([d.state()],s.NavigationMenuItem.prototype,"isHovering",2),s.NavigationMenuItem=ce([d.customElement("rtg-navigation-menu-item")],s.NavigationMenuItem);var hl=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,Wt=(o,e,r,n)=>{for(var t=n>1?void 0:n?gl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&hl(e,r,t),t};s.NavigationMenuLink=class extends l.LitElement{constructor(){super(...arguments),this.href="/",this.twCLass=""}render(){return l.html`
|
|
4762
4765
|
<a
|
|
4763
4766
|
part="navigation-menu-link"
|
|
4764
4767
|
class="${u("flex h-full w-full select-none flex-col justify-end rounded-md bg-gradient-to-b from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md",this.twCLass)}"
|
|
@@ -4773,7 +4776,7 @@ body {
|
|
|
4773
4776
|
a:hover {
|
|
4774
4777
|
background-color: #f2f2f2;
|
|
4775
4778
|
}
|
|
4776
|
-
`,c],Wt([d.property({type:String})],s.NavigationMenuLink.prototype,"href",2),Wt([d.property({type:String})],s.NavigationMenuLink.prototype,"twCLass",2),s.NavigationMenuLink=Wt([d.customElement("rtg-navigation-menu-link")],s.NavigationMenuLink);var
|
|
4779
|
+
`,c],Wt([d.property({type:String})],s.NavigationMenuLink.prototype,"href",2),Wt([d.property({type:String})],s.NavigationMenuLink.prototype,"twCLass",2),s.NavigationMenuLink=Wt([d.customElement("rtg-navigation-menu-link")],s.NavigationMenuLink);var ml=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,Fr=(o,e,r,n)=>{for(var t=n>1?void 0:n?vl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ml(e,r,t),t};s.NavigationMenu=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}render(){return l.html`
|
|
4777
4780
|
<nav
|
|
4778
4781
|
part="navigation-menu"
|
|
4779
4782
|
aria-label="Main"
|
|
@@ -4783,14 +4786,14 @@ body {
|
|
|
4783
4786
|
>
|
|
4784
4787
|
<slot></slot>
|
|
4785
4788
|
</nav>
|
|
4786
|
-
`}},s.NavigationMenu.styles=[l.css``,c],Fr([d.property({type:String})],s.NavigationMenu.prototype,"twClass",2),s.NavigationMenu=Fr([d.customElement("rtg-navigation-menu")],s.NavigationMenu);var
|
|
4789
|
+
`}},s.NavigationMenu.styles=[l.css``,c],Fr([d.property({type:String})],s.NavigationMenu.prototype,"twClass",2),s.NavigationMenu=Fr([d.customElement("rtg-navigation-menu")],s.NavigationMenu);var fl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,Gr=(o,e,r,n)=>{for(var t=n>1?void 0:n?bl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&fl(e,r,t),t};s.PaginationContent=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}render(){return l.html`
|
|
4787
4790
|
<ul
|
|
4788
4791
|
part="pagination-content"
|
|
4789
4792
|
class="${u("flex flex-row items-center gap-1",this.twClass)}"
|
|
4790
4793
|
>
|
|
4791
4794
|
<slot></slot>
|
|
4792
4795
|
</ul>
|
|
4793
|
-
`}},s.PaginationContent.styles=[l.css``,c],Gr([d.property({type:String})],s.PaginationContent.prototype,"twClass",2),s.PaginationContent=Gr([d.customElement("rtg-pagination-content")],s.PaginationContent);const
|
|
4796
|
+
`}},s.PaginationContent.styles=[l.css``,c],Gr([d.property({type:String})],s.PaginationContent.prototype,"twClass",2),s.PaginationContent=Gr([d.customElement("rtg-pagination-content")],s.PaginationContent);const wl=k("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:{outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"},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:"ghost",size:"default"}});var yl=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,ue=(o,e,r,n)=>{for(var t=n>1?void 0:n?xl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&yl(e,r,t),t};s.PaginationLink=class extends l.LitElement{constructor(){super(...arguments),this.state="close",this.twClass="",this.isActive=!1,this.size="icon",this.variant="ghost",this.href="javascript:void(0)"}updated(e){super.updated(e),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return l.html`
|
|
4794
4797
|
<a
|
|
4795
4798
|
part="pagination-link"
|
|
4796
4799
|
data-state="${this.isActive}"
|
|
@@ -4801,11 +4804,11 @@ body {
|
|
|
4801
4804
|
>
|
|
4802
4805
|
<slot></slot>
|
|
4803
4806
|
</a>
|
|
4804
|
-
`}},s.PaginationLink.styles=[l.css``,c],s.PaginationLink.paginationVariants=
|
|
4807
|
+
`}},s.PaginationLink.styles=[l.css``,c],s.PaginationLink.paginationVariants=wl,ue([d.property({attribute:"data-state",type:String})],s.PaginationLink.prototype,"state",2),ue([d.property({type:String})],s.PaginationLink.prototype,"twClass",2),ue([d.property({type:Boolean})],s.PaginationLink.prototype,"isActive",2),ue([d.property({type:String})],s.PaginationLink.prototype,"size",2),ue([d.property({type:String})],s.PaginationLink.prototype,"variant",2),ue([d.property({type:String})],s.PaginationLink.prototype,"href",2),s.PaginationLink=ue([d.customElement("rtg-pagination-link")],s.PaginationLink);var Cl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,st=(o,e,r,n)=>{for(var t=n>1?void 0:n?$l(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Cl(e,r,t),t};s.PaginationItem=class extends l.LitElement{constructor(){super(...arguments),this.twClass="",this.uniqueIds=[],this.isActive=!1}get _content(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof s.PaginationLink)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isActive?"open":"close")}handleClick(e){e.stopPropagation(),document.querySelectorAll("rtg-pagination-item").forEach(n=>{n!==this&&(n.isActive=!1)}),this.isActive=!this.isActive}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 n=0;n<e.length-1;n+=1){const t=e[n],i=crypto.randomUUID();r.push(i),t.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)}render(){return l.html`
|
|
4805
4808
|
<li part="pagination-item" class="${u("",this.twClass)}">
|
|
4806
4809
|
<slot @click="${this.handleClick}"></slot>
|
|
4807
4810
|
</li>
|
|
4808
|
-
`}},s.PaginationItem.styles=[l.css``,c],st([d.property({type:String})],s.PaginationItem.prototype,"twClass",2),st([d.state()],s.PaginationItem.prototype,"uniqueIds",2),st([d.property({type:Boolean})],s.PaginationItem.prototype,"isActive",2),s.PaginationItem=st([d.customElement("rtg-pagination-item")],s.PaginationItem);var
|
|
4811
|
+
`}},s.PaginationItem.styles=[l.css``,c],st([d.property({type:String})],s.PaginationItem.prototype,"twClass",2),st([d.state()],s.PaginationItem.prototype,"uniqueIds",2),st([d.property({type:Boolean})],s.PaginationItem.prototype,"isActive",2),s.PaginationItem=st([d.customElement("rtg-pagination-item")],s.PaginationItem);var _l=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Ur=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ol(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&_l(e,r,t),t};s.PaginationEllipsis=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}render(){return l.html`
|
|
4809
4812
|
<span
|
|
4810
4813
|
part="pagination-ellipsis"
|
|
4811
4814
|
class="${u("flex h-9 w-9 items-center justify-center",this.twClass)}"
|
|
@@ -4830,7 +4833,7 @@ body {
|
|
|
4830
4833
|
</span>
|
|
4831
4834
|
<slot></slot>
|
|
4832
4835
|
</span>
|
|
4833
|
-
`}},s.PaginationEllipsis.styles=[l.css``,c],
|
|
4836
|
+
`}},s.PaginationEllipsis.styles=[l.css``,c],Ur([d.property({type:String})],s.PaginationEllipsis.prototype,"twClass",2),s.PaginationEllipsis=Ur([d.customElement("rtg-pagination-ellipsis")],s.PaginationEllipsis);var Pl=Object.defineProperty,El=Object.getOwnPropertyDescriptor,Hr=(o,e,r,n)=>{for(var t=n>1?void 0:n?El(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Pl(e,r,t),t};s.PaginationNext=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}render(){return l.html`
|
|
4834
4837
|
<rtg-pagination-link
|
|
4835
4838
|
class="${u("gap-1 pl-2.5",this.twClass)}"
|
|
4836
4839
|
aria-label="Go to next page"
|
|
@@ -4853,7 +4856,7 @@ body {
|
|
|
4853
4856
|
</svg>
|
|
4854
4857
|
<slot></slot>
|
|
4855
4858
|
</rtg-pagination-link>
|
|
4856
|
-
`}},s.PaginationNext.styles=[l.css``,c],
|
|
4859
|
+
`}},s.PaginationNext.styles=[l.css``,c],Hr([d.property({type:String})],s.PaginationNext.prototype,"twClass",2),s.PaginationNext=Hr([d.customElement("rtg-pagination-next")],s.PaginationNext);var Sl=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,Yr=(o,e,r,n)=>{for(var t=n>1?void 0:n?kl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Sl(e,r,t),t};s.PaginationPrevious=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}render(){return l.html`
|
|
4857
4860
|
<rtg-pagination-link
|
|
4858
4861
|
class="${u("gap-1 pl-2.5",this.twClass)}"
|
|
4859
4862
|
aria-label="Go to previous page"
|
|
@@ -4875,7 +4878,7 @@ body {
|
|
|
4875
4878
|
><span>Previous</span>
|
|
4876
4879
|
<slot></slot>
|
|
4877
4880
|
</rtg-pagination-link>
|
|
4878
|
-
`}},s.PaginationPrevious.styles=[l.css``,c],
|
|
4881
|
+
`}},s.PaginationPrevious.styles=[l.css``,c],Yr([d.property({type:String})],s.PaginationPrevious.prototype,"twClass",2),s.PaginationPrevious=Yr([d.customElement("rtg-pagination-previous")],s.PaginationPrevious);var Ml=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Xr=(o,e,r,n)=>{for(var t=n>1?void 0:n?Dl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Ml(e,r,t),t};s.Pagination=class extends l.LitElement{constructor(){super(...arguments),this.twClass=""}render(){return l.html`
|
|
4879
4882
|
<nav
|
|
4880
4883
|
part="pagination"
|
|
4881
4884
|
role="navigation"
|
|
@@ -4884,7 +4887,7 @@ body {
|
|
|
4884
4887
|
>
|
|
4885
4888
|
<slot></slot>
|
|
4886
4889
|
</nav>
|
|
4887
|
-
`}},s.Pagination.styles=[l.css``,c],
|
|
4890
|
+
`}},s.Pagination.styles=[l.css``,c],Xr([d.property({type:String})],s.Pagination.prototype,"twClass",2),s.Pagination=Xr([d.customElement("rtg-pagination")],s.Pagination);var Il=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,pe=(o,e,r,n)=>{for(var t=n>1?void 0:n?Ll(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Il(e,r,t),t};s.Carousel=class extends l.LitElement{constructor(){super(...arguments),this.currentIndex=0,this.items=[],this.twCLass="",this.orientation="horizontal",this.size=!1}nextSlide(){this.currentIndex<this.items.length-1&&(this.currentIndex+=1,this.updateSlides())}prevSlide(){this.currentIndex>0&&(this.currentIndex-=1,this.updateSlides())}updateSlides(){let e;this.size?window.innerWidth>=1024?e=33.3333:window.innerWidth>=768?e=50:e=100:e=100;const r=this.orientation==="vertical"?100/this.items.length:100;this.slides.style.transform=this.orientation==="horizontal"?`translateX(-${this.currentIndex*e}%)`:`translateY(-${this.currentIndex*r}%)`}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",()=>this.updateSlides())}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",()=>this.updateSlides())}render(){const e=this.currentIndex===0,r=this.size===!0?window.innerWidth>=1024?3:window.innerWidth>=768?2:1:1,n=this.currentIndex>=this.items.length-r;return l.html`
|
|
4888
4891
|
<div part="rtg-carousel" class="carousel-wrapper">
|
|
4889
4892
|
<div class="${u("carousel",this.className)} ${this.twCLass}">
|
|
4890
4893
|
<div class="slides">
|
|
@@ -5083,162 +5086,143 @@ body {
|
|
|
5083
5086
|
.controls button:disabled {
|
|
5084
5087
|
background: rgba(0, 0, 0, 0.2);
|
|
5085
5088
|
}
|
|
5086
|
-
`,
|
|
5089
|
+
`,pe([d.property({type:Number})],s.Carousel.prototype,"currentIndex",2),pe([d.property({type:Array})],s.Carousel.prototype,"items",2),pe([d.property({type:String})],s.Carousel.prototype,"twCLass",2),pe([d.property({type:String})],s.Carousel.prototype,"orientation",2),pe([d.property({type:Boolean})],s.Carousel.prototype,"size",2),pe([d.query(".slides")],s.Carousel.prototype,"slides",2),s.Carousel=pe([d.customElement("rtg-carousel")],s.Carousel);const Al=k("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:{outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-7 w-7 p-0"}},defaultVariants:{variant:"outline",size:"default"}});var zl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,W=(o,e,r,n)=>{for(var t=n>1?void 0:n?Bl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&zl(e,r,t),t};s.Calendar=class extends l.LitElement{constructor(){super(...arguments),this.currentDate=new Date,this.selectedDate=new Date,this.variant="outline",this.size="default",this.styleCalendar=!1,this.twCLass="",this.mode="default"}getDaysInMonth(e,r){return new Date(e,r+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(e,r){if(!r){const n=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);n.getMonth()===this.currentDate.getMonth()&&(this.selectedDate=n,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:this.selectedDate},bubbles:!0,composed:!0})))}}render(){const e=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),n=this.getDaysInMonth(e,r),t=new Date(e,r,1).getDay(),i=new Date(e,r,0).getDate();let a=Array.from({length:t},(p,m)=>({day:(i-(t-1)+m).toString(),isInactive:!0}));return a=a.concat(Array.from({length:n},(p,m)=>({day:(m+1).toString(),isInactive:!1}))),l.html`
|
|
5087
5090
|
<div
|
|
5088
5091
|
part="calendar"
|
|
5089
|
-
class="${u("
|
|
5092
|
+
class="${u("p-3 rounded-md border shadow",this.styleCalendar?"styled-calendar":"",this.className,this.twCLass)}"
|
|
5090
5093
|
>
|
|
5091
|
-
<div
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5094
|
+
<div
|
|
5095
|
+
class="flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0"
|
|
5096
|
+
>
|
|
5097
|
+
<div class="space-y-4">
|
|
5098
|
+
<div class="flex justify-center pt-1 relative items-center">
|
|
5099
|
+
<div class="space-x-1 flex items-center">
|
|
5100
|
+
<button
|
|
5101
|
+
style="width:1.75rem"
|
|
5102
|
+
class="${u(s.Calendar.buttonVariants({variant:this.variant,size:this.size,className:this.className})),"nav-button absolute left-2"}"
|
|
5103
|
+
@click="${this.previousMonth}"
|
|
5104
|
+
>
|
|
5105
|
+
<svg
|
|
5106
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5107
|
+
width="24"
|
|
5108
|
+
height="24"
|
|
5109
|
+
viewBox="0 0 24 24"
|
|
5110
|
+
fill="none"
|
|
5111
|
+
stroke="currentColor"
|
|
5112
|
+
stroke-width="2"
|
|
5113
|
+
stroke-linecap="round"
|
|
5114
|
+
stroke-linejoin="round"
|
|
5115
|
+
style="width:1.2rem;height:1.2rem;margin-left:-4px"
|
|
5116
|
+
class="lucide lucide-chevron-left rdp-nav_icon"
|
|
5117
|
+
>
|
|
5118
|
+
<path d="m15 18-6-6 6-6"></path>
|
|
5119
|
+
</svg>
|
|
5120
|
+
</button>
|
|
5121
|
+
<div class="text-sm font-medium">
|
|
5122
|
+
${this.currentDate.toLocaleString("default",{month:"long",year:"numeric"})}
|
|
5123
|
+
</div>
|
|
5124
|
+
<button
|
|
5125
|
+
style="width:1.75rem"
|
|
5126
|
+
class="${u(s.Calendar.buttonVariants({variant:this.variant,size:this.size,className:this.className})),"nav-button absolute right-1"}"
|
|
5127
|
+
@click="${this.nextMonth}"
|
|
5128
|
+
>
|
|
5129
|
+
<svg
|
|
5130
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5131
|
+
width="48"
|
|
5132
|
+
height="48"
|
|
5133
|
+
viewBox="0 0 24 24"
|
|
5134
|
+
fill="none"
|
|
5135
|
+
stroke="currentColor"
|
|
5136
|
+
stroke-width="2"
|
|
5137
|
+
stroke-linecap="round"
|
|
5138
|
+
stroke-linejoin="round"
|
|
5139
|
+
style="width:1.2rem;height:1.2rem;margin-left:-4px"
|
|
5140
|
+
class="lucide lucide-chevron-right rdp-nav_icon"
|
|
5141
|
+
>
|
|
5142
|
+
<path d="m9 18 6-6-6-6"></path>
|
|
5143
|
+
</svg>
|
|
5144
|
+
</button>
|
|
5142
5145
|
</div>
|
|
5143
|
-
|
|
5146
|
+
</div>
|
|
5147
|
+
<table class="w-full border-collapse space-y-1" role="grid">
|
|
5148
|
+
<thead class="rdp-head">
|
|
5149
|
+
<tr class="flex">
|
|
5150
|
+
${["Su","Mo","Tu","We","Th","Fr","Sa"].map(p=>l.html`
|
|
5151
|
+
<th
|
|
5152
|
+
scope="col"
|
|
5153
|
+
class="text-xs text-muted-foreground rounded-md w-8 font-normal"
|
|
5154
|
+
aria-label="${p}"
|
|
5155
|
+
>
|
|
5156
|
+
${p}
|
|
5157
|
+
</th>
|
|
5158
|
+
`)}
|
|
5159
|
+
</tr>
|
|
5160
|
+
</thead>
|
|
5161
|
+
<tbody class="rdp-tbody">
|
|
5162
|
+
${Array.from({length:Math.ceil(a.length/7)},(p,m)=>l.html`
|
|
5163
|
+
<tr class="flex w-full mt-2">
|
|
5164
|
+
${a.slice(m*7,(m+1)*7).map(g=>l.html`
|
|
5165
|
+
<td
|
|
5166
|
+
class="${u("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50",this.mode==="range"?"[&:has(.day-range-end)]:rounded-r-md [&:has(.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md")}"
|
|
5167
|
+
role="presentation"
|
|
5168
|
+
>
|
|
5169
|
+
<button
|
|
5170
|
+
name="day"
|
|
5171
|
+
class="${u("flex justify-center items-center rounded cursor-pointer transition-colors duration-300 ease-in-out h-8 w-8 font-normal text-sm text-accent-foreground hover:bg-accent hover:text-accent-foreground",g.isInactive&&"hover:bg-accent text-muted-foreground opacity-50",g.day===this.selectedDate.getDate().toString()&&this.currentDate.getMonth()===this.selectedDate.getMonth()&&this.currentDate.getFullYear()===this.selectedDate.getFullYear()&&!g.isInactive?"bg-primary text-primary-foreground opacity-100 hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground":"")}"
|
|
5172
|
+
role="gridcell"
|
|
5173
|
+
tabindex="-1"
|
|
5174
|
+
type="button"
|
|
5175
|
+
aria-selected="${g.day===this.selectedDate.getDate().toString()&&this.currentDate.getMonth()===this.selectedDate.getMonth()&&this.currentDate.getFullYear()===this.selectedDate.getFullYear()&&!g.isInactive}"
|
|
5176
|
+
@click="${()=>this.selectDate(Number(g.day),g.isInactive)}"
|
|
5177
|
+
>
|
|
5178
|
+
${g.day}
|
|
5179
|
+
</button>
|
|
5180
|
+
</td>
|
|
5181
|
+
`)}
|
|
5182
|
+
</tr>
|
|
5183
|
+
`)}
|
|
5184
|
+
</tbody>
|
|
5185
|
+
</table>
|
|
5186
|
+
</div>
|
|
5144
5187
|
</div>
|
|
5145
5188
|
</div>
|
|
5146
|
-
`}},s.Calendar.styles=l.css`
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
color: #000;
|
|
5184
|
-
}
|
|
5185
|
-
.nav-button svg {
|
|
5186
|
-
pointer-events: none;
|
|
5187
|
-
width: 1rem;
|
|
5188
|
-
height: 1rem;
|
|
5189
|
-
flex-shrink: 0;
|
|
5190
|
-
padding-top: 4px;
|
|
5191
|
-
}
|
|
5192
|
-
.calendar-grid {
|
|
5193
|
-
display: grid;
|
|
5194
|
-
grid-template-columns: repeat(7, 1fr);
|
|
5195
|
-
text-align: center;
|
|
5196
|
-
gap: 4px;
|
|
5197
|
-
}
|
|
5198
|
-
.day {
|
|
5199
|
-
display: flex;
|
|
5200
|
-
justify-content: center;
|
|
5201
|
-
align-items: center;
|
|
5202
|
-
border-radius: 4px;
|
|
5203
|
-
cursor: pointer;
|
|
5204
|
-
transition: background-color 0.3s ease;
|
|
5205
|
-
height: 2rem;
|
|
5206
|
-
width: 2rem;
|
|
5207
|
-
font-weight: 400;
|
|
5208
|
-
color: #5d5656;
|
|
5209
|
-
}
|
|
5210
|
-
.day-header {
|
|
5211
|
-
color: #6b7280;
|
|
5212
|
-
border-radius: 6px;
|
|
5213
|
-
width: 2rem;
|
|
5214
|
-
font-weight: 400;
|
|
5215
|
-
font-size: 0.8rem;
|
|
5216
|
-
text-align: center;
|
|
5217
|
-
padding: 4px 0;
|
|
5218
|
-
}
|
|
5219
|
-
.selected {
|
|
5220
|
-
background: black !important;
|
|
5221
|
-
color: white !important;
|
|
5222
|
-
opacity: 1;
|
|
5223
|
-
}
|
|
5224
|
-
.inactive {
|
|
5225
|
-
color: #ccc;
|
|
5226
|
-
pointer-events: none;
|
|
5227
|
-
}
|
|
5228
|
-
.day:hover:not(.selected) {
|
|
5229
|
-
background-color: #f0f0f0;
|
|
5230
|
-
}
|
|
5231
|
-
.day.inactive:hover {
|
|
5232
|
-
background-color: transparent;
|
|
5233
|
-
}
|
|
5234
|
-
.text-sm {
|
|
5235
|
-
font-size: 0.875rem;
|
|
5236
|
-
line-height: 1.25rem;
|
|
5237
|
-
}
|
|
5238
|
-
.font-medium {
|
|
5239
|
-
font-weight: 500;
|
|
5240
|
-
}
|
|
5241
|
-
`,s.Calendar.buttonVariants=Ll,pe([d.property({type:Object})],s.Calendar.prototype,"currentDate",2),pe([d.property({type:Object})],s.Calendar.prototype,"selectedDate",2),pe([d.property({type:String})],s.Calendar.prototype,"variant",2),pe([d.property({type:String})],s.Calendar.prototype,"size",2),pe([d.property({type:Boolean})],s.Calendar.prototype,"styleCalendar",2),pe([d.property({type:String})],s.Calendar.prototype,"twCLass",2),s.Calendar=pe([d.customElement("rtg-calendar")],s.Calendar);var Bl=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Zt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Rl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Bl(e,r,t),t};s.DatePicker=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.date,this.requestUpdate()}render(){return l.html`
|
|
5189
|
+
`}},s.Calendar.styles=[l.css`
|
|
5190
|
+
:host {
|
|
5191
|
+
display: inline-block;
|
|
5192
|
+
font-family: Arial, sans-serif;
|
|
5193
|
+
border: 1px solid #e0e0e0;
|
|
5194
|
+
border-radius: 8px;
|
|
5195
|
+
padding: 8px;
|
|
5196
|
+
}
|
|
5197
|
+
.styled-calendar {
|
|
5198
|
+
margin-left: -24px;
|
|
5199
|
+
margin-top: -24px;
|
|
5200
|
+
}
|
|
5201
|
+
.nav-button {
|
|
5202
|
+
background: transparent;
|
|
5203
|
+
border: 1px solid #ccc;
|
|
5204
|
+
cursor: pointer;
|
|
5205
|
+
font-size: 16px;
|
|
5206
|
+
border-radius: 6px;
|
|
5207
|
+
padding: 4px 8px;
|
|
5208
|
+
transition: background-color 0.3s ease;
|
|
5209
|
+
}
|
|
5210
|
+
.nav-button svg {
|
|
5211
|
+
pointer-events: none;
|
|
5212
|
+
width: 1rem;
|
|
5213
|
+
height: 1rem;
|
|
5214
|
+
flex-shrink: 0;
|
|
5215
|
+
padding-top: 4px;
|
|
5216
|
+
}
|
|
5217
|
+
table {
|
|
5218
|
+
width: 100%;
|
|
5219
|
+
border-collapse: collapse;
|
|
5220
|
+
}
|
|
5221
|
+
td {
|
|
5222
|
+
text-align: center;
|
|
5223
|
+
padding: 0;
|
|
5224
|
+
}
|
|
5225
|
+
`,c],s.Calendar.buttonVariants=Al,W([d.property({type:Object})],s.Calendar.prototype,"currentDate",2),W([d.property({type:Object})],s.Calendar.prototype,"selectedDate",2),W([d.property({type:String})],s.Calendar.prototype,"variant",2),W([d.property({type:String})],s.Calendar.prototype,"size",2),W([d.property({type:Boolean})],s.Calendar.prototype,"styleCalendar",2),W([d.property({type:String})],s.Calendar.prototype,"twCLass",2),W([d.property({type:String})],s.Calendar.prototype,"mode",2),s.Calendar=W([d.customElement("rtg-calendar")],s.Calendar);var Rl=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Zt=(o,e,r,n)=>{for(var t=n>1?void 0:n?Nl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Rl(e,r,t),t};s.DatePicker=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.date,this.requestUpdate()}render(){return l.html`
|
|
5242
5226
|
<div
|
|
5243
5227
|
part="date-picker"
|
|
5244
5228
|
class="${u("",this.className,this.twCLass)}"
|
|
@@ -5248,7 +5232,7 @@ body {
|
|
|
5248
5232
|
<!-- Trigger to open/close the popover -->
|
|
5249
5233
|
<rtg-popover-trigger slot="trigger">
|
|
5250
5234
|
<rtg-button
|
|
5251
|
-
class="w-
|
|
5235
|
+
class="w-64 justify-start text-left font-normal text-muted-foreground"
|
|
5252
5236
|
variant="outline"
|
|
5253
5237
|
slot="trigger-button"
|
|
5254
5238
|
>
|
|
@@ -5282,17 +5266,36 @@ body {
|
|
|
5282
5266
|
slot="content"
|
|
5283
5267
|
.styleContent=${!1}
|
|
5284
5268
|
>
|
|
5285
|
-
<rtg-calendar class="w-
|
|
5269
|
+
<rtg-calendar class="w-64" .styleCalendar=${!0}></rtg-calendar>
|
|
5286
5270
|
</rtg-popover-content>
|
|
5287
5271
|
</rtg-popover>
|
|
5288
5272
|
</div>
|
|
5289
|
-
`}},s.DatePicker.styles=[l.css``,c],Zt([d.property({type:String})],s.DatePicker.prototype,"twCLass",2),Zt([d.property({type:Object})],s.DatePicker.prototype,"selectedDate",2),s.DatePicker=Zt([d.customElement("rtg-date-picker")],s.DatePicker);
|
|
5273
|
+
`}},s.DatePicker.styles=[l.css``,c],Zt([d.property({type:String})],s.DatePicker.prototype,"twCLass",2),Zt([d.property({type:Object})],s.DatePicker.prototype,"selectedDate",2),s.DatePicker=Zt([d.customElement("rtg-date-picker")],s.DatePicker);var Tl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Jt=(o,e,r,n)=>{for(var t=n>1?void 0:n?ql(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Tl(e,r,t),t};s.Progress=class extends l.LitElement{constructor(){super(...arguments),this.twClass="",this.progressValue=15}firstUpdated(){setTimeout(()=>{this.progressValue=65},500)}render(){return l.html`
|
|
5274
|
+
<div
|
|
5275
|
+
part="progress"
|
|
5276
|
+
aria-valuenow="${this.progressValue}"
|
|
5277
|
+
aria-valuemax="100"
|
|
5278
|
+
aria-valuemin="0"
|
|
5279
|
+
role="progressbar"
|
|
5280
|
+
data-state="indeterminate"
|
|
5281
|
+
data-max="100"
|
|
5282
|
+
class="${u("relative h-2 overflow-hidden rounded-full w-[60%]",this.className,this.twClass)}"
|
|
5283
|
+
style="background-color:#ccc;"
|
|
5284
|
+
>
|
|
5285
|
+
<div
|
|
5286
|
+
data-state="indeterminate"
|
|
5287
|
+
data-max="100"
|
|
5288
|
+
class="${u("h-full w-full flex-1 bg-primary transition-all duration-500",this.className,this.twClass)}"
|
|
5289
|
+
style="width: ${this.progressValue}%;"
|
|
5290
|
+
></div>
|
|
5291
|
+
</div>
|
|
5292
|
+
`}},s.Progress.styles=[l.css``,c],Jt([d.property({type:String})],s.Progress.prototype,"twClass",2),Jt([d.property({type:Number})],s.Progress.prototype,"progressValue",2),s.Progress=Jt([d.customElement("rtg-progress")],s.Progress);const Vl="inline-flex items-center gap-1.5",Fl="transition-colors hover:text-foreground",Gl="font-normal text-foreground",Ul="[&>svg]:size-3.5",Hl="flex h-9 w-9 items-center justify-center",Yl="flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";var Xl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,Wl=(o,e,r,n)=>{for(var t=n>1?void 0:n?Kl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Xl(e,r,t),t};let Qt=class extends b{getAttributesToExclude(){return[""]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
5290
5293
|
<span
|
|
5291
5294
|
${x(o)}
|
|
5292
5295
|
id="rtg-bread-crumb-ellipsis"
|
|
5293
5296
|
role="presentation"
|
|
5294
5297
|
aria-hidden="true"
|
|
5295
|
-
class="${u(
|
|
5298
|
+
class="${u(Hl,this.className)}"
|
|
5296
5299
|
part="breadcrumb-ellipsis"
|
|
5297
5300
|
>
|
|
5298
5301
|
<svg
|
|
@@ -5308,31 +5311,31 @@ body {
|
|
|
5308
5311
|
/>
|
|
5309
5312
|
</svg>
|
|
5310
5313
|
</span>
|
|
5311
|
-
`}};
|
|
5314
|
+
`}};Qt.styles=[l.css``,c],Qt=Wl([d.customElement("rtg-bread-crumb-ellipsis")],Qt);var Zl=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,Ql=(o,e,r,n)=>{for(var t=n>1?void 0:n?Jl(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&Zl(e,r,t),t};let jt=class extends b{getAttributesToExclude(){return["variant"]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
5312
5315
|
<li
|
|
5313
5316
|
${x(o)}
|
|
5314
5317
|
id="rtg-bread-crumb-item"
|
|
5315
|
-
class="${u(
|
|
5318
|
+
class="${u(Vl,this.className)}"
|
|
5316
5319
|
part="breadcrumb-item"
|
|
5317
5320
|
>
|
|
5318
5321
|
<slot></slot>
|
|
5319
5322
|
</li>
|
|
5320
|
-
`}};jt.styles=[l.css``,c],jt=
|
|
5323
|
+
`}};jt.styles=[l.css``,c],jt=Ql([d.customElement("rtg-bread-crumb-item")],jt);var jl=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,td=(o,e,r,n)=>{for(var t=n>1?void 0:n?ed(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&jl(e,r,t),t};let er=class extends b{getAttributesToExclude(){return["variant"]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
5321
5324
|
<ol
|
|
5322
5325
|
${x(o)}
|
|
5323
5326
|
id="rtg-bread-crumb-list"
|
|
5324
|
-
class="${u(
|
|
5327
|
+
class="${u(Yl,this.className)}"
|
|
5325
5328
|
part="breadcrumb-list"
|
|
5326
5329
|
>
|
|
5327
5330
|
<slot></slot>
|
|
5328
5331
|
</ol>
|
|
5329
|
-
`}};
|
|
5332
|
+
`}};er.styles=[l.css``,c],er=td([d.customElement("rtg-bread-crumb-list")],er);var rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,od=(o,e,r,n)=>{for(var t=n>1?void 0:n?nd(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&rd(e,r,t),t};let tr=class extends b{getAttributesToExclude(){return[""]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
5330
5333
|
<li
|
|
5331
5334
|
${x(o)}
|
|
5332
5335
|
id="rtg-bread-crumb-separator"
|
|
5333
5336
|
role="presentation"
|
|
5334
5337
|
aria-hidden="true"
|
|
5335
|
-
class="${u(
|
|
5338
|
+
class="${u(Ul,this.className)}"
|
|
5336
5339
|
part="breadcrumb-separator"
|
|
5337
5340
|
|
|
5338
5341
|
>
|
|
@@ -5351,7 +5354,7 @@ body {
|
|
|
5351
5354
|
<path d="M22 2 2 22"></path>
|
|
5352
5355
|
</svg>
|
|
5353
5356
|
</div>
|
|
5354
|
-
`}};
|
|
5357
|
+
`}};tr.styles=[l.css``,c],tr=od([d.customElement("rtg-bread-crumb-separator")],tr);var id=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,ad=(o,e,r,n)=>{for(var t=n>1?void 0:n?sd(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&id(e,r,t),t};let rr=class extends b{getAttributesToExclude(){return[""]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
5355
5358
|
<nav
|
|
5356
5359
|
${x(o)}
|
|
5357
5360
|
part="breadcrumb"
|
|
@@ -5360,28 +5363,28 @@ body {
|
|
|
5360
5363
|
>
|
|
5361
5364
|
<slot></slot>
|
|
5362
5365
|
</nav>
|
|
5363
|
-
`}};
|
|
5366
|
+
`}};rr.styles=[l.css``,c],rr=ad([d.customElement("rtg-bread-crumb")],rr);var ld=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,cd=(o,e,r,n)=>{for(var t=n>1?void 0:n?dd(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ld(e,r,t),t};let nr=class extends b{getAttributesToExclude(){return[""]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
5364
5367
|
<span
|
|
5365
5368
|
${x(o)}
|
|
5366
5369
|
id="rtg-bread-crumb-text"
|
|
5367
5370
|
aria-disabled="true"
|
|
5368
5371
|
aria-current="page"
|
|
5369
|
-
class="${u(
|
|
5372
|
+
class="${u(Gl,this.className)}"
|
|
5370
5373
|
part="breadcrumb-text"
|
|
5371
5374
|
>
|
|
5372
5375
|
<slot></slot>
|
|
5373
5376
|
</span>
|
|
5374
|
-
`}};
|
|
5377
|
+
`}};nr.styles=[l.css``,c],nr=cd([d.customElement("rtg-bread-crumb-text")],nr);var ud=Object.defineProperty,pd=Object.getOwnPropertyDescriptor,Kr=(o,e,r,n)=>{for(var t=n>1?void 0:n?pd(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&ud(e,r,t),t};let at=class extends b{constructor(){super(...arguments),this.href="/"}getAttributesToExclude(){return[""]}render(){const o=this.getFilteredAttributes();return l.html`
|
|
5375
5378
|
<a
|
|
5376
5379
|
${x(o)}
|
|
5377
5380
|
id="rtg-bread-crumb-link"
|
|
5378
|
-
class="${u(
|
|
5381
|
+
class="${u(Fl,this.className)}"
|
|
5379
5382
|
href="${this.href}"
|
|
5380
5383
|
part="breadcrumb-link"
|
|
5381
5384
|
>
|
|
5382
5385
|
<slot></slot>
|
|
5383
5386
|
</a>
|
|
5384
|
-
`}};at.styles=[l.css``,c],
|
|
5387
|
+
`}};at.styles=[l.css``,c],Kr([d.property({type:String})],at.prototype,"href",2),at=Kr([d.customElement("rtg-bread-crumb-link")],at);var hd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,lt=(o,e,r,n)=>{for(var t=n>1?void 0:n?gd(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&hd(e,r,t),t};let he=class extends b{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}raiseEvent(o,e="changes",r=1/0){const n=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:o,eventType:e,customIndex:r}});this.dispatchEvent(n)}render(){return l.html` <slot part="input-otp" class="flex items-center"></slot> `}};he.styles=[l.css``,c],lt([d.property()],he.prototype,"maxLength",2),lt([d.property()],he.prototype,"onChange",2),lt([d.property()],he.prototype,"pin",2),he=lt([d.customElement("rtg-input-otp")],he);var md=Object.defineProperty,vd=Object.getOwnPropertyDescriptor,Wr=(o,e,r,n)=>{for(var t=n>1?void 0:n?vd(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&md(e,r,t),t};let dt=class extends b{constructor(){super(...arguments),this.click=()=>{},this.childrenArray=[]}getAttributesToExclude(){return[]}firstUpdated(o){super.firstUpdated(o),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> `}};dt.styles=[l.css``,c],Wr([d.property({type:Function})],dt.prototype,"click",2),dt=Wr([d.customElement("rtg-input-otp-group")],dt);var fd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,Zr=(o,e,r,n)=>{for(var t=n>1?void 0:n?bd(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&fd(e,r,t),t};let ct=class extends l.LitElement{constructor(){super(...arguments),this.index=0}render(){return l.html` <div role="separator">${Yn()}</div> `}};ct.styles=[l.css``,c],Zr([d.property({type:Number})],ct.prototype,"index",2),ct=Zr([d.customElement("rtg-input-otp-separator")],ct);var wd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,_e=(o,e,r,n)=>{for(var t=n>1?void 0:n?yd(e,r):e,i=o.length-1,a;i>=0;i--)(a=o[i])&&(t=(n?a(e,r,t):a(t))||t);return n&&t&&wd(e,r,t),t};let Z=class extends b{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let o=this.parentElement;for(;o&&!(o instanceof he);)o=o.parentElement;return o}connectedCallback(){super.connectedCallback()}firstUpdated(o){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 n=this.shadowRoot.querySelector(`input[name="input-${r.detail.selectedItems}"]`);n&&(n.focus(),r.detail.eventType==="changes"&&(n.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(o){const e=o.target,r=this._inputOtp;if(r&&!e.value){let n=r.inputes.reduce((t,i,a)=>i.value!==""?a:t,-1);console.log("inputOtpInstance lastIndex",n),console.log("inputOtpInstance.inputes",r.inputes[n]),n+1===r.maxLength?r.raiseEvent(n,"focus"):r.raiseEvent(++n,"focus")}}handleInputChange(o){const e=o.target;if(new RegExp(/^\d+$/).test(e.value)){const n=this._inputOtp;if(n){let t=n.inputes.findIndex(i=>i.index===this.index);n.inputes[t]={...n.inputes[t],value:e.value,isSelected:!1},n.inputes.length!==t+1&&n.raiseEvent(++t,"changes")}}else e.value=""}handleKeyDown(o){const e=o.target;if(o.key==="Backspace"){console.log("backspace");const r=this._inputOtp;if(r){let n=r.inputes.findIndex(t=>t.index===this.index);r.inputes[n]={...r.inputes[n],value:""},n+1===r.maxLength&&e.value?r.raiseEvent(n,"changes"):r.raiseEvent(--n,"changes")}}}render(){const o={"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`
|
|
5385
5388
|
<input
|
|
5386
5389
|
part="input-otp-slot"
|
|
5387
5390
|
autocomplete="one-time-code"
|
|
@@ -5397,4 +5400,4 @@ body {
|
|
|
5397
5400
|
style="outline: none"
|
|
5398
5401
|
class=${Object.entries(o).map(([e,r])=>r?e:void 0).join(" ")}
|
|
5399
5402
|
/>
|
|
5400
|
-
`}};
|
|
5403
|
+
`}};Z.styles=[l.css``,c],_e([d.property({type:Function})],Z.prototype,"click",2),_e([d.property({type:Number})],Z.prototype,"index",2),_e([d.property({type:Boolean})],Z.prototype,"isFirst",2),_e([d.property({type:Boolean})],Z.prototype,"isLast",2),_e([d.property({type:String})],Z.prototype,"value",2),Z=_e([d.customElement("rtg-input-otp-slot")],Z),Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|