revotech-ui-kit 0.0.29 → 0.0.30
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 +1361 -1188
- package/dist/revotech-ui-kit.umd.cjs +235 -155
- package/dist/src/components/atoms/accordion/accordion.atoms.d.ts +1 -0
- package/dist/src/components/atoms/alert/alert.atom.d.ts +1 -0
- package/dist/src/components/atoms/aspect-ratio/aspect-ratio-atom.d.ts +1 -0
- package/dist/src/components/atoms/avatar/avatar-fallback.d.ts +5 -0
- package/dist/src/components/atoms/avatar/avatar-image.d.ts +5 -0
- package/dist/src/components/atoms/avatar/avatar.atom.d.ts +6 -0
- package/dist/src/components/atoms/badge/badge.atom.d.ts +2 -0
- package/dist/src/components/atoms/checkbox/checkbox.atom.d.ts +1 -0
- package/dist/src/components/atoms/collapsible/collapsible.atom.d.ts +1 -0
- package/dist/src/components/atoms/combobox/combo-box-item.d.ts +1 -1
- package/dist/src/components/atoms/command/command.atom.d.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +3 -0
- package/dist/src/components/atoms/input/input.atom.d.ts +1 -1
- package/dist/src/components/atoms/textarea/textarea.atom.d.ts +1 -0
- package/dist/src/components/atoms/toast/toast.atom.d.ts +1 -0
- package/dist/src/components/atoms/toggle/toggle.atom.d.ts +1 -0
- package/dist/src/components/molecules/tabs/tab.molecules.d.ts +1 -0
- package/dist/src/components/molecules/toggle-group/toggle-group.molecules.d.ts +1 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit-element"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.html_js,a.directive_js,a.asyncDirective_js,a.litElement))})(this,function(a,l,d,ar,Be,lr,k){"use strict";function wt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=wt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function dr(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=wt(n))&&(o&&(o+=" "),o+=e);return o}const Ne="-",cr=n=>{const e=pr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const u=i.split(Ne);return u[0]===""&&u.length!==1&&u.shift(),yt(u,e)||ur(i)},getConflictingClassGroupIds:(i,u)=>{const f=r[i]||[];return u&&o[i]?[...f,...o[i]]:f}}},yt=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?yt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(Ne);return(i=e.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},xt=/^\[(.+)\]$/,ur=n=>{if(xt.test(n)){const e=xt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},pr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return mr(Object.entries(n.classGroups),r).forEach(([s,i])=>{Fe(i,o,s,e)}),o},Fe=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:$t(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(hr(t)){Fe(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{Fe(i,$t(e,s),r,o)})})},$t=(n,e)=>{let r=n;return e.split(Ne).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},hr=n=>n.isThemeGetter,mr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[r,t]}):n,gr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,i)=>{r.set(s,i),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return t(s,i),i},set(s,i){r.has(s)?r.set(s,i):t(s,i)}}},Ct="!",br=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=u=>{const f=[];let m=0,g=0,C;for(let v=0;v<u.length;v++){let O=u[v];if(m===0){if(O===t&&(o||u.slice(v,v+s)===e)){f.push(u.slice(g,v)),g=v+s;continue}if(O==="/"){C=v;continue}}O==="["?m++:O==="]"&&m--}const _=f.length===0?u:u.substring(g),S=_.startsWith(Ct),E=S?_.substring(1):_,$=C&&C>g?C-g:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:$}};return r?u=>r({className:u,parseClassName:i}):i},fr=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},vr=n=>({cache:gr(n.cacheSize),parseClassName:br(n),...cr(n)}),wr=/\s+/,yr=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(wr);let u="";for(let f=i.length-1;f>=0;f-=1){const m=i[f],{modifiers:g,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:S}=r(m);let E=!!S,$=o(E?_.substring(0,S):_);if(!$){if(!E){u=m+(u.length>0?" "+u:u);continue}if($=o(_),!$){u=m+(u.length>0?" "+u:u);continue}E=!1}const v=fr(g).join(":"),O=C?v+Ct:v,P=O+$;if(s.includes(P))continue;s.push(P);const $e=t($,E);for(let Q=0;Q<$e.length;++Q){const ze=$e[Q];s.push(O+ze)}u=m+(u.length>0?" "+u:u)}return u};function xr(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=_t(e))&&(o&&(o+=" "),o+=r);return o}const _t=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=_t(n[o]))&&(r&&(r+=" "),r+=e);return r};function $r(n,...e){let r,o,t,s=i;function i(f){const m=e.reduce((g,C)=>C(g),n());return r=vr(m),o=r.cache.get,t=r.cache.set,s=u,u(f)}function u(f){const m=o(f);if(m)return m;const g=yr(f,r);return t(f,g),g}return function(){return s(xr.apply(null,arguments))}}const b=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,_r=new Set(["px","full","screen"]),Or=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Er=/\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$/,Pr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Sr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=n=>ee(n)||_r.has(n)||Cr.test(n),T=n=>te(n,"length",Tr),ee=n=>!!n&&!Number.isNaN(Number(n)),Ge=n=>te(n,"number",ee),he=n=>!!n&&Number.isInteger(Number(n)),Dr=n=>n.endsWith("%")&&ee(n.slice(0,-1)),h=n=>Ot.test(n),B=n=>Or.test(n),Mr=new Set(["length","size","percentage"]),Ir=n=>te(n,Mr,Et),Lr=n=>te(n,"position",Et),Ar=new Set(["image","url"]),zr=n=>te(n,Ar,Nr),Rr=n=>te(n,"",Br),me=()=>!0,te=(n,e,r)=>{const o=Ot.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},Tr=n=>Er.test(n)&&!Pr.test(n),Et=()=>!1,Br=n=>Sr.test(n),Nr=n=>kr.test(n),Fr=$r(()=>{const n=b("colors"),e=b("spacing"),r=b("blur"),o=b("brightness"),t=b("borderColor"),s=b("borderRadius"),i=b("borderSpacing"),u=b("borderWidth"),f=b("contrast"),m=b("grayscale"),g=b("hueRotate"),C=b("invert"),_=b("gap"),S=b("gradientColorStops"),E=b("gradientColorStopPositions"),$=b("inset"),v=b("margin"),O=b("opacity"),P=b("padding"),$e=b("saturate"),Q=b("scale"),ze=b("sepia"),er=b("skew"),tr=b("space"),rr=b("translate"),gt=()=>["auto","contain","none"],bt=()=>["auto","hidden","clip","visible","scroll"],ft=()=>["auto",h,e],w=()=>[h,e],or=()=>["",I,T],Re=()=>["auto",ee,h],nr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Te=()=>["solid","dashed","dotted","double","none"],sr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],vt=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",h],ir=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ee,h];return{cacheSize:500,separator:":",theme:{colors:[me],spacing:[I,T],blur:["none","",B,h],brightness:R(),borderColor:[n],borderRadius:["none","","full",B,h],borderSpacing:w(),borderWidth:or(),contrast:R(),grayscale:Ce(),hueRotate:R(),invert:Ce(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[Dr,T],inset:ft(),margin:ft(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:Ce(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":ir()}],"break-before":[{"break-before":ir()}],"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:[...nr(),h]}],overflow:[{overflow:bt()}],"overflow-x":[{"overflow-x":bt()}],"overflow-y":[{"overflow-y":bt()}],overscroll:[{overscroll:gt()}],"overscroll-x":[{"overscroll-x":gt()}],"overscroll-y":[{"overscroll-y":gt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,h]}],basis:[{basis:ft()}],"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:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",he,h]}],"grid-cols":[{"grid-cols":[me]}],"col-start-end":[{col:["auto",{span:["full",he,h]},h]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[me]}],"row-start-end":[{row:["auto",{span:[he,h]},h]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"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",...vt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...vt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...vt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[tr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[tr]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",B,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ge]}],"font-family":[{font:[me]}],"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",ee,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,T]}],"underline-offset":[{"underline-offset":["auto",I,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...nr(),Lr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...Te(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:Te()}],"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:["",...Te()]}],"outline-offset":[{"outline-offset":[I,h]}],"outline-w":[{outline:[I,T]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:or()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[I,T]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",B,Rr]}],"shadow-color":[{shadow:[me]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...sr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":sr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,h]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[C]}],saturate:[{saturate:[$e]}],sepia:[{sepia:[ze]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[$e]}],"backdrop-sepia":[{"backdrop-sepia":[ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Q]}],"scale-x":[{"scale-x":[Q]}],"scale-y":[{"scale-y":[Q]}],rotate:[{rotate:[he,h]}],"translate-x":[{"translate-x":[rr]}],"translate-y":[{"translate-y":[rr]}],"skew-x":[{"skew-x":[er]}],"skew-y":[{"skew-y":[er]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[I,T,Ge]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...n){return Fr(dr(n))}class y extends l.LitElement{constructor(){super()}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,o=""){var s,i;let t="";e.some(u=>this.isCustomPropertySet(u))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}function Pt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=Pt(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function Gr(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=Pt(n))&&(o&&(o+=" "),o+=e);return o}const St=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,kt=Gr,N=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return kt(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=Object.keys(t).map(m=>{const g=r==null?void 0:r[m],C=s==null?void 0:s[m];if(g===null)return null;const _=St(g)||St(C);return t[m][_]}),u=r&&Object.entries(r).reduce((m,g)=>{let[C,_]=g;return _===void 0||(m[C]=_),m},{}),f=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((m,g)=>{let{class:C,className:_,...S}=g;return Object.entries(S).every(E=>{let[$,v]=E;return Array.isArray(v)?v.includes({...s,...u}[$]):{...s,...u}[$]===v})?[...m,C,_]:m},[]);return kt(n,i,f,r==null?void 0:r.class,r==null?void 0:r.className)},qr=N("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"}}),c=l.css` @font-face {
|
1
|
+
(function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit-element"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.html_js,a.directive_js,a.asyncDirective_js,a.litElement))})(this,function(a,l,d,ur,Ve,hr,k){"use strict";function St(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=St(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function mr(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=St(n))&&(o&&(o+=" "),o+=e);return o}const Ue="-",gr=n=>{const e=fr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const p=i.split(Ue);return p[0]===""&&p.length!==1&&p.shift(),Pt(p,e)||br(i)},getConflictingClassGroupIds:(i,p)=>{const f=r[i]||[];return p&&o[i]?[...f,...o[i]]:f}}},Pt=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?Pt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(Ue);return(i=e.validators.find(({validator:p})=>p(s)))==null?void 0:i.classGroupId},kt=/^\[(.+)\]$/,br=n=>{if(kt.test(n)){const e=kt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},fr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return wr(Object.entries(n.classGroups),r).forEach(([s,i])=>{Xe(i,o,s,e)}),o},Xe=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:Dt(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(vr(t)){Xe(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{Xe(i,Dt(e,s),r,o)})})},Dt=(n,e)=>{let r=n;return e.split(Ue).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},vr=n=>n.isThemeGetter,wr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,p])=>[e+i,p])):s);return[r,t]}):n,yr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,i)=>{r.set(s,i),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return t(s,i),i},set(s,i){r.has(s)?r.set(s,i):t(s,i)}}},Mt="!",xr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=p=>{const f=[];let m=0,g=0,C;for(let v=0;v<p.length;v++){let O=p[v];if(m===0){if(O===t&&(o||p.slice(v,v+s)===e)){f.push(p.slice(g,v)),g=v+s;continue}if(O==="/"){C=v;continue}}O==="["?m++:O==="]"&&m--}const _=f.length===0?p:p.substring(g),P=_.startsWith(Mt),E=P?_.substring(1):_,$=C&&C>g?C-g:void 0;return{modifiers:f,hasImportantModifier:P,baseClassName:E,maybePostfixModifierPosition:$}};return r?p=>r({className:p,parseClassName:i}):i},$r=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},Cr=n=>({cache:yr(n.cacheSize),parseClassName:xr(n),...gr(n)}),_r=/\s+/,Or=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(_r);let p="";for(let f=i.length-1;f>=0;f-=1){const m=i[f],{modifiers:g,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:P}=r(m);let E=!!P,$=o(E?_.substring(0,P):_);if(!$){if(!E){p=m+(p.length>0?" "+p:p);continue}if($=o(_),!$){p=m+(p.length>0?" "+p:p);continue}E=!1}const v=$r(g).join(":"),O=C?v+Mt:v,S=O+$;if(s.includes(S))continue;s.push(S);const _e=t($,E);for(let oe=0;oe<_e.length;++oe){const Fe=_e[oe];s.push(O+Fe)}p=m+(p.length>0?" "+p:p)}return p};function Er(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=It(e))&&(o&&(o+=" "),o+=r);return o}const It=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=It(n[o]))&&(r&&(r+=" "),r+=e);return r};function Sr(n,...e){let r,o,t,s=i;function i(f){const m=e.reduce((g,C)=>C(g),n());return r=Cr(m),o=r.cache.get,t=r.cache.set,s=p,p(f)}function p(f){const m=o(f);if(m)return m;const g=Or(f,r);return t(f,g),g}return function(){return s(Er.apply(null,arguments))}}const b=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Lt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pr=/^\d+\/\d+$/,kr=new Set(["px","full","screen"]),Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ir=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ar=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=n=>ne(n)||kr.has(n)||Pr.test(n),T=n=>se(n,"length",qr),ne=n=>!!n&&!Number.isNaN(Number(n)),Ye=n=>se(n,"number",ne),he=n=>!!n&&Number.isInteger(Number(n)),zr=n=>n.endsWith("%")&&ne(n.slice(0,-1)),h=n=>Lt.test(n),B=n=>Dr.test(n),Rr=new Set(["length","size","percentage"]),Tr=n=>se(n,Rr,At),Br=n=>se(n,"position",At),Nr=new Set(["image","url"]),Fr=n=>se(n,Nr,Ur),Gr=n=>se(n,"",Vr),me=()=>!0,se=(n,e,r)=>{const o=Lt.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},qr=n=>Mr.test(n)&&!Ir.test(n),At=()=>!1,Vr=n=>Lr.test(n),Ur=n=>Ar.test(n),Xr=Sr(()=>{const n=b("colors"),e=b("spacing"),r=b("blur"),o=b("brightness"),t=b("borderColor"),s=b("borderRadius"),i=b("borderSpacing"),p=b("borderWidth"),f=b("contrast"),m=b("grayscale"),g=b("hueRotate"),C=b("invert"),_=b("gap"),P=b("gradientColorStops"),E=b("gradientColorStopPositions"),$=b("inset"),v=b("margin"),O=b("opacity"),S=b("padding"),_e=b("saturate"),oe=b("scale"),Fe=b("sepia"),sr=b("skew"),ir=b("space"),ar=b("translate"),Ct=()=>["auto","contain","none"],_t=()=>["auto","hidden","clip","visible","scroll"],Ot=()=>["auto",h,e],w=()=>[h,e],lr=()=>["",I,T],Ge=()=>["auto",ne,h],dr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],qe=()=>["solid","dashed","dotted","double","none"],cr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Et=()=>["start","end","center","between","around","evenly","stretch"],Oe=()=>["","0",h],pr=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ne,h];return{cacheSize:500,separator:":",theme:{colors:[me],spacing:[I,T],blur:["none","",B,h],brightness:R(),borderColor:[n],borderRadius:["none","","full",B,h],borderSpacing:w(),borderWidth:lr(),contrast:R(),grayscale:Oe(),hueRotate:R(),invert:Oe(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[zr,T],inset:Ot(),margin:Ot(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:Oe(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":pr()}],"break-before":[{"break-before":pr()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...dr(),h]}],overflow:[{overflow:_t()}],"overflow-x":[{"overflow-x":_t()}],"overflow-y":[{"overflow-y":_t()}],overscroll:[{overscroll:Ct()}],"overscroll-x":[{"overscroll-x":Ct()}],"overscroll-y":[{"overscroll-y":Ct()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,h]}],basis:[{basis:Ot()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:Oe()}],shrink:[{shrink:Oe()}],order:[{order:["first","last","none",he,h]}],"grid-cols":[{"grid-cols":[me]}],"col-start-end":[{col:["auto",{span:["full",he,h]},h]}],"col-start":[{"col-start":Ge()}],"col-end":[{"col-end":Ge()}],"grid-rows":[{"grid-rows":[me]}],"row-start-end":[{row:["auto",{span:[he,h]},h]}],"row-start":[{"row-start":Ge()}],"row-end":[{"row-end":Ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...Et()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Et(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Et(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[ir]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ir]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",B,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ye]}],"font-family":[{font:[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",ne,Ye]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,T]}],"underline-offset":[{"underline-offset":["auto",I,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...dr(),Br]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Fr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...qe(),"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:qe()}],"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:["",...qe()]}],"outline-offset":[{"outline-offset":[I,h]}],"outline-w":[{outline:[I,T]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:lr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[I,T]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",B,Gr]}],"shadow-color":[{shadow:[me]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...cr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":cr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,h]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[C]}],saturate:[{saturate:[_e]}],sepia:[{sepia:[Fe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[_e]}],"backdrop-sepia":[{"backdrop-sepia":[Fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[oe]}],"scale-x":[{"scale-x":[oe]}],"scale-y":[{"scale-y":[oe]}],rotate:[{rotate:[he,h]}],"translate-x":[{"translate-x":[ar]}],"translate-y":[{"translate-y":[ar]}],"skew-x":[{"skew-x":[sr]}],"skew-y":[{"skew-y":[sr]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[I,T,Ye]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function u(...n){return Xr(mr(n))}class y extends l.LitElement{constructor(){super()}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,o=""){var s,i;let t="";e.some(p=>this.isCustomPropertySet(p))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}const c=l.css` @font-face {
|
2
2
|
font-family: 'GeistSans';
|
3
3
|
|
4
4
|
src: url('assets/fonts/Geist/Geist-Regular.woff2') format('woff2');
|
@@ -2767,18 +2767,42 @@ body {
|
|
2767
2767
|
.\\[\\&_svg\\]\\:shrink-0 svg {
|
2768
2768
|
flex-shrink: 0;
|
2769
2769
|
}
|
2770
|
-
|
2770
|
+
`,Yr="relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",Hr="aspect-square h-full w-full",Kr="flex h-full w-full items-center justify-center rounded-full bg-muted";var Wr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,zt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zr(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Wr(e,r,t),t};let Ee=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
2771
|
+
<span
|
2772
|
+
class="${u(Yr,this.className,this.twCLass)}"
|
2773
|
+
part="avatar"
|
2774
|
+
>
|
2775
|
+
<slot></slot>
|
2776
|
+
</span>
|
2777
|
+
`}};Ee.styles=[l.css``,c],zt([d.property({type:String})],Ee.prototype,"twCLass",2),Ee=zt([d.customElement("rtg-avatar")],Ee);var jr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Jr(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&jr(e,r,t),t};let He=class extends l.LitElement{render(){return l.html`
|
2778
|
+
<span
|
2779
|
+
class="${u(Kr,this.className)}"
|
2780
|
+
style="width:40px;height:40px"
|
2781
|
+
part="avatar-fallback"
|
2782
|
+
>
|
2783
|
+
<slot></slot>
|
2784
|
+
</span>
|
2785
|
+
`}};He.styles=[l.css``,c],He=Qr([d.customElement("rtg-avatar-fallback")],He);var eo=Object.defineProperty,to=Object.getOwnPropertyDescriptor,Ke=(n,e,r,o)=>{for(var t=o>1?void 0:o?to(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&eo(e,r,t),t};let ge=class extends l.LitElement{constructor(){super(...arguments),this.alt="@shadcn",this.src="https://github.com/shadcn.png"}render(){return l.html`
|
2786
|
+
<img
|
2787
|
+
class="${u(Hr,this.className)}"
|
2788
|
+
alt="${this.alt}"
|
2789
|
+
src="${this.src}"
|
2790
|
+
part="avatar-image"
|
2791
|
+
>
|
2792
|
+
<slot></slot>
|
2793
|
+
</img>
|
2794
|
+
`}};ge.styles=[l.css``,c],Ke([d.property({type:String})],ge.prototype,"alt",2),Ke([d.property({type:String})],ge.prototype,"src",2),ge=Ke([d.customElement("rtg-avatar-image")],ge);function Rt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=Rt(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function ro(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=Rt(n))&&(o&&(o+=" "),o+=e);return o}const Tt=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,Bt=ro,N=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return Bt(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=Object.keys(t).map(m=>{const g=r==null?void 0:r[m],C=s==null?void 0:s[m];if(g===null)return null;const _=Tt(g)||Tt(C);return t[m][_]}),p=r&&Object.entries(r).reduce((m,g)=>{let[C,_]=g;return _===void 0||(m[C]=_),m},{}),f=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((m,g)=>{let{class:C,className:_,...P}=g;return Object.entries(P).every(E=>{let[$,v]=E;return Array.isArray(v)?v.includes({...s,...p}[$]):{...s,...p}[$]===v})?[...m,C,_]:m},[]);return Bt(n,i,f,r==null?void 0:r.class,r==null?void 0:r.className)},oo=N("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"}});class Nt extends hr.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return ur.nothing}update(e,[r]){var o;this.element!==e.element&&(this.element=e.element),this.host=((o=e.options)===null||o===void 0?void 0:o.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(e){if(!e)return;const{prevData:r,element:o}=this;for(const t in e){const s=e[t];s!==r[t]&&(o[t]=s)}}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r)(!e||!(t in e)&&o[t]===r[t])&&(o[t]=void 0)}}Ve.directive(Nt);class Ft extends Nt{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const r in e){const o=e[r];o!==this.eventData[r]&&this.applyEvent(r,o)}}applyEvent(e,r){const{prevData:o,element:t}=this;this.eventData[e]=r,o[e]&&t.removeEventListener(e,this,r),t.addEventListener(e,this,r)}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r)(!e||!(t in e)&&o[t]===r[t])&&this.groomEvent(t,r[t])}groomEvent(e,r){const{element:o}=this;delete this.eventData[e],o.removeEventListener(e,this,r)}handleEvent(e){const r=this.eventData[e.type];typeof r=="function"?r.call(this.host,e):r.handleEvent(e)}disconnected(){const{eventData:e,element:r}=this;for(const o in e){const t=o.slice(1),s=e[o];r.removeEventListener(t,this,s)}}reconnected(){const{eventData:e,element:r}=this;for(const o in e){const t=o.slice(1),s=e[o];r.addEventListener(t,this,s)}}}Ve.directive(Ft);class no extends Ft{apply(e){if(!e)return;const{prevData:r,element:o}=this;for(const t in e){const s=e[t];if(s===r[t])continue;const i=t.slice(1);switch(t[0]){case"@":this.eventData[i]=s,this.applyEvent(i,s);break;case".":o[i]=s;break;case"?":s?o.setAttribute(i,""):o.removeAttribute(i);break;default:s!=null?o.setAttribute(t,String(s)):o.removeAttribute(t);break}}}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r){const s=t.slice(1);if(!e||!(t in e)&&o[s]===r[t])switch(t[0]){case"@":this.groomEvent(s,r[t]);break;case".":o[s]=void 0;break;case"?":o.removeAttribute(s);break;default:o.removeAttribute(t);break}}}}const x=Ve.directive(no);var so=Object.defineProperty,io=Object.getOwnPropertyDescriptor,F=(n,e,r,o)=>{for(var t=o>1?void 0:o?io(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&so(e,r,t),t};a.Button=class extends y{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default",this.externalClass="",this.isCustomClass=!1}handleClick(){this.disabled||this.click()}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
|
2771
2795
|
<button
|
2772
2796
|
part="button"
|
2773
2797
|
type="${this.type}"
|
2774
2798
|
${x(e)}
|
2775
2799
|
?disabled="${this.disabled}"
|
2776
|
-
class="${
|
2800
|
+
class="${u(a.Button.buttonVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.externalClass} ${this.isCustomClass?"rtg-button-custom-class":""}"
|
2777
2801
|
@click="${this.handleClick}"
|
2778
2802
|
>
|
2779
2803
|
<slot></slot>
|
2780
2804
|
</button>
|
2781
|
-
`}},a.Button.buttonVariants=
|
2805
|
+
`}},a.Button.buttonVariants=oo,a.Button.styles=[l.css`
|
2782
2806
|
:host {
|
2783
2807
|
--rtg-button-bg: unset;
|
2784
2808
|
--rtg-button-color: unset;
|
@@ -2791,8 +2815,9 @@ body {
|
|
2791
2815
|
border-radius: var(--rtg-button-radius, unset) !important;
|
2792
2816
|
height: var(--rtg-button-height, unset) !important;
|
2793
2817
|
}
|
2794
|
-
`,c],F([d.property({type:Function})],a.Button.prototype,"click",2),F([d.property({type:Boolean})],a.Button.prototype,"disabled",2),F([d.property({type:String})],a.Button.prototype,"type",2),F([d.property({type:String})],a.Button.prototype,"variant",2),F([d.property({type:String})],a.Button.prototype,"size",2),F([d.property({type:String})],a.Button.prototype,"externalClass",2),F([d.property({type:String})],a.Button.prototype,"isCustomClass",2),a.Button=F([d.customElement("rtg-button")],a.Button);const
|
2818
|
+
`,c],F([d.property({type:Function})],a.Button.prototype,"click",2),F([d.property({type:Boolean})],a.Button.prototype,"disabled",2),F([d.property({type:String})],a.Button.prototype,"type",2),F([d.property({type:String})],a.Button.prototype,"variant",2),F([d.property({type:String})],a.Button.prototype,"size",2),F([d.property({type:String})],a.Button.prototype,"externalClass",2),F([d.property({type:String})],a.Button.prototype,"isCustomClass",2),a.Button=F([d.customElement("rtg-button")],a.Button);const ao="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",lo="flex items-center justify-center text-current pointer-events-none";var co=Object.defineProperty,po=Object.getOwnPropertyDescriptor,H=(n,e,r,o)=>{for(var t=o>1?void 0:o?po(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&co(e,r,t),t};a.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`
|
2795
2819
|
<button
|
2820
|
+
part="checkbox"
|
2796
2821
|
data-testid="checkbox-atom"
|
2797
2822
|
type="button"
|
2798
2823
|
role="checkbox"
|
@@ -2802,10 +2827,10 @@ body {
|
|
2802
2827
|
?required=${this.required}
|
2803
2828
|
?disabled=${this.disabled}
|
2804
2829
|
@click="${this._onClick}"
|
2805
|
-
class="${
|
2830
|
+
class="${u(ao,this.className)} ${this.twCLass}"
|
2806
2831
|
${Object.entries(e).map(([r,o])=>l.html` ${r}="${o}" `)}
|
2807
2832
|
>
|
2808
|
-
${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${
|
2833
|
+
${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${lo}"
|
2809
2834
|
><svg
|
2810
2835
|
xmlns="http://www.w3.org/2000/svg"
|
2811
2836
|
width="24"
|
@@ -2821,9 +2846,10 @@ body {
|
|
2821
2846
|
<polyline points="20 6 9 17 4 12"></polyline></svg
|
2822
2847
|
></span>`:l.nothing}
|
2823
2848
|
</button>
|
2824
|
-
`}},a.Checkbox.styles=[l.css``,c],
|
2849
|
+
`}},a.Checkbox.styles=[l.css``,c],H([d.property({type:Boolean})],a.Checkbox.prototype,"disabled",2),H([d.property({type:Boolean})],a.Checkbox.prototype,"checked",2),H([d.property({type:String})],a.Checkbox.prototype,"type",2),H([d.property({type:String})],a.Checkbox.prototype,"value",2),H([d.property({type:Boolean})],a.Checkbox.prototype,"required",2),H([d.property({type:String})],a.Checkbox.prototype,"twCLass",2),a.Checkbox=H([d.customElement("rtg-checkbox")],a.Checkbox);var uo=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,Gt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ho(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&uo(e,r,t),t};const mo="open",qt="closed";a.DialogContent=class extends l.LitElement{constructor(){super(...arguments),this.state=qt,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=qt)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof a.Dialog)return e;e=e.parentElement}return e}render(){return l.html`${this.state===mo?l.html`
|
2825
2850
|
<div
|
2826
|
-
|
2851
|
+
part="dialog-content"
|
2852
|
+
class="${u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",this.className)}"
|
2827
2853
|
rtgdlg-content
|
2828
2854
|
>
|
2829
2855
|
<slot></slot>
|
@@ -2849,60 +2875,64 @@ body {
|
|
2849
2875
|
><span class="sr-only">Close</span>
|
2850
2876
|
</button>
|
2851
2877
|
</div>
|
2852
|
-
`:l.nothing}`}},a.DialogContent.styles=[l.css``,c],
|
2853
|
-
<div>
|
2878
|
+
`:l.nothing}`}},a.DialogContent.styles=[l.css``,c],Gt([d.property({attribute:"data-state",type:String})],a.DialogContent.prototype,"state",2),a.DialogContent=Gt([d.customElement("rtg-dialog-content")],a.DialogContent);var go=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,fo=(n,e,r,o)=>{for(var t=o>1?void 0:o?bo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&go(e,r,t),t};const vo="closed";a.DialogClose=class extends l.LitElement{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof a.Dialog)return e;e=e.parentElement}return e}firstUpdated(e){var t;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"),o=r==null?void 0:r.assignedElements();o&&o.length>0&&o[0].addEventListener("click",()=>{const i=this._dialog;i&&(i.dataset.state=vo)})}render(){return l.html`
|
2879
|
+
<div part="dialog-close">
|
2854
2880
|
<slot></slot>
|
2855
2881
|
</div>
|
2856
|
-
`}},a.DialogClose.styles=[l.css``,c],a.DialogClose=
|
2882
|
+
`}},a.DialogClose.styles=[l.css``,c],a.DialogClose=fo([d.customElement("rtg-dialog-close")],a.DialogClose);var wo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,xo=(n,e,r,o)=>{for(var t=o>1?void 0:o?yo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&wo(e,r,t),t};a.DialogFooter=class extends l.LitElement{render(){return l.html`
|
2857
2883
|
<div
|
2858
|
-
|
2884
|
+
part="dialog-footer"
|
2885
|
+
class="${u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",this.className)}"
|
2859
2886
|
>
|
2860
2887
|
<slot></slot>
|
2861
2888
|
</div>
|
2862
|
-
`}},a.DialogFooter.styles=[l.css``,c],a.DialogFooter=
|
2889
|
+
`}},a.DialogFooter.styles=[l.css``,c],a.DialogFooter=xo([d.customElement("rtg-dialog-footer")],a.DialogFooter);var $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,We=(n,e,r,o)=>{for(var t=o>1?void 0:o?Co(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&$o(e,r,t),t};a.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
|
2863
2890
|
<div
|
2864
|
-
|
2891
|
+
part="dialog-header"
|
2892
|
+
class="${u("flex flex-col space-y-1.5 text-center sm:text-left",this.className)}"
|
2865
2893
|
>
|
2866
2894
|
<h2
|
2867
|
-
class="${
|
2895
|
+
class="${u("text-lg font-semibold leading-none tracking-tight",this.className)}"
|
2868
2896
|
>
|
2869
2897
|
${this._title}
|
2870
2898
|
</h2>
|
2871
|
-
<p class="${
|
2899
|
+
<p class="${u("text-sm text-muted-foreground",this.className)}">
|
2872
2900
|
${this.description}
|
2873
2901
|
</p>
|
2874
2902
|
</div>
|
2875
|
-
`}},a.DialogHeader.styles=[l.css``,c],
|
2903
|
+
`}},a.DialogHeader.styles=[l.css``,c],We([d.property({attribute:"title",type:String})],a.DialogHeader.prototype,"_title",2),We([d.property({type:String})],a.DialogHeader.prototype,"description",2),a.DialogHeader=We([d.customElement("rtg-dialog-header")],a.DialogHeader);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Eo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&_o(e,r,t),t};a.DialogOverlay=class extends l.LitElement{render(){return l.html`
|
2876
2904
|
<div
|
2877
|
-
|
2905
|
+
part="dialog-overly"
|
2906
|
+
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)}"
|
2878
2907
|
></div>
|
2879
|
-
`}},a.DialogOverlay.styles=[l.css``,c],a.DialogOverlay=
|
2880
|
-
<div rtgdlg-root>
|
2881
|
-
${this.state===
|
2908
|
+
`}},a.DialogOverlay.styles=[l.css``,c],a.DialogOverlay=Eo([d.customElement("rtg-dialog-overlay")],a.DialogOverlay);var So=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,Vt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Po(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&So(e,r,t),t};const ko="open",Do="closed";a.Dialog=class extends l.LitElement{constructor(){super(...arguments),this.state=Do}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof a.DialogContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.state)}render(){return l.html`
|
2909
|
+
<div rtgdlg-root part="dialog">
|
2910
|
+
${this.state===ko?l.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:l.nothing}
|
2882
2911
|
<slot></slot>
|
2883
2912
|
</div>
|
2884
|
-
`}},a.Dialog.styles=[l.css``,c],
|
2913
|
+
`}},a.Dialog.styles=[l.css``,c],Vt([d.property({attribute:"data-state",type:String})],a.Dialog.prototype,"state",2),a.Dialog=Vt([d.customElement("rtg-dialog")],a.Dialog);const Mo="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 Io=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,K=(n,e,r,o)=>{for(var t=o>1?void 0:o?Lo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Io(e,r,t),t};a.Input=class extends y{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.twClass="",this.value=this.value||this.defaultValue}firstUpdated(e){const r=["--input-border-radius","--input-padding"];this.applyCustomClass(r,"input","input-base"),this.type!=="file"&&this.defaultValue&&(this.value=this.defaultValue)}handleInputChange(e){const r=e.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
|
2885
2914
|
<input
|
2886
2915
|
${x(e)}
|
2887
2916
|
part="input"
|
2888
2917
|
type="${this.type}"
|
2889
2918
|
placeholder="${this.placeholder}"
|
2890
2919
|
?disabled=${this.disabled}
|
2891
|
-
class="${
|
2920
|
+
class="${u(Mo,this.twClass)}"
|
2892
2921
|
.value=${this.type!=="file"?this.value:""}
|
2893
2922
|
@change="${this.handleInputChange}"
|
2894
2923
|
/>
|
2895
|
-
`}},a.Input.styles=[l.css``,c],
|
2924
|
+
`}},a.Input.styles=[l.css``,c],K([d.property({type:Boolean})],a.Input.prototype,"disabled",2),K([d.property({type:String})],a.Input.prototype,"type",2),K([d.property({type:String})],a.Input.prototype,"placeholder",2),K([d.property({type:String})],a.Input.prototype,"defaultValue",2),K([d.property({type:String})],a.Input.prototype,"value",2),K([d.property({type:String})],a.Input.prototype,"twClass",2),a.Input=K([d.customElement("rtg-input")],a.Input);const Ao=N("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Ut=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ro(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&zo(e,r,t),t};let ie=class extends y{constructor(){super(...arguments),this.for=""}firstUpdated(n){const e=["--label-text-color,--label-padding"];this.applyCustomClass(e,"label","label-base")}_onClick(n){var r;if(n.defaultPrevented)return;const e=(r=this.shadowRoot)==null?void 0:r.getElementById(this.for);e&&e.click()}getAttributesToExclude(){return["for","data-testid"]}render(){const n=this.getFilteredAttributes();return l.html`
|
2896
2925
|
<label
|
2897
2926
|
${x(n)}
|
2927
|
+
part="label"
|
2898
2928
|
for="${this.for}"
|
2899
2929
|
@click="${this._onClick}"
|
2900
2930
|
@keydown="${this._onClick}"
|
2901
|
-
class="${
|
2931
|
+
class="${u(ie.labelVariants({className:this.className}))}"
|
2902
2932
|
>
|
2903
2933
|
<slot></slot>
|
2904
2934
|
</label>
|
2905
|
-
`}};
|
2935
|
+
`}};ie.labelVariants=Ao,ie.styles=[l.css`
|
2906
2936
|
:root {
|
2907
2937
|
--label-text-color: inherit;
|
2908
2938
|
--label-padding: inherit;
|
@@ -2911,25 +2941,28 @@ body {
|
|
2911
2941
|
color: var(--label-text-color) !important;
|
2912
2942
|
padding: var(--label-padding) !important;
|
2913
2943
|
}
|
2914
|
-
`,c],
|
2944
|
+
`,c],Ut([d.property({type:String})],ie.prototype,"for",2),ie=Ut([d.customElement("rtg-label")],ie);var To=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,Ze=(n,e,r,o)=>{for(var t=o>1?void 0:o?Bo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&To(e,r,t),t};let be=class extends l.LitElement{constructor(){super(...arguments),this.twCLass=""}render(){return l.html`
|
2915
2945
|
<div
|
2916
|
-
|
2946
|
+
part="command"
|
2947
|
+
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)}"
|
2917
2948
|
id="rtgcmdr1"
|
2918
2949
|
rtgcmd-root
|
2919
2950
|
>
|
2920
2951
|
<slot></slot>
|
2921
2952
|
</div>
|
2922
|
-
`}};
|
2953
|
+
`}};be.styles=[l.css``,c],Ze([d.property({type:String})],be.prototype,"twCLass",2),Ze([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],be.prototype,"_input",2),be=Ze([d.customElement("rtg-command")],be);var No=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,je=(n,e,r,o)=>{for(var t=o>1?void 0:o?Fo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&No(e,r,t),t};let G=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="true"}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}e${G._counter++}`:this._id=`rtgcmdrxlxe${G._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
2923
2954
|
<div
|
2924
|
-
|
2955
|
+
part="command-empty"
|
2956
|
+
class="${u("py-6 text-center text-sm",this.className)}"
|
2925
2957
|
rtgcmd-empty
|
2926
2958
|
role="presentation"
|
2927
2959
|
id="${this.identifier}"
|
2928
2960
|
>
|
2929
2961
|
<slot></slot>
|
2930
2962
|
</div>
|
2931
|
-
`}`}};G._counter=0,G.styles=[l.css``,c],
|
2963
|
+
`}`}};G._counter=0,G.styles=[l.css``,c],je([d.property({type:String})],G.prototype,"_id",2),je([d.property({attribute:"aria-hidden",type:String})],G.prototype,"_hidden",2),G=je([d.customElement("rtg-command-empty")],G);var Go=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Se=(n,e,r,o)=>{for(var t=o>1?void 0:o?qo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Go(e,r,t),t};let L=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}g${L._counter++}`:this._id=`rtgcmdrxlxg${L._counter++}`,this._id}render(){const n="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
2932
2964
|
<div
|
2965
|
+
part="command-group"
|
2933
2966
|
class="${n}"
|
2934
2967
|
rtgcmd-group
|
2935
2968
|
role="presentation"
|
@@ -2950,9 +2983,10 @@ body {
|
|
2950
2983
|
<slot></slot>
|
2951
2984
|
</div>
|
2952
2985
|
</div>
|
2953
|
-
`}`}};L._counter=0,L.styles=[l.css``,c],
|
2986
|
+
`}`}};L._counter=0,L.styles=[l.css``,c],Se([d.property({type:String})],L.prototype,"heading",2),Se([d.property({attribute:"id",type:String})],L.prototype,"_id",2),Se([d.property({attribute:"aria-hidden",type:String})],L.prototype,"_hidden",2),L=Se([d.customElement("rtg-command-group")],L);var Vo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Je=(n,e,r,o)=>{for(var t=o>1?void 0:o?Uo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Vo(e,r,t),t};let fe=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const n=this.parentElement;if(n){let e=!0;const r=n.querySelectorAll("rtg-command-list > rtg-command-group");r&&r.forEach(t=>{var f,m;let s=!0;const i=t.querySelectorAll("rtg-command-item");i&&i.forEach(g=>{((g==null?void 0:g.value)||"").toLowerCase().includes(this._value.toLowerCase())?(s=!1,e=!1,g.setAttribute("aria-hidden","false")):g.setAttribute("aria-hidden","true")}),t.setAttribute("aria-hidden",s?"true":"false");let p=t.previousElementSibling;p&&p.setAttribute("aria-hidden",s||((f=p.previousElementSibling)==null?void 0:f.getAttribute("aria-hidden"))==="true"?"true":"false"),p=t.nextElementSibling,p&&p.setAttribute("aria-hidden",s||((m=p.nextElementSibling)==null?void 0:m.getAttribute("aria-hidden"))==="true"?"true":"false")});const o=n.querySelector("rtg-command-empty");o&&o.setAttribute("aria-hidden",e?"false":"true")}}handleChange(n){const e=n.target;e&&(this._value=e.value,this.filterItems())}render(){return l.html`
|
2954
2987
|
<div
|
2955
|
-
|
2988
|
+
part="command-input"
|
2989
|
+
class="${u("flex items-center border-b px-3",this.className)}"
|
2956
2990
|
name="rtgcmd-input-container"
|
2957
2991
|
>
|
2958
2992
|
<svg
|
@@ -2988,9 +3022,10 @@ body {
|
|
2988
3022
|
data-value="${this._value}"
|
2989
3023
|
/>
|
2990
3024
|
</div>
|
2991
|
-
`}};
|
3025
|
+
`}};fe.styles=[l.css``,c],Je([d.property({type:String})],fe.prototype,"placeholder",2),Je([d.property({attribute:"value",type:String})],fe.prototype,"_value",2),fe=Je([d.customElement("rtg-command-input")],fe);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?Yo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Xo(e,r,t),t};let D=class extends l.LitElement{constructor(){super(...arguments),this.selected=!1,this._id="",this._hidden="",this.onSelect=()=>{}}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-group]");return n?this._id=`${n.getAttribute("id")}li${D._counter++}`:this._id=`rtgcmdrxgxli${D._counter++}`,this._id}get value(){var n;return((n=this.textContent)==null?void 0:n.trim())||""}handleMouseEvent(n){(n.type==="mouseover"||n.type==="focus")&&(this.selected=!0),n.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
|
2992
3026
|
<div
|
2993
|
-
|
3027
|
+
part="command-item"
|
3028
|
+
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)}"
|
2994
3029
|
@mouseover="${this.handleMouseEvent}"
|
2995
3030
|
@mouseleave="${this.handleMouseEvent}"
|
2996
3031
|
@focus="${this.handleMouseEvent}"
|
@@ -3005,9 +3040,10 @@ body {
|
|
3005
3040
|
>
|
3006
3041
|
<slot></slot>
|
3007
3042
|
</div>
|
3008
|
-
`}`}};D._counter=0,D.styles=[l.css``,c],
|
3043
|
+
`}`}};D._counter=0,D.styles=[l.css``,c],ve([d.property({type:String})],D.prototype,"_id",2),ve([d.property({attribute:"aria-hidden",type:String})],D.prototype,"_hidden",2),ve([d.property({type:Function})],D.prototype,"onSelect",2),ve([d.property({attribute:"data-value",type:String}),d.property({type:Boolean})],D.prototype,"identifier",1),D=ve([d.customElement("rtg-command-item")],D);var Ho=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,Wo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ko(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ho(e,r,t),t};let Qe=class extends l.LitElement{get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}l`:"rtgcmdrxl"}render(){return l.html`
|
3009
3044
|
<div
|
3010
|
-
|
3045
|
+
part="command-list"
|
3046
|
+
class="${u("max-h-[300px] overflow-y-auto overflow-x-hidden",this.className)}"
|
3011
3047
|
role="listbox"
|
3012
3048
|
id="${this.identifier}"
|
3013
3049
|
style="--rtgcmd-list-height: 265.0px;"
|
@@ -3017,29 +3053,30 @@ body {
|
|
3017
3053
|
<slot></slot>
|
3018
3054
|
</div>
|
3019
3055
|
</div>
|
3020
|
-
`}};
|
3056
|
+
`}};Qe.styles=[l.css``,c],Qe=Wo([d.customElement("rtg-command-list")],Qe);var Zo=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,et=(n,e,r,o)=>{for(var t=o>1?void 0:o?jo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Zo(e,r,t),t};let q=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}s${q._counter++}`:this._id=`rtgcmdrxlxs${q._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3021
3057
|
<div
|
3022
|
-
|
3058
|
+
part="command-separator"
|
3059
|
+
class="${u("-mx-1 h-px bg-border",this.className)}"
|
3023
3060
|
rtgcmd-separator
|
3024
3061
|
role="separator"
|
3025
3062
|
id="${this.identifier}"
|
3026
3063
|
></div>
|
3027
|
-
`}`}};q._counter=0,q.styles=[l.css``,c],
|
3064
|
+
`}`}};q._counter=0,q.styles=[l.css``,c],et([d.property({type:String})],q.prototype,"_id",2),et([d.property({attribute:"aria-hidden",type:String})],q.prototype,"_hidden",2),q=et([d.customElement("rtg-command-separator")],q);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,en=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Jo(e,r,t),t};a.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},a.CardTitle.styles=[l.css``,c],a.CardTitle=en([d.customElement("rtg-card-title")],a.CardTitle);var tn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,on=(n,e,r,o)=>{for(var t=o>1?void 0:o?rn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&tn(e,r,t),t};a.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},a.CardHeader.styles=[l.css``,c],a.CardHeader=on([d.customElement("rtg-card-header")],a.CardHeader);var nn=Object.defineProperty,sn=Object.getOwnPropertyDescriptor,an=(n,e,r,o)=>{for(var t=o>1?void 0:o?sn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&nn(e,r,t),t};a.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},a.CardFooter.styles=[l.css``,c],a.CardFooter=an([d.customElement("rtg-card-footer")],a.CardFooter);var ln=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,cn=(n,e,r,o)=>{for(var t=o>1?void 0:o?dn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ln(e,r,t),t};a.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},a.CardDescription.styles=[l.css``,c],a.CardDescription=cn([d.customElement("rtg-card-description")],a.CardDescription);var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,hn=(n,e,r,o)=>{for(var t=o>1?void 0:o?un(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&pn(e,r,t),t};a.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},a.CardContent.styles=[l.css``,c],a.CardContent=hn([d.customElement("rtg-card-content")],a.CardContent);var mn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,bn=(n,e,r,o)=>{for(var t=o>1?void 0:o?gn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&mn(e,r,t),t};a.Card=class extends l.LitElement{render(){return l.html`<div
|
3028
3065
|
part="card"
|
3029
3066
|
class="rounded-lg border bg-card text-card-foreground shadow-sm p-6"
|
3030
3067
|
id="rtg-card-id"
|
3031
3068
|
>
|
3032
3069
|
<slot></slot>
|
3033
|
-
</div>`}},a.Card.styles=[l.css``,c],a.Card=
|
3034
|
-
<div class="${
|
3070
|
+
</div>`}},a.Card.styles=[l.css``,c],a.Card=bn([d.customElement("rtg-card")],a.Card);const fn=N("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none transition-transform transition-opacity",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}}),vn=N("fixed",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}});var wn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,tt=(n,e,r,o)=>{for(var t=o>1?void 0:o?yn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&wn(e,r,t),t};a.PopoverContent=class extends l.LitElement{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.side="bottom"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof a.Popover);)e=e.parentElement;return e}handleClickOutside(e){var o,t;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(r&&!((t=r.assignedElements({flatten:!0})[0])!=null&&t.contains(e.target))){const i=this._popover;i.isOpen=!1}}firstUpdated(e){window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var r;(r=this._popover)!=null&&r.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}render(){const e=this.enableDefaultStyle?fn({state:"open",side:this.side}):vn({state:"open",side:this.side});return l.html`
|
3071
|
+
<div part="popover-content" class="${u(e)}">
|
3035
3072
|
<slot></slot>
|
3036
3073
|
</div>
|
3037
|
-
`}},a.PopoverContent.styles=[l.css``,c],
|
3038
|
-
<div style="width: fit-content;">
|
3074
|
+
`}},a.PopoverContent.styles=[l.css``,c],tt([d.property({type:Boolean})],a.PopoverContent.prototype,"enableDefaultStyle",2),tt([d.property({type:String})],a.PopoverContent.prototype,"side",2),a.PopoverContent=tt([d.customElement("rtg-popover-content")],a.PopoverContent);var xn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Cn=(n,e,r,o)=>{for(var t=o>1?void 0:o?$n(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&xn(e,r,t),t};a.PopoverTrigger=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof a.Popover);)e=e.parentElement;return e}firstUpdated(e){var t,s;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="trigger-button"]'),o=r==null?void 0:r.assignedElements({flatten:!0});o&&o.length>0&&(o[0].click=this.handleClick),(s=this.shadowRoot)==null||s.addEventListener("click",i=>{i.stopPropagation()})}render(){return l.html`
|
3075
|
+
<div part="popover-trigger" style="width: fit-content;">
|
3039
3076
|
<slot name="trigger-button"></slot>
|
3040
3077
|
</div>
|
3041
|
-
`}},a.PopoverTrigger.styles=[l.css``,c],a.PopoverTrigger=
|
3042
|
-
<div>
|
3078
|
+
`}},a.PopoverTrigger.styles=[l.css``,c],a.PopoverTrigger=Cn([d.customElement("rtg-popover-trigger")],a.PopoverTrigger);var _n=Object.defineProperty,On=Object.getOwnPropertyDescriptor,Xt=(n,e,r,o)=>{for(var t=o>1?void 0:o?On(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&_n(e,r,t),t};a.Popover=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1}firstUpdated(e){super.firstUpdated(e)}updated(e){super.updated(e)}render(){return l.html`
|
3079
|
+
<div part="popover">
|
3043
3080
|
<slot
|
3044
3081
|
name="trigger"
|
3045
3082
|
@click="${()=>this.isOpen=!this.isOpen}"
|
@@ -3048,18 +3085,18 @@ body {
|
|
3048
3085
|
<slot name="content"></slot>
|
3049
3086
|
</div>
|
3050
3087
|
</div>
|
3051
|
-
`}},a.Popover.styles=[l.css``,c],
|
3088
|
+
`}},a.Popover.styles=[l.css``,c],Xt([d.state()],a.Popover.prototype,"isOpen",2),a.Popover=Xt([d.customElement("rtg-popover")],a.Popover);const Yt=N("p-4 rounded-sm text-sm font-medium",{variants:{variant:{success:"bg-green-100 text-green-800 border-green-200",error:"bg-red-100 text-red-800 border-red-200",warning:"bg-yellow-100 text-yellow-800 border-yellow-200",info:"bg-blue-100 text-blue-800 border-blue-200"},size:{small:"text-sm",default:"text-base",large:"text-xl"}},defaultVariants:{variant:"info",size:"default"}});var En=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Pn=(n,e,r,o)=>{for(var t=o>1?void 0:o?Sn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&En(e,r,t),t};a.AlertTitle=class extends l.LitElement{render(){return l.html`<slot part="alert-title"></slot>`}},a.AlertTitle.styles=l.css`
|
3052
3089
|
:host {
|
3053
3090
|
display: block;
|
3054
3091
|
font-weight: bold;
|
3055
3092
|
margin-bottom: 0.5rem;
|
3056
3093
|
}
|
3057
|
-
`,a.AlertTitle=
|
3094
|
+
`,a.AlertTitle=Pn([d.customElement("rtg-alert-title")],a.AlertTitle);var kn=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Mn=(n,e,r,o)=>{for(var t=o>1?void 0:o?Dn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&kn(e,r,t),t};a.AlertDescription=class extends l.LitElement{render(){return l.html`<slot part="alert-description"></slot>`}},a.AlertDescription.styles=l.css`
|
3058
3095
|
:host {
|
3059
3096
|
display: block;
|
3060
3097
|
}
|
3061
|
-
`,a.AlertDescription=
|
3062
|
-
<div class="alert ${this.alertClasses}">
|
3098
|
+
`,a.AlertDescription=Mn([d.customElement("rtg-alert-description")],a.AlertDescription);var In=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Pe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ln(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&In(e,r,t),t};a.Alert=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.variant="info",this.size="default"}get alertClasses(){return Yt({variant:this.variant,size:this.size})}render(){return l.html`
|
3099
|
+
<div class="alert ${this.alertClasses} ${this.twCLass}" part="alert">
|
3063
3100
|
<slot name="title"></slot>
|
3064
3101
|
<slot name="description"></slot>
|
3065
3102
|
</div>
|
@@ -3076,16 +3113,19 @@ body {
|
|
3076
3113
|
font-weight: bold;
|
3077
3114
|
margin-bottom: 0.5rem;
|
3078
3115
|
}
|
3079
|
-
`,c],a.Alert.alertVairants=
|
3116
|
+
`,c],a.Alert.alertVairants=Yt,Pe([d.property({type:String})],a.Alert.prototype,"twCLass",2),Pe([d.property({type:String})],a.Alert.prototype,"variant",2),Pe([d.property({type:String})],a.Alert.prototype,"size",2),a.Alert=Pe([d.customElement("rtg-alert")],a.Alert);const An=N("inline-flex items-center border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent rounded-full",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var zn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,ke=(n,e,r,o)=>{for(var t=o>1?void 0:o?Rn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&zn(e,r,t),t};a.Badge=class extends y{constructor(){super(...arguments),this.twCLass="",this.variant="default",this.id="rtg-badge-id"}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html`
|
3080
3117
|
<div
|
3081
3118
|
${x(e)}
|
3082
|
-
id="
|
3119
|
+
id="${this.id}"
|
3120
|
+
part="badge"
|
3083
3121
|
class="
|
3084
|
-
${
|
3122
|
+
${u(a.Badge.badgeVariants({variant:this.variant,className:this.className}))},
|
3123
|
+
${this.twCLass}
|
3124
|
+
"
|
3085
3125
|
>
|
3086
3126
|
<slot></slot>
|
3087
3127
|
</div>
|
3088
|
-
`}},a.Badge.badgeVariants=
|
3128
|
+
`}},a.Badge.badgeVariants=An,a.Badge.styles=[l.css``,c],ke([d.property({type:String})],a.Badge.prototype,"twCLass",2),ke([d.property({type:String})],a.Badge.prototype,"variant",2),ke([d.property({type:String})],a.Badge.prototype,"id",2),a.Badge=ke([d.customElement("rtg-badge")],a.Badge);function Ht(){return l.svg` <svg
|
3089
3129
|
class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
|
3090
3130
|
xmlns="http://www.w3.org/2000/svg"
|
3091
3131
|
width="24"
|
@@ -3100,7 +3140,7 @@ body {
|
|
3100
3140
|
<path d="m7 15 5 5 5-5"></path>
|
3101
3141
|
<path d="m7 9 5-5 5 5"></path>
|
3102
3142
|
</svg>
|
3103
|
-
`}function
|
3143
|
+
`}function Kt(){return l.svg`
|
3104
3144
|
<svg
|
3105
3145
|
class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
|
3106
3146
|
xmlns="http://www.w3.org/2000/svg"
|
@@ -3115,7 +3155,7 @@ body {
|
|
3115
3155
|
>
|
3116
3156
|
<path d="M20 6 9 17l-5-5"></path>
|
3117
3157
|
</svg>
|
3118
|
-
`}function
|
3158
|
+
`}function Wt(){return l.svg` <svg
|
3119
3159
|
xmlns="http://www.w3.org/2000/svg"
|
3120
3160
|
width = "24"
|
3121
3161
|
height = "24"
|
@@ -3129,7 +3169,7 @@ body {
|
|
3129
3169
|
<circle cx="11" cy = "11" r = "8" > </circle>
|
3130
3170
|
<path d="m21 21-4.3-4.3"></path >
|
3131
3171
|
</svg>
|
3132
|
-
`}function
|
3172
|
+
`}function Zt(){return l.svg` <svg
|
3133
3173
|
xmlns="http://www.w3.org/2000/svg"
|
3134
3174
|
width="24"
|
3135
3175
|
height="24"
|
@@ -3143,8 +3183,8 @@ body {
|
|
3143
3183
|
>
|
3144
3184
|
<circle cx="12" cy="12" r="10"></circle>
|
3145
3185
|
</svg>
|
3146
|
-
`}function
|
3147
|
-
`}function
|
3186
|
+
`}function Tn(){return l.svg` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-4 w-4 shrink-0 transition-transform duration-200"><path d="m6 9 6 6 6-6"></path></svg>
|
3187
|
+
`}function Bn(){return l.svg` <svg
|
3148
3188
|
xmlns="http://www.w3.org/2000/svg"
|
3149
3189
|
width="24"
|
3150
3190
|
height="24"
|
@@ -3158,10 +3198,11 @@ body {
|
|
3158
3198
|
>
|
3159
3199
|
<circle cx="12" cy="12" r="10"></circle></svg
|
3160
3200
|
>
|
3161
|
-
`}function
|
3201
|
+
`}function Nn(){return l.svg`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-dot">
|
3162
3202
|
<circle cx="12.1" cy="12.1" r="1"></circle>
|
3163
|
-
</svg>`}var
|
3203
|
+
</svg>`}var Fn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,De=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Fn(e,r,t),t};let ae=class extends l.LitElement{constructor(){super(...arguments),this.value="",this.handleClick=()=>{},this.handleKeyDown=()=>{}}render(){return l.html`
|
3164
3204
|
<input
|
3205
|
+
part="combo-box-input"
|
3165
3206
|
class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
|
3166
3207
|
text-sm font-medium border border-input cursor-pointer
|
3167
3208
|
ring-offset-background
|
@@ -3177,8 +3218,9 @@ body {
|
|
3177
3218
|
@click=${this.handleClick}
|
3178
3219
|
@keydown=${this.handleKeyDown}
|
3179
3220
|
/>
|
3180
|
-
`}};
|
3221
|
+
`}};ae.styles=[l.css``,c],De([d.property({type:String})],ae.prototype,"value",2),De([d.property({type:Function})],ae.prototype,"handleClick",2),De([d.property({type:Function})],ae.prototype,"handleKeyDown",2),ae=De([d.customElement("rtg-combo-box-input")],ae);var qn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,V=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&qn(e,r,t),t};let M=class extends l.LitElement{constructor(){super(...arguments),this.key="",this.searchText="",this.value="",this.tabindex=0,this.isSelected=!1,this.twClass="",this.onSelect=()=>{}}connectedCallback(){var n;super.connectedCallback(),(n=this.shadowRoot)==null||n.addEventListener("mousedown",()=>{var r;let e=(r=this.parentElement)==null?void 0:r.querySelector(`[data-hs-combo-box-value="${this.value}"]`);e&&e.click()})}render(){return l.html`
|
3181
3222
|
<div
|
3223
|
+
part="combo-box-item"
|
3182
3224
|
key="${this.key}"
|
3183
3225
|
class="flex items-center cursor-pointer py-2 px-4 w-full text-sm text-gray-800
|
3184
3226
|
rounded-lg
|
@@ -3189,7 +3231,7 @@ body {
|
|
3189
3231
|
dark:hover:bg-neutral-800
|
3190
3232
|
dark:text-neutral-200
|
3191
3233
|
dark:focus:bg-neutral-800
|
3192
|
-
${this.
|
3234
|
+
${this.twClass}
|
3193
3235
|
"
|
3194
3236
|
tabindex="${this.tabindex}"
|
3195
3237
|
aria-selected="${this.isSelected}"
|
@@ -3200,7 +3242,7 @@ body {
|
|
3200
3242
|
<span
|
3201
3243
|
class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
|
3202
3244
|
>
|
3203
|
-
${
|
3245
|
+
${Kt()}
|
3204
3246
|
</span>
|
3205
3247
|
<div class="flex justify-between items-center w-full">
|
3206
3248
|
<span
|
@@ -3211,17 +3253,19 @@ body {
|
|
3211
3253
|
</span>
|
3212
3254
|
</div>
|
3213
3255
|
</div>
|
3214
|
-
`}};M.styles=[l.css``,c],V([d.property({type:String})],M.prototype,"key",2),V([d.property({type:String})],M.prototype,"searchText",2),V([d.property({type:String})],M.prototype,"value",2),V([d.property({type:Number})],M.prototype,"tabindex",2),V([d.property({type:Boolean})],M.prototype,"isSelected",2),V([d.property({type:String})],M.prototype,"
|
3256
|
+
`}};M.styles=[l.css``,c],V([d.property({type:String})],M.prototype,"key",2),V([d.property({type:String})],M.prototype,"searchText",2),V([d.property({type:String})],M.prototype,"value",2),V([d.property({type:Number})],M.prototype,"tabindex",2),V([d.property({type:Boolean})],M.prototype,"isSelected",2),V([d.property({type:String})],M.prototype,"twClass",2),V([d.property({type:Function})],M.prototype,"onSelect",2),M=V([d.customElement("rtg-combo-box-item")],M);const Un="open",Me="closed";var Xn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,rt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Yn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Xn(e,r,t),t};let we=class extends l.LitElement{constructor(){super(...arguments),this.state=Me,this.isOpen=!1}get _popover(){let n=this.parentElement;for(;n&&!(n instanceof a.ComboBox);)n=n.parentElement;return n}render(){return l.html`
|
3215
3257
|
<div
|
3258
|
+
part="combo-box-list"
|
3216
3259
|
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"
|
3217
3260
|
data-hs-combo-box-output=""
|
3218
|
-
style="display: ${this.state===
|
3261
|
+
style="display: ${this.state===Un?"block":"none"}; top:115%"
|
3219
3262
|
>
|
3220
3263
|
<div
|
3221
3264
|
class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
|
3222
3265
|
>
|
3223
|
-
${
|
3266
|
+
${Wt()}
|
3224
3267
|
<input
|
3268
|
+
part="combo-box-search-input"
|
3225
3269
|
type="text"
|
3226
3270
|
class="w-full px-2 py-2 rounded focus:outline-none"
|
3227
3271
|
placeholder="Search..."
|
@@ -3235,11 +3279,12 @@ body {
|
|
3235
3279
|
</div>
|
3236
3280
|
<slot></slot>
|
3237
3281
|
</div>
|
3238
|
-
`}};
|
3282
|
+
`}};we.styles=[l.css``,c],rt([d.property({attribute:"data-state",type:String})],we.prototype,"state",2),rt([d.state()],we.prototype,"isOpen",2),we=rt([d.customElement("rtg-combo-box-list")],we);var Hn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,A=(n,e,r,o)=>{for(var t=o>1?void 0:o?Kn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Hn(e,r,t),t};a.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.comboBoxid=crypto.randomUUID(),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("[data-hs-combo-box]"),o=e.target;if(!r||!r.contains(o))this.isOpen=!1;else if(!((s=o.shadowRoot)==null?void 0:s.firstElementChild))return}}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(e){this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}toggleDropdown(){this.isOpen=!this.isOpen,this.focusedIndex=-1}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}handleSearch(e){const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}updateFocus(){if(!this.shadowRoot)return;this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((r,o)=>{o===this.focusedIndex?r.classList.add("bg-gray-100"):r.classList.remove("bg-gray-100")})}render(){return l.html`
|
3239
3283
|
<div
|
3240
3284
|
class="relative"
|
3241
3285
|
data-hs-combo-box=""
|
3242
3286
|
data-combo-box-id=${this.comboBoxid}
|
3287
|
+
part="combo-box"
|
3243
3288
|
>
|
3244
3289
|
<div>
|
3245
3290
|
<input
|
@@ -3265,7 +3310,7 @@ body {
|
|
3265
3310
|
data-hs-combo-box-toggle=""
|
3266
3311
|
@click="${this.toggleDropdown}"
|
3267
3312
|
>
|
3268
|
-
${
|
3313
|
+
${Ht()}
|
3269
3314
|
</div>
|
3270
3315
|
</div>
|
3271
3316
|
<div
|
@@ -3277,7 +3322,7 @@ body {
|
|
3277
3322
|
<div
|
3278
3323
|
class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
|
3279
3324
|
>
|
3280
|
-
${
|
3325
|
+
${Wt()}
|
3281
3326
|
<input
|
3282
3327
|
type="text"
|
3283
3328
|
class="w-full px-2 py-2 rounded focus:outline-none"
|
@@ -3314,16 +3359,18 @@ body {
|
|
3314
3359
|
`}
|
3315
3360
|
</div>
|
3316
3361
|
</div>
|
3317
|
-
`}},a.ComboBox.styles=[l.css``,c],A([d.state()],a.ComboBox.prototype,"comboBoxid",2),A([d.state()],a.ComboBox.prototype,"isOpen",2),A([d.state()],a.ComboBox.prototype,"selectedValue",2),A([d.state()],a.ComboBox.prototype,"searchTerm",2),A([d.state()],a.ComboBox.prototype,"focusedIndex",2),A([d.state()],a.ComboBox.prototype,"filteredItems",2),A([d.property({type:String})],a.ComboBox.prototype,"label",2),A([d.property({type:Array})],a.ComboBox.prototype,"items",2),a.ComboBox=A([d.customElement("rtg-combo-box")],a.ComboBox);var
|
3362
|
+
`}},a.ComboBox.styles=[l.css``,c],A([d.state()],a.ComboBox.prototype,"comboBoxid",2),A([d.state()],a.ComboBox.prototype,"isOpen",2),A([d.state()],a.ComboBox.prototype,"selectedValue",2),A([d.state()],a.ComboBox.prototype,"searchTerm",2),A([d.state()],a.ComboBox.prototype,"focusedIndex",2),A([d.state()],a.ComboBox.prototype,"filteredItems",2),A([d.property({type:String})],a.ComboBox.prototype,"label",2),A([d.property({type:Array})],a.ComboBox.prototype,"items",2),a.ComboBox=A([d.customElement("rtg-combo-box")],a.ComboBox);var Wn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,ot=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Wn(e,r,t),t};a.DropdownMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Me,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof a.DropdownMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-dropdown-menu-content"),o=(s=this.shadowRoot)==null?void 0:s.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
3318
3363
|
<div
|
3364
|
+
part="dropdown-menu-content"
|
3319
3365
|
class="flex h-full flex-col max-h-[300px] overflow-y-auto overflow-x-hidden rounded-md bg-popover text-popover-foreground border shadow-md"
|
3320
3366
|
style="display: ${this.isOpen?"block":"none"};width:260px"
|
3321
3367
|
>
|
3322
3368
|
<slot></slot>
|
3323
3369
|
</div>
|
3324
|
-
`}},a.DropdownMenuContent.styles=[l.css``,c],
|
3370
|
+
`}},a.DropdownMenuContent.styles=[l.css``,c],ot([d.property({attribute:"data-state",type:String})],a.DropdownMenuContent.prototype,"state",2),ot([d.state()],a.DropdownMenuContent.prototype,"isOpen",2),a.DropdownMenuContent=ot([d.customElement("rtg-dropdown-menu-content")],a.DropdownMenuContent);var jn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,ye=(n,e,r,o)=>{for(var t=o>1?void 0:o?Jn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&jn(e,r,t),t};a.DropdownMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuItem._counter++}`:this._id=`rtgcmdrxgxli${a.DropdownMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
|
3325
3371
|
<div
|
3326
|
-
|
3372
|
+
part="dropdown-menu-item"
|
3373
|
+
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)}"
|
3327
3374
|
@mouseover="${this.handleMouseEvent}"
|
3328
3375
|
@mouseleave="${this.handleMouseEvent}"
|
3329
3376
|
@focus="${this.handleMouseEvent}"
|
@@ -3337,9 +3384,10 @@ body {
|
|
3337
3384
|
>
|
3338
3385
|
<slot></slot>
|
3339
3386
|
</div>
|
3340
|
-
`}`}},a.DropdownMenuItem._counter=0,a.DropdownMenuItem.styles=[l.css``,c],
|
3387
|
+
`}`}},a.DropdownMenuItem._counter=0,a.DropdownMenuItem.styles=[l.css``,c],ye([d.property({type:String})],a.DropdownMenuItem.prototype,"_id",2),ye([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuItem.prototype,"_hidden",2),ye([d.property({attribute:"data-value",type:String})],a.DropdownMenuItem.prototype,"value",1),ye([d.property({type:Boolean})],a.DropdownMenuItem.prototype,"selected",2),a.DropdownMenuItem=ye([d.customElement("rtg-dropdown-menu-item")],a.DropdownMenuItem);var Qn=Object.defineProperty,es=Object.getOwnPropertyDescriptor,W=(n,e,r,o)=>{for(var t=o>1?void 0:o?es(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Qn(e,r,t),t};a.DropdownMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${a.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`
|
3341
3388
|
<div
|
3342
|
-
|
3389
|
+
part="dropdown-menu-radio"
|
3390
|
+
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)}"
|
3343
3391
|
@click=${this.toggleChecked}
|
3344
3392
|
@mouseover="${this.handleMouseEvent}"
|
3345
3393
|
@mouseleave="${this.handleMouseEvent}"
|
@@ -3355,7 +3403,7 @@ body {
|
|
3355
3403
|
<span
|
3356
3404
|
class="icon-space absolute left-2 flex items-center justify-center"
|
3357
3405
|
>
|
3358
|
-
${this.checked?l.html` ${
|
3406
|
+
${this.checked?l.html` ${Zt()} `:l.nothing}
|
3359
3407
|
</span>
|
3360
3408
|
<slot></slot>
|
3361
3409
|
</div>
|
@@ -3365,16 +3413,18 @@ body {
|
|
3365
3413
|
height: 16px;
|
3366
3414
|
display: inline-block;
|
3367
3415
|
}
|
3368
|
-
`,c],
|
3416
|
+
`,c],W([d.property({type:String})],a.DropdownMenuRadioItem.prototype,"_id",2),W([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuRadioItem.prototype,"_hidden",2),W([d.property({attribute:"data-value",type:String})],a.DropdownMenuRadioItem.prototype,"value",1),W([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"selected",2),W([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"checked",2),W([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"disabled",2),a.DropdownMenuRadioItem=W([d.customElement("rtg-dropdown-menu-radio-item")],a.DropdownMenuRadioItem);var ts=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,nt=(n,e,r,o)=>{for(var t=o>1?void 0:o?rs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ts(e,r,t),t};a.DropdownMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.DropdownMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${a.DropdownMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3369
3417
|
<div
|
3370
|
-
|
3418
|
+
part="dropdown-menu-seperator"
|
3419
|
+
class="${u("-mx-1 h-px bg-border",this.className)}"
|
3371
3420
|
rtgcmd-separator
|
3372
3421
|
role="separator"
|
3373
3422
|
id="${this.identifier}"
|
3374
3423
|
></div>
|
3375
|
-
`}`}},a.DropdownMenuSeparator._counter=0,a.DropdownMenuSeparator.styles=[l.css``,c],
|
3424
|
+
`}`}},a.DropdownMenuSeparator._counter=0,a.DropdownMenuSeparator.styles=[l.css``,c],nt([d.property({type:String})],a.DropdownMenuSeparator.prototype,"_id",2),nt([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuSeparator.prototype,"_hidden",2),a.DropdownMenuSeparator=nt([d.customElement("rtg-dropdown-menu-separator")],a.DropdownMenuSeparator);var os=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,Z=(n,e,r,o)=>{for(var t=o>1?void 0:o?ns(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&os(e,r,t),t};a.DropdownMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${a.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`
|
3376
3425
|
<div
|
3377
|
-
|
3426
|
+
part="dropdown-menu-item"
|
3427
|
+
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)}"
|
3378
3428
|
@click=${this.toggleChecked}
|
3379
3429
|
@mouseover="${this.handleMouseEvent}"
|
3380
3430
|
@mouseleave="${this.handleMouseEvent}"
|
@@ -3411,8 +3461,9 @@ body {
|
|
3411
3461
|
height: 16px;
|
3412
3462
|
display: inline-block;
|
3413
3463
|
}
|
3414
|
-
`,c],
|
3464
|
+
`,c],Z([d.property({type:String})],a.DropdownMenuCheckboxItem.prototype,"_id",2),Z([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuCheckboxItem.prototype,"_hidden",2),Z([d.property({attribute:"data-value",type:String})],a.DropdownMenuCheckboxItem.prototype,"value",1),Z([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"selected",2),Z([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"checked",2),Z([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"disabled",2),a.DropdownMenuCheckboxItem=Z([d.customElement("rtg-dropdown-menu-checkbox-item")],a.DropdownMenuCheckboxItem);var ss=Object.defineProperty,is=Object.getOwnPropertyDescriptor,Ie=(n,e,r,o)=>{for(var t=o>1?void 0:o?is(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ss(e,r,t),t};a.DropdownMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${a.DropdownMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${a.DropdownMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3415
3465
|
<div
|
3466
|
+
part="dropdown-menu-group"
|
3416
3467
|
class="${e}"
|
3417
3468
|
rtgcmd-group
|
3418
3469
|
role="presentation"
|
@@ -3433,8 +3484,8 @@ body {
|
|
3433
3484
|
<slot></slot>
|
3434
3485
|
</div>
|
3435
3486
|
</div>
|
3436
|
-
`}`}},a.DropdownMenuGroup._counter=0,a.DropdownMenuGroup.styles=[l.css``,c],
|
3437
|
-
<div>
|
3487
|
+
`}`}},a.DropdownMenuGroup._counter=0,a.DropdownMenuGroup.styles=[l.css``,c],Ie([d.property({type:String})],a.DropdownMenuGroup.prototype,"heading",2),Ie([d.property({attribute:"id",type:String})],a.DropdownMenuGroup.prototype,"_id",2),Ie([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuGroup.prototype,"_hidden",2),a.DropdownMenuGroup=Ie([d.customElement("rtg-dropdown-menu-group")],a.DropdownMenuGroup);var as=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,jt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ls(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&as(e,r,t),t};a.DropdownMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.stopPropagation(),this.isOpen=!this.isOpen}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof a.DropdownMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
3488
|
+
<div part="dropdown-menu">
|
3438
3489
|
<div>
|
3439
3490
|
<slot @click="${this.toggleDropdown}"></slot>
|
3440
3491
|
</div>
|
@@ -3442,10 +3493,11 @@ body {
|
|
3442
3493
|
<slot></slot>
|
3443
3494
|
</div>
|
3444
3495
|
</div>
|
3445
|
-
`}},a.DropdownMenu.styles=[l.css``,c],
|
3496
|
+
`}},a.DropdownMenu.styles=[l.css``,c],jt([d.state()],a.DropdownMenu.prototype,"isOpen",2),a.DropdownMenu=jt([d.customElement("rtg-dropdown-menu")],a.DropdownMenu);var Jt=(n=>(n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg",n))(Jt||{}),Qt=(n=>(n.DEFAULT="default",n.OUTLINE="outline",n))(Qt||{});const ds=N("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground bg-transparent h-10 px-3",{variants:{variant:{default:" hover:bg-muted hover:text-muted-foreground",outline:" border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-9 px-2.5",md:"h-10 px-3",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"sm"}});var cs=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,j=(n,e,r,o)=>{for(var t=o>1?void 0:o?ps(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&cs(e,r,t),t};a.Toggle=class extends y{constructor(){super(...arguments),this.disabled=!1,this.twCLass="",this.checked=!1,this.required=!1,this.variant=Qt.DEFAULT,this.size=Jt.SMALL}getAttributesToExclude(){return["disabled","checked","variant","size","required"]}toggle(){this.disabled||(this.checked=!this.checked)}render(){const e=this.getFilteredAttributes();return k.html`
|
3446
3497
|
<button
|
3447
3498
|
type="button"
|
3448
|
-
|
3499
|
+
part="toggle"
|
3500
|
+
class="${u(a.Toggle.toggleVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.twCLass}"
|
3449
3501
|
aria-pressed=${this.checked}
|
3450
3502
|
data-state="${this.checked?"on":"off"}"
|
3451
3503
|
aria-label="Toggle bold"
|
@@ -3456,17 +3508,19 @@ body {
|
|
3456
3508
|
>
|
3457
3509
|
<slot></slot>
|
3458
3510
|
</button>
|
3459
|
-
`}},a.Toggle.styles=[c],a.Toggle.toggleVariants=
|
3511
|
+
`}},a.Toggle.styles=[c],a.Toggle.toggleVariants=ds,j([d.property({type:Boolean})],a.Toggle.prototype,"disabled",2),j([d.property({type:String})],a.Toggle.prototype,"twCLass",2),j([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"checked",2),j([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"required",2),j([d.property({attribute:!0,type:String})],a.Toggle.prototype,"variant",2),j([d.property({attribute:!0,type:String})],a.Toggle.prototype,"size",2),a.Toggle=j([d.customElement("rtg-toggle")],a.Toggle);var us=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,st=(n,e,r,o)=>{for(var t=o>1?void 0:o?hs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&us(e,r,t),t};a.ContextMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Me,this.isOpen=!1}get _contextMenu(){let e=this.parentElement;for(;e&&!(e instanceof a.ContextMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-context-menu-content"),o=(s=this.shadowRoot)==null?void 0:s.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
|
3460
3512
|
<div
|
3513
|
+
part="context-menu-content"
|
3461
3514
|
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"
|
3462
3515
|
data-state="${this.state}"
|
3463
3516
|
style="display: ${this.isOpen?"block":"none"}; width: 260px"
|
3464
3517
|
>
|
3465
3518
|
<slot></slot>
|
3466
3519
|
</div>
|
3467
|
-
`}},a.ContextMenuContent.styles=[l.css``,c],
|
3520
|
+
`}},a.ContextMenuContent.styles=[l.css``,c],st([d.property({attribute:"data-state",type:String})],a.ContextMenuContent.prototype,"state",2),st([d.state()],a.ContextMenuContent.prototype,"isOpen",2),a.ContextMenuContent=st([d.customElement("rtg-context-menu-content")],a.ContextMenuContent);var ms=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,J=(n,e,r,o)=>{for(var t=o>1?void 0:o?gs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ms(e,r,t),t};a.ContextMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
|
3468
3521
|
<div
|
3469
|
-
|
3522
|
+
part="context-menu-checkbox"
|
3523
|
+
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)}"
|
3470
3524
|
@click=${this.toggleChecked}
|
3471
3525
|
@mouseover="${this.handleMouseEvent}"
|
3472
3526
|
@mouseleave="${this.handleMouseEvent}"
|
@@ -3503,8 +3557,9 @@ body {
|
|
3503
3557
|
height: 16px;
|
3504
3558
|
display: inline-block;
|
3505
3559
|
}
|
3506
|
-
`,c],
|
3560
|
+
`,c],J([d.property({type:String})],a.ContextMenuCheckboxItem.prototype,"_id",2),J([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuCheckboxItem.prototype,"_hidden",2),J([d.property({attribute:"data-value",type:String})],a.ContextMenuCheckboxItem.prototype,"value",1),J([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"selected",2),J([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"checked",2),J([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"disabled",2),a.ContextMenuCheckboxItem=J([d.customElement("rtg-context-menu-checkbox-item")],a.ContextMenuCheckboxItem);var bs=Object.defineProperty,fs=Object.getOwnPropertyDescriptor,Le=(n,e,r,o)=>{for(var t=o>1?void 0:o?fs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&bs(e,r,t),t};a.ContextMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${a.ContextMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${a.ContextMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3507
3561
|
<div
|
3562
|
+
part="context-menu-group"
|
3508
3563
|
class="${e}"
|
3509
3564
|
rtgcmd-group
|
3510
3565
|
role="presentation"
|
@@ -3525,9 +3580,10 @@ body {
|
|
3525
3580
|
<slot></slot>
|
3526
3581
|
</div>
|
3527
3582
|
</div>
|
3528
|
-
`}`}},a.ContextMenuGroup._counter=0,a.ContextMenuGroup.styles=[l.css``,c],
|
3583
|
+
`}`}},a.ContextMenuGroup._counter=0,a.ContextMenuGroup.styles=[l.css``,c],Le([d.property({type:String})],a.ContextMenuGroup.prototype,"heading",2),Le([d.property({attribute:"id",type:String})],a.ContextMenuGroup.prototype,"_id",2),Le([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuGroup.prototype,"_hidden",2),a.ContextMenuGroup=Le([d.customElement("rtg-context-menu-group")],a.ContextMenuGroup);var vs=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,xe=(n,e,r,o)=>{for(var t=o>1?void 0:o?ws(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&vs(e,r,t),t};a.ContextMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
|
3529
3584
|
<div
|
3530
|
-
|
3585
|
+
part="context-menu-item"
|
3586
|
+
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)}"
|
3531
3587
|
@mouseover="${this.handleMouseEvent}"
|
3532
3588
|
@mouseleave="${this.handleMouseEvent}"
|
3533
3589
|
@focus="${this.handleMouseEvent}"
|
@@ -3541,9 +3597,10 @@ body {
|
|
3541
3597
|
>
|
3542
3598
|
<slot></slot>
|
3543
3599
|
</div>
|
3544
|
-
`}`}},a.ContextMenuItem._counter=0,a.ContextMenuItem.styles=[l.css``,c],
|
3600
|
+
`}`}},a.ContextMenuItem._counter=0,a.ContextMenuItem.styles=[l.css``,c],xe([d.property({type:String})],a.ContextMenuItem.prototype,"_id",2),xe([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuItem.prototype,"_hidden",2),xe([d.property({attribute:"data-value",type:String})],a.ContextMenuItem.prototype,"value",1),xe([d.property({type:Boolean})],a.ContextMenuItem.prototype,"selected",2),a.ContextMenuItem=xe([d.customElement("rtg-context-menu-item")],a.ContextMenuItem);var ys=Object.defineProperty,xs=Object.getOwnPropertyDescriptor,Q=(n,e,r,o)=>{for(var t=o>1?void 0:o?xs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ys(e,r,t),t};a.ContextMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
3545
3601
|
<div
|
3546
|
-
|
3602
|
+
part="context-menu-radio"
|
3603
|
+
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)}"
|
3547
3604
|
@click=${this.toggleChecked}
|
3548
3605
|
@mouseover="${this.handleMouseEvent}"
|
3549
3606
|
@mouseleave="${this.handleMouseEvent}"
|
@@ -3559,7 +3616,7 @@ body {
|
|
3559
3616
|
<span
|
3560
3617
|
class="icon-space absolute left-2 flex items-center justify-center"
|
3561
3618
|
>
|
3562
|
-
${this.checked?l.html` ${
|
3619
|
+
${this.checked?l.html` ${Zt()} `:l.nothing}
|
3563
3620
|
</span>
|
3564
3621
|
<slot></slot>
|
3565
3622
|
</div>
|
@@ -3569,19 +3626,23 @@ body {
|
|
3569
3626
|
height: 16px;
|
3570
3627
|
display: inline-block;
|
3571
3628
|
}
|
3572
|
-
`,c],
|
3629
|
+
`,c],Q([d.property({type:String})],a.ContextMenuRadioItem.prototype,"_id",2),Q([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuRadioItem.prototype,"_hidden",2),Q([d.property({attribute:"data-value",type:String})],a.ContextMenuRadioItem.prototype,"value",1),Q([d.property({type:Boolean})],a.ContextMenuRadioItem.prototype,"selected",2),Q([d.property({type:Boolean})],a.ContextMenuRadioItem.prototype,"checked",2),Q([d.property({type:Boolean})],a.ContextMenuRadioItem.prototype,"disabled",2),a.ContextMenuRadioItem=Q([d.customElement("rtg-context-menu-radio-item")],a.ContextMenuRadioItem);var $s=Object.defineProperty,Cs=Object.getOwnPropertyDescriptor,it=(n,e,r,o)=>{for(var t=o>1?void 0:o?Cs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&$s(e,r,t),t};a.ContextMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.ContextMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${a.ContextMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3573
3630
|
<div
|
3574
|
-
|
3631
|
+
part="context-menu-separator"
|
3632
|
+
class="${u("-mx-1 h-px bg-border",this.className)}"
|
3575
3633
|
rtgcmd-separator
|
3576
3634
|
role="separator"
|
3577
3635
|
id="${this.identifier}"
|
3578
3636
|
></div>
|
3579
|
-
`}`}},a.ContextMenuSeparator._counter=0,a.ContextMenuSeparator.styles=[l.css``,c],
|
3580
|
-
<span
|
3637
|
+
`}`}},a.ContextMenuSeparator._counter=0,a.ContextMenuSeparator.styles=[l.css``,c],it([d.property({type:String})],a.ContextMenuSeparator.prototype,"_id",2),it([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuSeparator.prototype,"_hidden",2),a.ContextMenuSeparator=it([d.customElement("rtg-context-menu-separator")],a.ContextMenuSeparator);var _s=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,Es=(n,e,r,o)=>{for(var t=o>1?void 0:o?Os(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&_s(e,r,t),t};a.ContextMenuShortcut=class extends l.LitElement{render(){return l.html`
|
3638
|
+
<span
|
3639
|
+
part="context-menu-shortcut"
|
3640
|
+
class="${u("ml-auto text-xs font-semibold",this.className)}"
|
3641
|
+
>
|
3581
3642
|
<slot></slot>
|
3582
3643
|
</span>
|
3583
|
-
`}},a.ContextMenuShortcut.styles=[l.css``,c],a.ContextMenuShortcut=
|
3584
|
-
<div
|
3644
|
+
`}},a.ContextMenuShortcut.styles=[l.css``,c],a.ContextMenuShortcut=Es([d.customElement("rtg-context-menu-shortcut")],a.ContextMenuShortcut);var Ss=Object.defineProperty,Ps=Object.getOwnPropertyDescriptor,er=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ps(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ss(e,r,t),t};a.ContextMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.preventDefault(),e.stopPropagation();const{clientX:r,clientY:o}=e,t=e.target.getBoundingClientRect();requestAnimationFrame(()=>{const s=this._content;s&&(s.style.position="absolute",s.style.left=`${r-t.left}px`,s.style.top=`${o-t.top}px`,s.dataset.state="open",this.isOpen=!0)})}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof a.ContextMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-context-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
3645
|
+
<div class="flex" part="context-menu">
|
3585
3646
|
<div>
|
3586
3647
|
<slot @contextmenu="${this.toggleDropdown}"></slot>
|
3587
3648
|
</div>
|
@@ -3589,7 +3650,7 @@ body {
|
|
3589
3650
|
<slot></slot>
|
3590
3651
|
</div>
|
3591
3652
|
</div>
|
3592
|
-
`}},a.ContextMenu.styles=[l.css``,c],
|
3653
|
+
`}},a.ContextMenu.styles=[l.css``,c],er([d.state()],a.ContextMenu.prototype,"isOpen",2),a.ContextMenu=er([d.customElement("rtg-context-menu")],a.ContextMenu);var ks=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,U=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ds(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ks(e,r,t),t};a.SelectItem=class extends l.LitElement{constructor(){super(...arguments),this.key="",this.searchText="",this.value="",this.tabindex=0,this.isSelected=!1,this.class="",this.onSelect=()=>{}}render(){return l.html`
|
3593
3654
|
<div
|
3594
3655
|
key="${this.key}"
|
3595
3656
|
class="flex items-center cursor-pointer py-2 px-4 w-full
|
@@ -3613,7 +3674,7 @@ body {
|
|
3613
3674
|
<span
|
3614
3675
|
class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
|
3615
3676
|
>
|
3616
|
-
${
|
3677
|
+
${Kt()}
|
3617
3678
|
</span>
|
3618
3679
|
<div
|
3619
3680
|
class="flex justify-between items-center w-full text-sm text-gray-500"
|
@@ -3626,7 +3687,7 @@ body {
|
|
3626
3687
|
</span>
|
3627
3688
|
</div>
|
3628
3689
|
</div>
|
3629
|
-
`}},a.SelectItem.styles=[l.css``,c],U([d.property({type:String})],a.SelectItem.prototype,"key",2),U([d.property({type:String})],a.SelectItem.prototype,"searchText",2),U([d.property({type:String})],a.SelectItem.prototype,"value",2),U([d.property({type:Number})],a.SelectItem.prototype,"tabindex",2),U([d.property({type:Boolean})],a.SelectItem.prototype,"isSelected",2),U([d.property({type:String})],a.SelectItem.prototype,"class",2),U([d.property({type:Function})],a.SelectItem.prototype,"onSelect",2),a.SelectItem=U([d.customElement("rtg-select-item")],a.SelectItem);var
|
3690
|
+
`}},a.SelectItem.styles=[l.css``,c],U([d.property({type:String})],a.SelectItem.prototype,"key",2),U([d.property({type:String})],a.SelectItem.prototype,"searchText",2),U([d.property({type:String})],a.SelectItem.prototype,"value",2),U([d.property({type:Number})],a.SelectItem.prototype,"tabindex",2),U([d.property({type:Boolean})],a.SelectItem.prototype,"isSelected",2),U([d.property({type:String})],a.SelectItem.prototype,"class",2),U([d.property({type:Function})],a.SelectItem.prototype,"onSelect",2),a.SelectItem=U([d.customElement("rtg-select-item")],a.SelectItem);var Ms=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,at=(n,e,r,o)=>{for(var t=o>1?void 0:o?Is(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ms(e,r,t),t};a.SelectList=class extends l.LitElement{constructor(){super(...arguments),this.state=Me,this.isOpen=!1}render(){return l.html`
|
3630
3691
|
<div
|
3631
3692
|
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"
|
3632
3693
|
data-hs-combo-box-output=""
|
@@ -3635,18 +3696,18 @@ body {
|
|
3635
3696
|
>
|
3636
3697
|
<slot></slot>
|
3637
3698
|
</div>
|
3638
|
-
`}},a.SelectList.styles=[l.css``,c],
|
3639
|
-
<span class="${
|
3699
|
+
`}},a.SelectList.styles=[l.css``,c],at([d.property({attribute:"data-state",type:String})],a.SelectList.prototype,"state",2),at([d.state()],a.SelectList.prototype,"isOpen",2),a.SelectList=at([d.customElement("rtg-select-list")],a.SelectList);var Ls=Object.defineProperty,As=Object.getOwnPropertyDescriptor,zs=(n,e,r,o)=>{for(var t=o>1?void 0:o?As(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ls(e,r,t),t};a.SelectLabel=class extends l.LitElement{render(){return l.html`
|
3700
|
+
<span class="${u("px-2 py-1.5 text-sm font-semibold",this.className)}">
|
3640
3701
|
<slot></slot>
|
3641
3702
|
</span>
|
3642
|
-
`}},a.SelectLabel.styles=[l.css``,c],a.SelectLabel=
|
3703
|
+
`}},a.SelectLabel.styles=[l.css``,c],a.SelectLabel=zs([d.customElement("rtg-select-label")],a.SelectLabel);var Rs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,lt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ts(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Rs(e,r,t),t};a.SelectSeperator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.SelectSeperator._counter++}`:this._id=`rtgcmdrxlxs${a.SelectSeperator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3643
3704
|
<div
|
3644
|
-
class="${
|
3705
|
+
class="${u("-mx-1 h-px bg-border",this.className)}"
|
3645
3706
|
rtgcmd-separator
|
3646
3707
|
role="separator"
|
3647
3708
|
id="${this.identifier}"
|
3648
3709
|
></div>
|
3649
|
-
`}`}},a.SelectSeperator._counter=0,a.SelectSeperator.styles=[l.css``,c],
|
3710
|
+
`}`}},a.SelectSeperator._counter=0,a.SelectSeperator.styles=[l.css``,c],lt([d.property({type:String})],a.SelectSeperator.prototype,"_id",2),lt([d.property({attribute:"aria-hidden",type:String})],a.SelectSeperator.prototype,"_hidden",2),a.SelectSeperator=lt([d.customElement("rtg-select-separator")],a.SelectSeperator);var Bs=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,X=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ns(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Bs(e,r,t),t};a.Select=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("[data-hs-combo-box]"),o=e.target;if(!r||!r.contains(o))this.isOpen=!1;else if(!((s=o.shadowRoot)==null?void 0:s.firstElementChild))return}}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?document.addEventListener("mouseup",this.handleClickOutside):document.removeEventListener("mouseup",this.handleClickOutside))}firstUpdated(e){this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen}selectItem(e){e.stopPropagation();const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-select-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-select-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){this.toggleDropdown()}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}render(){return l.html`
|
3650
3711
|
<div class="relative" data-hs-combo-box="">
|
3651
3712
|
<div class="relative">
|
3652
3713
|
<input
|
@@ -3671,7 +3732,7 @@ body {
|
|
3671
3732
|
data-hs-combo-box-toggle=""
|
3672
3733
|
@click="${this.toggleDropdown}"
|
3673
3734
|
>
|
3674
|
-
${
|
3735
|
+
${Ht()}
|
3675
3736
|
</div>
|
3676
3737
|
</div>
|
3677
3738
|
<div
|
@@ -3707,15 +3768,15 @@ body {
|
|
3707
3768
|
`}
|
3708
3769
|
</div>
|
3709
3770
|
</div>
|
3710
|
-
`}},a.Select.styles=[l.css``,c],X([d.state()],a.Select.prototype,"isOpen",2),X([d.state()],a.Select.prototype,"selectedValue",2),X([d.state()],a.Select.prototype,"searchTerm",2),X([d.state()],a.Select.prototype,"focusedIndex",2),X([d.state()],a.Select.prototype,"filteredItems",2),X([d.property({type:String})],a.Select.prototype,"label",2),X([d.property({type:Array})],a.Select.prototype,"items",2),a.Select=X([d.customElement("rtg-select")],a.Select);var
|
3711
|
-
<div class="${
|
3771
|
+
`}},a.Select.styles=[l.css``,c],X([d.state()],a.Select.prototype,"isOpen",2),X([d.state()],a.Select.prototype,"selectedValue",2),X([d.state()],a.Select.prototype,"searchTerm",2),X([d.state()],a.Select.prototype,"focusedIndex",2),X([d.state()],a.Select.prototype,"filteredItems",2),X([d.property({type:String})],a.Select.prototype,"label",2),X([d.property({type:Array})],a.Select.prototype,"items",2),a.Select=X([d.customElement("rtg-select")],a.Select);var Fs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,dt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Fs(e,r,t),t};a.Switch=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}_toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked})))}render(){return l.html`
|
3772
|
+
<div class="${u("flex items-center space-x-2",this.className)}">
|
3712
3773
|
<div
|
3713
3774
|
@click="${this._toggleChecked}"
|
3714
3775
|
data-testid="switch-atom"
|
3715
3776
|
role="switch"
|
3716
3777
|
aria-checked="${this.checked}"
|
3717
3778
|
aria-disabled="${this.disabled}"
|
3718
|
-
class="${
|
3779
|
+
class="${u("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background")}"
|
3719
3780
|
style="background-color:${this.checked?"#000000":"#e0e0e0"};cursor:${this.disabled?"default":""}"
|
3720
3781
|
>
|
3721
3782
|
<div
|
@@ -3726,8 +3787,8 @@ body {
|
|
3726
3787
|
</div>
|
3727
3788
|
<slot></slot>
|
3728
3789
|
</div>
|
3729
|
-
`}},a.Switch.styles=[l.css``,c],
|
3730
|
-
<div class="${
|
3790
|
+
`}},a.Switch.styles=[l.css``,c],dt([d.property({type:Boolean,reflect:!0})],a.Switch.prototype,"checked",2),dt([d.property({type:Boolean})],a.Switch.prototype,"disabled",2),a.Switch=dt([d.customElement("rtg-switch")],a.Switch);const qs="unChecked";var Vs=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,le=(n,e,r,o)=>{for(var t=o>1?void 0:o?Us(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Vs(e,r,t),t};a.RadioGroupItem=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="",this.state=qs}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
|
3791
|
+
<div class="${u("flex items-center space-x-2")}">
|
3731
3792
|
<button
|
3732
3793
|
type="button"
|
3733
3794
|
role="radio"
|
@@ -3744,7 +3805,7 @@ body {
|
|
3744
3805
|
data-state="checked"
|
3745
3806
|
class="flex items-center justify-center"
|
3746
3807
|
>
|
3747
|
-
${
|
3808
|
+
${Bn()}
|
3748
3809
|
</span>`:l.nothing}
|
3749
3810
|
</button>
|
3750
3811
|
<label
|
@@ -3753,11 +3814,11 @@ body {
|
|
3753
3814
|
>${this.value}</label
|
3754
3815
|
>
|
3755
3816
|
</div>
|
3756
|
-
`}},a.RadioGroupItem.styles=[l.css``,c],
|
3757
|
-
<div class="${
|
3817
|
+
`}},a.RadioGroupItem.styles=[l.css``,c],le([d.property({type:Boolean,reflect:!0})],a.RadioGroupItem.prototype,"checked",2),le([d.property({type:Number})],a.RadioGroupItem.prototype,"tabindex",2),le([d.property({type:String})],a.RadioGroupItem.prototype,"value",2),le([d.property({type:String})],a.RadioGroupItem.prototype,"id",2),le([d.property({attribute:"data-state",type:String})],a.RadioGroupItem.prototype,"state",2),a.RadioGroupItem=le([d.customElement("rtg-radio-group-item")],a.RadioGroupItem);var Xs=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,Hs=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ys(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Xs(e,r,t),t};a.RadioGroup=class extends l.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
|
3818
|
+
<div class="${u("grid gap-2",this.className)}" style="outline: none;">
|
3758
3819
|
<slot></slot>
|
3759
3820
|
</div>
|
3760
|
-
`}},a.RadioGroup.styles=[l.css``,c],a.RadioGroup=
|
3821
|
+
`}},a.RadioGroup.styles=[l.css``,c],a.RadioGroup=Hs([d.customElement("rtg-radio-group")],a.RadioGroup);var Ks=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,ct=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ws(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ks(e,r,t),t};let $e=class extends y{constructor(){super(...arguments),this.value="",this.tabindex=0,this.handleClick=n=>{n.preventDefault(),n.stopPropagation();const e=n.currentTarget;if(e instanceof HTMLDivElement){const r=e.getAttribute("value")??"";this._accordion&&this._accordion.raiseEvent(r)}}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(n){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this._accordion&&this._accordion.removeEventListener("clicked-accordion",()=>{})}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof ee);)n=n.parentElement;return n}render(){const n=this.getFilteredAttributes();return k.html`
|
3761
3822
|
<div
|
3762
3823
|
${x(n)}
|
3763
3824
|
data-state="closed"
|
@@ -3765,20 +3826,22 @@ body {
|
|
3765
3826
|
data-orientation="vertical"
|
3766
3827
|
data-state="active"
|
3767
3828
|
class="w-full border-b"
|
3768
|
-
value="
|
3829
|
+
value="${this.value}"
|
3769
3830
|
@click=${this.handleClick}
|
3831
|
+
part="accordion-item"
|
3770
3832
|
>
|
3771
3833
|
<h3>
|
3772
3834
|
<slot name="accordion-trigger"></slot>
|
3773
3835
|
</h3>
|
3774
3836
|
<div>
|
3775
|
-
${this._accordion&&this._accordion.selectedItems.includes(this.value)?k.html
|
3837
|
+
${this._accordion&&this._accordion.selectedItems.includes(this.value)?k.html`<slot name="accordion-content"></slot>`:k.nothing}
|
3776
3838
|
</div>
|
3777
3839
|
</div>
|
3778
|
-
`}}
|
3840
|
+
`}};$e.styles=[k.css``,c],ct([d.property({type:String})],$e.prototype,"value",2),ct([d.property({type:Number})],$e.prototype,"tabindex",2),$e=ct([d.customElement("rtg-accordion-item")],$e);var Zs=Object.defineProperty,js=Object.getOwnPropertyDescriptor,Ae=(n,e,r,o)=>{for(var t=o>1?void 0:o?js(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Zs(e,r,t),t};let de=class extends y{constructor(){super(...arguments),this.defaultValue="",this.value=""}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return["value","defaultValue"]}render(){const n=this.getFilteredAttributes();return k.html`
|
3779
3841
|
<button
|
3780
3842
|
${x(n)}
|
3781
3843
|
type="button"
|
3844
|
+
part="accordion-trigger"
|
3782
3845
|
role="tab"
|
3783
3846
|
value=${this.value}
|
3784
3847
|
aria-selected=${this.defaultValue===this.value?"true":"false"}
|
@@ -3791,10 +3854,11 @@ body {
|
|
3791
3854
|
data-radix-collection-item=""
|
3792
3855
|
>
|
3793
3856
|
<slot></slot>
|
3794
|
-
${
|
3857
|
+
${Tn()}
|
3795
3858
|
</button>
|
3796
|
-
`}};
|
3859
|
+
`}};de.styles=[k.css``,c],Ae([d.property({type:String})],de.prototype,"defaultValue",2),Ae([d.property({type:String})],de.prototype,"value",2),Ae([d.property({type:Function})],de.prototype,"onClickCallback",2),de=Ae([d.customElement("rtg-accordion-trigger")],de);var Js=Object.defineProperty,Qs=Object.getOwnPropertyDescriptor,pt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Js(e,r,t),t};let Ce=class extends k.LitElement{constructor(){super(...arguments),this.value="",this.selectedValue=""}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof ee);)n=n.parentElement;return n}updated(n){super.updated(n)}render(){return k.html`
|
3797
3860
|
<div
|
3861
|
+
part="accordion-content"
|
3798
3862
|
data-state="open"
|
3799
3863
|
role="region"
|
3800
3864
|
data-orientation="vertical"
|
@@ -3809,21 +3873,26 @@ body {
|
|
3809
3873
|
<slot></slot>
|
3810
3874
|
</div>
|
3811
3875
|
</div>
|
3812
|
-
`}};
|
3813
|
-
<div
|
3876
|
+
`}};Ce.styles=[k.css``,c],pt([d.property({type:String})],Ce.prototype,"value",2),pt([d.state()],Ce.prototype,"selectedValue",2),Ce=pt([d.customElement("rtg-accordion-content")],Ce);var ce=(n=>(n.MULTIPLE="multiple",n.SINGLE="single",n))(ce||{}),ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ut=(n,e,r,o)=>{for(var t=o>1?void 0:o?ti(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ei(e,r,t),t};let ee=class extends y{constructor(){super(...arguments),this.twCLass="",this.type=ce.MULTIPLE,this.selectedItems=[]}getAttributesToExclude(){return["variant"]}connectedCallback(){var n;super.connectedCallback(),(n=this.shadowRoot)==null||n.addEventListener("clicked-accordion",()=>{})}disconnectedCallback(){super.disconnectedCallback()}setSelectedItems(n){const e=this.selectedItems.indexOf(n);if(e>-1)if(this.type===ce.SINGLE)this.selectedItems=[];else if(this.type===ce.MULTIPLE)this.selectedItems.splice(e,1);else throw new Error("Type does not correct");else if(this.type===ce.SINGLE)this.selectedItems[0]=n;else if(this.type===ce.MULTIPLE)this.selectedItems.push(n);else throw new Error("Type does not correct")}raiseEvent(n){this.setSelectedItems(n);const e=new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}});this.dispatchEvent(e)}render(){const n=this.getFilteredAttributes();return l.html`
|
3877
|
+
<div
|
3878
|
+
data-orientation="vertical"
|
3879
|
+
${x(n)}
|
3880
|
+
part="accordion"
|
3881
|
+
class="${this.twCLass}"
|
3882
|
+
>
|
3814
3883
|
<slot name="accordion-item"></slot>
|
3815
3884
|
</div>
|
3816
|
-
`}};
|
3885
|
+
`}};ee.styles=[l.css``,c],ut([d.property({type:String})],ee.prototype,"twCLass",2),ut([d.property({type:String})],ee.prototype,"type",2),ee=ut([d.customElement("rtg-accordion")],ee);var ht=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(ht||{}),ri=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,tr=(n,e,r,o)=>{for(var t=o>1?void 0:o?oi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ri(e,r,t),t};a.Separator=class extends y{constructor(){super(...arguments),this.orientation=ht.HORIZONTAL}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return this.orientation===ht.HORIZONTAL?l.html` <div
|
3817
3886
|
${x(e)}
|
3818
|
-
class="${
|
3887
|
+
class="${u("shrink-0 bg-border w-full h-[1px] my-4",this.className)}"
|
3819
3888
|
role="none"
|
3820
3889
|
></div>`:(console.log("elseee "),l.html` <div
|
3821
3890
|
${x(e)}
|
3822
|
-
class="${
|
3891
|
+
class="${u("shrink-0 bg-border h-full w-[1px]",this.className)}"
|
3823
3892
|
role="none"
|
3824
3893
|
>
|
3825
3894
|
 
|
3826
|
-
</div>`)}},a.Separator.styles=[l.css``,c],
|
3895
|
+
</div>`)}},a.Separator.styles=[l.css``,c],tr([d.property({type:String})],a.Separator.prototype,"orientation",2),a.Separator=tr([d.customElement("rtg-separator")],a.Separator);const ni=N("inline-flex items-center justify-center rounded-sm text-sm font-medium ",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}});var si=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,pe=(n,e,r,o)=>{for(var t=o>1?void 0:o?ii(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&si(e,r,t),t};let z=class extends l.LitElement{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.isCustomClass=!1,this.variant="default",this.size="default"}render(){return l.html`
|
3827
3896
|
<div class="${this.className}">
|
3828
3897
|
<rtg-card class="rounded block w-96" data-testid="card-id">
|
3829
3898
|
<cardheader data-testid="card-header-id">
|
@@ -3865,7 +3934,7 @@ body {
|
|
3865
3934
|
id=""
|
3866
3935
|
type="text"
|
3867
3936
|
placeholder="Enter text"
|
3868
|
-
|
3937
|
+
twClass="px-5 border"
|
3869
3938
|
></rtg-input>
|
3870
3939
|
</div>
|
3871
3940
|
<div class="mt-4">
|
@@ -3958,7 +4027,7 @@ body {
|
|
3958
4027
|
</cardfooter>
|
3959
4028
|
</rtg-card>
|
3960
4029
|
</div>
|
3961
|
-
`}};z.buttonVariants=
|
4030
|
+
`}};z.buttonVariants=ni,z.styles=[c,l.css`
|
3962
4031
|
:host {
|
3963
4032
|
--rtg-sample-demo-bg: unset;
|
3964
4033
|
--rtg-sample-demo-color: unset;
|
@@ -3971,27 +4040,38 @@ body {
|
|
3971
4040
|
border-radius: var(--rtg-sample-demo-radius);
|
3972
4041
|
height: var(--rtg-sample-demo-height);
|
3973
4042
|
}
|
3974
|
-
`],
|
3975
|
-
<div
|
4043
|
+
`],pe([d.property({type:Function})],z.prototype,"click",2),pe([d.property({type:Boolean})],z.prototype,"disabled",2),pe([d.property({type:String})],z.prototype,"isCustomClass",2),pe([d.property({type:String})],z.prototype,"variant",2),pe([d.property({type:String})],z.prototype,"size",2),z=pe([d.customElement("rtg-sample-demo")],z);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,di=(n,e,r,o)=>{for(var t=o>1?void 0:o?li(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ai(e,r,t),t};let mt=class extends y{getAttributesToExclude(){return[""]}get _collapsible(){let n=this.parentElement;for(;n&&!(n instanceof te);)n=n.parentElement;return n}onTrigger(){const n=this._collapsible;n&&(n.open=!n.open,n.onOpenChange())}render(){const n=this.getFilteredAttributes();return l.html`
|
4044
|
+
<div
|
4045
|
+
@click=${this.onTrigger}
|
4046
|
+
${x(n)}
|
4047
|
+
part="collapsible-trigger"
|
4048
|
+
>
|
3976
4049
|
<slot></slot>
|
3977
4050
|
</div>
|
3978
|
-
`}};
|
4051
|
+
`}};mt.styles=[l.css``,c],mt=di([d.customElement("rtg-collapsible-trigger")],mt);var ci=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,ui=(n,e,r,o)=>{for(var t=o>1?void 0:o?pi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ci(e,r,t),t};let gt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
3979
4052
|
<div
|
3980
4053
|
${x(n)}
|
3981
4054
|
class="${this.className}"
|
3982
4055
|
style="--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
|
4056
|
+
part="collapsible-content"
|
3983
4057
|
>
|
3984
4058
|
<slot></slot>
|
3985
4059
|
</div>
|
3986
|
-
`}};
|
3987
|
-
<div
|
4060
|
+
`}};gt.styles=[l.css``,c],gt=ui([d.customElement("rtg-collapsible-content")],gt);var hi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,ze=(n,e,r,o)=>{for(var t=o>1?void 0:o?mi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&hi(e,r,t),t};let te=class extends y{constructor(){super(...arguments),this.open=!1,this.onOpenChange=()=>{},this.twCLass=""}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4061
|
+
<div
|
4062
|
+
data-state="${this.open?"open":"closed"}"
|
4063
|
+
${x(n)}
|
4064
|
+
class="${this.twCLass}"
|
4065
|
+
part="collapsible"
|
4066
|
+
>
|
3988
4067
|
<slot></slot>
|
3989
4068
|
${this.open?l.html`<slot name="collapsible-content"></slot>`:l.nothing}
|
3990
4069
|
</div>
|
3991
|
-
`}};
|
4070
|
+
`}};te.styles=[l.css``,c],ze([d.property({type:Boolean})],te.prototype,"open",2),ze([d.property({type:Function})],te.prototype,"onOpenChange",2),ze([d.property({type:String})],te.prototype,"twCLass",2),te=ze([d.customElement("rtg-collapsible")],te);var gi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,bt=(n,e,r,o)=>{for(var t=o>1?void 0:o?bi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&gi(e,r,t),t};a.AspectRatio=class extends l.LitElement{constructor(){super(...arguments),this.twCLass="",this.ratio=16/9}render(){const e=1/this.ratio*100;return l.html`
|
3992
4071
|
<div
|
3993
|
-
class="${
|
4072
|
+
class="${u("aspect-ratio-wrapper bg-muted",this.className,this.twCLass)} "
|
3994
4073
|
style="padding-top: ${e}%;"
|
4074
|
+
part="aspect-ratio"
|
3995
4075
|
>
|
3996
4076
|
<div class="aspect-ratio-inner">
|
3997
4077
|
<slot></slot>
|
@@ -4010,12 +4090,12 @@ body {
|
|
4010
4090
|
width: 100%;
|
4011
4091
|
height: 100%;
|
4012
4092
|
}
|
4013
|
-
`,c],
|
4093
|
+
`,c],bt([d.property({type:String})],a.AspectRatio.prototype,"twCLass",2),bt([d.property({type:Number})],a.AspectRatio.prototype,"ratio",2),a.AspectRatio=bt([d.customElement("rtg-aspect-ratio")],a.AspectRatio);const fi="inline-flex items-center gap-1.5",vi="transition-colors hover:text-foreground",wi="font-normal text-foreground",yi="[&>svg]:size-3.5",xi="flex h-9 w-9 items-center justify-center",$i="flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";var Ci=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,Oi=(n,e,r,o)=>{for(var t=o>1?void 0:o?_i(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ci(e,r,t),t};let ft=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4014
4094
|
<span
|
4015
4095
|
id="rtg-bread-crumb-ellipsis"
|
4016
4096
|
role="presentation"
|
4017
4097
|
aria-hidden="true"
|
4018
|
-
class="${
|
4098
|
+
class="${u(xi,this.className)}"
|
4019
4099
|
${x(n)}
|
4020
4100
|
>
|
4021
4101
|
<svg
|
@@ -4031,29 +4111,29 @@ body {
|
|
4031
4111
|
/>
|
4032
4112
|
</svg>
|
4033
4113
|
</span>
|
4034
|
-
`}};
|
4114
|
+
`}};ft.styles=[l.css``,c],ft=Oi([d.customElement("rtg-bread-crumb-ellipsis")],ft);var Ei=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,Pi=(n,e,r,o)=>{for(var t=o>1?void 0:o?Si(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ei(e,r,t),t};let vt=class extends y{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
|
4035
4115
|
<li
|
4036
4116
|
${x(n)}
|
4037
4117
|
id="rtg-bread-crumb-item"
|
4038
|
-
class="${
|
4118
|
+
class="${u(fi,this.className)}"
|
4039
4119
|
>
|
4040
4120
|
<slot></slot>
|
4041
4121
|
</li>
|
4042
|
-
`}};
|
4122
|
+
`}};vt.styles=[l.css``,c],vt=Pi([d.customElement("rtg-bread-crumb-item")],vt);var ki=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Mi=(n,e,r,o)=>{for(var t=o>1?void 0:o?Di(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ki(e,r,t),t};let wt=class extends y{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
|
4043
4123
|
<ol
|
4044
4124
|
${x(n)}
|
4045
4125
|
id="rtg-bread-crumb-list"
|
4046
|
-
class="${
|
4126
|
+
class="${u($i,this.className)}"
|
4047
4127
|
>
|
4048
4128
|
<slot></slot>
|
4049
4129
|
</ol>
|
4050
|
-
`}};
|
4130
|
+
`}};wt.styles=[l.css``,c],wt=Mi([d.customElement("rtg-bread-crumb-list")],wt);var Ii=Object.defineProperty,Li=Object.getOwnPropertyDescriptor,Ai=(n,e,r,o)=>{for(var t=o>1?void 0:o?Li(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ii(e,r,t),t};let yt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4051
4131
|
<li
|
4052
4132
|
${x(n)}
|
4053
4133
|
id="rtg-bread-crumb-separator"
|
4054
4134
|
role="presentation"
|
4055
4135
|
aria-hidden="true"
|
4056
|
-
class="${
|
4136
|
+
class="${u(yi,this.className)}"
|
4057
4137
|
>
|
4058
4138
|
<svg
|
4059
4139
|
xmlns="http://www.w3.org/2000/svg"
|
@@ -4070,34 +4150,34 @@ body {
|
|
4070
4150
|
<path d="M22 2 2 22"></path>
|
4071
4151
|
</svg>
|
4072
4152
|
</div>
|
4073
|
-
`}};
|
4153
|
+
`}};yt.styles=[l.css``,c],yt=Ai([d.customElement("rtg-bread-crumb-separator")],yt);var zi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,Ti=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ri(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&zi(e,r,t),t};let xt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4074
4154
|
<nav
|
4075
4155
|
${x(n)}
|
4076
|
-
class="${
|
4156
|
+
class="${u(this.className)}"
|
4077
4157
|
aria-label="breadcrumb"
|
4078
4158
|
>
|
4079
4159
|
<slot></slot>
|
4080
4160
|
</nav>
|
4081
|
-
`}};
|
4161
|
+
`}};xt.styles=[l.css``,c],xt=Ti([d.customElement("rtg-bread-crumb")],xt);var Bi=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,Fi=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ni(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Bi(e,r,t),t};let $t=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4082
4162
|
<span
|
4083
4163
|
${x(n)}
|
4084
4164
|
id="rtg-bread-crumb-text"
|
4085
4165
|
aria-disabled="true"
|
4086
4166
|
aria-current="page"
|
4087
|
-
class="${
|
4167
|
+
class="${u(wi,this.className)}"
|
4088
4168
|
>
|
4089
4169
|
<slot></slot>
|
4090
4170
|
</span>
|
4091
|
-
`}}
|
4171
|
+
`}};$t.styles=[l.css``,c],$t=Fi([d.customElement("rtg-bread-crumb-text")],$t);var Gi=Object.defineProperty,qi=Object.getOwnPropertyDescriptor,rr=(n,e,r,o)=>{for(var t=o>1?void 0:o?qi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Gi(e,r,t),t};let Re=class extends y{constructor(){super(...arguments),this.href="/"}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
|
4092
4172
|
<a
|
4093
4173
|
${x(n)}
|
4094
4174
|
id="rtg-bread-crumb-link"
|
4095
|
-
class="${
|
4175
|
+
class="${u(vi,this.className)}"
|
4096
4176
|
href="${this.href}"
|
4097
4177
|
>
|
4098
4178
|
<slot></slot>
|
4099
4179
|
</a>
|
4100
|
-
`}};
|
4180
|
+
`}};Re.styles=[l.css``,c],rr([d.property({type:String})],Re.prototype,"href",2),Re=rr([d.customElement("rtg-bread-crumb-link")],Re);var Vi=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Te=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ui(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Vi(e,r,t),t};let re=class extends y{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}raiseEvent(n,e="changes",r=1/0){const o=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:n,eventType:e,customIndex:r}});this.dispatchEvent(o)}render(){return l.html` <slot part="input-otp" class="flex items-center"></slot> `}};re.styles=[l.css``,c],Te([d.property()],re.prototype,"maxLength",2),Te([d.property()],re.prototype,"onChange",2),Te([d.property()],re.prototype,"pin",2),re=Te([d.customElement("rtg-input-otp")],re);var Xi=Object.defineProperty,Yi=Object.getOwnPropertyDescriptor,or=(n,e,r,o)=>{for(var t=o>1?void 0:o?Yi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Xi(e,r,t),t};let Be=class extends y{constructor(){super(...arguments),this.click=()=>{},this.childrenArray=[]}getAttributesToExclude(){return[]}firstUpdated(n){super.firstUpdated(n),this.childrenArray=Array.from(this.children),this.childrenArray.forEach((e,r)=>{e.isFirst=r===0,e.isLast=r===this.childrenArray.length-1}),this.requestUpdate()}render(){return l.html` <slot part="input-otp-group" class="flex"></slot> `}};Be.styles=[l.css``,c],or([d.property({type:Function})],Be.prototype,"click",2),Be=or([d.customElement("rtg-input-otp-group")],Be);var Hi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,nr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ki(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Hi(e,r,t),t};let Ne=class extends l.LitElement{constructor(){super(...arguments),this.index=0}render(){return l.html` <div role="separator">${Nn()}</div> `}};Ne.styles=[l.css``,c],nr([d.property({type:Number})],Ne.prototype,"index",2),Ne=nr([d.customElement("rtg-input-otp-separator")],Ne);var Wi=Object.defineProperty,Zi=Object.getOwnPropertyDescriptor,ue=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Wi(e,r,t),t};let Y=class extends y{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let n=this.parentElement;for(;n&&!(n instanceof re);)n=n.parentElement;return n}connectedCallback(){super.connectedCallback()}firstUpdated(n){const e=this._inputOtp;e&&(e.inputes.push({index:e.inputes.length,value:"",isSelected:!1,userIndex:this.index}),e.addEventListener("selected-input",r=>{console.log("event",r.detail);const o=this.shadowRoot.querySelector(`input[name="input-${r.detail.selectedItems}"]`);o&&(o.focus(),r.detail.eventType==="changes"&&(o.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(n){const e=n.target,r=this._inputOtp;if(r&&!e.value){let o=r.inputes.reduce((t,s,i)=>s.value!==""?i:t,-1);console.log("inputOtpInstance lastIndex",o),console.log("inputOtpInstance.inputes",r.inputes[o]),o+1===r.maxLength?r.raiseEvent(o,"focus"):r.raiseEvent(++o,"focus")}}handleInputChange(n){const e=n.target;if(new RegExp(/^\d+$/).test(e.value)){const o=this._inputOtp;if(o){let t=o.inputes.findIndex(s=>s.index===this.index);o.inputes[t]={...o.inputes[t],value:e.value,isSelected:!1},o.inputes.length!==t+1&&o.raiseEvent(++t,"changes")}}else e.value=""}handleKeyDown(n){const e=n.target;if(n.key==="Backspace"){console.log("backspace");const r=this._inputOtp;if(r){let o=r.inputes.findIndex(t=>t.index===this.index);r.inputes[o]={...r.inputes[o],value:""},o+1===r.maxLength&&e.value?r.raiseEvent(o,"changes"):r.raiseEvent(--o,"changes")}}}render(){const n={"h-[40px]":!0,"w-[40px]":!0,"text-center relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all":!0,"first:rounded-l-md first:border-l":this.isFirst,"last:rounded-r-md":this.isLast,"overflow-hidden":!0," focus:border focus:border-[#c1c1c1] focus:border-[3px]":!0};return l.html`
|
4101
4181
|
<input
|
4102
4182
|
part="input-otp-slot"
|
4103
4183
|
autocomplete="one-time-code"
|
@@ -4113,4 +4193,4 @@ body {
|
|
4113
4193
|
style="outline: none"
|
4114
4194
|
class=${Object.entries(n).map(([e,r])=>r?e:void 0).join(" ")}
|
4115
4195
|
/>
|
4116
|
-
`}};Y.styles=[l.css``,c],
|
4196
|
+
`}};Y.styles=[l.css``,c],ue([d.property({type:Function})],Y.prototype,"click",2),ue([d.property({type:Number})],Y.prototype,"index",2),ue([d.property({type:Boolean})],Y.prototype,"isFirst",2),ue([d.property({type:Boolean})],Y.prototype,"isLast",2),ue([d.property({type:String})],Y.prototype,"value",2),Y=ue([d.customElement("rtg-input-otp-slot")],Y),Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
|