@jsfour/root-ui 0.0.1
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/.stencil/.build/_README.log +8 -0
- package/.stencil/.build/optimizeCss_d508b9fc8ae8bf613c09ccb27d146e3a.log +1 -0
- package/.stencil/.build/optimizeModule_0b160af7f941adcacfa811e102b08adf.log +2 -0
- package/.stencil/.build/optimizeModule_0b246ca6c0647c40ed469a0cf4358a73.log +1 -0
- package/.stencil/.build/optimizeModule_1bed709b53ef02375e9f61a9dfa643f3.log +1 -0
- package/.stencil/.build/optimizeModule_1d7b03de1d56993f8736d0dfa953b016.log +1 -0
- package/.stencil/.build/optimizeModule_211068a08f9a2243f9b6bbc0d066ca7b.log +1 -0
- package/.stencil/.build/optimizeModule_2187d3c4a8fdf77d63b94a49e5339089.log +1 -0
- package/.stencil/.build/optimizeModule_25ac0c9c93505850d30d777a8983d6cc.log +1 -0
- package/.stencil/.build/optimizeModule_2a8347890bf34de8ebcd825e93de4eac.log +1 -0
- package/.stencil/.build/optimizeModule_310d74be43349d9cd4462216f44e3025.log +1 -0
- package/.stencil/.build/optimizeModule_35ed1b3083d56d1312b29cdc8702dde6.log +1 -0
- package/.stencil/.build/optimizeModule_3abf5364bd9f3e07cabdf31f25fdfccd.log +1 -0
- package/.stencil/.build/optimizeModule_3c694181a383d2d5d7c43959dae3fc40.log +2 -0
- package/.stencil/.build/optimizeModule_3e5a7a979ee157dee476e23a940398bf.log +1 -0
- package/.stencil/.build/optimizeModule_3f113b87a2543efdae16831cf4a13466.log +1 -0
- package/.stencil/.build/optimizeModule_4cf0a704790c64fa3e7636ba3472dff6.log +1 -0
- package/.stencil/.build/optimizeModule_5473d4453ebf4ef999ac7777394048db.log +1 -0
- package/.stencil/.build/optimizeModule_56e4598e7f285cec042c0632923a473c.log +1 -0
- package/.stencil/.build/optimizeModule_5721447e0280cf2192180b57b6ffd931.log +1 -0
- package/.stencil/.build/optimizeModule_5fe32756e8649adbca14ee76bdfbfad3.log +2 -0
- package/.stencil/.build/optimizeModule_60477845aacd02169ef3d0091bfb345f.log +1 -0
- package/.stencil/.build/optimizeModule_645cc880dd3009950a72ea147a926718.log +1 -0
- package/.stencil/.build/optimizeModule_64633d5e5c5103adb5683fc19edaa8b8.log +1 -0
- package/.stencil/.build/optimizeModule_6b615133c24ac4e6c5428eb74470b5cb.log +1 -0
- package/.stencil/.build/optimizeModule_6e9d6355a774b23f578c75f14d78e605.log +1 -0
- package/.stencil/.build/optimizeModule_8797e91e099ec89d9158d143cc9e8199.log +1 -0
- package/.stencil/.build/optimizeModule_8a9445cafc85dc657334e37e1fce6fdc.log +1 -0
- package/.stencil/.build/optimizeModule_8c399f3f088e7f1cbb87f65d8e96bfc4.log +1 -0
- package/.stencil/.build/optimizeModule_90f423b7b20b32670cb13ca6605940fa.log +1 -0
- package/.stencil/.build/optimizeModule_9d37b0c4d3ae587fe9c9f384659ac198.log +1 -0
- package/.stencil/.build/optimizeModule_9eb9260f8aec9636ffc5e00444eaa1ea.log +1 -0
- package/.stencil/.build/optimizeModule_a90d2726fdff70d788aaa8b3fbc0adc7.log +1 -0
- package/.stencil/.build/optimizeModule_ad865e38167d997d66ef7128fdb36b5e.log +1 -0
- package/.stencil/.build/optimizeModule_b1b3b2dbe6634f16e4a063d74c2df110.log +1 -0
- package/.stencil/.build/optimizeModule_b24fa4d64bacca187db7a0654705e182.log +1 -0
- package/.stencil/.build/optimizeModule_b90b0f1d4d3dd3aae106476a0cce19c0.log +1 -0
- package/.stencil/.build/optimizeModule_c0fee36e4d0c0c701c749a56eec1f7d8.log +1 -0
- package/.stencil/.build/optimizeModule_ceeae0c907ecc2a87e2ad19d79e99510.log +1 -0
- package/.stencil/.build/optimizeModule_d68f87c26c9b5557f71199e397b81fde.log +1 -0
- package/.stencil/.build/optimizeModule_d6b6b4cfa8009d54eb301d8147c45850.log +1 -0
- package/.stencil/.build/optimizeModule_d7a4dadc89824480596190cf7a033e72.log +1 -0
- package/.stencil/.build/optimizeModule_ddf02b2e19bf055fcfd20ed5dc8b956d.log +2 -0
- package/.stencil/.build/optimizeModule_eb39a27ff5ef48385b4bf233760a7d1f.log +1 -0
- package/.stencil/.build/optimizeModule_eee1991c594a387b17e535171c33abbf.log +1 -0
- package/.stencil/.build/optimizeModule_f0d6e7e6666905c8da7d7450a1b4088b.log +1 -0
- package/.stencil/.build/optimizeModule_f93c97ed92b866fd99189e5a0a44e774.log +1 -0
- package/.stencil/.build/optimizeModule_fdf66b9636906890546dde0f834d4d8e.log +1 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/index-CbJkKnHq.js +3244 -0
- package/dist/cjs/index.cjs.js +25 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/root-badge_6.cjs.entry.js +343 -0
- package/dist/cjs/stencil-library.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/badge/badge-variation.enum.js +9 -0
- package/dist/collection/components/badge/badge.css +45 -0
- package/dist/collection/components/badge/badge.js +148 -0
- package/dist/collection/components/banner/banner-variation.enum.js +9 -0
- package/dist/collection/components/banner/banner.css +18 -0
- package/dist/collection/components/banner/banner.js +147 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.css +49 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +95 -0
- package/dist/collection/components/button/button-size.enum.js +5 -0
- package/dist/collection/components/button/button-type.enum.js +6 -0
- package/dist/collection/components/button/button-variation.enum.js +10 -0
- package/dist/collection/components/button/button.css +61 -0
- package/dist/collection/components/button/button.js +207 -0
- package/dist/collection/components/index.js +6 -0
- package/dist/collection/components/input/input-type.enum.js +18 -0
- package/dist/collection/components/input/input.css +134 -0
- package/dist/collection/components/input/input.js +415 -0
- package/dist/collection/components/list/list.css +18 -0
- package/dist/collection/components/list/list.js +50 -0
- package/dist/collection/enums.js +3 -0
- package/dist/collection/global/utils/randomIdGenerator/index.js +7 -0
- package/dist/collection/index.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-CIjEN4Bv.js +1 -0
- package/dist/components/p-CvhBNbMT.js +1 -0
- package/dist/components/root-badge.d.ts +11 -0
- package/dist/components/root-badge.js +1 -0
- package/dist/components/root-banner.d.ts +11 -0
- package/dist/components/root-banner.js +1 -0
- package/dist/components/root-breadcrumbs.d.ts +11 -0
- package/dist/components/root-breadcrumbs.js +1 -0
- package/dist/components/root-button.d.ts +11 -0
- package/dist/components/root-button.js +1 -0
- package/dist/components/root-input.d.ts +11 -0
- package/dist/components/root-input.js +1 -0
- package/dist/components/root-list.d.ts +11 -0
- package/dist/components/root-list.js +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/index-Cygc6-mN.js +3236 -0
- package/dist/esm/index.js +25 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/root-badge_6.entry.js +336 -0
- package/dist/esm/stencil-library.js +21 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil-library/index.esm.js +1 -0
- package/dist/stencil-library/p-2b062e4c.entry.js +1 -0
- package/dist/stencil-library/p-Cygc6-mN.js +2 -0
- package/dist/stencil-library/p-DQuL1Twl.js +1 -0
- package/dist/stencil-library/stencil-library.esm.js +1 -0
- package/dist/types/components/badge/badge-variation.enum.d.ts +8 -0
- package/dist/types/components/badge/badge.d.ts +11 -0
- package/dist/types/components/banner/banner-variation.enum.d.ts +8 -0
- package/dist/types/components/banner/banner.d.ts +11 -0
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +12 -0
- package/dist/types/components/button/button-size.enum.d.ts +4 -0
- package/dist/types/components/button/button-type.enum.d.ts +5 -0
- package/dist/types/components/button/button-variation.enum.d.ts +9 -0
- package/dist/types/components/button/button.d.ts +15 -0
- package/dist/types/components/index.d.ts +6 -0
- package/dist/types/components/input/input-type.enum.d.ts +17 -0
- package/dist/types/components/input/input.d.ts +37 -0
- package/dist/types/components/list/list.d.ts +7 -0
- package/dist/types/components.d.ts +388 -0
- package/dist/types/enums.d.ts +3 -0
- package/dist/types/global/utils/randomIdGenerator/index.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +1839 -0
- package/package.json +28 -0
- package/src/components/badge/badge-variation.enum.ts +9 -0
- package/src/components/badge/badge.scss +53 -0
- package/src/components/badge/badge.tsx +42 -0
- package/src/components/badge/readme.md +27 -0
- package/src/components/banner/banner-variation.enum.ts +9 -0
- package/src/components/banner/banner.scss +22 -0
- package/src/components/banner/banner.tsx +41 -0
- package/src/components/banner/readme.md +27 -0
- package/src/components/breadcrumbs/breadcrumbs.scss +57 -0
- package/src/components/breadcrumbs/breadcrumbs.tsx +74 -0
- package/src/components/breadcrumbs/readme.md +24 -0
- package/src/components/button/button-size.enum.ts +5 -0
- package/src/components/button/button-type.enum.ts +5 -0
- package/src/components/button/button-variation.enum.ts +10 -0
- package/src/components/button/button.scss +73 -0
- package/src/components/button/button.tsx +52 -0
- package/src/components/button/readme.md +29 -0
- package/src/components/index.ts +7 -0
- package/src/components/input/input-type.enum.ts +18 -0
- package/src/components/input/input.scss +156 -0
- package/src/components/input/input.tsx +264 -0
- package/src/components/input/readme.md +34 -0
- package/src/components/list/list.scss +21 -0
- package/src/components/list/list.tsx +24 -0
- package/src/components/list/readme.md +17 -0
- package/src/components.d.ts +388 -0
- package/src/enums.ts +3 -0
- package/src/global/styles/index.scss +0 -0
- package/src/global/utils/randomIdGenerator/index.ts +8 -0
- package/src/index.html +105 -0
- package/src/index.ts +2 -0
- package/stencil.config.ts +36 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e,n,i,s,r,o,l,h,c,f,u,a,p,d,v,w,b,m,g=Object.create,y=Object.defineProperty,$=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,M=t=>{throw TypeError(t)},E=(t,e)=>function(){return e||(0,t[O(t)[0]])((e={exports:{}}).exports,e),e.exports},k=(t,e,n)=>e.has(t)||M("Cannot "+n),x=(t,e,n)=>(k(t,e,"read from private field"),n?n.call(t):e.get(t)),N=(t,e,n)=>e.has(t)?M("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),P=(t,e,n)=>(k(t,e,"write to private field"),e.set(t,n),n),W=(t,e,n)=>(k(t,e,"access private method"),n),A=E({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=i(t,n)),e instanceof RegExp&&(e=i(e,n));var r=s(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function i(t,e){var n=e.match(t);return n?n[0]:null}function s(t,e,n){var i,s,r,o,l,h=n.indexOf(t),c=n.indexOf(e,h+1),f=h;if(h>=0&&c>0){if(t===e)return[h,c];for(i=[],r=n.length;f>=0&&!l;)f==h?(i.push(f),h=n.indexOf(t,f+1)):1==i.length?l=[i.pop(),c]:((s=i.pop())<r&&(r=s,o=c),c=n.indexOf(e,f+1)),f=h<c&&h>=0?h:c;i.length&&(l=[r,o])}return l}e.exports=n,n.range=s}}),R=E({"node_modules/brace-expansion/index.js"(t,e){var n=A();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),v(function(t){return t.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(r).split("\\,").join(o).split("\\.").join(l)}(t),!0).map(c)):[]};var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function h(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(i).join("\\").split(s).join("{").split(r).join("}").split(o).join(",").split(l).join(".")}function f(t){if(!t)return[""];var e=[],i=n("{","}",t);if(!i)return t.split(",");var s=i.body,r=i.post,o=i.pre.split(",");o[o.length-1]+="{"+s+"}";var l=f(r);return r.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),e.push.apply(e,o),e}function u(t){return"{"+t+"}"}function a(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function d(t,e){return t>=e}function v(t,e){var i=[],s=n("{","}",t);if(!s)return[t];var o=s.pre,l=s.post.length?v(s.post,!1):[""];if(/\$$/.test(s.pre))for(var c=0;c<l.length;c++)i.push(R=o+"{"+s.body+"}"+l[c]);else{var w,b,m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=m||g,$=s.body.indexOf(",")>=0;if(!y&&!$)return s.post.match(/,(?!,).*\}/)?v(t=s.pre+"{"+s.body+r+s.post):[t];if(y)w=s.body.split(/\.\./);else if(1===(w=f(s.body)).length&&1===(w=v(w[0],!1).map(u)).length)return l.map((function(t){return s.pre+w[0]+t}));if(y){var O=h(w[0]),S=h(w[1]),j=Math.max(w[0].length,w[1].length),M=3==w.length?Math.abs(h(w[2])):1,E=p;S<O&&(M*=-1,E=d);var k=w.some(a);b=[];for(var x=O;E(x,S);x+=M){var N;if(g)"\\"===(N=String.fromCharCode(x))&&(N="");else if(N=String(x),k){var P=j-N.length;if(P>0){var W=new Array(P+1).join("0");N=x<0?"-"+W+N.slice(1):W+N}}b.push(N)}}else{b=[];for(var A=0;A<w.length;A++)b.push.apply(b,v(w[A],!1))}for(A=0;A<b.length;A++)for(c=0;c<l.length;c++){var R=o+b[A]+l[c];(!e||y||R)&&i.push(R)}}return i}}}),C=(t,e)=>{var n;Object.entries(null!=(n=e.i.t)?n:{}).map((([n,[i]])=>{if(31&i||32&i){const i=t[n],s=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);s&&Object.defineProperty(t,n,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):i}}))},z=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},L=(t,e)=>e in t,_=(t,e)=>(0,console.error)(t,e),T=new Map,D="undefined"!=typeof window?window:{},U=D.HTMLElement||class{},F={l:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,i)=>t.addEventListener(e,n,i),rel:(t,e,n,i)=>t.removeEventListener(e,n,i),ce:(t,e)=>new CustomEvent(t,e)},G=(()=>{try{return!!D.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),I=!!G&&(()=>!!D.document&&Object.getOwnPropertyDescriptor(D.document.adoptedStyleSheets,"length").writable)(),Z=!1,H=[],V=[],q=(t,e)=>n=>{t.push(n),Z||(Z=!0,e&&4&F.l?Y(J):F.raf(J))},B=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){_(t)}t.length=0},J=()=>{B(H),B(V),(Z=H.length>0)&&F.raf(J)},Y=t=>Promise.resolve(undefined).then(t),K=q(V,!0),Q=t=>{const e=new URL(t,F.h);return e.origin!==D.location.origin?e.href:e.pathname},X=t=>F.h=t,tt=t=>"object"==(t=typeof t)||"function"===t,et=(e=null!=(t=R())?g(S(t)):{},((t,e,n,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of O(e))j.call(t,n)||undefined===n||y(t,n,{get:()=>e[n],enumerable:!(i=$(e,n))||i.enumerable});return t})(y(e,"default",{value:t,enumerable:!0}),t)),nt=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},it={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},st=t=>t.replace(/[[\]\\-]/g,"\\$&"),rt=t=>t.join(""),ot=(t,e)=>{const n=e;if("["!==t.charAt(n))throw new Error("not in a brace expression");const i=[],s=[];let r=n+1,o=!1,l=!1,h=!1,c=!1,f=n,u="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==n+1){if("]"===e&&o&&!h){f=r+1;break}if(o=!0,"\\"!==e||h){if("["===e&&!h)for(const[e,[o,h,c]]of Object.entries(it))if(t.startsWith(e,r)){if(u)return["$.",!1,t.length-n,!0];r+=e.length,c?s.push(o):i.push(o),l=l||h;continue t}h=!1,u?(e>u?i.push(st(u)+"-"+st(e)):e===u&&i.push(st(e)),u="",r++):t.startsWith("-]",r+1)?(i.push(st(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(i.push(st(e)),r++)}else h=!0,r++}else c=!0,r++}if(f<r)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,t.length-n,!0];if(0===s.length&&1===i.length&&/^\\?.$/.test(i[0])&&!c){return[(a=2===i[0].length?i[0].slice(-1):i[0],a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,f-n,!1]}var a;const p="["+(c?"^":"")+rt(i)+"]",d="["+(c?"":"^")+rt(s)+"]";return[i.length&&s.length?"("+p+"|"+d+")":i.length?p:d,l,f-n,!0]},lt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),ht=new Set(["!","?","+","*","@"]),ct=t=>ht.has(t),ft="(?!\\.)",ut=new Set(["[","."]),at=new Set(["..","."]),pt=new Set("().*{}+?[]^$\\!"),dt="[^/]",vt=dt+"*?",wt=dt+"+?",bt=class t{constructor(t,e,d={}){var v;N(this,p),((t,e,n)=>{e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(this,"type"+"",v),N(this,n),N(this,i),N(this,s,!1),N(this,r,[]),N(this,o),N(this,l),N(this,h),N(this,c,!1),N(this,f),N(this,u),N(this,a,!1),this.type=t,t&&P(this,i,!0),P(this,o,e),P(this,n,x(this,o)?x(x(this,o),n):this),P(this,f,x(this,n)===this?d:x(x(this,n),f)),P(this,h,x(this,n)===this?[]:x(x(this,n),h)),"!"!==t||x(x(this,n),c)||x(this,h).push(this),P(this,l,x(this,o)?x(x(this,o),r).length:0)}get hasMagic(){if(void 0!==x(this,i))return x(this,i);for(const t of x(this,r))if("string"!=typeof t&&(t.type||t.hasMagic))return P(this,i,!0);return x(this,i)}toString(){return void 0!==x(this,u)?x(this,u):P(this,u,this.type?this.type+"("+x(this,r).map((t=>String(t))).join("|")+")":x(this,r).map((t=>String(t))).join(""))}push(...e){for(const n of e)if(""!==n){if("string"!=typeof n&&!(n instanceof t&&x(n,o)===this))throw new Error("invalid part: "+n);x(this,r).push(n)}}toJSON(){var t;const e=null===this.type?x(this,r).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...x(this,r).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===x(this,n)||x(x(this,n),c)&&"!"===(null==(t=x(this,o))?void 0:t.type))&&e.push({}),e}isStart(){var e;if(x(this,n)===this)return!0;if(!(null==(e=x(this,o))?void 0:e.isStart()))return!1;if(0===x(this,l))return!0;const i=x(this,o);for(let e=0;e<x(this,l);e++){const n=x(i,r)[e];if(!(n instanceof t&&"!"===n.type))return!1}return!0}isEnd(){var t,e,i;if(x(this,n)===this)return!0;if("!"===(null==(t=x(this,o))?void 0:t.type))return!0;if(!(null==(e=x(this,o))?void 0:e.isEnd()))return!1;if(!this.type)return null==(i=x(this,o))?void 0:i.isEnd();const s=x(this,o)?x(x(this,o),r).length:0;return x(this,l)===s-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(e){const n=new t(this.type,e);for(const t of x(this,r))n.copyIn(t);return n}static fromGlob(e,n={}){var i;const s=new t(null,void 0,n);return W(i=t,v,w).call(i,e,s,0,n),s}toMMPattern(){if(this!==x(this,n))return x(this,n).toMMPattern();const t=this.toString(),[e,s,r,o]=this.toRegExpSource();if(!(r||x(this,i)||x(this,f).nocase&&!x(this,f).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return s;const l=(x(this,f).nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${e}$`,l),{_src:e,_glob:t})}get options(){return x(this,f)}toRegExpSource(e){var l;const h=null!=e?e:!!x(this,f).dot;if(x(this,n)===this&&W(this,p,d).call(this),!this.type){const f=this.isStart()&&this.isEnd(),u=x(this,r).map((n=>{var r;const[o,l,h,c]="string"==typeof n?W(r=t,v,m).call(r,n,x(this,i),f):n.toRegExpSource(e);return P(this,i,x(this,i)||h),P(this,s,x(this,s)||c),o})).join("");let a="";if(this.isStart()&&"string"==typeof x(this,r)[0]&&(1!==x(this,r).length||!at.has(x(this,r)[0]))){const t=ut,n=h&&t.has(u.charAt(0))||u.startsWith("\\.")&&t.has(u.charAt(2))||u.startsWith("\\.\\.")&&t.has(u.charAt(4)),i=!h&&!e&&t.has(u.charAt(0));a=n?"(?!(?:^|/)\\.\\.?(?:$|/))":i?ft:""}let p="";return this.isEnd()&&x(x(this,n),c)&&"!"===(null==(l=x(this,o))?void 0:l.type)&&(p="(?:$|\\/)"),[a+u+p,lt(u),P(this,i,!!x(this,i)),x(this,s)]}const u="*"===this.type||"+"===this.type,w="!"===this.type?"(?:(?!(?:":"(?:";let g=W(this,p,b).call(this,h);if(this.isStart()&&this.isEnd()&&!g&&"!"!==this.type){const t=this.toString();return P(this,r,[t]),this.type=null,P(this,i,void 0),[t,lt(this.toString()),!1,!1]}let y=!u||e||h?"":W(this,p,b).call(this,!0);y===g&&(y=""),y&&(g=`(?:${g})(?:${y})*?`);let $="";return $="!"===this.type&&x(this,a)?(this.isStart()&&!h?ft:"")+wt:w+g+("!"===this.type?"))"+(!this.isStart()||h||e?"":ft)+vt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&y?")":"*"===this.type&&y?")?":`)${this.type}`),[$,lt(g),P(this,i,!!x(this,i)),x(this,s)]}};n=new WeakMap,i=new WeakMap,s=new WeakMap,r=new WeakMap,o=new WeakMap,l=new WeakMap,h=new WeakMap,c=new WeakMap,f=new WeakMap,u=new WeakMap,a=new WeakMap,p=new WeakSet,d=function(){if(this!==x(this,n))throw new Error("should only call on root");if(x(this,c))return this;let t;for(this.toString(),P(this,c,!0);t=x(this,h).pop();){if("!"!==t.type)continue;let e=t,n=x(e,o);for(;n;){for(let i=x(e,l)+1;!n.type&&i<x(n,r).length;i++)for(const e of x(t,r)){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(x(n,r)[i])}e=n,n=x(e,o)}}return this},v=new WeakSet,w=function(t,e,n,s){var o,l;let h=!1,c=!1,f=-1,u=!1;if(null===e.type){let i=n,r="";for(;i<t.length;){const n=t.charAt(i++);if(h||"\\"===n)h=!h,r+=n;else if(c)i===f+1?"^"!==n&&"!"!==n||(u=!0):"]"!==n||i===f+2&&u||(c=!1),r+=n;else if("["!==n)if(s.noext||!ct(n)||"("!==t.charAt(i))r+=n;else{e.push(r),r="";const l=new bt(n,e);i=W(o=bt,v,w).call(o,t,l,i,s),e.push(l)}else c=!0,f=i,u=!1,r+=n}return e.push(r),i}let p=n+1,d=new bt(null,e);const b=[];let m="";for(;p<t.length;){const n=t.charAt(p++);if(h||"\\"===n)h=!h,m+=n;else if(c)p===f+1?"^"!==n&&"!"!==n||(u=!0):"]"!==n||p===f+2&&u||(c=!1),m+=n;else if("["!==n)if(ct(n)&&"("===t.charAt(p)){d.push(m),m="";const e=new bt(n,d);d.push(e),p=W(l=bt,v,w).call(l,t,e,p,s)}else if("|"!==n){if(")"===n)return""===m&&0===x(e,r).length&&P(e,a,!0),d.push(m),m="",e.push(...b,d),p;m+=n}else d.push(m),m="",b.push(d),d=new bt(null,e);else c=!0,f=p,u=!1,m+=n}return e.type=null,P(e,i,void 0),P(e,r,[t.substring(n-1)]),p},b=function(t){return x(this,r).map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[n,i,r,o]=e.toRegExpSource(t);return P(this,s,x(this,s)||o),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},m=function(t,e,n=!1){let i=!1,s="",r=!1;for(let o=0;o<t.length;o++){const l=t.charAt(o);if(i)i=!1,s+=(pt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,i,l,h]=ot(t,o);if(l){s+=n,r=r||i,o+=l-1,e=e||h;continue}}"*"!==l?"?"!==l?s+=l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(s+=dt,e=!0):(s+=n&&"*"===t?wt:vt,e=!0)}else o===t.length-1?s+="\\\\":i=!0}return[s,lt(t),!!e,r]},N(bt,v);var mt=bt,gt=(t,e,n={})=>(nt(e),!(!n.nocomment&&"#"===e.charAt(0))&&new Ht(e,n).match(t)),yt=/^\*+([^+@!?\*\[\(]*)$/,$t=t=>e=>!e.startsWith(".")&&e.endsWith(t),Ot=t=>e=>e.endsWith(t),St=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),jt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Mt=/^\*+\.\*+$/,Et=t=>!t.startsWith(".")&&t.includes("."),kt=t=>"."!==t&&".."!==t&&t.includes("."),xt=/^\.\*+$/,Nt=t=>"."!==t&&".."!==t&&t.startsWith("."),Pt=/^\*+$/,Wt=t=>0!==t.length&&!t.startsWith("."),At=t=>0!==t.length&&"."!==t&&".."!==t,Rt=/^\?+([^+@!?\*\[\(]*)?$/,Ct=([t,e=""])=>{const n=Tt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},zt=([t,e=""])=>{const n=Dt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Lt=([t,e=""])=>{const n=Dt([t]);return e?t=>n(t)&&t.endsWith(e):n},_t=([t,e=""])=>{const n=Tt([t]);return e?t=>n(t)&&t.endsWith(e):n},Tt=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Dt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Ut="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";gt.sep="win32"===Ut?"\\":"/";var Ft=Symbol("globstar **");gt.GLOBSTAR=Ft,gt.filter=(t,e={})=>n=>gt(n,t,e);var Gt=(t,e={})=>Object.assign({},t,e);gt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return gt;const e=gt;return Object.assign(((n,i,s={})=>e(n,i,Gt(t,s))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Gt(t,n))}static defaults(n){return e.defaults(Gt(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,i={}){super(e,n,Gt(t,i))}static fromGlob(n,i={}){return e.AST.fromGlob(n,Gt(t,i))}},unescape:(n,i={})=>e.unescape(n,Gt(t,i)),escape:(n,i={})=>e.escape(n,Gt(t,i)),filter:(n,i={})=>e.filter(n,Gt(t,i)),defaults:n=>e.defaults(Gt(t,n)),makeRe:(n,i={})=>e.makeRe(n,Gt(t,i)),braceExpand:(n,i={})=>e.braceExpand(n,Gt(t,i)),match:(n,i,s={})=>e.match(n,i,Gt(t,s)),sep:e.sep,GLOBSTAR:Ft})};var It=(t,e={})=>(nt(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,et.default)(t));gt.braceExpand=It,gt.makeRe=(t,e={})=>new Ht(t,e).makeRe(),gt.match=(t,e,n={})=>{const i=new Ht(e,n);return t=t.filter((t=>i.match(t))),i.options.nonull&&!t.length&&t.push(e),t};var Zt=/[?*]|[+@!]\(.*?\)|\[|\]/,Ht=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){nt(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Ut,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Zt.test(t[2])||Zt.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,i),this.set=i.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const i=t[n];1===n&&""===i&&""===t[0]||"."!==i&&""!==i||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const i=t[n-1];i&&"."!==i&&".."!==i&&"**"!==i&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let i=-1;for(;-1!==(i=n.indexOf("**",i+1));){let s=i;for(;"**"===n[s+1];)s++;s>i&&n.splice(i+1,s-i);const r=n[i+2],o=n[i+3];if(".."!==n[i+1])continue;if(!r||"."===r||".."===r||!o||"."===o||".."===o)continue;e=!0,n.splice(i,1);const l=n.slice(0);l[i]="**",t.push(l),i--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const i=n[t];1===t&&""===i&&""===n[0]||"."!==i&&""!==i||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let s=0;for(;-1!==(s=n.indexOf("..",s+1));){const t=n[s-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(s-1,2,...1===s&&"**"===n[s+1]?["."]:[]),0===n.length&&n.push(""),s-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const i=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);i&&(t[e]=i,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let i=0,s=0,r=[],o="";for(;i<t.length&&s<e.length;)if(t[i]===e[s])r.push("b"===o?e[s]:t[i]),i++,s++;else if(n&&"**"===t[i]&&e[s]===t[i+1])r.push(t[i]),i++;else if(n&&"**"===e[s]&&t[i]===e[s+1])r.push(e[s]),s++;else if("*"!==t[i]||!e[s]||!this.options.dot&&e[s].startsWith(".")||"**"===e[s]){if("*"!==e[s]||!t[i]||!this.options.dot&&t[i].startsWith(".")||"**"===t[i])return!1;if("a"===o)return!1;o="b",r.push(e[s]),i++,s++}else{if("b"===o)return!1;o="a",r.push(t[i]),i++,s++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let i=0;i<t.length&&"!"===t.charAt(i);i++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const i=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),i=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),s="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=i?3:n?0:void 0,o=!s&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:s?0:void 0;if("number"==typeof r&&"number"==typeof o){const[n,i]=[t[r],e[o]];n.toLowerCase()===i.toLowerCase()&&(e[o]=n,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,l=t.length,h=e.length;r<l&&o<h;r++,o++){this.debug("matchOne loop");var c=e[o],f=t[r];if(this.debug(e,c,f),!1===c)return!1;if(c===Ft){this.debug("GLOBSTAR",[e,c,f]);var u=r,a=o+1;if(a===h){for(this.debug("** at the end");r<l;r++)if("."===t[r]||".."===t[r]||!i.dot&&"."===t[r].charAt(0))return!1;return!0}for(;u<l;){var p=t[u];if(this.debug("\nglobstar while",t,u,e,a,p),this.matchOne(t.slice(u),e.slice(a),n))return this.debug("globstar found match!",u,l,p),!0;if("."===p||".."===p||!i.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,u,e,a);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!n||(this.debug("\n>>> no match, partial?",t,u,e,a),u!==l))}let s;if("string"==typeof c?(s=f===c,this.debug("string match",c,f,s)):(s=c.test(f),this.debug("pattern match",c,f,s)),!s)return!1}if(r===l&&o===h)return!0;if(r===l)return n;if(o===h)return r===l-1&&""===t[r];throw new Error("wtf?")}braceExpand(){return It(this.pattern,this.options)}parse(t){nt(t);const e=this.options;if("**"===t)return Ft;if(""===t)return"";let n,i=null;(n=t.match(Pt))?i=e.dot?At:Wt:(n=t.match(yt))?i=(e.nocase?e.dot?jt:St:e.dot?Ot:$t)(n[1]):(n=t.match(Rt))?i=(e.nocase?e.dot?zt:Ct:e.dot?Lt:_t)(n):(n=t.match(Mt))?i=e.dot?kt:Et:(n=t.match(xt))&&(i=Nt);const s=mt.fromGlob(t,this.options).toMMPattern();return i&&"object"==typeof s&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(e.nocase?["i"]:[]);let s=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))i.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===Ft?Ft:t._src}));return e.forEach(((t,i)=>{const s=e[i+1],r=e[i-1];t===Ft&&r!==Ft&&(void 0===r?void 0!==s&&s!==Ft?e[i+1]="(?:\\/|"+n+"\\/)?"+s:e[i]=n:void 0===s?e[i-1]=r+"(?:\\/|"+n+")?":s!==Ft&&(e[i-1]=r+"(?:\\/|\\/"+n+"\\/)"+s,e[i+1]=Ft))})),e.filter((t=>t!==Ft)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];s="^"+r+s+o+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const s=this.set;this.debug(this.pattern,"set",s);let r=i[i.length-1];if(!r)for(let t=i.length-2;!r&&t>=0;t--)r=i[t];for(let t=0;t<s.length;t++){const o=s[t];let l=i;if(n.matchBase&&1===o.length&&(l=[r]),this.matchOne(l,o,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return gt.defaults(t).Minimatch}};gt.AST=mt,gt.Minimatch=Ht,gt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),gt.unescape=lt,((t,e)=>{for(var n in e)y(t,n,{get:e[n],enumerable:!0})})({},{err:()=>qt,map:()=>Bt,ok:()=>Vt,unwrap:()=>Yt,unwrapErr:()=>Kt});var Vt=t=>({isOk:!0,isErr:!1,value:t}),qt=t=>({isOk:!1,isErr:!0,value:t});function Bt(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>Vt(t))):Vt(n)}if(t.isErr)return qt(t.value);throw"should never get here"}var Jt,Yt=t=>{if(t.isOk)return t.value;throw t.value},Kt=t=>{if(t.isErr)return t.value;throw t.value};function Qt(){const t=this.attachShadow({mode:"open"});void 0===Jt&&(Jt=null),Jt&&(I?t.adoptedStyleSheets.push(Jt):t.adoptedStyleSheets=[...t.adoptedStyleSheets,Jt])}function Xt(t,e,n){let i,s=0,r=[];for(;s<t.length;s++){if(i=t[s],i["s-sr"]&&(!e||i["s-hn"]===e)&&(void 0===n||te(i)===n)&&(r.push(i),void 0!==n))return r;r=[...r,...Xt(i.childNodes,e,n)]}return r}var te=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;var ee=new WeakMap,ne=t=>"sc-"+t.u,ie=(t,e,...n)=>{let i=null,s=null,r=!1,o=!1;const l=[],h=e=>{for(let n=0;n<e.length;n++)i=e[n],Array.isArray(i)?h(i):null!=i&&"boolean"!=typeof i&&((r="function"!=typeof t&&!tt(i))&&(i=String(i)),r&&o?l[l.length-1].p+=i:l.push(r?se(null,i):i),o=r)};if(h(n),e){e.key&&(s=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,l,oe);const c=se(t,null);return c.v=e,l.length>0&&(c.m=l),c.$=s,c},se=(t,e)=>({l:0,O:t,p:e,S:null,m:null,v:null,$:null}),re={},oe={forEach:(t,e)=>t.map(le).forEach(e),map:(t,e)=>t.map(le).map(e).map(he)},le=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.p}),he=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),ie(t.vtag,e,...t.vchildren||[])}const e=se(t.vtag,t.vtext);return e.v=t.vattrs,e.m=t.vchildren,e.$=t.vkey,e.j=t.vname,e},ce=t=>{const e=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};ce("::slotted"),ce(":host"),ce(":host-context");var fe,ue=(t,e)=>null==t||tt(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?String(t):t,ae=(t,e)=>{const n=t;return{emit:t=>pe(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},pe=(t,e,n)=>{const i=F.ce(e,n);return t.dispatchEvent(i),i},de=(t,e,n,i,s,r)=>{if(n===i)return;let o=L(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,s=we(n);let r=we(i);e.remove(...s.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)n&&i[e]===n[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===e);else if("ref"===e)i&&i(t);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const l=tt(i);if(o||l&&null!==i)try{if(t.tagName.includes("-"))t[e]!==i&&(t[e]=i);else{const s=null==i?"":i;"list"===e?o=!1:null!=n&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}null==i||!1===i?!1===i&&""!==t.getAttribute(e)||t.removeAttribute(e):(!o||4&r||s)&&!l&&1===t.nodeType&&t.setAttribute(e,i=!0===i?"":i)}else if(e="-"===e[2]?e.slice(3):L(D,l)?l.slice(2):l[2]+e.slice(3),n||i){const s=e.endsWith(be);e=e.replace(me,""),n&&F.rel(t,e,n,s),i&&F.ael(t,e,i,s)}},ve=/\s/,we=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ve):[]),be="Capture",me=new RegExp(be+"$"),ge=(t,e,n)=>{const i=11===e.S.nodeType&&e.S.host?e.S.host:e.S,s=t&&t.v||{},r=e.v||{};for(const t of ye(Object.keys(s)))t in r||de(i,t,s[t],void 0,n,e.l);for(const t of ye(Object.keys(r)))de(i,t,s[t],r[t],n,e.l)};function ye(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var $e=!1,Oe=!1,Se=(t,e,n)=>{const i=e.m[n];let s,r,o=0;if(null!==i.p)s=i.S=D.document.createTextNode(i.p);else{if(!D.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=i.S=D.document.createElement(i.O),ge(null,i,Oe),i.m){const e="template"===i.O?s.content:s;for(o=0;o<i.m.length;++o)r=Se(t,i,o),r&&e.appendChild(r)}}return s["s-hn"]=fe,s},je=(t,e,n,i,s,r)=>{let o,l=t;for(l.shadowRoot&&l.tagName===fe&&(l=l.shadowRoot),"template"===n.O&&(l=l.content);s<=r;++s)i[s]&&(o=Se(null,n,s),o&&(i[s].S=o,Ne(l,o,e)))},Me=(t,e,n)=>{for(let i=e;i<=n;++i){const e=t[i];if(e){const t=e.S;xe(e),t&&t.remove()}}},Ee=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),ke=(t,e,n=!1)=>{const i=e.S=t.S,s=t.m,r=e.m,o=e.p;null===o?("slot"!==e.O||$e||t.j!==e.j&&(e.S["s-sn"]=e.j||"",(t=>{F.l|=1;const e=t.closest(fe.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),i=Array.from(t.__childNodes||t.childNodes);for(const t of n?i.reverse():i)null!=t["s-sh"]&&(Ne(e,t,null!=n?n:null),t["s-sh"]=void 0)}F.l&=-2})(e.S.parentElement)),ge(t,e,Oe),null!==s&&null!==r?((t,e,n,i,s=!1)=>{let r,o,l=0,h=0,c=0,f=0,u=e.length-1,a=e[0],p=e[u],d=i.length-1,v=i[0],w=i[d];const b="template"===n.O?t.content:t;for(;l<=u&&h<=d;)if(null==a)a=e[++l];else if(null==p)p=e[--u];else if(null==v)v=i[++h];else if(null==w)w=i[--d];else if(Ee(a,v,s))ke(a,v,s),a=e[++l],v=i[++h];else if(Ee(p,w,s))ke(p,w,s),p=e[--u],w=i[--d];else if(Ee(a,w,s))ke(a,w,s),Ne(b,a.S,p.S.nextSibling),a=e[++l],w=i[--d];else if(Ee(p,v,s))ke(p,v,s),Ne(b,p.S,a.S),p=e[--u],v=i[++h];else{for(c=-1,f=l;f<=u;++f)if(e[f]&&null!==e[f].$&&e[f].$===v.$){c=f;break}c>=0?(o=e[c],o.O!==v.O?r=Se(e&&e[h],n,c):(ke(o,v,s),e[c]=void 0,r=o.S),v=i[++h]):(r=Se(e&&e[h],n,h),v=i[++h]),r&&Ne(a.S.parentNode,r,a.S)}l>u?je(t,null==i[d+1]?null:i[d+1].S,n,i,h,d):h>d&&Me(e,l,u)})(i,s,e,r,n):null!==r?(null!==t.p&&(i.textContent=""),je(i,null,e,r,0,r.length-1)):!n&&null!==s&&Me(s,0,s.length-1)):t.p!==o&&(i.data=o)},xe=t=>{t.v&&t.v.ref&&t.v.ref(null),t.m&&t.m.map(xe)},Ne=(t,e,n)=>{if("string"==typeof e["s-sn"]){t.insertBefore(e,n);const{slotNode:i}=function(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const i=t["s-sn"]=te(t)||"";return{slotNode:Xt(function(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}(e,"childNodes"),e.tagName,i)[0],slotName:i}}(e);return i&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},Pe=(t,e,n=!1)=>{const i=t.$hostElement$,s=t.i,r=t.M||se(null,null);var o;const l=(o=e)&&o.O===re?e:ie(null,null,e);if(fe=i.tagName,n&&l.v)for(const t of Object.keys(l.v))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(l.v[t]=i[t]);l.O=null,l.l|=4,t.M=l,l.S=r.S=i.shadowRoot||i,$e=!(!(1&s.l)||128&s.l),ke(r,l,n)},We=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((i=>t.k=()=>{e["s-p"].splice(n-1,1),i()})))}},Ae=(t,e)=>{if(t.l|=16,4&t.l)return void(t.l|=512);We(t,t.N);const n=()=>Re(t,e);if(!e)return K(n);queueMicrotask((()=>{n()}))},Re=(t,e)=>{const n=t.$hostElement$,i=n;if(!i)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=Ue(i,e?"componentWillLoad":"componentWillUpdate",void 0,n),s=Ce(s,(()=>Ue(i,"componentWillRender",void 0,n))),Ce(s,(()=>Le(t,i,e)))},Ce=(t,e)=>ze(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ze=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Le=async(t,e,n)=>{var i;const s=t.$hostElement$,r=s["s-rc"];n&&(t=>{const e=t.i,n=t.$hostElement$,i=e.l,s=((t,e)=>{var n,i,s;const r=ne(e),o=T.get(r);if(!D.document)return r;if(t=11===t.nodeType?t:D.document,o)if("string"==typeof o){let s,l=ee.get(t=t.head||t);if(l||ee.set(t,l=new Set),!l.has(r)){s=D.document.createElement("style"),s.innerHTML=o;const h=null!=(n=F.P)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=D.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=h&&s.setAttribute("nonce",h),!(1&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(G){const e=new(null!=(i=t.defaultView)?i:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(o),I?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(s)}else t.append(s);1&e.l&&t.insertBefore(s,null),4&e.l&&(s.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(r)}}else{let e=ee.get(t);if(e||ee.set(t,e=new Set),!e.has(r)){const n=null!=(s=t.defaultView)?s:t.ownerDocument.defaultView;let i;if(o.constructor===n.CSSStyleSheet)i=o;else{i=new n.CSSStyleSheet;for(let t=0;t<o.cssRules.length;t++)i.insertRule(o.cssRules[t].cssText,t)}I?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i],e.add(r)}}return r})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&i&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);_e(t,e,s,n),r&&(r.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(i=s["s-p"])?i:[],n=()=>Te(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},_e=(t,e,n,i)=>{try{e=e.render(),t.l&=-17,t.l|=2,Pe(t,e,i)}catch(e){_(e,t.$hostElement$)}return null},Te=t=>{const e=t.$hostElement$,n=e,i=t.N;Ue(n,"componentDidRender",void 0,e),64&t.l?Ue(n,"componentDidUpdate",void 0,e):(t.l|=64,Fe(e),Ue(n,"componentDidLoad",void 0,e),t.W(e),i||De()),t.k&&(t.k(),t.k=void 0),512&t.l&&Y((()=>Ae(t,!1))),t.l&=-517},De=()=>{Y((()=>pe(D,"appload",{detail:{namespace:"stencil-library"}})))},Ue=(t,e,n,i)=>{if(t&&t[e])try{return t[e](n)}catch(t){_(t,i)}},Fe=t=>t.classList.add("hydrated"),Ge=(t,e,n,i)=>{const s=z(t);if(!s)return;const r=t,o=s.o.get(e),l=s.l,h=r;n=ue(n,i.t[e][0]);const c=Number.isNaN(o)&&Number.isNaN(n);if(n!==o&&!c){if(s.o.set(e,n),i.A){const t=i.A[e];t&&t.map((t=>{try{const[[i,r]]=Object.entries(t);(128&l||1&r)&&(h?h[i](n,o,e):s.R.push((()=>{s.C[i](n,o,e)})))}catch(t){_(t,r)}}))}if(2==(18&l)){if(h.componentShouldUpdate&&!1===h.componentShouldUpdate(n,o,e))return;Ae(s,!1)}}},Ie=(t,e)=>{var n,i;const s=t.prototype;{t.watchers&&!e.A&&(e.A=t.watchers),t.deserializers&&!e.L&&(e.L=t.deserializers),t.serializers&&!e._&&(e._=t.serializers);const r=Object.entries(null!=(n=e.t)?n:{});r.map((([t,[n]])=>{if(31&n||32&n){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return i?i.apply(this):(e=t,z(this).o.get(e));var e},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=z(this);if(s){if(r)return void 0===(32&n?this[t]:s.$hostElement$[t])&&s.o.get(t)&&(i=s.o.get(t)),r.apply(this,[ue(i,n)]),void Ge(this,t,i=32&n?this[t]:s.$hostElement$[t],e);Ge(this,t,i,e)}}})}}));{const n=new Map;s.attributeChangedCallback=function(t,i,o){F.jmp((()=>{var l;const h=n.get(t),c=z(this);if(this.hasOwnProperty(h),s.hasOwnProperty(h)&&"number"==typeof this[h]&&this[h]==o)return;if(null==h){const n=null==c?void 0:c.l;if(c&&n&&!(8&n)&&o!==i){const s=this,r=null==(l=e.A)?void 0:l[t];null==r||r.forEach((e=>{const[[r,l]]=Object.entries(e);null!=s[r]&&(128&n||1&l)&&s[r].call(s,o,i,t)}))}return}const f=r.find((([t])=>t===h));f&&4&f[1][0]&&(o=null!==o&&"false"!==o);const u=Object.getOwnPropertyDescriptor(s,h);o==this[h]||u.get&&!u.set||(this[h]=o)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.A)?i:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const i=e[1]||t;return n.set(i,t),i}))]))}}return t},Ze=(t,e)=>{const n={l:e[0],u:e[1]};n.t=e[2],n.A=t.A,n.L=t.L,n._=t._;const i=t.prototype.connectedCallback,s=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={l:0,$hostElement$:t,i:e,o:new Map,T:new Map};n.D=new Promise((t=>n.W=t)),t["s-p"]=[],t["s-rc"]=[];const i=n;t.__stencil__getHostRef=()=>i,512&e.l&&C(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!z(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&F.l)){const e=z(t);if(!e)return;const n=e.i,i=()=>{};if(1&e.l)(null==e?void 0:e.C)||(null==e?void 0:e.D)&&e.D.then((()=>{}));else{e.l|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){We(e,e.N=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let i;if(!(32&e.l)&&(e.l|=32,i=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128)),i&&i.style)){let t;"string"==typeof i.style&&(t=i.style);const e=ne(n);if(!T.has(e)){const i=()=>{};((t,e,n)=>{let i=T.get(t);G&&n?(i=i||new CSSStyleSheet,"string"==typeof i?i=e:i.replaceSync(e)):i=e,T.set(t,i)})(e,t,!!(1&n.l)),i()}}const s=e.N,r=()=>Ae(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(t,e,n)}i()}})(this),i&&i.call(this)},disconnectedCallback(){(async t=>{1&F.l||z(t),ee.has(t)&&ee.delete(t),t.shadowRoot&&ee.has(t.shadowRoot)&&ee.delete(t.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${n.u}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Qt.call(this,n)}}),t.is=n.u,Ie(t,n)},He=t=>F.P=t,Ve=t=>Object.assign(F,t);function qe(t,e){Pe({i:{l:0,u:e.tagName},$hostElement$:e},t)}function Be(t){return t}export{U as H,He as a,Ve as b,ae as c,Q as g,ie as h,Ze as p,qe as r,X as s,Be as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=[];function o(o="root"){let r=`${o}-${Math.random().toString(36).substring(2,7)}`;for(;t.includes(r);)r=`${o}-${Math.random().toString(36).substring(2,7)}`;return r}export{o as r}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface RootBadge extends Components.RootBadge, HTMLElement {}
|
|
4
|
+
export const RootBadge: {
|
|
5
|
+
prototype: RootBadge;
|
|
6
|
+
new (): RootBadge;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as r,p as o,H as t,c as e,h as a}from"./p-CIjEN4Bv.js";import{r as d}from"./p-CvhBNbMT.js";var s;!function(r){r.PRIMARY="primary",r.SECONDARY="secondary",r.TERTIARY="tertiary",r.OUTLINE="outline",r.MUTED="muted",r.DANGER="danger"}(s||(s={}));const i=o(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.rootBadgeClick=e(this,"rootBadgeClick"),this.badgeId=d("root-badge"),this.variation=s.PRIMARY,this.fullWidth=!1,this.disabled=!1}clickHandler(r){this.rootBadgeClick.emit(r)}render(){return a("span",{key:"a1e7f7cee5b6899eec5d60f5acf5a8217777a6b3",id:this.badgeId,class:{"root-badge":!0,["root-badge--"+this.variation]:!!this.variation,"root-badge--full-width":this.fullWidth},onClick:r=>this.clickHandler(r)},a("slot",{key:"980ad3e760b2a1d6e9e2826d48deb88390752898"}))}static get style(){return".root-badge{display:inline-block;color:var(--rootsdk-text-primary);font-size:0.625rem;line-height:1;border-radius:1rem;padding:0.53125rem 0.75rem 0.5rem;min-width:1.5rem;text-transform:uppercase;font-weight:bold;background-color:transparent;text-align:center}.root-badge--primary{background-color:var(--rootsdk-brand-primary);color:var(--rootsdk-text-white)}.root-badge--secondary{background-color:var(--rootsdk-brand-secondary);color:var(--rootsdk-input)}.root-badge--tertiary{background-color:var(--rootsdk-brand-tertiary);color:var(--rootsdk-input)}.root-badge--danger{background-color:var(--rootsdk-error);color:var(--rootsdk-text-white)}.root-badge--outline{background:transparent;border:var(--border-width-m) solid var(--rootsdk-text-tertiary);color:var(--rootsdk-text-primary)}.root-badge--muted{background-color:var(--rootsdk-muted);color:var(--rootsdk-text-white)}.root-badge--standard{background:var(--rootsdk-text-primary);color:var(--rootsdk-background-tertiary)}.root-badge--full-width{width:100%}"}},[257,"root-badge",{badgeId:[1,"badge-id"],variation:[1],fullWidth:[4,"full-width"],disabled:[4]}]);function n(){"undefined"!=typeof customElements&&["root-badge"].forEach((o=>{"root-badge"===o&&(customElements.get(r(o))||customElements.define(r(o),i))}))}n();const c=i,l=n;export{c as RootBadge,l as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface RootBanner extends Components.RootBanner, HTMLElement {}
|
|
4
|
+
export const RootBanner: {
|
|
5
|
+
prototype: RootBanner;
|
|
6
|
+
new (): RootBanner;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as r,p as o,H as t,c as n,h as e}from"./p-CIjEN4Bv.js";import{r as a}from"./p-CvhBNbMT.js";var s;!function(r){r.PRIMARY="primary",r.SECONDARY="secondary",r.TERTIARY="tertiary",r.DANGER="danger",r.WARNING="warning",r.SUCCESS="success"}(s||(s={}));const i=o(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.rootBannerClick=n(this,"rootBannerClick"),this.bannerId=a("root-banner"),this.variation=s.PRIMARY,this.fullWidth=!1,this.disabled=!1}clickHandler(r){this.rootBannerClick.emit(r)}render(){return e("div",{key:"96197510d7a0988a356be8a6bdddf637e5383870",id:this.bannerId,class:{"root-banner":!0,["root-banner--"+this.variation]:!!this.variation},onClick:r=>this.clickHandler(r)},e("slot",{key:"b17c26ca99e7f3575c9d2849c644e0fef1e30dff"}))}static get style(){return".root-banner{text-align:center;color:var(--rootsdk-text-primary);padding:0.4rem}.root-banner--primary{background-color:var(--rootsdk-brand-primary);color:var(--rootsdk-text-white)}.root-banner--danger{background-color:var(--rootsdk-error)}.root-banner--warning{background-color:var(--rootsdk-warning)}.root-banner--success{background-color:var(--rootsdk-brand-tertiary)}"}},[257,"root-banner",{bannerId:[1,"banner-id"],variation:[1],fullWidth:[4,"full-width"],disabled:[4]}]);function c(){"undefined"!=typeof customElements&&["root-banner"].forEach((o=>{"root-banner"===o&&(customElements.get(r(o))||customElements.define(r(o),i))}))}c();const d=i,b=c;export{d as RootBanner,b as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface RootBreadcrumbs extends Components.RootBreadcrumbs, HTMLElement {}
|
|
4
|
+
export const RootBreadcrumbs: {
|
|
5
|
+
prototype: RootBreadcrumbs;
|
|
6
|
+
new (): RootBreadcrumbs;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as r,p as t,H as e,c as o,h as s}from"./p-CIjEN4Bv.js";import{r as i}from"./p-CvhBNbMT.js";const a=t(class extends e{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.linkClick=o(this,"linkClick"),this.breadcrumbsId=i("root-breadcrumbs"),this.linkItems=[]}componentDidLoad(){this.getBreadcrumbs()}getBreadcrumbs(){const r=this.hostElement.children;!r||(null==r?void 0:r.length)<=0?console.warn("The slot contains no link elements.",this.hostElement):this.linkItems=[...r].filter((r=>"a"===r.tagName.toLowerCase())).map((r=>({text:r.textContent,href:r.getAttribute("href")||""})))}clickHandler(r){this.linkClick.emit(r)}render(){return s("ol",{key:"ffa88751925c0a1f19acb06854bd4add08edec4f",class:"root-breadcrumbs",id:this.breadcrumbsId},this.linkItems.map(((r,t)=>{const e=t===this.linkItems.length-1;return s("li",{class:{"root-breadcrumbs-item":!0,"root-breadcrumbs-item--active":e}},e?s("span",null,r.text):s("a",{class:"root-breadcrumbs-link",onClick:r=>this.clickHandler(r),href:r.href},r.text))})))}get hostElement(){return this}static get style(){return'.root-breadcrumbs{display:flex;list-style:none;margin:0;padding:0;gap:0.5rem;align-items:center}.root-breadcrumbs .root-breadcrumbs-item{display:flex;align-items:center}.root-breadcrumbs .root-breadcrumbs-item:not(:last-child)::after{background:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 256 256"><g><g><polygon points="79.093,0 48.907,30.187 146.72,128 48.907,225.813 79.093,256 207.093,128"/></g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg>\') center;content:" ";display:inline-block;filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);height:0.5rem;margin:0 0.5rem;opacity:0.5;width:0.5rem}.root-breadcrumbs .root-breadcrumbs-item--active span{background:var(--rootsdk-highlight-normal);color:var(--rootsdk-text-tertiary);border-radius:1.5rem;padding:0.32rem 0.64rem;font-size:0.8rem}.root-breadcrumbs .root-breadcrumbs-item .root-breadcrumbs-link{text-decoration:underline;cursor:pointer;color:var(--rootsdk-text-primary);padding:0.32rem 0.64rem;border-radius:1.5rem;transition-duration:200ms;transition-property:background, color;font-size:0.8rem}.root-breadcrumbs .root-breadcrumbs-item .root-breadcrumbs-link .root-icon{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.root-breadcrumbs .root-breadcrumbs-item .root-breadcrumbs-link:hover{background-color:var(--rootsdk-highlight-normal)}'}},[1,"root-breadcrumbs",{breadcrumbsId:[1,"breadcrumbs-id"],linkItems:[32]}]);function n(){"undefined"!=typeof customElements&&["root-breadcrumbs"].forEach((t=>{"root-breadcrumbs"===t&&(customElements.get(r(t))||customElements.define(r(t),a))}))}n();const c=a,m=n;export{c as RootBreadcrumbs,m as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface RootButton extends Components.RootButton, HTMLElement {}
|
|
4
|
+
export const RootButton: {
|
|
5
|
+
prototype: RootButton;
|
|
6
|
+
new (): RootButton;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as o,H as r,c as e,h as n}from"./p-CIjEN4Bv.js";import{r as s}from"./p-CvhBNbMT.js";import{RootButtonSize as a,RootButtonVariation as i,RootButtonType as d}from"./index.js";const b=o(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.rootButtonClick=e(this,"rootButtonClick"),this.buttonId=s("root-button"),this.size=a.SMALL,this.variation=i.PRIMARY,this.type=d.BUTTON,this.fullWidth=!1,this.disabled=!1}clickHandler(t){this.rootButtonClick.emit(t)}render(){return n("button",{key:"951b963255c7eab4f286758ff133e9bad9969ee3",id:this.buttonId,class:{"root-button":!0,["root-button--"+this.size]:!!this.size,["root-button--"+this.variation]:!!this.variation,"root-button--full-width":this.fullWidth},disabled:this.disabled,type:this.type,onClick:t=>this.clickHandler(t)},n("slot",{key:"f50823d7bcfd0b291fbeddb17e8a5d740b7edb2a"}))}static get style(){return".root-button{height:2rem;border-radius:1.5rem;padding:0 1.75rem;min-width:fit-content;background-color:transparent;color:var(--rootsdk-text-primary);outline:none;font-size:1rem;border:none;cursor:pointer;border:1px solid transparent;text-transform:capitalize}.root-button--submit{background:var(--rootsdk-text-primary);color:var(--rootsdk-background-tertiary)}.root-button--danger{background:var(--rootsdk-error);color:var(--rootsdk-text-white)}.root-button--primary{background:var(--rootsdk-brand-primary);color:var(--rootsdk-text-white)}.root-button--secondary{background:var(--rootsdk-brand-secondary);color:var(--rootsdk-input)}.root-button--tertiary{background:var(--rootsdk-brand-tertiary);color:var(--rootsdk-input)}.root-button--outline{background:transparent;border:0.0625rem solid var(--rootsdk-text-tertiary);color:var(--rootsdk-text-primary)}.root-button--cancel{background:transparent;border:0.0625rem solid var(--rootsdk-text-tertiary);color:var(--rootsdk-text-primary)}.root-button--large{height:3.25rem}.root-button[disabled]{opacity:0.6;cursor:not-allowed;pointer-events:none}.root-button--full-width{width:100%}.root-button:hover{opacity:80%}.root-button:active{transform:scale(0.98)}"}},[257,"root-button",{buttonId:[1,"button-id"],size:[1],variation:[1],type:[1],fullWidth:[4,"full-width"],disabled:[4]}]);function u(){"undefined"!=typeof customElements&&["root-button"].forEach((o=>{"root-button"===o&&(customElements.get(t(o))||customElements.define(t(o),b))}))}u();const c=b,l=u;export{c as RootButton,l as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface RootInput extends Components.RootInput, HTMLElement {}
|
|
4
|
+
export const RootInput: {
|
|
5
|
+
prototype: RootInput;
|
|
6
|
+
new (): RootInput;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as i,H as e,c as o,h as n}from"./p-CIjEN4Bv.js";import{r}from"./p-CvhBNbMT.js";var s;!function(t){t.COLOR="color",t.DATE="date",t.EMAIL="email",t.FILE="file",t.IMAGE="image",t.MONTH="month",t.NUMBER="number",t.PASSWORD="password",t.SEARCH="search",t.SUBMIT="submit",t.TEL="tel",t.TEXT="text",t.TIME="time",t.URL="url",t.WEEK="week"}(s||(s={}));const a=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.rootInputChange=o(this,"rootInputChange"),this.rootInputBlur=o(this,"rootInputBlur"),this.inputId=r("root-input"),this.type=s.TEXT,this.placeholder="",this.value="",this.fullWidth=!1,this.multiline=!1,this.icon=!0,this.showPassword=!1,this.inputValue="",this.error="",this.touched=!1,this.hasIcon=!1,this.fileLabel="Select file",this.openPicker=()=>{if(!this.inputRef)return;const t=this.inputRef;t instanceof HTMLInputElement&&t.showPicker?t.showPicker():(t.focus(),t instanceof HTMLInputElement&&t.click())},this.togglePasswordVisibility=()=>{this.showPassword=!this.showPassword},this.incrementNumber=()=>{this.inputRef instanceof HTMLInputElement&&(this.inputRef.stepUp(),this.inputValue=this.inputRef.value,this.rootInputChange.emit(this.inputValue))},this.decrementNumber=()=>{this.inputRef instanceof HTMLInputElement&&(this.inputRef.stepDown(),this.inputValue=this.inputRef.value,this.rootInputChange.emit(this.inputValue))},this.validate=t=>t?this.type===s.EMAIL?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?"":"Please enter a valid email address.":this.type===s.TEL?/^[+]?[- 0-9()]{7,}$/.test(t)?"":"Please enter a valid phone number.":"":"",this.handleBlur=t=>{this.touched=!0,this.error=this.validate(this.inputValue),this.rootInputBlur.emit(t)},this.handleChange=t=>{const i=t.target.value;this.inputValue=i,this.rootInputChange.emit(i),this.touched&&(this.error=this.validate(i))},this.handleFileChange=t=>{var i;const e=t.target,o=null===(i=e.files)||void 0===i?void 0:i[0];this.fileLabel=o?o.name:"Select file",this.rootInputChange.emit(e.value)},this.handleFieldClick=()=>{if(this.inputRef)if(this.multiline)this.inputRef.focus();else if(this.inputRef instanceof HTMLInputElement){if("color"===this.inputRef.type)return void this.inputRef.click();"date"!==this.inputRef.type&&this.inputRef.focus()}}}onValueChanged(t){this.inputValue=t}componentWillLoad(){this.setHasIcon(),this.inputValue=this.value}setHasIcon(){const t=!!this.hostElement.querySelector('[slot="icon"]');t&&(this.hasIcon=t)}render(){const t=this.type===s.PASSWORD?this.showPassword?"text":"password":this.type,i=this.type===s.COLOR?this.inputValue||"#000000":this.inputValue,e={"root-input-field":!0,"root-input-field--error":!!this.error,"root-input-field--file":this.type===s.FILE,"root-input-field--color":this.type===s.COLOR,"root-input-field--textarea":this.multiline};return n("div",{key:"f0cfdfa2a787ca3d24467aa14bed615f003669a3",class:{"root-input":!0,"root-input--full-width":this.fullWidth}},n("label",{key:"efdc7aa0e6b58ea500d2496c2536c1ed8e1baaeb",htmlFor:this.inputId},this.label),n("div",{key:"2aeb9c360647154827070708b7ffa5a9c43b48d6",class:e,onClick:this.handleFieldClick},this.hasIcon&&n("div",{key:"8d48d017c77409a49b23c31af4e8010784f7282b",class:"root-input-icon",onClick:this.openPicker},n("slot",{key:"063c38a33aefd8b6cb3120a35f45600e998c93fa",name:"icon"})),this.multiline?n("textarea",{ref:t=>this.inputRef=t,placeholder:this.placeholder,id:this.inputId,name:this.inputName,maxLength:this.maxlength,value:this.inputValue,onBlur:this.handleBlur,onInput:this.handleChange,"aria-invalid":this.error?"true":"false",rows:3}):n("input",{ref:t=>this.inputRef=t,placeholder:this.placeholder,id:this.inputId,name:this.inputName,maxLength:this.maxlength,type:t,value:i,onBlur:this.handleBlur,onInput:this.type===s.FILE?this.handleFileChange:this.handleChange,"aria-invalid":this.error?"true":"false"}),this.type===s.COLOR&&n("div",{key:"7deca8ea931a30fbcfa02cfc7232266a5d04bd6e",class:"root-input-color-label"},n("span",{key:"03ea754ebde8113944d7a3ca84dc14fb606bed62",class:"root-input-color-swatch",style:{backgroundColor:i}}),n("span",{key:"912f3e9a93f8c6a5e775b2ba7d5ddcb6976fe288",class:"root-input-color-text"},i)),this.type===s.FILE&&!this.multiline&&n("div",{key:"fe5ebf39d54b21740d1ff7e18c8ca28633d894a3",class:"root-input-file-label"},n("span",{key:"dab576c2c1ba5b0d8f38cd0a981aa90848a8de58"},this.fileLabel),n("slot",{key:"4a7469093cb502a4596164a39f7e6ba9a2e45f26",name:"file-icon"})),this.type===s.PASSWORD&&!this.multiline&&n("div",{key:"fd783cd0384fd5efd9c12e967bfd990281f9f1aa",class:"root-input-icon",onClick:this.togglePasswordVisibility},n("slot",{key:"242f5399701370494f5f81d41cc40478136871e0",name:"password-icon"})),this.type===s.NUMBER&&!this.multiline&&n("div",{key:"f6fa71e43701933280c41f60a27c6e3f923e3670",class:"root-input-number-controls"},n("div",{key:"04d2f6d6e152c0c6326c0e9f38b78f6c15ea3626",class:"root-input-icon",onClick:this.incrementNumber},n("slot",{key:"8de93b51aba6b7f220653c39d8a0e1ba234a15ed",name:"number-up-icon"})),n("div",{key:"2baf375834a3926b36d818f563e4fcf545a4146b",class:"root-input-icon",onClick:this.decrementNumber},n("slot",{key:"f4a7772d01d7d78e7a675ae34cee3ae76c92cdce",name:"number-down-icon"})))),this.error&&this.touched&&n("div",{key:"e0d328cc5154baf82963af89a37e70676df94ee2",class:"root-input-error"},this.error))}get hostElement(){return this}static get watchers(){return{value:[{onValueChanged:0}]}}static get style(){return".root-input--full-width{width:100%}.root-input .root-input-field{display:flex;align-items:center;width:100%;border-radius:0.75rem;background-color:var(--rootsdk-input);border:0.03125rem solid var(--rootsdk-highlight-normal);color:var(--rootsdk-text-primary);min-height:2em;outline:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;cursor:text}.root-input .root-input-field.root-input-field--textarea{align-items:flex-start}.root-input .root-input-field.root-input-field--file{position:relative;cursor:pointer}.root-input .root-input-field.root-input-field--color{position:relative;cursor:pointer}.root-input .root-input-field:focus-within{border:0.03125rem solid var(--rootsdk-brand-primary)}.root-input .root-input-field.root-input-field--error{border-color:var(--rootsdk-error, #e53935)}.root-input .root-input-icon{margin-right:0.5rem;display:flex;align-items:center;justify-content:center;height:1em}.root-input input{flex:1;border:none;background:transparent;color:inherit;font-family:inherit;outline:none;padding:0;margin:0;text-overflow:ellipsis;cursor:text}.root-input input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.root-input input[type=color]{position:absolute;inset:0;opacity:0;cursor:pointer}.root-input input::-webkit-calendar-picker-indicator{display:none}.root-input input::-webkit-outer-spin-button,.root-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.root-input textarea{flex:1;border:none;background:transparent;color:inherit;font-family:inherit;outline:none;padding:0;margin:0;resize:vertical;min-height:6rem}.root-input .root-input-number-controls{display:flex;flex-direction:column;gap:0;margin-left:0;margin-right:0.5rem;height:1em;line-height:0.5;align-items:center;justify-content:center;cursor:pointer}.root-input .root-input-file-label{display:flex;align-items:center;justify-content:space-between;gap:0.5rem;width:100%;pointer-events:none}.root-input .root-input-color-label{display:flex;align-items:center;gap:0.5rem;width:100%;pointer-events:none}.root-input .root-input-color-swatch{width:1rem;height:1rem;border-radius:4px;border:0.03125rem solid var(--rootsdk-highlight-normal)}.root-input .root-input-color-text{font-family:inherit;color:inherit}.root-input label{font-size:0.875rem;color:var(--rootsdk-text-tertiary);text-transform:capitalize;margin-bottom:0.5rem;display:block}.root-input .root-input-error{margin-top:0.35rem;color:var(--rootsdk-error, #e53935);font-size:0.75rem}"}},[257,"root-input",{inputId:[1,"input-id"],type:[1],label:[1],inputName:[1,"input-name"],placeholder:[1],value:[1025],maxlength:[2],fullWidth:[4,"full-width"],multiline:[4],icon:[4],showPassword:[32],inputValue:[32],error:[32],touched:[32],hasIcon:[32],fileLabel:[32]},void 0,{value:[{onValueChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["root-input"].forEach((i=>{"root-input"===i&&(customElements.get(t(i))||customElements.define(t(i),a))}))}l();const h=a,c=l;export{h as RootInput,c as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface RootList extends Components.RootList, HTMLElement {}
|
|
4
|
+
export const RootList: {
|
|
5
|
+
prototype: RootList;
|
|
6
|
+
new (): RootList;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as s,h as o}from"./p-CIjEN4Bv.js";const i=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.type="bullet"}render(){return o("numbered"===this.type?"ol":"ul",{key:"315491245470e4eb4601debdfbdfeebec6ec0862",class:{"root-list":!0,["root-list--"+this.type]:!0}},o("slot",{key:"630f9ab955f57568bd6c8686068afc6593a66185"}))}static get style(){return".root-list{margin:0;padding-left:1.5rem;color:var(--rootsdk-text-primary);font-size:1rem;line-height:1.6;list-style-position:inside}.root-list--bullet{list-style-type:disc}.root-list--numbered{list-style-type:decimal}.root-list li{margin-bottom:0.5rem;padding-left:0.25rem}"}},[257,"root-list",{type:[1]}]);function l(){"undefined"!=typeof customElements&&["root-list"].forEach((e=>{"root-list"===e&&(customElements.get(t(e))||customElements.define(t(e),i))}))}l();const r=i,n=l;export{r as RootList,n as defineCustomElement}
|